hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
61d7fa6f2eaaf84d4581ee8514d08b4d4a714e47
1,099
py
Python
text_to_speech/configs.py
PyText2Speech/PyText2Speech
485e30569c7c410527dfdec86ab5c391dfb04c96
[ "MIT" ]
6
2016-06-13T02:46:43.000Z
2017-02-02T17:18:39.000Z
text_to_speech/configs.py
PyText2Speech/PyText2Speech
485e30569c7c410527dfdec86ab5c391dfb04c96
[ "MIT" ]
11
2016-06-11T02:34:00.000Z
2016-06-11T11:56:26.000Z
text_to_speech/configs.py
PyText2Speech/PyText2Speech
485e30569c7c410527dfdec86ab5c391dfb04c96
[ "MIT" ]
7
2016-06-11T03:20:52.000Z
2017-02-02T09:20:09.000Z
# -*- encoding=utf8 -*- import json import os from pprint import pprint file = os.path.expanduser('~/pytext2speech.json') ck_key = ['BAIDU', 'ITRI', 'WATSON'] try: with open(file, 'r') as fp: server = json.load(fp) for k, v in server.items(): if k in ck_key: if v['name...
33.30303
72
0.458599
d4964c1a319455f31e124b7d2f6bcb10f620b306
1,286
py
Python
Tests.py
WeazelDev/ML_Project
8963f15712bd0aa4fbafa96e6dafd0a59d616a53
[ "MIT" ]
null
null
null
Tests.py
WeazelDev/ML_Project
8963f15712bd0aa4fbafa96e6dafd0a59d616a53
[ "MIT" ]
null
null
null
Tests.py
WeazelDev/ML_Project
8963f15712bd0aa4fbafa96e6dafd0a59d616a53
[ "MIT" ]
null
null
null
import csv import numpy as np import matplotlib.pyplot as plt anime_data = [] with open("Data/AnimeList.csv", "r", encoding="utf8") as csv_data: csv_reader = csv.reader(csv_data, delimiter=',') firstLine = True for row in csv_reader: if firstLine: firstLine = False else: anime_data.append(row) anime_meta =...
25.72
95
0.702955
6684a4321934ad8e78608fbb3cf81173e7091f03
3,872
py
Python
tests/smoke/test_international.py
mayank-sfdc/directory-tests
6e978bc1a27c19389e99e454143122aa27e47b85
[ "MIT" ]
4
2017-06-02T09:09:10.000Z
2018-01-25T19:06:12.000Z
tests/smoke/test_international.py
mayank-sfdc/directory-tests
6e978bc1a27c19389e99e454143122aa27e47b85
[ "MIT" ]
53
2016-10-27T22:31:03.000Z
2022-03-07T11:18:25.000Z
tests/smoke/test_international.py
mayank-sfdc/directory-tests
6e978bc1a27c19389e99e454143122aa27e47b85
[ "MIT" ]
3
2017-11-22T11:42:40.000Z
2022-02-21T01:20:04.000Z
# -*- coding: utf-8 -*- import pytest from rest_framework.status import HTTP_200_OK import allure from directory_tests_shared import URLs from tests.smoke.cms_api_helpers import get_and_assert pytestmark = [allure.suite("International site"), allure.feature("International site")] @pytest.mark.dev @pytest.mark.param...
37.960784
87
0.775052
821eb222d15ef209f697df9d68f31ee999b55772
7,223
py
Python
projects/landmarks_regression/train.py
ricklentz/deep-object-reid
bf4d30d78e4a34847496d0efb50d98541f5274f9
[ "MIT" ]
null
null
null
projects/landmarks_regression/train.py
ricklentz/deep-object-reid
bf4d30d78e4a34847496d0efb50d98541f5274f9
[ "MIT" ]
null
null
null
projects/landmarks_regression/train.py
ricklentz/deep-object-reid
bf4d30d78e4a34847496d0efb50d98541f5274f9
[ "MIT" ]
null
null
null
""" Copyright (c) 2018-2021 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
47.20915
119
0.648484
4968b859fcea225ce0816f01e6bb9e22b11d9027
1,415
py
Python
utils/github_service.py
sujpac/github-read-service
b4d691df91482867d4921c0df033a61040273fef
[ "MIT" ]
null
null
null
utils/github_service.py
sujpac/github-read-service
b4d691df91482867d4921c0df033a61040273fef
[ "MIT" ]
null
null
null
utils/github_service.py
sujpac/github-read-service
b4d691df91482867d4921c0df033a61040273fef
[ "MIT" ]
null
null
null
import os, requests, logging from github import Github from . import constants logger = logging.getLogger(__name__) def is_github_available(): """Checks if the Github service is available""" response = proxy_request('zen') return response and response.status_code == 200 def get_org(org_name): """...
27.211538
70
0.640989
49cb8f34b2297b36dca9082d4db72f0858e6a0ce
652
py
Python
xendit/models/creditcard/charge/credit_card_charge_installment.py
adyaksaw/xendit-python
47b05f2a6582104a274dc12a172c6421de86febc
[ "MIT" ]
10
2020-10-31T23:34:34.000Z
2022-03-08T19:08:55.000Z
xendit/models/creditcard/charge/credit_card_charge_installment.py
adyaksaw/xendit-python
47b05f2a6582104a274dc12a172c6421de86febc
[ "MIT" ]
22
2020-07-30T14:25:07.000Z
2022-03-31T03:55:46.000Z
xendit/models/creditcard/charge/credit_card_charge_installment.py
adyaksaw/xendit-python
47b05f2a6582104a274dc12a172c6421de86febc
[ "MIT" ]
11
2020-07-28T08:09:40.000Z
2022-03-18T00:14:02.000Z
from xendit.models._base_model import BaseModel from xendit.models._base_query import BaseQuery class CreditCardChargeInstallment(BaseModel): """Installment class of Charge (API Reference: Credit Card) Optional Attributes: - count (int) - interval (str) """ # Optional count: int ...
21.733333
73
0.631902
d36b6ce376e9883135c1c6733bc2690fa6c2e671
1,048
py
Python
bottom-up-attention/tools/read_tsv.py
daveredrum/meshed-memory-transformer
6dfbc2ba241b7c1c8deac6114d66542190a77619
[ "BSD-3-Clause" ]
1,311
2017-08-14T20:57:36.000Z
2022-03-31T03:54:41.000Z
bottom-up-attention/tools/read_tsv.py
daveredrum/meshed-memory-transformer
6dfbc2ba241b7c1c8deac6114d66542190a77619
[ "BSD-3-Clause" ]
109
2017-08-23T14:50:07.000Z
2022-02-28T17:14:56.000Z
bottom-up-attention/tools/read_tsv.py
daveredrum/meshed-memory-transformer
6dfbc2ba241b7c1c8deac6114d66542190a77619
[ "BSD-3-Clause" ]
391
2017-08-19T16:36:59.000Z
2022-03-24T08:37:37.000Z
#!/usr/bin/env python import base64 import numpy as np import csv import sys import zlib import time import mmap csv.field_size_limit(sys.maxsize) FIELDNAMES = ['image_id', 'image_w','image_h','num_boxes', 'boxes', 'features'] infile = '/data/coco/tsv/trainval/karpathy_val_resnet101_faster_rcnn_genome.tsv' if...
27.578947
85
0.612595
c535070baa0a55557480ac9f630260f31fe0cad1
11,262
py
Python
intersight/model/search_tag_item_list.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/model/search_tag_item_list.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/model/search_tag_item_list.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
47.121339
1,678
0.635145
b42e24f358d688db7682fe6948643b220f0f2dbd
3,467
py
Python
Python/sir_example_main.py
Wasim5620/SIRmodel
bbca1431673dc5450f290db1235eb73e92e74979
[ "MIT" ]
26
2018-08-08T20:40:21.000Z
2022-01-13T19:46:40.000Z
Python/sir_example_main.py
Wasim5620/SIRmodel
bbca1431673dc5450f290db1235eb73e92e74979
[ "MIT" ]
24
2020-03-25T19:35:43.000Z
2022-02-10T11:46:50.000Z
Python/sir_example_main.py
Wasim5620/SIRmodel
bbca1431673dc5450f290db1235eb73e92e74979
[ "MIT" ]
9
2017-07-22T04:23:15.000Z
2021-03-19T09:42:35.000Z
# SIR model example for python 2.7 # Marisa Eisenberg (marisae@umich.edu) # Yu-Han Kao (kaoyh@umich.edu) -7-9-17 #### Import all the packages #### import scipy.optimize as optimize import numpy as np import matplotlib.pyplot as plt import scipy.stats as stats import sir_ode import sir_cost import minifim import profli...
36.114583
133
0.715027
84575c6d1af97c6e2bf0b21489a7343ce851c1fb
3,800
py
Python
scripts/brute_force.py
zhongguotu/ecs289c-precimonious
2c33f99eef616de9ffa5edc4c6e37ff09760ce6b
[ "BSD-3-Clause" ]
22
2015-08-13T12:57:50.000Z
2021-12-29T13:02:07.000Z
scripts/brute_force.py
huiguoo/precimonious
5bc4c7fb522859cddb58743c9a14fab69b3ed8f6
[ "BSD-3-Clause" ]
2
2018-05-19T15:09:24.000Z
2021-11-23T00:54:21.000Z
scripts/brute_force.py
huiguoo/precimonious
5bc4c7fb522859cddb58743c9a14fab69b3ed8f6
[ "BSD-3-Clause" ]
13
2015-10-16T11:06:37.000Z
2022-03-28T07:54:26.000Z
#!/usr/bin/env python import json import os import types import sys import transform import utilities def print_config(config, configFile): f = open(configFile, 'w+') f.write("{\n") changeList = config["config"] for change in changeList: f.write("\t\"" + change.keys()[0] + "\": {\n") changeValue = change.valu...
31.932773
105
0.682105
77fc4fe50b58ff1166eac74ef7167357d00deb48
203
py
Python
python/hail/typecheck2/__init__.py
maccum/hail
e9e8a40bb4f0c2337e5088c26186a4da4948bed2
[ "MIT" ]
1
2020-03-09T21:25:00.000Z
2020-03-09T21:25:00.000Z
python/hail/typecheck2/__init__.py
maccum/hail
e9e8a40bb4f0c2337e5088c26186a4da4948bed2
[ "MIT" ]
null
null
null
python/hail/typecheck2/__init__.py
maccum/hail
e9e8a40bb4f0c2337e5088c26186a4da4948bed2
[ "MIT" ]
null
null
null
from .check import typecheck, register_conversion __all__ = ['typecheck', 'register_conversion'] __doc__ = """ Heavily inspired by typeguard: https://github.com/agronholm/typeguard/ """
22.555556
49
0.704433
feb65d3c32f29b8eb5ba9868ac4744efa769cc8b
854
py
Python
paramak/parametric_shapes/extruded_straight_shape.py
moatazharb/paramak
785c3ed7304e22eac7d58bb1bdc6515fbd20b9a8
[ "MIT" ]
1
2021-12-14T15:53:46.000Z
2021-12-14T15:53:46.000Z
paramak/parametric_shapes/extruded_straight_shape.py
bam241/paramak
785c3ed7304e22eac7d58bb1bdc6515fbd20b9a8
[ "MIT" ]
null
null
null
paramak/parametric_shapes/extruded_straight_shape.py
bam241/paramak
785c3ed7304e22eac7d58bb1bdc6515fbd20b9a8
[ "MIT" ]
null
null
null
from typing import Optional from paramak import ExtrudeMixedShape class ExtrudeStraightShape(ExtrudeMixedShape): """Extrudes a 3d CadQuery solid from points connected with straight lines. Args: distance: the extrusion distance to use (cm units if used for neutronics) stp_filenam...
26.6875
78
0.638173
8cd7b7ec3fa6309048ff8a0ce11f1fa040e63778
68,062
py
Python
ims_legacy.py
katrinleinweber/miniBibServer
9750e1e0773c7d6e57c0f71c096967879dfa631d
[ "MIT" ]
null
null
null
ims_legacy.py
katrinleinweber/miniBibServer
9750e1e0773c7d6e57c0f71c096967879dfa631d
[ "MIT" ]
null
null
null
ims_legacy.py
katrinleinweber/miniBibServer
9750e1e0773c7d6e57c0f71c096967879dfa631d
[ "MIT" ]
1
2018-11-03T08:06:43.000Z
2018-11-03T08:06:43.000Z
import json import glob import time import datetime time_stamp = unicode( datetime.datetime.now().isoformat().split('.')[0], 'utf-8') import random import text_json from pprint import pprint ## set some global variables for convenience of use global_vars = {} global_vars['published_files_directory'] = './publish...
37.833241
325
0.511534
fce77e9fb7a177f20a71fb337c8eb9e006e192f9
60
py
Python
udemy/python-video-workbook/my_progress/060.py
djrgit/coursework
2a91da9b76cb1acbd12f3d8049f15d2e71f475a1
[ "MIT" ]
null
null
null
udemy/python-video-workbook/my_progress/060.py
djrgit/coursework
2a91da9b76cb1acbd12f3d8049f15d2e71f475a1
[ "MIT" ]
null
null
null
udemy/python-video-workbook/my_progress/060.py
djrgit/coursework
2a91da9b76cb1acbd12f3d8049f15d2e71f475a1
[ "MIT" ]
3
2018-08-13T23:14:22.000Z
2019-01-11T22:50:07.000Z
# Exercise 60 - Infinite Printer while True: print('Hello')
20
32
0.733333
f5e9588d5b8f7deb4bea91935ca7cd4a8a3a9b2a
19,929
py
Python
tests/Hydro/RayleighTaylor/RT-const-rho.py
as1m0n/spheral
4d72822f56aca76d70724c543d389d15ff6ca48e
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
19
2020-10-21T01:49:17.000Z
2022-03-15T12:29:17.000Z
tests/Hydro/RayleighTaylor/RT-const-rho.py
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
41
2020-09-28T23:14:27.000Z
2022-03-28T17:01:33.000Z
tests/Hydro/RayleighTaylor/RT-const-rho.py
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
5
2020-11-03T16:14:26.000Z
2022-01-03T19:07:24.000Z
#ATS:test(SELF, "--CRKSPH=True --nx1=128 --nx2=128 --ny1=256 --ny2=512 --cfl=0.25 --Cl=1.0 --Cq=1.0 --clearDirectories=False --filter=0 --nPerh=1.51 --serialDump=True", label="RT CRK, nPerh=1.5", np=16) #ATS:test(SELF, "--CRKSPH=True --nx1=128 --nx2=128 --ny1=256 --ny2=512 --cfl=0.25 --Cl=1.0 --Cq=1.0 --clearDirectorie...
39.778443
234
0.461639
4746981218592920a10201e52490c67bf9063e83
22,685
py
Python
Code/study_code.py
mit-ll/DephyBootInterface
0eb31d2c723f1567b63777163ad45c9b06fb5c43
[ "BSD-3-Clause" ]
null
null
null
Code/study_code.py
mit-ll/DephyBootInterface
0eb31d2c723f1567b63777163ad45c9b06fb5c43
[ "BSD-3-Clause" ]
null
null
null
Code/study_code.py
mit-ll/DephyBootInterface
0eb31d2c723f1567b63777163ad45c9b06fb5c43
[ "BSD-3-Clause" ]
null
null
null
# DISTRIBUTION STATEMENT A. Approved for public release. Distribution is unlimited. # # This material is based upon work supported by the Under Secretary of Defense for Research and Engineering under Air Force Contract No. FA8702-15-D-0001. Any opinions, findings, conclusions or recommendations expressed in this materi...
36.471061
394
0.681331
d4585d953560b9f9f303b889851ef25fefd0559b
7,137
py
Python
get_pulse.py
krahd/bw
9c7ff5ed2a16ff5e750ead5ee576c56420b41312
[ "Apache-2.0" ]
7
2018-10-12T15:12:50.000Z
2021-11-21T02:52:43.000Z
get_pulse.py
krahd/bw
9c7ff5ed2a16ff5e750ead5ee576c56420b41312
[ "Apache-2.0" ]
null
null
null
get_pulse.py
krahd/bw
9c7ff5ed2a16ff5e750ead5ee576c56420b41312
[ "Apache-2.0" ]
3
2019-06-17T02:31:12.000Z
2021-09-16T10:30:41.000Z
from lib.device import Camera from lib.processors_noopenmdao import findFaceGetPulse from lib.interface import plotXY, imshow, waitKey, destroyWindow from cv2 import moveWindow import argparse import numpy as np import datetime #TODO: work on serial port comms, if anyone asks for it #from serial import Serial import so...
33.507042
80
0.574611
4d785140e0a0f8e4931d932c0f24af1d1a159386
108
py
Python
goldclip/__init__.py
bakerwm/goldclip
a1ed8b63d51ed05f165a15cce66a6ace2c3976a9
[ "MIT" ]
null
null
null
goldclip/__init__.py
bakerwm/goldclip
a1ed8b63d51ed05f165a15cce66a6ace2c3976a9
[ "MIT" ]
null
null
null
goldclip/__init__.py
bakerwm/goldclip
a1ed8b63d51ed05f165a15cce66a6ace2c3976a9
[ "MIT" ]
null
null
null
from .helper import * from .goldcliplib import * from .bin import bed_annotation from .bin import bed_fixer
21.6
31
0.796296
fbbc3b1889c80353708758931bc1a4d0578347a4
578
py
Python
astr-119-hw-2/data_types.py
cnojiri/astr-119
e4fae90e75276c1800fda5bb559f988767c0d870
[ "MIT" ]
1
2021-12-07T07:41:33.000Z
2021-12-07T07:41:33.000Z
astr-119-hw-2/data_types.py
cnojiri/astr-119
e4fae90e75276c1800fda5bb559f988767c0d870
[ "MIT" ]
6
2021-09-29T22:13:31.000Z
2021-11-24T16:00:50.000Z
astr-119-hw-2/data_types.py
cnojiri/astr-119
e4fae90e75276c1800fda5bb559f988767c0d870
[ "MIT" ]
null
null
null
import numpy as np #import numpy library #integers i = 10 #integer print(type(i)) #print out the data tyoe of i a_i = np.zeros(i,dtype=int) #declare an array of ints print(type(a_i)) #will return ndarray print(type(a_i[0])) #will return int64 #floats x = 119.0 #floating point number print(type(x)) #p...
25.130435
53
0.693772
da8e0439feff3c29c1cceee30b5fb138e4cdfdec
105,902
py
Python
lib/sqlalchemy/orm/strategies.py
sdspikes/sqlalchemy
cf6f342150791ace82c6a099e8ea2923138bd61e
[ "MIT" ]
null
null
null
lib/sqlalchemy/orm/strategies.py
sdspikes/sqlalchemy
cf6f342150791ace82c6a099e8ea2923138bd61e
[ "MIT" ]
null
null
null
lib/sqlalchemy/orm/strategies.py
sdspikes/sqlalchemy
cf6f342150791ace82c6a099e8ea2923138bd61e
[ "MIT" ]
null
null
null
# orm/strategies.py # Copyright (C) 2005-2021 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """sqlalchemy.orm.interfaces.LoaderStrategy implementations, and related Mapper...
34.250323
79
0.574182
4f933af75485425665901deb2a04eb76721d5702
1,602
py
Python
qtpyvcp/widgets/hal_widgets/hal_led.py
Lcvette/qtpyvcp
4143a4a4e1f557f7d0c8998c886b4a254f0be60b
[ "BSD-3-Clause-LBNL", "MIT" ]
71
2018-12-13T20:31:18.000Z
2022-03-26T08:44:22.000Z
qtpyvcp/widgets/hal_widgets/hal_led.py
Lcvette/qtpyvcp
4143a4a4e1f557f7d0c8998c886b4a254f0be60b
[ "BSD-3-Clause-LBNL", "MIT" ]
78
2019-01-10T18:16:33.000Z
2022-03-18T19:30:49.000Z
qtpyvcp/widgets/hal_widgets/hal_led.py
Lcvette/qtpyvcp
4143a4a4e1f557f7d0c8998c886b4a254f0be60b
[ "BSD-3-Clause-LBNL", "MIT" ]
38
2018-10-10T19:02:26.000Z
2022-01-30T04:38:14.000Z
from qtpyvcp import hal from qtpyvcp.widgets import HALWidget from qtpyvcp.widgets.base_widgets.led_widget import LEDWidget # Setup logging from qtpyvcp.utilities.logger import getLogger log = getLogger(__name__) class HalLedIndicator(LEDWidget, HALWidget): """HAL LED LED for indicated the state of `bit` H...
33.375
87
0.576155
aec7ad809a033c343809030391214458db5ccb19
2,205
py
Python
lg_common/scripts/readiness.py
FuriousJulius/lg_ros_nodes
15a84c5022ab2f5b038d11a5589cd4a34010b1d6
[ "Apache-2.0" ]
null
null
null
lg_common/scripts/readiness.py
FuriousJulius/lg_ros_nodes
15a84c5022ab2f5b038d11a5589cd4a34010b1d6
[ "Apache-2.0" ]
null
null
null
lg_common/scripts/readiness.py
FuriousJulius/lg_ros_nodes
15a84c5022ab2f5b038d11a5589cd4a34010b1d6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import rospy from lg_msg_defs.msg import AdhocBrowsers from lg_common import ReadinessNode from lg_common import ReadinessHandbrake from std_msgs.msg import String from lg_msg_defs.srv import NodeReady from lg_msg_defs.msg import Ready from lg_common.helpers import handle_initial_state from inte...
31.5
80
0.679819
530399364dd0ca6ca50d55aff541a653b7db9186
434
py
Python
Library/lib/python3.9/site-packages/numpy/core/_operand_flag_tests.py
Jeverett3000/codeapp
fa1c6f91e7b22e22628773282a308bcd8db0920f
[ "MIT" ]
603
2020-12-23T13:49:32.000Z
2022-03-31T23:38:03.000Z
Library/lib/python3.9/site-packages/numpy/core/_operand_flag_tests.py
Jeverett3000/codeapp
fa1c6f91e7b22e22628773282a308bcd8db0920f
[ "MIT" ]
387
2020-12-15T14:54:04.000Z
2022-03-31T07:00:21.000Z
Library/lib/python3.9/site-packages/numpy/core/_operand_flag_tests.py
Jeverett3000/codeapp
fa1c6f91e7b22e22628773282a308bcd8db0920f
[ "MIT" ]
35
2021-03-26T03:12:04.000Z
2022-03-23T10:15:10.000Z
def __bootstrap__(): global __bootstrap__, __loader__, __file__ import sys, pkg_resources, importlib.util __file__ = pkg_resources.resource_filename(__name__, '_operand_flag_tests.cpython-39-darwin.so') __loader__ = None; del __bootstrap__, __loader__ spec = importlib.util.spec_from_file_location(__...
43.4
100
0.781106
574589942adc23a25b55e7fec58e90053b9cab4d
1,516
py
Python
randomize_files.py
aidan-fitz/SolarTracer
31cc77ca974640be277d00c6ca23d82292f178c1
[ "Apache-2.0" ]
1
2021-11-08T14:37:10.000Z
2021-11-08T14:37:10.000Z
randomize_files.py
aidan-fitz/SolarTracer
31cc77ca974640be277d00c6ca23d82292f178c1
[ "Apache-2.0" ]
null
null
null
randomize_files.py
aidan-fitz/SolarTracer
31cc77ca974640be277d00c6ca23d82292f178c1
[ "Apache-2.0" ]
null
null
null
import argparse from itertools import product import os import shutil import numpy as np '''Randomly assign files to training, validation, or test subsets.''' rng = np.random.default_rng() def parse_args(): parser = argparse.ArgumentParser(description='Randomly assign files to training, validation, or test subs...
32.255319
114
0.677441
649bcccef7a0301a43da998abc8cf10d7c51d606
2,092
py
Python
azure/upload.py
tcsong456/news_category_classificaiton
8431d9d9f5aff207e918661b6e69342a54129be0
[ "MIT" ]
null
null
null
azure/upload.py
tcsong456/news_category_classificaiton
8431d9d9f5aff207e918661b6e69342a54129be0
[ "MIT" ]
null
null
null
azure/upload.py
tcsong456/news_category_classificaiton
8431d9d9f5aff207e918661b6e69342a54129be0
[ "MIT" ]
null
null
null
from azureml.core import Workspace from env_variables import ENV from azureml.core.authentication import ServicePrincipalAuthentication import json import pandas as pd from azure_utils import use_or_create_datastore import argparse def parserargs(): parser = argparse.ArgumentParser() arg = parser.add_argument ...
35.457627
106
0.590344
7b13d379f4e3d550845c60ab3fc0ea995ff638f7
14,005
py
Python
src/pathpicker/parse.py
houbie/PathPicker
48276541453803a47e85a30037df05f313ef37c7
[ "MIT" ]
5,167
2015-05-07T17:04:03.000Z
2022-03-24T18:09:58.000Z
src/pathpicker/parse.py
code-reaper08/PathPicker
86aff624299e96456c647b5f68dd813aa0caf2f8
[ "MIT" ]
319
2015-05-07T17:38:54.000Z
2022-03-21T10:50:15.000Z
src/pathpicker/parse.py
code-reaper08/PathPicker
86aff624299e96456c647b5f68dd813aa0caf2f8
[ "MIT" ]
374
2015-05-07T17:34:53.000Z
2022-03-21T08:42:51.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os import re import subprocess from functools import partial from typing import Callable, List, Match, NamedTuple, NewType, Optional, Pa...
33.424821
88
0.61221
1e3a6efb04637444a4c6d782531c857f7de386f8
2,102
py
Python
sdk/python/pulumi_mailgun/__init__.py
pulumi/pulumi-mailgun
a01d240c5ad79232e626d1ace13fd3c5dc9d3c6c
[ "ECL-2.0", "Apache-2.0" ]
1
2020-05-09T23:28:56.000Z
2020-05-09T23:28:56.000Z
sdk/python/pulumi_mailgun/__init__.py
pulumi/pulumi-mailgun
a01d240c5ad79232e626d1ace13fd3c5dc9d3c6c
[ "ECL-2.0", "Apache-2.0" ]
26
2020-01-26T12:17:45.000Z
2022-03-25T19:42:23.000Z
sdk/python/pulumi_mailgun/__init__.py
pulumi/pulumi-mailgun
a01d240c5ad79232e626d1ace13fd3c5dc9d3c6c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: from .domain import * from .domain_credential import * from .get_domain import * from .prov...
33.903226
98
0.677926
4f36db592907f27a7d9732a18b2772d64858dff4
1,971
py
Python
measmisc/apps/apa.py
molkoback/measmisc
44a6e77a5146bd751ce0203f6805e423d3866c9d
[ "MIT" ]
null
null
null
measmisc/apps/apa.py
molkoback/measmisc
44a6e77a5146bd751ce0203f6805e423d3866c9d
[ "MIT" ]
null
null
null
measmisc/apps/apa.py
molkoback/measmisc
44a6e77a5146bd751ce0203f6805e423d3866c9d
[ "MIT" ]
null
null
null
from measmisc.app import App from measmisc.database import Database from measmisc.device import Device from measmisc.meas import DateTime, Measurement from measmisc.hw.i2c import create_i2c from measmisc.hw.fmamsdxx import FMAMSDXX from adafruit_tca9548a import TCA9548A import asyncio import logging import time clas...
23.464286
110
0.658549
d1ff75f587709f027c2454f06e312a40b38a13b9
2,066
py
Python
antlir/signed_source.py
facebookincubator/fs_image
3515a24bb0e93176a5584bdc8839464fa28390d7
[ "MIT" ]
9
2019-12-02T20:17:35.000Z
2020-06-13T16:34:25.000Z
antlir/signed_source.py
facebookincubator/fs_image
3515a24bb0e93176a5584bdc8839464fa28390d7
[ "MIT" ]
19
2019-11-22T23:30:04.000Z
2020-07-16T18:05:48.000Z
antlir/signed_source.py
facebookincubator/fs_image
3515a24bb0e93176a5584bdc8839464fa28390d7
[ "MIT" ]
4
2019-12-04T19:03:28.000Z
2020-06-13T16:34:29.000Z
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import hashlib import re from .errors import UserError _N_HEADER = 2048 # NB: The current linter does whole-file replacements def signe...
33.322581
80
0.649564
4939a86226e042c56477c745b5e8ab60167d622c
891
py
Python
1dbrownian/fts_test/run.py
muhammadhasyim/tps-torch
21201458d037649fa66794b993ccfba7d7414028
[ "BSD-3-Clause" ]
3
2021-05-05T12:09:45.000Z
2021-05-17T18:39:54.000Z
1dbrownian/fts_test/run.py
muhammadhasyim/tps-torch
21201458d037649fa66794b993ccfba7d7414028
[ "BSD-3-Clause" ]
null
null
null
1dbrownian/fts_test/run.py
muhammadhasyim/tps-torch
21201458d037649fa66794b993ccfba7d7414028
[ "BSD-3-Clause" ]
null
null
null
#Start up torch dist package import torch import torch.distributed as dist dist.init_process_group(backend='mpi') #Load classes for simulations and controls from brownian_fts import BrownianParticle, CustomFTSMethod import numpy as np #Starting and ending configuration. start = torch.tensor([[-1.0]]) end = torch.tens...
34.269231
147
0.751964
2a24cf665a72fe6149b152d32340cdf46ff85ff6
9,634
py
Python
synthesis/enunu_ground_truth_duration.py
stakira/ENUNU
3ee981785507ca8a1612d7501b89c47c87c400c3
[ "MIT" ]
null
null
null
synthesis/enunu_ground_truth_duration.py
stakira/ENUNU
3ee981785507ca8a1612d7501b89c47c87c400c3
[ "MIT" ]
null
null
null
synthesis/enunu_ground_truth_duration.py
stakira/ENUNU
3ee981785507ca8a1612d7501b89c47c87c400c3
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 # coding: utf-8 # Copyright (c) 2020 oatsu """ フルラベルと、タイミング補正済みモノラベルからWAVファイルを生成する。 モデルは…? """ import copy import shutil # from copy import deepcopy from datetime import datetime from os import chdir, makedirs, startfile from os.path import basename, dirname, exists, join, splitext from sys impo...
33.685315
93
0.664002
e6357570a4a90c70d546a765b70a1437c53a06c5
1,732
py
Python
src/utils.py
AUVSL/ROS-ANFIS-RL
d0df3d9a53f4cc2a49cadeac62be6879aaf699fd
[ "BSD-3-Clause" ]
1
2022-01-26T22:23:11.000Z
2022-01-26T22:23:11.000Z
src/utils.py
AUVSL/anfis_rl
d0df3d9a53f4cc2a49cadeac62be6879aaf699fd
[ "BSD-3-Clause" ]
null
null
null
src/utils.py
AUVSL/anfis_rl
d0df3d9a53f4cc2a49cadeac62be6879aaf699fd
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from torch.utils.tensorboard.summary import hparams def angdiff(th1, th2): d = th1 - th2 d = np.mod(d + np.pi, 2 * np.pi) - np.pi return -d def wraptopi(x): pi = np.pi x = x - np.floor(x / (2 * pi)) * 2 * pi if x >= pi: return x - 2 * pi return x def add_hpar...
30.385965
88
0.62933
45862c5948c7305e821a30a40326b188dd9ade27
15,135
py
Python
experiment_scripts/exp4/baseDefsPsychoPy.py
mzettersten/word-choice
fee5cbed17ebdc4d988258e6384a59cc9ff6c8a7
[ "MIT" ]
null
null
null
experiment_scripts/exp4/baseDefsPsychoPy.py
mzettersten/word-choice
fee5cbed17ebdc4d988258e6384a59cc9ff6c8a7
[ "MIT" ]
null
null
null
experiment_scripts/exp4/baseDefsPsychoPy.py
mzettersten/word-choice
fee5cbed17ebdc4d988258e6384a59cc9ff6c8a7
[ "MIT" ]
null
null
null
#from pyglet.media import avbin import numpy from psychopy import prefs try: import winsound except ImportError: print "Warning: winsound not found; will try using pyo/pyaudio" try: import pyo print "Attempting to use pyo for sounds" prefs.general['audioLib'] = ['pyo'] except: print 'could not loa...
34.164786
188
0.702346
67e557432809b8823f3f3c2366f1887d8a9b4e70
1,033
py
Python
example/cities/migrations/0002_auto_20160605_1602.py
HOYINWUN/django-map-widgets
2dd9bbd6833a781ea1683de9fa63d964c5936371
[ "MIT" ]
null
null
null
example/cities/migrations/0002_auto_20160605_1602.py
HOYINWUN/django-map-widgets
2dd9bbd6833a781ea1683de9fa63d964c5936371
[ "MIT" ]
null
null
null
example/cities/migrations/0002_auto_20160605_1602.py
HOYINWUN/django-map-widgets
2dd9bbd6833a781ea1683de9fa63d964c5936371
[ "MIT" ]
1
2019-08-05T14:15:55.000Z
2019-08-05T14:15:55.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2016-06-05 16:02 from __future__ import unicode_literals import django.contrib.gis.db.models.fields from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('cities', '0001_in...
31.30303
127
0.635044
4fc9259c185b96bdffc93e801cdd268c303d5cd7
542
py
Python
django_example/metrics/middleware.py
ChielWH/prometheus_redis_client
90852fb0eaf3aee1937a74cad6181c304dc6999a
[ "Apache-2.0" ]
19
2019-04-02T11:46:45.000Z
2022-03-21T03:38:56.000Z
django_example/metrics/middleware.py
ChielWH/prometheus_redis_client
90852fb0eaf3aee1937a74cad6181c304dc6999a
[ "Apache-2.0" ]
12
2019-08-17T05:55:23.000Z
2022-02-10T07:37:38.000Z
django_example/metrics/middleware.py
ChielWH/prometheus_redis_client
90852fb0eaf3aee1937a74cad6181c304dc6999a
[ "Apache-2.0" ]
6
2019-11-20T15:12:38.000Z
2022-03-21T03:36:44.000Z
import time from metrics import general from django.urls import resolve class MetricsMiddleware(object): def __init__(self, get_response): self.get_response = get_response def __call__(self, request): viewname = resolve(request.path).view_name general.count_of_requests.labels(viewnam...
30.111111
95
0.693727
defc21381806d478c5e9876793c58f161febaf3f
7,767
py
Python
RealFunctions/MorphingFunctions.py
Prdcc/manim-Student-Shapers
a04072e67995838acb77c1c921db97ee050aa6e0
[ "MIT" ]
null
null
null
RealFunctions/MorphingFunctions.py
Prdcc/manim-Student-Shapers
a04072e67995838acb77c1c921db97ee050aa6e0
[ "MIT" ]
null
null
null
RealFunctions/MorphingFunctions.py
Prdcc/manim-Student-Shapers
a04072e67995838acb77c1c921db97ee050aa6e0
[ "MIT" ]
null
null
null
from manimlib.imports import * import numpy as np from numpy import sqrt def sin_graph(x): return np.sin(x) def parabola_graph(x): return x*x # circle shape should also be here def exponential_cos_graph(x): return np.cos(np.exp(-0.1 * x**2 + 2)) def cubed(x): return x**3 def quartic(x): return x...
38.835
222
0.647869
a31e0ff75a1e85eebe0e7cf32a47a7659acaf671
984
py
Python
venv/lib/python3.6/site-packages/tests/test_level1/test_link.py
Guillaume-Fernandez/phishfinder
b459a30202fd5dfb1340b43c70363705de7cedd9
[ "MIT" ]
2
2019-09-26T17:46:18.000Z
2022-02-26T03:07:59.000Z
venv/lib/python3.6/site-packages/tests/test_level1/test_link.py
Guillaume-Fernandez/phishfinder
b459a30202fd5dfb1340b43c70363705de7cedd9
[ "MIT" ]
2
2018-08-19T17:12:26.000Z
2020-09-18T03:51:33.000Z
venv/lib/python3.6/site-packages/tests/test_level1/test_link.py
Guillaume-Fernandez/phishfinder
b459a30202fd5dfb1340b43c70363705de7cedd9
[ "MIT" ]
2
2020-09-14T06:19:39.000Z
2020-12-29T10:54:43.000Z
"""Test link selectors.""" from __future__ import unicode_literals from .. import util class TestLink(util.TestCase): """Test link selectors.""" MARKUP = """ <div> <p>Some text <span id="1" class="foo:bar:foobar"> in a paragraph</span>. <a id="2" class="bar" href="http://google.com">Link</a> ...
20.93617
76
0.522358
0ecf14589f1fc9d295e3e9ee4c4fd707eb425b28
877
py
Python
Morse Potential/Morse_analatic.py
aniruddha-seal/Solving-1D-Schrodinger-Eqn
c3fece2f7c2b043551e23878655b0f9b8dd8b604
[ "MIT" ]
null
null
null
Morse Potential/Morse_analatic.py
aniruddha-seal/Solving-1D-Schrodinger-Eqn
c3fece2f7c2b043551e23878655b0f9b8dd8b604
[ "MIT" ]
null
null
null
Morse Potential/Morse_analatic.py
aniruddha-seal/Solving-1D-Schrodinger-Eqn
c3fece2f7c2b043551e23878655b0f9b8dd8b604
[ "MIT" ]
1
2022-02-19T06:05:00.000Z
2022-02-19T06:05:00.000Z
import numpy as np from matplotlib import rc import matplotlib.pyplot as plt from scipy.constants import h, c from morse import Morse, FAC rc('font', **{'family': 'serif', 'serif': ['Computer Modern'], 'size': 14}) rc('text', usetex=True) COLOUR1 = (0.6196, 0.0039, 0.2588, 1.0) # Atom masses and equilibrium bond leng...
25.057143
75
0.677309
0d778af5b017e62126dd2e444cb6fb2f540bdf2f
3,675
py
Python
wagtail/contrib/settings/registry.py
stevedya/wagtail
52e5abfe62547cdfd90ea7dfeb8bf5a52f16324c
[ "BSD-3-Clause" ]
null
null
null
wagtail/contrib/settings/registry.py
stevedya/wagtail
52e5abfe62547cdfd90ea7dfeb8bf5a52f16324c
[ "BSD-3-Clause" ]
null
null
null
wagtail/contrib/settings/registry.py
stevedya/wagtail
52e5abfe62547cdfd90ea7dfeb8bf5a52f16324c
[ "BSD-3-Clause" ]
null
null
null
from django.apps import apps from django.contrib.auth.models import Permission from django.urls import reverse from django.utils.text import capfirst from wagtail import hooks from wagtail.admin.admin_url_finder import ( ModelAdminURLFinder, register_admin_url_finder, ) from wagtail.admin.menu import MenuItem ...
30.882353
96
0.620408
8385c211f0e4ec450e2301d1cfccb27298411fd9
2,766
py
Python
predict.py
amezaa/ASLMobilenet
231e44907f5afe5a076543909ca094e834007d6a
[ "Apache-2.0" ]
null
null
null
predict.py
amezaa/ASLMobilenet
231e44907f5afe5a076543909ca094e834007d6a
[ "Apache-2.0" ]
null
null
null
predict.py
amezaa/ASLMobilenet
231e44907f5afe5a076543909ca094e834007d6a
[ "Apache-2.0" ]
null
null
null
import shutil import random import os import numpy as np import cv2 import argparse import sys import time from scripts.label_image import * from vid_frame import * from mode_accuracy import * def run(video_path, frame_dir): segment_vid(video_path, frame_dir) predicted_word = predict_on_vid(frame_dir, model_file,...
29.115789
224
0.769342
cf4fc654465689cf15808e16aa64b5179e114f11
383
py
Python
pizza_home/migrations/0002_alter_pizza_image.py
jayaemekar/CalPizzaDeliverySystem
9e7f1f378b42b410d358c28359a9915e30bb270d
[ "MIT" ]
null
null
null
pizza_home/migrations/0002_alter_pizza_image.py
jayaemekar/CalPizzaDeliverySystem
9e7f1f378b42b410d358c28359a9915e30bb270d
[ "MIT" ]
null
null
null
pizza_home/migrations/0002_alter_pizza_image.py
jayaemekar/CalPizzaDeliverySystem
9e7f1f378b42b410d358c28359a9915e30bb270d
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-12-12 21:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pizza_home', '0001_initial'), ] operations = [ migrations.AlterField( model_name='pizza', name='image', ...
20.157895
57
0.590078
5bcd974fc9b4c8306e01ca5f9a8c770aec90f9fb
3,282
py
Python
ophiuchus/experiments/lyapunovgrid.py
adrn/ophiuchus
fe7e937bf421d506ec252165f044d514f571667b
[ "MIT" ]
1
2015-09-25T10:12:52.000Z
2015-09-25T10:12:52.000Z
ophiuchus/experiments/lyapunovgrid.py
adrn/ophiuchus
fe7e937bf421d506ec252165f044d514f571667b
[ "MIT" ]
null
null
null
ophiuchus/experiments/lyapunovgrid.py
adrn/ophiuchus
fe7e937bf421d506ec252165f044d514f571667b
[ "MIT" ]
null
null
null
# coding: utf-8 """ Class for computing Lyapunov exponents for the orbit grid """ from __future__ import division, print_function __author__ = "adrn <adrn@astro.columbia.edu>" # Standard library import os # Third-party from astropy import log as logger import numpy as np import gala.integrate as gi import gala.dyn...
30.110092
93
0.593845
02e46643fbf58bbdf05b84a61877495cc6cb9a39
1,873
py
Python
python/buffer_test.py
alphaliang/pcammls
0ae59a9b3e0d73ea85e6d03b43721f79239be089
[ "Unlicense" ]
6
2020-08-07T07:02:20.000Z
2021-03-15T10:38:22.000Z
python/buffer_test.py
alphaliang/pcammls
0ae59a9b3e0d73ea85e6d03b43721f79239be089
[ "Unlicense" ]
null
null
null
python/buffer_test.py
alphaliang/pcammls
0ae59a9b3e0d73ea85e6d03b43721f79239be089
[ "Unlicense" ]
2
2020-06-15T09:31:02.000Z
2021-05-06T05:31:00.000Z
import pcammls as sdk import numpy as np def test_array_equal(nparr, carr,sz): print('data is {}'.format(nparr)) res = [] arr = np.reshape(nparr,(sz)) for idx in range(sz): res.append(carr[idx]) for idx in range(sz): if res[idx]!=arr[idx]: print ('not equal at {}'.forma...
26.380282
76
0.590497
2864200c86ca44cda955ea9233ec6ba3a00ccab2
6,073
py
Python
esphomeyaml/components/sensor/bme680.py
sherbang/esphomeyaml
eb7db04d08fd8c1e6fd81934c6ab89959b5678ed
[ "MIT" ]
2
2020-12-03T17:38:24.000Z
2021-03-10T04:11:44.000Z
esphomeyaml/components/sensor/bme680.py
dreed47/esphomeyaml
9890a51c5136c356c2cc7f14a3ab8fe547bbb72a
[ "MIT" ]
null
null
null
esphomeyaml/components/sensor/bme680.py
dreed47/esphomeyaml
9890a51c5136c356c2cc7f14a3ab8fe547bbb72a
[ "MIT" ]
null
null
null
import voluptuous as vol import esphomeyaml.config_validation as cv from esphomeyaml import core from esphomeyaml.components import sensor from esphomeyaml.const import CONF_ADDRESS, CONF_GAS_RESISTANCE, CONF_HUMIDITY, CONF_IIR_FILTER, \ CONF_MAKE_ID, CONF_NAME, CONF_OVERSAMPLING, CONF_PRESSURE, CONF_TEMPERATURE, ...
49.373984
100
0.721719
8913fe66f74564fbe1b9e779e09c5ab9f43d023f
134
py
Python
newsfeedsystem/angular/urls.py
bakowroc/newsfeed-system
6a7363700416e331fcb51c1118a90c0b3d959673
[ "MIT" ]
null
null
null
newsfeedsystem/angular/urls.py
bakowroc/newsfeed-system
6a7363700416e331fcb51c1118a90c0b3d959673
[ "MIT" ]
null
null
null
newsfeedsystem/angular/urls.py
bakowroc/newsfeed-system
6a7363700416e331fcb51c1118a90c0b3d959673
[ "MIT" ]
null
null
null
from django.conf.urls import url from angular import views urlpatterns = [ url(r'^', views.HomePageView.as_view(), name ='/') ]
16.75
54
0.686567
49b5da7e3608c63d4fffbf06e8e92941c9f3d4cf
1,977
py
Python
Examples/python_server/openapi_server/com/h21lab/TS29510_Nnrf_NFDiscovery/handler/preferred_search.py
H21lab/5GC_build
bbc8bbd9158a2124ca486572906020a91789733e
[ "Apache-2.0" ]
12
2020-06-04T06:58:13.000Z
2021-12-15T14:26:56.000Z
Examples/python_server/openapi_server/com/h21lab/TS29510_Nnrf_NFDiscovery/handler/preferred_search.py
H21lab/5GC_build
bbc8bbd9158a2124ca486572906020a91789733e
[ "Apache-2.0" ]
3
2021-05-27T12:13:58.000Z
2021-12-15T05:45:44.000Z
Examples/python_server/openapi_server/com/h21lab/TS29510_Nnrf_NFDiscovery/handler/preferred_search.py
H21lab/5GC_build
bbc8bbd9158a2124ca486572906020a91789733e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from openapi_server.com.h21lab.TS29510_Nnrf_NFDiscovery.handler.base_model_ import Model from openapi_server import util class PreferredSearch(Model): """NOTE: Th...
30.415385
106
0.693981
61ed8d811683ff309a84dfbadf848a4d35de9f64
5,289
py
Python
external/BB2SegNet/refinement_net/datasets/DAVIS/COCO_for_DAVIS.py
zhuhu00/MOTSFusion_modify
190224a7c3fbded69fedf9645a0ebbf08227fb6d
[ "MIT" ]
154
2019-07-25T02:27:39.000Z
2022-02-18T19:40:43.000Z
external/BB2SegNet/refinement_net/datasets/DAVIS/COCO_for_DAVIS.py
zhuhu00/MOTSFusion_modify
190224a7c3fbded69fedf9645a0ebbf08227fb6d
[ "MIT" ]
4
2019-11-12T00:38:54.000Z
2021-08-14T08:40:12.000Z
external/BB2SegNet/refinement_net/datasets/DAVIS/COCO_for_DAVIS.py
zhuhu00/MOTSFusion_modify
190224a7c3fbded69fedf9645a0ebbf08227fb6d
[ "MIT" ]
25
2019-09-17T08:49:57.000Z
2022-03-21T20:11:57.000Z
import tensorflow as tf from PIL import Image import numpy as np from random import shuffle from external.BB2SegNet.refinement_net.datasets.Loader import register_dataset from external.BB2SegNet.refinement_net.datasets.Mapillary.MapillaryLike_instance import MapillaryLikeInstanceDataset from external.BB2SegNet.refinem...
41.97619
139
0.630176
7f681f5ec7a5e274a77b938cce31fd3e025b8077
2,474
py
Python
test/test_api_fact_ref.py
abcdcamey/stock-data
bfdc67e60b7d4de59c66dbb52159574b4e0a5e51
[ "MIT" ]
1
2019-04-10T09:07:59.000Z
2019-04-10T09:07:59.000Z
test/test_api_fact_ref.py
abcdcamey/stock-data
bfdc67e60b7d4de59c66dbb52159574b4e0a5e51
[ "MIT" ]
2
2021-06-01T23:39:34.000Z
2021-12-13T19:58:31.000Z
test/test_api_fact_ref.py
abcdcamey/stock-data
bfdc67e60b7d4de59c66dbb52159574b4e0a5e51
[ "MIT" ]
null
null
null
from api.fact.Fact_Market_Ref_Data import Fact_Market_Ref_Data from api.common.Saver import Saver fmrd = Fact_Market_Ref_Data() #data = fmrd.get_fact_moneyflow_hsgt(_trade_date='20190508') #Saver.save_to_mysql(data,'fact_moneyflow_hsgt') #data = fmrd.get_fact_hsgt_top10(_trade_date='20190508') #Saver.save_to_mysql(...
30.925
106
0.812854
71b9e29e1c8c138703b10a7068b9030a88e4bfd6
929
py
Python
question_bank/island-perimeter/island-perimeter.py
yatengLG/leetcode-python
5d48aecb578c86d69835368fad3d9cc21961c226
[ "Apache-2.0" ]
9
2020-08-12T10:01:00.000Z
2022-01-05T04:37:48.000Z
question_bank/island-perimeter/island-perimeter.py
yatengLG/leetcode-python
5d48aecb578c86d69835368fad3d9cc21961c226
[ "Apache-2.0" ]
1
2021-02-16T10:19:31.000Z
2021-02-16T10:19:31.000Z
question_bank/island-perimeter/island-perimeter.py
yatengLG/leetcode-python
5d48aecb578c86d69835368fad3d9cc21961c226
[ "Apache-2.0" ]
4
2020-08-12T10:13:31.000Z
2021-11-05T01:26:58.000Z
# -*- coding: utf-8 -*- # @Author : LG """ 执行用时:152 ms, 在所有 Python3 提交中击败了68.28% 的用户 内存消耗:13.7 MB, 在所有 Python3 提交中击败了58.86% 的用户 解题思路: 每存在一个相邻岛屿,则边各少一条。 具体实现见代码注释 """ class Solution: def islandPerimeter(self, grid: List[List[int]]) -> int: num = 0 # 记录岛屿数 neighbor = 0 # 记录相邻岛屿数 ...
32.034483
70
0.420883
45d1cb1f05cdf1d0521061a13431ed8a6facc4d0
3,027
py
Python
unit_tests/test_utils.py
oprinmarius/charm-cinder-ceph
0be26a2684737bb0683e00b282b26d9d5af279b4
[ "ECL-2.0", "Apache-2.0" ]
16
2016-04-17T04:00:44.000Z
2020-04-03T08:12:36.000Z
unit_tests/test_utils.py
oprinmarius/charm-cinder-ceph
0be26a2684737bb0683e00b282b26d9d5af279b4
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
unit_tests/test_utils.py
oprinmarius/charm-cinder-ceph
0be26a2684737bb0683e00b282b26d9d5af279b4
[ "ECL-2.0", "Apache-2.0" ]
8
2016-11-01T19:24:23.000Z
2020-11-02T17:36:14.000Z
# Copyright 2016 Canonical Ltd # # 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, s...
26.321739
77
0.6333
48f39cfd43d1550a0a36789868a18828fae90df8
5,155
py
Python
bigml/api_handlers/batchtopicdistributionhandler.py
axellos162/python-4
569f6655871ea60b41e9442396433567b9daaea7
[ "Apache-2.0" ]
137
2015-01-12T06:04:10.000Z
2022-03-06T21:00:04.000Z
bigml/api_handlers/batchtopicdistributionhandler.py
axellos162/python-4
569f6655871ea60b41e9442396433567b9daaea7
[ "Apache-2.0" ]
78
2015-01-13T18:28:51.000Z
2022-03-04T19:18:28.000Z
bigml/api_handlers/batchtopicdistributionhandler.py
axellos162/python-4
569f6655871ea60b41e9442396433567b9daaea7
[ "Apache-2.0" ]
144
2015-01-16T06:13:33.000Z
2022-03-29T17:53:16.000Z
# -*- coding: utf-8 -*- # # Copyright 2016-2021 BigML # # 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 ...
41.24
79
0.660524
ed9af062b4928f1243ded41c7a8e3d051dae8f7f
4,748
py
Python
lensesio/lenses.py
rsaggino/lenses-python
325c221a9e34fa24a949672459409186db682447
[ "Apache-2.0" ]
13
2018-04-23T11:58:01.000Z
2019-06-22T20:17:56.000Z
lensesio/lenses.py
rsaggino/lenses-python
325c221a9e34fa24a949672459409186db682447
[ "Apache-2.0" ]
10
2019-12-19T04:47:49.000Z
2022-03-24T10:12:42.000Z
lensesio/lenses.py
Landoop/lenses-python
645b44c333e119dcbcd29f2d0e07ffdd6f66dbc0
[ "Apache-2.0" ]
5
2020-02-17T12:08:20.000Z
2022-03-09T15:32:39.000Z
#!/usr/bin/env python3 from lensesio.pulsar.pulsar_client import SetupPulsar from lensesio.core.exception import lenses_exception from lensesio.registry.schemas import SchemaRegistry from lensesio.data.processors import DataProcessor from lensesio.data.connectors import DataConnector from lensesio.data.consumers impo...
34.405797
104
0.587616
c03c8b8234653fda30c73d65e75cf62e121809ce
6,691
py
Python
apps/user/views.py
Devin6Tam/site_demo
c8766b574da0f0c8259995f56cc1a201fc2281be
[ "Apache-2.0" ]
null
null
null
apps/user/views.py
Devin6Tam/site_demo
c8766b574da0f0c8259995f56cc1a201fc2281be
[ "Apache-2.0" ]
10
2021-03-19T01:23:35.000Z
2022-03-12T00:21:44.000Z
apps/user/views.py
Devin6Tam/site_demo
c8766b574da0f0c8259995f56cc1a201fc2281be
[ "Apache-2.0" ]
null
null
null
from django.http import HttpResponse, Http404, HttpResponseRedirect from django.template import loader from django.shortcuts import render, redirect, reverse, get_object_or_404 from django.core.paginator import Paginator from django.views import generic import logging from django import forms from django.conf import se...
36.167568
102
0.595277
37db85fc237e532dfed465775bf343b661086046
468
py
Python
adv/irfan.py.r.lt.py
betairylia/dl
4eb06837b13decc569066a43b58e205f3b716ff8
[ "Apache-2.0" ]
null
null
null
adv/irfan.py.r.lt.py
betairylia/dl
4eb06837b13decc569066a43b58e205f3b716ff8
[ "Apache-2.0" ]
null
null
null
adv/irfan.py.r.lt.py
betairylia/dl
4eb06837b13decc569066a43b58e205f3b716ff8
[ "Apache-2.0" ]
null
null
null
import adv_test from adv import * def module(): return Irfan class Irfan(Adv): pass if __name__ == '__main__': conf = {} conf['acl'] = """ `rotation """ conf['rotation_init'] = """ c4fs c4fs c1 """ conf['rotation'] = """ S1 C4FS C4FS C1- S1 C2- S2 C4FS C5- S3 ...
18.72
73
0.536325
e18f193bb093fe91cf4bd03537a64da4f46ae21c
1,581
py
Python
modules/audio_processing/test/py_quality_assessment/quality_assessment/evaluation.py
Aexyn/webrtc2
daea5bf2deb843567a792f22ea2047a037e09d78
[ "DOC", "BSD-3-Clause" ]
2
2018-01-16T13:29:45.000Z
2018-08-10T09:15:23.000Z
modules/audio_processing/test/py_quality_assessment/quality_assessment/evaluation.py
Aexyn/webrtc2
daea5bf2deb843567a792f22ea2047a037e09d78
[ "DOC", "BSD-3-Clause" ]
null
null
null
modules/audio_processing/test/py_quality_assessment/quality_assessment/evaluation.py
Aexyn/webrtc2
daea5bf2deb843567a792f22ea2047a037e09d78
[ "DOC", "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
30.403846
76
0.73561
dc454d862b0a9b3d03b293696e6929f783b1a959
4,119
py
Python
education/urls.py
Amirsorouri00/neolej
8fa18f2c1a38b0a59ed7eeeed7ed37ef7b9dad97
[ "MIT" ]
null
null
null
education/urls.py
Amirsorouri00/neolej
8fa18f2c1a38b0a59ed7eeeed7ed37ef7b9dad97
[ "MIT" ]
null
null
null
education/urls.py
Amirsorouri00/neolej
8fa18f2c1a38b0a59ed7eeeed7ed37ef7b9dad97
[ "MIT" ]
null
null
null
from django.urls import include, path from django.conf.urls import url from django.views.decorators.csrf import csrf_exempt from education.views.rest.workshop import test1 as workshop_test1, test2 as workshop_test2, WorkshopAPI from education.views.rest.workshop_file import test2 as workshop_file_test2 from education.v...
56.424658
128
0.648701
68e3d57fa5f425ddf4de5ca89deb24ea37bc3844
473
py
Python
web/servicecalls/staffservice_gets.py
vacoj/mbodjango
e9a6df563862c587e4cc2c2713ed7f8ea0a6e4e3
[ "MIT" ]
8
2015-10-27T12:38:54.000Z
2018-02-23T03:03:24.000Z
web/servicecalls/staffservice_gets.py
vacoj/mbodjango
e9a6df563862c587e4cc2c2713ed7f8ea0a6e4e3
[ "MIT" ]
3
2015-10-28T22:23:58.000Z
2016-01-13T04:05:04.000Z
web/servicecalls/staffservice_gets.py
vacoj/mbodjango
e9a6df563862c587e4cc2c2713ed7f8ea0a6e4e3
[ "MIT" ]
9
2015-09-28T17:32:17.000Z
2018-02-01T00:01:04.000Z
from helpers.mbosoap.StaffService import StaffServiceCalls def GetStaff(): stafflist = StaffServiceCalls().GetStaff(staffIds=None, staffUsername=None, staffPassword=None, siteIds=None, filters=None, ...
31.533333
59
0.484144
3b8de7e8b81bdf78277eee8853733092adc13c35
4,525
py
Python
maskrcnn_benchmark/utils/comm.py
CityU-AIM-Group/NLTE
a111390bcc38bd0c759a3a9d971a7d9defce88fb
[ "MIT" ]
1
2022-03-30T14:04:55.000Z
2022-03-30T14:04:55.000Z
maskrcnn_benchmark/utils/comm.py
CityU-AIM-Group/NLTE
a111390bcc38bd0c759a3a9d971a7d9defce88fb
[ "MIT" ]
null
null
null
maskrcnn_benchmark/utils/comm.py
CityU-AIM-Group/NLTE
a111390bcc38bd0c759a3a9d971a7d9defce88fb
[ "MIT" ]
null
null
null
""" This file contains primitives for multi-gpu communication. This is useful when doing distributed training. """ import pickle import time import torch import torch.distributed as dist import operator from numbers import Number from collections import OrderedDict class ParamDict(OrderedDict): """A dictionary ...
29.00641
84
0.647072
0e4a23289a950a7bc9fb07d096c19dd7ba8bb634
12,670
py
Python
portextract.py
byte-of-reyn/portextract
923b97d73b58f55467d8abe37f9ed00e603cbacf
[ "MIT" ]
null
null
null
portextract.py
byte-of-reyn/portextract
923b97d73b58f55467d8abe37f9ed00e603cbacf
[ "MIT" ]
null
null
null
portextract.py
byte-of-reyn/portextract
923b97d73b58f55467d8abe37f9ed00e603cbacf
[ "MIT" ]
null
null
null
""" Script used to extract L2 port configuration from provided Cisco configuration backup files """ #!/usr/bin/python import sys import os.path import re from xlsxwriter.workbook import Workbook VERSION = '0.02' #excel header list excel_head = [ 'port_desc', 'port_speed', 'port_duplex'...
32.570694
100
0.522889
a21715d49e787dac76567c089cfef33369227f86
10,333
py
Python
networks/utils.py
xupei0610/PFPN
7ad049f84d1cc03200bb6cea383d5c00721f9ac4
[ "MIT" ]
9
2020-12-07T02:32:18.000Z
2022-02-07T02:38:54.000Z
networks/utils.py
xupei0610/PFPN
7ad049f84d1cc03200bb6cea383d5c00721f9ac4
[ "MIT" ]
null
null
null
networks/utils.py
xupei0610/PFPN
7ad049f84d1cc03200bb6cea383d5c00721f9ac4
[ "MIT" ]
1
2022-01-01T01:45:01.000Z
2022-01-01T01:45:01.000Z
from .ops import * import numpy as np import tensorflow_probability as tfp def discount(val, factor, boostrap_val, normalize=False): result = [None]*len(val) v_ = boostrap_val for t in reversed(range(len(val))): v_ = val[t] + factor * v_ result[t] = v_ if normalize: result = np....
43.599156
94
0.517275
4c3c3864553c6b28605056cd44403b6b95d5533a
1,187
py
Python
generate_release_docs.py
madhuri7112/Singularity
11a533ecf2baaa1a4a74404b3de435e8d5b7d1a3
[ "Apache-2.0" ]
692
2015-01-02T02:30:23.000Z
2022-03-18T08:16:05.000Z
generate_release_docs.py
madhuri7112/Singularity
11a533ecf2baaa1a4a74404b3de435e8d5b7d1a3
[ "Apache-2.0" ]
1,399
2015-01-01T10:52:44.000Z
2022-03-17T18:27:23.000Z
generate_release_docs.py
mikebell90/Singularity
290d647ee3cd5ddfbf381d09d22fdce1896e3388
[ "Apache-2.0" ]
280
2015-01-02T02:30:33.000Z
2022-03-03T21:08:33.000Z
import argparse import requests def base_text(release): return """## Changes in `{0}` Check out the [{0} milestone](https://github.com/HubSpot/Singularity/issues?q=milestone%3A%{0}+is%3Aclosed) to see new features / bugfixes in detail. ### New Features ### Improvements ### Bug Fixes ### Documentation """....
32.081081
255
0.671441
b606e1d5ab0004be323e09e3605707561f1dc50e
16,535
py
Python
ForVictoria.py
njhovorka/mini-rpg
c3af63839925a873302b2fbe89b692c29f7fea8f
[ "MIT" ]
null
null
null
ForVictoria.py
njhovorka/mini-rpg
c3af63839925a873302b2fbe89b692c29f7fea8f
[ "MIT" ]
null
null
null
ForVictoria.py
njhovorka/mini-rpg
c3af63839925a873302b2fbe89b692c29f7fea8f
[ "MIT" ]
null
null
null
import pygame import random pygame.init() win = pygame.display.set_mode((500,480)) pygame.display.set_caption('For Victoria') idle_list = [[pygame.image.load('images/heavy_idle1.png'), pygame.image.load('images/heavy_idle1.png'), pygame.image.load('images/heavy_idle2.png'), pygame.image.load('images/heavy_idle2.png'...
34.519833
220
0.526822
6d37c28ba06a4c472baf21f58569c13385c5432b
7,220
py
Python
neutron/common/rpc.py
glove747/liberty-neutron
35a4c85e781d10da4521565c3a367e4ecb50739d
[ "Apache-2.0" ]
null
null
null
neutron/common/rpc.py
glove747/liberty-neutron
35a4c85e781d10da4521565c3a367e4ecb50739d
[ "Apache-2.0" ]
null
null
null
neutron/common/rpc.py
glove747/liberty-neutron
35a4c85e781d10da4521565c3a367e4ecb50739d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012 OpenStack Foundation. # Copyright (c) 2014 Red Hat, Inc. # 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...
31.12069
79
0.669114
4a87e4400116e42a0e3618d5d7323e645ed4e58a
772
py
Python
parser/fase2/team08/Tytus_SQLPARSER_G8/Instrucciones/FunctionMathematical/TrimScale.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
null
null
null
parser/fase2/team08/Tytus_SQLPARSER_G8/Instrucciones/FunctionMathematical/TrimScale.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
null
null
null
parser/fase2/team08/Tytus_SQLPARSER_G8/Instrucciones/FunctionMathematical/TrimScale.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
4
2020-12-19T17:12:13.000Z
2021-01-07T20:29:53.000Z
import math from Instrucciones.TablaSimbolos.Instruccion import Instruccion class TrimScale(Instruccion): def __init__(self, valor, tipo, strGram, linea, columna): Instruccion.__init__(self,tipo,linea,columna, strGram) self.valor = valor def ejecutar(self, tabla, arbol): super().ejecut...
35.090909
81
0.680052
8fd14ff13559c76f4be64565ce9189db84986baf
405
py
Python
env/Lib/site-packages/plotly/validators/densitymapbox/_radiussrc.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
venv/Lib/site-packages/plotly/validators/densitymapbox/_radiussrc.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
venv/Lib/site-packages/plotly/validators/densitymapbox/_radiussrc.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class RadiussrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__(self, plotly_name="radiussrc", parent_name="densitymapbox", **kwargs): super(RadiussrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
33.75
87
0.681481
ac82aaf7fcdf6ff7c3b51050d18d476facf37e10
660
py
Python
tests/helpers/settings.py
AdamSwenson/TwitterProject
8c5dc7a57eac611b555058736d609f2f204cb836
[ "MIT" ]
null
null
null
tests/helpers/settings.py
AdamSwenson/TwitterProject
8c5dc7a57eac611b555058736d609f2f204cb836
[ "MIT" ]
6
2020-03-24T17:34:24.000Z
2021-12-13T20:14:34.000Z
tests/helpers/settings.py
AdamSwenson/TwitterProject
8c5dc7a57eac611b555058736d609f2f204cb836
[ "MIT" ]
null
null
null
""" This defines global variables for testing. Most importantly, this exposes settings.Session which is the scoped session maker for anything needing to use sqlalchemy's session for testing Usage for factories # Use the not-so-global scoped_session # Warning: DO NOT USE common.Session()! sqlalchemy_session = ...
23.571429
54
0.766667
e7bfaca2198763692d2f4fe6bb84fc7cdc55484d
10,217
py
Python
discord/ui/button.py
Vondyy/pycord
26e11e8a8f6ae95bf81d86261a2526c6f8e3432d
[ "MIT" ]
4
2021-11-13T14:47:41.000Z
2021-12-20T23:55:10.000Z
discord/ui/button.py
pycord/pycord
3d098a82d2a1450297bd187eb4f4d06ba30478fe
[ "MIT" ]
null
null
null
discord/ui/button.py
pycord/pycord
3d098a82d2a1450297bd187eb4f4d06ba30478fe
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2015-2021 Rapptz Copyright (c) 2021-present Pycord Development 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 limit...
35.231034
106
0.646374
1eada36f90d10c6b95e2ef6899d7e1ee064d1fca
186
py
Python
tests/test_package.py
davidt0x/lca_onnx
11123c6d7e14daa6071222c6c5205ea49ce60946
[ "BSD-3-Clause" ]
null
null
null
tests/test_package.py
davidt0x/lca_onnx
11123c6d7e14daa6071222c6c5205ea49ce60946
[ "BSD-3-Clause" ]
2
2021-11-29T08:26:29.000Z
2021-12-15T08:24:29.000Z
tests/test_package.py
davidt0x/lca_onnx
11123c6d7e14daa6071222c6c5205ea49ce60946
[ "BSD-3-Clause" ]
1
2021-10-13T15:47:04.000Z
2021-10-13T15:47:04.000Z
import lca_onnx as m import lca_onnx._core as cpp def test_pybind11(): assert cpp.add(1, 2) == 3 assert cpp.subtract(1, 2) == -1 def test_version(): assert m.__version__
15.5
35
0.672043
b5d41715f774c8ab3755c00764c48d85f4312c38
72,863
py
Python
sympy/physics/quantum/spin.py
sid21g/sympy
440d289ee1e8b54e5e3e5e7262e06651f5ec5878
[ "BSD-3-Clause" ]
null
null
null
sympy/physics/quantum/spin.py
sid21g/sympy
440d289ee1e8b54e5e3e5e7262e06651f5ec5878
[ "BSD-3-Clause" ]
null
null
null
sympy/physics/quantum/spin.py
sid21g/sympy
440d289ee1e8b54e5e3e5e7262e06651f5ec5878
[ "BSD-3-Clause" ]
1
2020-02-06T17:54:20.000Z
2020-02-06T17:54:20.000Z
"""Quantum mechanical angular momemtum.""" from __future__ import print_function, division from sympy import (Add, binomial, cos, exp, Expr, factorial, I, Integer, Mul, pi, Rational, S, sin, simplify, sqrt, Sum, symbols, sympify, Tuple, Dummy) from sympy.core.compatibility import...
34.048131
131
0.580363
3f7469488053355fd4e40e749641bd484d069e65
45,874
py
Python
pandas/core/indexes/interval.py
mwaskom/pandas
d1010643fea058ba43c2c7124af75cc462ccf242
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "BSD-3-Clause" ]
3
2017-02-09T20:01:04.000Z
2021-08-11T00:33:41.000Z
pandas/core/indexes/interval.py
mwaskom/pandas
d1010643fea058ba43c2c7124af75cc462ccf242
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "BSD-3-Clause" ]
null
null
null
pandas/core/indexes/interval.py
mwaskom/pandas
d1010643fea058ba43c2c7124af75cc462ccf242
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "BSD-3-Clause" ]
null
null
null
""" define the IntervalIndex """ import numpy as np from pandas.core.dtypes.missing import notna, isna from pandas.core.dtypes.generic import ABCPeriodIndex from pandas.core.dtypes.dtypes import IntervalDtype from pandas.core.dtypes.cast import maybe_convert_platform from pandas.core.dtypes.common import ( _ensur...
34.336826
79
0.582051
522468155ac7c64ffb929ce098546aad885e3b0d
5,625
py
Python
cogdl/datasets/gtn_data.py
cenyk1230/cogdl
fa1f74d5c3a15b5a52abfc7cd3f04dce4b7dbcce
[ "MIT" ]
null
null
null
cogdl/datasets/gtn_data.py
cenyk1230/cogdl
fa1f74d5c3a15b5a52abfc7cd3f04dce4b7dbcce
[ "MIT" ]
null
null
null
cogdl/datasets/gtn_data.py
cenyk1230/cogdl
fa1f74d5c3a15b5a52abfc7cd3f04dce4b7dbcce
[ "MIT" ]
null
null
null
import os.path as osp import pickle import numpy as np import torch from cogdl.data import Graph, Dataset from cogdl.utils import download_url, untar from . import register_dataset class GTNDataset(Dataset): r"""The network datasets "ACM", "DBLP" and "IMDB" from the `"Graph Transformer Networks" <https:...
36.525974
113
0.632889
c41c4d5328470a51353999abe04ca1c1ed9eef82
2,237
py
Python
salvia/wallet/puzzles/prefarm/make_prefarm_ph.py
mikando/salvia-blockchain
02181d0b5a063374f01eea951570dbc661bddc34
[ "Apache-2.0" ]
null
null
null
salvia/wallet/puzzles/prefarm/make_prefarm_ph.py
mikando/salvia-blockchain
02181d0b5a063374f01eea951570dbc661bddc34
[ "Apache-2.0" ]
null
null
null
salvia/wallet/puzzles/prefarm/make_prefarm_ph.py
mikando/salvia-blockchain
02181d0b5a063374f01eea951570dbc661bddc34
[ "Apache-2.0" ]
null
null
null
from clvm.casts import int_from_bytes from clvm_tools import binutils from salvia.consensus.block_rewards import calculate_base_farmer_reward, calculate_pool_reward from salvia.types.blockchain_format.program import Program from salvia.types.condition_opcodes import ConditionOpcode from salvia.util.bech32m import deco...
36.080645
114
0.734019
254b6dede099cb3cb058a353025fcea46e8213ae
1,409
py
Python
tests/integration/fenics_tests/tutorials/page_9.py
muh-hassani/pyiron_continuum
44777f91a6c5defb0e5f8a7ad74908368bc37aba
[ "BSD-3-Clause" ]
null
null
null
tests/integration/fenics_tests/tutorials/page_9.py
muh-hassani/pyiron_continuum
44777f91a6c5defb0e5f8a7ad74908368bc37aba
[ "BSD-3-Clause" ]
50
2021-02-19T19:33:38.000Z
2022-03-22T14:26:04.000Z
tests/integration/fenics_tests/tutorials/page_9.py
muh-hassani/pyiron_continuum
44777f91a6c5defb0e5f8a7ad74908368bc37aba
[ "BSD-3-Clause" ]
1
2021-09-11T09:25:19.000Z
2021-09-11T09:25:19.000Z
# coding: utf-8 # Copyright (c) Max-Planck-Institut für Eisenforschung GmbH - Computational Materials Design (CM) Department # Distributed under the terms of "New BSD License", see the LICENSE file. from fenics import * from ufl import nabla_div def linear_elasticity(): # Scaled variables L = 1; W = 0.2 ...
26.092593
108
0.605394
c2ed93936cef3e5050f2a18c10ba079293fdadb6
14,655
py
Python
onnx/backend/test/runner/__init__.py
How-Wang/onnx
c940fa3fea84948e46603cab2f86467291443beb
[ "Apache-2.0" ]
1
2022-02-04T07:45:14.000Z
2022-02-04T07:45:14.000Z
onnx/backend/test/runner/__init__.py
How-Wang/onnx
c940fa3fea84948e46603cab2f86467291443beb
[ "Apache-2.0" ]
null
null
null
onnx/backend/test/runner/__init__.py
How-Wang/onnx
c940fa3fea84948e46603cab2f86467291443beb
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from collections import defaultdict import functools import glob import os import re import shutil import sys import tarfile import...
42.601744
134
0.583623
7095bdcfb2b29c4c897e71b7184aac06a00bbc86
19
py
Python
ion/runner.py
tor4z/ion
aa60ac23246f5fab5a5199704a65f7068d316179
[ "MIT" ]
null
null
null
ion/runner.py
tor4z/ion
aa60ac23246f5fab5a5199704a65f7068d316179
[ "MIT" ]
null
null
null
ion/runner.py
tor4z/ion
aa60ac23246f5fab5a5199704a65f7068d316179
[ "MIT" ]
null
null
null
def run(): pass
9.5
10
0.526316
afd08d8f34e1e97f9d69458483ba9bef998f13f2
135
py
Python
main.py
thiago-rezende/se-covid-assignment
ea1b9f9c40bf5671cad43ee0cc4d297262d60f63
[ "Apache-2.0" ]
null
null
null
main.py
thiago-rezende/se-covid-assignment
ea1b9f9c40bf5671cad43ee0cc4d297262d60f63
[ "Apache-2.0" ]
null
null
null
main.py
thiago-rezende/se-covid-assignment
ea1b9f9c40bf5671cad43ee0cc4d297262d60f63
[ "Apache-2.0" ]
null
null
null
# Application entry point from horus.application import Application if __name__ == "__main__": app = Application() app.run()
16.875
41
0.711111
fbad8dd55a681ac1c270ad1b0a6788711c694594
955
py
Python
temp.py
nadavleh/CNN-from-scratch
b865a15bae844b16d345eda9a5d40b08b07ccf04
[ "MIT" ]
null
null
null
temp.py
nadavleh/CNN-from-scratch
b865a15bae844b16d345eda9a5d40b08b07ccf04
[ "MIT" ]
null
null
null
temp.py
nadavleh/CNN-from-scratch
b865a15bae844b16d345eda9a5d40b08b07ccf04
[ "MIT" ]
null
null
null
from cnn_layers import * import numpy as np # b = convLayer3D(6, (6,5,5), (-0.1,0.1)) # a = np.ones((6,12,12)) # b.forwardProp(a) # import skimage.data # from matplotlib import pyplot as plt # # Reading the image # img = skimage.data.chelsea() # # Converting the image into gray. # img = skimag...
13.642857
70
0.558115
ad2e8cc739c65f73b2c8fe63503b9a89fbaaad48
1,394
py
Python
python/cuml/neighbors/__init__.py
tzemicheal/cuml
377f3c2773e3fc64d93d3d64a3f2fcd6c8759044
[ "Apache-2.0" ]
1
2021-01-01T10:52:18.000Z
2021-01-01T10:52:18.000Z
python/cuml/neighbors/__init__.py
tzemicheal/cuml
377f3c2773e3fc64d93d3d64a3f2fcd6c8759044
[ "Apache-2.0" ]
null
null
null
python/cuml/neighbors/__init__.py
tzemicheal/cuml
377f3c2773e3fc64d93d3d64a3f2fcd6c8759044
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2019, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
34.85
74
0.697274
d323dbb12ab50a187d78829f8c255460431eddf8
458
py
Python
databases/seeds/user_table_seeder.py
vaibhavmule/orm
8eb7b4667dc97870df46ef7a6724b21d5fb58fdb
[ "MIT" ]
null
null
null
databases/seeds/user_table_seeder.py
vaibhavmule/orm
8eb7b4667dc97870df46ef7a6724b21d5fb58fdb
[ "MIT" ]
null
null
null
databases/seeds/user_table_seeder.py
vaibhavmule/orm
8eb7b4667dc97870df46ef7a6724b21d5fb58fdb
[ "MIT" ]
null
null
null
"""UserTableSeeder Seeder.""" from src.masonite.orm.seeds import Seeder from src.masonite.orm.factories import Factory as factory from app.User import User factory.register(User, lambda faker: {'email': faker.email()}) class UserTableSeeder(Seeder): def run(self): """Run the database seeds.""" p...
25.444444
62
0.631004
b2670f945ea4985e2a0172449cf451256e089be2
1,937
py
Python
scripts/data/make_handlabel_data_7keypooints.py
Xingyu-Romantic/MoveNet.Paddle
aa6c36b5027092ad38a793117b7ee52bb2c94a18
[ "MIT" ]
87
2021-11-13T11:05:55.000Z
2022-03-30T11:00:45.000Z
scripts/data/make_handlabel_data_7keypooints.py
Dyian-snow/movenet.pytorch
95ec8535245228aa4335243e68722810e50bcaf8
[ "MIT" ]
18
2021-11-16T01:13:19.000Z
2022-03-31T16:04:31.000Z
scripts/data/make_handlabel_data_7keypooints.py
Dyian-snow/movenet.pytorch
95ec8535245228aa4335243e68722810e50bcaf8
[ "MIT" ]
28
2021-11-13T11:22:05.000Z
2022-03-29T10:02:09.000Z
""" @Fire https://github.com/fire717 """ import os import json import pickle import cv2 import numpy as np import glob read_dir = "label5" save_dir = "croped" output_name = 'croped/%s.json' % read_dir output_img_dir = "croped/imgs" if __name__ == '__main__': imgs = glob.glob(read_...
24.833333
69
0.512648
a5d1f1397b63fc37f5f4dc112c25930c88f6424a
1,177
py
Python
Deprecated Source Code/stockExpectedReturn.py
TFSM00/Efficient-Frontier-Calculator
6277c7c2d85f4639900931739e54d010057e22a6
[ "MIT" ]
null
null
null
Deprecated Source Code/stockExpectedReturn.py
TFSM00/Efficient-Frontier-Calculator
6277c7c2d85f4639900931739e54d010057e22a6
[ "MIT" ]
null
null
null
Deprecated Source Code/stockExpectedReturn.py
TFSM00/Efficient-Frontier-Calculator
6277c7c2d85f4639900931739e54d010057e22a6
[ "MIT" ]
null
null
null
from stockStatistics import stockStatistics import pandas as pd tickers = ["AAPL","GOOG","AMZN","MSFT","INTC","IBM","ORCL","CSCO","NVDA"] def Average_StdDev_Data(tickerList): """ Returns a dataframe with the average and std. deviation for every ticker """ data = stockStatistics(tickerList) a...
23.54
113
0.641461
be73a970fabf6a6900473be5d3508048aee1ffc3
307
py
Python
vaultier/vaultier/tasks.py
dz0ny/Vaultier
e23d86c7576f4785b4e369242d7b5f7125e4d8c6
[ "BSD-3-Clause" ]
30
2015-07-13T11:11:23.000Z
2021-01-25T14:21:18.000Z
vaultier/vaultier/tasks.py
corpusops/vaultier
3baef4346add0b3bdff322257467f74b2a0c856c
[ "BSD-3-Clause" ]
null
null
null
vaultier/vaultier/tasks.py
corpusops/vaultier
3baef4346add0b3bdff322257467f74b2a0c856c
[ "BSD-3-Clause" ]
31
2015-08-10T12:10:16.000Z
2020-09-18T09:43:28.000Z
from __future__ import absolute_import from vaultier.statistics.statistics import StatisticsManager from celery import shared_task @shared_task() def task_statistics_collector(): """ Collects statistics from database and sends them to vaultier.org """ StatisticsManager.send_statistics()
23.615385
68
0.791531
0f876536ce64275220dd54bb29ee85255b3862b3
6,285
py
Python
old_tests/test_forcefield.py
schmolly/timemachine
7d13a0406dc2d09ac67892988641ba4965bfb206
[ "Apache-2.0" ]
3
2020-01-28T21:19:54.000Z
2020-01-29T16:03:44.000Z
old_tests/test_forcefield.py
schmolly/timemachine
7d13a0406dc2d09ac67892988641ba4965bfb206
[ "Apache-2.0" ]
null
null
null
old_tests/test_forcefield.py
schmolly/timemachine
7d13a0406dc2d09ac67892988641ba4965bfb206
[ "Apache-2.0" ]
null
null
null
import os import unittest import ast from ff import forcefield from ff import system from ff import openmm_converter import itertools import numpy as np import pathlib from rdkit import Chem from simtk.openmm import app from simtk.openmm.app import PDBFile def get_masses(m): masses = [] for a in m.GetAtoms(...
39.528302
241
0.561814
5b4e201d76ab3689bc8847d6141b2fff1a852174
3,341
py
Python
script/update.py
pranayaryal/electron
a7052efaf4fc6bb2aeedd6579e662e98aa2237dd
[ "MIT" ]
2
2018-06-23T22:04:12.000Z
2018-06-28T08:59:52.000Z
script/update.py
pranayaryal/electron
a7052efaf4fc6bb2aeedd6579e662e98aa2237dd
[ "MIT" ]
8
2020-06-26T00:58:18.000Z
2020-11-04T04:11:46.000Z
script/update.py
pranayaryal/electron
a7052efaf4fc6bb2aeedd6579e662e98aa2237dd
[ "MIT" ]
1
2018-10-05T17:29:23.000Z
2018-10-05T17:29:23.000Z
#!/usr/bin/env python import argparse import os import platform import subprocess import sys from lib.config import get_target_arch, PLATFORM from lib.util import get_host_arch, import_vs_env SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) def main(): os.chdir(SOURCE_ROOT) if PLATFO...
31.518868
78
0.675846
4c3564fd1062c3a7d2134b57a274eddc564fd172
2,717
py
Python
src/transformers/configuration_pegasus.py
abufadl/transformers
c84bb6eb92b654e04a82fada26417fcdab45f3af
[ "Apache-2.0" ]
null
null
null
src/transformers/configuration_pegasus.py
abufadl/transformers
c84bb6eb92b654e04a82fada26417fcdab45f3af
[ "Apache-2.0" ]
2
2020-09-03T13:54:34.000Z
2020-09-25T19:01:29.000Z
src/transformers/configuration_pegasus.py
abufadl/transformers
c84bb6eb92b654e04a82fada26417fcdab45f3af
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 Google and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
27.17
99
0.691572
8733e19444aa1963a9d23833ad9a02af35ca6e36
1,294
py
Python
tensorflow_io/ffmpeg/__init__.py
sshrdp/io
1b0f8087fa1faa76db1951148288d7f960fed6f6
[ "Apache-2.0" ]
1
2019-10-10T06:11:23.000Z
2019-10-10T06:11:23.000Z
tensorflow_io/ffmpeg/__init__.py
VonRosenchild/io
de05464e53672389119a6215fea9ceacf7f77203
[ "Apache-2.0" ]
null
null
null
tensorflow_io/ffmpeg/__init__.py
VonRosenchild/io
de05464e53672389119a6215fea9ceacf7f77203
[ "Apache-2.0" ]
1
2019-10-10T06:11:24.000Z
2019-10-10T06:11:24.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
33.179487
80
0.746522
b96022b3d1d84a918bc30e04598aa937223a5506
3,641
py
Python
tests/core/test_hook.py
tomekr/cement
fece8629c48bcd598fd61d8aa7457a5df4c4f831
[ "BSD-3-Clause" ]
826
2015-01-09T13:23:35.000Z
2022-03-18T01:19:40.000Z
tests/core/test_hook.py
tomekr/cement
fece8629c48bcd598fd61d8aa7457a5df4c4f831
[ "BSD-3-Clause" ]
316
2015-01-14T10:35:22.000Z
2022-03-08T17:18:10.000Z
tests/core/test_hook.py
tomekr/cement
fece8629c48bcd598fd61d8aa7457a5df4c4f831
[ "BSD-3-Clause" ]
112
2015-01-10T15:04:26.000Z
2022-03-16T08:11:58.000Z
"""Tests for cement.core.hook.""" from unittest.mock import Mock from pytest import raises from cement.core.exc import FrameworkError from cement.core.foundation import TestApp # module tests class TestHookManager(object): pass # app functionality and coverage tests def test_define(): with TestApp() as a...
27.171642
75
0.592145
50458d53406099c4bf8e9d47bc50aa981ef2484b
90
py
Python
ciphey/__init__.py
usama7628674/Ciphey
e18801c506e93e7e9377d0bbc6870ecd84ae2f61
[ "MIT" ]
1
2021-05-30T19:55:00.000Z
2021-05-30T19:55:00.000Z
ciphey/__init__.py
usama7628674/Ciphey
e18801c506e93e7e9377d0bbc6870ecd84ae2f61
[ "MIT" ]
null
null
null
ciphey/__init__.py
usama7628674/Ciphey
e18801c506e93e7e9377d0bbc6870ecd84ae2f61
[ "MIT" ]
null
null
null
from . import common from . import iface from . import basemods from . import __main__
11.25
22
0.744444
deaf136c5924ed815bb2b4f78dd974d08e76afd3
17,758
py
Python
uds/message/nrc.py
mdabrowski1990/uds
1aee0c1de446ee3dd461706949504f2c218db1e8
[ "MIT" ]
18
2021-03-28T22:39:18.000Z
2022-02-13T21:50:37.000Z
uds/message/nrc.py
mdabrowski1990/uds
1aee0c1de446ee3dd461706949504f2c218db1e8
[ "MIT" ]
153
2021-02-09T09:27:05.000Z
2022-03-29T06:09:15.000Z
uds/message/nrc.py
mdabrowski1990/uds
1aee0c1de446ee3dd461706949504f2c218db1e8
[ "MIT" ]
1
2021-05-13T16:01:46.000Z
2021-05-13T16:01:46.000Z
""" Module with an entire Negative Response Code (NRC) data parameters implementation. .. note:: Explanation of :ref:`NRC <knowledge-base-nrc>` values meaning is located in appendix A1 of ISO 14229-1 standard. """ __all__ = ["NRC"] from aenum import unique from uds.utilities import ByteEnum, ValidatedEnum, Exte...
76.214592
120
0.768837
710319a6f514f246ad36204b0d678dd54a257995
413
py
Python
backend/patient_frog_28586/wsgi.py
crowdbotics-apps/patient-frog-28586
882a4431d2aae31c535ad0845f17fee5503a231c
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/patient_frog_28586/wsgi.py
crowdbotics-apps/patient-frog-28586
882a4431d2aae31c535ad0845f17fee5503a231c
[ "FTL", "AML", "RSA-MD" ]
20
2021-07-08T11:44:38.000Z
2021-07-08T11:44:40.000Z
backend/patient_frog_28586/wsgi.py
crowdbotics-apps/patient-frog-28586
882a4431d2aae31c535ad0845f17fee5503a231c
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" WSGI config for patient_frog_28586 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/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('D...
24.294118
78
0.79661
db2c97ae0f84d7ef10b854b5656dd53835714ecd
54
py
Python
mpl_scipub/__init__.py
dormrod/matplotlib_wrapper
40ef4c20ac0d394cbbbfcb91da92c2c919271c6b
[ "MIT" ]
1
2020-08-02T00:13:01.000Z
2020-08-02T00:13:01.000Z
mpl_scipub/__init__.py
dormrod/mpl_scipub
40ef4c20ac0d394cbbbfcb91da92c2c919271c6b
[ "MIT" ]
null
null
null
mpl_scipub/__init__.py
dormrod/mpl_scipub
40ef4c20ac0d394cbbbfcb91da92c2c919271c6b
[ "MIT" ]
null
null
null
from .plotter import Plot from .dataset import DataSet
27
28
0.833333
1a381b8511c7524f3f8331b5c64c3e07385898b1
2,512
py
Python
tools/build/genids.py
fraca7/dsremap
fb8f4fb13e74b512ed0cac05387fbe9694faebcf
[ "MIT" ]
8
2020-09-06T02:15:10.000Z
2022-01-12T22:49:20.000Z
tools/build/genids.py
fraca7/dsremap
fb8f4fb13e74b512ed0cac05387fbe9694faebcf
[ "MIT" ]
5
2021-03-29T20:37:46.000Z
2021-09-19T13:20:24.000Z
tools/build/genids.py
fraca7/dsremap
fb8f4fb13e74b512ed0cac05387fbe9694faebcf
[ "MIT" ]
2
2020-09-16T01:45:49.000Z
2021-06-12T12:38:15.000Z
#!/usr/bin/env python3 import os import time import codecs import getopt import sys import pickle """ Generates the C header file that #defines the numerical message log IDs """ def write_ids(defname, dstname, strname): current = 0 strings = {} seen = set() with codecs.getreader('utf-8')(open(defname...
26.166667
90
0.506768
d24142157aafef9fec1e4c59909c8fdd6d0c4adf
2,086
py
Python
PLAYLIST DURATION/playlistduration.py
Pratyay360/python-youtube
4d9200851705728e433c79680b11435648c87d35
[ "MIT" ]
1
2021-06-16T14:27:20.000Z
2021-06-16T14:27:20.000Z
PLAYLIST DURATION/playlistduration.py
Pratyay360/python-youtube
4d9200851705728e433c79680b11435648c87d35
[ "MIT" ]
null
null
null
PLAYLIST DURATION/playlistduration.py
Pratyay360/python-youtube
4d9200851705728e433c79680b11435648c87d35
[ "MIT" ]
null
null
null
# CREATED BY PRATYAY import os import re from datetime import timedelta from googleapiclient.discovery import build ''' ENTER API KEY COLLECTED FROM https://developers.google.com/youtube/v3/getting-started ''' api_key = os.environ.get('API_KEY_HERE') youtube = build('youtube', 'v3', developerKey=api_key) hours_patt...
26.405063
85
0.655801
22fa2f249da5df80119685484986ca4a0a849762
4,638
py
Python
LongTermMemory/src/LongTermMemoryServer.py
emschimmel/BrainPi
96c0ccb727507bcce4d48292f77bb80a77164a0c
[ "Apache-2.0" ]
4
2017-11-12T12:55:32.000Z
2020-03-05T06:12:25.000Z
LongTermMemory/src/LongTermMemoryServer.py
emschimmel/BrainPi
96c0ccb727507bcce4d48292f77bb80a77164a0c
[ "Apache-2.0" ]
21
2017-11-24T10:18:29.000Z
2018-01-24T10:09:34.000Z
LongTermMemory/src/LongTermMemoryServer.py
emschimmel/BrainPi
96c0ccb727507bcce4d48292f77bb80a77164a0c
[ "Apache-2.0" ]
null
null
null
import signal import sys import consul from multiprocessing.managers import SyncManager sys.path.append('./gen-py') from LongMemory import LongMemoryService from LongMemory.ttypes import * from ThriftException.ttypes import * from Memory.PersonMemory import PersonMemory from Memory.AutorisationActions import Autoris...
31.55102
118
0.68564
5a711d138047e6627d1cbd27de035918f9afcea9
215
py
Python
tests/setup_test/test.py
khurrumsaleem/plotter
a8abcda71c20f6f51f635636338a3ee95a78733e
[ "MIT" ]
17
2019-03-30T14:44:08.000Z
2022-03-15T16:00:47.000Z
tests/setup_test/test.py
khurrumsaleem/plotter
a8abcda71c20f6f51f635636338a3ee95a78733e
[ "MIT" ]
55
2019-03-22T18:44:19.000Z
2022-03-03T19:11:06.000Z
tests/setup_test/test.py
khurrumsaleem/plotter
a8abcda71c20f6f51f635636338a3ee95a78733e
[ "MIT" ]
11
2019-03-22T22:52:56.000Z
2021-03-18T22:59:00.000Z
from openmc_plotter.main_window import MainWindow, _openmcReload def test_window(qtbot): _openmcReload() mw = MainWindow() mw.loadGui() mw.plotIm.figure.savefig("test.png") qtbot.addWidget(mw)
21.5
64
0.72093
a9420af5c49eeb7db1623f370c6e48e76b87b7d2
2,452
py
Python
trax/tf_numpy/numpy_impl/dtypes.py
Nishant-Pall/trax
f714a271111578d4e6b3ac445eef86ca03dc7fa6
[ "Apache-2.0" ]
2
2020-08-08T14:38:53.000Z
2021-03-04T01:00:17.000Z
trax/tf_numpy/numpy/dtypes.py
ZachT1711/trax
a0a3dd8d49e53fc48bb24cc08c10a8a53517e7bc
[ "Apache-2.0" ]
null
null
null
trax/tf_numpy/numpy/dtypes.py
ZachT1711/trax
a0a3dd8d49e53fc48bb24cc08c10a8a53517e7bc
[ "Apache-2.0" ]
1
2020-03-06T06:36:36.000Z
2020-03-06T06:36:36.000Z
# coding=utf-8 # Copyright 2020 The Trax Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
24.767677
80
0.766721
9526056407692c0d76e952e26eea096b8f9a29c2
814
py
Python
MLProjects/Phishing-URL-Detection/phishingurldetector/phishingurldetector/urls.py
evidawei/HacktoberFest_2021
3c950c6a6451ac732c4090f374c7dc4b6ef36c50
[ "MIT" ]
33
2021-10-01T17:51:53.000Z
2022-03-20T11:30:09.000Z
MLProjects/Phishing-URL-Detection/phishingurldetector/phishingurldetector/urls.py
evidawei/HacktoberFest_2021
3c950c6a6451ac732c4090f374c7dc4b6ef36c50
[ "MIT" ]
69
2021-10-01T09:07:22.000Z
2021-10-20T02:21:12.000Z
MLProjects/Phishing-URL-Detection/phishingurldetector/phishingurldetector/urls.py
evidawei/HacktoberFest_2021
3c950c6a6451ac732c4090f374c7dc4b6ef36c50
[ "MIT" ]
187
2021-10-01T09:06:51.000Z
2022-01-29T03:18:30.000Z
"""phishingurldetector 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')...
33.916667
77
0.707617
d5b726a2b257a4922f376184299305300848ca92
9,913
py
Python
tierpsy/analysis/int_ske_orient/checkFinalOrientation.py
SKFnordquist/tierpsy-tracker
7ed935fdd3ee5920914effb1bf52dec45b7d54fc
[ "MIT" ]
1
2019-02-24T23:45:36.000Z
2019-02-24T23:45:36.000Z
tierpsy/analysis/int_ske_orient/checkFinalOrientation.py
SKFnordquist/tierpsy-tracker
7ed935fdd3ee5920914effb1bf52dec45b7d54fc
[ "MIT" ]
null
null
null
tierpsy/analysis/int_ske_orient/checkFinalOrientation.py
SKFnordquist/tierpsy-tracker
7ed935fdd3ee5920914effb1bf52dec45b7d54fc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Mar 15 15:37:12 2016 @author: ajaver """ import glob import os import numpy as np import pandas as pd import tables from scipy.signal import savgol_filter from tierpsy.analysis.ske_orient.checkHeadOrientation import isWormHTSwitched from tierpsy.helper.misc import print_fl...
35.530466
121
0.630082
e25373abb1704dba604263e3208608756befdea6
142
py
Python
src/141A.py
viing937/codeforces
d694eb6967cd56af02963c3a662066048cb78d07
[ "MIT" ]
2
2016-08-19T09:47:03.000Z
2016-10-01T10:15:03.000Z
src/141A.py
viing937/codeforces
d694eb6967cd56af02963c3a662066048cb78d07
[ "MIT" ]
null
null
null
src/141A.py
viing937/codeforces
d694eb6967cd56af02963c3a662066048cb78d07
[ "MIT" ]
1
2015-07-01T23:57:32.000Z
2015-07-01T23:57:32.000Z
# coding: utf-8 s1 = input() s2 = input() s = input() if sorted(list(s1)+list(s2)) == sorted(list(s)): print('YES') else: print('NO')
15.777778
48
0.56338
f03284717bc211e6600613a99d2dc6cbf51fcafa
16,743
py
Python
models/stl10/cnn.py
mathczh/GANL2L
fdffbcb1547cf8f3a7287a4a21d3f4871f3e4e42
[ "MIT" ]
null
null
null
models/stl10/cnn.py
mathczh/GANL2L
fdffbcb1547cf8f3a7287a4a21d3f4871f3e4e42
[ "MIT" ]
null
null
null
models/stl10/cnn.py
mathczh/GANL2L
fdffbcb1547cf8f3a7287a4a21d3f4871f3e4e42
[ "MIT" ]
null
null
null
import torch.nn as nn import torch from ..OrthConv import * from ..SNConv import * from ..SphereConv import * __all__ = ['cnn_D','cnn_G','cnnv1_D','cnnv1_G','cnnv2_D','cnnv2_G','set_use_bias_cnn'] USE_BIAS = False def set_use_bias_cnn(x): global USE_BIAS USE_BIAS = x class CNN_D(nn.Module): def __init_...
42.820972
158
0.51747