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
b7dfecdd9b0e8edcaab9f657dd99a57b3372168d
2,633
py
Python
c2rust-refactor/doc/gen_command_docs.py
mtlll/c2rust
402d157f7e6b25ea3d27da580a6561bca8d40d13
[ "BSD-3-Clause" ]
null
null
null
c2rust-refactor/doc/gen_command_docs.py
mtlll/c2rust
402d157f7e6b25ea3d27da580a6561bca8d40d13
[ "BSD-3-Clause" ]
null
null
null
c2rust-refactor/doc/gen_command_docs.py
mtlll/c2rust
402d157f7e6b25ea3d27da580a6561bca8d40d13
[ "BSD-3-Clause" ]
null
null
null
''' Generate Markdown-formatted documentation for c2rust-refactor commands. This works by extracting from the c2rust-refactor source code any doc comment starting with a line like this: # `foo` Command The command name is taken from this header line, and the remainder of the doc comment is included as the comman...
24.37963
92
0.59286
4490d39c1113cee3d6db04844b11650221118bf8
15,044
py
Python
eucaconsole/views/cloudwatchapi.py
dmitrii/eucaconsole
6de222023adbdd9c643a39eeeeed10680a3fb1fa
[ "BSD-2-Clause" ]
null
null
null
eucaconsole/views/cloudwatchapi.py
dmitrii/eucaconsole
6de222023adbdd9c643a39eeeeed10680a3fb1fa
[ "BSD-2-Clause" ]
10
2018-03-28T17:25:16.000Z
2021-03-05T10:15:06.000Z
eucaconsole/views/cloudwatchapi.py
dmitrii/eucaconsole
6de222023adbdd9c643a39eeeeed10680a3fb1fa
[ "BSD-2-Clause" ]
1
2019-06-07T20:43:45.000Z
2019-06-07T20:43:45.000Z
# -*- coding: utf-8 -*- # Copyright 2013-2017 Ent. Services Development Corporation LP # # Redistribution and use of this software in source and binary forms, # with or without modification, are permitted provided that the following # conditions are met: # # Redistributions of source code must retain the above copyrigh...
42.497175
118
0.62038
d29742aea025252735bf998cbb8c126e77d8f324
6,792
py
Python
hardware/GPIOControl.py
muma7490/PyLight
75fc809e69ae5f1ea3c44f6746f44c3e235e317f
[ "MIT" ]
null
null
null
hardware/GPIOControl.py
muma7490/PyLight
75fc809e69ae5f1ea3c44f6746f44c3e235e317f
[ "MIT" ]
9
2018-06-10T18:41:26.000Z
2018-06-14T18:38:45.000Z
hardware/GPIOControl.py
muma7490/PyLight
75fc809e69ae5f1ea3c44f6746f44c3e235e317f
[ "MIT" ]
null
null
null
try: import RPi.GPIO as GPIO piHW = True except Exception as e: print("Error import RPi. Assuming to be on a non Pi Hardware!") print(e) print("Setting Hardware to False") piHW = False from control.Database import DB from PyLightCommon.pylightcommon.models import EnumIOType from PyLi...
37.114754
121
0.57288
2aafb9a57f57576c8fa68f61541e42b6d798197b
12
py
Python
projects/pylg/test.py
quinn-dougherty/python-on-nix
910d3f6554acd4a4ef0425ebccd31104dccb283c
[ "Unlicense" ]
25
2021-10-30T19:54:59.000Z
2022-03-29T06:11:02.000Z
projects/pylg/test.py
quinn-dougherty/python-on-nix
910d3f6554acd4a4ef0425ebccd31104dccb283c
[ "Unlicense" ]
21
2021-10-19T01:09:38.000Z
2022-03-24T16:08:53.000Z
projects/pylg/test.py
quinn-dougherty/python-on-nix
910d3f6554acd4a4ef0425ebccd31104dccb283c
[ "Unlicense" ]
3
2022-01-25T20:25:13.000Z
2022-03-08T02:58:50.000Z
import pylg
6
11
0.833333
21da3a9ea23d0d1b519080977d2c1a1f2e622677
403
py
Python
django_plotly/django_plotly/asgi.py
rice-rabbit/binary-data-graph
e4a7ec8148d341d81231c94e760a7a1b828bd4d2
[ "MIT" ]
null
null
null
django_plotly/django_plotly/asgi.py
rice-rabbit/binary-data-graph
e4a7ec8148d341d81231c94e760a7a1b828bd4d2
[ "MIT" ]
null
null
null
django_plotly/django_plotly/asgi.py
rice-rabbit/binary-data-graph
e4a7ec8148d341d81231c94e760a7a1b828bd4d2
[ "MIT" ]
null
null
null
""" ASGI config for django_plotly project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO...
23.705882
78
0.791563
e592b9210345d76ba2518e9b9b9b648a720d77ae
2,358
py
Python
wild/AMOS/data/meta2report.py
164140757/wild
9e7143756403677492b9adf07fb4332cce2510fd
[ "Apache-2.0" ]
null
null
null
wild/AMOS/data/meta2report.py
164140757/wild
9e7143756403677492b9adf07fb4332cce2510fd
[ "Apache-2.0" ]
null
null
null
wild/AMOS/data/meta2report.py
164140757/wild
9e7143756403677492b9adf07fb4332cce2510fd
[ "Apache-2.0" ]
null
null
null
# environment settings import os import glob import pydicom import pandas as pd def mergeReportAndSeries(data_root, pre_series_report_files, series_meta_df, DF_PATH=''): """ Args: - pre_series_report_dirs: previous full report file list - data_root: new DICOM dir to find report csv - series_meta...
38.032258
164
0.675148
57eaddff4bd13e65e573ee19b6108891e9adb40b
629
py
Python
tests/wandb_history_test.py
theodumont/client
7402ac67ada5bc8078078a49fd3e0cb4b6172307
[ "MIT" ]
3,968
2017-08-23T21:27:19.000Z
2022-03-31T22:00:19.000Z
tests/wandb_history_test.py
theodumont/client
7402ac67ada5bc8078078a49fd3e0cb4b6172307
[ "MIT" ]
2,725
2017-04-17T00:29:15.000Z
2022-03-31T21:01:53.000Z
tests/wandb_history_test.py
theodumont/client
7402ac67ada5bc8078078a49fd3e0cb4b6172307
[ "MIT" ]
351
2018-04-08T19:39:34.000Z
2022-03-30T19:38:08.000Z
""" history test. """ import pytest # type: ignore from wandb import wandb_sdk class MockCallback(object): def __init__(self): self.row = None def callback(self, row=None, step=None): self.row = row def test_row_add(mocked_run): m = MockCallback() h = wandb_sdk.History(mocked_run...
19.060606
44
0.653418
cfffe3a7ec38e07823308ab959e1945e3f86d263
758
py
Python
tests/test_api_v1_status_system.py
bearstech/pfsense-api
f188f3699c20d61f560c50de9aba703e2a0f1d38
[ "Apache-2.0" ]
null
null
null
tests/test_api_v1_status_system.py
bearstech/pfsense-api
f188f3699c20d61f560c50de9aba703e2a0f1d38
[ "Apache-2.0" ]
null
null
null
tests/test_api_v1_status_system.py
bearstech/pfsense-api
f188f3699c20d61f560c50de9aba703e2a0f1d38
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Jared Hendrickson # # 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 wri...
36.095238
74
0.769129
11c4a2f50a88bd8698dd2eac740ac991d8406ec8
5,928
py
Python
systori/lib/test_templatetags.py
systori/systori
e309c63e735079ff6032fdaf1db354ec872b28b1
[ "BSD-3-Clause" ]
12
2018-01-30T00:44:06.000Z
2020-07-13T05:20:48.000Z
systori/lib/test_templatetags.py
systori/systori
e309c63e735079ff6032fdaf1db354ec872b28b1
[ "BSD-3-Clause" ]
36
2018-03-06T17:49:50.000Z
2020-06-23T19:26:00.000Z
systori/lib/test_templatetags.py
systori/systori
e309c63e735079ff6032fdaf1db354ec872b28b1
[ "BSD-3-Clause" ]
3
2018-08-03T07:03:09.000Z
2020-07-09T20:21:10.000Z
from django.test import TestCase from django.utils.translation import activate from .templatetags.customformatting import * class CustomFormattingTest(TestCase): def test_ubrdecimal_en(self): activate("en") self.assertEqual("", ubrdecimal(None)) self.assertEqual("", ubrdecimal("")) ...
40.326531
88
0.550607
d04b6687072e528b2ed4c7e54026bea823102a81
320
py
Python
number_theoretic_algorithm/01_prime-number-check/01-04.py
fumiyanll23/algo-method
d86ea1d399cbc5a1db0ae49d0c82e41042f661ab
[ "MIT" ]
null
null
null
number_theoretic_algorithm/01_prime-number-check/01-04.py
fumiyanll23/algo-method
d86ea1d399cbc5a1db0ae49d0c82e41042f661ab
[ "MIT" ]
null
null
null
number_theoretic_algorithm/01_prime-number-check/01-04.py
fumiyanll23/algo-method
d86ea1d399cbc5a1db0ae49d0c82e41042f661ab
[ "MIT" ]
null
null
null
def is_prime(n: int): if n == 1: return False i = 2 while i * i <= n: if n % i == 0: return False i += 1 return True def floor_prime(n: int): while not is_prime(n): n -= 1 return n # input N = int(input()) # compute # output print(floor_prime(N))
13.333333
26
0.4875
0bd8bbaa9110e65c9ec3107f0b62d068c433a172
836
py
Python
tests/programs/multiprocessing_using/foo/__main__.py
RESP3CT88/Nuitka
0fcc25d9f00c4fc78c79a863c4b7987f573962e1
[ "Apache-2.0" ]
5,421
2018-09-24T08:04:06.000Z
2022-03-31T20:02:37.000Z
tests/programs/multiprocessing_using/foo/__main__.py
RESP3CT88/Nuitka
0fcc25d9f00c4fc78c79a863c4b7987f573962e1
[ "Apache-2.0" ]
1,348
2018-09-22T13:41:00.000Z
2022-03-31T22:33:40.000Z
tests/programs/multiprocessing_using/foo/__main__.py
RESP3CT88/Nuitka
0fcc25d9f00c4fc78c79a863c4b7987f573962e1
[ "Apache-2.0" ]
396
2018-09-28T15:37:03.000Z
2022-03-29T10:52:09.000Z
# Copyright 2021, Kay Hayen, mailto:kay.hayen@gmail.com # # Python tests originally created or extracted from other peoples work. The # parts were too small to be protected. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the ...
38
79
0.712919
bf658eec943640f072ded6fb6f0530bd21afe168
5,986
py
Python
tensorflow_examples/lite/model_customization/core/task/classification_model.py
Aaronwang81/examples
2e914d75e7c66091765abebcefbd1d6addad5d6e
[ "Apache-2.0" ]
1
2019-10-01T07:58:59.000Z
2019-10-01T07:58:59.000Z
tensorflow_examples/lite/model_customization/core/task/classification_model.py
Aaronwang81/examples
2e914d75e7c66091765abebcefbd1d6addad5d6e
[ "Apache-2.0" ]
4
2021-06-08T20:59:48.000Z
2022-02-10T01:16:15.000Z
tensorflow_examples/lite/model_customization/core/task/classification_model.py
scoobiii/android
0762708d6e91d8ba2d13fc46caf569f18e3373e9
[ "Apache-2.0" ]
1
2019-10-01T07:59:06.000Z
2019-10-01T07:59:06.000Z
# Copyright 2019 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...
34.011364
83
0.705479
4878301b90b936c1cd1d393ffc06b072f3058cc2
248
py
Python
Model/Instruments/SLM/SkeletonSLM.py
xinwei015/Cold-atom-imaging
dd8e9b94affab3b9fde867e353541a46d209ccab
[ "MIT" ]
3
2019-10-18T14:38:25.000Z
2020-07-10T12:51:41.000Z
Model/Instruments/SLM/SkeletonSLM.py
xinwei015/Cold-atom-imaging
dd8e9b94affab3b9fde867e353541a46d209ccab
[ "MIT" ]
null
null
null
Model/Instruments/SLM/SkeletonSLM.py
xinwei015/Cold-atom-imaging
dd8e9b94affab3b9fde867e353541a46d209ccab
[ "MIT" ]
1
2019-10-18T14:38:39.000Z
2019-10-18T14:38:39.000Z
class slmBase(): def __init__(self): pass def load_img(self): pass def delete_img(self): pass def start_slm(self): pass def close_slm(self): pass def stop_slm(self): pass
13.052632
25
0.524194
112b2825cfb3d53fc1d9737781f46a44e3a89bdd
2,023
py
Python
training/course_1/functions.py
timothypearson/learning-python
4a4b6ccb2e733cb73c7ec0a6059c21c4fbfc707a
[ "MIT" ]
null
null
null
training/course_1/functions.py
timothypearson/learning-python
4a4b6ccb2e733cb73c7ec0a6059c21c4fbfc707a
[ "MIT" ]
17
2021-08-28T05:46:42.000Z
2021-09-01T21:09:09.000Z
training/course_1/functions.py
timothypearson/learning-python
4a4b6ccb2e733cb73c7ec0a6059c21c4fbfc707a
[ "MIT" ]
null
null
null
# Learn python - Full Course for Beginners [Tutorial] # https://www.youtube.com/watch?v=rfscVS0vtbw # freeCodeCamp.org # Course developed by Mike Dane. # Exercise: Functions # Date: 29 Aug 2021 # A function is a collection of code that performs a specific task # Functions help organise your code into manageable piece...
29.318841
101
0.735047
f1e8ab254e30d4932b764573a786d991f7c730db
5,516
py
Python
InfoGAN/src/utils/data_utils.py
mahomeL/DeepLearningImplementations
a6e873aab4ac349ecdea939dbf6db5fa9b7f6604
[ "MIT" ]
23
2017-07-07T07:00:52.000Z
2022-03-09T06:49:17.000Z
DeepLearningImplementations/InfoGAN/src/utils/data_utils.py
zhwhong/awesome-deep-learning
ba4302a8d65ac8b63627bcfa8e3b23871fa2c390
[ "CC0-1.0" ]
null
null
null
DeepLearningImplementations/InfoGAN/src/utils/data_utils.py
zhwhong/awesome-deep-learning
ba4302a8d65ac8b63627bcfa8e3b23871fa2c390
[ "CC0-1.0" ]
26
2017-06-13T01:44:24.000Z
2021-06-17T18:11:26.000Z
from keras.datasets import mnist from keras.utils import np_utils import numpy as np import h5py import matplotlib.pylab as plt def normalization(X): return X / 127.5 - 1 def inverse_normalization(X): return (X + 1.) / 2. def load_mnist(image_dim_ordering): (X_train, y_train), (X_test, y_test) = m...
30.988764
129
0.642857
6762e90db6df118481675ca40c9614bd37af22c5
1,513
py
Python
Algorithms/DynamicProgramming/Python/fib.py
Praggya17/HacktoberFestContribute
098cb1012f1f2ed6ca6b3544a7b962b6c49e2643
[ "MIT" ]
98
2018-10-09T15:42:41.000Z
2021-10-04T15:25:44.000Z
Algorithms/DynamicProgramming/Python/fib.py
Praggya17/HacktoberFestContribute
098cb1012f1f2ed6ca6b3544a7b962b6c49e2643
[ "MIT" ]
141
2018-10-06T16:55:20.000Z
2021-10-31T18:25:35.000Z
Algorithms/DynamicProgramming/Python/fib.py
Praggya17/HacktoberFestContribute
098cb1012f1f2ed6ca6b3544a7b962b6c49e2643
[ "MIT" ]
885
2018-10-06T17:14:44.000Z
2022-01-29T03:16:21.000Z
def fib_recursive(n): """[summary] Computes the n-th fibonacci number recursive. Problem: This implementation is very slow. approximate O(2^n) Arguments: n {[int]} -- [description] Returns: [int] -- [description] """ # precondition assert n >= 0, 'n must be a p...
20.726027
66
0.572373
04f04581068611b7a518501705ca6b24e690e390
177
py
Python
pcap3103/assertions/using_assertions.py
owaishanif786/python
212d626e10bebf161ee123459dc5f0384d9540ac
[ "MIT" ]
null
null
null
pcap3103/assertions/using_assertions.py
owaishanif786/python
212d626e10bebf161ee123459dc5f0384d9540ac
[ "MIT" ]
null
null
null
pcap3103/assertions/using_assertions.py
owaishanif786/python
212d626e10bebf161ee123459dc5f0384d9540ac
[ "MIT" ]
null
null
null
import sys from cli import main from cli.errors import ArgumentError try: main() except (ArgumentError, AssertionError) as err: print(f'Error: {err}') sys.exit(1)
16.090909
46
0.706215
bff8a08765b03d342b004b061ded6fb4f6c85774
22
py
Python
lib/python3.10/site-packages/mypy/version.py
michaelstucki/kyclark_tiny_python_projects
06d2bab4ce0885b17f3a3c95405b5f56cc7e2a09
[ "MIT" ]
1
2022-02-17T19:14:46.000Z
2022-02-17T19:14:46.000Z
lib/python3.10/site-packages/mypy/version.py
michaelstucki/kyclark_tiny_python_projects
06d2bab4ce0885b17f3a3c95405b5f56cc7e2a09
[ "MIT" ]
null
null
null
lib/python3.10/site-packages/mypy/version.py
michaelstucki/kyclark_tiny_python_projects
06d2bab4ce0885b17f3a3c95405b5f56cc7e2a09
[ "MIT" ]
null
null
null
__version__ = "0.931"
11
21
0.681818
5ce5c28716248c9f62d076ec8106018576175d66
17,763
py
Python
modules/templates/IRS/config.py
sungkomp/sambro
4618d785d03424d122206d88d9ebfb6971486e2c
[ "MIT" ]
1
2017-10-06T23:18:01.000Z
2017-10-06T23:18:01.000Z
modules/templates/IRS/config.py
sungkomp/sambro
4618d785d03424d122206d88d9ebfb6971486e2c
[ "MIT" ]
null
null
null
modules/templates/IRS/config.py
sungkomp/sambro
4618d785d03424d122206d88d9ebfb6971486e2c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from collections import OrderedDict from gluon import current from gluon.storage import Storage def config(settings): """ Template settings for an Incident Response System Initially targeting Sierra Leone's Ebola Response """ T = current.T settings.base.syst...
40.006757
151
0.551146
863187f292541f1ec01ad61ae66c0574aa51b588
9,507
py
Python
2D_car/run_this.py
speeli/rnn_methods
a4304642d633ce7d3028a4e27a61531af0f40dc5
[ "MIT" ]
null
null
null
2D_car/run_this.py
speeli/rnn_methods
a4304642d633ce7d3028a4e27a61531af0f40dc5
[ "MIT" ]
null
null
null
2D_car/run_this.py
speeli/rnn_methods
a4304642d633ce7d3028a4e27a61531af0f40dc5
[ "MIT" ]
null
null
null
""" Environment with a 2D car. Car has 5 sensors to obtain distance information. Car collision => reward = -1, otherwise => reward = 0. Requirement: pyglet numpy tensorflow """ import tensorflow as tf import numpy as np import os import shutil from car_env import CarEnv np.random.seed(1) tf.set_random_seed(1) MA...
36.011364
132
0.605975
d9b371cc62945c841878d519037ebe73a5e0f7f4
836
py
Python
test/test_resources_request.py
brainbeanapps/payoneer-mobile-api-python
bd26f3f6219ba6e3df36b86f7c6b6f83abb879c3
[ "MIT" ]
null
null
null
test/test_resources_request.py
brainbeanapps/payoneer-mobile-api-python
bd26f3f6219ba6e3df36b86f7c6b6f83abb879c3
[ "MIT" ]
null
null
null
test/test_resources_request.py
brainbeanapps/payoneer-mobile-api-python
bd26f3f6219ba6e3df36b86f7c6b6f83abb879c3
[ "MIT" ]
null
null
null
# coding: utf-8 """ Payoneer Mobile API Swagger specification for https://mobileapi.payoneer.com OpenAPI spec version: 0.9.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys import unittest import payoneer_mobile...
19.44186
79
0.714115
1b631b867b986c2b230aa51d535a627fbfb3e074
432
py
Python
circuit_creation.py
Photon-Creation/cirq-trial
5aee97ace05c3eb726a68098f7892b4513ae166c
[ "CC0-1.0" ]
null
null
null
circuit_creation.py
Photon-Creation/cirq-trial
5aee97ace05c3eb726a68098f7892b4513ae166c
[ "CC0-1.0" ]
null
null
null
circuit_creation.py
Photon-Creation/cirq-trial
5aee97ace05c3eb726a68098f7892b4513ae166c
[ "CC0-1.0" ]
null
null
null
import cirq def create_basic_circuit(*coords: tuple) -> list: list_of_circuit: list = [] n = 0 for qx, qy in coords: qubit = cirq.GridQubit(qx, qy) circuit = cirq.Circuit(cirq.X(qubit), cirq.Y(qubit), cirq.measure(qubit, key=f"K_{n}")) list_of_circuit.append(circuit) ...
28.8
96
0.594907
1588cfd64e6eed92a5ffa177984df3338d6c5041
137
py
Python
.history/ClassFiles/inheritance_sub_classes_20210616141941.py
minefarmer/Coding101-OOP
d5655977559e3bd1acf6a4f185a6121cc3b05ce4
[ "Unlicense" ]
null
null
null
.history/ClassFiles/inheritance_sub_classes_20210616141941.py
minefarmer/Coding101-OOP
d5655977559e3bd1acf6a4f185a6121cc3b05ce4
[ "Unlicense" ]
null
null
null
.history/ClassFiles/inheritance_sub_classes_20210616141941.py
minefarmer/Coding101-OOP
d5655977559e3bd1acf6a4f185a6121cc3b05ce4
[ "Unlicense" ]
null
null
null
"""[Practice: Deluxe Ice Cream Truck] child class parent class class Ice (H2O): pass | expression """
17.125
37
0.532847
1cf0933e2e855c08e4d5ffa76f8bf04c42ce605c
4,039
py
Python
package_reloader.py
timotheecour/AutomaticPackageReloader
62faa7d3f0c633d3f4e49fea3c7f06137cf02dea
[ "MIT" ]
null
null
null
package_reloader.py
timotheecour/AutomaticPackageReloader
62faa7d3f0c633d3f4e49fea3c7f06137cf02dea
[ "MIT" ]
null
null
null
package_reloader.py
timotheecour/AutomaticPackageReloader
62faa7d3f0c633d3f4e49fea3c7f06137cf02dea
[ "MIT" ]
null
null
null
import sublime_plugin import sublime import os from glob import glob import re from .reloader import reload_package, ProgressBar RELOADING = False def casedpath(path): # path on Windows may not be properly cased # https://github.com/randy3k/AutomaticPackageReloader/issues/10 r = glob(re.sub(r'([^:/\\])...
35.121739
98
0.640753
f5e4f49529dbf850a0cd8b84b0a24a97d498f42a
6,989
py
Python
ptvapi.py
stevage/ptvpy
34af68713a92b63b0fccec862dc370fb274cb2e7
[ "CC-BY-3.0" ]
10
2015-05-27T11:55:35.000Z
2022-03-27T12:01:24.000Z
ptvapi.py
sidorares/ptvpy
a4bf4f5da4867f457238e63bfada54fed4dc22d5
[ "CC-BY-3.0" ]
1
2020-01-06T00:18:07.000Z
2020-01-07T00:58:13.000Z
ptvapi.py
sidorares/ptvpy
a4bf4f5da4867f457238e63bfada54fed4dc22d5
[ "CC-BY-3.0" ]
9
2016-01-05T01:23:39.000Z
2022-01-25T10:28:34.000Z
''' Unofficial Python wrapper for Public Transport Victoria API Read the full API documentation here: http://stevage.github.io/PTV-API-doc/ Documentation in "quotes" here is verbatim from PTV. Source: Licensed from Public Transport Victoria under a Creative Commons Attribution 3.0 Australia Licence. This Python modul...
42.357576
352
0.712119
a3de39310b8a6b92ae05c8ba6228b09fb9e0c0c7
3,493
py
Python
diagnoser.py
TheGupta2012/backend-MedicalDiagnosis
5108fa21ced8b4b82aa2f230530170057ea33f44
[ "MIT" ]
1
2021-07-06T19:54:55.000Z
2021-07-06T19:54:55.000Z
diagnoser.py
TheGupta2012/backend-MedicalDiagnosis
5108fa21ced8b4b82aa2f230530170057ea33f44
[ "MIT" ]
null
null
null
diagnoser.py
TheGupta2012/backend-MedicalDiagnosis
5108fa21ced8b4b82aa2f230530170057ea33f44
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import pickle import os from sklearn.feature_extraction.text import TfidfVectorizer from nltk.stem.snowball import SnowballStemmer from sklearn.ensemble import RandomForestClassifier from sklearn.model_selection import train_test_split class Train_Diagnosis(): ''' This...
36.768421
90
0.636129
6e865d2bb9c0aeca40a7bf011dcc98ef8917fa4e
4,622
py
Python
module_api/bk_esb/job.py
TencentBlueKing/bk-chatbot
da37fb2197142eae32158cdb5c2b658100133fff
[ "MIT" ]
11
2021-05-27T11:45:02.000Z
2022-03-29T15:03:28.000Z
module_api/bk_esb/job.py
hchicken/bk-chatbot
da37fb2197142eae32158cdb5c2b658100133fff
[ "MIT" ]
2
2021-08-16T03:59:19.000Z
2021-09-29T09:31:39.000Z
module_api/bk_esb/job.py
hchicken/bk-chatbot
da37fb2197142eae32158cdb5c2b658100133fff
[ "MIT" ]
12
2021-05-27T11:59:18.000Z
2022-03-17T07:21:53.000Z
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaSCommunity Edition) available. Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file exce...
30.609272
79
0.569234
08cdbb423c5e466b0fafb75956a1ee2b8129be28
1,058
py
Python
setup/atom_server.py
tokejepsen/atom-nuke
5677ba20592f5adaa5642735d5538afa896a463f
[ "MIT" ]
13
2015-06-29T07:23:50.000Z
2021-01-21T17:21:14.000Z
setup/atom_server.py
tokejepsen/atom-nuke
5677ba20592f5adaa5642735d5538afa896a463f
[ "MIT" ]
6
2015-06-29T00:23:29.000Z
2019-04-09T13:18:59.000Z
setup/atom_server.py
tokejepsen/atom-nuke
5677ba20592f5adaa5642735d5538afa896a463f
[ "MIT" ]
5
2016-09-28T04:50:39.000Z
2020-12-03T19:27:13.000Z
''' Simple socket server using threads ''' import socket import sys import threading import StringIO import contextlib import nuke HOST = '' PORT = 8888 @contextlib.contextmanager def stdoutIO(stdout=None): old = sys.stdout if stdout is None: stdout = StringIO.StringIO() sys.stdout = stdout...
19.236364
79
0.604915
d5e0ca89ff4ae42dafc0979a8a48fad9ed06a466
1,507
py
Python
python/examples/demo_10_custom_pattern.py
FumeauxG/mm-api
bb59e448562ff30349d7b1b831ee0db1465a9e6b
[ "MIT" ]
67
2015-03-27T17:30:34.000Z
2022-03-01T11:08:24.000Z
python/examples/demo_10_custom_pattern.py
FumeauxG/mm-api
bb59e448562ff30349d7b1b831ee0db1465a9e6b
[ "MIT" ]
15
2015-03-17T07:46:58.000Z
2021-07-10T06:14:16.000Z
python/examples/demo_10_custom_pattern.py
FumeauxG/mm-api
bb59e448562ff30349d7b1b831ee0db1465a9e6b
[ "MIT" ]
35
2015-03-16T15:32:46.000Z
2022-03-19T17:53:06.000Z
# short script examples. # Note that most of these use the SWIG-generated interface directly, # instead of the mm package import os import mmapi from mmRemote import * import mm # initialize connection r = mmRemote() r.connect() mm.begin_tool(r, "makePattern") mm.set_toolparam(r, "pattern", 20) # set default pipe...
32.06383
95
0.708029
71c108b248eaccfd72b2374fbaa5e65d9368ffd7
696
py
Python
category_searches.py
jlmonge/FlaskDatabaseQuery
bd3cb09f64ff120b3a02a1e8d508a9583712f557
[ "OML" ]
null
null
null
category_searches.py
jlmonge/FlaskDatabaseQuery
bd3cb09f64ff120b3a02a1e8d508a9583712f557
[ "OML" ]
null
null
null
category_searches.py
jlmonge/FlaskDatabaseQuery
bd3cb09f64ff120b3a02a1e8d508a9583712f557
[ "OML" ]
null
null
null
import json def highest_usd_pledged_search():##FIX ME fileInstance = open('ks-projects-201801.json',encoding = "utf-8-sig") #fileInstance = open(r'parser\Files\output\2018ksprojects.json',encoding = "utf-8-sig") data = json.load(fileInstance) projs = [data[0]] largestNumber = float(0) for pr...
36.631579
98
0.647989
1fa59ace0915fd2511aefd73fa49168d15ede74e
4,510
py
Python
lattedb/project/formfac/migrations/0006_diskformfactor4dfile_formfactor4dfile.py
callat-qcd/lattedb
75c06748f3d59332a84ec1b5794c215c5974a46f
[ "BSD-3-Clause" ]
1
2019-12-11T02:33:23.000Z
2019-12-11T02:33:23.000Z
lattedb/project/formfac/migrations/0006_diskformfactor4dfile_formfactor4dfile.py
callat-qcd/lattedb
75c06748f3d59332a84ec1b5794c215c5974a46f
[ "BSD-3-Clause" ]
10
2020-01-29T17:06:01.000Z
2021-05-31T14:41:19.000Z
lattedb/project/formfac/migrations/0006_diskformfactor4dfile_formfactor4dfile.py
callat-qcd/lattedb
75c06748f3d59332a84ec1b5794c215c5974a46f
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.2.2 on 2019-11-07 19:41 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('project_formfac', '0005_...
73.934426
247
0.640355
ece33282877fbb47c09a5b65832683083dd7ab32
209
py
Python
stormpath/__init__.py
denibertovic/stormpath-sdk-python
e594a1bb48de3fa8eff26558bf4f72bb056e9d00
[ "Apache-2.0" ]
null
null
null
stormpath/__init__.py
denibertovic/stormpath-sdk-python
e594a1bb48de3fa8eff26558bf4f72bb056e9d00
[ "Apache-2.0" ]
null
null
null
stormpath/__init__.py
denibertovic/stormpath-sdk-python
e594a1bb48de3fa8eff26558bf4f72bb056e9d00
[ "Apache-2.0" ]
null
null
null
__author__ = 'Stormpath, Inc.' __copyright__ = 'Copyright 2012-2014 Stormpath, Inc.' __version_info__ = ('1', '3', '1') __version__ = '.'.join(__version_info__) __short_version__ = '.'.join(__version_info__)
29.857143
53
0.722488
f52b4eb0a2a288ebd67c1ac7c997d9c023227c7d
4,141
py
Python
codegen/boolean_or_test.py
konkked/Underscore.cs
02668b93aa59d44c103eb421f84e4c331b7f623f
[ "MIT" ]
22
2015-01-29T05:42:49.000Z
2021-04-30T17:49:31.000Z
codegen/boolean_or_test.py
konkked/Underscore.cs
02668b93aa59d44c103eb421f84e4c331b7f623f
[ "MIT" ]
47
2015-01-27T23:42:26.000Z
2016-11-17T15:12:00.000Z
codegen/boolean_or_test.py
konkked/Underscore.cs
02668b93aa59d44c103eb421f84e4c331b7f623f
[ "MIT" ]
1
2017-03-03T04:45:13.000Z
2017-03-03T04:45:13.000Z
# script to generate the tests for Function.Boolean.Negate(), # because there are ~40 of them import sys import os def lowercase_letters(): return list(map(chr, range(97, 123))) def generate_all_test_cases(): retval = '' for i in range(0, 17): retval += generate_test_case_pair(i) return ret...
31.610687
128
0.619899
2884bbb33e9516328dc4f2182492115c55958b16
365
py
Python
neoOkpara/Phase-1/Day7/executionTime.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
6
2020-05-23T19:53:25.000Z
2021-05-08T20:21:30.000Z
neoOkpara/Phase-1/Day7/executionTime.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
8
2020-05-14T18:53:12.000Z
2020-07-03T00:06:20.000Z
neoOkpara/Phase-1/Day7/executionTime.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
39
2020-05-10T20:55:02.000Z
2020-09-12T17:40:59.000Z
from __future__ import print_function import time def sum_of_n_numbers(num): start_time = time.time() full_sum = 0 for i in range(1, num + 1): full_sum = full_sum + i end_time = time.time() return full_sum, end_time - start_time n = 43 print("\nTime to sum of 1 to ", n, " and required t...
21.470588
95
0.665753
737bcc6f29a709d89251ae79def1e754a256e112
3,272
py
Python
mc/test/test_dfmanipulations.py
swirkert/ipcai2016
7193b1b1a001511e7efadc2a40b4ab544be76607
[ "BSD-3-Clause" ]
2
2019-12-17T08:45:23.000Z
2022-02-03T15:10:11.000Z
mc/test/test_dfmanipulations.py
swirkert/ipcai2016
7193b1b1a001511e7efadc2a40b4ab544be76607
[ "BSD-3-Clause" ]
null
null
null
mc/test/test_dfmanipulations.py
swirkert/ipcai2016
7193b1b1a001511e7efadc2a40b4ab544be76607
[ "BSD-3-Clause" ]
null
null
null
""" ipcai2016 Copyright (c) German Cancer Research Center, Computer Assisted Interventions. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See LICENSE for details """ ''' Created on Oct 19, 2015 @au...
32.078431
79
0.641809
d9b9c6de8b738a6a278c80743326a49c51b4c142
29
py
Python
custom_components/hoymiles_dtu/__init__.py
ArekKubacki/Hoymiles-Plant-DTU-Pro
b1cc3c926d8bb4985cbe3a5db0a746a54659be97
[ "MIT" ]
null
null
null
custom_components/hoymiles_dtu/__init__.py
ArekKubacki/Hoymiles-Plant-DTU-Pro
b1cc3c926d8bb4985cbe3a5db0a746a54659be97
[ "MIT" ]
null
null
null
custom_components/hoymiles_dtu/__init__.py
ArekKubacki/Hoymiles-Plant-DTU-Pro
b1cc3c926d8bb4985cbe3a5db0a746a54659be97
[ "MIT" ]
null
null
null
"""Hoymiles Plant DTU Pro"""
14.5
28
0.655172
2b7dfd04e77241168d184a89d22a28fcbda5195b
915
py
Python
runway/cfngin/hooks/cleanup_s3.py
avosper-intellaegis/runway
757d4e7db269ec16479b044ac82a69f25fa2a450
[ "Apache-2.0" ]
134
2018-02-26T21:35:23.000Z
2022-03-03T00:30:27.000Z
runway/cfngin/hooks/cleanup_s3.py
asksmruti/runway
8aca76df9372e3d13eb35e12f81758f618e89e74
[ "Apache-2.0" ]
937
2018-03-08T22:04:35.000Z
2022-03-30T12:21:47.000Z
runway/cfngin/hooks/cleanup_s3.py
asksmruti/runway
8aca76df9372e3d13eb35e12f81758f618e89e74
[ "Apache-2.0" ]
70
2018-02-26T23:48:11.000Z
2022-03-02T18:44:30.000Z
"""CFNgin hook for cleaning up resources prior to CFN stack deletion.""" from __future__ import annotations import logging from typing import TYPE_CHECKING, Any from botocore.exceptions import ClientError if TYPE_CHECKING: from ...context import CfnginContext LOGGER = logging.getLogger(__name__) def purge_buc...
28.59375
83
0.679781
ba76065856d162b81a17f1af7eaa62a700902dfc
488
py
Python
dummy_generator/osc_streamer.py
jessicaqgomez/brainscore2
687261145c81783ae11a7a82ee0595d4e927dc40
[ "BSD-2-Clause" ]
null
null
null
dummy_generator/osc_streamer.py
jessicaqgomez/brainscore2
687261145c81783ae11a7a82ee0595d4e927dc40
[ "BSD-2-Clause" ]
null
null
null
dummy_generator/osc_streamer.py
jessicaqgomez/brainscore2
687261145c81783ae11a7a82ee0595d4e927dc40
[ "BSD-2-Clause" ]
1
2021-05-05T23:45:29.000Z
2021-05-05T23:45:29.000Z
from pythonosc.udp_client import SimpleUDPClient ######################################################################## class OSCStreamer(SimpleUDPClient): """""" # ---------------------------------------------------------------------- def __init__(self, ip, port): """Constructor""" super().__init__(...
27.111111
74
0.356557
aea10559d51697b2afbad2fb81a4cb043483416b
30,770
py
Python
envs/lib/python3.8/_sysconfigdata_x86_64_apple_darwin13_4_0.py
cabralh/WS-Predictor
92aa7dbd72d49614cb702183f993d9728722ec9f
[ "MIT" ]
null
null
null
envs/lib/python3.8/_sysconfigdata_x86_64_apple_darwin13_4_0.py
cabralh/WS-Predictor
92aa7dbd72d49614cb702183f993d9728722ec9f
[ "MIT" ]
null
null
null
envs/lib/python3.8/_sysconfigdata_x86_64_apple_darwin13_4_0.py
cabralh/WS-Predictor
92aa7dbd72d49614cb702183f993d9728722ec9f
[ "MIT" ]
null
null
null
# system configuration generated and used by the sysconfig module build_time_vars = {'ABIFLAGS': '', 'AC_APPLE_UNIVERSAL_BUILD': 0, 'AIX_GENUINE_CPLUSPLUS': 0, 'ANDROID_API_LEVEL': 0, 'AR': 'x86_64-apple-darwin13.4.0-ar', 'ARFLAGS': 'rcs', 'BASECFLAGS': '-fno-strict-aliasing -Wsign-compare -Wunreachable-code', '...
38.366584
138
0.668703
e7652dacfffb39ee5d4e30d7a700514e64aded35
5,358
py
Python
gym_continuousDoubleAuction/envs/continuousDoubleAuction_env.py
ChuaCheowHuan/MARL_env
dbfeb7e1c1751b318c6e8bc570101d6f856720fe
[ "MIT" ]
96
2019-08-15T16:36:01.000Z
2022-03-29T16:46:49.000Z
gym_continuousDoubleAuction/envs/continuousDoubleAuction_env.py
sbhadade/gym-continuousDoubleAuction
dbfeb7e1c1751b318c6e8bc570101d6f856720fe
[ "MIT" ]
10
2019-08-27T08:30:20.000Z
2022-03-11T23:57:41.000Z
gym_continuousDoubleAuction/envs/continuousDoubleAuction_env.py
sbhadade/gym-continuousDoubleAuction
dbfeb7e1c1751b318c6e8bc570101d6f856720fe
[ "MIT" ]
17
2020-04-15T14:44:23.000Z
2022-03-12T20:39:55.000Z
import numpy as np import pandas as pd import gym from gym import error, spaces, utils from gym.utils import seeding import ray from ray.rllib.env.multi_agent_env import MultiAgentEnv from .orderbook.orderbook import OrderBook from .exchg.exchg_helper import Exchg_Helper from .agent.trader import Trader from tabula...
35.25
154
0.607316
2105592a3f41ea104aa2a0ef321f97bd7c289f7b
3,941
py
Python
Python/empire/ejson/json_encoder.py
Tombmyst/Empire
f28782787c5fa9127e353549b73ec90d3c82c003
[ "Apache-2.0" ]
null
null
null
Python/empire/ejson/json_encoder.py
Tombmyst/Empire
f28782787c5fa9127e353549b73ec90d3c82c003
[ "Apache-2.0" ]
null
null
null
Python/empire/ejson/json_encoder.py
Tombmyst/Empire
f28782787c5fa9127e353549b73ec90d3c82c003
[ "Apache-2.0" ]
null
null
null
from empire.python.typings import * import json from empire.util.log import * class JSONEncoder: @staticmethod def is_parsable(obj: Any) -> bool: if type(obj) in [bytes, bytearray, str] or (hasattr(obj, 'to_dict') or hasattr(obj, 'to_json')): if type(obj) in [bytes, bytearray]: ...
43.788889
157
0.568384
e606bc060a75b8a1b2693b2ff73b62370e197621
3,685
py
Python
models/combiner.py
javabudd/udacity-numerai
d14f48d9605f38f8e6768b88682bed1253a56276
[ "MIT" ]
null
null
null
models/combiner.py
javabudd/udacity-numerai
d14f48d9605f38f8e6768b88682bed1253a56276
[ "MIT" ]
null
null
null
models/combiner.py
javabudd/udacity-numerai
d14f48d9605f38f8e6768b88682bed1253a56276
[ "MIT" ]
null
null
null
import logging from abc import ABC from typing import Callable, List from pandas import DataFrame LOGGER = logging.getLogger(__name__) class Combiner(ABC): """ A base class for any Combiners """ def __init__(self, score_function: Callable[[DataFrame, DataFrame], float]): self.score_function...
35.095238
107
0.621981
4f550527d05ecc21b7b66a7ac837fb60a6d78d0f
894
py
Python
setup.py
shinznatkid/modernpy
d0e6a2560f0d68e7ea05f442e72b72c8f9394cd0
[ "MIT" ]
null
null
null
setup.py
shinznatkid/modernpy
d0e6a2560f0d68e7ea05f442e72b72c8f9394cd0
[ "MIT" ]
null
null
null
setup.py
shinznatkid/modernpy
d0e6a2560f0d68e7ea05f442e72b72c8f9394cd0
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages version = '0.1.0' packages = find_packages() setup( name='modernpy', version=version, description='Extension methods for built-in type in Python.', author='Shinz Natkid', author_email='shinznatkid@gmail.com', url='https://github.com/shinznatkid/mode...
27.9375
65
0.62528
c9b7b61ee6554829c9f92b3e516f5ec5730f110d
2,685
py
Python
Part 10/S49/xgboost_.py
BAXTOR95/machine_learning_notes
6a1ed20c89f48e427ec4b9a96413c52a7139435d
[ "MIT" ]
null
null
null
Part 10/S49/xgboost_.py
BAXTOR95/machine_learning_notes
6a1ed20c89f48e427ec4b9a96413c52a7139435d
[ "MIT" ]
null
null
null
Part 10/S49/xgboost_.py
BAXTOR95/machine_learning_notes
6a1ed20c89f48e427ec4b9a96413c52a7139435d
[ "MIT" ]
null
null
null
# XGBoost # Install xgboost following the instructions on this link: # http://xgboost.readthedocs.io/en/latest/build.html# def eval_performance(cm): """eval_performance (cm) Function that calculates the performance of a ML Model by getting the Accuracy, Precision, Recall and F1 Score values Argumen...
30.511364
79
0.726257
908c6772d209dada4cd12beacc5f3e24426dcd69
21,533
py
Python
src/dispatch/messaging/strings.py
sfc-gh-pkommini/dispatch
4474e2f8556c92ac53d5711d138bd354effd3704
[ "Apache-2.0" ]
null
null
null
src/dispatch/messaging/strings.py
sfc-gh-pkommini/dispatch
4474e2f8556c92ac53d5711d138bd354effd3704
[ "Apache-2.0" ]
null
null
null
src/dispatch/messaging/strings.py
sfc-gh-pkommini/dispatch
4474e2f8556c92ac53d5711d138bd354effd3704
[ "Apache-2.0" ]
null
null
null
import copy from enum import Enum from jinja2 import Template from typing import List from dispatch.conversation.enums import ConversationButtonActions from dispatch.incident.enums import IncidentStatus from dispatch.config import ( INCIDENT_RESOURCE_CONVERSATION_REFERENCE_DOCUMENT, INCIDENT_RESOURCE_EXECUT...
33.540498
172
0.704361
ef451595d3bb3e632d0d8a4b069a477c7ee5ac23
5,773
py
Python
src/onos_grpc_demo/proto/PortProto_pb2.py
tjian123/onos_grpc_demo
84b3f074034e118fd7d39a346e00aa1b4cf89819
[ "Apache-2.0" ]
null
null
null
src/onos_grpc_demo/proto/PortProto_pb2.py
tjian123/onos_grpc_demo
84b3f074034e118fd7d39a346e00aa1b4cf89819
[ "Apache-2.0" ]
null
null
null
src/onos_grpc_demo/proto/PortProto_pb2.py
tjian123/onos_grpc_demo
84b3f074034e118fd7d39a346e00aa1b4cf89819
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: PortProto.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _ref...
37.980263
543
0.749697
dc1ba80333615d8af15021440afb52971312ee07
6,818
py
Python
ixnetwork_restpy/testplatform/sessions/ixnetwork/globals/topology/tlveditor/object_12e587bd6e412f6d3d8361017e8dcba9.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
ixnetwork_restpy/testplatform/sessions/ixnetwork/globals/topology/tlveditor/object_12e587bd6e412f6d3d8361017e8dcba9.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
ixnetwork_restpy/testplatform/sessions/ixnetwork/globals/topology/tlveditor/object_12e587bd6e412f6d3d8361017e8dcba9.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # 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,...
37.256831
179
0.667938
9fc42b5d8db9f377006387ede5d92b1ca380e8d5
18,184
py
Python
python/dgllife/utils/complex_to_graph.py
marcossilva/dgl-lifesci
ed73257af88dceec03c796436790f5ece2b63ebc
[ "Apache-2.0" ]
1
2020-10-05T06:18:23.000Z
2020-10-05T06:18:23.000Z
python/dgllife/utils/complex_to_graph.py
marcossilva/dgl-lifesci
ed73257af88dceec03c796436790f5ece2b63ebc
[ "Apache-2.0" ]
null
null
null
python/dgllife/utils/complex_to_graph.py
marcossilva/dgl-lifesci
ed73257af88dceec03c796436790f5ece2b63ebc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 # # Convert complexes into DGLHeteroGraphs # pylint: disable= no-member, arguments-differ, invalid-name import numpy as np import dgl.backend as F from functools import partial from dgl i...
48.620321
278
0.667235
e1f595349dedbca26e6a84c1e0ec306afa4d7855
5,897
py
Python
Tracer/roadtracer/line_merge.py
astro-ck/RoadTracer-M
7f7ecf79607673c2609f18e1e29c64375cb8d95a
[ "Apache-2.0" ]
5
2021-05-22T02:25:31.000Z
2022-03-28T06:39:41.000Z
Tracer/roadtracer/line_merge.py
weiyao1996/RoadTracer-M
7f7ecf79607673c2609f18e1e29c64375cb8d95a
[ "Apache-2.0" ]
1
2021-11-22T05:53:50.000Z
2021-11-22T05:53:50.000Z
Tracer/roadtracer/line_merge.py
weiyao1996/RoadTracer-M
7f7ecf79607673c2609f18e1e29c64375cb8d95a
[ "Apache-2.0" ]
1
2020-10-02T05:36:18.000Z
2020-10-02T05:36:18.000Z
import sys sys.path.append("./discoverlib") import os from discoverlib import geom, graph from rtree import index import math def generate_search_box(bounds,padding): if bounds.start.x + padding < bounds.end.x - padding: min_x = bounds.start.x + padding max_x = bounds.end.x - padding elif boun...
48.336066
194
0.575886
f0666627ae3d3ef1b250135da237f4d7e9d83abc
5,938
py
Python
venv/bin/wsdump.py
gigumbrajaguru/SlackTats
77fe93711ae3502f833bf3ba340f36d7da82f9cf
[ "Apache-2.0" ]
2
2018-10-04T06:12:38.000Z
2021-08-02T16:39:12.000Z
venv/bin/wsdump.py
gigumbrajaguru/SlackTats
77fe93711ae3502f833bf3ba340f36d7da82f9cf
[ "Apache-2.0" ]
null
null
null
venv/bin/wsdump.py
gigumbrajaguru/SlackTats
77fe93711ae3502f833bf3ba340f36d7da82f9cf
[ "Apache-2.0" ]
1
2021-11-05T22:16:58.000Z
2021-11-05T22:16:58.000Z
#!/home/grim/PycharmProjects/SlackTats/venv/bin/python import argparse import code import sys import threading import time import ssl import six from six.moves.urllib.parse import urlparse import websocket try: import readline except ImportError: pass def get_encoding(): encoding = getattr(sys.stdin, ...
29.39604
92
0.570057
c820107b8d65da36b37de28f5580f27c8b2625dc
2,506
py
Python
main.py
puzzlef/pagerank-cuda-adjust-csr-datatype
83188bc38d63d5da99c87c31acf1c289c4fd9ef9
[ "MIT" ]
null
null
null
main.py
puzzlef/pagerank-cuda-adjust-csr-datatype
83188bc38d63d5da99c87c31acf1c289c4fd9ef9
[ "MIT" ]
null
null
null
main.py
puzzlef/pagerank-cuda-adjust-csr-datatype
83188bc38d63d5da99c87c31acf1c289c4fd9ef9
[ "MIT" ]
null
null
null
# https://www.kaggle.com/wolfram77/puzzlef-pagerank-cuda-adjust-csr-datatype import os from IPython.display import FileLink src="pagerank-cuda-adjust-csr-datatype" inp="/kaggle/input/graphs" out="{}.txt".format(src) !printf "" > "$out" display(FileLink(out)) !echo "" && nvidia-smi && echo "" # Download program !rm -rf...
64.25641
97
0.630487
24fafa0c112f0b09ddfb26e76c16eeba245e3025
1,136
py
Python
bigml/tests/create_multimodel_steps.py
axellos162/python-4
569f6655871ea60b41e9442396433567b9daaea7
[ "Apache-2.0" ]
137
2015-01-12T06:04:10.000Z
2022-03-06T21:00:04.000Z
bigml/tests/create_multimodel_steps.py
axellos162/python-4
569f6655871ea60b41e9442396433567b9daaea7
[ "Apache-2.0" ]
78
2015-01-13T18:28:51.000Z
2022-03-04T19:18:28.000Z
bigml/tests/create_multimodel_steps.py
axellos162/python-4
569f6655871ea60b41e9442396433567b9daaea7
[ "Apache-2.0" ]
144
2015-01-16T06:13:33.000Z
2022-03-29T17:53:16.000Z
# -*- coding: utf-8 -*- # # Copyright 2014-2021 BigML # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
36.645161
75
0.727113
25edc71bcf2de9abc6a06761176c568680942c14
2,852
py
Python
airflow/macros/__init__.py
suensummit/airflow
37a342d0e96a91ce2d34085e225a4e86f54c4e21
[ "Apache-2.0" ]
1
2017-06-25T14:18:15.000Z
2017-06-25T14:18:15.000Z
airflow/macros/__init__.py
suensummit/airflow
37a342d0e96a91ce2d34085e225a4e86f54c4e21
[ "Apache-2.0" ]
3
2020-07-07T20:39:24.000Z
2021-09-29T17:34:46.000Z
airflow/macros/__init__.py
suensummit/airflow
37a342d0e96a91ce2d34085e225a4e86f54c4e21
[ "Apache-2.0" ]
1
2020-11-04T03:17:51.000Z
2020-11-04T03:17:51.000Z
# -*- coding: utf-8 -*- # # 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 #...
30.021053
77
0.678822
a893c8a13c4a4f195a9603eb80b3c4614b17ebae
252
py
Python
Guanabara/ex002.py
tobiaspontes/ScriptsPython
21ed779e49adca500ce5815dd100f4ec999a2571
[ "MIT" ]
null
null
null
Guanabara/ex002.py
tobiaspontes/ScriptsPython
21ed779e49adca500ce5815dd100f4ec999a2571
[ "MIT" ]
null
null
null
Guanabara/ex002.py
tobiaspontes/ScriptsPython
21ed779e49adca500ce5815dd100f4ec999a2571
[ "MIT" ]
null
null
null
# Aula 04 - Desafio 2 # dia = input('Qual o dia do seu nascimento? ') mes = input('Qual o mês do seu nascimento? ') ano = input('Qual o ano do seu nascimento? ') print('\n', 'Você nasceu no dia', dia, 'do mês', mes, 'do ano de', ano + '.', 'Correto?')
36
89
0.619048
50355ff38a23b130a80b0cbe1ee1ab3fa33acf86
138,779
py
Python
.venv/Lib/site-packages/docutils/writers/odf_odt/__init__.py
sirZer0/Replace
e59ad89c43f901d409215353a7403781fb689c7e
[ "MIT" ]
null
null
null
.venv/Lib/site-packages/docutils/writers/odf_odt/__init__.py
sirZer0/Replace
e59ad89c43f901d409215353a7403781fb689c7e
[ "MIT" ]
1
2020-06-01T02:59:22.000Z
2020-06-01T02:59:22.000Z
.venv/Lib/site-packages/docutils/writers/odf_odt/__init__.py
sirZer0/Replace
e59ad89c43f901d409215353a7403781fb689c7e
[ "MIT" ]
null
null
null
# $Id: __init__.py 8411 2019-11-05 13:32:13Z milde $ # Author: Dave Kuhlman <dkuhlman@davekuhlman.org> # Copyright: This module has been placed in the public domain. """ Open Document Format (ODF) Writer. """ from __future__ import absolute_import __docformat__ = "reStructuredText" import sys import os import os.p...
35.575237
88
0.524892
7cf9a7052cfcaba56776df80911cc35bc8a5c348
1,652
py
Python
xlsxwriter/test/comparison/test_chart_gridlines04.py
shareablee/XlsxWriter
3cfcbe18fbc4526158ffbb5e7bb5227f78e3f5f9
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/comparison/test_chart_gridlines04.py
shareablee/XlsxWriter
3cfcbe18fbc4526158ffbb5e7bb5227f78e3f5f9
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/comparison/test_chart_gridlines04.py
shareablee/XlsxWriter
3cfcbe18fbc4526158ffbb5e7bb5227f78e3f5f9
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2015, John McNamara, jmcnamara@cpan.org # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
26.222222
79
0.567191
5e5c9b2f7ee36d03c36d7a9d8b8b26945e96d3e7
17,658
py
Python
supervisor/backups/backup.py
coZet/supervisor
f57bc0db254e1467abfcb68365fbb0fde76c531c
[ "Apache-2.0" ]
1
2019-10-11T18:32:35.000Z
2019-10-11T18:32:35.000Z
supervisor/backups/backup.py
coZet/supervisor
f57bc0db254e1467abfcb68365fbb0fde76c531c
[ "Apache-2.0" ]
66
2019-10-11T18:34:16.000Z
2020-01-21T15:38:03.000Z
supervisor/backups/backup.py
coZet/supervisor
f57bc0db254e1467abfcb68365fbb0fde76c531c
[ "Apache-2.0" ]
null
null
null
"""Representation of a backup file.""" from base64 import b64decode, b64encode import json import logging from pathlib import Path import tarfile from tempfile import TemporaryDirectory from typing import Any, Optional from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import ...
33.698473
92
0.595028
0039fee85a51c80298c22b6b391926ee7f55250b
1,274
py
Python
lib/fast_rcnn/nms_wrapper.py
changwh/text-detection-ctpn
c8a70b21d576eddf6dbae95adc29d210a72a3381
[ "MIT" ]
187
2018-12-13T03:08:51.000Z
2021-06-27T03:50:56.000Z
lib/fast_rcnn/nms_wrapper.py
dxysharon/text-detection-ctpn
a550223907a08ae737e28c6ffd65faba263d8ea5
[ "MIT" ]
9
2018-12-13T04:09:44.000Z
2019-08-15T15:46:45.000Z
lib/fast_rcnn/nms_wrapper.py
dxysharon/text-detection-ctpn
a550223907a08ae737e28c6ffd65faba263d8ea5
[ "MIT" ]
47
2018-12-13T03:08:36.000Z
2021-03-30T08:23:57.000Z
import numpy as np from .config import cfg pure_python_nms = False try: from lib.utils.gpu_nms import gpu_nms from ..utils.cython_nms import nms as cython_nms except ImportError: pure_python_nms = True def nms(dets, thresh): if dets.shape[0] == 0: return [] if pure_python_nms: # pr...
26.541667
59
0.55259
5dbeec9a4e9ba3e1631566d938d426502468b117
44,134
py
Python
Lambda/python_dynamodb_lock/python_dynamodb_lock.py
netskopeoss/AWS-TGW-IPsec-Automation
11ab3c73a97db8d1ba8f8a53c444ac2f50d94cde
[ "Apache-2.0" ]
31
2018-11-17T05:09:47.000Z
2022-02-12T21:29:54.000Z
Lambda/python_dynamodb_lock/python_dynamodb_lock.py
netskopeoss/AWS-TGW-IPsec-Automation
11ab3c73a97db8d1ba8f8a53c444ac2f50d94cde
[ "Apache-2.0" ]
1,720
2018-09-05T23:26:33.000Z
2022-03-28T23:25:27.000Z
Lambda/python_dynamodb_lock/python_dynamodb_lock.py
netskopeoss/AWS-TGW-IPsec-Automation
11ab3c73a97db8d1ba8f8a53c444ac2f50d94cde
[ "Apache-2.0" ]
18
2019-01-25T17:26:58.000Z
2022-03-21T04:28:29.000Z
# -*- coding: utf-8 -*- """ This is a general purpose distributed locking library built on top of DynamoDB. It is heavily "inspired" by the java-based AmazonDynamoDBLockClient library, and supports both coarse-grained and fine-grained locking. """ from botocore.exceptions import ClientError from concurrent.futures im...
47.455914
118
0.624598
57307b3ef80cd0110208102fe9c235b470e2120d
6,285
py
Python
src/data_process.py
akhopkar01/lyft-l5-trajectory-prediction
e70a402e1577aabe6cd40615a0af0ac3e5084e94
[ "MIT" ]
3
2020-11-25T08:37:05.000Z
2021-08-06T12:03:10.000Z
src/data_process.py
akhopkar01/lyft-l5-trajectory-prediction
e70a402e1577aabe6cd40615a0af0ac3e5084e94
[ "MIT" ]
1
2020-11-18T04:54:32.000Z
2020-11-18T04:54:32.000Z
src/data_process.py
akhopkar01/lyft-l5-trajectory-prediction
e70a402e1577aabe6cd40615a0af0ac3e5084e94
[ "MIT" ]
3
2020-11-17T00:18:38.000Z
2021-07-26T13:51:38.000Z
#%% from torch.utils.data import DataLoader from l5kit.configs import load_config_data from l5kit.data import LocalDataManager, ChunkedDataset from l5kit.dataset import AgentDataset, EgoDataset from l5kit.rasterization import build_rasterizer from l5kit.configs import load_config_data from l5kit.data.labels import PE...
34.157609
120
0.601909
12c1ad9ff97f5f75747db5f4c89bb4d75f46c93c
101
py
Python
pythonnodetest.py
ricky10116/PythonNode
870a5cf7292533474eaf84c8dca96d2f2b866472
[ "MIT" ]
null
null
null
pythonnodetest.py
ricky10116/PythonNode
870a5cf7292533474eaf84c8dca96d2f2b866472
[ "MIT" ]
null
null
null
pythonnodetest.py
ricky10116/PythonNode
870a5cf7292533474eaf84c8dca96d2f2b866472
[ "MIT" ]
1
2020-11-10T16:38:54.000Z
2020-11-10T16:38:54.000Z
def pythonnodetest (num,text): num=num+1 text=text+"test" ans = (num,text) return ans
20.2
30
0.613861
36427de3f34571894fe96a6bd075ff77922dd96b
308
py
Python
clinicsystem/users/api.py
yasminhillis/clinic-system
86c4f3a3151928e08d155879605da2f9ed1a48e1
[ "MIT" ]
1
2020-12-21T11:13:36.000Z
2020-12-21T11:13:36.000Z
clinicsystem/users/api.py
yasminhillis/clinic-system
86c4f3a3151928e08d155879605da2f9ed1a48e1
[ "MIT" ]
null
null
null
clinicsystem/users/api.py
yasminhillis/clinic-system
86c4f3a3151928e08d155879605da2f9ed1a48e1
[ "MIT" ]
null
null
null
from rest_framework import viewsets, permissions from .serializers import UserSerializer from users.models import SystemUser class UserViewSet(viewsets.ModelViewSet): queryset = SystemUser.objects.all() permission_classes = [ permissions.AllowAny ] serializer_class = UserSerializer
30.8
48
0.779221
56b8abb0c6577bf0717b51b8e75afbee4c4be510
3,858
py
Python
receptor/connection/base.py
j00bar/receptor
3ac3093265a80199e04d2db8e003efa83215ee04
[ "Apache-2.0" ]
null
null
null
receptor/connection/base.py
j00bar/receptor
3ac3093265a80199e04d2db8e003efa83215ee04
[ "Apache-2.0" ]
null
null
null
receptor/connection/base.py
j00bar/receptor
3ac3093265a80199e04d2db8e003efa83215ee04
[ "Apache-2.0" ]
null
null
null
import asyncio import logging from abc import abstractmethod, abstractproperty from collections.abc import AsyncIterator from ..messages.envelope import FramedBuffer logger = logging.getLogger(__name__) class Transport(AsyncIterator): @abstractmethod async def close(self): pass @abstractpropert...
29.450382
86
0.59746
93c374dbf283b1652f2edf28e4b40ba33a8f25c5
1,239
py
Python
lib/sorting_hat.py
karttrak/project-euler
921432dd01b83fa81578c3d65655de30e7505516
[ "MIT" ]
null
null
null
lib/sorting_hat.py
karttrak/project-euler
921432dd01b83fa81578c3d65655de30e7505516
[ "MIT" ]
null
null
null
lib/sorting_hat.py
karttrak/project-euler
921432dd01b83fa81578c3d65655de30e7505516
[ "MIT" ]
null
null
null
def swap(l, a, b): temp = l[a] l[a] = l[b] l[b] = temp def is_sorted(lst): for i in range(len(l)-1): if l[i] > l[i+1]: return False return True def bubblesort(lst): l = [] for i in range(len(lst)): l.append(lst[i]) for j in range(len(l)-1): for i in range(len(l)-1): if l[i] > l[i+1]: ...
12.267327
66
0.500404
529a8e7dccb1a8685a51ceb62aa8f65be1c82fa8
821
py
Python
tools/debian-package/control_replacings.py
SjVer/Evi-Lang
ac3674cbcdb0ff68d472b62a0ab7d66bf91a13c0
[ "MIT" ]
6
2022-02-22T18:56:48.000Z
2022-03-31T12:39:22.000Z
tools/debian-package/control_replacings.py
SjVer/Evi-Lang
ac3674cbcdb0ff68d472b62a0ab7d66bf91a13c0
[ "MIT" ]
null
null
null
tools/debian-package/control_replacings.py
SjVer/Evi-Lang
ac3674cbcdb0ff68d472b62a0ab7d66bf91a13c0
[ "MIT" ]
1
2022-02-22T18:59:38.000Z
2022-02-22T18:59:38.000Z
from re import findall from os import path root_dir = str() target = str() def package_name(): with open(path.join(root_dir, "include", "common.hpp"), "r") as f: return findall("#define APP_NAME \"(.+)\"", f.read())[0] def version(): with open(path.join(root_dir, "include", "common.hpp"), "r") as f: return fin...
24.878788
67
0.632156
4f7546ebef71337d0c971ef0b2c0e7b770c656f8
3,864
py
Python
multi_angle_script.py
stephtdouglas/animate_planet
3e512084412e308a9336a59c1a7087f5731bb04b
[ "MIT" ]
null
null
null
multi_angle_script.py
stephtdouglas/animate_planet
3e512084412e308a9336a59c1a7087f5731bb04b
[ "MIT" ]
null
null
null
multi_angle_script.py
stephtdouglas/animate_planet
3e512084412e308a9336a59c1a7087f5731bb04b
[ "MIT" ]
null
null
null
from animate_planet import animate_planet if __name__=="__main__": # Inputs star_radius = 10 planet_radius = 1 orbit_radius = 100 frames_per_orbit = 60 nframes = 60 background1 = "LightGrey" background2 = "k" star_color="#ffcc00" planet_color="k" # overhead view animat...
51.52
79
0.682712
3fed81fc82359360eb165e15c5ac6dc7b186a746
7,192
py
Python
corehq/apps/userreports/adapter.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/apps/userreports/adapter.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/apps/userreports/adapter.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
from django.db import transaction from memoized import memoized from dimagi.utils.logging import notify_exception from corehq.util.soft_assert import soft_assert from corehq.util.test_utils import unit_testing_only from corehq.util.view_utils import absolute_reverse skipped_destructive_rebuild_assert = soft_assert(...
37.264249
114
0.666157
014744df2b49391655f83ad5a4ae068e5d1fc0b4
12,529
py
Python
coco_assistant/coco_assistant.py
RobertBeaudenon/COCO-Assistant
8906c6fa51d3ce890a6e1055b4f26e40698930db
[ "MIT" ]
null
null
null
coco_assistant/coco_assistant.py
RobertBeaudenon/COCO-Assistant
8906c6fa51d3ce890a6e1055b4f26e40698930db
[ "MIT" ]
null
null
null
coco_assistant/coco_assistant.py
RobertBeaudenon/COCO-Assistant
8906c6fa51d3ce890a6e1055b4f26e40698930db
[ "MIT" ]
null
null
null
import ast import json import logging import os import shutil from pycocotools.coco import COCO from tqdm import tqdm from . import coco_stats as stats from . import coco_visualiser as cocovis from coco_assistant.utils import * logging.basicConfig(level=logging.ERROR) logging.getLogger().setLevel(logging.WARNING) l...
36.634503
95
0.559821
ed4888601a0ae0bbeee4088c7b60ea4e94b5d81c
4,724
py
Python
tests/test_init.py
skelsec/oscrypto
84f4c84238d0b981618907c6f102e0ba070beddb
[ "MIT" ]
309
2015-07-22T02:42:45.000Z
2022-03-28T23:54:47.000Z
tests/test_init.py
skelsec/oscrypto
84f4c84238d0b981618907c6f102e0ba070beddb
[ "MIT" ]
58
2015-08-21T23:30:29.000Z
2022-03-18T12:05:56.000Z
tests/test_init.py
skelsec/oscrypto
84f4c84238d0b981618907c6f102e0ba070beddb
[ "MIT" ]
55
2015-10-10T04:45:30.000Z
2022-03-20T21:05:53.000Z
# coding: utf-8 from __future__ import unicode_literals, division, absolute_import, print_function import ast import _ast import unittest import os import sys import oscrypto as module # This handles situations where an import is importing a function from a # dotted path, e.g. "from . import ident", and ident is a ...
32.805556
92
0.571761
dbde61ab0e418cdc3f788e67cc99b8b9a170ef06
1,468
py
Python
plotting/__init__.py
MRossol/plotting
13f194d949a85a1345e5683933272e0edf37d5dd
[ "BSD-3-Clause" ]
null
null
null
plotting/__init__.py
MRossol/plotting
13f194d949a85a1345e5683933272e0edf37d5dd
[ "BSD-3-Clause" ]
2
2018-05-29T18:52:38.000Z
2018-06-13T15:31:49.000Z
plotting/__init__.py
MRossol/plotting
13f194d949a85a1345e5683933272e0edf37d5dd
[ "BSD-3-Clause" ]
2
2018-05-30T04:46:23.000Z
2021-08-31T00:07:09.000Z
""" plotting wrapper on matplotlib and seaborn to provide a single functional call a la mathematica """ from .base import plotting_base from .colormaps import (colorbar, contour_plot, heatmap_plot) from .dataframes import (pivot_timeseries, pivot_df, box_plot, point_plot, dist_plot, bar_plot, d...
33.363636
75
0.646458
e761f4e92a372e7ba3a7162df453412739d220e7
11,098
py
Python
ffai/ai/renderer.py
tysen2k/ffai
2fa1fd45a8877986fdb21e3fea5e01cbf819d3ec
[ "Apache-2.0" ]
null
null
null
ffai/ai/renderer.py
tysen2k/ffai
2fa1fd45a8877986fdb21e3fea5e01cbf819d3ec
[ "Apache-2.0" ]
null
null
null
ffai/ai/renderer.py
tysen2k/ffai
2fa1fd45a8877986fdb21e3fea5e01cbf819d3ec
[ "Apache-2.0" ]
null
null
null
import tkinter as tk import math from tkinter import * class Renderer: square_size = 16 square_size_fl = 4 top_bar_height = 42 bot_bar_height = 80 layer_text_height = 26 black = '#000000' white = '#ffffff' crowd = '#113311' blue = '#2277cc' red = '#cc7722' ball = '#ff00cc'...
47.025424
275
0.52559
6c6aab3610088f02becb239616f4927d7dd616c1
33,419
py
Python
tests/trainer/logging_tests/test_eval_loop_logging_1_0.py
bayethiernodiop/pytorch-lightning
ac3f1bd0da50b676493877d5d96509c928f17db6
[ "Apache-2.0" ]
2
2021-06-24T11:46:53.000Z
2021-06-24T13:29:50.000Z
tests/trainer/logging_tests/test_eval_loop_logging_1_0.py
bayethiernodiop/pytorch-lightning
ac3f1bd0da50b676493877d5d96509c928f17db6
[ "Apache-2.0" ]
null
null
null
tests/trainer/logging_tests/test_eval_loop_logging_1_0.py
bayethiernodiop/pytorch-lightning
ac3f1bd0da50b676493877d5d96509c928f17db6
[ "Apache-2.0" ]
1
2022-03-21T18:37:54.000Z
2022-03-21T18:37:54.000Z
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
37.591676
113
0.642539
d5513e23a2d7f335424349ff45827c7a4bdfb0c4
1,928
py
Python
dim/dim/models/migrate.py
D3luxee/dim
14226db6006a14bddb6f6027f33f26a241bcb348
[ "MIT" ]
null
null
null
dim/dim/models/migrate.py
D3luxee/dim
14226db6006a14bddb6f6027f33f26a241bcb348
[ "MIT" ]
1
2021-02-23T20:03:02.000Z
2021-02-23T20:03:02.000Z
dim/dim/models/migrate.py
D3luxee/dim
14226db6006a14bddb6f6027f33f26a241bcb348
[ "MIT" ]
null
null
null
from __future__ import print_function import re import subprocess from collections import deque import pkg_resources from dim.models import SchemaInfo, SCHEMA_VERSION, db def migrate(): start_version = SchemaInfo.current_version() if start_version == SCHEMA_VERSION: print('Nothing to do') r...
30.125
95
0.587656
658822890de098dddf67242e88a3fc79c18d7c0e
3,851
py
Python
src/manager.py
rodrigodalri/password-manager
94548c746558f257bd519a43fc549de0333f24a1
[ "MIT" ]
null
null
null
src/manager.py
rodrigodalri/password-manager
94548c746558f257bd519a43fc549de0333f24a1
[ "MIT" ]
2
2021-02-27T18:38:34.000Z
2021-02-27T18:41:05.000Z
src/manager.py
rodrigodalri/password-manager
94548c746558f257bd519a43fc549de0333f24a1
[ "MIT" ]
null
null
null
from libs.db import connect_db, get_user_info from libs.user import update_user, verify_user from libs.crypto import password_encrypt, verify_words from libs.services import add_password, update_password, read_password, service_exists, list_services def recover_master(conn,n_words): """[summary] Args: ...
35.330275
126
0.632044
dfaa4558de783d8abc126c6f019ba577668c98e2
136
py
Python
llllllllllllllllllllllllll.py
senohaha/jzSpiderNode
9ff725a00a25c74c4fc9b6096c7c4d8dd1de6ba4
[ "BSD-3-Clause" ]
null
null
null
llllllllllllllllllllllllll.py
senohaha/jzSpiderNode
9ff725a00a25c74c4fc9b6096c7c4d8dd1de6ba4
[ "BSD-3-Clause" ]
null
null
null
llllllllllllllllllllllllll.py
senohaha/jzSpiderNode
9ff725a00a25c74c4fc9b6096c7c4d8dd1de6ba4
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 from selenium import webdriver driver = webdriver.PhantomJS() driver.get('http://www.baidu.com/') print driver.title
15.111111
35
0.742647
4c6a0a3932ecba761c2b677ef2681419da0cedf0
3,973
py
Python
src/netappfiles-preview/azext_netappfiles_preview/_params.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/netappfiles-preview/azext_netappfiles_preview/_params.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/netappfiles-preview/azext_netappfiles_preview/_params.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
67.338983
157
0.648377
b211799936ad0b4b3be3d63adad1ca93a1a1e704
1,255
py
Python
lib/btstack/tool/create_makefile_inc.py
thiamchi/micropython_custom
b2d3ac286268502029a2215adb710c15f21ccae0
[ "MIT" ]
3
2021-06-05T01:04:56.000Z
2021-12-19T18:08:08.000Z
lib/btstack/tool/create_makefile_inc.py
thiamchi/micropython_custom
b2d3ac286268502029a2215adb710c15f21ccae0
[ "MIT" ]
1
2021-06-19T19:03:10.000Z
2021-06-19T19:29:10.000Z
lib/btstack/tool/create_makefile_inc.py
thiamchi/micropython_custom
b2d3ac286268502029a2215adb710c15f21ccae0
[ "MIT" ]
3
2021-06-12T12:26:34.000Z
2022-02-22T11:05:01.000Z
#!/usr/bin/env python # # Create Makefile.inc file for all source folders # Copyright 2017 BlueKitchen GmbH import sys import os makefile_inc_header = '''# Makefile to collect all C source files of {folder} {var_name} = \\ ''' folders = [ 'src', 'src/ble', 'src/ble/gatt-service', 'src/classic', ] # get btstack roo...
24.607843
77
0.631076
4dd5c6f40f2c3f5ec4b80cda3934cd2bfe353cfe
4,088
py
Python
pymatgen/phasediagram/tests/test_plotter.py
mailhexu/pymatgen
70da55dd860771eb9d38c306dbcd3f6b074b7a54
[ "MIT" ]
18
2019-06-15T18:08:21.000Z
2022-01-30T05:01:29.000Z
ComRISB/pyextern/pymatgen/pymatgen/phasediagram/tests/test_plotter.py
comscope/Comsuite
b80ca9f34c519757d337487c489fb655f7598cc2
[ "BSD-3-Clause" ]
null
null
null
ComRISB/pyextern/pymatgen/pymatgen/phasediagram/tests/test_plotter.py
comscope/Comsuite
b80ca9f34c519757d337487c489fb655f7598cc2
[ "BSD-3-Clause" ]
11
2019-06-05T02:57:55.000Z
2021-12-29T02:54:25.000Z
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import unicode_literals import unittest import os import numpy as np from pymatgen import Element from pymatgen.phasediagram.entries import PDEntryIO, PDEntry from pymatgen.phasediagram.maker ...
42.14433
86
0.62182
ff89845bc13d3de4e778c596361555a7849a78f5
1,218
py
Python
main.py
Timothylock/RESTful-Raspberry-Pi-GPIO-Server-For-Home-Assistant
09540efb178290515a069e63576eb67081f66539
[ "MIT" ]
1
2021-04-21T17:35:27.000Z
2021-04-21T17:35:27.000Z
main.py
Timothylock/RESTful-Raspberry-Pi-GPIO-Server-For-Home-Assistant
09540efb178290515a069e63576eb67081f66539
[ "MIT" ]
null
null
null
main.py
Timothylock/RESTful-Raspberry-Pi-GPIO-Server-For-Home-Assistant
09540efb178290515a069e63576eb67081f66539
[ "MIT" ]
null
null
null
from flask import Flask from flask import request import json app = Flask(__name__) # Variables isOn = False # App routes @app.route("/") def index(): return "It Works! Try interacting with /state instead" @app.route("/state", methods=['GET', 'POST']) def state(): if request.method == 'POST': return...
19.645161
60
0.592775
80112dbf8697bb07c6d4afc3bd28082c28339292
38,967
py
Python
kitsune/settings.py
sirinartk/kitsune
9107a93b1f877c4b5f0b3086579edde7e02b6ff7
[ "BSD-3-Clause" ]
null
null
null
kitsune/settings.py
sirinartk/kitsune
9107a93b1f877c4b5f0b3086579edde7e02b6ff7
[ "BSD-3-Clause" ]
2
2021-03-09T02:40:45.000Z
2021-09-01T03:45:10.000Z
kitsune/settings.py
Coopertown75/kitsune
78d9a4ea3217a50517e1a5ba27b2920c068b9f1e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Django settings for kitsune project.""" import logging import os import platform import re import dj_database_url import django_cache_url from datetime import date from decouple import Csv, config import djcelery from bundles import PIPELINE_CSS, PIPELINE_JS from kitsune.lib.sumo_locale...
33.107052
138
0.705648
1efbff550f6a7bfa38720e78d468bf90f7c5d269
3,023
py
Python
fixture/orm.py
kdmitrieva16/python_training
8c88d44c8d4c26f09ed60f091138ae9c85307fce
[ "Apache-2.0" ]
null
null
null
fixture/orm.py
kdmitrieva16/python_training
8c88d44c8d4c26f09ed60f091138ae9c85307fce
[ "Apache-2.0" ]
null
null
null
fixture/orm.py
kdmitrieva16/python_training
8c88d44c8d4c26f09ed60f091138ae9c85307fce
[ "Apache-2.0" ]
null
null
null
from pony.orm import * from datetime import datetime from model.group import Group from model.contact import Contact from pymysql.converters import decoders class ORMFixture: db=Database() class ORMGroup(db.Entity): _table_='group_list' id=PrimaryKey(int, column='group_id') name=Option...
41.986111
123
0.693682
84841b824ca105976b7c170ca16678142365540b
218
py
Python
preprocessing/utils.py
nazariinyzhnyk/nlp-beatles-lyrics-modeling
d341b6c2a1fe60a3ca6cae03052775b443f8cedb
[ "MIT" ]
null
null
null
preprocessing/utils.py
nazariinyzhnyk/nlp-beatles-lyrics-modeling
d341b6c2a1fe60a3ca6cae03052775b443f8cedb
[ "MIT" ]
null
null
null
preprocessing/utils.py
nazariinyzhnyk/nlp-beatles-lyrics-modeling
d341b6c2a1fe60a3ca6cae03052775b443f8cedb
[ "MIT" ]
null
null
null
import random import numpy as np def set_seed(random_state: int = 42) -> None: """Function fixes random state to ensure results are reproducible""" np.random.seed(random_state) random.seed(random_state)
21.8
72
0.729358
f30d04d4b753e3d3028815b8e0fcd284cd1bf4d3
10,673
py
Python
EGGS_labrad/servers/slider/slider_server.py
EGGS-Experiment/EGGS_Control
c29b3ab0e30dcb6e01d1ca3212ac64ad1506143b
[ "MIT" ]
2
2021-12-26T05:00:54.000Z
2021-12-30T17:15:49.000Z
EGGS_labrad/servers/slider/slider_server.py
EGGS-Experiment/EGGS_Control
c29b3ab0e30dcb6e01d1ca3212ac64ad1506143b
[ "MIT" ]
null
null
null
EGGS_labrad/servers/slider/slider_server.py
EGGS-Experiment/EGGS_Control
c29b3ab0e30dcb6e01d1ca3212ac64ad1506143b
[ "MIT" ]
null
null
null
""" ### BEGIN NODE INFO [info] name = Slider Server version = 1.0.0 description = Controls the ELL9 Slider from ThorLabs. instancename = Slider Server [startup] cmdline = %PYTHON% %FILE% timeout = 20 [shutdown] message = 987654321 timeout = 20 ### END NODE INFO """ from labrad.units import WithUnit from labrad.server...
32.941358
88
0.566757
ef215e3394feacb8406b877755d54ea67d80c5e3
1,938
py
Python
sandbox/test_markov_SIS.py
benmaier/tacoma
c34ea0778236df9e3ac6e2961c1a21801f12a46f
[ "MIT" ]
89
2018-09-19T19:08:22.000Z
2021-10-08T06:25:29.000Z
sandbox/test_markov_SIS.py
benmaier/tacoma
c34ea0778236df9e3ac6e2961c1a21801f12a46f
[ "MIT" ]
12
2018-09-20T09:27:02.000Z
2021-03-19T20:20:13.000Z
sandbox/test_markov_SIS.py
benmaier/tacoma
c34ea0778236df9e3ac6e2961c1a21801f12a46f
[ "MIT" ]
7
2018-12-09T17:42:17.000Z
2020-08-18T14:09:41.000Z
import tacoma as tc import matplotlib.pyplot as pl from tacoma.flockwork import flockwork_P_equilibrium_configuration import _tacoma as _tc import time N = 100 P = [ 0.25 ] rewiring_rate = [ (0.0,1.0) ] t_run_total = 100000.0/N tmax = 1000.0 seed = 7925 R0 = 7 recovery_rate = 0.1 infection_rate = R0 * (1-P[0]) *rec...
24.846154
90
0.741486
29ba7337a158309183140ca327b315b05eb4cdfc
5,807
py
Python
Docking/ProgressiveDocking/sampling.py
jamesgleave/DeepDockingGUI
4baa30af5fac44cce680b849839704b85a2505d5
[ "MIT" ]
10
2021-06-17T12:50:44.000Z
2022-02-28T02:15:19.000Z
Docking/ProgressiveDocking/sampling.py
jamesgleave/DeepDockingGUI
4baa30af5fac44cce680b849839704b85a2505d5
[ "MIT" ]
null
null
null
Docking/ProgressiveDocking/sampling.py
jamesgleave/DeepDockingGUI
4baa30af5fac44cce680b849839704b85a2505d5
[ "MIT" ]
5
2021-07-15T21:37:36.000Z
2022-02-10T02:03:21.000Z
from contextlib import closing from multiprocessing import Pool import pandas as pd import numpy as np import argparse import glob import time import os try: import __builtin__ except ImportError: # Python 3 import builtins as __builtin__ # For debugging purposes only: def print(*args, **kwargs): __bu...
37.954248
117
0.631307
736f0078ab30058ebe18bdde7ec8d40a51e94046
5,205
py
Python
mindspore/_extends/parallel_compile/tbe_compiler/tbe_process.py
dongkcs/mindspore
cd7df6dbf463ff3128e9181e9d0c779cecb81320
[ "Apache-2.0" ]
55
2020-12-17T10:26:06.000Z
2022-03-28T07:18:26.000Z
mindspore/_extends/parallel_compile/tbe_compiler/tbe_process.py
dongkcs/mindspore
cd7df6dbf463ff3128e9181e9d0c779cecb81320
[ "Apache-2.0" ]
1
2020-12-29T06:46:38.000Z
2020-12-29T06:46:38.000Z
mindspore/_extends/parallel_compile/tbe_compiler/tbe_process.py
dongkcs/mindspore
cd7df6dbf463ff3128e9181e9d0c779cecb81320
[ "Apache-2.0" ]
14
2021-01-29T02:39:47.000Z
2022-03-23T05:00:26.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
30.261628
117
0.621134
9983484f37331e4cef221417a6c961c3ff81a615
746
py
Python
setup.py
abronte/PysparkProxy
cc28bacb0d4ee6fb87ced763a73e9ea791612414
[ "Apache-2.0" ]
3
2018-09-06T18:37:35.000Z
2018-09-07T17:49:44.000Z
setup.py
abronte/PysparkProxy
cc28bacb0d4ee6fb87ced763a73e9ea791612414
[ "Apache-2.0" ]
29
2018-09-04T23:53:42.000Z
2018-12-12T21:46:59.000Z
setup.py
abronte/PysparkProxy
cc28bacb0d4ee6fb87ced763a73e9ea791612414
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os from distutils.core import setup with open('requirements.txt') as fp: requires = fp.read().split('\n') with open('LICENSE') as fp: license = fp.read() with open('README.rst') as fp: readme = fp.read() setup( name='PysparkProxy', version='0.0.14', packages=[ ...
24.064516
69
0.654155
f9a0cd2488d153a9d93eeea14a7be8aba0e54e61
6,153
py
Python
sdk/python/pulumi_azure/dns/a_record.py
davidobrien1985/pulumi-azure
811beeea473bd798d77354521266a87a2fac5888
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/dns/a_record.py
davidobrien1985/pulumi-azure
811beeea473bd798d77354521266a87a2fac5888
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/dns/a_record.py
davidobrien1985/pulumi-azure
811beeea473bd798d77354521266a87a2fac5888
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class ARecor...
47.330769
212
0.673168
786962ef6848d59121cdbdd18c9eec667e4749c4
266
py
Python
wagtailcommerce/graphql_api/apps.py
wagtail-commerce/wagtail-commerce
308ed8348483806c16062d09a7e69ec44d9a2e73
[ "BSD-3-Clause" ]
3
2019-04-12T15:38:43.000Z
2019-09-22T10:23:20.000Z
wagtailcommerce/graphql_api/apps.py
wagtailcommerce/wagtailcommerce
308ed8348483806c16062d09a7e69ec44d9a2e73
[ "BSD-3-Clause" ]
null
null
null
wagtailcommerce/graphql_api/apps.py
wagtailcommerce/wagtailcommerce
308ed8348483806c16062d09a7e69ec44d9a2e73
[ "BSD-3-Clause" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class GraphQLAPIAppConfig(AppConfig): name = 'wagtailcommerce.graphql_api' label = 'wagtailcommerce_graphql_api' verbose_name = _('Wagtail Commerce GraphQL API')
29.555556
55
0.789474
b27f7747eca7db49e721bad4b5e119aabeddf014
97
py
Python
exaslct_src/exaslct.py
mace84/script-languages
d586cbe212bbb4efbfb39e095183729c65489360
[ "MIT" ]
null
null
null
exaslct_src/exaslct.py
mace84/script-languages
d586cbe212bbb4efbfb39e095183729c65489360
[ "MIT" ]
1
2019-05-06T07:36:11.000Z
2019-05-06T07:36:11.000Z
exaslct_src/exaslct.py
mace84/script-languages
d586cbe212bbb4efbfb39e095183729c65489360
[ "MIT" ]
1
2018-08-29T12:08:24.000Z
2018-08-29T12:08:24.000Z
#! /usr/bin/env python3 import exaslct_src.cli as cli if __name__ == '__main__': cli.cli()
13.857143
29
0.670103
b9eca00e4794aea56acbc55b4a492d87e1f86395
3,963
py
Python
env/lib/python3.10/site-packages/localflavor/cu/forms.py
hmabubakar313/admin_panel_theme
5016adbc88088bbadfdb6ac107b68da891cdb4a4
[ "Apache-2.0" ]
619
2015-01-08T15:49:06.000Z
2022-03-29T15:06:43.000Z
env/lib/python3.10/site-packages/localflavor/cu/forms.py
hmabubakar313/admin_panel_theme
5016adbc88088bbadfdb6ac107b68da891cdb4a4
[ "Apache-2.0" ]
263
2015-01-03T14:08:52.000Z
2022-03-05T15:03:45.000Z
env/lib/python3.10/site-packages/localflavor/cu/forms.py
hmabubakar313/admin_panel_theme
5016adbc88088bbadfdb6ac107b68da891cdb4a4
[ "Apache-2.0" ]
262
2015-01-05T12:55:07.000Z
2022-03-22T19:15:23.000Z
from django.core.exceptions import ValidationError from django.forms import Field, RegexField, Select from django.utils.translation import gettext_lazy as _ from .choices import PROVINCE_CHOICES, PROVINCE_NORMALIZED, REGION_CHOICES, REGION_NORMALIZED from .validators import CUIdentityCardNumberBirthdayValidator clas...
28.510791
98
0.652284
5b4dd14b2297af45dd96dc4e0bca47c688588349
1,992
py
Python
python/slack_types/web_api/reminders_delete_response.py
warrenseine/slack-types
19e280aa43186ab4b9126ac6891f43cac22d3aaf
[ "MIT" ]
null
null
null
python/slack_types/web_api/reminders_delete_response.py
warrenseine/slack-types
19e280aa43186ab4b9126ac6891f43cac22d3aaf
[ "MIT" ]
null
null
null
python/slack_types/web_api/reminders_delete_response.py
warrenseine/slack-types
19e280aa43186ab4b9126ac6891f43cac22d3aaf
[ "MIT" ]
null
null
null
# To use this code, make sure you # # import json # # and then, to convert JSON from a string, do # # result = reminders_delete_response_from_dict(json.loads(json_string)) from dataclasses import dataclass from typing import Optional, Any, TypeVar, Type, cast T = TypeVar("T") def from_bool(x: Any) -> bool:...
26.210526
77
0.661145
147dc5042eba0affd66b5fafcaf0148e6e272818
4,094
py
Python
steam_market_bulk_sell.py
Nerlant/mabusell
a0d55f1d66388d327d4a271b777d355f2241a127
[ "MIT" ]
1
2022-01-23T12:41:29.000Z
2022-01-23T12:41:29.000Z
steam_market_bulk_sell.py
Nerlant/mabusell
a0d55f1d66388d327d4a271b777d355f2241a127
[ "MIT" ]
null
null
null
steam_market_bulk_sell.py
Nerlant/mabusell
a0d55f1d66388d327d4a271b777d355f2241a127
[ "MIT" ]
2
2021-06-20T03:52:01.000Z
2022-01-23T12:41:32.000Z
from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as ec from selenium.common.exceptions import TimeoutException from getp...
37.559633
118
0.713483
f9ae75bc4e82c50475aefd81d41781163117dcbd
2,192
py
Python
tools/quic/serve.py
MierenManz/wpt
ffa7f0bd56a6a1838b7776dd4483a8a8c7715023
[ "BSD-3-Clause" ]
3
2015-11-18T06:24:23.000Z
2017-05-21T13:55:56.000Z
tools/quic/serve.py
Scopetta197/wpt
fb2af6bc435f7cc810cfea0a4597e20b35808021
[ "BSD-3-Clause" ]
153
2021-01-28T16:58:19.000Z
2022-03-30T22:15:57.000Z
tools/quic/serve.py
Scopetta197/wpt
fb2af6bc435f7cc810cfea0a4597e20b35808021
[ "BSD-3-Clause" ]
4
2018-11-09T00:04:40.000Z
2022-01-21T00:22:19.000Z
#!/usr/bin/env python3 import argparse import logging import os import sys from typing import Any _dir = os.path.dirname(__file__) def get_parser() -> argparse.ArgumentParser: parser = argparse.ArgumentParser(description='QUIC server') parser.add_argument( '-c', '--certificate', type...
27.746835
80
0.613595
d39253cb4930769836432b4fb72c4b8367e415e3
856
py
Python
tests/unitary/CryptoPoolProxy/test_emergency_admin_crypto.py
AqualisDAO/curve-dao-contracts
beec73a068da8ed01c0f710939dc5adb776d565b
[ "MIT" ]
217
2020-06-24T14:01:21.000Z
2022-03-29T08:35:24.000Z
tests/unitary/CryptoPoolProxy/test_emergency_admin_crypto.py
AqualisDAO/curve-dao-contracts
beec73a068da8ed01c0f710939dc5adb776d565b
[ "MIT" ]
25
2020-06-24T09:39:02.000Z
2022-03-22T17:03:00.000Z
tests/unitary/CryptoPoolProxy/test_emergency_admin_crypto.py
AqualisDAO/curve-dao-contracts
beec73a068da8ed01c0f710939dc5adb776d565b
[ "MIT" ]
110
2020-07-10T22:45:49.000Z
2022-03-29T02:51:08.000Z
import brownie import pytest ZERO_ADDRESS = "0x0000000000000000000000000000000000000000" def test_kill(accounts, crypto_pool_proxy, crypto_pool): crypto_pool_proxy.kill_me(crypto_pool, {"from": accounts[2]}) @pytest.mark.parametrize("idx", [0, 2]) def test_unkill(accounts, crypto_pool_proxy, crypto_pool, idx):...
32.923077
73
0.753505
0c9a8d44fb52d4ef908a8b79c6a95c24dd1982a0
3,390
py
Python
certificate/models.py
Robotix-NITRR/RobotixWeb2021
7f66a0dd5c54c44e6a128d8139d6bfd1135580f9
[ "Apache-2.0" ]
null
null
null
certificate/models.py
Robotix-NITRR/RobotixWeb2021
7f66a0dd5c54c44e6a128d8139d6bfd1135580f9
[ "Apache-2.0" ]
null
null
null
certificate/models.py
Robotix-NITRR/RobotixWeb2021
7f66a0dd5c54c44e6a128d8139d6bfd1135580f9
[ "Apache-2.0" ]
2
2021-01-30T08:22:57.000Z
2021-02-04T09:42:59.000Z
from django.db import models import uuid from django.urls import reverse from rest_framework import serializers from django.dispatch import receiver from django.db.models.signals import post_save import urllib.request from django.core.files import File from django.core.files.uploadedfile import InMemoryUploadedFile fro...
35.3125
119
0.640413
d7bec18bc16e1f7e35ae715ebd6896f954ea4373
577
py
Python
mysql_dbconfig.py
B0GE/comboToDbPy
e55bbd24787edecfce9a5cd4497dc5eef6d9bb9b
[ "MIT" ]
null
null
null
mysql_dbconfig.py
B0GE/comboToDbPy
e55bbd24787edecfce9a5cd4497dc5eef6d9bb9b
[ "MIT" ]
null
null
null
mysql_dbconfig.py
B0GE/comboToDbPy
e55bbd24787edecfce9a5cd4497dc5eef6d9bb9b
[ "MIT" ]
null
null
null
from configparser import ConfigParser def read_db_config(filename='dbConf.ini', section='mysql'): """ Read database configuration file and return a dictionary object """ # create parser and read ini configuration file parser = ConfigParser() parser.read(filename) # get section, default to mys...
28.85
82
0.65338
74159272cbbd84b811f466452282a3e0fea809cc
246
py
Python
testing/vulnerable_app/views/models/__init__.py
bbhunter/fuzz-lightyear
75c1318d2f747a4fac6b55a46649c944528769ba
[ "Apache-2.0" ]
169
2019-11-06T20:30:16.000Z
2022-01-22T15:55:19.000Z
testing/vulnerable_app/views/models/__init__.py
bbhunter/fuzz-lightyear
75c1318d2f747a4fac6b55a46649c944528769ba
[ "Apache-2.0" ]
29
2019-09-24T19:44:03.000Z
2021-10-01T09:29:30.000Z
testing/vulnerable_app/views/models/__init__.py
bbhunter/fuzz-lightyear
75c1318d2f747a4fac6b55a46649c944528769ba
[ "Apache-2.0" ]
27
2019-12-27T19:57:28.000Z
2021-12-08T05:38:10.000Z
from collections import namedtuple Model = namedtuple( 'Model', ( # This is passed into @api.marshal_with, and specifies Swagger spec. 'format', # This is the output for the endpoint. 'output', ), )
17.571429
76
0.593496
1f276cf82d6d09bdcf8050dcd3aa3372c9ed6885
5,215
py
Python
feature_extract/dumb_extraction_grig.py
sandias42/mlware
f365623c4efcf54c539c1dc95e569fab80c90286
[ "MIT" ]
4
2017-03-03T18:46:21.000Z
2019-01-22T19:19:00.000Z
feature_extract/dumb_extraction_grig.py
sandias42/mlware
f365623c4efcf54c539c1dc95e569fab80c90286
[ "MIT" ]
null
null
null
feature_extract/dumb_extraction_grig.py
sandias42/mlware
f365623c4efcf54c539c1dc95e569fab80c90286
[ "MIT" ]
null
null
null
""" This file implements completely naive featurization of the xml files.""" import numpy as np from sklearn.feature_extraction.text import HashingVectorizer from sklearn.feature_extraction.text import CountVectorizer, TfidfTransformer from sklearn.pipeline import make_pipeline import os from scipy import io from optp...
36.985816
110
0.671524
7e1f67dcb2676538fa8bc040388ca008b1714887
708
py
Python
NonNeurlModel/predict.py
SamHaoYuan/pitf
5fdebc3b44c6462126876101b052a3980804da79
[ "MIT" ]
12
2018-01-24T07:06:05.000Z
2021-12-18T10:56:15.000Z
NonNeurlModel/predict.py
SamHaoYuan/pitf
5fdebc3b44c6462126876101b052a3980804da79
[ "MIT" ]
2
2018-10-11T13:40:06.000Z
2020-03-26T04:28:03.000Z
NonNeurlModel/predict.py
SamHaoYuan/pitf
5fdebc3b44c6462126876101b052a3980804da79
[ "MIT" ]
5
2018-02-08T07:02:41.000Z
2021-11-15T08:37:19.000Z
import sys import pickle import argparse import numpy as np from pitf import PITF def read_data(filepath): return np.genfromtxt(filepath, delimiter=' ', dtype=int) p = argparse.ArgumentParser() p.add_argument("-i", "--infile", help="input data file", type=argparse.FileType('r'), required=True) p.add_argument("-m"...
33.714286
130
0.725989