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
331716acfd5f9717ca8ca44120a0bc65248ee1dc
6,108
py
Python
tfx/experimental/pipeline_testing/pipeline_recorder_utils_test.py
Anon-Artist/tfx
2692c9ab437d76b5d9517996bfe2596862e0791d
[ "Apache-2.0" ]
2
2021-05-10T21:39:48.000Z
2021-11-17T11:24:29.000Z
tfx/experimental/pipeline_testing/pipeline_recorder_utils_test.py
Anon-Artist/tfx
2692c9ab437d76b5d9517996bfe2596862e0791d
[ "Apache-2.0" ]
1
2021-01-28T13:44:51.000Z
2021-04-28T16:15:47.000Z
tfx/experimental/pipeline_testing/pipeline_recorder_utils_test.py
Anon-Artist/tfx
2692c9ab437d76b5d9517996bfe2596862e0791d
[ "Apache-2.0" ]
1
2021-01-28T13:41:51.000Z
2021-01-28T13:41:51.000Z
# Lint as: python3 # Copyright 2020 Google LLC. 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 ...
40.184211
77
0.708906
5,080
0.831696
0
0
3,185
0.521447
0
0
1,746
0.285855
331719a2a5a244761348d8660d5c741b1f74d90f
2,921
py
Python
tests/test1.py
pedroramaciotti/Cloudtropy
bce1cc1cd6c5217ac20cf5a98491d10c6a8905b2
[ "MIT" ]
null
null
null
tests/test1.py
pedroramaciotti/Cloudtropy
bce1cc1cd6c5217ac20cf5a98491d10c6a8905b2
[ "MIT" ]
null
null
null
tests/test1.py
pedroramaciotti/Cloudtropy
bce1cc1cd6c5217ac20cf5a98491d10c6a8905b2
[ "MIT" ]
1
2021-03-10T14:04:04.000Z
2021-03-10T14:04:04.000Z
import numpy as np import matplotlib.pyplot as plt from mpl_toolkits import mplot3d # from scipy.stats import entropy import sys sys.path.append('../') import cloudtropy # data gen_dim = 2 gen_N = 300 lims = (-2,6) scale = 0.2 X = np.random.uniform(low=lims[0],high=lims[1],size=(10000,2)) # background X = np.co...
27.819048
94
0.680589
0
0
0
0
0
0
0
0
702
0.240329
331856b5e0304e7640fa3195b77c52b4c37b9bf8
3,238
py
Python
uncertainty_wizard/models/ensemble_utils/_callables.py
p1ndsvin/uncertainty-wizard
92a7a9bcb411e512cf6ad54e7ba226a3c66d3583
[ "MIT" ]
33
2020-12-21T20:21:21.000Z
2022-03-25T17:51:36.000Z
uncertainty_wizard/models/ensemble_utils/_callables.py
swb19/uncertainty-wizard
5ba9bfc6ee967eb5f226abbedb6f9d5452b3cfea
[ "MIT" ]
83
2020-12-18T18:18:28.000Z
2022-03-28T21:17:29.000Z
uncertainty_wizard/models/ensemble_utils/_callables.py
swb19/uncertainty-wizard
5ba9bfc6ee967eb5f226abbedb6f9d5452b3cfea
[ "MIT" ]
5
2021-02-13T13:27:48.000Z
2021-12-25T16:45:19.000Z
import gc from dataclasses import dataclass from typing import Dict, Tuple, Union import numpy as np import tensorflow as tf @dataclass class DataLoadedPredictor: """ The default task to be executed for predictions where the input data is a numpy array. Leaves the serialization and deserialization of the...
34.817204
103
0.652254
3,084
0.95244
0
0
3,106
0.959234
0
0
863
0.266523
3318dead767f04f859f302ca3cf27d38474b142d
5,739
py
Python
venv/Lib/site-packages/PyQt4/examples/designer/calculatorform/ui_calculatorform.py
prateekfxtd/ns_Startup
095a62b3a8c7bf0ff7b767355d57d993bbd2423d
[ "MIT" ]
1
2022-03-16T02:10:30.000Z
2022-03-16T02:10:30.000Z
venv/Lib/site-packages/PyQt4/examples/designer/calculatorform/ui_calculatorform.py
prateekfxtd/ns_Startup
095a62b3a8c7bf0ff7b767355d57d993bbd2423d
[ "MIT" ]
null
null
null
venv/Lib/site-packages/PyQt4/examples/designer/calculatorform/ui_calculatorform.py
prateekfxtd/ns_Startup
095a62b3a8c7bf0ff7b767355d57d993bbd2423d
[ "MIT" ]
2
2019-05-28T11:58:59.000Z
2020-09-23T17:21:19.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'calculatorform.ui' # # Created: Mon Jan 23 13:21:45 2006 # by: PyQt4 UI code generator vsnapshot-20060120 # # WARNING! All changes made in this file will be lost! import sys from PyQt4 import QtCore, QtGui class Ui_CalculatorForm(obje...
47.429752
343
0.699076
5,446
0.948946
0
0
0
0
0
0
575
0.100192
33190b249bfea8e389858313a9b36fc7c3e017ce
1,605
py
Python
ggtools/gg/static_models.py
richannan/GGTOOLS
7909da988d90de50c82532d97121a3fbcfc0263a
[ "MIT" ]
22
2019-12-16T01:30:29.000Z
2022-03-01T08:57:07.000Z
ggtools/gg/static_models.py
richannan/GGTOOLS
7909da988d90de50c82532d97121a3fbcfc0263a
[ "MIT" ]
3
2019-12-23T14:09:30.000Z
2022-03-29T01:52:53.000Z
ggtools/gg/static_models.py
richannan/GGTOOLS
7909da988d90de50c82532d97121a3fbcfc0263a
[ "MIT" ]
13
2019-12-19T07:01:19.000Z
2022-03-14T11:26:36.000Z
from os import path,makedirs from urllib.request import urlretrieve def static_download(model): ''' Download static gravity modle from icgem.gfz-potsdam.de; if the file to be downloaded is already included in the download directory, the download is automatically skipped. Usage: static_download('...
38.214286
175
0.688474
0
0
0
0
0
0
0
0
1,111
0.692212
33199afda7e088eef8462e491f6d52a8646c9666
5,259
py
Python
Python/linprog/simplex.py
bashardudin/LinearPrograms
24b67171cd5bbf407db47f2adb5150ab71d88143
[ "CC0-1.0" ]
22
2016-10-20T14:04:48.000Z
2020-03-31T08:45:14.000Z
Python/linprog/simplex.py
bashardudin/LinearPrograms
24b67171cd5bbf407db47f2adb5150ab71d88143
[ "CC0-1.0" ]
2
2018-06-04T01:30:01.000Z
2018-10-09T08:18:10.000Z
Python/linprog/simplex.py
bashardudin/LinearPrograms
24b67171cd5bbf407db47f2adb5150ab71d88143
[ "CC0-1.0" ]
2
2016-10-26T21:19:58.000Z
2018-03-17T19:28:15.000Z
#!/usr/bin/env python # _*_ encoding: utf-8 _*_ """simplex.py: Simplex algorithm with rational coefficients""" import numpy as np import fractions as frac __author__ = "Bashar Dudin" __email__ = "[email protected]" class RestrictedSimplex(object): def __init__(self, leaving_index=None, entering_index=None...
34.827815
117
0.535463
5,031
0.956646
0
0
0
0
0
0
1,483
0.281993
331c51cf21a7edb8c933a3fa13b75a18b05760cc
3,919
py
Python
openverse_catalog/dags/common/loader/smithsonian_unit_codes.py
yavik-kapadia/openverse-catalog
853766f2176a96450f456a9fd6675e134c0866e1
[ "MIT" ]
25
2021-05-06T20:53:45.000Z
2022-03-30T23:18:50.000Z
openverse_catalog/dags/common/loader/smithsonian_unit_codes.py
yavik-kapadia/openverse-catalog
853766f2176a96450f456a9fd6675e134c0866e1
[ "MIT" ]
272
2021-05-17T05:53:00.000Z
2022-03-31T23:57:20.000Z
openverse_catalog/dags/common/loader/smithsonian_unit_codes.py
yavik-kapadia/openverse-catalog
853766f2176a96450f456a9fd6675e134c0866e1
[ "MIT" ]
13
2021-06-12T07:09:06.000Z
2022-03-29T17:39:13.000Z
""" This program helps identify smithsonian unit codes which are not yet added to the smithsonian sub-provider dictionary """ import logging from textwrap import dedent import requests from airflow.providers.postgres.hooks.postgres import PostgresHook from common.loader import provider_details as prov from providers....
29.02963
88
0.661393
0
0
0
0
0
0
0
0
1,632
0.416433
331c64b5688bf0f03e29dded9df8fd3ced9edae7
461
py
Python
tests/programs/misc/causality_1.py
astraldawn/pylps
e9964a24bb38657b180d441223b4cdb9e1dadc8a
[ "MIT" ]
1
2018-05-19T18:28:12.000Z
2018-05-19T18:28:12.000Z
tests/programs/misc/causality_1.py
astraldawn/pylps
e9964a24bb38657b180d441223b4cdb9e1dadc8a
[ "MIT" ]
12
2018-04-26T00:58:11.000Z
2018-05-13T22:03:39.000Z
tests/programs/misc/causality_1.py
astraldawn/pylps
e9964a24bb38657b180d441223b4cdb9e1dadc8a
[ "MIT" ]
null
null
null
from pylps.core import * initialise(max_time=2) create_fluents('test(_, _)') create_actions('hello(_, _)') create_variables('Person', 'Years', 'NewYears', 'OldYears',) initially(test('A', 0),) reactive_rule(True).then( hello('A', 5), ) hello(Person, Years).initiates(test(Person, NewYears)).iff( test(Perso...
18.44
60
0.704989
0
0
0
0
0
0
0
0
66
0.143167
331d90c240056dc40d2894ad9cce53ebe9c791c5
4,001
py
Python
gdrivefs-0.14.9-py3.6.egg/gdrivefs/utility.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
gdrivefs-0.14.9-py3.6.egg/gdrivefs/utility.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
gdrivefs-0.14.9-py3.6.egg/gdrivefs/utility.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
import logging import json import re import sys import gdrivefs.conf _logger = logging.getLogger(__name__) # TODO(dustin): Make these individual functions. class _DriveUtility(object): """General utility functions loosely related to GD.""" # # Mime-types to translate to, if they appear within the "exportLi...
33.90678
101
0.579355
3,812
0.952762
0
0
0
0
0
0
2,541
0.635091
331dc380a0542f7715a2dea44ae9eaa75a2bf837
193
py
Python
RecoLocalCalo/HGCalRecProducers/python/HeterogeneousHEBRecHitGPUtoSoA_cfi.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
RecoLocalCalo/HGCalRecProducers/python/HeterogeneousHEBRecHitGPUtoSoA_cfi.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
RecoLocalCalo/HGCalRecProducers/python/HeterogeneousHEBRecHitGPUtoSoA_cfi.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms HEBRecHitGPUtoSoAProd = cms.EDProducer('HEBRecHitGPUtoSoA', HEBRecHitGPUTok = cms.InputTag('HEBRecHitGPUProd'))
38.6
90
0.663212
0
0
0
0
0
0
0
0
37
0.19171
331e3f8204325c6090e303bc0901d2d064d5cbe9
4,987
py
Python
net/data_formatter.py
lhq1/legal-predicetion
0919732d9aecba17630a3dcaedd3611ca990010c
[ "MIT" ]
null
null
null
net/data_formatter.py
lhq1/legal-predicetion
0919732d9aecba17630a3dcaedd3611ca990010c
[ "MIT" ]
null
null
null
net/data_formatter.py
lhq1/legal-predicetion
0919732d9aecba17630a3dcaedd3611ca990010c
[ "MIT" ]
null
null
null
import os import json import torch import random import numpy as np from net.loader import accusation_dict, accusation_list, law_dict, law_list from net.loader import get_num_classes def check_crit(data): cnt = 0 for x in data: if x in accusation_dict.keys(): cnt += 1 else: ...
23.413146
80
0.55384
0
0
0
0
0
0
0
0
423
0.084821
331f06145206acb198e0044dbd6333cd441dd2cf
1,073
py
Python
doc/programming/parts/python-columninfo.py
laigor/sqlrelay-non-english-fixes-
7803f862ddbf88bca078c50d621c64c22fc0a405
[ "PHP-3.01", "CC-BY-3.0" ]
16
2018-04-23T09:58:33.000Z
2022-01-31T13:40:20.000Z
doc/programming/parts/python-columninfo.py
laigor/sqlrelay-non-english-fixes-
7803f862ddbf88bca078c50d621c64c22fc0a405
[ "PHP-3.01", "CC-BY-3.0" ]
null
null
null
doc/programming/parts/python-columninfo.py
laigor/sqlrelay-non-english-fixes-
7803f862ddbf88bca078c50d621c64c22fc0a405
[ "PHP-3.01", "CC-BY-3.0" ]
4
2020-12-23T12:17:54.000Z
2022-01-04T20:46:34.000Z
from SQLRelay import PySQLRClient con=PySQLRClient.sqlrconnection('sqlrserver',9000,'/tmp/example.socket','user','password',0,1) cur=PySQLRClient.sqlrcursor(con) cur.sendQuery('select * from my_table') con.endSession() for i in range(0,cur.colCount()-1): print 'Name: ', cur.getColumnName(i) ...
44.708333
94
0.629077
0
0
0
0
0
0
0
0
311
0.289842
3320a3f0ba332b35fac7f43f483b6bf56fe80c12
1,394
py
Python
showdownai/naive_bayes.py
AM22/Pokemon-AI
4cd29eb880981613158db0055179f4395c5599e3
[ "MIT" ]
null
null
null
showdownai/naive_bayes.py
AM22/Pokemon-AI
4cd29eb880981613158db0055179f4395c5599e3
[ "MIT" ]
null
null
null
showdownai/naive_bayes.py
AM22/Pokemon-AI
4cd29eb880981613158db0055179f4395c5599e3
[ "MIT" ]
null
null
null
import json from data import MOVE_CORRECTIONS, correct_mega def get_moves(poke, known_moves, graph, data, alpha=1.0): poke = correct_mega(poke) co = graph['cooccurences'] freq = graph['frequencies'] probs = {} if len(known_moves) == 0: probs = get_freqs(poke, freq) else: for move...
33.190476
73
0.559541
0
0
0
0
0
0
0
0
43
0.030846
3321631f6d51317e5fd544639735a47e50542ab6
11,369
py
Python
AppDB/appscale/datastore/fdb/transactions.py
obino/appscale
be17e5f658d7b42b5aa7eeb7a5ddd4962f3ea82f
[ "Apache-2.0" ]
1
2017-04-07T15:33:35.000Z
2017-04-07T15:33:35.000Z
AppDB/appscale/datastore/fdb/transactions.py
obino/appscale
be17e5f658d7b42b5aa7eeb7a5ddd4962f3ea82f
[ "Apache-2.0" ]
1
2016-10-27T17:23:54.000Z
2016-10-27T17:23:54.000Z
AppDB/appscale/datastore/fdb/transactions.py
obino/appscale
be17e5f658d7b42b5aa7eeb7a5ddd4962f3ea82f
[ "Apache-2.0" ]
null
null
null
""" This module stores and retrieves datastore transaction metadata. The TransactionManager is the main interface that clients can use to interact with the transaction layer. See its documentation for implementation details. """ from __future__ import division import logging import math import random import sys from c...
36.79288
79
0.723371
10,458
0.91987
2,844
0.250154
3,168
0.278652
0
0
2,152
0.189287
3321f706d02f1fdbc011b2d0a28c18fa45d4fe4b
810
py
Python
Line_chart.py
sanabasangare/data-visualization
09a03d0414941d28e312037ccaa0b283dbb2ec06
[ "MIT" ]
null
null
null
Line_chart.py
sanabasangare/data-visualization
09a03d0414941d28e312037ccaa0b283dbb2ec06
[ "MIT" ]
null
null
null
Line_chart.py
sanabasangare/data-visualization
09a03d0414941d28e312037ccaa0b283dbb2ec06
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from collections import Counter def line_graph(plt): # years observed since 2000 years = [2000, 2002, 2005, 2007, 2010, 2012, 2014, 2015] # total number of websites on the world wide web # (source: Internet Live Stats) websites = [17, 38, 64, 121, 206, 697, 968, 8...
24.545455
79
0.650617
0
0
0
0
0
0
0
0
347
0.428395
3322558b16b9e4d86a91248106c527a75ff6b943
2,350
py
Python
miyamoto/test/mocks.py
caedesvvv/miyamoto
d781dffeb0b2af3ce679f13114f47e6965d1cdb1
[ "MIT" ]
1
2015-01-20T17:32:19.000Z
2015-01-20T17:32:19.000Z
miyamoto/test/mocks.py
caedesvvv/miyamoto
d781dffeb0b2af3ce679f13114f47e6965d1cdb1
[ "MIT" ]
null
null
null
miyamoto/test/mocks.py
caedesvvv/miyamoto
d781dffeb0b2af3ce679f13114f47e6965d1cdb1
[ "MIT" ]
null
null
null
from twisted.web import server, resource class MockSubscriber(resource.Resource): isLeaf = True def render_GET(self, request): if request.path.endswith('/callback'): return request.args.get('hub.challenge', [''])[0] else: return "Huh?" class MockPublisher(...
33.098592
80
0.625106
2,297
0.977447
0
0
0
0
0
0
1,781
0.757872
332383050871a4f49b30722483065061b8a0db71
1,901
py
Python
covid19/data.py
edupenabad/covid-19-notebooks
0b68c12c3f4e36c42476fef15a769326cb0c3d38
[ "Apache-2.0" ]
null
null
null
covid19/data.py
edupenabad/covid-19-notebooks
0b68c12c3f4e36c42476fef15a769326cb0c3d38
[ "Apache-2.0" ]
null
null
null
covid19/data.py
edupenabad/covid-19-notebooks
0b68c12c3f4e36c42476fef15a769326cb0c3d38
[ "Apache-2.0" ]
null
null
null
import pathlib import numpy as np import pandas as pd import requests DATA_REPOS = { "world": { "url": "https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master", "streams": { "deaths": "{url}/csse_covid_19_data/csse_covid_19_time_series/time_series_19-covid-Deaths.csv" ...
33.946429
114
0.579695
0
0
0
0
0
0
0
0
634
0.333509
3324e48df6cb45bfb982f9754f04ae47cbd3bffa
7,484
py
Python
util/utils.py
choyoungjung/xray-align-AR
18847c01008fe5a53bbdea5915a1a4e84e7c7f22
[ "MIT" ]
null
null
null
util/utils.py
choyoungjung/xray-align-AR
18847c01008fe5a53bbdea5915a1a4e84e7c7f22
[ "MIT" ]
null
null
null
util/utils.py
choyoungjung/xray-align-AR
18847c01008fe5a53bbdea5915a1a4e84e7c7f22
[ "MIT" ]
1
2022-02-23T06:45:04.000Z
2022-02-23T06:45:04.000Z
from __future__ import print_function import random from torch.autograd import Variable import torch from PIL import Image import numpy as np import math import os import cv2 ''' Code from https://github.com/ycszen/pytorch-seg/blob/master/transform.py Modified so it complies with the Cityscape label map...
34.971963
102
0.568813
1,623
0.216863
0
0
0
0
0
0
879
0.117451
33257a0af8469e27f7a0ccf12276dbf023a6e9b0
276
py
Python
pythonx/lints/vim/vint.py
maralla/validator.vim
fd5ec0891cbd035bd572e74d684b8afd852b87bf
[ "MIT" ]
255
2016-09-08T12:12:26.000Z
2022-03-10T01:50:06.000Z
pythonx/lints/vim/vint.py
maralla/vim-fixup
fd5ec0891cbd035bd572e74d684b8afd852b87bf
[ "MIT" ]
56
2016-09-09T05:53:24.000Z
2020-11-11T16:02:05.000Z
pythonx/lints/vim/vint.py
maralla/vim-linter
fd5ec0891cbd035bd572e74d684b8afd852b87bf
[ "MIT" ]
23
2016-09-09T13:37:51.000Z
2019-04-08T22:31:24.000Z
# -*- coding: utf-8 -*- from validator import Validator class VimVint(Validator): __filetype__ = 'vim' checker = 'vint' args = '-w --no-color' regex = r""" .+?: (?P<lnum>\d+): (?P<col>\d+): \s(?P<text>.+)"""
17.25
31
0.434783
216
0.782609
0
0
0
0
0
0
153
0.554348
33269c8198e5473d3ddda4bf83fff9637afee268
1,793
py
Python
src/graph2.py
gpu0/nnGraph
ae68af41804ce95dd4dbd6deeea57e377915acc9
[ "MIT" ]
null
null
null
src/graph2.py
gpu0/nnGraph
ae68af41804ce95dd4dbd6deeea57e377915acc9
[ "MIT" ]
null
null
null
src/graph2.py
gpu0/nnGraph
ae68af41804ce95dd4dbd6deeea57e377915acc9
[ "MIT" ]
null
null
null
# t = 2 * (x*y + max(z,w)) class Num: def __init__(self, val): self.val = val def forward(self): return self.val def backward(self, val): print val class Mul: def __init__(self, left, right): self.left = left self.right = right def forward(self): sel...
25.985507
57
0.572783
1,551
0.865031
0
0
0
0
0
0
36
0.020078
3327097fad25f8089f5aa779974b776188cc2bb0
2,599
py
Python
skeleton_video.py
ashish1sasmal/Human-Skeleton-Estimation
290cde92191b2b6b0c28189667851119f5ca564d
[ "MIT" ]
null
null
null
skeleton_video.py
ashish1sasmal/Human-Skeleton-Estimation
290cde92191b2b6b0c28189667851119f5ca564d
[ "MIT" ]
null
null
null
skeleton_video.py
ashish1sasmal/Human-Skeleton-Estimation
290cde92191b2b6b0c28189667851119f5ca564d
[ "MIT" ]
null
null
null
# @Author: ASHISH SASMAL <ashish> # @Date: 20-10-2020 # @Last modified by: ashish # @Last modified time: 20-10-2020 import cv2 import numpy as np import time proto = "Models/pose_deploy_linevec_faster_4_stages.prototxt" weights= "Models/pose_iter_160000.caffemodel" net = cv2.dnn.readNetFromCaffe(proto, weights) ...
33.320513
140
0.621008
0
0
0
0
0
0
0
0
587
0.225856
33270a402f92d2ec94e2db647e7c5d239b6f78fe
3,733
py
Python
temboo/core/Library/LittleSis/Relationship/GetOneRelationship.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
7
2016-03-07T02:07:21.000Z
2022-01-21T02:22:41.000Z
temboo/core/Library/LittleSis/Relationship/GetOneRelationship.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
null
null
null
temboo/core/Library/LittleSis/Relationship/GetOneRelationship.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
8
2016-06-14T06:01:11.000Z
2020-04-22T09:21:44.000Z
# -*- coding: utf-8 -*- ############################################################################### # # GetOneRelationship # Retrieves information about any known relationship between two entities in LittleSis according their IDs. # # Python versions 2.6, 2.7, 3.x # # Copyright 2014, Temboo Inc. # # Licensed under...
40.139785
205
0.699437
2,581
0.691401
0
0
0
0
0
0
2,250
0.602732
3327fef21614dc3511498e572fb63b8ff5adf0a3
9,385
py
Python
rec_to_nwb/test/processing/tools/test_beartype.py
jihyunbak/rec_to_nwb
6e65f8bf0a4faa4d986483ec2442ba19d70c92a9
[ "Apache-2.0" ]
8
2020-05-29T13:48:35.000Z
2021-11-19T04:24:48.000Z
rec_to_nwb/test/processing/tools/test_beartype.py
jihyunbak/rec_to_nwb
6e65f8bf0a4faa4d986483ec2442ba19d70c92a9
[ "Apache-2.0" ]
12
2020-11-13T01:36:32.000Z
2022-01-23T20:35:55.000Z
rec_to_nwb/test/processing/tools/test_beartype.py
jihyunbak/rec_to_nwb
6e65f8bf0a4faa4d986483ec2442ba19d70c92a9
[ "Apache-2.0" ]
3
2020-10-20T06:52:45.000Z
2021-07-06T23:00:53.000Z
#!/usr/bin/env python3 """ `py.test`-driven unit test suite for the `@beartype` decorator, implementing a rudimentary subset of PEP 484-style type checking based on Python 3.x function annotations. Usage ---------- These tests assume the `@beartype` decorator and all utility functions (e.g., `_check_type_annotation()...
36.235521
84
0.613213
8,548
0.910815
0
0
1,707
0.181886
0
0
5,052
0.538306
332899d38b421fab9695a008493c81d6890c2e39
2,114
py
Python
var/spack/repos/builtin/packages/jemalloc/package.py
ilagunap/spack
510f869c3ae8ac2721debd29e98076212ee75852
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2018-11-16T02:42:57.000Z
2019-06-06T19:18:50.000Z
var/spack/repos/builtin/packages/jemalloc/package.py
ilagunap/spack
510f869c3ae8ac2721debd29e98076212ee75852
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
18
2021-03-12T16:22:58.000Z
2022-03-02T17:07:08.000Z
var/spack/repos/builtin/packages/jemalloc/package.py
ilagunap/spack
510f869c3ae8ac2721debd29e98076212ee75852
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Jemalloc(AutotoolsPackage): """jemalloc is a general purpose malloc(3) implementation that...
44.041667
100
0.726585
1,893
0.895459
0
0
0
0
0
0
1,316
0.622517
33299ffe9a3bcae73b7f087adb90f942699dff82
466
py
Python
ABC/abc051-abc100/abc093/b.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
2
2020-06-12T09:54:23.000Z
2021-05-04T01:34:07.000Z
ABC/abc051-abc100/abc093/b.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
961
2020-06-23T07:26:22.000Z
2022-03-31T21:34:52.000Z
ABC/abc051-abc100/abc093/b.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
null
null
null
'''input 4 8 3 4 5 6 7 8 3 8 2 3 4 7 8 2 9 100 2 3 4 5 6 7 8 9 ''' # -*- coding: utf-8 -*- # AtCoder Beginner Contest # Problem B if __name__ == '__main__': a, b, k = list(map(int, input().split())) if (b - a + 1) <= 2 * k: for i in range(a, b + 1): ...
10.590909
46
0.401288
0
0
0
0
0
0
0
0
168
0.360515
332b0f0138c11f0eed41ed393577248e868d822b
5,104
py
Python
examples/python/qiskit_integration.py
CQCL/pytket
44fa95eb060afc8c45598f89afda993aa2d06634
[ "Apache-2.0" ]
249
2018-07-20T03:04:52.000Z
2022-03-31T08:45:58.000Z
examples/python/qiskit_integration.py
CQCL/pytket
44fa95eb060afc8c45598f89afda993aa2d06634
[ "Apache-2.0" ]
67
2018-08-03T09:38:15.000Z
2022-03-22T09:39:45.000Z
examples/python/qiskit_integration.py
CQCL/pytket
44fa95eb060afc8c45598f89afda993aa2d06634
[ "Apache-2.0" ]
69
2019-02-26T15:15:30.000Z
2022-03-15T14:47:24.000Z
# # Integrating `pytket` into Qiskit software # In this tutorial, we will focus on: # - Using `pytket` for compilation or providing devices/simulators within Qiskit workflows; # - Adapting Qiskit code to use `pytket` directly. # This example assumes some familiarity with the Qiskit algorithms library. We have chosen ...
61.493976
552
0.788009
0
0
0
0
0
0
0
0
3,662
0.717476
332bc827b9397befa3b3df403d9170657a773ac3
2,372
py
Python
Cura/Cura/plugins/VersionUpgrade/VersionUpgrade34to35/__init__.py
TIAO-JI-FU/3d-printing-with-moveo-1
100ecfd1208fe1890f8bada946145d716b2298eb
[ "MIT" ]
null
null
null
Cura/Cura/plugins/VersionUpgrade/VersionUpgrade34to35/__init__.py
TIAO-JI-FU/3d-printing-with-moveo-1
100ecfd1208fe1890f8bada946145d716b2298eb
[ "MIT" ]
null
null
null
Cura/Cura/plugins/VersionUpgrade/VersionUpgrade34to35/__init__.py
TIAO-JI-FU/3d-printing-with-moveo-1
100ecfd1208fe1890f8bada946145d716b2298eb
[ "MIT" ]
null
null
null
# Copyright (c) 2018 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. from typing import Any, Dict, TYPE_CHECKING from . import VersionUpgrade34to35 if TYPE_CHECKING: from UM.Application import Application upgrade = VersionUpgrade34to35.VersionUpgrade34to35() def getMetaData() -> Dict...
38.258065
111
0.52403
0
0
0
0
0
0
0
0
777
0.327572
332c81f4c480a3b1d74e9ed525d3b78c37420632
8,717
py
Python
xos/synchronizer/pull_steps/test_pull_olts.py
iecedge/olt-service
0aac847ca228f2c20a2b57c783a414f185a0116c
[ "Apache-2.0" ]
null
null
null
xos/synchronizer/pull_steps/test_pull_olts.py
iecedge/olt-service
0aac847ca228f2c20a2b57c783a414f185a0116c
[ "Apache-2.0" ]
null
null
null
xos/synchronizer/pull_steps/test_pull_olts.py
iecedge/olt-service
0aac847ca228f2c20a2b57c783a414f185a0116c
[ "Apache-2.0" ]
null
null
null
# Copyright 2017-present Open Networking Foundation # # 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 agr...
39.265766
110
0.609958
7,898
0.906046
0
0
5,034
0.577492
0
0
2,394
0.274636
332ca6164e5d6ccaf3d86265c927173981639004
4,005
py
Python
src/embedding/triple2vec.py
MengtingWan/grocery
d9401418915a481dcd4be1f0be2cad238e8cc00e
[ "Apache-2.0" ]
46
2019-01-24T19:48:19.000Z
2022-03-22T22:16:55.000Z
src/embedding/triple2vec.py
MengtingWan/grocery
d9401418915a481dcd4be1f0be2cad238e8cc00e
[ "Apache-2.0" ]
2
2019-11-05T19:55:57.000Z
2021-04-01T12:15:13.000Z
src/embedding/triple2vec.py
MengtingWan/grocery
d9401418915a481dcd4be1f0be2cad238e8cc00e
[ "Apache-2.0" ]
17
2019-03-30T02:45:59.000Z
2021-12-30T00:56:02.000Z
import tensorflow as tf from embedding.learner import Model from embedding.sampler import Sampler import sys class triple2vec(Model): def __init__(self, DATA_NAME, HIDDEN_DIM, LEARNING_RATE, BATCH_SIZE, N_NEG, MAX_EPOCH=500, N_SAMPLE_PER_EPOCH=None): super().__init__('triple2vec', DATA_NAME, HIDDEN_DI...
48.253012
132
0.604494
3,887
0.970537
0
0
0
0
0
0
212
0.052934
332ec3ad83ab42693d9db460bc909a8573da26d4
1,210
py
Python
src/model/synapses/numba_backend/VoltageJump.py
Fassial/pku-intern
4463e7d5a5844c8002f7e3d01b4fadc3a20e2038
[ "MIT" ]
null
null
null
src/model/synapses/numba_backend/VoltageJump.py
Fassial/pku-intern
4463e7d5a5844c8002f7e3d01b4fadc3a20e2038
[ "MIT" ]
null
null
null
src/model/synapses/numba_backend/VoltageJump.py
Fassial/pku-intern
4463e7d5a5844c8002f7e3d01b4fadc3a20e2038
[ "MIT" ]
null
null
null
""" Created on 12:39, June. 4th, 2021 Author: fassial Filename: VoltageJump.py """ import brainpy as bp __all__ = [ "VoltageJump", ] class VoltageJump(bp.TwoEndConn): target_backend = ['numpy', 'numba', 'numba-parallel', 'numba-cuda'] def __init__(self, pre, post, conn, weight = 1., delay = 0., *...
26.304348
79
0.566116
1,069
0.883471
0
0
0
0
0
0
228
0.18843
3330488f0dd33b218d18cd27c32030cf62e1cdf9
9,041
py
Python
bns.py
amansrivastava17/bns-short-text-similarity
fde1761bf24cc7e90eb53bce4419ccf882d11817
[ "MIT" ]
22
2018-06-14T13:50:12.000Z
2022-01-04T16:52:01.000Z
bns.py
amansrivastava17/bns-vectorizer-text-classification
fde1761bf24cc7e90eb53bce4419ccf882d11817
[ "MIT" ]
null
null
null
bns.py
amansrivastava17/bns-vectorizer-text-classification
fde1761bf24cc7e90eb53bce4419ccf882d11817
[ "MIT" ]
4
2018-08-31T05:36:40.000Z
2020-10-10T08:57:14.000Z
# coding=utf-8 from collections import Counter, namedtuple from scipy.sparse import csr_matrix from scipy.stats import norm import numpy as np import math from nlp_utils import ngrams class BNS: """Bi-normal Separation is a popular method to score textual data importance against its belonging category, it c...
41.095455
120
0.574162
8,854
0.9791
0
0
2,011
0.222382
0
0
3,649
0.403517
33310d445d44da6d57d70c0d985520626d8989bd
1,473
py
Python
scrape.py
ilemhadri/fb_messenger
c5da22ec40e0caa4c11236016226e258bf181c64
[ "MIT" ]
11
2018-11-18T18:16:13.000Z
2022-02-07T14:14:33.000Z
scrape.py
ilemhadri/fb_messenger
c5da22ec40e0caa4c11236016226e258bf181c64
[ "MIT" ]
1
2021-01-16T16:54:14.000Z
2021-01-17T09:28:34.000Z
scrape.py
ilemhadri/fb_messenger
c5da22ec40e0caa4c11236016226e258bf181c64
[ "MIT" ]
10
2019-02-28T18:01:51.000Z
2022-03-24T16:43:57.000Z
import os import sys from collections import defaultdict import datetime import pickle import re import time import json from selenium import webdriver def main(): driver = webdriver.Chrome() # Optional argument, if not specified will search path. #load login cookie driver.get('https://www.messenger.com') ...
30.061224
87
0.663951
0
0
0
0
0
0
0
0
559
0.379498
33319c7108f2f54f95e8dca0a5199386d7358140
2,760
py
Python
cfgs/config.py
Pandinosaurus/yolo2-pytorch
f046769ea157e6d57579c67dcef62fdd3b71111e
[ "MIT" ]
1,663
2017-02-25T02:09:58.000Z
2022-03-31T07:18:30.000Z
cfgs/config.py
Guroto/yolo2-pytorch
17056ca69f097a07884135d9031c53d4ef217a6a
[ "MIT" ]
115
2017-03-04T12:26:49.000Z
2022-01-06T04:02:44.000Z
cfgs/config.py
Guroto/yolo2-pytorch
17056ca69f097a07884135d9031c53d4ef217a6a
[ "MIT" ]
492
2017-02-28T20:09:14.000Z
2022-03-18T21:25:10.000Z
import os from .config_voc import * # noqa from .exps.darknet19_exp1 import * # noqa def mkdir(path, max_depth=3): parent, child = os.path.split(path) if not os.path.exists(parent) and max_depth > 1: mkdir(parent, max_depth-1) if not os.path.exists(path): os.mkdir(path) # input and ou...
33.253012
73
0.537681
0
0
0
0
0
0
0
0
342
0.123913
3334965719b021bbd03119042e95c8563a0cdb7e
9,233
py
Python
tests.py
jpchiodini/Grasp-Planning
e31234244b8f934743605ebea59d9d98a258957e
[ "MIT" ]
null
null
null
tests.py
jpchiodini/Grasp-Planning
e31234244b8f934743605ebea59d9d98a258957e
[ "MIT" ]
null
null
null
tests.py
jpchiodini/Grasp-Planning
e31234244b8f934743605ebea59d9d98a258957e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ tests.py ======== Created by: hbldh <[email protected]> Created on: 2016-02-07, 23:50 """ from __future__ import division from __future__ import print_function from __future__ import unicode_literals from __future__ import absolute_import import numpy as np...
58.069182
120
0.552475
0
0
0
0
0
0
0
0
148
0.016029
3334b81c461f0f87292473253147e7b45b17a48f
1,705
py
Python
scripts/wsi_bot_show_regions.py
higex/qpath
0377f2fdadad6e02ecde8ba2557fe9b957280fa1
[ "MIT" ]
6
2017-03-18T19:17:42.000Z
2019-05-05T14:57:31.000Z
WSItk/tools/wsi_bot_show_regions.py
vladpopovici/WSItk
02db9dbf1148106a576d7b4dd7965c73607efdae
[ "MIT" ]
null
null
null
WSItk/tools/wsi_bot_show_regions.py
vladpopovici/WSItk
02db9dbf1148106a576d7b4dd7965c73607efdae
[ "MIT" ]
4
2015-11-29T14:47:25.000Z
2019-11-28T03:16:39.000Z
# -*- coding: utf-8 -*- """ SHOW_REGIONS Emphasizes some regions in the image, by decreasing the importance of the rest. @author: vlad """ from __future__ import (absolute_import, division, print_function, unicode_literals) from builtins import * import argparse as opt import skimage.io import numpy as np from uti...
28.898305
106
0.674487
0
0
0
0
0
0
0
0
635
0.372434
3335e848cff8038f4a309c43400a1a6a921170c6
985
py
Python
isomyr/tests/test_thing.py
dave-leblanc/isomyr
2eae8067687408ba48e0a88de97fbd4fe6d57848
[ "BSD-3-Clause" ]
null
null
null
isomyr/tests/test_thing.py
dave-leblanc/isomyr
2eae8067687408ba48e0a88de97fbd4fe6d57848
[ "BSD-3-Clause" ]
null
null
null
isomyr/tests/test_thing.py
dave-leblanc/isomyr
2eae8067687408ba48e0a88de97fbd4fe6d57848
[ "BSD-3-Clause" ]
null
null
null
from unittest import TestCase from isomyr.thing import Thing from isomyr.world.world import Scene class ThingOfThingsRemoveObjectTestCase(TestCase): def setUp(self): self.scene = Scene(0) self.scene.addObject(Thing(name="apple")) self.scene.addObject(Thing(name="orange")) self.sc...
29.848485
59
0.684264
883
0.896447
0
0
0
0
0
0
30
0.030457
33364bb5677f1a9389265f84b5d60907696bc680
492
py
Python
python/consecutive-characters.py
alirezaghey/leetcode-solutions
676b71b4790c64d21af91dce02e97ee47e78d523
[ "MIT" ]
3
2020-10-10T00:14:23.000Z
2022-03-02T21:16:29.000Z
python/consecutive-characters.py
alirezaghey/leetcode-solutions
676b71b4790c64d21af91dce02e97ee47e78d523
[ "MIT" ]
null
null
null
python/consecutive-characters.py
alirezaghey/leetcode-solutions
676b71b4790c64d21af91dce02e97ee47e78d523
[ "MIT" ]
1
2021-09-14T05:16:54.000Z
2021-09-14T05:16:54.000Z
from itertools import groupby class Solution: def maxPower(self, s: str) -> int: return max(len(list(g)) for _, g in groupby(s)) def maxPower2(self, s: str) -> int: best, curr_count, curr_char = 1, 1, s[0] for i in range(1, len(s)): if s[i] == curr_char: ...
28.941176
55
0.487805
462
0.939024
0
0
0
0
0
0
0
0
3339f7cf782a2803830764348c1674b391c59c54
113
py
Python
DigitalMeLib/servers/gedis/GedisProcessManager.py
jdelrue/digital_me
e5c92c405c0cea419ce18d25863f35d1bfe5a428
[ "Apache-2.0" ]
null
null
null
DigitalMeLib/servers/gedis/GedisProcessManager.py
jdelrue/digital_me
e5c92c405c0cea419ce18d25863f35d1bfe5a428
[ "Apache-2.0" ]
72
2018-08-01T06:13:46.000Z
2019-02-01T15:50:20.000Z
DigitalMeLib/servers/gedis/GedisProcessManager.py
jdelrue/digital_me
e5c92c405c0cea419ce18d25863f35d1bfe5a428
[ "Apache-2.0" ]
2
2018-08-05T08:09:13.000Z
2018-11-21T13:11:28.000Z
from jumpscale import j JSBASE = j.application.jsbase_get_class() class GedisProcessManager(JSBASE): pass
14.125
41
0.778761
43
0.380531
0
0
0
0
0
0
0
0
333a76b375064f0b441523ba76ee75b882d55473
4,648
py
Python
lifesaver/bot/exts/health.py
lun-4/lifesaver
e8c4b492490d678db80258f69fce6dc4769fd1d7
[ "MIT" ]
12
2017-12-21T03:44:52.000Z
2021-02-05T02:09:13.000Z
lifesaver/bot/exts/health.py
lun-4/lifesaver
e8c4b492490d678db80258f69fce6dc4769fd1d7
[ "MIT" ]
9
2017-12-21T01:56:07.000Z
2020-12-31T00:01:20.000Z
lifesaver/bot/exts/health.py
lun-4/lifesaver
e8c4b492490d678db80258f69fce6dc4769fd1d7
[ "MIT" ]
2
2017-12-21T01:52:07.000Z
2019-12-17T01:51:50.000Z
# encoding: utf-8 import asyncio import logging import random from typing import Optional, Tuple import discord from discord.ext import commands import lifesaver from lifesaver.utils.formatting import truncate from lifesaver.utils.timing import Timer, format_seconds log = logging.getLogger(__name__) SendVerdict = T...
32.055172
112
0.586274
4,114
0.885112
0
0
3,912
0.841652
3,669
0.789372
958
0.20611
333a9b81c1942bff823966256c44e46de0b7f8db
1,753
py
Python
install/install.py
naztronaut/FCW
e272f29dda54f8a18f9ff533de598bb0bfd29099
[ "MIT" ]
4
2021-01-03T05:54:23.000Z
2021-08-06T19:39:04.000Z
install/install.py
naztronaut/FCW
e272f29dda54f8a18f9ff533de598bb0bfd29099
[ "MIT" ]
4
2020-10-15T17:09:31.000Z
2022-03-26T00:46:48.000Z
install/install.py
naztronaut/FCW
e272f29dda54f8a18f9ff533de598bb0bfd29099
[ "MIT" ]
1
2021-01-17T14:12:43.000Z
2021-01-17T14:12:43.000Z
# install.py # Version: 1.0.0 # Installs dependencies needed for FCW # Author: Nazmus Nasir # Website: https://www.easyprogramming.net import os from shutil import copy2 def install_dependencies(): print("================== Start Installing PIP and venv ==================") os.system("sudo apt install python...
40.767442
95
0.503708
0
0
0
0
0
0
0
0
1,370
0.781517
333dcc9167d75b30415a919b52fe0903e6d5c709
1,453
py
Python
convert-to-loom/convert-to-loom-3.py
mzager/dv-pipelines
3356753cc56a5298bb075f12681f9282d8f08658
[ "MIT" ]
3
2020-02-24T21:08:11.000Z
2020-05-19T18:26:01.000Z
convert-to-loom/convert-to-loom-3.py
mzager/dv-pipelines
3356753cc56a5298bb075f12681f9282d8f08658
[ "MIT" ]
null
null
null
convert-to-loom/convert-to-loom-3.py
mzager/dv-pipelines
3356753cc56a5298bb075f12681f9282d8f08658
[ "MIT" ]
2
2020-01-04T00:23:07.000Z
2020-02-26T17:54:34.000Z
#!/bin/python3 import sys import os import pandas as pd import scanpy as sc import anndata from anndata import AnnData sc.settings.verbosity = 3 # verbosity: errors (0), warnings (1), info (2), hints (3) working_dir = os.getcwd() adata = sc.read(os.path.join(working_dir, 'gene_count.txt'), cache=Tru...
31.586957
94
0.720578
0
0
0
0
0
0
0
0
659
0.453544
333df86277504bde365d69f5650cddd392f0652c
96
py
Python
venv/lib/python3.8/site-packages/poetry/core/_vendor/lark/parsers/earley_forest.py
Retraces/UkraineBot
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/poetry/core/_vendor/lark/parsers/earley_forest.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/poetry/core/_vendor/lark/parsers/earley_forest.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/8f/d6/74/783ee5c7dc6070d67f88eab5cd5dae217fdec6556b8d97a3bd1061e541
96
96
0.895833
0
0
0
0
0
0
0
0
0
0
333f7d3158bfef79ceb32eebbb1b5503f134e870
1,900
py
Python
schedsi/threads/_bg_stat_thread.py
z33ky/schedsi
3affe28a3e1d2001c639d7c0423cb105d1991590
[ "CC0-1.0" ]
1
2017-08-03T12:58:53.000Z
2017-08-03T12:58:53.000Z
schedsi/threads/_bg_stat_thread.py
z33ky/schedsi
3affe28a3e1d2001c639d7c0423cb105d1991590
[ "CC0-1.0" ]
null
null
null
schedsi/threads/_bg_stat_thread.py
z33ky/schedsi
3affe28a3e1d2001c639d7c0423cb105d1991590
[ "CC0-1.0" ]
null
null
null
"""Define the :class:`_BGStatThread`. This should be used in favor of :class:`Thread` for non-worker threads. """ from schedsi.threads.thread import Thread, LOG_INDIVIDUAL import sys class _BGStatThread(Thread): """Base class for threads recording background time.""" def __init__(self, module, tid=None, **...
30.645161
99
0.603684
1,712
0.901053
0
0
0
0
0
0
666
0.350526
333fc7cf7e1820391a570f954460758928bb90e7
753
py
Python
069_totient_maximum.py
fbcom/project-euler
3c2194f797d54a0cc04031cd0be153f6a6f849ad
[ "MIT" ]
null
null
null
069_totient_maximum.py
fbcom/project-euler
3c2194f797d54a0cc04031cd0be153f6a6f849ad
[ "MIT" ]
null
null
null
069_totient_maximum.py
fbcom/project-euler
3c2194f797d54a0cc04031cd0be153f6a6f849ad
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # A Solution to "Totient maximum" – Project Euler Problem No. 69 # by Florian Buetow # # Sourcecode: https://github.com/fbcom/project-euler # Problem statement: https://projecteuler.net/problem=69 def is_prime(n): if n < 2: return False if n == 2: ...
22.818182
95
0.586985
0
0
0
0
0
0
0
0
360
0.476821
334183eb998b219f40fc5f9ed455577122ddc46b
1,401
py
Python
lectures/07-python-dictionaries/examples/gashlycrumb.py
mattmiller899/biosys-analytics
ab24a4c7206ed9a865e896daa57cee3c4e62df1f
[ "MIT" ]
4
2019-01-10T17:12:37.000Z
2019-03-01T18:25:07.000Z
lectures/07-python-dictionaries/examples/gashlycrumb.py
mattmiller899/biosys-analytics
ab24a4c7206ed9a865e896daa57cee3c4e62df1f
[ "MIT" ]
null
null
null
lectures/07-python-dictionaries/examples/gashlycrumb.py
mattmiller899/biosys-analytics
ab24a4c7206ed9a865e896daa57cee3c4e62df1f
[ "MIT" ]
33
2019-01-05T17:03:47.000Z
2019-11-11T20:48:24.000Z
#!/usr/bin/env python3 """dictionary lookup""" import os import sys args = sys.argv[1:] if len(args) != 1: print('Usage: {} LETTER'.format(os.path.basename(sys.argv[0]))) sys.exit(1) letter = args[0].upper() lines = """ A is for Amy who fell down the stairs. B is for Basil assaulted by bears. C is for Clar...
26.942308
67
0.708779
0
0
0
0
0
0
0
0
1,073
0.765882
3341a45cd2bb6b6d1354a60132e865acaaafa2de
762
py
Python
to_nwb/extensions/buzsaki_meta/buzsaki_meta.py
mpompolas/to_nwb
1317f0ee0f4d80dde451d60d8eb5c6a544e214fe
[ "BSD-3-Clause" ]
1
2020-03-31T20:02:01.000Z
2020-03-31T20:02:01.000Z
to_nwb/extensions/buzsaki_meta/buzsaki_meta.py
mpompolas/to_nwb
1317f0ee0f4d80dde451d60d8eb5c6a544e214fe
[ "BSD-3-Clause" ]
2
2020-08-27T18:16:04.000Z
2020-09-08T18:43:34.000Z
to_nwb/extensions/buzsaki_meta/buzsaki_meta.py
mpompolas/to_nwb
1317f0ee0f4d80dde451d60d8eb5c6a544e214fe
[ "BSD-3-Clause" ]
5
2018-04-04T21:27:23.000Z
2019-04-01T13:40:00.000Z
from pynwb import load_namespaces from ..auto_class import get_class, get_multi_container # load custom classes namespace = 'buzsaki_meta' ns_path = namespace + '.namespace.yaml' ext_source = namespace + '.extensions.yaml' load_namespaces(ns_path) BuzSubject = get_class(namespace, 'BuzSubject') Histology = get_class...
34.636364
83
0.804462
0
0
0
0
0
0
0
0
182
0.238845
33420b595ab8ea2d66e865aea4f9be309fdb9795
709
py
Python
tests/search_test.py
krishna-kalavadia/computer-vision-python
6b37aaa433153f82412d865cef8fce81ce8422c7
[ "BSD-3-Clause" ]
9
2021-03-23T17:19:11.000Z
2022-01-25T20:45:34.000Z
tests/search_test.py
krishna-kalavadia/computer-vision-python
6b37aaa433153f82412d865cef8fce81ce8422c7
[ "BSD-3-Clause" ]
31
2020-11-18T01:47:19.000Z
2022-03-24T23:14:46.000Z
tests/search_test.py
krishna-kalavadia/computer-vision-python
6b37aaa433153f82412d865cef8fce81ce8422c7
[ "BSD-3-Clause" ]
42
2020-11-18T01:19:14.000Z
2022-03-22T19:38:12.000Z
from modules.search.Search import Search from modules.search.searchWorker import searchWorker mock_tent = { "latitude": 51.083665, "longitude": -114.114693 } mock_plane = { "latitude": 51.059971, "longitude": -114.10714 } def test_search_function(): search = Search() command = search.perform_...
25.321429
75
0.681241
0
0
0
0
0
0
0
0
108
0.152327
3343300fe9fc63763059c54d0198c6efedcd6999
1,774
py
Python
Lesson 12 Keras/Test_Keras.py
alchemz/Self-Driving-Car-Engineer-Nanodegree
70d6ae9d741b6c53712e0099af04597dc0ba0291
[ "MIT" ]
1
2021-03-20T12:32:35.000Z
2021-03-20T12:32:35.000Z
Lesson 12 Keras/Test_Keras.py
alchemz/Self-Driving-Car-Engineer-Nanodegree
70d6ae9d741b6c53712e0099af04597dc0ba0291
[ "MIT" ]
null
null
null
Lesson 12 Keras/Test_Keras.py
alchemz/Self-Driving-Car-Engineer-Nanodegree
70d6ae9d741b6c53712e0099af04597dc0ba0291
[ "MIT" ]
null
null
null
# Load pickled data import pickle import numpy as np import tensorflow as tf tf.python.control_flow_ops = tf with open('small_train_traffic.p', mode='rb') as f: data = pickle.load(f) X_train, y_train = data['features'], data['labels'] # Initial Setup for Keras from keras.models import Sequential from keras.layer...
30.067797
79
0.756483
0
0
0
0
0
0
0
0
370
0.208568
3344178b165547c21ead9ed9691b9fa23693168d
2,360
py
Python
crude/extrude_crude/take_05_model_run.py
i2mint/crude
29fea0c7cd7cf58055b14bc47519bd527469f8d0
[ "Apache-2.0" ]
null
null
null
crude/extrude_crude/take_05_model_run.py
i2mint/crude
29fea0c7cd7cf58055b14bc47519bd527469f8d0
[ "Apache-2.0" ]
null
null
null
crude/extrude_crude/take_05_model_run.py
i2mint/crude
29fea0c7cd7cf58055b14bc47519bd527469f8d0
[ "Apache-2.0" ]
null
null
null
""" Same as take_04_model_run, but where the dispatch is not as manual. """ from front.crude import KT, StoreName, Mall from crude.extrude_crude.extrude_crude_util import mall, np, apply_model # --------------------------------------------------------------------------------------- # dispatchable function: from front....
34.202899
89
0.677542
0
0
0
0
0
0
0
0
993
0.420763
33442932bed34ae8a7cfa58a82b7cd61d3e5042f
145
py
Python
tests/conftest.py
Anishmourya/flask-restx-api
6e64a22ce14dd97d69809c3b50cb5781918fd1d4
[ "MIT" ]
3
2020-04-01T15:10:59.000Z
2021-09-30T13:00:20.000Z
tests/conftest.py
Anishmourya/flask-restx-api
6e64a22ce14dd97d69809c3b50cb5781918fd1d4
[ "MIT" ]
null
null
null
tests/conftest.py
Anishmourya/flask-restx-api
6e64a22ce14dd97d69809c3b50cb5781918fd1d4
[ "MIT" ]
null
null
null
import pytest from app import create_app @pytest.fixture def client(): app = create_app() client = app.test_client() return client
14.5
30
0.703448
0
0
0
0
101
0.696552
0
0
0
0
3344e7fbcc20c1b88448cf2bc6b2cea4cf5be780
331
py
Python
Part_3_advanced/m14_metaclass/register_cls/homework_1_solution/example_system/bike.py
Mikma03/InfoShareacademy_Python_Courses
3df1008c8c92831bebf1625f960f25b39d6987e6
[ "MIT" ]
null
null
null
Part_3_advanced/m14_metaclass/register_cls/homework_1_solution/example_system/bike.py
Mikma03/InfoShareacademy_Python_Courses
3df1008c8c92831bebf1625f960f25b39d6987e6
[ "MIT" ]
null
null
null
Part_3_advanced/m14_metaclass/register_cls/homework_1_solution/example_system/bike.py
Mikma03/InfoShareacademy_Python_Courses
3df1008c8c92831bebf1625f960f25b39d6987e6
[ "MIT" ]
null
null
null
from example_system.serializable import RegisteredSerializable class Bike(RegisteredSerializable): def __init__(self, brand: str, model: str) -> None: super().__init__(brand, model) self.brand = brand self.model = model def __str__(self) -> str: return f"Bike: {self.brand} {se...
27.583333
62
0.667674
265
0.800604
0
0
0
0
0
0
34
0.102719
334572d04bea77a18ada43a30928987b98727f24
107
py
Python
authentication/authenticator.py
gabrielbazan/http_auth
5d86669ead6beedd8d980031d09d7dedfc1033fd
[ "MIT" ]
null
null
null
authentication/authenticator.py
gabrielbazan/http_auth
5d86669ead6beedd8d980031d09d7dedfc1033fd
[ "MIT" ]
null
null
null
authentication/authenticator.py
gabrielbazan/http_auth
5d86669ead6beedd8d980031d09d7dedfc1033fd
[ "MIT" ]
null
null
null
class Authenticator(object): def authenticate(self, credentials): raise NotImplementedError()
21.4
40
0.728972
105
0.981308
0
0
0
0
0
0
0
0
334618648cc53a79bbe36c64245af99769f241e5
12,502
py
Python
spatial_two_mics/data_loaders/wham.py
etzinis/unsupervised_spatial_dc
7330303d3c994b2abdbceedf2ee08660f94bd9ce
[ "MIT" ]
21
2018-12-12T01:53:58.000Z
2022-01-16T17:23:40.000Z
spatial_two_mics/data_loaders/wham.py
etzinis/unsupervised_spatial_dc
7330303d3c994b2abdbceedf2ee08660f94bd9ce
[ "MIT" ]
1
2019-04-25T07:14:31.000Z
2020-04-22T00:59:30.000Z
spatial_two_mics/data_loaders/wham.py
etzinis/unsupervised_spatial_dc
7330303d3c994b2abdbceedf2ee08660f94bd9ce
[ "MIT" ]
4
2019-10-06T09:08:11.000Z
2021-02-09T23:11:27.000Z
"""! @brief Pytorch dataloader for wham dataset for multiple gender combinations. @author Efthymios Tzinis {[email protected]} @copyright University of illinois at Urbana Champaign """ import torch import os import numpy as np import pickle import glob2 import sys current_dir = os.path.dirname(os.path.abspath('_...
40.723127
81
0.607103
9,304
0.744201
0
0
0
0
0
0
1,833
0.146617
33483b8215659fc4a60059ae841163838e1448c1
3,779
py
Python
dali/test/python/test_operator_input_promotion.py
lbhm/DALI
d478d768c55069351a78d6bdcebed7632ca21ecb
[ "ECL-2.0", "Apache-2.0" ]
1
2019-05-31T14:00:58.000Z
2019-05-31T14:00:58.000Z
dali/test/python/test_operator_input_promotion.py
Pandinosaurus/DALI
1031314b7857ec11d40e31496089579297a2e863
[ "ECL-2.0", "Apache-2.0" ]
2
2021-06-11T17:05:37.000Z
2021-06-23T03:45:04.000Z
dali/test/python/test_operator_input_promotion.py
Pandinosaurus/DALI
1031314b7857ec11d40e31496089579297a2e863
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (c) 2020, NVIDIA 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 # # Unless required by applic...
40.634409
99
0.632442
0
0
0
0
0
0
0
0
606
0.16036
3349ab80fd693215fc2ec86a1bdc3c3c49e9ea6e
8,446
py
Python
www/transwarp/orm.py
houxiao2011/webapp-python
c74e2585dd96bc6ca240c443b2d18a8b3ea011e0
[ "Apache-2.0" ]
null
null
null
www/transwarp/orm.py
houxiao2011/webapp-python
c74e2585dd96bc6ca240c443b2d18a8b3ea011e0
[ "Apache-2.0" ]
null
null
null
www/transwarp/orm.py
houxiao2011/webapp-python
c74e2585dd96bc6ca240c443b2d18a8b3ea011e0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # --*-- coding: utf-8 --*-- import time, logging import db class Field(object): _count = 0 def __init__(self, **kw): self.name = kw.get('name', None) self._default = kw.get('default', None) self.primary_key = kw.get('primary_key', False) self.nullable = ...
31.632959
120
0.543689
6,814
0.806772
0
0
1,087
0.1287
0
0
1,990
0.235614
3349c42d9a6787f22dabc4fb2936a9e909a361bb
121
py
Python
EX10 dolar carteira.py
RODRIGOKTK/Python-exercicios
f7985f2c277aae8b158bdeea4f2493febaaf06c5
[ "Unlicense" ]
null
null
null
EX10 dolar carteira.py
RODRIGOKTK/Python-exercicios
f7985f2c277aae8b158bdeea4f2493febaaf06c5
[ "Unlicense" ]
null
null
null
EX10 dolar carteira.py
RODRIGOKTK/Python-exercicios
f7985f2c277aae8b158bdeea4f2493febaaf06c5
[ "Unlicense" ]
null
null
null
carteira=float(input('Quanto tem na carteira: ')) dolar=3.27 print('Equivalente em dolares: %.2f ' %(carteira/dolar))
30.25
57
0.702479
0
0
0
0
0
0
0
0
57
0.471074
334a98c4b9b9f9e53176aaf0e2f36f0be5032d0d
1,757
py
Python
code/libs/utils.py
shinebobo/Semantic-Line-SLNet
c9b8f9f0af8b74fdcd9f101d246ef8b4be96b8b2
[ "MIT" ]
1
2021-07-21T01:06:12.000Z
2021-07-21T01:06:12.000Z
code/libs/utils.py
shinebobo/Semantic-Line-SLNet
c9b8f9f0af8b74fdcd9f101d246ef8b4be96b8b2
[ "MIT" ]
null
null
null
code/libs/utils.py
shinebobo/Semantic-Line-SLNet
c9b8f9f0af8b74fdcd9f101d246ef8b4be96b8b2
[ "MIT" ]
null
null
null
import os import pickle import numpy as np import random import torch global global_seed global_seed = 123 torch.manual_seed(global_seed) torch.cuda.manual_seed(global_seed) torch.cuda.manual_seed_all(global_seed) np.random.seed(global_seed) random.seed(global_seed) def _init_fn(worker_id): seed = global_seed ...
19.307692
62
0.625498
0
0
0
0
0
0
0
0
220
0.125213
334ae316e44a87d9de4896827430dd6a339557e7
647
py
Python
api/admin.py
Neoklosch/QuestionBasedServer
7e690944355471d3a9507b0414cbaf1f800bab97
[ "Apache-2.0" ]
null
null
null
api/admin.py
Neoklosch/QuestionBasedServer
7e690944355471d3a9507b0414cbaf1f800bab97
[ "Apache-2.0" ]
7
2020-06-05T17:05:00.000Z
2022-03-11T23:13:05.000Z
api/admin.py
Cookie-Monsters/uQu-Backend
7e690944355471d3a9507b0414cbaf1f800bab97
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from api.models import Answer, Question, User from django import forms class AnswerAdmin(admin.ModelAdmin): model = Answer class QuestionAdmin(admin.ModelAdmin): model = Question # class UserForm(forms.ModelForm): # password = forms.CharField(widget=forms.PasswordInput...
20.870968
60
0.718702
165
0.255023
0
0
0
0
0
0
234
0.361669
334afd08e2c0f5208e6a49dbf748437e970df29e
20,153
py
Python
Minesweeper_Python/src/MyAI.py
Thomas1728/AI-MineSweeper
7d8baec928637c87b1b4cd67649eb2b4cd2227ba
[ "MIT" ]
null
null
null
Minesweeper_Python/src/MyAI.py
Thomas1728/AI-MineSweeper
7d8baec928637c87b1b4cd67649eb2b4cd2227ba
[ "MIT" ]
null
null
null
Minesweeper_Python/src/MyAI.py
Thomas1728/AI-MineSweeper
7d8baec928637c87b1b4cd67649eb2b4cd2227ba
[ "MIT" ]
null
null
null
# ==============================CS-171================================== # FILE: MyAI.py # # AUTHOR: bugMaker # # DESCRIPTION: This file contains the MyAI class. You will implement your # agent in this file. You will write the 'getAction' function, # the constructor, and any additional helper functions...
39.67126
160
0.52553
19,502
0.967697
0
0
0
0
0
0
6,561
0.325559
334b5d97c085709c9962cb03b981ba238c44a614
3,383
py
Python
BinaryTree/Node.py
Pedro29152/binary-search-tree-python
e2457d0d2ce5db7044697ec34acd6195aafb71f6
[ "MIT" ]
null
null
null
BinaryTree/Node.py
Pedro29152/binary-search-tree-python
e2457d0d2ce5db7044697ec34acd6195aafb71f6
[ "MIT" ]
null
null
null
BinaryTree/Node.py
Pedro29152/binary-search-tree-python
e2457d0d2ce5db7044697ec34acd6195aafb71f6
[ "MIT" ]
null
null
null
class Node(): def __init__(self, id: int, value = None, right: 'Node' = None, left: 'Node' = None): self.id = id self.value = value self.right = right self.left = left self.parent: 'Node' = None def add(self, node: 'Node'): if not node: raise ValueE...
30.754545
119
0.544487
3,374
0.99734
0
0
0
0
0
0
154
0.045522
334de2467a9aad2d75dceb60553a04a3e344347f
2,895
py
Python
src/moreos/parsing.py
sigmavirus24/moreos
a32056d89fa519499e704f978db32b737977e2d7
[ "MIT" ]
3
2020-12-16T16:43:57.000Z
2021-06-03T10:54:55.000Z
src/moreos/parsing.py
sigmavirus24/moreos
a32056d89fa519499e704f978db32b737977e2d7
[ "MIT" ]
null
null
null
src/moreos/parsing.py
sigmavirus24/moreos
a32056d89fa519499e704f978db32b737977e2d7
[ "MIT" ]
null
null
null
"""Parsing utilities for moreos.""" import re import attr @attr.s(frozen=True) class ABNF: """Container of regular expressions both raw and compiled for parsing.""" # From https://tools.ietf.org/html/rfc2616#section-2.2 ctl = control_characters = "\x7f\x00-\x1f" digit = "0-9" separators = r"\[\]...
40.208333
77
0.638342
2,812
0.97133
0
0
2,833
0.978584
0
0
1,681
0.580656
334e95ed5c389e7fbe37935a81f7aca297e6dd30
2,367
py
Python
tests/factorys.py
ireneontheway5/pymilvus
b812449a98602b4370b3b3430bdeb18b24035e53
[ "Apache-2.0" ]
null
null
null
tests/factorys.py
ireneontheway5/pymilvus
b812449a98602b4370b3b3430bdeb18b24035e53
[ "Apache-2.0" ]
null
null
null
tests/factorys.py
ireneontheway5/pymilvus
b812449a98602b4370b3b3430bdeb18b24035e53
[ "Apache-2.0" ]
null
null
null
# STL imports import random import logging import string import time import datetime import random import struct import sys from functools import wraps # Third party imports import numpy as np import faker from faker.providers import BaseProvider logging.getLogger('faker').setLevel(logging.ERROR) sys.path.append('.'...
22.330189
91
0.669624
269
0.113646
0
0
228
0.096324
0
0
233
0.098437
334f49d258643f6f1e499de6346d97b992cad8f0
604
py
Python
tests/test_resources/fixtures/py3_tokens.py
cbillingham/docconvert
2843f7446546ae90ba3f38e1246e69d208e0f053
[ "BSD-3-Clause" ]
8
2019-10-07T22:49:20.000Z
2021-12-30T22:31:28.000Z
tests/test_resources/fixtures/py3_tokens.py
cbillingham/docconvert
2843f7446546ae90ba3f38e1246e69d208e0f053
[ "BSD-3-Clause" ]
5
2019-09-17T21:03:38.000Z
2020-07-23T04:47:21.000Z
tests/test_resources/fixtures/py3_tokens.py
cbillingham/docconvert
2843f7446546ae90ba3f38e1246e69d208e0f053
[ "BSD-3-Clause" ]
null
null
null
"""Module docstring!""" a = 1 b = 2 @bleh @blah def greet( name: str, age: int, *args, test='oh yeah', **kwargs ) -> ({a: 1, b: 2} ): """Generic short description Longer description of this function that does nothing :param arg1: Desc for arg1 :type arg1: arg1_type :r...
17.764706
90
0.596026
0
0
0
0
373
0.61755
0
0
374
0.619205
334fb858f20d8c85bdcd5c7fdc799a281a724b78
3,116
py
Python
src/editor/selection.py
rehmanx/PandaEditor
125c79605fd46a045201e5ff6a88709764ac104f
[ "MIT" ]
null
null
null
src/editor/selection.py
rehmanx/PandaEditor
125c79605fd46a045201e5ff6a88709764ac104f
[ "MIT" ]
null
null
null
src/editor/selection.py
rehmanx/PandaEditor
125c79605fd46a045201e5ff6a88709764ac104f
[ "MIT" ]
null
null
null
import panda3d.core as pm from editor.p3d.object import Object from editor.p3d.marquee import Marquee from editor.p3d.mousePicker import MousePicker from editor.constants import TAG_IGNORE, TAG_PICKABLE class Selection(Object): BBOX_TAG = 'bbox' def __init__(self, *args, **kwargs): Object.__init__(se...
31.474747
100
0.614249
2,910
0.93389
0
0
0
0
0
0
647
0.207638
3350e65017c77b155a623adbb0c445784ce6a443
33,168
py
Python
cinder/tests/unit/policies/test_volume.py
arunvinodqmco/cinder
62cb72c6890e458427ba0601646b186b7b36dc01
[ "Apache-2.0" ]
571
2015-01-01T17:47:26.000Z
2022-03-23T07:46:36.000Z
cinder/tests/unit/policies/test_volume.py
arunvinodqmco/cinder
62cb72c6890e458427ba0601646b186b7b36dc01
[ "Apache-2.0" ]
37
2015-01-22T23:27:04.000Z
2021-02-05T16:38:48.000Z
cinder/tests/unit/policies/test_volume.py
arunvinodqmco/cinder
62cb72c6890e458427ba0601646b186b7b36dc01
[ "Apache-2.0" ]
841
2015-01-04T17:17:11.000Z
2022-03-31T12:06:51.000Z
# # 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 # ...
40.00965
78
0.630306
31,882
0.961228
0
0
21,231
0.640105
0
0
7,042
0.212313
33515a257e86ab2541599ce4633c5188ac0eb93e
4,393
py
Python
ddot/api.py
agary-ucsd/ddot
6f3755843e11bcf308634f188caca7fc9d4e2da3
[ "MIT" ]
null
null
null
ddot/api.py
agary-ucsd/ddot
6f3755843e11bcf308634f188caca7fc9d4e2da3
[ "MIT" ]
null
null
null
ddot/api.py
agary-ucsd/ddot
6f3755843e11bcf308634f188caca7fc9d4e2da3
[ "MIT" ]
null
null
null
import sys import argparse import bottle import pandas as pd from bottle import Bottle, HTTPError, request from gevent.pywsgi import WSGIServer from geventwebsocket.handler import WebSocketHandler from ddot import Ontology import tempfile import os import csv path_this = os.path.dirname(os.path.abspath(__file__)) os.e...
28.712418
137
0.556795
0
0
0
0
3,149
0.716822
0
0
782
0.17801
335166caa2fb8bf7ef55ff8016ed6d28cfe4b088
4,302
py
Python
testing/logging/test_formatter.py
christian-steinmeyer/pytest
5cc295e74b81ca7a106e5a096834043738f14dc5
[ "MIT" ]
4
2018-03-10T16:59:59.000Z
2019-12-17T09:16:09.000Z
testing/logging/test_formatter.py
christian-steinmeyer/pytest
5cc295e74b81ca7a106e5a096834043738f14dc5
[ "MIT" ]
71
2015-10-28T08:10:14.000Z
2021-12-06T03:02:07.000Z
testing/logging/test_formatter.py
christian-steinmeyer/pytest
5cc295e74b81ca7a106e5a096834043738f14dc5
[ "MIT" ]
2
2020-08-01T22:09:38.000Z
2020-10-13T08:17:24.000Z
import logging from typing import Any from _pytest._io import TerminalWriter from _pytest.logging import ColoredLevelFormatter def test_coloredlogformatter() -> None: logfmt = "%(filename)-25s %(lineno)4d %(levelname)-8s %(message)s" record = logging.LogRecord( name="dummy", level=logging.IN...
28.490066
80
0.57113
114
0.026499
0
0
0
0
0
0
1,466
0.340772
3351e52b5194a9276589bc9c2f3638bd2c933566
12,356
py
Python
crystaltoolgui/tabs/tabresmatcher.py
jingshenSN2/CrystalTool
18f07963ff5f2a54ac2c93e2fa59fada51346232
[ "MIT" ]
null
null
null
crystaltoolgui/tabs/tabresmatcher.py
jingshenSN2/CrystalTool
18f07963ff5f2a54ac2c93e2fa59fada51346232
[ "MIT" ]
null
null
null
crystaltoolgui/tabs/tabresmatcher.py
jingshenSN2/CrystalTool
18f07963ff5f2a54ac2c93e2fa59fada51346232
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'tabresmatcher.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore...
56.420091
114
0.717627
12,222
0.972779
0
0
0
0
0
0
1,890
0.15043
3353952224984b77381aeb9e737b1658da3774db
727
py
Python
src/bioregistry/export/cli.py
biopragmatics/bioregistry
1c994b97f5bfe7151e01edb8e6a26edbaa30f33c
[ "MIT" ]
17
2021-09-14T17:58:16.000Z
2022-03-11T06:22:11.000Z
src/bioregistry/export/cli.py
biopragmatics/bioregistry
1c994b97f5bfe7151e01edb8e6a26edbaa30f33c
[ "MIT" ]
148
2021-09-18T08:52:46.000Z
2022-03-23T15:57:35.000Z
src/bioregistry/export/cli.py
biopragmatics/bioregistry
1c994b97f5bfe7151e01edb8e6a26edbaa30f33c
[ "MIT" ]
9
2021-09-28T20:18:53.000Z
2022-03-14T17:23:35.000Z
# -*- coding: utf-8 -*- """Export the Bioregistry.""" import click @click.command() @click.pass_context def export(ctx: click.Context): """Export the Bioregistry.""" from .prefix_maps import generate_contexts from .rdf_export import export_rdf from .sssom_export import export_sssom from .tables_...
23.451613
48
0.727648
0
0
0
0
613
0.843191
0
0
91
0.125172
335499578c54e600ef5b6cd7a2e1c167305703ec
1,327
py
Python
tests/test_main.py
brettcannon/release-often
f28034d5525faf1953927d321d162e42943361f6
[ "MIT" ]
8
2020-04-06T00:32:45.000Z
2020-06-09T22:45:02.000Z
tests/test_main.py
brettcannon/release-often
f28034d5525faf1953927d321d162e42943361f6
[ "MIT" ]
1
2020-05-14T18:32:20.000Z
2020-05-14T18:32:20.000Z
tests/test_main.py
brettcannon/release-often
f28034d5525faf1953927d321d162e42943361f6
[ "MIT" ]
null
null
null
import json from unittest import mock import gidgethub.abc import pytest from release_often import __main__ as main class TestMatchingPR: @pytest.mark.asyncio async def test_pr_found(self, data_path): """Test when a PR number is specified in the initial commit's message.""" gh_mock = mock.As...
35.864865
81
0.6737
1,206
0.908817
0
0
1,174
0.884702
1,124
0.847023
271
0.20422
335622d55b7a6b99e8e7667af2ca6f6644e1aaee
23,330
py
Python
src/ezdxf/path/tools.py
dmtvanzanten/ezdxf
6fe9d0aa961e011c87768aa6511256de21a662dd
[ "MIT" ]
null
null
null
src/ezdxf/path/tools.py
dmtvanzanten/ezdxf
6fe9d0aa961e011c87768aa6511256de21a662dd
[ "MIT" ]
null
null
null
src/ezdxf/path/tools.py
dmtvanzanten/ezdxf
6fe9d0aa961e011c87768aa6511256de21a662dd
[ "MIT" ]
null
null
null
# Copyright (c) 2020-2021, Manfred Moitzi # License: MIT License from typing import ( TYPE_CHECKING, List, Iterable, Tuple, Optional, Dict, Sequence, ) import math import itertools from ezdxf.math import ( Vec3, Z_AXIS, OCS, Matrix44, BoundingBox, ConstructionEllipse...
30.982736
82
0.642992
0
0
288
0.012338
0
0
0
0
11,001
0.471276
335691f1a44d761858600316cd4fa61528733a39
466
py
Python
LeetCodeSolutions/python/322_Coin_Change.py
ChuanleiGuo/AlgorithmsPlayground
90b6287b742c8bfd3797540c408d679be2821a40
[ "MIT" ]
1
2017-03-27T13:38:37.000Z
2017-03-27T13:38:37.000Z
LeetCodeSolutions/python/322_Coin_Change.py
ChuanleiGuo/AlgorithmsPlayground
90b6287b742c8bfd3797540c408d679be2821a40
[ "MIT" ]
null
null
null
LeetCodeSolutions/python/322_Coin_Change.py
ChuanleiGuo/AlgorithmsPlayground
90b6287b742c8bfd3797540c408d679be2821a40
[ "MIT" ]
null
null
null
class Solution(object): def coinChange(self, coins, amount): """ :type coins: List[int] :type amount: int :rtype: int """ dp = [0] + [2 ** 31 - 1] * amount for i in xrange(1, amount + 1): for coin in coins: if i >= coin and dp[i - c...
31.066667
64
0.433476
465
0.997854
0
0
0
0
0
0
92
0.197425
335a3079554e04318e100ccbe95efe67d12785a4
367
py
Python
14_TokenAuthentication/userpost/serializer.py
LIkelion-at-KOREATECH/LikeLion_Django_Study_Summary
c788182af5bcfd16bdd4b57235a48659758e494b
[ "MIT" ]
28
2019-10-15T13:15:26.000Z
2021-11-08T08:23:45.000Z
14_TokenAuthentication/userpost/serializer.py
jhleed/LikeLion_Django_Study_Summary
c788182af5bcfd16bdd4b57235a48659758e494b
[ "MIT" ]
null
null
null
14_TokenAuthentication/userpost/serializer.py
jhleed/LikeLion_Django_Study_Summary
c788182af5bcfd16bdd4b57235a48659758e494b
[ "MIT" ]
17
2019-09-09T00:15:36.000Z
2021-01-28T13:08:51.000Z
from .models import UserPost from rest_framework import serializers class UserPostSerializer(serializers.ModelSerializer): author_name = serializers.ReadOnlyField( source='author.username' ) class Meta: model = UserPost fields = [ 'pk', 'author_name', ...
19.315789
54
0.580381
296
0.80654
0
0
0
0
0
0
47
0.128065
335dbfd8eeada3150621b5e132ff38b941943c70
153
py
Python
app/cogs/base/__init__.py
fossabot/Starboard-2
798e2d04995ae7d920e76708b9ea8fae6f4af319
[ "MIT" ]
16
2021-01-19T19:12:00.000Z
2021-12-21T12:00:04.000Z
app/cogs/base/__init__.py
Davi-the-Mudkip/Starboard-2
4de3c689ffef007e4f4a279251d107d890b69b15
[ "MIT" ]
15
2021-04-02T16:58:48.000Z
2022-03-28T06:09:49.000Z
app/cogs/base/__init__.py
Davi-the-Mudkip/Starboard-2
4de3c689ffef007e4f4a279251d107d890b69b15
[ "MIT" ]
13
2021-01-21T14:26:00.000Z
2021-09-29T18:55:17.000Z
from app.classes.bot import Bot from . import base_commands, base_events def setup(bot: Bot): base_commands.setup(bot) base_events.setup(bot)
17
40
0.745098
0
0
0
0
0
0
0
0
0
0
3360e8ecae40c8b015c6b7e2a1cd267c16fb7712
502
py
Python
model/combination_file.py
dokzai/WholeFoodsFrugality
0239dca601353524af0e1b317def40cdd51e4ea3
[ "CC0-1.0" ]
42
2021-06-05T01:16:23.000Z
2021-07-05T02:51:54.000Z
model/combination_file.py
dokzai/WholeFoodsFrugality
0239dca601353524af0e1b317def40cdd51e4ea3
[ "CC0-1.0" ]
2
2021-06-05T19:29:06.000Z
2021-09-01T19:10:53.000Z
model/combination_file.py
dokzai/WholeFoodsFrugality
0239dca601353524af0e1b317def40cdd51e4ea3
[ "CC0-1.0" ]
6
2021-06-05T02:44:16.000Z
2021-08-06T14:54:59.000Z
import model from model import whole_foods_sale from model import aldis_au_sale from model import aldis_us_sale from model import aldis_uk_sale def go(inputs, store_name): if store_name == 'WholeFoods': final_df = whole_foods_sale.items_on_sale() elif store_name == 'Aldi AU': final_df = aldis_au_sale.items_on_s...
27.888889
45
0.7749
0
0
0
0
0
0
0
0
39
0.077689
3362692f46d8ce99fe607f99e82c59552aa25f04
8,926
py
Python
generalRunFiles/tideCompare.py
wesleybowman/karsten
ef4b2d6debae605902d76cd0484e71c0ba74fdd1
[ "MIT" ]
1
2015-05-04T17:48:56.000Z
2015-05-04T17:48:56.000Z
generalRunFiles/tideCompare.py
wesleybowman/karsten
ef4b2d6debae605902d76cd0484e71c0ba74fdd1
[ "MIT" ]
null
null
null
generalRunFiles/tideCompare.py
wesleybowman/karsten
ef4b2d6debae605902d76cd0484e71c0ba74fdd1
[ "MIT" ]
1
2021-11-15T17:53:19.000Z
2021-11-15T17:53:19.000Z
from __future__ import division import numpy as np import pandas as pd import netCDF4 as nc from datetime import datetime, timedelta import cPickle as pickle import sys sys.path.append('/home/wesley/github/UTide/') from utide import ut_solv import scipy.io as sio from stationClass import station def mjd2num(x): y...
36.284553
143
0.578871
0
0
0
0
0
0
0
0
2,955
0.331055
336617ee14351211c66aecbca46f7869d9b1ed6c
2,158
py
Python
gff/Scripts/gff/gff_to_genbank.py
bgruening/bcbb
dbfb52711f0bfcc1d26c5a5b53c9ff4f50dc0027
[ "MIT" ]
339
2015-01-04T13:23:04.000Z
2022-03-25T23:09:09.000Z
gff/Scripts/gff/gff_to_genbank.py
bgruening/bcbb
dbfb52711f0bfcc1d26c5a5b53c9ff4f50dc0027
[ "MIT" ]
39
2015-01-14T21:31:09.000Z
2021-11-18T15:15:33.000Z
gff/Scripts/gff/gff_to_genbank.py
bgruening/bcbb
dbfb52711f0bfcc1d26c5a5b53c9ff4f50dc0027
[ "MIT" ]
176
2015-01-10T17:40:44.000Z
2022-03-25T05:14:21.000Z
#!/usr/bin/env python """Convert a GFF and associated FASTA file into GenBank format. Usage: gff_to_genbank.py <GFF annotation file> [<FASTA sequence file> <molecule type>] FASTA sequence file: input sequences matching records in GFF. Optional if sequences are in the GFF molecule type: type of molecule in th...
29.162162
88
0.639018
0
0
724
0.335496
0
0
0
0
799
0.37025
336659ff363b0054a9eac553468e5da25a44ed50
762
py
Python
hard-gists/5267494/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/5267494/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/5267494/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
import webapp2 from twilio import twiml from twilio.rest import TwilioRestClient class SendSMS(webapp2.RequestHandler): def get(self): # replace with your credentials from: https://www.twilio.com/user/account account_sid = "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" auth_token = "xxxxxxxxxxxxxxxxx...
42.333333
81
0.611549
579
0.759843
0
0
0
0
0
0
234
0.307087
3366d6f4ce4dfb447093519d06275a1e825d7959
555
py
Python
app/calc/permissions.py
sajeeshen/WebCalculatorAPI
d951e688e84741cc594877914d292fbddb4e9542
[ "MIT" ]
null
null
null
app/calc/permissions.py
sajeeshen/WebCalculatorAPI
d951e688e84741cc594877914d292fbddb4e9542
[ "MIT" ]
null
null
null
app/calc/permissions.py
sajeeshen/WebCalculatorAPI
d951e688e84741cc594877914d292fbddb4e9542
[ "MIT" ]
null
null
null
from rest_framework import permissions class IsSuperUser(permissions.IsAdminUser): def has_permission(self, request, view): is_admin = super().has_permission(request, view) return request.method in permissions.SAFE_METHODS or is_admin class IsUser(permissions.BasePermission): def has_objec...
26.428571
69
0.652252
510
0.918919
0
0
0
0
0
0
0
0
3367ac8d7631adea65a66b8a1b9f9c5b430f34ba
335
py
Python
src/eduid_graphdb/exceptions.py
SUNET/eduid-groupdb
c9b4631ff944211eab82595f005bc7e707142216
[ "BSD-3-Clause" ]
1
2020-09-05T03:14:37.000Z
2020-09-05T03:14:37.000Z
src/eduid_graphdb/exceptions.py
SUNET/eduid-graphdb
c9b4631ff944211eab82595f005bc7e707142216
[ "BSD-3-Clause" ]
null
null
null
src/eduid_graphdb/exceptions.py
SUNET/eduid-graphdb
c9b4631ff944211eab82595f005bc7e707142216
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'lundberg' class EduIDGroupDBError(Exception): pass class VersionMismatch(EduIDGroupDBError): pass class MultipleReturnedError(EduIDGroupDBError): pass class MultipleUsersReturned(MultipleReturnedError): pass class MultipleGroupsReturned(MultipleReturnedEr...
13.958333
52
0.758209
271
0.808955
0
0
0
0
0
0
33
0.098507
3368e67a6dc113ec2b5e093fd23dd2116d31dc6a
1,485
py
Python
pyledserver/mqtt/client.py
oct0f1sh/PyLEDServer
a41ef37bf4564c02d0439a89f13f1bb7d841cc1d
[ "MIT" ]
1
2018-10-15T18:14:55.000Z
2018-10-15T18:14:55.000Z
pyledserver/mqtt/client.py
oct0f1sh/PyLEDServer
a41ef37bf4564c02d0439a89f13f1bb7d841cc1d
[ "MIT" ]
null
null
null
pyledserver/mqtt/client.py
oct0f1sh/PyLEDServer
a41ef37bf4564c02d0439a89f13f1bb7d841cc1d
[ "MIT" ]
null
null
null
import json import logging import mqtt.callbacks as mqtt_util import paho.mqtt.client as mqtt logger = logging.getLogger('pyledserver.PyLEDClient') logger.setLevel(logging.DEBUG) class PyLEDClient(mqtt.Client): def __init__(self, client_id, credentials, mqtt_topic, led_strip): logger.debug('Creating clie...
38.076923
101
0.709764
1,303
0.877441
0
0
79
0.053199
0
0
273
0.183838
3368ecf59d5565e94b4557cb0eb66a2c6e950c80
1,406
py
Python
pilco/policies/transformed_policy.py
sbrml/pilco
77b6d8b9033ffdb23cae4936b028f42144f37846
[ "MIT" ]
null
null
null
pilco/policies/transformed_policy.py
sbrml/pilco
77b6d8b9033ffdb23cae4936b028f42144f37846
[ "MIT" ]
4
2020-11-13T18:43:28.000Z
2022-02-10T01:17:03.000Z
pilco/policies/transformed_policy.py
sbrml/pilco
77b6d8b9033ffdb23cae4936b028f42144f37846
[ "MIT" ]
1
2020-03-22T10:14:21.000Z
2020-03-22T10:14:21.000Z
from pilco.policies.policy import Policy import tensorflow as tf class TransformedPolicy(Policy): def __init__(self, policy, transform, name="sine_bounded_action_policy", **kwargs): super().__init__(state_dim=policy.state_dim, ...
29.914894
85
0.559033
1,337
0.950925
0
0
186
0.13229
0
0
80
0.056899
33691ce250a8717c15ad812e29257b13be0864ea
33
py
Python
src/petronia/defimpl/configuration/file/defs.py
groboclown/petronia
486338023d19cee989e92f0c5692680f1a37811f
[ "MIT" ]
19
2017-06-21T10:28:24.000Z
2021-12-31T11:49:28.000Z
src/petronia/defimpl/configuration/file/defs.py
groboclown/petronia
486338023d19cee989e92f0c5692680f1a37811f
[ "MIT" ]
10
2016-11-11T18:57:57.000Z
2021-02-01T15:33:43.000Z
src/petronia/defimpl/configuration/file/defs.py
groboclown/petronia
486338023d19cee989e92f0c5692680f1a37811f
[ "MIT" ]
3
2017-09-17T03:29:35.000Z
2019-06-03T10:43:08.000Z
""" Basic type definitions. """
6.6
23
0.606061
0
0
0
0
0
0
0
0
31
0.939394
336a6fab7ed0883fc7d394502eed5edc3d498110
7,986
py
Python
clone-zadara-volume.py
harvard-dce/mh-backup
78a6f987759de22eb27b3b7e29943c7aba70cbac
[ "Apache-2.0" ]
null
null
null
clone-zadara-volume.py
harvard-dce/mh-backup
78a6f987759de22eb27b3b7e29943c7aba70cbac
[ "Apache-2.0" ]
null
null
null
clone-zadara-volume.py
harvard-dce/mh-backup
78a6f987759de22eb27b3b7e29943c7aba70cbac
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import time import logging import logging.config import logging.handlers import yaml from zadarest import ZConsoleClient from zadarest import ZVpsaClient logger = None def setup_logging( log_conf=None ): if log_conf is None: logging.basicConfig( l...
33
105
0.660406
0
0
0
0
0
0
0
0
2,361
0.295642
336e88674a45678661a794705e119393a26a094e
862
py
Python
env/Lib/site-packages/bidict/_typing.py
NXPY123/gsoc-tagger
c85602ae9f5dbb9bec45cc5e9e50ec62177d46a5
[ "MIT" ]
9
2021-02-15T05:53:17.000Z
2022-02-25T01:47:09.000Z
env/Lib/site-packages/bidict/_typing.py
NXPY123/gsoc-tagger
c85602ae9f5dbb9bec45cc5e9e50ec62177d46a5
[ "MIT" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
env/Lib/site-packages/bidict/_typing.py
NXPY123/gsoc-tagger
c85602ae9f5dbb9bec45cc5e9e50ec62177d46a5
[ "MIT" ]
7
2022-02-05T20:29:14.000Z
2022-03-26T13:16:44.000Z
# -*- coding: utf-8 -*- # Copyright 2009-2020 Joshua Bronson. All Rights Reserved. # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. """Provide typing-related objects....
25.352941
69
0.676334
181
0.209977
0
0
0
0
0
0
460
0.533643
33718dd21d032cfa041834f0670c883a14f8767a
5,032
py
Python
tests/util/test_mwi_validators.py
chimmy-changa/d-mdp
2ffbb4e41c980a71d95bcdb56fe47b2d7a5893a1
[ "BSD-2-Clause" ]
null
null
null
tests/util/test_mwi_validators.py
chimmy-changa/d-mdp
2ffbb4e41c980a71d95bcdb56fe47b2d7a5893a1
[ "BSD-2-Clause" ]
null
null
null
tests/util/test_mwi_validators.py
chimmy-changa/d-mdp
2ffbb4e41c980a71d95bcdb56fe47b2d7a5893a1
[ "BSD-2-Clause" ]
null
null
null
# Copyright 2021 The MathWorks, Inc. """Tests for functions in matlab_desktop_proxy/util/mwi_validators.py """ import pytest, os, tempfile, socket, random import matlab_desktop_proxy from matlab_desktop_proxy.util import mwi_validators from matlab_desktop_proxy import mwi_environment_variables as mwi_env from matlab_d...
35.43662
96
0.738275
0
0
0
0
597
0.118641
0
0
1,536
0.305246
3371e72f879cbac52d993d514cd9197823e924d2
1,758
py
Python
pub/models.py
DASTUDIO/MyVHost
b9eda56a67c2df9236b7866087bc7f465542f951
[ "MIT" ]
2
2021-07-27T10:38:57.000Z
2021-10-10T20:42:56.000Z
pub/models.py
DASTUDIO/MyVHost
b9eda56a67c2df9236b7866087bc7f465542f951
[ "MIT" ]
null
null
null
pub/models.py
DASTUDIO/MyVHost
b9eda56a67c2df9236b7866087bc7f465542f951
[ "MIT" ]
null
null
null
# coding=utf-8 from pub.tables.resources import * from pub.tables.map.domain import * from pub.tables.cache.token import * from pub.tables.map.files import * from pub.tables.user import * from pub.tables.cache.suspend import * from pub.tables.notice import * from pub.tables.template import * from pub.tables.comments im...
24.416667
63
0.85438
0
0
0
0
0
0
0
0
192
0.109215
33748e69536633ebb01ec7a16665fe6f91b383bc
1,169
py
Python
editor/templates/tests/test_review.py
gocept/alphaflow
4b797cb12fb52254b1884159fd9a8b899c739f7c
[ "ZPL-2.1", "ZPL-2.0" ]
null
null
null
editor/templates/tests/test_review.py
gocept/alphaflow
4b797cb12fb52254b1884159fd9a8b899c739f7c
[ "ZPL-2.1", "ZPL-2.0" ]
null
null
null
editor/templates/tests/test_review.py
gocept/alphaflow
4b797cb12fb52254b1884159fd9a8b899c739f7c
[ "ZPL-2.1", "ZPL-2.0" ]
1
2021-11-01T07:58:18.000Z
2021-11-01T07:58:18.000Z
# Copyright (c) 2005-2006 gocept gmbh & co. kg # See also LICENSE.txt # $Id: test_processmanager.py 4614 2007-03-26 20:12:22Z ctheune $ import unittest from Products.AlphaFlow.tests.AlphaFlowTestCase import AlphaFlowTestCase from Products.AlphaFlow.process import Process, ProcessVersion class ParallelReviewTest(Alp...
33.4
112
0.700599
749
0.640719
0
0
0
0
0
0
303
0.259196
681bea3ce9c8135cbe81134242ec4563bc113cbf
353
py
Python
tools/find-broken-edition-parm.py
ctheune/assembly-cms
20e000373fc30d9a14cb5dc882499b5eed1d86ee
[ "ZPL-2.1" ]
null
null
null
tools/find-broken-edition-parm.py
ctheune/assembly-cms
20e000373fc30d9a14cb5dc882499b5eed1d86ee
[ "ZPL-2.1" ]
null
null
null
tools/find-broken-edition-parm.py
ctheune/assembly-cms
20e000373fc30d9a14cb5dc882499b5eed1d86ee
[ "ZPL-2.1" ]
null
null
null
# Copyright (c) 2010 gocept gmbh & co. kg # See also LICENSE.txt import zope.traversing.api stack = [root['summer10']] while stack: page = stack.pop() for edition in page.editions: for tag in edition.parameters: if not ':' in tag: print zope.traversing.api.getPath(edition)...
23.533333
58
0.637394
0
0
0
0
0
0
0
0
76
0.215297
681c71e1cbd6fe545a1017f7ab45742ad74b1e3f
3,926
py
Python
storm_summaries.py
uva-hydroinformatics-lab/precipitation_processing
54ef1673900b6bb2ee38daec3aac33748a8402cd
[ "MIT" ]
1
2019-01-08T03:57:49.000Z
2019-01-08T03:57:49.000Z
storm_summaries.py
uva-hydroinformatics/precipitation_processing
54ef1673900b6bb2ee38daec3aac33748a8402cd
[ "MIT" ]
null
null
null
storm_summaries.py
uva-hydroinformatics/precipitation_processing
54ef1673900b6bb2ee38daec3aac33748a8402cd
[ "MIT" ]
null
null
null
from storm_stats_functions import * ######################################################################################################################## # Prepare Data########################################################################################################## #########################################...
40.474227
120
0.464595
0
0
0
0
0
0
0
0
3,244
0.826286
681ce2b89477a5b6b497d174c63e24c3840af009
573
py
Python
jqi/completion.py
jan-g/jqi
f304f9fda33ac9b9eae98848d2a64acbe0893131
[ "CC-BY-3.0", "Apache-2.0" ]
3
2020-04-15T13:40:59.000Z
2021-06-30T10:09:33.000Z
jqi/completion.py
jan-g/jqi
f304f9fda33ac9b9eae98848d2a64acbe0893131
[ "CC-BY-3.0", "Apache-2.0" ]
null
null
null
jqi/completion.py
jan-g/jqi
f304f9fda33ac9b9eae98848d2a64acbe0893131
[ "CC-BY-3.0", "Apache-2.0" ]
null
null
null
from .lexer import lex from .parser import top_level from .completer import * from .eval import make_env, splice def completer(s, offset, start=top_level): evaluator = start.parse(lex(s, offset)) def complete(stream="", env=None): if env is None: env = {} env = make_env().update(e...
27.285714
82
0.616056
0
0
0
0
0
0
0
0
29
0.050611
681d29014f10010799276f1e756503fc734bd148
21
py
Python
portfolio/Python/scrapy/loi/__init__.py
0--key/lib
ba7a85dda2b208adc290508ca617bdc55a5ded22
[ "Apache-2.0" ]
null
null
null
portfolio/Python/scrapy/loi/__init__.py
0--key/lib
ba7a85dda2b208adc290508ca617bdc55a5ded22
[ "Apache-2.0" ]
null
null
null
portfolio/Python/scrapy/loi/__init__.py
0--key/lib
ba7a85dda2b208adc290508ca617bdc55a5ded22
[ "Apache-2.0" ]
5
2016-03-22T07:40:46.000Z
2021-05-30T16:12:21.000Z
ACCOUNT_NAME = 'Loi'
10.5
20
0.714286
0
0
0
0
0
0
0
0
5
0.238095
681d2bfe163a3550e1484324ef1588560df68dbc
5,948
py
Python
conda-store-server/conda_store_server/server/views/api.py
saulshanabrook/conda-store
4d2c442d92cc92c236f52d138a403a693eff1eb9
[ "BSD-3-Clause" ]
null
null
null
conda-store-server/conda_store_server/server/views/api.py
saulshanabrook/conda-store
4d2c442d92cc92c236f52d138a403a693eff1eb9
[ "BSD-3-Clause" ]
null
null
null
conda-store-server/conda_store_server/server/views/api.py
saulshanabrook/conda-store
4d2c442d92cc92c236f52d138a403a693eff1eb9
[ "BSD-3-Clause" ]
null
null
null
from flask import Blueprint, jsonify, redirect, request import pydantic from conda_store_server import api, schema, utils from conda_store_server.server.utils import get_conda_store, get_auth from conda_store_server.server.auth import Permissions app_api = Blueprint("api", __name__) @app_api.route("/api/v1/") def ...
30.502564
88
0.686785
0
0
0
0
5,622
0.945192
0
0
1,081
0.181742
681dc97becea3bc42ad4fd6d5283822462ab98cd
6,781
py
Python
wrangle.py
brandonjbryant/regression-project
1c7dabece335c28931bcca3c002cb3cfa733bcbd
[ "MIT" ]
null
null
null
wrangle.py
brandonjbryant/regression-project
1c7dabece335c28931bcca3c002cb3cfa733bcbd
[ "MIT" ]
null
null
null
wrangle.py
brandonjbryant/regression-project
1c7dabece335c28931bcca3c002cb3cfa733bcbd
[ "MIT" ]
null
null
null
import pandas as pd import numpy as numpy from env import host, user, password import os from sklearn.model_selection import train_test_split import sklearn.preprocessing ############################# Acquire Zillow ############################# # defines function to create a sql url using personal credentials...
33.078049
122
0.621442
0
0
0
0
0
0
0
0
3,788
0.55862
681e1d5a6599b7cdcc0f82c8c9f48fcd4cf5f272
5,107
py
Python
server/shserver/GetCategory.py
AsherYang/ThreeLine
351dc8bfd1c0a536ffbf36ce8b1af953cc71f93a
[ "Apache-2.0" ]
1
2017-05-02T10:02:28.000Z
2017-05-02T10:02:28.000Z
server/shserver/GetCategory.py
AsherYang/ThreeLine
351dc8bfd1c0a536ffbf36ce8b1af953cc71f93a
[ "Apache-2.0" ]
null
null
null
server/shserver/GetCategory.py
AsherYang/ThreeLine
351dc8bfd1c0a536ffbf36ce8b1af953cc71f93a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ Author: AsherYang Email: [email protected] Date: 2017/7/24 Desc: get weidian token @see https://wiki.open.weidian.com/api#94 url = https://api.vdian.com/api?param={"showNoCate":"0"}&public={"method":"weidian.cate.get.list","access_token":"9882ff6e635aac4740646cf93f23...
34.046667
174
0.639319
0
0
0
0
0
0
0
0
2,094
0.394425
681e352b042459db2c73a2cf9e2013e8047fcc1a
600
py
Python
tests/test_parametrized_circuit.py
mdrft/Blueqat
878d24e2038063e32b4d391a03bc2c2be0600470
[ "Apache-2.0" ]
25
2018-09-16T22:54:48.000Z
2019-02-22T01:21:30.000Z
tests/test_parametrized_circuit.py
mdrft/blueqat
6c5f26b377bc3ce0d02adec8b9132d70870b3d95
[ "Apache-2.0" ]
22
2018-09-20T02:47:56.000Z
2019-02-08T05:25:30.000Z
tests/test_parametrized_circuit.py
mdrft/blueqat
6c5f26b377bc3ce0d02adec8b9132d70870b3d95
[ "Apache-2.0" ]
5
2018-10-23T04:56:04.000Z
2019-02-13T14:02:31.000Z
from blueqat import Circuit, ParametrizedCircuit def compare_circuit(c1: Circuit, c2: Circuit) -> bool: return repr(c1) == repr(c2) def test_parametrized1(): assert compare_circuit( ParametrizedCircuit().ry('a')[0].rz('b')[0].subs([1.2, 3.4]), Circuit().ry(1.2)[0].rz(3.4)[0]) def test_parame...
26.086957
79
0.605
0
0
0
0
0
0
0
0
18
0.03
68228cac371d172bb8b04045ab01daa77707fe2a
453
py
Python
add_admin.py
xcoders-hub/file-link-telegram-bot
08fe2803766bf8027991698d057f927c02501d06
[ "Apache-2.0" ]
1
2020-08-11T09:13:11.000Z
2020-08-11T09:13:11.000Z
add_admin.py
xcoders-hub/file-link-telegram-bot
08fe2803766bf8027991698d057f927c02501d06
[ "Apache-2.0" ]
null
null
null
add_admin.py
xcoders-hub/file-link-telegram-bot
08fe2803766bf8027991698d057f927c02501d06
[ "Apache-2.0" ]
2
2021-01-01T15:17:15.000Z
2021-02-02T14:42:45.000Z
import sqlite3 from config import DB_PATH def exe_query(query): con_obj = sqlite3.connect(DB_PATH) courser = con_obj.execute(query) res = courser.fetchall() con_obj.commit() con_obj.close() return res try: admin_id = int(input('Enter admin id: ')) exe_query(f'INSERT INTO Admin (teleg...
22.65
70
0.686534
0
0
0
0
0
0
0
0
132
0.291391
68247d930223fc7ffe60ad9d81a38863a76ea6be
2,832
py
Python
resources/code/train/Python/cp.py
searene/PLDetector
a8052b1d2ba91bfcc3fd4a5252480cf511d8a210
[ "MIT" ]
1
2020-11-09T08:24:17.000Z
2020-11-09T08:24:17.000Z
resources/code/train/Python/cp.py
searene/PLDetector
a8052b1d2ba91bfcc3fd4a5252480cf511d8a210
[ "MIT" ]
null
null
null
resources/code/train/Python/cp.py
searene/PLDetector
a8052b1d2ba91bfcc3fd4a5252480cf511d8a210
[ "MIT" ]
null
null
null
# This file is part of the Hotwire Shell project API. # Copyright (C) 2007 Colin Walters <[email protected]> # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, includin...
42.268657
89
0.676907
1,344
0.474576
0
0
0
0
0
0
1,238
0.437147
6825ecd07438de3cfbf3309ee1fabb498392216d
2,973
py
Python
src/other/other/features/tests.py
ManuelLobo/IBEnt
2ea885770a843f30224920d1bf6f6381fdf98c4c
[ "MIT" ]
null
null
null
src/other/other/features/tests.py
ManuelLobo/IBEnt
2ea885770a843f30224920d1bf6f6381fdf98c4c
[ "MIT" ]
null
null
null
src/other/other/features/tests.py
ManuelLobo/IBEnt
2ea885770a843f30224920d1bf6f6381fdf98c4c
[ "MIT" ]
null
null
null
import glob import random import os import subprocess import time import argparse import codecs import logging def brown_clusters(crf): #num_clusters -> param c #num_col -> param ncollocs #min_occur -> param min-occur #crf -> stanford or crfsuite final_results = open("src/other/features/brown_clu...
39.64
265
0.670703
0
0
0
0
0
0
0
0
1,695
0.570131
6825edb56f620e4af468cbc1facebc1899cc9b2c
4,882
py
Python
tests/proc/test_manager.py
pmrowla/dvc-task
b2698c5b76dfe14099eefc90b2f9372ec774549d
[ "Apache-2.0" ]
2
2022-02-15T12:28:13.000Z
2022-03-08T17:19:38.000Z
tests/proc/test_manager.py
pmrowla/dvc-task
b2698c5b76dfe14099eefc90b2f9372ec774549d
[ "Apache-2.0" ]
12
2022-02-15T12:55:13.000Z
2022-03-30T09:24:13.000Z
tests/proc/test_manager.py
pmrowla/dvc-task
b2698c5b76dfe14099eefc90b2f9372ec774549d
[ "Apache-2.0" ]
1
2022-03-08T07:15:18.000Z
2022-03-08T07:15:18.000Z
"""Process manager tests.""" import builtins import signal import sys import pytest from pytest_mock import MockerFixture from pytest_test_utils import TmpDir from dvc_task.proc.exceptions import ( ProcessNotTerminatedError, UnsupportedSignalError, ) from dvc_task.proc.manager import ProcessManager from dvc_t...
29.409639
79
0.705653
0
0
0
0
501
0.102622
0
0
606
0.124129