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
6fe6ca435b48ca2b52fd3def00654475e0975144
102,677
py
Python
python/paddle/fluid/transpiler/distribute_transpiler.py
xiteng1988/Paddle
5365cd2f14e5ae12ca41ef061882f56e33775c13
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/transpiler/distribute_transpiler.py
xiteng1988/Paddle
5365cd2f14e5ae12ca41ef061882f56e33775c13
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/transpiler/distribute_transpiler.py
xiteng1988/Paddle
5365cd2f14e5ae12ca41ef061882f56e33775c13
[ "Apache-2.0" ]
4
2019-09-30T02:15:34.000Z
2019-09-30T02:41:30.000Z
# Copyright (c) 2018 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...
42.341031
155
0.571705
515bb5ba3549de8cfd0d3485a4c3a25fe773af10
817
py
Python
jarviscli/utilities/animations.py
baptoutiego/Jarvis
79c04845988d5f935338659899730ed882a6d76c
[ "MIT" ]
2,605
2017-03-10T22:44:36.000Z
2022-03-31T15:33:17.000Z
jarviscli/utilities/animations.py
baptoutiego/Jarvis
79c04845988d5f935338659899730ed882a6d76c
[ "MIT" ]
729
2017-03-11T00:06:46.000Z
2022-03-31T22:04:44.000Z
jarviscli/utilities/animations.py
baptoutiego/Jarvis
79c04845988d5f935338659899730ed882a6d76c
[ "MIT" ]
1,181
2017-03-10T23:24:55.000Z
2022-03-31T03:59:46.000Z
import sys import time import itertools import threading class SpinnerThread(threading.Thread): """SpinnerThread class to show a spinner on command line while the program is running""" def __init__(self, label="Hmmm... ", delay=0.2): super(SpinnerThread, self).__init__() self.label = lab...
24.757576
61
0.593635
24030b9502b44a8031675232c10119f83b87468c
13,540
py
Python
emission/planner.py
asbjorn/EmissionCalculatorLib
e03638c4ee6f502b89b648bc8c397f58c34ca2dc
[ "BSD-2-Clause" ]
8
2017-10-27T14:52:17.000Z
2020-07-22T23:18:40.000Z
emission/planner.py
NPRA/EmissionCalculatorLib
750e7137c8115d26b2eec354ab3f5a65f76a8e21
[ "BSD-2-Clause" ]
4
2017-10-08T17:55:45.000Z
2020-01-22T12:30:39.000Z
emission/planner.py
asbjorn/EmissionCalculatorLib
e03638c4ee6f502b89b648bc8c397f58c34ca2dc
[ "BSD-2-Clause" ]
5
2017-09-12T09:08:13.000Z
2019-07-29T19:40:37.000Z
import json try: from urllib.request import urlopen # Python 3 from urllib.parse import urlencode except ImportError: from urllib import urlopen # Python 2 from urllib import urlencode import socket import math from . import vehicles, log from . import EmissionsJsonParser from .exceptions import Rout...
34.717949
120
0.599188
bb27096abd1900e76e4aadda580a72b8cbffc968
6,125
py
Python
applications/structural_application/test_examples/cantilever2d.gid/cantilever2ddynamic_benchmarking.py
AndreaVoltan/MyKratos7.0
e977752722e8ef1b606f25618c4bf8fd04c434cc
[ "BSD-4-Clause" ]
2
2020-04-30T19:13:08.000Z
2021-04-14T19:40:47.000Z
applications/structural_application/test_examples/cantilever2d.gid/cantilever2ddynamic_benchmarking.py
AndreaVoltan/MyKratos7.0
e977752722e8ef1b606f25618c4bf8fd04c434cc
[ "BSD-4-Clause" ]
1
2020-04-30T19:19:09.000Z
2020-05-02T14:22:36.000Z
applications/structural_application/test_examples/cantilever2d.gid/cantilever2ddynamic_benchmarking.py
AndreaVoltan/MyKratos7.0
e977752722e8ef1b606f25618c4bf8fd04c434cc
[ "BSD-4-Clause" ]
1
2020-06-12T08:51:24.000Z
2020-06-12T08:51:24.000Z
from __future__ import print_function, absolute_import, division #makes KratosMultiphysics backward compatible with python 2.6 and 2.7 def FindNode(node_list, x, y, z): for node in node_list: if ((node.X - x) ** 2 + (node.Y - y) ** 2 + (node.Z - z) ** 2 < 0.0000001): print(node) retu...
34.801136
134
0.767347
b72e5c5d4ce2b9826e4f891d37dce2c6fa317430
6,435
py
Python
contrib/pyminer/pyminer.py
Bitspender/h4
ba58be16dd6f2e9d3d79d2d3f50ac33aab6f3593
[ "MIT" ]
null
null
null
contrib/pyminer/pyminer.py
Bitspender/h4
ba58be16dd6f2e9d3d79d2d3f50ac33aab6f3593
[ "MIT" ]
null
null
null
contrib/pyminer/pyminer.py
Bitspender/h4
ba58be16dd6f2e9d3d79d2d3f50ac33aab6f3593
[ "MIT" ]
null
null
null
#!/usr/bin/python # # Copyright (c) 2011 The Bitcoin developers # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # import time import json import pprint import hashlib import struct import re import base64 import httplib import...
25.434783
84
0.664957
451c13ca5aca8c4042fab53f1bed3e6372ae9a86
4,506
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_11_01/aio/operations/_service_tags_operations.py
praveenkuttappan/azure-sdk-for-python
4b79413667b7539750a6c7dde15737013a3d4bd5
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_11_01/aio/operations/_service_tags_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_11_01/aio/operations/_service_tags_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.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.979592
139
0.683311
6f998a516b07267eb7a52e580b31872700fbbc8d
27,300
py
Python
gazoo_device/capabilities/interfaces/switchboard_base.py
dedsec-9/gazoo-device
5ed2867c258da80e53b6aae07ec7a65efe473a28
[ "Apache-2.0" ]
14
2020-11-05T23:23:32.000Z
2022-03-01T18:59:29.000Z
gazoo_device/capabilities/interfaces/switchboard_base.py
dedsec-9/gazoo-device
5ed2867c258da80e53b6aae07ec7a65efe473a28
[ "Apache-2.0" ]
1
2021-06-24T19:20:50.000Z
2021-06-24T19:20:50.000Z
gazoo_device/capabilities/interfaces/switchboard_base.py
isabella232/gazoo-device
0e1e276d72333e713b47152815708b9c74c45409
[ "Apache-2.0" ]
5
2021-05-20T22:52:51.000Z
2022-02-21T08:46:21.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
37.759336
95
0.6463
21dfc03b92d550eee5889d54e405f2322d999acd
738
py
Python
Itunes/trunk/appscript_2x/sample/aem/filter_reference.py
MarcPartensky/Python-2020
1a4ef2edfea6efb353249d5e32c06b230b293c62
[ "MIT" ]
1
2020-09-02T10:41:49.000Z
2020-09-02T10:41:49.000Z
Itunes/trunk/appscript_2x/sample/aem/filter_reference.py
MarcPartensky/Python-2020
1a4ef2edfea6efb353249d5e32c06b230b293c62
[ "MIT" ]
null
null
null
Itunes/trunk/appscript_2x/sample/aem/filter_reference.py
MarcPartensky/Python-2020
1a4ef2edfea6efb353249d5e32c06b230b293c62
[ "MIT" ]
null
null
null
#!/usr/bin/env python from aem import * # tell app "Finder" to get every item of home whose name begins with "d" and name is not "Documents" print Application(findapp.byname('Finder')).event('coregetd', {'----': app.property('home').elements('cobj').byfilter( its.property('pnam').beginswith('d') .AND (its.p...
35.142857
126
0.668022
23bf1aea9b5de90d6c3aad9001a6eef7899e4e71
2,526
py
Python
config/settings/local.py
MattyPy/boxy
6082dbc45512a5fbc2a2d7664613b1e04ba40ddb
[ "MIT" ]
null
null
null
config/settings/local.py
MattyPy/boxy
6082dbc45512a5fbc2a2d7664613b1e04ba40ddb
[ "MIT" ]
1
2020-04-30T12:50:58.000Z
2020-04-30T12:50:58.000Z
config/settings/local.py
MattyPy/boxy
6082dbc45512a5fbc2a2d7664613b1e04ba40ddb
[ "MIT" ]
null
null
null
from .base import * # noqa from .base import env # GENERAL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#debug DEBUG = True # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key SECRET_KEY = env( "DJANGO_SECRET_KEY...
42.1
97
0.58947
2612169e6141ba846183658957c09c8c58f7c923
12,060
py
Python
mmdet/models/roi_heads/mask_heads/fcn_mask_head.py
pablodecm/mmdetection
4587688b66cbd9c4d13ec9447da2d68b93ba07e5
[ "Apache-2.0" ]
null
null
null
mmdet/models/roi_heads/mask_heads/fcn_mask_head.py
pablodecm/mmdetection
4587688b66cbd9c4d13ec9447da2d68b93ba07e5
[ "Apache-2.0" ]
null
null
null
mmdet/models/roi_heads/mask_heads/fcn_mask_head.py
pablodecm/mmdetection
4587688b66cbd9c4d13ec9447da2d68b93ba07e5
[ "Apache-2.0" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from mmcv.cnn import ConvModule, build_upsample_layer from mmcv.ops import Conv2d from mmcv.ops.carafe import CARAFEPack from torch.nn.modules.utils import _pair from mmdet.core import auto_fp16, force_fp32, mask_target from mmdet.mo...
39.029126
79
0.585821
fde6bdb051849464d789a51214da84ad251250d9
175
py
Python
tests/fixtures/formatter/correct.py
cdhiraj40/wemake-python-styleguide
7cef9be081d594c30045b7a98cae77a9be46e1aa
[ "MIT" ]
1,931
2018-03-17T13:52:45.000Z
2022-03-27T09:39:17.000Z
tests/fixtures/formatter/correct.py
amansr02/wemake-python-styleguide
681035ed21fbe28ebfb32b8807b98e8de76b64aa
[ "MIT" ]
2,231
2018-03-09T21:19:05.000Z
2022-03-31T08:35:37.000Z
tests/fixtures/formatter/correct.py
amansr02/wemake-python-styleguide
681035ed21fbe28ebfb32b8807b98e8de76b64aa
[ "MIT" ]
492
2018-05-18T21:20:28.000Z
2022-03-20T14:11:50.000Z
""" Module level docstring. They are required. """ def clear_name(good_name: int) -> int: """All functions should be like this one.""" return good_name + good_name
15.909091
48
0.674286
f56cd9ab013deebc7decb2841f4d5cc1f13e4013
1,619
py
Python
devilry/devilry_gradingsystem/views/admin/summary.py
devilry/devilry-django
9ae28e462dfa4cfee966ebacbca04ade9627e715
[ "BSD-3-Clause" ]
29
2015-01-18T22:56:23.000Z
2020-11-10T21:28:27.000Z
devilry/devilry_gradingsystem/views/admin/summary.py
devilry/devilry-django
9ae28e462dfa4cfee966ebacbca04ade9627e715
[ "BSD-3-Clause" ]
786
2015-01-06T16:10:18.000Z
2022-03-16T11:10:50.000Z
devilry/devilry_gradingsystem/views/admin/summary.py
devilry/devilry-django
9ae28e462dfa4cfee966ebacbca04ade9627e715
[ "BSD-3-Clause" ]
15
2015-04-06T06:18:43.000Z
2021-02-24T12:28:30.000Z
from django.views.generic import DetailView from django.urls import reverse from django.shortcuts import redirect from django import forms from devilry.apps.core.models import Assignment from devilry.apps.core.models import StaticFeedback from devilry.devilry_gradingsystem.pluginregistry import GradingSystemPluginNotI...
46.257143
140
0.75664
dd43c20ac5703abc6e43c5af7408dc30d0d41aa3
5,416
py
Python
tests/wallet/did_wallet/test_did_rpc.py
BTChia-Network/btchia-blockchain
2ab991f6b207872b17ce237ebe409defb96cd524
[ "Apache-2.0" ]
19
2021-08-09T21:21:09.000Z
2022-03-18T02:27:13.000Z
tests/wallet/did_wallet/test_did_rpc.py
BTChia-Network/btchia-blockchain
2ab991f6b207872b17ce237ebe409defb96cd524
[ "Apache-2.0" ]
29
2021-08-13T12:05:09.000Z
2022-03-20T19:30:36.000Z
tests/wallet/did_wallet/test_did_rpc.py
BTChia-Network/btchia-blockchain
2ab991f6b207872b17ce237ebe409defb96cd524
[ "Apache-2.0" ]
4
2021-08-18T16:42:30.000Z
2022-03-15T08:24:58.000Z
import asyncio import logging import pytest from btcgreen.rpc.rpc_server import start_rpc_server from btcgreen.rpc.wallet_rpc_api import WalletRpcApi from btcgreen.rpc.wallet_rpc_client import WalletRpcClient from btcgreen.simulator.simulator_protocol import FarmNewBlockProtocol from btcgreen.types.peer_info import Pe...
40.41791
105
0.6887
9d4a13a5f05ff9d7f0ff87e0fcdd79eaee234a7b
19,323
py
Python
ThirdParty/Twisted/twisted/conch/client/knownhosts.py
jasper-yeh/VtkDotNet
84b56f781cb511694e4380cebfb245bbefe2560b
[ "BSD-3-Clause" ]
3
2020-06-20T23:31:06.000Z
2021-01-11T02:17:16.000Z
ThirdParty/Twisted/twisted/conch/client/knownhosts.py
jasper-yeh/VtkDotNet
84b56f781cb511694e4380cebfb245bbefe2560b
[ "BSD-3-Clause" ]
null
null
null
ThirdParty/Twisted/twisted/conch/client/knownhosts.py
jasper-yeh/VtkDotNet
84b56f781cb511694e4380cebfb245bbefe2560b
[ "BSD-3-Clause" ]
1
2021-12-02T07:29:15.000Z
2021-12-02T07:29:15.000Z
# -*- test-case-name: twisted.conch.test.test_knownhosts -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ An implementation of the OpenSSH known_hosts database. @since: 8.2 """ import hmac from binascii import Error as DecodeError, b2a_base64 from hashlib import sha1 from zope.interfa...
30.9168
80
0.588884
fac7f02c30ebe7ebe1c8a819863b12f781b67f1a
1,143
py
Python
velocity_controller.py
krishanrana/robot_learning_algorithms
3e66c9bf44e81ff281195130c71bcc6ebdf5ccda
[ "MIT" ]
null
null
null
velocity_controller.py
krishanrana/robot_learning_algorithms
3e66c9bf44e81ff281195130c71bcc6ebdf5ccda
[ "MIT" ]
null
null
null
velocity_controller.py
krishanrana/robot_learning_algorithms
3e66c9bf44e81ff281195130c71bcc6ebdf5ccda
[ "MIT" ]
null
null
null
from pyrep.errors import IKError import numpy as np class joint_velocity_controller(): def __init__(self, panda): self.panda = panda self.target_q = np.zeros(7) def set_target(self, target): pos = target.get_position() target.set_orientation([0,3.14,0]) # Set orientation to...
31.75
95
0.613298
969a426da43a34df4a22381db193613469d87b89
3,121
py
Python
Week 4/CIFAR.py
thanhhff/AIVN-Course-AI-For-Everyone
e8e582dea304341f0c03cedb920bcd1d450e5a9c
[ "MIT" ]
25
2019-11-24T03:15:22.000Z
2021-12-29T07:23:19.000Z
Week 4/CIFAR.py
thanhhff/AIVN-Course-AI-For-Everyone
e8e582dea304341f0c03cedb920bcd1d450e5a9c
[ "MIT" ]
1
2019-12-03T10:44:48.000Z
2019-12-03T10:44:48.000Z
Week 4/CIFAR.py
thanhhff/AIVN-Course-AI-For-Everyone
e8e582dea304341f0c03cedb920bcd1d450e5a9c
[ "MIT" ]
13
2019-11-24T04:33:42.000Z
2022-03-02T10:58:14.000Z
# The original code is from http://cs231n.github.io/assignment1/ import _pickle as pickle from matplotlib import pyplot as plt import numpy as np import os def load_CIFAR_batch(filename): with open(filename,'rb') as f: datadict=pickle.load(f,encoding='bytes') x=datadict[b'data'] y=datadict[...
37.60241
111
0.650112
79446ac1e5e04c50de25db8fb4c96ef4c81d994b
245
py
Python
cms/templatetags/js.py
eduncan911/django_cms
66c27f059ca0779157a7c3cc2e007d8090f10351
[ "BSD-3-Clause" ]
1
2017-04-27T20:00:40.000Z
2017-04-27T20:00:40.000Z
cms/templatetags/js.py
eduncan911/django_cms
66c27f059ca0779157a7c3cc2e007d8090f10351
[ "BSD-3-Clause" ]
null
null
null
cms/templatetags/js.py
eduncan911/django_cms
66c27f059ca0779157a7c3cc2e007d8090f10351
[ "BSD-3-Clause" ]
null
null
null
from django import template from django.utils import simplejson from django.core.serializers.json import DjangoJSONEncoder register = template.Library() @register.filter def js(value): return simplejson.dumps(value, cls=DjangoJSONEncoder)
24.5
58
0.816327
4179f7aa9f6707635124c101052a96a64f8b4e22
1,393
py
Python
0501-0600/0567-Permutation in String/0567-Permutation in String.py
jiadaizhao/LeetCode
4ddea0a532fe7c5d053ffbd6870174ec99fc2d60
[ "MIT" ]
49
2018-05-05T02:53:10.000Z
2022-03-30T12:08:09.000Z
0501-0600/0567-Permutation in String/0567-Permutation in String.py
jolly-fellow/LeetCode
ab20b3ec137ed05fad1edda1c30db04ab355486f
[ "MIT" ]
11
2017-12-15T22:31:44.000Z
2020-10-02T12:42:49.000Z
0501-0600/0567-Permutation in String/0567-Permutation in String.py
jolly-fellow/LeetCode
ab20b3ec137ed05fad1edda1c30db04ab355486f
[ "MIT" ]
28
2017-12-05T10:56:51.000Z
2022-01-26T18:18:27.000Z
import collections class Solution: def checkInclusion(self, s1: str, s2: str) -> bool: if len(s2) < len(s1): return False table = collections.Counter(s1) count = len(table) start = 0 for i in range(len(s2)): table[s2[i]] -= 1 if table[s2[i]...
29.020833
59
0.38191
9829dd72d2961476aedaa70f84f834deb7b36281
3,656
py
Python
vitrage/tests/functional/datasources/aodh/test_aodh.py
mail2nsrajesh/vitrage
41f863bbb7568f70d347feeab8eaca13085f81ba
[ "Apache-2.0" ]
null
null
null
vitrage/tests/functional/datasources/aodh/test_aodh.py
mail2nsrajesh/vitrage
41f863bbb7568f70d347feeab8eaca13085f81ba
[ "Apache-2.0" ]
null
null
null
vitrage/tests/functional/datasources/aodh/test_aodh.py
mail2nsrajesh/vitrage
41f863bbb7568f70d347feeab8eaca13085f81ba
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 - ZTE, Nokia # # 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...
39.73913
79
0.664387
eeeddb84495e2b1ec622624a595a4133911afebd
4,476
py
Python
webpage/lib/python3.5/site-packages/dask/tests/test_rewrite.py
pseudoPixels/SourceFlow
e1738c8b838c71b18598ceca29d7c487c76f876b
[ "MIT" ]
2
2017-03-30T11:22:11.000Z
2019-03-03T05:18:01.000Z
webpage/lib/python3.5/site-packages/dask/tests/test_rewrite.py
pseudoPixels/SourceFlow
e1738c8b838c71b18598ceca29d7c487c76f876b
[ "MIT" ]
null
null
null
webpage/lib/python3.5/site-packages/dask/tests/test_rewrite.py
pseudoPixels/SourceFlow
e1738c8b838c71b18598ceca29d7c487c76f876b
[ "MIT" ]
null
null
null
from dask.rewrite import RewriteRule, RuleSet, head, args, VAR, Traverser from dask.utils_test import inc, add def double(x): return x * 2 def test_head(): assert head((inc, 1)) == inc assert head((add, 1, 2)) == add assert head((add, (inc, 1), (inc, 1))) == add assert head([1, 2, 3]) == list ...
31.744681
92
0.532172
4265a0e894cff6513bfe9c165a2c6a1e305f4036
45
py
Python
test/python/LIM2Metrics/py3/base/common/Python007/Python007.py
sagodiz/SonarQube-plug-in
4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c
[ "BSD-4-Clause" ]
20
2015-06-16T17:39:10.000Z
2022-03-20T22:39:40.000Z
test/python/LIM2Metrics/py3/base/common/Python007/Python007.py
sagodiz/SonarQube-plug-in
4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c
[ "BSD-4-Clause" ]
29
2015-12-29T19:07:22.000Z
2022-03-22T10:39:02.000Z
test/python/LIM2Metrics/py3/base/common/Python007/Python007.py
sagodiz/SonarQube-plug-in
4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c
[ "BSD-4-Clause" ]
12
2015-08-28T01:22:18.000Z
2021-09-25T08:17:31.000Z
class MyClass: """A simple example class"""
15
29
0.688889
0dde5a893079fb5e39feccf24d5133c624953985
179
py
Python
sns_mobile_push_notification/apps.py
yoongjian98/django-sns-mobile-push-notification
9864e1e395d421aafe6b8b3cf6f546ee38142da3
[ "MIT" ]
12
2018-04-29T23:47:32.000Z
2022-02-22T07:41:27.000Z
sns_mobile_push_notification/apps.py
yoongjian98/django-sns-mobile-push-notification
9864e1e395d421aafe6b8b3cf6f546ee38142da3
[ "MIT" ]
null
null
null
sns_mobile_push_notification/apps.py
yoongjian98/django-sns-mobile-push-notification
9864e1e395d421aafe6b8b3cf6f546ee38142da3
[ "MIT" ]
3
2019-03-21T04:17:37.000Z
2021-07-27T22:25:16.000Z
from django.apps import AppConfig class SnsNotificationConfig(AppConfig): name = 'sns_mobile_push_notification' verbose_name = 'SNS Mobile Push Notification fro Django'
25.571429
60
0.793296
2fbfae498e54b933daf85bcd3ec4b6c7d12f70e3
4,094
py
Python
code/client/munkilib/munkilog.py
grahamgilbert/munki
9ddc5a063a92b7f7671bddd679db3fbe7cb860b6
[ "Apache-2.0" ]
null
null
null
code/client/munkilib/munkilog.py
grahamgilbert/munki
9ddc5a063a92b7f7671bddd679db3fbe7cb860b6
[ "Apache-2.0" ]
null
null
null
code/client/munkilib/munkilog.py
grahamgilbert/munki
9ddc5a063a92b7f7671bddd679db3fbe7cb860b6
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 # # Copyright 2009-2019 Greg Neagle. # # 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 l...
30.102941
79
0.636297
38cc31c0bea802ce6a1dc24457ac8b51cee245c8
21,058
py
Python
pxr/usdImaging/lib/usdviewq/viewSettingsDataModel.py
octarrow/USD
1845291a9701ab0a3a7d591bc243a1a80fdcba8a
[ "Unlicense" ]
3
2019-02-20T07:34:17.000Z
2019-08-13T08:17:04.000Z
pxr/usdImaging/lib/usdviewq/viewSettingsDataModel.py
octarrow/USD
1845291a9701ab0a3a7d591bc243a1a80fdcba8a
[ "Unlicense" ]
null
null
null
pxr/usdImaging/lib/usdviewq/viewSettingsDataModel.py
octarrow/USD
1845291a9701ab0a3a7d591bc243a1a80fdcba8a
[ "Unlicense" ]
null
null
null
# # Copyright 2018 Pixar # # Licensed under the Apache License, Version 2.0 (the "Apache License") # with the following modification; you may not use this file except in # compliance with the Apache License and the following modification to it: # Section 6. Trademarks. is deleted and replaced with: # # 6. Trademarks. T...
33.31962
127
0.701634
578846313d2a494fbae78aaf5ce361348ca92624
1,639
py
Python
autoindex.py
langsci/157
dd0f52128321748dc53171ac2c8220fff525221b
[ "CC-BY-4.0" ]
null
null
null
autoindex.py
langsci/157
dd0f52128321748dc53171ac2c8220fff525221b
[ "CC-BY-4.0" ]
null
null
null
autoindex.py
langsci/157
dd0f52128321748dc53171ac2c8220fff525221b
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/python3 import glob import re lgs=open("locallanguages.txt").read().split('\n') terms=open("localsubjectterms.txt").read().split('\n')[::-1]#reverse to avoid double indexing print("found %i language names for autoindexing" % len(lgs)) print("found %i subject terms for autoindexing" % len(terms)) files = g...
27.779661
103
0.621721
60281c591b5d97bab8ad22fcad757fa0ea10a6dc
452
py
Python
Python/5. Math/5.1 Polar Coordinates.py
clago7/HackerRank-Python-Practice
048bbdad2aef090eda39eb02c1e0287284000785
[ "MIT" ]
null
null
null
Python/5. Math/5.1 Polar Coordinates.py
clago7/HackerRank-Python-Practice
048bbdad2aef090eda39eb02c1e0287284000785
[ "MIT" ]
null
null
null
Python/5. Math/5.1 Polar Coordinates.py
clago7/HackerRank-Python-Practice
048bbdad2aef090eda39eb02c1e0287284000785
[ "MIT" ]
null
null
null
# Problem: https://www.hackerrank.com/challenges/polar-coordinates/problem import cmath input_str = input() if '+' in input_str: sign_pos = input_str.find('+') else: if input_str[0] == '-': sign_pos = input_str[1:].find('-') + 1 else: sign_pos = input_str.find('-') j_pos = input_str....
25.111111
74
0.643805
497e80c0572568e6166335c5ea205577fc984d96
20,039
py
Python
scripts_coco/test_retrieval.py
nganltp/admicro-LaSO
857d67a40af437ab57068fb0de35e4ada56c6209
[ "BSD-3-Clause" ]
83
2019-04-14T06:58:15.000Z
2022-03-01T01:34:03.000Z
scripts_coco/test_retrieval.py
leokarlin/LaSO
8941bdc9316361ad03dbc2bcabd4bf9922c0ecc7
[ "BSD-3-Clause" ]
17
2019-04-28T04:26:24.000Z
2022-01-19T15:37:42.000Z
scripts_coco/test_retrieval.py
nganltp/admicro-LaSO
857d67a40af437ab57068fb0de35e4ada56c6209
[ "BSD-3-Clause" ]
15
2019-09-05T04:22:10.000Z
2022-01-13T15:31:25.000Z
"""Calculate retrieval on the seen classes of COCO.""" import logging from more_itertools import chunked import numpy as np from pathlib import Path import pickle from tqdm import tqdm from joblib import Parallel, delayed import torch torch.backends.cudnn.benchmark = True from torch.utils.data impor...
39.759921
122
0.579221
9d5ff762cb7d91e6dedf07a289adcb3743fc455c
4,623
py
Python
milpool/MIL_distributions.py
knutdrand/milpool
6d33c6eb4d3bbdd8d95fce6a7006c43d9d939026
[ "MIT" ]
null
null
null
milpool/MIL_distributions.py
knutdrand/milpool
6d33c6eb4d3bbdd8d95fce6a7006c43d9d939026
[ "MIT" ]
null
null
null
milpool/MIL_distributions.py
knutdrand/milpool
6d33c6eb4d3bbdd8d95fce6a7006c43d9d939026
[ "MIT" ]
null
null
null
from .reparametrization import Reparametrization, reparametrize from .distributions import MixtureXY import numpy as np from scipy.special import logsumexp from numpy import logaddexp import torch class MILXY(MixtureXY): q: float = torch.tensor(0.5) group_size: float = 10 def __init__(self, *args, **kwar...
44.883495
118
0.584253
ce844fdfcd9af08293173cb6bf24cbe933285e64
2,208
py
Python
venv/lib/python2.7/site-packages/ebcli/controllers/codesource.py
zwachtel11/fruitful-backend
45b8994917182e7b684b9e25944cc79c9494c9f3
[ "MIT" ]
4
2018-04-19T19:56:53.000Z
2021-06-28T19:53:41.000Z
venv/lib/python2.7/site-packages/ebcli/controllers/codesource.py
zwachtel11/fruitful-backend
45b8994917182e7b684b9e25944cc79c9494c9f3
[ "MIT" ]
1
2017-04-27T12:06:05.000Z
2017-04-27T12:06:05.000Z
venv/lib/python2.7/site-packages/ebcli/controllers/codesource.py
zwachtel11/fruitful-backend
45b8994917182e7b684b9e25944cc79c9494c9f3
[ "MIT" ]
4
2016-10-12T23:54:55.000Z
2020-07-25T23:28:25.000Z
# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
37.423729
84
0.653533
06529b39cccb1af62c6ff9b8121ab72236bba2f1
6,269
py
Python
client_mining_p/blockchain.py
LeTanque/Blockchain
fcb370107040b12b36afe807c3579d979087f71a
[ "MIT" ]
null
null
null
client_mining_p/blockchain.py
LeTanque/Blockchain
fcb370107040b12b36afe807c3579d979087f71a
[ "MIT" ]
null
null
null
client_mining_p/blockchain.py
LeTanque/Blockchain
fcb370107040b12b36afe807c3579d979087f71a
[ "MIT" ]
null
null
null
import hashlib import json from time import time from uuid import uuid4 from flask import Flask, jsonify, request, render_template class Blockchain(object): def __init__(self): self.chain = [] self.current_transactions = [] # Create the genesis block self.new_block(previous_hash=...
32.148718
110
0.644441
85277af1637c7d674423f44d3980a93a6321a524
1,905
py
Python
tests/data/test_Function.py
IavTavares/Practicing-Unit-Testing-and-CI
d1b1d25d8b25fda4f5713211ab2264bcd7d2db92
[ "MIT" ]
null
null
null
tests/data/test_Function.py
IavTavares/Practicing-Unit-Testing-and-CI
d1b1d25d8b25fda4f5713211ab2264bcd7d2db92
[ "MIT" ]
null
null
null
tests/data/test_Function.py
IavTavares/Practicing-Unit-Testing-and-CI
d1b1d25d8b25fda4f5713211ab2264bcd7d2db92
[ "MIT" ]
null
null
null
import sys # adding data folder to the system path pathname=r"src/data" # do not break the string above with \ it will not work... if not pathname in sys.path: sys.path.insert(0,pathname) # append or insert will always add a path import pytest from Function import string_to_int,string_to_int_2 ...
34.017857
83
0.649344
0d024dc57d2a5a5f9978c48222e9b5e18e7a4efc
11,416
py
Python
tests/membership.py
Perfumiste777/CCF
d3ef3e88b8997d7e1b033f687e45f0de17f26ce6
[ "Apache-2.0" ]
null
null
null
tests/membership.py
Perfumiste777/CCF
d3ef3e88b8997d7e1b033f687e45f0de17f26ce6
[ "Apache-2.0" ]
null
null
null
tests/membership.py
Perfumiste777/CCF
d3ef3e88b8997d7e1b033f687e45f0de17f26ce6
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache 2.0 License. import http import infra.e2e_args import infra.network import infra.consortium import random import suite.test_requirements as reqs from loguru import logger as LOG @reqs.description("Add and activate a new member ...
37.801325
133
0.673441
fab2c86281b1ffbd59eed7d7f3a4052a98d8c331
3,802
py
Python
aim/sdk/artifacts/artifact_writer.py
jamesj-jiao/aim
452380368f76ff441b2ff3a51029f4ad43a9d902
[ "MIT" ]
null
null
null
aim/sdk/artifacts/artifact_writer.py
jamesj-jiao/aim
452380368f76ff441b2ff3a51029f4ad43a9d902
[ "MIT" ]
null
null
null
aim/sdk/artifacts/artifact_writer.py
jamesj-jiao/aim
452380368f76ff441b2ff3a51029f4ad43a9d902
[ "MIT" ]
null
null
null
import time import math from aim.engine.aim_repo import AimRepo from aim.engine.utils import random_str from aim.sdk.artifacts.artifact import Artifact from aim.sdk.artifacts.record import Record, RecordCollection from aim.sdk.artifacts.record_writer import RecordWriter Writable = [Record, RecordCollection] class A...
38.40404
74
0.507365
e958db85397521419f961e25987b9e095d8fa277
186
py
Python
touchstone/buffers/ppo_experience.py
LechuzaAI/touchstone
6893b199f14f34986b475c79b4a41934fcf8e7a5
[ "MIT" ]
null
null
null
touchstone/buffers/ppo_experience.py
LechuzaAI/touchstone
6893b199f14f34986b475c79b4a41934fcf8e7a5
[ "MIT" ]
null
null
null
touchstone/buffers/ppo_experience.py
LechuzaAI/touchstone
6893b199f14f34986b475c79b4a41934fcf8e7a5
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import Any from touchstone.buffers import Experience @dataclass class PPOExperience(Experience): action_log_probs: Any value: Any
18.6
41
0.806452
1bdec0ba3ef9acee22318e184b1ab46493f4ec31
672
py
Python
lupin/validators/match.py
Clustaar/lupin
9ef73642d84a99adb80abf5a922a9422ddae9254
[ "MIT" ]
22
2017-10-18T08:27:20.000Z
2022-03-25T18:53:43.000Z
lupin/validators/match.py
Clustaar/lupin
9ef73642d84a99adb80abf5a922a9422ddae9254
[ "MIT" ]
5
2019-09-16T15:31:55.000Z
2022-02-10T08:29:14.000Z
lupin/validators/match.py
Clustaar/lupin
9ef73642d84a99adb80abf5a922a9422ddae9254
[ "MIT" ]
null
null
null
from . import Validator from ..errors import InvalidMatch class Match(Validator): """Validate that a string matches a pattern""" def __init__(self, regex): """ Args: regex (regex): a regexp object """ self._regex = regex def __call__(self, value, path): ...
24.888889
60
0.5625
dcb1118b74c74546636550c7f8ec35878a27b041
806
py
Python
programme/views/admin_publish_view.py
darkismus/kompassi
35dea2c7af2857a69cae5c5982b48f01ba56da1f
[ "CC-BY-3.0" ]
13
2015-11-29T12:19:12.000Z
2021-02-21T15:42:11.000Z
programme/views/admin_publish_view.py
darkismus/kompassi
35dea2c7af2857a69cae5c5982b48f01ba56da1f
[ "CC-BY-3.0" ]
23
2015-04-29T19:43:34.000Z
2021-02-10T05:50:17.000Z
programme/views/admin_publish_view.py
darkismus/kompassi
35dea2c7af2857a69cae5c5982b48f01ba56da1f
[ "CC-BY-3.0" ]
11
2015-09-20T18:59:00.000Z
2020-02-07T08:47:34.000Z
from django.utils.translation import ugettext_lazy as _ from labour.views.admin_startstop_view import generic_publish_unpublish_view from ..helpers import programme_admin_required from ..forms import PublishForm @programme_admin_required def admin_publish_view(request, vars, event): meta = event.programme_even...
35.043478
76
0.759305
15b484fa7f29901943d70cd0d78160a472e685d4
1,933
py
Python
lib/surface/notebooks/instances/get_health.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/surface/notebooks/instances/get_health.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
null
null
null
lib/surface/notebooks/instances/get_health.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
# -*- coding: utf-8 -*- # # Copyright 2021 Google LLC. 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 requir...
32.216667
74
0.747543
01024627e7724f9013716345b323dd2e0f9ad54c
24,002
py
Python
autogluon/utils/tabular/ml/learner/abstract_learner.py
TEChopra1000/autogluon
3f2e3b3e46cc10e01017257b46e8f5992cbc6c00
[ "Apache-2.0" ]
null
null
null
autogluon/utils/tabular/ml/learner/abstract_learner.py
TEChopra1000/autogluon
3f2e3b3e46cc10e01017257b46e8f5992cbc6c00
[ "Apache-2.0" ]
null
null
null
autogluon/utils/tabular/ml/learner/abstract_learner.py
TEChopra1000/autogluon
3f2e3b3e46cc10e01017257b46e8f5992cbc6c00
[ "Apache-2.0" ]
null
null
null
import datetime, json, warnings, logging from collections import OrderedDict import pandas as pd from pandas import DataFrame, Series from sklearn.metrics import accuracy_score, balanced_accuracy_score, matthews_corrcoef, f1_score, classification_report # , roc_curve, auc from sklearn.metrics import mean_absolute_erro...
54.303167
223
0.654612
b750201f5401dc7a92ab202c309483b181d4f4b9
427
py
Python
todolist/wsgi.py
carlos-moreno/to-do-list
5cdf9b38cb3490b2c905d3599b8fe9bc6287df07
[ "MIT" ]
null
null
null
todolist/wsgi.py
carlos-moreno/to-do-list
5cdf9b38cb3490b2c905d3599b8fe9bc6287df07
[ "MIT" ]
5
2020-04-15T19:28:20.000Z
2021-09-22T18:52:35.000Z
todolist/wsgi.py
carlos-moreno/to-do-list
5cdf9b38cb3490b2c905d3599b8fe9bc6287df07
[ "MIT" ]
null
null
null
""" WSGI config for todolist project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from dj_static import Cling from django.core.wsgi import get_wsgi_application os.envi...
25.117647
78
0.791569
366efd008e16705f0eb797655b79e3864d6f50bf
1,530
py
Python
wagtailhoneypot/forms.py
suchermon/wagtailhoneypot
56ab339b0e6190ac3d36f671c47deae024814ea0
[ "MIT" ]
1
2021-12-26T14:44:34.000Z
2021-12-26T14:44:34.000Z
wagtailhoneypot/forms.py
suchermon/wagtailhoneypot
56ab339b0e6190ac3d36f671c47deae024814ea0
[ "MIT" ]
1
2021-03-11T19:14:40.000Z
2021-03-11T19:48:41.000Z
wagtailhoneypot/forms.py
suchermon/wagtailhoneypot
56ab339b0e6190ac3d36f671c47deae024814ea0
[ "MIT" ]
null
null
null
from django import forms from django.conf import settings from wagtail.contrib.forms.forms import FormBuilder from .widgets import HoneyPotFieldWidget from captcha.fields import ReCaptchaField from captcha.widgets import ReCaptchaV3, ReCaptchaV2Checkbox CAPTCHA_VERSION = settings.WAGTAIL_HONEYPOT_CAPTCHA_VERSION c...
33.26087
154
0.766667
d7f8ab9cdcae6545037965781fc7b4ab9a7b54b1
855
py
Python
1001-1100/1094-Second Minimum Node In a Binary Tree/1094-Second Minimum Node In a Binary Tree.py
jiadaizhao/LintCode
a8aecc65c47a944e9debad1971a7bc6b8776e48b
[ "MIT" ]
77
2017-12-30T13:33:37.000Z
2022-01-16T23:47:08.000Z
1001-1100/1094-Second Minimum Node In a Binary Tree/1094-Second Minimum Node In a Binary Tree.py
jxhangithub/LintCode-1
a8aecc65c47a944e9debad1971a7bc6b8776e48b
[ "MIT" ]
1
2018-05-14T14:15:40.000Z
2018-05-14T14:15:40.000Z
1001-1100/1094-Second Minimum Node In a Binary Tree/1094-Second Minimum Node In a Binary Tree.py
jxhangithub/LintCode-1
a8aecc65c47a944e9debad1971a7bc6b8776e48b
[ "MIT" ]
39
2017-12-07T14:36:25.000Z
2022-03-10T23:05:37.000Z
""" Definition of TreeNode: class TreeNode: def __init__(self, val): self.val = val self.left, self.right = None, None """ class Solution: """ @param root: the root @return: the second minimum value in the set made of all the nodes' value in the whole tree """ def findSecondMini...
28.5
95
0.518129
f714df9ac1fd6d0bf4721aeb747d23287a74cfba
15,684
py
Python
tests/python/unit/dku_timeseries/resampling/test_resampler_helpers.py
dataiku/dss-plugin-timeseries-preparation
bdb662c909a0ad6d7845325a70e3dac2bdcc6b28
[ "Apache-2.0" ]
2
2021-03-12T10:48:20.000Z
2021-04-23T09:37:18.000Z
tests/python/unit/dku_timeseries/resampling/test_resampler_helpers.py
dataiku/dss-plugin-timeseries-preparation
bdb662c909a0ad6d7845325a70e3dac2bdcc6b28
[ "Apache-2.0" ]
27
2020-07-22T15:49:25.000Z
2021-06-18T09:40:48.000Z
tests/python/unit/dku_timeseries/resampling/test_resampler_helpers.py
dataiku/dss-plugin-timeseries-preparation
bdb662c909a0ad6d7845325a70e3dac2bdcc6b28
[ "Apache-2.0" ]
1
2021-06-01T12:49:53.000Z
2021-06-01T12:49:53.000Z
import numpy as np import pandas as pd import pytest from dku_timeseries.timeseries_helpers import generate_date_range, get_date_offset from recipe_config_loading import get_resampling_params @pytest.fixture def config(): config = {u'clip_end': 0, u'constant_value': 0, u'extrapolation_method': u'none', u'shift':...
49.166144
153
0.615851
4022402da5e16d22ae3c7e740940234e009b4fd9
4,161
py
Python
src/libs/easy_select2/widgets.py
ivanjo39191/ivankao-erp
04ed4e5128b419c995dfcb57f2eead2af498b156
[ "Apache-2.0" ]
null
null
null
src/libs/easy_select2/widgets.py
ivanjo39191/ivankao-erp
04ed4e5128b419c995dfcb57f2eead2af498b156
[ "Apache-2.0" ]
null
null
null
src/libs/easy_select2/widgets.py
ivanjo39191/ivankao-erp
04ed4e5128b419c995dfcb57f2eead2af498b156
[ "Apache-2.0" ]
null
null
null
import json import django from django import forms from django.conf import settings from django.utils.safestring import mark_safe class Select2Mixin(object): """ This mixin provides a mechanism to construct custom widget class, that will be rendered using Select2 input. Generally should be mixed wit...
32.76378
72
0.592165
bec667b2f30ff7f5b21227902aa68a653f07d466
17,378
py
Python
python/fate_client/pipeline/param/logistic_regression_param.py
QuantumA/FATE
89a3dd593252128c1bf86fb1014b25a629bdb31a
[ "Apache-2.0" ]
1
2022-02-07T06:23:15.000Z
2022-02-07T06:23:15.000Z
python/fate_client/pipeline/param/logistic_regression_param.py
JavaGreenHands/FATE
ea1e94b6be50c70c354d1861093187e523af32f2
[ "Apache-2.0" ]
11
2020-10-09T09:53:50.000Z
2021-12-06T16:14:51.000Z
python/fate_client/pipeline/param/logistic_regression_param.py
JavaGreenHands/FATE
ea1e94b6be50c70c354d1861093187e523af32f2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2019 The FATE 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/lic...
47.873278
120
0.618426
2a58dfe6f37ac8b8b359a9091d8cfce43e519646
1,110
py
Python
django_project/accounts/migrations/0001_initial.py
Jeffhabs/cs2450
d003bb2817db071a5384e9939ea02fc9c7df5436
[ "MIT" ]
null
null
null
django_project/accounts/migrations/0001_initial.py
Jeffhabs/cs2450
d003bb2817db071a5384e9939ea02fc9c7df5436
[ "MIT" ]
null
null
null
django_project/accounts/migrations/0001_initial.py
Jeffhabs/cs2450
d003bb2817db071a5384e9939ea02fc9c7df5436
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.Create...
34.6875
114
0.588288
a0b8d96f9db93a3931b3524309e93a2aa522046f
1,925
py
Python
Python36_x86_Template/Lib/crypt.py
iveskim/cloudbase-init-installer
bc7630a7fb7dd527618dac3938147e2d9439c285
[ "Apache-2.0" ]
null
null
null
Python36_x86_Template/Lib/crypt.py
iveskim/cloudbase-init-installer
bc7630a7fb7dd527618dac3938147e2d9439c285
[ "Apache-2.0" ]
null
null
null
Python36_x86_Template/Lib/crypt.py
iveskim/cloudbase-init-installer
bc7630a7fb7dd527618dac3938147e2d9439c285
[ "Apache-2.0" ]
4
2019-12-11T18:50:22.000Z
2020-08-10T19:25:11.000Z
"""Wrapper to the POSIX crypt library call and associated functionality.""" import _crypt import string as _string from random import SystemRandom as _SystemRandom from collections import namedtuple as _namedtuple _saltchars = _string.ascii_letters + _string.digits + './' _sr = _SystemRandom() class _M...
31.048387
80
0.669091
636a7f6cf357060f64919dc02df49ffe624f39fa
2,365
py
Python
indicator.py
NahsiN/MPBParser
2f9a3c0b2d2b0aa9f9c7f0b25d49dd73a3114577
[ "MIT" ]
1
2016-09-13T08:06:06.000Z
2016-09-13T08:06:06.000Z
indicator.py
NahsiN/MPBParser
2f9a3c0b2d2b0aa9f9c7f0b25d49dd73a3114577
[ "MIT" ]
null
null
null
indicator.py
NahsiN/MPBParser
2f9a3c0b2d2b0aa9f9c7f0b25d49dd73a3114577
[ "MIT" ]
null
null
null
# test hole integral step function from MPBParser import MPBBandStructure, readfield import numpy as np import matplotlib.pyplot as plt #mpb = MPBBandStructure('/home/nishan/Code/thales/MPB/w14/w14.out', 'zeven') #mpb.csvparser() #mpb.readbanddata() #eps_slab = 10.0489 #eps_air = 1.0 #TOL = 1e-3 # no need since I sta...
39.416667
102
0.665962
5dd08fa4cbbf9b30c23a6c4961b7081febc8922e
2,130
py
Python
aliyun-python-sdk-vod/aliyunsdkvod/request/v20170321/MoveAppResourceRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-vod/aliyunsdkvod/request/v20170321/MoveAppResourceRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-vod/aliyunsdkvod/request/v20170321/MoveAppResourceRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
34.354839
74
0.771831
f8775451dfded80c9ce645d490bc00bacb76b48c
5,023
py
Python
src/quantum/azext_quantum/vendored_sdks/azure_quantum/aio/operations/_storage_operations.py
ravithanneeru/azure-cli-extensions
e0de87f3563ae39525370e9912589aac33e7bded
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/quantum/azext_quantum/vendored_sdks/azure_quantum/aio/operations/_storage_operations.py
ravithanneeru/azure-cli-extensions
e0de87f3563ae39525370e9912589aac33e7bded
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
azure-quantum/azure/quantum/_client/aio/operations/_storage_operations.py
slowy07/qdk-python
e4ce0c433cc986bc1c746e9a58f3f05733c657e2
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.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 ...
49.245098
191
0.690026
c21c87a1477888264a502e7cd2571fb9c77b08c9
12,424
py
Python
kpconv/utils/mayavi_visu.py
SergioRAgostinho/KPConv-PyTorch
4044c959a9c1b07b150dac54cef0a8f43b2fdb06
[ "MIT" ]
null
null
null
kpconv/utils/mayavi_visu.py
SergioRAgostinho/KPConv-PyTorch
4044c959a9c1b07b150dac54cef0a8f43b2fdb06
[ "MIT" ]
null
null
null
kpconv/utils/mayavi_visu.py
SergioRAgostinho/KPConv-PyTorch
4044c959a9c1b07b150dac54cef0a8f43b2fdb06
[ "MIT" ]
null
null
null
# # # 0=================================0 # | Kernel Point Convolutions | # 0=================================0 # # # ---------------------------------------------------------------------------------------------------------------------- # # Script for various visualization with mayavi # # ----...
28.430206
120
0.438265
c13874190349ab637917fc8250410bcf1f3c38d2
403
py
Python
ljosmyndasida/wsgi.py
dadisigursveinn/VEF-Lokaverkefni
a862124b0958738a106e938d9ae95060f0cabec9
[ "BSD-3-Clause" ]
null
null
null
ljosmyndasida/wsgi.py
dadisigursveinn/VEF-Lokaverkefni
a862124b0958738a106e938d9ae95060f0cabec9
[ "BSD-3-Clause" ]
null
null
null
ljosmyndasida/wsgi.py
dadisigursveinn/VEF-Lokaverkefni
a862124b0958738a106e938d9ae95060f0cabec9
[ "BSD-3-Clause" ]
null
null
null
""" WSGI config for ljosmyndasida project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO...
23.705882
78
0.791563
37ea05c1c73496ae2e1383e05d95b2b3e2d97994
3,471
py
Python
envoy.github.abstract/tests/test_manager.py
phlax/abstracts
53fbbee68d1f56effe0ded1ed4e28be870693877
[ "Apache-2.0" ]
1
2021-12-09T19:24:48.000Z
2021-12-09T19:24:48.000Z
envoy.github.abstract/tests/test_manager.py
phlax/abstracts
53fbbee68d1f56effe0ded1ed4e28be870693877
[ "Apache-2.0" ]
392
2021-08-24T15:55:32.000Z
2022-03-28T14:26:22.000Z
envoy.github.abstract/tests/test_manager.py
phlax/abstracts
53fbbee68d1f56effe0ded1ed4e28be870693877
[ "Apache-2.0" ]
3
2021-10-06T13:43:11.000Z
2021-11-29T13:48:56.000Z
from unittest.mock import AsyncMock, PropertyMock import pytest import packaging.version import abstracts from aio.functional import async_property from envoy.github.abstract import manager @abstracts.implementer(manager.AGithubReleaseManager) class DummyGithubReleaseManager: async def __aenter__(self): ...
27.991935
75
0.663786
05b76e07b8821ea5bfce6bcc2749ffd3ebe8343b
8,125
py
Python
salt/beacons/wtmp.py
eirinikos/salt
7fb420c14a034a3c6c6775f4dad4cb8bdbefd0a8
[ "Apache-2.0" ]
null
null
null
salt/beacons/wtmp.py
eirinikos/salt
7fb420c14a034a3c6c6775f4dad4cb8bdbefd0a8
[ "Apache-2.0" ]
null
null
null
salt/beacons/wtmp.py
eirinikos/salt
7fb420c14a034a3c6c6775f4dad4cb8bdbefd0a8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Beacon to fire events at login of users as registered in the wtmp file .. code-block:: yaml beacons: wtmp: [] ''' # Import Python libs from __future__ import absolute_import, unicode_literals import logging import os import struct import time # Import salt libs import salt.util...
28.211806
89
0.490954
4013f7487fbe0bc1a62b7b13fa342ad643865077
1,140
py
Python
.githooks/check-ansible.py
remcovergoossen/deepops
52577cddabfcb317a833c0e89386d428625ae16a
[ "BSD-3-Clause" ]
1
2020-08-25T13:41:50.000Z
2020-08-25T13:41:50.000Z
.githooks/check-ansible.py
remcovergoossen/deepops
52577cddabfcb317a833c0e89386d428625ae16a
[ "BSD-3-Clause" ]
2
2019-06-14T19:59:52.000Z
2019-07-12T00:22:56.000Z
.githooks/check-ansible.py
remcovergoossen/deepops
52577cddabfcb317a833c0e89386d428625ae16a
[ "BSD-3-Clause" ]
1
2019-03-26T16:50:04.000Z
2019-03-26T16:50:04.000Z
#!/usr/bin/env python """ Get a list of Ansible playbooks and roles that have changes staged in Git. Run ansible-lint on only those playbooks and roles. """ from __future__ import print_function import subprocess import re import sys def get_changed_ansible_paths(): """ Get a list of playbook files and role...
27.804878
80
0.668421
1aa03409aa3d71ae9712c1b48b17887e9164798c
2,143
py
Python
tests/integration/gcp/test_running_in_notebooks.py
suomitekai/fairing
9ca6a1138529b3f0b21979d62c7cb1f303bc52e0
[ "Apache-2.0" ]
334
2018-09-03T23:10:02.000Z
2022-03-07T23:12:24.000Z
tests/integration/gcp/test_running_in_notebooks.py
suomitekai/fairing
9ca6a1138529b3f0b21979d62c7cb1f303bc52e0
[ "Apache-2.0" ]
562
2018-09-03T21:33:42.000Z
2022-03-29T12:47:43.000Z
tests/integration/gcp/test_running_in_notebooks.py
suomitekai/fairing
9ca6a1138529b3f0b21979d62c7cb1f303bc52e0
[ "Apache-2.0" ]
160
2018-11-06T17:55:32.000Z
2022-02-15T09:59:10.000Z
import os import pytest from ..helpers import run_notebook_test @pytest.mark.skip(reason="GCPManaged backend needs to take build context as input") def test_xgboost_highlevel_apis_gcp_managed(): file_dir = os.path.dirname(__file__) notebook_rel_path = "../../../examples/prediction/xgboost-high-level-apis.ipyn...
41.211538
84
0.707886
adac13169fdc560c9da08455cef6b2b6dfde61bd
23,800
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_07_01/operations/_ddos_protection_plans_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
3
2020-06-23T02:25:27.000Z
2021-09-07T18:48:11.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_07_01/operations/_ddos_protection_plans_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
510
2019-07-17T16:11:19.000Z
2021-08-02T08:38:32.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_07_01/operations/_ddos_protection_plans_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
5
2019-09-04T12:51:37.000Z
2020-09-16T07:28:40.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 ...
49.173554
207
0.665924
3cb4f1fac3e7f9a6211ac9b81c65afe925b4259d
2,885
py
Python
lig_maker.py
miguelsousa/robothon
f2ac88884e04a6e77f79c91e1709ab8c84f46043
[ "MIT" ]
7
2015-02-23T15:14:42.000Z
2021-07-09T16:14:19.000Z
lig_maker.py
miguelsousa/robothon
f2ac88884e04a6e77f79c91e1709ab8c84f46043
[ "MIT" ]
null
null
null
lig_maker.py
miguelsousa/robothon
f2ac88884e04a6e77f79c91e1709ab8c84f46043
[ "MIT" ]
1
2017-06-21T19:53:21.000Z
2017-06-21T19:53:21.000Z
from robofab.world import CurrentFont from robofab.gString import splitAccent position = {'Aacute':['acute', (318, 0)], 'Abreve':['breve', (248, 0)], 'Acircumflex':['circumflex', (255, 0)], 'Adieresis':['dieresis', (239, 0)], 'Atilde':['tilde', (240, 0)], 'Agrave':['grave', (183, 0)], 'Amacron':['macron', (239, 0)], '...
48.898305
487
0.487695
d5d37cc5a60890c59d3186c7fe9db93511bdf2bc
3,225
py
Python
examples/ad_manager/v201808/report_service/run_report_with_custom_fields.py
khanhnhk/googleads-python-lib
1e882141b8eb663b55dd582ce0f4fbf3cd2f672d
[ "Apache-2.0" ]
1
2021-12-30T15:21:42.000Z
2021-12-30T15:21:42.000Z
examples/ad_manager/v201808/report_service/run_report_with_custom_fields.py
benlistyg/googleads-python-lib
1e882141b8eb663b55dd582ce0f4fbf3cd2f672d
[ "Apache-2.0" ]
null
null
null
examples/ad_manager/v201808/report_service/run_report_with_custom_fields.py
benlistyg/googleads-python-lib
1e882141b8eb663b55dd582ce0f4fbf3cd2f672d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
32.908163
77
0.714729
f6a9dcfb0be435a50df28a077951474068089a19
1,341
py
Python
yaaredis/scripting.py
ProjectHentai/yaaredis
be6fcaf4c66f98272bfdeae33d34bb4e6fc13f1f
[ "MIT" ]
null
null
null
yaaredis/scripting.py
ProjectHentai/yaaredis
be6fcaf4c66f98272bfdeae33d34bb4e6fc13f1f
[ "MIT" ]
5
2021-11-26T17:18:07.000Z
2021-12-07T06:07:54.000Z
yaaredis/scripting.py
ProjectHentai/yaaredis
be6fcaf4c66f98272bfdeae33d34bb4e6fc13f1f
[ "MIT" ]
null
null
null
import hashlib from yaaredis.exceptions import NoScriptError from yaaredis.pipeline import BasePipeline from yaaredis.utils import b class Script: """An executable Lua script object returned by ``register_script``""" def __init__(self, registered_client, script): self.registered_client = registered_...
38.314286
79
0.647278
b5c579e5d1cec0c0b3f3de614673508b318b3e08
5,490
py
Python
tests/test_examples.py
merwok-forks/cookiecutter
7e7a09b22440aab415671958e1a5862ae65f9300
[ "BSD-3-Clause" ]
null
null
null
tests/test_examples.py
merwok-forks/cookiecutter
7e7a09b22440aab415671958e1a5862ae65f9300
[ "BSD-3-Clause" ]
null
null
null
tests/test_examples.py
merwok-forks/cookiecutter
7e7a09b22440aab415671958e1a5862ae65f9300
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_examples -------------- Tests for the Cookiecutter example repos. """ from __future__ import unicode_literals import errno import logging import os import shutil import subprocess import sys PY3 = sys.version > '3' if PY3: from unittest.mock import patch ...
31.193182
99
0.667395
fb7858deec1b0da539fe552b4bc68a2880a1d3b2
20,907
py
Python
data/process.py
LauJames/key_phrase_extract
5c93353e5f0d7641ce9390f4621b1cedc20220c3
[ "Apache-2.0" ]
1
2019-03-29T08:50:17.000Z
2019-03-29T08:50:17.000Z
data/process.py
JiangYee/key_phrase_extract
7bd32a8b1809566b7512b3cc9b324c8d073a0167
[ "Apache-2.0" ]
1
2019-03-10T06:04:40.000Z
2019-03-10T06:04:40.000Z
data/process.py
JiangYee/key_phrase_extract
7bd32a8b1809566b7512b3cc9b324c8d073a0167
[ "Apache-2.0" ]
1
2019-03-07T05:01:14.000Z
2019-03-07T05:01:14.000Z
#! /user/bin/evn python # -*- coding:utf8 -*- import os import re import codecs import numpy as np import gensim from numpy import linalg import operator import nltk import json from ir.config import Config from ir.search import Search def clean_str(string): """ Tokenization/string cleaning for all datasets e...
35.92268
130
0.587889
f899059deb0d3c264f81f659514c9766086233ea
481
py
Python
d05/part2.py
burk3/aoc2020
541d6102276978ea5e4e7abbd25a8811268be148
[ "MIT" ]
null
null
null
d05/part2.py
burk3/aoc2020
541d6102276978ea5e4e7abbd25a8811268be148
[ "MIT" ]
null
null
null
d05/part2.py
burk3/aoc2020
541d6102276978ea5e4e7abbd25a8811268be148
[ "MIT" ]
null
null
null
import argparse def to_n(s: str) -> int: s = s.replace("F", "0").replace("B", "1") s = s.replace("L", "0").replace("R", "1") return int(s, base=2) def main(): parser = argparse.ArgumentParser() parser.add_argument("input", type=argparse.FileType("r")) args = parser.parse_args() r = set(ra...
20.913043
61
0.567568
e601137d3f021d2811e7e8844627280853b124a7
3,589
py
Python
google/cloud/identitytoolkit/v2/identitytoolkit-v2-py/noxfile.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/cloud/identitytoolkit/v2/identitytoolkit-v2-py/noxfile.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/cloud/identitytoolkit/v2/identitytoolkit-v2-py/noxfile.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
26.984962
96
0.627751
4564bd90ebf81b9ebf6f370d04d0b317420fb601
1,563
py
Python
pyspedas/utilities/tcopy.py
amanotk/pyspedas
ba38f9a318fe96911a0fb3d6fce53e8b1a534ff4
[ "MIT" ]
null
null
null
pyspedas/utilities/tcopy.py
amanotk/pyspedas
ba38f9a318fe96911a0fb3d6fce53e8b1a534ff4
[ "MIT" ]
null
null
null
pyspedas/utilities/tcopy.py
amanotk/pyspedas
ba38f9a318fe96911a0fb3d6fce53e8b1a534ff4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ File: tcopy.py Description: Creates a deep copy of a tplot_variable, with a new name. Parameters: names_in: str/list of str List of pytplot names. names_out: str/list of str List of pytplot names. If it is not provided, then suffix '-copy' is used. ...
24.421875
79
0.623161
3a1fd7027b826a63ac8a0933597156b19329bdbf
1,657
py
Python
decopatch/tests/test_introspection_base.py
smarie/python-decopatch
7172d09c83ec3b6eef947f37fca7a1ddabfb09cc
[ "BSD-3-Clause" ]
17
2019-03-12T10:09:20.000Z
2022-02-27T08:50:15.000Z
decopatch/tests/test_introspection_base.py
smarie/python-decopatch
7172d09c83ec3b6eef947f37fca7a1ddabfb09cc
[ "BSD-3-Clause" ]
27
2019-03-05T13:18:47.000Z
2022-03-01T08:51:30.000Z
decopatch/tests/test_introspection_base.py
smarie/python-decopatch
7172d09c83ec3b6eef947f37fca7a1ddabfb09cc
[ "BSD-3-Clause" ]
3
2019-11-13T18:59:02.000Z
2022-02-02T14:16:28.000Z
import sys import pytest from decopatch import FirstArgDisambiguation from decopatch.utils_disambiguation import disambiguate_using_introspection def generate_decorator(): def my_deco(*args): def apply(f): my_deco.success = True return f if len(args) == 1 \ ...
24.367647
111
0.575136
ada424a9f06419ff7dcb47be7d501b577d01a861
4,896
py
Python
src/fetch_data.py
maximecharpentierdata/image-captioning
1f2bf5149ecc84bb4917bb62bd70915157e526c6
[ "MIT" ]
2
2022-01-13T10:49:34.000Z
2022-01-23T15:10:58.000Z
src/fetch_data.py
maximecharpentierdata/image-captioning
1f2bf5149ecc84bb4917bb62bd70915157e526c6
[ "MIT" ]
1
2022-01-26T08:22:25.000Z
2022-01-26T08:22:25.000Z
src/fetch_data.py
maximecharpentierdata/image-captioning
1f2bf5149ecc84bb4917bb62bd70915157e526c6
[ "MIT" ]
null
null
null
import kaggle import shutil import os import urllib.request import zipfile from tqdm import tqdm from .config import DATA_ROOT_PATH, DATASET, Datasets # For progress bar class DownloadProgressBar(tqdm): def update_to(self, b=1, bsize=1, tsize=None): if tsize is not None: self.total = tsize ...
41.491525
130
0.704861
c6565947b2cd82c0f835047e1ef1ce1b53022e22
30,679
py
Python
sdk/python/pulumi_openstack/sharedfilesystem/share_network.py
pulumi/pulumi-openstack
945eed22a82784e9f0b3aa56168b2397c2f503e8
[ "ECL-2.0", "Apache-2.0" ]
34
2018-09-12T12:37:51.000Z
2022-02-04T19:32:13.000Z
sdk/python/pulumi_openstack/sharedfilesystem/share_network.py
pulumi/pulumi-openstack
945eed22a82784e9f0b3aa56168b2397c2f503e8
[ "ECL-2.0", "Apache-2.0" ]
72
2018-08-15T13:04:57.000Z
2022-03-31T15:39:49.000Z
sdk/python/pulumi_openstack/sharedfilesystem/share_network.py
pulumi/pulumi-openstack
945eed22a82784e9f0b3aa56168b2397c2f503e8
[ "ECL-2.0", "Apache-2.0" ]
7
2019-03-14T08:28:49.000Z
2021-12-29T04:23:55.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** 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, overload from .. import...
43.516312
134
0.642459
89d229a897e1046dd1fd91a045fef6b9f9391a64
12,177
py
Python
src/data_loader.py
jells123/Sound_event_detection
7afeadd1eb9450f89bb159480d5a0ee0296e09dd
[ "MIT" ]
null
null
null
src/data_loader.py
jells123/Sound_event_detection
7afeadd1eb9450f89bb159480d5a0ee0296e09dd
[ "MIT" ]
null
null
null
src/data_loader.py
jells123/Sound_event_detection
7afeadd1eb9450f89bb159480d5a0ee0296e09dd
[ "MIT" ]
null
null
null
import os import numpy as np import random import configparser class data_loader(object): def __init__(self, conf_dir): """" Load the data stream for training. Count relevant parameters on the data set for DF and GL. Args: conf_dir: string the path of configuration dir Attributes: conf_dir f...
25.316008
123
0.662396
1a7a0165607bd086041881b87ba9915f6487fa47
1,721
py
Python
conda/cli/find_commands.py
melund/conda
2348aa1863c2bd0c536f29c510a97fbc85a2ad89
[ "BSD-3-Clause" ]
null
null
null
conda/cli/find_commands.py
melund/conda
2348aa1863c2bd0c536f29c510a97fbc85a2ad89
[ "BSD-3-Clause" ]
null
null
null
conda/cli/find_commands.py
melund/conda
2348aa1863c2bd0c536f29c510a97fbc85a2ad89
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function, division, absolute_import import re import os import sys import subprocess from os.path import isdir, isfile, join if sys.platform == 'win32': dir_paths = [join(sys.prefix, 'Scripts')] else: dir_paths = [join(sys.prefix, 'bin')] dir_paths.extend(os.environ['PATH'].spl...
23.575342
64
0.568274
59919fc669b4700caae296a47f33e8c2d39932c0
2,922
py
Python
samples/basic/executor/models/cisco-ios-xr/Cisco-IOS-XR-snmp-test-trap-act/nc-execute-xr-snmp-test-trap-act-446-ydk.py
deom119/ydk-py-samples
1ad6cc2b798f358ff835df93d12924df308b85fc
[ "Apache-2.0" ]
104
2016-03-15T17:04:01.000Z
2021-12-31T06:09:35.000Z
samples/basic/executor/models/cisco-ios-xr/Cisco-IOS-XR-snmp-test-trap-act/nc-execute-xr-snmp-test-trap-act-446-ydk.py
https-maxus-github-com/ydk-py-samples
1ad6cc2b798f358ff835df93d12924df308b85fc
[ "Apache-2.0" ]
15
2016-03-15T23:09:47.000Z
2020-08-13T12:13:18.000Z
samples/basic/executor/models/cisco-ios-xr/Cisco-IOS-XR-snmp-test-trap-act/nc-execute-xr-snmp-test-trap-act-446-ydk.py
https-maxus-github-com/ydk-py-samples
1ad6cc2b798f358ff835df93d12924df308b85fc
[ "Apache-2.0" ]
87
2016-04-15T16:59:23.000Z
2021-09-18T18:05:47.000Z
#!/usr/bin/env python # # Copyright 2016 Cisco Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
35.204819
95
0.680356
4f046e95a64e3b130714b1440f93cc121fd7aaf0
620
py
Python
manage.py
jcarder5/songbase
c409a4ea9b13eef40e7496d5fe2c2a1e0b0953c3
[ "MIT" ]
null
null
null
manage.py
jcarder5/songbase
c409a4ea9b13eef40e7496d5fe2c2a1e0b0953c3
[ "MIT" ]
null
null
null
manage.py
jcarder5/songbase
c409a4ea9b13eef40e7496d5fe2c2a1e0b0953c3
[ "MIT" ]
null
null
null
from flask_script import Manager from songbase import app, db, Artist, Song manager = Manager(app) # reset the database and create two artists @manager.command def deploy(): db.drop_all() db.create_all() coldplay = Artist(name='Coldplay', about='Coldplay is a British rock band.') maroon5 = Artist(nam...
26.956522
85
0.68871
d52f3d74e5f2e5c00ed3733a74b224b7a4a8afe5
127
py
Python
tests/scripts/echo2.py
pquentin/trio-asyncio
2440c92a2b6674e834d6f791d46aba0aa82b1ffd
[ "Apache-2.0", "MIT" ]
160
2018-01-12T20:17:07.000Z
2022-03-18T15:44:56.000Z
tests/scripts/echo2.py
pquentin/trio-asyncio
2440c92a2b6674e834d6f791d46aba0aa82b1ffd
[ "Apache-2.0", "MIT" ]
108
2018-01-21T12:53:14.000Z
2022-02-08T10:44:54.000Z
tests/scripts/echo2.py
pquentin/trio-asyncio
2440c92a2b6674e834d6f791d46aba0aa82b1ffd
[ "Apache-2.0", "MIT" ]
33
2018-01-21T09:29:38.000Z
2022-01-16T21:11:50.000Z
import os if __name__ == '__main__': buf = os.read(0, 1024) os.write(1, b'OUT:' + buf) os.write(2, b'ERR:' + buf)
18.142857
30
0.551181
79449e7c21add45309112648bfb8de3f2b32d5f6
1,077
py
Python
test/ml/classification/test_classification.py
xenron/coco
e318d534127b769612716c05d40e3d5b090eb5a3
[ "MIT" ]
null
null
null
test/ml/classification/test_classification.py
xenron/coco
e318d534127b769612716c05d40e3d5b090eb5a3
[ "MIT" ]
null
null
null
test/ml/classification/test_classification.py
xenron/coco
e318d534127b769612716c05d40e3d5b090eb5a3
[ "MIT" ]
null
null
null
import unittest as ut import sys sys.path.append("../../../package") import ml.classification class TestClassification(ut.TestCase): def setUp(self): super(TestClassification, self).setUp() def test_knn(self): model = ml.classification.getClassifierByName("KNN") data = dict() ...
25.642857
62
0.551532
27b9003fd5c57b643d62f488448caa2b55ff2bd2
239
py
Python
reusable_components/__init__.py
blozano824/dash-docs
f2b5a9dcbf60603aa0d0caabcfa31dccc6face7d
[ "MIT" ]
1
2019-03-04T03:17:19.000Z
2019-03-04T03:17:19.000Z
reusable_components/__init__.py
blozano824/dash-docs
f2b5a9dcbf60603aa0d0caabcfa31dccc6face7d
[ "MIT" ]
3
2021-03-31T19:16:27.000Z
2021-12-13T20:27:16.000Z
reusable_components/__init__.py
blozano824/dash-docs
f2b5a9dcbf60603aa0d0caabcfa31dccc6face7d
[ "MIT" ]
1
2022-03-18T09:41:34.000Z
2022-03-18T09:41:34.000Z
from .Column import Column # noqa: F401 from .Header import Header # noqa: F401 from .Row import Row # noqa: F401 from .Section import Section from .Chapter import Chapter from .Blockquote import Blockquote from .Notebox import Notebox
29.875
40
0.778243
13dc5edd5a4d0cb6d4c666c76fa64d04e79f0aa4
10,339
py
Python
activemri/baselines/loupe_codes/samplers.py
tianweiy/SeqMRI
930c056284ab5538881cb6cf4138a107944fd29c
[ "MIT" ]
16
2021-05-14T01:14:24.000Z
2022-02-11T10:02:04.000Z
activemri/baselines/loupe_codes/samplers.py
tianweiy/SeqMRI
930c056284ab5538881cb6cf4138a107944fd29c
[ "MIT" ]
1
2021-10-21T13:31:35.000Z
2021-10-21T13:31:35.000Z
activemri/baselines/loupe_codes/samplers.py
tianweiy/SeqMRI
930c056284ab5538881cb6cf4138a107944fd29c
[ "MIT" ]
2
2021-05-14T04:44:57.000Z
2021-11-08T03:08:58.000Z
from enum import auto import torch from torch import nn from torch.nn import functional as F from activemri.baselines.loupe_codes.layers import * from activemri.baselines.loupe_codes import transforms from torch.autograd import Function import matplotlib.pyplot as plt import numpy as np import sigpy import sigpy.mri...
45.747788
127
0.640487
740d1566331d76840cc9c2d47fe10ea989dda52d
356
py
Python
flarestack/data/icecube/gfu/__init__.py
robertdstein/flarestack
2ce7e67da336514f6f38f06126a1fbd82131e441
[ "MIT" ]
null
null
null
flarestack/data/icecube/gfu/__init__.py
robertdstein/flarestack
2ce7e67da336514f6f38f06126a1fbd82131e441
[ "MIT" ]
25
2019-11-14T15:46:24.000Z
2020-11-27T11:14:22.000Z
flarestack/data/icecube/gfu/__init__.py
robertdstein/flarestack
2ce7e67da336514f6f38f06126a1fbd82131e441
[ "MIT" ]
2
2020-01-06T19:39:27.000Z
2020-07-16T20:32:29.000Z
import numpy as np gfu_binning = ( np.unique( np.concatenate( [ np.linspace(-1.0, -0.93, 4 + 1), np.linspace(-0.93, -0.3, 10 + 1), np.linspace(-0.3, 0.05, 9 + 1), np.linspace(0.05, 1.0, 18 + 1), ] ) ), n...
22.25
49
0.382022
05d11248dac6b8ff4505f991957f7776b06073be
781
py
Python
exams/2011/6_external_stability.py
JoaoCostaIFG/MNUM
6e042d8a6f64feb9eae9c79afec2fbab51f46fbd
[ "MIT" ]
1
2019-12-07T10:34:30.000Z
2019-12-07T10:34:30.000Z
exams/2011/6_external_stability.py
JoaoCostaIFG/MNUM
6e042d8a6f64feb9eae9c79afec2fbab51f46fbd
[ "MIT" ]
null
null
null
exams/2011/6_external_stability.py
JoaoCostaIFG/MNUM
6e042d8a6f64feb9eae9c79afec2fbab51f46fbd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 n = 3 A = [[18, -1, 1], [3, -5, 4], [6, 8, 29]] x = [0.552949, -0.15347, -0.10655] db = da = 0.1 b = [db for i in range(n)] dA = [[da for j in range(n)] for i in range(n)] for i in range(n): for j in range(n): b[i] -= dA[i][j] * x[j] print("new b:", b) # Gauss elim for i in range...
18.162791
47
0.449424
d6719836b5cc85aa0ea6fb2c697f1f748f668b3e
404
py
Python
src/arrays/beggars-outside-temple.py
vighnesh153/ds-algo
79c401dad2d2e575ce1913184ca8665f2712a5b8
[ "MIT" ]
null
null
null
src/arrays/beggars-outside-temple.py
vighnesh153/ds-algo
79c401dad2d2e575ce1913184ca8665f2712a5b8
[ "MIT" ]
null
null
null
src/arrays/beggars-outside-temple.py
vighnesh153/ds-algo
79c401dad2d2e575ce1913184ca8665f2712a5b8
[ "MIT" ]
1
2020-08-09T06:37:21.000Z
2020-08-09T06:37:21.000Z
def solve(count_beggars, amount): beggars_katori = [0] * count_beggars for start, end, amt in amount: beggars_katori[start - 1] += amt if end < count_beggars: beggars_katori[end] -= amt for i in range(1, count_beggars): beggars_katori[i] += beggars_katori[i-1] retu...
23.764706
52
0.601485
6193e02da9d4ecb20f019ebae65552a4515244ed
464
py
Python
main.py
17jrb17/01-Introduction
32d6ee73d80b8e75ad0033120f40574338e50814
[ "MIT" ]
null
null
null
main.py
17jrb17/01-Introduction
32d6ee73d80b8e75ad0033120f40574338e50814
[ "MIT" ]
null
null
null
main.py
17jrb17/01-Introduction
32d6ee73d80b8e75ad0033120f40574338e50814
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import utils utils.check_version((3,7)) utils.clear() print('Hello, my name is Jacob Bailey') print('My favorite game is Bioshock Infinite') print('My only concern is getting back into the groove of coding for this class') print('I just want to learn more about what goes into creating the thin...
35.692308
122
0.762931
9b59a471d4b1f7728bbb52b6533a7e6a727bb02f
2,842
py
Python
CNN/CNN.py
MohammadJRanjbar/Recognition-of-Handwritten-Digit-using-CNN-and-ANN
1b102f1227fb673a6b1ada7fd9d594c09df163c7
[ "MIT" ]
null
null
null
CNN/CNN.py
MohammadJRanjbar/Recognition-of-Handwritten-Digit-using-CNN-and-ANN
1b102f1227fb673a6b1ada7fd9d594c09df163c7
[ "MIT" ]
null
null
null
CNN/CNN.py
MohammadJRanjbar/Recognition-of-Handwritten-Digit-using-CNN-and-ANN
1b102f1227fb673a6b1ada7fd9d594c09df163c7
[ "MIT" ]
null
null
null
from keras.datasets.mnist import load_data import keras from keras.models import Sequential from keras.layers import Convolution2D as Conv2D from keras.layers import MaxPooling2D from keras.layers import Flatten from keras.layers import Dense , Activation , Dropout from keras.preprocessing.image import ImageDataGener...
48.169492
144
0.795215
99b8e49380df60c3065a4db1ecf679733ac5e9a8
570
py
Python
pyramid_learning_journal/routes.py
ChristopherSClosser/pyramid-learning-journal
3cd3126d24baef23c20ee75adcaf4cdc892ed71d
[ "MIT" ]
null
null
null
pyramid_learning_journal/routes.py
ChristopherSClosser/pyramid-learning-journal
3cd3126d24baef23c20ee75adcaf4cdc892ed71d
[ "MIT" ]
10
2018-03-10T18:45:50.000Z
2018-03-15T22:39:43.000Z
pyramid_learning_journal/routes.py
ChristopherSClosser/pyramid-learning-journal
3cd3126d24baef23c20ee75adcaf4cdc892ed71d
[ "MIT" ]
null
null
null
"""Define routes.""" def includeme(config): """App routes.""" config.add_static_view( 'static', 'pyramid_learning_journal:static', cache_max_age=3600 ) config.add_route('home', '/') config.add_route('detail', '/journal/{id:\d+}') config.add_route('new', '/journal/new-en...
30
64
0.612281
c8ffc3ff00911aa55445da88c815708568ba141c
1,429
py
Python
py/dcp/problems/recursion/robot_grid.py
bmoretz/Daily-Coding-Problem
f79e062e9f6e7b18b7e95c071fbe71ad104affcb
[ "MIT" ]
1
2020-06-26T13:28:43.000Z
2020-06-26T13:28:43.000Z
py/dcp/problems/recursion/robot_grid.py
bmoretz/Daily-Coding-Problem
f79e062e9f6e7b18b7e95c071fbe71ad104affcb
[ "MIT" ]
7
2021-11-18T19:46:08.000Z
2022-03-12T01:03:01.000Z
py/dcp/problems/recursion/robot_grid.py
bmoretz/Daily-Coding-Problem
f79e062e9f6e7b18b7e95c071fbe71ad104affcb
[ "MIT" ]
null
null
null
'''Robot in a Grid. Imagine a robot sitting on the upper left corner of grid with r rows and c columns. The robot can only move in two directions, right and down, but certain cells are "off limits" such that the robot cannot step on them. Design an algorithm to find a path for the robot from the top left to the botto...
25.517857
98
0.539538
af5876fdae03eadbb1aac31d337afa2fa66e468b
2,908
py
Python
my_util/sloth/sloth/driver/takeover.py
RecluseXU/learning_spider
45fa790ed7970be57a21b40817cc66856de3d99b
[ "MIT" ]
38
2020-08-30T11:41:53.000Z
2022-03-23T04:30:26.000Z
my_util/sloth/sloth/driver/takeover.py
AndersonHJB/learning_spider
b855b7808fb5268e9564180cf73ba5b1fb133f58
[ "MIT" ]
2
2021-08-20T16:34:12.000Z
2021-10-08T11:06:41.000Z
my_util/sloth/sloth/driver/takeover.py
AndersonHJB/learning_spider
b855b7808fb5268e9564180cf73ba5b1fb133f58
[ "MIT" ]
10
2020-11-24T09:15:42.000Z
2022-02-25T06:05:16.000Z
# -*- encoding: utf-8 -*- ''' @Time : 2021-08-07 @Author : EvilRecluse @Contact : https://github.com/RecluseXU @Desc : webdriver 接管操作系统启动的 Chrome ''' # here put the import lib from threading import Thread from os import popen from os.path import dirname, join as path_join from platform import system as...
29.979381
79
0.661967
6d7ad42ea44b990479d8b51de69c4911f0b4c31e
19,228
py
Python
biocrnpyler/sbmlutil.py
zoltuz/BioCRNPyler
814d514cbeb9d71ee1774169cee72a3131547d55
[ "BSD-3-Clause" ]
null
null
null
biocrnpyler/sbmlutil.py
zoltuz/BioCRNPyler
814d514cbeb9d71ee1774169cee72a3131547d55
[ "BSD-3-Clause" ]
1
2020-06-15T20:09:25.000Z
2020-06-15T20:52:26.000Z
biocrnpyler/sbmlutil.py
zoltuz/BioCRNPyler
814d514cbeb9d71ee1774169cee72a3131547d55
[ "BSD-3-Clause" ]
null
null
null
# sbmlutil.py - libsbml helper functions # RMM, 14 Aug 2018 # # Copyright (c) 2018, Build-A-Cell. All rights reserved. # See LICENSE file in the project root directory for details. import libsbml import numpy as np from warnings import warn # Reaction ID number (global) reaction_id = 0 # Create an SBML model def cr...
39.892116
178
0.657427
ecdc51e665338e5a1840e8806bd42423b4d4f3f8
836
py
Python
website/drawquest/management/commands/reset_quest_scores.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
19
2015-11-10T17:36:20.000Z
2021-04-12T07:36:00.000Z
website/drawquest/management/commands/reset_quest_scores.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
1
2021-06-09T03:45:34.000Z
2021-06-09T03:45:34.000Z
website/drawquest/management/commands/reset_quest_scores.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
6
2015-11-11T00:38:38.000Z
2020-07-25T20:10:08.000Z
from datetime import datetime, timedelta from time import time from django.core.management.base import BaseCommand, CommandError from django.db.models import Q from drawquest.apps.quest_comments.models import QuestComment from drawquest.apps.quests.models import Quest from drawquest.apps.quests.top import top_quests_...
28.827586
105
0.684211
0e0b59bcde17fb7219b78daca454cff2209b055f
7,433
py
Python
savu/core/transports/dosna_transport.py
hir12111/Savu
172246f1afacb4c230960ca44a60901b853de16b
[ "Apache-2.0" ]
null
null
null
savu/core/transports/dosna_transport.py
hir12111/Savu
172246f1afacb4c230960ca44a60901b853de16b
[ "Apache-2.0" ]
null
null
null
savu/core/transports/dosna_transport.py
hir12111/Savu
172246f1afacb4c230960ca44a60901b853de16b
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Diamond Light Source Ltd. # # 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 t...
38.713542
79
0.628548
9b675cf1d5db0301a15f13b493bb22f2bde6233d
2,762
py
Python
post_office/settings.py
ilikerobots/django-post_office
efe6e9fced5ccb6fbdb00a796f07a60ece945bd4
[ "MIT" ]
null
null
null
post_office/settings.py
ilikerobots/django-post_office
efe6e9fced5ccb6fbdb00a796f07a60ece945bd4
[ "MIT" ]
null
null
null
post_office/settings.py
ilikerobots/django-post_office
efe6e9fced5ccb6fbdb00a796f07a60ece945bd4
[ "MIT" ]
null
null
null
import warnings from django.conf import settings from django.core.cache.backends.base import InvalidCacheBackendError from django.template import engines as template_engines from .compat import import_attribute, get_cache def get_backend(alias='default'): return get_available_backends()[alias] def get_availab...
27.078431
77
0.668718
72d62c6424e10435c726bc2442e3d702901b7b8a
4,455
py
Python
benchmark/startQiskit_noisy1624.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_noisy1624.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_noisy1624.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=5 # total number=56 import cirq import qiskit from qiskit.providers.aer import QasmSimulator from qiskit.test.mock import FakeVigo from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import ...
32.05036
82
0.617508
a1f2e9eb943fc76f9b2e20cbb4a9013b8e222c9d
8,397
py
Python
myven/lib/python3.8/site-packages/ansible/modules/monitoring/zabbix/zabbix_hostmacro.py
baltham/dne-dna-code
4a13309a790a670d2f07e635c9264a0c29976c6a
[ "MIT" ]
1
2021-04-02T08:08:39.000Z
2021-04-02T08:08:39.000Z
myven/lib/python3.8/site-packages/ansible/modules/monitoring/zabbix/zabbix_hostmacro.py
baltham/dne-dna-code
4a13309a790a670d2f07e635c9264a0c29976c6a
[ "MIT" ]
null
null
null
myven/lib/python3.8/site-packages/ansible/modules/monitoring/zabbix/zabbix_hostmacro.py
baltham/dne-dna-code
4a13309a790a670d2f07e635c9264a0c29976c6a
[ "MIT" ]
1
2020-05-03T01:13:16.000Z
2020-05-03T01:13:16.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2013-2014, Epic Games, Inc. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
37.824324
130
0.637251
2a1460588ec2274dba4956635e0a46dcd215a2f9
5,593
py
Python
models/Deep-learning/dataset/feature_add3_pos_flag_floats_ddg_dataset.py
jingyi7777/CasRx_guide_efficiency
c9e900e4c4a73215f09852bd621b30e8dcb039e8
[ "MIT" ]
null
null
null
models/Deep-learning/dataset/feature_add3_pos_flag_floats_ddg_dataset.py
jingyi7777/CasRx_guide_efficiency
c9e900e4c4a73215f09852bd621b30e8dcb039e8
[ "MIT" ]
null
null
null
models/Deep-learning/dataset/feature_add3_pos_flag_floats_ddg_dataset.py
jingyi7777/CasRx_guide_efficiency
c9e900e4c4a73215f09852bd621b30e8dcb039e8
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import tensorflow as tf from sklearn.model_selection import train_test_split import random #from dataset.dataset_filtered_utils import * from dataset.dataset_utils import * #from dataset.dataset_utils import normalize def feature_add3_pos_flag_floats_ddg_dataset(args): data...
47.803419
176
0.703737
f71e6662c54d213d3019b65fbc96d3cbbbbdac09
6,350
py
Python
google/cloud/vision_v1p2beta1/services/image_annotator/transports/base.py
dylancaponi/python-vision
f94fb5b03bf8932e75967249292d23fed2ae2213
[ "Apache-2.0" ]
null
null
null
google/cloud/vision_v1p2beta1/services/image_annotator/transports/base.py
dylancaponi/python-vision
f94fb5b03bf8932e75967249292d23fed2ae2213
[ "Apache-2.0" ]
1
2021-02-23T12:41:14.000Z
2021-02-23T12:41:14.000Z
google/cloud/vision_v1p2beta1/services/image_annotator/transports/base.py
dylancaponi/python-vision
f94fb5b03bf8932e75967249292d23fed2ae2213
[ "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 o...
37.797619
85
0.639685
7eb57dfbdc0e941164756f4527529055eb231abf
4,232
py
Python
openhab_creator/models/configuration/location/__init__.py
DerOetzi/openhab_creator
197876df5aae84192c34418f6b9a7cfcee23b195
[ "MIT" ]
1
2021-11-16T22:48:26.000Z
2021-11-16T22:48:26.000Z
openhab_creator/models/configuration/location/__init__.py
DerOetzi/openhab_creator
197876df5aae84192c34418f6b9a7cfcee23b195
[ "MIT" ]
null
null
null
openhab_creator/models/configuration/location/__init__.py
DerOetzi/openhab_creator
197876df5aae84192c34418f6b9a7cfcee23b195
[ "MIT" ]
null
null
null
from __future__ import annotations from abc import abstractmethod from importlib import import_module from typing import TYPE_CHECKING, Dict, Final, List, Optional, Type from openhab_creator.exception import RegistryException from openhab_creator.models.configuration.baseobject import BaseObject from openhab_creator....
30.228571
91
0.649811
85cae6df0301c65c4ac94acc2ffb851bbfc29501
9,724
py
Python
mediagoblin/gmg_commands/reprocess.py
saksham1115/mediagoblin
41302ad2b622b340caeb13339338ab3a5d0f7e6b
[ "CC0-1.0" ]
60
2015-01-17T01:19:47.000Z
2021-09-17T01:25:47.000Z
mediagoblin/gmg_commands/reprocess.py
saksham1115/mediagoblin
41302ad2b622b340caeb13339338ab3a5d0f7e6b
[ "CC0-1.0" ]
12
2015-02-03T09:14:42.000Z
2020-12-04T12:18:03.000Z
mediagoblin/gmg_commands/reprocess.py
saksham1115/mediagoblin
41302ad2b622b340caeb13339338ab3a5d0f7e6b
[ "CC0-1.0" ]
23
2015-08-18T01:32:50.000Z
2021-09-05T23:22:55.000Z
# GNU MediaGoblin -- federated, autonomous media hosting # Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either versio...
31.777778
80
0.626594
044f55ab24dcd858c3d458abb27b1f3b783b017e
378
py
Python
venv/Lib/site-packages/mcipc/rcon/je/commands/list.py
Svesnav2/Discord-Bot-Minecraft-server-status
ee34948e741930567a3adb557197523f9d32ace1
[ "Unlicense" ]
null
null
null
venv/Lib/site-packages/mcipc/rcon/je/commands/list.py
Svesnav2/Discord-Bot-Minecraft-server-status
ee34948e741930567a3adb557197523f9d32ace1
[ "Unlicense" ]
null
null
null
venv/Lib/site-packages/mcipc/rcon/je/commands/list.py
Svesnav2/Discord-Bot-Minecraft-server-status
ee34948e741930567a3adb557197523f9d32ace1
[ "Unlicense" ]
null
null
null
"""Implementation of the list command.""" from mcipc.rcon.client import Client from mcipc.rcon.functions import parsed from mcipc.rcon.response_types.players import parse __all__ = ['list'] # pylint: disable=W0622 @parsed(parse) def list(client: Client, uuids: bool = False) -> str: """Returns the players.""" ...
22.235294
57
0.719577
ea9a47fcbc427821fe2e0407ee058c585b37e0e9
3,077
py
Python
tps/judge/tasktype.py
akmohtashami/tps-web
9dab3ffe97c21f658be30ce2f2711dd93e4ba60f
[ "MIT" ]
5
2019-02-26T06:10:43.000Z
2021-07-24T17:11:45.000Z
tps/judge/tasktype.py
akmohtashami/tps-web
9dab3ffe97c21f658be30ce2f2711dd93e4ba60f
[ "MIT" ]
3
2019-08-15T13:56:03.000Z
2021-06-10T18:43:16.000Z
tps/judge/tasktype.py
jonathanirvings/tps-web
46519347d4fc8bdced9b5bceb6cdee5ea4e508f2
[ "MIT" ]
2
2018-12-28T13:12:59.000Z
2020-12-25T18:42:13.000Z
class TaskType(object): def __init__(self, judge): self.judge = judge def initialize_problem( self, problem_code, code_name, task_type_parameters, helpers, time_limit, memory_limit, ): """ Initializ...
43.957143
108
0.669158
4bcb2d636181dfa8c224365c75c7782a8feb40d3
3,656
py
Python
xmnlp/lexical/lexical_model.py
SeanLee97/xmnlp
f52fc62fee4f01fe95786f063e1e52e90f620c8a
[ "Apache-2.0" ]
860
2018-02-14T00:56:52.000Z
2022-03-31T13:34:21.000Z
xmnlp/lexical/lexical_model.py
123bbqw/xmnlp
0ffad8616c248845b18f819c0ac0465a4ec45f5d
[ "Apache-2.0" ]
29
2018-02-14T01:59:26.000Z
2022-03-30T11:46:00.000Z
xmnlp/lexical/lexical_model.py
123bbqw/xmnlp
0ffad8616c248845b18f819c0ac0465a4ec45f5d
[ "Apache-2.0" ]
178
2018-02-28T13:35:12.000Z
2022-03-12T01:36:33.000Z
# -*- coding: utf-8 -*- # -------------------------------------------# # author: sean lee # # email: xmlee97@gmail.com # # -------------------------------------------# """ XMNLP - Lexical Model Tree: lexical ├── label2id.json ├── lexical.onnx ├── trans.npy └── vocab.txt "...
33.851852
98
0.549234
f8196471e12efa04ef015ee669ec65599f53fbdf
1,323
py
Python
insights/parsers/tests/test_sysconfig_irqbalance.py
lhuett/insights-core
1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8
[ "Apache-2.0" ]
121
2017-05-30T20:23:25.000Z
2022-03-23T12:52:15.000Z
insights/parsers/tests/test_sysconfig_irqbalance.py
lhuett/insights-core
1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8
[ "Apache-2.0" ]
1,977
2017-05-26T14:36:03.000Z
2022-03-31T10:38:53.000Z
insights/parsers/tests/test_sysconfig_irqbalance.py
lhuett/insights-core
1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8
[ "Apache-2.0" ]
244
2017-05-30T20:22:57.000Z
2022-03-26T10:09:39.000Z
from insights.parsers.sysconfig import IrqbalanceSysconfig from insights.tests import context_wrap IRQBALANCE_SYSCONF_TEST = """ # irqbalance is a daemon process that distributes interrupts across # CPUS on SMP systems. The default is to rebalance once every 10 # seconds. This is the environment file that is specified...
33.075
79
0.773998
4708fa32c0445506a48fa457eb17c0187c717e5e
207
py
Python
customquad/__init__.py
augustjohansson/customquad
26f4a42e463d5368b79b4c340dbfb85e64f7d6d4
[ "Xnet", "X11" ]
null
null
null
customquad/__init__.py
augustjohansson/customquad
26f4a42e463d5368b79b4c340dbfb85e64f7d6d4
[ "Xnet", "X11" ]
null
null
null
customquad/__init__.py
augustjohansson/customquad
26f4a42e463d5368b79b4c340dbfb85e64f7d6d4
[ "Xnet", "X11" ]
1
2021-06-25T16:59:48.000Z
2021-06-25T16:59:48.000Z
from .assemble_matrix import assemble_matrix, custom_assemble_matrix from .assemble_vector import assemble_vector, custom_assemble_vector from .assemble_scalar import assemble_scalar, custom_assemble_scalar
51.75
68
0.898551
fd79c94b557f5d0e92360bb5453288ba5e39b4e7
1,272
py
Python
serving/score-model.py
chzbrgr71/got-image-classification
f2edd1ea3b82089ceaae068b926324ef29fb39d0
[ "MIT" ]
10
2019-05-15T20:42:41.000Z
2022-02-28T03:27:58.000Z
serving/score-model.py
chzbrgr71/got-image-classification
f2edd1ea3b82089ceaae068b926324ef29fb39d0
[ "MIT" ]
1
2022-01-22T04:51:56.000Z
2022-01-22T04:51:56.000Z
serving/score-model.py
chzbrgr71/got-image-classification
f2edd1ea3b82089ceaae068b926324ef29fb39d0
[ "MIT" ]
7
2019-06-05T16:15:57.000Z
2020-05-24T23:02:07.000Z
import os, sys import tensorflow as tf # pass in model path as arg (eg - /tf-output/latest_model) # python score-model.py '../tf-output/latest_model' model_path = sys.argv[1] label_lines = [line.rstrip() for line in tf.gfile.GFile(model_path + "/got_retrained_labels.txt")] with tf.gfile.FastGFile(model_path + "/got...
39.75
179
0.680818
a5c61ecc75fdb98052ba2693c7ee4c12ad72827f
3,769
py
Python
src/securityAbandonerAndInjector/forcedToReceiveEthers/main.py
xf97/HuangGai
40a349be6102d5eb63893fb914659405ae162d93
[ "MIT" ]
23
2020-09-20T02:10:44.000Z
2022-03-22T12:58:13.000Z
src/securityAbandonerAndInjector/forcedToReceiveEthers/main.py
contractshark/HuangGai
1b26f77b043aa5903774420964c61ab370eb6c7a
[ "MIT" ]
3
2020-09-22T15:28:33.000Z
2022-01-22T07:48:53.000Z
src/securityAbandonerAndInjector/forcedToReceiveEthers/main.py
contractshark/HuangGai
1b26f77b043aa5903774420964c61ab370eb6c7a
[ "MIT" ]
5
2021-07-15T02:45:09.000Z
2022-03-21T13:36:40.000Z
#!/usr/bin/python #-*- coding: utf-8 -*- #cache路径 CACHE_PATH = "./cache/" #缓存合约路径 CACHE_CONTRACT_PATH = "./cache/temp.sol" #缓存路径信息文件 CACHE_PATHINFO_PATH = "./cache/temp_sol.json" #缓存抽象语法树文件 CACHE_AST_PATH = "./cache/temp.sol_json.ast" #源代码保存路径 CONTRACT_PATH = "../../contractExtractor/forcedToReceiveEthersExtractor/res...
30.395161
133
0.727779