hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a0f556816e062ea990fbefa9e842ae385ba4964
3,247
py
Python
modellibs/faster_rcnn/third_party/model/rpn/generate_anchors.py
fortoon21/detecthangul
d59cfc64fe658022040f949b836c9e7fa00d3ecd
[ "MIT" ]
5
2020-01-03T10:19:05.000Z
2021-07-14T01:47:01.000Z
modellibs/faster_rcnn/third_party/model/rpn/generate_anchors.py
fortoon21/detecthangul
d59cfc64fe658022040f949b836c9e7fa00d3ecd
[ "MIT" ]
null
null
null
modellibs/faster_rcnn/third_party/model/rpn/generate_anchors.py
fortoon21/detecthangul
d59cfc64fe658022040f949b836c9e7fa00d3ecd
[ "MIT" ]
3
2019-08-07T08:49:44.000Z
2022-03-31T05:27:43.000Z
from __future__ import print_function # -------------------------------------------------------- # Faster R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick and Sean Bell # -------------------------------------------------------- import numpy as n...
28.734513
78
0.522328
4a0f55c4d30c4b09c1a52d558351d54b68da3089
1,600
py
Python
setup.py
aptivate/datacleaner
46fbbe593d46f7161f0c7c9ab2a492a87c03c55e
[ "BSD-3-Clause" ]
null
null
null
setup.py
aptivate/datacleaner
46fbbe593d46f7161f0c7c9ab2a492a87c03c55e
[ "BSD-3-Clause" ]
null
null
null
setup.py
aptivate/datacleaner
46fbbe593d46f7161f0c7c9ab2a492a87c03c55e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read().replace('.. :changelog:', ...
27.586207
122
0.63625
4a0f56aacb22ea488f37babd1842db92574ccf20
1,507
py
Python
tests/testclient/__init__.py
androbwebb/JenniferVirtualAssistant
1c810b3d53d9fcb0c691cf11c0f83dd4a1e1b061
[ "MIT" ]
15
2016-04-22T22:56:30.000Z
2020-08-29T07:14:12.000Z
tests/testclient/__init__.py
androbwebb/JenniferVirtualAssistant
1c810b3d53d9fcb0c691cf11c0f83dd4a1e1b061
[ "MIT" ]
2
2020-02-03T09:10:11.000Z
2020-04-14T05:31:52.000Z
tests/testclient/__init__.py
androbwebb/JenniferVirtualAssistant
1c810b3d53d9fcb0c691cf11c0f83dd4a1e1b061
[ "MIT" ]
7
2016-04-22T22:56:31.000Z
2022-02-02T15:17:26.000Z
from ioclients import JenniferClientSupportsResponders from lessons.base.responses import JenniferTextResponseSegment, JenniferImageReponseSegment, \ JenniferLinkResponseSegement class JenniferTestClient(JenniferClientSupportsResponders): ALLOWED_RESPONSE_TYPES = [JenniferTextResponseSegment, JenniferImageRe...
35.880952
117
0.664897
4a0f579eb05f59e3ad655cbd6c05192bad398ffe
1,703
py
Python
magnum-8.0.0/magnum/conf/cinder.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
null
null
null
magnum-8.0.0/magnum/conf/cinder.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
magnum-8.0.0/magnum/conf/cinder.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
3
2020-02-05T13:17:26.000Z
2020-08-24T05:32:32.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy # of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
33.392157
77
0.692308
4a0f57bd68558d7df471198ea7d0b2929a34ed95
3,478
py
Python
python/cuML/test/test_kalman_filter.py
akshaysubr/cuml
7fceac26242f0155a5fa5cf1951af29230302e31
[ "Apache-2.0" ]
1
2019-10-01T15:20:32.000Z
2019-10-01T15:20:32.000Z
python/cuML/test/test_kalman_filter.py
akshaysubr/cuml
7fceac26242f0155a5fa5cf1951af29230302e31
[ "Apache-2.0" ]
null
null
null
python/cuML/test/test_kalman_filter.py
akshaysubr/cuml
7fceac26242f0155a5fa5cf1951af29230302e31
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018, 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 to...
26.549618
74
0.582519
4a0f57e69ad3ca50751cbfcbf0127a402dbbd2a8
25,844
py
Python
networkbrowserpli/src/NetworkBrowser.py
builder07/enigma2-plugins_3
2fc0d26891fba28ebea1550a39f5e8d7973db10c
[ "OLDAP-2.3" ]
2
2020-09-02T18:25:39.000Z
2020-09-02T18:39:07.000Z
networkbrowserpli/src/NetworkBrowser.py
builder07/enigma2-plugins_3
2fc0d26891fba28ebea1550a39f5e8d7973db10c
[ "OLDAP-2.3" ]
null
null
null
networkbrowserpli/src/NetworkBrowser.py
builder07/enigma2-plugins_3
2fc0d26891fba28ebea1550a39f5e8d7973db10c
[ "OLDAP-2.3" ]
11
2015-02-26T20:59:14.000Z
2021-09-20T08:23:03.000Z
# -*- coding: utf-8 -*- # for localized messages from __init__ import _ from enigma import eTimer, getDesktop from Screens.Screen import Screen from Screens.MessageBox import MessageBox from Components.Label import Label from Components.ActionMap import ActionMap, NumberActionMap from Components.Sources.List import Lis...
40.763407
186
0.698653
4a0f582785fdaf2d30b3e6980cfb54b3b07dffc5
2,603
py
Python
catkin_ws/src/99-attic/adafruit_imu/script/adafruit_imu.py
yxiao1996/dev
e2181233aaa3d16c472b792b58fc4863983825bd
[ "CC-BY-2.0" ]
2
2018-06-25T02:51:25.000Z
2018-06-25T02:51:27.000Z
catkin_ws/src/99-attic/adafruit_imu/script/adafruit_imu.py
yxiao1996/dev
e2181233aaa3d16c472b792b58fc4863983825bd
[ "CC-BY-2.0" ]
null
null
null
catkin_ws/src/99-attic/adafruit_imu/script/adafruit_imu.py
yxiao1996/dev
e2181233aaa3d16c472b792b58fc4863983825bd
[ "CC-BY-2.0" ]
2
2018-09-04T06:44:21.000Z
2018-10-15T02:30:50.000Z
#!/usr/bin/env python import rospy import time import numpy as np from Adafruit_LSM303 import Adafruit_LSM303 from Gyro_L3GD20 import Gyro_L3GD20 from sensor_msgs.msg import Imu from sensor_msgs.msg import MagneticField class AdafruitIMU(object): # Physical constants G = 9.80665 # Standart gravity at sea le...
33.371795
93
0.657318
4a0f58fd0780fd731cbd9b6428bd57da3aba6f0c
1,125
py
Python
vim/.vim-python/to-multiline-method-definition.py
borisbabic/dotfiles
5605001482356d2736afa526b1f53e80f0d79a4f
[ "MIT" ]
4
2018-09-02T00:35:38.000Z
2020-12-08T02:01:52.000Z
vim/.vim-python/to-multiline-method-definition.py
borisbabic/dotfiles
5605001482356d2736afa526b1f53e80f0d79a4f
[ "MIT" ]
null
null
null
vim/.vim-python/to-multiline-method-definition.py
borisbabic/dotfiles
5605001482356d2736afa526b1f53e80f0d79a4f
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 import fileinput def prependTabs(string, numTabs=1, tabLength=4): return numTabs * tabLength * ' ' + string def handleMethodCallLine(methodCallLine): tempLines = methodCallLine.split('('); # adds method call line newLines = [tempLines[0] + '('] # removes the trailing ) ...
25.568182
80
0.672889
4a0f590f18f4a8feae830f7f1b9b9f59c6901954
1,233
py
Python
saas/backend/apps/role/migrations/0003_auto_20200615_2000.py
nannan00/bk-iam-saas
217600fa6e5fd466fff9c33c20c4dbd7c69f77d9
[ "MIT" ]
7
2021-08-13T03:48:16.000Z
2021-12-20T15:31:38.000Z
saas/backend/apps/role/migrations/0003_auto_20200615_2000.py
nannan00/bk-iam-saas
217600fa6e5fd466fff9c33c20c4dbd7c69f77d9
[ "MIT" ]
456
2021-08-16T02:13:57.000Z
2022-03-30T10:02:49.000Z
saas/backend/apps/role/migrations/0003_auto_20200615_2000.py
nannan00/bk-iam-saas
217600fa6e5fd466fff9c33c20c4dbd7c69f77d9
[ "MIT" ]
17
2021-08-10T04:08:46.000Z
2022-03-14T14:24:36.000Z
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-权限中心(BlueKing-IAM) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with th...
42.517241
187
0.711273
4a0f5920e56174172fc4baea3eab5372ecd3a462
1,850
py
Python
ERFNet-CULane-PyTorch/dataset/voc_aug.py
yg13/Codes-for-Lane-Detection
3d44e0f62122c1d7757d3e5335b54d66aaa0aa52
[ "MIT" ]
3
2020-09-14T07:55:02.000Z
2022-03-10T12:31:42.000Z
ERFNet-CULane-PyTorch/dataset/voc_aug.py
yg13/Codes-for-Lane-Detection
3d44e0f62122c1d7757d3e5335b54d66aaa0aa52
[ "MIT" ]
null
null
null
ERFNet-CULane-PyTorch/dataset/voc_aug.py
yg13/Codes-for-Lane-Detection
3d44e0f62122c1d7757d3e5335b54d66aaa0aa52
[ "MIT" ]
1
2021-01-13T09:24:12.000Z
2021-01-13T09:24:12.000Z
import os import numpy as np import cv2 import torch from torch.utils.data import Dataset class VOCAugDataSet(Dataset): def __init__(self, dataset_path='/home/yuliangguo/Datasets/CULane/list', data_list='train', transform=None): with open(os.path.join(dataset_path, data_list + '.txt')) as f: ...
41.111111
182
0.590811
4a0f59e6b4ad352222da58b1330ec9760e7b74de
25,106
py
Python
webroot/cgi-bin/fixturegen.py
elocemearg/atropine
894010bcc89d4e6962cf3fc15ef526068c38898d
[ "CC-BY-4.0" ]
null
null
null
webroot/cgi-bin/fixturegen.py
elocemearg/atropine
894010bcc89d4e6962cf3fc15ef526068c38898d
[ "CC-BY-4.0" ]
null
null
null
webroot/cgi-bin/fixturegen.py
elocemearg/atropine
894010bcc89d4e6962cf3fc15ef526068c38898d
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/python3 import sys; import cgi; import cgitb; import os; import cgicommon; import urllib.request, urllib.parse, urllib.error; import importlib; import json; cgitb.enable(); cgicommon.writeln("Content-Type: text/html; charset=utf-8"); cgicommon.writeln(""); baseurl = "/cgi-bin/fixturegen.py"; form = cgi.F...
48.560928
268
0.64849
4a0f5a09aa696313efae63513d8f0f4cb67c3064
256
py
Python
newsfeed/users/serializers.py
mccarrion/newsfeed-django
a69a02052c120132eb50c8ecb93ca15c6b2fc081
[ "MIT" ]
2
2018-12-20T01:12:38.000Z
2021-04-10T00:31:08.000Z
newsfeed/users/serializers.py
mccarrion/newsfeed-django
a69a02052c120132eb50c8ecb93ca15c6b2fc081
[ "MIT" ]
null
null
null
newsfeed/users/serializers.py
mccarrion/newsfeed-django
a69a02052c120132eb50c8ecb93ca15c6b2fc081
[ "MIT" ]
1
2020-11-25T19:38:20.000Z
2020-11-25T19:38:20.000Z
from rest_framework import serializers from .models import User class UserSerializer(serializers.ModelSerializer): """ This is the serializer for the User data. """ class Meta: model = User fields = ('username', 'email')
19.692308
50
0.664063
4a0f5a3f1cc3461dab30b420a12f30ae20d45ada
1,259
py
Python
cloudbutton/engine/storage/backends/aws_s3/config.py
Dahk/cloudbutton
61d77123d15d9c2da99e8989220c6271ca737245
[ "Apache-2.0" ]
null
null
null
cloudbutton/engine/storage/backends/aws_s3/config.py
Dahk/cloudbutton
61d77123d15d9c2da99e8989220c6271ca737245
[ "Apache-2.0" ]
null
null
null
cloudbutton/engine/storage/backends/aws_s3/config.py
Dahk/cloudbutton
61d77123d15d9c2da99e8989220c6271ca737245
[ "Apache-2.0" ]
null
null
null
# # Copyright Cloudlab URV 2020 # # 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 writin...
41.966667
100
0.72359
4a0f5a61665076855b383e0e8149d3312a282b99
4,317
py
Python
enamlx/widgets/abstract_item.py
frmdstryr/enamlx
798eefe146aac15e559315fe5ff42dd813656cea
[ "MIT" ]
27
2015-08-25T14:37:36.000Z
2022-03-14T20:33:41.000Z
enamlx/widgets/abstract_item.py
frmdstryr/enamlx
798eefe146aac15e559315fe5ff42dd813656cea
[ "MIT" ]
27
2015-08-28T16:57:31.000Z
2021-11-10T07:43:15.000Z
enamlx/widgets/abstract_item.py
frmdstryr/enamlx
798eefe146aac15e559315fe5ff42dd813656cea
[ "MIT" ]
10
2016-10-03T16:52:41.000Z
2021-07-29T22:25:35.000Z
# -*- coding: utf-8 -*- """ Copyright (c) 2015, Jairus Martin. Distributed under the terms of the MIT License. The full license is in the file COPYING.txt, distributed with this software. Created on Aug 24, 2015 """ from atom.api import ( Int, Enum, Bool, Str, Typed, Coerced, Event, Prop...
25.850299
78
0.634932
4a0f5bb37b7c4a45fe2cf7ecf25cba84e00bef43
4,206
py
Python
data/RumEval19/read_RumEval2019.py
wmkouw/seq-rumver
2b46a141584a0a26c2e4328d42e3dee548bc04cc
[ "MIT" ]
3
2020-05-27T21:26:12.000Z
2020-12-23T17:05:04.000Z
data/RumEval19/read_RumEval2019.py
wmkouw/seq-rumver
2b46a141584a0a26c2e4328d42e3dee548bc04cc
[ "MIT" ]
null
null
null
data/RumEval19/read_RumEval2019.py
wmkouw/seq-rumver
2b46a141584a0a26c2e4328d42e3dee548bc04cc
[ "MIT" ]
1
2020-10-09T08:43:15.000Z
2020-10-09T08:43:15.000Z
""" Read training data from RumourEval 2019. RumourEval is a shared task in rumour stance classification. More info at: https://competitions.codalab.org/competitions/19938 Author: W.M. Kouw Date: 22-10-2018 """ import os import numpy as np import pandas as pd import pickle as pc import dateutil.parser from glob impor...
27.671053
99
0.614598
4a0f5bc8ee0274d70aca20380197b89505c1317d
1,047
py
Python
src/Ch08/P3_regexSearch.py
JoseALermaIII/automatepracticeprojects
0e8ae410a7347953d1686d9464f18cc5a6de65e6
[ "MIT" ]
2
2017-04-20T02:57:19.000Z
2018-10-12T20:15:47.000Z
src/Ch08/P3_regexSearch.py
JoseALermaIII/automatepracticeprojects
0e8ae410a7347953d1686d9464f18cc5a6de65e6
[ "MIT" ]
8
2021-03-18T21:50:16.000Z
2022-03-11T23:38:01.000Z
src/Ch08/P3_regexSearch.py
JoseALermaIII/automatepracticeprojects
0e8ae410a7347953d1686d9464f18cc5a6de65e6
[ "MIT" ]
3
2018-08-30T20:30:50.000Z
2022-01-18T13:40:51.000Z
"""Regex search Write a program that opens all .txt files in a folder and searches for any line that matches a user-supplied regular expression. The results should be printed to the screen. """ def main(): import os, re # Get list of all .txt files all_files = os.listdir("./") # use current working d...
24.928571
79
0.619866
4a0f5c071317e301cd27f3e3b28328221aa933dd
2,061
py
Python
src/scripts/data_processing/process_raw_data.py
arnabbiswas1/k_tab_aug_muticlass_rmse_logloss_weightedf1_stratified_tsfresh_cesium
13db3cb9d0b2f25181ccf4b1316e12425abfc276
[ "Apache-2.0" ]
null
null
null
src/scripts/data_processing/process_raw_data.py
arnabbiswas1/k_tab_aug_muticlass_rmse_logloss_weightedf1_stratified_tsfresh_cesium
13db3cb9d0b2f25181ccf4b1316e12425abfc276
[ "Apache-2.0" ]
null
null
null
src/scripts/data_processing/process_raw_data.py
arnabbiswas1/k_tab_aug_muticlass_rmse_logloss_weightedf1_stratified_tsfresh_cesium
13db3cb9d0b2f25181ccf4b1316e12425abfc276
[ "Apache-2.0" ]
null
null
null
"""This script changes the data types, creates parquet files. Final output is written to the specified directory Sample Usage: <PROJECT_HOME>$ python -m src.scripts.process_raw_data """ import numpy as np import pandas as pd import src.munging.process_data_util as process_data from src.common import com_util as u...
33.241935
88
0.714216
4a0f5d66a197f6ecc039d6c67a21d7b0ebc11280
678
py
Python
ex042.py
paulo-caixeta/Exercicios_Curso_Python
3b77925499c174ea9ff81dec65d6319125219b9a
[ "MIT" ]
null
null
null
ex042.py
paulo-caixeta/Exercicios_Curso_Python
3b77925499c174ea9ff81dec65d6319125219b9a
[ "MIT" ]
null
null
null
ex042.py
paulo-caixeta/Exercicios_Curso_Python
3b77925499c174ea9ff81dec65d6319125219b9a
[ "MIT" ]
null
null
null
print('Digite a seguir 3 comprimentos de retas:') a = int(input('Reta a: ')) b = int(input('Reta b: ')) c = int(input('Reta c: ')) modulo = b-c if modulo < 0: modulo = modulo * (-1) if modulo < a and a < (b+c): print('Estas retas podem formar um triângulo.') if a == b == c: print('O triângulo formad...
30.818182
62
0.634218
4a0f5dedbb80d4dae8e80c1c8d7060a769aad3ac
2,667
py
Python
examples/plot_ioneq.py
dstansby/fiasco
7d46ed92e692709cd90af805c4f6f57014e754ed
[ "BSD-3-Clause" ]
null
null
null
examples/plot_ioneq.py
dstansby/fiasco
7d46ed92e692709cd90af805c4f6f57014e754ed
[ "BSD-3-Clause" ]
null
null
null
examples/plot_ioneq.py
dstansby/fiasco
7d46ed92e692709cd90af805c4f6f57014e754ed
[ "BSD-3-Clause" ]
null
null
null
""" Ionization fractions in equilibrium =============================================== This example shows how to compute the ionization fraction as a function of temperature, assuming equilibrium, for both a single ion as well as a whole element. """ import matplotlib.pyplot as plt import numpy as np import astropy.u...
39.80597
78
0.683165
4a0f5e09caae63890bd5415683e144423f7f7b29
55,142
py
Python
src/sage/quadratic_forms/quadratic_form.py
bollu/sage
1da6df404d3ea7ff3019e16ea50d65923c1f4ece
[ "BSL-1.0" ]
null
null
null
src/sage/quadratic_forms/quadratic_form.py
bollu/sage
1da6df404d3ea7ff3019e16ea50d65923c1f4ece
[ "BSL-1.0" ]
1
2020-04-18T16:30:43.000Z
2020-04-18T16:30:43.000Z
src/sage/quadratic_forms/quadratic_form.py
dimpase/sage
468f23815ade42a2192b0a9cd378de8fdc594dcd
[ "BSL-1.0" ]
null
null
null
""" Quadratic Forms Overview AUTHORS: - Jon Hanke (2007-06-19) - Anna Haensch (2010-07-01): Formatting and ReSTification - Simon Brandhorst (2019-10-15): :meth:`quadratic_form_from_invariants` """ # **************************************************************************** # Copyright (C) 2007 William Stein ...
32.059302
154
0.529633
4a0f5e9141703eaef1155641e17c6f1dd1fe0577
3,475
py
Python
nnunet/utilities/task_name_id_conversion.py
yuan-xiaohan/nnUnet_OnWindows
5cb561df75f22ee564592393a26837bd6b9e6fef
[ "Apache-2.0" ]
2
2021-11-02T03:42:28.000Z
2022-02-23T14:58:23.000Z
nnunet/utilities/task_name_id_conversion.py
yuan-xiaohan/nnUnet_OnWindows
5cb561df75f22ee564592393a26837bd6b9e6fef
[ "Apache-2.0" ]
1
2022-03-02T02:03:57.000Z
2022-03-02T02:03:57.000Z
nnunet/utilities/task_name_id_conversion.py
yuan-xiaohan/nnUnet_OnWindows
5cb561df75f22ee564592393a26837bd6b9e6fef
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany # # 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://w...
51.102941
133
0.670504
4a0f5ec1c472674d8d94ab914e4a378916c1b0c4
443
py
Python
data/scripts/templates/object/mobile/shared_dressed_official.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/mobile/shared_dressed_official.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/mobile/shared_dressed_official.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Creature() result.template = "object/mobile/shared_dressed_official.iff" result.attribute_template_id = 9 result...
26.058824
62
0.72912
4a0f5f78f16935a261abe17129cf467890fb3714
4,602
py
Python
trajectometry/convert.py
farid-fari/epidemics
4e24b79e67ae8e7c91ba4abefe7f20a7b3720064
[ "MIT" ]
null
null
null
trajectometry/convert.py
farid-fari/epidemics
4e24b79e67ae8e7c91ba4abefe7f20a7b3720064
[ "MIT" ]
null
null
null
trajectometry/convert.py
farid-fari/epidemics
4e24b79e67ae8e7c91ba4abefe7f20a7b3720064
[ "MIT" ]
1
2022-01-29T15:52:40.000Z
2022-01-29T15:52:40.000Z
''' Outil permettant de convertir le format des données de trajectométrie.''' import sqlite3 import csv try: f = open('trajecto.csv', encoding='ANSI') except FileNotFoundError: raise FileNotFoundError("Le fichier n'existe pas") cols = f.readline().strip().split(';') # Les étiquettes cols = [t.replace(":", ""...
33.347826
80
0.394394
4a0f5f88d40a7866cf8f23a2d5d9e6bc12066568
94,314
py
Python
airflow/models/dag.py
alexlshon/airflow
8eddc8b5019890a712810b8e5b1185997adb9bf4
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-03-03T01:44:04.000Z
2021-03-03T01:44:04.000Z
airflow/models/dag.py
alexlshon/airflow
8eddc8b5019890a712810b8e5b1185997adb9bf4
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
airflow/models/dag.py
alexlshon/airflow
8eddc8b5019890a712810b8e5b1185997adb9bf4
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-03-03T01:44:08.000Z
2021-03-03T01:44:08.000Z
# # 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...
39.627731
110
0.623099
4a0f61523b834f076426ed3f4d5c7ea721e09cfc
759
py
Python
lib/generator/superfaker.py
vikkio88/pyDsManager
018e08f7db0852f4653c4da6db851551783584a1
[ "MIT" ]
null
null
null
lib/generator/superfaker.py
vikkio88/pyDsManager
018e08f7db0852f4653c4da6db851551783584a1
[ "MIT" ]
null
null
null
lib/generator/superfaker.py
vikkio88/pyDsManager
018e08f7db0852f4653c4da6db851551783584a1
[ "MIT" ]
null
null
null
from .providers import providers from lib.config.roles import roles from .providers.football import football import random class SuperFaker(object): providers = None locale = 'it_IT' def __init__(self, locale='it_IT'): self.providers = providers self.locale = locale def name(self): ...
26.172414
108
0.667984
4a0f61e2f1da707ceff520cceeefa5a457589d86
67
py
Python
tools/onnx-graphsurgeon/onnx_graphsurgeon/importers/__init__.py
martellz/TensorRT
f182e83b30b5d45aaa3f9a041ff8b3ce83e366f4
[ "Apache-2.0" ]
5,249
2019-06-17T17:20:34.000Z
2022-03-31T17:56:05.000Z
tools/onnx-graphsurgeon/onnx_graphsurgeon/importers/__init__.py
martellz/TensorRT
f182e83b30b5d45aaa3f9a041ff8b3ce83e366f4
[ "Apache-2.0" ]
1,721
2019-06-17T18:13:29.000Z
2022-03-31T16:09:53.000Z
tools/onnx-graphsurgeon/onnx_graphsurgeon/importers/__init__.py
martellz/TensorRT
f182e83b30b5d45aaa3f9a041ff8b3ce83e366f4
[ "Apache-2.0" ]
1,414
2019-06-18T04:01:17.000Z
2022-03-31T09:16:53.000Z
from onnx_graphsurgeon.importers.base_importer import BaseImporter
33.5
66
0.910448
4a0f63911fece0c068f22747fbb1fad3a1b818f9
8,365
py
Python
lark/visitors.py
PJCampi/lark
924ce954d9f0dc4d060afd4f3b1af5e5ec9fc3ea
[ "MIT" ]
null
null
null
lark/visitors.py
PJCampi/lark
924ce954d9f0dc4d060afd4f3b1af5e5ec9fc3ea
[ "MIT" ]
null
null
null
lark/visitors.py
PJCampi/lark
924ce954d9f0dc4d060afd4f3b1af5e5ec9fc3ea
[ "MIT" ]
null
null
null
from functools import wraps from .utils import smart_decorator from .tree import Tree from .exceptions import VisitError, GrammarError ###{standalone from inspect import getmembers, getmro class Discard(Exception): pass # Transformers class Transformer: """Visits the tree recursively, starting with the lea...
30.529197
119
0.641602
4a0f644c7223b3bd32f51a7616e15a89172e4261
12,976
py
Python
xero/manager.py
reachfh/pyxero
88b4cbc16daea4e70bf2da48beee08c1ca5c04da
[ "BSD-3-Clause" ]
null
null
null
xero/manager.py
reachfh/pyxero
88b4cbc16daea4e70bf2da48beee08c1ca5c04da
[ "BSD-3-Clause" ]
null
null
null
xero/manager.py
reachfh/pyxero
88b4cbc16daea4e70bf2da48beee08c1ca5c04da
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import requests import six import json from xml.dom.minidom import parseString from xml.etree.ElementTree import tostring, SubElement, Element from datetime import datetime from dateutil.parser import parse from decimal import Decimal from six.moves.urllib.parse import parse_qs...
36.759207
105
0.559186
4a0f6455c2040bc6dc82e63b581e518ea597fbcf
70,569
py
Python
arcgishub/hub.py
raykendo/hub-py
aebcd5031a2be43c725f7453682bcb01169080fc
[ "Apache-2.0" ]
null
null
null
arcgishub/hub.py
raykendo/hub-py
aebcd5031a2be43c725f7453682bcb01169080fc
[ "Apache-2.0" ]
null
null
null
arcgishub/hub.py
raykendo/hub-py
aebcd5031a2be43c725f7453682bcb01169080fc
[ "Apache-2.0" ]
null
null
null
from arcgis.gis import GIS from arcgis.features import FeatureLayer from arcgis.geocoding import geocode from arcgis._impl.common._mixins import PropertyMap from arcgishub.sites import Site, SiteManager, Page, PageManager from arcgis.features.enrich_data import enrich_layer from datetime import datetime from collection...
44.438917
1,647
0.522581
4a0f64e03a18e58d489d15d91addcc9fa3b5170b
33,985
py
Python
sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/aio/operations/_open_shift_clusters_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/aio/operations/_open_shift_clusters_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/aio/operations/_open_shift_clusters_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # 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) AutoRe...
45.072944
303
0.668619
4a0f6561d1da0c2c7fb3fae85a9ec0760460b7c5
338
py
Python
ProgettoLube/WebInspector/venv/Lib/site-packages/tensorflow/_api/v2/compat/v2/lite/experimental/__init__.py
Lube-Project/ProgettoLube
cbf33971e2c2e865783ec1a2302625539186a338
[ "MIT" ]
2
2020-09-30T00:11:09.000Z
2021-10-04T13:00:38.000Z
ProgettoLube/WebInspector/venv/Lib/site-packages/tensorflow/_api/v2/compat/v2/lite/experimental/__init__.py
Lube-Project/ProgettoLube
cbf33971e2c2e865783ec1a2302625539186a338
[ "MIT" ]
null
null
null
ProgettoLube/WebInspector/venv/Lib/site-packages/tensorflow/_api/v2/compat/v2/lite/experimental/__init__.py
Lube-Project/ProgettoLube
cbf33971e2c2e865783ec1a2302625539186a338
[ "MIT" ]
1
2021-01-28T01:57:41.000Z
2021-01-28T01:57:41.000Z
# This file is MACHINE GENERATED! Do not edit. # Generated by: tensorflow/python/tools/api/generator/create_python_api.py script. """Public API for tf.lite.experimental namespace. """ from __future__ import print_function as _print_function import sys as _sys from tensorflow.lite.python.lite import load_delegate de...
26
82
0.810651
4a0f65d328409d18de16b6cdbf871d3a05f4f6d5
938
py
Python
PrimeFactor(e3).py
Ritz-19/Project-Euler
c6840ff079e197e53bb95fd41f37c17e6277e0bd
[ "MIT" ]
null
null
null
PrimeFactor(e3).py
Ritz-19/Project-Euler
c6840ff079e197e53bb95fd41f37c17e6277e0bd
[ "MIT" ]
null
null
null
PrimeFactor(e3).py
Ritz-19/Project-Euler
c6840ff079e197e53bb95fd41f37c17e6277e0bd
[ "MIT" ]
null
null
null
# Euler 3: Prime Factor of a number # The prime factors of 13195 are 5, 7, 13 and 29. # What is the largest prime factor of the number 600851475143 ? import math #Find Factors def find_Factors(num): factors = [] for i in range(1, int(math.sqrt(num)+1)): if num%i == 0: factors.append(i) return ...
22.878049
77
0.684435
4a0f66ae5ab2c7fd899f1eb68141593b2d9f5b69
192
py
Python
cinema/movies/apps.py
kevinGarcia15/cinemaAPI
d83a9f57223842378e413936d4ccdba0463f1f0a
[ "MIT" ]
null
null
null
cinema/movies/apps.py
kevinGarcia15/cinemaAPI
d83a9f57223842378e413936d4ccdba0463f1f0a
[ "MIT" ]
null
null
null
cinema/movies/apps.py
kevinGarcia15/cinemaAPI
d83a9f57223842378e413936d4ccdba0463f1f0a
[ "MIT" ]
null
null
null
"""users apps""" #django from django.apps import AppConfig class MoviesAppConfig(AppConfig): """ Movies app config """ name = 'cinema.movies' verbose_name = 'Movies'
17.454545
33
0.635417
4a0f6766897cc6dd4413d78e3f6ea93486f3d944
4,816
py
Python
polsalt/blksmooth2d.py
Richard-Tarbell/polsalt
e953985ffbc786fd071d0b48ebca5bd1dac9a960
[ "BSD-3-Clause" ]
1
2017-09-22T17:04:06.000Z
2017-09-22T17:04:06.000Z
polsalt/blksmooth2d.py
Richard-Tarbell/polsalt
e953985ffbc786fd071d0b48ebca5bd1dac9a960
[ "BSD-3-Clause" ]
14
2015-12-22T17:56:38.000Z
2021-07-30T15:36:23.000Z
polsalt/blksmooth2d.py
Richard-Tarbell/polsalt
e953985ffbc786fd071d0b48ebca5bd1dac9a960
[ "BSD-3-Clause" ]
12
2015-12-21T15:12:44.000Z
2021-08-12T18:58:12.000Z
""" blksmooth2d General purpose 2d smoothing """ import os, sys, glob, shutil, inspect import numpy as np import pyfits from scipy.interpolate import griddata np.set_printoptions(threshold=np.nan) # --------------------------------------------------------------------------------- def blksmooth2d(ar_rc,ok_rc,rblk...
44.183486
100
0.600291
4a0f68afaf2174068e83672bc60f128b78789e00
3,973
py
Python
backend/tests/baserow/contrib/database/migrations/test_remove_field_by_id_migration.py
ashishdhngr/baserow
b098678d2165eb7c42930ee24dc6753a3cb520c3
[ "MIT" ]
null
null
null
backend/tests/baserow/contrib/database/migrations/test_remove_field_by_id_migration.py
ashishdhngr/baserow
b098678d2165eb7c42930ee24dc6753a3cb520c3
[ "MIT" ]
null
null
null
backend/tests/baserow/contrib/database/migrations/test_remove_field_by_id_migration.py
ashishdhngr/baserow
b098678d2165eb7c42930ee24dc6753a3cb520c3
[ "MIT" ]
null
null
null
# noinspection PyPep8Naming import pytest from django.db import connection from django.db.migrations.executor import MigrationExecutor # noinspection PyPep8Naming @pytest.mark.django_db(transaction=True) def test_forwards_migration(data_fixture, reset_schema_after_module): migrate_from = [("database", "0039_formu...
38.95098
87
0.725648
4a0f69e3a73bab7fca87fb7c3e5395b92788268c
95
py
Python
test/rest/conftest.py
autokrator-uog/backend
0a2d46f9b52465ed8dfc9234858d6a93f3754c05
[ "MIT" ]
null
null
null
test/rest/conftest.py
autokrator-uog/backend
0a2d46f9b52465ed8dfc9234858d6a93f3754c05
[ "MIT" ]
null
null
null
test/rest/conftest.py
autokrator-uog/backend
0a2d46f9b52465ed8dfc9234858d6a93f3754c05
[ "MIT" ]
1
2019-06-09T23:51:13.000Z
2019-06-09T23:51:13.000Z
import pytest @pytest.fixture def test_client(flask_app): return flask_app.test_client()
13.571429
34
0.778947
4a0f6a2c1db6f1185dafe7c3559abd3a4990b4cb
3,513
py
Python
tests/test_compare.py
TommasoPino/oem
0b6567accb2dfc4475b4655ce7b07ff85fed32aa
[ "MIT" ]
3
2020-08-31T10:15:04.000Z
2021-12-18T03:00:11.000Z
tests/test_compare.py
TommasoPino/oem
0b6567accb2dfc4475b4655ce7b07ff85fed32aa
[ "MIT" ]
26
2020-05-17T02:28:28.000Z
2021-12-20T03:06:05.000Z
tests/test_compare.py
TommasoPino/oem
0b6567accb2dfc4475b4655ce7b07ff85fed32aa
[ "MIT" ]
2
2020-11-15T19:33:07.000Z
2021-10-01T08:58:39.000Z
import pytest import numpy as np from astropy.time import Time from pathlib import Path from oem import OrbitEphemerisMessage from oem.compare import StateCompare from oem.components import State SAMPLE_DIR = Path(__file__).parent / "samples" def test_state_self_difference(): state = State(Time.now(), "ICRF", ...
35.13
79
0.683177
4a0f6b55b227bc932da9ee910aa02f085bed75e3
11,934
py
Python
homeassistant/components/soundtouch/media_player.py
itewk/home-assistant
769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4
[ "Apache-2.0" ]
23
2017-11-15T21:03:53.000Z
2021-03-29T21:33:48.000Z
homeassistant/components/soundtouch/media_player.py
itewk/home-assistant
769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4
[ "Apache-2.0" ]
6
2021-02-08T20:59:36.000Z
2022-03-12T00:52:11.000Z
homeassistant/components/soundtouch/media_player.py
itewk/home-assistant
769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4
[ "Apache-2.0" ]
10
2018-01-01T00:12:51.000Z
2021-12-21T23:08:05.000Z
"""Support for interface with a Bose Soundtouch.""" import logging import re from libsoundtouch import soundtouch_device import voluptuous as vol from homeassistant.components.media_player import PLATFORM_SCHEMA, MediaPlayerDevice from homeassistant.components.media_player.const import ( SUPPORT_NEXT_TRACK, S...
29.760599
88
0.621585
4a0f6bd1daf95694be00eb82722069596820cca2
19,392
py
Python
theresa/lib/model.py
rychallener/theresa
886c6b74bee2edef7df9b6b54ce6d97de4aa4421
[ "MIT" ]
2
2021-09-16T19:37:26.000Z
2022-01-30T20:16:05.000Z
theresa/lib/model.py
rychallener/theresa
886c6b74bee2edef7df9b6b54ce6d97de4aa4421
[ "MIT" ]
null
null
null
theresa/lib/model.py
rychallener/theresa
886c6b74bee2edef7df9b6b54ce6d97de4aa4421
[ "MIT" ]
null
null
null
import numpy as np import time import theano import scipy.interpolate as sci import matplotlib.pyplot as plt import mc3 import gc import sys from numba import jit # Lib imports import cf import atm import utils import constants as c import taurexclass as trc # Taurex imports import taurex from taurex import chemistry...
36.86692
79
0.544245
4a0f6c007adc12140fdf2e9669744eee7f831feb
98,604
py
Python
airflow/providers/google/cloud/operators/bigquery.py
jayantsande25/airflow
d04aa135268b8e0230be3af6598a3b18e8614c3c
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
3
2021-06-26T13:42:13.000Z
2021-08-03T13:51:36.000Z
airflow/providers/google/cloud/operators/bigquery.py
jayantsande25/airflow
d04aa135268b8e0230be3af6598a3b18e8614c3c
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
22
2020-12-13T07:33:35.000Z
2022-02-27T17:55:01.000Z
airflow/providers/google/cloud/operators/bigquery.py
jayantsande25/airflow
d04aa135268b8e0230be3af6598a3b18e8614c3c
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-08-28T09:47:31.000Z
2021-08-28T09:47:31.000Z
# # 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...
42.667244
109
0.668695
4a0f6cb2052e137dd0a02ff3805ea5b2414adfda
24,059
py
Python
Cogs/Welcome.py
holgern/CommunityUpvoteBot
b9af069749707ae03936f8015a42a4af57aef57f
[ "MIT" ]
5
2018-06-27T07:59:42.000Z
2018-07-05T20:35:24.000Z
Cogs/Welcome.py
holgern/BeemBot.py
b9af069749707ae03936f8015a42a4af57aef57f
[ "MIT" ]
null
null
null
Cogs/Welcome.py
holgern/BeemBot.py
b9af069749707ae03936f8015a42a4af57aef57f
[ "MIT" ]
null
null
null
import asyncio import discord from datetime import datetime from discord.ext import commands from shutil import copyfile import time import json import os import re from Cogs import DisplayName from Cogs import Nullify def setup(bot): # Add the bot and deps settings = bot.get_co...
43.823315
147
0.585145
4a0f6ed0beea239a71d4841345c3a1a9410528a9
4,168
py
Python
soam/models/orbit.py
MuttData/soam
65612a02552668c6721dc20e675654883391c3e9
[ "Apache-2.0" ]
1
2021-09-17T01:14:57.000Z
2021-09-17T01:14:57.000Z
soam/models/orbit.py
MuttData/soam
65612a02552668c6721dc20e675654883391c3e9
[ "Apache-2.0" ]
null
null
null
soam/models/orbit.py
MuttData/soam
65612a02552668c6721dc20e675654883391c3e9
[ "Apache-2.0" ]
1
2021-08-09T14:22:50.000Z
2021-08-09T14:22:50.000Z
"""Orbit model wrapper.""" import logging from typing import List, Union import warnings import pandas as pd from typing_extensions import Literal from soam.constants import SEED from soam.models.base import SkWrapper, sk_constructor_wrapper from soam.utilities.utils import SuppressStdOutStdErr # pylint: disable=sup...
33.612903
100
0.630998
4a0f6f44f26ab3bac3d95f4957775a4a58e9b9e8
1,375
py
Python
hassio/__main__.py
InfernoEmbedded/hassio
a401bf0bb8d81d76924254d5b8c9c493ad343468
[ "Apache-2.0" ]
null
null
null
hassio/__main__.py
InfernoEmbedded/hassio
a401bf0bb8d81d76924254d5b8c9c493ad343468
[ "Apache-2.0" ]
null
null
null
hassio/__main__.py
InfernoEmbedded/hassio
a401bf0bb8d81d76924254d5b8c9c493ad343468
[ "Apache-2.0" ]
null
null
null
"""Main file for Hass.io.""" import asyncio from concurrent.futures import ThreadPoolExecutor import logging import sys from hassio import bootstrap _LOGGER = logging.getLogger(__name__) def attempt_use_uvloop(): """Attempt to use uvloop.""" try: import uvloop asyncio.set_event_loop_policy(u...
24.553571
69
0.703273
4a0f6f93ee254955217d5deb54e7de8f588d1ad9
2,714
py
Python
src/python/pants/backend/jvm/tasks/check_published_deps.py
revl/pants
8ad83e4ca80c095d44efceafd8b41e575da39c65
[ "Apache-2.0" ]
1
2021-05-05T18:58:28.000Z
2021-05-05T18:58:28.000Z
src/python/pants/backend/jvm/tasks/check_published_deps.py
revl/pants
8ad83e4ca80c095d44efceafd8b41e575da39c65
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/jvm/tasks/check_published_deps.py
revl/pants
8ad83e4ca80c095d44efceafd8b41e575da39c65
[ "Apache-2.0" ]
3
2020-06-30T08:28:13.000Z
2021-07-28T09:35:57.000Z
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from pants.backend.jvm.targets.exportable_jvm_library import ExportableJvmLibrary from pants.backend.jvm.targets.jar_library import JarLibrary from pants.backend.jvm.targets.jvm_target imp...
45.233333
102
0.644436
4a0f707e13a8e697202b9b2e9d89d7932d2e2847
1,420
py
Python
zerver/views/alert_words.py
Pulkit007/zulip
8a5f6f8d95baa55c4b28972cfc5a498f5f388e0f
[ "Apache-2.0" ]
17,004
2015-09-25T18:27:24.000Z
2022-03-31T22:02:32.000Z
zerver/views/alert_words.py
Pulkit007/zulip
8a5f6f8d95baa55c4b28972cfc5a498f5f388e0f
[ "Apache-2.0" ]
20,344
2015-09-25T19:02:42.000Z
2022-03-31T23:54:40.000Z
zerver/views/alert_words.py
Pulkit007/zulip
8a5f6f8d95baa55c4b28972cfc5a498f5f388e0f
[ "Apache-2.0" ]
7,271
2015-09-25T18:48:39.000Z
2022-03-31T21:06:11.000Z
from typing import List from django.http import HttpRequest, HttpResponse from zerver.lib.actions import do_add_alert_words, do_remove_alert_words from zerver.lib.alert_words import user_alert_words from zerver.lib.request import REQ, has_request_variables from zerver.lib.response import json_success from zerver.lib....
35.5
86
0.793662
4a0f713418d8115465decc98ecd6ff14a1524d66
2,651
py
Python
python/pyclaw/runclaw.py
geoflows/geoclaw-4.x
c8879d25405017b38392aa3b1ea422ff3e3604ea
[ "BSD-3-Clause" ]
2
2016-04-26T02:32:09.000Z
2021-02-08T08:43:44.000Z
util/runclaw.py
che-wenchao/D-Claw
8ab5d971c9a7a7130e03a447a4b8642e292f4e88
[ "BSD-3-Clause" ]
null
null
null
util/runclaw.py
che-wenchao/D-Claw
8ab5d971c9a7a7130e03a447a4b8642e292f4e88
[ "BSD-3-Clause" ]
2
2019-01-17T04:34:08.000Z
2020-08-11T16:02:28.000Z
""" Generic code for running the fortran version of Clawpack and sending the results to subdirectory output of the directory from which this is executed. Execute via $ python $CLAW/python/pyclaw/runclaw.py from a directory that contains a claw.data file and a Clawpack executable. """ def runclaw(xclawcmd=None, ou...
33.987179
80
0.6341
4a0f72322fb98885479c903578d9a417bd11cbe8
519
py
Python
pages/themes/beginners/exceptions/Task_and_HW/yuliyan_try_except.py
ProgressBG-Python-Course/ProgressBG-VC2-Python
03b892a42ee1fad3d4f97e328e06a4b1573fd356
[ "MIT" ]
null
null
null
pages/themes/beginners/exceptions/Task_and_HW/yuliyan_try_except.py
ProgressBG-Python-Course/ProgressBG-VC2-Python
03b892a42ee1fad3d4f97e328e06a4b1573fd356
[ "MIT" ]
null
null
null
pages/themes/beginners/exceptions/Task_and_HW/yuliyan_try_except.py
ProgressBG-Python-Course/ProgressBG-VC2-Python
03b892a42ee1fad3d4f97e328e06a4b1573fd356
[ "MIT" ]
null
null
null
def user_input(msg): try: usr_input = input(msg) return (usr_input, True) except: print("User Break - 'CTRL+D' is Disabled!!") return ("Not OK", False) # def user_input(msg): # usr_input = input(msg) # if len(usr_input)>2: # return (usr_input, True) # else: ...
22.565217
54
0.543353
4a0f72457196a0ca77a3aa49d10a0e20f22fe9de
6,268
py
Python
fancyflags/_flags.py
corypaik/fancyflags
9fef9fb69bd52a81dd67cb963986be1c0b00c070
[ "Apache-2.0" ]
null
null
null
fancyflags/_flags.py
corypaik/fancyflags
9fef9fb69bd52a81dd67cb963986be1c0b00c070
[ "Apache-2.0" ]
null
null
null
fancyflags/_flags.py
corypaik/fancyflags
9fef9fb69bd52a81dd67cb963986be1c0b00c070
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 DeepMind Technologies Limited. # # 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 agre...
36.870588
80
0.694959
4a0f7247ec556010b5f6cdc8251793eee6c1a0bb
2,275
py
Python
ml3d/vis/labellut.py
inkyusa/Open3D-ML
40b5f7ff45577bcc6fd451cf63cc366324730849
[ "MIT" ]
3
2021-03-18T17:09:32.000Z
2021-06-26T20:58:12.000Z
ml3d/vis/labellut.py
inkyusa/Open3D-ML
40b5f7ff45577bcc6fd451cf63cc366324730849
[ "MIT" ]
null
null
null
ml3d/vis/labellut.py
inkyusa/Open3D-ML
40b5f7ff45577bcc6fd451cf63cc366324730849
[ "MIT" ]
1
2021-06-26T11:04:29.000Z
2021-06-26T11:04:29.000Z
class LabelLUT: """The class to manage look-up table for assigning colors to labels.""" class Label: def __init__(self, name, value, color): self.name = name self.value = value self.color = color Colors = [[0., 0., 0.], [0.96078431, 0.58823529, 0.39215686], ...
40.625
79
0.476484
4a0f727e0489ab5c9dbe11634154d02c1375ef49
35
py
Python
open_connect/moderation/tests/__init__.py
lpatmo/actionify_the_news
998d8ca6b35d0ef1b16efca70f50e59503f5a62d
[ "MIT" ]
66
2015-11-30T20:35:38.000Z
2019-06-12T17:40:32.000Z
open_connect/moderation/tests/__init__.py
lpatmo/actionify_the_news
998d8ca6b35d0ef1b16efca70f50e59503f5a62d
[ "MIT" ]
18
2015-11-30T22:03:05.000Z
2019-07-02T00:50:29.000Z
open_connect/moderation/tests/__init__.py
lpatmo/actionify_the_news
998d8ca6b35d0ef1b16efca70f50e59503f5a62d
[ "MIT" ]
11
2015-11-30T20:56:01.000Z
2019-07-01T17:06:09.000Z
"""Tests for the moderation app"""
17.5
34
0.685714
4a0f743b856a890378fea85aaedf486e135f766a
11,345
py
Python
docs/tutorials/datasets/detection_custom.py
JSoothe/gluon-cv
bca14b75c0e8b6b1cb74447499770e0a337c1f0c
[ "Apache-2.0" ]
1
2019-11-30T05:34:52.000Z
2019-11-30T05:34:52.000Z
docs/tutorials/datasets/detection_custom.py
JSoothe/gluon-cv
bca14b75c0e8b6b1cb74447499770e0a337c1f0c
[ "Apache-2.0" ]
null
null
null
docs/tutorials/datasets/detection_custom.py
JSoothe/gluon-cv
bca14b75c0e8b6b1cb74447499770e0a337c1f0c
[ "Apache-2.0" ]
1
2020-04-29T00:08:22.000Z
2020-04-29T00:08:22.000Z
"""Prepare custom datasets for object detection =============================================== With GluonCV, we have already provided built-in support for widely used public datasets with zero effort, e.g. :ref:`sphx_glr_build_examples_datasets_pascal_voc.py` and :ref:`sphx_glr_build_examples_datasets_mscoco.py`. Ho...
42.490637
255
0.634465
4a0f74fe7692eac5bf5770de306a4278c387ae3c
1,154
py
Python
剑指offer/05_PrintListInReversedOrder(从尾到头打印链表).py
PegasusWang/python_data_structures_and_algorithms
513547526d2926f8e8bff36e9b83905085aa3ee5
[ "MIT" ]
2,468
2018-04-20T02:58:20.000Z
2022-03-29T13:41:38.000Z
剑指offer/05_PrintListInReversedOrder(从尾到头打印链表).py
PegasusWang/python_data_structures_and_algorithms
513547526d2926f8e8bff36e9b83905085aa3ee5
[ "MIT" ]
31
2018-05-12T08:40:02.000Z
2021-05-27T02:51:52.000Z
剑指offer/05_PrintListInReversedOrder(从尾到头打印链表).py
PegasusWang/python_data_structures_and_algorithms
513547526d2926f8e8bff36e9b83905085aa3ee5
[ "MIT" ]
829
2018-04-20T05:40:18.000Z
2022-03-28T14:33:56.000Z
""" 面试题5:从尾到头打印链表 题目:输入一个链表的头结点,从尾到头反过来打印出每个结点的值。链表结点定义如下: """ from collections import deque class Stack: def __init__(self): self.items = deque() def push(self, val): return self.items.append(val) def pop(self): return self.items.pop() def empty(self): return len(se...
19.233333
55
0.560659
4a0f758c1e379d206539286c59273a6686cd4eea
817
py
Python
data/data_base.py
iwbn/unsupsimflow
64512020bd67068d527fd9b99dee4d65d18de0a0
[ "Apache-2.0" ]
7
2020-10-08T07:34:13.000Z
2021-05-27T07:58:39.000Z
data/data_base.py
iwbn/unsupsimflow
64512020bd67068d527fd9b99dee4d65d18de0a0
[ "Apache-2.0" ]
2
2020-11-25T08:21:51.000Z
2021-03-02T06:47:55.000Z
data/data_base.py
iwbn/unsupsimflow
64512020bd67068d527fd9b99dee4d65d18de0a0
[ "Apache-2.0" ]
1
2020-10-12T12:20:29.000Z
2020-10-12T12:20:29.000Z
import abc import tensorflow as tf class Data: __metaclass__ = abc.ABCMeta # NOT YET IMPLEMENTED. YOU MIGHT LATER IMPLEMENT THIS IF NEEDED. def __init__(self, name): self.name = name self._datasets = {} # dictionary with tf.data.Dataset elements self._initialized = False def ...
21.5
71
0.611995
4a0f75ca9af833e7649e797740a67f56d8fc67cd
268
py
Python
data/contacts.py
SvetlanaPopova/python_1
5acc26e3d3746d7fcf48603d9ca9064e39c248ca
[ "Apache-2.0" ]
null
null
null
data/contacts.py
SvetlanaPopova/python_1
5acc26e3d3746d7fcf48603d9ca9064e39c248ca
[ "Apache-2.0" ]
null
null
null
data/contacts.py
SvetlanaPopova/python_1
5acc26e3d3746d7fcf48603d9ca9064e39c248ca
[ "Apache-2.0" ]
null
null
null
__author__ = 'User' from model.contact import Contact testdata = [ Contact(firstname="firstname1", lastname="lastname1", address="address1", mobilephone="1111"), Contact(firstname="firstname2", lastname="lastname2", address="address2", mobilephone="2222") ]
29.777778
98
0.735075
4a0f760581155537d3e651954b378bc7f71d85b2
2,170
py
Python
spot/utils/HDFSutils.py
AbsaOSS/spot
314b16b7722e189de5dc50bcd1ba3434c5df1de8
[ "Apache-2.0" ]
1
2022-01-30T06:17:11.000Z
2022-01-30T06:17:11.000Z
spot/utils/HDFSutils.py
AbsaOSS/spot
314b16b7722e189de5dc50bcd1ba3434c5df1de8
[ "Apache-2.0" ]
2
2022-01-14T19:41:02.000Z
2022-02-02T16:04:49.000Z
spot/utils/HDFSutils.py
AbsaOSS/spot
314b16b7722e189de5dc50bcd1ba3434c5df1de8
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 ABSA Group Limited # # 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 writ...
39.454545
81
0.576037
4a0f76db2333eb75a5249de58ad494b1bab51401
1,290
py
Python
molecule/latest/tests/test_defaults.py
tschoonj/ansible-role-guacamole-exporter
6f041058c0fc5d4e0ce9f04fea7472c082575776
[ "MIT" ]
null
null
null
molecule/latest/tests/test_defaults.py
tschoonj/ansible-role-guacamole-exporter
6f041058c0fc5d4e0ce9f04fea7472c082575776
[ "MIT" ]
null
null
null
molecule/latest/tests/test_defaults.py
tschoonj/ansible-role-guacamole-exporter
6f041058c0fc5d4e0ce9f04fea7472c082575776
[ "MIT" ]
null
null
null
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') def test_files(host): files = [ "/etc/systemd/system/guacamole_exporter.service", "/usr/local/bin/guacamole_exporter", ...
23.454545
66
0.620155
4a0f770ab9a598cbd754b2fd243fd0f7fb7fba9e
25,330
py
Python
xfel/command_line/cspad_cbf_metrology.py
indu-in/cctbx_project1
e09447ddc2ba3aa9d91b21008b0162ab290b0c30
[ "BSD-3-Clause-LBNL" ]
2
2021-03-18T12:31:57.000Z
2022-03-14T06:27:06.000Z
xfel/command_line/cspad_cbf_metrology.py
indu-in/cctbx_project1
e09447ddc2ba3aa9d91b21008b0162ab290b0c30
[ "BSD-3-Clause-LBNL" ]
null
null
null
xfel/command_line/cspad_cbf_metrology.py
indu-in/cctbx_project1
e09447ddc2ba3aa9d91b21008b0162ab290b0c30
[ "BSD-3-Clause-LBNL" ]
null
null
null
# -*- mode: python; coding: utf-8; indent-tabs-mode: nil; python-indent: 2 -*- # # LIBTBX_SET_DISPATCHER_NAME cspad.cbf_metrology # from __future__ import absolute_import, division, print_function from six.moves import range import os, sys, random from iotbx.phil import parse from libtbx import easy_run from libtbx.uti...
43.005093
271
0.680261
4a0f779a1ccc1478d2d3f2d1931f54979ef28877
2,198
py
Python
test/pymetry.py
Jahongir2007/pymetry
02c8e82a188700b4213fd4a70aa66a3b5e9843b8
[ "MIT" ]
1
2021-04-04T11:38:42.000Z
2021-04-04T11:38:42.000Z
test/pymetry.py
Jahongir2007/pymetry
02c8e82a188700b4213fd4a70aa66a3b5e9843b8
[ "MIT" ]
null
null
null
test/pymetry.py
Jahongir2007/pymetry
02c8e82a188700b4213fd4a70aa66a3b5e9843b8
[ "MIT" ]
null
null
null
''' Author: Jahongir Sobirov License: MIT Version: 1.0.0 All rights reserved 2021 (c) ''' import turtle pymetry = turtle.Turtle() def square(distance, color, bold): pymetry.color(color) pymetry.pensize(bold) pymetry.forward(distance) pymetry.right(90) pymetry.forward(distance) py...
27.475
69
0.666515
4a0f779dde87c3e7ec6daa6407d8bc3d4934e506
5,366
py
Python
datasets/kinnews_kirnews/kinnews_kirnews.py
WojciechKusa/datasets
1406a04c3e911cec2680d8bc513653e0cafcaaa4
[ "Apache-2.0" ]
10,608
2020-09-10T15:47:50.000Z
2022-03-31T22:51:47.000Z
datasets/kinnews_kirnews/kinnews_kirnews.py
realChainLife/datasets
98261e8b0b7be4dbaaa71ae188b950f7fbe51bbd
[ "Apache-2.0" ]
2,396
2020-09-10T14:55:31.000Z
2022-03-31T19:41:04.000Z
datasets/kinnews_kirnews/kinnews_kirnews.py
realChainLife/datasets
98261e8b0b7be4dbaaa71ae188b950f7fbe51bbd
[ "Apache-2.0" ]
1,530
2020-09-10T21:43:10.000Z
2022-03-31T01:59:12.000Z
# coding=utf-8 # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor. # # 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/lice...
35.536424
111
0.574916
4a0f78e258e6f7b281178fbff591ed4f188dfb45
1,412
py
Python
lib/log_utils/time_utils.py
rainwangphy/AutoDL-Projects
1a40948255ac3c16ee529d94144a39bf26e89bfa
[ "MIT" ]
72
2021-12-01T01:30:05.000Z
2022-03-15T18:47:44.000Z
lib/log_utils/time_utils.py
rainwangphy/AutoDL-Projects
1a40948255ac3c16ee529d94144a39bf26e89bfa
[ "MIT" ]
1
2021-12-18T16:08:10.000Z
2021-12-22T11:28:03.000Z
lib/log_utils/time_utils.py
rainwangphy/AutoDL-Projects
1a40948255ac3c16ee529d94144a39bf26e89bfa
[ "MIT" ]
12
2021-12-06T16:41:03.000Z
2022-02-17T09:40:57.000Z
##################################################### # Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2019.01 # ##################################################### import time, sys import numpy as np def time_for_file(): ISOTIMEFORMAT='%d-%h-at-%H-%M-%S' return '{:}'.format(time.strftime( ISOTIMEFORMAT, time.gmtime(...
32.837209
83
0.614731
4a0f78e74d8d13e7b0eac3d897288142f76e50cc
25,624
py
Python
scripts/LocateTs.py
emartineznunez/AutoMeKin
bc4e25782ba051b6ccda058279cfe06c740fef99
[ "MIT" ]
8
2019-07-06T17:47:35.000Z
2020-05-28T21:49:55.000Z
scripts/LocateTs.py
emartineznunez/AutoMeKin
bc4e25782ba051b6ccda058279cfe06c740fef99
[ "MIT" ]
1
2020-10-15T20:42:45.000Z
2020-10-15T20:42:45.000Z
scripts/LocateTs.py
emartineznunez/AutoMeKin
bc4e25782ba051b6ccda058279cfe06c740fef99
[ "MIT" ]
2
2019-08-24T18:58:04.000Z
2020-02-24T11:45:36.000Z
#!/usr/bin/env python3 import numpy as np import networkx as nx from ase.autoneb import AutoNEB from ase.constraints import ExternalForce,FixAtoms,FixBondLengths from ase.dimer import DimerControl, MinModeAtoms, MinModeTranslate from ase.io import read, write from ase.md.velocitydistribution import MaxwellBoltzmannDi...
38.416792
180
0.601311
4a0f79057964c6355b3e21a58ae403eecdf9dbe9
415
py
Python
todo_app/migrations/0003_myuser_full_name.py
Nigar-mr/Labrin_Todo
565f8b687ab938f528ddd7b344efea0022af76d8
[ "MIT" ]
null
null
null
todo_app/migrations/0003_myuser_full_name.py
Nigar-mr/Labrin_Todo
565f8b687ab938f528ddd7b344efea0022af76d8
[ "MIT" ]
8
2021-03-19T01:28:54.000Z
2022-03-11T23:59:07.000Z
todo_app/migrations/0003_myuser_full_name.py
Nigar-mr/Todo_App
565f8b687ab938f528ddd7b344efea0022af76d8
[ "MIT" ]
1
2019-09-14T16:22:57.000Z
2019-09-14T16:22:57.000Z
# Generated by Django 2.2.5 on 2019-09-05 07:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('todo_app', '0002_myuser'), ] operations = [ migrations.AddField( model_name='myuser', name='full_name', ...
21.842105
89
0.604819
4a0f79270151ad37ba0c00bfbf785ce51e5aa9c9
8,356
py
Python
Tests/Methods/Slot/test_SlotW21_meth.py
mxgnsr/pyleecan
2b0a04e4ae67c073a91362ab42332908fef53bdd
[ "Apache-2.0" ]
null
null
null
Tests/Methods/Slot/test_SlotW21_meth.py
mxgnsr/pyleecan
2b0a04e4ae67c073a91362ab42332908fef53bdd
[ "Apache-2.0" ]
null
null
null
Tests/Methods/Slot/test_SlotW21_meth.py
mxgnsr/pyleecan
2b0a04e4ae67c073a91362ab42332908fef53bdd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from unittest import TestCase from pyleecan.Classes.Segment import Segment from pyleecan.Classes.SurfLine import SurfLine from pyleecan.Classes.SlotW21 import SlotW21 from pyleecan.Classes.LamSlot import LamSlot from numpy import ndarray, pi, arcsin, exp from ddt import ddt, data from pyleecan...
34.528926
87
0.58832
4a0f7b02ea8eeafed47f8c26dcebaa60033d544e
344
py
Python
src/modules/dummy_iterator.py
jonassoleil/swag
dd480e52ae6f7cf7eabd8cef6180ee495f42c034
[ "MIT" ]
null
null
null
src/modules/dummy_iterator.py
jonassoleil/swag
dd480e52ae6f7cf7eabd8cef6180ee495f42c034
[ "MIT" ]
1
2021-03-17T22:10:15.000Z
2021-03-17T22:10:15.000Z
src/modules/dummy_iterator.py
jonassoleil/swag
dd480e52ae6f7cf7eabd8cef6180ee495f42c034
[ "MIT" ]
1
2021-03-17T16:59:47.000Z
2021-03-17T16:59:47.000Z
from src.modules.base_model_iterator import BaseModelIterator class DummyIterator(BaseModelIterator): """ Just return the same model once without doing anything """ def __init__(self, model): super().__init__() self.length = 1 self.model = model def get_next_model(self): ...
24.571429
61
0.671512
4a0f7b2ddda85a12555114980383e3b80e4c0f2e
2,736
py
Python
test/torchtest.py
edisga/scalene
d5c190a4a205071199398948e04edbfd07ca4071
[ "Apache-2.0" ]
3,952
2019-12-18T00:37:34.000Z
2022-03-31T09:59:03.000Z
test/torchtest.py
edisga/scalene
d5c190a4a205071199398948e04edbfd07ca4071
[ "Apache-2.0" ]
171
2021-03-05T14:37:30.000Z
2022-03-30T15:15:38.000Z
test/torchtest.py
edisga/scalene
d5c190a4a205071199398948e04edbfd07ca4071
[ "Apache-2.0" ]
148
2020-01-09T18:36:53.000Z
2022-02-28T03:22:52.000Z
import torch import math def torchtest(): dtype = torch.float #device = torch.device("cpu") device = torch.device("cuda:0") # Uncomment this to run on GPU # device = torch.device("cuda") # Uncomment this to run on GPU # Create Tensors to hold input and outputs. # By default, requires_grad=Fa...
42.75
85
0.622807
4a0f7bd003bd35df10739ae4a6d8d29b4a654e27
1,638
py
Python
python/30 days of code/day27.py
angelopassaro/Hacktoberfest-1
21f90f5d49efba9b1a27f4d9b923f5017ab43f0e
[ "Apache-2.0" ]
1
2020-10-06T01:20:07.000Z
2020-10-06T01:20:07.000Z
python/30 days of code/day27.py
angelopassaro/Hacktoberfest-1
21f90f5d49efba9b1a27f4d9b923f5017ab43f0e
[ "Apache-2.0" ]
null
null
null
python/30 days of code/day27.py
angelopassaro/Hacktoberfest-1
21f90f5d49efba9b1a27f4d9b923f5017ab43f0e
[ "Apache-2.0" ]
null
null
null
def minimum_index(seq): if len(seq) == 0: raise ValueError("Cannot get the minimum value index from an empty sequence") min_idx = 0 for i in range(1, len(seq)): if seq[i] < seq[min_idx]: min_idx = i return min_idx class TestDataEmptyArray(object): @staticmethod def...
20.734177
85
0.666056
4a0f7c0e558f5289838a6baebb8d36770b857573
9,527
py
Python
src/python/pants/backend/jvm/subsystems/jvm_platform.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
1
2021-11-11T14:04:24.000Z
2021-11-11T14:04:24.000Z
src/python/pants/backend/jvm/subsystems/jvm_platform.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/jvm/subsystems/jvm_platform.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
1
2021-11-11T14:04:12.000Z
2021-11-11T14:04:12.000Z
# coding=utf-8 # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import logging from...
40.713675
99
0.708408
4a0f7d7d9a015ed7fd4c4edb9ef4ee623c66b6a4
5,292
py
Python
tests/model/test_utils.py
weiwang2330/BayesNeuralNet
6be81289d9bc46657a1b14ded440c8160721a464
[ "MIT" ]
1
2019-03-30T06:20:46.000Z
2019-03-30T06:20:46.000Z
tests/model/test_utils.py
Li-Scottech/zhusuan
48c0f4e0716eb387f81ee8c3f3ca97fcf01e9d1e
[ "MIT" ]
null
null
null
tests/model/test_utils.py
Li-Scottech/zhusuan
48c0f4e0716eb387f81ee8c3f3ca97fcf01e9d1e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function from __future__ import division from itertools import permutations import tensorflow as tf from zhusuan.model.utils import * from zhusuan.model.utils import Context class TestContext(tf.test.T...
39.492537
79
0.546485
4a0f7d7e4e6ef765e76710958f62466a433b4c1d
965
py
Python
ssh-bruteforce.py
dasithsv/python4pentesters
b4b7845f5c0f844d3309a62a365819658a2bbe6c
[ "MIT" ]
1
2022-03-28T18:15:59.000Z
2022-03-28T18:15:59.000Z
ssh-bruteforce.py
dasithsv/python4pentesters
b4b7845f5c0f844d3309a62a365819658a2bbe6c
[ "MIT" ]
null
null
null
ssh-bruteforce.py
dasithsv/python4pentesters
b4b7845f5c0f844d3309a62a365819658a2bbe6c
[ "MIT" ]
null
null
null
import paramiko import sys import os target = str(input('Please enter target IP address: ')) username = str(input('Please enter username to bruteforce: ')) password_file = str(input('Please enter location of the password file: ')) def ssh_connect(password, code=0): ssh = paramiko.SSHClient() ssh.set_missing_...
24.74359
74
0.617617
4a0f7de4b1922d5e3caad25a06f74ed3920995de
9,594
py
Python
bs4/builder/_lxml.py
qbosen/leetcode_file_generator
594d7bb1e5ac5cb3100ddbaecc3f8359c17dbbb8
[ "MIT" ]
2
2019-02-17T11:55:41.000Z
2022-03-04T14:37:01.000Z
application/physical/otmr/scraper/lib/bs4/builder/_lxml.py
cprior/finance-stuff
6a9389456e1068e0e8fc6bd83c87b8144a6390bf
[ "MIT" ]
10
2019-12-26T17:31:31.000Z
2022-03-21T22:17:33.000Z
application/physical/otmr/scraper/lib/bs4/builder/_lxml.py
cprior/finance-stuff
6a9389456e1068e0e8fc6bd83c87b8144a6390bf
[ "MIT" ]
2
2018-11-28T10:08:31.000Z
2021-06-22T06:07:42.000Z
# Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. __all__ = [ 'LXMLTreeBuilderForXML', 'LXMLTreeBuilder', ] try: from collections.abc import Callable # Python 3.6 except ImportError , e: from collections import Callable from io import BytesIO fro...
36.479087
82
0.627892
4a0f7f2642dc7cfec063cc2310c1fb6f439f087b
3,915
py
Python
thumt/modules/quantization.py
THUNLP-MT/Transformer-DMB
14dedbedf2e369f9b8abf53d8d47c7862a951e39
[ "BSD-3-Clause" ]
null
null
null
thumt/modules/quantization.py
THUNLP-MT/Transformer-DMB
14dedbedf2e369f9b8abf53d8d47c7862a951e39
[ "BSD-3-Clause" ]
null
null
null
thumt/modules/quantization.py
THUNLP-MT/Transformer-DMB
14dedbedf2e369f9b8abf53d8d47c7862a951e39
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 # Author: Zhixing Tan # Contact: playinf@stu.xmu.edu.cn from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch import numbers def _check_type_and_shape(input, min, max): min_is_number = isinstance(min, numbers.Real) max_is_num...
30.585938
74
0.642912
4a0f7faa7ba5d32f665a9b1a4fed05df6a693903
7,181
py
Python
Notebooks/ml_util.py
bprasad26/modeling_earthquake_damage
cae6ccaadb6c86ba9fd24fecb86eb1677da4224d
[ "MIT" ]
1
2021-12-01T15:41:19.000Z
2021-12-01T15:41:19.000Z
Notebooks/ml_util.py
bprasad26/modeling_earthquake_damage
cae6ccaadb6c86ba9fd24fecb86eb1677da4224d
[ "MIT" ]
null
null
null
Notebooks/ml_util.py
bprasad26/modeling_earthquake_damage
cae6ccaadb6c86ba9fd24fecb86eb1677da4224d
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from sklearn.base import BaseEstimator, TransformerMixin from sklearn.model_selection import learning_curve import plotly.graph_objects as go from sklearn.model_selection import validation_curve import matplotlib.pyplot as plt from sklearn import tree def indices_of_top_k(arr, k...
25.374558
87
0.590865
4a0f80270de0984a6de12a6103cb670ea1d6e23c
10,884
py
Python
mvj/urls.py
City-of-Helsinki/mvj
6f786047805a968317ecc37b38c2262ada2c3805
[ "MIT" ]
1
2021-01-12T08:14:10.000Z
2021-01-12T08:14:10.000Z
mvj/urls.py
City-of-Helsinki/mvj
6f786047805a968317ecc37b38c2262ada2c3805
[ "MIT" ]
249
2017-04-18T14:00:13.000Z
2022-03-30T12:18:03.000Z
mvj/urls.py
City-of-Helsinki/mvj
6f786047805a968317ecc37b38c2262ada2c3805
[ "MIT" ]
7
2017-04-18T08:43:54.000Z
2021-07-28T07:29:30.000Z
import rest_framework.urls from django.conf import settings from django.contrib import admin from django.urls import include, path, re_path from rest_framework import routers from rest_framework_swagger.views import get_swagger_view from credit_integration import urls as credit_integration_urls from forms.viewsets.for...
38.459364
88
0.784454
4a0f803512d4d86e9de82d09a4fb65cb795fd718
824
py
Python
vectorize_data.py
tuhoag/text-classification
4b70be170f88fa54009b6ec3dbfcda8a316fc589
[ "MIT" ]
null
null
null
vectorize_data.py
tuhoag/text-classification
4b70be170f88fa54009b6ec3dbfcda8a316fc589
[ "MIT" ]
null
null
null
vectorize_data.py
tuhoag/text-classification
4b70be170f88fa54009b6ec3dbfcda8a316fc589
[ "MIT" ]
null
null
null
from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.feature_selection import SelectKBest, f_classif NGRAM_RANGE = (1, 2) MIN_DF = 2 TOP_K = 10000 def ngram_vectorize(train_texts, train_labels, val_texts): kwargs = { 'ngram_range': NGRAM_RANGE, 'analyzer': 'word', 'str...
25.75
69
0.691748
4a0f807a35e18ed2e66dab7198cbedf1cb30fb05
3,146
py
Python
framebuf_.py
hlovatt/PyBoardTypeshedGenerator
1d133cab16ea5d558b03175e6fa48b4a23b76136
[ "MIT" ]
5
2020-07-26T08:48:39.000Z
2021-09-13T19:19:37.000Z
framebuf_.py
hlovatt/PyBoardTypeshedGenerator
1d133cab16ea5d558b03175e6fa48b4a23b76136
[ "MIT" ]
null
null
null
framebuf_.py
hlovatt/PyBoardTypeshedGenerator
1d133cab16ea5d558b03175e6fa48b4a23b76136
[ "MIT" ]
1
2020-11-07T22:37:44.000Z
2020-11-07T22:37:44.000Z
""" Generate `pyi` from corresponding `rst` docs. """ import rst from rst2pyi import RST2PyI __author__ = rst.__author__ __copyright__ = rst.__copyright__ __license__ = rst.__license__ __version__ = "7.2.0" # Version set by https://github.com/hlovatt/tag2ver def framebuf(shed: RST2PyI) -> None: shed.module( ...
32.102041
117
0.544183
4a0f80f64979a746c7bffff4f6e3f9bb9820e012
10,863
py
Python
google/appengine/dist/_library.py
MiCHiLU/google_appengine_sdk
3da9f20d7e65e26c4938d2c4054bc4f39cbc5522
[ "Apache-2.0" ]
26
2015-01-20T08:02:38.000Z
2020-06-10T04:57:41.000Z
google/appengine/dist/_library.py
MiCHiLU/google_appengine_sdk
3da9f20d7e65e26c4938d2c4054bc4f39cbc5522
[ "Apache-2.0" ]
4
2018-03-28T16:49:17.000Z
2019-11-02T18:35:02.000Z
google/appengine/dist/_library.py
MiCHiLU/google_appengine_sdk
3da9f20d7e65e26c4938d2c4054bc4f39cbc5522
[ "Apache-2.0" ]
13
2016-02-28T00:14:23.000Z
2021-05-03T15:47:36.000Z
#!/usr/bin/env python # # Copyright 2007 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
23.211538
79
0.700543
4a0f8189eadb27811f16d1cd8c7ec259a00c26a5
4,443
py
Python
basemaps/routes/api/v1/layer_router.py
Skydipper/Basemaps
8d1489919ff363beb3bcd290c7f709c80b548c91
[ "MIT" ]
null
null
null
basemaps/routes/api/v1/layer_router.py
Skydipper/Basemaps
8d1489919ff363beb3bcd290c7f709c80b548c91
[ "MIT" ]
1
2019-12-20T12:36:08.000Z
2019-12-20T14:33:43.000Z
basemaps/routes/api/v1/layer_router.py
Skydipper/Basemaps
8d1489919ff363beb3bcd290c7f709c80b548c91
[ "MIT" ]
null
null
null
"""API ROUTER""" import logging import json import urllib import requests from flask import jsonify, Blueprint, redirect, request from basemaps.routes.api import error from basemaps.middleware import exist_mapid, get_layer, exist_tile from basemaps.services.redis_service import RedisService import ee layer_endpoints ...
45.336735
114
0.576412
4a0f819778f51fa28b3a111bb93076a885c7168f
6,934
py
Python
CarParkArcGisApi/CarParkArcGisApi/env/Lib/site-packages/arcgis/gis/server/admin/parameters.py
moazzamwaheed2017/carparkapi
e52ae1b2aed47321ce9d22ba6cd0b85fa60a417a
[ "MIT" ]
null
null
null
CarParkArcGisApi/CarParkArcGisApi/env/Lib/site-packages/arcgis/gis/server/admin/parameters.py
moazzamwaheed2017/carparkapi
e52ae1b2aed47321ce9d22ba6cd0b85fa60a417a
[ "MIT" ]
9
2020-02-03T15:50:10.000Z
2022-03-02T07:11:34.000Z
CarParkArcGisApi/CarParkArcGisApi/env/Lib/site-packages/arcgis/gis/server/admin/parameters.py
moazzamwaheed2017/carparkapi
e52ae1b2aed47321ce9d22ba6cd0b85fa60a417a
[ "MIT" ]
null
null
null
import json ######################################################################## class Extension(object): """ represents a service extension """ _typeName = None _capabilities = None _enabled = None _maxUploadFileSize = None _allowedUploadFileTypes = None _properties = None ...
39.397727
87
0.474041
4a0f821a78003d1f119fc07580e5f3a5a172b9b5
351
py
Python
examples/apps/GetImage/GetImage.py
zhengqun/SungemSDK-Python
fcd9789721d96b7197543523b65a25a7351944f5
[ "Apache-2.0" ]
1
2019-01-02T07:13:53.000Z
2019-01-02T07:13:53.000Z
examples/apps/GetImage/GetImage.py
zhengqun/SungemSDK-Python
fcd9789721d96b7197543523b65a25a7351944f5
[ "Apache-2.0" ]
null
null
null
examples/apps/GetImage/GetImage.py
zhengqun/SungemSDK-Python
fcd9789721d96b7197543523b65a25a7351944f5
[ "Apache-2.0" ]
null
null
null
# Copyright(c) 2018 Senscape Corporation. # License: Apache 2.0 # Import libs import cv2, sys, numpy as np sys.path.append('../../../') import hsapi as hs device = hs.GetDevice() device.OpenDevice() try: while(1): image = device.GetImage(False) cv2.imshow('image',image) cv2.waitKey(1) fin...
18.473684
41
0.646724
4a0f821d451f924a6af4a83173ff337105fcf217
7,233
py
Python
research/object_detection/utils/metrics.py
873040/Abhishek
2ddd716e66bc5cc6e6f0787508dd07da0e02e75a
[ "Apache-2.0" ]
82,518
2016-02-05T12:07:23.000Z
2022-03-31T23:09:47.000Z
research/object_detection/utils/metrics.py
873040/Abhishek
2ddd716e66bc5cc6e6f0787508dd07da0e02e75a
[ "Apache-2.0" ]
9,021
2016-03-08T01:02:05.000Z
2022-03-31T08:06:35.000Z
research/object_detection/utils/metrics.py
873040/Abhishek
2ddd716e66bc5cc6e6f0787508dd07da0e02e75a
[ "Apache-2.0" ]
54,341
2016-02-06T17:19:55.000Z
2022-03-31T10:27:44.000Z
# Copyright 2017 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...
37.283505
80
0.716439
4a0f827887fc9c6e56eacc706e4fca1a69eaa9aa
14,785
py
Python
src/test/tests/rendering/legends.py
eddieTest/visit
ae7bf6f5f16b01cf6b672d34e2d293fa7170616b
[ "BSD-3-Clause" ]
null
null
null
src/test/tests/rendering/legends.py
eddieTest/visit
ae7bf6f5f16b01cf6b672d34e2d293fa7170616b
[ "BSD-3-Clause" ]
null
null
null
src/test/tests/rendering/legends.py
eddieTest/visit
ae7bf6f5f16b01cf6b672d34e2d293fa7170616b
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: legends.py # # Tests: mesh - 3D unstructured, single domain # plots - subset, boundary, filledboundary # operators - none # selection - material # # ...
28.055028
79
0.666689
4a0f82bb2e8179b646094b1e3aadfb66894ae418
2,360
py
Python
aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/ModifySecurityGroupPolicyRequest.py
DataDog/aliyun-openapi-python-sdk
5cbee29bce6416dd62f61f0c3786b1af6ea0d84f
[ "Apache-2.0" ]
1
2019-12-23T12:36:43.000Z
2019-12-23T12:36:43.000Z
aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/ModifySecurityGroupPolicyRequest.py
liusc27/aliyun-openapi-python-sdk
5e3db3535dd21de987dc5981e71151327d5a884f
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/ModifySecurityGroupPolicyRequest.py
liusc27/aliyun-openapi-python-sdk
5e3db3535dd21de987dc5981e71151327d5a884f
[ "Apache-2.0" ]
1
2021-02-23T11:27:54.000Z
2021-02-23T11:27:54.000Z
# 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.757576
84
0.780508
4a0f83971132d5f38cb2abd37e8b0864b5647149
1,496
py
Python
preprocess/change_bg_color_NEGATIVE_resize.py
TalalWasim/scene_text_segmentation
ef687c3eea429e7e6cf7c8485111b08d4eea37d4
[ "MIT" ]
3
2019-10-09T06:31:01.000Z
2021-06-15T15:41:32.000Z
preprocess/change_bg_color_NEGATIVE_resize.py
TalalWasim/scene_text_segmentation
ef687c3eea429e7e6cf7c8485111b08d4eea37d4
[ "MIT" ]
3
2019-10-09T06:32:44.000Z
2021-11-30T14:55:48.000Z
preprocess/change_bg_color_NEGATIVE_resize.py
TalalWasim/scene_text_segmentation
ef687c3eea429e7e6cf7c8485111b08d4eea37d4
[ "MIT" ]
2
2020-01-22T03:30:19.000Z
2021-03-08T05:58:15.000Z
import cv2 import numpy as np from PIL import Image from numpy import * import glob gt_img_dir = '/path/to/datasets/TextSegmentation/ICDAR2013_KAIST/GT_color/' #gt_img_dir = '/path/to/datasets/TextSegmentation/ICDAR2013_KAIST/resized_256/GT_color/' #gt_lime_dir = '/path/to/datasets/TextSegmentation/ICDAR2013_KAIST/G...
34.790698
104
0.738636
4a0f83a002ae358824bb426e9f99f22c7fb6abd1
1,846
py
Python
Companyname/appgestion/views.py
friedrrich/DesarrolloWebTest
43425c7c5c9edf06aabb3c6e499dd72df89ee369
[ "Apache-2.0" ]
null
null
null
Companyname/appgestion/views.py
friedrrich/DesarrolloWebTest
43425c7c5c9edf06aabb3c6e499dd72df89ee369
[ "Apache-2.0" ]
null
null
null
Companyname/appgestion/views.py
friedrrich/DesarrolloWebTest
43425c7c5c9edf06aabb3c6e499dd72df89ee369
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from appgestion.models import Articulo def buscar(request): #si txt_producto viene con dato if devuelve true if request.GET["txt_producto"]: producto_recibido = request.GET["txt_producto"] #comandos usados en la shell ...
34.830189
109
0.69935
4a0f84346a2b99dd314fc01257c5eb076e04caf4
3,426
py
Python
yolo/yolov3/yolov3_common.py
pengfeinie/object-detection
188882c941ceb027ee52232dfae6767c2b4feaca
[ "CECILL-B" ]
null
null
null
yolo/yolov3/yolov3_common.py
pengfeinie/object-detection
188882c941ceb027ee52232dfae6767c2b4feaca
[ "CECILL-B" ]
null
null
null
yolo/yolov3/yolov3_common.py
pengfeinie/object-detection
188882c941ceb027ee52232dfae6767c2b4feaca
[ "CECILL-B" ]
null
null
null
import numpy as np import cv2 def getLabels(): # Create labels into list with open('cfg/coco.names') as f: labels = [line.strip() for line in f] # Initialize colours for representing every detected object colours = np.random.randint(0, 255, size=(len(labels), 3), dtype='uint8') ...
45.078947
112
0.627262
4a0f848bbac4475cbc414a313d61b204fa8a0f4f
3,712
py
Python
netmiko/scp_functions.py
Vnictros240/netmiko
384944f230071cc16566f5c9719561a437372d27
[ "MIT" ]
1
2019-09-16T05:52:41.000Z
2019-09-16T05:52:41.000Z
netmiko/scp_functions.py
swetha1922/netmiko
896042c259702f092e56620050c1e6287bccfb2a
[ "MIT" ]
null
null
null
netmiko/scp_functions.py
swetha1922/netmiko
896042c259702f092e56620050c1e6287bccfb2a
[ "MIT" ]
null
null
null
""" Netmiko SCP operations. Supports file get and file put operations. SCP requires a separate SSH connection for a control channel. Currently only supports Cisco IOS and Cisco ASA. """ from netmiko import FileTransfer, InLineTransfer def verifyspace_and_transferfile(scp_transfer): """Verify space and transfer...
33.745455
92
0.599946
4a0f84e73b10fe41481a7d429e4e854c1c6222e5
13,617
py
Python
sockjs/session.py
iTraceur/sockjs-channels
eaff5affaaf22f696a17697d4b323cb9dc6bb07d
[ "MIT" ]
1
2022-03-24T16:13:04.000Z
2022-03-24T16:13:04.000Z
sockjs/session.py
iTraceur/sockjs-channels
eaff5affaaf22f696a17697d4b323cb9dc6bb07d
[ "MIT" ]
null
null
null
sockjs/session.py
iTraceur/sockjs-channels
eaff5affaaf22f696a17697d4b323cb9dc6bb07d
[ "MIT" ]
null
null
null
import asyncio import logging import warnings from collections import deque from datetime import datetime from .constants import DEFAULT_SESSION_TIMEOUT, DEFAULT_HEARTBEAT_INTERVAL, DEFAULT_GC_INTERVAL from .exceptions import SessionIsAcquired, SessionIsClosed from .protocol import FRAME_MESSAGE, FRAME_MESSAGE_BLOB, F...
30.807692
95
0.586693
4a0f854d899cd4ce87b00d8d3092ad66df14485a
119
py
Python
data/yfinance.py
lulosol/tradekit
02d24c0849192fc53d27fdf763e60041396a2171
[ "Apache-2.0" ]
null
null
null
data/yfinance.py
lulosol/tradekit
02d24c0849192fc53d27fdf763e60041396a2171
[ "Apache-2.0" ]
null
null
null
data/yfinance.py
lulosol/tradekit
02d24c0849192fc53d27fdf763e60041396a2171
[ "Apache-2.0" ]
null
null
null
import yfinance def get_agg_daily_bars(symbol, start, end) return yfinance.download(symbol, start=start, end=end)
23.8
58
0.781513
4a0f87d73010825e5545cbbc60ace84c40d436bc
6,449
py
Python
v1/firmware/uploader/uploader.py
amirgeva/z80pc
2daaa319ad7b313abdf0c73fc3faee8d6c36ed3e
[ "BSD-2-Clause" ]
null
null
null
v1/firmware/uploader/uploader.py
amirgeva/z80pc
2daaa319ad7b313abdf0c73fc3faee8d6c36ed3e
[ "BSD-2-Clause" ]
null
null
null
v1/firmware/uploader/uploader.py
amirgeva/z80pc
2daaa319ad7b313abdf0c73fc3faee8d6c36ed3e
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 ''' Memory programmer. Upload using serial port, a ROM image into the target memory. Upload in 54 bytes chunks and verify by reading back Usage: uploader.py <COM> <FILE> Example: uploader.py COM5 os.bin ''' import sys import serial import time def calculate_crc16(buffe...
28.790179
89
0.540859
4a0f881cfd419f8733fd94732171302690e8c615
3,806
py
Python
chiadoge/ssl/create_ssl.py
sengexyz/chiadoge-blockchain
d2b6963876ad81d5f058a6d33e26c884a0d0b201
[ "Apache-2.0" ]
2
2021-07-05T14:34:35.000Z
2022-01-01T21:27:52.000Z
chiadoge/ssl/create_ssl.py
sengexyz/chiadoge-blockchain
d2b6963876ad81d5f058a6d33e26c884a0d0b201
[ "Apache-2.0" ]
null
null
null
chiadoge/ssl/create_ssl.py
sengexyz/chiadoge-blockchain
d2b6963876ad81d5f058a6d33e26c884a0d0b201
[ "Apache-2.0" ]
1
2021-07-07T11:08:36.000Z
2021-07-07T11:08:36.000Z
import datetime from pathlib import Path from typing import Any, Tuple import pkg_resources from cryptography import x509 from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import hashes, serialization from cryptography.hazmat.primitives.asymmetric import rsa from cryptography...
35.570093
104
0.704151
4a0f88b353e71c833e579a5f7261af38220df8e4
8,303
py
Python
apps/logs/migrations/0054_fill_importbatch_date.py
techlib/czechelib-stats
ca132e326af0924740a525710474870b1fb5fd37
[ "MIT" ]
1
2019-12-12T15:38:42.000Z
2019-12-12T15:38:42.000Z
apps/logs/migrations/0054_fill_importbatch_date.py
techlib/czechelib-stats
ca132e326af0924740a525710474870b1fb5fd37
[ "MIT" ]
null
null
null
apps/logs/migrations/0054_fill_importbatch_date.py
techlib/czechelib-stats
ca132e326af0924740a525710474870b1fb5fd37
[ "MIT" ]
null
null
null
# Generated by Django 3.2.12 on 2022-02-15 11:11 import sys from django.db import migrations from django.db.models import Count, Min, Max, F def fix_extra_month_in_jr2_data(apps, schema_editor): """ Pycounter contained an error which caused data from JR2 reports to create an extra month beyond the one th...
41.723618
100
0.690353
4a0f89b67ebcd64a2e7ff180463259ae3f05cb90
21,604
py
Python
sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2020_05_01_preview/aio/operations/_storage_accounts_operations.py
GoWang/azure-sdk-for-python
f241e3734a50953c2a37c10d2d84eb4c013b3ba0
[ "MIT" ]
2
2021-03-24T06:26:11.000Z
2021-04-18T15:55:59.000Z
sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2020_05_01_preview/aio/operations/_storage_accounts_operations.py
GoWang/azure-sdk-for-python
f241e3734a50953c2a37c10d2d84eb4c013b3ba0
[ "MIT" ]
2
2021-11-03T06:10:36.000Z
2021-12-01T06:29:39.000Z
sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2020_05_01_preview/aio/operations/_storage_accounts_operations.py
GoWang/azure-sdk-for-python
f241e3734a50953c2a37c10d2d84eb4c013b3ba0
[ "MIT" ]
1
2021-05-19T02:55:10.000Z
2021-05-19T02:55:10.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 may ...
49.664368
235
0.673301
4a0f8b6894c11ab143aac741dc32c820161ed05a
8,190
py
Python
vendor/packages/Babel/docs/conf.py
DESHRAJ/fjord
8899b6286b23347c9b024334e61c33fe133e836d
[ "BSD-3-Clause" ]
null
null
null
vendor/packages/Babel/docs/conf.py
DESHRAJ/fjord
8899b6286b23347c9b024334e61c33fe133e836d
[ "BSD-3-Clause" ]
1
2021-12-13T20:55:07.000Z
2021-12-13T20:55:07.000Z
vendor/packages/Babel/docs/conf.py
DESHRAJ/fjord
8899b6286b23347c9b024334e61c33fe133e836d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Babel documentation build configuration file, created by # sphinx-quickstart on Wed Jul 3 17:53:01 2013. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All c...
31.867704
80
0.707326
4a0f8b94399ffce38e42e79fba2bbcbbbe0db5ef
795
py
Python
src/timeshap/wrappers/__init__.py
feedzai/timeshap
0d56b3b86222d52fdc5a1e96f125513e0ed18e6c
[ "Apache-2.0" ]
49
2022-03-25T14:35:52.000Z
2022-03-31T18:05:51.000Z
src/timeshap/wrappers/__init__.py
feedzai/timeshap
0d56b3b86222d52fdc5a1e96f125513e0ed18e6c
[ "Apache-2.0" ]
1
2022-03-31T12:15:55.000Z
2022-03-31T14:59:06.000Z
src/timeshap/wrappers/__init__.py
feedzai/timeshap
0d56b3b86222d52fdc5a1e96f125513e0ed18e6c
[ "Apache-2.0" ]
2
2022-03-28T04:32:35.000Z
2022-03-28T06:39:24.000Z
# Copyright 2022 Feedzai # # 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 writi...
36.136364
75
0.769811
4a0f8ecdea7b0cdc6d5c4281f0b40957125111c2
5,012
py
Python
aardvark-api-windows-x86_64-v5.40/aardvark-api-windows-x86_64-v5.40/python/aai2c_file.py
firstsystemsuk/aardvark_i2c
2cbf38f76dc144cd0c44f56b1d1f7a09fd720d8d
[ "MIT" ]
1
2021-03-19T20:47:16.000Z
2021-03-19T20:47:16.000Z
aardvark-api-windows-x86_64-v5.40/aardvark-api-windows-x86_64-v5.40/python/aai2c_file.py
firstsystemsuk/aardvark_i2c
2cbf38f76dc144cd0c44f56b1d1f7a09fd720d8d
[ "MIT" ]
null
null
null
aardvark-api-windows-x86_64-v5.40/aardvark-api-windows-x86_64-v5.40/python/aai2c_file.py
firstsystemsuk/aardvark_i2c
2cbf38f76dc144cd0c44f56b1d1f7a09fd720d8d
[ "MIT" ]
1
2021-12-30T02:19:41.000Z
2021-12-30T02:19:41.000Z
#!/usr/bin/env python3 #========================================================================== # (c) 2004-2019 Total Phase, Inc. #-------------------------------------------------------------------------- # Project : Aardvark Sample Code # File : aai2c_file.c #---------------------------------------------------...
35.546099
75
0.52933
4a0f8ee6a1d3a145dff4c5257bd5add381cc20b5
8,234
py
Python
packages/python/plotly/plotly/graph_objs/choropleth/marker/__init__.py
potpath/plotly.py
46cd47f441d8bda9b14b4ba66a33f02731faf8f0
[ "MIT" ]
1
2020-04-06T20:57:36.000Z
2020-04-06T20:57:36.000Z
packages/python/plotly/plotly/graph_objs/choropleth/marker/__init__.py
potpath/plotly.py
46cd47f441d8bda9b14b4ba66a33f02731faf8f0
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/choropleth/marker/__init__.py
potpath/plotly.py
46cd47f441d8bda9b14b4ba66a33f02731faf8f0
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): # color # ----- @property def color(self): """ Sets themarker.linecolor. It accepts either a specific color or an array of numbers that ...
34.165975
86
0.56121
4a0f8fc1d9a40cd8c1e83ca1828ac95fba5999ab
4,499
py
Python
src/preprocess.py
HeosSacer/SSVEP-Brain-Computer-Interface
1c4a0c899475d484f4427a94e65cfbd8b71c6904
[ "MIT" ]
4
2019-12-09T04:37:55.000Z
2021-11-05T13:49:55.000Z
src/preprocess.py
swxie/SSVEP-Brain-Computer-Interface
1c4a0c899475d484f4427a94e65cfbd8b71c6904
[ "MIT" ]
null
null
null
src/preprocess.py
swxie/SSVEP-Brain-Computer-Interface
1c4a0c899475d484f4427a94e65cfbd8b71c6904
[ "MIT" ]
3
2019-11-24T03:07:45.000Z
2022-02-26T10:04:00.000Z
import mne import os import scipy.io as sio import numpy as np import matplotlib.pyplot as plt from mne.time_frequency import psd_welch mne.set_log_level("ERROR") recording_dir = os.path.join(os.path.dirname(__file__), "..", "REC") stimulation_duration = 15.0 sampling_frequency = 256.0 fmin = 10.0 ...
35.425197
99
0.619693
4a0f9156cb6e5286f0be0f3db37afae3085be0c5
2,786
py
Python
pychron/processing/permutator/view.py
ael-noblegas/pychron
6ebbbb1f66a614972b62b7a9be4c784ae61b5d62
[ "Apache-2.0" ]
1
2019-02-27T21:57:44.000Z
2019-02-27T21:57:44.000Z
pychron/processing/permutator/view.py
ael-noblegas/pychron
6ebbbb1f66a614972b62b7a9be4c784ae61b5d62
[ "Apache-2.0" ]
80
2018-07-17T20:10:20.000Z
2021-08-17T15:38:24.000Z
pychron/processing/permutator/view.py
AGESLDEO/pychron
1a81e05d9fba43b797f335ceff6837c016633bcf
[ "Apache-2.0" ]
null
null
null
# =============================================================================== # Copyright 2014 Jake Ross # # 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...
31.303371
82
0.589375
4a0f916a159d2351088d1681139523f08cd5f3a6
8,472
py
Python
Python/autoencoders_keras/variational_autoencoder.py
fyumoto/AE_Keras
e923b41aa5782fe6c7b1ce8ac3c7031e2395867f
[ "Apache-2.0" ]
1
2020-03-22T14:11:38.000Z
2020-03-22T14:11:38.000Z
Python/autoencoders_keras/variational_autoencoder.py
fyumoto/AE_Keras
e923b41aa5782fe6c7b1ce8ac3c7031e2395867f
[ "Apache-2.0" ]
null
null
null
Python/autoencoders_keras/variational_autoencoder.py
fyumoto/AE_Keras
e923b41aa5782fe6c7b1ce8ac3c7031e2395867f
[ "Apache-2.0" ]
null
null
null
# License # Copyright 2018 Hamaad Musharaf Shah # 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 writ...
48.411429
307
0.601629
4a0f91d1793e90d7b8ec86a43cbcd8b0fbf0985f
143,125
py
Python
lbrynet/extras/daemon/Daemon.py
preethamvishy/lbry
5a1f42ee5491ea6f1b49f8ddd89e4ee37a7598ec
[ "MIT" ]
null
null
null
lbrynet/extras/daemon/Daemon.py
preethamvishy/lbry
5a1f42ee5491ea6f1b49f8ddd89e4ee37a7598ec
[ "MIT" ]
null
null
null
lbrynet/extras/daemon/Daemon.py
preethamvishy/lbry
5a1f42ee5491ea6f1b49f8ddd89e4ee37a7598ec
[ "MIT" ]
null
null
null
import logging.handlers import mimetypes import os import requests import urllib import json import textwrap from typing import Callable, Optional, List from operator import itemgetter from binascii import hexlify, unhexlify from copy import deepcopy from twisted.internet import defer, reactor from twisted.internet.ta...
42.083211
120
0.558645