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
4818f40bb2961d309e93cce19f1650592ac0d462
123
py
Python
src/aceinna/bootstrap/__init__.py
lihaiyong827/python-openimu
f1c536ba4182aaeabd87b63c08ebd92f97e8dbb4
[ "Apache-2.0" ]
41
2018-07-20T17:30:33.000Z
2022-02-24T08:17:39.000Z
src/aceinna/bootstrap/__init__.py
lihaiyong827/python-openimu
f1c536ba4182aaeabd87b63c08ebd92f97e8dbb4
[ "Apache-2.0" ]
52
2018-06-25T22:15:14.000Z
2022-03-10T07:30:56.000Z
src/aceinna/bootstrap/__init__.py
lihaiyong827/python-openimu
f1c536ba4182aaeabd87b63c08ebd92f97e8dbb4
[ "Apache-2.0" ]
31
2018-12-19T00:10:08.000Z
2022-03-19T02:14:03.000Z
import sys import os import traceback from .default import Default from .cli import CommandLine from .loader import Loader
17.571429
28
0.829268
0
0
0
0
0
0
0
0
0
0
48197fe7d2676b37c5b385a0395e386523f42d50
63
py
Python
test/tutorial/scripts/api/logout_api.py
GPelayo/dcp-cli
d585fd8b4687f29bfd034242472b870d17ed1e50
[ "MIT" ]
8
2017-10-10T18:29:27.000Z
2019-06-15T04:25:43.000Z
test/tutorial/scripts/api/logout_api.py
GPelayo/dcp-cli
d585fd8b4687f29bfd034242472b870d17ed1e50
[ "MIT" ]
440
2017-10-09T16:06:22.000Z
2021-03-25T17:12:18.000Z
test/tutorial/scripts/api/logout_api.py
GPelayo/dcp-cli
d585fd8b4687f29bfd034242472b870d17ed1e50
[ "MIT" ]
10
2017-11-07T22:42:59.000Z
2020-05-05T15:36:01.000Z
from hca.dss import DSSClient dss = DSSClient() dss.logout()
10.5
29
0.730159
0
0
0
0
0
0
0
0
0
0
481a202af8c698328bf81874ddd4607ef4a05765
1,995
py
Python
home/stock_model.py
85599/nse-django
f42531528137f39596b374a0dacdd37957e69ed2
[ "MIT" ]
null
null
null
home/stock_model.py
85599/nse-django
f42531528137f39596b374a0dacdd37957e69ed2
[ "MIT" ]
1
2021-02-25T05:34:43.000Z
2021-02-25T05:34:43.000Z
home/stock_model.py
85599/nse-django
f42531528137f39596b374a0dacdd37957e69ed2
[ "MIT" ]
null
null
null
import os import pandas as pd from sklearn import linear_model from nsetools import Nse import pathlib import joblib nse = Nse() def nse_data(stock_name): '''input stock_name : str output : list = output,high,low''' data = nse.get_quote(stock_name) current = [data['open'],data['dayHigh'],data['dayLow'...
28.098592
88
0.593484
0
0
0
0
0
0
0
0
616
0.308772
481a590185ab360ad8f0c2ef3e09b5d683dfa4f6
26,620
py
Python
examples/rough_translated1/osgthreadedterrain.py
JaneliaSciComp/osgpyplusplus
a5ae3f69c7e9101a32d8cc95fe680dab292f75ac
[ "BSD-3-Clause" ]
17
2015-06-01T12:19:46.000Z
2022-02-12T02:37:48.000Z
examples/rough_translated1/osgthreadedterrain.py
cmbruns/osgpyplusplus
f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75
[ "BSD-3-Clause" ]
7
2015-07-04T14:36:49.000Z
2015-07-23T18:09:49.000Z
examples/rough_translated1/osgthreadedterrain.py
cmbruns/osgpyplusplus
f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75
[ "BSD-3-Clause" ]
7
2015-11-28T17:00:31.000Z
2020-01-08T07:00:59.000Z
#!/bin/env python # Automatically translated python version of # OpenSceneGraph example program "osgthreadedterrain" # !!! This program will need manual tuning before it will work. !!! import sys from osgpypp import OpenThreads from osgpypp import osg from osgpypp import osgDB from osgpypp import osgGA from osgpypp...
34.661458
130
0.598911
101
0.003794
0
0
0
0
0
0
5,550
0.20849
481b02369261f195f00f8a2beb84d5e057a643b6
5,207
py
Python
deepy/data/audio/tau2019.py
popura/deepy-pytorch
71d87a82e937d82b9b149041280a392cc24b7299
[ "MIT" ]
1
2021-07-19T09:38:26.000Z
2021-07-19T09:38:26.000Z
deepy/data/audio/tau2019.py
popura/deepy-pytorch
71d87a82e937d82b9b149041280a392cc24b7299
[ "MIT" ]
1
2021-07-26T06:47:45.000Z
2021-07-26T06:47:45.000Z
deepy/data/audio/tau2019.py
popura/deepy-pytorch
71d87a82e937d82b9b149041280a392cc24b7299
[ "MIT" ]
null
null
null
import sys import os import os.path import random from pathlib import Path import torch import torchaudio from .audiodataset import AUDIO_EXTENSIONS, default_loader from ..dataset import PureDatasetFolder, has_file_allowed_extension class TAU2019(PureDatasetFolder): """TAU urban acoustic scene 2019 dataset. ...
41.325397
109
0.61014
4,970
0.954484
0
0
0
0
0
0
913
0.175341
481b0da064442a0c9a7254f4c7fb899384b93ddc
13,530
py
Python
rrl.py
siekmanj/apex
49483c827d8e70302b3e993acf29e9798f4435c1
[ "MIT" ]
null
null
null
rrl.py
siekmanj/apex
49483c827d8e70302b3e993acf29e9798f4435c1
[ "MIT" ]
1
2019-11-14T21:12:31.000Z
2019-11-14T21:12:31.000Z
rrl.py
siekmanj/rrl
49483c827d8e70302b3e993acf29e9798f4435c1
[ "MIT" ]
null
null
null
import os import torch import hashlib from collections import OrderedDict from util.env import env_factory, eval_policy from util.logo import print_logo if __name__ == "__main__": import sys, argparse, time, os parser = argparse.ArgumentParser() parser.add_argument("--nolog", action='store_true') print...
63.820755
143
0.601404
0
0
0
0
0
0
0
0
4,614
0.34102
481b39532625d6b67659f1b6e06ab7e797e7fa51
215
py
Python
swaping 2.py
aash-gates/aash-python-babysteps
cb88b02b0d33ac74acb183d4f11f6baad0ad3db9
[ "Unlicense" ]
7
2020-11-16T18:23:21.000Z
2021-12-18T14:08:54.000Z
swaping 2.py
00mjk/aash-python-babysteps
c52ffbc2690ea387eaad6639bb9764b9ee015bfd
[ "Unlicense" ]
null
null
null
swaping 2.py
00mjk/aash-python-babysteps
c52ffbc2690ea387eaad6639bb9764b9ee015bfd
[ "Unlicense" ]
1
2020-12-21T15:59:44.000Z
2020-12-21T15:59:44.000Z
''' practice qusestion from chapter 1 Module 5 of IBM Digital Nation Courses by Aashik J Krishnan/Aash Gates ''' x = 10 y = "ten" #step 1 x,y = y,x #printing on next line print(x) print(y) #end of the program
11.944444
72
0.688372
0
0
0
0
0
0
0
0
165
0.767442
481b7b847a5b07aac335adc738e6043d2c120dd3
1,965
py
Python
Lab_5_Eigen_Decomposition/eigen_images.py
NahianHasan/ECE63700-Digital_Image_Processing
ef1f1df93ffa16a4c76ddc8cc5ed6bc303dea96b
[ "BSD-3-Clause" ]
null
null
null
Lab_5_Eigen_Decomposition/eigen_images.py
NahianHasan/ECE63700-Digital_Image_Processing
ef1f1df93ffa16a4c76ddc8cc5ed6bc303dea96b
[ "BSD-3-Clause" ]
null
null
null
Lab_5_Eigen_Decomposition/eigen_images.py
NahianHasan/ECE63700-Digital_Image_Processing
ef1f1df93ffa16a4c76ddc8cc5ed6bc303dea96b
[ "BSD-3-Clause" ]
null
null
null
import read_data as RD import numpy as np import matplotlib.pyplot as plt from PIL import Image X = RD.read_data() print('X = ',X.shape) X_mean = np.reshape(np.sum(X,1)/X.shape[1],[ X.shape[0],1]) X = X-X_mean print('X_centerred = ',X.shape) [U,S,V] = np.linalg.svd(X, full_matrices=False) print('U = ',U.shape) print('...
31.190476
72
0.690076
0
0
0
0
0
0
0
0
551
0.280407
481e2d50c4328a17ebca8a6fc8ec42de2e15ed63
3,986
py
Python
activatable_model/models.py
wesleykendall/django-activatable-model
e039db72e6a94f622293cabbbac47f88b1c1c4dc
[ "MIT" ]
null
null
null
activatable_model/models.py
wesleykendall/django-activatable-model
e039db72e6a94f622293cabbbac47f88b1c1c4dc
[ "MIT" ]
null
null
null
activatable_model/models.py
wesleykendall/django-activatable-model
e039db72e6a94f622293cabbbac47f88b1c1c4dc
[ "MIT" ]
null
null
null
from django.db import models from manager_utils import ManagerUtilsQuerySet, ManagerUtilsManager from activatable_model.signals import model_activations_changed class ActivatableQuerySet(ManagerUtilsQuerySet): """ Provides bulk activation/deactivation methods. """ def update(self, *args, **kwargs): ...
39.078431
120
0.699448
3,814
0.956849
0
0
0
0
0
0
1,277
0.320371
481e768516bbaa32d5ff9541dc002fb4c1d54c46
755
py
Python
my_lambdata/my_mod.py
DevvinK/lambdata-devvink-dspt6
4920402865912cea619d995a0a092ff8f7dc7806
[ "MIT" ]
null
null
null
my_lambdata/my_mod.py
DevvinK/lambdata-devvink-dspt6
4920402865912cea619d995a0a092ff8f7dc7806
[ "MIT" ]
null
null
null
my_lambdata/my_mod.py
DevvinK/lambdata-devvink-dspt6
4920402865912cea619d995a0a092ff8f7dc7806
[ "MIT" ]
null
null
null
# my_lambdata/my_mod.py # my_lambdata.my_mod import pandas as pd def enlarge(num): return num * 100 def null_check(df): null_lines = df[df.isnull().any(axis=1)] return null_lines def date_divider(df,date_col): ''' df: the whole dataframe adding new day, month, year to date_col: the name of the c...
26.034483
73
0.695364
0
0
0
0
0
0
0
0
232
0.307285
4820376c0af9d2cd61ab8620253e559ebeadb415
30,627
py
Python
visibility.py
DanielAndreasen/ObservationTools
bae6bce4345cbd207d901ad5c4073a8e8e8a0d3e
[ "MIT" ]
2
2016-04-05T16:29:32.000Z
2016-04-13T15:51:48.000Z
visibility.py
iastro-pt/ObservationTools
bae6bce4345cbd207d901ad5c4073a8e8e8a0d3e
[ "MIT" ]
45
2016-11-23T17:51:36.000Z
2021-05-17T10:57:37.000Z
visibility.py
DanielAndreasen/ObservationTools
bae6bce4345cbd207d901ad5c4073a8e8e8a0d3e
[ "MIT" ]
2
2016-11-24T00:24:29.000Z
2016-11-30T11:36:43.000Z
# -*- coding: utf-8 -*- from __future__ import print_function import sys import numpy as np import datetime as dt from dateutil import tz import pickle from random import choice from PyAstronomy import pyasl from astropy.coordinates import SkyCoord from astropy.coordinates import name_resolve import ephem import argpar...
37.259124
127
0.631795
629
0.020537
0
0
596
0.019459
0
0
7,915
0.258424
4820cb952aabf646bc6ba2c9f17988cb0a784a1d
2,410
py
Python
brainrender/Utils/parsers/rat.py
maithamn/BrainRender
9359ccc5b278f58ee3124bcf75b9ebefe0378bbc
[ "MIT" ]
null
null
null
brainrender/Utils/parsers/rat.py
maithamn/BrainRender
9359ccc5b278f58ee3124bcf75b9ebefe0378bbc
[ "MIT" ]
null
null
null
brainrender/Utils/parsers/rat.py
maithamn/BrainRender
9359ccc5b278f58ee3124bcf75b9ebefe0378bbc
[ "MIT" ]
null
null
null
import sys sys.path.append('./') import os import pandas as pd from vtkplotter import load from brainrender import DEFAULT_STRUCTURE_COLOR def get_rat_regions_metadata(metadata_fld): """ :param metadata_fld: """ return pd.read_pickle(os.path.join(metadata_fld, "rat_structures.pkl")) def get_rat_...
29.036145
110
0.546473
0
0
0
0
0
0
0
0
414
0.171784
482206f17e299eb89f694f10375879badc6e9f3d
8,678
py
Python
components/isceobj/Alos2burstProc/runFrameMosaic.py
vincentschut/isce2
1557a05b7b6a3e65abcfc32f89c982ccc9b65e3c
[ "ECL-2.0", "Apache-2.0" ]
1
2020-08-18T13:00:39.000Z
2020-08-18T13:00:39.000Z
components/isceobj/Alos2burstProc/runFrameMosaic.py
vincentschut/isce2
1557a05b7b6a3e65abcfc32f89c982ccc9b65e3c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
components/isceobj/Alos2burstProc/runFrameMosaic.py
vincentschut/isce2
1557a05b7b6a3e65abcfc32f89c982ccc9b65e3c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# # Author: Cunren Liang # Copyright 2015-present, NASA-JPL/Caltech # import os import logging import isceobj from isceobj.Alos2Proc.runFrameMosaic import frameMosaic from isceobj.Alos2Proc.runFrameMosaic import frameMosaicParameters from isceobj.Alos2Proc.Alos2ProcPublic import create_xml logger = logging.getLogger...
50.748538
139
0.698779
0
0
0
0
0
0
0
0
1,750
0.201659
48223ac36e2493351b3ff6303137a45f254fb804
820
py
Python
acronym.py
steffenschroeder/python-playground
3c94a7c92a26d41e69118e8245e8ac9db7cf5ed2
[ "MIT" ]
null
null
null
acronym.py
steffenschroeder/python-playground
3c94a7c92a26d41e69118e8245e8ac9db7cf5ed2
[ "MIT" ]
null
null
null
acronym.py
steffenschroeder/python-playground
3c94a7c92a26d41e69118e8245e8ac9db7cf5ed2
[ "MIT" ]
null
null
null
import unittest def abbreviate(text): return "".join((i[0].upper() for i in text.split())) class AcronymTest(unittest.TestCase): def test_basic(self): self.assertEqual('PNG', abbreviate('Portable Network Graphics')) def test_lowercase_words(self): self.assertEqual('ROR', abbreviate('Ru...
27.333333
87
0.687805
672
0.819512
0
0
0
0
0
0
205
0.25
4822b67c5088178025d58774742a32a17ce91c77
834
py
Python
env/lib/python3.8/site-packages/plotly/validators/waterfall/_connector.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
env/lib/python3.8/site-packages/plotly/validators/waterfall/_connector.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
env/lib/python3.8/site-packages/plotly/validators/waterfall/_connector.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class ConnectorValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__(self, plotly_name="connector", parent_name="waterfall", **kwargs): super(ConnectorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
33.36
83
0.57554
795
0.953237
0
0
0
0
0
0
377
0.452038
482318efaad6f890a578bab42ca3ad7a7b532213
27
py
Python
src/euler_python_package/euler_python/medium/p207.py
wilsonify/euler
5214b776175e6d76a7c6d8915d0e062d189d9b79
[ "MIT" ]
null
null
null
src/euler_python_package/euler_python/medium/p207.py
wilsonify/euler
5214b776175e6d76a7c6d8915d0e062d189d9b79
[ "MIT" ]
null
null
null
src/euler_python_package/euler_python/medium/p207.py
wilsonify/euler
5214b776175e6d76a7c6d8915d0e062d189d9b79
[ "MIT" ]
null
null
null
def problem207(): pass
9
17
0.62963
0
0
0
0
0
0
0
0
0
0
4823bb4588dd2055c421f82a83ae6da7fc0c5d90
7,915
py
Python
ssd_data/augmentations/geometrics.py
star-baba/res50_sa_ssd
c7c0f218307b50e7ac1fd8945868df01f1743467
[ "MIT" ]
1
2020-06-16T12:53:25.000Z
2020-06-16T12:53:25.000Z
ssd_data/augmentations/geometrics.py
star-baba/res50_sa_ssd
c7c0f218307b50e7ac1fd8945868df01f1743467
[ "MIT" ]
3
2020-06-06T02:00:34.000Z
2020-06-23T16:38:25.000Z
ssd_data/augmentations/geometrics.py
star-baba/res50_sa_ssd
c7c0f218307b50e7ac1fd8945868df01f1743467
[ "MIT" ]
1
2021-04-27T06:40:21.000Z
2021-04-27T06:40:21.000Z
from numpy import random import numpy as np import logging from ._utils import decision from ssd.core.boxes.utils import iou_numpy, centroids2corners_numpy, corners2centroids_numpy from .base import Compose class RandomExpand(object): def __init__(self, filled_rgb_mean=(103.939, 116.779, 123.68), rmin=1, rmax=4, ...
36.307339
115
0.586734
7,689
0.971447
0
0
0
0
0
0
1,785
0.225521
48246329c18e90c00165cc92ef48bb7d9a328558
5,200
py
Python
tests/unit_tests/prepare_email/test_mail_segmenting.py
farthur/melusine
121fbb17da221b12186a275d5843b466ce65d954
[ "Apache-2.0" ]
null
null
null
tests/unit_tests/prepare_email/test_mail_segmenting.py
farthur/melusine
121fbb17da221b12186a275d5843b466ce65d954
[ "Apache-2.0" ]
null
null
null
tests/unit_tests/prepare_email/test_mail_segmenting.py
farthur/melusine
121fbb17da221b12186a275d5843b466ce65d954
[ "Apache-2.0" ]
null
null
null
import pandas as pd from melusine.prepare_email.mail_segmenting import structure_email, tag_signature structured_historic = [ { "text": " \n \n \n Bonjours, \n \n Suite a notre conversation \ téléphonique de Mardi , pourriez vous me dire la \n somme que je vous \ dois afin d'd'être en régularisat...
35.616438
93
0.497308
0
0
0
0
0
0
0
0
2,863
0.546583
48253cfafc062954525ca06fd5152e38d4e70a79
295
py
Python
Modulos/Modulo2/app3.py
Trallyan/Curso_Udemy
2a5c0becd14352f2cc2bf2362d1e5494edd6198d
[ "MIT" ]
null
null
null
Modulos/Modulo2/app3.py
Trallyan/Curso_Udemy
2a5c0becd14352f2cc2bf2362d1e5494edd6198d
[ "MIT" ]
null
null
null
Modulos/Modulo2/app3.py
Trallyan/Curso_Udemy
2a5c0becd14352f2cc2bf2362d1e5494edd6198d
[ "MIT" ]
null
null
null
idade = 18 carteiramotorista = True print (idade >= 18 and carteiramotorista == True) print ("Pode Dirigir") velocidade = 90 radar = 100 radarfuncionando = False print (velocidade > radar and radarfuncionando == True) print ("Não foi multado") velocidade1 = 101 print (velocidade1 >= radar)
18.4375
55
0.735593
0
0
0
0
0
0
0
0
32
0.108108
482633d918d23f0a510e111cc0ad6f51458a51a4
1,233
py
Python
examples/basic/merge_instance.py
talashilkarraj/spydrnet-physical
d13bcbb0feef7d5c93aa60af4a916f837128a5ad
[ "BSD-3-Clause" ]
3
2021-11-05T18:25:21.000Z
2022-03-02T22:03:02.000Z
examples/basic/merge_instance.py
talashilkarraj/spydrnet-physical
d13bcbb0feef7d5c93aa60af4a916f837128a5ad
[ "BSD-3-Clause" ]
null
null
null
examples/basic/merge_instance.py
talashilkarraj/spydrnet-physical
d13bcbb0feef7d5c93aa60af4a916f837128a5ad
[ "BSD-3-Clause" ]
2
2022-01-10T14:27:59.000Z
2022-03-13T08:21:33.000Z
""" =================================== Merging two instances in the design =================================== This example demonstrate how to merge two instance in the design to create a new merged definition .. hdl-diagram:: ../../../examples/basic/_initial_design_merge.v :type: netlistsvg :align: center ...
26.804348
80
0.703163
0
0
0
0
0
0
0
0
650
0.52717
482697dcf4d097846528ae15ee8dbca33b6e86d7
525
py
Python
splunge.py
neilebliss/reddit_bot
74be4b57ddbdf9fe0d9876207388ee2778b4a50d
[ "Unlicense" ]
null
null
null
splunge.py
neilebliss/reddit_bot
74be4b57ddbdf9fe0d9876207388ee2778b4a50d
[ "Unlicense" ]
null
null
null
splunge.py
neilebliss/reddit_bot
74be4b57ddbdf9fe0d9876207388ee2778b4a50d
[ "Unlicense" ]
null
null
null
import praw import re import os reddit = praw.Reddit('Splunge Bot v1', client_id=os.environ['REDDIT_CLIENT_ID'], client_secret=os.environ['REDDIT_CLIENT_SECRET'], password=os.environ['REDDIT_PASSWORD'], username=os.environ['REDDIT_USERNAME']) subreddit = reddit.subreddit('tubasaur') for submission in subreddit.new(lim...
40.384615
210
0.775238
0
0
0
0
0
0
0
0
153
0.291429
48285ffa4d4045b7cf655571731a70ba6854e4b3
19,519
py
Python
cogv3/admin/managecommands.py
XFazze/discordbot
6b4201a6d6ff1bed5f65de4b4d30738b4d51e223
[ "MIT" ]
2
2021-07-29T02:39:36.000Z
2021-07-29T02:39:38.000Z
cogv3/admin/managecommands.py
XFazze/discordbot
6b4201a6d6ff1bed5f65de4b4d30738b4d51e223
[ "MIT" ]
2
2021-08-16T08:31:24.000Z
2021-09-20T16:34:58.000Z
cogv3/admin/managecommands.py
XFazze/discordbot
6b4201a6d6ff1bed5f65de4b4d30738b4d51e223
[ "MIT" ]
null
null
null
import discord from discord import embeds from discord.ext import commands from discord.ext.commands.core import command from pymongo import MongoClient, collation from discord_components import Button, Select, SelectOption, ComponentsBot from discord.utils import get class managecommands(commands.Cog): def __ini...
42.06681
230
0.56217
17,552
0.899226
0
0
17,383
0.890568
16,712
0.856191
2,853
0.146165
48289ef712fad809681babbffb67acddcce6b08d
13,910
py
Python
edb/pgsql/compiler/context.py
OhBonsai/edgedb
786c853090b90f3005cb65014194d0dbd45d6fcc
[ "Apache-2.0" ]
2
2019-01-21T05:43:52.000Z
2019-05-24T02:53:14.000Z
edb/pgsql/compiler/context.py
ciusji/edgedb
1c68c02430a92464839f03f43c4e5ad6f7ede4e0
[ "Apache-2.0" ]
null
null
null
edb/pgsql/compiler/context.py
ciusji/edgedb
1c68c02430a92464839f03f43c4e5ad6f7ede4e0
[ "Apache-2.0" ]
null
null
null
# # This source file is part of the EdgeDB open source project. # # Copyright 2008-present MagicStack Inc. and the EdgeDB authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http...
33.680387
76
0.649029
12,415
0.892523
300
0.021567
327
0.023508
0
0
3,245
0.233285
4828cf4e5987d77ba633b24834a9ab7cbcc2c32c
1,111
py
Python
tests/unit/test_resources_log.py
CarlosAMolina/logs-analyzer
b381d0c7ae4c5a8b6911d2b7019baa74208192c6
[ "MIT" ]
null
null
null
tests/unit/test_resources_log.py
CarlosAMolina/logs-analyzer
b381d0c7ae4c5a8b6911d2b7019baa74208192c6
[ "MIT" ]
null
null
null
tests/unit/test_resources_log.py
CarlosAMolina/logs-analyzer
b381d0c7ae4c5a8b6911d2b7019baa74208192c6
[ "MIT" ]
null
null
null
import unittest import mock from src.api.resources import log from tests import LOGS_PATH class TestLogListResource(unittest.TestCase): def setUp(self): self.class_ = log.LogListResource() def test_post_with_file_that_exits(self): class FakeRequest: @staticmethod def ...
29.236842
80
0.636364
968
0.871287
0
0
179
0.161116
0
0
124
0.111611
482a0469f8aaa784c2bee17a9875456c7d03fc8d
4,378
py
Python
src/rqt_py_trees/message_loader_thread.py
alexfneves/rqt_py_trees
87237c3dcf25db419ad783ec29b9a40fcfa7b75c
[ "BSD-3-Clause" ]
4
2021-04-19T04:04:06.000Z
2022-02-08T10:13:37.000Z
src/rqt_py_trees/message_loader_thread.py
alexfneves/rqt_py_trees
87237c3dcf25db419ad783ec29b9a40fcfa7b75c
[ "BSD-3-Clause" ]
7
2016-11-25T04:53:29.000Z
2018-10-07T21:49:10.000Z
src/rqt_py_trees/message_loader_thread.py
alexfneves/rqt_py_trees
87237c3dcf25db419ad783ec29b9a40fcfa7b75c
[ "BSD-3-Clause" ]
3
2021-01-08T10:47:21.000Z
2021-07-26T15:18:39.000Z
# Software License Agreement (BSD License) # # Copyright (c) 2012, Willow Garage, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above...
38.403509
159
0.680448
2,753
0.628826
0
0
0
0
0
0
2,038
0.465509
482b6bc1045b43ed5348ce5b37a40561a89cb30b
2,796
py
Python
run_ddpg.py
huangwl18/geometry-dex
0c629316258ef560b360c6103d83d5cb828e3ccd
[ "MIT" ]
29
2021-11-11T23:05:02.000Z
2022-03-10T06:05:23.000Z
run_ddpg.py
huangwl18/geometry-dex
0c629316258ef560b360c6103d83d5cb828e3ccd
[ "MIT" ]
2
2021-12-13T16:18:14.000Z
2022-03-09T14:04:37.000Z
run_ddpg.py
huangwl18/geometry-dex
0c629316258ef560b360c6103d83d5cb828e3ccd
[ "MIT" ]
2
2021-11-18T06:00:30.000Z
2021-12-17T03:04:52.000Z
from rl_modules.utils import * import torch import random from rl_modules.ddpg_agent import ddpg_agent from arguments_ddpg import get_args import os import numpy as np import dex_envs import wandb import warnings warnings.simplefilter(action='ignore', category=FutureWarning) """ train the agent """ def init_callback...
31.41573
90
0.658798
0
0
0
0
0
0
0
0
646
0.231044
482da58116dfb913fbea2c87dc9df1955becba11
3,528
py
Python
code/a_train_generalist.py
seba-1511/specialists
9888e639707142db80aafe6ae7bf25f572d34505
[ "Apache-2.0" ]
1
2016-05-31T07:54:31.000Z
2016-05-31T07:54:31.000Z
code/a_train_generalist.py
seba-1511/specialists
9888e639707142db80aafe6ae7bf25f572d34505
[ "Apache-2.0" ]
null
null
null
code/a_train_generalist.py
seba-1511/specialists
9888e639707142db80aafe6ae7bf25f572d34505
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This file is an experiment that will train a specified generalist network. """ import random import numpy as np from neon.backends import gen_backend from neon.data import DataIterator, load_cifar10 from neon.transforms.cost import Misclassification from neon.callbac...
33.283019
98
0.67602
0
0
0
0
0
0
0
0
431
0.122166
482db97435aafc9eda667eac490cfcdd4c5b28e6
1,393
py
Python
lilies/terminal/ansicodes.py
mrz1988/lilies
9525770fabab7e142ebedc40ab5d0c8027aa90ba
[ "MIT" ]
null
null
null
lilies/terminal/ansicodes.py
mrz1988/lilies
9525770fabab7e142ebedc40ab5d0c8027aa90ba
[ "MIT" ]
51
2019-06-18T16:35:56.000Z
2021-02-23T00:32:23.000Z
lilies/terminal/ansicodes.py
mrz1988/lilies
9525770fabab7e142ebedc40ab5d0c8027aa90ba
[ "MIT" ]
null
null
null
from __future__ import unicode_literals # Leading control character CSI = "\033[" FULLRESET = 0 BOLD = BRIGHT = 1 DIM = 2 ITALIC = 3 UNDERLINE = 4 BLINK = 5 # Unsupported ################ # RAPIDBLINK = 6 # REVERSE = 7 # CONCEAL = 8 STRIKE = 9 # Unsupported ################ # PRIMARY_FONT = 10 # ALTFONT1 = 11 # AL...
13.656863
52
0.61809
0
0
0
0
0
0
0
0
544
0.390524
482df5bdcc006ad0be823ed8da879646f9d15872
2,220
py
Python
preprocess/step1.py
wenhuchen/KGPT
f898577d8e0ebbf48ea84915777c7b01e616ca3a
[ "MIT" ]
119
2020-10-06T08:21:21.000Z
2022-03-25T12:00:10.000Z
preprocess/step1.py
wenhuchen/KGPT
f898577d8e0ebbf48ea84915777c7b01e616ca3a
[ "MIT" ]
7
2020-10-29T09:34:14.000Z
2021-12-28T14:27:27.000Z
preprocess/step1.py
wenhuchen/KGPT
f898577d8e0ebbf48ea84915777c7b01e616ca3a
[ "MIT" ]
16
2020-10-07T18:58:48.000Z
2022-02-23T07:42:29.000Z
import json import regex import nltk.data from nltk.tokenize import word_tokenize import sys sent_detector = nltk.data.load('tokenizers/punkt/english.pickle') def tokenize(string): return word_tokenize(string) def split_paragraphs(text): """ remove urls, lowercase all words and separate paragraphs ""...
30.833333
106
0.498198
0
0
0
0
0
0
0
0
274
0.123423
482eeb2176d1d54a0f7e399cf1d1c1710f4d9f12
454
py
Python
mintools/zmqmin/client.py
jtimon/elements-explorer
397089593e860c4bdceb3a1222687a9120db0022
[ "MIT" ]
9
2018-01-25T16:32:18.000Z
2018-10-10T18:47:33.000Z
mintools/zmqmin/client.py
jtimon/elements-explorer
397089593e860c4bdceb3a1222687a9120db0022
[ "MIT" ]
2
2018-03-13T20:50:33.000Z
2018-03-13T21:01:22.000Z
mintools/zmqmin/client.py
jtimon/elements-explorer
397089593e860c4bdceb3a1222687a9120db0022
[ "MIT" ]
2
2018-02-20T17:50:18.000Z
2018-02-26T07:29:15.000Z
# Copyright (c) 2012-2018 The Mintools developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import pyzmq from .messenger import Messenger class Client(Messenger): def _init_socket(self): self.socket = self.con...
26.705882
69
0.737885
217
0.477974
0
0
0
0
0
0
184
0.405286
482f26a433eaf7f306d04205a3bac702463a9adc
1,879
py
Python
scripts/filter_genes_matrix.py
fengwanwan/st_analysis
24ef6326efce7ddb1d7cfe9497a6733e48da8331
[ "MIT" ]
4
2017-03-15T15:32:12.000Z
2020-12-09T08:03:14.000Z
scripts/filter_genes_matrix.py
Coke-Zhang/st_analysis
9ec446c0f1bff8e485f2016206b43dcdcf543119
[ "MIT" ]
1
2021-05-06T16:57:21.000Z
2021-05-06T16:58:38.000Z
scripts/filter_genes_matrix.py
Coke-Zhang/st_analysis
9ec446c0f1bff8e485f2016206b43dcdcf543119
[ "MIT" ]
4
2018-03-19T12:02:41.000Z
2019-12-13T08:41:07.000Z
#! /usr/bin/env python """ Script that takes ST dataset (matrix of counts) where the columns are genes and the rows are spot coordinates gene gene XxY XxY And removes the columns of genes matching the regular expression given as input. @Author Jose Fernandez Navarro <jose.fernandez.navarro@scilifelab....
34.796296
90
0.651943
0
0
0
0
0
0
0
0
749
0.398616
482f35fcca776fd3b82f536d756e301830e31fbf
83
py
Python
libs/models/__init__.py
tonyngjichun/pspnet-pytorch
75297aa4fdb4f7a712ef9185be1ec805044f8328
[ "MIT" ]
56
2017-12-07T12:29:14.000Z
2021-05-14T16:45:59.000Z
libs/models/__init__.py
tonyngjichun/pspnet-pytorch
75297aa4fdb4f7a712ef9185be1ec805044f8328
[ "MIT" ]
7
2017-12-26T09:00:23.000Z
2019-01-14T03:55:56.000Z
libs/models/__init__.py
tonyngjichun/pspnet-pytorch
75297aa4fdb4f7a712ef9185be1ec805044f8328
[ "MIT" ]
16
2017-12-20T00:36:51.000Z
2020-12-31T07:41:06.000Z
from __future__ import absolute_import from .resnet import * from .pspnet import *
20.75
38
0.807229
0
0
0
0
0
0
0
0
0
0
482fb0fc0f3fd414d792e168bab4aaa39e2474d7
1,405
py
Python
modules/tools/record_analyzer/common/distribution_analyzer.py
seeclong/apollo
99c8afb5ebcae2a3c9359a156a957ff03944b27b
[ "Apache-2.0" ]
3
2020-04-01T14:49:24.000Z
2020-04-01T14:49:28.000Z
modules/tools/record_analyzer/common/distribution_analyzer.py
seeclong/apollo
99c8afb5ebcae2a3c9359a156a957ff03944b27b
[ "Apache-2.0" ]
7
2021-03-10T18:14:25.000Z
2022-02-27T04:46:46.000Z
modules/tools/record_analyzer/common/distribution_analyzer.py
seeclong/apollo
99c8afb5ebcae2a3c9359a156a957ff03944b27b
[ "Apache-2.0" ]
2
2020-08-05T12:52:42.000Z
2021-10-19T13:07:49.000Z
#!/usr/bin/env python ############################################################################### # Copyright 2018 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy ...
36.025641
79
0.582206
573
0.407829
0
0
0
0
0
0
865
0.615658
483016a462d5e8b33445c247250dee4a2ae74ecd
2,261
py
Python
models/batch.py
scaleapi/sail
1bd857b5db34cbd08c7d4e2476beafdb353a458d
[ "Apache-2.0" ]
7
2021-03-10T23:37:12.000Z
2022-01-13T01:14:58.000Z
models/batch.py
scaleapi/sail
1bd857b5db34cbd08c7d4e2476beafdb353a458d
[ "Apache-2.0" ]
2
2021-01-04T15:54:27.000Z
2021-03-30T22:45:03.000Z
models/batch.py
scaleapi/sail
1bd857b5db34cbd08c7d4e2476beafdb353a458d
[ "Apache-2.0" ]
3
2021-07-31T04:03:12.000Z
2021-10-03T05:51:48.000Z
from helpers.concurrency import execute from scaleapi import exceptions def upsert(client, project_name, batches): print("\n\nCreating Batches...") print("===================") def upsert_batch(desired_batch): batch_name = desired_batch['name'] batch_callback_url = desired_batch['callbac...
38.322034
145
0.62008
0
0
0
0
0
0
0
0
968
0.425121
4830669ccefdde03889bd71b019ac1ba14c36c86
315
py
Python
worker/xs.py
hoshimaemi/XZZ
6d712906fa2f1fcf16155cfd5d89245ef8e0aff8
[ "MIT" ]
29
2020-02-27T13:49:48.000Z
2021-02-26T15:44:14.000Z
worker/xs.py
hoshimaemi/XZZ
6d712906fa2f1fcf16155cfd5d89245ef8e0aff8
[ "MIT" ]
3
2021-03-30T11:31:49.000Z
2021-12-07T12:11:56.000Z
worker/xs.py
hoshimaemi/XZZ
6d712906fa2f1fcf16155cfd5d89245ef8e0aff8
[ "MIT" ]
14
2020-02-29T07:25:12.000Z
2021-01-03T05:12:25.000Z
from zzcore import StdAns, mysakuya import requests class Ans(StdAns): def GETMSG(self): msg='' try: msg += xs() except: msg += '可能是机器人笑死了!' return msg def xs(): url = "http://api-x.aya1.xyz:6/" text = requests.get(url=url).text return text
18.529412
37
0.533333
179
0.534328
0
0
0
0
0
0
60
0.179104
48331ce668f0e91220bd7b7d009bc8b5666778cd
304
py
Python
bot.py
matthewzhaocc/discord-server-status
c9c58271ab3f7142f7e827b88d5c960cc442b355
[ "MIT" ]
null
null
null
bot.py
matthewzhaocc/discord-server-status
c9c58271ab3f7142f7e827b88d5c960cc442b355
[ "MIT" ]
null
null
null
bot.py
matthewzhaocc/discord-server-status
c9c58271ab3f7142f7e827b88d5c960cc442b355
[ "MIT" ]
null
null
null
#a discord bot for playing with CICD #system dependencies import os #3rd party dependencies import discord TOKEN = os.environ.get("DISCORD_API_TOKEN") client = discord.Client() @client.event async def on_ready(): print(f'{client.user} has connected to Discord!') client.run(TOKEN)
19
54
0.720395
0
0
0
0
91
0.299342
76
0.25
143
0.470395
4834a12f8b0a1adc974a9695986c5da1d9c04010
603
py
Python
repost/api/schemas/user.py
pckv/fastapi-backend
0f561528086ac3fdcabbf9efeac888421eeb66de
[ "MIT" ]
9
2020-02-03T11:17:06.000Z
2021-06-15T13:20:34.000Z
repost/api/schemas/user.py
pckv/fastapi-backend
0f561528086ac3fdcabbf9efeac888421eeb66de
[ "MIT" ]
40
2020-02-03T11:23:59.000Z
2020-05-19T08:05:41.000Z
repost/api/schemas/user.py
pckv/fastapi-backend
0f561528086ac3fdcabbf9efeac888421eeb66de
[ "MIT" ]
1
2020-03-11T02:47:40.000Z
2020-03-11T02:47:40.000Z
"""API schemas for users.""" from datetime import datetime from typing import Optional from pydantic import BaseModel class User(BaseModel): """Schema for a user account""" username: str bio: Optional[str] avatar_url: Optional[str] created: datetime edited: Optional[datetime] class Confi...
20.1
48
0.681592
475
0.787728
0
0
0
0
0
0
142
0.235489
483592e4049e6951c186723536311a58d0a2c2a3
1,459
py
Python
gluon/packages/dal/pydal/adapters/sap.py
GeorgesBrantley/ResistanceGame
65ec925ec8399af355e176c4814a749fde5f907d
[ "BSD-3-Clause" ]
408
2015-01-01T10:31:47.000Z
2022-03-26T17:41:21.000Z
gluon/packages/dal/pydal/adapters/sap.py
GeorgesBrantley/ResistanceGame
65ec925ec8399af355e176c4814a749fde5f907d
[ "BSD-3-Clause" ]
521
2015-01-08T14:45:54.000Z
2022-03-24T11:15:22.000Z
gluon/packages/dal/pydal/adapters/sap.py
GeorgesBrantley/ResistanceGame
65ec925ec8399af355e176c4814a749fde5f907d
[ "BSD-3-Clause" ]
158
2015-01-25T20:02:00.000Z
2022-03-01T06:29:12.000Z
import re from .._compat import integer_types, long from .base import SQLAdapter from . import adapters @adapters.register_for("sapdb") class SAPDB(SQLAdapter): dbengine = "sapdb" drivers = ("sapdb",) REGEX_URI = ( "^(?P<user>[^:@]+)(:(?P<password>[^@]*))?" r"@(?P<host>[^:/]+|\[[^\]]+\])/...
32.422222
85
0.592186
1,320
0.904729
0
0
1,352
0.926662
0
0
278
0.190541
4835ed45283fa22be5264491ed9fa12710bc4c24
54,436
py
Python
search.py
Hawxo/GoWDiscordTeamBot
ebe062f88b8d39615ba871476471d466e6759e7a
[ "BSD-3-Clause" ]
null
null
null
search.py
Hawxo/GoWDiscordTeamBot
ebe062f88b8d39615ba871476471d466e6759e7a
[ "BSD-3-Clause" ]
null
null
null
search.py
Hawxo/GoWDiscordTeamBot
ebe062f88b8d39615ba871476471d466e6759e7a
[ "BSD-3-Clause" ]
null
null
null
import copy import datetime import importlib import logging import operator import re from calendar import different_locale import translations from data_source.game_data import GameData from game_constants import COLORS, EVENT_TYPES, RARITY_COLORS, SOULFORGE_REQUIREMENTS, TROOP_RARITIES, \ UNDERWORLD_SOULFORGE_RE...
44.185065
118
0.557701
53,488
0.982477
0
0
5,169
0.094945
329
0.006043
11,288
0.20734
4836dce172471538808ff516434e702497a39d34
39,841
py
Python
troposphere/sagemaker.py
filipepmo/troposphere
b1590f58ed8cc86ba18a19ed93fc9380d6f7306b
[ "BSD-2-Clause" ]
null
null
null
troposphere/sagemaker.py
filipepmo/troposphere
b1590f58ed8cc86ba18a19ed93fc9380d6f7306b
[ "BSD-2-Clause" ]
null
null
null
troposphere/sagemaker.py
filipepmo/troposphere
b1590f58ed8cc86ba18a19ed93fc9380d6f7306b
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2012-2022, Mark Peek <[email protected]> # All rights reserved. # # See LICENSE file for full license. # # *** Do not modify - this file is autogenerated *** # Resource specification version: 51.0.0 from . import AWSObject, AWSProperty, PropsDictType, Tags from .validators import boolean, double, integer ...
32.207761
206
0.680681
39,242
0.984965
0
0
0
0
0
0
21,883
0.549258
483774235763ac392213eaed3e87eadcdbd2e771
1,199
py
Python
src/lib/divergence.py
evolutics/sparse-approximation
fda419b2ca0f6563a4668bae23ca0b94936ff8e8
[ "MIT" ]
null
null
null
src/lib/divergence.py
evolutics/sparse-approximation
fda419b2ca0f6563a4668bae23ca0b94936ff8e8
[ "MIT" ]
null
null
null
src/lib/divergence.py
evolutics/sparse-approximation
fda419b2ca0f6563a4668bae23ca0b94936ff8e8
[ "MIT" ]
null
null
null
import math from numpy import linalg from scipy import stats from scipy.spatial import distance import numpy def euclidean(p, Q): return numpy.apply_along_axis(lambda q: linalg.norm(p - q), 0, Q) def hellinger(p, Q): factor = 1 / math.sqrt(2) sqrt_p = numpy.sqrt(p) return factor * numpy.apply_along...
25.510638
85
0.683069
0
0
0
0
0
0
0
0
128
0.106756
4838335f5aaabe1145c8cd0b7af080ad9ce72fb6
10,319
py
Python
vad/data_models/voice_activity.py
zsl24/voice-activity-detection
a034be23c6283121c6b72e778c6ff6711045cbe3
[ "MIT" ]
74
2021-02-22T17:35:52.000Z
2022-03-29T03:08:12.000Z
vad/data_models/voice_activity.py
zsl24/voice-activity-detection
a034be23c6283121c6b72e778c6ff6711045cbe3
[ "MIT" ]
1
2021-08-15T07:56:39.000Z
2021-08-15T07:56:39.000Z
vad/data_models/voice_activity.py
zsl24/voice-activity-detection
a034be23c6283121c6b72e778c6ff6711045cbe3
[ "MIT" ]
9
2021-07-22T16:46:11.000Z
2022-03-27T13:19:24.000Z
import json import math from dataclasses import dataclass from datetime import timedelta from enum import Enum from pathlib import Path from typing import List, Optional import numpy as np from vad.util.time_utils import ( format_timedelta_to_milliseconds, format_timedelta_to_timecode, parse_timecode_to_t...
41.777328
100
0.560907
9,953
0.964531
0
0
9,795
0.94922
0
0
1,110
0.107569
4839b9f176bff6bb0c25323ed01d0f68d5ef1760
1,807
py
Python
face_recognition/project/schema.py
dgr113/face-recognition
edda6ca8fef567d24ae740afd2399b66166f3431
[ "MIT" ]
null
null
null
face_recognition/project/schema.py
dgr113/face-recognition
edda6ca8fef567d24ae740afd2399b66166f3431
[ "MIT" ]
null
null
null
face_recognition/project/schema.py
dgr113/face-recognition
edda6ca8fef567d24ae740afd2399b66166f3431
[ "MIT" ]
null
null
null
# coding: utf-8 SCHEMA_MAPPING = { "persons": { "type": "object", "patternProperties": { r"\d+": { "type": "object", "properties": { "first_name": {"type": "string"}, "last_name": {"type": "string"}, ...
30.116667
111
0.328168
0
0
0
0
0
0
0
0
746
0.412839
483a75dbbf41e0a2382e74253427bd94ad78ce29
303
py
Python
resources/www/scripts/recibido.py
miguelarman/Redes-de-comunicaciones-ii-practica1
8f90dddcf9025f7d9c08dfb6ca1aa8dc24e9fa13
[ "MIT" ]
null
null
null
resources/www/scripts/recibido.py
miguelarman/Redes-de-comunicaciones-ii-practica1
8f90dddcf9025f7d9c08dfb6ca1aa8dc24e9fa13
[ "MIT" ]
null
null
null
resources/www/scripts/recibido.py
miguelarman/Redes-de-comunicaciones-ii-practica1
8f90dddcf9025f7d9c08dfb6ca1aa8dc24e9fa13
[ "MIT" ]
null
null
null
import sys import urllib.parse as urlparse print("Argumentos recibidos por STDIN: ") try: for line in sys.stdin: url = 'foo.com/?' + line parsed = urlparse.urlparse(url) print('Recibido: {}'.format(urlparse.parse_qs(parsed.query))) except: ignorar = True
21.642857
70
0.623762
0
0
0
0
0
0
0
0
59
0.194719
483a82b33807937515011fa3de571cf7d20b8db3
8,620
py
Python
gui/main.py
aman-v1729/CommonAudioVideoCLI
c2245a02bbafd1ff9899dba2b02f246f98538746
[ "MIT" ]
null
null
null
gui/main.py
aman-v1729/CommonAudioVideoCLI
c2245a02bbafd1ff9899dba2b02f246f98538746
[ "MIT" ]
1
2020-05-14T13:20:45.000Z
2020-05-14T19:08:06.000Z
gui/main.py
aman-v1729/CommonAudioVideoCLI
c2245a02bbafd1ff9899dba2b02f246f98538746
[ "MIT" ]
5
2020-05-17T17:00:43.000Z
2020-07-25T06:19:57.000Z
import tkinter import subprocess from tkinter import filedialog, messagebox import os import pyqrcode def clip_filename_with_extension(filename): """ clips long file names """ clipped = filename[filename.rfind("/") + 1 :] if len(clipped) > 15: clipped = clipped[:6] + "..." + clipped[clipped.rfind...
28.448845
88
0.641763
0
0
0
0
0
0
0
0
1,956
0.226914
483af36db857e32be1df5b6afda8e6fc42b22d40
2,170
py
Python
virtex/core/profile.py
chrislarson1/virtex
36eb47d1ace297951cae36edc8a00544b85fed79
[ "Apache-2.0" ]
5
2020-06-17T06:22:32.000Z
2022-03-04T09:25:31.000Z
virtex/core/profile.py
virtexlabs/virtex
36eb47d1ace297951cae36edc8a00544b85fed79
[ "Apache-2.0" ]
null
null
null
virtex/core/profile.py
virtexlabs/virtex
36eb47d1ace297951cae36edc8a00544b85fed79
[ "Apache-2.0" ]
null
null
null
# ------------------------------------------------------------------- # Copyright 2021 Virtex authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www....
31.911765
69
0.602765
0
0
0
0
526
0.242396
261
0.120276
1,144
0.527189
483bb446decbf48fa9ae87d928153944790671cf
4,855
py
Python
apps/molecular_generation/JT_VAE/src/mol_tree.py
agave233/PaddleHelix
e5578f72c2a203a27d9df7da111f1ced826c1429
[ "Apache-2.0" ]
454
2020-11-21T01:02:45.000Z
2022-03-29T12:53:40.000Z
apps/molecular_generation/JT_VAE/src/mol_tree.py
chupvl/PaddleHelix
6e082f89b8090c3c360593d40a08bffc884165dd
[ "Apache-2.0" ]
161
2020-12-12T06:35:54.000Z
2022-03-27T11:31:13.000Z
apps/molecular_generation/JT_VAE/src/mol_tree.py
chupvl/PaddleHelix
6e082f89b8090c3c360593d40a08bffc884165dd
[ "Apache-2.0" ]
108
2020-12-07T09:01:10.000Z
2022-03-31T14:42:29.000Z
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
30.923567
117
0.603502
3,181
0.655201
0
0
0
0
0
0
829
0.170752
484313fcfa513337e375cc555180add4dbd721a7
1,663
py
Python
torch/indicator/vision/object_detection/iou.py
jihuacao/Putil
b753fc94bea4cbda00f483681c55f0e9f54adef2
[ "Apache-2.0" ]
1
2018-12-09T06:09:29.000Z
2018-12-09T06:09:29.000Z
torch/indicator/vision/object_detection/iou.py
jihuacao/Putil
b753fc94bea4cbda00f483681c55f0e9f54adef2
[ "Apache-2.0" ]
null
null
null
torch/indicator/vision/object_detection/iou.py
jihuacao/Putil
b753fc94bea4cbda00f483681c55f0e9f54adef2
[ "Apache-2.0" ]
null
null
null
# coding = utf-8 from abc import ABCMeta, abstractmethod import torch from Putil.torch.indicator.vision.object_detection import box ##@brief 计算iou # @note # @return def _iou(x11, y11, x12, y12, x21, y21, x22, y22): cap, cup = box._cap_cup(x11, y11, x12, y12, x21, y21, x22, y22) return cap / cup def _cap_cup_...
26.396825
105
0.6362
1,154
0.589678
0
0
110
0.056208
0
0
675
0.344916
4843692979b67bbb7eade27d08ade8ca10f18066
2,012
py
Python
magPi_05_mountains.py
oniMoNaku/thePit
f82d2dc70346e6188fca493a4b9373aa99ccfa32
[ "Unlicense" ]
null
null
null
magPi_05_mountains.py
oniMoNaku/thePit
f82d2dc70346e6188fca493a4b9373aa99ccfa32
[ "Unlicense" ]
null
null
null
magPi_05_mountains.py
oniMoNaku/thePit
f82d2dc70346e6188fca493a4b9373aa99ccfa32
[ "Unlicense" ]
null
null
null
# today is 389f # the python pit # magPi - 05 # MOUNTAINS import os, pygame; from pygame.locals import * pygame.init(); clock = pygame.time.Clock() os.environ['SDL_VIDEO_WINDOW_POS'] = 'center' pygame.display.set_caption("Mountains") screen=pygame.display.set_mode([600,382],0,32) sky = pygame.Surface((600,255)) r=0;...
34.101695
73
0.638171
0
0
0
0
0
0
0
0
298
0.148111
48461f7075c6cb1cc7aff2cd4d853dffd50a16bd
6,041
py
Python
bots/parkour/reports.py
Marcin1396/parkour
25d7d888b178eb7860a897e6df7578f2de0a729a
[ "MIT" ]
null
null
null
bots/parkour/reports.py
Marcin1396/parkour
25d7d888b178eb7860a897e6df7578f2de0a729a
[ "MIT" ]
null
null
null
bots/parkour/reports.py
Marcin1396/parkour
25d7d888b178eb7860a897e6df7578f2de0a729a
[ "MIT" ]
null
null
null
""" Handles reports """ from parkour.env import env from parkour.utils import normalize_name import asyncio import aiotfm import time class Reports(aiotfm.Client): def __init__(self, *args, **kwargs): self.rep_id = 0 self.reports = {} self.reported = [] self.reporters = [] super().__init__(*args, **kwarg...
24.556911
96
0.640953
5,904
0.977322
0
0
0
0
5,302
0.877669
1,201
0.198808
48473f9998c2721254601aaa70efd1a6c575862d
3,053
py
Python
data_analysis_scripts/mouse_et_ephys_viz.py
idc9/mvmm_sim
5819d9ff95e36310536fd436bba50baba4f0ca71
[ "MIT" ]
null
null
null
data_analysis_scripts/mouse_et_ephys_viz.py
idc9/mvmm_sim
5819d9ff95e36310536fd436bba50baba4f0ca71
[ "MIT" ]
null
null
null
data_analysis_scripts/mouse_et_ephys_viz.py
idc9/mvmm_sim
5819d9ff95e36310536fd436bba50baba4f0ca71
[ "MIT" ]
null
null
null
from joblib import load from os.path import join import argparse import numpy as np import matplotlib.pyplot as plt from mvmm_sim.simulation.sim_viz import save_fig from mvmm_sim.data_analysis.utils import load_data from mvmm_sim.simulation.utils import make_and_get_dir from mvmm_sim.mouse_et.MouseETPaths import Mous...
32.827957
76
0.689158
0
0
0
0
0
0
0
0
478
0.156567
48474668430bd56c9be0fa4e96a14ac44c7e0f55
1,831
py
Python
gimmemotifs/commands/match.py
littleblackfish/gimmemotifs
913a6e5db378493155273e2c0f8ab0dc11ab219e
[ "MIT" ]
null
null
null
gimmemotifs/commands/match.py
littleblackfish/gimmemotifs
913a6e5db378493155273e2c0f8ab0dc11ab219e
[ "MIT" ]
null
null
null
gimmemotifs/commands/match.py
littleblackfish/gimmemotifs
913a6e5db378493155273e2c0f8ab0dc11ab219e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2009-2016 Simon van Heeringen <[email protected]> # # This module is free software. You can redistribute it and/or modify it under # the terms of the MIT License, see the file COPYING included with this # distribution. from __future__ import print_function from gimmem...
38.145833
111
0.588749
0
0
0
0
0
0
0
0
376
0.205352
4847f5739e2a2a4fe3f2279bc69fc734031f35e3
5,610
py
Python
rest-service/manager_rest/rest/resources_v3/users.py
TS-at-WS/cloudify-manager
3e062e8dec16c89d2ab180d0b761cbf76d3f7ddc
[ "Apache-2.0" ]
null
null
null
rest-service/manager_rest/rest/resources_v3/users.py
TS-at-WS/cloudify-manager
3e062e8dec16c89d2ab180d0b761cbf76d3f7ddc
[ "Apache-2.0" ]
null
null
null
rest-service/manager_rest/rest/resources_v3/users.py
TS-at-WS/cloudify-manager
3e062e8dec16c89d2ab180d0b761cbf76d3f7ddc
[ "Apache-2.0" ]
null
null
null
######### # Copyright (c) 2016 GigaSpaces Technologies Ltd. All rights reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
34.207317
79
0.659893
4,303
0.767023
0
0
4,054
0.722638
0
0
1,397
0.24902
484898b58a6b8f0e2cf8c6f249de3cb0f85b7504
6,659
py
Python
src/m2_run_this_on_laptop.py
Petersl13/99-CapstoneProject-201920
4ec25ebf064e93745b9280a09c9212f8b16f76a1
[ "MIT" ]
null
null
null
src/m2_run_this_on_laptop.py
Petersl13/99-CapstoneProject-201920
4ec25ebf064e93745b9280a09c9212f8b16f76a1
[ "MIT" ]
null
null
null
src/m2_run_this_on_laptop.py
Petersl13/99-CapstoneProject-201920
4ec25ebf064e93745b9280a09c9212f8b16f76a1
[ "MIT" ]
null
null
null
""" Capstone Project. Code to run on a LAPTOP (NOT the robot). Displays the Graphical User Interface (GUI) and communicates with the robot. Authors: Your professors (for the framework) and Nathalie Grier. Winter term, 2018-2019. """ import mqtt_remote_method_calls as com import tkinter from tkinter impo...
40.357576
168
0.59138
0
0
0
0
0
0
0
0
2,951
0.44316
4848f32ae381a42ff50e4c60f9915efe85ae845d
853
py
Python
python/tree/0704_binary_search.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
6
2019-07-15T13:23:57.000Z
2020-01-22T03:12:01.000Z
python/tree/0704_binary_search.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
null
null
null
python/tree/0704_binary_search.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
1
2019-07-24T02:15:31.000Z
2019-07-24T02:15:31.000Z
class Solution(object): def search(self, nums, target): """ :type nums: List[int] :type target: int :rtype: int """ return self.binary_search(nums, target, 0, len(nums) - 1) def binary_search(self, nums, target, low, hight): mid = low + (hight - low) // 2...
29.413793
67
0.501758
642
0.752638
0
0
0
0
0
0
91
0.106682
4848f46a84c4346593a1d98c3f7f6dead3b394ab
2,905
py
Python
alphamind/benchmarks/data/neutralize.py
rongliang-tech/alpha-mind
39f720974c637d17e185e445dc05c9fc4863a241
[ "MIT" ]
186
2017-11-27T01:26:44.000Z
2022-03-28T16:11:33.000Z
alphamind/benchmarks/data/neutralize.py
atefar2/alpha-mind
66d839affb5d81d31d5cac7e5e224278e3f99a8b
[ "MIT" ]
2
2017-12-19T02:47:36.000Z
2021-01-09T05:25:18.000Z
alphamind/benchmarks/data/neutralize.py
atefar2/alpha-mind
66d839affb5d81d31d5cac7e5e224278e3f99a8b
[ "MIT" ]
65
2017-11-27T01:26:47.000Z
2022-03-17T10:50:52.000Z
# -*- coding: utf-8 -*- """ Created on 2017-4-25 @author: cheng.li """ import datetime as dt import numpy as np from sklearn.linear_model import LinearRegression from alphamind.data.neutralize import neutralize def benchmark_neutralize(n_samples: int, n_features: int, n_loops: int) -> None: pr...
35.864198
102
0.561102
0
0
0
0
0
0
0
0
451
0.15525
484bd025db2a6036894e42cd251bae437f17440a
329
py
Python
python/__init__.py
seangal/xAODAnaHelpers
49f15c8525bf4aed9beceec2c58e58964d57e034
[ "Apache-2.0" ]
null
null
null
python/__init__.py
seangal/xAODAnaHelpers
49f15c8525bf4aed9beceec2c58e58964d57e034
[ "Apache-2.0" ]
null
null
null
python/__init__.py
seangal/xAODAnaHelpers
49f15c8525bf4aed9beceec2c58e58964d57e034
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*-, from __future__ import absolute_import from __future__ import print_function from . import logging as xAH_logging try: from .config import Config except: xAH_logging.logger.warning("xAH::Config could not be imported.") __version__ = "1.0.0" __all__ = ["utils", "...
21.933333
68
0.723404
0
0
0
0
0
0
0
0
103
0.31307
484e5a10424681e3b5a649a30275352d6bd27762
8,118
py
Python
process/extract.py
kogakenji/kasatomaru
6e3cd36ea54a5e7c8042d17beed4675f210f1a36
[ "MIT" ]
null
null
null
process/extract.py
kogakenji/kasatomaru
6e3cd36ea54a5e7c8042d17beed4675f210f1a36
[ "MIT" ]
2
2021-03-31T19:40:45.000Z
2021-12-13T20:34:12.000Z
process/extract.py
kogakenji/kasatomaru
6e3cd36ea54a5e7c8042d17beed4675f210f1a36
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup import lxml.html import pathlib import db import datetime from concurrent.futures import ThreadPoolExecutor import threading # Define the lock globally lock = threading.Lock() def files_list(start, end): """Generate url list with given start and end of indexes""" resultlist = [] ...
44.604396
184
0.572555
921
0.113424
0
0
0
0
0
0
2,200
0.270936
484f03e9c4b7ff5aefbc6845368e72fc3dfe1209
114
py
Python
tests/shunit/data/bad_i18n_newline_5.py
nicole331/TWLight
fab9002e76868f8a2ef36f9279c777de34243b2c
[ "MIT" ]
67
2017-12-14T22:27:48.000Z
2022-03-13T18:21:31.000Z
tests/shunit/data/bad_i18n_newline_5.py
nicole331/TWLight
fab9002e76868f8a2ef36f9279c777de34243b2c
[ "MIT" ]
433
2017-03-24T22:51:23.000Z
2022-03-31T19:36:22.000Z
tests/shunit/data/bad_i18n_newline_5.py
Mahuton/TWLight
90b299d07b0479f21dc90e17b8d05f5a221b0de1
[ "MIT" ]
105
2017-06-23T03:53:41.000Z
2022-03-30T17:24:29.000Z
# Single-quoted string is preceded and succeeded by newlines. # Translators: This is a helpful comment. _( '5' )
16.285714
61
0.736842
0
0
0
0
0
0
0
0
105
0.921053
48511c78e308c11777c5277149036d4e3f1a72d0
9,090
py
Python
deciphon/protein_profile.py
EBI-Metagenomics/deciphon-py
81df946c4f2f53c55ac96fc78ed2f95958b291d8
[ "MIT" ]
null
null
null
deciphon/protein_profile.py
EBI-Metagenomics/deciphon-py
81df946c4f2f53c55ac96fc78ed2f95958b291d8
[ "MIT" ]
1
2021-07-02T10:24:19.000Z
2021-07-02T10:24:19.000Z
deciphon/protein_profile.py
EBI-Metagenomics/deciphon-py
81df946c4f2f53c55ac96fc78ed2f95958b291d8
[ "MIT" ]
null
null
null
from __future__ import annotations from math import log from typing import List, Type, Union from imm import MuteState, Sequence, lprob_add, lprob_zero from nmm import ( AminoAlphabet, AminoLprob, BaseLprob, CodonLprob, CodonMarg, DNAAlphabet, FrameState, RNAAlphabet, codon_iter, )...
31.344828
85
0.627063
4,547
0.50022
0
0
1,435
0.157866
0
0
3,573
0.393069
48514c4855c82f6511561bc091163063091c1e9c
664
py
Python
ptranking/ltr_adhoc/util/one_hot_utils.py
junj2ejj/ptranking.github.io
06fa9751dd2eca89749ba4bb9641e4272cfc30a1
[ "MIT" ]
1
2020-09-24T10:38:53.000Z
2020-09-24T10:38:53.000Z
ptranking/ltr_adhoc/util/one_hot_utils.py
junj2ejj/ptranking.github.io
06fa9751dd2eca89749ba4bb9641e4272cfc30a1
[ "MIT" ]
null
null
null
ptranking/ltr_adhoc/util/one_hot_utils.py
junj2ejj/ptranking.github.io
06fa9751dd2eca89749ba4bb9641e4272cfc30a1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Description """ import torch from ptranking.ltr_global import global_gpu as gpu def get_one_hot_reprs(batch_stds): """ Get one-hot representation of batch ground-truth labels """ batch_size = batch_stds.size(0) hist_size = batch_stds.size(1) int_batch...
30.181818
125
0.74247
0
0
0
0
0
0
0
0
126
0.189759
485441df6c93c795b69160386a1e913eee4699da
5,108
py
Python
src/data_module.py
enningxie/lightning-semantic-matching
156ce3d40c53436b8166679c718b80f45782fe37
[ "MIT" ]
2
2020-10-21T01:02:22.000Z
2021-07-29T01:56:53.000Z
src/data_module.py
enningxie/lightning-semantic-matching
156ce3d40c53436b8166679c718b80f45782fe37
[ "MIT" ]
null
null
null
src/data_module.py
enningxie/lightning-semantic-matching
156ce3d40c53436b8166679c718b80f45782fe37
[ "MIT" ]
null
null
null
# Created by xieenning at 2020/10/19 from argparse import ArgumentParser, Namespace from typing import Optional, Union, List from pytorch_lightning import LightningDataModule from transformers import BertTokenizer from transformers import ElectraTokenizer from transformers.utils import logging import torch from torch.u...
39.292308
108
0.634495
3,955
0.774276
0
0
1,486
0.290916
0
0
638
0.124902
48544b3690b1859057fd2e593fbf385719c5db3e
14,076
py
Python
mainwin.py
hatmann1944/pyqt-http-file-svr
3e95a222dc7d662921da44654aadb1721cba0382
[ "Apache-2.0" ]
1
2015-08-27T13:22:42.000Z
2015-08-27T13:22:42.000Z
mainwin.py
hatmann1944/pyqt-http-file-svr
3e95a222dc7d662921da44654aadb1721cba0382
[ "Apache-2.0" ]
null
null
null
mainwin.py
hatmann1944/pyqt-http-file-svr
3e95a222dc7d662921da44654aadb1721cba0382
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/mnt/hgfs/tmpcode/pyqt-http/untitled.ui' # # Created: Fri Jun 5 10:59:33 2015 # by: PyQt4 UI code generator 4.10.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui import socket import signal im...
32.210526
157
0.586957
11,146
0.791844
0
0
0
0
0
0
2,565
0.182225
4854e27a28f0ec8896c437afdc84226fabdac5c2
905
py
Python
monzo/handlers/echo.py
petermcd/monzo-api
e7b09d7564d07d00c0d0031b300f72e4479d8690
[ "MIT" ]
1
2022-02-08T23:13:56.000Z
2022-02-08T23:13:56.000Z
monzo/handlers/echo.py
petermcd/monzo-api
e7b09d7564d07d00c0d0031b300f72e4479d8690
[ "MIT" ]
12
2021-09-21T20:09:50.000Z
2022-03-13T14:39:02.000Z
monzo/handlers/echo.py
petermcd/monzo-api
e7b09d7564d07d00c0d0031b300f72e4479d8690
[ "MIT" ]
1
2021-12-05T17:47:33.000Z
2021-12-05T17:47:33.000Z
"""Class to echo credentials.""" from monzo.handlers.storage import Storage class Echo(Storage): """Class that will echo out credentials.""" def store( self, access_token: str, client_id: str, client_secret: str, expiry: int, refresh_token: str = '' ) -> No...
29.193548
82
0.583425
826
0.912707
0
0
0
0
0
0
569
0.628729
4854e666dca1f05f5b35de7678011b69bdfaadb9
359
py
Python
grappelli/settings.py
theatlantic/django-grappelli-old
f4a5f10a2e68024873556d4cc249cf0351eb1335
[ "BSD-3-Clause" ]
285
2019-12-23T09:50:21.000Z
2021-12-08T09:08:49.000Z
base/site-packages/grappelli/settings.py
jeckun/fastor
342078a18363ac41d3c6b1ab29dbdd44fdb0b7b3
[ "Apache-2.0" ]
null
null
null
base/site-packages/grappelli/settings.py
jeckun/fastor
342078a18363ac41d3c6b1ab29dbdd44fdb0b7b3
[ "Apache-2.0" ]
9
2019-12-23T12:59:25.000Z
2022-03-15T05:12:11.000Z
# coding: utf-8 # DJANGO IMPORTS from django.conf import settings # Admin Site Title ADMIN_HEADLINE = getattr(settings, "GRAPPELLI_ADMIN_HEADLINE", 'Grappelli') ADMIN_TITLE = getattr(settings, "GRAPPELLI_ADMIN_TITLE", 'Grappelli') # Link to your Main Admin Site (no slashes at start and end) ADMIN_URL = getattr(sett...
29.916667
75
0.768802
0
0
0
0
0
0
0
0
210
0.584958
4855ae459d96ebb92658af5b5f4e917cfa5c95f9
638
py
Python
epikjjh/baekjoon/2178.py
15ers/Solve_Naively
23ee4a3aedbedb65b9040594b8c9c6d9cff77090
[ "MIT" ]
3
2019-05-19T13:44:39.000Z
2019-07-03T11:15:20.000Z
epikjjh/baekjoon/2178.py
15ers/Solve_Naively
23ee4a3aedbedb65b9040594b8c9c6d9cff77090
[ "MIT" ]
7
2019-05-06T02:37:26.000Z
2019-06-29T07:28:02.000Z
epikjjh/baekjoon/2178.py
15ers/Solve_Naively
23ee4a3aedbedb65b9040594b8c9c6d9cff77090
[ "MIT" ]
1
2019-07-28T06:24:54.000Z
2019-07-28T06:24:54.000Z
import sys def conv(stream): return [int(e) for e in stream] input = sys.stdin.readline n,m = map(int,input().split()) arr = [conv(input().split()[0]) for i in range(n)] visit = [[0]*m for i in range(n)] visit[0][0] = 1 direction = [(0,1),(0,-1),(1,0),(-1,0)] queue = [[0,0]] while queue: y,x = queue....
26.583333
75
0.525078
0
0
0
0
0
0
0
0
0
0
485611bfa6d80f65f56625abee3ae8772d391fbe
2,877
py
Python
DockerHubPackages/code/analyzer/analyzers/python_packages.py
halcyondude/datasets
f91cec403b09d6ca060c41bf0147fb3a15fac1fc
[ "Apache-2.0" ]
283
2018-01-27T21:51:21.000Z
2022-03-07T11:23:44.000Z
DockerHubPackages/code/analyzer/analyzers/python_packages.py
halcyondude/datasets
f91cec403b09d6ca060c41bf0147fb3a15fac1fc
[ "Apache-2.0" ]
100
2018-01-28T18:02:41.000Z
2021-11-10T11:00:38.000Z
DockerHubPackages/code/analyzer/analyzers/python_packages.py
halcyondude/datasets
f91cec403b09d6ca060c41bf0147fb3a15fac1fc
[ "Apache-2.0" ]
79
2018-01-28T17:57:38.000Z
2022-03-21T11:44:16.000Z
from ..utils import run import logging logger = logging.getLogger(__name__) def process_one_package(path, package, python_version="3"): """Get details about one precise python package in the given image. :param path: path were the docker image filesystem is expanded. :type path: string :param pa...
37.855263
103
0.620438
0
0
0
0
0
0
0
0
1,476
0.513034
4856168e71f578517034764f4b9110679f5820fe
24
py
Python
src/maho/modules/__init__.py
evangelos-ch/maho-bot
458c3ed0e4cb4d8edd300441b2defbc481aaf3f3
[ "MIT" ]
null
null
null
src/maho/modules/__init__.py
evangelos-ch/maho-bot
458c3ed0e4cb4d8edd300441b2defbc481aaf3f3
[ "MIT" ]
null
null
null
src/maho/modules/__init__.py
evangelos-ch/maho-bot
458c3ed0e4cb4d8edd300441b2defbc481aaf3f3
[ "MIT" ]
1
2021-02-16T13:06:56.000Z
2021-02-16T13:06:56.000Z
"""Maho bot modules."""
12
23
0.583333
0
0
0
0
0
0
0
0
23
0.958333
485cca825ed78a1668753f45f923d308e840da2c
6,785
py
Python
backend/dc_tests/api_views.py
gitter-badger/djangochannel
f9e33254739457c461e84b66879172007512f9b0
[ "BSD-3-Clause" ]
2
2021-11-29T15:34:24.000Z
2021-12-02T14:47:20.000Z
backend/dc_tests/api_views.py
gitter-badger/djangochannel
f9e33254739457c461e84b66879172007512f9b0
[ "BSD-3-Clause" ]
null
null
null
backend/dc_tests/api_views.py
gitter-badger/djangochannel
f9e33254739457c461e84b66879172007512f9b0
[ "BSD-3-Clause" ]
null
null
null
from django.core.exceptions import ObjectDoesNotExist from django.http import HttpResponse, JsonResponse from django.views.generic.base import View from django.contrib.auth.mixins import LoginRequiredMixin from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import ...
32.464115
113
0.627708
6,334
0.845322
0
0
863
0.115174
0
0
2,995
0.399706
485d74659bc61cba2ba9b5ae45bb87b9fe1df6b3
2,066
py
Python
sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py
rosskevin/pulumi-kubernetes
e4fa04b13a20929c879aca1bbe58fb5a95d16f7c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py
rosskevin/pulumi-kubernetes
e4fa04b13a20929c879aca1bbe58fb5a95d16f7c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py
rosskevin/pulumi-kubernetes
e4fa04b13a20929c879aca1bbe58fb5a95d16f7c
[ "Apache-2.0" ]
null
null
null
import pulumi import pulumi.runtime from ... import tables class ControllerRevision(pulumi.CustomResource): """ ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerR...
44.913043
100
0.703291
2,004
0.96999
0
0
0
0
0
0
1,031
0.499032
485ec5eb7e878a442433e3d945a0ad573fe3057e
1,479
py
Python
backend/python_scripts/feedback_frequency.py
bartaliskrisztian/sapifeedback
a63e38c0b767458509e47c1d5ccad0f6ce21a285
[ "MIT" ]
null
null
null
backend/python_scripts/feedback_frequency.py
bartaliskrisztian/sapifeedback
a63e38c0b767458509e47c1d5ccad0f6ce21a285
[ "MIT" ]
null
null
null
backend/python_scripts/feedback_frequency.py
bartaliskrisztian/sapifeedback
a63e38c0b767458509e47c1d5ccad0f6ce21a285
[ "MIT" ]
null
null
null
import sys import json import pandas as pd from datetime import datetime, timedelta import matplotlib.pyplot as plt import os import base64 def main(): # getting the array of feedback dates argv_tmp = eval(sys.argv[1]) if type(argv_tmp) == int: dates_ts = [argv_tmp] else: dates_ts = li...
23.47619
70
0.619337
0
0
0
0
0
0
0
0
249
0.168357
485f584dda3b7ed9cbcd49b969e57d33ae96c239
6,720
py
Python
tempest/tests/lib/services/placement/test_resource_providers_client.py
AurelienLourot/tempest
4d14a22a1a0eb7aaa4aafb917273baa0739f55c3
[ "Apache-2.0" ]
null
null
null
tempest/tests/lib/services/placement/test_resource_providers_client.py
AurelienLourot/tempest
4d14a22a1a0eb7aaa4aafb917273baa0739f55c3
[ "Apache-2.0" ]
null
null
null
tempest/tests/lib/services/placement/test_resource_providers_client.py
AurelienLourot/tempest
4d14a22a1a0eb7aaa4aafb917273baa0739f55c3
[ "Apache-2.0" ]
null
null
null
# 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, software # d...
36.721311
78
0.654315
5,982
0.890179
0
0
0
0
0
0
1,550
0.230655
485f7ffc14de09acdf65c094b7c9e15395d4ca1b
1,001
py
Python
problems/095.py
JoshKarpel/Euler
9c4a89cfe4b0114d84a82e2b2894c7b8af815e93
[ "MIT" ]
1
2017-09-20T22:26:24.000Z
2017-09-20T22:26:24.000Z
problems/095.py
JoshKarpel/euler-python
9c4a89cfe4b0114d84a82e2b2894c7b8af815e93
[ "MIT" ]
null
null
null
problems/095.py
JoshKarpel/euler-python
9c4a89cfe4b0114d84a82e2b2894c7b8af815e93
[ "MIT" ]
null
null
null
from problems import utils, mymath @utils.memoize def sum_proper_factors(n): return sum(mymath.proper_factorization(n)) def solve(): upper_bound = 1000000 chains = dict() for start_number in range(1, upper_bound): chain = [start_number] current_number = sum_proper_factors(start_num...
26.342105
87
0.632368
0
0
0
0
88
0.087912
0
0
10
0.00999
4860d4c2fef20a3559333f3c07fba155be5e079a
12,166
py
Python
core/utils.py
jojo23333/mcan-vqa
294cf672155a3c01d148450afc6542412a8837e6
[ "Apache-2.0" ]
null
null
null
core/utils.py
jojo23333/mcan-vqa
294cf672155a3c01d148450afc6542412a8837e6
[ "Apache-2.0" ]
null
null
null
core/utils.py
jojo23333/mcan-vqa
294cf672155a3c01d148450afc6542412a8837e6
[ "Apache-2.0" ]
null
null
null
import copy import logging import re import torch import json from fvcore.common.checkpoint import ( get_missing_parameters_message, get_unexpected_parameters_message, ) from core.data.data_utils import ans_stat class HierarchicClassification(object): def __init__(self, __C): self.__C = __C ...
39.888525
102
0.616472
6,688
0.549729
0
0
0
0
0
0
3,894
0.320072
486361edc3e5c1d568dba14a5be4788c38396ea5
6,589
py
Python
spid_cie_oidc/entity/trust_chain_operations.py
peppelinux/spid-cie-oidc-authority
816636fece10f410f5d6fce85fd79bb409d0c8b8
[ "Apache-2.0" ]
4
2022-03-08T09:05:13.000Z
2022-03-16T17:59:43.000Z
spid_cie_oidc/entity/trust_chain_operations.py
peppelinux/spid-cie-oidc-authority
816636fece10f410f5d6fce85fd79bb409d0c8b8
[ "Apache-2.0" ]
64
2022-03-08T01:11:40.000Z
2022-03-31T17:23:49.000Z
spid_cie_oidc/entity/trust_chain_operations.py
peppelinux/spid-cie-oidc-authority
816636fece10f410f5d6fce85fd79bb409d0c8b8
[ "Apache-2.0" ]
8
2022-03-09T12:00:08.000Z
2022-03-31T13:52:14.000Z
import logging from django.utils import timezone from typing import Union from .exceptions import InvalidTrustchain, TrustchainMissingMetadata from .models import FetchedEntityStatement, TrustChain from .statements import EntityConfiguration, get_entity_configurations from .settings import HTTPC_PARAMS from .trust_ch...
32.29902
87
0.610563
0
0
0
0
0
0
0
0
869
0.131886
486394bb559615b84fa49567fcdb6a63df1d44d1
19,445
py
Python
code.py
FoamyGuy/CircuitPython_CSV_TileMap_Game
4cf1661dd7db1cecd434e9fba6e07eb375ffc06d
[ "MIT" ]
1
2020-05-14T02:35:09.000Z
2020-05-14T02:35:09.000Z
code.py
FoamyGuy/CircuitPython_CSV_TileMap_Game
4cf1661dd7db1cecd434e9fba6e07eb375ffc06d
[ "MIT" ]
null
null
null
code.py
FoamyGuy/CircuitPython_CSV_TileMap_Game
4cf1661dd7db1cecd434e9fba6e07eb375ffc06d
[ "MIT" ]
null
null
null
import board import displayio import adafruit_imageload from displayio import Palette from adafruit_pybadger import PyBadger import time # Direction constants for comparison UP = 0 DOWN = 1 RIGHT = 2 LEFT = 3 # how long to wait between rendering frames FPS_DELAY = 1/30 # how many tiles can fit on thes screen. Tiles ...
37.038095
123
0.581846
0
0
0
0
0
0
0
0
7,688
0.395372
4866676df99cb56da6528e0c45d5fc2aef3aec92
13,162
py
Python
tools/harness/tests/compiler-rt_builtins.py
Harvard-PRINCESS/barrelfish-trunk-mirror
1c98195d123046d985bb3952a591297c2ef6fdf9
[ "MIT" ]
4
2017-09-16T01:23:48.000Z
2017-09-22T08:02:47.000Z
tools/harness/tests/compiler-rt_builtins.py
Harvard-PRINCESS/barrelfish-trunk-mirror
1c98195d123046d985bb3952a591297c2ef6fdf9
[ "MIT" ]
null
null
null
tools/harness/tests/compiler-rt_builtins.py
Harvard-PRINCESS/barrelfish-trunk-mirror
1c98195d123046d985bb3952a591297c2ef6fdf9
[ "MIT" ]
1
2020-03-06T15:48:10.000Z
2020-03-06T15:48:10.000Z
########################################################################## # Copyright (c) 2009, ETH Zurich. # All rights reserved. # # This file is distributed under the terms in the attached LICENSE file. # If you do not find this file, copies can be found by writing to: # ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092...
50.429119
81
0.677557
827
0.062832
0
0
366
0.027807
0
0
9,667
0.734463
4866eb2646559988f7b4c029e556146f3b4e3f4a
4,090
py
Python
api_base.py
mpalazzolo/API-Base
b0a7c3ba9bb5add59a43d3dec36354318478e226
[ "MIT" ]
null
null
null
api_base.py
mpalazzolo/API-Base
b0a7c3ba9bb5add59a43d3dec36354318478e226
[ "MIT" ]
null
null
null
api_base.py
mpalazzolo/API-Base
b0a7c3ba9bb5add59a43d3dec36354318478e226
[ "MIT" ]
null
null
null
import requests from requests.exceptions import HTTPError import time class APIBase: """ This class is to be used as a base to build an API library. Authorization token generation and endpoint functions must be written """ def __init__(self, root, proxies=None, requests_session=True, max_retries...
30.75188
114
0.526406
4,016
0.981907
0
0
0
0
0
0
1,734
0.423961
486787d9c3efbc67538ff3c74ea68506a0623fb8
1,143
py
Python
plasmasm/arch/X64.py
LRGH/plasmasm
4cd50546c3dc895763d72dd60b7c46179c1916bc
[ "Apache-2.0" ]
1
2021-02-28T21:31:18.000Z
2021-02-28T21:31:18.000Z
plasmasm/arch/X64.py
LRGH/plasmasm
4cd50546c3dc895763d72dd60b7c46179c1916bc
[ "Apache-2.0" ]
null
null
null
plasmasm/arch/X64.py
LRGH/plasmasm
4cd50546c3dc895763d72dd60b7c46179c1916bc
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2011-2020 Airbus, [email protected] containers = { 'ELF': 'X86_64', 'MACHO': 'X86_64' } try: from plasmasm.python.compatibility import set except ImportError: pass from plasmasm.arch.I386 import opcodes as opcodes_x86 x64_att_opcodes = set([ 'jmpq', 'callq', 'retq', 'popq', 'pu...
42.333333
112
0.551181
0
0
0
0
0
0
0
0
565
0.494313
4868d79bbf2ff6bbae4f4cb4d9abf9fab912436f
724
py
Python
ansiblelater/rules/CheckScmInSrc.py
ankitdobhal/ansible-later
a107cd2821e310fd459a7f9b802d5794f2b96f35
[ "MIT" ]
38
2020-10-14T09:40:58.000Z
2022-03-17T10:45:22.000Z
ansiblelater/rules/CheckScmInSrc.py
ankitdobhal/ansible-later
a107cd2821e310fd459a7f9b802d5794f2b96f35
[ "MIT" ]
188
2020-09-29T09:43:54.000Z
2022-03-04T08:45:42.000Z
ansiblelater/rules/CheckScmInSrc.py
ankitdobhal/ansible-later
a107cd2821e310fd459a7f9b802d5794f2b96f35
[ "MIT" ]
4
2021-02-10T03:35:19.000Z
2022-01-17T15:54:39.000Z
from ansible.parsing.yaml.objects import AnsibleMapping from ansiblelater.standard import StandardBase class CheckScmInSrc(StandardBase): sid = "ANSIBLE0005" description = "Use `scm:` key rather than `src: scm+url`" helptext = "usage of `src: scm+url` not recommended" version = "0.1" types = ["r...
30.166667
82
0.627072
617
0.85221
0
0
0
0
0
0
131
0.180939
486936b454230e71425f5f21ffabf8c3b40a119e
595
py
Python
DMOJ/CCC/slot machine.py
eddiegz/Personal-C
f7869826216e5c665f8f646502141f0dc680e545
[ "MIT" ]
3
2021-05-15T08:18:09.000Z
2021-05-17T04:41:57.000Z
DMOJ/CCC/slot machine.py
eddiegz/Personal-C
f7869826216e5c665f8f646502141f0dc680e545
[ "MIT" ]
null
null
null
DMOJ/CCC/slot machine.py
eddiegz/Personal-C
f7869826216e5c665f8f646502141f0dc680e545
[ "MIT" ]
null
null
null
quarter=int(input()) p1=int(input()) p2=int(input()) p3=int(input()) time=0 while quarter>0: if quarter == 0: continue p1+=1 quarter-=1 time+=1 if p1==35: quarter+=30 p1=0 if quarter == 0: continue time+=1 p2+=1 quarter-=1 ...
16.081081
56
0.438655
0
0
0
0
0
0
0
0
48
0.080672
4869a5e537b1616b1387d41f76532922834d0c3e
327
py
Python
project/app/migrations/0003_auto_20210125_0924.py
dbinetti/kidsallin
147491cdfbe812ffde91725193ec16c03083c1da
[ "BSD-3-Clause" ]
null
null
null
project/app/migrations/0003_auto_20210125_0924.py
dbinetti/kidsallin
147491cdfbe812ffde91725193ec16c03083c1da
[ "BSD-3-Clause" ]
null
null
null
project/app/migrations/0003_auto_20210125_0924.py
dbinetti/kidsallin
147491cdfbe812ffde91725193ec16c03083c1da
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.1.5 on 2021-01-25 16:24 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('app', '0002_auto_20210124_0610'), ] operations = [ migrations.RenameModel( old_name='Parent', new_name='Account', ),...
18.166667
47
0.590214
242
0.740061
0
0
0
0
0
0
94
0.287462
486abe98f15277d75707a2bda0dddf48de43bab7
28,203
py
Python
cinder/volume/drivers/emc/emc_vmax_provision.py
kazum/cinder
370b8e60c3166b289c8da924a227dd1bc63f8b8a
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/emc/emc_vmax_provision.py
kazum/cinder
370b8e60c3166b289c8da924a227dd1bc63f8b8a
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/emc/emc_vmax_provision.py
kazum/cinder
370b8e60c3166b289c8da924a227dd1bc63f8b8a
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012 - 2014 EMC Corporation. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unle...
42.731818
79
0.587987
27,228
0.965429
0
0
0
0
0
0
11,856
0.420381
486b39af5811634dc06771353577ccba06dfa1ca
9,840
py
Python
tests/gold_tests/redirect/redirect_actions.test.py
cmcfarlen/trafficserver
2aa1d3106398eb082e5a454212b0273c63d5f69d
[ "Apache-2.0" ]
1,351
2015-01-03T08:25:40.000Z
2022-03-31T09:14:08.000Z
tests/gold_tests/redirect/redirect_actions.test.py
cmcfarlen/trafficserver
2aa1d3106398eb082e5a454212b0273c63d5f69d
[ "Apache-2.0" ]
7,009
2015-01-14T16:22:45.000Z
2022-03-31T17:18:04.000Z
tests/gold_tests/redirect/redirect_actions.test.py
cmcfarlen/trafficserver
2aa1d3106398eb082e5a454212b0273c63d5f69d
[ "Apache-2.0" ]
901
2015-01-11T19:21:08.000Z
2022-03-18T18:21:33.000Z
''' Test redirection behavior to invalid addresses ''' # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the ...
38.893281
131
0.66626
1,056
0.107317
0
0
0
0
0
0
4,502
0.45752
486d212547e00f7831ca70c40d4c968f71b4de71
4,575
py
Python
LynkCoHelper/lynco_regist_wrok.py
21haoshaonian/LynkCoHelper
b4e5d67583190bf09fe44902499c3a99463b4df5
[ "MIT" ]
null
null
null
LynkCoHelper/lynco_regist_wrok.py
21haoshaonian/LynkCoHelper
b4e5d67583190bf09fe44902499c3a99463b4df5
[ "MIT" ]
null
null
null
LynkCoHelper/lynco_regist_wrok.py
21haoshaonian/LynkCoHelper
b4e5d67583190bf09fe44902499c3a99463b4df5
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import threading import time import base64 from lynkco_app_request import lynkco_app_request from com.uestcit.api.gateway.sdk.auth.aes import aes as AES from sms_request import sms_request import json import sys import os import re class lynco_regist_wrok(threading.Thread): """新开线程处理任务""" d...
39.782609
113
0.551257
4,840
0.950324
0
0
0
0
0
0
1,548
0.303947
486e93474bb833e6c69bd39f0e367b929c5bddaf
2,442
py
Python
acestream/ACEStream/Core/RequestPolicy.py
GrandPaRPi/p2ptv-pi
6f79c00f9055a3763ddfe1dc41e14d2cb533f4c3
[ "MIT" ]
null
null
null
acestream/ACEStream/Core/RequestPolicy.py
GrandPaRPi/p2ptv-pi
6f79c00f9055a3763ddfe1dc41e14d2cb533f4c3
[ "MIT" ]
null
null
null
acestream/ACEStream/Core/RequestPolicy.py
GrandPaRPi/p2ptv-pi
6f79c00f9055a3763ddfe1dc41e14d2cb533f4c3
[ "MIT" ]
2
2018-04-17T17:34:39.000Z
2020-07-26T03:43:33.000Z
#Embedded file name: ACEStream\Core\RequestPolicy.pyo from ACEStream.Core.simpledefs import * from ACEStream.Core.exceptions import * from ACEStream.Core.BitTornado.BT1.MessageID import * DEBUG = False MAX_QUERIES_FROM_RANDOM_PEER = 1000 class AbstractRequestPolicy: def __init__(self): pass def allow...
30.525
99
0.700246
2,190
0.896806
0
0
0
0
0
0
66
0.027027
4871ff697124412845f2fa5d890fac9d6f0735fb
1,172
py
Python
appserver.py
XplosiveX/webfortune
bdcde9e4fc703c05a5520db3a4623103aeb77028
[ "Apache-2.0" ]
null
null
null
appserver.py
XplosiveX/webfortune
bdcde9e4fc703c05a5520db3a4623103aeb77028
[ "Apache-2.0" ]
null
null
null
appserver.py
XplosiveX/webfortune
bdcde9e4fc703c05a5520db3a4623103aeb77028
[ "Apache-2.0" ]
null
null
null
from flask import Flask, render_template, request, session, redirect, url_for, jsonify, abort import os import subprocess import uuid app = Flask(__name__) app.secret_key = str(uuid.uuid4().hex) intropre = '<pre style="border:black solid 4px; border-radius: 12.5px; background:silver; opacity: 0.65; margin-left:auto; ...
34.470588
216
0.705631
0
0
0
0
750
0.639932
0
0
320
0.273038
4872759cf120b5248551d5a5595288fb0852c2a9
1,356
py
Python
auth0/v3/test/management/test_stats.py
akmjenkins/auth0-python
511b016ac9853c7f4ee66769be7ad315c5585735
[ "MIT" ]
340
2015-06-05T12:32:26.000Z
2022-03-30T18:41:30.000Z
auth0/v3/test/management/test_stats.py
akmjenkins/auth0-python
511b016ac9853c7f4ee66769be7ad315c5585735
[ "MIT" ]
179
2015-05-26T00:35:07.000Z
2022-03-18T17:16:37.000Z
auth0/v3/test/management/test_stats.py
akmjenkins/auth0-python
511b016ac9853c7f4ee66769be7ad315c5585735
[ "MIT" ]
151
2015-01-27T11:49:01.000Z
2022-03-03T14:26:09.000Z
import unittest import mock from ...management.stats import Stats class TestStats(unittest.TestCase): def test_init_with_optionals(self): t = Stats(domain='domain', token='jwttoken', telemetry=False, timeout=(10, 2)) self.assertEqual(t.client.options.timeout, (10, 2)) telemetry_header = t...
31.534884
86
0.640855
1,287
0.949115
0
0
928
0.684366
0
0
316
0.233038
4874bbd204b2fd95be7d58eace358a2bc329365d
2,038
py
Python
JavPy/utils/common.py
generaljun/JavPy
e2b5488631c0979c643a2f86ba4cd8bb1709e2f8
[ "Apache-2.0" ]
1
2020-07-30T08:48:17.000Z
2020-07-30T08:48:17.000Z
JavPy/utils/common.py
liqiang0330/JavPy
e2b5488631c0979c643a2f86ba4cd8bb1709e2f8
[ "Apache-2.0" ]
null
null
null
JavPy/utils/common.py
liqiang0330/JavPy
e2b5488631c0979c643a2f86ba4cd8bb1709e2f8
[ "Apache-2.0" ]
2
2020-07-30T06:30:23.000Z
2020-07-30T08:48:19.000Z
import datetime import functools import re from typing import Iterable version = "0.6" def noexcept(lambda_expression, default=None, return_exception=False): try: res = lambda_expression() return res if not return_exception else (res, None) except Exception as ex: return default if no...
22.898876
87
0.598135
0
0
0
0
390
0.191364
0
0
45
0.02208
4875786274d1dcdef100393c55e236d7510c92a2
10,457
py
Python
Foundry_Manager_v2.py
MrVauxs/Foundry-Selection-Menu
13f9164595c3c11fe01e5d44cd35bcc79b6a34df
[ "MIT" ]
5
2020-09-26T10:16:17.000Z
2022-01-06T14:31:54.000Z
Foundry_Manager_v2.py
MrVauxs/Foundry-Selection-Menu
13f9164595c3c11fe01e5d44cd35bcc79b6a34df
[ "MIT" ]
null
null
null
Foundry_Manager_v2.py
MrVauxs/Foundry-Selection-Menu
13f9164595c3c11fe01e5d44cd35bcc79b6a34df
[ "MIT" ]
1
2020-09-07T23:36:17.000Z
2020-09-07T23:36:17.000Z
import requests from bottle import route, run, template,ServerAdapter,redirect import subprocess from html.parser import HTMLParser import threading import time ssl_cert=None #XYZ - 'fullchain.pem' ssl_key=None #XYZ - 'privkey.pem' world_mapping={"URL_Path":["world-folder","Name To Be Shown"], "URL_Path2":["world-fo...
33.516026
280
0.589557
4,274
0.408721
0
0
4,983
0.476523
0
0
5,874
0.561729
48769d3fe736152c54bf8b09ad3360ea09bd2080
1,181
py
Python
scripts/12865.py
JihoChoi/BOJ
08974a9db8ebaa299ace242e951cac53ab55fc4d
[ "MIT" ]
null
null
null
scripts/12865.py
JihoChoi/BOJ
08974a9db8ebaa299ace242e951cac53ab55fc4d
[ "MIT" ]
null
null
null
scripts/12865.py
JihoChoi/BOJ
08974a9db8ebaa299ace242e951cac53ab55fc4d
[ "MIT" ]
null
null
null
""" TAG: 0-1 Knapsack Problem, Dynamic Programming (DP), O(nW) References: - https://www.geeksforgeeks.org/0-1-knapsack-problem-dp-10/ weights and values of n items, capacity -> max value """ N, W = map(int, input().split()) # number of items, capacity weights = [] values = [] for i in range(N): w, v = m...
21.87037
83
0.516511
0
0
0
0
0
0
0
0
565
0.478408
4876b544334a9fdacdb07da711e4c0eb80787e3b
339
py
Python
tests/test_parse.py
fphammerle/duplitab
8dcea2dbcb7f44405cdff24e24f598d338bdcea0
[ "MIT" ]
1
2021-02-24T11:45:49.000Z
2021-02-24T11:45:49.000Z
tests/test_parse.py
fphammerle/duplitab
8dcea2dbcb7f44405cdff24e24f598d338bdcea0
[ "MIT" ]
null
null
null
tests/test_parse.py
fphammerle/duplitab
8dcea2dbcb7f44405cdff24e24f598d338bdcea0
[ "MIT" ]
null
null
null
import pytest import datetime import duplitab @pytest.mark.parametrize(('duplicity_timestamp', 'expected'), [ ['Tue Oct 11 11:02:01 2016', datetime.datetime(2016, 10, 11, 11, 2, 1)], ]) def test_parse_duplicity_timestamp(duplicity_timestamp, expected): assert expected == duplitab._parse_duplicity_timestamp(du...
30.818182
79
0.769912
0
0
0
0
290
0.855457
0
0
57
0.168142
4877da686c21f0b39bdbcc627ce13221392e0654
5,597
py
Python
cdlib/algorithms/internal/COACH.py
xing-lab-pitt/cdlib
590e145429cda1db4d3671c994c502bedd77f108
[ "BSD-2-Clause" ]
248
2019-02-17T05:31:22.000Z
2022-03-30T04:57:20.000Z
cdlib/algorithms/internal/COACH.py
xing-lab-pitt/cdlib
590e145429cda1db4d3671c994c502bedd77f108
[ "BSD-2-Clause" ]
130
2019-02-10T19:35:55.000Z
2022-03-31T10:58:39.000Z
cdlib/algorithms/internal/COACH.py
xing-lab-pitt/cdlib
590e145429cda1db4d3671c994c502bedd77f108
[ "BSD-2-Clause" ]
70
2019-02-15T19:04:29.000Z
2022-03-27T12:58:50.000Z
# Author: True Price <[email protected]> # A core-attachment based method to detect protein complexes in PPI networks # Wu, Li, Kwoh, Ng (2009) # http://www.biomedcentral.com/1471-2105/10/169 from collections import defaultdict from itertools import combinations import functools # return average degree and density...
33.315476
88
0.517063
0
0
0
0
0
0
0
0
870
0.15544
48782a7be4c6875b12d933fb4c7555216fa0e180
2,745
py
Python
appengine/findit/waterfall/test/revert_and_notify_culprit_pipeline_test.py
mcgreevy/chromium-infra
09064105713603f7bf75c772e8354800a1bfa256
[ "BSD-3-Clause" ]
1
2018-01-02T05:47:07.000Z
2018-01-02T05:47:07.000Z
appengine/findit/waterfall/test/revert_and_notify_culprit_pipeline_test.py
mcgreevy/chromium-infra
09064105713603f7bf75c772e8354800a1bfa256
[ "BSD-3-Clause" ]
null
null
null
appengine/findit/waterfall/test/revert_and_notify_culprit_pipeline_test.py
mcgreevy/chromium-infra
09064105713603f7bf75c772e8354800a1bfa256
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from common.constants import DEFAULT_QUEUE from common.waterfall import failure_type from gae_libs.pipeline_wrapper import pipeline_handlers from waterfall i...
36.118421
77
0.676867
2,083
0.758834
0
0
0
0
0
0
249
0.09071
4878680107622e5788667d3e8c86e78f88548e8c
2,368
py
Python
labs/lab2/lm_model/models/LSTM.py
luyuliu/CSE-5194
52970106c21b30e64d4cf1df26bec09929494060
[ "MIT" ]
1
2020-12-04T18:07:54.000Z
2020-12-04T18:07:54.000Z
labs/lab2/lm_model/models/LSTM.py
luyuliu/CSE-5194
52970106c21b30e64d4cf1df26bec09929494060
[ "MIT" ]
1
2019-11-15T22:05:22.000Z
2019-12-01T03:41:14.000Z
labs/lab2/lm_model/models/LSTM.py
luyuliu/CSE-5194
52970106c21b30e64d4cf1df26bec09929494060
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.autograd import Variable from torch.nn import functional as F import numpy as np class LSTM(nn.Module): def __init__(self, embedding_matrix, embedding_dim, vocab_size, hidden_dim, dropout, num_layers, bidirectional, output_dim): """ Args: ...
34.823529
128
0.649916
2,239
0.945524
0
0
0
0
0
0
598
0.252534
4879e9953736c5be4e8f8c3cffbf391ebb052c79
229
py
Python
Day 17/Aayushi-Mittal.py
ChetasShree/MarchCode
80ee6206c0e4481b4421a83c7b7b7fc977450009
[ "MIT" ]
9
2021-03-02T12:16:24.000Z
2021-03-26T11:06:08.000Z
Day 17/Aayushi-Mittal.py
ChetasShree/MarchCode
80ee6206c0e4481b4421a83c7b7b7fc977450009
[ "MIT" ]
65
2021-03-02T04:57:47.000Z
2021-04-02T19:31:30.000Z
Day 17/Aayushi-Mittal.py
ChetasShree/MarchCode
80ee6206c0e4481b4421a83c7b7b7fc977450009
[ "MIT" ]
94
2021-03-02T04:42:28.000Z
2021-06-28T10:38:20.000Z
# To print fibonacci series upto a given number n. first = 0 second = 1 n = int(input()) print("Fibbonacci Series:") for i in range(0,n): print(first, end=", ") next = second + first first = second second = next
19.083333
50
0.628821
0
0
0
0
0
0
0
0
74
0.323144
487a8dc97f3ca00e23834b0ac346fc97195d5b14
3,578
py
Python
taotao-cloud-python/taotao-cloud-oldboy/day84-PerfectCRM/PerfectCRM/kingadmin/permissions.py
shuigedeng/taotao-cloud-paren
3d281b919490f7cbee4520211e2eee5da7387564
[ "Apache-2.0" ]
47
2021-04-13T10:32:13.000Z
2022-03-31T10:30:30.000Z
taotao-cloud-python/taotao-cloud-oldboy/day84-PerfectCRM/PerfectCRM/kingadmin/permissions.py
shuigedeng/taotao-cloud-paren
3d281b919490f7cbee4520211e2eee5da7387564
[ "Apache-2.0" ]
1
2021-11-01T07:41:04.000Z
2021-11-01T07:41:10.000Z
taotao-cloud-python/taotao-cloud-oldboy/day84-PerfectCRM/PerfectCRM/kingadmin/permissions.py
shuigedeng/taotao-cloud-paren
3d281b919490f7cbee4520211e2eee5da7387564
[ "Apache-2.0" ]
21
2021-04-13T10:32:17.000Z
2022-03-26T07:43:22.000Z
from django.core.urlresolvers import resolve from django.shortcuts import render,redirect,HttpResponse from kingadmin.permission_list import perm_dic from django.conf import settings def perm_check(*args,**kwargs): request = args[0] resolve_url_obj = resolve(request.path) current_url_name = resolve_url_o...
38.473118
106
0.579374
0
0
0
0
0
0
0
0
963
0.243182
487a9c7212eb09b59a26433079cfd900f9387fb7
7,894
py
Python
wserver_qdk/tests/main_test.py
PunchyArchy/wserver_qdk
cd29785710cb9f21efb2fc35fa395b1f693b854e
[ "MIT" ]
null
null
null
wserver_qdk/tests/main_test.py
PunchyArchy/wserver_qdk
cd29785710cb9f21efb2fc35fa395b1f693b854e
[ "MIT" ]
null
null
null
wserver_qdk/tests/main_test.py
PunchyArchy/wserver_qdk
cd29785710cb9f21efb2fc35fa395b1f693b854e
[ "MIT" ]
null
null
null
""" Тесты основного класса. """ import unittest from wserver_qdk.main import WServerQDK from wserver_qdk import tools import uuid class MainTest(unittest.TestCase): """ Test Case """ def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.qdk = WServerQDK('192.168.100.118...
43.373626
75
0.60375
7,820
0.980687
0
0
0
0
0
0
1,054
0.13218
487b2742f256d49f88ac22c9264f7095601ac607
1,643
py
Python
notes/SparkDifferentialJoin.py
ketanpurohit0/experimental
02a7d5403037fe1fcc107ddf92e3b5a0748957d6
[ "MIT" ]
1
2020-08-25T04:16:07.000Z
2020-08-25T04:16:07.000Z
notes/SparkDifferentialJoin.py
ketanpurohit0/experimental
02a7d5403037fe1fcc107ddf92e3b5a0748957d6
[ "MIT" ]
null
null
null
notes/SparkDifferentialJoin.py
ketanpurohit0/experimental
02a7d5403037fe1fcc107ddf92e3b5a0748957d6
[ "MIT" ]
null
null
null
import SparkHelper as sh sparkSession = sh.getSpark() sparkSession.sparkContext.setLogLevel("ERROR") # URL url = sh.getUrl('postgres','postgres','foobar_secret') q1 = "SELECT * FROM foo_left" q2 = "SELECT * FROM foo_right" df1 = sh.getQueryDataFrame(sparkSession, url, q1) df2 = sh.getQueryDataFrame(sparkSes...
37.340909
125
0.715764
0
0
0
0
0
0
0
0
665
0.404747
487b34c0ca841971125a8b74fe964b7cec0a6a76
13,227
py
Python
py_proto/modules/drivers/camera/proto/camera_conf_pb2.py
yujianyi/fusion_localization
c0057e29cbf690d6260f021080fd951c1a6b6baa
[ "Apache-2.0" ]
2
2019-03-04T02:11:04.000Z
2019-04-18T11:19:45.000Z
py_proto/modules/drivers/camera/proto/camera_conf_pb2.py
yujianyi/fusion_localization
c0057e29cbf690d6260f021080fd951c1a6b6baa
[ "Apache-2.0" ]
1
2019-03-15T08:37:53.000Z
2019-03-15T08:37:53.000Z
py_proto/modules/drivers/camera/proto/camera_conf_pb2.py
yujianyi/fusion_localization
c0057e29cbf690d6260f021080fd951c1a6b6baa
[ "Apache-2.0" ]
1
2019-03-04T02:11:09.000Z
2019-03-04T02:11:09.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: modules/drivers/camera/proto/camera_conf.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.pro...
51.069498
1,613
0.730476
0
0
0
0
0
0
0
0
3,810
0.288047