hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
c400620022eebd6f0df3a706d1f575d077a9ad78
6,781
py
Python
object/test.py
SkinLesionsResearch/NCPL
562e9664f77e14ed9b2655b82e8498b8a8ce5d2d
[ "MIT" ]
null
null
null
object/test.py
SkinLesionsResearch/NCPL
562e9664f77e14ed9b2655b82e8498b8a8ce5d2d
[ "MIT" ]
null
null
null
object/test.py
SkinLesionsResearch/NCPL
562e9664f77e14ed9b2655b82e8498b8a8ce5d2d
[ "MIT" ]
null
null
null
import argparse import os, sys os.chdir("/home/jackie/ResearchArea/SkinCancerResearch/semi_skin_cancer") sys.path.append("/home/jackie/ResearchArea/SkinCancerResearch/semi_skin_cancer") print(os.getcwd()) import os.path as osp import torchvision import numpy as np import torch # import torch.nn as nn # impo...
38.971264
113
0.626309
c4009ade7b5eb056201eed0338579ec28e08eb56
226
py
Python
countdownhype/urls.py
chri4354/BeeMe_platform
b73843d9146c5ba54a63a8839980ee7c8024e80d
[ "CC-BY-4.0" ]
null
null
null
countdownhype/urls.py
chri4354/BeeMe_platform
b73843d9146c5ba54a63a8839980ee7c8024e80d
[ "CC-BY-4.0" ]
8
2020-06-06T01:55:55.000Z
2022-03-12T00:31:52.000Z
countdownhype/urls.py
chri4354/BeeMe_platform
b73843d9146c5ba54a63a8839980ee7c8024e80d
[ "CC-BY-4.0" ]
null
null
null
from django.urls import path, re_path from . import views urlpatterns = [ path('', views.index, name='index'), path('countdown/', views.countdown, name='countdown'), #re_path(r'.+', views.redir, name='redir'), ]
22.6
58
0.650442
c40260dc06f3a35df8d6b1598c7152ecade68c53
204
py
Python
argv.py
christoga/python
1395b3177e7baf46677a7a7a4ae89d2488c6f0fa
[ "MIT" ]
5
2015-11-15T19:08:31.000Z
2015-11-27T02:34:28.000Z
argv.py
christoga/python
1395b3177e7baf46677a7a7a4ae89d2488c6f0fa
[ "MIT" ]
null
null
null
argv.py
christoga/python
1395b3177e7baf46677a7a7a4ae89d2488c6f0fa
[ "MIT" ]
null
null
null
from sys import argv script, first, second, third = argv print "This script called", script print "The first variable :", first print "The second variable :", second print "The third variable :", third
22.666667
37
0.735294
c403737a02fdcf7c798629d6151ff7c1e4a813cf
913
py
Python
ryu/gui/views/topology.py
uiuc-srg/ryu
2a597f812270ea9690269a20bf659f334c323eb6
[ "Apache-2.0" ]
269
2015-03-08T11:32:45.000Z
2022-03-30T11:18:16.000Z
ryu/gui/views/topology.py
uiuc-srg/ryu
2a597f812270ea9690269a20bf659f334c323eb6
[ "Apache-2.0" ]
4
2017-03-07T11:51:24.000Z
2020-07-07T20:13:55.000Z
ryu/gui/views/topology.py
uiuc-srg/ryu
2a597f812270ea9690269a20bf659f334c323eb6
[ "Apache-2.0" ]
205
2015-01-13T04:52:25.000Z
2022-03-30T13:37:33.000Z
# Copyright (C) 2013 Nippon Telegraph and Telephone 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 appli...
33.814815
69
0.739321
c4038c43fba700001a9ef9e5ce94db202c34c7bb
2,247
py
Python
allennlp/tests/modules/token_embedders/bag_of_word_counts_token_embedder_test.py
urigoren/allennlp
236e1fd01ca30409cd736625901292609009f5c4
[ "Apache-2.0" ]
1
2020-03-30T14:07:02.000Z
2020-03-30T14:07:02.000Z
allennlp/tests/modules/token_embedders/bag_of_word_counts_token_embedder_test.py
urigoren/allennlp
236e1fd01ca30409cd736625901292609009f5c4
[ "Apache-2.0" ]
123
2020-04-26T02:41:30.000Z
2021-08-02T21:18:00.000Z
allennlp/tests/modules/token_embedders/bag_of_word_counts_token_embedder_test.py
urigoren/allennlp
236e1fd01ca30409cd736625901292609009f5c4
[ "Apache-2.0" ]
2
2019-12-21T05:58:44.000Z
2021-08-16T07:41:21.000Z
import numpy as np import pytest import torch from numpy.testing import assert_almost_equal from allennlp.common.checks import ConfigurationError from allennlp.common.testing import AllenNlpTestCase from allennlp.data import Vocabulary from allennlp.modules.token_embedders import BagOfWordCountsTokenEmbedder
44.94
93
0.696484
c404204e3c66a1ac63a04d196c9f1142497f7ef7
1,020
py
Python
dqn/ops.py
khurshedmemon/DQN-UN-TL
1a981feff66825b6c35aafd08aba29d3c08ed745
[ "Apache-2.0" ]
1
2021-12-01T15:08:44.000Z
2021-12-01T15:08:44.000Z
dqn/ops.py
khurshedmemon/DQN-UN-TL
1a981feff66825b6c35aafd08aba29d3c08ed745
[ "Apache-2.0" ]
1
2021-12-02T06:09:05.000Z
2021-12-02T06:09:05.000Z
dqn/ops.py
khurshedmemon/DQN-UN-TL
1a981feff66825b6c35aafd08aba29d3c08ed745
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import numpy as np
32.903226
107
0.582353
c40422c343f9bc25ecff00b38032cd67afe03520
4,081
py
Python
cellsium/model/initialization.py
modsim/CellSium
8c3f4f5ccf84fa5555206d01cc3359c89071dcba
[ "BSD-2-Clause" ]
null
null
null
cellsium/model/initialization.py
modsim/CellSium
8c3f4f5ccf84fa5555206d01cc3359c89071dcba
[ "BSD-2-Clause" ]
null
null
null
cellsium/model/initialization.py
modsim/CellSium
8c3f4f5ccf84fa5555206d01cc3359c89071dcba
[ "BSD-2-Clause" ]
1
2021-12-29T23:19:17.000Z
2021-12-29T23:19:17.000Z
"""Cell parameter random initializations.""" from typing import Any, Dict import numpy as np from ..parameters import ( Height, NewCellBendLowerLower, NewCellBendLowerUpper, NewCellBendOverallLower, NewCellBendOverallUpper, NewCellBendUpperLower, NewCellBendUpperUpper, NewCellLength1Me...
32.133858
81
0.589561
c4049f3019aff074a372d03e83e2c871a888286d
7,540
py
Python
QAOA_MaxClique.py
bernovie/QAOA-MaxClique
59b795480e019ae19d25ace274bdb86714ed49e2
[ "MIT" ]
2
2020-06-19T06:58:11.000Z
2021-05-18T07:17:22.000Z
QAOA_MaxClique.py
bernovie/QAOA-MaxClique
59b795480e019ae19d25ace274bdb86714ed49e2
[ "MIT" ]
1
2020-09-21T20:26:46.000Z
2020-09-21T20:26:46.000Z
QAOA_MaxClique.py
bernovie/QAOA-MaxClique
59b795480e019ae19d25ace274bdb86714ed49e2
[ "MIT" ]
1
2020-09-20T12:42:02.000Z
2020-09-20T12:42:02.000Z
import qiskit import numpy as np import matplotlib.pyplot as plt import json from graph import * # Random comment P =1 # measure all qubits in q_input register, return dictionary of samples ### gradient ascent optimizer # graph is graph to optimize over # epsilon controls how far out the delta is calculated # eta is...
31.157025
116
0.589125
c406c0be47fb741172f1a8941c81701c0d28eb02
253
py
Python
yakut/cmd/file_server/__init__.py
pavel-kirienko/un
996e64668d8902bd876fab16b64e3361094a674d
[ "MIT" ]
1
2020-12-23T22:59:12.000Z
2020-12-23T22:59:12.000Z
yakut/cmd/file_server/__init__.py
pavel-kirienko/un
996e64668d8902bd876fab16b64e3361094a674d
[ "MIT" ]
null
null
null
yakut/cmd/file_server/__init__.py
pavel-kirienko/un
996e64668d8902bd876fab16b64e3361094a674d
[ "MIT" ]
null
null
null
# Copyright (c) 2021 OpenCyphal # This software is distributed under the terms of the MIT License. # Author: Pavel Kirienko <pavel@opencyphal.org> from ._app_descriptor import AppDescriptor as AppDescriptor from ._cmd import file_server as file_server
36.142857
66
0.810277
c407355017835f143ce6a0c84504a53fa41a83ee
15,959
py
Python
src/learn_mtfixbmodel.py
ornithos/pytorch-mtds-mocap
3ec10387d3d897e9a20d789bd4a3782a047519f7
[ "MIT" ]
2
2022-02-09T17:53:31.000Z
2022-03-02T11:25:35.000Z
src/learn_mtfixbmodel.py
ornithos/pytorch-mtds-mocap
3ec10387d3d897e9a20d789bd4a3782a047519f7
[ "MIT" ]
null
null
null
src/learn_mtfixbmodel.py
ornithos/pytorch-mtds-mocap
3ec10387d3d897e9a20d789bd4a3782a047519f7
[ "MIT" ]
null
null
null
"""Simple code for training an RNN for motion prediction.""" import os import sys import time import numpy as np import torch import torch.optim as optim from torch.autograd import Variable import mtfixb_model import mtfixb_model2 import parseopts def create_model(args, total_num_batches): """Create MT model a...
33.739958
119
0.59208
c408095eb7ab9da191765321215bacfdbf223067
11,260
py
Python
python/tvm/topi/nn/conv2d_transpose.py
ccjoechou/tvm
779dc51e1332f417fa4c304b595ce76891dfc33a
[ "Apache-2.0" ]
4
2020-04-14T12:31:45.000Z
2020-11-02T14:20:59.000Z
python/tvm/topi/nn/conv2d_transpose.py
ccjoechou/tvm
779dc51e1332f417fa4c304b595ce76891dfc33a
[ "Apache-2.0" ]
null
null
null
python/tvm/topi/nn/conv2d_transpose.py
ccjoechou/tvm
779dc51e1332f417fa4c304b595ce76891dfc33a
[ "Apache-2.0" ]
1
2020-11-02T14:21:45.000Z
2020-11-02T14:21:45.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
34.329268
99
0.653819
c40810867a32dd051fe382d63b22b8bac17db49f
91,964
py
Python
econml/solutions/causal_analysis/_causal_analysis.py
huigangchen/EconML
9a56d651e2964ebd05144de52f577f9044a22a0b
[ "BSD-3-Clause" ]
1,846
2019-05-06T21:14:19.000Z
2022-03-31T11:52:21.000Z
econml/solutions/causal_analysis/_causal_analysis.py
cleeway/EconML
fb2d1139f6c271d4b9a24d9c6d122d4d0891afb0
[ "BSD-3-Clause" ]
393
2019-05-08T00:55:32.000Z
2022-03-31T14:26:16.000Z
econml/solutions/causal_analysis/_causal_analysis.py
cleeway/EconML
fb2d1139f6c271d4b9a24d9c6d122d4d0891afb0
[ "BSD-3-Clause" ]
414
2019-05-14T03:51:08.000Z
2022-03-31T09:32:17.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. """Module for assessing causal feature importance.""" import warnings from collections import OrderedDict, namedtuple import joblib import lightgbm as lgb from numba.core.utils import erase_traceback import numpy as np from...
51.319196
119
0.603562
c4083724a00de9c5692943d43c6a11f16b96a31e
1,365
py
Python
problem solving/mini-max-sum.py
avnoor-488/hackerrank-solutions
b62315549c254d88104b70755e4dfcd43eba59bf
[ "MIT" ]
1
2020-10-01T16:54:52.000Z
2020-10-01T16:54:52.000Z
problem solving/mini-max-sum.py
avnoor-488/hackerrank-solutions
b62315549c254d88104b70755e4dfcd43eba59bf
[ "MIT" ]
2
2020-10-07T02:22:13.000Z
2020-10-22T06:15:50.000Z
problem solving/mini-max-sum.py
avnoor-488/hackerrank-solutions
b62315549c254d88104b70755e4dfcd43eba59bf
[ "MIT" ]
9
2020-10-01T12:30:56.000Z
2020-10-22T06:10:14.000Z
''' problem-- Given five positive integers, find the minimum and maximum values that can be calculated by summing exactly four of the five integers. Then print the respective minimum and maximum values as a single line of two space-separated long integers. For example, arr=[1,3,5,7,9]. Our minimum sum is 1+3+5+7=16 a...
24.375
242
0.710623
c40b63017932ee0022e50a1cd077dafbac537066
4,610
py
Python
19/network.py
jcsesznegi/advent-of-code-2017
9710e184e092b82aa798076b9ce3915c6e42758d
[ "MIT" ]
1
2020-04-12T17:54:52.000Z
2020-04-12T17:54:52.000Z
19/network.py
jcsesznegi/advent-of-code-2017
9710e184e092b82aa798076b9ce3915c6e42758d
[ "MIT" ]
null
null
null
19/network.py
jcsesznegi/advent-of-code-2017
9710e184e092b82aa798076b9ce3915c6e42758d
[ "MIT" ]
null
null
null
from pprint import pprint from enum import Enum
37.786885
74
0.632972
c40cb374c8f69dbfb3dd6a423d469c3fd1845232
2,639
py
Python
examples/gan.py
maxferrari/Torchelie
d133f227bebc3c4cbbb6167bd1fae815d2b5fa81
[ "MIT" ]
117
2019-07-14T20:39:48.000Z
2021-10-17T19:16:48.000Z
examples/gan.py
maxferrari/Torchelie
d133f227bebc3c4cbbb6167bd1fae815d2b5fa81
[ "MIT" ]
41
2019-12-06T23:56:44.000Z
2021-08-02T09:13:30.000Z
examples/gan.py
maxferrari/Torchelie
d133f227bebc3c4cbbb6167bd1fae815d2b5fa81
[ "MIT" ]
13
2019-09-22T00:46:54.000Z
2021-04-09T15:53:15.000Z
import argparse import copy import torch from torchvision.datasets import MNIST, CIFAR10 import torchvision.transforms as TF import torchelie as tch import torchelie.loss.gan.hinge as gan_loss from torchelie.recipes.gan import GANRecipe import torchelie.callbacks as tcb from torchelie.recipes import Recipe parser =...
29.322222
84
0.61349
c40ce4ea8967938d11ba63e971d617289f172e0d
22
py
Python
Python/SCRIPT PYTHON/Hello.py
guimaraesalves/material-python
d56b6b24ae35a67d394b43cb1ef4420805c7bd9b
[ "MIT" ]
null
null
null
Python/SCRIPT PYTHON/Hello.py
guimaraesalves/material-python
d56b6b24ae35a67d394b43cb1ef4420805c7bd9b
[ "MIT" ]
null
null
null
Python/SCRIPT PYTHON/Hello.py
guimaraesalves/material-python
d56b6b24ae35a67d394b43cb1ef4420805c7bd9b
[ "MIT" ]
null
null
null
print ("Hello Word!")
11
21
0.636364
c40e9360b8918f73e4cf97eef85c363173d03ce0
21,719
py
Python
hs_geo_raster_resource/serialization.py
tommac7/hydroshare
87c4543a55f98103d2614bf4c47f7904c3f9c029
[ "BSD-3-Clause" ]
1
2018-09-17T13:07:29.000Z
2018-09-17T13:07:29.000Z
hs_geo_raster_resource/serialization.py
tommac7/hydroshare
87c4543a55f98103d2614bf4c47f7904c3f9c029
[ "BSD-3-Clause" ]
100
2017-08-01T23:48:04.000Z
2018-04-03T13:17:27.000Z
hs_geo_raster_resource/serialization.py
tommac7/hydroshare
87c4543a55f98103d2614bf4c47f7904c3f9c029
[ "BSD-3-Clause" ]
2
2017-07-27T20:41:33.000Z
2017-07-27T22:40:57.000Z
import xml.sax import rdflib from django.db import transaction from hs_core.serialization import GenericResourceMeta
47.215217
97
0.55776
c410261f2af66c058c52c7122ed945e7bc1bf8e8
857
py
Python
setup.py
mrocklin/pygdf
2de9407427da9497ebdf8951a12857be0fab31bb
[ "Apache-2.0" ]
5
2019-01-15T12:31:49.000Z
2021-03-05T21:17:13.000Z
setup.py
mrocklin/pygdf
2de9407427da9497ebdf8951a12857be0fab31bb
[ "Apache-2.0" ]
1
2019-06-18T20:58:21.000Z
2019-06-18T20:58:21.000Z
setup.py
mrocklin/pygdf
2de9407427da9497ebdf8951a12857be0fab31bb
[ "Apache-2.0" ]
null
null
null
from setuptools import setup import versioneer packages = ['pygdf', 'pygdf.tests', ] install_requires = [ 'numba', ] setup(name='pygdf', description="GPU Dataframe", version=versioneer.get_version(), classifiers=[ # "Development Status :: 4 - Beta", "In...
24.485714
54
0.588098
c412a68b17b363d84e8cdaf62f22ff38191fc6e5
335
py
Python
pymarl/envs/__init__.py
twoodford/pymarl
c78e63e54ed772171fbcaea6c55c703cff0e9302
[ "Apache-2.0" ]
null
null
null
pymarl/envs/__init__.py
twoodford/pymarl
c78e63e54ed772171fbcaea6c55c703cff0e9302
[ "Apache-2.0" ]
null
null
null
pymarl/envs/__init__.py
twoodford/pymarl
c78e63e54ed772171fbcaea6c55c703cff0e9302
[ "Apache-2.0" ]
null
null
null
from functools import partial from .multiagentenv import MultiAgentEnv import sys import os REGISTRY = {} #REGISTRY["sc2"] = partial(env_fn, env=StarCraft2Env)
22.333333
53
0.740299
c415cf0f1a05df7a1ed0253bc2693cc05cb80cc0
4,938
py
Python
gumtree_watchdog/db.py
undeadparrot/gumtree-telegram-watchdog
48db6b37876c520bd5d2e0f9a97e19b04d70e12f
[ "MIT" ]
1
2019-03-04T15:38:01.000Z
2019-03-04T15:38:01.000Z
gumtree_watchdog/db.py
undeadparrot/gumtree-telegram-watchdog
48db6b37876c520bd5d2e0f9a97e19b04d70e12f
[ "MIT" ]
null
null
null
gumtree_watchdog/db.py
undeadparrot/gumtree-telegram-watchdog
48db6b37876c520bd5d2e0f9a97e19b04d70e12f
[ "MIT" ]
null
null
null
import os import os.path import sqlite3 import logging from typing import List from gumtree_watchdog.types import Listing, Contract, ListingWithChatId TConn = sqlite3.Connection DB_PATH = os.environ.get('GUMTREE_DB')
28.37931
92
0.584447
c4184af48713ebd40a957015c82bc531d4f8d4b7
3,601
py
Python
apps/1d/mhd/shock_tube/this_app_params.py
dcseal/finess
766e583ae9e84480640c7c3b3c157bf40ab87fe4
[ "BSD-3-Clause" ]
null
null
null
apps/1d/mhd/shock_tube/this_app_params.py
dcseal/finess
766e583ae9e84480640c7c3b3c157bf40ab87fe4
[ "BSD-3-Clause" ]
null
null
null
apps/1d/mhd/shock_tube/this_app_params.py
dcseal/finess
766e583ae9e84480640c7c3b3c157bf40ab87fe4
[ "BSD-3-Clause" ]
null
null
null
#section [initial] parameter_list, accessor_list, check_list = \ _parameters_accessors_checks()
31.587719
68
0.463482
c418d7e5abef02bb7493320d6cd67da6e01f6114
1,142
py
Python
async-functions.py
cheezyy/python_scripts
9db713ca085c6f1fd5ec63d79762a470093e028a
[ "MIT" ]
null
null
null
async-functions.py
cheezyy/python_scripts
9db713ca085c6f1fd5ec63d79762a470093e028a
[ "MIT" ]
null
null
null
async-functions.py
cheezyy/python_scripts
9db713ca085c6f1fd5ec63d79762a470093e028a
[ "MIT" ]
null
null
null
''' Chad Meadowcroft Credit to Sentdex (https://pythonprogramming.net/) ''' import asyncio if __name__ == '__main__': try: loop = asyncio.get_event_loop() loop.set_debug(1) d1, d2, d3 = loop.run_until_complete(main()) print(d1.result()) except Exception as e: pass f...
29.282051
77
0.645359
c41996b81d3533341a720d569e52c1e49f5c467b
1,114
py
Python
setup.py
jackaraz/ma5_expert
4d359b5110874c2f44f81e10307bd1ea3f9e20d0
[ "MIT" ]
2
2021-04-06T08:37:41.000Z
2022-01-07T09:15:25.000Z
setup.py
jackaraz/ma5_expert
4d359b5110874c2f44f81e10307bd1ea3f9e20d0
[ "MIT" ]
null
null
null
setup.py
jackaraz/ma5_expert
4d359b5110874c2f44f81e10307bd1ea3f9e20d0
[ "MIT" ]
null
null
null
from setuptools import setup import os with open("README.md", "r", encoding="utf-8") as f: long_description = f.read() requirements = [] if os.path.isfile("./requirements.txt"): with open("requirements.txt", "r") as f: requirements = f.read() requirements = [x for x in requirements.split("\n") if ...
29.315789
67
0.630162
c41a92320c98d0d79eebb92f7c12dfc1830b9325
4,977
py
Python
apitest/api_test/common/auth.py
willhuang1206/apitest
4b41855710ba8f21788027da83a830f631e11f26
[ "Apache-2.0" ]
null
null
null
apitest/api_test/common/auth.py
willhuang1206/apitest
4b41855710ba8f21788027da83a830f631e11f26
[ "Apache-2.0" ]
3
2020-06-06T01:57:41.000Z
2021-06-10T22:57:58.000Z
apitest/api_test/common/auth.py
willhuang1206/apitest
4b41855710ba8f21788027da83a830f631e11f26
[ "Apache-2.0" ]
null
null
null
from rest_framework.authentication import BaseAuthentication from rest_framework import exceptions from rest_framework.parsers import JSONParser from django.conf import settings import requests from api_test.common import MD5 from api_test.models import ProjectMember from django.contrib.auth.models import User,Group fr...
42.905172
166
0.569821
c41b88fc454a463ac7213753efc46174f0522ef0
12,745
py
Python
futu/common/pb/Qot_GetPriceReminder_pb2.py
Hason-Cheung/py-futu-api
caa2f136ee07a2b123c79b2d75bbb524d7873e53
[ "Apache-2.0" ]
858
2018-11-12T12:54:56.000Z
2022-03-10T17:35:43.000Z
futu/common/pb/Qot_GetPriceReminder_pb2.py
EricChengg/hongkong-futu-user-investment-report-generater
d450260a107f9e053036c31b05b8290b7b22c237
[ "Apache-2.0" ]
113
2018-11-12T01:52:31.000Z
2022-02-27T03:53:07.000Z
futu/common/pb/Qot_GetPriceReminder_pb2.py
EricChengg/hongkong-futu-user-investment-report-generater
d450260a107f9e053036c31b05b8290b7b22c237
[ "Apache-2.0" ]
201
2018-11-19T08:32:45.000Z
2022-03-23T06:39:02.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: Qot_GetPriceReminder.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflect...
36.83526
1,141
0.748764
c41bd740e3e0dc24d155a81087255bfae49c7719
903
py
Python
leave/models.py
shoaibsaikat/Django-Office-Management
952aa44c2d3c2f99e91c2ed1aada17ee15fc9eb0
[ "Apache-2.0" ]
null
null
null
leave/models.py
shoaibsaikat/Django-Office-Management
952aa44c2d3c2f99e91c2ed1aada17ee15fc9eb0
[ "Apache-2.0" ]
null
null
null
leave/models.py
shoaibsaikat/Django-Office-Management
952aa44c2d3c2f99e91c2ed1aada17ee15fc9eb0
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.db.models.deletion import CASCADE from accounts.models import User
45.15
102
0.75526
c41c16df2e1d607a9a0d2aad44ec758217ef96ce
22,021
py
Python
svtk/vtk_animation_timer_callback.py
SimLeek/pglsl-neural
8daaffded197cf7be4432754bc5941f1bca3239c
[ "MIT" ]
5
2018-03-25T23:43:32.000Z
2019-05-18T10:35:21.000Z
svtk/vtk_animation_timer_callback.py
PyGPAI/PyGPNeural
8daaffded197cf7be4432754bc5941f1bca3239c
[ "MIT" ]
11
2017-12-24T20:03:16.000Z
2017-12-26T00:18:34.000Z
svtk/vtk_animation_timer_callback.py
SimLeek/PyGPNeural
8daaffded197cf7be4432754bc5941f1bca3239c
[ "MIT" ]
null
null
null
import time import numpy as np import vtk from vtk.util import numpy_support from svtk.lib.toolbox.integer import minmax from svtk.lib.toolbox.idarray import IdArray from svtk.lib.toolbox.numpy_helpers import normalize import math as m
40.629151
121
0.608374
c41c57d2fe8c5d4f03096ac847acc8fe35f19ed2
3,679
py
Python
work/ArchitectureSearch.py
jialiasus2/AI-Studio-Contest-Quantum202103
350f20b8805e9696cacacc1339e71bf695571e74
[ "Apache-2.0" ]
null
null
null
work/ArchitectureSearch.py
jialiasus2/AI-Studio-Contest-Quantum202103
350f20b8805e9696cacacc1339e71bf695571e74
[ "Apache-2.0" ]
null
null
null
work/ArchitectureSearch.py
jialiasus2/AI-Studio-Contest-Quantum202103
350f20b8805e9696cacacc1339e71bf695571e74
[ "Apache-2.0" ]
null
null
null
import time import numpy as np from tqdm import tqdm from utils import RandomCNOT, RandomCNOTs def RandomSearch(cnot_creater, solver, epochs=100, save_path=None): ''' Parameters: cnot_creater: CNOT solver: epochs: save_path: ''' best_score = 0 start_time = ...
38.322917
173
0.59527
c41c9ed8f0eeeb7bc96538ff09de8ee1da20fa88
4,113
py
Python
tests/localyaml/test_localyaml.py
sbussetti/jenkins-job-builder
fc63f1439816d9022a2d538614b0b7592f96b454
[ "Apache-2.0" ]
1
2021-07-30T04:03:53.000Z
2021-07-30T04:03:53.000Z
tests/localyaml/test_localyaml.py
sbussetti/jenkins-job-builder
fc63f1439816d9022a2d538614b0b7592f96b454
[ "Apache-2.0" ]
12
2020-05-29T05:33:48.000Z
2020-09-29T13:02:29.000Z
tests/localyaml/test_localyaml.py
sbussetti/jenkins-job-builder
fc63f1439816d9022a2d538614b0b7592f96b454
[ "Apache-2.0" ]
2
2020-05-15T08:29:33.000Z
2020-06-04T07:27:31.000Z
#!/usr/bin/env python # # Copyright 2013 Darragh Bailey # # 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...
33.991736
87
0.699733
c41dbd4f1116c76a73c6b7f3a90d3a40a1fa6018
24,625
py
Python
seijibot.py
seiji56/bot-tac
b16b8a8a79d6ac2deb0476ab3a9a0e0b136b1d54
[ "MIT" ]
null
null
null
seijibot.py
seiji56/bot-tac
b16b8a8a79d6ac2deb0476ab3a9a0e0b136b1d54
[ "MIT" ]
null
null
null
seijibot.py
seiji56/bot-tac
b16b8a8a79d6ac2deb0476ab3a9a0e0b136b1d54
[ "MIT" ]
null
null
null
from bot_interface import * import math GameState(SeijiBot()).connect()
37.884615
608
0.496853
c41f3f30efc1128fe0e35981a452b93b464ce15f
304
py
Python
configs/gdrn/ycbvPbrSO/resnest50d_AugCosyAAEGray_BG05_visib10_mlBCE_DoubleMask_ycbvPbr100e_SO/resnest50d_AugCosyAAEGray_BG05_visib10_mlBCE_DoubleMask_ycbvPbr100e_SO_09_10PottedMeatCan.py
THU-DA-6D-Pose-Group/self6dpp
c267cfa55e440e212136a5e9940598720fa21d16
[ "Apache-2.0" ]
33
2021-12-15T07:11:47.000Z
2022-03-29T08:58:32.000Z
configs/gdrn/ycbvPbrSO/resnest50d_AugCosyAAEGray_BG05_visib10_mlBCE_DoubleMask_ycbvPbr100e_SO/resnest50d_AugCosyAAEGray_BG05_visib10_mlBCE_DoubleMask_ycbvPbr100e_SO_09_10PottedMeatCan.py
THU-DA-6D-Pose-Group/self6dpp
c267cfa55e440e212136a5e9940598720fa21d16
[ "Apache-2.0" ]
3
2021-12-15T11:39:54.000Z
2022-03-29T07:24:23.000Z
configs/gdrn/ycbvPbrSO/resnest50d_AugCosyAAEGray_BG05_visib10_mlBCE_DoubleMask_ycbvPbr100e_SO/resnest50d_AugCosyAAEGray_BG05_visib10_mlBCE_DoubleMask_ycbvPbr100e_SO_09_10PottedMeatCan.py
THU-DA-6D-Pose-Group/self6dpp
c267cfa55e440e212136a5e9940598720fa21d16
[ "Apache-2.0" ]
null
null
null
_base_ = "./resnest50d_AugCosyAAEGray_BG05_visib10_mlBCE_DoubleMask_ycbvPbr100e_SO_01_02MasterChefCan.py" OUTPUT_DIR = ( "output/gdrn/ycbvPbrSO/resnest50d_AugCosyAAEGray_BG05_visib10_mlBCE_DoubleMask_ycbvPbr100e_SO/09_10PottedMeatCan" ) DATASETS = dict(TRAIN=("ycbv_010_potted_meat_can_train_pbr",))
50.666667
117
0.871711
c41fd9dec58d9f797e213eba1e8064f8aba14576
682
py
Python
days/01-03-datetimes/code/100day_calc.py
rhelmstedter/100daysofcode-with-python-course
076c99939b5641be541023f61c10ff30a7f05524
[ "MIT" ]
null
null
null
days/01-03-datetimes/code/100day_calc.py
rhelmstedter/100daysofcode-with-python-course
076c99939b5641be541023f61c10ff30a7f05524
[ "MIT" ]
null
null
null
days/01-03-datetimes/code/100day_calc.py
rhelmstedter/100daysofcode-with-python-course
076c99939b5641be541023f61c10ff30a7f05524
[ "MIT" ]
null
null
null
from datetime import date, datetime, timedelta import time START_DATE = date(2021, 5, 25) duration = timedelta(days=100)
32.47619
104
0.668622
c42001c4593f0af28c9a44cdd561459d12ab258c
195
py
Python
output/copilot/python/timeout/palindrome-partitioning.py
nhtnhan/CMPUT663-copilot-eval
896711d006eb37a78e010cd1b9f79dc285ad054d
[ "Apache-2.0" ]
null
null
null
output/copilot/python/timeout/palindrome-partitioning.py
nhtnhan/CMPUT663-copilot-eval
896711d006eb37a78e010cd1b9f79dc285ad054d
[ "Apache-2.0" ]
null
null
null
output/copilot/python/timeout/palindrome-partitioning.py
nhtnhan/CMPUT663-copilot-eval
896711d006eb37a78e010cd1b9f79dc285ad054d
[ "Apache-2.0" ]
null
null
null
# https://leetcode.com/problems/palindrome-partitioning/
21.666667
56
0.54359
c42012e1044d2e28166a8361142bd8a07f4789f3
6,071
py
Python
aggregathor/ea_datasource.py
big-data-lab-umbc/autodist
c8514b27cf5608f35254b63c4ac8093c7295a8e7
[ "Apache-2.0" ]
null
null
null
aggregathor/ea_datasource.py
big-data-lab-umbc/autodist
c8514b27cf5608f35254b63c4ac8093c7295a8e7
[ "Apache-2.0" ]
null
null
null
aggregathor/ea_datasource.py
big-data-lab-umbc/autodist
c8514b27cf5608f35254b63c4ac8093c7295a8e7
[ "Apache-2.0" ]
null
null
null
import numpy as np import keras import random from keras.datasets import mnist from keras import backend as K K.set_floatx('float64') if __name__ == "__main__": # m = Mnist() # # res = m.partitioned_by_rows(9) # # print(res["test"][1].shape) # for _ in range(10): # print(m.gen_dummy_non_iid_we...
43.056738
135
0.653434
c42094cad42afee256fee1fad8338f794ac45419
255
py
Python
proxySTAR_V3/certbot/venv/lib/python2.7/site-packages/pylint/test/functional/pygtk_enum_crash.py
mami-project/lurk
98c293251e9b1e9c9a4b02789486c5ddaf46ba3c
[ "Apache-2.0" ]
2
2017-07-05T09:57:33.000Z
2017-11-14T23:05:53.000Z
Libraries/Python/pylint/v1.4.4/pylint/test/functional/pygtk_enum_crash.py
davidbrownell/Common_Environment
4015872aeac8d5da30a6aa7940e1035a6aa6a75d
[ "BSL-1.0" ]
1
2019-01-17T14:26:22.000Z
2019-01-17T22:56:26.000Z
Libraries/Python/pylint/v1.4.4/pylint/test/functional/pygtk_enum_crash.py
davidbrownell/Common_Environment
4015872aeac8d5da30a6aa7940e1035a6aa6a75d
[ "BSL-1.0" ]
1
2017-08-31T14:33:03.000Z
2017-08-31T14:33:03.000Z
# pylint: disable=C0121 """http://www.logilab.org/ticket/124337""" import gtk def print_some_constant(arg=gtk.BUTTONS_OK): """crash because gtk.BUTTONS_OK, a gtk enum type, is returned by astroid as a constant """ print(arg)
21.25
69
0.662745
c4231b8d3eab02f60fcc36025477bf600813aa38
1,519
py
Python
py_at/OrderItem.py
kanghua309/at_py
8fa7943a9de52cd81d235f06b57a25aa07fb715b
[ "Apache-2.0" ]
null
null
null
py_at/OrderItem.py
kanghua309/at_py
8fa7943a9de52cd81d235f06b57a25aa07fb715b
[ "Apache-2.0" ]
null
null
null
py_at/OrderItem.py
kanghua309/at_py
8fa7943a9de52cd81d235f06b57a25aa07fb715b
[ "Apache-2.0" ]
2
2018-09-19T16:07:26.000Z
2019-11-09T15:46:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ __title__ = '' __author__ = 'HaiFeng' __mtime__ = '2016/8/16' """ import time from py_at.EnumDefine import * ########################################################################
26.649123
142
0.578012
c4246529ebfd4899aa1216798277f3b74d90b3f5
547
py
Python
pyscf/nao/m_rf_den.py
mfkasim1/pyscf
7be5e015b2b40181755c71d888449db936604660
[ "Apache-2.0" ]
3
2021-02-28T00:52:53.000Z
2021-03-01T06:23:33.000Z
pyscf/nao/m_rf_den.py
mfkasim1/pyscf
7be5e015b2b40181755c71d888449db936604660
[ "Apache-2.0" ]
36
2018-08-22T19:44:03.000Z
2020-05-09T10:02:36.000Z
pyscf/nao/m_rf_den.py
mfkasim1/pyscf
7be5e015b2b40181755c71d888449db936604660
[ "Apache-2.0" ]
4
2018-02-14T16:28:28.000Z
2019-08-12T16:40:30.000Z
from __future__ import print_function, division import numpy as np from numpy import identity, dot, zeros, zeros_like def rf_den_via_rf0(self, rf0, v): """ Whole matrix of the interacting response via non-interacting response and interaction""" rf = zeros_like(rf0) I = identity(rf0.shape[1]) for ir,r in enume...
28.789474
94
0.718464
c4253c3edd906a40552637d516df1601047e0dd5
669
py
Python
app/model/compare_users.py
dwdraugr/YADS
c8036d8196a3158636aaa4f1910033e70ec8ecb4
[ "Apache-2.0" ]
3
2019-09-02T11:26:58.000Z
2019-12-06T15:54:38.000Z
app/model/compare_users.py
dwdraugr/YADS
c8036d8196a3158636aaa4f1910033e70ec8ecb4
[ "Apache-2.0" ]
null
null
null
app/model/compare_users.py
dwdraugr/YADS
c8036d8196a3158636aaa4f1910033e70ec8ecb4
[ "Apache-2.0" ]
null
null
null
from app.model.model import Model
35.210526
75
0.560538
c425a0389a78978ea2d9dbb437a26224ad54fcc9
9,004
py
Python
venv/Lib/site-packages/sklearn/ensemble/_hist_gradient_boosting/tests/test_histogram.py
mokshagna517/recommendation_sys
bc8ced225dff3c93d619ff5da363f42d0aa0676c
[ "MIT" ]
25
2019-03-08T01:03:03.000Z
2022-02-14T17:38:32.000Z
venv/Lib/site-packages/sklearn/ensemble/_hist_gradient_boosting/tests/test_histogram.py
mokshagna517/recommendation_sys
bc8ced225dff3c93d619ff5da363f42d0aa0676c
[ "MIT" ]
9
2020-09-25T22:32:02.000Z
2022-02-09T23:45:10.000Z
venv/Lib/site-packages/sklearn/ensemble/_hist_gradient_boosting/tests/test_histogram.py
mokshagna517/recommendation_sys
bc8ced225dff3c93d619ff5da363f42d0aa0676c
[ "MIT" ]
31
2019-01-15T20:16:50.000Z
2022-03-01T05:47:38.000Z
import numpy as np import pytest from numpy.testing import assert_allclose from numpy.testing import assert_array_equal from sklearn.ensemble._hist_gradient_boosting.histogram import ( _build_histogram_naive, _build_histogram, _build_histogram_no_hessian, _build_histogram_root_no_hessian, _build_h...
44.35468
79
0.691804
c425a78347ab246234b9b4acc34bdb1ab5a3665b
349
py
Python
dgpolygon/gmappolygons/urls.py
mariohmol/django-google-polygon
9d9448e540a4d100d925d7170425143f126e2174
[ "MIT" ]
1
2018-04-28T17:06:23.000Z
2018-04-28T17:06:23.000Z
dgpolygon/gmappolygons/urls.py
mariohmol/django-google-polygon
9d9448e540a4d100d925d7170425143f126e2174
[ "MIT" ]
null
null
null
dgpolygon/gmappolygons/urls.py
mariohmol/django-google-polygon
9d9448e540a4d100d925d7170425143f126e2174
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, include, url from django.contrib import admin from gmappolygons import views urlpatterns = patterns('', url(r'^$', views.index, name='index'), url(r'^search', views.search, name='search'), url(r'^submit/$', views.submit, name='submit'), url(r'^show/(?P<area_id>\d+)/',...
31.727273
60
0.673352
c4263856e2d9e9e21750aa2037ab8e37b21086eb
2,407
py
Python
apps/user/models.py
mrf-foundation/ckios_v1
3556a99ba5e01f00e137fd124903ace77d2cba28
[ "Apache-2.0" ]
null
null
null
apps/user/models.py
mrf-foundation/ckios_v1
3556a99ba5e01f00e137fd124903ace77d2cba28
[ "Apache-2.0" ]
null
null
null
apps/user/models.py
mrf-foundation/ckios_v1
3556a99ba5e01f00e137fd124903ace77d2cba28
[ "Apache-2.0" ]
null
null
null
from django.db import models from django import forms from django.contrib.auth.models import User from PIL import Image from django.utils.timezone import now ## User Update Profile
44.574074
103
0.658912
c429c3cef7b7daf43f4b36c099ac1e6ca683a4ff
19,880
py
Python
slt/chmm/train.py
paper-submit-account/Sparse-CHMM
8a33dfe375a012cc0cc3324907135b74606a7b5d
[ "Apache-2.0" ]
null
null
null
slt/chmm/train.py
paper-submit-account/Sparse-CHMM
8a33dfe375a012cc0cc3324907135b74606a7b5d
[ "Apache-2.0" ]
null
null
null
slt/chmm/train.py
paper-submit-account/Sparse-CHMM
8a33dfe375a012cc0cc3324907135b74606a7b5d
[ "Apache-2.0" ]
null
null
null
import os import logging import numpy as np from typing import Optional import torch from torch.utils.data import DataLoader from ..eval import Metric from .dataset import CHMMBaseDataset from .dataset import collate_fn as default_collate_fn logger = logging.getLogger(__name__) OUT_RECALL = 0.9 OUT_PRECISION = 0.8 ...
38.452611
118
0.604326
c42c480ac786f98d925a893f66e8658af5b8de1c
6,881
py
Python
flask_obfuscateids/lib.py
mlenzen/flask-obfuscateids
22319633b2685f2969bd67eae3fd09d2db6567f1
[ "BSD-3-Clause" ]
null
null
null
flask_obfuscateids/lib.py
mlenzen/flask-obfuscateids
22319633b2685f2969bd67eae3fd09d2db6567f1
[ "BSD-3-Clause" ]
1
2015-01-26T06:23:12.000Z
2015-01-26T06:23:12.000Z
flask_obfuscateids/lib.py
mlenzen/flask-obfuscateids
22319633b2685f2969bd67eae3fd09d2db6567f1
[ "BSD-3-Clause" ]
null
null
null
from random import Random from collections_extended import setlist # The version of seeding to use for random SEED_VERSION = 2 # Common alphabets to use ALPHANUM = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' BASE58 = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz' def encode_ba...
30.312775
98
0.748874
c42c74470081e712e5a554684e5bb789162adcd2
377
py
Python
lib/response.py
dpla/akara
432f14782152dd19931bdbd8f9fad19b5932426d
[ "Apache-2.0" ]
5
2015-01-30T03:50:37.000Z
2015-09-23T00:46:11.000Z
lib/response.py
dpla/akara
432f14782152dd19931bdbd8f9fad19b5932426d
[ "Apache-2.0" ]
null
null
null
lib/response.py
dpla/akara
432f14782152dd19931bdbd8f9fad19b5932426d
[ "Apache-2.0" ]
3
2015-03-09T19:16:56.000Z
2019-09-19T02:41:29.000Z
"""Information for the outgoing response code - the HTTP response code (default is "200 Ok") headers - a list of key/value pairs used for the WSGI start_response """ code = None headers = [] def add_header(key, value): """Helper function to append (key, value) to the list of response headers""" headers....
23.5625
80
0.700265
c42d5c2686fc626989593bdff74f807903b98683
1,594
py
Python
parte 3/desafio93.py
BrunoSoares-DEV/Exercicios-python
fcfd0a7b3e2c6af2b7dd8e5a15ca6585c97f7c67
[ "MIT" ]
2
2021-02-24T20:05:24.000Z
2021-02-24T20:05:41.000Z
parte 3/desafio93.py
BrunoSoares-DEV/Exercicios-python
fcfd0a7b3e2c6af2b7dd8e5a15ca6585c97f7c67
[ "MIT" ]
null
null
null
parte 3/desafio93.py
BrunoSoares-DEV/Exercicios-python
fcfd0a7b3e2c6af2b7dd8e5a15ca6585c97f7c67
[ "MIT" ]
null
null
null
jog = {} #pegando dados jog['Nome do jogador'] = str(input('Digite o nome do jogador: ')).strip().title() jog['Total partidas'] = int(input('Quantas partidas jogou: ')) #lista de gol gols = [] #Quantos gols em cada partida for i in range(0, jog['Total partidas']): gols.append(int(input(f'Quantos gols na partida ...
37.952381
161
0.717064
c42d617d9e6dd57810d5d84da656ddd4e8d82bf1
5,891
py
Python
b2sdk/v1/account_info.py
ehossack/b2-sdk-python
034bec38671c0862b6956915993061359dbd51f6
[ "MIT" ]
null
null
null
b2sdk/v1/account_info.py
ehossack/b2-sdk-python
034bec38671c0862b6956915993061359dbd51f6
[ "MIT" ]
null
null
null
b2sdk/v1/account_info.py
ehossack/b2-sdk-python
034bec38671c0862b6956915993061359dbd51f6
[ "MIT" ]
null
null
null
###################################################################### # # File: b2sdk/v1/account_info.py # # Copyright 2021 Backblaze Inc. All Rights Reserved. # # License https://www.backblaze.com/using_b2_code.html # ###################################################################### from abc import abstractmeth...
30.523316
186
0.636904
c42ddcb403bc1b33c57898bd141f1f505a69b04f
9,539
py
Python
src/pyrin/security/hashing/handlers/pbkdf2.py
wilsonGmn/pyrin
25dbe3ce17e80a43eee7cfc7140b4c268a6948e0
[ "BSD-3-Clause" ]
null
null
null
src/pyrin/security/hashing/handlers/pbkdf2.py
wilsonGmn/pyrin
25dbe3ce17e80a43eee7cfc7140b4c268a6948e0
[ "BSD-3-Clause" ]
null
null
null
src/pyrin/security/hashing/handlers/pbkdf2.py
wilsonGmn/pyrin
25dbe3ce17e80a43eee7cfc7140b4c268a6948e0
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ pbkdf2 hashing handler module. """ import hashlib import re import pyrin.configuration.services as config_services import pyrin.security.utils.services as security_utils_services from pyrin.security.hashing.decorators import hashing from pyrin.security.hashing.handlers.base import Hashing...
39.094262
93
0.588636
c42e18634a20b6733cded46ea5994450f7ae4da0
8,652
py
Python
src/steps/prepare_ner_data.py
allanwright/media-classifier
a0da0799cc0bd6ef7360012c362f9fab273286c6
[ "MIT" ]
2
2019-08-16T00:49:27.000Z
2021-08-15T16:37:45.000Z
src/steps/prepare_ner_data.py
allanwright/media-classifier
a0da0799cc0bd6ef7360012c362f9fab273286c6
[ "MIT" ]
1
2020-02-19T10:17:56.000Z
2020-07-26T09:42:49.000Z
src/steps/prepare_ner_data.py
allanwright/media-classifier
a0da0799cc0bd6ef7360012c362f9fab273286c6
[ "MIT" ]
1
2019-06-27T10:57:07.000Z
2019-06-27T10:57:07.000Z
'''Defines a pipeline step which prepares training and test data for named entity recognition. ''' import ast import json import pickle from mccore import EntityRecognizer from mccore import ner from mccore import persistence import pandas as pd from sklearn.utils import resample from src.step import Step
36.05
98
0.496417
c42e658ca9b791acfc8cc494fe87a5ee5b2f994f
1,006
py
Python
jubakit/test/__init__.py
vishalbelsare/jubakit
f6252ba627ce4e2e42eb9aafaaf05c882bc1c678
[ "MIT" ]
12
2016-04-11T04:49:08.000Z
2019-02-08T01:43:46.000Z
jubakit/test/__init__.py
vishalbelsare/jubakit
f6252ba627ce4e2e42eb9aafaaf05c882bc1c678
[ "MIT" ]
138
2016-04-11T05:57:48.000Z
2020-09-26T03:09:31.000Z
jubakit/test/__init__.py
vishalbelsare/jubakit
f6252ba627ce4e2e42eb9aafaaf05c882bc1c678
[ "MIT" ]
10
2016-04-11T03:18:45.000Z
2018-04-14T10:11:15.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals __all__ = ['requireSklearn'] from jubakit.compat import PYTHON3 try: import embedded_jubatus embedded_available = True except ImportError: embedded_available = False try: import numpy import scipy ...
26.473684
82
0.777336
c42e88219fc65a0c84a4b46fac98f1c167ea84ef
9,859
py
Python
YoLo2Net.py
zhouyc2002/yolo2-cntk
549cb46365d1750031eee90044b6262f9b94ff49
[ "Apache-2.0" ]
3
2017-07-27T00:05:39.000Z
2021-02-25T08:56:10.000Z
YoLo2Net.py
zhouyc2002/yolo2-cntk
549cb46365d1750031eee90044b6262f9b94ff49
[ "Apache-2.0" ]
1
2019-08-05T12:55:06.000Z
2019-08-06T00:43:58.000Z
YoLo2Net.py
zhouyc2002/yolo2-cntk
549cb46365d1750031eee90044b6262f9b94ff49
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jun 28 13:03:05 2017 @author: ZHOU Yuncheng """ import cntk as C import _cntk_py import cntk.layers import cntk.initializer import cntk.losses import cntk.metrics import cntk.logging import cntk.io.transforms as xforms import cntk.io import cntk.train import os import numpy ...
39.436
171
0.647733
c42f5f63c17465e80eb4449fa0bfca6ef5e47655
948
py
Python
hqq_tool/rongcloud/demo.py
yaoruda/DRFLearning
6b17ef0d557142e8563d80788351f8b7ab94f248
[ "MIT" ]
1
2018-09-21T09:42:02.000Z
2018-09-21T09:42:02.000Z
hqq_tool/rongcloud/demo.py
yaoruda/DRFLearning
6b17ef0d557142e8563d80788351f8b7ab94f248
[ "MIT" ]
null
null
null
hqq_tool/rongcloud/demo.py
yaoruda/DRFLearning
6b17ef0d557142e8563d80788351f8b7ab94f248
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # __author__= "Ruda" # Date: 2018/10/16 ''' import os from rongcloud import RongCloud app_key = os.environ['APP_KEY'] app_secret = os.environ['APP_SECRET'] rcloud = RongCloud(app_key, app_secret) r = rcloud.User.getToken(userId='userid1', name='username', portraitUri='http://www.rongcloud.c...
27.085714
143
0.679325
c4311123dd5258af551865a612948896d2a1bbc9
2,132
py
Python
registration/email.py
openstack-kr/openinfradays-2018
9eb0e284ab95e177dc4acca17d63ccbdaff67fb1
[ "Apache-2.0" ]
null
null
null
registration/email.py
openstack-kr/openinfradays-2018
9eb0e284ab95e177dc4acca17d63ccbdaff67fb1
[ "Apache-2.0" ]
1
2018-06-17T02:21:41.000Z
2018-06-17T02:21:41.000Z
registration/email.py
openstack-kr/openinfradays-2018
9eb0e284ab95e177dc4acca17d63ccbdaff67fb1
[ "Apache-2.0" ]
1
2018-05-31T11:39:02.000Z
2018-05-31T11:39:02.000Z
from django.core.mail import EmailMessage from django.conf import settings
38.071429
147
0.60272
c431a581714f033cba2ab3f52062e3fdddf8f0b8
5,767
py
Python
train_ema.py
qym7/WTALFakeLabels
139738025ab69f287c4fe3c97389a637f1a0b376
[ "MIT" ]
3
2021-12-24T09:27:42.000Z
2022-01-03T10:59:47.000Z
train_ema.py
qym7/WTALFakeLabels
139738025ab69f287c4fe3c97389a637f1a0b376
[ "MIT" ]
1
2021-12-26T02:40:40.000Z
2021-12-26T02:50:26.000Z
train_ema.py
qym7/WTALFakeLabels
139738025ab69f287c4fe3c97389a637f1a0b376
[ "MIT" ]
null
null
null
''' Author: your name Date: 2021-12-25 17:33:51 LastEditTime: 2021-12-29 10:10:14 LastEditors: Please set LastEditors Description: koroFileHeader : https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE FilePath: /yimingqin/code/WTAL-Uncertainty-Modeling/train.py ''' import torch import torch.nn as nn impor...
38.704698
106
0.602393
c43395c47fe6f6295740535434326b1a38c6e0c8
3,597
py
Python
scan/fetchers/cli/cli_fetch_oteps_lxb.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
scan/fetchers/cli/cli_fetch_oteps_lxb.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
scan/fetchers/cli/cli_fetch_oteps_lxb.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
############################################################################### # Copyright (c) 2017-2020 Koren Lev (Cisco Systems), # # Yaron Yogev (Cisco Systems), Ilia Abashin (Cisco Systems) and others # # # ...
43.865854
79
0.512093
c433cd175dc051909207a6a2031e2dac3b9eff92
612
py
Python
appengine_config.py
ioriwitte/datavocab
5f99c679a23a164ab93ac1bcaf9a30a01728ee37
[ "Apache-2.0" ]
13
2019-12-03T15:25:55.000Z
2021-10-16T00:18:47.000Z
appengine_config.py
jesman/schemaorg
6649c41e56a9724eaeed25dedf67736258f922bf
[ "Apache-2.0" ]
11
2019-10-16T12:34:11.000Z
2021-02-04T11:23:03.000Z
appengine_config.py
jesman/schemaorg
6649c41e56a9724eaeed25dedf67736258f922bf
[ "Apache-2.0" ]
9
2017-12-13T08:07:48.000Z
2019-06-18T14:30:12.000Z
"""`appengine_config` gets loaded when starting a new application instance.""" import vendor # insert `lib` as a site directory so our `main` module can load # third-party libraries, and override built-ins with newer # versions. vendor.add('lib') import os # Called only if the current namespace is not set.
38.25
78
0.756536
c433ed35cefab756913c6887caed7bdb03a9f9e5
270
py
Python
10_KNN_3D/main.py
ManMohan291/PyProgram
edcaa927bd70676bd14355acad7262ae2d32b8e5
[ "MIT" ]
2
2018-09-07T17:44:54.000Z
2018-09-07T17:44:57.000Z
10_KNN_3D/main.py
ManMohan291/PyProgram
edcaa927bd70676bd14355acad7262ae2d32b8e5
[ "MIT" ]
null
null
null
10_KNN_3D/main.py
ManMohan291/PyProgram
edcaa927bd70676bd14355acad7262ae2d32b8e5
[ "MIT" ]
null
null
null
import KNN as K K.clearScreen() dataTraining= K.loadData("dataTraining.txt") X=dataTraining[:,0:3] initial_centroids=K.listToArray([[3, 3,3],[6, 2,4],[8,5,7]]) idx=K.KMean_Run(X,initial_centroids,5) K.SaveData(K.concatenateVectors(X,idx)) K.plotKNN2(X,idx)
12.272727
60
0.703704
c434ee7e49ec7f84e8ed989b7259f62a6d292fde
3,793
py
Python
hummingbird/graphics/state_plotbox.py
don4get/hummingbird
ec9da37b74f17702201f475d79b842f41694c095
[ "MIT" ]
null
null
null
hummingbird/graphics/state_plotbox.py
don4get/hummingbird
ec9da37b74f17702201f475d79b842f41694c095
[ "MIT" ]
null
null
null
hummingbird/graphics/state_plotbox.py
don4get/hummingbird
ec9da37b74f17702201f475d79b842f41694c095
[ "MIT" ]
null
null
null
#!/usr/bin/env python import pyqtgraph as pg from pyqtgraph import ViewBox from hummingbird.graphics.plotter_args import PlotBoxArgs from hummingbird.graphics.state_plot import StatePlot
35.12037
108
0.627472
c4355d1898179dbc210d3d0618bca78d79edd5b7
348
py
Python
quizapp/jsonify_quiz_output.py
malgulam/100ProjectsOfCode
95026b15d858a6e97dfd847c5ec576bbc260ff61
[ "MIT" ]
8
2020-12-13T16:15:34.000Z
2021-11-13T22:45:28.000Z
quizapp/jsonify_quiz_output.py
malgulam/100ProjectsOfCode
95026b15d858a6e97dfd847c5ec576bbc260ff61
[ "MIT" ]
1
2021-06-02T03:42:39.000Z
2021-06-02T03:42:39.000Z
quizapp/jsonify_quiz_output.py
malgulam/100ProjectsOfCode
95026b15d858a6e97dfd847c5ec576bbc260ff61
[ "MIT" ]
1
2020-12-14T20:01:14.000Z
2020-12-14T20:01:14.000Z
import json #start print('start') with open('quizoutput.txt') as f: lines = f.readlines() print('loaded quiz data') print('changing to json') json_output = json.loads(lines[0]) print(json_output) with open('quizoutput.txt', 'w') as f: f.write(json_output) # for item in json_output: # print(item['ques...
19.333333
38
0.666667
c43704aafbacbc4c468d75623400e2f129cb8ef2
6,544
py
Python
panku/lambdaCollect.py
mccartney/panku-gdzie-jestes
50a677170162c5255a24eacdbf8062ad876bee3f
[ "MIT" ]
null
null
null
panku/lambdaCollect.py
mccartney/panku-gdzie-jestes
50a677170162c5255a24eacdbf8062ad876bee3f
[ "MIT" ]
null
null
null
panku/lambdaCollect.py
mccartney/panku-gdzie-jestes
50a677170162c5255a24eacdbf8062ad876bee3f
[ "MIT" ]
null
null
null
#!/usr/bin/python import requests import boto3 import time import geopy.distance import xml.etree.ElementTree as ET import itertools import sys import pickle S3_BUCKET = "panku-gdzie-jestes-latest-storage" def lambda_handler(event, context): services = [Traficar, Veturilo, Panek] for service in services: prin...
38.046512
137
0.636461
c4372286ca07457197e0279205b6dabde1342c8d
1,412
py
Python
data/migrations/0039_2_data_update_questionnaires_vmsettings.py
Duke-GCB/bespin-api
cea5c20fb2ff592adabe6ebb7ca934939aa11a34
[ "MIT" ]
null
null
null
data/migrations/0039_2_data_update_questionnaires_vmsettings.py
Duke-GCB/bespin-api
cea5c20fb2ff592adabe6ebb7ca934939aa11a34
[ "MIT" ]
137
2016-12-09T18:59:45.000Z
2021-06-10T18:55:47.000Z
data/migrations/0039_2_data_update_questionnaires_vmsettings.py
Duke-GCB/bespin-api
cea5c20fb2ff592adabe6ebb7ca934939aa11a34
[ "MIT" ]
3
2017-11-14T16:05:58.000Z
2018-12-28T18:07:43.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2017-12-08 18:42 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion def update_questionnaires(apps, schema_editor): """ Forward migration function to normalize settings into VMSettings and C...
36.205128
112
0.71813
c438178586df87a3168fc1363cc17cdd53b3728e
4,872
py
Python
app/models.py
maxnovais/Flapy_Blog
e543faa4c8f99ef3a2cdb1470de507d9cfb330bf
[ "Apache-2.0" ]
null
null
null
app/models.py
maxnovais/Flapy_Blog
e543faa4c8f99ef3a2cdb1470de507d9cfb330bf
[ "Apache-2.0" ]
null
null
null
app/models.py
maxnovais/Flapy_Blog
e543faa4c8f99ef3a2cdb1470de507d9cfb330bf
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from . import db from config import COMMENTS_INITIAL_ENABLED from flask.ext.security import UserMixin, RoleMixin from markdown import markdown import bleach # Define models roles_users = db.Table( 'roles_users', db.Column('user_id', db.Integer(), db.ForeignKey('user.id')), db....
36.909091
77
0.632389
c43aafbe58eb02eba9cd936508eecb607d118824
751
py
Python
8.1-triple-step.py
rithvikp1998/ctci
52068e94449e61aef6bac9646a7863260acc7a05
[ "MIT" ]
null
null
null
8.1-triple-step.py
rithvikp1998/ctci
52068e94449e61aef6bac9646a7863260acc7a05
[ "MIT" ]
null
null
null
8.1-triple-step.py
rithvikp1998/ctci
52068e94449e61aef6bac9646a7863260acc7a05
[ "MIT" ]
null
null
null
''' If the child is currently on the nth step, then there are three possibilites as to how it reached there: 1. Reached (n-3)th step and hopped 3 steps in one time 2. Reached (n-2)th step and hopped 2 steps in one time 3. Reached (n-1)th step and hopped 2 steps in one time The total number of possibilities is the sum...
25.896552
79
0.701731
c43e6b9c823f200efcc9e2b9380194f0c4a67a27
9,604
py
Python
terrain_relative_navigation/peak_extractor_algorithm.py
rschwa6308/Landmark-Based-TRN
5d712221138ec6250ed5bd19caed49810f17014e
[ "Apache-2.0" ]
null
null
null
terrain_relative_navigation/peak_extractor_algorithm.py
rschwa6308/Landmark-Based-TRN
5d712221138ec6250ed5bd19caed49810f17014e
[ "Apache-2.0" ]
null
null
null
terrain_relative_navigation/peak_extractor_algorithm.py
rschwa6308/Landmark-Based-TRN
5d712221138ec6250ed5bd19caed49810f17014e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ /*************************************************************************** PeakExtractor A QGIS plugin This plugin procedurally extracts morphological peaks from a given DEM. Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/ ...
32.890411
138
0.570596
c43f47ff2e792fe2c4acc6424f3c4c0fdde3ecb2
3,657
py
Python
manila/tests/api/views/test_quota_class_sets.py
openstack/manila
1ebae738c235c6f1874ac7b11307e0d5fb567dba
[ "Apache-2.0" ]
159
2015-01-02T09:35:15.000Z
2022-01-04T11:51:34.000Z
manila/tests/api/views/test_quota_class_sets.py
openstack/manila
1ebae738c235c6f1874ac7b11307e0d5fb567dba
[ "Apache-2.0" ]
5
2015-07-24T09:28:21.000Z
2020-11-20T04:33:51.000Z
manila/tests/api/views/test_quota_class_sets.py
openstack/manila
1ebae738c235c6f1874ac7b11307e0d5fb567dba
[ "Apache-2.0" ]
128
2015-01-05T22:52:28.000Z
2021-12-29T14:00:58.000Z
# Copyright (c) 2017 Mirantis, 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...
41.089888
79
0.654908
c441a8d53ebaea6e35e7d68f0992cf2efeee375b
2,429
py
Python
tests/sequence_utils_test.py
rmcolq/genofunk
ffa031fb361fc736e839d0e36d36f8ed7ade30dc
[ "MIT" ]
1
2021-01-09T23:25:02.000Z
2021-01-09T23:25:02.000Z
tests/sequence_utils_test.py
rmcolq/genofunk
ffa031fb361fc736e839d0e36d36f8ed7ade30dc
[ "MIT" ]
null
null
null
tests/sequence_utils_test.py
rmcolq/genofunk
ffa031fb361fc736e839d0e36d36f8ed7ade30dc
[ "MIT" ]
null
null
null
import os import unittest import json import filecmp from genofunk.sequence_utils import * this_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
34.211268
94
0.645533
c442b7615909101f05f7c648d2d237c13e312b98
1,630
py
Python
Modules/Biophotonics/python/iMC/msi/test/test_nrrdwriter.py
SVRTK/MITK
52252d60e42702e292d188e30f6717fe50c23962
[ "BSD-3-Clause" ]
5
2015-02-05T10:58:41.000Z
2019-04-17T15:04:07.000Z
Modules/Biophotonics/python/iMC/msi/test/test_nrrdwriter.py
wyyrepo/MITK
d0837f3d0d44f477b888ec498e9a2ed407e79f20
[ "BSD-3-Clause" ]
141
2015-03-03T06:52:01.000Z
2020-12-10T07:28:14.000Z
Modules/Biophotonics/python/iMC/msi/test/test_nrrdwriter.py
wyyrepo/MITK
d0837f3d0d44f477b888ec498e9a2ed407e79f20
[ "BSD-3-Clause" ]
4
2015-02-19T06:48:13.000Z
2020-06-19T16:20:25.000Z
# -*- coding: utf-8 -*- """ Created on Thu Aug 13 09:52:47 2015 @author: wirkert """ import unittest import os import numpy as np import msi.msimanipulations as msimani from msi.io.nrrdreader import NrrdReader from msi.io.nrrdwriter import NrrdWriter from msi.test import helpers
29.636364
76
0.633129
c4438dbc98a70b3fe8296d0282cdfe5e4623856b
3,369
py
Python
crossplatformshell/__init__.py
ryanpdwyer/crossplatformshell
d6239ae362cff42faffc85714f7a5e1b56dc6463
[ "MIT" ]
null
null
null
crossplatformshell/__init__.py
ryanpdwyer/crossplatformshell
d6239ae362cff42faffc85714f7a5e1b56dc6463
[ "MIT" ]
null
null
null
crossplatformshell/__init__.py
ryanpdwyer/crossplatformshell
d6239ae362cff42faffc85714f7a5e1b56dc6463
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ ============================ crossplatformshell ============================ """ from __future__ import (print_function, division, absolute_import, unicode_literals) import pathlib import io import os import shutil import distutils.dir_util import platform # Use subp...
23.234483
74
0.62808
c444346fedeae3b1a36842a83b1d34e2d12fa382
28,857
py
Python
collections/nemo_nlp/nemo_nlp/data/data_layers.py
Giuseppe5/NeMo
f946aca100c9a1bf22e6bd25fba9f80299722112
[ "Apache-2.0" ]
2
2020-05-12T05:16:10.000Z
2021-12-01T02:30:45.000Z
collections/nemo_nlp/nemo_nlp/data/data_layers.py
Giuseppe5/NeMo
f946aca100c9a1bf22e6bd25fba9f80299722112
[ "Apache-2.0" ]
3
2020-11-13T17:45:41.000Z
2022-03-12T00:28:59.000Z
collections/nemo_nlp/nemo_nlp/data/data_layers.py
Giuseppe5/NeMo
f946aca100c9a1bf22e6bd25fba9f80299722112
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 NVIDIA Corporation # If you want to add your own data layer, you should put its name in # __all__ so that it can be imported with 'from text_data_layers import *' __all__ = ['TextDataLayer', 'BertSentenceClassificationDataLayer', 'BertJointIntentSlotDataLayer', '...
34.851449
79
0.537547
c446129e206d55ad3a8c2ed465762b2ddf662a3e
12,208
py
Python
h2o-py/h2o/automl/_base.py
vishalbelsare/h2o-3
9322fb0f4c0e2358449e339a434f607d524c69fa
[ "Apache-2.0" ]
null
null
null
h2o-py/h2o/automl/_base.py
vishalbelsare/h2o-3
9322fb0f4c0e2358449e339a434f607d524c69fa
[ "Apache-2.0" ]
58
2021-10-01T12:43:37.000Z
2021-12-08T22:58:43.000Z
h2o-py/h2o/automl/_base.py
vishalbelsare/h2o-3
9322fb0f4c0e2358449e339a434f607d524c69fa
[ "Apache-2.0" ]
null
null
null
import h2o from h2o.base import Keyed from h2o.exceptions import H2OValueError from h2o.job import H2OJob from h2o.model import ModelBase from h2o.utils.typechecks import assert_is_type, is_type def get_best_model(self, algorithm=None, criterion=None): """ Get best model of a given family/algorith...
42.096552
173
0.63442
c44725a87dd7a0e5d3208fe6f2ccd197531d2ad1
2,687
py
Python
Pistol.py
KRHS-GameProgramming-2014/survival-island
375b2710a2bc29551170b18638e2c00c6b2dc7c5
[ "BSD-3-Clause" ]
1
2015-04-01T12:46:26.000Z
2015-04-01T12:46:26.000Z
Pistol.py
KRHS-GameProgramming-2014/survival-island
375b2710a2bc29551170b18638e2c00c6b2dc7c5
[ "BSD-3-Clause" ]
null
null
null
Pistol.py
KRHS-GameProgramming-2014/survival-island
375b2710a2bc29551170b18638e2c00c6b2dc7c5
[ "BSD-3-Clause" ]
null
null
null
import math,sys,pygame
33.17284
79
0.519166
c447c656ac034795409e4bb710eaaca13a84688c
3,388
py
Python
appdaemon/apps/common/common.py
Mithras/ha
d37f8673eed27a85f76c97ee3e924d2ddc033ee5
[ "MIT" ]
3
2019-10-27T06:10:26.000Z
2020-07-21T01:27:11.000Z
appdaemon/apps/common/common.py
Mithras/ha
d37f8673eed27a85f76c97ee3e924d2ddc033ee5
[ "MIT" ]
null
null
null
appdaemon/apps/common/common.py
Mithras/ha
d37f8673eed27a85f76c97ee3e924d2ddc033ee5
[ "MIT" ]
null
null
null
import hassapi as hass import csv from collections import namedtuple Profile = namedtuple( "Profile", ["profile", "x_color", "y_color", "brightness"]) with open("/config/light_profiles.csv") as profiles_file: profiles_reader = csv.reader(profiles_file) next(profiles_reader) LIGHT_PROFILES = [Profile(r...
41.317073
80
0.602715
c448522cb4d655aac706a30087c1d285bd8f1d0f
3,133
py
Python
src/mongo_model.py
zxteloiv/curated-geokb-subsearcher
8f42dca4cb293ccf3baf25bb31ba9b6cd6a76c8d
[ "MIT" ]
null
null
null
src/mongo_model.py
zxteloiv/curated-geokb-subsearcher
8f42dca4cb293ccf3baf25bb31ba9b6cd6a76c8d
[ "MIT" ]
null
null
null
src/mongo_model.py
zxteloiv/curated-geokb-subsearcher
8f42dca4cb293ccf3baf25bb31ba9b6cd6a76c8d
[ "MIT" ]
null
null
null
# coding: utf-8 from pymongo import MongoClient import conf
34.054348
99
0.452601
c448639417746f765b5ac2d5c6459142e8c6a83b
8,809
py
Python
src/dcm/agent/plugins/builtin/configure_server.py
JPWKU/unix-agent
8f1278fc8c2768a8d4d54af642a881bace43652f
[ "Apache-2.0" ]
null
null
null
src/dcm/agent/plugins/builtin/configure_server.py
JPWKU/unix-agent
8f1278fc8c2768a8d4d54af642a881bace43652f
[ "Apache-2.0" ]
22
2015-09-15T20:52:34.000Z
2016-03-11T22:44:24.000Z
src/dcm/agent/plugins/builtin/configure_server.py
JPWKU/unix-agent
8f1278fc8c2768a8d4d54af642a881bace43652f
[ "Apache-2.0" ]
3
2015-09-11T20:21:33.000Z
2016-09-30T08:30:19.000Z
# # Copyright (C) 2014 Dell, 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 agreed to in wri...
38.635965
79
0.595187
c44957a976ba959e51bd70f903dcac90438fe807
17,184
py
Python
phy/plot/interact.py
ycanerol/phy
7a247f926dd5bf5d8ab95fe138e8f4a0db11b068
[ "BSD-3-Clause" ]
118
2019-06-03T06:19:43.000Z
2022-03-25T00:05:26.000Z
phy/plot/interact.py
ycanerol/phy
7a247f926dd5bf5d8ab95fe138e8f4a0db11b068
[ "BSD-3-Clause" ]
761
2015-01-08T11:17:41.000Z
2019-05-27T16:12:08.000Z
phy/plot/interact.py
ycanerol/phy
7a247f926dd5bf5d8ab95fe138e8f4a0db11b068
[ "BSD-3-Clause" ]
70
2019-05-30T11:05:26.000Z
2022-03-30T11:51:23.000Z
# -*- coding: utf-8 -*- """Common layouts.""" #------------------------------------------------------------------------------ # Imports #------------------------------------------------------------------------------ import logging import numpy as np from phylib.utils import emit from phylib.utils.geometry import g...
33.694118
97
0.557437
c44cda7d547bb9bf0fd8879defc0c14046119449
623
py
Python
AutocompleteHandler.py
codeforamerica/sheltraustin
a07ffd4b328a9d961347a85b49c95d8bf5ec1046
[ "BSD-3-Clause" ]
null
null
null
AutocompleteHandler.py
codeforamerica/sheltraustin
a07ffd4b328a9d961347a85b49c95d8bf5ec1046
[ "BSD-3-Clause" ]
1
2015-08-03T21:27:36.000Z
2015-08-03T21:27:36.000Z
AutocompleteHandler.py
codeforamerica/sheltraustin
a07ffd4b328a9d961347a85b49c95d8bf5ec1046
[ "BSD-3-Clause" ]
1
2021-04-17T10:13:29.000Z
2021-04-17T10:13:29.000Z
import tornado.httpserver import tornado.ioloop import tornado.options import tornado.web import simplejson from QueryHandler import QueryHandler
23.074074
62
0.746388
c44d0eafae3c92e64f9041228d582ce1a1b6ed30
1,869
py
Python
mirari/SV/migrations/0052_auto_20190428_1522.py
gcastellan0s/mirariapp
24a9db06d10f96c894d817ef7ccfeec2a25788b7
[ "MIT" ]
null
null
null
mirari/SV/migrations/0052_auto_20190428_1522.py
gcastellan0s/mirariapp
24a9db06d10f96c894d817ef7ccfeec2a25788b7
[ "MIT" ]
18
2019-12-27T19:58:20.000Z
2022-02-27T08:17:49.000Z
mirari/SV/migrations/0052_auto_20190428_1522.py
gcastellan0s/mirariapp
24a9db06d10f96c894d817ef7ccfeec2a25788b7
[ "MIT" ]
null
null
null
# Generated by Django 2.0.5 on 2019-04-28 20:22 from django.db import migrations, models import django.db.models.deletion
37.38
147
0.604066
c44d2937a78223f5c0f6b30adbd02a5949d5f2e6
3,339
py
Python
svl/compiler/plot_validators.py
timothyrenner/svl
a74c09c49f2e14046acd4b0eeb861f8fef6bca96
[ "MIT" ]
8
2019-03-27T12:49:21.000Z
2020-10-10T11:16:25.000Z
svl/compiler/plot_validators.py
timothyrenner/svl
a74c09c49f2e14046acd4b0eeb861f8fef6bca96
[ "MIT" ]
65
2018-08-26T14:48:45.000Z
2020-03-17T12:24:42.000Z
svl/compiler/plot_validators.py
timothyrenner/svl
a74c09c49f2e14046acd4b0eeb861f8fef6bca96
[ "MIT" ]
1
2019-09-13T19:39:07.000Z
2019-09-13T19:39:07.000Z
from toolz import get PLOT_VALIDATORS = [ ( {"line", "scatter", "bar"}, lambda x: ("x" not in x) or ("y" not in x), "XY plot does not have X and Y.", ), ( {"histogram"}, lambda x: ("step" in x) and ("bins" in x), "Histogram cannot have STEP and BINS.", ),...
29.289474
77
0.481881
c44dbf415c5fb9329410760b9f9c0e517b6fdb6f
7,421
py
Python
decision_tree.py
cjbayron/ml-models
b3171c9a82fe5ecdcdc5abcdc20af7c18f9f8ec4
[ "MIT" ]
1
2018-12-15T16:36:41.000Z
2018-12-15T16:36:41.000Z
decision_tree.py
cjbayron/ml-models
b3171c9a82fe5ecdcdc5abcdc20af7c18f9f8ec4
[ "MIT" ]
null
null
null
decision_tree.py
cjbayron/ml-models
b3171c9a82fe5ecdcdc5abcdc20af7c18f9f8ec4
[ "MIT" ]
null
null
null
''' Building a Decision Tree using CART (from scratch) Note: Code was tested only on dataset with numerical features. Categorical features are not yet fully supported. ''' import numpy as np import pandas as pd import matplotlib.pyplot as plt from sklearn.model_selection import train_test_split from sklearn.metrics im...
31.849785
87
0.597898
c44e49588a5ae8bdc21c7e3ab11388f043afd9f0
8,816
py
Python
codegen/codegen/fblas_routine.py
spcl/fblas
96425fbdbaeab6f43997d839836b8224a04f3b53
[ "BSD-3-Clause" ]
68
2019-02-07T21:30:21.000Z
2022-02-16T20:09:27.000Z
codegen/codegen/fblas_routine.py
spcl/fblas
96425fbdbaeab6f43997d839836b8224a04f3b53
[ "BSD-3-Clause" ]
2
2019-03-15T17:49:03.000Z
2019-07-24T14:05:35.000Z
codegen/codegen/fblas_routine.py
spcl/fblas
96425fbdbaeab6f43997d839836b8224a04f3b53
[ "BSD-3-Clause" ]
25
2019-03-15T03:00:15.000Z
2021-08-04T10:21:43.000Z
""" FBlas Routine class: it used to represent a routine definition, specified by the user using JSON file. It is used by the Host and Module Codegen (specified by the _codegen variable). Accordingly, some class members could be invalid. """ from codegen import fblas_types from codegen import generator_def...
27.810726
153
0.678993
c451451a751c9fd2575b893cf89c5f54e2fd8166
840
py
Python
test_hoyolab.py
c3kay/hoyolab-json-feed
43839194a253271c9c2fcbb564eb4b3e6179c01e
[ "Unlicense" ]
1
2021-09-17T12:40:40.000Z
2021-09-17T12:40:40.000Z
test_hoyolab.py
c3kay/hoyolab-json-feed
43839194a253271c9c2fcbb564eb4b3e6179c01e
[ "Unlicense" ]
null
null
null
test_hoyolab.py
c3kay/hoyolab-json-feed
43839194a253271c9c2fcbb564eb4b3e6179c01e
[ "Unlicense" ]
null
null
null
from hoyolab import main from os import environ from os.path import exists import atoma
24.705882
62
0.713095
c453263bed6e1f5fabe0695622acd9caad9d7447
194,112
py
Python
thirdweb/abi/nft_collection/__init__.py
princetonwong/python-sdk
f35181d97620e29d055498fca75f3702f3bb2449
[ "Apache-2.0" ]
1
2022-02-18T16:59:12.000Z
2022-02-18T16:59:12.000Z
thirdweb/abi/nft_collection/__init__.py
princetonwong/python-sdk
f35181d97620e29d055498fca75f3702f3bb2449
[ "Apache-2.0" ]
null
null
null
thirdweb/abi/nft_collection/__init__.py
princetonwong/python-sdk
f35181d97620e29d055498fca75f3702f3bb2449
[ "Apache-2.0" ]
null
null
null
"""Generated wrapper for NFTCollection Solidity contract.""" # pylint: disable=too-many-arguments import json from typing import ( # pylint: disable=unused-import Any, List, Optional, Tuple, Union, ) from eth_utils import to_checksum_address from mypy_extensions import TypedDict # pylint: disab...
37.684333
17,643
0.634865
c45419a203ad566f8ae9d52cc297219542ecf9f1
237
py
Python
sausage_grinder/urls.py
jesseerdmann/audiobonsai
ec1edcdbadc6b2aff3b743b5c42515f4d5638830
[ "Apache-2.0" ]
null
null
null
sausage_grinder/urls.py
jesseerdmann/audiobonsai
ec1edcdbadc6b2aff3b743b5c42515f4d5638830
[ "Apache-2.0" ]
null
null
null
sausage_grinder/urls.py
jesseerdmann/audiobonsai
ec1edcdbadc6b2aff3b743b5c42515f4d5638830
[ "Apache-2.0" ]
null
null
null
from django.urls import path from . import views as sg urlpatterns = [ path('artist', sg.artist), path('genre', sg.genre), path('release', sg.release), path('track', sg.track), path('', sg.sausage_grinder_index), ]
19.75
39
0.637131
c45577ce768212873fbaadfacdbe638ce864abf9
1,194
py
Python
sails/ui/mmck/parameters/string.py
metrasynth/solar-sails
3a10774dad29d85834d3acb38171741b3a11ef91
[ "MIT" ]
6
2016-11-22T14:32:55.000Z
2021-08-15T01:35:33.000Z
sails/ui/mmck/parameters/string.py
metrasynth/solar-sails
3a10774dad29d85834d3acb38171741b3a11ef91
[ "MIT" ]
2
2022-03-18T16:47:43.000Z
2022-03-18T16:47:44.000Z
sails/ui/mmck/parameters/string.py
metrasynth/solar-sails
3a10774dad29d85834d3acb38171741b3a11ef91
[ "MIT" ]
2
2019-07-09T23:44:08.000Z
2021-08-15T01:35:37.000Z
from PyQt5.QtCore import pyqtSlot from PyQt5.QtWidgets import QComboBox from PyQt5.QtWidgets import QLineEdit from sf.mmck.parameters import String from .manager import widget_class_for from .widget import ParameterWidget
35.117647
89
0.707705
c455ef3791cf634263613f0736425fbda6d62c4c
550
py
Python
plot_top_performers.py
jmphil09/mario_rl
6e93c1318e9957d679a5ec8d29687756ac7fc4b1
[ "MIT" ]
null
null
null
plot_top_performers.py
jmphil09/mario_rl
6e93c1318e9957d679a5ec8d29687756ac7fc4b1
[ "MIT" ]
null
null
null
plot_top_performers.py
jmphil09/mario_rl
6e93c1318e9957d679a5ec8d29687756ac7fc4b1
[ "MIT" ]
null
null
null
from FitnessPlot import FitnessPlot ''' for n in range(1,6): plot = FitnessPlot(folder_prefix='data_top{}'.format(n)) plot.plot_all_workers() plot.plot_workers_as_average() ''' plot = FitnessPlot(folder_prefix='data_top1', num_workers=16) worker_dict = plot.create_worker_dict() #plot.plot_all_workers() #...
23.913043
61
0.703636
c456582b3a99628d95abc79fe354227dac957e3b
3,696
py
Python
test/PySrc/tests/test_code_tracer_width.py
lifubang/live-py-plugin
38a3cf447fd7d9c4e6014b71134e178b0d8a01de
[ "MIT" ]
224
2015-03-22T23:40:52.000Z
2022-03-01T21:45:51.000Z
test/PySrc/tests/test_code_tracer_width.py
lifubang/live-py-plugin
38a3cf447fd7d9c4e6014b71134e178b0d8a01de
[ "MIT" ]
371
2015-04-28T05:14:00.000Z
2022-03-28T01:31:22.000Z
test/PySrc/tests/test_code_tracer_width.py
lifubang/live-py-plugin
38a3cf447fd7d9c4e6014b71134e178b0d8a01de
[ "MIT" ]
53
2015-10-30T07:52:07.000Z
2022-02-28T12:56:35.000Z
from space_tracer.main import replace_input, TraceRunner
25.666667
73
0.446699
c45760cde68ead756aaeedf9a4958bde55f0fdc2
458
py
Python
benchmark/src/benchmark/bench_logging.py
lwanfuturewei/QFlock
90d6875d9adc8fe2968694904f8421d41e30e189
[ "Apache-2.0" ]
null
null
null
benchmark/src/benchmark/bench_logging.py
lwanfuturewei/QFlock
90d6875d9adc8fe2968694904f8421d41e30e189
[ "Apache-2.0" ]
null
null
null
benchmark/src/benchmark/bench_logging.py
lwanfuturewei/QFlock
90d6875d9adc8fe2968694904f8421d41e30e189
[ "Apache-2.0" ]
2
2022-03-03T15:28:23.000Z
2022-03-04T15:33:19.000Z
import logging
26.941176
86
0.530568
c45814f676d4f4897bba48b176daa7d8a452554e
6,921
py
Python
tools/configure-gateway/threescale/proxies.py
jparsai/f8a-3scale-connect-api
a782753d662eee5d450da3c20e9ae9eb13b8b560
[ "Apache-2.0" ]
1
2018-09-14T05:18:52.000Z
2018-09-14T05:18:52.000Z
tools/configure-gateway/threescale/proxies.py
jparsai/f8a-3scale-connect-api
a782753d662eee5d450da3c20e9ae9eb13b8b560
[ "Apache-2.0" ]
48
2017-12-05T12:05:56.000Z
2021-03-25T22:09:29.000Z
tools/configure-gateway/threescale/proxies.py
jparsai/f8a-3scale-connect-api
a782753d662eee5d450da3c20e9ae9eb13b8b560
[ "Apache-2.0" ]
5
2018-01-29T04:53:13.000Z
2020-04-16T13:59:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ThreeScale Proxies Rule interface for APIs.""" from .base import ThreeScale import logging import requests import xmltodict import json logger = logging.getLogger(__name__)
38.237569
91
0.566681
c458cb4e772b1e30729560fd59117cb1dab40b05
241
py
Python
src/__main__.py
Grox2006/Kayambot
a49cf7fd16fdc049500ae645784cc671b04edf87
[ "MIT" ]
null
null
null
src/__main__.py
Grox2006/Kayambot
a49cf7fd16fdc049500ae645784cc671b04edf87
[ "MIT" ]
null
null
null
src/__main__.py
Grox2006/Kayambot
a49cf7fd16fdc049500ae645784cc671b04edf87
[ "MIT" ]
null
null
null
import sys from __init__ import Bot MESSAGE_USAGE = "Usage is python %s [name] [token]" if __name__ == "__main__": if len(sys.argv) == 3: Bot(sys.argv[1], sys.argv[2]) else: print(MESSAGE_USAGE.format(sys.argv[0]))
21.909091
51
0.630705
c45a35a45e18477dcb0c3a971fc4e41ecd533922
985
py
Python
app/__init__.py
logicalicy/flask-react-boilerplate
2a999c969a7fc7d244830ebba02a00f0feca79dd
[ "MIT" ]
2
2017-02-27T16:48:08.000Z
2019-05-10T11:22:07.000Z
app/__init__.py
logicalicy/flask-react-boilerplate
2a999c969a7fc7d244830ebba02a00f0feca79dd
[ "MIT" ]
null
null
null
app/__init__.py
logicalicy/flask-react-boilerplate
2a999c969a7fc7d244830ebba02a00f0feca79dd
[ "MIT" ]
null
null
null
# Created with tutorials: # https://www.digitalocean.com/community/tutorials/how-to-structure-large-flask-applications # http://flask.pocoo.org/docs/0.12/tutorial from flask import Flask, g, render_template from flask_sqlalchemy import SQLAlchemy import sqlite3 # Define WSGI application object. app = Flask(__name__...
25.921053
92
0.792893
c45c0b6aabc6d08c2689d66882739d5b4c1b5f06
19,075
py
Python
dumpcode/cpiter.py
gkfthddk/keras
46d96c65d69c39df298800336bbb4d867a2561fb
[ "MIT" ]
null
null
null
dumpcode/cpiter.py
gkfthddk/keras
46d96c65d69c39df298800336bbb4d867a2561fb
[ "MIT" ]
null
null
null
dumpcode/cpiter.py
gkfthddk/keras
46d96c65d69c39df298800336bbb4d867a2561fb
[ "MIT" ]
null
null
null
import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import subprocess import numpy as np import datetime import random import warnings import ROOT as rt import math from keras.preprocessing.sequence import pad_sequences from keras.callbacks import Callback from array import array from sklearn.metrics import roc_auc_sco...
39.739583
841
0.654522
c45d9da847d632f929a40311d340ee5e03a9dfff
287
py
Python
addons/iap_crm/models/crm_lead.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/iap_crm/models/crm_lead.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/iap_crm/models/crm_lead.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import fields, models
26.090909
99
0.703833
c45f0b40e801dd329eac9e771b4dd170e217817c
6,600
py
Python
vitrage/tests/unit/datasources/kubernetes/test_kubernetes_transformer.py
openstack/vitrage
95b33dbf39b040e23915882a2879c87aec239ca9
[ "Apache-2.0" ]
89
2015-09-30T21:42:17.000Z
2022-03-28T16:31:19.000Z
vitrage/tests/unit/datasources/kubernetes/test_kubernetes_transformer.py
openstack/vitrage
95b33dbf39b040e23915882a2879c87aec239ca9
[ "Apache-2.0" ]
4
2015-12-13T13:06:53.000Z
2016-01-03T19:51:28.000Z
vitrage/tests/unit/datasources/kubernetes/test_kubernetes_transformer.py
openstack/vitrage
95b33dbf39b040e23915882a2879c87aec239ca9
[ "Apache-2.0" ]
43
2015-11-04T15:54:27.000Z
2021-12-10T14:24:03.000Z
# Copyright 2018 - 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, sof...
39.759036
79
0.700455
c45fabb5527e1d2513cfd056db4a65258232ae26
1,058
py
Python
two_children.py
daniel2019-max/HackerRank-preparation-month
400f8c0cfaa9fc8e13a683c15ecb5d2341d9c209
[ "MIT" ]
null
null
null
two_children.py
daniel2019-max/HackerRank-preparation-month
400f8c0cfaa9fc8e13a683c15ecb5d2341d9c209
[ "MIT" ]
null
null
null
two_children.py
daniel2019-max/HackerRank-preparation-month
400f8c0cfaa9fc8e13a683c15ecb5d2341d9c209
[ "MIT" ]
null
null
null
# Two children, Lily and Ron, want to share a chocolate bar. Each of the squares has an integer on it. # Lily decides to share a contiguous segment of the bar selected such that: # The length of the segment matches Ron's birth month, and, # The sum of the integers on the squares is equal to his birth day. # Determine...
31.117647
102
0.670132
c46046acfa73778c21a31da519b8cdbcc2cefaef
3,517
py
Python
sdk/python/pulumi_sonarqube/get_users.py
jshield/pulumi-sonarqube
53664a97903af3ecdf4f613117d83d0acae8e53e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_sonarqube/get_users.py
jshield/pulumi-sonarqube
53664a97903af3ecdf4f613117d83d0acae8e53e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_sonarqube/get_users.py
jshield/pulumi-sonarqube
53664a97903af3ecdf4f613117d83d0acae8e53e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# 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 ...
31.972727
119
0.644868
c460565d7c12782c020979637ad1d6a595e59cab
504
py
Python
rl/valuefunction/FeatureExtractor.py
nickswalker/counterpoint-reinforcement-learning
1d0481bd2c9976533175339e411a41f4eb1650aa
[ "MIT" ]
1
2016-12-09T18:29:30.000Z
2016-12-09T18:29:30.000Z
rl/valuefunction/FeatureExtractor.py
nickswalker/counterpoint-reinforcement-learning
1d0481bd2c9976533175339e411a41f4eb1650aa
[ "MIT" ]
null
null
null
rl/valuefunction/FeatureExtractor.py
nickswalker/counterpoint-reinforcement-learning
1d0481bd2c9976533175339e411a41f4eb1650aa
[ "MIT" ]
null
null
null
from abc import abstractmethod from typing import List from rl.action import Action from rl.state import State
19.384615
67
0.684524
c4606fc8327fb668e73c4a4c899e2f956318eefb
563
py
Python
yxf_utils/jsonx.py
yanyaming/yxf_utils
c1e1f7012f089374088210e55a953548b3c4da8b
[ "MIT" ]
null
null
null
yxf_utils/jsonx.py
yanyaming/yxf_utils
c1e1f7012f089374088210e55a953548b3c4da8b
[ "MIT" ]
null
null
null
yxf_utils/jsonx.py
yanyaming/yxf_utils
c1e1f7012f089374088210e55a953548b3c4da8b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ json """ import json # jsonpythonor # json-pythonor # pythonjsonjson
20.851852
58
0.735346
c4611f97e3d7c75a5d43b772cd3ffe6b29e5f96b
1,044
py
Python
ggshield/scan/scannable_errors.py
rgajason/gg-shield
45c3534bdd174880710b97aedac068f6ddd52eaf
[ "MIT" ]
null
null
null
ggshield/scan/scannable_errors.py
rgajason/gg-shield
45c3534bdd174880710b97aedac068f6ddd52eaf
[ "MIT" ]
1
2021-06-02T04:28:09.000Z
2021-06-02T04:28:09.000Z
ggshield/scan/scannable_errors.py
rgajason/gg-shield
45c3534bdd174880710b97aedac068f6ddd52eaf
[ "MIT" ]
null
null
null
from ast import literal_eval from typing import Dict, List import click from pygitguardian.models import Detail from ggshield.text_utils import STYLE, display_error, format_text, pluralize
32.625
80
0.598659
c461b7cff1ea76d96382e29fc4f6db6ef1e4b933
18,049
py
Python
Packs/Base/Scripts/DBotPreprocessTextData/DBotPreprocessTextData.py
matan-xmcyber/content
7f02301c140b35956af3cd20cb8dfc64f34afb3e
[ "MIT" ]
1
2021-08-07T00:21:58.000Z
2021-08-07T00:21:58.000Z
Packs/Base/Scripts/DBotPreprocessTextData/DBotPreprocessTextData.py
matan-xmcyber/content
7f02301c140b35956af3cd20cb8dfc64f34afb3e
[ "MIT" ]
48
2022-03-08T13:45:00.000Z
2022-03-31T14:32:05.000Z
Packs/Base/Scripts/DBotPreprocessTextData/DBotPreprocessTextData.py
matan-xmcyber/content
7f02301c140b35956af3cd20cb8dfc64f34afb3e
[ "MIT" ]
2
2020-12-10T12:02:45.000Z
2020-12-15T09:20:01.000Z
# pylint: disable=no-member from CommonServerUserPython import * from CommonServerPython import * from sklearn.feature_extraction.text import TfidfVectorizer import pickle import uuid import spacy import string from html.parser import HTMLParser from html import unescape from re import compile as _Re import pandas as p...
40.559551
120
0.633165
c464ae6c792d78df3c469e563d6a59248c7a5e64
2,799
py
Python
punc_recover/tester/punc_tester.py
Z-yq/audioSamples.github.io
53c474288f0db1a3acfe40ba57a4cd5f2aecbcd3
[ "Apache-2.0" ]
1
2022-03-03T02:51:55.000Z
2022-03-03T02:51:55.000Z
punc_recover/tester/punc_tester.py
RapidAI/TensorflowASR
084519b5a0464f465e1d72c24cba07c1ec55cd26
[ "Apache-2.0" ]
null
null
null
punc_recover/tester/punc_tester.py
RapidAI/TensorflowASR
084519b5a0464f465e1d72c24cba07c1ec55cd26
[ "Apache-2.0" ]
null
null
null
import logging import os import tensorflow as tf from punc_recover.models.punc_transformer import PuncTransformer from punc_recover.tester.base_tester import BaseTester from utils.text_featurizers import TextFeaturizer
36.350649
94
0.599857
c464fcd2cef62b8d92f36f587767dd193dd32e2a
13,293
py
Python
moztrap/model/core/migrations/0003_auto__add_field_productversion_cc_version__add_field_product.py
mbeko/moztrap
db75e1f8756ef2c0c39652a66302b19c8afa0256
[ "BSD-2-Clause" ]
null
null
null
moztrap/model/core/migrations/0003_auto__add_field_productversion_cc_version__add_field_product.py
mbeko/moztrap
db75e1f8756ef2c0c39652a66302b19c8afa0256
[ "BSD-2-Clause" ]
null
null
null
moztrap/model/core/migrations/0003_auto__add_field_productversion_cc_version__add_field_product.py
mbeko/moztrap
db75e1f8756ef2c0c39652a66302b19c8afa0256
[ "BSD-2-Clause" ]
null
null
null
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models
85.76129
187
0.568871