blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
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
684 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
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
d684fc0a9c5c2d4c8809419680c87185e41b1d73
7e594c1a7cd470834b38320e5d7c0f5930be034f
/tests/mega/leads/test_types.py
6beb0846e60495ba35962dbe343427fed9fd6a60
[]
no_license
iuvLuyonghao/api_test
5dabcc016438e278689a976940d5d11bfd0e1785
6e874b5caa10a6afd22fbef546151002e8960937
refs/heads/master
2022-12-22T14:04:39.673280
2020-09-24T02:00:47
2020-09-24T02:00:47
292,821,056
0
0
null
null
null
null
UTF-8
Python
false
false
1,054
py
# -*- coding: utf-8 -*- import unittest, warnings from apis.mega.leads.leads import LeadsClient from apis.mega.login.login import Login from config import services from data import DataCenter as D, load_local_data from os.path import join, abspath file = abspath(join(__file__, "../../test.json")) load_local_data(data...
[ "842072252@qq.com" ]
842072252@qq.com
ad707b0ce82a14b73bef40f61c530787d700a7fb
c3ab6a98d7289162f0420a85d987d4770d6e3677
/tsp_solvers.py
097adbfc418574f88e095aa781255000869bf9ee
[]
no_license
Yamp/algomost_test
32b9aba29bb49217a132101c7faf67a7778539df
b2e56b28d7a82f15a641e6ca9468e761051a328f
refs/heads/master
2021-01-04T05:12:07.387485
2020-02-14T01:49:45
2020-02-14T01:49:45
240,402,082
0
0
null
null
null
null
UTF-8
Python
false
false
567
py
from time import time import numpy as np from concorde_adapter import solve_concorde from lkh_adapter import solve_lkh def solve_tsp_lkh(matrix): return solve_lkh(matrix) def solve_tsp_concorde(matrix): return solve_concorde(matrix) def solve_tsp(matrix, solver): """ Решаем обычного коммивояжера """ ...
[ "yampolskiydv@gmail.com" ]
yampolskiydv@gmail.com
9ebfccb4a7d5c32ba83a8e9effb9c5db618d0923
b7f3edb5b7c62174bed808079c3b21fb9ea51d52
/third_party/blink/web_tests/external/wpt/webdriver/tests/take_screenshot/screenshot.py
ca6e0272637d6b43413a733725299655858b4367
[ "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft", "BSD-3-Clause" ]
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
724
py
from tests.support.asserts import assert_error, assert_png, assert_success from tests.support.image import png_dimensions from tests.support.inline import inline from . import viewport_dimensions def take_screenshot(session): return session.transport.send( "GET", "session/{session_id}/screenshot".format(...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
41f75322770c83120e01c89ef152b8021d26f6fe
5e7d0921887469c651faf90ecfcf3736d4802f6b
/seiichi/chapter08/75.py
7561cbcf86b1e89e03eea62c906dd139abab7d4e
[]
no_license
tmu-nlp/100knock2021
5e4029f2ee330fa95269740d7bd372be533d125d
0a9f8150588648fbd86d51b4c9168acf3e45ed98
refs/heads/main
2023-07-03T14:00:08.604762
2021-08-05T09:23:16
2021-08-05T09:23:16
359,641,037
10
1
null
2021-08-05T09:22:25
2021-04-20T00:57:21
Jupyter Notebook
UTF-8
Python
false
false
2,101
py
from torch.utils.data import TensorDataset, DataLoader import torch import numpy as np import matplotlib.pyplot as plt X_train = np.loadtxt('./data/X_train.txt', delimiter=' ') X_train = torch.tensor(X_train, dtype=torch.float32) W = torch.randn(300, 4) softmax = torch.nn.Softmax(dim=1) y_train = np.loadtxt('./data/y...
[ "d35inou108@gmail.com" ]
d35inou108@gmail.com
83e39604954d24622bf9f0aa4b81f00a9bbad677
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03031/s563389178.py
eaa5339f9220392d323d7815ec2893fe6b8ff52b
[]
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
244
py
N,M=map(int,input().split()) k=[list(map(int,input().split())) for _ in range(M)] *p,=map(int,input().split()) t=0 a=0 for i in range(2 ** N): t=sum(1 for j in range(M) if sum(1 for h in k[j][1:] if i>>(h-1)&1)%2==p[j]) if t==M:a+=1 print(a)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
f6cbfc7d5a4b5f26b68f9a1033cfa33c2f93cfec
c34e592dd799f08d9a6123042247d1de1a39a7e8
/yanghuisanjiao_new.py
fd97dd29e9bad3cfa2f47c63de74c6a5b271c9e4
[]
no_license
chenglinguang/python_algorithm
0dcf27ae9bb8c967df13fcc88dc121b586bf201f
6a271478292996dad954a80592e7e44bef4d758b
refs/heads/master
2021-01-17T20:01:14.696172
2016-09-21T06:25:05
2016-09-21T06:25:05
61,439,082
0
0
null
null
null
null
UTF-8
Python
false
false
312
py
#!/usr/bin/env python3 #-*-encoding:utf-8-*- #[1] #[1,1] #[1,2,1] #[1,3,3,1] def getTriangle(n): N=[1] if n==1: print(N) while(n-1): N.append(0) N=[N[i-1]+N[i] for i in range(len(N))] print(N) n=n-1 if __name__=="__main__": getTriangle(5)
[ "clg19881220@163.com" ]
clg19881220@163.com
4a26e7b7d4713b603f80adf6f8451847ac4ba0d3
e1841bd6fcbd3393c47c6c08a136c6e8f6592528
/a3c.py
319ef21e1a3224d6a1214fbda4dd3bf06550d514
[ "Apache-2.0" ]
permissive
ml-lab/async_deep_reinforce
6bc6a904cba41ef9546b2982240673ea5644c129
a99c73760273cdeb31eb81ef07407901d8211895
refs/heads/master
2020-12-14T09:43:19.862051
2016-04-27T15:43:21
2016-04-27T15:43:21
57,276,036
1
0
null
2016-04-28T06:17:44
2016-04-28T06:17:44
null
UTF-8
Python
false
false
3,355
py
# -*- coding: utf-8 -*- import tensorflow as tf import threading import numpy as np import signal import random import math import os from game_ac_network import GameACNetwork from a3c_training_thread import A3CTrainingThread from rmsprop_applier import RMSPropApplier from constants import ACTION_SIZE from constants...
[ "miyoshi@narr.jp" ]
miyoshi@narr.jp
5aa6204cfc381ad1e28ec49b0dfeeb17d59be3e6
f3b233e5053e28fa95c549017bd75a30456eb50c
/mcl1_input/L35/35-34_MD_NVT_rerun/set_7.py
5189b8adb0a79e3e248485d10d8c0255addf9a38
[]
no_license
AnguseZhang/Input_TI
ddf2ed40ff1c0aa24eea3275b83d4d405b50b820
50ada0833890be9e261c967d00948f998313cb60
refs/heads/master
2021-05-25T15:02:38.858785
2020-02-18T16:57:04
2020-02-18T16:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
740
py
import os dir = '/mnt/scratch/songlin3/run/mcl1/L35/MD_NVT_rerun/ti_one-step/35_34/' filesdir = dir + 'files/' temp_prodin = filesdir + 'temp_prod_7.in' temp_pbs = filesdir + 'temp_7.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078] for j in lam...
[ "songlin3@msu.edu" ]
songlin3@msu.edu
71443ee6e899b2216ae3d42c36aff8a9968f1c1b
9adc810b07f7172a7d0341f0b38088b4f5829cf4
/experiments/murtaza/ddpg/ddpg_normalized_pendulum.py
328111584642a3354208825497b01708f18ac674
[ "MIT" ]
permissive
Asap7772/railrl_evalsawyer
7ee9358b5277b9ddf2468f0c6d28beb92a5a0879
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
refs/heads/main
2023-05-29T10:00:50.126508
2021-06-18T03:08:12
2021-06-18T03:08:12
375,810,557
1
0
null
null
null
null
UTF-8
Python
false
false
1,009
py
""" Exampling of running DDPG on Double Pendulum. """ from rlkit.envs.env_utils import gym_env from rlkit.exploration_strategies.ou_strategy import OUStrategy from rlkit.launchers.launcher_util import run_experiment from rlkit.qfunctions.nn_qfunction import FeedForwardCritic from rlkit.tf.ddpg import DDPG from rlkit.tf...
[ "alexanderkhazatsky@gmail.com" ]
alexanderkhazatsky@gmail.com
9302b2c10729a0395131c728772478c4a51aa514
f38853208f45bfbd12513bb0f1f21d5aade7fd95
/foundation/blseg/model/unet/unet.py
bce845cd7818f7a5e21b3ef64c5fc9d9fdd575c6
[]
no_license
ArronHZG/segmentation-pytorch
3c5c38c06e3b8dcfab261193d04cd018d9766ebe
ea334e44c774fe7c1fa4d6371f9c10e23f179edb
refs/heads/master
2022-11-22T05:10:22.650051
2020-07-28T17:59:51
2020-07-28T17:59:51
197,342,075
14
3
null
null
null
null
UTF-8
Python
false
false
3,413
py
# cython: language_level=3 import torch from torch import nn from ...backbone.utils import conv3x3 from ..base import SegBaseModule from .utils import DownBlock, UpBlock, UpConv, ModernUpBlock, ModernUpConv class UNet(SegBaseModule): def __init__(self, num_classes=1): super(UNet, self).__init__(num_class...
[ "hou.zg@foxmail.com" ]
hou.zg@foxmail.com
c7340454ab1f2dd29e793c55b0dda3d64f59877f
4ba5c0fa1ef6a1673b1b43899285df205c9bc64d
/algorithms/search/binary.py
7535896865677f8b679f0da27bebcff909c4523b
[ "MIT" ]
permissive
aiden0z/snippets
90f86507b7989b3c4efdd0551835a5849c899534
671cbb00865363af437ad4df06020a793cadada9
refs/heads/master
2023-01-23T14:16:57.779722
2022-11-21T14:57:58
2022-11-21T14:57:58
43,037,323
0
0
MIT
2023-01-20T22:37:57
2015-09-24T01:33:33
Python
UTF-8
Python
false
false
1,521
py
import random from typing import List class BinarySearch: def sort(self, array: List): new = array[:] self._quick_sort(new, 0, len(array) - 1) return new def _quick_sort(self, array: List, low: int, high: int): if low < high: pi = self._partition(array, low, high)...
[ "aiden0xz@gmail.com" ]
aiden0xz@gmail.com
6c4c777ebcedfba91ef9b32c72a63da3d66104ea
1c8ea05ed65d76ab0e7bf8e642e0573e34d880ab
/BOJ/startlink.py
11937952d383f4248cab723bb58d0f962eeb9b8f
[]
no_license
PARKJUHONG123/turbo-doodle
1d259c88544d5e52ed375f119792363f5c1b4377
6b073281236af50949042c1a6b269752037cb829
refs/heads/master
2023-01-14T13:41:58.299164
2020-11-23T12:12:30
2020-11-23T12:12:30
259,669,738
0
0
null
null
null
null
UTF-8
Python
false
false
630
py
import sys from collections import deque F, S, G, U, D = map(int, sys.stdin.readline().split()) def bfs(): visited = [False for _ in range(F + 1)] queue = deque() queue.append([S, 0]) while queue: s, count = queue.popleft() if s == G: return count u, d = s + U, s -...
[ "corallines@naver.com" ]
corallines@naver.com
317359c9f8e43e1cb131011728de7413780544e2
1be54b04e512ce623250f6e096f82fc9a43da4b3
/tests/api2/ftp.py
22e501963621b1d4db7e3872be3fa85394cf5124
[ "BSD-3-Clause" ]
permissive
mathias-stjernholm/freenas
011bd99439a7332e9e41557ade41b8388d7ede0b
9fdb26e4ab35d9f397c99158ba022d5ebf066321
refs/heads/master
2020-03-27T22:44:05.158227
2018-09-03T15:25:18
2018-09-03T15:29:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,425
py
#!/usr/bin/env python3.6 # Author: Eric Turgeon # License: BSD # Location for tests into REST API 2.0 of FreeNAS import sys import os apifolder = os.getcwd() sys.path.append(apifolder) from functions import PUT, GET, POST # , RC_TEST # from auto_config import ip def test_01_Configuring_ftp(): payload = {"clie...
[ "ericturgeon.bsd@gmail.com" ]
ericturgeon.bsd@gmail.com
630c63d8645e7a6f4be179eccdd96e6d2c87e678
ac1bbabc7c1b3149711c416dd8b5f5969a0dbd04
/Python OOP/testing/cat_tests.py
fc90d40dd79e3b884b3beeb4faa1eb5d7ebcd163
[]
no_license
AssiaHristova/SoftUni-Software-Engineering
9e904221e50cad5b6c7953c81bc8b3b23c1e8d24
d4910098ed5aa19770d30a7d9cdf49f9aeaea165
refs/heads/main
2023-07-04T04:47:00.524677
2021-08-08T23:31:51
2021-08-08T23:31:51
324,847,727
1
0
null
2021-08-08T23:31:52
2020-12-27T20:58:01
Python
UTF-8
Python
false
false
1,446
py
class Cat: def __init__(self, name): self.name = name self.fed = False self.sleepy = False self.size = 0 def eat(self): if self.fed: raise Exception('Already fed.') self.fed = True self.sleepy = True self.size += 1 def sleep(self): if not self.fed: raise Excepti...
[ "assiaphristova@gmail.com" ]
assiaphristova@gmail.com
54c556cd9ce1858766f85affdb5f984a96b137fb
fd4375f30ae974a4bbab0d24054b9e883ebe07f7
/vowel.py
31bb379cb5c4a3c21d2643841e7a87486bca2e2d
[]
no_license
EsaikaniL/python
fe451167df79ae3a0b82fb00300e7c2da9c35f37
e3d8ec1983a257aec26b79a669da7abedcd9985b
refs/heads/master
2020-04-17T11:12:16.152565
2019-01-20T04:40:19
2019-01-20T04:40:19
166,531,578
0
0
null
2019-01-19T09:53:37
2019-01-19T09:53:37
null
UTF-8
Python
false
false
168
py
s=str(raw_input()) if(s=='a'or s=='e'or s=='i'or s=='o'or s=='u' or s=='A' or s=='E' or s=='I' or s=='O' or s=='U'): print("vowel") else: print("constant")
[ "noreply@github.com" ]
EsaikaniL.noreply@github.com
f6aa42d99a6aab07f15918e95cd02021497f229c
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/matrix/a36d3e4c871b4756addce4d668b54d16.py
2b5faa62b11559e2a2fa0f16c4e6d8dd0e29379a
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
367
py
# -*- coding: utf-8 -*- class Matrix: def __init__(self, matrix: str): self.rows = [[int(elem) for elem in row.strip().split(' ')] for row in matrix.split('\n')] self.columns = self._transpose(self.rows) def _transpose(self, xs: list) -> li...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
5af25699fa82751fe7b482d21c2598cf3742ba29
b0c88350eadcbbeab3d9ebb5ea3a2efccc7d95e9
/classicalml/zscorenorm/generatesplits_zscorenorm.py
9999943512d715112af308cbf2622640c081d2be
[]
no_license
ysuter/brats20-survivalprediction
853d821c61b91e35f7bf23a1ca1f7295b1ef3ee1
388053b789ccf388bc9a29bf94a672d2da973a5c
refs/heads/main
2023-04-16T15:48:35.486293
2021-04-30T17:11:24
2021-04-30T17:11:24
316,608,244
1
0
null
null
null
null
UTF-8
Python
false
false
3,421
py
#!/usr/bin/env python3 import json import numpy as np import pandas as pd from sklearn.model_selection import StratifiedKFold from sklearn.preprocessing import StandardScaler def survival_classencoding(survarr: np.array, classboundaries: list): if len(classboundaries) == 1: survival_classes = [0 if elem ...
[ "noreply@github.com" ]
ysuter.noreply@github.com
018424ffb2e2ffec284f492eb255d85644850c15
0a9949a7dbe5f7d70028b22779b3821c62eb6510
/static/flight_price_analysis_qunar/model/price_model.py
4b68edef1b0b9100acc7350de04c68ffc46e0d2b
[]
no_license
744996162/warehouse
ed34f251addb9438a783945b6eed5eabe18ef5a2
3efd299a59a0703a1a092c58a6f7dc2564b92e4d
refs/heads/master
2020-06-04T22:10:14.727156
2015-07-03T09:40:09
2015-07-03T09:40:09
35,603,929
0
0
null
null
null
null
UTF-8
Python
false
false
1,423
py
#ecoding=utf-8 __author__ = 'zhangchao' import pickle import jsonpickle import json # { # 航班号:fn("GS7569") # 航空公司编号:accode("GS") # 起飞城市:org("BJS") # 到达城市:dst("SHA") # 起飞机场:departureairportcode("PEK") # 到达机场:"arrivingairportcode"("SHA") # 机票渠道:src("ctrip","qunaer") # 飞机日期:date("20151113") # 数据采集时间:cdate("20150204") # 飞机...
[ "744996162@qq.com" ]
744996162@qq.com
5660e1290528c866b82c0abfb86d7f5a61ed20d4
a109ba6106c834c60b0bec79306191b93faa2a5a
/lambdas/cs301/lambda_function.py
e1356e9eabacca5eb664badb0eb9e2f01db809a6
[]
no_license
goutham7r/caraza-harter-com
411776da60facd609cd673e960cb4a63bf5c78f9
77ae81be9a517d7352342bd5d48ee3b22b19ae8f
refs/heads/master
2020-03-28T03:11:22.114439
2018-09-06T01:06:00
2018-09-06T01:06:00
147,626,065
0
0
null
2018-09-06T06:11:58
2018-09-06T06:11:58
null
UTF-8
Python
false
false
896
py
import json, urllib, boto3, botocore, base64, time, traceback, random, string from collections import defaultdict as ddict from lambda_framework import * from clicker import * from projects import * from roster import * def lambda_handler(event, context): # identify user try: user = get_user(event) ...
[ "tylerharter@gmail.com" ]
tylerharter@gmail.com
ae578b5ab21402dc12d2bdde3d1a0deffc8c4e8e
156610bd0cd85ce3356b30718198d54c77dbb2ad
/first_contact/asgi.py
623e3b9cafa6ad18c1c0b571d14a9f7fc0fd124e
[]
no_license
kob22/first_contact
29470fd1c82465706f29925bea0388c9163a9243
f6721250f4edba19e275638e20dfffceb5ac7341
refs/heads/master
2022-10-10T10:07:53.849460
2020-06-03T10:01:48
2020-06-03T10:01:48
269,052,424
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
""" ASGI config for first_contact 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...
[ "kob2222@gmail.com" ]
kob2222@gmail.com
ee82ac7f44a660f21f2cbb2af2694163ff229f53
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_reclaimed.py
4657327364f92f2ccda0fc8c7ae1a2624d2b5a13
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
247
py
from xai.brain.wordbase.nouns._reclaim import _RECLAIM #calss header class _RECLAIMED(_RECLAIM, ): def __init__(self,): _RECLAIM.__init__(self) self.name = "RECLAIMED" self.specie = 'nouns' self.basic = "reclaim" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
dd160615747b0bf0ca02bc282e38f0dbdc49aba6
f1b8f0a0c44fbdb9d270415f6b4edb1672a234dd
/cocubes.py
0ab26aa707ec3affb80e7aa43324b354f67b5751
[]
no_license
devika4365/programs_i_done
2df10890fb55e893eb572aab6cf09e673a0438ef
e09f6ac6c0f1281b7ee9c21a5d1faff999a7a8ec
refs/heads/main
2023-04-06T02:45:04.492005
2021-04-07T15:59:31
2021-04-07T15:59:31
355,602,355
0
0
null
null
null
null
UTF-8
Python
false
false
173
py
def f(u,s): if (u[0]+u[1])<=s: return u[0]*u[1] else: return 0 s=int(input()) u=list(map(int,input().split())) u.sort() d= f(u,s) print(d)
[ "noreply@github.com" ]
devika4365.noreply@github.com
71fa08ac8bee53e595287f2f8d1769be778fd380
19ee165c252970294333e203728020cdcae550b3
/agc011/agc011_b/20200511230007.py
f524f3039cccc1eb90241313cf39628700715e24
[]
no_license
autumncolors11/atc_submits
4528c700e488d530f9cdde3a4198f36b30c3d35e
6f9689b6d7de45fd4e44ad118e4e3531bb8dac4d
refs/heads/master
2022-11-28T17:59:55.750896
2020-08-09T14:10:05
2020-08-09T14:10:05
258,122,955
0
0
null
null
null
null
UTF-8
Python
false
false
1,470
py
import sys sys.setrecursionlimit(10**6) from math import floor,ceil,sqrt,factorial,log from heapq import heappop, heappush, heappushpop from collections import Counter,defaultdict,deque from itertools import accumulate,permutations,combinations,product,combinations_with_replacement from bisect import bisect_left,...
[ "biomimetics500tour@gmail.com" ]
biomimetics500tour@gmail.com
c66a0d5ea65daec85d2acac30005cc7c654e15e7
bc00bdc08d76c8be38c51b1f1caeced2a4668592
/abjad_demo/env/lib/python3.6/site-packages/abjad/core/__init__.py
a544bf1e8bf74b4cd8aca11e247dc92badc0a99c
[]
no_license
gsy/gmajor
769afd6e87f6712e4059f3f779f41932cbca962d
7f5f20a19494256615fbaaa840b2a0bbbf6e311f
refs/heads/master
2023-02-08T07:00:44.479895
2019-05-20T13:58:03
2019-05-20T13:58:03
161,866,236
0
0
null
2023-02-02T06:26:34
2018-12-15T03:32:48
Scheme
UTF-8
Python
false
false
1,319
py
""" Abjad's core component classes: notes, rests, chords, tuplets, measures, containers and contexts. """ from .Component import Component from .Container import Container from .GraceContainer import GraceContainer from .AcciaccaturaContainer import AcciaccaturaContainer from .AfterGraceContainer import AfterGraceCont...
[ "chenxuanguang@chuangxin.com" ]
chenxuanguang@chuangxin.com
341036c25d5af2411d6845b4936532f12711b43a
5912193767e3cf4109cf9ecec77951915ffcd061
/base/rl_issue_browser_open.py
4d6482404f9992e1352aaf6bd0a4127f69b91e69
[ "MIT" ]
permissive
tosher/Redlime
7ade4087bd58a8e33ddd2c89906f64a699f3987d
daee3356e9a28a7be9b0fd9d725c09ab53ebe450
refs/heads/master
2021-01-23T21:33:22.478923
2018-11-10T20:43:09
2018-11-10T20:43:09
37,025,122
12
4
null
2017-08-31T16:33:05
2015-06-07T17:18:20
Python
UTF-8
Python
false
false
741
py
#!/usr/bin/env python\n # -*- coding: utf-8 -*- import webbrowser # import sublime import sublime_plugin from . import utils class RedlimeGoRedmineCommand(sublime_plugin.TextCommand): def run(self, edit): issue_id = self.view.settings().get('issue_id', None) if issue_id: url = '%s/iss...
[ "to.tosher@gmail.com" ]
to.tosher@gmail.com
c05261cfc4b9cdeb100eab44adfb615d8319974d
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02963/s279883388.py
5e592d6ce83fac50e0fcc8a45d0649a33c043fbd
[]
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
143
py
from math import * s=int(input()) x1=ceil(sqrt(s)) if x1>10**9: x1-=1 y2=ceil(s/x1) if y2>10**9: y2-=1 x2=x1*y2-s print(0,0,x1,1,x2,y2)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
11f36fb6e2f1f30340687d0187f2883000a7d506
1dacbf90eeb384455ab84a8cf63d16e2c9680a90
/lib/python2.7/site-packages/qtpy/QtTest.py
0f9116022347a02ea13a98853c3f5637d9614d2d
[ "Python-2.0", "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-unknown" ]
permissive
wangyum/Anaconda
ac7229b21815dd92b0bd1c8b7ec4e85c013b8994
2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6
refs/heads/master
2022-10-21T15:14:23.464126
2022-10-05T12:10:31
2022-10-05T12:10:31
76,526,728
11
10
Apache-2.0
2022-10-05T12:10:32
2016-12-15T05:26:12
Python
UTF-8
Python
false
false
954
py
# -*- coding: utf-8 -*- # # Copyright © 2014-2015 Colin Duquesnoy # Copyright © 2009- The Spyder Developmet Team # # Licensed under the terms of the MIT License # (see LICENSE.txt for details) """ Provides QtTest and functions .. warning:: PySide is not supported here, that's why there is not unit tests running wi...
[ "wgyumg@mgail.com" ]
wgyumg@mgail.com
605c20e941632384101698989840e8e57beaf478
2699b6508febc0fddde5520c5498000746eee775
/imgproc/geom_split.py
47574800ee0bd042904364dcdd187f4eb89e5a91
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
DREAM-ODA-OS/tools
e1c71ddb65c255dc291a1e10778b461f32e1b017
66090fc9c39b35b4ef439d4dfe26ac1349d9c5f2
refs/heads/master
2021-01-19T02:13:59.489229
2017-11-18T10:27:25
2017-11-18T10:27:25
18,381,247
0
0
null
null
null
null
UTF-8
Python
false
false
7,050
py
#!/usr/bin/env python #------------------------------------------------------------------------------ # # Suggest splitting of the geometry to smaller rectangular blocks # # # Author: Martin Paces <martin.paces@eox.at> # #------------------------------------------------------------------------------- # Copyright (C) 2...
[ "martin.paces@eox.at" ]
martin.paces@eox.at
df79c3d5042124802eb231b6ae15ed13fe1b3bf9
a3bfa26c023e5e6217b381e25d8d616cdcd6e3ee
/msc/shop/migrations/0004_order.py
6f738448ba7d59c6d75361c188d5762bb13fca7f
[]
no_license
ojhadibyanshu92/my_awesomecart
41dce8d7b57160d905c4c3d9c0c88164c6ba4b0d
b74de8e0a9a0e005f1e3ca3935ebc1b3c60b481e
refs/heads/master
2020-07-04T19:34:47.161936
2019-08-14T16:52:47
2019-08-14T16:52:47
202,368,537
0
0
null
null
null
null
UTF-8
Python
false
false
884
py
# Generated by Django 2.0.5 on 2019-07-13 06:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('shop', '0003_contact'), ] operations = [ migrations.CreateModel( name='Order', fields=[ ('order_id',...
[ "sai@gmail.com" ]
sai@gmail.com
f9180010f6cff316dbc786841e27e46a6565ee75
ec1059f4ccea10deb2cb8fd7f9458700a5e6ca4c
/venv/Lib/site-packages/examples/abc/abc.py
27b729065b826f202b83ec26b36e758c735da946
[ "MIT", "Apache-2.0" ]
permissive
shivam675/Quantum-CERN
b60c697a3a7ad836b3653ee9ce3875a6eafae3ba
ce02d9198d9f5a1aa828482fea9b213a725b56bb
refs/heads/main
2023-01-06T20:07:15.994294
2020-11-13T10:01:38
2020-11-13T10:01:38
330,435,191
1
0
MIT
2021-01-17T16:29:26
2021-01-17T16:29:25
null
UTF-8
Python
false
false
747
py
#!/usr/bin/python # # What's the minimum value for: # # ABC # ------- # A+B+C # # From http://www.umassd.edu/mathcontest/abc.cfm # from constraint import Problem def solve(): problem = Problem() problem.addVariables("abc", range(1, 10)) problem.getSolutions() minvalue = 999 / (9 * 3)...
[ "vinfinitysailor@gmail.com" ]
vinfinitysailor@gmail.com
6edd178f9bf61ce3eac84d0198dc74e6b891734c
74f0c966d09786f447ad60bf837ea342cb405874
/neutron/plugins/common/constants.py
65a0fb3e55db95f4b01caaeff764212ec9cdec61
[ "Apache-2.0" ]
permissive
mrwukang/neutron
ad354d19a6ba4ec9a92b4e54d02cf1bbfd66e47e
ebdb2ad1213eaf09c6a3f061a94ff4453c3e7506
refs/heads/master
2020-04-11T18:24:09.601969
2019-01-02T15:42:05
2019-01-02T15:42:05
161,997,228
1
0
null
null
null
null
UTF-8
Python
false
false
2,066
py
# Copyright 2012 OpenStack Foundation. # All Rights Reserved. # # 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 req...
[ "wukangmr@163.com" ]
wukangmr@163.com
ac2e7ac56ba8b1e425e6469aee56950fb953c604
5c335469a9198d61e2095293d06ce78e781726d0
/python/Semester 2/Tutorials/Tutorial 07/heapify.py
4c1b761a36b744566e7e0bd2a49531ea33d31211
[]
no_license
LaurenceGA/programmingProjects
5e203b450d11bff9cdb652661934ec3f797a6860
1fe3ea9a89be4c32cd68dd46da7a842b933c438b
refs/heads/master
2021-01-15T10:59:09.890932
2017-06-18T11:20:28
2017-06-18T11:20:28
36,592,569
1
1
null
null
null
null
UTF-8
Python
false
false
1,712
py
import random # Set up some Python Lists # <List creation reduced in size> shortlist = [0] + [random.randrange(0, 1000) for i in range(100)] longlist = [0] + [random.randrange(0, 10000) for i in range(10000)] superlonglist = [0] + [random.randrange(0, 1000000) for i in range(1000000)] def shiftdown(alist, j): sw...
[ "lorryarmstrong@gmail.com" ]
lorryarmstrong@gmail.com
321b5728100c986eaf738e26c6fbbb2d18727d20
d3efc82dfa61fb82e47c82d52c838b38b076084c
/Autocase_Result/TSZLMM/YW_TSZLMM_SZXJ_110.py
c4acee91dbb733e71013b5492546cc65ed540266
[]
no_license
nantongzyg/xtp_test
58ce9f328f62a3ea5904e6ed907a169ef2df9258
ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f
refs/heads/master
2022-11-30T08:57:45.345460
2020-07-30T01:43:30
2020-07-30T01:43:30
280,388,441
0
0
null
null
null
null
UTF-8
Python
false
false
3,751
py
#!/usr/bin/python # -*- encoding: utf-8 -*- import sys sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api") from xtp_test_case import * sys.path.append("/home/yhl2/workspace/xtp_test/service") from mainService import * from QueryStkPriceQty import * from log import * sys.path.append("/home/yhl2/workspace/xtp_test/m...
[ "418033945@qq.com" ]
418033945@qq.com
b754a02e84c5ba5f90204373e5f1110e57ba6819
a46a241888e09847ad8449de4ccef112d5928381
/0x0F-python-object_relational_mapping/2-my_filter_states.py
75f102d0148ba555ae55ecb8acba0d3e9becf209
[]
no_license
maleksal/holbertonschool-higher_level_programming
166ba33b30003debc021068b19c1d6e5cb3ab45d
08388ea7a18da21d3bb2ccba586984c166a7b7ec
refs/heads/master
2022-12-24T05:53:50.660730
2020-09-22T19:08:34
2020-09-22T19:08:34
259,385,998
1
0
null
null
null
null
UTF-8
Python
false
false
660
py
#!/usr/bin/python3 """ task 2 """ if __name__ == "__main__": import MySQLdb as mysql from sys import argv as args # assign args to variables mysql_username = args[1] mysql_password = args[2] db_name = args[3] argument = args[4] # connect to Mysql server database = mysql.connect( ...
[ "malek.salem.14@gmail.com" ]
malek.salem.14@gmail.com
236c6f577b7717e29a6f4c63e89a6f83779c6932
f1a8e308c76866e2fba20401e6f1d5842dd60c46
/Algorithms and Data Structures Practice/LeetCode Questions/Trees/104. Maximum Depth of Binary Tree.py
0bd42e9d4544e097edead8adf4e719f232d9348d
[]
no_license
harman666666/Algorithms-Data-Structures-and-Design
6e5da0c1f701e7dfc7b045ecd1209463131d3fc7
483f0c93faca8ccaf038b77ebe2fa712f6b0c6bc
refs/heads/master
2021-07-14T10:11:27.588838
2021-07-07T01:47:42
2021-07-07T01:47:42
101,330,760
3
1
null
2018-10-15T04:52:07
2017-08-24T19:32:03
Python
UTF-8
Python
false
false
2,316
py
''' Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node. ''' # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # ...
[ "harman.j.singh@hotmail.com" ]
harman.j.singh@hotmail.com
2d19f817c9950a712afbe90ca2aa086ea3d7c783
f2b3394a26ccfcd3680c3c094367d50339ad350b
/step8/palladium-config.py
d08c1b9efa9e29e989bdd0f7643a6be9ba6a9ca2
[]
no_license
naturalvision/tut-productive-ml
e4f6f7fb4dfb66aa37af7000c7640ca2b66b77ca
f0188b3e9dc47377b4e7696aae82d93a87adbe44
refs/heads/master
2023-06-25T03:24:43.385191
2019-12-11T13:05:01
2019-12-11T13:05:01
169,724,560
2
1
null
2023-06-09T12:10:32
2019-02-08T11:23:51
HTML
UTF-8
Python
false
false
1,267
py
{ 'dataset_loader_train': { '__factory__': 'palladium.dataset.CSV', 'path': '../step1/iris.data', 'names': [ 'sepal length', 'sepal width', 'petal length', 'petal width', 'species', ], 'target_column': 'species', ...
[ "daniel.nouri@gmail.com" ]
daniel.nouri@gmail.com
1617ad90bb2257091be24cb5ec9b6ab1832beb69
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03478/s264068566.py
f3c03f23788cefc5f4fc83864cd88afdb56f325f
[]
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
194
py
n, a, b = map(int, input().split()) ans = 0 for i in range(1, n+1): s = 0 for j in range(5): m = 10**j s += (i // m) % 10 if a <= s <= b: ans += i print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
00b35104acd17eb37e20c5590f6572398a6e6be2
e7669caf1a4ce9053bb720bcfa2d85a4ee35ea65
/jade/basic/filters/DataFilter.py
c0c5b074d7d4cab2a5b763bbeab257dfd0e678c6
[ "BSD-3-Clause" ]
permissive
SchiefLab/Jade
f81190321df061f8317db869a64a7b87a13d664a
791d26892aacf21bca733aa9c1c6ea3f2be51958
refs/heads/master
2023-01-10T15:14:08.431470
2018-11-07T17:11:02
2018-11-07T17:11:02
41,381,258
7
2
NOASSERTION
2022-12-26T20:35:53
2015-08-25T18:39:20
Python
UTF-8
Python
false
false
472
py
class DataFilter: """ Class for storing filter information - such as not equal to values or cutoffs. Used to create custom queries for data. """ def __init__(self, name, type = "boolean"): self.name = name self.type = type self.required_tables = [] self.required_wher...
[ "jadolfbr@gmail.com" ]
jadolfbr@gmail.com
93ff3ae5a23bed40386cb098ff452cb4e9ab39a7
82ffae21bc27e91643bcc344c89d2684b1105e56
/evaluation/calibration.py
a3d5bc894e48b54f75c21b77514c6e8b6fe397a5
[]
no_license
liuchongwei/IB-INN
4f4df0a0f9295fa4d9cc900170d1b7b59217dd7e
440b75d5fbafec75842b18c9e7b6f03a8d76d16d
refs/heads/master
2023-04-08T11:51:39.745227
2021-04-15T17:25:30
2021-04-15T17:25:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,869
py
import numpy as np import torch import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt def calibration_curve(model, data): pred = [] gt = [] correct_pred = [] max_pred = [] with torch.no_grad(): for x, l in data.test_loader: x, y = x.cuda(), data.onehot(l.cuda...
[ "lynton.ardizzone@iwr.uni-heidelberg.de" ]
lynton.ardizzone@iwr.uni-heidelberg.de
1824b0db9f4f3b2ac8fd33106ca013c8b1a155ad
898f8bb99295370187d90becf4437484de5bd175
/curriculum/admin.py
d31a8441cb5fc08246669827da5d9667aa9e0769
[]
no_license
babor99/sms
7fb800b564f4aade0f5104e16da680a7b0456920
d9d812f47b852d64a25334dc34efa984542468f3
refs/heads/main
2023-03-14T23:16:14.608273
2021-03-05T15:14:12
2021-03-05T15:14:12
344,840,951
0
0
null
null
null
null
UTF-8
Python
false
false
151
py
from django.contrib import admin from .models import * # Register your models here. admin.site.register([Standard, Subject, Lesson, Comment, Reply])
[ "islambabor947@gmail.com" ]
islambabor947@gmail.com
2689a29c57908255d8cefbebeb9c9d65bad4852c
68970799cb5d5adb3bef6958cbd60d20a2fd6b11
/urls.py
a2b8477100352e9e342f2bcc95b84e3db2667cea
[]
no_license
rgaudin/olga
8f645719776f17306974c7e5e5f7543180e1d663
9598c38b2a38e60a228156d9a73cb119a34f859e
refs/heads/master
2021-03-12T20:36:09.524565
2011-02-16T15:03:42
2011-02-16T15:03:42
1,373,412
0
0
null
null
null
null
UTF-8
Python
false
false
225
py
from django.conf.urls.defaults import * from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', (r'^/?', include('scan.urls')), # django admin (r'^admin/', include(admin.site.urls)), )
[ "rgaudin@gmail.com" ]
rgaudin@gmail.com
ec8e3d9b3f7d474d5a0de8a4c6249aef5e6a2b87
11e87c33ea7e97ac0826b27e1ccdaaf4d901431c
/examples/jax/mnist_classifier_fromscratch.py
10ff534c25f8703404a556c6c3def3dc394b5fdd
[ "MIT" ]
permissive
nagyist/deepx
3632cfd6ad64afcfe5af4faa2e8a14682051ab3c
07470e7a579a63427de1d5ff90b9fd00d3f54b61
refs/heads/master
2022-12-26T16:18:12.456053
2019-05-16T03:23:36
2019-05-16T03:23:36
85,385,719
0
0
MIT
2022-12-17T12:19:27
2017-03-18T08:06:49
Python
UTF-8
Python
false
false
3,774
py
# Copyright 2018 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ "sharad.vikram@gmail.com" ]
sharad.vikram@gmail.com
b3d96996ce2dc83a4c192568cbf0cc2fd9713796
05caf48bd067c050666026b75686f23d02327378
/490.the-maze.py
ff7e251702783116ec0ad6db79da19f0c396dc9f
[ "MIT" ]
permissive
elfgzp/Leetcode
3b6fa307c699fd5a1ba5ea88988c324c33a83eb7
964c6574d310a9a6c486bf638487fd2f72b83b3f
refs/heads/master
2023-08-21T23:11:38.265884
2020-10-17T11:55:45
2020-10-17T11:55:45
168,635,331
3
0
MIT
2023-07-21T03:50:43
2019-02-01T03:14:49
Python
UTF-8
Python
false
false
1,085
py
from collections import deque class Solution: di = [(-1, 0), (0, 1), (1, 0), (0, -1)] def hasPath(self, maze: List[List[int]], start: List[int], destination: List[int]) -> bool: start = tuple(start) queue = deque([start]) visited = {start} rows = len(maze) cols =...
[ "741424975@qq.com" ]
741424975@qq.com
58d4f19b3769525728ccf359cf2b2f554d88ff84
05505023def581aa0f6f9f518ec1b4efed2c4fd1
/Section 1/Section1/Video4_collections_6_comprehensions_set.py
470b4f01e54f143523c3eb07ba361911addf9bc2
[ "MIT" ]
permissive
PacktPublishing/-Python-By-Example
103f8413b57156a899a323f4f05e3a44ad11c00d
8f543afa07e190676d80bbb24bb2f5a1db44788d
refs/heads/master
2021-06-17T15:23:24.576640
2021-01-15T06:53:51
2021-01-15T06:53:51
134,667,649
9
6
null
null
null
null
UTF-8
Python
false
false
651
py
''' Created on Mar 31, 2018 @author: Burkhard A. Meier ''' # list of inventory with different upper and lower case strings inventory = ['car 1', 'CAR 2', 'tree', 'CAR 1', 'tomato PlAnt', 'bucket', 'BUCKET'] print(inventory) # list using for loop inventory_cap = [] for item in inventory: inventory_cap.append(...
[ "meghb@packtpub.com" ]
meghb@packtpub.com
d39f7999e9bafecd54ed6ef876507b5a06a09d8b
b638be5fd8ed665329203c531b1e179ae379e5f1
/lovehate/urls.py
b78516f381330bde9467714e01229d3e023bb258
[]
no_license
dengshilong/lovehate
9837199be8eac63fe3959499497c0ed390bbcb29
fd09f6057436b70c190ca9111fd9d40b30d3bc15
refs/heads/master
2021-01-12T11:08:30.937754
2016-11-26T09:18:34
2016-11-26T09:18:34
72,846,105
0
0
null
null
null
null
UTF-8
Python
false
false
1,364
py
"""server URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
[ "dengshilong1988@gmail.com" ]
dengshilong1988@gmail.com
bfeac1ccc9dcb251d5d3987fa930d606fdd2f6a5
74e73f4752235d70bc6cb8bcc187b9f00de9e5f5
/lcdtest.py
df37be1b3f231a9d8b137fa9d05f0e58b7466eac
[ "MIT" ]
permissive
vtt-info/Micropython-scheduler
a7bdb0faad6d7d1d5b5f6b48ca8051b88abaae42
6642a75af1c6688f7dd5e36efb6ae2e6762b00ec
refs/heads/master
2020-05-18T12:30:22.290356
2017-12-19T10:03:57
2017-12-19T10:03:57
184,410,748
2
0
null
2019-05-01T12:08:27
2019-05-01T12:08:27
null
UTF-8
Python
false
false
1,320
py
# lcdtest.py Demo/test program for MicroPython scheduler with attached LCD display # Author: Peter Hinch # Copyright Peter Hinch 2016 Released under the MIT license # Display must use the Hitachi HD44780 controller. This demo assumes a 16*2 character unit. import pyb from usched import Sched from lcdthread import LCD,...
[ "peter@hinch.me.uk" ]
peter@hinch.me.uk
a16ae511a27ab97f27c2cb367aea6cac9b9505cb
eebacbc58a1c99fb6e32f8cd56cac6e18947d3e7
/1.python_foundation/3.Use_list_and_tuple.py
a31ee22e0d62a0efe73cf4e428e3b83fe27f746e
[]
no_license
fzingithub/LearnPythonFromLiao
ad7f959d7e667a464f2b9a6b1cedfd0f08baaf8e
fcb0f2e7f905aca253b3986c4a1ceab6b82b7cae
refs/heads/master
2020-03-29T19:37:32.831341
2018-09-27T10:39:11
2018-09-27T10:39:11
150,273,212
0
0
null
null
null
null
UTF-8
Python
false
false
1,384
py
# -*- coding: utf-8 -*- """ Spyder Editor This is a temporary script file. """ #list and tuple 有序集合 #list 列表 classmate = [['frala','zhanglu'],'huasheng','xiakui'] print (classmate) print (len(classmate)) #3 print (classmate[0]) #索引定位 从0开始 print (classmate[0][1]) #看成二维 print (classmate[-1]) #索引-1直接获取最后...
[ "1194585271@qq.com" ]
1194585271@qq.com
c63c521fc9a9f716039ed4482ff1908f4beae31c
abb42b23d14f65e79732d73ac20aa041eb7e18e3
/compute_objective_th.py
9f2838c31dbbf08a536d31f544434a202c2d5b18
[]
no_license
leemengwei/Old-stuff-wrf
68387d5b2d43ab3de4bbfc067cf450fb80656fb4
c70ecb057231751f86db505f0d4450a0210b97e3
refs/heads/master
2021-09-14T17:30:24.395192
2018-05-16T17:41:21
2018-05-16T17:41:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,899
py
#Import defs from plot_basemap.py then compute objective function. import numpy as np from plot_basemap import WRF from plot_basemap import get_TS from plot_basemap import platform_judge from plot_basemap import get_speed_pressure_seq from plot_basemap import get_seq_error from plot_basemap import get_rain_obs_x_y_z fr...
[ "1099366685@qq.com" ]
1099366685@qq.com
248e8763ccdb762cad0f06f1474b2bac394f393d
8c691edc6613848fa826a20614d63b6a5c1b2fd7
/some_logic/interview/subject_system/admin.py
4fac5c6c26a6d6fed55f67f93f26d0873d774bb6
[]
no_license
bufubaoni/antitools
7b693e4be79b78e04816440fba72eb154cb34097
dd0b45ca6b9b5d27b61959c99a2bacde81ed6f12
refs/heads/master
2020-09-15T01:21:42.930811
2020-09-02T13:17:44
2020-09-02T13:17:44
66,334,289
24
25
null
2017-03-20T03:02:15
2016-08-23T04:55:37
Python
UTF-8
Python
false
false
362
py
from django.contrib import admin from subject_system.models import (Student, Subject, SubjectTime, Teacher, RelationStudentSubject) admin.site.register(Student) admin.site.register(Subject) admin.site.register(SubjectTime) admin.site.register(Teacher) admin.site.register(RelationStud...
[ "bufubaoni@163.com" ]
bufubaoni@163.com
c786d902558d48c64079a81c5b988622e99d3a8e
b6345c4aea6a98a3aed9a2e99fb425ea535f4e80
/19.remove-nth-node-from-end-of-list.py
caac64238415a24a9d24317a3c9d808dbc2f8ffd
[]
no_license
ranbix666/leetcode-1
b94d256af9ddb9f1403891ed3229474fca92bea1
351b4d97db5afdaaa77d90deb24f5b16010d9fb5
refs/heads/master
2022-12-31T05:07:53.529302
2020-10-21T00:49:31
2020-10-21T00:49:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,460
py
# # @lc app=leetcode id=19 lang=python # # [19] Remove Nth Node From End of List # # https://leetcode.com/problems/remove-nth-node-from-end-of-list/description/ # # algorithms # Medium (34.50%) # Likes: 2144 # Dislikes: 160 # Total Accepted: 451.9K # Total Submissions: 1.3M # Testcase Example: '[1,2,3,4,5]\n2' #...
[ "you@example.com" ]
you@example.com
abafc256b31d15f7df84715295eceb13e78437ad
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02960/s442330547.py
9dd44bded2f73eda157ee9c7d552a46831473b25
[]
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
335
py
S = input() mod = 10 ** 9 + 7 dp = [0] * 13 dp[0] = 1 for s in S: d = [0] * 13 if s == '?': for i in range(13): for j in range(10): d[(10*i + j) % 13] += dp[i] else: for i in range(13): d[(10*i + int(s)) % 13] += dp[i] dp = [x % mod for x in d] pri...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
20029e273f5f644ad9b198738011d31bd8507fcb
9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb
/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2020_11_01/aio/_container_service_client.py
1190b7ffc4cdfd6ba9dbcfbe25621adfcf0e85c7
[ "MIT", "LGPL-2.1-or-later", "LicenseRef-scancode-generic-cla" ]
permissive
openapi-env-test/azure-sdk-for-python
b334a2b65eeabcf9b7673879a621abb9be43b0f6
f61090e96094cfd4f43650be1a53425736bd8985
refs/heads/main
2023-08-30T14:22:14.300080
2023-06-08T02:53:04
2023-06-08T02:53:04
222,384,897
1
0
MIT
2023-09-08T08:38:48
2019-11-18T07:09:24
Python
UTF-8
Python
false
false
6,238
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
openapi-env-test.noreply@github.com
e03c70c06c4207e25e1de4aac4b78111417b2402
eefe5d24d491b377cf800a364513d42b54b82ac6
/q2_mlab/db/cli.py
c0d2ae86f64437aa9d97307dab0e0581e5c1d362
[ "BSD-3-Clause" ]
permissive
knightlab-analyses/regression-benchmarking
bd13863467508a53a0aa279352645217852918b1
90a9dd1f4196d76145d17d733dffc13830fd95fa
refs/heads/master
2021-12-24T20:53:55.133543
2021-05-28T00:08:17
2021-05-28T00:08:17
189,495,382
0
4
BSD-3-Clause
2022-08-22T23:00:09
2019-05-30T23:25:10
Python
UTF-8
Python
false
false
1,933
py
import click import json from qiime2 import Artifact from q2_mlab.db.maint import ( create as db_create, add_from_qza ) @click.group() def mlab_db(): pass @mlab_db.command() @click.option( '--db', help='Path to SQLite database file.', type=click.Path(exists=False), ) @click.option( '--ec...
[ "garmstrong@colgate.edu" ]
garmstrong@colgate.edu
ec4a0125630f647be15c733ba44b40cdb74e7bd9
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_pakistanis.py
9db240f265727093e054ad951fb7e2e89bf3f2b9
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
259
py
from xai.brain.wordbase.nouns._pakistani import _PAKISTANI #calss header class _PAKISTANIS(_PAKISTANI, ): def __init__(self,): _PAKISTANI.__init__(self) self.name = "PAKISTANIS" self.specie = 'nouns' self.basic = "pakistani" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
209c544571eca341ce639686cb4c59a4cf46fee1
3f7203b42fcdcb804f6cd24375c03d422b52ede1
/rephile/db.py
04e6675617b09cc9ecb8773689b9b140083fca8b
[]
no_license
brettviren/rephile
e0097eafeedc8ae3ff5e93e17af8f5ae43ae3be7
55d9d27bd96904f73be54c416014f27fd276d245
refs/heads/master
2023-06-19T19:46:38.847872
2021-07-10T17:12:12
2021-07-10T17:12:12
324,655,423
0
0
null
null
null
null
UTF-8
Python
false
false
900
py
#!/usr/bin/env python3 '''Functions that operate on the cache db.''' import os from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from rephile.types import Base def engine(url): 'Get db engine' if url is None: raise ValueError("no db url given, set REPHILE_CACHE?") if ":"...
[ "brett.viren@gmail.com" ]
brett.viren@gmail.com
98e4d378dc1203c0f9004e68afe1062cbca34fa0
171a89102edf10901e18a2c0f41c3313608d2324
/src/rogerthat/capi/location.py
de49bbe02c88f0b6acb91ef0dfd23d8bfb86a0c2
[ "Apache-2.0" ]
permissive
gitter-badger/rogerthat-backend
7e9c12cdd236ef59c76a62ac644fcd0a7a712baf
ab92dc9334c24d1b166972b55f1c3a88abe2f00b
refs/heads/master
2021-01-18T06:08:11.435313
2016-05-11T08:50:20
2016-05-11T08:50:20
58,615,985
0
0
null
2016-05-12T06:54:07
2016-05-12T06:54:07
null
UTF-8
Python
false
false
1,928
py
# -*- coding: utf-8 -*- # Copyright 2016 Mobicage NV # # 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 o...
[ "bart@mobicage.com" ]
bart@mobicage.com
5c70aaeaee6a1e8f55abddf9d91e1cb597f15482
1f263c319b48e65502054bd60d2a9c24b43ffb0d
/SConstruct
faf09c80173d76752163193c509a09154511e950
[]
no_license
cr1901/pcbios
9df5f1f4d675ee5068cdb3c59f0c3fce76be57e7
f4d7c9d90f3146cd4d6a662cfa3c493f2a85729a
refs/heads/master
2020-12-24T17:36:32.968187
2015-03-15T05:38:06
2015-03-15T05:38:06
30,989,952
6
0
null
null
null
null
UTF-8
Python
false
false
1,603
#=============================================================================== #Initial Checks and Imports #=============================================================================== EnsurePythonVersion(2, 7) EnsureSConsVersion(2, 2) #Todo- create COM environment #Create bin environment as well #When ready to ...
[ "thor0505@comcast.net" ]
thor0505@comcast.net
b281976e851b991f8042e97b8a2909040514b581
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2588/58547/256572.py
2ec120fa35b0064910b3e819520d179b88b22ac1
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
2,010
py
import math prime_lib = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 31...
[ "1069583789@qq.com" ]
1069583789@qq.com
12b574ded5a3509f6cd4b5248dbb65e290627675
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_0_4_neat/16_0_4_RoyPortgas_Fractals.py
ca1e818b1b5eb3648aec9e979782f33c4f4c9623
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
5,443
py
# Original sequence GLLL: GGGG GLLL GLLL GLLL # Original sequence LGLL: LGLL GGGG LGLL LGLL # Original sequence LLGL: LLGL LLGL GGGG LLGL # Original sequence LLLG: LLLG LLLG LLLG GGGG # X X # X X #Notice, Nothing with at least 1 G can have LL at 2,12 #...
[ "[dhuo@tcd.ie]" ]
[dhuo@tcd.ie]
0096abbd5dbd5533669f51a86e51d8286f7f2fc6
5f1881006aaf4f3c2515f375ad29c15fd6612de2
/poset_decoding/traversal_path_prediction/MatchZoo-py/matchzoo/models/anmm.py
abb0ee0b2c8e205436372172a8fb026815bbba29
[ "MIT", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-unknown-license-reference", "LGPL-2.1-or-later", "Apache-2.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
microsoft/ContextualSP
4edb598d40f683f9a1143b92a9d24e1066d51ec4
4198ebce942f4afe7ddca6a96ab6f4464ade4518
refs/heads/master
2023-08-02T22:08:40.503853
2023-07-14T07:22:50
2023-07-14T07:22:50
255,534,819
332
70
MIT
2023-07-25T19:23:48
2020-04-14T07:01:54
Python
UTF-8
Python
false
false
5,268
py
"""An implementation of aNMM Model.""" import typing import torch import torch.nn as nn from matchzoo.dataloader import callbacks from matchzoo.engine import hyper_spaces from matchzoo.engine.base_model import BaseModel from matchzoo.engine.param import Param from matchzoo.engine.param_table import ParamTable from ma...
[ "qian.liu@buaa.edu.cn" ]
qian.liu@buaa.edu.cn
0f9c454947a958eb86e8d2e94e14bec64f3d2bfc
6af81c1e3853255f064ce58e848b34211decdd23
/test/top/api/rest/FenxiaoProductcatUpdateRequest.py
bbec6ba8bf66ad3eee723d14b87017fa33a77bde
[]
no_license
dacy413/TBAutoTool
d472445f54f0841f2cd461d48ec6181ae2182d92
ca7da4638d38dd58e38c680ee03aaccf575bce7b
refs/heads/master
2016-09-06T16:13:01.633177
2015-02-01T00:04:50
2015-02-01T00:04:50
29,625,228
0
0
null
null
null
null
UTF-8
Python
false
false
492
py
''' Created by auto_sdk on 2015-01-20 12:36:26 ''' from top.api.base import RestApi class FenxiaoProductcatUpdateRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.agent_cost_percent = None self.dealer_cost_percent = None self.name = None ...
[ "1656505353@qq.com" ]
1656505353@qq.com
11a79f2794f2303f980aa223864be4422b8e662f
da44f6c5b37a96744ae480a06bb223511fad8858
/server1_film/build/lib/doubiyang/settings.py
7e86444cbc86ca4bafbfa24e108d1c182cec2f6f
[]
no_license
lezhangjian/scrapy
b46e0f036c1609e74b2ec675ac2c576e744b9aad
c479e9d3ce93064342c654c5396c3a9471290d26
refs/heads/master
2020-07-23T04:39:53.323131
2019-09-10T02:29:54
2019-09-10T02:29:54
207,447,663
0
0
null
null
null
null
UTF-8
Python
false
false
3,328
py
# -*- coding: utf-8 -*- # Scrapy settings for doubiyang project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://doc.scrapy.org/en/latest/topics/settings.html # https://doc.scrapy.org/en/latest/top...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
eed8c8f2e90a2a2fa9fa3f23da9442e57cae5eb4
60375e35068724b53e201fa9a5e86ebdabeac560
/gtutorial/messaging/http.py
7ed6f67d9acb7a9ee53418d2451fddc26374aa31
[]
no_license
rayleyva/ginkgotutorial
ab3d2bf6ab68fc72f6ab5d60910e6b9922c191ac
12e9c77840c61ef8530600379d195d75863a7cc8
refs/heads/master
2021-01-21T00:12:05.080757
2012-03-08T01:23:24
2012-03-08T01:23:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,638
py
import random import socket import json import socket import collections import logging import gevent.pywsgi import gevent.queue import webob from gservice.core import Service, autospawn from gservice.config import Setting logger = logging.getLogger(__name__) class HttpStreamer(Service): address = Setting('pubs...
[ "progrium@gmail.com" ]
progrium@gmail.com
06326f59dfc1d10275dc9ed9dd1a8aad2fbba715
d5850f9a45098f635ddacba9e9ecb6dc1ee733e1
/{{cookiecutter.project_slug}}/backend/app/app/crud/utils.py
3d7863466219ddd3ac9bffdec3df51d4558a65b9
[ "MIT" ]
permissive
tiangolo/full-stack-flask-couchbase
d4df2ad5e560d4bb210599123912f18085b8d77e
4b74f124394cf658d4a51c277919e81dea7f999e
refs/heads/master
2022-11-21T07:37:32.176877
2022-11-14T16:15:27
2022-11-14T16:15:27
154,149,461
57
13
MIT
2020-02-07T18:48:50
2018-10-22T13:31:32
Python
UTF-8
Python
false
false
5,472
py
import uuid from enum import Enum from typing import List, Sequence, Type, Union from couchbase.bucket import Bucket from couchbase.fulltext import MatchAllQuery, QueryStringQuery from couchbase.n1ql import CONSISTENCY_REQUEST, N1QLQuery from pydantic import BaseModel from pydantic.fields import Field, Shape from app...
[ "tiangolo@gmail.com" ]
tiangolo@gmail.com
ec9b9e73b0bf55b677a011a8775120d5c90fb9d0
758ac6a75ca021d8595975be0d41fa50c7bfdf88
/phantomjs/screen_capture_400.py
19cabecd0b218e482bc55898fb979d4cdfb12855
[]
no_license
Henry2012/recipes
5a04197a41e94a638c20350b3e0ec6d23702808d
fe61d1bd57f922a41a816939e5ef2e9abd7eb6e9
refs/heads/master
2020-04-21T14:16:51.034571
2014-07-01T08:09:35
2014-07-01T08:09:35
18,829,830
5
2
null
null
null
null
UTF-8
Python
false
false
894
py
#! /usr/bin/python #-*- coding:utf-8 -*- """ Author(s): Qiqun Han Company: EverString Technology Ltd. File: phantomjs.screen_capture.py Description: this program Creation: 2013-11-26 Revision: 2013-11-26 Copyright (c) All Right Reserved, EverString Technology Ltd., http://www.everstring.com """ import subprocess impo...
[ "qiqun.h@everstring.net" ]
qiqun.h@everstring.net
7c2a327ae906b406e7ec005850cf0abc14844476
6f0a897e79e5c9210a3568b6a4ed09ffff3d9e3a
/info_collector/migrations/0002_info_status.py
9a6d71abbc6b8c1e509dd60675589ed6400d4dc0
[]
no_license
fruitschen/fruits_learning
3e215d891c094afccdbd465402540678c7a4656e
d9108961ea3aef507f61e056ee6d4b2cf43a1f55
refs/heads/master
2023-07-06T11:56:46.367259
2021-10-06T15:01:13
2021-10-06T15:01:13
82,281,023
1
2
null
2023-09-05T22:56:29
2017-02-17T09:35:08
JavaScript
UTF-8
Python
false
false
469
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-28 06:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('info_collector', '0001_initial'), ] operations = [ migrations.AddField( model_name='info', ...
[ "fruitschen@gmail.com" ]
fruitschen@gmail.com
fdf8e072b41723a47a73441b964e90af1d2e0505
c734bedf8f6ada2e4ced225e84cefe867d6407fe
/t5/data/cache_tasks_test.py
8041ab02c6762ba9d9fa03e58ec0ec5a36a949c0
[ "Apache-2.0" ]
permissive
cybersnus/text-to-text-transfer-transformer
7ba30f99b580bfbd8f07f405f359c7d0ab6fdcb0
9deeeac0cf49988339579186e829a891d8343ec6
refs/heads/master
2022-12-16T05:16:58.000310
2020-09-16T10:06:09
2020-09-16T10:06:09
284,441,794
0
0
Apache-2.0
2020-08-02T10:46:36
2020-08-02T10:46:35
null
UTF-8
Python
false
false
4,350
py
# Copyright 2020 The T5 Authors. # # 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 in writi...
[ "t5-copybara@google.com" ]
t5-copybara@google.com
a3633887c80abbb00aa6d765bce2e8388f0bda2e
4cada642a3c4419977dc642847c689464c2f0fb7
/skeleton_scripts/google_scores.py
5d3a3f61ee9705bae00a2a4e55c5b08e60b84509
[]
no_license
constantinpape/block_experiments
615f3050e9e3af79cfa2379e011129d34e57de32
ed0f0c9039adb3085ae45e0047d8a3abb3251344
refs/heads/master
2021-04-08T21:36:49.241426
2018-05-28T20:41:18
2018-05-28T20:41:18
125,417,010
0
0
null
null
null
null
UTF-8
Python
false
false
2,413
py
import os import json from cremi_tools.skeletons import build_skeleton_metrics # TODO add run-length computation def compute_google_scores(block_id, seg_key, skeleton_postfix): path = '/nrs/saalfeld/lauritzen/0%i/workspace.n5' % block_id label_file = os.path.join(path, 'raw', 'segmentations', 'results', seg_k...
[ "constantin.pape@iwr.uni-heidelberg.de" ]
constantin.pape@iwr.uni-heidelberg.de
3a08168808f5319cb3f8626227b8eaee17987b64
d30788b3a12a2a5406228db4a32a68667f069660
/speakers/models.py
39e28a541d48008ced64740ef80b252c2e6c26d5
[]
no_license
sembug/pywatch.com.br
8543204c1410b22e5e748b0f474d6b608fdb8872
0e9894261b19fb4e4b43463e60807c24dc78c2f8
refs/heads/master
2021-01-18T01:59:03.955138
2015-09-01T00:00:22
2015-09-01T00:00:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,399
py
# -*- coding:utf-8 -*- # Core Django imports from django.db import models from django.utils.translation import ugettext as _ from django.core.urlresolvers import reverse from django.contrib.auth.models import AbstractUser from django.views.generic.edit import CreateView # Realative imports of the 'app-name' package f...
[ "lucassrod@gmail.com" ]
lucassrod@gmail.com
10594e3c8d085af15c8254970f8baa20650f0538
d786fe979eef20b0538f3e9fecedc8d021b55a17
/session10/exercises/inlist.py
1f5d730947be16fe23ecc8bcdd08a5e0fe01bdb2
[]
no_license
Waylonryan/mis3640
962ae36080de08d3ada9971c4529808cb718c072
5182a8fbe12a2e0116f61d9e541311537909ed07
refs/heads/master
2020-04-04T06:57:10.342733
2018-10-30T21:19:56
2018-10-30T21:19:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
664
py
def make_word_list(): """Reads lines from a file and builds a list using append. returns: list of strings """ word_list = [] fin = open('words.txt') for line in fin: word = line.strip() word_list.append(word) return word_list def in_bisect(word_list, word): """Checks w...
[ "zli@babson.edu" ]
zli@babson.edu
b4237134fa7abaf290826451765066d47f25b152
c16841e3b90e7be26868d5581299119df4006b7b
/all_tests/ut34.py
1398406096f8210470437378b798001411cd06a2
[ "Apache-2.0" ]
permissive
shushantkumar/ci_edit_final
49e32871c796ef5353877da13cbd0e63db60037e
3b13c7a39b2112ed8daaa70bc4f0f50d67909494
refs/heads/master
2020-08-28T04:51:08.905537
2019-11-03T08:19:47
2019-11-03T08:19:47
217,596,069
0
0
null
null
null
null
UTF-8
Python
false
false
1,239
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import curses import os import sys from all_tests.curses_util import * import all_tests.ci_program import all_tests.fake_curses_testing kTestFile = u'#all_testslication_test_file_with_unlikely_file_name~' c...
[ "shushantkmr2@gmail.com" ]
shushantkmr2@gmail.com
27268378530fedbbb74425e945e7a8af81544980
a49bf2214bafeceaf37d005d0ae2d9b63ac8c304
/500/arrays/12.py
5c4812e7a2cca279032489329b3bc9fa77326bad
[]
no_license
aishwat/missionPeace
aea0e4cb0ba483581b0c01980b2cefb5b5b7394f
8c2accdc98c04ad1ba3a0f8c789a0261fc03e385
refs/heads/master
2023-03-19T09:20:36.920890
2023-03-07T14:01:05
2023-03-07T14:01:05
221,540,152
1
0
null
null
null
null
UTF-8
Python
false
false
809
py
# Find index of 0 to replaced to get maximum length sequence of continuous ones # 2 solutions, 1st is very tricky, need to maintain left pointer and coumnt # 2nd one here, kinda hack def getIndex(a): n = len(a) for i in range(1, n): if a[i] == 1: a[i] += a[i - 1] print(a) i = n - 1...
[ "aishwat.singh@target.com" ]
aishwat.singh@target.com
a9193e799a4ae85ef9653d64978abbc1ecdeaf2d
d9a469bc9cff39d89e7cb04e4fc537763aee9aca
/binance_chain/ledger/client.py
2fd0e8ad6b265cb1d2e6b01d93733b0d390b6c80
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
sammchardy/python-binance-chain
d017c0f1e6bd84d28017f87e2d229b21a2ee8b8a
19d7d639cc912a27ec86831338c2a2dc96289d50
refs/heads/master
2023-05-11T19:15:44.912507
2021-06-01T03:14:25
2021-06-01T03:14:25
172,324,144
310
111
MIT
2022-06-30T10:55:19
2019-02-24T10:29:29
Python
UTF-8
Python
false
false
5,468
py
import re import binascii from typing import Optional from btchip.btchip import writeUint32LE, BTChipException from binance_chain.environment import BinanceEnvironment from binance_chain.ledger.exceptions import LedgerRequestException class LedgerApp: BNC_CLA = 0xbc BNC_INS_GET_VERSION = 0x00 BNC_INS_P...
[ "hello@sammchardy.net" ]
hello@sammchardy.net
3b7ec4896cfb192db129eabe747182e8a69d940a
622f97befe3e569290a021bacfdfd88dfe925f16
/upload2.py
67aaf0018326124b2d79defce661a8805e841fd4
[]
no_license
Sapphirine/visualization_user_movement_social_networks
0f8cc25abd2c6db09ddf995048bf16e257f70ecd
8ccb51a6371705037b7f46619c9d60e6dcdeb40c
refs/heads/master
2021-01-12T05:44:44.689886
2016-12-23T03:57:59
2016-12-23T03:57:59
77,187,129
1
0
null
null
null
null
UTF-8
Python
false
false
784
py
import mysql.connector f = open('./loc-gowalla_edges.txt', 'rb') cnx = mysql.connector.connect(user='final', host= 'check-in.cm2toc8pkwqx.us-east-1.rds.amazonaws.com', password= 'final123', database='final') cursor = cnx.cursor() data = f.read() add_column = ("INSERT INTO edge " "(Person1, Person2) " ...
[ "noreply@github.com" ]
Sapphirine.noreply@github.com
ecc87bce910e84e12e547826c2d132f32f7b53f6
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_15415.py
114ba7410d7ecd9c0854fdf84f969acafca67608
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
195
py
# Unable to connect to database : Pyodbc username = "domain\\user" connection_string = "DRIVER={FreeTDS};SERVER=xxxx;PORT=xx;DATABASE=xxxx;UID=%s;PWD=xxx;CHARSET=UTF8;TDS_Version=8.0" % username
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
5f89cc50e9bfea5efa839427f4be19da8f99dc6d
21605e9ded0f40e1fdc0caaa984b94b0dec288c3
/specialMajor/3-8/list/firstapp/migrations/0014_comment_belong_to.py
9610d2b51178ada5f3470dfe1f617a6e318e3e2b
[]
no_license
Devinwon/webprj
a09c84a23a2935a9fdb8dc25880d2ba023d9c390
96a5c952f00a89ce9fa97c114048d2e6f5c59f1d
refs/heads/master
2021-09-17T07:57:37.652959
2018-06-29T08:19:16
2018-06-29T08:19:16
115,863,180
0
0
null
null
null
null
UTF-8
Python
false
false
595
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-06-11 09:59 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('firstapp', '0013_auto_20170611_1733'), ] operation...
[ "reaptem@gmail.com" ]
reaptem@gmail.com
82f03086e25c7dedfb439caa033146501795a685
8d06a98ad1535e309424c612b573cbce3468fbe1
/Examples/IPlugChunks/scripts/update_installer_version.py
9eb51f3f81e1b3147bfa22f67a4bf93329675f65
[ "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-unknown-license-reference" ]
permissive
olilarkin/iPlug2
96c8214eaa41bb4f6feefceb16e85fce92ef5aab
4fb57035338be0ec51a7c024162bdbc5a4058a07
refs/heads/master
2021-06-27T11:26:24.558679
2021-05-11T22:36:14
2021-05-11T22:36:14
243,630,155
3
1
NOASSERTION
2020-02-27T22:31:21
2020-02-27T22:31:20
null
UTF-8
Python
false
false
3,020
py
#!/usr/bin/python # this script will update the versions in packages and innosetup installer files to match that in config.h import plistlib, os, datetime, fileinput, glob, sys, string scriptpath = os.path.dirname(os.path.realpath(__file__)) projectpath = os.path.abspath(os.path.join(scriptpath, os.pardir)) IPLUG2_R...
[ "olilarkin@googlemail.com" ]
olilarkin@googlemail.com
84148f1f40ab72d3f9655a960548891494baf3b7
2dd5ae0e7bc431c25f4d933288ab2169bdca24f5
/apps/trade/migrations/0006_auto_20190902_1510.py
9146366c6032bb2af78e83aaac2385977a7273e3
[]
no_license
luoshanya/mxshop
8725bfb0526fa992faf9474991157dbcaeb4d77c
d77c00082e54a4d4bf3f4cfdf14581fb78dafeb6
refs/heads/master
2020-07-29T08:50:16.809593
2019-09-09T13:24:57
2019-09-09T13:24:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
365
py
# Generated by Django 2.1.4 on 2019-09-02 15:10 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('trade', '0005_auto_20190901_1028'), ] operations = [ migrations.RenameField( model_name='order', old_name='mount', ...
[ "onerf@sina.com" ]
onerf@sina.com
62ee44e246c13963dc9b3995e720778d3a415695
fd8fe6ccc691cb41fa4a03cd4a93b4c45f90f712
/tests/test_streams.py
566deb2db6e5aebd542cec892cc4110f39b95797
[ "BSD-3-Clause" ]
permissive
noajshu/websockets
eb93b913afd05badaa70db84b2dbdbf2bf474882
16a3bc72252e52c2b0ef6272fd2fef60381ba5c8
refs/heads/main
2023-05-05T03:53:37.678224
2021-05-19T14:33:54
2021-05-19T14:33:54
368,693,948
0
0
BSD-3-Clause
2021-05-18T23:45:38
2021-05-18T23:45:38
null
UTF-8
Python
false
false
4,640
py
from websockets.streams import StreamReader from .utils import GeneratorTestCase class StreamReaderTests(GeneratorTestCase): def setUp(self): self.reader = StreamReader() def test_read_line(self): self.reader.feed_data(b"spam\neggs\n") gen = self.reader.read_line() line = se...
[ "aymeric.augustin@m4x.org" ]
aymeric.augustin@m4x.org
f684231548d45af23ec40f94d6a747e07a2dee12
fcc88521f63a3c22c81a9242ae3b203f2ea888fd
/Python3/0701-Insert-into-a-Binary-Search-Tree/soln.py
dd1ec33d6f3ad524606065e2cc336022b99d0bb2
[ "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
554
py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def insertIntoBST(self, root, val): """ :type root: TreeNode :type val: int :rtype: TreeNode """ ...
[ "zhang623@wisc.edu" ]
zhang623@wisc.edu
1b997251b12c0dbd616315e2a006444d85f6b7e7
7f92c2fc131ca637d8b7c2a4dbba4b974884e786
/lab4/collectionScripts/calibrate2.py
6f7813ebcc10a2a24d4c390208f5488396793085
[]
no_license
byronwasti/CircuitsLabs
2c5694f07a59adedddde361d0a85a690a83e096b
be1227c504ed1a2b81b6d670cbaa45d4b8be8e17
refs/heads/master
2020-05-23T11:15:14.853587
2017-09-03T18:53:50
2017-09-03T18:53:50
80,369,111
0
0
null
null
null
null
UTF-8
Python
false
false
179
py
import numpy as np import smu s = smu.smu() s.set_current(1, 10e-6) try: while True: s.get_current( pass except KeyboardInterrupt: s.set_voltage(1, 0.)
[ "byron.wasti@gmail.com" ]
byron.wasti@gmail.com
3a79bcb8799279807c9d2647ea2988ec223d8300
72a58c62d62210e853ef09fdee65bf6ffb8972bd
/src/lib/gcloud/datastore/demo/__init__.py
d65cb0f0913b1b7fb7dd164e5ca9761224e0dda2
[ "MIT" ]
permissive
thonkify/thonkify
93ade2489f20fb80c5e8e27fe67b9b231ada62bd
2cb4493d796746cb46c8519a100ef3ef128a761a
refs/heads/master
2023-09-01T00:03:10.398583
2018-03-16T09:18:24
2018-03-16T09:18:24
99,354,595
17
3
MIT
2023-09-05T02:27:42
2017-08-04T15:10:50
Python
UTF-8
Python
false
false
722
py
# Copyright 2014 Google Inc. All rights reserved. # # 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...
[ "david.dellsperger@gmail.com" ]
david.dellsperger@gmail.com
9d68e4c5e8b101aa913d6ec7022cf2a6fe8d2182
76dd191c092c836f0f72a364bda133bdb37c5cbc
/system/djangoapp/migrations/0015_auto_20200725_0910.py
322436192768b90a31cfb1171d18e9e93c50c40d
[]
no_license
PreritBhandari/Django-Assignment-II-
36619b337c5f6454e8729cb1ae3df2bfa400c243
808e9d47bbc7f78f81577a45356cb34839713ccb
refs/heads/master
2022-11-25T09:07:07.423648
2020-07-29T11:47:12
2020-07-29T11:47:12
283,487,872
1
0
null
null
null
null
UTF-8
Python
false
false
1,065
py
# Generated by Django 2.1 on 2020-07-25 09:10 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('djangoapp', '0014_auto_20200725_0909'), ] operations = [ migrations.AlterModelOptions( name='user', options={}, ), ...
[ "patrioticprerit@gmail.com" ]
patrioticprerit@gmail.com
951174456b18d825e0041d87b0e6782a8e07de13
a8750439f200e4efc11715df797489f30e9828c6
/codechef/SNCK1A19_TYPING.py
d85a7b4db7830f9affdd61d6b5b411194a6bad21
[]
no_license
rajlath/rkl_codes
f657174305dc85c3fa07a6fff1c7c31cfe6e2f89
d4bcee3df2f501349feed7a26ef9828573aff873
refs/heads/master
2023-02-21T10:16:35.800612
2021-01-27T11:43:34
2021-01-27T11:43:34
110,989,354
0
0
null
null
null
null
UTF-8
Python
false
false
1,309
py
# -*- coding: utf-8 -*- # @Date : 2018-10-20 07:38:09 # @Author : raj lath (oorja.halt@gmail.com) # @Link : link # @Version : 1.0.0 from sys import stdin max_val=int(10e12) min_val=int(-10e12) def read_int() : return int(stdin.readline()) def read_ints() : return [int(x) for x in stdin.readline().spli...
[ "raj.lath@gmail.com" ]
raj.lath@gmail.com
eb053aaa45f6554ef5dbd55703e0106b0ec03102
5ca38ff27b75900bdadde2b8541b69a70050ca9c
/test/event/__init__.py
90ce66a1ec0e36eee1ef4503a41dea76ed6879d2
[ "MIT" ]
permissive
OlegKlimenko/py-enarksh
cf780a2b5cc17c32d7fe7ac32b8f6830fda8b2f7
e890534a2f71cab4d9914c3b68fd9b3ef716c5df
refs/heads/master
2021-01-09T07:59:11.174183
2016-11-04T13:43:55
2016-11-04T13:43:55
64,314,331
1
0
null
2016-11-04T13:43:56
2016-07-27T14:15:47
Python
UTF-8
Python
false
false
3,303
py
import os import sys # ---------------------------------------------------------------------------------------------------------------------- HOME = os.path.realpath(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../..')) CONTROLLER_PULL_END_POINT = 'tcp://127.0.0.1:7771' CONTROLLER_LOCKSTEP_END_POINT = '...
[ "p.r.water@setbased.nl" ]
p.r.water@setbased.nl
378feea6c31bd2289a6701871fd39fcd6b14850d
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/yuyu2172_chainer-cv/chainer-cv-master/chainer_cv/extensions/embed_images.py
876b43532df1274ce9227e0c404ac94fb0c45b87
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
2,336
py
import copy import numpy as np import os.path as osp import chainer from chainer.dataset import convert from chainer.utils import type_check from chainer_cv.extensions.utils import check_type from chainer_cv.extensions.utils import forward class EmbedImages(chainer.training.extension.Extension): """An extension...
[ "659338505@qq.com" ]
659338505@qq.com
6f8d03635435ee47b27a0e203c3a3db6c8479232
0e647273cffc1fb6cbd589fa3c7c277b221ba247
/configs/hpt-pretrain/chexpert/moco_v2_800ep_basetrain/003lr5000bn-iters.py
68c77b7b21bc9de8abf90d5de8282309d39fd201
[ "Apache-2.0" ]
permissive
Berkeley-Data/OpenSelfSup
e9976bf011b69ebf918506ba184f464b1073ec13
221191b88d891de57725b149caf237ffef72e529
refs/heads/master
2023-05-12T07:34:52.268476
2021-04-08T00:58:37
2021-04-08T00:58:37
343,654,823
0
1
Apache-2.0
2021-04-08T00:58:37
2021-03-02T05:20:27
Python
UTF-8
Python
false
false
426
py
_base_="../base-chexpert-config.py" # this will merge with the parent model=dict(pretrained='data/basetrain_chkpts/moco_v2_800ep.pth') # epoch related total_iters=5000 checkpoint_config = dict(interval=total_iters) model = dict( pretrained='data/basetrain_chkpts/moco_v2_800ep.pth', backbone=dict( norm_train=...
[ "taeil.goh@gmail.com" ]
taeil.goh@gmail.com
b6c2144eff19b6c939b9785aa66d33f078255a56
4f6fdd0effc474226b75ccc5d247509121b90fdf
/recursion/Find the Fibonacci Series Using Recursion.py
a28c87e343615ba6d66a7e66ffdf0695eb0208d8
[]
no_license
tuhiniris/Python-ShortCodes-Applications
1580785a6922c70df3b7375cb81e98f4a684d86f
f3fe7ac1c11a631fcd05b9d19b25b1a841d94550
refs/heads/main
2023-04-07T21:42:21.094545
2021-04-21T07:47:46
2021-04-21T07:47:46
358,605,530
0
0
null
null
null
null
UTF-8
Python
false
false
451
py
''' Problem Description ------------------- The program takes the number of terms and determines the fibonacci series using recursion upto that term. ''' print(__doc__) def fibonacci(n): if(n <= 1): return n else: return(fibonacci(n-1) + fibonacci(n-2)) print('-'*25) n = int(i...
[ "noreply@github.com" ]
tuhiniris.noreply@github.com
3c62c779f0be40f0a6a73b877542b3e1f1da52cf
48d820d4bd6a433c2b0fdb0dcb7657b62db050bf
/Training_Work/ODOO13_WORKSPACE/odoo13_env/bin/easy_install
840dd7f61e075ce0eed4b6ebe9001961f4670e17
[]
no_license
dhruv-aktiv/training_task_data
1a30580a512aa4831fb547b250faffff11f7e008
3d8b25ca812e876a484d387fc57272257322c85f
refs/heads/master
2023-06-07T07:06:04.193576
2021-07-01T04:37:13
2021-07-01T04:37:13
381,908,763
0
0
null
null
null
null
UTF-8
Python
false
false
282
#!/home/admin123/Documents/ODOO13_WORKSPACE/odoo13_env/bin/python3 # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "dhruv.s@icreativetechnolabs.com" ]
dhruv.s@icreativetechnolabs.com
7b6ae7c68f493b2df146545ace56ad1a481d1556
174ad2b84041ee9dface6f822737cd30e39aa04d
/toRRentSeaRcher/Enviroments/Scripts/pip-script.py
31f86fb157c72a40b1dcdb1ed2cf690cc91eb071
[]
no_license
duk1edev/projects
88f26830ac16f0fc889cace8ffab756788ee0b24
74bdea8b56bee9e1c0d8a78405ad0ca7bad38543
refs/heads/master
2020-06-24T17:15:17.891008
2019-11-29T17:23:54
2019-11-29T17:23:54
199,027,173
0
0
null
null
null
null
UTF-8
Python
false
false
418
py
#!C:\Users\duk1e\Desktop\toRRentSeaRcher\Enviroments\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip' __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...
[ "duk1e.ptc.ua@yandex.ru" ]
duk1e.ptc.ua@yandex.ru
5f20a96210c75eddc5863be7ba685c241a95bb55
8b470bfdc8ab9f180844a4438863b1283aff860a
/frost/primitives.py
e0bd52ec4fefcb5aa79507673fea4e7e5cdc58fe
[]
no_license
benmoran56/frost
be06d18ba79fbc84794eca2d7bdac4b53c814288
938aff52c9b5e6c956c457cd85552a85f3760a7c
refs/heads/master
2022-11-13T11:09:04.047662
2022-11-03T14:11:36
2022-11-03T14:11:36
238,115,011
7
0
null
2022-11-03T14:11:38
2020-02-04T03:29:30
Python
UTF-8
Python
false
false
4,636
py
from functools import lru_cache as _lru_cache # Helper functions for creating verts and colors: @_lru_cache() def _create_left(x, y, width, height, color1, color2): one = x, y two = x, y + height three = x + width, y + height - width four = x + width, y + width verts = one + two + three + three +...
[ "benmoran@protonmail.com" ]
benmoran@protonmail.com
7f04fcb0d7cbc4a6acf037c945b32892b382bfca
80121fe706db89ff5c8ce13e46fe9472d79a3347
/wheelcms_users/tests/test_userconfig.py
f02d5c5c193dc4dd3d5e810c8beed52916d71d56
[ "BSD-2-Clause" ]
permissive
wheelcms/wheelcms_users
e3dd5a20f1fcdb350984d4f41e803f461e4be715
90ee35ffab4366f6c4e4dbad88c53ea89cf53e86
refs/heads/master
2021-01-19T06:12:40.406825
2015-04-04T16:55:36
2015-04-04T16:55:36
17,834,878
0
0
null
null
null
null
UTF-8
Python
false
false
3,520
py
import pytest import json from wheelcms_axle.configuration import ConfigurationHandler from wheelcms_users.models import ConfigurationHandler as UserConfigurationHandler from django.contrib.auth.models import User import mock from twotest.fixtures import client, django_client @pytest.fixture def handler(): pat...
[ "github@in.m3r.nl" ]
github@in.m3r.nl
5515ac701f0f1a2155496308a20bd5d554b1fee0
7e729ea05a6a4e297bb832b77720a18cd0227805
/Projects/Online Workouts/w3resource/Basic - Part-I/program-43.py
29e8d8468ceccddec273188daa51536d2af30ad6
[ "MIT" ]
permissive
ivenpoker/Python-Projects
943d127ae900df52b43aac07c395e9d717196115
2975e1bd687ec8dbcc7a4842c13466cb86292679
refs/heads/master
2022-12-18T16:36:37.954835
2020-09-14T19:42:46
2020-09-14T19:43:09
180,323,469
1
0
MIT
2022-12-08T01:05:35
2019-04-09T08:42:40
Python
UTF-8
Python
false
false
836
py
# !/usr/bin/env python3 ##################################################################################### # # # Program purpose: Get OS name, platform and release information. # # Program Author : Happi Yvan ...
[ "nwaforhappiyvan@gmail.com" ]
nwaforhappiyvan@gmail.com
1718fa9b3a27b42e3756d2e6f1669f42cab56b95
e14233e1c0bba51f23a09a9bcfbc22b622387da1
/app/MyModule/GetDeviceInfo.py
2aa37ea19e3373154d8547cf7f2dfa309445030f
[]
no_license
KoiosChen/OLT-REGISTER
def159ea755046ba666cc5ee0477401eaedf52af
87e62547b2632cff154826817e8a81b893976917
refs/heads/master
2021-05-07T02:10:41.923088
2019-06-27T04:09:11
2019-06-27T04:09:11
110,499,539
1
0
null
null
null
null
UTF-8
Python
false
false
343
py
from ..models import Device from .. import logger def get_device_info(machine_room_id): """ :param machine_room_id: :return: """ device_info = Device.query.filter_by(machine_room_id=machine_room_id, status=1).all() logger.debug('device list: {} '.format(device_info)) return device_info if ...
[ "chjz1226@gmail.com" ]
chjz1226@gmail.com
d37f122795dc6e1276b390b8c058fbf7bd7763e1
b0f1acbe5cd30c2ade801465924c12403ab7e585
/Corda_Api_Library/test/test_net_corda_core_node_services_vault_column_predicate.py
824037d4e8878e9c5765a4b1860a7f021bfd9ef8
[]
no_license
TanzimAzadNishan/Blockchain-Based-Online-Ticketing-Platform
94ea0f06a7761f9033f7a1dc61548ade6f6ff499
d04a2696cab4c41743c7c5999c623002d0e57f80
refs/heads/main
2023-03-09T14:34:27.148340
2021-02-24T11:49:26
2021-02-24T11:49:26
338,845,282
0
0
null
null
null
null
UTF-8
Python
false
false
3,041
py
""" No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ import sys import unittest import openapi_client from openapi_client.model.net_corda_c...
[ "64527153+TanzimAzadNishan@users.noreply.github.com" ]
64527153+TanzimAzadNishan@users.noreply.github.com
e2de561f2847ad26fe4047d0adae9293ba781d3e
b428e9e4a5b3ec87a38e5451b8a03f4ecfac9366
/dcolumn/dcolumns/forms.py
32d6c2dfe5b14a1b39e61da822a4b770f848ef11
[ "MIT" ]
permissive
casualuser/dcolumn
b9844ebe29ae460fad1805fdfa516d2fb6bfe3d8
229f58844213a5453fc4dbe555eb5f12a2cd6766
refs/heads/master
2022-11-18T05:12:34.259099
2018-04-29T03:26:32
2018-04-29T03:26:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,519
py
# -*- coding: utf-8 -*- # # dcolumn/dcolumns/forms.py # """ Dynamic Column forms. """ __docformat__ = "restructuredtext en" import logging import datetime import dateutil from django import forms from django.core.exceptions import ValidationError from django.utils import six from django.utils.translation import uget...
[ "carl.nobile@gmail.com" ]
carl.nobile@gmail.com
ea851bf95c28add8737afef31989a400e5009032
1f9dac86268798b219b2c0773768f993ccf7f741
/torch_geometric/nn/conv/rgcn_conv.py
c412037b7c7938b133bf6f0231d4fed475589596
[ "MIT" ]
permissive
n-kats/pytorch_geometric
b1184a96cc093f6d1291d16fcc4f89f966d2125a
9ef6ad5501d4f2439ae608ad0d197500a8acc2d8
refs/heads/master
2020-04-18T19:43:32.966343
2019-01-25T13:32:07
2019-01-25T13:32:07
167,719,285
0
0
MIT
2019-01-26T17:45:29
2019-01-26T17:45:29
null
UTF-8
Python
false
false
3,446
py
import torch from torch.nn import Parameter as Param from torch_geometric.nn.conv import MessagePassing from ..inits import uniform class RGCNConv(MessagePassing): r"""The relational graph convolutional operator from the `"Modeling Relational Data with Graph Convolutional Networks" <https://arxiv.org/abs...
[ "matthias.fey@tu-dortmund.de" ]
matthias.fey@tu-dortmund.de
4ee0fecf4c7fc65467d85595945ceb268b845c9c
d629301e2c41fc5d1c7f1a6ca4688117bbd93117
/data/genData.py
8ae6ece800df505d025a9eccd21c7f20fe071144
[]
no_license
mrenoon/datafreezethaw
db1dd377e9bf8c6fe22c442128e6d1eda1a3bb13
c2ce2e78bd98236618c99fe3453fc24389d48ead
refs/heads/master
2021-01-19T01:13:18.384209
2017-04-05T04:32:26
2017-04-05T04:32:26
87,232,729
5
0
null
null
null
null
UTF-8
Python
false
false
2,372
py
import os import cPickle import pprint import numpy as np pp = pprint.PrettyPrinter(indent=4) ORIGINAL_DATA_PATH = "cifar-10-py-colmajor" OUTPUT_DATA_PATH = "vu-cifar-10" def pickle(filename, data): with open(filename, "w") as fo: cPickle.dump(data, fo, protocol=cPickle.HIGHEST_PROTOCOL) def unpickle(fil...
[ "vunguyenvyvp@gmail.com" ]
vunguyenvyvp@gmail.com
d1a16c2b31ade74a3be54487d152bf65785a1c97
4d7e1b959194e7ca7d99c0b5926622f37959cd02
/search/admin.py
2d1428f733386aa0b0eee37c50efa9685f15abf8
[]
no_license
KamilBienias/my-first-blog
ce1ff6ff8912c30014a219a7059037a62a4f48d0
2c138991c3e53f3b3bc7b4e6d76c20d62a9a126a
refs/heads/master
2020-12-19T07:35:58.750570
2020-08-23T16:15:46
2020-08-23T16:15:46
235,664,602
0
0
null
null
null
null
UTF-8
Python
false
false
153
py
from django.contrib import admin from .models import Search from .models import Searchtext admin.site.register(Search) admin.site.register(Searchtext)
[ "kamil.bienias.math@gmail.com" ]
kamil.bienias.math@gmail.com
9570d739d27fc157f272c31b89994bc3673bfcec
5f1dee64fd88bd2237ef95ee894a37d8ddcdeb4e
/python/learning/neural_nets/rfnet-init.py
340fe8b9cacb86449548f7b47055b884a2b97d5e
[]
no_license
constantinpape/stuff_master
c893ae0c763801210db06bad548784c4b20d6680
68d80bd45a140cb0d30abf32a04365ca37c9694c
refs/heads/master
2021-01-22T09:50:38.795259
2017-03-07T18:25:45
2017-03-07T18:25:45
33,936,452
1
0
null
null
null
null
UTF-8
Python
false
false
362
py
from __future__ import division import caffe import numpy as np from pdb import set_trace # init caffe.set_mode_cpu() rf_model = 'rfnet.prototxt' rf_weights = 'rfnet.caffemodel' # where result is going to go rf_net = caffe.Net(rf_model, caffe.TRAIN) #rf_net.params["fc1"][0].data[...] = #bias #rf_net.params["fc1"]...
[ "constantin.pape@iwr.uni-heidelberg.de" ]
constantin.pape@iwr.uni-heidelberg.de