hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
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
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
251
max_forks_repo_name
stringlengths
4
130
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
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
7e18bcbc29a2c01e32c9c2370ce6613e24de3611
10,660
py
Python
stellarisdashboard/game_info.py
Akuukis/stellaris-dashboard
baf0de5abfaf1ade719f06c5d0ce76e7ee9d17df
[ "MIT", "Unlicense" ]
97
2018-03-24T14:18:21.000Z
2022-01-16T16:25:55.000Z
stellarisdashboard/game_info.py
Akuukis/stellaris-dashboard
baf0de5abfaf1ade719f06c5d0ce76e7ee9d17df
[ "MIT", "Unlicense" ]
30
2018-03-25T01:06:44.000Z
2022-01-28T10:24:19.000Z
stellarisdashboard/game_info.py
Akuukis/stellaris-dashboard
baf0de5abfaf1ade719f06c5d0ce76e7ee9d17df
[ "MIT", "Unlicense" ]
17
2018-03-25T15:45:30.000Z
2022-01-09T13:58:32.000Z
PHYSICS_TECHS = { "tech_databank_uplinks", "tech_basic_science_lab_1", "tech_curator_lab", "tech_archeology_lab", "tech_physics_lab_1", "tech_physics_lab_2", "tech_physics_lab_3", "tech_global_research_initiative", "tech_administrative_ai", "tech_cryostasis_1", "tech_cryostas...
28.810811
98
0.711069
7e19545cdf8ccda12d1556b38db20f32c4aa3c1c
1,112
py
Python
web/misc/webapi_client/__init__.py
procool/mygw
f35b72b5915d314e883dcde45c3c33ff26f173df
[ "BSD-2-Clause" ]
null
null
null
web/misc/webapi_client/__init__.py
procool/mygw
f35b72b5915d314e883dcde45c3c33ff26f173df
[ "BSD-2-Clause" ]
null
null
null
web/misc/webapi_client/__init__.py
procool/mygw
f35b72b5915d314e883dcde45c3c33ff26f173df
[ "BSD-2-Clause" ]
null
null
null
import re from flaskcbv.conf import settings from misc.httpclient import httpClient re_session = re.compile(r"session=(.*?);")
25.272727
77
0.629496
7e1a810629ff4e92bba844d970fa5906ec4f3338
3,689
py
Python
starfish/pipeline/filter/gaussian_high_pass.py
Xiaojieqiu/starfish
426480fcfeda4b8b1eb9371a818ff20275ac898d
[ "MIT" ]
1
2018-10-07T03:53:43.000Z
2018-10-07T03:53:43.000Z
starfish/pipeline/filter/gaussian_high_pass.py
Xiaojieqiu/starfish
426480fcfeda4b8b1eb9371a818ff20275ac898d
[ "MIT" ]
null
null
null
starfish/pipeline/filter/gaussian_high_pass.py
Xiaojieqiu/starfish
426480fcfeda4b8b1eb9371a818ff20275ac898d
[ "MIT" ]
null
null
null
import argparse from functools import partial from numbers import Number from typing import Callable, Union, Tuple, Optional import numpy as np from skimage import img_as_uint from starfish.errors import DataFormatWarning from starfish.image import ImageStack from starfish.pipeline.filter.gaussian_low_pass import Gau...
35.815534
119
0.632421
7e1b0a8590a411950b17f4ae15287aa43064930c
2,040
py
Python
WDJN/eval/svm_eval_acc.py
silverriver/Stylized_Dialog
559dd97c4ec9c91e94deb048f789684ef3f1f9fa
[ "MIT" ]
21
2020-12-16T08:53:38.000Z
2022-01-21T09:08:55.000Z
WDJN/eval/svm_eval_acc.py
silverriver/Stylized_Dialog
559dd97c4ec9c91e94deb048f789684ef3f1f9fa
[ "MIT" ]
1
2020-12-27T07:56:01.000Z
2020-12-30T05:13:11.000Z
WDJN/eval/svm_eval_acc.py
silverriver/Stylized_Dialog
559dd97c4ec9c91e94deb048f789684ef3f1f9fa
[ "MIT" ]
1
2022-02-28T12:19:19.000Z
2022-02-28T12:19:19.000Z
import torch import torch.nn as nn import sklearn from sklearn import svm from sklearn import metrics from sklearn.externals import joblib import numpy as np from text import Vocab import random import os import json from tqdm import tqdm, trange from random import sample import pickle models = [ ["bt_beam", "eval/inf...
30
86
0.701961
7e1d6767408fd3f3df4bbb5588442b63585f4595
5,937
py
Python
factom_core/blockchains/base.py
sourcery-ai-bot/factom-core
186dca550d98d758e9f8dab878e6382153efeaf3
[ "MIT" ]
null
null
null
factom_core/blockchains/base.py
sourcery-ai-bot/factom-core
186dca550d98d758e9f8dab878e6382153efeaf3
[ "MIT" ]
null
null
null
factom_core/blockchains/base.py
sourcery-ai-bot/factom-core
186dca550d98d758e9f8dab878e6382153efeaf3
[ "MIT" ]
null
null
null
from typing import Any, List import factom_core.blocks as blocks from factom_core.db import FactomdLevelDB from .pending_block import PendingBlock
39.58
118
0.662961
7e1f08195236c36e7e4adbc510902d90c5d6a72a
492
py
Python
bot/plugins/bongo.py
Preocts/twitch-chat-bot
50341c30d8eada4b50634c8f25a9eb0eed681735
[ "MIT" ]
62
2019-11-16T22:07:42.000Z
2022-03-08T20:50:01.000Z
bot/plugins/bongo.py
Preocts/twitch-chat-bot
50341c30d8eada4b50634c8f25a9eb0eed681735
[ "MIT" ]
30
2019-03-19T15:05:55.000Z
2022-03-24T05:00:53.000Z
bot/plugins/bongo.py
Preocts/twitch-chat-bot
50341c30d8eada4b50634c8f25a9eb0eed681735
[ "MIT" ]
56
2019-06-08T20:34:31.000Z
2022-02-21T20:10:38.000Z
from __future__ import annotations from typing import Match from bot.config import Config from bot.data import command from bot.data import esc from bot.data import format_msg
22.363636
76
0.676829
7e1f4ae6822590bfe77246c78771d04e3114e141
532
py
Python
sensorsproject/settings/dev_edwin.py
edwinsteele/sensorsproject
21164b9bb437a3b1bbcc05f05c58cd5621bd4501
[ "CC0-1.0" ]
null
null
null
sensorsproject/settings/dev_edwin.py
edwinsteele/sensorsproject
21164b9bb437a3b1bbcc05f05c58cd5621bd4501
[ "CC0-1.0" ]
2
2020-02-12T01:18:25.000Z
2020-06-05T18:40:51.000Z
sensorsproject/settings/dev_edwin.py
edwinsteele/sensorsproject
21164b9bb437a3b1bbcc05f05c58cd5621bd4501
[ "CC0-1.0" ]
null
null
null
__author__ = 'esteele' # Common settings from .base import * DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'sensors', 'USER': '', 'PASSWORD': '', 'HOST': 'localhost', 'PORT': '', } } DEBUG = True TEMPLATE_DEBUG = DEBUG ...
22.166667
74
0.62218
7e20dfa0bd8d4cf4dfc335988fbdb52ffa2d141f
110
py
Python
EduRec/meta/__init__.py
tswsxk/EduRec
b7514acc4dea805375fe512534d8ab6ad8916374
[ "MIT" ]
2
2021-03-03T11:04:53.000Z
2021-09-03T09:12:32.000Z
EduRec/meta/__init__.py
tswsxk/EduRec
b7514acc4dea805375fe512534d8ab6ad8916374
[ "MIT" ]
null
null
null
EduRec/meta/__init__.py
tswsxk/EduRec
b7514acc4dea805375fe512534d8ab6ad8916374
[ "MIT" ]
1
2021-03-22T02:55:53.000Z
2021-03-22T02:55:53.000Z
# coding: utf-8 # 2021/2/10 @ tongshiwei from .MeasurementModel import MeasurementModel from .SLM import SLM
18.333333
46
0.772727
7e20e4b11c633a3d5298ade6bd642d38cd22c88d
1,066
py
Python
load_model.py
zhfeing/cifar-10-test
c0b8695db73888b1756e5b078cd03203ab233297
[ "MIT" ]
null
null
null
load_model.py
zhfeing/cifar-10-test
c0b8695db73888b1756e5b078cd03203ab233297
[ "MIT" ]
null
null
null
load_model.py
zhfeing/cifar-10-test
c0b8695db73888b1756e5b078cd03203ab233297
[ "MIT" ]
null
null
null
import keras import os def load_model(version, new_model, retrain=False, *args): """ :param version: model version :param new_model: method for call to get a new model e.g. my_ResNet.my_ResNet :param retrain: True: load new model :return: """ create_new_model = False # load model i...
33.3125
103
0.604128
7e22285b67f177bfff44a11d4ab8750cb32facff
953
py
Python
src/bioplottemplates/cli_labeldots.py
joaomcteixeira/python-bioplottemplates
17f617fba3ce29eb458ec701363027f11beaf7c5
[ "MIT" ]
null
null
null
src/bioplottemplates/cli_labeldots.py
joaomcteixeira/python-bioplottemplates
17f617fba3ce29eb458ec701363027f11beaf7c5
[ "MIT" ]
null
null
null
src/bioplottemplates/cli_labeldots.py
joaomcteixeira/python-bioplottemplates
17f617fba3ce29eb458ec701363027f11beaf7c5
[ "MIT" ]
null
null
null
import argparse from bioplottemplates.libs import libcli, libio from bioplottemplates.plots import label_dots ap = libcli.CustomParser( description=__doc__, formatter_class=argparse.ArgumentDefaultsHelpFormatter, ) ap.add_argument( 'data_csv', help='The CSVs files to plot', nargs='+', ) ...
17.648148
59
0.623295
7e245908b2f4ad986cdcf99565e90fb90d1d0b11
94
py
Python
tadataka/feature/__init__.py
IshitaTakeshi/Tadataka
852c7afb904503005e51884408e1492ef0be836f
[ "Apache-2.0" ]
54
2019-11-15T16:30:34.000Z
2022-01-13T15:18:54.000Z
tadataka/feature/__init__.py
IshitaTakeshi/Tadataka
852c7afb904503005e51884408e1492ef0be836f
[ "Apache-2.0" ]
11
2019-02-28T08:28:24.000Z
2020-04-07T04:47:12.000Z
tadataka/feature/__init__.py
IshitaTakeshi/Tadataka
852c7afb904503005e51884408e1492ef0be836f
[ "Apache-2.0" ]
1
2020-02-26T13:59:40.000Z
2020-02-26T13:59:40.000Z
from tadataka.feature.feature import ( extract_features, empty_match, Features, Matcher )
23.5
52
0.787234
7e249d769adff61f3ed7920cc7d27c1e95686e3c
887
py
Python
class/cls_006.py
rpoliselit/python-for-dummies
d6f45a966a5238058953f93d8660832fa692b3d4
[ "MIT" ]
null
null
null
class/cls_006.py
rpoliselit/python-for-dummies
d6f45a966a5238058953f93d8660832fa692b3d4
[ "MIT" ]
null
null
null
class/cls_006.py
rpoliselit/python-for-dummies
d6f45a966a5238058953f93d8660832fa692b3d4
[ "MIT" ]
null
null
null
# Custom errors in classes. book_1 = Book("Fluent Python", 800) try: book_1.read(450) book_1.read(800) except TooManyPagesReadError as e: print(e) finally: print(book_1)
26.878788
112
0.641488
7e25064cbef2ae141cd04ce9086cb43f954ff0bf
661
py
Python
data/external/repositories/113677/KaggleBillionWordImputation-master/scripts/test_stanford_nltk.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories/113677/KaggleBillionWordImputation-master/scripts/test_stanford_nltk.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories/113677/KaggleBillionWordImputation-master/scripts/test_stanford_nltk.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
1
2019-12-04T08:23:33.000Z
2019-12-04T08:23:33.000Z
#!/usr/bin/env python import sys, bz2 sys.path.insert(0, '/Users/timpalpant/Documents/Workspace/corenlp-python') import nltk from nltk.tree import Tree from corenlp import StanfordCoreNLP from remove_random_word import remove_random_word print "Booting StanfordCoreNLP" nlp = StanfordCoreNLP() print "Initializing tra...
30.045455
74
0.748865
7e25a7271dfc02edc1e4d7ee8ec27394dc69dcb1
35,165
py
Python
psyneulink/core/rpc/graph_pb2.py
JeshuaT/PsyNeuLink
912f691028e848659055430f37b6c15273c762f1
[ "Apache-2.0" ]
67
2018-01-05T22:18:44.000Z
2022-03-27T11:27:31.000Z
psyneulink/core/rpc/graph_pb2.py
JeshuaT/PsyNeuLink
912f691028e848659055430f37b6c15273c762f1
[ "Apache-2.0" ]
1,064
2017-12-01T18:58:27.000Z
2022-03-31T22:22:24.000Z
psyneulink/core/rpc/graph_pb2.py
JeshuaT/PsyNeuLink
912f691028e848659055430f37b6c15273c762f1
[ "Apache-2.0" ]
25
2017-12-01T20:27:07.000Z
2022-03-08T21:49:39.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: graph.proto from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection fro...
34.34082
2,882
0.746936
7e264599a8cb2bf8b1fd89fbf7da642cc5d1526e
7,549
py
Python
parsifal/library/models.py
reeta1234/parsifal
dc2ea19916e7430634e2efd3e1bacc89ebbde4f1
[ "MIT" ]
null
null
null
parsifal/library/models.py
reeta1234/parsifal
dc2ea19916e7430634e2efd3e1bacc89ebbde4f1
[ "MIT" ]
6
2020-06-06T00:35:23.000Z
2022-03-12T00:15:47.000Z
parsifal/library/models.py
reeta1234/parsifal
dc2ea19916e7430634e2efd3e1bacc89ebbde4f1
[ "MIT" ]
null
null
null
# coding: utf-8 from django.db import models from django.contrib.auth.models import User from django.utils.text import slugify def document_file_upload_to(instance, filename): return u'library/{0}/'.format(instance.document.user.pk)
38.126263
113
0.672672
7e27a51c16ce0ebdda612a36ad33d8d6b8a40c5b
2,668
py
Python
getkills/mongoconn.py
namrak/pyzkillredisq
da0c1fe02945f9da13795609a2f2debd95a0e74a
[ "MIT" ]
null
null
null
getkills/mongoconn.py
namrak/pyzkillredisq
da0c1fe02945f9da13795609a2f2debd95a0e74a
[ "MIT" ]
null
null
null
getkills/mongoconn.py
namrak/pyzkillredisq
da0c1fe02945f9da13795609a2f2debd95a0e74a
[ "MIT" ]
null
null
null
from pymongo import MongoClient, errors import tstp from mdb import creds def connect(logfile): """connect to mongodb""" try: client = MongoClient(creds['ip'], int(creds['port'])) db = client.fpLoss db.authenticate(creds['un'], creds['pw']) return db except errors.ServerSele...
37.577465
97
0.583208
7e27b75092d500071f0de2b5c912b9202dacc53e
4,785
py
Python
test.py
richardfergie/ForecastGA
ce4ddc778d0be68f504e1bfc300be6b2fe870cb7
[ "MIT" ]
30
2021-01-02T16:14:55.000Z
2022-02-11T23:17:18.000Z
test.py
richardfergie/ForecastGA
ce4ddc778d0be68f504e1bfc300be6b2fe870cb7
[ "MIT" ]
2
2021-01-11T16:56:23.000Z
2021-02-04T00:37:56.000Z
test.py
richardfergie/ForecastGA
ce4ddc778d0be68f504e1bfc300be6b2fe870cb7
[ "MIT" ]
8
2021-01-10T19:04:22.000Z
2021-11-14T18:47:22.000Z
# Libraries import pandas as pd import numpy as np import re from datetime import datetime from dateutil.rrule import rrule, MONTHLY import matplotlib.pyplot as plt import json import forecastga import forecastga.googleanalytics as ga # Logging import logging logging.basicConfig(level=logging.DEBUG) log = logging....
28.825301
225
0.654127
7e27fd655e7f176518f5547ff5db4f5b22ff9992
574
py
Python
Simulation/Simulation/intervention.py
anoppa/Proyecto-IA-Sim-Comp
71132bd0c6cb5aeff812fd96e0017be71178a5f3
[ "MIT" ]
1
2022-03-11T14:24:10.000Z
2022-03-11T14:24:10.000Z
Simulation/Simulation/intervention.py
anoppa/Proyecto-IA-Sim-Comp
71132bd0c6cb5aeff812fd96e0017be71178a5f3
[ "MIT" ]
null
null
null
Simulation/Simulation/intervention.py
anoppa/Proyecto-IA-Sim-Comp
71132bd0c6cb5aeff812fd96e0017be71178a5f3
[ "MIT" ]
1
2022-01-19T04:29:19.000Z
2022-01-19T04:29:19.000Z
from .agent import Agent from typing import List from .activation_rule import ActivationRule
22.96
80
0.614983
7e2848ed83aa47cbc6a16174581fc8a9c100f6b0
79,206
py
Python
xanalysis_groundstate_paper_figs.py
kseetharam/genPolaron
b4eb05c595f1dc7151aa564f56fcfbdeded570c5
[ "MIT" ]
null
null
null
xanalysis_groundstate_paper_figs.py
kseetharam/genPolaron
b4eb05c595f1dc7151aa564f56fcfbdeded570c5
[ "MIT" ]
null
null
null
xanalysis_groundstate_paper_figs.py
kseetharam/genPolaron
b4eb05c595f1dc7151aa564f56fcfbdeded570c5
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import xarray as xr import matplotlib import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation from matplotlib.lines import Line2D import matplotlib.colors as colors from matplotlib.animation import writers from matplotlib.patches import ConnectionPatch impor...
51.332469
257
0.626985
7e28c7fed222b2d6fc00b0669d8343daf9331941
286
py
Python
demo/onlyuserrole/demo/urls.py
tangdyy/onlyuserclient
d93b4e1077afda6b58bba002729f6bc89b988c7a
[ "MIT" ]
2
2021-03-12T00:42:13.000Z
2021-05-24T06:31:13.000Z
demo/onlyuserrole/demo/urls.py
tangdyy/onlyuserclient
d93b4e1077afda6b58bba002729f6bc89b988c7a
[ "MIT" ]
null
null
null
demo/onlyuserrole/demo/urls.py
tangdyy/onlyuserclient
d93b4e1077afda6b58bba002729f6bc89b988c7a
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.urls import path,include from rest_framework import routers from .views import RoleViewSet router = routers.DefaultRouter() router.register(r'roles', RoleViewSet, basename='role') urlpatterns = [ url(r'^', include(router.urls)), ]
22
55
0.755245
7e28d10904cede451441c32ece55951a633841a9
547
py
Python
data_structures/heap/heap_using_heapq.py
ruler30cm/python-ds
f84605c5b746ea1d46de3d00b86f5fba399445c7
[ "MIT" ]
1,723
2019-07-30T07:06:22.000Z
2022-03-31T15:22:22.000Z
data_structures/heap/heap_using_heapq.py
ruler30cm/python-ds
f84605c5b746ea1d46de3d00b86f5fba399445c7
[ "MIT" ]
213
2019-10-06T08:07:47.000Z
2021-10-04T15:38:36.000Z
data_structures/heap/heap_using_heapq.py
ruler30cm/python-ds
f84605c5b746ea1d46de3d00b86f5fba399445c7
[ "MIT" ]
628
2019-10-06T10:26:25.000Z
2022-03-31T01:41:00.000Z
""" Heap in python using heapq library function Note: by default, heapq creates a min-heap. To make it a max-heap, add items after multiplying them by -1 """ from heapq import heappop, heappush, heapify heap = [] heapify(heap) heappush(heap, 10) heappush(heap, 11) heappush(heap, 2) heappush(heap, 4) heappush(heap,...
20.259259
57
0.714808
7e29ac378ea3d06f25904da8b4888983e79680b8
3,161
py
Python
paracept.py
andrinethomas/Tensorflow-vehicle-detection-using-camera-and-db-accessing-mysql
4d76cc24a9ea67bbf16409f8ce30ec373b55f969
[ "FTL", "CNRI-Python" ]
1
2021-07-07T14:12:37.000Z
2021-07-07T14:12:37.000Z
paracept.py
andrinethomas/Tensorflow-vehicle-detection-using-camera-and-db-accessing-mysql
4d76cc24a9ea67bbf16409f8ce30ec373b55f969
[ "FTL", "CNRI-Python" ]
null
null
null
paracept.py
andrinethomas/Tensorflow-vehicle-detection-using-camera-and-db-accessing-mysql
4d76cc24a9ea67bbf16409f8ce30ec373b55f969
[ "FTL", "CNRI-Python" ]
1
2019-12-02T11:17:42.000Z
2019-12-02T11:17:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Apr 2 17:55:47 2018 @author: tensorflow-cuda """ import numpy as np import os import sys import tensorflow as tf from PIL import Image, ImageFile ImageFile.LOAD_TRUNCATED_IMAGES = True import pytesseract from custom_plate import allow_needed_values...
39.024691
130
0.672572
7e2bbd84e61191db51ca260c5490c7e1b2095162
2,245
py
Python
test/test_words.py
dubmix3105/pysh
dbd14ee8445a983ee6c736e4041e47ddfa4edacc
[ "MIT" ]
7
2019-07-15T14:32:23.000Z
2021-08-08T01:17:05.000Z
test/test_words.py
dubmix3105/pysh
dbd14ee8445a983ee6c736e4041e47ddfa4edacc
[ "MIT" ]
null
null
null
test/test_words.py
dubmix3105/pysh
dbd14ee8445a983ee6c736e4041e47ddfa4edacc
[ "MIT" ]
1
2021-01-02T04:13:43.000Z
2021-01-02T04:13:43.000Z
import sys import pytest from pysh import shwords, shwords_f
27.716049
117
0.535857
7e2c4a41a01548c788b1f56baad24c0343c82cf7
753
py
Python
slender/tests/dictionary/test_contain.py
torokmark/slender
3bf815e22f7802ba48706f31ba608cf609e23e68
[ "Apache-2.0" ]
1
2020-01-10T21:51:46.000Z
2020-01-10T21:51:46.000Z
slender/tests/dictionary/test_contain.py
torokmark/slender
3bf815e22f7802ba48706f31ba608cf609e23e68
[ "Apache-2.0" ]
null
null
null
slender/tests/dictionary/test_contain.py
torokmark/slender
3bf815e22f7802ba48706f31ba608cf609e23e68
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase, skip from expects import * from slender import Dictionary
26.892857
62
0.636122
7e2cb45d24767d8a20fc314235185561540eae21
490
py
Python
Python/0263_ugly_number.py
codingyen/CodeAlone
b16653957258ac09f74bb1a380f29dd93e055a44
[ "MIT" ]
2
2018-08-20T04:38:06.000Z
2019-02-03T07:48:28.000Z
Python/0263_ugly_number.py
codingyen/CodeAlone
b16653957258ac09f74bb1a380f29dd93e055a44
[ "MIT" ]
null
null
null
Python/0263_ugly_number.py
codingyen/CodeAlone
b16653957258ac09f74bb1a380f29dd93e055a44
[ "MIT" ]
null
null
null
# Time: O(logn) = O(1) # Space: O(1) if __name__ == "__main__": num = 14 s = Solution() print(s.isUgly(num))
17.5
27
0.418367
7e2dc1431668b0a5582c7ad9343a0741d27a1ebf
386
py
Python
execute_sweep.py
kinoai/skyhacks2020
5615046d4ca6fbae0c9c37a43b27de57ecc95fe5
[ "MIT" ]
null
null
null
execute_sweep.py
kinoai/skyhacks2020
5615046d4ca6fbae0c9c37a43b27de57ecc95fe5
[ "MIT" ]
null
null
null
execute_sweep.py
kinoai/skyhacks2020
5615046d4ca6fbae0c9c37a43b27de57ecc95fe5
[ "MIT" ]
null
null
null
import wandb import main # Load project config config = main.load_config() # Initialize wandb wandb.init() # Replace project config hyperparameters with the ones loaded from wandb sweep server sweep_hparams = wandb.Config._as_dict(wandb.config) for key, value in sweep_hparams.items(): if key != "_wandb": ...
20.315789
85
0.738342
7e2e521370325b840ed1d98818e4306df758c1b7
1,720
py
Python
setup.py
paoloelena15/gutenberg
dd6da5c1d8768737d3403fd391101ad5a901400b
[ "Apache-2.0" ]
null
null
null
setup.py
paoloelena15/gutenberg
dd6da5c1d8768737d3403fd391101ad5a901400b
[ "Apache-2.0" ]
null
null
null
setup.py
paoloelena15/gutenberg
dd6da5c1d8768737d3403fd391101ad5a901400b
[ "Apache-2.0" ]
null
null
null
"""Library installer.""" from __future__ import absolute_import, unicode_literals from platform import system from sys import version_info import codecs from setuptools import find_packages from setuptools import setup install_requires = [ 'future>=0.15.2', 'rdflib>=4.2.0', 'requests>=2.5.1', 'six>=...
29.152542
70
0.634884
7e2f328c32199a0d821d457fa05c20e5d98cdc91
9,641
py
Python
deep_sdf_prior.py
nicolaihaeni/shapenet-pyrender
2d5054f33530257301193c506663e4dc4db8d85a
[ "Apache-2.0" ]
null
null
null
deep_sdf_prior.py
nicolaihaeni/shapenet-pyrender
2d5054f33530257301193c506663e4dc4db8d85a
[ "Apache-2.0" ]
null
null
null
deep_sdf_prior.py
nicolaihaeni/shapenet-pyrender
2d5054f33530257301193c506663e4dc4db8d85a
[ "Apache-2.0" ]
null
null
null
# Top of main python script import os os.environ["PYOPENGL_PLATFORM"] = "egl" import sys import random import argparse import numpy as np import trimesh import imageio import open3d as o3d from mathutils import Matrix import h5py import json from mesh_to_sdf import get_surface_point_cloud import pyrender import uti...
28.523669
88
0.563842
7e2fade8c98465a167e99e3c11e9a3c85426d6ee
2,913
py
Python
wiki-preparation/dump_topn.py
bertrandlalo/piaf-code
2c879590fca92d85bb6a51e13c9603dd2f7c573f
[ "MIT" ]
8
2020-02-07T15:28:15.000Z
2021-03-25T22:58:21.000Z
wiki-preparation/dump_topn.py
etalab-ia/piaf-code
86948a73b26498948e70ad92e4b9b0231eac81f7
[ "MIT" ]
null
null
null
wiki-preparation/dump_topn.py
etalab-ia/piaf-code
86948a73b26498948e70ad92e4b9b0231eac81f7
[ "MIT" ]
null
null
null
import struct import pickle import sys if __name__ == "__main__": if len(sys.argv) < 3: print( "Usage: \n dump_topn.py top_N input_path_wikipedia-pageranks.raw" " input_path_wikipedia-pagerank-id-title.raw" " output_path_wikipedia-pagerank-title.txt") exit(1) ...
29.13
100
0.61174
7e30930c06c92e07eeb6ff1012f99ba08b74bc72
213
py
Python
dzdp-server/app/source/job_creator.py
Onekki/dzdp
a4625b8ef998ed09845442837b8a7b6369011f5d
[ "MIT" ]
null
null
null
dzdp-server/app/source/job_creator.py
Onekki/dzdp
a4625b8ef998ed09845442837b8a7b6369011f5d
[ "MIT" ]
null
null
null
dzdp-server/app/source/job_creator.py
Onekki/dzdp
a4625b8ef998ed09845442837b8a7b6369011f5d
[ "MIT" ]
null
null
null
from fetcher.source.fetcher import Fetcher from fetcher.source.managers.notification import FetcherException
23.666667
65
0.769953
7e357df698ecec1e1881a2b4bd0ec295d7103a9f
1,102
py
Python
users/forms.py
shyam999/Django-blog
8f59987f362be0edca4e1542f820eb0d82c7bf2c
[ "MIT" ]
13
2020-04-16T14:34:07.000Z
2021-06-22T04:27:02.000Z
users/forms.py
alexhan-sys/Django-blog
563d1975d85b2c288d6d58b5af8d54f9ab16541e
[ "MIT" ]
4
2021-03-30T13:00:21.000Z
2022-01-13T02:30:26.000Z
users/forms.py
alexhan-sys/Django-blog
563d1975d85b2c288d6d58b5af8d54f9ab16541e
[ "MIT" ]
5
2020-04-09T18:01:45.000Z
2021-09-06T12:47:17.000Z
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from .models import UserProfile
28.25641
120
0.627949
7e35b708c6a565669ac9a9afca16f8645635f9cc
3,437
py
Python
StatementExample/urls.py
linkhub-sdk/popbill.example.django
85ea168fd1497b690652c3f8c46b560ed7a0e1b1
[ "MIT" ]
null
null
null
StatementExample/urls.py
linkhub-sdk/popbill.example.django
85ea168fd1497b690652c3f8c46b560ed7a0e1b1
[ "MIT" ]
5
2020-02-11T23:43:56.000Z
2022-03-18T08:13:13.000Z
StatementExample/urls.py
linkhub-sdk/popbill.example.django
85ea168fd1497b690652c3f8c46b560ed7a0e1b1
[ "MIT" ]
1
2018-03-29T09:20:06.000Z
2018-03-29T09:20:06.000Z
# -*- coding: utf-8 -*- from django.conf.urls import url from . import views urlpatterns = [ # Index Page url(r'^$', views.index, name='index'), # url(r'^CheckMgtKeyInUse$', views.checkMgtKeyInUse, name='CheckMgtKeyInUse'), url(r'^RegistIssue$', views.registIssue, name='RegistIssue'), url(r...
48.408451
83
0.683445
7e35ba512bdc355a15686da4ebde9ef6630fcc86
564
py
Python
setup.py
enricobacis/timeme
6c906bf40daa547a8a11f034bd00b30f74519a72
[ "MIT" ]
1
2017-02-16T07:59:22.000Z
2017-02-16T07:59:22.000Z
setup.py
enricobacis/timeme
6c906bf40daa547a8a11f034bd00b30f74519a72
[ "MIT" ]
null
null
null
setup.py
enricobacis/timeme
6c906bf40daa547a8a11f034bd00b30f74519a72
[ "MIT" ]
null
null
null
from setuptools import setup with open('README.rst') as README: long_description = README.read() long_description = long_description[long_description.index('Description'):] setup(name='timeme', version='0.1.1', description='Decorator that prints the running time of a function', long_descript...
31.333333
79
0.695035
7e36100f24d4559426fcc2bf85da8105f8f8b446
7,385
py
Python
tests/interface/test_cli.py
annakasprzik/qualle
871f7fbce3d6d3da07fe7197cf21a5a68720645d
[ "Apache-2.0" ]
null
null
null
tests/interface/test_cli.py
annakasprzik/qualle
871f7fbce3d6d3da07fe7197cf21a5a68720645d
[ "Apache-2.0" ]
null
null
null
tests/interface/test_cli.py
annakasprzik/qualle
871f7fbce3d6d3da07fe7197cf21a5a68720645d
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 ZBW Leibniz Information Centre for Economics # # 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...
33.568182
78
0.728097
7e36ca55713be33821350bb8d4032d7301720cee
12,743
py
Python
lale/lib/lale/smac.py
ksrinivs64/lale
e0ffc357c3711940078718717aebc5b06c9dc4ae
[ "Apache-2.0" ]
null
null
null
lale/lib/lale/smac.py
ksrinivs64/lale
e0ffc357c3711940078718717aebc5b06c9dc4ae
[ "Apache-2.0" ]
null
null
null
lale/lib/lale/smac.py
ksrinivs64/lale
e0ffc357c3711940078718717aebc5b06c9dc4ae
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 IBM Corporation # # 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, ...
34.627717
137
0.556541
7e3819a044cb8584161c27f50d05ce5285d87d92
84
py
Python
org.beerware.empty.app/assets/axp.py
pmp-p/projects
e958ef2c6d89d0d818086d4c88668d46044ace14
[ "MIT" ]
null
null
null
org.beerware.empty.app/assets/axp.py
pmp-p/projects
e958ef2c6d89d0d818086d4c88668d46044ace14
[ "MIT" ]
3
2020-11-01T18:54:24.000Z
2020-11-15T03:59:34.000Z
org.beerware.empty.app/assets/axp.py
pmp-p/projects
e958ef2c6d89d0d818086d4c88668d46044ace14
[ "MIT" ]
null
null
null
from android import * print(widget.Button) from android.widget import TextView
9.333333
35
0.77381
7e383cf10dafc058011f30ba8f5f288676b64fb4
777
py
Python
app/routes/student/subjects.py
roshnet/Electron-Server
f21ced024d69d7d96e89a2aa90c80f3d6757b3e1
[ "MIT" ]
null
null
null
app/routes/student/subjects.py
roshnet/Electron-Server
f21ced024d69d7d96e89a2aa90c80f3d6757b3e1
[ "MIT" ]
5
2021-10-30T06:04:47.000Z
2021-11-14T21:09:00.000Z
app/routes/student/subjects.py
roshnet/Electron-Server
f21ced024d69d7d96e89a2aa90c80f3d6757b3e1
[ "MIT" ]
1
2022-02-28T15:24:58.000Z
2022-02-28T15:24:58.000Z
from app import app from app.database import db from app.database.models.student_subject_map import StudentSubjectMap from app.database.models.subjects import Subjects from fastapi import Depends, Response, status from fastapi_jwt_auth import AuthJWT
31.08
86
0.728443
7e385eaec934a61b23372d87a81690aa42330d15
3,425
py
Python
examples/runner/parallel/pipedream.py
nox-410/Hetu
aa5065ac40a1225f26fe42c92b5077da77e16745
[ "Apache-2.0" ]
null
null
null
examples/runner/parallel/pipedream.py
nox-410/Hetu
aa5065ac40a1225f26fe42c92b5077da77e16745
[ "Apache-2.0" ]
null
null
null
examples/runner/parallel/pipedream.py
nox-410/Hetu
aa5065ac40a1225f26fe42c92b5077da77e16745
[ "Apache-2.0" ]
null
null
null
import hetu as ht import os import sys import time import argparse import numpy as np if __name__ == "__main__": # argument parser parser = argparse.ArgumentParser() parser.add_argument('--epochs', type=int, default=5, help='training epochs') parser.add_argument('--warmup', type=int, default=2, help='...
35.677083
101
0.634453
7e38b53b5f4c4aae5647971334f2234e632edaa5
1,069
py
Python
chapter100/mongodb_04.py
thiagola92/learning-databases-with-python
cf23c34d7fd1ecd36dd3e7b30dc5916eb23eaf1e
[ "MIT" ]
null
null
null
chapter100/mongodb_04.py
thiagola92/learning-databases-with-python
cf23c34d7fd1ecd36dd3e7b30dc5916eb23eaf1e
[ "MIT" ]
null
null
null
chapter100/mongodb_04.py
thiagola92/learning-databases-with-python
cf23c34d7fd1ecd36dd3e7b30dc5916eb23eaf1e
[ "MIT" ]
null
null
null
import time from pymongo import MongoClient from datetime import datetime from threading import Thread, Lock start = datetime.now() client = MongoClient("mongodb://username:password@127.0.0.1") database = client["database_name"] collection = database["collection_name"] threads_count = 0 lock = Lock() package = [] ...
20.169811
72
0.656688
7e3921c5fde4463df2c8911c8615d3a22260d5d9
1,071
py
Python
Arrays/trapping_rain_water.py
lakshyarawal/pythonPractice
4b400342198a8270c5ac0c6306afb555f927c6c1
[ "MIT" ]
null
null
null
Arrays/trapping_rain_water.py
lakshyarawal/pythonPractice
4b400342198a8270c5ac0c6306afb555f927c6c1
[ "MIT" ]
null
null
null
Arrays/trapping_rain_water.py
lakshyarawal/pythonPractice
4b400342198a8270c5ac0c6306afb555f927c6c1
[ "MIT" ]
null
null
null
""" Trapping rain water: Given an array of non negative integers, they are height of bars. Find how much water can you collect between there bars """ """Solution: """ # Using the special variable # __name__ if __name__ == "__main__": main()
21.857143
90
0.513539
7e3aaf1e8600f0c4dc3c6c5d88b0c978d139ca07
3,272
py
Python
billing/models/pin_models.py
litchfield/merchant
e4fba8a88a326bbde39c26e937c17d5283817320
[ "BSD-3-Clause" ]
null
null
null
billing/models/pin_models.py
litchfield/merchant
e4fba8a88a326bbde39c26e937c17d5283817320
[ "BSD-3-Clause" ]
null
null
null
billing/models/pin_models.py
litchfield/merchant
e4fba8a88a326bbde39c26e937c17d5283817320
[ "BSD-3-Clause" ]
null
null
null
from django.db import models try: from django.contrib.auth import get_user_model except ImportError: # django < 1.5 from django.contrib.auth.models import User else: User = get_user_model()
39.421687
110
0.731357
7e3abcb443f673a56a0690f3906b8e71393e203a
7,530
py
Python
4 - Late Fusion Networks/Perf_Hard_and_Soft_Voting_Prep.py
pcasabianca/Acoustic-UAV-Identification
3ff08ff4163b42f244ba2ffa00a2c20bc3221382
[ "MIT" ]
1
2021-07-18T12:48:47.000Z
2021-07-18T12:48:47.000Z
4 - Late Fusion Networks/Perf_Hard_and_Soft_Voting_Prep.py
pcasabianca/Acoustic-UAV-Identification
3ff08ff4163b42f244ba2ffa00a2c20bc3221382
[ "MIT" ]
null
null
null
4 - Late Fusion Networks/Perf_Hard_and_Soft_Voting_Prep.py
pcasabianca/Acoustic-UAV-Identification
3ff08ff4163b42f244ba2ffa00a2c20bc3221382
[ "MIT" ]
null
null
null
import os import json import librosa import tensorflow as tf import numpy as np from termcolor import colored # Read and save parameters. DATASET_PATH = "Unseen Testing" # Path of testing dataset. SAMPLE_RATE = 22050 DURATION = 1 # Measured in seconds (change depending on length of one audio file). SAMPLE...
35.518868
120
0.605578
7e3b10150f30d30b54781201a09f35f781054e7c
2,963
py
Python
contact_test.py
Njihia413/contact-list
bf555aa3657db1f90274dfe768b649007d725285
[ "Unlicense" ]
null
null
null
contact_test.py
Njihia413/contact-list
bf555aa3657db1f90274dfe768b649007d725285
[ "Unlicense" ]
null
null
null
contact_test.py
Njihia413/contact-list
bf555aa3657db1f90274dfe768b649007d725285
[ "Unlicense" ]
null
null
null
import unittest #Importing the unittest module from contact import Contact #Importing the contact class #import pyperclip #Pyperclip will allow us to copy and paste items to our clipboard if __name__ == '__main__': unittest.main()
42.942029
89
0.710429
7e3d308df34767b7c5b7bbfbef6d03d373ce1d9f
319
py
Python
back_end/celery_tasks/main.py
22014471/malonghui_Django
c9c2a68882450f9327e141333f30fdd73e530c28
[ "MIT" ]
1
2021-01-31T16:57:35.000Z
2021-01-31T16:57:35.000Z
back_end/celery_tasks/main.py
22014471/malonghui_Django
c9c2a68882450f9327e141333f30fdd73e530c28
[ "MIT" ]
null
null
null
back_end/celery_tasks/main.py
22014471/malonghui_Django
c9c2a68882450f9327e141333f30fdd73e530c28
[ "MIT" ]
null
null
null
from celery import Celery import os # celerydjango if not os.getenv('DJANGO_SETTINGS_MODULE'): os.environ['DJANGO_SETTINGS_MODULE'] = 'mlh.settings.dev' # meiduo,broker celery_app = Celery('mlh',broker='redis://127.0.0.1:6379/15') # celery_app.autodiscover_tasks(['celery_tasks.sms',])
22.785714
61
0.758621
7e3f28a79344a9233183603246e2d32fc400d428
141
py
Python
holobot/extensions/crypto/__init__.py
rexor12/holobot
89b7b416403d13ccfeee117ef942426b08d3651d
[ "MIT" ]
1
2021-05-24T00:17:46.000Z
2021-05-24T00:17:46.000Z
holobot/extensions/crypto/__init__.py
rexor12/holobot
89b7b416403d13ccfeee117ef942426b08d3651d
[ "MIT" ]
41
2021-03-24T22:50:09.000Z
2021-12-17T12:15:13.000Z
holobot/extensions/crypto/__init__.py
rexor12/holobot
89b7b416403d13ccfeee117ef942426b08d3651d
[ "MIT" ]
null
null
null
from .alert_manager_interface import AlertManagerInterface from .alert_manager import AlertManager from .crypto_updater import CryptoUpdater
35.25
58
0.893617
7e3f3d1673e07847a0ccc4fa36154b7d2891f18d
676
py
Python
tests/unittest/parser/test_basic_parser.py
alessandrome/pywiktionary
b9378ca1e2dfe704eaa8a044bd82519b12f81226
[ "MIT" ]
4
2019-08-08T21:15:01.000Z
2021-01-14T01:32:18.000Z
tests/unittest/parser/test_basic_parser.py
alessandrome/pywiktionary
b9378ca1e2dfe704eaa8a044bd82519b12f81226
[ "MIT" ]
1
2021-09-02T17:24:12.000Z
2021-09-02T17:24:12.000Z
tests/unittest/parser/test_basic_parser.py
alessandrome/pywiktionary
b9378ca1e2dfe704eaa8a044bd82519b12f81226
[ "MIT" ]
1
2020-03-19T12:57:45.000Z
2020-03-19T12:57:45.000Z
import unittest from pywiktionary.parsers import basic_parser if __name__ == '__main__': unittest.main()
29.391304
99
0.739645
7e3f43b78bda7deaae5c966af639b6568ca237b5
1,347
py
Python
snuggle/web/processing/events.py
halfak/snuggle
384818aaf8a783013b076ada3c74226f10e5dc18
[ "MIT" ]
2
2021-04-26T20:34:25.000Z
2021-11-12T11:26:57.000Z
snuggle/web/processing/events.py
halfak/snuggle
384818aaf8a783013b076ada3c74226f10e5dc18
[ "MIT" ]
null
null
null
snuggle/web/processing/events.py
halfak/snuggle
384818aaf8a783013b076ada3c74226f10e5dc18
[ "MIT" ]
null
null
null
import logging, traceback, time from bottle import request from snuggle import configuration from snuggle import mediawiki from snuggle import errors from snuggle.data import types from snuggle.web.util import responses, user_data logger = logging.getLogger("snuggle.web.processing.users")
22.830508
83
0.690423
7e42bb796b8472a4cdf33d6dcb36d814d4383042
9,089
py
Python
S2.Surface_Normal/regNormalNet/regNormalNet.py
leoshine/Spherical_Regression
d19bc2f6f52982d4d58f5ddabe4231381d7facd7
[ "BSD-2-Clause-FreeBSD" ]
133
2019-04-12T20:52:08.000Z
2021-12-09T06:34:39.000Z
S2.Surface_Normal/regNormalNet/regNormalNet.py
QUVA-Lab/Spherical_Regression
6a3b2a19d00f27f2417cb9f2fe21df5963def5b3
[ "BSD-2-Clause-FreeBSD" ]
11
2019-06-21T04:07:04.000Z
2022-03-03T07:48:41.000Z
S2.Surface_Normal/regNormalNet/regNormalNet.py
QUVA-Lab/Spherical_Regression
6a3b2a19d00f27f2417cb9f2fe21df5963def5b3
[ "BSD-2-Clause-FreeBSD" ]
16
2019-04-18T15:55:48.000Z
2021-12-14T09:01:57.000Z
# coding: utf8 """ @Author : Shuai Liao """ import os import torch.nn as nn import torch.utils.model_zoo as model_zoo from torch.autograd import Variable import torch from basic.common import rdict import numpy as np from easydict import EasyDict as edict from collections import OrderedDict as odict from i...
40.941441
154
0.577071
7e4370188b6c792aa03cbe5832ef7f5025340731
2,317
py
Python
oscar_support/forms/widgets.py
snowball-one/django-oscar-support
57d82200f0905e17df683652327e9102b7b34129
[ "BSD-3-Clause" ]
14
2015-01-10T05:06:33.000Z
2021-02-08T03:37:32.000Z
oscar_support/forms/widgets.py
snowball-one/django-oscar-support
57d82200f0905e17df683652327e9102b7b34129
[ "BSD-3-Clause" ]
2
2017-08-25T20:14:41.000Z
2019-02-25T22:08:09.000Z
oscar_support/forms/widgets.py
snowball-one/django-oscar-support
57d82200f0905e17df683652327e9102b7b34129
[ "BSD-3-Clause" ]
8
2015-07-29T21:39:06.000Z
2018-12-06T04:14:56.000Z
from django.forms.util import flatatt from django.template import loader, Context from django.utils.encoding import force_unicode from django.utils.html import conditional_escape from django.template.loader import render_to_string from django.forms.widgets import Widget, RadioInput, RadioFieldRenderer AutoCompleteWid...
33.1
76
0.617609
7e437dbe2c2eaddadfb12c0e71bcb7d0e968c5b2
136
py
Python
projectname/tests/__init__.py
Casokaks/light-python-template
1298b0283c6a7b3f2cfffabd278848f4fb8e21fa
[ "MIT" ]
null
null
null
projectname/tests/__init__.py
Casokaks/light-python-template
1298b0283c6a7b3f2cfffabd278848f4fb8e21fa
[ "MIT" ]
null
null
null
projectname/tests/__init__.py
Casokaks/light-python-template
1298b0283c6a7b3f2cfffabd278848f4fb8e21fa
[ "MIT" ]
null
null
null
""" Test init module ================================== Author: Casokaks (https://github.com/Casokaks/) Created on: Aug 15th 2021 """
15.111111
47
0.514706
7e441d62eef151acf29604bef9891de9f98dfcc8
26,980
py
Python
presenterserver/facial_recognition/src/facial_recognition_server.py
niuiic/face_recognition
03d4aabb0ee72b3dee3d8798d344262460e71208
[ "Apache-2.0" ]
1
2021-12-16T02:03:40.000Z
2021-12-16T02:03:40.000Z
presenterserver/facial_recognition/src/facial_recognition_server.py
niuiic/face_recognition
03d4aabb0ee72b3dee3d8798d344262460e71208
[ "Apache-2.0" ]
null
null
null
presenterserver/facial_recognition/src/facial_recognition_server.py
niuiic/face_recognition
03d4aabb0ee72b3dee3d8798d344262460e71208
[ "Apache-2.0" ]
null
null
null
# ======================================================================= # # Copyright (C) 2018, Hisilicon Technologies Co., Ltd. All Rights Reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1 Redistrib...
36.80764
97
0.607932
7e44cb761dc01281c2078c72315a08116eff6a63
3,650
py
Python
e_vae_proj/qualitative/gen_jobs.py
kuangdai/disentangling-vae
9a5f9da44a82a2c643b7289c4945320621b86247
[ "MIT" ]
1
2021-06-30T08:58:49.000Z
2021-06-30T08:58:49.000Z
e_vae_proj/qualitative/gen_jobs.py
kuangdai/disentangling-vae
9a5f9da44a82a2c643b7289c4945320621b86247
[ "MIT" ]
null
null
null
e_vae_proj/qualitative/gen_jobs.py
kuangdai/disentangling-vae
9a5f9da44a82a2c643b7289c4945320621b86247
[ "MIT" ]
null
null
null
import numpy as np from pathlib import Path import sys, os if __name__ == "__main__": """ Jobs: 1) VAE (VAE loss) for data=[dsprites, celeba, chairs] 2) VAE (beta-TC loss with alpha=beta=gamma=1) for data=[dsprites, celeba, chairs] 3) beta-TCVAE for alpha=gamma=[0.5, 1, 2], for beta=[3,6],...
42.44186
133
0.549041
7e46b7c1bdfe713325687e0706d7633667a0c0ae
5,818
py
Python
iktomi/forms/widgets.py
boltnev/iktomi
bc92006c026f9b42e56f1af5ced2fe577673a486
[ "MIT" ]
14
2015-02-15T05:24:22.000Z
2020-03-19T10:07:28.000Z
iktomi/forms/widgets.py
boltnev/iktomi
bc92006c026f9b42e56f1af5ced2fe577673a486
[ "MIT" ]
10
2015-04-04T10:10:41.000Z
2016-06-01T13:17:58.000Z
iktomi/forms/widgets.py
boltnev/iktomi
bc92006c026f9b42e56f1af5ced2fe577673a486
[ "MIT" ]
5
2015-02-20T11:18:58.000Z
2016-10-18T15:30:13.000Z
# -*- coding: utf-8 -*- from ..utils import weakproxy from . import convs def render(self): ''' Renders widget to template ''' data = self.prepare_data() if self.field.readable: return self.env.template.render(self.template, **data) return '' def _...
26.688073
86
0.611894
7e4795cb214be38d91b14447a6cab578ba864108
1,198
py
Python
Codes/python/py1/exs (4)/ex10.py
Gaazedo/portfolio
4b09b6fffc6947375a20fee1c5523a12cbcbe970
[ "MIT" ]
null
null
null
Codes/python/py1/exs (4)/ex10.py
Gaazedo/portfolio
4b09b6fffc6947375a20fee1c5523a12cbcbe970
[ "MIT" ]
null
null
null
Codes/python/py1/exs (4)/ex10.py
Gaazedo/portfolio
4b09b6fffc6947375a20fee1c5523a12cbcbe970
[ "MIT" ]
null
null
null
from ex3 import cont, intersec from ex4 import iguais from ex5 import iguais1 from ex6 import conta, lervetor from ex7 import achar, ler_vetorx from utility import ler_vetor menuprinc()
21.017544
90
0.590985
7e47a45aa4626c8612e5e79d872162e8912b39d8
293
py
Python
warehouse.py
Arthraim/warehouse
3905635217f679eb9c3ace00b016668588f6bb98
[ "MIT" ]
1
2015-01-14T08:06:07.000Z
2015-01-14T08:06:07.000Z
warehouse.py
Arthraim/warehouse
3905635217f679eb9c3ace00b016668588f6bb98
[ "MIT" ]
null
null
null
warehouse.py
Arthraim/warehouse
3905635217f679eb9c3ace00b016668588f6bb98
[ "MIT" ]
null
null
null
__author__ = 'arthur' from PyQt5.QtCore import * from models import *
22.538462
73
0.682594
7e48637038313d81e9c4efaa9dd4ea2b3a9e9145
391
py
Python
yadil/image/face_model.py
neolaw84/yadil
9f56a1beec5359e0233ae342f01263b29f752bc7
[ "Apache-2.0" ]
null
null
null
yadil/image/face_model.py
neolaw84/yadil
9f56a1beec5359e0233ae342f01263b29f752bc7
[ "Apache-2.0" ]
null
null
null
yadil/image/face_model.py
neolaw84/yadil
9f56a1beec5359e0233ae342f01263b29f752bc7
[ "Apache-2.0" ]
null
null
null
# downloaded from https://raw.githubusercontent.com/TadasBaltrusaitis/OpenFace/master/lib/local/LandmarkDetector/model/pdms/In-the-wild_aligned_PDM_68.txt import pickle import pathlib THIS_FILE_PATH = pathlib.Path(__file__) MODEL_FILE_PATH = pathlib.Path.joinpath(THIS_FILE_PATH.parent, "face_model.bin") with...
35.545455
155
0.790281
7e4a01f31bce92467bfbd67774fb60815a83be86
567
py
Python
Backend/scripts/average_block_rate.py
zarif007/Block-Chain-Web-App
40bd4d8d8ce1f6de2840792290bf022d7dfacbb4
[ "MIT" ]
1
2020-12-30T09:30:23.000Z
2020-12-30T09:30:23.000Z
Backend/scripts/average_block_rate.py
zarif007/Block-Chain-Web-App
40bd4d8d8ce1f6de2840792290bf022d7dfacbb4
[ "MIT" ]
null
null
null
Backend/scripts/average_block_rate.py
zarif007/Block-Chain-Web-App
40bd4d8d8ce1f6de2840792290bf022d7dfacbb4
[ "MIT" ]
null
null
null
import time from backend.blockchain.Blockchain import Blockchain from backend.config import SECONDS blockchain = Blockchain() times = [] for i in range(1000): start_time = time.time_ns() blockchain.add_block(i) end_time = time.time_ns() time_to_mine = (end_time - start_time) / SECONDS times.app...
24.652174
70
0.708995
7e4b1888606ceb34b0d7457d5881f8e99340c1b5
12,193
py
Python
python/tdapi/td_oauth.py
chaelim/ExcelRTD
2a8e5860d1f3f091261f08d49bc1f426038a9aa7
[ "MIT" ]
5
2020-07-18T20:39:06.000Z
2021-12-29T13:15:18.000Z
python/tdapi/td_oauth.py
chaelim/ExcelRTD
2a8e5860d1f3f091261f08d49bc1f426038a9aa7
[ "MIT" ]
2
2020-08-01T07:31:41.000Z
2020-08-05T01:38:29.000Z
python/tdapi/td_oauth.py
chaelim/ExcelRTD
2a8e5860d1f3f091261f08d49bc1f426038a9aa7
[ "MIT" ]
3
2020-09-08T17:28:31.000Z
2021-09-29T20:42:13.000Z
from requests_oauthlib import OAuth2Session from flask import Flask, request, redirect, session, url_for from flask.json import jsonify import logging import datetime import json import os import pickle import requests import time import win32crypt from typing import Dict from typing import List if __package__: f...
32.342175
132
0.686623
7e4b3dfe702da16b414ccbfbae1fff18ac2129ef
5,083
py
Python
visitpy/visit_utils/tests/test_qannote_basic.py
ahota/visit_ospray
d80b2e18ff5654d04bfb56ae4d6f42e45f87c9b9
[ "BSD-3-Clause" ]
null
null
null
visitpy/visit_utils/tests/test_qannote_basic.py
ahota/visit_ospray
d80b2e18ff5654d04bfb56ae4d6f42e45f87c9b9
[ "BSD-3-Clause" ]
null
null
null
visitpy/visit_utils/tests/test_qannote_basic.py
ahota/visit_ospray
d80b2e18ff5654d04bfb56ae4d6f42e45f87c9b9
[ "BSD-3-Clause" ]
null
null
null
#***************************************************************************** # # Copyright (c) 2000 - 2014, Lawrence Livermore National Security, LLC # Produced at the Lawrence Livermore National Laboratory # LLNL-CODE-442911 # All rights reserved. # # This file is part of VisIt. For details, see https://visit.llnl...
40.664
122
0.587842
7e4b68c4767ac112003a850f22261b677c1669da
6,961
py
Python
searchengine.py
ayser259/searchengine
c8cd07eb90dae876fc738e7ebc3609daa0ee9ef7
[ "MIT" ]
null
null
null
searchengine.py
ayser259/searchengine
c8cd07eb90dae876fc738e7ebc3609daa0ee9ef7
[ "MIT" ]
null
null
null
searchengine.py
ayser259/searchengine
c8cd07eb90dae876fc738e7ebc3609daa0ee9ef7
[ "MIT" ]
null
null
null
# This program runs the search engine program import ast,sys,os,json, time, re,math from objects import * import lexicon_engine as lexicon_engine from snippet_engine import * print("Loading Search Engine...") try: c = time.time() directory = "/Users/ayser/Dropbox/Waterloo/3A/Courses/Course_Projects/msci_541/l...
41.933735
203
0.679931
7e4d650deef322e53bf8afec40c9a2d1620153ca
4,049
py
Python
dedup_parellel.py
darrenkoh/File-Dedupe
014eb42dd36426da641aa62376425a12ddd6e2fc
[ "MIT" ]
null
null
null
dedup_parellel.py
darrenkoh/File-Dedupe
014eb42dd36426da641aa62376425a12ddd6e2fc
[ "MIT" ]
null
null
null
dedup_parellel.py
darrenkoh/File-Dedupe
014eb42dd36426da641aa62376425a12ddd6e2fc
[ "MIT" ]
null
null
null
# Given a folder, scan all files and group file with same content import sys import os import shutil import hashlib import time from collections import defaultdict import multiprocessing from functools import partial import time if __name__ == '__main__': dics = defaultdict(list) multiprocessing.managers.Dic...
37.490741
146
0.566313
7e4d7f3b009cccdbe2d7489cc9b3f8c5c3da1723
10,226
py
Python
snorkel/learning/structure/synthetic.py
Conengmo/snorkel
36868e8a84de19b94e1c4b8eceaa64969a61a46b
[ "Apache-2.0" ]
30
2019-08-22T19:27:59.000Z
2022-03-13T22:03:15.000Z
snorkel/learning/structure/synthetic.py
Conengmo/snorkel
36868e8a84de19b94e1c4b8eceaa64969a61a46b
[ "Apache-2.0" ]
2
2019-08-22T16:51:58.000Z
2022-03-21T02:59:18.000Z
snorkel/learning/structure/synthetic.py
Conengmo/snorkel
36868e8a84de19b94e1c4b8eceaa64969a61a46b
[ "Apache-2.0" ]
31
2019-08-22T19:28:08.000Z
2022-03-23T12:50:49.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from builtins import * from numbskull import NumbSkull from numbskull.inference import FACTORS from numbskull.numbskulltypes import Weight, Variable, Factor, FactorToVar ...
36.784173
153
0.544886
7e4e90eca537aa89aa63261527c4a76d2ff939ec
93
py
Python
onaws/__init__.py
bbhunter/onaws
ac5a5b7db3765258bb57cb6808f3ed04941434d2
[ "MIT" ]
1
2021-07-07T22:07:11.000Z
2021-07-07T22:07:11.000Z
onaws/__init__.py
bbhunter/onaws
ac5a5b7db3765258bb57cb6808f3ed04941434d2
[ "MIT" ]
null
null
null
onaws/__init__.py
bbhunter/onaws
ac5a5b7db3765258bb57cb6808f3ed04941434d2
[ "MIT" ]
null
null
null
'''Simple library to check if a hostname belongs to AWS IP space.''' __version__ = '0.0.12'
23.25
68
0.698925
7e501995f92826d6c8f5de74e9e473e96ac09f37
1,352
py
Python
tests/interactive/nb-test.py
andrey-puzyr/docker-dotnet-spark
f520af3feb25f7721d8547ff1f73a074b3043944
[ "Apache-2.0" ]
18
2020-05-26T22:54:59.000Z
2022-02-25T18:34:54.000Z
tests/interactive/nb-test.py
andrey-puzyr/docker-dotnet-spark
f520af3feb25f7721d8547ff1f73a074b3043944
[ "Apache-2.0" ]
5
2020-05-27T15:00:10.000Z
2021-05-28T19:47:35.000Z
tests/interactive/nb-test.py
indy-3rdman/docker-dotnet-spark
ccc5d8ed57e27895d972ee179a6f0e83a57e48f3
[ "Apache-2.0" ]
6
2020-05-26T22:40:07.000Z
2022-03-15T10:09:16.000Z
import sys import argparse import re import subprocess import nbformat from pathlib import Path from nbconvert.preprocessors import ExecutePreprocessor from nbconvert.preprocessors import CellExecutionError parser = argparse.ArgumentParser() parser.add_argument("path", help="the path to the notebook (.ipynb) file") ar...
32.97561
111
0.739645
7e509dea3ed6c92f5ab9b5e7fe011afa000287ec
10,261
py
Python
scripts/ersst_everything.py
khandokershanto/climate_data_analysis_with_python
214b96c42732704880b8714be1c6ab60348c1adf
[ "MIT" ]
null
null
null
scripts/ersst_everything.py
khandokershanto/climate_data_analysis_with_python
214b96c42732704880b8714be1c6ab60348c1adf
[ "MIT" ]
null
null
null
scripts/ersst_everything.py
khandokershanto/climate_data_analysis_with_python
214b96c42732704880b8714be1c6ab60348c1adf
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import xarray as xr import matplotlib.pyplot as plt import geocat.viz.util as gvutil path = r'H:\Python project 2021\climate_data_analysis_with_python\data\sst.mnmean.nc' ds= xr.open_dataset(path) # time slicing sst = ds.sst.sel(time=slice('1920-01-01','2020-12-01')) # anomaly wi...
38.720755
101
0.577527
7e521ccb06bf6f928662759cda6d62177d24e646
9,335
py
Python
scripts/Model Training.py
Nickroll/League-Feature-Importance
884634aafc480b0a07b31a0fbfc56d7b6aabcdff
[ "MIT" ]
null
null
null
scripts/Model Training.py
Nickroll/League-Feature-Importance
884634aafc480b0a07b31a0fbfc56d7b6aabcdff
[ "MIT" ]
null
null
null
scripts/Model Training.py
Nickroll/League-Feature-Importance
884634aafc480b0a07b31a0fbfc56d7b6aabcdff
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from sklearn.ensemble import RandomForestClassifier, AdaBoostClassifier from sklearn.ensemble import BaggingClassifier, ExtraTreesClassifier from sklearn.ensemble import GradientBoostingClassifier, VotingClassifier from sklearn.tree import DecisionTreeClassifier from sklearn.grid_...
39.555085
83
0.653455
7e5256469f13e0289fc5b810bd0173539ecf3b59
9,650
py
Python
src/SimulationControl/SpheralConservation.py
jmikeowen/Spheral
3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
22
2018-07-31T21:38:22.000Z
2020-06-29T08:58:33.000Z
src/SimulationControl/SpheralConservation.py
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
41
2020-09-28T23:14:27.000Z
2022-03-28T17:01:33.000Z
src/SimulationControl/SpheralConservation.py
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
7
2019-12-01T07:00:06.000Z
2020-09-15T21:12:39.000Z
# SpheralConservation import mpi from SpheralCompiledPackages import * #------------------------------------------------------------------------------- # Conservation #-------------------------------------------------------------------------------
44.266055
102
0.450466
7e543a1539edd2bc645863389913b22de09fceee
722
py
Python
ro_py/economy.py
jmkd3v/ro.py
7c50267ccc1eed333e73c5cfb0740aec00a62989
[ "MIT" ]
null
null
null
ro_py/economy.py
jmkd3v/ro.py
7c50267ccc1eed333e73c5cfb0740aec00a62989
[ "MIT" ]
null
null
null
ro_py/economy.py
jmkd3v/ro.py
7c50267ccc1eed333e73c5cfb0740aec00a62989
[ "MIT" ]
null
null
null
""" This file houses functions and classes that pertain to the Roblox economy endpoints. """ from ro_py.utilities.url import url endpoint = url("economy")
24.896552
84
0.686981
7e550a8084b1674ea1aeeea565a6759f3741fb88
1,557
py
Python
ask/qa/forms.py
kzn-bulat-s/abracadabra
25d582a3d6fc6587772776479ef2f1d284fbe0e9
[ "Unlicense" ]
null
null
null
ask/qa/forms.py
kzn-bulat-s/abracadabra
25d582a3d6fc6587772776479ef2f1d284fbe0e9
[ "Unlicense" ]
null
null
null
ask/qa/forms.py
kzn-bulat-s/abracadabra
25d582a3d6fc6587772776479ef2f1d284fbe0e9
[ "Unlicense" ]
null
null
null
from django import forms from django.contrib.auth.models import User from models import Question, Answer
27.803571
67
0.594091
7e555fdeeb4c2079106c242cdd66f9f9ada341c5
7,720
py
Python
tests/pow_tests.py
pythononwheels/coronadash
876258d00f5b8bcccd4746713a15b3de54534fcf
[ "MIT" ]
null
null
null
tests/pow_tests.py
pythononwheels/coronadash
876258d00f5b8bcccd4746713a15b3de54534fcf
[ "MIT" ]
null
null
null
tests/pow_tests.py
pythononwheels/coronadash
876258d00f5b8bcccd4746713a15b3de54534fcf
[ "MIT" ]
null
null
null
# # Pow Default Tests # # # runtest script. # runs test with respect to some paramters # currently only os import sys import pytest # possible sys.platform results: # http://stackoverflow.com/questions/446209/possible-values-from-sys-platform MODELNAME = "pow_test_model" if __name__ == "__main__": print(...
34.159292
133
0.613731
7e557776390bf717690c0ffe3d5af9bb9e5270df
282
py
Python
codility/python/fib.py
guvkon/aoc-2021
15c8d387f5bf218790d461d32dd948d6c667be6c
[ "MIT" ]
null
null
null
codility/python/fib.py
guvkon/aoc-2021
15c8d387f5bf218790d461d32dd948d6c667be6c
[ "MIT" ]
null
null
null
codility/python/fib.py
guvkon/aoc-2021
15c8d387f5bf218790d461d32dd948d6c667be6c
[ "MIT" ]
null
null
null
import math
21.692308
106
0.485816
7e55c6c8ebd4a1c5ef44590495d1ea5a8940d7d2
1,886
py
Python
src/pengbot/adapters/facebook/adapter.py
mariocesar/pengbot
070854f92ac1314ee56f7f6cb9d27430b8f0fda8
[ "MIT" ]
1
2020-09-21T13:52:04.000Z
2020-09-21T13:52:04.000Z
src/pengbot/adapters/facebook/adapter.py
mariocesar/pengbot
070854f92ac1314ee56f7f6cb9d27430b8f0fda8
[ "MIT" ]
null
null
null
src/pengbot/adapters/facebook/adapter.py
mariocesar/pengbot
070854f92ac1314ee56f7f6cb9d27430b8f0fda8
[ "MIT" ]
null
null
null
import json from pengbot.utils import isbound from .api import Facebook from ..web import WebAdapter
31.966102
89
0.577943
7e568b8ddcdfbfe7732b973a52875cd69daa8414
4,517
py
Python
tests/test_policy_loading.py
alancinacio/advanced-security-compliance
5b8c6951db2c895033d816274abc389f1413cddd
[ "MIT" ]
83
2021-06-01T10:11:15.000Z
2022-03-15T00:38:42.000Z
tests/test_policy_loading.py
alancinacio/advanced-security-compliance
5b8c6951db2c895033d816274abc389f1413cddd
[ "MIT" ]
30
2021-06-07T10:18:22.000Z
2022-03-15T10:51:19.000Z
tests/test_policy_loading.py
alancinacio/advanced-security-compliance
5b8c6951db2c895033d816274abc389f1413cddd
[ "MIT" ]
15
2021-06-09T17:22:33.000Z
2022-02-21T00:41:04.000Z
import os import sys import yaml import uuid import unittest import tempfile sys.path.append(".") from ghascompliance.policy import Policy
30.938356
88
0.587337
7e56afeffeb1143dfa4e1a4ffb0c6566c1c6fcad
1,762
py
Python
python/se3last-w3c/conftest.py
saucelabs-training/platform-config-tests
11dfab8f9be2fe118ed0b0fa4adebb75a5f1a64c
[ "MIT" ]
1
2021-11-17T22:29:42.000Z
2021-11-17T22:29:42.000Z
python/se3last-w3c/conftest.py
saucelabs-training/platform-config-tests
11dfab8f9be2fe118ed0b0fa4adebb75a5f1a64c
[ "MIT" ]
null
null
null
python/se3last-w3c/conftest.py
saucelabs-training/platform-config-tests
11dfab8f9be2fe118ed0b0fa4adebb75a5f1a64c
[ "MIT" ]
1
2021-11-17T22:29:35.000Z
2021-11-17T22:29:35.000Z
import os import sys import time import pytest from appium import webdriver as appiumdriver from selenium import webdriver
33.245283
106
0.682179
7e5889544c1792c28e15ce9c96d0ef027587112c
1,242
py
Python
PharmacoDI/write_pset_table.py
bhklab/PharmacoDI
a681b2549765190fd646971de9d99a4233cd1cac
[ "MIT" ]
null
null
null
PharmacoDI/write_pset_table.py
bhklab/PharmacoDI
a681b2549765190fd646971de9d99a4233cd1cac
[ "MIT" ]
7
2021-08-05T15:37:11.000Z
2021-10-15T15:51:44.000Z
PharmacoDI/write_pset_table.py
bhklab/PharmacoDI
a681b2549765190fd646971de9d99a4233cd1cac
[ "MIT" ]
null
null
null
import os from datatable import dt, as_type # -- Enable logging from loguru import logger import sys logger_config = { "handlers": [ {"sink": sys.stdout, "colorize": True, "format": "<green>{time}</green> <level>{message}</level>"}, {"sink": f"logs/write_pset_tables.log", "...
31.05
83
0.651369
7e595646df56fa1ccc0f7430fce5f92524bd68a3
1,092
py
Python
timemachines/skaters/orbt/orbitlgtskaterfactory.py
iklasky/timemachines
1820fa9453d31d4daaeff75274a935c7455febe3
[ "MIT" ]
253
2021-01-08T17:33:30.000Z
2022-03-21T17:32:36.000Z
timemachines/skaters/orbt/orbitlgtskaterfactory.py
iklasky/timemachines
1820fa9453d31d4daaeff75274a935c7455febe3
[ "MIT" ]
65
2021-01-20T16:43:35.000Z
2022-03-30T19:07:22.000Z
timemachines/skaters/orbt/orbitlgtskaterfactory.py
iklasky/timemachines
1820fa9453d31d4daaeff75274a935c7455febe3
[ "MIT" ]
28
2021-02-04T14:58:30.000Z
2022-01-17T04:35:17.000Z
from timemachines.skaters.orbt.orbitinclusion import using_orbit if using_orbit: from timemachines.skaters.orbt.orbitwrappers import orbit_lgt_iskater from timemachines.skatertools.utilities.conventions import Y_TYPE, A_TYPE, R_TYPE, E_TYPE, T_TYPE from timemachines.skatertools.batch.batchskater import ba...
45.5
126
0.638278
7e597dddf299d58b91fda18f58fa608899357fa1
530
py
Python
script/en_glue/preprocess/qnli.py
kunde122/ERNIE1
050327e968b2d7d9090ab882a5dd6b0fdeca80b4
[ "Apache-2.0" ]
1
2020-10-19T09:41:11.000Z
2020-10-19T09:41:11.000Z
script/en_glue/preprocess/qnli.py
kunde122/ERNIE1
050327e968b2d7d9090ab882a5dd6b0fdeca80b4
[ "Apache-2.0" ]
1
2019-08-24T02:36:37.000Z
2019-08-24T02:36:37.000Z
script/en_glue/preprocess/qnli.py
kunde122/ERNIE1
050327e968b2d7d9090ab882a5dd6b0fdeca80b4
[ "Apache-2.0" ]
1
2019-10-19T05:29:08.000Z
2019-10-19T05:29:08.000Z
import sys mapping = {'entailment': 1, 'not_entailment': 0} i = 0 for line in sys.stdin: arr = line.strip().split('\t') s1 = arr[1] s2 = arr[2] if len(arr) == 4: if i == 0: i += 1 print('text_a\ttext_b\tlabel') continue s3 = arr[3] print("{}\...
23.043478
55
0.450943
7e5a4b7a911240a4176bf8ae58a08ef0931285dc
62
py
Python
gsee/__init__.py
scene-connect/gsee
f5515fb2a20af9278e7ca11312388717760a8225
[ "BSD-3-Clause" ]
null
null
null
gsee/__init__.py
scene-connect/gsee
f5515fb2a20af9278e7ca11312388717760a8225
[ "BSD-3-Clause" ]
5
2022-03-11T10:52:24.000Z
2022-03-11T14:09:09.000Z
gsee/__init__.py
scene-connect/gsee
f5515fb2a20af9278e7ca11312388717760a8225
[ "BSD-3-Clause" ]
null
null
null
__all__ = ["brl_model", "pv"] from gsee import brl_model, pv
15.5
30
0.693548
7e5c4ac6eeaa4f1f47b3333663069355e76954d0
1,366
py
Python
src/data_standardization/tests/test_boston_volume.py
nsteins/crash-model
521a63e48a561298e694432d74caa3c385f913b6
[ "MIT" ]
54
2018-06-21T18:48:34.000Z
2020-04-15T23:07:20.000Z
src/data_standardization/tests/test_boston_volume.py
nsteins/crash-model
521a63e48a561298e694432d74caa3c385f913b6
[ "MIT" ]
172
2018-06-14T17:33:41.000Z
2020-06-15T16:45:15.000Z
src/data_standardization/tests/test_boston_volume.py
nsteins/crash-model
521a63e48a561298e694432d74caa3c385f913b6
[ "MIT" ]
25
2017-02-13T21:45:07.000Z
2018-06-13T19:41:38.000Z
from ..boston_volume import BostonVolumeParser import os
26.784314
79
0.649341
7e5d011b9be09b3a31687a7c84c1f20f5a3b8ceb
3,626
py
Python
custom_components/luxtronik/binary_sensor.py
WhistleMaster/luxtronik
b479257100def0bb6b668b5ae3e63ccd8ed60995
[ "MIT" ]
37
2018-11-01T20:30:55.000Z
2022-03-25T20:57:29.000Z
custom_components/luxtronik/binary_sensor.py
WhistleMaster/luxtronik
b479257100def0bb6b668b5ae3e63ccd8ed60995
[ "MIT" ]
41
2019-04-08T07:32:35.000Z
2022-03-28T18:32:55.000Z
custom_components/luxtronik/binary_sensor.py
WhistleMaster/luxtronik
b479257100def0bb6b668b5ae3e63ccd8ed60995
[ "MIT" ]
17
2019-04-03T09:02:13.000Z
2022-03-04T19:51:10.000Z
"""Support for Luxtronik heatpump binary states.""" import logging import voluptuous as vol from homeassistant.components.binary_sensor import PLATFORM_SCHEMA, BinarySensorEntity from homeassistant.const import CONF_FRIENDLY_NAME, CONF_ICON, CONF_ID, CONF_SENSORS import homeassistant.helpers.config_validation as cv f...
29.241935
88
0.606178
7e5e2458db8b5363508f982ca60fdfa04db827b4
1,298
py
Python
Algorithms_easy/1065. Index Pairs of a String.py
VinceW0/Leetcode_Python_solutions
09e9720afce21632372431606ebec4129eb79734
[ "Xnet", "X11" ]
4
2020-08-11T20:45:15.000Z
2021-03-12T00:33:34.000Z
Algorithms_easy/1065. Index Pairs of a String.py
VinceW0/Leetcode_Python_solutions
09e9720afce21632372431606ebec4129eb79734
[ "Xnet", "X11" ]
null
null
null
Algorithms_easy/1065. Index Pairs of a String.py
VinceW0/Leetcode_Python_solutions
09e9720afce21632372431606ebec4129eb79734
[ "Xnet", "X11" ]
null
null
null
""" 1065. Index Pairs of a String Easy Given a text string and words (a list of strings), return all index pairs [i, j] so that the substring text[i]...text[j] is in the list of words. Example 1: Input: text = "thestoryofleetcodeandme", words = ["story","fleet","leetcode"] Output: [[3,7],[9,13],[10,17]] Example 2: ...
30.904762
145
0.575501
7e602fe1c74aa3fb84a2c81524ea7c737c67eb63
233
py
Python
setup.py
jsdnlb/Tangelo-challenge
4cd83f5dcd5b870f2dba6a7f08d35fe1f60709ce
[ "MIT" ]
null
null
null
setup.py
jsdnlb/Tangelo-challenge
4cd83f5dcd5b870f2dba6a7f08d35fe1f60709ce
[ "MIT" ]
3
2022-02-11T00:32:38.000Z
2022-02-11T14:29:33.000Z
setup.py
jsdnlb/tangelo-challenge
4cd83f5dcd5b870f2dba6a7f08d35fe1f60709ce
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages # Building and Distributing Packages with Setuptools # Documentation here: https://setuptools.pypa.io/en/latest/setuptools.html setup(name='app', version='1.0', packages=find_packages())
33.285714
74
0.793991
7e61331f1d48012031893d41bd0fba4b33926051
804
py
Python
sponsors/migrations/0038_auto_20210827_1223.py
Manny27nyc/pythondotorg
257c96d3a94755451a5a5cdcd2abad1e27ea299b
[ "Apache-2.0" ]
911
2015-01-03T22:16:06.000Z
2022-03-31T23:56:22.000Z
sponsors/migrations/0038_auto_20210827_1223.py
Manny27nyc/pythondotorg
257c96d3a94755451a5a5cdcd2abad1e27ea299b
[ "Apache-2.0" ]
1,342
2015-01-02T16:14:45.000Z
2022-03-28T08:01:20.000Z
sponsors/migrations/0038_auto_20210827_1223.py
Manny27nyc/pythondotorg
257c96d3a94755451a5a5cdcd2abad1e27ea299b
[ "Apache-2.0" ]
551
2015-01-04T02:17:31.000Z
2022-03-23T11:59:25.000Z
# Generated by Django 2.0.13 on 2021-08-27 12:23 from django.db import migrations
28.714286
88
0.70398
7e63755a2eb8725059fe0af8726fe1baae17c773
6,020
py
Python
fugue_sql/workflow.py
LaurentErreca/fugue
73d551b4d25b50b3d9051dd765e6111db2e3fc76
[ "Apache-2.0" ]
null
null
null
fugue_sql/workflow.py
LaurentErreca/fugue
73d551b4d25b50b3d9051dd765e6111db2e3fc76
[ "Apache-2.0" ]
null
null
null
fugue_sql/workflow.py
LaurentErreca/fugue
73d551b4d25b50b3d9051dd765e6111db2e3fc76
[ "Apache-2.0" ]
null
null
null
from builtins import isinstance from typing import Any, Dict, Tuple from fugue import ( DataFrame, FugueWorkflow, WorkflowDataFrame, WorkflowDataFrames, Yielded, ) from fugue.constants import FUGUE_CONF_SQL_IGNORE_CASE from fugue.workflow import is_acceptable_raw_df from fugue_sql._parse import Fug...
31.851852
88
0.595349
7e6449d6fe77effb19a71805ede2cc6094e439b0
347
py
Python
project/WeiboTest/SpiderMain.py
zhengbomo/python_practice
1bc5c4ff426f806639bbc01249e66747271ec398
[ "MIT" ]
2
2016-10-03T10:20:02.000Z
2018-03-20T00:38:53.000Z
project/WeiboTest/SpiderMain.py
zhengbomo/python_practice
1bc5c4ff426f806639bbc01249e66747271ec398
[ "MIT" ]
2
2019-10-08T07:13:44.000Z
2019-10-08T07:13:46.000Z
project/WeiboTest/SpiderMain.py
zhengbomo/python_practice
1bc5c4ff426f806639bbc01249e66747271ec398
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding:utf-8 -*- from Spider import Spider # spider = Spider() fans = spider.get_my_fans() for fan in fans: spider.user_crawl(fan.user_id) spider.status_crawl(fan.user_id) followers = spider.get_my_follower() for follower in followers: spider.user_crawl(fan.user_id) spider.s...
19.277778
36
0.723343
7e66f22b59e0aa979c2af71f6719b6b98bfbe64a
842
py
Python
setup.py
konstanzer/insilico
a3b1f8352e0f2eeeb41ee94dc106e4fb02c8abf3
[ "MIT" ]
1
2021-11-22T16:25:17.000Z
2021-11-22T16:25:17.000Z
setup.py
konstanzer/insilico
a3b1f8352e0f2eeeb41ee94dc106e4fb02c8abf3
[ "MIT" ]
null
null
null
setup.py
konstanzer/insilico
a3b1f8352e0f2eeeb41ee94dc106e4fb02c8abf3
[ "MIT" ]
null
null
null
from setuptools import setup long_description = open("README.md").read() setup( name='insilico', version='0.1.2', description='A Python package to process & model ChEMBL data.', long_description_content_type="text/markdown", long_description=long_description, classifiers=[ 'License :: ...
30.071429
67
0.648456
7e67680b7ff285c7a73a411e68537d03ddc32e2e
1,190
py
Python
home/board/migrations/0004_add_closed_at.py
he0119/smart-home
bdd3a59a8c46c0fdc07ac3049bf589c7f95a2683
[ "MIT" ]
null
null
null
home/board/migrations/0004_add_closed_at.py
he0119/smart-home
bdd3a59a8c46c0fdc07ac3049bf589c7f95a2683
[ "MIT" ]
223
2020-02-21T06:16:56.000Z
2022-03-01T22:24:19.000Z
home/board/migrations/0004_add_closed_at.py
he0119/smart-home
bdd3a59a8c46c0fdc07ac3049bf589c7f95a2683
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2020-12-25 02:53 from django.db import migrations, models def set_edited_at(apps, schema_editor): """ """ Topic = apps.get_model("board", "Topic") for topic in Topic.objects.all(): if not topic.is_open: topic.edited_at = topic.created...
24.791667
83
0.610924
7e6813b29c6eccafd45b8c9a108f2365b9ee6257
17,737
py
Python
week_5/Service.py
aaaaaaaalesha/oop-and-design-patterns
1076002e0066b334ed7c82b47985b7fcdcf6264f
[ "MIT" ]
null
null
null
week_5/Service.py
aaaaaaaalesha/oop-and-design-patterns
1076002e0066b334ed7c82b47985b7fcdcf6264f
[ "MIT" ]
null
null
null
week_5/Service.py
aaaaaaaalesha/oop-and-design-patterns
1076002e0066b334ed7c82b47985b7fcdcf6264f
[ "MIT" ]
null
null
null
import pygame import random import yaml import os import Objects OBJECT_TEXTURE = os.path.join("texture", "objects") ENEMY_TEXTURE = os.path.join("texture", "enemies") ALLY_TEXTURE = os.path.join("texture", "ally") wall = [0] floor1 = [0] floor2 = [0] floor3 = [0]
38.062232
108
0.462649
7e6ac35a244c03c07d3dc37ad1b2d76ac2c72006
3,451
py
Python
test/test_search.py
tomkralidis/sat-search
48f00dc4ad8c317a131ca70b05ac4ab5d3fcdb4c
[ "MIT" ]
null
null
null
test/test_search.py
tomkralidis/sat-search
48f00dc4ad8c317a131ca70b05ac4ab5d3fcdb4c
[ "MIT" ]
null
null
null
test/test_search.py
tomkralidis/sat-search
48f00dc4ad8c317a131ca70b05ac4ab5d3fcdb4c
[ "MIT" ]
null
null
null
import os import glob import json import unittest import satsearch.config as config from satstac import Item from satsearch.search import SatSearchError, Search
34.858586
103
0.606201
7e6ca5f5a32c06e55254d834d4ec7b22d2307f05
8,468
py
Python
src/lck/django/common/forms.py
ar4s/kitdjango
1da443296ac780ae002b66452df2251642374a13
[ "MIT" ]
10
2015-06-17T08:22:10.000Z
2020-12-10T13:48:37.000Z
src/lck/django/common/forms.py
ar4s/kitdjango
1da443296ac780ae002b66452df2251642374a13
[ "MIT" ]
null
null
null
src/lck/django/common/forms.py
ar4s/kitdjango
1da443296ac780ae002b66452df2251642374a13
[ "MIT" ]
8
2015-03-23T10:59:22.000Z
2022-01-17T09:49:26.000Z
""" Albeit useful, this module is still somewhat a mess in a really early state of development. Beware, there be dragons. """ import datetime import os import re from subprocess import check_call, CalledProcessError from tempfile import NamedTemporaryFile try: from cStringIO import StringIO except ImportError: ...
35.430962
117
0.590694
7e6ce7954f14f677ee1fb45483daa4344da6bdb8
2,502
py
Python
utils/model_utils.py
Pandinosaurus/PerceptualImageError
0513613d1f575136ea52418e35f2cebc5a49f783
[ "BSD-2-Clause" ]
null
null
null
utils/model_utils.py
Pandinosaurus/PerceptualImageError
0513613d1f575136ea52418e35f2cebc5a49f783
[ "BSD-2-Clause" ]
null
null
null
utils/model_utils.py
Pandinosaurus/PerceptualImageError
0513613d1f575136ea52418e35f2cebc5a49f783
[ "BSD-2-Clause" ]
null
null
null
import tensorflow as tf
42.40678
163
0.735412
7e6cf6505ad3c6585ee75f9c82d03c7ef24336fd
7,302
py
Python
kubelet/datadog_checks/kubelet/summary.py
tcpatterson/integrations-core
3692601de09f8db60f42612b0d623509415bbb53
[ "BSD-3-Clause" ]
null
null
null
kubelet/datadog_checks/kubelet/summary.py
tcpatterson/integrations-core
3692601de09f8db60f42612b0d623509415bbb53
[ "BSD-3-Clause" ]
null
null
null
kubelet/datadog_checks/kubelet/summary.py
tcpatterson/integrations-core
3692601de09f8db60f42612b0d623509415bbb53
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under Simplified BSD License (see LICENSE) from __future__ import division from fnmatch import fnmatch from datadog_checks.base.utils.tagging import tagger from .common import replace_container_rt_prefix, tags_for_docker, tags_for_pod
47.109677
120
0.613667
7e6efd55ee5bacdaf7a9ad2f734f50df6af5bd9a
2,027
py
Python
Search_result/srr9.py
tanayz/Kaggle
0dabcf5ccc2432cecd12f91fba9dfda64dc1afdd
[ "Apache-2.0" ]
null
null
null
Search_result/srr9.py
tanayz/Kaggle
0dabcf5ccc2432cecd12f91fba9dfda64dc1afdd
[ "Apache-2.0" ]
null
null
null
Search_result/srr9.py
tanayz/Kaggle
0dabcf5ccc2432cecd12f91fba9dfda64dc1afdd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Jul 5 06:34:04 2015 @author: tanay """ from lasagne.layers import InputLayer, DropoutLayer, DenseLayer from lasagne.updates import nesterov_momentum from lasagne.objectives import binary_crossentropy from nolearn.lasagne import NeuralNet import theano from theano import tens...
25.658228
66
0.730143
7e706c63ed781d4a98c0e2432ffb583ee2d4d55c
1,795
py
Python
typarser/_base_optarg.py
ermishechkin/typarser
00d965f87718c837a2c246f0b5c61401e8a6e3c8
[ "MIT" ]
null
null
null
typarser/_base_optarg.py
ermishechkin/typarser
00d965f87718c837a2c246f0b5c61401e8a6e3c8
[ "MIT" ]
null
null
null
typarser/_base_optarg.py
ermishechkin/typarser
00d965f87718c837a2c246f0b5c61401e8a6e3c8
[ "MIT" ]
null
null
null
from __future__ import annotations import typing from typing import Callable, Generic, Iterable, Literal, Optional, Tuple, Union from ._base import RESULT, TYPE, BaseComponent from ._internal_namespace import set_value if typing.TYPE_CHECKING: from ._base import Namespace from .action import Action NARGS...
29.42623
79
0.622284
7e706e01366d67075b4a31f867ccfdf06dd51be5
766
py
Python
docs/tutorial/local.py
prodigyfinance/ml2p
a6df55e9ce81e68619fd2f2891981a39a9186651
[ "0BSD" ]
3
2021-10-11T05:35:45.000Z
2022-02-21T09:54:16.000Z
docs/tutorial/local.py
hodgestar/ml2p
3f82e7fbf79345cead67ee18de88589a1ae82b97
[ "0BSD" ]
7
2020-09-16T13:55:16.000Z
2021-06-11T08:38:03.000Z
docs/tutorial/local.py
hodgestar/ml2p
3f82e7fbf79345cead67ee18de88589a1ae82b97
[ "0BSD" ]
3
2020-09-15T14:38:25.000Z
2020-09-17T20:35:35.000Z
# -*- coding: utf-8 -*- """ Train the Boston house prices model on your local machine. """ import pandas as pd from ml2p.core import LocalEnv import model def train(env): """ Train and save the model locally. """ trainer = model.BostonModel().trainer(env) trainer.train() def predict(env): """ Load...
21.885714
62
0.644909
7e713a438f11abe5a5a8f398bae01323ba662ddc
457
py
Python
examples/decorator_args.py
gwilkes/botpie
53d0313beb3f5710cab71ab30dc8a33831e8e6a4
[ "MIT" ]
null
null
null
examples/decorator_args.py
gwilkes/botpie
53d0313beb3f5710cab71ab30dc8a33831e8e6a4
[ "MIT" ]
null
null
null
examples/decorator_args.py
gwilkes/botpie
53d0313beb3f5710cab71ab30dc8a33831e8e6a4
[ "MIT" ]
null
null
null
import botpie import random message = botpie.utils.argvstr() bot = botpie.Bot("InfoBot") result = bot.inspectstr(message) if result: print(result)
20.772727
67
0.562363
7e71b09e8c3b6c84f5eb91628da2d2611269feb8
3,242
py
Python
src/PyMud/model/account.py
NichCritic/pymud
583ec16f5a75dc7b45146564b39851291dc07b6c
[ "MIT" ]
null
null
null
src/PyMud/model/account.py
NichCritic/pymud
583ec16f5a75dc7b45146564b39851291dc07b6c
[ "MIT" ]
null
null
null
src/PyMud/model/account.py
NichCritic/pymud
583ec16f5a75dc7b45146564b39851291dc07b6c
[ "MIT" ]
null
null
null
''' Created on Nov 27, 2011 @author: Nich ''' import uuid from model.base import Base from sqlalchemy import Column, String, ForeignKey from sqlalchemy.orm import relationship #Base.metadata.create_all(engine)
28.438596
114
0.623381
7e72844189e895886424dc16300b05e203165f43
46
py
Python
elevadorJahNoUltimoAndarException.py
IpRocha1/dsoo_exercicio_6
69ece39b2189b3a17a9185dca8a6d17acb6b5aa5
[ "MIT" ]
null
null
null
elevadorJahNoUltimoAndarException.py
IpRocha1/dsoo_exercicio_6
69ece39b2189b3a17a9185dca8a6d17acb6b5aa5
[ "MIT" ]
null
null
null
elevadorJahNoUltimoAndarException.py
IpRocha1/dsoo_exercicio_6
69ece39b2189b3a17a9185dca8a6d17acb6b5aa5
[ "MIT" ]
null
null
null
class ElevadorJahNoUltimoAndarException( ...
15.333333
44
0.826087
7e72b5817d31b0de3104c24886db921a7779c4b5
630
py
Python
pysatModels/models/__init__.py
pysat/pysatModelUtils
e563c36531632cd68b4e15d2ac6099fa3cb45aef
[ "BSD-3-Clause" ]
null
null
null
pysatModels/models/__init__.py
pysat/pysatModelUtils
e563c36531632cd68b4e15d2ac6099fa3cb45aef
[ "BSD-3-Clause" ]
17
2019-09-18T18:19:00.000Z
2020-01-30T18:41:59.000Z
pysatModels/models/__init__.py
pysat/pysatModelUtils
e563c36531632cd68b4e15d2ac6099fa3cb45aef
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2022, pysat development team # Full license can be found in License.md # ----------------------------------------------------------------------------- """Routines for loading model data into a pysat Instrument object.""" # Import key modules and skip F401 t...
42
79
0.663492
7e72e12b97f96d60c1b664e0376ea773f0bdcd6f
2,918
py
Python
backend/accounts/serializers.py
hvitis/geodjango-rest-vue-boilerplate
bd825fdfc81430ecfac3fe7d3c06a6e1145de1cd
[ "MIT" ]
5
2020-11-23T11:31:40.000Z
2022-03-11T01:24:46.000Z
backend/accounts/serializers.py
hvitis/geodjango-rest-vue-boilerplate
bd825fdfc81430ecfac3fe7d3c06a6e1145de1cd
[ "MIT" ]
null
null
null
backend/accounts/serializers.py
hvitis/geodjango-rest-vue-boilerplate
bd825fdfc81430ecfac3fe7d3c06a6e1145de1cd
[ "MIT" ]
null
null
null
from rest_framework_gis.serializers import GeoFeatureModelSerializer, GeometrySerializerMethodField from django.contrib.gis.geos import Point from accounts.models import UserProfile import datetime from rest_framework_gis.pagination import GeoJsonPagination from django.contrib.auth import get_user_model from django.ut...
30.715789
99
0.664839