hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
84f1ba58276b441ec0efba4e71b268d5818704a9
1,036
py
Python
Notlar/ahmetbaran/OOP_2_Encapsulation.py
ibrahimediz/ornekproje
c5ebeafc43a9c6d2aa639d0d95eedbce65991576
[ "Apache-2.0" ]
null
null
null
Notlar/ahmetbaran/OOP_2_Encapsulation.py
ibrahimediz/ornekproje
c5ebeafc43a9c6d2aa639d0d95eedbce65991576
[ "Apache-2.0" ]
null
null
null
Notlar/ahmetbaran/OOP_2_Encapsulation.py
ibrahimediz/ornekproje
c5ebeafc43a9c6d2aa639d0d95eedbce65991576
[ "Apache-2.0" ]
null
null
null
class A: def __init__(self,yetki): self.yetki = yetki self.__gizli = 2 # __gizli gizli # __gizli_ gizli # __gizli__ gizli değil obj1 = A(1) print(obj1.yetki) # print(obj1.__gizli) # AttributeError: 'A' object has no attribute '__gizli' class A: def __init__(self,yetki): self.yetki = ye...
26.564103
77
0.572394
49ebe786db926dc0ed7c1ea2d2ebc8822fe87825
2,572
py
Python
test/MSVC/hierarchical.py
jcassagnol-public/scons
8eaf585a893757e68c9e4a6e25d375021fa5eab7
[ "MIT" ]
1,403
2017-11-23T14:24:01.000Z
2022-03-30T20:59:39.000Z
test/MSVC/hierarchical.py
jcassagnol-public/scons
8eaf585a893757e68c9e4a6e25d375021fa5eab7
[ "MIT" ]
3,708
2017-11-27T13:47:12.000Z
2022-03-29T17:21:17.000Z
test/MSVC/hierarchical.py
jcassagnol-public/scons
8eaf585a893757e68c9e4a6e25d375021fa5eab7
[ "MIT" ]
281
2017-12-01T23:48:38.000Z
2022-03-31T15:25:44.000Z
#!/usr/bin/env python # # MIT License # # Copyright The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to us...
27.655914
74
0.729782
6a1223d96b629f7f36a99805a57127aa1d59f096
538
py
Python
web/manage.py
karlbishnu/NotZam
5b3ec35a383b56f38fe623cb228063d13c1d3d91
[ "MIT" ]
null
null
null
web/manage.py
karlbishnu/NotZam
5b3ec35a383b56f38fe623cb228063d13c1d3d91
[ "MIT" ]
1
2018-11-27T06:41:17.000Z
2018-11-27T06:41:17.000Z
web/manage.py
karlbishnu/NotZam
5b3ec35a383b56f38fe623cb228063d13c1d3d91
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'NotZam.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are y...
33.625
73
0.685874
61efc2de0856dfcbefe21bc60eb9db2ddcccbdbe
43,056
py
Python
libs/Theano/theano/gof/destroyhandler.py
dendisuhubdy/attention-lvcsr
598d487c118e66875fdd625baa84ed29d283b800
[ "MIT" ]
295
2015-09-25T21:15:04.000Z
2022-01-13T01:16:18.000Z
libs/Theano/theano/gof/destroyhandler.py
shenshenzhanzhan/attention-lvcsr
598d487c118e66875fdd625baa84ed29d283b800
[ "MIT" ]
21
2015-10-28T19:06:32.000Z
2022-03-11T23:13:05.000Z
libs/Theano/theano/gof/destroyhandler.py
shenshenzhanzhan/attention-lvcsr
598d487c118e66875fdd625baa84ed29d283b800
[ "MIT" ]
114
2015-09-26T21:23:02.000Z
2021-11-19T02:36:41.000Z
""" Classes and functions for validating graphs that contain view and inplace operations. """ from collections import deque from six import iteritems import theano from . import toolbox from . import graph from theano.compat import OrderedDict from theano.misc.ordered_set import OrderedSet from .fg import Inconsist...
42.005854
109
0.571001
ac90c1ce33f0dc5fe69d17a9d10aa45508603969
955
py
Python
libnd4j/auto_vectorization/cython_setup.py
eric-erki/deeplearning4j
b9d462f66879e9315767b70190bd2ab31b9a3275
[ "Apache-2.0" ]
null
null
null
libnd4j/auto_vectorization/cython_setup.py
eric-erki/deeplearning4j
b9d462f66879e9315767b70190bd2ab31b9a3275
[ "Apache-2.0" ]
null
null
null
libnd4j/auto_vectorization/cython_setup.py
eric-erki/deeplearning4j
b9d462f66879e9315767b70190bd2ab31b9a3275
[ "Apache-2.0" ]
null
null
null
# /* ****************************************************************************** # * Copyright (c) 2021 Deeplearning4j Contributors # * # * This program and the accompanying materials are made available under the # * terms of the Apache License, Version 2.0 which is available at # * https://www.apache.org...
47.75
84
0.606283
48f2e4de851d53249c37a5389990dd64d992a6e1
857
py
Python
test/test_issue923.py
tonyfast/rdflib
e4fe0fdbd4de7e1183418f302315b51a14602e03
[ "BSD-3-Clause" ]
2
2021-02-06T17:36:05.000Z
2021-04-21T07:33:39.000Z
test/test_issue923.py
pragya16067/rdflib
6b5bd37ccc67bdec62d2e36d174eb7933b5020b2
[ "BSD-3-Clause" ]
2
2020-05-09T15:03:57.000Z
2020-05-30T10:51:40.000Z
test/test_issue923.py
pragya16067/rdflib
6b5bd37ccc67bdec62d2e36d174eb7933b5020b2
[ "BSD-3-Clause" ]
4
2020-05-08T08:36:19.000Z
2020-05-28T07:23:23.000Z
""" Issue 923: split charset off of Content-Type before looking up Result-parsing plugin. """ from io import StringIO from rdflib.query import Result RESULT_SOURCE = u"""\ { "head" : { "vars" : [ "subject", "predicate", "object", "context" ] }, "results" : { "bindings" : [ { "subject" : { ...
21.974359
85
0.546091
7afe0e0a22b822708018357bece0a9ad433352e3
51
py
Python
T03-24/program.py
maa76/SSof-Project1920
9b4ad9ac41a648c425fcfcd49cd52ff84e528bde
[ "MIT" ]
2
2019-11-20T19:26:07.000Z
2019-11-22T00:42:23.000Z
T03-24/program.py
maa76/SSof-Project1920
9b4ad9ac41a648c425fcfcd49cd52ff84e528bde
[ "MIT" ]
2
2019-11-28T05:21:24.000Z
2019-11-28T05:21:58.000Z
T03-24/program.py
maa76/SSof-Project1920
9b4ad9ac41a648c425fcfcd49cd52ff84e528bde
[ "MIT" ]
25
2019-11-27T01:40:56.000Z
2019-12-04T23:38:59.000Z
a = True while not True: a = get() execute(a)
10.2
16
0.568627
b98a548101877c860f426326cba159b7991da7b4
18,571
py
Python
pandas/tests/io/formats/style/test_html.py
gasparitiago/pandas
c4cce9b75b34179edf000314edf708768486fcbb
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/io/formats/style/test_html.py
gasparitiago/pandas
c4cce9b75b34179edf000314edf708768486fcbb
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/io/formats/style/test_html.py
gasparitiago/pandas
c4cce9b75b34179edf000314edf708768486fcbb
[ "BSD-3-Clause" ]
null
null
null
from textwrap import dedent import numpy as np import pytest from pandas import ( DataFrame, MultiIndex, option_context, ) jinja2 = pytest.importorskip("jinja2") from pandas.io.formats.style import Styler loader = jinja2.PackageLoader("pandas", "io/formats/templates") env = jinja2.Environment(loader=loa...
30.544408
88
0.577029
5d4aa998e1af997675a5fd4ac6be020f32f71d33
25,252
py
Python
src/poke_env/environment/move.py
etafer/poke-env
2a96969ea1afb3f2576a6a8711a9a268b3ac8ee4
[ "MIT" ]
145
2019-11-01T22:38:02.000Z
2022-03-21T06:06:18.000Z
src/poke_env/environment/move.py
Benjamin-Etheredge/poke-env
30462cecd2e947ab6f0b06b0f2febbdde3918366
[ "MIT" ]
229
2019-11-11T09:51:45.000Z
2022-03-29T10:16:24.000Z
src/poke_env/environment/move.py
Benjamin-Etheredge/poke-env
30462cecd2e947ab6f0b06b0f2febbdde3918366
[ "MIT" ]
77
2019-11-11T09:17:18.000Z
2022-03-17T11:33:48.000Z
# -*- coding: utf-8 -*- from poke_env.data import MOVES, GEN_TO_MOVES from poke_env.environment.field import Field from poke_env.environment.move_category import MoveCategory from poke_env.environment.pokemon_type import PokemonType from poke_env.environment.status import Status from poke_env.environment.weather import...
28.151616
87
0.561896
93e752bccc620675c309699f0bc5d503d9c962aa
131
py
Python
easylife/utils.py
JaniszM/easylife
37ce67f9a36de52a8118c1a98e9279c43e2b5061
[ "MIT" ]
1
2021-01-01T15:53:49.000Z
2021-01-01T15:53:49.000Z
easylife/utils.py
JaniszM/easylife
37ce67f9a36de52a8118c1a98e9279c43e2b5061
[ "MIT" ]
null
null
null
easylife/utils.py
JaniszM/easylife
37ce67f9a36de52a8118c1a98e9279c43e2b5061
[ "MIT" ]
null
null
null
# coding=utf-8 def convert_to_utf8(value): if isinstance(value, str): value = value.encode("utf-8") return value
16.375
37
0.641221
4348a8bcda43a6916174132cfb857845f3c4c712
48,560
py
Python
pysmt/formula.py
soarlab/pysmt
f9a5243657060d120158b68acfd15120979fee42
[ "Apache-2.0" ]
3
2021-03-22T00:11:48.000Z
2021-04-05T20:09:04.000Z
pysmt/formula.py
soarlab/pysmt
f9a5243657060d120158b68acfd15120979fee42
[ "Apache-2.0" ]
3
2020-01-07T05:14:01.000Z
2021-03-23T03:24:48.000Z
pysmt/formula.py
soarlab/pysmt
f9a5243657060d120158b68acfd15120979fee42
[ "Apache-2.0" ]
2
2019-12-18T18:09:02.000Z
2021-03-28T08:57:07.000Z
# # This file is part of pySMT. # # Copyright 2014 Andrea Micheli and Marco Gario # # 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 ...
38.026625
86
0.553089
c37772a0b88a5e2b9ea81e6276f1311b5b2623fa
21,306
py
Python
CL_version/in_silico_digestion/1_enzyme.py
ldascenzo/pytheas
1010bb082fa3db35db73b936195e00c76aaa4525
[ "MIT" ]
null
null
null
CL_version/in_silico_digestion/1_enzyme.py
ldascenzo/pytheas
1010bb082fa3db35db73b936195e00c76aaa4525
[ "MIT" ]
null
null
null
CL_version/in_silico_digestion/1_enzyme.py
ldascenzo/pytheas
1010bb082fa3db35db73b936195e00c76aaa4525
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ Last update: November 2021 Author: Luigi D'Ascenzo, PhD - The Scripps Research Institute, La Jolla (CA) Contact info: dascenzoluigi@gmail.com GitHub project repository: https://github.com/ldascenzo/pytheas ***DESCRIPTION*** First step of the Pytheas in silico digest library generation. Given RN...
47.241685
120
0.543837
a3f9ff9430b357d27a0d3ac3700f1b6af25cdea9
3,343
py
Python
QNetwork/qkd/qkd.py
SwamyDev/q_network
4f1866f8d06e4f206b4ada5e86396a4da26f28f7
[ "MIT" ]
null
null
null
QNetwork/qkd/qkd.py
SwamyDev/q_network
4f1866f8d06e4f206b4ada5e86396a4da26f28f7
[ "MIT" ]
null
null
null
QNetwork/qkd/qkd.py
SwamyDev/q_network
4f1866f8d06e4f206b4ada5e86396a4da26f28f7
[ "MIT" ]
2
2019-12-04T08:47:40.000Z
2021-07-22T16:22:27.000Z
import operator import random from abc import ABC, abstractmethod import math class QKDNode(ABC): def __init__(self, ca_channel, error): self.ca_channel = ca_channel self.error = error self.maximize_key_bits = False self._qstates = [] self._other_bases = [] self._t...
29.848214
110
0.619503
08b79e1077b46c3c9746815ef84806a8346ad9ad
219
py
Python
python/high-scores/high_scores.py
willdjames/exercism-praticas
8de2fc82459c3f9e5eaff20bad4ce7a760ba786e
[ "MIT" ]
null
null
null
python/high-scores/high_scores.py
willdjames/exercism-praticas
8de2fc82459c3f9e5eaff20bad4ce7a760ba786e
[ "MIT" ]
null
null
null
python/high-scores/high_scores.py
willdjames/exercism-praticas
8de2fc82459c3f9e5eaff20bad4ce7a760ba786e
[ "MIT" ]
null
null
null
def latest(scores): return personal_top_three(scores)[-1] def personal_best(scores): return personal_top_three(scores)[0] def personal_top_three(scores): scores.sort(reverse=True) return scores[0:3]
18.25
41
0.73516
2cdfdc79a5e95061d2fea1d2f8d869a6769ed8dc
3,139
py
Python
python/multicorn/pandasfdw.py
jbylund/Multicorn
47ca7c875913445ed40e03804066de1b03892814
[ "PostgreSQL" ]
null
null
null
python/multicorn/pandasfdw.py
jbylund/Multicorn
47ca7c875913445ed40e03804066de1b03892814
[ "PostgreSQL" ]
null
null
null
python/multicorn/pandasfdw.py
jbylund/Multicorn
47ca7c875913445ed40e03804066de1b03892814
[ "PostgreSQL" ]
null
null
null
import json import pandas as pd from multicorn import ForeignDataWrapper df = pd.DataFrame({ "number": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "parity": ["even", "odd", "even", "odd", "even", "odd", "even", "odd", "even", "odd"] }) def fake_remote_pandas_endpoint(columns=None, aggs=None, group_clauses=None): if g...
35.269663
89
0.586811
08f667f696d50abad137529dcaa4beb274e5db9e
101
py
Python
tdfscrape-runner.py
bradsokol/tdf-scrape
87cc51eb3df3e953460e675b146ae1a5def36e38
[ "Apache-2.0" ]
null
null
null
tdfscrape-runner.py
bradsokol/tdf-scrape
87cc51eb3df3e953460e675b146ae1a5def36e38
[ "Apache-2.0" ]
null
null
null
tdfscrape-runner.py
bradsokol/tdf-scrape
87cc51eb3df3e953460e675b146ae1a5def36e38
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python from tdfscrape.tdfscrape import main if __name__ == '__main__': main()
12.625
36
0.683168
3b5840049dbc45b879e276f6012678236fe451d8
643
py
Python
core/bi/dictionaries/subscriberprofile.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
null
null
null
core/bi/dictionaries/subscriberprofile.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
null
null
null
core/bi/dictionaries/subscriberprofile.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------- # Interface Profile dictionary # ---------------------------------------------------------------------- # Copyright (C) 2007-2017 The NOC Project # See LICENSE for details # ---------------------------------------------------------------------- #...
30.619048
72
0.479005
bf8eebcaefc930f871199f874ca7c15850f1a645
2,413
py
Python
qiskit_aqua/algorithms/components/optimizers/nlopts/crs.py
msoeken/aqua
af6a459621bcee90ed832a644ef9220644b84b03
[ "Apache-2.0" ]
null
null
null
qiskit_aqua/algorithms/components/optimizers/nlopts/crs.py
msoeken/aqua
af6a459621bcee90ed832a644ef9220644b84b03
[ "Apache-2.0" ]
null
null
null
qiskit_aqua/algorithms/components/optimizers/nlopts/crs.py
msoeken/aqua
af6a459621bcee90ed832a644ef9220644b84b03
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 IBM. # # 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 agre...
32.608108
119
0.639039
c5045d6a3cba496ce6bca2e02606e1db070ca424
1,194
py
Python
21 _Software Testing Technology/suplerlists 2019.4.30/functional_tests.py
zhang99969/DailyLearning
949f94030d0b55c22bf65ba89001e0456c864c8c
[ "MIT" ]
3
2019-01-29T15:08:47.000Z
2019-07-04T06:18:52.000Z
21 _Software Testing Technology/suplerlists 2019.4.30/functional_tests.py
zhang99969/DailyLearning
949f94030d0b55c22bf65ba89001e0456c864c8c
[ "MIT" ]
5
2019-10-21T19:47:08.000Z
2021-06-10T21:32:39.000Z
21 _Software Testing Technology/suplerlists 2019.4.30/functional_tests.py
zhang99969/DailyLearning
949f94030d0b55c22bf65ba89001e0456c864c8c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Mar 13 14:47:06 2019 @author: 最 """ from selenium import webdriver browser = webdriver.Chrome() # Edith has heard about a cool new online to-do app. She goes # to check out its homepage browser.get('http://localhost:8000') # She notices the page title and heade...
31.421053
73
0.707705
2fcddd069e1e542f92bf5ce155f8059d19299802
806
py
Python
example/exampleproject/urls.py
terabitti/django-turbo-mixins
395710992b5c5704b1b0d3970838067987fe50cc
[ "MIT" ]
null
null
null
example/exampleproject/urls.py
terabitti/django-turbo-mixins
395710992b5c5704b1b0d3970838067987fe50cc
[ "MIT" ]
null
null
null
example/exampleproject/urls.py
terabitti/django-turbo-mixins
395710992b5c5704b1b0d3970838067987fe50cc
[ "MIT" ]
null
null
null
"""exampleproject URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Clas...
35.043478
77
0.705955
1472bb7d8cdfead079fed5942a8f7342640d786e
1,197
py
Python
RecommenderSystem/exps/node2vec_exp.py
czx94/d2l
59eb899c157a772a2abe859e1aabdc5f103762dd
[ "MIT" ]
null
null
null
RecommenderSystem/exps/node2vec_exp.py
czx94/d2l
59eb899c157a772a2abe859e1aabdc5f103762dd
[ "MIT" ]
null
null
null
RecommenderSystem/exps/node2vec_exp.py
czx94/d2l
59eb899c157a772a2abe859e1aabdc5f103762dd
[ "MIT" ]
null
null
null
import os import sys sys.path.append(os.path.abspath(os.path.join(os.getcwd()))) import argparse import networkx from utils import eval_embedding, vis_embedding, create_logger from models import Node2Vec from configs import cfg def main(): parser = argparse.ArgumentParser("Node2vec training") parser.add_arg...
24.428571
127
0.680033
ace01d462613b9d6543b57f0e4f18b4d585fc27c
5,429
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_11_01/aio/operations_async/_load_balancer_network_interfaces_operations_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2019-05-17T21:24:53.000Z
2020-02-12T11:13:42.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_11_01/aio/operations_async/_load_balancer_network_interfaces_operations_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
15
2019-07-12T18:18:04.000Z
2019-07-25T20:55:51.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_11_01/aio/operations_async/_load_balancer_network_interfaces_operations_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
47.622807
192
0.668816
325a3ae514def1afb662bb20c513434b9d6a3203
13,973
py
Python
Settings.py
Andols0/OoT-Randomizer
3ffbc5d8f698cdaddaa2469b2c3beb82377fbc45
[ "MIT" ]
null
null
null
Settings.py
Andols0/OoT-Randomizer
3ffbc5d8f698cdaddaa2469b2c3beb82377fbc45
[ "MIT" ]
1
2020-05-28T01:23:09.000Z
2020-05-28T01:23:09.000Z
Settings.py
Andols0/OoT-Randomizer
3ffbc5d8f698cdaddaa2469b2c3beb82377fbc45
[ "MIT" ]
null
null
null
import argparse import textwrap import string import re import hashlib import math import sys import json import logging from version import __version__ from Utils import random_choices, local_path from SettingsList import setting_infos, get_setting_info from Plandomizer import Distribution class ArgumentDefaultsHelp...
39.030726
200
0.600229
cdd8502271c2b5a9ac55c43a0ea087bc44e8296a
5,139
py
Python
tests/integration/test_projects_using_isort.py
jdufresne/isort
3ddd965c018a65d0bccfbef9af70dab6224e981d
[ "MIT" ]
1,587
2020-08-24T03:07:20.000Z
2022-03-31T20:10:06.000Z
tests/integration/test_projects_using_isort.py
jdufresne/isort
3ddd965c018a65d0bccfbef9af70dab6224e981d
[ "MIT" ]
446
2020-08-24T04:59:41.000Z
2022-03-30T21:48:34.000Z
tests/integration/test_projects_using_isort.py
jdufresne/isort
3ddd965c018a65d0bccfbef9af70dab6224e981d
[ "MIT" ]
170
2020-08-25T15:09:46.000Z
2022-03-30T13:46:48.000Z
"""Tests projects that use isort to see if any differences are found between their current imports and what isort suggest on the develop branch. This is an important early warning signal of regressions. NOTE: If you use isort within a public repository, please feel empowered to add your project here! It is important t...
30.052632
99
0.633975
6be021deeb98a11d711efe58911ce4703d52e282
11,348
py
Python
test/functional/p2p_invalid_messages.py
VaderCoinProject/vadercoin
b513c794b014d40e5aad281dd1f54845c46d216c
[ "MIT" ]
null
null
null
test/functional/p2p_invalid_messages.py
VaderCoinProject/vadercoin
b513c794b014d40e5aad281dd1f54845c46d216c
[ "MIT" ]
null
null
null
test/functional/p2p_invalid_messages.py
VaderCoinProject/vadercoin
b513c794b014d40e5aad281dd1f54845c46d216c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2020 The Vadercoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test node responses to invalid network messages.""" import struct import time from test_framework.m...
40.528571
128
0.626895
43d623dba085ff8fa0c6a50c9ff32fdeff4a41b4
1,976
py
Python
code/lib/fitting.py
andim/paper-tcellimprint
e89605e51014fa3f347f96bab3d3d84c2b013a2f
[ "MIT" ]
2
2020-07-28T10:47:40.000Z
2021-11-14T20:07:21.000Z
code/lib/fitting.py
andim/paper-tcellimprint
e89605e51014fa3f347f96bab3d3d84c2b013a2f
[ "MIT" ]
null
null
null
code/lib/fitting.py
andim/paper-tcellimprint
e89605e51014fa3f347f96bab3d3d84c2b013a2f
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import scipy.optimize from .config import * def powerlaw(size=1, xmin=1.0, alpha=2.0): """ Draw examples from a discrete power-law. Uses an approximate transformation technique, see Eq. D6 in Clauset et al. arXiv 0706.1062v2 for details. """ r = np.random.rand(i...
35.285714
111
0.674595
68d4e3555174c23ca28c826baa7e80dc668ca84e
3,837
py
Python
distributed/d_collector/pipelines/flow.py
shield-h2020/collectors
cc0e3be030be946d9e4cd5c03e6ac675cc58d9d0
[ "Apache-2.0" ]
null
null
null
distributed/d_collector/pipelines/flow.py
shield-h2020/collectors
cc0e3be030be946d9e4cd5c03e6ac675cc58d9d0
[ "Apache-2.0" ]
null
null
null
distributed/d_collector/pipelines/flow.py
shield-h2020/collectors
cc0e3be030be946d9e4cd5c03e6ac675cc58d9d0
[ "Apache-2.0" ]
null
null
null
''' Methods that will be used to process and prepare netflow data, before being sent to Kafka cluster. ''' import logging import re import sys import tempfile from datetime import datetime from ..utils import popen COMMAND = 'nfdump -r {0} -o csv {1} > {2}' EPOCH = datetime(1970, 1, 1) def convert(netflow, t...
38.757576
88
0.597081
6831af1816c8543b9ce6249e514baab59ffdc2e8
4,015
py
Python
alipay/aop/api/request/KoubeiServindustryExercisePlanDeleteRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/KoubeiServindustryExercisePlanDeleteRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/KoubeiServindustryExercisePlanDeleteRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.KoubeiServindustryExercisePlanDeleteModel import KoubeiServindustryExercisePlanDeleteModel class KoubeiServindustryExercisePlanDelet...
27.689655
148
0.648568
8018ff577238d94d12fa01209b3fb367d2e674b4
33,281
py
Python
networkx/drawing/layout.py
jonatanwestholm/networkx
4c5a033185f2fb2c692330bad7a7a47c95b3e5e5
[ "BSD-3-Clause" ]
null
null
null
networkx/drawing/layout.py
jonatanwestholm/networkx
4c5a033185f2fb2c692330bad7a7a47c95b3e5e5
[ "BSD-3-Clause" ]
null
null
null
networkx/drawing/layout.py
jonatanwestholm/networkx
4c5a033185f2fb2c692330bad7a7a47c95b3e5e5
[ "BSD-3-Clause" ]
null
null
null
# Copyright (C) 2004-2019 by # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Pieter Swart <swart@lanl.gov> # Richard Penney <rwpenney@users.sourceforge.net> # Michael Fedell <mfedell@jpl.nasa.gov> # Valentino Constantinou <vconstan@jpl.nasa.gov> # All rights reserved. # ...
31.045709
81
0.602145
0c72d3290927fd4508a029a422fb224801e2abb6
2,167
py
Python
basic/list2.py
mushfeqr/google-python3-exercises
1c05f823ddd8c1e09e6010560321cc42fce095d2
[ "Apache-2.0" ]
null
null
null
basic/list2.py
mushfeqr/google-python3-exercises
1c05f823ddd8c1e09e6010560321cc42fce095d2
[ "Apache-2.0" ]
null
null
null
basic/list2.py
mushfeqr/google-python3-exercises
1c05f823ddd8c1e09e6010560321cc42fce095d2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ # Additional basic list exercises # D. Given a list of numbers, return a list where # al...
32.833333
79
0.661744
77f367240ea2a8296d77b53becca5edffe47db13
3,177
py
Python
src/alocacao/camada_servicos/handlers.py
ralphribeiro/APWP-T2
1ed5552a32ae9320eadbbd0489c2082a6f8750a8
[ "MIT" ]
null
null
null
src/alocacao/camada_servicos/handlers.py
ralphribeiro/APWP-T2
1ed5552a32ae9320eadbbd0489c2082a6f8750a8
[ "MIT" ]
null
null
null
src/alocacao/camada_servicos/handlers.py
ralphribeiro/APWP-T2
1ed5552a32ae9320eadbbd0489c2082a6f8750a8
[ "MIT" ]
null
null
null
from dataclasses import asdict from alocacao.adapters import notifications from alocacao.aplicacao import redis_eventpublisher from alocacao.camada_servicos import unit_of_work from alocacao.dominio import modelo, eventos, comandos class SkuInvalido(Exception): ... def adiciona_lote( comando: comandos.Cria...
25.416
75
0.665093
3fffdd15f4afb89a483e022651a57857f3527241
9,882
py
Python
crazyflie-clients-python/src/cfclient/ui/dialogs/bootloader.py
manikamakam/swarm
3d3f4692f1969e0973fa8929660a8d0da53cafa7
[ "MIT" ]
null
null
null
crazyflie-clients-python/src/cfclient/ui/dialogs/bootloader.py
manikamakam/swarm
3d3f4692f1969e0973fa8929660a8d0da53cafa7
[ "MIT" ]
null
null
null
crazyflie-clients-python/src/cfclient/ui/dialogs/bootloader.py
manikamakam/swarm
3d3f4692f1969e0973fa8929660a8d0da53cafa7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # || ____ _ __ # +------+ / __ )(_) /_______________ _____ ___ # | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \ # +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/ # || || /_____/_/\__/\___/_/ \__,_/ /___/\___/ # # Copyright (C) 20...
35.042553
79
0.646934
8a1af016c186610e90c65276ce4189d4c966f42d
286
py
Python
ex016.py
thaisouza30/Exercicios-Python3-Curso-em-Video
ec9ccf57fae7bd86ec7a80efb1df779dd2128154
[ "Apache-2.0" ]
1
2021-02-01T17:22:11.000Z
2021-02-01T17:22:11.000Z
ex016.py
thaisouza30/Exercicios-Python3-Curso-em-Video
ec9ccf57fae7bd86ec7a80efb1df779dd2128154
[ "Apache-2.0" ]
null
null
null
ex016.py
thaisouza30/Exercicios-Python3-Curso-em-Video
ec9ccf57fae7bd86ec7a80efb1df779dd2128154
[ "Apache-2.0" ]
null
null
null
'''from math import trunc num = float(input('Digite um número')) print('O valor digitado foi {} e sua porção inteira é {}'.format(num, trunc(num)))''' num = float(input('Digite um valor:')) print('O valor digitado foi {} e a sua porção inteira é {}'.format(num, int(num)))
28.6
86
0.646853
344ae179c251286e00d5eaaf7d6127ca538a7817
1,914
py
Python
test/acceptance/e2e/install_product/steps.py
flopezag/fiware-sdc
44bacb77f252276fbf4ba5260218a1883319508f
[ "Apache-2.0" ]
null
null
null
test/acceptance/e2e/install_product/steps.py
flopezag/fiware-sdc
44bacb77f252276fbf4ba5260218a1883319508f
[ "Apache-2.0" ]
null
null
null
test/acceptance/e2e/install_product/steps.py
flopezag/fiware-sdc
44bacb77f252276fbf4ba5260218a1883319508f
[ "Apache-2.0" ]
null
null
null
__author__ = 'jfernandez' """ Imports all steps already defined and implemented in 'install_product' feature """ from component.install_product.features.install_product import * from commons.utils import wait_for_software_installed, generate_content_installed_by_product from commons.fabric_utils import execute_content...
43.5
110
0.667712
16161b9809017d4aca716bb3ab9f7f5f7e2d53f0
32,807
py
Python
venv/lib/python3.6/site-packages/ansible_collections/cisco/ios/plugins/modules/ios_prefix_lists.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/cisco/ios/plugins/modules/ios_prefix_lists.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/cisco/ios/plugins/modules/ios_prefix_lists.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright 2021 Red Hat # GNU General Public License v3.0+ # (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) """ The module file for cisco.ios_prefix_lists """ from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = "...
35.621064
116
0.531563
00c6a6c9fe1c03a0f1587f3acbd988ea90a6d088
2,657
py
Python
preprocess.py
yoojungsun0/multi_emotional_tacotron
8440fdbbe902d0d254c5291d4146743ac7bd5446
[ "MIT" ]
3
2019-12-02T00:39:35.000Z
2020-05-12T14:01:49.000Z
preprocess.py
yoojungsun0/multi_emotional_tacotron
8440fdbbe902d0d254c5291d4146743ac7bd5446
[ "MIT" ]
2
2020-03-24T17:55:12.000Z
2020-03-31T10:23:45.000Z
preprocess.py
yoojungsun0/multi-emotional-tacotron
8440fdbbe902d0d254c5291d4146743ac7bd5446
[ "MIT" ]
1
2020-06-09T03:24:11.000Z
2020-06-09T03:24:11.000Z
# coding: utf-8 """ python preprocess.py --num_workers 10 --name son --in_dir .\datasets\son --out_dir .\data\son python preprocess.py --num_workers 10 --name moon --in_dir .\datasets\moon --out_dir .\data\moon ==> out_dir에 'audio', 'mel', 'linear', 'time_steps', 'mel_frames', 'text', 'tokens', 'loss_coeff'를 묶은 npz파일...
42.854839
208
0.693263
031d3aa4c3fac8d5b517e9bfdc3071dcbbbb4d55
11,544
py
Python
inference.py
rbli-john/VisTR
f49b4a2773cbbd2502e21c879fc3ad8e832f6296
[ "Apache-2.0" ]
null
null
null
inference.py
rbli-john/VisTR
f49b4a2773cbbd2502e21c879fc3ad8e832f6296
[ "Apache-2.0" ]
null
null
null
inference.py
rbli-john/VisTR
f49b4a2773cbbd2502e21c879fc3ad8e832f6296
[ "Apache-2.0" ]
null
null
null
''' Inference code for VisTR Modified from DETR (https://github.com/facebookresearch/detr) ''' import argparse import datetime import json import random import time from pathlib import Path import numpy as np import torch from torch.utils.data import DataLoader, DistributedSampler import datasets import util.misc as ...
43.727273
181
0.615731
5ec383f21b463750485cbd3190ff312add2248d5
141
py
Python
src/tentaclio_gs/__main__.py
octoenergy/tentaclio-gs
cb4e6d8c61b7ef64a5b41fa5d3b8c857c12ae945
[ "MIT" ]
null
null
null
src/tentaclio_gs/__main__.py
octoenergy/tentaclio-gs
cb4e6d8c61b7ef64a5b41fa5d3b8c857c12ae945
[ "MIT" ]
null
null
null
src/tentaclio_gs/__main__.py
octoenergy/tentaclio-gs
cb4e6d8c61b7ef64a5b41fa5d3b8c857c12ae945
[ "MIT" ]
1
2022-01-14T00:33:18.000Z
2022-01-14T00:33:18.000Z
# Helper cli to encode urls. from tentaclio.__main__ import main if __name__ == "__main__": main(prog_name="python -m tentaclio-gs")
15.666667
44
0.716312
b47cce4ceaeb6d6f280059f708ff8cb6b0dfd18c
777
py
Python
ezotv/schemas/minecraft_form_schema.py
marcsello/ezotv-frontend
405c440a567e8a0f1577f10d45385f3171398afe
[ "CC0-1.0" ]
null
null
null
ezotv/schemas/minecraft_form_schema.py
marcsello/ezotv-frontend
405c440a567e8a0f1577f10d45385f3171398afe
[ "CC0-1.0" ]
7
2020-01-23T00:50:39.000Z
2020-04-18T20:34:40.000Z
ezotv/schemas/minecraft_form_schema.py
marcsello/ezotv-frontend
405c440a567e8a0f1577f10d45385f3171398afe
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 from marshmallow import Schema, fields, validates_schema, ValidationError, pre_load, validates, RAISE from marshmallow.validate import Regexp, Length class MinecraftFormSchema(Schema): minecraft_name = fields.Str(required=True, validate=[Length(min=3, max=16), Regexp("^[A-Za-z0-9_]*$")]) ...
35.318182
107
0.715573
ccb55ad8d96015715d4174d24b9da926cbfbffbf
878
py
Python
config.py
wtq2255/free_proxy_pool
c6ac0b3fbf4ab4c0da53eb6372ecf2187f635c17
[ "MIT" ]
1
2018-01-24T10:47:52.000Z
2018-01-24T10:47:52.000Z
config.py
wtq2255/free_proxy_pool
c6ac0b3fbf4ab4c0da53eb6372ecf2187f635c17
[ "MIT" ]
null
null
null
config.py
wtq2255/free_proxy_pool
c6ac0b3fbf4ab4c0da53eb6372ecf2187f635c17
[ "MIT" ]
null
null
null
import configparser conf=configparser.ConfigParser() conf.read('./proxy.conf') def get_redis(name): redis_conf = conf.get('redis', name) t1, t2 = redis_conf.strip().split(':')[-2:] password, host = t1.strip().split('@') port, db = t2.strip().split('/') return {'host': host, 'port': in...
25.085714
53
0.56492
7fda18c78f0939ab624b76eaa142fde7a5409e8d
19,434
py
Python
daemon/core/nodes/interface.py
ruohonej/core
31e6839ac5a9a5e2b1d8840e32b9ad1f5b2606a1
[ "BSD-2-Clause" ]
1
2022-02-12T06:34:49.000Z
2022-02-12T06:34:49.000Z
daemon/core/nodes/interface.py
kestasjk/core
31e6839ac5a9a5e2b1d8840e32b9ad1f5b2606a1
[ "BSD-2-Clause" ]
null
null
null
daemon/core/nodes/interface.py
kestasjk/core
31e6839ac5a9a5e2b1d8840e32b9ad1f5b2606a1
[ "BSD-2-Clause" ]
null
null
null
""" virtual ethernet classes that implement the interfaces available under Linux. """ import logging import time from pathlib import Path from typing import TYPE_CHECKING, Callable, Dict, List, Optional, Tuple import netaddr from core import utils from core.emulator.data import LinkOptions from core.emulator.enumera...
31.194222
89
0.572605
d4762f5fa375e4386805e9026e40b062b34d8858
4,933
py
Python
config/settings.py
ozknightwalker/Djongo-tutorial
6d1d86c133924a09da2832d6125966cedeff6365
[ "MIT" ]
null
null
null
config/settings.py
ozknightwalker/Djongo-tutorial
6d1d86c133924a09da2832d6125966cedeff6365
[ "MIT" ]
null
null
null
config/settings.py
ozknightwalker/Djongo-tutorial
6d1d86c133924a09da2832d6125966cedeff6365
[ "MIT" ]
null
null
null
""" Django settings for DjongoTutorial project. Generated by 'django-admin startproject' using Django 3.2.6. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ impor...
25.040609
91
0.676667
a393c4035205cbf06f4ccf8da870b0fb5f480b4b
7,289
py
Python
setup.py
Midiquin/mypy
a8f06c8651a4dd9b97f4989df70791b57a14e7f6
[ "PSF-2.0" ]
null
null
null
setup.py
Midiquin/mypy
a8f06c8651a4dd9b97f4989df70791b57a14e7f6
[ "PSF-2.0" ]
null
null
null
setup.py
Midiquin/mypy
a8f06c8651a4dd9b97f4989df70791b57a14e7f6
[ "PSF-2.0" ]
null
null
null
#!/usr/bin/env python import glob import os import os.path import sys if sys.version_info < (3, 5, 0): sys.stderr.write("ERROR: You need Python 3.5 or later to use mypy.\n") exit(1) # we'll import stuff from the source tree, let's ensure is on the sys path sys.path.insert(0, os.path.dirname(os.path.realpath(...
35.906404
95
0.613802
458eaf9e961d3542af8e1be562ae3b60ca4b4a50
24,077
py
Python
azure-mgmt-network/azure/mgmt/network/v2017_11_01/operations/route_tables_operations.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-network/azure/mgmt/network/v2017_11_01/operations/route_tables_operations.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-network/azure/mgmt/network/v2017_11_01/operations/route_tables_operations.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
46.124521
166
0.666985
06dd7d847c62c64f89bb2eebc7956d42fd7fe066
238
py
Python
db.py
ahmednafies/fastapi-alembic
bffa049aa97872516efda2f883263c3a1e505ec2
[ "MIT" ]
1
2021-06-11T10:52:57.000Z
2021-06-11T10:52:57.000Z
db.py
ahmednafies/fastapi-alembic
bffa049aa97872516efda2f883263c3a1e505ec2
[ "MIT" ]
null
null
null
db.py
ahmednafies/fastapi-alembic
bffa049aa97872516efda2f883263c3a1e505ec2
[ "MIT" ]
2
2021-06-20T17:08:27.000Z
2021-07-16T00:52:50.000Z
from fastapi_databases import FastAPIDatabases import os from dotenv import load_dotenv BASE_DIR = os.path.dirname(os.path.abspath(__file__)) load_dotenv(os.path.join(BASE_DIR, ".env")) db = FastAPIDatabases(os.environ["DATABASE_URL"])
26.444444
53
0.802521
2bfacd8bb0c7236c4c995497d65096a3d7d19dc8
2,155
py
Python
tests/test_services/test_service_basics.py
aris-bb/sphinxcontrib-needs
975815c21241fc1f5a58d8cf5504eb76ab95f73f
[ "MIT" ]
1
2022-03-24T08:55:28.000Z
2022-03-24T08:55:28.000Z
tests/test_services/test_service_basics.py
aris-bb/sphinxcontrib-needs
975815c21241fc1f5a58d8cf5504eb76ab95f73f
[ "MIT" ]
null
null
null
tests/test_services/test_service_basics.py
aris-bb/sphinxcontrib-needs
975815c21241fc1f5a58d8cf5504eb76ab95f73f
[ "MIT" ]
null
null
null
from pathlib import Path import pytest from sphinxcontrib.needs.services.base import BaseService from sphinxcontrib.needs.services.manager import ServiceManager class TestService(BaseService): options = ["custom_option", "exists"] def __init__(self, app, name, config, **kwargs): self.custom_option...
26.9375
112
0.607889
f08e256ec8b252c9572fccebd7af70efc403151b
62
py
Python
Trial.py
ShuhaoZQGG/Python-Very-Beginner-to-Very-Intermediate
cfad98b1c1c175761d3a68861438562f7d410cb0
[ "MIT" ]
null
null
null
Trial.py
ShuhaoZQGG/Python-Very-Beginner-to-Very-Intermediate
cfad98b1c1c175761d3a68861438562f7d410cb0
[ "MIT" ]
null
null
null
Trial.py
ShuhaoZQGG/Python-Very-Beginner-to-Very-Intermediate
cfad98b1c1c175761d3a68861438562f7d410cb0
[ "MIT" ]
null
null
null
myset = {-124,12,51,32,-1000} print(myset.pop()) print(myset)
15.5
29
0.66129
9e5e3072f3b818019b509416bcca42514e33b707
2,851
py
Python
server/languages/python/module/LanguageModuleImp.py
adamrehn/language-toolbox
f86c39784b2a6952719afdd7c3769a6a6b5f2630
[ "MIT" ]
2
2018-12-18T07:53:06.000Z
2020-02-28T11:13:21.000Z
server/languages/python/module/LanguageModuleImp.py
adamrehn/language-toolbox
f86c39784b2a6952719afdd7c3769a6a6b5f2630
[ "MIT" ]
null
null
null
server/languages/python/module/LanguageModuleImp.py
adamrehn/language-toolbox
f86c39784b2a6952719afdd7c3769a6a6b5f2630
[ "MIT" ]
null
null
null
from . import common_pb2 as common_messages from . import language_pb2 as language_messages from . import language_pb2_grpc as service from os import path from os.path import abspath, dirname, join from .AstTransformer import AstTransformer from .Utility import Utility import ast, json, sys # Retrieve the enum values...
42.552239
128
0.744651
51cc019b08ec4ee19a0bdf1b81d018c81dfe4717
2,393
py
Python
batch_pipeline/infra/sagemaker_pipeline_stack.py
brightsparc/amazon-sagemaker-drift-detection
020d34d17ba2c987d2831260b1690dbf96432e6b
[ "MIT-0" ]
1
2021-08-31T23:14:35.000Z
2021-08-31T23:14:35.000Z
batch_pipeline/infra/sagemaker_pipeline_stack.py
brightsparc/amazon-sagemaker-drift-detection
020d34d17ba2c987d2831260b1690dbf96432e6b
[ "MIT-0" ]
null
null
null
batch_pipeline/infra/sagemaker_pipeline_stack.py
brightsparc/amazon-sagemaker-drift-detection
020d34d17ba2c987d2831260b1690dbf96432e6b
[ "MIT-0" ]
1
2021-08-31T04:16:54.000Z
2021-08-31T04:16:54.000Z
from aws_cdk import ( core, aws_cloudwatch as cloudwatch, aws_iam as iam, aws_lambda as lambda_, aws_sagemaker as sagemaker, ) import logging from batch_config import DriftConfig logger = logging.getLogger(__name__) # Create a SageMaker Pipeline resource with a given pipeline_definition # see: ht...
33.704225
95
0.600084
68d4da14187bb08c949fb547323380162eb2141e
12,181
py
Python
src/eval/lfw.py
longchr123/insightface-analysis
c6c0313e880497c037b55182297954e7c0a8c101
[ "MIT" ]
null
null
null
src/eval/lfw.py
longchr123/insightface-analysis
c6c0313e880497c037b55182297954e7c0a8c101
[ "MIT" ]
null
null
null
src/eval/lfw.py
longchr123/insightface-analysis
c6c0313e880497c037b55182297954e7c0a8c101
[ "MIT" ]
null
null
null
"""Helper for evaluation on the Labeled Faces in the Wild dataset """ # MIT License # # Copyright (c) 2016 David Sandberg # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restric...
42.295139
117
0.628684
02d683bb77fcf3d544db0af5d4d5b22ba318e5ac
9,098
py
Python
src/gt4sd/algorithms/conditional_generation/paccmann_rl/core.py
hhhsu0825/gt4sd-core
4a1fe9da58d2f33bba2fba64604427e037ad7a46
[ "MIT" ]
1
2022-02-22T02:06:10.000Z
2022-02-22T02:06:10.000Z
src/gt4sd/algorithms/conditional_generation/paccmann_rl/core.py
hhhsu0825/gt4sd-core
4a1fe9da58d2f33bba2fba64604427e037ad7a46
[ "MIT" ]
12
2022-02-21T12:59:24.000Z
2022-02-22T12:25:49.000Z
src/gt4sd/algorithms/conditional_generation/paccmann_rl/core.py
hhhsu0825/gt4sd-core
4a1fe9da58d2f33bba2fba64604427e037ad7a46
[ "MIT" ]
null
null
null
"""PaccMann\\ :superscript:`RL` Algorithm. PaccMann\\ :superscript:`RL` generation is conditioned via reinforcement learning. """ import logging from dataclasses import field from typing import Any, Callable, ClassVar, Dict, Iterable, Optional, TypeVar from typing_extensions import Protocol, runtime_checkable from ...
33.696296
184
0.647725
370e849fb95c18bce260bb8c2811cb9a62936083
1,659
py
Python
spyware/screenloggerv2.py
binarioGH/minihacktools
664e72ccc54089baa3b4d2ddc28bdcddbfdd1833
[ "MIT" ]
null
null
null
spyware/screenloggerv2.py
binarioGH/minihacktools
664e72ccc54089baa3b4d2ddc28bdcddbfdd1833
[ "MIT" ]
null
null
null
spyware/screenloggerv2.py
binarioGH/minihacktools
664e72ccc54089baa3b4d2ddc28bdcddbfdd1833
[ "MIT" ]
null
null
null
#-*-coding: utf-8-*- from socket import * from os import popen, getcwd, chdir from getpass import getuser from pyautogui import screenshot from threading import * from datetime import date from time import sleep class Bd(): def __init__(self, ip = "127.0.0.1", port = 5000): sock = socket(AF_INET, SOCK_STREAM) so...
21.828947
72
0.601567
c3a95581e9831f5cb6554c1ce51f783811b1f71a
364
py
Python
ARC/arc101-arc150/arc109/b/main.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
2
2020-06-12T09:54:23.000Z
2021-05-04T01:34:07.000Z
ARC/arc101-arc150/arc109/b/main.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
961
2020-06-23T07:26:22.000Z
2022-03-31T21:34:52.000Z
ARC/arc101-arc150/arc109/b/main.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- def main(): import sys input = sys.stdin.readline n = int(input()) low = 1 high = n + 1 while (high - low) > 1: mid = (high + low) // 2 if mid * (mid + 1) <= 2 * (n + 1): low = mid else: high = mid print(n - low +...
14
42
0.414835
58af8afeb8e652ae0b0280d30b9f2e511c87650b
980
py
Python
src/cost_volume.py
hmarechal/gcnet_stereo
80f681ec6a52638c38f039d6117ee9475e55d7db
[ "MIT" ]
5
2018-05-18T22:13:36.000Z
2019-05-07T10:04:34.000Z
src/cost_volume.py
hmarechal/gcnet_stereo
80f681ec6a52638c38f039d6117ee9475e55d7db
[ "MIT" ]
null
null
null
src/cost_volume.py
hmarechal/gcnet_stereo
80f681ec6a52638c38f039d6117ee9475e55d7db
[ "MIT" ]
5
2018-04-02T09:00:34.000Z
2018-11-23T14:34:45.000Z
from keras import backend as K # from keras.layers.core import Lambda # from keras.layers.core import Reshape def _concat_features(lf, states): b,f,h,w = lf.get_shape().as_list() rf = states[0] rfs = rf[:, :, :, :-1] disp_rfs = K.spatial_2d_padding(rfs, padding=((0, 0), (1, 0)), data_format='...
36.296296
102
0.64898
584ca853b2bfa3bd9fae0c8d96e74d7354882492
2,958
py
Python
my_classes/ScopesClosuresAndDecorators/.history/Decoraators2_20210716232429.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
my_classes/ScopesClosuresAndDecorators/.history/Decoraators2_20210716232429.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
my_classes/ScopesClosuresAndDecorators/.history/Decoraators2_20210716232429.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
""" Decorator Parametors In the previous ideos we saw some built-in decorators that can handle some arguments: @wraps(fn) @lru_cache(maxsize=256) <\ def inner(): def factorial(n): \ ... ... \>function call This should loo...
25.282051
103
0.576065
880b13e328ec7a153cb10072b8dd9fe017c14a72
8,584
py
Python
python/tests/test_nessie_cli.py
naren-dremio/nessie
fad41d58ba8d32a77b60cf4eed6fc62816a8ee28
[ "Apache-2.0" ]
null
null
null
python/tests/test_nessie_cli.py
naren-dremio/nessie
fad41d58ba8d32a77b60cf4eed6fc62816a8ee28
[ "Apache-2.0" ]
null
null
null
python/tests/test_nessie_cli.py
naren-dremio/nessie
fad41d58ba8d32a77b60cf4eed6fc62816a8ee28
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `pynessie` package.""" import itertools import os from pathlib import Path from typing import List from typing import Optional import confuse import pytest import simplejson from click.testing import CliRunner from click.testing import Result from pynessie im...
36.683761
127
0.597274
178389d5858a94260cabec9a1b2e7e8ebbba8488
5,574
py
Python
qa/rpc-tests/rpcbind_test.py
mirzaei-ce/linux-shiabit
1c0e7371d1bb41e3efe20add0819d4e5050a3a0f
[ "MIT" ]
null
null
null
qa/rpc-tests/rpcbind_test.py
mirzaei-ce/linux-shiabit
1c0e7371d1bb41e3efe20add0819d4e5050a3a0f
[ "MIT" ]
null
null
null
qa/rpc-tests/rpcbind_test.py
mirzaei-ce/linux-shiabit
1c0e7371d1bb41e3efe20add0819d4e5050a3a0f
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2014-2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # Test for -rpcbind, as well as -rpcallowip and -rpcconnect # TODO extend this test from the test framew...
37.662162
110
0.640653
0c38f70383286f3b0e6acc05acd2389d156cdf4d
3,286
py
Python
run_new.py
kdarnell/injection-sim-python
fa018de562989a207590c2628443b878bd0ed753
[ "MIT" ]
null
null
null
run_new.py
kdarnell/injection-sim-python
fa018de562989a207590c2628443b878bd0ed753
[ "MIT" ]
null
null
null
run_new.py
kdarnell/injection-sim-python
fa018de562989a207590c2628443b878bd0ed753
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import flashalgorithm as fc import numpy as np import pickle import pdb comp_list = ('water', 'methane', 'ethane', 'propane') phase_list = ('aqueous', 'vapor', 'lhc', 's1', 's2') P = 70 # bar T = 273.15 + 6 # Kelvin flash_full = fc.FlashController(components=comp_list,...
30.425926
76
0.506086
33f621e85f116a0cc71456be34809b20fbefd5d3
2,121
py
Python
ssrm_test/test_jupyter_notebooks.py
michaellindon/ssrm
c44f5382471a2c2ddea4bf597072304745af8578
[ "Apache-2.0" ]
null
null
null
ssrm_test/test_jupyter_notebooks.py
michaellindon/ssrm
c44f5382471a2c2ddea4bf597072304745af8578
[ "Apache-2.0" ]
null
null
null
ssrm_test/test_jupyter_notebooks.py
michaellindon/ssrm
c44f5382471a2c2ddea4bf597072304745af8578
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Optimizely 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 l...
35.35
82
0.715229
1f3bd09f6c85450790f98bdaaade06cc9533d84c
27,174
py
Python
GenerateHeaders.py
Sixshaman/VulkanGenericStructures
1ca19402f33ec55acc5adfc57f42809337877bd9
[ "MIT" ]
null
null
null
GenerateHeaders.py
Sixshaman/VulkanGenericStructures
1ca19402f33ec55acc5adfc57f42809337877bd9
[ "MIT" ]
null
null
null
GenerateHeaders.py
Sixshaman/VulkanGenericStructures
1ca19402f33ec55acc5adfc57f42809337877bd9
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2020 Sixshaman # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, pu...
32.35
228
0.756054
437db912a5ae4233926d281fb4dfb9b977565497
9,601
py
Python
authorship_unmasking/features/feature_sets.py
torond/unmasking
247f3510a43ca9cafca54a72eab885521c259232
[ "Apache-2.0" ]
5
2020-03-02T10:39:07.000Z
2021-08-31T21:06:37.000Z
authorship_unmasking/features/feature_sets.py
torond/unmasking
247f3510a43ca9cafca54a72eab885521c259232
[ "Apache-2.0" ]
2
2019-06-27T10:56:11.000Z
2021-05-22T12:51:07.000Z
authorship_unmasking/features/feature_sets.py
torond/unmasking
247f3510a43ca9cafca54a72eab885521c259232
[ "Apache-2.0" ]
3
2021-04-03T12:01:16.000Z
2021-10-01T16:15:02.000Z
# Copyright (C) 2017-2019 Janek Bevendorff, Webis Group # # 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 la...
35.297794
114
0.64962
c1de1ae660665c2bac52cb29fbace23b5ff843c0
7,749
py
Python
openGaussBase/testcase/SECURITY/ENCRYPTED/Opengauss_Function_Security_SM3_Case0048.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/SECURITY/ENCRYPTED/Opengauss_Function_Security_SM3_Case0048.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/SECURITY/ENCRYPTED/Opengauss_Function_Security_SM3_Case0048.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
45.052326
84
0.623048
c4a6fc5dcfbae868a35b2a748dbf49a03120974f
5,852
py
Python
p3_collab_compet/main.py
guillecg/drlnd
b2d8fda6b90efbf1ca9b5ad98a504debb59a10ef
[ "MIT" ]
null
null
null
p3_collab_compet/main.py
guillecg/drlnd
b2d8fda6b90efbf1ca9b5ad98a504debb59a10ef
[ "MIT" ]
null
null
null
p3_collab_compet/main.py
guillecg/drlnd
b2d8fda6b90efbf1ca9b5ad98a504debb59a10ef
[ "MIT" ]
null
null
null
import datetime from pathlib import Path import numpy as np import torch from collections import deque import matplotlib.pyplot as plt from unityagents import UnityEnvironment from p3_collab_compet.agents.agent_ddpg import AgentDDPG SEED = 42 SCORE_TARGET = 0.5 SCORE_WINDOW = 100 DEVICE = torch.device('cuda:0'...
31.462366
92
0.605605
ea603057790d51b912276c59fb205d40a1c85044
356
py
Python
_common/helper/tests/test_wrappers.py
terratenney/aws-tools
d8ca07d56d812deb819b039752b94a0f1b9e6eb2
[ "MIT" ]
8
2020-12-27T18:44:17.000Z
2022-03-10T22:20:28.000Z
_common/helper/tests/test_wrappers.py
terratenney/aws-tools
d8ca07d56d812deb819b039752b94a0f1b9e6eb2
[ "MIT" ]
28
2020-08-30T02:57:03.000Z
2021-05-12T09:13:15.000Z
_common/helper/tests/test_wrappers.py
kyhau/arki
b5d6b160ef0780032f231362158dd9dd892f4e8e
[ "MIT" ]
8
2020-09-03T19:00:13.000Z
2022-03-31T05:31:35.000Z
import logging from helper.wrappers import init_wrapper @init_wrapper def process(*args, **kwargs): logging.debug("At function process()") assert kwargs.get("data") == [1, 2, 3] return 12345 def test_init_wrapper_succeeded(): assert process(data=[1, 2, 3]) == 12345 def test_init_wrapper_failed(): ...
20.941176
43
0.688202
2c343f8c0bedec1a417a6c18e4510afce6dcefd4
1,265
py
Python
passgen.py
linuxg33k76/passgen
6af46b1ab6cc3af2b083f6e85618ab16fc06bb52
[ "MIT" ]
null
null
null
passgen.py
linuxg33k76/passgen
6af46b1ab6cc3af2b083f6e85618ab16fc06bb52
[ "MIT" ]
null
null
null
passgen.py
linuxg33k76/passgen
6af46b1ab6cc3af2b083f6e85618ab16fc06bb52
[ "MIT" ]
null
null
null
#!/bin/env python3 ''' CLI Password Generator By Ben Calvert Date: 6/1/2021 ''' import random # Get user input on length def get_input(): while True: x = input('Please enter length of password: ') try: if int(x) and int(x) > 0: return int(x) except: ...
22.589286
88
0.624506
182b02b14e9481648c89c72560c5df711327246f
38,958
py
Python
sdk/python/pulumi_aws/sagemaker/flow_definition.py
rapzo/pulumi-aws
390a098221315d98a54ba97d1559e750dc3053b7
[ "ECL-2.0", "Apache-2.0" ]
260
2018-06-18T14:57:00.000Z
2022-03-29T11:41:03.000Z
sdk/python/pulumi_aws/sagemaker/flow_definition.py
rapzo/pulumi-aws
390a098221315d98a54ba97d1559e750dc3053b7
[ "ECL-2.0", "Apache-2.0" ]
1,154
2018-06-19T20:38:20.000Z
2022-03-31T19:48:16.000Z
sdk/python/pulumi_aws/sagemaker/flow_definition.py
rapzo/pulumi-aws
390a098221315d98a54ba97d1559e750dc3053b7
[ "ECL-2.0", "Apache-2.0" ]
115
2018-06-28T03:20:27.000Z
2022-03-29T11:41:06.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
55.259574
348
0.686252
a39e1904b8eeb1d7214e8498ece1b591e435802b
22,656
py
Python
scripts/train_rl.py
joel99/midlevel-reps
f0b4a4d8ccf09a0488cd18af24723172aff99446
[ "MIT" ]
120
2019-04-22T04:45:28.000Z
2022-03-23T01:53:17.000Z
scripts/train_rl.py
joel99/midlevel-reps
f0b4a4d8ccf09a0488cd18af24723172aff99446
[ "MIT" ]
14
2019-06-12T08:21:21.000Z
2021-08-25T15:36:58.000Z
scripts/train_rl.py
joel99/midlevel-reps
f0b4a4d8ccf09a0488cd18af24723172aff99446
[ "MIT" ]
19
2019-06-19T07:00:36.000Z
2022-03-24T07:18:30.000Z
# train_rl.py # Authors: Sasha Sax (1,3), Bradley Emi (2), Jeffrey Zhang (1) -- UC Berkeley, FAIR, Stanford VL # Desc: Train or test an agent using PPO. # Usage: # python -m scripts.train_rl DIRECTORY_TO_SAVE_RESULTS run_training with uuid=EXP_UUID [CFG1 ...] [cfg.SUB_CFG1.PROPERTY1 ...] # Notes: # (i) must be ...
53.687204
292
0.561441
78ffc8df031b65a3c88707db240e56f67bfff2d0
979
py
Python
scraper/storage_spiders/aothun24hvn.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
null
null
null
scraper/storage_spiders/aothun24hvn.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
10
2020-02-11T23:34:28.000Z
2022-03-11T23:16:12.000Z
scraper/storage_spiders/aothun24hvn.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
3
2018-08-05T14:54:25.000Z
2021-06-07T01:49:59.000Z
# Auto generated by generator.py. Delete this line if you make modification. from scrapy.spiders import Rule from scrapy.linkextractors import LinkExtractor XPATH = { 'name' : "//span[@id='ctl00_MainContent_ProductDetail1_lblProductName']", 'price' : "//span[@class='price color_red']", 'category' : "", ...
32.633333
77
0.640449
6c6c15b177918a6ddf8234e579d02cd1547b5b8f
3,363
py
Python
pepper_snp/modules/python/DataStorePredict.py
Samteymoori/pepper
734d226de47a855952e3b58145c1fcfbe221d3b4
[ "MIT" ]
null
null
null
pepper_snp/modules/python/DataStorePredict.py
Samteymoori/pepper
734d226de47a855952e3b58145c1fcfbe221d3b4
[ "MIT" ]
null
null
null
pepper_snp/modules/python/DataStorePredict.py
Samteymoori/pepper
734d226de47a855952e3b58145c1fcfbe221d3b4
[ "MIT" ]
null
null
null
import h5py import yaml import numpy as np class DataStore(object): """Class to read/write to a FRIDAY's file""" _prediction_path_ = 'predictions' _groups_ = ('position', 'index', 'bases', 'rles') def __init__(self, filename, mode='r'): self.filename = filename self.mode = mode ...
42.56962
122
0.585787
20fcfc2a1f3b6aef0b88a0a2600ea6daecfdcb4c
4,980
py
Python
mitmproxy/addons/serverplayback.py
00cool/project-X
a76988a07311a6e9706197d1ca5c7c5961cfaf9a
[ "MIT" ]
null
null
null
mitmproxy/addons/serverplayback.py
00cool/project-X
a76988a07311a6e9706197d1ca5c7c5961cfaf9a
[ "MIT" ]
1
2021-05-11T20:51:11.000Z
2021-05-11T20:51:11.000Z
mitmproxy/addons/serverplayback.py
00cool/project-X
a76988a07311a6e9706197d1ca5c7c5961cfaf9a
[ "MIT" ]
null
null
null
import hashlib import urllib import typing from typing import Any # noqa from typing import List # noqa from mitmproxy import ctx from mitmproxy import flow from mitmproxy import exceptions from mitmproxy import io from mitmproxy import command import mitmproxy.types class ServerPlayback: def __init__(self): ...
33.648649
104
0.554618
0a2e706551d61595debabb4ac0707dcd03e52f61
2,741
py
Python
api/python/quilt3/imports.py
fiskus/quilt
a5945a111a3065ecd23e64d069aa67e42492c5f2
[ "Apache-2.0" ]
null
null
null
api/python/quilt3/imports.py
fiskus/quilt
a5945a111a3065ecd23e64d069aa67e42492c5f2
[ "Apache-2.0" ]
null
null
null
api/python/quilt3/imports.py
fiskus/quilt
a5945a111a3065ecd23e64d069aa67e42492c5f2
[ "Apache-2.0" ]
null
null
null
"""Implementation of the Python Quilt data package loader.""" from importlib.machinery import ModuleSpec import sys from quilt3 import Package from .backends import get_package_registry MODULE_PATH = [] class DataPackageImporter: """ Data package module loader. Executes package import code and adds the pa...
33.426829
95
0.639548
27a865939eb4c676aeb0638fd80ef8d72fab8217
32,263
py
Python
mailpile/mail_source/__init__.py
pall-valmundsson/Mailpile
6f2544860f64e53f4231358f3f63669b5f1134ed
[ "Apache-2.0" ]
null
null
null
mailpile/mail_source/__init__.py
pall-valmundsson/Mailpile
6f2544860f64e53f4231358f3f63669b5f1134ed
[ "Apache-2.0" ]
null
null
null
mailpile/mail_source/__init__.py
pall-valmundsson/Mailpile
6f2544860f64e53f4231358f3f63669b5f1134ed
[ "Apache-2.0" ]
null
null
null
import os import random import re import thread import threading import traceback import time import mailpile.util from mailpile.eventlog import Event from mailpile.i18n import gettext as _ from mailpile.i18n import ngettext as _n from mailpile.mailboxes import * from mailpile.mailutils import FormatMbxId from mailpil...
39.880099
79
0.521092
0fbb13876697fecd10ae9e9f60284cba938814dd
14,048
py
Python
src/logplot/logging_plotting.py
shartoo/merlin-tf-slim
4c7d48d5f634273dd51d2e29562d3ed1195d9151
[ "Apache-2.0" ]
null
null
null
src/logplot/logging_plotting.py
shartoo/merlin-tf-slim
4c7d48d5f634273dd51d2e29562d3ed1195d9151
[ "Apache-2.0" ]
null
null
null
src/logplot/logging_plotting.py
shartoo/merlin-tf-slim
4c7d48d5f634273dd51d2e29562d3ed1195d9151
[ "Apache-2.0" ]
null
null
null
################################################################################ # The Neural Network (NN) based Speech Synthesis System # https://svn.ecdf.ed.ac.uk/repo/inf/dnn_tts/ # # Centre for Speech Technology Research # University of Edinburgh, UK # ...
38.80663
141
0.648206
3fb8331d39fca6a3bddae2b0f547188a36990a53
1,803
py
Python
tests/python/unittest/test_tir_transform_lower_init_block.py
Exhorder6/tvm
7e3f068373937c0ae08d58f67b84030a027db1c9
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
90
2019-01-26T00:38:49.000Z
2022-03-11T23:12:34.000Z
tests/python/unittest/test_tir_transform_lower_init_block.py
were/tvm
7f567264ae1bc1e4bc24a2eeb5b18425997dce22
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
91
2019-02-27T00:17:01.000Z
2022-02-21T18:08:21.000Z
tests/python/unittest/test_tir_transform_lower_init_block.py
were/tvm
7f567264ae1bc1e4bc24a2eeb5b18425997dce22
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
41
2019-01-28T14:37:03.000Z
2022-03-31T03:58:57.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...
33.388889
91
0.654465
195649c9b52da4f073b5e5a64fa15c287070de25
447
py
Python
bookoutlet_service/tasks.py
tmtaybah/bookoutlet_service
a1f2b42d07e2efdcd014319d1469a6dd9b77c1bb
[ "MIT" ]
null
null
null
bookoutlet_service/tasks.py
tmtaybah/bookoutlet_service
a1f2b42d07e2efdcd014319d1469a6dd9b77c1bb
[ "MIT" ]
6
2021-02-08T20:30:37.000Z
2022-03-11T23:43:41.000Z
bookoutlet_service/tasks.py
tmtaybah/bookoutlet_service
a1f2b42d07e2efdcd014319d1469a6dd9b77c1bb
[ "MIT" ]
null
null
null
from celery import Celery def make_celery(app): celery = Celery( app.import_name, backend=app.config["CELERY_BACKEND"], broker=app.config["CELERY_BROKER_URL"], ) celery.conf.update(app.config) class ContextTask(celery.Task): def __call__(self, *args, **kwargs): ...
23.526316
48
0.619687
efc15a3a27fea20ff5972fc4df32d3df4114ac88
7,582
py
Python
pineboolib/application/qsatypes/date.py
Aulla/pineboo
3ad6412d365a6ad65c3bb2bdc03f5798d7c37004
[ "MIT" ]
2
2017-12-10T23:06:16.000Z
2017-12-10T23:06:23.000Z
pineboolib/application/qsatypes/date.py
Aulla/pineboo
3ad6412d365a6ad65c3bb2bdc03f5798d7c37004
[ "MIT" ]
36
2017-11-05T21:13:47.000Z
2020-08-26T15:56:15.000Z
pineboolib/application/qsatypes/date.py
Aulla/pineboo
3ad6412d365a6ad65c3bb2bdc03f5798d7c37004
[ "MIT" ]
8
2017-11-05T15:56:31.000Z
2019-04-25T16:32:28.000Z
""" Module for Date type. """ from typing import Union, Optional, Any from PyQt6 import QtCore # type: ignore[import] from pineboolib.application.utils.date_conversion import date_dma_to_amd class Date(object): """ Case que gestiona un objeto tipo Date. """ date_: "QtCore.QDate" time_: "QtCore.Q...
28.828897
99
0.533369
b6620d3c76714b844c3efee2c49bbf54692694af
7,535
py
Python
Indicators/fisher_multi_pack_dw.py
Desil-sketch/Indicators-for-Jesse
ffe33a217002ea3034696fe38acfa72611d52b4f
[ "MIT" ]
1
2021-12-08T06:34:48.000Z
2021-12-08T06:34:48.000Z
Indicators/fisher_multi_pack_dw.py
Desil-sketch/Indicators-for-Jesse
ffe33a217002ea3034696fe38acfa72611d52b4f
[ "MIT" ]
null
null
null
Indicators/fisher_multi_pack_dw.py
Desil-sketch/Indicators-for-Jesse
ffe33a217002ea3034696fe38acfa72611d52b4f
[ "MIT" ]
1
2021-11-04T17:40:19.000Z
2021-11-04T17:40:19.000Z
from jesse.helpers import get_candle_source, slice_candles, np_shift, same_length import numpy as np from numba import njit,jit import talib from typing import Union from jesse.helpers import get_config from collections import namedtuple from numpy.lib.stride_tricks import as_strided FISHMULT = namedtuple('FISHMULT',...
37.118227
227
0.583809
484b2c44321272bf21c278413f4e47597e29f872
4,627
py
Python
AlGDock/Aux_func.py
xinliu0609/AlGDock
0795a9cfea690e1d287b8eb2be5ed8586f61b2d3
[ "MIT" ]
null
null
null
AlGDock/Aux_func.py
xinliu0609/AlGDock
0795a9cfea690e1d287b8eb2be5ed8586f61b2d3
[ "MIT" ]
null
null
null
AlGDock/Aux_func.py
xinliu0609/AlGDock
0795a9cfea690e1d287b8eb2be5ed8586f61b2d3
[ "MIT" ]
null
null
null
import os #Miscellaneous operating system interfaces from os.path import abspath from os.path import exists from os.path import isfile from os.path import join import cPickle as pickle import gzip import copy import time import numpy as np import MMTK import MMTK.Units from MMTK.ParticleProperties import Conf...
31.910345
100
0.582019
57e54155587215186454f9b781d8f9aa07fd3127
5,386
py
Python
venv/Lib/site-packages/PySide2/examples/widgets/layouts/flowlayout.py
TEDxVienna/continuum
85cefbc274fc59e2059c313bc0d3b9b93a34ba6d
[ "MIT" ]
null
null
null
venv/Lib/site-packages/PySide2/examples/widgets/layouts/flowlayout.py
TEDxVienna/continuum
85cefbc274fc59e2059c313bc0d3b9b93a34ba6d
[ "MIT" ]
null
null
null
venv/Lib/site-packages/PySide2/examples/widgets/layouts/flowlayout.py
TEDxVienna/continuum
85cefbc274fc59e2059c313bc0d3b9b93a34ba6d
[ "MIT" ]
null
null
null
############################################################################ ## ## Copyright (C) 2013 Riverbank Computing Limited. ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## ## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## Y...
34.525641
153
0.644077
99f2e5520656f5514b4e62a0faf7bb104b052dc9
4,458
py
Python
python/dgl/nn/pytorch/conv/ginconv.py
joshcarty/dgl
4464b9734c1061bd84325a54883c5046031def37
[ "Apache-2.0" ]
4
2018-12-25T14:59:08.000Z
2021-07-02T12:36:40.000Z
python/dgl/nn/pytorch/conv/ginconv.py
xyanAI/dgl
36daf66f6216bad4d30651311bcb87aa45dd33d5
[ "Apache-2.0" ]
1
2019-02-06T02:02:41.000Z
2019-02-06T20:22:32.000Z
python/dgl/nn/pytorch/conv/ginconv.py
xyanAI/dgl
36daf66f6216bad4d30651311bcb87aa45dd33d5
[ "Apache-2.0" ]
4
2020-12-26T10:39:36.000Z
2020-12-26T12:38:52.000Z
"""Torch Module for Graph Isomorphism Network layer""" # pylint: disable= no-member, arguments-differ, invalid-name import torch as th from torch import nn from .... import function as fn from ....utils import expand_as_pair class GINConv(nn.Module): r""" Description ----------- Graph Isomorphism Ne...
37.779661
92
0.545312
b2bbd2807283aec2250532eb252310eddd714bb7
24,585
py
Python
pyFileFixity/lib/reedsolomon/tests/test_creedsolo.py
lrq3000/rfigc
a68021a506fee1aabea6b2fb88e685de347d900f
[ "MIT" ]
82
2015-03-20T18:43:37.000Z
2022-03-05T13:23:12.000Z
pyFileFixity/lib/reedsolomon/tests/test_creedsolo.py
lrq3000/rfigc
a68021a506fee1aabea6b2fb88e685de347d900f
[ "MIT" ]
9
2015-12-05T17:32:14.000Z
2021-06-11T15:51:38.000Z
pyFileFixity/lib/reedsolomon/tests/test_creedsolo.py
hadi-f90/pyFileFixity
2cb3dd6225a6b062a98fa2d61c4a0a29d8010428
[ "MIT" ]
10
2015-12-13T18:51:44.000Z
2022-02-21T10:50:28.000Z
# To use this script easily (starting with Python 2.7), just cd to the parent folder and type the following command: # python -m unittest discover tests from __future__ import print_function import unittest import sys from random import sample import itertools try: from itertools import izip except ImportError: ...
75.183486
8,627
0.537116
56f9860d9c2ec3b22735c1efd0b5755482676a33
430
py
Python
cats/urls.py
bmuha1/companion_cats
9e1141757c7d67c1e4bf3fd3bbe706e4d27fef7b
[ "MIT" ]
1
2020-05-22T23:52:08.000Z
2020-05-22T23:52:08.000Z
cats/urls.py
bmuha1/companion_cats
9e1141757c7d67c1e4bf3fd3bbe706e4d27fef7b
[ "MIT" ]
5
2021-03-30T12:50:19.000Z
2021-09-22T18:40:59.000Z
cats/urls.py
bmuha1/companion_cats
9e1141757c7d67c1e4bf3fd3bbe706e4d27fef7b
[ "MIT" ]
null
null
null
from django.urls import path, re_path from . import views urlpatterns = [ path('', views.home, name='cats-home'), path('about/', views.about, name='cats-about'), path('all/', views.all, name='cats-all'), path('find/', views.find, name='cats-find'), path('cat/<int:cat_id>', views.cat, name='cats-cat...
33.076923
57
0.616279
32ee8f20b62034f8860a9ea28dd0333dd429df43
3,594
py
Python
HW4-3/ACAgent_play.py
b05611038/MLDS_2019SPRING
0591a1a6f461da0a02b9e1b83f37ad3579f36f4d
[ "MIT" ]
3
2019-06-20T06:47:30.000Z
2021-11-05T03:16:37.000Z
HW4-3/ACAgent_play.py
b05611038/MLDS_2019SPRING
0591a1a6f461da0a02b9e1b83f37ad3579f36f4d
[ "MIT" ]
null
null
null
HW4-3/ACAgent_play.py
b05611038/MLDS_2019SPRING
0591a1a6f461da0a02b9e1b83f37ad3579f36f4d
[ "MIT" ]
null
null
null
import time import argparse from lib.utils import * from lib.trainer import ACTrainer def str2bool(v): if v.lower() in ('yes', 'true', 't', 'y', '1'): return True elif v.lower() in ('no', 'false', 'f', 'n', '0'): return False else: raise argparse.ArgumentTypeError('Boolean value ex...
48.567568
133
0.692543
703ee35d427936dc86bacf26b0b8254a9e4bffd7
25,886
py
Python
python/GafferRenderManTest/InteractiveRenderManRenderTest.py
dboogert/gaffer
d2ce0eb7134a33ceee375d0a3676129a9bdcfbc6
[ "BSD-3-Clause" ]
null
null
null
python/GafferRenderManTest/InteractiveRenderManRenderTest.py
dboogert/gaffer
d2ce0eb7134a33ceee375d0a3676129a9bdcfbc6
[ "BSD-3-Clause" ]
null
null
null
python/GafferRenderManTest/InteractiveRenderManRenderTest.py
dboogert/gaffer
d2ce0eb7134a33ceee375d0a3676129a9bdcfbc6
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2013, 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: # # * Red...
28.826281
88
0.601792
60eafdc2219ed8c18cbf6702cdd2feefe764ddf2
32,766
py
Python
src/prefect/agent/kubernetes/agent.py
jackdesert/prefect
8ff23d50b5488a0bf7eea19ed7ee5fe660819640
[ "Apache-2.0" ]
null
null
null
src/prefect/agent/kubernetes/agent.py
jackdesert/prefect
8ff23d50b5488a0bf7eea19ed7ee5fe660819640
[ "Apache-2.0" ]
null
null
null
src/prefect/agent/kubernetes/agent.py
jackdesert/prefect
8ff23d50b5488a0bf7eea19ed7ee5fe660819640
[ "Apache-2.0" ]
null
null
null
import os import time import uuid from typing import Iterable, List, Any import json import yaml import prefect from prefect import config from prefect.agent import Agent from prefect.engine.state import Failed from prefect.run_configs import KubernetesRun from prefect.utilities.agent import get_flow_image, get_flow_...
43.922252
105
0.545993
978788facb610507b3568ad240bfc3ea895c3525
765
py
Python
tests/test_handlers.py
thedyrn/aio-vkbot
7f6187eafb5fdc9dab8fcc36172a273fad6ce1ab
[ "MIT" ]
2
2020-02-06T18:06:56.000Z
2021-02-20T23:03:09.000Z
tests/test_handlers.py
thedyrn/aio-vkbot
7f6187eafb5fdc9dab8fcc36172a273fad6ce1ab
[ "MIT" ]
null
null
null
tests/test_handlers.py
thedyrn/aio-vkbot
7f6187eafb5fdc9dab8fcc36172a273fad6ce1ab
[ "MIT" ]
null
null
null
import pytest from unittest.mock import Mock from aiobot import Handler, MessageHandler, CommandHandler, VkEventType, Update @pytest.fixture def update_from_dict(raw_new_message_update): return Update.from_dict(raw_new_message_update) def test_handler(update_from_dict): mocked_callback = Mock() h = Hand...
28.333333
79
0.789542
896cf9d927032462cc82aeae4962fa287bbf6cd2
7,973
py
Python
autodiff/fmin_sgd.py
gwtaylor/pyautodiff
7973e26f1c233570ed4bb10d08634ec7378e2152
[ "BSD-3-Clause" ]
59
2015-02-03T20:50:59.000Z
2020-05-26T05:38:54.000Z
autodiff/fmin_sgd.py
gwtaylor/pyautodiff
7973e26f1c233570ed4bb10d08634ec7378e2152
[ "BSD-3-Clause" ]
3
2015-05-10T06:22:45.000Z
2016-12-06T02:20:58.000Z
autodiff/fmin_sgd.py
gwtaylor/pyautodiff
7973e26f1c233570ed4bb10d08634ec7378e2152
[ "BSD-3-Clause" ]
11
2015-04-15T16:52:09.000Z
2017-06-28T12:10:39.000Z
""" Function minimization drivers based on stochastic gradient descent (SGD). """ import gc import logging import sys import time import numpy as np import theano from .context import Context from .utils import flat_from_doc, doc_from_flat from .utils import post_collect logger = logging.getLogger(__name__) info =...
34.515152
78
0.590117
458e61de53a9538b87cceba1e398ab89f3eaa18f
5,130
py
Python
tf_agents/environments/suite_gym.py
Bhaney44/agents
e5fd5b19ba86fbc5980c9f8e173ce959f8b7bb45
[ "Apache-2.0" ]
4
2020-06-25T00:47:40.000Z
2021-07-07T15:07:59.000Z
tf_agents/environments/suite_gym.py
Bhaney44/agents
e5fd5b19ba86fbc5980c9f8e173ce959f8b7bb45
[ "Apache-2.0" ]
null
null
null
tf_agents/environments/suite_gym.py
Bhaney44/agents
e5fd5b19ba86fbc5980c9f8e173ce959f8b7bb45
[ "Apache-2.0" ]
1
2020-08-18T13:32:15.000Z
2020-08-18T13:32:15.000Z
# coding=utf-8 # Copyright 2018 The TF-Agents Authors. # # 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...
38.571429
79
0.738986
9089e46f122a23df12aa3d9a0cf8e111de603b55
566
py
Python
2020/Day17/tests.py
dh256/adventofcode
428eec13f4cbf153333a0e359bcff23070ef6d27
[ "MIT" ]
null
null
null
2020/Day17/tests.py
dh256/adventofcode
428eec13f4cbf153333a0e359bcff23070ef6d27
[ "MIT" ]
null
null
null
2020/Day17/tests.py
dh256/adventofcode
428eec13f4cbf153333a0e359bcff23070ef6d27
[ "MIT" ]
null
null
null
import pytest from Cubes import Cubes, Cubes2 test_data = [('test1.txt',1,11),('test1.txt',2,21),('test1.txt',6,112)] test_data2 = [('test1.txt',1,29),('test1.txt',6,848)] # Part 1 @pytest.mark.parametrize('file_name,cycles,result',test_data) def test_simulate_cycles(file_name, cycles, result): cubes = Cubes(fil...
31.444444
71
0.726148
fc068434ed8a0441d232c4e1fc0b38004e099159
3,566
py
Python
tools/drive_down.py
jacke121/HRNet-Facial-Landmark-Detection
6d29324ce8bf203518bb8e92d1df919145a7063c
[ "MIT" ]
null
null
null
tools/drive_down.py
jacke121/HRNet-Facial-Landmark-Detection
6d29324ce8bf203518bb8e92d1df919145a7063c
[ "MIT" ]
null
null
null
tools/drive_down.py
jacke121/HRNet-Facial-Landmark-Detection
6d29324ce8bf203518bb8e92d1df919145a7063c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from requests import Session from base64 import b64encode import aiofiles import asyncio import aiohttp import os class OneDrive: """ Downloads shared file/folder to localhost with persisted structure. params: `str:url`: url to the shared one drive folder...
34.621359
129
0.593943
f8761cd71502a0f3d88b93dcb63b418003b13263
4,244
py
Python
sdk/core/azure-core/azure/core/tracing/context.py
jiasli/azure-sdk-for-python
f700299c45cea44064d5156f2bfe3664284f6da4
[ "MIT" ]
null
null
null
sdk/core/azure-core/azure/core/tracing/context.py
jiasli/azure-sdk-for-python
f700299c45cea44064d5156f2bfe3664284f6da4
[ "MIT" ]
null
null
null
sdk/core/azure-core/azure/core/tracing/context.py
jiasli/azure-sdk-for-python
f700299c45cea44064d5156f2bfe3664284f6da4
[ "MIT" ]
null
null
null
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ """The context for the azure.core.tracing. Holds global variables in a thread and async safe way.""" import threading from azure.core.settings import settings try: ...
29.268966
100
0.604147
36f0a43c5b8ceebcc1d995c30a228f020a92105d
343
py
Python
setup.py
zackchase/beermind
695fd1b2f6d376b6dd9f70ba2cd2c13e5efb9c47
[ "MIT" ]
3
2016-12-15T11:54:33.000Z
2017-06-08T21:10:58.000Z
setup.py
zackchase/beermind
695fd1b2f6d376b6dd9f70ba2cd2c13e5efb9c47
[ "MIT" ]
null
null
null
setup.py
zackchase/beermind
695fd1b2f6d376b6dd9f70ba2cd2c13e5efb9c47
[ "MIT" ]
2
2017-10-13T18:34:36.000Z
2020-01-25T03:46:31.000Z
from setuptools import setup, find_packages setup( name = "deepx", version = "0.0.0", author = "Zachary Chase Lipton, Sharad Vikram", author_email = "sharad.vikram@gmail.com", license = "MIT", keywords = "theano", packages=find_packages(include=[ 'deepx', 'dataset', ]), ...
20.176471
51
0.597668
b79995b85c0787995083e8174fdd7e29eeab464c
43,523
py
Python
sympy/assumptions/ask.py
darknight009/sympy
618193720b862a41aa295d474793cc12e4de2927
[ "BSD-3-Clause" ]
1
2017-04-27T15:45:41.000Z
2017-04-27T15:45:41.000Z
sympy/assumptions/ask.py
darknight009/sympy
618193720b862a41aa295d474793cc12e4de2927
[ "BSD-3-Clause" ]
1
2015-11-01T17:20:32.000Z
2015-11-01T17:20:32.000Z
sympy/assumptions/ask.py
darknight009/sympy
618193720b862a41aa295d474793cc12e4de2927
[ "BSD-3-Clause" ]
1
2018-10-22T09:17:11.000Z
2018-10-22T09:17:11.000Z
"""Module for querying SymPy objects about assumptions.""" from __future__ import print_function, division from sympy.core import sympify from sympy.core.cache import cacheit from sympy.core.relational import Relational from sympy.logic.boolalg import (to_cnf, And, Not, Or, Implies, Equivalent, BooleanFunction, Bo...
28.446405
91
0.557039
14b776ff88ac69dbffe34ddd9d6ea4bdc4f4b1ee
1,479
py
Python
scripts/plot_europe.py
MaxNoe/soak19
76ebffe8290118a7bb0a927d87a66e6664c0b4c8
[ "MIT" ]
1
2020-11-24T19:07:55.000Z
2020-11-24T19:07:55.000Z
scripts/plot_europe.py
maxnoe/soak19
76ebffe8290118a7bb0a927d87a66e6664c0b4c8
[ "MIT" ]
null
null
null
scripts/plot_europe.py
maxnoe/soak19
76ebffe8290118a7bb0a927d87a66e6664c0b4c8
[ "MIT" ]
null
null
null
import xarray import matplotlib.pyplot as plt from matplotlib.colors import LinearSegmentedColormap, DivergingNorm import numpy as np dataset = xarray.open_dataset('data/ETOPO1_Ice_g_gdal.grd') shape = tuple(dataset.dimension.values[::-1]) z = dataset.z.values.reshape(shape) lon1 = -22 lon2 = 45 lat1 = 30 lat2 = 75 ...
23.109375
74
0.691007
e781a9572985e96058c6f383e5e8534ff2647249
1,648
py
Python
setup.py
INNOVINATI/microwler
958430d1804f4c29e07bfdd8dccab369d5bbda3e
[ "MIT" ]
11
2021-01-12T14:45:12.000Z
2022-02-09T02:09:00.000Z
setup.py
INNOVINATI/microwler
958430d1804f4c29e07bfdd8dccab369d5bbda3e
[ "MIT" ]
null
null
null
setup.py
INNOVINATI/microwler
958430d1804f4c29e07bfdd8dccab369d5bbda3e
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages import pathlib here = pathlib.Path(__file__).parent.resolve() long_description = (here / 'README.md').read_text(encoding='utf-8') setup( name='microwler', version='0.1.8', description='A micro-framework for asynchronous deep crawls and web scraping written in P...
35.06383
100
0.649879
60fdfddd8a4d0bfd39fdce4f9733537cba69ac06
824
py
Python
src/extractors/featurecombiner.py
safdark/advanced-lane-lines
27edcc444ac532e84749d667fc579970d2059aff
[ "Apache-2.0" ]
null
null
null
src/extractors/featurecombiner.py
safdark/advanced-lane-lines
27edcc444ac532e84749d667fc579970d2059aff
[ "Apache-2.0" ]
6
2017-01-01T12:12:57.000Z
2017-01-06T03:40:49.000Z
src/extractors/featurecombiner.py
safdark/advanced-lane-lines
27edcc444ac532e84749d667fc579970d2059aff
[ "Apache-2.0" ]
null
null
null
''' Created on Jan 14, 2017 @author: safdar ''' import numpy as np from sklearn.preprocessing.data import StandardScaler class FeatureCombiner(object): def __init__(self, extractors): self.__extractors__ = extractors def extract(self, image): featurelist = [] for extractor in ...
32.96
112
0.675971
a74c32c0ee5f1bd8755fe2e955590d6c96a833ba
5,203
py
Python
adv_lib/attacks/fast_adaptive_boundary/projections.py
Daulbaev/adversarial-library
6f979a511ad78908374cd55855a9e2c5a874be7d
[ "BSD-3-Clause" ]
55
2020-11-25T10:47:48.000Z
2022-03-21T12:11:31.000Z
adv_lib/attacks/fast_adaptive_boundary/projections.py
Daulbaev/adversarial-library
6f979a511ad78908374cd55855a9e2c5a874be7d
[ "BSD-3-Clause" ]
4
2021-03-10T19:25:31.000Z
2021-08-06T00:10:49.000Z
adv_lib/attacks/fast_adaptive_boundary/projections.py
Daulbaev/adversarial-library
6f979a511ad78908374cd55855a9e2c5a874be7d
[ "BSD-3-Clause" ]
8
2020-11-26T08:42:04.000Z
2022-01-13T02:55:47.000Z
import math import torch from torch import Tensor from torch.nn import functional as F def projection_l1(points_to_project: Tensor, w_hyperplane: Tensor, b_hyperplane: Tensor) -> Tensor: device = points_to_project.device t, w, b = points_to_project, w_hyperplane.clone(), b_hyperplane c = (w * t).sum(1) ...
31.72561
101
0.540265
86530cd49650d8b0ce33c2bc39be5879d637445f
6,639
py
Python
ocr/utils/beam_search.py
vee51/Hand
eae25f189e7561d5b386511e11de2b9cec29b7a5
[ "Apache-2.0" ]
435
2019-03-16T21:45:56.000Z
2022-03-25T09:14:22.000Z
ocr/utils/beam_search.py
freedom9393/handwritten-text-recognition-for-apache-mxnet
bf7b6297747c794046665c682d04a153aaec20dd
[ "Apache-2.0" ]
60
2019-03-19T05:53:40.000Z
2022-03-31T12:27:48.000Z
ocr/utils/beam_search.py
freedom9393/handwritten-text-recognition-for-apache-mxnet
bf7b6297747c794046665c682d04a153aaec20dd
[ "Apache-2.0" ]
220
2019-03-17T10:06:06.000Z
2022-03-15T14:13:39.000Z
# From https://github.com/githubharald/CTCDecoder # #MIT License #Copyright (c) 2018 Harald Scheidl #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without restriction, including without limit...
39.052941
141
0.654918
9aef3969df6b62774222adcb30e4ed59bff176bc
769
py
Python
src/oci/waas/__init__.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/waas/__init__.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/waas/__init__.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
51.266667
245
0.819246
8cc87ba0bfc6f7f8f86e491bb96b9e67e7bf9db1
621
py
Python
app/distribution_check.py
AloneGu/wifi_analyse_demo
904bfcd5392735004edc15623985e5c04293aec4
[ "Apache-2.0" ]
null
null
null
app/distribution_check.py
AloneGu/wifi_analyse_demo
904bfcd5392735004edc15623985e5c04293aec4
[ "Apache-2.0" ]
null
null
null
app/distribution_check.py
AloneGu/wifi_analyse_demo
904bfcd5392735004edc15623985e5c04293aec4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import pandas as pd from manuf import MacParser VENDOR_DATA = './app/static/wifi_data/vendor_data' WIFI_DATA = './app/static/wifi_data/t1.csv' SS_THRES = -100 def get_wifi_data(): vendor_checker = MacParser(VENDOR_DATA) df = pd.read_csv(WIFI_DATA, usecols=[0, 3, 6], header=None) df...
34.5
82
0.695652