hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
0256809d012968ccb92358cf37111f51aaa199ed
12,015
py
Python
code/python/VirtualPortfolioAPIforDigitalPortals/v1/fds/sdk/VirtualPortfolioAPIforDigitalPortals/model/portfolio_create_data.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/VirtualPortfolioAPIforDigitalPortals/v1/fds/sdk/VirtualPortfolioAPIforDigitalPortals/model/portfolio_create_data.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/VirtualPortfolioAPIforDigitalPortals/v1/fds/sdk/VirtualPortfolioAPIforDigitalPortals/model/portfolio_create_data.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" Prime Developer Trial No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from fds.sdk.V...
43.064516
136
0.574782
5ce6d2b985dbeee6da900e3185abe7e1928662f5
272
py
Python
python-obj/python_self.py
heysion/python-demo
63261202c6cc9e231d5e4c061f40d2a8b1482fc5
[ "MIT" ]
null
null
null
python-obj/python_self.py
heysion/python-demo
63261202c6cc9e231d5e4c061f40d2a8b1482fc5
[ "MIT" ]
null
null
null
python-obj/python_self.py
heysion/python-demo
63261202c6cc9e231d5e4c061f40d2a8b1482fc5
[ "MIT" ]
null
null
null
class ClassA: def __init__(self): self.name = "abc" self.age = 123 def start(self): get_self(handler = self) def get_self(handler): print handler.name print handler.age if __name__ == "__main__": a = ClassA() a.start()
15.111111
32
0.580882
0d9863528659c9ca29f01a9cdc13ffab3b05b385
2,483
py
Python
tests/test_model/test_temporal_regression_head.py
kristinbranson/APT-mmpose
19464d2cea2e963e771a91ed200270c069024ddc
[ "Apache-2.0" ]
1
2021-04-20T08:39:34.000Z
2021-04-20T08:39:34.000Z
tests/test_model/test_temporal_regression_head.py
plyfager/mmpose
d026725554f9dc08e8708bd9da8678f794a7c9a6
[ "Apache-2.0" ]
null
null
null
tests/test_model/test_temporal_regression_head.py
plyfager/mmpose
d026725554f9dc08e8708bd9da8678f794a7c9a6
[ "Apache-2.0" ]
null
null
null
import numpy as np import pytest import torch from mmpose.models import TemporalRegressionHead def test_temporal_regression_head(): """Test temporal head.""" # w/o global position restoration head = TemporalRegressionHead( in_channels=1024, num_joints=17, loss_keypoint=dict(type=...
28.872093
69
0.644382
dbda0e02e45c58fdcc12289712bafd6b92a82d89
3,850
py
Python
src/visualization/utils/splines.py
cschupbach/tmdb
8ccf72f8d2e83b5605eff81a06a12961819b40c7
[ "MIT" ]
null
null
null
src/visualization/utils/splines.py
cschupbach/tmdb
8ccf72f8d2e83b5605eff81a06a12961819b40c7
[ "MIT" ]
null
null
null
src/visualization/utils/splines.py
cschupbach/tmdb
8ccf72f8d2e83b5605eff81a06a12961819b40c7
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt def m_splines_basis(x, M, K): """Return the basis matrix for order-M splines.""" dof = K + M xi = np.linspace(np.min(x), np.max(x), K+2)[1:-1] H = np.zeros((len(x), dof)) for j in range(M): H[:,j] = np.power(x, j) for k in range(K): ...
27.697842
74
0.511169
0e81e3b8d63f6c78d6091d930337e886ac2e0d12
6,413
py
Python
venv/lib/python3.8/site-packages/dateparser/data/date_translation_data/he.py
yuta-komura/vishnu
67173b674d5f4f3be189474103612447ef69ab44
[ "MIT" ]
1
2021-11-17T04:55:14.000Z
2021-11-17T04:55:14.000Z
dateparser/data/date_translation_data/he.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
dateparser/data/date_translation_data/he.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- info = { "name": "he", "date_order": "DMY", "january": [ "ינואר", "ינו׳", "לינואר", "בינואר", "ינו" ], "february": [ "פברואר", "פבר׳", "בפברואר", "לפברואר", "פבר" ], "march": [ "מר...
17.193029
34
0.247934
0fe5f55b94767e2765b101413f36d3b004c94b0e
3,710
py
Python
roomInformationExport.py
ruornil/revitDynamoScripts
dc01db653a721136da4e3f99469df4e06becb767
[ "MIT" ]
null
null
null
roomInformationExport.py
ruornil/revitDynamoScripts
dc01db653a721136da4e3f99469df4e06becb767
[ "MIT" ]
null
null
null
roomInformationExport.py
ruornil/revitDynamoScripts
dc01db653a721136da4e3f99469df4e06becb767
[ "MIT" ]
null
null
null
#Copyright(c) 2015, Nathan Miller # The Proving Ground, http://theprovingground.org #Edited and modified by Mehmet Cenk Tunaboylu, to better suit his needs. Removed boundary curves extraction. Added department extraction. import clr # Import RevitAPI clr.AddReference("RevitAPI") import Autodesk from Autodesk...
28.538462
138
0.695957
166b4b7d85a3ec29586a373baa2d6dcdb9b39cdb
1,194
py
Python
basic-concepts/lambda_functions.py
erickrubiol/python-hacks
0ba1e809a50de1674cb2dab7eeea1a5958abad87
[ "MIT" ]
null
null
null
basic-concepts/lambda_functions.py
erickrubiol/python-hacks
0ba1e809a50de1674cb2dab7eeea1a5958abad87
[ "MIT" ]
null
null
null
basic-concepts/lambda_functions.py
erickrubiol/python-hacks
0ba1e809a50de1674cb2dab7eeea1a5958abad87
[ "MIT" ]
null
null
null
####################################LAMBDAS###################################### # lambda <arguments> : <return expression> # lambda es una pequeña función anónima # Puede tener varios argumento pero solo una expresión # Siempre tiene que regresar un valor, a diferencia de una funcion normal # Ejemplo simple print( (...
32.27027
81
0.561977
75305c70c4adceb1b24624d5dad4935ac9ca53c3
9,723
py
Python
TensorArtist/tartist/data/rflow/name_server.py
cosmic119/DiscoGAN
5a86f36f45a3dafdc028fc2100eb477e54dc83cd
[ "MIT" ]
54
2017-03-31T08:46:18.000Z
2022-03-09T14:37:19.000Z
TensorArtist/tartist/data/rflow/name_server.py
cosmic119/DiscoGAN
5a86f36f45a3dafdc028fc2100eb477e54dc83cd
[ "MIT" ]
1
2017-08-21T07:29:33.000Z
2017-08-21T09:52:40.000Z
TensorArtist/tartist/data/rflow/name_server.py
cosmic119/DiscoGAN
5a86f36f45a3dafdc028fc2100eb477e54dc83cd
[ "MIT" ]
3
2017-05-24T17:43:35.000Z
2018-09-19T11:18:23.000Z
# -*- coding:utf8 -*- # File : name_server.py # Author : Jiayuan Mao # Email : maojiayuan@gmail.com # Date : 2/28/17 # # This file is part of TensorArtist. from . import configs, utils from ...core.logger import get_logger from ...core.utils.callback import CallbackManager import zmq import time import threadin...
39.364372
109
0.578319
4196259e608b8372e6768b861d19f3961f214fba
863
py
Python
fixture/mail.py
ValeriyMenshikov/API-tests-for-mantis
a1c8418228f5e7a4c1051b9fde07227cc92fd5f2
[ "Apache-2.0" ]
null
null
null
fixture/mail.py
ValeriyMenshikov/API-tests-for-mantis
a1c8418228f5e7a4c1051b9fde07227cc92fd5f2
[ "Apache-2.0" ]
null
null
null
fixture/mail.py
ValeriyMenshikov/API-tests-for-mantis
a1c8418228f5e7a4c1051b9fde07227cc92fd5f2
[ "Apache-2.0" ]
null
null
null
import poplib import email import time class MailHelper: def __init__(self, app): self.app = app def get_mail(self, username, password, subject): for i in range(10): pop = poplib.POP3(self.app.config["james"]["host"]) pop.user(username) pop.pass_(password) ...
31.962963
83
0.471611
69e73af77bc3d771973feca3aecc9b076cd60ba4
437
py
Python
xmstring/__init__.py
xmake-io/pxmake
c5ca995e1afa840d54b513e8b2f193de463a3606
[ "Apache-2.0" ]
1
2021-08-15T21:26:10.000Z
2021-08-15T21:26:10.000Z
xmstring/__init__.py
xmake-io/pxmake
c5ca995e1afa840d54b513e8b2f193de463a3606
[ "Apache-2.0" ]
null
null
null
xmstring/__init__.py
xmake-io/pxmake
c5ca995e1afa840d54b513e8b2f193de463a3606
[ "Apache-2.0" ]
null
null
null
from functools import partial from xmstring.strcmp import xm_string_strcmp from xmstring.startswith import xm_string_startswith from xmstring.endswith import xm_string_endswith def register(lua): lua.execute("string = string or {}") string = lua.globals().string string.strcmp = partial(xm_string_strcmp, lu...
36.416667
58
0.787185
daae3fe7ce9d0db7becf8d5ef9bedbda3a4b733d
6,589
py
Python
lib/python/PythonGenericClassifier0.py
ledell/StackNet
c6ee1f5b7c21479be362c33f404debbbdc37aed6
[ "MIT" ]
null
null
null
lib/python/PythonGenericClassifier0.py
ledell/StackNet
c6ee1f5b7c21479be362c33f404debbbdc37aed6
[ "MIT" ]
null
null
null
lib/python/PythonGenericClassifier0.py
ledell/StackNet
c6ee1f5b7c21479be362c33f404debbbdc37aed6
[ "MIT" ]
1
2019-08-31T15:22:05.000Z
2019-08-31T15:22:05.000Z
# -*- coding: utf-8 -*- """ Copyright (c) 2017 Marios Michailidis Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify...
35.424731
176
0.613447
8a5bde8913eda5dc39646a9d68f223d5c4371c7a
16,770
py
Python
nio/events/to_device.py
schra/matrix-nio
fceb7cf0fb59afd3aa3865c088513b5d4a7b1f86
[ "Apache-2.0" ]
347
2019-01-15T23:45:40.000Z
2022-03-31T13:09:12.000Z
nio/events/to_device.py
schra/matrix-nio
fceb7cf0fb59afd3aa3865c088513b5d4a7b1f86
[ "Apache-2.0" ]
267
2019-01-21T01:06:04.000Z
2022-03-28T08:52:42.000Z
nio/events/to_device.py
schra/matrix-nio
fceb7cf0fb59afd3aa3865c088513b5d4a7b1f86
[ "Apache-2.0" ]
108
2018-10-14T20:45:18.000Z
2022-03-21T19:13:46.000Z
# -*- coding: utf-8 -*- # Copyright © 2018-2019 Damir Jelić <poljar@termina.org.uk> # # Permission to use, copy, modify, and/or distribute this software for # any purpose with or without fee is hereby granted, provided that the # above copyright notice and this permission notice appear in all copies. # # THE SOFTWARE ...
32.25
79
0.653548
81eff398c72f45b9cc25546513be2cb861e490b8
805
py
Python
Lib/idlelib/idle_test/test_rpc.py
shawwn/cpython
0ff8a3b374286d2218fc18f47556a5ace202dad3
[ "0BSD" ]
52,316
2015-01-01T15:56:25.000Z
2022-03-31T23:19:01.000Z
Lib/idlelib/idle_test/test_rpc.py
shawwn/cpython
0ff8a3b374286d2218fc18f47556a5ace202dad3
[ "0BSD" ]
25,286
2015-03-03T23:18:02.000Z
2022-03-31T23:17:27.000Z
Lib/idlelib/idle_test/test_rpc.py
shawwn/cpython
0ff8a3b374286d2218fc18f47556a5ace202dad3
[ "0BSD" ]
31,623
2015-01-01T13:29:37.000Z
2022-03-31T19:55:06.000Z
"Test rpc, coverage 20%." from idlelib import rpc import unittest class CodePicklerTest(unittest.TestCase): def test_pickle_unpickle(self): def f(): return a + b + c func, (cbytes,) = rpc.pickle_code(f.__code__) self.assertIs(func, rpc.unpickle_code) self.assertIn(b'test_rpc.py'...
26.833333
66
0.637267
18fc2c4967c03c637e4dc3b7a70546877470ac9c
13,155
py
Python
persistence.py
Oxford-Boella-NLP/caml-mimic
b56ad2519b9181ba60e4d1c1155a25f3dad731d5
[ "MIT" ]
null
null
null
persistence.py
Oxford-Boella-NLP/caml-mimic
b56ad2519b9181ba60e4d1c1155a25f3dad731d5
[ "MIT" ]
null
null
null
persistence.py
Oxford-Boella-NLP/caml-mimic
b56ad2519b9181ba60e4d1c1155a25f3dad731d5
[ "MIT" ]
null
null
null
""" Saving relevant things. """ import csv import json import os import numpy as np import torch import pandas as pd def get_codes(): return ['427.31', '584.9', '428.0', '401.9', '518.81', '787.02', '785.4', '038.12', '501'] #top_10_codes = ['401.9', '38.93', '428.0', '427.31', '414.01', '96.04', '96.6', '...
53.259109
233
0.580692
185e4bc360222fc1d096233cf875bd14d396d0a1
53,993
py
Python
sympy/functions/elementary/tests/test_trigonometric.py
darknight009/sympy
618193720b862a41aa295d474793cc12e4de2927
[ "BSD-3-Clause" ]
1
2017-04-27T15:45:41.000Z
2017-04-27T15:45:41.000Z
sympy/functions/elementary/tests/test_trigonometric.py
darknight009/sympy
618193720b862a41aa295d474793cc12e4de2927
[ "BSD-3-Clause" ]
4
2016-11-29T09:10:32.000Z
2016-12-03T21:20:34.000Z
sympy/functions/elementary/tests/test_trigonometric.py
darknight009/sympy
618193720b862a41aa295d474793cc12e4de2927
[ "BSD-3-Clause" ]
1
2020-10-02T04:21:11.000Z
2020-10-02T04:21:11.000Z
from sympy import (symbols, Symbol, nan, oo, zoo, I, sinh, sin, pi, atan, acos, Rational, sqrt, asin, acot, coth, E, S, tan, tanh, cos, cosh, atan2, exp, log, asinh, acoth, atanh, O, cancel, Matrix, re, im, Float, Pow, gcd, sec, csc, cot, diff, simplify, Heaviside, arg, conjugate, series...
35.686054
105
0.540515
9fb83797c95f852b9766314f8f8828b7c8a1e54d
812
py
Python
MxOnline/apps/operation/serializers.py
xeroCBW/testmodel
6000d79f91d11bcf6ba76befb3a94a007231ecdc
[ "MIT" ]
null
null
null
MxOnline/apps/operation/serializers.py
xeroCBW/testmodel
6000d79f91d11bcf6ba76befb3a94a007231ecdc
[ "MIT" ]
54
2020-06-24T07:12:19.000Z
2022-03-12T00:43:57.000Z
MxOnline/apps/operation/serializers.py
xeroCBW/testmodel
6000d79f91d11bcf6ba76befb3a94a007231ecdc
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import * class UserCourseSerializer(serializers.ModelSerializer): add_time = serializers.DateTimeField(read_only=True) class Meta: model = UserCourse fields = '__all__' class UserAskSerializer(serializers.ModelSerializer): add_time = s...
23.882353
60
0.722906
fdd69b58d640339db39f6b9cabe8471d47c74bd4
508
py
Python
setup.py
cdbethune/pcafeatures-d3m-wrapper
3982c25fe8a71ce6f2a68430f3256f3ce4514eba
[ "MIT" ]
null
null
null
setup.py
cdbethune/pcafeatures-d3m-wrapper
3982c25fe8a71ce6f2a68430f3256f3ce4514eba
[ "MIT" ]
null
null
null
setup.py
cdbethune/pcafeatures-d3m-wrapper
3982c25fe8a71ce6f2a68430f3256f3ce4514eba
[ "MIT" ]
null
null
null
from distutils.core import setup setup(name='PcafeaturesD3MWrapper', version='3.0.2', description='A wrapper for running the punk pcafeatures functions in the d3m environment.', packages=['PcafeaturesD3MWrapper'], install_requires=["numpy==1.15.4", "pandas==0.23.4", "punk==3.0.0"], ...
28.222222
95
0.643701
67a6e87f740563dc246af69ebc0c54fbe8471acd
5,786
py
Python
game.py
asolano/shiritori
e2c8d3c0fdd4d2bfe4de448d71ea9cbe3c1ad5ac
[ "IJG" ]
null
null
null
game.py
asolano/shiritori
e2c8d3c0fdd4d2bfe4de448d71ea9cbe3c1ad5ac
[ "IJG" ]
null
null
null
game.py
asolano/shiritori
e2c8d3c0fdd4d2bfe4de448d71ea9cbe3c1ad5ac
[ "IJG" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 import sys if sys.version_info.major < 3: print('This script requires Python3. Exiting...') sys.exit(0) import random import collections import itertools import unicodedata def is_hiragana(text): # See https://en.wikipedia.org/wiki/Hiragana_(Unicode_block) min_...
31.617486
75
0.584514
013924aa9aede3ed6c860298eb142461f75d7c93
13
py
Python
iobl/__init__.py
boblegal31/iobl
3032a5a52e7428ad5b76889dc8426a786cd7b762
[ "MIT" ]
2
2020-03-27T08:37:53.000Z
2021-04-21T07:38:13.000Z
iobl/__init__.py
boblegal31/iobl
3032a5a52e7428ad5b76889dc8426a786cd7b762
[ "MIT" ]
null
null
null
iobl/__init__.py
boblegal31/iobl
3032a5a52e7428ad5b76889dc8426a786cd7b762
[ "MIT" ]
1
2021-04-21T07:42:33.000Z
2021-04-21T07:42:33.000Z
name = "iobl"
13
13
0.615385
8e566eead3bf252818be6c4eab728073b3d6f0bc
596
py
Python
env/Lib/site-packages/plotly/validators/scattersmith/marker/colorbar/_tickmode.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
7
2022-01-16T12:28:16.000Z
2022-03-04T15:31:45.000Z
packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickmode.py
jiangrongbo/plotly.py
df19fc702b309586cc24e25373b87e8bdbb3ff60
[ "MIT" ]
14
2021-10-20T23:33:47.000Z
2021-12-21T04:50:37.000Z
packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickmode.py
jiangrongbo/plotly.py
df19fc702b309586cc24e25373b87e8bdbb3ff60
[ "MIT" ]
1
2021-11-29T22:55:05.000Z
2021-11-29T22:55:05.000Z
import _plotly_utils.basevalidators class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name="tickmode", parent_name="scattersmith.marker.colorbar", **kwargs ): super(TickmodeValidator, self).__init__( plotly...
31.368421
74
0.619128
f7a1e8b28f752a522fa41feaadf859033d7c278d
1,409
py
Python
chris_cunningham/day11.py
techartorg/Advent_of_Code_2020
ae21164bc126352e7a2e9c9c6a0017ccb9d946cc
[ "MIT" ]
3
2020-11-16T15:20:11.000Z
2020-12-11T17:01:42.000Z
chris_cunningham/day11.py
techartorg/Advent_of_Code_2020
ae21164bc126352e7a2e9c9c6a0017ccb9d946cc
[ "MIT" ]
null
null
null
chris_cunningham/day11.py
techartorg/Advent_of_Code_2020
ae21164bc126352e7a2e9c9c6a0017ccb9d946cc
[ "MIT" ]
1
2020-12-13T04:42:44.000Z
2020-12-13T04:42:44.000Z
from typing import Iterable EMPTY = "L" FLOOR = "." OCCUPIED = "#" DIRECTIONS = [(-1-1j), (-1+0j), (-1+1j), -1j, 1j, (1-1j), (1+0j), (1+1j)] with open("inputs/day11.txt", 'r') as f: input_grid = {x + y*1j: s for y, line in enumerate(f.read().splitlines()) for x, s in enumerate(line)} def get_adjacent(coord:...
30.630435
134
0.550035
b71b3a94c31b51d5264ca264f9468b02179eb281
2,003
py
Python
flappy/chromosome.py
hakosaj/PygameAI
d5aec86b3e1ff3adccdba3691361f3562af0984b
[ "MIT" ]
null
null
null
flappy/chromosome.py
hakosaj/PygameAI
d5aec86b3e1ff3adccdba3691361f3562af0984b
[ "MIT" ]
7
2020-07-30T23:43:30.000Z
2022-03-12T00:21:01.000Z
flappy/chromosome.py
hakosaj/PygameAI
d5aec86b3e1ff3adccdba3691361f3562af0984b
[ "MIT" ]
null
null
null
import random from pillar import Pillar from bird import Bird from constants import * class Chromosome: def __init__(self): self.xDistUp = 300 self.yDistUp = 50 self.velocityLimitLow = -5 self.velocityLimitUp = 6 self.endScore = 0 self.dead = False def randoms(...
30.815385
88
0.568647
5524ea3f4b0a85835d90937be91cbdbe6cfaf388
1,162
py
Python
pandas/pandabear01.py
nebiutadele/2022-02-28-Alta3-Python
9c065540bfdf432103bfffac6eae4972c9f9061a
[ "MIT" ]
1
2022-01-14T20:47:47.000Z
2022-01-14T20:47:47.000Z
pandas/pandabear01.py
nebiutadele/2022-02-28-Alta3-Python
9c065540bfdf432103bfffac6eae4972c9f9061a
[ "MIT" ]
null
null
null
pandas/pandabear01.py
nebiutadele/2022-02-28-Alta3-Python
9c065540bfdf432103bfffac6eae4972c9f9061a
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """Alta3 Research | RZFeeser@alta3.com Exploring using pandas to create dataframes, and output graphs""" import pandas as pd def main(): # define the name of our xls file excel_file = 'movies.xls' # create a DataFrame (DF) object. EASY! # because we did not specify a sheet #...
28.341463
72
0.685886
35f7f789e1af7987decd9e4be4d110ed46446c90
1,031
py
Python
plugins/dicom_viewer/girder_dicom_viewer/event_helper.py
HailLab/girder
974d869e6f53ec87a5e64730fee27eb6314fc006
[ "Apache-2.0" ]
null
null
null
plugins/dicom_viewer/girder_dicom_viewer/event_helper.py
HailLab/girder
974d869e6f53ec87a5e64730fee27eb6314fc006
[ "Apache-2.0" ]
null
null
null
plugins/dicom_viewer/girder_dicom_viewer/event_helper.py
HailLab/girder
974d869e6f53ec87a5e64730fee27eb6314fc006
[ "Apache-2.0" ]
1
2017-02-27T16:11:54.000Z
2017-02-27T16:11:54.000Z
# -*- coding: utf-8 -*- import threading from girder import events class _EventHelper(object): """ Helper class to wait for plugin's data.process event handler to complete. Usage: with EventHelper('event.name') as helper: Upload().uploadFile(...) handled = helper.wait() ...
26.435897
77
0.613967
4cdf162f1250956c4d927ca65b0c131947c7342f
1,564
py
Python
baconian/test/tests/test_core/test_core.py
yitongx/baconian-public
a67e23c6bc6bfe7019ec9532a3d18f06aed6bbbb
[ "MIT" ]
69
2020-01-31T17:44:43.000Z
2022-03-28T13:09:11.000Z
baconian/test/tests/test_core/test_core.py
yitongx/baconian-project
e84508da60877e387344133a11039edaac35c5bf
[ "MIT" ]
5
2019-04-28T07:24:26.000Z
2020-01-29T01:49:51.000Z
baconian/test/tests/test_core/test_core.py
yitongx/baconian-project
e84508da60877e387344133a11039edaac35c5bf
[ "MIT" ]
6
2019-05-04T02:18:11.000Z
2019-12-04T22:05:52.000Z
from baconian.config.global_config import GlobalConfig from baconian.test.tests.set_up.setup import BaseTestCase from baconian.common.error import * from baconian.algo.dynamics.reward_func.reward_func import RandomRewardFunc from baconian.core.core import Basic class TestCore(BaseTestCase): def test_global_config(...
31.918367
93
0.653453
327e2a9c3e584461d9af16ecc5df49263808863d
3,256
py
Python
onconnect/events.py
ltzmax/maxcogs
6a3f8498eac22113aefca00b873c43910a1fad91
[ "MIT" ]
5
2022-01-31T16:16:19.000Z
2022-03-19T23:34:11.000Z
onconnect/events.py
ltzmax/maxcogs
6a3f8498eac22113aefca00b873c43910a1fad91
[ "MIT" ]
4
2021-12-27T17:45:26.000Z
2022-01-27T13:12:04.000Z
onconnect/events.py
ltzmax/maxcogs
6a3f8498eac22113aefca00b873c43910a1fad91
[ "MIT" ]
3
2022-01-05T11:53:27.000Z
2022-03-17T00:05:22.000Z
""" MIT License Copyright (c) 2022-present ltzmax Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish...
42.285714
86
0.719287
3cae688543d9b1584d6c31c974d4fe52cdb86869
2,199
py
Python
src/datafinder/gui/user/dialogs/license_dialog.py
schlauch/DataFinder
958fda4f3064f9f6b2034da396a20ac9d9abd52f
[ "BSD-3-Clause" ]
9
2016-05-25T06:12:52.000Z
2021-04-30T07:22:48.000Z
src/datafinder/gui/user/dialogs/license_dialog.py
schlauch/DataFinder
958fda4f3064f9f6b2034da396a20ac9d9abd52f
[ "BSD-3-Clause" ]
6
2016-03-29T13:38:18.000Z
2017-01-18T15:57:42.000Z
src/datafinder/gui/user/dialogs/license_dialog.py
schlauch/DataFinder
958fda4f3064f9f6b2034da396a20ac9d9abd52f
[ "BSD-3-Clause" ]
7
2016-06-15T12:01:22.000Z
2022-03-05T08:50:25.000Z
# $Filename$ # $Authors$ # Last Changed: $Date$ $Committer$ $Revision-Id$ # Copyright (c) 2003-2011, German Aerospace Center (DLR) # All rights reserved. # # #Redistribution and use in source and binary forms, with or without # #modification, are permitted provided that the following conditions are #met: # ...
33.830769
73
0.718054
157134f99b45b75c6a643aae216835e90e9afd1f
17,709
py
Python
azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/express_route_circuit_peerings_operations.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/express_route_circuit_peerings_operations.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/express_route_circuit_peerings_operations.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
47.862162
195
0.677057
9be16b68ed00f1f6b68b7ae10120c10597457a20
141
py
Python
spotdl/__main__.py
TLINDEN/spotdl-v4
30112816ff49e19f76fa54299ff2e94d2d2e65cd
[ "MIT" ]
3
2021-11-24T17:11:16.000Z
2021-12-19T05:49:38.000Z
spotdl/__main__.py
TLINDEN/spotdl-v4
30112816ff49e19f76fa54299ff2e94d2d2e65cd
[ "MIT" ]
2
2021-11-19T20:49:17.000Z
2021-11-19T20:49:26.000Z
spotdl/__main__.py
TLINDEN/spotdl-v4
30112816ff49e19f76fa54299ff2e94d2d2e65cd
[ "MIT" ]
1
2021-12-21T01:35:29.000Z
2021-12-21T01:35:29.000Z
from spotdl.console import console_entry_point from spotdl._version import __version__ if __name__ == "__main__": console_entry_point()
23.5
46
0.808511
99840e87813eca74f707798fbd679c5f6c5ed3ef
575
py
Python
webviz_config/generic_plugins/_example_assets.py
AlexanderSemenyak/webviz-config
3602901f215033bddd484ea1c13013a8addaf012
[ "MIT" ]
44
2019-04-07T18:46:00.000Z
2022-03-28T02:35:58.000Z
webviz_config/generic_plugins/_example_assets.py
AlexanderSemenyak/webviz-config
3602901f215033bddd484ea1c13013a8addaf012
[ "MIT" ]
312
2019-03-29T11:49:53.000Z
2022-03-07T12:06:34.000Z
webviz_config/generic_plugins/_example_assets.py
AlexanderSemenyak/webviz-config
3602901f215033bddd484ea1c13013a8addaf012
[ "MIT" ]
46
2019-03-29T07:23:16.000Z
2022-03-28T02:35:59.000Z
from pathlib import Path from dash import html from .. import WebvizPluginABC from ..webviz_assets import WEBVIZ_ASSETS class ExampleAssets(WebvizPluginABC): def __init__(self, picture_path: Path, css_path: Path = None, js_path: Path = None): super().__init__() self.asset_url = WEBVIZ_ASSETS.ad...
23.958333
88
0.678261
73ef07777ea34f1cec070b69587477e2e835acf3
11,661
py
Python
selfdrive/controls/lib/driver_monitor.py
joshuafuller/openpilot
9d9480832e8ecec0f52743eefb1a9c8981a21998
[ "MIT" ]
1
2020-09-03T05:35:03.000Z
2020-09-03T05:35:03.000Z
selfdrive/controls/lib/driver_monitor.py
joshuafuller/openpilot
9d9480832e8ecec0f52743eefb1a9c8981a21998
[ "MIT" ]
null
null
null
selfdrive/controls/lib/driver_monitor.py
joshuafuller/openpilot
9d9480832e8ecec0f52743eefb1a9c8981a21998
[ "MIT" ]
9
2020-06-02T16:45:10.000Z
2020-09-13T05:18:45.000Z
from common.numpy_fast import interp from math import atan2, sqrt from common.realtime import DT_DMON from selfdrive.controls.lib.drive_helpers import create_event, EventTypes as ET from common.filter_simple import FirstOrderFilter from common.stat_live import RunningStatFilter # **************************************...
44.507634
186
0.731241
b0a82312e5eb1dc21672a2a0cfcfc7a9895a86b8
5,189
py
Python
btk/catalog.py
b-biswas/BlendingToolKit
2e85da4df99a84bcdff1d85ed66eb8589eb72499
[ "MIT" ]
16
2018-12-08T07:51:49.000Z
2022-03-27T16:52:00.000Z
btk/catalog.py
b-biswas/BlendingToolKit
2e85da4df99a84bcdff1d85ed66eb8589eb72499
[ "MIT" ]
252
2018-10-29T20:23:40.000Z
2022-03-28T20:45:37.000Z
btk/catalog.py
b-biswas/BlendingToolKit
2e85da4df99a84bcdff1d85ed66eb8589eb72499
[ "MIT" ]
8
2019-01-02T07:40:59.000Z
2021-01-21T03:10:04.000Z
"""Contains abstract base class `Catalog` that standarizes catalog usage across BTK.""" import os from abc import ABC from abc import abstractmethod from copy import deepcopy import astropy.table import galsim import numpy as np class Catalog(ABC): """Abstract base class containing the catalog for BTK. Each...
34.364238
98
0.651763
f0357155d5bbb2d6573b32df9a5557154835d293
2,776
py
Python
events/models.py
abhi20161997/Oasis-17
80618af478beb256502bf1b6c05e0a22068577c9
[ "BSD-3-Clause" ]
null
null
null
events/models.py
abhi20161997/Oasis-17
80618af478beb256502bf1b6c05e0a22068577c9
[ "BSD-3-Clause" ]
null
null
null
events/models.py
abhi20161997/Oasis-17
80618af478beb256502bf1b6c05e0a22068577c9
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from django.db import models from ckeditor.fields import RichTextField from registrations.models import * from ems.models import * class Category(models.Model): name = models.CharField(max_length=100, unique=True) class Meta: verbose_name_plural = 'Categories' def...
36.051948
98
0.778458
a34a11e3c8af82c3ea556c741f201da0b2657f5b
1,959
py
Python
mlrose/opt_probs/max_k_color_opt.py
tapos/mlrose
821b9e50e5887e523091dfb03ed2f404cac18f33
[ "BSD-3-Clause" ]
null
null
null
mlrose/opt_probs/max_k_color_opt.py
tapos/mlrose
821b9e50e5887e523091dfb03ed2f404cac18f33
[ "BSD-3-Clause" ]
null
null
null
mlrose/opt_probs/max_k_color_opt.py
tapos/mlrose
821b9e50e5887e523091dfb03ed2f404cac18f33
[ "BSD-3-Clause" ]
null
null
null
""" Classes for defining optimization problem objects.""" # Author: Genevieve Hayes (modified by Andrew Rollings) # License: BSD 3 clause import numpy as np from mlrose.algorithms.crossovers import UniformCrossOver from mlrose.algorithms.mutators import ChangeOneMutator from mlrose.fitness import MaxKColor from mlro...
34.368421
98
0.65901
5c395b1cc055f3f904aee11528e327995b554df7
1,005
py
Python
.install/.backup/platform/gcutil/lib/google_compute_engine/gcutil_lib/mock_get_pass.py
bopopescu/google-cloud-sdk
b34e6a18f1e89673508166acce816111c3421e4b
[ "Apache-2.0" ]
null
null
null
.install/.backup/platform/gcutil/lib/google_compute_engine/gcutil_lib/mock_get_pass.py
bopopescu/google-cloud-sdk
b34e6a18f1e89673508166acce816111c3421e4b
[ "Apache-2.0" ]
null
null
null
.install/.backup/platform/gcutil/lib/google_compute_engine/gcutil_lib/mock_get_pass.py
bopopescu/google-cloud-sdk
b34e6a18f1e89673508166acce816111c3421e4b
[ "Apache-2.0" ]
1
2020-07-24T20:04:47.000Z
2020-07-24T20:04:47.000Z
# Copyright 2013 Google 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/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
31.40625
74
0.756219
34eb7a7ae670d3986e458314cca4dc0680c23c28
11,852
py
Python
test/test/facet/test_simulation.py
skandupmanyu/facet
545ade531ecfa617bad346ebef12955afa876cca
[ "Apache-2.0" ]
null
null
null
test/test/facet/test_simulation.py
skandupmanyu/facet
545ade531ecfa617bad346ebef12955afa876cca
[ "Apache-2.0" ]
null
null
null
test/test/facet/test_simulation.py
skandupmanyu/facet
545ade531ecfa617bad346ebef12955afa876cca
[ "Apache-2.0" ]
null
null
null
import logging import pandas as pd import pytest from pandas.testing import assert_series_equal from pytest import approx from sklearndf import TransformerDF from sklearndf.pipeline import RegressorPipelineDF from sklearndf.regression.extra import LGBMRegressorDF from facet.crossfit import LearnerCrossfit from facet...
29.853904
86
0.649426
85eefdabe76fcecd60e7cecb96770213232b9f5a
5,752
py
Python
env/lib/python3.7/site-packages/tests/attacks/test_threshold_attack.py
GU-DataLab/fairness-and-missing-values
36a900aa235d1d53bd57e11c89e3f73f9a585aca
[ "MIT" ]
1
2021-09-09T13:19:34.000Z
2021-09-09T13:19:34.000Z
env/lib/python3.7/site-packages/tests/attacks/test_threshold_attack.py
GU-DataLab/fairness-and-missing-values
36a900aa235d1d53bd57e11c89e3f73f9a585aca
[ "MIT" ]
10
2021-10-04T23:25:53.000Z
2022-03-24T23:20:38.000Z
tests/attacks/test_threshold_attack.py
guozfeng/adversarial-robustness-toolbox
4b9383d2e383ae49a0cd6c94e3c9cf7c3a584581
[ "MIT" ]
1
2021-09-09T13:19:35.000Z
2021-09-09T13:19:35.000Z
# MIT License # # Copyright (C) The Adversarial Robustness Toolbox (ART) Authors 2020 # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the Software without restriction, including without limitation the # r...
38.092715
120
0.690542
521270cdb03844122005145854503bb20a378d55
3,042
py
Python
scripts/genCertificate.py
salRoid/Dynamic-Certificate-Generator
01e7b0504badd085e53a78aaa1c78bd259c6a3c4
[ "MIT" ]
3
2020-12-30T13:45:43.000Z
2022-03-30T07:39:55.000Z
scripts/genCertificate.py
salRoid/Dynamic-Certificate-Generator
01e7b0504badd085e53a78aaa1c78bd259c6a3c4
[ "MIT" ]
null
null
null
scripts/genCertificate.py
salRoid/Dynamic-Certificate-Generator
01e7b0504badd085e53a78aaa1c78bd259c6a3c4
[ "MIT" ]
null
null
null
from PIL import Image, ImageDraw, ImageFont import pandas as pd import os import sys import json generationType = sys.argv[1] path = '/Users/salroid/Documents/GitHub/Dynamic-Certificate-Generator/' # Single or Bulk if (generationType == "Single") : certificateId = input("Enter certificate Id: ") pathCer...
42.25
121
0.552597
221154c57c033c41e12527c2e7f2b14e1d00eda6
36,287
py
Python
ramandecompy/peakidentify.py
kernb2/raman-spectra-decomp-analysis
9ee09021e8e57735209812b062607de7e123beea
[ "MIT" ]
14
2019-04-23T19:09:56.000Z
2022-03-19T16:51:41.000Z
ramandecompy/peakidentify.py
kernb2/raman-spectra-decomp-analysis
9ee09021e8e57735209812b062607de7e123beea
[ "MIT" ]
53
2019-04-23T19:55:35.000Z
2020-05-20T03:43:11.000Z
ramandecompy/peakidentify.py
kernb2/raman-spectra-decomp-analysis
9ee09021e8e57735209812b062607de7e123beea
[ "MIT" ]
10
2020-03-31T18:37:52.000Z
2022-02-12T23:14:16.000Z
"""This function takes in compounds from a hdf5 file, and, using spectrafit, identifies peaks found in both the fed-in known spectra, as well as the unknown spectra to be analyzed. From that identification, it then classifies the peaks in the unknown spectra based on the fed-in known spectra. """ import math import h5...
46.284439
113
0.605975
492d2bfa2830a6f58015c53e8c30328dd55d704a
10,469
py
Python
tests/test_accelerator.py
Accelize/apyfal
22dfe791e0956d3d3353daeba0c7a21dfe2f9b77
[ "Apache-2.0" ]
5
2018-09-23T23:15:06.000Z
2019-07-04T00:19:44.000Z
tests/test_accelerator.py
Accelize/apyfal
22dfe791e0956d3d3353daeba0c7a21dfe2f9b77
[ "Apache-2.0" ]
null
null
null
tests/test_accelerator.py
Accelize/apyfal
22dfe791e0956d3d3353daeba0c7a21dfe2f9b77
[ "Apache-2.0" ]
4
2018-07-17T08:39:41.000Z
2020-01-10T23:15:38.000Z
# coding=utf-8 """apyfal tests""" from collections import namedtuple import gc import sys from time import sleep import pytest def tests_version_check(): """Test version check presence and format""" # Ensure Apyfal not imported try: del sys.modules['apyfal'] except KeyError: pass ...
30.70088
78
0.627567
dd6b9795b6eb10e0a13840177a311d3d69e7722a
2,526
py
Python
SQL-sprint/northwind.py
matthew-sessions/DS-Unit-3-Sprint-2-SQL-and-Databases
768f4f61400980c51ab5aec66ff5ee0896445f10
[ "MIT" ]
null
null
null
SQL-sprint/northwind.py
matthew-sessions/DS-Unit-3-Sprint-2-SQL-and-Databases
768f4f61400980c51ab5aec66ff5ee0896445f10
[ "MIT" ]
null
null
null
SQL-sprint/northwind.py
matthew-sessions/DS-Unit-3-Sprint-2-SQL-and-Databases
768f4f61400980c51ab5aec66ff5ee0896445f10
[ "MIT" ]
null
null
null
import sqlite3 as sql3 conn = sql3.connect('northwind_small.sqlite3') curs = conn.cursor() def get_scalar_result(conn, sql): cursor=conn.cursor() cursor.execute(sql) return cursor.fetchall() productprice = 'select ProductName, UnitPrice from Product order by UnitPrice desc limit 10;' top10 = get_scalar_r...
34.135135
118
0.692003
e604f0fb696eebb53b57f908681ba694e391308f
6,939
py
Python
machine/predict_3c.py
jht0664/CNN_WR
41d97fe40efcb55477047d0718663f6544b38031
[ "MIT" ]
null
null
null
machine/predict_3c.py
jht0664/CNN_WR
41d97fe40efcb55477047d0718663f6544b38031
[ "MIT" ]
null
null
null
machine/predict_3c.py
jht0664/CNN_WR
41d97fe40efcb55477047d0718663f6544b38031
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # to load keras model, run evaluation, and get block averages due to copied ensembles # ver 2.4 - three classes prediction import argparse parser = argparse.ArgumentParser( formatter_class=argparse.ArgumentDefaultsHelpFormatter, description='get result of machine learning for evaluation ...
41.801205
113
0.710333
7d83789a0b06ebd58e1462724f7944f0aeaca262
857
py
Python
Twitter/Collect_Tweet_into_Text.py
xbwei/Data-Mining-on-Social-Media
b65182bb14245f975e319a6a28aec452eabb7644
[ "MIT" ]
91
2016-11-29T19:48:24.000Z
2022-03-26T21:45:15.000Z
Twitter/Collect_Tweet_into_Text.py
xbwei/GetTwitter
b65182bb14245f975e319a6a28aec452eabb7644
[ "MIT" ]
1
2017-10-27T22:15:57.000Z
2017-10-27T22:15:57.000Z
Twitter/Collect_Tweet_into_Text.py
xbwei/Data-Mining-on-Social-Media
b65182bb14245f975e319a6a28aec452eabb7644
[ "MIT" ]
73
2016-11-09T10:08:47.000Z
2022-03-26T21:45:21.000Z
''' Created on Mar 31, 2017 @author: xuebin wei www.lbsocial.net ''' import twitter from pprint import pprint ''' OAuth ''' CONSUMER_KEY = "" CONSUMER_SECRET = "" OAUTH_TOKEN = "" OATH_TOKEN_SECRET = "" auth = twitter.oauth.OAuth(OAUTH_TOKEN,OATH_TOKEN_SECRET,CONSUMER_KEY,CONSUMER_SECRET) twitter_api...
16.169811
86
0.609102
2021fc269fd7ee7081f93ccb8935a902a9d11b10
4,110
py
Python
pretrain/model.py
lbe0613/GCC
17b9f63a51783f33114c23659ea1645aaa126340
[ "MIT" ]
null
null
null
pretrain/model.py
lbe0613/GCC
17b9f63a51783f33114c23659ea1645aaa126340
[ "MIT" ]
1
2021-11-19T13:38:50.000Z
2021-11-24T14:11:15.000Z
pretrain/model.py
lbe0613/GCC
17b9f63a51783f33114c23659ea1645aaa126340
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch.nn import CrossEntropyLoss from utils.Bert import BertForMaskedLM class Net(BertForMaskedLM): def __init__(self, config): super().__init__(config) self.stru_embeddings = nn.Embedding(15, config.hidden_size) self.s...
39.519231
123
0.655961
65984b00910faedbe9983245ecf4a93d68e526c8
935
py
Python
gym_minigrid/envs/__init__.py
eleurent/gym-minigrid
ad8097dfbb229b8fa8b46fa5a1b23a1af3ac5c54
[ "BSD-3-Clause" ]
null
null
null
gym_minigrid/envs/__init__.py
eleurent/gym-minigrid
ad8097dfbb229b8fa8b46fa5a1b23a1af3ac5c54
[ "BSD-3-Clause" ]
null
null
null
gym_minigrid/envs/__init__.py
eleurent/gym-minigrid
ad8097dfbb229b8fa8b46fa5a1b23a1af3ac5c54
[ "BSD-3-Clause" ]
1
2022-01-11T21:04:37.000Z
2022-01-11T21:04:37.000Z
from gym_minigrid.envs.empty import * from gym_minigrid.envs.doorkey import * from gym_minigrid.envs.multiroom import * from gym_minigrid.envs.fetch import * from gym_minigrid.envs.gotoobject import * from gym_minigrid.envs.gotodoor import * from gym_minigrid.envs.putnear import * from gym_minigrid.envs.lockedroom impo...
40.652174
51
0.835294
fb48c855cf43d51c4bc263237ea308d87f4e5e90
4,405
py
Python
aurum_etl_ndorms/1_load_source_data.py
OHDSI/ETL-LambdaBuilder
2a4e51beb3b450d1986adf49b3a295759781733f
[ "Apache-2.0" ]
3
2020-09-26T20:39:36.000Z
2022-02-01T23:08:05.000Z
aurum_etl_ndorms/1_load_source_data.py
OHDSI/ETL-LambdaBuilder
2a4e51beb3b450d1986adf49b3a295759781733f
[ "Apache-2.0" ]
6
2020-06-30T03:50:52.000Z
2022-01-22T19:15:21.000Z
aurum_etl_ndorms/1_load_source_data.py
OHDSI/ETL-LambdaBuilder
2a4e51beb3b450d1986adf49b3a295759781733f
[ "Apache-2.0" ]
8
2019-12-09T15:30:32.000Z
2022-02-03T18:53:34.000Z
import os import sys import psycopg2 as sql from importlib import import_module db_conf = import_module('0_postgres_db_conf',os.getcwd() + '\\0_postgres_db_conf.py').db_conf log = import_module('write_log', os.getcwd() + '\\write_log.py').Log('1_load_source_data') source_data_directory = db_conf['source_data_dire...
47.365591
164
0.689898
bb06c839c508627d735b991557ceda090e023e92
216
py
Python
SciComputing with Python/lesson_06-05/D4Q1(1).py
evtodorov/aerospace
54a1b58c3c0b02c0eaa3aef14d0e732d7f867566
[ "MIT" ]
null
null
null
SciComputing with Python/lesson_06-05/D4Q1(1).py
evtodorov/aerospace
54a1b58c3c0b02c0eaa3aef14d0e732d7f867566
[ "MIT" ]
null
null
null
SciComputing with Python/lesson_06-05/D4Q1(1).py
evtodorov/aerospace
54a1b58c3c0b02c0eaa3aef14d0e732d7f867566
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt x = np.linspace(0,9,901) # or: x = np.arange(0,9.01,0.01) y2 = x*x y3 = x*x*x #or: y2 = x**2 y3 = x**3 plt.plot(x,y2,'r.') plt.plot(x,y3,'b+') plt.show()
11.368421
32
0.574074
42566713c420bed7ab03f707561d4a4ed99a5469
4,530
py
Python
listcurator/test/testaddkeyscomments.py
deeso/python-listcurator
238bbc45eb53f93f3c01a9b2052938e598770dd1
[ "Apache-2.0" ]
null
null
null
listcurator/test/testaddkeyscomments.py
deeso/python-listcurator
238bbc45eb53f93f3c01a9b2052938e598770dd1
[ "Apache-2.0" ]
null
null
null
listcurator/test/testaddkeyscomments.py
deeso/python-listcurator
238bbc45eb53f93f3c01a9b2052938e598770dd1
[ "Apache-2.0" ]
null
null
null
import unittest, time import web, argparse, os, logging, sys from multiprocessing import Process import web, argparse, os, logging, sys from ..client.listcurator import * from ..service.listcurator import * from sqlalchemy import * PORT = 45005 HOST = '0.0.0.0' ML_SAVE_DIR = 'managed_lists' SAVE_DIR = os.path.join(os...
32.12766
112
0.623841
b21a2aff9f2754dc6544ed389afdecf9bb40b840
851
py
Python
extract_corpus.py
EuromovDHM-SemTaxM/kit-mld-ke
fadcd1fe8c09d43417c6e9daf4d8ab915e81c252
[ "Apache-2.0" ]
null
null
null
extract_corpus.py
EuromovDHM-SemTaxM/kit-mld-ke
fadcd1fe8c09d43417c6e9daf4d8ab915e81c252
[ "Apache-2.0" ]
null
null
null
extract_corpus.py
EuromovDHM-SemTaxM/kit-mld-ke
fadcd1fe8c09d43417c6e9daf4d8ab915e81c252
[ "Apache-2.0" ]
null
null
null
import sys from argparse import ArgumentParser if __name__ == "__main__": argv = sys.argv[1:] parser = ArgumentParser() if len(argv) == 0: parser.print_help() parser.exit(1) parser.add_argument("dataset_path", type=str, help="Path to the directory containing the...
50.058824
119
0.596945
7bdecfe7d1fea382ad72367abc963c553a7e8ae8
11,416
py
Python
pybind/slxos/v16r_1_00b/overlay_transit/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/overlay_transit/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/overlay_transit/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
69.609756
917
0.736598
7a2bfb41ac94c22b20d7aeca8b3b4a0da74930f4
655
py
Python
fhcrc_pathology/PathStageSystem.py
LabKey/argos_nlp
1ad88d91809bcda04769c4ef10684bbbad4d9135
[ "Apache-2.0" ]
null
null
null
fhcrc_pathology/PathStageSystem.py
LabKey/argos_nlp
1ad88d91809bcda04769c4ef10684bbbad4d9135
[ "Apache-2.0" ]
null
null
null
fhcrc_pathology/PathStageSystem.py
LabKey/argos_nlp
1ad88d91809bcda04769c4ef10684bbbad4d9135
[ "Apache-2.0" ]
1
2019-12-04T16:36:55.000Z
2019-12-04T16:36:55.000Z
'''author@esilgard''' # # Copyright (c) 2015-2016 Fred Hutchinson Cancer Research Center # # Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 # from OneFieldPerReport import OneFieldPerReport import global_strings as gb class PathStageSystem(OneFieldPerReport): ''' extrac...
31.190476
92
0.682443
c3f480400abdcf466e8110b3f612be87e4aade3a
6,827
py
Python
research/object_detection/train.py
lyp-deeplearning/models
578107ffee421896cc43f5bd5357e2bb870169e5
[ "Apache-2.0" ]
1
2018-09-04T06:45:31.000Z
2018-09-04T06:45:31.000Z
research/object_detection/train.py
lyp-deeplearning/models
578107ffee421896cc43f5bd5357e2bb870169e5
[ "Apache-2.0" ]
null
null
null
research/object_detection/train.py
lyp-deeplearning/models
578107ffee421896cc43f5bd5357e2bb870169e5
[ "Apache-2.0" ]
null
null
null
# 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...
36.508021
80
0.683463
72280f7d23483c0ad10b57ed49ea5ef7f6fe3d37
13,089
py
Python
omtk/libs/libCtrlShapes.py
renaudll/omtk
a7740d53a5587529773594bfd7c37e553787028f
[ "MIT" ]
20
2015-09-30T16:07:02.000Z
2022-03-12T06:57:59.000Z
omtk/libs/libCtrlShapes.py
nilouco/omtk
a7740d53a5587529773594bfd7c37e553787028f
[ "MIT" ]
23
2015-12-22T15:41:02.000Z
2018-04-13T02:52:41.000Z
omtk/libs/libCtrlShapes.py
nilouco/omtk
a7740d53a5587529773594bfd7c37e553787028f
[ "MIT" ]
13
2015-07-10T16:06:26.000Z
2021-08-21T20:09:41.000Z
import pymel.core as pymel from maya import OpenMaya from maya import cmds from omtk.libs import libRigging def create_shape_circle(size=1.0, normal=(1, 0, 0), *args, **kwargs): transform, make = pymel.circle(*args, **kwargs) make.radius.set(size) make.normal.set(normal) # Expose the rotateOrder t...
30.943262
320
0.595767
4287843ca1a48456f3018d2f29c9351aee777caa
572
py
Python
models/logistic_regression.py
msk-mind/luna-ml
a4ef02c5f64e83b55a9d244e04fd1ef01d604bf6
[ "Apache-2.0" ]
null
null
null
models/logistic_regression.py
msk-mind/luna-ml
a4ef02c5f64e83b55a9d244e04fd1ef01d604bf6
[ "Apache-2.0" ]
null
null
null
models/logistic_regression.py
msk-mind/luna-ml
a4ef02c5f64e83b55a9d244e04fd1ef01d604bf6
[ "Apache-2.0" ]
null
null
null
import torch from torch import nn from utils import get_state_dict_from_git_tag class LogisticRegression(nn.Module): def __init__(self) -> None: super(LogisticRegression, self).__init__() self.lin1 = nn.Linear(100, 1) self.sigmoid = nn.Sigmoid() def forward(self, input): return...
30.105263
60
0.715035
998e005291b0e8557fb17f7be12eec2ed46d0268
1,417
py
Python
config/configuration.py
danielggarcia/selenium-scaffold
8bce9ed42d75793d4393d6d4f52543386b25678e
[ "Apache-2.0" ]
null
null
null
config/configuration.py
danielggarcia/selenium-scaffold
8bce9ed42d75793d4393d6d4f52543386b25678e
[ "Apache-2.0" ]
null
null
null
config/configuration.py
danielggarcia/selenium-scaffold
8bce9ed42d75793d4393d6d4f52543386b25678e
[ "Apache-2.0" ]
null
null
null
# Copyright [2021] [Daniel Garcia <contacto {at} danigarcia.org>] # # 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 require...
34.560976
117
0.706422
93b6f88e22311b4267ea4ffa28ff5f37835d2259
1,932
py
Python
server/libs/effects/effect_fade.py
teemosauce/rpi-cube
6fd8cff81da5efe87fe4c911ce4b067644ea266f
[ "MIT" ]
195
2019-12-26T11:19:27.000Z
2022-03-28T04:20:34.000Z
server/libs/effects/effect_fade.py
teemosauce/rpi-cube
6fd8cff81da5efe87fe4c911ce4b067644ea266f
[ "MIT" ]
144
2019-09-07T19:10:13.000Z
2022-03-30T07:24:02.000Z
server/libs/effects/effect_fade.py
teemosauce/rpi-cube
6fd8cff81da5efe87fe4c911ce4b067644ea266f
[ "MIT" ]
51
2019-12-02T00:13:47.000Z
2022-03-29T17:26:47.000Z
from libs.effects.effect import Effect # pylint: disable=E0611, E0401 import numpy as np class EffectFade(Effect): def run(self): # Get the config of the current effect. effect_config = self.get_effect_config("effect_fade") # Prepare the required config inside local variables to enhance...
37.882353
118
0.671325
863eb55ecce6a3c66f0ff2edc1a51ae55370a804
818
py
Python
src/csv_time.py
alepuzio/calculate-priority-activities
6f2f9e8ddc499c2f0e80b2efe13702756646ba6f
[ "MIT" ]
null
null
null
src/csv_time.py
alepuzio/calculate-priority-activities
6f2f9e8ddc499c2f0e80b2efe13702756646ba6f
[ "MIT" ]
null
null
null
src/csv_time.py
alepuzio/calculate-priority-activities
6f2f9e8ddc499c2f0e80b2efe13702756646ba6f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Module csvtime Object about the management of the data about the project and time """ from datetime import date from datetime import datetime from .personal_logging import PersonalLogging class CSVTime: """@overview: this class contains the single row of time file""" def __init__(sel...
27.266667
108
0.636919
f99b46b94e599b606e1eddd68a91da21ece3f0d4
3,248
py
Python
SimplePasswordManagerBackend/working.py
The-Coding-Jungle/SimplePasswordManagerBackend
34cabc31ddf53a603caccccbd81f0485b58c5e9b
[ "MIT" ]
8
2021-09-14T14:57:26.000Z
2021-12-28T12:28:19.000Z
SimplePasswordManagerBackend/working.py
The-Coding-Jungle/SimplePasswordManagerBackend
34cabc31ddf53a603caccccbd81f0485b58c5e9b
[ "MIT" ]
null
null
null
SimplePasswordManagerBackend/working.py
The-Coding-Jungle/SimplePasswordManagerBackend
34cabc31ddf53a603caccccbd81f0485b58c5e9b
[ "MIT" ]
2
2021-09-14T14:58:01.000Z
2021-09-14T14:58:38.000Z
''' 1. Do the login 2. If the login is successful, use the working class 3. Else, no access allowed. ''' import sqlite3 from .setup import fileName from .Encryption import * class Working: def __init__(self, primaryPassword: str): self.conn = sqlite3.connect(fileName) self.cur = self.conn.cursor(...
39.13253
205
0.588054
ba94f978f80c22cc0f23ce6cbf214af231a3758e
1,886
py
Python
api/crosssell/CrossSell.py
ClayAssis/HEALTH-INSURANCE-CROSS-SELL-PREDICTION
58bac40dcadb2362d5d8e34432d9449f8da61847
[ "MIT" ]
3
2021-03-05T01:24:48.000Z
2021-11-12T08:45:34.000Z
api/crosssell/CrossSell.py
juniorcl/health-insurance-cross-sell
ccc87c2434515a76033d300318c88ad32ac9e4e9
[ "MIT" ]
null
null
null
api/crosssell/CrossSell.py
juniorcl/health-insurance-cross-sell
ccc87c2434515a76033d300318c88ad32ac9e4e9
[ "MIT" ]
null
null
null
import joblib import inflection import numpy as np import pandas as pd from scipy import stats class CrossSell: def __init__(self): self.ohe = joblib.load('../functions/one_hot_encoder_cycle1.joblib') self.te = joblib.load('../functions/target_encoder_cycle1.joblib') self.ss = joblib....
34.290909
90
0.625133
c4f6f366e66f3227e736a0dfb788b77856608616
702
py
Python
raspberry-pi/singlerun/dni.py
OpenSourceProtogenCollection/OpenSourceProtogenCollection
23b69dd90cb7b3aa56b612ff19e0f09cc68e4858
[ "MIT" ]
6
2021-02-08T20:05:50.000Z
2022-03-18T22:03:41.000Z
raspberry-pi/singlerun/dni.py
OpenSourceProtogenCollection/OpenSourceProtogenCollection
23b69dd90cb7b3aa56b612ff19e0f09cc68e4858
[ "MIT" ]
3
2020-06-27T17:05:49.000Z
2022-01-06T10:52:50.000Z
raspberry-pi/singlerun/dni.py
OpenSourceProtogenCollection/OpenSourceProtogenCollection
23b69dd90cb7b3aa56b612ff19e0f09cc68e4858
[ "MIT" ]
2
2021-03-27T15:41:22.000Z
2021-12-08T18:09:09.000Z
#!/usr/bin/env python3 import serial from gpiozero import Button import os import random # input pin declarations begin here # use syntax name = Button(bcmPinNumber, bounce_time=1) # find BCM pin numbers at https://pinout.xyz dniPin = Button(1, bounce_time=1) # USB declarations begin here visorEyes = serial.Serial('/...
28.08
91
0.732194
59977dcb435a88cacc9b23d7d2a0094938356822
27,812
py
Python
python/pyspark/streaming/dstream.py
yqtaowhu/Spark
a381bce7285ec30f58f28f523dfcfe0c13221bbf
[ "Apache-2.0" ]
675
2016-12-21T00:15:05.000Z
2022-03-31T07:15:59.000Z
python/pyspark/streaming/dstream.py
yqtaowhu/Spark
a381bce7285ec30f58f28f523dfcfe0c13221bbf
[ "Apache-2.0" ]
607
2016-12-12T21:56:43.000Z
2019-11-14T22:21:06.000Z
python/pyspark/streaming/dstream.py
yqtaowhu/Spark
a381bce7285ec30f58f28f523dfcfe0c13221bbf
[ "Apache-2.0" ]
168
2017-01-12T00:47:04.000Z
2021-12-02T08:08:10.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 us...
43.052632
100
0.62847
ead8fb589aa52930391a5dd70bebc74e263fecf1
289
py
Python
helper/caturl.py
laymonage/AidenBot
26a6aeaeb978c79bcbeab286c4d33c18743e1e33
[ "MIT" ]
5
2018-07-25T09:45:26.000Z
2020-04-10T21:25:50.000Z
helper/caturl.py
laymonage/AidenBot
26a6aeaeb978c79bcbeab286c4d33c18743e1e33
[ "MIT" ]
11
2018-01-15T07:47:45.000Z
2019-10-03T08:21:42.000Z
helper/caturl.py
laymonage/AidenBot
26a6aeaeb978c79bcbeab286c4d33c18743e1e33
[ "MIT" ]
3
2018-12-24T20:06:11.000Z
2019-01-06T19:04:23.000Z
""" TheCatAPI helper module. (c) 2018 - laymonage """ import requests def cat(): """Return a link to a random cat pic from thecatapi.com.""" url = 'http://thecatapi.com/api/images/get' req = requests.get(url) url = req.url.replace('http://', 'https://') return url
18.0625
63
0.619377
fae454485d67da3d78815b8c13aaa94d086bc861
188
py
Python
HiggsAnalysis/Skimming/python/higgsToTauTau_LeptonTau_SkimPaths_cff.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
6
2017-09-08T14:12:56.000Z
2022-03-09T23:57:01.000Z
HiggsAnalysis/Skimming/python/higgsToTauTau_LeptonTau_SkimPaths_cff.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
545
2017-09-19T17:10:19.000Z
2022-03-07T16:55:27.000Z
HiggsAnalysis/Skimming/python/higgsToTauTau_LeptonTau_SkimPaths_cff.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
14
2017-10-04T09:47:21.000Z
2019-10-23T18:04:45.000Z
import FWCore.ParameterSet.Config as cms from HiggsAnalysis.Skimming.higgsToTauTau_LeptonTau_Sequences_cff import * higgsToTauTauLeptonTauPath = cms.Path(higgsToTauTauLeptonTauSequence)
31.333333
74
0.882979
f58d401c532a1db64199d6edad71fbc2bab593b3
463
py
Python
data_models/data_refinery_models/migrations/0004_auto_20170927_2003.py
dongbohu/ccdl_test
be50b7ca35fba28676b594ba3f003b0b581abcb7
[ "BSD-3-Clause" ]
null
null
null
data_models/data_refinery_models/migrations/0004_auto_20170927_2003.py
dongbohu/ccdl_test
be50b7ca35fba28676b594ba3f003b0b581abcb7
[ "BSD-3-Clause" ]
3
2020-06-05T17:18:10.000Z
2021-06-10T20:55:12.000Z
data_models/data_refinery_models/migrations/0004_auto_20170927_2003.py
dongbohu/ccdl_test
be50b7ca35fba28676b594ba3f003b0b581abcb7
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-09-27 20:03 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('data_refinery_models', '0003_auto_20170809_2038'), ] operations = [ migrati...
22.047619
60
0.62851
b79d83dcdb63c1b79defe34cf4dea4561e99b2f5
84
py
Python
python/testData/mover/multiLineSelectionDifferentLevelsMoveOutFromFunction_afterDown.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
python/testData/mover/multiLineSelectionDifferentLevelsMoveOutFromFunction_afterDown.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
python/testData/mover/multiLineSelectionDifferentLevelsMoveOutFromFunction_afterDown.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
def func(): pass <caret><selection>n = 0 while n: print("spam")</selection>
14
29
0.607143
a40af42bf3b67c37cfd1656a9a673646aac31950
1,062
py
Python
CodeMixed-Text-Generator/utils/spf_sampling.py
mohdsanadzakirizvi/CodeMixed-Text-Generator
47740eeff3ecb46f5294711f4fe5d3a03a6e0b54
[ "MIT" ]
16
2021-06-03T07:16:15.000Z
2022-03-24T13:07:31.000Z
CodeMixed-Text-Generator/utils/spf_sampling.py
mohdsanadzakirizvi/CodeMixed-Text-Generator
47740eeff3ecb46f5294711f4fe5d3a03a6e0b54
[ "MIT" ]
6
2021-06-30T12:06:33.000Z
2022-02-10T04:49:10.000Z
CodeMixed-Text-Generator/utils/spf_sampling.py
mohdsanadzakirizvi/CodeMixed-Text-Generator
47740eeff3ecb46f5294711f4fe5d3a03a6e0b54
[ "MIT" ]
4
2021-07-04T14:21:56.000Z
2021-08-23T19:55:06.000Z
import math from .rcm_std_mean import switchpoint_u def create_pdf(x, mean, std): ''' PDF value of a normal distribution from mean and std of SPF of the RCM input corpus ''' var = float(std)**2 denom = (2*math.pi*var)**.5 num = math.exp(-(float(x)-float(mean))**2/(2*var)) return num/denom ...
27.947368
87
0.611111
f9215f041079c2187db4a9166f589896a8c6aaf1
102,715
py
Python
scaffoldmaker/meshtypes/meshtype_3d_heartventriclesbase2.py
alan-wu/scaffoldmaker
78222df90f69e8d2f167deb0c4d99d463067bda6
[ "Apache-2.0" ]
null
null
null
scaffoldmaker/meshtypes/meshtype_3d_heartventriclesbase2.py
alan-wu/scaffoldmaker
78222df90f69e8d2f167deb0c4d99d463067bda6
[ "Apache-2.0" ]
null
null
null
scaffoldmaker/meshtypes/meshtype_3d_heartventriclesbase2.py
alan-wu/scaffoldmaker
78222df90f69e8d2f167deb0c4d99d463067bda6
[ "Apache-2.0" ]
null
null
null
""" Generates a 3-D heart ventricles with base plane model, ready to attach the atria, mitral and tricuspid valves, with LV + RV outlets ready to attach aorta and pulmonary trunk and their valve regions. """ from __future__ import division import math from scaffoldmaker.annotation.annotationgroup import AnnotationGrou...
69.684532
205
0.610865
3dcf5227f597fad0cb89ae879d5449a08fa370a4
1,988
py
Python
api/app/services/author.py
CHSevero/ZipBank-book-api
72c1bf62a182cfc40e5c9d8169662ea0af370d2f
[ "MIT" ]
null
null
null
api/app/services/author.py
CHSevero/ZipBank-book-api
72c1bf62a182cfc40e5c9d8169662ea0af370d2f
[ "MIT" ]
null
null
null
api/app/services/author.py
CHSevero/ZipBank-book-api
72c1bf62a182cfc40e5c9d8169662ea0af370d2f
[ "MIT" ]
null
null
null
from app.models.author import Author as ModelAuthor from app.schemas.author import Author as SchemaAuthor from fastapi_sqlalchemy import db from fastapi.encoders import jsonable_encoder from dicttoxml import dicttoxml from app.utils.pagination import paginate def add_author(author: SchemaAuthor): db_author = Mode...
30.121212
67
0.674044
c805c297d5abb96fb60c69796d0258896ec18c06
112
py
Python
exercises/soln/italicstr.py
kaishuocheng/jupyter
96ae75723eb62d30cb02768295422898aace79ef
[ "BSD-3-Clause" ]
748
2015-01-05T05:48:49.000Z
2022-02-27T01:05:42.000Z
exercises/soln/italicstr.py
kaishuocheng/jupyter
96ae75723eb62d30cb02768295422898aace79ef
[ "BSD-3-Clause" ]
32
2015-04-02T22:25:41.000Z
2022-01-18T05:31:46.000Z
exercises/soln/italicstr.py
kaishuocheng/jupyter
96ae75723eb62d30cb02768295422898aace79ef
[ "BSD-3-Clause" ]
816
2015-01-04T04:19:15.000Z
2022-03-17T20:57:19.000Z
class ItalicStr(str): def _repr_html_(self): return '<i>%s</i>' % self ItalicStr('Hello World')
22.4
33
0.598214
c482f2527013d4fdea62aecb8608ae12f6959d5c
2,040
py
Python
tests/tests.py
JavonDavis/QGenPY
f1c651836bc5026fe76f7ec0d295a361d5611854
[ "MIT" ]
3
2016-03-29T12:06:13.000Z
2016-04-15T22:10:07.000Z
tests/tests.py
JavonDavis/QGenPY
f1c651836bc5026fe76f7ec0d295a361d5611854
[ "MIT" ]
18
2016-04-02T17:44:22.000Z
2016-05-19T22:40:42.000Z
tests/tests.py
JavonDavis/QGenPY
f1c651836bc5026fe76f7ec0d295a361d5611854
[ "MIT" ]
1
2016-04-02T22:00:26.000Z
2016-04-02T22:00:26.000Z
import os import sys import unittest import qgen from qgen.built_in_functions import built_in_functions as built_in from qgen.qgen_exceptions import InvalidConfigException sys.path.insert(0, os.path.abspath('..')) sys.path.insert(0, os.getcwd()) TEST_IMPORTS_YML_PATH = os.getcwd() + "/tests/test_imports.yml" TEST_SI...
35.789474
120
0.74902
e969f43fd59a9591e9758b43e8b152bda128b9b8
4,029
py
Python
services/search/search_engine.py
jaimehisao/major-tom
e991616deb6fc6d86ff3752c4b2136578b3d11f3
[ "Apache-2.0" ]
6
2020-07-15T18:28:38.000Z
2021-04-20T13:39:26.000Z
services/search/search_engine.py
jaimehisao/major-tom
e991616deb6fc6d86ff3752c4b2136578b3d11f3
[ "Apache-2.0" ]
61
2020-07-20T21:52:59.000Z
2021-06-18T16:53:34.000Z
services/search/search_engine.py
jaimehisao/major-tom
e991616deb6fc6d86ff3752c4b2136578b3d11f3
[ "Apache-2.0" ]
10
2020-07-17T21:44:09.000Z
2021-04-26T22:53:33.000Z
import logging import requests # pylint: disable=import-error import constants import synonym_extractor import env class SearchEngine: """ This class implements the functions to score every article by the amount of incidences between keywords and synonyms to articles Attributes: keywords: A ...
34.732759
96
0.650534
248103a6cd73304b26db04da5df2f1f45bd89d68
9,063
py
Python
python/dllib/src/bigdl/dllib/feature/image/imageset.py
DirkFi/BigDL
7493209165c046116470b9a1e1c8f527915d6f1e
[ "Apache-2.0" ]
3
2021-07-14T01:28:47.000Z
2022-03-02T01:16:32.000Z
python/dllib/src/bigdl/dllib/feature/image/imageset.py
DirkFi/BigDL
7493209165c046116470b9a1e1c8f527915d6f1e
[ "Apache-2.0" ]
null
null
null
python/dllib/src/bigdl/dllib/feature/image/imageset.py
DirkFi/BigDL
7493209165c046116470b9a1e1c8f527915d6f1e
[ "Apache-2.0" ]
null
null
null
# # Copyright 2016 The BigDL 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 agreed to in ...
41.195455
99
0.63522
4e357d6a8495b33f76e9d0b00810aaec51a8c306
810
py
Python
Tutorial/Code/8. Array Iterating.py
Deve-BlackHeart/Numpy
92fac54bc69b0077bd16dbcc9028196c93f0d19f
[ "MIT" ]
1
2022-01-23T05:34:45.000Z
2022-01-23T05:34:45.000Z
Tutorial/Code/8. Array Iterating.py
Deve-BlackHeart/Numpy
92fac54bc69b0077bd16dbcc9028196c93f0d19f
[ "MIT" ]
null
null
null
Tutorial/Code/8. Array Iterating.py
Deve-BlackHeart/Numpy
92fac54bc69b0077bd16dbcc9028196c93f0d19f
[ "MIT" ]
null
null
null
import numpy as np arr = np.array([1, 2, 3, 4, 5]) for i in arr: print(i) arr = np.array([ [1, 2, 3], [4, 5, 6], [7, 8, 9] ]) for i in arr: print(i) for j in i: print(j) arr = np.array([ [[11, 22, 33], [44, 55, 66]], [[77, 88, 99], [10, 20, 30]], [[12, 13, 14], [15, 16, 17]] ]) for a in arr: pr...
12.65625
63
0.48642
64c8285222f1c2929c28070b4e1f6795d2330725
3,947
py
Python
userbot/modules/song.py
bambank9/Simple-Userbot
b1a1447c122cfac4afdeb4e25db9ac6660816098
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/song.py
bambank9/Simple-Userbot
b1a1447c122cfac4afdeb4e25db9ac6660816098
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/song.py
bambank9/Simple-Userbot
b1a1447c122cfac4afdeb4e25db9ac6660816098
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2021-06-23T04:13:00.000Z
2021-06-23T04:13:00.000Z
import json import os import pybase64 from telethon.tl.functions.channels import JoinChannelRequest from telethon.tl.types import DocumentAttributeAudio from youtube_dl import YoutubeDL from youtube_dl.utils import ( ContentTooShortError, DownloadError, ExtractorError, GeoRestrictedError, MaxDownlo...
31.325397
122
0.597922
b11f60d81919cf706c3e8715b8df7d34e4679d20
1,950
py
Python
spxinclude/gitremote.py
tmerello2001/spxinclude
801cc6c9750f76ba03e48ecb73d552571c881e4f
[ "MIT" ]
null
null
null
spxinclude/gitremote.py
tmerello2001/spxinclude
801cc6c9750f76ba03e48ecb73d552571c881e4f
[ "MIT" ]
null
null
null
spxinclude/gitremote.py
tmerello2001/spxinclude
801cc6c9750f76ba03e48ecb73d552571c881e4f
[ "MIT" ]
null
null
null
#!/bin/python3 # coding: utf-8 import os from shutil import rmtree from sphinx.directives.other import BaseInclude, SphinxDirective from sphinx.util import logging from git import Repo from spxinclude import __version__ logger = logging.getLogger(__name__) class GitRemoteInclude(BaseInclude, SphinxDirective): ...
27.083333
72
0.615897
b42944a878614c9687920fad384090abc45a84e8
21,105
py
Python
edivorce/apps/core/utils/derived.py
molund/eDivorce
ab43ef42623c74ff20304f7be097991f2d2ff10a
[ "Apache-2.0" ]
1
2019-08-30T07:02:35.000Z
2019-08-30T07:02:35.000Z
edivorce/apps/core/utils/derived.py
dominikszopa/eDivorce
fe6ec52def72f53c69b697f3088996d90d1975d0
[ "Apache-2.0" ]
null
null
null
edivorce/apps/core/utils/derived.py
dominikszopa/eDivorce
fe6ec52def72f53c69b697f3088996d90d1975d0
[ "Apache-2.0" ]
1
2020-08-14T16:54:28.000Z
2020-08-14T16:54:28.000Z
# pylint: disable=W0613,C0103 """Values derived from a user's responses. This module provides functions to take a set of responses from a user and create a set of derived values that are consistent with the user's responses. This is done, in part, to centralize the logic for getting such derived values (such as wheth...
29.600281
122
0.679507
06bf0cf7376f477e79cdaf397ffd260cf8088243
134
py
Python
scrcpy/__init__.py
IanVzs/py-muti-scrcpy
b57149e4befde425b0a49f3956252ee3c5684a70
[ "MIT" ]
1
2022-03-25T09:23:04.000Z
2022-03-25T09:23:04.000Z
scrcpy/__init__.py
IanVzs/py-muti-scrcpy
b57149e4befde425b0a49f3956252ee3c5684a70
[ "MIT" ]
null
null
null
scrcpy/__init__.py
IanVzs/py-muti-scrcpy
b57149e4befde425b0a49f3956252ee3c5684a70
[ "MIT" ]
null
null
null
""" Python Scrcpy Client's core module """ from .const import * from .core import Client from .muti_core import Client as MutiClient
16.75
43
0.753731
463a90d5fc282556024ca8369fc912172501b0f1
3,023
py
Python
plot.py
jidicula/fluoratio
46d7b4334b6cc1bac02ce1e001f6a6d3b493f148
[ "Apache-2.0" ]
null
null
null
plot.py
jidicula/fluoratio
46d7b4334b6cc1bac02ce1e001f6a6d3b493f148
[ "Apache-2.0" ]
5
2018-05-31T03:28:19.000Z
2018-07-08T01:38:00.000Z
plot.py
jidicula/fluoratio
46d7b4334b6cc1bac02ce1e001f6a6d3b493f148
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Johanan Idicula # 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, so...
32.858696
84
0.618922
40e17b977e6be57751e486221f9cbb691e9747ec
480
py
Python
array/KoroEatingBanana.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
array/KoroEatingBanana.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
array/KoroEatingBanana.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
class Solution: def minEatingSpeed(self, piles, H): """ :type piles: List[int] :type H: int :rtype: int """ # Binary Search def isOK(K): return sum((p-1)//K + 1 for p in piles) <= H low, high = 1, max(piles) while low < high: ...
24
56
0.40625
6615a6633d7472782ba95c4ecb11d26d3b4a0cb6
659
py
Python
motion_detector.py
shubhamchandani/Machine_learning
7a1ab849debe9a8578bf849b5d337683c1e3023d
[ "Apache-2.0" ]
null
null
null
motion_detector.py
shubhamchandani/Machine_learning
7a1ab849debe9a8578bf849b5d337683c1e3023d
[ "Apache-2.0" ]
null
null
null
motion_detector.py
shubhamchandani/Machine_learning
7a1ab849debe9a8578bf849b5d337683c1e3023d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import cv2 def imgdiff(x,y,z): img1=cv2.absdiff(x,y) img2=cv2.absdiff(y,z) com_diff=cv2.bitwise_and(img1,img2) return (com_diff) cap = cv2.VideoCapture(0) frame1=cap.read()[1] frame2=cap.read()[1] frame3=cap.read()[1] gray1=cv2.cvtColor(frame1,cv2.COLOR_BGR2GRAY) gray2=cv2.cvtColor(frame2,cv2.C...
23.535714
45
0.745068
7abfd8ea9dda7dd8417832ee2c3b1c8fd4613494
2,929
py
Python
detection/training/classifier.py
AjitPant/AprilTag_Detection
fd93d0803d0f4b5f7a862f77f2db26a189ebeedb
[ "MIT" ]
null
null
null
detection/training/classifier.py
AjitPant/AprilTag_Detection
fd93d0803d0f4b5f7a862f77f2db26a189ebeedb
[ "MIT" ]
null
null
null
detection/training/classifier.py
AjitPant/AprilTag_Detection
fd93d0803d0f4b5f7a862f77f2db26a189ebeedb
[ "MIT" ]
null
null
null
import os import logging from argparse import ArgumentParser from collections import OrderedDict import torch import torch.nn as nn import torch.nn.functional as F import torchvision.transforms as transforms from torch import optim from torch.utils.data import DataLoader, random_split from torch.utils.data.distributed...
29.887755
112
0.680437
d0b7b80674e33be5112015bb30fc32f6e50f10f5
6,370
py
Python
tensorflow/python/saved_model/example/saved_model_half_plus_two.py
danielgordon10/tensorflow
395cfc42ee3c5842f5383f4049674c012998b133
[ "Apache-2.0" ]
2
2018-04-10T11:50:28.000Z
2019-01-08T02:40:17.000Z
tensorflow/python/saved_model/example/saved_model_half_plus_two.py
danielgordon10/tensorflow
395cfc42ee3c5842f5383f4049674c012998b133
[ "Apache-2.0" ]
null
null
null
tensorflow/python/saved_model/example/saved_model_half_plus_two.py
danielgordon10/tensorflow
395cfc42ee3c5842f5383f4049674c012998b133
[ "Apache-2.0" ]
6
2017-04-14T07:11:14.000Z
2019-11-20T08:19:15.000Z
## Copyright 2015 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 applic...
38.606061
80
0.728885
614efd0b2f2b155cfa45af471e3c8354ff427655
6,894
py
Python
tests/h/auth/policy_test.py
ssin122/test-h
c10062ae23b690afaac0ab4af7b9a5a5e4b686a9
[ "MIT" ]
null
null
null
tests/h/auth/policy_test.py
ssin122/test-h
c10062ae23b690afaac0ab4af7b9a5a5e4b686a9
[ "MIT" ]
null
null
null
tests/h/auth/policy_test.py
ssin122/test-h
c10062ae23b690afaac0ab4af7b9a5a5e4b686a9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import mock import pytest from pyramid.interfaces import IAuthenticationPolicy from h.auth.policy import AuthenticationPolicy from h.auth.policy import TokenAuthenticationPolicy API_PATHS = ( '/api', '/api/foo', '/api/annotations/abc123', ) NONAPI_PATHS = ( '/login', '/a...
38.730337
97
0.739629
7ed7e1b868c11d045c131e0c7689ab516dc91dbd
1,066
py
Python
tests/helpers/windows/resource_files.py
jonathan-greig/plaso
b88a6e54c06a162295d09b016bddbfbfe7ca9070
[ "Apache-2.0" ]
1,253
2015-01-02T13:58:02.000Z
2022-03-31T08:43:39.000Z
tests/helpers/windows/resource_files.py
jonathan-greig/plaso
b88a6e54c06a162295d09b016bddbfbfe7ca9070
[ "Apache-2.0" ]
3,388
2015-01-02T11:17:58.000Z
2022-03-30T10:21:45.000Z
tests/helpers/windows/resource_files.py
jonathan-greig/plaso
b88a6e54c06a162295d09b016bddbfbfe7ca9070
[ "Apache-2.0" ]
376
2015-01-20T07:04:54.000Z
2022-03-04T23:53:00.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Tests for the Windows PE/COFF resource file helper.""" import unittest from plaso.helpers.windows import resource_files from tests import test_lib as shared_test_lib class WindowsResourceFileHelperTest(shared_test_lib.BaseTestCase): """Tests for the Windows PE/CO...
32.30303
78
0.737336
199ccd72e67f78cfe68000bfab3c17a0a36ebd67
4,311
py
Python
tests/unit/extraction_rules_test/test_function_app.py
kotarusv/dynatrace-azure-log-forwarder
50f227825c3151e2cba2a215f61e304b3e2a0041
[ "Apache-2.0" ]
8
2021-04-16T06:51:04.000Z
2022-03-04T14:15:51.000Z
tests/unit/extraction_rules_test/test_function_app.py
kotarusv/dynatrace-azure-log-forwarder
50f227825c3151e2cba2a215f61e304b3e2a0041
[ "Apache-2.0" ]
4
2021-04-19T12:58:27.000Z
2022-02-25T08:18:48.000Z
tests/unit/extraction_rules_test/test_function_app.py
kotarusv/dynatrace-azure-log-forwarder
50f227825c3151e2cba2a215f61e304b3e2a0041
[ "Apache-2.0" ]
3
2021-05-04T12:51:07.000Z
2022-03-16T04:25:18.000Z
# Copyright 2021 Dynatrace LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
45.378947
168
0.744839
d55542ab4513ae0729eda71201d797dd911e8c35
5,283
py
Python
hgw_common/hgw_common/messaging/sender.py
crs4/health-gateway
e18d945b593fa5efcebe7ee33f7e8991bbe1803d
[ "MIT" ]
5
2018-05-16T22:58:01.000Z
2020-01-14T11:12:17.000Z
hgw_common/hgw_common/messaging/sender.py
PhilanthroLab/health-gateway
e18d945b593fa5efcebe7ee33f7e8991bbe1803d
[ "MIT" ]
10
2018-04-13T15:56:49.000Z
2019-12-05T08:57:47.000Z
hgw_common/hgw_common/messaging/sender.py
PhilanthroLab/health-gateway
e18d945b593fa5efcebe7ee33f7e8991bbe1803d
[ "MIT" ]
6
2019-10-02T08:39:12.000Z
2020-06-23T00:18:03.000Z
# Copyright (c) 2017-2018 CRS4 # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to use, # copy, modify, merge, publish, distribut...
38.007194
132
0.659852
11a259a8b446fccad8d7c1f6f96fab2ca804bc59
1,244
py
Python
mlflowrate/mlflowrate/tests/conftest.py
kev-fung/mlflowrate
5fc811fca2dfcfb0df91b3db827b35332bbc5d85
[ "MIT" ]
null
null
null
mlflowrate/mlflowrate/tests/conftest.py
kev-fung/mlflowrate
5fc811fca2dfcfb0df91b3db827b35332bbc5d85
[ "MIT" ]
null
null
null
mlflowrate/mlflowrate/tests/conftest.py
kev-fung/mlflowrate
5fc811fca2dfcfb0df91b3db827b35332bbc5d85
[ "MIT" ]
null
null
null
""" Kevin Fung Github: kkf18 """ import pytest import pandas import os from mlflowrate.backend.base import Base from pyspark import SparkContext, SQLContext, SparkConf @pytest.fixture(scope="session") def spark_context(): conf = (SparkConf().setMaster("local[2]").setAppName("mf-flow-rate-test")) spark_contex...
26.468085
118
0.758039
6902d96ec1067fdca29cc2346d22b00d2162be3f
7,069
py
Python
app/customer/models/first_charge_activity.py
B-ROY/TESTGIT
40221cf254c90d37d21afb981635740aebf11949
[ "Apache-2.0" ]
2
2017-12-02T13:58:30.000Z
2018-08-02T17:07:59.000Z
app/customer/models/first_charge_activity.py
B-ROY/TESTGIT
40221cf254c90d37d21afb981635740aebf11949
[ "Apache-2.0" ]
null
null
null
app/customer/models/first_charge_activity.py
B-ROY/TESTGIT
40221cf254c90d37d21afb981635740aebf11949
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 import datetime import logging from base.settings import CHATPAMONGO from django.conf import settings from mongoengine import * from app.customer.models.user import * from app.customer.models.tools import * from app.customer.models.vip import * connect(CHATPAMONGO.db, host=CHATPAMONGO.host, port=CHAT...
34.482927
169
0.552978
25877871f0720918d987665be0aa952d59b9cead
6,010
py
Python
django/contrib/sitemaps/__init__.py
benjaoming/django
6dbe979b4d9396e1b307c7d27388c97c13beb21c
[ "BSD-3-Clause" ]
2
2015-01-21T15:45:07.000Z
2015-02-21T02:38:13.000Z
django/contrib/sitemaps/__init__.py
HenriqueLR/django
d1ca70110f49f0be90206c8da516ac16aebc8c75
[ "BSD-3-Clause" ]
null
null
null
django/contrib/sitemaps/__init__.py
HenriqueLR/django
d1ca70110f49f0be90206c8da516ac16aebc8c75
[ "BSD-3-Clause" ]
1
2018-12-22T02:56:17.000Z
2018-12-22T02:56:17.000Z
from django.apps import apps as django_apps from django.conf import settings from django.core import urlresolvers, paginator from django.core.exceptions import ImproperlyConfigured from django.utils import translation from django.utils.six.moves.urllib.parse import urlencode from django.utils.six.moves.urllib.request i...
36.424242
113
0.628952
662fad0336d1c91bca715d51e8116e091dbf134e
4,827
py
Python
ck_vqq.py
58565856/checkinpanel
58f2292d9c4d65f15ffd6bc4fa4b9f23214d3d72
[ "MIT" ]
752
2021-08-29T11:24:39.000Z
2022-03-31T09:22:56.000Z
ck_vqq.py
58565856/checkinpanel
58f2292d9c4d65f15ffd6bc4fa4b9f23214d3d72
[ "MIT" ]
99
2021-08-30T02:15:32.000Z
2022-03-30T08:51:06.000Z
ck_vqq.py
58565856/checkinpanel
58f2292d9c4d65f15ffd6bc4fa4b9f23214d3d72
[ "MIT" ]
280
2021-08-29T08:27:44.000Z
2022-03-30T09:39:06.000Z
# -*- coding: utf-8 -*- """ cron: 55 10 * * * new Env('腾讯视频'); """ import re import time from urllib import parse import requests from notify_mtr import send from utils import get_data class VQQ: def __init__(self, check_items): self.check_items = check_items @staticmethod def refresh_cookie(u...
34.978261
148
0.540916
66e99ec91d5a065efd293c9c3b8d8ae862c9472f
415
py
Python
setup.py
yourlabs/djfernet
c04fb4f1fb1e7bab112d69153546db6745f92fec
[ "BSD-3-Clause" ]
6
2022-01-03T00:22:31.000Z
2022-02-19T16:33:22.000Z
setup.py
yourlabs/djfernet
c04fb4f1fb1e7bab112d69153546db6745f92fec
[ "BSD-3-Clause" ]
null
null
null
setup.py
yourlabs/djfernet
c04fb4f1fb1e7bab112d69153546db6745f92fec
[ "BSD-3-Clause" ]
1
2022-01-24T19:26:40.000Z
2022-01-24T19:26:40.000Z
from setuptools import setup setup( name='djfernet', versioning='dev', setup_requires='setupmeta', install_requires=['cryptography'], author='James Pic', author_email='jamespic@gmail.com', url='https://yourlabs.io/oss/djfernet', include_package_data=True, license='MIT', keyword...
23.055556
43
0.677108
3718fa5409142ed1b7e0d7d88393dc1b483f3c03
3,851
py
Python
test/functional/wallet_groups.py
CryptoDJ/namecoin-core
9d496c093fc2d6af669e5971b41d68f8fe225f26
[ "MIT" ]
null
null
null
test/functional/wallet_groups.py
CryptoDJ/namecoin-core
9d496c093fc2d6af669e5971b41d68f8fe225f26
[ "MIT" ]
null
null
null
test/functional/wallet_groups.py
CryptoDJ/namecoin-core
9d496c093fc2d6af669e5971b41d68f8fe225f26
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test wallet group functionality.""" from test_framework.test_framework import BitcoinTestFramework from tes...
40.968085
137
0.619579
12a2d2f9bb3092141c5447eb6fe989fefdfe5133
1,362
py
Python
setup.py
bfontaine/edt2ics
1245f174694c30a42c489d831970c32ae42c0b0d
[ "MIT" ]
1
2015-11-11T14:28:48.000Z
2015-11-11T14:28:48.000Z
setup.py
bfontaine/edt2ics
1245f174694c30a42c489d831970c32ae42c0b0d
[ "MIT" ]
5
2015-01-07T07:42:06.000Z
2021-03-23T09:20:55.000Z
setup.py
bfontaine/edt2ics
1245f174694c30a42c489d831970c32ae42c0b0d
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- import setuptools from distutils.core import setup # http://stackoverflow.com/a/7071358/735926 import re VERSIONFILE='edt2ics/__init__.py' verstrline = open(VERSIONFILE, 'rt').read() VSRE = r'^__version__\s+=\s+[\'"]([^\'"]+)[\'"]' mo = re.search(VSRE, verstrline, re.M) if mo: verstr = mo....
28.375
76
0.600587
3e11919d633aa371a61281bb3631f7eb4fd33efd
327
py
Python
submissions/abc146/c.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
1
2021-05-10T01:16:28.000Z
2021-05-10T01:16:28.000Z
submissions/abc146/c.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
3
2021-05-11T06:14:15.000Z
2021-06-19T08:18:36.000Z
submissions/abc146/c.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
null
null
null
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(10 ** 7) a, b, x = map(int, readline().split()) ans = 0 for d in range(1, 20): c = (x - b * d) // a if c >= 0: ans = max(ans, min(c, 10 ** d - 1)) print(min(ans, 10 ...
23.357143
43
0.599388
81f8b87cf467ff295184cf119a423f19e8c0f669
7,853
py
Python
huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/model/neutron_list_firewall_groups_request.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2021-11-03T07:54:50.000Z
2021-11-03T07:54:50.000Z
huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/model/neutron_list_firewall_groups_request.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/model/neutron_list_firewall_groups_request.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import pprint import re import six class NeutronListFirewallGroupsRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name ...
28.765568
151
0.620527
bd32cd0c49cc2e369eed7a5724a8f0402f3a227d
35,933
py
Python
venv/Lib/site-packages/tornado/httputil.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
venv/Lib/site-packages/tornado/httputil.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
venv/Lib/site-packages/tornado/httputil.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
# # Copyright 2009 Facebook # # 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...
31.686949
93
0.604319
019c9d9a970549ff54f2004699be9da5b84a0f60
6,246
py
Python
src/python/triangula/tasks/manual_control.py
peterbrazil/brazil
3823dca6f05b6946251800125d45069048d1bca1
[ "Apache-2.0" ]
null
null
null
src/python/triangula/tasks/manual_control.py
peterbrazil/brazil
3823dca6f05b6946251800125d45069048d1bca1
[ "Apache-2.0" ]
null
null
null
src/python/triangula/tasks/manual_control.py
peterbrazil/brazil
3823dca6f05b6946251800125d45069048d1bca1
[ "Apache-2.0" ]
null
null
null
from math import degrees from euclid import Vector2 from triangula.chassis import rotate_vector, Motion, DeadReckoning from triangula.dynamics import RateLimit, MotionLimit from triangula.input import SixAxis from triangula.task import Task from triangula.util import IntervalCheck class ManualMotionTask(Task): "...
47.679389
120
0.676753
9af2eeac4d15ab82e0f87f64e151b948c1722370
2,685
py
Python
src/binaural.py
emotional-cities/notebooks
c1800e3c6a0964260ee6a003814209cc531f187e
[ "MIT" ]
null
null
null
src/binaural.py
emotional-cities/notebooks
c1800e3c6a0964260ee6a003814209cc531f187e
[ "MIT" ]
null
null
null
src/binaural.py
emotional-cities/notebooks
c1800e3c6a0964260ee6a003814209cc531f187e
[ "MIT" ]
null
null
null
import wave from matplotlib.pyplot import stem import numpy as np import pandas as pd def wav2array(nchannels, sampwidth, data): """data must be the string containing the bytes from the wav file.""" num_samples, remainder = divmod(len(data), sampwidth * nchannels) if remainder > 0: raise ValueError...
41.953125
99
0.679702
2baccf1986511c4320a610cb423036aac7daa335
4,182
py
Python
dynastes/blocks/causal_blocks.py
dynastes-team/dynastes
931b6d9ac83862eb39c2f5144c95b952e9efcd8e
[ "MIT" ]
7
2020-01-18T14:28:04.000Z
2021-11-10T16:46:34.000Z
dynastes/blocks/causal_blocks.py
veqtor/dynastes
931b6d9ac83862eb39c2f5144c95b952e9efcd8e
[ "MIT" ]
null
null
null
dynastes/blocks/causal_blocks.py
veqtor/dynastes
931b6d9ac83862eb39c2f5144c95b952e9efcd8e
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf import tensorflow.keras.layers as tfkl from dynastes.layers.base_layers import DynastesBaseLayer from dynastes.util.layer_util import call_masked as cm @tf.keras.utils.register_keras_...
37.675676
110
0.635103
8d7eafed8271619d60c77d0c454d0955a4f68904
5,389
py
Python
elodie/tests/media/audio_test.py
nukejello/elodie-filenames-updated
66626165d96a2d0b6ac853de41edfdd399a9ab47
[ "Apache-2.0" ]
null
null
null
elodie/tests/media/audio_test.py
nukejello/elodie-filenames-updated
66626165d96a2d0b6ac853de41edfdd399a9ab47
[ "Apache-2.0" ]
1
2017-01-07T06:30:43.000Z
2017-01-19T12:47:07.000Z
elodie/tests/media/audio_test.py
nukejello/elodie-filenames-updated
66626165d96a2d0b6ac853de41edfdd399a9ab47
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 # Project imports from __future__ import print_function import os import sys import shutil import tempfile import time import datetime sys.path.insert(0, os.path.abspath(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))))) sys.path.insert(0, os.path.absp...
29.12973
131
0.715717