blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4b9785d208ec7bfd695f67a1c0ae0ae14af5c025 | d3e4b3e0d30dabe9714429109d2ff7b9141a6b22 | /Visualization/LagrangeInterpolationVisualization.py | 88ab36a87c9cd16c736d839ffcb9ba3d3157994f | [
"MIT"
] | permissive | SymmetricChaos/NumberTheory | 184e41bc7893f1891fa7fd074610b0c1520fa7dd | 65258e06b7f04ce15223c1bc0c2384ef5e9cec1a | refs/heads/master | 2021-06-11T17:37:34.576906 | 2021-04-19T15:39:05 | 2021-04-19T15:39:05 | 175,703,757 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | from Polynomials import lagrange_interpolation
import matplotlib.pyplot as plt
import numpy as np
points = [1,3,5,7]
function = lambda x: np.sin(x)
print("""Lagrange interpolation takes a set of n points and finds the "best" polynomial that describes them. Given n points on a plane there is a polynomial of degree n... | [
"ajfraebel@gmail.com"
] | ajfraebel@gmail.com |
0b1900e0a13d5588aa349822a427ad816264765e | 287fcd6bc49381d5b116dd541a97c0ff37141214 | /app/section/sections/hero_section.py | c5960e017024cdfa7d8610c48d487ea424d32899 | [] | no_license | elcolono/wagtail-cms | 95812323768b90e3630c5f90e59a9f0074157ab5 | b3acb2e5c8f985202da919aaa99ea9db2f6b4d51 | refs/heads/master | 2023-05-26T05:24:42.362695 | 2020-10-08T17:23:22 | 2020-10-08T17:23:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,839 | py | from django.db import models
from wagtail.snippets.models import register_snippet
from wagtail.admin.edit_handlers import (
MultiFieldPanel, FieldPanel, StreamFieldPanel, FieldRowPanel)
from wagtail.admin.edit_handlers import ObjectList, TabbedInterface
from wagtail.images.edit_handlers import ImageChooserPanel
fr... | [
"andreas.siedler@gmail.com"
] | andreas.siedler@gmail.com |
b1ff28e00fcaf827759d3315508259d5c02fe49a | 912cb61eaa768716d30844990ebbdd80ab2c2f4e | /ex070.py | aad48d4aa3286cd92534b1c397274d2ac7ddf5ea | [] | no_license | luizaacampos/exerciciosCursoEmVideoPython | 5fc9bed736300916e1c26d115eb2e703ba1dd4ca | 398bfa5243adae00fb58056d1672cc20ff4a31d6 | refs/heads/main | 2023-01-06T21:48:17.068478 | 2020-11-11T12:29:10 | 2020-11-11T12:29:10 | 311,964,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | total = tk = menor = soma = 0
print('--------------Loja Sallus-----------------')
while True:
prod = input('Nome do produto: ')
valor = float(input('Preço: R$'))
soma += 1
cont = str(input('Quer continuar? [S/N] ')).upper().strip()[0]
total += valor
if valor > 1000.00:
tk += 1
if som... | [
"luiza.almcampos@gmail.com"
] | luiza.almcampos@gmail.com |
30197700259a9549341c49c7bd19ffeca986744d | fb0e99751068fa293312f60fedf8b6d0b9eae293 | /slepé_cesty_vývoje/iskušitel/najdu_testovací_soubory.py | 452504d722f35dd929333e4039ac4e9dc3d416ee | [] | no_license | BGCX261/zora-na-pruzi-hg-to-git | d9628a07e3effa6eeb15b9b5ff6d75932a6deaff | 34a331e17ba87c0de34e7f0c5b43642d5b175215 | refs/heads/master | 2021-01-19T16:52:06.478359 | 2013-08-07T19:58:42 | 2013-08-07T19:58:42 | 41,600,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,598 | py | #!/usr/bin/env python3
# Copyright (c) 2012 Домоглед <domogled@domogled.eu>
# @author Петр Болф <petr.bolf@domogled.eu>
import os, fnmatch
MASKA_TESTOVACÍCH_SOUBORŮ = 'testuji_*.py'
def najdu_testovací_soubory(cesta):
počet_nalezených_testů = 0
if os.path.isdir(cesta):
for cesta_... | [
"petr.bolf@domogled.eu"
] | petr.bolf@domogled.eu |
bbca1de8f3365de6962acd80b69471036e33422e | 68c4805ad01edd612fa714b1e0d210115e28bb7d | /venv/Lib/site-packages/numba/tests/test_config.py | de8371b8b2d4ac9757452a6d5a24a1954ff13f8d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Happy-Egg/redesigned-happiness | ac17a11aecc7459f4ebf0afd7d43de16fb37ae2c | 08b705e3569f3daf31e44254ebd11dd8b4e6fbb3 | refs/heads/master | 2022-12-28T02:40:21.713456 | 2020-03-03T09:04:30 | 2020-03-03T09:04:30 | 204,904,444 | 2 | 1 | Apache-2.0 | 2022-12-08T06:19:04 | 2019-08-28T10:18:05 | Python | UTF-8 | Python | false | false | 3,444 | py | import os
import tempfile
import unittest
from .support import TestCase, temp_directory, override_env_config
from numba import config
try:
import yaml
_HAVE_YAML = True
except ImportError:
_HAVE_YAML = False
_skip_msg = "pyyaml needed for configuration file tests"
needs_yaml = unittest.skipIf(not _HAVE_YA... | [
"yangyang4910709@163.com"
] | yangyang4910709@163.com |
8b6ae75cd27c32f78ea740595757c1a84a66c477 | 6e43937c521b841595fbe7f59268ffc72dfefa9d | /GSP_WEB/views/index/view.py | 8abba08ca5d578311be5a2e72cc36170dcf80929 | [] | no_license | MiscCoding/gsp_web | a5e50ce7591157510021cae49c6b2994f4eaabbe | a24e319974021ba668c5f8b4000ce96d81d1483e | refs/heads/master | 2020-03-28T15:11:30.301700 | 2019-08-12T04:47:42 | 2019-08-12T04:47:42 | 148,565,440 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,123 | py | #-*- coding: utf-8 -*-
import datetime
from collections import OrderedDict
from dateutil import parser
from elasticsearch import Elasticsearch
from flask import request, render_template, Blueprint, json
from GSP_WEB import login_required, db_session, app
from GSP_WEB.common.encoder.decimalEncoder import DecimalEncode... | [
"neogeo-s@hanmail.net"
] | neogeo-s@hanmail.net |
164b19c6ae1bd8b400a1296c2b5d3a93cddf328d | 9b9a02657812ea0cb47db0ae411196f0e81c5152 | /repoData/RobSpectre-Call-Your-Family/allPythonContent.py | dfea466529f966662dd2984fc56f28256ffdd134 | [] | no_license | aCoffeeYin/pyreco | cb42db94a3a5fc134356c9a2a738a063d0898572 | 0ac6653219c2701c13c508c5c4fc9bc3437eea06 | refs/heads/master | 2020-12-14T14:10:05.763693 | 2016-06-27T05:15:15 | 2016-06-27T05:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,193 | py | __FILENAME__ = app
import os
import signal
from flask import Flask
from flask import render_template
from flask import url_for
from flask import request
from twilio import twiml
# Declare and configure application
app = Flask(__name__, static_url_path='/static')
app.config.from_pyfile('local_setting... | [
"dyangUCI@github.com"
] | dyangUCI@github.com |
19377378073d0491068a8850c5ec1a202b416b4e | e514bbdf8e0abe5ef0b58b94fe5f7d2afb38ea6b | /test_suite/shared_data/frame_order/cam/rotor/perm_pseudo_ellipse_z_le_x_le_y_alt/pseudo-ellipse.py | b1dec4d76ae1ec4b73e2fd5cf18f201d538cd854 | [] | no_license | edward-dauvergne/relax | 98ad63703e68a4535bfef3d6c0529e07cc84ff29 | 9710dc0f2dfe797f413756272d4bec83cf6ca1c9 | refs/heads/master | 2020-04-07T04:25:25.382027 | 2017-01-04T15:38:09 | 2017-01-04T15:38:09 | 46,500,334 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,967 | py | # Optimise all 3 pseudo-ellipse permutations for the CaM rotor synthetic frame order data.
# These 3 solutions should mimic the rotor solution.
# Python module imports.
from numpy import array, cross, float64, transpose, zeros
from numpy.linalg import norm
import sys
# relax module imports.
from lib.geometry.coord_tr... | [
"bugman@b7916896-f9f9-0310-9fe5-b3996d8957d5"
] | bugman@b7916896-f9f9-0310-9fe5-b3996d8957d5 |
8282401112b1b4d464f5eb4541b0d79ec6a226e1 | af67d7d0f56da5d8ac9a6fbd4b0aedcebf5a6434 | /buglab/models/evaluate.py | 6451f664c2e61472f2c8c46d28d3d1c9e7e5661b | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | microsoft/neurips21-self-supervised-bug-detection-and-repair | 23ef751829dc90d83571cd68c8703e2c985e4521 | 4e51184a63aecd19174ee40fc6433260ab73d56e | refs/heads/main | 2023-05-23T12:23:41.870343 | 2022-01-19T12:16:19 | 2022-01-19T12:16:19 | 417,330,374 | 90 | 23 | MIT | 2022-08-30T11:54:55 | 2021-10-15T01:14:33 | Python | UTF-8 | Python | false | false | 11,936 | py | #!/usr/bin/env python
"""
Usage:
evaluate.py [options] MODEL_FILENAME TEST_DATA_PATH
Options:
--aml Run this in Azure ML
--azure-info=<path> Azure authentication information file (JSON). Used to load data from Azure storage.
--minibatch-size=<size> The minibatch size. [de... | [
"miallama@microsoft.com"
] | miallama@microsoft.com |
c253644311d7fe2b49eac8dac03132f4f1cdd8ba | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/302/66800/submittedfiles/testes.py | 7c56144edfa042834f7911ced03a33c1d0ca5381 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
idade = int(input('Digite sua idade'))
if idade => 18:
print ("maior de idade")
else:
print ('menor de idade')
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
72f1a1f05e457a9f11bdee1d6b7442f9a3fe8ee7 | e436e729b0a78c7062311e0f48c55dd25d13faef | /tests/core/test_utils.py | b2bc8e17e86be01fde91a5b6c1f2ba12e3fdf488 | [
"MIT"
] | permissive | cad106uk/market-access-public-frontend | 71ff602f4817666ed2837432b912f108010a30a1 | 092149105b5ddb1307c613123e94750b0b8b39ac | refs/heads/master | 2023-02-03T18:48:45.838135 | 2020-12-24T09:38:56 | 2020-12-24T09:38:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | import datetime
from unittest import TestCase
from apps.core.utils import convert_to_snake_case, chain, get_future_date
class UtilsTestCase(TestCase):
def test_get_future_date(self):
now = datetime.datetime.now()
future_date_str = get_future_date(60)
extra_days = datetime.datetime.strpt... | [
"noreply@github.com"
] | cad106uk.noreply@github.com |
1808c14f89677eda21489c6ca86615cddc39f671 | 762db71e9bb66ab5821bd91eff7e0fa813f795a0 | /code/python/echomesh/util/math/LargestInvertible.py | d29937b39ff5a64bf2a144c83e74a0f9632c2172 | [
"MIT"
] | permissive | huochaip/echomesh | 0954d5bca14d58c0d762a5d3db4e6dcd246bf765 | be668971a687b141660fd2e5635d2fd598992a01 | refs/heads/master | 2020-06-17T20:21:47.216434 | 2016-08-16T16:49:56 | 2016-08-16T16:49:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import fractions
import math
from six.moves import xrange
# http://stackoverflow.com/questions/4798654/modular-multiplicative-inverse-function-in-python
# from https://en.wikibooks.org/wiki/Algorithm_Implementation/Mathematics/Extende... | [
"tom@swirly.com"
] | tom@swirly.com |
3e788e30fcf2f685d56dbf028eb1b93f22e164be | 6a07912090214567f77e9cd941fb92f1f3137ae6 | /cs212/Problem Set 1/2.py | 97b6cb647b9c05d52c0f4bd57cf754e82586bf20 | [] | no_license | rrampage/udacity-code | 4ab042b591fa3e9adab0183d669a8df80265ed81 | bbe968cd27da7cc453eada5b2aa29176b0121c13 | refs/heads/master | 2020-04-18T08:46:00.580903 | 2012-08-25T08:44:24 | 2012-08-25T08:44:24 | 5,352,942 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,333 | py | # cs212 ; Problem Set 1 ; 2
# CS 212, hw1-2: Jokers Wild
#
# -----------------
# User Instructions
#
# Write a function best_wild_hand(hand) that takes as
# input a 7-card hand and returns the best 5 card hand.
# In this problem, it is possible for a hand to include
# jokers. Jokers will be treated as 'wild cards' whic... | [
"raunak1001@gmail.com"
] | raunak1001@gmail.com |
33791d780f140caa7af658d364f82aa0c8a86f28 | aa1972e6978d5f983c48578bdf3b51e311cb4396 | /nitro-python-1.0/nssrc/com/citrix/netscaler/nitro/resource/config/cluster/clusternodegroup_streamidentifier_binding.py | e684932798111ad39584954df57a8ca7c17454bc | [
"Python-2.0",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | MayankTahil/nitro-ide | 3d7ddfd13ff6510d6709bdeaef37c187b9f22f38 | 50054929214a35a7bb19ed10c4905fffa37c3451 | refs/heads/master | 2020-12-03T02:27:03.672953 | 2017-07-05T18:09:09 | 2017-07-05T18:09:09 | 95,933,896 | 2 | 5 | null | 2017-07-05T16:51:29 | 2017-07-01T01:03:20 | HTML | UTF-8 | Python | false | false | 6,873 | py | #
# Copyright (c) 2008-2016 Citrix Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | [
"Mayank@Mandelbrot.local"
] | Mayank@Mandelbrot.local |
95fd505de6e612fe4910474599f2a8c9473be8bd | b31c0f0d1e8a3bf575e6b86591ec1071cd9a8a3d | /mlonmcu/platform/espidf/__init__.py | 511bc4c5d06b1e9b61f42c245b0d3c14dfe8b50d | [
"Apache-2.0"
] | permissive | tum-ei-eda/mlonmcu | e75238cd7134771217153c740301a8327a7b93b1 | f1b934d5bd42b5471d21bcf257bf88c055698918 | refs/heads/main | 2023-08-07T15:12:13.466944 | 2023-07-15T13:26:21 | 2023-07-15T13:26:21 | 448,808,394 | 22 | 4 | Apache-2.0 | 2023-06-09T23:00:19 | 2022-01-17T08:20:05 | Python | UTF-8 | Python | false | false | 877 | py | #
# Copyright (c) 2022 TUM Department of Electrical and Computer Engineering.
#
# This file is part of MLonMCU.
# See https://github.com/tum-ei-eda/mlonmcu.git for further info.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You m... | [
"philipp.van-kempen@tum.de"
] | philipp.van-kempen@tum.de |
125671ac083b8ab5d77142fb5411d4afa74e234c | 7673df8dec063e83aa01187d5a02ca8b4ac3761d | /Basic/functions.py | 8f1badb2bde7f5c4aa358988eb3330bc69a6532a | [] | no_license | jedthompson99/Python_Course | cc905b42a26a2aaf008ce5cb8aaaa6b3b66df61e | 618368390f8a7825459a20b4bc28e80c22da5dda | refs/heads/master | 2023-07-01T08:39:11.309175 | 2021-08-09T17:28:32 | 2021-08-09T17:28:32 | 361,793,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py |
def full_name(first, last):
print(f'{first} {last}')
full_name('Kristine', 'Hudgens')
def auth(email, password):
if email == 'kristine@hudgens.com' and password == 'secret':
print('You are authorized')
else:
print('You are not authorized')
auth('kristine@hudgens.com', 'asdf')
def hundred():
f... | [
"jedthompson@gmail.com"
] | jedthompson@gmail.com |
ecfe49b03baa1334ccc75a2b3bdbf0eb1e4e241a | 4fca17a3dbc3e74ba7e46bd7869eb6d138e4c422 | /_0163_Missing_Ranges.py | b5c8d5b3ad79b18657c10fbcb233bf4e9f0f2ccd | [] | no_license | mingweihe/leetcode | a2cfee0e004627b817a3c0321bb9c74128f8c1a7 | edff905f63ab95cdd40447b27a9c449c9cefec37 | refs/heads/master | 2021-06-19T07:46:46.897952 | 2021-05-02T05:13:17 | 2021-05-02T05:13:17 | 205,740,338 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | class Solution(object):
def findMissingRanges(self, nums, lower, upper):
"""
:type nums: List[int]
:type lower: int
:type upper: int
:rtype: List[str]
"""
res = []
for x in nums:
if x == lower:
lower += 1
elif lo... | [
"10962421@qq.com"
] | 10962421@qq.com |
4aa90e4762ebc9bc01901de23e573ec8e5b9bca2 | da9942c175c7289ff9ad1e8de0fb817ff2103292 | /62.py | 3a9dc97ed2467f894184da448ff2fe60116df59a | [] | no_license | db2398/set7 | 325acf2415642a82b6c0efb48142ed65208f6049 | fa5a2e4b75344368225e60da7a1acf27c522c692 | refs/heads/master | 2020-06-14T14:33:04.014545 | 2019-07-03T11:18:53 | 2019-07-03T11:18:53 | 195,027,788 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | t=input()
sd=set(t)
if(sd=={"0","1"}):
print("yes")
else:
print("no")
| [
"noreply@github.com"
] | db2398.noreply@github.com |
a149aaf98e52f7341e3dcc68f0efb14590b43c19 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02700/s274282920.py | 922c558418997e6ed17552a908b8b8cb32996882 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | A,B,C,D = (int(x) for x in input().split())
while True:
C -= B
if C <= 0:
print('Yes')
break
else:
A -= D
if A <= 0:
print('No')
break | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6b854b39440765b0f5c80e3c3f73c5fdf6d4f8b8 | 4d10250b7ce80730414468e5e0060a207253a6d0 | /jplephem/test.py | bc8ec152f0e375d2117b0930f489d0e20a305d78 | [] | no_license | NatalieP-J/python | c68fdb84a6c9c432b34e57ae4e376f652451578a | c74bcfabde4704939550875bc42fc3e8a5dbc5bf | refs/heads/master | 2021-01-23T03:08:06.448979 | 2013-08-21T04:04:11 | 2013-08-21T04:04:11 | 10,916,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,108 | py | """Tests for ``jplephem``.
See the accompanying ``jpltest`` module for a more intense numerical
test suite that can verify that ``jplephem`` delivers, in a large number
of cases, the same results as when the ephemerides are run at JPL. This
smaller and more feature-oriented suite can be run with::
python -m unit... | [
"natalie.price.jones@mail.utoronto.ca"
] | natalie.price.jones@mail.utoronto.ca |
b416e000c05055c966ef50e7bead35df903c7b05 | 8b8a06abf18410e08f654fb8f2a9efda17dc4f8f | /app/request_session.py | f6a0cb38f59f5353b537a1d430baac107a5c80f0 | [] | no_license | corporacionrst/software_RST | d903dfadf87c97c692a821a9dd3b79b343d8d485 | 7a621c4f939b5c01fd222434deea920e2447c214 | refs/heads/master | 2021-04-26T23:23:27.241893 | 2018-10-05T23:21:34 | 2018-10-05T23:21:34 | 123,985,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,903 | py | from sistema.usuarios.models import Perfil
def getPerfil(request):
return Perfil.objects.get(usuario=request.user)
# def getStore(request):
# return Perfil.objects.get(usuario=request.user).tienda
def OKadmin(request):
if request.user.is_authenticated():
if "ADMIN" in Perfil.objects.get(usuario=request.user)... | [
"admin@corporacionrst.com"
] | admin@corporacionrst.com |
28baac5a621d65ae8bfeae46ed657209afc3d95a | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res/scripts/client/gui/shared/utils/requesters/tokenrequester.py | 1ace65ad86b0304adeff25edcc9173651083c9f2 | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 3,878 | py | # 2015.11.10 21:29:45 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/shared/utils/requesters/TokenRequester.py
import cPickle
from functools import partial
import BigWorld
from adisp import async
from constants import REQUEST_COOLDOWN, TOKEN_TYPE
from debug_utils import LOG_CURRENT_EXCEPTION
from T... | [
"info@webium.sk"
] | info@webium.sk |
0b85630a9123b498e5f50e15d65fb027b4057127 | 1c6b5d41cc84c103ddb2db3689f61f47eaa2c13b | /CV_ToolBox-master/VOC_2_COCO/xml_helper.py | c97bb05d81b946aa96ae1e1ee0c4209f0f9cc9a7 | [] | no_license | Asher-1/DataAugmentation | e543a93912239939ccf77c98d9156c8ed15e1090 | c9c143e7cccf771341d2f18aa11daf8b9f817670 | refs/heads/main | 2023-07-01T22:49:10.908175 | 2021-08-13T10:01:56 | 2021-08-13T10:01:56 | 395,602,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,300 | py | # -*- coding=utf-8 -*-
import os
import xml.etree.ElementTree as ET
import xml.dom.minidom as DOC
# 从xml文件中提取bounding box信息, 格式为[[x_min, y_min, x_max, y_max, name]]
def parse_xml(xml_path):
'''
输入:
xml_path: xml的文件路径
输出:
从xml文件中提取bounding box信息, 格式为[[x_min, y_min, x_max, y_max, name]]
... | [
"ludahai19@163.com"
] | ludahai19@163.com |
a504526e7afcb6817c2878fa279d32e1dfc65ac6 | 72f5adc4b6f79dd40e975c86abcdbd3d0ccada86 | /venv/bin/pip3.7 | 3786525abb997c921a0c0979436550edefdc7960 | [] | no_license | katrek/flask_vacancy_parser | 77101604ec5bfeb47c009b9d8329b42d9d30bf4a | bbea4ae860bb78f7264b05e92c6664f8e4c4b3cf | refs/heads/master | 2023-01-11T11:58:09.275448 | 2019-08-29T06:36:53 | 2019-08-29T06:36:53 | 204,666,913 | 1 | 1 | null | 2023-01-03T12:19:03 | 2019-08-27T09:22:35 | Python | UTF-8 | Python | false | false | 420 | 7 | #!/Users/artemtkachev/PycharmProjects/flask_parser2/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.... | [
"akatrek@gmail.com"
] | akatrek@gmail.com |
03771c28af243c41e09a09630addbf700d35abaa | b7f3edb5b7c62174bed808079c3b21fb9ea51d52 | /tools/android/native_lib_memory/parse_smaps.py | c167a327bfe8764e6dce320d671e151267c9aba7 | [
"Zlib",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-only",
"LGPL-2.0-or-later",
"APSL-2.0",
"MIT",
"Apache-2.0",
"LGPL-2.0-only",
"LicenseRef-scancode-unknown"
] | permissive | otcshare/chromium-src | 26a7372773b53b236784c51677c566dc0ad839e4 | 64bee65c921db7e78e25d08f1e98da2668b57be5 | refs/heads/webml | 2023-03-21T03:20:15.377034 | 2020-11-16T01:40:14 | 2020-11-16T01:40:14 | 209,262,645 | 18 | 21 | BSD-3-Clause | 2023-03-23T06:20:07 | 2019-09-18T08:52:07 | null | UTF-8 | Python | false | false | 9,429 | py | #!/usr/bin/python
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Parses /proc/[pid]/smaps on a device and shows the total amount of swap used.
"""
from __future__ import print_function
import argpars... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
f0d8fc5a6739e6510b5819ce8a9f6155c79f922b | f8b5aafac15f408a48fabf853a918015c927e6fe | /backup/virtualenv/venv27/lib/python2.7/site-packages/openstackclient/identity/v3/role.py | 0376070907d96274184e4a7d75690462833415c3 | [] | no_license | to30/tmp | bda1ac0ca3fc61e96c2a1c491367b698d7e97937 | ec809683970af6787728c2c41f161f416155982a | refs/heads/master | 2021-01-01T04:25:52.040770 | 2016-05-13T16:34:59 | 2016-05-13T16:34:59 | 58,756,087 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,740 | py | # Copyright 2012-2013 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | [
"tomonaga@mx2.mesh.ne.jp"
] | tomonaga@mx2.mesh.ne.jp |
48dd32f18373f2b389e32630ded0044734fd4b19 | 4d44674625100e62be2bb5033339fb641bd454ac | /snippet/example/python/project/project/db/sqlalchemy/models.py | 782d92b417a09747274a173923da7001f80a4da4 | [
"MIT",
"Apache-2.0"
] | permissive | xgfone/snippet | 8b9004a649d2575b493a376c4b4f3d4a7c56a4b0 | b0b734dd35478b7ef3e6193623981f4f29b6748c | refs/heads/master | 2022-03-18T12:41:09.033144 | 2022-02-20T15:26:35 | 2022-02-20T15:26:35 | 41,615,643 | 158 | 61 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | # coding: utf-8
from __future__ import absolute_import, print_function, unicode_literals, division
import logging
from sqlalchemy.ext.declarative import declarative_base
from oslo_db.sqlalchemy import models
from sqlalchemy import create_engine
from sqlalchemy import Column, String, Integer, DateTime
from sqlalchemy.... | [
"xgfone@126.com"
] | xgfone@126.com |
a1f9f2880c5805d0642099f67fac1e61760b9185 | c342d39a064441d7c83b94e896dfbac1dc155666 | /setup.py | cc22030282c6d003af194c2c298389e898f5d44d | [
"MIT"
] | permissive | arsho/generator | a67d876bf9dded9bacdbd50a9ab3999f90c81731 | 5dc346850ec99a47ca7c074e3e5dec0b5fff30e2 | refs/heads/master | 2021-01-01T16:54:41.955771 | 2017-07-21T14:37:34 | 2017-07-21T14:37:34 | 97,951,569 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | # -*- coding: utf-8 -*-
from setuptools import setup
def readme():
with open('README.rst', encoding='utf8') as f:
return f.read()
setup(name='generator',
version='0.0.1',
description='Generator is a package for generating strong password and check strength of user defined password.',
long_... | [
"shovon.sylhet@gmail.com"
] | shovon.sylhet@gmail.com |
8f09ee1c175eaa67db58c061ed1f27c69414af94 | 20ade86a0c0f0ca6be3fae251488f985c2a26241 | /exp/analyze_5.py | d038d5fa9c073324d036a898b7df5cf86f573c6a | [] | no_license | adysonmaia/phd-sp-static | 69344fdd4edb4c216e4b88b0193308b33a30e72c | 79038d165c19f90e1f54597f7049553720f34c74 | refs/heads/master | 2023-04-14T15:59:07.414873 | 2019-10-24T07:56:37 | 2019-10-24T07:56:37 | 355,110,847 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,099 | py | import csv
import numpy as np
import scipy.stats as st
import matplotlib
import matplotlib.pyplot as plt
DPI = 100
Y_PARAM = {
'max_dv': {
'label': 'Deadline Violation - ms',
'limit': [0.0, 10.0]
},
'dsr': {
'label': 'Deadline Satisfaction - %',
'limit': [40.0, 100.0]
... | [
"adyson.maia@gmail.com"
] | adyson.maia@gmail.com |
17d235e0928561692d73711efe48d58fd5d371fa | 06aa3ec3262f6dd6866ea194ed6385f8e53509bf | /manuscript_codes/AML211DiffALL/remove_nonexistent_fromAnnotatedcsv.py | 409adfbaa7c37d20329ae26f43f38331d13472ce | [] | no_license | KuehLabUW/UPSIDE | 95ce078382792d1beb0574c3b19c04e467befa58 | 3c90de9677f24e258800cb95bce6cb528f4ad4ac | refs/heads/master | 2023-07-13T15:58:07.963672 | 2021-08-30T21:14:48 | 2021-08-30T21:14:48 | 329,134,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Mar 23 16:21:25 2019
this script concatenates fluorescent data and subim data from separate csv files
and return a merged csv file for all positions
@author: phnguyen
"""
import pandas as pd
import os
csvs_dirname = '/media/phnguyen/Data2/Imaging/CellM... | [
"kuehlab@uw.edu"
] | kuehlab@uw.edu |
b39f7d7bc5979960cc3a326e3a5e41d319fc3636 | 16c5a7c5f45a6faa5f66f71e043ce8999cb85d80 | /app/honor/student/listen_everyday/object_page/history_page.py | 014714a71b529b852af33e51e693c88f7b3b6757 | [] | no_license | vectorhuztt/test_android_copy | ca497301b27f49b2aa18870cfb0fd8b4640973e5 | f70ab6b1bc2f69d40299760f91870b61e012992e | refs/heads/master | 2021-04-03T19:26:48.009105 | 2020-06-05T01:29:51 | 2020-06-05T01:29:51 | 248,389,861 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,494 | py | # coding: utf-8
# -------------------------------------------
# Author: Vector
# Date: 2018/12/17 16:11
# -------------------------------------------
from selenium.webdriver.common.by import By
from app.honor.student.login.object_page.home_page import HomePage
from conf.base_page import BasePage
from conf.decorat... | [
"vectorztt@163.com"
] | vectorztt@163.com |
737f7c4f3db32fbbc32c0d5f8ed335fc3f63e82b | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20200504/example_egoist/walker.py | 519c662fb68e00489ebc5b0bbaa8f85170fd985e | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 42 | py | ../../20200503/example_metashape/walker.py | [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
a9f60f3ed1fe3f516a90a7101d86cf5d08986545 | 3b80ec0a14124c4e9a53985d1fa0099f7fd8ad72 | /realestate/urls.py | 11e290ebf235d7ae4d3ce6986f61c81f4176ded0 | [] | no_license | aayushgupta97/RealEstate_Django_TTN | ec4dde7aa3a1bcfa4d88adb5ea7ebb20127e7489 | 9af7c26c85c46ac5b0e3b3fad4a7b1067df20c47 | refs/heads/master | 2020-05-04T08:09:03.917026 | 2019-04-18T08:30:05 | 2019-04-18T08:30:05 | 179,041,202 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
from pages import views as page_views
urlpatterns = [
path('properties/', include('properties.urls')),
path('', include('pages.urls')),
path('admin/', admin.sit... | [
"aayushgupta2097@gmail.com"
] | aayushgupta2097@gmail.com |
fc2f5b4eaf1d9c7e2539b1ef43e5b12ba9fbe924 | 38fecea29fa82eb203fd964acd54ffacc7e4c388 | /chapter03/page048_colored_grid.py | 9a62621c8c535c213b8b8c6e2da4ef4c1286ade9 | [] | no_license | mjgpy3/mfp-python3-examples | 3c74f09c6155e9fbf35bd8ec104bdfe4429b9f4b | 09547141d25859fe93a6a0e70c828877ee93f736 | refs/heads/master | 2020-12-03T18:38:30.411800 | 2020-01-18T20:42:20 | 2020-01-18T20:42:20 | 231,431,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | #!/usr/bin/env python3
from page040_grid import Grid
class ColoredGrid(Grid):
# Cannot do specific property setters in Python
def set_distances(self, distances):
self.distances = distances
farthest, self.maximum = distances.max()
def background_color_for(self, cell):
distance = self.distances[cell... | [
"mjg.py3@gmail.com"
] | mjg.py3@gmail.com |
4aaf7f9daeeb93706d4bbb8c3bd8d49f690c0c93 | d9b3289354d8f75ae8dd9988a89b08596bd4cae9 | /pgadmin/pgadmin/browser/server_groups/servers/resource_groups/__init__.py | 336fe7d01d25a73d9bfd68a2da083098d2be10c2 | [] | no_license | DataCraft-AI/pgdevops | 8827ab8fb2f60d97a22c03317903b71a12a49611 | f489bfb22b5b17255f85517cb1443846133dc378 | refs/heads/master | 2023-02-10T05:44:00.117387 | 2020-01-22T13:40:58 | 2020-01-22T13:40:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,471 | py | ##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2018, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
##########################################################################
"""Implements Res... | [
"denis@lussier.io"
] | denis@lussier.io |
de0beb1610545ee78ac1dcc707d7fc40e2c1a0fb | 748bbab674d1a5ae6a59bfd4ac22efcb4355e82a | /Prog-II/Back_Front/back/modelo.py | 500e048c4dda6a3d2bb759c389dc9ab5b947b11b | [] | no_license | Lima001/Tecnico-IFC | 8819114a35080eb914a2d836a0accbf79d3268d8 | 771fa39dd6046a9d92860fbde70c10dcecd975a3 | refs/heads/master | 2021-02-07T01:31:04.929420 | 2020-06-24T02:09:38 | 2020-06-24T02:09:38 | 243,967,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | from peewee import *
arq = "dados.db"
db = SqliteDatabase(arq)
class BaseModel(Model):
class Meta:
database = db
class Cachorro(BaseModel):
nome = CharField()
idade = IntegerField()
raca = CharField()
if __name__ == "__main__":
db.connect()
db.create_tables([Cachorro])
dog1 = C... | [
"limaedugabriel@gmail.com"
] | limaedugabriel@gmail.com |
0dabd218576ed96dbe4a021fce762f03727b90ae | b4948c322401435a02370dd96708399fda4a48fc | /demo/simple_code/test_pass.py | 453fa756db68194cdd14c29692c9fa5fb24807be | [] | no_license | fengbingchun/Python_Test | 413e2c9bb844a5b3641e6e6daf37df277589006e | eaedcd55dbc156b685fa891538e1120ea68fa343 | refs/heads/master | 2023-06-21T02:28:07.310364 | 2023-06-11T04:46:29 | 2023-06-11T04:46:29 | 99,814,791 | 7 | 6 | null | 2022-09-30T00:38:06 | 2017-08-09T14:01:48 | C++ | UTF-8 | Python | false | false | 428 | py | # Blog: https://blog.csdn.net/fengbingchun/article/details/125242357
# 1. empty function
def func():
pass # remember to implement this
func()
# 2. empty class
class fbc:
pass
fbc()
# 3. loop
num = 5
for i in range(num):
pass
# 4. conditional statement
a = 5
b = 10
if (a < b):
pass
else:
print("b<=a")
for l... | [
"fengbingchun@163.com"
] | fengbingchun@163.com |
fa791cbb653d2472098d0a3b028680e2bc9b6414 | 61432a6d3b25e5b3142fe1f154acf5764bc2d596 | /custom_report/controllers/controllers.py | 0d654793e8486cc3dde196ee71832650723dcae7 | [] | no_license | halltech-ci/tfc_agro | 8c2c7911901e8c7bcf548fb05ca8f7891ab4ef51 | a737dfdccfca51136cb01894a00f21f5365a771a | refs/heads/master_1 | 2020-12-22T08:59:40.507801 | 2020-08-17T21:20:18 | 2020-08-17T21:20:18 | 236,734,216 | 0 | 3 | null | 2020-05-09T23:19:24 | 2020-01-28T12:50:00 | Python | UTF-8 | Python | false | false | 788 | py | # -*- coding: utf-8 -*-
from odoo import http
# class CustomReport(http.Controller):
# @http.route('/custom_report/custom_report/', auth='public')
# def index(self, **kw):
# return "Hello, world"
# @http.route('/custom_report/custom_report/objects/', auth='public')
# def list(self, **kw):
# ... | [
"maurice.atche@halltech-africa.com"
] | maurice.atche@halltech-africa.com |
1c76c0d73c6d00dda9f771fd4eb96c5024ac5792 | 0ab40aa11442ef5868438844ca193a88cc2ab0af | /Crosstalk/analyze_cross_talk.py | 10c923b7c414428f9d01a510ade08e2d6b0559f8 | [] | no_license | nischalmishra/TEMPO_python | 2d85b0a401e776e4a1ae65920bd7553a3896170a | 643a9577fd6686ec32d85205b5988ec757eec4c8 | refs/heads/master | 2020-07-20T10:20:40.333931 | 2019-09-05T14:26:36 | 2019-09-05T14:26:36 | 206,623,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,238 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 19 10:38:50 2017
@author: nmishra
"""
import os
import numpy as np
import matplotlib.pyplot as plt
from scipy.io.idl import readsav
from mpl_toolkits.axes_grid1 import make_axes_locatable
import pandas as pd
def read_outlier_mask():
outlier_mask= np.genfromtxt(r'C:... | [
"nischal.mishra@gmail.com"
] | nischal.mishra@gmail.com |
a58b76fab4d8fa60abf11ac71cab242a7beccad6 | c5a1c95e9d8ce937f71caf8340cf11fe98e64f56 | /day9/problem5/[이재형] 하샤드 수.py | ff36e229a9d9bb46a7cac28263c8e782cc36fcf6 | [] | no_license | Boot-Camp-Coding-Test/Programmers | 963e5ceeaa331d99fbc7465f7b129bd68e96eae3 | 83a4b62ba2268a47859a6ce88ae1819bc96dcd85 | refs/heads/main | 2023-05-23T08:21:57.398594 | 2021-06-12T16:39:21 | 2021-06-12T16:39:21 | 366,589,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | def solution(x):
a = []
for i in range(len(str(x))):
a.append(int(str(x)[i]))
if x % sum(a) == 0:
return True
else :
return False
| [
"noreply@github.com"
] | Boot-Camp-Coding-Test.noreply@github.com |
1e1a220013ea65a97547f55b52bf0e6e8ba7ee32 | 4b742f57981b3db902e7048fe05faf263ff52138 | /base/migrations/0010_pgpkey_passphrase.py | 174c1f9c2f96097e66f55808d6348a2d55d10933 | [
"MIT"
] | permissive | erichuang2015/Hiren-MailBox | eace0c90b5815f3e4a660dfda75910256704db96 | ff4cad0998007e8c9a2a200af3a2e05a3d947d12 | refs/heads/master | 2020-04-02T01:31:55.680288 | 2018-09-13T15:21:46 | 2018-09-13T15:21:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # Generated by Django 2.0.4 on 2018-05-22 04:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('base', '0009_auto_20180504_0501'),
]
operations = [
migrations.AddField(
model_name='pgpkey',
name='passphrase',
... | [
"git.pyprism@gmail.com"
] | git.pyprism@gmail.com |
f8b32217c9daae58faab52a87b96758125de8793 | 4fe52c6f01afb05ac787a361a239466ceac69964 | /pyjournal2/build_util.py | 9acc2f6977346f32e542ec3806689de1074d6201 | [
"BSD-3-Clause"
] | permissive | cmsquared/pyjournal2 | 85beec6e3a0423d0ee873d189c3a879dd9a7db7c | cfa67529033c5fd7bcd5c60b87c8122ef8c22425 | refs/heads/master | 2020-04-03T18:30:15.119923 | 2018-10-31T00:41:07 | 2018-10-31T00:41:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,934 | py | """This module controls building the journal from the entry sources"""
import os
import webbrowser
import pyjournal2.shell_util as shell_util
def get_source_dir(defs):
"""return the directory where we put the sources"""
return "{}/journal-{}/source/".format(defs["working_path"], defs["nickname"])
def get_to... | [
"michael.zingale@stonybrook.edu"
] | michael.zingale@stonybrook.edu |
30a77a5b2a326c40c06e455066908091bac0870a | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_113/ch44_2020_09_30_10_47_17_987015.py | f078ba9a9524ee5b166c21af69a4c0e35a23748f | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | #x=True
lista = ['Janeiro','Fevereiro','Março','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembro','Dezembro']
#while x==True:
mes = input('Qual o mês? ')
print(lista[mes]) | [
"you@example.com"
] | you@example.com |
224efd07081d700cef2f4bff2f9f658dcccc15e2 | 256efb0e9ff8b7420b412c260e6c05cd7c52c5ce | /B/resolve.py | 5e0f2bb0fd1bde1c3ffc1f155dfc45171749a311 | [
"MIT"
] | permissive | staguchi0703/ABC176 | 37a85f6d83570967696712a98dd39e1f1a08b04b | 16f2f188ef5c73f85d08b028f14cd963b33d55af | refs/heads/master | 2022-12-07T18:15:02.659948 | 2020-08-24T15:00:29 | 2020-08-24T15:00:29 | 289,476,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | def resolve():
'''
code here
'''
N = input()
sum_num = 0
for item in N:
sum_num += int(item)
if sum_num % 9 == 0:
print('Yes')
else:
print('No')
| [
"s.taguchi0703@gmail.com"
] | s.taguchi0703@gmail.com |
611a492f714cd96b2ba9c94b3644617e50c8c6ce | 86294539ffa65b34a862b200c84ee068187dc743 | /do2things/manage.py | 78b2063220ba03afa6e0bd0a501b0280f45ed107 | [
"MIT"
] | permissive | tlake/do2things | 6acb4f43990b0d0e4a9b80090e21246c1d39398a | 4e83bea1fc579006200e9ca3a627c1bc04a6a53b | refs/heads/master | 2021-01-21T04:24:57.108087 | 2016-08-22T08:56:11 | 2016-08-22T08:56:11 | 39,576,039 | 0 | 0 | null | 2015-08-27T01:28:15 | 2015-07-23T15:40:53 | JavaScript | UTF-8 | Python | false | false | 252 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "do2things.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"tanner.lake@gmail.com"
] | tanner.lake@gmail.com |
3d2281ceea099e3636a2d5593f4e69d3ab66ddbf | c7846ee0828539c2a2019928c1cbf3abd35665bf | /1226.py | e40445bed21211b32f058a29fb64d1cef368c25a | [] | no_license | whiteblue0/sw_problems | 10476601c8d6d68d42e2f30af87fcde1e5dbbcc5 | 1cefc6236cccc20477bf4eadb458a0fd06b09126 | refs/heads/master | 2020-06-20T10:44:57.463275 | 2020-05-03T07:27:57 | 2020-05-03T07:27:57 | 197,098,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | import sys
sys.stdin = open('1226.txt')
def ispass(y,x):
if 0<=y<L and 0<=x<L and data[y][x] != 1 and visited[y][x] == 0:
return True
else:
return False
def DFS(sy,sx):
global end
visited[sy][sx] = 1
if data[sy][sx] == 3:
end = 1
for i in range(4):
ny = sy + ... | [
"21port@naver.com"
] | 21port@naver.com |
0296d247cff0d46ffe781196db159f2dc53ad9a7 | 0dc3e9b70da8ccd056e0a0fab2b1d8f850c3d470 | /lantern/django/django_celery/src/apps/dealers/models.py | bc779127742bd20a2e9942ebdd4779103f3156e4 | [] | no_license | ArturYefriemov/green_lantern | 28e7150af7b9d2281a107ad80026828ad77af62a | 2841b647e1bfae4a7505e91e8a8695d03f35a3a2 | refs/heads/master | 2021-03-01T16:54:58.881835 | 2020-11-17T19:42:23 | 2020-11-17T19:42:23 | 245,799,969 | 0 | 0 | null | 2020-07-14T18:51:13 | 2020-03-08T11:13:32 | Python | UTF-8 | Python | false | false | 735 | py | from django.contrib.auth.models import AbstractUser
from django.db import models
# Create your models here.
class Country(models.Model):
name = models.CharField(max_length=32, unique=True)
class City(models.Model):
name = models.CharField(max_length=32, db_index=True)
country = models.ForeignKey(to='C... | [
"odarchenko@ex.ua"
] | odarchenko@ex.ua |
0f12e75f326736ce1da7a7a6b1fb5297088bafd5 | 5bfbf31332a5c4750ab57d305f400aa5e20bf6bd | /contrib/great_expectations_zipcode_expectations/great_expectations_zipcode_expectations/expectations/expect_column_values_to_be_valid_utah_zip.py | 5c11f0c756f7c389107ebd4a9b7e6f5e7f2270a7 | [
"Apache-2.0"
] | permissive | alexsherstinsky/great_expectations | 9d4ae4c06546c5ab2ee0d04fb7840e3515c25677 | 2fc4bb36a5b3791c8ada97c5364531cd7510d4ed | refs/heads/develop | 2023-08-04T13:13:38.978967 | 2023-07-24T18:29:46 | 2023-07-24T18:29:46 | 203,888,556 | 1 | 0 | Apache-2.0 | 2020-07-27T09:12:21 | 2019-08-22T23:31:19 | Python | UTF-8 | Python | false | false | 5,481 | py | from typing import Optional
import zipcodes
from great_expectations.core.expectation_configuration import ExpectationConfiguration
from great_expectations.execution_engine import PandasExecutionEngine
from great_expectations.expectations.expectation import ColumnMapExpectation
from great_expectations.expectati... | [
"noreply@github.com"
] | alexsherstinsky.noreply@github.com |
ec61f2c11c142888f2e43279e15779776f084d75 | b75b3bb6a2c6dd8b4a5b89718eb83d6451000cd4 | /hackbright.py | 715553d9b927069928d6bfc85808ce5824d2e0b2 | [] | no_license | CodeHotPink/project-tracking-flask | 22efebeaddf83d2746ba9137f1b478da8c34b1a9 | bdd58b17034406f28d5ceaa0c834eb0d6ad06be3 | refs/heads/master | 2020-04-03T18:46:04.010020 | 2018-10-31T04:02:38 | 2018-10-31T04:02:38 | 155,496,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,034 | py | """Hackbright Project Tracker.
A front-end for a database that allows users to work with students, class
projects, and the grades students receive in class projects.
"""
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
db = SQLAlchemy()
def connect_to_db(app):
"""Connect th... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
23c2de5fd645c39cbadd4ecdb4a8572487884ba8 | 069c2295076c482afadfe6351da5ae02be8e18e6 | /tests/urlpatterns/path_same_name_urls.py | d7ea5431b1e2e70e97338b78591e99ba67df435e | [
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"GPL-1.0-or-later",
"Python-2.0.1",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-other-permissive",
"Python-2.0"
] | permissive | django/django | 5eb557f57053631cd4f566f451e43197309dbeeb | c74a6fad5475495756a5bdb18b2cab2b68d429bc | refs/heads/main | 2023-09-01T03:43:44.033530 | 2023-08-31T08:27:32 | 2023-08-31T08:27:32 | 4,164,482 | 73,530 | 38,187 | BSD-3-Clause | 2023-09-14T20:03:48 | 2012-04-28T02:47:18 | Python | UTF-8 | Python | false | false | 1,483 | py | from django.urls import path, re_path, register_converter
from . import converters, views
register_converter(converters.DynamicConverter, "to_url_value_error")
urlpatterns = [
# Different number of arguments.
path("number_of_args/0/", views.empty_view, name="number_of_args"),
path("number_of_args/1/<valu... | [
"felisiak.mariusz@gmail.com"
] | felisiak.mariusz@gmail.com |
c5673a94f94f72233370c9935ad7b182c58ba065 | 47a98fed42dc2e0b589e3f08ff9342a3d924c7ac | /pyblog/XDG_CACHE_HOME/Microsoft/Python Language Server/stubs.v1/epXVRECNA2MadRw60lZ38aCPhTXzoduilN38-UtKc2M=/python.sys.pyi | cb99aafec30445a55c1b4a04ac86042755257854 | [] | no_license | mehedi432/python | bd1c592edd622ae435c9f81c0771684048290e0a | 725236e1b700ef41612ccf4f2aaccdf9bc1586d4 | refs/heads/master | 2020-06-06T22:31:44.548167 | 2019-06-28T07:15:27 | 2019-06-28T07:15:27 | 145,439,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,814 | pyi | import _io as _mod__io
import builtins as _mod_builtins
import types as _mod_types
def __displayhook__():
'displayhook(object) -> None\n\nPrint an object to sys.stdout and also save it in builtins._\n'
pass
__doc__ = "This module provides access to some objects used or maintained by the\ninterpreter and to fu... | [
"aamehedi93@gmail.com"
] | aamehedi93@gmail.com |
cb4b16dd237ab801af0b21ca00cf08970de29bf8 | e8c82271070e33bb6b181616a0a518d8f8fc6158 | /fce/numpy/distutils/tests/f2py_ext/tests/PaxHeader/test_fib2.py | a56021af7be6b185d62870db000c6c9d53082297 | [] | no_license | DataRozhlas/profil-volice-share | aafa0a93b26de0773fa6bf2b7d513a5ec856ce38 | b4424527fe36e0cd613f7bde8033feeecb7e2e94 | refs/heads/master | 2020-03-18T01:44:26.136999 | 2018-05-20T12:19:24 | 2018-05-20T12:19:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | 17 gid=713727123
15 uid=3629613
20 ctime=1458667064
20 atime=1458667064
23 SCHILY.dev=16777220
23 SCHILY.ino=31296593
18 SCHILY.nlink=1
| [
"honza@datastory.cz"
] | honza@datastory.cz |
00b42fcbfbde767ac076c1bdd0d7fb34c5b3382c | 67b0379a12a60e9f26232b81047de3470c4a9ff9 | /comments/models.py | 27fec916d93089637204f146a37c7c27c5e70df4 | [] | no_license | vintkor/whitemandarin | 8ea9022b889fac718e0858873a07c586cf8da729 | 5afcfc5eef1bb1cc2febf519b04a4819a7b9648f | refs/heads/master | 2021-05-06T03:35:09.367375 | 2017-12-20T15:43:08 | 2017-12-20T15:43:08 | 114,904,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,969 | py | # -*- coding: utf-8 -*-
from django.db import models
from mptt.models import MPTTModel, TreeForeignKey
from tinymce import models as tinymce_model
import datetime
class Comments(MPTTModel):
prod_name = models.CharField(max_length=250, blank=True, db_index=True, verbose_name="Название")
paket = models.CharField... | [
"alkv84@yandex.ru"
] | alkv84@yandex.ru |
372ffb8f05abddeea2704b81e3dfd8ba8d5fa88e | 236332a967f8f02291b58cab7addfeabdfe7b9a2 | /experiments/tests/testing_2_3.py | 207477ec55fb3dd07e0cb74d22864d4061c012cc | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ConsumerAffairs/django-experiments | 2dbf04b7f0e7ebdff6d5e7879afeb26f7fdb5150 | 4f1591c9b40390f7302f3777df231ffe3629f00d | refs/heads/master | 2021-01-20T11:10:30.199586 | 2018-04-20T21:26:18 | 2018-04-20T21:26:18 | 101,666,220 | 0 | 10 | MIT | 2018-04-20T21:26:19 | 2017-08-28T16:56:16 | Python | UTF-8 | Python | false | false | 218 | py | # coding=utf-8
try:
from unittest import mock, skip
except ImportError:
import mock
class DummyLockTests(object):
@classmethod
def new(cls):
test_class = cls
return skip(test_class)
| [
"fran.hrzenjak@gmail.com"
] | fran.hrzenjak@gmail.com |
f6bb5a74f05f10651cae3ee6b1e226e5f896c8de | 65e0c11d690b32c832b943fb43a4206739ddf733 | /bsdradius/tags/release20060404_v_0_4_0/bsdradius/Typecast.py | 436a5e6ae0899419c20edf50298dd09eb597dcaf | [
"BSD-3-Clause"
] | permissive | Cloudxtreme/bsdradius | b5100062ed75c3201d179e190fd89770d8934aee | 69dba67e27215dce49875e94a7eedbbdf77bc784 | refs/heads/master | 2021-05-28T16:50:14.711056 | 2015-04-30T11:54:17 | 2015-04-30T11:54:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,761 | py | ## BSDRadius is released under BSD license.
## Copyright (c) 2006, DATA TECH LABS
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following conditions are met:
## * Redistributions of source code must retain the above c... | [
"valdiic@72071c86-a5be-11dd-a5cd-697bfd0a0cef"
] | valdiic@72071c86-a5be-11dd-a5cd-697bfd0a0cef |
77fdcf1dbfc3a529545552210737968c88bf404b | ffaeaf54e891c3dcca735347f27f1980f66b7a41 | /python/1.POP/1.base/01.helloworld.py | 015e87763fe1f07c2320ce7fe71f056ea13d317c | [
"Apache-2.0"
] | permissive | dunitian/BaseCode | 9804e3d8ff1cb6d4d8cca96978b20d168072e8bf | 4855ef4c6dd7c95d7239d2048832d8acfe26e084 | refs/heads/master | 2020-04-13T09:51:02.465773 | 2018-12-24T13:26:32 | 2018-12-24T13:26:32 | 137,184,193 | 0 | 0 | Apache-2.0 | 2018-06-13T08:13:38 | 2018-06-13T08:13:38 | null | UTF-8 | Python | false | false | 970 | py | '''三个单引号多行注释:
print("Hello World!")
print("Hello World!")
print("Hello World!")'''
"""三个双引号多行注释:
print("Hello World!")
print("Hello World!")
print("Hello World!")"""
# 单行注释 输出
print("Hello World!")
# 定义一个变量并输出
name = "小明"
print(name)
print("x" * 10)
print("dnt.dkill.net/now", end='')
print("带你走进中医经络")
print("dnt.d... | [
"39723758+lotapp@users.noreply.github.com"
] | 39723758+lotapp@users.noreply.github.com |
4e72b71582b2240f32ecf38474428072ef1b7413 | 9e7b9e91b8425061a5ad36e0dd630a799ec79f6f | /opencv_cookbook.py | 49d0d5b8c67cdd2753d61353ec3e42ef9014ce83 | [] | no_license | OlgaBelitskaya/colab_notebooks | c27fad60f7e4ca35287e2561487b5d9d82efde43 | d568149c8bcfb0025f7b09120ca44f639ac40efe | refs/heads/master | 2023-07-07T23:02:49.289280 | 2021-08-14T08:16:38 | 2021-08-14T08:16:38 | 158,067,383 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,397 | py | # -*- coding: utf-8 -*-
"""opencv_cookbook.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1GD7Oi1LtFaEi8VOjiBM5cj5ayWpaejaf
# OpenCV Cookbook
## Libraries & Color Tools
"""
import warnings; warnings.filterwarnings('ignore')
import urllib,cv2
fr... | [
"safuolga@gmail.com"
] | safuolga@gmail.com |
88ea9f503fbe4878090275c2480106a7648b48f2 | f94e4955f9d16b61b7c9bff130b9d9ee43436bea | /labs/lab06/lab06.py | 1c1dac20000f742c21337b538d3d8ac3b9563bc4 | [] | no_license | j2chu/dsc80-sp19 | bd1dade66c19b920a54b0f8551fd999185449f86 | dd48210a7cbadfb6470104b275f34085437e4766 | refs/heads/master | 2020-06-01T23:22:32.727488 | 2019-06-07T01:46:11 | 2019-06-07T01:46:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,275 | py | import os
import pandas as pd
import numpy as np
import requests
import bs4
import json
# ---------------------------------------------------------------------
# Question # 1
# ---------------------------------------------------------------------
def question1():
"""
NOTE: You do NOT need to do anything wit... | [
"aaron.fraenkel@gmail.com"
] | aaron.fraenkel@gmail.com |
e9eef0ae487bb90ae983c14902b33bc6d26c7a4f | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/429/usersdata/313/105928/submittedfiles/jogoDaVelha.py | 6702e638a0b195b5ad2f3fe0c84a675088f19cc5 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | print (" BEM-VINDO AO JOGO DA VELHA ")
print("O primeiro jogador será o (X) e o segundo o (O) ")
posicao = """ posicoes do jogo
1 | 2 | 3
-----------
4 | 5 | 6
-----------
7 | 8 | 9
"""
print (posicao)
posic... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
bc95461ad6fdc0ef95c4d671c174b643f840fd99 | 3354e6bdd4aeb2ddec84e6a8036c90cd24b6577a | /(구)자료구조와 알고리즘/(구)Quizes/backjoon/back_1002.py | b90ab7cd42413d530cb002dd703cd4c028e3c9d1 | [] | no_license | hchayan/Data-Structure-and-Algorithms | 1125d7073b099d8c6aae4b14fbdb5e557dcb9412 | be060447e42235e94f93a0b2f94f84d2fd560ffe | refs/heads/master | 2023-01-05T10:15:02.862700 | 2020-11-04T08:16:56 | 2020-11-04T08:16:56 | 209,513,516 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | import sys
import math
n = int(sys.stdin.readline().rstrip())
def getAns():
x1, y1, r1, x2, y2, r2 = map(int, sys.stdin.readline().rstrip().split())
leng = math.sqrt((x2-x1)**2+(y2-y1)**2)
if r1 == r2 and x1 == x2 and y1 == y2:
return -1
if r1 > r2:
r1, r2 = r2, r1
if leng > r1+r2:
return 0
elif leng =... | [
"k852012@naver.com"
] | k852012@naver.com |
4b8450ca316cbf700f09c76a6c374e71ef1ce7c9 | 62b78ad6d3ec041ad20e4328d1730d815c9e35f1 | /Twosteps.py | 8c659c092569737b987696cb0d9e96f753e7dd19 | [] | no_license | Jamshid93/ForLoops2 | 7fe5b3240370d88a888f2d4609fb6d7787965a4d | 296de0ccc51872001e45e20926b91a4528abd7a5 | refs/heads/master | 2022-01-26T05:22:18.206075 | 2019-07-20T04:12:37 | 2019-07-20T04:12:37 | 197,874,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | for item in range(3, 14, 2): # this is code result 3,5,...13. Because after 14 writin 2
print(item) | [
"hamzayevjf@gmail.com"
] | hamzayevjf@gmail.com |
4acf925d2f474e88d0b195933e8e7df31a2aa765 | 9446feb2a94486ac16c585f712dbcbea7d112a9d | /src/taskmaster/cli/master.py | b78926059cf4a36ee7d184b223ba2326de9179e4 | [
"Apache-2.0"
] | permissive | jdunck/taskmaster | c16c879a546dd2ac383f804788e2d8ae2606abd1 | 04a03bf0853facf318ce98192db6389cdaaefe3c | refs/heads/master | 2023-08-23T19:29:22.605052 | 2012-05-16T00:52:24 | 2012-05-16T00:52:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 958 | py | """
taskmaster.cli.master
~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010 DISQUS.
:license: Apache License 2.0, see LICENSE for more details.
"""
def run(target, reset=False, size=10000, address='tcp://0.0.0.0:3050'):
from taskmaster.server import Server, Controller
server = Server(address, size=size)
contr... | [
"dcramer@gmail.com"
] | dcramer@gmail.com |
8f4026d972f244c0391ff8f24625e881b3fc284a | 1bf7f5fdfc5e7dbbc5ba14698ff488aa76b34d58 | /virtual/bin/gunicorn_paster | 3977588403c354347f27e635608040cf5dca8a00 | [
"MIT"
] | permissive | Brian23-eng/News-Highlight | ca86fab23ebfc429b31624c36ac7c3520d46966d | 19c8816cbcf2980a381d01788ba604cc85c8ebaa | refs/heads/master | 2021-06-25T02:05:01.848783 | 2019-10-17T08:09:19 | 2019-10-17T08:09:19 | 214,452,153 | 0 | 0 | MIT | 2021-03-20T01:54:54 | 2019-10-11T14:06:20 | Python | UTF-8 | Python | false | false | 282 | #!/home/brian/Documents/Core/Python/Flask/News-Highlight/virtual/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.pasterapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"b.odhiambo.bo@gmail.com"
] | b.odhiambo.bo@gmail.com | |
92467aabe2d3e0851ea17a982715577fa57c6fde | 4aa6b7c3a5ae3817007e09ad1289c1e9f7a355c0 | /dynamic_programming/best-time-to-buy-and-sell-stock-iv.py | 57dc30b64f80d1c90423152d8d4b8f9a47789989 | [] | no_license | liuhuipy/Algorithm-python | 8f5143e06cf5fa2de2c178e3ba9e5fd12b9bcdf7 | 4e92a0b874f956d1df84d1493f870a5d1f06cde2 | refs/heads/master | 2021-06-03T04:19:01.946149 | 2021-01-08T07:44:40 | 2021-01-08T07:44:40 | 99,838,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,937 | py | """
买卖股票的最佳时机IV:
给定一个数组,它的第 i 个元素是一支给定的股票在第 i 天的价格。
设计一个算法来计算你所能获取的最大利润。你最多可以完成 k 笔交易。
注意: 你不能同时参与多笔交易(你必须在再次购买前出售掉之前的股票)。
示例 1:
输入: [2,4,1], k = 2
输出: 2
解释: 在第 1 天 (股票价格 = 2) 的时候买入,在第 2 天 (股票价格 = 4) 的时候卖出,这笔交易所能获得利润 = 4-2 = 2 。
示例 2:
输入: [3,2,6,5,0,3], k = 2
输出: 7
解释: 在第 2 天 (股票价格 ... | [
"liuhui_py@163.com"
] | liuhui_py@163.com |
001acef57576b87eb38040f53889537d452e2f72 | 552865ae5daa143bc6a7dec46f7febe49f0a7226 | /src/mr/cabot/kml.py | 96d3de4531e1a03cd61c963cb5568f2f5a0be081 | [] | no_license | collective/mr.cabot | 231a4a96c38e793356c4d06438d236d447e97bc8 | 3e905d80ed5eac52a258b74d19abf5ab182d49e2 | refs/heads/master | 2023-03-22T15:30:19.171188 | 2013-01-27T17:54:22 | 2013-01-27T18:32:03 | 6,816,996 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,045 | py | import datetime
import urllib
import os
import simplekml
from mr.cabot.interfaces import IListing, IGeolocation
import sebastian
colors = {"commit": "ff00ff00", "mailing-list": "ffff0000", "answer": "ff00ffff"}
def join(objs):
kml = simplekml.Kml()
unique_locations = set()
for obj in objs:
... | [
"git@matthewwilkes.name"
] | git@matthewwilkes.name |
9c1c1496d9e87ef0b64186d9951572487e4eec52 | 2d5648035b8bd32b4a6ded311e48975e5ea100d4 | /runs/bro/100KB/src2-tgt1/ssl-par-ssl-iter00100.cfg.py | 0df43d2c6562ed9dcdd7e02e3967e1cde40ca70a | [
"MIT"
] | permissive | Largio/broeval | 3975e54a1eaead6686c53e5e99250a00becbe1e0 | 89e831d07f066100afdd1a5b220f9f08f1c10b3d | refs/heads/master | 2021-05-08T08:54:06.498264 | 2017-11-10T17:09:02 | 2017-11-10T17:09:02 | 92,508,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py |
# Write results to this file
OUTFILE = 'runs/bro/100KB/src2-tgt1/ssl-par-ssl-iter00100.result.csv'
# Source computers for the request
SOURCE = ['10.0.0.1', '10.0.0.3']
# Target machines for the requests (aka server)
TARGET = ['10.0.0.2']
# IDS Mode. (ATM: noids, min, max, http, ssl, ftp, icmp, mysql)
IDSMODE = 'ssl... | [
"larswiete@googlemail.com"
] | larswiete@googlemail.com |
3e9b63e9492405f039f1e350d73adff14fddf664 | 39ab815dfdbab9628ede8ec3b4aedb5da3fd456a | /aql/aql/options/aql_option_types.py | e93027919b544a7de53973e716f7a8f385c8a943 | [
"MIT"
] | permissive | menify/sandbox | c03b1bf24c1527b47eb473f1acc433f17bfb1d4f | 32166c71044f0d5b414335b2b6559adc571f568c | refs/heads/master | 2016-09-05T21:46:53.369065 | 2015-04-20T06:35:27 | 2015-04-20T06:35:27 | 25,891,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,600 | py | #
# Copyright (c) 2011,2012 The developers of Aqualid project - http://aqualid.googlecode.com
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the "Software"), to deal in the Software without restriction,
# including without limitati... | [
"menify@a28edc5c-ec3e-0410-a3da-1b30b3a8704b"
] | menify@a28edc5c-ec3e-0410-a3da-1b30b3a8704b |
46f9074e93f7bef5beaa27844351f2b1ba6935da | 3307766701d680af6d12a726a2d98df2cb1830e5 | /jams/gcj/2013/1C/C/C.py | 0660c807359fca4cfb396ebfa66c729d1b5b2f9e | [] | no_license | dpaneda/code | c1a54037a275fa7044eb5c2d6079f052dd968615 | 7da1ede33a6a7cd19cbd0db517d91e7cccfbbfff | refs/heads/master | 2023-01-07T18:41:00.816363 | 2022-12-30T09:24:22 | 2022-12-30T09:24:22 | 1,583,913 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,495 | py | #!/usr/bin/python2
import sys
import bisect
def calculate_atacks(tribes):
# We calculate attacks day by day, until no tribe have any attacks left
attacks = {}
for tribe in tribes:
for i in xrange(0, tribe[1]):
d = tribe[0]
if d not in attacks:
attacks[d] = ... | [
"dpaneda@gmail.com"
] | dpaneda@gmail.com |
f85d432e037030d3e230472ed90ab71633bfd965 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/benchmarks/sieve-6.py | 50bed63741a7b659fb9658ec148349d295ad58a5 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,280 | py | # A resizable list of integers
class Vector(object):
$ClassBody
# A faster (but more memory-consuming) implementation of vector
class DoublingVector(Vector):
doubling_limit:int = 1000
# Overriding to do fewer resizes
def increase_capacity(self:"DoublingVector") -> int:
if (self.capacity() <= s... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
7cb4c2732a9e0437ad2c3c1be8df7a72b03dab80 | b8062e01860960131b37e27298b6b755b4191f5f | /python/level1_single_api/9_amct/amct_pytorch/resnet-101/src/resnet-101_calibration.py | 1fb64a80ea43a7e08efa9490757866a88b3a89a4 | [
"Apache-2.0"
] | permissive | RomanGaraev/samples | 4071fcbe6bf95cf274576665eb72588568d8bcf2 | 757aac75a0f3921c6d1b4d98599bd7d4ffda936b | refs/heads/master | 2023-07-16T02:17:36.640036 | 2021-08-30T15:14:05 | 2021-08-30T15:14:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,051 | py | """
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"derek.qian.wang@huawei.com"
] | derek.qian.wang@huawei.com |
4af4f611f29d8399e7635e13af155fc04e99e0b9 | 9e1dcb4f71b7eda84bbf0855d574eb38719d21a9 | /nested_loops_prime_number.py | 09ead76ff7a45ba184bcf3f6b8ff47bf66b017c6 | [] | no_license | ayoubabounakif/edX-Python | 689c2730458513151fc3b7a69f6a3e8b25462028 | 2449616fd6d9d8d8d74819cff24f3a54bff9dd4b | refs/heads/master | 2020-12-30T03:46:10.271688 | 2020-02-07T05:28:09 | 2020-02-07T05:28:09 | 238,849,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,763 | py | #ALGORITHM
'''
1. Select a number
2. Select a divisor and set it equal to 2.
3. Assume number is prime
4. If divisor is less then the number go to step 5 else go to step 8
5. If remainder of (number/divisor) is 0 then number is not prime(exit/stop)
6. Add one to the di... | [
"noreply@github.com"
] | ayoubabounakif.noreply@github.com |
556a064c6aaa406e6208c1055530438590c6f151 | 9b2f4810b093639209b65bbcb5fa07125e17266f | /src/radical/pilot/umgr/staging_input/__init__.py | 66be18b437eb382c61a394d1bf9f1abbbf8f82d4 | [
"MIT"
] | permissive | karahbit/radical.pilot | 887d25d370d08e3455f19cd240677b62278ef67f | c611e1df781749deef899dcf5815728e1d8a962e | refs/heads/devel | 2020-12-21T09:54:10.622036 | 2020-08-20T18:18:12 | 2020-08-20T18:18:12 | 254,967,331 | 0 | 0 | NOASSERTION | 2020-05-01T00:47:51 | 2020-04-11T22:37:20 | null | UTF-8 | Python | false | false | 141 | py |
__copyright__ = "Copyright 2016, http://radical.rutgers.edu"
__license__ = "MIT"
from .base import UMGRStagingInputComponent as Input
| [
"andre@merzky.net"
] | andre@merzky.net |
4285a06223ef406e7b6a8cfcba809f60b3d98731 | 57eb2354f8fba9d46c8edcfac60c13fc0468d950 | /Lekhaka/deformer_noiser.py | af37dc110bc7fa9c610374b8ecf483f63c73effc | [] | no_license | rakeshvar/Lekhaka | 597e91e60c30c566e6f792af2d1378205f698087 | 1d2d31035fe8a29f002adb5a70d762669102a0f3 | refs/heads/main | 2023-06-16T11:18:30.121653 | 2021-07-09T08:35:56 | 2021-07-09T08:35:56 | 370,766,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,731 | py | import numpy as np
from scipy import ndimage as nd
from scipy.special import cosdg, sindg
def _summary(mat, name):
print(f"{name}\tshape:{mat.shape}\tmax:{mat.max():.2f} min:{mat.min():.2f}")
pass
class Deformer:
def __init__(self, translation=0, zoom=0, elastic_magnitude=0, sigma=1, angle=0, nearest=Fa... | [
"rakeshvar@gmail.com"
] | rakeshvar@gmail.com |
c6984060bdb66e9297a30262564f0ec5543acd5e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03146/s790644084.py | 7e0cb3ce3d0317c1b444b17f7e0a4ff736bda753 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | s = int(input())
a = s
prev = set()
for i in range(1, 1500000):
if a in prev:
print(i)
exit()
prev.add(a)
if a % 2 == 0:
a //= 2
else:
a = 3 * a + 1 | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
29f193740bef122fbd90749abed73ecb40569459 | b3a2beaab1ac676c96e93a48d4f35ff6ed6799d0 | /anyex/async/btcchina.py | 1adec6030b7a567203d310d05d8ea27f4920560c | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | ttwishing/anyex | 40c06cf34e4d8f96bb968e8b7be3d2da5e6023f8 | cfd1f2f04ab992b790add4843aafff91e5773cbf | refs/heads/master | 2020-05-23T12:07:58.615432 | 2019-05-15T05:09:46 | 2019-05-15T05:09:46 | 186,751,745 | 0 | 0 | MIT | 2019-05-15T04:57:08 | 2019-05-15T04:57:08 | null | UTF-8 | Python | false | false | 11,676 | py | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/anyex/anyex/blob/master/CONTRIBUTING.md#how-to-contribute-code
from anyex.async.base.exchange import Exchange
import base64
import hashlib
class btcchina (Exchange):
def describe(self):
... | [
"yong2452@gmail.com"
] | yong2452@gmail.com |
287b2dea5d50e568064505e8ecdad813d1967f06 | e966e08e69df8f6669034c1d8a2ed57293a48ef7 | /www/main.py | a8c620ef841d4f5469289bfa7a8cbc2b5c224f3a | [] | no_license | adrianPerez/notify-io | c9d06f5fb2a40d25a9399bb72319225e60ffa142 | 20eeafa5edfe2455d4b154733283aa8ce2969dbb | refs/heads/master | 2021-01-18T12:14:50.622242 | 2009-11-12T06:13:36 | 2009-11-12T06:13:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,257 | py | import wsgiref.handlers
import hashlib, time, os
from google.appengine.ext import webapp
from google.appengine.ext import db
from google.appengine.api import users
from google.appengine.api import urlfetch
from google.appengine.ext.webapp import template
from google.appengine.ext.webapp.util import login_required
from... | [
"progrium@gmail.com"
] | progrium@gmail.com |
db7db6a90704df75b54f315bea68f0ad7f3365c1 | 649bd422025e421d86025743eac324c9b882a2e8 | /exam/1_three-dimensional_atomic_system/dump/phasetrans/temp101_6000.py | ca5589222090cec51eb4387d80afbfad76d2ebaa | [] | no_license | scheuclu/atom_class | 36ddee1f6a5995872e858add151c5942c109847c | 0c9a8c63d9b38898c1869fe8983126cef17662cd | refs/heads/master | 2021-01-21T10:52:28.448221 | 2017-03-07T23:04:41 | 2017-03-07T23:04:41 | 83,489,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,814 | py | ITEM: TIMESTEP
6000
ITEM: NUMBER OF ATOMS
2048
ITEM: BOX BOUNDS pp pp pp
1.4321272860081535e-01 4.7056787271390377e+01
1.4321272860081535e-01 4.7056787271390377e+01
1.4321272860081535e-01 4.7056787271390377e+01
ITEM: ATOMS id type xs ys zs
8 1 0.121128 0.0652153 0.0529452
35 1 0.0586052 0.120368 0.0662597
130 1 0.04784... | [
"scheuclu@gmail.com"
] | scheuclu@gmail.com |
295338183b59fe88a08317b8e639fd6a5734f638 | 1ee4c8d3208d1b51a72d30e4732a9b2082da605c | /sao_portal/asgi.py | 42ad8861fc2ad5d0afd93f540fdc60c77c34b824 | [] | no_license | abhiram-g/SAO_service_dashboard | 8336f52a9968019102884e24edc735e8e4f38bc6 | 4d2cde4cefe6c10bc644223981b67755cf6c1145 | refs/heads/master | 2022-10-15T10:23:30.537956 | 2020-06-08T12:43:51 | 2020-06-08T12:43:51 | 270,624,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
ASGI config for sao_portal project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"abc@gmail.com"
] | abc@gmail.com |
b71f4f4c0c82b54bf051e4b6b83878612d3b30c1 | dc9f2638209a9be235a1c4acc44fe2a26256c4b4 | /venv/projects/lib/python3.8/site-packages/pip/_vendor/msgpack/_version.py | 7f0f77b35e6f3f520b75e0ff6182498615a30fa0 | [] | no_license | alwinruby/RealWorld | 4f5fcaed68fdd2d9fc37f5973fec365195cb3e9e | ec446f96f3545cb847429b5e33cefdc4f00ce432 | refs/heads/main | 2023-08-13T10:28:40.528047 | 2021-10-10T14:58:23 | 2021-10-10T14:58:23 | 408,079,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20 | py | version = (1, 0, 2)
| [
"alwinsolanky@gmail.com"
] | alwinsolanky@gmail.com |
c89fddca810ff0a6a6816e86a3546737492b1e5e | 56b3f373de5189f128d84ea191cc5dfc6f88636a | /TrackProblems/trackproblems/controllers/__init__.py | 32c45f64e71509d5257896d8ff5c8bf2795962c0 | [
"Apache-2.0"
] | permissive | tongpa/TrackProblems | 0e301d01735ebc523de18553d670207b9a75427e | 41e827a21907f0e9e4cc036ec0f96ab379b94544 | refs/heads/master | 2021-01-02T08:53:47.648786 | 2017-09-11T09:56:39 | 2017-09-11T09:56:39 | 99,089,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | # -*- coding: utf-8 -*-
"""Controllers for the TrackProblems application."""
| [
"tong_pa@hotmail.com"
] | tong_pa@hotmail.com |
2adf1b16dc0fe58417825d349d3e29ccf10e3135 | a247e3a40bca426f604ee057319ae3f7fce5c22f | /django1/venv/bin/django-admin | 8279c65ae89eb5715eb0a7f394b21f42bacec363 | [
"MIT"
] | permissive | stephenndele/django-1 | fcb5cd2a8598b5d68855814fb588a231e06efc09 | 11be0289bc3b6b3234b1e34979f282bd06cbce2e | refs/heads/main | 2023-03-26T14:55:11.769279 | 2021-03-25T12:12:55 | 2021-03-25T12:12:55 | 349,335,362 | 0 | 2 | null | 2021-03-25T12:12:56 | 2021-03-19T07:22:05 | Python | UTF-8 | Python | false | false | 345 | #!/home/moringa/Desktop/moringa-school-projects/core/Django/django-playlist/django1/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(exec... | [
"stephenndele09346@gmail.com"
] | stephenndele09346@gmail.com | |
d7833d20c9de724dea0ff27dce90bb80523ae797 | a22cc323b29f50da397d8363ac2521e3542a0fd7 | /tests/dpaycli/test_witness.py | a4b82ed9882df3b715a284b0fdf967a5516a4db1 | [
"MIT"
] | permissive | dpays/dpay-cli | 1a58c7dae45218e3b05b7e17ff5ce03e918d27b9 | dfa80898e1faea2cee92ebec6fe04873381bd40f | refs/heads/master | 2020-04-01T09:26:43.200933 | 2018-10-15T08:03:06 | 2018-10-15T08:03:06 | 153,075,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,801 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from builtins import super
import unittest
from parameterized import parameterized
from pprint import pprint
from dpaycli import DPay
from dpaycli.witness import Witness, ... | [
"jaredricelegal@gmail.com"
] | jaredricelegal@gmail.com |
4b3bcb583dfe4073fbaf60da96a44bc417c9ff61 | 1ddbe64e41ba648bb60a8758be6764e19b1c418a | /trunk/tygame-hall5-py/src/hall5/plugins/hallitem/_private/_actions/open.py | 722642fc9426119f820446f54c160267601f47ce | [] | no_license | zhaozw/freetime5 | 9bc3d0671a594822cc82e04b69c8016b7afd0554 | 99c47ad235583e765c35627ba34d4f496ccccbe4 | refs/heads/master | 2020-03-08T04:09:15.293616 | 2020-02-11T06:06:29 | 2020-02-11T06:06:29 | 127,913,013 | 0 | 0 | null | 2018-04-03T13:31:36 | 2018-04-03T13:31:35 | null | UTF-8 | Python | false | false | 8,612 | py | # -*- coding=utf-8 -*-
"""
@file : itemaction
@date : 2016-09-22
@author: GongXiaobo
"""
from hall5.plugins.hallitem._private._actions import _action
from hall5.plugins.hallitem._private._items.box import TYBoxItem
from tuyoo5.core.typlugin import pluginCross
from tuyoo5.game import tycontent
from tuyoo5.game._priva... | [
"tuyoo@tuyoodeMac-mini-8.local"
] | tuyoo@tuyoodeMac-mini-8.local |
baaf7396d7d64ca02b696064862bf5652b225a14 | 568ed7fdc9ccbd7967dd2950669c68002b454869 | /yotta/test/cli/test.py | ccec43116468a2790ebad484c3f8dcd52ce643de | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | headlessme/yotta | ade06c41108dca045e295bd2e0fdb2b7baef8c89 | 947ab074b629c8f18ca91ab84ebaa29096b011c6 | refs/heads/master | 2021-01-17T11:10:07.569198 | 2015-12-08T11:45:12 | 2015-12-08T11:45:12 | 27,595,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,592 | py | #!/usr/bin/env python
# Copyright 2015 ARM Limited
#
# Licensed under the Apache License, Version 2.0
# See LICENSE file for details.
# standard library modules, , ,
import unittest
import copy
# internal modules:
from yotta.lib.detect import systemDefaultTarget
from . import cli
from . import util
Test_Tests = {
'm... | [
"James.Crosby@arm.com"
] | James.Crosby@arm.com |
f1516933ea445803defec8a1fa0c6335c45eb5e6 | 491d3ad04c852d2efe3e49842ccfcd20e40eab96 | /mysite/blog/admin.py | 6f0dd47e26f5ddf14bfd772d3edc6b2cfbd7becd | [] | no_license | marianwitkowski/python-24082019 | 746c9824c15c2072caceeac8a9b610d79c63f0f6 | df849d09aa7d9b7a08d8276a9c2b557d9f9d7ce7 | refs/heads/master | 2020-07-07T03:55:55.398961 | 2019-09-29T16:12:40 | 2019-09-29T16:12:40 | 203,239,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | from django.contrib import admin
from .models import Post
# Register your models here.
class PostAdmin(admin.ModelAdmin):
list_display = ('title', 'slug', 'status','created_on')
list_filter = ("status",)
search_fields = ['title', 'content']
prepopulated_fields = {'slug': ('title',)}
admin.si... | [
"marian.witkowski@gmail.com"
] | marian.witkowski@gmail.com |
9f70e24acb6247d89104f02908ac2638143ee173 | ca4910e944cca453050299cb6c8e856c06a76fb0 | /blog/settings.py | 1175ab8bc4cd442f1245d312eacf024ca32835cc | [] | no_license | SonerArslan2019/djangoRESTAPI | f8e33cd8570f86f14810ef8fabea918503e0fc90 | 5398b578524fc5c6eb3b7ed51db68bc4f3687221 | refs/heads/master | 2023-04-18T01:45:45.093105 | 2021-04-24T09:50:22 | 2021-04-24T09:50:22 | 360,634,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,603 | py | from pathlib import Path
import os
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
# SECURITY WARNING: keep the sec... | [
"soner@arslanyapi.com.tr"
] | soner@arslanyapi.com.tr |
5bcdd778d1e6f731488beb83daa9a83c0f4996a2 | b8e29b6e957b0a55571f7cffc4357666a43fb56e | /mxnet/insightface/insightface/src/symbols/fdpn.py | 0544f8347e0d24662ee3f007fe9468e1d3a22ddd | [
"MIT",
"LicenseRef-scancode-proprietary-license",
"Apache-2.0"
] | permissive | aliyun/alibabacloud-aiacc-demo | b9bbe565021757ecaea0e7d7209632cbdb5cc8ab | 2e49deeb38d12d4af4c5e50bb15d731c4bbf4cf1 | refs/heads/master | 2023-05-14T08:09:33.067050 | 2023-05-04T08:19:51 | 2023-05-04T08:19:51 | 228,604,743 | 38 | 14 | Apache-2.0 | 2022-06-22T02:41:01 | 2019-12-17T11:46:44 | Python | UTF-8 | Python | false | false | 9,635 | py | import mxnet as mx
import symbol_utils
bn_momentum = 0.9
def BK(data):
return mx.symbol.BlockGrad(data=data)
# - - - - - - - - - - - - - - - - - - - - - - -
# Fundamental Elements
def BN(data, fix_gamma=False, momentum=bn_momentum, name=None):
bn = mx.symbol.BatchNorm( data=data, fix_gamma=fix_gamma, mom... | [
"ziqi.yzq@alibaba-inc.com"
] | ziqi.yzq@alibaba-inc.com |
f6a760119a4c4b2c583957abb4a7066cbb64a2eb | dc67e70a303f265ee6cb4c1a2d61fe811053fb3d | /beginner/066/A.py | cabb38041ad8e0ea035492830c9cef953fb894b2 | [] | no_license | cry999/AtCoder | d39ce22d49dfce805cb7bab9d1ff0dd21825823a | 879d0e43e3fac0aadc4d772dc57374ae72571fe6 | refs/heads/master | 2020-04-23T13:55:00.018156 | 2019-12-11T05:23:03 | 2019-12-11T05:23:03 | 171,214,066 | 0 | 0 | null | 2019-05-13T15:17:02 | 2019-02-18T04:24:01 | Python | UTF-8 | Python | false | false | 193 | py | def ringring(a: int, b: int, c: int)->int:
return sum(sorted([a, b, c])[:2])
if __name__ == "__main__":
a, b, c = map(int, input().split())
ans = ringring(a, b, c)
print(ans)
| [
"when.the.cry999@gmail.com"
] | when.the.cry999@gmail.com |
72d7de871b2fb085d76442aa9a24ad3405cd961b | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/cv/centerface/preprocess.py | a985c6b64428994c27265c5fcd6ff413bee6b92a | [
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 2,585 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"chenhaozhe1@huawei.com"
] | chenhaozhe1@huawei.com |
95869793a95931568444941801533d4d5e6cb5eb | d6be2453d1c4428a4b9d9f78ea80e7e1a39f0f5b | /src/utils.py | 20225ec0e46d35e08388cbfdfc634ce8c9a2e343 | [] | no_license | bcrestel/sls | 8f6a6356264747285fb193b2ebfa1c2914aa0fe3 | f0392135e5c4072e3341998651091c8455a882fb | refs/heads/master | 2020-12-15T16:51:03.663284 | 2020-10-06T14:22:58 | 2020-10-06T14:22:58 | 235,185,248 | 0 | 0 | null | 2020-01-20T19:47:07 | 2020-01-20T19:47:06 | null | UTF-8 | Python | false | false | 1,478 | py | import hashlib
import pickle
import json
import os
import itertools
import torch
import numpy as np
def hash_dict(dictionary):
"""Create a hash for a dictionary."""
dict2hash = ""
for k in sorted(dictionary.keys()):
if isinstance(dictionary[k], dict):
v = hash_dict(dictionary[k])
... | [
"issam.laradji@gmail.com"
] | issam.laradji@gmail.com |
91489aef1cfcb6675882a5ed78249f485727af5a | 975b2d421d3661e6770b601929d5f11d981d8985 | /msgraph/generated/models/access_package_request_state.py | 8d2207eae29267f561c8c719c8dc968d0f903cb0 | [
"MIT"
] | permissive | microsoftgraph/msgraph-sdk-python | a7c551b85daadeebf76ec4ae12668664ea639b42 | 27de7ccbe688d7614b2f6bde0fdbcda4bc5cc949 | refs/heads/main | 2023-09-03T21:45:27.989672 | 2023-08-31T06:22:18 | 2023-08-31T06:22:18 | 534,665,999 | 135 | 18 | MIT | 2023-09-14T11:04:11 | 2022-09-09T14:00:17 | Python | UTF-8 | Python | false | false | 410 | py | from enum import Enum
class AccessPackageRequestState(str, Enum):
Submitted = "submitted",
PendingApproval = "pendingApproval",
Delivering = "delivering",
Delivered = "delivered",
DeliveryFailed = "deliveryFailed",
Denied = "denied",
Scheduled = "scheduled",
Canceled = "canceled",
P... | [
"GraphTooling@service.microsoft.com"
] | GraphTooling@service.microsoft.com |
a31faa28ea7fa887dcbc8ad53795258aa189f931 | 498e792e16ab1a74ac034c53177c4cccbeef2749 | /classification/resnet/train.py | 662ceca52750777835c1b05e25f7eaacf8d247aa | [] | no_license | ydwisroad/imageprocessingpytorch | f97bec4469c087f6bbbca5d42da180c95be8b13f | bd8d1af228619c9c6c9c1a2b880422f7d5048dd5 | refs/heads/master | 2023-07-29T05:05:11.145832 | 2022-02-21T23:32:03 | 2022-02-21T23:32:03 | 284,976,501 | 7 | 3 | null | 2023-07-24T01:08:22 | 2020-08-04T12:43:24 | Jupyter Notebook | UTF-8 | Python | false | false | 4,052 | py | import torch
import torch.nn as nn
from torchvision import transforms, datasets
import json
import matplotlib.pyplot as plt
import os
import torch.optim as optim
from model import resnet34, resnet101
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
print(device)
data_transform = {
"train":... | [
"wandf12345@163.com"
] | wandf12345@163.com |
5bf7470e827eea42e7c8955e6c2fb564dbc45de9 | f453f183834e3bf587a120023615ed2ddd38c157 | /tsa/lib/encoders.py | 969cdf1f6c1712d900097659bf0862df709f2d35 | [
"MIT"
] | permissive | chbrown/topic-sentiment-authorship | 72c21638eb72888c370cd3b1b5f06504df09ce2e | e8cacf11b06583d9ed85ff790e1d5322e59f2fd6 | refs/heads/master | 2022-07-05T22:58:24.456139 | 2020-03-29T16:12:21 | 2020-03-29T16:12:21 | 13,025,589 | 0 | 0 | MIT | 2020-03-29T16:13:35 | 2013-09-23T02:53:40 | Jupyter Notebook | UTF-8 | Python | false | false | 492 | py | import json
from datetime import datetime
class JSONEncoder(json.JSONEncoder):
def default(self, obj):
if hasattr(obj, '__json__'):
return obj.__json__()
if isinstance(obj, datetime):
return obj.strftime('%Y-%m-%dT%H:%M:%S')
# return super(JSONEncoder, self).default... | [
"io@henrian.com"
] | io@henrian.com |
977cd1f34ed3ff2b174cb7a5bb2ad1829606c277 | fbff973537eae45b724b23e9b6fc8692da959b21 | /app/core/config.py | 979658548ef83b1914a5730ab318dedd6ab5b824 | [
"MIT"
] | permissive | lsetiawan/cava-metadata | d4a8878480cd9da4bfa163b9d9c42d705a0fb263 | e45c469a4b5cbdebfba74ab0031fb94eb59fd724 | refs/heads/main | 2023-04-08T02:28:24.402853 | 2021-01-27T20:02:23 | 2021-01-27T20:02:23 | 358,033,596 | 0 | 0 | MIT | 2021-04-14T20:26:35 | 2021-04-14T20:26:35 | null | UTF-8 | Python | false | false | 1,418 | py | import os
import fsspec
# API SETTINGS
SERVICE_NAME = "Metadata Service"
SERVICE_ID = "metadata"
OPENAPI_URL = f"/{SERVICE_ID}/openapi.json"
DOCS_URL = f"/{SERVICE_ID}/"
SERVICE_DESCRIPTION = """Metadata service for Interactive Oceans."""
CORS_ORIGINS = [
"http://localhost",
"http://localhost:8000",
"htt... | [
"landungs@uw.edu"
] | landungs@uw.edu |
f9b589aa7e5cb26eda1a3b56bc67249768ee6093 | 4b819b9c7aee9d60689f487557e437445101188d | /lanuch/accounts/views.py | e04d7ebbd2e15bedabf699d153c0170baa54e03b | [] | no_license | Damidara16/dev | c2fe90fb70d4644bdee964ce9b7b85bf9f71c99a | f3c8666bc32b19ffb623b83019fdbf404433ece8 | refs/heads/master | 2020-03-10T20:14:11.173397 | 2018-04-15T00:56:56 | 2018-04-15T00:56:56 | 129,565,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,485 | py | from django.shortcuts import render, redirect
from .forms import RegistrationForm, EditProfileForm, AddInfo
from django.contrib.auth.forms import PasswordChangeForm
from django.contrib.auth import update_session_auth_hash
from .models import Author
from blog.models import waste
from django.contrib.auth.models import Us... | [
"sajala8624@gmail.com"
] | sajala8624@gmail.com |
08ab74257fcfe8e582694e17d8f70578c069d383 | f15449e438b0b799a3866ba21243924ce0e4fa2d | /survey/models.py | e6565f3535ec711e92f3831b062f00dd86ac58f5 | [] | no_license | xmduhan/qisite | 46af79d0e4d1af814298862cfaa18c6f7ddf3a74 | 2c9d7513c3e0cd483341dc457a8d289e5e174f20 | refs/heads/master | 2021-01-17T08:44:29.826082 | 2020-02-07T11:22:29 | 2020-02-07T11:22:29 | 14,419,020 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 26,025 | py | # -*- coding: utf-8 -*-
from __future__ import division
from django.db import models
from django.db.models import F
import account.models
from datetime import datetime
from numstyle import NumStyle, defaultQuestionNumStyle, defaultBranchNumStyle
from django.core.exceptions import ValidationError
from django.core.signin... | [
"xmduhan@gmail.com"
] | xmduhan@gmail.com |
3dbdb608cd2de3f1278d8f0339287fd5ce40c676 | fcc88521f63a3c22c81a9242ae3b203f2ea888fd | /Python3/0844-Backspace-String-Compare/soln-1.py | cf9b6afca02d5b7deeaed1a8aa8d927a70cbd4e0 | [
"MIT"
] | permissive | wyaadarsh/LeetCode-Solutions | b5963e3427aa547d485d3a2cb24e6cedc72804fd | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | refs/heads/master | 2022-12-06T15:50:37.930987 | 2020-08-30T15:49:27 | 2020-08-30T15:49:27 | 291,811,790 | 0 | 1 | MIT | 2020-08-31T19:57:35 | 2020-08-31T19:57:34 | null | UTF-8 | Python | false | false | 600 | py | class Solution:
def backspaceCompare(self, S, T):
"""
:type S: str
:type T: str
:rtype: bool
"""
i, j = len(S) - 1, len(T) - 1
bs, bt = 0, 0
while True:
while i >= 0 and (bs or S[i] == '#'):
bs = bs + 1 if S[i] == '#' else b... | [
"zhang623@wisc.edu"
] | zhang623@wisc.edu |
41ef232e7c76144c75891a57dcc4d00868f32726 | 673f9b85708affe260b892a4eb3b1f6a0bd39d44 | /Botnets/App/App Web/PDG-env/lib/python3.6/site-packages/pandas/tests/scalar/timedelta/test_arithmetic.py | 555b47c8dc0fc9a2a6f68e9ffd73c8a00e312d4d | [
"MIT"
] | permissive | i2tResearch/Ciberseguridad_web | feee3fe299029bef96b158d173ce2d28ef1418e4 | e6cccba69335816442c515d65d9aedea9e7dc58b | refs/heads/master | 2023-07-06T00:43:51.126684 | 2023-06-26T00:53:53 | 2023-06-26T00:53:53 | 94,152,032 | 14 | 0 | MIT | 2023-09-04T02:53:29 | 2017-06-13T00:21:00 | Jupyter Notebook | UTF-8 | Python | false | false | 24,619 | py | """
Tests for scalar Timedelta arithmetic ops
"""
from datetime import datetime, timedelta
import operator
import numpy as np
import pytest
import pandas as pd
from pandas import NaT, Timedelta, Timestamp, _is_numpy_dev, offsets
import pandas._testing as tm
from pandas.core import ops
class TestTimedeltaAdditionSub... | [
"ulcamilo@gmail.com"
] | ulcamilo@gmail.com |
1dd9830ae74fa5d06a572e1f0b7f6445fd3ae66c | bb27630e7af7f1bccbb5cfc892d0b0e6445fe874 | /05_django/01_djangoIntro/django_formTest/formTestApp/apps.py | f318035ab1e56dfebb9f0f7f047dd9a3a89e5c53 | [] | no_license | MrBreakIT/pythonStack | fe8cd9418ee1060ada8cd1c446332d81facecf4e | f615436dbff581c50ded70dec6532f6339977c1d | refs/heads/main | 2023-02-06T14:37:05.688885 | 2020-12-27T22:37:09 | 2020-12-27T22:37:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | from django.apps import AppConfig
class FormtestAppConfig(AppConfig):
name = 'formTestApp'
| [
"johnpike1022@gmail.com"
] | johnpike1022@gmail.com |
9dea79ebe2acef41d229a77657e6b1cf232caf43 | 5215715a4cbcf9ce065b1542db224a2b1997c760 | /T3/t3.py | 5523731288ed9eb2d6e7a4f542b5a35d71a18b89 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | Cgipson06/reddit | 02deac29ead779890e42d48400d2233ce888e5a0 | deb1da398840bbd311a79eec25ef2a8b5a8ed5b1 | refs/heads/master | 2021-01-08T23:19:55.245559 | 2014-12-28T20:52:26 | 2014-12-28T20:52:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,034 | py | #/u/GoldenSights
import praw
import time
import sqlite3
import datetime
import random
USERAGENT = """
/u/GoldenSights T3 data collection: Gathering Submission data for
statistical analysis.
More info at https://github.com/voussoir/reddit/tree/master/T3
"""
r = praw.Reddit(USERAGENT)
print('Connected to reddit.')
sql ... | [
"edalool@yahoo.com"
] | edalool@yahoo.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.