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
c195cd96171fa5d329e06c61882fd6977a8ea77c
1,770
py
Python
examples/tutorials/lesson5/ddpg/model.py
jkren6/PARL
7299032f8e1804bb4ada0f087fd485816046fa90
[ "Apache-2.0" ]
3,172
2018-05-22T02:02:29.000Z
2022-03-31T09:14:56.000Z
examples/tutorials/lesson5/ddpg/model.py
ic7y/PARL
e8797bd0d31d81bc81aae8b12792ff922bcb8ea9
[ "Apache-2.0" ]
422
2018-05-17T16:58:45.000Z
2022-03-31T02:03:25.000Z
examples/tutorials/lesson5/ddpg/model.py
ic7y/PARL
e8797bd0d31d81bc81aae8b12792ff922bcb8ea9
[ "Apache-2.0" ]
794
2018-05-21T18:33:19.000Z
2022-03-30T13:38:09.000Z
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
28.095238
74
0.662712
86909a2871ebfeba00755381dd116afb0a1a45b3
2,986
py
Python
source/pruning.py
holderekt/regression-tree
130fe07262faea8681159092718310d9aefe9889
[ "MIT" ]
null
null
null
source/pruning.py
holderekt/regression-tree
130fe07262faea8681159092718310d9aefe9889
[ "MIT" ]
null
null
null
source/pruning.py
holderekt/regression-tree
130fe07262faea8681159092718310d9aefe9889
[ "MIT" ]
null
null
null
import numpy as np # Update tree nodes with information on ssr and leaves for fast pruning def update_tree_pruning(tree, node): if(node.is_leaf()): node.ssr = tree.node_ssr(node) node.leaves = 1 else: l_ssr, l_leaves = update_tree_pruning(tree, node.left) r_ssr, r_leaves = updat...
37.325
111
0.691896
7af2bfdcdc6b8cee217666d3b9870d16fb896e2a
10,086
py
Python
Lib/site-packages/PyQt5/examples/mainwindows/application/application.py
heylenz/python27
bee49fa9d65b8ab7d591146a5b6cd47aeb41d940
[ "bzip2-1.0.6", "MIT" ]
null
null
null
Lib/site-packages/PyQt5/examples/mainwindows/application/application.py
heylenz/python27
bee49fa9d65b8ab7d591146a5b6cd47aeb41d940
[ "bzip2-1.0.6", "MIT" ]
null
null
null
Lib/site-packages/PyQt5/examples/mainwindows/application/application.py
heylenz/python27
bee49fa9d65b8ab7d591146a5b6cd47aeb41d940
[ "bzip2-1.0.6", "MIT" ]
null
null
null
#!/usr/bin/env python ############################################################################# ## ## Copyright (C) 2013 Riverbank Computing Limited. ## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ## All rights reserved. ## ## This file is part of the examples of PyQt. ## ## $QT_BEGIN_LICENS...
36.150538
86
0.630974
2f5b4d0e1b9c07461ab7a617f7d7774009b3587d
5,989
py
Python
hw-1/hw1_vm2486-1.py
vibhutiM/ml-columbia
75a33bea6893f03e50f1509f70728a6030ab9a37
[ "MIT" ]
null
null
null
hw-1/hw1_vm2486-1.py
vibhutiM/ml-columbia
75a33bea6893f03e50f1509f70728a6030ab9a37
[ "MIT" ]
null
null
null
hw-1/hw1_vm2486-1.py
vibhutiM/ml-columbia
75a33bea6893f03e50f1509f70728a6030ab9a37
[ "MIT" ]
null
null
null
#from __future__ import __main__ #%matplotlib inline import numpy as np import matplotlib.pyplot as plt import pandas as pd import math import sys import os class Ridge(object): ''' The class ridge performs ridge regression where the input value X has an already appended coloumn of 1 to account for bias i...
29.648515
108
0.602271
5330f45970ace0f2a396d2f623aaaa0ec5a2ffcd
25,199
py
Python
bayesfast/modules/poly.py
HerculesJack/bayesfast
4354bab286bb4e3019eabba4c04a75d51fe04967
[ "Apache-2.0" ]
33
2019-11-06T15:42:50.000Z
2022-01-14T05:56:03.000Z
bayesfast/modules/poly.py
HerculesJack/bayesfast
4354bab286bb4e3019eabba4c04a75d51fe04967
[ "Apache-2.0" ]
30
2020-04-07T05:23:15.000Z
2022-03-25T21:34:56.000Z
bayesfast/modules/poly.py
HerculesJack/bayesfast
4354bab286bb4e3019eabba4c04a75d51fe04967
[ "Apache-2.0" ]
7
2019-12-03T06:43:20.000Z
2021-12-09T14:26:06.000Z
import copy from ..core.module import * from ..core.density import * from ._poly import * import numpy as np from scipy.linalg import lstsq from collections import namedtuple import warnings __all__ = ['PolyConfig', 'PolyModel'] # TODO: check the fit mechanism BoundOptions = namedtuple('BoundOptions', ...
42.138796
81
0.530696
f471ca7340d1d7ae43b4059dc83157856d25977a
844
py
Python
homeassistant/components/webostv/const.py
mtarjoianu/core
44e9146463ac505eb3d1c0651ad126cb25c28a54
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/webostv/const.py
mtarjoianu/core
44e9146463ac505eb3d1c0651ad126cb25c28a54
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
homeassistant/components/webostv/const.py
mtarjoianu/core
44e9146463ac505eb3d1c0651ad126cb25c28a54
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Constants used for LG webOS Smart TV.""" import asyncio from aiowebostv import WebOsTvCommandError from websockets.exceptions import ConnectionClosed, ConnectionClosedOK DOMAIN = "webostv" PLATFORMS = ["media_player"] DATA_CONFIG_ENTRY = "config_entry" DATA_HASS_CONFIG = "hass_config" DEFAULT_NAME = "LG webOS Smar...
23.444444
70
0.783175
39b3caf8b39d682660c4bf55abda9c946b2551a0
18,088
py
Python
aiida_cp2k/utils/parser.py
hdsassnick/aiida-cp2k
02a4769beedb1cdcb9c5a05a30f4d64f9781559e
[ "MIT" ]
null
null
null
aiida_cp2k/utils/parser.py
hdsassnick/aiida-cp2k
02a4769beedb1cdcb9c5a05a30f4d64f9781559e
[ "MIT" ]
null
null
null
aiida_cp2k/utils/parser.py
hdsassnick/aiida-cp2k
02a4769beedb1cdcb9c5a05a30f4d64f9781559e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################### # Copyright (c), The AiiDA-CP2K authors. # # SPDX-License-Identifier: MIT # # AiiDA-CP2K is hosted on GitHub at https://github.com/a...
45.792405
116
0.53201
3455a7e9c631b6753d62729b8bb0ec6fa0bf949e
1,247
py
Python
src/utils/checkpoint.py
infynite/hair-dye
d216e27e41f954221bae41ee6250ca29f5d2e859
[ "MIT" ]
45
2019-05-08T18:06:59.000Z
2022-03-18T11:45:58.000Z
src/utils/checkpoint.py
infynite/hair-dye
d216e27e41f954221bae41ee6250ca29f5d2e859
[ "MIT" ]
5
2019-05-22T13:00:34.000Z
2021-02-03T10:12:58.000Z
src/utils/checkpoint.py
infynite/hair-dye
d216e27e41f954221bae41ee6250ca29f5d2e859
[ "MIT" ]
9
2019-05-16T15:46:48.000Z
2021-06-07T14:06:04.000Z
import os import pickle import torch META_FILE = 'meta.pt' class CheckpointManager: def __init__(self, path): self.path = path def __fullpath(self, name): return os.path.join(self.path, name) def __ensure_folder(self): if not os.path.exists(self.path): os.makedirs(sel...
23.528302
62
0.604651
399ca1615db48b4335f6ade233aab697bd616e8f
8,808
py
Python
statsmodels/stats/tests/test_multi.py
toobaz/statsmodels
5286dd713a809b0630232508bf9ad5104aae1980
[ "BSD-3-Clause" ]
2
2017-01-05T22:44:37.000Z
2018-04-26T08:34:00.000Z
statsmodels/stats/tests/test_multi.py
toobaz/statsmodels
5286dd713a809b0630232508bf9ad5104aae1980
[ "BSD-3-Clause" ]
null
null
null
statsmodels/stats/tests/test_multi.py
toobaz/statsmodels
5286dd713a809b0630232508bf9ad5104aae1980
[ "BSD-3-Clause" ]
1
2020-03-15T05:36:15.000Z
2020-03-15T05:36:15.000Z
import numpy as np from numpy.testing import assert_almost_equal, assert_equal from statsmodels.stats.multitest import (multipletests, fdrcorrection, fdrcorrection_twostage) from statsmodels.stats.multicomp import tukeyhsd pval0 = np.array([0.838541367553 , 0.642193923795 , 0...
53.707317
86
0.591848
b72317b186eaa9ca69bab31aaafd4cdaccdb86f5
7,216
py
Python
tools/testing/source_code_test.py
ben-arnao/addons
3c6bc0e09f8f640d3afe77d71909148e872522a8
[ "Apache-2.0" ]
null
null
null
tools/testing/source_code_test.py
ben-arnao/addons
3c6bc0e09f8f640d3afe77d71909148e872522a8
[ "Apache-2.0" ]
null
null
null
tools/testing/source_code_test.py
ben-arnao/addons
3c6bc0e09f8f640d3afe77d71909148e872522a8
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
41
91
0.649806
e7e15c29fe44500814054c051c42de91a49fe91e
185
py
Python
demos/instance_occlsegm/instance_occlsegm_lib/contrib/instance_occlsegm/models/fcn/__init__.py
pazeshun/jsk_apc
0ff42000ad5992f8a31e719a5360a39cf4fa1fde
[ "BSD-3-Clause" ]
null
null
null
demos/instance_occlsegm/instance_occlsegm_lib/contrib/instance_occlsegm/models/fcn/__init__.py
pazeshun/jsk_apc
0ff42000ad5992f8a31e719a5360a39cf4fa1fde
[ "BSD-3-Clause" ]
2
2019-04-11T05:36:23.000Z
2019-08-19T12:58:10.000Z
demos/instance_occlsegm/instance_occlsegm_lib/contrib/instance_occlsegm/models/fcn/__init__.py
pazeshun/jsk_apc
0ff42000ad5992f8a31e719a5360a39cf4fa1fde
[ "BSD-3-Clause" ]
null
null
null
# flake8: noqa from .fcn16s_resnet import FCN16sResNet from .fcn16s_resnet_occlusion import FCN16sResNetOcclusion from .fcn16s_resnet_occlusion import OcclusionSegmentationTrainChain
26.428571
68
0.881081
16f14d9c9ce1086d76271ebdba5a31db37f3131a
5,718
py
Python
virtual/lib/python3.8/site-packages/docstring_parser/common.py
debbyne/gallery
a53f0e90e31628a6e9157612b851ab44de91ce9f
[ "Unlicense" ]
1
2022-01-17T22:56:13.000Z
2022-01-17T22:56:13.000Z
virtual/lib/python3.8/site-packages/docstring_parser/common.py
debbyne/gallery
a53f0e90e31628a6e9157612b851ab44de91ce9f
[ "Unlicense" ]
null
null
null
virtual/lib/python3.8/site-packages/docstring_parser/common.py
debbyne/gallery
a53f0e90e31628a6e9157612b851ab44de91ce9f
[ "Unlicense" ]
null
null
null
"""Common methods for parsing.""" import enum import typing as T PARAM_KEYWORDS = { "param", "parameter", "arg", "argument", "attribute", "key", "keyword", } RAISES_KEYWORDS = {"raises", "raise", "except", "exception"} DEPRECATION_KEYWORDS = {"deprecation", "deprecated"} RETURNS_KEYWORDS = ...
27.490385
79
0.616649
8dec689087b5d062a22b50f7c15fd3d10783e41c
2,222
py
Python
zsimparse/cache.py
gaomy3832/zsimparse
6d94c92f58ca62a11b946dd23031c97eb3fb7ddb
[ "BSD-3-Clause" ]
3
2018-08-26T10:52:40.000Z
2021-01-26T08:58:41.000Z
zsimparse/cache.py
gaomy3832/zsimparse
6d94c92f58ca62a11b946dd23031c97eb3fb7ddb
[ "BSD-3-Clause" ]
null
null
null
zsimparse/cache.py
gaomy3832/zsimparse
6d94c92f58ca62a11b946dd23031c97eb3fb7ddb
[ "BSD-3-Clause" ]
2
2019-09-17T09:24:04.000Z
2020-08-25T11:07:27.000Z
""" $lic$ Copyright (C) 2016-2020, Mingyu Gao All rights reserved. This program is free software: you can redistribute it and/or modify it under the terms of the Modified BSD-3 License as published by the Open Source Initiative. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;...
30.027027
79
0.727723
86c100a245418b3acf5d2ae8fe887a383cca87ca
775
py
Python
tests/unit/unit_test_DictObject.py
pcstout/synapsePythonClient
25ec524dd6acde1fe66224fba04abb3a549faa9e
[ "Apache-2.0" ]
null
null
null
tests/unit/unit_test_DictObject.py
pcstout/synapsePythonClient
25ec524dd6acde1fe66224fba04abb3a549faa9e
[ "Apache-2.0" ]
null
null
null
tests/unit/unit_test_DictObject.py
pcstout/synapsePythonClient
25ec524dd6acde1fe66224fba04abb3a549faa9e
[ "Apache-2.0" ]
null
null
null
from synapseclient.dict_object import DictObject from nose.tools import assert_equals, assert_true, assert_false def test_DictObject(): """Test creation and property access on DictObjects""" d = DictObject({'args_working?': 'yes'}, a=123, b='foobar', nerds=['chris', 'jen', 'janey']) assert_equals(d.a, 123...
38.75
96
0.650323
6904f04689e64e9483611c9d5f66c125f473d0d0
12,467
py
Python
fbpic/picmi/simulation.py
skuschel/fbpic
6920f0e65f04abf82591abfc32a29ea5a1bd6a52
[ "BSD-3-Clause-LBNL" ]
null
null
null
fbpic/picmi/simulation.py
skuschel/fbpic
6920f0e65f04abf82591abfc32a29ea5a1bd6a52
[ "BSD-3-Clause-LBNL" ]
null
null
null
fbpic/picmi/simulation.py
skuschel/fbpic
6920f0e65f04abf82591abfc32a29ea5a1bd6a52
[ "BSD-3-Clause-LBNL" ]
null
null
null
# Copyright 2019, FBPIC contributors # Authors: Remi Lehe, Manuel Kirchen # License: 3-Clause-BSD-LBNL """ This file is part of the Fourier-Bessel Particle-In-Cell code (FB-PIC) It defines the picmi Simulation interface """ import numpy as np from scipy.constants import c, e, m_e from .particle_charge_and_mass import ...
44.366548
100
0.609369
0abc123bce1c9cb17ff58663bae29ba5a2c61202
756
py
Python
pool/pay_record.py
BobZombiE69/pool-reference
c4ecb5795363b1123598a0e3a36ae058beae161e
[ "Apache-2.0" ]
1
2021-08-24T13:19:46.000Z
2021-08-24T13:19:46.000Z
pool/pay_record.py
BobZombiE69/pool-reference
c4ecb5795363b1123598a0e3a36ae058beae161e
[ "Apache-2.0" ]
4
2021-06-15T15:00:26.000Z
2021-10-12T03:31:55.000Z
pool/pay_record.py
BobZombiE69/pool-reference
c4ecb5795363b1123598a0e3a36ae058beae161e
[ "Apache-2.0" ]
5
2021-08-07T19:20:10.000Z
2021-10-18T10:44:29.000Z
from dataclasses import dataclass from chia.types.blockchain_format.sized_bytes import bytes32 from chia.util.ints import uint64 from chia.util.streamable import streamable, Streamable @dataclass(frozen=True) @streamable class PaymentRecord(Streamable): launcher_id: bytes32 # This uniquely identifies the single...
44.470588
106
0.728836
173710a4c0ef620c33bc63d97ee1e4bf3afbfb24
31,412
py
Python
tuframework/pixelCL/network_trainer.py
Magnety/tuFramework_win
4c49e1fdb292aaf1945c81d5d9bc57db0eea42b3
[ "Apache-2.0" ]
null
null
null
tuframework/pixelCL/network_trainer.py
Magnety/tuFramework_win
4c49e1fdb292aaf1945c81d5d9bc57db0eea42b3
[ "Apache-2.0" ]
null
null
null
tuframework/pixelCL/network_trainer.py
Magnety/tuFramework_win
4c49e1fdb292aaf1945c81d5d9bc57db0eea42b3
[ "Apache-2.0" ]
null
null
null
# 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...
42.563686
184
0.613428
063a7284fa7a8aa7229efd3033e77d669c88a331
476
py
Python
dynamic_profile/migrations/0004_auto_20190814_1225.py
ebsuku/wazimap-dynamic-profile
4a66878965b9f452262a41ef1a02c7da5e5b4341
[ "MIT" ]
1
2020-02-04T05:03:54.000Z
2020-02-04T05:03:54.000Z
dynamic_profile/migrations/0004_auto_20190814_1225.py
ebsuku/wazimap-dynamic-profile
4a66878965b9f452262a41ef1a02c7da5e5b4341
[ "MIT" ]
null
null
null
dynamic_profile/migrations/0004_auto_20190814_1225.py
ebsuku/wazimap-dynamic-profile
4a66878965b9f452262a41ef1a02c7da5e5b4341
[ "MIT" ]
1
2020-01-03T20:30:43.000Z
2020-01-03T20:30:43.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-08-14 10:25 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('dynamic_profile', '0003_indicatorprofile_selected_column'), ] operations = [ migra...
22.666667
69
0.644958
b7d028a0fae5f757471c705dac648ef1dd57ce46
1,799
py
Python
data/p4VQE/R1/benchmark/startCirq114.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R1/benchmark/startCirq114.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R1/benchmark/startCirq114.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=4 # total number=11 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for...
28.109375
77
0.690939
8497b20aca72c164beaf5c3c72ca0da9db65fec2
457
py
Python
app.py
jose-marquez89/cryptovest
e0f04e3cbaa01f2de969ed17462052b23328fff8
[ "MIT" ]
null
null
null
app.py
jose-marquez89/cryptovest
e0f04e3cbaa01f2de969ed17462052b23328fff8
[ "MIT" ]
null
null
null
app.py
jose-marquez89/cryptovest
e0f04e3cbaa01f2de969ed17462052b23328fff8
[ "MIT" ]
null
null
null
import dash import dash_bootstrap_components as dbc external_stylesheets = [ dbc.themes.DARKLY, 'https://use.fontawesome.com/releases/v5.9.0/css/all.css' ] meta_tags = [ {'name': 'viewport', 'content': 'width=device-width, initial-scale=1'} ] app = dash.Dash(__name__, external_stylesheets=external_styles...
26.882353
74
0.722101
7ac515109ad18bad34e68f6a520616efdb198482
11,862
py
Python
custom_components/knx/light.py
dlzcn/hass_confs
131438ac31471ae7cba2f083c495a8c19cc5cfd6
[ "MIT" ]
5
2018-11-12T16:07:26.000Z
2020-04-07T17:54:48.000Z
custom_components/knx/light.py
dlzcn/hass_confs
131438ac31471ae7cba2f083c495a8c19cc5cfd6
[ "MIT" ]
null
null
null
custom_components/knx/light.py
dlzcn/hass_confs
131438ac31471ae7cba2f083c495a8c19cc5cfd6
[ "MIT" ]
2
2018-11-20T01:04:31.000Z
2020-03-05T14:04:05.000Z
"""Support for KNX/IP lights.""" from enum import Enum import voluptuous as vol from xknx.devices import Light as XknxLight from homeassistant.components.knx import ATTR_DISCOVER_DEVICES, DATA_KNX from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_COLOR_TEMP, ATTR_HS_COLOR, ATTR_WHITE_...
37.184953
88
0.686056
79dc091c979f81ef157ff4d5c4ed8af1ad789dcd
400
py
Python
env/lib/python3.8/site-packages/fiona/fio/ls.py
CristianCristanchoT/predyctiva
d745f9d687dc0de0a1615ee219b86a9d68571782
[ "MIT" ]
778
2015-01-03T18:29:34.000Z
2022-03-31T03:17:53.000Z
env/lib/python3.8/site-packages/fiona/fio/ls.py
CristianCristanchoT/predyctiva
d745f9d687dc0de0a1615ee219b86a9d68571782
[ "MIT" ]
848
2015-01-07T17:16:10.000Z
2022-03-27T23:14:58.000Z
env/lib/python3.8/site-packages/fiona/fio/ls.py
CristianCristanchoT/predyctiva
d745f9d687dc0de0a1615ee219b86a9d68571782
[ "MIT" ]
195
2015-01-29T21:48:37.000Z
2022-03-25T15:18:24.000Z
"""$ fiona ls""" import json import click from cligj import indent_opt import fiona from fiona.fio import with_context_env @click.command() @click.argument('input', required=True) @indent_opt @click.pass_context @with_context_env def ls(ctx, input, indent): """ List layers in a datasource. """ res...
16.666667
49
0.7175
87425339ee45ba3f7dc9c90b8d0b588b2286996c
1,106
py
Python
waflib/fixpy2.py
frikiluser/sprai
bce8370f627ad078568fac0a10fc201175cd5043
[ "MIT" ]
null
null
null
waflib/fixpy2.py
frikiluser/sprai
bce8370f627ad078568fac0a10fc201175cd5043
[ "MIT" ]
null
null
null
waflib/fixpy2.py
frikiluser/sprai
bce8370f627ad078568fac0a10fc201175cd5043
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # encoding: utf-8 # WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file import os all_modifs={} def fixdir(dir): global all_modifs for k in all_modifs: for v in all_modifs[k]: modif(os.path.join(dir,'waflib'),k,v) def modif(dir,name,fun): if n...
20.481481
102
0.652803
3a38758b936a8f9cfa66c7bebc2a53ff0d627e0c
3,736
py
Python
test/functional/rpc_createmultisig.py
umarfarooqitgcuf/ritecoin
c30bb875335db4e02f9a8faf1c0ed4138bdd4762
[ "MIT" ]
null
null
null
test/functional/rpc_createmultisig.py
umarfarooqitgcuf/ritecoin
c30bb875335db4e02f9a8faf1c0ed4138bdd4762
[ "MIT" ]
null
null
null
test/functional/rpc_createmultisig.py
umarfarooqitgcuf/ritecoin
c30bb875335db4e02f9a8faf1c0ed4138bdd4762
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-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. """Test transaction signing using the signrawtransaction* RPCs.""" from test_framework.test_framework imp...
36.627451
160
0.622859
d581f80596e52abff69e1cffc6c4993ebc27b3fe
23,524
py
Python
neutron/tests/functional/db/test_migrations.py
cleo4zheng/neutron
6d65318308edfd984bdd0ff1ac7fef9486a040f7
[ "Apache-2.0" ]
1
2019-06-02T06:15:39.000Z
2019-06-02T06:15:39.000Z
neutron/tests/functional/db/test_migrations.py
cleo4zheng/neutron
6d65318308edfd984bdd0ff1ac7fef9486a040f7
[ "Apache-2.0" ]
null
null
null
neutron/tests/functional/db/test_migrations.py
cleo4zheng/neutron
6d65318308edfd984bdd0ff1ac7fef9486a040f7
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 OpenStack Foundation # # 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 ...
41.70922
79
0.618985
f949429de2d4d8356551119d7cd661227abb70c0
1,881
py
Python
setup.py
chembl/chembl_new_webservices
59fb52665cc1fc09a495d9a8c118687ddd0ad781
[ "Apache-2.0" ]
16
2015-02-20T15:54:56.000Z
2022-03-04T15:33:11.000Z
setup.py
chembl/chembl_webservices_2
59fb52665cc1fc09a495d9a8c118687ddd0ad781
[ "Apache-2.0" ]
144
2015-02-18T22:14:18.000Z
2022-03-07T13:01:20.000Z
setup.py
chembl/chembl_new_webservices
59fb52665cc1fc09a495d9a8c118687ddd0ad781
[ "Apache-2.0" ]
5
2015-03-03T12:58:29.000Z
2020-11-03T21:16:20.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'mnowotka' import sys try: from setuptools import setup except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup if sys.version_info < (2, 7, 3) or sys.version_info >= (3, 0, 0): raise Excepti...
30.33871
74
0.580542
1bd60bc226a2f44c770cc0fc4ea6d6fe08f7c805
9,130
py
Python
victor/models.py
selimsef/dsb2018_topcoders
867f5f357179e1c033b50cd93571859b97ad5c22
[ "MIT" ]
413
2018-07-06T20:29:59.000Z
2022-03-10T11:46:59.000Z
victor/models.py
CoreSheep/dsb2018_topcoders
867f5f357179e1c033b50cd93571859b97ad5c22
[ "MIT" ]
18
2018-07-07T11:56:04.000Z
2022-02-04T20:16:41.000Z
victor/models.py
CoreSheep/dsb2018_topcoders
867f5f357179e1c033b50cd93571859b97ad5c22
[ "MIT" ]
161
2018-07-06T20:38:31.000Z
2022-03-15T04:03:28.000Z
from keras import backend as K from keras.models import Model from keras.layers import Input, BatchNormalization, Conv2D, MaxPooling2D, AveragePooling2D, ZeroPadding2D, concatenate, Concatenate, UpSampling2D, Activation from keras.losses import categorical_crossentropy from keras.applications.inception_resnet_v2 import...
41.126126
167
0.615334
0823114f4bab9c48805962e953f415af19e043e1
841
py
Python
Ska/engarchive/fetch_eng.py
jmodelcxc/eng_archive
04017f062ef1ab023a58b6d9e5bde19992c8398c
[ "BSD-3-Clause" ]
null
null
null
Ska/engarchive/fetch_eng.py
jmodelcxc/eng_archive
04017f062ef1ab023a58b6d9e5bde19992c8398c
[ "BSD-3-Clause" ]
64
2015-02-25T20:25:41.000Z
2022-03-26T23:39:03.000Z
Ska/engarchive/fetch_eng.py
jmodelcxc/eng_archive
04017f062ef1ab023a58b6d9e5bde19992c8398c
[ "BSD-3-Clause" ]
4
2016-01-28T19:48:53.000Z
2021-02-04T16:38:03.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst import sys from .fetch import * # noqa from . import fetch from . import __version__ # noqa # Module-level units, defaults to CXC units (e.g. Kelvins etc) UNITS = fetch.Units('eng') def get_units(): return UNITS['system'] get_units.__doc__ = fe...
18.282609
63
0.70868
20d923b20e14d5666aa3c8acf9ad083276e82667
73,934
py
Python
labelImg.py
abilnf/labelImg
250da1e2756ea6508e00ad6b2698a5608ed71672
[ "MIT" ]
null
null
null
labelImg.py
abilnf/labelImg
250da1e2756ea6508e00ad6b2698a5608ed71672
[ "MIT" ]
null
null
null
labelImg.py
abilnf/labelImg
250da1e2756ea6508e00ad6b2698a5608ed71672
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse import codecs import distutils.spawn import os.path import platform import re import sys import subprocess import shutil import webbrowser as wb from functools import partial from collections import defaultdict try: from PyQt5.QtGui import * from P...
41.396417
181
0.612803
b478fd839648bdb731a3a2ab3b630701a0659ef8
1,234
py
Python
dirsync.py
ozdemiremrah81/dirsync
337f2f651c85f4d51ea894cde259de8ab06b2ac6
[ "MIT" ]
null
null
null
dirsync.py
ozdemiremrah81/dirsync
337f2f651c85f4d51ea894cde259de8ab06b2ac6
[ "MIT" ]
null
null
null
dirsync.py
ozdemiremrah81/dirsync
337f2f651c85f4d51ea894cde259de8ab06b2ac6
[ "MIT" ]
null
null
null
from shutil import copytree, copy2 import os sourcerootfolder = input("Source folder: /home/emrah/Documents/1:") destinationrootfolder = input("Source folder: /home/emrah/Pictures/Wallpapers/2:") for root, dirs, files in os.walk(sourcerootfolder, topdown=True): for dname in sorted(dirs): fullsourcepath=os...
45.703704
94
0.679903
5e2438434d2b2cf175c6f19477aaceb9ec139413
2,925
py
Python
content/test/faceswap/plugins/convert/writer/_base.py
gwdgithubnom/gjgr
581957a296b13a4231ea1e67ec62083b7da445bf
[ "MIT" ]
3
2019-08-08T03:27:26.000Z
2020-08-17T13:11:24.000Z
plugins/convert/writer/_base.py
aaman123/faceswap
a5825c3457b062c1824ef3f8b02e4f3fa4c2217f
[ "MIT" ]
12
2020-09-26T00:56:55.000Z
2022-03-12T00:24:08.000Z
plugins/convert/writer/_base.py
aaman123/faceswap
a5825c3457b062c1824ef3f8b02e4f3fa4c2217f
[ "MIT" ]
2
2019-09-26T08:52:22.000Z
2020-03-27T00:33:00.000Z
#!/usr/bin/env python3 """ Parent class for output writers for faceswap.py converter """ import logging import os import re from plugins.convert._config import Config logger = logging.getLogger(__name__) # pylint: disable=invalid-name def get_config(plugin_name, configfile=None): """ Return the config for the...
41.785714
98
0.66188
edcc881f564a9cdaaba60daeeeb554504b548e7e
50,365
py
Python
tests/encoder_decoder/test_modeling_tf_encoder_decoder.py
lmvasque/transformers
c85547af2b69f9082bcd7bac97092b1d162f3fdc
[ "Apache-2.0" ]
1
2019-10-01T17:42:02.000Z
2019-10-01T17:42:02.000Z
tests/encoder_decoder/test_modeling_tf_encoder_decoder.py
lmvasque/transformers
c85547af2b69f9082bcd7bac97092b1d162f3fdc
[ "Apache-2.0" ]
2
2022-03-14T10:13:16.000Z
2022-03-14T11:50:27.000Z
tests/encoder_decoder/test_modeling_tf_encoder_decoder.py
lmvasque/transformers
c85547af2b69f9082bcd7bac97092b1d162f3fdc
[ "Apache-2.0" ]
2
2022-03-21T04:32:39.000Z
2022-03-22T01:02:49.000Z
# coding=utf-8 # Copyright 2020 HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
47.78463
2,356
0.708369
e40ec92191a6b7a95691bdc5e3ef96725c1cf3b4
748
py
Python
Validation/RecoParticleFlow/python/pfTauBenchmarkGeneric_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Validation/RecoParticleFlow/python/pfTauBenchmarkGeneric_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Validation/RecoParticleFlow/python/pfTauBenchmarkGeneric_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms pfTauBenchmarkGeneric = cms.EDAnalyzer("GenericBenchmarkAnalyzer", OutputFile = cms.untracked.string('benchmark.root'), InputTruthLabel = cms.InputTag(''), minEta = cms.double(-1), maxEta = cms.double(2.8), recPt = cms.double(10.0), deltaRMax = cms.doub...
34
74
0.640374
0bca14dc6742a33a12654d65e33ecdf4ed1b31f8
3,394
py
Python
ecoli_in_pipe/ecoliInPipe.py
pcmagic/stokes_flow
464d512d3739eee77b33d1ebf2f27dae6cfa0423
[ "MIT" ]
1
2018-11-11T05:00:53.000Z
2018-11-11T05:00:53.000Z
ecoli_in_pipe/ecoliInPipe.py
pcmagic/stokes_flow
464d512d3739eee77b33d1ebf2f27dae6cfa0423
[ "MIT" ]
null
null
null
ecoli_in_pipe/ecoliInPipe.py
pcmagic/stokes_flow
464d512d3739eee77b33d1ebf2f27dae6cfa0423
[ "MIT" ]
null
null
null
# coding=utf-8 import sys import petsc4py petsc4py.init(sys.argv) # from time import time # from scipy.io import loadmat # from src.stokes_flow import problem_dic, obj_dic # from src.geo import * from petsc4py import PETSc from src import stokes_flow as sf from src.myio import * from src.objComposite import createE...
36.106383
102
0.705657
c55127e22d70071bbb3046cc9a9440fc1d6ac244
8,016
py
Python
biblecoin/specials.py
biblecoin/pybiblecoin
ac554b0dd4d695f7a1f85861c989e04196986f1d
[ "MIT" ]
null
null
null
biblecoin/specials.py
biblecoin/pybiblecoin
ac554b0dd4d695f7a1f85861c989e04196986f1d
[ "MIT" ]
null
null
null
biblecoin/specials.py
biblecoin/pybiblecoin
ac554b0dd4d695f7a1f85861c989e04196986f1d
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- from py_ecc.secp256k1 import privtopub, ecdsa_raw_recover, N as secp256k1n import hashlib from rlp.utils import ascii_chr from biblecoin import utils, opcodes from biblecoin.utils import safe_ord, decode_hex, encode_int32 ZERO_PRIVKEY_ADDR = decode_hex('3f17f1962b36e491b30a40b2405849e597ba5fb5...
33.123967
84
0.60978
842eb942b810b36d77885f277ea2a8ca83b94a60
1,960
py
Python
tools/CountColor.py
lifenjoiner/notepad2
72c7c6848e487311a40c34d4399bd0a56baf9e1f
[ "MIT" ]
null
null
null
tools/CountColor.py
lifenjoiner/notepad2
72c7c6848e487311a40c34d4399bd0a56baf9e1f
[ "MIT" ]
null
null
null
tools/CountColor.py
lifenjoiner/notepad2
72c7c6848e487311a40c34d4399bd0a56baf9e1f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import os.path import re kReColorHex = re.compile(r'#[0-9A-Fa-f]{6}') def parse_key_value(line): line = line.strip() if not line or line[0] in ';#[': return None items = line.split('=', 2) if not items or len(items) != 2: return None items[0] = items[0].strip() items[1] =...
24.197531
73
0.65102
3f164e2065abbd5de6205e61514ca7470693015b
15,196
py
Python
ccxt/__init__.py
DunnCreativeSS/cash_carry_leveraged_futures_arbitrageur
1120ebfb487ce4987fe70e6645b36e0d7ce041ec
[ "Apache-2.0" ]
1
2021-09-06T00:09:11.000Z
2021-09-06T00:09:11.000Z
ccxt/__init__.py
DunnCreativeSS/cash_carry_leveraged_futures_arbitrageur
1120ebfb487ce4987fe70e6645b36e0d7ce041ec
[ "Apache-2.0" ]
null
null
null
ccxt/__init__.py
DunnCreativeSS/cash_carry_leveraged_futures_arbitrageur
1120ebfb487ce4987fe70e6645b36e0d7ce041ec
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """CCXT: CryptoCurrency eXchange Trading Library""" # MIT License # Copyright (c) 2017 Igor Kroitor # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restricti...
46.329268
80
0.533825
f95f9ab30c78b83dd39bb38148f421c4c80a77f8
2,665
py
Python
discordbot/utils/pager.py
AXXIAR/MiniGamesBot
7d2e15dfafbe703949326545177ea5782d52a294
[ "MIT" ]
null
null
null
discordbot/utils/pager.py
AXXIAR/MiniGamesBot
7d2e15dfafbe703949326545177ea5782d52a294
[ "MIT" ]
null
null
null
discordbot/utils/pager.py
AXXIAR/MiniGamesBot
7d2e15dfafbe703949326545177ea5782d52a294
[ "MIT" ]
null
null
null
import asyncio import re from discordbot.utils.emojis import ARROW_LEFT, ARROW_RIGHT, STOP class Pager: def __init__(self, bot, context, pages, timeout=60.0): self.bot = bot self.context = context self.pages = pages self.timeout = timeout self.current_page = 0 self...
34.61039
107
0.539962
748e4d6b9e2e614d194a552610ced31c433759b7
2,599
py
Python
WEEKS/CD_Sata-Structures/_RESOURCES/course-work/Sprint-Challenge--Hash-BC/hashtables/ex2/hashtables.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_RESOURCES/course-work/Sprint-Challenge--Hash-BC/hashtables/ex2/hashtables.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_RESOURCES/course-work/Sprint-Challenge--Hash-BC/hashtables/ex2/hashtables.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
# ''' # Linked List hash table key/value pair # ''' class LinkedPair: def __init__(self, key, value): self.key = key self.value = value self.next = None # ''' # Resizing hash table # ''' class HashTable: def __init__(self, capacity): self.capacity = capacity self.storag...
23.844037
83
0.648326
17e71797715ef1496b49d5add0aebb87b5711e41
2,500
py
Python
congress/bills.py
weimer-coders/ted-yoho-bot
caa35c36b6fbcb88a30c4c4ed204a78e23802394
[ "MIT" ]
null
null
null
congress/bills.py
weimer-coders/ted-yoho-bot
caa35c36b6fbcb88a30c4c4ed204a78e23802394
[ "MIT" ]
null
null
null
congress/bills.py
weimer-coders/ted-yoho-bot
caa35c36b6fbcb88a30c4c4ed204a78e23802394
[ "MIT" ]
null
null
null
from .client import Client from .utils import CURRENT_CONGRESS, check_chamber class BillsClient(Client): def by_member(self, member_id, type='introduced'): """ Takes a bioguide ID and a type (introduced|updated|cosponsored|withdrawn), returns recent bills """ path = "...
39.0625
98
0.664
9fe2489490452234fd646e71b3a97abfe394be08
3,176
py
Python
lib/pegasus/python/Pegasus/service/server.py
fengggli/pegasus
b68f588d90eb2b832086ed627d61414691f8ba95
[ "Apache-2.0" ]
null
null
null
lib/pegasus/python/Pegasus/service/server.py
fengggli/pegasus
b68f588d90eb2b832086ed627d61414691f8ba95
[ "Apache-2.0" ]
null
null
null
lib/pegasus/python/Pegasus/service/server.py
fengggli/pegasus
b68f588d90eb2b832086ed627d61414691f8ba95
[ "Apache-2.0" ]
null
null
null
import logging import os import random from OpenSSL import SSL, crypto from Pegasus.command import LoggingCommand from Pegasus.service import app log = logging.getLogger(__name__) def generate_self_signed_certificate(certfile, pkeyfile): "If certfile and pkeyfile don't exist, create a self-signed certificate" ...
28.357143
79
0.597292
2a6776668af17a4ef33d11484533e96eaf3cf50d
7,833
py
Python
tests/components/flow_director/test_dinf.py
clebouteiller/landlab
e6f47db76ea0814c4c5a24e695bbafb74c722ff7
[ "MIT" ]
1
2022-01-07T02:36:07.000Z
2022-01-07T02:36:07.000Z
tests/components/flow_director/test_dinf.py
clebouteiller/landlab
e6f47db76ea0814c4c5a24e695bbafb74c722ff7
[ "MIT" ]
1
2021-11-11T21:23:46.000Z
2021-11-11T21:23:46.000Z
tests/components/flow_director/test_dinf.py
clebouteiller/landlab
e6f47db76ea0814c4c5a24e695bbafb74c722ff7
[ "MIT" ]
2
2019-08-19T08:58:10.000Z
2022-01-07T02:36:01.000Z
import numpy as np import pytest from numpy.testing import assert_array_equal from landlab import RasterModelGrid, VoronoiDelaunayGrid from landlab.components import FlowAccumulator, FlowDirectorDINF from landlab.components.flow_director import flow_direction_dinf def test_not_implemented_voroni(): x = [0, 0.1, ...
29.011111
91
0.565045
ed7b7caf28bc37277e659d95196ab3f1d7efafa9
1,222
py
Python
code/plots/hybrid/pca_eigenvalues.py
geovanecomp/Masters-Degree
6e816431f76abe576e75013e40fccf8928804a15
[ "MIT" ]
null
null
null
code/plots/hybrid/pca_eigenvalues.py
geovanecomp/Masters-Degree
6e816431f76abe576e75013e40fccf8928804a15
[ "MIT" ]
null
null
null
code/plots/hybrid/pca_eigenvalues.py
geovanecomp/Masters-Degree
6e816431f76abe576e75013e40fccf8928804a15
[ "MIT" ]
null
null
null
"""Plost the PCA eigen values from the SMF""" import os.path import numpy as np import matplotlib.pyplot as plt import sys import inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(currentdir) sys.path.insert(0, parentdir) from config import Le...
31.333333
113
0.723404
299a98cc4417e5e055ac9c7215d270aa318f551b
1,822
py
Python
src/py/flwr/server/client_proxy.py
g-pichler/flower
e455cdc3678921ece960287a0e1ae5123500c948
[ "Apache-2.0" ]
1
2022-03-10T12:34:19.000Z
2022-03-10T12:34:19.000Z
src/py/flwr/server/client_proxy.py
g-pichler/flower
e455cdc3678921ece960287a0e1ae5123500c948
[ "Apache-2.0" ]
null
null
null
src/py/flwr/server/client_proxy.py
g-pichler/flower
e455cdc3678921ece960287a0e1ae5123500c948
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Adap GmbH. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
30.366667
80
0.665752
d1539e89509474e388bcf86faa0a7a150e2b47be
2,486
py
Python
2019/15/part1.py
timofurrer/aoc-2020
446b688a57601d9891f520e43b7f822c373a6ff4
[ "MIT" ]
null
null
null
2019/15/part1.py
timofurrer/aoc-2020
446b688a57601d9891f520e43b7f822c373a6ff4
[ "MIT" ]
null
null
null
2019/15/part1.py
timofurrer/aoc-2020
446b688a57601d9891f520e43b7f822c373a6ff4
[ "MIT" ]
null
null
null
import sys from pathlib import Path from collections import defaultdict, deque from copy import deepcopy from enum import IntEnum sys.path.insert(0, str(Path(__file__).parent.parent)) from intcode import Intcode sys.path = sys.path[1:] puzzle_input_path = Path(__file__).parent / "input.txt" with open(puzzle_input_pa...
30.691358
91
0.625101
b5cbba8de4a842c29bce7abe62dc38428fabe4f6
787
py
Python
diamond/database.py
JacoRuit/diamond
e278bf33b53982101be27d8eaa4dce006c2174d7
[ "MIT" ]
1
2015-07-27T14:41:36.000Z
2015-07-27T14:41:36.000Z
diamond/database.py
JacoRuit/diamond
e278bf33b53982101be27d8eaa4dce006c2174d7
[ "MIT" ]
null
null
null
diamond/database.py
JacoRuit/diamond
e278bf33b53982101be27d8eaa4dce006c2174d7
[ "MIT" ]
null
null
null
""" diamond.database ~~~~~~~~~~~~~~~~ :copyright: (c) 2015 Jaco Ruit :license: MIT, see LICENSE for more details """ class DatabaseInterface(object): def connect(self, credentials): pass def close(self): pass def select(self, table, fields, where = None, limit =...
25.387097
126
0.601017
2d8e95f27404cf208b8b1b71fc3cae24afd074db
7,146
py
Python
sdk/python/pulumi_azure_nextgen/avs/v20210101preview/workload_network_segment.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/avs/v20210101preview/workload_network_segment.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/avs/v20210101preview/workload_network_segment.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# 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...
39.7
198
0.641198
be476ef7a6f86a881fee05623f439f0773e7db2d
4,706
py
Python
nerfplusplus/camera_visualizer/visualize_cameras.py
hengfei-wang/SCNeRF
6b90169c4ca7653ff34eec10bbdda34269a6e4e6
[ "MIT" ]
272
2021-09-01T01:21:13.000Z
2022-03-29T03:38:20.000Z
nerfplusplus/camera_visualizer/visualize_cameras.py
ariel9874/SCNeRF
ad8a5d8fe485ea88c1d1072b34e6d0f47dd8e6cc
[ "MIT" ]
12
2021-09-26T17:58:12.000Z
2022-03-29T08:12:19.000Z
nerfplusplus/camera_visualizer/visualize_cameras.py
ariel9874/SCNeRF
ad8a5d8fe485ea88c1d1072b34e6d0f47dd8e6cc
[ "MIT" ]
19
2021-09-01T08:39:50.000Z
2022-03-27T17:17:38.000Z
import open3d as o3d import json import numpy as np def get_camera_frustum(img_size, K, W2C, frustum_length=0.5, color=[0., 1., 0.]): W, H = img_size hfov = np.rad2deg(np.arctan(W / 2. / K[0, 0]) * 2.) vfov = np.rad2deg(np.arctan(H / 2. / K[1, 1]) * 2.) half_w = frustum_length * np.tan(np.deg2rad(hfov...
43.174312
118
0.622184
dcd1514e6f9a7bf9aeee49d118901eff2131d967
1,039
py
Python
meshes/boolean.py
jaedong2019/mec647
f9965ae3964d4772f689f2b9886588be485e82f3
[ "MIT" ]
1
2022-02-07T15:14:08.000Z
2022-02-07T15:14:08.000Z
meshes/boolean.py
assalaTrabelsi/mec647
cba7adc76153bc6f2ca6483839e75d3ac4b635d5
[ "MIT" ]
null
null
null
meshes/boolean.py
assalaTrabelsi/mec647
cba7adc76153bc6f2ca6483839e75d3ac4b635d5
[ "MIT" ]
null
null
null
from mpi4py import MPI def mesh_bar_gmshapi(name, msh_file=None, comm=MPI.COMM_WORLD): """ Create mesh. """ # http://jsdokken.com/converted_files/tutorial_gmsh.html # https://moorejustinmusic.com/trending/how-do-i-use-gmsh-in-python/ # https://sta...
32.46875
86
0.588065
19c0832f69cf3ea8aafc1c5c91bbb41f7decc9cd
438
py
Python
src/scraper_app/migrations/0002_auto_20160622_0822.py
banyh/news_scraper
56173fc0fcf3f2b367552f97e5514ff62612956e
[ "MIT" ]
1
2016-12-30T15:14:36.000Z
2016-12-30T15:14:36.000Z
src/scraper_app/migrations/0002_auto_20160622_0822.py
livingbio/news_scraper
56173fc0fcf3f2b367552f97e5514ff62612956e
[ "MIT" ]
null
null
null
src/scraper_app/migrations/0002_auto_20160622_0822.py
livingbio/news_scraper
56173fc0fcf3f2b367552f97e5514ff62612956e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-06-22 08:22 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('scraper_app', '0001_initial'), ] operations = [ migrations.AlterField( ...
20.857143
47
0.605023
1c7004a3b14f1dfd9373fc7cd1026ecaa9d3221d
8,951
py
Python
scripts/test/tests.d/files/test_merge_directories.py
adeutscher/core-tools
eb72604392e00ed6f4590d5d4e7cd785bf85a4f8
[ "MIT" ]
null
null
null
scripts/test/tests.d/files/test_merge_directories.py
adeutscher/core-tools
eb72604392e00ed6f4590d5d4e7cd785bf85a4f8
[ "MIT" ]
1
2018-04-30T06:27:35.000Z
2018-04-30T07:30:22.000Z
scripts/test/tests.d/files/test_merge_directories.py
adeutscher/core-tools
eb72604392e00ed6f4590d5d4e7cd785bf85a4f8
[ "MIT" ]
null
null
null
import common, unittest import os, re, tempfile, sys mod = common.load('merge_directories', common.TOOLS_DIR + '/scripts/files/merge_directories.py') class MergeDirectoriesTests(common.TestCase, metaclass=common.LoggableTestCase): def createFiles(self, directory, items): for i in items: path ...
33.151852
113
0.564853
360afbf57de48d9b39d52ae07a80916a9108b317
6,254
py
Python
Monitor/Web/wechat_alert.py
Hello-Linux/Python-Practice
8fa903db4a6985cd5811c4111c869296a4a2e1cc
[ "MIT" ]
3
2018-08-23T05:02:09.000Z
2019-10-29T08:43:49.000Z
Monitor/Web/wechat_alert.py
Hello-Linux/Python-Practice
8fa903db4a6985cd5811c4111c869296a4a2e1cc
[ "MIT" ]
null
null
null
Monitor/Web/wechat_alert.py
Hello-Linux/Python-Practice
8fa903db4a6985cd5811c4111c869296a4a2e1cc
[ "MIT" ]
null
null
null
#!/bin/env python3.6 import requests import json import re from bs4 import BeautifulSoup """ Define monitor class for baidu 主要功能是根据网站的页面 响应时间 返回状态码 传输过程中本地到网站的网络以及DNS解析有无异常 """ class Baidu(object): def __init__(self, status): self.status = status def get_token_www(self): url = 'https://qya...
26.388186
102
0.636073
68f4a9d69582ed04301ac0eee9d7574928517884
277
py
Python
decorators/lab/vowels_filter_02.py
BoyanPeychinov/object_oriented_programming
a960721c7c17710bd7b151a9025647e953435962
[ "MIT" ]
null
null
null
decorators/lab/vowels_filter_02.py
BoyanPeychinov/object_oriented_programming
a960721c7c17710bd7b151a9025647e953435962
[ "MIT" ]
null
null
null
decorators/lab/vowels_filter_02.py
BoyanPeychinov/object_oriented_programming
a960721c7c17710bd7b151a9025647e953435962
[ "MIT" ]
null
null
null
def vowel_filter(func): vowels = set("aeiou" + "aeiou".upper()) def wrapper(): result = func() return [c for c in result if c in vowels] return wrapper @vowel_filter def get_letters(): return ["a", "b", "c", "d", "e"] print(get_letters())
16.294118
49
0.574007
f6924138835bcf1263b7f0138aac67275f3ba1b6
2,705
py
Python
code/test_NN_org.py
min-yin-sri/deep-transfer-learning-crop-prediction
9d082c0516258a1ed1f76ebf166b74f95b94cedc
[ "MIT" ]
2
2018-09-01T02:15:02.000Z
2018-09-14T20:46:44.000Z
code/test_NN_org.py
min-yin-sri/deep-transfer-learning-crop-prediction
9d082c0516258a1ed1f76ebf166b74f95b94cedc
[ "MIT" ]
null
null
null
code/test_NN_org.py
min-yin-sri/deep-transfer-learning-crop-prediction
9d082c0516258a1ed1f76ebf166b74f95b94cedc
[ "MIT" ]
null
null
null
from nnet_LSTM import * from nnet_CNN import * from train_NN import run_NN, run_NN_test import sys import os import logging from util import Progbar import pdb from sklearn.metrics import r2_score import getpass from oauth2client.service_account import ServiceAccountCredentials from scipy.stats.stats import pearsonr fr...
36.554054
167
0.711275
0224ed61ea2b013819311e1dcf831b85f0e93333
1,709
py
Python
cms/plugins/picture/models.py
LUKKIEN/django-cms-2.0
0600cc1a3f3636a867faf0afe3719539fee36d69
[ "BSD-3-Clause" ]
null
null
null
cms/plugins/picture/models.py
LUKKIEN/django-cms-2.0
0600cc1a3f3636a867faf0afe3719539fee36d69
[ "BSD-3-Clause" ]
null
null
null
cms/plugins/picture/models.py
LUKKIEN/django-cms-2.0
0600cc1a3f3636a867faf0afe3719539fee36d69
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from django.utils.translation import ugettext_lazy as _ from cms.models import CMSPlugin, Page from os.path import basename from django.conf import settings from filebrowser.fields import FileBrowseField from easymode.i18n.decorators import L10n_CMS @L10n_CMS('alt', 'longdesc') class P...
38.840909
145
0.645407
6edfbe2491884982b6e206811f0b366c29a21efb
1,656
py
Python
python/advent_of_code/y2015/day04.py
stonecharioteer/advent-of-code
c18e47e378e82f82b77558a114e7d7c3a43c8429
[ "MIT" ]
null
null
null
python/advent_of_code/y2015/day04.py
stonecharioteer/advent-of-code
c18e47e378e82f82b77558a114e7d7c3a43c8429
[ "MIT" ]
null
null
null
python/advent_of_code/y2015/day04.py
stonecharioteer/advent-of-code
c18e47e378e82f82b77558a114e7d7c3a43c8429
[ "MIT" ]
null
null
null
"""--- Day 4: The Ideal Stocking Stuffer --- Santa needs help mining some AdventCoins (very similar to bitcoins) to use as gifts for all the economically forward-thinking little girls and boys. To do this, he needs to find MD5 hashes which, in hexadecimal, start with at least five zeroes. The input to the MD5 hash is ...
50.181818
335
0.709541
8ee1df8bb2ec12dd48eb825bc11f33d942a33b27
16,329
py
Python
tests/integration/callbacks/test_missing_inputs.py
efolea/dash
ac11e37450e44208fd9787296ac84d07f015bd53
[ "MIT" ]
2
2021-05-24T16:05:40.000Z
2021-05-29T15:50:43.000Z
tests/integration/callbacks/test_missing_inputs.py
efolea/dash
ac11e37450e44208fd9787296ac84d07f015bd53
[ "MIT" ]
1
2021-05-19T09:17:32.000Z
2021-05-19T09:17:32.000Z
tests/integration/callbacks/test_missing_inputs.py
efolea/dash
ac11e37450e44208fd9787296ac84d07f015bd53
[ "MIT" ]
1
2022-02-25T23:50:39.000Z
2022-02-25T23:50:39.000Z
import json import dash_html_components as html import dash from dash.testing import wait from dash.dependencies import Input, Output, State, ALL, MATCH def wait_for_queue(dash_duo): # mostly for cases where no callbacks should fire: # just wait until we have the button and the queue is empty dash_duo.wai...
33.668041
88
0.58932
6af5e35b037fab1b975bce2d7a63b3ec537f23ab
699
py
Python
packages/lr_retry/__init__.py
NHSDigital/list-reconciliation
37b1ebe99a64275e23b0e7fb6a89415b92d14306
[ "MIT" ]
4
2021-06-25T08:28:54.000Z
2021-12-16T11:03:42.000Z
packages/lr_retry/__init__.py
NHSDigital/list-reconciliation
37b1ebe99a64275e23b0e7fb6a89415b92d14306
[ "MIT" ]
184
2021-06-24T15:27:08.000Z
2022-03-17T12:44:28.000Z
packages/lr_retry/__init__.py
NHSDigital/list-reconciliation
37b1ebe99a64275e23b0e7fb6a89415b92d14306
[ "MIT" ]
3
2021-11-05T10:21:44.000Z
2022-03-04T14:29:24.000Z
from typing import Any, Callable from retrying import retry def retry_func(func: Callable, **kwargs) -> Any: """Retries a function using retrying.retry https://pypi.org/project/retrying/. Args: func (callable): lambda-wrapped function to run. **kwargs: Kwargs to pass to the retrying decorator...
26.884615
82
0.638054
57941d3e2e66f805ce00c40e633bb31c38a39712
1,551
py
Python
Otros/Boton/02_rgb_led.py
fjavidcr/RaspiAlert
8eae5be41ebfbc31f67c9ee029ccafc270b817ce
[ "MIT" ]
null
null
null
Otros/Boton/02_rgb_led.py
fjavidcr/RaspiAlert
8eae5be41ebfbc31f67c9ee029ccafc270b817ce
[ "MIT" ]
null
null
null
Otros/Boton/02_rgb_led.py
fjavidcr/RaspiAlert
8eae5be41ebfbc31f67c9ee029ccafc270b817ce
[ "MIT" ]
null
null
null
#!/usr/bin/env python import RPi.GPIO as GPIO import time colors = [0xFF0000, 0x00FF00, 0x0000FF, 0xFFFF00, 0xFF00FF, 0x00FFFF] R = 11 G = 12 B = 13 def setup(Rpin, Gpin, Bpin): global pins global p_R, p_G, p_B pins = {'pin_R': Rpin, 'pin_G': Gpin, 'pin_B': Bpin} GPIO.setmode(GPIO.BOARD) # Numbers GPIOs by ...
23.5
72
0.649259
75e118b5d26ecc72dbd2c88433ebd41036cfdee0
22,678
py
Python
tests/test_observable/test_replay.py
mmpio/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
[ "MIT" ]
4,342
2015-01-06T09:00:23.000Z
2022-03-28T15:05:50.000Z
tests/test_observable/test_replay.py
mmpio/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
[ "MIT" ]
613
2015-01-07T20:44:56.000Z
2022-03-20T06:14:20.000Z
tests/test_observable/test_replay.py
mmpio/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
[ "MIT" ]
420
2015-01-07T14:30:30.000Z
2022-03-11T22:47:46.000Z
import unittest import rx from rx import operators as ops from rx.testing import TestScheduler, ReactiveTest on_next = ReactiveTest.on_next on_completed = ReactiveTest.on_completed on_error = ReactiveTest.on_error subscribe = ReactiveTest.subscribe subscribed = ReactiveTest.subscribed disposed = ReactiveTest.disposed...
44.818182
506
0.621439
ec160222dcbec794e3ab68b65fe29e305513a19a
174
py
Python
exercises/es/test_03_14_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/es/test_03_14_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/es/test_03_14_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( "docs = list(nlp.pipe(TEXTS))" in __solution__ ), "¿Estás usando nlp.pipe envuelto en una lista?" __msg__.good("¡Muy buen trabajo!")
29
54
0.62069
f41df922ac0b7f22117acfbb6b46ecff8e57ff93
892
py
Python
yatube/yatube/urls.py
vladyefimov/hw03_forms
0127eb6ef22089d8b9121417c737b5c92cdf81a7
[ "BSD-3-Clause" ]
null
null
null
yatube/yatube/urls.py
vladyefimov/hw03_forms
0127eb6ef22089d8b9121417c737b5c92cdf81a7
[ "BSD-3-Clause" ]
null
null
null
yatube/yatube/urls.py
vladyefimov/hw03_forms
0127eb6ef22089d8b9121417c737b5c92cdf81a7
[ "BSD-3-Clause" ]
null
null
null
"""yatube URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
35.68
77
0.691704
c760c40284b88a97110d262e13be667f0222ffb3
4,322
py
Python
nextdl/extractor/izlesene.py
devenu85/nextdl
0b458f556e2e0be80cb94bd9a9b1405ad2e9182d
[ "MIT" ]
1
2021-12-19T13:55:20.000Z
2021-12-19T13:55:20.000Z
nextdl/extractor/izlesene.py
devenu85/nextdl
0b458f556e2e0be80cb94bd9a9b1405ad2e9182d
[ "MIT" ]
null
null
null
nextdl/extractor/izlesene.py
devenu85/nextdl
0b458f556e2e0be80cb94bd9a9b1405ad2e9182d
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals from ..compat import compat_str, compat_urllib_parse_unquote from ..utils import (determine_ext, float_or_none, get_element_by_id, int_or_none, parse_iso8601, str_to_int) from .common import InfoExtractor class IzleseneIE(InfoExtractor): ...
35.138211
99
0.510643
57f638f8adafa7057b203724318cd9bc12f8006f
1,967
py
Python
catalyst/callbacks/metrics/ppv_tpr_f1.py
and-kul/catalyst
51428d7756e62b9b8ee5379f38e9fd576eeb36e5
[ "Apache-2.0" ]
1
2021-01-26T14:21:26.000Z
2021-01-26T14:21:26.000Z
catalyst/callbacks/metrics/ppv_tpr_f1.py
and-kul/catalyst
51428d7756e62b9b8ee5379f38e9fd576eeb36e5
[ "Apache-2.0" ]
1
2021-01-07T16:13:45.000Z
2021-01-21T09:27:54.000Z
catalyst/callbacks/metrics/ppv_tpr_f1.py
and-kul/catalyst
51428d7756e62b9b8ee5379f38e9fd576eeb36e5
[ "Apache-2.0" ]
1
2021-01-07T02:50:38.000Z
2021-01-07T02:50:38.000Z
from typing import List from catalyst.callbacks.meter import MeterMetricsCallback from catalyst.tools.meters.ppv_tpr_f1_meter import PrecisionRecallF1ScoreMeter class PrecisionRecallF1ScoreCallback(MeterMetricsCallback): """ Calculates the global precision (positive predictive value or ppv), recall (true...
34.508772
79
0.620742
8ee37202a19129ca794dd620f7df5fea15484a42
1,015
py
Python
dbader_python_tricks/ch2/context_managers.py
terryjbates/python-monorepo
48facf2391c43bc1e5e4778e3fddb8c3f8b963a3
[ "MIT" ]
null
null
null
dbader_python_tricks/ch2/context_managers.py
terryjbates/python-monorepo
48facf2391c43bc1e5e4778e3fddb8c3f8b963a3
[ "MIT" ]
null
null
null
dbader_python_tricks/ch2/context_managers.py
terryjbates/python-monorepo
48facf2391c43bc1e5e4778e3fddb8c3f8b963a3
[ "MIT" ]
null
null
null
from contextlib import contextmanager import time class ManagedFile: def __init__(self, name): self.name = name def __enter__(self): self.file = open(self.name, 'w') return self.file def __exit__(self, exc_type, exc_val, exc_tb): if self.file: self.file.close()...
19.901961
61
0.596059
e84754493140a4bb1e190558da90bfefc98c34c2
2,471
py
Python
awx/main/tests/functional/test_jobs.py
iamroddo/awx
b04e944ea52586c722843e7557f649fea4cd1287
[ "Apache-2.0" ]
null
null
null
awx/main/tests/functional/test_jobs.py
iamroddo/awx
b04e944ea52586c722843e7557f649fea4cd1287
[ "Apache-2.0" ]
4
2022-02-15T01:33:35.000Z
2022-03-02T12:47:41.000Z
awx/main/tests/functional/test_jobs.py
iamroddo/awx
b04e944ea52586c722843e7557f649fea4cd1287
[ "Apache-2.0" ]
null
null
null
import pytest from unittest import mock import json from awx.main.models import Job, Instance from awx.main.tasks import cluster_node_heartbeat from django.test.utils import override_settings @pytest.mark.django_db def test_orphan_unified_job_creation(instance, inventory): job = Job.objects.create(job_template=N...
32.513158
85
0.670174
fe096f20c8ff2e502c925d51095afacd51f386a0
2,764
py
Python
test/patterns/nested_blocks/test_nested_blocks.py
lyriccoder/aibolit
c4f350f5de824ebb4906aac066f1bd23f9a8c75a
[ "MIT" ]
null
null
null
test/patterns/nested_blocks/test_nested_blocks.py
lyriccoder/aibolit
c4f350f5de824ebb4906aac066f1bd23f9a8c75a
[ "MIT" ]
null
null
null
test/patterns/nested_blocks/test_nested_blocks.py
lyriccoder/aibolit
c4f350f5de824ebb4906aac066f1bd23f9a8c75a
[ "MIT" ]
null
null
null
# The MIT License (MIT) # # Copyright (c) 2020 Aibolit # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, m...
43.1875
79
0.740955
1d466f67d8b56c30e66927eb9413e277cf9c0d9e
1,799
py
Python
docker-images/taigav2/taiga-back/taiga/users/forms.py
mattcongy/itshop
6be025a9eaa7fe7f495b5777d1f0e5a3184121c9
[ "MIT" ]
1
2017-05-29T19:01:06.000Z
2017-05-29T19:01:06.000Z
docker-images/taigav2/taiga-back/taiga/users/forms.py
mattcongy/itshop
6be025a9eaa7fe7f495b5777d1f0e5a3184121c9
[ "MIT" ]
null
null
null
docker-images/taigav2/taiga-back/taiga/users/forms.py
mattcongy/itshop
6be025a9eaa7fe7f495b5777d1f0e5a3184121c9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2014-2016 Andrey Antukh <niwi@niwi.nz> # Copyright (C) 2014-2016 Jesús Espino <jespinog@gmail.com> # Copyright (C) 2014-2016 David Barragán <bameda@dbarragan.com> # Copyright (C) 2014-2016 Alejandro Alonso <alejandro.alonso@kaleidos.net> # This program is free software: you can r...
38.276596
80
0.730962
de52042f24d38360b8ec20f8768abcf62e77d5e9
2,678
py
Python
extern/pytracking/parameter/kys/default_vot.py
tsingqguo/ABA
c32edbbe5705b0332a08951b5ee436b5f58c2e70
[ "MIT" ]
12
2021-07-27T07:18:24.000Z
2022-03-09T13:52:20.000Z
extern/pytracking/parameter/kys/default_vot.py
tsingqguo/ABA
c32edbbe5705b0332a08951b5ee436b5f58c2e70
[ "MIT" ]
2
2021-08-03T09:21:33.000Z
2021-12-29T14:25:30.000Z
extern/pytracking/parameter/kys/default_vot.py
tsingqguo/ABA
c32edbbe5705b0332a08951b5ee436b5f58c2e70
[ "MIT" ]
3
2021-11-18T14:46:40.000Z
2022-01-03T15:47:23.000Z
from extern.pytracking.utils import TrackerParams from extern.pytracking.features.net_wrappers import NetWithBackbone def parameters(): params = TrackerParams() params.debug = 0 params.visualization = False params.use_gpu = True params.image_sample_size = 14*16 params.search_area_scale = 4 ...
32.658537
138
0.680732
87b90ab4d17d59a3cd4d4ce9a847c18f149c8df1
919
py
Python
questionnaire/question/models.py
Dkobachevskiy/questionnaire
79a03f42399b24951fbb2ebc0635d472c8fe6a28
[ "BSD-3-Clause" ]
null
null
null
questionnaire/question/models.py
Dkobachevskiy/questionnaire
79a03f42399b24951fbb2ebc0635d472c8fe6a28
[ "BSD-3-Clause" ]
null
null
null
questionnaire/question/models.py
Dkobachevskiy/questionnaire
79a03f42399b24951fbb2ebc0635d472c8fe6a28
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from django.contrib.auth import get_user_model User = get_user_model() class Group(models.Model): title = models.CharField(max_length=200) description = models.TextField(max_length=400) def __str__(self) -> str: return self.title class Question(models.Model): qu...
23.564103
54
0.668118
bc18d74d6695ead482a33875cc91c7d72022eea2
2,945
py
Python
helpers/cowin_sdk.py
abizerlokhandwala/Cowin-Notification-Service
4fd7fd9c3cfab37502ad4135007a6127ca4cc15f
[ "MIT" ]
14
2021-05-07T13:09:03.000Z
2022-01-10T23:24:42.000Z
helpers/cowin_sdk.py
abizerlokhandwala/Cowin-Notification-Service
4fd7fd9c3cfab37502ad4135007a6127ca4cc15f
[ "MIT" ]
16
2021-05-10T16:41:21.000Z
2021-06-09T14:49:03.000Z
helpers/cowin_sdk.py
abizerlokhandwala/Cowin-Notification-Service
4fd7fd9c3cfab37502ad4135007a6127ca4cc15f
[ "MIT" ]
5
2021-05-09T12:14:03.000Z
2021-06-08T13:56:55.000Z
import logging import random import string from datetime import date, timedelta import aiohttp import requests from helpers.constants import STATES_URL, DISTRICTS_URL, FIND_BY_DISTRICT_URL, CALENDAR_BY_DISTRICT_PUBLIC_URL logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) class CowinAPI: def _...
32.722222
111
0.564007
aebbb2965566cab5b3c4d6224a44996ba646e4ca
1,872
py
Python
LintuAtlasGridFetcher.py
luontonurkka/fetcher
439d3531b13dcf296c75c1a637dce4e7a7cf8b91
[ "MIT" ]
null
null
null
LintuAtlasGridFetcher.py
luontonurkka/fetcher
439d3531b13dcf296c75c1a637dce4e7a7cf8b91
[ "MIT" ]
null
null
null
LintuAtlasGridFetcher.py
luontonurkka/fetcher
439d3531b13dcf296c75c1a637dce4e7a7cf8b91
[ "MIT" ]
null
null
null
""" Under MIT-Licence, 2016 Jarno Kiesiläinen """ def getspeciesnames(speciesfilename): # open the file sf = open(speciesfilename, 'r') # init empty dict names = {} #first line is skipped s = sf.readline() s = sf.readline() # read to end of the file while len(s) > 0: # data i...
28.8
73
0.533654
b1db1624ffd2794ba7f5d1aeb99f0c932822e004
11,001
py
Python
LIpipe/pipeconfig.py
fedhere/getlucky
1dec967fc6f771060435842b01580bd05fcfcd08
[ "MIT" ]
null
null
null
LIpipe/pipeconfig.py
fedhere/getlucky
1dec967fc6f771060435842b01580bd05fcfcd08
[ "MIT" ]
null
null
null
LIpipe/pipeconfig.py
fedhere/getlucky
1dec967fc6f771060435842b01580bd05fcfcd08
[ "MIT" ]
null
null
null
import sys from enthought.traits.api import * from enthought.traits.ui.api import * from enthought.traits.ui.menu import OKButton, CancelButton import os from numpy import where sys.path.append("../LIHSPcommon") from myutils import readconfig class Configfile(HasTraits): """ configuration file object """ impa...
39.858696
317
0.541496
b79d67deafe40d3f34ff7e07401a9d145ee9bf1e
516
py
Python
bin/cli.py
danmorettin/forcerank
5e38d408a0485ba72f024cc5438c32c23373f017
[ "MIT" ]
null
null
null
bin/cli.py
danmorettin/forcerank
5e38d408a0485ba72f024cc5438c32c23373f017
[ "MIT" ]
null
null
null
bin/cli.py
danmorettin/forcerank
5e38d408a0485ba72f024cc5438c32c23373f017
[ "MIT" ]
null
null
null
""" Choose the inputs and run the application as 'python bin/cli.py' """ from forcerank.application import Application input_filename = 'data/input/Sectors.csv' output_filename = 'data/output/ForceRankSectors.xlsx' ma_window = 200 # e.g. 50-Day Moving Average high_window = 252 # e.g. 50-Day High period = 4 ...
32.25
74
0.687984
a28117316d80e4b90e39d211549891df61bf7bd2
1,644
py
Python
tests/test_io_text_orthography.py
jeffmielke/PolyglotDB
619fb487a15db1c4b9e844e843c81e0994973421
[ "MIT" ]
null
null
null
tests/test_io_text_orthography.py
jeffmielke/PolyglotDB
619fb487a15db1c4b9e844e843c81e0994973421
[ "MIT" ]
null
null
null
tests/test_io_text_orthography.py
jeffmielke/PolyglotDB
619fb487a15db1c4b9e844e843c81e0994973421
[ "MIT" ]
null
null
null
import pytest import os from polyglotdb.io import inspect_orthography from polyglotdb.exceptions import DelimiterError from polyglotdb import CorpusContext def test_load_spelling_no_ignore(graph_db, text_spelling_test_dir): spelling_path = os.path.join(text_spelling_test_dir, 'text_spelling.txt') parser =...
32.235294
85
0.726277
00b63ea57d5c975235a08e6bdbb74b7b8a9e6911
2,562
py
Python
server.py
polaser/ml_app_example
c5ece917edd489e13e81381d1909baf6ec9737cf
[ "MIT" ]
null
null
null
server.py
polaser/ml_app_example
c5ece917edd489e13e81381d1909baf6ec9737cf
[ "MIT" ]
null
null
null
server.py
polaser/ml_app_example
c5ece917edd489e13e81381d1909baf6ec9737cf
[ "MIT" ]
null
null
null
import ast import os import sys import requests import pandas as pd from sklearn.externals import joblib from flask import jsonify, request, make_response, send_from_directory import dill as pickle ROOT_PATH = os.path.dirname(os.path.realpath(__file__)) os.environ.update({'ROOT_PATH': ROOT_PATH}) sys.path.append(os.pa...
28.786517
127
0.682279
2f9f83120c4430cbe764c8d1fafbec3347c75b53
6,865
py
Python
examples/task_sequence_labeling_ner_crf.py
gdhy9064/bert4keras
1fae3605dae94b60b225cc4863bff85b8fbb00ac
[ "Apache-2.0" ]
4,478
2019-08-26T03:53:18.000Z
2022-03-31T12:33:41.000Z
examples/task_sequence_labeling_ner_crf.py
gdhy9064/bert4keras
1fae3605dae94b60b225cc4863bff85b8fbb00ac
[ "Apache-2.0" ]
436
2019-09-04T07:33:03.000Z
2022-03-30T00:13:27.000Z
examples/task_sequence_labeling_ner_crf.py
gdhy9064/bert4keras
1fae3605dae94b60b225cc4863bff85b8fbb00ac
[ "Apache-2.0" ]
923
2019-08-26T10:46:21.000Z
2022-03-30T08:23:03.000Z
#! -*- coding: utf-8 -*- # 用CRF做中文命名实体识别 # 数据集 http://s3.bmio.net/kashgari/china-people-daily-ner-corpus.tar.gz # 实测验证集的F1可以到96.48%,测试集的F1可以到95.38% import numpy as np from bert4keras.backend import keras, K from bert4keras.models import build_transformer_model from bert4keras.tokenizers import Tokenizer from bert4kera...
32.230047
80
0.607866
3e8845b4f749a6464e5b0c7db227801a6bbd2458
1,229
py
Python
google/ads/googleads/v9/enums/types/campaign_draft_status.py
JakobSteixner/google-ads-python
df2b802cc7e78295a4ece21cc7ef3787cd35dab0
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v9/enums/types/campaign_draft_status.py
JakobSteixner/google-ads-python
df2b802cc7e78295a4ece21cc7ef3787cd35dab0
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v9/enums/types/campaign_draft_status.py
JakobSteixner/google-ads-python
df2b802cc7e78295a4ece21cc7ef3787cd35dab0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
27.931818
74
0.696501
b49c95bb93cbc3ec50bbe6603d799b11acf36d36
1,329
py
Python
src/zenml/steps/step_interfaces/base_trainer_step.py
LocalLegend517/zenml
0f9639a7a1014d893885263647bbe3b9b1a36d5f
[ "Apache-2.0" ]
1
2022-01-04T15:12:38.000Z
2022-01-04T15:12:38.000Z
src/zenml/steps/step_interfaces/base_trainer_step.py
LocalLegend517/zenml
0f9639a7a1014d893885263647bbe3b9b1a36d5f
[ "Apache-2.0" ]
null
null
null
src/zenml/steps/step_interfaces/base_trainer_step.py
LocalLegend517/zenml
0f9639a7a1014d893885263647bbe3b9b1a36d5f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) ZenML GmbH 2021. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
33.225
70
0.733634
f2eae75685d23aa921d262b5ee609b2ca1a0dfaa
786
py
Python
blog/users/models.py
yachong-2843868274/django-blog
b534077b1fd97c5637e85c84376dd25b17032107
[ "MIT" ]
null
null
null
blog/users/models.py
yachong-2843868274/django-blog
b534077b1fd97c5637e85c84376dd25b17032107
[ "MIT" ]
null
null
null
blog/users/models.py
yachong-2843868274/django-blog
b534077b1fd97c5637e85c84376dd25b17032107
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractUser # Create your models here. class User(AbstractUser): # 电话号码字段 # unique 为唯一性字段 mobile = models.CharField(max_length=20, unique=True,blank=True) # 头像 # upload_to为保存到响应的子目录中 avatar = models.ImageField(upload_to='ava...
25.354839
70
0.666667
b292062fd778a4481d3a5b506385e2a8cb2f8918
5,469
py
Python
binutils.py
moloned/volumetric_accelerator_toolkit
8f5cf226a7d788e4dd4215c181db49d9568c6240
[ "Apache-2.0" ]
6
2019-02-11T14:32:23.000Z
2021-12-07T09:49:41.000Z
binutils.py
moloned/volumetric_accelerator_toolkit
8f5cf226a7d788e4dd4215c181db49d9568c6240
[ "Apache-2.0" ]
null
null
null
binutils.py
moloned/volumetric_accelerator_toolkit
8f5cf226a7d788e4dd4215c181db49d9568c6240
[ "Apache-2.0" ]
2
2018-10-11T17:29:37.000Z
2021-09-08T12:01:40.000Z
""" Binary Utilities Class. Selection of utility functions for binary operations and other handy functions. @author jonathan.byrne@intel.com @copyright 2018 Intel Ltd (see LICENSE file). """ from __future__ import print_function import time import argparse import numpy as np from os.path import splitext def normalize...
26.678049
78
0.60267
3b17944e8cf8e779a44224c86e7d5a775afe4f87
1,389
py
Python
vega/algorithms/nas/auto_lane/conf.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
vega/algorithms/nas/auto_lane/conf.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
vega/algorithms/nas/auto_lane/conf.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. 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...
33.878049
74
0.618431
9308cb5eed5ee7bb4146f06950b11bdd53169312
960
py
Python
oauth2app/lib/uri.py
koordinates/oauth2app
f8205e2146477224a666c03bf115ddf3ff7610ff
[ "MIT" ]
36
2015-03-23T03:43:16.000Z
2021-06-14T19:11:36.000Z
oauth2app/lib/uri.py
koordinates/oauth2app
f8205e2146477224a666c03bf115ddf3ff7610ff
[ "MIT" ]
2
2016-01-19T11:07:34.000Z
2020-05-15T20:31:07.000Z
oauth2app/lib/uri.py
koordinates/oauth2app
f8205e2146477224a666c03bf115ddf3ff7610ff
[ "MIT" ]
20
2015-01-15T03:29:48.000Z
2020-10-15T15:37:44.000Z
#-*- coding: utf-8 -*- """OAuth 2.0 URI Helper Functions""" from urlparse import urlparse, urlunparse, parse_qsl from urllib import urlencode from url_normalize import url_normalize def add_parameters(url, parameters): """Parses URL and appends parameters. **Args:** * *url:* URL string. * *pa...
19.591837
66
0.630208
196432046c2d71a0bf985eac180dc5bad58b335f
21,386
py
Python
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_08_01/operations/_blob_inventory_policies_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_08_01/operations/_blob_inventory_policies_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_08_01/operations/_blob_inventory_policies_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 may ...
45.40552
227
0.68975
83dcba3ba574d63e45474a9683c3cf376b3f76ab
7,598
py
Python
tchannel/tcurl.py
islavov/tchannel-python
ca3da9b4e0367d2e00078b158ab9e0bb4f328619
[ "MIT" ]
98
2015-07-10T23:42:11.000Z
2021-11-08T11:21:02.000Z
tchannel/tcurl.py
islavov/tchannel-python
ca3da9b4e0367d2e00078b158ab9e0bb4f328619
[ "MIT" ]
445
2015-07-10T23:58:02.000Z
2021-08-24T14:58:39.000Z
tchannel/tcurl.py
islavov/tchannel-python
ca3da9b4e0367d2e00078b158ab9e0bb4f328619
[ "MIT" ]
43
2015-07-22T19:14:57.000Z
2021-09-14T12:12:38.000Z
# Copyright (c) 2016 Uber Technologies, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publ...
25.15894
79
0.593577
c5f8658f70e1e9f9cc3be884846ca04d428b3f9a
949
py
Python
azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_runner_paged.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
4
2016-06-17T23:25:29.000Z
2022-03-30T22:37:45.000Z
azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_runner_paged.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_runner_paged.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "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 ...
33.892857
127
0.580611
32c05a8c5f61f2e3cb4be5596388bd9a08ac82e4
833
py
Python
xlsxwriter/test/worksheet/test_write_custom_filter.py
hugovk/XlsxWriter
e97cc66637d9895480ee32cfb5e561d652d3787b
[ "BSD-2-Clause" ]
null
null
null
xlsxwriter/test/worksheet/test_write_custom_filter.py
hugovk/XlsxWriter
e97cc66637d9895480ee32cfb5e561d652d3787b
[ "BSD-2-Clause" ]
null
null
null
xlsxwriter/test/worksheet/test_write_custom_filter.py
hugovk/XlsxWriter
e97cc66637d9895480ee32cfb5e561d652d3787b
[ "BSD-2-Clause" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # SPDX-License-Identifier: BSD-2-Clause # Copyright (c), 2013-2022, John McNamara, jmcnamara@cpan.org # import unittest from io import StringIO from ...worksheet import Worksheet class TestWriteCustomFilter(un...
24.5
79
0.605042
1338e0f9b845f479c02fd05931bd56aa7f24fd88
217
py
Python
Domains/Python/04 - Sets/Check Strict Superset/solution.py
abhinavgunwant/hackerrank-solutions
e016366cb6a9fac562a754d2b230fef907080733
[ "MIT" ]
1
2019-06-09T00:04:56.000Z
2019-06-09T00:04:56.000Z
Domains/Python/04 - Sets/Check Strict Superset/solution.py
abhinavgunwant/hackerrank-solutions
e016366cb6a9fac562a754d2b230fef907080733
[ "MIT" ]
19
2019-06-09T14:45:52.000Z
2019-06-17T18:52:53.000Z
Domains/Python/04 - Sets/Check Strict Superset/solution.py
abhinavgunwant/hackerrank-solutions
e016366cb6a9fac562a754d2b230fef907080733
[ "MIT" ]
null
null
null
A = set(map(int, input().split())) l = [] for i in range(int(input())): temp = set(map(int, input().split())) if not (temp.issubset(A) and len(A-temp) > 0): print('False') exit() print('True')
24.111111
50
0.534562
1ead1afe8c13b9908301ac65786264689fbeec1b
251
py
Python
Ladder 11/Python/011.Panoramix's Prediction.py
purush34/a2oj-solutions
1ce6e2647b2f2ae47d3c03337ae4af1a7d5c8edb
[ "MIT" ]
null
null
null
Ladder 11/Python/011.Panoramix's Prediction.py
purush34/a2oj-solutions
1ce6e2647b2f2ae47d3c03337ae4af1a7d5c8edb
[ "MIT" ]
1
2021-12-01T06:53:18.000Z
2021-12-01T07:09:31.000Z
Ladder 11/Python/011.Panoramix's Prediction.py
purush34/a2oj-solutions
1ce6e2647b2f2ae47d3c03337ae4af1a7d5c8edb
[ "MIT" ]
4
2021-10-31T16:36:28.000Z
2021-12-01T05:48:31.000Z
x,y = map(int,input().split()) np = x+1 while True: j=0 for i in range(2,np+1): if np%i==0: j+=1 if j>1: break else: break j=0 np+=1 if y == np: print("YES") else: print("NO")
14.764706
30
0.410359
8e38670c4af3cddf39a7934e3dd858bcc1966769
1,840
py
Python
optumpublicdata/gov_data.py
cpaulisi/optumpublicdata
8f62c3d856e02ee994f816a245329a08905abb85
[ "MIT" ]
null
null
null
optumpublicdata/gov_data.py
cpaulisi/optumpublicdata
8f62c3d856e02ee994f816a245329a08905abb85
[ "MIT" ]
null
null
null
optumpublicdata/gov_data.py
cpaulisi/optumpublicdata
8f62c3d856e02ee994f816a245329a08905abb85
[ "MIT" ]
null
null
null
import pandas as pd import requests class hhs_extract: # initialize with api_key def __init__(self, bearer_token): self.api_key = bearer_token # extract HHS data def extract_data(self) -> pd.DataFrame: # read data from Socrata HHS API for county level hospitalizations at CMS regis...
40
102
0.658152
7e950bfc616acd25036a08484ebdabe2839c5fc1
6,762
py
Python
helloworld_pb2.py
3to1null/grpc-client-test
7851428697b20af54409c2af1a8e05ca9299b774
[ "Apache-2.0" ]
null
null
null
helloworld_pb2.py
3to1null/grpc-client-test
7851428697b20af54409c2af1a8e05ca9299b774
[ "Apache-2.0" ]
null
null
null
helloworld_pb2.py
3to1null/grpc-client-test
7851428697b20af54409c2af1a8e05ca9299b774
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: helloworld.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _re...
33.147059
369
0.761905
55faa836a5b216c2680cc9cfa3a19d07fa2f8bbb
548
py
Python
unindexed/challenge_apr_20/counting_elements.py
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
1
2020-02-20T12:04:46.000Z
2020-02-20T12:04:46.000Z
unindexed/challenge_apr_20/counting_elements.py
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
null
null
null
unindexed/challenge_apr_20/counting_elements.py
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
null
null
null
from typing import List from collections import Counter class Solution: def countElements(self, arr: List[int]) -> int: counter = Counter(arr) return sum(counter[x] for x in counter if x + 1 in counter) # TESTS tests = [ ([1, 2, 3], 2), ([1, 1, 3, 3, 5, 5, 7, 7], 0), ([1, 3, 2, 3, 5,...
21.92
67
0.525547
7d4915a09793bf1f07e31a079cd1a8e3dba62c9a
3,000
py
Python
tests/test_task_args.py
cenyk1230/cogdl
fa1f74d5c3a15b5a52abfc7cd3f04dce4b7dbcce
[ "MIT" ]
2
2021-06-25T08:18:36.000Z
2021-06-25T08:51:00.000Z
tests/test_task_args.py
cenyk1230/cogdl
fa1f74d5c3a15b5a52abfc7cd3f04dce4b7dbcce
[ "MIT" ]
null
null
null
tests/test_task_args.py
cenyk1230/cogdl
fa1f74d5c3a15b5a52abfc7cd3f04dce4b7dbcce
[ "MIT" ]
null
null
null
import sys from cogdl import options def test_attributed_graph_clustering(): sys.argv = [sys.argv[0], "-t", "attributed_graph_clustering", "-m", "prone", "-dt", "cora"] parser = options.get_training_parser() args, _ = parser.parse_known_args() args = options.parse_args_and_arch(parser, args) prin...
32.967033
106
0.686667
ffd36603d1d454927cb673179c07bccbe78b20ce
6,208
py
Python
src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/spinn_front_end_common/utility_models/live_packet_gather.py
Roboy/LSM_SpiNNaker_MyoArm
04fa1eaf78778edea3ba3afa4c527d20c491718e
[ "BSD-3-Clause" ]
2
2020-11-01T13:22:11.000Z
2020-11-01T13:22:20.000Z
src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/spinn_front_end_common/utility_models/live_packet_gather.py
Roboy/LSM_SpiNNaker_MyoArm
04fa1eaf78778edea3ba3afa4c527d20c491718e
[ "BSD-3-Clause" ]
null
null
null
src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/spinn_front_end_common/utility_models/live_packet_gather.py
Roboy/LSM_SpiNNaker_MyoArm
04fa1eaf78778edea3ba3afa4c527d20c491718e
[ "BSD-3-Clause" ]
null
null
null
# pacman imports from pacman.model.partitionable_graph.abstract_partitionable_vertex \ import AbstractPartitionableVertex # spinn front end imports from spinn_front_end_common.abstract_models.\ abstract_data_specable_vertex import AbstractDataSpecableVertex from spinn_front_end_common.utilities.exceptions impo...
41.66443
78
0.688789
66c80b67107dccba2b8ca568dea98a8881faeba1
2,096
py
Python
Testkrams/webserver.py
ruebe5w/WW-Box
aec985a7c634e0bbab923ac11a4c71cd0d1fc6d1
[ "MIT" ]
1
2019-05-29T15:22:28.000Z
2019-05-29T15:22:28.000Z
Testkrams/webserver.py
ruebe5w/WW-Box
aec985a7c634e0bbab923ac11a4c71cd0d1fc6d1
[ "MIT" ]
null
null
null
Testkrams/webserver.py
ruebe5w/WW-Box
aec985a7c634e0bbab923ac11a4c71cd0d1fc6d1
[ "MIT" ]
1
2019-05-29T15:24:24.000Z
2019-05-29T15:24:24.000Z
import remi.gui as gui from remi import start, App class WWWeb(App): def main(self): # creating a container GridBox type self.main_container = gui.GridBox(width='100%', height='100%', style={'margin': '0px auto', 'font-family': 'Verdana'}) title =...
41.098039
116
0.566794
c3271d97723283b8f121391018762b7754ae059a
79,218
py
Python
lib/rucio/core/transfer.py
gumond/rucio
2a77b42ebe2d184e4f1fc25a13e629f42102b130
[ "Apache-2.0" ]
null
null
null
lib/rucio/core/transfer.py
gumond/rucio
2a77b42ebe2d184e4f1fc25a13e629f42102b130
[ "Apache-2.0" ]
null
null
null
lib/rucio/core/transfer.py
gumond/rucio
2a77b42ebe2d184e4f1fc25a13e629f42102b130
[ "Apache-2.0" ]
null
null
null
# Copyright 2013-2020 CERN for the benefit of the ATLAS collaboration. # # 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...
54.822145
234
0.568558
1f3ef187a8522275d31a6a9b860bf587dd24c79d
1,132
py
Python
py/pyis-python/tests/test_word_dict/test_word_dict.py
microsoft/python-inference-script
cbbbe9d16be0839e4df357b1bd9e8274ca44f1f7
[ "MIT" ]
5
2021-11-29T01:49:22.000Z
2022-02-23T10:26:46.000Z
py/pyis-python/tests/test_word_dict/test_word_dict.py
microsoft/python-inference-script
cbbbe9d16be0839e4df357b1bd9e8274ca44f1f7
[ "MIT" ]
1
2021-11-01T02:22:32.000Z
2021-11-01T02:22:32.000Z
py/pyis-python/tests/test_word_dict/test_word_dict.py
microsoft/python-inference-script
cbbbe9d16be0839e4df357b1bd9e8274ca44f1f7
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT license. import unittest import os from pyis.python import save, load from pyis.python import ops from typing import List class Model: def __init__(self, dict_data_file: str): super().__init__() self.dictionary = ...
31.444444
90
0.657244
89f4d119b1d3ba1b40ba968461223726998742c8
1,548
py
Python
sheetwork/core/yaml/yaml_helpers.py
bastienboutonnet/sheetwork
7aa757ed12375ddd2c56502b721d91146d22b7ea
[ "MIT" ]
9
2020-12-10T12:12:42.000Z
2021-11-24T20:56:36.000Z
sheetwork/core/yaml/yaml_helpers.py
bastienboutonnet/sheetwork
7aa757ed12375ddd2c56502b721d91146d22b7ea
[ "MIT" ]
266
2020-04-19T10:50:19.000Z
2022-03-14T22:12:43.000Z
sheetwork/core/yaml/yaml_helpers.py
bastienboutonnet/sheetwork
7aa757ed12375ddd2c56502b721d91146d22b7ea
[ "MIT" ]
3
2020-04-25T18:11:20.000Z
2020-12-21T09:36:34.000Z
"""Helpers for yml stuff.""" from pathlib import Path from typing import Any, Dict import yaml from cerberus import Validator from sheetwork.core.exceptions import SheetConfigParsingError, YAMLFileEmptyError def open_yaml(path: "Path"): """Yeah it opens a yml file...""" if path.is_file(): with open(...
36
108
0.683463
586a2a3b4734e24131d4803d107d34af9c5598ff
57,309
py
Python
tests/timezones/tests.py
bak1an/django
98bcc5d81bca578f3a5b4d47907ba4ac40446887
[ "PSF-2.0", "BSD-3-Clause" ]
1
2021-04-14T20:15:54.000Z
2021-04-14T20:15:54.000Z
tests/timezones/tests.py
djk2/django
6b00af50146335485d8414c42efec7d8dd5397fc
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/timezones/tests.py
djk2/django
6b00af50146335485d8414c42efec7d8dd5397fc
[ "PSF-2.0", "BSD-3-Clause" ]
1
2017-02-28T17:05:19.000Z
2017-02-28T17:05:19.000Z
import datetime import re import sys import warnings from contextlib import contextmanager from unittest import SkipTest, skipIf from xml.dom.minidom import parseString import pytz from django.contrib.auth.models import User from django.core import serializers from django.core.exceptions import ImproperlyConfigured f...
46.216935
119
0.626917
48fcdfe92f3c592607263825f366fc43a19de804
1,353
py
Python
install/views/x_rent_house_view.py
correaleyval/netcity
0f1b6c7e604f05460532ee529b783d56d995f6b0
[ "BSD-3-Clause" ]
2
2021-05-22T20:29:08.000Z
2021-05-26T03:32:02.000Z
install/views/x_rent_house_view.py
correaleyval/netcity
0f1b6c7e604f05460532ee529b783d56d995f6b0
[ "BSD-3-Clause" ]
null
null
null
install/views/x_rent_house_view.py
correaleyval/netcity
0f1b6c7e604f05460532ee529b783d56d995f6b0
[ "BSD-3-Clause" ]
null
null
null
from config import ODOO_URL, ODOO_DB, ODOO_USERNAME, ODOO_PASSWORD from core.odoorpc import OdooRPC from core.models import View from core.crud.view import crud_create_view, crud_delete_view, crud_search_view def load_view(name: str) -> str: with open(f"install/views/xml/{name}.xml") as xml: return xml...
23.327586
79
0.66371