hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
5be50f9d777ded17c518467854d968e5956e5137
11,453
py
Python
rl_environments/RLBanditEnv.py
joedaws/lde2021
ece9857667bab8691cf617ed56af561676945b60
[ "MIT" ]
null
null
null
rl_environments/RLBanditEnv.py
joedaws/lde2021
ece9857667bab8691cf617ed56af561676945b60
[ "MIT" ]
null
null
null
rl_environments/RLBanditEnv.py
joedaws/lde2021
ece9857667bab8691cf617ed56af561676945b60
[ "MIT" ]
null
null
null
import gym import numpy as np import torch import stable_baselines3 as sb3 from stable_baselines3.common.evaluation import evaluate_policy from stable_baselines3.common.env_util import make_vec_env import pybullet_envs import pandas as pd import pickle import os import matplotlib.pyplot as plt import seaborn as sns s...
42.735075
97
0.611805
10,835
0.94604
0
0
0
0
0
0
2,004
0.174976
5be520c176df8c9950327e78b398e3917a490a73
572
py
Python
mmaction/models/losses/arc_softmax.py
dqawami/mmaction2
17cf1888cef7e9e178690ef207dc92ba6dbfe715
[ "Apache-2.0" ]
2
2021-03-11T12:25:28.000Z
2021-03-13T13:35:59.000Z
mmaction/models/losses/arc_softmax.py
dqawami/mmaction2
17cf1888cef7e9e178690ef207dc92ba6dbfe715
[ "Apache-2.0" ]
2
2021-04-05T09:42:10.000Z
2021-09-01T17:34:20.000Z
mmaction/models/losses/arc_softmax.py
dqawami/mmaction2
17cf1888cef7e9e178690ef207dc92ba6dbfe715
[ "Apache-2.0" ]
3
2020-10-30T11:11:28.000Z
2021-03-21T00:17:32.000Z
import torch import torch.nn.functional as F from ..registry import LOSSES from .metric_learning_base import BaseMetricLearningLoss @LOSSES.register_module() class ArcLoss(BaseMetricLearningLoss): """Computes the Arc loss: https://arxiv.org/pdf/1904.13148.pdf """ def __init__(self, **kwargs): su...
27.238095
95
0.708042
410
0.716783
0
0
436
0.762238
0
0
76
0.132867
5be64c3df5a23af2df35e9b3ccd2de6766d07112
576
py
Python
proxy_server/helpers.py
lmanzurv/django_proxy_server
20304829ef1ddcbb281e1373d308e5fa826fcd39
[ "Apache-2.0" ]
11
2015-07-18T02:23:43.000Z
2021-11-15T11:43:21.000Z
proxy_server/helpers.py
lmanzurv/django_proxy_server
20304829ef1ddcbb281e1373d308e5fa826fcd39
[ "Apache-2.0" ]
null
null
null
proxy_server/helpers.py
lmanzurv/django_proxy_server
20304829ef1ddcbb281e1373d308e5fa826fcd39
[ "Apache-2.0" ]
5
2015-02-24T15:37:36.000Z
2021-10-10T16:42:22.000Z
import base64 def generate_service_url(function_path, params=None, encrypted=False): if not params: return function_path else: path_end = str() for key, value in params.iteritems(): if encrypted: value = base64.urlsafe_b64encode(str(value)).replace('=', '') ...
30.315789
77
0.534722
0
0
0
0
0
0
0
0
25
0.043403
5be7a876f3c5105b6d3efdc5c28655fc0ede865f
84
py
Python
appendices/packaging/some_module_proj/setup.py
jashburn8020/python-testing-with-pytest
eca162766f3eb25c79778d64f993e3162c359674
[ "Apache-2.0" ]
11
2021-05-06T12:39:39.000Z
2022-03-14T11:58:44.000Z
appendices/packaging/some_module_proj/setup.py
jashburn8020/python-testing-with-pytest
eca162766f3eb25c79778d64f993e3162c359674
[ "Apache-2.0" ]
null
null
null
appendices/packaging/some_module_proj/setup.py
jashburn8020/python-testing-with-pytest
eca162766f3eb25c79778d64f993e3162c359674
[ "Apache-2.0" ]
11
2021-06-10T21:19:42.000Z
2022-02-21T04:03:06.000Z
from setuptools import setup setup(name="some_module", py_modules=["some_module"])
21
53
0.785714
0
0
0
0
0
0
0
0
26
0.309524
5be96b53f19ce400d2e6a873c5503c0517f91811
93
py
Python
fooqt/_version_save.py
paulmueller/travisCI-macOSx-PyQt-pyinstaller
32b6acd8d8ced8855db23387f2c0069e734a53cb
[ "MIT" ]
3
2018-10-17T13:03:32.000Z
2020-11-11T10:51:21.000Z
fooqt/_version_save.py
paulmueller/travisCI-macOSx-PyQt-pyinstaller
32b6acd8d8ced8855db23387f2c0069e734a53cb
[ "MIT" ]
null
null
null
fooqt/_version_save.py
paulmueller/travisCI-macOSx-PyQt-pyinstaller
32b6acd8d8ced8855db23387f2c0069e734a53cb
[ "MIT" ]
null
null
null
#!/usr/bin/env python # This file was created automatically longversion = '0.2.2-1-g9c91991'
23.25
37
0.741935
0
0
0
0
0
0
0
0
76
0.817204
5bebef964e9e8885b1a9cb0a5ad817b18a2a5dc4
787
py
Python
back/lollangCompiler/variable.py
wonjinYi/lollang-playground
2df07ccc2518e6dc9f9aa00b2f38ad8d62cdb507
[ "MIT" ]
11
2022-03-12T06:41:29.000Z
2022-03-15T06:15:52.000Z
back/lollangCompiler/variable.py
wonjinYi/lollang-playground
2df07ccc2518e6dc9f9aa00b2f38ad8d62cdb507
[ "MIT" ]
4
2022-03-14T12:01:09.000Z
2022-03-26T20:19:52.000Z
back/lollangCompiler/variable.py
wonjinYi/lollang-playground
2df07ccc2518e6dc9f9aa00b2f38ad8d62cdb507
[ "MIT" ]
2
2022-03-12T03:49:20.000Z
2022-03-15T05:41:41.000Z
from enum import Enum, auto class TYPE(Enum): # 자료형 INT = auto() STR = auto() class Variable: def __init__(self): self.var = dict() def insert(self, name): try: self.var[name] except KeyError: self.var[name] = [f"var_{len(self.var)}", TYPE.INT] ...
22.485714
63
0.533672
760
0.958386
0
0
0
0
0
0
55
0.069357
5bedc842eb7b3b97c410dd8ff5e9293a731be138
12,016
py
Python
natural_selection/genetic_programs/__init__.py
Zipfian-Science/natural-selection
5bf04142a73f39a83e86ad0eb53ba0fecb365864
[ "Apache-2.0" ]
null
null
null
natural_selection/genetic_programs/__init__.py
Zipfian-Science/natural-selection
5bf04142a73f39a83e86ad0eb53ba0fecb365864
[ "Apache-2.0" ]
1
2021-02-26T10:10:43.000Z
2021-02-26T10:10:43.000Z
natural_selection/genetic_programs/__init__.py
Zipfian-Science/natural-selection
5bf04142a73f39a83e86ad0eb53ba0fecb365864
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Basic classes for running Genetic Algorithms. """ __author__ = "Justin Hocking" __copyright__ = "Copyright 2021, Zipfian Science" __credits__ = [] __license__ = "" __version__ = "0.0.1" __maintainer__ = "Justin Hocking" __email__ = "justin.hocking@zipfian.science" __status__ = "Development" ...
35.134503
135
0.604194
11,502
0.957224
0
0
0
0
0
0
5,009
0.416861
5bef9dd75f6bd3b7b7d6aa908b20235fbd72a39c
615
py
Python
tests/fixtures/uploads.py
ReeceHoffmann/virtool
f9befad060fe16fa29fb80124e674ac5a9c4f538
[ "MIT" ]
39
2016-10-31T23:28:59.000Z
2022-01-15T00:00:42.000Z
tests/fixtures/uploads.py
ReeceHoffmann/virtool
f9befad060fe16fa29fb80124e674ac5a9c4f538
[ "MIT" ]
1,690
2017-02-07T23:39:48.000Z
2022-03-31T22:30:44.000Z
tests/fixtures/uploads.py
ReeceHoffmann/virtool
f9befad060fe16fa29fb80124e674ac5a9c4f538
[ "MIT" ]
25
2017-02-08T18:25:31.000Z
2021-09-20T22:55:25.000Z
import pytest from sqlalchemy.ext.asyncio import AsyncSession from virtool.uploads.models import Upload @pytest.fixture async def test_uploads(pg, fake, static_time): user_1 = await fake.users.insert() user_2 = await fake.users.insert() upload_1 = Upload(id=1, name="test.fq.gz", type="reads", user=user_1...
30.75
84
0.695935
0
0
0
0
508
0.826016
492
0.8
69
0.112195
5bf071101faa3aefed0673b302d38405eb0bab30
3,029
py
Python
cuppa/methods/compile.py
chriskohlhoff/cuppa
c777adb5cd91e52ac06c87688e1a635a61f609d1
[ "BSL-1.0" ]
1
2021-08-31T22:05:15.000Z
2021-08-31T22:05:15.000Z
cuppa/methods/compile.py
chriskohlhoff/cuppa
c777adb5cd91e52ac06c87688e1a635a61f609d1
[ "BSL-1.0" ]
null
null
null
cuppa/methods/compile.py
chriskohlhoff/cuppa
c777adb5cd91e52ac06c87688e1a635a61f609d1
[ "BSL-1.0" ]
null
null
null
# Copyright Jamie Allsop 2013-2018 # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) #------------------------------------------------------------------------------- # CompileMethod #---------...
36.493976
116
0.526576
2,436
0.804226
0
0
229
0.075603
0
0
631
0.20832
5bf4bd9bfb15b22cd17a71e718232ade00af3a48
593
py
Python
format_turning.py
xiao-gy/daily_bz
6a79c19d559039f2e015720079baea3a8d9ffd37
[ "MIT" ]
3
2021-04-13T00:18:20.000Z
2021-07-15T08:25:22.000Z
format_turning.py
xiao-gy/daily_bz
6a79c19d559039f2e015720079baea3a8d9ffd37
[ "MIT" ]
null
null
null
format_turning.py
xiao-gy/daily_bz
6a79c19d559039f2e015720079baea3a8d9ffd37
[ "MIT" ]
5
2021-05-05T12:58:19.000Z
2021-09-12T10:28:33.000Z
import json import os try: os.rename(os.path.join(os.getcwd(),'config','like.json'),os.path.join(os.getcwd(),'config','like_copy.json')) except: print("无法进行重命名") f = open(os.path.join(os.getcwd(),'config','like_copy.json'),mode='r',encoding='utf8') likes = json.loads(f.read()) list = {"likes":[{"name":"默认收藏夹...
31.210526
113
0.639123
0
0
0
0
0
0
0
0
224
0.363047
5bf81eaf34d29539cf6fc4ab7d86334be33a32aa
8,440
py
Python
Project/models/homography.py
iust-projects/Computer-Vision-IUST
732c8f1eaf1df032f1b7ec0518756017117038af
[ "Apache-2.0" ]
null
null
null
Project/models/homography.py
iust-projects/Computer-Vision-IUST
732c8f1eaf1df032f1b7ec0518756017117038af
[ "Apache-2.0" ]
1
2020-12-22T09:02:20.000Z
2020-12-22T09:02:20.000Z
Project/models/homography.py
iust-projects/Computer-Vision-IUST
732c8f1eaf1df032f1b7ec0518756017117038af
[ "Apache-2.0" ]
null
null
null
# %% import libraries import numpy as np import random import cv2 import PIL import matplotlib.pyplot as plt from copy import deepcopy # %% 1 Extract Harris interest points def get_points(img, threshold=0.1, coordinate=False): """ Extract harris points of given image :param img: An image of type open c...
36.223176
113
0.638981
0
0
0
0
0
0
0
0
2,345
0.277844
5bfc12035df037a7d9db7f30808756998f54bdee
6,592
py
Python
dataset/data.py
mondrasovic/reid_baseline_syncbn
3d21a786fb1a0519caaa0572c649f750036689b5
[ "MIT" ]
1
2022-01-05T15:42:44.000Z
2022-01-05T15:42:44.000Z
dataset/data.py
mondrasovic/reid_baseline_syncbn
3d21a786fb1a0519caaa0572c649f750036689b5
[ "MIT" ]
null
null
null
dataset/data.py
mondrasovic/reid_baseline_syncbn
3d21a786fb1a0519caaa0572c649f750036689b5
[ "MIT" ]
null
null
null
import torch import os.path as osp from PIL import Image from torch.utils.data import Dataset import numpy as np from torchvision import transforms as T import glob import re from PIL import ImageFile ImageFile.LOAD_TRUNCATED_IMAGES = True def read_image(img_path): """Keep reading image until succe...
33.979381
103
0.556887
4,894
0.742415
0
0
0
0
0
0
1,404
0.212985
5bfc9c9dc6bfe8a46625975c2ef7e96d083e2b69
407
py
Python
StarletteServer/functions.py
Amatobahn/starlette-boilerplate
92e91bd30e918df45d3e2a09602833fd07f698f2
[ "MIT" ]
1
2021-11-30T20:08:17.000Z
2021-11-30T20:08:17.000Z
StarletteServer/functions.py
Amatobahn/starlette-boilerplate
92e91bd30e918df45d3e2a09602833fd07f698f2
[ "MIT" ]
null
null
null
StarletteServer/functions.py
Amatobahn/starlette-boilerplate
92e91bd30e918df45d3e2a09602833fd07f698f2
[ "MIT" ]
2
2019-07-13T11:27:21.000Z
2020-01-27T07:13:09.000Z
from starlette.requests import Request from starlette.responses import JSONResponse, Response def hello_world(scope): return Response("Hello World!") def hello_world_form_data(scope): async def parse(receive, send): request = Request(scope, receive) data = await request.form() respon...
25.4375
54
0.70516
0
0
0
0
0
0
193
0.474201
20
0.04914
5bfebd468f13a1c5d7579d8f57fd8f03fb649c4e
1,726
py
Python
gpg.py
counsyl/glacier-cli
1b99931a31690841f9d33a576c638f8b1cccecf8
[ "MIT" ]
null
null
null
gpg.py
counsyl/glacier-cli
1b99931a31690841f9d33a576c638f8b1cccecf8
[ "MIT" ]
null
null
null
gpg.py
counsyl/glacier-cli
1b99931a31690841f9d33a576c638f8b1cccecf8
[ "MIT" ]
null
null
null
import gnupg import os GNUPG_KEY_TYPE = "RSA" GNUPG_KEY_LENGTH = 2048 class Encryptor(object): def __init__(self): self.gpg = gnupg.GPG() self.gpg.encoding = "utf-8" if self.gpg.list_keys() == []: self.generate_keypair() def generate_keypair(self): """Generate th...
31.962963
77
0.6292
1,652
0.957126
0
0
0
0
0
0
334
0.193511
5bff6a5a233a953254c76067336649d556192ab7
4,966
py
Python
project/settings.py
panubo/panubo-dns
fce7cf8b26f06da749c659f24e7f6339997c4102
[ "MIT" ]
null
null
null
project/settings.py
panubo/panubo-dns
fce7cf8b26f06da749c659f24e7f6339997c4102
[ "MIT" ]
1
2015-08-19T05:24:09.000Z
2019-07-01T01:47:12.000Z
project/settings.py
panubo/panubo-dns
fce7cf8b26f06da749c659f24e7f6339997c4102
[ "MIT" ]
2
2016-06-06T09:48:24.000Z
2021-04-19T15:33:50.000Z
""" Django settings for project. """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) import os BASE_DIR = os.path.dirname(os.path.dirname(__file__)) PROJECT_PATH = os.path.abspath(os.path.split(__file__)[0]) ALLOWED_HOSTS = ['*'] # Application definition INSTALLED_APPS = ( 'django.contri...
30.654321
118
0.681232
0
0
0
0
0
0
0
0
2,741
0.551953
7504ff9da64147dd9f11150a10c7e67cc0d2ab82
895
py
Python
075.err.py
liuyang1/euler
ba6c79b3f809711eec07a7843ec60c86990564d1
[ "MIT" ]
null
null
null
075.err.py
liuyang1/euler
ba6c79b3f809711eec07a7843ec60c86990564d1
[ "MIT" ]
null
null
null
075.err.py
liuyang1/euler
ba6c79b3f809711eec07a7843ec60c86990564d1
[ "MIT" ]
null
null
null
from itertools import count from common import mymath def GouGu(): for m in count(1): for n in xrange(1, m): if mymath.gcd(m, n) == 1 and (m % 2 == 0 or n % 2 == 0): mm = m * m nn = n * n mn = 2 * m * n pp = mm * 2 + mn ...
21.309524
68
0.46257
0
0
376
0.420112
0
0
0
0
50
0.055866
7505d44db8a60afab4853b6715130e001e8c0b30
587
py
Python
src/extract/test.py
AutoKnowledge/AutoKnowledge
1a9fce1449d9605dc0289ab13736d073453ed102
[ "Apache-2.0" ]
1
2021-02-24T10:22:19.000Z
2021-02-24T10:22:19.000Z
src/extract/test.py
AutoKnowledge/AutoKnowledge
1a9fce1449d9605dc0289ab13736d073453ed102
[ "Apache-2.0" ]
null
null
null
src/extract/test.py
AutoKnowledge/AutoKnowledge
1a9fce1449d9605dc0289ab13736d073453ed102
[ "Apache-2.0" ]
null
null
null
''' import analyze any = analyze.Analyze() # 吻别是由张学友演唱的一首歌曲。 #text = '《盗墓笔记》是2014年欢瑞世纪影视传媒股份有限公司出品的一部网络季播剧,改编自南派三叔所著的同名小说,由郑保瑞和罗永昌联合导演,李易峰、杨洋、唐嫣、刘天佐、张智尧、魏巍等主演。' #text = '姚明1980年9月12日出生于上海市徐汇区,祖籍江苏省苏州市吴江区震泽镇,前中国职业篮球运动员,司职中锋,现任中职联公司董事长兼总经理。' knowledge = any.knowledge(text) print(knowledge) ''' from medext import getTripl...
39.133333
156
0.810903
0
0
0
0
0
0
0
0
1,217
0.938319
75075401a18228befc57b214cb804403c7d028e7
4,460
py
Python
alfred-workflow-py3/tests/test_workflow_xml.py
kw-lee/alfdaumdict
fde5c54fb5e8eb30bd6308c4a6086e46b60f101b
[ "MIT" ]
1
2022-03-19T10:27:12.000Z
2022-03-19T10:27:12.000Z
alfred-workflow-py3/tests/test_workflow_xml.py
kw-lee/alfdaumdict
fde5c54fb5e8eb30bd6308c4a6086e46b60f101b
[ "MIT" ]
null
null
null
alfred-workflow-py3/tests/test_workflow_xml.py
kw-lee/alfdaumdict
fde5c54fb5e8eb30bd6308c4a6086e46b60f101b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2017 Dean Jackson <deanishe@deanishe.net> # # MIT Licence. See http://opensource.org/licenses/MIT # # Created on 2017-05-06 # """Unit tests for Workflow's XML feedback generation.""" import sys from contextlib import contextmanager from xml.etree import Eleme...
26.081871
87
0.609865
0
0
254
0.056951
304
0.068161
0
0
1,201
0.269283
7507a6580b66db203bf852283bb2de39d367b47f
2,323
py
Python
tests/test_api_calls.py
mindheist/coc-client
7d249211a850538cfc1b5b286dff1d83df443db7
[ "MIT" ]
10
2016-02-14T05:59:27.000Z
2019-12-08T11:54:17.000Z
tests/test_api_calls.py
mindheist/coc-client
7d249211a850538cfc1b5b286dff1d83df443db7
[ "MIT" ]
2
2018-01-15T15:41:40.000Z
2018-01-23T00:47:42.000Z
tests/test_api_calls.py
mindheist/coc-client
7d249211a850538cfc1b5b286dff1d83df443db7
[ "MIT" ]
8
2016-10-06T14:07:58.000Z
2019-01-11T19:44:20.000Z
from coc.api import ClashOfClans from os import environ import pytest @pytest.fixture def api_key(): return environ['COC_API_KEY'] slow_test = pytest.mark.skipif( not pytest.config.getoption("--runslow"), reason="need --runslow option to run" ) @slow_test @pytest.mark.api_call def test_locations_apicall...
27.654762
61
0.716315
0
0
0
0
2,100
0.904003
0
0
134
0.057684
750808c8295fb8a3000d23694263942f06120b62
4,618
py
Python
executables/adjusted_ranking_experiments.py
mberr/rank-based-evaluation
76a0847eecf4350d92783e9773d6fc6b6c69ca51
[ "MIT" ]
5
2021-02-16T01:04:39.000Z
2021-09-01T01:36:02.000Z
executables/adjusted_ranking_experiments.py
mberr/rank-based-evaluation
76a0847eecf4350d92783e9773d6fc6b6c69ca51
[ "MIT" ]
null
null
null
executables/adjusted_ranking_experiments.py
mberr/rank-based-evaluation
76a0847eecf4350d92783e9773d6fc6b6c69ca51
[ "MIT" ]
null
null
null
# coding=utf-8 """Evaluation of different training and test sizes.""" import argparse import logging import random import mlflow import numpy import torch import tqdm from kgm.data import get_dataset_by_name from kgm.eval.matching import evaluate_matching_model from kgm.models import GCNAlign from kgm.modules import ...
31.848276
87
0.561498
0
0
0
0
0
0
0
0
667
0.144435
7508d691984e7e548e24d4c98d154e16ac09c939
212
py
Python
tests/test___init__.py
ikonst/pytest-mypy-testing
fa23aa769a5f11afebcec23af43aa6b5e32a3b11
[ "Apache-2.0", "MIT" ]
17
2020-01-15T12:14:25.000Z
2022-01-21T10:16:55.000Z
tests/test___init__.py
ikonst/pytest-mypy-testing
fa23aa769a5f11afebcec23af43aa6b5e32a3b11
[ "Apache-2.0", "MIT" ]
10
2020-01-15T12:21:04.000Z
2021-12-25T18:19:09.000Z
tests/test___init__.py
ikonst/pytest-mypy-testing
fa23aa769a5f11afebcec23af43aa6b5e32a3b11
[ "Apache-2.0", "MIT" ]
3
2020-04-10T08:49:39.000Z
2021-08-15T01:54:16.000Z
# SPDX-FileCopyrightText: David Fritzsche # SPDX-License-Identifier: CC0-1.0 import re from pytest_mypy_testing import __version__ def test_version(): assert re.match("^[0-9]*([.][0-9]*)*$", __version__)
19.272727
56
0.716981
0
0
0
0
0
0
0
0
97
0.457547
750a34fed3230d5f5f9e5491dc14d2f490974ee6
5,204
py
Python
microsoft/gestures/gesture_container.py
dany74q/python-microsoft-project-prague-sdk
abfea98d75e16c2d8862973e61970d99122f9cec
[ "MIT" ]
1
2017-07-30T10:17:38.000Z
2017-07-30T10:17:38.000Z
microsoft/gestures/gesture_container.py
dany74q/python-microsoft-project-prague-sdk
abfea98d75e16c2d8862973e61970d99122f9cec
[ "MIT" ]
null
null
null
microsoft/gestures/gesture_container.py
dany74q/python-microsoft-project-prague-sdk
abfea98d75e16c2d8862973e61970d99122f9cec
[ "MIT" ]
null
null
null
from microsoft.gestures.fingertip_placement_relation import FingertipPlacementRelation from microsoft.gestures.fingertip_distance_relation import FingertipDistanceRelation from xml.etree.ElementTree import Element, SubElement, Comment, tostring from microsoft.gestures.relative_placement import RelativePlacement from mi...
57.186813
166
0.683128
4,266
0.819754
0
0
637
0.122406
0
0
461
0.088586
750c2cbca31d1cd5b27e82c3d58caffc08d7d742
1,650
py
Python
trojsten/submit/migrations/0005_auto_20180915_2002.py
MvonK/web
b701a6ea8fb6f0bdfb720e66d0a430db13db8bff
[ "MIT" ]
5
2018-04-22T22:44:02.000Z
2021-04-26T20:44:44.000Z
trojsten/submit/migrations/0005_auto_20180915_2002.py
MvonK/web
b701a6ea8fb6f0bdfb720e66d0a430db13db8bff
[ "MIT" ]
250
2018-04-24T12:04:11.000Z
2022-03-09T06:56:47.000Z
trojsten/submit/migrations/0005_auto_20180915_2002.py
MvonK/web
b701a6ea8fb6f0bdfb720e66d0a430db13db8bff
[ "MIT" ]
8
2019-04-28T11:33:03.000Z
2022-02-26T13:30:36.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.12 on 2018-09-15 20:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("old_submit", "0004_submit_protocol")] operations = [ migrations.AlterField( model_name="submit", name="p...
31.730769
98
0.485455
1,540
0.92883
0
0
0
0
0
0
454
0.273824
750d6d782ee25a5fe5c2ee7163c23181ca5c4289
281
py
Python
src/todos/serializers.py
vishaltanwar96/iTrack
1d57e2d57a61a309632673b7bde8fc559eea09c0
[ "MIT" ]
3
2020-11-20T15:44:14.000Z
2020-11-21T12:18:15.000Z
src/todos/serializers.py
vishaltanwar96/iTrack
1d57e2d57a61a309632673b7bde8fc559eea09c0
[ "MIT" ]
null
null
null
src/todos/serializers.py
vishaltanwar96/iTrack
1d57e2d57a61a309632673b7bde8fc559eea09c0
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Todo class TodoSerializer(serializers.ModelSerializer): """.""" class Meta: model = Todo fields = "__all__" read_only_fields = ("belongs_to", "is_complete", "created_at", "updated_at")
20.071429
84
0.669039
213
0.758007
0
0
0
0
0
0
65
0.231317
750d8e497e21c46d3ed340b4abc7623e18ad44e4
7,027
py
Python
pygraph/domination.py
jysh1214/pygraph
fba581ce5e259854a4b86163c4fb61030e663a81
[ "MIT" ]
null
null
null
pygraph/domination.py
jysh1214/pygraph
fba581ce5e259854a4b86163c4fb61030e663a81
[ "MIT" ]
null
null
null
pygraph/domination.py
jysh1214/pygraph
fba581ce5e259854a4b86163c4fb61030e663a81
[ "MIT" ]
null
null
null
from .get_imformation import GI class DM: def __init__(self, adj_matrix, ins_matrix): self.Adjacency_Matrix = adj_matrix self.Insidence_Matrix = ins_matrix self.N = len(self.Adjacency_Matrix) ### Packing: Find Maximal ### def clique(self): """ Returns: ...
27.342412
81
0.477871
6,923
0.9852
0
0
0
0
0
0
1,303
0.185428
750db8dedf746751bad013c1015bec9f1774f4f4
680
py
Python
game/combat/effects/moveeffect/cure.py
Sipondo/ulix-dexflow
de46482fe08e3d600dd5da581f0524b55e5df961
[ "MIT" ]
5
2021-06-25T16:44:38.000Z
2021-12-31T01:29:00.000Z
game/combat/effects/moveeffect/cure.py
Sipondo/ulix-dexflow
de46482fe08e3d600dd5da581f0524b55e5df961
[ "MIT" ]
null
null
null
game/combat/effects/moveeffect/cure.py
Sipondo/ulix-dexflow
de46482fe08e3d600dd5da581f0524b55e5df961
[ "MIT" ]
1
2021-06-25T20:33:47.000Z
2021-06-25T20:33:47.000Z
from .basemoveeffect import BaseMoveEffect from game.combat.effects.genericeffect import GenericEffect class Cure(BaseMoveEffect): def after_action(self): if self.scene.board.random_roll(self.move.chance): target_effects = self.scene.get_effects_on_target(self.move.target) for stat...
37.777778
84
0.616176
574
0.844118
0
0
0
0
0
0
76
0.111765
750e4085fb2729c790fdc37560668ec0186b9389
2,945
py
Python
mlserve/utils.py
jettify/mlserve
571152e4475738e0b01fcbde166d95a3636b3c5f
[ "Apache-2.0" ]
17
2018-08-06T09:38:17.000Z
2018-08-14T10:55:58.000Z
mlserve/utils.py
ml-libs/mlserve
571152e4475738e0b01fcbde166d95a3636b3c5f
[ "Apache-2.0" ]
63
2018-09-07T21:40:16.000Z
2022-02-10T17:11:13.000Z
mlserve/utils.py
jettify/mlserve
571152e4475738e0b01fcbde166d95a3636b3c5f
[ "Apache-2.0" ]
1
2019-05-06T10:18:59.000Z
2019-05-06T10:18:59.000Z
import json import os import trafaret as t import yaml from dataclasses import dataclass, asdict from pathlib import Path from typing import Any, List, Dict ModelMeta = t.Dict( { t.Key('name'): t.String, t.Key('description'): t.String, t.Key('model_path'): t.String, t.Key('data_s...
27.018349
79
0.609168
368
0.124958
0
0
416
0.141256
0
0
426
0.144652
750f07c7e86e349dd91bdbbb50528afd0a003a01
2,844
py
Python
crawlergooglescholar/get_picts.py
vignif/Crawler-google-scholar
5e95114d253ef5d160148422af240f034a3e5623
[ "MIT" ]
null
null
null
crawlergooglescholar/get_picts.py
vignif/Crawler-google-scholar
5e95114d253ef5d160148422af240f034a3e5623
[ "MIT" ]
null
null
null
crawlergooglescholar/get_picts.py
vignif/Crawler-google-scholar
5e95114d253ef5d160148422af240f034a3e5623
[ "MIT" ]
null
null
null
"""this script crawls for the profile pictures of researchers in google scholar and saves them in a folder called [figures] the crawler exploit the informations via the description of the tags in the html of google scholar be aware that too many requests to a server might interrupt your script, please ...
30.913043
102
0.621308
0
0
0
0
0
0
0
0
1,087
0.382208
750f1f7f1d0eb84c9cf6a66afb31539b4f352e2a
2,246
py
Python
root/os/DSAA/DataStructuresAndAlgorithms/python/chutils/chutils/chdb/redisClient.py
chyidl/chyidlTutorial
a033e0a57abf84fdbb61e57736822f9126db6ff7
[ "MIT" ]
5
2018-10-17T05:57:39.000Z
2021-07-05T15:38:24.000Z
root/os/DSAA/DataStructuresAndAlgorithms/python/chutils/chutils/chdb/redisClient.py
chyidl/chyidlTutorial
a033e0a57abf84fdbb61e57736822f9126db6ff7
[ "MIT" ]
2
2021-04-14T00:48:43.000Z
2021-04-14T02:20:50.000Z
root/os/DSAA/DataStructuresAndAlgorithms/python/chutils/chutils/chdb/redisClient.py
chyidl/chyidlTutorial
a033e0a57abf84fdbb61e57736822f9126db6ff7
[ "MIT" ]
3
2019-03-02T14:36:19.000Z
2022-03-18T10:12:09.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # # redisClient.py # chdb # # 🎂"Here's to the crazy ones. The misfits. The rebels. # The troublemakers. The round pegs in the square holes. # The ones who see things differently. They're not found # of rules. And they have no respect for the status quo. # You can quote t...
31.194444
86
0.675868
1,000
0.444444
0
0
127
0.056444
0
0
1,048
0.465778
7510b10f0b56bd6f23e065d973fded7927aa8141
3,438
py
Python
kelas_2c/nurul.py
idamfadilah/belajarpython
72c5108a7f44d8b8f33dc5d5b1bd4f8a83f8b811
[ "MIT" ]
1
2020-01-13T15:21:11.000Z
2020-01-13T15:21:11.000Z
kelas_2c/nurul.py
idamfadilah/belajarpython
72c5108a7f44d8b8f33dc5d5b1bd4f8a83f8b811
[ "MIT" ]
32
2019-11-21T08:46:48.000Z
2020-01-12T07:53:02.000Z
kelas_2c/nurul.py
idamfadilah/belajarpython
72c5108a7f44d8b8f33dc5d5b1bd4f8a83f8b811
[ "MIT" ]
437
2019-11-21T06:11:13.000Z
2021-04-22T22:11:23.000Z
import csv import matplotlib.pyplot as plt import requests class nurul: def ganjilgenap(self): with open('kelas_2c/nurul.csv') as files: reader=csv.reader(files, delimiter=',') for row in reader: if int(row[0])%2 == 1: print(row[0],"merupakan Bi...
29.135593
219
0.538685
3,356
0.976149
0
0
0
0
0
0
899
0.261489
75110cf2b69cd80e1422da4c443d622bdec91b65
1,227
py
Python
yandex_algorithm2/home1b.py
erjan/coding_exercises
53ba035be85f1e7a12b4d4dbf546863324740467
[ "Apache-2.0" ]
null
null
null
yandex_algorithm2/home1b.py
erjan/coding_exercises
53ba035be85f1e7a12b4d4dbf546863324740467
[ "Apache-2.0" ]
null
null
null
yandex_algorithm2/home1b.py
erjan/coding_exercises
53ba035be85f1e7a12b4d4dbf546863324740467
[ "Apache-2.0" ]
null
null
null
''' Витя работает недалеко от одной из станций кольцевой линии Московского метро, а живет рядом с другой станцией той же линии. Требуется выяснить, мимо какого наименьшего количества промежуточных станций необходимо проехать Вите по кольцу, чтобы добраться с работы домой. Формат ввода Станции пронумерованы подряд нату...
35.057143
268
0.712306
0
0
0
0
0
0
0
0
1,501
0.813109
7513ff5add6b73fcd1384d95d2b1837bb279a0e4
236
py
Python
medica_api/core/urls.py
aseem-hegshetye/Django_Rest_Api
663693b4003d012029fc3365f01b171824229344
[ "MIT" ]
null
null
null
medica_api/core/urls.py
aseem-hegshetye/Django_Rest_Api
663693b4003d012029fc3365f01b171824229344
[ "MIT" ]
15
2020-06-06T00:44:36.000Z
2022-03-12T00:18:42.000Z
medica_api/core/urls.py
aseem-hegshetye/Django_Rest_Api
663693b4003d012029fc3365f01b171824229344
[ "MIT" ]
null
null
null
from rest_framework.routers import DefaultRouter from django.urls import path, include from .views import * router = DefaultRouter() router.register('user', User, basename='user') urlpatterns = [ path('', include(router.urls)) ]
19.666667
48
0.741525
0
0
0
0
0
0
0
0
14
0.059322
7515c9edf4c6cfe592909aca896e0ddefbb578de
7,110
py
Python
Udemy_Py_DataScience_ML/Sec15_LinearReg.py
gonzalosc2/LearningPython
0210d4cbbb5e154f12007b8e8f825fd3d0022be0
[ "MIT" ]
null
null
null
Udemy_Py_DataScience_ML/Sec15_LinearReg.py
gonzalosc2/LearningPython
0210d4cbbb5e154f12007b8e8f825fd3d0022be0
[ "MIT" ]
null
null
null
Udemy_Py_DataScience_ML/Sec15_LinearReg.py
gonzalosc2/LearningPython
0210d4cbbb5e154f12007b8e8f825fd3d0022be0
[ "MIT" ]
null
null
null
#################################### # author: Gonzalo Salazar # course: Python for Data Science and Machine Learning Bootcamp # purpose: lecture notes # description: Section 15 - Linear Regression # other: N/A #################################### #%% import os from numpy.lib.function_base import corrcoef import panda...
38.852459
97
0.715752
0
0
0
0
0
0
0
0
5,053
0.710689
75160826b98614b47f394cd26909f4c19c70ebbb
1,994
py
Python
src/lib_example/hypot.py
atpage/cuda_intro
01dcebdadb961ada4f3532b847f259ac4ea4e615
[ "MIT" ]
null
null
null
src/lib_example/hypot.py
atpage/cuda_intro
01dcebdadb961ada4f3532b847f259ac4ea4e615
[ "MIT" ]
2
2016-02-09T17:39:02.000Z
2016-05-09T14:44:26.000Z
src/lib_example/hypot.py
atpage/cuda_intro
01dcebdadb961ada4f3532b847f259ac4ea4e615
[ "MIT" ]
null
null
null
#!/usr/bin/env python import numpy as np import argparse from ctypes import * import sys ################################ Load library: ################################ lib_name = 'libhypot.so' try: # try to use the one the OS finds (e.g. in /usr/local/lib) libhypot = CDLL(lib_name) except OSError: # lib...
32.688525
91
0.474925
0
0
0
0
0
0
0
0
1,130
0.5667
7517b754bad63bbf7e6aee8bffbb95a5574b2ca6
3,066
py
Python
pjon_python/utils/RedisConn.py
Girgitt/PJON-python
a2653d46eefa6ce8339eb780074f10f20c4db49c
[ "Apache-2.0" ]
21
2016-08-25T10:26:44.000Z
2022-03-23T00:43:19.000Z
pjon_python/utils/RedisConn.py
Girgitt/PJON-python
a2653d46eefa6ce8339eb780074f10f20c4db49c
[ "Apache-2.0" ]
9
2016-08-30T23:49:51.000Z
2020-12-22T09:05:58.000Z
pjon_python/utils/RedisConn.py
Girgitt/PJON-python
a2653d46eefa6ce8339eb780074f10f20c4db49c
[ "Apache-2.0" ]
7
2017-05-21T17:39:31.000Z
2020-07-04T12:37:30.000Z
import time import json from redis import ConnectionError import logging import jsonpickle from retrying import retry log = logging.getLogger("redis-conn") def retry_if_connection_error(exception): return isinstance(exception, ConnectionError) class RedisConn(object): def __init__(self, redis_conn, sub_cha...
33.326087
94
0.639596
2,812
0.917156
0
0
1,535
0.500652
0
0
163
0.053164
751835fbbe2d4d0b3a1f8607d3b130e6bcbf8669
560
py
Python
tests/conftest.py
Frederik-Baetens/pytest-inmanta
5cebff7b2bb9ad9005a3d68a25df87ee1fc0512c
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
Frederik-Baetens/pytest-inmanta
5cebff7b2bb9ad9005a3d68a25df87ee1fc0512c
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
Frederik-Baetens/pytest-inmanta
5cebff7b2bb9ad9005a3d68a25df87ee1fc0512c
[ "Apache-2.0" ]
null
null
null
import pytest import pytest_inmanta.plugin import os import sys import pkg_resources pytest_plugins = ["pytester"] @pytest.fixture(autouse=True) def set_cwd(testdir): pytest_inmanta.plugin.CURDIR = os.getcwd() @pytest.fixture(scope="function", autouse=True) def deactive_venv(): old_os_path = os.environ.ge...
20.740741
72
0.728571
0
0
291
0.519643
438
0.782143
0
0
34
0.060714
7518af78dd738d705f4d7fb31902451a4006b080
41
py
Python
weheartit/__init__.py
aswinnnn/weheartit
97c71e8818ec11f55341dd0694de43c24781ab23
[ "MIT" ]
1
2021-03-23T13:46:09.000Z
2021-03-23T13:46:09.000Z
weheartit/__init__.py
aswinnnn/weheartit
97c71e8818ec11f55341dd0694de43c24781ab23
[ "MIT" ]
1
2021-10-09T08:37:55.000Z
2021-10-09T08:37:55.000Z
weheartit/__init__.py
aswinnnn/weheartit
97c71e8818ec11f55341dd0694de43c24781ab23
[ "MIT" ]
null
null
null
# __init__.py from .weheartit import whi
13.666667
26
0.780488
0
0
0
0
0
0
0
0
13
0.317073
75195768b9bfe7c08dd3ea0eaa74f62fb37dc728
1,546
py
Python
tests/test_vaccination.py
covid-19-impact-lab/sid
d867f55d4d005b01c672bd2edd0e1dc974cb182b
[ "MIT" ]
18
2020-04-18T09:18:52.000Z
2021-10-19T02:42:39.000Z
tests/test_vaccination.py
covid-19-impact-lab/sid
d867f55d4d005b01c672bd2edd0e1dc974cb182b
[ "MIT" ]
143
2020-04-18T16:58:20.000Z
2022-03-07T22:16:03.000Z
tests/test_vaccination.py
covid-19-impact-lab/sid
d867f55d4d005b01c672bd2edd0e1dc974cb182b
[ "MIT" ]
1
2021-01-07T07:38:53.000Z
2021-01-07T07:38:53.000Z
import itertools from contextlib import ExitStack as does_not_raise # noqa: N813 import pandas as pd import pytest from sid.vaccination import vaccinate_individuals @pytest.mark.integration @pytest.mark.parametrize( "vaccination_models, expectation, expected", [ ({}, does_not_raise(), pd.Series([Fal...
29.169811
88
0.513583
0
0
0
0
1,376
0.890039
0
0
213
0.137775
751abaf1ab249f31eecee3f3846c229b7dc366a5
12,216
py
Python
main.py
dumpmemory/W2NER
fb1b6eb1111eb001b1c965097d995244b840bdda
[ "MIT" ]
128
2021-12-21T04:20:17.000Z
2022-03-31T03:05:53.000Z
main.py
dumpmemory/W2NER
fb1b6eb1111eb001b1c965097d995244b840bdda
[ "MIT" ]
15
2022-01-07T02:39:58.000Z
2022-03-30T14:12:30.000Z
main.py
dumpmemory/W2NER
fb1b6eb1111eb001b1c965097d995244b840bdda
[ "MIT" ]
24
2021-12-21T05:06:08.000Z
2022-03-31T13:42:13.000Z
import argparse import json import numpy as np import prettytable as pt import torch import torch.autograd import torch.nn as nn import transformers from sklearn.metrics import precision_recall_fscore_support, f1_score from torch.utils.data import DataLoader import config import data_loader import utils ...
39.406452
126
0.564014
8,556
0.700393
0
0
0
0
0
0
1,226
0.10036
751af216f0939b9c18826cc307ee3065d3b19f72
764
py
Python
PDSA/Week 1/Graded/3.py
tanav2202/IITM-Assignments
6596daf7a39a254f85ccfadc80cb33b01d7b1910
[ "MIT" ]
null
null
null
PDSA/Week 1/Graded/3.py
tanav2202/IITM-Assignments
6596daf7a39a254f85ccfadc80cb33b01d7b1910
[ "MIT" ]
null
null
null
PDSA/Week 1/Graded/3.py
tanav2202/IITM-Assignments
6596daf7a39a254f85ccfadc80cb33b01d7b1910
[ "MIT" ]
null
null
null
def odd_one(L): d={} for i in L: try: if(type(i) == str): d['str']+=1 if(type(i) == bool): d['bool']+=1 if(type(i) == int): d['int']+=1 if(type(i) == float): d['float']+=1 ...
23.875
37
0.332461
0
0
0
0
0
0
0
0
46
0.060209
7520daaefeeb0c9c5796df3c4843be9297dde1df
30,800
py
Python
etl/parsers/etw/Microsoft_AppV_SharedPerformance.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
104
2020-03-04T14:31:31.000Z
2022-03-28T02:59:36.000Z
etl/parsers/etw/Microsoft_AppV_SharedPerformance.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
7
2020-04-20T09:18:39.000Z
2022-03-19T17:06:19.000Z
etl/parsers/etw/Microsoft_AppV_SharedPerformance.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
16
2020-03-05T18:55:59.000Z
2022-03-01T10:19:28.000Z
# -*- coding: utf-8 -*- """ Microsoft-AppV-SharedPerformance GUID : fb4a19ee-eb5a-47a4-bc52-e71aac6d0859 """ from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct from etl.utils import WString, CString, SystemTime, Guid from etl.dtyp import Sid from ...
28.025478
123
0.717305
16,665
0.541071
0
0
29,970
0.973052
0
0
7,343
0.238409
75236691d5db825780da5c44e8b2462836a5e0a4
147
py
Python
bugsnag/wsgi/__init__.py
ForroKulcs/bugsnag-python
107c1add31a2202cc08ef944aa00ab96996b247a
[ "MIT" ]
76
2015-03-01T11:46:57.000Z
2022-02-18T10:57:44.000Z
bugsnag/wsgi/__init__.py
ForroKulcs/bugsnag-python
107c1add31a2202cc08ef944aa00ab96996b247a
[ "MIT" ]
119
2015-01-14T11:53:08.000Z
2022-03-30T08:22:50.000Z
bugsnag/wsgi/__init__.py
ForroKulcs/bugsnag-python
107c1add31a2202cc08ef944aa00ab96996b247a
[ "MIT" ]
46
2015-02-09T23:50:57.000Z
2022-01-06T16:04:40.000Z
from typing import Dict from urllib.parse import quote def request_path(env: Dict): return quote('/' + env.get('PATH_INFO', '').lstrip('/'))
21
60
0.680272
0
0
0
0
0
0
0
0
19
0.129252
752440db344a6e89f896a64ed24d2a9cb97df493
522
py
Python
repos_module/utils.py
irongomme/heyvector
eb2d3c08a1cb6ed8d4e31d935ab6d54e857d446f
[ "MIT" ]
1
2019-03-11T15:10:16.000Z
2019-03-11T15:10:16.000Z
repos_module/utils.py
irongomme/heyvector
eb2d3c08a1cb6ed8d4e31d935ab6d54e857d446f
[ "MIT" ]
null
null
null
repos_module/utils.py
irongomme/heyvector
eb2d3c08a1cb6ed8d4e31d935ab6d54e857d446f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from heyvector import cache, github @cache.memoize(50) def list_user_repositories(user, **kwargs): return github.get('/users/%s/repos' % user, params = { 'visibility': 'public', 'affiliation': 'owner', 'sort': 'created', **kwargs}) @...
24.857143
58
0.559387
0
0
0
0
457
0.875479
0
0
136
0.260536
7528a707d7cd810fb6f1250d9781c45b722c4ed4
3,965
py
Python
tools/pylib/uvmap.py
maxymilianz/demoscene
7d912e77f160a3ad695f567b381a78215fd8be5d
[ "Artistic-2.0" ]
null
null
null
tools/pylib/uvmap.py
maxymilianz/demoscene
7d912e77f160a3ad695f567b381a78215fd8be5d
[ "Artistic-2.0" ]
null
null
null
tools/pylib/uvmap.py
maxymilianz/demoscene
7d912e77f160a3ad695f567b381a78215fd8be5d
[ "Artistic-2.0" ]
null
null
null
from __future__ import print_function from math import atan2, cos, sin, pi, sqrt, tan from utils import dist, lerp, frpart from array import array from PIL import Image def FancyEye(x, y): a = atan2(x, y) r = dist(x, y, 0.0, 0.0) if r == 0: return (0, 0) u = 0.04 * y + 0.06 * cos(a * 3.0) /...
26.433333
74
0.473644
2,667
0.672636
0
0
0
0
0
0
147
0.037074
752b31bd8d886628893665de61a27a8654c3bbbd
79,991
py
Python
tests/parse_infobox.py
matthewgehring/wptools
788cdc2078696dacb14652d5f2ad098a585e4763
[ "MIT" ]
482
2015-04-13T23:43:42.000Z
2022-03-31T14:44:50.000Z
tests/parse_infobox.py
matthewgehring/wptools
788cdc2078696dacb14652d5f2ad098a585e4763
[ "MIT" ]
168
2016-01-06T14:30:05.000Z
2022-02-17T22:14:36.000Z
tests/parse_infobox.py
matthewgehring/wptools
788cdc2078696dacb14652d5f2ad098a585e4763
[ "MIT" ]
80
2015-05-03T18:10:58.000Z
2022-02-17T22:54:25.000Z
# -*- coding:utf-8 -*- query = 'https://en.wikipedia.org/w/api.php?action=parse&formatversion=2&contentmodel=text&disableeditsection=&disablelimitreport=&disabletoc=&prop=text|iwlinks|parsetree|wikitext|displaytitle|properties&redirects&page=Blue%20Train%20%28album%29' response = r""" { "parse": { "title"...
3,076.576923
56,407
0.69184
0
0
0
0
0
0
0
0
79,965
0.999175
752cb11b33632675f903629216e71f86426bc4b6
1,687
py
Python
stabilizer/llrd.py
VigneshBaskar/stabilizer
970a55a6da4e57596cbc953830160057138719e8
[ "Apache-2.0" ]
22
2021-09-17T09:51:07.000Z
2022-03-24T04:19:26.000Z
stabilizer/llrd.py
VigneshBaskar/stabilizer
970a55a6da4e57596cbc953830160057138719e8
[ "Apache-2.0" ]
4
2021-09-18T07:57:27.000Z
2021-09-27T19:54:54.000Z
stabilizer/llrd.py
VigneshBaskar/stabilizer
970a55a6da4e57596cbc953830160057138719e8
[ "Apache-2.0" ]
5
2021-09-17T12:21:12.000Z
2022-03-28T04:57:58.000Z
def get_optimizer_parameters_with_llrd(model, peak_lr, multiplicative_factor): num_encoder_layers = len(model.transformer.encoder.layer) # Task specific layer gets the peak_lr tsl_parameters = [ { "params": [param for name, param in model.task_specific_layer.named_parameters()], ...
46.861111
101
0.662122
0
0
0
0
0
0
0
0
499
0.295791
752d121311dd12e755c6822eb5eb0468f439d38f
4,812
py
Python
python_parser/parser/glasMeasure.py
marcelscode/glasnost
e54ce9ece91433df8ac73229d01e06c012a7b8d8
[ "BSD-3-Clause" ]
58
2015-04-25T10:47:27.000Z
2022-03-31T15:37:58.000Z
python_parser/parser/glasMeasure.py
marcelscode/glasnost
e54ce9ece91433df8ac73229d01e06c012a7b8d8
[ "BSD-3-Clause" ]
1
2017-03-29T11:33:33.000Z
2018-01-02T20:19:28.000Z
python_parser/parser/glasMeasure.py
marcelscode/glasnost
e54ce9ece91433df8ac73229d01e06c012a7b8d8
[ "BSD-3-Clause" ]
18
2016-02-11T14:06:58.000Z
2022-03-15T11:13:39.000Z
# Glasnost Parser v2. # Developed 2011/2012 by Hadi Asghari (http://deeppacket.info) # # Statistics about test streams class GlasMeasurement: """" Class to hold statistics about one test stream """ def __init__(self, direction, port_typ, flow_typ, tcp_port): assert direction in ['u','d'] ...
39.442623
152
0.568786
4,678
0.972153
0
0
920
0.191189
0
0
1,060
0.220283
752daa07c16402e3055f39a32f880e876f78b385
2,563
py
Python
GPy_ABCD/Kernels/linearOffsetKernel.py
juanluislm/GPy-ABCD
63aa3a8a83148e0aaf8691ac3f69bced6fbaf600
[ "BSD-3-Clause" ]
null
null
null
GPy_ABCD/Kernels/linearOffsetKernel.py
juanluislm/GPy-ABCD
63aa3a8a83148e0aaf8691ac3f69bced6fbaf600
[ "BSD-3-Clause" ]
null
null
null
GPy_ABCD/Kernels/linearOffsetKernel.py
juanluislm/GPy-ABCD
63aa3a8a83148e0aaf8691ac3f69bced6fbaf600
[ "BSD-3-Clause" ]
1
2021-01-21T12:52:37.000Z
2021-01-21T12:52:37.000Z
import numpy as np from GPy.kern.src.kern import Kern from GPy.core.parameterization import Param from paramz.transformations import Logexp from paramz.caching import Cache_this class LinearWithOffset(Kern): """ Linear kernel with horizontal offset .. math:: k(x,y) = \sigma^2 (x - o)(y - o) ...
34.173333
148
0.65002
2,382
0.92938
0
0
316
0.123293
0
0
862
0.336325
752e21ffea89f00b97756d8ff46ca51435646c62
12,829
py
Python
OCT_reader_demo.py
kai-neuhaus/OCT_file_tools
1272b4d68822dc8ac9b0d7031c9b1b95b5b4a79a
[ "MIT" ]
null
null
null
OCT_reader_demo.py
kai-neuhaus/OCT_file_tools
1272b4d68822dc8ac9b0d7031c9b1b95b5b4a79a
[ "MIT" ]
null
null
null
OCT_reader_demo.py
kai-neuhaus/OCT_file_tools
1272b4d68822dc8ac9b0d7031c9b1b95b5b4a79a
[ "MIT" ]
null
null
null
# This file shows some example usage of Python functions to read an OCT file. # To use exectute this test reader, scroll to the bottom and pass an OCT file to the function unzip_OCTFile. # Find the comment #Example usage. # # Additional modules to be installed should be 'xmltodict', 'shutil', and 'gdown'. # Tested in P...
44.391003
140
0.706057
0
0
0
0
0
0
0
0
5,986
0.466599
752e54d82b6baced0d7e1660f4b291e11de5b92b
1,095
py
Python
datasets/Part 1 - Data Preprocessing/Section 2 -------------------- Part 1 - Data Preprocessing --------------------/categorical_data.py
nazareno56/machinelearning-az
12fc471ac8d08b511a22558b7fb1ff2b57bab6de
[ "MIT" ]
null
null
null
datasets/Part 1 - Data Preprocessing/Section 2 -------------------- Part 1 - Data Preprocessing --------------------/categorical_data.py
nazareno56/machinelearning-az
12fc471ac8d08b511a22558b7fb1ff2b57bab6de
[ "MIT" ]
null
null
null
datasets/Part 1 - Data Preprocessing/Section 2 -------------------- Part 1 - Data Preprocessing --------------------/categorical_data.py
nazareno56/machinelearning-az
12fc471ac8d08b511a22558b7fb1ff2b57bab6de
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Feb 28 13:19:06 2019 @author: juangabriel """ # Plantilla de Pre Procesado - Datos Categóricos # Cómo importar las librerías import numpy as np import matplotlib.pyplot as plt import pandas as pd # Importar el data set dataset = pd.read_csv('Data.csv...
31.285714
137
0.722374
0
0
0
0
0
0
0
0
499
0.454049
752e72698ce6c406e4123fed3e680fc56ab5c8db
7,281
py
Python
varsome_api/vcf.py
definitelysean/varsome-api-client-python
43ebeb65baf94e745a2f0e8ec326ed09f681bf24
[ "Apache-2.0" ]
23
2018-01-12T20:09:19.000Z
2022-02-26T13:39:36.000Z
varsome_api/vcf.py
definitelysean/varsome-api-client-python
43ebeb65baf94e745a2f0e8ec326ed09f681bf24
[ "Apache-2.0" ]
3
2018-01-15T11:10:40.000Z
2019-05-20T07:37:20.000Z
varsome_api/vcf.py
definitelysean/varsome-api-client-python
43ebeb65baf94e745a2f0e8ec326ed09f681bf24
[ "Apache-2.0" ]
11
2018-01-12T11:07:56.000Z
2021-09-29T18:02:27.000Z
# Copyright 2018 Saphetor S.A. # # 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 writing...
49.195946
119
0.631232
6,472
0.888889
0
0
0
0
0
0
2,575
0.35366
752ee5b4eeb5208d629fa9b4144505411d1f467e
77,806
py
Python
bin/ADFRsuite/CCSBpckgs/DejaVu2/ColormapGui.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
null
null
null
bin/ADFRsuite/CCSBpckgs/DejaVu2/ColormapGui.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
null
null
null
bin/ADFRsuite/CCSBpckgs/DejaVu2/ColormapGui.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
1
2021-11-04T21:48:14.000Z
2021-11-04T21:48:14.000Z
################################################################################ ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your op...
37.623791
102
0.527029
74,942
0.96319
0
0
0
0
0
0
21,786
0.280004
753028e8ebdf1300490ed13c919d16e0ca4beb04
7,068
py
Python
tests/test_dataset.py
ttecles/aidl-lyrics-recognition
33a7cf449a0a5e45d0575493b8b92b64787c8b8e
[ "CC0-1.0" ]
8
2021-06-07T09:16:56.000Z
2022-03-30T13:30:31.000Z
tests/test_dataset.py
ttecles/aidl-lyrics-recognition
33a7cf449a0a5e45d0575493b8b92b64787c8b8e
[ "CC0-1.0" ]
1
2021-06-27T13:56:29.000Z
2021-06-30T20:52:08.000Z
tests/test_dataset.py
ttecles/aidl-lyrics-recognition
33a7cf449a0a5e45d0575493b8b92b64787c8b8e
[ "CC0-1.0" ]
2
2021-12-05T06:58:27.000Z
2022-02-09T15:18:02.000Z
import pathlib from unittest import TestCase from unittest.mock import patch from DALI import Annotations from lyre.data import DaliDataset, Chunk from lyre.utils import sample2time class TestDaliDataset(TestCase): def test_creation_of_dataset(self): self.maxDiff = None with patch("lyre.data.da...
47.436242
119
0.535088
6,881
0.973543
0
0
0
0
0
0
1,210
0.171194
7531279b17d08fe57f535c79acfe22fd680a12a8
434
py
Python
JSON2OWL/grass/test.py
houzw/knowledge-base-data
60771e8bf300227e1a26c9e77f56b09d23acd64a
[ "MIT" ]
null
null
null
JSON2OWL/grass/test.py
houzw/knowledge-base-data
60771e8bf300227e1a26c9e77f56b09d23acd64a
[ "MIT" ]
null
null
null
JSON2OWL/grass/test.py
houzw/knowledge-base-data
60771e8bf300227e1a26c9e77f56b09d23acd64a
[ "MIT" ]
1
2018-12-17T06:40:53.000Z
2018-12-17T06:40:53.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # author: houzhiwei # time: 2019/7/13 19:12 import json import os import re from JSON2OWL.OwlConvert.OwlUtils import OWLUtils module_path = os.path.dirname(__file__) with open(module_path + '/grass.json', 'r') as f: jdata = json.load(f) # list for i,d in enumerate(jdat...
21.7
49
0.705069
0
0
0
0
0
0
0
0
129
0.297235
7531c0f4b4056b7e460c08361366e9674000dff4
1,861
py
Python
migration/rack/commits/commit90f2d4f55668786ffa01bba2a646c7468849c97d.py
tuxji/RACK
74b59b9a89b48cf2da91d7d9ac23ab3408e32bcf
[ "BSD-3-Clause" ]
4
2021-07-02T08:58:05.000Z
2022-02-02T03:02:32.000Z
migration/rack/commits/commit90f2d4f55668786ffa01bba2a646c7468849c97d.py
tuxji/RACK
74b59b9a89b48cf2da91d7d9ac23ab3408e32bcf
[ "BSD-3-Clause" ]
309
2020-11-02T19:46:14.000Z
2022-03-24T21:35:28.000Z
migration/rack/commits/commit90f2d4f55668786ffa01bba2a646c7468849c97d.py
tuxji/RACK
74b59b9a89b48cf2da91d7d9ac23ab3408e32bcf
[ "BSD-3-Clause" ]
7
2020-11-30T22:22:06.000Z
2022-02-02T03:09:12.000Z
# Copyright (c) 2021, Galois, Inc. # # All Rights Reserved # # This material is based upon work supported by the Defense Advanced Research # Projects Agency (DARPA) under Contract No. FA8750-20-C-0203. # # Any opinions, findings and conclusions or recommendations expressed in this # material are those of the author(s) ...
29.078125
78
0.631381
0
0
0
0
0
0
0
0
673
0.361634
7531c29be32f4d71954813624b8633e9ae001662
1,215
py
Python
part5/operations_overloading_3_2.py
MADTeacher/python_basics
06ae43d8063c1c8426a4fbb53443b6d1ee727951
[ "MIT" ]
null
null
null
part5/operations_overloading_3_2.py
MADTeacher/python_basics
06ae43d8063c1c8426a4fbb53443b6d1ee727951
[ "MIT" ]
null
null
null
part5/operations_overloading_3_2.py
MADTeacher/python_basics
06ae43d8063c1c8426a4fbb53443b6d1ee727951
[ "MIT" ]
4
2020-10-04T12:24:14.000Z
2022-01-16T17:01:59.000Z
class MyRange: def __init__(self, start, stop, step=1): self.start = start self.stop = stop self.step = step def __iter__(self): return MyRangeIterator(self) class MyRangeIterator: def __init__(self, myrange_object): self.my_range = myrange_object self.coun...
27.613636
69
0.609877
575
0.473251
0
0
0
0
0
0
261
0.214815
7534ae5cc5b96433aa0f386fbb142a34d3826eed
932
py
Python
api/tests/postTest.py
zhininghjl/Communiti-404F21
68bd67b6e6a8cdf70201fce8b15b96ef9195b394
[ "MIT" ]
2
2021-09-27T01:17:01.000Z
2021-10-17T01:44:37.000Z
api/tests/postTest.py
zhininghjl/Communiti-404F21
68bd67b6e6a8cdf70201fce8b15b96ef9195b394
[ "MIT" ]
17
2021-10-21T04:22:12.000Z
2021-12-07T00:39:43.000Z
api/tests/postTest.py
zhininghjl/Communiti-404F21
68bd67b6e6a8cdf70201fce8b15b96ef9195b394
[ "MIT" ]
2
2021-10-21T03:38:45.000Z
2021-12-21T23:38:49.000Z
from rest_framework.test import APITestCase, APIClient from django.urls import include, path, reverse from ..views import posts from ..utils import methods, generate_id # https://www.django-rest-framework.org/api-guide/testing/ class TestPost(APITestCase): urlpatterns = [ path("author/<str:authorID>/post...
44.380952
176
0.714592
701
0.752146
0
0
0
0
0
0
314
0.33691
7535ce0082f77b6c6e4fb97656d034c5dc25e071
11,399
py
Python
nusmodsplanner/mod_utils.py
raynoldng/nusmods-planner
5657c52cdefe35b7d272c3762d85185ca2a442c9
[ "MIT" ]
7
2017-07-19T07:06:43.000Z
2022-01-04T01:47:27.000Z
nusmodsplanner/mod_utils.py
raynoldng/nusmods-planner
5657c52cdefe35b7d272c3762d85185ca2a442c9
[ "MIT" ]
null
null
null
nusmodsplanner/mod_utils.py
raynoldng/nusmods-planner
5657c52cdefe35b7d272c3762d85185ca2a442c9
[ "MIT" ]
1
2018-09-08T06:35:26.000Z
2018-09-08T06:35:26.000Z
# helper functions for testing properties of candidate schedules import requests from sets import Set import json import calendar import itertools import os from collections import OrderedDict import random from definitions import ROOT_DIR, lessonTypeCodes, LOCAL_API_DIR from z3 import * LUNCH_HOURS = [11, 12, 13] def...
38.904437
136
0.59821
5,531
0.485218
0
0
0
0
0
0
3,658
0.320905
7538ab8f5f22694310200299efb04d802b7c2277
42
py
Python
tapis_cli/commands/registry/__init__.py
bpachev/tapis-cli
c3128fb5b63ef74e06b737bbd95ef28fb24f0d32
[ "BSD-3-Clause" ]
8
2020-10-18T22:48:23.000Z
2022-01-10T09:16:14.000Z
tapis_cli/commands/registry/__init__.py
bpachev/tapis-cli
c3128fb5b63ef74e06b737bbd95ef28fb24f0d32
[ "BSD-3-Clause" ]
238
2019-09-04T14:37:54.000Z
2020-04-15T16:24:24.000Z
tapis_cli/commands/registry/__init__.py
bpachev/tapis-cli
c3128fb5b63ef74e06b737bbd95ef28fb24f0d32
[ "BSD-3-Clause" ]
5
2019-09-20T04:23:49.000Z
2020-01-16T17:45:14.000Z
"""Docker container registry commands """
14
37
0.738095
0
0
0
0
0
0
0
0
41
0.97619
753a71640be1f2fee9267c9fd8f2b67b64a0df78
2,484
py
Python
Chapter3/Cantonese/Onset-only/functional_load_onset_can.py
AndreaCeolin/Functionalism_Contrast_Change
1557a4c76c253c7db292e503d6bd5cff5cea2d93
[ "MIT" ]
null
null
null
Chapter3/Cantonese/Onset-only/functional_load_onset_can.py
AndreaCeolin/Functionalism_Contrast_Change
1557a4c76c253c7db292e503d6bd5cff5cea2d93
[ "MIT" ]
null
null
null
Chapter3/Cantonese/Onset-only/functional_load_onset_can.py
AndreaCeolin/Functionalism_Contrast_Change
1557a4c76c253c7db292e503d6bd5cff5cea2d93
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' This script has been used perform functional load calculations on CANCORP. author: Andrea Ceolin date: February 2021 ''' from collections import Counter import math ''' Get the token frequencies of the corpus ''' words_tokens = Counter() for line in open('cantonese...
29.571429
109
0.67351
0
0
0
0
0
0
0
0
1,127
0.453704
753d0a15ee14b8c547bc4f3f4bb5ef8f44343ac6
15,401
py
Python
src/agents.py
YounesZ/RL_trading
69f1bfad4cdfac7a53ac64e3c8404477cbafeb74
[ "MIT" ]
1
2018-10-20T07:53:21.000Z
2018-10-20T07:53:21.000Z
src/agents.py
YounesZ/RL_trading
69f1bfad4cdfac7a53ac64e3c8404477cbafeb74
[ "MIT" ]
null
null
null
src/agents.py
YounesZ/RL_trading
69f1bfad4cdfac7a53ac64e3c8404477cbafeb74
[ "MIT" ]
null
null
null
import random import matplotlib.pyplot as plt import tensorflow as tf import keras as K from os import path from src.lib import * #from src.logging import * from copy import deepcopy from datetime import datetime class Agent: def __init__(self, model, batch_size=12, discount_factor=0.95, buffer_size=200, pre...
31.62423
129
0.703006
12,844
0.833972
0
0
0
0
0
0
3,995
0.259399
753d88404d166a84eabbbafeb2f4b21a47e63a44
3,036
py
Python
day03.py
alberto-re/adventoofcode2021
0cb32368ec2d0418d5b36fd566aaee3ed979017e
[ "MIT" ]
null
null
null
day03.py
alberto-re/adventoofcode2021
0cb32368ec2d0418d5b36fd566aaee3ed979017e
[ "MIT" ]
null
null
null
day03.py
alberto-re/adventoofcode2021
0cb32368ec2d0418d5b36fd566aaee3ed979017e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # --- Day 3: Binary Diagnostic --- from typing import Dict, List, Tuple from copy import deepcopy MOST_COMMON = 1 LEAST_COMMON = 0 EXAMPLE = """\ 00100 11110 10110 10111 10101 01111 00111 11100 10000 11001 00010 01010\ """ def lines_to_matrix(lines: List[str]) -> List[List[str]]: matrix...
25.3
88
0.65975
0
0
0
0
0
0
0
0
312
0.102767
753db29f7ca0b3d57786f6d579849804ab41f79a
665
py
Python
apps/blog/mixins.py
dryprojects/MyBlog
ec04ba2bc658e96cddeb1d4766047ca8e89ff656
[ "BSD-3-Clause" ]
2
2021-08-17T13:29:21.000Z
2021-09-04T05:00:01.000Z
apps/blog/mixins.py
dryprojects/MyBlog
ec04ba2bc658e96cddeb1d4766047ca8e89ff656
[ "BSD-3-Clause" ]
1
2020-07-16T11:22:32.000Z
2020-07-16T11:22:32.000Z
apps/blog/mixins.py
dryprojects/MyBlog
ec04ba2bc658e96cddeb1d4766047ca8e89ff656
[ "BSD-3-Clause" ]
1
2020-09-18T10:41:59.000Z
2020-09-18T10:41:59.000Z
# -*- coding:utf-8 -*- __author__ = 'Ren Kang' __date__ = '2018/3/27 19:05' from django.http import JsonResponse class JSONResponseMixin: """ a mixin that can be used to render a JSON response """ def render_to_response(self, context, **response_kwargs): """ :param cont...
24.62963
75
0.574436
542
0.815038
0
0
0
0
0
0
347
0.521805
753f674ed26d4491ca57d504a35abe01191fc849
1,760
py
Python
3_1.py
Nutella-duck/nutella_agent
f9b28dcf4a97ad316732f6ce891037f4391da18d
[ "MIT" ]
null
null
null
3_1.py
Nutella-duck/nutella_agent
f9b28dcf4a97ad316732f6ce891037f4391da18d
[ "MIT" ]
null
null
null
3_1.py
Nutella-duck/nutella_agent
f9b28dcf4a97ad316732f6ce891037f4391da18d
[ "MIT" ]
null
null
null
# 데이터 다운로드 from keras.datasets import imdb (train_data, train_labels), (test_data, test_labels) = imdb.load_data(num_words=10000) # 데이터 변환 import numpy as np def vectorize_sequences(sequences, dimension=10000): results = np.zeros((len(sequences), dimension)) for i, sequence in enumerate(sequences): r...
27.936508
89
0.684659
0
0
0
0
0
0
0
0
233
0.129014
7541d9a58c21b2c720ff96f890ac21f3d9664e8d
2,268
py
Python
myuw/views/api/profile.py
uw-it-aca/myuw
3fa1fabeb3c09d81a049f7c1a8c94092d612438a
[ "Apache-2.0" ]
18
2015-02-04T01:09:11.000Z
2021-11-25T03:10:39.000Z
myuw/views/api/profile.py
uw-it-aca/myuw
3fa1fabeb3c09d81a049f7c1a8c94092d612438a
[ "Apache-2.0" ]
2,323
2015-01-15T19:45:10.000Z
2022-03-21T19:57:06.000Z
myuw/views/api/profile.py
uw-it-aca/myuw
3fa1fabeb3c09d81a049f7c1a8c94092d612438a
[ "Apache-2.0" ]
9
2015-01-15T19:29:26.000Z
2022-02-11T04:51:23.000Z
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 import logging import traceback from myuw.dao import get_netid_of_current_user from myuw.dao.gws import is_student, is_applicant from myuw.dao.pws import get_display_name_of_current_user from myuw.dao.password import get_pw_json fro...
36
79
0.636243
1,529
0.674162
0
0
0
0
0
0
363
0.160053
7541f092207ba8986a0abfbf2b75ae22a3e43dd1
666
py
Python
6. ZigZag Conversion/solution.py
alexwhyy/leetcode
41664aa48137677d2f98817b9c512d76f13c525f
[ "MIT" ]
null
null
null
6. ZigZag Conversion/solution.py
alexwhyy/leetcode
41664aa48137677d2f98817b9c512d76f13c525f
[ "MIT" ]
null
null
null
6. ZigZag Conversion/solution.py
alexwhyy/leetcode
41664aa48137677d2f98817b9c512d76f13c525f
[ "MIT" ]
null
null
null
class Solution: def convert(self, s: str, numRows: int) -> str: strings = {i: [] for i in range(0, numRows)} increasing = True row = 0 for i in s: strings[row].append(i) if numRows == 1: continue if increasing: row +...
28.956522
52
0.388889
666
1
0
0
0
0
0
0
4
0.006006
7543dea3c9674d80aef0a63052820d06eac3ab3f
79
py
Python
src/bp/apps.py
elifesciences/bioprotocol-service
18db037852b9ae3520b29b4430f92e870f65fd89
[ "MIT" ]
1
2021-09-15T04:48:14.000Z
2021-09-15T04:48:14.000Z
src/bp/apps.py
elifesciences/bioprotocol-service
18db037852b9ae3520b29b4430f92e870f65fd89
[ "MIT" ]
6
2019-08-06T15:34:28.000Z
2021-10-12T01:08:23.000Z
src/bp/apps.py
elifesciences/bioprotocol-service
18db037852b9ae3520b29b4430f92e870f65fd89
[ "MIT" ]
null
null
null
from django.apps import AppConfig class BpConfig(AppConfig): name = "bp"
13.166667
33
0.721519
42
0.531646
0
0
0
0
0
0
4
0.050633
75447c4c912f2a5090056786cfa6c9e6c3619652
413
py
Python
configs/video/camvid/memory_r50-d8_640x640_80k_camvid_video.py
Xlinford/video_mmseg
28c905b38b10f857301a584ce95949ecf1ec7e0d
[ "Apache-2.0" ]
null
null
null
configs/video/camvid/memory_r50-d8_640x640_80k_camvid_video.py
Xlinford/video_mmseg
28c905b38b10f857301a584ce95949ecf1ec7e0d
[ "Apache-2.0" ]
null
null
null
configs/video/camvid/memory_r50-d8_640x640_80k_camvid_video.py
Xlinford/video_mmseg
28c905b38b10f857301a584ce95949ecf1ec7e0d
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../../_base_/models/memory_r50-d8.py', '../../_base_/datasets/camvid_video.py', '../../_base_/default_runtime.py', '../../_base_/schedules/schedule_80k.py' ] optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0005) model = dict( decode_head=dict(num_classes=12), auxiliary_head=di...
37.545455
84
0.677966
0
0
0
0
0
0
0
0
162
0.392252
754549096ab2413b6e0b65054d236c8339afe626
5,721
py
Python
datasets/wikisql/wikisql_dbengine.py
IBM/row-column-intersection
fbc4214d7f92f9602a1b219b4336a940de3d6ee4
[ "Apache-2.0" ]
29
2021-04-20T07:15:41.000Z
2022-03-01T06:32:40.000Z
datasets/wikisql/wikisql_dbengine.py
IBM/row-column-intersection
fbc4214d7f92f9602a1b219b4336a940de3d6ee4
[ "Apache-2.0" ]
4
2021-04-25T06:49:13.000Z
2021-10-07T11:00:14.000Z
datasets/wikisql/wikisql_dbengine.py
IBM/row-column-intersection
fbc4214d7f92f9602a1b219b4336a940de3d6ee4
[ "Apache-2.0" ]
5
2021-04-28T21:52:41.000Z
2022-02-21T07:16:35.000Z
""" Modified from WikiSQL/lib/dbengine.py BSD 3-Clause License Copyright (c) 2017, Salesforce Research 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 ...
45.768
123
0.646565
3,959
0.692012
0
0
0
0
0
0
2,285
0.399406
75494ce77726f66356676a03e189e192a5e91884
72
py
Python
tests/roots/test-extensions/write_serial.py
samdoran/sphinx
4c91c038b220d07bbdfe0c1680af42fe897f342c
[ "BSD-2-Clause" ]
4,973
2015-01-03T15:44:00.000Z
2022-03-31T03:11:51.000Z
tests/roots/test-extensions/write_serial.py
samdoran/sphinx
4c91c038b220d07bbdfe0c1680af42fe897f342c
[ "BSD-2-Clause" ]
7,850
2015-01-02T08:09:25.000Z
2022-03-31T18:57:40.000Z
tests/roots/test-extensions/write_serial.py
samdoran/sphinx
4c91c038b220d07bbdfe0c1680af42fe897f342c
[ "BSD-2-Clause" ]
2,179
2015-01-03T15:26:53.000Z
2022-03-31T12:22:44.000Z
def setup(app): return { 'parallel_write_safe': False }
14.4
36
0.569444
0
0
0
0
0
0
0
0
21
0.291667
754964acc6a0fdb092682d40acbf5109a1947819
59
py
Python
demo.py
dimitrov-dimitar/competitive-programming
f2b022377baf6d4beff213fc513907b774c12352
[ "MIT" ]
null
null
null
demo.py
dimitrov-dimitar/competitive-programming
f2b022377baf6d4beff213fc513907b774c12352
[ "MIT" ]
null
null
null
demo.py
dimitrov-dimitar/competitive-programming
f2b022377baf6d4beff213fc513907b774c12352
[ "MIT" ]
null
null
null
print('demo') for x in range(1000): print(x, end=' ')
11.8
21
0.559322
0
0
0
0
0
0
0
0
9
0.152542
754ca8a8829402ac4848e0cd1a56270189f5a5eb
2,195
py
Python
mamprefs/__init__.py
arubertoson/maya-mamprefs
0bf972322416499c51b67ad083600d3cbaa5d0e7
[ "MIT" ]
null
null
null
mamprefs/__init__.py
arubertoson/maya-mamprefs
0bf972322416499c51b67ad083600d3cbaa5d0e7
[ "MIT" ]
7
2016-01-10T09:48:48.000Z
2016-07-28T20:40:55.000Z
mamprefs/__init__.py
arubertoson/maya-mamprefs
0bf972322416499c51b67ad083600d3cbaa5d0e7
[ "MIT" ]
null
null
null
""" """ import os import json import logging from maya import cmds __title__ = 'mayaprefs' __version__ = '0.1.6' __author__ = 'Marcus Albertsson <marcus.arubertoson@gmail.com>' __url__ = 'http://github.com/arubertoson/maya-mayaprefs' __license__ = 'MIT' __copyright__ = 'Copyright 2016 Marcus Albertsson' ...
23.351064
68
0.627335
644
0.293394
0
0
0
0
0
0
625
0.284738
754e46227a36ce0c61ab7d1430c85a2c94c9f76f
1,567
py
Python
sonos.py
Einstein42/sonos-polyglot
9f141b0f53ee036684d49bd62af590fc9b67b8a9
[ "MIT" ]
8
2016-04-01T02:22:03.000Z
2019-01-03T01:42:37.000Z
sonos.py
Einstein42/sonos-polyglot
9f141b0f53ee036684d49bd62af590fc9b67b8a9
[ "MIT" ]
2
2020-09-19T20:04:10.000Z
2020-09-23T07:21:39.000Z
sonos.py
Einstein42/sonos-polyglot
9f141b0f53ee036684d49bd62af590fc9b67b8a9
[ "MIT" ]
3
2016-03-31T00:15:08.000Z
2019-06-13T09:45:39.000Z
#!/usr/bin/python """ Sonos Node Server for Polyglot by Einstein.42(James Milne) milne.james@gmail.com""" from polyglot.nodeserver_api import SimpleNodeServer, PolyglotConnector from sonos_types import SonosSpeaker, SonosControl VERSION = "0.2.1" class SonosNodeServer(SimpleNodeServer): """ Sonos N...
29.018519
91
0.631142
799
0.509892
0
0
0
0
0
0
444
0.283344
754e707729e5a852fcfee89bbfbf837d1fd7207c
2,973
py
Python
pysph/examples/rigid_body/bouncing_cube.py
nauaneed/pysph
9cb9a859934939307c65a25cbf73e4ecc83fea4a
[ "BSD-3-Clause" ]
293
2017-05-26T14:41:15.000Z
2022-03-28T09:56:16.000Z
pysph/examples/rigid_body/bouncing_cube.py
nauaneed/pysph
9cb9a859934939307c65a25cbf73e4ecc83fea4a
[ "BSD-3-Clause" ]
217
2017-05-29T15:48:14.000Z
2022-03-24T16:16:55.000Z
pysph/examples/rigid_body/bouncing_cube.py
nauaneed/pysph
9cb9a859934939307c65a25cbf73e4ecc83fea4a
[ "BSD-3-Clause" ]
126
2017-05-25T19:17:32.000Z
2022-03-25T11:23:24.000Z
"""A cube bouncing inside a box. (5 seconds) This is used to test the rigid body equations. """ import numpy as np from pysph.base.kernels import CubicSpline from pysph.base.utils import get_particle_array_rigid_body from pysph.sph.equation import Group from pysph.sph.integrator import EPECIntegrator from pysph.so...
30.649485
79
0.539522
2,243
0.754457
0
0
0
0
0
0
254
0.085436
7550b302b143fc382ccf3fdfe9024a6e71f17aa5
4,986
py
Python
jarvis_cli/admin.py
clb6/jarvis-cli
44dfe0a94243e444eaddc72496efd677be9272e7
[ "Apache-2.0" ]
null
null
null
jarvis_cli/admin.py
clb6/jarvis-cli
44dfe0a94243e444eaddc72496efd677be9272e7
[ "Apache-2.0" ]
3
2016-09-08T03:20:33.000Z
2016-12-08T05:19:57.000Z
jarvis_cli/admin.py
clb6/jarvis-cli
44dfe0a94243e444eaddc72496efd677be9272e7
[ "Apache-2.0" ]
null
null
null
import subprocess, os, time, shutil from datetime import datetime import jarvis_cli as jc from jarvis_cli import config, client from jarvis_cli.client import log_entry as cle def create_snapshot(environment, config_map): snapshot_filepath = "jarvis_snapshot_{0}_{1}.tar.gz".format(environment, datetime...
33.918367
86
0.648416
0
0
0
0
0
0
0
0
1,050
0.21059
7551478291616d2c374c6237ba8190235b7df550
4,609
py
Python
examples/quickstart_mxnet/client.py
Chris-george-anil/flower
98fb2fcde273c1226cc1f2e1638c1e4d8f35815c
[ "Apache-2.0" ]
895
2020-03-22T20:34:16.000Z
2022-03-31T15:20:42.000Z
examples/quickstart_mxnet/client.py
Chris-george-anil/flower
98fb2fcde273c1226cc1f2e1638c1e4d8f35815c
[ "Apache-2.0" ]
322
2020-02-19T10:16:33.000Z
2022-03-31T09:49:08.000Z
examples/quickstart_mxnet/client.py
Chris-george-anil/flower
98fb2fcde273c1226cc1f2e1638c1e4d8f35815c
[ "Apache-2.0" ]
234
2020-03-31T10:52:16.000Z
2022-03-31T14:04:42.000Z
"""Flower client example using MXNet for MNIST classification. The code is generally adapted from: https://mxnet.apache.org/api/python/docs/tutorials/packages/gluon/image/mnist.html """ import flwr as fl import numpy as np import mxnet as mx from mxnet import nd from mxnet import gluon from mxnet.gluon import nn fro...
33.642336
87
0.62378
1,100
0.238663
0
0
0
0
0
0
505
0.109568
755336617545c70fccce90a28a65b00fb6da7a58
2,116
py
Python
driver/eater.py
riastrad/newSeer
0f9841c7e7bb555c27c1ed2fc1ea7623f8e30f13
[ "MIT" ]
null
null
null
driver/eater.py
riastrad/newSeer
0f9841c7e7bb555c27c1ed2fc1ea7623f8e30f13
[ "MIT" ]
5
2017-03-27T17:22:16.000Z
2017-04-25T03:14:56.000Z
driver/eater.py
riastrad/newSeer
0f9841c7e7bb555c27c1ed2fc1ea7623f8e30f13
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # @Author: Josh Erb <josh.erb> # @Date: 27-Feb-2017 11:02 # @Email: josh.erb@excella.com # @Last modified by: josh.erb # @Last modified time: 27-Feb-2017 11:02 """ Main driver script for ingesting RSS data. Uses the ArticleFeed() object from the feeder.py script and a dictionary of public...
29.802817
92
0.577977
0
0
0
0
0
0
0
0
1,617
0.764178
7553e2b1473100abeaecabefbde8805eee7ba8aa
10,033
py
Python
utils/adscrawl.py
nmiles2718/PACMan_dist
62f495f8d506919146a16750072a523aaafb3c53
[ "MIT" ]
null
null
null
utils/adscrawl.py
nmiles2718/PACMan_dist
62f495f8d506919146a16750072a523aaafb3c53
[ "MIT" ]
null
null
null
utils/adscrawl.py
nmiles2718/PACMan_dist
62f495f8d506919146a16750072a523aaafb3c53
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os,sys,pdb,scipy,glob from pylab import * import urllib, urllib2 import xml.dom.minidom import datetime def ADS(): thisMirror = 'http://adsabs.harvard.edu/' print 'Retrieving from ',thisMirror baseUrl = thisMirror + 'cgi-bin/nph-abs_connect?' return baseUrl def get_text(...
41.118852
128
0.549686
0
0
0
0
0
0
0
0
2,493
0.24848
755568c409e234d158d2eba42024254a2b722778
919
py
Python
app/main.py
DanNduati/fastapi
f575d3f51e91aaf2d342e43c613795c01bd9229c
[ "MIT" ]
1
2021-12-21T16:27:16.000Z
2021-12-21T16:27:16.000Z
app/main.py
DanNduati/FastAPI-social-API
c4270a035b263e434ab49de98c183060e81e0181
[ "MIT" ]
1
2021-12-18T14:54:16.000Z
2021-12-19T13:56:11.000Z
app/main.py
DanNduati/fastapi
f575d3f51e91aaf2d342e43c613795c01bd9229c
[ "MIT" ]
null
null
null
from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware from app.routers import auth from . import models from .database import engine from .routers import posts, users, auth, votes #create our posts table if its not present models.Base.metadata.create_all(bind=engine) # aplication instance app...
23.564103
50
0.710555
0
0
0
0
0
0
0
0
241
0.262242
7558bfa8001faf2bdbf433c4fb30d2420e02470d
1,068
py
Python
callbacks/visdom_callback.py
AIS-Bonn/temporal_latticenet
02b60a69c82da909417f32fdd184321945a604d1
[ "MIT" ]
null
null
null
callbacks/visdom_callback.py
AIS-Bonn/temporal_latticenet
02b60a69c82da909417f32fdd184321945a604d1
[ "MIT" ]
null
null
null
callbacks/visdom_callback.py
AIS-Bonn/temporal_latticenet
02b60a69c82da909417f32fdd184321945a604d1
[ "MIT" ]
null
null
null
from callbacks.callback import * from callbacks.vis import * class VisdomCallback(Callback): def __init__(self, experiment_name): self.vis=Vis("lnn", 8097) # self.iter_nr=0 self.experiment_name=experiment_name def after_forward_pass(self, phase, loss, loss_dice, lr, pred_softmax, targ...
53.4
162
0.700375
1,006
0.941948
0
0
0
0
0
0
456
0.426966
755b8168748f1f7d664c1eb56c8d4b37b99d430f
1,451
py
Python
src/mnist_backbone.py
StevenHuang2020/PyTorch_Learning
292508f6794cfb23e0767139c1c703b9525cdb35
[ "MIT" ]
null
null
null
src/mnist_backbone.py
StevenHuang2020/PyTorch_Learning
292508f6794cfb23e0767139c1c703b9525cdb35
[ "MIT" ]
null
null
null
src/mnist_backbone.py
StevenHuang2020/PyTorch_Learning
292508f6794cfb23e0767139c1c703b9525cdb35
[ "MIT" ]
null
null
null
#python3 Steven 12/05/20,Auckland,NZ #pytorch backbone models import torch from commonTorch import ClassifierCNN_NetBB from summaryModel import summaryNet from backbones import* def main(): nClass = 10 net = ClassifierCNN_NetBB(nClass, backbone=alexnet) summaryNet(net, (3,512,512)) #net = Class...
29.612245
64
0.674707
0
0
0
0
0
0
0
0
999
0.688491
755d1072e648dc7b70b3ca63fee0d190c94c9d5d
953
py
Python
user_app/model/foot_models.py
syz247179876/e_mall
f94e39e091e098242342f532ae371b8ff127542f
[ "Apache-2.0" ]
7
2021-04-10T13:20:56.000Z
2022-03-29T15:00:29.000Z
user_app/model/foot_models.py
syz247179876/E_mall
f94e39e091e098242342f532ae371b8ff127542f
[ "Apache-2.0" ]
9
2021-05-11T03:53:31.000Z
2022-03-12T00:58:03.000Z
user_app/model/foot_models.py
syz247179876/E_mall
f94e39e091e098242342f532ae371b8ff127542f
[ "Apache-2.0" ]
2
2020-11-24T08:59:22.000Z
2020-11-24T14:10:59.000Z
# -*- coding: utf-8 -*- # @Time : 2021/2/19 下午4:22 # @Author : 司云中 # @File : foot_models.py # @Software: Pycharm from django.contrib.auth import get_user_model from django.db import models from django.db.models import Manager from django.utils.translation import gettext_lazy as _ from shop_app.models.commodity_models ...
27.228571
94
0.679958
648
0.634672
0
0
0
0
0
0
268
0.262488
755e3ccae90e818b543931a7a80b80c4d6d28e00
1,569
py
Python
src/fftIfftTests.py
vberthiaume/vblandr
dbd139e7b6172b9dbc97707ff4874bc398de7aaa
[ "Apache-2.0" ]
null
null
null
src/fftIfftTests.py
vberthiaume/vblandr
dbd139e7b6172b9dbc97707ff4874bc398de7aaa
[ "Apache-2.0" ]
10
2016-08-29T20:06:05.000Z
2016-10-27T20:40:58.000Z
src/fftIfftTests.py
vberthiaume/vblandr
dbd139e7b6172b9dbc97707ff4874bc398de7aaa
[ "Apache-2.0" ]
null
null
null
import subprocess as sp import scikits.audiolab import numpy as np from scipy.fftpack import fft, ifft from scipy.io import wavfile #--CONVERT MP3 TO WAV------------------------------------------ song_path = '/home/gris/Music/vblandr/test_small/punk/07 Alkaline Trio - Only Love.mp3' command = [ 'ffmpeg', '-i'...
35.659091
124
0.615679
0
0
0
0
0
0
0
0
947
0.603569
7560a82fac322ef2d8c50e83c01dd45192035ed7
372
py
Python
MIC/LCD12864/urls.py
blacksea3/MainMIC
02f226bce63c6b85f6922420fff4da885e6c24a3
[ "Apache-2.0" ]
null
null
null
MIC/LCD12864/urls.py
blacksea3/MainMIC
02f226bce63c6b85f6922420fff4da885e6c24a3
[ "Apache-2.0" ]
null
null
null
MIC/LCD12864/urls.py
blacksea3/MainMIC
02f226bce63c6b85f6922420fff4da885e6c24a3
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import patterns, include, url from django.http import HttpResponseRedirect from LCD12864.views import * def auto_redirect(request): return HttpResponseRedirect('/MIC/index/') urlpatterns = patterns('', url(r'index/$', index), url(r'search/$', search), url(r'update_database/...
24.8
51
0.704301
0
0
0
0
0
0
0
0
60
0.16129
75621ce86b3dd347f7fcc091107874d8c219b771
3,243
py
Python
src/schema.py
DanielCollins/pgtq
a8b0931a8a2538da8da01a8f4fd17e57ea772715
[ "0BSD" ]
12
2017-10-11T07:41:04.000Z
2021-02-19T06:19:29.000Z
src/schema.py
DanielCollins/pgtq
a8b0931a8a2538da8da01a8f4fd17e57ea772715
[ "0BSD" ]
33
2017-10-29T04:23:23.000Z
2019-01-30T05:20:57.000Z
src/schema.py
DanielCollins/pgtq
a8b0931a8a2538da8da01a8f4fd17e57ea772715
[ "0BSD" ]
null
null
null
"""SQL for storing and working on tasks.""" SQL_TEMPLATE = """ CREATE TABLE IF NOT EXISTS pgtq_{0}_scheduled ( key INTEGER PRIMARY KEY, not_before TIMESTAMP WITHOUT TIME ZONE NOT NULL, task JSON NOT NULL, attempts INTEGER NOT NULL, max_retries INTEGER ); CREATE INDEX IF NOT EXISTS ix_pgtq_{0}_scheduled_no...
29.216216
72
0.668208
0
0
0
0
0
0
0
0
3,225
0.99445
7562fcbbdac668092cdb6d5710b89f8c5f901a32
6,259
py
Python
visgraph/tests/test_graphcore.py
vEpiphyte/vivisect
14947a53c6781175f0aa83d49cc16c524a2e23a3
[ "ECL-2.0", "Apache-2.0" ]
1
2020-12-23T19:23:17.000Z
2020-12-23T19:23:17.000Z
visgraph/tests/test_graphcore.py
vEpiphyte/vivisect
14947a53c6781175f0aa83d49cc16c524a2e23a3
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
visgraph/tests/test_graphcore.py
vEpiphyte/vivisect
14947a53c6781175f0aa83d49cc16c524a2e23a3
[ "ECL-2.0", "Apache-2.0" ]
1
2020-12-23T19:23:58.000Z
2020-12-23T19:23:58.000Z
import unittest import visgraph.graphcore as v_graphcore s1paths = [ ('a','c','f'), ('a','b','d','f'), ('a','b','e','f'), ] s2paths = [ ('a','b'), ('a','b','c'), ] class GraphCoreTest(unittest.TestCase): def getSampleGraph1(self): # simple branching/merging graph g = v_graphc...
28.321267
95
0.537466
6,070
0.969803
0
0
0
0
0
0
652
0.10417
f3287946bcd7a026ba36e730bf9b3548a5dd79b1
4,029
py
Python
chatty_goose/agents/chat.py
saileshnankani/chatty-goose
ef3a27119d6825a96ae85d1453d6b4eac4ed22b7
[ "Apache-2.0" ]
24
2021-03-08T09:53:59.000Z
2022-03-17T06:47:06.000Z
chatty_goose/agents/chat.py
saileshnankani/chatty-goose
ef3a27119d6825a96ae85d1453d6b4eac4ed22b7
[ "Apache-2.0" ]
10
2021-03-08T13:35:54.000Z
2021-11-15T03:32:37.000Z
chatty_goose/agents/chat.py
saileshnankani/chatty-goose
ef3a27119d6825a96ae85d1453d6b4eac4ed22b7
[ "Apache-2.0" ]
8
2021-03-03T00:37:18.000Z
2021-08-01T00:50:47.000Z
import logging from chatty_goose.cqr import Hqe, Ntr from chatty_goose.pipeline import RetrievalPipeline from chatty_goose.settings import HqeSettings, NtrSettings from chatty_goose.types import CqrType, PosFilter from parlai.core.agents import Agent, register_agent from pyserini.search import SimpleSearcher @regist...
44.274725
131
0.641598
3,528
0.875652
0
0
3,564
0.884587
0
0
1,112
0.275999
f32993767d59acc690a30337b62cd5533087e465
5,639
py
Python
analysis/utils.py
VUB-HYDR/2022_Vanderkelen_etal_GMD
eceb5507a00c96d559b9611125935577ab84991b
[ "MIT" ]
null
null
null
analysis/utils.py
VUB-HYDR/2022_Vanderkelen_etal_GMD
eceb5507a00c96d559b9611125935577ab84991b
[ "MIT" ]
null
null
null
analysis/utils.py
VUB-HYDR/2022_Vanderkelen_etal_GMD
eceb5507a00c96d559b9611125935577ab84991b
[ "MIT" ]
null
null
null
""" Utils and functions to for MizuRoute postprocessing on Cheyenne Inne Vanderkelen - March 2021 """ import numpy as np def set_plot_param(): """Set my own customized plotting parameters""" import matplotlib as mpl mpl.rc('xtick',labelsize=12) mpl.rc('ytick',labelsize=12) mpl.rc('axes',tit...
34.384146
124
0.609328
0
0
0
0
0
0
0
0
2,343
0.415499
f32a75ee5c791e6098d35828898f7b16caa86fd3
210
py
Python
django/web/admin.py
priyankcommits/priyank.co.uk
9ca022ef102c156d1bfe943809d97b1cc447e464
[ "MIT" ]
null
null
null
django/web/admin.py
priyankcommits/priyank.co.uk
9ca022ef102c156d1bfe943809d97b1cc447e464
[ "MIT" ]
4
2021-03-09T09:57:40.000Z
2022-02-12T13:42:46.000Z
django/web/admin.py
priyankcommits/priyank.co.uk
9ca022ef102c156d1bfe943809d97b1cc447e464
[ "MIT" ]
null
null
null
from django.contrib import admin from web.models import Subscribers, Article, Post, Profile admin.site.register(Subscribers) admin.site.register(Article) admin.site.register(Post) admin.site.register(Profile)
26.25
58
0.82381
0
0
0
0
0
0
0
0
0
0
f32b83762755b987c17ac30aaedffee878d37ce9
875
py
Python
django_safe_project/safe_settings.py
Ketibansapi/sensitivity-djtest
b4a5b52fb07f25b9a5c62cf86d4ab19fc5609959
[ "MIT" ]
null
null
null
django_safe_project/safe_settings.py
Ketibansapi/sensitivity-djtest
b4a5b52fb07f25b9a5c62cf86d4ab19fc5609959
[ "MIT" ]
null
null
null
django_safe_project/safe_settings.py
Ketibansapi/sensitivity-djtest
b4a5b52fb07f25b9a5c62cf86d4ab19fc5609959
[ "MIT" ]
null
null
null
"""This module defines the settings to be altered and how to handle them. Each setting should contain a dict with the following keys: 'value': The content to be placed in `local_settings.py` 'default': The content will be set as the default value in `settings.py` `<SETTING_NAME> = getattr(local_setting...
43.75
80
0.691429
0
0
0
0
0
0
0
0
791
0.904
f32c7c7a86c83603395a612781c31e2718a2e153
14,611
py
Python
fhirstore/fhirstore.py
arkhn/pyfhirstore
dd43b6d7db600f95d81dc83ae0a6e6de78ff02c6
[ "Apache-2.0" ]
15
2019-10-04T14:29:42.000Z
2021-12-27T09:15:07.000Z
fhirstore/fhirstore.py
arkhn/pyfhirstore
dd43b6d7db600f95d81dc83ae0a6e6de78ff02c6
[ "Apache-2.0" ]
34
2019-10-08T16:37:26.000Z
2020-11-30T17:51:59.000Z
fhirstore/fhirstore.py
arkhn/pyfhirstore
dd43b6d7db600f95d81dc83ae0a6e6de78ff02c6
[ "Apache-2.0" ]
1
2020-12-14T06:13:19.000Z
2020-12-14T06:13:19.000Z
import sys import logging from typing import Union, Dict, Optional import json from elasticsearch import Elasticsearch from elasticsearch.exceptions import ( NotFoundError as ESNotFoundError, RequestError as ESRequestError, AuthenticationException as ESAuthenticationException, ) import pydantic from pymong...
39.596206
100
0.605024
13,658
0.934775
0
0
75
0.005133
0
0
5,354
0.366436
f32db992fe4b60b3413127ecc2439e2e3dfbd02f
1,276
py
Python
model/base/vgg_base.py
lizhaoliu-Lec/ImageAestheticAssessmentPyTorch
3ddb8408d978543b9609bdb4976b8e944057d449
[ "Apache-2.0" ]
7
2021-04-17T06:57:50.000Z
2022-03-15T08:12:11.000Z
model/base/vgg_base.py
lizhaoliu-Lec/ImageAestheticAssessmentPyTorch
3ddb8408d978543b9609bdb4976b8e944057d449
[ "Apache-2.0" ]
null
null
null
model/base/vgg_base.py
lizhaoliu-Lec/ImageAestheticAssessmentPyTorch
3ddb8408d978543b9609bdb4976b8e944057d449
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn from torchvision.models import vgg11 from torchvision.models import vgg13 from torchvision.models import vgg16 from torchvision.models import vgg19 from torchvision.models import vgg11_bn from torchvision.models import vgg13_bn from torchvision.models import vgg16_bn from torchvision...
26.040816
91
0.668495
652
0.510972
0
0
0
0
0
0
70
0.054859
f330826045b7dfd8da77b8e1ad7b89465919a84a
3,684
py
Python
Binary Tree/7.1-binary_tree.py
neeveermoree/data_structures_and_algorithms
8aa37cade53539909383fb9d4952b13ca19c931a
[ "MIT" ]
null
null
null
Binary Tree/7.1-binary_tree.py
neeveermoree/data_structures_and_algorithms
8aa37cade53539909383fb9d4952b13ca19c931a
[ "MIT" ]
null
null
null
Binary Tree/7.1-binary_tree.py
neeveermoree/data_structures_and_algorithms
8aa37cade53539909383fb9d4952b13ca19c931a
[ "MIT" ]
null
null
null
from utils_queue import Queue class _Node: __slots__ = '_val', '_left', '_right' def __init__(self, val, left=None, right=None): self._val = val self._left = left self._right = right class BinaryTree: __slots__ = '_root' def __init__(self, root=None): self._root = roo...
24.891892
57
0.580347
2,101
0.570304
0
0
0
0
0
0
662
0.179696
f3319761fd1182fd6665e156c585de85bd502534
35,625
py
Python
simpleserver.py
pixelheartz/SimpleServer
8fe21248b3a797aa5725d9e032752b94afa8180d
[ "MIT" ]
null
null
null
simpleserver.py
pixelheartz/SimpleServer
8fe21248b3a797aa5725d9e032752b94afa8180d
[ "MIT" ]
null
null
null
simpleserver.py
pixelheartz/SimpleServer
8fe21248b3a797aa5725d9e032752b94afa8180d
[ "MIT" ]
1
2020-05-08T19:34:56.000Z
2020-05-08T19:34:56.000Z
NAMAFILE = 'Telkomsel Opok v1' REQ = '' LHOST = '127.0.0.1' LPORT = 8080 FQUERY = ('dGVsa29tLnR1eXVsY3J5cHRvcy5jb20vaXBrLWJpbi9pcGsucG5nL25wYXpvbmUvMDAvaHR0cC8=').decode('base64') MQUERY = '' BQUERY = '' RQUERY = ('di53aGF0c2FwcC5jb20uYmVyYmFnaW1hbmZhYXQuY28uaWQ=').decode('base64') CQUERY = '' IQUERY = '' IMETHOD = 0 I...
34.688413
175
0.510428
32,579
0.914498
0
0
0
0
0
0
4,044
0.113516
f33285e15ede8369b4a0525755bb9a17e11b734e
472
py
Python
wishlist/domain/product/test/test_create_product.py
guiyllw/wishlist-luizalabs
0bc9f594cd7973fcb39e839e5540232cf1f718f9
[ "Apache-2.0" ]
null
null
null
wishlist/domain/product/test/test_create_product.py
guiyllw/wishlist-luizalabs
0bc9f594cd7973fcb39e839e5540232cf1f718f9
[ "Apache-2.0" ]
null
null
null
wishlist/domain/product/test/test_create_product.py
guiyllw/wishlist-luizalabs
0bc9f594cd7973fcb39e839e5540232cf1f718f9
[ "Apache-2.0" ]
null
null
null
from wishlist.domain.product.ports import CreateProduct from wishlist.test.helpers import AsyncMock class TestCreateProduct: async def test_create_product_with_success( self, create_product_request, product_response ): create_product = CreateProduct( AsyncMock(retu...
24.842105
69
0.716102
369
0.78178
0
0
0
0
339
0.71822
0
0
f332e5b3dab0d4a4b710e2086f5d14ccd27126f6
41
py
Python
pbconcept/__init__.py
ScarletPan/probase-concept
57f91998876f0085dd0acf34112fb2389563d0c2
[ "MIT" ]
18
2019-10-28T06:39:50.000Z
2022-02-28T12:54:08.000Z
pbconcept/__init__.py
ScarletPan/probase-concept
57f91998876f0085dd0acf34112fb2389563d0c2
[ "MIT" ]
null
null
null
pbconcept/__init__.py
ScarletPan/probase-concept
57f91998876f0085dd0acf34112fb2389563d0c2
[ "MIT" ]
null
null
null
from .conceptualize import ProbaseConcept
41
41
0.902439
0
0
0
0
0
0
0
0
0
0
f3334adaaf08994c3d3ed59dde038655efaef8ef
3,798
py
Python
src/MATGenerator.py
yumataesu/TouchDesigner-ShaderBuilder
5f9e8300603afc91cd60bf0c91061d11401520d1
[ "MIT" ]
1
2022-02-13T13:19:56.000Z
2022-02-13T13:19:56.000Z
src/MATGenerator.py
yumataesu/TouchDesigner-ShaderBuilder
5f9e8300603afc91cd60bf0c91061d11401520d1
[ "MIT" ]
null
null
null
src/MATGenerator.py
yumataesu/TouchDesigner-ShaderBuilder
5f9e8300603afc91cd60bf0c91061d11401520d1
[ "MIT" ]
null
null
null
import platform class MATGenerator: def __init__(self, ownerComp): self.ownerComp = ownerComp self.OUT_glsl_struct = '' self.OUT_pixel = '' self.OUT_vertex = '' self.use_alpha_hashed = False self.Update(self.ownerComp.op('in1')) def eval_template(self, tmpl_dat_name, ctx): t = op.ShaderB...
26.013699
112
0.614007
3,777
0.994471
0
0
0
0
0
0
830
0.218536
f333fbce56cacfc6b06521c303bbc2eacd4a8772
7,707
py
Python
tests/test_modifiers_mujoco.py
MoritzTaylor/simmod
76b2186c39940ce2d08aa36f3d06bfe3640d6c00
[ "MIT" ]
2
2021-07-05T14:08:09.000Z
2021-10-01T09:48:37.000Z
tests/test_modifiers_mujoco.py
MoritzTaylor/simmod
76b2186c39940ce2d08aa36f3d06bfe3640d6c00
[ "MIT" ]
null
null
null
tests/test_modifiers_mujoco.py
MoritzTaylor/simmod
76b2186c39940ce2d08aa36f3d06bfe3640d6c00
[ "MIT" ]
null
null
null
import pytest import xml.etree.ElementTree as ET import numpy as np from mujoco_py import load_model_from_xml, MjSim, load_model_from_path from simmod.modification.mujoco import MujocoBodyModifier from simmod.modification.mujoco import MujocoJointModifier TEST_MODEL_FURUTA_PATH = 'assets/test_mujoco_furuta.xml' TEST...
36.014019
102
0.682367
0
0
0
0
0
0
0
0
1,531
0.198651
f334941419dcf2217c67d295f355f106aacc212c
1,265
py
Python
typelike/tests/core/test_list.py
LockhartLab/typelike
bc959a5348133f24e5f5df3f4f7976fc062b2e05
[ "MIT" ]
null
null
null
typelike/tests/core/test_list.py
LockhartLab/typelike
bc959a5348133f24e5f5df3f4f7976fc062b2e05
[ "MIT" ]
null
null
null
typelike/tests/core/test_list.py
LockhartLab/typelike
bc959a5348133f24e5f5df3f4f7976fc062b2e05
[ "MIT" ]
null
null
null
""" test_list.py written in Python3 author: C. Lockhart """ from typelike.core import ListLike from hypothesis import given import hypothesis.strategies as st import numpy as np import pandas as pd import unittest # Contents __all__ = [ 'TestList' ] # Test typelike/core/list.py class TestList(unittest.TestCas...
28.111111
94
0.680632
976
0.771542
0
0
913
0.721739
0
0
139
0.109881
f334c373215cba10b03d648d2ce22cbe3103246a
484
py
Python
create_db.py
jmprkables/webapp
72cdb4b0a8c2d4822e36280421776ca706f724ab
[ "MIT" ]
null
null
null
create_db.py
jmprkables/webapp
72cdb4b0a8c2d4822e36280421776ca706f724ab
[ "MIT" ]
null
null
null
create_db.py
jmprkables/webapp
72cdb4b0a8c2d4822e36280421776ca706f724ab
[ "MIT" ]
null
null
null
import rethinkdb as r conn = r.connect("192.168.6.26", 28015) try: r.db_drop("hackiiitd").run(conn) print("deleted old db") except: print("inital creation") r.db_create("hackiiitd").run(conn) r.db("hackiiitd").table_create("fall").run(conn) print("."), r.db("hackiiitd").table_create("medicine").run(conn) print("....
23.047619
71
0.683884
0
0
0
0
0
0
0
0
169
0.349174