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
9416afea7476965ed4206e1afa4b1c98c8a8e2e2
4,808
py
Python
rascunho/ibge.py
maberf/draft
0686cfd3938c844563dff7bdce1c4b76ad42ad6a
[ "MIT" ]
null
null
null
rascunho/ibge.py
maberf/draft
0686cfd3938c844563dff7bdce1c4b76ad42ad6a
[ "MIT" ]
null
null
null
rascunho/ibge.py
maberf/draft
0686cfd3938c844563dff7bdce1c4b76ad42ad6a
[ "MIT" ]
null
null
null
''' Spider IPCA v.1 --------------- Captura variação do IPCA do site do IBGE Para o Blog Ciência de Dados Thiago Serra F. Carvalho (C073835) ''' from selenium import webdriver from bs4 import BeautifulSoup import pandas as pd import time class Captura: ''' PASSO 1: Abrir o navegador O objeto webdriver é o...
34.84058
111
0.540765
4,345
0.898284
0
0
0
0
0
0
2,345
0.484805
941744eaeedb8147966109fc40c6847481dcda99
13,358
py
Python
quantlib/test/test_hybridhestonhullwhite_process.py
yuyingfeng/pyql
ceb838581ad4db73a0208bc51bde2771bb534e5f
[ "BSD-3-Clause" ]
null
null
null
quantlib/test/test_hybridhestonhullwhite_process.py
yuyingfeng/pyql
ceb838581ad4db73a0208bc51bde2771bb534e5f
[ "BSD-3-Clause" ]
null
null
null
quantlib/test/test_hybridhestonhullwhite_process.py
yuyingfeng/pyql
ceb838581ad4db73a0208bc51bde2771bb534e5f
[ "BSD-3-Clause" ]
2
2016-08-24T20:56:14.000Z
2022-01-03T05:58:42.000Z
from __future__ import division from __future__ import print_function from .unittest_tools import unittest import numpy as np from quantlib.settings import Settings from quantlib.instruments.option import ( EuropeanExercise) from quantlib.instruments.payoffs import PAYOFF_TO_STR from quantlib.models.shortrate...
30.778802
86
0.564381
11,823
0.885088
0
0
2,217
0.165968
0
0
743
0.055622
9419dfff89fc658e4d5b9784d855175327b46249
13,470
py
Python
microutil/napari_wrappers.py
Hekstra-Lab/microutil
ab3b7b51754bf90ef35d6eea1c7b35cece638f0e
[ "BSD-3-Clause" ]
2
2021-07-06T05:31:51.000Z
2021-10-05T13:29:59.000Z
microutil/napari_wrappers.py
Hekstra-Lab/microutil
ab3b7b51754bf90ef35d6eea1c7b35cece638f0e
[ "BSD-3-Clause" ]
16
2021-02-08T22:36:42.000Z
2021-11-01T22:36:02.000Z
microutil/napari_wrappers.py
Hekstra-Lab/microutil
ab3b7b51754bf90ef35d6eea1c7b35cece638f0e
[ "BSD-3-Clause" ]
null
null
null
__all__ = [ "manual_segmentation", "correct_watershed", "correct_decreasing_cell_frames", ] import warnings import numpy as np import xarray as xr from .array_utils import axis2int from .segmentation import ( napari_points_to_peak_mask, peak_mask_to_napari_points, watershed_single_frame_presee...
31.619718
129
0.607275
0
0
0
0
851
0.063177
0
0
4,905
0.364143
941ac9a588b0f7f631258968825a911c7c67938a
1,388
py
Python
package/PartSeg/plugins/napari_widgets/__init__.py
neuromusic/PartSeg
a4edff1b9fbe55eb7f5e1fc8b5b3f8e730b35caf
[ "BSD-3-Clause" ]
15
2020-03-21T03:27:56.000Z
2022-03-21T07:46:39.000Z
package/PartSeg/plugins/napari_widgets/__init__.py
neuromusic/PartSeg
a4edff1b9fbe55eb7f5e1fc8b5b3f8e730b35caf
[ "BSD-3-Clause" ]
479
2019-10-27T22:57:22.000Z
2022-03-30T12:48:14.000Z
package/PartSeg/plugins/napari_widgets/__init__.py
neuromusic/PartSeg
a4edff1b9fbe55eb7f5e1fc8b5b3f8e730b35caf
[ "BSD-3-Clause" ]
5
2020-02-05T14:25:02.000Z
2021-12-21T03:44:52.000Z
from napari_plugin_engine import napari_hook_implementation from PartSeg.plugins.napari_widgets.mask_create_widget import MaskCreateNapari from PartSeg.plugins.napari_widgets.roi_extraction_algorithms import ROIAnalysisExtraction, ROIMaskExtraction from PartSeg.plugins.napari_widgets.search_label_widget import SearchL...
34.7
109
0.879683
0
0
0
0
1,045
0.752882
0
0
205
0.147695
941bf67ace09cea1fa8be060142fbc460a1ab4a9
1,433
py
Python
pypy/module/posix/app_startfile.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
1
2021-06-02T23:02:09.000Z
2021-06-02T23:02:09.000Z
pypy/module/posix/app_startfile.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
1
2021-03-30T18:08:41.000Z
2021-03-30T18:08:41.000Z
pypy/module/posix/app_startfile.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
1
2022-03-30T11:42:37.000Z
2022-03-30T11:42:37.000Z
# NOT_RPYTHON class CFFIWrapper(object): def __init__(self): import cffi ffi = cffi.FFI() ffi.cdef(""" HINSTANCE ShellExecuteA(HWND, LPCSTR, LPCSTR, LPCSTR, LPCSTR, INT); HINSTANCE ShellExecuteW(HWND, LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR, INT); """) self.NULL =...
32.568182
79
0.597348
462
0.322401
0
0
0
0
0
0
256
0.178646
941d7a4e476aa62949af65296740953c1199a191
1,815
py
Python
stylegan/data_analysis.py
britt0508/ExplainedKinshipCorrect
e0e255ff9531af1436bb9a9fe07256e72a0061f7
[ "BSD-Source-Code" ]
null
null
null
stylegan/data_analysis.py
britt0508/ExplainedKinshipCorrect
e0e255ff9531af1436bb9a9fe07256e72a0061f7
[ "BSD-Source-Code" ]
null
null
null
stylegan/data_analysis.py
britt0508/ExplainedKinshipCorrect
e0e255ff9531af1436bb9a9fe07256e72a0061f7
[ "BSD-Source-Code" ]
null
null
null
import csv import pandas as pd from ast import literal_eval import matplotlib.pyplot as plt import seaborn as sns # DATA_PATH = "/content/drive/MyDrive/ExplainedKinshipData/data/all_pairs_also_unrelated_complete.csv" # data = pd.read_csv(DATA_PATH, converters={"feat1": literal_eval, "feat2": literal_eval}) # print(dat...
38.617021
122
0.722865
0
0
0
0
0
0
0
0
1,278
0.704132
941e79630ab05ab4af582a022af0f3d07f154519
91
py
Python
atcoder/AtCoder_Beginner_Contest_144/9x9.py
juseongkr/BOJ
8f10a2bf9a7d695455493fbe7423347a8b648416
[ "Apache-2.0" ]
7
2020-02-03T10:00:19.000Z
2021-11-16T11:03:57.000Z
atcoder/AtCoder_Beginner_Contest_144/9x9.py
juseongkr/Algorithm-training
8f10a2bf9a7d695455493fbe7423347a8b648416
[ "Apache-2.0" ]
1
2021-01-03T06:58:24.000Z
2021-01-03T06:58:24.000Z
atcoder/AtCoder_Beginner_Contest_144/9x9.py
juseongkr/Algorithm-training
8f10a2bf9a7d695455493fbe7423347a8b648416
[ "Apache-2.0" ]
1
2020-01-22T14:34:03.000Z
2020-01-22T14:34:03.000Z
a, b = map(int, input().split()) if a >= 10 or b >= 10: print(-1) else: print(a*b)
15.166667
32
0.494505
0
0
0
0
0
0
0
0
0
0
941fa2d0f2957a837877bc52e0cf20be207d8edc
2,147
py
Python
Revoke.py
locobastos/IBM-Informix-Comparison-Script
bd624a73e24a1d994e5d3c266d49a7f12d972611
[ "MIT" ]
null
null
null
Revoke.py
locobastos/IBM-Informix-Comparison-Script
bd624a73e24a1d994e5d3c266d49a7f12d972611
[ "MIT" ]
null
null
null
Revoke.py
locobastos/IBM-Informix-Comparison-Script
bd624a73e24a1d994e5d3c266d49a7f12d972611
[ "MIT" ]
null
null
null
# coding=utf-8 class Revoke: """ A revoke is described by : - The database on which it exists - The privilege revoked - The user on wich the revoke applies - The table on which the revoke applies - The owner of the table on which the revoke applies """ def __in...
37.017241
94
0.647415
2,129
0.991616
0
0
0
0
0
0
1,066
0.496507
9421063687d5c674de82454a24f2a06d3bbc10f3
172
py
Python
Web dev/Django/Projects/Hospital Management Systems/venv/Scripts/django-admin.py
prathimacode-hub/WIE-WoC
f412f297a57249af98213bf4a747c897f2d4c035
[ "MIT" ]
8
2022-03-01T09:09:20.000Z
2022-03-03T05:36:01.000Z
Web dev/Django/Projects/Hospital Management Systems/venv/Scripts/django-admin.py
prathimacode-hub/WIE-WoC
f412f297a57249af98213bf4a747c897f2d4c035
[ "MIT" ]
52
2022-03-02T13:52:46.000Z
2022-03-04T03:03:17.000Z
Web dev/Django/Projects/Hospital Management Systems/venv/Scripts/django-admin.py
prathimacode-hub/WIE-WoC
f412f297a57249af98213bf4a747c897f2d4c035
[ "MIT" ]
23
2022-03-01T06:39:34.000Z
2022-03-03T09:24:40.000Z
#!C:\Users\INDIA\PycharmProjects\patient5\venv\Scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line()
28.666667
65
0.796512
0
0
0
0
0
0
0
0
75
0.436047
94216394fa225ea1e01514370a7ab54fc7850fd6
4,394
py
Python
StateTracing/dataloader.py
junchenfeng/diagnosis_tracing
4e26e2ad0c7abc547f22774b6c9c299999a152c3
[ "MIT" ]
null
null
null
StateTracing/dataloader.py
junchenfeng/diagnosis_tracing
4e26e2ad0c7abc547f22774b6c9c299999a152c3
[ "MIT" ]
null
null
null
StateTracing/dataloader.py
junchenfeng/diagnosis_tracing
4e26e2ad0c7abc547f22774b6c9c299999a152c3
[ "MIT" ]
1
2020-09-08T13:42:16.000Z
2020-09-08T13:42:16.000Z
from torch import tensor from numpy.random import choice,shuffle max_len = 128 def random_cut(length): s = choice(length-max_len+1) return s,s+max_len def differeniate(statesA,statesB): return [[i,b] for i,(a,b) in enumerate(zip(map(int,statesA),map(int,statesB))) if b!=a] def generate_targe...
26.46988
92
0.466318
833
0.189577
602
0.137005
0
0
0
0
571
0.12995
9421e29a0bf88b5d1d33c777e246e5747fbbdf1c
467
py
Python
classification/classifier.py
mjbaucas/OneWordSpeechRecognition
8b6ec3e59c77b574d0f6e29cd50aaa8106a0c106
[ "CC-BY-4.0" ]
null
null
null
classification/classifier.py
mjbaucas/OneWordSpeechRecognition
8b6ec3e59c77b574d0f6e29cd50aaa8106a0c106
[ "CC-BY-4.0" ]
null
null
null
classification/classifier.py
mjbaucas/OneWordSpeechRecognition
8b6ec3e59c77b574d0f6e29cd50aaa8106a0c106
[ "CC-BY-4.0" ]
null
null
null
from keras.models import load_model from numpy import array, asarray, shape from dataset import DatasetGenerator def classify_sound(model, sound_file): model = load_model(model) LABELS = 'no yes'.split() dsGen = DatasetGenerator(label_set=LABELS) x = array(dsGen.process_wav_file(sound_file)) x = asarray(x).resh...
22.238095
46
0.717345
0
0
0
0
0
0
0
0
26
0.055675
9423171d16250d6171ddafca3f4c87c148dbefd2
489
py
Python
00_Original/34_Netzwerkkommunikation/E-Mail/Erstellen_komplexer_E-Mails/email_mit_anhang.py
felixdittrich92/Python3_book
cd0e2b55aa72c51927d347b70199fb9ed928e06f
[ "MIT" ]
null
null
null
00_Original/34_Netzwerkkommunikation/E-Mail/Erstellen_komplexer_E-Mails/email_mit_anhang.py
felixdittrich92/Python3_book
cd0e2b55aa72c51927d347b70199fb9ed928e06f
[ "MIT" ]
null
null
null
00_Original/34_Netzwerkkommunikation/E-Mail/Erstellen_komplexer_E-Mails/email_mit_anhang.py
felixdittrich92/Python3_book
cd0e2b55aa72c51927d347b70199fb9ed928e06f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from email.mime.multipart import MIMEMultipart from email.mime.image import MIMEImage from email.mime.text import MIMEText msg = MIMEMultipart() msg["Subject"] = "Hallo Welt" msg["From"] = "Donald Duck <don@ld.de>" msg["To"] = "Onkel Dagobert <d@gobert.de>" text = MIMETe...
22.227273
58
0.697342
0
0
0
0
0
0
0
0
185
0.378323
94233aaf3bc27bbb95fcba3936869d2e38d18220
841
py
Python
slrfield/slrclasses/__init__.py
lcx366/SLRfield
7eb70efa30043406b105b78e2612689326c77f7c
[ "MIT" ]
2
2020-04-21T08:57:49.000Z
2020-08-19T11:34:24.000Z
slrfield/slrclasses/__init__.py
lcx366/SLRfield
7eb70efa30043406b105b78e2612689326c77f7c
[ "MIT" ]
1
2021-03-14T00:56:53.000Z
2021-06-03T02:03:10.000Z
slrfield/slrclasses/__init__.py
lcx366/SLRfield
7eb70efa30043406b105b78e2612689326c77f7c
[ "MIT" ]
2
2020-08-19T11:34:27.000Z
2022-03-11T02:42:06.000Z
''' slrfield slrclasses subpackage This subpackage defines some classes that facilitate the processing of the SLR(Satellite Laser Ranging) data. # cpfpred.py Class structure: CPFdata - attributes: - info: all information about the cpf ephemeris file - version: version number of ...
35.041667
155
0.657551
0
0
0
0
0
0
0
0
841
1
9423c78a108248ff56d8221e0af10e55045879da
396
py
Python
api/serializers.py
AntonioAlfrz/SecuredHome
a3c06c81c20a0b3b00af1cc34296b9256cb00138
[ "MIT" ]
null
null
null
api/serializers.py
AntonioAlfrz/SecuredHome
a3c06c81c20a0b3b00af1cc34296b9256cb00138
[ "MIT" ]
null
null
null
api/serializers.py
AntonioAlfrz/SecuredHome
a3c06c81c20a0b3b00af1cc34296b9256cb00138
[ "MIT" ]
null
null
null
from rest_framework import serializers from api.models import User, Log class UserSerializer(serializers.ModelSerializer): logs = serializers.RelatedField(many=True, read_only=True) class Meta: model = User fields = ('name','token','logs') class LogSerializer(serializers.ModelSerializer): ...
26.4
62
0.689394
321
0.810606
0
0
0
0
0
0
40
0.10101
9423dad74e2310d3e32cf63739fb7581d69d1ba6
2,346
py
Python
src/wallet/migrations/0008_migrate_trxs.py
uppsaladatavetare/foobar-api
c63e824ce246b15163e352f5150ef4ecbee81b96
[ "MIT" ]
16
2015-10-29T14:23:37.000Z
2020-04-21T00:19:39.000Z
src/wallet/migrations/0008_migrate_trxs.py
uppsaladatavetare/foobar-api
c63e824ce246b15163e352f5150ef4ecbee81b96
[ "MIT" ]
74
2016-09-14T19:52:32.000Z
2018-10-03T10:11:16.000Z
src/wallet/migrations/0008_migrate_trxs.py
uppsaladatavetare/foobar-api
c63e824ce246b15163e352f5150ef4ecbee81b96
[ "MIT" ]
7
2017-02-08T13:11:20.000Z
2021-08-11T07:29:35.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-18 20:29 from __future__ import unicode_literals import enum from django.db.models import Sum from django.db import migrations from moneyed import Money class TrxTypeOld(enum.Enum): INCOMING = 0 OUTGOING = 1 class TrxType(enum.Enum): FINAL...
31.28
74
0.638534
419
0.178602
0
0
0
0
0
0
311
0.132566
94273c713ab37d904542b3d0103d1a9ec8a8232d
20,935
py
Python
src/system/libs/python/seiscomp3/Shell.py
thefroid/seiscomp3
0b05d5550dcea000a93c7d9a39c5347d8786a91a
[ "Naumen", "Condor-1.1", "MS-PL" ]
2
2015-09-17T22:43:50.000Z
2017-11-29T20:27:11.000Z
src/system/libs/python/seiscomp3/Shell.py
thefroid/seiscomp3
0b05d5550dcea000a93c7d9a39c5347d8786a91a
[ "Naumen", "Condor-1.1", "MS-PL" ]
2
2016-04-26T00:03:09.000Z
2017-12-05T02:24:50.000Z
src/system/libs/python/seiscomp3/Shell.py
salichon/seiscomp3
4f7715f9ff9a35e7912c379ebf10446d0bceaeb2
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
############################################################################ # Copyright (C) by gempa GmbH, GFZ Potsdam # # # # You can redistribute and/or modify this program under the # # terms o...
31.014815
96
0.459422
19,419
0.927585
0
0
0
0
0
0
5,793
0.276714
9427c1c57cf677a2859c3b47d370c6f3bd16a79d
543
py
Python
asyncqtpy/common.py
codelv/asyncqtpy
def6207aa44c7de794345816fff514103c2440bb
[ "BSD-2-Clause" ]
null
null
null
asyncqtpy/common.py
codelv/asyncqtpy
def6207aa44c7de794345816fff514103c2440bb
[ "BSD-2-Clause" ]
null
null
null
asyncqtpy/common.py
codelv/asyncqtpy
def6207aa44c7de794345816fff514103c2440bb
[ "BSD-2-Clause" ]
null
null
null
# © 2018 Gerard Marull-Paretas <gerard@teslabs.com> # © 2014 Mark Harviston <mark.harviston@gmail.com> # © 2014 Arve Knudsen <arve.knudsen@gmail.com> # BSD License """Mostly irrelevant, but useful utilities common to UNIX and Windows.""" import logging def with_logger(cls): """Class decorator to add a logger to ...
30.166667
73
0.714549
0
0
0
0
0
0
0
0
315
0.576923
9427fe62f70bac3dffa9c51e9108759e4dbc47d2
13,665
pyp
Python
plugins/Py-RoundedTube/Py-RoundedTube.pyp
tdapper/cinema4d_py_sdk
32b1d2b63fe28510c83c66065394042900000e92
[ "Apache-2.0" ]
113
2015-12-11T11:00:49.000Z
2022-03-27T01:33:12.000Z
plugins/Py-RoundedTube/Py-RoundedTube.pyp
tdapper/cinema4d_py_sdk
32b1d2b63fe28510c83c66065394042900000e92
[ "Apache-2.0" ]
3
2016-04-04T12:45:28.000Z
2019-04-12T08:33:38.000Z
plugins/Py-RoundedTube/Py-RoundedTube.pyp
tdapper/cinema4d_py_sdk
32b1d2b63fe28510c83c66065394042900000e92
[ "Apache-2.0" ]
50
2015-11-16T11:13:02.000Z
2022-03-26T07:05:25.000Z
""" RoundedTube Copyright: MAXON Computer GmbH Written for Cinema 4D R18 Modified Date: 05/12/2018 """ import os import math import sys import c4d from c4d import plugins, utils, bitmaps, gui # Be sure to use a unique ID obtained from www.plugincafe.com PLUGIN_ID = 1025250 class RoundedTube(plugins.ObjectData): ...
38.064067
195
0.589901
12,610
0.922795
0
0
1,381
0.101061
0
0
2,063
0.15097
942a08b6947bb2c1cb07c5fce687f9f20cbf31ee
1,548
py
Python
scripts/models/checkpoint.py
daniele21/DL_soccer_prediction_v2
97bafe911fd8883d6679cf55fd0fff34db67ef06
[ "MIT" ]
null
null
null
scripts/models/checkpoint.py
daniele21/DL_soccer_prediction_v2
97bafe911fd8883d6679cf55fd0fff34db67ef06
[ "MIT" ]
null
null
null
scripts/models/checkpoint.py
daniele21/DL_soccer_prediction_v2
97bafe911fd8883d6679cf55fd0fff34db67ef06
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from scripts.utils.saving import save_soccer_model def checkpoint(model, early_stopping=True): losses = model.losses patience_rate = model.es_patience if(len(losses['train']) > 1 and len(losses['eval']) > 1 and early_stopping): last_train_loss = losses['train'][-2] ...
33.652174
102
0.605943
0
0
0
0
0
0
0
0
600
0.387597
942a3017af0e69609df179fb9df9ebaec85f8069
1,115
py
Python
Python-tools/FaceSaver/face_saver.py
maikelronnau/studies
794cde51ea69ed6eaee8e38d47dcff6d37fba8b7
[ "MIT" ]
null
null
null
Python-tools/FaceSaver/face_saver.py
maikelronnau/studies
794cde51ea69ed6eaee8e38d47dcff6d37fba8b7
[ "MIT" ]
2
2018-08-30T20:45:12.000Z
2018-09-14T02:44:06.000Z
Python-tools/FaceSaver/face_saver.py
maikelronnau/studies
794cde51ea69ed6eaee8e38d47dcff6d37fba8b7
[ "MIT" ]
null
null
null
import numpy as np import os import cv2 from multiprocessing import Process faceCascade = cv2.CascadeClassifier('haarcascade_frontalface_alt.xml') def process_directory(directory): print 'Processing {}: started'.format(directory) images = os.listdir(directory) for img in images: image = cv2.imrea...
29.342105
89
0.572197
0
0
0
0
0
0
0
0
98
0.087892
942d0bcdfeaa1163d62e0939cf24c2b534c1fc62
215
py
Python
problems/0003/compute.py
Dynortice/Project-Euler
99a0201b5d5f147eab77fc52d9db8995045cded0
[ "MIT" ]
null
null
null
problems/0003/compute.py
Dynortice/Project-Euler
99a0201b5d5f147eab77fc52d9db8995045cded0
[ "MIT" ]
null
null
null
problems/0003/compute.py
Dynortice/Project-Euler
99a0201b5d5f147eab77fc52d9db8995045cded0
[ "MIT" ]
null
null
null
from euler.primes import smallest_prime_factor def compute(n: int) -> int: while True: prime = smallest_prime_factor(n) if prime < n: n //= prime else: return n
19.545455
46
0.55814
0
0
0
0
0
0
0
0
0
0
942dc9b440e4ffa9fdc514a9cb6d21b6ea806211
398
py
Python
Solutions/PAT/Basic/1004.py
Kahsolt/OJ-Notes
6623ab7d61e305ce0467d6220f49134044b67c9e
[ "WTFPL" ]
null
null
null
Solutions/PAT/Basic/1004.py
Kahsolt/OJ-Notes
6623ab7d61e305ce0467d6220f49134044b67c9e
[ "WTFPL" ]
null
null
null
Solutions/PAT/Basic/1004.py
Kahsolt/OJ-Notes
6623ab7d61e305ce0467d6220f49134044b67c9e
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python3 # 成绩排名 (20) n = int(input()) l = input() maxRecord = l minRecord = l maxScore = int(l.split()[2]) minScore = int(l.split()[2]) for i in range(n-1): l = input() s = int(l.split()[2]) if s < minScore: minScore = s minRecord = l if s > maxScore: maxScore = s maxRecord = l p...
18.952381
39
0.580402
0
0
0
0
0
0
0
0
47
0.115764
942e7f06e4223544b111045d0bf09989375fa72f
505
py
Python
start.py
davionchai/um-7009-bdaa
9adc304a786e7438568f2f1b1f6ce4bdb079662c
[ "Apache-2.0" ]
null
null
null
start.py
davionchai/um-7009-bdaa
9adc304a786e7438568f2f1b1f6ce4bdb079662c
[ "Apache-2.0" ]
1
2022-01-18T09:41:25.000Z
2022-01-18T09:41:25.000Z
start.py
davionchai/um-7009-bdaa
9adc304a786e7438568f2f1b1f6ce4bdb079662c
[ "Apache-2.0" ]
null
null
null
# db init from tinydb import TinyDB from constants.directory import DB_PATH, TRAINING_PATH def main(): initialize_db() def initialize_db(): try: if not TRAINING_PATH.exists(): print(f"Dir - [{TRAINING_PATH}] not found. Proceeding to create the dir.") TRAINING_PATH.mkdir(paren...
22.954545
86
0.659406
0
0
0
0
0
0
0
0
140
0.277228
942ecae3009ce2581679881569b9f0511a4f09f7
9,057
py
Python
thseq/modules/attention.py
DeepLearnXMU/ABDNMT-RNMT
c3b20e4afdbfee5741e95a42bbd31329bb9bb93d
[ "MIT" ]
12
2019-08-17T15:40:11.000Z
2022-02-04T16:22:18.000Z
thseq/modules/attention.py
DeepLearnXMU/ABDNMT-RNMT
c3b20e4afdbfee5741e95a42bbd31329bb9bb93d
[ "MIT" ]
null
null
null
thseq/modules/attention.py
DeepLearnXMU/ABDNMT-RNMT
c3b20e4afdbfee5741e95a42bbd31329bb9bb93d
[ "MIT" ]
3
2019-06-04T08:39:56.000Z
2020-01-10T06:52:04.000Z
import torch import torch.nn as nn import torch.nn.functional as F class Attention(nn.Module): def __init__(self, query_size, attention_size): super(Attention, self).__init__() self.query_size = query_size self.key_size = attention_size self.map_query = nn.Linear(query_size, attent...
38.540426
114
0.602738
7,873
0.869272
0
0
0
0
0
0
3,265
0.360495
942f52a56216cd9dd4b3b55735c54ed5fcbd5571
610
py
Python
ex42.py
hninpoeaukyaw/python_exercises
5d2271a7a3e5b242dde95288d7962e912bcfd702
[ "MIT" ]
null
null
null
ex42.py
hninpoeaukyaw/python_exercises
5d2271a7a3e5b242dde95288d7962e912bcfd702
[ "MIT" ]
null
null
null
ex42.py
hninpoeaukyaw/python_exercises
5d2271a7a3e5b242dde95288d7962e912bcfd702
[ "MIT" ]
null
null
null
class Animal(object): pass class Dog(Animal): def __init__(self, name): self.name = name class Cat(Animal): def __init__(self, name): self.name = name class Person(object): def __init__(self, name): self.name = name self.pet = None class Employee(Person): def __init__(self, name, salary): super(Employee, self).__init__...
19.0625
36
0.722951
159
0.260656
0
0
0
0
0
0
27
0.044262
94307fbfc839df25d3fad02f6fd8299ed5a1b1c1
877
py
Python
leetcode/0-250/335-76. Minimum Window Substring.py
palash24/algorithms-and-data-structures
164be7d1a501a21af808673888964bbab36243a1
[ "MIT" ]
23
2018-11-06T03:54:00.000Z
2022-03-14T13:30:40.000Z
leetcode/0-250/335-76. Minimum Window Substring.py
palash24/algorithms-and-data-structures
164be7d1a501a21af808673888964bbab36243a1
[ "MIT" ]
null
null
null
leetcode/0-250/335-76. Minimum Window Substring.py
palash24/algorithms-and-data-structures
164be7d1a501a21af808673888964bbab36243a1
[ "MIT" ]
5
2019-05-24T16:56:45.000Z
2022-03-10T17:29:10.000Z
# 76. Minimum Window Substring import collections class Solution: def minWindow(self, s: str, t: str) -> str: cnt = collections.Counter(t) fix_cnt = cnt.copy() n = rem = len(t) l = r = 0 ans = None while r < len(s): while r < len(s) and rem > 0: ...
30.241379
68
0.371722
772
0.880274
0
0
0
0
0
0
54
0.061574
9432f1baae90553cebe69202cb4904909bae73e4
3,737
py
Python
examples/infersent.py
goel96vibhor/AdvSentEval
c23684c5f9da905517071361fdb40acf194cd608
[ "BSD-3-Clause" ]
2
2018-12-19T22:06:22.000Z
2019-01-29T16:59:31.000Z
examples/infersent.py
goel96vibhor/AdvSentEval
c23684c5f9da905517071361fdb40acf194cd608
[ "BSD-3-Clause" ]
null
null
null
examples/infersent.py
goel96vibhor/AdvSentEval
c23684c5f9da905517071361fdb40acf194cd608
[ "BSD-3-Clause" ]
2
2019-02-10T22:40:43.000Z
2019-04-03T06:16:33.000Z
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # """ InferSent models. See https://github.com/facebookresearch/InferSent. """ from __future__ import absolute_import, division,...
33.366071
138
0.704843
0
0
0
0
0
0
0
0
1,523
0.407546
943348300720cc80d81688b70013a870e1f308db
5,680
py
Python
hyperadmin/states.py
zbyte64/django-hyperadmin
9ac2ae284b76efb3c50a1c2899f383a27154cb54
[ "BSD-3-Clause" ]
25
2015-01-26T11:37:22.000Z
2021-04-05T17:21:05.000Z
hyperadmin/states.py
webcube/django-hyperadmin
c6fcbd227098ea02a2c1a2865664fbbef92107dc
[ "BSD-3-Clause" ]
1
2015-04-13T04:19:49.000Z
2015-04-13T04:19:49.000Z
hyperadmin/states.py
webcube/django-hyperadmin
c6fcbd227098ea02a2c1a2865664fbbef92107dc
[ "BSD-3-Clause" ]
2
2017-05-24T13:33:17.000Z
2019-11-14T06:24:48.000Z
from copy import copy from django.utils.http import urlencode from django.utils.datastructures import MergeDict from django.http import QueryDict from hyperadmin.links import LinkCollectionProvider, LinkCollectorMixin class State(MergeDict): def __init__(self, substates=[], data={}): self.active_diction...
31.910112
100
0.594542
5,452
0.959859
0
0
583
0.102641
0
0
530
0.09331
943370e1bfc6784163e96c08d443c0404b7a159d
799
py
Python
pymeteo/constants.py
Matze77/pyMeteo
8cf234e996c2f294da175ce89e22c8f80ce0df15
[ "BSD-3-Clause" ]
51
2015-09-02T16:48:36.000Z
2022-03-03T04:01:09.000Z
pymeteo/constants.py
Matze77/pyMeteo
8cf234e996c2f294da175ce89e22c8f80ce0df15
[ "BSD-3-Clause" ]
26
2015-06-16T21:30:21.000Z
2019-12-12T12:53:30.000Z
pymeteo/constants.py
Matze77/pyMeteo
8cf234e996c2f294da175ce89e22c8f80ce0df15
[ "BSD-3-Clause" ]
20
2015-12-25T05:57:37.000Z
2022-01-06T06:44:55.000Z
"""This module provides constants used in the rest of the package """ # some constants missingval = -99999999. m2km = 0.001 km2m = 1000. gravity = 9.81 maxparcels = 99999 L = 2.501e6 # latent heat of vaporization Rd = 287.04 # gas constant dry air Rv = 461.5 # gas constant water vapor epsilon ...
17.755556
65
0.627034
0
0
0
0
0
0
0
0
246
0.307885
943405ec2b5893fc8c55f18e23a5611334471ceb
23,161
py
Python
baikal/_core/model.py
awesome-archive/baikal
c44b4f1b0f7a01ca5d41762043723aeeb5a130c9
[ "BSD-3-Clause" ]
1
2019-11-18T23:12:22.000Z
2019-11-18T23:12:22.000Z
baikal/_core/model.py
awesome-archive/baikal
c44b4f1b0f7a01ca5d41762043723aeeb5a130c9
[ "BSD-3-Clause" ]
null
null
null
baikal/_core/model.py
awesome-archive/baikal
c44b4f1b0f7a01ca5d41762043723aeeb5a130c9
[ "BSD-3-Clause" ]
1
2020-04-19T12:16:15.000Z
2020-04-19T12:16:15.000Z
from collections import defaultdict from typing import Union, List, Dict, Set, Iterable, Optional from baikal._core.data_placeholder import is_data_placeholder_list, DataPlaceholder from baikal._core.digraph import DiGraph from baikal._core.step import Step, InputStep from baikal._core.typing import ArrayLike from bai...
35.964286
112
0.614265
20,893
0.902077
0
0
1,685
0.072752
0
0
10,137
0.437675
943464b9a939d5e26362c02446f6afb5de549747
1,127
py
Python
elmo-chainer/bilm_encode_sentenses.py
take-cheeze/models
3ded8fd062c57f20f6154cac2dd0d998181de755
[ "MIT" ]
112
2018-04-18T07:13:03.000Z
2022-03-11T03:36:34.000Z
elmo-chainer/bilm_encode_sentenses.py
take-cheeze/models
3ded8fd062c57f20f6154cac2dd0d998181de755
[ "MIT" ]
16
2018-05-11T11:41:08.000Z
2021-04-24T03:50:54.000Z
elmo-chainer/bilm_encode_sentenses.py
take-cheeze/models
3ded8fd062c57f20f6154cac2dd0d998181de755
[ "MIT" ]
45
2018-04-18T07:13:06.000Z
2021-12-22T03:46:18.000Z
''' Encode dataset as biLM embeddings to a file. ''' import argparse import json from bilm import dump_bilm_embeddings parser = argparse.ArgumentParser() parser.add_argument('--gpu', '-g', type=int, default=-1, help='GPU ID (negative value indicates CPU)') parser.add_argument('--batchsize', '-b', ...
33.147059
72
0.704525
0
0
0
0
0
0
0
0
394
0.349601
94352c18896ac52cb3e3688b9085e562ded5443b
7,023
py
Python
Autonomous/libs/ARTracker.py
ROMANT21/SoonerRoverTeamV
7d09b3d5afec8e3d0ac112d3bf28bcaabce28b50
[ "MIT" ]
null
null
null
Autonomous/libs/ARTracker.py
ROMANT21/SoonerRoverTeamV
7d09b3d5afec8e3d0ac112d3bf28bcaabce28b50
[ "MIT" ]
null
null
null
Autonomous/libs/ARTracker.py
ROMANT21/SoonerRoverTeamV
7d09b3d5afec8e3d0ac112d3bf28bcaabce28b50
[ "MIT" ]
null
null
null
import cv2 import cv2.aruco as aruco import numpy as np import configparser import os class ARTracker: # Constructor def __init__(self, cameras, write=False): self.write=write self.distanceToMarker = -1 self.distanceToMarker1 = 0 self.distanceToMarker2 = 0 self.widthOf...
46.82
137
0.544212
6,934
0.987327
0
0
0
0
0
0
1,534
0.218425
94354260b7f3c6fef0f04ea5b99624f3fede367a
1,850
py
Python
fb_api.py
ianchen06/bus_bot
d8808deda07e7455f82497f6cb4efa65bb46732b
[ "MIT" ]
null
null
null
fb_api.py
ianchen06/bus_bot
d8808deda07e7455f82497f6cb4efa65bb46732b
[ "MIT" ]
null
null
null
fb_api.py
ianchen06/bus_bot
d8808deda07e7455f82497f6cb4efa65bb46732b
[ "MIT" ]
null
null
null
import os import requests PAGE_ACCESS_TOKEN = os.getenv('PAGE_ACCESS_TOKEN') def send_msg(data): res = requests.post("https://graph.facebook.com/v2.6/me/messages", params={'access_token': PAGE_ACCESS_TOKEN}, json=data) if res.status_code == 200: pass ...
27.205882
129
0.535676
0
0
0
0
0
0
0
0
829
0.440489
9436f350e7d7acc2d2cbaf063890d3cd75d3b805
5,015
py
Python
tuinwolk/tests/algorithm_test.py
TuinfeesT/TuinWolk
0af0321948f4f573d8eb5ad1b87ea42bfa6644e1
[ "MIT" ]
1
2017-09-08T02:34:22.000Z
2017-09-08T02:34:22.000Z
tuinwolk/tests/algorithm_test.py
TuinfeesT/TuinWolk
0af0321948f4f573d8eb5ad1b87ea42bfa6644e1
[ "MIT" ]
null
null
null
tuinwolk/tests/algorithm_test.py
TuinfeesT/TuinWolk
0af0321948f4f573d8eb5ad1b87ea42bfa6644e1
[ "MIT" ]
null
null
null
import random, string, sys GROWTH_RATE = 2 # we only place repo's in locations that support at least GROWTH_RATE times the size of the repo CHIP_RATE = 0.9 # if a repo has no locations that support GROWTH_RATE * repo.local_size, we chip off a bit off the desired size to see if we can find a repo anyway MAX_SERVERS = 1...
31.149068
185
0.705085
1,810
0.360917
0
0
0
0
0
0
784
0.156331
94370721e69f25f233cc1d50ab8e488f9896e6fc
881
py
Python
Basic Data Structures/string/StringToInteger.py
rush2catch/algorithms-leetcode
38a5e6aa33d48fa14fe09c50c28a2eaabd736e55
[ "MIT" ]
null
null
null
Basic Data Structures/string/StringToInteger.py
rush2catch/algorithms-leetcode
38a5e6aa33d48fa14fe09c50c28a2eaabd736e55
[ "MIT" ]
null
null
null
Basic Data Structures/string/StringToInteger.py
rush2catch/algorithms-leetcode
38a5e6aa33d48fa14fe09c50c28a2eaabd736e55
[ "MIT" ]
null
null
null
class Solution(object): def compareVersion(self, version1, version2): v1 = version1.split('.') v2 = version2.split('.') int_v1 = 0 int_v2 = 0 point_v1 = 0 point_v2 = 0 int_v1 = self.convert(v1[0]) int_v2 = self.convert(v2[0]) if len(v1) > 1: point_v1 = self.convert(v1[1]) if len(v2) > 1: ...
17.62
80
0.553916
793
0.900114
0
0
0
0
0
0
53
0.060159
943809361a17063e9ad22cf431e9277484379aec
1,003
py
Python
src/day3.py
mfrdbigolin/AoC2020
18757f0d610ad6a7064a22f94688900208260e48
[ "MIT" ]
null
null
null
src/day3.py
mfrdbigolin/AoC2020
18757f0d610ad6a7064a22f94688900208260e48
[ "MIT" ]
null
null
null
src/day3.py
mfrdbigolin/AoC2020
18757f0d610ad6a7064a22f94688900208260e48
[ "MIT" ]
null
null
null
#!/bin/python3 # Copyright (C) 2020 Matheus Fernandes Bigolin <mfrdrbigolin@disroot.org> # SPDX-License-Identifier: MIT """Day Three, Toboggan Trajectory.""" from sys import argv from utils import open_file, arrange, usage_and_exit, product def solve(terrain, slopes): """Return the product of the number of t...
22.288889
74
0.63011
0
0
0
0
0
0
0
0
350
0.348953
943a6e918a39fde29903bdaa2b2cdab7804a8d42
203
py
Python
mamba/__init__.py
jaimegildesagredo/mamba
f7cdb231b5eec036edba05752ae90d174751aa10
[ "MIT" ]
null
null
null
mamba/__init__.py
jaimegildesagredo/mamba
f7cdb231b5eec036edba05752ae90d174751aa10
[ "MIT" ]
null
null
null
mamba/__init__.py
jaimegildesagredo/mamba
f7cdb231b5eec036edba05752ae90d174751aa10
[ "MIT" ]
null
null
null
from mamba.loader import describe, context from mamba.hooks import before, after from mamba.decorators import pending __all__ = ['describe', 'context', 'before', 'after', 'pending'] __version__ = '0.6'
29
63
0.748768
0
0
0
0
0
0
0
0
48
0.236453
943c68bb009981d99005672e8d3f04e12a35c5f4
1,753
py
Python
utils/large_pickle.py
t-aritake/ancestral_atom_learning
1af3451058f31dfdd28289bb05e90bb2ec1d9e5d
[ "MIT" ]
null
null
null
utils/large_pickle.py
t-aritake/ancestral_atom_learning
1af3451058f31dfdd28289bb05e90bb2ec1d9e5d
[ "MIT" ]
null
null
null
utils/large_pickle.py
t-aritake/ancestral_atom_learning
1af3451058f31dfdd28289bb05e90bb2ec1d9e5d
[ "MIT" ]
null
null
null
import pickle # openしたfileのread, write関数を細工して,2**3 class LargeObject(object): def __init__(self, f): self.f = f def __getattr__(self, item): # 項目名'item'を参照されたらf.'item'を返す # (itemは任意の文字列) # 要するにfile objectのread write以外は元のファイルオブジェクトを見ればよい return getattr(self.f, item) ...
31.303571
101
0.560753
1,500
0.760264
0
0
0
0
0
0
583
0.295489
943df8ec9917dadf2f8a3e2c1b6cb3862ab6f172
349
py
Python
controllers/tests/spawn.py
neuroailab/magnebot
3f537fcd95685efeadf7200208a310a4c6a2f10c
[ "MIT" ]
null
null
null
controllers/tests/spawn.py
neuroailab/magnebot
3f537fcd95685efeadf7200208a310a4c6a2f10c
[ "MIT" ]
null
null
null
controllers/tests/spawn.py
neuroailab/magnebot
3f537fcd95685efeadf7200208a310a4c6a2f10c
[ "MIT" ]
null
null
null
from magnebot.test_controller import TestController, ActionStatus """ Test whether the Magnebot is initialized successfully. """ if __name__ == "__main__": m = TestController() status = m.init_scene() assert status == ActionStatus.success, status status = m.move_by(1) assert status == ActionStatus...
24.928571
65
0.713467
0
0
0
0
0
0
0
0
72
0.206304
943f4b96e47fad94ad779b8d7570c1b93a4ab158
4,373
py
Python
RpiServer/main.py
MaxThom/LightYourHearth
bdd6b871ce076d6fa7ab7ad721d345c6f7e5fc5c
[ "MIT" ]
null
null
null
RpiServer/main.py
MaxThom/LightYourHearth
bdd6b871ce076d6fa7ab7ad721d345c6f7e5fc5c
[ "MIT" ]
4
2021-06-08T22:21:15.000Z
2022-03-12T00:47:34.000Z
RpiServer/main.py
MaxThom/LightYourHearth-rpi
e8b01569e583d7aa3343b9bdcd8b0e7d4834ae5f
[ "MIT" ]
null
null
null
from blue_connect import BluetoothComm from ledstrip import Ledstrip from button_manager import ButtonManager import subprocess import constants import pprint import time import datetime # ps -ef | grep python # sudo kill -9 [pid] # pip freeze > requirements.txt # pip install -r requirements.txt # sudo systemctl st...
34.706349
102
0.686943
0
0
0
0
0
0
0
0
483
0.11045
9440dc39866b4ed3cdff0a21be7c14bc4667a7e9
837
py
Python
tutorials/10-days-of-statistics/s10-normal-distribution-2.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
41
2018-05-11T07:54:34.000Z
2022-03-29T19:02:32.000Z
tutorials/10-days-of-statistics/s10-normal-distribution-2.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
2
2021-09-13T10:03:26.000Z
2021-10-04T10:21:05.000Z
tutorials/10-days-of-statistics/s10-normal-distribution-2.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
21
2019-01-23T19:06:59.000Z
2021-12-23T16:03:47.000Z
# Tutorials > 10 Days of Statistics > Day 5: Normal Distribution II # Problems based on basic statistical distributions. # # https://www.hackerrank.com/challenges/s10-normal-distribution-2/problem # challenge id: 21230 # import math def N(x, µ, σ): """ Normal Distribution """ π = math.pi return math.exp(...
24.617647
74
0.610514
0
0
0
0
0
0
0
0
424
0.491309
9441d12538aebf4fa87c06330fdaa81538b0282c
2,214
py
Python
cloud.py
ArkinSolomon/Cuby
c0957efee8f2f29cc85fb155a4f8fd5658482881
[ "MIT" ]
null
null
null
cloud.py
ArkinSolomon/Cuby
c0957efee8f2f29cc85fb155a4f8fd5658482881
[ "MIT" ]
null
null
null
cloud.py
ArkinSolomon/Cuby
c0957efee8f2f29cc85fb155a4f8fd5658482881
[ "MIT" ]
null
null
null
import pygame from random import randrange from cloud_part import Cloud_Part import math ''' This class creates clouds at random locations in the screen. ''' class Cloud(object): # Class initializer def __init__(self, screen, width, height, horizontal_constraints, vertical_constraints, VERBOSE): super...
38.842105
101
0.533875
2,054
0.927733
0
0
0
0
0
0
242
0.109304
9441f8090083e12e5068f348f98fdd3f2fe20640
2,070
py
Python
backend/audio_analysis/audio_emotions.py
shan-memery/political-atlas
ecfcd7185592943c34487ec9fae65916d5f2f212
[ "MIT" ]
3
2021-02-22T00:56:48.000Z
2021-03-25T06:15:38.000Z
backend/audio_analysis/audio_emotions.py
shan-memery/political-atlas
ecfcd7185592943c34487ec9fae65916d5f2f212
[ "MIT" ]
3
2021-05-03T18:42:30.000Z
2022-02-27T12:23:09.000Z
backend/audio_analysis/audio_emotions.py
shan-memery/political-atlas
ecfcd7185592943c34487ec9fae65916d5f2f212
[ "MIT" ]
null
null
null
import base64 import json import pathlib import requests import sys BASE_DIR = pathlib.Path(__file__).parent.absolute() with open(BASE_DIR.joinpath('config.json')) as config_file: config = json.load(config_file) WEB_HOOK = "https://pabe.vanillacre.me/deepwebhook" querystring: dict = { "apikey": config['API_K...
33.934426
106
0.702415
0
0
0
0
0
0
0
0
811
0.391787
94430051a0be192eb8095277d402c71833104df1
104
py
Python
uvcoverage-plot.py
haricash/bayesian-ionized-bubbles
c0de5d8ff66f797c72f119b1bc9b11ff8cc63ee6
[ "MIT" ]
null
null
null
uvcoverage-plot.py
haricash/bayesian-ionized-bubbles
c0de5d8ff66f797c72f119b1bc9b11ff8cc63ee6
[ "MIT" ]
null
null
null
uvcoverage-plot.py
haricash/bayesian-ionized-bubbles
c0de5d8ff66f797c72f119b1bc9b11ff8cc63ee6
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt data = np.load("uv-coverage.npy") print(data.shape)
17.333333
33
0.759615
0
0
0
0
0
0
0
0
17
0.163462
944340e0a695126f125615f284c92afb1ac4bd00
4,587
py
Python
gravy/sndfile/__init__.py
greenbender/django-gravy
cbdf33db31c73797ca704a89707b6bba48fb3cb9
[ "BSD-3-Clause" ]
6
2018-04-02T22:00:57.000Z
2021-12-17T00:33:12.000Z
gravy/sndfile/__init__.py
greenbender/django-gravy
cbdf33db31c73797ca704a89707b6bba48fb3cb9
[ "BSD-3-Clause" ]
null
null
null
gravy/sndfile/__init__.py
greenbender/django-gravy
cbdf33db31c73797ca704a89707b6bba48fb3cb9
[ "BSD-3-Clause" ]
null
null
null
from _binding import * class SndFileError(Exception): pass class VirtualIO(SF_VIRTUAL_IO): def __init__(self, fd): # references self._fd = fd self._c_char = c_char self._string_at = string_at def get_filelen(userdata): where = self._fd.tell() ...
29.216561
96
0.571179
4,551
0.992152
0
0
805
0.175496
0
0
153
0.033355
94469ec893b63ee14bfa7d21379d184d4d336ea8
77
py
Python
__init__.py
AustinCasteel/FacebookBirthdays
aac83eab7b76bad37ff3e074e3a5b45b12107217
[ "MIT" ]
null
null
null
__init__.py
AustinCasteel/FacebookBirthdays
aac83eab7b76bad37ff3e074e3a5b45b12107217
[ "MIT" ]
null
null
null
__init__.py
AustinCasteel/FacebookBirthdays
aac83eab7b76bad37ff3e074e3a5b45b12107217
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .facebookbirthday import FacebookBirthdayPlugin
25.666667
52
0.753247
0
0
0
0
0
0
0
0
23
0.298701
9449a2b0d6c1565d42d9cb5e3842bc3035d92db9
833
py
Python
basics/testTkinter1.py
lostFox/autoRunSomething
519f2ebca6e2c78aa3caeed2e88b8f92403a8b46
[ "BSD-3-Clause" ]
null
null
null
basics/testTkinter1.py
lostFox/autoRunSomething
519f2ebca6e2c78aa3caeed2e88b8f92403a8b46
[ "BSD-3-Clause" ]
1
2020-04-28T07:54:19.000Z
2020-05-23T17:57:43.000Z
basics/testTkinter1.py
lostFox/autoRunSomething
519f2ebca6e2c78aa3caeed2e88b8f92403a8b46
[ "BSD-3-Clause" ]
null
null
null
"""tkimage.pyw 简单的图片查看器 """ import tkinter as tk import tkinter.filedialog as fd def openimage(canvas): """事件处理函数:使用文件对话框打开图片 """ filename = fd.askopenfilename(filetypes=[("PNG图片", "*.png"), ("GIF图片", "*.gif")]) global image # 注意这个需要定义为全局变量 ...
25.242424
66
0.565426
0
0
0
0
0
0
0
0
340
0.343782
9449bc4a88c928fcca8b119b92228696c1d3f838
1,027
py
Python
tests/test_data.py
eyaler/alt-reality-cam
317c84239b64dc761f05f38c2d0024dc82237fa4
[ "MIT" ]
3
2019-05-04T14:04:41.000Z
2020-12-10T22:05:03.000Z
tests/test_data.py
eyaler/alt-reality-cam
317c84239b64dc761f05f38c2d0024dc82237fa4
[ "MIT" ]
null
null
null
tests/test_data.py
eyaler/alt-reality-cam
317c84239b64dc761f05f38c2d0024dc82237fa4
[ "MIT" ]
null
null
null
import joblib import pandas as pd from util import draw_boxes, display_image, get_image_from_s3, get_image_boxes import os objects = joblib.load(os.path.join('..','data','data.joblib')) id2url = joblib.load(os.path.join('..','data','id2url.joblib')) meta = pd.read_csv(os.path.join('..','open_images_', 'validation-ima...
26.333333
100
0.682571
0
0
0
0
0
0
0
0
383
0.372931
944b24d006ea6d6534e3cafb96fdf06a586981fc
52
py
Python
tests/__init__.py
codiceviola/environ
1173690a84a85efe43fd5a26443b4f43f96f3e98
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
codiceviola/environ
1173690a84a85efe43fd5a26443b4f43f96f3e98
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
codiceviola/environ
1173690a84a85efe43fd5a26443b4f43f96f3e98
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Codice Viola © 2020."""
13
26
0.480769
0
0
0
0
0
0
0
0
50
0.943396
944bb4c301ced596aa5db3a3e40634312604d90b
1,233
py
Python
6_CommandPattern/Invoker.py
gama79530/DesignPattern
707e20a1e379d59b6b41a5fe389935c8caa4b1b1
[ "MIT" ]
null
null
null
6_CommandPattern/Invoker.py
gama79530/DesignPattern
707e20a1e379d59b6b41a5fe389935c8caa4b1b1
[ "MIT" ]
null
null
null
6_CommandPattern/Invoker.py
gama79530/DesignPattern
707e20a1e379d59b6b41a5fe389935c8caa4b1b1
[ "MIT" ]
null
null
null
import Command class RemoteControlWithUndo : def __init__(self) : no_command = Command.NoCommand() self.on_commands = [no_command, no_command, no_command, no_command, no_command, no_command, no_command] self.off_commands = [no_command, no_command, no_command, no_command, no_command, no_comm...
39.774194
142
0.664234
1,216
0.986212
0
0
0
0
0
0
70
0.056772
944c0444be36853f3a762f2e2f840cd5bc072676
2,458
py
Python
src/oci/cloud_guard/models/update_target_detector_rule_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/cloud_guard/models/update_target_detector_rule_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/cloud_guard/models/update_target_detector_rule_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
34.619718
245
0.704638
1,918
0.780309
0
0
1,948
0.792514
0
0
1,531
0.622864
944d4863c2b49e4ad6cf9e7d921f530ca9d61704
1,174
py
Python
generate_key.py
dfiel/TweetOrYeet
8f92a2bf153d633b9954c221f4c0ade12491b90a
[ "MIT" ]
null
null
null
generate_key.py
dfiel/TweetOrYeet
8f92a2bf153d633b9954c221f4c0ade12491b90a
[ "MIT" ]
null
null
null
generate_key.py
dfiel/TweetOrYeet
8f92a2bf153d633b9954c221f4c0ade12491b90a
[ "MIT" ]
null
null
null
from cryptography.fernet import Fernet import os def validated_input(): while True: text = input("Enter Choice: ") if text != 'Y' and text != 'N': print("Invalid Input") print() continue return text def generate_fernet_key(): if os.path.exists('fer...
32.611111
88
0.517036
0
0
0
0
0
0
0
0
562
0.478705
944e55182faf9a6527a5868bbcdc772b013e1b6d
1,221
py
Python
bcipy/signal/model/inference.py
theGreenJedi/BciPy
222ac9b79f1ab3374e888be9e9b8d86f88d1bc82
[ "MIT" ]
null
null
null
bcipy/signal/model/inference.py
theGreenJedi/BciPy
222ac9b79f1ab3374e888be9e9b8d86f88d1bc82
[ "MIT" ]
5
2021-06-08T23:56:19.000Z
2022-03-12T00:57:00.000Z
bcipy/signal/model/inference.py
theGreenJedi/BciPy
222ac9b79f1ab3374e888be9e9b8d86f88d1bc82
[ "MIT" ]
null
null
null
import numpy as np def inference(x, targets, model, alphabet): """Evaluate the log likelihood ratios given the model and input. Then maps the distribution over the alphabet. Args: x(ndarray(float)): 3 dimensional np array first dimension is channels second dimension is trials and thir...
37
80
0.657658
0
0
0
0
0
0
0
0
851
0.69697
944f4e07ae76e0175a6fe84669287a44fcfa23a9
1,231
py
Python
test/CheckManpage.py
sanel/ledger
81e1b4ff3c78cd18e5d8c3844eb8e406dc3c8836
[ "BSD-3-Clause" ]
3,509
2015-01-01T11:47:51.000Z
2022-03-30T09:22:43.000Z
test/CheckManpage.py
sanel/ledger
81e1b4ff3c78cd18e5d8c3844eb8e406dc3c8836
[ "BSD-3-Clause" ]
651
2015-01-09T16:18:10.000Z
2022-03-26T23:52:00.000Z
test/CheckManpage.py
sanel/ledger
81e1b4ff3c78cd18e5d8c3844eb8e406dc3c8836
[ "BSD-3-Clause" ]
440
2015-01-02T21:28:11.000Z
2022-03-25T05:38:08.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import sys import re import os import argparse from os.path import * from subprocess import Popen, PIPE from CheckOptions import CheckOptions class CheckManpage (CheckOptions): def __init__(self, args): CheckOptions.__init__(...
26.76087
82
0.649878
299
0.242892
0
0
0
0
0
0
356
0.289196
944f7fb44853067aa20905eb80412dcbeeac8cdb
449
py
Python
detector/migrations/0003_alter_measurement_mode.py
SPIN-RD/data_analysis
b2ec9ca008781f3015ec3780a858de0dac4549b9
[ "MIT" ]
null
null
null
detector/migrations/0003_alter_measurement_mode.py
SPIN-RD/data_analysis
b2ec9ca008781f3015ec3780a858de0dac4549b9
[ "MIT" ]
null
null
null
detector/migrations/0003_alter_measurement_mode.py
SPIN-RD/data_analysis
b2ec9ca008781f3015ec3780a858de0dac4549b9
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-21 12:01 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('detector', '0002_auto_20210821_1201'), ] operations = [ migrations.AlterField( model_name='measurement', name='mode'...
23.631579
109
0.628062
356
0.792873
0
0
0
0
0
0
148
0.329621
9450618219812524336f36a73f4f2432207e9704
1,789
py
Python
examples/somebenchmark.py
dunnkers/fseval
49a11a63e09e65b1f14389b6ba3a9ae3aeae086d
[ "MIT" ]
5
2020-07-08T11:58:46.000Z
2022-01-26T13:58:00.000Z
examples/somebenchmark.py
dunnkers/fseval
49a11a63e09e65b1f14389b6ba3a9ae3aeae086d
[ "MIT" ]
63
2021-05-09T06:18:24.000Z
2022-03-27T18:05:58.000Z
examples/somebenchmark.py
dunnkers/fseval
49a11a63e09e65b1f14389b6ba3a9ae3aeae086d
[ "MIT" ]
1
2022-02-11T03:24:14.000Z
2022-02-11T03:24:14.000Z
import hydra from fseval.adapters.openml import OpenMLDataset from fseval.config import DatasetConfig, EstimatorConfig, PipelineConfig from fseval.main import run_pipeline from fseval.types import Task from hydra.core.config_store import ConfigStore from sklearn.base import BaseEstimator from sklearn.feature_selection ...
24.506849
72
0.713248
147
0.08144
0
0
115
0.063712
0
0
414
0.229363
94509be309d1816f01aaf5c9843c5c4efa72acc0
2,776
py
Python
onadata/apps/remote_app/models.py
awemulya/fieldsight-kobocat
f302d084e30fb637d43ec638c701e01a3dddc721
[ "BSD-2-Clause" ]
38
2017-02-28T05:39:40.000Z
2019-01-16T04:39:04.000Z
onadata/apps/remote_app/models.py
awemulya/fieldsightt
f302d084e30fb637d43ec638c701e01a3dddc721
[ "BSD-2-Clause" ]
20
2017-04-27T09:14:27.000Z
2019-01-17T06:35:52.000Z
onadata/apps/remote_app/models.py
awemulya/fieldsightt
f302d084e30fb637d43ec638c701e01a3dddc721
[ "BSD-2-Clause" ]
5
2017-02-22T12:25:19.000Z
2019-01-15T11:16:40.000Z
from random import choice from string import ascii_lowercase, digits from django.utils import timezone from django.db import models from django.conf import settings from django.contrib.auth import get_user_model from django.db.models.signals import post_delete, post_save from django.dispatch import receiver import j...
26.438095
74
0.67147
1,385
0.498919
0
0
664
0.239193
0
0
53
0.019092
9451d8920aafd4d93813d4d8a6d863e885a6a62c
2,276
py
Python
example_code/HABET_tracker.py
M2I-HABET/ahac2020workshop
7ebc6e2ba3bf10ef18881e96523adc5d54f8d62e
[ "MIT" ]
null
null
null
example_code/HABET_tracker.py
M2I-HABET/ahac2020workshop
7ebc6e2ba3bf10ef18881e96523adc5d54f8d62e
[ "MIT" ]
null
null
null
example_code/HABET_tracker.py
M2I-HABET/ahac2020workshop
7ebc6e2ba3bf10ef18881e96523adc5d54f8d62e
[ "MIT" ]
null
null
null
# HABET Basic Tracking Payload CircuitPython Script # Recieves GPS data and transmits it via LoRa radio module # Utilizes Adafruit Feather M4 Express, Ultimate GPS FeatherWing, RFM95W 433 MHz FeatherWing # Last updated 9/2/2020 by Austin Trask import time import board import busio import digitalio import analogio impo...
25.288889
92
0.685413
0
0
0
0
0
0
0
0
938
0.412127
9453b14b9e14bb2251d140e523b7352f31df8836
1,058
py
Python
message_broker/exchange.py
nicolads87/mnemosine
b8057b3bb6482586c663bba2c392eb2c81795a2a
[ "MIT" ]
null
null
null
message_broker/exchange.py
nicolads87/mnemosine
b8057b3bb6482586c663bba2c392eb2c81795a2a
[ "MIT" ]
null
null
null
message_broker/exchange.py
nicolads87/mnemosine
b8057b3bb6482586c663bba2c392eb2c81795a2a
[ "MIT" ]
null
null
null
#!/usr/bin/env python #=============================== # MNEMOSINE PY EXCHANGE #=============================== from threading import Thread import queue import logging import uuid from message_broker.broker.broker import Broker logging.basicConfig(level=logging.INFO, format='[...
25.804878
62
0.559546
673
0.636106
0
0
0
0
0
0
151
0.142722
9454a7596d445e08a15c5b3eac352a2c7dc0a75a
1,293
py
Python
functionality_cores/jokes.py
SergeJohanns/aboc-bot
542866c5dc2df2d93821fc9c9d5190c6e3089117
[ "MIT" ]
null
null
null
functionality_cores/jokes.py
SergeJohanns/aboc-bot
542866c5dc2df2d93821fc9c9d5190c6e3089117
[ "MIT" ]
null
null
null
functionality_cores/jokes.py
SergeJohanns/aboc-bot
542866c5dc2df2d93821fc9c9d5190c6e3089117
[ "MIT" ]
null
null
null
import time from functionality_core import FCore from functionality_cores.utilcore import asynced from functionality_cores.kerberos import require_ring class jokes(FCore): """Collection of joke commands.""" def get_commands(self): return {"recursion":self.recursion, "bee":self.bee} @asynced ...
36.942857
89
0.581593
1,140
0.881671
0
0
973
0.752514
0
0
110
0.085073
94556addbf8b82be0922fc6157fda0ff5c155248
7,195
py
Python
json_handler/__init__.py
WexxanBest/json_handler
2ba52718102ad882f03fd84969e39931910f8e1a
[ "MIT" ]
1
2021-10-19T13:44:34.000Z
2021-10-19T13:44:34.000Z
json_handler/__init__.py
WexxanBest/json_handler
2ba52718102ad882f03fd84969e39931910f8e1a
[ "MIT" ]
null
null
null
json_handler/__init__.py
WexxanBest/json_handler
2ba52718102ad882f03fd84969e39931910f8e1a
[ "MIT" ]
null
null
null
from pathlib import Path import os from json_handler.utils import save_as_json, load_from_json, create_new_file class List(list): def __init__(self, seq=(), on_change=None): if on_change is None: self.__on_change__ = lambda x: None else: self.__on_change__ = on_change ...
29.979167
114
0.603197
7,072
0.982905
0
0
126
0.017512
0
0
1,689
0.234746
945713b531ab76dc304c8cb885e6156fb03e8b00
1,403
py
Python
02_Optimization/nightRun.py
NaoPagamosEstatistica/mlclass
d47a003edda368959a78cf207e66e77a80e6f5b3
[ "MIT" ]
null
null
null
02_Optimization/nightRun.py
NaoPagamosEstatistica/mlclass
d47a003edda368959a78cf207e66e77a80e6f5b3
[ "MIT" ]
null
null
null
02_Optimization/nightRun.py
NaoPagamosEstatistica/mlclass
d47a003edda368959a78cf207e66e77a80e6f5b3
[ "MIT" ]
null
null
null
import os import subprocess from random import randint os.system("g++ hillClimb.cpp -o test -std=c++11") inf = 1<<20 radious = [90, 45, 30, 360, 10] best = [] for i in range(len(radious)): f = open("%d" % (radious[i]), "w") b = open("best%d" % (radious[i]), "w") best += [[-inf]] f.close() b.close()...
25.509091
86
0.498931
0
0
0
0
0
0
0
0
120
0.085531
9459564910a505c210ee0c2d7c209c21ba0721f1
5,243
py
Python
httpserver/tcpserver.py
ansal/http-server
6020b235039bf1332de613a7ffad12c668594cdc
[ "MIT" ]
1
2022-03-26T18:08:54.000Z
2022-03-26T18:08:54.000Z
httpserver/tcpserver.py
ansal/http-server
6020b235039bf1332de613a7ffad12c668594cdc
[ "MIT" ]
null
null
null
httpserver/tcpserver.py
ansal/http-server
6020b235039bf1332de613a7ffad12c668594cdc
[ "MIT" ]
null
null
null
# Simple TCP server import socket import queue import select class TCPServer: def __init__(self, ip, port, callback=None, max_connections=5, bytes_count=1024): # The IP address this server binds to self.ip = ip # The port this server binds to self.port = port # Callbac...
33.825806
87
0.54034
5,177
0.987412
0
0
0
0
0
0
2,170
0.413885
9459bb0f03aa50504d4105c581de763700f9c2e2
445
py
Python
plugin/python/libraries/numpy/v1_x/methods.py
deqode/CodeAnalyser
253488e3f54772010c92d159cd7a9808e13f45e1
[ "MIT" ]
3
2021-07-13T12:48:48.000Z
2021-07-21T07:57:21.000Z
plugin/python/libraries/numpy/v1_x/methods.py
deqode/code-analyser
253488e3f54772010c92d159cd7a9808e13f45e1
[ "MIT" ]
null
null
null
plugin/python/libraries/numpy/v1_x/methods.py
deqode/code-analyser
253488e3f54772010c92d159cd7a9808e13f45e1
[ "MIT" ]
null
null
null
from protos.plugin import library_pb2_grpc, common_pb2 class Methods(library_pb2_grpc.LibraryServiceServicer): def Detect(self, request, context): return common_pb2.ServiceOutputBool(value=True, error=None) def IsUsed(self, request, context): return common_pb2.ServiceOutputBool(value=True, er...
34.230769
67
0.759551
387
0.869663
0
0
0
0
0
0
0
0
945dd0d9b70abc4ba2a33b9db34923ccdcde4e40
2,225
py
Python
src/resource/spear_of_Adun.py
Thrimbda/my-life-for-Aiur
5e385e1b6e49c4b7f75024572d21a6621ad550d9
[ "MIT" ]
null
null
null
src/resource/spear_of_Adun.py
Thrimbda/my-life-for-Aiur
5e385e1b6e49c4b7f75024572d21a6621ad550d9
[ "MIT" ]
null
null
null
src/resource/spear_of_Adun.py
Thrimbda/my-life-for-Aiur
5e385e1b6e49c4b7f75024572d21a6621ad550d9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: Macsnow # @Date: 2017-05-11 10:53:57 # @Last Modified by: Macsnow # @Last Modified time: 2017-05-11 15:36:00 from flask.ext.restful import Resource, reqparse from flask import session from src.common.util import abortIfSubjectUnauthenticated from src.common.util import abo...
37.711864
96
0.60809
1,607
0.722247
0
0
0
0
0
0
396
0.177978
9464fd14b792b482c66ebf4c89048f0fbdc126f7
449
py
Python
vmreflect/tests/test_util.py
andrewdotn/vmreflect
f6dcab5df747df7bb8b53d9637f3f48d66910ca5
[ "BSD-2-Clause" ]
1
2015-10-20T15:09:08.000Z
2015-10-20T15:09:08.000Z
vmreflect/tests/test_util.py
andrewdotn/vmreflect
f6dcab5df747df7bb8b53d9637f3f48d66910ca5
[ "BSD-2-Clause" ]
null
null
null
vmreflect/tests/test_util.py
andrewdotn/vmreflect
f6dcab5df747df7bb8b53d9637f3f48d66910ca5
[ "BSD-2-Clause" ]
null
null
null
import string import unittest class TestUtil(unittest.TestCase): def test_random_string(self): from vmreflect.utils import get_random_string for l in range(20): self.assertEquals(l, len(get_random_string(length=l))) for alphabet in ['1234', string.letters, '!$(AJ$)AF(A@F']: ...
29.933333
67
0.625835
416
0.926503
0
0
0
0
0
0
21
0.046771
9465004e65aa4a1c46ff0c353a22bdc9a36dbb13
4,740
py
Python
temboo/core/Library/Utilities/Callback/RegisterCallback.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
7
2016-03-07T02:07:21.000Z
2022-01-21T02:22:41.000Z
temboo/core/Library/Utilities/Callback/RegisterCallback.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
null
null
null
temboo/core/Library/Utilities/Callback/RegisterCallback.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
8
2016-06-14T06:01:11.000Z
2020-04-22T09:21:44.000Z
# -*- coding: utf-8 -*- ############################################################################### # # RegisterCallback # Allows you to generate a unique URL that can "listen" for incoming data from web request. # # Python versions 2.6, 2.7, 3.x # # Copyright 2014, Temboo Inc. # # Licensed under the Apache Licens...
46.019417
280
0.700633
3,606
0.760759
0
0
0
0
0
0
3,077
0.649156
9465ea6e8a3e28767df80dc2e1f77115e0fcf158
2,788
py
Python
test/test_model/test_annotation.py
alexandermendes/libanno
bc504498ef330fab46f2334f96631457d520ec90
[ "MIT" ]
7
2018-05-22T04:54:08.000Z
2020-05-28T20:27:39.000Z
test/test_model/test_annotation.py
alexandermendes/libanno
bc504498ef330fab46f2334f96631457d520ec90
[ "MIT" ]
9
2018-07-20T12:54:24.000Z
2020-11-05T17:44:19.000Z
test/test_model/test_annotation.py
alexandermendes/libanno
bc504498ef330fab46f2334f96631457d520ec90
[ "MIT" ]
1
2019-06-12T14:19:33.000Z
2019-06-12T14:19:33.000Z
# -*- coding: utf8 -*- from flask import url_for, current_app from nose.tools import * from base import Test, db, with_context from explicates.model.collection import Collection from explicates.model.annotation import Annotation class TestModelAnnotation(Test): def setUp(self): super(TestModelAnnotatio...
31.681818
76
0.573888
2,554
0.916069
0
0
2,427
0.870516
0
0
443
0.158895
9466a0890aee0dc1575d353661a33b3cadbde55e
6,641
py
Python
src/cropbox_search/cropbox_record_sm.py
asr-ros/asr_state_machine
bdba6f34275a83dade4cc40d2bd21a18dbcef4c3
[ "BSD-3-Clause" ]
1
2019-10-29T13:37:26.000Z
2019-10-29T13:37:26.000Z
src/cropbox_search/cropbox_record_sm.py
asr-ros/asr_state_machine
bdba6f34275a83dade4cc40d2bd21a18dbcef4c3
[ "BSD-3-Clause" ]
null
null
null
src/cropbox_search/cropbox_record_sm.py
asr-ros/asr_state_machine
bdba6f34275a83dade4cc40d2bd21a18dbcef4c3
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python ''' Copyright (c) 2016, Allgeyer Tobias, Aumann Florian, Borella Jocelyn, Hutmacher Robin, Karrenbauer Oliver, Marek Felix, Meissner Pascal, Trautmann Jeremias, Wittenbeck Valerij All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted...
58.254386
755
0.568288
4,549
0.684987
0
0
0
0
0
0
3,211
0.483512
946731cb45e6088144b61d5dec0e0d8b4e410ade
474
py
Python
api/admin/admin_authentication_provider.py
datalogics/circulation
a4767404a63dd034d101e6ee76f824626e5d5269
[ "Apache-2.0" ]
null
null
null
api/admin/admin_authentication_provider.py
datalogics/circulation
a4767404a63dd034d101e6ee76f824626e5d5269
[ "Apache-2.0" ]
6
2016-10-25T14:55:39.000Z
2017-10-09T15:37:03.000Z
api/admin/admin_authentication_provider.py
datalogics/circulation
a4767404a63dd034d101e6ee76f824626e5d5269
[ "Apache-2.0" ]
2
2016-09-29T16:28:14.000Z
2021-08-04T12:28:21.000Z
from nose.tools import set_trace class AdminAuthenticationProvider(object): def __init__(self, integration): self.integration = integration def auth_uri(self, redirect_url): # Returns a URI that an admin can use to log in with this # authentication provider. raise NotImplemente...
31.6
66
0.704641
439
0.92616
0
0
0
0
0
0
141
0.297468
94674f843dab73643aa11740f5acb4a209e24514
58,296
py
Python
tests/unit/test_paragraphs.py
IanVermes/recompose
e675af59930ae2d45ec054dfa0d0ebc85383c669
[ "MIT" ]
null
null
null
tests/unit/test_paragraphs.py
IanVermes/recompose
e675af59930ae2d45ec054dfa0d0ebc85383c669
[ "MIT" ]
null
null
null
tests/unit/test_paragraphs.py
IanVermes/recompose
e675af59930ae2d45ec054dfa0d0ebc85383c669
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf8 -*- """Unit test of paragraph processing classes: PreProcessed and PostProcessed as well as Processor subclasses. Copyright: Ian Vermes 2019 """ from tests.base_testcases import ParagraphsTestCase, BaseTestCase, ProcessorTestCase_Genuine from tests.special_testcases import Pr...
38.403162
190
0.571206
57,137
0.979917
181
0.003104
11,744
0.201413
0
0
13,618
0.233553
94683e867fcf095a6c6c96fe20091c6adf5781ba
25
py
Python
tldry/__init__.py
vangaa/tldry
0f5075dbed3cd09ac6749e09273a2e054d75445a
[ "MIT" ]
2
2019-04-01T09:39:54.000Z
2019-05-17T19:24:39.000Z
tldry/__init__.py
vangaa/tldry
0f5075dbed3cd09ac6749e09273a2e054d75445a
[ "MIT" ]
null
null
null
tldry/__init__.py
vangaa/tldry
0f5075dbed3cd09ac6749e09273a2e054d75445a
[ "MIT" ]
1
2021-02-03T14:00:43.000Z
2021-02-03T14:00:43.000Z
from .tldry import TLDRy
12.5
24
0.8
0
0
0
0
0
0
0
0
0
0
946b8d6d8025c10201a0e997dc4dab9b8be0198b
2,911
py
Python
geode/utility/json_conversion.py
jjqcat/geode
157cc904c113cc5e29a1ffe7c091a83b8ec2cf8e
[ "BSD-3-Clause" ]
75
2015-02-08T22:04:31.000Z
2022-02-26T14:31:43.000Z
geode/utility/json_conversion.py
girving/geode
4267bd8d0c1a768ee0b6f57a40a551d8c0965178
[ "BSD-3-Clause" ]
15
2015-01-08T15:11:38.000Z
2021-09-05T13:27:22.000Z
geode/utility/json_conversion.py
girving/geode
4267bd8d0c1a768ee0b6f57a40a551d8c0965178
[ "BSD-3-Clause" ]
22
2015-03-11T16:43:13.000Z
2021-02-15T09:37:51.000Z
import json from numpy import * from geode import * def from_ndarray(v, typ = float): return map(typ, v.flatten()) def from_array(v, typ = float): return map(typ, v) to_json_fn = {} from_json_fn = {} from_json_fn['int'] = lambda v: int(v) from_json_fn['real'] = lambda v: real(v) from_json_fn['float'] = ...
25.761062
82
0.618344
0
0
0
0
0
0
0
0
501
0.172106
946d934aac033af47877b5f2809432c42624515e
124
py
Python
xmca/__init__.py
NiclasRieger/mca
579f4d8be90062bec57ed88cb7b4c6f1e1bc3da9
[ "MIT" ]
23
2021-05-14T11:05:02.000Z
2022-03-26T15:40:26.000Z
xmca/__init__.py
NiclasRieger/mca
579f4d8be90062bec57ed88cb7b4c6f1e1bc3da9
[ "MIT" ]
13
2021-03-22T11:05:05.000Z
2022-02-25T17:47:28.000Z
xmca/__init__.py
NiclasRieger/mca
579f4d8be90062bec57ed88cb7b4c6f1e1bc3da9
[ "MIT" ]
11
2021-03-22T03:04:37.000Z
2022-02-24T03:54:25.000Z
from .version import __version__ # __version__ = version __author__ = 'Niclas Rieger' __email__ = 'niclasrieger@gmail.com'
20.666667
36
0.782258
0
0
0
0
0
0
0
0
62
0.5
946e1bad96b68d54c90ade3c0e3ea528c85c1987
2,350
py
Python
tibanna_4dn/core.py
4dn-dcic/tibanna_ff
6fcfc056b832c14500e525207afeb5722f366a26
[ "MIT" ]
2
2019-10-08T17:36:02.000Z
2019-10-08T18:42:05.000Z
tibanna_4dn/core.py
4dn-dcic/tibanna_ff
6fcfc056b832c14500e525207afeb5722f366a26
[ "MIT" ]
null
null
null
tibanna_4dn/core.py
4dn-dcic/tibanna_ff
6fcfc056b832c14500e525207afeb5722f366a26
[ "MIT" ]
null
null
null
from tibanna_ffcommon.core import API as _API from .stepfunction import StepFunctionPony from .stepfunction_cost_updater import StepFunctionCostUpdater from .vars import ( TIBANNA_DEFAULT_STEP_FUNCTION_NAME, LAMBDA_TYPE, IAM_BUCKETS, DEV_ENV, PROD_ENV ) class API(_API): # This one cannot be im...
34.558824
124
0.648936
2,074
0.882553
0
0
374
0.159149
0
0
188
0.08
946e744db067216acca7174cc9413bd1c9de27ef
1,262
py
Python
motor.py
fehlfarbe/vorpal-hexabot-micropython
129eac0018f291545efa304f9202dded315fba93
[ "MIT" ]
null
null
null
motor.py
fehlfarbe/vorpal-hexabot-micropython
129eac0018f291545efa304f9202dded315fba93
[ "MIT" ]
null
null
null
motor.py
fehlfarbe/vorpal-hexabot-micropython
129eac0018f291545efa304f9202dded315fba93
[ "MIT" ]
null
null
null
import pca9685 _DC_MOTORS = ((8, 9, 10), (13, 12, 11), (2, 3, 4), (7, 6, 5)) class DCMotors: def __init__(self, i2c, address=0x40, freq=1600): self.pca9685 = pca9685.PCA9685(i2c, address) self.pca9685.freq(freq) def _pin(self, pin, value=None): if value is None: return b...
27.434783
61
0.515055
1,180
0.935024
0
0
0
0
0
0
28
0.022187
946fcddeae45422d84791902026dee2a591bd902
978
py
Python
chargen.py
celestian/chargen
7e7be23ea10ae5734c5d6d3a30ff66afdc7a6845
[ "MIT" ]
1
2018-04-23T00:45:24.000Z
2018-04-23T00:45:24.000Z
chargen.py
celestian/chargen
7e7be23ea10ae5734c5d6d3a30ff66afdc7a6845
[ "MIT" ]
null
null
null
chargen.py
celestian/chargen
7e7be23ea10ae5734c5d6d3a30ff66afdc7a6845
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*-coding:utf-8-*- """chargen Usage: chargen.py start project <project> chargen.py add template <template_file> into <project> chargen.py (-h | --help) chargen.py --version Options: -h --help Show this screen. --version Show version. """ from docopt import docopt import c...
23.285714
77
0.701431
0
0
0
0
0
0
0
0
381
0.389571
94718b16055ae616596fb158c43a68ad0465fe4b
6,914
py
Python
server/starsystem.py
remremrem/EV-Tribute
c7dd412eedad4b8eba0cf2d4c95d539d4b80c852
[ "MIT" ]
1
2015-06-23T03:48:03.000Z
2015-06-23T03:48:03.000Z
server/starsystem.py
remremrem/EV-Tribute
c7dd412eedad4b8eba0cf2d4c95d539d4b80c852
[ "MIT" ]
null
null
null
server/starsystem.py
remremrem/EV-Tribute
c7dd412eedad4b8eba0cf2d4c95d539d4b80c852
[ "MIT" ]
null
null
null
import sys,os,random class Body: def __init__(self): self.name = "Planet no. 1" self.type = "body" self.sprite = "null" self.dock = 0 self.race = "human" self.faction = "rebel" self.wealth = 20 # in trillions self.population = 70 # in bil...
33.892157
122
0.448655
6,137
0.887619
0
0
0
0
0
0
540
0.078102
9472f1d45c073a911013e85819b6ce785223389f
2,092
py
Python
orangecontrib/recommendation/rating/base_rating.py
robertcv/orange3-recommendation
db421c32f85f123b1f3058865438df1b996772cd
[ "BSD-2-Clause" ]
22
2016-09-11T11:40:17.000Z
2019-07-27T21:45:21.000Z
orangecontrib/recommendation/rating/base_rating.py
robertcv/orange3-recommendation
db421c32f85f123b1f3058865438df1b996772cd
[ "BSD-2-Clause" ]
14
2016-08-16T22:19:31.000Z
2020-12-17T00:03:34.000Z
orangecontrib/recommendation/rating/base_rating.py
robertcv/orange3-recommendation
db421c32f85f123b1f3058865438df1b996772cd
[ "BSD-2-Clause" ]
19
2016-08-16T20:06:57.000Z
2021-09-16T11:42:11.000Z
from orangecontrib.recommendation import Learner, Model import numpy as np __all__ = ["LearnerRecommendation", "ModelRecommendation"] class ModelRecommendation(Model): def predict_on_range(self, predictions): # Just for modeling ratings with latent factors try: if self.min_rating is...
36.701754
79
0.657744
1,951
0.9326
0
0
0
0
0
0
278
0.132887
9473f79c4819abb3294b7e94567ee6d53a6be9c6
14,480
py
Python
analyze-pictures/app.py
realnetworks-safr/python-examples
afa4ca89fb39ef4c19511565fcfe46f8dbf42dbf
[ "MIT" ]
1
2020-09-15T15:36:07.000Z
2020-09-15T15:36:07.000Z
analyze-pictures/app.py
realnetworks-safr/python-examples
afa4ca89fb39ef4c19511565fcfe46f8dbf42dbf
[ "MIT" ]
12
2020-03-03T17:48:22.000Z
2022-03-12T00:02:51.000Z
analyze-pictures/app.py
realnetworks-safr/python-examples
afa4ca89fb39ef4c19511565fcfe46f8dbf42dbf
[ "MIT" ]
2
2019-08-16T13:01:05.000Z
2020-06-14T15:04:57.000Z
#!/usr/bin/python3 from datetime import datetime import os import shutil import logging import base64 import requests import json import cv2 as cv from PIL import Image, ImageEnhance import pandas as pd import numpy as np import math logging.basicConfig(filename='app.log', filemode='w',level=logging.INFO, format="...
43.223881
193
0.617541
0
0
0
0
0
0
0
0
3,192
0.220442
947433b9a8d5f78f0611c57201560dd8bfa28250
229
py
Python
economy/exc.py
bk62/botter.py
73799a5c0415bd2b52483f3dd02c37b81c70d631
[ "MIT" ]
null
null
null
economy/exc.py
bk62/botter.py
73799a5c0415bd2b52483f3dd02c37b81c70d631
[ "MIT" ]
null
null
null
economy/exc.py
bk62/botter.py
73799a5c0415bd2b52483f3dd02c37b81c70d631
[ "MIT" ]
null
null
null
from discord.ext import commands class WalletOpFailedException(commands.CommandError): pass class NoMatchingCurrency(WalletOpFailedException): pass class MultipleMatchingCurrencies(WalletOpFailedException): pass
17.615385
58
0.820961
188
0.820961
0
0
0
0
0
0
0
0
94748c13b48c015ed744c4825ce449b56551be58
3,445
py
Python
2015-09-09-calculator/arti.py
EIK-LUG/CodeClubPython
fb0660ad85a7b0a17d33d37d18f8b41ae597e022
[ "WTFPL" ]
2
2015-09-12T10:11:38.000Z
2015-09-13T13:18:25.000Z
2015-09-09-calculator/arti.py
EIK-LUG/CodeClubPython
fb0660ad85a7b0a17d33d37d18f8b41ae597e022
[ "WTFPL" ]
2
2015-09-12T07:18:15.000Z
2015-10-07T06:01:56.000Z
2015-09-09-calculator/arti.py
EIK-LUG/CodeClubPython
fb0660ad85a7b0a17d33d37d18f8b41ae597e022
[ "WTFPL" ]
5
2015-09-11T11:19:51.000Z
2018-02-08T18:17:44.000Z
#!/usr/bin/env python3 # This is a simple 4 banger calculator LICENSE = """DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 Copyright (C) 2015 Arti Zirk <arti.zirk@gmail.com> Everyone is permitted to copy and distribute verbatim or modified copies of this license document, ...
28.708333
111
0.628447
2,576
0.74775
0
0
81
0.023512
0
0
1,512
0.438897
94796da60c973686297c10aaaafe4c00df0e9db5
2,444
py
Python
runtime/components/Data_Quality/apply_substitution.py
ulise/hetida-designer
a6be8eb45abf950d5498e3ca756ea1d2e46b5c00
[ "MIT" ]
41
2020-11-18T10:12:29.000Z
2022-03-28T21:46:41.000Z
runtime/components/Data_Quality/apply_substitution.py
ulise/hetida-designer
a6be8eb45abf950d5498e3ca756ea1d2e46b5c00
[ "MIT" ]
4
2020-12-08T15:28:15.000Z
2022-02-01T11:40:17.000Z
runtime/components/Data_Quality/apply_substitution.py
ulise/hetida-designer
a6be8eb45abf950d5498e3ca756ea1d2e46b5c00
[ "MIT" ]
14
2020-11-18T11:39:17.000Z
2022-03-21T15:05:11.000Z
from hetdesrun.component.registration import register from hetdesrun.datatypes import DataType # add your own imports here from hetdesrun.utils import plotly_fig_to_json_dict import pandas as pd def handle_substitutions(original_series, substitution_series): """Applies substituion series on raw values ...
34.422535
94
0.720949
0
0
0
0
572
0.234043
0
0
747
0.305646
947aad7e403fb4127e29b67ef21419ba51759e96
1,047
py
Python
scripts/ssc/MNIST_preprocessing/dataloader_test.py
MrBellamonte/MT-VAEs-TDA
8881b5db607c673fb558f7b74ece27f244b16b77
[ "MIT" ]
null
null
null
scripts/ssc/MNIST_preprocessing/dataloader_test.py
MrBellamonte/MT-VAEs-TDA
8881b5db607c673fb558f7b74ece27f244b16b77
[ "MIT" ]
1
2020-09-22T13:04:58.000Z
2020-09-22T13:05:23.000Z
scripts/ssc/MNIST_preprocessing/dataloader_test.py
MrBellamonte/AEs-VAEs-TDA
8881b5db607c673fb558f7b74ece27f244b16b77
[ "MIT" ]
null
null
null
import os import torch import numpy as np from torch.utils.data import TensorDataset, DataLoader from src.data_preprocessing.witness_complex_offline.config import ConfigWC from src.datasets.datasets import SwissRoll if __name__ == "__main__": n_samples = 5 # labels = torch.from_numpy(np.array(range(n_sa...
30.794118
82
0.69532
0
0
0
0
0
0
0
0
463
0.442216
947ebed65bcada5a3f48803a1f559572a4c5fa9e
2,688
py
Python
Python/Compare the Triplets.py
lin826/Hackerrank-Codes
6b2b83dd1f6a7b92b575d8f8d4d1dbe4cb845403
[ "MIT" ]
70
2020-10-04T09:23:15.000Z
2022-02-01T09:44:39.000Z
Python/Compare the Triplets.py
lin826/Hackerrank-Codes
6b2b83dd1f6a7b92b575d8f8d4d1dbe4cb845403
[ "MIT" ]
148
2020-06-05T15:32:12.000Z
2020-11-01T08:29:01.000Z
Python/Compare the Triplets.py
lin826/Hackerrank-Codes
6b2b83dd1f6a7b92b575d8f8d4d1dbe4cb845403
[ "MIT" ]
298
2020-10-04T04:27:01.000Z
2022-03-07T04:02:59.000Z
'''Alice and Bob each created one problem for HackerRank. A reviewer rates the two challenges, awarding points on a scale from 1 to 100 for three categories: problem clarity, originality, and difficulty. The rating for Alice's challenge is the triplet a = (a[0], a[1], a[2]), and the rating for Bob's challenge is the t...
22.214876
203
0.669271
0
0
0
0
0
0
0
0
2,248
0.833828
947efdbc985976ac04f87ceecfcc075b0bbb1d41
16,366
py
Python
src/main.py
elifesciences/update-iam-human
c00a8824f13584bb0f3456252dd9478b6e21c3e7
[ "MIT" ]
null
null
null
src/main.py
elifesciences/update-iam-human
c00a8824f13584bb0f3456252dd9478b6e21c3e7
[ "MIT" ]
1
2018-09-18T00:41:53.000Z
2018-09-19T00:28:33.000Z
src/main.py
elifesciences/update-iam-human
c00a8824f13584bb0f3456252dd9478b6e21c3e7
[ "MIT" ]
null
null
null
import getpass import argparse import boto3 import sys, os, csv from github import Github from github.InputFileContent import InputFileContent import json from datetime import timedelta from collections import OrderedDict from . import utils from .utils import ensure, ymd, splitfilter, vals, lmap, lfilter, utcnow MAX_...
37.280182
141
0.668459
0
0
0
0
0
0
0
0
6,571
0.401503
947f2096032e935caa47b5b4ee0ac97865845efd
3,805
py
Python
vitrage/datasources/collectd/driver.py
HoonMinJeongUm/Hunmin-vitrage
37d43d6b78e8b76fa6a2e83e5c739e9e4917a7b6
[ "Apache-2.0" ]
null
null
null
vitrage/datasources/collectd/driver.py
HoonMinJeongUm/Hunmin-vitrage
37d43d6b78e8b76fa6a2e83e5c739e9e4917a7b6
[ "Apache-2.0" ]
null
null
null
vitrage/datasources/collectd/driver.py
HoonMinJeongUm/Hunmin-vitrage
37d43d6b78e8b76fa6a2e83e5c739e9e4917a7b6
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 - Nokia # # 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, sof...
36.941748
77
0.673587
2,666
0.700657
0
0
931
0.244678
0
0
729
0.19159
947fa9c1086bcfac466ab21e8a33786309e91284
9,032
py
Python
Intro to Python/gaussian_code_exercise.py
randymelder/udaipy
a537adc56abca3839ea396a07acebf396d8a2143
[ "MIT" ]
null
null
null
Intro to Python/gaussian_code_exercise.py
randymelder/udaipy
a537adc56abca3839ea396a07acebf396d8a2143
[ "MIT" ]
null
null
null
Intro to Python/gaussian_code_exercise.py
randymelder/udaipy
a537adc56abca3839ea396a07acebf396d8a2143
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Gaussian Code Exercise # # Read through the code below and fill out the TODOs. You'll find a cell at the end of the Jupyter notebook containing unit tests. After you've run the code cell with the Gaussian class, you can run the final cell to check that your code functions as ...
32.724638
355
0.591563
8,031
0.889172
0
0
0
0
0
0
5,147
0.569863
94837f054bfa14530b650e254c7da3d29ae1ed3b
10,958
py
Python
examples-master/python_examples/md_poly_lj_module.py
JungHoonJung/2021MD
29bfae7a750217d50654e4973a2be6fb0d968bdf
[ "MIT" ]
186
2017-04-30T18:11:12.000Z
2022-03-31T18:35:09.000Z
examples-master/python_examples/md_poly_lj_module.py
JungHoonJung/2021MD
29bfae7a750217d50654e4973a2be6fb0d968bdf
[ "MIT" ]
17
2017-02-09T11:08:49.000Z
2022-01-29T14:40:09.000Z
examples-master/python_examples/md_poly_lj_module.py
JungHoonJung/2021MD
29bfae7a750217d50654e4973a2be6fb0d968bdf
[ "MIT" ]
92
2017-09-13T05:20:40.000Z
2022-03-19T16:17:02.000Z
#!/usr/bin/env python3 # md_poly_lj_module.py #------------------------------------------------------------------------------------------------# # This software was written in 2016/17 # # by Michael P. Allen <m.p.allen@warwick.ac.uk>/<m.p.allen@bristol.ac.uk> ...
52.180952
113
0.515788
451
0.041157
0
0
0
0
0
0
5,642
0.514875
94838bd8944b9e189d4ca81ff812c5b01fdeeb24
6,667
py
Python
server/get_metadata.py
arvados/get-evidence
7a02bf157b33c1abaa6a04ba057e039cdcaa3652
[ "CC-BY-3.0" ]
2
2015-04-11T12:26:12.000Z
2016-06-21T07:57:04.000Z
server/get_metadata.py
madprime/get-evidence
bd567ec94e83070ff5810d916b18167189658298
[ "CC-BY-3.0" ]
null
null
null
server/get_metadata.py
madprime/get-evidence
bd567ec94e83070ff5810d916b18167189658298
[ "CC-BY-3.0" ]
3
2015-02-05T20:58:06.000Z
2017-01-29T15:37:22.000Z
#!/usr/bin/python # This code is part of GET-Evidence. # Copyright: see COPYING # Authors: see git-blame(1) """ usage: %prog genome_gff_file """ # Process the sorted genome GFF data and the json report of coding region # coverage to get and return meta data. import gzip import re import sys from utils import gff D...
37.666667
79
0.649018
0
0
4,567
0.685016
0
0
0
0
3,024
0.453577
9488a6705ec1681c46f7010dca9d78428eb0d9c9
524
py
Python
unfreezePy/extractor/pyinstaller.py
ibradypod/UnfreezePyBin
ecd8e886c8c4bfea58d4ff7f651062e91041e440
[ "MIT" ]
null
null
null
unfreezePy/extractor/pyinstaller.py
ibradypod/UnfreezePyBin
ecd8e886c8c4bfea58d4ff7f651062e91041e440
[ "MIT" ]
null
null
null
unfreezePy/extractor/pyinstaller.py
ibradypod/UnfreezePyBin
ecd8e886c8c4bfea58d4ff7f651062e91041e440
[ "MIT" ]
null
null
null
# encoding: utf-8 import os import traceback from app.pyinstaller.readers import CArchiveReader from app.pyinstaller.readers import ZlibArchiveReader from extractor import ArchiveExtractor class PyinstallerExtractor(ArchiveExtractor): def __init__(self, fpath, **kwargs): key = kwargs.get("key","") ...
29.111111
82
0.734733
330
0.629771
0
0
0
0
0
0
30
0.057252
948936c51930c143342f75833616fd120dea2868
68,602
py
Python
benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_pinned/cmp_libquantum/power.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_pinned/cmp_libquantum/power.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_pinned/cmp_libquantum/power.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
power = {'BUSES': {'Area': 1.33155, 'Bus/Area': 1.33155, 'Bus/Gate Leakage': 0.00662954, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0691322, 'Bus/Subthreshold Leakage with power gating': 0.0259246, 'Gate...
75.056893
124
0.68205
0
0
0
0
0
0
0
0
46,943
0.68428
948c6619b9b82445ad34ff17a5f8f5eb8c8c2d63
1,609
py
Python
code9/Magic Methods.py
python3-7/python-
73fa1cf161c5e985da062c50907e03399f79ee2d
[ "MIT" ]
null
null
null
code9/Magic Methods.py
python3-7/python-
73fa1cf161c5e985da062c50907e03399f79ee2d
[ "MIT" ]
null
null
null
code9/Magic Methods.py
python3-7/python-
73fa1cf161c5e985da062c50907e03399f79ee2d
[ "MIT" ]
null
null
null
from win32com import client as wc import os, time class Pdf_docx_md(object): def load_files(self, path): ''' 加载所需文件,返回文件名(All) ''' os.chdir(path) dir = os.getcwd() files = os.listdir(dir) for file in files: yield file def do_exchange(sel...
27.741379
84
0.550653
1,396
0.813046
240
0.139779
0
0
0
0
518
0.301689
948d70917a8ff7f0374b0985e3aa182bab5e84b4
649
py
Python
hackerrank/set_operations.py
benhunter/py-stuff
a04f94851370e08a65792a53a6207f3146eb130b
[ "MIT" ]
3
2017-05-22T03:14:21.000Z
2019-05-24T11:44:15.000Z
hackerrank/set_operations.py
benhunter/py-stuff
a04f94851370e08a65792a53a6207f3146eb130b
[ "MIT" ]
null
null
null
hackerrank/set_operations.py
benhunter/py-stuff
a04f94851370e08a65792a53a6207f3146eb130b
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/domains/python?filters%5Bsubdomains%5D%5B%5D=py-sets # Set Union input() first = set(map(int, input().split())) input() second = set(map(int, input().split())) print(len(first.union(second))) # Set Intersection input() first = set(input().split()) input() second = set(input().split()) ...
18.542857
81
0.699538
0
0
0
0
0
0
0
0
152
0.234206
846725d310463621e9c429dbf9bb3ad4bef3a529
1,146
py
Python
parse_api/nlp/entity_extraction.py
dennysem/seq2sql_api
a6922fba53f684848578c6da104e312e5b29299f
[ "MIT" ]
null
null
null
parse_api/nlp/entity_extraction.py
dennysem/seq2sql_api
a6922fba53f684848578c6da104e312e5b29299f
[ "MIT" ]
null
null
null
parse_api/nlp/entity_extraction.py
dennysem/seq2sql_api
a6922fba53f684848578c6da104e312e5b29299f
[ "MIT" ]
null
null
null
class EntityExtractor: def __init__(self, data_source): self.data_source = data_source def extract(self, query): query = query.lower() aggregation = self._extract_aggregation(query) dimensions = self._extract_dimensions(query) filters = self._extract_filters(query) ...
31.833333
62
0.620419
1,145
0.999127
0
0
0
0
0
0
36
0.031414
8468ee72e6d83b1a43c0ba9a4f645f8b97bb8a4a
5,938
py
Python
WebMain.py
q792602257/XiguaLiveDanmakuHelper
b1f45ee90dc31ada27ce17eb6b062735d358d608
[ "WTFPL" ]
5
2019-05-10T04:16:57.000Z
2021-06-12T03:43:11.000Z
WebMain.py
q792602257/XiguaLiveDanmakuHelper
b1f45ee90dc31ada27ce17eb6b062735d358d608
[ "WTFPL" ]
null
null
null
WebMain.py
q792602257/XiguaLiveDanmakuHelper
b1f45ee90dc31ada27ce17eb6b062735d358d608
[ "WTFPL" ]
4
2019-05-10T04:33:55.000Z
2021-09-09T03:05:00.000Z
import os from glob import glob from time import sleep from flask_cors import CORS from flask import Flask, jsonify, request, render_template, Response, send_file import Common import threading from liveDownloader import run as RUN app = Flask(__name__) app.config['JSON_AS_ASCII'] = False CORS(app, supports_credential...
30.608247
99
0.640957
0
0
0
0
5,299
0.867267
0
0
1,630
0.266776
8469fabb25cbc09922ff10f7b4374ba8210bc37e
512
py
Python
fun/fun/asgi.py
larryw3i/fun
e753ce6d448f7f6ec3169a4d1fa7e1c7bff70a27
[ "MIT" ]
1
2022-01-01T11:14:58.000Z
2022-01-01T11:14:58.000Z
fun/fun/asgi.py
larryw3i/osp
d9526a179876053a6b93e5a110d2de730376f511
[ "MIT" ]
4
2021-06-12T06:05:44.000Z
2021-06-13T06:20:00.000Z
fun/fun/asgi.py
larryw3i/osp
d9526a179876053a6b93e5a110d2de730376f511
[ "MIT" ]
null
null
null
""" ASGI config for newv project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application settings_exists = os.path.exists( ...
24.380952
78
0.748047
0
0
0
0
0
0
0
0
292
0.570313
846af959bf6097940802093edacbaf3bdcb9cb94
1,300
py
Python
aim_target/predict.py
maloyan/army2021
b54d1d9a89fd40e3cb08fb0318dfed735e051f29
[ "MIT" ]
2
2021-08-31T19:54:53.000Z
2021-09-06T10:47:19.000Z
aim_target/predict.py
maloyan/army2021
b54d1d9a89fd40e3cb08fb0318dfed735e051f29
[ "MIT" ]
null
null
null
aim_target/predict.py
maloyan/army2021
b54d1d9a89fd40e3cb08fb0318dfed735e051f29
[ "MIT" ]
null
null
null
import json import os import sys import cv2 import numpy as np import pandas as pd import torch from tqdm import tqdm from aim_target.utils import compute_accuracy with open(sys.argv[1], "r") as f: config = json.load(f) model = torch.load( f"{config['checkpoints']}/{config['image_size']}_{config['model']}.p...
29.545455
87
0.686154
0
0
0
0
0
0
0
0
311
0.239231
846c44254933e76179e17c4bb021953ba3b99f10
11,471
py
Python
src/genomehubs/lib/_assembly_metadata.py
genomehubs/genomehubs
5cf09ea0c13a76e6bd2dc629ee58da70ca7894f5
[ "MIT" ]
7
2017-06-08T13:44:16.000Z
2021-01-26T07:57:53.000Z
src/genomehubs/lib/_assembly_metadata.py
genomehubs/genomehubs
5cf09ea0c13a76e6bd2dc629ee58da70ca7894f5
[ "MIT" ]
76
2017-03-21T14:51:47.000Z
2022-02-16T11:53:38.000Z
src/genomehubs/lib/_assembly_metadata.py
genomehubs/genomehubs
5cf09ea0c13a76e6bd2dc629ee58da70ca7894f5
[ "MIT" ]
3
2019-04-24T10:10:54.000Z
2021-01-26T07:57:54.000Z
#!/usr/bin/env python3 """Assembly metadata methods.""" import sys from collections import defaultdict from tolkein import toinsdc from tolkein import tolog from .es_functions import index_stream from .es_functions import query_keyword_value_template from .es_functions import query_value_template from .hub import a...
34.447447
88
0.601866
0
0
1,481
0.129108
0
0
0
0
2,206
0.192311
846eedd7c20cd488cf3fd340b15549f368cc5728
2,754
py
Python
oled/render.py
laurence-diack/fluidsynth-opi
570e85894f18dd1027558bcb2e9e4c2c1671d8ed
[ "MIT" ]
17
2018-01-29T09:12:04.000Z
2022-02-10T16:31:37.000Z
oled/render.py
AguaPotavel/ssd1306
4b7081b85ac7d7cc8d37ca0ffe0ed34bfae1fe0b
[ "MIT" ]
null
null
null
oled/render.py
AguaPotavel/ssd1306
4b7081b85ac7d7cc8d37ca0ffe0ed34bfae1fe0b
[ "MIT" ]
11
2018-04-21T22:07:56.000Z
2021-04-21T19:14:18.000Z
#!/usr/bin/env python # The MIT License (MIT) # # Copyright (c) 2015 Richard Hull # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the righ...
35.307692
79
0.704067
739
0.268337
0
0
0
0
0
0
2,210
0.802469