hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
3a577d7833ca35f6144ef72f7e8088a435f411df
691,455
py
Python
graph.py
Himan13799/Summer-Project
e4b15552b913db6787e0f4a9eda081f6d679fa53
[ "MIT" ]
null
null
null
graph.py
Himan13799/Summer-Project
e4b15552b913db6787e0f4a9eda081f6d679fa53
[ "MIT" ]
null
null
null
graph.py
Himan13799/Summer-Project
e4b15552b913db6787e0f4a9eda081f6d679fa53
[ "MIT" ]
null
null
null
from matplotlib import pyplot iters = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72...
24,694.821429
222,209
0.840666
3a57cee2694fd1a4cdb5bf89b458ec74fa621810
403
py
Python
01Numpy/np_project.py
HuangCongQing/python-libraries
73f48e39d8d485ffdaee30443357a3fccce65d11
[ "MIT" ]
null
null
null
01Numpy/np_project.py
HuangCongQing/python-libraries
73f48e39d8d485ffdaee30443357a3fccce65d11
[ "MIT" ]
1
2019-03-09T12:28:09.000Z
2019-03-09T12:42:35.000Z
01Numpy/np_project.py
HuangCongQing/python-libraries
73f48e39d8d485ffdaee30443357a3fccce65d11
[ "MIT" ]
2
2020-01-23T17:47:45.000Z
2021-09-27T01:24:42.000Z
''' Description: numpy Author: HCQ Company(School): UCAS Email: 1756260160@qq.com Date: 2021-04-25 19:49:38 LastEditTime: 2021-04-25 19:57:55 FilePath: /python-libraries/01Numpy/np_project.py ''' import numpy as np # np # A = [[ 3 4 5 6] # [ 7 8 9 10] # [11 12 13 14]] A = np.arange(3,15).reshape((3,4)) index =...
20.15
49
0.645161
3a58934b09a58180726934bc6855a80413fbeb35
242
py
Python
DQM/SiStripMonitorPedestals/python/SiStripMonitorQuality_cfi.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
DQM/SiStripMonitorPedestals/python/SiStripMonitorQuality_cfi.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
DQM/SiStripMonitorPedestals/python/SiStripMonitorQuality_cfi.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
import FWCore.ParameterSet.Config as cms QualityMon = cms.EDAnalyzer("SiStripMonitorQuality", StripQualityLabel = cms.string('test1'), OutputMEsInRootFile = cms.bool(False), OutputFileName = cms.string('SiStripQuality.root') )
24.2
54
0.752066
3a59369a6dfe1771e7fc9c73078364e7bf16ad20
1,036
py
Python
study_roadmaps/python_sample_examples/gluon/4_resume_training/train.py
Shreyashwaghe/monk_v1
4ee4d9483e8ffac9b73a41f3c378e5abf5fc799b
[ "Apache-2.0" ]
7
2020-07-26T08:37:29.000Z
2020-10-30T10:23:11.000Z
study_roadmaps/python_sample_examples/gluon/4_resume_training/train.py
mursalfk/monk_v1
62f34a52f242772186ffff7e56764e958fbcd920
[ "Apache-2.0" ]
9
2020-01-28T21:40:39.000Z
2022-02-10T01:24:06.000Z
study_roadmaps/python_sample_examples/gluon/4_resume_training/train.py
mursalfk/monk_v1
62f34a52f242772186ffff7e56764e958fbcd920
[ "Apache-2.0" ]
1
2020-10-07T12:57:44.000Z
2020-10-07T12:57:44.000Z
import os import sys sys.path.append("../../../monk/"); import psutil from gluon_prototype import prototype ########################################################################################################################## gtf = prototype(verbose=1); gtf.Prototype("sample-project-1", "sample-experiment-1");...
33.419355
122
0.397683
3a5bc5539f00418441249df40d6f8b47af45d0da
1,087
py
Python
examples/boilerplate/render/main.py
Sakuk3/DefCurse
22c7de689c2d4ec859ca70ecbe0d014034adfadc
[ "MIT" ]
null
null
null
examples/boilerplate/render/main.py
Sakuk3/DefCurse
22c7de689c2d4ec859ca70ecbe0d014034adfadc
[ "MIT" ]
null
null
null
examples/boilerplate/render/main.py
Sakuk3/DefCurse
22c7de689c2d4ec859ca70ecbe0d014034adfadc
[ "MIT" ]
null
null
null
import models from DefCurse import widgets from DefCurse import style from DefCurse import area
19.070175
54
0.420423
3a5bd10b62878bb2d6b8444b0e27578b7d011c76
579
py
Python
api/urls.py
cooleo/py_feeds_services
1d6ccb3695e091d001714aef8af210d6509f03b6
[ "Apache-2.0" ]
null
null
null
api/urls.py
cooleo/py_feeds_services
1d6ccb3695e091d001714aef8af210d6509f03b6
[ "Apache-2.0" ]
null
null
null
api/urls.py
cooleo/py_feeds_services
1d6ccb3695e091d001714aef8af210d6509f03b6
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url, include from rest_framework import routers from api.views import UserViewSet, GroupViewSet,FeedViewSet router = routers.DefaultRouter() router.register(r'users', UserViewSet) router.register(r'groups', GroupViewSet) router.register(r'feeds', FeedViewSet) router.register(r'category', ...
34.058824
82
0.772021
28a42a406aff16efea2049670fcc9c1d85827d10
1,512
py
Python
3rdparty/cb58ref/setup.py
jgeofil/avax-python
b09e78e3d7e1c35db5ae42e3918e960e775f2d45
[ "MIT" ]
25
2021-05-16T23:43:47.000Z
2022-03-29T03:08:30.000Z
setup.py
moreati/cb58ref
c9827f2cdd2eb55c52bc5de91ade573eab9de827
[ "MIT" ]
2
2021-04-26T11:43:22.000Z
2021-06-04T07:55:22.000Z
3rdparty/cb58ref/setup.py
jgeofil/avax-python
b09e78e3d7e1c35db5ae42e3918e960e775f2d45
[ "MIT" ]
4
2021-08-06T10:55:58.000Z
2022-03-29T08:03:05.000Z
#!/usr/bin/env python3 from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ ] setup_requirements = [ 'pytest-runner', ] test_requirements = [ 'pytest>...
26.526316
72
0.630291
28a484d541dac8a37bc08470e582fe2e7c7e91cc
1,009
py
Python
prepare_ce_data.py
akio-kobayashi/lc_lstm
c5367518ebf56d13a29794d90061fdfb06677e3e
[ "Apache-2.0" ]
null
null
null
prepare_ce_data.py
akio-kobayashi/lc_lstm
c5367518ebf56d13a29794d90061fdfb06677e3e
[ "Apache-2.0" ]
null
null
null
prepare_ce_data.py
akio-kobayashi/lc_lstm
c5367518ebf56d13a29794d90061fdfb06677e3e
[ "Apache-2.0" ]
null
null
null
import argparse import os import sys import subprocess import time import numpy as np import random import h5py if __name__ == "__main__": main()
30.575758
82
0.581764
28a4cf21a3fc1317aad1717922e9f9686f1d9232
409
py
Python
Dataset/Leetcode/train/14/127.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/14/127.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/14/127.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
undefined for (i = 0; i < document.getElementsByTagName("code").length; i++) { console.log(document.getElementsByTagName("code")[i].innerText); }
31.461538
139
0.574572
28a65fd5ccf17c9151ab25e19828fabbbeef343e
627
py
Python
day04/aoc04_1.py
Dbof/adventofcode17
68a390a8601c3421340fa2a59b0497aa76e5f580
[ "MIT" ]
null
null
null
day04/aoc04_1.py
Dbof/adventofcode17
68a390a8601c3421340fa2a59b0497aa76e5f580
[ "MIT" ]
null
null
null
day04/aoc04_1.py
Dbof/adventofcode17
68a390a8601c3421340fa2a59b0497aa76e5f580
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys if __name__ == "__main__": if len(sys.argv) != 2: print('Usage:', sys.argv[0], '<input>') exit(1) with open(sys.argv[1]) as f: result = check(f.read().strip()) print('Result:', result)
17.416667
47
0.524721
28a7314d913c35ef3d7bae8ca492ed8ba470e621
4,707
py
Python
setup.py
danmills0/pytket
4ac62896aa61c11ae1077246ab1931d0a8f9a9ac
[ "Apache-2.0" ]
null
null
null
setup.py
danmills0/pytket
4ac62896aa61c11ae1077246ab1931d0a8f9a9ac
[ "Apache-2.0" ]
null
null
null
setup.py
danmills0/pytket
4ac62896aa61c11ae1077246ab1931d0a8f9a9ac
[ "Apache-2.0" ]
null
null
null
import setuptools from setuptools import setup, Extension, find_packages from setuptools.command.build_ext import build_ext import sys import setuptools import os import re import platform import subprocess # from pathlib import Path from os.path import expanduser, join from distutils.version import LooseVersion impor...
34.866667
98
0.607818
28a787c32c92bd4df60cb4b529054c0e8dbc1dcb
4,156
py
Python
Competitive Programming/Design Patterns/Behavioural/Command.py
shreejitverma/GeeksforGeeks
d7bcb166369fffa9a031a258e925b6aff8d44e6c
[ "MIT" ]
2
2022-02-18T05:14:28.000Z
2022-03-08T07:00:08.000Z
Competitive Programming/Design Patterns/Behavioural/Command.py
shivaniverma1/Competitive-Programming-1
d7bcb166369fffa9a031a258e925b6aff8d44e6c
[ "MIT" ]
6
2022-01-13T04:31:04.000Z
2022-03-12T01:06:16.000Z
Competitive Programming/Design Patterns/Behavioural/Command.py
shivaniverma1/Competitive-Programming-1
d7bcb166369fffa9a031a258e925b6aff8d44e6c
[ "MIT" ]
2
2022-02-14T19:53:53.000Z
2022-02-18T05:14:30.000Z
''' https://www.geeksforgeeks.org/command-method-python-design-patterns/ Command Method is Behavioral Design Pattern that encapsulates a request as an object, thereby allowing for the parameterization of clients with different requests and the queuing or logging of requests. Parameterizing other objects with different ...
39.580952
569
0.762512
28a8e0d56673ed011c58970fc2cc9375a3c70f66
18,099
py
Python
u24_lymphocyte/third_party/treeano/sandbox/nodes/resnet.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
45
2015-04-26T04:45:51.000Z
2022-01-24T15:03:55.000Z
u24_lymphocyte/third_party/treeano/sandbox/nodes/resnet.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
8
2018-07-20T20:54:51.000Z
2020-06-12T05:36:04.000Z
u24_lymphocyte/third_party/treeano/sandbox/nodes/resnet.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
22
2018-05-21T23:57:20.000Z
2022-02-21T00:48:32.000Z
import functools import numpy as np import theano import theano.tensor as T import treeano import treeano.nodes as tn import canopy from treeano.sandbox.nodes import batch_normalization as bn fX = theano.config.floatX def residual_block_conv_2d(name, num_filters, ...
37.70625
82
0.477485
28a941e336c661de4e3bc64a26dac8f5e03e398f
58
py
Python
Python/Tests/TestData/AddImport/ImportFunctionFromExistingFromImportAsName.py
techkey/PTVS
8355e67eedd8e915ca49bd38a2f36172696fd903
[ "Apache-2.0" ]
404
2019-05-07T02:21:57.000Z
2022-03-31T17:03:04.000Z
Python/Tests/TestData/AddImport/ImportFunctionFromExistingFromImportAsName.py
techkey/PTVS
8355e67eedd8e915ca49bd38a2f36172696fd903
[ "Apache-2.0" ]
1,672
2019-05-06T21:09:38.000Z
2022-03-31T23:16:04.000Z
Python/Tests/TestData/AddImport/ImportFunctionFromExistingFromImportAsName.py
techkey/PTVS
8355e67eedd8e915ca49bd38a2f36172696fd903
[ "Apache-2.0" ]
186
2019-05-13T03:17:37.000Z
2022-03-31T16:24:05.000Z
from test_module import module_func_2 as oar module_func()
29
44
0.862069
28acfde090e21839e1960e00b53a1c31a3399db4
6,857
py
Python
autogalaxy/mock/mock.py
caoxiaoyue/PyAutoGalaxy
ad2b4b27404f5bf0f65ba9a0cd7c3ee6570e2d05
[ "MIT" ]
null
null
null
autogalaxy/mock/mock.py
caoxiaoyue/PyAutoGalaxy
ad2b4b27404f5bf0f65ba9a0cd7c3ee6570e2d05
[ "MIT" ]
null
null
null
autogalaxy/mock/mock.py
caoxiaoyue/PyAutoGalaxy
ad2b4b27404f5bf0f65ba9a0cd7c3ee6570e2d05
[ "MIT" ]
null
null
null
from astropy import constants import math import autofit as af import autoarray as aa import autogalaxy as ag from autoarray.mock.mock import * from autofit.mock.mock import * from autofit.mock import mock as af_m # MockProfiles # # Mock Galaxy # # Mock Cosmology # # Mock Model-Fitt...
27.210317
120
0.613825
28aedc5062be8fe00618f3317176a7524c4110f1
9,441
py
Python
classification/active_learning_scatterplots_annotated_tresh.py
gbosetti/ca
3f37edc4b8f69f61d02b881242522f6fa15e2695
[ "MIT" ]
null
null
null
classification/active_learning_scatterplots_annotated_tresh.py
gbosetti/ca
3f37edc4b8f69f61d02b881242522f6fa15e2695
[ "MIT" ]
4
2021-06-08T22:30:03.000Z
2022-03-12T00:48:52.000Z
classification/active_learning_scatterplots_annotated_tresh.py
gbosetti/cati
3f37edc4b8f69f61d02b881242522f6fa15e2695
[ "MIT" ]
null
null
null
import json import ast import plotly.plotly as py import plotly.graph_objs as go import plotly.io as pio import os import numpy as np import plotly plotly.io.orca.config.executable = '/home/gabi/dev/miniconda3/bin/orca' #May be useful in Ubuntu #PARAMS logs_path = "C:\\Users\\gbosetti\\Desktop\\test\\logs" output_pat...
37.169291
247
0.565724
28af15da48e1b6752e688cda3c6f51c968c30322
285
py
Python
routes/routes.py
GDGVIT/MyFFCS2.0
685bb7b61c3435dfc1e76ee34d3c234d8973b31a
[ "Apache-2.0" ]
6
2016-07-01T15:23:48.000Z
2017-04-29T10:44:01.000Z
routes/routes.py
GDGVIT/MyFFCS2.0
685bb7b61c3435dfc1e76ee34d3c234d8973b31a
[ "Apache-2.0" ]
null
null
null
routes/routes.py
GDGVIT/MyFFCS2.0
685bb7b61c3435dfc1e76ee34d3c234d8973b31a
[ "Apache-2.0" ]
3
2016-07-03T02:47:12.000Z
2020-06-30T12:40:47.000Z
from controllers import * route = [ ( r"/", home.homeHandler ), ( r"/auth/register", auth.registerHandler ), ( r"/logout", logout.logoutHandler ), ( r"/home", timetable.timeTableHandler ), ( r"/auth/login", auth.loginHandler ) ]
11.4
29
0.547368
28af329ba68cee9eb582dc06cead32af4b80ed8d
1,935
py
Python
tests/tests.py
csirac2/keepass_guesser
922c6972a6577140cd327a15543fe49dd70611cb
[ "BSD-2-Clause" ]
null
null
null
tests/tests.py
csirac2/keepass_guesser
922c6972a6577140cd327a15543fe49dd70611cb
[ "BSD-2-Clause" ]
null
null
null
tests/tests.py
csirac2/keepass_guesser
922c6972a6577140cd327a15543fe49dd70611cb
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import unittest import libkeepass import keepass_guesser # file : attempts from file expected before success or failure guess_files = {'tests/data/guesslist0': {'attempts': 3, 'guessphrase': None}, 'tests/data/guesslist1': {'attempts': 1, 'guessphrase': 'test'}, 't...
41.170213
79
0.612403
28b0de3981830a9c1ce4101e37d4ea75cec7989b
1,173
py
Python
dataloader.py
AmanPriyanshu/Federated-Neural-Collaborative-Filtering
44dd31cec644859faa44adf54ace3981d8be5bda
[ "MIT" ]
null
null
null
dataloader.py
AmanPriyanshu/Federated-Neural-Collaborative-Filtering
44dd31cec644859faa44adf54ace3981d8be5bda
[ "MIT" ]
null
null
null
dataloader.py
AmanPriyanshu/Federated-Neural-Collaborative-Filtering
44dd31cec644859faa44adf54ace3981d8be5bda
[ "MIT" ]
1
2022-03-08T14:28:00.000Z
2022-03-08T14:28:00.000Z
import numpy as np import os if __name__ == '__main__': dataloader = MovielensDatasetLoader() print(dataloader.ratings)
30.868421
117
0.719523
28b1ad0e46f2ba4d47dfc0ef0bd3f82478359754
1,785
py
Python
tests/test_command.py
roskakori/sanpo
909ea663a9a4f12495decb828e2256e45a9cee73
[ "BSD-3-Clause" ]
null
null
null
tests/test_command.py
roskakori/sanpo
909ea663a9a4f12495decb828e2256e45a9cee73
[ "BSD-3-Clause" ]
2
2021-09-07T17:32:24.000Z
2022-01-13T20:44:41.000Z
tests/test_command.py
roskakori/sanpo
909ea663a9a4f12495decb828e2256e45a9cee73
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2021, Thomas Aglassinger # All rights reserved. Distributed under the BSD 3-Clause License. from sanpo.command import main_without_logging_setup from ._common import PoFileTest
42.5
89
0.733894
28b25075889c486e4fe8f7d95019574b35bd45f1
3,371
py
Python
tests/test/test_sign_msgpack_keyreg.py
salvatorecorvaglia/ledger-app-algorand
549b863af169b3ce5c7721f2e6a7fca5b4bd05fb
[ "MIT" ]
16
2019-06-12T11:46:12.000Z
2022-01-30T16:28:42.000Z
tests/test/test_sign_msgpack_keyreg.py
salvatorecorvaglia/ledger-app-algorand
549b863af169b3ce5c7721f2e6a7fca5b4bd05fb
[ "MIT" ]
42
2019-07-26T13:31:03.000Z
2022-03-18T15:18:52.000Z
tests/test/test_sign_msgpack_keyreg.py
salvatorecorvaglia/ledger-app-algorand
549b863af169b3ce5c7721f2e6a7fca5b4bd05fb
[ "MIT" ]
38
2019-04-08T14:16:22.000Z
2022-03-18T06:42:29.000Z
import pytest import logging import struct import base64 import msgpack import nacl.signing import algosdk from . import txn_utils from . import ui_interaction from . import speculos txn_labels = { 'review', 'txn type', 'sender', 'fee (alg)', 'genesis id', 'genesis hash', 'vote pk','vrf pk', 'vote fir...
33.04902
103
0.660931
28b391732090366f571ee26a22266dbf07b53e53
613
py
Python
VideoSearchEngine/page_rank.py
AkshatSh/VideoSearchEngine
57f64b241b8a7bbc377ce7826e1206f679f41def
[ "MIT" ]
49
2018-05-22T09:06:18.000Z
2022-02-26T10:03:43.000Z
VideoSearchEngine/page_rank.py
AkshatSh/VideoSearchEngine
57f64b241b8a7bbc377ce7826e1206f679f41def
[ "MIT" ]
17
2018-05-18T21:14:36.000Z
2019-06-06T09:17:18.000Z
VideoSearchEngine/page_rank.py
AkshatSh/VideoSearchEngine
57f64b241b8a7bbc377ce7826e1206f679f41def
[ "MIT" ]
18
2018-06-06T22:14:26.000Z
2021-11-23T08:59:31.000Z
from sklearn.feature_extraction.text import TfidfVectorizer from database_utils import get_all_data, remove_summary from collections import OrderedDict import operator if __name__ == 'main': main()
26.652174
88
0.681892
28b3adff40823a3f0d9ff8ca30f874e0ce8a4a4f
3,112
py
Python
generated-libraries/python/netapp/net/ifgrp_info.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
2
2017-03-28T15:31:26.000Z
2018-08-16T22:15:18.000Z
generated-libraries/python/netapp/net/ifgrp_info.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
generated-libraries/python/netapp/net/ifgrp_info.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
from netapp.netapp_object import NetAppObject
27.539823
96
0.547237
28b3ccf3dc2b42165b93b678794b29f7f7e89aa1
545
py
Python
calchas_datamodel/idExpression.py
s-i-newton/calchas-datamodel
eda5e2de37849d6d4766cd680bc75fec8e923f85
[ "Apache-2.0" ]
null
null
null
calchas_datamodel/idExpression.py
s-i-newton/calchas-datamodel
eda5e2de37849d6d4766cd680bc75fec8e923f85
[ "Apache-2.0" ]
2
2017-06-01T14:14:09.000Z
2017-06-20T10:01:13.000Z
calchas_datamodel/idExpression.py
s-i-newton/calchas
13472f837605eff26010a28af9981ba8750e9af9
[ "Apache-2.0" ]
null
null
null
from .abstractExpression import AbstractExpression from typing import TypeVar T = TypeVar('T')
20.961538
50
0.60367
28b3f20587976d38da80b634aca51223e642e85b
4,679
py
Python
nrpcalc/base/utils.py
TimothyStiles/nrpcalc
42ab25e929d472c2e808dd3bec6430bc80b42a06
[ "MIT" ]
6
2020-07-27T17:59:19.000Z
2022-03-18T03:33:17.000Z
nrpcalc/base/utils.py
TimothyStiles/nrpcalc
42ab25e929d472c2e808dd3bec6430bc80b42a06
[ "MIT" ]
3
2020-07-17T23:10:36.000Z
2021-09-10T05:19:47.000Z
nrpcalc/base/utils.py
TimothyStiles/nrpcalc
42ab25e929d472c2e808dd3bec6430bc80b42a06
[ "MIT" ]
3
2020-07-27T17:59:22.000Z
2021-02-08T15:47:28.000Z
import os import sys from typing import Tuple import pkg_resources from Bio import SeqIO import RNA import numpy as np complement_table = str.maketrans('ATGCU', 'TACGA') if __name__ == '__main__': pass
29.613924
97
0.596281
28b511c9bffc7778b947732b16ddfa8179fa7a1e
2,288
py
Python
src/tab_list_analyse.py
GwenIves/Scripts
d2ec5ae0df25f16d5c1fb766767ec358de7d2f97
[ "MIT" ]
null
null
null
src/tab_list_analyse.py
GwenIves/Scripts
d2ec5ae0df25f16d5c1fb766767ec358de7d2f97
[ "MIT" ]
null
null
null
src/tab_list_analyse.py
GwenIves/Scripts
d2ec5ae0df25f16d5c1fb766767ec358de7d2f97
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Analyses a hierarchical tab-indented list file # and prints out subsection sizes on a requested nesting level # Subsections with the same name in different subtrees # are treated as continutaions of a single section # The script accepts two command line parameters: # file name # indent...
25.142857
79
0.488636
28b9d3223ab59c39762f3f62adf5a1151d5a2567
1,357
py
Python
main.py
cortial-manon/vrep-robot-helper
8bae73c78d537c6fda383261f25d52a4df4d1787
[ "MIT" ]
null
null
null
main.py
cortial-manon/vrep-robot-helper
8bae73c78d537c6fda383261f25d52a4df4d1787
[ "MIT" ]
null
null
null
main.py
cortial-manon/vrep-robot-helper
8bae73c78d537c6fda383261f25d52a4df4d1787
[ "MIT" ]
null
null
null
#based on the code from https://github.com/studywolf/blog/blob/master/VREP/two_link_arm/vrep_twolink_controller.py #explained at https://studywolf.wordpress.com/2016/04/18/using-vrep-for-simulation-of-force-controlled-models/ import numpy as np from VrepWorld import VrepWorld #create the world object world = Vrep...
23.807018
114
0.719971
28babc6c1eea36a0a66fd271330d1972461ccef9
15,902
py
Python
ROAR/control_module/mpc_full_controller.py
cmcniel79/ROAR
cd94ec637e6e5df0eaac3d30ece00a2de74730ee
[ "Apache-2.0" ]
null
null
null
ROAR/control_module/mpc_full_controller.py
cmcniel79/ROAR
cd94ec637e6e5df0eaac3d30ece00a2de74730ee
[ "Apache-2.0" ]
null
null
null
ROAR/control_module/mpc_full_controller.py
cmcniel79/ROAR
cd94ec637e6e5df0eaac3d30ece00a2de74730ee
[ "Apache-2.0" ]
null
null
null
from ROAR.control_module.controller import Controller from ROAR.utilities_module.vehicle_models import VehicleControl, Vehicle from ROAR.utilities_module.data_structures_models import Transform, Location import numpy as np import logging from ROAR.agent_module.agent import Agent from typing import Tuple import json fro...
43.807163
149
0.616338
28bb50413a26c30eabe9689d01ddc125b69d1e97
2,268
py
Python
eahub/tests/test_localgroups_models.py
LisaJD/eahub.org
1fd69f9dea5178c4da8923c3497e6326f359d0b5
[ "MIT" ]
null
null
null
eahub/tests/test_localgroups_models.py
LisaJD/eahub.org
1fd69f9dea5178c4da8923c3497e6326f359d0b5
[ "MIT" ]
null
null
null
eahub/tests/test_localgroups_models.py
LisaJD/eahub.org
1fd69f9dea5178c4da8923c3497e6326f359d0b5
[ "MIT" ]
null
null
null
from django.test import TestCase from eahub.base.models import User from eahub.localgroups.models import LocalGroup, Organisership from eahub.profiles.models import Profile
26.682353
77
0.581129
28bc71174a0ebb7a7a5aaf7b6164a30526e4ee50
2,204
py
Python
delLotsOfObjects.py
microtodd/setAllS3ACLs
5ddbde173a84d5fcc6d9a6146e9acbc5af057c1f
[ "MIT" ]
null
null
null
delLotsOfObjects.py
microtodd/setAllS3ACLs
5ddbde173a84d5fcc6d9a6146e9acbc5af057c1f
[ "MIT" ]
null
null
null
delLotsOfObjects.py
microtodd/setAllS3ACLs
5ddbde173a84d5fcc6d9a6146e9acbc5af057c1f
[ "MIT" ]
null
null
null
import boto3 import sys import getopt import datetime import pytz # Globals BucketName = '' FolderName = '' HowManyDays = None ProfileName = 'default' Env = 'us-east-1' Delete = False # Parse CL opts opts, args = getopt.getopt(sys.argv[1:],'he:b:p:f:k:d') for opt, arg in opts: if opt == '-h': print '-b bu...
28.623377
138
0.624773
28bd72b293eddba770453dd33bd72e6fed937e89
5,769
py
Python
cloudmosh/components/depth.py
rmmilewi/cloudmosh
a6387296ad5591f35a5bbfe0d20c5865eb98d07c
[ "MIT" ]
null
null
null
cloudmosh/components/depth.py
rmmilewi/cloudmosh
a6387296ad5591f35a5bbfe0d20c5865eb98d07c
[ "MIT" ]
null
null
null
cloudmosh/components/depth.py
rmmilewi/cloudmosh
a6387296ad5591f35a5bbfe0d20c5865eb98d07c
[ "MIT" ]
null
null
null
from cloudmosh.components.base import CloudMoshComponent import os import numpy as np # Keras / TensorFlow os.environ['TF_CPP_MIN_LOG_LEVEL'] = '5' from keras.models import load_model import skimage.io from skimage.transform import resize from keras.engine.topology import Layer, InputSpec import keras.utils.conv_utils ...
38.97973
121
0.691454
28bea69d4e6a6b28445e83be9513a3aebdc5d979
9,316
py
Python
diagnostics/model_test/verify_model.py
ami-GS/ngraph-tf
b5ac340f43bf70879ef6c180f69aac8241152c1e
[ "Apache-2.0" ]
null
null
null
diagnostics/model_test/verify_model.py
ami-GS/ngraph-tf
b5ac340f43bf70879ef6c180f69aac8241152c1e
[ "Apache-2.0" ]
null
null
null
diagnostics/model_test/verify_model.py
ami-GS/ngraph-tf
b5ac340f43bf70879ef6c180f69aac8241152c1e
[ "Apache-2.0" ]
null
null
null
# ============================================================================== # Copyright 2018 Intel 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.apa...
36.677165
130
0.659833
28c1381713a165eb6c2b66d9b1f077cea5ce1674
5,038
py
Python
ppf/core/swap_rate.py
iamaris/ppf
60f798eaea69e7dec2b8c422ceb684219b1645d0
[ "MIT" ]
2
2019-10-26T17:18:41.000Z
2020-06-05T11:26:10.000Z
ppf/core/swap_rate.py
iamaris/ppf
60f798eaea69e7dec2b8c422ceb684219b1645d0
[ "MIT" ]
null
null
null
ppf/core/swap_rate.py
iamaris/ppf
60f798eaea69e7dec2b8c422ceb684219b1645d0
[ "MIT" ]
5
2019-01-24T16:44:07.000Z
2020-09-14T06:56:55.000Z
from fixing import * from observable import * from generate_flows import * from generate_observables import * if __name__ == '__main__': _test()
38.458015
76
0.604803
28c180845ca339e6f881e886240beaf93a1ed892
10,953
py
Python
main.py
Tominous/Mario-1
28709143019d40cfeaa53737a01270ce14f99858
[ "Unlicense" ]
1
2020-06-09T10:43:08.000Z
2020-06-09T10:43:08.000Z
main.py
Tominous/Mario-1
28709143019d40cfeaa53737a01270ce14f99858
[ "Unlicense" ]
null
null
null
main.py
Tominous/Mario-1
28709143019d40cfeaa53737a01270ce14f99858
[ "Unlicense" ]
null
null
null
import discord from discord.ext import commands import os import random from server import run_server #token token = os.environ.get("token") #prefisso bot = commands.Bot(command_prefix="m!", description="Nada.") bot.remove_command('help') #status #log #comandi #support #triggered run_server() bot.run(token)
37.382253
279
0.601936
28c25c0dfe99e2a00d332afa08326f2e3d25b1e8
19,506
py
Python
helpers.py
agartland/HLAPredCache
ebacc706df581a71ba3812282013263939cfbb61
[ "MIT" ]
null
null
null
helpers.py
agartland/HLAPredCache
ebacc706df581a71ba3812282013263939cfbb61
[ "MIT" ]
null
null
null
helpers.py
agartland/HLAPredCache
ebacc706df581a71ba3812282013263939cfbb61
[ "MIT" ]
null
null
null
import numpy as np import string import re __all__ = ['BADAA', 'AALPHABET', 'convertHLAAsterisk', 'isvalidmer', 'isvalidHLA', 'rankEpitopes', 'rankKmers', 'rankMers', 'getIC50', 'getMers', 'getMerInd...
32.838384
110
0.584589
28c5429706a9cf44dbc351c293ef49e987982fbe
5,697
py
Python
simfempy/examples/incompflow.py
anairabeze/simfempy
144362956263cb9b81f4bade15664d9cc640f93a
[ "MIT" ]
null
null
null
simfempy/examples/incompflow.py
anairabeze/simfempy
144362956263cb9b81f4bade15664d9cc640f93a
[ "MIT" ]
null
null
null
simfempy/examples/incompflow.py
anairabeze/simfempy
144362956263cb9b81f4bade15664d9cc640f93a
[ "MIT" ]
null
null
null
assert __name__ == '__main__' # in shell import os, sys simfempypath = os.path.abspath(os.path.join(__file__, os.path.pardir, os.path.pardir, os.path.pardir, os.path.pardir,'simfempy')) sys.path.insert(0,simfempypath) import numpy as np import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec import pygm...
44.507813
129
0.584694
28c6551ca38cd065b2ced67935d3a361ea90ce26
11,816
py
Python
polecat/db/sql/expression/where.py
furious-luke/polecat
7be5110f76dc42b15c922c1bb7d49220e916246d
[ "MIT" ]
4
2019-08-10T12:56:12.000Z
2020-01-21T09:51:20.000Z
polecat/db/sql/expression/where.py
furious-luke/polecat
7be5110f76dc42b15c922c1bb7d49220e916246d
[ "MIT" ]
71
2019-04-09T05:39:21.000Z
2020-05-16T23:09:24.000Z
polecat/db/sql/expression/where.py
furious-luke/polecat
7be5110f76dc42b15c922c1bb7d49220e916246d
[ "MIT" ]
null
null
null
import re import ujson from psycopg2.sql import SQL, Composable, Identifier from polecat.utils import to_bool, to_tuple from ...schema.column import ReverseColumn from .expression import Expression # class NotNull(FilterType): # def eval(self, filter): # super().eval(filter) # retu...
30.142857
110
0.565166
28c7010fc293f500f9e2e5f809119706506c2ca1
1,479
py
Python
autobahn/protocols/ws_client_protocol.py
olegpshenichniy/uvloop-dyno-track
b90e369a12077d390bd74aab833c2c562c5a2567
[ "MIT" ]
2
2017-09-12T10:32:48.000Z
2017-09-27T14:47:37.000Z
autobahn/protocols/ws_client_protocol.py
olegpshenichniy/uvloop-dyno-track
b90e369a12077d390bd74aab833c2c562c5a2567
[ "MIT" ]
null
null
null
autobahn/protocols/ws_client_protocol.py
olegpshenichniy/uvloop-dyno-track
b90e369a12077d390bd74aab833c2c562c5a2567
[ "MIT" ]
null
null
null
import json from autobahn.asyncio.websocket import WebSocketClientProtocol from config import DEBUG, CLIENTS_MSGS_COUNT, CLIENTS_COUNT
30.183673
101
0.628803
28c80161e65709f4218b6dce11334fbf557a4f57
13,174
py
Python
tests/www/services/synapse_space/daa/test_grant_daa_access_service.py
ki-tools/sls_ki_synapse_admin_py
d9483d01000b61c4e8d129bdc06497ae1a27484b
[ "Apache-2.0" ]
null
null
null
tests/www/services/synapse_space/daa/test_grant_daa_access_service.py
ki-tools/sls_ki_synapse_admin_py
d9483d01000b61c4e8d129bdc06497ae1a27484b
[ "Apache-2.0" ]
null
null
null
tests/www/services/synapse_space/daa/test_grant_daa_access_service.py
ki-tools/sls_ki_synapse_admin_py
d9483d01000b61c4e8d129bdc06497ae1a27484b
[ "Apache-2.0" ]
null
null
null
import pytest import time import json from datetime import date, timedelta from www.core import Synapse, Env from www.services.synapse_space.daa import GrantDaaAccessService import synapseclient as syn def test_it_creates_the_team(mk_service, assert_basic_service_success): service = mk_service() assert ser...
41.297806
115
0.617656
28c8168a9876befd17a03652dfc26fe8e8b8d160
6,048
py
Python
scripts/verify/test_sampling/species_generator_funcs.py
nadiahpk/niche-neutral-riau-birds
83eeba57973d6912ad354592c84a03b5c24b3363
[ "Unlicense" ]
null
null
null
scripts/verify/test_sampling/species_generator_funcs.py
nadiahpk/niche-neutral-riau-birds
83eeba57973d6912ad354592c84a03b5c24b3363
[ "Unlicense" ]
null
null
null
scripts/verify/test_sampling/species_generator_funcs.py
nadiahpk/niche-neutral-riau-birds
83eeba57973d6912ad354592c84a03b5c24b3363
[ "Unlicense" ]
null
null
null
import numpy as np # create J[k,h], the number of individuals in niche k on island h # create D[k,h], the number of founding individuals in each niche k on island h # create a sample using my species generator
32.691892
106
0.475694
28cb2fe8595e1829af00fa8ae1db21b69746fd37
767
py
Python
protonfixes/gamefixes/243470.py
Citiroller/protonfixes
6e0116bd1cd2172b6f0ff9905667bbc59595cdb7
[ "BSD-2-Clause" ]
213
2018-10-06T01:40:26.000Z
2022-03-16T16:17:37.000Z
protonfixes/gamefixes/243470.py
Citiroller/protonfixes
6e0116bd1cd2172b6f0ff9905667bbc59595cdb7
[ "BSD-2-Clause" ]
88
2018-10-06T17:38:56.000Z
2022-02-19T13:27:26.000Z
protonfixes/gamefixes/243470.py
Citiroller/protonfixes
6e0116bd1cd2172b6f0ff9905667bbc59595cdb7
[ "BSD-2-Clause" ]
67
2018-10-09T16:57:16.000Z
2022-03-14T13:06:25.000Z
""" Game fix for Watch_Dogs """ # pylint: disable=C0103 import subprocess from protonfixes import util from protonfixes import splash def main(): """ Fix the in-game sound """ util.protontricks('xact') util.protontricks('winxp') info_popup()
22.558824
165
0.640156
28cbc58a1aa42e45e73582d7c19d2ec790080407
3,928
py
Python
brigadier/tree/__init__.py
Boundarybreaker/BrigadierPy
4c8ded97dd2974fa168c805fc746807407fa1c38
[ "MIT" ]
null
null
null
brigadier/tree/__init__.py
Boundarybreaker/BrigadierPy
4c8ded97dd2974fa168c805fc746807407fa1c38
[ "MIT" ]
null
null
null
brigadier/tree/__init__.py
Boundarybreaker/BrigadierPy
4c8ded97dd2974fa168c805fc746807407fa1c38
[ "MIT" ]
null
null
null
import collections from abc import ABC, abstractmethod from typing import TypeVar, Generic, Callable, OrderedDict, Collection, Any from brigadier import Command, RedirectModifier S = TypeVar('S') # the class ouroboros keeps growing
29.757576
113
0.648676
28cfe2649130d1fc2ca1713a506f572c7ef8b0ef
3,564
py
Python
test.py
ughiriccardo/retinaface-tf2
4791819fc7e47a63ffe695f0a3adccd6cfa5bb5e
[ "MIT" ]
null
null
null
test.py
ughiriccardo/retinaface-tf2
4791819fc7e47a63ffe695f0a3adccd6cfa5bb5e
[ "MIT" ]
null
null
null
test.py
ughiriccardo/retinaface-tf2
4791819fc7e47a63ffe695f0a3adccd6cfa5bb5e
[ "MIT" ]
null
null
null
from absl import app, flags, logging from absl.flags import FLAGS import cv2 import os import numpy as np import tensorflow as tf import time from PIL import Image from modules.models import RetinaFaceModel from modules.utils import (set_memory_growth, load_yaml, draw_bbox_landm, pad_input_...
33.622642
125
0.664703
28d2513f8b811b8fd50ff29cd0b2450c9b6fa225
803
py
Python
library/source2/resource_types/__init__.py
anderlli0053/SourceIO
3c0c4839939ce698439987ac52154f89ee2f5341
[ "MIT" ]
199
2019-04-02T02:30:58.000Z
2022-03-30T21:29:49.000Z
library/source2/resource_types/__init__.py
anderlli0053/SourceIO
3c0c4839939ce698439987ac52154f89ee2f5341
[ "MIT" ]
113
2019-03-03T19:36:25.000Z
2022-03-31T19:44:05.000Z
library/source2/resource_types/__init__.py
anderlli0053/SourceIO
3c0c4839939ce698439987ac52154f89ee2f5341
[ "MIT" ]
38
2019-05-15T16:49:30.000Z
2022-03-22T03:40:43.000Z
from .resource import ValveCompiledResource from .vphys import ValveCompiledPhysics from .vmat import ValveCompiledMaterial from .vtex import ValveCompiledTexture from .vmdl import ValveCompiledModel from .vwrld import ValveCompiledWorld from .vmorf import ValveCompiledMorph from .vrman import ValveCompiledResourceMani...
30.884615
48
0.739726
28d25877c35fef93c85d8174a9ad1da326ca5bf4
351
py
Python
b2ac/compat.py
hbldh/ellipse-fitting
77a13ab29ae44b32238e754bff1d2cc6e20883dd
[ "MIT" ]
16
2016-02-16T18:55:18.000Z
2021-12-15T20:07:45.000Z
b2ac/compat.py
hbldh/ellipse-fitting
77a13ab29ae44b32238e754bff1d2cc6e20883dd
[ "MIT" ]
6
2015-10-18T22:28:20.000Z
2016-05-17T22:07:38.000Z
b2ac/compat.py
hbldh/ellipse-fitting
77a13ab29ae44b32238e754bff1d2cc6e20883dd
[ "MIT" ]
7
2016-05-15T16:21:19.000Z
2021-09-09T11:12:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ b2ac.compat ~~~~~~~~~~~ B2AC compatiblity module. """ from __future__ import division from __future__ import print_function from __future__ import unicode_literals from __future__ import absolute_import import sys is_py3 = (sys.version_info[0] > 2) # Py3 mappings ...
14.625
39
0.717949
28d3228ab5984fc81c4a723afce6ac8224b5d570
214
py
Python
Contest/ABC182/d/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
Contest/ABC182/d/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
Contest/ABC182/d/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 n, *a = map(int, open(0).read().split()) from itertools import* *S, = accumulate(a) *M, = accumulate(S, max) Z = ans = 0 for s, m in zip(S, M): ans = max(ans, Z + m) Z += s print(ans)
21.4
40
0.570093
28d465fa30e0433de2c84494a0e0f5ac46a9f8f7
1,978
py
Python
src/adage/decorators.py
lukasheinrich/dagger
353c15cd97ff5150eff128f34cf1666c78826524
[ "MIT" ]
31
2018-07-12T10:33:39.000Z
2021-12-01T22:49:42.000Z
src/adage/decorators.py
lukasheinrich/dagger
353c15cd97ff5150eff128f34cf1666c78826524
[ "MIT" ]
10
2021-02-15T20:13:43.000Z
2022-02-03T00:48:34.000Z
src/adage/decorators.py
lukasheinrich/dagger
353c15cd97ff5150eff128f34cf1666c78826524
[ "MIT" ]
3
2019-05-31T18:04:15.000Z
2021-08-23T12:00:18.000Z
import functools def adageop(func): """ Decorator that adds a 's' attribute to a function The attribute can be used to partially define the function call, except for the 'adageobj' keyword argument, the return value is a single-argument ('adageobj') function """ func.s = partial ret...
30.90625
92
0.664307
28d612bac84eab26893b70db1398bf2faa634b82
300
py
Python
keepassxc_pwned/__main__.py
opensource-assist/keepassxc-pwned
8e1ca6d04530d1e87afc0b8aea557d07884b1ad1
[ "MIT" ]
null
null
null
keepassxc_pwned/__main__.py
opensource-assist/keepassxc-pwned
8e1ca6d04530d1e87afc0b8aea557d07884b1ad1
[ "MIT" ]
null
null
null
keepassxc_pwned/__main__.py
opensource-assist/keepassxc-pwned
8e1ca6d04530d1e87afc0b8aea557d07884b1ad1
[ "MIT" ]
null
null
null
import sys import getpass from keepassxc_pwned import check_password pw = getpass.getpass("Password to check: ") count = check_password(pw) if count > 0: print("Found password {} times!".format(count)) sys.exit(1) else: print("Could not find that password in the dataset.") sys.exit(0)
21.428571
57
0.72
28d8e96dd3ba837f361c08332c0bfcd7c2fa4933
9,318
py
Python
scale/job/test/configuration/results/test_results_manifest.py
kaydoh/scale
1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee
[ "Apache-2.0" ]
121
2015-11-18T18:15:33.000Z
2022-03-10T01:55:00.000Z
scale/job/test/configuration/results/test_results_manifest.py
kaydoh/scale
1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee
[ "Apache-2.0" ]
1,415
2015-12-23T23:36:04.000Z
2022-01-07T14:10:09.000Z
scale/job/test/configuration/results/test_results_manifest.py
kaydoh/scale
1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee
[ "Apache-2.0" ]
66
2015-12-03T20:38:56.000Z
2020-07-27T15:28:11.000Z
from __future__ import unicode_literals import django from django.test import TestCase from job.configuration.results.results_manifest.results_manifest import ResultsManifest from job.configuration.results.exceptions import InvalidResultsManifest, \ MissingRequiredOutput
33.76087
131
0.434643
28d92445b0cef22e1b65fac68f9bba5d2c945b7b
30,543
py
Python
keepercommander/commands/connect.py
Keeper-Security/commander
93fee5d2ba56f2288e00ab33003597d00a302b5c
[ "MIT" ]
null
null
null
keepercommander/commands/connect.py
Keeper-Security/commander
93fee5d2ba56f2288e00ab33003597d00a302b5c
[ "MIT" ]
null
null
null
keepercommander/commands/connect.py
Keeper-Security/commander
93fee5d2ba56f2288e00ab33003597d00a302b5c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # _ __ # | |/ /___ ___ _ __ ___ _ _ # | ' </ -_) -_) '_ \/ -_) '_| # |_|\_\___\___| .__/\___|_| # |_| # # Keeper Commander # Copyright 2022 Keeper Security Inc. # Contact: ops@keepersecurity.com # from typing import Optional, Callable, Iterator, List, Iterable, Tuple import ar...
41.668486
160
0.572013
28da8ef8af9fbbd020d4fff7f7abff3149cb8fd6
855
py
Python
mpcorbget/__main__.py
davenporta/mpcorbget
0ccd3cdeb07ed2b7a4256ed643afff2b3756391c
[ "MIT" ]
4
2017-06-14T18:33:16.000Z
2021-01-15T06:07:19.000Z
build/lib/mpcorbget/__main__.py
davenporta/mpcorbget
0ccd3cdeb07ed2b7a4256ed643afff2b3756391c
[ "MIT" ]
null
null
null
build/lib/mpcorbget/__main__.py
davenporta/mpcorbget
0ccd3cdeb07ed2b7a4256ed643afff2b3756391c
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from __future__ import with_statement from builtins import input import mpcorbget as mpc def main(): """Handy dandy quick ephemeris tool""" print("QuickEphem v1.1...
32.884615
101
0.643275
28dbb5cd57af3255c8b54220ea75b7137d701b5b
5,338
py
Python
game/game_code/tests/test_level_1.py
RDGT/adventure-poc
e211491e5958d12a3347b3e279006d915d691d20
[ "MIT" ]
2
2018-04-23T15:03:41.000Z
2018-07-18T06:36:51.000Z
game/game_code/tests/test_level_1.py
RDGT/adventure-poc
e211491e5958d12a3347b3e279006d915d691d20
[ "MIT" ]
6
2018-03-25T12:04:27.000Z
2018-09-14T09:08:34.000Z
game/game_code/tests/test_level_1.py
RDGT/adventure-poc
e211491e5958d12a3347b3e279006d915d691d20
[ "MIT" ]
1
2018-07-22T09:46:55.000Z
2018-07-22T09:46:55.000Z
import unittest import logging import game_code log = logging.getLogger('test.level_1')
40.439394
104
0.680592
28dcbab6ce14a5c552df454e459ab5d17982bfb0
1,627
py
Python
new_skeleton1/tests/test_player_repository.py
borko81/SU_OOP_2021
8c38682bd4a2b032ca09f85b0a579be152223a59
[ "MIT" ]
null
null
null
new_skeleton1/tests/test_player_repository.py
borko81/SU_OOP_2021
8c38682bd4a2b032ca09f85b0a579be152223a59
[ "MIT" ]
null
null
null
new_skeleton1/tests/test_player_repository.py
borko81/SU_OOP_2021
8c38682bd4a2b032ca09f85b0a579be152223a59
[ "MIT" ]
null
null
null
import unittest from project.player.beginner import Beginner from project.player.player_repository import PlayerRepository if __name__ == '__main__': unittest.main()
31.288462
80
0.657652
28def3f05e8e5eae41643f72829ac55886b52a21
1,663
py
Python
libs/template.py
TheCherry/hsdetect
ed19570e706a8bcdf5b23d7cdefd6b746de3dc3b
[ "MIT" ]
2
2017-10-10T22:11:28.000Z
2018-01-02T06:03:21.000Z
libs/template.py
TheCherry/hsdetect
ed19570e706a8bcdf5b23d7cdefd6b746de3dc3b
[ "MIT" ]
null
null
null
libs/template.py
TheCherry/hsdetect
ed19570e706a8bcdf5b23d7cdefd6b746de3dc3b
[ "MIT" ]
null
null
null
import xml.etree.ElementTree as ET
36.955556
115
0.660854
28df1e4de356cb1489acc045615f0942034640d3
61
py
Python
up/tasks/det/data/__init__.py
ModelTC/EOD
164bff80486e9ae6a095a97667b365c46ceabd86
[ "Apache-2.0" ]
196
2021-10-30T05:15:36.000Z
2022-03-30T18:43:40.000Z
eod/tasks/det/data/__init__.py
YZW-explorer/EOD
f10e64de86c0f356ebf5c7e923f4042eec4207b1
[ "Apache-2.0" ]
12
2021-10-30T11:33:28.000Z
2022-03-31T14:22:58.000Z
eod/tasks/det/data/__init__.py
YZW-explorer/EOD
f10e64de86c0f356ebf5c7e923f4042eec4207b1
[ "Apache-2.0" ]
23
2021-11-01T07:26:17.000Z
2022-03-27T05:55:37.000Z
from .datasets import * # noqa from .metrics import * # noqa
20.333333
30
0.704918
28dfb8dee6d42e22033971ee588b9325fc390cc8
640
py
Python
montype.py
xenolithcluster/mon
b3ecb7810857ae6890ec57cd862f79d8422ee99d
[ "Unlicense" ]
null
null
null
montype.py
xenolithcluster/mon
b3ecb7810857ae6890ec57cd862f79d8422ee99d
[ "Unlicense" ]
null
null
null
montype.py
xenolithcluster/mon
b3ecb7810857ae6890ec57cd862f79d8422ee99d
[ "Unlicense" ]
null
null
null
from monstage import * bobo = MonType(sprites=["img/bobo.png","img/bobo2.png"],stage=bab) plainegg = MonType(sprites=["img/egg1.png","img/egg2.png"],becomes=[bobo])
22.857143
74
0.614063
28e285aab7ef8a74b888a3ac19489992fbb16f62
619
py
Python
bgp/migrations/0004_auto_20190409_0403.py
lkmhaqer/gtools-python
cff6d80525b78a4fadfb686566489fbe1687d889
[ "MIT" ]
5
2016-10-31T17:46:17.000Z
2022-02-02T00:40:49.000Z
bgp/migrations/0004_auto_20190409_0403.py
lkmhaqer/gtools-python
cff6d80525b78a4fadfb686566489fbe1687d889
[ "MIT" ]
33
2018-05-09T06:07:50.000Z
2021-09-22T17:39:56.000Z
bgp/migrations/0004_auto_20190409_0403.py
lkmhaqer/gtools-python
cff6d80525b78a4fadfb686566489fbe1687d889
[ "MIT" ]
1
2020-05-14T21:44:25.000Z
2020-05-14T21:44:25.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.13 on 2019-04-09 04:03 from __future__ import unicode_literals from django.db import migrations, models
23.807692
50
0.58643
28e59b00785686bf73bdc0a0356ac252f3fe15d2
2,195
py
Python
install.py
Schroedingberg/Schroedingberg.github.io
807990ee1605c4d6c4ca1610d60085bdd48849b5
[ "MIT" ]
null
null
null
install.py
Schroedingberg/Schroedingberg.github.io
807990ee1605c4d6c4ca1610d60085bdd48849b5
[ "MIT" ]
null
null
null
install.py
Schroedingberg/Schroedingberg.github.io
807990ee1605c4d6c4ca1610d60085bdd48849b5
[ "MIT" ]
null
null
null
import sys import os import subprocess as proc import distutils.spawn as which version = sys.version[:3] activate_env_path = os.path.join("env", "bin", "activate_this.py") activate_env = activate_env_path opts = {} dependencies = ["pandoc", "pandoc-citeproc", "pandoc-crossref", "pandoc-sidenote", ...
25.823529
71
0.638269
28e617d3fa4c248d444bbe5bd303b5bff8eeccf3
2,031
py
Python
urpc/storage/oldxi/doxygen.py
EPC-MSU/uRPC
cd3c386a8320542052834ca28791a3ea2b57c54f
[ "CC0-1.0" ]
1
2022-03-11T04:29:53.000Z
2022-03-11T04:29:53.000Z
urpc/storage/oldxi/doxygen.py
EPC-MSU/uRPC
cd3c386a8320542052834ca28791a3ea2b57c54f
[ "CC0-1.0" ]
null
null
null
urpc/storage/oldxi/doxygen.py
EPC-MSU/uRPC
cd3c386a8320542052834ca28791a3ea2b57c54f
[ "CC0-1.0" ]
1
2021-06-15T21:56:26.000Z
2021-06-15T21:56:26.000Z
# from functools import lru_cache as memoize from collections import namedtuple from pyparsing import Regex, SkipTo, ParseException, OneOrMore, Optional, Suppress, Empty Language = namedtuple("Language", ["code", "text"]) # directives # _dsee = Suppress("@see")+SkipTo(LineEnd()) # _dparam = Suppress("@param")+SkipT...
31.246154
104
0.642541
28e6b72106e1dae4d2af234b07a4d026ca6bfe01
1,314
py
Python
app/modules/model/base/abstract_model.py
petrLorenc/Labelling-Tool
aaa97fa9d2db8b43100f068f359df1d8cb709571
[ "MIT" ]
null
null
null
app/modules/model/base/abstract_model.py
petrLorenc/Labelling-Tool
aaa97fa9d2db8b43100f068f359df1d8cb709571
[ "MIT" ]
1
2018-07-14T12:32:46.000Z
2018-07-14T12:32:46.000Z
app/modules/model/base/abstract_model.py
petrLorenc/Labelling-Tool
aaa97fa9d2db8b43100f068f359df1d8cb709571
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod
24.792453
127
0.611111
28e78c6007647b288497c3988604a790b661d369
7,327
py
Python
examples/prefilter_test.py
abiedermann/worms
026c45a88d5c71b0e035ac83de6f4dc107316ed8
[ "Apache-2.0" ]
4
2018-01-30T23:13:43.000Z
2021-02-12T22:36:54.000Z
examples/prefilter_test.py
abiedermann/worms
026c45a88d5c71b0e035ac83de6f4dc107316ed8
[ "Apache-2.0" ]
9
2018-02-23T00:52:25.000Z
2022-01-26T00:02:32.000Z
examples/prefilter_test.py
abiedermann/worms
026c45a88d5c71b0e035ac83de6f4dc107316ed8
[ "Apache-2.0" ]
4
2018-06-28T21:30:14.000Z
2022-03-30T17:50:42.000Z
import logging import sys import concurrent.futures as cf from time import clock, time import numpy as np import pytest from worms import simple_search_dag, Cyclic, grow_linear, NullCriteria from worms.util import InProcessExecutor from worms.database import CachingBBlockDB, CachingSpliceDB from worms.ssdag_pose impo...
32.856502
115
0.661253
28e8716a746cdb6acac715e98c28629d494e1a7a
1,720
py
Python
Reporting/urllib2_report_data.py
hbuter-rubrik/rubrik-scripts-for-python
0e434854b778ff0f857425173e5cb7d6b83dddec
[ "MIT" ]
5
2019-10-04T18:09:24.000Z
2020-08-25T04:46:01.000Z
Reporting/urllib2_report_data.py
hbuter-rubrik/rubrik-scripts-for-python
0e434854b778ff0f857425173e5cb7d6b83dddec
[ "MIT" ]
2
2020-01-07T18:25:11.000Z
2021-10-14T11:48:27.000Z
Reporting/urllib2_report_data.py
hbuter-rubrik/rubrik-scripts-for-python
0e434854b778ff0f857425173e5cb7d6b83dddec
[ "MIT" ]
6
2019-04-25T10:26:30.000Z
2021-11-18T08:20:50.000Z
import urllib2 import json import base64 import time import ssl """ define our rubrik credentials """ RUBRIK_IP='rubrik.demo.com' RUBRIK_USER='admin' RUBRIK_PASS='mypassword123!' """ ignore self-signed certs """ ctx = ssl.create_default_context() ctx.check_hostname = False ctx.verify_mode = ssl.CERT_NONE # get the repo...
33.076923
123
0.699419
28e92acc31d96b35a53502cfb20ad7033a7cf662
2,476
py
Python
f_net/main.py
DionysisChristopoulos/google-research
7f59ef421beef32ca16c2a7215be74f7eba01a0f
[ "Apache-2.0" ]
2
2021-09-04T09:08:38.000Z
2021-09-04T09:08:44.000Z
f_net/main.py
DionysisChristopoulos/google-research
7f59ef421beef32ca16c2a7215be74f7eba01a0f
[ "Apache-2.0" ]
null
null
null
f_net/main.py
DionysisChristopoulos/google-research
7f59ef421beef32ca16c2a7215be74f7eba01a0f
[ "Apache-2.0" ]
5
2021-11-25T07:40:17.000Z
2022-03-22T11:13:39.000Z
# coding=utf-8 # Copyright 2021 The Google Research 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://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
32.578947
83
0.735057
28e9489a4ce0811a2281acebf64dae5129d76367
18,341
py
Python
mypyext/ml.py
VolkiTheDreamer/PythonRocks
f7b6cdf335687c6d111bf08387965ca3ecddd504
[ "Apache-2.0" ]
null
null
null
mypyext/ml.py
VolkiTheDreamer/PythonRocks
f7b6cdf335687c6d111bf08387965ca3ecddd504
[ "Apache-2.0" ]
null
null
null
mypyext/ml.py
VolkiTheDreamer/PythonRocks
f7b6cdf335687c6d111bf08387965ca3ecddd504
[ "Apache-2.0" ]
2
2019-10-04T10:56:14.000Z
2022-03-06T18:18:59.000Z
import numpy as np import pandas as pd from sklearn.metrics import silhouette_samples, silhouette_score from sklearn.metrics import confusion_matrix, accuracy_score, recall_score, precision_score, f1_score,roc_auc_score,roc_curve from sklearn.metrics import mean_squared_error,mean_absolute_error,r2_score import ma...
38.531513
213
0.601876
28eb9384d1558fa0c10861f56ac8ad811737befd
845
py
Python
src/isaw.theme/isaw/theme/browser/viewlets/zotero.py
isawnyu/isaw.web
604499f9fa55d1ce9698ca05f85ddb54a88f1cab
[ "CC-BY-3.0" ]
null
null
null
src/isaw.theme/isaw/theme/browser/viewlets/zotero.py
isawnyu/isaw.web
604499f9fa55d1ce9698ca05f85ddb54a88f1cab
[ "CC-BY-3.0" ]
405
2015-03-12T18:20:25.000Z
2022-03-07T18:44:16.000Z
src/isaw.theme/isaw/theme/browser/viewlets/zotero.py
isawnyu/isaw.web
604499f9fa55d1ce9698ca05f85ddb54a88f1cab
[ "CC-BY-3.0" ]
1
2016-11-07T21:18:49.000Z
2016-11-07T21:18:49.000Z
import re from urlparse import urlparse from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile from plone.app.layout.viewlets.common import ViewletBase ZOTERO_JSON_BASE = 'https://api.zotero.org{}?v=3&format=json' Z_MATCH = re.compile(r'^/(groups|users)/\d+/items/[A-Z1-9]+$')
33.8
71
0.695858
28ec2d89ad8ce29a9ec68a6cf207b6114836df8c
1,079
py
Python
descender.py
illBeRoy/tldr-of-the-world-data
06d581eb117bdc79ebbe7af4f8ae4b26190d7231
[ "MIT" ]
null
null
null
descender.py
illBeRoy/tldr-of-the-world-data
06d581eb117bdc79ebbe7af4f8ae4b26190d7231
[ "MIT" ]
null
null
null
descender.py
illBeRoy/tldr-of-the-world-data
06d581eb117bdc79ebbe7af4f8ae4b26190d7231
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse import json import jinja2 import webbrowser import graph if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('groups', help='json file describing seed groups') args = parser.parse_args() # load group from file with open(args.gro...
28.394737
100
0.656163
28ee6695911d76e64bcea52634f3ac6a4cf51dda
268
py
Python
picompile/types.py
pfalcon/picompile
7724e629e3ffc48b066c938d7f02b5f4e8276051
[ "MIT" ]
3
2020-01-28T03:54:06.000Z
2021-02-25T14:38:50.000Z
picompile/types.py
pfalcon/picompile
7724e629e3ffc48b066c938d7f02b5f4e8276051
[ "MIT" ]
null
null
null
picompile/types.py
pfalcon/picompile
7724e629e3ffc48b066c938d7f02b5f4e8276051
[ "MIT" ]
null
null
null
"Actual (primitive) types instanitated in the type system." import sys from .typesys import * int32 = TCon("Int32") int64 = TCon("Int64") float32 = TCon("Float") double64 = TCon("Double") void = TCon("Void")
14.105263
59
0.652985
28f158e00bdef100d0ce90ce07f81579244e0faa
2,735
py
Python
tests/fraction_tests/test_neg.py
davideguidobene/cfractions
2fc33d3ddf972e07787bdc99443868137999e114
[ "MIT" ]
3
2022-01-18T21:17:17.000Z
2022-01-23T21:49:52.000Z
tests/fraction_tests/test_neg.py
davideguidobene/cfractions
2fc33d3ddf972e07787bdc99443868137999e114
[ "MIT" ]
3
2021-06-28T13:30:58.000Z
2022-01-16T19:05:00.000Z
tests/fraction_tests/test_neg.py
davideguidobene/cfractions
2fc33d3ddf972e07787bdc99443868137999e114
[ "MIT" ]
1
2021-10-22T02:12:06.000Z
2021-10-22T02:12:06.000Z
import sys from numbers import Real from hypothesis import given from cfractions import Fraction from tests.utils import (equivalence, is_fraction_valid, skip_reference_counter_test) from . import strategies
30.054945
78
0.729433
28f37ae0b38a0ca393af612ee52d0d305a27311a
336
py
Python
flag/parser.py
danielchatfield/flag
e4c2bea2a74a428b9fdf7bf350e218c8cd71fdc5
[ "MIT" ]
2
2016-06-26T22:16:08.000Z
2020-08-15T12:20:18.000Z
flag/parser.py
danielchatfield/flag
e4c2bea2a74a428b9fdf7bf350e218c8cd71fdc5
[ "MIT" ]
null
null
null
flag/parser.py
danielchatfield/flag
e4c2bea2a74a428b9fdf7bf350e218c8cd71fdc5
[ "MIT" ]
1
2020-08-15T12:21:12.000Z
2020-08-15T12:21:12.000Z
# -*- coding: utf-8 -*- """ flag.parser ~~~~~~~~~~~ """ import argparse from . import registry
16
38
0.592262
28f54f1fb9cdd4025290b813dd74c2874e584666
14,375
py
Python
4_Model_Updater/train_new_model.py
kshahnazari1998/SmartDota-Public
270ddabfd353c57e754c00b7a5365d99f4d5902f
[ "MIT" ]
null
null
null
4_Model_Updater/train_new_model.py
kshahnazari1998/SmartDota-Public
270ddabfd353c57e754c00b7a5365d99f4d5902f
[ "MIT" ]
null
null
null
4_Model_Updater/train_new_model.py
kshahnazari1998/SmartDota-Public
270ddabfd353c57e754c00b7a5365d99f4d5902f
[ "MIT" ]
null
null
null
import json import pandas as pd import numpy as np import random from Sqldatabasehandler import sqlhandler from datetime import datetime from sklearn.linear_model import SGDClassifier from sklearn.preprocessing import PolynomialFeatures import pickle import torch from torch import nn import torch.optim as optim from ...
36.209068
88
0.517704
28f6f0c2610028a27b78a080b28387f6adc1ab80
2,227
py
Python
meshrcnn/structures/mask.py
MAYURGAIKWAD/meshrcnn
b47ecd47ca7de7055b7d141e63ddab286c5245f3
[ "BSD-3-Clause" ]
1,028
2020-01-23T23:30:54.000Z
2022-03-27T22:33:50.000Z
meshrcnn/structures/mask.py
MAYURGAIKWAD/meshrcnn
b47ecd47ca7de7055b7d141e63ddab286c5245f3
[ "BSD-3-Clause" ]
103
2020-01-24T05:29:48.000Z
2022-03-08T13:04:24.000Z
meshrcnn/structures/mask.py
MAYURGAIKWAD/meshrcnn
b47ecd47ca7de7055b7d141e63ddab286c5245f3
[ "BSD-3-Clause" ]
179
2020-01-24T08:14:30.000Z
2022-03-19T00:34:05.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import torch from torch.nn import functional as F def crop_mask_within_box(mask, box, mask_size): """ Crop the mask content in the given box. The cropped mask is resized to (mask_size, mask_size). This function is used when genera...
34.796875
97
0.68388
28f7bcf0fe258f3b0b26915576f9434aa6d0a9ec
1,727
py
Python
app/controller/org.py
Jimmy-Xu/fastapi_demo
f19c629cc7fa0e0e47e73e8688cd019bc74aa982
[ "MIT" ]
12
2020-09-01T09:19:41.000Z
2022-03-17T05:48:50.000Z
app/controller/org.py
Jimmy-Xu/fastapi_demo
f19c629cc7fa0e0e47e73e8688cd019bc74aa982
[ "MIT" ]
null
null
null
app/controller/org.py
Jimmy-Xu/fastapi_demo
f19c629cc7fa0e0e47e73e8688cd019bc74aa982
[ "MIT" ]
3
2021-04-26T02:53:04.000Z
2021-11-01T14:32:38.000Z
from fastapi import APIRouter, Depends from fastapi_plus.schema.base import ListArgsSchema, RespListSchema, RespIdSchema, RespBaseSchema from fastapi_plus.utils.auth import get_auth_data from fastapi_plus.utils.custom_route import CustomRoute from ..schema.org import OrgInfoSchema, OrgRespDetailSchema from ..service.o...
27.412698
97
0.712218
28f8e1f5d1a46da294aab0598c860ad545a8ca7d
652
py
Python
gds/blueprint/api/__init__.py
UniqueHK/pholcus
bf14621cf1fcd3517f2bbca7f9a7e73ee06cbf4a
[ "MIT" ]
4
2015-12-15T06:06:40.000Z
2016-06-20T07:52:06.000Z
gds/blueprint/api/__init__.py
UniqueHK/pholcus
bf14621cf1fcd3517f2bbca7f9a7e73ee06cbf4a
[ "MIT" ]
1
2016-02-02T04:35:16.000Z
2016-02-02T04:35:16.000Z
gds/blueprint/api/__init__.py
UniqueHK/pholcus
bf14621cf1fcd3517f2bbca7f9a7e73ee06cbf4a
[ "MIT" ]
1
2015-07-22T12:17:08.000Z
2015-07-22T12:17:08.000Z
#!/usr/bin/env python # coding=utf8 import os TOP = os.path.abspath('.') STATIC = os.path.join(os.path.abspath('.'), 'static', 'exe') ALLOWED_EXTENSIONS = set(['py'])
25.076923
77
0.673313
28f8fe78a081d406b2ab32ded6242237cf670fed
1,896
py
Python
tests/refarm_redirects/test_views.py
fidals/blog
2815b43d6724b142cc663a8cdc59d2afc9cad657
[ "MIT" ]
3
2017-05-05T12:01:54.000Z
2018-03-06T21:33:04.000Z
tests/refarm_redirects/test_views.py
fidals/blog
2815b43d6724b142cc663a8cdc59d2afc9cad657
[ "MIT" ]
172
2016-11-30T18:18:41.000Z
2022-03-11T23:20:58.000Z
tests/refarm_redirects/test_views.py
fidals/blog
2815b43d6724b142cc663a8cdc59d2afc9cad657
[ "MIT" ]
3
2017-09-25T17:11:46.000Z
2020-04-17T09:14:43.000Z
import unittest from django.contrib.redirects.models import Redirect from django.contrib.sites.models import Site from django.db.utils import IntegrityError from django.test import TestCase
37.176471
80
0.639241
28f9b230456479c535d2d51167428a69e99f40fe
1,448
py
Python
src/super_gradients/training/models/__init__.py
karndeepsingh/super-gradients
bfed440ecaf485af183570bf965eb5b74cb9f832
[ "Apache-2.0" ]
1
2022-01-15T19:33:06.000Z
2022-01-15T19:33:06.000Z
src/super_gradients/training/models/__init__.py
karndeepsingh/super-gradients
bfed440ecaf485af183570bf965eb5b74cb9f832
[ "Apache-2.0" ]
null
null
null
src/super_gradients/training/models/__init__.py
karndeepsingh/super-gradients
bfed440ecaf485af183570bf965eb5b74cb9f832
[ "Apache-2.0" ]
null
null
null
# flake8: noqa # FIXME: find sol for F403 error (caused by import *), most likely need to import everything by hand from .sg_module import * from super_gradients.training.models.classification_models.densenet import * from super_gradients.training.models.classification_models.dpn import * from super_gradients.training....
68.952381
115
0.870166
28fa10ec4cb7ea617432d1a843efa65bb4d46c15
2,327
py
Python
nerodia/alert.py
harsh183/nerodia
69c5e4408432e85b5af0b2da03015f729809dac4
[ "MIT" ]
83
2017-11-20T08:41:09.000Z
2022-02-09T21:01:47.000Z
nerodia/alert.py
harsh183/nerodia
69c5e4408432e85b5af0b2da03015f729809dac4
[ "MIT" ]
28
2017-11-21T02:25:03.000Z
2021-04-15T15:26:30.000Z
nerodia/alert.py
harsh183/nerodia
69c5e4408432e85b5af0b2da03015f729809dac4
[ "MIT" ]
14
2017-11-29T06:44:12.000Z
2021-09-06T04:53:44.000Z
from selenium.common.exceptions import NoAlertPresentException import nerodia from .exception import UnknownObjectException from .wait.wait import Waitable, TimeoutError
23.039604
83
0.581006
28fa6ae216b4aa0d88457aec32b09566f1611604
1,448
py
Python
finetwork/distance_calculator/distance_calculator.py
annakuchko/FinNetwork
4566ff96b33fb5668f9b28f41a94791d1cf9249c
[ "MIT" ]
5
2021-12-07T22:14:10.000Z
2022-03-30T14:09:15.000Z
finetwork/distance_calculator/distance_calculator.py
annakuchko/FinNetwork
4566ff96b33fb5668f9b28f41a94791d1cf9249c
[ "MIT" ]
null
null
null
finetwork/distance_calculator/distance_calculator.py
annakuchko/FinNetwork
4566ff96b33fb5668f9b28f41a94791d1cf9249c
[ "MIT" ]
null
null
null
from finetwork.distance_calculator import _distance_metrics import pandas as pd
34.47619
78
0.462017
28fc0673c7bc0e68a3641dedb06915366e9c6c39
27,818
py
Python
aprastreioWin.py
Alexsussa/aprastreio
1159861edd932f61a849f63f9dc7e5d34b2f272b
[ "MIT" ]
null
null
null
aprastreioWin.py
Alexsussa/aprastreio
1159861edd932f61a849f63f9dc7e5d34b2f272b
[ "MIT" ]
null
null
null
aprastreioWin.py
Alexsussa/aprastreio
1159861edd932f61a849f63f9dc7e5d34b2f272b
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- encoding: utf-8 -*- __version__ = 1.2 from tkinter.ttk import * from tkinter.messagebox import * from tkinter.scrolledtext import * from tkinter import * from bs4 import BeautifulSoup from urllib.request import urlopen from mailcomposer import MailComposer from threading import Thread import ...
46.910624
225
0.60752
28fcf00920c199ce0f0b62aba120f4cb4d0c324d
5,480
py
Python
samples/attributes.py
DavidJohnGee/clicrud
f1f178ac44649efe7b7681d37e97d2632b8971b2
[ "Apache-2.0" ]
9
2015-12-07T23:00:24.000Z
2021-06-23T21:31:47.000Z
samples/attributes.py
DavidJohnGee/clicrud
f1f178ac44649efe7b7681d37e97d2632b8971b2
[ "Apache-2.0" ]
8
2016-04-05T12:36:54.000Z
2017-05-15T16:00:08.000Z
samples/attributes.py
DavidJohnGee/clicrud
f1f178ac44649efe7b7681d37e97d2632b8971b2
[ "Apache-2.0" ]
7
2016-06-02T23:39:05.000Z
2021-03-25T20:52:46.000Z
#!/usr/bin/env python """ Copyright 2015 Brocade Communications Systems, Inc. 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 appl...
37.793103
77
0.534672
28fd8a0aa5ca53d8cc4ae5edc75046373f2c1af3
1,929
py
Python
Q36_reversePairs.py
FreesiaLikesPomelo/-offer
14ac73cb46d13c7f5bbc294329a14f3c5995bc7a
[ "Apache-2.0" ]
null
null
null
Q36_reversePairs.py
FreesiaLikesPomelo/-offer
14ac73cb46d13c7f5bbc294329a14f3c5995bc7a
[ "Apache-2.0" ]
null
null
null
Q36_reversePairs.py
FreesiaLikesPomelo/-offer
14ac73cb46d13c7f5bbc294329a14f3c5995bc7a
[ "Apache-2.0" ]
null
null
null
''' 51. 1: : [7,5,6,4] : 5 0 <= <= 50000 https://leetcode-cn.com/problems/shu-zu-zhong-de-ni-xu-dui-lcof/ :1564 ms, Python3 85.67% :18.5 MB, Python3 100.00% ''' # merge-sort # test cases: # 1. input [] or [int]:return 0 # 2. function test: input sorted array: return
26.424658
64
0.524624
28fd8b4c1c5abdea704fd69e0b99370a0f6f8997
21,954
py
Python
Apps/phgreynoise/greynoise_connector.py
ryanbsaunders/phantom-apps
1befda793a08d366fbd443894f993efb1baf9635
[ "Apache-2.0" ]
2
2021-07-23T03:51:30.000Z
2021-08-12T14:13:04.000Z
Apps/phgreynoise/greynoise_connector.py
ryanbsaunders/phantom-apps
1befda793a08d366fbd443894f993efb1baf9635
[ "Apache-2.0" ]
4
2021-10-04T09:22:02.000Z
2021-11-01T12:00:04.000Z
Apps/phgreynoise/greynoise_connector.py
ryanbsaunders/phantom-apps
1befda793a08d366fbd443894f993efb1baf9635
[ "Apache-2.0" ]
2
2021-05-15T17:31:24.000Z
2021-07-23T03:51:42.000Z
# File: greynoise_connector.py # # Licensed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) # Python 3 Compatibility imports from __future__ import print_function, unicode_literals # Phantom App imports import phantom.app as phantom from phantom.base_connector import BaseConnector from phantom.acti...
38.856637
123
0.579029
28ff68d107d4e01cf5ece21ad9bb66128f102b8f
373
py
Python
src/pgbackup/pgdump.py
narbutas/pgbackup
2bc65dc9c4cdba135e0ae68c71d034de50fddda8
[ "Apache-2.0" ]
null
null
null
src/pgbackup/pgdump.py
narbutas/pgbackup
2bc65dc9c4cdba135e0ae68c71d034de50fddda8
[ "Apache-2.0" ]
null
null
null
src/pgbackup/pgdump.py
narbutas/pgbackup
2bc65dc9c4cdba135e0ae68c71d034de50fddda8
[ "Apache-2.0" ]
null
null
null
import subprocess import sys
21.941176
67
0.686327
e900f1fbad104966ef7247511d53bc745e2f6385
1,190
py
Python
e2_s13.py
iansantana00/Python-Course
43852aa64c93099342ab4765b0fe8729a959449e
[ "MIT" ]
2
2022-01-13T15:55:58.000Z
2022-02-11T23:18:34.000Z
e2_s13.py
iansantana00/Python-Course
43852aa64c93099342ab4765b0fe8729a959449e
[ "MIT" ]
null
null
null
e2_s13.py
iansantana00/Python-Course
43852aa64c93099342ab4765b0fe8729a959449e
[ "MIT" ]
null
null
null
numero_vogal = 0 espao = 0 numero_consoante = 0 contador = 0 escrita = 0 arquivo = input('Digite o nome do seu arquivo (.txt): ') with open(arquivo, 'w', encoding='utf-8') as texto: while escrita != 'sair': escrita = input('Digite: ') texto.write(escrita) texto.write('...
30.512821
117
0.443697
e903d12f8a04e71c8c2140ed40144f3db69c7ec2
7,249
py
Python
app/sso/tests/providers/test_oauth2_google_views.py
getmetamapper/metamapper
0b2f67eec03fbf7ece35ff9f58ea9bb2dde4d85f
[ "BSD-2-Clause" ]
53
2020-07-01T23:11:59.000Z
2022-03-31T19:10:28.000Z
app/sso/tests/providers/test_oauth2_google_views.py
metamapper-io/metamapper
376716e72bcaca62f1ec09ca9a13a0346e5502f9
[ "BSD-2-Clause" ]
5
2020-11-25T19:48:57.000Z
2022-02-27T23:50:18.000Z
app/sso/tests/providers/test_oauth2_google_views.py
metamapper-io/metamapper
376716e72bcaca62f1ec09ca9a13a0346e5502f9
[ "BSD-2-Clause" ]
5
2020-08-29T16:43:59.000Z
2022-01-17T19:05:30.000Z
# -*- coding: utf-8 -*- from base64 import b64encode, b64decode from unittest import mock from django.conf import settings from django.http import HttpResponseRedirect from django.test import TestCase, Client from django.urls import reverse from testutils import factories from urllib.parse import urlparse, parse_qs ...
36.611111
116
0.626983
e903dc912d5bbd81aedab3090527461e1da894a1
2,843
py
Python
mammoth/ensembl.py
hbc/mammoth_code
2e6909514e8ff232981ea2cb03f078257bc5c847
[ "MIT" ]
1
2017-05-22T01:18:13.000Z
2017-05-22T01:18:13.000Z
mammoth/ensembl.py
hbc/mammoth_code
2e6909514e8ff232981ea2cb03f078257bc5c847
[ "MIT" ]
null
null
null
mammoth/ensembl.py
hbc/mammoth_code
2e6909514e8ff232981ea2cb03f078257bc5c847
[ "MIT" ]
null
null
null
"""ensembl interaction function""" import os import requests, sys import yaml import logging import gffutils from collections import defaultdict import mammoth.logger as mylog server = "http://rest.ensembl.org{ext}" ext = "/sequence/id/{id}?type=cds" prot = "/sequence/id/{id}?type=protein" sequence = "/sequence/reg...
38.418919
133
0.570172
e904784d726457730b96e531625f80ef01e860f9
906
py
Python
test/top.py
persianpros/transmissionrpc
5e6a8487ca7684459ef9d3b375b207535ae2b9dd
[ "MIT" ]
null
null
null
test/top.py
persianpros/transmissionrpc
5e6a8487ca7684459ef9d3b375b207535ae2b9dd
[ "MIT" ]
null
null
null
test/top.py
persianpros/transmissionrpc
5e6a8487ca7684459ef9d3b375b207535ae2b9dd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # 2013-03, Erik Svensson <erik.public@gmail.com> # Licensed under the MIT license. import unittest import transmissionrpc
39.391304
142
0.738411
e908268a83f96abbf4d4753eae66db6c612a092e
389
py
Python
sglib/__init__.py
mvinyard/guideID
fec14c8713960428fc31f68ece7ac36a7b2bcab9
[ "MIT" ]
null
null
null
sglib/__init__.py
mvinyard/guideID
fec14c8713960428fc31f68ece7ac36a7b2bcab9
[ "MIT" ]
null
null
null
sglib/__init__.py
mvinyard/guideID
fec14c8713960428fc31f68ece7ac36a7b2bcab9
[ "MIT" ]
null
null
null
# __init__.py from ._sgRNA_Library import _sgRNA_Library as Library # functions from ._gene_annotation_functions._merge_reduce_gene_regions import _merge_reduce_gene_regions as merge_reduce from ._guide_annotation_functions._annotate_biochemistry import _annotate_biochemistry as annotate_biochemistry, _annotate_GC_c...
43.222222
195
0.894602
e90a508ef0e30d0bdd4948ae4a031308ac6c728e
10,317
py
Python
pag_demo.py
Topaz1618/MeowFile
33878abfb552128368ad6bbf5396d45f21906ce3
[ "MIT" ]
null
null
null
pag_demo.py
Topaz1618/MeowFile
33878abfb552128368ad6bbf5396d45f21906ce3
[ "MIT" ]
null
null
null
pag_demo.py
Topaz1618/MeowFile
33878abfb552128368ad6bbf5396d45f21906ce3
[ "MIT" ]
null
null
null
__copyright__ = """ Copyright (c) 2021 HangYan. """ __license__ = 'MIT license' __version__ = '1.0' __author__ = 'topaz1668@gmail.com' from models import conn_db, UploadFiles from sqlalchemy import func, distinct, or_, and_ import datetime from datetime import timedelta import time import math # def page_limit(): ...
29.226629
342
0.602113
e90aae947ee6b59303ae1471afa7007b7d9e535a
4,490
py
Python
test/orb.py
Tythos/oyb
0653c4fa24c73f4f2cb2d1c1a29d318f6e9cbd79
[ "MIT" ]
1
2017-08-05T16:16:32.000Z
2017-08-05T16:16:32.000Z
test/orb.py
Tythos/oyb
0653c4fa24c73f4f2cb2d1c1a29d318f6e9cbd79
[ "MIT" ]
null
null
null
test/orb.py
Tythos/oyb
0653c4fa24c73f4f2cb2d1c1a29d318f6e9cbd79
[ "MIT" ]
null
null
null
""" """ import datetime import unittest import numpy from math import pi import oyb from oyb import earth, anomaly if __name__ == '__main__': unittest.main()
38.376068
122
0.57951
e90be1f05a4443793696e6d766c9b0e422e47832
11,656
py
Python
src/python/WMComponent/JobArchiver/JobArchiverPoller.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
1
2015-02-05T13:43:46.000Z
2015-02-05T13:43:46.000Z
src/python/WMComponent/JobArchiver/JobArchiverPoller.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
1
2016-10-13T14:57:35.000Z
2016-10-13T14:57:35.000Z
src/python/WMComponent/JobArchiver/JobArchiverPoller.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ The actual jobArchiver algorithm """ import logging import os import os.path import shutil import tarfile import threading from Utils.IteratorTools import grouper from Utils.Timers import timeFunction from WMCore.DAOFactory import DAOFactory from WMCore.JobStateMachine.ChangeState import Chan...
34.081871
99
0.591455
e90c4cbbc181386f952de337a177c966ed5084da
1,795
py
Python
src/aqm/run_create_views.py
layadelcarmen/aqm
ee300b0064b78d73e2020c1e50300e65a7fb727e
[ "MIT" ]
null
null
null
src/aqm/run_create_views.py
layadelcarmen/aqm
ee300b0064b78d73e2020c1e50300e65a7fb727e
[ "MIT" ]
null
null
null
src/aqm/run_create_views.py
layadelcarmen/aqm
ee300b0064b78d73e2020c1e50300e65a7fb727e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import psycopg2 def executeScriptsFromFile(filename, cursor): '''Execute SQL create views''' fd = open(filename, 'r') sqlFile = fd.read() fd.close() sqlCommands = sqlFile.split(';') for command in sqlCommands: try: print(command) ...
31.491228
196
0.494708
e90c9d97a14172ce328d8d9a5973b099b111668f
5,127
py
Python
mnist/mnist_dist.py
vibhatha/PytorchExamples
df356f120d6eef69a94586af93bff75af307582d
[ "Apache-2.0" ]
3
2021-04-11T05:09:00.000Z
2021-08-11T09:58:53.000Z
mnist/mnist_dist.py
vibhatha/PytorchExamples
df356f120d6eef69a94586af93bff75af307582d
[ "Apache-2.0" ]
4
2021-03-12T21:51:01.000Z
2021-03-14T16:03:13.000Z
mnist/mnist_dist.py
vibhatha/PytorchExamples
df356f120d6eef69a94586af93bff75af307582d
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import argparse from math import ceil from random import Random from socket import socket import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torchvision import datasets, transforms from torch.optim.lr_scheduler import StepLR import...
29.635838
122
0.577921
e90e71723fb83c3e9db45cf94c16cac0b3962eb2
1,218
py
Python
common/es/one_scripts.py
ltxhh/course
45c8e4e436d9f20effccc7ed0844dfd07d8348b1
[ "Apache-2.0" ]
null
null
null
common/es/one_scripts.py
ltxhh/course
45c8e4e436d9f20effccc7ed0844dfd07d8348b1
[ "Apache-2.0" ]
null
null
null
common/es/one_scripts.py
ltxhh/course
45c8e4e436d9f20effccc7ed0844dfd07d8348b1
[ "Apache-2.0" ]
null
null
null
# -*- codeing = utf-8 -*- # @Time : 2022/4/12 13:43 # @Author : linyaxuan # @File : one_scripts.py # @Software : PyCharm """ es """ import pymysql import traceback from elasticsearch import Elasticsearch if __name__ == "__main__": insert_data_to_es()
23.882353
85
0.559113
e90efb1a09f98ac8736cd0e451c9792361d21cef
1,048
py
Python
core/services/tests.py
ojengwa/reportr
ca66184e2b7f28cb3818bb5d3a931232566bff99
[ "MIT" ]
2
2015-01-26T14:43:20.000Z
2015-02-13T10:18:44.000Z
core/services/tests.py
ojengwa/reportr
ca66184e2b7f28cb3818bb5d3a931232566bff99
[ "MIT" ]
null
null
null
core/services/tests.py
ojengwa/reportr
ca66184e2b7f28cb3818bb5d3a931232566bff99
[ "MIT" ]
null
null
null
from django.test import TestCase from core.services.freckle import Freckle from datetime import datetime
32.75
87
0.69084
e910c8bb7a93d643dfe5883064380eb1ced0913d
1,343
py
Python
doubleRedirect.py
ebraminio/DeltaBot
14d427ca644c4e842f72802a0e07adcaecda7097
[ "CC0-1.0" ]
10
2016-08-09T21:28:27.000Z
2021-12-23T17:22:04.000Z
doubleRedirect.py
ebraminio/DeltaBot
14d427ca644c4e842f72802a0e07adcaecda7097
[ "CC0-1.0" ]
9
2016-12-31T10:48:11.000Z
2020-07-22T20:52:06.000Z
doubleRedirect.py
ebraminio/DeltaBot
14d427ca644c4e842f72802a0e07adcaecda7097
[ "CC0-1.0" ]
11
2017-01-24T15:51:57.000Z
2022-02-10T00:35:18.000Z
#!/usr/bin/python # -*- coding: UTF-8 -*- # licensed under CC-Zero: https://creativecommons.org/publicdomain/zero/1.0 import pywikibot from pywikibot.data import api import re site = pywikibot.Site('wikidata', 'wikidata') site.login() repo = site.data_repository() if __name__ == "__main__": main...
24.87037
78
0.527923
e912162e98a071826f62ad98af891120325dbaa8
2,327
py
Python
lab1/domanda3.py
D33pBlue/Algoritmi
76088f40b49d51416919515a274ba076ae6a197e
[ "MIT" ]
null
null
null
lab1/domanda3.py
D33pBlue/Algoritmi
76088f40b49d51416919515a274ba076ae6a197e
[ "MIT" ]
1
2018-03-17T19:15:41.000Z
2018-03-17T19:18:24.000Z
lab1/domanda3.py
D33pBlue/Algoritmi
76088f40b49d51416919515a274ba076ae6a197e
[ "MIT" ]
null
null
null
from domanda1 import * import random import time """ Implementazione dell'algoritmo DPA per la generazione di un grafo casuale """ """ Restituisce la distribuzione del grado uscente del grafo, come dizionario avente per chiavi il grado e per valori la probabilita' """ """ Genera il grafico delle due distribuzioni, ...
25.855556
73
0.588311
e914dc16d8c9fee0bbb11e912b41acdddd08ad05
1,237
py
Python
leetcode/permutation.py
huynonstop/solving-everything
21c7c32f9e482e1e88d5ec8a03f8815d28f7ef39
[ "MIT" ]
null
null
null
leetcode/permutation.py
huynonstop/solving-everything
21c7c32f9e482e1e88d5ec8a03f8815d28f7ef39
[ "MIT" ]
null
null
null
leetcode/permutation.py
huynonstop/solving-everything
21c7c32f9e482e1e88d5ec8a03f8815d28f7ef39
[ "MIT" ]
null
null
null
from typing import List # https://leetcode.com/problems/permutations-ii/discuss/18602/9-line-python-solution-with-1-line-to-handle-duplication-beat-99-of-others-%3A-) def permute_unique(nums): rs = [] nums.sort() dfs(nums, []) return rs def permute_unique(nums): n = len(nums) rs = [] ...
22.089286
142
0.501213
e91854ceacf0d5585096c1554b24da88785c0f89
14,051
py
Python
labtoys/Tektronix/MSO5x.py
ppudo/labtoys_python
c8ca27637602b8aac0574e92da370a4a97e9fcad
[ "MIT" ]
null
null
null
labtoys/Tektronix/MSO5x.py
ppudo/labtoys_python
c8ca27637602b8aac0574e92da370a4a97e9fcad
[ "MIT" ]
null
null
null
labtoys/Tektronix/MSO5x.py
ppudo/labtoys_python
c8ca27637602b8aac0574e92da370a4a97e9fcad
[ "MIT" ]
null
null
null
#MSO5x.py # Created on: 2020.11.18 # Author: ppudo # e-mail: ppudo@outlook.com # # Project: labtoys # Description: Class representing Tektronix MSO5 osciloscope series # # # Changelog: # -2021.11.18 version: 0.1.0 # - Initial class # #------------------------------------------------...
50.725632
153
0.38951
e91d0411a8febadb09ca20268e15414ccded8163
1,543
py
Python
pedurma/proofreading.py
Esukhia/pedurma
334b5957db30f514d396bd9defc9e9381f5b290b
[ "MIT" ]
null
null
null
pedurma/proofreading.py
Esukhia/pedurma
334b5957db30f514d396bd9defc9e9381f5b290b
[ "MIT" ]
null
null
null
pedurma/proofreading.py
Esukhia/pedurma
334b5957db30f514d396bd9defc9e9381f5b290b
[ "MIT" ]
1
2021-11-04T07:04:05.000Z
2021-11-04T07:04:05.000Z
from pedurma.pecha import ProofreadNotePage from pedurma.utils import from_yaml
35.068182
116
0.706416
e91e11b03c50d75698f208a10f1b310af5a8ffcc
4,043
py
Python
authors/apps/articles/tests/test_likes_dislikes.py
andela/ah-backend-prime
0708463d4565a4977a5a5dcb839f1dfed52fdc90
[ "BSD-3-Clause" ]
1
2019-09-19T14:30:05.000Z
2019-09-19T14:30:05.000Z
authors/apps/articles/tests/test_likes_dislikes.py
e-ian/authors-haven-frontend
05829c8088ca49ef2cf0863dc87ec55b44b13534
[ "BSD-3-Clause" ]
22
2019-03-25T16:10:53.000Z
2022-03-11T23:44:21.000Z
authors/apps/articles/tests/test_likes_dislikes.py
e-ian/authors-haven-frontend
05829c8088ca49ef2cf0863dc87ec55b44b13534
[ "BSD-3-Clause" ]
6
2019-03-25T09:39:39.000Z
2021-03-11T23:54:12.000Z
import json from rest_framework import status, response from django.urls import reverse from .base import ArticlesBaseTest from .test_data import VALID_ARTICLE from authors.apps.authentication.tests.test_data import ( VALID_USER_DATA ) from rest_framework.test import APIClient, APITestCase from .base import BaseTes...
33.97479
71
0.623547