hexsha
stringlengths
40
40
size
int64
4
996k
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
245
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
245
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
996k
avg_line_length
float64
1.33
58.2k
max_line_length
int64
2
323k
alphanum_fraction
float64
0
0.97
content_no_comment
stringlengths
0
946k
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
f7254caf0aa3637ad03dd57110d9475938728d0b
301
py
Python
compiler_gym/util/flags/output_dir.py
mostafaelhoushi/CompilerGym
cf11c58333d263b3ebc5ece2110a429e9af499c1
[ "MIT" ]
562
2020-12-21T14:10:20.000Z
2022-03-31T21:23:55.000Z
compiler_gym/util/flags/output_dir.py
mostafaelhoushi/CompilerGym
cf11c58333d263b3ebc5ece2110a429e9af499c1
[ "MIT" ]
433
2020-12-22T03:40:41.000Z
2022-03-31T18:16:17.000Z
compiler_gym/util/flags/output_dir.py
mostafaelhoushi/CompilerGym
cf11c58333d263b3ebc5ece2110a429e9af499c1
[ "MIT" ]
88
2020-12-22T08:22:00.000Z
2022-03-20T19:00:40.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from absl import flags flags.DEFINE_string( "output_dir", None, "The directory to read and write files to.", )
25.083333
65
0.724252
from absl import flags flags.DEFINE_string( "output_dir", None, "The directory to read and write files to.", )
true
true
f7254ce72ce8155285a2f4a9a1febb88f4b64006
3,161
py
Python
leasing/models/basis_of_rent.py
tuomas777/mvj
e9a12e42c399b9fb77fd8fad85fc8f0f6d4ce405
[ "MIT" ]
null
null
null
leasing/models/basis_of_rent.py
tuomas777/mvj
e9a12e42c399b9fb77fd8fad85fc8f0f6d4ce405
[ "MIT" ]
null
null
null
leasing/models/basis_of_rent.py
tuomas777/mvj
e9a12e42c399b9fb77fd8fad85fc8f0f6d4ce405
[ "MIT" ]
null
null
null
from auditlog.registry import auditlog from django.db import models from django.utils.translation import ugettext_lazy as _ from enumfields import EnumField from leasing.enums import PeriodType from .mixins import NameModel, TimeStampedSafeDeleteModel class BasisOfRentPlotType(NameModel): """ In Finnish: To...
35.920455
120
0.691237
from auditlog.registry import auditlog from django.db import models from django.utils.translation import ugettext_lazy as _ from enumfields import EnumField from leasing.enums import PeriodType from .mixins import NameModel, TimeStampedSafeDeleteModel class BasisOfRentPlotType(NameModel): class BasisOfRent(TimeSt...
true
true
f7254d485119f2dd92ad0be5fa608833d0405c1d
38
py
Python
irclogs/__init__.py
dokipen/trac-irclogs-plugin
811aa16fdaf7f6de9bfa6200073f5b33da09fc1a
[ "BSD-3-Clause" ]
null
null
null
irclogs/__init__.py
dokipen/trac-irclogs-plugin
811aa16fdaf7f6de9bfa6200073f5b33da09fc1a
[ "BSD-3-Clause" ]
1
2015-02-26T23:17:12.000Z
2015-03-02T15:03:45.000Z
irclogs/__init__.py
dokipen/trac-irclogs-plugin
811aa16fdaf7f6de9bfa6200073f5b33da09fc1a
[ "BSD-3-Clause" ]
null
null
null
from console import update_irc_search
19
37
0.894737
from console import update_irc_search
true
true
f7254e36b7c014cfeea985736099019756c9cb78
1,026
py
Python
program/experiments/localization/calibrate.py
JankaSvK/thesis
c440ab8242b058f580fdf9d5a1d00708a1696561
[ "MIT" ]
1
2018-11-29T14:13:47.000Z
2018-11-29T14:13:47.000Z
program/experiments/localization/calibrate.py
JankaSvK/thesis
c440ab8242b058f580fdf9d5a1d00708a1696561
[ "MIT" ]
3
2018-04-24T18:30:00.000Z
2018-05-11T23:25:07.000Z
program/experiments/localization/calibrate.py
JankaSvK/thesis
c440ab8242b058f580fdf9d5a1d00708a1696561
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import os from sys import argv if os.name == 'nt': python = "python" else: python = "python3" try: experiment_id = int(argv[1]) except Exception: experiment_id = 63 def command(video1, video2, chessboard): return "{} ../../Main.py --video1={} --video2={} --chessboard={}".forma...
24.428571
112
0.640351
import os from sys import argv if os.name == 'nt': python = "python" else: python = "python3" try: experiment_id = int(argv[1]) except Exception: experiment_id = 63 def command(video1, video2, chessboard): return "{} ../../Main.py --video1={} --video2={} --chessboard={}".format(python, video1, ...
true
true
f7254e6e57d13e131c3fc738bd9c4a2d139d00b0
5,481
py
Python
src/polytopes/run_polychora_examples.py
mohi7solanki/pywonderland
2b9d61a8414d4cfa92d34325e5e2b9b5d501abca
[ "MIT" ]
null
null
null
src/polytopes/run_polychora_examples.py
mohi7solanki/pywonderland
2b9d61a8414d4cfa92d34325e5e2b9b5d501abca
[ "MIT" ]
null
null
null
src/polytopes/run_polychora_examples.py
mohi7solanki/pywonderland
2b9d61a8414d4cfa92d34325e5e2b9b5d501abca
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Render curved 4d polychoron examples ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This script draws uniform polychoron whose vertices lie on the unit sphere S^3 by using stereographic projection to map them into 3d space. :copyright (c) 2018 by Zhao Liang. """ ...
29.95082
85
0.561759
import subprocess from fractions import Fraction import numpy as np from models import Polychora import helpers POV_EXE = "povray" SCENE_FILE = "polychora_curved.pov" IMAGE_SIZE = 600 IMAGE_QUALITY_LEVEL = 11 SUPER_SAMPLING_LEVEL = 7 ANTIALIASING_LE...
true
true
f7254fe63f765868c8428af33d90ac77ae356bbd
7,055
py
Python
deltametrics/sample_data/sample_data.py
amoodie/DeltaMetrics
9b823bea36851adcebc446c8941f8783325b1a4f
[ "MIT" ]
null
null
null
deltametrics/sample_data/sample_data.py
amoodie/DeltaMetrics
9b823bea36851adcebc446c8941f8783325b1a4f
[ "MIT" ]
null
null
null
deltametrics/sample_data/sample_data.py
amoodie/DeltaMetrics
9b823bea36851adcebc446c8941f8783325b1a4f
[ "MIT" ]
null
null
null
import sys import os import pkg_resources import warnings import numpy as np import netCDF4 import pooch from .. import cube from .. import utils # deltametrics version __version__ = utils._get_version() # enusre DeprecationWarning is shown warnings.simplefilter("default") # configure the data registry REGISTRY ...
32.813953
125
0.632034
import sys import os import pkg_resources import warnings import numpy as np import netCDF4 import pooch from .. import cube from .. import utils __version__ = utils._get_version() warnings.simplefilter("default") REGISTRY = pooch.create( path=pooch.os_cache("deltametrics"), base_url='https://github.c...
true
true
f72550174de22fb7301842e0d293f4de18995253
3,836
py
Python
cirq-core/cirq/ops/two_qubit_diagonal_gate_test.py
LLcat1217/Cirq
b88069f7b01457e592ad69d6b413642ef11a56b8
[ "Apache-2.0" ]
null
null
null
cirq-core/cirq/ops/two_qubit_diagonal_gate_test.py
LLcat1217/Cirq
b88069f7b01457e592ad69d6b413642ef11a56b8
[ "Apache-2.0" ]
null
null
null
cirq-core/cirq/ops/two_qubit_diagonal_gate_test.py
LLcat1217/Cirq
b88069f7b01457e592ad69d6b413642ef11a56b8
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Cirq Developers # # 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 ...
31.966667
96
0.676747
import numpy as np import pytest import sympy import cirq @pytest.mark.parametrize( 'gate', ( ( cirq.TwoQubitDiagonalGate([2, 3, 5, 7]), cirq.TwoQubitDiagonalGate([0, 0, 0, 0]), cirq.TwoQubitDiagonalGate([2, 3, 5, sympy.Symbol('a')]), cirq...
true
true
f725507deeef1871cc78aa29f14a4bf893392a8e
3,010
py
Python
mt4forexparser/UniLogger.py
Tim55667757/MT4ForexParser
4aceab05f150cfccc0ad4622c612476e279b68f0
[ "MIT" ]
11
2020-07-23T22:34:07.000Z
2022-03-03T04:42:22.000Z
mt4forexparser/UniLogger.py
Tim55667757/MT4ForexParser
4aceab05f150cfccc0ad4622c612476e279b68f0
[ "MIT" ]
null
null
null
mt4forexparser/UniLogger.py
Tim55667757/MT4ForexParser
4aceab05f150cfccc0ad4622c612476e279b68f0
[ "MIT" ]
4
2021-03-02T08:04:15.000Z
2021-08-24T13:46:35.000Z
# -*- coding: utf-8 -*- # # Author: Timur Gilmullin # This module initialize standard python logging system. import sys import logging.handlers # initialize Main Parent Logger: UniLogger = logging.getLogger("UniLogger") formatString = "%(filename)-20sL:%(lineno)-5d%(levelname)-8s[%(asctime)s] %(message)s" formatte...
29.223301
119
0.68206
import sys import logging.handlers UniLogger = logging.getLogger("UniLogger") formatString = "%(filename)-20sL:%(lineno)-5d%(levelname)-8s[%(asctime)s] %(message)s" formatter = logging.Formatter(formatString) sys.stderr = sys.stdout def SetLevel(vLevel='ERROR'): UniLogger.level = logging.NOTSET if ...
true
true
f72551baa697a8dbad37b7a7ff3d920bbdc9c06b
271
py
Python
Functional Programming/Sum_of_numbers_Recursion.py
youngtech515/PythonScripts
c890c84113ba4e05aea15d1347886dbfb52d3bf9
[ "MIT" ]
null
null
null
Functional Programming/Sum_of_numbers_Recursion.py
youngtech515/PythonScripts
c890c84113ba4e05aea15d1347886dbfb52d3bf9
[ "MIT" ]
null
null
null
Functional Programming/Sum_of_numbers_Recursion.py
youngtech515/PythonScripts
c890c84113ba4e05aea15d1347886dbfb52d3bf9
[ "MIT" ]
null
null
null
print("To print the sum of numbers using recursion") def calculatatesum(num): if(num): a=num+calculatatesum(num-1) return a else: return 0 n=int(input("Enter the Number value:")) print("The Sum of numbers is,",calculatatesum(n))
27.1
53
0.630996
print("To print the sum of numbers using recursion") def calculatatesum(num): if(num): a=num+calculatatesum(num-1) return a else: return 0 n=int(input("Enter the Number value:")) print("The Sum of numbers is,",calculatatesum(n))
true
true
f725525a43e73f257b95eb328de9c2b2b9780b5e
494
py
Python
optoanalysis/optoanalysis/__init__.py
markusrademacher/DataHandling
240c7c8378541cc2624fec049a185646f3016233
[ "MIT" ]
2
2017-07-12T11:18:51.000Z
2018-08-26T10:31:00.000Z
optoanalysis/optoanalysis/__init__.py
markusrademacher/DataHandling
240c7c8378541cc2624fec049a185646f3016233
[ "MIT" ]
7
2017-04-24T18:42:23.000Z
2017-06-20T13:00:09.000Z
optoanalysis/optoanalysis/__init__.py
AshleySetter/optoanalysis
2b24a4176508d5e0e5e8644bb617a34f73b041f7
[ "MIT" ]
3
2017-04-09T19:15:06.000Z
2017-04-28T09:31:32.000Z
""" optoanalysis ============ Package of functions for the Matter-Wave Interferometry group for handling experimental data. """ # init file import os _mypackage_root_dir = os.path.dirname(__file__) _version_file = open(os.path.join(_mypackage_root_dir, 'VERSION')) __version__ = _version_file.read().strip() # th...
19.76
67
0.777328
import os _mypackage_root_dir = os.path.dirname(__file__) _version_file = open(os.path.join(_mypackage_root_dir, 'VERSION')) __version__ = _version_file.read().strip() from .optoanalysis import * import optoanalysis.thermo import optoanalysis.LeCroy import optoanalysis.Saleae
true
true
f72552862a7eea93f641832290eb243900232978
1,055
py
Python
web_audio/helpers.py
SaxAlien/crap-code
bff99bc4501d1c7bc8c169c1b66a2d6bd7ad3494
[ "Apache-2.0" ]
null
null
null
web_audio/helpers.py
SaxAlien/crap-code
bff99bc4501d1c7bc8c169c1b66a2d6bd7ad3494
[ "Apache-2.0" ]
null
null
null
web_audio/helpers.py
SaxAlien/crap-code
bff99bc4501d1c7bc8c169c1b66a2d6bd7ad3494
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Crap class but make code more compact. lmao WARNING! WARNING! HIGH CONCENTRATION OF SHIT! and in future here will be adding more and more methods and classes but i'm not shure """ import os def success(message): return '<div class="alert...
25.731707
98
0.611374
import os def success(message): return '<div class="alert alert-success alert-dismissable">' \ '<button type="button" class="close" data-dismiss="alert">&times;</button>' \ '{}</div>'.format(message) def warning(message): return '<div class="alert alert-danger alert-dismissable">' \...
true
true
f725541a544124a0f547895b485bcf1f5d21572b
1,467
py
Python
problems/pctsp/salesman/pctsp/application.py
AYaddaden/attention-learn-to-route
74c2d6533d9e0faae80fa85f6bee2df2142708ba
[ "MIT" ]
540
2019-02-07T13:52:30.000Z
2022-03-31T12:51:46.000Z
problems/pctsp/salesman/pctsp/application.py
AYaddaden/attention-learn-to-route
74c2d6533d9e0faae80fa85f6bee2df2142708ba
[ "MIT" ]
40
2019-02-06T17:57:11.000Z
2022-03-18T12:18:48.000Z
problems/pctsp/salesman/pctsp/application.py
AYaddaden/attention-learn-to-route
74c2d6533d9e0faae80fa85f6bee2df2142708ba
[ "MIT" ]
227
2019-02-15T09:25:02.000Z
2022-03-27T10:42:21.000Z
# module application.py # # Copyright (c) 2015 Rafael Reis # """ application module - Main module that solves the Prize Collecting Travelling Salesman Problem """ from pctsp.model.pctsp import * from pctsp.model import solution from pctsp.algo.genius import genius from pctsp.algo import ilocal_search as ils from pkg_...
24.04918
93
0.652352
from pctsp.model.pctsp import * from pctsp.model import solution from pctsp.algo.genius import genius from pctsp.algo import ilocal_search as ils from pkg_resources import resource_filename import random INPUT_INSTANCE_FILE = resource_filename('pctsp', 'data/problem_20_100_100_1000.pctsp') def solve_instance(fil...
true
true
f72555b7e4d80fd6f6a428c1e413cc4fa2ac3266
5,723
py
Python
azure-batch/azure/batch/models/cloud_job_schedule.py
jmalobicky/azure-sdk-for-python
61234a3d83f8fb481d1dd2386e54e888864878fd
[ "MIT" ]
1
2018-07-23T08:59:24.000Z
2018-07-23T08:59:24.000Z
azure-batch/azure/batch/models/cloud_job_schedule.py
jmalobicky/azure-sdk-for-python
61234a3d83f8fb481d1dd2386e54e888864878fd
[ "MIT" ]
null
null
null
azure-batch/azure/batch/models/cloud_job_schedule.py
jmalobicky/azure-sdk-for-python
61234a3d83f8fb481d1dd2386e54e888864878fd
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
52.990741
298
0.687227
from msrest.serialization import Model class CloudJobSchedule(Model): _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'display_name': {'key': 'displayName', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'e_tag': {'key': 'eTag', 'type': 'str'}, 'la...
true
true
f725565a4176de2b5beb230d5de6c67dc05f4158
4,574
py
Python
troposphere/iotwireless.py
vasinov/troposphere
db117248dfb0fc500ae9d10db34c42608240bb8d
[ "BSD-2-Clause" ]
null
null
null
troposphere/iotwireless.py
vasinov/troposphere
db117248dfb0fc500ae9d10db34c42608240bb8d
[ "BSD-2-Clause" ]
null
null
null
troposphere/iotwireless.py
vasinov/troposphere
db117248dfb0fc500ae9d10db34c42608240bb8d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2012-2021, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. # # *** Do not modify - this file is autogenerated *** # Resource specification version: 31.0.0 from troposphere import Tags from . import AWSObject, AWSProperty from .validators import boolean, integer...
25.131868
55
0.566463
from troposphere import Tags from . import AWSObject, AWSProperty from .validators import boolean, integer class Destination(AWSObject): resource_type = "AWS::IoTWireless::Destination" props = { "Description": (str, False), "Expression": (str, True), "ExpressionType": (str, ...
true
true
f7255693150e9fa60c4098be227a094b573e4ddb
2,130
py
Python
tests/test_http.py
flome/uproot
eb2ae1ffe6fb2c2ce8cb7cbdc0919d5b51c0ff0f
[ "BSD-3-Clause" ]
null
null
null
tests/test_http.py
flome/uproot
eb2ae1ffe6fb2c2ce8cb7cbdc0919d5b51c0ff0f
[ "BSD-3-Clause" ]
null
null
null
tests/test_http.py
flome/uproot
eb2ae1ffe6fb2c2ce8cb7cbdc0919d5b51c0ff0f
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE import pytest import mock HTTPError = pytest.importorskip('requests.exceptions').HTTPError import uproot FILE = "foriter" LOCAL = "tests/samples/{FILE}.root".format(FILE=FILE) URL = "http://scikit-hep.org/upro...
34.354839
86
0.643662
import pytest import mock HTTPError = pytest.importorskip('requests.exceptions').HTTPError import uproot FILE = "foriter" LOCAL = "tests/samples/{FILE}.root".format(FILE=FILE) URL = "http://scikit-hep.org/uproot/examples/{FILE}.root".format(FILE=FILE) URL_AUTH = "http://scikit-hep.org/uproot/authentication/{FILE}...
true
true
f72557569101118345344ad6a9f06be139d1e4a8
424
py
Python
core/migrations/0036_alter_event_submission_type.py
saggins/lynbrook-app-backend
d5bad6e0742853bb39c5a15d3b7332b7114b671d
[ "MIT" ]
null
null
null
core/migrations/0036_alter_event_submission_type.py
saggins/lynbrook-app-backend
d5bad6e0742853bb39c5a15d3b7332b7114b671d
[ "MIT" ]
1
2022-02-17T07:01:51.000Z
2022-02-17T07:01:51.000Z
core/migrations/0036_alter_event_submission_type.py
saggins/lynbrook-app-backend
d5bad6e0742853bb39c5a15d3b7332b7114b671d
[ "MIT" ]
1
2022-02-17T05:16:58.000Z
2022-02-17T05:16:58.000Z
# Generated by Django 3.2.5 on 2021-08-27 09:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0035_alter_event_code'), ] operations = [ migrations.AlterField( model_name='event', name='submission_type',...
22.315789
85
0.589623
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0035_alter_event_code'), ] operations = [ migrations.AlterField( model_name='event', name='submission_type', field=models.IntegerField(choices=...
true
true
f7255769c302384481f7ccaa713331893763eddb
2,983
py
Python
core/brain/dialog.py
vsilent/smarty-bot
963cba05433be14494ba339343c9903ccab3c37d
[ "MIT" ]
1
2016-10-08T09:01:05.000Z
2016-10-08T09:01:05.000Z
core/brain/dialog.py
vsilent/smarty-bot
963cba05433be14494ba339343c9903ccab3c37d
[ "MIT" ]
1
2019-09-24T09:56:52.000Z
2019-09-24T09:56:52.000Z
core/brain/dialog.py
vsilent/smarty-bot
963cba05433be14494ba339343c9903ccab3c37d
[ "MIT" ]
null
null
null
def start_dialog(text): if text is None: text = recognize_by_google() if text is None: return logging.debug( "You said: " + text ) c = Confirm(text) state = c.get_state( sentence=text ) logging.debug(type(state)) logging.debug(state) if(( state == 0) or (state ...
35.511905
153
0.584982
def start_dialog(text): if text is None: text = recognize_by_google() if text is None: return logging.debug( "You said: " + text ) c = Confirm(text) state = c.get_state( sentence=text ) logging.debug(type(state)) logging.debug(state) if(( state == 0) or (state ...
true
true
f72558e0ae0df4436c838a4cc5685909f6d3e117
711
py
Python
distribute_repo.py
ewhitesides/pulp_operations
b6a3541559e48c717926b245bbbf2dd87638e093
[ "MIT" ]
null
null
null
distribute_repo.py
ewhitesides/pulp_operations
b6a3541559e48c717926b245bbbf2dd87638e093
[ "MIT" ]
1
2021-06-17T04:35:05.000Z
2021-06-17T04:35:05.000Z
distribute_repo.py
ewhitesides/pulp_operations
b6a3541559e48c717926b245bbbf2dd87638e093
[ "MIT" ]
null
null
null
""" script to distribute repos from repo_data.py """ import urllib3 import pulp_operations from repo_data import repo_data #disable ssl warnings for now urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) #release latest version of the repo to distribution 'latest' for os in repo_data: for repo i...
28.44
68
0.729958
import urllib3 import pulp_operations from repo_data import repo_data urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) for os in repo_data: for repo in repo_data[os]: repo_name = f"{os}-{repo}" dist_name = f"{repo_name}-latest" pulp_operations.release(repo_name, 0, di...
true
true
f72558ec957eca8761389e372a0381b0b817ae58
21,798
py
Python
Old/hoop_detection_angle.py
multirotorsociety/SAFMC-19-D2-Autonomous-Drone
fd9f0fae5d7cbf618b327224e06a7f459612b4ca
[ "MIT" ]
6
2019-04-01T02:38:40.000Z
2021-06-05T18:23:06.000Z
Old/hoop_detection_angle.py
multirotorsociety/SAFMC-19-D2-Autonomous-Drone
fd9f0fae5d7cbf618b327224e06a7f459612b4ca
[ "MIT" ]
null
null
null
Old/hoop_detection_angle.py
multirotorsociety/SAFMC-19-D2-Autonomous-Drone
fd9f0fae5d7cbf618b327224e06a7f459612b4ca
[ "MIT" ]
1
2019-09-01T08:58:28.000Z
2019-09-01T08:58:28.000Z
from __future__ import print_function import time import math import thread # Dk imports from pymavlink import mavutil from dronekit import connect, VehicleMode, LocationGlobal, LocationGlobalRelative # Mux and TOF imports import I2CMultiplexer import VL53L1X # CV imports import cv2 import numpy as np from picamer...
34.6
206
0.65006
from __future__ import print_function import time import math import thread from pymavlink import mavutil from dronekit import connect, VehicleMode, LocationGlobal, LocationGlobalRelative import I2CMultiplexer import VL53L1X import cv2 import numpy as np from picamera.array import PiRGBArray from picamera impor...
true
true
f7255a8df81f50ed5c1b02a6f21936c3d0283313
449
py
Python
msg/urls_api.py
paul-wolf/django-stack
7b45b3087659e15d936182b15ba6b07c14549584
[ "MIT" ]
null
null
null
msg/urls_api.py
paul-wolf/django-stack
7b45b3087659e15d936182b15ba6b07c14549584
[ "MIT" ]
null
null
null
msg/urls_api.py
paul-wolf/django-stack
7b45b3087659e15d936182b15ba6b07c14549584
[ "MIT" ]
null
null
null
from django.conf.urls import url, include, patterns from rest_framework import routers from . import views # this gets our Foo model routed router = routers.DefaultRouter() router.register(r'foo', views.FooViewSet) urlpatterns = patterns( '', url(r'^', include(router.urls)), # Foo REST urls url(r'^api-a...
24.944444
87
0.674833
from django.conf.urls import url, include, patterns from rest_framework import routers from . import views router = routers.DefaultRouter() router.register(r'foo', views.FooViewSet) urlpatterns = patterns( '', url(r'^', include(router.urls)), url(r'^api-auth/', include('rest_framework.urls', ...
true
true
f7255b2ec1f0592cd0f12cd48061fd80b46db0c4
1,544
py
Python
src/socialhand/forms.py
GonzaloAvilez/site
10866c826fa0df89f7f25e7392fd0fc8e395f54d
[ "MIT" ]
null
null
null
src/socialhand/forms.py
GonzaloAvilez/site
10866c826fa0df89f7f25e7392fd0fc8e395f54d
[ "MIT" ]
12
2019-10-02T17:18:09.000Z
2022-03-11T23:54:53.000Z
src/socialhand/forms.py
GonzaloAvilez/site
10866c826fa0df89f7f25e7392fd0fc8e395f54d
[ "MIT" ]
null
null
null
from django import forms from crispy_forms.helper import FormHelper from crispy_forms.layout import Layout, Div, Submit, HTML, Button, Row, Field, Fieldset from crispy_forms.bootstrap import InlineField class ContactForm(forms.Form): subject = forms.CharField (required...
33.565217
90
0.654793
from django import forms from crispy_forms.helper import FormHelper from crispy_forms.layout import Layout, Div, Submit, HTML, Button, Row, Field, Fieldset from crispy_forms.bootstrap import InlineField class ContactForm(forms.Form): subject = forms.CharField (required...
true
true
f7255b8e53122ef5294b9fbb88a6f9fa7e69aa5f
12,799
py
Python
python_packages_static/flopy/mf6/modflow/mfgwtsrc.py
usgs/neversink_workflow
acd61435b8553e38d4a903c8cd7a3afc612446f9
[ "CC0-1.0" ]
null
null
null
python_packages_static/flopy/mf6/modflow/mfgwtsrc.py
usgs/neversink_workflow
acd61435b8553e38d4a903c8cd7a3afc612446f9
[ "CC0-1.0" ]
null
null
null
python_packages_static/flopy/mf6/modflow/mfgwtsrc.py
usgs/neversink_workflow
acd61435b8553e38d4a903c8cd7a3afc612446f9
[ "CC0-1.0" ]
null
null
null
# DO NOT MODIFY THIS FILE DIRECTLY. THIS FILE MUST BE CREATED BY # mf6/utils/createpackages.py # FILE created on February 18, 2021 16:23:05 UTC from .. import mfpackage from ..data.mfdatautil import ListTemplateGenerator class ModflowGwtsrc(mfpackage.MFPackage): """ ModflowGwtsrc defines a src package within...
36.464387
79
0.57067
from .. import mfpackage from ..data.mfdatautil import ListTemplateGenerator class ModflowGwtsrc(mfpackage.MFPackage): auxiliary = ListTemplateGenerator(("gwt6", "src", "options", "auxiliary")) ts_filerecord = ListTemplateGenerator( ("gwt6", "src", "options", "ts_filerecord") ) obs_filerec...
true
true
f7255db587da3c1bac8640b99f5f51ab4e48fd2b
1,492
py
Python
hmm/scripts/easy_casino_learn.py
ondrejba/hmm
1e9fe47a6057d93e7c77614016a89d5d46959e97
[ "MIT" ]
null
null
null
hmm/scripts/easy_casino_learn.py
ondrejba/hmm
1e9fe47a6057d93e7c77614016a89d5d46959e97
[ "MIT" ]
null
null
null
hmm/scripts/easy_casino_learn.py
ondrejba/hmm
1e9fe47a6057d93e7c77614016a89d5d46959e97
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from ..easy_casino import Casino from ..hmm_multinoulli import HMMMultinoulli hmm = HMMMultinoulli(Casino.A, Casino.PX, Casino.INIT) # generate sequence seq_length = 300 batch_size = 500 xs_batch = [] zs_batch = [] for j in range(batch_size): casino = Casino()...
20.438356
77
0.678954
import numpy as np import matplotlib.pyplot as plt from ..easy_casino import Casino from ..hmm_multinoulli import HMMMultinoulli hmm = HMMMultinoulli(Casino.A, Casino.PX, Casino.INIT) seq_length = 300 batch_size = 500 xs_batch = [] zs_batch = [] for j in range(batch_size): casino = Casino() xs = [casino....
true
true
f7255dc9372185d8116fca049ef881d946cb5401
5,629
py
Python
test/functional/mempool_persist.py
HunterCanimun/surgeofficial-surge-coin
663dc25517e9045a65a9b1e0993bbaa06d564284
[ "MIT" ]
null
null
null
test/functional/mempool_persist.py
HunterCanimun/surgeofficial-surge-coin
663dc25517e9045a65a9b1e0993bbaa06d564284
[ "MIT" ]
null
null
null
test/functional/mempool_persist.py
HunterCanimun/surgeofficial-surge-coin
663dc25517e9045a65a9b1e0993bbaa06d564284
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or https://www.opensource.org/licenses/mit-license.php. """Test mempool persistence. By default, bitcoind will dump mempool on shutdown and then reload it on st...
45.764228
127
0.693907
from decimal import Decimal import os from test_framework.test_framework import SurgeTestFramework from test_framework.util import ( assert_equal, wait_until, ) class MempoolPersistTest(SurgeTestFramework): def set_test_params(self): self.num_nodes = 3 self.extra_args = [[], ["-persis...
true
true
f7256002b00ab39290e07cbb4bf618fbad591a53
7,106
py
Python
run_tests.py
jamespic/wsgi_benchmark
d5c02fb7530501a46c22765bf3da7c564a68872d
[ "MIT" ]
null
null
null
run_tests.py
jamespic/wsgi_benchmark
d5c02fb7530501a46c22765bf3da7c564a68872d
[ "MIT" ]
null
null
null
run_tests.py
jamespic/wsgi_benchmark
d5c02fb7530501a46c22765bf3da7c564a68872d
[ "MIT" ]
null
null
null
#!/usr/bin/env python import contextlib import docker import subprocess import os.path import sys import time import urllib2 SERVERS = { 'bjoern': ['python', '-m', 'wsgi_benchmark.bjoern_server'], 'cheroot': ['python', '-m', 'wsgi_benchmark.cheroot_server'], 'cheroot_high_concurrency': ['python', '-m', 'ws...
46.444444
175
0.54067
import contextlib import docker import subprocess import os.path import sys import time import urllib2 SERVERS = { 'bjoern': ['python', '-m', 'wsgi_benchmark.bjoern_server'], 'cheroot': ['python', '-m', 'wsgi_benchmark.cheroot_server'], 'cheroot_high_concurrency': ['python', '-m', 'wsgi_benchmark.high_con...
false
true
f7256127fb8bcd69a2e2866490517a48fb8fa051
2,814
py
Python
examples/00-basic-examples/Create_Netlist.py
sparfenyuk/PyAEDT
efe8d219be974fa8a164d84ca9bc5c0e1b32256c
[ "MIT" ]
null
null
null
examples/00-basic-examples/Create_Netlist.py
sparfenyuk/PyAEDT
efe8d219be974fa8a164d84ca9bc5c0e1b32256c
[ "MIT" ]
null
null
null
examples/00-basic-examples/Create_Netlist.py
sparfenyuk/PyAEDT
efe8d219be974fa8a164d84ca9bc5c0e1b32256c
[ "MIT" ]
null
null
null
""" Netlist Example Analysis -------------------------------------------- # This Example shows how to Import Netlist in AEDT Nexxim Netlists supported are HSPICE and, partially, Mentor """ import sys import os ######################################################### # Import Packages # Setup The local path to the...
25.125
134
0.542644
import sys import os
true
true
f725615748650d8ad2045fa8fddd4a9cd2da6c74
2,799
py
Python
torch/fx/experimental/unification/utils.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
60,067
2017-01-18T17:21:31.000Z
2022-03-31T21:37:45.000Z
torch/fx/experimental/unification/utils.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
66,955
2017-01-18T17:21:38.000Z
2022-03-31T23:56:11.000Z
torch/fx/experimental/unification/utils.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
19,210
2017-01-18T17:45:04.000Z
2022-03-31T23:51:56.000Z
def hashable(x): try: hash(x) return True except TypeError: return False def transitive_get(key, d): """ Transitive dict.get >>> d = {1: 2, 2: 3, 3: 4} >>> d.get(1) 2 >>> transitive_get(1, d) 4 """ while hashable(key) and key in d: key = d[key] ...
26.913462
77
0.568775
def hashable(x): try: hash(x) return True except TypeError: return False def transitive_get(key, d): while hashable(key) and key in d: key = d[key] return key def raises(err, lamda): try: lamda() return False except err: return True ...
true
true
f725615e2782bb4b02f5432ef2200adf2c96f1c1
1,971
py
Python
dpaycli/instance.py
dpays/dpay-cli
dfa80898e1faea2cee92ebec6fe04873381bd40f
[ "MIT" ]
null
null
null
dpaycli/instance.py
dpays/dpay-cli
dfa80898e1faea2cee92ebec6fe04873381bd40f
[ "MIT" ]
null
null
null
dpaycli/instance.py
dpays/dpay-cli
dfa80898e1faea2cee92ebec6fe04873381bd40f
[ "MIT" ]
null
null
null
# This Python file uses the following encoding: utf-8 from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from builtins import object import dpaycli as stm class SharedInstance(object): """Singelton for the DPay Insta...
29.863636
80
0.702689
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from builtins import object import dpaycli as stm class SharedInstance(object): instance = None config = {} def shared_dpay_instance(): if not SharedInsta...
true
true
f725625a267ae68f9b9998f841a9d4c496b39647
2,394
py
Python
examples/dfp/v201511/proposal_line_item_service/get_proposal_line_items_for_proposal.py
wbrp/googleads-python-lib
c0f8ce6c4acfe88ce8f913a4f0e0e92b548e1022
[ "Apache-2.0" ]
1
2020-05-23T11:32:32.000Z
2020-05-23T11:32:32.000Z
examples/dfp/v201511/proposal_line_item_service/get_proposal_line_items_for_proposal.py
wbrp/googleads-python-lib
c0f8ce6c4acfe88ce8f913a4f0e0e92b548e1022
[ "Apache-2.0" ]
null
null
null
examples/dfp/v201511/proposal_line_item_service/get_proposal_line_items_for_proposal.py
wbrp/googleads-python-lib
c0f8ce6c4acfe88ce8f913a4f0e0e92b548e1022
[ "Apache-2.0" ]
2
2018-04-20T02:16:33.000Z
2020-11-12T20:58:54.000Z
#!/usr/bin/python # # Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
33.71831
80
0.687552
"""This code example gets all proposal line items that belong to a proposal. To create proposal line items, run create_proposal_line_items.py.""" from googleads import dfp PROPOSAL_ID = 'INSERT_PROPOSAL_ID_HERE' def main(client, proposal_id): proposal_line_item_service = client.GetService( ...
false
true
f72562f7f2fd98b8968e23cb2d33be250c5fd8dd
8,348
py
Python
script/hassfest/requirements.py
basicpail/core
5cc54618c5af3f75c08314bf2375cc7ac40d2b7e
[ "Apache-2.0" ]
1
2020-10-01T13:36:50.000Z
2020-10-01T13:36:50.000Z
script/hassfest/requirements.py
basicpail/core
5cc54618c5af3f75c08314bf2375cc7ac40d2b7e
[ "Apache-2.0" ]
69
2020-08-04T09:03:43.000Z
2022-03-31T06:13:01.000Z
script/hassfest/requirements.py
basicpail/core
5cc54618c5af3f75c08314bf2375cc7ac40d2b7e
[ "Apache-2.0" ]
1
2020-10-26T10:44:32.000Z
2020-10-26T10:44:32.000Z
"""Validate requirements.""" from __future__ import annotations from collections import deque import json import operator import os import re import subprocess import sys from awesomeversion import AwesomeVersion, AwesomeVersionStrategy from stdlib_list import stdlib_list from tqdm import tqdm from homeassistant.con...
28.298305
94
0.622185
from __future__ import annotations from collections import deque import json import operator import os import re import subprocess import sys from awesomeversion import AwesomeVersion, AwesomeVersionStrategy from stdlib_list import stdlib_list from tqdm import tqdm from homeassistant.const import REQUIRED_PYTHON_VER...
true
true
f72563ebf144b5c4ed5d91972f5d809a8a4c52e3
2,010
py
Python
a02_zapatamezaj.py
2019-fall-csc-226/a02-loopy-turtles-loopy-languages-zapatamezaj-a02
0a390e93a2f32ce7dbaaf963e660e1f98fd5741c
[ "MIT" ]
null
null
null
a02_zapatamezaj.py
2019-fall-csc-226/a02-loopy-turtles-loopy-languages-zapatamezaj-a02
0a390e93a2f32ce7dbaaf963e660e1f98fd5741c
[ "MIT" ]
null
null
null
a02_zapatamezaj.py
2019-fall-csc-226/a02-loopy-turtles-loopy-languages-zapatamezaj-a02
0a390e93a2f32ce7dbaaf963e660e1f98fd5741c
[ "MIT" ]
null
null
null
###################################################################### # Author: Jose Zapata Meza # Username: zapatamezaj # Assignment: A02: Loopy Turtle, Loopy Languages # Purpose: Practice using the turtle library and loops ###################################################################### # Acknowledgements: #...
21.157895
75
0.653234
true
true
f72563f0c25147eb28eb5f134aa0a5390efffad7
11,449
py
Python
client_code/Slider/__init__.py
hugetim/anvil-extras
ca83f6ada5149514c2affbe1ab081a4ca677c7e0
[ "MIT" ]
null
null
null
client_code/Slider/__init__.py
hugetim/anvil-extras
ca83f6ada5149514c2affbe1ab081a4ca677c7e0
[ "MIT" ]
null
null
null
client_code/Slider/__init__.py
hugetim/anvil-extras
ca83f6ada5149514c2affbe1ab081a4ca677c7e0
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: MIT # # Copyright (c) 2021 The Anvil Extras project team members listed at # https://github.com/anvilistas/anvil-extras/graphs/contributors # # This software is published at https://github.com/anvilistas/anvil-extras import anvil.js from anvil import HtmlPanel as _HtmlPanel from ..utils._co...
29.507732
97
0.599354
import anvil.js from anvil import HtmlPanel as _HtmlPanel from ..utils._component_helpers import _get_color, _html_injector, _spacing_property from ._anvil_designer import SliderTemplate __version__ = "1.7.1" noui_version = "15.4.0" _html_injector.cdn( f"https://cdn.jsdelivr.net/npm/nouislider@{noui_vers...
true
true
f72564206e9156bd00056bf1ef33a09cb7439d94
338
py
Python
server/twitter/migrations/0004_auto_20200822_2202.py
vanviethieuanh/twitter-clone
bac1be8118514ec8ce169eb0c0f4d5658ab2013a
[ "MIT" ]
1
2021-12-29T00:49:51.000Z
2021-12-29T00:49:51.000Z
server/twitter/migrations/0004_auto_20200822_2202.py
vanviethieuanh/twitter-clone
bac1be8118514ec8ce169eb0c0f4d5658ab2013a
[ "MIT" ]
null
null
null
server/twitter/migrations/0004_auto_20200822_2202.py
vanviethieuanh/twitter-clone
bac1be8118514ec8ce169eb0c0f4d5658ab2013a
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-08-22 15:02 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('twitter', '0003_auto_20200822_2127'), ] operations = [ migrations.AlterUniqueTogether( name='follow', unique_together=set(),...
18.777778
47
0.60355
from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('twitter', '0003_auto_20200822_2127'), ] operations = [ migrations.AlterUniqueTogether( name='follow', unique_together=set(), ), ]
true
true
f72564424a1cdf41e8a72d242dbdc9892b53b527
3,217
py
Python
model/snl_block.py
ustbjdl1021/improved_snl_unet
7f7bf092153e1a535337b80bd1b673eff3ddec52
[ "MIT" ]
null
null
null
model/snl_block.py
ustbjdl1021/improved_snl_unet
7f7bf092153e1a535337b80bd1b673eff3ddec52
[ "MIT" ]
2
2022-03-30T13:05:27.000Z
2022-03-31T13:43:22.000Z
model/snl_block.py
ustbjdl1021/improved_snl_unet
7f7bf092153e1a535337b80bd1b673eff3ddec52
[ "MIT" ]
1
2022-03-31T13:33:30.000Z
2022-03-31T13:33:30.000Z
import torch import torch.nn as nn class ImprovedSNL(nn.Module): def __init__(self, in_channels, transfer_channels, stage_num=2): super(ImprovedSNL, self).__init__() self.in_channels = in_channels self.transfer_channels = transfer_channels self.stage_num = stage_num ...
36.556818
111
0.587193
import torch import torch.nn as nn class ImprovedSNL(nn.Module): def __init__(self, in_channels, transfer_channels, stage_num=2): super(ImprovedSNL, self).__init__() self.in_channels = in_channels self.transfer_channels = transfer_channels self.stage_num = stage_num ...
true
true
f72565ec076f5d92978bba872dc9b48d63e0a69e
10,084
py
Python
regym/rl_algorithms/algorithms/PPO/rnd_loss.py
KnwSondess/Regym
825c7dacf955a3e2f6c658c0ecb879a0ca036c1a
[ "MIT" ]
2
2020-09-13T15:53:20.000Z
2020-12-08T15:57:05.000Z
regym/rl_algorithms/algorithms/PPO/rnd_loss.py
KnwSondess/Regym
825c7dacf955a3e2f6c658c0ecb879a0ca036c1a
[ "MIT" ]
null
null
null
regym/rl_algorithms/algorithms/PPO/rnd_loss.py
KnwSondess/Regym
825c7dacf955a3e2f6c658c0ecb879a0ca036c1a
[ "MIT" ]
1
2021-09-20T13:48:30.000Z
2021-09-20T13:48:30.000Z
from typing import Dict, List import torch import torch.nn.functional as F def compute_loss(states: torch.Tensor, actions: torch.Tensor, next_states: torch.Tensor, log_probs_old: torch.Tensor, ext_returns: torch.Tensor, ext_advant...
61.865031
139
0.673344
from typing import Dict, List import torch import torch.nn.functional as F def compute_loss(states: torch.Tensor, actions: torch.Tensor, next_states: torch.Tensor, log_probs_old: torch.Tensor, ext_returns: torch.Tensor, ext_advant...
true
true
f725663a96725554f28f77d984f7989ab3fbe8af
4,939
py
Python
huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/cluster_cert.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/cluster_cert.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/cluster_cert.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ClusterCert: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is att...
29.224852
100
0.606803
import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ClusterCert: sensitive_list = [] openapi_types = { 'server': 'str', 'certificate_authority_data': 'str', 'insecure_skip_tls_verify': 'bool' } attribute_map = { ...
true
true
f7256728eb65c78928992820c0d53c79800f694d
483
py
Python
app/api/migrations/0002_auto_20210201_1602.py
ingjavierpinilla/magentrack-test
4b5ee34aafbe85c4f536ceafd5efdc9271a26008
[ "MIT" ]
null
null
null
app/api/migrations/0002_auto_20210201_1602.py
ingjavierpinilla/magentrack-test
4b5ee34aafbe85c4f536ceafd5efdc9271a26008
[ "MIT" ]
null
null
null
app/api/migrations/0002_auto_20210201_1602.py
ingjavierpinilla/magentrack-test
4b5ee34aafbe85c4f536ceafd5efdc9271a26008
[ "MIT" ]
null
null
null
# Generated by Django 3.1.6 on 2021-02-01 16:02 import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('api', '0001_initial'), ] operations = [ migrations.AlterField( model_name=...
23
109
0.625259
import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('api', '0001_initial'), ] operations = [ migrations.AlterField( model_name='dataset', name='date', ...
true
true
f72568c0fee6e2b462e73799b21aa117bda8f7a5
1,562
py
Python
sdk/python/pulumi_azure_native/management/v20200501/__init__.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/management/v20200501/__init__.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/management/v20200501/__init__.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: from .get_entity import * from .get_hierarchy_setting import * from .get_management_group import * from .ge...
37.190476
101
0.707426
# Export this package's modules as members: from .get_entity import * from .get_hierarchy_setting import * from .get_management_group import * from .get_management_group_subscription import * from .hierarchy_setting import * from .management_group import * from .management_group_subscription import * from ._inputs ...
true
true
f72569012f6a31830be2670b47bccbad2cee3f8e
4,367
py
Python
vimms_gym/viewer_helper.py
glasgowcompbio/vimms-gym
95cb6fa84ee6e3a64618b7a2a54c3835ad0d7867
[ "MIT" ]
null
null
null
vimms_gym/viewer_helper.py
glasgowcompbio/vimms-gym
95cb6fa84ee6e3a64618b7a2a54c3835ad0d7867
[ "MIT" ]
null
null
null
vimms_gym/viewer_helper.py
glasgowcompbio/vimms-gym
95cb6fa84ee6e3a64618b7a2a54c3835ad0d7867
[ "MIT" ]
null
null
null
import os import sys import numpy as np import streamlit as st from stable_baselines3 import PPO from vimms.ChemicalSamplers import UniformRTAndIntensitySampler, GaussianChromatogramSampler, \ UniformMZFormulaSampler from vimms.Common import POSITIVE from vimms_gym.common import METHOD_PPO, METHOD_TOPN sys.path....
30.971631
95
0.615068
import os import sys import numpy as np import streamlit as st from stable_baselines3 import PPO from vimms.ChemicalSamplers import UniformRTAndIntensitySampler, GaussianChromatogramSampler, \ UniformMZFormulaSampler from vimms.Common import POSITIVE from vimms_gym.common import METHOD_PPO, METHOD_TOPN sys.path....
true
true
f72569bc15c637ff38eb1d46aa97e5e9e29a5669
1,368
py
Python
alexa keyword crawler.py
SRMSE/keyword-crawler
fa97ed1c5c3252eb24dbaaa495fb9ad98e1d7c37
[ "MIT" ]
1
2017-08-23T23:47:32.000Z
2017-08-23T23:47:32.000Z
alexa keyword crawler.py
SRMSE/keyword-crawler
fa97ed1c5c3252eb24dbaaa495fb9ad98e1d7c37
[ "MIT" ]
null
null
null
alexa keyword crawler.py
SRMSE/keyword-crawler
fa97ed1c5c3252eb24dbaaa495fb9ad98e1d7c37
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup as b from pymongo import MongoClient import time from multiprocessing import Pool url = "http://www.alexa.com/siteinfo/" file = open("filtered-domains.txt",'r') client = MongoClient(connect=False) db = client.alexa keyword = db.keyword bcolors={ "HEADER" : '\033[95m', ...
26.307692
150
0.633772
import requests from bs4 import BeautifulSoup as b from pymongo import MongoClient import time from multiprocessing import Pool url = "http://www.alexa.com/siteinfo/" file = open("filtered-domains.txt",'r') client = MongoClient(connect=False) db = client.alexa keyword = db.keyword bcolors={ "HEADER" : '\033[95m', ...
false
true
f7256a59d601a2c803274ba2986fc1dd01ff4e55
5,081
py
Python
samples/add_nic_to_vm.py
jm66/pyvmomi-community-samples
5ca4a50b767500e07b9bce9fba70240bfa963a4e
[ "Apache-2.0" ]
4
2019-05-27T23:36:34.000Z
2020-11-12T17:08:04.000Z
samples/add_nic_to_vm.py
zhangjiahaol/pyvmomi-community-samples
905ec34edfbd151531832e98b6a0748fa6ff5e0e
[ "Apache-2.0" ]
12
2019-04-17T02:47:25.000Z
2021-04-02T09:15:37.000Z
samples/add_nic_to_vm.py
zhangjiahaol/pyvmomi-community-samples
905ec34edfbd151531832e98b6a0748fa6ff5e0e
[ "Apache-2.0" ]
15
2018-04-26T05:18:12.000Z
2021-11-06T04:44:58.000Z
#!/usr/bin/env python """ Written by nickcooper-zhangtonghao Github: https://github.com/nickcooper-zhangtonghao Email: nickcooper-zhangtonghao@opencloud.tech Note: Example code For testing purposes only This code has been released under the terms of the Apache-2.0 license http://opensource.org/licenses/Apache-2.0 """...
30.244048
75
0.605196
from pyVmomi import vim from pyVmomi import vmodl from tools import tasks from pyVim.connect import SmartConnect, SmartConnectNoSSL, Disconnect import atexit import argparse import getpass def get_args(): parser = argparse.ArgumentParser( description='Arguments for talking to vCenter') parser.add_ar...
true
true
f7256ae570b6c12768a5d1a994314b4d86c179d6
894
py
Python
modules/signatures/windows/antiav_srp.py
Yuanmessi/Bold-Falcon
00fcaba0b3d9c462b9d20ecb256ff85db5d119e2
[ "BSD-3-Clause" ]
24
2021-06-21T07:35:37.000Z
2022-03-22T03:33:59.000Z
modules/signatures/windows/antiav_srp.py
Yuanmessi/Bold-Falcon
00fcaba0b3d9c462b9d20ecb256ff85db5d119e2
[ "BSD-3-Clause" ]
3
2021-07-01T08:09:05.000Z
2022-01-28T03:38:36.000Z
modules/signatures/windows/antiav_srp.py
Yuanmessi/Bold-Falcon
00fcaba0b3d9c462b9d20ecb256ff85db5d119e2
[ "BSD-3-Clause" ]
6
2021-06-22T05:32:57.000Z
2022-02-11T02:05:45.000Z
# Copyright (C) 2014 Optiv, Inc. (brad.spengler@optiv.com), Updated 2016 for cuckoo 2.0 # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. from lib.cuckoo.common.abstracts import Signature class AntiAVSRP(Signature): name = "antiav_srp" d...
34.384615
110
0.651007
from lib.cuckoo.common.abstracts import Signature class AntiAVSRP(Signature): name = "antiav_srp" description = "Modifies Software Restriction Policies likely to cripple AV" severity = 3 categories = ["anti-av"] authors = ["Optiv"] minimum = "2.0" ttp = ["T1089"] regkeys_re = [ ...
true
true
f7256b2ee02db620d84d3addaae0bc4e05297053
1,900
py
Python
06_Transformacoes_do_Conjunto_de_Dados/6.6_Projecao_Aleatoria/6.6.1._O_Lema_de_Johnson-Lindenstrauss.py
BrunoBertti/Scikit_Learning
4b9e10ff7909f3728ac1e8bba19f5fd779340bc4
[ "MIT" ]
null
null
null
06_Transformacoes_do_Conjunto_de_Dados/6.6_Projecao_Aleatoria/6.6.1._O_Lema_de_Johnson-Lindenstrauss.py
BrunoBertti/Scikit_Learning
4b9e10ff7909f3728ac1e8bba19f5fd779340bc4
[ "MIT" ]
null
null
null
06_Transformacoes_do_Conjunto_de_Dados/6.6_Projecao_Aleatoria/6.6.1._O_Lema_de_Johnson-Lindenstrauss.py
BrunoBertti/Scikit_Learning
4b9e10ff7909f3728ac1e8bba19f5fd779340bc4
[ "MIT" ]
null
null
null
########## 6.6.1. O lema de Johnson-Lindenstrauss ########## # O principal resultado teórico por trás da eficiência da projeção aleatória é o lema de Johnson-Lindenstrauss (citando a Wikipedia): # Em matemática, o lema de Johnson-Lindenstrauss é um resultado sobre embeddings de baixa distorção de pontos de ...
52.777778
493
0.792105
true
true
f7256c0b18316e9401a8678074fb2dce8d2668b5
2,659
py
Python
ddsp/training/preprocessing.py
jesseengel/ddsp
de195af0a21fba52e6b88c23886c244d8607e49c
[ "Apache-2.0" ]
7
2020-01-18T13:12:52.000Z
2021-06-24T20:32:19.000Z
ddsp/training/preprocessing.py
jesseengel/ddsp
de195af0a21fba52e6b88c23886c244d8607e49c
[ "Apache-2.0" ]
null
null
null
ddsp/training/preprocessing.py
jesseengel/ddsp
de195af0a21fba52e6b88c23886c244d8607e49c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The DDSP Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
32.426829
80
0.699511
from __future__ import absolute_import from __future__ import division from __future__ import print_function import copy import ddsp import gin import tensorflow.compat.v1 as tf hz_to_midi = ddsp.core.hz_to_midi F0_RANGE = ddsp.spectral_ops.F0_RANGE LD_RANGE = ddsp.spectral_ops.LD_RANGE def at_leas...
true
true
f7256c23b14e3bf3204687769f2e778d96ed7ed4
2,818
py
Python
MA cross.py
0xTDF/Quant-Trading-Strategy-Backtesting-Framework
d77089bab3513013d456819e9790e67e44adec8e
[ "MIT" ]
1
2022-03-25T07:50:15.000Z
2022-03-25T07:50:15.000Z
MA cross.py
Elisik/Quant-Trading-Strategy-Backtesting-Framework
d77089bab3513013d456819e9790e67e44adec8e
[ "MIT" ]
null
null
null
MA cross.py
Elisik/Quant-Trading-Strategy-Backtesting-Framework
d77089bab3513013d456819e9790e67e44adec8e
[ "MIT" ]
null
null
null
import backtrader as bt import backtrader.analyzers as bta from datetime import datetime import matplotlib.pyplot as plt import yfinance class MaCrossStrategy(bt.Strategy): # signal generator def __init__(self): ma_fast = bt.ind.SMA(period = 10) ma_slow = bt.ind.SMA(period = 20)...
26.584906
79
0.694109
import backtrader as bt import backtrader.analyzers as bta from datetime import datetime import matplotlib.pyplot as plt import yfinance class MaCrossStrategy(bt.Strategy): def __init__(self): ma_fast = bt.ind.SMA(period = 10) ma_slow = bt.ind.SMA(period = 20) self.cr...
true
true
f7256d283ba52ce9290a4bd6ce811edcc7a1208a
8,082
py
Python
juriscraper/opinions/united_states_backscrapers/federal_appellate/ca5.py
drewsilcock/juriscraper
706a05f739e10f22b81b9bb16767415d810e49d1
[ "BSD-2-Clause" ]
null
null
null
juriscraper/opinions/united_states_backscrapers/federal_appellate/ca5.py
drewsilcock/juriscraper
706a05f739e10f22b81b9bb16767415d810e49d1
[ "BSD-2-Clause" ]
null
null
null
juriscraper/opinions/united_states_backscrapers/federal_appellate/ca5.py
drewsilcock/juriscraper
706a05f739e10f22b81b9bb16767415d810e49d1
[ "BSD-2-Clause" ]
null
null
null
from lxml import html from datetime import datetime, timedelta, date from dateutil.rrule import DAILY, rrule from selenium.common.exceptions import NoSuchElementException from juriscraper.AbstractSite import logger from juriscraper.OpinionSiteWebDriven import OpinionSiteWebDriven class Site(OpinionSiteWebDriven): ...
39.23301
118
0.548627
from lxml import html from datetime import datetime, timedelta, date from dateutil.rrule import DAILY, rrule from selenium.common.exceptions import NoSuchElementException from juriscraper.AbstractSite import logger from juriscraper.OpinionSiteWebDriven import OpinionSiteWebDriven class Site(OpinionSiteWebDriven): ...
true
true
f7256de9d9a438b0f395aac6da42babe3f3800f4
11,937
py
Python
tests/integration/test_polymorphic_parts/test.py
monadbobo/ClickHouse
73b0f8db8c327a1d63cc7ebcc56087a3f9866dae
[ "Apache-2.0" ]
3
2021-09-14T08:36:18.000Z
2022-02-24T02:55:38.000Z
tests/integration/test_polymorphic_parts/test.py
monadbobo/ClickHouse
73b0f8db8c327a1d63cc7ebcc56087a3f9866dae
[ "Apache-2.0" ]
1
2020-04-04T04:25:47.000Z
2020-04-04T04:25:47.000Z
tests/integration/test_polymorphic_parts/test.py
monadbobo/ClickHouse
73b0f8db8c327a1d63cc7ebcc56087a3f9866dae
[ "Apache-2.0" ]
1
2020-05-18T11:31:48.000Z
2020-05-18T11:31:48.000Z
import time import pytest import random import string from helpers.test_tools import TSV from helpers.test_tools import assert_eq_with_retry from helpers.cluster import ClickHouseCluster cluster = ClickHouseCluster(__file__) def get_random_array(): return [random.randint(0, 1000) % 1000 for _ in range(random.ran...
45.387833
170
0.70981
import time import pytest import random import string from helpers.test_tools import TSV from helpers.test_tools import assert_eq_with_retry from helpers.cluster import ClickHouseCluster cluster = ClickHouseCluster(__file__) def get_random_array(): return [random.randint(0, 1000) % 1000 for _ in range(random.ran...
true
true
f7256dea781fbaf1c92c2fd539b3e3cfbad4cd6e
214
py
Python
Lectures/9 - Matlib/test.py
JensRL/PPaNM
a28d9826d24c821cbc35a2e5fb5c478118f1e693
[ "MIT" ]
null
null
null
Lectures/9 - Matlib/test.py
JensRL/PPaNM
a28d9826d24c821cbc35a2e5fb5c478118f1e693
[ "MIT" ]
null
null
null
Lectures/9 - Matlib/test.py
JensRL/PPaNM
a28d9826d24c821cbc35a2e5fb5c478118f1e693
[ "MIT" ]
null
null
null
import math import scipy.integrate as integrate ncalls = 0 def f(x): global ncalls ncalls +=1 return math.log(x)/math.sqrt(x) result = integrate.quad(f,0,1) print("result=", result, "ncalls =",ncalls)
214
214
0.682243
import math import scipy.integrate as integrate ncalls = 0 def f(x): global ncalls ncalls +=1 return math.log(x)/math.sqrt(x) result = integrate.quad(f,0,1) print("result=", result, "ncalls =",ncalls)
true
true
f7256e40446cfaf2d265b8165ba99a61224d4a30
1,336
py
Python
apache2/htdocs/syntax/string4.py
tigerish009/mampstack-8.0.0-0
d4d0550e0d29d850ebd9a2b70c3f16641de0e1bf
[ "Apache-2.0" ]
null
null
null
apache2/htdocs/syntax/string4.py
tigerish009/mampstack-8.0.0-0
d4d0550e0d29d850ebd9a2b70c3f16641de0e1bf
[ "Apache-2.0" ]
null
null
null
apache2/htdocs/syntax/string4.py
tigerish009/mampstack-8.0.0-0
d4d0550e0d29d850ebd9a2b70c3f16641de0e1bf
[ "Apache-2.0" ]
null
null
null
#positional formatting print('to {}.Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry sstandard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries...
222.666667
653
0.797156
print('to {}.Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry sstandard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap in...
true
true
f7256ea03f1ba9c7d22b3e985d8dc7af2edfcdc4
2,525
py
Python
bentoml/adapters/dataframe_output.py
d3m0n-r00t/BentoML
e5c53b821369f5391de9ab3a20ecad5db9e77202
[ "Apache-2.0" ]
null
null
null
bentoml/adapters/dataframe_output.py
d3m0n-r00t/BentoML
e5c53b821369f5391de9ab3a20ecad5db9e77202
[ "Apache-2.0" ]
null
null
null
bentoml/adapters/dataframe_output.py
d3m0n-r00t/BentoML
e5c53b821369f5391de9ab3a20ecad5db9e77202
[ "Apache-2.0" ]
null
null
null
import json from typing import Sequence from bentoml.adapters.json_output import JsonOutput from bentoml.types import InferenceError, InferenceResult, InferenceTask from bentoml.utils.dataframe_util import PANDAS_DATAFRAME_TO_JSON_ORIENT_OPTIONS def df_to_json(result, pandas_dataframe_orient="records"): import p...
33.666667
82
0.65901
import json from typing import Sequence from bentoml.adapters.json_output import JsonOutput from bentoml.types import InferenceError, InferenceResult, InferenceTask from bentoml.utils.dataframe_util import PANDAS_DATAFRAME_TO_JSON_ORIENT_OPTIONS def df_to_json(result, pandas_dataframe_orient="records"): import p...
true
true
f7256eb9c87e025bed52453bc1d07f3c08e79dcc
1,581
py
Python
samples/generated_samples/vmmigration_v1_generated_vm_migration_create_source_sync.py
renovate-bot/python-vmmigration
80a2cf46a21f516899da818a7aec0f2a67222047
[ "Apache-2.0" ]
null
null
null
samples/generated_samples/vmmigration_v1_generated_vm_migration_create_source_sync.py
renovate-bot/python-vmmigration
80a2cf46a21f516899da818a7aec0f2a67222047
[ "Apache-2.0" ]
10
2021-11-18T10:47:48.000Z
2022-03-07T15:48:54.000Z
samples/generated_samples/vmmigration_v1_generated_vm_migration_create_source_sync.py
renovate-bot/python-vmmigration
80a2cf46a21f516899da818a7aec0f2a67222047
[ "Apache-2.0" ]
1
2022-01-29T08:15:02.000Z
2022-01-29T08:15:02.000Z
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
31
85
0.752056
from google.cloud import vmmigration_v1 def sample_create_source(): client = vmmigration_v1.VmMigrationClient() request = vmmigration_v1.CreateSourceRequest( parent="parent_value", source_id="source_id_value", ) operation = client.create_sourc...
true
true
f7256ed5b108211f2458fd64f6a79da2e72b170a
62,996
py
Python
site-packages/sklearn/linear_model/_stochastic_gradient.py
linusg/Pyto
eab3c3e093a8cace53d5b9425d1af2f535d456ee
[ "MIT" ]
2
2020-08-25T13:55:00.000Z
2020-08-25T16:36:03.000Z
site-packages/sklearn/linear_model/_stochastic_gradient.py
linusg/Pyto
eab3c3e093a8cace53d5b9425d1af2f535d456ee
[ "MIT" ]
1
2020-04-25T20:36:07.000Z
2020-04-25T20:36:07.000Z
site-packages/sklearn/linear_model/_stochastic_gradient.py
Wristlebane/Pyto
901ac307b68486d8289105c159ca702318bea5b0
[ "MIT" ]
null
null
null
# Authors: Peter Prettenhofer <peter.prettenhofer@gmail.com> (main author) # Mathieu Blondel (partial_fit support) # # License: BSD 3 clause """Classification and regression using Stochastic Gradient Descent (SGD).""" import numpy as np import warnings from abc import ABCMeta, abstractmethod from joblib imp...
41.254748
79
0.604308
import numpy as np import warnings from abc import ABCMeta, abstractmethod from joblib import Parallel, delayed from ..base import clone, is_classifier from ._base import LinearClassifierMixin, SparseCoefMixin from ._base import make_dataset from ..base import BaseEstimator, RegressorMixin from ..utils import c...
true
true
f7256edb1cd981f4d5a110f018a377b55aa4f7c7
1,246
py
Python
Model prediction/app.py
choudhury722k/English-to-French-translator
e792ce92adbdd3100d73d9d8aebc109cc7c560d7
[ "MIT" ]
null
null
null
Model prediction/app.py
choudhury722k/English-to-French-translator
e792ce92adbdd3100d73d9d8aebc109cc7c560d7
[ "MIT" ]
null
null
null
Model prediction/app.py
choudhury722k/English-to-French-translator
e792ce92adbdd3100d73d9d8aebc109cc7c560d7
[ "MIT" ]
null
null
null
from re import X from flask import Flask,render_template,url_for,request from tensorflow.keras.preprocessing.text import Tokenizer from tensorflow.keras.preprocessing.sequence import pad_sequences from tensorflow.keras import models import numpy as np import pickle french_tokenizer = pickle.load(open('french_tokenize...
31.948718
81
0.719904
from re import X from flask import Flask,render_template,url_for,request from tensorflow.keras.preprocessing.text import Tokenizer from tensorflow.keras.preprocessing.sequence import pad_sequences from tensorflow.keras import models import numpy as np import pickle french_tokenizer = pickle.load(open('french_tokenize...
true
true
f7256eedcf3a758fc0b86618617827425e34c972
438
py
Python
carpyncho2/carpyncho/steps/prepare_pawprint_to_sync.py
carpyncho/yeolde_carpyncho
fba72ebf9d4a3e4e4ea18160310058c6812a0457
[ "BSD-3-Clause" ]
null
null
null
carpyncho2/carpyncho/steps/prepare_pawprint_to_sync.py
carpyncho/yeolde_carpyncho
fba72ebf9d4a3e4e4ea18160310058c6812a0457
[ "BSD-3-Clause" ]
2
2020-06-05T19:37:26.000Z
2020-06-05T19:40:38.000Z
carpyncho2/carpyncho/steps/prepare_pawprint_to_sync.py
carpyncho/yeolde_carpyncho
fba72ebf9d4a3e4e4ea18160310058c6812a0457
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from corral import run from ..models import PawprintXTile class PreparePawprintToSync(run.Step): model = PawprintXTile conditions = [ PawprintXTile.status == "raw", PawprintXTile.tile.has(status="loaded"), PawprintXTile.pawprint.has(stat...
19.909091
51
0.630137
from corral import run from ..models import PawprintXTile class PreparePawprintToSync(run.Step): model = PawprintXTile conditions = [ PawprintXTile.status == "raw", PawprintXTile.tile.has(status="loaded"), PawprintXTile.pawprint.has(status="loaded") ] limit = 500 group...
true
true
f7256fad4dd4f8677f2d6bac3cf8110e20ecf681
423
py
Python
mysite/mysite/development_settings.py
timmahrt/gamecorpus
6ce170f3d590475a320410c9d937039555207ee9
[ "MIT" ]
null
null
null
mysite/mysite/development_settings.py
timmahrt/gamecorpus
6ce170f3d590475a320410c9d937039555207ee9
[ "MIT" ]
null
null
null
mysite/mysite/development_settings.py
timmahrt/gamecorpus
6ce170f3d590475a320410c9d937039555207ee9
[ "MIT" ]
null
null
null
from mysite.common_settings import * SECRET_KEY = "aje#lg$7!t!tc5*i%ittn(to%5#5%vjvi*oc=ib25wx%+##_b+" DEBUG = True ALLOWED_HOSTS = ["*"] # Database # https://docs.djangoproject.com/en/3.1/ref/settings/#databases DATABASES = { "default": { "ENGINE": "django.db.backends.mysql", "NAME": "game_cor...
21.15
65
0.591017
from mysite.common_settings import * SECRET_KEY = "aje#lg$7!t!tc5*i%ittn(to%5#5%vjvi*oc=ib25wx%+##_b+" DEBUG = True ALLOWED_HOSTS = ["*"] S = { "default": { "ENGINE": "django.db.backends.mysql", "NAME": "game_corpus_db", "HOST": "127.0.0.1", "USER": "tmahrt", "PASSWORD":...
true
true
f725707d1175e051257c22b78d93284af9b6061b
4,819
py
Python
catalyst/engines/tests/test_parallel.py
alxmamaev/catalyst
d05120c68fbc5174ff74297d29c0fc00d7e94924
[ "Apache-2.0" ]
1
2021-03-02T12:06:32.000Z
2021-03-02T12:06:32.000Z
catalyst/engines/tests/test_parallel.py
alxmamaev/catalyst
d05120c68fbc5174ff74297d29c0fc00d7e94924
[ "Apache-2.0" ]
null
null
null
catalyst/engines/tests/test_parallel.py
alxmamaev/catalyst
d05120c68fbc5174ff74297d29c0fc00d7e94924
[ "Apache-2.0" ]
null
null
null
# flake8: noqa from typing import Any, Dict, List import logging from tempfile import TemporaryDirectory from pytest import mark import torch from torch.utils.data import DataLoader from catalyst.callbacks import CheckpointCallback, CriterionCallback, OptimizerCallback from catalyst.core.runner import IRunner from c...
34.421429
97
0.573563
from typing import Any, Dict, List import logging from tempfile import TemporaryDirectory from pytest import mark import torch from torch.utils.data import DataLoader from catalyst.callbacks import CheckpointCallback, CriterionCallback, OptimizerCallback from catalyst.core.runner import IRunner from catalyst.engine...
true
true
f72572a5ded8e8384c8775f3509841aff1d8e01a
1,939
py
Python
tests/test_issues/test_issue_25.py
cmungall/PyShEx
43026c4b0393362e770b868794c5d9071e691d6f
[ "CC0-1.0" ]
25
2018-01-11T10:59:16.000Z
2021-07-02T03:44:02.000Z
tests/test_issues/test_issue_25.py
cmungall/PyShEx
43026c4b0393362e770b868794c5d9071e691d6f
[ "CC0-1.0" ]
66
2018-03-12T01:12:02.000Z
2022-03-18T07:56:31.000Z
tests/test_issues/test_issue_25.py
cmungall/PyShEx
43026c4b0393362e770b868794c5d9071e691d6f
[ "CC0-1.0" ]
12
2018-04-06T11:29:40.000Z
2021-12-17T22:48:07.000Z
import os import unittest from contextlib import redirect_stdout, redirect_stderr from io import StringIO from pyshex.shex_evaluator import evaluate_cli data_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'data')) validation_dir = os.path.join(data_dir, 'validation') rdffile = os.path.join(valida...
35.254545
105
0.66426
import os import unittest from contextlib import redirect_stdout, redirect_stderr from io import StringIO from pyshex.shex_evaluator import evaluate_cli data_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'data')) validation_dir = os.path.join(data_dir, 'validation') rdffile = os.path.join(valida...
true
true
f725742c34d7363a4d55d7cc29936dc1953858f7
3,975
py
Python
cpp/build-support/lint_cpp_cli.py
LuoZijun/arrow
8219a8b878d9344fe73e07def34a18a71a8f85a8
[ "CC-BY-3.0", "Apache-2.0", "CC0-1.0" ]
1
2020-09-15T16:47:08.000Z
2020-09-15T16:47:08.000Z
cpp/build-support/lint_cpp_cli.py
LuoZijun/arrow
8219a8b878d9344fe73e07def34a18a71a8f85a8
[ "CC-BY-3.0", "Apache-2.0", "CC0-1.0" ]
3
2018-10-25T13:52:14.000Z
2018-10-27T08:44:27.000Z
cpp/build-support/lint_cpp_cli.py
LuoZijun/arrow
8219a8b878d9344fe73e07def34a18a71a8f85a8
[ "CC-BY-3.0", "Apache-2.0", "CC0-1.0" ]
10
2019-03-18T08:19:16.000Z
2020-09-15T09:05:39.000Z
#!/usr/bin/env python # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "Li...
31.054688
76
0.610063
import argparse import re import os parser = argparse.ArgumentParser( description="Check for illegal headers for C++/CLI applications") parser.add_argument("source_path", help="Path to source code") arguments = parser.parse_args() _STRIP_COMMENT_REGEX = re.compile('(.+)?(?=/...
true
true
f72574687e5a2e271c479e18ac1e881bdf5eae75
578
py
Python
azure-mgmt-consumption/azure/mgmt/consumption/models/consumption_management_client_enums.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
4
2016-06-17T23:25:29.000Z
2022-03-30T22:37:45.000Z
azure-mgmt-consumption/azure/mgmt/consumption/models/consumption_management_client_enums.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
2
2016-09-30T21:40:24.000Z
2017-11-10T18:16:18.000Z
azure-mgmt-consumption/azure/mgmt/consumption/models/consumption_management_client_enums.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
3
2016-05-03T20:49:46.000Z
2017-10-05T21:05:27.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
30.421053
76
0.550173
from enum import Enum class Datagrain(Enum): daily_grain = "daily" monthly_grain = "monthly"
true
true
f725747bf99d90df726266e21ecdd3c5dc730fc5
16,227
py
Python
pyfarm/models/core/mixins.py
guidow/pyfarm-master
d41c8f1eb5bfefb8400d400bcecadf197bcfb80a
[ "Apache-2.0" ]
null
null
null
pyfarm/models/core/mixins.py
guidow/pyfarm-master
d41c8f1eb5bfefb8400d400bcecadf197bcfb80a
[ "Apache-2.0" ]
null
null
null
pyfarm/models/core/mixins.py
guidow/pyfarm-master
d41c8f1eb5bfefb8400d400bcecadf197bcfb80a
[ "Apache-2.0" ]
null
null
null
# No shebang line, this module is meant to be imported # # Copyright 2013 Oliver Palmer # # 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 # # U...
37.21789
81
0.570038
from datetime import datetime from collections import namedtuple try: from httplib import INTERNAL_SERVER_ERROR except ImportError: from http.client import INTERNAL_SERVER_ERROR from sqlalchemy.orm import validates, class_mapper from pyfarm.core.enums import _WorkState, Values, PY2 from pyfa...
true
true
f7257517d39b2f8675741bc3a48ae828e67d5468
495
py
Python
src/commercetools/services/abstract.py
labd/commercetools-python-sdk
d8ec285f08d56ede2e4cad45c74833f5b609ab5c
[ "MIT" ]
15
2018-11-02T14:35:52.000Z
2022-03-16T07:51:44.000Z
src/commercetools/services/abstract.py
lime-green/commercetools-python-sdk
63b77f6e5abe43e2b3ebbf3cdbbe00c7cf80dca6
[ "MIT" ]
84
2018-11-02T12:50:32.000Z
2022-03-22T01:25:54.000Z
src/commercetools/services/abstract.py
lime-green/commercetools-python-sdk
63b77f6e5abe43e2b3ebbf3cdbbe00c7cf80dca6
[ "MIT" ]
13
2019-01-03T09:16:50.000Z
2022-02-15T18:37:19.000Z
import typing from marshmallow.base import SchemaABC if typing.TYPE_CHECKING: from commercetools.client import Client class AbstractService: def __init__(self, client: "Client") -> None: self._client = client self._schemas: typing.Dict[str, SchemaABC] = {} def _serialize_params(self, pa...
27.5
73
0.684848
import typing from marshmallow.base import SchemaABC if typing.TYPE_CHECKING: from commercetools.client import Client class AbstractService: def __init__(self, client: "Client") -> None: self._client = client self._schemas: typing.Dict[str, SchemaABC] = {} def _serialize_params(self, pa...
true
true
f72576ba10ecc45859e387a54131b2e173076e5e
13,744
py
Python
pinpayments/tests/models.py
branchup/django-pinpayments
e342970c6309facf35b804de9994d326abaa094f
[ "Unlicense" ]
null
null
null
pinpayments/tests/models.py
branchup/django-pinpayments
e342970c6309facf35b804de9994d326abaa094f
[ "Unlicense" ]
null
null
null
pinpayments/tests/models.py
branchup/django-pinpayments
e342970c6309facf35b804de9994d326abaa094f
[ "Unlicense" ]
null
null
null
""" Ensure that the models work as intended """ import json from django.conf import settings from django.contrib.auth.models import User from django.test import TestCase from django.test.utils import override_settings from mock import patch from pinpayments.models import ( ConfigError, CustomerToken, PinErr...
39.608069
79
0.621799
import json from django.conf import settings from django.contrib.auth.models import User from django.test import TestCase from django.test.utils import override_settings from mock import patch from pinpayments.models import ( ConfigError, CustomerToken, PinError, PinTransaction ) from requests import Re...
true
true
f72576c2d1acd4d4c339871d110e259e22d8e73b
13,114
py
Python
sdk/python/pulumi_azure_native/network/v20200501/express_route_circuit_authorization.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20200501/express_route_circuit_authorization.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20200501/express_route_circuit_authorization.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
82.477987
6,429
0.753317
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from ._enums import * __all__ = ['ExpressRouteCircuitAuthorization'] class ExpressRouteCircuitAuthorization(pulumi.CustomResource): def __init__(__self__, ...
true
true
f72577237e5fb89fd2d8fbec32f4f79d18801dae
2,616
py
Python
lib/ohdevtools/commands/create-content-xml.py
LukiLeu/loadify
740532324e7f94c7ad1f94f78bdce9bc2575811a
[ "MIT" ]
null
null
null
lib/ohdevtools/commands/create-content-xml.py
LukiLeu/loadify
740532324e7f94c7ad1f94f78bdce9bc2575811a
[ "MIT" ]
null
null
null
lib/ohdevtools/commands/create-content-xml.py
LukiLeu/loadify
740532324e7f94c7ad1f94f78bdce9bc2575811a
[ "MIT" ]
null
null
null
from antglob import ant_glob import json import sys import os import ntpath from xml.sax.saxutils import escape, quoteattr description = "Generates MSBuild fragments for embedding content." # Hide from "go help" for now: not relevant to most projects. command_hidden = True usage_text = """ Creates XML to insert in ...
30.418605
126
0.60474
from antglob import ant_glob import json import sys import os import ntpath from xml.sax.saxutils import escape, quoteattr description = "Generates MSBuild fragments for embedding content." command_hidden = True usage_text = """ Creates XML to insert in a csproj file to embed content. Usage: create-content-xm...
false
true
f725772c43f53c9873559775e2e56aabd5ec8fda
13,185
py
Python
aps/loader/simu.py
LvHang/aps
3e9c8b247e0526481970c28e8af1a6a93cc7f2cc
[ "Apache-2.0" ]
5
2021-07-05T12:21:44.000Z
2021-11-23T08:09:45.000Z
aps/loader/simu.py
LvHang/aps
3e9c8b247e0526481970c28e8af1a6a93cc7f2cc
[ "Apache-2.0" ]
null
null
null
aps/loader/simu.py
LvHang/aps
3e9c8b247e0526481970c28e8af1a6a93cc7f2cc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2020 Jian Wu # License: Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """ Adopt from my another project: https://github.com/funcwj/setk See https://github.com/funcwj/setk/tree/master/doc/data_simu for command line usage """ import argparse import numpy as np from aps.loader...
36.222527
92
0.498597
import argparse import numpy as np from aps.loader.audio import read_audio, add_room_response from aps.opts import StrToBoolAction from aps.const import EPSILON def coeff_snr(sig_pow, ref_pow, snr): return (ref_pow / (sig_pow * 10**(snr / 10) + EPSILON))**0.5 def add_speaker(mix_nsamps, src...
true
true
f7257753ce0834da08cef9848377fb031be44fc6
2,553
py
Python
tests/test_parametric_printer_coverage.py
ka3bhy/wexpect
14a4279579a740ce15743db44228f3b0cf4ee8f4
[ "MIT" ]
52
2019-04-24T14:38:43.000Z
2022-03-08T22:03:11.000Z
tests/test_parametric_printer_coverage.py
ka3bhy/wexpect
14a4279579a740ce15743db44228f3b0cf4ee8f4
[ "MIT" ]
51
2019-05-13T12:15:09.000Z
2021-12-15T14:00:15.000Z
tests/test_parametric_printer_coverage.py
ka3bhy/wexpect
14a4279579a740ce15743db44228f3b0cf4ee8f4
[ "MIT" ]
20
2019-07-15T15:48:31.000Z
2022-03-27T08:55:17.000Z
import wexpect import unittest import sys import os import time from tests import PexpectTestCase @unittest.skipIf(wexpect.spawn_class_name == 'legacy_wexpect', "legacy unsupported") class TestCaseParametricPrinter(PexpectTestCase.PexpectTestCase): def test_all_line_length (self): here = os.path.dirname(o...
36.471429
166
0.613396
import wexpect import unittest import sys import os import time from tests import PexpectTestCase @unittest.skipIf(wexpect.spawn_class_name == 'legacy_wexpect', "legacy unsupported") class TestCaseParametricPrinter(PexpectTestCase.PexpectTestCase): def test_all_line_length (self): here = os.path.dirname(o...
true
true
f725787c40eac809defe6a07fbbbbed9170067b9
3,731
py
Python
contrib/macdeploy/custom_dsstore.py
BufferUnderwhelm/asspennies
919be76d6d4be42fea02af1194df2875b91c85dc
[ "MIT" ]
null
null
null
contrib/macdeploy/custom_dsstore.py
BufferUnderwhelm/asspennies
919be76d6d4be42fea02af1194df2875b91c85dc
[ "MIT" ]
null
null
null
contrib/macdeploy/custom_dsstore.py
BufferUnderwhelm/asspennies
919be76d6d4be42fea02af1194df2875b91c85dc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2013-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import biplist from ds_store import DSStore from mac_alias import Alias import sys output_file = sys.argv...
62.183333
1,817
0.725811
import biplist from ds_store import DSStore from mac_alias import Alias import sys output_file = sys.argv[1] package_name_ns = sys.argv[2] ds = DSStore.open(output_file, 'w+') ds['.']['bwsp'] = { 'ShowStatusBar': False, 'WindowBounds': '{{300, 280}, {500, 343}}', 'ContainerShowSidebar': False, 'Si...
true
true
f72579efb9020b0aeda91f6744f1f71d26ad9971
380
py
Python
yandex_checkout/domain/models/payment_data/payment_data_factory.py
pavel52rus/yandex-checkout-sdk-python
10c8b0ce12712bca675254f2a230f9fc0e1cb9b4
[ "MIT" ]
null
null
null
yandex_checkout/domain/models/payment_data/payment_data_factory.py
pavel52rus/yandex-checkout-sdk-python
10c8b0ce12712bca675254f2a230f9fc0e1cb9b4
[ "MIT" ]
null
null
null
yandex_checkout/domain/models/payment_data/payment_data_factory.py
pavel52rus/yandex-checkout-sdk-python
10c8b0ce12712bca675254f2a230f9fc0e1cb9b4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from yandex_checkout.domain.common.type_factory import TypeFactory from yandex_checkout.domain.models.payment_data.payment_data_class_map import PaymentDataClassMap class PaymentDataFactory(TypeFactory): """ Factory for payment data objects """ def __init__(self): supe...
29.230769
97
0.765789
from yandex_checkout.domain.common.type_factory import TypeFactory from yandex_checkout.domain.models.payment_data.payment_data_class_map import PaymentDataClassMap class PaymentDataFactory(TypeFactory): def __init__(self): super(PaymentDataFactory, self).__init__(PaymentDataClassMap())
true
true
f7257ab79e200ce2c0c75e0ae6d7b38cf586e521
4,649
py
Python
ee/clickhouse/queries/paths/path_event_query.py
thinhnguyenuit/posthog
4758e66790485587d29a617174158d07341342f8
[ "MIT" ]
null
null
null
ee/clickhouse/queries/paths/path_event_query.py
thinhnguyenuit/posthog
4758e66790485587d29a617174158d07341342f8
[ "MIT" ]
null
null
null
ee/clickhouse/queries/paths/path_event_query.py
thinhnguyenuit/posthog
4758e66790485587d29a617174158d07341342f8
[ "MIT" ]
null
null
null
from typing import Any, Dict, Tuple from ee.clickhouse.models.property import get_property_string_expr from ee.clickhouse.queries.event_query import ClickhouseEventQuery from posthog.constants import AUTOCAPTURE_EVENT, PAGEVIEW_EVENT, SCREEN_EVENT from posthog.models.filters.path_filter import PathFilter class PathE...
39.735043
151
0.655195
from typing import Any, Dict, Tuple from ee.clickhouse.models.property import get_property_string_expr from ee.clickhouse.queries.event_query import ClickhouseEventQuery from posthog.constants import AUTOCAPTURE_EVENT, PAGEVIEW_EVENT, SCREEN_EVENT from posthog.models.filters.path_filter import PathFilter class PathE...
true
true
f7257ab8f76526d2fc5780943a2451a7b5e04d54
4,946
py
Python
example_scenes/basic.py
Pow3r5/manim
2972a64342aa5ae72977b444f653b05250ab1f8f
[ "MIT" ]
2
2022-03-31T08:31:00.000Z
2022-03-31T08:31:43.000Z
example_scenes/basic.py
Pow3r5/manim
2972a64342aa5ae72977b444f653b05250ab1f8f
[ "MIT" ]
null
null
null
example_scenes/basic.py
Pow3r5/manim
2972a64342aa5ae72977b444f653b05250ab1f8f
[ "MIT" ]
null
null
null
#!/usr/bin/env python from manim import * # To watch one of these scenes, run the following: # python --quality m manim -p example_scenes.py SquareToCircle # # Use the flag --quality l for a faster rendering at a lower quality. # Use -s to skip to the end and just save the final frame # Use the -p to have preview of...
29.975758
87
0.558229
from manim import * class OpeningManim(Scene): def construct(self): title = Tex(r"This is some \LaTeX") basel = MathTex(r"\sum_{n=1}^\infty \frac{1}{n^2} = \frac{\pi^2}{6}") VGroup(title, basel).arrange(DOWN) self.play( Write(title), FadeIn(bas...
true
true
f7257ab9bbdab0ca1a82849244a703ef451ec023
87,342
py
Python
venv/lib/python3.8/site-packages/vsts/work_item_tracking/v4_1/work_item_tracking_client.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/vsts/work_item_tracking/v4_1/work_item_tracking_client.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/vsts/work_item_tracking/v4_1/work_item_tracking_client.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # ----------------------------------------------------------------...
56.096339
298
0.605722
 from msrest import Serializer, Deserializer from ...vss_client import VssClient from . import models class WorkItemTrackingClient(VssClient): """WorkItemTracking :param str base_url: Service URL :param Authentication creds: Authenticated credentials. """ def __init__(self, ba...
false
true
f7257af7f5369ac97b09687baeec3f79676d59fb
17,484
py
Python
SE4TeC_demo/GUI_function.py
JingweiZuo/SE2TeC
f2aab845aa648e366d0f6917a5d8abfd4d556d13
[ "Apache-2.0" ]
1
2020-05-10T11:23:11.000Z
2020-05-10T11:23:11.000Z
SE4TeC_demo/GUI_function.py
JingweiZuo/SE4TeC
f2aab845aa648e366d0f6917a5d8abfd4d556d13
[ "Apache-2.0" ]
null
null
null
SE4TeC_demo/GUI_function.py
JingweiZuo/SE4TeC
f2aab845aa648e366d0f6917a5d8abfd4d556d13
[ "Apache-2.0" ]
null
null
null
import time import tkinter as tk from tkinter import * import tkinter.filedialog as filedialog from tkinter.filedialog import askopenfilename import utils.utils as util import utils.similarity_measures as sm import SMAP.MatrixProfile as mp import matplotlib matplotlib.use("TkAgg") from matplotlib.backends.backend_tkagg...
42.643902
162
0.623256
import time import tkinter as tk from tkinter import * import tkinter.filedialog as filedialog from tkinter.filedialog import askopenfilename import utils.utils as util import utils.similarity_measures as sm import SMAP.MatrixProfile as mp import matplotlib matplotlib.use("TkAgg") from matplotlib.backends.backend_tkagg...
true
true
f7257b07ee9ab3353bab98ac28e4ae6d47c6bf1c
2,171
py
Python
cifar10/models/repnet.py
NNHieu/loss-landscape
dfe517f23993ffbafea99272026d09e074e50b4f
[ "MIT" ]
null
null
null
cifar10/models/repnet.py
NNHieu/loss-landscape
dfe517f23993ffbafea99272026d09e074e50b4f
[ "MIT" ]
null
null
null
cifar10/models/repnet.py
NNHieu/loss-landscape
dfe517f23993ffbafea99272026d09e074e50b4f
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import matplotlib.pyplot as plt import torch.autograd as autograd from torchvision import datasets, transforms from torch.utils.data import DataLoader import torch.optim as optim import os import argparse class ResNetLayer(nn.Module): ...
30.577465
109
0.607094
import torch import torch.nn as nn import torch.nn.functional as F import matplotlib.pyplot as plt import torch.autograd as autograd from torchvision import datasets, transforms from torch.utils.data import DataLoader import torch.optim as optim import os import argparse class ResNetLayer(nn.Module): ...
true
true
f7257b2056fac589a4b126844ed598c5e63b20c6
635
py
Python
manage.py
nrsharip/iss-web
e8ca66ade3933dfac4795ba7c44e067c26a079e2
[ "MIT" ]
1
2020-09-08T21:47:50.000Z
2020-09-08T21:47:50.000Z
manage.py
nrsharip/iss-web
e8ca66ade3933dfac4795ba7c44e067c26a079e2
[ "MIT" ]
null
null
null
manage.py
nrsharip/iss-web
e8ca66ade3933dfac4795ba7c44e067c26a079e2
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'web_server_moex.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: rais...
28.863636
79
0.686614
import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'web_server_moex.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are you sure it's installed and...
true
true
f7257b772a4fb5328778dcbc7b3b0d836de83e58
20,431
py
Python
beta/spreadtrading/stEngine.py
black0144/vnpy
0d0ea30dad14a0150f7500ff9a62528030321426
[ "MIT" ]
18
2019-02-21T05:42:41.000Z
2022-03-31T10:17:51.000Z
beta/spreadtrading/stEngine.py
black0144/vnpy
0d0ea30dad14a0150f7500ff9a62528030321426
[ "MIT" ]
1
2018-06-12T10:08:24.000Z
2018-06-12T10:08:24.000Z
beta/spreadtrading/stEngine.py
black0144/vnpy
0d0ea30dad14a0150f7500ff9a62528030321426
[ "MIT" ]
5
2017-12-20T09:57:17.000Z
2021-08-01T19:47:14.000Z
# encoding: UTF-8 import json import traceback import shelve import parser import re from vnpy.event import Event from vnpy.trader.vtFunction import getJsonPath, getTempPath from vnpy.trader.vtEvent import (EVENT_TICK, EVENT_TRADE, EVENT_POSITION, EVENT_TIMER, EVENT_ORDER) from vnpy....
34.805792
89
0.467623
import json import traceback import shelve import parser import re from vnpy.event import Event from vnpy.trader.vtFunction import getJsonPath, getTempPath from vnpy.trader.vtEvent import (EVENT_TICK, EVENT_TRADE, EVENT_POSITION, EVENT_TIMER, EVENT_ORDER) from vnpy.trader.vtObject i...
true
true
f7257c269b0dd8b39aab1647dd5c4b9c17e4563f
13,360
py
Python
server/models/postgis/user.py
rustyb/osm-ireland-tasking-manager
958c232ba50ca02e5adbc7541a4b9efa7186bfdc
[ "BSD-2-Clause" ]
null
null
null
server/models/postgis/user.py
rustyb/osm-ireland-tasking-manager
958c232ba50ca02e5adbc7541a4b9efa7186bfdc
[ "BSD-2-Clause" ]
4
2020-03-24T17:47:26.000Z
2021-06-02T00:32:15.000Z
server/models/postgis/user.py
rustyb/osm-ireland-tasking-manager
958c232ba50ca02e5adbc7541a4b9efa7186bfdc
[ "BSD-2-Clause" ]
1
2021-01-30T20:12:18.000Z
2021-01-30T20:12:18.000Z
import geojson import datetime import dateutil.parser from server import db from sqlalchemy import desc, text from server.models.dtos.user_dto import UserDTO, UserMappedProjectsDTO, MappedProject, UserFilterDTO, Pagination, \ UserSearchQuery, UserSearchDTO, ProjectParticipantUser, ListedUser from server.models.post...
44.385382
118
0.643114
import geojson import datetime import dateutil.parser from server import db from sqlalchemy import desc, text from server.models.dtos.user_dto import UserDTO, UserMappedProjectsDTO, MappedProject, UserFilterDTO, Pagination, \ UserSearchQuery, UserSearchDTO, ProjectParticipantUser, ListedUser from server.models.post...
true
true
f7257d2547d1644fe9f677f8883223e1b992288c
7,585
py
Python
mmdet/models/detectors/maskformer.py
ayulockin/mmdetection
6b87ac22b8d9dea8cc28b9ce84909e6c311e6268
[ "Apache-2.0" ]
2
2021-11-27T03:30:42.000Z
2022-01-01T05:14:18.000Z
mmdet/models/detectors/maskformer.py
Bella-ing/mmdetection
70f6d9cfade4a2f0b198e4f64776521d181b28be
[ "Apache-2.0" ]
1
2020-05-20T08:13:44.000Z
2020-05-20T08:13:44.000Z
mmdet/models/detectors/maskformer.py
Bella-ing/mmdetection
70f6d9cfade4a2f0b198e4f64776521d181b28be
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. import mmcv import numpy as np from mmdet.core import INSTANCE_OFFSET from mmdet.core.visualization import imshow_det_bboxes from ..builder import DETECTORS, build_backbone, build_head, build_neck from .single_stage import SingleStageDetector @DETECTORS.register_module...
39.921053
79
0.562162
import mmcv import numpy as np from mmdet.core import INSTANCE_OFFSET from mmdet.core.visualization import imshow_det_bboxes from ..builder import DETECTORS, build_backbone, build_head, build_neck from .single_stage import SingleStageDetector @DETECTORS.register_module() class MaskFormer(SingleStageDetector): ...
true
true
f7257da3da9f350d02208ba89525fe652376caa1
19,232
py
Python
yaldevtools/source_code.py
libyal/libyal
407e4710c9c11000dc45427d72bbdbdc2861c51a
[ "Apache-2.0" ]
176
2015-01-11T01:57:37.000Z
2022-03-30T05:31:33.000Z
yaldevtools/source_code.py
libyal/libyal
407e4710c9c11000dc45427d72bbdbdc2861c51a
[ "Apache-2.0" ]
79
2015-01-07T19:05:32.000Z
2022-01-25T15:19:29.000Z
yaldevtools/source_code.py
libyal/libyal
407e4710c9c11000dc45427d72bbdbdc2861c51a
[ "Apache-2.0" ]
25
2015-07-16T13:29:00.000Z
2022-02-12T08:15:19.000Z
# -*- coding: utf-8 -*- """The source code classes.""" import collections from yaldevtools import definitions class EnumDeclaration(object): """Enumeration type declaration. Attributes: name (str): name. constants (dict[str, str]): constant values per name. """ def __init__(self, name): """Ini...
31.271545
79
0.674085
import collections from yaldevtools import definitions class EnumDeclaration(object): def __init__(self, name): super(EnumDeclaration, self).__init__() self.constants = collections.OrderedDict() self.name = name class FunctionArgument(object): def __init__(self, argument_string): super(Func...
true
true
f7257dbe457fadac40393d1ec3dd31766bbf6237
540
py
Python
sample_app/admin.py
imimran/inline-in-fieldset
c20568904011889001d92024c8881782a84aa00c
[ "MIT" ]
null
null
null
sample_app/admin.py
imimran/inline-in-fieldset
c20568904011889001d92024c8881782a84aa00c
[ "MIT" ]
null
null
null
sample_app/admin.py
imimran/inline-in-fieldset
c20568904011889001d92024c8881782a84aa00c
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Student, Subject class SubjectInline(admin.TabularInline): model = Subject insert_after = 'name' class StudentAdmin(admin.ModelAdmin): fields = ( 'name', 'department', 'gender', ) inlines = [ SubjectInline, ...
16.875
58
0.572222
from django.contrib import admin from .models import Student, Subject class SubjectInline(admin.TabularInline): model = Subject insert_after = 'name' class StudentAdmin(admin.ModelAdmin): fields = ( 'name', 'department', 'gender', ) inlines = [ SubjectInline, ...
true
true
f7257df7d21d92286f4cc0d13478da8406845b2f
26,886
py
Python
zipline/data/resample.py
Code37/zipline
de038dbf584980af4f30822f8e5d306bac2a44cb
[ "Apache-2.0" ]
412
2017-04-30T14:35:47.000Z
2022-03-29T02:58:33.000Z
zipline/data/resample.py
waijay1992/zipline
8beba055aa4211dc2debc5c3083077cbd19d0bbc
[ "Apache-2.0" ]
116
2017-05-15T04:45:45.000Z
2020-05-30T19:09:00.000Z
zipline/data/resample.py
waijay1992/zipline
8beba055aa4211dc2debc5c3083077cbd19d0bbc
[ "Apache-2.0" ]
80
2017-05-03T13:17:33.000Z
2021-02-08T15:42:09.000Z
# Copyright 2016 Quantopian, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
36.6794
79
0.542699
from collections import OrderedDict from abc import ABCMeta, abstractmethod import numpy as np import pandas as pd from six import with_metaclass from zipline.data._resample import ( _minute_to_session_open, _minute_to_session_high, _minute_to_session_low, _minute_to_session_close, _m...
true
true
f725827d5a741e222353b63795ed67c9692af41b
1,201
py
Python
load_testing/ial2_sign_up.locustfile.py
isabella232/identity-loadtest
d915fe5920978672246a1de46b0d9530f7d38fcc
[ "CC0-1.0" ]
null
null
null
load_testing/ial2_sign_up.locustfile.py
isabella232/identity-loadtest
d915fe5920978672246a1de46b0d9530f7d38fcc
[ "CC0-1.0" ]
1
2021-02-24T02:55:22.000Z
2021-02-24T02:55:22.000Z
load_testing/ial2_sign_up.locustfile.py
isabella232/identity-loadtest
d915fe5920978672246a1de46b0d9530f7d38fcc
[ "CC0-1.0" ]
null
null
null
from locust import HttpUser, TaskSet, task, between from common_flows import flow_ial2_proofing, flow_sign_up, flow_helper class IAL2SignUpLoad(TaskSet): # Preload drivers license data license_front = flow_helper.load_fixture("mont-front.jpeg") license_back = flow_helper.load_fixture("mont-back.jpeg") ...
29.292683
70
0.654455
from locust import HttpUser, TaskSet, task, between from common_flows import flow_ial2_proofing, flow_sign_up, flow_helper class IAL2SignUpLoad(TaskSet): license_front = flow_helper.load_fixture("mont-front.jpeg") license_back = flow_helper.load_fixture("mont-back.jpeg") def on_start(self): ...
true
true
f725827e2a3d139f12b578cfd7d4e3af8491e768
927
py
Python
bin/pdbqt2pdb_ref.py
gicsaw/pdbtools
10a9441f0345d34e90ca1c454a6aa460b7da926d
[ "MIT" ]
null
null
null
bin/pdbqt2pdb_ref.py
gicsaw/pdbtools
10a9441f0345d34e90ca1c454a6aa460b7da926d
[ "MIT" ]
null
null
null
bin/pdbqt2pdb_ref.py
gicsaw/pdbtools
10a9441f0345d34e90ca1c454a6aa460b7da926d
[ "MIT" ]
null
null
null
#!/usr/bin/env python import pdbtools.ligand_tools as ligand_tools def main(): import argparse title_line = 'convert pdbqt to pdb using reference pdb file' parser = argparse.ArgumentParser(description=title_line) parser.add_argument('-i', '--input_file', required=True, help='i...
30.9
76
0.629989
import pdbtools.ligand_tools as ligand_tools def main(): import argparse title_line = 'convert pdbqt to pdb using reference pdb file' parser = argparse.ArgumentParser(description=title_line) parser.add_argument('-i', '--input_file', required=True, help='input ligand pdbqt fil...
true
true
f72583f1e1e8e5ca6b7b3190c8fd9abe0893dc59
9,848
py
Python
pysnmp-with-texts/CISCO-HARDWARE-IP-VERIFY-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/CISCO-HARDWARE-IP-VERIFY-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/CISCO-HARDWARE-IP-VERIFY-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 CISCO-HARDWARE-IP-VERIFY-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-HARDWARE-IP-VERIFY-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:59:41 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python vers...
172.77193
2,096
0.792141
Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion, ValueRangeConstraint = mibBuild...
true
true
f72583f3abd30086f322b31d478f793386b37978
1,402
py
Python
plugins/infocenteruri.py
LandGrey/taoman
3ad45823e7af0a8a9ee6e1296446c3a6aab43fe4
[ "MIT" ]
207
2017-05-03T10:31:45.000Z
2022-03-26T09:49:03.000Z
plugins/infocenteruri.py
the8robot/taoman
3ad45823e7af0a8a9ee6e1296446c3a6aab43fe4
[ "MIT" ]
1
2020-03-29T03:28:29.000Z
2020-03-29T04:41:03.000Z
plugins/infocenteruri.py
the8robot/taoman
3ad45823e7af0a8a9ee6e1296446c3a6aab43fe4
[ "MIT" ]
59
2017-05-06T02:43:36.000Z
2022-01-22T12:39:07.000Z
#!/usr/bin/env python # coding:utf-8 # """ Copyright (c) 2017 LandGrey (https://github.com/LandGrey/taoman) License: MIT """ import urllib import requests from lib.fun import crawl_link_handle from lib.config import baidu_base_url, get_head, timeout, baidu_first_pattern, self_pattern, intranet_ip_pattern, \ ip_sim...
38.944444
118
0.599857
import urllib import requests from lib.fun import crawl_link_handle from lib.config import baidu_base_url, get_head, timeout, baidu_first_pattern, self_pattern, intranet_ip_pattern, \ ip_simple_pattern def crawlinfocenter(domain): domains = [] data = {'wd': 'site:{0} 信息化|网络中心'.format(domain)} requ...
true
true
f725848078385894b2570cd95107b891abee18ba
7,574
py
Python
file_hash.py
XVicarious/file_hash
ebab0151dbbd2d162742008d9088ad03a38f495e
[ "MIT" ]
null
null
null
file_hash.py
XVicarious/file_hash
ebab0151dbbd2d162742008d9088ad03a38f495e
[ "MIT" ]
1
2018-10-27T09:02:13.000Z
2018-10-27T09:02:13.000Z
file_hash.py
XVicarious/file_hash
ebab0151dbbd2d162742008d9088ad03a38f495e
[ "MIT" ]
null
null
null
"""Hash your files for easy identification.""" import hashlib import logging import os from builtins import * # noqa pylint: disable=unused-import, redefined-builtin from typing import Dict from flexget import plugin from flexget.event import event from flexget.logger import FlexGetLogger from .cunit import IECUnit...
37.127451
115
0.591761
import hashlib import logging import os from builtins import * from typing import Dict from flexget import plugin from flexget.event import event from flexget.logger import FlexGetLogger from .cunit import IECUnit PLUGIN_ID = 'file_hash' log: FlexGetLogger = logging.getLogger(PLUGIN_ID) class FileHashPlugin(ob...
true
true
f72585050c810ea13194c609b96660990583ebbd
2,046
py
Python
Day-04/part2.py
archanpatkar/advent2021
8e0780cd28b5825af092e4ba8e3d9cd1059bce92
[ "MIT" ]
null
null
null
Day-04/part2.py
archanpatkar/advent2021
8e0780cd28b5825af092e4ba8e3d9cd1059bce92
[ "MIT" ]
null
null
null
Day-04/part2.py
archanpatkar/advent2021
8e0780cd28b5825af092e4ba8e3d9cd1059bce92
[ "MIT" ]
null
null
null
import sys sys.path.append("..") from common import * def parse(d): temp = d.strip().split("\n") first = tuple([int(n) for n in temp[0].strip().split(",")]) second = [] temp2 = [] print(temp) for r in temp[1:]: # print(r) if(len(r) == 0): second.append(tuple(temp2))...
25.575
78
0.451124
import sys sys.path.append("..") from common import * def parse(d): temp = d.strip().split("\n") first = tuple([int(n) for n in temp[0].strip().split(",")]) second = [] temp2 = [] print(temp) for r in temp[1:]: if(len(r) == 0): second.append(tuple(temp2)) ...
true
true
f7258523558bf650489ce11f89d5a70fe2400656
1,042
py
Python
dts_test_project/dts_test_app/migrations/0001_initial.py
pvandegeer/django-tenant-schemas
20c72782cee51a33fd5c56a0af7b2c653c1b6770
[ "MIT" ]
2
2018-08-14T07:37:06.000Z
2018-09-27T11:20:54.000Z
dts_test_project/dts_test_app/migrations/0001_initial.py
pvandegeer/django-tenant-schemas
20c72782cee51a33fd5c56a0af7b2c653c1b6770
[ "MIT" ]
1
2021-01-25T09:48:27.000Z
2021-01-25T09:48:27.000Z
dts_test_project/dts_test_app/migrations/0001_initial.py
pvandegeer/django-tenant-schemas
20c72782cee51a33fd5c56a0af7b2c653c1b6770
[ "MIT" ]
3
2018-08-14T07:37:08.000Z
2021-04-24T07:52:00.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.Create...
28.944444
114
0.56238
from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name...
true
true
f7258581d63de21fec44899869d8d610223ca22b
2,803
py
Python
src/redgrease/cluster.py
jsam/redgrease
245755b34bce287c63abb6624478cdf8189816b6
[ "MIT" ]
null
null
null
src/redgrease/cluster.py
jsam/redgrease
245755b34bce287c63abb6624478cdf8189816b6
[ "MIT" ]
null
null
null
src/redgrease/cluster.py
jsam/redgrease
245755b34bce287c63abb6624478cdf8189816b6
[ "MIT" ]
null
null
null
from typing import Callable, Dict import rediscluster import rediscluster.exceptions import redgrease.client import redgrease.data import redgrease.utils class RedisCluster(rediscluster.RedisCluster): """RedisCluster client class, with support for gears features Behaves exactly like the rediscluster.RedisC...
32.593023
85
0.642526
from typing import Callable, Dict import rediscluster import rediscluster.exceptions import redgrease.client import redgrease.data import redgrease.utils class RedisCluster(rediscluster.RedisCluster): NODES_FLAGS = { **rediscluster.RedisCluster.NODES_FLAGS, **{ ...
true
true
f72587485c282a74d27d67de475830aad98af691
1,316
py
Python
elpips/util.py
niopeng/elpips
385012a2ee614c75a1631546c391039af85744f4
[ "BSD-2-Clause" ]
88
2019-06-13T10:42:26.000Z
2022-03-30T07:36:20.000Z
elpips/util.py
niopeng/elpips
385012a2ee614c75a1631546c391039af85744f4
[ "BSD-2-Clause" ]
4
2019-11-13T23:11:33.000Z
2021-07-21T11:04:08.000Z
elpips/util.py
niopeng/elpips
385012a2ee614c75a1631546c391039af85744f4
[ "BSD-2-Clause" ]
18
2019-06-10T16:31:10.000Z
2022-01-04T03:48:57.000Z
import tensorflow as tf import numpy as np def switch_case_cond(cases, default_case): if cases: condition, effect = cases[0] return tf.cond(condition, effect, lambda: switch_case_cond(cases[1:], default_case)) return default_case() def switch_case_where(cases, default_case): if cases: condition, effect = c...
25.803922
126
0.715046
import tensorflow as tf import numpy as np def switch_case_cond(cases, default_case): if cases: condition, effect = cases[0] return tf.cond(condition, effect, lambda: switch_case_cond(cases[1:], default_case)) return default_case() def switch_case_where(cases, default_case): if cases: condition, effect = c...
true
true
f72587bcc4673fe9fd1a8a3ffec34ab4d833f88b
5,113
py
Python
src/estimagic/benchmarking/run_benchmark.py
PaulBehler/estimagic
c14f743986262d508e55738c90737cb504fe987b
[ "MIT" ]
7
2019-05-11T07:19:46.000Z
2019-05-31T07:03:13.000Z
src/estimagic/benchmarking/run_benchmark.py
PaulBehler/estimagic
c14f743986262d508e55738c90737cb504fe987b
[ "MIT" ]
14
2019-05-04T14:15:52.000Z
2019-06-10T11:45:27.000Z
src/estimagic/benchmarking/run_benchmark.py
PaulBehler/estimagic
c14f743986262d508e55738c90737cb504fe987b
[ "MIT" ]
1
2019-05-21T08:44:37.000Z
2019-05-21T08:44:37.000Z
"""Functions to create, run and visualize optimization benchmarks. TO-DO: - Add other benchmark sets: - finish medium scale problems from https://arxiv.org/pdf/1710.11005.pdf, Page 34. - add scalar problems from https://github.com/AxelThevenot - Add option for deterministic noise or wiggle. """ from pathlib i...
37.050725
88
0.643067
from pathlib import Path import numpy as np from estimagic import batch_evaluators from estimagic.logging.read_log import read_optimization_histories from estimagic.optimization.optimize import minimize def run_benchmark( problems, optimize_options, logging_directory, *, batch_evaluator="joblib",...
true
true
f725895b361675e864ed1a5ce6a8bc79a831c085
6,172
py
Python
Data_Handling/Data_analyze.py
KristofferLM96/TsetlinMachine-GO
926091fc70042abe5a67230932398bdab2c46328
[ "MIT" ]
2
2020-02-27T16:22:08.000Z
2020-03-22T11:04:35.000Z
Data_Handling/Data_analyze.py
KristofferLM96/TsetlinMachine-GO
926091fc70042abe5a67230932398bdab2c46328
[ "MIT" ]
null
null
null
Data_Handling/Data_analyze.py
KristofferLM96/TsetlinMachine-GO
926091fc70042abe5a67230932398bdab2c46328
[ "MIT" ]
null
null
null
# ----------------------------------------------- # ................. LIBRARIES ................... # ----------------------------------------------- import glob import os import time import numpy as np # ----------------------------------------------- # ............. GLOBAL VARIABLES ................ # -------------...
31.814433
108
0.487362
import glob import os import time import numpy as np name = "100_9x9Aya" file_name = name + "_binary.txt" binary_path = "Data/Binary/" + file_name original_path = "/home/kristoffer/Documents/Data/Original/9x9_10k_r104_144x20k/*" encoding = "UTF-8" multiple_files = True unique_list = [] original_list = [] ...
true
true
f725898cfbcf257a6620878c85d91d75a4f7b6bd
11,001
py
Python
SBaaS_rnasequencing/stage01_rnasequencing_genesCountTable_io.py
dmccloskey/SBaaS_rnasequencing
521ad0b671b0bca02e9cebfc1b372f2265955418
[ "MIT" ]
null
null
null
SBaaS_rnasequencing/stage01_rnasequencing_genesCountTable_io.py
dmccloskey/SBaaS_rnasequencing
521ad0b671b0bca02e9cebfc1b372f2265955418
[ "MIT" ]
null
null
null
SBaaS_rnasequencing/stage01_rnasequencing_genesCountTable_io.py
dmccloskey/SBaaS_rnasequencing
521ad0b671b0bca02e9cebfc1b372f2265955418
[ "MIT" ]
null
null
null
#system import json #sbaas from .stage01_rnasequencing_genesCountTable_query import stage01_rnasequencing_genesCountTable_query from .stage01_rnasequencing_analysis_query import stage01_rnasequencing_analysis_query from SBaaS_base.sbaas_template_io import sbaas_template_io # Resources from io_utilities.base_importData...
50.463303
248
0.634942
import json from .stage01_rnasequencing_genesCountTable_query import stage01_rnasequencing_genesCountTable_query from .stage01_rnasequencing_analysis_query import stage01_rnasequencing_analysis_query from SBaaS_base.sbaas_template_io import sbaas_template_io from io_utilities.base_importData import base_importData ...
true
true
f7258a45bcc7583012e19070d9419ded10110a6e
2,480
py
Python
redunlive/utils.py
nmaekawa/redunlive
3f1830d605c46a300d028a32b564d803964f2384
[ "Apache-2.0" ]
null
null
null
redunlive/utils.py
nmaekawa/redunlive
3f1830d605c46a300d028a32b564d803964f2384
[ "Apache-2.0" ]
null
null
null
redunlive/utils.py
nmaekawa/redunlive
3f1830d605c46a300d028a32b564d803964f2384
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import re import sys import platform import requests from requests.auth import HTTPBasicAuth from . import __version__ from . import log def clean_name( name ): """ replaces non-alpha with underscores '_' and set the string to lower case """ return re.sub( '[^0-9a-zA-Z]+...
32.207792
80
0.594355
import re import sys import platform import requests from requests.auth import HTTPBasicAuth from . import __version__ from . import log def clean_name( name ): return re.sub( '[^0-9a-zA-Z]+', '_', name ).lower() def pull_data( url, creds=None): headers = { 'User-Agent': default_useragent(),...
true
true
f7258af14dcf0fa82efc690560fcea365ab3ef09
4,999
py
Python
cameras_to_albums.py
brandoconnor/flickr-album-per-camera
358c90cded12c6c9ecb9f8ae289e005f172d30e2
[ "Apache-2.0" ]
null
null
null
cameras_to_albums.py
brandoconnor/flickr-album-per-camera
358c90cded12c6c9ecb9f8ae289e005f172d30e2
[ "Apache-2.0" ]
1
2016-02-12T02:25:19.000Z
2016-02-13T00:07:46.000Z
cameras_to_albums.py
brandoconnor/flickr-album-per-camera
358c90cded12c6c9ecb9f8ae289e005f172d30e2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ A simple script to organize photos into albums named by their camera source. For me, this is useful for cycling through only high quality photos on my TV hooked up to a chromecast. """ import argparse import flickrapi def auth_flickr(api_key, api_secret): """Authenticate user to flick...
46.719626
114
0.595319
import argparse import flickrapi def auth_flickr(api_key, api_secret): flickr = flickrapi.FlickrAPI(api_key, api_secret, format='parsed-json') flickr.authenticate_via_browser(perms='write') return flickr def get_user_id(flickr, user): user_data = flickr.people.findByUsername(username=user) r...
true
true
f7258c968558839fb8aa4aaba0600d037324ede1
2,204
py
Python
cheritest/trunk/tests/alu/test_msub_ex.py
tupipa/beri
cef1b41d52592cfa7454ddf59f9f2994e447cd66
[ "Apache-2.0" ]
36
2015-05-29T16:47:19.000Z
2022-02-08T21:16:26.000Z
cheritest/trunk/tests/alu/test_msub_ex.py
tupipa/beri
cef1b41d52592cfa7454ddf59f9f2994e447cd66
[ "Apache-2.0" ]
1
2015-10-14T13:05:21.000Z
2015-10-19T20:34:03.000Z
cheritest/trunk/tests/alu/test_msub_ex.py
tupipa/beri
cef1b41d52592cfa7454ddf59f9f2994e447cd66
[ "Apache-2.0" ]
15
2015-06-11T07:10:58.000Z
2021-06-18T05:14:54.000Z
#- # Copyright (c) 2015 Michael Roe # All rights reserved. # # This software was developed by the University of Cambridge Computer # Laboratory as part of the Rigorous Engineering of Mainstream Systems (REMS) # project, funded by EPSRC grant EP/K008528/1. # # @BERI_LICENSE_HEADER_START@ # # Licensed to BERI Open System...
41.584906
166
0.748185
from beritest_tools import BaseBERITestCase from nose.plugins.attrib import attr class test_msub_ex(BaseBERITestCase): @attr('ignorebadex') @attr('madd') def test_msub_ex_1(self): self.assertRegisterEqual(self.MIPS.a0, 0xfffffffffffffffa, "MSUB of a value that was not a ...
true
true
f7258cce35cf6a9ce718c2c71ffc2151fcba6ee2
498
py
Python
contentsummary/urls.py
Bobstin/itcsummary
259d8f64e415a1c7cbc926752c717e307c09953f
[ "MIT" ]
null
null
null
contentsummary/urls.py
Bobstin/itcsummary
259d8f64e415a1c7cbc926752c717e307c09953f
[ "MIT" ]
5
2021-02-27T13:23:58.000Z
2021-09-22T17:39:19.000Z
contentsummary/urls.py
Bobstin/itcsummary
259d8f64e415a1c7cbc926752c717e307c09953f
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url(r'^next/(?P<priornumber>[0-9]+)/$', views.nextSession, name='nextSession'), url(r'^all/$', views.allSessions, name='allSessions'), url(r'^allpt1/$', views.allSessionspt1, name='allSessionspt1'), url(r'^allpt2/$', views.allSession...
41.5
99
0.670683
from django.conf.urls import url from . import views urlpatterns = [ url(r'^next/(?P<priornumber>[0-9]+)/$', views.nextSession, name='nextSession'), url(r'^all/$', views.allSessions, name='allSessions'), url(r'^allpt1/$', views.allSessionspt1, name='allSessionspt1'), url(r'^allpt2/$', views.allSession...
true
true
f7258cd44fa3033315e86b9b007b80c34183601d
71,980
py
Python
nova/compute/resource_tracker.py
aspiers/nova
e8b6b0bc78ec229803d1d27f8a4706e2c425bd77
[ "Apache-2.0" ]
1
2021-12-27T00:47:30.000Z
2021-12-27T00:47:30.000Z
nova/compute/resource_tracker.py
aspiers/nova
e8b6b0bc78ec229803d1d27f8a4706e2c425bd77
[ "Apache-2.0" ]
null
null
null
nova/compute/resource_tracker.py
aspiers/nova
e8b6b0bc78ec229803d1d27f8a4706e2c425bd77
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
46.408769
79
0.621367
import collections import copy from keystoneauth1 import exceptions as ks_exc import os_resource_classes as orc from oslo_log import log as logging from oslo_serialization import jsonutils import retrying from nova.compute import claims from nova.compute import monitors from nova.compute import stats a...
true
true
f7258d9ad8ec1ffdd9a1d4a476dabdc315bbf560
5,448
py
Python
synthesizer/models/custom_decoder.py
Khizar-Ali/Lip2Wav
07f056b3468ca660823830680bf25bdd42034f9e
[ "MIT" ]
541
2020-05-14T05:56:31.000Z
2022-03-30T03:34:55.000Z
synthesizer/models/custom_decoder.py
Khizar-Ali/Lip2Wav
07f056b3468ca660823830680bf25bdd42034f9e
[ "MIT" ]
36
2020-05-14T06:00:31.000Z
2022-03-10T06:13:44.000Z
synthesizer/models/custom_decoder.py
Khizar-Ali/Lip2Wav
07f056b3468ca660823830680bf25bdd42034f9e
[ "MIT" ]
123
2020-05-19T02:43:47.000Z
2022-03-26T11:28:13.000Z
from __future__ import absolute_import, division, print_function import collections import tensorflow as tf from synthesizer.models.helpers import TacoTestHelper, TacoTrainingHelper from tensorflow.contrib.seq2seq.python.ops import decoder from tensorflow.contrib.seq2seq.python.ops import helper as helper_py from tenso...
36.810811
101
0.752019
from __future__ import absolute_import, division, print_function import collections import tensorflow as tf from synthesizer.models.helpers import TacoTestHelper, TacoTrainingHelper from tensorflow.contrib.seq2seq.python.ops import decoder from tensorflow.contrib.seq2seq.python.ops import helper as helper_py from tenso...
true
true
f7258e0a7c9afac5477c470a223587a4b47a9d4e
2,566
py
Python
run_mndo.py
andersx/fitmndod
45030f820545cf030dbed0acaf196a5ee20da6f8
[ "MIT" ]
null
null
null
run_mndo.py
andersx/fitmndod
45030f820545cf030dbed0acaf196a5ee20da6f8
[ "MIT" ]
null
null
null
run_mndo.py
andersx/fitmndod
45030f820545cf030dbed0acaf196a5ee20da6f8
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # # This is free and unencumbered software released into the public domain. # # Anyone is free to copy, modify, publish, use, compile, sell, or # distribute this software, either in source code form or as a compiled # binary, for any purpose, commercial or non-commercial, and by any # means. # # ...
27.591398
73
0.696025
import numpy as np from scipy.optimize import minimize from numpy.linalg import norm import os from copy import deepcopy import threading import subprocess from matplotlib import pyplot import time import seaborn as sns import pandas as pd def run_mndo99_nodisk(): output1 = [] ...
false
true
f7258fa1fd9ffacbfd6a1a0cc0f2cd988adbdb32
3,381
py
Python
Server_Code/database.py
PUT-PTM/2019_SmartAttendance
cab58f3f355c07d3dfd4c73c8adb4c7bbf6d676c
[ "MIT" ]
1
2019-03-13T16:00:32.000Z
2019-03-13T16:00:32.000Z
Server_Code/database.py
PUT-PTM/2019_SmartAttendance
cab58f3f355c07d3dfd4c73c8adb4c7bbf6d676c
[ "MIT" ]
null
null
null
Server_Code/database.py
PUT-PTM/2019_SmartAttendance
cab58f3f355c07d3dfd4c73c8adb4c7bbf6d676c
[ "MIT" ]
1
2021-07-10T08:27:21.000Z
2021-07-10T08:27:21.000Z
from datetime import datetime import json from pathlib import Path import pymssql config_json: dict = json.loads(Path('config.json').read_text()) # Connecting to database def connect(): global config_json # Connect to Microsoft SQL server conn = pymssql.connect( server=config_json['server'], ...
25.613636
91
0.540964
from datetime import datetime import json from pathlib import Path import pymssql config_json: dict = json.loads(Path('config.json').read_text()) def connect(): global config_json conn = pymssql.connect( server=config_json['server'], user=config_json['user'], password=config_js...
true
true