hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
daf5488d1b5d701e455b28156dfe56ebf5465e9a
19,391
py
Python
electra/pretrain/pretrain_utils.py
entelecheia/electra-tf2
08845a1c4bff78bc7d50b8331170b9c925c0d919
[ "Apache-2.0" ]
null
null
null
electra/pretrain/pretrain_utils.py
entelecheia/electra-tf2
08845a1c4bff78bc7d50b8331170b9c925c0d919
[ "Apache-2.0" ]
null
null
null
electra/pretrain/pretrain_utils.py
entelecheia/electra-tf2
08845a1c4bff78bc7d50b8331170b9c925c0d919
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Google Research Authors. # Copyright (c) 2020 NVIDIA CORPORATION. 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.ap...
39.094758
171
0.661235
6045ee908213bf426287fa6349722c32ca6903e6
2,103
py
Python
RecoEgamma/EgammaIsolationAlgos/python/egmElectronIsolationPUPPI_cff.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
RecoEgamma/EgammaIsolationAlgos/python/egmElectronIsolationPUPPI_cff.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
RecoEgamma/EgammaIsolationAlgos/python/egmElectronIsolationPUPPI_cff.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms import PhysicsTools.IsolationAlgos.CITKPFIsolationSumProducerForPUPPI_cfi as _mod IsoConeDefinitions = cms.VPSet( cms.PSet( isolationAlgo = cms.string('ElectronPFIsolationWithConeVeto'), coneSize = cms.double(0.3), VetoConeSizeBarrel...
46.733333
90
0.617689
2fa0f1b53d52bc141c9e6443c5143fedc061c573
1,092
py
Python
CNS_Platform/CNS_AIl_AI_module.py
Jonghyun-Kim-73/ERC_Project
271ec7e77002fcf43158492a6938563af8442e70
[ "Apache-2.0" ]
1
2021-03-02T10:31:24.000Z
2021-03-02T10:31:24.000Z
CNS_Platform/CNS_AIl_AI_module.py
Jonghyun-Kim-73/ERC_Project
271ec7e77002fcf43158492a6938563af8442e70
[ "Apache-2.0" ]
null
null
null
CNS_Platform/CNS_AIl_AI_module.py
Jonghyun-Kim-73/ERC_Project
271ec7e77002fcf43158492a6938563af8442e70
[ "Apache-2.0" ]
1
2021-03-02T10:31:11.000Z
2021-03-02T10:31:11.000Z
import numpy as np class Mainnet: def __init__(self): self.EM_SV_net, self.AB_DIG_Net = self.make_net() def make_net(self): import tensorflow as tf from keras import backend as K from keras.models import Model from keras.layers import Input, Dense, Lambda, LSTM, Repeat...
29.513514
73
0.612637
907e8393c80426e0973e74cc3b82505080fe2ca4
1,249
py
Python
main.py
bsppbep/mesh_lora
cef36ee138e624b9fc6e14b2cf89594d6dc8bc9e
[ "MIT" ]
5
2020-10-26T09:06:51.000Z
2022-03-03T14:40:10.000Z
main.py
bsppbep/mesh_lora
cef36ee138e624b9fc6e14b2cf89594d6dc8bc9e
[ "MIT" ]
null
null
null
main.py
bsppbep/mesh_lora
cef36ee138e624b9fc6e14b2cf89594d6dc8bc9e
[ "MIT" ]
1
2020-11-18T03:51:38.000Z
2020-11-18T03:51:38.000Z
#-*- coding: utf-8 -*- """Mesh LoRa. A meshed LoRa network of communication beacons is being built here. Each tag has a unique identifier in the network (between 1 and 254). But we can also use one or more tags with the identifier 255. This tag can only relay messages. """ import time from mesh_lora import Messenge...
24.98
70
0.707766
75c77aaf03d48bec1de4695db8ad09f3c0942ac6
1,154
py
Python
fullcalendar/admin.py
jonge-democraten/mezzanine-swingtime
1a68430a8470da038b50b96a33f26e5cb77145d7
[ "MIT" ]
1
2018-10-31T11:23:17.000Z
2018-10-31T11:23:17.000Z
fullcalendar/admin.py
jonge-democraten/mezzanine-fullcalendar
1a68430a8470da038b50b96a33f26e5cb77145d7
[ "MIT" ]
null
null
null
fullcalendar/admin.py
jonge-democraten/mezzanine-fullcalendar
1a68430a8470da038b50b96a33f26e5cb77145d7
[ "MIT" ]
null
null
null
from django.utils.translation import ugettext_lazy as _ from django.contrib import admin from mezzanine.core.admin import StackedDynamicInlineAdmin, DisplayableAdmin from fullcalendar.models import * class EventCategoryAdmin(admin.ModelAdmin): list_display = ('name',) class OccurrenceInline(StackedDynamicInlineA...
28.146341
76
0.610919
a80d0f550737e2bc0d3a4beaae9ee83f5d9349ac
1,215
py
Python
share.py
chenwenfang/MSSC
f8da9bfed9df26ae7240dbb3905eb2e88213f4c3
[ "Apache-2.0" ]
null
null
null
share.py
chenwenfang/MSSC
f8da9bfed9df26ae7240dbb3905eb2e88213f4c3
[ "Apache-2.0" ]
null
null
null
share.py
chenwenfang/MSSC
f8da9bfed9df26ae7240dbb3905eb2e88213f4c3
[ "Apache-2.0" ]
null
null
null
def get_neighborhood_weights_edgesnumber(ns,edge_dict): """ :param ns: this is the candidate community set :param edge_dict: e.g. {node1: {node2: {weight: value1}, {node3: {weight: value2 }}}}, node1 and node2 is connected with edge-weight value1, node1 and node3 is connnected with edge-weight value2 ...
45
231
0.576955
bc836f0bcfe67c4c4aea170a87bdbf51e53fbdb1
1,359
py
Python
openstack/tests/unit/network/v2/test_auto_allocated_topology.py
horion/openstacksdk
cbb0e12e1dc944847f2ba0e67bf35b9c7a67b3a3
[ "Apache-2.0" ]
99
2018-03-28T15:41:45.000Z
2022-01-23T17:22:13.000Z
openstack/tests/unit/network/v2/test_auto_allocated_topology.py
horion/openstacksdk
cbb0e12e1dc944847f2ba0e67bf35b9c7a67b3a3
[ "Apache-2.0" ]
5
2018-05-25T16:54:23.000Z
2021-11-21T02:27:16.000Z
openstack/tests/unit/network/v2/test_auto_allocated_topology.py
horion/openstacksdk
cbb0e12e1dc944847f2ba0e67bf35b9c7a67b3a3
[ "Apache-2.0" ]
104
2018-04-06T14:33:54.000Z
2022-03-01T01:58:09.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 # distributed under t...
35.763158
75
0.740986
0d1af156eea5f22d3eb84c402d27bc7664b83d93
32,739
py
Python
jgscm/__init__.py
hail-is/jgscm
ee39501d4f7c0756abc8cab028b20b9db5507ac6
[ "MIT" ]
null
null
null
jgscm/__init__.py
hail-is/jgscm
ee39501d4f7c0756abc8cab028b20b9db5507ac6
[ "MIT" ]
2
2019-04-06T16:29:34.000Z
2020-04-20T20:31:31.000Z
jgscm/__init__.py
hail-is/jgscm
ee39501d4f7c0756abc8cab028b20b9db5507ac6
[ "MIT" ]
1
2020-02-10T15:31:35.000Z
2020-02-10T15:31:35.000Z
import base64 import errno from itertools import islice import os import sys import uuid from google.cloud.exceptions import NotFound, Forbidden, BadRequest from google.cloud.storage import Client as GSClient, Blob import nbformat from notebook.services.contents.checkpoints import Checkpoints, \ GenericCheckpoints...
38.426056
95
0.557683
36ac8ae2ed2821ead2905989553b79b6c0505118
3,781
py
Python
python/GafferCortexUI/OpPathPreview.py
danieldresser-ie/gaffer
78c22487156a5800fcca49a24f52451a8ac0c559
[ "BSD-3-Clause" ]
1
2016-07-31T09:55:09.000Z
2016-07-31T09:55:09.000Z
python/GafferCortexUI/OpPathPreview.py
Kthulhu/gaffer
8995d579d07231988abc92c3ac2788c15c8bc75c
[ "BSD-3-Clause" ]
null
null
null
python/GafferCortexUI/OpPathPreview.py
Kthulhu/gaffer
8995d579d07231988abc92c3ac2788c15c8bc75c
[ "BSD-3-Clause" ]
1
2020-02-15T16:15:54.000Z
2020-02-15T16:15:54.000Z
########################################################################## # # Copyright (c) 2012, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistrib...
34.063063
113
0.705369
4e1835e8b2744d29b4406cdc5701d32379d71c77
319
py
Python
src/prefect/tasks/cubejs/__init__.py
suryatmodulus/prefect
e4ac9f6aa831140c7fba0397f3e5e0884b1b9e42
[ "Apache-2.0" ]
3
2021-11-09T10:46:58.000Z
2022-03-11T04:22:35.000Z
src/prefect/tasks/cubejs/__init__.py
suryatmodulus/prefect
e4ac9f6aa831140c7fba0397f3e5e0884b1b9e42
[ "Apache-2.0" ]
8
2021-10-11T16:42:59.000Z
2022-03-31T08:42:24.000Z
src/prefect/tasks/cubejs/__init__.py
suryatmodulus/prefect
e4ac9f6aa831140c7fba0397f3e5e0884b1b9e42
[ "Apache-2.0" ]
1
2022-03-11T04:22:40.000Z
2022-03-11T04:22:40.000Z
""" This is a collection of tasks to interact with a Cube.js or Cube Cloud environment. """ try: from prefect.tasks.cubejs.cubejs_tasks import CubeJSQueryTask except ImportError as err: raise ImportError( 'prefect.tasks.cubejs` requires Prefect to be installed with the "cubejs" extra.' ) from err
29
89
0.733542
68a460e9023c6da78d1ba6ed3e3b2597a663b497
381
py
Python
auth-api/migrations/versions/a0f0a77dc77f_merge_heads.py
karthik-aot/sbc-auth
f24028040fda67d4f10ae9b608b8832c15d2a8ad
[ "Apache-2.0" ]
11
2019-09-26T06:58:25.000Z
2022-01-26T06:19:39.000Z
auth-api/migrations/versions/a0f0a77dc77f_merge_heads.py
karthik-aot/sbc-auth
f24028040fda67d4f10ae9b608b8832c15d2a8ad
[ "Apache-2.0" ]
1,622
2019-05-07T21:08:38.000Z
2022-03-28T17:07:15.000Z
auth-api/migrations/versions/a0f0a77dc77f_merge_heads.py
karthik-aot/sbc-auth
f24028040fda67d4f10ae9b608b8832c15d2a8ad
[ "Apache-2.0" ]
98
2019-03-01T21:36:15.000Z
2021-12-01T22:11:25.000Z
"""merge heads Revision ID: a0f0a77dc77f Revises: 3c89ccb6bb32, a37f90e6802d Create Date: 2021-05-03 08:30:00.475241 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = 'a0f0a77dc77f' down_revision = ('3c89ccb6bb32', 'a37f90e6802d') branch_labels = None depends_on ...
15.24
48
0.740157
f13346bec1052b9eb2d1ed7b8b14f69df38c842f
10,383
py
Python
kubernetes/test/test_extensions_v1beta1_api.py
L3T/python
b6e4ae81a2afb49f668a142eb7d1c6e2571ef478
[ "Apache-2.0" ]
2
2020-06-21T08:03:18.000Z
2020-06-21T09:53:29.000Z
kubernetes/test/test_extensions_v1beta1_api.py
L3T/python
b6e4ae81a2afb49f668a142eb7d1c6e2571ef478
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_extensions_v1beta1_api.py
L3T/python
b6e4ae81a2afb49f668a142eb7d1c6e2571ef478
[ "Apache-2.0" ]
1
2020-12-10T07:28:08.000Z
2020-12-10T07:28:08.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: release-1.16 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import...
22.870044
124
0.663874
0922cc75a62ba7bfe0746cb0a7b74ec4ab844c95
7,482
py
Python
stests/monitoring/on_consensus_finality_signature.py
Fraser999/stests
482a84e562223731e47e5e2b91d0a081f5c4aad6
[ "Apache-2.0" ]
null
null
null
stests/monitoring/on_consensus_finality_signature.py
Fraser999/stests
482a84e562223731e47e5e2b91d0a081f5c4aad6
[ "Apache-2.0" ]
null
null
null
stests/monitoring/on_consensus_finality_signature.py
Fraser999/stests
482a84e562223731e47e5e2b91d0a081f5c4aad6
[ "Apache-2.0" ]
null
null
null
from datetime import datetime import typing import dramatiq from stests import chain from stests.core import cache from stests.core import factory from stests.core.logging import log_event from stests.core.types.chain import BlockStatus from stests.core.types.chain import Deploy from stests.core.types.chain import De...
33.702703
153
0.686982
9d29d77cb65d89efc7a7f0a789c6ffb5bf468c6f
10,726
py
Python
venv/lib/python2.7/site-packages/openpyxl/drawing/fill.py
Christian-Castro/castro_odoo8
8247fdb20aa39e043b6fa0c4d0af509462ab3e00
[ "Unlicense" ]
7
2016-12-12T02:29:42.000Z
2020-05-12T21:21:21.000Z
venv/lib/python2.7/site-packages/openpyxl/drawing/fill.py
Christian-Castro/castro_odoo8
8247fdb20aa39e043b6fa0c4d0af509462ab3e00
[ "Unlicense" ]
31
2017-01-05T06:07:28.000Z
2018-05-27T13:13:06.000Z
venv/lib/python2.7/site-packages/openpyxl/drawing/fill.py
Christian-Castro/castro_odoo8
8247fdb20aa39e043b6fa0c4d0af509462ab3e00
[ "Unlicense" ]
3
2017-12-21T23:30:12.000Z
2019-01-03T20:51:52.000Z
from __future__ import absolute_import # Copyright (c) 2010-2016 openpyxl from openpyxl.descriptors.serialisable import Serialisable from openpyxl.descriptors import ( Alias, Bool, Integer, Set, NoneSet, Typed, MinMax, Sequence, ) from openpyxl.descriptors.excel import Relation from op...
30.733524
97
0.58829
f50f274b3acfb9c9a4ac34ad1d3d2ed913ad3196
2,135
py
Python
Scripts/Python/iris pero en python.py
ceceher/Analisis-multivariado
08f88ce71201ac4e290bfdcac89287e021662cb4
[ "MIT" ]
null
null
null
Scripts/Python/iris pero en python.py
ceceher/Analisis-multivariado
08f88ce71201ac4e290bfdcac89287e021662cb4
[ "MIT" ]
null
null
null
Scripts/Python/iris pero en python.py
ceceher/Analisis-multivariado
08f88ce71201ac4e290bfdcac89287e021662cb4
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from matplotlib import pyplot as plt from numpy.core.fromnumeric import mean from sklearn.cluster import MeanShift from sklearn.decomposition import PCA from sklearn.cluster import MiniBatchKMeans from sklearn import datasets iris = datasets.load_iris() X = iris.data[:, :2] y = ...
26.036585
107
0.551756
bdb5a26660d8c923f26e60d108a3325e1b66d7b8
2,145
py
Python
torch/utils/data/datapipes/utils/common.py
WBobby/pytorch
655960460ccca936fa5c06df6bbafd25b5582115
[ "Intel" ]
1
2019-11-20T08:10:31.000Z
2019-11-20T08:10:31.000Z
torch/utils/data/datapipes/utils/common.py
WBobby/pytorch
655960460ccca936fa5c06df6bbafd25b5582115
[ "Intel" ]
null
null
null
torch/utils/data/datapipes/utils/common.py
WBobby/pytorch
655960460ccca936fa5c06df6bbafd25b5582115
[ "Intel" ]
1
2022-01-19T10:55:49.000Z
2022-01-19T10:55:49.000Z
import os import fnmatch import warnings from io import BufferedIOBase from typing import Iterable, List, Union def match_masks(name : str, masks : Union[str, List[str]]) -> bool: # empty mask matches any input name if not masks: return True if isinstance(masks, str): return fnmatch.fnma...
32.5
127
0.632168
c38e8f9b6d3d2bf71a21acd494318fe58917604c
691
py
Python
sdk/python/pulumi_azure_native/netapp/v20201201/__init__.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/netapp/v20201201/__init__.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/netapp/v20201201/__init__.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** from ... import _utilities import typing # Export this package's modules as members: from ._enums import * from .account import * from .backup import *...
27.64
80
0.748191
08b1e95d3aedc5a3f02b6ea508ea1d2ee3174a67
6,579
py
Python
kydavra/GeneticAlgorithmSelector.py
ScienceKot/kydavra
cbed15c1e0337c250fa9cc3350135764467ef071
[ "MIT" ]
33
2020-08-17T04:22:41.000Z
2022-03-05T18:49:16.000Z
kydavra/GeneticAlgorithmSelector.py
SigmoidAI/kydavra
e17f3855b94045953d0df6d13b9d9e0dffa9a8a3
[ "MIT" ]
null
null
null
kydavra/GeneticAlgorithmSelector.py
SigmoidAI/kydavra
e17f3855b94045953d0df6d13b9d9e0dffa9a8a3
[ "MIT" ]
9
2020-09-22T13:14:28.000Z
2022-01-31T06:44:31.000Z
''' Created with love by Sigmoid @Author - Păpăluță Vasile - vpapaluta06@gmail.com ''' # Importing all needed libraries import random from sklearn.metrics import accuracy_score from sklearn.model_selection import train_test_split class GeneticAlgorithmSelector: def __init__(self, nb_children : int = 4, n...
44.755102
134
0.598875
bb0ac780c72b8e6be418e361ae629978f4591809
690
py
Python
roles/alpine/library/zpool_exists.py
wenerme/ansible-role-alpine
a0e8190173cd557f84539c53d26bf073433aa815
[ "MIT" ]
3
2019-11-27T02:30:59.000Z
2020-11-25T01:33:26.000Z
roles/alpine/library/zpool_exists.py
wenerme/ansible-role-alpine
a0e8190173cd557f84539c53d26bf073433aa815
[ "MIT" ]
null
null
null
roles/alpine/library/zpool_exists.py
wenerme/ansible-role-alpine
a0e8190173cd557f84539c53d26bf073433aa815
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import os import re import tempfile # import module snippets from ansible.module_utils.basic import AnsibleModule from ansible.module_utils._text import to_bytes, to_native def main(): module = AnsibleModule( argument_spec=dict( name=dict(type='str'),...
23
61
0.647826
d39bf52e1ccaadd2939ef4ff81b9a85364ea05e1
3,181
py
Python
sdks/apigw-manager/src/apigw_manager/apigw/utils.py
IMBlues/bkpaas-python-sdk
a87bee3d26f0ddeac124c7a4679cd3eff4abb8fc
[ "MIT" ]
17
2021-08-03T03:15:35.000Z
2022-03-18T06:10:04.000Z
sdks/apigw-manager/src/apigw_manager/apigw/utils.py
IMBlues/bkpaas-python-sdk
a87bee3d26f0ddeac124c7a4679cd3eff4abb8fc
[ "MIT" ]
7
2021-08-03T07:10:12.000Z
2022-03-23T04:47:22.000Z
sdks/apigw-manager/src/apigw_manager/apigw/utils.py
IMBlues/bkpaas-python-sdk
a87bee3d26f0ddeac124c7a4679cd3eff4abb8fc
[ "MIT" ]
9
2021-08-03T03:20:36.000Z
2022-03-08T13:47:50.000Z
# -*- coding: utf-8 -*- """ * TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-蓝鲸 PaaS 平台(BlueKing-PaaS) available. * Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except in co...
31.49505
118
0.638164
df9b6a4b7e73cc092740319fecb9da572dc7f3d9
788
py
Python
PWCNet/correlation_package_pytorch1_2/setup.py
withlqs/DAIN
9abab9eabb86bbbd781bc51e2073945248eccc7c
[ "MIT" ]
null
null
null
PWCNet/correlation_package_pytorch1_2/setup.py
withlqs/DAIN
9abab9eabb86bbbd781bc51e2073945248eccc7c
[ "MIT" ]
null
null
null
PWCNet/correlation_package_pytorch1_2/setup.py
withlqs/DAIN
9abab9eabb86bbbd781bc51e2073945248eccc7c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import torch from setuptools import setup, find_packages from torch.utils.cpp_extension import BuildExtension, CUDAExtension cxx_args = ['-std=c++14'] nvcc_args = [ '-gencode', 'arch=compute_50,code=sm_50', '-gencode', 'arch=compute_52,code=sm_52', '-gencode', 'arch=compu...
26.266667
67
0.656091
d286b1f8fbb07bffdd23639bcef992bc445a6819
4,471
py
Python
profiles_api/views.py
palakjadwani/profiles-rest-api
cfad7e944396ed941a509bf65fce26beb15116f3
[ "MIT" ]
null
null
null
profiles_api/views.py
palakjadwani/profiles-rest-api
cfad7e944396ed941a509bf65fce26beb15116f3
[ "MIT" ]
6
2020-05-06T09:17:16.000Z
2022-02-10T09:17:14.000Z
profiles_api/views.py
palakjadwani/profiles-rest-api
cfad7e944396ed941a509bf65fce26beb15116f3
[ "MIT" ]
null
null
null
from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from rest_framework import viewsets from rest_framework.authentication import TokenAuthentication from rest_framework import filters from rest_framework.authtoken.views import ObtainAuthToken from res...
35.204724
76
0.666518
66b99341ec2f922aa165c950dd0301ebd3458d4a
84
py
Python
chesstimer/timer.py
theseana/pesteh
1125dc1055e3b8466c3c539c4afc2149d663dd46
[ "MIT" ]
1
2022-01-16T00:33:57.000Z
2022-01-16T00:33:57.000Z
chesstimer/timer.py
theseana/pesteh
1125dc1055e3b8466c3c539c4afc2149d663dd46
[ "MIT" ]
null
null
null
chesstimer/timer.py
theseana/pesteh
1125dc1055e3b8466c3c539c4afc2149d663dd46
[ "MIT" ]
null
null
null
timer = 1052 m = int(timer/60) s = timer % 60 print('{:02d}:{:02d}'.format(m, s))
12
35
0.559524
3cf2e3021819a13c8f91b0612e0f2053fad3d04d
16,022
py
Python
借来的plugins/OPQ-SetuBot/module/database.py
njjjay/IOTQQPlugins_selfuse
23bda39647c14256e6366bf49d72bb71ba68cbd7
[ "MIT" ]
19
2020-06-16T03:36:24.000Z
2022-01-30T07:46:29.000Z
借来的plugins/OPQ-SetuBot/module/database.py
njjjay/IOTQQPlugins_selfuse
23bda39647c14256e6366bf49d72bb71ba68cbd7
[ "MIT" ]
1
2020-08-01T18:20:10.000Z
2020-08-03T10:42:04.000Z
借来的plugins/OPQ-SetuBot/module/database.py
njjjay/IOTQQPlugins_selfuse
23bda39647c14256e6366bf49d72bb71ba68cbd7
[ "MIT" ]
5
2020-08-12T02:02:20.000Z
2021-06-09T08:38:33.000Z
from tinydb import TinyDB, Query, where from tinydb.storages import MemoryStorage from tinydb.operations import add from loguru import logger from module.send import action from module import config import os import time import re import random from retrying import retry groupConfig = TinyDB('./config/groupConfig.json...
38.700483
114
0.48708
7950078596d2c065a217c94205bfc57e7ee8e2e1
10,310
py
Python
tfs/collection.py
st-walker/tfs
7a229f4fecbf04d544c5116d79a281e4365ccd1d
[ "MIT" ]
5
2019-02-18T14:38:59.000Z
2021-12-14T15:33:50.000Z
tfs/collection.py
st-walker/tfs
7a229f4fecbf04d544c5116d79a281e4365ccd1d
[ "MIT" ]
54
2019-02-19T14:44:36.000Z
2022-02-16T15:07:53.000Z
tfs/collection.py
st-walker/tfs
7a229f4fecbf04d544c5116d79a281e4365ccd1d
[ "MIT" ]
4
2019-10-17T08:58:57.000Z
2022-02-15T15:55:18.000Z
""" Collection ---------------------- Advanced **TFS** files reading and writing functionality. """ import pathlib from pandas import DataFrame from tfs.frame import TfsDataFrame from tfs.reader import read_tfs from tfs.writer import write_tfs class _MetaTfsCollection(type): """ Metaclass for TfsCollection...
36.048951
104
0.63967
c895e9888b8318f5541cb699e275cdf33e70e2bf
3,379
py
Python
tests/test_datasets.py
duranbe/doccano-transformer
1d19de73bf3b0cebadb31508e3a1864b4e1a6414
[ "MIT" ]
null
null
null
tests/test_datasets.py
duranbe/doccano-transformer
1d19de73bf3b0cebadb31508e3a1864b4e1a6414
[ "MIT" ]
null
null
null
tests/test_datasets.py
duranbe/doccano-transformer
1d19de73bf3b0cebadb31508e3a1864b4e1a6414
[ "MIT" ]
null
null
null
import json from collections import defaultdict from pathlib import Path from unittest import TestCase from doccano_transformer.datasets import NERDataset class TestNERDataset(TestCase): @classmethod def setUp(self): current_path = Path(__file__).parent self.shared_datadir = current_path / 'd...
39.752941
78
0.632436
9da11d6a5cfe0a6d9b039592994da66dc5b32b31
5,325
py
Python
labconfig.py
labscript-suite-bitbucket-archive/spielman-labscript_utils_mainline--forked-from--labscript_suite-labscript_utils
62811f8d31b40d79307029d7283c01d71213307c
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
labconfig.py
labscript-suite-bitbucket-archive/spielman-labscript_utils_mainline--forked-from--labscript_suite-labscript_utils
62811f8d31b40d79307029d7283c01d71213307c
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
labconfig.py
labscript-suite-bitbucket-archive/spielman-labscript_utils_mainline--forked-from--labscript_suite-labscript_utils
62811f8d31b40d79307029d7283c01d71213307c
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
##################################################################### # # # labconfig.py # # # # Copyright 2013, Monash University ...
44.375
208
0.614648
efff774df8b7ee79428772a0bc7b7b7e7b6b162a
111
py
Python
PythonFiles/MCQGame2.py
IamVaibhavsar/Python_Files
283d73929a3e11955c71499407c4f8bff56e4273
[ "MIT" ]
null
null
null
PythonFiles/MCQGame2.py
IamVaibhavsar/Python_Files
283d73929a3e11955c71499407c4f8bff56e4273
[ "MIT" ]
null
null
null
PythonFiles/MCQGame2.py
IamVaibhavsar/Python_Files
283d73929a3e11955c71499407c4f8bff56e4273
[ "MIT" ]
1
2019-07-26T15:25:21.000Z
2019-07-26T15:25:21.000Z
class Question: def __init__ (self,prompt,answer): self.prompt=prompt self.answer=answer
27.75
39
0.648649
427c79481b49b26fccbefbec4fd11d29e61aa903
10,700
py
Python
docs/conf.py
zmunk/scrapy
015b71d89fd641bfd926608a2490a963cf4fb40d
[ "BSD-3-Clause" ]
2
2021-05-18T02:27:56.000Z
2021-05-18T11:11:12.000Z
docs/conf.py
zmunk/scrapy
015b71d89fd641bfd926608a2490a963cf4fb40d
[ "BSD-3-Clause" ]
4
2020-06-06T03:16:43.000Z
2020-07-27T16:43:50.000Z
docs/conf.py
zmunk/scrapy
015b71d89fd641bfd926608a2490a963cf4fb40d
[ "BSD-3-Clause" ]
null
null
null
# Scrapy documentation build configuration file, created by # sphinx-quickstart on Mon Nov 24 12:02:52 2008. # # This file is execfile()d with the current directory set to its containing dir. # # The contents of this file are pickled, so don't put values in the namespace # that aren't pickleable (module imports are oka...
33.333333
82
0.710467
7c698d83895af2aaee69a2efa69f75aafaf715ae
4,771
py
Python
scripts/django_tests_settings.py
PeterJCLaw/django-stubs
29ac1c3017f764f58bb341e43d11f399076c631a
[ "MIT" ]
null
null
null
scripts/django_tests_settings.py
PeterJCLaw/django-stubs
29ac1c3017f764f58bb341e43d11f399076c631a
[ "MIT" ]
1
2021-06-15T16:24:10.000Z
2021-06-15T16:24:10.000Z
scripts/django_tests_settings.py
p7g/django-stubs
fe63fd1d2b7dd47cfc111a7753e45370e9497a2e
[ "MIT" ]
null
null
null
SECRET_KEY = '1' SITE_ID = 1 INSTALLED_APPS = [ 'django.contrib.contenttypes', 'django.contrib.auth', 'django.contrib.sites', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.admin.apps.SimpleAdminConfig', 'django.contrib.staticfiles', ] test_modules = [ 'absolute_...
20.743478
50
0.62817
36ba1659bbf981dfb6fb0298922e53a87e01b93e
16,592
py
Python
tensorflow/python/data/kernel_tests/group_by_window_test.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
190,993
2015-11-09T13:17:30.000Z
2022-03-31T23:05:27.000Z
tensorflow/python/data/kernel_tests/group_by_window_test.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
48,461
2015-11-09T14:21:11.000Z
2022-03-31T23:17:33.000Z
tensorflow/python/data/kernel_tests/group_by_window_test.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
104,981
2015-11-09T13:40:17.000Z
2022-03-31T19:51:54.000Z
# Copyright 2017 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.069307
80
0.679785
cff9b2b3f1159bc656b4d3ba4f21d01d2274f087
1,064
py
Python
account/migrations/0002_userinfo.py
ZiYin-ss/python-blog2
78f30bb969fc0d2f0ddb7c1221bb2210387f2c09
[ "MIT" ]
null
null
null
account/migrations/0002_userinfo.py
ZiYin-ss/python-blog2
78f30bb969fc0d2f0ddb7c1221bb2210387f2c09
[ "MIT" ]
null
null
null
account/migrations/0002_userinfo.py
ZiYin-ss/python-blog2
78f30bb969fc0d2f0ddb7c1221bb2210387f2c09
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-10-21 18:09 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('account', '0001_initial'...
36.689655
121
0.62406
565cb246133194bb38b5a48e36746987ff513d69
873
py
Python
home/views.py
ViniciusBessa/django_hortifruti
d98ce422c32eecfc3c776207a562b8a880595088
[ "MIT" ]
1
2021-12-02T01:04:41.000Z
2021-12-02T01:04:41.000Z
home/views.py
ViniciusBessa/django_hortifruti
d98ce422c32eecfc3c776207a562b8a880595088
[ "MIT" ]
null
null
null
home/views.py
ViniciusBessa/django_hortifruti
d98ce422c32eecfc3c776207a562b8a880595088
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.views import View from core.models import Produto, dados_comuns class HomeView(View): """ View que renderiza a home do projeto Attribute template_name: Recebe o template que deve ser renderizado pelo view Attribute context: Um dicionário que será utili...
30.103448
92
0.702176
b1b20daa07905e92fd8a5f9057bd73a4cd02ce81
838
py
Python
170522_visualizing_one_million_cells/cluster.py
Sangram-Rout/scanpy_usage
38030605c74c755167302caa431cf3ff62de646f
[ "BSD-3-Clause" ]
52
2017-07-25T20:30:02.000Z
2022-03-18T07:22:45.000Z
170522_visualizing_one_million_cells/cluster.py
Sangram-Rout/scanpy_usage
38030605c74c755167302caa431cf3ff62de646f
[ "BSD-3-Clause" ]
16
2017-08-11T12:26:10.000Z
2020-12-10T23:12:00.000Z
170522_visualizing_one_million_cells/cluster.py
Sangram-Rout/scanpy_usage
38030605c74c755167302caa431cf3ff62de646f
[ "BSD-3-Clause" ]
49
2017-09-10T22:39:31.000Z
2022-03-06T08:04:32.000Z
import matplotlib matplotlib.use('Agg') # plotting backend compatible with screen import sys import scanpy.api as sc sc.settings.verbosity = 2 # show logging output sc.settings.autosave = True # save figures, do not show them sc.settings.set_figure_params(dpi=300) # set sufficiently high resolution for saving fil...
28.896552
85
0.71957
b9d889ee1044fa5b5ee94d8c8cd78a594fdf590b
8,954
py
Python
tools/build.py
NeuroSystemsLLC/brainflow
1178bc767eb55819148e8be25592fa24a91868db
[ "MIT" ]
null
null
null
tools/build.py
NeuroSystemsLLC/brainflow
1178bc767eb55819148e8be25592fa24a91868db
[ "MIT" ]
null
null
null
tools/build.py
NeuroSystemsLLC/brainflow
1178bc767eb55819148e8be25592fa24a91868db
[ "MIT" ]
null
null
null
import argparse import platform import subprocess import os from shutil import rmtree def run_command(cmd, cwd=None): print('Running command: %s' % (' '.join(cmd))) p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, cwd=cwd) while True: p.stdout.flush() line = p.st...
42.436019
167
0.655573
647914e929c2f6455e5e69370806d9172d4475be
4,435
py
Python
micro_cata/.ipynb_checkpoints/param_gamma-checkpoint.py
amrodrig72/micro_cata
7f216b0847e479e40af52801a5390d6f930085a4
[ "MIT" ]
null
null
null
micro_cata/.ipynb_checkpoints/param_gamma-checkpoint.py
amrodrig72/micro_cata
7f216b0847e479e40af52801a5390d6f930085a4
[ "MIT" ]
null
null
null
micro_cata/.ipynb_checkpoints/param_gamma-checkpoint.py
amrodrig72/micro_cata
7f216b0847e479e40af52801a5390d6f930085a4
[ "MIT" ]
null
null
null
#Expected file: '../data/gardner_mt_catastrophe_only_tubulin.csv' def param_gamma (file): #Import packages import pandas as pd; import numpy as np; import bebi103 import math; import scipy; import scipy.stats as st; import numba; import tqdm; import warnings import iqplot; import bokeh.io; import boke...
34.648438
121
0.623224
bdf2fb866102f04138515d031595c2f26b9911e9
4,394
py
Python
tatk/nlu/bert/model.py
yqzhangthu/tatk
4d27e89604a33f19f1c7b8fe5dc92d4ba6c6f10a
[ "Apache-2.0" ]
null
null
null
tatk/nlu/bert/model.py
yqzhangthu/tatk
4d27e89604a33f19f1c7b8fe5dc92d4ba6c6f10a
[ "Apache-2.0" ]
null
null
null
tatk/nlu/bert/model.py
yqzhangthu/tatk
4d27e89604a33f19f1c7b8fe5dc92d4ba6c6f10a
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn from pytorch_pretrained_bert import BertModel class BertNLU(nn.Module): def __init__(self, model_config, intent_dim, tag_dim, DEVICE, intent_weight=None): super(BertNLU, self).__init__() self.DEVICE = DEVICE self.bert = BertModel.from_pretrained(model_con...
52.939759
118
0.686391
7e810db2476ab0a46b7ec51bb35a6c9f0d241d61
3,768
py
Python
Machine-Learning-with-Python- From-LM-to-DL/Unit 2. Non Linear Classification, Linear Regression, Colaborative Filtering/mnist/part1/test_environment6.py
andresdelarosa1887/Public-Projects
db8d8e0c0f5f0f7326346462fcdfe21ce8142a12
[ "Unlicense" ]
1
2020-09-29T17:29:34.000Z
2020-09-29T17:29:34.000Z
Machine-Learning-with-Python- From-LM-to-DL/Unit 2. Non Linear Classification, Linear Regression, Colaborative Filtering/mnist/part1/test_environment6.py
andresdelarosa1887/Public-Projects
db8d8e0c0f5f0f7326346462fcdfe21ce8142a12
[ "Unlicense" ]
null
null
null
Machine-Learning-with-Python- From-LM-to-DL/Unit 2. Non Linear Classification, Linear Regression, Colaborative Filtering/mnist/part1/test_environment6.py
andresdelarosa1887/Public-Projects
db8d8e0c0f5f0f7326346462fcdfe21ce8142a12
[ "Unlicense" ]
null
null
null
import sys import numpy as np import matplotlib.pyplot as plt sys.path.append("..") from utils import * from linear_regression import * from svm import * from softmax import * from features import * from kernel import * ##Given the following parameters X = np.array([ [1, 2, 3], [2, 4, 6], [3, ...
30.387097
115
0.701168
fd096cb33e7c6df37e6df5db7bbc0435218879ae
12,372
py
Python
boqn/dropwave_test_runner.py
RaulAstudillo06/BOQN
c5b2bb9e547e2489f856ebf86c749fb24eba1022
[ "MIT" ]
null
null
null
boqn/dropwave_test_runner.py
RaulAstudillo06/BOQN
c5b2bb9e547e2489f856ebf86c749fb24eba1022
[ "MIT" ]
null
null
null
boqn/dropwave_test_runner.py
RaulAstudillo06/BOQN
c5b2bb9e547e2489f856ebf86c749fb24eba1022
[ "MIT" ]
null
null
null
import os import sys import time from copy import copy import numpy as np import torch torch.set_default_dtype(torch.float64) import botorch from botorch.settings import debug debug._set_state(True) # Get script directory script_dir = os.path.dirname(os.path.realpath(sys.argv[0])) project_path = script_dir[:-5] # P...
38.303406
147
0.620272
4c8c2371406849ab59119bb6c6541ede81cf303c
7,673
py
Python
onshape.py
PartyParrot9000/APITools
34b3faf1e96102e27d162973497e135296971c69
[ "MIT" ]
null
null
null
onshape.py
PartyParrot9000/APITools
34b3faf1e96102e27d162973497e135296971c69
[ "MIT" ]
null
null
null
onshape.py
PartyParrot9000/APITools
34b3faf1e96102e27d162973497e135296971c69
[ "MIT" ]
null
null
null
''' onshape ====== Provides access to the Onshape REST API ''' import os import random import string import json import hmac import hashlib import base64 import urllib.request import urllib.parse import urllib.error import datetime import requests from urllib.parse import urlparse from urllib.parse import parse_qs ...
33.50655
115
0.549589
5399301142bba7f00de32fea340036aa796a3a52
10,198
py
Python
examples/moocdl/moocdl.py
Myfanily123456/DecryptLogin
bf11dde3430b3b64ed59d3487803baac48685d4d
[ "MIT" ]
1
2022-02-23T11:58:57.000Z
2022-02-23T11:58:57.000Z
examples/moocdl/moocdl.py
Myfanily123456/DecryptLogin
bf11dde3430b3b64ed59d3487803baac48685d4d
[ "MIT" ]
null
null
null
examples/moocdl/moocdl.py
Myfanily123456/DecryptLogin
bf11dde3430b3b64ed59d3487803baac48685d4d
[ "MIT" ]
null
null
null
''' Function: MOOC下载器 Author: Charles 微信公众号: Charles的皮卡丘 ''' import os import re import time import click import random import shutil import argparse import subprocess from tqdm import tqdm from DecryptLogin import login from urllib.parse import urlencode '''命令行参数解析''' def parseArgs(): parser = argpar...
45.123894
155
0.488429
00ea98fc4c7a2248daeea39702a1737a091a26c4
706
py
Python
tests/mock.py
ushiboy/pi-cmd
1d9cba8f1e82005078e0d737efaa6d628a55f420
[ "MIT" ]
1
2021-06-28T02:15:55.000Z
2021-06-28T02:15:55.000Z
tests/mock.py
ushiboy/picmd
1d9cba8f1e82005078e0d737efaa6d628a55f420
[ "MIT" ]
1
2020-05-20T14:38:06.000Z
2020-05-20T14:44:31.000Z
tests/mock.py
ushiboy/picmd
1d9cba8f1e82005078e0d737efaa6d628a55f420
[ "MIT" ]
null
null
null
class MockSerial: @property def in_waiting(self): if self._cursor < len(self._buffer_datas): return len(self._buffer_datas[self._cursor]) return 0 def __init__(self, buffer_datas=None): if buffer_datas is None: buffer_datas = [] self._buffer_datas = ...
24.344828
56
0.570822
aba3d494758ab59bb84eb39eff03c15da0eafeae
767
py
Python
461.Hamming-Distance.py
mickey0524/leetcode
6bedeb6ff29b02a97178cca464c5fd639951801f
[ "MIT" ]
18
2018-07-14T12:45:37.000Z
2022-03-26T14:51:04.000Z
461.Hamming-Distance.py
mickey0524/leetcode
6bedeb6ff29b02a97178cca464c5fd639951801f
[ "MIT" ]
null
null
null
461.Hamming-Distance.py
mickey0524/leetcode
6bedeb6ff29b02a97178cca464c5fd639951801f
[ "MIT" ]
3
2019-05-29T04:09:22.000Z
2021-06-07T23:37:46.000Z
# https://leetcode.com/problems/hamming-distance/ # # algorithms # Easy (70.58%) # Total Accepted: 253,549 # Total Submissions: 359,219 class Solution(object): def hammingDistance(self, x, y): """ :type x: int :type y: int :rtype: int """ ans = 0 for _ i...
17.431818
49
0.431551
d0081ba553d230f1a10a1fad0d54c902a4264a35
2,246
py
Python
flow/benchmarks/baselines/us_merge012.py
cuijiaxun/MITC
a226308424237a69b5e938baf72949de9b1b4bf2
[ "MIT" ]
1
2021-06-17T03:25:13.000Z
2021-06-17T03:25:13.000Z
flow/benchmarks/baselines/us_merge012.py
cuijiaxun/MITC
a226308424237a69b5e938baf72949de9b1b4bf2
[ "MIT" ]
null
null
null
flow/benchmarks/baselines/us_merge012.py
cuijiaxun/MITC
a226308424237a69b5e938baf72949de9b1b4bf2
[ "MIT" ]
1
2021-03-18T16:20:57.000Z
2021-03-18T16:20:57.000Z
"""Evaluates the baseline performance of merge without RL control. Baseline is no AVs. """ import numpy as np from flow.core.experiment import Experiment from flow.core.params import InitialConfig from flow.core.params import TrafficLightParams from flow.benchmarks.us_merge_baseline import flow_params def merge_bas...
29.946667
86
0.685663
a6a2bb24074a52a95a5c5a759aed70bedb5affbb
48
py
Python
sanic-utils/sanic_utils/__init__.py
chivandikwa/sanic-utils
cbce8b7eb860d9c47b77d48c77ec6ecd7b13aa13
[ "MIT" ]
null
null
null
sanic-utils/sanic_utils/__init__.py
chivandikwa/sanic-utils
cbce8b7eb860d9c47b77d48c77ec6ecd7b13aa13
[ "MIT" ]
null
null
null
sanic-utils/sanic_utils/__init__.py
chivandikwa/sanic-utils
cbce8b7eb860d9c47b77d48c77ec6ecd7b13aa13
[ "MIT" ]
null
null
null
from sanic_utils import from_json # noqa: F401
24
47
0.791667
e18b7bfacb8f282c34efe5ea99032c07d4c3a6f1
1,312
py
Python
setup.py
clld/ids
ae52459d3b9284e5da8d755b66e2757dbb3875df
[ "Apache-2.0" ]
4
2016-08-26T17:53:33.000Z
2021-11-23T15:05:14.000Z
setup.py
clld/ids
ae52459d3b9284e5da8d755b66e2757dbb3875df
[ "Apache-2.0" ]
13
2015-01-29T13:17:10.000Z
2021-11-23T10:49:02.000Z
setup.py
clld/ids
ae52459d3b9284e5da8d755b66e2757dbb3875df
[ "Apache-2.0" ]
2
2015-12-06T22:03:27.000Z
2021-11-22T12:32:27.000Z
from setuptools import setup, find_packages setup( name='ids', version='0.0', description='ids', long_description='', classifiers=[ "Programming Language :: Python", "Framework :: Pyramid", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: WSGI :: A...
23.428571
63
0.476372
d309498cdbc0049546db403b718365f43d98bc5c
10,945
py
Python
python/phonenumbers/geocoder.py
rodgar-nvkz/python-phonenumbers
4c7c4892211dbc9bc328bc3356b03853eaf993dc
[ "Apache-2.0" ]
2,424
2015-01-05T05:34:45.000Z
2022-03-28T22:37:53.000Z
python/phonenumbers/geocoder.py
rodgar-nvkz/python-phonenumbers
4c7c4892211dbc9bc328bc3356b03853eaf993dc
[ "Apache-2.0" ]
166
2015-01-30T23:59:18.000Z
2022-03-14T21:08:42.000Z
python/phonenumbers/geocoder.py
rodgar-nvkz/python-phonenumbers
4c7c4892211dbc9bc328bc3356b03853eaf993dc
[ "Apache-2.0" ]
345
2015-01-02T00:33:27.000Z
2022-03-26T13:06:57.000Z
"""Phone number geocoding functionality >>> import phonenumbers >>> from phonenumbers.geocoder import description_for_number >>> from phonenumbers.util import u >>> gb_number = phonenumbers.parse("+442083612345", "GB") >>> de_number = phonenumbers.parse("0891234567", "DE") >>> ch_number = phonenumbers.parse("043123456...
48.429204
99
0.696848
ba1b045a2f8bddbee6061c434ea2b4c9f5c2f60c
952
py
Python
readthedocs/payments/utils.py
agarwalrounak/readthedocs.org
4911600c230809bd6fb3585d1903121db2928ad6
[ "MIT" ]
10
2019-05-21T03:00:40.000Z
2022-03-12T11:24:39.000Z
readthedocs/payments/utils.py
agarwalrounak/readthedocs.org
4911600c230809bd6fb3585d1903121db2928ad6
[ "MIT" ]
12
2019-12-05T04:47:01.000Z
2022-01-09T00:56:58.000Z
readthedocs/payments/utils.py
agarwalrounak/readthedocs.org
4911600c230809bd6fb3585d1903121db2928ad6
[ "MIT" ]
5
2019-07-08T23:45:10.000Z
2021-02-26T07:29:49.000Z
# -*- coding: utf-8 -*- """ Payment utility functions. These are mostly one-off functions. Define the bulk of Stripe operations on :py:class:`readthedocs.payments.forms.StripeResourceMixin`. """ import stripe from django.conf import settings stripe.api_key = getattr(settings, 'STRIPE_SECRET', None) def delete_cu...
27.2
75
0.712185
4e983584f89e0e6a328c365c38be256664a4d7ed
116
py
Python
web/templatetags/to_i.py
otoyo/satisfactory-mobile
60d3fba20031bfbc795d4ff831370c27834c1d21
[ "MIT" ]
null
null
null
web/templatetags/to_i.py
otoyo/satisfactory-mobile
60d3fba20031bfbc795d4ff831370c27834c1d21
[ "MIT" ]
null
null
null
web/templatetags/to_i.py
otoyo/satisfactory-mobile
60d3fba20031bfbc795d4ff831370c27834c1d21
[ "MIT" ]
null
null
null
from django import template register = template.Library() @register.filter def to_i(value): return int(value)
14.5
29
0.75
a4407848923c8c6ff2de703135b7b7bea3e85333
3,689
py
Python
library/cartridge_get_disabled_instances.py
tarantool/ansible-cartridge
14d86752d582f43f0d8efb27dbaa1175ff6e8ac2
[ "BSD-2-Clause" ]
17
2019-09-02T15:31:56.000Z
2022-03-29T18:49:59.000Z
library/cartridge_get_disabled_instances.py
tarantool/ansible-cartridge
14d86752d582f43f0d8efb27dbaa1175ff6e8ac2
[ "BSD-2-Clause" ]
171
2019-10-24T15:34:34.000Z
2022-03-29T09:18:46.000Z
library/cartridge_get_disabled_instances.py
tarantool/ansible-cartridge
14d86752d582f43f0d8efb27dbaa1175ff6e8ac2
[ "BSD-2-Clause" ]
14
2019-12-23T08:27:06.000Z
2021-07-06T15:53:49.000Z
#!/usr/bin/env python from ansible.module_utils.helpers import Helpers as helpers argument_spec = { 'module_hostvars': {'required': True, 'type': 'dict'}, 'play_hosts': {'required': True, 'type': 'list'}, 'ignore_split_brain': {'required': False, 'type': 'bool', 'default': False}, } def get_disabled_ins...
35.815534
119
0.73299
fa8bfdd43fa8170c8fefb81e61066ab0f0503372
143
py
Python
main.py
dclavijo45/mvc-flask-template
4904047ad4cd0679ce634b0a92ec5fcdd6152f15
[ "MIT" ]
null
null
null
main.py
dclavijo45/mvc-flask-template
4904047ad4cd0679ce634b0a92ec5fcdd6152f15
[ "MIT" ]
null
null
null
main.py
dclavijo45/mvc-flask-template
4904047ad4cd0679ce634b0a92ec5fcdd6152f15
[ "MIT" ]
null
null
null
from config import PORT, HOST, DEBUG from __init__ import app if __name__ == "__main__": app.run(host=HOST, port=PORT, debug=bool(DEBUG))
23.833333
52
0.727273
6e8f29999283e6ae9da9895523043178413a0b0c
4,550
py
Python
parse_display.py
leiflundgren/mx-trace-print
6523b63ef7d196fb761ee17bf6576174c0d9ec40
[ "Apache-2.0" ]
null
null
null
parse_display.py
leiflundgren/mx-trace-print
6523b63ef7d196fb761ee17bf6576174c0d9ec40
[ "Apache-2.0" ]
2
2019-01-21T12:54:04.000Z
2019-01-28T16:51:55.000Z
parse_display.py
leiflundgren/mx-trace-print
6523b63ef7d196fb761ee17bf6576174c0d9ec40
[ "Apache-2.0" ]
null
null
null
import io import tools class ParseDisplayOutput: class Individual: def __init__(self, dict) -> None: self.dict = dict def __str__(self) -> str: return "{id}: {name} {state}".format(id=self.id, name=self.unit_name, state=self.state) def get(self, attrName) -> str: ...
33.455882
246
0.520659
f053e128fd90e83ac18d9161549734473560349a
6,954
py
Python
MP3/mp3.py
AndrewQuinn2020/EECS-332-MPs
ee164e98bd6b1b05296e4abec69a8b5d5de2581b
[ "MIT" ]
null
null
null
MP3/mp3.py
AndrewQuinn2020/EECS-332-MPs
ee164e98bd6b1b05296e4abec69a8b5d5de2581b
[ "MIT" ]
null
null
null
MP3/mp3.py
AndrewQuinn2020/EECS-332-MPs
ee164e98bd6b1b05296e4abec69a8b5d5de2581b
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # Anything not directly related to processing here import sys from pathlib import Path import matplotlib.pyplot as plt import numpy as np from mp3_helper import * from PIL import Image np.set_printoptions(threshold=sys.maxsize) np.set_printoptions(linewidth=1000) def img2dict(data): """Const...
30.234783
88
0.568881
45019d83b315ffa8eeae4c46657baa6ed9afbded
923
py
Python
allennlp/modules/token_embedders/pretrained_transformer_embedder.py
donna-legal/allennlp
fd1e3cfaed07ec3ba03b922d12eee47f8be16837
[ "Apache-2.0" ]
2
2019-12-03T20:04:56.000Z
2021-03-29T10:38:06.000Z
allennlp/modules/token_embedders/pretrained_transformer_embedder.py
donna-legal/allennlp
fd1e3cfaed07ec3ba03b922d12eee47f8be16837
[ "Apache-2.0" ]
null
null
null
allennlp/modules/token_embedders/pretrained_transformer_embedder.py
donna-legal/allennlp
fd1e3cfaed07ec3ba03b922d12eee47f8be16837
[ "Apache-2.0" ]
2
2019-12-04T16:55:13.000Z
2019-12-06T18:47:15.000Z
from overrides import overrides from transformers.modeling_auto import AutoModel import torch from allennlp.modules.token_embedders.token_embedder import TokenEmbedder @TokenEmbedder.register("pretrained_transformer") class PretrainedTransformerEmbedder(TokenEmbedder): """ Uses a pretrained model from ``tran...
32.964286
95
0.728061
5a610adcf6fb461d2175f7ca917d41c401c4b549
27,401
py
Python
whitebot.py
kittykatz9/whitebot
bed4b41800249286d95832fa15c49364831d34b5
[ "MIT" ]
null
null
null
whitebot.py
kittykatz9/whitebot
bed4b41800249286d95832fa15c49364831d34b5
[ "MIT" ]
null
null
null
whitebot.py
kittykatz9/whitebot
bed4b41800249286d95832fa15c49364831d34b5
[ "MIT" ]
1
2018-10-09T18:58:49.000Z
2018-10-09T18:58:49.000Z
import discord import datetime import matplotlib.pyplot as plt from matplotlib.ticker import MaxNLocator from discord.ext import commands import json pending = [] # https://discordapp.com/oauth2/authorize?client_id=498889371030781952&scope=bot&permissions=268512342 # https://discordapp.com/oauth2/authorize?client_id=4...
38.811615
135
0.513412
07c3af3b65c62f585f64625260dc2611c57e297e
1,396
py
Python
trace/google/cloud/trace_v1/types.py
q-logic/google-cloud-python
a65065c89c059bc564bbdd79288a48970907c399
[ "Apache-2.0" ]
null
null
null
trace/google/cloud/trace_v1/types.py
q-logic/google-cloud-python
a65065c89c059bc564bbdd79288a48970907c399
[ "Apache-2.0" ]
40
2019-07-16T10:04:48.000Z
2020-01-20T09:04:59.000Z
trace/google/cloud/trace_v1/types.py
q-logic/google-cloud-python
a65065c89c059bc564bbdd79288a48970907c399
[ "Apache-2.0" ]
2
2019-07-18T00:05:31.000Z
2019-11-27T14:17:22.000Z
# -*- 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
27.372549
74
0.738539
7e1fed207803633be00841d46bc4dc68e3aec535
3,422
py
Python
setup.py
FJLendinez/django-ninja-knox
cf4790e52d39b0da678c43eef3fe80876fec3912
[ "MIT" ]
null
null
null
setup.py
FJLendinez/django-ninja-knox
cf4790e52d39b0da678c43eef3fe80876fec3912
[ "MIT" ]
null
null
null
setup.py
FJLendinez/django-ninja-knox
cf4790e52d39b0da678c43eef3fe80876fec3912
[ "MIT" ]
null
null
null
# Always prefer setuptools over distutils # To use a consistent encoding from codecs import open from os import path from setuptools import find_packages, setup here = path.abspath(path.dirname(__file__)) # Get the long description from the relevant file with open(path.join(here, 'README.md'), encoding='utf-8') as f...
36.795699
94
0.679427
5c43288fec9a21a4d7a81f459187f8f61c547a6b
331
py
Python
activity/migrations/0009_remove_service_worship.py
welz-atm/RCCG-dominionSanctuary
46d9ad65370f783756152e731343626e39b1c686
[ "MIT" ]
null
null
null
activity/migrations/0009_remove_service_worship.py
welz-atm/RCCG-dominionSanctuary
46d9ad65370f783756152e731343626e39b1c686
[ "MIT" ]
null
null
null
activity/migrations/0009_remove_service_worship.py
welz-atm/RCCG-dominionSanctuary
46d9ad65370f783756152e731343626e39b1c686
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-09-21 15:05 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('activity', '0008_auto_20210921_1345'), ] operations = [ migrations.RemoveField( model_name='service', name='worship', ...
18.388889
48
0.595166
817a9de7524c97bcbb3cc00457bd2e02688a0130
23,768
py
Python
tests/sampledata.py
pentest-a2p2v/pentest-a2p2v-core
d8dfee3312c656551f85587ed04770795090879d
[ "Apache-2.0" ]
56
2021-06-09T23:40:08.000Z
2022-02-10T14:39:57.000Z
tests/sampledata.py
pentest-a2p2v/pentest-a2p2v-core
d8dfee3312c656551f85587ed04770795090879d
[ "Apache-2.0" ]
3
2021-05-18T12:23:49.000Z
2022-03-03T16:27:57.000Z
tests/sampledata.py
pentest-a2p2v/pentest-a2p2v-core
d8dfee3312c656551f85587ed04770795090879d
[ "Apache-2.0" ]
4
2021-06-16T01:38:24.000Z
2022-03-28T05:55:11.000Z
#!/usr/bin/env python3 # # Copyright (C) 2018-2021 Toshiba Corporation and Peraton Labs, 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 #...
32.337415
192
0.436595
00cd971e21c2a17e3ba268837961686a4247125a
2,964
py
Python
sdk/textanalytics/azure-ai-textanalytics/samples/sample_get_detailed_diagnostics_information.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/textanalytics/azure-ai-textanalytics/samples/sample_get_detailed_diagnostics_information.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/textanalytics/azure-ai-textanalytics/samples/sample_get_detailed_diagnostics_information.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.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. # --------------------------------------------------------------------...
39.52
127
0.670715
2c48a32a3dd63aa84092ff1e2c953991fc7e076d
689
py
Python
src/shared/fileloading.py
sr-lab/pyrrho
8e05101d6bea97872bf8386ff1aa4a86e259ffd1
[ "MIT" ]
null
null
null
src/shared/fileloading.py
sr-lab/pyrrho
8e05101d6bea97872bf8386ff1aa4a86e259ffd1
[ "MIT" ]
null
null
null
src/shared/fileloading.py
sr-lab/pyrrho
8e05101d6bea97872bf8386ff1aa4a86e259ffd1
[ "MIT" ]
null
null
null
def load_file_lines (file): """ Loads a file as a list of lines. Args: file (str): The path of the file. Returns: list of str: A list of lines in the file. """ data = [] with open(file, mode='r') as target: for line in target: data.append(line.rstrip('\n')) ...
23.758621
69
0.56894
2c16a3f84338d3792e22c9851882e63f18e39c34
4,137
py
Python
recsys19_hybridsvd/polara-master/polara/recommender/external/lightfm/lightfmwrapper.py
chenzheng128/SoRec
deb045e3b9ce575671d08e15ec5a011b49e4d45f
[ "Apache-2.0" ]
1
2020-08-15T09:57:34.000Z
2020-08-15T09:57:34.000Z
recsys19_hybridsvd/polara-master/polara/recommender/external/lightfm/lightfmwrapper.py
chenzheng128/SoRec
deb045e3b9ce575671d08e15ec5a011b49e4d45f
[ "Apache-2.0" ]
null
null
null
recsys19_hybridsvd/polara-master/polara/recommender/external/lightfm/lightfmwrapper.py
chenzheng128/SoRec
deb045e3b9ce575671d08e15ec5a011b49e4d45f
[ "Apache-2.0" ]
1
2021-01-12T07:32:47.000Z
2021-01-12T07:32:47.000Z
# python 2/3 interoperability from __future__ import print_function import numpy as np from numpy.lib.stride_tricks import as_strided from lightfm import LightFM from polara.recommender.models import RecommenderModel from polara.lib.similarity import stack_features from polara.tools.timing import track_time class Li...
45.966667
113
0.564902
6b88e3f604f15e2a12f5cb4f9dbbfc2bff039b14
30,920
py
Python
include/HydrusConstants.py
sakharovaan/hydrus
443c8932947d0c786435bcd53911536e0bdce7e8
[ "WTFPL" ]
3
2019-06-19T09:29:50.000Z
2019-12-18T14:17:21.000Z
include/HydrusConstants.py
sakharovaan/hydrus-unleashed
443c8932947d0c786435bcd53911536e0bdce7e8
[ "WTFPL" ]
4
2019-02-03T14:43:05.000Z
2019-06-26T20:59:13.000Z
include/HydrusConstants.py
sakharovaan/hydrus
443c8932947d0c786435bcd53911536e0bdce7e8
[ "WTFPL" ]
null
null
null
import os import sys # dirs if getattr( sys, 'frozen', False ): RUNNING_FROM_FROZEN_BUILD = True # we are in a pyinstaller frozen app BASE_DIR = getattr( sys, '_MEIPASS', None ) if BASE_DIR is None: raise Exception( 'It seems this hydrus is running from a frozen bu...
40.953642
868
0.810511
9009b876e8ef7329095c6051afbc5a7fafd8565b
5,598
py
Python
Lib/wsgiref/util.py
jasonadu/Python-2.5
93e24b88564de120b1296165b5c55975fdcb8a3c
[ "PSF-2.0" ]
69
2015-01-16T13:12:55.000Z
2022-02-14T12:55:27.000Z
Lib/wsgiref/util.py
jasonadu/Python-2.5
93e24b88564de120b1296165b5c55975fdcb8a3c
[ "PSF-2.0" ]
3
2019-07-19T18:02:02.000Z
2021-04-25T06:35:42.000Z
Lib/wsgiref/util.py
jasonadu/Python-2.5
93e24b88564de120b1296165b5c55975fdcb8a3c
[ "PSF-2.0" ]
32
2015-02-06T12:10:32.000Z
2019-06-18T03:21:36.000Z
"""Miscellaneous WSGI-related Utilities""" import posixpath __all__ = [ 'FileWrapper', 'guess_scheme', 'application_uri', 'request_uri', 'shift_path_info', 'setup_testing_defaults', ] class FileWrapper: """Wrapper to convert file-like objects to iterables""" def __init__(self, filelike, blksize=819...
27.174757
79
0.650947
6379780f573369cb05cfcd73318f05a55e3432c6
9,658
py
Python
venvlink/__init__.py
np-8/venvlink
099ec9845a51697fb15b40f483cd69d030efd518
[ "MIT" ]
4
2021-01-31T12:55:07.000Z
2021-12-20T20:23:02.000Z
venvlink/__init__.py
np-8/venvlink
099ec9845a51697fb15b40f483cd69d030efd518
[ "MIT" ]
9
2020-12-28T13:46:17.000Z
2022-01-05T17:10:44.000Z
venvlink/__init__.py
np-8/venvlink
099ec9845a51697fb15b40f483cd69d030efd518
[ "MIT" ]
1
2020-12-24T00:40:14.000Z
2020-12-24T00:40:14.000Z
import logging logging.basicConfig( level=logging.INFO, format="%(asctime)s %(name)-12s %(levelname)-8s %(message)s", datefmt="%m-%d %H:%M", ) from functools import partial import os from pathlib import Path import subprocess import sys import shutil from venvlink.__version__ import __vers...
34.616487
122
0.583144
8ecb03639c0310faa3d006a6db97d86ec3af7e07
1,693
py
Python
workloads/tune_grid_cifar.py
SymbioticLab/Fluid
3598be4f640514a72b4d67e18d7cfbc4a8cd7fd8
[ "Apache-2.0" ]
12
2021-03-10T15:36:04.000Z
2022-01-07T16:07:24.000Z
workloads/tune_grid_cifar.py
SymbioticLab/Fluid
3598be4f640514a72b4d67e18d7cfbc4a8cd7fd8
[ "Apache-2.0" ]
2
2022-01-07T16:03:36.000Z
2022-01-14T08:21:06.000Z
workloads/tune_grid_cifar.py
SymbioticLab/Fluid
3598be4f640514a72b4d67e18d7cfbc4a8cd7fd8
[ "Apache-2.0" ]
3
2021-05-16T03:15:08.000Z
2021-12-10T11:50:16.000Z
from pathlib import Path from ray import tune from ray.util.sgd.utils import BATCH_SIZE import workloads.common as com from fluid.trainer import TorchTrainer from workloads.common import cifar as workload DATA_PATH, RESULTS_PATH = com.detect_paths() EXP_NAME = com.remove_prefix(Path(__file__).stem, "tune_") def cr...
28.216667
79
0.691672
72805f43ee059259d038e1a58381805f3b4dc571
2,875
py
Python
run_webcam.py
connor-john/tf-pose-estimation
0a1a07864a42e7cc75d15b739cd2452b5eabd8d4
[ "Apache-2.0" ]
1
2021-02-02T03:08:44.000Z
2021-02-02T03:08:44.000Z
run_webcam.py
connor-john/tf-pose-estimation
0a1a07864a42e7cc75d15b739cd2452b5eabd8d4
[ "Apache-2.0" ]
null
null
null
run_webcam.py
connor-john/tf-pose-estimation
0a1a07864a42e7cc75d15b739cd2452b5eabd8d4
[ "Apache-2.0" ]
null
null
null
import argparse import logging import time import cv2 import numpy as np from tf_pose.estimator import TfPoseEstimator from tf_pose.networks import get_graph_path, model_wh logger = logging.getLogger('TfPoseEstimator-WebCam') logger.setLevel(logging.DEBUG) ch = logging.StreamHandler() ch.setLevel(logging.DEBUG) form...
38.333333
143
0.649391
4f324c94c410c97be07ee99a0a8f054c703c7f2b
740
py
Python
setup.py
rassamyjs/lambdata-20-try2
e334d52c6f48db31877a29c41c2879127338f9c6
[ "MIT" ]
null
null
null
setup.py
rassamyjs/lambdata-20-try2
e334d52c6f48db31877a29c41c2879127338f9c6
[ "MIT" ]
null
null
null
setup.py
rassamyjs/lambdata-20-try2
e334d52c6f48db31877a29c41c2879127338f9c6
[ "MIT" ]
null
null
null
import setuptools REQUIRED = ['numpy', 'pandas'] with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="lambdata_rassamyjs", # Replace with your own username version="0.0.4", author="rassamyjs", description="A collection of data science functions", ...
30.833333
64
0.655405
329d7611387ed90d67dc0349b145e484f2e97210
4,466
py
Python
analysis/anesthetized/deconv/deconvolve-anesthetized-ketamine.py
goldman-lab/oculomotor-response-timescales
fa9f73e6f6a256a5983248b30c6348a50f1fdfcf
[ "BSD-3-Clause" ]
null
null
null
analysis/anesthetized/deconv/deconvolve-anesthetized-ketamine.py
goldman-lab/oculomotor-response-timescales
fa9f73e6f6a256a5983248b30c6348a50f1fdfcf
[ "BSD-3-Clause" ]
null
null
null
analysis/anesthetized/deconv/deconvolve-anesthetized-ketamine.py
goldman-lab/oculomotor-response-timescales
fa9f73e6f6a256a5983248b30c6348a50f1fdfcf
[ "BSD-3-Clause" ]
1
2022-01-05T18:26:33.000Z
2022-01-05T18:26:33.000Z
import numpy as np import sys sys.path.append('../../../tools/') import fitting_functions import os import scipy.io as sio import scipy.optimize import tqdm def loadFitResult(filename): fit_file = sio.loadmat(filename) sses = fit_file['sses'] lls = fit_file['lls'] fits = fit_file['fi...
52.541176
170
0.638603
9bfe888fd1b5f0a549232674c7480371613a0fd3
2,805
py
Python
barcode/upc.py
fxjung/python-barcode
926041158fea2edc83d32a4e6b332ad4eadd663c
[ "MIT" ]
null
null
null
barcode/upc.py
fxjung/python-barcode
926041158fea2edc83d32a4e6b332ad4eadd663c
[ "MIT" ]
null
null
null
barcode/upc.py
fxjung/python-barcode
926041158fea2edc83d32a4e6b332ad4eadd663c
[ "MIT" ]
null
null
null
"""Module: barcode.upc :Provided barcodes: UPC-A """ __docformat__ = "restructuredtext en" from functools import reduce from barcode.base import Barcode from barcode.charsets import upc as _upc from barcode.errors import IllegalCharacterError, NumberOfDigitsError class UniversalProductCodeA(Barcode): """Initia...
25.044643
85
0.56328
d66f589759bdc1737645d7b5c8361b5940a33182
53,353
py
Python
tools/configure.py
brccabral/caer
2ddb84095202aa98224b04612eff9e97c8680309
[ "MIT" ]
3
2021-01-23T19:53:28.000Z
2021-01-23T19:53:53.000Z
tools/configure.py
brccabral/caer
2ddb84095202aa98224b04612eff9e97c8680309
[ "MIT" ]
null
null
null
tools/configure.py
brccabral/caer
2ddb84095202aa98224b04612eff9e97c8680309
[ "MIT" ]
1
2021-01-01T10:37:55.000Z
2021-01-01T10:37:55.000Z
# Copyright 2017 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...
37.024983
110
0.678537
1f8ba258ae0a1c5754d0f1dcd71c148270e0b392
4,232
py
Python
gdal/swig/python/samples/val_at_coord.py
SarahVasher1/gdal
a370ec25625584856886f02fd04e540de048112f
[ "MIT" ]
null
null
null
gdal/swig/python/samples/val_at_coord.py
SarahVasher1/gdal
a370ec25625584856886f02fd04e540de048112f
[ "MIT" ]
null
null
null
gdal/swig/python/samples/val_at_coord.py
SarahVasher1/gdal
a370ec25625584856886f02fd04e540de048112f
[ "MIT" ]
1
2021-04-26T14:47:38.000Z
2021-04-26T14:47:38.000Z
#!/usr/bin/env python ############################################################################### # $Id$ # # Project: GDAL Python samples # Purpose: Outputs the value of the raster bands at a given # (longitude, latitude) or (X, Y) location. # Author: Even Rouault # ###################################...
32.305344
103
0.61035
ec8df9b0c2464979a3176862070c6202b9198305
768
py
Python
sa/profiles/Alstec/7200/get_capabilities.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
sa/profiles/Alstec/7200/get_capabilities.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
sa/profiles/Alstec/7200/get_capabilities.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# --------------------------------------------------------------------- # Alstec.7200.get_capabilities # --------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # --------------------------------------------------------------------- # NO...
33.391304
75
0.514323
fbd5d1e2e6d9d69fb788b8e63269ede64d71f99b
6,796
py
Python
image_master.py
YOULOF2/OpenWater
646e7a344ccd6b872fe802852866989534931ddc
[ "MIT" ]
1
2021-04-12T18:23:30.000Z
2021-04-12T18:23:30.000Z
image_master.py
YOULOF2/OpenWater
646e7a344ccd6b872fe802852866989534931ddc
[ "MIT" ]
null
null
null
image_master.py
YOULOF2/OpenWater
646e7a344ccd6b872fe802852866989534931ddc
[ "MIT" ]
null
null
null
import os from PIL import Image, ImageFont, ImageDraw, ImageTk import shutil from time import sleep from typing import Union from pathlib import Path from datetime import datetime class ImageMaster: def __init__(self): self.default_img = "assets/images/default_imgs/default_img.png" self.preview_im...
43.564103
117
0.631254
cef57cf50cf4f428bd015d470a55ea566aa2e652
2,912
py
Python
solargis/request/system.py
power-guard/solargis-py
42c919fccc6f9abf05441a1ffa75633cff1eab23
[ "MIT" ]
null
null
null
solargis/request/system.py
power-guard/solargis-py
42c919fccc6f9abf05441a1ffa75633cff1eab23
[ "MIT" ]
null
null
null
solargis/request/system.py
power-guard/solargis-py
42c919fccc6f9abf05441a1ffa75633cff1eab23
[ "MIT" ]
null
null
null
import datetime as dt import xml.etree.ElementTree as ET from enum import Enum from solargis.abstractelement import AbstractElement from solargis.validator import Validator class InstallationType(Enum): """This property of the PV system helps to estimate how modules are cooled by air. For sloped roof with PV...
35.950617
84
0.673077
84ce3ed06e5c4fe52d1ab48ea94e10c9f8a015a8
2,370
py
Python
src/lm_based/extract_start_end_from_lm.py
vered1986/time_expressions
32d182d7f741eec007141f5ca89c0d419e23a9a7
[ "Apache-2.0" ]
1
2022-02-25T15:00:42.000Z
2022-02-25T15:00:42.000Z
src/lm_based/extract_start_end_from_lm.py
vered1986/time_expressions
32d182d7f741eec007141f5ca89c0d419e23a9a7
[ "Apache-2.0" ]
null
null
null
src/lm_based/extract_start_end_from_lm.py
vered1986/time_expressions
32d182d7f741eec007141f5ca89c0d419e23a9a7
[ "Apache-2.0" ]
null
null
null
import os import json import argparse from transformers import pipeline from src.lm_based.common import compute_distribution def main(): parser = argparse.ArgumentParser() parser.add_argument("--out_dir", default="output/lm_based", type=str, required=False, help="Output directory") parser.add_argument("-...
38.225806
119
0.637553
f13ecd4c6902d12617217a60efc2e87bcef0f621
805
py
Python
openstack_dashboard/dashboards/admin/volume_groups/panel.py
stackhpc/horizon
0899f67657e0be62dd9e6be327c63bccb4607dc6
[ "Apache-2.0" ]
930
2015-01-04T08:06:03.000Z
2022-03-13T18:47:13.000Z
openstack_dashboard/dashboards/admin/volume_groups/panel.py
stackhpc/horizon
0899f67657e0be62dd9e6be327c63bccb4607dc6
[ "Apache-2.0" ]
26
2015-02-23T16:37:31.000Z
2020-07-02T08:37:41.000Z
openstack_dashboard/dashboards/admin/volume_groups/panel.py
stackhpc/horizon
0899f67657e0be62dd9e6be327c63bccb4607dc6
[ "Apache-2.0" ]
1,040
2015-01-01T18:48:28.000Z
2022-03-19T08:35:18.000Z
# Copyright 2019 NEC Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
38.333333
78
0.742857
1d769523375fb89448159c201d312ff54454f67d
1,193
py
Python
src/pylero/wiki_page_attachment.py
yuxisun1217/pylero
0210eb2243e02ab218f19a224e94eb63081f13e3
[ "MIT" ]
null
null
null
src/pylero/wiki_page_attachment.py
yuxisun1217/pylero
0210eb2243e02ab218f19a224e94eb63081f13e3
[ "MIT" ]
null
null
null
src/pylero/wiki_page_attachment.py
yuxisun1217/pylero
0210eb2243e02ab218f19a224e94eb63081f13e3
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- from __future__ import absolute_import, division, print_function from __future__ import unicode_literals from pylero.base_polarion import BasePolarion from pylero.user import User class WikiPageAttachment(BasePolarion): """Object to handle the Polarion WSDL tns3:WikiPageAttachment class ...
31.394737
71
0.576697
523c44d83408edb8429c86bd3708146454206d4b
1,708
py
Python
profilesapi/migrations/0001_initial.py
diyajaiswal11/Profile-rest-api
b5acbd97be7b1186c9ee9063a96efd1148419229
[ "MIT" ]
3
2020-06-04T05:22:39.000Z
2020-09-23T19:44:07.000Z
profilesapi/migrations/0001_initial.py
diyajaiswal11/Profile-rest-api
b5acbd97be7b1186c9ee9063a96efd1148419229
[ "MIT" ]
null
null
null
profilesapi/migrations/0001_initial.py
diyajaiswal11/Profile-rest-api
b5acbd97be7b1186c9ee9063a96efd1148419229
[ "MIT" ]
null
null
null
# Generated by Django 3.0.6 on 2020-05-05 19:28 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='UserProfile', ...
50.235294
266
0.638759
85c038a796dbb37dd83276f7c0667fa4a560ce58
1,499
py
Python
db/sqlite.py
DeepCISO/demo-aitextgen-2022-01-31
9aee1d7413e8ef4a672dfa7f3efbd4dd2151b285
[ "MIT" ]
null
null
null
db/sqlite.py
DeepCISO/demo-aitextgen-2022-01-31
9aee1d7413e8ef4a672dfa7f3efbd4dd2151b285
[ "MIT" ]
null
null
null
db/sqlite.py
DeepCISO/demo-aitextgen-2022-01-31
9aee1d7413e8ef4a672dfa7f3efbd4dd2151b285
[ "MIT" ]
null
null
null
import sqlite3 import time from sqlite3 import Error from pprint import pprint def create_connection(db_file): conn = None try: conn = sqlite3.connect(db_file) conn.row_factory = sqlite3.Row except Error as e: print(e) return conn def get_all_tweets(conn): cursor = conn....
24.983333
82
0.624416
55a6c9f34c504d90f8f386ba771b55dff7a795a9
70,980
py
Python
cerberus/base.py
intrinseca/cerberus
5c267b554a39b5a8650659d3eea0cf383e47a166
[ "0BSD" ]
1
2020-07-24T04:23:14.000Z
2020-07-24T04:23:14.000Z
cerberus/base.py
intrinseca/cerberus
5c267b554a39b5a8650659d3eea0cf383e47a166
[ "0BSD" ]
null
null
null
cerberus/base.py
intrinseca/cerberus
5c267b554a39b5a8650659d3eea0cf383e47a166
[ "0BSD" ]
null
null
null
import re import typing from ast import literal_eval from collections import abc, ChainMap from datetime import date, datetime from typing import ( Any, Callable, ClassVar, Container, Dict, Generic, Iterable, List, Mapping, NamedTuple, Optional, Sequence, Set, Siz...
38.555133
88
0.590786
293f6f9ad7220e3b81db7ff1321d7c7a4a0a3b22
3,494
py
Python
examples/reaktor_lazerbass.py
rawbengal/python-osc
18c836fc4cab49f1b662e0b47f25831e58b84c3a
[ "Unlicense" ]
2
2015-12-14T19:33:37.000Z
2018-08-24T08:03:42.000Z
examples/reaktor_lazerbass.py
rawbengal/python-osc
18c836fc4cab49f1b662e0b47f25831e58b84c3a
[ "Unlicense" ]
null
null
null
examples/reaktor_lazerbass.py
rawbengal/python-osc
18c836fc4cab49f1b662e0b47f25831e58b84c3a
[ "Unlicense" ]
4
2015-11-25T00:23:49.000Z
2017-11-06T19:17:53.000Z
"""Example to drive/show reaktor's lazerbass instrument in pygame.""" import argparse import pygame import multiprocessing import queue import logging from pygame.locals import * from pythonosc import dispatcher from pythonosc import osc_server logging.basicConfig( level=logging.DEBUG, format='[%(levelname)s...
30.382609
90
0.638523
a507ce8f8848c201fbbb6269ffde042bd8814669
2,193
py
Python
circuitPython/examples/ev-charge-point/ev-charge-point/eve_helper.py
BRTSG-FOSS/pico-bteve
1697b9a972ad5e9c2cecca6d560aa16cab725a61
[ "MIT" ]
1
2022-01-29T03:16:57.000Z
2022-01-29T03:16:57.000Z
circuitPython/examples/ev-charge-point/ev-charge-point/eve_helper.py
BRTSG-FOSS/pico-brteve
1697b9a972ad5e9c2cecca6d560aa16cab725a61
[ "MIT" ]
15
2021-09-22T08:36:08.000Z
2022-01-26T08:51:42.000Z
circuitPython/examples/ev-charge-point/ev-charge-point/eve_helper.py
BRTSG-FOSS/pico-bteve
1697b9a972ad5e9c2cecca6d560aa16cab725a61
[ "MIT" ]
null
null
null
import time from brteve.brt_eve_bt817_8 import BrtEve EVE_CMD_FIFO_SIZE = ((4) * 1024) EVE_CMD_FIFO_MASK = (EVE_CMD_FIFO_SIZE - 1) class eve_helper(): RAM_G_SIZE = (1024*1024) def __init__(self, eve: BrtEve): self.eve = eve self.VertextFormat=4 self.VertextPrecision=16 def set_pr...
27.074074
80
0.603739
3ef31950a6d0c5adfa29208684aa3a3a56e3c3bd
23,710
py
Python
cryspy/procedure_rhochi/rhochi_pd.py
ikibalin/rhochi
1ca03f18dc72006322a101ed877cdbba33ed61e7
[ "MIT" ]
null
null
null
cryspy/procedure_rhochi/rhochi_pd.py
ikibalin/rhochi
1ca03f18dc72006322a101ed877cdbba33ed61e7
[ "MIT" ]
null
null
null
cryspy/procedure_rhochi/rhochi_pd.py
ikibalin/rhochi
1ca03f18dc72006322a101ed877cdbba33ed61e7
[ "MIT" ]
null
null
null
import numpy import scipy import scipy.interpolate from cryspy.A_functions_base.matrix_operations import calc_m1_m2_m1t, calc_m_v from cryspy.A_functions_base.unit_cell import \ calc_sthovl_by_unit_cell_parameters, calc_matrix_t from cryspy.A_functions_base.structure_factor import \ calc_f_nucl_by_dictionary...
51.655773
145
0.680051
8197be9c56c0ed01500155a45f1181e855d5dc2e
2,865
py
Python
ml/rl/types.py
baek-jinoo/Horizon
30c75bed0e328e18bfc324f010101fac930c3abc
[ "BSD-3-Clause" ]
null
null
null
ml/rl/types.py
baek-jinoo/Horizon
30c75bed0e328e18bfc324f010101fac930c3abc
[ "BSD-3-Clause" ]
null
null
null
ml/rl/types.py
baek-jinoo/Horizon
30c75bed0e328e18bfc324f010101fac930c3abc
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. """ EXPERIMENTAL These generic types define common interface between modules. Above all, these facilitates model exporting through ONNX. ONNX doesn't trace dictionary so we use NamedTuple to act in place of dictionaries. Na...
23.483607
80
0.74555
cef3b259a23fd83f5525280d0fdad775727ff12c
3,195
py
Python
nbkode/testsuite/test_against_scipy.py
Yash-10/numbakit-ode
aa5a0f417a2218bd471db754b35cc61996b2461e
[ "BSD-3-Clause" ]
37
2020-11-07T08:53:49.000Z
2021-12-24T00:01:16.000Z
nbkode/testsuite/test_against_scipy.py
Yash-10/numbakit-ode
aa5a0f417a2218bd471db754b35cc61996b2461e
[ "BSD-3-Clause" ]
24
2020-11-04T02:05:28.000Z
2022-03-28T21:14:08.000Z
nbkode/testsuite/test_against_scipy.py
Yash-10/numbakit-ode
aa5a0f417a2218bd471db754b35cc61996b2461e
[ "BSD-3-Clause" ]
4
2020-12-24T09:19:50.000Z
2022-03-04T16:45:49.000Z
""" nbkode.testsuite.test_against_scipy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Comparisons using SciPy as a gold standard. :copyright: 2020 by nbkode Authors, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ import numpy as np import pytest from numpy.testing import ass...
32.602041
82
0.683568
a861847cb01ded5597035cc3b66e4eb713b76a67
4,979
py
Python
apps/admin/views/user.py
panla/kesousou
df6751b0a2e8eeec5122418cd29fe1f99e23f39e
[ "MIT" ]
1
2021-04-27T01:18:45.000Z
2021-04-27T01:18:45.000Z
apps/admin/views/user.py
panla/kesousou
df6751b0a2e8eeec5122418cd29fe1f99e23f39e
[ "MIT" ]
5
2020-08-26T14:47:47.000Z
2021-03-22T08:56:43.000Z
apps/admin/views/user.py
panla/kesousou
df6751b0a2e8eeec5122418cd29fe1f99e23f39e
[ "MIT" ]
null
null
null
import datetime from django.db.models import Q from django.contrib.auth.views import get_user_model from rest_framework import status from rest_framework import generics from rest_framework.views import APIView from rest_framework.response import Response from rest_framework_jwt.settings import api_settings from rest_...
40.153226
116
0.702952
c794c827ec735387c66892378a68c03ebc09fc87
1,265
py
Python
brian2/utils/arrays.py
CharleeSF/brian2
d2be1ed33a8ac51b1891f89a2544123a937c43ff
[ "BSD-2-Clause" ]
2
2020-03-20T13:30:19.000Z
2020-03-20T13:30:57.000Z
brian2/utils/arrays.py
CharleeSF/brian2
d2be1ed33a8ac51b1891f89a2544123a937c43ff
[ "BSD-2-Clause" ]
null
null
null
brian2/utils/arrays.py
CharleeSF/brian2
d2be1ed33a8ac51b1891f89a2544123a937c43ff
[ "BSD-2-Clause" ]
null
null
null
''' Helper module containing functions that operate on numpy arrays. ''' import numpy as np def calc_repeats(delay): ''' Calculates offsets corresponding to an array, where repeated values are subsequently numbered, i.e. if there n identical values, the returned array will have values from 0 to n-1 at...
34.189189
79
0.660079
47cc44573810267dc4096e66619e724bafdf4900
2,207
py
Python
signalr/transports/_ws_transport.py
hakimo-ai/signalr-client-py
a5035d92bfd9e1eabed7c7bcf08f711e2e7cccb7
[ "Apache-2.0" ]
null
null
null
signalr/transports/_ws_transport.py
hakimo-ai/signalr-client-py
a5035d92bfd9e1eabed7c7bcf08f711e2e7cccb7
[ "Apache-2.0" ]
null
null
null
signalr/transports/_ws_transport.py
hakimo-ai/signalr-client-py
a5035d92bfd9e1eabed7c7bcf08f711e2e7cccb7
[ "Apache-2.0" ]
null
null
null
import json import sys import gevent import ssl if sys.version_info[0] < 3: from urlparse import urlparse, urlunparse else: from urllib.parse import urlparse, urlunparse from websocket import create_connection from ._transport import Transport class WebSocketsTransport(Transport): def __init__(self, se...
28.662338
101
0.588129
3a14e5bb847ed62ced791a4395ae823ce504c5b2
138
py
Python
irispy/__init__.py
zpodushkin/irispy
e801c0c8ece0e5ad7ff1fae3cf9adb6e360cd655
[ "MIT" ]
5
2020-03-16T19:26:00.000Z
2020-04-04T09:25:50.000Z
irispy/__init__.py
zpodushkin/irispy
e801c0c8ece0e5ad7ff1fae3cf9adb6e360cd655
[ "MIT" ]
1
2020-04-05T00:06:05.000Z
2020-04-10T22:28:16.000Z
irispy/__init__.py
zpodushkin/irispy
e801c0c8ece0e5ad7ff1fae3cf9adb6e360cd655
[ "MIT" ]
null
null
null
from .dispatcher.dispatcher import Dispatcher from .types.methods import Method from .types import objects from .types.exceptions import *
34.5
45
0.833333
8f490888b8cc7090f1365691167a1f3895fc3df1
4,922
py
Python
tests/test_solver_crt_tau.py
astrojhgu/ares
42008c8e4bf79f0b000cc833e02a86510bce7611
[ "MIT" ]
1
2019-01-04T15:13:18.000Z
2019-01-04T15:13:18.000Z
tests/test_solver_crt_tau.py
astrojhgu/ares
42008c8e4bf79f0b000cc833e02a86510bce7611
[ "MIT" ]
null
null
null
tests/test_solver_crt_tau.py
astrojhgu/ares
42008c8e4bf79f0b000cc833e02a86510bce7611
[ "MIT" ]
null
null
null
""" test_solver_crt_tau.py Author: Jordan Mirocha Affiliation: UCLA Created on: Tue May 31 20:42:40 PDT 2016 Description: """ import os import time import ares import numpy as np import matplotlib.pyplot as pl from ares.physics.Constants import c, ev_per_hz, erg_per_ev def test(tol=5e-2): alpha = -2. b...
30.571429
100
0.530882
319870ef05ff3369f6c84a7694ade6d751ad580c
381
py
Python
sphinx/source/docs/examples/line_server.py
timelyportfolio/bokeh
a976a85535cf137c6238ce9e90b41ab14ae8ce22
[ "BSD-3-Clause" ]
2
2021-09-01T12:36:06.000Z
2021-11-17T10:48:36.000Z
sphinx/source/docs/examples/line_server.py
brian15co/bokeh
6cecb7211277b9d838039d0eb15e50a10f9ac3d1
[ "BSD-3-Clause" ]
null
null
null
sphinx/source/docs/examples/line_server.py
brian15co/bokeh
6cecb7211277b9d838039d0eb15e50a10f9ac3d1
[ "BSD-3-Clause" ]
1
2021-08-01T08:38:53.000Z
2021-08-01T08:38:53.000Z
from bokeh.plotting import figure, output_server, show #prepare some data x = [1, 2, 3, 4, 5] y = [6, 7, 2, 4, 5] # output to static HTML file output_server("simple_line") # Plot a `line` renderer setting the color, line thickness, title, and legend value. p = figure(title="simple line server example") p.line(x, y, ...
25.4
84
0.698163
d0986c5ef189fb92c0285cb42d49de07b40e59da
1,687
py
Python
jdcloud_sdk/services/captcha/models/Scene.py
Tanc009/jdcloud-sdk-python
8b045c99bc5b73ca7348e950b6f01e03a27982f5
[ "Apache-2.0" ]
14
2018-04-19T09:53:56.000Z
2022-01-27T06:05:48.000Z
jdcloud_sdk/services/captcha/models/Scene.py
Tanc009/jdcloud-sdk-python
8b045c99bc5b73ca7348e950b6f01e03a27982f5
[ "Apache-2.0" ]
15
2018-09-11T05:39:54.000Z
2021-07-02T12:38:02.000Z
jdcloud_sdk/services/captcha/models/Scene.py
Tanc009/jdcloud-sdk-python
8b045c99bc5b73ca7348e950b6f01e03a27982f5
[ "Apache-2.0" ]
33
2018-04-20T05:29:16.000Z
2022-02-17T09:10:05.000Z
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # 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 ...
36.673913
159
0.691168
26251631750c73f8fdf874dd1d9081f1d72f87e0
2,424
py
Python
app.py
technetbytes/Pythonic-Template
78b565359d640b208ed6189ebefc5760751c16d7
[ "Apache-2.0" ]
2
2020-04-06T07:59:02.000Z
2020-04-06T07:59:04.000Z
app.py
technetbytes/Pythonic-Template
78b565359d640b208ed6189ebefc5760751c16d7
[ "Apache-2.0" ]
2
2020-04-06T12:13:34.000Z
2020-04-06T13:49:29.000Z
app.py
technetbytes/Pythonic-Template
78b565359d640b208ed6189ebefc5760751c16d7
[ "Apache-2.0" ]
null
null
null
from config import configuration from config import database from db import mssql import pandas as pd from assets import file_storage from cache import data_cache from bridge.databse_bridge import DbBridge '''Get configuration data from the .resource/config.ini file''' # use configuration class get DATABASE Section ...
31.076923
226
0.723185
f729e714918038b9f396ec89a8394119a0377539
460
py
Python
tests/dsfs/test_neural_networks.py
dbradf/dsfs
efcd08ca56b4e14b926cc824f15474b04a9d94cb
[ "Apache-2.0" ]
null
null
null
tests/dsfs/test_neural_networks.py
dbradf/dsfs
efcd08ca56b4e14b926cc824f15474b04a9d94cb
[ "Apache-2.0" ]
null
null
null
tests/dsfs/test_neural_networks.py
dbradf/dsfs
efcd08ca56b4e14b926cc824f15474b04a9d94cb
[ "Apache-2.0" ]
null
null
null
import dsfs.neural_networks as under_test def test_xor_network(): xor_network = [[[20.0, 20, -30], [20.0, 20, -10]], [[-60.0, 60, -30]]] assert 0.000 < under_test.feed_forward(xor_network, [0, 0])[-1][0] < 0.001 assert 0.999 < under_test.feed_forward(xor_network, [1, 0])[-1][0] < 1.000 assert 0.999 <...
41.818182
78
0.634783
d467b821208e58ba66b028cf6e5b408fcb714c59
20,617
py
Python
sdk/lusid_asyncio/models/a2_b_movement_record.py
finbourne/lusid-sdk-python-asyncio-preview
290f93590ab5485661216c8622d3de9f7af0ed60
[ "MIT" ]
null
null
null
sdk/lusid_asyncio/models/a2_b_movement_record.py
finbourne/lusid-sdk-python-asyncio-preview
290f93590ab5485661216c8622d3de9f7af0ed60
[ "MIT" ]
null
null
null
sdk/lusid_asyncio/models/a2_b_movement_record.py
finbourne/lusid-sdk-python-asyncio-preview
290f93590ab5485661216c8622d3de9f7af0ed60
[ "MIT" ]
null
null
null
# coding: utf-8 """ LUSID API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.11.3923 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ try: from inspect import getfullargspec except ImportError: from inspect import getargspec as getf...
33.199678
352
0.63113
2d0e3dd28e79053c76397d829edb8c4830f51983
4,249
py
Python
fabric_quick_setup/mod.py
max-niederman/fabric-quick-setup
40c959c6cd2295c679576680fab3cda2b15222f5
[ "MIT" ]
2
2020-06-03T04:38:22.000Z
2020-07-07T03:37:38.000Z
fabric_quick_setup/mod.py
max-niederman/fabric-quick-setup
40c959c6cd2295c679576680fab3cda2b15222f5
[ "MIT" ]
null
null
null
fabric_quick_setup/mod.py
max-niederman/fabric-quick-setup
40c959c6cd2295c679576680fab3cda2b15222f5
[ "MIT" ]
null
null
null
# Mod.py import requests import jenkinsapi from jenkinsapi.jenkins import Jenkins import json import re import lxml from bs4 import BeautifulSoup from pprint import pprint def download(url: str, out='', name=None): r = requests.get(url) filename = out + name if name else out + url.split('/')[-1] with open(...
40.466667
149
0.562721
bc7f5fd8611c570b4aac667431aa747cee3dbc52
46,205
py
Python
ibm_cloud_networking_services/zone_firewall_access_rules_v1.py
IBM/networking-services-python-sdk
a19e47db6a5971562a502982d69a5868997245f3
[ "Apache-2.0" ]
1
2022-03-15T02:13:25.000Z
2022-03-15T02:13:25.000Z
ibm_cloud_networking_services/zone_firewall_access_rules_v1.py
IBM/networking-services-python-sdk
a19e47db6a5971562a502982d69a5868997245f3
[ "Apache-2.0" ]
57
2020-06-24T06:58:01.000Z
2022-03-28T14:52:33.000Z
ibm_cloud_networking_services/zone_firewall_access_rules_v1.py
IBM/networking-services-python-sdk
a19e47db6a5971562a502982d69a5868997245f3
[ "Apache-2.0" ]
10
2020-06-23T04:09:28.000Z
2022-03-26T18:20:35.000Z
# coding: utf-8 # (C) Copyright IBM Corp. 2020. # # 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 a...
38.730092
119
0.608635
208dba7149d0bd3aeab96a0ae4db722a837a3917
127
py
Python
01-python/source code/01/07.py
lizhangjie316/ComputerVision
86d82358bd160074d154773df0284e1154a6d077
[ "Apache-2.0" ]
1
2019-11-05T08:38:03.000Z
2019-11-05T08:38:03.000Z
01-python/source code/01/07.py
lizhangjie316/ComputerVision
86d82358bd160074d154773df0284e1154a6d077
[ "Apache-2.0" ]
6
2020-11-18T22:13:33.000Z
2022-03-12T00:04:02.000Z
01-python/source code/01/07.py
lizhangjie316/ComputerVision
86d82358bd160074d154773df0284e1154a6d077
[ "Apache-2.0" ]
null
null
null
a = [1,2,3,4,5] multi_dia_a = [[1,2,3], [2,3,4], [3,4,5]] print(a[2]) print(multi_dia_a[2][2])
14.111111
24
0.401575
03031a457ff622eaf8a03d92492a20933fee85da
10,705
py
Python
tests/contrib/utils/base_gcp_system_test_case.py
Nipica/airflow
211a71f8a6b9d808bd03af84bd77bf8ff0ef247f
[ "Apache-2.0" ]
null
null
null
tests/contrib/utils/base_gcp_system_test_case.py
Nipica/airflow
211a71f8a6b9d808bd03af84bd77bf8ff0ef247f
[ "Apache-2.0" ]
1
2019-01-14T17:12:47.000Z
2019-01-14T17:12:47.000Z
tests/contrib/utils/base_gcp_system_test_case.py
shubhamod/airflow
04f4622656656d4c55b69d460bbd2ed1379810c4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # 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 #...
41.173077
89
0.645026