hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
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.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
79504dafe55c1356ba5a6f6170bc95b88d7282c5
30,959
py
Python
scripts/finetune_on_target.py
MLforHealth/HurtfulWords
b59181585aa70152f0fbe79fa2611ded928bf9f1
[ "Apache-2.0" ]
12
2019-12-24T05:13:47.000Z
2021-05-27T05:25:38.000Z
scripts/finetune_on_target.py
MLforHealth/HurtfulWords
b59181585aa70152f0fbe79fa2611ded928bf9f1
[ "Apache-2.0" ]
1
2021-03-26T00:27:19.000Z
2021-03-26T00:27:19.000Z
scripts/finetune_on_target.py
MLforHealth/HurtfulWords
b59181585aa70152f0fbe79fa2611ded928bf9f1
[ "Apache-2.0" ]
6
2020-08-27T21:01:40.000Z
2021-12-03T00:41:04.000Z
#!/h/haoran/anaconda3/bin/python import sys import os sys.path.append(os.getcwd()) import pandas as pd import numpy as np import argparse import Constants import torch import torch.nn as nn from torch.utils import data import pickle from pytorch_pretrained_bert import BertTokenizer, BertModel from run_classifier_datase...
46.978756
209
0.647405
79504e2726f5c2bbe17f27addc47fa5dde28d5ce
3,249
py
Python
python/p011.py
lbreede/project-euler
c225e3742f749fc681034aac98cc9c23f8cdb37e
[ "MIT" ]
null
null
null
python/p011.py
lbreede/project-euler
c225e3742f749fc681034aac98cc9c23f8cdb37e
[ "MIT" ]
null
null
null
python/p011.py
lbreede/project-euler
c225e3742f749fc681034aac98cc9c23f8cdb37e
[ "MIT" ]
null
null
null
from math import prod INPUT = "08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08\n"\ "49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00\n"\ "81 49 31 73 55 79 14 29 93 71 40 67 53 88 30 03 49 13 36 65\n"\ "52 70 95 23 04 60 11 42 69 24 68 56 01 32 56 71 37 02 36 91\n"\ "22 31 16 71 51 67 63...
34.2
79
0.633118
79504ec79b52df4752b1fd981bf49f355f7f43d9
27,860
py
Python
sdk/network/azure-mgmt-network/tests/test_cli_mgmt_network_load_balancer.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/network/azure-mgmt-network/tests/test_cli_mgmt_network_load_balancer.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/network/azure-mgmt-network/tests/test_cli_mgmt_network_load_balancer.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding: utf-8 #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------------...
44.576
229
0.556748
79504f0ee5fd6b8c735ce3eba663a95f13ae16a7
1,491
py
Python
test/rules/functions/test_sub.py
samhays/cfn-python-lint
191ec30640fd2d81159976bd077f4da4f2078309
[ "MIT-0" ]
1
2018-04-19T14:51:13.000Z
2018-04-19T14:51:13.000Z
test/rules/functions/test_sub.py
samhays/cfn-python-lint
191ec30640fd2d81159976bd077f4da4f2078309
[ "MIT-0" ]
null
null
null
test/rules/functions/test_sub.py
samhays/cfn-python-lint
191ec30640fd2d81159976bd077f4da4f2078309
[ "MIT-0" ]
null
null
null
""" Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 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 ...
42.6
87
0.733736
795050e5aa69e130c76b516a355b5c518e1f3407
5,698
py
Python
pymc/sampling_jax.py
MarcoGorelli/pymc
140dab0199dfb751951ba99175295c07feb00264
[ "Apache-2.0" ]
1,554
2015-01-03T05:50:28.000Z
2022-03-31T03:32:29.000Z
pymc/sampling_jax.py
MarcoGorelli/pymc
140dab0199dfb751951ba99175295c07feb00264
[ "Apache-2.0" ]
922
2015-01-03T17:51:09.000Z
2022-03-31T22:49:44.000Z
pymc/sampling_jax.py
MarcoGorelli/pymc
140dab0199dfb751951ba99175295c07feb00264
[ "Apache-2.0" ]
484
2015-01-12T16:44:47.000Z
2022-03-31T13:40:01.000Z
# pylint: skip-file import os import re import sys import warnings from typing import Callable, List from aesara.graph import optimize_graph from aesara.tensor import TensorVariable xla_flags = os.getenv("XLA_FLAGS", "") xla_flags = re.sub(r"--xla_force_host_platform_device_count=.+\s", "", xla_flags).split() os.env...
30.308511
100
0.686908
795050f2bc1a45cce9b4772507958da3b115697d
7,082
py
Python
hw5/sac/sac.py
tambetm/homework
2ed2c9cbecb3daf9b1d77023a45ad0b35da5b542
[ "MIT" ]
null
null
null
hw5/sac/sac.py
tambetm/homework
2ed2c9cbecb3daf9b1d77023a45ad0b35da5b542
[ "MIT" ]
null
null
null
hw5/sac/sac.py
tambetm/homework
2ed2c9cbecb3daf9b1d77023a45ad0b35da5b542
[ "MIT" ]
null
null
null
import tensorflow as tf import time class SAC: """Soft Actor-Critic (SAC) Original code from Tuomas Haarnoja, Soroush Nasiriany, and Aurick Zhou for CS294-112 Fall 2018 References ---------- [1] Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine, "Soft Actor-Critic: Off-Policy ...
37.470899
106
0.589946
795051883251d49686c772d4897f199bdbcf4566
3,572
py
Python
np cOMPLETENESS/plan_party/plan_party.py
lovroselic/Coursera
1598b4fe02eb3addbc847f4f3ec21fb5b6e0be08
[ "MIT" ]
null
null
null
np cOMPLETENESS/plan_party/plan_party.py
lovroselic/Coursera
1598b4fe02eb3addbc847f4f3ec21fb5b6e0be08
[ "MIT" ]
null
null
null
np cOMPLETENESS/plan_party/plan_party.py
lovroselic/Coursera
1598b4fe02eb3addbc847f4f3ec21fb5b6e0be08
[ "MIT" ]
null
null
null
#uses python3 import sys import threading #DEBUG = False DEBUG = True #LOG = True LOG = False if DEBUG: test = open("tests\\03", "r") global T # This code is used to avoid stack overflow issues sys.setrecursionlimit(10**6) # max depth of recursion threading.stack_size(2**26) # new thread will get stack of such size...
27.267176
92
0.532195
795051bc305026300f903b806801e88b0121e674
2,806
py
Python
render/cam_render.py
liruilong940607/A-NeRF
19cb6c4fd389266214ac0d7215a44011cb1bebf5
[ "MIT" ]
110
2021-12-07T13:30:47.000Z
2022-03-31T16:17:09.000Z
render/cam_render.py
liruilong940607/A-NeRF
19cb6c4fd389266214ac0d7215a44011cb1bebf5
[ "MIT" ]
12
2021-12-20T10:04:13.000Z
2022-03-28T18:15:41.000Z
render/cam_render.py
liruilong940607/A-NeRF
19cb6c4fd389266214ac0d7215a44011cb1bebf5
[ "MIT" ]
11
2021-12-07T13:59:16.000Z
2022-03-28T09:00:24.000Z
''' MIT License Copyright (c) 2019 Shunsuke Saito, Zeng Huang, and Ryota Natsume 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...
37.918919
95
0.665716
795053dd095bcb1f06416179b6199b4f9eaadce2
1,125
py
Python
script/plot.py
Tricker-z/CSE5001-GA-mTSP
108916cafecbe325302dbce4ddd07c477a0c5f79
[ "Apache-2.0" ]
3
2021-12-14T00:46:55.000Z
2021-12-19T08:41:21.000Z
script/plot.py
Tricker-z/CSE5001-GA-mTSP
108916cafecbe325302dbce4ddd07c477a0c5f79
[ "Apache-2.0" ]
null
null
null
script/plot.py
Tricker-z/CSE5001-GA-mTSP
108916cafecbe325302dbce4ddd07c477a0c5f79
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt routes = [ [[37, 52], [31, 62], [37, 69], [43, 67], [49, 49], [52, 41], [38, 46], [45, 35], [52, 33], [56, 37], [37, 52]], [[37, 52], [48, 28], [51, 21], [25, 55], [36, 16], [39, 10], [46, 10], [59, 15], [58, 27], [5, 64], [16, 57], [27, 68], [32, 39], [30, 48], [37, 52], [17, 63], [62,...
40.178571
221
0.468444
7950546a606d414867746484240e0a7528c08c0f
111,532
py
Python
diofant/combinatorics/perm_groups.py
project-kotinos/diofant___diofant
882549ac3a4dac238695aa620c02fce6ca33f9d3
[ "BSD-3-Clause" ]
1
2021-08-22T09:34:15.000Z
2021-08-22T09:34:15.000Z
diofant/combinatorics/perm_groups.py
project-kotinos/diofant___diofant
882549ac3a4dac238695aa620c02fce6ca33f9d3
[ "BSD-3-Clause" ]
null
null
null
diofant/combinatorics/perm_groups.py
project-kotinos/diofant___diofant
882549ac3a4dac238695aa620c02fce6ca33f9d3
[ "BSD-3-Clause" ]
null
null
null
from itertools import islice from math import log from random import choice, randrange from ..core import Basic from ..functions import factorial from ..ntheory import sieve from ..utilities import has_variety from ..utilities.iterables import is_sequence, uniq from ..utilities.randtest import _randrange from .permuta...
33.982937
106
0.530493
7950548f401a478279dbcdad80347932d03f8a6e
10,487
py
Python
backends/izhikevich.py
rgerkin/jit_hub
d132225fae29286cf7ac6f08bd4099fd65dcab0f
[ "CC0-1.0" ]
null
null
null
backends/izhikevich.py
rgerkin/jit_hub
d132225fae29286cf7ac6f08bd4099fd65dcab0f
[ "CC0-1.0" ]
null
null
null
backends/izhikevich.py
rgerkin/jit_hub
d132225fae29286cf7ac6f08bd4099fd65dcab0f
[ "CC0-1.0" ]
null
null
null
from sciunit.models.backends import Backend from quantities import mV, ms, s, V from neo import AnalogSignal import numpy as np import quantities as pq import numpy import copy from numba import jit#, autojit import cython class JIT_IzhiBackend(Backend): def init_backend(self): super().init_backend() ...
31.587349
125
0.517307
795054cb0a72a2baeee6d0fd2234ce38c59a5dc4
23,116
py
Python
chapter/two_exercises.py
sloscal1/ML-Prob-Perspective
3474faf8559cc2229426ab773460000c6c40fbb3
[ "MIT" ]
null
null
null
chapter/two_exercises.py
sloscal1/ML-Prob-Perspective
3474faf8559cc2229426ab773460000c6c40fbb3
[ "MIT" ]
null
null
null
chapter/two_exercises.py
sloscal1/ML-Prob-Perspective
3474faf8559cc2229426ab773460000c6c40fbb3
[ "MIT" ]
null
null
null
import random def question_1(): """ p(gender=boy) = 0.5 p(gender=girl) = 0.5 Possible outcomes of 2 children: boy, girl boy, boy girl, boy girl, girl a) If you know the neighbor has at least one boy, what is the probability the neighbor has a girl? Sample space: (b,g), (b,b), ...
44.625483
247
0.547889
7950557dd1ea47834ab5027546b6c19544696291
2,974
py
Python
get_cluster_faults.py
schubb2003/element
14d79297b2dd6908e0c84ba533d507acd44fe054
[ "MIT" ]
null
null
null
get_cluster_faults.py
schubb2003/element
14d79297b2dd6908e0c84ba533d507acd44fe054
[ "MIT" ]
null
null
null
get_cluster_faults.py
schubb2003/element
14d79297b2dd6908e0c84ba533d507acd44fe054
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ # Author: Scott Chubb scott.chubb@netapp.com # Written for Python 3.7 and above # No warranty is offered, use at your own risk. While these scripts have been # tested in lab situations, all use cases cannot be accounted for. """ import sys import time import os import json from datetime impor...
32.326087
78
0.628783
795055c3344b8001b3bab631594794720563bccb
570
py
Python
setup.py
heylouiz/flask-reactjs-bootstrap-sample-app
ee1d777501478cbd6af16d1c05d1889d4df5fdb6
[ "MIT" ]
null
null
null
setup.py
heylouiz/flask-reactjs-bootstrap-sample-app
ee1d777501478cbd6af16d1c05d1889d4df5fdb6
[ "MIT" ]
null
null
null
setup.py
heylouiz/flask-reactjs-bootstrap-sample-app
ee1d777501478cbd6af16d1c05d1889d4df5fdb6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Flask ReactJS Bootstrap setup file. """ import setuptools import versioneer setuptools.setup(name="sample_app", version=versioneer.get_version(), packages=setuptools.find_packages(exclude=["tests", "tests.*"]), #test_suite="tests", ...
31.666667
81
0.554386
795055eca6fc9170d7b0c090bcd36aa9155f9314
35,968
py
Python
test/integration/component/test_mm_domain_limits.py
pavanaravapalli/cloudstack
1d59bd3fd9d153e3e8bbcd518ee49299a36f527c
[ "Apache-2.0" ]
1
2022-03-06T08:43:27.000Z
2022-03-06T08:43:27.000Z
test/integration/component/test_mm_domain_limits.py
pavanaravapalli/cloudstack
1d59bd3fd9d153e3e8bbcd518ee49299a36f527c
[ "Apache-2.0" ]
5
2018-03-15T20:07:30.000Z
2021-04-09T16:44:30.000Z
test/integration/component/test_mm_domain_limits.py
pavanaravapalli/cloudstack
1d59bd3fd9d153e3e8bbcd518ee49299a36f527c
[ "Apache-2.0" ]
1
2021-05-11T19:22:59.000Z
2021-05-11T19:22:59.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...
45.586819
137
0.526079
795056be5a06cc47143fa9c4eabec046bb48da7f
87
py
Python
type_check_Cwhile.py
Mieschendahl/assignment-final-stub
19eea657fcc4f8a455c42028f34b918628514cc0
[ "MIT" ]
3
2021-09-01T02:02:03.000Z
2022-03-07T05:39:34.000Z
type_check_Cwhile.py
Mieschendahl/assignment-final-stub
19eea657fcc4f8a455c42028f34b918628514cc0
[ "MIT" ]
1
2022-03-20T11:08:45.000Z
2022-03-20T11:08:45.000Z
type_check_Cwhile.py
Mieschendahl/assignment-final-stub
19eea657fcc4f8a455c42028f34b918628514cc0
[ "MIT" ]
6
2022-03-13T13:10:25.000Z
2022-03-28T22:18:12.000Z
from type_check_Cif import TypeCheckCif class TypeCheckCwhile(TypeCheckCif): pass
17.4
39
0.827586
795057279b57e507c1db697d38422267db884a07
26,658
py
Python
tools/third_party/hyperframe/hyperframe/frame.py
meyerweb/wpt
f04261533819893c71289614c03434c06856c13e
[ "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
tools/third_party/hyperframe/hyperframe/frame.py
meyerweb/wpt
f04261533819893c71289614c03434c06856c13e
[ "BSD-3-Clause" ]
7,642
2018-05-28T09:38:03.000Z
2022-03-31T20:55:48.000Z
tools/third_party/hyperframe/hyperframe/frame.py
meyerweb/wpt
f04261533819893c71289614c03434c06856c13e
[ "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
# -*- coding: utf-8 -*- """ hyperframe/frame ~~~~~~~~~~~~~~~~ Defines framing logic for HTTP/2. Provides both classes to represent framed data and logic for aiding the connection when it comes to reading from the socket. """ import struct import binascii from .exceptions import ( UnknownFrameError, InvalidPadding...
32.391252
79
0.642021
795057b755f91cdae5d836b865808ac727dd141e
10,639
py
Python
dephell/repositories/_conda/_cloud.py
OliverHofkens/dephell
6303f416018910668f1635b70cd828a2fd2b2d9e
[ "MIT" ]
1,880
2019-03-21T10:08:25.000Z
2022-03-31T12:41:55.000Z
dephell/repositories/_conda/_cloud.py
rachmadaniHaryono/dephell
0ef500c8f2d5f05244bac191b1b1383f68464cd2
[ "MIT" ]
356
2019-03-21T19:08:56.000Z
2021-01-08T17:45:43.000Z
dephell/repositories/_conda/_cloud.py
rachmadaniHaryono/dephell
0ef500c8f2d5f05244bac191b1b1383f68464cd2
[ "MIT" ]
157
2019-04-23T01:13:37.000Z
2022-03-24T22:41:18.000Z
# built-in import json import sys from bz2 import BZ2Decompressor from collections import OrderedDict, defaultdict from datetime import datetime from logging import getLogger from platform import uname from typing import Any, Dict, Iterable, Iterator, List # external import attr from dephell_specifier import RangeSpec...
37.72695
100
0.557383
7950582b321db6af01af1cffc3061468cb01e989
1,125
py
Python
day6/python/main.py
mjkoo/aoc2019
89e0090688dad2ccd8bdd94f657c6f08320e125a
[ "MIT" ]
null
null
null
day6/python/main.py
mjkoo/aoc2019
89e0090688dad2ccd8bdd94f657c6f08320e125a
[ "MIT" ]
null
null
null
day6/python/main.py
mjkoo/aoc2019
89e0090688dad2ccd8bdd94f657c6f08320e125a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys def path_to_com(orbits, source): ret = [] cur = source while cur != "COM": ret.append(cur) cur = orbits[cur] return ret def num_transfers(orbits, source, dest): # Ignore YOU and SAN source_to_com = path_to_com(orbits, source)[1:] dest_to_...
22.959184
76
0.584889
795058a248648fe01868797e870ba899749c2163
859
py
Python
turf/great_circle/_great_circle.py
malroc/pyturf
c89b6ea7094bd5ca26cf589d9dcd15bd819d82e9
[ "MIT" ]
11
2020-08-26T11:04:55.000Z
2022-01-26T14:53:10.000Z
turf/great_circle/_great_circle.py
malroc/pyturf
c89b6ea7094bd5ca26cf589d9dcd15bd819d82e9
[ "MIT" ]
36
2020-04-09T16:49:05.000Z
2020-06-01T14:39:37.000Z
turf/great_circle/_great_circle.py
malroc/pyturf
c89b6ea7094bd5ca26cf589d9dcd15bd819d82e9
[ "MIT" ]
5
2020-07-30T23:37:35.000Z
2021-08-24T08:10:28.000Z
from turf.invariant import get_coords_from_features from turf.great_circle._arc import GreatCircle def great_circle(start, end, options=None): """ Returns the great circle route as LineString :param start: source point feature :param end: destination point feature :param options: Optional parame...
29.62069
58
0.692666
7950596bcbb42785666a3990d00316ccdfc4eb9d
30
py
Python
hello.py
StrayDragon/github-action-rehearsal
884e971681569c83d69bc51e2096ccfd7c88a149
[ "MIT" ]
null
null
null
hello.py
StrayDragon/github-action-rehearsal
884e971681569c83d69bc51e2096ccfd7c88a149
[ "MIT" ]
4
2021-02-09T09:25:15.000Z
2021-05-10T07:34:20.000Z
hello.py
StrayDragon/github-action-rehearsal
884e971681569c83d69bc51e2096ccfd7c88a149
[ "MIT" ]
null
null
null
def hello(): print("你好👋")
10
16
0.5
79505c6b1abd7a037567206ff89f2375920541ca
955
py
Python
Sandbox/qemu-sgx-master/scripts/tracetool/backend/dtrace.py
Maxul/sgx_vmx_protocol
b18dcdd6cbbf10c7d609649295676f0163dd9a5e
[ "MIT" ]
8
2020-03-16T06:34:49.000Z
2021-12-06T01:50:54.000Z
Sandbox/qemu-sgx-master/scripts/tracetool/backend/dtrace.py
Maxul/sgx_vmx_protocol
b18dcdd6cbbf10c7d609649295676f0163dd9a5e
[ "MIT" ]
null
null
null
Sandbox/qemu-sgx-master/scripts/tracetool/backend/dtrace.py
Maxul/sgx_vmx_protocol
b18dcdd6cbbf10c7d609649295676f0163dd9a5e
[ "MIT" ]
1
2021-12-06T01:50:56.000Z
2021-12-06T01:50:56.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ DTrace/SystemTAP backend. """ __author__ = "Lluís Vilanova <vilanova@ac.upc.edu>" __copyright__ = "Copyright 2012-2016, Lluís Vilanova <vilanova@ac.upc.edu>" __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Stefan Hajnoczi...
20.319149
76
0.66178
79505ed766359ae4a2367aa04e22ee0a36d987f9
990
py
Python
terrascript/data/e_breuninger/netbox.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/data/e_breuninger/netbox.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/data/e_breuninger/netbox.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/data/e-breuninger/netbox.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:22:23 UTC) import terrascript class netbox_cluster(terrascript.Data): pass class netbox_cluster_group(terrascript.Data): pass class netbox_device_role(terrascript.Data): pass class netbox_interfa...
15.714286
73
0.730303
79505f123cc8026810733de84ba021366bcfaf12
4,214
py
Python
airflow/providers/amazon/aws/transfers/imap_attachment_to_s3.py
troywinter/airflow
ba66ba0d97941c55d9f00f66329a9d3c7ad673e7
[ "Apache-2.0" ]
1
2019-05-07T06:46:55.000Z
2019-05-07T06:46:55.000Z
airflow/providers/amazon/aws/transfers/imap_attachment_to_s3.py
troywinter/airflow
ba66ba0d97941c55d9f00f66329a9d3c7ad673e7
[ "Apache-2.0" ]
7
2021-06-28T20:24:56.000Z
2022-02-26T02:01:36.000Z
airflow/providers/amazon/aws/transfers/imap_attachment_to_s3.py
troywinter/airflow
ba66ba0d97941c55d9f00f66329a9d3c7ad673e7
[ "Apache-2.0" ]
1
2019-06-15T08:38:53.000Z
2019-06-15T08:38:53.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...
41.722772
96
0.685572
79505f1cb4462aa19567669481e8c655be8c0ac3
2,420
py
Python
spacy/tests/spans/test_span.py
TerminalWitchcraft/spaCy
29adbef095c04e21a691e912671e4ec21082b047
[ "MIT" ]
1
2018-09-24T17:00:23.000Z
2018-09-24T17:00:23.000Z
spacy/tests/spans/test_span.py
TerminalWitchcraft/spaCy
29adbef095c04e21a691e912671e4ec21082b047
[ "MIT" ]
null
null
null
spacy/tests/spans/test_span.py
TerminalWitchcraft/spaCy
29adbef095c04e21a691e912671e4ec21082b047
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals from ..util import get_doc import pytest @pytest.fixture def doc(en_tokenizer): text = "This is a sentence. This is another sentence. And a third." heads = [1, 0, 1, -2, -3, 1, 0, 1, -2, -3, 0, 1, -2, -1] deps = ['nsubj', 'ROOT', 'det', 'attr', 'pu...
32.702703
82
0.642149
79505f460b45aef9e3d1b3809b263cd282a3994b
2,085
py
Python
jupyter-clear-output.py
caallinson/jupyter-clean-output
84c19933469105092d89acd5fa2204a350b0d8c9
[ "MIT" ]
2
2020-10-03T04:24:31.000Z
2021-04-07T13:41:10.000Z
jupyter-clear-output.py
caallinson/jupyter-clean-output
84c19933469105092d89acd5fa2204a350b0d8c9
[ "MIT" ]
null
null
null
jupyter-clear-output.py
caallinson/jupyter-clean-output
84c19933469105092d89acd5fa2204a350b0d8c9
[ "MIT" ]
1
2020-10-03T20:27:09.000Z
2020-10-03T20:27:09.000Z
import json import sys def process_json(json_parsed): """ Clear outputs from Notebook saved in JSON format """ if isinstance(json_parsed, dict): if 'cells' in json_parsed.keys(): for obj in json_parsed['cells']: if 'outputs' in obj.keys(): obj['...
24.244186
88
0.534772
79505f9067c48ff97b8159280551e9d5b2c59742
931
py
Python
envdsys/envdatasystem/migrations/0040_auto_20210714_2208.py
NOAA-PMEL/envDataSystem
4db4a3569d2329658799a3eef06ce36dd5c0597d
[ "Unlicense" ]
1
2021-11-06T19:22:53.000Z
2021-11-06T19:22:53.000Z
envdsys/envdatasystem/migrations/0040_auto_20210714_2208.py
NOAA-PMEL/envDataSystem
4db4a3569d2329658799a3eef06ce36dd5c0597d
[ "Unlicense" ]
25
2019-06-18T20:40:36.000Z
2021-07-23T20:56:48.000Z
envdsys/envdatasystem/migrations/0040_auto_20210714_2208.py
NOAA-PMEL/envDataSystem
4db4a3569d2329658799a3eef06ce36dd5c0597d
[ "Unlicense" ]
null
null
null
# Generated by Django 3.2.3 on 2021-07-14 22:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('envdatasystem', '0039_auto_20210714_2203'), ] operations = [ migrations.AlterModelOptions( name='platformevent', opt...
34.481481
221
0.609023
79505fea5a9fd2d54f0e74f2dbbf2cbcc6bb818b
10,949
py
Python
observation/bf_phaseup.py
ska-sa/katsdpscripts
f9eaa867aad8b94c715f7286953124df00b5781c
[ "BSD-3-Clause" ]
null
null
null
observation/bf_phaseup.py
ska-sa/katsdpscripts
f9eaa867aad8b94c715f7286953124df00b5781c
[ "BSD-3-Clause" ]
21
2019-09-16T15:26:53.000Z
2022-01-11T09:14:39.000Z
observation/bf_phaseup.py
ska-sa/katsdpscripts
f9eaa867aad8b94c715f7286953124df00b5781c
[ "BSD-3-Clause" ]
1
2019-11-11T11:47:54.000Z
2019-11-11T11:47:54.000Z
#!/usr/bin/env python # # Track calibrator target for a specified time. # Obtain calibrated gains and apply them to the F-engine afterwards. import numpy as np import scipy.ndimage from katcorelib.observe import (standard_script_options, verify_and_connect, collect_targets, start_sessio...
51.890995
95
0.63677
7950608b26cd17a783302586746917ab293122a9
5,306
py
Python
pyconstruct/learners/base.py
unitn-sml/pyconstruct
f7174b00f16e34ca582bb1923ef46e871fc892b9
[ "MIT" ]
13
2018-04-03T09:27:28.000Z
2021-04-01T07:52:01.000Z
pyconstruct/learners/base.py
unitn-sml/pyconstruct
f7174b00f16e34ca582bb1923ef46e871fc892b9
[ "MIT" ]
1
2019-08-06T18:46:47.000Z
2019-08-13T08:48:28.000Z
pyconstruct/learners/base.py
unitn-sml/pyconstruct
f7174b00f16e34ca582bb1923ef46e871fc892b9
[ "MIT" ]
null
null
null
import copy from ..models import BaseModel from abc import ABC, abstractmethod from sklearn.base import BaseEstimator __all__ = ['BaseLearner'] class BaseLearner(BaseEstimator, ABC): """A basic learning model class. A learner fits a model with some data over some given domain. If only the domain is ...
31.963855
80
0.589333
795061fa1fcc684b321080c936267e623169c9a9
46,587
py
Python
nexus/lib/gamess_input.py
djstaros/qmcpack
280f67e638bae280448b47fa618f05b848c530d2
[ "NCSA" ]
null
null
null
nexus/lib/gamess_input.py
djstaros/qmcpack
280f67e638bae280448b47fa618f05b848c530d2
[ "NCSA" ]
11
2020-05-09T20:57:21.000Z
2020-06-10T00:00:17.000Z
nexus/lib/gamess_input.py
djstaros/qmcpack
280f67e638bae280448b47fa618f05b848c530d2
[ "NCSA" ]
null
null
null
################################################################## ## (c) Copyright 2015- by Jaron T. Krogel ## ################################################################## #====================================================================# # gamess_input.py ...
35.644223
425
0.487411
795061fdf6421d0e791eb55f1f4dc0e50f7ffef5
6,924
py
Python
backend/long_snow_29679/settings.py
crowdbotics-apps/long-snow-29679
f754361a2931fb8a5c1ca3ec8df99227a4f1c60c
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/long_snow_29679/settings.py
crowdbotics-apps/long-snow-29679
f754361a2931fb8a5c1ca3ec8df99227a4f1c60c
[ "FTL", "AML", "RSA-MD" ]
44
2021-08-09T23:18:56.000Z
2022-01-23T17:01:48.000Z
backend/long_snow_29679/settings.py
crowdbotics-apps/long-snow-29679
f754361a2931fb8a5c1ca3ec8df99227a4f1c60c
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" Django settings for long_snow_29679 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impo...
29.589744
112
0.730791
79506242a402427e2655325f1d9d781c3b834020
2,265
py
Python
python/postprocess/1_report.py
jpolchlo/cloud-buster
c4480c02aaf8ea6fc8a53a484b2a30d0fb935f35
[ "MIT" ]
null
null
null
python/postprocess/1_report.py
jpolchlo/cloud-buster
c4480c02aaf8ea6fc8a53a484b2a30d0fb935f35
[ "MIT" ]
null
null
null
python/postprocess/1_report.py
jpolchlo/cloud-buster
c4480c02aaf8ea6fc8a53a484b2a30d0fb935f35
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # The MIT License (MIT) # ===================== # # Copyright © 2020 Azavea # # 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 ...
41.944444
121
0.720971
79506318eec81b4aba9adbf4e504eafc07f815d9
8,924
py
Python
kospeech/data/audio/feature.py
jungwook518/KoSpeech
77b8daf2f821c8fa755e937096fdbc3536cafd81
[ "Apache-2.0" ]
1
2021-05-10T11:47:03.000Z
2021-05-10T11:47:03.000Z
kospeech/data/audio/feature.py
jungwook518/KoSpeech
77b8daf2f821c8fa755e937096fdbc3536cafd81
[ "Apache-2.0" ]
null
null
null
kospeech/data/audio/feature.py
jungwook518/KoSpeech
77b8daf2f821c8fa755e937096fdbc3536cafd81
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020, Soohwan Kim. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
37.813559
104
0.607127
7950636594260776e2b7ee197121c9b0ad116748
137
py
Python
notaso/home/urls.py
jpadilla/notaso
1c2f94d36b3d360d70f6c9937beb053beb8d8ad3
[ "MIT" ]
11
2017-03-16T21:47:51.000Z
2021-11-30T12:38:59.000Z
notaso/home/urls.py
jpadilla/notaso
1c2f94d36b3d360d70f6c9937beb053beb8d8ad3
[ "MIT" ]
43
2015-01-13T14:14:48.000Z
2021-12-29T14:21:25.000Z
notaso/home/urls.py
jpadilla/notaso
1c2f94d36b3d360d70f6c9937beb053beb8d8ad3
[ "MIT" ]
5
2015-09-27T15:05:36.000Z
2019-05-14T17:09:06.000Z
from django.urls import path from .views import HomeView app_name = "home" urlpatterns = [path("", HomeView.as_view(), name="index")]
17.125
58
0.715328
795064cafbb90517119789c162454bb23529d561
5,848
py
Python
core/objs/gap_opiniao.py
aanacleto/erp-
9c2d5388248cfe4b8cdb8454f6f47df4cb521f0e
[ "MIT" ]
null
null
null
core/objs/gap_opiniao.py
aanacleto/erp-
9c2d5388248cfe4b8cdb8454f6f47df4cb521f0e
[ "MIT" ]
null
null
null
core/objs/gap_opiniao.py
aanacleto/erp-
9c2d5388248cfe4b8cdb8454f6f47df4cb521f0e
[ "MIT" ]
2
2017-12-04T14:59:22.000Z
2018-12-06T18:50:29.000Z
# !/usr/bin/env python3 # -*- encoding: utf-8 -*- """ ERP+ """ __author__ = 'CVTek dev' __credits__ = [] __version__ = "1.0" __maintainer__ = "CVTek dev" __status__ = "Development" __model_name__ = 'gap_opiniao.GAPOpiniao' import auth, base_models from orm import * from form import * try: from my_gap_senha import G...
42.686131
324
0.592168
795065dc8d4becb5a3ad8a65c652804b0422514c
48
py
Python
torchaudio/compliance/__init__.py
zkneupper/audio
1f136671b84071a2fe1d5b762df64f3a76310c31
[ "BSD-2-Clause" ]
4
2022-03-16T15:35:35.000Z
2022-03-22T23:55:41.000Z
torchaudio/compliance/__init__.py
zkneupper/audio
1f136671b84071a2fe1d5b762df64f3a76310c31
[ "BSD-2-Clause" ]
6
2020-09-22T22:19:09.000Z
2021-06-21T17:37:32.000Z
torchaudio/compliance/__init__.py
zkneupper/audio
1f136671b84071a2fe1d5b762df64f3a76310c31
[ "BSD-2-Clause" ]
1
2022-03-16T00:40:40.000Z
2022-03-16T00:40:40.000Z
from . import kaldi __all__ = [ 'kaldi', ]
8
19
0.5625
795065e3c345aaeebef3382663bec1f9002f1eb3
2,710
py
Python
arrow/constants.py
beucismis/arrow
7c9632c09161b1edb67fadb4bf8f3c1c0f5cb101
[ "Apache-2.0" ]
null
null
null
arrow/constants.py
beucismis/arrow
7c9632c09161b1edb67fadb4bf8f3c1c0f5cb101
[ "Apache-2.0" ]
null
null
null
arrow/constants.py
beucismis/arrow
7c9632c09161b1edb67fadb4bf8f3c1c0f5cb101
[ "Apache-2.0" ]
null
null
null
"""Constants used internally in arrow.""" import sys from datetime import datetime if sys.version_info < (3, 8): # pragma: no cover from typing_extensions import Final else: from typing import Final # pragma: no cover # datetime.max.timestamp() errors on Windows, so we must hardcode # the highest possible ...
20.530303
117
0.553137
79506699c1eebb48a955024097d9410aedc876c2
825
py
Python
scripts/python/0895_max_freq_stack_2.py
weirdcoder247/leetcode_solutions
77e3579dadf40405411a15532cfca227329dad98
[ "MIT" ]
1
2022-02-15T19:08:38.000Z
2022-02-15T19:08:38.000Z
scripts/python/0895_max_freq_stack_2.py
weirdcoder247/leetcode_solutions
77e3579dadf40405411a15532cfca227329dad98
[ "MIT" ]
null
null
null
scripts/python/0895_max_freq_stack_2.py
weirdcoder247/leetcode_solutions
77e3579dadf40405411a15532cfca227329dad98
[ "MIT" ]
null
null
null
class FreqStack: def __init__(self): from collections import Counter, defaultdict self.maxFreq = 0 self.count = Counter() self.countToStack = defaultdict(list) def push(self, val): self.count[val] += 1 self.countToStack[self.count[val]].append(val) self.m...
22.297297
57
0.575758
79506724751efe20007370d5ce85206bcb9c0e0e
92
py
Python
onfleet/config.py
YokySantiago/pyonfleet
6a31eafdee81a1807a7f9a5e0aa0f0f91ff0bff1
[ "MIT" ]
9
2019-05-25T19:01:31.000Z
2022-03-23T15:51:58.000Z
onfleet/config.py
YokySantiago/pyonfleet
6a31eafdee81a1807a7f9a5e0aa0f0f91ff0bff1
[ "MIT" ]
15
2020-01-18T17:50:24.000Z
2022-01-06T00:36:14.000Z
onfleet/config.py
YokySantiago/pyonfleet
6a31eafdee81a1807a7f9a5e0aa0f0f91ff0bff1
[ "MIT" ]
5
2019-12-29T23:03:17.000Z
2021-12-14T20:23:15.000Z
API_VERSION = 'v2' API_BASE_URL = f'https://onfleet.com/api/{API_VERSION}' RATE_LIMIT = 20
18.4
55
0.728261
795067e8dec6761b6dce5ba5efac62d0ea310744
3,034
py
Python
tests/unit/common/etl/transformers/test_cell_expression.py
HumanCellAtlas/matrix-service
ed9a23d407cce89127b8f0b662c3d2ef2e8fec77
[ "MIT" ]
11
2018-10-26T20:47:55.000Z
2022-02-02T10:32:42.000Z
tests/unit/common/etl/transformers/test_cell_expression.py
HumanCellAtlas/matrix-service
ed9a23d407cce89127b8f0b662c3d2ef2e8fec77
[ "MIT" ]
379
2018-06-04T22:44:33.000Z
2020-06-03T00:20:08.000Z
tests/unit/common/etl/transformers/test_cell_expression.py
HumanCellAtlas/matrix-service
ed9a23d407cce89127b8f0b662c3d2ef2e8fec77
[ "MIT" ]
4
2018-11-22T01:00:27.000Z
2020-09-01T16:42:05.000Z
import mock import os import unittest from matrix.common.aws.redshift_handler import TableName from matrix.common.etl.transformers.cell_expression import CellExpressionTransformer class TestCellExpressionTransformer(unittest.TestCase): def setUp(self): self.transformer = CellExpressionTransformer("") ...
48.935484
112
0.659525
79506822e4a905e05633eaa2d16f57f77b83ba24
31
py
Python
programming/9.1/main.py
Sasha-hk/saceit-practice
1c6ebfb3881ad1100b5849afa5bb9e306c0aeb51
[ "MIT" ]
1
2022-03-22T07:10:37.000Z
2022-03-22T07:10:37.000Z
programming/9.1/main.py
Sasha-hk/saceit-practice
1c6ebfb3881ad1100b5849afa5bb9e306c0aeb51
[ "MIT" ]
null
null
null
programming/9.1/main.py
Sasha-hk/saceit-practice
1c6ebfb3881ad1100b5849afa5bb9e306c0aeb51
[ "MIT" ]
null
null
null
import os os.system('./main')
7.75
19
0.645161
7950687a2fcd0c9f5693ffadcb1d6f2ff370eca4
378
py
Python
wrapper/tests/testrunner.py
mareklibra/manageiq-v2v-conversion_host
067625e3aa4c7188548114fe536dc822ab8c23c3
[ "Apache-2.0" ]
5
2020-03-31T10:25:32.000Z
2022-01-18T05:06:35.000Z
wrapper/tests/testrunner.py
mareklibra/manageiq-v2v-conversion_host
067625e3aa4c7188548114fe536dc822ab8c23c3
[ "Apache-2.0" ]
88
2020-01-09T17:01:12.000Z
2022-01-28T16:50:03.000Z
wrapper/tests/testrunner.py
mareklibra/manageiq-v2v-conversion_host
067625e3aa4c7188548114fe536dc822ab8c23c3
[ "Apache-2.0" ]
15
2020-01-09T15:10:36.000Z
2022-03-30T06:49:39.000Z
#!/usr/bin/env python import unittest from test_openstack import * # NOQA from test_output_parser import * # NOQA from test_ovirt import * # NOQA from test_routines import * # NOQA from test_state import * # NOQA from test_v2v_args import * # NOQA from test_pre_copy import * # NOQA from test_osp_wrapper import ...
25.2
40
0.73545
7950687f88a40394ea0d7336f716dd7c69f7ccab
40,901
py
Python
src/xm/core/xmnode.py
xm-blockchain/xm-core
2282b435a02f061424d656155756d8f50238bcfd
[ "MIT" ]
null
null
null
src/xm/core/xmnode.py
xm-blockchain/xm-core
2282b435a02f061424d656155756d8f50238bcfd
[ "MIT" ]
1
2020-11-26T00:07:31.000Z
2020-11-26T00:07:31.000Z
src/xm/core/xmnode.py
xm-blockchain/xm-core
2282b435a02f061424d656155756d8f50238bcfd
[ "MIT" ]
null
null
null
# coding=utf-8 # Distributed under the MIT software license, see the accompanying # file LICENSE or http://www.opensource.org/licenses/mit-license.php. from decimal import Decimal from typing import Optional, List, Iterator, Tuple from pyxmlib.pyxmlib import xmHelper, bin2hstr from twisted.internet import reactor fro...
46.744
134
0.565756
795069f039b36c276fc23713680b7eaceb08a711
5,571
py
Python
configs/dcn/faster_rcnn_mdconv_c3-c5_r50_fpn_1x.py
AiLvv/mmdetection
2489aa4fc8df3b4c39c1cc72571a677e4451a44c
[ "Apache-2.0" ]
null
null
null
configs/dcn/faster_rcnn_mdconv_c3-c5_r50_fpn_1x.py
AiLvv/mmdetection
2489aa4fc8df3b4c39c1cc72571a677e4451a44c
[ "Apache-2.0" ]
null
null
null
configs/dcn/faster_rcnn_mdconv_c3-c5_r50_fpn_1x.py
AiLvv/mmdetection
2489aa4fc8df3b4c39c1cc72571a677e4451a44c
[ "Apache-2.0" ]
null
null
null
# model settings model = dict( type='FasterRCNN', pretrained='torchvision://resnet50', backbone=dict( type='ResNet', depth=50, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, norm_cfg=dict(type='BN', requires_grad=True), style='pytorch', ...
31.122905
78
0.596302
79506b7328a6db4d8cb961e4a1464df5490eb29d
2,750
py
Python
gupb/controller/berserk/knowledge_decoder.py
domo23/GUPB
198e0cd1121fff71065b567af1e1809ce382c28d
[ "MIT" ]
null
null
null
gupb/controller/berserk/knowledge_decoder.py
domo23/GUPB
198e0cd1121fff71065b567af1e1809ce382c28d
[ "MIT" ]
null
null
null
gupb/controller/berserk/knowledge_decoder.py
domo23/GUPB
198e0cd1121fff71065b567af1e1809ce382c28d
[ "MIT" ]
null
null
null
from gupb.model import characters from gupb.model.coordinates import Coords from gupb.model.arenas import Arena from pathfinding.core.grid import Grid class KnowledgeDecoder: def __init__(self, knowledge: characters.ChampionKnowledge = None): self._knowledge = knowledge self._info = {} sel...
38.732394
120
0.638909
79506c0bda256b86ee776eefeebae54115491fe3
15,805
py
Python
homeassistant/components/stream/__init__.py
hermelin44/core
4885fa01b9678eb5f5fa6b7eba64bf9af9f74ffb
[ "Apache-2.0" ]
null
null
null
homeassistant/components/stream/__init__.py
hermelin44/core
4885fa01b9678eb5f5fa6b7eba64bf9af9f74ffb
[ "Apache-2.0" ]
null
null
null
homeassistant/components/stream/__init__.py
hermelin44/core
4885fa01b9678eb5f5fa6b7eba64bf9af9f74ffb
[ "Apache-2.0" ]
null
null
null
"""Provide functionality to stream video source. Components use create_stream with a stream source (e.g. an rtsp url) to create a new Stream object. Stream manages: - Background work to fetch and decode a stream - Desired output formats - Home Assistant URLs for viewing a stream - Access tokens for URLs for vi...
35.357942
94
0.637583
79506cce3d28ebb2b4a8d870833595ff49b46b33
614
py
Python
pf9/inventory/commands.py
sirredbeard/express-cli
83c2a731e8019d54676604832c5f4ab400580c2e
[ "Apache-2.0" ]
4
2019-12-06T20:39:53.000Z
2021-01-05T07:01:35.000Z
pf9/inventory/commands.py
sirredbeard/express-cli
83c2a731e8019d54676604832c5f4ab400580c2e
[ "Apache-2.0" ]
42
2019-09-20T20:35:09.000Z
2021-09-23T23:28:05.000Z
pf9/inventory/commands.py
sirredbeard/express-cli
83c2a731e8019d54676604832c5f4ab400580c2e
[ "Apache-2.0" ]
5
2019-11-19T02:36:01.000Z
2021-01-05T04:46:48.000Z
import click import os from prettytable import PrettyTable @click.group() def inventory(): """Manage Platform9 Express Inventories""" @inventory.command('list') @click.pass_obj def list(obj): """List Platform9 Express Inventories.""" # lists pf9-express inventories pf9_exp_conf_dir = obj['pf9_exp_co...
26.695652
110
0.684039
79506da6feb664e1f409766d5aad7127c0535e9d
253
py
Python
src/tests/test_historylinks/models.py
matthiask/django-historylinks
44108d2aa26317d53ea9c26bdff5b9471958dcf5
[ "BSD-3-Clause" ]
15
2015-04-09T14:35:45.000Z
2020-11-20T01:26:36.000Z
src/tests/test_historylinks/models.py
matthiask/django-historylinks
44108d2aa26317d53ea9c26bdff5b9471958dcf5
[ "BSD-3-Clause" ]
3
2015-04-14T16:07:34.000Z
2019-01-11T17:41:22.000Z
src/tests/test_historylinks/models.py
matthiask/django-historylinks
44108d2aa26317d53ea9c26bdff5b9471958dcf5
[ "BSD-3-Clause" ]
5
2015-04-07T10:39:45.000Z
2019-01-10T12:53:24.000Z
from __future__ import unicode_literals from django.db import models class HistoryLinkTestModel(models.Model): slug = models.SlugField( unique=True, ) def get_absolute_url(self): return "/{slug}/".format(slug=self.slug)
18.071429
48
0.695652
79506e32dd22c1fc1def1f748aa8a2578323155e
981
py
Python
tests/test_broadsteel_datascience.py
jirvingphd/broadsteel_datascience
878aa141160bfcd62803365cb613c515c1fa3ca7
[ "MIT" ]
null
null
null
tests/test_broadsteel_datascience.py
jirvingphd/broadsteel_datascience
878aa141160bfcd62803365cb613c515c1fa3ca7
[ "MIT" ]
196
2019-05-10T17:08:52.000Z
2022-03-28T00:19:18.000Z
tests/test_broadsteel_datascience.py
jirvingphd/broadsteel_datascience
878aa141160bfcd62803365cb613c515c1fa3ca7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `broadsteel_datascience` package.""" import unittest from click.testing import CliRunner from broadsteel_datascience import broadsteel_datascience from broadsteel_datascience import cli class TestBroadsteel_datascience(unittest.TestCase): """Tests for...
28.028571
74
0.671764
79506ec9c0ee7447e1e64b29e4dbda93a9531002
342
py
Python
covid19/db/base_model.py
jeonghaknam/cvd2019
045f2a6f63c97e176cd757d1cd5a86358f424a0a
[ "MIT" ]
null
null
null
covid19/db/base_model.py
jeonghaknam/cvd2019
045f2a6f63c97e176cd757d1cd5a86358f424a0a
[ "MIT" ]
null
null
null
covid19/db/base_model.py
jeonghaknam/cvd2019
045f2a6f63c97e176cd757d1cd5a86358f424a0a
[ "MIT" ]
null
null
null
from django.db import models class BaseModel(models.Model): '''추상 모델 클래스''' create_time = models.DateField(auto_now_add=True, verbose_name='작성일자') update_time = models.DateTimeField(auto_now=True, verbose_name='없데이트') is_delete = models.BooleanField(default=False, verbose_name='삭제') class Meta: ...
31.090909
74
0.719298
79506efb0fbb9fc0f73c916de3079b8908e9d1a6
13,447
py
Python
examples/FasterRCNN/config.py
s36934512/tensorpack
78a16615f8c9e6993c2a14961ca3fdd05f7c273c
[ "Apache-2.0" ]
4,404
2018-05-30T23:38:42.000Z
2022-03-31T22:30:11.000Z
examples/FasterRCNN/config.py
s36934512/tensorpack
78a16615f8c9e6993c2a14961ca3fdd05f7c273c
[ "Apache-2.0" ]
771
2018-06-01T09:54:00.000Z
2022-03-31T23:12:29.000Z
examples/FasterRCNN/config.py
s36934512/tensorpack
78a16615f8c9e6993c2a14961ca3fdd05f7c273c
[ "Apache-2.0" ]
1,412
2018-06-01T00:29:43.000Z
2022-03-26T17:37:39.000Z
# -*- coding: utf-8 -*- # File: config.py import numpy as np import os import pprint import six from tensorpack.utils import logger from tensorpack.utils.gpu import get_num_gpu __all__ = ['config', 'finalize_configs'] class AttrDict(): _freezed = False """ Avoid accidental creation of new hierarchies. """...
41.631579
176
0.65866
795070b2b747d02ca45d763147af32e857b8eafe
4,957
py
Python
src/api/datahub/databus/pullers/queue/puller.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
84
2021-06-30T06:20:23.000Z
2022-03-22T03:05:49.000Z
src/api/datahub/databus/pullers/queue/puller.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
7
2021-06-30T06:21:16.000Z
2022-03-29T07:36:13.000Z
src/api/datahub/databus/pullers/queue/puller.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
40
2021-06-30T06:21:26.000Z
2022-03-29T12:42:26.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ------------------------------------------...
43.482456
120
0.65463
795073404d7342347f9795845da603deb4d1e260
2,252
py
Python
statsd/tests.py
krux/pystatsd
d6f88da52018c7a0a96615e3a77172d115b56740
[ "BSD-3-Clause" ]
null
null
null
statsd/tests.py
krux/pystatsd
d6f88da52018c7a0a96615e3a77172d115b56740
[ "BSD-3-Clause" ]
null
null
null
statsd/tests.py
krux/pystatsd
d6f88da52018c7a0a96615e3a77172d115b56740
[ "BSD-3-Clause" ]
null
null
null
import random import re import mock from nose.tools import eq_ from statsd import StatsClient ADDR = ('localhost', 8125) def _client(prefix=None): sc = StatsClient(host=ADDR[0], port=ADDR[1], prefix=prefix) sc._sock = mock.Mock() return sc def _sock_check(cl, count, val): eq_(cl._sock.sendto.ca...
18.766667
63
0.589698
7950750123b16c9fa4ee06a8a3be7bcb0eaecd5d
5,285
py
Python
test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/objecttypeversiontolerant/_operations/_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/objecttypeversiontolerant/_operations/_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/objecttypeversiontolerant/_operations/_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
32.826087
106
0.637086
795076c11ea4506de5dca46f8fe31114aca137e2
1,364
py
Python
param_sweep.py
gavincangan/alvin
4e1945a3f5bb061842f0e35633f254863f8923c8
[ "MIT" ]
null
null
null
param_sweep.py
gavincangan/alvin
4e1945a3f5bb061842f0e35633f254863f8923c8
[ "MIT" ]
null
null
null
param_sweep.py
gavincangan/alvin
4e1945a3f5bb061842f0e35633f254863f8923c8
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys, os, shutil, math from math import pi from colorama import init, Fore, Style from configsingleton import ConfigSingleton def execute(cmd): # Print the command to execute in green print(Fore.GREEN + cmd) print(Style.RESET_ALL) os.system(cmd) config = ConfigSingleton.ge...
26.230769
65
0.695748
7950774340ad1238440be8e86e0ff851e1122df1
774
py
Python
esphome/components/cap1188/binary_sensor.py
OttoWinter/esphomeyaml
6a85259e4d6d1b0a0f819688b8e555efcb99ecb0
[ "MIT" ]
249
2018-04-07T12:04:11.000Z
2019-01-25T01:11:34.000Z
esphome/components/cap1188/binary_sensor.py
OttoWinter/esphomeyaml
6a85259e4d6d1b0a0f819688b8e555efcb99ecb0
[ "MIT" ]
243
2018-04-11T16:37:11.000Z
2019-01-25T16:50:37.000Z
esphome/components/cap1188/binary_sensor.py
OttoWinter/esphomeyaml
6a85259e4d6d1b0a0f819688b8e555efcb99ecb0
[ "MIT" ]
40
2018-04-10T05:50:14.000Z
2019-01-25T15:20:36.000Z
import esphome.codegen as cg import esphome.config_validation as cv from esphome.components import binary_sensor from esphome.const import CONF_CHANNEL from . import cap1188_ns, CAP1188Component, CONF_CAP1188_ID DEPENDENCIES = ["cap1188"] CAP1188Channel = cap1188_ns.class_("CAP1188Channel", binary_sensor.BinarySensor)...
32.25
80
0.776486
79507798335d24dc3978a832e3a06fc3d294011d
1,353
py
Python
src/UserInterface.py
RhysRead/camControl
7018203c5576b133407630e3ca4c975cb8c7fa7c
[ "Apache-2.0" ]
null
null
null
src/UserInterface.py
RhysRead/camControl
7018203c5576b133407630e3ca4c975cb8c7fa7c
[ "Apache-2.0" ]
null
null
null
src/UserInterface.py
RhysRead/camControl
7018203c5576b133407630e3ca4c975cb8c7fa7c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """UserInterface.py: Contains the code needed for managing the camControl user interface.""" __author__ = "Rhys Read" __copyright__ = "Copyright 2018, Rhys Read" import logging import cv2 class InterfaceManager(object): def __init__(self, cursor_manager): """ Used to rea...
28.787234
92
0.595713
795077e5d3f0e4c23b800a74f2cb867ff7761709
131
py
Python
POP1/worksheets/three/ex03/code.py
silvafj/BBK-MSCCS-2017-18
d97b0f8e7434d19a1a4006989c32c4c1deb93842
[ "MIT" ]
1
2021-12-29T19:38:56.000Z
2021-12-29T19:38:56.000Z
POP1/worksheets/three/ex03/code.py
silvafj/BBK-MSCCS-2017-18
d97b0f8e7434d19a1a4006989c32c4c1deb93842
[ "MIT" ]
null
null
null
POP1/worksheets/three/ex03/code.py
silvafj/BBK-MSCCS-2017-18
d97b0f8e7434d19a1a4006989c32c4c1deb93842
[ "MIT" ]
2
2021-04-08T22:58:03.000Z
2021-04-09T01:16:51.000Z
numbers = {int(i) for i in input().split()} & {int(i) for i in input().split()} print(' '.join((str(i) for i in sorted(numbers))))
43.666667
79
0.603053
795078112677d63cd5f03126b3a980b6fb38e5f9
399
py
Python
19583.py
WaiNaat/BOJ-Python
3365ef090c7dcf6e6a598fea0b25c416a5a3e01b
[ "MIT" ]
null
null
null
19583.py
WaiNaat/BOJ-Python
3365ef090c7dcf6e6a598fea0b25c416a5a3e01b
[ "MIT" ]
null
null
null
19583.py
WaiNaat/BOJ-Python
3365ef090c7dcf6e6a598fea0b25c416a5a3e01b
[ "MIT" ]
null
null
null
import sys input = sys.stdin.readline # input & process start, end, stEnd = list(map(int, input().replace(':', '').split())) valid = set([]) sol = 0 chat = input() while chat != "": time, id = chat.split() time = int(time[:2]) * 100 + int(time[3:]) if time <= start: valid.add(id) elif end <= time <= stEnd and i...
19
68
0.601504
7950783f9a1023028774fb97ef1ee6d895ced8ec
1,218
py
Python
thinc/tests/unit/test_rates.py
adamjm/thinc
219d8172faee83303bb78e338996d7b6c6d56155
[ "MIT" ]
44
2015-01-02T22:04:48.000Z
2020-05-15T21:17:10.000Z
venv/lib/python3.6/site-packages/thinc/tests/unit/test_rates.py
assaufianggie/VerraBot
cbe46ccb219c2972871e760268b427e1f8e79f93
[ "MIT" ]
4
2021-06-02T00:49:27.000Z
2022-01-13T01:59:34.000Z
venv/lib/python3.6/site-packages/thinc/tests/unit/test_rates.py
assaufianggie/VerraBot
cbe46ccb219c2972871e760268b427e1f8e79f93
[ "MIT" ]
7
2015-06-18T00:50:57.000Z
2016-02-03T17:08:07.000Z
# coding: utf8 from __future__ import unicode_literals from ...rates import decaying, compounding, annealing, slanted_triangular def test_decaying_rate(): rates = decaying(0.001, 1e-4) rate = next(rates) assert rate == 0.001 next_rate = next(rates) assert next_rate < rate assert next_rate > 0...
24.857143
73
0.646141
795078ae76ba0d1721e6a97c69747724b2c1f3db
3,625
py
Python
index/tests.py
PickBas/meta-social
f6fb0a50c30e240086a75917b705dfdc71dbebf9
[ "MIT" ]
null
null
null
index/tests.py
PickBas/meta-social
f6fb0a50c30e240086a75917b705dfdc71dbebf9
[ "MIT" ]
15
2020-06-07T07:58:05.000Z
2022-01-19T16:53:47.000Z
index/tests.py
PickBas/meta-social
f6fb0a50c30e240086a75917b705dfdc71dbebf9
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.test import TestCase, Client from django.urls import reverse # class AdminTest(TestCase): # pass # class LogoutViewTest(MetaSetUp): # pass class MetaSetUp(TestCase): fixtures = ["test_friends_music_db.json"] def setUp(self): self.client...
29
84
0.643034
795078f58731d7996517e5d4a7747f81f7f3bfe7
1,883
py
Python
rdkit/VLib/NodeLib/SmilesSupply.py
docking-org/rdk
6eb710254f027b348a8e3089e6a92c3d40de0949
[ "PostgreSQL" ]
1
2019-01-23T06:02:24.000Z
2019-01-23T06:02:24.000Z
rdkit/VLib/NodeLib/SmilesSupply.py
Mike575/rdkit
373a89021e478f878c6011a201e3fb8f4a122093
[ "PostgreSQL" ]
null
null
null
rdkit/VLib/NodeLib/SmilesSupply.py
Mike575/rdkit
373a89021e478f878c6011a201e3fb8f4a122093
[ "PostgreSQL" ]
1
2022-03-30T03:22:10.000Z
2022-03-30T03:22:10.000Z
# $Id$ # # Copyright (C) 2003 Rational Discovery LLC # All Rights Reserved # from rdkit import Chem from rdkit import six from rdkit.VLib.Supply import SupplyNode class SmilesSupplyNode(SupplyNode): """ Smiles supplier Sample Usage: >>> import os >>> from rdkit import RDConfig >>> fileN = os.pa...
24.141026
96
0.59692
79507948af14d62b2dd867d8592fc12065cd7e61
13,440
py
Python
mypy/test/testfinegrained.py
mhchia/mypy
b7d74f3e202fa60ff0d8a2efc299913aad68e2ed
[ "PSF-2.0" ]
1
2022-03-26T20:37:26.000Z
2022-03-26T20:37:26.000Z
mypy/test/testfinegrained.py
mhchia/mypy
b7d74f3e202fa60ff0d8a2efc299913aad68e2ed
[ "PSF-2.0" ]
2
2022-03-10T11:53:19.000Z
2022-03-22T15:24:21.000Z
mypy/test/testfinegrained.py
mhchia/mypy
b7d74f3e202fa60ff0d8a2efc299913aad68e2ed
[ "PSF-2.0" ]
null
null
null
"""Test cases for fine-grained incremental checking. Each test cases runs a batch build followed by one or more fine-grained incremental steps. We verify that each step produces the expected output. See the comment at the top of test-data/unit/fine-grained.test for more information. N.B.: Unlike most of the other te...
39.646018
98
0.603497
7950794e82481fc87e14cd45b5c5e8df3ace890c
38,649
py
Python
PyInstaller/depend/bindepend.py
SnoopJeDi/pyinstaller
20f922cdac0207e943395bcae4a23d597558c5f7
[ "Apache-2.0" ]
null
null
null
PyInstaller/depend/bindepend.py
SnoopJeDi/pyinstaller
20f922cdac0207e943395bcae4a23d597558c5f7
[ "Apache-2.0" ]
null
null
null
PyInstaller/depend/bindepend.py
SnoopJeDi/pyinstaller
20f922cdac0207e943395bcae4a23d597558c5f7
[ "Apache-2.0" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2013-2022, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License (version 2 # or later) with exception for distributing the bootloader. # # The full license is in the file COPYING.txt...
40.768987
120
0.614143
795079512712dd827e69c3d791b7ed6e8a90f738
1,463
py
Python
cvxpy/reductions/eliminate_pwl/eliminate_pwl.py
hashstat/cvxpy
20d667ebe8614821fa38e41b1e333257512d9594
[ "ECL-2.0", "Apache-2.0" ]
1
2021-05-28T16:41:11.000Z
2021-05-28T16:41:11.000Z
cvxpy/reductions/eliminate_pwl/eliminate_pwl.py
h-vetinari/cvxpy
86307f271819bb78fcdf64a9c3a424773e8269fa
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cvxpy/reductions/eliminate_pwl/eliminate_pwl.py
h-vetinari/cvxpy
86307f271819bb78fcdf64a9c3a424773e8269fa
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
""" Copyright 2017 Robin Verschueren 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, softw...
37.512821
72
0.742994
795079ab6824cbc65bb3ae599bf7691185d9c9ab
2,917
py
Python
2nd June Assignments/case study 3/questions.py
JangirSumit/data_science
a1957122f8a4c66e3b4c7b7c93a74c53a2db1fe4
[ "MIT" ]
15
2019-05-05T04:48:42.000Z
2022-02-15T12:08:33.000Z
2nd June Assignments/case study 3/questions.py
JangirSumit/data_science
a1957122f8a4c66e3b4c7b7c93a74c53a2db1fe4
[ "MIT" ]
null
null
null
2nd June Assignments/case study 3/questions.py
JangirSumit/data_science
a1957122f8a4c66e3b4c7b7c93a74c53a2db1fe4
[ "MIT" ]
53
2019-11-10T05:09:25.000Z
2022-03-28T01:26:32.000Z
from sklearn.preprocessing import StandardScaler import pandas as pd from sklearn.model_selection import train_test_split, ShuffleSplit, GridSearchCV from sklearn import svm from sklearn import metrics from sklearn.preprocessing import LabelEncoder # 1.Load the data from “college.csv” that has attributes collected abo...
36.4625
141
0.758999
79507b60e531382c2973d6a057af0c36ecf5b302
1,791
py
Python
simulate.py
jerrytheo/mim-plotsim
2baa4a75938652bfeec957f4924e11e2c7da7a71
[ "MIT" ]
1
2018-06-01T15:15:13.000Z
2018-06-01T15:15:13.000Z
simulate.py
MiMSwarm/point-simulation
2baa4a75938652bfeec957f4924e11e2c7da7a71
[ "MIT" ]
null
null
null
simulate.py
MiMSwarm/point-simulation
2baa4a75938652bfeec957f4924e11e2c7da7a71
[ "MIT" ]
null
null
null
from source import Environment import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation import numpy as np def horizontal_line(xstart, xstop, yval): xstop += 0.01 return np.vstack(( np.arange(xstart, xstop, 0.01), np.full(int(round((xstop - xstart) * 100)), yval), )) ...
26.731343
71
0.531547
79507c0bb88b88cb4700156a8ddd4a04644e318c
49,490
py
Python
networkx/readwrite/tests/test_graphml.py
nik0sc/networkx
3d5f577f5176950473367c89fc4e2fac5fb49ce7
[ "BSD-3-Clause" ]
1
2019-10-21T06:10:38.000Z
2019-10-21T06:10:38.000Z
networkx/readwrite/tests/test_graphml.py
nik0sc/networkx
3d5f577f5176950473367c89fc4e2fac5fb49ce7
[ "BSD-3-Clause" ]
null
null
null
networkx/readwrite/tests/test_graphml.py
nik0sc/networkx
3d5f577f5176950473367c89fc4e2fac5fb49ce7
[ "BSD-3-Clause" ]
null
null
null
import pytest import networkx as nx from networkx.testing.utils import assert_edges_equal, assert_nodes_equal import io import tempfile import os from networkx.testing import almost_equal class BaseGraphML: @classmethod def setup_class(cls): cls.simple_directed_data = """<?xml version="1.0" encoding="...
44.545455
511
0.577692
79507c1e4827e04fa1911d085dae54db71cb4213
666
py
Python
one.py
dollarkillerx/PyTorchStudy
c17b2973c89e3a2f088513f29bd5eb6f47957585
[ "MIT" ]
null
null
null
one.py
dollarkillerx/PyTorchStudy
c17b2973c89e3a2f088513f29bd5eb6f47957585
[ "MIT" ]
null
null
null
one.py
dollarkillerx/PyTorchStudy
c17b2973c89e3a2f088513f29bd5eb6f47957585
[ "MIT" ]
null
null
null
import torch # 定义向量 vectro = torch.tensor([1,2,3,4]) print("Vector:\t\t",vectro) print('Vector: Shape:\t',vectro.shape) # 定义矩阵 matrix = torch.tensor([[1,2],[3,4]]) print('Matrix:\n',matrix) print('Matrix Shape:\n',matrix.shape) # 定义张量 tensor = torch.tensor([ [ [1,2],[3,4] ], [ [5,6],[7,8] ] ]) print('Tensor:\n',ten...
22.965517
71
0.644144
79507c4ef32056b440fb7870f789a4243a03779f
5,253
py
Python
lib/TWCManager/EMS/Growatt.py
Saftwerk/TWCManager
9b17c063ada80fc159db82fe6e3ad8c4ca071a1a
[ "Unlicense" ]
1
2021-12-26T03:41:22.000Z
2021-12-26T03:41:22.000Z
lib/TWCManager/EMS/Growatt.py
Saftwerk/TWCManager
9b17c063ada80fc159db82fe6e3ad8c4ca071a1a
[ "Unlicense" ]
null
null
null
lib/TWCManager/EMS/Growatt.py
Saftwerk/TWCManager
9b17c063ada80fc159db82fe6e3ad8c4ca071a1a
[ "Unlicense" ]
null
null
null
import logging import growattServer import datetime logger = logging.getLogger(__name__.rsplit(".")[-1]) class Growatt: # Growatt EMS Module # Fetches Consumption and Generation details from Growatt API import requests import time cacheTime = 10 config = None configConfig = No...
33.458599
87
0.615077
79507d288fa6a12bc39781df6339384543dbdf3a
4,338
py
Python
app.py
nikhilpakhariya/FaceMaskDetector
5d41a1a214ff862e84cda1c1578ba9ea6fb4dcd9
[ "MIT" ]
null
null
null
app.py
nikhilpakhariya/FaceMaskDetector
5d41a1a214ff862e84cda1c1578ba9ea6fb4dcd9
[ "MIT" ]
null
null
null
app.py
nikhilpakhariya/FaceMaskDetector
5d41a1a214ff862e84cda1c1578ba9ea6fb4dcd9
[ "MIT" ]
null
null
null
import streamlit as st from PIL import Image, ImageEnhance import numpy as np import cv2 import os from tensorflow.keras.applications.mobilenet_v2 import preprocess_input from tensorflow.keras.preprocessing.image import img_to_array from tensorflow.keras.models import load_model import detect_mask_image def mask_imag...
40.542056
108
0.618027
79507e49ac8c71e1acacabb2849a01bf50795d25
1,564
py
Python
bin/builder.py
grampelberg/k8s-icons
928088b18dd4be9093c2ce242509e5b3dfd160a4
[ "MIT" ]
2
2019-09-12T06:47:18.000Z
2019-09-14T13:34:34.000Z
bin/builder.py
grampelberg/k8s-icons
928088b18dd4be9093c2ce242509e5b3dfd160a4
[ "MIT" ]
null
null
null
bin/builder.py
grampelberg/k8s-icons
928088b18dd4be9093c2ce242509e5b3dfd160a4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import pathlib import sys from bs4 import BeautifulSoup colors = { '#ffffff': '--foreground', '#eeeeee': '--foreground', '#326ce5': '--background' } parent_markup = """ <svg aria-hidden="true" style="position: absolute; width: 0; height: 0; overflow: hidden;" ...
21.722222
70
0.54156
79507e7c9812b48e95dd330a199ce2ea6e2398c8
181
py
Python
tests/conftest.py
nmvalera/boilerplate-python
53282c6adcf389965e4a6d06aeefbb0194ee52db
[ "BSD-3-Clause" ]
1
2018-11-08T06:19:26.000Z
2018-11-08T06:19:26.000Z
tests/conftest.py
nmvalera/boilerplate-python
53282c6adcf389965e4a6d06aeefbb0194ee52db
[ "BSD-3-Clause" ]
null
null
null
tests/conftest.py
nmvalera/boilerplate-python
53282c6adcf389965e4a6d06aeefbb0194ee52db
[ "BSD-3-Clause" ]
null
null
null
""" tests.conftest ~~~~~~~~~~~~~~ :copyright: Copyright 2017 by Nicolas Maurice, see AUTHORS.rst for more details. :license: BSD, see LICENSE for more details. """
22.625
84
0.618785
7950805c4a54639b3b109219b947709eccd5f911
101
py
Python
main.py
samyoyo/blackowl
d3a40954919cc597bb56fbc075c4f2f4368de3fb
[ "MIT" ]
7
2018-07-12T08:49:31.000Z
2021-02-17T22:32:23.000Z
main.py
TheRipperJhon/Black_Owl
d3a40954919cc597bb56fbc075c4f2f4368de3fb
[ "MIT" ]
null
null
null
main.py
TheRipperJhon/Black_Owl
d3a40954919cc597bb56fbc075c4f2f4368de3fb
[ "MIT" ]
3
2019-07-16T15:41:08.000Z
2021-01-12T18:35:07.000Z
#!/usr/bin/env python from core import blackowl if __name__ == '__main__': blackowl.user_put()
14.428571
26
0.70297
7950806b7fb8cd426fbfd86ed5fcb9dfedb837c9
8,376
py
Python
persistqueue/sqlackqueue.py
Nextpertise/persist-queue
ca1e8de8f5e2d3c7a257cd9f129af415e0fffdb4
[ "BSD-3-Clause" ]
null
null
null
persistqueue/sqlackqueue.py
Nextpertise/persist-queue
ca1e8de8f5e2d3c7a257cd9f129af415e0fffdb4
[ "BSD-3-Clause" ]
null
null
null
persistqueue/sqlackqueue.py
Nextpertise/persist-queue
ca1e8de8f5e2d3c7a257cd9f129af415e0fffdb4
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 from __future__ import absolute_import from __future__ import unicode_literals import logging import pickle import sqlite3 import time as _time import threading import warnings from . import sqlbase from .exceptions import Empty sqlite3.enable_callback_tracebacks(True) log = logging.getLogger(__name_...
33.106719
78
0.587393
7950808680383283e16d71b4811c596b24185eea
327
py
Python
tests/test_simple.py
SmartDataAnalytics/Bio-KEEN
680dffb6cd170b0f79ea09f0f730f0baa9ce73d4
[ "MIT" ]
38
2018-11-13T18:38:46.000Z
2021-12-14T12:32:48.000Z
tests/test_simple.py
SmartDataAnalytics/Bio-KEEN
680dffb6cd170b0f79ea09f0f730f0baa9ce73d4
[ "MIT" ]
27
2018-10-08T09:01:59.000Z
2021-02-07T20:43:31.000Z
tests/test_simple.py
SmartDataAnalytics/Bio-KEEN
680dffb6cd170b0f79ea09f0f730f0baa9ce73d4
[ "MIT" ]
2
2019-12-04T19:49:06.000Z
2020-07-03T01:25:09.000Z
# -*- coding: utf-8 -*- """Simple tests for BioKEEN.""" import unittest from biokeen.constants import VERSION class TestImport(unittest.TestCase): """Simple tests for importing BioKEEN.""" def test_version_type(self): """Test the type of the version string.""" self.assertIsInstance(VERSION...
20.4375
50
0.678899
795081be7cf3c77d2dc0b6189c542cd5cb083a1d
2,704
py
Python
prettyqt/custom_widgets/__init__.py
phil65/PrettyQt
26327670c46caa039c9bd15cb17a35ef5ad72e6c
[ "MIT" ]
7
2019-05-01T01:34:36.000Z
2022-03-08T02:24:14.000Z
prettyqt/custom_widgets/__init__.py
phil65/PrettyQt
26327670c46caa039c9bd15cb17a35ef5ad72e6c
[ "MIT" ]
141
2019-04-16T11:22:01.000Z
2021-04-14T15:12:36.000Z
prettyqt/custom_widgets/__init__.py
phil65/PrettyQt
26327670c46caa039c9bd15cb17a35ef5ad72e6c
[ "MIT" ]
5
2019-04-17T11:48:19.000Z
2021-11-21T10:30:19.000Z
"""Module containing custom widget classes.""" from .image import Image from .listinput import ListInput from .booldicttoolbutton import BoolDictToolButton from .optionalwidget import OptionalWidget from .collapsibleframe import CollapsibleFrame from .expandableline import ExpandableLine from .singlelinetextedit impor...
30.382022
67
0.788831
7950820f21d4ea6e7a4a3af7e2e59d6cb7d4498c
908
py
Python
setup.py
GabLeRoux/sshconf
7f78cc8d9390e039d9d70304f772e66c657b83d7
[ "MIT" ]
null
null
null
setup.py
GabLeRoux/sshconf
7f78cc8d9390e039d9d70304f772e66c657b83d7
[ "MIT" ]
null
null
null
setup.py
GabLeRoux/sshconf
7f78cc8d9390e039d9d70304f772e66c657b83d7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup, Distribution Distribution().fetch_build_eggs('versiontag') from versiontag import get_version, cache_git_tag cache_git_tag() MY_VERSION = get_version(pypi=True) setup( name='sshconf', version=MY_VERSION, description='Lightweight SSH config library', ...
30.266667
77
0.660793
7950825afd3d3e051136da89b72568e8cb3e7abc
15,077
py
Python
mars/promise.py
ChenQuan/mars
46fc9747e99210cebfabfc2d85bcc8272440d1a3
[ "Apache-2.0" ]
null
null
null
mars/promise.py
ChenQuan/mars
46fc9747e99210cebfabfc2d85bcc8272440d1a3
[ "Apache-2.0" ]
null
null
null
mars/promise.py
ChenQuan/mars
46fc9747e99210cebfabfc2d85bcc8272440d1a3
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2018 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
32.284797
91
0.586456
7950826bec5a019fd91606a6165620fa5ea6abe2
2,873
py
Python
data/process_data.py
emichris/Disaster-Response
68d894dc5e28d461fb5a7b1b040e665119e9ad34
[ "MIT" ]
null
null
null
data/process_data.py
emichris/Disaster-Response
68d894dc5e28d461fb5a7b1b040e665119e9ad34
[ "MIT" ]
null
null
null
data/process_data.py
emichris/Disaster-Response
68d894dc5e28d461fb5a7b1b040e665119e9ad34
[ "MIT" ]
null
null
null
import sys import pandas as pd import numpy as np from sqlalchemy import create_engine def load_data(messages_filepath, categories_filepath): ''' Function reads in both datasets It returns a dataframe with messages and categories merged on 'id' ''' messages = pd.read_csv(messages_filepath) ...
35.469136
142
0.671076
795082b7b8dc110e1af40fd769d2eeca2f3b1c0c
1,156
py
Python
doc/source/scripts/titles.py
tkn963/pydarkstar
ac8adf198988c6f4cd42ee033a36369ecc9eaf28
[ "MIT" ]
18
2015-01-13T03:48:02.000Z
2022-01-23T16:52:10.000Z
doc/source/scripts/titles.py
joshr45/pydarkstar
ac8adf198988c6f4cd42ee033a36369ecc9eaf28
[ "MIT" ]
29
2015-01-14T01:34:10.000Z
2022-01-30T16:57:27.000Z
doc/source/scripts/titles.py
joshr45/pydarkstar
ac8adf198988c6f4cd42ee033a36369ecc9eaf28
[ "MIT" ]
46
2015-01-13T20:26:39.000Z
2022-03-22T13:19:46.000Z
import shutil import os import re work = os.getcwd() found = [] regex = re.compile(r'pydarkstar\.(.*)\.rst') for root, dirs, files in os.walk(work): for f in files: m = regex.match(f) if m: found.append((root, f)) for root, f in found: path = os.path.join(root, f) with open(pat...
26.272727
57
0.513841
795082f85d56dd8675bfc8d8d091cbfe3dc069c0
1,083
py
Python
gif_generate/urls.py
ChnZhgH/gif_generate
3f3c262f26857f421abb5159ca94ee59896bcc99
[ "MIT" ]
1
2020-06-26T08:23:33.000Z
2020-06-26T08:23:33.000Z
gif_generate/urls.py
ChnZhgH/gif_generate
3f3c262f26857f421abb5159ca94ee59896bcc99
[ "MIT" ]
8
2021-03-19T02:37:25.000Z
2022-03-12T00:39:38.000Z
gif_generate/urls.py
ChnZhgH/gif_generate
3f3c262f26857f421abb5159ca94ee59896bcc99
[ "MIT" ]
1
2021-04-12T02:29:13.000Z
2021-04-12T02:29:13.000Z
"""gif_generate URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/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') Class-...
36.1
77
0.727608
7950842e757e600a0f4cee47af9d05f94caf2122
4,936
py
Python
tests/test_so_db_adapter.py
krasm/python-onapsdk
87cd3017fc542a8afd3be51fbd89934ed87ed3a7
[ "Apache-2.0" ]
null
null
null
tests/test_so_db_adapter.py
krasm/python-onapsdk
87cd3017fc542a8afd3be51fbd89934ed87ed3a7
[ "Apache-2.0" ]
null
null
null
tests/test_so_db_adapter.py
krasm/python-onapsdk
87cd3017fc542a8afd3be51fbd89934ed87ed3a7
[ "Apache-2.0" ]
null
null
null
from unittest import mock from onapsdk.so.so_db_adapter import SoDbAdapter, IdentityService ADD_CLOUD_SITE_RESPONSE = { '_links': { 'cloudSite': { 'href': 'http://so.api.simpledemo.onap.org:30277/cloudSite/mc_test_cloud_site_3' }, 'self': { 'href': 'http://so.api.si...
39.806452
92
0.634522
79508460b180b5b0ea16d3bc1feab13784c21e2e
409
py
Python
ftwdebug.py
Shobdo-Kolpo-Drum/Project-codes
0083b9c44593c531e4837505683b50a3e6560a22
[ "MIT" ]
null
null
null
ftwdebug.py
Shobdo-Kolpo-Drum/Project-codes
0083b9c44593c531e4837505683b50a3e6560a22
[ "MIT" ]
null
null
null
ftwdebug.py
Shobdo-Kolpo-Drum/Project-codes
0083b9c44593c531e4837505683b50a3e6560a22
[ "MIT" ]
null
null
null
import wave from os import listdir from os.path import isfile, join m = input("/Users/rowshanarabegum/Downloads/data 5-12/Data1/test") onlyfiles = [f for f in listdir(m) if isfile(join(m, f))] for i in onlyfiles: try: wave.open(m+'/'+i) except: print(f"\033[1;31;47m ERROR AT "+i) ...
27.266667
66
0.623472
795085068e9d786faeaf82caaeef55b453fdc6bf
1,126
py
Python
app/__init__.py
Cian747/think-tank
82c06892d1d5b3992312baf97d0159e0269d8c00
[ "MIT" ]
null
null
null
app/__init__.py
Cian747/think-tank
82c06892d1d5b3992312baf97d0159e0269d8c00
[ "MIT" ]
null
null
null
app/__init__.py
Cian747/think-tank
82c06892d1d5b3992312baf97d0159e0269d8c00
[ "MIT" ]
null
null
null
from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager from flask_bootstrap import Bootstrap from flask_uploads import UploadSet,configure_uploads,IMAGES from config import config_options from flask_mail import Mail from flask_simplemde import SimpleMDE bootstrap = Bootstr...
26.186047
71
0.776199
79508602204637f1f86e3666025fc723fa055335
917
py
Python
mmaction/utils/logger.py
HypnosXC/mmaction2
a26d5f981449445a5e22a0a60d8b285e06c3dd6e
[ "Apache-2.0" ]
648
2021-06-24T19:33:09.000Z
2022-03-31T06:27:24.000Z
mmaction/utils/logger.py
xumingze0308/mmaction2
777546f27f8f5a3c83e10d966e2149be2fc9fa31
[ "Apache-2.0" ]
98
2020-01-21T09:41:30.000Z
2022-03-12T00:53:06.000Z
mmaction/utils/logger.py
xumingze0308/mmaction2
777546f27f8f5a3c83e10d966e2149be2fc9fa31
[ "Apache-2.0" ]
233
2020-01-18T03:46:27.000Z
2022-03-19T03:17:47.000Z
import logging from mmcv.utils import get_logger def get_root_logger(log_file=None, log_level=logging.INFO): """Use ``get_logger`` method in mmcv to get the root logger. The logger will be initialized if it has not been initialized. By default a StreamHandler will be added. If ``log_file`` is specified,...
36.68
79
0.679389
7950864132e6d9b2b263f294a5e140dea7aadde4
505
py
Python
plotly/validators/layout/updatemenu/_showactive.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
12
2020-04-18T18:10:22.000Z
2021-12-06T10:11:15.000Z
plotly/validators/layout/updatemenu/_showactive.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
27
2020-04-28T21:23:12.000Z
2021-06-25T15:36:38.000Z
plotly/validators/layout/updatemenu/_showactive.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
6
2020-04-18T23:07:08.000Z
2021-11-18T07:53:06.000Z
import _plotly_utils.basevalidators class ShowactiveValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, plotly_name='showactive', parent_name='layout.updatemenu', **kwargs ): super(ShowactiveValidator, self).__init__( plotly_name=p...
26.578947
73
0.617822
7950868fafedbc1dba611671269a33bcda87551c
2,844
py
Python
alipay/aop/api/domain/AlipayBusinessOrderCancelModel.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/domain/AlipayBusinessOrderCancelModel.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/domain/AlipayBusinessOrderCancelModel.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.constant.ParamConstants import * from alipay.aop.api.domain.PaytoolCancelRequestDetail import PaytoolCancelRequestDetail class AlipayBusinessOrderCancelModel(object): def __init__(self): self._cancel_paytool_list = None ...
34.26506
100
0.628692
795087e6a4c8e87bf54634990be21c61527cc8b5
13,417
py
Python
tensorflow/contrib/distributions/python/kernel_tests/special_math_test.py
AlexChrisF/udacity
b7f85a74058fc63ccb7601c418450ab934ef5953
[ "Apache-2.0" ]
44
2017-01-26T11:39:36.000Z
2019-06-28T10:03:19.000Z
tensorflow/contrib/distributions/python/kernel_tests/special_math_test.py
AlexChrisF/udacity
b7f85a74058fc63ccb7601c418450ab934ef5953
[ "Apache-2.0" ]
7
2017-07-13T09:40:59.000Z
2019-04-08T22:46:51.000Z
tensorflow/contrib/distributions/python/kernel_tests/special_math_test.py
AlexChrisF/udacity
b7f85a74058fc63ccb7601c418450ab934ef5953
[ "Apache-2.0" ]
11
2017-08-17T05:52:35.000Z
2021-06-19T04:39:45.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.116477
80
0.677871
79508a45bd87c382093002c7169f7081530f6b98
1,052
py
Python
PacketStats/convertion.py
mattkozlowski/packet-stats
5c12b8efbf6bcb41f2ea17bac6dd41277922c001
[ "MIT" ]
null
null
null
PacketStats/convertion.py
mattkozlowski/packet-stats
5c12b8efbf6bcb41f2ea17bac6dd41277922c001
[ "MIT" ]
null
null
null
PacketStats/convertion.py
mattkozlowski/packet-stats
5c12b8efbf6bcb41f2ea17bac6dd41277922c001
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from subprocess import check_call def export_to_txt(f_name, txt_f_name): """ Converts pcap file into txt with packets features :param f_name: str filename of source pcap file :param txt_f_name: str filename of target file """ cmd = "tshar...
30.941176
120
0.679658
79508a59a3f5d72a571dbc78a6154087f93ac6e3
4,119
py
Python
Lab-1/Playfair-Cipher/decrypt.py
mohith7548/Cryptography-LAB
05757072e38558134f2885d36915bfb0c5a26e9b
[ "MIT" ]
2
2021-02-21T18:04:19.000Z
2021-02-23T06:48:10.000Z
Lab-1/Playfair-Cipher/decrypt.py
mohith7548/Cryptography-LAB
05757072e38558134f2885d36915bfb0c5a26e9b
[ "MIT" ]
null
null
null
Lab-1/Playfair-Cipher/decrypt.py
mohith7548/Cryptography-LAB
05757072e38558134f2885d36915bfb0c5a26e9b
[ "MIT" ]
2
2019-11-29T01:06:03.000Z
2019-12-07T19:34:45.000Z
#!/usr/bin/python3 KEY = "" MATRIX = [[None for _ in range(5)] for _ in range(5)] cols = [[None for _ in range(5)] for _ in range(5)] def initialize(): # alphabet set alphabet_set = [ "A", "B", "C", "D", "E", "F", "G", "H", "I", ...
23.271186
68
0.428745
79508b9a7b6b2ca78544f962c382b5ae505634c3
52
py
Python
src/test_system/managers/certificate_manager/__init__.py
Niwo1403/personality-test-system_bachelor-thesis
81f6bafb594df1daec5a36ecbe1efb59e11dd24d
[ "MIT" ]
null
null
null
src/test_system/managers/certificate_manager/__init__.py
Niwo1403/personality-test-system_bachelor-thesis
81f6bafb594df1daec5a36ecbe1efb59e11dd24d
[ "MIT" ]
null
null
null
src/test_system/managers/certificate_manager/__init__.py
Niwo1403/personality-test-system_bachelor-thesis
81f6bafb594df1daec5a36ecbe1efb59e11dd24d
[ "MIT" ]
null
null
null
from .certificate_manager import CertificateManager
26
51
0.903846
79508c090d39550936a41a229f3424e254b00f40
22,979
py
Python
chemdataextractor/doc/text.py
edbeard/chemdataextractor-csr
6ababa9ac515ba5c591cdb781b6500b656e3c683
[ "MIT" ]
3
2020-11-26T18:13:56.000Z
2021-11-01T18:44:36.000Z
chemdataextractor/doc/text.py
edbeard/chemdataextractor-csr
6ababa9ac515ba5c591cdb781b6500b656e3c683
[ "MIT" ]
null
null
null
chemdataextractor/doc/text.py
edbeard/chemdataextractor-csr
6ababa9ac515ba5c591cdb781b6500b656e3c683
[ "MIT" ]
1
2020-07-08T07:06:04.000Z
2020-07-08T07:06:04.000Z
# -*- coding: utf-8 -*- """ chemdataextractor.doc.text ~~~~~~~~~~~~~~~~~~~~~~~~~~ Text-based document elements. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from abc import abstractproperty import collections ...
38.426421
210
0.614648
79508c37e70dea5deda1d32294fd0bd7b2fb884b
1,239
py
Python
TextPreprocessor/text_preprocessing.py
elenisproject/Newsclinger
ac69ceff437ecc234026ded00d60d3d0f0e83a49
[ "MIT" ]
1
2021-03-18T11:21:36.000Z
2021-03-18T11:21:36.000Z
TextPreprocessor/text_preprocessing.py
elenisproject/Newsclinger
ac69ceff437ecc234026ded00d60d3d0f0e83a49
[ "MIT" ]
34
2020-05-11T14:07:27.000Z
2020-11-08T15:23:27.000Z
TextPreprocessor/text_preprocessing.py
elenisproject/Newsclinger
ac69ceff437ecc234026ded00d60d3d0f0e83a49
[ "MIT" ]
null
null
null
import pandas as pd import unicodedata import string import json import sys sys.path.insert(1, '/Users/elenikaranikola/Desktop/NewsBackend') from settings import DB_CREDS from utilities import finalNormalize, readText, writeData #get all the data from the articles table sql_command = "SELECT * FROM articles" df = read...
26.361702
173
0.726392
79508c5e559690c76d42fd8ddb179265c3a47557
8,684
py
Python
python_modules/dagster/dagster/core/scheduler/scheduler.py
souterjk/dagster
8b744a4959bb04ff9587cfee82a796404fcbc89e
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/scheduler/scheduler.py
souterjk/dagster
8b744a4959bb04ff9587cfee82a796404fcbc89e
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/scheduler/scheduler.py
souterjk/dagster
8b744a4959bb04ff9587cfee82a796404fcbc89e
[ "Apache-2.0" ]
null
null
null
import abc import os from collections import namedtuple from dagster import check from dagster.config import Field from dagster.config.source import IntSource from dagster.core.definitions.run_request import InstigatorType from dagster.core.errors import DagsterError from dagster.core.host_representation import Extern...
38.941704
109
0.683441
79508c806aae03e4e7c20a8273b6fef5ebfb0adc
481
py
Python
setup.py
allbuttonspressed/pymeta2
f542f989d4edd9ad6b4a8dace9245b4df2cea453
[ "MIT" ]
2
2017-09-07T17:14:06.000Z
2018-05-22T19:53:03.000Z
setup.py
allbuttonspressed/pymeta2
f542f989d4edd9ad6b4a8dace9245b4df2cea453
[ "MIT" ]
null
null
null
setup.py
allbuttonspressed/pymeta2
f542f989d4edd9ad6b4a8dace9245b4df2cea453
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages DESCRIPTION = 'Parser generator' LONG_DESCRIPTION = None try: LONG_DESCRIPTION = open('README.rst').read() except: pass setup(name='pymeta2', packages=find_packages(exclude=('tests', 'tests.*')), author='Waldemar Kornewald', url='http://www.allbut...
24.05
62
0.694387
79508cadf4c8dff73c14afdd0269c29cd09fccc9
6,003
py
Python
op2d/history.py
op2-project/op2-daemon
fb7878b3e7da44c2f639fdd9e09f30ca3fddf6cc
[ "FTL" ]
10
2015-04-07T19:13:25.000Z
2020-10-04T20:17:39.000Z
op2d/history.py
op2-project/op2-daemon
fb7878b3e7da44c2f639fdd9e09f30ca3fddf6cc
[ "FTL" ]
null
null
null
op2d/history.py
op2-project/op2-daemon
fb7878b3e7da44c2f639fdd9e09f30ca3fddf6cc
[ "FTL" ]
null
null
null
import bisect import cPickle as pickle import re from application.notification import IObserver, NotificationCenter from application.python import Null from application.python.types import Singleton from datetime import date from sipsimple.account import BonjourAccount from sipsimple.threading import run_in_thread fr...
37.285714
144
0.634016
79508db24ae37e9216e93a0f44cf1ae99984db2c
3,056
py
Python
hipo_rank/similarities/cos.py
mukul-mehta/HipoRank
b44490c4f1f3e0ff8015e3eb0f2b1955947dfe80
[ "MIT" ]
14
2021-02-04T16:05:57.000Z
2022-03-29T08:31:59.000Z
hipo_rank/similarities/cos.py
mukul-mehta/HipoRank
b44490c4f1f3e0ff8015e3eb0f2b1955947dfe80
[ "MIT" ]
2
2021-07-02T10:44:09.000Z
2022-03-23T12:56:45.000Z
hipo_rank/similarities/cos.py
mukul-mehta/HipoRank
b44490c4f1f3e0ff8015e3eb0f2b1955947dfe80
[ "MIT" ]
3
2021-06-10T15:41:19.000Z
2021-11-11T16:21:43.000Z
import torch import numpy as np from hipo_rank import Embeddings, SentenceEmbeddings, SectionEmbedding, \ PairIndices, SentenceSimilarities, SectionSimilarities, Similarities from typing import List, Tuple from numpy import ndarray class CosSimilarity: def __init__(self, threshold = 0): self.threshol...
38.2
97
0.664267
79508ddc6c4ad9a9ab02a5f69ad9e3253dd0f165
20,618
py
Python
test/functional/feature_pruning.py
eleccoin/eleccoin
95f86f28019fe8666816e75e1dc82f1edeee3b31
[ "MIT" ]
3
2020-04-24T08:03:09.000Z
2020-06-24T00:53:03.000Z
test/functional/feature_pruning.py
eleccoin/eleccoin
95f86f28019fe8666816e75e1dc82f1edeee3b31
[ "MIT" ]
8
2021-02-06T16:15:10.000Z
2022-02-20T20:08:45.000Z
test/functional/feature_pruning.py
eleccoin/eleccoin
95f86f28019fe8666816e75e1dc82f1edeee3b31
[ "MIT" ]
7
2020-02-26T22:08:49.000Z
2021-02-06T12:35:40.000Z
#!/usr/bin/env python3 # Copyright (c) 2020-2021 The Eleccoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the pruning code. WARNING: This test uses 4GB of disk space. This test takes 30 mins or more (up...
44.821739
140
0.611796
79508eb4f80c4e5e06b5a4dce7a825505db7af63
542
py
Python
odoo-13.0/addons/l10n_lu/__init__.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/l10n_lu/__init__.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/l10n_lu/__init__.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, SUPERUSER_ID from . import models def _post_init_hook(cr, registry): _preserve_tag_on_taxes(cr, registry) env = api.Environment(cr, SUPERUSER_ID, {}) env.ref('l10n_lu.lu_2011_chart_1')...
33.875
89
0.771218