hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
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
4
247
max_forks_repo_name
stringlengths
4
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.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
b12f16067e2438476a71c3dfb0f412d13b57ebe3
117
py
Python
busy_beaver/apps/call_for_proposals/blueprint.py
alysivji/github-adapter
5e3543f41f189fbe4a50d64e3d6734dc765579b4
[ "MIT" ]
55
2019-05-05T01:20:58.000Z
2022-01-10T18:03:05.000Z
busy_beaver/apps/call_for_proposals/blueprint.py
alysivji/github-adapter
5e3543f41f189fbe4a50d64e3d6734dc765579b4
[ "MIT" ]
222
2019-05-03T16:31:26.000Z
2021-08-28T23:49:03.000Z
busy_beaver/apps/call_for_proposals/blueprint.py
busy-beaver-dev/busy-beaver
5e3543f41f189fbe4a50d64e3d6734dc765579b4
[ "MIT" ]
19
2019-04-27T19:49:32.000Z
2020-06-30T19:52:09.000Z
from flask import blueprints cfps_bp = blueprints.Blueprint("cfps", __name__)
19.5
48
0.760684
from flask import blueprints cfps_bp = blueprints.Blueprint("cfps", __name__) from . import cli # noqa isort:skip
0
0
0
0
0
0
0
-4
42
6d09d67ada4edaec37a976d16e2e658011db6739
6,197
py
Python
model.py
solanyn/head-pose-estimation
bbd4d3aa08c09d8ff072c218261354453925162e
[ "MIT" ]
null
null
null
model.py
solanyn/head-pose-estimation
bbd4d3aa08c09d8ff072c218261354453925162e
[ "MIT" ]
null
null
null
model.py
solanyn/head-pose-estimation
bbd4d3aa08c09d8ff072c218261354453925162e
[ "MIT" ]
null
null
null
import tensorflow as tf assert tf.__version__[0] == '2' AUTOTUNE = tf.data.experimental.AUTOTUNE
42.737931
116
0.485558
import tensorflow as tf assert tf.__version__[0] == '2' AUTOTUNE = tf.data.experimental.AUTOTUNE class ResidualBlock(tf.keras.layers.Layer): # Initialize components of the model def __init__(self, filter_num, stride=1, reg_lambda=0.0, dropout=False): super(ResidualBlock, self).__init__() self....
0
0
0
6,052
0
0
0
0
46
db84c9ae7dfa9133dc896942d1197aca636e0842
4,038
py
Python
rl_coach/architectures/tensorflow_components/distributed_tf_utils.py
abcp4/coach
e0f1b9ecc884ffea71ba634986d478f4fc150d3e
[ "Apache-2.0" ]
3
2019-11-15T02:05:38.000Z
2020-10-10T17:15:40.000Z
rl_coach/architectures/tensorflow_components/distributed_tf_utils.py
gndctrl2mjrtm/coach-ray
ae6593bb33cf0ae3c5a4b3b351560dd6b47cd031
[ "Apache-2.0" ]
null
null
null
rl_coach/architectures/tensorflow_components/distributed_tf_utils.py
gndctrl2mjrtm/coach-ray
ae6593bb33cf0ae3c5a4b3b351560dd6b47cd031
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2017 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
39.203883
120
0.719911
# # Copyright (c) 2017 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
0
0
0
0
0
0
0
0
0
6adb1991128d913f28d676247e8e99167644d71f
19,486
py
Python
venv/lib/python3.8/site-packages/sympy/physics/optics/polarization.py
gaabgonca/pseudocode_parser
b8c75856ca6fe2d213a681c966ba2f7a1f9f8524
[ "Apache-2.0" ]
2
2021-01-09T23:11:25.000Z
2021-01-11T15:04:22.000Z
venv/lib/python3.8/site-packages/sympy/physics/optics/polarization.py
gaabgonca/pseudocode_parser
b8c75856ca6fe2d213a681c966ba2f7a1f9f8524
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/sympy/physics/optics/polarization.py
gaabgonca/pseudocode_parser
b8c75856ca6fe2d213a681c966ba2f7a1f9f8524
[ "Apache-2.0" ]
2
2021-01-08T23:03:23.000Z
2021-01-13T18:57:02.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- u""" The module implements routines to model the polarization of optical fields and can be used to calculate the effects of polarization optical elements on the fields. - Jones vectors. - Stokes vectors. - Jones matrices. - Mueller matrices. Examples -------- We calcul...
28.910979
79
0.474084
#!/usr/bin/env python # -*- coding: utf-8 -*- u""" The module implements routines to model the polarization of optical fields and can be used to calculate the effects of polarization optical elements on the fields. - Jones vectors. - Stokes vectors. - Jones matrices. - Mueller matrices. Examples -------- We calcul...
2,562
0
0
0
0
0
0
0
0
81cdd1ac5b3c0b52291a423b89434aa530efc630
7,313
py
Python
chesstab/gui/cqltext.py
RogerMarsh/chesstab
01d375dc6bf025b621612a84513e55c4640a78ad
[ "BSD-3-Clause" ]
null
null
null
chesstab/gui/cqltext.py
RogerMarsh/chesstab
01d375dc6bf025b621612a84513e55c4640a78ad
[ "BSD-3-Clause" ]
null
null
null
chesstab/gui/cqltext.py
RogerMarsh/chesstab
01d375dc6bf025b621612a84513e55c4640a78ad
[ "BSD-3-Clause" ]
null
null
null
# cqltext.py # Copyright 2016 Roger Marsh # Licence: See LICENCE (BSD licence) """Widget to display a Chess Query Language (ChessQL) statement. ChessQL statements obey the syntax published for CQL version 6.0.1 (by Gady Costeff). """ # The previous CQL syntax partially supported was version 5.1 found at: # https://w...
36.934343
82
0.566389
# cqltext.py # Copyright 2016 Roger Marsh # Licence: See LICENCE (BSD licence) """Widget to display a Chess Query Language (ChessQL) statement. ChessQL statements obey the syntax published for CQL version 6.0.1 (by Gady Costeff). """ # The previous CQL syntax partially supported was version 5.1 found at: # https://w...
0
0
0
6,627
0
0
0
113
134
71b58ecc9fcfe20a39cd4f271ca51c9488af2356
1,328
py
Python
var/spack/repos/builtin/packages/r-singlecellexperiment/package.py
robertsawko/spack
135cf4835f5b646c4aaa0e2eb5552c80fc3a5ce8
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2019-11-28T10:14:14.000Z
2019-11-28T10:14:14.000Z
var/spack/repos/builtin/packages/r-singlecellexperiment/package.py
robertsawko/spack
135cf4835f5b646c4aaa0e2eb5552c80fc3a5ce8
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/r-singlecellexperiment/package.py
robertsawko/spack
135cf4835f5b646c4aaa0e2eb5552c80fc3a5ce8
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2017-01-21T17:19:32.000Z
2017-01-21T17:19:32.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT)
42.83871
79
0.720633
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RSinglecellexperiment(RPackage): """S4 Classes for Single Cell Data. Defines a S4 ...
0
0
0
1,086
0
0
0
-2
46
dff171b1e1118f3c2d0e673e55322291d94d26cb
1,410
py
Python
filibuster_loadgen_cli.py
filibuster-testing/filibuster
b1df9d5100f8dbfc5ff07cd2ddc76ecbc49485fb
[ "Apache-2.0" ]
14
2021-10-16T21:49:14.000Z
2022-03-26T23:02:12.000Z
filibuster_loadgen_cli.py
filibuster-testing/filibuster
b1df9d5100f8dbfc5ff07cd2ddc76ecbc49485fb
[ "Apache-2.0" ]
2
2022-03-17T05:48:04.000Z
2022-03-24T02:13:38.000Z
filibuster_loadgen_cli.py
filibuster-testing/filibuster
b1df9d5100f8dbfc5ff07cd2ddc76ecbc49485fb
[ "Apache-2.0" ]
null
null
null
if __name__ == '__main__': loadgen()
48.62069
125
0.758156
import os import click from os.path import abspath from filibuster.server import start_filibuster_server_and_run_multi_threaded_test @click.command() @click.option('--functional-test', required=True, type=str, help='Functional test to run.') @click.option('--analysis-file', default="default-analysis.json", type=str, ...
0
1,210
0
0
0
0
0
45
111
77a61123005a8ff562d7847db4c6c9c5280b4caa
13,875
py
Python
tests/test_api/test_job.py
yu-iskw/polyaxon-client
af72f30af218a8a027fea1ad966b543c900e0444
[ "MIT" ]
null
null
null
tests/test_api/test_job.py
yu-iskw/polyaxon-client
af72f30af218a8a027fea1ad966b543c900e0444
[ "MIT" ]
null
null
null
tests/test_api/test_job.py
yu-iskw/polyaxon-client
af72f30af218a8a027fea1ad966b543c900e0444
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function
32.342657
98
0.526919
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import datetime import httpretty import json import uuid from collections import Mapping from tests.test_api.utils import TestBaseApi from polyaxon_client.api.base import BaseApiHandler from polyaxon_client.api.job import JobAp...
0
12,451
0
1,015
0
0
0
94
225
dc114ba0697c380fa43bd0d579b07d1f7da113ee
1,595
py
Python
aws_lambda_builders/workflows/nodejs_npm/utils.py
eldritchideen/aws-lambda-builders
8bd869d9c2b83f67b4f37d45883f9436e1cb1179
[ "Apache-2.0" ]
null
null
null
aws_lambda_builders/workflows/nodejs_npm/utils.py
eldritchideen/aws-lambda-builders
8bd869d9c2b83f67b4f37d45883f9436e1cb1179
[ "Apache-2.0" ]
null
null
null
aws_lambda_builders/workflows/nodejs_npm/utils.py
eldritchideen/aws-lambda-builders
8bd869d9c2b83f67b4f37d45883f9436e1cb1179
[ "Apache-2.0" ]
null
null
null
""" Commonly used utilities """ EXPERIMENTAL_FLAG_ESBUILD = "experimentalEsbuild" def is_experimental_esbuild_scope(experimental_flags): """ A function which will determine if experimental esbuild scope is active """ return bool(experimental_flags) and EXPERIMENTAL_FLAG_ESBUILD in experimental_flags...
24.538462
87
0.683386
""" Commonly used utilities """ import os import platform import tarfile import subprocess import shutil import json EXPERIMENTAL_FLAG_ESBUILD = "experimentalEsbuild" class OSUtils(object): """ Wrapper around file system functions, to make it easy to unit test actions in memory """ def copy_fi...
0
39
0
1,126
0
0
0
-47
156
14fabc0a7a51b8e1fb380d77a5e25856a4f3f4b3
1,796
py
Python
the_challenge/questions/questionClasses/q9.py
Ryan-Kan/The-Challenge
90131e0fad0ba1945b7eb99e65be17d36ab00693
[ "MIT" ]
null
null
null
the_challenge/questions/questionClasses/q9.py
Ryan-Kan/The-Challenge
90131e0fad0ba1945b7eb99e65be17d36ab00693
[ "MIT" ]
null
null
null
the_challenge/questions/questionClasses/q9.py
Ryan-Kan/The-Challenge
90131e0fad0ba1945b7eb99e65be17d36ab00693
[ "MIT" ]
null
null
null
""" q9.py Created on 2020-08-21 Updated on 2020-10-30 Copyright Ryan Kan 2020 Description: A file which holds the designated question class. """ # IMPORTS # CLASSES # DEBUG CODE if __name__ == "__main__": question = Q9(seed_value=1123581321) question.calculations() print(question.generate_question()...
28.967742
117
0.619154
""" q9.py Created on 2020-08-21 Updated on 2020-10-30 Copyright Ryan Kan 2020 Description: A file which holds the designated question class. """ # IMPORTS from sympy import latex from sympy.parsing.sympy_parser import parse_expr from the_challenge.misc import mathematical_round from the_challenge.questions.questio...
0
0
0
1,198
0
0
0
115
111
c93b1b63f8030236b6dbc5646e2e19c4634ba5f9
10,625
py
Python
bdaybot/help.py
Ahsoka/bdaybot
3aec9509119c28b294efdc0c76e8ee7fda7e8553
[ "MIT" ]
5
2021-01-21T07:49:50.000Z
2022-02-09T17:13:09.000Z
bdaybot/help.py
Ahsoka/bdaybot
3aec9509119c28b294efdc0c76e8ee7fda7e8553
[ "MIT" ]
22
2020-12-30T02:13:32.000Z
2022-02-24T05:52:54.000Z
bdaybot/help.py
Ahsoka/bdaybot
3aec9509119c28b294efdc0c76e8ee7fda7e8553
[ "MIT" ]
3
2021-02-02T05:21:14.000Z
2021-08-20T01:16:30.000Z
import logging logger = logging.getLogger(__name__)
62.5
146
0.625506
import discord import logging from . import values from discord.ext import commands from .cogs.commands import CommandsCog from .utils import maybe_mention, ping_devs, EmojiURLs logger = logging.getLogger(__name__) class HelpCommand(commands.HelpCommand): num_of_commands = len(CommandsCog().get_commands()) + 1 ...
15
0
10,194
186
0
0
0
53
134
184869386f4276e34fc24538a93bd172f7eff6c9
3,143
py
Python
scripts/package.py
antoniojkim/CalcPlusPlus
33cede17001e0a7038f99ea40dd6f9e433cf6454
[ "MIT" ]
null
null
null
scripts/package.py
antoniojkim/CalcPlusPlus
33cede17001e0a7038f99ea40dd6f9e433cf6454
[ "MIT" ]
null
null
null
scripts/package.py
antoniojkim/CalcPlusPlus
33cede17001e0a7038f99ea40dd6f9e433cf6454
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import argparse import os CURR_DIR = os.getcwd() PKG_DIR = os.path.join(CURR_DIR, ".package") CALC_DIR = os.path.join(PKG_DIR, "CalcPlusPlus") LIB_DIR = os.path.join(CALC_DIR, "libs") PLATFORM_DIR = os.path.join(CALC_DIR, "platforms") if __name__ == "__main__": parser = argparse.Argument...
33.084211
85
0.611199
# -*- coding: utf-8 -*- import argparse import os from shutil import copyfile import subprocess as sp CURR_DIR = os.getcwd() PKG_DIR = os.path.join(CURR_DIR, ".package") CALC_DIR = os.path.join(PKG_DIR, "CalcPlusPlus") LIB_DIR = os.path.join(CALC_DIR, "libs") PLATFORM_DIR = os.path.join(CALC_DIR, "platforms") def ma...
0
0
0
0
0
2,518
0
8
67
0c083d3e65d363a99cae453f17814d2542869ca8
3,117
py
Python
morphing/code/main.py
yourmean/Moving-Emoji-Generation_Sol1
5113b91ba2f30e7aa196dd089af341ecb97a1895
[ "MIT" ]
4
2021-01-21T04:33:33.000Z
2022-03-04T17:02:38.000Z
morphing/code/main.py
shkim960520/Moving-Emoji-Generation_Sol1
52751d9ff0e648b08650162ea2e40a232e6abafd
[ "MIT" ]
null
null
null
morphing/code/main.py
shkim960520/Moving-Emoji-Generation_Sol1
52751d9ff0e648b08650162ea2e40a232e6abafd
[ "MIT" ]
3
2021-01-21T04:36:26.000Z
2021-01-21T05:59:02.000Z
import argparse import os import cv2 import json if __name__ == "__main__": parser = argparse.ArgumentParser() # parser.add_argument("--img1" ,required= True, help="The First Image") # parser.add_argument("--landmark_path" ,required= True, help="landmark dir") # parser.add_argument("--save_image_path" ,required...
31.484848
118
0.744947
from face_landmark_detection import generate_face_correspondences from delaunay_triangulation import make_delaunay from face_morph import generate_morph_sequence import subprocess import argparse import shutil import os import imageio import cv2 import numpy as np import glob import json def doMorphing(img1, landma...
123
0
0
0
0
673
0
64
246
712697186987a88ec45f5ea2a0b210a3868508d0
2,602
py
Python
geopyspark/tests/geotrellis/tiled_layer_tests/rasterize_test.py
geotrellis/geotrellis-python
97bcb17a56ed4b4059e2f0dbab97706562cac692
[ "Apache-2.0" ]
182
2017-01-26T18:11:57.000Z
2021-09-07T07:39:52.000Z
geopyspark/tests/geotrellis/tiled_layer_tests/rasterize_test.py
geotrellis/geotrellis-python
97bcb17a56ed4b4059e2f0dbab97706562cac692
[ "Apache-2.0" ]
428
2016-12-21T14:53:43.000Z
2019-07-14T09:33:54.000Z
geopyspark/tests/geotrellis/tiled_layer_tests/rasterize_test.py
geotrellis/geotrellis-python
97bcb17a56ed4b4059e2f0dbab97706562cac692
[ "Apache-2.0" ]
66
2017-01-05T19:16:15.000Z
2022-02-23T12:49:50.000Z
import unittest if __name__ == "__main__": unittest.main()
30.611765
77
0.542275
import os import unittest import numpy as np import math import pytest from shapely.geometry import Polygon from geopyspark.tests.base_test_class import BaseTestClass from geopyspark.geotrellis import rasterize, SpatialPartitionStrategy class RasterizeTest(BaseTestClass): polygon = Polygon([(0, 11), (11, 11), (...
0
90
0
2,200
0
0
0
67
179
aaae5d7b1ed177fc7be58ee974db9240aedde74e
4,624
py
Python
xd_xd/aa/cresi/net/pytorch_utils/loss.py
SpaceNetChallenge/SpaceNet_Optimized_Routing_Solutions
3fbc215de6b05904a5b54b2c7cde7e61074ae38d
[ "Apache-2.0" ]
27
2020-03-04T05:54:48.000Z
2022-01-05T07:07:44.000Z
xd_xd/aa/cresi/net/pytorch_utils/loss.py
CosmiQ/SpaceNet_Optimized_Routing_Solutions
3fbc215de6b05904a5b54b2c7cde7e61074ae38d
[ "Apache-2.0" ]
1
2020-07-14T10:35:50.000Z
2020-07-14T10:35:50.000Z
xd_xd/aa/cresi/net/pytorch_utils/loss.py
SpaceNetChallenge/SpaceNet_Optimized_Routing_Solutions
3fbc215de6b05904a5b54b2c7cde7e61074ae38d
[ "Apache-2.0" ]
7
2020-03-07T21:42:57.000Z
2022-01-07T10:49:50.000Z
import numpy as np import torch import torch.nn.functional as F eps = 1 def weight_reshape(preds, trues, weight_channel=-1, min_weight_val=0.16): """ UNTESTED Weight the prediction by the desired channel in trues. Assume tensor has shape: (batch_size, channels, h, w) Also assume weight_channel = ...
31.243243
85
0.638192
import numpy as np import torch import torch.nn.functional as F eps = 1 def weight_reshape(preds, trues, weight_channel=-1, min_weight_val=0.16): """ UNTESTED Weight the prediction by the desired channel in trues. Assume tensor has shape: (batch_size, channels, h, w) Also assume weight_channel = ...
0
0
0
0
0
589
0
0
46
ed66ddc2e76c34f66ee1bec6f570cc4d0489c42f
1,823
py
Python
Classifiers/Regression/Line_of_Best_Fity.py
HeroJeanPierre/Machine_Learning_Basics
786d7d4ebeb72b947ccd9078378151822a601f43
[ "Unlicense" ]
1
2017-05-29T04:29:58.000Z
2017-05-29T04:29:58.000Z
Classifiers/Regression/Line_of_Best_Fity.py
HeroJeanPierre/Machine_Learning_Basics
786d7d4ebeb72b947ccd9078378151822a601f43
[ "Unlicense" ]
null
null
null
Classifiers/Regression/Line_of_Best_Fity.py
HeroJeanPierre/Machine_Learning_Basics
786d7d4ebeb72b947ccd9078378151822a601f43
[ "Unlicense" ]
null
null
null
import matplotlib.pyplot as plt # xs = np.array([1, 2, 3, 4, 5, 6], dtype=np.float64) # ys = np.array([5, 4, 6, 5, 6, 7], dtype=np.float64) # This will be used to create random data sets # This is meant to tell us how good of a fit the line # We made is # Create our data set xs, ys = create_dataset(1000, 100, 2,...
26.808824
73
0.665387
from statistics import mean import numpy as np import matplotlib.pyplot as plt import random # xs = np.array([1, 2, 3, 4, 5, 6], dtype=np.float64) # ys = np.array([5, 4, 6, 5, 6, 7], dtype=np.float64) # This will be used to create random data sets def create_dataset(size, varience, step=2, correlation=False): val...
0
0
0
0
0
958
0
-5
156
2f81ea2870ebf3bbdf1b667849d846b45acfb865
5,079
py
Python
sp_api/api/finances/models/tax_withheld_component.py
lionsdigitalsolutions/python-amazon-sp-api
7374523ebc65e2e01e37d03fc4009a44fabf2c3b
[ "MIT" ]
null
null
null
sp_api/api/finances/models/tax_withheld_component.py
lionsdigitalsolutions/python-amazon-sp-api
7374523ebc65e2e01e37d03fc4009a44fabf2c3b
[ "MIT" ]
null
null
null
sp_api/api/finances/models/tax_withheld_component.py
lionsdigitalsolutions/python-amazon-sp-api
7374523ebc65e2e01e37d03fc4009a44fabf2c3b
[ "MIT" ]
null
null
null
# coding: utf-8 """ Selling Partner API for Finances The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You ...
36.278571
337
0.638512
# coding: utf-8 """ Selling Partner API for Finances The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You ...
0
1,758
0
2,741
0
0
0
-31
105
91c84503667d91e46fea5fa3c5160f4d52c9bfc6
33,275
py
Python
cvsscalc/wxgui.py
bluec0re/cvss-calculator
3e8bd2dbe93b8bc68d10f6f54fb6f149395db7bd
[ "0BSD" ]
7
2015-10-26T19:29:28.000Z
2018-01-20T11:09:05.000Z
cvsscalc/wxgui.py
bluec0re/cvss-calculator
3e8bd2dbe93b8bc68d10f6f54fb6f149395db7bd
[ "0BSD" ]
null
null
null
cvsscalc/wxgui.py
bluec0re/cvss-calculator
3e8bd2dbe93b8bc68d10f6f54fb6f149395db7bd
[ "0BSD" ]
6
2015-10-25T22:00:55.000Z
2021-05-31T11:25:10.000Z
''' Created on Oct 21, 2011 @author: bluec0re ''' from __future__ import absolute_import, division import os import os.path import sys import platform import zipfile import functools import tempfile import wx import re import math from wx import xrc from cvsscalc import cvsscalc, strings from wx.lib.masked import Ti...
33.747465
109
0.476754
''' Created on Oct 21, 2011 @author: bluec0re ''' from __future__ import absolute_import, division import os import os.path import sys import platform import zipfile import functools import tempfile import wx import re import math from wx import xrc from cvsscalc import cvsscalc, strings from wx.lib.masked import Ti...
0
0
0
31,350
0
374
0
0
219
1c827928361cbd46d44a360c5b38d3af024491ca
4,054
py
Python
mtp_noms_ops/apps/security/views/dashboard.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-noms-ops
eb537fb8a8e3adc588d50af1b000402c957b32a7
[ "MIT" ]
3
2016-12-22T15:56:57.000Z
2020-03-10T10:37:40.000Z
mtp_noms_ops/apps/security/views/dashboard.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-noms-ops
eb537fb8a8e3adc588d50af1b000402c957b32a7
[ "MIT" ]
61
2016-06-10T08:37:23.000Z
2022-01-28T12:41:29.000Z
mtp_noms_ops/apps/security/views/dashboard.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-noms-ops
eb537fb8a8e3adc588d50af1b000402c957b32a7
[ "MIT" ]
1
2021-04-11T06:13:53.000Z
2021-04-11T06:13:53.000Z
import logging logger = logging.getLogger('mtp')
36.522523
120
0.574988
import logging from django.conf import settings from django.urls import reverse from django.utils.translation import gettext, ngettext from django.views.generic import TemplateView from mtp_common.auth.api_client import get_api_session from requests.exceptions import RequestException from security.context_processors ...
0
0
0
3,575
0
0
0
226
201
625e560cb6154f838d21275dbca3f66287aadd6b
6,290
py
Python
frames.py
autumnsault/qekf
5ec7cf3e9253c1d164352054e8191da7a0328460
[ "Unlicense" ]
null
null
null
frames.py
autumnsault/qekf
5ec7cf3e9253c1d164352054e8191da7a0328460
[ "Unlicense" ]
null
null
null
frames.py
autumnsault/qekf
5ec7cf3e9253c1d164352054e8191da7a0328460
[ "Unlicense" ]
null
null
null
import numpy as np import scipy.linalg as spl def planetodetic_to_pcpf(lon, lat, h = 0.0, a = 6378137.0, b = 6356752.314245): """Convert planetodetic coordinates (longitude, latitude, and height above the ellipsoid) into planet-centered...
32.42268
126
0.566455
import numpy as np import scipy.linalg as spl def planetodetic_to_pcpf(lon, lat, h = 0.0, a = 6378137.0, b = 6356752.314245): """Convert planetodetic coordinates (longitude, latitude, and height above the ellipsoid) into planet-centered...
0
0
0
0
0
0
0
0
0
913209902bc2513028778a3fa574c4a8644ea0ac
4,639
py
Python
main.py
rollinginsanity/FoilThePanic
2e85527d58d50a85cd0591e14c2cfed0353412e7
[ "Unlicense" ]
1
2017-06-12T10:35:52.000Z
2017-06-12T10:35:52.000Z
main.py
rollinginsanity/FoilThePanic
2e85527d58d50a85cd0591e14c2cfed0353412e7
[ "Unlicense" ]
null
null
null
main.py
rollinginsanity/FoilThePanic
2e85527d58d50a85cd0591e14c2cfed0353412e7
[ "Unlicense" ]
null
null
null
if __name__ == "__main__": main()
33.135714
123
0.62923
import socket import time def main(): ftp = FoilThePanic("127.0.0.1", 21) ftp.connect() userName = input("Username for le FTP server plz: ") password = input("Password for le aforementioned FTP server pls: ") ftp.login(userName, password) print(ftp.pwd()) print(ftp.listFiles()) ftp.clos...
0
0
0
4,231
0
276
0
-18
112
3b4ed15387fc7c7d93c0fd7401c3165df7580f33
328
py
Python
face/models.py
huachao2017/goodsdl
3616d53b90696a97a5d56a064e2a14d484b821d7
[ "Apache-2.0" ]
3
2018-10-16T09:36:12.000Z
2019-04-15T03:12:49.000Z
face/models.py
huachao2017/goodsdl
3616d53b90696a97a5d56a064e2a14d484b821d7
[ "Apache-2.0" ]
null
null
null
face/models.py
huachao2017/goodsdl
3616d53b90696a97a5d56a064e2a14d484b821d7
[ "Apache-2.0" ]
null
null
null
# Create your models here.
29.818182
87
0.753049
from django.db import models import datetime # Create your models here. class Image(models.Model): picurl = models.CharField(max_length=200) image_path = models.CharField(max_length=200, default='') index = models.TextField() create_time = models.DateTimeField('date created', auto_now_add=True,db_inde...
0
0
0
232
0
0
0
1
67
5c5b20053dd942a5b00f870a3529af98f6e21f1e
1,580
py
Python
using_asyncio/chapter02/main.py
renyalvarado/Using-Asyncio-in-Python---Exercises
f558eb72fd30ed88aa8ccf88c2b601bd7c3995dc
[ "MIT" ]
null
null
null
using_asyncio/chapter02/main.py
renyalvarado/Using-Asyncio-in-Python---Exercises
f558eb72fd30ed88aa8ccf88c2b601bd7c3995dc
[ "MIT" ]
null
null
null
using_asyncio/chapter02/main.py
renyalvarado/Using-Asyncio-in-Python---Exercises
f558eb72fd30ed88aa8ccf88c2b601bd7c3995dc
[ "MIT" ]
null
null
null
from __future__ import annotations kitchen = Cutlery(knives=100, forks=100) if __name__ == "__main__": main()
23.939394
64
0.591139
from __future__ import annotations import sys import threading from queue import Queue from attr import attrs, attr @attrs class Cutlery: knives = attr(default=0) forks = attr(default=0) lock = attr(default=threading.Lock()) def give(self, to: Cutlery, knives=0, forks=0): self.change(-knive...
0
350
0
522
0
435
0
-7
159
28fd8e16aaf7a0ec0de00308691c0d15013ab262
958
py
Python
scraper/normalize file names.py
Thanhqd90/DDRCardDraw
30e35d030b9f32b4726187f77030a132b23f9ddd
[ "BSD-2-Clause" ]
16
2018-04-05T23:16:53.000Z
2021-12-22T23:03:55.000Z
scraper/normalize file names.py
Thanhqd90/DDRCardDraw
30e35d030b9f32b4726187f77030a132b23f9ddd
[ "BSD-2-Clause" ]
47
2018-06-13T05:07:15.000Z
2022-03-26T03:38:54.000Z
scraper/normalize file names.py
Thanhqd90/DDRCardDraw
30e35d030b9f32b4726187f77030a132b23f9ddd
[ "BSD-2-Clause" ]
16
2018-10-16T15:39:46.000Z
2021-12-08T12:35:56.000Z
if __name__=="__main__": main()
31.933333
80
0.598121
import json import shutil import io def rename(oldname,newname): print(oldname+" => "+newname) shutil.copyfile('../Jackets/'+oldname, '../NewJackets/'+newname+'.png') return (newname+'.png') def main(): with io.open('../src/songs/ace.json', encoding='utf-8') as aceJSONFile: aceJSON = json.load(...
0
0
0
0
0
841
0
-30
111
752a3fd444c9fc0963c822e38eff281ff8e5e8f4
1,025
py
Python
tools/download_telehash_seeds.py
nexusz99/deship
9d9a05600f8cc8de023e0bf223393cf895bab63f
[ "Apache-2.0" ]
1
2020-03-17T06:13:00.000Z
2020-03-17T06:13:00.000Z
tools/download_telehash_seeds.py
nexusz99/deship
9d9a05600f8cc8de023e0bf223393cf895bab63f
[ "Apache-2.0" ]
null
null
null
tools/download_telehash_seeds.py
nexusz99/deship
9d9a05600f8cc8de023e0bf223393cf895bab63f
[ "Apache-2.0" ]
null
null
null
import os import sys import requests import json if __name__ == '__main__': root_path = os.path.split(os.path.abspath(os.getcwd()))[0] sys.path.append(root_path) from deship import config from deship import plinth config.init_config() phase = sys.argv[1] if phase == 'dv': keyfile ...
26.282051
69
0.573659
import os import sys import requests import json if __name__ == '__main__': root_path = os.path.split(os.path.abspath(os.getcwd()))[0] sys.path.append(root_path) from deship import config from deship import plinth config.init_config() phase = sys.argv[1] if phase == 'dv': keyfile ...
0
0
0
0
0
0
0
0
0
cdf2697ae1eac3132618ff33e0d05c8b200105c8
4,402
py
Python
puzzle/puzzle.py
francisconroy/bimaru_solver
328c1a2ffbae0529f829297feb76d932f46003c8
[ "MIT" ]
null
null
null
puzzle/puzzle.py
francisconroy/bimaru_solver
328c1a2ffbae0529f829297feb76d932f46003c8
[ "MIT" ]
null
null
null
puzzle/puzzle.py
francisconroy/bimaru_solver
328c1a2ffbae0529f829297feb76d932f46003c8
[ "MIT" ]
null
null
null
SHIP_BITS = ["U", "D", "L", "R", "C"] WATERING_PATTERNS = { "U": """ WXW WUW WWW """, "D": """ WWW WDW WXW """, "L": """ WWW XLW WWW """, "R": """ WWW WRX ...
29.346667
109
0.531804
from copy import deepcopy SHIP_BITS = ["U", "D", "L", "R", "C"] WATERING_PATTERNS = { "U": """ WXW WUW WWW """, "D": """ WWW WDW WXW """, "L": """ WWW XLW WWW """, "R": """ ...
0
266
0
3,149
0
0
0
4
45
12c9870d691b39feaf1941f11551e8e8e050e318
259
py
Python
tests/django/urls.py
mathieurodic/easy-graphql
80a42bfe0fab72f61438df37dcc3bbc42e5df485
[ "MIT" ]
1
2022-01-25T14:32:52.000Z
2022-01-25T14:32:52.000Z
tests/django/urls.py
mathieurodic/easy-graphql
80a42bfe0fab72f61438df37dcc3bbc42e5df485
[ "MIT" ]
2
2022-01-19T11:54:20.000Z
2022-01-31T14:46:32.000Z
tests/django/urls.py
mathieurodic/easy-graphql-server
80a42bfe0fab72f61438df37dcc3bbc42e5df485
[ "MIT" ]
null
null
null
from django.urls import path from .schema1 import schema as orm_schema from ..methods.schema1 import schema as methods_schema urlpatterns = [ path('graphql', orm_schema.as_django_view()), path('graphql-methods', methods_schema.as_django_view()), ]
23.545455
61
0.760618
from django.urls import path from .schema1 import schema as orm_schema from ..methods.schema1 import schema as methods_schema urlpatterns = [ path('graphql', orm_schema.as_django_view()), path('graphql-methods', methods_schema.as_django_view()), ]
0
0
0
0
0
0
0
0
0
b419af80933cb9a0f6b4ac6c83626532c02a8956
2,812
py
Python
poemcode/poemcode.py
abpolym/crypto-tools
211fd671d1281e793600ba2603413682894c5621
[ "MIT" ]
15
2016-02-15T03:44:09.000Z
2022-03-21T03:20:00.000Z
poemcode/poemcode.py
abpolym/crypto-tools
211fd671d1281e793600ba2603413682894c5621
[ "MIT" ]
1
2017-09-02T05:49:19.000Z
2017-09-02T05:49:19.000Z
poemcode/poemcode.py
abpolym/crypto-tools
211fd671d1281e793600ba2603413682894c5621
[ "MIT" ]
27
2016-02-15T03:44:22.000Z
2022-03-14T00:27:17.000Z
import sys abc='abcdefghijklmnopqrstuvwxyz' # first argument = poem # second argument = ciphertxt or msg if len(sys.argv) != 3: sys.exit(2) #print encrypt([0, 5, 13, 16, 19], sys.argv[1], sys.argv[2]) decrypt(sys.argv[1], sys.argv[2])
24.884956
120
0.676031
import sys import itertools from os import listdir from os.path import isfile, join abc='abcdefghijklmnopqrstuvwxyz' def loadlist(infile): tlist = [] for line in open(infile,'r'): for w in line.split(): tlist.append(w.lower()) return tlist def encrypt(code, poem, msg): # Load all words of the poem into a tempo...
0
0
0
0
0
2,432
0
7
135
b9f3b82040f62488a8149186669c7d051c2a2e22
24,785
py
Python
module_utils/network/panos/panos.py
rvichery/ansible-pan
d07839cd5a544a6398646c01e1edac0f0f82cc38
[ "Apache-2.0" ]
null
null
null
module_utils/network/panos/panos.py
rvichery/ansible-pan
d07839cd5a544a6398646c01e1edac0f0f82cc38
[ "Apache-2.0" ]
null
null
null
module_utils/network/panos/panos.py
rvichery/ansible-pan
d07839cd5a544a6398646c01e1edac0f0f82cc38
[ "Apache-2.0" ]
null
null
null
# This code is part of Ansible, but is an independent component. # This particular file snippet, and this file snippet only, is BSD licensed. # Modules you write using this snippet, which is embedded dynamically by Ansible # still belong to the author of the module, and may assign their own license # to the complete wo...
38.970126
92
0.56163
# This code is part of Ansible, but is an independent component. # This particular file snippet, and this file snippet only, is BSD licensed. # Modules you write using this snippet, which is embedded dynamically by Ansible # still belong to the author of the module, and may assign their own license # to the complete wo...
0
0
0
16,149
0
32
0
143
251
43b0800e43d2c0da769dc9e1467fc42c2e94931b
860
py
Python
lsdtt_xtensor/examples/groupped_stats.py
LSDtopotools/lsdtopytools
9809cbd368fe46b5e483085fa55f3206e4d85183
[ "MIT" ]
2
2020-05-04T14:32:34.000Z
2021-06-29T10:59:03.000Z
lsdtt_xtensor/examples/groupped_stats.py
LSDtopotools/lsdtopytools
9809cbd368fe46b5e483085fa55f3206e4d85183
[ "MIT" ]
1
2020-01-30T14:03:00.000Z
2020-02-06T16:32:56.000Z
lsdtt_xtensor/examples/groupped_stats.py
LSDtopotools/lsdtopytools
9809cbd368fe46b5e483085fa55f3206e4d85183
[ "MIT" ]
1
2021-04-21T17:40:42.000Z
2021-04-21T17:40:42.000Z
# Takes 2 rasters: the first contains integer values defining groups of data (e.g., a rasterized shapefile) # the second one contains values to group (e.g., slopes or elevation) from lsdtt_xtensor_python import comparison_stats_from_2darrays as gpc import numpy as np # from matplotlib import pyplot as plt #TODO add re...
35.833333
140
0.761628
# Takes 2 rasters: the first contains integer values defining groups of data (e.g., a rasterized shapefile) # the second one contains values to group (e.g., slopes or elevation) from lsdtt_xtensor_python import comparison_stats_from_2darrays as gpc import numpy as np # from matplotlib import pyplot as plt #TODO add re...
0
0
0
0
0
0
0
0
0
1ceb13fa5e7f48ba4ff103c3c5ff4c4c3299bdfb
7,445
py
Python
optrotvib/engine/g09_engine.py
amjames/optrotvib
a2bce7d4a69ce2cdc57078ab0f1104787bd2e12b
[ "MIT" ]
null
null
null
optrotvib/engine/g09_engine.py
amjames/optrotvib
a2bce7d4a69ce2cdc57078ab0f1104787bd2e12b
[ "MIT" ]
null
null
null
optrotvib/engine/g09_engine.py
amjames/optrotvib
a2bce7d4a69ce2cdc57078ab0f1104787bd2e12b
[ "MIT" ]
null
null
null
# Collection helpers # execution steps # input helpers # main driver
36.856436
120
0.630356
import sys import re import os from pathlib import Path import subprocess as sp import numpy as np import traceback from . import cpu_info from victor.constants import physconst from victor import util # Collection helpers def _array_from_fchk(fchk_text, array_name): matcher = re.compile(r'\A(?P<title>{})\s+R\s...
0
0
0
0
0
6,824
0
-18
564
29622fc963ff0b43300179c3a9067e09e3a7deb5
113
py
Python
traffic_monitoring/extract_trajectories/__init__.py
Dontoronto/TrafficMonitoring
3da106694a78400453d4728959e545a62632f0fc
[ "Apache-2.0" ]
5
2022-01-11T22:59:50.000Z
2022-02-18T21:11:12.000Z
traffic_monitoring/extract_trajectories/__init__.py
Dontoronto/TrafficMonitoring
3da106694a78400453d4728959e545a62632f0fc
[ "Apache-2.0" ]
1
2022-02-16T12:32:23.000Z
2022-02-16T12:32:23.000Z
traffic_monitoring/extract_trajectories/__init__.py
Dontoronto/TrafficMonitoring
3da106694a78400453d4728959e545a62632f0fc
[ "Apache-2.0" ]
1
2021-10-25T00:15:37.000Z
2021-10-25T00:15:37.000Z
""" Package for storing the Trajectories in a csv file """
18.833333
52
0.79646
""" Package for storing the Trajectories in a csv file """ from .ExtractTrajectories import ExtractTrajectories
0
0
0
0
0
0
0
31
23
82bab06b7cef3302c1e804f0ee717381ac8b075f
3,993
py
Python
dp/cdrsummary.py
umer6791/ngic
596420c7fa0fb62c7c1d3d26c19b0800f0796565
[ "Intel", "Apache-2.0" ]
null
null
null
dp/cdrsummary.py
umer6791/ngic
596420c7fa0fb62c7c1d3d26c19b0800f0796565
[ "Intel", "Apache-2.0" ]
null
null
null
dp/cdrsummary.py
umer6791/ngic
596420c7fa0fb62c7c1d3d26c19b0800f0796565
[ "Intel", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2017 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
33.275
187
0.729026
#!/usr/bin/env python # # Copyright (c) 2017 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
0
0
0
0
0
0
0
0
0
432d484a6df9f395334293f81499af7ed03718b5
742
py
Python
api/migrations/0008_auto_20180531_0315.py
hueyjj/MangoMountain
5b1df750d620a8967f48e41d5e38286b92ccfa93
[ "MIT" ]
null
null
null
api/migrations/0008_auto_20180531_0315.py
hueyjj/MangoMountain
5b1df750d620a8967f48e41d5e38286b92ccfa93
[ "MIT" ]
null
null
null
api/migrations/0008_auto_20180531_0315.py
hueyjj/MangoMountain
5b1df750d620a8967f48e41d5e38286b92ccfa93
[ "MIT" ]
null
null
null
# Generated by Django 2.0.5 on 2018-05-31 10:15
25.586207
67
0.543127
# Generated by Django 2.0.5 on 2018-05-31 10:15 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0007_auto_20180531_0256'), ] operations = [ migrations.AddField( model_name='review', name='aut...
0
0
0
622
0
0
0
19
50
baf5d962e7f4ac200af3762ac78e88cd09fee193
2,616
py
Python
src/juridecompose/juridecompose.py
discipl/flintfiller
15d220c980a962ac2c4b7ac232f091666ab24e66
[ "Apache-2.0" ]
null
null
null
src/juridecompose/juridecompose.py
discipl/flintfiller
15d220c980a962ac2c4b7ac232f091666ab24e66
[ "Apache-2.0" ]
null
null
null
src/juridecompose/juridecompose.py
discipl/flintfiller
15d220c980a962ac2c4b7ac232f091666ab24e66
[ "Apache-2.0" ]
null
null
null
""" Copyright (C) 2020 Nederlandse Organisatie voor Toegepast Natuur- wetenschappelijk Onderzoek TNO / TNO, Netherlands Organisation for applied scientific research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You...
36.84507
97
0.689985
""" Copyright (C) 2020 Nederlandse Organisatie voor Toegepast Natuur- wetenschappelijk Onderzoek TNO / TNO, Netherlands Organisation for applied scientific research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You...
0
0
0
0
0
1,534
0
-17
91
00108bf215fd6861d561f98ece61b214640d13ac
6,889
py
Python
source/todo2.py
eclipse999/ToDoList
708eb31e112e6592a406e3f3f15d654c9f6fe7c2
[ "MIT" ]
null
null
null
source/todo2.py
eclipse999/ToDoList
708eb31e112e6592a406e3f3f15d654c9f6fe7c2
[ "MIT" ]
null
null
null
source/todo2.py
eclipse999/ToDoList
708eb31e112e6592a406e3f3f15d654c9f6fe7c2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'todo2.ui' # # Created by: PyQt5 UI code generator 5.12.2 # # WARNING! All changes made in this file will be lost!
38.920904
129
0.631441
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'todo2.ui' # # Created by: PyQt5 UI code generator 5.12.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindo...
162
0
0
6,556
0
0
0
15
69
3a3167de79a9df038973a093e090548d695dc7dd
60
py
Python
python/testData/completion/className/reformatUpdatedFromImport/reformatUpdatedFromImport.after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2018-12-29T09:53:39.000Z
2018-12-29T09:53:42.000Z
python/testData/completion/className/reformatUpdatedFromImport/reformatUpdatedFromImport.after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/completion/className/reformatUpdatedFromImport/reformatUpdatedFromImport.after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
from module import (Foo, Bar) print(Foo(), Bar)
8.571429
20
0.55
from module import ( Foo, Bar, ) print(Foo(), Bar)
0
0
0
0
0
0
0
11
0
0ac8a955480a5b11d26844289f4bec5ec91cd700
10,265
py
Python
datastore/tests/unit/gapic/v1/test_datastore_client_v1.py
jo2y/google-cloud-python
1b76727be16bc4335276f793340bb72d32be7166
[ "Apache-2.0" ]
1
2021-07-15T14:09:37.000Z
2021-07-15T14:09:37.000Z
datastore/tests/unit/gapic/v1/test_datastore_client_v1.py
jo2y/google-cloud-python
1b76727be16bc4335276f793340bb72d32be7166
[ "Apache-2.0" ]
4
2018-11-13T22:15:36.000Z
2018-12-07T18:31:38.000Z
datastore/tests/unit/gapic/v1/test_datastore_client_v1.py
jo2y/google-cloud-python
1b76727be16bc4335276f793340bb72d32be7166
[ "Apache-2.0" ]
1
2021-06-30T11:44:03.000Z
2021-06-30T11:44:03.000Z
# Copyright 2018 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 agreed to in writing, ...
33.545752
79
0.671408
# Copyright 2018 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 agreed to in writing, ...
0
0
0
9,365
0
0
0
99
204
dcd804e881135fdc3afefe29ca14f756d0fca41e
14,979
py
Python
auto_testing/models/torch_rnn.py
iasawseen/gesture_recognition
149ee607ef7172880401d794e28646c484af1ac5
[ "MIT" ]
null
null
null
auto_testing/models/torch_rnn.py
iasawseen/gesture_recognition
149ee607ef7172880401d794e28646c484af1ac5
[ "MIT" ]
null
null
null
auto_testing/models/torch_rnn.py
iasawseen/gesture_recognition
149ee607ef7172880401d794e28646c484af1ac5
[ "MIT" ]
null
null
null
import torch.nn as nn
33.21286
99
0.572735
from .core import AbstractModel import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Function, Variable from sru import SRU import numpy as np from sklearn.preprocessing import OneHotEncoder import time from sklearn.utils import shuffle, resample from sklearn.metrics import mean...
0
119
0
14,103
0
39
0
117
569
1b09bc39a83be509d49d0f97ca19d214a5ff3987
3,571
py
Python
src/getpaid/authorizedotnet/subscription.py
collective/getpaid.authorizedotnet
8b4db463268cf44c357930c7182be251e1e59cfd
[ "ZPL-2.1" ]
null
null
null
src/getpaid/authorizedotnet/subscription.py
collective/getpaid.authorizedotnet
8b4db463268cf44c357930c7182be251e1e59cfd
[ "ZPL-2.1" ]
1
2015-11-02T22:37:49.000Z
2015-11-29T05:44:00.000Z
src/getpaid/authorizedotnet/subscription.py
collective/getpaid.authorizedotnet
8b4db463268cf44c357930c7182be251e1e59cfd
[ "ZPL-2.1" ]
1
2019-03-20T14:09:23.000Z
2019-03-20T14:09:23.000Z
try: from xml.etree import ElementTree except ImportError: # Python < 2.5 # ARB expects request parameters in a particular order REQUEST_KEY_ORDER = ("merchantAuthentication refId subscriptionId subscription name transactionKey " "paymentSchedule interval length unit " ...
37.589474
100
0.631196
import httplib try: from xml.etree import ElementTree except ImportError: # Python < 2.5 from elementtree import ElementTree # ARB expects request parameters in a particular order REQUEST_KEY_ORDER = ("merchantAuthentication refId subscriptionId subscription name transactionKey " "paym...
0
0
0
2,051
0
550
0
7
163
07729c1f085e28d443a356d0f7bfbe16b56081c8
11,203
py
Python
test/decorators.py
QuantumHardware/qiskit-experiments
c09cf35bb922419354955abe8d536a97a9ea286b
[ "Apache-2.0" ]
72
2021-02-24T19:28:51.000Z
2022-03-27T02:56:59.000Z
test/decorators.py
QuantumHardware/qiskit-experiments
c09cf35bb922419354955abe8d536a97a9ea286b
[ "Apache-2.0" ]
509
2021-03-04T13:46:00.000Z
2022-03-31T18:09:16.000Z
test/decorators.py
QuantumHardware/qiskit-experiments
c09cf35bb922419354955abe8d536a97a9ea286b
[ "Apache-2.0" ]
70
2021-02-24T19:21:39.000Z
2022-03-05T04:00:12.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2018, 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
32.75731
99
0.663037
# This code is part of Qiskit. # # (C) Copyright IBM 2018, 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
0
3,116
0
0
0
0
0
49
229
29c54a319a2837cc6ad205bb9c927e2f2812f964
8,572
py
Python
test.py
jfcarrano/brunnhilde
f855a080a036306082a2a65c9b64ed71842112f2
[ "MIT" ]
null
null
null
test.py
jfcarrano/brunnhilde
f855a080a036306082a2a65c9b64ed71842112f2
[ "MIT" ]
null
null
null
test.py
jfcarrano/brunnhilde
f855a080a036306082a2a65c9b64ed71842112f2
[ "MIT" ]
null
null
null
# encoding: utf-8 from __future__ import (print_function, unicode_literals) import logging import unittest logging.basicConfig(filename='test.log', level=logging.DEBUG) stderr = logging.StreamHandler() stderr.setLevel(logging.WARNING) logging.getLogger().addHandler(stderr) if __name__ == '__main__': unittest...
43.734694
134
0.628441
# encoding: utf-8 from __future__ import (print_function, unicode_literals) import datetime import logging import os import shutil import subprocess import sys import tempfile import unittest from os.path import join as j logging.basicConfig(filename='test.log', level=logging.DEBUG) stderr = logging.StreamHandler()...
0
0
0
7,986
0
73
0
-39
224
5a048922947fe65ebbf8600faf737e380327e31b
4,637
py
Python
dash/app_2.py
gllrt/data2day2018
ff82bdd9a37342c01e6078e6e20bb3f772200e63
[ "MIT" ]
null
null
null
dash/app_2.py
gllrt/data2day2018
ff82bdd9a37342c01e6078e6e20bb3f772200e63
[ "MIT" ]
null
null
null
dash/app_2.py
gllrt/data2day2018
ff82bdd9a37342c01e6078e6e20bb3f772200e63
[ "MIT" ]
null
null
null
import dash import dash_core_components as dcc import dash_html_components as html from datetime import datetime as dt, timedelta # Define object for external CSS stylesheet external_stylesheets = [ 'https://getbootstrap.com/docs/3.3/getting-started/', { 'href': 'https://maxcdn.bootstrapcdn.com/bootstr...
31.120805
149
0.544964
import dash import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output from datetime import datetime as dt, timedelta # Define object for external CSS stylesheet external_stylesheets = [ 'https://getbootstrap.com/docs/3.3/getting-started/', { 'hre...
0
1,220
0
0
0
0
0
22
88
24a0b0ce89ed5ac99b4f9c54e9ac1dcac4bea71c
633
py
Python
instructors/old_sample_code/py4-introspection.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
46
2017-09-27T20:19:36.000Z
2020-12-08T10:07:19.000Z
instructors/old_sample_code/py4-introspection.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
6
2018-01-09T08:07:37.000Z
2020-09-07T12:25:13.000Z
instructors/old_sample_code/py4-introspection.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
18
2017-10-10T02:06:51.000Z
2019-12-01T10:18:13.000Z
""" These will need to be run in a clean virtulenv to give an understanding of a clean install of python.... is this enough? From: http://stackoverflow.com/questions/1006169/how-do-i-look-inside-a-python-object type() dir() id() getattr() hasattr() globals() locals() callable() """ import sys import pkgutil # List ...
18.085714
120
0.759874
""" These will need to be run in a clean virtulenv to give an understanding of a clean install of python.... is this enough? From: http://stackoverflow.com/questions/1006169/how-do-i-look-inside-a-python-object type() dir() id() getattr() hasattr() globals() locals() callable() """ import sys import pkgutil # List ...
0
0
0
0
0
0
0
0
0
525937def0ef025cffe9772292c959c6c855a7aa
1,882
py
Python
event/urls.py
mark-barrett/Ticketr-2
723bb2542bee818132b4c2315efe07c5ac3146c6
[ "MIT" ]
null
null
null
event/urls.py
mark-barrett/Ticketr-2
723bb2542bee818132b4c2315efe07c5ac3146c6
[ "MIT" ]
null
null
null
event/urls.py
mark-barrett/Ticketr-2
723bb2542bee818132b4c2315efe07c5ac3146c6
[ "MIT" ]
null
null
null
"""Ticketr URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-ba...
52.277778
114
0.688098
"""Ticketr URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-ba...
0
0
0
0
0
0
0
20
22
b8e9476e8fc50f35778c1e38f89c148114644292
54,702
py
Python
pp_displaymanager.py
arcticmatter/pipresents-beep
e5945f929b47249f19b0cb3433a138e874b592db
[ "CNRI-Python", "CECILL-B" ]
null
null
null
pp_displaymanager.py
arcticmatter/pipresents-beep
e5945f929b47249f19b0cb3433a138e874b592db
[ "CNRI-Python", "CECILL-B" ]
null
null
null
pp_displaymanager.py
arcticmatter/pipresents-beep
e5945f929b47249f19b0cb3433a138e874b592db
[ "CNRI-Python", "CECILL-B" ]
null
null
null
#! /usr/bin/env python3 #from subprocess import run,call # used to test on a machine without a backlight # ************************** # Test Harness # ************************** # dummy debug monitor """ class PiPresents(object): def __init__(self): self.mon=Mon() ...
41.067568
159
0.581697
#! /usr/bin/env python3 import os import sys import subprocess #from subprocess import run,call from tkinter import Tk, Canvas,Toplevel,NW,Scrollbar,RIGHT,Y,LEFT,BOTH,TOP import copy import configparser class DisplayManager(object): # DSI1 0 - MainLCD - official DSI touchscreen # 1 - ...
0
0
0
47,104
0
0
0
14
226
23bff93bef9a38b053c1c89e86f0059c69331393
305
py
Python
Lista2_06.py
NormanDeveloper/Lista2_Python
232c80b59c98023ee8a7844e2097cb102ed61261
[ "MIT" ]
1
2018-08-24T15:52:13.000Z
2018-08-24T15:52:13.000Z
Lista2_06.py
NormanDeveloper/Lista2_Python
232c80b59c98023ee8a7844e2097cb102ed61261
[ "MIT" ]
null
null
null
Lista2_06.py
NormanDeveloper/Lista2_Python
232c80b59c98023ee8a7844e2097cb102ed61261
[ "MIT" ]
1
2018-09-11T17:37:54.000Z
2018-09-11T17:37:54.000Z
#Faa um Programa que leia trs nmeros e mostre o maior deles. valor1 = float(input("Digite o primeiro valor: ")) valor2 = float(input("Digite o segundo valor: ")) valor3 = float(input("Digite o terceiro valor: ")) valores = [valor1, valor2, valor3] print(f'O maior nmero {max(valores)}')
30.5
64
0.691803
#Faça um Programa que leia três números e mostre o maior deles. valor1 = float(input("Digite o primeiro valor: ")) valor2 = float(input("Digite o segundo valor: ")) valor3 = float(input("Digite o terceiro valor: ")) valores = [valor1, valor2, valor3] print(f'O maior número é {max(valores)}')
10
0
0
0
0
0
0
0
0
51f30c7513f7e93cb65a074484e497d62bd552d1
247
py
Python
lab/part1.py
idane19-meet/y2s18-python_review
b29da34337122d5432798d23ab144a13b33382d5
[ "MIT" ]
null
null
null
lab/part1.py
idane19-meet/y2s18-python_review
b29da34337122d5432798d23ab144a13b33382d5
[ "MIT" ]
null
null
null
lab/part1.py
idane19-meet/y2s18-python_review
b29da34337122d5432798d23ab144a13b33382d5
[ "MIT" ]
null
null
null
# Part 1 of the Python Review lab.
17.642857
58
0.724696
# Part 1 of the Python Review lab. def hello_world(): print("Hello World") def greet_by_name(name): print("Hello",name) def encode(x): return x * 3953531 def decode(coded_message): print(coded_message[0:int(len(coded_message) / 3953531)])
0
0
0
0
0
120
0
0
92
b25a23b014539ccebe6a2b6d16beaf2f6b70fb78
1,322
py
Python
lolcounter.py
infyhr/python-utils
9e74d4fe3ecc5242c0328a48cad5e92747f92819
[ "MIT" ]
1
2018-09-12T09:56:27.000Z
2018-09-12T09:56:27.000Z
lolcounter.py
infyhr/python-utils
9e74d4fe3ecc5242c0328a48cad5e92747f92819
[ "MIT" ]
null
null
null
lolcounter.py
infyhr/python-utils
9e74d4fe3ecc5242c0328a48cad5e92747f92819
[ "MIT" ]
null
null
null
#!/usr/bin/python if __name__ == '__main__': try: main() except KeyboardInterrupt: exit('^C caught, exiting...')
28.12766
191
0.539334
#!/usr/bin/python import sys, urllib2 import re def main(): if len(sys.argv) < 2: exit('Not enough arguments. Need a champion name.'); champion = sys.argv[1].strip().lower().replace(' ','') # Get the name, strip spaces and strtolower it. # Got the champion, now do the request. try: da...
0
0
0
0
0
1,131
0
-14
67
d9b74e8cb52a361f54086ba7587b362dc3687451
300
py
Python
function_random_num.py
liling10822/DSCI560
dbf1d5baa198b1c20ff993caa2ac8dbbe700ef65
[ "Apache-2.0" ]
null
null
null
function_random_num.py
liling10822/DSCI560
dbf1d5baa198b1c20ff993caa2ac8dbbe700ef65
[ "Apache-2.0" ]
null
null
null
function_random_num.py
liling10822/DSCI560
dbf1d5baa198b1c20ff993caa2ac8dbbe700ef65
[ "Apache-2.0" ]
null
null
null
import csv with open("random_num.csv",'r') as f: reader = csv.reader(f) data = list(reader) result = [] for d in data[0]: d_int = int(d) result.append(3*d_int + 6) with open("function_random_num.csv",'w') as output: writer = csv.writer(output) writer.writerow(result)
15
51
0.63
import csv with open("random_num.csv",'r') as f: reader = csv.reader(f) data = list(reader) result = [] for d in data[0]: d_int = int(d) result.append(3*d_int + 6) with open("function_random_num.csv",'w') as output: writer = csv.writer(output) writer.writerow(result)
0
0
0
0
0
0
0
0
0
09d6759a6ae476eb8ebc4a08a60d6a34b6464f8b
1,112
py
Python
airflow_all/dags/data_dag.py
vannguyen3007/Apache-Airflow
1c8a6f3c9c0022807cbae4c4f83de33b8454ae24
[ "Apache-2.0" ]
null
null
null
airflow_all/dags/data_dag.py
vannguyen3007/Apache-Airflow
1c8a6f3c9c0022807cbae4c4f83de33b8454ae24
[ "Apache-2.0" ]
null
null
null
airflow_all/dags/data_dag.py
vannguyen3007/Apache-Airflow
1c8a6f3c9c0022807cbae4c4f83de33b8454ae24
[ "Apache-2.0" ]
null
null
null
import airflow.utils.dates from airflow import DAG from airflow.operators.bash_operator import BashOperator from airflow.operators.dummy_operator import DummyOperator default_args = { "owner": "airflow", "start_date": airflow.utils.dates.days_ago(10), } with DAG(dag_id="data_dag", default_args=de...
29.263158
90
0.571043
import pprint as pp import airflow.utils.dates from airflow import DAG, macros from airflow.operators.bash_operator import BashOperator from airflow.operators.dummy_operator import DummyOperator from datetime import datetime, timedelta default_args = { "owner": "airflow", "start_date": airflow.utils.d...
0
0
0
0
0
0
0
25
44
86b8f11077655686786b20fd4e1da193e2a62fba
2,422
py
Python
ideas/models.py
belatrix/BelatrixEventsBackend
eb38574bba0ca0269b17d0be938cc46787c21895
[ "MIT" ]
null
null
null
ideas/models.py
belatrix/BelatrixEventsBackend
eb38574bba0ca0269b17d0be938cc46787c21895
[ "MIT" ]
25
2018-03-23T16:39:51.000Z
2018-05-19T17:28:42.000Z
ideas/models.py
belatrix/BelatrixEventsBackend
eb38574bba0ca0269b17d0be938cc46787c21895
[ "MIT" ]
null
null
null
from __future__ import unicode_literals
27.83908
61
0.696119
from __future__ import unicode_literals from django.db import models from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class Idea(models.Model): title = models.CharField(max_length=100, unique=True) description = models.TextField(blank=True, null=True) author = mo...
0
1,526
0
620
0
0
0
47
183
edae87ec1cafd55ffaa01a383f6651bebab83e47
6,287
py
Python
Tools/python/lvlArrange/lvlArrange.py
vitei/Usa
c44f893d5b3d8080529ecf0e227f983fddb829d4
[ "MIT" ]
47
2018-04-27T02:16:26.000Z
2022-02-28T05:21:24.000Z
Tools/python/lvlArrange/lvlArrange.py
vitei/Usa
c44f893d5b3d8080529ecf0e227f983fddb829d4
[ "MIT" ]
2
2018-11-13T18:46:41.000Z
2022-03-12T00:04:44.000Z
Tools/python/lvlArrange/lvlArrange.py
vitei/Usa
c44f893d5b3d8080529ecf0e227f983fddb829d4
[ "MIT" ]
6
2019-08-10T21:56:23.000Z
2020-10-21T11:18:29.000Z
import os, sys root = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append( root + '/lvl2vhir' ) sys.path.append( root + '/lvlUtil' ) AI_BLOCKING_AREA_SUFFIX = '_AIBlockingArea' # # Model bounding box representation # # AI blocking area if __name__ == "__main__": main( sys.argv )
33.089474
99
0.552251
import os, sys import xml.etree.ElementTree as etree root = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append( root + '/lvl2vhir' ) sys.path.append( root + '/lvlUtil' ) import LevelEditor import EntityYaml import FileIO AI_BLOCKING_AREA_SUFFIX = '_AIBlockingArea' # # Model bounding box re...
0
0
0
5,074
0
698
0
1
202
cf1d28b7ba2157684fd37139493b09034991f9b4
1,926
py
Python
comicwidgets.py
smuthunoori/ComicCreator
8399fe32d1d35508218bf4b13516d26d266aaa89
[ "MIT" ]
null
null
null
comicwidgets.py
smuthunoori/ComicCreator
8399fe32d1d35508218bf4b13516d26d266aaa89
[ "MIT" ]
null
null
null
comicwidgets.py
smuthunoori/ComicCreator
8399fe32d1d35508218bf4b13516d26d266aaa89
[ "MIT" ]
null
null
null
__author__ = 'smuthunoori' import kivy kivy.require('1.7.0')
27.126761
105
0.616822
__author__ = 'smuthunoori' import kivy kivy.require('1.7.0') from kivy.uix.relativelayout import RelativeLayout from kivy.graphics import Line class DraggableWidget(RelativeLayout): def __init__(self, **kwargs): self.selected = None self.touched = False super(DraggableWidget, self).__ini...
0
0
0
1,733
0
0
0
38
92
ec9717be97c1d49e6965a1cdb461cdc2baff47e5
9,447
py
Python
cefjs.py
gf0842wf/cef
14223533177d4d935b98df3cd13a57e1d9d28c55
[ "MIT" ]
2
2016-11-11T04:47:39.000Z
2016-11-13T15:15:10.000Z
cefjs.py
gf0842wf/cefjs
14223533177d4d935b98df3cd13a57e1d9d28c55
[ "MIT" ]
null
null
null
cefjs.py
gf0842wf/cefjs
14223533177d4d935b98df3cd13a57e1d9d28c55
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- from cefpython3 import cefpython from threading import Lock import os application_settings = { "cache_path": "/tmp/cef/cache/", "debug": False, "log_severity": cefpython.LOGSEVERITY_WARNING, "log_file": "/tmp/cef/debug.log", "resources_dir_path": cefpython.GetModuleDirectory...
26.991429
115
0.610141
# -*- coding: UTF-8 -*- from cefpython3 import cefpython from threading import Thread, Lock import signal import Queue import wx import os import HTMLParser application_settings = { "cache_path": "/tmp/cef/cache/", "debug": False, "log_severity": cefpython.LOGSEVERITY_WARNING, "log_file": "/tmp/cef/deb...
0
647
0
6,186
0
503
0
-25
318
68d85b69528a200e2441b67211e650543185685b
1,041
py
Python
day2/my_netmiko_ex1.py
grenn72/pynet-ons-feb19
5aff7dfa6a697214dc24818819a60b46a261d0d3
[ "Apache-2.0" ]
null
null
null
day2/my_netmiko_ex1.py
grenn72/pynet-ons-feb19
5aff7dfa6a697214dc24818819a60b46a261d0d3
[ "Apache-2.0" ]
null
null
null
day2/my_netmiko_ex1.py
grenn72/pynet-ons-feb19
5aff7dfa6a697214dc24818819a60b46a261d0d3
[ "Apache-2.0" ]
null
null
null
from getpass import getpass from netmiko import ConnectHandler banner = '-' * 80 password = getpass() cisco3 = { 'device_type': 'cisco_ios', 'host': 'cisco3.lasthop.io', 'username': 'pyclass', 'password': password, } nx0s1 = { 'device_type': 'cisco_nxos', 'host': 'nxos1.lasthop.io', 'us...
21.244898
51
0.673391
from netmiko import Netmiko from getpass import getpass from netmiko import ConnectHandler def write_file(filename, show_run): with open(filename, "w") as f: f.write(show_run) banner = '-' * 80 password = getpass() cisco3 = { 'device_type': 'cisco_ios', 'host': 'cisco3.lasthop.io', 'usernam...
0
0
0
0
0
75
0
6
45
e69ddb85da35a8fda5011557cc8e7f957441787d
904
py
Python
mcetl/user/apikeydb.py
materials-commons/pymcetl
b4311ba50bb35bc36527b9d313a91778f9550a92
[ "MIT" ]
null
null
null
mcetl/user/apikeydb.py
materials-commons/pymcetl
b4311ba50bb35bc36527b9d313a91778f9550a92
[ "MIT" ]
null
null
null
mcetl/user/apikeydb.py
materials-commons/pymcetl
b4311ba50bb35bc36527b9d313a91778f9550a92
[ "MIT" ]
null
null
null
import threading _lock = threading.Lock() _apikeys = {} # noinspection PyUnusedLocal
17.72549
49
0.637168
import threading from ..database.DB import DbConnection _lock = threading.Lock() _apikeys = {} def valid_apikey(apikey): if not _apikeys: _load_apikeys() return apikey in _apikeys def _load_apikeys(): conn = DbConnection().connection() r = DbConnection().interface() _lock.acquire() ...
0
0
0
0
0
610
0
17
183
c45c964ec6acd497d6e5583987cbb28a1d04c9a7
3,820
py
Python
lib/gpio-buttons.py
jwayneroth/mpd-touch
04dd86741e522c8f6317d78c12bd99f670c4d899
[ "MIT" ]
4
2016-08-26T22:33:43.000Z
2021-11-20T17:47:48.000Z
lib/gpio-buttons.py
jwayneroth/mpd-touch
04dd86741e522c8f6317d78c12bd99f670c4d899
[ "MIT" ]
null
null
null
lib/gpio-buttons.py
jwayneroth/mpd-touch
04dd86741e522c8f6317d78c12bd99f670c4d899
[ "MIT" ]
null
null
null
#!/usr/bin/python #import thread import fmuglobals if fmuglobals.RUN_ON_RASPBERRY_PI: import RPi.GPIO as GPIO """ AnalogButtons """
32.10084
102
0.687435
#!/usr/bin/python import pygame import time #import thread import fmuglobals if fmuglobals.RUN_ON_RASPBERRY_PI: import RPi.GPIO as GPIO """ AnalogButtons """ class AnalogButtons: def __init__(self): if fmuglobals.RUN_ON_RASPBERRY_PI: GPIO.setmode(GPIO.BCM) #import rotary_encoder #self.encoder = rota...
0
0
0
3,637
0
0
0
-18
66
fc0ecd502d34702f6da576ee1708304e0a7e8cdf
1,636
py
Python
main.py
BrzozowskiPawel/FaceAnonymization
b9a748179f988a27660c09aef21937b5cc5c5c5b
[ "MIT" ]
2
2021-08-11T15:50:12.000Z
2021-09-03T17:53:47.000Z
main.py
BrzozowskiPawel/FaceAnonymization
b9a748179f988a27660c09aef21937b5cc5c5c5b
[ "MIT" ]
null
null
null
main.py
BrzozowskiPawel/FaceAnonymization
b9a748179f988a27660c09aef21937b5cc5c5c5b
[ "MIT" ]
null
null
null
import divide_video import find_and_blur_faces import list_of_files import time from termcolor import colored import welcome_message import warnings print(colored(welcome_message.welcome_msg,'green')) # Helps not to display UserWarning warnings.simplefilter("ignore", UserWarning) # Information about the program sta...
31.461538
106
0.756724
import divide_video import find_and_blur_faces import list_of_files import time from termcolor import colored import welcome_message import warnings print(colored(welcome_message.welcome_msg,'green')) # Helps not to display UserWarning warnings.simplefilter("ignore", UserWarning) # Information about the program sta...
0
0
0
0
0
0
0
0
0
2761fb07871b13a06155b8706cfe6423da645e85
2,422
py
Python
example_problems/tutorial/hanoi/services/eval_sol_server.py
romeorizzi/TALight
2b694cb487f41dd0d36d7aa39f5c9c5a21bfc18e
[ "MIT" ]
4
2021-06-27T13:27:24.000Z
2022-03-24T10:46:28.000Z
example_problems/tutorial/hanoi/services/eval_sol_server.py
romeorizzi/TALight
2b694cb487f41dd0d36d7aa39f5c9c5a21bfc18e
[ "MIT" ]
1
2021-01-23T06:50:31.000Z
2021-03-17T15:35:18.000Z
example_problems/tutorial/hanoi/services/eval_sol_server.py
romeorizzi/TALight
2b694cb487f41dd0d36d7aa39f5c9c5a21bfc18e
[ "MIT" ]
5
2021-04-01T15:21:57.000Z
2022-01-29T15:07:38.000Z
#!/usr/bin/env python3 from sys import exit import random from TALinputs import TALinput from multilanguage import Env, Lang, TALcolors from hanoi_lib import ConfigGenerator, HanoiTowerProblem from utils_lang import get_regex, get_std_move # METADATA OF THIS TAL_SERVICE: args_list = [ ('v',str), ('start', s...
31.454545
115
0.608588
#!/usr/bin/env python3 from sys import stderr, exit import random from TALinputs import TALinput from multilanguage import Env, Lang, TALcolors from hanoi_lib import ConfigGenerator, HanoiTowerProblem from utils_lang import get_regex, get_std_move # METADATA OF THIS TAL_SERVICE: args_list = [ ('v',str), ('s...
0
0
0
0
0
0
0
8
0
5a1579893d0dc93e471881ebe49f11c29b117f08
508
py
Python
plants/migrations/0028_plant_profile_photo.py
spalk/Plant-Passport-gitpod
7b80d84a3c01b08cc1f8cace7cd9fb377605eec8
[ "MIT" ]
null
null
null
plants/migrations/0028_plant_profile_photo.py
spalk/Plant-Passport-gitpod
7b80d84a3c01b08cc1f8cace7cd9fb377605eec8
[ "MIT" ]
21
2021-08-30T14:52:33.000Z
2022-02-08T14:24:21.000Z
plants/migrations/0028_plant_profile_photo.py
spalk/Plant-Passport-gitpod
7b80d84a3c01b08cc1f8cace7cd9fb377605eec8
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-09-27 14:25
25.4
143
0.641732
# Generated by Django 3.2.7 on 2021-09-27 14:25 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('plants', '0027_photo_plant'), ] operations = [ migrations.AddField( model_name='plant', ...
0
0
0
361
0
0
0
30
68
c786d40672e0ec66021dc59f1b2b170f0c651124
3,196
py
Python
vrep/vision_sensor.py
richban/behavioral.neuroevolution
bb850bda919a772538dc86a9624a6e86623f9b80
[ "Apache-2.0" ]
null
null
null
vrep/vision_sensor.py
richban/behavioral.neuroevolution
bb850bda919a772538dc86a9624a6e86623f9b80
[ "Apache-2.0" ]
2
2020-03-31T01:45:13.000Z
2020-09-25T23:39:43.000Z
vrep/vision_sensor.py
richban/behavioral.neuroevolution
bb850bda919a772538dc86a9624a6e86623f9b80
[ "Apache-2.0" ]
null
null
null
import vrep.vrep as vrep __credits__ = 'nemilya' OP_MODE = vrep.simx_opmode_oneshot_wait PORT_NUM = 19997 if __name__ == '__main__': run()
28.283186
92
0.607947
import vrep.vrep as vrep from PIL import Image import numpy as np import time import array import cv2 __credits__ = 'nemilya' OP_MODE = vrep.simx_opmode_oneshot_wait PORT_NUM = 19997 def track_green_object(image): # Blur the image to reduce noise blur = cv2.GaussianBlur(image, (5, 5), 0) # Convert BGR...
0
0
0
0
0
2,923
0
-33
156
d855360df2f459f8eea681ae86978b43e477c481
35
py
Python
tests/__init__.py
taoyilee/pyPDA
faac9509b17d931c42a2d0b5ce7b2d19ab2e0a45
[ "MIT" ]
5
2020-02-20T21:38:29.000Z
2022-01-19T02:59:41.000Z
tests/__init__.py
taoyilee/pyPDA
faac9509b17d931c42a2d0b5ce7b2d19ab2e0a45
[ "MIT" ]
null
null
null
tests/__init__.py
taoyilee/pyPDA
faac9509b17d931c42a2d0b5ce7b2d19ab2e0a45
[ "MIT" ]
1
2021-11-06T07:15:47.000Z
2021-11-06T07:15:47.000Z
"""Unit test package for pypda."""
17.5
34
0.657143
"""Unit test package for pypda."""
0
0
0
0
0
0
0
0
0
0bca08b939ad6ad6a24099d957928a3d6a25f8f2
1,063
py
Python
setup.py
matchstick-studio/django-bitcoin
c5fcb9c5936225076c11dc3308b031ad7a80ec32
[ "MIT" ]
null
null
null
setup.py
matchstick-studio/django-bitcoin
c5fcb9c5936225076c11dc3308b031ad7a80ec32
[ "MIT" ]
null
null
null
setup.py
matchstick-studio/django-bitcoin
c5fcb9c5936225076c11dc3308b031ad7a80ec32
[ "MIT" ]
null
null
null
from setuptools import setup template_patterns = ['templates/*.html', 'templates/*/*.html', 'templates/*/*/*.html', ] package_name = 'django-bitcoin' packages = ['django_bitcoin', 'django_bitcoin.management', 'django_bitcoin.manag...
33.21875
88
0.608655
from setuptools import setup template_patterns = ['templates/*.html', 'templates/*/*.html', 'templates/*/*/*.html', ] package_name = 'django-bitcoin' packages = ['django_bitcoin', 'django_bitcoin.management', 'django_bitcoin.manag...
0
0
0
0
0
0
0
0
0
c2443628bbb0c22b50ae2c7faa6518d278156285
7,368
py
Python
vvmovie/images2ims.py
chiluf/visvis.dev
373846ea25044b7ca50f44c63dab4248e14deacd
[ "BSD-3-Clause" ]
null
null
null
vvmovie/images2ims.py
chiluf/visvis.dev
373846ea25044b7ca50f44c63dab4248e14deacd
[ "BSD-3-Clause" ]
null
null
null
vvmovie/images2ims.py
chiluf/visvis.dev
373846ea25044b7ca50f44c63dab4248e14deacd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2012, Almar Klein # # This code is subject to the (new) BSD license: # # Redistribution and use 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...
30.957983
84
0.608442
# -*- coding: utf-8 -*- # Copyright (C) 2012, Almar Klein # # This code is subject to the (new) BSD license: # # Redistribution and use 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...
0
0
0
0
0
765
0
0
99
52ef5326df7c87c2707c8d265307f121903a5167
860
py
Python
track_history/handlers.py
akszydelko/django-track-history
41ea0b8925870db0d16e0e42c483da6b34b8afd7
[ "BSD-3-Clause" ]
2
2015-09-28T09:23:56.000Z
2020-08-26T08:51:38.000Z
track_history/handlers.py
akszydelko/django-track-history
41ea0b8925870db0d16e0e42c483da6b34b8afd7
[ "BSD-3-Clause" ]
4
2015-10-02T09:27:17.000Z
2021-06-10T19:42:55.000Z
track_history/handlers.py
akszydelko/django-track-history
41ea0b8925870db0d16e0e42c483da6b34b8afd7
[ "BSD-3-Clause" ]
1
2015-10-01T13:46:56.000Z
2015-10-01T13:46:56.000Z
from __future__ import unicode_literals
33.076923
109
0.696512
from __future__ import unicode_literals from django.db import models, transaction from .tracker import TrackHelper def store_initial(sender, instance, **kwargs): # Assign the helper instance setattr(instance, '_th', TrackHelper(tracked_instance=instance, fields=kwarg...
0
0
0
326
0
345
0
31
115
ba5f901e46dbcd277b41882b7b90e94fb8ca2538
536
py
Python
np/reference/ch2code/dtypeconstructors.py
focusunsink/study_python
322326642db54df8725793d70a95d21ac40b6507
[ "MIT" ]
null
null
null
np/reference/ch2code/dtypeconstructors.py
focusunsink/study_python
322326642db54df8725793d70a95d21ac40b6507
[ "MIT" ]
null
null
null
np/reference/ch2code/dtypeconstructors.py
focusunsink/study_python
322326642db54df8725793d70a95d21ac40b6507
[ "MIT" ]
null
null
null
import numpy as np # Chapter 2 Beginning with NumPy fundamentals # # Demonstrates the NumPy dtype constructors. # # Run from the commandline with # # python dtypeconstructors.py print "In: dtype(float)" print np.dtype(float) #Out: dtype('float64') print "In: dtype('f')" print np.dtype('f') #Out: dtype('float32') ...
16.75
45
0.684701
import numpy as np # Chapter 2 Beginning with NumPy fundamentals # # Demonstrates the NumPy dtype constructors. # # Run from the commandline with # # python dtypeconstructors.py print "In: dtype(float)" print np.dtype(float) #Out: dtype('float64') print "In: dtype('f')" print np.dtype('f') #Out: dtype('float32') ...
0
0
0
0
0
0
0
0
0
e53b00c1bae70a14a436daca04c499236538bfee
1,148
py
Python
setup.py
signalfx/python-redis
9bed5c18b335cc4d2c753fd522250c6ad257757d
[ "Apache-2.0" ]
null
null
null
setup.py
signalfx/python-redis
9bed5c18b335cc4d2c753fd522250c6ad257757d
[ "Apache-2.0" ]
1
2020-04-30T23:03:17.000Z
2020-04-30T23:03:17.000Z
setup.py
signalfx/python-redis
9bed5c18b335cc4d2c753fd522250c6ad257757d
[ "Apache-2.0" ]
2
2019-09-01T06:00:30.000Z
2021-03-15T18:00:46.000Z
from setuptools import setup version = open('VERSION').read() setup( name='signalfx-instrumentation-redis', version=version, url='https://github.com/signalfx/python-redis/', download_url='https://github.com/signalfx/python-redis/tarball/'+version, license='Apache License 2.0', author='SignalFx,...
29.435897
77
0.592334
from setuptools import setup version = open('VERSION').read() setup( name='signalfx-instrumentation-redis', version=version, url='https://github.com/signalfx/python-redis/', download_url='https://github.com/signalfx/python-redis/tarball/'+version, license='Apache License 2.0', author='SignalFx,...
0
0
0
0
0
0
0
0
0
a344118cba520125713ae4bbfff97bed0cc23be6
6,500
py
Python
data_pre.py
shashank3110/ExtendedLearning
28335889ccbac51e12da833caaa32ef99bc7a491
[ "MIT" ]
null
null
null
data_pre.py
shashank3110/ExtendedLearning
28335889ccbac51e12da833caaa32ef99bc7a491
[ "MIT" ]
null
null
null
data_pre.py
shashank3110/ExtendedLearning
28335889ccbac51e12da833caaa32ef99bc7a491
[ "MIT" ]
null
null
null
#%% from sklearn.neighbors import KernelDensity from sklearn.model_selection import cross_val_score from sklearn.model_selection import train_test_split import pandas as pd # from sklearn.preprocessing import LabelEncoder,OneHotEncoder from sklearn.naive_bayes import GaussianNB, ComplementNB, MultinomialNB, BernoulliN...
29.147982
139
0.689692
#%% import qgrid from sklearn.neighbors import KernelDensity from sklearn.model_selection import cross_val_score from sklearn.tree import DecisionTreeClassifier from sklearn.model_selection import train_test_split import pandas as pd # from sklearn.preprocessing import LabelEncoder,OneHotEncoder from sklearn.impute im...
0
0
0
0
0
1,114
0
88
200
f48f5ea99ce7e6d0460e3438731ee02e4be83d73
3,191
py
Python
Previous homework/PI 4 Deel 1.py
Zuyd-Homework/Year-1_Python
f1cab49eb569a303c024c3c52f13a5e473f72957
[ "MIT" ]
1
2019-01-11T09:04:34.000Z
2019-01-11T09:04:34.000Z
Previous homework/PI 4 Deel 1.py
Bas-Korver/Python-homework
f1cab49eb569a303c024c3c52f13a5e473f72957
[ "MIT" ]
2
2019-01-11T09:18:20.000Z
2019-06-13T09:33:08.000Z
Previous homework/PI 4 Deel 1.py
Bas-Korver/Python-homework
f1cab49eb569a303c024c3c52f13a5e473f72957
[ "MIT" ]
3
2019-01-11T09:01:37.000Z
2019-02-18T21:54:00.000Z
#Gemaakt door Joey Einerhand en Bas Krver andereModuleBerekenen = True while andereModuleBerekenen == True: aantalPIs = int(input("Aantal PI's: ")) nummerPIs = [] moetVoldPIs = [] wegingPIs = [] wegingTotaal = 0 opnieuwBerekenen = True print('') n = 0 while (n < aantalPIs): ...
37.541176
140
0.506111
#Gemaakt door Joey Einerhand en Bas Körver andereModuleBerekenen = True while andereModuleBerekenen == True: aantalPIs = int(input("Aantal PI's: ")) nummerPIs = [] moetVoldPIs = [] wegingPIs = [] wegingTotaal = 0 opnieuwBerekenen = True print('') n = 0 while (n < aantalPIs): ...
2
0
0
0
0
0
0
0
0
9f579695c491d8ab6ec01e73235d2559291a42a3
5,125
py
Python
main.py
hirusha-adi/Whatsapp-Group-Logo-Creator-RIS
bddff13fb288f7948f2f99ea7a895030721107f9
[ "MIT" ]
null
null
null
main.py
hirusha-adi/Whatsapp-Group-Logo-Creator-RIS
bddff13fb288f7948f2f99ea7a895030721107f9
[ "MIT" ]
null
null
null
main.py
hirusha-adi/Whatsapp-Group-Logo-Creator-RIS
bddff13fb288f7948f2f99ea7a895030721107f9
[ "MIT" ]
null
null
null
__author__ = "hirusha-adi" __version__ = "1.0" import sys if __name__ == "__main__": while True: try: ENTIRE_PROGRAM() except (KeyboardInterrupt, SystemExit): sys.exit("\n\nExitting 'main.py'. Have a nice day!")
39.122137
125
0.571122
__author__ = "hirusha-adi" __version__ = "1.0" import os import sys import time import requests from server import app from utils.other import (__CREDITS__, __LOGO__, __MAIN_MENU__, __SLEEP__, __LoadStuffMenu__, __ResizeMenu__) from utils.resize import jpeg, jpg, png def ENTIRE_PROGRAM(): ...
0
0
0
0
0
4,605
0
103
158
460aaec15fed4b9562173d306c12ceb5456199bd
388
py
Python
labelByToken.py
bmschmidt/jstor-bookworm
9eae44e0114dcfa3609c82f7d7558faad3fc83b0
[ "MIT" ]
null
null
null
labelByToken.py
bmschmidt/jstor-bookworm
9eae44e0114dcfa3609c82f7d7558faad3fc83b0
[ "MIT" ]
null
null
null
labelByToken.py
bmschmidt/jstor-bookworm
9eae44e0114dcfa3609c82f7d7558faad3fc83b0
[ "MIT" ]
null
null
null
import json import re import sys keywords = ["[Gg]lobal [Hh]istory","[Ww]orld [Hh]istory"] print "filename\tkeyword" for line in sys.stdin: filename = re.search(r'"doi": "([^"]*)"',line).groups()[0] matches = [] for keyword in keywords: if re.search(keyword,line): matches.append(keyw...
21.555556
62
0.587629
import json import re import sys keywords = ["[Gg]lobal [Hh]istory","[Ww]orld [Hh]istory"] print "filename\tkeyword" for line in sys.stdin: filename = re.search(r'"doi": "([^"]*)"',line).groups()[0] matches = [] for keyword in keywords: if re.search(keyword,line): matches.append(keyw...
0
0
0
0
0
0
0
0
0
31a548096fb768dd76fd9486bec5aafdded1b5f8
509
py
Python
crypt2.py
Yaya-Cout/Python
500a2bc18cbb0b9bf1470943def8fd8e8e76d36d
[ "Unlicense" ]
5
2020-12-05T14:00:39.000Z
2021-12-02T11:44:54.000Z
crypt2.py
Yaya-Cout/Python
500a2bc18cbb0b9bf1470943def8fd8e8e76d36d
[ "Unlicense" ]
11
2021-03-15T17:51:43.000Z
2021-11-24T13:24:39.000Z
crypt2.py
Yaya-Cout/Python
500a2bc18cbb0b9bf1470943def8fd8e8e76d36d
[ "Unlicense" ]
1
2021-01-02T14:15:10.000Z
2021-01-02T14:15:10.000Z
from simplecrypt import decrypt, encrypt password = "zfcxwqjnozidxno" message = "this is a secret message" with open("private.pem", "r") as private: with open("private.pem.crypt", "w") as crypted: with open("public.pem", "r") as publickey: ciphertext = encrypt(publickey.read(), private.read()) ...
33.933333
67
0.679764
from simplecrypt import decrypt, encrypt password = "zfcxwqjnozidxno" message = "this is a secret message" with open("private.pem", "r") as private: with open("private.pem.crypt", "w") as crypted: with open("public.pem", "r") as publickey: ciphertext = encrypt(publickey.read(), private.read()) ...
0
0
0
0
0
0
0
0
0
fef95da025c8ebd78ef48f40f024c8944c6ebabe
212
py
Python
pra subir/pythonexercicios/ex34.py
daianebandeira88/curso-python
763f5f36b6d7329549ad861c63acc3c84aade887
[ "MIT" ]
null
null
null
pra subir/pythonexercicios/ex34.py
daianebandeira88/curso-python
763f5f36b6d7329549ad861c63acc3c84aade887
[ "MIT" ]
null
null
null
pra subir/pythonexercicios/ex34.py
daianebandeira88/curso-python
763f5f36b6d7329549ad861c63acc3c84aade887
[ "MIT" ]
null
null
null
s=float(input('qual o valor do seu salario')) if s <= 1250.00 : a=(s*15)/100 print('seu novo salario {:2}'.format(s+a)) if s > 1250.00: a=(s*10)/100 print('seu novo salario {:2}'.format(s+a))
30.285714
48
0.580189
s=float(input('qual o valor do seu salario')) if s <= 1250.00 : a=(s*15)/100 print('seu novo salario é {:2}'.format(s+a)) if s > 1250.00: a=(s*10)/100 print('seu novo salario é {:2}'.format(s+a))
4
0
0
0
0
0
0
0
0
1fd86ca7466e2ce7fd45f32cb0ce497ef85e4131
2,831
py
Python
TPraticas/Aula3/BlindSignature/verifySigature-app.py
uminho-miei-engseg-19-20/EngSeg
37ab06cf30a7632d0e9e9e566631598151615b14
[ "CC0-1.0" ]
11
2020-02-03T15:00:45.000Z
2020-04-28T16:54:09.000Z
TPraticas/Aula3/BlindSignature/verifySigature-app.py
uminho-miei-engseg-19-20/EngSeg
37ab06cf30a7632d0e9e9e566631598151615b14
[ "CC0-1.0" ]
null
null
null
TPraticas/Aula3/BlindSignature/verifySigature-app.py
uminho-miei-engseg-19-20/EngSeg
37ab06cf30a7632d0e9e9e566631598151615b14
[ "CC0-1.0" ]
11
2020-02-17T16:20:27.000Z
2020-04-27T22:35:13.000Z
# coding: latin-1 ############################################################################### # eVotUM - Electronic Voting System # # verifySignature-app.py # # Cripto-7.4.1 - Commmad line app to exemplify the usage of verifySignature # function (see eccblind.py) # # Copyright (c) 2016 Universidade do Minho #...
36.766234
118
0.67326
# coding: latin-1 ############################################################################### # eVotUM - Electronic Voting System # # verifySignature-app.py # # Cripto-7.4.1 - Commmad line app to exemplify the usage of verifySignature # function (see eccblind.py) # # Copyright (c) 2016 Universidade do Minho #...
2
0
0
0
0
1,128
0
12
159
571a87cb283669e4a07771406f1ed442fa44f767
31,009
py
Python
lib/propagators.py
giomalt/SLM_hologram_generation
74ad38be8fe17c710856b2508389cd8c9f1ee77a
[ "MIT" ]
3
2021-02-24T12:55:01.000Z
2021-03-19T02:19:25.000Z
lib/propagators.py
giomalt/SLM_hologram_generation
74ad38be8fe17c710856b2508389cd8c9f1ee77a
[ "MIT" ]
null
null
null
lib/propagators.py
giomalt/SLM_hologram_generation
74ad38be8fe17c710856b2508389cd8c9f1ee77a
[ "MIT" ]
null
null
null
''' Created on 23 mars 2014 @author: Mohamed seghilani ''' if __name__ == '__main__': pass
40.801316
261
0.541585
''' Created on 23 mars 2014 @author: Mohamed seghilani ''' import math import numpy as np import sys import matplotlib.pylab as plt from opencavity.modesolver import AmpMask2D class FresnelProp(object): ''' Class for Fresnel propagation kernel construction and integrals calculation this class cont...
0
0
0
30,742
0
0
0
7
133
a9a19fad91f18e1293a72cdcf013b6cdf65bbd5b
1,688
py
Python
src/util/image.py
joschuck/OpenCV-with-Python-Series
887ed96cbf2992a03e88a42ee00e007f8047dbdc
[ "MIT" ]
8
2021-03-06T21:20:01.000Z
2022-03-19T07:44:33.000Z
src/util/image.py
nfajardo/OpenCV-with-Python-Series
887ed96cbf2992a03e88a42ee00e007f8047dbdc
[ "MIT" ]
null
null
null
src/util/image.py
nfajardo/OpenCV-with-Python-Series
887ed96cbf2992a03e88a42ee00e007f8047dbdc
[ "MIT" ]
2
2021-08-25T14:27:49.000Z
2022-03-06T15:31:26.000Z
# -*- coding: utf-8 -*- """ Common task with image data. ================================== 20.07.20. Conversion to QImage and QPixmap """ __author__ = 'Johannes Schuck' __email__ = 'johannes.schuck@gmail.com' __all__ = ['to_q_image', 'to_q_pixmap'] from PySide2.QtGui import QImage, QPixmap import numpy...
24.114286
89
0.591232
# -*- coding: utf-8 -*- """ Common task with image data. ================================== 20.07.20. Conversion to QImage and QPixmap """ __author__ = 'Johannes Schuck' __email__ = 'johannes.schuck@gmail.com' __all__ = ['to_q_image', 'to_q_pixmap'] from PySide2.QtGui import QImage, QPixmap import numpy...
0
0
0
0
0
0
0
0
0
0ef5261ab2f0f9882a5c1eb8c2322f64881e11ef
1,379
py
Python
setup.py
deniskrumko/django-migrations-diff
a6916d6bc4f4adbc6aefa4983a77f92df2c811e6
[ "MIT" ]
7
2020-04-09T07:58:39.000Z
2021-03-15T12:45:07.000Z
setup.py
deniskrumko/django-migrations-diff
a6916d6bc4f4adbc6aefa4983a77f92df2c811e6
[ "MIT" ]
1
2021-02-10T02:05:35.000Z
2021-02-10T02:05:35.000Z
setup.py
deniskrumko/django-migrations-diff
a6916d6bc4f4adbc6aefa4983a77f92df2c811e6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from setuptools import setup from django_migrations_diff import get_version with open('README.rst') as f: readme = f.read() setup( name='django-migrations-diff', version=get_version(), description='CLI for comparing Django migrations between two snapshots.', long_descripti...
31.340909
77
0.625816
#!/usr/bin/env python3 from setuptools import setup from django_migrations_diff import get_version with open('README.rst') as f: readme = f.read() setup( name='django-migrations-diff', version=get_version(), description='CLI for comparing Django migrations between two snapshots.', long_descripti...
0
0
0
0
0
0
0
0
0
4395c7816a026a4c3cb3e602c379db6abb24c28b
1,709
py
Python
talos/reducers/correlation.py
zazula/talos
4a2a2c1c16310a2158692808cb0a6cfe4e4be326
[ "MIT" ]
null
null
null
talos/reducers/correlation.py
zazula/talos
4a2a2c1c16310a2158692808cb0a6cfe4e4be326
[ "MIT" ]
null
null
null
talos/reducers/correlation.py
zazula/talos
4a2a2c1c16310a2158692808cb0a6cfe4e4be326
[ "MIT" ]
null
null
null
def correlation(self, method): '''This is called from reduce_run.py. Performs a spearman rank order correlation based reduction. First looks for a parameter that correlates with reduction_metric and correlation meets reduction_threshold and then converts the match parameter into a 2d multi...
29.465517
81
0.707431
def correlation(self, method): '''This is called from reduce_run.py. Performs a spearman rank order correlation based reduction. First looks for a parameter that correlates with reduction_metric and correlation meets reduction_threshold and then converts the match parameter into a 2d multi...
0
0
0
0
0
0
0
0
0
4fe9cd6a99071af2261dff89d787c29aa4948308
1,185
py
Python
docs/cornell CS class/lesson 14. Error Handling/demos/stack2.py
LizzieDeng/kalman_fliter_analysis
50e728f32c496c3fcbb8ca3ee00857b999b88d99
[ "MIT" ]
null
null
null
docs/cornell CS class/lesson 14. Error Handling/demos/stack2.py
LizzieDeng/kalman_fliter_analysis
50e728f32c496c3fcbb8ca3ee00857b999b88d99
[ "MIT" ]
null
null
null
docs/cornell CS class/lesson 14. Error Handling/demos/stack2.py
LizzieDeng/kalman_fliter_analysis
50e728f32c496c3fcbb8ca3ee00857b999b88d99
[ "MIT" ]
null
null
null
""" A module to show off hwo to recover from an error. This module shows what happens when there is not a try-except statement immediately around the error, but there is one up higher in the call stack. Author: Walker M. White Date: March 30, 2019 """ def function_1(x,y): """ Have function_2 do all the wo...
21.944444
78
0.632911
""" A module to show off hwo to recover from an error. This module shows what happens when there is not a try-except statement immediately around the error, but there is one up higher in the call stack. Author: Walker M. White Date: March 30, 2019 """ def function_1(x,y): """ Have function_2 do all the wo...
0
0
0
0
0
0
0
0
0
cbe12781fd76d848319803aa579d95af7648f78e
589
py
Python
setup_SDN_MultipleTrial.py
anagamori/python-code
ce19ca30f177726b48b30ea1b02c0c73ba5d5d3f
[ "Apache-2.0", "OpenSSL" ]
null
null
null
setup_SDN_MultipleTrial.py
anagamori/python-code
ce19ca30f177726b48b30ea1b02c0c73ba5d5d3f
[ "Apache-2.0", "OpenSSL" ]
null
null
null
setup_SDN_MultipleTrial.py
anagamori/python-code
ce19ca30f177726b48b30ea1b02c0c73ba5d5d3f
[ "Apache-2.0", "OpenSSL" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Mon Mar 12 14:25:34 2018 @author: akira """ from distutils.core import setup from Cython.Build import cythonize from distutils.extension import Extension from Cython.Distutils import build_ext ext_modules=[ Extension("SDN_MultipleTrial", ["S...
24.541667
62
0.657046
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Mon Mar 12 14:25:34 2018 @author: akira """ from distutils.core import setup from Cython.Build import cythonize from distutils.extension import Extension from Cython.Distutils import build_ext ext_modules=[ Extension("SDN_MultipleTrial", ["S...
0
0
0
0
0
0
0
0
0
39de32a8f9c68f5099bb9718a9836121edb9aaeb
1,843
py
Python
django_comments_xtd/tests/templatetags.py
lyoniionly/django-comments-xtd
bc62a7359b9b460185e0fe4a7a1958bc9ef5599c
[ "BSD-2-Clause" ]
null
null
null
django_comments_xtd/tests/templatetags.py
lyoniionly/django-comments-xtd
bc62a7359b9b460185e0fe4a7a1958bc9ef5599c
[ "BSD-2-Clause" ]
null
null
null
django_comments_xtd/tests/templatetags.py
lyoniionly/django-comments-xtd
bc62a7359b9b460185e0fe4a7a1958bc9ef5599c
[ "BSD-2-Clause" ]
null
null
null
#-*- coding: utf-8 -*-
36.137255
200
0.684753
#-*- coding: utf-8 -*- import unittest from django.template import TemplateSyntaxError from django.test import TestCase as DjangoTestCase from django_comments_xtd.templatetags.comments_xtd import render_markup_comment, formatter @unittest.skipIf(not formatter, "This test case needs django-markup, docutils and mark...
0
1,563
0
0
0
0
0
118
137
7232f7b69ad71b3b62e8edecfbd8899d7a8b425a
9,140
py
Python
pysnmp-with-texts/ALCATEL-IND1-OSPF3-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/ALCATEL-IND1-OSPF3-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/ALCATEL-IND1-OSPF3-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 ALCATEL-IND1-OSPF3-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ALCATEL-IND1-OSPF3-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:18:46 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (d...
152.333333
887
0.784902
# # PySNMP MIB module ALCATEL-IND1-OSPF3-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ALCATEL-IND1-OSPF3-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:18:46 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (d...
0
0
0
0
0
0
0
0
0
9431caffb97ac30a5c992923b0729547a43ab873
1,991
py
Python
zhaquirks/gledopto/soposhgu10.py
WolfRevo/zha-device-handlers
0fa4ca1c03c611be0cf2c38c4fec2a197e3dd1d3
[ "Apache-2.0" ]
213
2020-04-16T10:48:31.000Z
2022-03-30T20:48:07.000Z
zhaquirks/gledopto/soposhgu10.py
WolfRevo/zha-device-handlers
0fa4ca1c03c611be0cf2c38c4fec2a197e3dd1d3
[ "Apache-2.0" ]
1,088
2020-04-03T13:23:29.000Z
2022-03-31T23:55:03.000Z
zhaquirks/gledopto/soposhgu10.py
WolfRevo/zha-device-handlers
0fa4ca1c03c611be0cf2c38c4fec2a197e3dd1d3
[ "Apache-2.0" ]
280
2020-04-24T08:44:27.000Z
2022-03-31T12:58:04.000Z
"""GLEDOPTO Soposh Dual White and color 5W GU10 300lm device."""
28.042254
64
0.526369
"""GLEDOPTO Soposh Dual White and color 5W GU10 300lm device.""" from zigpy.profiles import zll from zigpy.profiles.zll import DeviceType from zigpy.quirks import CustomDevice from zigpy.zcl.clusters.general import ( Basic, Groups, Identify, LevelControl, OnOff, Scenes, ) from zigpy.zcl.clusters...
0
0
0
1,451
0
0
0
296
178
6b6f848e47ee34ddab8791bcdcaaf642a5287bc3
774
py
Python
setup.py
MengMeng96/TSN-Scheduler
2461e7d543163eda3fc4fc901de48a224aec6ae2
[ "Apache-2.0" ]
1
2021-01-29T06:36:09.000Z
2021-01-29T06:36:09.000Z
setup.py
MengMeng96/TSN-Scheduler
2461e7d543163eda3fc4fc901de48a224aec6ae2
[ "Apache-2.0" ]
null
null
null
setup.py
MengMeng96/TSN-Scheduler
2461e7d543163eda3fc4fc901de48a224aec6ae2
[ "Apache-2.0" ]
1
2021-10-15T06:19:12.000Z
2021-10-15T06:19:12.000Z
from setuptools import setup, find_packages # with open("README.md", "r", encoding='UTF-8') as fh: # long_description = fh.read() setup( name="DRLS", version="1.0.0", description="Tsinghua network tools", long_description="", license="Apache 2.0 Licence", url="", author="dongbaishun",...
22.114286
56
0.600775
from setuptools import setup, find_packages # with open("README.md", "r", encoding='UTF-8') as fh: # long_description = fh.read() setup( name="DRLS", version="1.0.0", description="Tsinghua network tools", long_description="", license="Apache 2.0 Licence", url="", author="dongbaishun",...
0
0
0
0
0
0
0
0
0
1f57891ee70de166c54dff0d615432f340ad40ce
7,594
py
Python
app/download-and-process-video.py
Gavin-Song/study-quick
ed3b626aa933551a03a699f44baf5b5a5d1ce978
[ "MIT" ]
5
2019-11-15T16:11:33.000Z
2020-10-03T07:33:29.000Z
app/download-and-process-video.py
ekstra26/2XStudy
4f448c053d52451c8ddbea1c6605c3ba19860c68
[ "MIT" ]
1
2020-01-27T17:04:32.000Z
2020-03-29T23:55:55.000Z
app/download-and-process-video.py
ekstra26/2XStudy
4f448c053d52451c8ddbea1c6605c3ba19860c68
[ "MIT" ]
3
2020-07-31T12:41:59.000Z
2020-10-03T07:23:40.000Z
from download_videos import download_video as download from process_audio import extract_audio as audio from process_video import process_video as video import sys, os import shutil import re import json # Sanity check if sys.version_info < (3, 0): raise Exception("Code must be run using python3") # Already exis...
34.995392
148
0.606531
from download_videos import download_video as download from process_audio import extract_audio as audio from process_video import process_video as video import sys, os import pytube import shutil import re import json # Sanity check if sys.version_info < (3, 0): raise Exception("Code must be run using python3") ...
0
0
0
0
0
57
0
-8
44
00013dc92cfe4eaabe438ceb415da29e297d45ae
710
py
Python
AST/Tuple.py
CodeClubLux/TopCompiler
dcd4fe74bf967b84080c66bf8bfdf24a58f09400
[ "MIT" ]
4
2016-05-18T14:16:43.000Z
2017-06-30T09:06:18.000Z
AST/Tuple.py
CodeClubLux/TopCompiler
dcd4fe74bf967b84080c66bf8bfdf24a58f09400
[ "MIT" ]
null
null
null
AST/Tuple.py
CodeClubLux/TopCompiler
dcd4fe74bf967b84080c66bf8bfdf24a58f09400
[ "MIT" ]
2
2017-01-13T13:28:09.000Z
2017-02-08T14:25:36.000Z
__author__ = 'antonellacalvia'
27.307692
51
0.528169
__author__ = 'antonellacalvia' from .node import * class Tuple(Node): def __init__(self, parser): Node.__init__(self, parser) self.tuple = False def __str__(self): return "tuple" def validate(self, parser): pass def compileToJS(self, codegen): if len(self.nodes) == 1:...
0
0
0
636
0
0
0
-2
46
dfafc4c5ca46802a1c00e4e3d6ec53c712405266
2,002
py
Python
pymercury/alembicutils.py
akupara/pymercury
dd229b1a4d006f54325cc360a01491deb6bb5467
[ "MIT" ]
1
2016-02-14T07:59:04.000Z
2016-02-14T07:59:04.000Z
pymercury/alembicutils.py
akupara/pymercury
dd229b1a4d006f54325cc360a01491deb6bb5467
[ "MIT" ]
null
null
null
pymercury/alembicutils.py
akupara/pymercury
dd229b1a4d006f54325cc360a01491deb6bb5467
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os def reflect_model(tablename): """ Create a SQLAlchemy model dynamically based on current table schema in database :param tablename: table name of the model you want to reflect :return: """ from alembic import op from sqlalchemy.ext.automap import automap...
29.441176
95
0.699301
# -*- coding: utf-8 -*- from contextlib import contextmanager import os @contextmanager def session_scope(): """ Provide a transactional scope around a series of operations using connection of alembic :return: """ from alembic import op from sqlalchemy.orm import sessionmaker session_cls...
0
439
0
0
0
0
0
16
45
fc5bc52c2baaef5ec10c237f379a775512409051
247
py
Python
examples/hat/input.py
pimoroni/automation-hat
dec9c096f7c0082aacb488f62e5885dc4039248d
[ "MIT" ]
118
2016-09-29T14:39:00.000Z
2022-03-20T19:51:40.000Z
examples/hat/input.py
pimoroni/automation-hat
dec9c096f7c0082aacb488f62e5885dc4039248d
[ "MIT" ]
46
2016-10-09T01:02:09.000Z
2022-03-21T12:47:01.000Z
examples/hat/input.py
pimoroni/automation-hat
dec9c096f7c0082aacb488f62e5885dc4039248d
[ "MIT" ]
45
2016-09-20T11:12:18.000Z
2022-01-03T16:53:10.000Z
#!/usr/bin/env python3 import time import automationhat if automationhat.is_automation_hat(): automationhat.light.power.write(1) while True: print(automationhat.input.read()) print(automationhat.analog.read()) time.sleep(0.5)
16.466667
38
0.732794
#!/usr/bin/env python3 import time import automationhat if automationhat.is_automation_hat(): automationhat.light.power.write(1) while True: print(automationhat.input.read()) print(automationhat.analog.read()) time.sleep(0.5)
0
0
0
0
0
0
0
0
0
ee393934b14a1affe1a8369c0009bbebc36b4566
288
py
Python
scripts/parse_ila_trace.py
alexandremoriceau/cva6
5c0dc1971f713c030ea3c9db4d183005e7048598
[ "ECL-2.0", "Apache-2.0", "BSD-3-Clause" ]
784
2018-02-10T06:07:27.000Z
2020-06-14T15:43:18.000Z
scripts/parse_ila_trace.py
alexandremoriceau/cva6
5c0dc1971f713c030ea3c9db4d183005e7048598
[ "ECL-2.0", "Apache-2.0", "BSD-3-Clause" ]
414
2021-06-11T07:22:01.000Z
2022-03-31T22:06:14.000Z
scripts/parse_ila_trace.py
alexandremoriceau/cva6
5c0dc1971f713c030ea3c9db4d183005e7048598
[ "ECL-2.0", "Apache-2.0", "BSD-3-Clause" ]
239
2020-06-17T07:38:08.000Z
2022-03-30T00:29:11.000Z
import csv with open('iladata.csv', 'r') as csvfile: csvreader = csv.reader(csvfile, delimiter=',', quotechar='|') for row in csvreader: if (row[5] == '1'): print(row[3]) if (row[6] == '1'): print(row[4]) # print(', '.join(row[]));
28.8
65
0.489583
import csv with open('iladata.csv', 'r') as csvfile: csvreader = csv.reader(csvfile, delimiter=',', quotechar='|') for row in csvreader: if (row[5] == '1'): print(row[3]) if (row[6] == '1'): print(row[4]) # print(', '.join(row[]));
0
0
0
0
0
0
0
0
0
a79d696bad50474a86f11a8ad861de4b45ef524a
4,247
py
Python
addons/to_paypal_unsupported_currencies/models/payment_acquirer.py
marionumza/vocal_v12
480990e919c9410903e06e7813ee92800bd6a569
[ "Unlicense" ]
null
null
null
addons/to_paypal_unsupported_currencies/models/payment_acquirer.py
marionumza/vocal_v12
480990e919c9410903e06e7813ee92800bd6a569
[ "Unlicense" ]
null
null
null
addons/to_paypal_unsupported_currencies/models/payment_acquirer.py
marionumza/vocal_v12
480990e919c9410903e06e7813ee92800bd6a569
[ "Unlicense" ]
1
2021-05-05T07:59:08.000Z
2021-05-05T07:59:08.000Z
PAYPAL_SUPPORTED_CURRENCIES = [ 'AUD', # Australian dollar 'BRL', # Brazilian real, [2] 'CAD', # Canadian dollar 'CZK', # Czech koruna 'DKK', # Danish krone 'EUR', # Euro 'HKD', # Hong Kong dollar 'HUF', # Hungarian forint [1] 'INR', # Indian rupee [3] 'ILS', # Israeli...
48.261364
165
0.628208
import json from odoo import models, fields, api, _ from odoo.exceptions import ValidationError PAYPAL_SUPPORTED_CURRENCIES = [ 'AUD', # Australian dollar 'BRL', # Brazilian real, [2] 'CAD', # Canadian dollar 'CZK', # Czech koruna 'DKK', # Danish krone 'EUR', # Euro 'HKD', # Hong Ko...
2
2,160
0
834
0
0
0
30
90
b3d7015d537e95c210903860f19c0eb11861ecd3
481
py
Python
OpenTimer/inttest/shell.py
Ace-Ma/LSOracle
6e940906303ef6c2c6b96352f44206567fdd50d3
[ "MIT" ]
null
null
null
OpenTimer/inttest/shell.py
Ace-Ma/LSOracle
6e940906303ef6c2c6b96352f44206567fdd50d3
[ "MIT" ]
null
null
null
OpenTimer/inttest/shell.py
Ace-Ma/LSOracle
6e940906303ef6c2c6b96352f44206567fdd50d3
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import subprocess import sys import cmpt # Usage: python shell.py ot-shell benchmark/ circuit exe=sys.argv[1] dir=sys.argv[2] tgt=sys.argv[3] os.chdir(dir + '/' + tgt) shell = tgt + ".shell" golden = tgt + ".output" output = ".output" # execute the shell to generate timing repo...
17.814815
52
0.700624
#!/usr/bin/env python import os import subprocess import sys import math import cmpt # Usage: python shell.py ot-shell benchmark/ circuit exe=sys.argv[1] dir=sys.argv[2] tgt=sys.argv[3] os.chdir(dir + '/' + tgt) shell = tgt + ".shell" golden = tgt + ".output" output = ".output" # execute the shell to generate...
0
0
0
0
0
0
0
-10
22
c079820ed981f06775f798d94b2bc421cf36c425
4,341
py
Python
tests/test_testing_domain_model.py
parkanaur/flask-dynrbac
8f2d3448b60a44f440813288979da008ee857bc2
[ "MIT" ]
null
null
null
tests/test_testing_domain_model.py
parkanaur/flask-dynrbac
8f2d3448b60a44f440813288979da008ee857bc2
[ "MIT" ]
null
null
null
tests/test_testing_domain_model.py
parkanaur/flask-dynrbac
8f2d3448b60a44f440813288979da008ee857bc2
[ "MIT" ]
null
null
null
def test_addition(session, dmg): """Should add entities to db""" user = dmg.User() session.add(user) session.commit() assert user.id == 1 role = dmg.Role(name='test role') session.add(role) session.commit() assert role.id == 1 def test_autoincrement(session, dmg): """Should ...
32.886364
120
0.697765
def test_addition(session, dmg): """Should add entities to db""" user = dmg.User() session.add(user) session.commit() assert user.id == 1 role = dmg.Role(name='test role') session.add(role) session.commit() assert role.id == 1 def test_autoincrement(session, dmg): """Should ...
0
0
0
0
0
0
0
0
0
5bb9e7ccb0a3d099ad384816ea177c5077f5afc5
540
py
Python
slixmpp/plugins/xep_0047/__init__.py
isabella232/slixmpp
e15e6735f1dbfc66a5d43efe9fa9e7f5c9d1610a
[ "BSD-3-Clause" ]
null
null
null
slixmpp/plugins/xep_0047/__init__.py
isabella232/slixmpp
e15e6735f1dbfc66a5d43efe9fa9e7f5c9d1610a
[ "BSD-3-Clause" ]
1
2021-02-24T07:58:40.000Z
2021-02-24T07:58:40.000Z
slixmpp/plugins/xep_0047/__init__.py
isabella232/slixmpp
e15e6735f1dbfc66a5d43efe9fa9e7f5c9d1610a
[ "BSD-3-Clause" ]
null
null
null
""" Slixmpp: The Slick XMPP Library Copyright (C) 2012 Nathanael C. Fritz, Lance J.T. Stout This file is part of Slixmpp. See the file LICENSE for copying permission. """ from slixmpp.plugins.base import register_plugin from slixmpp.plugins.xep_0047.ibb import XEP_0047 register_plugin(XEP_0047) # ...
24.545455
61
0.783333
""" Slixmpp: The Slick XMPP Library Copyright (C) 2012 Nathanael C. Fritz, Lance J.T. Stout This file is part of Slixmpp. See the file LICENSE for copying permission. """ from slixmpp.plugins.base import register_plugin from slixmpp.plugins.xep_0047 import stanza from slixmpp.plugins.xep_0047.stanza ...
0
0
0
0
0
0
0
97
67
0fde6632dc42ff8a16c4d603d58401dcb5ba606f
53
py
Python
myia/testing/__init__.py
strint/myia
3d00d3fb3df80ab7a264a724226c5f56c6ff1a8a
[ "MIT" ]
222
2019-02-13T07:56:28.000Z
2022-03-28T07:07:54.000Z
myia/testing/__init__.py
strint/myia
3d00d3fb3df80ab7a264a724226c5f56c6ff1a8a
[ "MIT" ]
107
2019-02-12T21:56:39.000Z
2022-03-12T01:08:03.000Z
myia/testing/__init__.py
strint/myia
3d00d3fb3df80ab7a264a724226c5f56c6ff1a8a
[ "MIT" ]
27
2017-11-14T17:58:15.000Z
2019-01-14T01:36:09.000Z
"""Testing utilities, made available for plugins."""
26.5
52
0.735849
"""Testing utilities, made available for plugins."""
0
0
0
0
0
0
0
0
0
ad99f5977427a3657d892bac071b0a4230727aac
2,156
py
Python
database/schemes/easyTest/SRC/settings.py
TonnaMajesty/test
68b24d1f3e8b4d6154c9d896a7fa3e2f99b49a6f
[ "MIT" ]
1
2022-03-23T03:14:41.000Z
2022-03-23T03:14:41.000Z
database/schemes/easyTest/SRC/settings.py
TonnaMajesty/test
68b24d1f3e8b4d6154c9d896a7fa3e2f99b49a6f
[ "MIT" ]
null
null
null
database/schemes/easyTest/SRC/settings.py
TonnaMajesty/test
68b24d1f3e8b4d6154c9d896a7fa3e2f99b49a6f
[ "MIT" ]
null
null
null
''' easyTest ''' # TESTCASE = { 'runType': 'Browser', # (Remote,Browser) 'xmlDir': 'script/config/', # () 'testCaseDir': 'script/testCase/', # () 'filesDir': 'script/files/', # } # PARAMETERIZATION = { 'runTime': 1, # 22 'dataDir': '/script/data/', } # REPORT = { 'isScreenShot': True, # TrueFalse '...
24.5
84
0.670223
''' easyTest全局配置文件 ''' # 测试用例及测试方案相关配置 TESTCASE = { 'runType': 'Browser', # 运行模式(Remote,Browser) 'xmlDir': 'script/config/', # 测试方案配置文件夹路径(支持绝对路径) 'testCaseDir': 'script/testCase/', # 测试用例配置文件夹路径(必须相对于项目根目录) 'filesDir': 'script/files/', # 待上传文件路径 } # 参数化数据相关配置 PARAMETERIZATION = { 'runTime': 1, # 单个场景运行次数(...
1,731
0
0
0
0
0
0
0
0
7b62e95e1d036dbb3d447a34042cd280c9faef41
836
py
Python
proteus/tests/ProjScheme_with_EV/pressure_p.py
acatwithacomputer/proteus
80dfad95da6ab4d18a88a035f55c26b03540a864
[ "MIT" ]
null
null
null
proteus/tests/ProjScheme_with_EV/pressure_p.py
acatwithacomputer/proteus
80dfad95da6ab4d18a88a035f55c26b03540a864
[ "MIT" ]
13
2018-02-08T23:22:59.000Z
2020-12-06T19:40:32.000Z
proteus/tests/ProjScheme_with_EV/pressure_p.py
acatwithacomputer/proteus
80dfad95da6ab4d18a88a035f55c26b03540a864
[ "MIT" ]
1
2020-02-17T03:25:34.000Z
2020-02-17T03:25:34.000Z
from __future__ import absolute_import from proteus.mprans import Pres name = "pressure" LevelModelType = Pres.LevelModel coefficients=Pres.Coefficients(modelIndex=PRESSURE_model, fluidModelIndex=V_model, pressureIncrementModelIndex=PINC_model, ...
26.967742
70
0.681818
from __future__ import absolute_import from builtins import object from math import * from proteus import * from proteus.default_p import * from .NS_convergence import * from proteus.mprans import Pres name = "pressure" LevelModelType = Pres.LevelModel coefficients=Pres.Coefficients(modelIndex=PRESSURE_model, ...
0
0
0
105
0
17
0
21
179
717036d2c6477f23f4feecf31fd429c7ff4661d5
1,050
py
Python
source/tasks/domain/entities.py
ElPapi42/hexagonal-microservice
675f6588c9b150712eb5f4c290c7a3f81b273573
[ "MIT" ]
null
null
null
source/tasks/domain/entities.py
ElPapi42/hexagonal-microservice
675f6588c9b150712eb5f4c290c7a3f81b273573
[ "MIT" ]
null
null
null
source/tasks/domain/entities.py
ElPapi42/hexagonal-microservice
675f6588c9b150712eb5f4c290c7a3f81b273573
[ "MIT" ]
null
null
null
from bson.objectid import ObjectId def generate_objectid(): """Returns ObjectId as str.""" return str(ObjectId())
25
99
0.681905
from enum import Enum from typing import Optional from pydantic import BaseModel, Field, validator from bson.objectid import ObjectId def generate_objectid(): """Returns ObjectId as str.""" return str(ObjectId()) class TaskId(BaseModel): """ Id of a Task. Despites the TaskId value represents an...
0
201
0
556
0
0
0
33
136
7e403cf83e225fa0acb3b081df2828f964cb3fa5
2,511
py
Python
observations/r/galton_families.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
199
2017-07-24T01:34:27.000Z
2022-01-29T00:50:55.000Z
observations/r/galton_families.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
46
2017-09-05T19:27:20.000Z
2019-01-07T09:47:26.000Z
observations/r/galton_families.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
45
2017-07-26T00:10:44.000Z
2022-03-16T20:44:59.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import os from observations.util import maybe_download_and_extract def galton_families(path): """Galton's data on the heights of parents and their children, by child This data set...
29.892857
73
0.710872
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def galton_families(path): """Galton's data on the heights of parents and...
0
0
0
0
0
0
0
-25
67
eed0948e82a293ccdfddce3fa5027027c70324cc
4,032
py
Python
scrapers/scrape_bs.py
zdavatz/covid_19
38d17bf35fcd9b3af3d394b6742bd5f05315bc18
[ "CC-BY-4.0" ]
null
null
null
scrapers/scrape_bs.py
zdavatz/covid_19
38d17bf35fcd9b3af3d394b6742bd5f05315bc18
[ "CC-BY-4.0" ]
null
null
null
scrapers/scrape_bs.py
zdavatz/covid_19
38d17bf35fcd9b3af3d394b6742bd5f05315bc18
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python3 import scrape_common as sc print('BS') # The list of articles is also available on https://www.gd.bs.ch/medienseite/medienmitteilungen.html URL = sc.download("https://www.gd.bs.ch/") URL = sc.filter(r'Tagesbulletin.*Corona', URL) # 2020-03-25, List of sub-articles: """ <a href="/nm/2020-ta...
57.6
411
0.684028
#!/usr/bin/env python3 import scrape_common as sc print('BS') # The list of articles is also available on https://www.gd.bs.ch/medienseite/medienmitteilungen.html URL = sc.download("https://www.gd.bs.ch/") URL = sc.filter(r'Tagesbulletin.*Corona', URL) # 2020-03-25, List of sub-articles: """ <a href="/nm/2020-ta...
40
0
0
0
0
0
0
0
0