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
0f796c47a793c714f545f83a640dc9c73918faf1
2,116
py
Python
pyqt_tag_manager/qt_market/animations.py
Nevolutionize/pyqt_tag_manager
917d209924271c464d6a99ba1c768445e2436032
[ "MIT" ]
null
null
null
pyqt_tag_manager/qt_market/animations.py
Nevolutionize/pyqt_tag_manager
917d209924271c464d6a99ba1c768445e2436032
[ "MIT" ]
null
null
null
pyqt_tag_manager/qt_market/animations.py
Nevolutionize/pyqt_tag_manager
917d209924271c464d6a99ba1c768445e2436032
[ "MIT" ]
null
null
null
# Import external modules. from pyqt_tag_manager import QtCore from pyqt_tag_manager import QtGui from pyqt_tag_manager import QtWidgets class FailColorAnimation(QtCore.QPropertyAnimation): """Property animation to indicate errors. Displays a color transition as the color red fading out to 0 alpha. """ ...
33.0625
75
0.645085
1,976
0.933837
0
0
249
0.117675
0
0
680
0.321361
0f7a4cb016b7e5ab674e68efb9b6f228d4fe3595
1,252
py
Python
img.py
NavneetSurana/Animal-Classification-Using-ResNet
763608adb448cfa3ef6106825f4a1e8e6568035e
[ "MIT" ]
2
2018-10-08T03:31:59.000Z
2018-10-27T18:53:27.000Z
img.py
NavneetSurana/Animal-Classification-Using-ResNet
763608adb448cfa3ef6106825f4a1e8e6568035e
[ "MIT" ]
null
null
null
img.py
NavneetSurana/Animal-Classification-Using-ResNet
763608adb448cfa3ef6106825f4a1e8e6568035e
[ "MIT" ]
1
2021-07-05T05:04:55.000Z
2021-07-05T05:04:55.000Z
import os,sys import shutil import pandas as pd data=pd.read_csv('D:/MachineLearning/AnimalClassification/train.csv') Im_id=data['Image_id'] Animal=data['Animal'] dic_data=dict() for i in range(0,len(Im_id)): dic_data[Im_id[i].strip()]=Animal[i].strip() source_dir='D:/MachineLearning/AnimalClassification/Images/trai...
26.083333
70
0.733227
0
0
0
0
0
0
0
0
281
0.224441
0f7cba4a8767d9b6e3513c79b2ee5313540ef278
3,498
py
Python
tests/test_mgxs_library_ce_to_mg/test_mgxs_library_ce_to_mg.py
scopatz/openmc
689d7b31677bc945aa21fa710801ac85562f1e87
[ "MIT" ]
null
null
null
tests/test_mgxs_library_ce_to_mg/test_mgxs_library_ce_to_mg.py
scopatz/openmc
689d7b31677bc945aa21fa710801ac85562f1e87
[ "MIT" ]
null
null
null
tests/test_mgxs_library_ce_to_mg/test_mgxs_library_ce_to_mg.py
scopatz/openmc
689d7b31677bc945aa21fa710801ac85562f1e87
[ "MIT" ]
1
2020-12-18T08:22:51.000Z
2020-12-18T08:22:51.000Z
#!/usr/bin/env python import os import sys import glob import hashlib sys.path.insert(0, os.pardir) from testing_harness import PyAPITestHarness from input_set import PinCellInputSet import openmc import openmc.mgxs class MGXSTestHarness(PyAPITestHarness): def _build_inputs(self): # Set the input set to ...
36.821053
79
0.620926
3,174
0.907376
0
0
0
0
0
0
666
0.190395
0f7d75f8317a602b1be813bd3c36c2bb2d625290
1,287
py
Python
setup.py
random1st/cloudwatch-metrics
33094115abd595f3af472008e0002498aaddf33b
[ "MIT" ]
1
2021-03-24T20:32:06.000Z
2021-03-24T20:32:06.000Z
setup.py
random1st/cloudwatch-metrics
33094115abd595f3af472008e0002498aaddf33b
[ "MIT" ]
null
null
null
setup.py
random1st/cloudwatch-metrics
33094115abd595f3af472008e0002498aaddf33b
[ "MIT" ]
2
2020-04-30T12:56:00.000Z
2020-05-18T09:57:06.000Z
import os from setuptools import setup, find_packages from cloudwatch_metrics.version import VERSION with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() setup( name='cloudwatch_metrics', version=VERSION, description='The Cloudwatch...
28.6
98
0.647242
0
0
0
0
0
0
0
0
636
0.494172
0f7e825a057f5ebc72d9fb6d24195fedaea8c685
216
py
Python
app/ref/test-ttyP.py
lucid281/pyEfi
c8a5b69820a3c1e7c4c652f7e4194cd8ce8a6e18
[ "Apache-2.0" ]
7
2017-07-30T20:23:58.000Z
2021-12-10T19:38:04.000Z
app/ref/test-ttyP.py
lucid281/pyEfi
c8a5b69820a3c1e7c4c652f7e4194cd8ce8a6e18
[ "Apache-2.0" ]
2
2017-07-31T23:03:39.000Z
2021-03-26T21:06:02.000Z
app/ref/test-ttyP.py
lucid281/pyEfi
c8a5b69820a3c1e7c4c652f7e4194cd8ce8a6e18
[ "Apache-2.0" ]
null
null
null
from .. app.pyefi.ttyp import ttyP ttyP(0, "0 - ttyP test") ttyP(1, "1 - header") ttyP(2, "2 - bold") ttyP(3, "3 - okblue") ttyP(4, "4 - okgreen") ttyP(5, "5 - underline") ttyP(6, "6 - warning") ttyP(7, "7 - fail")
19.636364
34
0.578704
0
0
0
0
0
0
0
0
100
0.462963
0f80a9e3135560f0591099bad1bb7a5ddbb51087
3,826
py
Python
src/dirbs/dimensions/duplicate_threshold.py
bryang-qti-qualcomm/DIRBS-Core
6b48457715338cce4eb6b3948940297ebd789189
[ "BSD-3-Clause-Clear" ]
null
null
null
src/dirbs/dimensions/duplicate_threshold.py
bryang-qti-qualcomm/DIRBS-Core
6b48457715338cce4eb6b3948940297ebd789189
[ "BSD-3-Clause-Clear" ]
null
null
null
src/dirbs/dimensions/duplicate_threshold.py
bryang-qti-qualcomm/DIRBS-Core
6b48457715338cce4eb6b3948940297ebd789189
[ "BSD-3-Clause-Clear" ]
null
null
null
""" DIRBS dimension function for duplicate threshold within a time period. Copyright (c) 2018 Qualcomm Technologies, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the fol...
50.342105
118
0.715369
1,960
0.512284
0
0
126
0.032933
0
0
2,619
0.684527
0f80f105f05bcfcfbae2166d1100ff00893f4f18
2,112
py
Python
scripts/common/__init__.py
Innixma/kaggle2017
e92a2c1c2bf071343247722187a1c1088de88e37
[ "MIT" ]
null
null
null
scripts/common/__init__.py
Innixma/kaggle2017
e92a2c1c2bf071343247722187a1c1088de88e37
[ "MIT" ]
null
null
null
scripts/common/__init__.py
Innixma/kaggle2017
e92a2c1c2bf071343247722187a1c1088de88e37
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from skimage import measure, morphology from mpl_toolkits.mplot3d.art3d import Poly3DCollection import numpy as np import pandas as pd def plot_slice(img, slice=80): # Show some slice in the middle plt.imshow(img[slice]) plt.show() def plot_3d(image, threshold=-100): #...
30.608696
112
0.693655
0
0
0
0
0
0
0
0
920
0.435606
0f814ba26527117e6b84e9f229772b778a6cda9e
537
py
Python
host/Productivity.py
chehansivaruban/Cyber---SDGP
6676c284c34c4c15279bf3e5cfb73fd4e5b7391a
[ "CC0-1.0" ]
1
2021-05-18T10:55:32.000Z
2021-05-18T10:55:32.000Z
host/Productivity.py
chehansivaruban/Cyber---SDGP
6676c284c34c4c15279bf3e5cfb73fd4e5b7391a
[ "CC0-1.0" ]
null
null
null
host/Productivity.py
chehansivaruban/Cyber---SDGP
6676c284c34c4c15279bf3e5cfb73fd4e5b7391a
[ "CC0-1.0" ]
2
2021-03-29T19:00:55.000Z
2021-04-02T13:18:07.000Z
class Productivity: def __init__(self, irradiance, hours,capacity): self.irradiance = irradiance self.hours = hours self.capacity = capacity def getUnits(self): print(self.irradiance) totalpower = 0 print(totalpower) for i in self.irradiance...
28.263158
61
0.590317
531
0.988827
0
0
0
0
0
0
53
0.098696
0f81775989722fac86c0501dba1ff10529d51ca2
1,313
py
Python
sample/all_methods/setNoteApplicationDataEntry.py
matthewayne/evernote-sdk-python
53b0c1263d250b88a1810987b51bc9def586db02
[ "Apache-2.0", "BSD-3-Clause" ]
3
2016-02-14T13:39:46.000Z
2021-09-03T16:02:18.000Z
sample/all_methods/setNoteApplicationDataEntry.py
matthewayne/evernote-sdk-python
53b0c1263d250b88a1810987b51bc9def586db02
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
sample/all_methods/setNoteApplicationDataEntry.py
matthewayne/evernote-sdk-python
53b0c1263d250b88a1810987b51bc9def586db02
[ "Apache-2.0", "BSD-3-Clause" ]
1
2018-03-28T01:08:25.000Z
2018-03-28T01:08:25.000Z
# Import the Evernote client from evernote.api.client import EvernoteClient # Define access token either: # Developer Tokens (https://dev.evernote.com/doc/articles/dev_tokens.php) # or OAuth (https://dev.evernote.com/doc/articles/authentication.php) access_token = "insert dev or oauth token here" # Setup the client c...
37.514286
126
0.763899
0
0
0
0
0
0
0
0
991
0.75476
0f817ae1f45415f9be3a1a93f0558743b747ab70
1,431
py
Python
setup.py
davidcarboni/cryptolite-python
e40ce2f9584fdd9015caad9bf443a50201df743a
[ "MIT" ]
null
null
null
setup.py
davidcarboni/cryptolite-python
e40ce2f9584fdd9015caad9bf443a50201df743a
[ "MIT" ]
null
null
null
setup.py
davidcarboni/cryptolite-python
e40ce2f9584fdd9015caad9bf443a50201df743a
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages import os import unittest def test_suite(): loader = unittest.TestLoader() suite = loader.discover('tests', pattern='test_*.py') return suite def readme(): """ Utility function to read the README file. Used for the long_description. It's nice, bec...
31.8
103
0.645702
0
0
0
0
0
0
0
0
747
0.522013
0f8389ee228b8ef136ad33164ea0700cfe706102
842
py
Python
final_project/machinetranslation/tests.py
cabrera-carlos/xzceb-flask_eng_fr
6f3b643102f2d9fa70231a663b43a1348c0f7cc1
[ "Apache-2.0" ]
null
null
null
final_project/machinetranslation/tests.py
cabrera-carlos/xzceb-flask_eng_fr
6f3b643102f2d9fa70231a663b43a1348c0f7cc1
[ "Apache-2.0" ]
null
null
null
final_project/machinetranslation/tests.py
cabrera-carlos/xzceb-flask_eng_fr
6f3b643102f2d9fa70231a663b43a1348c0f7cc1
[ "Apache-2.0" ]
null
null
null
import unittest from translator import french_to_english, english_to_french class TestFrenchToEnglish(unittest.TestCase): def test1(self): self.assertEqual(french_to_english("Bonjour"), "Hello") # test when "Bonjour" is given as input the output is "Hello". with self.assertRaises(ValueE...
42.1
131
0.672209
744
0.88361
0
0
0
0
0
0
286
0.339667
0f854456a91aac536aec2fb17db51a2f8344e01c
74
py
Python
augur/metrics/platform/routes.py
Nayan-Das/augur
857f4a4e7d688fd54356aa0f546834071fbabbf2
[ "MIT" ]
1
2020-02-28T18:51:43.000Z
2020-02-28T18:51:43.000Z
augur/metrics/platform/routes.py
Nayan-Das/augur
857f4a4e7d688fd54356aa0f546834071fbabbf2
[ "MIT" ]
1
2021-06-02T00:58:41.000Z
2021-06-02T00:58:41.000Z
augur/metrics/platform/routes.py
Nayan-Das/augur
857f4a4e7d688fd54356aa0f546834071fbabbf2
[ "MIT" ]
null
null
null
def create_platform_routes(server): metrics = server._augur.metrics
14.8
35
0.77027
0
0
0
0
0
0
0
0
0
0
0f8689ae827d935b48b38f4d0615ffaedb18fca7
49,355
py
Python
dataset.py
DerryHub/the-TaobaoLive-Commodity-Identify-Competition
7e5e5c4fbddd9949fe01810d58bd7994889c007c
[ "MIT" ]
4
2020-08-15T14:49:37.000Z
2022-01-16T08:34:07.000Z
dataset.py
weilin-droid/the-TaobaoLive-Commodity-Identify-Competition
7e5e5c4fbddd9949fe01810d58bd7994889c007c
[ "MIT" ]
null
null
null
dataset.py
weilin-droid/the-TaobaoLive-Commodity-Identify-Competition
7e5e5c4fbddd9949fe01810d58bd7994889c007c
[ "MIT" ]
2
2021-05-26T05:16:09.000Z
2021-06-09T09:07:49.000Z
import os import torch import numpy as np from tqdm import tqdm import json from torch.utils.data import Dataset, DataLoader from arcface.resnet import ResNet from arcface.googlenet import GoogLeNet from arcface.inception_v4 import InceptionV4 from arcface.inceptionresnet_v2 import InceptionResNetV2 from arcface.densen...
36.025547
141
0.532975
44,896
0.909655
0
0
0
0
0
0
10,120
0.205045
0f86f6bca80816832afd66dee019b511e4eb11bc
2,325
py
Python
WebMirror/util/StatusUpdater/Updater.py
awesome-archive/ReadableWebProxy
360104694a21bc14c7756f29205c95823387e30b
[ "BSD-3-Clause" ]
193
2016-08-02T22:04:35.000Z
2022-03-09T20:45:41.000Z
WebMirror/util/StatusUpdater/Updater.py
awesome-archive/ReadableWebProxy
360104694a21bc14c7756f29205c95823387e30b
[ "BSD-3-Clause" ]
533
2016-08-23T20:48:23.000Z
2022-03-28T15:55:13.000Z
WebMirror/util/StatusUpdater/Updater.py
awesome-archive/ReadableWebProxy
360104694a21bc14c7756f29205c95823387e30b
[ "BSD-3-Clause" ]
19
2015-08-13T18:01:08.000Z
2021-07-12T17:13:09.000Z
if __name__ == "__main__": import logSetup logSetup.initLogging() import pickle from common import database import config import common.LogBase import WebMirror.rules from WebMirror.OutputFilters.util.MessageConstructors import pack_message import WebMirror.TimedTriggers.TriggerBase import common.get_rpyc # impo...
22.142857
92
0.712688
1,765
0.75914
0
0
0
0
0
0
853
0.366882
0f87054df9c74ee2c34ad2435d0071591357f748
93
py
Python
dynamic_databases/__init__.py
sligodave/dynamic_databases
8bb85d59ef5ad6b0176b192a82ec457fb00601c5
[ "MIT" ]
4
2017-05-14T23:45:42.000Z
2020-12-21T06:33:15.000Z
dynamic_databases/__init__.py
sligodave/dynamic_databases
8bb85d59ef5ad6b0176b192a82ec457fb00601c5
[ "MIT" ]
2
2017-05-14T22:47:40.000Z
2018-04-19T11:01:29.000Z
dynamic_databases/__init__.py
sligodave/dynamic_databases
8bb85d59ef5ad6b0176b192a82ec457fb00601c5
[ "MIT" ]
3
2017-05-26T22:42:25.000Z
2021-10-21T01:14:23.000Z
__version__ = '0.1.7' default_app_config = 'dynamic_databases.apps.DynamicDatabasesConfig'
18.6
68
0.806452
0
0
0
0
0
0
0
0
54
0.580645
0f884a672a35bf47e7942c640cb7243b3a973258
2,886
py
Python
Practica3PR3/PYTHON/PartitionProblemBruteForceRecursive.py
Prashant-JT/PartitionProblem
3922bba85dac40e3780cf90cf0b687d07458a910
[ "MIT" ]
null
null
null
Practica3PR3/PYTHON/PartitionProblemBruteForceRecursive.py
Prashant-JT/PartitionProblem
3922bba85dac40e3780cf90cf0b687d07458a910
[ "MIT" ]
null
null
null
Practica3PR3/PYTHON/PartitionProblemBruteForceRecursive.py
Prashant-JT/PartitionProblem
3922bba85dac40e3780cf90cf0b687d07458a910
[ "MIT" ]
null
null
null
import time import argparse import sys class Auxiliar: vector = [] found = False s = 0 combination = [] size = 0 def readFile(v): try: file = args.folder except Exception as e: print(e) sys.exit("Directory Not Found, for help use the -h option") try: f = open(file, 'r') N = int (f....
29.44898
242
0.671518
83
0.02876
0
0
0
0
0
0
727
0.251906
0f89c68a648bbf2920a3ee4f9f43df0ba5e7f56b
800
py
Python
sasquatch/error/exec.py
tmacro/s4
58729b61f56ff928c8fe928fb02816e5025ad588
[ "BSD-3-Clause" ]
6
2018-12-04T01:13:10.000Z
2019-06-18T23:25:59.000Z
sasquatch/error/exec.py
tmacro/s4
58729b61f56ff928c8fe928fb02816e5025ad588
[ "BSD-3-Clause" ]
15
2018-12-01T00:13:41.000Z
2021-06-01T23:05:08.000Z
sasquatch/error/exec.py
tmacro/sasquatch
58729b61f56ff928c8fe928fb02816e5025ad588
[ "BSD-3-Clause" ]
null
null
null
from .base import SQError, BaseErrorHelper from .context import ContextAwareError class ExecutionError(SQError): '''raised when an error is encountered during script execution''' class ExecErrorHelper(BaseErrorHelper): _default = ExecutionError @staticmethod def throw(cls = ExecutionError, **kwargs): if 'ctx' i...
34.782609
75
0.76125
709
0.88625
0
0
200
0.25
0
0
298
0.3725
0f89d4ca8644c99769b346ed9af4e2842f02189a
19,484
py
Python
Pr_LandMarkDetection_pix2pixArc+HeatMap.py
mohaEs/Train-Predict-Landmarks-by-Autoencoder
5bc1bc4b0679ae465335f6ca76595b0accba57af
[ "MIT" ]
null
null
null
Pr_LandMarkDetection_pix2pixArc+HeatMap.py
mohaEs/Train-Predict-Landmarks-by-Autoencoder
5bc1bc4b0679ae465335f6ca76595b0accba57af
[ "MIT" ]
null
null
null
Pr_LandMarkDetection_pix2pixArc+HeatMap.py
mohaEs/Train-Predict-Landmarks-by-Autoencoder
5bc1bc4b0679ae465335f6ca76595b0accba57af
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Nov 30 13:44:34 2018 @author: Moha-Thinkpad """ from tensorflow.keras import optimizers from tensorflow.keras.models import Model import datetime import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import tensorflow.keras import argpa...
37.83301
158
0.615325
0
0
0
0
0
0
0
0
5,424
0.278382
0f8a5d70a416813aa7903ebf63db4aff07a7359b
5,479
py
Python
pydsge/tests/export_getting_started_to_pkl.py
florabudianto/pydsge
51ea4c206e481866f92398cb573852e48fea7335
[ "MIT" ]
2
2022-02-15T10:39:24.000Z
2022-02-15T10:40:26.000Z
pydsge/tests/export_getting_started_to_pkl.py
florabudianto/pydsge
51ea4c206e481866f92398cb573852e48fea7335
[ "MIT" ]
4
2021-12-31T16:27:48.000Z
2022-01-27T17:16:19.000Z
pydsge/tests/export_getting_started_to_pkl.py
pcschreiber1/pydsge_OSE_Project_Fork
4222dbe187e47958d2f5b732615c9ba97547f67a
[ "MIT" ]
1
2022-02-15T10:40:32.000Z
2022-02-15T10:40:32.000Z
"""This file contains functions for converting and storing jupyter notebooks.""" import nbformat import pickle import numpy as np import os from nbconvert import PythonExporter from pathlib import Path # for windows-Unix compatibility def nbconvert_python(path): """Use nbconvert to convert jupyter notebook to py...
26.726829
88
0.627669
0
0
0
0
0
0
0
0
2,335
0.426173
0f8b3458e256dcb554d3948811ed8426a35f7e37
2,067
py
Python
tests/test_entrez.py
ckrusemd/meta-analysis-tool
31685973f767c198952df4b87813a9c8345554b6
[ "BSD-3-Clause" ]
null
null
null
tests/test_entrez.py
ckrusemd/meta-analysis-tool
31685973f767c198952df4b87813a9c8345554b6
[ "BSD-3-Clause" ]
null
null
null
tests/test_entrez.py
ckrusemd/meta-analysis-tool
31685973f767c198952df4b87813a9c8345554b6
[ "BSD-3-Clause" ]
null
null
null
import requests from loguru import logger def test_entrez_query(): json_ = { "query": "kruse eiken vestergaard", "email": "XXX@YYY.com" } response = requests.post("http://api:8080/entrez/query", json = json_) assert response.status_code == 200 assert response.json() logger.info( response.json()...
39.75
86
0.669086
0
0
0
0
0
0
0
0
593
0.286889
0f8bf192c00ccdfe2c080948f76d42451737fa89
9,816
py
Python
src/tools/cluster/cluster.py
uct-cbio/galaxy-tools
b9422088dc41099fdde1edaf9c014825c8ee1cbf
[ "MIT" ]
null
null
null
src/tools/cluster/cluster.py
uct-cbio/galaxy-tools
b9422088dc41099fdde1edaf9c014825c8ee1cbf
[ "MIT" ]
null
null
null
src/tools/cluster/cluster.py
uct-cbio/galaxy-tools
b9422088dc41099fdde1edaf9c014825c8ee1cbf
[ "MIT" ]
null
null
null
#!/usr/bin/python # EST clustering # Currently clustering are done using the wcd clustering algorithm. Other algorithms will later be supported. # The wcd program does not use qual score for clustering. If seq qual scores are specified the # wcd clustered information will be used to create cluster qual scores. This...
47.650485
188
0.667787
0
0
0
0
0
0
0
0
3,832
0.390383
0f8dcf564e74ca0b9bc7fa9771086a7026224d90
12,676
py
Python
source/sent_classif.py
blazejdolicki/LASER
6a4d4677ecf8756a020300983a2147f012a8e850
[ "BSD-3-Clause" ]
null
null
null
source/sent_classif.py
blazejdolicki/LASER
6a4d4677ecf8756a020300983a2147f012a8e850
[ "BSD-3-Clause" ]
null
null
null
source/sent_classif.py
blazejdolicki/LASER
6a4d4677ecf8756a020300983a2147f012a8e850
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. # # LASER Language-Agnostic SEntence Representations # is a toolkit to calculate multilingual s...
36.956268
144
0.568713
3,841
0.303014
0
0
0
0
0
0
4,837
0.381587
0f8ddc53734f66db428cdaafd04e0f9951eeb50d
2,852
py
Python
pandas/tests/scalar/timestamp/test_arithmetic.py
BenRussert/pandas
9179e633b1e54ac31c5ea42ec0ec24e9a1709aae
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2018-11-11T22:18:13.000Z
2018-11-11T22:18:13.000Z
pandas/tests/scalar/timestamp/test_arithmetic.py
BenRussert/pandas
9179e633b1e54ac31c5ea42ec0ec24e9a1709aae
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/scalar/timestamp/test_arithmetic.py
BenRussert/pandas
9179e633b1e54ac31c5ea42ec0ec24e9a1709aae
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime, timedelta import pytest import numpy as np import pandas.util.testing as tm from pandas.compat import long from pandas.tseries import offsets from pandas import Timestamp, Timedelta class TestTimestampArithmetic(object): def test_overflow_offset(self): ...
34.361446
79
0.631837
2,610
0.915147
0
0
0
0
0
0
683
0.239481
0f8e473c098b6e6372a376f56a8b418162a63f4d
1,224
py
Python
utlts/uniprot_api.py
proteins247/proteomevis_scripts
33d864f02787659a5d75103baad556fb48b3bd1e
[ "MIT" ]
1
2020-11-11T06:14:10.000Z
2020-11-11T06:14:10.000Z
utlts/uniprot_api.py
proteins247/proteomevis_scripts
33d864f02787659a5d75103baad556fb48b3bd1e
[ "MIT" ]
null
null
null
utlts/uniprot_api.py
proteins247/proteomevis_scripts
33d864f02787659a5d75103baad556fb48b3bd1e
[ "MIT" ]
1
2019-05-28T19:13:24.000Z
2019-05-28T19:13:24.000Z
import urllib, urllib2 from parse_data import taxid #UniProt column names are found at #https://www.uniprot.org/help/uniprotkb_column_names class UniProtAPI(): def __init__(self, columns): self.columns = columns self.url = 'https://www.uniprot.org/uniprot/' self.batch_size = 350 #491 is limit self.raw_dat...
33.081081
202
0.710784
1,080
0.882353
0
0
0
0
0
0
288
0.235294
0f90448ac74fa457d3c66dd70e9a31f1a0170da1
59
py
Python
ditto/flickr/__init__.py
garrettc/django-ditto
fcf15beb8f9b4d61634efd4a88064df12ee16a6f
[ "MIT" ]
54
2016-08-15T17:32:41.000Z
2022-02-27T03:32:05.000Z
ditto/flickr/__init__.py
garrettc/django-ditto
fcf15beb8f9b4d61634efd4a88064df12ee16a6f
[ "MIT" ]
229
2015-07-23T12:50:47.000Z
2022-03-24T10:33:20.000Z
ditto/flickr/__init__.py
garrettc/django-ditto
fcf15beb8f9b4d61634efd4a88064df12ee16a6f
[ "MIT" ]
8
2015-09-10T17:10:35.000Z
2022-03-25T13:05:01.000Z
default_app_config = "ditto.flickr.apps.DittoFlickrConfig"
29.5
58
0.847458
0
0
0
0
0
0
0
0
37
0.627119
0f9355816927a8701eaeb991e776ae193c108d11
561
py
Python
cartes/dataviz/markers/__init__.py
xoolive/cartes
a9e8144e8e40eec66e2a21e96c46d09ad4f63853
[ "MIT" ]
20
2021-01-04T21:23:48.000Z
2021-12-14T15:28:15.000Z
cartes/dataviz/markers/__init__.py
xoolive/cartes
a9e8144e8e40eec66e2a21e96c46d09ad4f63853
[ "MIT" ]
null
null
null
cartes/dataviz/markers/__init__.py
xoolive/cartes
a9e8144e8e40eec66e2a21e96c46d09ad4f63853
[ "MIT" ]
null
null
null
import json from pathlib import Path import numpy as np from matplotlib import path current_dir = Path(__file__).parent __all__ = list(p.stem for p in current_dir.glob("*.json")) def __getattr__(name: str) -> path.Path: file_path = current_dir / (name + ".json") if file_path.exists(): data = json.lo...
25.5
78
0.654189
0
0
0
0
0
0
0
0
89
0.158645
0f935d49aac5857a6ea03a3d954a89f57e8ce440
3,169
py
Python
flash/text/seq2seq/core/input.py
dudeperf3ct/lightning-flash
a855cd14cf1cd0301b4a2f82c0c95e4d8d986650
[ "Apache-2.0" ]
1
2022-03-09T22:40:05.000Z
2022-03-09T22:40:05.000Z
flash/text/seq2seq/core/input.py
dudeperf3ct/lightning-flash
a855cd14cf1cd0301b4a2f82c0c95e4d8d986650
[ "Apache-2.0" ]
null
null
null
flash/text/seq2seq/core/input.py
dudeperf3ct/lightning-flash
a855cd14cf1cd0301b4a2f82c0c95e4d8d986650
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # 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 i...
31.376238
97
0.652887
2,254
0.711265
0
0
2,082
0.65699
0
0
705
0.222468
7e13e1f7cd0f8dfc86c33515f8eed65171e22242
612
py
Python
pymitblod/gender.py
slimcdk/pymitblod
8bae9401abec73e53a0687a5429b215722076b39
[ "Apache-2.0" ]
null
null
null
pymitblod/gender.py
slimcdk/pymitblod
8bae9401abec73e53a0687a5429b215722076b39
[ "Apache-2.0" ]
null
null
null
pymitblod/gender.py
slimcdk/pymitblod
8bae9401abec73e53a0687a5429b215722076b39
[ "Apache-2.0" ]
null
null
null
''' All model classes for pymitblod ''' from __future__ import annotations from typing import Callable class Gender(): ''' Class representing an institution. ''' def __init__( self, id:int, name:str, blood_volume_ml_lambda:Callable[[float, float, float...
20.4
74
0.616013
505
0.825163
0
0
0
0
0
0
89
0.145425
7e13fe81701a2fe45cfed9171d56097965bceb41
56
py
Python
findtime/utils.py
MattCCS/FindTime
8c38965661444d342a28eadc0cdedaf70e9f9279
[ "MIT" ]
null
null
null
findtime/utils.py
MattCCS/FindTime
8c38965661444d342a28eadc0cdedaf70e9f9279
[ "MIT" ]
null
null
null
findtime/utils.py
MattCCS/FindTime
8c38965661444d342a28eadc0cdedaf70e9f9279
[ "MIT" ]
null
null
null
def day_of_year(dt): return dt.timetuple().tm_yday
14
33
0.714286
0
0
0
0
0
0
0
0
0
0
7e1465fa84580938e15bf43f26376b15ecb19b23
1,408
py
Python
tools/merge-inputs.py
dice-project/DICE-deployment-service
e209c6a061a78f170e81cfc03d2959af0283ed15
[ "Apache-2.0" ]
2
2018-04-03T20:45:26.000Z
2022-02-07T19:53:42.000Z
tools/merge-inputs.py
dice-project/DICE-deployment-service
e209c6a061a78f170e81cfc03d2959af0283ed15
[ "Apache-2.0" ]
3
2016-11-15T10:41:43.000Z
2020-03-16T07:49:03.000Z
tools/merge-inputs.py
dice-project/DICE-deployment-service
e209c6a061a78f170e81cfc03d2959af0283ed15
[ "Apache-2.0" ]
2
2018-07-04T11:37:12.000Z
2022-02-07T19:53:43.000Z
#!/usr/bin/env python import sys import json import argparse class ArgParser(argparse.ArgumentParser): """ Argument parser that displays help on error """ def error(self, message): sys.stderr.write("error: {}\n".format(message)) self.print_help() sys.exit(2) def make_dict(in...
26.566038
81
0.649858
238
0.169034
0
0
0
0
0
0
294
0.208807
7e14ccb15609f75e18eb6393772f3e6bcda7ab38
947
py
Python
carpyncho/migrations/versions/a169bf8b211d_lightcurve_to_npy.py
toros-astro/carpyncho3
27b00e7539e081c563f1a09c70fb255ac5e71583
[ "BSD-3-Clause" ]
1
2016-02-16T11:10:52.000Z
2016-02-16T11:10:52.000Z
carpyncho/migrations/versions/a169bf8b211d_lightcurve_to_npy.py
toros-astro/carpyncho3
27b00e7539e081c563f1a09c70fb255ac5e71583
[ "BSD-3-Clause" ]
null
null
null
carpyncho/migrations/versions/a169bf8b211d_lightcurve_to_npy.py
toros-astro/carpyncho3
27b00e7539e081c563f1a09c70fb255ac5e71583
[ "BSD-3-Clause" ]
null
null
null
"""lightcurve_to_npy Revision ID: a169bf8b211d Revises: 423507fdb18e Create Date: 2017-09-09 22:32:17.558901 """ # revision identifiers, used by Alembic. revision = 'a169bf8b211d' down_revision = '423507fdb18e' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa def upgrade(): ...
28.69697
90
0.713833
0
0
0
0
0
0
0
0
526
0.555438
7e16eb8d9b19794eaeee0cf0580050bfbc0a9996
3,328
py
Python
core/window_manager.py
kennethnym/Subliminal
ffa49eba5bcaf1a7cc566d77e15db28fc33cdafe
[ "MIT" ]
null
null
null
core/window_manager.py
kennethnym/Subliminal
ffa49eba5bcaf1a7cc566d77e15db28fc33cdafe
[ "MIT" ]
null
null
null
core/window_manager.py
kennethnym/Subliminal
ffa49eba5bcaf1a7cc566d77e15db28fc33cdafe
[ "MIT" ]
null
null
null
import asyncio import os import subprocess from threading import Thread from typing import Dict, Set from .plugin_settings import PluginSettings from .rpc.api.daemon import DaemonConnectedEvent from .project import CurrentProject from .rpc import FlutterRpcProcess, FlutterRpcClient from .env import Env import sublime...
25.79845
156
0.684796
2,036
0.611779
0
0
262
0.078726
122
0.036659
204
0.061298
7e18044f5ac21085211914b4557e38ac75f7285e
278
py
Python
tests/context.py
eyal0/lcovparse
3c29ef50870339d692ec116b68521904692a926a
[ "Apache-2.0" ]
2
2021-09-12T23:07:54.000Z
2021-11-20T02:57:30.000Z
tests/context.py
eyal0/lcovparse
3c29ef50870339d692ec116b68521904692a926a
[ "Apache-2.0" ]
null
null
null
tests/context.py
eyal0/lcovparse
3c29ef50870339d692ec116b68521904692a926a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 """Context for all tests.""" from __future__ import absolute_import import os import sys sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)) + "../lcovparse")) import lcovparse # pylint: disable=wrong-import-position,unused-import
25.272727
91
0.76259
0
0
0
0
0
0
0
0
117
0.420863
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
0
0
0
0
0
0
0
0
7,369
0.691276
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=(.*?);") class webapiClient(httpClient): host = settings.WEBAPI_HOST port = settings.WEBAPI_PORT def __check_session(self, r): try: self.set_session(re_session.findall(r.heade...
25.272727
77
0.629496
975
0.876799
0
0
0
0
0
0
124
0.111511
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
3,314
0.898346
0
0
1,418
0.384386
0
0
1,643
0.445378
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
0
0
0
0
0
0
0
0
289
0.141667
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 class BaseBlockchain: """The base class for all Blockchain objects""" network_id: bytes = None vms: List[Any] = None data_path: str = None db: Fact...
39.58
118
0.662961
5,782
0.973893
0
0
0
0
0
0
1,406
0.23682
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 @command('!bongo') async def cmd_bongo(config: Config, match: Match[str]) -> str: _, _, rest = match['msg'].partition(' ') rest = re...
22.363636
76
0.676829
0
0
0
0
311
0.632114
292
0.593496
93
0.189024
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
0
0
0
0
0
0
0
0
287
0.539474
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
0
0
0
0
0
0
0
0
39
0.354545
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
0
0
0
0
0
0
0
0
393
0.368668
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
0
0
0
0
0
0
0
0
164
0.172088
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
0
0
0
0
0
0
0
0
0
0
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. class TooManyPagesReadError(ValueError): pass class Book: def __init__(self, title, page_count): self.title = title self.page_count = page_count self.pages_read = 0 def __repr__(self): return ( f"<Book {self.title}, read {self.pages_...
26.878788
112
0.641488
695
0.78354
0
0
0
0
0
0
282
0.317926
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
0
0
0
0
0
0
0
0
195
0.295008
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
0
0
0
0
0
0
0
0
7,844
0.223063
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 class SharedFolder(models.Model): name = models.CharField(max_length=50) slug = models.SlugField(max_length=255, null=True, blank=True) users = models.ManyToManyField(User, throu...
38.126263
113
0.672672
7,295
0.966353
0
0
0
0
0
0
861
0.114055
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
0
0
0
0
0
0
0
0
648
0.242879
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
86
0.017973
0
0
0
0
0
0
1,732
0.361964
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 class Intervention(Agent): def __init__( self, name: str, activation_rules: List[ActivationRule], efect_time: int, repetition: int, action, supply: int, ) -> Non...
22.96
80
0.614983
478
0.832753
0
0
134
0.233449
0
0
66
0.114983
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
0
0
0
0
0
0
0
0
70,688
0.892458
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
0
0
0
0
0
0
0
0
18
0.062937
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
0
0
0
0
0
0
0
0
276
0.50457
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
0
0
0
0
0
0
0
0
495
0.156596
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 def test_conversions(): with pytest.raises(ValueError): shwords('{:{}}', 1, 2) assert '{:{}}'.format(1, 2) == ' 1' # by contrast def test_multiword(): assert shwords('touch {!@}', ['a', 'b']) \ == ['touch', 'a', 'b'] with pytest.raises(...
27.716049
117
0.535857
0
0
0
0
0
0
0
0
941
0.419154
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 class TestContain(TestCase): def setUp(self): self.key = 'a' def test_contain_if_dictionary_is_empty(self): d1 = Dictionary[str, int]({}) expect(self.key in d1).to(be_false) def test_contai...
26.892857
62
0.636122
658
0.873838
0
0
0
0
0
0
21
0.027888
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) class Solution: def isUgly(self, num): if not num: return False while num % 2 == 0: num = num / 2 while num % 3 == 0: num = num / 3 while num % 5 == 0: num = num / 5 return num == 1: ...
17.5
27
0.418367
366
0.746939
0
0
0
0
0
0
97
0.197959
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
0
0
0
0
0
0
0
0
154
0.398964
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
0
0
0
0
0
0
0
0
825
0.479651
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
0
0
0
0
0
0
0
0
1,971
0.204439
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 class DataInputStream: """ Reading from Java DataInputStream format. """ def __init__(self, stream): self.stream = stream def read_boolean(self): return struct.unpack('?', self.stream.read(1))[0] def read_byte(self): return stru...
29.13
100
0.61174
1,157
0.397185
0
0
0
0
0
0
323
0.110882
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 def fetch(config_dict): f = Fetcher(config_dict) f.start() return "Job has been finished"
23.666667
65
0.769953
0
0
0
0
0
0
0
0
23
0.107981
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 class UserRegistrationForm(UserCreationForm): def __init__(self, *args, **kwargs): super(UserRegistrationForm, self).__init__(*args, **kwargs) ...
28.25641
120
0.627949
941
0.853902
0
0
0
0
0
0
141
0.127949
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'), ...
48.408451
83
0.683445
0
0
0
0
0
0
0
0
1,562
0.445141
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
0
0
0
0
0
0
0
0
215
0.381206
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 b...
33.568182
78
0.728097
0
0
0
0
1,116
0.151076
0
0
1,224
0.165696
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
6,818
0.535039
0
0
0
0
0
0
4,152
0.325826
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
0
0
0
0
0
0
0
0
0
0
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 @app.get("/students/{student_id}/subjects") async def student_subje...
31.08
86
0.728443
0
0
0
0
523
0.673102
479
0.616474
74
0.095238
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 def fc(x, shape, name, with_relu=True): weight = ht.init.random_normal(shape, stddev=0.1, name=name+'_weight') bias = ht.init.random_normal(shape[-1:], stddev=0.1, name=name+'_bias') x = ht.matmul_op(x, weight) x = x...
35.677083
101
0.634453
0
0
443
0.129343
0
0
0
0
581
0.169635
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
0
0
0
0
0
0
0
0
117
0.109448
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: """ def rain_water(a) -> int: n = len(a) res = 0 for i in range(1, n-1): lmax = a[i] for j in range(i): lmax ...
21.857143
90
0.513539
0
0
0
0
0
0
0
0
228
0.212885
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() class PinCard(models.Model): token = models.CharField(max_length=32, db_index=True, editable=False) display_n...
39.421687
110
0.731357
3,061
0.935513
0
0
0
0
0
0
186
0.056846
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
2,834
0.376361
0
0
0
0
0
0
3,136
0.416467
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 class TestContact(unittest.TestCase): def setUp(self): self.new_contact = Contact("Lyn","Muthoni","0796654066","sonnie2...
42.942029
89
0.710429
2,712
0.915289
0
0
0
0
0
0
1,204
0.406345
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 # 为celery设置django默认配置 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
0
0
0
0
0
0
0
0
219
0.59673
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
0
0
0
0
0
0
0
0
0
0
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 def get_pizza_html_extract(): with open('tests/file/html-responses/pizza-it.html', 'r', encoding='utf-8') as pizza_html_file: pizza_html = pizza_html_file.read() return pizza_html class BasicParseTestCase(unittest.TestCase): def test_...
29.391304
99
0.739645
364
0.538462
0
0
0
0
0
0
61
0.090237
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") class Events: def __init__...
22.830508
83
0.690423
1,051
0.780252
0
0
0
0
0
0
186
0.138085
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
7,707
0.847948
0
0
0
0
0
0
2,833
0.311695
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 class AutoCompl...
33.1
76
0.617609
1,965
0.848079
192
0.082866
0
0
0
0
254
0.109625
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
0
0
0
0
0
0
0
0
135
0.992647
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
23,702
0.877982
0
0
0
0
0
0
8,968
0.332197
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
0
0
0
0
0
0
0
0
2,189
0.599726
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 class Widget(object): # obsolete parameters from previous versions _obsolete = frozenset(['multiple']) #: Template to render widget template = None #: Value of HTML element's *class* attribute classname = '' #: de...
26.688073
86
0.611894
5,700
0.979718
0
0
254
0.043658
0
0
1,733
0.297869
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 def menuprinc(): opcao = int( input(''' Escolha um programa: 1 - ex3 2 - ex4 3 - ex5 4 - ex6 5 - ex7 0 - exit Escolha: ''')) i...
21.017544
90
0.590985
0
0
0
0
0
0
0
0
363
0.3
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 * class WareHouse(QObject): def __init__(self): super(QObject, self).__init__() @pyqtSlot(result=QVariant) def all_cargo(self): return QVariant(map(lambda x: x.javascriptify(), Cargo.select()))
22.538462
73
0.682594
220
0.750853
0
0
125
0.426621
0
0
8
0.027304
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
0
0
0
0
0
0
0
0
175
0.44757
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
0
0
0
0
0
0
0
0
148
0.261023
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
0
0
0
0
2,165
0.177561
0
0
5,035
0.412942
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
2,334
0.459178
0
0
1,363
0.268149
0
0
2,749
0.540822
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 * def bm25_top_10(doc_no_to_internal_id,internal_id_to_metadata,inverted_index,tokens_to_id): # Retrieving Query from user print() que...
41.933735
203
0.679931
0
0
0
0
0
0
0
0
1,178
0.169229
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 def ExtractFingerprint(filename, bit): size = os.path.getsize(filename) sign = N...
37.490741
146
0.566313
0
0
0
0
0
0
0
0
559
0.138059
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
0
0
0
0
0
0
0
0
1,111
0.108645
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
0
0
0
0
0
0
0
0
76
0.817204
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
0
0
0
0
0
0
0
0
345
0.255178
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
0
0
0
0
0
0
0
0
2,616
0.254574
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
0
0
0
0
0
0
0
0
3,573
0.382753
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 #------------------------------------------------------------------------------- class SpheralConservation: #--------------------------------------...
44.266055
102
0.450466
9,400
0.974093
0
0
0
0
0
0
3,165
0.327979