hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
795e622634007406216587812f9466887c2c38cf
1,056
py
Python
limbook_api/db/base_model.py
limvus/limbook-api
26c1c2493c4115532b3c8cdc8f6c79c16108ca20
[ "MIT" ]
null
null
null
limbook_api/db/base_model.py
limvus/limbook-api
26c1c2493c4115532b3c8cdc8f6c79c16108ca20
[ "MIT" ]
32
2020-05-10T03:42:43.000Z
2022-01-13T02:40:25.000Z
limbook_api/db/base_model.py
limvus/limbook-api
26c1c2493c4115532b3c8cdc8f6c79c16108ca20
[ "MIT" ]
null
null
null
from flask import json from limbook_api.db import db class BaseDbModel(db.Model): __abstract__ = True id = db.Column(db.Integer, primary_key=True) created_on = db.Column(db.DateTime, default=db.func.now()) updated_on = db.Column( db.DateTime, default=db.func.now(), onupdate=db.func.n...
19.2
62
0.564394
795e62280d16ef1dedd01e93abdc84f416edc9bc
46,585
py
Python
chunair/kicad-footprint-generator-master/scripts/general/StandardBox.py
speedypotato/chuni-lite
c8dda8428723f8c4f99075e7cbaa22a44cbc187d
[ "CC-BY-4.0" ]
2
2022-03-18T23:42:51.000Z
2022-03-19T15:31:34.000Z
chunair/kicad-footprint-generator-master/scripts/general/StandardBox.py
speedypotato/chuni-lite
c8dda8428723f8c4f99075e7cbaa22a44cbc187d
[ "CC-BY-4.0" ]
null
null
null
chunair/kicad-footprint-generator-master/scripts/general/StandardBox.py
speedypotato/chuni-lite
c8dda8428723f8c4f99075e7cbaa22a44cbc187d
[ "CC-BY-4.0" ]
null
null
null
# KicadModTree 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 later version. # # KicadModTree is distributed in the hope that it will be useful, # bu...
44.282319
164
0.406096
795e624a3072e32d36e4b207c090fa8e13e850c3
642
py
Python
testresults/scons230_vs_make/parallel/quad_core/wonderbuild/plot_all.py
SCons/scons-performance
2df4558a1132b62a36f20c1c0b37da8fafa00114
[ "MIT" ]
null
null
null
testresults/scons230_vs_make/parallel/quad_core/wonderbuild/plot_all.py
SCons/scons-performance
2df4558a1132b62a36f20c1c0b37da8fafa00114
[ "MIT" ]
1
2020-09-24T16:09:23.000Z
2020-09-27T17:30:13.000Z
testresults/scons230_vs_make/parallel/quad_core/wonderbuild/plot_all.py
SCons/scons-performance
2df4558a1132b62a36f20c1c0b37da8fafa00114
[ "MIT" ]
2
2020-09-27T21:18:11.000Z
2022-03-23T17:32:03.000Z
import os import sys import glob ford = ['small', 'middle', 'large', 'vlarge', 'vvlarge'] def main(): os.system("rm -rf scaling") os.system("rm -rf speedup") # Loop over all result folders flist = glob.glob('results*') print "Linear scaling" for i in range(len(flist)): print " ", (i...
22.928571
71
0.596573
795e62d5706d4258e5a687655b11f7aab578387f
1,920
py
Python
python/raspberrypi/examples/get_gas_exist/get_gas_exist.py
96liuzhixin/DFRobot_MicsSensor
a1095fa958d35f299ff9d5ea2c07a082699465ec
[ "MIT" ]
null
null
null
python/raspberrypi/examples/get_gas_exist/get_gas_exist.py
96liuzhixin/DFRobot_MicsSensor
a1095fa958d35f299ff9d5ea2c07a082699465ec
[ "MIT" ]
null
null
null
python/raspberrypi/examples/get_gas_exist/get_gas_exist.py
96liuzhixin/DFRobot_MicsSensor
a1095fa958d35f299ff9d5ea2c07a082699465ec
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- """ @file get_gas_exist.py @brief Read if gas is present. @n step: we must first determine the i2c device address, will dial the code switch A0, A1 (ADDRESS_0 for [0 0]), (ADDRESS_1 for [1 0]), (ADDRESS_2 for [0 1]), (ADDRESS_3 for [1 1]). @n Then wait for the calibration to succee...
33.684211
183
0.6
795e62f31677514b78248bfef916e8efef455bea
4,612
py
Python
ReliabilityProjectScripts/PrepareLines.py
EGrigoreva/ReliabilityEducatingProject_CommunicationNetworks
5e11cfdc64fd6f70862387bf58eea10471bf55ef
[ "Unlicense" ]
1
2021-06-01T09:03:45.000Z
2021-06-01T09:03:45.000Z
ReliabilityProjectScripts/PrepareLines.py
EGrigoreva/ReliabilityEducatingProject_CommunicationNetworks
5e11cfdc64fd6f70862387bf58eea10471bf55ef
[ "Unlicense" ]
null
null
null
ReliabilityProjectScripts/PrepareLines.py
EGrigoreva/ReliabilityEducatingProject_CommunicationNetworks
5e11cfdc64fd6f70862387bf58eea10471bf55ef
[ "Unlicense" ]
null
null
null
# ------------------------------------------------------------- # Name: PrepareLines.py # Purpose: It labels the lines in arcgis feature class with the origin and destination nodes # Author: Elena Grigoreva, e.v.grigoryeva@gmail.com (Technical University of Munich) # About author: htt...
37.193548
115
0.660668
795e638c3a7a671e90b2877aa04584fb0b675e27
4,914
py
Python
0_summarize_data.py
charlesylin/crc_tutorial
fbfafdb8080b7c1c98c529dd5068aea6200b9979
[ "MIT" ]
null
null
null
0_summarize_data.py
charlesylin/crc_tutorial
fbfafdb8080b7c1c98c529dd5068aea6200b9979
[ "MIT" ]
null
null
null
0_summarize_data.py
charlesylin/crc_tutorial
fbfafdb8080b7c1c98c529dd5068aea6200b9979
[ "MIT" ]
null
null
null
#!/usr/bin/python #crc tutorial scripts #0_summarize_data.py #identifies datasets and dependencies necessary for tutorial #========================================================================== #=============================DEPENDENCIES================================= #=======================================...
32.328947
112
0.462352
795e64069ceee894aefb78910231d6732a2e1543
5,160
py
Python
integrations/tensorflow/e2e/einsum_dynamic_test.py
schoppmp/iree
d573c3dbb4eef8044764ae6d80ca79e37e8de522
[ "Apache-2.0" ]
null
null
null
integrations/tensorflow/e2e/einsum_dynamic_test.py
schoppmp/iree
d573c3dbb4eef8044764ae6d80ca79e37e8de522
[ "Apache-2.0" ]
null
null
null
integrations/tensorflow/e2e/einsum_dynamic_test.py
schoppmp/iree
d573c3dbb4eef8044764ae6d80ca79e37e8de522
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2020 Google 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
35.342466
74
0.726938
795e64f5e0c0d2ad1483f622e853c5a0d20cb9c5
847
py
Python
image1.py
codio-packs/tkinter-widgets
c35886b7b3a9ca49f0af8a47c8c21e84c117e512
[ "MIT" ]
null
null
null
image1.py
codio-packs/tkinter-widgets
c35886b7b3a9ca49f0af8a47c8c21e84c117e512
[ "MIT" ]
null
null
null
image1.py
codio-packs/tkinter-widgets
c35886b7b3a9ca49f0af8a47c8c21e84c117e512
[ "MIT" ]
null
null
null
from tkinter import * from infrastructure import * class ImageDemoWindow(DemoWindow): def __init__(self): l="""This demonstration displays two images, each in a separate label widget. """ DemoWindow.__init__(self,l, 'image1.py') # load the images in object attributes ...
27.322581
78
0.638725
795e65cc10a128108af6d96fb207fbc97efb8a97
17,426
py
Python
mvpa2/datasets/mri.py
mih/PyMVPA
8dd092277a5410b784bd71f760e39a231b3e45ce
[ "MIT" ]
1
2017-06-07T19:54:07.000Z
2017-06-07T19:54:07.000Z
mvpa2/datasets/mri.py
mih/PyMVPA
8dd092277a5410b784bd71f760e39a231b3e45ce
[ "MIT" ]
null
null
null
mvpa2/datasets/mri.py
mih/PyMVPA
8dd092277a5410b784bd71f760e39a231b3e45ce
[ "MIT" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the PyMVPA package for the # copyright and license terms. # ### ### ### ### ###...
36.004132
83
0.631929
795e68f293a0bf07cfe8bc4f1c21b6a73f4cfbbb
1,296
py
Python
proxy/build/build.py
Charterhouse/private-blockchain
3d608f5cd3480f4022f43cc429b85a47ff5a65ab
[ "MIT" ]
18
2018-04-15T07:27:10.000Z
2022-03-04T11:48:00.000Z
proxy/build/build.py
Charterhouse/private-blockchain
3d608f5cd3480f4022f43cc429b85a47ff5a65ab
[ "MIT" ]
null
null
null
proxy/build/build.py
Charterhouse/private-blockchain
3d608f5cd3480f4022f43cc429b85a47ff5a65ab
[ "MIT" ]
7
2018-04-18T17:40:00.000Z
2019-03-25T10:02:05.000Z
import os, re # Configurations target = os.path.join('.', '..') variables = { 'proxy-domain': 'blockchain.example.com', 'faucet': 'ec2-1-1-1-10.eu-central-1.compute.amazonaws.com', 'node-1': 'ec2-1-1-1-1.eu-central-1.compute.amazonaws.com', 'node-2': 'ec2-1-1-1-2.eu-central-1.compute.amazonaws.com', 'node-3'...
27.574468
63
0.636574
795e68f85aaa139f7c9732c5230cc9b01ed201f2
8,686
py
Python
tests/test_upgrade.py
theatlantic/pip
8d92fc29b380ec0d2fa4a5c120c57476df2db121
[ "MIT" ]
null
null
null
tests/test_upgrade.py
theatlantic/pip
8d92fc29b380ec0d2fa4a5c120c57476df2db121
[ "MIT" ]
null
null
null
tests/test_upgrade.py
theatlantic/pip
8d92fc29b380ec0d2fa4a5c120c57476df2db121
[ "MIT" ]
null
null
null
import textwrap from os.path import join from nose.tools import nottest from tests.test_pip import (here, reset_env, run_pip, assert_all_changes, write_file, pyversion, _create_test_package, _change_test_package_version) from tests.local_repos import local_checkou...
40.4
124
0.692494
795e6b3cf35859cca6858f9e3fd5a75c8b1dd4cf
3,105
py
Python
girder/utility/mail_utils.py
cjh1/girder
293e238b56a4b7a0a413648b5f324876d577ebb0
[ "Apache-2.0" ]
null
null
null
girder/utility/mail_utils.py
cjh1/girder
293e238b56a4b7a0a413648b5f324876d577ebb0
[ "Apache-2.0" ]
null
null
null
girder/utility/mail_utils.py
cjh1/girder
293e238b56a4b7a0a413648b5f324876d577ebb0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # Copyright 2014 Kitware 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 cop...
32.34375
80
0.666667
795e6b9657c27a05107bd4663d3f03288aae0b77
3,172
py
Python
denoiser/PipelineInference.py
Lab41/d-script
4c5079754ca48b2ab5080f10bb677cbd7375a735
[ "Apache-2.0" ]
14
2016-01-09T12:35:56.000Z
2021-03-03T21:27:34.000Z
denoiser/PipelineInference.py
Lab41/d-script
4c5079754ca48b2ab5080f10bb677cbd7375a735
[ "Apache-2.0" ]
9
2016-01-08T00:59:54.000Z
2017-10-20T20:26:33.000Z
denoiser/PipelineInference.py
Lab41/d-script
4c5079754ca48b2ab5080f10bb677cbd7375a735
[ "Apache-2.0" ]
12
2016-01-08T00:33:11.000Z
2018-02-17T21:02:14.000Z
import numpy as np import h5py import sys import logging sys.path.append('..') # Neural network stuff from fielutil import load_verbatimnet from demo_pipeline.featextractor import extract_imfeats #pdb # Logging # logging.getLogger('featextractor').setLevel(logging.DEBUG) shingle_dims=(120,120) # ### Parameters # Do ...
32.040404
163
0.7314
795e6baec17205306bdd0dfd21643aeb8a3ae4c4
7,086
py
Python
mql/pathexpr.py
google/pymql
22e39ed3ae7630f80924ffc6fdd90bfa1f795f49
[ "Apache-2.0" ]
10
2020-08-05T19:13:21.000Z
2022-03-15T19:11:21.000Z
mql/pathexpr.py
teeler/pymql
22e39ed3ae7630f80924ffc6fdd90bfa1f795f49
[ "Apache-2.0" ]
1
2020-08-05T03:08:32.000Z
2020-08-05T03:08:32.000Z
mql/pathexpr.py
teeler/pymql
22e39ed3ae7630f80924ffc6fdd90bfa1f795f49
[ "Apache-2.0" ]
6
2020-08-05T03:07:39.000Z
2021-11-16T11:23:21.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
29.525
80
0.635196
795e6bbc3e0f640008df5033f3a5a9fcccc77b1a
162,593
py
Python
tensorflow/python/ops/image_ops_test.py
yanzhiwei1990/tensorflow
28ede9ed7caee0ce2731d95cc0eb9aff7f360105
[ "Apache-2.0" ]
1
2020-02-04T06:39:30.000Z
2020-02-04T06:39:30.000Z
tensorflow/python/ops/image_ops_test.py
yanzhiwei1990/tensorflow
28ede9ed7caee0ce2731d95cc0eb9aff7f360105
[ "Apache-2.0" ]
1
2019-08-22T20:29:33.000Z
2019-12-19T10:16:21.000Z
tensorflow/python/ops/image_ops_test.py
yanzhiwei1990/tensorflow
28ede9ed7caee0ce2731d95cc0eb9aff7f360105
[ "Apache-2.0" ]
6
2018-12-20T01:35:20.000Z
2020-07-10T17:29:57.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.374557
81
0.631331
795e6c62a5179cc94225ddb3aa1581cd28ba40ab
22,539
py
Python
utils/ext_transforms.py
MR3z4/SemanticSegmentation
1ecb97d8f8a3775868ef7d067b052ea7de0d9e32
[ "MIT" ]
2
2021-01-18T06:55:55.000Z
2021-06-11T08:19:06.000Z
utils/ext_transforms.py
kk1990kk/SemanticSegmentation
513c9b3c995ca6dd7a23b7ad9f9c83c1212a54ad
[ "MIT" ]
1
2021-12-28T21:57:26.000Z
2021-12-28T21:57:26.000Z
utils/ext_transforms.py
kk1990kk/SemanticSegmentation
513c9b3c995ca6dd7a23b7ad9f9c83c1212a54ad
[ "MIT" ]
1
2021-01-18T06:55:57.000Z
2021-01-18T06:55:57.000Z
import numbers import random import cv2 import numpy as np import torch import torchvision.transforms.functional as F from PIL import Image # # Extended Transforms for Semantic Segmentation # class ExtRandomHorizontalFlip(object): """Horizontally flip the given PIL Image randomly with a given probability. ...
35.383046
113
0.587471
795e6db93f6c325140415770551e87c97e5586f2
877
py
Python
examples/cnn_tf_keras_mnist.py
Ideas2IT/auto-prototype
f27ccc1d3126bd81ab2b5de4538f5a3a55d301d0
[ "MIT" ]
3
2021-11-02T09:02:33.000Z
2021-12-28T18:37:03.000Z
examples/cnn_tf_keras_mnist.py
Ideas2IT/auto-prototype
f27ccc1d3126bd81ab2b5de4538f5a3a55d301d0
[ "MIT" ]
null
null
null
examples/cnn_tf_keras_mnist.py
Ideas2IT/auto-prototype
f27ccc1d3126bd81ab2b5de4538f5a3a55d301d0
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import tensorflow as tf import numpy as np mnist = tf.keras.datasets.mnist (x_train, y_train), (x_test, y_test) = mnist.load_data() print(f'Shape of the training data: {x_train.shape}') print(f'Shape of the training target: {y_train.shape}') print(f'Shape of the test data: {x_test.sha...
33.730769
103
0.743444
795e6e97923234bec67d2c82b7aa5e7063550490
2,298
py
Python
doc/example/demo.py
Zen-Reportz/zen_knit
104c2693d2cc61520657131da769f5d59d2df8e9
[ "MIT" ]
30
2021-12-25T15:39:42.000Z
2022-02-25T04:53:44.000Z
doc/example/demo.py
Zen-Reportz/zen_knit
104c2693d2cc61520657131da769f5d59d2df8e9
[ "MIT" ]
11
2022-01-02T22:10:07.000Z
2022-02-02T00:56:33.000Z
doc/example/demo.py
Zen-Reportz/zen_knit
104c2693d2cc61520657131da769f5d59d2df8e9
[ "MIT" ]
2
2022-01-27T13:22:46.000Z
2022-01-30T05:01:59.000Z
import matplotlib.pyplot as plt import numpy as np import pandas as pd from zen_knit.formattor import get_formatter from zen_knit.formattor.html_formatter import HTMLFormatter from zen_knit.data_types import ChunkOption, OrganizedData, GlobalOption, OrganizedChunk, OrganizedChuckType, Input, Output, latexOuput, htmlOut...
22.98
147
0.667537
795e70db90c8e9d681b9d5243e53594a2bada033
4,312
py
Python
experiments/ukf_baseball.py
VladPodilnyk/Kalman-and-Bayesian-Filters-in-Python
1b47e2c27ea0a007e8c36d9f6d453c47402b3615
[ "CC-BY-4.0" ]
12,315
2015-01-07T12:06:26.000Z
2022-03-31T11:03:03.000Z
experiments/ukf_baseball.py
VladPodilnyk/Kalman-and-Bayesian-Filters-in-Python
1b47e2c27ea0a007e8c36d9f6d453c47402b3615
[ "CC-BY-4.0" ]
356
2015-01-09T18:53:02.000Z
2022-03-14T20:21:06.000Z
experiments/ukf_baseball.py
VladPodilnyk/Kalman-and-Bayesian-Filters-in-Python
1b47e2c27ea0a007e8c36d9f6d453c47402b3615
[ "CC-BY-4.0" ]
3,419
2015-01-02T20:47:47.000Z
2022-03-31T18:07:33.000Z
# -*- coding: utf-8 -*- """ Created on Sun Feb 8 09:55:24 2015 @author: rlabbe """ from math import radians, sin, cos, sqrt, exp, atan2, radians from numpy import array, asarray from numpy.random import randn import numpy as np import math import matplotlib.pyplot as plt from filterpy.kalman import UnscentedKalmanFi...
20.055814
76
0.561224
795e743955c4f1a18528a13d9000e0bd6a7bc2a9
761
py
Python
EXTRAS-COOL/T1000/T1000.py
zehemz/clases-python-101
633cb5f0cbc85e64e242514f0394754a5bed0513
[ "Apache-2.0" ]
null
null
null
EXTRAS-COOL/T1000/T1000.py
zehemz/clases-python-101
633cb5f0cbc85e64e242514f0394754a5bed0513
[ "Apache-2.0" ]
null
null
null
EXTRAS-COOL/T1000/T1000.py
zehemz/clases-python-101
633cb5f0cbc85e64e242514f0394754a5bed0513
[ "Apache-2.0" ]
null
null
null
import hashlib def handShakeDecode(fullDocument): elementsString = fullDocument.split(";") robots = [] for element in elementsString: aux = element.strip("[]").split(",") robots.append({"name": aux[0], "key": aux[2]}) return robots if __name__ == "__main__": mFile = open("handshak...
30.44
80
0.578187
795e7486ba0e7e6cc567aad7c59fb335ab0d440d
4,813
py
Python
projects/PointRend/point_rend/dataset_mapper.py
armandmcqueen/detectron2_fork
3bb1ec0925d86578b33fd04a0432956cc7c65219
[ "Apache-2.0" ]
1
2021-12-09T03:22:20.000Z
2021-12-09T03:22:20.000Z
projects/PointRend/point_rend/dataset_mapper.py
armandmcqueen/detectron2_fork
3bb1ec0925d86578b33fd04a0432956cc7c65219
[ "Apache-2.0" ]
4
2021-06-08T22:12:54.000Z
2022-03-12T00:44:32.000Z
projects/PointRend/point_rend/dataset_mapper.py
armandmcqueen/detectron2_fork
3bb1ec0925d86578b33fd04a0432956cc7c65219
[ "Apache-2.0" ]
5
2020-07-30T08:24:25.000Z
2022-01-06T03:19:21.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import copy import logging import numpy as np import torch from fvcore.common.file_io import PathManager from fvcore.transforms.transform import CropTransform from PIL import Image from detectron2.data import detection_utils as utils from detectron...
39.45082
99
0.655724
795e74fe44cbf4c1bce19135a0adfa4b9f5a577e
1,398
py
Python
h/models/organization.py
y3g0r/h
a057144956fe25e669aeba5d0f0eb38f9dc09566
[ "BSD-2-Clause" ]
null
null
null
h/models/organization.py
y3g0r/h
a057144956fe25e669aeba5d0f0eb38f9dc09566
[ "BSD-2-Clause" ]
null
null
null
h/models/organization.py
y3g0r/h
a057144956fe25e669aeba5d0f0eb38f9dc09566
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import sqlalchemy as sa from h.db import Base from h.db import mixins from h import pubid ORGANIZATION_DEFAULT_PUBID = "__default__" ORGANIZATION_NAME_MIN_CHARS = 1 ORGANIZATION_NAME_MAX_CHARS = 25 class Organization(Base, mixins.Timestamps): __tablename__ = "organization" id = sa....
29.744681
85
0.670243
795e756d22d685339c0fa51c16d1e41077816219
3,857
py
Python
beafix_benchmarks/stats.py
Kaixi26/org.alloytools.alloy
1671f0f6ff1a1449f71b0ba0b725afbcaf8020c4
[ "Apache-2.0" ]
null
null
null
beafix_benchmarks/stats.py
Kaixi26/org.alloytools.alloy
1671f0f6ff1a1449f71b0ba0b725afbcaf8020c4
[ "Apache-2.0" ]
null
null
null
beafix_benchmarks/stats.py
Kaixi26/org.alloytools.alloy
1671f0f6ff1a1449f71b0ba0b725afbcaf8020c4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import json import sys import os import re import numpy as np import matplotlib import matplotlib.pyplot as plt from matplotlib.ticker import ScalarFormatter from matplotlib_venn import venn2, venn3 from venn import venn def str_is_int(str): try: _ = int(str) except ValueError: ...
28.360294
99
0.590874
795e758a783a91066a05eefde4f1874c2101a9b8
292
py
Python
crow_nlp/setup.py
stepakar/imitrob_project
837690c1e6b6eb081cd3a5af929d13ec0fdff6ff
[ "BSD-3-Clause" ]
2
2020-04-20T10:51:22.000Z
2021-01-14T16:47:26.000Z
crow_nlp/setup.py
stepakar/imitrob_project
837690c1e6b6eb081cd3a5af929d13ec0fdff6ff
[ "BSD-3-Clause" ]
null
null
null
crow_nlp/setup.py
stepakar/imitrob_project
837690c1e6b6eb081cd3a5af929d13ec0fdff6ff
[ "BSD-3-Clause" ]
1
2021-01-14T16:45:24.000Z
2021-01-14T16:45:24.000Z
#!/usr/bin/env python ## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup setup_args = generate_distutils_setup( packages=['nlp_crow'], package_dir={'': 'src'} ) setup(**setup_args)
29.2
61
0.767123
795e75ea3a3ca1b356898ceff2e1fcda3db371db
1,309
py
Python
experiments/std_plotter.py
baradist/maddpg
b10e3c824f988376233de7eb297d4d96b88b1823
[ "MIT" ]
null
null
null
experiments/std_plotter.py
baradist/maddpg
b10e3c824f988376233de7eb297d4d96b88b1823
[ "MIT" ]
null
null
null
experiments/std_plotter.py
baradist/maddpg
b10e3c824f988376233de7eb297d4d96b88b1823
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np from scipy.signal import savgol_filter from experiments.plotter import Plotter class StdPlotter(Plotter): def __init__(self, vis, frequency=100, title=None, ylabel=None, xlabel=None, legend=None): super(StdPlotter, self).__init__(vis, frequency, title, y...
33.564103
94
0.580596
795e78a9617236ee8a10c73cb5249c4f76e3654d
3,402
py
Python
airflow/providers/amazon/aws/hooks/sns.py
gtossou/airflow
0314a3a218f864f78ec260cc66134e7acae34bc5
[ "Apache-2.0" ]
2
2020-10-23T18:55:03.000Z
2021-07-13T04:45:49.000Z
airflow/providers/amazon/aws/hooks/sns.py
gtossou/airflow
0314a3a218f864f78ec260cc66134e7acae34bc5
[ "Apache-2.0" ]
10
2021-09-08T21:27:07.000Z
2022-03-30T17:54:45.000Z
airflow/providers/amazon/aws/hooks/sns.py
gtossou/airflow
0314a3a218f864f78ec260cc66134e7acae34bc5
[ "Apache-2.0" ]
2
2020-10-23T18:55:05.000Z
2022-02-16T21:53:10.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
35.810526
107
0.656379
795e78c932152a831c44fd183978dadafb9cb73b
4,105
py
Python
research/object_detection/protos/region_similarity_calculator_pb2.py
Omoeba/models
30ca465b204372cf345cf2cab4e2d86cb506956a
[ "Apache-2.0" ]
1
2022-03-13T07:44:17.000Z
2022-03-13T07:44:17.000Z
research/object_detection/protos/region_similarity_calculator_pb2.py
Omoeba/models
30ca465b204372cf345cf2cab4e2d86cb506956a
[ "Apache-2.0" ]
null
null
null
research/object_detection/protos/region_similarity_calculator_pb2.py
Omoeba/models
30ca465b204372cf345cf2cab4e2d86cb506956a
[ "Apache-2.0" ]
1
2019-07-16T00:30:52.000Z
2019-07-16T00:30:52.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: object_detection/protos/region_similarity_calculator.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google....
54.733333
795
0.842387
795e794defd4a62d532540655110dc4672ca7c7e
7,272
py
Python
src/container.py
isabelle-prover/afp-submission
5b8601839949db27d1d5410003c3ef79e18b5c0b
[ "BSD-2-Clause" ]
1
2018-06-26T21:39:03.000Z
2018-06-26T21:39:03.000Z
src/container.py
isabelle-prover/afp-submission
5b8601839949db27d1d5410003c3ef79e18b5c0b
[ "BSD-2-Clause" ]
3
2018-06-25T16:02:04.000Z
2020-12-01T09:24:30.000Z
src/container.py
isabelle-prover/afp-submission
5b8601839949db27d1d5410003c3ef79e18b5c0b
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python3 from datetime import datetime import logging import os import shutil import subprocess import sys import tarfile import threading import zipfile import lxc import config import mailer from entry import Entry, Result BASE = lxc.Container(config.BASE_CONTAINER) class IsabelleRunner: "Executes ...
35.130435
105
0.538091
795e797fb090e7235d6b13ffcca7adb668fe6f79
956
py
Python
scripts/state_action_server.py
Shuhei-YOSHIDA/smach_practice
bcf909cc71dce919310fa164050a136d25975dea
[ "MIT" ]
null
null
null
scripts/state_action_server.py
Shuhei-YOSHIDA/smach_practice
bcf909cc71dce919310fa164050a136d25975dea
[ "MIT" ]
null
null
null
scripts/state_action_server.py
Shuhei-YOSHIDA/smach_practice
bcf909cc71dce919310fa164050a136d25975dea
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ File: state_action_server.py Description: Test action server """ import rospy import actionlib from smach_practice.msg import SmachPracticeAction import time class StateActionServer: def __init__(self): self.server = actionlib.SimpleActionServer('state_action_server', ...
28.117647
73
0.623431
795e79c1ea8ab4b99cd15d702464fd8cec7d7874
734
py
Python
eng_econ/__init__.py
Songyu-Wang/engineering-economics-basics
662aaea316a561686a1f9d339095a00d1c50c042
[ "MIT" ]
null
null
null
eng_econ/__init__.py
Songyu-Wang/engineering-economics-basics
662aaea316a561686a1f9d339095a00d1c50c042
[ "MIT" ]
null
null
null
eng_econ/__init__.py
Songyu-Wang/engineering-economics-basics
662aaea316a561686a1f9d339095a00d1c50c042
[ "MIT" ]
1
2020-10-21T20:43:12.000Z
2020-10-21T20:43:12.000Z
__version__ = "0.1.0" def generate_dcostring(first_notation, second_notation, name): notations = { "F": "Future worth, value, or amount", "P": "Present worth, value, or amount", "A": "Uniform amount per interest period", "G": "Uniform gradient amount per interest period", } ...
28.230769
167
0.632153
795e7a07712a4fee52fb3507da6891ca97f79d70
2,115
py
Python
ML_classifiers/DT_classifier1.py
civilServant-666/Foreign_obj_in_water_channel
98fe63c6e3114583c860d2e4840a327afadab816
[ "MIT" ]
null
null
null
ML_classifiers/DT_classifier1.py
civilServant-666/Foreign_obj_in_water_channel
98fe63c6e3114583c860d2e4840a327afadab816
[ "MIT" ]
null
null
null
ML_classifiers/DT_classifier1.py
civilServant-666/Foreign_obj_in_water_channel
98fe63c6e3114583c860d2e4840a327afadab816
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import matplotlib.pyplot as plt import pylab as pl import time start_time = time.time() # Read and exam the data fp_train = "./classifier1_iswater_training_lbp.csv"; fp_test = "./classifier1_iswater_test_lbp_original_expand.csv"; df_train = pd.read_csv(fp_train, header=...
40.673077
89
0.71773
795e7afbd101164faecf61f1625ac05d0b7b9294
1,263
py
Python
fbpcp/gateway/cloudwatch.py
corbantek/fbpcp
ed94bde5db40e4713f26dd7e0697c010a5d87e52
[ "MIT" ]
24
2021-08-24T09:30:18.000Z
2022-03-28T20:51:01.000Z
fbpcp/gateway/cloudwatch.py
corbantek/fbpcp
ed94bde5db40e4713f26dd7e0697c010a5d87e52
[ "MIT" ]
142
2021-08-16T23:49:27.000Z
2022-03-31T21:05:04.000Z
fbpcp/gateway/cloudwatch.py
corbantek/fbpcp
ed94bde5db40e4713f26dd7e0697c010a5d87e52
[ "MIT" ]
23
2021-09-10T22:55:04.000Z
2022-03-25T18:11:25.000Z
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # pyre-strict from typing import Optional, Dict, List, Any import boto3 from fbpcp.decorator.error_handler import e...
29.372093
83
0.661916
795e7b03a5350651dd8d5b2794006a42b223f7b6
1,720
py
Python
manimation/recaman_sequence.py
WarptronX/Youtube-Videos
e16d3156799bb922aba03627e49d5eaa969d8e0b
[ "MIT" ]
7
2021-03-03T19:30:55.000Z
2021-03-28T09:44:52.000Z
manimation/recaman_sequence.py
WiredPhysics/Youtube-Videos
e16d3156799bb922aba03627e49d5eaa969d8e0b
[ "MIT" ]
null
null
null
manimation/recaman_sequence.py
WiredPhysics/Youtube-Videos
e16d3156799bb922aba03627e49d5eaa969d8e0b
[ "MIT" ]
2
2021-09-03T11:37:21.000Z
2021-10-13T05:23:36.000Z
# Recaman Sequence (Cairo backend) # Numberphile video: https://www.youtube.com/watch?v=FGC5TdIiT9U from manim import * class RecamanSequence(Scene): CONFIG = { "n": 100, # number of iterations } def construct(self): self.count = 0 visited = [0] + [None] * self.n arcs = ...
28.666667
76
0.532558
795e7b7187f3f783745878f94774a12516fedd4f
2,215
py
Python
test_scopestack.py
luscoma/pyRazor
15047a027339895652e700bba8b0884247786f00
[ "MIT" ]
14
2015-02-03T09:59:18.000Z
2020-06-21T11:57:18.000Z
test_scopestack.py
luscoma/pyRazor
15047a027339895652e700bba8b0884247786f00
[ "MIT" ]
4
2015-03-28T00:24:21.000Z
2019-12-26T20:12:54.000Z
test_scopestack.py
luscoma/pyRazor
15047a027339895652e700bba8b0884247786f00
[ "MIT" ]
6
2015-06-15T11:39:56.000Z
2021-12-25T18:29:21.000Z
# Alex Lusco import unittest from scopestack import ScopeStack STEP = " " class CallbackCounter: count = 0 class ScopeStackTest(unittest.TestCase): def setUp(self): self.scope = ScopeStack() def testScopeStartsAtZero(self): self.assertEquals(0, self.scope.getScope(), "Scope didn't start at zero"...
27.6875
77
0.709255
795e7cfc03a6afb88c34073a5c9b1b6db78db231
1,710
py
Python
pytests/saslpasstests.py
sumedhpb/testrunner
9ff887231c75571624abc31a3fb5248110e01203
[ "Apache-2.0" ]
14
2015-02-06T02:47:57.000Z
2020-03-14T15:06:05.000Z
pytests/saslpasstests.py
sumedhpb/testrunner
9ff887231c75571624abc31a3fb5248110e01203
[ "Apache-2.0" ]
3
2019-02-27T19:29:11.000Z
2021-06-02T02:14:27.000Z
pytests/saslpasstests.py
sumedhpb/testrunner
9ff887231c75571624abc31a3fb5248110e01203
[ "Apache-2.0" ]
108
2015-03-26T08:58:49.000Z
2022-03-21T05:21:39.000Z
import logger from basetestcase import BaseTestCase from remote.remote_util import RemoteUtilHelper from couchbase_helper.document import View class SaslPassTests(BaseTestCase): def setUp(self): super(SaslPassTests, self).setUp() def tearDown(self): super(SaslPassTests, self).tearDown() ...
42.75
127
0.581287
795e7d4dedb57375cb3db00c2da7d76ad741e4f8
17,934
py
Python
husky_ur3_gripper_moveit_config/scripts/AR_marker_manip.py
BUAA-Dynamics-and-Control/husky_ur3_simulator
4fd13004f97fbc9cfdc3eddfbab54de545dff30e
[ "MIT" ]
5
2021-08-11T05:41:27.000Z
2022-03-16T14:09:11.000Z
husky_ur3_gripper_moveit_config/scripts/AR_marker_manip.py
BUAA-Dynamics-and-Control/husky_ur3_simulator
4fd13004f97fbc9cfdc3eddfbab54de545dff30e
[ "MIT" ]
null
null
null
husky_ur3_gripper_moveit_config/scripts/AR_marker_manip.py
BUAA-Dynamics-and-Control/husky_ur3_simulator
4fd13004f97fbc9cfdc3eddfbab54de545dff30e
[ "MIT" ]
5
2021-10-14T03:57:51.000Z
2022-03-13T11:02:52.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- """ @author: Sangheum Lee Navigation actionserver: /move_base/goal Type of message: move_base_msgs/MoveBaseActionGoal Actual robot pose topic: /amcl_pose Type of message: geometry_msgs/PoseWithCovarianceStamped """ import sys import rospy import copy, math import threadin...
30.39661
139
0.659585
795e7d53612319a2e86967da6dde984903319bc2
653
py
Python
setup.py
ArtFXDev/silex_client
657d594dcfec79e7c8f4053df9d4a5dbc0c9ac50
[ "MIT" ]
10
2021-09-21T03:26:45.000Z
2022-03-19T00:30:03.000Z
setup.py
ArtFXDev/silex_dcc
657d594dcfec79e7c8f4053df9d4a5dbc0c9ac50
[ "MIT" ]
66
2021-09-17T09:54:23.000Z
2022-03-29T23:31:17.000Z
setup.py
ArtFXDev/silex_dcc
657d594dcfec79e7c8f4053df9d4a5dbc0c9ac50
[ "MIT" ]
null
null
null
#!/usr/bin/env python from distutils.util import convert_path from setuptools import setup # Get version without sourcing silex module main_ns = {} with open(convert_path("silex_client/__version__.py")) as version_file: exec(version_file.read(), main_ns) setup( version=main_ns["__version__"], python_requ...
26.12
71
0.650842
795e7d989feccb005ba56293a9d59e7cb371e5c6
4,072
py
Python
opencv-color-spaces/finding-nemo.py
TheTwoCentsRespository/materials
ebb5eefb2ac86dadff5f99856cc1542858e4dcfd
[ "MIT" ]
4
2019-04-13T23:52:51.000Z
2021-05-10T18:16:10.000Z
opencv-color-spaces/finding-nemo.py
TheTwoCentsRespository/materials
ebb5eefb2ac86dadff5f99856cc1542858e4dcfd
[ "MIT" ]
12
2021-05-01T05:30:36.000Z
2022-02-01T22:01:27.000Z
opencv-color-spaces/finding-nemo.py
Greentash/materials
c18a5b4384fcea51b7138871b6567e17bf706720
[ "MIT" ]
5
2021-08-09T04:20:23.000Z
2022-03-11T06:18:48.000Z
""" Code link for RealPython article with minimal commentary. Author: Rebecca Stone @ysbecca """ import cv2 import numpy as np import matplotlib.pyplot as plt from matplotlib import colors from mpl_toolkits.mplot3d import Axes3D # noqa from matplotlib.colors import hsv_to_rgb # To get a list of all the possible co...
23.952941
78
0.703585
795e7e5edb98f6714611aaa98d33644becebe743
1,655
py
Python
httoop/semantic/message.py
spaceone/httoop
99f5f51a6ebab4bfdfd02d3705a0bffb5379b4a9
[ "MIT" ]
13
2015-01-07T19:39:02.000Z
2021-07-12T21:09:28.000Z
httoop/semantic/message.py
spaceone/httoop
99f5f51a6ebab4bfdfd02d3705a0bffb5379b4a9
[ "MIT" ]
9
2015-06-14T11:37:26.000Z
2020-12-11T09:12:30.000Z
httoop/semantic/message.py
spaceone/httoop
99f5f51a6ebab4bfdfd02d3705a0bffb5379b4a9
[ "MIT" ]
10
2015-05-28T05:51:46.000Z
2021-12-29T20:36:15.000Z
# -*- coding: utf-8 -*- from contextlib import contextmanager class ComposedMessage(object): # FIXME: use it @property def close(self): # pragma: no cover # TODO: find out why this constraint return 'Transfer-Encoding' in self.message.headers and 'chunked' not in self.message.headers.elements('Transfer-Enco...
28.050847
124
0.733535
795e7e9649dc09315c7c1caa92f124b51c4c4f06
2,860
py
Python
geo/config.py
saxix/django-geo
f061f50d6514507fb50e329043820dd0aca0c452
[ "BSD-1-Clause" ]
9
2015-08-22T20:38:48.000Z
2021-07-02T23:36:12.000Z
geo/config.py
saxix/django-geo
f061f50d6514507fb50e329043820dd0aca0c452
[ "BSD-1-Clause" ]
null
null
null
geo/config.py
saxix/django-geo
f061f50d6514507fb50e329043820dd0aca0c452
[ "BSD-1-Clause" ]
2
2015-06-26T16:43:18.000Z
2018-04-23T21:34:39.000Z
from __future__ import absolute_import, unicode_literals from django.core.exceptions import ImproperlyConfigured from django.core.urlresolvers import get_callable from django.db.models import Model from django.utils import six from django.test.signals import setting_changed import os class AppSettings(object): ""...
31.777778
136
0.633217
795e7ea9f8c7e5bc9504fe7aa7b213d34cad6436
594
py
Python
server/plugins/server.py
arkanovicz/incubator-ponymail-foal
0e5475586e3cefa9822f0a74f60f96bb333e6860
[ "Apache-2.0" ]
null
null
null
server/plugins/server.py
arkanovicz/incubator-ponymail-foal
0e5475586e3cefa9822f0a74f60f96bb333e6860
[ "Apache-2.0" ]
null
null
null
server/plugins/server.py
arkanovicz/incubator-ponymail-foal
0e5475586e3cefa9822f0a74f60f96bb333e6860
[ "Apache-2.0" ]
null
null
null
import asyncio import typing import aiohttp from elasticsearch import AsyncElasticsearch import plugins.configuration import plugins.offloader class Endpoint: exec: typing.Callable def __init__(self, executor): self.exec = executor class BaseServer: """Main server class, base def""" conf...
21.214286
47
0.757576
795e7f15945dcefd1dc03fd3a04c94f78d1bff1a
3,276
py
Python
codes/models/heads/i3d_clshead.py
dreamerlin/MVFNet
ed336228ad88821ffe407a4355017acb416e4670
[ "Apache-2.0" ]
102
2020-12-16T03:55:21.000Z
2022-03-11T03:46:03.000Z
codes/models/heads/i3d_clshead.py
ImportPaddle/MVFNet-Paddle
5bc41ae0451a2c3572302c441aaf35b444d04d56
[ "Apache-2.0" ]
4
2021-06-14T18:43:53.000Z
2022-03-28T16:28:51.000Z
codes/models/heads/i3d_clshead.py
ImportPaddle/MVFNet-Paddle
5bc41ae0451a2c3572302c441aaf35b444d04d56
[ "Apache-2.0" ]
8
2021-03-03T00:18:58.000Z
2022-02-18T07:20:06.000Z
"""cls head for 3D input (B C T H W)""" import torch.nn as nn from ..builder import HEADS from .base import BaseHead @HEADS.register_module class I3DClsHead(BaseHead): """cls head for 3D input (B C T H W)""" def __init__(self, spatial_type='avg', spatial_size=7, ...
38.541176
90
0.503968
795e7f1f25d953608f94e7835c8ef41d7ab6a5aa
6,122
py
Python
official/core/train_utils.py
TUDelftHao/models
faf0c2dc442ceaa8425aff73abd00f92f3137b7b
[ "Apache-2.0" ]
1
2020-09-28T13:07:19.000Z
2020-09-28T13:07:19.000Z
official/core/train_utils.py
TUDelftHao/models
faf0c2dc442ceaa8425aff73abd00f92f3137b7b
[ "Apache-2.0" ]
null
null
null
official/core/train_utils.py
TUDelftHao/models
faf0c2dc442ceaa8425aff73abd00f92f3137b7b
[ "Apache-2.0" ]
1
2020-09-28T13:07:23.000Z
2020-09-28T13:07:23.000Z
# Lint as: python3 # Copyright 2020 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 ...
35.387283
80
0.711042
795e81476741f3a69492f8955243b15ef4a7fa2f
4,050
py
Python
virtual/models.py
ensarman/mailapi
3da9f34409d30c431a3235c32074abf60bf253c9
[ "MIT" ]
null
null
null
virtual/models.py
ensarman/mailapi
3da9f34409d30c431a3235c32074abf60bf253c9
[ "MIT" ]
null
null
null
virtual/models.py
ensarman/mailapi
3da9f34409d30c431a3235c32074abf60bf253c9
[ "MIT" ]
null
null
null
from django.db import models from lib import password from django.core.validators import RegexValidator from lib.DoveAdmHTTPClient import DoveAdmHTTPClient from django.conf import settings from django.db.models.signals import pre_save from django.dispatch import receiver # Create your models here. """ Estos modelos ...
32.142857
96
0.620988
795e8180dad597ada6aef2e657526e9d485c1579
5,446
py
Python
openstack/tests/functional/compute/v2/test_server.py
teresa-ho/stx-openstacksdk
7d723da3ffe9861e6e9abcaeadc1991689f782c5
[ "Apache-2.0" ]
null
null
null
openstack/tests/functional/compute/v2/test_server.py
teresa-ho/stx-openstacksdk
7d723da3ffe9861e6e9abcaeadc1991689f782c5
[ "Apache-2.0" ]
null
null
null
openstack/tests/functional/compute/v2/test_server.py
teresa-ho/stx-openstacksdk
7d723da3ffe9861e6e9abcaeadc1991689f782c5
[ "Apache-2.0" ]
null
null
null
# 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...
41.892308
75
0.660668
795e81aa477e162109b511bfe0dbee0897435600
5,679
py
Python
flexget/plugins/input/twitterfeed.py
tvcsantos/Flexget
e08ce2957dd4f0668911d1e56347369939e4d0a5
[ "MIT" ]
null
null
null
flexget/plugins/input/twitterfeed.py
tvcsantos/Flexget
e08ce2957dd4f0668911d1e56347369939e4d0a5
[ "MIT" ]
1
2018-06-09T18:03:35.000Z
2018-06-09T18:03:35.000Z
flexget/plugins/input/twitterfeed.py
tvcsantos/Flexget
e08ce2957dd4f0668911d1e56347369939e4d0a5
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import import logging import re from flexget import options, plugin from flexget.entry import Entry from flexget.event import event log = logging.getLogger('twitterfeed') # Size of the chunks when fetching a timeline CHUNK_SIZE = 200 # Maximum number of tw...
36.876623
113
0.571756
795e832f78cc5ef4a0620fcfe607d2b4a5e0b97a
17,075
py
Python
nanopores/tools/utilities.py
jhwnkim/nanopores
98b3dbb5d36464fbdc03f59d224d38e4255324ce
[ "MIT" ]
null
null
null
nanopores/tools/utilities.py
jhwnkim/nanopores
98b3dbb5d36464fbdc03f59d224d38e4255324ce
[ "MIT" ]
null
null
null
nanopores/tools/utilities.py
jhwnkim/nanopores
98b3dbb5d36464fbdc03f59d224d38e4255324ce
[ "MIT" ]
null
null
null
''' some utility functions for global use after importing * from nanopores ''' from importlib import import_module import inspect, os, sys, glob import matplotlib.pyplot as plt import numpy as np from numpy import array import json import dolfin from nanopores.dirnames import DATADIR from nanopores.tools.protocol impo...
33.15534
103
0.584363
795e841be554f084e046eac705fbb7a8f891aaa6
785
py
Python
src/video/load_video_from_camera.py
jerry-le/computer-vision
bd81a0561680aa976c21c7902cf929257ffeedda
[ "MIT" ]
1
2018-10-14T02:05:58.000Z
2018-10-14T02:05:58.000Z
src/video/load_video_from_camera.py
jerry-le/computer-vision
bd81a0561680aa976c21c7902cf929257ffeedda
[ "MIT" ]
1
2018-10-05T01:48:48.000Z
2018-10-05T01:48:48.000Z
src/video/load_video_from_camera.py
jerry-le/computer-vision
bd81a0561680aa976c21c7902cf929257ffeedda
[ "MIT" ]
null
null
null
""" @author: KhanhLQ Goals: - Learn to read video, display video and save video - Learn to capture camera and display it """ # Capture video from camera (camera can be webcam or external camera) import cv2 import numpy as np print(cv2.__version__) def load_video_from_camera(): # parameter is the index o...
23.088235
69
0.650955
795e8660785bc0a21d27c21183400859f14c7595
2,349
py
Python
references_bot.py
Elielmau/references_bot
69da7cf2ec091e210925b6fd7937c4764c42e93a
[ "MIT" ]
1
2017-09-28T21:27:17.000Z
2017-09-28T21:27:17.000Z
references_bot.py
Elielmau/references_bot
69da7cf2ec091e210925b6fd7937c4764c42e93a
[ "MIT" ]
null
null
null
references_bot.py
Elielmau/references_bot
69da7cf2ec091e210925b6fd7937c4764c42e93a
[ "MIT" ]
null
null
null
#!/usr/bin/env python #-*- coding: utf-8 -*- """Simple Telegram bot that looks for keywords and return media references to a movie, TV show, etc. Created using python-telegram-bot wrapper <https://github.com/python-telegram-bot>""" from telegram.ext import Updater, CommandHandler, MessageHandler, Filters import os imp...
27.313953
102
0.750106
795e87652ec56c717321a83193ae319f34a4d1ff
20,904
py
Python
synthesizer/train.py
StanislavParovoy/tf_multispeakerTTS_fc
cf618dfbe7f58edba15d06cd7c206d20f5dd330a
[ "MIT" ]
30
2020-10-04T08:35:03.000Z
2022-01-29T04:15:58.000Z
synthesizer/train.py
Yablon/aishell-3-baseline-fc
8663a9b6aad39d4e30e83668ff9525ead1aa01e1
[ "MIT" ]
3
2020-12-03T08:41:58.000Z
2021-04-14T05:38:38.000Z
synthesizer/train.py
Yablon/aishell-3-baseline-fc
8663a9b6aad39d4e30e83668ff9525ead1aa01e1
[ "MIT" ]
10
2020-10-04T07:39:00.000Z
2021-07-19T13:55:12.000Z
from synthesizer.utils.symbols import symbols from synthesizer.utils.text import sequence_to_text from synthesizer.hparams import hparams_debug_string from synthesizer.feeder import Feeder from synthesizer.models import create_model from synthesizer.utils import ValueWindow, plot from synthesizer import infolog, audio ...
53.19084
111
0.521336
795e876fc0b4ea20e27fef58a8fd8bfe71517ca4
1,782
py
Python
fabfile.py
kahihia/community
46d55d1029764b8d66278c930a9d574e7d1421d8
[ "MIT" ]
6
2018-04-26T05:54:29.000Z
2021-04-03T05:08:46.000Z
fabfile.py
kahihia/community
46d55d1029764b8d66278c930a9d574e7d1421d8
[ "MIT" ]
13
2018-03-31T07:58:02.000Z
2022-02-10T10:35:28.000Z
fabfile.py
kahihia/community
46d55d1029764b8d66278c930a9d574e7d1421d8
[ "MIT" ]
2
2019-06-13T21:42:21.000Z
2021-04-03T05:09:02.000Z
# -*- coding: utf-8 -*- import os import sys from fabric.api import task, local sys.path.append(os.path.dirname(__file__)) from smartlicense.settings import SCRACTH_DB, BASE_DIR DIR_MIGRATIONS = os.path.join(BASE_DIR, 'smartlicense', 'migrations') @task def reset(): """Reset local development environment""" ...
29.213115
69
0.645903
795e87c3f5f00cb39b84d780886a9c4e7a24bd5d
2,628
py
Python
common/utils.py
nOtFoRgEeKs/Air-Hockey
8897338c1f28ec14fa9aadeced1b0431de4f764f
[ "MIT" ]
null
null
null
common/utils.py
nOtFoRgEeKs/Air-Hockey
8897338c1f28ec14fa9aadeced1b0431de4f764f
[ "MIT" ]
null
null
null
common/utils.py
nOtFoRgEeKs/Air-Hockey
8897338c1f28ec14fa9aadeced1b0431de4f764f
[ "MIT" ]
null
null
null
from typing import Callable, Union, Tuple import pygame from libs import Point, Dimension GameClock = pygame.time.Clock() class GameUtils: @staticmethod def game_loop(framerate: int = 30, required_framerate=10): def game_loop_decorator(func: Callable): def wrapper(*args, **kwargs): ...
35.04
107
0.588661
795e87cae8b3eb0d2582dc5aac50c9e7ab69fcff
254
py
Python
python/dazl/ledgerutil/__init__.py
digital-asset/dazl-client
5d54edaea26d7704cc8d73e5945b37ed2806265b
[ "Apache-2.0" ]
8
2019-09-08T09:41:03.000Z
2022-02-19T12:54:30.000Z
python/dazl/ledgerutil/__init__.py
digital-asset/dazl-client
5d54edaea26d7704cc8d73e5945b37ed2806265b
[ "Apache-2.0" ]
55
2019-05-30T23:00:31.000Z
2022-01-24T01:51:32.000Z
python/dazl/ledgerutil/__init__.py
digital-asset/dazl-client
5d54edaea26d7704cc8d73e5945b37ed2806265b
[ "Apache-2.0" ]
9
2019-06-30T18:15:27.000Z
2021-12-03T10:15:27.000Z
# Copyright (c) 2017-2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. # SPDX-License-Identifier: Apache-2.0 from .acs import ACS from .fetch import fetch_first, fetch_last __all__ = ["ACS", "fetch_first", "fetch_last"]
31.75
102
0.755906
795e884de095b86234ac56fa4e92abfaf19fd012
218
py
Python
contact_form/urls.py
joebos/django-cbv-contact-form
a4905de7081906af7bb1ceac24a9c3243e07e536
[ "BSD-3-Clause" ]
1
2015-10-05T01:25:36.000Z
2015-10-05T01:25:36.000Z
contact_form/urls.py
joebos/django-cbv-contact-form
a4905de7081906af7bb1ceac24a9c3243e07e536
[ "BSD-3-Clause" ]
null
null
null
contact_form/urls.py
joebos/django-cbv-contact-form
a4905de7081906af7bb1ceac24a9c3243e07e536
[ "BSD-3-Clause" ]
null
null
null
"""Django urls for contact form.""" from django.conf.urls import patterns, url from contact_form.views import ContactFormView urlpatterns = patterns('', url(r'^$', ContactFormView.as_view(), name='contact_form'), )
27.25
88
0.743119
795e894c0cd488cac2a2b98d01c5b13f45cc4f17
13,156
py
Python
invenio_indexer/api.py
carantunes/invenio-indexer
34489ddc5f3942c89bfa66e2a7527e3b72a99f71
[ "MIT" ]
null
null
null
invenio_indexer/api.py
carantunes/invenio-indexer
34489ddc5f3942c89bfa66e2a7527e3b72a99f71
[ "MIT" ]
null
null
null
invenio_indexer/api.py
carantunes/invenio-indexer
34489ddc5f3942c89bfa66e2a7527e3b72a99f71
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2016-2018 CERN. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """API for indexing of records.""" from __future__ import absolute_import, print_fun...
33.475827
79
0.618805
795e8a5080cd57bed4f7acbf482a588f80003044
294
py
Python
fython/hello/hello.py
nicolasessisbreton/fython
988f5a94cee8b16b0000501a22239195c73424a1
[ "Apache-2.0" ]
41
2016-01-21T05:14:45.000Z
2021-11-24T20:37:21.000Z
fython/hello/hello.py
nicolasessisbreton/fython
988f5a94cee8b16b0000501a22239195c73424a1
[ "Apache-2.0" ]
5
2016-01-21T05:36:37.000Z
2016-08-22T19:26:51.000Z
fython/hello/hello.py
nicolasessisbreton/fython
988f5a94cee8b16b0000501a22239195c73424a1
[ "Apache-2.0" ]
3
2016-01-23T04:03:44.000Z
2016-08-21T15:58:38.000Z
from ..config import * from ..load import * def hello(): m = load( url = 'fython.hello.hello', force = 0, release = 0, ) prefix = m.hello(size=100, shape=[]) r = '{:s} {:s}/fython/hello/__pycache__/fycache'.format( prefix[:].decode('utf-8').strip(), fython_root, ) return r
15.473684
57
0.602041
795e8a669caf8620d242585bd4550149ec816db6
21,185
py
Python
lib/googlecloudsdk/core/cache/resource_cache.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/core/cache/resource_cache.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
11
2020-02-29T02:51:12.000Z
2022-03-30T23:20:08.000Z
lib/googlecloudsdk/core/cache/resource_cache.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
1
2020-07-24T18:47:35.000Z
2020-07-24T18:47:35.000Z
# -*- coding: utf-8 -*- # # Copyright 2017 Google LLC. 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...
39.086716
118
0.701251
795e8a7e2f2817de89f23f6e8607de216d6ab61f
405
py
Python
shibgreen/util/default_root.py
BTCgreen-Network/shibgreen-blockchain
b1e41e82ad849775543aa36fefc0c0d03e13f6e8
[ "Apache-2.0" ]
12
2021-11-10T02:52:38.000Z
2022-03-22T10:19:45.000Z
shibgreen/util/default_root.py
BTCgreen-Network/shibgreen-blockchain
b1e41e82ad849775543aa36fefc0c0d03e13f6e8
[ "Apache-2.0" ]
13
2021-11-16T03:09:34.000Z
2022-03-09T00:45:05.000Z
shibgreen/util/default_root.py
BTCgreen-Network/shibgreen-blockchain
b1e41e82ad849775543aa36fefc0c0d03e13f6e8
[ "Apache-2.0" ]
1
2022-03-15T08:25:06.000Z
2022-03-15T08:25:06.000Z
import os from pathlib import Path DEFAULT_ROOT_PATH = Path(os.path.expanduser(os.getenv("SHIBGREEN_ROOT", "~/.shibgreen/mainnet"))).resolve() STANDALONE_ROOT_PATH = Path( os.path.expanduser(os.getenv("SHIBGREEN_STANDALONE_WALLET_ROOT", "~/.shibgreen/standalone_wallet")) ).resolve() DEFAULT_KEYS_ROOT_PATH = Path(...
40.5
114
0.775309
795e8af1a176d657a2b8f64f7000ac67c71a810a
3,332
py
Python
luga/artifacts.py
Proteusiq/languages
8ab361ec10b078ae198da42642ad400c1c2b00cc
[ "MIT" ]
8
2021-11-13T16:09:08.000Z
2021-12-03T09:38:19.000Z
luga/artifacts.py
Proteusiq/languages
8ab361ec10b078ae198da42642ad400c1c2b00cc
[ "MIT" ]
4
2021-11-16T14:41:51.000Z
2021-12-23T13:22:46.000Z
luga/artifacts.py
Proteusiq/languages
8ab361ec10b078ae198da42642ad400c1c2b00cc
[ "MIT" ]
3
2021-11-15T11:54:48.000Z
2021-12-03T16:08:57.000Z
from dataclasses import dataclass, field from pathlib import Path from typing import Any, List, Optional, Tuple, Union from gdown import download from fasttext import FastText, load_model # type: ignore from numpy import array from nptyping import NDArray __MODEL_PATH = Path(__file__).parent / "models" __MODEL_FILE ...
28.478632
88
0.666267
795e8bfbda83d593c6ad45bd586fd8e07c664f8d
3,439
py
Python
docs/conf.py
insightindustry/census-geocoder
fa2763e82135f2cdea91ab9431ce61769a778296
[ "MIT" ]
2
2021-12-29T04:34:48.000Z
2022-01-11T18:23:33.000Z
docs/conf.py
insightindustry/census-geocoder
fa2763e82135f2cdea91ab9431ce61769a778296
[ "MIT" ]
3
2021-08-19T18:47:55.000Z
2021-12-28T17:50:43.000Z
docs/conf.py
insightindustry/census-geocoder
fa2763e82135f2cdea91ab9431ce61769a778296
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
32.443396
113
0.659494
795e8e3bd0a4f94db8126bed7c0a756eb9ef723a
2,206
py
Python
scrapy/tests/test_stats.py
hobson/scrapy
9f2465fb81628f2bb70d8d03fd23aa41e9801eae
[ "BSD-3-Clause" ]
1
2017-12-11T02:21:58.000Z
2017-12-11T02:21:58.000Z
scrapy/tests/test_stats.py
hobson/scrapy
9f2465fb81628f2bb70d8d03fd23aa41e9801eae
[ "BSD-3-Clause" ]
10
2020-02-11T23:34:28.000Z
2022-03-11T23:16:12.000Z
scrapy/tests/test_stats.py
hobson/scrapy
9f2465fb81628f2bb70d8d03fd23aa41e9801eae
[ "BSD-3-Clause" ]
3
2018-08-05T14:54:25.000Z
2021-06-07T01:49:59.000Z
import unittest from scrapy.spider import Spider from scrapy.statscol import StatsCollector, DummyStatsCollector from scrapy.utils.test import get_crawler class StatsCollectorTest(unittest.TestCase): def setUp(self): self.crawler = get_crawler() self.spider = Spider('foo') def test_collector...
39.392857
75
0.641432
795e8ed37ce1fc81df0c47e1e986b6d2226414b9
20,238
py
Python
tests/test_domain_c.py
shimizukawa/sphinx
359fc3c7998e057bdb7884f20f5745efd53da49a
[ "BSD-2-Clause" ]
null
null
null
tests/test_domain_c.py
shimizukawa/sphinx
359fc3c7998e057bdb7884f20f5745efd53da49a
[ "BSD-2-Clause" ]
null
null
null
tests/test_domain_c.py
shimizukawa/sphinx
359fc3c7998e057bdb7884f20f5745efd53da49a
[ "BSD-2-Clause" ]
null
null
null
""" test_domain_c ~~~~~~~~~~~~~ Tests the C Domain :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import pytest from sphinx import addnodes from sphinx.domains.c import DefinitionParser, DefinitionError from sphinx.domains.c import _ma...
34.773196
88
0.549461
795e8f72b1895321aceee0a373fecba8d0b022f5
3,552
py
Python
scattertext/Common.py
mastafaMicrosoft/scattertext
6a9b6b85525bc25dec75c4767668881224dd5612
[ "Apache-2.0" ]
1,823
2016-07-28T00:25:56.000Z
2022-03-30T12:33:57.000Z
scattertext/Common.py
mastafaMicrosoft/scattertext
6a9b6b85525bc25dec75c4767668881224dd5612
[ "Apache-2.0" ]
92
2016-07-28T23:13:20.000Z
2022-01-24T03:53:38.000Z
scattertext/Common.py
mastafaMicrosoft/scattertext
6a9b6b85525bc25dec75c4767668881224dd5612
[ "Apache-2.0" ]
271
2016-12-26T12:56:08.000Z
2022-03-24T19:35:13.000Z
from sklearn.feature_extraction.text import ENGLISH_STOP_WORDS # Constants for scaled f-score DEFAULT_BETA = 2 DEFAULT_SCALER_ALGO = 'normcdf' DEFAULT_D3_AXIS_VALUE_FORMAT = '.3f' DEFAULT_PMI_THRESHOLD_COEFFICIENT = 8 DEFAULT_MINIMUM_TERM_FREQUENCY = 3 DEFAULT_DIV_ID = 'd3-div-1' DEFAULT_HTML_VIZ_FILE_NAME = 'sca...
55.5
142
0.616273
795e8fed5f5b6be1bfea85f03192f1bb44a95dc1
638
py
Python
app/__init__.py
kenneth-kip/Kilimo-Smart-API
c0b281f4a5e61731f544e3ed27eeca9ee7615339
[ "MIT" ]
null
null
null
app/__init__.py
kenneth-kip/Kilimo-Smart-API
c0b281f4a5e61731f544e3ed27eeca9ee7615339
[ "MIT" ]
2
2021-03-31T19:11:06.000Z
2021-12-13T19:58:50.000Z
app/__init__.py
kenneth-kip/Kilimo-Smart-API
c0b281f4a5e61731f544e3ed27eeca9ee7615339
[ "MIT" ]
null
null
null
from flask_restplus import Api from flask import Blueprint from .main.controllers.region_controller import API as region_namespace from .main.controllers.produce_controller import API as produce_namespace from .main.controllers.price_controller import API as price_namespace blueprint = Blueprint('api', __name__) api...
33.578947
73
0.766458
795e90da68b2415b63f1120be8883f236d830c68
832
py
Python
tests/test_request_api.py
sharebook-kr/pyupb
085ccbfbda238913e575e1c619c9b9afd81ef5bf
[ "Apache-2.0" ]
332
2018-07-23T14:18:16.000Z
2022-03-31T06:37:26.000Z
tests/test_request_api.py
sharebook-kr/pyupb
085ccbfbda238913e575e1c619c9b9afd81ef5bf
[ "Apache-2.0" ]
52
2019-01-25T04:06:10.000Z
2022-03-27T14:56:52.000Z
tests/test_request_api.py
sharebook-kr/pyupb
085ccbfbda238913e575e1c619c9b9afd81ef5bf
[ "Apache-2.0" ]
161
2018-07-16T11:04:33.000Z
2022-03-28T12:35:46.000Z
import pytest from pyupbit.request_api import _parse_remaining_req from pyupbit.request_api import _call_public_api from pyupbit.errors import RemainingReqParsingError def test_parse_remaining_req_defaults(): limit_info = "group=market; min=573; sec=9" expected = { 'group': 'market', 'min': 57...
26.83871
73
0.711538
795e90dca881233bb295413f30be1b3d678c9742
27,963
py
Python
dist/Platform.app/Contents/Resources/lib/python3.7/wx/lib/imagebrowser.py
njalloul90/Genomics_Oncology_Platform
9bf6d0edca5df783f4e371fa1bc46b7b1576fe70
[ "MIT" ]
6
2021-07-26T14:21:25.000Z
2021-07-26T14:32:01.000Z
dist/Platform.app/Contents/Resources/lib/python3.7/wx/lib/imagebrowser.py
njalloul90/Genomics_Oncology_Platform
9bf6d0edca5df783f4e371fa1bc46b7b1576fe70
[ "MIT" ]
2
2021-12-10T10:25:19.000Z
2021-12-10T10:27:15.000Z
dist/Platform.app/Contents/Resources/lib/python3.7/wx/lib/imagebrowser.py
njalloul90/Genomics_Oncology_Platform
9bf6d0edca5df783f4e371fa1bc46b7b1576fe70
[ "MIT" ]
1
2021-05-10T08:41:12.000Z
2021-05-10T08:41:12.000Z
#---------------------------------------------------------------------------- # Name: BrowseImage.py # Purpose: Display and Select Image Files # # Original Author: Lorne White # # Version: 2.0 # Date: June 16, 2007 # Licence: wxWindows license # Tags: phoenix-port #---------...
32.74356
102
0.589708
795e90e4bea0f0163691b8db1988569deabc8a43
890
py
Python
aws/api/lambda/db.py
slalom-consulting-ltd/tf-provider-demo
c8d92dae50191db705654f238e5214bfb7a7ed40
[ "CC0-1.0" ]
2
2021-01-27T18:19:46.000Z
2021-01-27T18:19:48.000Z
aws/api/lambda/db.py
slalom-consulting-ltd/tf-provider-demo
c8d92dae50191db705654f238e5214bfb7a7ed40
[ "CC0-1.0" ]
null
null
null
aws/api/lambda/db.py
slalom-consulting-ltd/tf-provider-demo
c8d92dae50191db705654f238e5214bfb7a7ed40
[ "CC0-1.0" ]
2
2020-10-28T00:17:47.000Z
2021-05-13T20:57:22.000Z
import json import boto3 def dict_to_item(raw): if isinstance(raw, dict): return { 'M': { key: dict_to_item(value) for key, value in raw.items() } } elif isinstance(raw, list): return { 'L': [dict_to_item(value) for val...
24.722222
58
0.557303
795e912ce9066de3294f35782c2a32c0660da9a3
3,037
py
Python
cos.py
ecumike/django-starter
156b370d0641e0799901c8b4b796bfc46bd05795
[ "Apache-2.0" ]
3
2021-11-24T04:21:37.000Z
2022-01-03T18:11:03.000Z
cos.py
IBM/surveykong
ca55e216cd22eaf13bd839db3f4650b4b7d8ca86
[ "Apache-2.0" ]
null
null
null
cos.py
IBM/surveykong
ca55e216cd22eaf13bd839db3f4650b4b7d8ca86
[ "Apache-2.0" ]
null
null
null
import time import ibm_boto3 from ibm_botocore.client import Config, ClientError from django.conf import settings def showMessage(msg): if settings.DEBUG: print(msg) # Create the connection to our Cloud Object Storage (COS). try: cos = ibm_boto3.resource('s3', ibm_api_key_id = settings.COS_API_KEY_ID, ibm...
29.201923
134
0.706289
795e926d4205d1a12682f946a6178c80b9aef581
7,523
py
Python
alive_progress/styles/internal.py
Shinyh29/alive-progress
767445917e7cb384981c0dc29b3b3204384353b1
[ "MIT" ]
3,304
2019-08-05T07:16:40.000Z
2022-03-31T11:50:57.000Z
alive_progress/styles/internal.py
Shinyh29/alive-progress
767445917e7cb384981c0dc29b3b3204384353b1
[ "MIT" ]
126
2019-08-07T09:08:32.000Z
2022-03-31T14:27:17.000Z
alive_progress/styles/internal.py
Shinyh29/alive-progress
767445917e7cb384981c0dc29b3b3204384353b1
[ "MIT" ]
151
2019-08-12T19:14:15.000Z
2022-03-31T07:17:48.000Z
import sys from collections import OrderedDict from ..animations.bars import bar_factory from ..animations.spinners import alongside_spinner_factory, bouncing_spinner_factory, \ delayed_spinner_factory, frame_spinner_factory, scrolling_spinner_factory, \ sequential_spinner_factory def _wrap_ordered(context, ...
51.176871
99
0.552439
795e92881624bc8a47134c174b57d2e3cdc436a8
608
py
Python
Chapter13/adhoc/fbs_dump.py
feiwang20/DRLHandsOn-Playground
b940c4959993d3ad7c6a2b0429b155d21cafe845
[ "MIT" ]
2,497
2018-05-25T09:45:54.000Z
2022-03-31T14:30:28.000Z
Chapter13/adhoc/fbs_dump.py
feiwang20/DRLHandsOn-Playground
b940c4959993d3ad7c6a2b0429b155d21cafe845
[ "MIT" ]
94
2018-09-02T11:53:00.000Z
2022-03-02T07:36:31.000Z
Chapter13/adhoc/fbs_dump.py
feiwang20/DRLHandsOn-Playground
b940c4959993d3ad7c6a2b0429b155d21cafe845
[ "MIT" ]
1,254
2018-05-23T11:21:24.000Z
2022-03-30T16:56:13.000Z
#!/usr/bin/env python3 import os import sys sys.path.append(os.getcwd()) sys.path.append("..") import argparse from lib.ksy import fbs if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("-f", "--fbs", required=True, help="Name of the FBS file to read") parser.add_argument("...
26.434783
90
0.634868
795e92b0601346b6e7032386bf28a730c6a75ba5
4,534
py
Python
tests/test_views.py
amicks/sqlalchemy-utils
40628641c5d470d6885b10a6ebdd5a46b79957d7
[ "BSD-3-Clause" ]
null
null
null
tests/test_views.py
amicks/sqlalchemy-utils
40628641c5d470d6885b10a6ebdd5a46b79957d7
[ "BSD-3-Clause" ]
null
null
null
tests/test_views.py
amicks/sqlalchemy-utils
40628641c5d470d6885b10a6ebdd5a46b79957d7
[ "BSD-3-Clause" ]
null
null
null
import pytest import sqlalchemy as sa from sqlalchemy_utils import ( create_materialized_view, create_view, refresh_materialized_view ) @pytest.fixture def Article(Base, User): class Article(Base): __tablename__ = 'article' id = sa.Column(sa.Integer, primary_key=True) name = s...
25.049724
78
0.581385
795e9341558943756c0e633191c6276f83d4f3b2
7,428
py
Python
runtime/image_classification/models/8/resnet101/gpus=4_straight/stage3.py
nirandaperera/pipedream
bc05a4e8ce150f681ba6066805604873a3a7cf97
[ "MIT" ]
null
null
null
runtime/image_classification/models/8/resnet101/gpus=4_straight/stage3.py
nirandaperera/pipedream
bc05a4e8ce150f681ba6066805604873a3a7cf97
[ "MIT" ]
null
null
null
runtime/image_classification/models/8/resnet101/gpus=4_straight/stage3.py
nirandaperera/pipedream
bc05a4e8ce150f681ba6066805604873a3a7cf97
[ "MIT" ]
null
null
null
import torch class Stage3(torch.nn.Module): def __init__(self): super(Stage3, self).__init__() self.layer2 = torch.nn.ReLU(inplace=True) self.layer3 = torch.nn.Conv2d(256, 256, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False) self.layer4 = torch.nn.BatchNorm2d(256, ep...
55.432836
113
0.639338
795e9420290dcbec56d8599afe93d5a0e02cea7c
3,213
py
Python
examples/mountaincar/example_mountaincar_client.py
thoughtforge-ai/thoughtforge-client
7247c3c851cf3b94de2f8d7c83f91c1f5556ba24
[ "MIT" ]
null
null
null
examples/mountaincar/example_mountaincar_client.py
thoughtforge-ai/thoughtforge-client
7247c3c851cf3b94de2f8d7c83f91c1f5556ba24
[ "MIT" ]
1
2022-01-15T21:59:14.000Z
2022-01-15T21:59:14.000Z
examples/mountaincar/example_mountaincar_client.py
thoughtforge-ai/thoughtforge-client
7247c3c851cf3b94de2f8d7c83f91c1f5556ba24
[ "MIT" ]
2
2021-01-09T03:26:39.000Z
2021-07-23T19:15:45.000Z
############# # MIT License # # Copyright (C) 2020 ThoughtForge Inc. # # 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...
37.360465
102
0.671335
795e9528d6da45bc04c5bf928493694598da7230
123
py
Python
codeforces/div2/055/A/A.py
mathemage/CompetitiveProgramming
fe39017e3b017f9259f9c1e6385549270940be64
[ "MIT" ]
2
2015-08-18T09:51:19.000Z
2019-01-29T03:18:10.000Z
codeforces/div2/055/A/A.py
mathemage/CompetitiveProgramming
fe39017e3b017f9259f9c1e6385549270940be64
[ "MIT" ]
null
null
null
codeforces/div2/055/A/A.py
mathemage/CompetitiveProgramming
fe39017e3b017f9259f9c1e6385549270940be64
[ "MIT" ]
null
null
null
s = input() lowers = 0 for c in s: lowers += int(c.islower()) print(s.upper() if 2 * lowers < len(s) else s.lower())
15.375
54
0.577236
795e95a7f71d5300eafb2f84fa4533acf5c8b85f
581
py
Python
000403_01_12_task_03_calc_my.py
SafonovMikhail/python_000403
79709c7ca2b32d09d0740bea9ddf7e6d020db021
[ "Apache-2.0" ]
null
null
null
000403_01_12_task_03_calc_my.py
SafonovMikhail/python_000403
79709c7ca2b32d09d0740bea9ddf7e6d020db021
[ "Apache-2.0" ]
null
null
null
000403_01_12_task_03_calc_my.py
SafonovMikhail/python_000403
79709c7ca2b32d09d0740bea9ddf7e6d020db021
[ "Apache-2.0" ]
null
null
null
# 000403_01_12_task_03_calc_my.py a = float(input()) b = float(input()) i = input() if (i == '+'): # попался!!! ввел '=' вместо '==' print(a + b) elif (i == '-'): print(a - b) elif (i == '/'): if b == 0: print('Деление на 0!') else: print(a / b) elif (i == '*'): print(a * b) elif (i...
20.034483
49
0.450947
795e965ce6ed104415f6c38a01c10b9bb512f2b1
1,865
py
Python
sox_chords/util/image.py
baudcode/sox-chords
b3217fa3cd32a49979ab43ad903fb8febf37754f
[ "MIT" ]
null
null
null
sox_chords/util/image.py
baudcode/sox-chords
b3217fa3cd32a49979ab43ad903fb8febf37754f
[ "MIT" ]
null
null
null
sox_chords/util/image.py
baudcode/sox-chords
b3217fa3cd32a49979ab43ad903fb8febf37754f
[ "MIT" ]
null
null
null
from sox_chords import values # from random import randint import numpy as np from PIL import Image import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt matplotlib.rcParams['axes.titlesize'] = 8 matplotlib.rcParams['axes.labelsize'] = 5 matplotlib.rcParams['xtick.labelsize'] = 5 matplotlib.rcPara...
23.607595
91
0.631099
795e99e2b1396dcccd12d8555a03cd113e631a14
6,567
py
Python
contrib/metrixplusplus-1.3.168/tests/system/test_boost_parts.py
vijaysm/mmodel-software-analysis
3877244d5997caf3c7ed7355d6af71d85291b2f5
[ "MIT" ]
null
null
null
contrib/metrixplusplus-1.3.168/tests/system/test_boost_parts.py
vijaysm/mmodel-software-analysis
3877244d5997caf3c7ed7355d6af71d85291b2f5
[ "MIT" ]
null
null
null
contrib/metrixplusplus-1.3.168/tests/system/test_boost_parts.py
vijaysm/mmodel-software-analysis
3877244d5997caf3c7ed7355d6af71d85291b2f5
[ "MIT" ]
null
null
null
# # Metrix++, Copyright 2009-2013, Metrix++ Project # Link: http://metrixplusplus.sourceforge.net # # This file is a part of Metrix++ Tool. # # Metrix++ is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the ...
47.244604
110
0.382975
795e9a85e2f741ef94cec87137a0444320deddd9
580
py
Python
run.py
cemdrk/selenium-crawler
83ef74ccf8f85de7c09f71a3e34cfd787e171315
[ "MIT" ]
null
null
null
run.py
cemdrk/selenium-crawler
83ef74ccf8f85de7c09f71a3e34cfd787e171315
[ "MIT" ]
null
null
null
run.py
cemdrk/selenium-crawler
83ef74ccf8f85de7c09f71a3e34cfd787e171315
[ "MIT" ]
null
null
null
import argparse from crawler import main if __name__ == '__main__': parser = argparse.ArgumentParser(description='dictionary.cambridge.org crawler') parser.add_argument('inputfile', help='inputfile path') parser.add_argument('--outfile', default='dictionary.json', help='json output path') parser.add...
34.117647
88
0.732759
795e9ad4024b5ff57eeb731cabcdf5704375e3d3
455
py
Python
auto/AppTester/lib/path.py
Strugglingrookie/oldboy2
8ed6723cab1f54f2ff8ea0947c6f982aef7e1b47
[ "Apache-2.0" ]
1
2021-06-15T07:01:23.000Z
2021-06-15T07:01:23.000Z
auto/AppTester/lib/path.py
Strugglingrookie/oldboy2
8ed6723cab1f54f2ff8ea0947c6f982aef7e1b47
[ "Apache-2.0" ]
3
2020-02-13T14:35:36.000Z
2021-06-10T21:27:14.000Z
auto/AppTester/lib/path.py
Strugglingrookie/oldboy2
8ed6723cab1f54f2ff8ea0947c6f982aef7e1b47
[ "Apache-2.0" ]
1
2020-04-09T02:13:12.000Z
2020-04-09T02:13:12.000Z
import os BASEPATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) APPPATH = os.path.join(BASEPATH, 'conf', 'appController.yml') LOGPATH = os.path.join(BASEPATH, 'log') SYSTEMPATH = os.path.join(LOGPATH, 'server.log') APPREPORT = os.path.join(BASEPATH, 'report', '{}') APPPICTUREPATH = BASEPATH + os....
28.4375
115
0.687912
795e9bbc4307473c58efdeb5c4b26e4d1468c92f
11,432
py
Python
speccer/strategy.py
bensimner/speccer
85cd4fa72e87b104b072663dfe373eeb47d44b61
[ "MIT" ]
1
2022-02-09T01:39:33.000Z
2022-02-09T01:39:33.000Z
speccer/strategy.py
bensimner/speccer
85cd4fa72e87b104b072663dfe373eeb47d44b61
[ "MIT" ]
null
null
null
speccer/strategy.py
bensimner/speccer
85cd4fa72e87b104b072663dfe373eeb47d44b61
[ "MIT" ]
null
null
null
# strategy.py - Strategies for producing arguments to model commands # author: Ben Simner #from __future__ import generator_stop import abc import heapq import logging import inspect import functools import collections from . import _errors from . import grapher from . import typeable from . import ops ...
31.66759
114
0.550997
795e9cad7e8f7e5636f38985bd0bc711a02a20bc
1,423
py
Python
app/core/tests/test_admin.py
erayozer17/recipe-app-api
17d7277e9de32ae082a6318cfb5217cfdfe10d62
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
erayozer17/recipe-app-api
17d7277e9de32ae082a6318cfb5217cfdfe10d62
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
erayozer17/recipe-app-api
17d7277e9de32ae082a6318cfb5217cfdfe10d62
[ "MIT" ]
null
null
null
from django.test import TestCase, Client from django.contrib.auth import get_user_model from django.urls import reverse class AdminSiteTests(TestCase): def setUp(self): self.client = Client() self.admin_user = get_user_model().objects.create_superuser( email='test@test.com', ...
31.622222
68
0.62825
795e9cc3dfcfeb923ab5e3ccdae3b2f734a5d9fd
753
py
Python
app/commands.py
itsDrac/igclone
d7e059b25fe630db82ad146ae091cb5bf16fd739
[ "MIT" ]
19
2021-04-28T12:01:38.000Z
2022-03-08T12:48:33.000Z
app/commands.py
itsDrac/igclone
d7e059b25fe630db82ad146ae091cb5bf16fd739
[ "MIT" ]
null
null
null
app/commands.py
itsDrac/igclone
d7e059b25fe630db82ad146ae091cb5bf16fd739
[ "MIT" ]
5
2021-04-28T16:40:29.000Z
2022-03-08T12:48:37.000Z
from app.extinsions import db from app.user.models import User from flask.cli import with_appcontext import click @click.command(name="create_db") @with_appcontext def create_tables(): db.create_all() @click.command(name="drop_db") @with_appcontext def delete_tables(): db.drop_all() @click.command(name="del_...
21.514286
43
0.661355
795e9d658bea56bac0f6861e5ecf005b45f6a759
261
py
Python
tests/artificial/transf_Fisher/trend_PolyTrend/cycle_12/ar_/test_artificial_32_Fisher_PolyTrend_12__20.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/artificial/transf_Fisher/trend_PolyTrend/cycle_12/ar_/test_artificial_32_Fisher_PolyTrend_12__20.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/artificial/transf_Fisher/trend_PolyTrend/cycle_12/ar_/test_artificial_32_Fisher_PolyTrend_12__20.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "PolyTrend", cycle_length = 12, transform = "Fisher", sigma = 0.0, exog_count = 20, ar_order = 0);
37.285714
161
0.727969
795e9da65f9a001c4475590a541d4d7151119b37
1,716
py
Python
torch2trt/converters/chunk.py
Akababa/torch2trt
03063b74a7eb40f5aac88d49be6b8b5e4e4e92d7
[ "MIT" ]
2
2020-07-10T06:26:03.000Z
2020-07-10T07:38:08.000Z
torch2trt/converters/chunk.py
Akababa/torch2trt
03063b74a7eb40f5aac88d49be6b8b5e4e4e92d7
[ "MIT" ]
1
2020-02-16T09:43:35.000Z
2020-02-16T09:43:35.000Z
torch2trt/converters/chunk.py
Akababa/torch2trt
03063b74a7eb40f5aac88d49be6b8b5e4e4e92d7
[ "MIT" ]
null
null
null
from ..conversion_context import * from torch2trt.module_test import add_module_test from .split import convert_split @tensorrt_converter('torch.chunk') @tensorrt_converter('torch.Tensor.chunk') def convert_chunk(ctx): convert_split(ctx) class TorchChunk(torch.nn.Module): def __init__(self, *ar...
28.6
69
0.657343
795e9dc90e335e3cb1c27a63b9acb7f03cb218d8
15,586
py
Python
lib/stagers/windows/backdoorLnkMacro.py
Gui-Luz/Empire
6f5eeff5f46dd085e1317cb09b39853a2fce5d13
[ "BSD-3-Clause" ]
5,720
2017-02-02T13:59:40.000Z
2022-03-31T09:50:10.000Z
lib/stagers/windows/backdoorLnkMacro.py
VookiBoo/Empire
5aae31e7de591282773d2c8498af04ee4e8778f5
[ "BSD-3-Clause" ]
866
2017-02-02T10:56:31.000Z
2020-01-17T07:47:05.000Z
lib/stagers/windows/backdoorLnkMacro.py
VookiBoo/Empire
5aae31e7de591282773d2c8498af04ee4e8778f5
[ "BSD-3-Clause" ]
2,181
2017-02-04T10:28:41.000Z
2022-03-31T04:36:56.000Z
import random, string, xlrd, datetime from xlutils.copy import copy from xlwt import Workbook, Utils from lib.common import helpers from Crypto.Cipher import AES class Stager: def __init__(self, mainMenu, params=[]): self.info = { 'Name': 'BackdoorLnkMacro', 'Author': ['@G0ldenGu...
59.716475
861
0.641922
795e9e45a0c204305334a4141cee0481f5cf76ea
2,707
py
Python
tests/runtest/rerun.py
llvm/lnt
77e0a25f996a5363e23f701c0d995525a5c6484a
[ "Apache-2.0" ]
19
2019-01-15T03:04:00.000Z
2021-12-08T00:09:01.000Z
tests/runtest/rerun.py
llvm/lnt
77e0a25f996a5363e23f701c0d995525a5c6484a
[ "Apache-2.0" ]
5
2019-04-11T06:22:18.000Z
2021-09-13T17:41:14.000Z
tests/runtest/rerun.py
llvm/lnt
77e0a25f996a5363e23f701c0d995525a5c6484a
[ "Apache-2.0" ]
21
2019-02-10T02:47:55.000Z
2022-03-31T14:16:36.000Z
# Testing for the rerun feature of LNT nt. # This test runs two stub test suites. The second one has different values for # some of the test, so they should be marked as regressions, and reruns should # be triggered. # RUN: rm -rf %t.instance # RUN: mkdir -p %t.instance # RUN: rsync -av --exclude .svn %S/Inputs/rerun_...
39.808824
79
0.719985
795e9e4f2493c0c3db5247271e0247273b09c0e8
428
py
Python
tests/integrationTests/tests/json/__init__.py
hifiadi/Submitty
62a8239313cff7e3f841ff66aeda6b0557e9c15b
[ "BSD-3-Clause" ]
null
null
null
tests/integrationTests/tests/json/__init__.py
hifiadi/Submitty
62a8239313cff7e3f841ff66aeda6b0557e9c15b
[ "BSD-3-Clause" ]
null
null
null
tests/integrationTests/tests/json/__init__.py
hifiadi/Submitty
62a8239313cff7e3f841ff66aeda6b0557e9c15b
[ "BSD-3-Clause" ]
null
null
null
# Necessary imports. Provides library functions to ease writing tests. from lib import testcase @testcase def correct_json_output(test): test.run_validator() # Runs validator.out with default arguments # Check differences on output files. Files within the data directory are compared with # their counterpar...
38.909091
90
0.775701
795e9e82366e446a8b513ba7b170c0699501042c
2,338
py
Python
pysnmp/DGS1100-18-MGMT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/DGS1100-18-MGMT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/DGS1100-18-MGMT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module DGS1100-18-MGMT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DGS1100-18-MGMT-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:30:13 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default...
80.62069
477
0.788281
795e9ea4de63e44265044f661f7f287c88d2e14d
1,693
py
Python
reproduce/fig2.py
mc-nya/federated-learning
575d2af61c869ac6891727b0cc3b917e42a45f51
[ "MIT" ]
null
null
null
reproduce/fig2.py
mc-nya/federated-learning
575d2af61c869ac6891727b0cc3b917e42a45f51
[ "MIT" ]
null
null
null
reproduce/fig2.py
mc-nya/federated-learning
575d2af61c869ac6891727b0cc3b917e42a45f51
[ "MIT" ]
2
2022-02-23T10:46:28.000Z
2022-02-24T16:19:50.000Z
import matplotlib.pyplot as plt import yaml import numpy as np file_list = [ "results/HR/tau/1_1.yaml", "results/HR/optim/noniid_sgd_1.yaml", "results/HR/tau/iid_1_1.yaml", "results/HR/optim/iid_sgd_1.yaml", ] name_list = [ r"$\mathrm{FedNest}$, non-iid", r"$\mathrm{FedNest}_\mathrm{SGD}$, no...
27.754098
93
0.652688
795ea01fbe799c6e91ce8e62c82507138ab67ae0
3,663
py
Python
plugins/AigisPlugin.py
Zaltu/AIGIS
3559bbb126e988984cfdb48c3cd0675d78ee4bb4
[ "MIT" ]
null
null
null
plugins/AigisPlugin.py
Zaltu/AIGIS
3559bbb126e988984cfdb48c3cd0675d78ee4bb4
[ "MIT" ]
null
null
null
plugins/AigisPlugin.py
Zaltu/AIGIS
3559bbb126e988984cfdb48c3cd0675d78ee4bb4
[ "MIT" ]
null
null
null
""" Representation of a plugin with handlers used by the core to properly route traffic. """ #pylint: disable=import-error import os from utils import mod_utils, path_utils #pylint: disable=no-name-in-module from plugins import PluginIO _LOADER_TYPES = { "core": PluginIO.CoreIO, "internal": PluginIO.Internal...
38.968085
102
0.653836
795ea11d35d5dc4226a3b8167ccf35265e5fe4b0
11,681
py
Python
fabric/state.py
hrubi/fabric
5b7ba26915c188b7748dccd659d26e7b7e9056ae
[ "BSD-2-Clause" ]
null
null
null
fabric/state.py
hrubi/fabric
5b7ba26915c188b7748dccd659d26e7b7e9056ae
[ "BSD-2-Clause" ]
null
null
null
fabric/state.py
hrubi/fabric
5b7ba26915c188b7748dccd659d26e7b7e9056ae
[ "BSD-2-Clause" ]
1
2019-01-05T04:54:10.000Z
2019-01-05T04:54:10.000Z
""" Internal shared-state variables such as config settings and host lists. """ import os import sys from optparse import make_option from fabric.network import HostConnectionCache, ssh from fabric.version import get_version from fabric.utils import _AliasDict, _AttributeDict # # Win32 flag # # Impacts a handful o...
27.292056
79
0.62118
795ea17f1ce1d1ad4cc7c4876286c9f3d470a554
1,276
py
Python
PubMed/pubmed_movePDF.py
crb479/mcdevitt-trauma-ml
9ed7ed7cd1e4be0071a18f9bbf375414088d5ed2
[ "MIT" ]
5
2020-03-02T23:38:36.000Z
2021-01-22T04:00:23.000Z
PubMed/pubmed_movePDF.py
crb479/mcdevitt-trauma-ml
9ed7ed7cd1e4be0071a18f9bbf375414088d5ed2
[ "MIT" ]
null
null
null
PubMed/pubmed_movePDF.py
crb479/mcdevitt-trauma-ml
9ed7ed7cd1e4be0071a18f9bbf375414088d5ed2
[ "MIT" ]
null
null
null
import os import pandas as pd def movePDF(FILEPATH, PAPER_TYPE, STUDY_TYPE, rejected): dest = FILEPATH # When STUDY_TYPE is None, it is read as float for some reason. if FILEPATH and PAPER_TYPE and STUDY_TYPE: if type(FILEPATH) == float: return dest source_folder = os.path.dirname(FILEPATH) ...
26.583333
129
0.669279
795ea1f410cb7c1b667f3e217afd5d5cc3e2c299
3,816
py
Python
tests/unit/blockchain/conftest.py
windies21/loopchain
6e96c8a7e006747af04187155678f2fae59e1389
[ "Apache-2.0" ]
105
2018-04-03T05:29:08.000Z
2022-01-28T17:33:20.000Z
testcase/unittest/blockchain/conftest.py
laurenceyoon/loopchain
e87032779be4715c135c2c91d2757d9c63bf4e31
[ "Apache-2.0" ]
135
2018-09-04T07:11:02.000Z
2021-12-15T06:25:47.000Z
testcase/unittest/blockchain/conftest.py
laurenceyoon/loopchain
e87032779be4715c135c2c91d2757d9c63bf4e31
[ "Apache-2.0" ]
46
2018-05-07T09:12:07.000Z
2022-02-23T09:58:37.000Z
import functools import os from typing import List, Callable, Optional import pytest from loopchain.blockchain.transactions import Transaction, TransactionBuilder, TransactionVersioner from loopchain.blockchain.transactions import genesis, v2, v3 from loopchain.blockchain.types import ExternalAddress, Address from lo...
37.048544
125
0.67086
795ea574fabbaf5d33fc96e3b8309621cbacb9c8
1,886
py
Python
utest/utils/test_idgenerator.py
gdw2/robot-framework
f25068edf1502e76ba8664d4b5ed1aebe0ee2434
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
utest/utils/test_idgenerator.py
gdw2/robot-framework
f25068edf1502e76ba8664d4b5ed1aebe0ee2434
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
utest/utils/test_idgenerator.py
gdw2/robot-framework
f25068edf1502e76ba8664d4b5ed1aebe0ee2434
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import unittest import os.path from robot.utils.asserts import * from robot.utils.idgenerator import IdGenerator, FileNameGenerator class TestIdAndFileNameGenerators(unittest.TestCase): def test_id_generator_no_args(self): gen = IdGenerator() for i in range(1, 101): assert_equal...
36.269231
74
0.615589
795ea58381492dcb86878bcbbda527c0fc22dc9f
45
py
Python
imet2020/code/augmentations/__init__.py
karunru/kaggle_practice
a368bcf11bd68910bdd4cba9e691f1d7f6ae0b37
[ "MIT" ]
null
null
null
imet2020/code/augmentations/__init__.py
karunru/kaggle_practice
a368bcf11bd68910bdd4cba9e691f1d7f6ae0b37
[ "MIT" ]
null
null
null
imet2020/code/augmentations/__init__.py
karunru/kaggle_practice
a368bcf11bd68910bdd4cba9e691f1d7f6ae0b37
[ "MIT" ]
null
null
null
from .aug_utils import rand_bbox, rand_region
45
45
0.866667
795ea5a3d6f0030b02b36671373222004e55b9ea
2,506
py
Python
solo_random.py
Katze2664/Incan_Gold
3e362c9a353db2e556e60cc1fc20e56eff0c51fb
[ "MIT" ]
null
null
null
solo_random.py
Katze2664/Incan_Gold
3e362c9a353db2e556e60cc1fc20e56eff0c51fb
[ "MIT" ]
null
null
null
solo_random.py
Katze2664/Incan_Gold
3e362c9a353db2e556e60cc1fc20e56eff0c51fb
[ "MIT" ]
null
null
null
import time time.perf_counter() from game_mechanics import Player, Simulator from strategies import make_random_strat import numpy as np import matplotlib.pyplot as plt # A bot plays Incan Gold in single-player mode. # The bot leaves when with a probability of Random Threshold each turn. # The game is simulated many t...
32.545455
99
0.712291
795ea628edf8699e930a4161d3545d99c267d244
8,718
py
Python
VirtualBox-5.0.0/src/VBox/ValidationKit/testmanager/core/vcsrevisions.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/ValidationKit/testmanager/core/vcsrevisions.py
egraba/vbox_openbsd
6cb82f2eed1fa697d088cecc91722b55b19713c2
[ "MIT" ]
null
null
null
VirtualBox-5.0.0/src/VBox/ValidationKit/testmanager/core/vcsrevisions.py
egraba/vbox_openbsd
6cb82f2eed1fa697d088cecc91722b55b19713c2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # $Id: vcsrevisions.py $ """ Test Manager - VcsRevisions """ __copyright__ = \ """ Copyright (C) 2012-2015 Oracle Corporation This file is part of VirtualBox Open Source Edition (OSE), as available from http://www.virtualbox.org. This file is free software; you can redistribute it and/or modi...
35.876543
119
0.553453
795ea6a5d40d77db454a99cce3a929a7044f2358
1,787
py
Python
.leetcode/405.convert-a-number-to-hexadecimal.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/405.convert-a-number-to-hexadecimal.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/405.convert-a-number-to-hexadecimal.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
# @lc app=leetcode id=405 lang=python3 # # [405] Convert a Number to Hexadecimal # # https://leetcode.com/problems/convert-a-number-to-hexadecimal/description/ # # algorithms # Easy (44.92%) # Likes: 702 # Dislikes: 142 # Total Accepted: 85.9K # Total Submissions: 190.7K # Testcase Example: '26' # # Given an int...
18.050505
76
0.609401
795ea6bc94f73600b010241b9cac1675ce2a879c
4,083
py
Python
EstrazioneDatiDaFile.py
agnsal/panoramAbruzzo
9961a1aa5018588b895158337b95afb799cd4d9d
[ "Apache-2.0" ]
null
null
null
EstrazioneDatiDaFile.py
agnsal/panoramAbruzzo
9961a1aa5018588b895158337b95afb799cd4d9d
[ "Apache-2.0" ]
null
null
null
EstrazioneDatiDaFile.py
agnsal/panoramAbruzzo
9961a1aa5018588b895158337b95afb799cd4d9d
[ "Apache-2.0" ]
null
null
null
from tweepy.streaming import StreamListener from tweepy import OAuthHandler from tweepy import Stream import json from geomet import wkt # Questo programma estrae le informazioni id;descrizione;url;posizione;località;tweet dai tweet #prende in input un file sorgente che contiene solo quei tweet che contengono...
40.83
202
0.564291
795ea6e78e384ad0030d7c0eee5843d82ed123f6
5,253
py
Python
azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_protected_items_operations.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
4
2016-06-17T23:25:29.000Z
2022-03-30T22:37:45.000Z
azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_protected_items_operations.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_protected_items_operations.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
3
2016-05-03T20:49:46.000Z
2017-10-05T21:05:27.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
44.516949
167
0.640586