hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
99ad31a570e6a197a0120ef9a5d2d4c35cd9929e
656
py
Python
apiserver/alembic/versions/201809281954_1415fb3084f1_make_usernames_case_insensitive_unique.py
johnnykwwang/Halite-III
dd16463f1f13d652e7172e82687136f2217bb427
[ "MIT" ]
2
2018-11-15T14:04:26.000Z
2018-11-19T01:54:01.000Z
apiserver/alembic/versions/201809281954_1415fb3084f1_make_usernames_case_insensitive_unique.py
johnnykwwang/Halite-III
dd16463f1f13d652e7172e82687136f2217bb427
[ "MIT" ]
5
2021-02-08T20:26:47.000Z
2022-02-26T04:28:33.000Z
apiserver/alembic/versions/201809281954_1415fb3084f1_make_usernames_case_insensitive_unique.py
johnnykwwang/Halite-III
dd16463f1f13d652e7172e82687136f2217bb427
[ "MIT" ]
1
2018-11-22T14:58:12.000Z
2018-11-22T14:58:12.000Z
"""Make usernames case-insensitive unique Revision ID: 1415fb3084f1 Revises: a37aed225eff Create Date: 2018-09-28 19:54:51.798510+00:00 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = '1415fb3084f1' down_revision = 'a3...
23.428571
77
0.75
fefd6d96956c20996a159d5b9c31074be05b6bb9
340
py
Python
exercicios/PycharmProjects/exepython/ex028.py
Ojhowribeiro/PythonProjects
a058c0e090a7b96714bbd942c5c03664e4f3744f
[ "MIT" ]
null
null
null
exercicios/PycharmProjects/exepython/ex028.py
Ojhowribeiro/PythonProjects
a058c0e090a7b96714bbd942c5c03664e4f3744f
[ "MIT" ]
null
null
null
exercicios/PycharmProjects/exepython/ex028.py
Ojhowribeiro/PythonProjects
a058c0e090a7b96714bbd942c5c03664e4f3744f
[ "MIT" ]
null
null
null
from random import randint from time import sleep num = randint(0, 5) print('-' * 25) num2 = int((input('Digite um numero de 0 a 5 e teste sua sorte!: '))) print('PROCESSANDO...') sleep(2) if num2 == num: print('voce acertou!!') else: print('voce errou!!, try again') print('O numero sorteado foi {}'.format(nu...
21.25
69
0.641176
88947715420e3bd9344267cd9cedf3ecf09cb4a2
13,735
py
Python
rdr_service/main.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
39
2017-10-13T19:16:27.000Z
2021-09-24T16:58:21.000Z
rdr_service/main.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
312
2017-09-08T15:42:13.000Z
2022-03-23T18:21:40.000Z
rdr_service/main.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
19
2017-09-15T13:58:00.000Z
2022-02-07T18:33:20.000Z
"""The main API definition file. This defines the APIs and the handlers for the APIs. All responses are JSON. """ # pylint: disable=unused-import import rdr_service.activate_debugger import logging from flask import got_request_exception, Response from flask_restful import Api from sqlalchemy.exc import DBAPIError f...
35.768229
116
0.741973
cc3761d14604a48914947bbcc023a0e5406b9b97
8,699
py
Python
pattern/text/nl/__init__.py
aexeagmbh/pattern
a65a77393785a3682ce74da4e60689ffb1076ea8
[ "BSD-3-Clause" ]
null
null
null
pattern/text/nl/__init__.py
aexeagmbh/pattern
a65a77393785a3682ce74da4e60689ffb1076ea8
[ "BSD-3-Clause" ]
null
null
null
pattern/text/nl/__init__.py
aexeagmbh/pattern
a65a77393785a3682ce74da4e60689ffb1076ea8
[ "BSD-3-Clause" ]
null
null
null
#### PATTERN | NL ################################################################################## # Copyright (c) 2010 University of Antwerp, Belgium # Author: Tom De Smedt <tom@organisms.be> # License: BSD (see LICENSE.txt for details). # http://www.clips.ua.ac.be/pages/pattern ####################################...
34.935743
100
0.567766
3369cf5b6277321b0d77f918c4ef69b33b43f14f
16,255
py
Python
kitsune/users/models.py
Whoerr/kitsune
2428573b4920a824c3e712b8a4870f8c1ada8f64
[ "BSD-3-Clause" ]
null
null
null
kitsune/users/models.py
Whoerr/kitsune
2428573b4920a824c3e712b8a4870f8c1ada8f64
[ "BSD-3-Clause" ]
8
2021-06-05T00:08:10.000Z
2022-03-12T00:56:24.000Z
kitsune/users/models.py
Whoerr/kitsune
2428573b4920a824c3e712b8a4870f8c1ada8f64
[ "BSD-3-Clause" ]
null
null
null
import logging import re import time from datetime import datetime from django.conf import settings from django.contrib.auth.models import User from django.db import models from django.utils.translation import ugettext as _ from django.utils.translation import ugettext_lazy as _lazy from timezone_field import TimeZone...
33.515464
99
0.636727
8a8c38cd46485294edabf8b7cb95adaa6c40998d
24,527
py
Python
openpharmacophore/screening/screening.py
Daniel-Ibarrola/OpenPharmacophore
63919046e9e6ef69f8749629841440e37e5ccb4f
[ "MIT" ]
null
null
null
openpharmacophore/screening/screening.py
Daniel-Ibarrola/OpenPharmacophore
63919046e9e6ef69f8749629841440e37e5ccb4f
[ "MIT" ]
null
null
null
openpharmacophore/screening/screening.py
Daniel-Ibarrola/OpenPharmacophore
63919046e9e6ef69f8749629841440e37e5ccb4f
[ "MIT" ]
null
null
null
# OpenPharmacophore from openpharmacophore.io.mol_suppliers import smiles_mol_generator, smi_has_header_and_id, mol2_mol_generator from openpharmacophore.algorithms.alignment import apply_radii_to_bounds, transform_embeddings from openpharmacophore._private_tools.exceptions import NoMatchesError, OpenPharmacophoreIOErr...
39.623586
162
0.563216
870f8aee130f0e8aef04b371fce26b594e3645ce
6,262
py
Python
mmtbx/monomer_library/tst_superpose_ideal.py
hbrunie/cctbx_project
2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5
[ "BSD-3-Clause-LBNL" ]
null
null
null
mmtbx/monomer_library/tst_superpose_ideal.py
hbrunie/cctbx_project
2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5
[ "BSD-3-Clause-LBNL" ]
null
null
null
mmtbx/monomer_library/tst_superpose_ideal.py
hbrunie/cctbx_project
2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5
[ "BSD-3-Clause-LBNL" ]
1
2020-02-04T15:39:06.000Z
2020-02-04T15:39:06.000Z
from __future__ import absolute_import, division, print_function import sys from libtbx import easy_run pdbs = {'4udx_sf4.pdb' : ''' HETATM 9499 FE1 SF4 X1001 39.663 2.346 22.723 1.00 6.06 FE HETATM 9500 FE2 SF4 X1001 42.157 2.138 23.788 1.00 5.97 FE HETATM 9501 FE3 SF4 X1001 ...
44.728571
78
0.507825
9256c55ac73b4ccb1e133e2f8f1a18c5b992ac03
15,027
py
Python
numpy_demo/matrixlib/tests/test_defmatrix.py
mpmkp2020/numpy_demo
796262e06c84b7e9aa446b244a3faf3891d9ece1
[ "BSD-3-Clause" ]
null
null
null
numpy_demo/matrixlib/tests/test_defmatrix.py
mpmkp2020/numpy_demo
796262e06c84b7e9aa446b244a3faf3891d9ece1
[ "BSD-3-Clause" ]
null
null
null
numpy_demo/matrixlib/tests/test_defmatrix.py
mpmkp2020/numpy_demo
796262e06c84b7e9aa446b244a3faf3891d9ece1
[ "BSD-3-Clause" ]
null
null
null
import collections.abc import numpy_demo as np from numpy_demo import matrix, asmatrix, bmat from numpy_demo.testing import ( assert_, assert_equal, assert_almost_equal, assert_array_equal, assert_array_almost_equal, assert_raises ) from numpy_demo.linalg import matrix_power from numpy_demo.matrixlib impor...
33.099119
79
0.498436
a542c7e2ec6a387d4792e7c8e8d62b4ac1dad243
4,377
py
Python
1h_accum/model.py
mio7c7/deep_crs_him8
9f4faec1526f4eda8cd859a8cbae133470d79eb9
[ "Apache-2.0" ]
3
2019-03-25T08:59:58.000Z
2021-01-15T11:38:38.000Z
1h_accum/model.py
mio7c7/deep_crs_him8
9f4faec1526f4eda8cd859a8cbae133470d79eb9
[ "Apache-2.0" ]
null
null
null
1h_accum/model.py
mio7c7/deep_crs_him8
9f4faec1526f4eda8cd859a8cbae133470d79eb9
[ "Apache-2.0" ]
9
2019-03-13T06:10:10.000Z
2020-11-17T08:23:04.000Z
from tensorflow.keras import backend as K from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Dropout, BatchNormalization from tensorflow.keras.optimizers import Adam, SGD, RMSprop from tensorflow.keras.utils import multi_gpu_model import numpy as np import sys import itertools de...
40.155963
133
0.628741
787f62a95d2a8c51dd7babec1b8da20a6e15a8ac
260
py
Python
Section3/L2 Scalar/Scalar1.6.py
Mohit-Sharma1/Takenmind_Internship_assignments
7099ae3a70fca009f6298482e90e988124868148
[ "MIT" ]
null
null
null
Section3/L2 Scalar/Scalar1.6.py
Mohit-Sharma1/Takenmind_Internship_assignments
7099ae3a70fca009f6298482e90e988124868148
[ "MIT" ]
null
null
null
Section3/L2 Scalar/Scalar1.6.py
Mohit-Sharma1/Takenmind_Internship_assignments
7099ae3a70fca009f6298482e90e988124868148
[ "MIT" ]
null
null
null
from __future__ import division import numpy as np array1= np.array([[1,2,3,4],[5,6,7,8]]) print array1 #multiplication array2=array1*array1 print array2 #exp multiplication array3=array1**3 print array3 #subtraction array4=array1-array1 print array4
11.818182
39
0.765385
176ab1c36a46ad520463794876703dc3ccd2ef2c
3,888
py
Python
Datasets/Terrain/us_ned.py
jdgomezmo/gee
7016c47ee902dbf60b1aeb6319424c61c1107345
[ "MIT" ]
1
2020-11-16T22:07:42.000Z
2020-11-16T22:07:42.000Z
Datasets/Terrain/us_ned.py
jdgomezmo/gee
7016c47ee902dbf60b1aeb6319424c61c1107345
[ "MIT" ]
null
null
null
Datasets/Terrain/us_ned.py
jdgomezmo/gee
7016c47ee902dbf60b1aeb6319424c61c1107345
[ "MIT" ]
null
null
null
# %% """ <table class="ee-notebook-buttons" align="left"> <td><a target="_blank" href="https://github.com/giswqs/earthengine-py-notebooks/tree/master/Datasets/Terrain/us_ned.ipynb"><img width=32px src="https://www.tensorflow.org/images/GitHub-Mark-32px.png" /> View source on GitHub</a></td> <td><a target="_bla...
48.6
1,021
0.743313
6a1585978181bded6363d2f4df0bf2e91baf39bd
12,986
py
Python
selfdrive/car/toyota/interface.py
Yeongjae/openpilot
9d6c503185940c272f6ecef479ae1e09c29b86b1
[ "MIT" ]
null
null
null
selfdrive/car/toyota/interface.py
Yeongjae/openpilot
9d6c503185940c272f6ecef479ae1e09c29b86b1
[ "MIT" ]
null
null
null
selfdrive/car/toyota/interface.py
Yeongjae/openpilot
9d6c503185940c272f6ecef479ae1e09c29b86b1
[ "MIT" ]
null
null
null
#!/usr/bin/env python from common.realtime import sec_since_boot from cereal import car, log from selfdrive.config import Conversions as CV from selfdrive.controls.lib.drive_helpers import EventTypes as ET, create_event from selfdrive.controls.lib.vehicle_model import VehicleModel from selfdrive.car.toyota.carstate imp...
38.996997
133
0.685507
7ef06ac825c97afde52ad9de9a084e438e0e5691
7,005
py
Python
gitlab4iphm/models.py
skirill/gitlab4iphm
db44879c82560cea93b3460da415865038f768ca
[ "MIT" ]
null
null
null
gitlab4iphm/models.py
skirill/gitlab4iphm
db44879c82560cea93b3460da415865038f768ca
[ "MIT" ]
null
null
null
gitlab4iphm/models.py
skirill/gitlab4iphm
db44879c82560cea93b3460da415865038f768ca
[ "MIT" ]
null
null
null
import io from .config import get_config from .utils import perform_request class MilestoneNotes(object): """ Release notes for all issues in GitLab that pertain to a particular milestone. """ def __init__(self, config_path, milestone): self.conf = get_config(config_path) self.headers...
42.97546
118
0.558315
34230c28fcf3aa68dbde4854417359f1551d029d
6,050
py
Python
trainml/cli/dataset.py
trainML/trainml-cli
3065ed4cacf415964bcfc8c3854dd8acbc3729c5
[ "MIT" ]
1
2021-02-11T16:08:05.000Z
2021-02-11T16:08:05.000Z
trainml/cli/dataset.py
trainML/trainml-cli
3065ed4cacf415964bcfc8c3854dd8acbc3729c5
[ "MIT" ]
1
2021-05-04T00:20:28.000Z
2021-07-07T16:21:35.000Z
trainml/cli/dataset.py
trainML/trainml-cli
3065ed4cacf415964bcfc8c3854dd8acbc3729c5
[ "MIT" ]
null
null
null
import click from trainml.cli import cli, pass_config, search_by_id_name def pretty_size(num): s = (" B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB") n = 0 while num > 1023: num = num / 1024 n += 1 return f"{num:.2f} {s[n]}" @cli.group() @pass_config def dataset(config):...
25.965665
80
0.581488
6ff84e6fd1f58fd76626734099cd8d7e4294f88d
2,514
py
Python
tests/test_formatters.py
pyexcel/pyexcel-xlsxr
80bd1e45e69a7fa880ff8402d59fcb4a61cd8721
[ "BSD-3-Clause" ]
4
2019-11-29T21:00:30.000Z
2021-07-08T02:14:28.000Z
tests/test_formatters.py
pyexcel/pyexcel-xlsxr
80bd1e45e69a7fa880ff8402d59fcb4a61cd8721
[ "BSD-3-Clause" ]
7
2018-08-25T13:31:09.000Z
2022-02-02T05:16:55.000Z
tests/test_formatters.py
pyexcel/pyexcel-xlsxr
80bd1e45e69a7fa880ff8402d59fcb4a61cd8721
[ "BSD-3-Clause" ]
1
2019-11-13T09:20:39.000Z
2019-11-13T09:20:39.000Z
import os from textwrap import dedent import pyexcel as pe from nose.tools import eq_ class TestDateFormat: def test_reading_date_format(self): """ date time 25/12/14 11:11:11 25/12/14 12:12:12 01/01/15 13:13:13 0.0 0.0 """ import datetime...
27.032258
79
0.493636
2d67b459e8e9ec5b13e3e680ae1084e1ba904ac7
66
py
Python
settings.py
hkotkanen/home-infoboard
de9fc3681bc82633f18cebab524ec6cd7f2ff522
[ "MIT" ]
null
null
null
settings.py
hkotkanen/home-infoboard
de9fc3681bc82633f18cebab524ec6cd7f2ff522
[ "MIT" ]
null
null
null
settings.py
hkotkanen/home-infoboard
de9fc3681bc82633f18cebab524ec6cd7f2ff522
[ "MIT" ]
null
null
null
host = 'localhost' port = 8086 user = '' password = '' dbname = ''
13.2
18
0.590909
e137a3042acb458214220b419e74636c808906f3
11,548
py
Python
pymysql/cursors.py
bluetib/PyMySQL
32edc54ac7eba01b789e8ef0175f8262f0c81012
[ "MIT" ]
1
2015-07-14T15:39:40.000Z
2015-07-14T15:39:40.000Z
pymysql/cursors.py
bluetib/PyMySQL
32edc54ac7eba01b789e8ef0175f8262f0c81012
[ "MIT" ]
3
2015-02-20T09:32:31.000Z
2015-03-10T11:11:30.000Z
itdchelper/pymysql/cursors.py
itdc/sublimetext-itdchelper
c36c9ebdf4b05c02c846f32d2665734da4fa3661
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function, absolute_import from ._compat import range_type from .err import ( Warning, Error, InterfaceError, DataError, DatabaseError, OperationalError, IntegrityError, InternalError, NotSupportedError, ProgrammingError) class Cursor(object): ''' ...
31.126685
91
0.592397
1622ee0bc7d1dd8676737b281f2abf265c5276b9
2,407
py
Python
scripts/gpx-filter-by-target-area.py
Gumix/miscellaneous
cecf044ba495c3a0cab38c949fe1bf382b559b30
[ "MIT" ]
null
null
null
scripts/gpx-filter-by-target-area.py
Gumix/miscellaneous
cecf044ba495c3a0cab38c949fe1bf382b559b30
[ "MIT" ]
null
null
null
scripts/gpx-filter-by-target-area.py
Gumix/miscellaneous
cecf044ba495c3a0cab38c949fe1bf382b559b30
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ This script allows to find GPX tracks that intersect the target area """ import os import math import argparse import xml.etree.ElementTree as ET def distance(p1, p2): lon1 = math.radians(float(p1['lon'])) lat1 = math.radians(float(p1['lat'])) lon2 = p2['lon'] lat2 = p2['la...
30.0875
116
0.605318
15d3cef647330534a991311ddf345cc0bc39f591
1,509
py
Python
Data Tools/data_plotter.py
arthursdays/toolbox
d69b3fcdb54e662076f49961620a73c09e96f95c
[ "MIT" ]
null
null
null
Data Tools/data_plotter.py
arthursdays/toolbox
d69b3fcdb54e662076f49961620a73c09e96f95c
[ "MIT" ]
null
null
null
Data Tools/data_plotter.py
arthursdays/toolbox
d69b3fcdb54e662076f49961620a73c09e96f95c
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import os def plotandsave(filedir): datafile = open(filedir) lines = datafile.readlines() str = '' for line in lines: str += line groups = str.split("\n\n") x=[] y1=[] y2=[] y3=[] y4=[] print(groups[:-1]) for group in groups[:-1]...
30.18
95
0.58118
305598444c6b657f918957ab08a3fa7e86c27fa6
1,664
py
Python
sample/garuda_dir/sample_core_rpc.py
dhilipsiva/garuda
a1b1fdcf08ca0a808459bb21ea0b58d9673af64d
[ "MIT" ]
22
2018-07-21T06:00:04.000Z
2020-12-02T03:23:11.000Z
sample/garuda_dir/sample_core_rpc.py
chr1043086360/garuda
a1b1fdcf08ca0a808459bb21ea0b58d9673af64d
[ "MIT" ]
10
2020-02-11T23:04:56.000Z
2021-07-30T11:22:28.000Z
sample/garuda_dir/sample_core_rpc.py
chr1043086360/garuda
a1b1fdcf08ca0a808459bb21ea0b58d9673af64d
[ "MIT" ]
1
2019-11-20T01:14:12.000Z
2019-11-20T01:14:12.000Z
# DO NOT EDIT THIS FILE MANUALLY # THIS FILE IS AUTO-GENERATED # MANUAL CHANGES WILL BE DISCARDED # PLEASE READ GARUDA DOCS from garuda_dir.garuda_pb2 import Article, Void # NOQA from garuda_dir.sample_core_crud import ( # NOQA read_article, delete_article, create_article, update_article, read_art...
29.192982
66
0.631611
6e7ebd903eff58631aa81d64323c7d433a1e50ea
739
py
Python
pc/adminx.py
RainYang0925/testcase_web
6698190c426be56bfc54e92b6f99a3de335d5e82
[ "CC-BY-4.0" ]
7
2017-08-03T08:02:11.000Z
2021-02-22T02:25:03.000Z
pc/adminx.py
kian11/testcase_web
6698190c426be56bfc54e92b6f99a3de335d5e82
[ "CC-BY-4.0" ]
null
null
null
pc/adminx.py
kian11/testcase_web
6698190c426be56bfc54e92b6f99a3de335d5e82
[ "CC-BY-4.0" ]
null
null
null
import xadmin from pc.models import * # Register your models here. class PCTestCaseAdmin(object): list_display = ('case_id', 'case_name', 'url', 'name', 'action','value', 'expected', 'actual', 'result', 'state') search_fields = ('case_id', 'case_name', 'url', 'name', 'action', 'value', ...
33.590909
78
0.715832
48a2a9c9108c07ddcc2896073365f81793a3e692
1,161
py
Python
NBADataDownloader.py
thyer/NBA_ML
7fb64bda45640d003842084eb296f9037a5b6720
[ "Apache-2.0" ]
null
null
null
NBADataDownloader.py
thyer/NBA_ML
7fb64bda45640d003842084eb296f9037a5b6720
[ "Apache-2.0" ]
null
null
null
NBADataDownloader.py
thyer/NBA_ML
7fb64bda45640d003842084eb296f9037a5b6720
[ "Apache-2.0" ]
null
null
null
import sys import requests import json def main(): if len(sys.argv) < 2: print('ARG 1: NBA Stats api key') return apikey = sys.argv[1] download_player_stats(apikey) #download_teams(apikey) return def download_teams(apikey): test = "https://probasketballapi.com/teams?api_key=...
25.8
113
0.612403
7780460350aae50efeec68f3c5081699d58c6b37
4,903
py
Python
src/simmate/database/base_data_types/calculation_nested.py
jacksund/simmate
0b29704540574e11b711f7b44e2cb7740141ebb4
[ "BSD-3-Clause" ]
9
2021-12-21T02:58:21.000Z
2022-01-25T14:00:06.000Z
src/simmate/database/base_data_types/calculation_nested.py
jacksund/simmate
0b29704540574e11b711f7b44e2cb7740141ebb4
[ "BSD-3-Clause" ]
51
2022-01-01T15:59:58.000Z
2022-03-26T21:25:42.000Z
src/simmate/database/base_data_types/calculation_nested.py
jacksund/simmate
0b29704540574e11b711f7b44e2cb7740141ebb4
[ "BSD-3-Clause" ]
7
2022-01-01T03:44:32.000Z
2022-03-29T19:59:27.000Z
# -*- coding: utf-8 -*- from simmate.database.base_data_types import table_column, Calculation from typing import List class NestedCalculation(Calculation): """ A nested calculation is extremely similar to a calculation table, except here the linked workflow is a NestedWorkflow -- meaning it is made of ...
35.788321
85
0.627371
6938a8ddf4192926867593fe48cd9354d93d8b6a
6,069
py
Python
Qiniu.dzbundle/qiniu/services/storage/uploader.py
F-Pseudonym/dropzone4-actions
d36f581a6be081ff303324bf3ca35daa5133c36a
[ "Ruby" ]
1
2018-06-06T02:37:47.000Z
2018-06-06T02:37:47.000Z
venv/Lib/site-packages/qiniu/services/storage/uploader.py
taylorwait/QA_website
bef86ce22656c29c5d7638bf609f8c6f62365a40
[ "BSD-3-Clause" ]
null
null
null
venv/Lib/site-packages/qiniu/services/storage/uploader.py
taylorwait/QA_website
bef86ce22656c29c5d7638bf609f8c6f62365a40
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import os from qiniu import config from qiniu.utils import urlsafe_base64_encode, crc32, file_crc32, _file_iter from qiniu import http def put_data( up_token, key, data, params=None, mime_type='application/octet-stream', check_crc=False, progress_handler=None): """上传二进制流到七牛 ...
35.284884
130
0.602241
8cc3fa0fcbb4429b703b7b40a629380d1b554271
2,686
py
Python
tensorflow/Coordinate4.py
changeui99/python-study
a0226ff2361d5a08ea0661d23b7af0a4feab4876
[ "MIT" ]
null
null
null
tensorflow/Coordinate4.py
changeui99/python-study
a0226ff2361d5a08ea0661d23b7af0a4feab4876
[ "MIT" ]
null
null
null
tensorflow/Coordinate4.py
changeui99/python-study
a0226ff2361d5a08ea0661d23b7af0a4feab4876
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow import feature_column import numpy as np import pandas as pd from tensorflow.keras.layers import Conv2D, MaxPool2D, Flatten, Dense # Can CNN return the coordinates? EPOCHS = 10 size = 11000 coord = 10 v_size = 1000 lenght = 500 def MyModel(): return tf.keras.models.Sequent...
29.195652
93
0.573343
f5ad603a7592d694ccbab5ba8d1e2a1afec28dac
35,355
py
Python
statsmodels/tsa/tests/test_tsa_indexes.py
dieterv77/statsmodels
ec3b6d02c96cd9c8f4b993434f0bbae4b3e91a21
[ "BSD-3-Clause" ]
4
2019-02-18T20:35:02.000Z
2019-04-09T03:02:58.000Z
statsmodels/tsa/tests/test_tsa_indexes.py
dieterv77/statsmodels
ec3b6d02c96cd9c8f4b993434f0bbae4b3e91a21
[ "BSD-3-Clause" ]
null
null
null
statsmodels/tsa/tests/test_tsa_indexes.py
dieterv77/statsmodels
ec3b6d02c96cd9c8f4b993434f0bbae4b3e91a21
[ "BSD-3-Clause" ]
1
2018-11-30T17:56:41.000Z
2018-11-30T17:56:41.000Z
""" Test index support in time series models 1. Test support for passing / constructing the underlying index in __init__ 2. Test wrapping of output using the underlying index 3. Test wrapping of prediction / forecasting using the underlying index or extensions of it. Author: Chad Fulton License: BSD-3 """ from __f...
38.723987
79
0.643784
f45c05ef67dddd7ef0bed59dca724bcef80ee765
3,050
py
Python
tethysapp/ldas_central/app.py
rileyhales/ldas_central
f0f0fca437c1cd95e74cdf9953ef00808561110f
[ "BSD-3-Clause" ]
null
null
null
tethysapp/ldas_central/app.py
rileyhales/ldas_central
f0f0fca437c1cd95e74cdf9953ef00808561110f
[ "BSD-3-Clause" ]
null
null
null
tethysapp/ldas_central/app.py
rileyhales/ldas_central
f0f0fca437c1cd95e74cdf9953ef00808561110f
[ "BSD-3-Clause" ]
2
2019-06-14T16:57:41.000Z
2021-11-12T08:13:06.000Z
from tethys_sdk.base import TethysAppBase, url_map_maker from tethys_sdk.app_settings import CustomSetting class LdasCentral(TethysAppBase): """ Tethys app class for LDAS Data Visualizer - Central America. """ name = 'LDAS Data Visualizer - Central America' index = 'ldas_central:home' icon = '...
34.659091
119
0.552459
9691acc5e67cfb1e71d4e88a22c80e608686d6ca
1,398
py
Python
utils/utils.py
mfkiwl/gps-tracking-loop-example
241e28a5dc2f36436704eb716614411f1d771c83
[ "MIT" ]
4
2020-06-28T14:12:29.000Z
2022-03-21T17:45:13.000Z
utils/utils.py
mfkiwl/gps-tracking-loop-example
241e28a5dc2f36436704eb716614411f1d771c83
[ "MIT" ]
null
null
null
utils/utils.py
mfkiwl/gps-tracking-loop-example
241e28a5dc2f36436704eb716614411f1d771c83
[ "MIT" ]
7
2020-04-02T05:58:00.000Z
2021-12-20T20:14:26.000Z
from numpy import ndarray, floor def sample_sequence(t, seq, fc, c0=0): '''Generates samples of a sequence given sampling times and a sequence with a specified rate and initial phase (optional). Parameters ---------------------------------------------------------------------------- t : ndarr...
31.066667
80
0.575107
cdbfaaa5de52679976815438df4bb829a113ffb6
9,655
py
Python
ord_schema/validations_test.py
b-shields/ord-schema
e8c233552e45534005522075b840b4d4c085033a
[ "Apache-2.0" ]
null
null
null
ord_schema/validations_test.py
b-shields/ord-schema
e8c233552e45534005522075b840b4d4c085033a
[ "Apache-2.0" ]
null
null
null
ord_schema/validations_test.py
b-shields/ord-schema
e8c233552e45534005522075b840b4d4c085033a
[ "Apache-2.0" ]
null
null
null
"""Tests for ord_schema.units.""" from absl.testing import absltest from absl.testing import parameterized from ord_schema import validations from ord_schema.proto import reaction_pb2 try: from rdkit import Chem except ImportError: Chem = None class ValidationsTest(parameterized.TestCase, absltest.TestCase...
45.328638
80
0.674262
448b82af28bf51a7c5877712e4fc2d4ce6b74d61
368
py
Python
main/maximum-subarray/maximum-subarray.py
EliahKagan/old-practice-snapshot
1b53897eac6902f8d867c8f154ce2a489abb8133
[ "0BSD" ]
null
null
null
main/maximum-subarray/maximum-subarray.py
EliahKagan/old-practice-snapshot
1b53897eac6902f8d867c8f154ce2a489abb8133
[ "0BSD" ]
null
null
null
main/maximum-subarray/maximum-subarray.py
EliahKagan/old-practice-snapshot
1b53897eac6902f8d867c8f154ce2a489abb8133
[ "0BSD" ]
null
null
null
class Solution: def maxSubArray(self, nums): """ :type nums: List[int] :rtype: int """ best_total = -math.inf total = 0 for x in nums: total += x if best_total < total: best_total = total if total < 0: ...
20.444444
34
0.432065
554f82320f27427ed35ab6a50ca5eb1beafca56b
988
py
Python
tests/test_input_definition_loading.py
BuildJet/lagtraj
a49bff9c165b225b37e212dec4c1d319452cc3f3
[ "MIT" ]
4
2020-04-16T22:57:00.000Z
2021-10-05T02:37:58.000Z
tests/test_input_definition_loading.py
BuildJet/lagtraj
a49bff9c165b225b37e212dec4c1d319452cc3f3
[ "MIT" ]
112
2020-05-21T09:47:14.000Z
2022-03-20T16:00:27.000Z
tests/test_input_definition_loading.py
BuildJet/lagtraj
a49bff9c165b225b37e212dec4c1d319452cc3f3
[ "MIT" ]
5
2020-05-14T11:04:07.000Z
2022-03-11T16:38:35.000Z
import shutil import tempfile from pathlib import Path from lagtraj.input_definitions import build_input_definition_path from lagtraj.trajectory import load as traj_load from lagtraj.input_definitions.examples import EXAMPLES_ROOT_PATH as p_examples_root def test_loading_local_file_by_name(): tempdir = tempfile....
34.068966
85
0.787449
98496f9a94a8febf09b5ff25c229e54ee7079322
6,596
py
Python
Kaggle/Playgroud/RiskPrediction/Home-Credit-Default-Risk-master/py/317_shift-3m_aggregate-1y_curr.py
hehuanlin123/DeepLearning
6b7feabbbde9ac9489f76da4c06eeb6703fb165a
[ "MIT" ]
1
2020-02-28T12:03:39.000Z
2020-02-28T12:03:39.000Z
Kaggle/Playgroud/RiskPrediction/Home-Credit-Default-Risk-master/py/317_shift-3m_aggregate-1y_curr.py
hehuanlin123/DeepLearning
6b7feabbbde9ac9489f76da4c06eeb6703fb165a
[ "MIT" ]
null
null
null
Kaggle/Playgroud/RiskPrediction/Home-Credit-Default-Risk-master/py/317_shift-3m_aggregate-1y_curr.py
hehuanlin123/DeepLearning
6b7feabbbde9ac9489f76da4c06eeb6703fb165a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jul 23 19:14:20 2018 @author: kazuki.onodera """ import numpy as np import pandas as pd import gc, os from multiprocessing import Pool #NTHREAD = cpu_count() import utils_agg import utils utils.start(__file__) #=========================================...
33.313131
131
0.583232
cd8ea454d5c8cc6503887739be77022e1e300751
14,007
py
Python
app/utils/metrics.py
visionify/orange-oos-demo
fa1741d4422bed6c6bb34044a4b0e43e55096e80
[ "MIT" ]
null
null
null
app/utils/metrics.py
visionify/orange-oos-demo
fa1741d4422bed6c6bb34044a4b0e43e55096e80
[ "MIT" ]
null
null
null
app/utils/metrics.py
visionify/orange-oos-demo
fa1741d4422bed6c6bb34044a4b0e43e55096e80
[ "MIT" ]
null
null
null
# YOLOv5 🚀 by Ultralytics, GPL-3.0 license """ Model validation metrics """ import math import warnings from pathlib import Path import matplotlib.pyplot as plt import numpy as np import torch def fitness(x): # Model fitness as a weighted combination of metrics w = [0.0, 0.0, 0.1, 0.9] # weights for [P, R...
40.95614
120
0.572071
86d924820238da3a47ad4a394c2da518081f0e68
3,572
py
Python
tamarack/event_processor.py
rallytime/tamarack
c759f5a79bd0b47d9e88ee0e0a9f6032e2bb35d9
[ "Apache-2.0" ]
3
2017-12-29T07:45:30.000Z
2019-03-23T14:03:19.000Z
tamarack/event_processor.py
mikeg98/tamarack
c759f5a79bd0b47d9e88ee0e0a9f6032e2bb35d9
[ "Apache-2.0" ]
25
2018-01-02T21:29:08.000Z
2018-09-14T16:00:05.000Z
tamarack/event_processor.py
mikeg98/tamarack
c759f5a79bd0b47d9e88ee0e0a9f6032e2bb35d9
[ "Apache-2.0" ]
3
2017-12-30T20:04:14.000Z
2021-03-18T19:48:35.000Z
# -*- coding: utf-8 -*- ''' The event processor handles incoming events and is called from server.py. ''' # Import Python libs import logging # Import Tornado libs from tornado import gen # Import Tamarack libs import tamarack.github import tamarack.pull_request import tamarack.slack LOG = logging.getLogger(__name_...
29.766667
88
0.633539
983be3982e4b246917d5fad75458950aa60e6817
1,958
py
Python
results/2019_08_sulzer_thesis/self_discharge.py
zlgenuine/pybamm
5c43d17225710c5bea8e61b3863688eb7080e678
[ "BSD-3-Clause" ]
null
null
null
results/2019_08_sulzer_thesis/self_discharge.py
zlgenuine/pybamm
5c43d17225710c5bea8e61b3863688eb7080e678
[ "BSD-3-Clause" ]
null
null
null
results/2019_08_sulzer_thesis/self_discharge.py
zlgenuine/pybamm
5c43d17225710c5bea8e61b3863688eb7080e678
[ "BSD-3-Clause" ]
null
null
null
# # Simulations: self-discharge # import argparse import matplotlib.pyplot as plt import numpy as np import pickle import pybamm import shared_plotting from config import OUTPUT_DIR from shared_solutions import model_comparison def plot_voltages(all_variables, t_eval): shared_plotting.plot_voltages(all_variables,...
32.633333
87
0.637385
5b853662ebe0a443188d4065a974a773ebaba44a
9,226
py
Python
optimus_manager/xorg.py
Hyper-KVM/optimus-manager-openrc
71c775b14eddb032dfb4d879f245f466e23c5eeb
[ "MIT" ]
16
2020-03-07T00:16:17.000Z
2021-06-26T00:20:27.000Z
optimus_manager/xorg.py
Hyper-KVM/optimus-manager-openrc
71c775b14eddb032dfb4d879f245f466e23c5eeb
[ "MIT" ]
9
2020-05-03T16:53:54.000Z
2021-01-21T21:00:55.000Z
optimus_manager/xorg.py
Hyper-KVM/optimus-manager-openrc
71c775b14eddb032dfb4d879f245f466e23c5eeb
[ "MIT" ]
2
2020-05-19T11:45:57.000Z
2020-11-08T08:48:29.000Z
import os from pathlib import Path from optimus_manager.bash import exec_bash, BashError import optimus_manager.envs as envs import optimus_manager.checks as checks from .pci import get_gpus_bus_ids from .config import load_extra_xorg_options from .hacks.manjaro import remove_mhwd_conf from .log_utils import get_logger...
29.76129
103
0.609798
4585b41ca65cbb2336e4c2d9255cc4750eca6229
1,365
py
Python
FEniCSUI/solvers/solverHub.py
nasserarbabi/FEniCSUI-dev
f8f161e1b49932843e01301212e7d031fff4f6c8
[ "MIT" ]
null
null
null
FEniCSUI/solvers/solverHub.py
nasserarbabi/FEniCSUI-dev
f8f161e1b49932843e01301212e7d031fff4f6c8
[ "MIT" ]
8
2021-03-10T21:59:52.000Z
2021-09-22T19:12:57.000Z
FEniCSUI/solvers/solverHub.py
nasserarbabi/FEniCSUI
f8f161e1b49932843e01301212e7d031fff4f6c8
[ "MIT" ]
null
null
null
''' this module takes care of server communications, and provides the designated solver with mesh and paramteres it needs to run''' import requests import json import sys from mesh2Fenics import meshReader from src.navierStokes import navierStokes import shutil # remove the result directory # shutil.rmtree("./Resu...
31.022727
110
0.715751
0a783f2cf99da36aec33397c383264cae9925f92
2,862
py
Python
setup.py
hackingmaterials/atomate2
6f3ae23d799db1f884c5aea4a54215211144268f
[ "BSD-3-Clause-LBNL" ]
5
2020-11-01T00:01:16.000Z
2021-07-10T15:37:32.000Z
setup.py
hackingmaterials/atomate2
6f3ae23d799db1f884c5aea4a54215211144268f
[ "BSD-3-Clause-LBNL" ]
null
null
null
setup.py
hackingmaterials/atomate2
6f3ae23d799db1f884c5aea4a54215211144268f
[ "BSD-3-Clause-LBNL" ]
1
2021-06-22T20:52:39.000Z
2021-06-22T20:52:39.000Z
from pathlib import Path from setuptools import find_packages, setup module_dir = Path(__file__).resolve().parent with open(module_dir / "README.md") as f: long_description = f.read() if __name__ == "__main__": setup( name="atomate2", setup_requires=["setuptools_scm"], use_scm_versio...
33.670588
75
0.497554
dd663981ab98cf53616e54605fbeef066fce7b99
615
py
Python
flare/translations/en.py
mogenson/flare
bcd272b9303e25b53fed75dec297c34f202c4adf
[ "MIT" ]
null
null
null
flare/translations/en.py
mogenson/flare
bcd272b9303e25b53fed75dec297c34f202c4adf
[ "MIT" ]
null
null
null
flare/translations/en.py
mogenson/flare
bcd272b9303e25b53fed75dec297c34f202c4adf
[ "MIT" ]
null
null
null
lngEn = { "flare.label.yes": "Yes", "flare.label.no": "No", "flare.label.ok": "OK", "flare.label.cancel": "Cancel", "flare.label.close": "Close", "flare.label.error": "Error", "flare.network.error": "Unhandled error", "flare.network.error.401": "Unauthorized request", "flare.network....
38.4375
99
0.642276
8025c1dfac4a6ab6350ea2c47b96b991233f808d
8,077
py
Python
python/uw/like2/from_healpix.py
tburnett/pointlike
a556f07650c2f17d437c86fdafe9f9a33f59758e
[ "BSD-3-Clause" ]
1
2019-03-19T14:45:28.000Z
2019-03-19T14:45:28.000Z
python/uw/like2/from_healpix.py
tburnett/pointlike
a556f07650c2f17d437c86fdafe9f9a33f59758e
[ "BSD-3-Clause" ]
null
null
null
python/uw/like2/from_healpix.py
tburnett/pointlike
a556f07650c2f17d437c86fdafe9f9a33f59758e
[ "BSD-3-Clause" ]
1
2018-08-24T18:58:27.000Z
2018-08-24T18:58:27.000Z
""" $Header: /nfs/slac/g/glast/ground/cvs/pointlike/python/uw/like2/from_healpix.py,v 1.17 2018/01/27 15:37:17 burnett Exp $ """ import os, pickle, zipfile import numpy as np import skymaps from pointlike import IntVector from . import (roimodel, sources, diffuse, extended) def neighbors(index, rings=1): """ ret...
45.376404
132
0.570137
f5dc31286900d604a08437efb61da360a767827f
71,750
py
Python
CellModeller/GUI/Renderers.py
RudgeLab/CellModeller
556f75f6056c3ca9a1b161caa43e8b13d50947f8
[ "BSD-3-Clause" ]
46
2016-02-15T13:42:40.000Z
2022-02-11T15:23:32.000Z
CellModeller/GUI/Renderers.py
RudgeLab/CellModeller
556f75f6056c3ca9a1b161caa43e8b13d50947f8
[ "BSD-3-Clause" ]
24
2017-07-31T21:58:06.000Z
2022-03-15T07:32:47.000Z
CellModeller/GUI/Renderers.py
RudgeLab/CellModeller
556f75f6056c3ca9a1b161caa43e8b13d50947f8
[ "BSD-3-Clause" ]
38
2015-05-07T09:09:02.000Z
2022-03-14T09:10:19.000Z
from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.arrays import vbo import math import numpy import random #import pygame # helper module for text rendering - turned off to see if it suppresses segfaults #from pyopencl.array import vec class GLSphereRenderer: def __init__(self, sim, properties=None,...
42.38039
139
0.443861
d50fd6749ce6f859cdb32e89e03cca725c9c533f
1,070
py
Python
privacy_analytics/middleware.py
s0i/django-privacy-analytics
4617742876956e8d2f8d6b8ca15496251868c530
[ "Apache-2.0" ]
null
null
null
privacy_analytics/middleware.py
s0i/django-privacy-analytics
4617742876956e8d2f8d6b8ca15496251868c530
[ "Apache-2.0" ]
1
2021-11-04T16:41:48.000Z
2021-11-04T16:42:06.000Z
privacy_analytics/middleware.py
s0i/django-privacy-analytics
4617742876956e8d2f8d6b8ca15496251868c530
[ "Apache-2.0" ]
null
null
null
from django.conf import settings from . import tasks class AnalyticsMiddleware: def __init__(self, get_response): self.get_response = get_response def __call__(self, request): response = self.get_response(request) if not request.META.get('HTTP_DNT'): if not request.sessi...
34.516129
102
0.590654
b2f7a21e0ce11f9c62478d800655a150b3646a51
7,186
py
Python
docs/conf.py
zopefoundation/zope.structuredtext
f4a47d7cfde155f0eaf4c2c5baa78b635dee0705
[ "ZPL-2.1" ]
null
null
null
docs/conf.py
zopefoundation/zope.structuredtext
f4a47d7cfde155f0eaf4c2c5baa78b635dee0705
[ "ZPL-2.1" ]
9
2015-01-28T03:54:54.000Z
2022-03-18T07:16:42.000Z
docs/conf.py
zopefoundation/zope.structuredtext
f4a47d7cfde155f0eaf4c2c5baa78b635dee0705
[ "ZPL-2.1" ]
2
2015-01-28T03:55:44.000Z
2015-04-03T09:47:11.000Z
# -*- coding: utf-8 -*- # # zope.structuredtext documentation build configuration file, created by # sphinx-quickstart on Fri Apr 30 17:11:17 2010. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated f...
32.515837
88
0.718759
272e1a46ca3b123669f59141bc27a2915825e198
2,791
py
Python
hypha/apply/determinations/tests/factories.py
killapop/hypha
a2880e384029dae77012abfc753f2af9cef1a5e1
[ "BSD-3-Clause" ]
20
2021-04-08T16:38:49.000Z
2022-02-09T20:05:57.000Z
hypha/apply/determinations/tests/factories.py
OpenTechFund/WebApp
d6e2bb21a39d1fa7566cb60fe19f372dabfa5f0f
[ "BSD-3-Clause" ]
1,098
2017-12-15T11:23:03.000Z
2020-01-24T07:58:07.000Z
hypha/apply/determinations/tests/factories.py
OpenTechFund/WebApp
d6e2bb21a39d1fa7566cb60fe19f372dabfa5f0f
[ "BSD-3-Clause" ]
17
2020-02-07T14:55:54.000Z
2021-04-04T19:32:38.000Z
import random import factory from hypha.apply.funds.tests.factories import ApplicationSubmissionFactory from hypha.apply.stream_forms.testing.factories import ( CharFieldBlockFactory, FormFieldBlockFactory, StreamFieldUUIDFactory, ) from hypha.apply.utils.testing.factories import RichTextFieldBlockFactory...
30.010753
105
0.734862
d921a002c15a00d3146f0370e295b6a6c9308485
362
py
Python
Category_Theory_for_Programmers/identity_compose.py
capn-freako/Haskell_Misc
a6b0745b1391576a61a51227f6d1155b11970749
[ "BSD-3-Clause" ]
4
2017-02-08T09:06:31.000Z
2021-03-30T23:15:35.000Z
Category_Theory_for_Programmers/identity_compose.py
capn-freako/Haskell_Misc
a6b0745b1391576a61a51227f6d1155b11970749
[ "BSD-3-Clause" ]
null
null
null
Category_Theory_for_Programmers/identity_compose.py
capn-freako/Haskell_Misc
a6b0745b1391576a61a51227f6d1155b11970749
[ "BSD-3-Clause" ]
2
2015-12-31T17:36:24.000Z
2021-03-30T23:15:40.000Z
#! /usr/bin/env python def identity(x): return x def compose(g, h): return lambda x: g(h(x)) def main(): def f(x): return x + 2 g = compose(f, identity) h = compose(identity, f) for x in range(3): assert g(x) == f(x) assert h(x) == f(x) print "All tests passed."...
14.48
29
0.522099
c079d65f3eedca739e46ce88440174b53563a110
256
py
Python
digitalocean/Regions.py
SuleAlOthman/digitalocean
005e18ebdc4c4d8175641d60af97640531b190a1
[ "MIT" ]
2
2021-02-12T16:09:06.000Z
2021-11-18T14:12:32.000Z
digitalocean/Regions.py
sulealothman/digitalocean
005e18ebdc4c4d8175641d60af97640531b190a1
[ "MIT" ]
null
null
null
digitalocean/Regions.py
sulealothman/digitalocean
005e18ebdc4c4d8175641d60af97640531b190a1
[ "MIT" ]
null
null
null
from .reqmethods import Req, Arrange class Regions(Req, Arrange): slug = 'regions/' def __init__(self, token): self.setToken(token) def getRegions(self): data = self.get(self.slug) if 'id' in data: return data return self.arrangeData(data)
19.692308
36
0.707031
c293da9d777c8ba77b48c6c8195fcd696577c0ee
13,165
py
Python
nnunet/evaluation/model_selection/rank_candidates.py
nasyxx/nnUNet
92d5f2352349eed278e22f7a38cb86b0fccd7c75
[ "Apache-2.0" ]
1,621
2019-02-14T02:56:51.000Z
2022-03-31T02:53:17.000Z
nnunet/evaluation/model_selection/rank_candidates.py
nasyxx/nnUNet
92d5f2352349eed278e22f7a38cb86b0fccd7c75
[ "Apache-2.0" ]
72
2019-02-21T04:45:38.000Z
2022-02-09T23:49:43.000Z
nnunet/evaluation/model_selection/rank_candidates.py
nasyxx/nnUNet
92d5f2352349eed278e22f7a38cb86b0fccd7c75
[ "Apache-2.0" ]
424
2019-02-15T04:05:55.000Z
2022-03-30T02:06:34.000Z
# Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany # # 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://w...
44.627119
178
0.645955
7859bc259412f39a1da20ff907ce15d5b81305d4
1,725
py
Python
examples/laser_lock_box_basic.py
liquidinstruments/pymoku
a10c2516e5953722a5f5b52aec7944bec22492c2
[ "MIT" ]
11
2016-10-11T04:37:14.000Z
2021-09-10T02:34:03.000Z
examples/laser_lock_box_basic.py
liquidinstruments/pymoku
a10c2516e5953722a5f5b52aec7944bec22492c2
[ "MIT" ]
8
2017-06-02T18:19:49.000Z
2020-09-07T06:15:53.000Z
examples/laser_lock_box_basic.py
liquidinstruments/pymoku
a10c2516e5953722a5f5b52aec7944bec22492c2
[ "MIT" ]
11
2018-07-12T04:18:40.000Z
2022-03-04T10:10:48.000Z
"""pymoku example: Basic Laser Lock Box This example demonstrates how you can configure the laser lock box instrument (c) 2019 Liquid Instruments Pty. Ltd. """ from pymoku import Moku from pymoku.instruments import LaserLockBox from scipy import signal def gen_butterworth(corner_frequency): """ Generate co...
30.803571
77
0.677681
61541ce3f507b29a87345ef24c14b95ac946a797
447
py
Python
4_exercicios_listas/06_notas_media.py
cecilmalone/lista_de_exercicios_pybr
6d7c4aeddf8d1b1d839ad05ef5b5813a8fe611b5
[ "MIT" ]
null
null
null
4_exercicios_listas/06_notas_media.py
cecilmalone/lista_de_exercicios_pybr
6d7c4aeddf8d1b1d839ad05ef5b5813a8fe611b5
[ "MIT" ]
null
null
null
4_exercicios_listas/06_notas_media.py
cecilmalone/lista_de_exercicios_pybr
6d7c4aeddf8d1b1d839ad05ef5b5813a8fe611b5
[ "MIT" ]
null
null
null
""" 6. Faça um Programa que peça as quatro notas de 10 alunos, calcule e armazene num vetor a média de cada aluno, imprima o número de alunos com média maior ou igual a 7.0. """ count = 1 medias = [] while count <= 20: notas = [] notas = input("Informe as notas: ").split() notas = [float(x) for x in notas] ...
19.434783
78
0.626398
38b64d2b488c09b92550ed5027764b8089ef5a63
178
py
Python
Codeforces/131A cAps lOCK.py
a3X3k/Competitive-programing-hacktoberfest-2021
bc3997997318af4c5eafad7348abdd9bf5067b4f
[ "Unlicense" ]
12
2021-06-05T09:40:10.000Z
2021-10-07T17:59:51.000Z
Codeforces/131A cAps lOCK.py
a3X3k/Competitive-programing-hacktoberfest-2021
bc3997997318af4c5eafad7348abdd9bf5067b4f
[ "Unlicense" ]
21
2020-10-10T10:41:03.000Z
2020-10-31T10:41:23.000Z
Codeforces/131A cAps lOCK.py
a3X3k/Competitive-programing-hacktoberfest-2021
bc3997997318af4c5eafad7348abdd9bf5067b4f
[ "Unlicense" ]
67
2021-08-01T10:04:52.000Z
2021-10-10T00:25:04.000Z
# https://codeforces.com/problemset/problem/131/A n = input() if n==n.upper(): n=n.swapcase() elif ord(n[0])>96: if n[1:]==n[1:].upper(): n=n.swapcase() print(n)
19.777778
49
0.573034
0c183706e5a7ea495491f315e5d1a5deaf8435b2
16,317
py
Python
hw1/part1.py
LePotatoChef/CS583-Machine-Learning
b23a4d9f3ed0b9b97bab46fd9c69192c374890df
[ "Apache-2.0" ]
1
2020-11-11T15:41:00.000Z
2020-11-11T15:41:00.000Z
hw1/part1.py
LePotatoChef/CS583-Machine-Learning
b23a4d9f3ed0b9b97bab46fd9c69192c374890df
[ "Apache-2.0" ]
null
null
null
hw1/part1.py
LePotatoChef/CS583-Machine-Learning
b23a4d9f3ed0b9b97bab46fd9c69192c374890df
[ "Apache-2.0" ]
null
null
null
import math import numpy as np from collections import Counter # Note: please don't add any new package, you should solve this problem using only the packages above. #------------------------------------------------------------------------- ''' Part 1: Decision Tree (with Discrete Attributes) -- 40 points -- In...
37.858469
222
0.472636
9b9a3afcf64b2a955a94d580fb1d99ad9e47780f
14,894
py
Python
tests/test_reader_managed.py
avneet-toor-bq/ion-python
c3d6613b4f611857bee1c1b9c414aebd9abf21d7
[ "Apache-2.0" ]
202
2017-05-24T07:10:18.000Z
2022-03-16T06:42:27.000Z
tests/test_reader_managed.py
avneet-toor-bq/ion-python
c3d6613b4f611857bee1c1b9c414aebd9abf21d7
[ "Apache-2.0" ]
99
2017-05-09T22:18:12.000Z
2022-03-28T21:27:21.000Z
tests/test_reader_managed.py
avneet-toor-bq/ion-python
c3d6613b4f611857bee1c1b9c414aebd9abf21d7
[ "Apache-2.0" ]
44
2017-05-22T10:48:12.000Z
2022-03-27T19:01:44.000Z
# Copyright 2016 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at: # # http://aws.amazon.com/apache2.0/ # # or in the "license" file acc...
33.02439
99
0.54109
b0a8d41e858146b53474a0d34476543cd532a6c9
4,160
py
Python
benchmark/startQiskit_noisy2186.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_noisy2186.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_noisy2186.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=4 # total number=39 import cirq import qiskit from qiskit.providers.aer import QasmSimulator from qiskit.test.mock import FakeVigo from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import ...
34.666667
140
0.654327
6addbf04095adfe62368e9078888c8d75a606271
3,272
py
Python
examples/buttons.py
deepestML/Discord-S.C.U.M
bd557ae6277e077bb2f8b26abb5b87bbcc24e703
[ "MIT" ]
383
2020-07-21T01:29:29.000Z
2022-03-29T05:48:20.000Z
examples/buttons.py
deepestML/Discord-S.C.U.M
bd557ae6277e077bb2f8b26abb5b87bbcc24e703
[ "MIT" ]
318
2020-08-10T22:21:29.000Z
2022-03-31T10:23:46.000Z
examples/buttons.py
deepestML/Discord-S.C.U.M
bd557ae6277e077bb2f8b26abb5b87bbcc24e703
[ "MIT" ]
166
2020-07-16T23:16:15.000Z
2022-03-30T22:36:24.000Z
#Buttons are weird. Don't just copy paste the 2nd example; explore what the bot sends in response to the interaction (message_create, message_update, etc) import discum bot = discum.Client(token='ur token') ''' 1st example: get message and then click on button ''' #this is a bit easier but has a small chance getting ...
37.609195
154
0.690098
a32f391a95cea9229275d8485822b0d7e3e4618e
3,239
py
Python
scripts/edsk.py
drdpj/FlashFloppy
7ece65764ed21f8fac4f471dd082eca8566c868b
[ "Unlicense" ]
null
null
null
scripts/edsk.py
drdpj/FlashFloppy
7ece65764ed21f8fac4f471dd082eca8566c868b
[ "Unlicense" ]
null
null
null
scripts/edsk.py
drdpj/FlashFloppy
7ece65764ed21f8fac4f471dd082eca8566c868b
[ "Unlicense" ]
null
null
null
# edsk.py # # Dump interesting per-sector info about an EDSK file # # Written & released by Keir Fraser <keir.xen@gmail.com> # # This is free and unencumbered software released into the public domain. # See the file COPYING for more details, or visit <http://unlicense.org>. import struct, sys, binascii def main(ar...
33.05102
78
0.441186
1d9106f1ea2691345e84892867cc684df5da6662
1,144
py
Python
colect_data_lite/simple_data.py
Szlupek/GWP_stock
656e81a5e8b734560c66baf9c08f9ccd5313fe2d
[ "MIT" ]
null
null
null
colect_data_lite/simple_data.py
Szlupek/GWP_stock
656e81a5e8b734560c66baf9c08f9ccd5313fe2d
[ "MIT" ]
null
null
null
colect_data_lite/simple_data.py
Szlupek/GWP_stock
656e81a5e8b734560c66baf9c08f9ccd5313fe2d
[ "MIT" ]
null
null
null
import subprocess import os import tarfile import time def tardir(path, tar_name): with tarfile.open(tar_name, "w:gz") as tar_handle: for root, dirs, files in os.walk(path): for file in files: tar_handle.add(os.path.join(root, file)) def main(): bashCommand = "rm -r data" ...
25.422222
76
0.651224
a9056cd53393ce5446c4c6dda8d44068e46fe20c
1,116
py
Python
Codeforces/D_Integers_Have_Friends.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
Codeforces/D_Integers_Have_Friends.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
Codeforces/D_Integers_Have_Friends.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
from math import gcd for _ in range(int(input())): n=int(input()) l=list(map(int,input().split())) l=[abs(l[i]-l[i+1]) for i in range(n-1)] n-=1 f=0 new=[0]*(n+1) for i in range(2,n+1): new[i]=new[i>>1]+1 temp=[] for i in range(20): temp.append([0]*(n+1)) ...
22.77551
54
0.383513
f31d98bbb52f02489682bbfa58b990e5bf9a6d71
1,819
py
Python
xsocs/__init__.py
omserta/xsocs
5e1cf1352233498c48f0566e0b819e18373e95e5
[ "MIT" ]
null
null
null
xsocs/__init__.py
omserta/xsocs
5e1cf1352233498c48f0566e0b819e18373e95e5
[ "MIT" ]
null
null
null
xsocs/__init__.py
omserta/xsocs
5e1cf1352233498c48f0566e0b819e18373e95e5
[ "MIT" ]
null
null
null
# coding: utf-8 # /*########################################################################## # # Copyright (c) 2015-2016 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to d...
44.365854
79
0.692139
02c5136822ad488f06990f10688cee65002228f7
2,636
py
Python
stdplugins/_help.py
zoldyckfamily/tgservant
a1c75127dc54d550ebbafd5b5b4df044dafec4f7
[ "Apache-2.0" ]
null
null
null
stdplugins/_help.py
zoldyckfamily/tgservant
a1c75127dc54d550ebbafd5b5b4df044dafec4f7
[ "Apache-2.0" ]
null
null
null
stdplugins/_help.py
zoldyckfamily/tgservant
a1c75127dc54d550ebbafd5b5b4df044dafec4f7
[ "Apache-2.0" ]
null
null
null
"""COMMAND : .info, .dc, .nigga ,.about""" import sys from telethon import events, functions, __version__ from uniborg.util import admin_cmd @borg.on(admin_cmd(pattern="info ?(.*)", allow_sudo=True)) # pylint:disable=E0602 async def _(event): if event.fwd_from: return splugin_name = event.pattern_ma...
35.146667
143
0.655539
3d7a34852d9f130b0290a5dae30a44ff872baecc
2,412
py
Python
neutron/db/models/plugins/ml2/vlanallocation.py
congnt95/neutron
6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1
[ "Apache-2.0" ]
1,080
2015-01-04T08:35:00.000Z
2022-03-27T09:15:52.000Z
neutron/db/models/plugins/ml2/vlanallocation.py
congnt95/neutron
6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1
[ "Apache-2.0" ]
24
2015-02-21T01:48:28.000Z
2021-11-26T02:38:56.000Z
neutron/db/models/plugins/ml2/vlanallocation.py
congnt95/neutron
6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1
[ "Apache-2.0" ]
1,241
2015-01-02T10:47:10.000Z
2022-03-27T09:42:23.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
37.6875
78
0.69403
5ff3c1333c4458a28b079dd11abd6c9b78642bbf
493
py
Python
src/tdi_sdk/main.py
denisgermano/tdi_sdk
5d321802f6697b33422a9f5c233f9ac0987217e2
[ "MIT" ]
null
null
null
src/tdi_sdk/main.py
denisgermano/tdi_sdk
5d321802f6697b33422a9f5c233f9ac0987217e2
[ "MIT" ]
null
null
null
src/tdi_sdk/main.py
denisgermano/tdi_sdk
5d321802f6697b33422a9f5c233f9ac0987217e2
[ "MIT" ]
null
null
null
import requests class Client: USERNAME = None PASSWORD = None URL = None def __init__(self, username: str, password: str, url: str) -> None: self.USERNAME = username self.PASSWORD = password self.URL = url def aggregated_base_query(self, plate: str): path = "/Cons...
25.947368
79
0.638945
87f0c5e197da208f6233ac342f86710767dda83e
39,432
py
Python
synapse/handlers/oidc_handler.py
ThiefMaster/synapse
f2af3e4fc550e7e93be1b0f425c3e9c484b96293
[ "Apache-2.0" ]
1
2020-07-21T17:51:02.000Z
2020-07-21T17:51:02.000Z
synapse/handlers/oidc_handler.py
mjvaldez/synapse
de119063f248981510e961e83f1515a3add19a21
[ "Apache-2.0" ]
null
null
null
synapse/handlers/oidc_handler.py
mjvaldez/synapse
de119063f248981510e961e83f1515a3add19a21
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Quentin Gliech # # 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 la...
37.733971
129
0.612929
498c72a7ae82fd943362696fa58923be692e8620
4,796
py
Python
public_plugins/animal_crossing/animal_crossing.py
Infinity-LTD/discord_gradiusbot
a5badc09c4e16230194453ba2c7bc208726c93d4
[ "MIT" ]
10
2016-03-01T01:42:39.000Z
2021-03-18T19:01:42.000Z
public_plugins/animal_crossing/animal_crossing.py
Infinity-LTD/discord_gradiusbot
a5badc09c4e16230194453ba2c7bc208726c93d4
[ "MIT" ]
96
2015-10-08T00:28:16.000Z
2021-09-08T02:32:41.000Z
public_plugins/animal_crossing/animal_crossing.py
Infinity-LTD/discord_gradiusbot
a5badc09c4e16230194453ba2c7bc208726c93d4
[ "MIT" ]
11
2015-10-07T23:26:11.000Z
2021-08-07T05:24:47.000Z
import asyncio import logging import pytz from tabulate import tabulate from libs.ac_libs import AcManager, help_str logger = logging.getLogger('gradiusbot') logger.info("[Public Plugin] <animal_crossing.py> Provides tools for the game Animal Crossing.") DISPLAY_CHAR_LIMIT = 32 ac_manager = AcManager() @asyncio.co...
31.973333
126
0.636572
2244217d9e160a51fdfaad6b83b9d5054d6f1222
3,381
py
Python
custom_components/nhc2/helpers.py
pete0811/hass-nhc2
3ff01dfdfb7bf5408500a1b1d54db1ec5cd6f6a9
[ "MIT" ]
35
2019-11-16T07:23:25.000Z
2022-03-08T20:39:11.000Z
custom_components/nhc2/helpers.py
pete0811/hass-nhc2
3ff01dfdfb7bf5408500a1b1d54db1ec5cd6f6a9
[ "MIT" ]
39
2019-07-24T12:17:28.000Z
2022-03-30T13:33:29.000Z
custom_components/nhc2/helpers.py
pete0811/hass-nhc2
3ff01dfdfb7bf5408500a1b1d54db1ec5cd6f6a9
[ "MIT" ]
28
2020-01-15T19:50:22.000Z
2022-03-27T21:50:27.000Z
"""Helpers for NHC2.""" import logging from homeassistant.core import callback _LOGGER = logging.getLogger(__name__) def nhc2_entity_processor(hass, config_entry, async_add_entities, key, obj_create): """Loo...
37.988764
78
0.602189
0deb329e28a572573d218a55ecbdf8240766eabe
7,015
py
Python
scripts/Retired/promote.py
Jasper-Bekkers/Vulkan-Docs
90add81fa4bf15fceee9a4e015cc07c13f7b00a9
[ "CC-BY-4.0" ]
2
2021-02-03T12:09:44.000Z
2021-03-13T16:56:35.000Z
scripts/Retired/promote.py
Jasper-Bekkers/Vulkan-Docs
90add81fa4bf15fceee9a4e015cc07c13f7b00a9
[ "CC-BY-4.0" ]
null
null
null
scripts/Retired/promote.py
Jasper-Bekkers/Vulkan-Docs
90add81fa4bf15fceee9a4e015cc07c13f7b00a9
[ "CC-BY-4.0" ]
1
2019-09-15T12:06:11.000Z
2019-09-15T12:06:11.000Z
#!/usr/bin/python3 # # Copyright (c) 2016-2019 The Khronos Group 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...
38.125
108
0.613115
ded5690ae9c07146a60fbd4b68fbba3267f46659
4,432
py
Python
CAIL2020/ydljy/evaluate/evaluate.py
ShenDezhou/CAIL
c4cfa98ab4ecedbce34a7a5a186830486047540c
[ "Apache-2.0" ]
71
2020-07-16T01:49:27.000Z
2022-03-27T16:55:00.000Z
CAIL2020/ydljy/evaluate/evaluate.py
ShenDezhou/CAIL
c4cfa98ab4ecedbce34a7a5a186830486047540c
[ "Apache-2.0" ]
11
2020-09-18T14:26:25.000Z
2022-02-09T23:49:33.000Z
CAIL2020/ydljy/evaluate/evaluate.py
ShenDezhou/CAIL
c4cfa98ab4ecedbce34a7a5a186830486047540c
[ "Apache-2.0" ]
16
2020-07-15T07:24:30.000Z
2022-03-19T05:41:11.000Z
import sys import ujson as json import re import string from collections import Counter import pickle def normalize_answer(s): def remove_articles(text): return re.sub(r'\b(a|an|the)\b', ' ', text) def white_space_fix(text): return ' '.join(text.split()) def remove_punc(text): ex...
32.588235
112
0.608078
4e566c2b5c950e7d19f8494e5d8519fcab79d12b
30,839
py
Python
testplan/common/entity/base.py
ymn1k/testplan
b1bde8495c449d75a74a7fe4e7c6501b0476f833
[ "Apache-2.0" ]
null
null
null
testplan/common/entity/base.py
ymn1k/testplan
b1bde8495c449d75a74a7fe4e7c6501b0476f833
[ "Apache-2.0" ]
null
null
null
testplan/common/entity/base.py
ymn1k/testplan
b1bde8495c449d75a74a7fe4e7c6501b0476f833
[ "Apache-2.0" ]
1
2019-09-11T09:13:18.000Z
2019-09-11T09:13:18.000Z
""" Module containing base classes that represent object entities that can accept configuration, start/stop/run/abort, create results and have some state. """ import os import signal import time import uuid import threading import inspect from collections import deque, OrderedDict from schema import Or, And, Use fr...
31.37233
87
0.599436
fec573abf9c7a649ffc69f669ace40b735e7652e
3,460
py
Python
sdk/python/tests/integration/feature_repos/test_repo_configuration.py
blvp/feast
50eb4ec36124d850a6ec60f27a7b3fae4ad6dc71
[ "Apache-2.0" ]
null
null
null
sdk/python/tests/integration/feature_repos/test_repo_configuration.py
blvp/feast
50eb4ec36124d850a6ec60f27a7b3fae4ad6dc71
[ "Apache-2.0" ]
null
null
null
sdk/python/tests/integration/feature_repos/test_repo_configuration.py
blvp/feast
50eb4ec36124d850a6ec60f27a7b3fae4ad6dc71
[ "Apache-2.0" ]
2
2021-07-26T14:10:47.000Z
2021-08-11T11:12:05.000Z
import tempfile import uuid from contextlib import contextmanager from pathlib import Path from typing import Dict, List, Union import pytest from attr import dataclass from feast import FeatureStore, RepoConfig, importer from tests.data.data_creator import create_dataset from tests.integration.feature_repos.universa...
31.454545
122
0.720809
ff6f4b2577a949d01e2a16eb78d6a79d92ade15c
2,257
py
Python
leo/plugins/importers/dart.py
gamtiq/leo-editor
3f51986fea4c16ed0713699b088bc8a8abd738c3
[ "MIT" ]
1
2020-11-07T23:22:12.000Z
2020-11-07T23:22:12.000Z
leo/plugins/importers/dart.py
gamtiq/leo-editor
3f51986fea4c16ed0713699b088bc8a8abd738c3
[ "MIT" ]
null
null
null
leo/plugins/importers/dart.py
gamtiq/leo-editor
3f51986fea4c16ed0713699b088bc8a8abd738c3
[ "MIT" ]
null
null
null
#@+leo-ver=5-thin #@+node:ekr.20141116100154.1: * @file ../plugins/importers/dart.py '''The @auto importer for the dart language.''' import re import leo.plugins.importers.linescanner as linescanner Importer = linescanner.Importer #@+others #@+node:ekr.20161123120245.2: ** class Dart_Importer class Dart_Importer(Import...
28.935897
72
0.603013
6aaf93941c460328b4a01798f05634356c62fffd
7,627
py
Python
qa/pull-tester/rpc-tests.py
danielaTorrezE/BCH
704a5115998b68c662440b9fdd232579dd884d20
[ "MIT" ]
null
null
null
qa/pull-tester/rpc-tests.py
danielaTorrezE/BCH
704a5115998b68c662440b9fdd232579dd884d20
[ "MIT" ]
null
null
null
qa/pull-tester/rpc-tests.py
danielaTorrezE/BCH
704a5115998b68c662440b9fdd232579dd884d20
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2014 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ Run Regression Test Suite This module calls down into individual test cases via subprocess. It will forwa...
30.265873
91
0.615314
e0d3d6c9d398b08b3774af019994543f2f4759ae
274
py
Python
Python Parallel Programming Cookbook_Code/Chapter 5/Pyro4/First Example/client.py
IdiosyncraticDragon/Reading-Notes
6412c327d337a88ae15c7d07acfb6a5ab955895e
[ "Apache-2.0" ]
6
2018-03-22T10:23:27.000Z
2021-12-10T03:45:50.000Z
Python Parallel Programming Cookbook_Code/Chapter 5/Pyro4/First Example/client.py
IdiosyncraticDragon/Reading-Notes
6412c327d337a88ae15c7d07acfb6a5ab955895e
[ "Apache-2.0" ]
null
null
null
Python Parallel Programming Cookbook_Code/Chapter 5/Pyro4/First Example/client.py
IdiosyncraticDragon/Reading-Notes
6412c327d337a88ae15c7d07acfb6a5ab955895e
[ "Apache-2.0" ]
1
2020-08-25T14:26:27.000Z
2020-08-25T14:26:27.000Z
import Pyro4 uri = input("insert the PYRO4 server URI (help : PYRONAME:server) ").strip() name = input("What is your name? ").strip() # use name server object lookup uri shortcut server = Pyro4.Proxy("PYRONAME:server") print(server.welcomeMessage(name))
22.833333
77
0.686131
1bd60b7994ee30dd2b9a78a4adacc6b011711453
396
py
Python
python/playground_script.py
hermantai/samples
8b76e17b57c39876c65cb3aac65dc4f9079858a7
[ "Apache-2.0" ]
1
2016-08-17T03:19:55.000Z
2016-08-17T03:19:55.000Z
python/playground_script.py
hermantai/samples
8b76e17b57c39876c65cb3aac65dc4f9079858a7
[ "Apache-2.0" ]
null
null
null
python/playground_script.py
hermantai/samples
8b76e17b57c39876c65cb3aac65dc4f9079858a7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """A template to let you quickly insert code and try them out, with ipython at the end to explore stuff. """ from __future__ import print_function from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import IPython def main(): # your...
19.8
78
0.744949
b1f0376b4147fb8d040c85b810b3361b855a82c9
3,966
py
Python
server/tokenManager.py
njw1204/stream-picamera-with-pantilthat
c5b1f22442ad55591e00935a66c70ddd2f2bfc5a
[ "MIT" ]
null
null
null
server/tokenManager.py
njw1204/stream-picamera-with-pantilthat
c5b1f22442ad55591e00935a66c70ddd2f2bfc5a
[ "MIT" ]
null
null
null
server/tokenManager.py
njw1204/stream-picamera-with-pantilthat
c5b1f22442ad55591e00935a66c70ddd2f2bfc5a
[ "MIT" ]
null
null
null
from flask import request from flask_restful import Resource, reqparse from werkzeug.exceptions import HTTPException from datetime import datetime from .setting import serverConfig from .crypt import HMAC_SHA256, Base64Encode, Base64Decode import flask_restful, json def WriteToken(id): try: expired = int(d...
40.886598
130
0.582703
01e15b6449c50960868ae52557e070cca5d81dfc
2,044
py
Python
aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/GetJobOutputStatisticInfoRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
1
2019-12-23T12:36:43.000Z
2019-12-23T12:36:43.000Z
aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/GetJobOutputStatisticInfoRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/GetJobOutputStatisticInfoRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
1
2021-02-23T11:27:54.000Z
2021-02-23T11:27:54.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
34.066667
78
0.768591
26edf66755c578920f00b13a6ecdb9e786a1fc2a
10,256
py
Python
gazoo_device/tests/unit_tests/switchboard_tests/tcp_transport_test.py
dedsec-9/gazoo-device
5ed2867c258da80e53b6aae07ec7a65efe473a28
[ "Apache-2.0" ]
14
2020-11-05T23:23:32.000Z
2022-03-01T18:59:29.000Z
gazoo_device/tests/unit_tests/switchboard_tests/tcp_transport_test.py
dedsec-9/gazoo-device
5ed2867c258da80e53b6aae07ec7a65efe473a28
[ "Apache-2.0" ]
null
null
null
gazoo_device/tests/unit_tests/switchboard_tests/tcp_transport_test.py
dedsec-9/gazoo-device
5ed2867c258da80e53b6aae07ec7a65efe473a28
[ "Apache-2.0" ]
5
2021-05-20T22:52:51.000Z
2022-02-21T08:46:21.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
38.996198
80
0.690913
3d65eda301110ad781f7a734b066632bab8aba74
1,631
py
Python
esphome/components/tuya/select/__init__.py
OttoWinter/esphomeyaml
6a85259e4d6d1b0a0f819688b8e555efcb99ecb0
[ "MIT" ]
249
2018-04-07T12:04:11.000Z
2019-01-25T01:11:34.000Z
esphome/components/tuya/select/__init__.py
OttoWinter/esphomeyaml
6a85259e4d6d1b0a0f819688b8e555efcb99ecb0
[ "MIT" ]
243
2018-04-11T16:37:11.000Z
2019-01-25T16:50:37.000Z
esphome/components/tuya/select/__init__.py
OttoWinter/esphomeyaml
6a85259e4d6d1b0a0f819688b8e555efcb99ecb0
[ "MIT" ]
40
2018-04-10T05:50:14.000Z
2019-01-25T15:20:36.000Z
from esphome.components import select import esphome.config_validation as cv import esphome.codegen as cg from esphome.const import CONF_OPTIONS, CONF_OPTIMISTIC, CONF_ENUM_DATAPOINT from .. import tuya_ns, CONF_TUYA_ID, Tuya DEPENDENCIES = ["tuya"] CODEOWNERS = ["@bearpawmaxim"] TuyaSelect = tuya_ns.class_("TuyaSele...
33.979167
77
0.73084
3fde6d47c01c09b5aa0e7dd6c3b0c31261dc41f6
6,932
py
Python
process_sentences.py
adaamko/np_alignment
750e725627fa6edfb480082110dade3028235a02
[ "MIT" ]
null
null
null
process_sentences.py
adaamko/np_alignment
750e725627fa6edfb480082110dade3028235a02
[ "MIT" ]
null
null
null
process_sentences.py
adaamko/np_alignment
750e725627fa6edfb480082110dade3028235a02
[ "MIT" ]
null
null
null
import re import random import torch from pytorch_pretrained_bert import BertTokenizer, BertModel, BertForMaskedLM from scripts.baseline_utils import process_baseline from collections import defaultdict def get_tokenized_text(sen, tokenizer): marked_text = "[CLS] " + sen + " [SEP] " tokenized_text = tokenizer...
35.548718
154
0.603289
90044e69dd82e02caf887b01755828c2e04f45b0
16,297
py
Python
tests/test_vlan.py
JiangboHe/sonic-swss
65f63c1647f59b75b3d06b1cb293efbbc5472012
[ "Apache-2.0" ]
1
2021-07-12T07:37:01.000Z
2021-07-12T07:37:01.000Z
tests/test_vlan.py
JiangboHe/sonic-swss
65f63c1647f59b75b3d06b1cb293efbbc5472012
[ "Apache-2.0" ]
5
2017-04-11T15:32:47.000Z
2018-02-28T17:03:06.000Z
tests/test_vlan.py
allas-nvidia/sonic-swss
85ff67c4c490abfa5b178edbbb77d10af1742c88
[ "Apache-2.0" ]
1
2020-04-27T16:21:07.000Z
2020-04-27T16:21:07.000Z
import distro import pytest from distutils.version import StrictVersion from dvslib.dvs_common import PollingConfig @pytest.mark.usefixtures("testlog") @pytest.mark.usefixtures('dvs_vlan_manager') @pytest.mark.usefixtures('dvs_lag_manager') class TestVlan(object): def check_syslog(self, dvs, marker, process, err...
38.166276
122
0.666442
44e6d9965d834d34892332a71183bfa2236c3d26
16,639
py
Python
numerical_simulations/Single_Dipole_PS_Impact_OO.py
ronniyjoseph/Beam-Perturbations
0122fed7e3018f2e188e12b62ad760e11f6eb158
[ "MIT" ]
null
null
null
numerical_simulations/Single_Dipole_PS_Impact_OO.py
ronniyjoseph/Beam-Perturbations
0122fed7e3018f2e188e12b62ad760e11f6eb158
[ "MIT" ]
4
2019-06-25T02:02:56.000Z
2019-10-24T08:12:41.000Z
numerical_simulations/Single_Dipole_PS_Impact_OO.py
ronniyjoseph/Beam-Perturbations
0122fed7e3018f2e188e12b62ad760e11f6eb158
[ "MIT" ]
null
null
null
import numpy import sys import time from scipy.constants import c from scipy import interpolate from functools import partial import multiprocessing import powerbox from generaltools import from_lm_to_theta_phi from skymodel import SkyRealisation from radiotelescope import RadioTelescope from radiotelescope import...
50.421212
129
0.638139
13c1a8106b7ec1dda29f32af1a9716f017debb89
539
py
Python
env/lib/python3.8/site-packages/plotly/validators/treemap/marker/colorbar/tickfont/_size.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
env/lib/python3.8/site-packages/plotly/validators/treemap/marker/colorbar/tickfont/_size.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
env/lib/python3.8/site-packages/plotly/validators/treemap/marker/colorbar/tickfont/_size.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="size", parent_name="treemap.marker.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly...
28.368421
66
0.599258
99dfce8d76d4ddb0f0d61244a502ea0335bf5d4a
10,348
py
Python
i3pystatus/pulseaudio/pulse.py
rampage644/i3pystatus
b9846936e187cd80f15928e93ad6318755f84285
[ "MIT" ]
null
null
null
i3pystatus/pulseaudio/pulse.py
rampage644/i3pystatus
b9846936e187cd80f15928e93ad6318755f84285
[ "MIT" ]
null
null
null
i3pystatus/pulseaudio/pulse.py
rampage644/i3pystatus
b9846936e187cd80f15928e93ad6318755f84285
[ "MIT" ]
1
2019-08-15T10:35:54.000Z
2019-08-15T10:35:54.000Z
# generation commands # h2xml.py -I $PWD -c -o pa.xml pulse/mainloop-api.h pulse/sample.h pulse/def.h pulse/operation.h pulse/context.h pulse/channelmap.h pulse/volume.h pulse/stream.h pulse/introspect.h pulse/subscribe.h pulse/scache.h pulse/version.h pulse/error.h pulse/xmalloc.h pulse/utf8.h pulse/thread-mainloop.h ...
34.841751
367
0.788558
762eca4022c149aef686707b1d9fb1799efc5804
2,158
py
Python
src/more/click/__init__.py
badmonkey/python-hobgoblin
46cfbea7738d137f8afa08aafdd65e3de9159763
[ "MIT" ]
null
null
null
src/more/click/__init__.py
badmonkey/python-hobgoblin
46cfbea7738d137f8afa08aafdd65e3de9159763
[ "MIT" ]
null
null
null
src/more/click/__init__.py
badmonkey/python-hobgoblin
46cfbea7738d137f8afa08aafdd65e3de9159763
[ "MIT" ]
null
null
null
import click as _click from click import * # noqa from click_didyoumean import DYMGroup from click_help_colors import HelpColorsCommand, HelpColorsGroup theme = { "help.headers": "yellow", "help.options": None, "help.group.headers": "yellow", "help.group.options": "green", "help.cmd.headers": "yel...
30.394366
88
0.674699
53e2e62e4c9b67c00b102c11008a83b27d66400e
374
py
Python
lunch/migrations/0003_auto_20190422_0627.py
pythondev0101/django_eats_easy_ordering_system
f65a88b4a46e056be35909799a01784f741cdfac
[ "MIT" ]
null
null
null
lunch/migrations/0003_auto_20190422_0627.py
pythondev0101/django_eats_easy_ordering_system
f65a88b4a46e056be35909799a01784f741cdfac
[ "MIT" ]
4
2020-02-11T23:58:56.000Z
2021-06-08T19:52:35.000Z
lunch/migrations/0003_auto_20190422_0627.py
pythondev0101/eats_easy_ordering_system
f65a88b4a46e056be35909799a01784f741cdfac
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-04-21 22:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('lunch', '0002_order_weekorder'), ] operations = [ migrations.AlterField( model_name='order', name='date', ...
19.684211
47
0.585561
192788709b382c3d8b153543a12b8fc5d2909175
8,674
py
Python
pelops/utils.py
dave-lab41/pelops
292af80dba190f9506519c8e13432fef648a2291
[ "Apache-2.0" ]
48
2016-12-11T15:43:28.000Z
2021-02-28T14:16:42.000Z
pelops/utils.py
dave-lab41/pelops
292af80dba190f9506519c8e13432fef648a2291
[ "Apache-2.0" ]
100
2016-11-15T19:23:52.000Z
2017-08-22T20:22:13.000Z
pelops/utils.py
agude/pelops
292af80dba190f9506519c8e13432fef648a2291
[ "Apache-2.0" ]
25
2016-11-15T17:49:32.000Z
2020-02-17T13:04:26.000Z
import cProfile import datetime import enum import json import logging import os import random import re import time import itertools import csv class SetType(enum.Enum): """ Types of set, i.e. training set """ ALL = "all" QUERY = "query" TEST = "test" TRAIN = "train" def get_session(gpu...
31.314079
115
0.646184
a16c2d233b527307f08331839a630c91cc6f22ea
19,666
py
Python
common_modules/db_handler.py
kimvanwyk/md_directory
2a877251eb61baca57188d0a0976756c8f3e2c31
[ "BSD-3-Clause" ]
null
null
null
common_modules/db_handler.py
kimvanwyk/md_directory
2a877251eb61baca57188d0a0976756c8f3e2c31
[ "BSD-3-Clause" ]
2
2021-07-05T09:36:29.000Z
2021-07-05T09:36:29.000Z
common_modules/db_handler.py
kimvanwyk/md_directory
2a877251eb61baca57188d0a0976756c8f3e2c31
[ "BSD-3-Clause" ]
null
null
null
''' Copyright (c) 2011, Kim van Wyk All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following d...
37.819231
162
0.611665
3d6e2881acb20cf4caf6b327c6602e7847e9a512
1,123
py
Python
ex059a.py
MarcosLazarin/Meu-curso-em-v-deo
afe7d061a6eb4162044a47d8453bf1930831e283
[ "MIT" ]
null
null
null
ex059a.py
MarcosLazarin/Meu-curso-em-v-deo
afe7d061a6eb4162044a47d8453bf1930831e283
[ "MIT" ]
null
null
null
ex059a.py
MarcosLazarin/Meu-curso-em-v-deo
afe7d061a6eb4162044a47d8453bf1930831e283
[ "MIT" ]
null
null
null
#Fazer um programa que leia dois números e mostre um menú na tela: #[1] Somar #[2] Múltiplicar #[3] Maior #[4] Novos números #[5] Sair do programa # O programa deve realiar a solicitação feita em cada opção em loop. print('<>' * 20) n1 = float(input('Digite o 1° número: ')) n2 = float(input('Digite o 2° número: ')) n ...
34.030303
147
0.567231
b352117057f11a7d7ca694cd04cf1c12cdf588fc
192
py
Python
week1 and extra/learningturtle.py
harshonyou/SOFT1
1bd2b0cc26d39c549bec576389bebd0fd011387d
[ "Apache-2.0" ]
null
null
null
week1 and extra/learningturtle.py
harshonyou/SOFT1
1bd2b0cc26d39c549bec576389bebd0fd011387d
[ "Apache-2.0" ]
null
null
null
week1 and extra/learningturtle.py
harshonyou/SOFT1
1bd2b0cc26d39c549bec576389bebd0fd011387d
[ "Apache-2.0" ]
null
null
null
import turtle bob = turtle.Turtle() bob.color("red", "cyan") bob.begin_fill() for x in range(0,4): bob.forward(100) bob.right(90) pass bob.end_fill() bob.penup() turtle.done()
12
24
0.645833
331dec43e6704fd107ef6e00ff0e7edf0ab3c3fc
1,963
py
Python
tests/test_helpers.py
ntlind/python_utilities
09767502907005ed84c634c2c77bd9ab4ad7b68d
[ "MIT" ]
null
null
null
tests/test_helpers.py
ntlind/python_utilities
09767502907005ed84c634c2c77bd9ab4ad7b68d
[ "MIT" ]
null
null
null
tests/test_helpers.py
ntlind/python_utilities
09767502907005ed84c634c2c77bd9ab4ad7b68d
[ "MIT" ]
null
null
null
import pandas as pd from python_utilities import utils, testing, dataframes # noqa def test_format_bytes(): assert utils.format_bytes(5368709120) == "5.0GB" assert utils.format_bytes(1024) == "1.0KB" assert utils.format_bytes(124213) == "121.3KB" def test_is_pandas_df(): assert utils.is_pandas_df(t...
24.5375
73
0.670912
e3a707a235b9f0993e816e145cdf22c48c8272fc
6,327
py
Python
vertex/conncache.py
glyph/vertex
fb98a5e4caf92da2f472c7caca14abd17445623b
[ "MIT" ]
1
2019-03-29T19:53:39.000Z
2019-03-29T19:53:39.000Z
vertex/conncache.py
glyph/vertex
fb98a5e4caf92da2f472c7caca14abd17445623b
[ "MIT" ]
null
null
null
vertex/conncache.py
glyph/vertex
fb98a5e4caf92da2f472c7caca14abd17445623b
[ "MIT" ]
null
null
null
# Copyright 2005 Divmod, Inc. See LICENSE file for details # -*- test-case-name: vertex.test.test_conncache,vertex.test.test_q2q.TCPConnection.testSendingFiles -*- """ Connect between two endpoints using a message-based protocol to exchange messages lazily in response to UI events, caching the protocol as necessary. ...
34.955801
104
0.657342
00501a2bf659e372630c061e54a824b87d3df857
2,993
py
Python
tensorflow_v1/examples/2_BasicModels/gradient_boosted_decision_tree.py
Tony-Khor/Tensorflow-From-Zero-to-All
c29818216683fb4c91cb7f82ecf2e3778d44a7db
[ "MIT" ]
3
2018-08-06T15:34:58.000Z
2022-02-11T14:19:05.000Z
tensorflow_v1/examples/2_BasicModels/gradient_boosted_decision_tree.py
Tony-Khor/Tensorflow-From-Zero-to-All
c29818216683fb4c91cb7f82ecf2e3778d44a7db
[ "MIT" ]
null
null
null
tensorflow_v1/examples/2_BasicModels/gradient_boosted_decision_tree.py
Tony-Khor/Tensorflow-From-Zero-to-All
c29818216683fb4c91cb7f82ecf2e3778d44a7db
[ "MIT" ]
3
2018-08-06T15:35:01.000Z
2020-08-08T07:53:07.000Z
""" Gradient Boosted Decision Tree (GBDT). Implement a Gradient Boosted Decision tree with TensorFlow to classify handwritten digit images. This example is using the MNIST database of handwritten digits as training samples (http://yann.lecun.com/exdb/mnist/). Links: [MNIST Dataset](http://yann.lecun.com/exdb/mnis...
34.802326
108
0.789843
d249b8e344665c5bf8b235592083e82bb7585fdb
5,659
py
Python
docs/source/conf.py
StanfordVL/lagom
e5994df7f866e35cb30140bae0d997e3f63ea876
[ "MIT" ]
1
2020-01-09T06:43:13.000Z
2020-01-09T06:43:13.000Z
docs/source/conf.py
StanfordVL/lagom
e5994df7f866e35cb30140bae0d997e3f63ea876
[ "MIT" ]
null
null
null
docs/source/conf.py
StanfordVL/lagom
e5994df7f866e35cb30140bae0d997e3f63ea876
[ "MIT" ]
1
2019-05-13T06:29:11.000Z
2019-05-13T06:29:11.000Z
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
31.265193
79
0.654886
92696ae95d889eb68f73125332f9190450a78858
2,938
py
Python
src/oci/application_migration/models/work_request_log_entry.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/application_migration/models/work_request_log_entry.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/application_migration/models/work_request_log_entry.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
28.803922
245
0.637168
fe404d10b9634dda841cce7874760e70878b60bb
9,837
py
Python
pyvisa-py/protocols/usbutil.py
rubund/debian-pyvisa-py
735780b5fc030a5a5683a9badae5cb51eca82f51
[ "MIT" ]
null
null
null
pyvisa-py/protocols/usbutil.py
rubund/debian-pyvisa-py
735780b5fc030a5a5683a9badae5cb51eca82f51
[ "MIT" ]
null
null
null
pyvisa-py/protocols/usbutil.py
rubund/debian-pyvisa-py
735780b5fc030a5a5683a9badae5cb51eca82f51
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ pyvisa-py.usb ~~~~~~~~~~~~~ Serial Session implementation using PyUSB. See the following link for more information about USB. http://www.beyondlogic.org/usbnutshell/usb5.shtml This file is an offspring of the Lantz Project. :copyright: 2014 by PyVISA-py Autho...
38.728346
108
0.606892
a559949f0eae950a18cbcba4a4168d99597998db
16,558
py
Python
pysnmp/CISCO-RSCN-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/CISCO-RSCN-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/CISCO-RSCN-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-RSCN-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-RSCN-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:54:18 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2...
116.605634
2,252
0.740548
def4d8d9d1a2381a21e6a9aa8b3d88982610d3bb
9,640
py
Python
python/eo1_ali_l1t.py
vightel/FloodMapsWorkshop
ebc5246fbca52f2ee181a07663b859b2f6f59532
[ "Apache-2.0" ]
24
2015-02-07T06:34:14.000Z
2021-11-06T08:06:40.000Z
python/eo1_ali_l1t.py
vightel/FloodMapsWorkshop
ebc5246fbca52f2ee181a07663b859b2f6f59532
[ "Apache-2.0" ]
1
2018-07-23T01:54:23.000Z
2018-07-23T01:55:05.000Z
python/eo1_ali_l1t.py
vightel/FloodMapsWorkshop
ebc5246fbca52f2ee181a07663b859b2f6f59532
[ "Apache-2.0" ]
15
2015-03-10T06:39:10.000Z
2020-01-06T19:54:16.000Z
#!/usr/bin/env python import os, inspect, sys import argparse import math, time import numpy import numpy.ma as ma from scipy import misc from osgeo import gdal from osgeo import osr from osgeo import ogr import gdalnumeric # NOTE check https://github.com/mtpatter/eo1-demo/blob/master/classify.py import config d...
28.605341
132
0.653942
6befe2d060e6a95ff5e089f9bce58aba148bf6c5
1,645
py
Python
tdi_kernel/tdi_kernel/install.py
MDSplus/jupyter
40c5e6acc8c1e054175339c2f5382c70984bc633
[ "MIT" ]
1
2020-03-02T13:59:24.000Z
2020-03-02T13:59:24.000Z
tdi_kernel/tdi_kernel/install.py
MDSplus/jupyter
40c5e6acc8c1e054175339c2f5382c70984bc633
[ "MIT" ]
null
null
null
tdi_kernel/tdi_kernel/install.py
MDSplus/jupyter
40c5e6acc8c1e054175339c2f5382c70984bc633
[ "MIT" ]
null
null
null
import argparse import json import os import sys from jupyter_client.kernelspec import KernelSpecManager from IPython.utils.tempdir import TemporaryDirectory kernel_json = { "argv": [sys.executable, "-m", "tdi_kernel", "-f", "{connection_file}"], "display_name": "Tdi", "language": "text", } def install_m...
32.254902
98
0.666869
25a065b235eaf0b1c45ad6814d54a280ea77f36d
941
py
Python
serverless-layers/lambda-layer-odbc/docker-build/source/testcode.py
bsandeepan/sandeepan-docker-setups
65ea6ebb8c73ed841a2edf31552710c1e5b171c4
[ "MIT" ]
null
null
null
serverless-layers/lambda-layer-odbc/docker-build/source/testcode.py
bsandeepan/sandeepan-docker-setups
65ea6ebb8c73ed841a2edf31552710c1e5b171c4
[ "MIT" ]
null
null
null
serverless-layers/lambda-layer-odbc/docker-build/source/testcode.py
bsandeepan/sandeepan-docker-setups
65ea6ebb8c73ed841a2edf31552710c1e5b171c4
[ "MIT" ]
null
null
null
from pyodbc import connect from dataclasses import dataclass import humps @dataclass class SqlServer: host: str = "sql server hostname" port: str = "1433" uid: str = "sql server user id" pwd: str = "sql server user password" driver: str = "{ODBC Driver 17 for SQL Server}" database: str = "sql ...
27.676471
77
0.678002
d188c6c638eaedb53709e3c07bcf0d14feb60e9b
2,958
py
Python
tests/core/tests/test_base_formats.py
kutera/django-import-export
8f16f53c1dea8fa1f87ac3e80d36089bacc728af
[ "BSD-2-Clause" ]
132
2015-01-06T21:43:42.000Z
2021-04-05T10:01:49.000Z
tests/core/tests/test_base_formats.py
kutera/django-import-export
8f16f53c1dea8fa1f87ac3e80d36089bacc728af
[ "BSD-2-Clause" ]
87
2015-01-04T08:24:19.000Z
2017-05-08T18:09:45.000Z
tests/core/tests/test_base_formats.py
kutera/django-import-export
8f16f53c1dea8fa1f87ac3e80d36089bacc728af
[ "BSD-2-Clause" ]
95
2015-01-01T22:30:15.000Z
2021-06-25T14:54:16.000Z
import os from django.test import TestCase from django.utils.encoding import force_text from import_export.formats import base_formats class XLSTest(TestCase): def test_binary_format(self): self.assertTrue(base_formats.XLS().is_binary()) class XLSXTest(TestCase): def setUp(self): self.fo...
30.183673
77
0.611224
ade88b4f725f5b5cbba22135a74149bf803b6f6b
3,509
py
Python
rllib/value_function/model_based_q_function.py
SamueleMeta/optimal_IS
7d8e0041825acfa003874cd1ad2aec0581f6a9e1
[ "MIT" ]
null
null
null
rllib/value_function/model_based_q_function.py
SamueleMeta/optimal_IS
7d8e0041825acfa003874cd1ad2aec0581f6a9e1
[ "MIT" ]
null
null
null
rllib/value_function/model_based_q_function.py
SamueleMeta/optimal_IS
7d8e0041825acfa003874cd1ad2aec0581f6a9e1
[ "MIT" ]
null
null
null
"""Value function that is computed by integrating a q-function.""" import torch from rllib.algorithms.abstract_mb_algorithm import AbstractMBAlgorithm from rllib.util.neural_networks.utilities import DisableGradient, unfreeze_parameters from rllib.util.utilities import RewardTransformer from rllib.util.value_estimati...
34.742574
87
0.646053
0740a0c22ab187f1cca845e157c92983e6fb7ba9
35,085
py
Python
src/python/pants/backend/python/tasks/pytest_run.py
viktortnk/pants
54c98206de5ac9aadfe26d83175f472941be6c7d
[ "Apache-2.0" ]
1
2020-06-13T22:01:39.000Z
2020-06-13T22:01:39.000Z
src/python/pants/backend/python/tasks/pytest_run.py
viktortnk/pants
54c98206de5ac9aadfe26d83175f472941be6c7d
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/tasks/pytest_run.py
viktortnk/pants
54c98206de5ac9aadfe26d83175f472941be6c7d
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import configparser import itertools import json import os import shutil import time import traceback import uuid from collections import OrderedDict from contextlib import contextmanager ...
44.132075
110
0.611002