hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
210e1a5deb005cd62a61c7a12eaa2056ca52779d
1,951
py
Python
plotting/matplotlib/weights.py
manuvazquez/smc-tools
8f543ad406a85afde892258a04545f569f8bf7a3
[ "Apache-2.0" ]
1
2020-10-12T22:10:10.000Z
2020-10-12T22:10:10.000Z
plotting/matplotlib/weights.py
manuvazquez/smc-tools
8f543ad406a85afde892258a04545f569f8bf7a3
[ "Apache-2.0" ]
null
null
null
plotting/matplotlib/weights.py
manuvazquez/smc-tools
8f543ad406a85afde892258a04545f569f8bf7a3
[ "Apache-2.0" ]
1
2020-10-12T22:54:55.000Z
2020-10-12T22:54:55.000Z
from typing import Tuple import numpy as np import matplotlib.pyplot as plt def weights_hist( weights: np.ndarray, n_bins: int = 10, range: Tuple[float, float] = (0., 1.), labels_y_shift: float = 3, labels_x_shift: float = -0.03): """ Plot an histogram of the weights. Parameters ---------- weights: ndarray...
24.696203
109
0.686315
210e29d70ed51d1d3c219381b925877139acd4d1
1,264
py
Python
pandaharvester/harvestercore/panda_queue_spec.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
7
2019-08-30T07:35:48.000Z
2022-02-13T14:46:53.000Z
pandaharvester/harvestercore/panda_queue_spec.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
29
2019-09-20T14:04:37.000Z
2021-09-13T12:53:05.000Z
pandaharvester/harvestercore/panda_queue_spec.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
15
2019-07-30T11:48:29.000Z
2022-03-29T21:49:05.000Z
""" Panda Queue class """ from .spec_base import SpecBase class PandaQueueSpec(SpecBase): # attributes attributesWithTypes = ('queueName:text / index', 'nQueueLimitJob:integer', 'nQueueLimitWorker:integer', 'maxWorkers:integer'...
34.162162
60
0.453323
210e3a3dccd521396f02c1f137e5c1774ff4e9f2
982
py
Python
Trescope4Python/example/src/example_plot_graph.py
aaabbb2021/Trescope
629dd526572b4883608fd12cc06738b0e83fe775
[ "MIT" ]
105
2020-11-09T04:20:26.000Z
2022-03-23T12:32:24.000Z
Trescope4Python/example/src/example_plot_graph.py
aaabbb2021/Trescope
629dd526572b4883608fd12cc06738b0e83fe775
[ "MIT" ]
5
2021-02-21T04:21:56.000Z
2022-01-04T08:07:20.000Z
Trescope4Python/example/src/example_plot_graph.py
aaabbb2021/Trescope
629dd526572b4883608fd12cc06738b0e83fe775
[ "MIT" ]
8
2020-11-13T12:55:36.000Z
2022-01-17T07:28:06.000Z
import numpy as np from trescope import Trescope from trescope.config import GraphConfig from trescope.toolbox import simpleDisplayOutputs def plot_graph(): Trescope().initialize(True, simpleDisplayOutputs(1, 3)) (Trescope() .selectOutput(0) .plotGraph( vertex=np.array([[255, 0, 0, 0xf...
29.757576
122
0.538697
210ec0fd5ea1d44abe564e6fc431b8f7b3aff032
2,211
py
Python
xos/generate/dependency_walker.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/generate/dependency_walker.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
5
2020-06-05T17:47:15.000Z
2021-09-23T23:21:27.000Z
xos/generate/dependency_walker.py
pan2za/xos
c2a4da2ccaa12360b2718be303b247866aefdfe6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import imp from xos.config import Config, XOS_DIR import inspect import time import traceback import commands import threading import json import pdb from core.models import * from xos.logger import Logger, logging logger = Logger(level=logging.INFO) missing_links={} try: dep_data =...
20.472222
121
0.679783
210ec6182b10a53f279f3861c49700469e1d4aed
19,433
py
Python
extensions/bond/ui/ledger_sync/main/sync_ledger_cli.py
gabykyei/GC_BlockChain_T_Rec
b72cb483064852d0a60286943ff55233462fea08
[ "Apache-2.0" ]
1
2019-03-18T13:31:11.000Z
2019-03-18T13:31:11.000Z
extensions/bond/ui/ledger_sync/main/sync_ledger_cli.py
gabykyei/GC_BlockChain_T_Rec
b72cb483064852d0a60286943ff55233462fea08
[ "Apache-2.0" ]
null
null
null
extensions/bond/ui/ledger_sync/main/sync_ledger_cli.py
gabykyei/GC_BlockChain_T_Rec
b72cb483064852d0a60286943ff55233462fea08
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright 2016 Intel 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 ...
31.043131
80
0.636443
210ecaeb3feed0c06ca3ad2f09f799801a477241
163,299
py
Python
distributed/worker.py
vepadulano/distributed
1da51994cc84c0897589a4476cd24073147054b6
[ "BSD-3-Clause" ]
null
null
null
distributed/worker.py
vepadulano/distributed
1da51994cc84c0897589a4476cd24073147054b6
[ "BSD-3-Clause" ]
null
null
null
distributed/worker.py
vepadulano/distributed
1da51994cc84c0897589a4476cd24073147054b6
[ "BSD-3-Clause" ]
null
null
null
from __future__ import annotations import asyncio import bisect import builtins import errno import heapq import logging import os import random import sys import threading import warnings import weakref from collections import defaultdict, deque from collections.abc import ( Callable, Collection, Containe...
35.66259
108
0.569605
210ed2be6e98e8a7eda9cda0d805354d269096d9
14,600
py
Python
tests/network/nano_node/data/http/legacy_watching_invalid_signature.py
Matoking/siliqua
b943822631ab18dde85e95d1731ebd7ffd7ef14a
[ "CC0-1.0" ]
8
2019-10-31T19:16:08.000Z
2021-12-04T00:09:24.000Z
tests/network/nano_node/data/http/legacy_watching_invalid_signature.py
Matoking/siliqua
b943822631ab18dde85e95d1731ebd7ffd7ef14a
[ "CC0-1.0" ]
null
null
null
tests/network/nano_node/data/http/legacy_watching_invalid_signature.py
Matoking/siliqua
b943822631ab18dde85e95d1731ebd7ffd7ef14a
[ "CC0-1.0" ]
1
2019-11-01T19:27:48.000Z
2019-11-01T19:27:48.000Z
from tests.network.nano_node.conftest import HTTPReplay DATA = [ # Account not synced HTTPReplay( { "action": "account_history", "account": "xrb_3rropjiqfxpmrrkooej4qtmm1pueu36f9ghinpho4esfdor8785a455d16nf", "count": 500, "raw": True, "revers...
61.603376
526
0.615685
210ed8db002e346538dce954a26d631d4fdd1fd6
168
py
Python
bitrix24_bridge/handlers/product.py
initflow/bitrix24-bridge-oscar
fd50985fa354a92d7163055c9e3adfd5c4f4d7a9
[ "BSD-3-Clause" ]
null
null
null
bitrix24_bridge/handlers/product.py
initflow/bitrix24-bridge-oscar
fd50985fa354a92d7163055c9e3adfd5c4f4d7a9
[ "BSD-3-Clause" ]
13
2020-02-12T00:58:41.000Z
2022-03-11T23:53:16.000Z
bitrix24_bridge/handlers/product.py
initflow/bitrix24-bridge-oscar
fd50985fa354a92d7163055c9e3adfd5c4f4d7a9
[ "BSD-3-Clause" ]
null
null
null
from bitrix24_bridge.handlers.base import BaseModelHandler from bitrix24_bridge.models import ProductBX class ProductHandler(BaseModelHandler): model = ProductBX
24
58
0.845238
210f3e4b9b9ec287948ebc5bd1250caa3c1f0b0b
1,154
py
Python
src/dcos_e2e_cli/dcos_docker/commands/create_loopback_sidecar.py
cprovencher/dcos-e2e
c54b3d41f246efe3f90dcf225b0bffdc1f615daa
[ "Apache-2.0" ]
null
null
null
src/dcos_e2e_cli/dcos_docker/commands/create_loopback_sidecar.py
cprovencher/dcos-e2e
c54b3d41f246efe3f90dcf225b0bffdc1f615daa
[ "Apache-2.0" ]
null
null
null
src/dcos_e2e_cli/dcos_docker/commands/create_loopback_sidecar.py
cprovencher/dcos-e2e
c54b3d41f246efe3f90dcf225b0bffdc1f615daa
[ "Apache-2.0" ]
null
null
null
""" Tools for creating sidecar containers. """ import click from dcos_e2e.docker_utils import DockerLoopbackVolume from ._common import ( NODE_TYPE_LABEL_KEY, NODE_TYPE_LOOPBACK_SIDECAR_LABEL_VALUE, SIDECAR_NAME_LABEL_KEY, loopback_sidecars_by_name, ) @click.command('create-loopback-sidecar') @clic...
24.041667
72
0.686308
210f4e06ff22a6c389f965a7761f60e41dfa9441
8,608
py
Python
examples/tools/reindent.py
swamper123/pymodbus
7dfac6f19c60d3aa50a168ff82db88204dfb3a30
[ "BSD-3-Clause" ]
null
null
null
examples/tools/reindent.py
swamper123/pymodbus
7dfac6f19c60d3aa50a168ff82db88204dfb3a30
[ "BSD-3-Clause" ]
1
2020-10-29T12:01:38.000Z
2022-03-21T02:39:59.000Z
examples/tools/reindent.py
swamper123/pymodbus
7dfac6f19c60d3aa50a168ff82db88204dfb3a30
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python """reindent [-d][-r][-v] path ... -d Dry run. Analyze, but don't make any changes to, files. -r Recurse. Search for all .py files in subdirectories too. -v Verbose. Print informative msgs; else no output. Change Python (.py) files to use 4-space indents and no hard tab characters. Also trim ex...
33.235521
76
0.503369
210f58a6e463b3300d07a6806fbecd4b2afdba26
1,503
py
Python
leetcode/547. Friend Circles/soln.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
3
2017-02-15T20:55:04.000Z
2018-09-26T18:48:24.000Z
leetcode/547. Friend Circles/soln.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
4
2017-10-07T18:59:20.000Z
2019-10-08T05:43:25.000Z
leetcode/547. Friend Circles/soln.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
1
2017-10-08T06:52:21.000Z
2017-10-08T06:52:21.000Z
from typing import List class Solution: def findCircleNum(self, M: List[List[int]]) -> int: print(M) u = UnionFind(len(M)) # Lets find edges from this matrices m, n = len(M), len(M[0]) for i in range(m): for j in range(i): # Edge discovered ...
27.327273
61
0.489022
210f649a765c95fb3f38978e57aa549ff51debb4
1,960
py
Python
component/tile/fad_tile.py
ingdanielguerrero/gwb
162f7e1a885945814c584a188e78d571a32a9d80
[ "MIT" ]
null
null
null
component/tile/fad_tile.py
ingdanielguerrero/gwb
162f7e1a885945814c584a188e78d571a32a9d80
[ "MIT" ]
null
null
null
component/tile/fad_tile.py
ingdanielguerrero/gwb
162f7e1a885945814c584a188e78d571a32a9d80
[ "MIT" ]
null
null
null
import json import shutil from sepal_ui import sepalwidgets as sw import ipyvuetify as v from component.message import cm from component import parameter as cp from component import widget as cw from component import scripts as cs from .gwb_tile import GwbTile class FadTile(GwbTile): def __init__(self, io): ...
30.153846
112
0.571429
210f8cea4c8c1df655b4ffbb54f845135975f256
10,484
py
Python
xos/synchronizer/steps/sync_onos_app.py
xosproject/onos-service
5c0582cfe593e9a7184608e895be2ce029254448
[ "Apache-2.0" ]
2
2018-01-26T03:02:31.000Z
2020-04-21T03:24:08.000Z
xos/synchronizer/steps/sync_onos_app.py
xosproject/onos-service
5c0582cfe593e9a7184608e895be2ce029254448
[ "Apache-2.0" ]
null
null
null
xos/synchronizer/steps/sync_onos_app.py
xosproject/onos-service
5c0582cfe593e9a7184608e895be2ce029254448
[ "Apache-2.0" ]
2
2017-11-07T06:13:41.000Z
2018-07-26T21:14:13.000Z
# Copyright 2017-present Open Networking Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
42.274194
118
0.634205
210fa1311ffd7e1b7e872294824d99156b93e8c8
9,120
py
Python
cellardoor/wsgi/falcon_integration.py
movermeyer/cellardoor
25192b07224ff7bd33fd29ebac07340bef53a2ed
[ "MIT" ]
null
null
null
cellardoor/wsgi/falcon_integration.py
movermeyer/cellardoor
25192b07224ff7bd33fd29ebac07340bef53a2ed
[ "MIT" ]
3
2015-01-31T14:53:06.000Z
2015-02-01T19:04:30.000Z
cellardoor/wsgi/falcon_integration.py
movermeyer/cellardoor
25192b07224ff7bd33fd29ebac07340bef53a2ed
[ "MIT" ]
2
2015-01-31T14:54:28.000Z
2018-03-05T17:33:42.000Z
import functools import falcon import logging import inspect from cellardoor import errors from cellardoor.api.methods import LIST, CREATE, GET, REPLACE, UPDATE, DELETE, get_http_methods from cellardoor.serializers import JSONSerializer, MsgPackSerializer from cellardoor.views import View from cellardoor.views.minimal ...
31.12628
103
0.729715
210fa8b6cd698592985f847e659ab4fb6492e637
4,622
py
Python
servers/python/coweb/bayeux/ext/ack.py
opencoweb/coweb
7b3a87ee9eda735a859447d404ee16edde1c5671
[ "AFL-2.1" ]
83
2015-01-05T19:02:57.000Z
2021-11-19T02:48:09.000Z
servers/python/coweb/bayeux/ext/ack.py
xuelingxiao/coweb
7b3a87ee9eda735a859447d404ee16edde1c5671
[ "AFL-2.1" ]
3
2015-12-16T13:49:33.000Z
2019-06-17T13:38:50.000Z
servers/python/coweb/bayeux/ext/ack.py
xuelingxiao/coweb
7b3a87ee9eda735a859447d404ee16edde1c5671
[ "AFL-2.1" ]
14
2015-04-29T22:36:53.000Z
2021-11-18T03:24:29.000Z
''' Copyright (c) The Dojo Foundation 2011. All Rights Reserved. Copyright (c) IBM Corporation 2008, 2011. All Rights Reserved. ''' # tornado from tornado.escape import json_encode, json_decode # std lib import logging # coweb from .base import BayeuxExtBase log = logging.getLogger('bayeux.server') class BayeuxAckExt...
37.274194
100
0.570749
210fbc438a8e91ab9a966419be9fe2cb4075d8aa
10,798
py
Python
cogs/bot_commands.py
CalmingAgent/Pew-Pew-Test
fed527ca7b83dafd1960c2daf4a0e616e56354ca
[ "MIT" ]
null
null
null
cogs/bot_commands.py
CalmingAgent/Pew-Pew-Test
fed527ca7b83dafd1960c2daf4a0e616e56354ca
[ "MIT" ]
null
null
null
cogs/bot_commands.py
CalmingAgent/Pew-Pew-Test
fed527ca7b83dafd1960c2daf4a0e616e56354ca
[ "MIT" ]
null
null
null
import nextcord from nextcord.ext import commands import sys import random #parent directory import sys.path.append('DatabaseRelated') sys.path.append('cogs') import mongodb from player import Player from buttons import AttackButtons from buttons import WinorLose import editdatabase class Bot(commands.Cog): """N...
44.436214
1,000
0.53158
210fd2ba9a1405c67f469f23aa5c1900b8267c85
9,690
py
Python
MatricesM/matrixops/comparison.py
MathStuff/MatricesM
b299cac1f60e830d4a66f03e9996bc1f8c7268da
[ "MIT" ]
4
2019-05-04T00:54:52.000Z
2019-12-11T05:57:16.000Z
MatricesM/matrixops/comparison.py
MathStuff/MatricesM
b299cac1f60e830d4a66f03e9996bc1f8c7268da
[ "MIT" ]
80
2019-01-23T20:47:42.000Z
2020-02-20T05:53:28.000Z
MatricesM/matrixops/comparison.py
MathStuff/MatricesM
b299cac1f60e830d4a66f03e9996bc1f8c7268da
[ "MIT" ]
2
2019-02-23T12:34:23.000Z
2020-07-29T17:45:03.000Z
def eq(mat,other,obj,m,from_wheres,matrixobj): if not from_wheres: true ,false = mat.DEFAULT_BOOL[True],mat.DEFAULT_BOOL[False] d0,d1 = mat.dim if isinstance(other,(obj,matrixobj)): if other._cMat: raise TypeError("Can't compare complex numbers") if ...
34
91
0.507534
210feabe78f797559692d49bd80f34a8319be484
129
py
Python
synapse/lib/__init__.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
216
2017-01-17T18:52:50.000Z
2022-03-31T18:44:49.000Z
synapse/lib/__init__.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
2,189
2017-01-17T22:31:48.000Z
2022-03-31T20:41:45.000Z
synapse/lib/__init__.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
44
2017-01-17T16:50:57.000Z
2022-03-16T18:35:52.000Z
# This __init__.py should remain empty so importing individual modules from # synapse.lib does not have unexpected side effects.
43
75
0.813953
210fef701a65b0375fb3a616cfb6a7f96705666b
50
py
Python
mfpy/__init__.py
aikinai/mfpy
152066d4845701613e608331d898413a8d8a31b5
[ "MIT" ]
null
null
null
mfpy/__init__.py
aikinai/mfpy
152066d4845701613e608331d898413a8d8a31b5
[ "MIT" ]
null
null
null
mfpy/__init__.py
aikinai/mfpy
152066d4845701613e608331d898413a8d8a31b5
[ "MIT" ]
null
null
null
from mfpy.mf import client __version__ = '0.1.2'
12.5
26
0.72
211009cfce8265f8f6fc182e57e2cfcb6afbc616
1,134
py
Python
swarm_tasks/Examples/full_tasks/contam_removal-1.py
rmvanarse/swarm_tasks
3335297ba8fcdbff756ae519002bcce919d54a84
[ "MIT" ]
6
2021-03-13T12:54:18.000Z
2022-01-29T12:12:28.000Z
swarm_tasks/Examples/full_tasks/contam_removal-1.py
rmvanarse/swarm_tasks
3335297ba8fcdbff756ae519002bcce919d54a84
[ "MIT" ]
null
null
null
swarm_tasks/Examples/full_tasks/contam_removal-1.py
rmvanarse/swarm_tasks
3335297ba8fcdbff756ae519002bcce919d54a84
[ "MIT" ]
2
2021-08-06T15:02:15.000Z
2022-02-08T12:11:30.000Z
print("Running cont_rem example 1\nUsing source files for package imports\nPARAMETERS:\ Using default hardcoded parameters (listed in swarm_tasks/logs)") import sys,os sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__),'../../..'))) print(sys.path) import swarm_tasks #Set demo parameters dire...
22.235294
87
0.779541
21101d7e49679e51d65959244600734958dc84d9
2,976
py
Python
python/IECoreMaya/Menus.py
lucienfostier/cortex
b9916ee4c0392e41934df0e6d4e4b696c0e857ab
[ "BSD-3-Clause" ]
1
2018-09-02T13:05:18.000Z
2018-09-02T13:05:18.000Z
python/IECoreMaya/Menus.py
lucienfostier/cortex
b9916ee4c0392e41934df0e6d4e4b696c0e857ab
[ "BSD-3-Clause" ]
1
2018-11-07T19:40:15.000Z
2018-11-07T19:40:15.000Z
python/IECoreMaya/Menus.py
noizfactory/cortex
c2b5bd154d9d7919a0c498f865c5e40a7687e1ce
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2011, 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: # # * Redistribu...
32
80
0.703293
211043fa34b015bd879d0f404993279d3e76d447
1,232
py
Python
cryptography/atbash_cipher/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
cryptography/atbash_cipher/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
cryptography/atbash_cipher/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
import string GROUP_SIZE = 5 ALPHA = string.ascii_lowercase CIPHER = string.ascii_lowercase[::-1] def decode(str_to_decode): return do_filter_join(str_to_decode) def encode(str_to_encode): return grouper(do_filter_join(str_to_encode)) def do_filter_join(m): """ Filters a string and joins the resu...
21.241379
66
0.63961
2110501201aef53b5767f214120a8acee435ef14
998
py
Python
tests/data/expected/parser/openapi/openapi_parser_parse_anyof/output.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
891
2019-07-23T04:23:32.000Z
2022-03-31T13:36:33.000Z
tests/data/expected/parser/openapi/openapi_parser_parse_anyof/output.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
663
2019-07-23T09:50:26.000Z
2022-03-29T01:56:55.000Z
tests/data/expected/parser/openapi/openapi_parser_parse_anyof/output.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
108
2019-07-23T08:50:37.000Z
2022-03-09T10:50:22.000Z
from __future__ import annotations from datetime import date from typing import Dict, List, Optional, Union from pydantic import BaseModel, constr class Pet(BaseModel): id: int name: str tag: Optional[str] = None class Car(BaseModel): id: int name: str tag: Optional[str] = None class Any...
18.830189
77
0.706413
211054ef95ee62d709475c9b784a2c0d1c7e89e4
4,602
py
Python
openstack_dashboard/test/test_data/utils.py
Juniper/horizon
aa0b50beb4f68289cad4193f699156a77b2a0aa3
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/test/test_data/utils.py
Juniper/horizon
aa0b50beb4f68289cad4193f699156a77b2a0aa3
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/test/test_data/utils.py
Juniper/horizon
aa0b50beb4f68289cad4193f699156a77b2a0aa3
[ "Apache-2.0" ]
4
2015-05-05T08:17:28.000Z
2020-02-05T10:47:06.000Z
# Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
34.343284
78
0.660582
21105c08c470f230b7eb53df41eec00ce4880862
3,030
py
Python
var/spack/repos/builtin/packages/py-h5py/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-09-10T22:50:08.000Z
2021-01-12T22:18:54.000Z
var/spack/repos/builtin/packages/py-h5py/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2021-01-08T22:23:53.000Z
2022-03-30T11:08:17.000Z
var/spack/repos/builtin/packages/py-h5py/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyH5py(PythonPackage): """The h5py package provides both a high- and low-level interface t...
42.083333
96
0.674917
21108d0ce60a8ef1def5aad4a61c8fa242db8c6e
10,381
py
Python
tencentcloud/cpdp/v20190820/errorcodes.py
lleiyyang/tencentcloud-sdk-python
e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b
[ "Apache-2.0" ]
37
2017-10-12T01:50:42.000Z
2022-02-24T02:44:45.000Z
tencentcloud/cpdp/v20190820/errorcodes.py
lleiyyang/tencentcloud-sdk-python
e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b
[ "Apache-2.0" ]
null
null
null
tencentcloud/cpdp/v20190820/errorcodes.py
lleiyyang/tencentcloud-sdk-python
e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b
[ "Apache-2.0" ]
12
2018-07-31T10:04:56.000Z
2022-02-07T00:08:06.000Z
# -*- coding: utf8 -*- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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...
27.609043
119
0.844331
2110a4460741b6844311ffdd440027cea167aca4
304
py
Python
gcn/nmi_cal.py
jindi-tju/MRFasGCN
41b94278b80bbcb256097a5a3dfb6a433d9dbdc7
[ "MIT" ]
2
2021-06-20T03:34:09.000Z
2022-03-24T07:22:56.000Z
gcn/nmi_cal.py
jindi-tju/MRFasGCN
41b94278b80bbcb256097a5a3dfb6a433d9dbdc7
[ "MIT" ]
null
null
null
gcn/nmi_cal.py
jindi-tju/MRFasGCN
41b94278b80bbcb256097a5a3dfb6a433d9dbdc7
[ "MIT" ]
1
2022-03-17T01:26:07.000Z
2022-03-17T01:26:07.000Z
from __future__ import division from __future__ import print_function import time import tensorflow as tf from gcn.utils import * from gcn.models import GCN, MLP y_test = np.loadtxt("y_test_val") outputs = np.loadtxt("outputs_val") test_nmi=NMI(outputs,y_test) print("NMI=","{:.5f}".format(test_nmi))
21.714286
39
0.773026
2110abdb28545cfa10fb95ceb1d6205ddca5b89c
4,194
py
Python
djangodblog/migrations/0002_update_indexes.py
weijia/django-db-log
7d5e593e5001dcb947f317472c4005c4aebf8e9f
[ "BSD-3-Clause" ]
22
2015-02-20T10:44:01.000Z
2021-09-25T14:58:53.000Z
djangodblog/migrations/0002_update_indexes.py
weijia/django-db-log
7d5e593e5001dcb947f317472c4005c4aebf8e9f
[ "BSD-3-Clause" ]
1
2016-04-01T04:17:03.000Z
2016-04-01T04:18:47.000Z
djangodblog/migrations/0002_update_indexes.py
weijia/django-db-log
7d5e593e5001dcb947f317472c4005c4aebf8e9f
[ "BSD-3-Clause" ]
11
2015-04-22T04:55:16.000Z
2022-01-21T19:51:09.000Z
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding index on 'Error', fields ['class_name'] db.create_index('djangodblog_error', ['class_name']) ...
58.25
144
0.580353
2110b77722869cc6e7378c1d1372c8008f682aa2
6,419
py
Python
cli/sawtooth_cli/rest_client.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
1
2017-08-04T10:31:00.000Z
2017-08-04T10:31:00.000Z
cli/sawtooth_cli/rest_client.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
null
null
null
cli/sawtooth_cli/rest_client.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Intel 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 agreed to in wri...
36.471591
80
0.59838
2110c334dafb125affb81e40a43798d9d426a27f
18,901
py
Python
research/object_detection/serving/utils/visualization_utils.py
jianzhnie/models
123ceb62baca18f4befc22b21af3439463b34220
[ "Apache-2.0" ]
2
2021-12-01T12:24:57.000Z
2021-12-08T14:10:46.000Z
research/object_detection/serving/utils/visualization_utils.py
jianzhnie/models
123ceb62baca18f4befc22b21af3439463b34220
[ "Apache-2.0" ]
1
2020-11-17T09:35:24.000Z
2020-11-17T09:35:24.000Z
research/object_detection/serving/utils/visualization_utils.py
jianzhnie/models
123ceb62baca18f4befc22b21af3439463b34220
[ "Apache-2.0" ]
null
null
null
# 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.540659
80
0.641924
2110cb175f598e0ff18af66bf1e3e287be0ce4c9
5,808
py
Python
util/security/registry_jwt.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
1
2020-10-16T19:30:41.000Z
2020-10-16T19:30:41.000Z
util/security/registry_jwt.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
15
2020-06-18T15:32:06.000Z
2022-03-03T23:06:24.000Z
util/security/registry_jwt.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
null
null
null
import logging import time from functools import wraps import jwt from prometheus_client import Counter from util.security import jwtutil logger = logging.getLogger(__name__) bearer_token_decoded = Counter( "bearer_token_decoded_total", "number of times a bearer token has been validated", labelnames...
29.632653
100
0.678891
2110d548dc6e6f5a9ec675f74bdaa56e3a07b136
68,020
py
Python
examples/s2s_forecast/src/utils/experiments_util.py
geflaspohler/poold
4ddd085597b85e8c737b2f904f504437f728513b
[ "MIT" ]
7
2021-08-02T15:31:01.000Z
2022-02-11T14:36:46.000Z
examples/s2s_forecast/src/utils/experiments_util.py
geflaspohler/poold
4ddd085597b85e8c737b2f904f504437f728513b
[ "MIT" ]
null
null
null
examples/s2s_forecast/src/utils/experiments_util.py
geflaspohler/poold
4ddd085597b85e8c737b2f904f504437f728513b
[ "MIT" ]
1
2021-07-15T23:05:02.000Z
2021-07-15T23:05:02.000Z
# Utility functions supporting experiments import os import warnings import numpy as np import pandas as pd import netCDF4 # import xarray as xr import subprocess from datetime import datetime, timedelta import collections import itertools import time import sys from filelock import FileLock from functools import parti...
40.129794
116
0.646854
211114a2eba8d0f79ae82b032d250aee789d6244
5,942
py
Python
dataclass_structor/structure.py
hockeybuggy/dataclass_structor
345dc4ff66e63890cdb3a0f588adcafe7334c0e2
[ "MIT" ]
null
null
null
dataclass_structor/structure.py
hockeybuggy/dataclass_structor
345dc4ff66e63890cdb3a0f588adcafe7334c0e2
[ "MIT" ]
1
2019-04-01T23:10:55.000Z
2019-04-01T23:10:55.000Z
dataclass_structor/structure.py
hockeybuggy/dataclass_structor
345dc4ff66e63890cdb3a0f588adcafe7334c0e2
[ "MIT" ]
null
null
null
import decimal import datetime import enum import uuid from typing import ( get_type_hints, Any, Callable, Dict, List, Iterable, Optional, Set, Tuple, Type, TypeVar, Union, ) T = TypeVar("T") # pylint: disable=invalid-name def structure(value: Any, goal_type: Any) ->...
30.471795
91
0.665433
211133957df76da1fb9c76f04fcec48a26050553
3,844
py
Python
runner.py
unified-moderation-network/salamander
98578aa1974a0d7778569ac9d822f13614d31269
[ "Apache-2.0" ]
10
2020-08-20T21:25:01.000Z
2021-06-30T05:28:24.000Z
runner.py
unified-moderation-network/salamander
98578aa1974a0d7778569ac9d822f13614d31269
[ "Apache-2.0" ]
61
2020-09-28T14:56:23.000Z
2022-02-19T20:04:59.000Z
runner.py
unified-moderation-network/salamander
98578aa1974a0d7778569ac9d822f13614d31269
[ "Apache-2.0" ]
2
2020-10-03T17:07:57.000Z
2020-11-02T02:06:11.000Z
# Copyright 2020-present Michael Hall # # 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...
31.508197
100
0.675598
21115ff11ca8c167197b7f928066f92f1a05a7a2
6,123
py
Python
tests/test_qualities.py
BrainDamage/Flexget
50f75bdad64ce023daaff334df8478319ddb9f64
[ "MIT" ]
null
null
null
tests/test_qualities.py
BrainDamage/Flexget
50f75bdad64ce023daaff334df8478319ddb9f64
[ "MIT" ]
null
null
null
tests/test_qualities.py
BrainDamage/Flexget
50f75bdad64ce023daaff334df8478319ddb9f64
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from tests import FlexGetBase from flexget.utils.qualities import Quality class TestQualityModule(object): def test_get(self): assert not Quality(), 'unknown quality is not false' assert Quality('foobar') == Quality(), 'unknown no...
39.75974
107
0.533725
21117cf2106655ba14d006e04b8aa17485c4d97b
5,308
py
Python
CoType/Evaluation/tune_threshold_w_validation.py
INK-USC/shifted-label-distribution
3cf2b7ced3b2e18234db405f6014f049c4830d71
[ "Apache-2.0" ]
37
2019-10-29T13:12:41.000Z
2022-01-20T02:42:28.000Z
CoType/Evaluation/tune_threshold_w_validation.py
INK-USC/shifted-label-distribution
3cf2b7ced3b2e18234db405f6014f049c4830d71
[ "Apache-2.0" ]
5
2020-07-23T10:32:59.000Z
2021-09-01T11:37:15.000Z
CoType/Evaluation/tune_threshold_w_validation.py
INK-USC/shifted-label-distribution
3cf2b7ced3b2e18234db405f6014f049c4830d71
[ "Apache-2.0" ]
2
2020-05-27T06:00:56.000Z
2021-02-08T10:45:41.000Z
__author__ = 'xiang' import sys, os from collections import defaultdict from emb_prediction import * from evaluation import * import pickle def min_max_nomalization(prediction): min_val = sys.maxint max_val = -sys.maxint prediction_normalized = defaultdict(tuple) for i in prediction: if predi...
38.18705
145
0.640354
2111a621153957ef12365dea3573bac5f7a77a18
4,466
py
Python
appengine/components/components/stats_framework_gviz.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2017-10-30T15:08:10.000Z
2017-10-30T15:08:10.000Z
appengine/components/components/stats_framework_gviz.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/components/components/stats_framework_gviz.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2020-07-05T19:54:40.000Z
2020-07-05T19:54:40.000Z
# Copyright 2014 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. """GViz connector code for stats_framework.py.""" import logging from components import stats_framework from components import utils from gviz i...
33.833333
80
0.705105
2111ec8ca6bf52a1fefde7c61d2050eb6565f04e
1,033
py
Python
py/2165.smallest-value-of-the-rearranged-number.py
ck2w/leetcode
2d411530b690a2e51b0ae518bf3efaad2edc1083
[ "MIT" ]
null
null
null
py/2165.smallest-value-of-the-rearranged-number.py
ck2w/leetcode
2d411530b690a2e51b0ae518bf3efaad2edc1083
[ "MIT" ]
null
null
null
py/2165.smallest-value-of-the-rearranged-number.py
ck2w/leetcode
2d411530b690a2e51b0ae518bf3efaad2edc1083
[ "MIT" ]
null
null
null
# @lc app=leetcode id=2165 lang=python3 # # [2165] Smallest Value of the Rearranged Number # # @lc code=start class Solution: def smallestNumber(self, num: int) -> int: abs_val = abs(num) abs_val_str = str(abs_val) if num == 0: return 0 elif num > 0: ...
30.382353
66
0.515005
2111fa4e9ccc7d73ee171a0dea515f48bfb256da
1,515
py
Python
ambari-server/src/main/resources/stacks/HDP/1.3.2/services/WEBHCAT/package/scripts/webhcat_server.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
5
2018-06-03T05:19:40.000Z
2021-04-16T17:10:49.000Z
ambari-server/src/main/resources/stacks/HDP/2.0.6/services/WEBHCAT/package/scripts/webhcat_server.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
null
null
null
ambari-server/src/main/resources/stacks/HDP/2.0.6/services/WEBHCAT/package/scripts/webhcat_server.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
6
2019-05-07T13:24:39.000Z
2021-02-15T14:12:37.000Z
""" Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this ...
28.055556
72
0.759076
21120c89682ffb4b24193ceaf82d05c8cca18e64
1,682
py
Python
tests/test_register.py
wusspuss/tohil
52c882b65fb51dbcacc7461b9a4ccddf879909f4
[ "BSD-3-Clause" ]
18
2021-03-26T15:31:04.000Z
2022-02-06T21:03:18.000Z
tests/test_register.py
wusspuss/tohil
52c882b65fb51dbcacc7461b9a4ccddf879909f4
[ "BSD-3-Clause" ]
35
2021-04-28T15:23:35.000Z
2022-02-15T01:17:57.000Z
tests/test_register.py
wusspuss/tohil
52c882b65fb51dbcacc7461b9a4ccddf879909f4
[ "BSD-3-Clause" ]
6
2021-04-22T21:43:32.000Z
2022-01-28T02:50:56.000Z
import time import unittest import tohil class TestRegister(unittest.TestCase): def test_simple(self): def callback(arg): return arg tohil.register_callback("pycallback", callback) self.assertEqual(tohil.call("pycallback", 1), tohil.tclobj(1)) def test_var_args(self): ...
31.148148
76
0.605232
21121b69145a4c70b690a047edf457a734a4eb0a
3,883
py
Python
textacy/spacier/components.py
tbsexton/textacy
964614213c7261f91f09c106334269388d45f790
[ "Apache-2.0" ]
null
null
null
textacy/spacier/components.py
tbsexton/textacy
964614213c7261f91f09c106334269388d45f790
[ "Apache-2.0" ]
null
null
null
textacy/spacier/components.py
tbsexton/textacy
964614213c7261f91f09c106334269388d45f790
[ "Apache-2.0" ]
null
null
null
""" Pipeline Components ------------------- Custom components to add to a spaCy language pipeline. """ import logging from spacy.tokens import Doc from .. import text_stats LOGGER = logging.getLogger(__name__) class TextStatsComponent: """ A custom component to be added to a spaCy language pipeline that c...
34.981982
152
0.583569
211220986fd8772d393b478eebd9b5fe32b73d20
3,849
py
Python
cmake-module-dependencies.py
rpavlik/cmake-multitool
de0aa2c9235495d4230d0fb64a685e2959a9116e
[ "BSL-1.0" ]
11
2015-02-27T09:25:41.000Z
2020-01-12T19:50:29.000Z
cmake-module-dependencies.py
rpavlik/cmake-multitool
de0aa2c9235495d4230d0fb64a685e2959a9116e
[ "BSL-1.0" ]
null
null
null
cmake-module-dependencies.py
rpavlik/cmake-multitool
de0aa2c9235495d4230d0fb64a685e2959a9116e
[ "BSL-1.0" ]
3
2016-01-05T10:25:36.000Z
2018-06-22T09:38:03.000Z
#!/usr/bin/env python """ Main application to use the CMakeScript packages to output cleaner code. Original Author: 2010 Ryan Pavlik <rpavlik@iastate.edu> <abiryan@ryand.net> http://academic.cleardefinition.com Iowa State University HCI Graduate Program/VRAC Copyright Iowa State University 2010. Distribute...
28.301471
81
0.67628
211237a7e799d195178d7600049717fbcaf0b18a
53,700
py
Python
custom_components/dwains_dashboard/__init__.py
avidit/home-assistant-config
c4ea82e7ea75f93ebfb1700b39df5ff9787843b7
[ "MIT" ]
285
2019-12-28T15:39:29.000Z
2020-10-16T11:47:28.000Z
custom_components/dwains_dashboard/__init__.py
avidit/homeassistant
c4ea82e7ea75f93ebfb1700b39df5ff9787843b7
[ "MIT" ]
180
2020-02-11T20:01:03.000Z
2020-10-10T16:52:25.000Z
custom_components/dwains_dashboard/__init__.py
avidit/homeassistant
c4ea82e7ea75f93ebfb1700b39df5ff9787843b7
[ "MIT" ]
58
2020-02-02T19:05:20.000Z
2020-10-09T18:41:36.000Z
import logging import yaml import json import os import shutil from .load_plugins import load_plugins from .load_dashboard import load_dashboard from .const import DOMAIN, VERSION from .process_yaml import process_yaml, reload_configuration from .notifications import notifications from datetime import datet...
33.646617
212
0.637616
21125d33474576b6c205f678455fee9b5a537f7c
10,925
py
Python
packages/infra_libs/infra_libs/test/memoize_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
packages/infra_libs/infra_libs/test/memoize_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
packages/infra_libs/infra_libs/test/memoize_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Collection of unit tests for 'infra.libs.memoize' library. """ import unittest from infra_libs import memoize class MemoTestCase...
22.951681
72
0.58865
21126b9af6ba160607105b6932e555639950fb4b
805
py
Python
torch_geometric_signed_directed/nn/directed/__init__.py
SherylHYX/pytorch_geometric_signed_directed
c2dbede0171424cdf7bae7c45c6c1e19a862bcfd
[ "MIT" ]
38
2022-02-09T06:27:14.000Z
2022-03-29T09:44:14.000Z
torch_geometric_signed_directed/nn/directed/__init__.py
SherylHYX/pytorch_geometric_signed_directed
c2dbede0171424cdf7bae7c45c6c1e19a862bcfd
[ "MIT" ]
17
2022-02-09T23:13:35.000Z
2022-02-21T03:14:36.000Z
torch_geometric_signed_directed/nn/directed/__init__.py
SherylHYX/pytorch_geometric_signed_directed
c2dbede0171424cdf7bae7c45c6c1e19a862bcfd
[ "MIT" ]
6
2022-02-09T04:49:17.000Z
2022-03-29T09:44:17.000Z
from .complex_relu import complex_relu_layer from .DGCN_node_classification import DGCN_node_classification from .DGCN_link_prediction import DGCN_link_prediction from .DGCNConv import DGCNConv from .DiGCN_Inception_Block_node_classification import DiGCN_Inception_Block_node_classification from .DiGCN_Inception_Block_l...
50.3125
96
0.906832
21129e90ece12591fe7f4569ea7010cfdb21e793
977
py
Python
examples/graphsrv_example/plugin.py
20c/graphsrv
e4a88a67d3ad5cc8aec0f2c674fb7a9be6860c9d
[ "Apache-2.0" ]
5
2017-12-12T16:04:35.000Z
2021-06-18T19:03:35.000Z
examples/graphsrv_example/plugin.py
20c/graphsrv
e4a88a67d3ad5cc8aec0f2c674fb7a9be6860c9d
[ "Apache-2.0" ]
37
2016-09-08T08:08:00.000Z
2021-08-25T15:06:05.000Z
examples/graphsrv_example/plugin.py
20c/graphsrv
e4a88a67d3ad5cc8aec0f2c674fb7a9be6860c9d
[ "Apache-2.0" ]
1
2016-10-22T14:45:17.000Z
2016-10-22T14:45:17.000Z
import vodka import vodka.plugins import vodka.data import graphsrv.application import random @vodka.plugin.register("test_plot") class TestPlotPlugin(graphsrv.application.GraphSourcePlugin): """ This is a graphsrv source plugin, it allows for quickly pushing plots for a graph """ def work(sel...
24.425
79
0.578301
2112a9d5d3a154b5cc7e1bacceb86b70b49a9498
133,226
py
Python
src/toil/cwl/cwltoil.py
Hexotical/toil
312b6e1f221ee7f7f187dd6dbfce1aecffd00e09
[ "Apache-2.0" ]
348
2018-07-08T03:38:28.000Z
2022-03-11T18:57:44.000Z
src/toil/cwl/cwltoil.py
Hexotical/toil
312b6e1f221ee7f7f187dd6dbfce1aecffd00e09
[ "Apache-2.0" ]
1,700
2018-07-05T18:28:49.000Z
2022-03-31T14:09:04.000Z
src/toil/cwl/cwltoil.py
Hexotical/toil
312b6e1f221ee7f7f187dd6dbfce1aecffd00e09
[ "Apache-2.0" ]
126
2018-07-11T18:59:29.000Z
2022-01-24T03:14:02.000Z
"""Implemented support for Common Workflow Language (CWL) for Toil.""" # Copyright (C) 2015 Curoverse, Inc # Copyright (C) 2015-2021 Regents of the University of California # Copyright (C) 2019-2020 Seven Bridges # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in c...
38.360495
152
0.5936
2112df28b2f216cdd782a255e7cc1ce634210ebd
7,251
py
Python
instructors/need-rework/5_control_statements_and_exceptions_hierarchy/control_statements_excep_hier.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
46
2017-09-27T20:19:36.000Z
2020-12-08T10:07:19.000Z
instructors/need-rework/5_control_statements_and_exceptions_hierarchy/control_statements_excep_hier.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
6
2018-01-09T08:07:37.000Z
2020-09-07T12:25:13.000Z
instructors/need-rework/5_control_statements_and_exceptions_hierarchy/control_statements_excep_hier.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
18
2017-10-10T02:06:51.000Z
2019-12-01T10:18:13.000Z
number = 23 guess = int(raw_input('Enter an integer : ')) if guess == number: # New block starts here print 'Congratulations, you guessed it.' print '(but you do not win any prizes!)' # New block ends here elif guess < number: # Another block print 'No, it is a little higher than that' # Yo...
25.896429
116
0.702248
2112e3141aef3b4ded8c345885f511adbb2f6795
4,434
py
Python
tools/python/dhis2api/genson/schema/builder.py
dhis2/dhis2-api-specification
bdef355508ec150be4bf0b4346b8b0d6a8e665b5
[ "BSD-3-Clause" ]
5
2019-08-30T09:56:27.000Z
2021-02-22T11:08:34.000Z
tools/python/dhis2api/genson/schema/builder.py
dhis2/dhis2-api-specification
bdef355508ec150be4bf0b4346b8b0d6a8e665b5
[ "BSD-3-Clause" ]
null
null
null
tools/python/dhis2api/genson/schema/builder.py
dhis2/dhis2-api-specification
bdef355508ec150be4bf0b4346b8b0d6a8e665b5
[ "BSD-3-Clause" ]
6
2018-10-12T07:50:11.000Z
2020-10-18T05:39:49.000Z
import json from warnings import warn from .node import SchemaNode class SchemaBuilder(object): """ ``SchemaBuilder`` is the basic schema generator class. ``SchemaBuilder`` instances can be loaded up with existing schemas and objects before being serialized. """ DEFAULT_URI = 'http://json-sche...
31.006993
74
0.588633
2112f593f0276270e087c95e961e1372d710bf5a
7,733
py
Python
test/conf.py
Tim-HU/sphinx-report
3a0dc225e594c4b2083dff7a93b6d77054256416
[ "BSD-2-Clause" ]
1
2020-04-10T12:48:40.000Z
2020-04-10T12:48:40.000Z
test/conf.py
Tim-HU/sphinx-report
3a0dc225e594c4b2083dff7a93b6d77054256416
[ "BSD-2-Clause" ]
null
null
null
test/conf.py
Tim-HU/sphinx-report
3a0dc225e594c4b2083dff7a93b6d77054256416
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Test documentation build configuration file, created by # sphinx-quickstart on Mon Mar 23 15:27:57 2009. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All co...
33.047009
81
0.699599
2113316c6b15dd020750d73bd27b634003b243d0
605
py
Python
examples/interactive/interactive_1d/1d_interactive.py
genematx/nmrglue
8a24cf6cbd18451e552fc0673b84c42d1dcb69a2
[ "BSD-3-Clause" ]
150
2015-01-16T12:24:13.000Z
2022-03-03T18:01:18.000Z
examples/interactive/interactive_1d/1d_interactive.py
genematx/nmrglue
8a24cf6cbd18451e552fc0673b84c42d1dcb69a2
[ "BSD-3-Clause" ]
129
2015-01-13T04:58:56.000Z
2022-03-02T13:39:16.000Z
examples/interactive/interactive_1d/1d_interactive.py
genematx/nmrglue
8a24cf6cbd18451e552fc0673b84c42d1dcb69a2
[ "BSD-3-Clause" ]
88
2015-02-16T20:04:12.000Z
2022-03-10T06:50:30.000Z
#! /usr/bin/env python # Create a 1D interactive plot from NMRPipe data import nmrglue as ng import matplotlib.pyplot as plt # read in the data from a NMRPipe file dic, data = ng.pipe.read("nmrpipe_1d/test.ft") # create a unit conversion object uc = ng.pipe.make_uc(dic, data) # plot the spectrum fig = plt.figure() ...
22.407407
60
0.735537
2113da8d00c854d4cfcc9176f647f8a21acfb313
1,839
py
Python
path.py
RaenonX/Ftp2Http
525edd02d195b74d509748508704fb4b0107f6d4
[ "MIT" ]
null
null
null
path.py
RaenonX/Ftp2Http
525edd02d195b74d509748508704fb4b0107f6d4
[ "MIT" ]
5
2020-09-12T16:25:42.000Z
2020-09-13T10:11:23.000Z
path.py
RaenonX/Ftp2Http
525edd02d195b74d509748508704fb4b0107f6d4
[ "MIT" ]
null
null
null
"""Path info object.""" from typing import Generator, Tuple __all__ = ("PathInfo",) class PathInfo: """ Object for the convenience on processing path-related operations. Returned path will always start from a slash (``/``), and end with a slash (``/``). """ ROOT = "Y:" def __init__(self, pa...
28.734375
109
0.575856
2113fae3940f14c8ca07e5f76986408ae8a33831
6,682
py
Python
tensorflow/contrib/learn/python/learn/estimators/estimators_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tensorflow/contrib/learn/python/learn/estimators/estimators_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tensorflow/contrib/learn/python/learn/estimators/estimators_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# Copyright 2016 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...
34.802083
87
0.695151
211424e868d8883f801a16dca37b94742ca2b87f
1,330
py
Python
data/tracking/methods/sequential/pipeline/common.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
143
2021-12-03T02:33:36.000Z
2022-03-29T00:01:48.000Z
data/tracking/methods/sequential/pipeline/common.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
33
2021-12-03T10:32:05.000Z
2022-03-31T02:13:55.000Z
data/tracking/methods/sequential/pipeline/common.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
24
2021-12-04T06:46:42.000Z
2022-03-30T07:57:47.000Z
import torch from timm.data.constants import IMAGENET_DEFAULT_MEAN, IMAGENET_DEFAULT_STD from torchvision import transforms def get_transform(): return transforms.Normalize(mean=torch.tensor(IMAGENET_DEFAULT_MEAN), std=torch.tensor(IMAGENET_DEFAULT_STD)) class IterableDatasetWorkerDataFilter: def __init__(s...
33.25
113
0.660902
211439202792f9f3367480fc0fbaf452afd57f1b
836
py
Python
src/MonotoneStack.py
ArkiWang/LeetcodePy
6b4af8da843910823f7f53989bbda4ec8e6dad15
[ "MIT" ]
null
null
null
src/MonotoneStack.py
ArkiWang/LeetcodePy
6b4af8da843910823f7f53989bbda4ec8e6dad15
[ "MIT" ]
null
null
null
src/MonotoneStack.py
ArkiWang/LeetcodePy
6b4af8da843910823f7f53989bbda4ec8e6dad15
[ "MIT" ]
null
null
null
#monotonous increase stack class MonotonStack(object): def __init__(self): self.stack = [int] self.pointer = -1 def push(self, e: int) -> []: pop = [] while self.stack[self.pointer] < e: pop.append(self.stack.pop(self.pointer)) self.pointer -= 1 s...
24.588235
61
0.532297
21144d25dcebf78cd82d88f57b0a07cc27689248
2,838
py
Python
decoding/regressor.py
fyshelab/NeuralPhraseComposition
b4a6b6f32af5de1c14a4a23dc485c0a0a57e0c10
[ "MIT" ]
1
2021-03-13T07:49:19.000Z
2021-03-13T07:49:19.000Z
decoding/regressor.py
fyshelab/NeuralPhraseComposition
b4a6b6f32af5de1c14a4a23dc485c0a0a57e0c10
[ "MIT" ]
null
null
null
decoding/regressor.py
fyshelab/NeuralPhraseComposition
b4a6b6f32af5de1c14a4a23dc485c0a0a57e0c10
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Vector Regression Model """ import numpy as np from sklearn.base import BaseEstimator from sklearn.linear_model import RidgeCV from scipy.stats import zscore from numpy.matlib import repmat class VectorRegressor(BaseEstimator): def __init__(self, fZscore, folds, alpha=[0.0000001, 0.00...
31.533333
103
0.540521
2114500230199b2d6d99ee9eb64332ffedeec012
2,009
py
Python
search/binary/binary_search.py
alfiejsmith/algorithms
c1d816aba932a1ae0664ff2a5b7784e2a01e1de2
[ "MIT" ]
null
null
null
search/binary/binary_search.py
alfiejsmith/algorithms
c1d816aba932a1ae0664ff2a5b7784e2a01e1de2
[ "MIT" ]
null
null
null
search/binary/binary_search.py
alfiejsmith/algorithms
c1d816aba932a1ae0664ff2a5b7784e2a01e1de2
[ "MIT" ]
null
null
null
""" Will search a list of integers for a value using a binary search algorithm. Requires a sorted list to be passed in. Works recursively Returns -1 if item is not found Binary Search: Best - O(1) Worst - O(log n) Average - O(log n) Space Complexity - O(1) """ def search_recursive(data: list, value: int, lower: int...
28.7
102
0.614236
211456ceefa31780e2ae8979064b49a2f608520f
3,653
py
Python
docusign_rooms/models/global_financing_types.py
docusign/docusign-rooms-python-client
eb8cfd0e487a87bc43d54bfa9de784eb170a40d3
[ "MIT" ]
2
2020-11-11T01:38:45.000Z
2021-11-14T17:00:43.000Z
docusign_rooms/models/global_financing_types.py
docusign/docusign-rooms-python-client
eb8cfd0e487a87bc43d54bfa9de784eb170a40d3
[ "MIT" ]
null
null
null
docusign_rooms/models/global_financing_types.py
docusign/docusign-rooms-python-client
eb8cfd0e487a87bc43d54bfa9de784eb170a40d3
[ "MIT" ]
1
2021-11-14T17:00:32.000Z
2021-11-14T17:00:32.000Z
# coding: utf-8 """ DocuSign Rooms API - v2 An API for an integrator to access the features of DocuSign Rooms # noqa: E501 OpenAPI spec version: v2 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import...
29.699187
95
0.595949
211458917d9b8aa8e86b0b1183314f5939e50ec1
3,140
py
Python
teafacto/blocks/lang/sentenc.py
lukovnikov/teafacto
5e863df8d061106ad705c0837f2d2ca4e08db0e4
[ "MIT" ]
2
2016-06-28T23:41:42.000Z
2017-01-14T12:41:36.000Z
teafacto/blocks/lang/sentenc.py
lukovnikov/teafacto
5e863df8d061106ad705c0837f2d2ca4e08db0e4
[ "MIT" ]
1
2016-04-20T20:09:20.000Z
2016-08-17T19:02:47.000Z
teafacto/blocks/lang/sentenc.py
lukovnikov/teafacto
5e863df8d061106ad705c0837f2d2ca4e08db0e4
[ "MIT" ]
5
2016-07-18T17:05:18.000Z
2018-10-13T05:40:05.000Z
from teafacto.blocks.seq.enc import SimpleSeqStar2Vec, SeqEncoder, MaskMode, EncLastDim from teafacto.blocks.seq.rnn import MakeRNU from teafacto.blocks.basic import VectorEmbed from teafacto.core.base import Block, tensorops as T from teafacto.util import issequence # sentence encoders class CharWordSentEnc(SimpleSe...
40.779221
131
0.632484
2114597090d3d2ef5cf024acda86d7b8ae41be9c
1,206
py
Python
models/learning_env_class.py
govle-192-21-2/govle
f8c6200c915306968f4d2e8c92c3d03a1eced28a
[ "MIT" ]
null
null
null
models/learning_env_class.py
govle-192-21-2/govle
f8c6200c915306968f4d2e8c92c3d03a1eced28a
[ "MIT" ]
null
null
null
models/learning_env_class.py
govle-192-21-2/govle
f8c6200c915306968f4d2e8c92c3d03a1eced28a
[ "MIT" ]
null
null
null
from abc import ABC from dataclasses import dataclass from json import JSONEncoder @dataclass class LearningEnvClass(ABC): """ Abstract dataclass for a learning environment class object. """ # Class ID class_id: int # Class name name: str # Class description description: str ...
21.157895
63
0.604478
21148c769d455f478911576859915627189084f5
807
py
Python
tests/stress/get_tracks.py
Bachhofer/spottydata
e9334c2a32bb65018b57d83fc4522ae241427db7
[ "MIT" ]
null
null
null
tests/stress/get_tracks.py
Bachhofer/spottydata
e9334c2a32bb65018b57d83fc4522ae241427db7
[ "MIT" ]
null
null
null
tests/stress/get_tracks.py
Bachhofer/spottydata
e9334c2a32bb65018b57d83fc4522ae241427db7
[ "MIT" ]
null
null
null
from locust import HttpLocust, TaskSet, task, between import sys sys.path.append("..") sys.path.append("../..") from lib.authorize import * from lib.playlists import * from utils.authentication import * ACCESS_TOKEN = get_access_token() PLAYLIST_ID, PLAYLIST_NAME = get_playlist() print(PLAYLIST_ID,'|',PLAYLIST_NAME...
25.21875
107
0.702602
211499e3069210b10eb2da92940b355e74e0b39e
898
py
Python
sdk/keyvault/azure-security-keyvault/tests/async_preparer.py
OlhaTkachenko/azure-sdk-for-python
0e43638457cc0c44d4a5e4a287fb4e53674b3231
[ "MIT" ]
null
null
null
sdk/keyvault/azure-security-keyvault/tests/async_preparer.py
OlhaTkachenko/azure-sdk-for-python
0e43638457cc0c44d4a5e4a287fb4e53674b3231
[ "MIT" ]
null
null
null
sdk/keyvault/azure-security-keyvault/tests/async_preparer.py
OlhaTkachenko/azure-sdk-for-python
0e43638457cc0c44d4a5e4a287fb4e53674b3231
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE.txt in the project root for # license information. # ------------------------------------------------------------------------- import asyn...
39.043478
98
0.641425
2114b52109cff76440171f7b32f1798b2661d831
1,134
py
Python
tests/network/account/test_pub_account.py
acolytec3/brownie
e00e1f26f5b05e963fe50ffe198634c9e8876589
[ "MIT" ]
null
null
null
tests/network/account/test_pub_account.py
acolytec3/brownie
e00e1f26f5b05e963fe50ffe198634c9e8876589
[ "MIT" ]
null
null
null
tests/network/account/test_pub_account.py
acolytec3/brownie
e00e1f26f5b05e963fe50ffe198634c9e8876589
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import pytest from brownie import Wei from brownie.network.account import PublicKeyAccount def test_init(accounts): PublicKeyAccount("0x14b0Ed2a7C4cC60DD8F676AE44D0831d3c9b2a9E") PublicKeyAccount(accounts[0]) with pytest.raises(ValueError): PublicKeyAccount( "0x416...
29.076923
80
0.740741
2114bfaa0ee86440d81fb93251399a49b8ff3cc6
35,225
py
Python
tests/test_parsing.py
scartill/cmd2
1b4e1e25f84bcc800a5f369783c3c3448a42361e
[ "MIT" ]
1
2021-07-06T23:59:46.000Z
2021-07-06T23:59:46.000Z
tests/test_parsing.py
scartill/cmd2
1b4e1e25f84bcc800a5f369783c3c3448a42361e
[ "MIT" ]
null
null
null
tests/test_parsing.py
scartill/cmd2
1b4e1e25f84bcc800a5f369783c3c3448a42361e
[ "MIT" ]
null
null
null
# coding=utf-8 # flake8: noqa E302 """ Test the parsing logic in parsing.py """ import attr import pytest import cmd2 from cmd2 import constants, utils from cmd2.parsing import StatementParser, shlex_split @pytest.fixture def parser(): parser = StatementParser( terminators=[';', '&'], multiline_co...
36.202467
116
0.659759
2114f89c9a1d2d933c656177a057097f9f885a01
3,930
py
Python
Examples/Event Analysis/Sharp Fall In Stock Price Event/Sharp_fall_in_stock_price_event_study_code.py
grahesh/Stock-Market-Event-Analysis
57dc06e087c29b9c134df8886c97377b3d99f05b
[ "BSD-3-Clause" ]
1
2015-12-04T14:40:33.000Z
2015-12-04T14:40:33.000Z
Examples/Event Analysis/Sharp Fall In Stock Price Event/Sharp_fall_in_stock_price_event_study_code.py
grahesh/Stock-Market-Event-Analysis
57dc06e087c29b9c134df8886c97377b3d99f05b
[ "BSD-3-Clause" ]
null
null
null
Examples/Event Analysis/Sharp Fall In Stock Price Event/Sharp_fall_in_stock_price_event_study_code.py
grahesh/Stock-Market-Event-Analysis
57dc06e087c29b9c134df8886c97377b3d99f05b
[ "BSD-3-Clause" ]
null
null
null
''' (c) 2011, 2012 Georgia Tech Research Corporation This source code is released under the New BSD license. Please see http://wiki.quantsoftware.org/index.php?title=QSTK_License for license details. Created on Dec, 25, 2012 @author: Grahesh @summary: Price Dropping Event Study ''' import pandas from qstkutil imp...
35.089286
206
0.687532
2114f945c78ae0ea47aaa11ddbad2668c2dd732f
512
py
Python
src/homework/homework1.py
acc-cosc-1336/cosc-1336-spring-2018-vcruz350
0cee9fde3d4129c51626c4e0c870972aebec9b95
[ "MIT" ]
null
null
null
src/homework/homework1.py
acc-cosc-1336/cosc-1336-spring-2018-vcruz350
0cee9fde3d4129c51626c4e0c870972aebec9b95
[ "MIT" ]
1
2018-03-08T19:46:08.000Z
2018-03-08T20:00:47.000Z
src/homework/homework1.py
acc-cosc-1336/cosc-1336-spring-2018-vcruz350
0cee9fde3d4129c51626c4e0c870972aebec9b95
[ "MIT" ]
null
null
null
#determine number of hours def get_hours_since_midnight(seconds): total_hours = seconds // 3600 return total_hours #determine number of minutes def get_minutes(seconds): remaining_seconds = seconds % 3600 total_minutes = remaining_seconds // 60 return total_minutes #determine number of seconds de...
26.947368
59
0.757813
21150904b70f9c5efb8e8e40de09355318bb2e1f
3,891
py
Python
tests/api/test_user.py
alpinedatalabs/python-alpine-api
2f74e4eeb7cb6d2b4f2d73db90e8c4afc552d1e7
[ "MIT" ]
null
null
null
tests/api/test_user.py
alpinedatalabs/python-alpine-api
2f74e4eeb7cb6d2b4f2d73db90e8c4afc552d1e7
[ "MIT" ]
8
2017-03-07T01:23:22.000Z
2019-10-24T22:45:46.000Z
tests/api/test_user.py
alpinedatalabs/python-alpine-api
2f74e4eeb7cb6d2b4f2d73db90e8c4afc552d1e7
[ "MIT" ]
3
2017-03-13T11:15:19.000Z
2019-03-24T21:47:05.000Z
from alpine import APIClient from alpine.exception import * from alpine.user import * from alpine import * from .alpineunittest import AlpineTestCase class TestUser(AlpineTestCase): def setUp(self): super(TestUser, self).setUp() # Creating Alpine Client in setUp Function for tests global...
42.293478
124
0.645335
2115171aceeb9503f96b0d887c46644ccabf16ed
49,056
py
Python
round01/testSuggestion_01_6act.py
phunc20/rlcomp2020
c37f8f05cc86d55fca2648bf5491d6a2218c2cad
[ "MIT" ]
null
null
null
round01/testSuggestion_01_6act.py
phunc20/rlcomp2020
c37f8f05cc86d55fca2648bf5491d6a2218c2cad
[ "MIT" ]
1
2022-02-10T02:27:10.000Z
2022-02-10T02:27:10.000Z
round01/testSuggestion_01_6act.py
phunc20/rlcomp2020
c37f8f05cc86d55fca2648bf5491d6a2218c2cad
[ "MIT" ]
null
null
null
""" When agent suggests a mv that will zero out its energy, testSuggestion_01_6act.py, i.e. the current script, will choose the 2nd to largest Q-value action. This might not be a good choice, because we could have instead taken a rest and insisted on the same action at the next step (or asked for agent's suggestion aga...
39.915378
230
0.558443
21151d423de3afe46c27b67d8f5d4d5becfe2415
1,744
py
Python
examples/AdAccountGeneratePreviewsEdgeMaiaWithObjectStorySpec.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
examples/AdAccountGeneratePreviewsEdgeMaiaWithObjectStorySpec.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
examples/AdAccountGeneratePreviewsEdgeMaiaWithObjectStorySpec.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
1
2018-09-24T14:04:48.000Z
2018-09-24T14:04:48.000Z
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
43.6
234
0.764908
21152cfd3e1683184433586327caad148aeed41f
1,927
py
Python
tests/fixtures/messages.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
13
2021-01-21T12:43:10.000Z
2022-03-23T11:11:59.000Z
tests/fixtures/messages.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
259
2020-02-26T08:51:03.000Z
2022-03-23T11:08:36.000Z
tests/fixtures/messages.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
5
2019-12-02T16:19:22.000Z
2021-11-22T20:33:34.000Z
import pytest from botx import ( ChatCreatedEvent, InternalBotNotificationEvent, InternalBotNotificationPayload, Message, MessageBuilder, UserKinds, ) from botx.models.events import UserInChatCreated @pytest.fixture() def incoming_message(host, bot_id): builder = MessageBuilder() buil...
26.39726
76
0.655423
211539b07594b20e623af53493ac5a61b865a810
29,150
py
Python
cle/backends/macho/macho.py
mattrepl/cle
08f5f24d61470da8a99ee0c40f2185397a958313
[ "BSD-2-Clause" ]
1
2021-05-11T17:27:28.000Z
2021-05-11T17:27:28.000Z
cle/backends/macho/macho.py
fiberx/cle-fiber
08f5f24d61470da8a99ee0c40f2185397a958313
[ "BSD-2-Clause" ]
null
null
null
cle/backends/macho/macho.py
fiberx/cle-fiber
08f5f24d61470da8a99ee0c40f2185397a958313
[ "BSD-2-Clause" ]
null
null
null
# -*-coding:utf8 -*- # This file is part of Mach-O Loader for CLE. # Contributed December 2016 by Fraunhofer SIT (https://www.sit.fraunhofer.de/en/). from os import SEEK_CUR, SEEK_SET import struct import sys import cStringIO import archinfo from .section import MachOSection from .symbol import MachOSymbol from .segm...
40.88359
135
0.581063
211575be8e0115ca2b5324ff05c327dadc2361df
9,522
py
Python
run_time/src/gae_server/third_party/old-fonttools-master/Lib/fontTools/ttx.py
moyogo/tachyfont
05c8b3e7357e7a13af37ef81b719a0ff749105a5
[ "Apache-2.0" ]
null
null
null
run_time/src/gae_server/third_party/old-fonttools-master/Lib/fontTools/ttx.py
moyogo/tachyfont
05c8b3e7357e7a13af37ef81b719a0ff749105a5
[ "Apache-2.0" ]
null
null
null
run_time/src/gae_server/third_party/old-fonttools-master/Lib/fontTools/ttx.py
moyogo/tachyfont
05c8b3e7357e7a13af37ef81b719a0ff749105a5
[ "Apache-2.0" ]
null
null
null
"""\ usage: ttx [options] inputfile1 [... inputfileN] TTX %s -- From OpenType To XML And Back If an input file is a TrueType or OpenType font file, it will be dumped to an TTX file (an XML-based text format). If an input file is a TTX file, it will be compiled to a TrueType or OpenType font ...
28.767372
79
0.670342
211596231c2cf5732535e1cc96d88359efe129f3
87,735
py
Python
0900-hp/hplip-3.21.12/ui5/scandialog.py
rgfaber/dev-toolkit
b7e6b1e35a4bfb8ca9ba75e5556917cc49b88f7f
[ "Apache-2.0" ]
null
null
null
0900-hp/hplip-3.21.12/ui5/scandialog.py
rgfaber/dev-toolkit
b7e6b1e35a4bfb8ca9ba75e5556917cc49b88f7f
[ "Apache-2.0" ]
null
null
null
0900-hp/hplip-3.21.12/ui5/scandialog.py
rgfaber/dev-toolkit
b7e6b1e35a4bfb8ca9ba75e5556917cc49b88f7f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'Hp-Scan.ui' # # Created by: PyQt5 UI code generator 4.11.4 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets from base import utils,imageprocessing #from scan import sa...
50.567723
585
0.637283
21159f7ea23ede0f3fe837d4f0fc59d9eaf82756
3,573
py
Python
pyplan_engine/classes/wizards/sourcecsv.py
jorgedouglas71/pyplan-ide
5ad0e4a2592b5f2716ff680018f717c65de140f5
[ "MIT" ]
17
2019-12-04T19:22:19.000Z
2021-07-28T11:17:05.000Z
pyplan_engine/classes/wizards/sourcecsv.py
jorgedouglas71/pyplan-ide
5ad0e4a2592b5f2716ff680018f717c65de140f5
[ "MIT" ]
9
2019-12-13T15:34:43.000Z
2022-02-10T11:43:00.000Z
pyplan_engine/classes/wizards/sourcecsv.py
jorgedouglas71/pyplan-ide
5ad0e4a2592b5f2716ff680018f717c65de140f5
[ "MIT" ]
5
2019-12-04T15:57:06.000Z
2021-08-20T19:59:26.000Z
from pyplan_engine.classes.wizards.BaseWizard import BaseWizard import pandas as pd import jsonpickle class Wizard(BaseWizard): def __init__(self): self.code = "sourcecsv" def getColumns(self, model, params): res = [] current_path = model.getNode("current_path").result params...
35.029412
84
0.534845
2115c4b6eee70f1e03a135e10c46ac78b3321f74
2,523
py
Python
src/morphforgecontrib/data_library/contrib_channel_examples/chls_neuroml_via_neurounits.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
1
2021-01-21T11:31:59.000Z
2021-01-21T11:31:59.000Z
src/morphforgecontrib/data_library/contrib_channel_examples/chls_neuroml_via_neurounits.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
src/morphforgecontrib/data_library/contrib_channel_examples/chls_neuroml_via_neurounits.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Copyright (c) 2012 Michael Hull. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are...
48.519231
144
0.741974
2115dd28aab90037c73b333f644cd8be71a5ed4b
1,491
py
Python
src/color.py
AdrienBlassiau/wingspan-stats
07786d497bfb579790463ea926e2cf1a3bbf6745
[ "MIT" ]
null
null
null
src/color.py
AdrienBlassiau/wingspan-stats
07786d497bfb579790463ea926e2cf1a3bbf6745
[ "MIT" ]
null
null
null
src/color.py
AdrienBlassiau/wingspan-stats
07786d497bfb579790463ea926e2cf1a3bbf6745
[ "MIT" ]
null
null
null
class Color: """ This class manages the colors of each source of points. """ def __init__(self, birds, bonus_cards, end_of_round_goals, eggs, food_on_cards, tucked_cards, nectars): self.birds = birds self.bonus_cards = bonus_cards self.end_of_round_goals = end_of_round_goals ...
37.275
107
0.637827
2116169dfa047e8ca3b7dc9df1887c96aa636904
985
py
Python
vyperlogix/sets/__init__.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
1
2020-09-29T01:36:33.000Z
2020-09-29T01:36:33.000Z
vyperlogix/sets/__init__.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
vyperlogix/sets/__init__.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
__copyright__ = """\ (c). Copyright 2008-2020, Vyper Logix Corp., All Rights Reserved. Published under Creative Commons License (http://creativecommons.org/licenses/by-nc/3.0/) restricted to non-commercial educational use only., http://www.VyperLogix.com for details THE AUTHOR VYPER LOGIX CORP DISCLAIMS ALL WARRA...
35.178571
70
0.762437
21165043009c99c7b6207abc8c7da3692d0d55b3
813
py
Python
app/api/rest/routing.py
antomor/flask-vue
35798de49c5d4d06d25f5555c4b102d1e1e3bb35
[ "MIT" ]
7
2018-03-26T07:15:25.000Z
2021-04-12T05:51:58.000Z
app/api/rest/routing.py
antomor/flask-vue
35798de49c5d4d06d25f5555c4b102d1e1e3bb35
[ "MIT" ]
null
null
null
app/api/rest/routing.py
antomor/flask-vue
35798de49c5d4d06d25f5555c4b102d1e1e3bb35
[ "MIT" ]
1
2020-07-10T15:58:12.000Z
2020-07-10T15:58:12.000Z
""" REST API Resource Routing http://flask-restful.readthedocs.io/en/latest/ """ from flask import request, jsonify, abort from app.api.rest.base import BaseResource, rest_resource from app.api.models.risk_types import RiskType @rest_resource class RiskTypesApi(BaseResource): """ /api/risk-types/ """ endpoin...
26.225806
80
0.653137
211656da7a9f4a56d81296ec951717834356144a
1,729
py
Python
alphatwirl_interface/weighters.py
benkrikler/alphatwirl-interface
ce9b3775b099fbcc55402be2df0e4f2e477d8e6d
[ "BSD-3-Clause" ]
null
null
null
alphatwirl_interface/weighters.py
benkrikler/alphatwirl-interface
ce9b3775b099fbcc55402be2df0e4f2e477d8e6d
[ "BSD-3-Clause" ]
4
2018-03-05T13:48:26.000Z
2018-03-19T12:28:56.000Z
alphatwirl_interface/weighters.py
benkrikler/alphatwirl-interface
ce9b3775b099fbcc55402be2df0e4f2e477d8e6d
[ "BSD-3-Clause" ]
1
2018-02-15T17:10:23.000Z
2018-02-15T17:10:23.000Z
import operator from functools import reduce class WeightCalculatorProduct(object): """ return the product of multiple weights """ def __init__(self, weight_list): self.weight_list = weight_list def __repr__(self): name_value_pairs = ( ('weight_list', self.weight_list...
25.057971
79
0.56044
211662b759a58728f142aaffea1a194ce03dc66f
52,396
py
Python
lingvo/core/layers_with_attention.py
tom-doerr/lingvo
2441edc7fee78903502ebd528ab4dc309db0001d
[ "Apache-2.0" ]
4
2019-06-08T00:19:06.000Z
2020-08-03T16:28:53.000Z
lingvo/core/layers_with_attention.py
tom-doerr/lingvo
2441edc7fee78903502ebd528ab4dc309db0001d
[ "Apache-2.0" ]
null
null
null
lingvo/core/layers_with_attention.py
tom-doerr/lingvo
2441edc7fee78903502ebd528ab4dc309db0001d
[ "Apache-2.0" ]
5
2018-12-11T08:05:16.000Z
2020-05-30T03:40:13.000Z
# Copyright 2018 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...
38.469897
80
0.673544
2116881913ddad5251e67cae5a393e6998d55978
315
py
Python
tests/wizard/test_sessionstorage.py
hpe95/django-formtools-addons
057062293a0d49aa8010e23b4f7fc6c0fee0f7b8
[ "BSD-3-Clause" ]
4
2019-09-23T17:26:54.000Z
2020-09-30T08:31:22.000Z
tests/wizard/test_sessionstorage.py
dcramer/django-formtools
33cc1444de2860338e8c4d4da7320b3e9c949e84
[ "BSD-3-Clause" ]
1
2019-02-19T10:06:07.000Z
2019-02-19T10:06:07.000Z
tests/wizard/test_sessionstorage.py
foundertherapy/django-formtools-addons
00bee01870dd44ce272312fba577171ba157a5a0
[ "BSD-3-Clause" ]
5
2018-09-20T04:17:48.000Z
2021-01-08T13:52:25.000Z
from django.test import TestCase from django.contrib.auth.tests.utils import skipIfCustomUser from formtools.wizard.storage.session import SessionStorage from .storage import TestStorage @skipIfCustomUser class TestSessionStorage(TestStorage, TestCase): def get_storage(self): return SessionStorage
24.230769
60
0.819048
211694f66c605a1aee62b164d32aaea46ee7dc13
1,731
py
Python
Basics/E01_Basics/E00_HelloWorld.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
null
null
null
Basics/E01_Basics/E00_HelloWorld.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
null
null
null
Basics/E01_Basics/E00_HelloWorld.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # ----------------------------------------------------------------------------- # # P A G E B O T E X A M P L E S # # www.pagebot.io # Licensed under MIT conditions # # ----------------------------------------------------------------------------- # # E00_H...
27.046875
79
0.60312
2116aece34c27c55e8e1dafd1ec4664b7d632b05
2,194
py
Python
deeplearn/io.py
notallheroeswearcapes/ML_Ex3
420b815d6e86558e8272b51fcac8153ace06f534
[ "MIT" ]
null
null
null
deeplearn/io.py
notallheroeswearcapes/ML_Ex3
420b815d6e86558e8272b51fcac8153ace06f534
[ "MIT" ]
null
null
null
deeplearn/io.py
notallheroeswearcapes/ML_Ex3
420b815d6e86558e8272b51fcac8153ace06f534
[ "MIT" ]
null
null
null
import numpy as np import json from pathlib import Path from tensorflow import keras def export_data(data, prefix, train_data=None, train_labels=None, test_data=None, test_labels=None): if train_data is not None: np.save('data/{}_{}_train_data'.format(data, prefix), train_data) if train_labels is not ...
37.186441
121
0.677302
2116af38d1cdd73b26a715608df7c859ec87c611
4,010
py
Python
src/tfgarden/applications/vgg13.py
Shakshi3104/TensorFlow_CNN_Collections_for_HASC
5678ad6c6922880230ae0c1e7ec39f32e8012279
[ "MIT" ]
2
2021-12-09T13:03:20.000Z
2022-03-19T11:14:31.000Z
src/tfgarden/applications/vgg13.py
Shakshi3104/TensorFlow_CNN_Collections_for_HASC
5678ad6c6922880230ae0c1e7ec39f32e8012279
[ "MIT" ]
6
2021-06-05T08:42:28.000Z
2022-03-22T05:51:24.000Z
src/tfgarden/applications/vgg13.py
Shakshi3104/tfgarden
5678ad6c6922880230ae0c1e7ec39f32e8012279
[ "MIT" ]
null
null
null
import os from tensorflow.keras.layers import Input, Flatten, Dense, GlobalAveragePooling1D, GlobalMaxPooling1D from tensorflow.keras.models import Model from.vgg import ConvBlock def VGG13(include_top=True, weights='hasc', input_shape=None, pooling=None, classes=6, classifier_activation='softmax'): """ app...
44.555556
233
0.625187
2116d6be491a8bc80b37345a1de4e34d76726710
134
py
Python
project/server/main/modules/api/routes/auth/__init__.py
ardikabs/flask-server-template
e1dfb33323cc89f6163d604007263b73ec5b6e12
[ "MIT" ]
1
2019-01-15T10:33:04.000Z
2019-01-15T10:33:04.000Z
project/server/main/modules/api/routes/auth/__init__.py
ardikabs/flask-server-template
e1dfb33323cc89f6163d604007263b73ec5b6e12
[ "MIT" ]
null
null
null
project/server/main/modules/api/routes/auth/__init__.py
ardikabs/flask-server-template
e1dfb33323cc89f6163d604007263b73ec5b6e12
[ "MIT" ]
null
null
null
from flask_restplus import Namespace api = Namespace("auth", description="Authentication Related Operation") from . import resource
22.333333
71
0.80597
2116d726f5ba7500645b8f48397c732df6966725
4,565
py
Python
sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql_flexibleservers/operations/_get_private_dns_zone_suffix_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql_flexibleservers/operations/_get_private_dns_zone_suffix_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql_flexibleservers/operations/_get_private_dns_zone_suffix_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
39.695652
133
0.698576
21172eb6bc4128259ba69b0bca0ef7b044dca2a4
13,102
py
Python
vnpy/trader/gateway.py
howyu88/vnpy2
c8ae445823dc1f71abda1a79fae7d4be3dd92dd4
[ "MIT" ]
null
null
null
vnpy/trader/gateway.py
howyu88/vnpy2
c8ae445823dc1f71abda1a79fae7d4be3dd92dd4
[ "MIT" ]
null
null
null
vnpy/trader/gateway.py
howyu88/vnpy2
c8ae445823dc1f71abda1a79fae7d4be3dd92dd4
[ "MIT" ]
null
null
null
""" """ import sys from abc import ABC, abstractmethod from typing import Any, Sequence, Dict, List, Optional, Callable from copy import copy from logging import INFO, DEBUG, ERROR from vnpy.event import Event, EventEngine from .event import ( EVENT_TICK, EVENT_BAR, EVENT_ORDER, EVENT_TRADE, EVENT...
28.986726
93
0.609067
211739775ab60b4b079e87d954de6c44562131ab
973
py
Python
tests/test_loader.py
BluCodeGH/Amulet-Map-Editor
7d1d2243fc29095b3cffe8aa4979235444ba6738
[ "MIT" ]
1
2020-08-26T22:42:16.000Z
2020-08-26T22:42:16.000Z
tests/test_loader.py
BluCodeGH/Amulet-Map-Editor
7d1d2243fc29095b3cffe8aa4979235444ba6738
[ "MIT" ]
null
null
null
tests/test_loader.py
BluCodeGH/Amulet-Map-Editor
7d1d2243fc29095b3cffe8aa4979235444ba6738
[ "MIT" ]
null
null
null
from test_utils import modify_py_path modify_py_path() import unittest from test_utils import get_world_path from api import world_loader from api import world class DefinitionBasedLoaderTestCase(unittest.TestCase): def setUp(self): self.loader = world_loader def test_identifing(self): na...
27.027778
76
0.708119
2117407051d54a32972b618efb858cd1c9aeedb1
21,016
py
Python
nilearn/_utils/testing.py
fabianp/nilearn
367516822f538965368b936704a5346199331457
[ "BSD-2-Clause" ]
null
null
null
nilearn/_utils/testing.py
fabianp/nilearn
367516822f538965368b936704a5346199331457
[ "BSD-2-Clause" ]
null
null
null
nilearn/_utils/testing.py
fabianp/nilearn
367516822f538965368b936704a5346199331457
[ "BSD-2-Clause" ]
null
null
null
"""Utilities for testing nilearn. """ # Author: Alexandre Abrahame, Philippe Gervais # License: simplified BSD import contextlib import functools import inspect import os import re import sys import tempfile import warnings import copy import numpy as np import scipy.signal from sklearn.utils import check_random_state...
33.411765
86
0.608108
21175479b56534ad1dda52f2105c6046508ccccd
11,383
py
Python
gen_histogram.py
journalprivacyconfidentiality/differentially-private-set-union
d5268ab5831a99ddfbcbaa490ed8d8932e7a9979
[ "MIT" ]
4
2020-06-29T16:40:03.000Z
2020-11-17T16:56:14.000Z
gen_histogram.py
journalprivacyconfidentiality/differentially-private-set-union
d5268ab5831a99ddfbcbaa490ed8d8932e7a9979
[ "MIT" ]
null
null
null
gen_histogram.py
journalprivacyconfidentiality/differentially-private-set-union
d5268ab5831a99ddfbcbaa490ed8d8932e7a9979
[ "MIT" ]
2
2020-02-28T04:49:58.000Z
2021-12-17T18:40:40.000Z
import re import scipy import argparse import numpy as np import pandas as pd import agm_example as agm import scipy.stats # Local Libs import histogram as hgram def test_histogram(input_df, Delta_0, n, distribution, algorithm, num_iter, delta=np.e**(-10), eps=3, passes=1, alpha=2, save_hist=False...
44.992095
127
0.578143
211759cf768c6e95c2d841100e9f7123993a3869
13,919
py
Python
mlapp/utils/auto_ml/pandas.py
kerenleibovich/mlapp
0b8dfaba7a7070ab68cb29ff61dd1c7dd8076693
[ "Apache-2.0" ]
33
2021-02-26T10:41:09.000Z
2021-11-07T12:35:32.000Z
mlapp/utils/auto_ml/pandas.py
kerenleibovich/mlapp
0b8dfaba7a7070ab68cb29ff61dd1c7dd8076693
[ "Apache-2.0" ]
17
2021-03-04T15:37:21.000Z
2021-04-06T12:00:13.000Z
mlapp/utils/auto_ml/pandas.py
kerenleibovich/mlapp
0b8dfaba7a7070ab68cb29ff61dd1c7dd8076693
[ "Apache-2.0" ]
9
2021-03-03T20:02:41.000Z
2021-10-05T13:03:56.000Z
import inspect import pandas as pd import numpy as np from sklearn.metrics import * from sklearn.feature_selection import * from sklearn.feature_selection import * from sklearn.linear_model import * from sklearn.ensemble import * from sklearn.svm import * from mlapp.utils.metrics.pandas import classification, regressio...
46.86532
124
0.639557
21176a00717ae708cf57c75cb9ba3dd9a9f15585
5,385
py
Python
setup.py
ankit-shrivastava/db-factory
75ff83e94a5bdbc324f95c5b5ff82a28fb489486
[ "MIT" ]
1
2021-01-04T13:39:55.000Z
2021-01-04T13:39:55.000Z
setup.py
ankit-shrivastava/db-factory
75ff83e94a5bdbc324f95c5b5ff82a28fb489486
[ "MIT" ]
null
null
null
setup.py
ankit-shrivastava/db-factory
75ff83e94a5bdbc324f95c5b5ff82a28fb489486
[ "MIT" ]
1
2021-03-16T03:04:13.000Z
2021-03-16T03:04:13.000Z
#!/usr/bin/env python """ Prerequesites - Python Packages: * setuptools * GitPython System Packages: * make * Python 3 Commands: python setup.py [bdist_wheel / [sdist [--format=[gztar][,tar]]] Ex: * python setup.py bdist_wheel * python setup.py sdist * python setup.py sdist --format=gztar *...
31.30814
84
0.594058
2117a30c4bdfaa4e538f115a75bc05332411e306
6,264
py
Python
PeterRichardLyndon/mnist_tutorial/mnist.py
andpol5/whaleDetector
2dd0bb9eaa3ba0281a72b268a87a8f8a6c40d4bf
[ "MIT" ]
1
2016-01-23T18:24:45.000Z
2016-01-23T18:24:45.000Z
PeterRichardLyndon/mnist_tutorial/mnist.py
andpol5/whaleDetector
2dd0bb9eaa3ba0281a72b268a87a8f8a6c40d4bf
[ "MIT" ]
null
null
null
PeterRichardLyndon/mnist_tutorial/mnist.py
andpol5/whaleDetector
2dd0bb9eaa3ba0281a72b268a87a8f8a6c40d4bf
[ "MIT" ]
null
null
null
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
37.963636
103
0.657886
2117e44038470dd4ac00d6849a412f598b649f0e
11,364
py
Python
hs_modflow_modelinstance/page_processors.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
178
2015-01-08T23:03:36.000Z
2022-03-03T13:56:45.000Z
hs_modflow_modelinstance/page_processors.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
4,125
2015-01-01T14:26:15.000Z
2022-03-31T16:38:55.000Z
hs_modflow_modelinstance/page_processors.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
53
2015-03-15T17:56:51.000Z
2022-03-17T00:32:16.000Z
from functools import partial, wraps from crispy_forms.layout import Layout, HTML from django.forms import formset_factory from django.http import HttpResponseRedirect from mezzanine.pages.page_processors import processor_for from hs_core import page_processors from hs_core.forms import BaseFormSet, MetaDataElementDe...
54.634615
98
0.566086
2117fc02bf58f366b30ff78da5914840fc9fbf60
1,012
py
Python
tests/unit/tools/bellman/environments/test_termination.py
RL-Gym/bellman
210c9ff877b38705d1cf1b3ccd0f9f2644ad8d0d
[ "Apache-2.0" ]
40
2021-03-24T10:41:56.000Z
2022-03-15T09:50:47.000Z
tests/unit/tools/bellman/environments/test_termination.py
RL-Gym/bellman
210c9ff877b38705d1cf1b3ccd0f9f2644ad8d0d
[ "Apache-2.0" ]
12
2021-03-25T18:36:27.000Z
2021-07-27T11:09:34.000Z
tests/unit/tools/bellman/environments/test_termination.py
RL-Gym/bellman
210c9ff877b38705d1cf1b3ccd0f9f2644ad8d0d
[ "Apache-2.0" ]
3
2021-04-25T03:18:44.000Z
2021-11-14T15:54:34.000Z
# Copyright 2021 The Bellman Contributors # # 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...
40.48
83
0.810277
21180730d255683ae79b82b7abe81b8136f51d71
71
py
Python
source/datasets/__init__.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
151
2015-01-09T19:25:05.000Z
2022-01-05T02:05:52.000Z
source/datasets/__init__.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
1
2016-08-04T13:12:51.000Z
2016-08-04T13:12:51.000Z
source/datasets/__init__.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
59
2015-02-04T19:13:58.000Z
2021-07-28T23:36:09.000Z
import airline import eeg import methane import sea_level import solar
11.833333
16
0.859155
21181305b7c44995f79831fa4ac47d131b643be2
2,349
py
Python
datamol/graph.py
Ishan-Kumar2/datamol
480998ad9e7fdabfab25bc25d78364301e55eccb
[ "Apache-2.0" ]
null
null
null
datamol/graph.py
Ishan-Kumar2/datamol
480998ad9e7fdabfab25bc25d78364301e55eccb
[ "Apache-2.0" ]
null
null
null
datamol/graph.py
Ishan-Kumar2/datamol
480998ad9e7fdabfab25bc25d78364301e55eccb
[ "Apache-2.0" ]
null
null
null
from rdkit import Chem def _get_networkx(): try: import networkx as nx return nx except ImportError: raise ImportError("You must install networkx from https://networkx.org/.") def to_graph(mol: Chem.Mol): """Convert a molecule to a network x graph. A list of properties are added...
26.393258
82
0.587484
21181528f5ad13edca8d5d3ebedfb4f38500878c
199
py
Python
misc/Denoiser2D.py
FYP-DES5/deepscan-core
b6ce70ae69577fbdf5b80b30c4e83c7ee9cf6942
[ "MIT" ]
null
null
null
misc/Denoiser2D.py
FYP-DES5/deepscan-core
b6ce70ae69577fbdf5b80b30c4e83c7ee9cf6942
[ "MIT" ]
null
null
null
misc/Denoiser2D.py
FYP-DES5/deepscan-core
b6ce70ae69577fbdf5b80b30c4e83c7ee9cf6942
[ "MIT" ]
null
null
null
import numpy as np import cv2 img = cv2.imread('check_video.png') dst = cv2.fastNlMeansDenoisingColored(img, None, 10, 10, 7, 21) cv2.imshow('before', img) cv2.imshow('after', dst) cv2.waitKey(0)
18.090909
63
0.718593
21181df3a61524f4ca73cca81ba6c8dee5331b97
10,372
py
Python
demonet/models/ssd_mobilenetv3.py
zhiqwang/demonet
8370fc41d56d28939403b883f4b4014172895781
[ "Apache-2.0" ]
11
2020-08-28T09:29:42.000Z
2021-10-03T09:08:11.000Z
demonet/models/ssd_mobilenetv3.py
zhiqwang/demonet
8370fc41d56d28939403b883f4b4014172895781
[ "Apache-2.0" ]
1
2021-11-15T03:58:37.000Z
2021-11-15T04:23:22.000Z
demonet/models/ssd_mobilenetv3.py
zhiqwang/demonet
8370fc41d56d28939403b883f4b4014172895781
[ "Apache-2.0" ]
3
2020-04-15T07:53:13.000Z
2020-05-18T18:51:31.000Z
import warnings from collections import OrderedDict from functools import partial import torch from torch import nn, Tensor from torchvision.models.utils import load_state_dict_from_url from typing import Any, Callable, Dict, List, Optional from . import mobilenet, _utils as det_utils from .mobilenetv3 import ConvBN...
45.491228
119
0.676629
21182a52b9d739b0f20bad3f569071d8d5f7bd93
6,264
py
Python
trajectory_generator.py
Irismoon/grid-pattern-formation
7dcb189f109aed8b9148d747fdb0fce5a447d10e
[ "Apache-2.0" ]
21
2019-11-19T19:48:19.000Z
2022-02-13T08:00:03.000Z
trajectory_generator.py
Irismoon/grid-pattern-formation
7dcb189f109aed8b9148d747fdb0fce5a447d10e
[ "Apache-2.0" ]
2
2020-02-20T02:42:09.000Z
2021-10-31T00:53:24.000Z
trajectory_generator.py
Irismoon/grid-pattern-formation
7dcb189f109aed8b9148d747fdb0fce5a447d10e
[ "Apache-2.0" ]
14
2020-03-19T01:26:55.000Z
2022-02-13T08:00:18.000Z
# -*- coding: utf-8 -*- import torch import os import numpy as np class TrajectoryGenerator(object): def __init__(self, options, place_cells): self.options = options self.place_cells = place_cells def avoid_wall(self, position, hd, box_width, box_height): ''' Compute distanc...
39.15
111
0.586047