hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
4039add7535d2043971e1d6f766c77cb409e499d
4,197
py
Python
telemetry/telemetry/internal/actions/scroll_bounce.py
willcrichton/catapult
52d3c05d814a12b32392ac45f14fc4b99ea3674e
[ "BSD-3-Clause" ]
4
2017-06-04T05:37:39.000Z
2021-06-26T05:30:15.000Z
telemetry/telemetry/internal/actions/scroll_bounce.py
willcrichton/catapult
52d3c05d814a12b32392ac45f14fc4b99ea3674e
[ "BSD-3-Clause" ]
null
null
null
telemetry/telemetry/internal/actions/scroll_bounce.py
willcrichton/catapult
52d3c05d814a12b32392ac45f14fc4b99ea3674e
[ "BSD-3-Clause" ]
1
2019-10-04T03:24:35.000Z
2019-10-04T03:24:35.000Z
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from telemetry.internal.actions import page_action from telemetry.internal.actions import utils from telemetry.util import js_template class ScrollBounceAc...
42.826531
79
0.684537
2af5252691f85a2cb595c56f63cefc0c2ee67dbc
1,244
py
Python
linfitxy/linreg.py
alaxa27/competitive
f60f1470ba12e83e483127c109d1f60f22b88130
[ "Apache-2.0" ]
null
null
null
linfitxy/linreg.py
alaxa27/competitive
f60f1470ba12e83e483127c109d1f60f22b88130
[ "Apache-2.0" ]
null
null
null
linfitxy/linreg.py
alaxa27/competitive
f60f1470ba12e83e483127c109d1f60f22b88130
[ "Apache-2.0" ]
null
null
null
from pylab import * from math import sqrt Rc = [20] for i in range(1, 21): Rc.append(50.0*i) Eeff = 100 Ueff = [29, 50.6, 67.6,76, 81, 84.4, 86.7, 88.5, 89.9, 91, 91.9, 92.5, 93.3, 93.8, 94.2, 94.8, 95.1, 95.4, 95.6, 95.8, 96.1] def variables(Ueff, Eeff, Rc): x = [] for i in Rc: x.append(1/float...
19.746032
124
0.555466
56b7267ec9068cdec9c46bd721d250a3958b6b21
13,843
py
Python
offsb/reporter/qcarchive.py
MobleyLab/openff-spellbook
66a9f2add895034da7949701069b11cf0ab3f817
[ "MIT" ]
3
2019-09-20T13:53:53.000Z
2021-01-25T20:42:12.000Z
offsb/reporter/qcarchive.py
MobleyLab/openff-spellbook
66a9f2add895034da7949701069b11cf0ab3f817
[ "MIT" ]
2
2019-10-12T07:12:27.000Z
2020-05-22T10:22:17.000Z
offsb/reporter/qcarchive.py
MobleyLab/openff-spellbook
66a9f2add895034da7949701069b11cf0ab3f817
[ "MIT" ]
3
2019-10-12T00:31:03.000Z
2020-01-30T21:36:10.000Z
#!/usr/bin/env python3 import pickle import collections import matplotlib.pyplot as plt import matplotlib.cm as cm import itertools import numpy as np import re import os from offsb.op.geometry import ( \ BondOperation, AngleOperation, ImproperTorsionOperation, TorsionOperation) impo...
44.085987
119
0.448458
e38df9c7d708da7d2254f3abc487c56d2c9df234
26,249
py
Python
venv/Lib/site-packages/debugpy/_vendored/pydevd/_pydev_bundle/fsnotify/scandir_vendored.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
695
2020-01-30T14:34:51.000Z
2022-03-31T09:31:57.000Z
venv/Lib/site-packages/debugpy/_vendored/pydevd/_pydev_bundle/fsnotify/scandir_vendored.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
845
2020-01-29T23:53:36.000Z
2022-03-31T19:45:04.000Z
venv/Lib/site-packages/debugpy/_vendored/pydevd/_pydev_bundle/fsnotify/scandir_vendored.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
66
2020-01-30T13:10:38.000Z
2022-03-29T07:11:17.000Z
"""scandir, a better directory iterator and faster os.walk(), now in the Python 3.5 stdlib scandir() is a generator version of os.listdir() that returns an iterator over files in a directory, and also exposes the extra information most OSes provide while iterating files in a directory (such as type and stat informatio...
36.40638
110
0.557888
f51b871e332e40df68142027eeb4ef53b1f90b85
3,538
py
Python
telegram_crypto_price_bot/info_message_sender/chart_price_info_message_sender.py
ebellocchia/telegram_crypto_price_bot
dffc0e3f5b7de86b13fc2d90da0c79391606f39c
[ "MIT" ]
7
2021-11-05T14:33:20.000Z
2022-03-24T04:05:25.000Z
telegram_crypto_price_bot/info_message_sender/chart_price_info_message_sender.py
ebellocchia/telegram_crypto_price_bot
dffc0e3f5b7de86b13fc2d90da0c79391606f39c
[ "MIT" ]
null
null
null
telegram_crypto_price_bot/info_message_sender/chart_price_info_message_sender.py
ebellocchia/telegram_crypto_price_bot
dffc0e3f5b7de86b13fc2d90da0c79391606f39c
[ "MIT" ]
4
2021-10-02T10:43:28.000Z
2022-01-30T22:53:58.000Z
# Copyright (c) 2021 Emanuele Bellocchia # # 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,...
43.146341
104
0.709723
c1e624442abcb80d25f7807a9049ad93ea28f404
951
py
Python
mosquitto-1.5.4/test/broker/05-clean-session-qos1-helper.py
RainaWLK/mqtt-test
cb4175c8bd1e35deed45941ca61c88fdcc6ddeba
[ "MIT" ]
null
null
null
mosquitto-1.5.4/test/broker/05-clean-session-qos1-helper.py
RainaWLK/mqtt-test
cb4175c8bd1e35deed45941ca61c88fdcc6ddeba
[ "MIT" ]
null
null
null
mosquitto-1.5.4/test/broker/05-clean-session-qos1-helper.py
RainaWLK/mqtt-test
cb4175c8bd1e35deed45941ca61c88fdcc6ddeba
[ "MIT" ]
1
2021-06-19T17:17:41.000Z
2021-06-19T17:17:41.000Z
#!/usr/bin/env python # Test whether a clean session client has a QoS 1 message queued for it. import inspect, os, sys # From http://stackoverflow.com/questions/279237/python-import-a-module-from-a-folder cmd_subfolder = os.path.realpath(os.path.abspath(os.path.join(os.path.split(inspect.getfile( inspect.currentframe...
29.71875
129
0.770768
8be1c8a909c7007bd5abd5dc86d2a75d063733d6
4,937
py
Python
ecosystem_tools/mindconverter/mindconverter/graph_based_converter/mapper/onnx/ops/div_mapper.py
mindspore-ai/mindinsight
8c57fdd62eb7f8653662be2208633386ac82e8d7
[ "Apache-2.0" ]
216
2020-03-28T02:11:56.000Z
2022-03-31T06:20:09.000Z
ecosystem_tools/mindconverter/mindconverter/graph_based_converter/mapper/onnx/ops/div_mapper.py
mindspore-ai/mindinsight
8c57fdd62eb7f8653662be2208633386ac82e8d7
[ "Apache-2.0" ]
13
2020-03-31T03:00:12.000Z
2021-01-03T13:01:06.000Z
ecosystem_tools/mindconverter/mindconverter/graph_based_converter/mapper/onnx/ops/div_mapper.py
mindspore-ai/mindinsight
8c57fdd62eb7f8653662be2208633386ac82e8d7
[ "Apache-2.0" ]
21
2020-03-28T02:41:06.000Z
2021-11-24T12:20:25.000Z
# Copyright 2021 Huawei Technologies Co., Ltd.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 ap...
46.140187
116
0.645534
67052ed4008980d90dfc6a5ae808e35264a0d433
14,984
py
Python
selfdrive/controls/lib/planner.py
Nad-Arb/openpilot3.9
ea48ef2d8d6a6ddf39d826182b3b6796ba3ea17e
[ "MIT" ]
null
null
null
selfdrive/controls/lib/planner.py
Nad-Arb/openpilot3.9
ea48ef2d8d6a6ddf39d826182b3b6796ba3ea17e
[ "MIT" ]
null
null
null
selfdrive/controls/lib/planner.py
Nad-Arb/openpilot3.9
ea48ef2d8d6a6ddf39d826182b3b6796ba3ea17e
[ "MIT" ]
null
null
null
#!/usr/bin/env python import zmq import numpy as np import math from common.realtime import sec_since_boot from common.params import Params from common.numpy_fast import interp import selfdrive.messaging as messaging from selfdrive.swaglog import cloudlog from selfdrive.config import Conversions as CV from selfdrive....
36.106024
126
0.676321
1eaa0f5952642715074ae857c2746faff15c225f
87
py
Python
lab/doodle/test01/testcode01.py
JoHyukJun/RasberryPiLab
c0fecd9e9906b4fe186b299c0d31e5b6666fe955
[ "Apache-2.0" ]
null
null
null
lab/doodle/test01/testcode01.py
JoHyukJun/RasberryPiLab
c0fecd9e9906b4fe186b299c0d31e5b6666fe955
[ "Apache-2.0" ]
null
null
null
lab/doodle/test01/testcode01.py
JoHyukJun/RasberryPiLab
c0fecd9e9906b4fe186b299c0d31e5b6666fe955
[ "Apache-2.0" ]
null
null
null
for i in range(2, 10): for j in range(1, 10): print(i * j, end = ' ') print('\n')
14.5
25
0.505747
b3ad574f5154de6063cb700784fa3afaf80ef216
2,222
py
Python
djangobase/users_registration/tests/test_views_simple.py
seospace/djangousers
a9f18cabeee31e91d91c46c91bc3d689aec8f0db
[ "BSD-3-Clause" ]
null
null
null
djangobase/users_registration/tests/test_views_simple.py
seospace/djangousers
a9f18cabeee31e91d91c46c91bc3d689aec8f0db
[ "BSD-3-Clause" ]
null
null
null
djangobase/users_registration/tests/test_views_simple.py
seospace/djangousers
a9f18cabeee31e91d91c46c91bc3d689aec8f0db
[ "BSD-3-Clause" ]
null
null
null
from django.test import TestCase from .base import TemplateResponseTestMixin from users.forms import UserRegistrationForm, UserAuthenticationForm from django.contrib.auth.forms import PasswordResetForm from .. import views from django.contrib.auth.forms import SetPasswordForm from django.urls import reverse from users...
32.202899
79
0.812781
6c767a5995dfdc511a89abc92a882b1bb772da06
1,832
py
Python
autogqla/objects/helpers.py
srafehi/autogqla
171d2a9b35f3a03cac6d07da94b5340257f359ee
[ "MIT" ]
1
2020-06-16T01:57:55.000Z
2020-06-16T01:57:55.000Z
autogqla/objects/helpers.py
srafehi/autogqla
171d2a9b35f3a03cac6d07da94b5340257f359ee
[ "MIT" ]
null
null
null
autogqla/objects/helpers.py
srafehi/autogqla
171d2a9b35f3a03cac6d07da94b5340257f359ee
[ "MIT" ]
null
null
null
import graphene from autogqla.base import BaseModel from autogqla.fields.connections.base import apply_query_condition from autogqla.fields.connections.pagination_connection_field import PaginationConnectionField from autogqla.fields.connections.pagination_details import PaginationDetails from autogqla.fields.connecti...
35.921569
102
0.753821
78fa997dc20d6be11c0849046e5079b3e7210562
419
py
Python
bcdi/postprocessing/__init__.py
sjleake/bcdi
bf071ad085a11622158e1e651857a8a172c51cf1
[ "CECILL-B" ]
null
null
null
bcdi/postprocessing/__init__.py
sjleake/bcdi
bf071ad085a11622158e1e651857a8a172c51cf1
[ "CECILL-B" ]
null
null
null
bcdi/postprocessing/__init__.py
sjleake/bcdi
bf071ad085a11622158e1e651857a8a172c51cf1
[ "CECILL-B" ]
null
null
null
# -*- coding: utf-8 -*- # BCDI: tools for pre(post)-processing Bragg coherent X-ray diffraction imaging data # (c) 07/2017-06/2019 : CNRS UMR 7344 IM2NP # (c) 07/2019-05/2021 : DESY PHOTON SCIENCE # (c) 06/2021-present : DESY CFEL # authors: # Jerome Carnis, carnis_jerome@yahoo.fr """ BCDI postproc...
29.928571
85
0.692124
39c6623139c134db061770ee49ff0ce2978f796a
1,418
py
Python
nemo/package_info.py
magictron/NeMo
aae9e3405b6e78dff864d21ea59331abdadc0217
[ "Apache-2.0" ]
null
null
null
nemo/package_info.py
magictron/NeMo
aae9e3405b6e78dff864d21ea59331abdadc0217
[ "Apache-2.0" ]
null
null
null
nemo/package_info.py
magictron/NeMo
aae9e3405b6e78dff864d21ea59331abdadc0217
[ "Apache-2.0" ]
null
null
null
# ! /usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licen...
37.315789
111
0.739069
e8f0b4fd1245f0e72a33524cd729b8e097c77695
42,859
py
Python
sympy/geometry/ellipse.py
darknight009/sympy
618193720b862a41aa295d474793cc12e4de2927
[ "BSD-3-Clause" ]
1
2021-07-24T12:45:14.000Z
2021-07-24T12:45:14.000Z
sympy/geometry/ellipse.py
darknight009/sympy
618193720b862a41aa295d474793cc12e4de2927
[ "BSD-3-Clause" ]
null
null
null
sympy/geometry/ellipse.py
darknight009/sympy
618193720b862a41aa295d474793cc12e4de2927
[ "BSD-3-Clause" ]
1
2021-12-31T12:31:28.000Z
2021-12-31T12:31:28.000Z
"""Elliptical geometrical entities. Contains * Ellipse * Circle """ from __future__ import division, print_function from sympy.core import S, pi, sympify from sympy.core.logic import fuzzy_bool from sympy.core.numbers import Rational, oo from sympy.core.compatibility import range from sympy.core.symbol import Dummy...
27.562058
98
0.515364
8287be7c91abd330e7676782b470aadaa17550fa
1,067
py
Python
grr/server/grr_response_server/bin/worker.py
BA7JCM/grr
c6f3b19e73e1d76a195d3c9a63e894ace6ea2508
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/bin/worker.py
BA7JCM/grr
c6f3b19e73e1d76a195d3c9a63e894ace6ea2508
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/bin/worker.py
BA7JCM/grr
c6f3b19e73e1d76a195d3c9a63e894ace6ea2508
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """This is a backend analysis worker which will be deployed on the server.""" from absl import app from absl import flags from grr_response_core import config from grr_response_core.config import contexts from grr_response_core.config import server as config_server from grr_response_server impor...
24.25
77
0.746017
13c7f4036faea213b0da264627b4d292261f465c
163
py
Python
Python-Pro.py
ravi-kr/Universe
cf11bc631f5fcf171f733998a8f5aa842b8ccf09
[ "MIT" ]
null
null
null
Python-Pro.py
ravi-kr/Universe
cf11bc631f5fcf171f733998a8f5aa842b8ccf09
[ "MIT" ]
null
null
null
Python-Pro.py
ravi-kr/Universe
cf11bc631f5fcf171f733998a8f5aa842b8ccf09
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine engine = create_engine('hive://localhost:10000/default') import pandas as pd df = pd.read_sql("SELECT * from table1", engine)
32.6
56
0.779141
72a7e10fb7e1270d01b9dc8fe3e5dd356e025192
5,519
py
Python
models/wrn.py
UBCDingXin/RepDistiller
dcc043277f2820efafd679ffb82b8e8195b7e222
[ "BSD-2-Clause" ]
1,347
2019-10-24T02:30:04.000Z
2022-03-31T12:01:21.000Z
models/wrn.py
WeiChengTseng/RepDistiller
dcc043277f2820efafd679ffb82b8e8195b7e222
[ "BSD-2-Clause" ]
45
2019-10-28T07:16:25.000Z
2022-03-19T03:34:36.000Z
models/wrn.py
WeiChengTseng/RepDistiller
dcc043277f2820efafd679ffb82b8e8195b7e222
[ "BSD-2-Clause" ]
282
2019-10-24T03:58:04.000Z
2022-03-25T19:52:39.000Z
import math import torch import torch.nn as nn import torch.nn.functional as F """ Original Author: Wei Yang """ __all__ = ['wrn'] class BasicBlock(nn.Module): def __init__(self, in_planes, out_planes, stride, dropRate=0.0): super(BasicBlock, self).__init__() self.bn1 = nn.BatchNorm2d(in_planes)...
32.274854
116
0.5896
9fcc0fbfc747d41bc472fd4dcfe6a1f9b62850c8
625
py
Python
scripts/examples/OpenMV/02-Board-Control/led_control.py
mzaian/openmv
08cc9c1d27eb130585a559aed027c3db233ccb70
[ "MIT" ]
6
2017-05-24T06:51:37.000Z
2020-07-04T16:36:29.000Z
usr/examples/02-Board-Control/led_control.py
guohuijiang1234/openmv
9c3e9109ec1a2b68bb34107557945bfa379d3a0e
[ "MIT" ]
2
2018-11-13T06:47:24.000Z
2019-05-15T06:21:55.000Z
usr/examples/02-Board-Control/led_control.py
guohuijiang1234/openmv
9c3e9109ec1a2b68bb34107557945bfa379d3a0e
[ "MIT" ]
11
2020-06-03T10:12:28.000Z
2020-06-05T16:02:40.000Z
# LED Control Example # # This example shows how to control your OpenMV Cam's built-in LEDs. Use your # smart phone's camera to see the IR LEDs. import time from pyb import LED red_led = LED(1) green_led = LED(2) blue_led = LED(3) ir_led = LED(4) def led_control(x): if (x&1)==0: red_led.off() elif (x...
22.321429
77
0.5904
90aaaa4c367b53bf53f5ba795c5a75e5aa5fb392
629
py
Python
MOOSE_web/manage.py
XYChang-cxy/MOOSE
6cca5a1ed34451e6c525ca480b59ce504bba3f49
[ "Apache-2.0" ]
1
2021-09-02T09:32:41.000Z
2021-09-02T09:32:41.000Z
MOOSE_web/manage.py
XYChang-cxy/MOOSE
6cca5a1ed34451e6c525ca480b59ce504bba3f49
[ "Apache-2.0" ]
null
null
null
MOOSE_web/manage.py
XYChang-cxy/MOOSE
6cca5a1ed34451e6c525ca480b59ce504bba3f49
[ "Apache-2.0" ]
3
2021-08-30T08:34:51.000Z
2021-09-30T13:14:31.000Z
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'MOOSE_web.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Impo...
28.590909
73
0.683625
4d8d55a1c7a9033906bf8e089429c38dd8ec8b2d
3,090
py
Python
src/transformers/data/metrics/__init__.py
ShnitzelKiller/transformers
ce50305e5b8c8748b81b0c8f5539a337b6a995b9
[ "Apache-2.0" ]
1
2021-02-21T05:00:40.000Z
2021-02-21T05:00:40.000Z
src/transformers/data/metrics/__init__.py
ShnitzelKiller/transformers
ce50305e5b8c8748b81b0c8f5539a337b6a995b9
[ "Apache-2.0" ]
null
null
null
src/transformers/data/metrics/__init__.py
ShnitzelKiller/transformers
ce50305e5b8c8748b81b0c8f5539a337b6a995b9
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a cop...
34.333333
117
0.63754
9e8e829174c0ac17a3eb71305381930e0ff42ebf
1,622
py
Python
team_9/cocos/test/test_shuffletiles_fullscreen.py
Donnyvdm/dojo19
3cf043a84e3ad6d3c4d59cd9c50b160e1ff03400
[ "BSD-3-Clause" ]
1
2019-09-15T18:59:49.000Z
2019-09-15T18:59:49.000Z
team_9/cocos/test/test_shuffletiles_fullscreen.py
Donnyvdm/dojo19
3cf043a84e3ad6d3c4d59cd9c50b160e1ff03400
[ "BSD-3-Clause" ]
null
null
null
team_9/cocos/test/test_shuffletiles_fullscreen.py
Donnyvdm/dojo19
3cf043a84e3ad6d3c4d59cd9c50b160e1ff03400
[ "BSD-3-Clause" ]
null
null
null
from __future__ import division, print_function, unicode_literals # This code is so you can run the samples without installing the package import sys import os sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) # testinfo = "t 0.1, s, t 0.49, s, t 0.51, s, t 2.49, s, t 2.51, s, t 2.99, s, t 3.1, s, q" ...
30.037037
89
0.669544
2b4ded0918295075b66aae94d0d81d4efdc11cb0
4,282
py
Python
clinica/pipelines/t1_volume_existing_template/t1_volume_existing_template_cli.py
Raelag0112/clinica
d301b1abfdf4d3b62dc4b329622340795ae51ef8
[ "MIT" ]
null
null
null
clinica/pipelines/t1_volume_existing_template/t1_volume_existing_template_cli.py
Raelag0112/clinica
d301b1abfdf4d3b62dc4b329622340795ae51ef8
[ "MIT" ]
null
null
null
clinica/pipelines/t1_volume_existing_template/t1_volume_existing_template_cli.py
Raelag0112/clinica
d301b1abfdf4d3b62dc4b329622340795ae51ef8
[ "MIT" ]
null
null
null
from typing import List, Optional, Tuple import click from clinica.pipelines import cli_param pipeline_name = "t1-volume-existing-template" @click.command(name=pipeline_name) @cli_param.argument.bids_directory @cli_param.argument.caps_directory @cli_param.argument.group_label @cli_param.option_group.pipeline_speci...
35.098361
90
0.740075
a24387d1a361099f998ee8e7551a8c8655da4735
2,906
py
Python
hh_problems.py
Bekt/hh-problems-bot
b263f3ba3a5fa2190a6d7f9cdc28cc75423bbc15
[ "MIT" ]
3
2015-01-10T22:36:35.000Z
2016-01-26T06:47:45.000Z
hh_problems.py
Bekt/hh-problems-bot
b263f3ba3a5fa2190a6d7f9cdc28cc75423bbc15
[ "MIT" ]
null
null
null
hh_problems.py
Bekt/hh-problems-bot
b263f3ba3a5fa2190a6d7f9cdc28cc75423bbc15
[ "MIT" ]
null
null
null
"""Twitter Bot for HH Problems Facebook group. This script periodically updates the Twitter account @hh_problems with posts from the HH Hackers Problems Facebook group. Potential enhancements: - Handle posts with pictures. - Link back to the FB post. Twitter URL: https://twitter.com/hh_problems FB URL: https...
28.490196
74
0.592567
41455a37d08561fcbe50e851aff1bc2640e02852
3,654
py
Python
server/axeshome/storage.py
kevinmcguinness/axes-home
d41b7e605c8b0d3d6f274eccdd59b3fce794a28b
[ "Apache-2.0" ]
2
2015-06-25T03:10:03.000Z
2016-02-22T11:34:08.000Z
server/axeshome/storage.py
kevinmcguinness/axes-home
d41b7e605c8b0d3d6f274eccdd59b3fce794a28b
[ "Apache-2.0" ]
null
null
null
server/axeshome/storage.py
kevinmcguinness/axes-home
d41b7e605c8b0d3d6f274eccdd59b3fce794a28b
[ "Apache-2.0" ]
null
null
null
# # (c) Copyright 2015 Kevin McGuinness. All Rights Reserved. # """ Filesystem storage objects. """ import os import uuid from flask import current_app as app from flask import request from urlparse import urlparse, urlunsplit, urljoin class MediaStorage(object): """ Represents a HTTP accessible storage loca...
29.467742
80
0.54543
a2cced969984c8ff2bd1ef8c18a09c95fd4c033d
4,851
py
Python
docs/conf.py
Taschenbergerm/bgg_miner
f20057ec2e85e20ad08f92514ce38c699e8c85eb
[ "MIT" ]
null
null
null
docs/conf.py
Taschenbergerm/bgg_miner
f20057ec2e85e20ad08f92514ce38c699e8c85eb
[ "MIT" ]
null
null
null
docs/conf.py
Taschenbergerm/bgg_miner
f20057ec2e85e20ad08f92514ce38c699e8c85eb
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # bgg_scraper documentation build configuration file, created by # sphinx-quickstart on Fri Jun 9 13:47:02 2017. # # 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. # #...
29.760736
77
0.688724
719aca76012ca54c1d1e0a7bc009f8a83b3d368e
7,515
py
Python
python/tink/streaming_aead/_encrypting_stream.py
hazaelsan/tink
9be3f690611bfab85284624de46ad6f36119d8bb
[ "Apache-2.0" ]
1
2019-01-08T16:38:47.000Z
2019-01-08T16:38:47.000Z
python/tink/streaming_aead/_encrypting_stream.py
bhaskatripathi/tink
841802758ae6fadb6bcb60e9053fb4c169549f29
[ "Apache-2.0" ]
1
2020-08-18T16:42:11.000Z
2020-08-25T16:13:11.000Z
python/tink/streaming_aead/_encrypting_stream.py
bhaskatripathi/tink
841802758ae6fadb6bcb60e9053fb4c169549f29
[ "Apache-2.0" ]
1
2020-11-30T06:38:02.000Z
2020-11-30T06:38:02.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 t...
33.105727
80
0.703393
d1d1b4f8b20f706612ecba857864ca3bb763b05c
2,358
py
Python
vanir/tests/vm/__init__.py
VanirLab/VOS
e6cb3e4e391e583e98d548292b5f272320d38cc4
[ "MIT" ]
null
null
null
vanir/tests/vm/__init__.py
VanirLab/VOS
e6cb3e4e391e583e98d548292b5f272320d38cc4
[ "MIT" ]
null
null
null
vanir/tests/vm/__init__.py
VanirLab/VOS
e6cb3e4e391e583e98d548292b5f272320d38cc4
[ "MIT" ]
null
null
null
import jinja2 import unittest.mock import vanir.tests class TestVMM(object): # pylint: disable=too-few-public-methods def __init__(self, offline_mode=False): self.offline_mode = offline_mode self.xs = unittest.mock.Mock() @property def libvirt_conn(self): import l...
29.111111
56
0.585242
e867f6ff437a6e918547da6253bf74f64a5d16a0
508
py
Python
UVRatio/utils.py
chrisdevito/UVRatio
10411e07d2de47ee760996db484a8185323b63cc
[ "MIT" ]
null
null
null
UVRatio/utils.py
chrisdevito/UVRatio
10411e07d2de47ee760996db484a8185323b63cc
[ "MIT" ]
null
null
null
UVRatio/utils.py
chrisdevito/UVRatio
10411e07d2de47ee760996db484a8185323b63cc
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from UVRatio.packages.Qt import QtWidgets def show(): """ Shows ui in maya :raises: None :return: None :rtype: NoneType """ from UVRatio.ui.ui import UI from UVRatio.ui import utils # prevent duplicate windows for widget in QtWidgets...
19.538462
70
0.608268
c13ea9bdf51cd95313f87f5f246ca385df82b519
653
py
Python
Primer_LR_5/Primer3.py
tamaranesterenko/Python_LR_5-2
7f103f409c8889911cb456558c50e59a5f537b60
[ "MIT" ]
null
null
null
Primer_LR_5/Primer3.py
tamaranesterenko/Python_LR_5-2
7f103f409c8889911cb456558c50e59a5f537b60
[ "MIT" ]
null
null
null
Primer_LR_5/Primer3.py
tamaranesterenko/Python_LR_5-2
7f103f409c8889911cb456558c50e59a5f537b60
[ "MIT" ]
null
null
null
# !/usr/bin/env python3 # -*- cosing: utf-8 -*- import argparse parser = argparse.ArgumentParser() subparsers = parser.add_subparsers(help='List of commands') list_parser = subparsers.add_parser('list', help='list contents') list_parser.add_argument('dirname', action='store', help='Directory to list') ...
26.12
86
0.707504
cccac1ee74e8811951dab1669a60f91a7f129c79
1,890
py
Python
test/unit/modules/test_sfp_twitter.py
khiemtq-cyber/spiderfoot
66e671918853b0334931fd2fbabad0096d506726
[ "MIT" ]
null
null
null
test/unit/modules/test_sfp_twitter.py
khiemtq-cyber/spiderfoot
66e671918853b0334931fd2fbabad0096d506726
[ "MIT" ]
null
null
null
test/unit/modules/test_sfp_twitter.py
khiemtq-cyber/spiderfoot
66e671918853b0334931fd2fbabad0096d506726
[ "MIT" ]
null
null
null
import pytest import unittest from modules.sfp_twitter import sfp_twitter from sflib import SpiderFoot from spiderfoot import SpiderFootEvent, SpiderFootTarget @pytest.mark.usefixtures class TestModuleTwitter(unittest.TestCase): def test_opts(self): module = sfp_twitter() self.assertEqual(len(mo...
31.5
99
0.695238
78d70be32652c34469d4536be930b1f01e82ad56
107
py
Python
pybind11_examples/01_py-list_cpp-vector/test.py
Red-Eyed/machine-learning-notes
aa6de49e6d3f312ef6dd8f6e93ba4259413be1e4
[ "MIT" ]
1
2020-04-27T16:45:20.000Z
2020-04-27T16:45:20.000Z
pybind11_examples/01_py-list_cpp-vector/test.py
Red-Eyed/pybind11_examples
aa6de49e6d3f312ef6dd8f6e93ba4259413be1e4
[ "MIT" ]
null
null
null
pybind11_examples/01_py-list_cpp-vector/test.py
Red-Eyed/pybind11_examples
aa6de49e6d3f312ef6dd8f6e93ba4259413be1e4
[ "MIT" ]
null
null
null
import sys sys.path.append("build") import example A = [1., 2., 3., 4.] B = example.modify(A) print(B)
9.727273
24
0.616822
6cf59355e9a872b39749f130c9a6e0f90d32425c
5,404
py
Python
iceworm/engine/connectors/base.py
wrmsr0/iceworm
09431bb3cdc4f6796aafca41e37d42ebe0ddfeef
[ "BSD-3-Clause" ]
null
null
null
iceworm/engine/connectors/base.py
wrmsr0/iceworm
09431bb3cdc4f6796aafca41e37d42ebe0ddfeef
[ "BSD-3-Clause" ]
1
2021-01-19T14:29:19.000Z
2021-01-19T14:34:27.000Z
iceworm/engine/connectors/base.py
wrmsr0/iceworm
09431bb3cdc4f6796aafca41e37d42ebe0ddfeef
[ "BSD-3-Clause" ]
1
2020-12-31T22:29:52.000Z
2020-12-31T22:29:52.000Z
""" TODO: - virtual vs physical tables - physical tables requiring refresh - incremental vs total physical tables - materialized vs unmaterialized virtuals - ** dataclass interop ** - dc->tbl, query - just return object refs? jsonize? - support snowflake json garbage on objects - piecewise conf? csv mounts? ....
26.752475
118
0.63601
cfc9775d8a7fa615e40aa016fb91503a22f5ffec
468
py
Python
run_example.py
PederHA/vjemmie
e3742380d3ea06de90f8227a0934569f8fd02b5c
[ "MIT" ]
1
2018-07-30T02:43:27.000Z
2018-07-30T02:43:27.000Z
run_example.py
PederHA/vjemmie
e3742380d3ea06de90f8227a0934569f8fd02b5c
[ "MIT" ]
5
2020-09-20T14:07:28.000Z
2022-01-13T01:18:23.000Z
run_example.py
PederHA/vjemmie
e3742380d3ea06de90f8227a0934569f8fd02b5c
[ "MIT" ]
null
null
null
from contextlib import suppress from typing import List, Optional from discord.ext.commands import Cog import vjemmie import botsecrets # Pass entire botsecrets module to vjemmie.run try: from mycogs import cogs # Define custom cogs in your own module except ImportError: cogs = [] def main(se...
22.285714
68
0.698718
545f80239700bc04088392d6ffae4915d878bac0
279
py
Python
55.jump-game.py
viewv/leetcode
b31e643846bb38978746342e3e3a94991178565a
[ "MIT" ]
2
2018-02-26T09:12:19.000Z
2019-06-07T13:38:10.000Z
55.jump-game.py
viewv/leetcode
b31e643846bb38978746342e3e3a94991178565a
[ "MIT" ]
1
2018-12-24T07:03:34.000Z
2018-12-24T07:03:34.000Z
55.jump-game.py
viewv/leetcode
b31e643846bb38978746342e3e3a94991178565a
[ "MIT" ]
2
2018-12-24T07:01:03.000Z
2019-06-07T13:38:07.000Z
# # @lc app=leetcode id=55 lang=python3 # # [55] Jump Game # class Solution: def canJump(self, nums: List[int]) -> bool: m = 0 for i, n in enumerate(nums): if i > m: return False m = max(m, i + n) return True
17.4375
47
0.480287
77689c99dd2c9d439c9fcc82ed4e8a532a11254f
454
py
Python
env/Lib/site-packages/plotly/validators/treemap/_hovertext.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
venv/Lib/site-packages/plotly/validators/treemap/_hovertext.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
venv/Lib/site-packages/plotly/validators/treemap/_hovertext.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class HovertextValidator(_plotly_utils.basevalidators.StringValidator): def __init__(self, plotly_name="hovertext", parent_name="treemap", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
34.923077
81
0.667401
c09e29b4ae3434c4696c23ae1a345b3dea9ea81e
220
py
Python
2 semester/AP/Practics/2022-02-09/3_2.py
kurpenok/Labs
069c92b7964a1445d093313b38ebdc56318d2a73
[ "MIT" ]
1
2022-02-06T17:50:25.000Z
2022-02-06T17:50:25.000Z
2 semester/AP/Practics/2022-02-09/3_2.py
kurpenok/Labs
069c92b7964a1445d093313b38ebdc56318d2a73
[ "MIT" ]
null
null
null
2 semester/AP/Practics/2022-02-09/3_2.py
kurpenok/Labs
069c92b7964a1445d093313b38ebdc56318d2a73
[ "MIT" ]
1
2022-03-02T06:45:06.000Z
2022-03-02T06:45:06.000Z
count = 0 while True: number = float(input("[>] Enter real number: ")) if number <= 36.6: if number < 0: count += 1 else: break print(f"[>] Count of negative numbers: {count}")
16.923077
52
0.518182
7b999fc2546db726625a098298be6a4befca9d6a
10,235
py
Python
lhotse/recipes/callhome_english.py
pzelasko/lhotse
41984467d2ead1dc69f418638b969e46f63308c7
[ "Apache-2.0" ]
64
2020-04-27T14:55:15.000Z
2020-10-25T06:57:56.000Z
lhotse/recipes/callhome_english.py
pzelasko/lhotse
41984467d2ead1dc69f418638b969e46f63308c7
[ "Apache-2.0" ]
85
2020-04-26T06:29:47.000Z
2020-10-19T20:28:52.000Z
lhotse/recipes/callhome_english.py
pzelasko/lhotse
41984467d2ead1dc69f418638b969e46f63308c7
[ "Apache-2.0" ]
17
2020-06-19T06:26:33.000Z
2020-10-12T15:19:15.000Z
""" About the Callhome American English CALLHOME American English Speech was developed by the Linguistic Data Consortium (LDC) and consists of 120 unscripted 30-minute telephone conversations between native speakers of English. All calls originated in North America; 90 of the 120 calls were placed ...
38.622642
85
0.638495
e26fbf4d88f0c1ab9c4acb6520ef230923630359
1,672
py
Python
src/undistort_and_transform.py
snandasena/udacity-dl
7ea13ec7ebd992f1199f43bd5300782436ed71e5
[ "Apache-2.0" ]
2
2020-12-04T11:52:01.000Z
2021-08-21T14:42:32.000Z
src/undistort_and_transform.py
snandasena/udacity-dl
7ea13ec7ebd992f1199f43bd5300782436ed71e5
[ "Apache-2.0" ]
null
null
null
src/undistort_and_transform.py
snandasena/udacity-dl
7ea13ec7ebd992f1199f43bd5300782436ed71e5
[ "Apache-2.0" ]
null
null
null
import pickle import cv2 import numpy as np import matplotlib.pyplot as plt import matplotlib.image as mpimg # Read in the saved camera matrix and distortion coefficients # These are the arrays you calculated using cv2.calibrateCamera() dist_pickle = pickle.load( open( "../calibration_wide/wide_dist_pickle.p", "rb" ) ...
30.962963
83
0.65012
db135931c718a3e13615c99c33e1a306663fd3bb
2,899
py
Python
plugins/tell.py
MemorableUsername/skybot
f5a9ed3a38d89febfca9219a0f746f978639f3b5
[ "Unlicense" ]
null
null
null
plugins/tell.py
MemorableUsername/skybot
f5a9ed3a38d89febfca9219a0f746f978639f3b5
[ "Unlicense" ]
null
null
null
plugins/tell.py
MemorableUsername/skybot
f5a9ed3a38d89febfca9219a0f746f978639f3b5
[ "Unlicense" ]
null
null
null
" tell.py: written by sklnd in July 2009" " 2010.01.25 - modified by Scaevolus" import time from util import hook, timesince def db_init(db): "check to see that our db has the tell table and return a dbection." db.execute("create table if not exists tell" "(user_to, user_from, message, ...
27.349057
79
0.565022
d4efefb0c59b8befed0a3eb00155e4cf9605d8f0
79
py
Python
openmc_plasma_source/plotting/__init__.py
mdfaisal98/openmc-plasma-source
e55d61ce6d641f4d382ce298b6f6335cd46bc507
[ "MIT" ]
null
null
null
openmc_plasma_source/plotting/__init__.py
mdfaisal98/openmc-plasma-source
e55d61ce6d641f4d382ce298b6f6335cd46bc507
[ "MIT" ]
null
null
null
openmc_plasma_source/plotting/__init__.py
mdfaisal98/openmc-plasma-source
e55d61ce6d641f4d382ce298b6f6335cd46bc507
[ "MIT" ]
null
null
null
from .plot_tokamak_source import plot_tokamak_source_3D, scatter_tokamak_source
79
79
0.924051
5c50c78daf5a441485f4d6502e78fc4f806f7528
2,447
py
Python
vmware_nsx/plugins/nsx_v/vshield/vcns_driver.py
yebinama/vmware-nsx
5f59ce8d4668c24e0f4f934898fb4b4e63f1c2f4
[ "Apache-2.0" ]
null
null
null
vmware_nsx/plugins/nsx_v/vshield/vcns_driver.py
yebinama/vmware-nsx
5f59ce8d4668c24e0f4f934898fb4b4e63f1c2f4
[ "Apache-2.0" ]
null
null
null
vmware_nsx/plugins/nsx_v/vshield/vcns_driver.py
yebinama/vmware-nsx
5f59ce8d4668c24e0f4f934898fb4b4e63f1c2f4
[ "Apache-2.0" ]
1
2019-06-21T18:07:53.000Z
2019-06-21T18:07:53.000Z
# Copyright 2013 VMware, 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 or agreed...
39.467742
78
0.706988
e625991e91ce92a86e5a56c39371578e5a61c06a
10,180
py
Python
sdk/python/pulumi_azure_native/devtestlab/v20160515/get_global_schedule.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/devtestlab/v20160515/get_global_schedule.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/devtestlab/v20160515/get_global_schedule.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
38.415094
324
0.65609
67e26c9ca6bb09f1714f1cd3c368850fad5ccc0c
113
py
Python
src/pycounts_rm/__init__.py
rezam747/pycounts_rm
08357dbc841b43b22cdc4d23313ab5aed0567bed
[ "MIT" ]
null
null
null
src/pycounts_rm/__init__.py
rezam747/pycounts_rm
08357dbc841b43b22cdc4d23313ab5aed0567bed
[ "MIT" ]
1
2022-01-16T23:47:46.000Z
2022-01-16T23:47:46.000Z
src/pycounts_rm/__init__.py
rezam747/pycounts_rm
08357dbc841b43b22cdc4d23313ab5aed0567bed
[ "MIT" ]
null
null
null
# read version from installed package from importlib.metadata import version __version__ = version("pycounts_rm")
37.666667
38
0.831858
40e852350ed1b9eabec234dcd74215b4a534bcc1
10,225
py
Python
client.py
Saldie883/AgarIO
1ee9850e5444c3182f11efd56e35d8fd90e785c8
[ "MIT" ]
null
null
null
client.py
Saldie883/AgarIO
1ee9850e5444c3182f11efd56e35d8fd90e785c8
[ "MIT" ]
null
null
null
client.py
Saldie883/AgarIO
1ee9850e5444c3182f11efd56e35d8fd90e785c8
[ "MIT" ]
null
null
null
from pygame.locals import K_w, K_a, K_s, K_d, K_i from math import sqrt, hypot import pickle import sys import random import codes as code import socket from tools import * import settings pygame.init() SCREEN_SIZE = settings.SCREEN_SIZE screen = pygame.display.set_mode(SCREEN_SIZE) pygame.font.init() font = pygame.f...
29.810496
161
0.582592
2e6301c047b88d43b7adeda6955bf91e9a23b7f3
1,730
py
Python
facility_management/facility_management/doctype/tenant_master/tenant_master.py
odoochain/facility_management
545146db4e58e90311934a9d39c77def2d2a3e70
[ "MIT" ]
null
null
null
facility_management/facility_management/doctype/tenant_master/tenant_master.py
odoochain/facility_management
545146db4e58e90311934a9d39c77def2d2a3e70
[ "MIT" ]
null
null
null
facility_management/facility_management/doctype/tenant_master/tenant_master.py
odoochain/facility_management
545146db4e58e90311934a9d39c77def2d2a3e70
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020, 9T9IT and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.model.document import Document from frappe.model.rename_doc import rename_doc from erpnext.accounts.party import ...
30.892857
88
0.75896
bba3f9483d14424781a595d6fb41e41bf9182112
272
py
Python
backend/discord_events/on_message.py
MattBSG/Inktober
39b83d6f7beb87b7acdc93951849d22178dc9928
[ "MIT" ]
1
2019-12-31T13:39:28.000Z
2019-12-31T13:39:28.000Z
backend/discord_events/on_message.py
MattBSG/Inktober
39b83d6f7beb87b7acdc93951849d22178dc9928
[ "MIT" ]
null
null
null
backend/discord_events/on_message.py
MattBSG/Inktober
39b83d6f7beb87b7acdc93951849d22178dc9928
[ "MIT" ]
4
2019-10-23T22:00:19.000Z
2020-09-29T17:54:18.000Z
from discord.ext import commands from bot import Bot as Client class OnMessageEvent(commands.Cog): def __init__(self, bot): self.bot: Client = bot async def on_message(self, message): pass def setup(bot): bot.add_cog(OnMessageEvent(bot))
17
40
0.6875
e4c7c734e70c9d8389853007cd0141b71799a2c1
2,448
py
Python
aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DescribeRenewalPriceRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DescribeRenewalPriceRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DescribeRenewalPriceRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
33.081081
73
0.768382
076839006c930dee73a64ef68a2e89c6825076fe
5,184
py
Python
resources/util/python/util.py
feliciatrinh/rhino
adafc0df0c8ed0451e610f2cdac562199515288e
[ "Apache-2.0" ]
null
null
null
resources/util/python/util.py
feliciatrinh/rhino
adafc0df0c8ed0451e610f2cdac562199515288e
[ "Apache-2.0" ]
null
null
null
resources/util/python/util.py
feliciatrinh/rhino
adafc0df0c8ed0451e610f2cdac562199515288e
[ "Apache-2.0" ]
null
null
null
import os import platform import subprocess def _pv_linux_machine(machine): if machine == 'x86_64': return machine cpu_info = subprocess.check_output(['cat', '/proc/cpuinfo']).decode() hardware_info = [x for x in cpu_info.split('\n') if 'Hardware' in x][0] model_info = [x for x i...
34.331126
131
0.626157
c6a28367db7d19aa95f578644a754a442c0808e3
7,302
py
Python
v0.8.2/routerrpc/router_pb2_grpc.py
lncm/lnd-proto
8caa6558efe043413560f807ef44b11699901d76
[ "MIT" ]
2
2020-02-10T09:46:06.000Z
2020-04-09T19:30:30.000Z
v0.8.2/routerrpc/router_pb2_grpc.py
lncm/lnd-proto
8caa6558efe043413560f807ef44b11699901d76
[ "MIT" ]
1
2020-01-24T18:58:23.000Z
2020-01-24T18:58:23.000Z
v0.8.2/routerrpc/router_pb2_grpc.py
lncm/lnd-proto
8caa6558efe043413560f807ef44b11699901d76
[ "MIT" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from routerrpc import router_pb2 as routerrpc_dot_router__pb2 class RouterStub(object): # missing associated documentation comment in .proto file pass def __init__(self, channel): """Constructor. Args: channel: A ...
43.987952
102
0.76075
4094e3445da3dd990afdf82466108662613c573d
557
py
Python
setup.py
leam-tech/renovation_logging
172be47b9b5f7a49590efcda3cf189687e514069
[ "MIT" ]
1
2021-06-19T12:10:12.000Z
2021-06-19T12:10:12.000Z
setup.py
leam-tech/renovation_logging
172be47b9b5f7a49590efcda3cf189687e514069
[ "MIT" ]
null
null
null
setup.py
leam-tech/renovation_logging
172be47b9b5f7a49590efcda3cf189687e514069
[ "MIT" ]
1
2021-06-19T12:10:15.000Z
2021-06-19T12:10:15.000Z
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('requirements.txt') as f: install_requires = f.read().strip().split('\n') # get version from __version__ variable in renovation_logging/__init__.py from renovation_logging import __version__ as version setup( name='renovation_logging', ...
26.52381
73
0.775583
db779befa3551685e5f59d446fe50a5c97a9505a
3,181
py
Python
multibuster/multibuster.py
aidanhall34/bbskiddytools
abd102d47d37182e0d5dae87e49e2819372ea258
[ "MIT" ]
null
null
null
multibuster/multibuster.py
aidanhall34/bbskiddytools
abd102d47d37182e0d5dae87e49e2819372ea258
[ "MIT" ]
null
null
null
multibuster/multibuster.py
aidanhall34/bbskiddytools
abd102d47d37182e0d5dae87e49e2819372ea258
[ "MIT" ]
null
null
null
#!/bin/python3 # This was written so I can run multipule gobuster instances at the same time. # At this stage it only allows you to run a default gobuster dir scan, probably more to come IDK # This should be run from a VPS to avoid IP bans / blocks from your home IP import os import argparse import subprocess import co...
41.855263
143
0.675574
38699030a50367bd268c62d877c5a18fb30fe5ef
267
py
Python
audio.py
andrew12/osr-stuff
db573bcd0782ee7bbe70ab2109812dde8cc18eee
[ "MIT" ]
27
2016-08-27T00:31:54.000Z
2020-07-21T07:37:25.000Z
audio.py
hannahherbig/osr-stuff
b73abf064d33db37d19f7d23d20218f8b49e93c1
[ "MIT" ]
25
2021-04-12T05:59:35.000Z
2022-02-07T00:12:42.000Z
audio.py
hannahherbig/osr-stuff
b73abf064d33db37d19f7d23d20218f8b49e93c1
[ "MIT" ]
8
2016-08-30T16:38:04.000Z
2020-05-13T10:44:33.000Z
import sys import time import pygame pygame.mixer.init(44100) pygame.mixer.music.load(sys.argv[1]) pygame.mixer.music.play() while pygame.mixer.music.get_busy(): sys.stdout.write("%d\r" % pygame.mixer.music.get_pos()) time.sleep(0.01) pygame.mixer.quit()
17.8
59
0.726592
aa541d5b8dbeef5faa34c18d83795f884bfab485
40,217
py
Python
VirtualBox-5.0.0/src/VBox/Devices/EFI/Firmware/BaseTools/Source/Python/UPT/PomAdapter/InfPomAlignment.py
egraba/vbox_openbsd
6cb82f2eed1fa697d088cecc91722b55b19713c2
[ "MIT" ]
1
2015-04-30T14:18:45.000Z
2015-04-30T14:18:45.000Z
VirtualBox-5.0.0/src/VBox/Devices/EFI/Firmware/BaseTools/Source/Python/UPT/PomAdapter/InfPomAlignment.py
egraba/vbox_openbsd
6cb82f2eed1fa697d088cecc91722b55b19713c2
[ "MIT" ]
null
null
null
VirtualBox-5.0.0/src/VBox/Devices/EFI/Firmware/BaseTools/Source/Python/UPT/PomAdapter/InfPomAlignment.py
egraba/vbox_openbsd
6cb82f2eed1fa697d088cecc91722b55b19713c2
[ "MIT" ]
null
null
null
## @file InfPomAlignment.py # This file contained the adapter for convert INF parser object to POM Object # # Copyright (c) 2011, Intel Corporation. All rights reserved.<BR> # # This program and the accompanying materials are licensed and made available # under the terms and conditions of the BSD License which accompa...
41.375514
118
0.588358
ab829bdad4889d102b33b8fdd5876070b96c15dd
369
py
Python
entries/models.py
eliusmgani/my-diary
14a20ac5c7fbae73402bb28f23767568a80e5379
[ "MIT" ]
null
null
null
entries/models.py
eliusmgani/my-diary
14a20ac5c7fbae73402bb28f23767568a80e5379
[ "MIT" ]
null
null
null
entries/models.py
eliusmgani/my-diary
14a20ac5c7fbae73402bb28f23767568a80e5379
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone # Create your models here. class Entry(models.Model): title = models.CharField(max_length=200) content = models.TextField() date_created = models.DateTimeField(default=timezone.now) def __str__(self): return self.title cl...
24.6
61
0.710027
46fa40eb0d6ceb820fa30662480106a015c2838b
4,088
py
Python
flexpart_alto/nbs/nb_run_2021-03-14_20-15-10_LONG/z035_get_flx_log_pol_coords_puhti_array.py
daliagachc/flexpart-alto
2663fad47239989bb4aff0e2058bfd62e2489d07
[ "Xnet", "X11" ]
null
null
null
flexpart_alto/nbs/nb_run_2021-03-14_20-15-10_LONG/z035_get_flx_log_pol_coords_puhti_array.py
daliagachc/flexpart-alto
2663fad47239989bb4aff0e2058bfd62e2489d07
[ "Xnet", "X11" ]
null
null
null
flexpart_alto/nbs/nb_run_2021-03-14_20-15-10_LONG/z035_get_flx_log_pol_coords_puhti_array.py
daliagachc/flexpart-alto
2663fad47239989bb4aff0e2058bfd62e2489d07
[ "Xnet", "X11" ]
null
null
null
# --- # jupyter: # jupytext: # formats: ipynb,py:percent # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.6.0 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # %% """ README: this...
14.6
77
0.68909
8a0c0357f31101300db4184fd5989fef7ad5031e
421
py
Python
C3_Decorator_Pattern/StarBuzz/Condiments/SteamedMilk.py
sarada92/Design_Pattern
f817206a6f995bc6f534d7cabb3a290955f37d33
[ "MIT" ]
1
2022-02-06T15:42:09.000Z
2022-02-06T15:42:09.000Z
C3_Decorator_Pattern/StarBuzz/Condiments/SteamedMilk.py
sarada92/Design_Pattern
f817206a6f995bc6f534d7cabb3a290955f37d33
[ "MIT" ]
null
null
null
C3_Decorator_Pattern/StarBuzz/Condiments/SteamedMilk.py
sarada92/Design_Pattern
f817206a6f995bc6f534d7cabb3a290955f37d33
[ "MIT" ]
null
null
null
from C3_Decorator_Pattern.StarBuzz.Beverages.Beverages import Beverages from C3_Decorator_Pattern.StarBuzz.Condiments.Condiments import Condiments class SteamedMilk(Condiments): def __init__(self, beverage: Beverages): self.beverage = beverage def get_description(self): return self.beverage....
28.066667
74
0.743468
e389afb5cb0021252f5988c208f309df79c0a931
2,046
py
Python
buildscripts/sourcepush.py
sayfullah/MongoPi
8205c77e634a2db210938ae97dbe09fdaaa43736
[ "Apache-2.0" ]
5
2015-02-02T04:51:58.000Z
2019-01-22T03:01:38.000Z
buildscripts/sourcepush.py
sayfullah/MongoPi
8205c77e634a2db210938ae97dbe09fdaaa43736
[ "Apache-2.0" ]
null
null
null
buildscripts/sourcepush.py
sayfullah/MongoPi
8205c77e634a2db210938ae97dbe09fdaaa43736
[ "Apache-2.0" ]
2
2015-02-19T10:19:03.000Z
2020-10-29T07:00:33.000Z
import os import sys sys.path.append( "." ) sys.path.append( ".." ) sys.path.append( "../../" ) sys.path.append( "../../../" ) import simples3 import settings import subprocess # this pushes all source balls as tgz and zip def run_git( args ): cmd = "git " + args cmd = cmd.split( " " ) x = subprocess.P...
28.816901
111
0.581623
005b66ee6e157ff9d1d45683ab007a99f0de9536
262
gyp
Python
Dependencies/gyp-master/test/standalone/standalone.gyp
knight666/exlibris
b21b46e0c84e5c4f81f8048022cda88e7bb3dca2
[ "MIT" ]
null
null
null
Dependencies/gyp-master/test/standalone/standalone.gyp
knight666/exlibris
b21b46e0c84e5c4f81f8048022cda88e7bb3dca2
[ "MIT" ]
null
null
null
Dependencies/gyp-master/test/standalone/standalone.gyp
knight666/exlibris
b21b46e0c84e5c4f81f8048022cda88e7bb3dca2
[ "MIT" ]
null
null
null
# Copyright (c) 2009 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ { 'target_name' : 'foo', 'type' : 'executable' }, ] }
20.153846
73
0.580153
55cf6a2582273a280e4356d752cb29b4f15375e6
168
py
Python
swampyer/__init__.py
zabertech/python-swampyer
4181db7d11439cc2a79b5a7d7b2b7c581abf59ec
[ "MIT" ]
1
2022-03-10T00:10:19.000Z
2022-03-10T00:10:19.000Z
swampyer/__init__.py
zabertech/python-swampyer
4181db7d11439cc2a79b5a7d7b2b7c581abf59ec
[ "MIT" ]
4
2021-05-12T21:56:56.000Z
2021-05-12T22:02:20.000Z
swampyer/__init__.py
zabertech/python-swampyer
4181db7d11439cc2a79b5a7d7b2b7c581abf59ec
[ "MIT" ]
2
2018-06-10T12:50:21.000Z
2019-10-23T17:16:26.000Z
from .common import * from .messages import * from .utils import logger from .exceptions import * from .transport import * from .queues import * from .client import *
18.666667
25
0.75
eae0e8628f05e50a1c16387e543ab329cef08654
429
py
Python
init.py
jamro/oversort
19b1da5adc71eef84d0b88faa9c3e721589a4fd2
[ "MIT" ]
1
2020-03-02T01:26:59.000Z
2020-03-02T01:26:59.000Z
init.py
jamro/oversort
19b1da5adc71eef84d0b88faa9c3e721589a4fd2
[ "MIT" ]
null
null
null
init.py
jamro/oversort
19b1da5adc71eef84d0b88faa9c3e721589a4fd2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import vagrant import click @click.command() def run(): """Creates VMs for Docker Swarm cluster""" currentDir = os.path.dirname(os.path.realpath(__file__)); rootDir = os.chdir(os.path.join(currentDir, 'vagrant')) v = vagrant.Vagrant(root=rootDir, quiet_stdout=False) ...
22.578947
61
0.675991
bcfcfe8612acb0d91c36f10e536c3dc7af4dcb3a
377
py
Python
algorithms/insertion_sort_fast.py
parisam83/Sorting-Algorithms
d2edf8e87e239a8539b7e09ecb2fee8560c6ef63
[ "MIT" ]
20
2019-05-19T00:26:38.000Z
2022-01-30T15:09:48.000Z
algorithms/insertion_sort_fast.py
parisam83/Sorting-Algorithms
d2edf8e87e239a8539b7e09ecb2fee8560c6ef63
[ "MIT" ]
null
null
null
algorithms/insertion_sort_fast.py
parisam83/Sorting-Algorithms
d2edf8e87e239a8539b7e09ecb2fee8560c6ef63
[ "MIT" ]
2
2019-06-13T16:01:17.000Z
2020-07-15T05:18:25.000Z
'''This insertion sort algorithm is faster and much more easier to understand for beginners...''' def insertion_sort_fast(arr): for i in range(1, len(arr)): j = i - 1 for k in range(i): if arr[i] < arr[j]: arr[i], arr[j] = arr[j], arr[i] i = i -1 ...
22.176471
45
0.517241
af1b0a2231233013e27bf22d098fddce0084f694
991
py
Python
var/spack/repos/builtin/packages/r-limma/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-09-10T22:50:08.000Z
2021-01-12T22:18:54.000Z
var/spack/repos/builtin/packages/r-limma/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
14
2021-07-20T01:04:53.000Z
2022-03-02T01:08:36.000Z
var/spack/repos/builtin/packages/r-limma/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2021-05-06T00:17:46.000Z
2021-05-06T00:17:46.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RLimma(RPackage): """Linear Models for Microarray Data. Data analysis, linear mode...
36.703704
78
0.718466
77b53fc98ee9d50b3e329ea5fe7af460a986bac4
2,747
py
Python
pyphoenix/errors.py
melnikovmaksimv/pyPhoenix
3e1af26ed231bcf2e1f871d28517888733ed1d37
[ "Apache-2.0" ]
16
2017-03-24T00:25:43.000Z
2020-08-14T14:00:46.000Z
pyphoenix/errors.py
melnikovmaksimv/pyPhoenix
3e1af26ed231bcf2e1f871d28517888733ed1d37
[ "Apache-2.0" ]
1
2018-01-06T07:41:53.000Z
2018-01-11T20:59:15.000Z
pyphoenix/errors.py
melnikovmaksimv/pyPhoenix
3e1af26ed231bcf2e1f871d28517888733ed1d37
[ "Apache-2.0" ]
13
2017-03-24T00:25:46.000Z
2021-07-23T08:58:09.000Z
# Copyright 2015 Lukas Lalinsky # # 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...
31.215909
107
0.720058
833d06cb33e829ef374e62419db6b0e9392eddca
7,363
py
Python
doudizhu_solver.py
kammaron/doudizhu_solver
be7de80878c1de9ee493c83970443dacaeb0f6c0
[ "MIT" ]
null
null
null
doudizhu_solver.py
kammaron/doudizhu_solver
be7de80878c1de9ee493c83970443dacaeb0f6c0
[ "MIT" ]
null
null
null
doudizhu_solver.py
kammaron/doudizhu_solver
be7de80878c1de9ee493c83970443dacaeb0f6c0
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- # Author: Tim Wu # Author: Carl King # Author: Kamma Ron # 牌型枚举 class COMB_TYPE: PASS, SINGLE, PAIR, TRIPLE, TRIPLE_ONE, TRIPLE_TWO, FOURTH_TWO_ONES, FOURTH_TWO_PAIRS, STRIGHT, BOMB = range(10) # 3-14 分别代表 3-10, J, Q, K, A # 16, 18, 19 分别代表 2, little_joker, big_joker # 将 2 与其他牌分开是为了方便计算...
28.210728
129
0.556159
c754a4dec31807194fb9f45a727f35da8a7d58f1
795
py
Python
ws2122-lspm/Lib/site-packages/pm4py/algo/conformance/antialignments/variants/__init__.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-19T04:02:46.000Z
2022-01-19T04:02:46.000Z
ws2122-lspm/Lib/site-packages/pm4py/algo/conformance/antialignments/variants/__init__.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2021-11-19T07:21:48.000Z
2021-11-19T07:21:48.000Z
ws2122-lspm/Lib/site-packages/pm4py/algo/conformance/antialignments/variants/__init__.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-14T17:15:38.000Z
2022-01-14T17:15:38.000Z
''' This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de). PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any late...
44.166667
76
0.744654
bacbf38fda67ef991b1de8f7521d21124fa94330
389
py
Python
profiles_api/urls.py
foreverals2002/profiles_rest_api
176df33423e03c2b3599960ede046c7e9922b08f
[ "MIT" ]
null
null
null
profiles_api/urls.py
foreverals2002/profiles_rest_api
176df33423e03c2b3599960ede046c7e9922b08f
[ "MIT" ]
null
null
null
profiles_api/urls.py
foreverals2002/profiles_rest_api
176df33423e03c2b3599960ede046c7e9922b08f
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework.routers import DefaultRouter from profiles_api import views router = DefaultRouter() router.register('hello-viewset', views.HelloViewSet, base_name='hello-viewset') router.register('profile', views.UserProfileViewSet) urlpatterns = [ path("hello-view/",...
24.3125
79
0.766067
06df4b92069334f1063e6a6dcbb8672013aba3e9
2,099
py
Python
tests/test_server_info.py
handycz/opcua-mock
cc3aab7a847ae5c1ff9fda64f2e3cff13d9b5878
[ "MIT" ]
null
null
null
tests/test_server_info.py
handycz/opcua-mock
cc3aab7a847ae5c1ff9fda64f2e3cff13d9b5878
[ "MIT" ]
4
2022-03-24T12:20:30.000Z
2022-03-24T12:50:54.000Z
tests/test_server_info.py
handycz/opcua-mock
cc3aab7a847ae5c1ff9fda64f2e3cff13d9b5878
[ "MIT" ]
null
null
null
import asyncio import pytest from uamockapp.server import MockServer @pytest.mark.asyncio async def test_server_read_data_image(mock_server: MockServer): data = await mock_server.get_data_image() expected = dict({ '1:Var1': 15, '1:Var2': 11, '1:Obj/2:Var3': 101 }) assert data...
27.618421
83
0.661744
02bf58b7b2e8fbdf9d40e9a5ea002c8d58b7649a
1,826
py
Python
BptImporter/BptImporter.py
blindstitch/BptImporter
c1f815a0eec4bb270a23de4b75191bb22ad104ae
[ "MIT" ]
1
2019-05-10T03:49:50.000Z
2019-05-10T03:49:50.000Z
BptImporter/BptImporter.py
blindstitch/BptImporter
c1f815a0eec4bb270a23de4b75191bb22ad104ae
[ "MIT" ]
null
null
null
BptImporter/BptImporter.py
blindstitch/BptImporter
c1f815a0eec4bb270a23de4b75191bb22ad104ae
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import pandas import re def sanitize(string): string = string.lower() string = re.sub(r' ','_',string) string = re.sub(r'[^a-zA-Z_]','',string) return string class BptImporter(): playName = '' dirtyData = '' headers = [] cleanedData = pandas.DataFrame() de...
35.803922
96
0.591457
715a71410b6d4f21281942354e3f8728191f885b
5,514
py
Python
contrib/seeds/makeseeds.py
bytn-team/byt
a978b71d938fceeaba3a03856d0ba91f65bbb93c
[ "MIT" ]
1
2020-08-07T15:00:09.000Z
2020-08-07T15:00:09.000Z
contrib/seeds/makeseeds.py
bytn-team/byt
a978b71d938fceeaba3a03856d0ba91f65bbb93c
[ "MIT" ]
null
null
null
contrib/seeds/makeseeds.py
bytn-team/byt
a978b71d938fceeaba3a03856d0ba91f65bbb93c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2013-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Generate seeds.txt from Pieter's DNS seeder # NSEEDS=512 MAX_SEEDS_PER_ASN=2 MIN_BLOCKS = 615801 #...
32.05814
186
0.566921
0b51f2877c48f7b9194404bfd2a62f1b753d9471
608
py
Python
runoob/basic_tutorial/greater.py
zeroonegit/python
919f8bb14ae91e37e42ff08192df24b60135596f
[ "MIT" ]
1
2017-03-30T00:43:40.000Z
2017-03-30T00:43:40.000Z
runoob/basic_tutorial/greater.py
QuinceySun/Python
919f8bb14ae91e37e42ff08192df24b60135596f
[ "MIT" ]
null
null
null
runoob/basic_tutorial/greater.py
QuinceySun/Python
919f8bb14ae91e37e42ff08192df24b60135596f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################ # File Name: greater.py # Author: One Zero # Mail: zeroonegit@gmail.com # Created Time: 2015-12-28 00:09:13 ############################ # 定义函数 def lcm(x, y): # 获取最大的数 if x > y: greater = x else: greater = y w...
19
63
0.481908
98e138c9f680371a29cb3c7588e0b7e0a6688d71
25,339
py
Python
farm/modeling/biadaptive_model.py
AymericSallet/farmlibrary
b2dae8e078ae1e77216819f7dad4dff407817d72
[ "Apache-2.0" ]
1
2021-07-06T07:22:41.000Z
2021-07-06T07:22:41.000Z
farm/modeling/biadaptive_model.py
AymericSallet/farmlibrary
b2dae8e078ae1e77216819f7dad4dff407817d72
[ "Apache-2.0" ]
null
null
null
farm/modeling/biadaptive_model.py
AymericSallet/farmlibrary
b2dae8e078ae1e77216819f7dad4dff407817d72
[ "Apache-2.0" ]
1
2022-01-27T19:06:04.000Z
2022-01-27T19:06:04.000Z
import copy import json import logging import os from argparse import Namespace from pathlib import Path import multiprocessing import numpy import torch from torch import nn from farm.data_handler.processor import TextSimilarityProcessor from farm.data_handler.data_silo import DataSilo from farm.modeling.language_mo...
48.449331
158
0.639528
636190b608602cc20459af491f011dd3ae6c41da
2,374
py
Python
FastSimulation/Tracking/python/iterativeTk_cff.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
2
2020-10-26T18:40:32.000Z
2021-04-10T16:33:25.000Z
FastSimulation/Tracking/python/iterativeTk_cff.py
gartung/cmssw
3072dde3ce94dcd1791d778988198a44cde02162
[ "Apache-2.0" ]
30
2015-11-04T11:42:27.000Z
2021-12-01T07:56:34.000Z
FastSimulation/Tracking/python/iterativeTk_cff.py
gartung/cmssw
3072dde3ce94dcd1791d778988198a44cde02162
[ "Apache-2.0" ]
8
2016-03-25T07:17:43.000Z
2021-07-08T17:11:21.000Z
############################## # FastSim equivalent of RecoTracker/IterativeTracking/python/iterativeTk_cff.py ############################## import FWCore.ParameterSet.Config as cms from Configuration.Eras.Modifier_trackingPhase1_cff import trackingPhase1 from TrackingTools.MaterialEffects.MaterialPropagatorParaboli...
40.237288
155
0.820135
732df0b6ec0adf9a5f5bb2e97551e3d5016b16ec
1,776
py
Python
pyot/utils/decorators.py
andrewdge/Pyot
a0b44a4462fd643bb21fbdc349beb9546543997c
[ "MIT" ]
null
null
null
pyot/utils/decorators.py
andrewdge/Pyot
a0b44a4462fd643bb21fbdc349beb9546543997c
[ "MIT" ]
null
null
null
pyot/utils/decorators.py
andrewdge/Pyot
a0b44a4462fd643bb21fbdc349beb9546543997c
[ "MIT" ]
null
null
null
from functools import wraps def silence_event_loop_closed(func): '''Silences the Exception `RuntimeError: Event loop is closed` in a class method.''' @wraps(func) def wrapper(self, *args, **kwargs): try: return func(self, *args, **kwargs) except RuntimeError as e: i...
31.714286
88
0.60473
b90419e46c0abd08c0bcb8ce119b9752d1585a5d
98,752
py
Python
src/run/RTyyyy_runcore.py
ben-github/NXP-MCUBootUtility
3ff9fa203d667844f83a08c855fef85723d2612e
[ "Apache-2.0" ]
null
null
null
src/run/RTyyyy_runcore.py
ben-github/NXP-MCUBootUtility
3ff9fa203d667844f83a08c855fef85723d2612e
[ "Apache-2.0" ]
null
null
null
src/run/RTyyyy_runcore.py
ben-github/NXP-MCUBootUtility
3ff9fa203d667844f83a08c855fef85723d2612e
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- import sys import os import math import RTyyyy_rundef import rundef import boot sys.path.append(os.path.abspath("..")) from gen import RTyyyy_gencore from gen import RTyyyy_gendef from fuse import RTyyyy_fusedef from ui import RTyyyy_uidef from ui import uidef from ui impo...
59.310511
346
0.639217
b7aed576b89c7c7895cc8ad6215314d8a2e5dacb
3,451
py
Python
tests/system/reserves/balance/test_lf_reserves_down.py
souissim/gridpath
4eeca2be24b485edc56026e38cfda83f4a6b27ea
[ "Apache-2.0" ]
null
null
null
tests/system/reserves/balance/test_lf_reserves_down.py
souissim/gridpath
4eeca2be24b485edc56026e38cfda83f4a6b27ea
[ "Apache-2.0" ]
null
null
null
tests/system/reserves/balance/test_lf_reserves_down.py
souissim/gridpath
4eeca2be24b485edc56026e38cfda83f4a6b27ea
[ "Apache-2.0" ]
1
2021-12-21T20:44:21.000Z
2021-12-21T20:44:21.000Z
# Copyright 2016-2020 Blue Marble Analytics 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 ag...
31.372727
87
0.687047
9f875df69844a27b4ab52a7e04de1730de137182
14,996
py
Python
tests/test_registration.py
KonstantinKlepikov/scikit-fda
93c4ad80aaba8739b4f90932a2a759d6f5960387
[ "BSD-3-Clause" ]
1
2020-06-27T22:25:49.000Z
2020-06-27T22:25:49.000Z
tests/test_registration.py
KonstantinKlepikov/scikit-fda
93c4ad80aaba8739b4f90932a2a759d6f5960387
[ "BSD-3-Clause" ]
null
null
null
tests/test_registration.py
KonstantinKlepikov/scikit-fda
93c4ad80aaba8739b4f90932a2a759d6f5960387
[ "BSD-3-Clause" ]
null
null
null
from skfda import FDataGrid from skfda._utils import _check_estimator from skfda.datasets import (make_multimodal_samples, make_multimodal_landmarks, make_sinusoidal_process) from skfda.exploratory.stats import mean from skfda.preprocessing.registration import ( normalize_warping, invert...
37.210918
79
0.650507
5a8ee9cd36f1b581bb1303980b774ba48b229a22
2,302
py
Python
examples/dfp/v201711/user_team_association_service/create_user_team_associations.py
christineyi3898/googleads-python-lib
cd707dc897b93cf1bbb19355f7424e7834e7fb55
[ "Apache-2.0" ]
1
2019-10-21T04:10:22.000Z
2019-10-21T04:10:22.000Z
examples/dfp/v201711/user_team_association_service/create_user_team_associations.py
christineyi3898/googleads-python-lib
cd707dc897b93cf1bbb19355f7424e7834e7fb55
[ "Apache-2.0" ]
null
null
null
examples/dfp/v201711/user_team_association_service/create_user_team_associations.py
christineyi3898/googleads-python-lib
cd707dc897b93cf1bbb19355f7424e7834e7fb55
[ "Apache-2.0" ]
1
2019-10-21T04:10:51.000Z
2019-10-21T04:10:51.000Z
#!/usr/bin/env python # # Copyright 2015 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 requir...
33.852941
78
0.732407
7fd51ca08d258beb6ec528fad093cd00ed4723e9
11,745
py
Python
electroncash_gui/qt/bip38_importer.py
thonkle/ElectrumABC
e0d58a1336e067957175242880d3e953a8dcbc2c
[ "MIT" ]
23
2020-11-23T21:49:20.000Z
2022-02-23T05:43:44.000Z
electroncash_gui/qt/bip38_importer.py
thonkle/ElectrumABC
e0d58a1336e067957175242880d3e953a8dcbc2c
[ "MIT" ]
73
2020-11-24T19:04:12.000Z
2022-03-25T15:09:37.000Z
electroncash_gui/qt/bip38_importer.py
thonkle/ElectrumABC
e0d58a1336e067957175242880d3e953a8dcbc2c
[ "MIT" ]
6
2020-11-24T05:53:14.000Z
2022-01-24T16:09:36.000Z
# -*- mode: python3 -*- # Electron Cash - (C) 2019 The Electron Cash Developers and Electron Cash LLC # import threading from PyQt5.QtCore import Qt, QTimer, pyqtSignal from PyQt5.QtGui import QFont from PyQt5 import QtWidgets from .util import ( MONOSPACE_FONT, Buttons, CancelButton, ColorScheme, ...
44.657795
206
0.64189
38ac17bbd4b48d0fcd498666963069d9df00e7ac
6,940
py
Python
open_seq2seq/encoders/w2l_encoder.py
trevor-m/OpenSeq2Seq
0d2629d0df19fd86c90ff327edb3fc9206367773
[ "Apache-2.0" ]
null
null
null
open_seq2seq/encoders/w2l_encoder.py
trevor-m/OpenSeq2Seq
0d2629d0df19fd86c90ff327edb3fc9206367773
[ "Apache-2.0" ]
null
null
null
open_seq2seq/encoders/w2l_encoder.py
trevor-m/OpenSeq2Seq
0d2629d0df19fd86c90ff327edb3fc9206367773
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 NVIDIA Corporation from __future__ import absolute_import, division, print_function from __future__ import unicode_literals import tensorflow as tf from .encoder import Encoder from open_seq2seq.parts.cnns.conv_blocks import conv_actv, conv_bn_actv, conv_ln_actv, conv_in_actv, conv_bn_res_bn_actv...
36.145833
120
0.602738
0f8ee91157a053a61c4de5515c9b7af4e81f86f5
3,275
py
Python
tests/test_openapi.py
sobolevn/django-swagger-tester
5f47ea8056c1a26a40c4c2f3b5b22dba84242f30
[ "BSD-3-Clause" ]
null
null
null
tests/test_openapi.py
sobolevn/django-swagger-tester
5f47ea8056c1a26a40c4c2f3b5b22dba84242f30
[ "BSD-3-Clause" ]
null
null
null
tests/test_openapi.py
sobolevn/django-swagger-tester
5f47ea8056c1a26a40c4c2f3b5b22dba84242f30
[ "BSD-3-Clause" ]
null
null
null
import pytest from django_swagger_tester.exceptions import OpenAPISchemaError from django_swagger_tester.openapi import ( read_items, list_types, read_type, read_properties, is_nullable, read_additional_properties, ) def test_read_items(): """ Ensure this helper function works as it's...
31.490385
112
0.634504
19943b2571adc70f7b5069bbcdcb7699eb2c5f73
290
py
Python
ex9.py
Csurlee/Python
1e8cd09a009f50c2459879517ca2a170b3235e33
[ "MIT" ]
null
null
null
ex9.py
Csurlee/Python
1e8cd09a009f50c2459879517ca2a170b3235e33
[ "MIT" ]
null
null
null
ex9.py
Csurlee/Python
1e8cd09a009f50c2459879517ca2a170b3235e33
[ "MIT" ]
null
null
null
days = "Mon Tue Wed Thu Fri Sat Sun" months = "\nJan\nFeb\nMar\nApr\nMay\nJun\nJul\nAug" print("Here are the days: ", days) print("here are the months: ", months) print(""" ddafdsfadsfasdfasdfasdf ddafdsfadsfasdfasdfasdfsdf ddafdsfadsfasdfasdfasdfasdf ddafdsfadsfasdfasdfasdfasdfasd """)
22.307692
51
0.772414
8d159f327b2b60fdf0be49c5c5ab3db430befb01
2,644
py
Python
palm/cutoff_parameter_set.py
milapour/palm
53cfce67f6621795ca419a79bd91c9ecf02cc93f
[ "BSD-2-Clause" ]
2
2015-03-25T13:02:32.000Z
2016-12-12T21:00:27.000Z
palm/cutoff_parameter_set.py
milapour/palm
53cfce67f6621795ca419a79bd91c9ecf02cc93f
[ "BSD-2-Clause" ]
null
null
null
palm/cutoff_parameter_set.py
milapour/palm
53cfce67f6621795ca419a79bd91c9ecf02cc93f
[ "BSD-2-Clause" ]
null
null
null
import numpy from palm.base.parameter_set import ParameterSet class CutoffParameterSet(ParameterSet): """ Parameters for a temporal cutoff model. The parameters are `tau` and `N`. Attributes ---------- parameter_dict : dict Parameter values, indexed by parameter names. bounds : dic...
31.47619
81
0.61233
68f3cc3b14f5ff487c8fe3129dd5d8e844c8fb35
96
py
Python
tests/test_tayle_test_task.py
Gogee90/Bank-account
ee5e7996f9f0d1ec95dca2eabf508ef17c18a124
[ "MIT" ]
null
null
null
tests/test_tayle_test_task.py
Gogee90/Bank-account
ee5e7996f9f0d1ec95dca2eabf508ef17c18a124
[ "MIT" ]
null
null
null
tests/test_tayle_test_task.py
Gogee90/Bank-account
ee5e7996f9f0d1ec95dca2eabf508ef17c18a124
[ "MIT" ]
null
null
null
from tayle_test_task import __version__ def test_version(): assert __version__ == '0.1.0'
16
39
0.739583
850a6b33f85e65092f369305aae0b3c6d0b51136
3,089
py
Python
setup.py
wgresshoff/invenio-cli
4723cc84d5aac9efb9d859c8be2fb34b97fc5d49
[ "MIT" ]
null
null
null
setup.py
wgresshoff/invenio-cli
4723cc84d5aac9efb9d859c8be2fb34b97fc5d49
[ "MIT" ]
null
null
null
setup.py
wgresshoff/invenio-cli
4723cc84d5aac9efb9d859c8be2fb34b97fc5d49
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2019-2020 CERN. # Copyright (C) 2019-2020 Northwestern University. # Copyright (C) 2021 TU Wien. # # Invenio-Cli is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Invenio module to ease t...
30.584158
77
0.648754
c60c01cde49e035320c42814b6c3e33fa3f5a639
6,218
py
Python
assets/src/ba_data/python/ba/_appconfig.py
Benefit-Zebra/ballistica
eb85df82cff22038e74a2d93abdcbe9cd755d782
[ "MIT" ]
null
null
null
assets/src/ba_data/python/ba/_appconfig.py
Benefit-Zebra/ballistica
eb85df82cff22038e74a2d93abdcbe9cd755d782
[ "MIT" ]
null
null
null
assets/src/ba_data/python/ba/_appconfig.py
Benefit-Zebra/ballistica
eb85df82cff22038e74a2d93abdcbe9cd755d782
[ "MIT" ]
null
null
null
# Released under the MIT License. See LICENSE for details. # """Provides the AppConfig class.""" from __future__ import annotations from typing import TYPE_CHECKING import _ba if TYPE_CHECKING: from typing import Any, List, Tuple class AppConfig(dict): """A special dict that holds the game's persistent con...
37.233533
79
0.645867
1dcc3e86dc124b9d55cb9dd88d3d6d3b19695b5b
1,094
py
Python
evaluation/measure_uiqm.py
rowantseng/FUnIE-GAN-PyTorch
d2c8064c7827001de3f4b7e71ae5b4fa2eff040c
[ "MIT" ]
6
2021-07-27T09:03:41.000Z
2022-01-01T05:17:27.000Z
evaluation/measure_uiqm.py
rowantseng/FUnIE-GAN-PyTorch
d2c8064c7827001de3f4b7e71ae5b4fa2eff040c
[ "MIT" ]
null
null
null
evaluation/measure_uiqm.py
rowantseng/FUnIE-GAN-PyTorch
d2c8064c7827001de3f4b7e71ae5b4fa2eff040c
[ "MIT" ]
1
2020-08-25T23:17:06.000Z
2020-08-25T23:17:06.000Z
""" # > Script for measuring quantitative performances in terms of # - Structural Similarity Metric (SSIM) # - Peak Signal to Noise Ratio (PSNR) # > Maintainer: https://github.com/xahidbuffon """ # python libs import numpy as np from PIL import Image, ImageOps from glob import glob from os.path import join from ...
28.051282
77
0.66362
7474564e9b6d85f3a497f1fb20bd7197508b0b20
522
py
Python
ex29.py
rishabhgautam/LPTHW_mynotes
eb462926ab924ea1096e0e81125e94f338b2ddd2
[ "MIT" ]
2
2021-03-07T17:13:49.000Z
2022-03-29T08:55:17.000Z
ex29.py
rishabhgautam/LPTHW_mynotes
eb462926ab924ea1096e0e81125e94f338b2ddd2
[ "MIT" ]
1
2021-06-10T20:17:55.000Z
2021-06-10T20:17:55.000Z
Learn-Python-The-Hard-Way/Python3/ex29.py
QuantFinEcon/py-learn
7151f01df9f7f096312e43434fe8026d1d7d7828
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # ex29: What If people = 20 cats = 30 dogs = 15 if people < cats: print("Too many cats! The world is doomed!") if people > cats: print("Not many cats! The world is saved!") if people < dogs: print("The world is drooled on!") if people > dogs: print("The world is dry!") dogs...
17.4
54
0.6341
207b884a2a1a3e3d3b7767813840fd28f003bc01
24,243
py
Python
Python/python3_version/klampt/plan/motionplanning.py
ipa-rmb-mr/Klampt
71793b54eead788811b4e62bcf8dadb49b68ff17
[ "BSD-3-Clause" ]
null
null
null
Python/python3_version/klampt/plan/motionplanning.py
ipa-rmb-mr/Klampt
71793b54eead788811b4e62bcf8dadb49b68ff17
[ "BSD-3-Clause" ]
null
null
null
Python/python3_version/klampt/plan/motionplanning.py
ipa-rmb-mr/Klampt
71793b54eead788811b4e62bcf8dadb49b68ff17
[ "BSD-3-Clause" ]
null
null
null
# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.8 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. """Python interface to C++ motion planing routines""" from sys import version_info if version_info >= (2, 6, 0):...
29.243667
133
0.630821
43ac62446c34dd70f9038bb3ad8c0150e4711618
8,373
py
Python
WebCabinet/t_withwrawal_uploads.py
Otsgolyak/shared_storage
81118a5e090973285e411c6cff385b832be90c9f
[ "Apache-2.0" ]
null
null
null
WebCabinet/t_withwrawal_uploads.py
Otsgolyak/shared_storage
81118a5e090973285e411c6cff385b832be90c9f
[ "Apache-2.0" ]
null
null
null
WebCabinet/t_withwrawal_uploads.py
Otsgolyak/shared_storage
81118a5e090973285e411c6cff385b832be90c9f
[ "Apache-2.0" ]
null
null
null
from selenium import webdriver from PageObject.cabinet.login_page import LoginPage from PageObject.cabinet.profile_page import ProfilePage from PageObject.cabinet.profile_page import EditProfilePage from PageObject.cabinet.profile_page import UploadFiles from PageObject.cabinet.withdrawal_page import UploadFilesWithdra...
63.916031
147
0.729965
f27c372d62f5120b8bcc9e14dc216f8482eb4829
1,150
py
Python
2017/day23.py
bovarysme/advent
9a7a3310984d4b7548ad23e2dfa017c6fe9e2c9c
[ "MIT" ]
4
2017-12-05T00:53:21.000Z
2018-12-03T14:00:56.000Z
2017/day23.py
bovarysme/advent
9a7a3310984d4b7548ad23e2dfa017c6fe9e2c9c
[ "MIT" ]
null
null
null
2017/day23.py
bovarysme/advent
9a7a3310984d4b7548ad23e2dfa017c6fe9e2c9c
[ "MIT" ]
null
null
null
from collections import defaultdict from math import sqrt def part_one(instructions): regs = defaultdict(int) regs['1'] = 1 ptr = 0 count = 0 while ptr >= 0 and ptr < len(instructions): op, reg, val = instructions[ptr].split() if val.isalpha(): val = regs[val] ...
21.296296
57
0.502609
a3126e49099945252f6f0bdb7d9e3e4f93e80b12
62,054
py
Python
utilities/facade-worker.py
mkdolan/facade
4360052bf10449d9e024fbd7679c74726910cf95
[ "Apache-2.0" ]
26
2017-07-15T09:13:33.000Z
2022-01-17T03:35:49.000Z
utilities/facade-worker.py
brianwarner/facade
f08cb6ab01016fd3febda1bb0963eafe61acdf89
[ "Apache-2.0" ]
40
2016-08-04T15:45:13.000Z
2022-02-14T15:43:57.000Z
utilities/facade-worker.py
mkdolan/facade
4360052bf10449d9e024fbd7679c74726910cf95
[ "Apache-2.0" ]
17
2016-08-05T18:28:05.000Z
2022-02-14T15:11:18.000Z
#!/usr/bin/python3 # Copyright 2016-2018 Brian Warner # # 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 ...
28.916123
120
0.712992
1bb7b64c48e1c04a817fcc5f49cf44b11d5de788
838
py
Python
src/tests/ftest/daos_perf/large.py
fedepad/daos
ac71a320b8426b1eeb1457b0b6f5e6e115dfc9aa
[ "BSD-2-Clause-Patent" ]
429
2016-09-28T20:43:20.000Z
2022-03-25T01:22:50.000Z
src/tests/ftest/daos_perf/large.py
fedepad/daos
ac71a320b8426b1eeb1457b0b6f5e6e115dfc9aa
[ "BSD-2-Clause-Patent" ]
6,341
2016-11-24T12:34:26.000Z
2022-03-31T23:53:46.000Z
src/tests/ftest/daos_perf/large.py
fedepad/daos
ac71a320b8426b1eeb1457b0b6f5e6e115dfc9aa
[ "BSD-2-Clause-Patent" ]
202
2016-10-30T14:47:53.000Z
2022-03-30T21:29:11.000Z
#!/usr/bin/python3 """ (C) Copyright 2019-2021 Intel Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent """ from daos_perf_base import DaosPerfBase class DaosPerfLarge(DaosPerfBase): # pylint: disable=too-many-ancestors """Tests daos_perf with different config. :avocado: recursive """ ...
25.393939
78
0.647971
4d4d055ec200bf1151fa7d9a6a860f04e7c8c658
1,686
py
Python
PythonAPI/carissma_project/lib/python3.5/site-packages/numpy/conftest.py
AbdulHoffmann/carla_carissma
8d382769ffa02a6c61a22c57160285505f5ff0a4
[ "MIT" ]
445
2019-01-26T13:50:26.000Z
2022-03-18T05:17:38.000Z
PythonAPI/carissma_project/lib/python3.5/site-packages/numpy/conftest.py
AbdulHoffmann/carla_carissma
8d382769ffa02a6c61a22c57160285505f5ff0a4
[ "MIT" ]
242
2019-01-29T15:48:27.000Z
2022-03-31T22:09:21.000Z
PythonAPI/carissma_project/lib/python3.5/site-packages/numpy/conftest.py
AbdulHoffmann/carla_carissma
8d382769ffa02a6c61a22c57160285505f5ff0a4
[ "MIT" ]
64
2018-04-25T08:51:57.000Z
2022-01-29T14:13:57.000Z
""" Pytest configuration and fixtures for the Numpy test suite. """ from __future__ import division, absolute_import, print_function import pytest import numpy from numpy.core._multiarray_tests import get_fpu_mode _old_fpu_mode = None _collect_results = {} #FIXME when yield tests are gone. @pytest.hookimpl() def ...
27.639344
79
0.661329
559a0200712d527492760f01dd88691e8ef4b8a6
3,258
py
Python
actor_critic_discrete.py
OmarOsman/Reinforcement-Learning-Trading-
19bb3eba31fd53fe699543584d06003ff38123ae
[ "MIT" ]
4
2019-12-22T12:54:33.000Z
2021-06-01T07:12:34.000Z
actor_critic_discrete.py
damonclifford/Reinforcement-Learning-Trading-
19bb3eba31fd53fe699543584d06003ff38123ae
[ "MIT" ]
null
null
null
actor_critic_discrete.py
damonclifford/Reinforcement-Learning-Trading-
19bb3eba31fd53fe699543584d06003ff38123ae
[ "MIT" ]
1
2020-02-14T01:35:30.000Z
2020-02-14T01:35:30.000Z
import torch as T import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import numpy as np from itertools import count from collections import namedtuple SavedAction = namedtuple('SavedAction', ['log_prob', 'value']) class ActorCriticNetwork(nn.Module): def __init__(self, alpha, input_...
36.2
113
0.616022
58d4617517bafff5b405eb09e96082fc79db3c20
611
py
Python
Project/Post/models.py
AashishKhanal69/PeakyBlinders_ADC7_PartII
a4474c02be4ee8f8405b51df2f1d215e56ac192d
[ "bzip2-1.0.6" ]
null
null
null
Project/Post/models.py
AashishKhanal69/PeakyBlinders_ADC7_PartII
a4474c02be4ee8f8405b51df2f1d215e56ac192d
[ "bzip2-1.0.6" ]
null
null
null
Project/Post/models.py
AashishKhanal69/PeakyBlinders_ADC7_PartII
a4474c02be4ee8f8405b51df2f1d215e56ac192d
[ "bzip2-1.0.6" ]
null
null
null
from django.db import models from django.conf import settings # Create your models here. class Post(models.Model): user = models.ForeignKey(settings.AUTH_USER_MODEL, default=1, on_delete=models.PROTECT) title = models.CharField(max_length=120) content = models.TextField() updated = models.DateTimeFiel...
35.941176
91
0.636661
2193511567c8f90fbfe2f4cb6d7fa0c8a2ee91b6
23,926
py
Python
spear/Implyloss/my_model.py
ayushbits/spear
22d55b5f707c01321a1ebe39aa5d2d554ea8e017
[ "MIT" ]
1
2021-11-08T07:52:03.000Z
2021-11-08T07:52:03.000Z
spear/Implyloss/my_model.py
ayushbits/spear
22d55b5f707c01321a1ebe39aa5d2d554ea8e017
[ "MIT" ]
null
null
null
spear/Implyloss/my_model.py
ayushbits/spear
22d55b5f707c01321a1ebe39aa5d2d554ea8e017
[ "MIT" ]
null
null
null
# import tensorflow as tf import tensorflow.compat.v1 as tf tf.disable_v2_behavior() import functools import math import numpy as np import sys,os from my_checkpoints import MRUCheckpoint, CheckpointsFactory from my_data_types import * import my_gen_cross_entropy_utils as gcross_utils # from my_gen_cross_entropy_utils...
37.384375
177
0.723523
efdb57f435390d6435c25d19c5dde97c076907a5
1,195
py
Python
alien.py
XinZhewu/Alien_Invasion
c6eb1141ba6522a218a9a9eaa528af1fa6fc336c
[ "MIT" ]
null
null
null
alien.py
XinZhewu/Alien_Invasion
c6eb1141ba6522a218a9a9eaa528af1fa6fc336c
[ "MIT" ]
null
null
null
alien.py
XinZhewu/Alien_Invasion
c6eb1141ba6522a218a9a9eaa528af1fa6fc336c
[ "MIT" ]
null
null
null
# coding=utf-8 # @Time : 2018/2/4 18:13 # @Author : XinZhewu_568580410@qq.com """此文件管理单个外星人的设置`绘制`碰撞`移动 """ import pygame from pygame.sprite import Sprite class Alien(Sprite): def __init__(self, ai_settings, screen): """初始化外星人,设置起始位置""" super(Alien, self).__init__() self.screen = scr...
20.964912
58
0.574059
4a9f9fbbe96b3f4c31a065ffa3ab9aa586d68b77
108
py
Python
src/easysub/__init__.py
mtahirtariq/easysub
d6083a7120991819719566d1e4daf7714b3db77a
[ "MIT" ]
null
null
null
src/easysub/__init__.py
mtahirtariq/easysub
d6083a7120991819719566d1e4daf7714b3db77a
[ "MIT" ]
null
null
null
src/easysub/__init__.py
mtahirtariq/easysub
d6083a7120991819719566d1e4daf7714b3db77a
[ "MIT" ]
null
null
null
from app import main from easysub import EasySub from common import File from fileparser import FileParser
18
33
0.842593
4674daf61ca1c81ba08b97f044cdfaa8e0be103d
1,862
py
Python
tests_adapters/test_bart.py
rahuln/adapter-transformers
ac3284547064686d31b95e5e1b078447a2199779
[ "Apache-2.0" ]
null
null
null
tests_adapters/test_bart.py
rahuln/adapter-transformers
ac3284547064686d31b95e5e1b078447a2199779
[ "Apache-2.0" ]
null
null
null
tests_adapters/test_bart.py
rahuln/adapter-transformers
ac3284547064686d31b95e5e1b078447a2199779
[ "Apache-2.0" ]
null
null
null
import unittest from tests.bart.test_modeling_bart import * from transformers import BartAdapterModel from transformers.testing_utils import require_torch from .test_adapter import AdapterTestBase, make_config from .test_adapter_backward_compability import CompabilityTestMixin from .test_adapter_common import Adapter...
28.212121
94
0.80666
df6c55d452da3bb44f8ad33a30c169e019a69eaa
2,199
py
Python
src/users/models/componentsschemasmicrosoft_graph_messageruleallof1.py
peombwa/Sample-Graph-Python-Client
3396f531fbe6bb40a740767c4e31aee95a3b932e
[ "MIT" ]
null
null
null
src/users/models/componentsschemasmicrosoft_graph_messageruleallof1.py
peombwa/Sample-Graph-Python-Client
3396f531fbe6bb40a740767c4e31aee95a3b932e
[ "MIT" ]
null
null
null
src/users/models/componentsschemasmicrosoft_graph_messageruleallof1.py
peombwa/Sample-Graph-Python-Client
3396f531fbe6bb40a740767c4e31aee95a3b932e
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
38.578947
157
0.627103