hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
b621588455e5d76a0ba73fb71140693684704279
9,532
py
Python
nseta/common/log.py
webclinic017/nseta
e718c4cf05937456ea10fdd7a911d76ffbc51a2e
[ "MIT" ]
1
2021-09-24T16:15:57.000Z
2021-09-24T16:15:57.000Z
nseta/common/log.py
webclinic017/nseta
e718c4cf05937456ea10fdd7a911d76ffbc51a2e
[ "MIT" ]
null
null
null
nseta/common/log.py
webclinic017/nseta
e718c4cf05937456ea10fdd7a911d76ffbc51a2e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging import os import sys import time import warnings import inspect from functools import wraps # from inspect import getcallargs, getfullargspec from collections import OrderedDict, Iterable from itertools import * __all__ = ['redForegroundText', 'greenForegroundText', 'line_break'...
31.150327
184
0.661771
e3db15d16bca89ff525584f8b8074451dfed98bc
935
py
Python
classify_folder.py
chandan2495/hackathon2016
0b7dfc9ce713ad98a878f69f2d167057682fde4b
[ "MIT" ]
1
2020-06-30T17:47:44.000Z
2020-06-30T17:47:44.000Z
classify_folder.py
chandan2495/hackathon2016
0b7dfc9ce713ad98a878f69f2d167057682fde4b
[ "MIT" ]
null
null
null
classify_folder.py
chandan2495/hackathon2016
0b7dfc9ce713ad98a878f69f2d167057682fde4b
[ "MIT" ]
4
2017-05-12T08:30:29.000Z
2020-10-28T01:22:13.000Z
from test_imagenet import classify_image import os import sys sys.path.insert(0, 'Scrapbook/python_scripts') import superclass as sc image_extensions = ["jpg", "jpeg", "png", "bmp"] album_superclass_map = { 'animal' : 'Animal', 'person' : 'Person', 'location' : 'Places', 'vehicle' : 'Vehicles', 'spo...
31.166667
70
0.675936
70fcdb0aa6074134073e1e94115d181f397bd394
1,967
py
Python
aliyun-python-sdk-drds/aliyunsdkdrds/request/v20171016/ModifyRdsReadWeightRequest.py
liuzheng/aliyun-openapi-python-sdk
1ba6743f3d6f2cef57ec9e3be1754b04293c3150
[ "Apache-2.0" ]
1
2021-03-08T02:59:17.000Z
2021-03-08T02:59:17.000Z
aliyun-python-sdk-drds/aliyunsdkdrds/request/v20171016/ModifyRdsReadWeightRequest.py
bricklayer-Liu/aliyun-openapi-python-sdk
20da2554de22679fc7c5462c483663e4d79512aa
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-drds/aliyunsdkdrds/request/v20171016/ModifyRdsReadWeightRequest.py
bricklayer-Liu/aliyun-openapi-python-sdk
20da2554de22679fc7c5462c483663e4d79512aa
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.125
80
0.766141
2566d71238257b6a248ca6c6388a66f21e1ac38e
3,091
py
Python
django/contrib/messages/api.py
MikeAmy/django
00cb9e13b4cf06ed2be27ee9e7fc18969ae69f7d
[ "PSF-2.0", "BSD-3-Clause" ]
1
2017-08-30T06:46:16.000Z
2017-08-30T06:46:16.000Z
django/contrib/messages/api.py
MikeAmy/django
00cb9e13b4cf06ed2be27ee9e7fc18969ae69f7d
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/contrib/messages/api.py
MikeAmy/django
00cb9e13b4cf06ed2be27ee9e7fc18969ae69f7d
[ "PSF-2.0", "BSD-3-Clause" ]
1
2018-07-23T12:13:04.000Z
2018-07-23T12:13:04.000Z
from django.contrib.messages import constants from django.contrib.messages.storage import default_storage from django.http import HttpRequest __all__ = ( 'add_message', 'get_messages', 'get_level', 'set_level', 'debug', 'info', 'success', 'warning', 'error', 'MessageFailure', ) class MessageFailure(E...
30.303922
80
0.671304
329d994b6b9046c508ed0f0e2fe03bf2c4677882
70
py
Python
HackerRank Solutions/Python/Math/Integers Come In All Sizes.py
DevashishPathrabe/Competetive-Coding
91049459359854b7834cbfb31415682600dc9c57
[ "MIT" ]
null
null
null
HackerRank Solutions/Python/Math/Integers Come In All Sizes.py
DevashishPathrabe/Competetive-Coding
91049459359854b7834cbfb31415682600dc9c57
[ "MIT" ]
null
null
null
HackerRank Solutions/Python/Math/Integers Come In All Sizes.py
DevashishPathrabe/Competetive-Coding
91049459359854b7834cbfb31415682600dc9c57
[ "MIT" ]
null
null
null
a,b,c,d = (int(input()) for _ in range(4)) print (pow(a,b)+pow(c,d))
17.5
25
0.557143
c747b46ab44ae3c928fff206bff2ae841f39a6b3
48
py
Python
main_3.py
JeonghyunKo/second_project
4c6074c8aeb226cbb2e0f8dce8b6163c35948b70
[ "MIT" ]
null
null
null
main_3.py
JeonghyunKo/second_project
4c6074c8aeb226cbb2e0f8dce8b6163c35948b70
[ "MIT" ]
null
null
null
main_3.py
JeonghyunKo/second_project
4c6074c8aeb226cbb2e0f8dce8b6163c35948b70
[ "MIT" ]
null
null
null
print("user 1") print("user 2") print("user 3")
12
15
0.625
387856b7a4490524f1bb322b4a429821bb6ba9ac
4,881
py
Python
src/time_travel/patchers/datetime_patcher.py
meircif/time-travel
99044a01d3cfb4ea4950432c2f044683ff3ece40
[ "MIT" ]
38
2017-08-01T07:57:40.000Z
2021-11-17T04:55:29.000Z
src/time_travel/patchers/datetime_patcher.py
meircif/time-travel
99044a01d3cfb4ea4950432c2f044683ff3ece40
[ "MIT" ]
32
2017-07-09T18:46:07.000Z
2020-07-30T06:31:40.000Z
src/time_travel/patchers/datetime_patcher.py
meircif/time-travel
99044a01d3cfb4ea4950432c2f044683ff3ece40
[ "MIT" ]
7
2017-07-22T07:44:29.000Z
2020-07-28T14:13:13.000Z
"""A patch to the datetime module.""" from .base_patcher import BasePatcher import sys import datetime try: import copy_reg as copyreg except ImportError: import copyreg _real_datetime = datetime.datetime _real_date = datetime.date def with_metaclass(meta, name, *bases): """Create a base class with a...
27.268156
76
0.625282
97b14b8948d01a780558bcaf02220cee031de9a3
11,207
py
Python
layeredmap.py
Xitog/teddy
aaa192bb254d2d76b00d0b869a56dd7d92c9208a
[ "MIT" ]
null
null
null
layeredmap.py
Xitog/teddy
aaa192bb254d2d76b00d0b869a56dd7d92c9208a
[ "MIT" ]
null
null
null
layeredmap.py
Xitog/teddy
aaa192bb254d2d76b00d0b869a56dd7d92c9208a
[ "MIT" ]
null
null
null
"""A map with different layers.""" import json from traceback import print_exc from sys import stdout def pretty_json(data, level=0, indent=4): "Pretty print some JSON." content = '' if isinstance(data, dict): content += '{\n' level += 1 count = 0 for key, val in data.items...
32.484058
88
0.510841
626190e0710277b6b898735fae9929f288d8a1e1
699
py
Python
ruddock/routes.py
calebsander/RuddockWebsite
e6497bfdecffdfb712c36085fa1df93d08380dd2
[ "MIT" ]
7
2015-01-31T20:07:23.000Z
2020-04-11T16:36:08.000Z
ruddock/routes.py
calebsander/RuddockWebsite
e6497bfdecffdfb712c36085fa1df93d08380dd2
[ "MIT" ]
103
2015-01-01T08:31:41.000Z
2022-02-14T06:17:58.000Z
ruddock/routes.py
mply/RuddockWebsite
63f1f25da5bef842b5b2337592186f8e23c1803b
[ "MIT" ]
8
2017-10-01T07:27:34.000Z
2020-05-04T01:49:30.000Z
import flask from ruddock import app from ruddock.auth_utils import is_full_member from ruddock.decorators import login_required try: from ruddock import secrets except ImportError: from ruddock import default_secrets as secrets @app.route('/') def home(): """The homepage of the site.""" return flask.render_t...
24.964286
58
0.74392
84e2a271582ba900a100ccd0e86332f612553fd7
10,106
py
Python
team_code/geometric_fusion_agent.py
Kait0/leaderboard
e44c169d541832439f98c70b33cfe6f7d89dfa31
[ "MIT" ]
447
2021-03-26T09:29:17.000Z
2022-03-30T03:03:35.000Z
leaderboard/team_code/geometric_fusion_agent.py
Kin-Zhang/mmfn
48a4817c9fb8bcf6ecb068e4c969e6b0c1a1a438
[ "MIT" ]
56
2021-04-21T03:12:50.000Z
2022-03-30T13:34:16.000Z
leaderboard/team_code/geometric_fusion_agent.py
Kin-Zhang/mmfn
48a4817c9fb8bcf6ecb068e4c969e6b0c1a1a438
[ "MIT" ]
82
2021-04-14T04:34:04.000Z
2022-03-29T07:35:15.000Z
import os import json import datetime import pathlib import time import cv2 import carla from collections import deque import torch import carla import numpy as np from PIL import Image from leaderboard.autoagents import autonomous_agent from geometric_fusion.model import GeometricFusion from geometric_fusion.config ...
35.090278
143
0.671581
ba88aa279e0c9d9fc77b828de5aac0f42e7676cf
5,625
py
Python
mmdet/datasets/extra_aug.py
daniel616/DL
b62087bb86bcfa4cdaa692bb0ae724d416761de3
[ "Apache-2.0" ]
2
2020-03-22T14:27:38.000Z
2020-06-20T02:35:14.000Z
mmdet/datasets/extra_aug.py
daniel616/DL
b62087bb86bcfa4cdaa692bb0ae724d416761de3
[ "Apache-2.0" ]
null
null
null
mmdet/datasets/extra_aug.py
daniel616/DL
b62087bb86bcfa4cdaa692bb0ae724d416761de3
[ "Apache-2.0" ]
null
null
null
import mmcv import numpy as np from numpy import random from mmdet.core.evaluation.bbox_overlaps import bbox_overlaps class PhotoMetricDistortion(object): def __init__(self, brightness_delta=32, contrast_range=(0.5, 1.5), saturation_range=(0.5, 1.5), ...
33.885542
78
0.510756
4344bf84902ac046295d960da163cb68fcc97210
1,705
py
Python
ntire2021/models/senet.py
solcummings/ntire2021-sar
25d60874632135daf39805837b850bba46c3f3a5
[ "Apache-2.0" ]
null
null
null
ntire2021/models/senet.py
solcummings/ntire2021-sar
25d60874632135daf39805837b850bba46c3f3a5
[ "Apache-2.0" ]
null
null
null
ntire2021/models/senet.py
solcummings/ntire2021-sar
25d60874632135daf39805837b850bba46c3f3a5
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn from models.model_base import InitializationMixin class SENet(nn.Module, InitializationMixin): """ SENet from arXiv:1709.01507 Squeeze-and-Excitation Networks Notes ----- Related papers Spatial SE arXiv:1803.02579 Concurrent Spatial and Channel Squeeze & Ex...
27.95082
86
0.628739
678aa82788b96892d585cbcfea4bbbc98bdb75ef
3,185
py
Python
xray/slice.py
jtgrassel/xray
684860bc268d7475a07f4754a4ec9c03889e4d68
[ "MIT" ]
null
null
null
xray/slice.py
jtgrassel/xray
684860bc268d7475a07f4754a4ec9c03889e4d68
[ "MIT" ]
null
null
null
xray/slice.py
jtgrassel/xray
684860bc268d7475a07f4754a4ec9c03889e4d68
[ "MIT" ]
3
2021-08-14T12:20:26.000Z
2021-09-21T21:05:58.000Z
import math import numpy as np def manhattan_distance(p1, p2, d=2): assert (len(p1) == len(p2)) all_distance = 0 for i in range(d): all_distance += abs(p1[i] - p2[i]) return all_distance def to_intersecting_lines(mesh, height): # find relevant triangles mask = np.zeros(len(mesh)) ...
30.333333
98
0.600314
a7532beb454de9fdc73c8fd567ef6b46a0f5b32f
999
py
Python
tests/unit/test_scriptgenerator.py
tksn/phoneauto
9b92226c5c5eeb606f4b3c462a8b654454eb203d
[ "MIT" ]
null
null
null
tests/unit/test_scriptgenerator.py
tksn/phoneauto
9b92226c5c5eeb606f4b3c462a8b654454eb203d
[ "MIT" ]
null
null
null
tests/unit/test_scriptgenerator.py
tksn/phoneauto
9b92226c5c5eeb606f4b3c462a8b654454eb203d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from mock import Mock from phoneauto.scriptgenerator import scriptgenerator def create_scriptgenerator(): d = Mock() d.get_screenshot_as_file = Mock() f = Mock() f.find_object_contains = Mock() conf = { 'devices': [d], ...
27
63
0.66967
17b1b72000da4f244e949e8f4c906de1d176c084
3,425
py
Python
mockportfolio/holdings.py
smacken/mockportfolio
bb7ef73ba19be52e22adf5b22e30fd1e9e0e585f
[ "MIT" ]
null
null
null
mockportfolio/holdings.py
smacken/mockportfolio
bb7ef73ba19be52e22adf5b22e30fd1e9e0e585f
[ "MIT" ]
297
2019-10-21T17:26:33.000Z
2021-07-19T17:19:23.000Z
mockportfolio/holdings.py
smacken/trading-mock-portfolio
bb7ef73ba19be52e22adf5b22e30fd1e9e0e585f
[ "MIT" ]
null
null
null
'''holdings generator''' import pandas as pd from pypfopt.efficient_frontier import EfficientFrontier from pypfopt import risk_models from pypfopt import expected_returns from pypfopt.discrete_allocation import DiscreteAllocation, get_latest_prices from .prices import Prices class Holdings(object): ''' trading ho...
42.8125
94
0.645255
a8e107a7d749b8d5977393ece0712ad1afdb031e
4,643
py
Python
src/ion/process/bootstrap/load_system_policy.py
scionrep/scioncc_new
086be085b69711ee24c4c86ed42f2109ca0db027
[ "BSD-2-Clause" ]
2
2015-10-05T20:36:35.000Z
2018-11-21T11:45:24.000Z
src/ion/process/bootstrap/load_system_policy.py
scionrep/scioncc_new
086be085b69711ee24c4c86ed42f2109ca0db027
[ "BSD-2-Clause" ]
21
2015-03-18T14:39:32.000Z
2016-07-01T17:16:29.000Z
src/ion/process/bootstrap/load_system_policy.py
scionrep/scioncc_new
086be085b69711ee24c4c86ed42f2109ca0db027
[ "BSD-2-Clause" ]
12
2015-03-18T10:53:49.000Z
2018-06-21T11:19:57.000Z
#!/usr/bin/env python """Process that loads the system policy""" __author__ = 'Stephen P. Henrie, Michael Meisinger' import os import yaml from pyon.core.exception import ContainerConfigError from pyon.core.governance import get_system_actor, get_system_actor_header from pyon.public import CFG, log, ImmediateProces...
46.89899
122
0.647211
8cbccc07b49fdc8c4d54c69cf1b646e8841d507c
4,514
py
Python
train.py
hatrix233/nl2sql_baseline
e1dc59385932b325569f127df7b27e9fdb1d63da
[ "BSD-3-Clause" ]
340
2019-06-10T09:49:39.000Z
2022-03-19T16:17:49.000Z
train.py
hatrix233/nl2sql_baseline
e1dc59385932b325569f127df7b27e9fdb1d63da
[ "BSD-3-Clause" ]
11
2019-06-10T12:31:48.000Z
2021-04-25T01:40:09.000Z
train.py
hatrix233/nl2sql_baseline
e1dc59385932b325569f127df7b27e9fdb1d63da
[ "BSD-3-Clause" ]
116
2019-06-10T09:40:40.000Z
2021-10-09T07:30:53.000Z
import torch from sqlnet.utils import * from sqlnet.model.sqlnet import SQLNet import argparse if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--bs', type=int, default=16, help='Batch size') parser.add_argument('--epoch', type=int, default=100, help='Epoch number') p...
44.693069
131
0.594152
74c6376ab1efa2f796963d42c0533079f995bf8b
3,989
py
Python
lib/yaki/plugins/_legacy/LatestEntries.py
rcarmo/yaki-tng
9f1094bc8e359be881fb5ca19042f352b8c8d8a1
[ "MIT" ]
2
2015-12-21T02:24:13.000Z
2016-03-08T06:45:58.000Z
lib/yaki/plugins/_legacy/LatestEntries.py
rcarmo/yaki-tng
9f1094bc8e359be881fb5ca19042f352b8c8d8a1
[ "MIT" ]
null
null
null
lib/yaki/plugins/_legacy/LatestEntries.py
rcarmo/yaki-tng
9f1094bc8e359be881fb5ca19042f352b8c8d8a1
[ "MIT" ]
1
2015-07-19T22:10:51.000Z
2015-07-19T22:10:51.000Z
#!/usr/bin/env python # encoding: utf-8 """ LatestEntries.py Created by Rui Carmo on 2011-09-02. Published under the MIT license. """ import re, md5, urlparse, time, cgi, traceback import yaki.Engine, yaki.Store, yaki.Locale from yaki.Utils import * from yaki.Layout import * from BeautifulSoup import * class LatestB...
34.991228
93
0.608172
a56faa1f02aed277b6d1fc63843fccca9476d17c
454
py
Python
plotly/validators/layout/polar/radialaxis/tickfont/_color.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
2
2020-03-24T11:41:14.000Z
2021-01-14T07:59:43.000Z
plotly/validators/layout/polar/radialaxis/tickfont/_color.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
null
null
null
plotly/validators/layout/polar/radialaxis/tickfont/_color.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
4
2019-06-03T14:49:12.000Z
2022-01-06T01:05:12.000Z
import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name='color', parent_name='layout.polar.radialaxis.tickfont', **kwargs ): super(ColorValidator, self).__init__( plotly_name=plo...
23.894737
66
0.601322
40553a4390bc75b65582cc185c3ad91a886bbff8
55,994
py
Python
Modified-PhosphoKin-LAMC1.py
AngelikiGal/Modified-PhosphoKin
f8f2b6f8f467a9f59cee43dac96ebd5198f2dc57
[ "BSD-2-Clause" ]
1
2020-10-07T14:21:11.000Z
2020-10-07T14:21:11.000Z
Modified-PhosphoKin-LAMC1.py
AngelikiGal/Modified-PhosphoKin
f8f2b6f8f467a9f59cee43dac96ebd5198f2dc57
[ "BSD-2-Clause" ]
null
null
null
Modified-PhosphoKin-LAMC1.py
AngelikiGal/Modified-PhosphoKin
f8f2b6f8f467a9f59cee43dac96ebd5198f2dc57
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ # 1st Function: Tool for searching kinase binding sites and potential phosphorylated residues in a protein. # 2nd Funtion: This scripts also categorizes the phosphorylated residues according to their location relatively to the proteins' known active sites (inside of, ...
51.559853
890
0.652713
3dbcc01b58fbaf96d5eea9d5027e91d1db314a29
269
py
Python
config.py
edubarbieri/ddm
0275ff7df3074631d9220725bd12b2becd963e1c
[ "MIT" ]
null
null
null
config.py
edubarbieri/ddm
0275ff7df3074631d9220725bd12b2becd963e1c
[ "MIT" ]
2
2021-03-25T22:20:12.000Z
2021-06-01T23:10:13.000Z
config.py
edubarbieri/ddm
0275ff7df3074631d9220725bd12b2becd963e1c
[ "MIT" ]
null
null
null
import yaml config = {} # read config file with open("config.yml", 'r') as stream: try: config = yaml.safe_load(stream) except yaml.YAMLError as exc: print("Error reading config file: ", exc) exit(1) def get_config(): return config
20.692308
49
0.624535
dcd655741a401bb95fab9902d11a17f683a2649e
45,201
py
Python
python/mgtdbp.py
epstabler/mgtdb
41e0018a2aebee90a5bdafe21dfac8d743aca4a7
[ "Apache-2.0" ]
9
2015-07-26T23:09:34.000Z
2021-01-20T23:54:55.000Z
python/mgtdbp.py
epstabler/mgtdb
41e0018a2aebee90a5bdafe21dfac8d743aca4a7
[ "Apache-2.0" ]
null
null
null
python/mgtdbp.py
epstabler/mgtdb
41e0018a2aebee90a5bdafe21dfac8d743aca4a7
[ "Apache-2.0" ]
7
2015-07-20T16:46:03.000Z
2021-08-14T02:01:17.000Z
""" file: mgtdbp.py minimalist grammar top-down beam parser, development version. This is a working, development version, with print routines and examples. Using NLTK installed under Python 2.7, you can start the read-parse loop by typing, in a terminal window: python mgtdbp.py grammar startCa...
32.194444
97
0.565784
fb355ec4af64545004ee2e9654f74bb767e387f9
33,874
py
Python
examples/ctrl/basic/lead_lag.py
pydae/pydae
8076bcfeb2cdc865a5fc58561ff8d246d0ed7d9d
[ "MIT" ]
1
2020-12-20T03:45:26.000Z
2020-12-20T03:45:26.000Z
examples/ctrl/basic/lead_lag.py
pydae/pydae
8076bcfeb2cdc865a5fc58561ff8d246d0ed7d9d
[ "MIT" ]
null
null
null
examples/ctrl/basic/lead_lag.py
pydae/pydae
8076bcfeb2cdc865a5fc58561ff8d246d0ed7d9d
[ "MIT" ]
null
null
null
import numpy as np import numba import scipy.optimize as sopt import json sin = np.sin cos = np.cos atan2 = np.arctan2 sqrt = np.sqrt sign = np.sign class lead_lag_class: def __init__(self): self.t_end = 10.000000 self.Dt = 0.0010000 self.decimation = 10.000000 self.itol ...
30.353047
178
0.491852
912db262ad6b5c5ed6f01fc7bf0894969fb374bc
932
py
Python
src/lambda/ppe-detector-function/main/utils/frame_downloader.py
gai6948/video-analytics-for-ppe-compliance
bb41ac010f5917bd7e85adfed689489f24830617
[ "Apache-2.0" ]
null
null
null
src/lambda/ppe-detector-function/main/utils/frame_downloader.py
gai6948/video-analytics-for-ppe-compliance
bb41ac010f5917bd7e85adfed689489f24830617
[ "Apache-2.0" ]
null
null
null
src/lambda/ppe-detector-function/main/utils/frame_downloader.py
gai6948/video-analytics-for-ppe-compliance
bb41ac010f5917bd7e85adfed689489f24830617
[ "Apache-2.0" ]
null
null
null
from typing import Any, Tuple, Dict import boto3 import timeit from aws_lambda_powertools.logging import Logger from aws_lambda_powertools.tracing import Tracer logger = Logger(service='face-detector', child=True) tracer = Tracer(service='face-detector') @tracer.capture_method(capture_response=False) def download_f...
30.064516
96
0.680258
7403b0864e2bdbdf23d83ab3a6d029d1743de893
36,060
py
Python
jinja2/parser.py
captainmalloc/jinja
540b260198285f0ed41fbe80c0b1b6f13be579c1
[ "BSD-3-Clause" ]
1
2020-07-06T05:53:18.000Z
2020-07-06T05:53:18.000Z
jinja2/parser.py
captainmalloc/jinja
540b260198285f0ed41fbe80c0b1b6f13be579c1
[ "BSD-3-Clause" ]
null
null
null
jinja2/parser.py
captainmalloc/jinja
540b260198285f0ed41fbe80c0b1b6f13be579c1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ jinja2.parser ~~~~~~~~~~~~~ Implements the template parser. :copyright: (c) 2017 by the Jinja Team. :license: BSD, see LICENSE for more details. """ from jinja2 import nodes from jinja2.exceptions import TemplateSyntaxError, TemplateAssertionError from jinja2.lexer impo...
39.713656
82
0.559013
1dc2475117c0ab3ba67abcc868afaf8cb91bea9c
4,199
py
Python
benchmark/startQiskit_noisy2667.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_noisy2667.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_noisy2667.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=4 # total number=40 import cirq import qiskit from qiskit.providers.aer import QasmSimulator from qiskit.test.mock import FakeVigo from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import ...
34.702479
140
0.654203
78f3d1419de5568be8b1d6bfd895e87b23bf907f
37,559
py
Python
synapse/lib/types.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
synapse/lib/types.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
synapse/lib/types.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
import json import base64 import logging import collections import regex import synapse.common as s_common import synapse.dyndeps as s_dyndeps import synapse.lib.time as s_time import synapse.lib.syntax as s_syntax import synapse.lib.modules as s_modules import synapse.lib.msgpack as s_msgpack import synapse.lookup...
29.999201
117
0.557097
7e354fdcd835e13d146b7880183792a39679b934
395
py
Python
topsecret/wsgi.py
TanCodes/TopSecrete
6727bf19caceda73393c9899bc0fe51b2750beff
[ "MIT" ]
null
null
null
topsecret/wsgi.py
TanCodes/TopSecrete
6727bf19caceda73393c9899bc0fe51b2750beff
[ "MIT" ]
null
null
null
topsecret/wsgi.py
TanCodes/TopSecrete
6727bf19caceda73393c9899bc0fe51b2750beff
[ "MIT" ]
null
null
null
""" WSGI config for topsecret project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SET...
23.235294
78
0.787342
f2163ea564896481fd07cc51e04bfd48bf63d724
1,060
py
Python
botoy/decorators/_queued_up.py
First-frost/botoy
20a6f32c61beb045a9dbea11f0b1744fc6a40a60
[ "MIT" ]
1
2021-06-17T10:20:45.000Z
2021-06-17T10:20:45.000Z
botoy/decorators/_queued_up.py
First-frost/botoy
20a6f32c61beb045a9dbea11f0b1744fc6a40a60
[ "MIT" ]
null
null
null
botoy/decorators/_queued_up.py
First-frost/botoy
20a6f32c61beb045a9dbea11f0b1744fc6a40a60
[ "MIT" ]
null
null
null
import functools import time from collections import defaultdict from queue import Queue from threading import Thread from botoy.log import logger class TaskThread(Thread): def __init__(self): super().__init__() self.tasks = Queue(maxsize=-1) self.setDaemon(True) self.start() ...
22.553191
58
0.609434
5a6e0bc0308d72f6efdcbbe1a232a38d09ae16a0
69
py
Python
{{cookiecutter.project_name}}/{{cookiecutter.app_name}}/api/resources/__init__.py
DevAerial/flask-api-template
6d3f745f2dacb793c4bdc6aaaceb86eb472efe55
[ "MIT" ]
null
null
null
{{cookiecutter.project_name}}/{{cookiecutter.app_name}}/api/resources/__init__.py
DevAerial/flask-api-template
6d3f745f2dacb793c4bdc6aaaceb86eb472efe55
[ "MIT" ]
null
null
null
{{cookiecutter.project_name}}/{{cookiecutter.app_name}}/api/resources/__init__.py
DevAerial/flask-api-template
6d3f745f2dacb793c4bdc6aaaceb86eb472efe55
[ "MIT" ]
null
null
null
from .ping import ping_namespace __all__ = [ 'ping_namespace', ]
13.8
32
0.710145
6136dd4840378b5de37875e850dfaa1054730bf9
6,343
py
Python
tests/test_send_recv_two_workers.py
pentschev/ucx-py
d701a3facd85ef2deece619a4f707fdebee36e3c
[ "BSD-3-Clause" ]
76
2019-06-08T04:03:39.000Z
2022-01-07T20:34:23.000Z
tests/test_send_recv_two_workers.py
rapidsai/ucx-py
e28d770aa0b47c0e63c2e7e61649f1b355560e8a
[ "BSD-3-Clause" ]
644
2019-06-04T23:06:02.000Z
2022-02-24T11:17:45.000Z
tests/test_send_recv_two_workers.py
pentschev/ucx-py
d701a3facd85ef2deece619a4f707fdebee36e3c
[ "BSD-3-Clause" ]
32
2019-08-14T09:22:02.000Z
2022-01-21T20:17:50.000Z
import asyncio import multiprocessing import os import random import numpy as np import pytest from utils import am_recv, am_send, get_cuda_devices, get_num_gpus, recv, send import ucp cupy = pytest.importorskip("cupy") rmm = pytest.importorskip("rmm") distributed = pytest.importorskip("distributed") cloudpickle = p...
27.458874
81
0.630301
1cbc305d4a15cd75f313c243d285e44a70273276
7,613
py
Python
src/transformers/data/datasets/squad.py
dmlap/transformers
79588e6fdb5af8add092fc27dd695ea1ebc68b18
[ "Apache-2.0" ]
77
2020-11-12T18:40:25.000Z
2022-03-27T06:41:30.000Z
src/transformers/data/datasets/squad.py
dmlap/transformers
79588e6fdb5af8add092fc27dd695ea1ebc68b18
[ "Apache-2.0" ]
7
2021-03-11T14:00:58.000Z
2022-01-18T05:51:22.000Z
src/transformers/data/datasets/squad.py
dmlap/transformers
79588e6fdb5af8add092fc27dd695ea1ebc68b18
[ "Apache-2.0" ]
23
2020-12-08T12:42:24.000Z
2022-02-11T13:55:24.000Z
import logging import os import time from dataclasses import dataclass, field from enum import Enum from typing import Dict, List, Optional, Union import torch from filelock import FileLock from torch.utils.data.dataset import Dataset from ...modeling_auto import MODEL_FOR_QUESTION_ANSWERING_MAPPING from ...tokenizat...
39.445596
128
0.635623
d951b9b1bd59e8dc6e41eacd39b47b838ef26a6f
502
py
Python
file_picker/wymeditor/widgets.py
caktus/django-file-picker
6b5503714ce6acb3f8adebd1d4867eb7d9d8690b
[ "BSD-3-Clause" ]
12
2015-12-24T10:12:33.000Z
2021-09-20T01:58:44.000Z
file_picker/wymeditor/widgets.py
caktus/django-file-picker
6b5503714ce6acb3f8adebd1d4867eb7d9d8690b
[ "BSD-3-Clause" ]
11
2016-08-31T18:28:02.000Z
2017-12-14T15:56:20.000Z
file_picker/wymeditor/widgets.py
caktus/django-file-picker
6b5503714ce6acb3f8adebd1d4867eb7d9d8690b
[ "BSD-3-Clause" ]
7
2015-12-24T10:12:52.000Z
2020-12-21T04:25:26.000Z
from file_picker.widgets import FilePickerWidget class WYMeditorWidget(FilePickerWidget): def __init__(self, pickers, *args, **kwargs): kwargs['classes'] = ['wymeditor'] super(WYMeditorWidget, self).__init__(pickers, *args, **kwargs) class Media: css = {"all": ("css/filepicker.overlay...
33.466667
71
0.623506
fad1ec108a7608a0411c633805889be4b8dc4cf2
1,580
py
Python
youtuatools/extractor/adobeconnect.py
Pagasis/YouTua
edb44b2065a7224f8b26aaf76166bf7287901567
[ "MIT" ]
47
2021-01-02T07:44:50.000Z
2022-02-28T22:02:13.000Z
youtuatools/extractor/adobeconnect.py
Pagasis/YouTua
edb44b2065a7224f8b26aaf76166bf7287901567
[ "MIT" ]
4
2021-02-07T03:35:13.000Z
2021-10-31T19:23:53.000Z
youtuatools/extractor/adobeconnect.py
Pagasis/YouTua
edb44b2065a7224f8b26aaf76166bf7287901567
[ "MIT" ]
8
2021-01-03T05:44:39.000Z
2021-11-01T05:46:32.000Z
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..compat import ( compat_parse_qs, compat_urlparse, ) class AdobeConnectIE(InfoExtractor): _VALID_URL = r"https?://\w+\.adobeconnect\.com/(?P<id>[\w-]+)" def _real_extract(self, url): video_id = se...
32.244898
84
0.458228
aec0ed959af42134c26851511fb4c0e33a4ade2c
869
py
Python
neighbor/urls.py
Barrack-coder/Neighborhood
5b5a304850b205962d6ddb975e6ae213a5a21ba4
[ "MIT" ]
null
null
null
neighbor/urls.py
Barrack-coder/Neighborhood
5b5a304850b205962d6ddb975e6ae213a5a21ba4
[ "MIT" ]
null
null
null
neighbor/urls.py
Barrack-coder/Neighborhood
5b5a304850b205962d6ddb975e6ae213a5a21ba4
[ "MIT" ]
null
null
null
"""neighbor URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-base...
33.423077
77
0.70771
058958c71b2d956d804f3b4a48f02e79f283ad47
6,321
py
Python
propagation/gen_guided_model/guided_model.py
naivete5656/WSISPDR
1dc4d1bf24a6ebf7efd3c75d3f1a9edbe849d38b
[ "MIT" ]
37
2019-10-09T09:42:24.000Z
2022-03-29T09:57:29.000Z
propagation/gen_guided_model/guided_model.py
naivete5656/WSISPDR
1dc4d1bf24a6ebf7efd3c75d3f1a9edbe849d38b
[ "MIT" ]
4
2020-02-26T06:49:02.000Z
2021-10-17T16:29:24.000Z
propagation/gen_guided_model/guided_model.py
naivete5656/WSISPDR
1dc4d1bf24a6ebf7efd3c75d3f1a9edbe849d38b
[ "MIT" ]
4
2019-10-18T07:34:30.000Z
2020-04-10T03:35:34.000Z
from types import MethodType import torch.nn as nn from .guided_parts import guide_relu from utils import local_maxima, gaus_filter from scipy.io import savemat import numpy as np import cv2 from torch.nn.modules import Module from collections import OrderedDict from itertools import islice import operator import torch...
33.444444
85
0.548647
9605126c5775e62303bf9a91c4ebe83781902489
673
py
Python
src/braket/_schemas/_version.py
indisoluble/amazon-braket-schemas-python
d08bab112c93d21d176a4f1b2ca5d1e9d995fdf1
[ "Apache-2.0" ]
1
2021-07-10T15:29:30.000Z
2021-07-10T15:29:30.000Z
src/braket/_schemas/_version.py
indisoluble/amazon-braket-schemas-python
d08bab112c93d21d176a4f1b2ca5d1e9d995fdf1
[ "Apache-2.0" ]
null
null
null
src/braket/_schemas/_version.py
indisoluble/amazon-braket-schemas-python
d08bab112c93d21d176a4f1b2ca5d1e9d995fdf1
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-2019 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" fil...
35.421053
78
0.73997
c77898e0019bba06f61d9af816a57a28762396ee
3,581
py
Python
filament_watch/web_server.py
rllynch/filament_watch
4db5d0c1ddb2498696b3f6e4bb86c16ad1182a3e
[ "MIT" ]
7
2016-01-12T04:39:35.000Z
2018-09-03T19:40:21.000Z
filament_watch/web_server.py
rllynch/filament_watch
4db5d0c1ddb2498696b3f6e4bb86c16ad1182a3e
[ "MIT" ]
2
2017-02-21T20:28:49.000Z
2018-01-24T19:09:29.000Z
filament_watch/web_server.py
rllynch/filament_watch
4db5d0c1ddb2498696b3f6e4bb86c16ad1182a3e
[ "MIT" ]
6
2016-09-29T22:22:58.000Z
2019-11-18T04:42:11.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ web_server.py Web server to serve filament_watch status """ ############################################################################## # # The MIT License (MIT) # # Copyright (c) 2015 Richard L. Lynch <rich@richlynch.com> # # Permission is hereby granted, free of...
34.432692
78
0.615191
0677076d937e4667c9c8f1be430bcebcbb3e0b1f
2,746
py
Python
streamad/process/tdigest_Thresholder.py
Fengrui-Liu/streamingTS
1c5fcb9751c44a5fc69dcb237b48d93204b721e9
[ "Apache-2.0" ]
null
null
null
streamad/process/tdigest_Thresholder.py
Fengrui-Liu/streamingTS
1c5fcb9751c44a5fc69dcb237b48d93204b721e9
[ "Apache-2.0" ]
null
null
null
streamad/process/tdigest_Thresholder.py
Fengrui-Liu/streamingTS
1c5fcb9751c44a5fc69dcb237b48d93204b721e9
[ "Apache-2.0" ]
null
null
null
from streamad.base import BaseDetector import numpy as np from typing import Type from tdigest import TDigest from collections import deque class TDigestThresholder: def __init__( self, detector: BaseDetector, percentile_up: float = 95, percentile_down: float = 5, is_global...
35.205128
153
0.624181
96f5e5a8fc63fc0b94e43763454bcc0e0c19c12e
466
py
Python
setup.py
konikvranik/prometheus_rpi_exporter
2af1188d216c30827ab53ccd2b0f586f9dcae080
[ "Apache-2.0" ]
null
null
null
setup.py
konikvranik/prometheus_rpi_exporter
2af1188d216c30827ab53ccd2b0f586f9dcae080
[ "Apache-2.0" ]
null
null
null
setup.py
konikvranik/prometheus_rpi_exporter
2af1188d216c30827ab53ccd2b0f586f9dcae080
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from distutils.core import setup setup(name='Prometheus RPi exporter', version='1.0', description='Prometheus exporter for RPi runtime statistics such as CPU temperature.', author='Petr Vraník', author_email='petr@vranik.name', url='https://github.com/konikvranik/pr...
33.285714
92
0.690987
f8a8fa9699cbf9ac14dd0e9e709b4b1ba83ee1af
369
py
Python
fit_app.py
mihalw28/fitness_app
ebec29ac2277e3abc8e18834825a191b8f0c6c2e
[ "MIT" ]
null
null
null
fit_app.py
mihalw28/fitness_app
ebec29ac2277e3abc8e18834825a191b8f0c6c2e
[ "MIT" ]
9
2019-05-07T08:21:58.000Z
2022-03-08T21:09:38.000Z
fit_app.py
mihalw28/fitness_app
ebec29ac2277e3abc8e18834825a191b8f0c6c2e
[ "MIT" ]
null
null
null
from datetime import datetime from app import create_app, db from app.models import Train, User app = create_app() application = app if __name__ == "__main__": application.run() @app.shell_context_processor def make_shell_context(): return {"db": db, "User": User, "Train": Train} @app.context_processor d...
17.571429
51
0.712737
2ba0b37c50d152c58d68750374899f07cd5f8ca5
1,191
py
Python
tests/cogs/test_verify_cog.py
lexicalunit/spellbot
17a4999d5e1def06246727ac5481230aa4a4557d
[ "MIT" ]
13
2020-07-03T01:20:54.000Z
2021-11-22T06:06:21.000Z
tests/cogs/test_verify_cog.py
lexicalunit/spellbot
17a4999d5e1def06246727ac5481230aa4a4557d
[ "MIT" ]
660
2020-06-26T02:52:18.000Z
2022-03-31T14:14:02.000Z
tests/cogs/test_verify_cog.py
lexicalunit/spellbot
17a4999d5e1def06246727ac5481230aa4a4557d
[ "MIT" ]
3
2020-07-12T06:18:39.000Z
2021-06-22T06:54:47.000Z
from unittest.mock import AsyncMock, MagicMock import discord import pytest from spellbot.cogs.verify_cog import VerifyCog from spellbot.database import DatabaseSession from spellbot.models import Verify from tests.mixins import InteractionContextMixin @pytest.mark.asyncio class TestCogVerify(InteractionContextMixi...
35.029412
89
0.713686
b87b6c7a8966b4f67c7886026f80db2e5b4046e8
17,146
py
Python
sift_PPCount.py
tuliopascoal/sift-defense
f97e1e4780ef124251e7903c97c4adb899780a4b
[ "Apache-2.0" ]
2
2021-11-08T09:33:43.000Z
2021-11-08T12:44:38.000Z
sift_PPCount.py
tuliopascoal/sift-defense
f97e1e4780ef124251e7903c97c4adb899780a4b
[ "Apache-2.0" ]
null
null
null
sift_PPCount.py
tuliopascoal/sift-defense
f97e1e4780ef124251e7903c97c4adb899780a4b
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2011 Nippon Telegraph and Telephone Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
30.838129
221
0.679109
95d5dcabb81b8e0db6319835f05176cb715b99f0
1,069
py
Python
demo_dispersion_basic.py
jairoruizsaenz/scattertext
5d96f62434057cc26ed90a1d0b314984e4ef90f8
[ "Apache-2.0" ]
1,823
2016-07-28T00:25:56.000Z
2022-03-30T12:33:57.000Z
demo_dispersion_basic.py
jairoruizsaenz/scattertext
5d96f62434057cc26ed90a1d0b314984e4ef90f8
[ "Apache-2.0" ]
92
2016-07-28T23:13:20.000Z
2022-01-24T03:53:38.000Z
demo_dispersion_basic.py
jairoruizsaenz/scattertext
5d96f62434057cc26ed90a1d0b314984e4ef90f8
[ "Apache-2.0" ]
271
2016-12-26T12:56:08.000Z
2022-03-24T19:35:13.000Z
import statsmodels.api as sm from sklearn.neighbors import KNeighborsRegressor import scattertext as st df = st.SampleCorpora.ConventionData2012.get_data().assign( parse=lambda df: df.text.apply(st.whitespace_nlp_with_sentences) ) corpus = st.CorpusWithoutCategoriesFromParsedDocuments( df, parsed_col='parse'...
28.131579
92
0.723106
ce2b2b3dc42eebfaa731ba6890341bd8e6fe6bcd
15,253
py
Python
tf_agents/experimental/examples/ppo/schulman17/train_eval_lib.py
ngroves08/agents
cdb7a94124a1bc756217ad868b1aa49c11dc26bf
[ "Apache-2.0" ]
1
2021-04-19T02:28:24.000Z
2021-04-19T02:28:24.000Z
tf_agents/experimental/examples/ppo/schulman17/train_eval_lib.py
ngroves08/agents
cdb7a94124a1bc756217ad868b1aa49c11dc26bf
[ "Apache-2.0" ]
null
null
null
tf_agents/experimental/examples/ppo/schulman17/train_eval_lib.py
ngroves08/agents
cdb7a94124a1bc756217ad868b1aa49c11dc26bf
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The TF-Agents 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
41.224324
80
0.745427
ac84ac6f5a21a9ae4d4ad5893ff2485d4a7cbcc2
1,534
py
Python
simulation_sequence/sequence_bottleneck/plot_overlap_eachpos.py
TatsuyaHaga/laplacian_associative_memory_codes
74679a5bb6799090fe2aaf202ee6c7242e06e67f
[ "MIT" ]
1
2021-07-26T08:28:10.000Z
2021-07-26T08:28:10.000Z
simulation_sequence/sequence_overrepresentation/plot_overlap_eachpos.py
TatsuyaHaga/laplacian_associative_memory_codes
74679a5bb6799090fe2aaf202ee6c7242e06e67f
[ "MIT" ]
null
null
null
simulation_sequence/sequence_overrepresentation/plot_overlap_eachpos.py
TatsuyaHaga/laplacian_associative_memory_codes
74679a5bb6799090fe2aaf202ee6c7242e06e67f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys sys.path.append("../") import plotlib import numpy import pylab import networkx import pickle fname=sys.argv[1] m_time=numpy.loadtxt(fname, delimiter=",") m_time[m_time<0]=0.0 pos=numpy.loadtxt(sys.argv[2], delimiter=",").astype(int) Npos=m_time.shape[1] m_pos=numpy.zeros([Npos,Npo...
27.890909
67
0.694263
bad518ea79c48bc372de1ccfa35157cc22fe1c8f
67
py
Python
src/utils/topo.py
mor1/reckon
7b40ba79f90b5767430c0b8d90e6ea0c5b2a461b
[ "MIT" ]
8
2021-03-30T12:28:33.000Z
2022-02-08T06:36:14.000Z
src/utils/topo.py
mor1/reckon
7b40ba79f90b5767430c0b8d90e6ea0c5b2a461b
[ "MIT" ]
1
2021-04-12T16:18:00.000Z
2021-04-12T16:18:00.000Z
src/utils/topo.py
mor1/reckon
7b40ba79f90b5767430c0b8d90e6ea0c5b2a461b
[ "MIT" ]
1
2021-03-29T21:38:19.000Z
2021-03-29T21:38:19.000Z
def contain_in_cgroup(grp): pid = os.getpid() grp.add(pid)
16.75
27
0.641791
89ff519d08c81ec47e6b93e18e294013f02a6c24
3,592
py
Python
08_learning.py
vilas4485/Neural-Network-using-Scikit
51bb537cdb02e902d0c47f94216f86efd71ee437
[ "MIT" ]
2
2018-05-04T16:07:26.000Z
2018-11-17T00:07:38.000Z
08_learning.py
vilas4485/Neural-Network-using-Scikit
51bb537cdb02e902d0c47f94216f86efd71ee437
[ "MIT" ]
null
null
null
08_learning.py
vilas4485/Neural-Network-using-Scikit
51bb537cdb02e902d0c47f94216f86efd71ee437
[ "MIT" ]
9
2018-03-06T13:53:56.000Z
2022-02-23T13:50:57.000Z
import os import numpy as np import matplotlib.pyplot as plt from mnist import load_mnist from functions import * class TwoLayerNet: def __init__(self, input_size, hidden_size, output_size, weight_init_std=0.01): self.params = {} self.params['W1'] = weight_init_std * np.random.randn(input_size, h...
28.967742
87
0.615813
bf253f69f80fef497fa099acbae004b228790867
391
py
Python
sistema/setup.py
rdenadai/Lotofacil
3f0144619a9f2a8ccd5792907c27c9cc4eafc38f
[ "MIT" ]
null
null
null
sistema/setup.py
rdenadai/Lotofacil
3f0144619a9f2a8ccd5792907c27c9cc4eafc38f
[ "MIT" ]
null
null
null
sistema/setup.py
rdenadai/Lotofacil
3f0144619a9f2a8ccd5792907c27c9cc4eafc38f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #!/usr/bin/env python from distutils.core import setup from Cython.Build import cythonize import os LOCAL_INSTANCE = lambda *args: os.path.join(os.path.dirname(__file__), *args) PROJECT_PATH = os.path.dirname(os.path.abspath(__file__)) print os.path.join(PROJECT_PATH, 'importar.pyx') setup( ...
26.066667
77
0.746803
faf93c3f0e99fad70b7cb48ffd0bed98555261a3
303
py
Python
data/multilingual/Latn.IDO/Sans_12/pdf_to_json_test_Latn.IDO_Sans_12.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
1
2021-09-19T19:47:35.000Z
2021-09-19T19:47:35.000Z
data/multilingual/Latn.IDO/Sans_12/pdf_to_json_test_Latn.IDO_Sans_12.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
data/multilingual/Latn.IDO/Sans_12/pdf_to_json_test_Latn.IDO_Sans_12.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
import pdf_to_json as p2j import json url = "file:data/multilingual/Latn.IDO/Sans_12/udhr_Latn.IDO_Sans_12.pdf" lConverter = p2j.pdf_to_json.pdf_to_json_converter() lConverter.mImageHashOnly = True lDict = lConverter.convert(url) print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
30.3
73
0.811881
02f4be186d53c5313d3c5160408b0301836d579c
350
py
Python
main.py
Ponce-1/SeniorProject-Clone
633f32798ac192c5bf7636212115cc7c1ec0e7a0
[ "MIT" ]
null
null
null
main.py
Ponce-1/SeniorProject-Clone
633f32798ac192c5bf7636212115cc7c1ec0e7a0
[ "MIT" ]
null
null
null
main.py
Ponce-1/SeniorProject-Clone
633f32798ac192c5bf7636212115cc7c1ec0e7a0
[ "MIT" ]
null
null
null
from yoloParkingDetector import yoloParkingDetector vid = "model.avi" classFile = "yolov3.txt" weightsFile = "yolov3.weights" configFile = "yolov3.cfg" yml = "parking.yml" json = "parkingData.json" # Pass in zero as first argument for live feed myDetector = yoloParkingDetector(vid, classFile, weightsFile, configFile...
25
84
0.771429
b91e7e6236dec68d5d79f93a59b30ca2f0b0d7e2
677
py
Python
tests/functional/test_app_main.py
Alex-T13/sts_13_on_FastAPI
aab2a5b542b75230c7f0d7bdcdad292f424c638c
[ "MIT" ]
3
2020-11-03T23:49:28.000Z
2020-11-13T07:25:33.000Z
tests/functional/test_app_main.py
Alex-T13/sts_13_on_FastAPI
aab2a5b542b75230c7f0d7bdcdad292f424c638c
[ "MIT" ]
1
2020-11-05T11:17:40.000Z
2020-11-05T11:17:40.000Z
tests/functional/test_app_main.py
Alex-T13/sts_13_without_FastAPI
aab2a5b542b75230c7f0d7bdcdad292f424c638c
[ "MIT" ]
1
2021-01-26T19:45:37.000Z
2021-01-26T19:45:37.000Z
import pytest from tests.functional.pages.main import MainPage from tests.functional.util.consts import URL_LANDING from tests.functional.util.util import screenshot_on_failure @pytest.mark.functional @screenshot_on_failure def test(browser, request): page = MainPage(browser, URL_LANDING) validate_title(pag...
23.344828
60
0.734121
c753e9a392b583df5284d620c16fdc16d1a76e56
1,335
py
Python
lisa/tools/git.py
squirrelsc/LISA
91ee86f1aa391b9290c3ab80efde55d75a26b8d7
[ "MIT" ]
1
2022-03-15T01:48:29.000Z
2022-03-15T01:48:29.000Z
lisa/tools/git.py
squirrelsc/LISA
91ee86f1aa391b9290c3ab80efde55d75a26b8d7
[ "MIT" ]
null
null
null
lisa/tools/git.py
squirrelsc/LISA
91ee86f1aa391b9290c3ab80efde55d75a26b8d7
[ "MIT" ]
null
null
null
import pathlib import re from lisa.executable import Tool from lisa.operating_system import Linux from lisa.util import LisaException, get_matched_str class Git(Tool): CODE_FOLDER_PATTERN = re.compile(r"Cloning into '(.+)'") @property def command(self) -> str: return "git" @property def...
30.340909
84
0.62397
9662060b0e81bb18132c8f1b311ed92fbf0462bc
16,268
py
Python
packing_tape/field_classes.py
psobot/packing-tape
62a3ac9ddb1df4cdf8ca753e460da44b4c5ac6d5
[ "MIT" ]
3
2018-07-06T04:34:46.000Z
2021-05-02T04:54:02.000Z
packing_tape/field_classes.py
psobot/packing-tape
62a3ac9ddb1df4cdf8ca753e460da44b4c5ac6d5
[ "MIT" ]
null
null
null
packing_tape/field_classes.py
psobot/packing-tape
62a3ac9ddb1df4cdf8ca753e460da44b4c5ac6d5
[ "MIT" ]
null
null
null
from struct import unpack_from, pack, calcsize from bases import BinaryProperty, \ LogicalProperty, \ DummyProperty, \ Nameable, \ Validatable, \ Parseable, \ Serializable, \ Storable, \ StorageTarget class ByteAlignedStructField( property, BinaryProperty, LogicalProperty, ...
26.978441
79
0.564482
e2f53f8a279f27b22532899f4c07a671e59846b9
1,237
py
Python
dwg/config.py
revsic/torch-diffusion-wavegan
e72765abe238c6d3e29d82e8e17a8f33f06ab6b6
[ "MIT" ]
12
2022-02-28T06:46:11.000Z
2022-03-20T05:42:20.000Z
dwg/config.py
revsic/torch-diffusion-wavegan
e72765abe238c6d3e29d82e8e17a8f33f06ab6b6
[ "MIT" ]
null
null
null
dwg/config.py
revsic/torch-diffusion-wavegan
e72765abe238c6d3e29d82e8e17a8f33f06ab6b6
[ "MIT" ]
3
2022-03-01T01:24:53.000Z
2022-03-20T03:38:07.000Z
import numpy as np class Config: """DiffusionWaveGAN configurations. """ def __init__(self, mel: int): """Initializer. Args: mel: spectrogram channels. """ self.mel = mel # diffusion steps self.steps = 4 # schedules self.interna...
21.701754
51
0.47696
3df7532f0c55396a3779628248426f7fbd8b62aa
373
py
Python
preprocessor/cleaner.py
mmcenta/missing-link
d4edea5c2a18ac90004d33757d93769af8bc3251
[ "MIT" ]
null
null
null
preprocessor/cleaner.py
mmcenta/missing-link
d4edea5c2a18ac90004d33757d93769af8bc3251
[ "MIT" ]
null
null
null
preprocessor/cleaner.py
mmcenta/missing-link
d4edea5c2a18ac90004d33757d93769af8bc3251
[ "MIT" ]
null
null
null
from string import punctuation, digits class Cleaner: def __init__(self, filter=(punctuation + digits)): self.filter = filter def clean(self, text): text = text.replace("\n", " ").replace("\r", " ") text = text.translate(str.maketrans(dict.fromkeys(self.filter, " "))) return te...
33.909091
77
0.624665
5ba9d9a483b28812419b5701357c84bf86a46307
49,794
py
Python
py/dbutils.py
tiaodan/bugcount_flask
7cb8aaf486e7d845acb3d5f42e73919ee939d979
[ "MulanPSL-1.0" ]
null
null
null
py/dbutils.py
tiaodan/bugcount_flask
7cb8aaf486e7d845acb3d5f42e73919ee939d979
[ "MulanPSL-1.0" ]
null
null
null
py/dbutils.py
tiaodan/bugcount_flask
7cb8aaf486e7d845acb3d5f42e73919ee939d979
[ "MulanPSL-1.0" ]
null
null
null
import xlrd import xlwt import pymysql import json # 引入python中的traceback模块,跟踪错误 import traceback import os import xlsxwriter from py import utils from collections import Counter from datetime import datetime # 数据库配置 """ db_host = 'localhost' db_user = 'root' db_passwd = 'sunkaisens' db_dbname = 'bugcount' """ print('...
35.567143
539
0.556111
fe5fcb4f14ca4883aa4b03eabff24efa4c3fa0e1
1,501
py
Python
mkt/purchase/tests/test_webpay_tasks.py
diox/zamboni
3d3bebdffe034a5cd97a66cedc32a598264c2e42
[ "BSD-3-Clause" ]
null
null
null
mkt/purchase/tests/test_webpay_tasks.py
diox/zamboni
3d3bebdffe034a5cd97a66cedc32a598264c2e42
[ "BSD-3-Clause" ]
null
null
null
mkt/purchase/tests/test_webpay_tasks.py
diox/zamboni
3d3bebdffe034a5cd97a66cedc32a598264c2e42
[ "BSD-3-Clause" ]
null
null
null
import uuid from django.core import mail from mock import patch from nose.tools import eq_, ok_ import mkt from mkt.purchase import tasks as tasks from mkt.purchase.models import Contribution from mkt.purchase.tests.utils import PurchaseTest class TestReceiptEmail(PurchaseTest): def setUp(self): supe...
34.906977
78
0.584943
d9a3c0253584a9a81361095d2d12d85951e67b05
1,444
py
Python
Leetcode/105.construct-binary-tree-from-preorder-and-inorder-traversal.py
EdwaRen/Competitve-Programming
e8bffeb457936d28c75ecfefb5a1f316c15a9b6c
[ "MIT" ]
1
2021-05-03T21:48:25.000Z
2021-05-03T21:48:25.000Z
Leetcode/105.construct-binary-tree-from-preorder-and-inorder-traversal.py
EdwaRen/Competitve_Programming
e8bffeb457936d28c75ecfefb5a1f316c15a9b6c
[ "MIT" ]
null
null
null
Leetcode/105.construct-binary-tree-from-preorder-and-inorder-traversal.py
EdwaRen/Competitve_Programming
e8bffeb457936d28c75ecfefb5a1f316c15a9b6c
[ "MIT" ]
null
null
null
# Definition for a binary tree node. class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution(object): def buildTree(self, preorder, inorder): # Create an index to map values to their index in the inorder array. index_...
32.088889
103
0.641274
5ea07fb5351baf806b91e0658279c31ba801cd18
2,583
py
Python
sdk/python/pulumi_azure_native/eventgrid/v20200401preview/list_topic_shared_access_keys.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/eventgrid/v20200401preview/list_topic_shared_access_keys.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/eventgrid/v20200401preview/list_topic_shared_access_keys.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities __...
32.696203
168
0.665892
abe6646d78e5b582d922bc0bb0a1584ee3536d43
4,361
py
Python
pytorch-frontend/caffe2/contrib/fakelowp/test/test_layernorm_nnpi_fp16.py
AndreasKaratzas/stonne
2915fcc46cc94196303d81abbd1d79a56d6dd4a9
[ "MIT" ]
40
2021-06-01T07:37:59.000Z
2022-03-25T01:42:09.000Z
pytorch-frontend/caffe2/contrib/fakelowp/test/test_layernorm_nnpi_fp16.py
AndreasKaratzas/stonne
2915fcc46cc94196303d81abbd1d79a56d6dd4a9
[ "MIT" ]
14
2021-06-01T11:52:46.000Z
2022-03-25T02:13:08.000Z
pytorch-frontend/caffe2/contrib/fakelowp/test/test_layernorm_nnpi_fp16.py
AndreasKaratzas/stonne
2915fcc46cc94196303d81abbd1d79a56d6dd4a9
[ "MIT" ]
7
2021-07-20T19:34:26.000Z
2022-03-13T21:07:36.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np import caffe2.python.fakelowp.init_shared_libs # noqa from caffe2.proto import caffe2_pb2 from caffe2.python import core from caffe2.python import wor...
35.455285
87
0.58404
bf7b8b2b0506ebf5758d2eda199b1395e39e6165
308
py
Python
salt/output/yaml_out.py
z9g/salt
26cc7ff467fd66cc7ac37a37fa3bcab42aa5ea4e
[ "Apache-2.0" ]
1
2017-11-19T06:56:46.000Z
2017-11-19T06:56:46.000Z
salt/output/yaml_out.py
z9g/salt
26cc7ff467fd66cc7ac37a37fa3bcab42aa5ea4e
[ "Apache-2.0" ]
null
null
null
salt/output/yaml_out.py
z9g/salt
26cc7ff467fd66cc7ac37a37fa3bcab42aa5ea4e
[ "Apache-2.0" ]
null
null
null
''' Output data in YAML, this outputter defaults to printing in YAML block mode for better readability. ''' # Third Party libs import yaml def __virtual__(): return 'yaml' def output(data): ''' Print out YAML using the block mode ''' return yaml.dump(data, default_flow_style=False)
16.210526
75
0.691558
39a435d4904a7a27d2a6184acb52353ab03027d2
3,965
py
Python
data_api/StockData/database/postgreSQL.py
powerlim2/project_free_insight
411bee0b36c1ffd6cf3644269a2056cbc71d44ba
[ "BSD-3-Clause" ]
2
2020-08-23T20:21:08.000Z
2021-01-16T00:21:43.000Z
data_api/StockData/database/postgreSQL.py
powerlim2/project_free_insight
411bee0b36c1ffd6cf3644269a2056cbc71d44ba
[ "BSD-3-Clause" ]
null
null
null
data_api/StockData/database/postgreSQL.py
powerlim2/project_free_insight
411bee0b36c1ffd6cf3644269a2056cbc71d44ba
[ "BSD-3-Clause" ]
null
null
null
from query.postgreSqlQuery import PostgreSqlQuery from schema import tableSchema import psycopg2 import database import datetime CURRENT_DATE = datetime.datetime.now().strftime('%Y-%m-%d') class PostgreSQL(database.DB): """ Store Stock data into PostgreSQL DB Static: db_path: db access path ...
34.780702
150
0.680454
61c241af78d5b01060d4c0ee7283d3b5a71caecb
1,875
py
Python
Language-Detector/src/helper.py
EKarton/English-French-Translator
da9cecce49498c4f79946a631206985f99daaed3
[ "MIT" ]
1
2021-07-10T04:49:23.000Z
2021-07-10T04:49:23.000Z
Language-Detector/src/helper.py
EKarton/English-French-Translator
da9cecce49498c4f79946a631206985f99daaed3
[ "MIT" ]
7
2022-01-13T02:37:56.000Z
2022-03-12T01:00:11.000Z
Language-Detector/src/helper.py
EKarton/English-French-Translator
da9cecce49498c4f79946a631206985f99daaed3
[ "MIT" ]
1
2020-09-05T10:45:52.000Z
2020-09-05T10:45:52.000Z
import sys import argparse import os import gzip import torch from torch import nn import torch.nn.functional as F class ModelCommandLineParser: def __init__(self): self.parser = argparse.ArgumentParser(description=__doc__) def get_options(self, args): return self.parser.parse_args(args) ...
29.296875
84
0.589867
f8b740964dfcbfed9f9a749b0ca2b544797abb8f
1,211
py
Python
setup.py
raccoongang/xblock-in-video-collaboration
c3b46dc99bfe3198ec3648228fa073b0e1fc00df
[ "Apache-2.0" ]
null
null
null
setup.py
raccoongang/xblock-in-video-collaboration
c3b46dc99bfe3198ec3648228fa073b0e1fc00df
[ "Apache-2.0" ]
4
2020-10-08T13:03:12.000Z
2022-01-19T02:05:55.000Z
setup.py
raccoongang/xblock-in-video-collaboration
c3b46dc99bfe3198ec3648228fa073b0e1fc00df
[ "Apache-2.0" ]
1
2020-10-08T12:59:28.000Z
2020-10-08T12:59:28.000Z
"""Setup for annoto XBlock.""" import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() def package_data(pkg, roots): """Generic function to find package_data. All of the files under each of the `roots` will be declared a...
23.745098
91
0.610239
b7ee444077f71639f7d2b19cbbb60c63ffff3025
13,912
py
Python
venv/Lib/site-packages/mpl_toolkits/axes_grid1/parasite_axes.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
603
2020-12-23T13:49:32.000Z
2022-03-31T23:38:03.000Z
venv/Lib/site-packages/mpl_toolkits/axes_grid1/parasite_axes.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
387
2020-12-15T14:54:04.000Z
2022-03-31T07:00:21.000Z
venv/Lib/site-packages/mpl_toolkits/axes_grid1/parasite_axes.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
35
2021-03-26T03:12:04.000Z
2022-03-23T10:15:10.000Z
import functools from matplotlib import _api import matplotlib.artist as martist import matplotlib.transforms as mtransforms from matplotlib.axes import subplot_class_factory from matplotlib.transforms import Bbox from .mpl_axes import Axes class ParasiteAxesBase: def __init__(self, parent_axes, aux_transform=N...
35.580563
78
0.643186
2fc43e895a66ed08c4272e696a4bb08c264b2157
19,037
py
Python
fall_2020/hw5_release/seam_carving.py
Victarry/CS131_release
da6497e4a6aa158950ed87033e6188fc8107f9f8
[ "MIT" ]
null
null
null
fall_2020/hw5_release/seam_carving.py
Victarry/CS131_release
da6497e4a6aa158950ed87033e6188fc8107f9f8
[ "MIT" ]
null
null
null
fall_2020/hw5_release/seam_carving.py
Victarry/CS131_release
da6497e4a6aa158950ed87033e6188fc8107f9f8
[ "MIT" ]
null
null
null
""" CS131 - Computer Vision: Foundations and Applications Assignment 4 Author: Donsuk Lee (donlee90@stanford.edu) Date created: 09/2017 Last modified: 10/16/2020 Python Version: 3.5+ """ import numpy as np from skimage import color def energy_function(image): """Computes energy of the input image. For each ...
32.266102
139
0.612281
ac25259cd7340f2f8478a12b051fd056fee988ad
35,409
py
Python
tools/c7n_azure/c7n_azure/filters.py
MehdiZonjy/cloud-custodian
9185eda70c4ee4d14190e62290ecfdf229ef42ff
[ "Apache-2.0" ]
2
2017-09-20T15:43:40.000Z
2018-12-22T12:03:07.000Z
tools/c7n_azure/c7n_azure/filters.py
MehdiZonjy/cloud-custodian
9185eda70c4ee4d14190e62290ecfdf229ef42ff
[ "Apache-2.0" ]
2
2018-01-20T01:36:39.000Z
2021-02-01T15:35:33.000Z
tools/c7n_azure/c7n_azure/filters.py
MehdiZonjy/cloud-custodian
9185eda70c4ee4d14190e62290ecfdf229ef42ff
[ "Apache-2.0" ]
3
2017-09-21T13:36:46.000Z
2021-09-20T16:38:29.000Z
# Copyright 2015-2018 Capital One Services, LLC # # 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 ...
34.545366
103
0.599311
5c0911ddfce99df154bd26199c4c7570917b900c
8,183
py
Python
text/g2p2_demo.py
DSAIL-SKKU/GST-Tacotron
07f1c5d2fc8b2f2dcdd8f145b184887b35b5b0d9
[ "MIT" ]
2
2020-04-16T12:00:53.000Z
2020-04-22T18:59:35.000Z
text/g2p2_demo.py
DSAIL-SKKU/GST-Tacotron
07f1c5d2fc8b2f2dcdd8f145b184887b35b5b0d9
[ "MIT" ]
null
null
null
text/g2p2_demo.py
DSAIL-SKKU/GST-Tacotron
07f1c5d2fc8b2f2dcdd8f145b184887b35b5b0d9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' g2p.py ~~~~~~~~~~ This script converts Korean graphemes to romanized phones and then to pronunciation. (1) graph2phone: convert Korean graphemes to romanized phones (2) phone2prono: convert romanized phones to pronunciation (3) graph2phone: convert Korean graphemes to pronunciati...
28.217241
89
0.527802
a08e96ad6005a1a828ac587ed4726db01ce6eca3
8,136
py
Python
modelsDummyData.py
Rahul-RB/titanium-silver
7d62e194e26adf15e26f6a84cbfc454cf5db5a7e
[ "MIT" ]
1
2019-09-13T18:55:43.000Z
2019-09-13T18:55:43.000Z
modelsDummyData.py
Rahul-RB/titanium-silver
7d62e194e26adf15e26f6a84cbfc454cf5db5a7e
[ "MIT" ]
1
2019-04-22T15:49:49.000Z
2019-04-22T15:49:50.000Z
modelsDummyData.py
Rahul-RB/titanium-silver
7d62e194e26adf15e26f6a84cbfc454cf5db5a7e
[ "MIT" ]
null
null
null
import argparse import os from server.flaskr import db from server.flaskr.models import models from uuid import uuid4 parser = argparse.ArgumentParser() parser.add_argument("--dir", help="Enter project root directory,\n\ eg if titanium_silver is in: /home/rahul/, enter /home/rahul/\n\ If you are already in the pr...
19.417661
83
0.703663
2886242a2051a35fb9cd2ab4ef0604e1b510a8ef
6,780
bzl
Python
repositories.bzl
wtzenb/grpc-gateway
d88f9573560a91d26e759852a849e525bf2ec31f
[ "BSD-3-Clause" ]
null
null
null
repositories.bzl
wtzenb/grpc-gateway
d88f9573560a91d26e759852a849e525bf2ec31f
[ "BSD-3-Clause" ]
7
2021-05-11T15:39:59.000Z
2022-03-02T08:50:30.000Z
api/grpc-gateway/repositories.bzl
chrispaynes/GatewayTodo
8b775bd4bfe00a6b23014f1b910f3f2cf82e2526
[ "MIT" ]
null
null
null
load("@bazel_gazelle//:deps.bzl", "go_repository") def go_repositories(): go_repository( name = "co_honnef_go_tools", importpath = "honnef.co/go/tools", sum = "h1:/hemPrYIhOhy8zYrNj+069zDB68us2sMGsfkFJO0iZs=", version = "v0.0.0-20190523083050-ea95bdfd59fc", ) go_repository( ...
36.256684
74
0.637021
09c83abf2349aeb0416fa9cd05503084cc409876
3,112
py
Python
ts_utils/matrix.py
devjeetr/ts_utils
a8bc65ca28be7bbf9ef9ba9509325194aefb1c3a
[ "Apache-2.0" ]
2
2021-12-21T02:49:52.000Z
2022-03-07T19:40:55.000Z
ts_utils/matrix.py
devjeetr/ts_utils
a8bc65ca28be7bbf9ef9ba9509325194aefb1c3a
[ "Apache-2.0" ]
1
2022-03-07T19:56:24.000Z
2022-03-07T19:56:24.000Z
ts_utils/matrix.py
devjeetr/ts_utils
a8bc65ca28be7bbf9ef9ba9509325194aefb1c3a
[ "Apache-2.0" ]
null
null
null
"""Contains utilities to convert tree_sitter trees into scipy sparse matrices. """ from typing import Tuple from scipy.sparse import coo_matrix from tree_sitter import Node, TreeCursor from ts_utils.core import hash_node from ts_utils.iter import (TraversalFilter, default_traversal_filter, ...
28.550459
78
0.586761
4b76cb8879031e86d03c4c1c64c854270900ddaf
25,132
py
Python
dependencies/panda/direct/leveleditor/ObjectPropertyUI.py
SuperM0use24/Project-Altis
8dec7518a4d3f902cee261fd522ebebc3c171a42
[ "Apache-2.0" ]
null
null
null
dependencies/panda/direct/leveleditor/ObjectPropertyUI.py
SuperM0use24/Project-Altis
8dec7518a4d3f902cee261fd522ebebc3c171a42
[ "Apache-2.0" ]
null
null
null
dependencies/panda/direct/leveleditor/ObjectPropertyUI.py
SuperM0use24/Project-Altis
8dec7518a4d3f902cee261fd522ebebc3c171a42
[ "Apache-2.0" ]
null
null
null
""" UI for object property control """ import wx import os import math from wx.lib.embeddedimage import PyEmbeddedImage from wx.lib.scrolledpanel import ScrolledPanel from wx.lib.agw.cubecolourdialog import * from direct.wxwidgets.WxSlider import * from panda3d.core import * from . import ObjectGlobals as OG from . im...
38.546012
135
0.601186
3bdbc57e6c9160968d901e24d36de53e168f646a
1,454
py
Python
quiz/migrations/0002_auto_20170613_1345.py
mblacklock/sohkahtoa
89623b436dc1adf482308f22aa1eba81db343fde
[ "MIT" ]
null
null
null
quiz/migrations/0002_auto_20170613_1345.py
mblacklock/sohkahtoa
89623b436dc1adf482308f22aa1eba81db343fde
[ "MIT" ]
null
null
null
quiz/migrations/0002_auto_20170613_1345.py
mblacklock/sohkahtoa
89623b436dc1adf482308f22aa1eba81db343fde
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-06-13 12:45 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('contenttypes', '0002_remove_content_type_name'), ('...
34.619048
128
0.585282
0553108a51f48b2d5a6526aa436c0041a1bafe4e
6,632
py
Python
examples/optimization/hyper-parameter-optimization/hyper_parameter_optimizer.py
thepycoder/clearml
717edba8c2b39fb7486bd2aba9ca0294f309b4c3
[ "Apache-2.0" ]
2,097
2019-06-11T14:36:25.000Z
2020-12-21T03:52:59.000Z
examples/optimization/hyper-parameter-optimization/hyper_parameter_optimizer.py
thepycoder/clearml
717edba8c2b39fb7486bd2aba9ca0294f309b4c3
[ "Apache-2.0" ]
247
2019-06-11T15:10:26.000Z
2020-12-21T17:34:32.000Z
examples/optimization/hyper-parameter-optimization/hyper_parameter_optimizer.py
thepycoder/clearml
717edba8c2b39fb7486bd2aba9ca0294f309b4c3
[ "Apache-2.0" ]
256
2019-06-11T14:36:28.000Z
2020-12-18T08:32:47.000Z
import logging from clearml import Task from clearml.automation import ( DiscreteParameterRange, HyperParameterOptimizer, RandomSearch, UniformIntegerParameterRange) # trying to load Bayesian optimizer package try: from clearml.automation.optuna import OptimizerOptuna # noqa aSearchStrategy = Optimiz...
49.125926
112
0.747889
11f71a6318c743f31c72209074768be4f9cfc783
9,757
py
Python
test/_common.py
awesome-archive/beets
44f33cabc7e2c5ea6fd79fac3b73ac54fa11d568
[ "MIT" ]
null
null
null
test/_common.py
awesome-archive/beets
44f33cabc7e2c5ea6fd79fac3b73ac54fa11d568
[ "MIT" ]
null
null
null
test/_common.py
awesome-archive/beets
44f33cabc7e2c5ea6fd79fac3b73ac54fa11d568
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # This file is part of beets. # Copyright 2016, Adrian Sampson. # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation t...
25.880637
77
0.617095
7ffefce93f6cbce99a01464901f32df78ef85c94
618
py
Python
tests/test_xbert_preprocessing.py
simonlevine/x-transformer-icd
17d0a84f8b8e1f69623a82c0afab26830c7a1eb8
[ "BSD-3-Clause" ]
1
2020-12-15T00:55:25.000Z
2020-12-15T00:55:25.000Z
tests/test_xbert_preprocessing.py
simonlevine/x-transformer-icd
17d0a84f8b8e1f69623a82c0afab26830c7a1eb8
[ "BSD-3-Clause" ]
null
null
null
tests/test_xbert_preprocessing.py
simonlevine/x-transformer-icd
17d0a84f8b8e1f69623a82c0afab26830c7a1eb8
[ "BSD-3-Clause" ]
null
null
null
import pytest from pipeline import xbert_preprocessing as xp @pytest.mark.unit @pytest.mark.parametrize("label_raw,label_expected", [ ("Tuberculous peritonitis", "Tuberculous peritonitis"), ("Tuberculosis of eye, unspecified", "Tuberculosis of eye unspecified"), ("Tuberculosis of (inner) (middle...
38.625
62
0.73301
f30b141a1a5e5b344bee1f2ffcc16c56ea54a698
505
py
Python
teams/forms.py
ZendaInnocent/django_saas
dc977f2eb26f4d82134b3f354989591265eef9ba
[ "MIT" ]
4
2020-10-13T09:34:58.000Z
2022-02-11T11:31:19.000Z
teams/forms.py
ZendaInnocent/django_saas
dc977f2eb26f4d82134b3f354989591265eef9ba
[ "MIT" ]
24
2020-10-15T10:41:31.000Z
2021-09-22T19:37:11.000Z
teams/forms.py
ZendaInnocent/django_saas
dc977f2eb26f4d82134b3f354989591265eef9ba
[ "MIT" ]
5
2020-10-12T16:41:10.000Z
2022-02-02T14:56:15.000Z
from django import forms from django.contrib.auth import get_user_model from accounts.forms import SignUpForm User = get_user_model() class CreateTeamForm(SignUpForm): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.fields['password1'].widget = forms.HiddenInput() ...
22.954545
61
0.679208
8061d5a4acfb1ca2ea97095893e8c65de383dc0a
25
py
Python
package/subpack/bar.py
alexanderzimmerman/python-package
d4c67fc0dea8e902b997eca4a1d5aac736162d82
[ "MIT" ]
1
2018-11-27T11:02:43.000Z
2018-11-27T11:02:43.000Z
package/subpack/bar.py
alexanderzimmerman/python-package
d4c67fc0dea8e902b997eca4a1d5aac736162d82
[ "MIT" ]
null
null
null
package/subpack/bar.py
alexanderzimmerman/python-package
d4c67fc0dea8e902b997eca4a1d5aac736162d82
[ "MIT" ]
null
null
null
print("Hello, I'm Bar!")
12.5
24
0.6
01b260091211df2efba53b190a074d75885bda73
7,048
py
Python
train.py
smbadiwe/Autoencoder
54986e9d3b94d24c87ff4269d98dbf458ca16998
[ "Apache-2.0" ]
null
null
null
train.py
smbadiwe/Autoencoder
54986e9d3b94d24c87ff4269d98dbf458ca16998
[ "Apache-2.0" ]
null
null
null
train.py
smbadiwe/Autoencoder
54986e9d3b94d24c87ff4269d98dbf458ca16998
[ "Apache-2.0" ]
null
null
null
import time import torch.optim as optim from torch import nn from torch.utils.data import DataLoader from data_gen import VaeDataset from models import SegNet from utils import * EPS = 1e-12 def mse_loss(y_pred, y_true): return (y_pred - y_true).pow(2).mean() def rmse_loss(y_pred, y_true): return torch.sqr...
32.62963
114
0.579313
6940b37f066aece2ab75c252fa358446c8fe0a43
17,484
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_04_01/operations/_vpn_connections_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
1
2021-06-02T08:01:35.000Z
2021-06-02T08:01:35.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_04_01/operations/_vpn_connections_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_04_01/operations/_vpn_connections_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
47.770492
195
0.67822
01323c9f4e0ae37129caf5ce3ccefeae1da5a6b1
22,566
py
Python
resotocore/tests/resotocore/model/model_test.py
someengineering/resoto
ee17313f5376e9797ed305e7fdb62d40139a6608
[ "Apache-2.0" ]
126
2022-01-13T18:22:03.000Z
2022-03-31T11:03:14.000Z
resotocore/tests/resotocore/model/model_test.py
someengineering/resoto
ee17313f5376e9797ed305e7fdb62d40139a6608
[ "Apache-2.0" ]
110
2022-01-13T22:27:55.000Z
2022-03-30T22:26:50.000Z
resotocore/tests/resotocore/model/model_test.py
someengineering/resoto
ee17313f5376e9797ed305e7fdb62d40139a6608
[ "Apache-2.0" ]
8
2022-01-15T10:28:16.000Z
2022-03-30T16:38:21.000Z
import json from datetime import datetime, timedelta from textwrap import dedent from typing import Type, Any, Union, cast, List import pytest import yaml from deepdiff import DeepDiff from hypothesis import HealthCheck, settings, given from networkx import DiGraph from resotocore.cli.model import CLIContext from res...
41.254113
253
0.607507
3e72f5219497b21c72cbdee85ee289e7230e3e9d
572
py
Python
tests/translate/youdao_test.py
raojinlin/cmd-fanyi
8d747c31bc706df5771133a7e84fb941d1b11849
[ "MIT" ]
1
2020-07-04T05:56:01.000Z
2020-07-04T05:56:01.000Z
tests/translate/youdao_test.py
raojinlin/cmd-fanyi
8d747c31bc706df5771133a7e84fb941d1b11849
[ "MIT" ]
null
null
null
tests/translate/youdao_test.py
raojinlin/cmd-fanyi
8d747c31bc706df5771133a7e84fb941d1b11849
[ "MIT" ]
null
null
null
import unittest from translate.factory import get_translator youdao = get_translator('youdao') class YoudaoTest(unittest.TestCase): def test_query(self): youdao.query('hello') self.assertTrue('发音' in youdao.format()) self.assertTrue('helˈō' in youdao.format()) self.assertTrue('hə...
31.777778
63
0.678322
42d4231a6aad92e9cbd5ce66e09d393e60e738c9
392
py
Python
api/companies/read_companies.py
girisagar46/flask_restipy
d96bfa32ab7eaec9bda40a98dcc2bb0bc2bcaa70
[ "MIT" ]
null
null
null
api/companies/read_companies.py
girisagar46/flask_restipy
d96bfa32ab7eaec9bda40a98dcc2bb0bc2bcaa70
[ "MIT" ]
null
null
null
api/companies/read_companies.py
girisagar46/flask_restipy
d96bfa32ab7eaec9bda40a98dcc2bb0bc2bcaa70
[ "MIT" ]
null
null
null
from api import app from api import database from flask import jsonify @app.route('/companies', methods=['GET']) def read_companies(): """Read all companies""" # Read all companies from DB db = database() companies_list = [] for key,value in db.items(): companies_list.append({key: value}) ...
28
44
0.683673
bcd9fb4c769547febb7375f0cce478484951400e
1,067
py
Python
kubernetes/test/test_v1_ceph_fs_persistent_volume_source.py
L3T/python
b6e4ae81a2afb49f668a142eb7d1c6e2571ef478
[ "Apache-2.0" ]
2
2020-06-21T08:03:18.000Z
2020-06-21T09:53:29.000Z
kubernetes/test/test_v1_ceph_fs_persistent_volume_source.py
L3T/python
b6e4ae81a2afb49f668a142eb7d1c6e2571ef478
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_ceph_fs_persistent_volume_source.py
L3T/python
b6e4ae81a2afb49f668a142eb7d1c6e2571ef478
[ "Apache-2.0" ]
1
2020-12-10T07:28:08.000Z
2020-12-10T07:28:08.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: release-1.16 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import...
26.675
125
0.75164
f90b841d0cedfa0d58f032f3d093fe45b45e8dc4
14,019
py
Python
rest_framework/request.py
kouio/django-rest-framework
088b90a60c67e83efeee79431c3ed9fe7ad8d85d
[ "Unlicense" ]
1
2016-07-16T09:02:38.000Z
2016-07-16T09:02:38.000Z
rest_framework/request.py
kouio/django-rest-framework
088b90a60c67e83efeee79431c3ed9fe7ad8d85d
[ "Unlicense" ]
null
null
null
rest_framework/request.py
kouio/django-rest-framework
088b90a60c67e83efeee79431c3ed9fe7ad8d85d
[ "Unlicense" ]
null
null
null
""" The Request class is used as a wrapper around the standard request object. The wrapped request then offers a richer API, in particular : - content automatically parsed according to `Content-Type` header, and available as `request.DATA` - full support of PUT method, including support for file uploads...
33.458234
107
0.633426
4f2e7eef622a598cd1a2eb3a7a5e5e73348f987d
964
py
Python
second/builder/voxel_builder.py
Sakura1221/second.pytorch
7c452e4bef5035f4fc14c1b78d9adde02ac69e00
[ "MIT" ]
2
2019-03-29T07:06:09.000Z
2021-05-14T04:29:08.000Z
second/builder/voxel_builder.py
Sakura1221/second.pytorch
7c452e4bef5035f4fc14c1b78d9adde02ac69e00
[ "MIT" ]
null
null
null
second/builder/voxel_builder.py
Sakura1221/second.pytorch
7c452e4bef5035f4fc14c1b78d9adde02ac69e00
[ "MIT" ]
null
null
null
import numpy as np from second.core.voxel_generator import VoxelGenerator from second.protos import voxel_generator_pb2 def build(voxel_config): """Builds a tensor dictionary based on the InputReader config. Args: input_reader_config: A input_reader_pb2.InputReader object. Returns: A te...
33.241379
83
0.725104
2a6e6ed4e2bfe478b4dc7b94522661c16bd151a7
2,198
py
Python
tests/test_directory.py
ticketmaster/cloud-custodian
0da3866f70f858895af228cc08706d0909a2a324
[ "Apache-2.0" ]
null
null
null
tests/test_directory.py
ticketmaster/cloud-custodian
0da3866f70f858895af228cc08706d0909a2a324
[ "Apache-2.0" ]
4
2017-02-02T17:08:23.000Z
2017-05-25T19:33:19.000Z
tests/test_directory.py
ticketmaster/cloud-custodian
0da3866f70f858895af228cc08706d0909a2a324
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Capital One Services, LLC # # 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...
37.254237
88
0.671065
b6ed14bd2ccbaed8e5698c289f5af155e492b98d
5,459
py
Python
kanka-manager/kankaclient/races.py
davidbradlycurtis/kanka-manager
f44f814c6d9433a40cb1edc558baac12f26b31ad
[ "MIT" ]
null
null
null
kanka-manager/kankaclient/races.py
davidbradlycurtis/kanka-manager
f44f814c6d9433a40cb1edc558baac12f26b31ad
[ "MIT" ]
null
null
null
kanka-manager/kankaclient/races.py
davidbradlycurtis/kanka-manager
f44f814c6d9433a40cb1edc558baac12f26b31ad
[ "MIT" ]
null
null
null
""" Kanka Race API """ # pylint: disable=bare-except,super-init-not-called,no-else-break from __future__ import absolute_import import logging import json from kankaclient.constants import BASE_URL, GET, POST, DELETE, PUT from kankaclient.base import BaseManager class RaceAPI(BaseManager): """Kanka Race API""" ...
29.192513
125
0.60817
a600e6345d0618db1d9bdc5469027dce4c42a068
401
py
Python
photogallery/asgi.py
erhic/photo_gallery_Django
b6c9b90e628f155c3ad9444c10a974dd22811d64
[ "MIT" ]
null
null
null
photogallery/asgi.py
erhic/photo_gallery_Django
b6c9b90e628f155c3ad9444c10a974dd22811d64
[ "MIT" ]
null
null
null
photogallery/asgi.py
erhic/photo_gallery_Django
b6c9b90e628f155c3ad9444c10a974dd22811d64
[ "MIT" ]
null
null
null
""" ASGI config for photogallery project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_...
23.588235
78
0.790524
69b86c54b96a02a42636564e10459c787dd0a00f
6,148
py
Python
autorequests/utilities/__init__.py
Hexiro/autorequests
53923e6f089a34f5cc0babeed305c9b63f8f489b
[ "MIT" ]
29
2021-05-28T20:13:45.000Z
2022-03-24T22:26:07.000Z
autorequests/utilities/__init__.py
Hexiro/autorequests
53923e6f089a34f5cc0babeed305c9b63f8f489b
[ "MIT" ]
5
2021-06-19T12:51:56.000Z
2021-10-17T01:43:18.000Z
autorequests/utilities/__init__.py
Hexiro/autorequests
53923e6f089a34f5cc0babeed305c9b63f8f489b
[ "MIT" ]
3
2021-06-07T16:27:06.000Z
2021-07-20T20:49:38.000Z
import functools import json import keyword import sys import urllib.parse from typing import List, Dict, Optional, Callable, Union from .regexp import leading_integer_regexp # pretty simplistic names tbf # a lot of these aren't super self explanatory so they have docstring __all__ = ( "cached_property", "in...
31.208122
108
0.638907
0972e326cedc338e7cce0ba017fc4b5b8c1d5cb6
1,687
py
Python
tmp_colab.py
natureyoo/siamese-triplet
83c916e30fa40d890febeffc25cf6bedf542fd3f
[ "BSD-3-Clause" ]
null
null
null
tmp_colab.py
natureyoo/siamese-triplet
83c916e30fa40d890febeffc25cf6bedf542fd3f
[ "BSD-3-Clause" ]
null
null
null
tmp_colab.py
natureyoo/siamese-triplet
83c916e30fa40d890febeffc25cf6bedf542fd3f
[ "BSD-3-Clause" ]
1
2020-12-08T02:20:25.000Z
2020-12-08T02:20:25.000Z
import detectron2 from detectron2.utils.logger import setup_logger setup_logger() # import some common libraries import numpy as np import cv2 import random # import some common detectron2 utilities from detectron2 import model_zoo from detectron2.engine import DefaultPredictor, DefaultTrainer from detectron2.config ...
37.488889
141
0.827504
cd5a7cdf23a51930db7a193f0cdcccfd8786efc7
721
py
Python
web_crawler/tasks/__init__.py
RYU-BB/web_crawling
0cd7745aba1f97f7c3c924e4ea1b602d7e0a0453
[ "Apache-2.0" ]
null
null
null
web_crawler/tasks/__init__.py
RYU-BB/web_crawling
0cd7745aba1f97f7c3c924e4ea1b602d7e0a0453
[ "Apache-2.0" ]
null
null
null
web_crawler/tasks/__init__.py
RYU-BB/web_crawling
0cd7745aba1f97f7c3c924e4ea1b602d7e0a0453
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021, Myeonghyeon Ryu. 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 applicabl...
42.411765
74
0.78086
729e37095ca86f3731d08c7a84dfb46d879bdde9
26,475
py
Python
simulator_control/simulator_util.py
jverkoey/xctestrunner
2f88d59c3c28935a124967dc382f413640d2868c
[ "Apache-2.0" ]
1
2020-11-10T00:38:14.000Z
2020-11-10T00:38:14.000Z
simulator_control/simulator_util.py
keith/xctestrunner
586a51b90cfbd13ef23a101f719d64bd0fe0ec60
[ "Apache-2.0" ]
1
2019-12-05T22:06:33.000Z
2019-12-05T22:18:25.000Z
simulator_control/simulator_util.py
woshimaliang/xctestrunner
b0cba583c03fe1af4b18ccf17d0c728e5b01648d
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
38.70614
80
0.699906
5fe5dfa277b0f8ac2da857db2b1f7b9e4c14e0cb
1,382
py
Python
main.py
snosan-tools/avurnavs-csv
89a18c7b278ff94540620c0a2545ba0c039b7153
[ "MIT" ]
null
null
null
main.py
snosan-tools/avurnavs-csv
89a18c7b278ff94540620c0a2545ba0c039b7153
[ "MIT" ]
null
null
null
main.py
snosan-tools/avurnavs-csv
89a18c7b278ff94540620c0a2545ba0c039b7153
[ "MIT" ]
null
null
null
import json import os import redis as redis_lib import requests import pandas as pd REGIONS = ['atlantique', 'manche', 'méditerranée'] r = requests.get( 'https://api.heroku.com/apps/avurnav/config-vars', headers={ 'Accept': 'application/vnd.heroku+json; version=3', 'Authorization': 'Bearer ' ...
24.678571
63
0.664255
cccf0570c63b10784e43d48a5a84f393463ff479
2,789
py
Python
tests/test_devpi_request.py
bcicen/devpi-tools
0f1844b4e5c9d7da2b21908ca2ff5c1593c564e4
[ "MIT" ]
7
2017-03-10T15:30:11.000Z
2022-02-08T09:24:56.000Z
tests/test_devpi_request.py
bcicen/devpi-api-client
0f1844b4e5c9d7da2b21908ca2ff5c1593c564e4
[ "MIT" ]
5
2020-01-12T22:01:00.000Z
2021-07-30T10:51:16.000Z
tests/test_devpi_request.py
bcicen/devpi-api-client
0f1844b4e5c9d7da2b21908ca2ff5c1593c564e4
[ "MIT" ]
2
2019-10-27T23:21:13.000Z
2020-08-26T00:13:33.000Z
import json from devpi_tools import DevpiClient def mock_get_json_index(self, path, method='GET', **params): return { "root": { "indexes": { "pypi": { "type": "mirror", "volatile": False, "title": "PyPI", "mirror_url": "https://p...
30.988889
72
0.625672
b68539bd2f7bb353b5fd3b76574b0ccfda1a24c8
542
py
Python
easy-queue/modules/eqobject-service/eqobject/eqobject/api/status/endpoints/status.py
ebustosm6/easy-queue
29ef23f6a686df0c9bb4ab85df7233b3ee64dc0d
[ "Apache-2.0" ]
null
null
null
easy-queue/modules/eqobject-service/eqobject/eqobject/api/status/endpoints/status.py
ebustosm6/easy-queue
29ef23f6a686df0c9bb4ab85df7233b3ee64dc0d
[ "Apache-2.0" ]
null
null
null
easy-queue/modules/eqobject-service/eqobject/eqobject/api/status/endpoints/status.py
ebustosm6/easy-queue
29ef23f6a686df0c9bb4ab85df7233b3ee64dc0d
[ "Apache-2.0" ]
null
null
null
import logging from http import HTTPStatus from flask import request from flask_restplus import Resource from eqobject.api.restplus import api from easyqueue.core.base import EQObject, schema_eqobject log = logging.getLogger(__name__) ns = api.namespace('status', description='Health check') @ns.route('/health') cl...
22.583333
79
0.726937
2b72a86ab1bca48641dbb15c1822c1a536fa1808
28,931
py
Python
krackattack/krack-zero-key.py
DreadsCasey/Krackattack
4278e2aae10b013c06f40b653fda3441f2c6a73a
[ "BSD-3-Clause" ]
null
null
null
krackattack/krack-zero-key.py
DreadsCasey/Krackattack
4278e2aae10b013c06f40b653fda3441f2c6a73a
[ "BSD-3-Clause" ]
null
null
null
krackattack/krack-zero-key.py
DreadsCasey/Krackattack
4278e2aae10b013c06f40b653fda3441f2c6a73a
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2017, Adam Casey-Rerhaye # # This code may be distributed under the terms of the BSD license. # See README for more details. """ Usage: krack-zero-key.py -k <rouge_interface> <interface> <ssid> [--target <target_client>] [-v | --vv] krack-zero-key.py -s <rouge_interface> <inte...
37.867801
338
0.710898
7c88ca6b83e9b0ce4d503716bed68187818673fa
8,944
py
Python
src/unicon/plugins/generic/settings.py
rich-day/unicon.plugins
6cb9df66dd08d92ef9ebfc7ce8288afb9217b514
[ "Apache-2.0" ]
18
2019-11-23T23:14:53.000Z
2022-01-10T01:17:08.000Z
src/unicon/plugins/generic/settings.py
rich-day/unicon.plugins
6cb9df66dd08d92ef9ebfc7ce8288afb9217b514
[ "Apache-2.0" ]
12
2020-11-09T20:39:25.000Z
2022-03-22T12:46:59.000Z
src/unicon/plugins/generic/settings.py
rich-day/unicon.plugins
6cb9df66dd08d92ef9ebfc7ce8288afb9217b514
[ "Apache-2.0" ]
32
2020-02-12T15:42:22.000Z
2022-03-15T16:42:10.000Z
""" Module: unicon.plugins.generic Authors: pyATS TEAM (pyats-support@cisco.com, pyats-support-ext@cisco.com) Description: This module defines the Generic settings to setup the unicon environment required for generic based unicon connection """ from unicon.settings import Settings from unicon.plugins.ge...
34.4
118
0.445326
8870b3197c98dff13b9599b3223d5e7266156a3a
805
py
Python
var/spack/repos/builtin/packages/py-bottleneck/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/py-bottleneck/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/py-bottleneck/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2020 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 PyBottleneck(PythonPackage): """A collection of fast NumPy array functions written in Cyth...
40.25
95
0.737888