hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
9139ac3b38a30d81c5e946bdb6064c8263b1ca2b
17,467
py
Python
cubeControl.py
Sharkjuice/rubik
57aefca1571555f7d6ef702da7b5265d80a3cd7c
[ "Apache-2.0" ]
null
null
null
cubeControl.py
Sharkjuice/rubik
57aefca1571555f7d6ef702da7b5265d80a3cd7c
[ "Apache-2.0" ]
null
null
null
cubeControl.py
Sharkjuice/rubik
57aefca1571555f7d6ef702da7b5265d80a3cd7c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import pygame,time,os,random,subprocess,math import cubeModel,cubeSnapshot,cubeTutorial,\ cubeLibrary,cubePlayground from cubeGlobal import mouse_status,m_map,a_map,\ background,black,green,red,colors_r,colors_n,colors from cubeCommon import button,printText from macroParse imp...
37.889371
116
0.5077
9139be41cf632e19a8618f02323f0abeb249f28b
1,314
py
Python
scripts/utils/concat_arff.py
bagustris/emotion
5bd83d3ca8a6eb930f449b7a990fefd75d0c7d36
[ "MIT" ]
3
2020-11-03T14:54:22.000Z
2021-04-12T12:23:10.000Z
scripts/utils/concat_arff.py
agkphysics/emotion
36bb9265f9439b10676fb539d5334cce645e49ef
[ "MIT" ]
null
null
null
scripts/utils/concat_arff.py
agkphysics/emotion
36bb9265f9439b10676fb539d5334cce645e49ef
[ "MIT" ]
2
2020-12-03T06:21:59.000Z
2021-01-16T04:47:12.000Z
import argparse import arff parser = argparse.ArgumentParser() parser.add_argument("infile", nargs="+") parser.add_argument("outfile") parser.add_argument( "-s", "--safe", help="Check ARFF structure", default=False, action="store_true" ) def main(): args = parser.parse_args() files = args.infile if ...
26.816327
87
0.56621
9139ea7134bba6d6f7c1d2c1d3b2b74496e094b9
2,620
py
Python
kitchensink/data/servers.py
hhuuggoo/kitchensink
1f81050fec7eace52e0b4e1b47851b649a4e4d33
[ "BSD-3-Clause" ]
2
2015-03-17T05:02:42.000Z
2016-04-07T15:02:28.000Z
kitchensink/data/servers.py
hhuuggoo/kitchensink
1f81050fec7eace52e0b4e1b47851b649a4e4d33
[ "BSD-3-Clause" ]
null
null
null
kitchensink/data/servers.py
hhuuggoo/kitchensink
1f81050fec7eace52e0b4e1b47851b649a4e4d33
[ "BSD-3-Clause" ]
1
2015-10-07T21:50:44.000Z
2015-10-07T21:50:44.000Z
import logging from .. import settings logger = logging.getLogger(__name__) class Servers(object): """Class to manage redis data structures surrounding which hosts/servers are active and how to connect to them - host info key, mapping host to url - also the catalog of all available hosts - act...
35.405405
76
0.631298
9139ee92071b4c74a56fbfe31fddf871c81de465
775
py
Python
setup.py
beckjake/asyncpipe
9ceea4be77bd6c777124e9077c90371566b0ea8d
[ "MIT" ]
1
2020-02-12T17:58:20.000Z
2020-02-12T17:58:20.000Z
setup.py
beckjake/asyncpipe
9ceea4be77bd6c777124e9077c90371566b0ea8d
[ "MIT" ]
null
null
null
setup.py
beckjake/asyncpipe
9ceea4be77bd6c777124e9077c90371566b0ea8d
[ "MIT" ]
null
null
null
from setuptools import setup with open('README.md') as fp: long_description = fp.read() setup( name='asyncpipe', version='0.0.1', author='Jacob Beck', author_email='pypi@jacob.ebeck.io', description='An async-compatible library for composing Python shell pipelines', long_description=long_d...
32.291667
83
0.646452
913a2e1a6d9c97d92453a933ea7d9efe4e2a183e
907
py
Python
search_2d_mat/main.py
dhanraj-vedanth/Leetcode
b8b3283fc443b9ead769f8e3c720fc6c5d7633a6
[ "MIT" ]
null
null
null
search_2d_mat/main.py
dhanraj-vedanth/Leetcode
b8b3283fc443b9ead769f8e3c720fc6c5d7633a6
[ "MIT" ]
null
null
null
search_2d_mat/main.py
dhanraj-vedanth/Leetcode
b8b3283fc443b9ead769f8e3c720fc6c5d7633a6
[ "MIT" ]
null
null
null
class Solution: def searchMatrix(self, matrix, target) -> bool: self.match = 0 for i in range(len(matrix)): self.binary_search(matrix[i],target) if self.match == 1: break return self.match == 1 def binary_search(self,arr,targ...
24.513514
58
0.402426
913a3320f4c3e83e452fc8dc13bd239d025fb03b
3,001
py
Python
airsenal/framework/multiprocessing_utils.py
tallamjr/AIrsenal
48f223407d806a9a374a406d6fe1289e5a36e48f
[ "MIT" ]
null
null
null
airsenal/framework/multiprocessing_utils.py
tallamjr/AIrsenal
48f223407d806a9a374a406d6fe1289e5a36e48f
[ "MIT" ]
null
null
null
airsenal/framework/multiprocessing_utils.py
tallamjr/AIrsenal
48f223407d806a9a374a406d6fe1289e5a36e48f
[ "MIT" ]
null
null
null
""" Custom Queue class and counter, to allow us to get the length of a queue, which in turn lets us do the tree-based optimization. Taken from https://gist.github.com/FanchenBao/d8577599c46eab1238a81857bb7277c9 by Fanchen Bao, based on this Stack Overflow thread: https://stackoverflow.com/questions/41952413/get-length...
37.987342
99
0.712762
913a3b070f59ed6593f71aeaf06ea0766cf558f0
12,269
py
Python
litholog/bed.py
rgmyr/litholog
d628dac9f758eee46f85a4b668a3fd242cf9e76e
[ "Apache-2.0" ]
11
2021-02-10T15:59:39.000Z
2022-02-14T23:51:40.000Z
litholog/bed.py
rgmyr/litholog
d628dac9f758eee46f85a4b668a3fd242cf9e76e
[ "Apache-2.0" ]
3
2021-04-16T13:46:45.000Z
2021-11-04T04:03:17.000Z
litholog/bed.py
rgmyr/litholog
d628dac9f758eee46f85a4b668a3fd242cf9e76e
[ "Apache-2.0" ]
2
2021-12-21T08:48:57.000Z
2022-03-27T15:35:03.000Z
import operator import numpy as np import matplotlib as mpl from scipy import interpolate from striplog import Interval from litholog import utils class Bed(Interval): """ Represents an individual bed or layer. Essentially a ``striplog.Interval`` with some additional restrictions and logic. Beds a...
38.825949
123
0.572907
913abe9e23e34e465ce260efa7ae1bddea60a3c6
10,759
py
Python
apps/fifth_edition/common.py
cplprince/django-dnd
2ac5475acbf468d5f06b69ebfbb5988d858b08be
[ "MIT" ]
4
2019-01-30T03:39:06.000Z
2022-02-22T08:11:53.000Z
apps/fifth_edition/common.py
cplprince/django-dnd
2ac5475acbf468d5f06b69ebfbb5988d858b08be
[ "MIT" ]
13
2019-05-10T04:22:14.000Z
2020-04-06T02:54:32.000Z
apps/fifth_edition/common.py
cplprince/django-dnd
2ac5475acbf468d5f06b69ebfbb5988d858b08be
[ "MIT" ]
3
2019-02-06T19:26:43.000Z
2021-03-18T23:48:41.000Z
from django.db import models from rest_framework import status from rest_framework.response import Response import copy RESPONSES = { '200': {}, '201': {}, '400': { 'message': 'One or more required fields are missing.', 'userMessage': 'We were unable to process your request due to an error...
35.27541
120
0.564922
913ae3571158ad68d62fdb5b7ce58e8188cfd926
3,158
py
Python
GLM/GLM_Model/PyTorchObj.py
ys7yoo/npglm
98cc040fff8a861e2d7e210fef049207f1714b2a
[ "MIT" ]
9
2020-11-20T17:43:36.000Z
2021-02-26T22:18:59.000Z
GLM/GLM_Model/PyTorchObj.py
ys7yoo/npglm
98cc040fff8a861e2d7e210fef049207f1714b2a
[ "MIT" ]
1
2021-02-04T13:51:17.000Z
2021-02-04T23:56:07.000Z
GLM/GLM_Model/PyTorchObj.py
ys7yoo/npglm
98cc040fff8a861e2d7e210fef049207f1714b2a
[ "MIT" ]
1
2020-11-22T19:36:35.000Z
2020-11-22T19:36:35.000Z
import torch import numpy as np from functools import reduce from collections import OrderedDict class PyTorchObjective(object): """PyTorch objective function, wrapped to be called by scipy.optimize.""" def __init__(self, obj_module, parameters_to_opt, scipy_closure): self.f = obj_module # some pytorch...
38.048193
84
0.603547
913ae9baac7fabccb516c36e8b156f0f3518d5c2
3,801
py
Python
rebuild_tool/pkg_source_plugins/dnf.py
mcyprian/deps_visualization
064b36d49ce0b19b244d8853550bca1533ac8bea
[ "MIT" ]
2
2016-01-22T11:08:06.000Z
2016-06-02T13:11:41.000Z
rebuild_tool/pkg_source_plugins/dnf.py
mcyprian/sclbuilder
064b36d49ce0b19b244d8853550bca1533ac8bea
[ "MIT" ]
null
null
null
rebuild_tool/pkg_source_plugins/dnf.py
mcyprian/sclbuilder
064b36d49ce0b19b244d8853550bca1533ac8bea
[ "MIT" ]
null
null
null
import locale import logging from subprocess import Popen, PIPE, CalledProcessError from collections import UserDict import rebuild_tool.exceptions as ex from rebuild_tool.pkg_source import PkgSrcArchive, set_class_attrs from rebuild_tool.utils import subprocess_popen_call, ChangeDir logger = logging.getLogger(__name...
40.870968
96
0.556433
913aea0a5a8798b078d0c3c169f54b582725c7a0
2,935
py
Python
switch_model/hawaii/util.py
ashutosh-pande/switch3
769d25a42c8323f24740567aa15c980f905a03e2
[ "ECL-2.0", "Apache-2.0" ]
1
2018-09-13T03:50:17.000Z
2018-09-13T03:50:17.000Z
switch_model/hawaii/util.py
ashutosh-pande/switch3
769d25a42c8323f24740567aa15c980f905a03e2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
switch_model/hawaii/util.py
ashutosh-pande/switch3
769d25a42c8323f24740567aa15c980f905a03e2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import csv, sys, time, itertools from pyomo.environ import value import __main__ as main # check whether this is an interactive session # (if not, there will be no __main__.__file__) interactive_session = not hasattr(main, '__file__') csv.register_dialect("ampl-tab", delimiter="\t", lineterminator="\n", ...
31.55914
100
0.632027
913af0a9ff5b3f14b396a683caa056f2660deb86
30,421
py
Python
xonsh/aliases.py
sthagen/xonsh-xonsh
5f418483015dfdac064c69a3891d7769971a0772
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xonsh/aliases.py
sthagen/xonsh-xonsh
5f418483015dfdac064c69a3891d7769971a0772
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xonsh/aliases.py
sthagen/xonsh-xonsh
5f418483015dfdac064c69a3891d7769971a0772
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
"""Aliases for the xonsh shell.""" import argparse import collections.abc as cabc import functools import inspect import os import re import sys import types import typing as tp import xonsh.completers._aliases as xca import xonsh.history.main as xhm import xonsh.xoreutils.which as xxw from xonsh.ast import isexpressi...
32.466382
103
0.588738
913af5553d294507244398a01ad174884fb0dbfd
8,200
py
Python
VFF/spectral_covariance.py
st--/VFF
828e6c0437eea143274b65c0171ee7605c9d460a
[ "Apache-2.0" ]
1
2021-04-13T16:13:34.000Z
2021-04-13T16:13:34.000Z
VFF/spectral_covariance.py
st--/VFF
828e6c0437eea143274b65c0171ee7605c9d460a
[ "Apache-2.0" ]
null
null
null
VFF/spectral_covariance.py
st--/VFF
828e6c0437eea143274b65c0171ee7605c9d460a
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 ST John # Copyright 2016 James Hensman # # 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...
38.497653
100
0.568659
913aff24b67dcb27684852144ec96b549efe0d4d
53,486
py
Python
python_pb2/go/chromium/org/luci/resultdb/proto/rpc/v1/resultdb_prpc_pb2.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
python_pb2/go/chromium/org/luci/resultdb/proto/rpc/v1/resultdb_prpc_pb2.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
python_pb2/go/chromium/org/luci/resultdb/proto/rpc/v1/resultdb_prpc_pb2.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Generated by the pRPC protocol buffer compiler plugin. DO NOT EDIT! # source: go.chromium.org/luci/resultdb/proto/rpc/v1/resultdb.proto import base64 import zlib from google.protobuf import descriptor_pb2 # Includes description of the go.chromium.org/luci/resultdb/proto/rpc/v1/resultdb.proto and all of its transi...
79.121302
118
0.884287
913b07d87a92e6a47c2b3b6eae6547094ad55bd8
1,780
py
Python
cortex/raw/accelerometer.py
dcurrey88/LAMP-cortex
90aea3f84b7c202eb7f39d2030c8024dd3fc131b
[ "BSD-3-Clause" ]
null
null
null
cortex/raw/accelerometer.py
dcurrey88/LAMP-cortex
90aea3f84b7c202eb7f39d2030c8024dd3fc131b
[ "BSD-3-Clause" ]
null
null
null
cortex/raw/accelerometer.py
dcurrey88/LAMP-cortex
90aea3f84b7c202eb7f39d2030c8024dd3fc131b
[ "BSD-3-Clause" ]
null
null
null
from ..feature_types import raw_feature, log import LAMP @raw_feature( name="lamp.accelerometer", dependencies=["lamp.accelerometer"] ) def accelerometer(resolution=None, limit=20000, cache=True, recursive=True, **kwargs): """ Get all GPS data bounded by time interval and optionally subsample the data...
46.842105
95
0.529775
913b0e2e25e7b0bb45e070ffa831e797aabecf53
13,617
py
Python
revelation/test/test_execute_farith.py
futurecore/revelation
859de37f5c3ecf5366cc7ba65900754862843366
[ "BSD-3-Clause" ]
4
2015-09-21T13:52:33.000Z
2016-12-29T23:24:51.000Z
revelation/test/test_execute_farith.py
futurecore/revelation
859de37f5c3ecf5366cc7ba65900754862843366
[ "BSD-3-Clause" ]
59
2015-07-17T01:09:12.000Z
2016-09-19T13:32:19.000Z
revelation/test/test_execute_farith.py
futurecore/epiphany-simulator
859de37f5c3ecf5366cc7ba65900754862843366
[ "BSD-3-Clause" ]
1
2015-08-01T00:42:03.000Z
2015-08-01T00:42:03.000Z
from revelation.instruction import Instruction from revelation.isa import decode from revelation.test.machine import new_state, StateChecker from revelation.utils import float2bits import opcode_factory import pytest @pytest.mark.parametrize('rn,ex', [(1, StateChecker(rf0=7, BZ=0, BN=0, BIS=0)), (2, StateCh...
53.822134
97
0.638613
913b29e8d59faef2ff513b1d7b4d00137945f198
21,612
py
Python
fastai/vision/data.py
joshfp/fastai
eb455070adaea072b4771e340d48a371c6c0c4e2
[ "Apache-2.0" ]
null
null
null
fastai/vision/data.py
joshfp/fastai
eb455070adaea072b4771e340d48a371c6c0c4e2
[ "Apache-2.0" ]
null
null
null
fastai/vision/data.py
joshfp/fastai
eb455070adaea072b4771e340d48a371c6c0c4e2
[ "Apache-2.0" ]
null
null
null
"`vision.data` manages data input pipeline - folderstransformbatch input. Includes support for classification, segmentation and bounding boxes" from ..torch_core import * from .image import * from .transform import * from ..data_block import * from ..basic_data import * from ..layers import CrossEntropyFlat from concur...
50.971698
143
0.678743
913b5eb927ee95a33ddfdd8df0f957b7ee684ada
870
py
Python
cassiopeia-diskstore/setup.py
meraki-analytics/cassiopeia-datastores
38e84f56e17ff5ff17dd6439a131d12d258fb407
[ "MIT" ]
3
2017-11-22T20:38:18.000Z
2018-09-04T07:48:55.000Z
cassiopeia-diskstore/setup.py
meraki-analytics/cassiopeia-datastores
38e84f56e17ff5ff17dd6439a131d12d258fb407
[ "MIT" ]
12
2018-06-05T16:08:36.000Z
2020-11-26T19:16:59.000Z
cassiopeia-diskstore/setup.py
meraki-analytics/cassiopeia-datastores
38e84f56e17ff5ff17dd6439a131d12d258fb407
[ "MIT" ]
10
2017-11-14T18:59:10.000Z
2020-09-17T15:18:29.000Z
#!/usr/bin/env python from setuptools import setup, find_packages install_requires = [ "simplekv" ] setup( name="cassiopeia-diskstore", version="1.1.3", author="Jason Maldonis; Rob Rua", author_email="team@merakianalytics.com", url="https://github.com/meraki-analytics/cassiopeia-datastores/t...
28.064516
101
0.670115
913ba5fa0ba539dfa5405315a45c586ce1bd2d13
775
py
Python
lib/vrd/cvpr/_init_paths.py
yjy941124/PPR-FCN
1eba5515b37e7b32413efdf14bb0c22a2e46fee9
[ "MIT" ]
20
2017-10-16T18:12:51.000Z
2021-12-23T02:34:20.000Z
lib/vrd/cvpr/_init_paths.py
yjy941124/PPR-FCN
1eba5515b37e7b32413efdf14bb0c22a2e46fee9
[ "MIT" ]
1
2018-11-10T04:59:48.000Z
2021-01-21T04:51:31.000Z
lib/vrd/cvpr/_init_paths.py
yjy941124/PPR-FCN
1eba5515b37e7b32413efdf14bb0c22a2e46fee9
[ "MIT" ]
5
2017-10-17T00:54:42.000Z
2018-04-08T15:09:40.000Z
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- """Set up paths for Fast R-CNN.""" import os.path as osp import sys d...
26.724138
58
0.588387
913bd454ce5d9c4be8833dd6fe0d7bcbad7d142f
2,722
py
Python
ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hcat_client.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
5
2018-06-03T05:19:40.000Z
2021-04-16T17:10:49.000Z
ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hcat_client.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
null
null
null
ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hcat_client.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
6
2019-05-07T13:24:39.000Z
2021-02-15T14:12:37.000Z
#!/usr/bin/env python ''' 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")...
32.795181
81
0.652461
913bf012e50e922f5b4ee1d8a1d32d0c836cf7c1
3,220
py
Python
UtilsHandler/strategy_utils.py
GitiHubi/deepContinualAuditing
858830cb72b4c772120a623da753c0c5d535ee4e
[ "MIT" ]
null
null
null
UtilsHandler/strategy_utils.py
GitiHubi/deepContinualAuditing
858830cb72b4c772120a623da753c0c5d535ee4e
[ "MIT" ]
null
null
null
UtilsHandler/strategy_utils.py
GitiHubi/deepContinualAuditing
858830cb72b4c772120a623da753c0c5d535ee4e
[ "MIT" ]
1
2022-02-24T11:10:50.000Z
2022-02-24T11:10:50.000Z
import torch from avalanche.training.storage_policy import BalancedExemplarsBuffer, ReservoirSamplingBuffer from avalanche.benchmarks.utils import AvalancheDataset, AvalancheSubset, \ AvalancheConcatDataset class DeptBalancedBuffer(BalancedExemplarsBuffer): def __init__(self, max_size: int, adaptive_size: boo...
42.368421
94
0.636335
913c668d34e589fc024e4ff8d6992e5b1cfef93f
733
py
Python
src/librecatastro/domain/location.py
jjmartinez-taiger/libreCatastro
b40bfa375095411814b99ac839959418a83c3071
[ "MIT" ]
9
2019-11-30T11:14:30.000Z
2022-03-14T09:41:57.000Z
src/librecatastro/domain/location.py
jjmartinez-taiger/libreCatastro
b40bfa375095411814b99ac839959418a83c3071
[ "MIT" ]
1
2021-04-11T17:15:08.000Z
2021-04-11T17:15:08.000Z
src/librecatastro/domain/location.py
jjmartinez-taiger/libreCatastro
b40bfa375095411814b99ac839959418a83c3071
[ "MIT" ]
1
2021-08-07T12:15:43.000Z
2021-08-07T12:15:43.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from src.utils.catastro_logger import CadastroLogger logger = CadastroLogger(__name__).logger class Location: """ Class that stores longitude and latitude of a property (xcen, ycen) by Cadaster in a format supported by Kibana (longitude=lon, latitude=lat)""" ...
34.904762
87
0.66985
913c7e23f6e2007393e1a3d6f4a26ea1657c41c8
25,870
py
Python
pyfstat/make_sfts.py
pepCV/PyFstat
b30919962e9730e24d514e9e9fe89289a002d428
[ "MIT" ]
2
2020-01-28T08:29:29.000Z
2020-01-28T13:29:24.000Z
pyfstat/make_sfts.py
GregoryAshton/PyFstat
4f7a96d4aeb778b3b322b03897f7d65c0ccf1190
[ "MIT" ]
null
null
null
pyfstat/make_sfts.py
GregoryAshton/PyFstat
4f7a96d4aeb778b3b322b03897f7d65c0ccf1190
[ "MIT" ]
null
null
null
""" pyfstat tools to generate sfts """ import numpy as np import logging import os import glob import pkgutil import lal import lalpulsar from pyfstat.core import BaseSearchClass, tqdm, args, predict_fstat import pyfstat.helper_functions as helper_functions class KeyboardInterruptError(Exception): pass clas...
31.89889
91
0.527716
913c83fec5343a502eb3c6eb8e99b868765ff309
727
py
Python
0x07-python-test_driven_development/4-print_square.py
flourishcodes/holbertonschool-higher_level_programming
6fda5cca4ed960d7f3d40c26292ad55e1e7d3065
[ "MIT" ]
null
null
null
0x07-python-test_driven_development/4-print_square.py
flourishcodes/holbertonschool-higher_level_programming
6fda5cca4ed960d7f3d40c26292ad55e1e7d3065
[ "MIT" ]
null
null
null
0x07-python-test_driven_development/4-print_square.py
flourishcodes/holbertonschool-higher_level_programming
6fda5cca4ed960d7f3d40c26292ad55e1e7d3065
[ "MIT" ]
4
2018-05-01T05:04:15.000Z
2020-04-28T22:22:54.000Z
#!/usr/bin/python3 ''' print_square function Contains a function that prints square by size input ''' def print_square(size): ''' Python function that prints square '#' by size variable ''' # Check that size is an int if not isinstance(size, int): raise TypeError('size must be an i...
23.451613
59
0.606602
913ca55208263ea0a5b1db7dbc9cccd9a3d624af
2,255
py
Python
launchpad/flags.py
qstanczyk/launchpad
32888acfcc8da86a31bf799db19832ccd4573e73
[ "Apache-2.0" ]
264
2021-04-22T12:55:07.000Z
2022-03-26T05:55:13.000Z
launchpad/flags.py
qstanczyk/launchpad
32888acfcc8da86a31bf799db19832ccd4573e73
[ "Apache-2.0" ]
22
2021-04-22T18:00:13.000Z
2022-03-30T01:45:08.000Z
launchpad/flags.py
qstanczyk/launchpad
32888acfcc8da86a31bf799db19832ccd4573e73
[ "Apache-2.0" ]
21
2021-04-22T19:20:28.000Z
2022-03-16T05:36:27.000Z
# Lint as: python3 # Copyright 2020 DeepMind Technologies Limited. 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 # # ...
45.1
80
0.757428
913cb008a4a22e6d17ee8409e4ee1fe994fbd747
10,411
py
Python
qiskit/circuit/library/standard_gates/u3.py
obliviateandsurrender/qiskit-terra
046a63632f22f9b010d793bf91a0b65d06ba8921
[ "Apache-2.0" ]
null
null
null
qiskit/circuit/library/standard_gates/u3.py
obliviateandsurrender/qiskit-terra
046a63632f22f9b010d793bf91a0b65d06ba8921
[ "Apache-2.0" ]
null
null
null
qiskit/circuit/library/standard_gates/u3.py
obliviateandsurrender/qiskit-terra
046a63632f22f9b010d793bf91a0b65d06ba8921
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
34.022876
99
0.526174
913ce1ede444d87fe609490a3e8454ec5b69a9d1
1,013
py
Python
src/api-server/util/producer.py
srikanteswartalluri/container-orchestrator
3cd07989e28ece0038cb0b7c6bbdc83c1c0ba7a9
[ "Apache-2.0" ]
null
null
null
src/api-server/util/producer.py
srikanteswartalluri/container-orchestrator
3cd07989e28ece0038cb0b7c6bbdc83c1c0ba7a9
[ "Apache-2.0" ]
null
null
null
src/api-server/util/producer.py
srikanteswartalluri/container-orchestrator
3cd07989e28ece0038cb0b7c6bbdc83c1c0ba7a9
[ "Apache-2.0" ]
null
null
null
import pika class ExternalQueue: def sendMessage(config_data): connection = pika.BlockingConnection(pika.ConnectionParameters('coqueue', 5672, '/', pika.PlainCredentials('root', 'root123'))) channel = connection.channel() channel.basic_publish(exchange='co_topic', routing_key='', body=str(...
48.238095
213
0.674235
913d19f8695c27c4be6c1cdd98f110e8c645e487
8,276
py
Python
tests/test_database_whois.py
NeolithEra/PyFunceble
58db861d36224f279a460f4959aaa2e140ce749f
[ "MIT" ]
null
null
null
tests/test_database_whois.py
NeolithEra/PyFunceble
58db861d36224f279a460f4959aaa2e140ce749f
[ "MIT" ]
null
null
null
tests/test_database_whois.py
NeolithEra/PyFunceble
58db861d36224f279a460f4959aaa2e140ce749f
[ "MIT" ]
null
null
null
# pylint:disable=line-too-long """ The tool to check the availability or syntax of domains, IPv4, IPv6 or URL. :: ██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗ ██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝ ██████╔╝ ╚████╔╝ ████...
28.937063
88
0.590261
913d200dc4302b5b66f610a4825e3b34dcf1c194
4,027
py
Python
examples/conformer/train.py
huylenguyen806/vnasrg
caee2e79d0eb9d1a997f5df8e2ba3ee7f0a1bcae
[ "Apache-2.0" ]
83
2020-06-25T18:34:28.000Z
2020-10-14T06:17:12.000Z
examples/conformer/train.py
huylenguyen806/vnasrg
caee2e79d0eb9d1a997f5df8e2ba3ee7f0a1bcae
[ "Apache-2.0" ]
15
2020-06-10T06:54:33.000Z
2020-10-12T22:22:43.000Z
examples/conformer/train.py
huylenguyen806/vnasrg
caee2e79d0eb9d1a997f5df8e2ba3ee7f0a1bcae
[ "Apache-2.0" ]
12
2020-07-25T22:09:55.000Z
2020-10-11T10:10:57.000Z
# Copyright 2020 Huy Le Nguyen (@usimarit) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
34.715517
125
0.716911
913d79defa9a8bfcca1681c1ec021696bf4899fd
551
py
Python
slavdict/dictionary/migrations/0048_translation_is_synodal.py
slavdict/slavdict
893886b80de413cb2bb6c0af5adba9c55aa6a7af
[ "CC0-1.0" ]
1
2022-01-17T17:26:25.000Z
2022-01-17T17:26:25.000Z
slavdict/dictionary/migrations/0048_translation_is_synodal.py
slavdict/slavdict
893886b80de413cb2bb6c0af5adba9c55aa6a7af
[ "CC0-1.0" ]
8
2020-02-12T13:26:05.000Z
2022-02-10T19:28:07.000Z
slavdict/dictionary/migrations/0048_translation_is_synodal.py
slavdict/slavdict
893886b80de413cb2bb6c0af5adba9c55aa6a7af
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.18 on 2019-04-03 09:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dictionary', '0047_entry_comparative'), ] operations = [ migrations.AddField( model_name='translation...
26.238095
179
0.647913
913d7aa30033748fe33353d585873b67a514eb30
378
py
Python
_package/setup.py
transcendentsky/py_tutorials
fed8e6c8d79f854a1cebcfd5c37297a163846208
[ "Apache-2.0" ]
1
2018-06-18T12:09:33.000Z
2018-06-18T12:09:33.000Z
_package/setup.py
transcendentsky/py_tutorials
fed8e6c8d79f854a1cebcfd5c37297a163846208
[ "Apache-2.0" ]
null
null
null
_package/setup.py
transcendentsky/py_tutorials
fed8e6c8d79f854a1cebcfd5c37297a163846208
[ "Apache-2.0" ]
1
2018-06-18T12:13:21.000Z
2018-06-18T12:13:21.000Z
from setuptools import setup setup(name='pkgtest', version='1.0.0', description='A print test for PyPI', author='winycg', author_email='win@163.com', url='https://www.python.org/', license='MIT', keywords='ga nn', packages=['pkgtest'], install_requires=['numpy>=1.1...
27
58
0.584656
913d8119013f49e13dcb43932d90aae116828dc3
728
py
Python
seapy/roms/__init__.py
ivicajan/seapy
168a3490061d570236c1982006c3ce81c7a958ce
[ "MIT" ]
24
2015-08-17T01:24:56.000Z
2022-03-01T09:10:43.000Z
seapy/roms/__init__.py
ivicajan/seapy
168a3490061d570236c1982006c3ce81c7a958ce
[ "MIT" ]
43
2016-03-29T23:09:14.000Z
2021-10-29T18:57:45.000Z
seapy/roms/__init__.py
ivicajan/seapy
168a3490061d570236c1982006c3ce81c7a958ce
[ "MIT" ]
21
2016-03-29T22:44:57.000Z
2021-08-31T20:15:37.000Z
""" State Estimation and Analysis for PYthon Module for working with ROMS data Copyright (c)2010--2021 University of Hawaii under the MIT-License. Imported functions include: - :func:`~seapy.roms.lib.depth` - :func:`~seapy.roms.lib.get_reftime` - :func:`~seapy.roms.lib.date2num` - :func:`~seapy.ro...
23.483871
69
0.712912
913dd089034768e256a7d18b10366d83982b29d0
31,799
py
Python
digits/model/images/generic/views.py
gheinrich/DIGITS-GAN
63d388095b4f2a2aa6f3b0f6988e01b2c78c3877
[ "BSD-3-Clause" ]
111
2017-04-21T06:03:04.000Z
2021-04-26T06:36:54.000Z
digits/model/images/generic/views.py
gheinrich/DIGITS-GAN
63d388095b4f2a2aa6f3b0f6988e01b2c78c3877
[ "BSD-3-Clause" ]
6
2017-05-15T22:02:49.000Z
2018-03-16T10:25:26.000Z
digits/model/images/generic/views.py
gheinrich/DIGITS-GAN
63d388095b4f2a2aa6f3b0f6988e01b2c78c3877
[ "BSD-3-Clause" ]
40
2017-04-21T07:04:16.000Z
2019-11-14T14:20:32.000Z
# Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import import os import re import tempfile import flask import werkzeug.exceptions from .forms import GenericImageModelForm from .job import GenericImageModelJob from digits.pretrained_model.job import PretrainedMode...
35.729213
114
0.625523
913dd0e6477e4629e6b461dcfbf1a40aaf812323
1,308
py
Python
ethevents/server/__main__.py
ezdac/ethevents
9f4b0ff1ba0d303180abe3b5336805335bc0765b
[ "MIT" ]
2
2018-08-21T01:06:30.000Z
2019-03-05T08:15:55.000Z
ethevents/server/__main__.py
ezdac/ethevents
9f4b0ff1ba0d303180abe3b5336805335bc0765b
[ "MIT" ]
1
2018-04-23T14:01:51.000Z
2018-04-23T14:09:51.000Z
ethevents/server/__main__.py
ezdac/ethevents
9f4b0ff1ba0d303180abe3b5336805335bc0765b
[ "MIT" ]
1
2022-03-22T04:57:16.000Z
2022-03-22T04:57:16.000Z
from gevent import monkey monkey.patch_all() import os import sys import click from microraiden.click_helpers import main, pass_app from microraiden.proxy.paywalled_proxy import PaywalledProxy from elasticsearch import Elasticsearch from ethevents.server.api_server import APIServer from ethevents.server.backend impo...
24.679245
89
0.713303
913dd47e215cea718eb83f65b96e09e9f64ecf00
3,699
py
Python
h/services/links.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
h/services/links.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
4
2020-03-24T17:38:24.000Z
2022-03-02T05:45:01.000Z
h/services/links.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Tools for generating links to domain objects. """ from __future__ import unicode_literals from pyramid.request import Request from h.auth import default_authority LINK_GENERATORS_KEY = "h.links.link_generators" class LinksService: """A service for generating links to annotations."...
38.134021
82
0.664774
913dfc7831abdf731b58b05bfad4cdee764eabf7
20,139
py
Python
kuha/models.py
JohnJiangLA/kuha
e6ed93e71132a3637a80d47f16b4a1020961e688
[ "BSD-3-Clause" ]
null
null
null
kuha/models.py
JohnJiangLA/kuha
e6ed93e71132a3637a80d47f16b4a1020961e688
[ "BSD-3-Clause" ]
null
null
null
kuha/models.py
JohnJiangLA/kuha
e6ed93e71132a3637a80d47f16b4a1020961e688
[ "BSD-3-Clause" ]
null
null
null
import logging import re from lxml import etree import sqlalchemy as sa import sqlalchemy.orm as orm from sqlalchemy.ext.declarative import declarative_base import transaction # from zope.sqlalchemy import ZopeTransactionExtension from zope.sqlalchemy import register from .util import datestamp_now _Bas...
31.865506
75
0.551318
913e47c2f56c76a47b7773dccf414a28484bd8f0
1,565
py
Python
oscar/lib/python2.7/site-packages/phonenumbers/data/region_TH.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/data/region_TH.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/data/region_TH.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
"""Auto-generated file, do not edit by hand. TH metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_TH = PhoneMetadata(id='TH', country_code=66, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='1\\d{8,9}|[2-9]\\d{7,8}', possible_le...
92.058824
162
0.697764
913e48ff3711e28fab9dbe9ae9513b8a8aa35c5d
2,798
py
Python
nicu_los/src/utils/custom_keras_layers.py
bt-s/NICU-length-of-stay-prediction
8ae2f72ba90996c552e17edce9b0bcddff43eb8f
[ "MIT" ]
2
2020-06-25T20:34:30.000Z
2021-10-09T09:30:32.000Z
nicu_los/src/utils/custom_keras_layers.py
bt-s/NICU-length-of-stay-prediction
8ae2f72ba90996c552e17edce9b0bcddff43eb8f
[ "MIT" ]
null
null
null
nicu_los/src/utils/custom_keras_layers.py
bt-s/NICU-length-of-stay-prediction
8ae2f72ba90996c552e17edce9b0bcddff43eb8f
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """custom_keras_layers.py Implementation of various custom Keras Layers """ __author__ = "Bas Straathof" import tensorflow as tf from tensorflow.keras.layers import Dense, GlobalAveragePooling1D, Layer, \ multiply, Reshape def squeeze_excite_block(X, mask=None): """Squeeze and exc...
28.262626
79
0.613653
913e58e103e37b718b8e1a8c2f676f7b5ad24570
495
py
Python
common/aist_common/grammar/test_flow.py
sfahad1414/AGENT
84069edc96b6190bb03ffd5099cbc8966061a563
[ "Apache-2.0" ]
15
2020-05-06T16:17:56.000Z
2022-03-30T12:25:16.000Z
common/aist_common/grammar/test_flow.py
dionny/AGENT
8a833406b590e23623fcc67db99f6f964d002396
[ "Apache-2.0" ]
2
2021-08-25T16:17:16.000Z
2022-02-10T06:35:58.000Z
common/aist_common/grammar/test_flow.py
dionny/AGENT
8a833406b590e23623fcc67db99f6f964d002396
[ "Apache-2.0" ]
7
2020-04-07T18:47:55.000Z
2022-03-30T12:14:58.000Z
class TestFlow: def __init__(self, perceive, act, observe): self.perceive = perceive self.act = act self.observe = observe def __str__(self): output = "" if self.perceive and len(self.perceive) > 0: output += str(self.perceive) if self.act and len(s...
27.5
52
0.545455
913e75b5e3a66292e5718031fd57b0343fa6fb40
4,315
py
Python
src/psu_control/shell.py
an-oreo/PSU_Control
0809cb9edd4cdccdb845fead667607f0b12b4799
[ "MIT" ]
null
null
null
src/psu_control/shell.py
an-oreo/PSU_Control
0809cb9edd4cdccdb845fead667607f0b12b4799
[ "MIT" ]
3
2019-06-07T17:46:43.000Z
2019-06-07T17:47:41.000Z
src/psu_control/shell.py
an-oreo/PSU_Control
0809cb9edd4cdccdb845fead667607f0b12b4799
[ "MIT" ]
null
null
null
from . import parsers as _parsers from .control import ( TekPS252xG as _TekPS252xG, TekPSUSettings as _TekPSUSettings ) from .interpreter import ( AliasCmdInterpreter as _AliasCmdInterpreter, HideNoneDocMix as _HideNoneDocMix ) __ver_info = (0,1,0) __version__ = '.'.join(map(str, __ver_info)) clas...
29.353741
92
0.571958
913ebeef0d4b7b15cde3201836e719c005c47e5a
3,257
py
Python
apps/readux/tests/test_views.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
18
2017-06-12T09:58:02.000Z
2021-10-01T11:14:34.000Z
apps/readux/tests/test_views.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
276
2019-04-26T20:13:01.000Z
2022-03-31T10:26:28.000Z
apps/readux/tests/test_views.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
7
2018-03-13T23:44:26.000Z
2021-09-15T17:54:55.000Z
import os import pytest from tempfile import gettempdir from pathlib import Path from django.test import RequestFactory from django.http import HttpResponse from apps.readux import views from apps.iiif.manifests.models import Manifest from apps.iiif.manifests.tests.factories import ManifestFactory from apps.iiif.kollec...
42.298701
97
0.689592
913ec08a4ede5b790df5e3fb56a26114d3a12fb3
21,540
py
Python
core/views.py
DerrazSofiane/DjangoREST_To-Do_App
5d2743ff8f20ff08d9e98e88a4ec35c7c29d9879
[ "CC0-1.0" ]
null
null
null
core/views.py
DerrazSofiane/DjangoREST_To-Do_App
5d2743ff8f20ff08d9e98e88a4ec35c7c29d9879
[ "CC0-1.0" ]
8
2021-03-19T00:35:00.000Z
2022-03-12T00:18:20.000Z
core/views.py
DerrazSofiane/DjangoREST_To-Do_App
5d2743ff8f20ff08d9e98e88a4ec35c7c29d9879
[ "CC0-1.0" ]
null
null
null
from django.contrib.auth import authenticate, login, logout, update_session_auth_hash from django.shortcuts import get_object_or_404 from rest_framework import status, viewsets from rest_framework.decorators import api_view from rest_framework.pagination import LimitOffsetPagination from rest_framework.response import ...
47.444934
117
0.647586
913ec9b2b7188080b314dc0ea611123a05f12c96
13,460
py
Python
tools/apps/fermion.py
emmabostian/qiskit-sdk-py
2feba1cba156ba85fc840630c62a793099f208d0
[ "Apache-2.0" ]
2
2020-11-17T18:49:44.000Z
2021-02-16T11:01:41.000Z
tools/apps/fermion.py
emmabostian/qiskit-sdk-py
2feba1cba156ba85fc840630c62a793099f208d0
[ "Apache-2.0" ]
null
null
null
tools/apps/fermion.py
emmabostian/qiskit-sdk-py
2feba1cba156ba85fc840630c62a793099f208d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2017 IBM RESEARCH. 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 requ...
32.047619
308
0.532987
913eecbf65092fb7c4c45e557883787c1ac8652e
994
py
Python
test/generate/autotest/F2_F3_MOVX_Ri_A.py
Aimini/hm-51
2d46323388a0679b2f99d1a33f5a0d55a5f838e6
[ "MIT" ]
null
null
null
test/generate/autotest/F2_F3_MOVX_Ri_A.py
Aimini/hm-51
2d46323388a0679b2f99d1a33f5a0d55a5f838e6
[ "MIT" ]
20
2020-01-13T04:19:37.000Z
2020-02-12T14:25:44.000Z
test/generate/autotest/F2_F3_MOVX_Ri_A.py
Aimini/hm-51
2d46323388a0679b2f99d1a33f5a0d55a5f838e6
[ "MIT" ]
null
null
null
######################################################### # 2020-01-29 18:20:21 # AI # ins: MOVX @Ri, A # copy of E2_E3_MOVX_A_Ri.py ######################################################### import random from .. import testutil as u from ..asmconst import * p = u.create_test() XRAM = list(range(0x10000)) used_xad...
17.438596
57
0.496982
913f36bbd3d39309c1caed54d22c212f406cb0f8
6,462
py
Python
gyazo/api.py
ymyzk/python-gyazo
a9c5a30513aeeaf9eaef9c4182908a6f241718ee
[ "MIT" ]
15
2015-01-30T11:49:56.000Z
2021-11-02T19:10:55.000Z
gyazo/api.py
ymyzk/python-gyazo
a9c5a30513aeeaf9eaef9c4182908a6f241718ee
[ "MIT" ]
30
2015-01-20T07:49:46.000Z
2017-10-31T16:48:39.000Z
gyazo/api.py
ymyzk/python-gyazo
a9c5a30513aeeaf9eaef9c4182908a6f241718ee
[ "MIT" ]
1
2016-10-09T20:14:55.000Z
2016-10-09T20:14:55.000Z
from typing import Any, BinaryIO, Dict, MutableMapping, Optional, Tuple import requests from requests.models import Response from .error import GyazoError from .image import Image, ImageList class Api: """A Python interface for Gyazo API""" def __init__(self, client_id: Optional[str] = Non...
36.303371
77
0.553234
913f4660f9ca894b8d4fc628b091d9f62786c6b5
3,691
py
Python
src/app.py
drosin/posebuddy
d8a1ea7658a86c091664f53cf6fad774fd648cfa
[ "MIT" ]
2
2020-06-09T12:40:18.000Z
2021-02-26T15:58:16.000Z
src/app.py
drosin/posebuddy
d8a1ea7658a86c091664f53cf6fad774fd648cfa
[ "MIT" ]
null
null
null
src/app.py
drosin/posebuddy
d8a1ea7658a86c091664f53cf6fad774fd648cfa
[ "MIT" ]
null
null
null
import cv2 from timeit import default_timer as timer import tkinter as tk from tkinter import messagebox import tk_tools from src.prediction import Predictor from src.prediction import Presence_Predictor from src.handlers.config import load_yaml from src.grab_images import get_images_from_webcam from src.training impor...
33.252252
120
0.630452
913f836b6fbff0abf7ae6fabc231f55002c065eb
2,521
py
Python
src/tqdm_batch/batch_process.py
dennisbakhuis/tqdm_batch
d13e1e6c966a2eccfde61db1bf3044210262dd86
[ "MIT" ]
10
2021-12-28T03:21:00.000Z
2021-12-30T01:57:28.000Z
src/tqdm_batch/batch_process.py
dennisbakhuis/tqdm_batch
d13e1e6c966a2eccfde61db1bf3044210262dd86
[ "MIT" ]
null
null
null
src/tqdm_batch/batch_process.py
dennisbakhuis/tqdm_batch
d13e1e6c966a2eccfde61db1bf3044210262dd86
[ "MIT" ]
1
2022-02-01T01:16:27.000Z
2022-02-01T01:16:27.000Z
from typing import List, Dict, Union, Callable from math import ceil from threading import Thread from multiprocessing import Manager from joblib import Parallel, delayed from .progress_bar import progress_bar from .task_wrapper import task_wrapper def batch_process( items: list, function: Callable, n_...
29.313953
68
0.647759
913fa7b25d24eb7b395f9d2b7e9258bb689004ee
2,889
py
Python
Intel-Edge-AI-Challenge/Lesson2/handle_models.py
sijoonlee/deep_learning
437ee14b478688d671257310c33071f75764e3ed
[ "MIT" ]
20
2019-09-29T13:32:00.000Z
2022-03-28T09:57:51.000Z
Intel-Edge-AI-Challenge/Lesson2/handle_models.py
sijoonlee/deep_learning
437ee14b478688d671257310c33071f75764e3ed
[ "MIT" ]
11
2021-06-08T20:32:58.000Z
2022-03-12T00:05:43.000Z
Intel-Edge-AI-Challenge/Lesson2/handle_models.py
sijoonlee/deep_learning
437ee14b478688d671257310c33071f75764e3ed
[ "MIT" ]
null
null
null
import cv2 import numpy as np def handle_pose(output, input_shape): ''' Handles the output of the Pose Estimation model. Returns ONLY the keypoint heatmaps, and not the Part Affinity Fields. ''' # TODO 1: Extract only the second blob output (keypoint heatmaps) heatmaps = output['Mcon...
34.807229
81
0.655936
913fc6acc2aa9d5d0c14e3671cc10ec41141e978
2,207
py
Python
ilurl/agents/ql/replay_buffer.py
CubeSkyy/ILU-RL
676d88587e1d8638487de1b5a3f8785a7375ad1a
[ "MIT" ]
null
null
null
ilurl/agents/ql/replay_buffer.py
CubeSkyy/ILU-RL
676d88587e1d8638487de1b5a3f8785a7375ad1a
[ "MIT" ]
null
null
null
ilurl/agents/ql/replay_buffer.py
CubeSkyy/ILU-RL
676d88587e1d8638487de1b5a3f8785a7375ad1a
[ "MIT" ]
2
2021-03-13T15:38:05.000Z
2021-05-08T22:25:36.000Z
import numpy as np import random class ReplayBuffer(object): def __init__(self, size): """Create Replay buffer. Parameters ---------- size: int Max number of transitions to store in the buffer. When the buffer overflows the old memories are dropped. ...
32.940299
108
0.58541
913fe45fb9ae1a2c622fb67fbdb4cefae5e797f5
281
py
Python
tsai/optimizer.py
Niklas-gr-dot/tsai
7ffee92d4939c3b0dcb24de9d3abf41316c45c8b
[ "Apache-2.0" ]
null
null
null
tsai/optimizer.py
Niklas-gr-dot/tsai
7ffee92d4939c3b0dcb24de9d3abf41316c45c8b
[ "Apache-2.0" ]
null
null
null
tsai/optimizer.py
Niklas-gr-dot/tsai
7ffee92d4939c3b0dcb24de9d3abf41316c45c8b
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/053_optimizer.ipynb (unless otherwise specified). __all__ = ['wrap_optimizer'] # Cell from .imports import * from fastai.optimizer import * # Cell def wrap_optimizer(opt, **kwargs): return partial(OptimWrapper, opt=opt, **kwargs)
25.545455
97
0.75089
91400eed17bd8d2ee2cfa780744ec7fd1173de8b
1,576
py
Python
src/pybass3/structs/info.py
devdave/PyBASS3
d8fbb665f3956d35ecfef57ef5e21263678e1739
[ "MIT" ]
2
2022-01-10T12:05:23.000Z
2022-01-19T18:39:51.000Z
src/pybass3/structs/info.py
devdave/pybass3
d8fbb665f3956d35ecfef57ef5e21263678e1739
[ "MIT" ]
null
null
null
src/pybass3/structs/info.py
devdave/pybass3
d8fbb665f3956d35ecfef57ef5e21263678e1739
[ "MIT" ]
null
null
null
import ctypes class BASS_INFO(ctypes.Structure): _fields_ = [('flags', ctypes.c_ulong), # device capabilities (DSCAPS_xxx flags) ('hwsize', ctypes.c_ulong), # size of total device hardware memory ('hwfree', ctypes.c_ulong), # size of free device hardware memory (...
56.285714
117
0.606599
9140166572202a2aa23eac77eaf4a7fa1af0886c
9,362
py
Python
target_mssql/tests/test_core.py
AutoIDM/autoidm-target-mssql
0e70dee8efaf774dc0c3433372e43c012b4846a4
[ "MIT" ]
2
2021-07-22T02:54:24.000Z
2021-12-21T13:16:22.000Z
target_mssql/tests/test_core.py
AutoIDM/autoidm-target-mssql
0e70dee8efaf774dc0c3433372e43c012b4846a4
[ "MIT" ]
null
null
null
target_mssql/tests/test_core.py
AutoIDM/autoidm-target-mssql
0e70dee8efaf774dc0c3433372e43c012b4846a4
[ "MIT" ]
1
2021-07-22T14:22:03.000Z
2021-07-22T14:22:03.000Z
"""Tests standard tap features using the built-in SDK tests library.""" import datetime import pytest #from singer_sdk.testing import get_standard_tap_tests from target_mssql.target import TargetMSSQL #Config from Docker File Setup SAMPLE_CONFIG = { "start_date": datetime.datetime.now(datetime.timezone.utc).strftim...
170.218182
962
0.678594
9140205dd363f91a08d26a796132d8fb02a23f90
15
py
Python
lib/__init__.py
facelessuser/SchemeEditor
fbffcc8936a5d7eed8668618e3bd0cea85b74b2e
[ "Unlicense", "MIT" ]
38
2017-07-24T04:54:34.000Z
2022-02-20T21:32:32.000Z
lib/__init__.py
facelessuser/ColorSchemeEditor
fbffcc8936a5d7eed8668618e3bd0cea85b74b2e
[ "Unlicense", "MIT" ]
7
2015-04-28T02:54:56.000Z
2017-07-23T16:39:55.000Z
lib/__init__.py
facelessuser/SchemeEditor
fbffcc8936a5d7eed8668618e3bd0cea85b74b2e
[ "Unlicense", "MIT" ]
4
2017-11-22T19:08:19.000Z
2019-09-10T02:07:06.000Z
"""Library."""
7.5
14
0.466667
91402cea5f4c9ffe8981761a499c4d491cb8e524
9,538
py
Python
sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/_cdn_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/_cdn_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/_cdn_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
61.935065
542
0.762319
91404a041c799e14308f5f9e8d8d88c26c54e4de
3,410
py
Python
elit/components/taggers/rnn/rnntaggingmodel.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
9
2021-07-12T22:05:47.000Z
2022-02-22T03:10:14.000Z
elit/components/taggers/rnn/rnntaggingmodel.py
emorynlp/stem-cell-hypothesis
48a628093d93d653865fbac6409d179cddd99293
[ "Apache-2.0" ]
4
2021-08-31T08:28:37.000Z
2022-03-28T05:52:14.000Z
elit/components/taggers/rnn/rnntaggingmodel.py
emorynlp/stem-cell-hypothesis
48a628093d93d653865fbac6409d179cddd99293
[ "Apache-2.0" ]
null
null
null
# MIT License # # Copyright (c) 2020 Yu Zhang # # 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, pub...
33.762376
80
0.609677
914079f00c3ab9e7053491977cb5701834fe467d
43,959
py
Python
test/imo_001_26_environment_test.py
schwehr/ais-areanotice-py
4d09beba37533c7ddc3d2bb9260be74989d44ed2
[ "Apache-2.0" ]
7
2016-08-02T04:49:08.000Z
2021-03-10T05:16:49.000Z
test/imo_001_26_environment_test.py
schwehr/ais-areanotice-py
4d09beba37533c7ddc3d2bb9260be74989d44ed2
[ "Apache-2.0" ]
4
2015-03-31T20:47:03.000Z
2015-04-23T20:48:49.000Z
test/imo_001_26_environment_test.py
schwehr/ais-areanotice-py
4d09beba37533c7ddc3d2bb9260be74989d44ed2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Test the Environmental message and all of the constituent SensorReports. TODO(schwehr): Test NMEA decoding. """ import datetime import math import random import sys import unittest from ais_area_notice import ais_string import ais_area_notice.imo_001_26_environment as env # How many loops ...
39.602703
78
0.623718
9140abc68b6cf3aaeca647cef5cee21385c9831e
14,619
py
Python
components/scream/scripts/utils.py
ambrad/scream
52da60f65e870b8a3994bdbf4a6022fdcac7cab5
[ "BSD-3-Clause" ]
null
null
null
components/scream/scripts/utils.py
ambrad/scream
52da60f65e870b8a3994bdbf4a6022fdcac7cab5
[ "BSD-3-Clause" ]
null
null
null
components/scream/scripts/utils.py
ambrad/scream
52da60f65e870b8a3994bdbf4a6022fdcac7cab5
[ "BSD-3-Clause" ]
null
null
null
""" Utilities """ import os, sys, re, signal, subprocess, site from importlib import import_module ############################################################################### def expect(condition, error_msg, exc_type=SystemExit, error_prefix="ERROR:"): #############################################################...
39.404313
182
0.5328
9140e4435186318dcf8798ab0e544aeda839a4e8
3,991
py
Python
alipay/aop/api/request/AlipayOpenAgentCommonsignConfirmRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayOpenAgentCommonsignConfirmRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayOpenAgentCommonsignConfirmRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "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.AlipayOpenAgentCommonsignConfirmModel import AlipayOpenAgentCommonsignConfirmModel class AlipayOpenAgentCommonsignConfirmRequest(obj...
27.524138
148
0.646455
91410bafc50cf0621b40126d2b2c16808bc5e5bb
4,209
py
Python
examples/obsolete_legacy/Test_scripts/09_ClearPageFile.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
1
2022-03-31T14:01:51.000Z
2022-03-31T14:01:51.000Z
examples/obsolete_legacy/Test_scripts/09_ClearPageFile.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
null
null
null
examples/obsolete_legacy/Test_scripts/09_ClearPageFile.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
1
2022-03-31T14:02:30.000Z
2022-03-31T14:02:30.000Z
# This is is script template, aiming to allow easy scenario definitions with full reporter functionallity but import time import logging import hashlib import subprocess import random import os from datetime import date try: from fortrace.core.vmm import Vmm from fortrace.utility.logger_helper import create_lo...
34.219512
452
0.575909
91412e8e425de542b857bd263b6bb63b3703ec55
9,675
py
Python
cell2cell/external/tensorly_nn_cp.py
ckmah/cell2cell
ce18bbb63e12f9b1da8699567dec9a2a8b78f824
[ "BSD-3-Clause" ]
16
2020-09-30T01:53:43.000Z
2022-03-25T09:58:54.000Z
cell2cell/external/tensorly_nn_cp.py
ckmah/cell2cell
ce18bbb63e12f9b1da8699567dec9a2a8b78f824
[ "BSD-3-Clause" ]
2
2021-08-09T21:26:54.000Z
2021-11-08T14:47:39.000Z
cell2cell/external/tensorly_nn_cp.py
ckmah/cell2cell
ce18bbb63e12f9b1da8699567dec9a2a8b78f824
[ "BSD-3-Clause" ]
3
2021-11-08T07:47:44.000Z
2022-03-30T18:40:00.000Z
### This was borrowed temporarily from the version 0.5.1 of tensorly: https://github.com/tensorly/tensorly/tree/main/tensorly ### https://pypi.org/project/tensorly/0.5.1/#files ### Once the non_negative_parafac takes random_state when init='random', this will replaces by the corresponding version. ### TO REMEMBER: When...
40.651261
157
0.589147
914163e7ab38d736c6d9bc16fa3e57111e5e401d
19,389
py
Python
tuf/ngclient/updater.py
peip-mirror/tuf
46979bb46d3054ca37fc0b9258574a126d975fcc
[ "Apache-2.0", "MIT" ]
null
null
null
tuf/ngclient/updater.py
peip-mirror/tuf
46979bb46d3054ca37fc0b9258574a126d975fcc
[ "Apache-2.0", "MIT" ]
28
2022-02-11T12:20:30.000Z
2022-03-31T10:32:08.000Z
tuf/ngclient/updater.py
peip-mirror/tuf
46979bb46d3054ca37fc0b9258574a126d975fcc
[ "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2020, New York University and the TUF contributors # SPDX-License-Identifier: MIT OR Apache-2.0 """Client update workflow implementation The ``Updater`` class provides an implementation of the `TUF client workflow <https://theupdateframework.github.io/specification/latest/#detailed-client-workflow>`_. ``U...
41.07839
92
0.635721
914178a27b9b936f6bda7e8e8cdddee719594b80
2,171
py
Python
example/main.py
ABadCandy/HessianDL
18044ba188cb6174b1231fbe0ef0985517710799
[ "MIT" ]
1
2019-02-08T12:43:46.000Z
2019-02-08T12:43:46.000Z
main.py
ABadCandy/HessianDL
18044ba188cb6174b1231fbe0ef0985517710799
[ "MIT" ]
null
null
null
main.py
ABadCandy/HessianDL
18044ba188cb6174b1231fbe0ef0985517710799
[ "MIT" ]
null
null
null
""" A simple example to calculate the top eigenvectors for the hessian of ResNet18 network for CIFAR-10 """ import track import skeletor from skeletor.datasets import build_dataset from skeletor.models import build_model import torch from hessian_eigenthings import compute_hessian_eigenthings def extra_args(parser...
39.472727
81
0.549977
9141f096c9c555d055890417c11a939410c80f00
335
py
Python
HomeWork 1/data_gathering/storages/storage.py
AlekseyTalipov/otis
b7296b484ff7b30985e7e2c53fcc376890c736f7
[ "MIT" ]
null
null
null
HomeWork 1/data_gathering/storages/storage.py
AlekseyTalipov/otis
b7296b484ff7b30985e7e2c53fcc376890c736f7
[ "MIT" ]
null
null
null
HomeWork 1/data_gathering/storages/storage.py
AlekseyTalipov/otis
b7296b484ff7b30985e7e2c53fcc376890c736f7
[ "MIT" ]
null
null
null
import abc class Storage(object): __metaclass__ = abc.ABCMeta @abc.abstractmethod def read_data(self): raise NotImplementedError @abc.abstractmethod def write_data(self, data): raise NotImplementedError @abc.abstractmethod def append_data(self, data): raise NotIm...
18.611111
33
0.692537
91420aa677db34fbaf1ac857eb0c7ab37328f6cc
3,772
py
Python
datasist/nlp.py
cemeiq/datasist
9415fd52c04b2b5af35f020c1c51185b5c4fdcf2
[ "MIT" ]
1
2020-08-19T13:28:57.000Z
2020-08-19T13:28:57.000Z
datasist/nlp.py
Justus-coded/datasist
3b718813666e2111faf41df9f4f0ed5e7b459584
[ "MIT" ]
null
null
null
datasist/nlp.py
Justus-coded/datasist
3b718813666e2111faf41df9f4f0ed5e7b459584
[ "MIT" ]
null
null
null
import nltk from nltk.corpus import stopwords from nltk.stem import PorterStemmer from nltk.tokenize import word_tokenize from nltk.cluster.util import cosine_distance import string import re import numpy as np nltk.download('stopwords') nltk.download('punkt') def convert_lower_case(data): return np.char.lower(da...
27.940741
133
0.593319
914210942ae42b42ae86ad00391cc6f88b40cd8a
2,155
py
Python
api/responders/resource/graph.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
api/responders/resource/graph.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
api/responders/resource/graph.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
############################################################################### # Copyright (c) 2017-2020 Koren Lev (Cisco Systems), # # Yaron Yogev (Cisco Systems), Ilia Abashin (Cisco Systems) and others # # # ...
51.309524
120
0.603712
91424685c9a014d3cd48166bf50f5b5de375bf2e
5,260
py
Python
mediapipe/calculators/video/flow_packager_calculator_pb2.py
mengfu188/simple-mediapipe
85dc8a87c9586312c2d057ad587bfccf3b5e2eb6
[ "Apache-2.0" ]
5
2021-01-01T11:02:41.000Z
2022-03-11T19:44:29.000Z
mediapipe/calculators/video/flow_packager_calculator_pb2.py
mengfu188/simple-mediapipe
85dc8a87c9586312c2d057ad587bfccf3b5e2eb6
[ "Apache-2.0" ]
null
null
null
mediapipe/calculators/video/flow_packager_calculator_pb2.py
mengfu188/simple-mediapipe
85dc8a87c9586312c2d057ad587bfccf3b5e2eb6
[ "Apache-2.0" ]
1
2021-04-12T05:59:46.000Z
2021-04-12T05:59:46.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: mediapipe/calculators/video/flow_packager_calculator.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google...
51.568627
600
0.820342
91425d4c81458d5d292cb5350f3f343ed57400e7
1,827
py
Python
subscriptionbox/settings/development.py
goobes/box
42e136d98b2a25ffd8717b3c8c9d97654cc15e54
[ "MIT" ]
null
null
null
subscriptionbox/settings/development.py
goobes/box
42e136d98b2a25ffd8717b3c8c9d97654cc15e54
[ "MIT" ]
21
2018-02-21T06:53:36.000Z
2022-03-11T23:14:47.000Z
subscriptionbox/settings/development.py
goobes/box
42e136d98b2a25ffd8717b3c8c9d97654cc15e54
[ "MIT" ]
1
2018-03-01T11:01:20.000Z
2018-03-01T11:01:20.000Z
from .base import * # noqa DEBUG = True INTERNAL_IPS = ["127.0.0.1"] SECRET_KEY = "secret" # DATABASE SETTINGS # https://docs.djangoproject.com/en/1.10/ref/settings/#databases DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'development.sqlite3', 'USER': '', ...
26.867647
81
0.701697
91426c40c05ebed56b2b5f3274b79a2a1ef0603f
6,553
py
Python
leetcode_python/Tree/all-nodes-distance-k-in-binary-tree.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
18
2019-08-01T07:45:02.000Z
2022-03-31T18:05:44.000Z
leetcode_python/Tree/all-nodes-distance-k-in-binary-tree.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
null
null
null
leetcode_python/Tree/all-nodes-distance-k-in-binary-tree.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
15
2019-12-29T08:46:20.000Z
2022-03-08T14:14:05.000Z
# V0 # V1 # https://blog.csdn.net/fuxuemingzhu/article/details/82709619 # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def distanceK(self, root, target, K): ""...
31.657005
173
0.517931
914281c90f4294d1431ff44f24c806566b50c12e
532
py
Python
neuroscout/schemas/task.py
jdkent/neuroscout
67aaafdf883988e2048197dc9ce4559a28e3b7b6
[ "BSD-3-Clause" ]
5
2018-07-16T16:23:21.000Z
2021-08-20T15:43:23.000Z
neuroscout/schemas/task.py
jdkent/neuroscout
67aaafdf883988e2048197dc9ce4559a28e3b7b6
[ "BSD-3-Clause" ]
719
2018-07-09T17:19:57.000Z
2022-03-30T15:30:59.000Z
neuroscout/schemas/task.py
jdkent/neuroscout
67aaafdf883988e2048197dc9ce4559a28e3b7b6
[ "BSD-3-Clause" ]
9
2019-07-10T17:45:31.000Z
2021-08-30T21:51:21.000Z
from marshmallow import fields, Schema class TaskSchema(Schema): id = fields.Int() name = fields.Str() dataset_id = fields.Int() n_subjects = fields.Int( description='Number of unique subjects') n_runs_subject = fields.Int( description='Number of runs per subject') avg_run_dur...
28
54
0.669173
9142899cb9f17da02b7edb87a8817b5eb71ea40e
1,682
py
Python
src/rival_regions_wrapper/exceptions.py
joostsijm/rival_regions_wrapper
f518ad4075b165078aee3c6dd93a0b4e8c3ba6d4
[ "MIT" ]
2
2021-04-06T15:39:52.000Z
2021-04-09T11:37:21.000Z
src/rival_regions_wrapper/exceptions.py
joostsijm/rival_regions_wrapper
f518ad4075b165078aee3c6dd93a0b4e8c3ba6d4
[ "MIT" ]
3
2021-03-28T10:59:49.000Z
2021-04-02T09:43:16.000Z
src/rival_regions_wrapper/exceptions.py
joostsijm/rival_regions_wrapper
f518ad4075b165078aee3c6dd93a0b4e8c3ba6d4
[ "MIT" ]
3
2021-03-19T13:11:47.000Z
2021-08-28T14:16:54.000Z
""" Exceptions used in Rival Regions Wrapper """ from rival_regions_wrapper import LOGGER class InvalidLoginMethodException(Exception): """Raise exception when login method is invalid""" def __init__(self, *args, **kwargs): Exception.__init__(self, *args, **kwargs) LOGGER.warning("Login meth...
27.129032
61
0.674792
9142d39b3d276b24baf0606a48e5440faa03dffd
6,967
py
Python
VECO/NLG/fairseq/models/veco/hub_interface.py
onlyrico/AliceMind
a6a070b1610e4c4bfe84ee6c4195b2bc4f725ded
[ "Apache-2.0" ]
1
2021-08-05T05:41:50.000Z
2021-08-05T05:41:50.000Z
VECO/NLG/fairseq/models/veco/hub_interface.py
onlyrico/AliceMind
a6a070b1610e4c4bfe84ee6c4195b2bc4f725ded
[ "Apache-2.0" ]
null
null
null
VECO/NLG/fairseq/models/veco/hub_interface.py
onlyrico/AliceMind
a6a070b1610e4c4bfe84ee6c4195b2bc4f725ded
[ "Apache-2.0" ]
1
2021-07-10T09:50:47.000Z
2021-07-10T09:50:47.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import copy import logging import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from typing import List fr...
37.256684
129
0.607722
9142f68d09700f897e09cb82717e290fe136b7d4
1,253
py
Python
customformatter.py
JulioLoayzaM/CroissantBot
26bc984a51a0ca4bd0a3f62220707e0f446ec554
[ "MIT" ]
2
2021-09-12T15:02:10.000Z
2021-09-13T13:00:00.000Z
customformatter.py
JulioLoayzaM/CroissantBot
26bc984a51a0ca4bd0a3f62220707e0f446ec554
[ "MIT" ]
3
2021-09-12T02:50:04.000Z
2021-09-18T08:16:27.000Z
customformatter.py
JulioLoayzaM/CroissantBot
26bc984a51a0ca4bd0a3f62220707e0f446ec554
[ "MIT" ]
2
2021-09-12T14:47:42.000Z
2021-09-13T13:20:15.000Z
# customformatter.py # Defines a logging formatter to customize the logger's output: # - sets the format: "time - logger - level - log (file:line)" # - adds colour to the levels import logging class CustomFormatter(logging.Formatter): """ Custom logging formatter to colour-code the levels. """ # Colours for fo...
31.325
80
0.685555
91430667c083a33864c236cb15b868a0affd4fa3
2,331
py
Python
captcha-CTC-loss/utils.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
923
2020-01-11T06:36:53.000Z
2022-03-31T00:26:57.000Z
captcha-CTC-loss/utils.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
25
2020-02-27T08:35:46.000Z
2022-01-25T08:54:19.000Z
captcha-CTC-loss/utils.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
262
2020-01-02T02:19:40.000Z
2022-03-23T04:56:16.000Z
import os import torch from torch.autograd import Variable import torch.nn.functional as F BLANK_LABEL = 0 def get_dataset_path(): """ Set dataset path """ file_path = os.path.realpath(__file__) cur_dir = os.path.split(file_path)[0] return os.path.join(cur_dir, 'data') DATASET_PATH = get_dataset_...
29.884615
94
0.63535
9143166cb9602c46a2bcccb0920ffcf3d8b24561
20,890
py
Python
twistedcaldav/cache.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
1
2017-02-18T19:22:19.000Z
2017-02-18T19:22:19.000Z
twistedcaldav/cache.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
twistedcaldav/cache.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
## # Copyright (c) 2008-2015 Apple Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
34.415157
134
0.622738
91436f3082b1e2c152ba140f3ca206525a6c354d
7,797
py
Python
BioNetGen-2.3.0/source_Atomizer/stats/underscoreTest.py
joseph-hellerstein/RuleBasedProgramming
fb88118ab764035979dc7c2bf8c89a7b484e4472
[ "MIT" ]
null
null
null
BioNetGen-2.3.0/source_Atomizer/stats/underscoreTest.py
joseph-hellerstein/RuleBasedProgramming
fb88118ab764035979dc7c2bf8c89a7b484e4472
[ "MIT" ]
null
null
null
BioNetGen-2.3.0/source_Atomizer/stats/underscoreTest.py
joseph-hellerstein/RuleBasedProgramming
fb88118ab764035979dc7c2bf8c89a7b484e4472
[ "MIT" ]
null
null
null
import readBNGXML import progressbar import seaborn as sns import matplotlib.pyplot as plt import os import fnmatch import pandas from scipy.stats import kendalltau from scipy import stats import argparse xkcd = False def getModelStructures(bngxml): structures = readBNGXML.parseFullXML(bngxml) return structur...
37.666667
250
0.682057
9143838c11039651e96cca4640c0e1abe5c59372
20,551
py
Python
tests/test_submission.py
0xflotus/rtv
e31a6a218032b7f36a779ee34c41ef4c9dfaf9ab
[ "MIT" ]
null
null
null
tests/test_submission.py
0xflotus/rtv
e31a6a218032b7f36a779ee34c41ef4c9dfaf9ab
[ "MIT" ]
1
2018-09-24T11:51:05.000Z
2018-09-24T11:51:05.000Z
tests/test_submission.py
0xflotus/rtv
e31a6a218032b7f36a779ee34c41ef4c9dfaf9ab
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import sys import curses import subprocess from collections import OrderedDict import pytest from rtv.submission_page import SubmissionPage from rtv.docs import FOOTER_SUBMISSION try: from unittest import mock except ImportError: import mock ...
35.129915
96
0.686195
914385a94326860743c0501655acb8a4149d71b4
3,543
py
Python
setup.py
sjoertvv/PyIDLPhot
ecc83917f881e91b6ce477df1fbd350028abd0d5
[ "BSD-3-Clause" ]
null
null
null
setup.py
sjoertvv/PyIDLPhot
ecc83917f881e91b6ce477df1fbd350028abd0d5
[ "BSD-3-Clause" ]
null
null
null
setup.py
sjoertvv/PyIDLPhot
ecc83917f881e91b6ce477df1fbd350028abd0d5
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Licensed under a 3-clause BSD style license - see LICENSE.rst import glob import os import sys import ah_bootstrap from setuptools import setup #A dirty hack to get around some early import/configurations ambiguities if sys.version_info[0] >= 3: import builtins else: import __builtin_...
32.209091
79
0.741462
91438e04f36e5536a60a66dfc181328518f5bf0c
3,246
py
Python
src/redisenterprise/azext_redisenterprise/vendored_sdks/redisenterprise/aio/_configuration.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
null
null
null
src/redisenterprise/azext_redisenterprise/vendored_sdks/redisenterprise/aio/_configuration.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
null
null
null
src/redisenterprise/azext_redisenterprise/vendored_sdks/redisenterprise/aio/_configuration.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
1
2022-02-14T21:43:29.000Z
2022-02-14T21:43:29.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.735294
134
0.701171
9143afa25730a79c8c0d47f4e165c44dbfb54314
4,871
py
Python
pytorch_permuto/pytorch_permuto/unit_tests/test_pytorch_bcrf.py
sahan-liyanaarachchi/bcrf-detectron
7cbdd8a77e54f09cca1addd66c7359e17501b9e4
[ "Apache-2.0" ]
4
2020-09-11T05:39:22.000Z
2022-02-03T20:50:51.000Z
pytorch_permuto/pytorch_permuto/unit_tests/test_pytorch_bcrf.py
sahan-liyanaarachchi/bcrf-detectron
7cbdd8a77e54f09cca1addd66c7359e17501b9e4
[ "Apache-2.0" ]
4
2021-06-08T22:17:39.000Z
2022-03-12T00:46:18.000Z
pytorch_permuto/pytorch_permuto/unit_tests/test_pytorch_bcrf.py
sahan-liyanaarachchi/bcrf-detectron
7cbdd8a77e54f09cca1addd66c7359e17501b9e4
[ "Apache-2.0" ]
3
2020-09-05T11:31:59.000Z
2020-10-03T00:11:48.000Z
import os.path as osp import unittest import numpy as np import torch from PIL import Image from torch.autograd import gradcheck from UPSNet.serve.utils import DataKeys as dk from crf import compatibility_transform as ct from crf.bipartite_crf import BipartiteCRF from crf.densecrf import DenseCRFParams from datasets....
35.043165
111
0.645658
9143b610bd3bb8fc638c283c607f47727413a1f9
9,767
py
Python
pangoBot/PangoBot.py
LouisMeMyself/PangoBot
9c015ccb940be8ce3c63d096da8dfa0bee73d8a7
[ "MIT" ]
null
null
null
pangoBot/PangoBot.py
LouisMeMyself/PangoBot
9c015ccb940be8ce3c63d096da8dfa0bee73d8a7
[ "MIT" ]
null
null
null
pangoBot/PangoBot.py
LouisMeMyself/PangoBot
9c015ccb940be8ce3c63d096da8dfa0bee73d8a7
[ "MIT" ]
null
null
null
# import asyncio # import json # import typing # from datetime import datetime import discord import numpy as np from discord.ext import commands from pangoBot import PangoPic, Constants class PangoBot: pangoPic_ = PangoPic.PangoPic() bot = commands.Bot channels = Constants.Channels # bank = {} ...
49.080402
189
0.573666
9143d7066ab264b483c8da87bad2e88f3399a392
1,178
py
Python
alder/store/files.py
AlderDHT/alder
26a11d482dfe6763e0fed3f5ac0e379396f5d5bc
[ "Apache-2.0" ]
2
2020-10-13T11:16:27.000Z
2021-12-23T00:48:18.000Z
alder/store/files.py
AlderDHT/alder
26a11d482dfe6763e0fed3f5ac0e379396f5d5bc
[ "Apache-2.0" ]
null
null
null
alder/store/files.py
AlderDHT/alder
26a11d482dfe6763e0fed3f5ac0e379396f5d5bc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Read and Write files to disk and return the relative path data for the index ''' # Import python libs import os import io import binascii # Import alder libs import alder.aid.rand def _file_loc(files_dir): while True: fn_ = os.path.join(files_dir, alder.aid.rand.rand_hex_str(24...
24.040816
76
0.599321
9143ec562522dcc90d926e3ece8249f3d5bc4efd
10,530
py
Python
venv/Lib/site-packages/tests/test_043_FetchTupleMany_03.py
shehzadulislam/Assignment4
a9cced70be6ae5d2685027d68032d5849f638301
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/tests/test_043_FetchTupleMany_03.py
shehzadulislam/Assignment4
a9cced70be6ae5d2685027d68032d5849f638301
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/tests/test_043_FetchTupleMany_03.py
shehzadulislam/Assignment4
a9cced70be6ae5d2685027d68032d5849f638301
[ "Apache-2.0" ]
null
null
null
# # Licensed Materials - Property of IBM # # (c) Copyright IBM Corp. 2007-2008 # import unittest, sys import ibm_db import config from testfunctions import IbmDbTestFunctions class IbmDbTestCase(unittest.TestCase): def test_043_FetchTupleMany_03(self): obj = IbmDbTestFunctions() obj.assert_expect(self.r...
56.918919
108
0.425261
9143fff82000f1838bfdbec7a731eb1ccda7497c
3,775
py
Python
glcm.py
amitkumarj441/TGS_Kaggle
a4f613046cc36f3f6dbec28adb35f97a63c2a994
[ "MIT" ]
1
2019-03-20T07:10:08.000Z
2019-03-20T07:10:08.000Z
glcm.py
amitkumarj441/TGS_Kaggle
a4f613046cc36f3f6dbec28adb35f97a63c2a994
[ "MIT" ]
null
null
null
glcm.py
amitkumarj441/TGS_Kaggle
a4f613046cc36f3f6dbec28adb35f97a63c2a994
[ "MIT" ]
null
null
null
from multiprocessing import Pool import cv2 import numpy as np import pandas as pd import tqdm from skimage.feature import greycomatrix, greycoprops from skimage.io import imread def read_image(imgid): fn = '../salt/input/train/images/{}.png'.format(imgid) return imread(fn)[..., 0].astype(np.float32) / 255 ...
33.40708
115
0.60106
91441b29072e63d305be1c37132b557adfa92de7
3,782
py
Python
examples/animate.py
SincereXIA/Adafruit_Nokia_LCD
329e01bcb25bf9970afee10aad7f365381571819
[ "MIT" ]
null
null
null
examples/animate.py
SincereXIA/Adafruit_Nokia_LCD
329e01bcb25bf9970afee10aad7f365381571819
[ "MIT" ]
null
null
null
examples/animate.py
SincereXIA/Adafruit_Nokia_LCD
329e01bcb25bf9970afee10aad7f365381571819
[ "MIT" ]
null
null
null
# Copyright (c) 2014 Adafruit Industries # Author: Tony DiCola # # 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, m...
31
163
0.695928
914438c7ef046e916abb3c711c1ba4ff7039d201
16,379
py
Python
lib/sps30 - Modified.py
NoSDante/micropython-esp32
7722be7aab5cc7ca603775636a9b1a4e1f7497f0
[ "CC0-1.0" ]
2
2022-01-31T19:53:02.000Z
2022-02-28T13:11:01.000Z
lib/sps30 - Modified.py
NoSDante/micropython-esp32
7722be7aab5cc7ca603775636a9b1a4e1f7497f0
[ "CC0-1.0" ]
null
null
null
lib/sps30 - Modified.py
NoSDante/micropython-esp32
7722be7aab5cc7ca603775636a9b1a4e1f7497f0
[ "CC0-1.0" ]
1
2022-01-24T17:57:14.000Z
2022-01-24T17:57:14.000Z
# Contact Teus Hagen webmaster@behouddeparel.nl to report improvements and bugs # Copyright (C) 2019, Behoud de Parel, Teus Hagen, the Netherlands # $Id: SPS30.py,v 7.1 2021/02/07 14:26:26 teus Exp teus $ # Open Source Initiative https://opensource.org/licenses/RPL-1.5 # # Unless explicitly acquired and licensed fro...
37.056561
161
0.639661
91443934c5ab121659ed1bee07c9cf19b36da02f
1,103
py
Python
pytest_skippy/util.py
a-feld/pytest-skippy
1d0b1adf16c810a66d5d8dadad765e5b093e1b0b
[ "MIT" ]
8
2018-01-29T16:10:18.000Z
2019-01-13T07:03:56.000Z
pytest_skippy/util.py
a-feld/pytest-autoskip
1d0b1adf16c810a66d5d8dadad765e5b093e1b0b
[ "MIT" ]
6
2018-01-27T03:13:59.000Z
2018-01-29T07:41:46.000Z
pytest_skippy/util.py
a-feld/pytest-skippy
1d0b1adf16c810a66d5d8dadad765e5b093e1b0b
[ "MIT" ]
null
null
null
from collections import deque def flatten_imports(imported_module, import_tree): """Returns a set of all modules imported by imported_module The import tree is a :py:class:`dict` in the form {module: set(imported_by)} :param imported_module: A leaf module name :type imported_module: str :par...
25.651163
72
0.658205
91444a5593c661923bef5caa6742bf6ae7ce7bc0
8,560
py
Python
dscribe/utils/geometry.py
songsiwei/dscribe
087600deb5d985dec955dfa7e470193c26af281b
[ "Apache-2.0" ]
1
2019-09-05T11:54:12.000Z
2019-09-05T11:54:12.000Z
dscribe/utils/geometry.py
songsiwei/dscribe
087600deb5d985dec955dfa7e470193c26af281b
[ "Apache-2.0" ]
null
null
null
dscribe/utils/geometry.py
songsiwei/dscribe
087600deb5d985dec955dfa7e470193c26af281b
[ "Apache-2.0" ]
1
2021-05-25T08:25:48.000Z
2021-05-25T08:25:48.000Z
# -*- coding: utf-8 -*- """Copyright 2019 DScribe developers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
40.956938
96
0.643458
91445cee830f81a52fe3f4ce074fd85c36c84404
8,577
py
Python
sktime/transformations/series/impute.py
FedericoGarza/sktime
b21cdd81453abd34c72b42d4b2273b49d29eba30
[ "BSD-3-Clause" ]
null
null
null
sktime/transformations/series/impute.py
FedericoGarza/sktime
b21cdd81453abd34c72b42d4b2273b49d29eba30
[ "BSD-3-Clause" ]
null
null
null
sktime/transformations/series/impute.py
FedericoGarza/sktime
b21cdd81453abd34c72b42d4b2273b49d29eba30
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 -u # -*- coding: utf-8 -*- # copyright: sktime developers, BSD-3-Clause License (see LICENSE file) """Utilities to impute series with missing values.""" __author__ = ["aiwalter"] __all__ = ["Imputer"] import numpy as np import pandas as pd from sklearn.base import clone from sklearn.utils impo...
35.442149
88
0.600909
91446bbcb8c43504418334f078f3687b22b93e3c
157
py
Python
twitchbot/_bot_package_path.py
max-susi/PythonTwitchBotFramework
09f9a8dbb56978550e61855c9809f6d7af0c3031
[ "MIT" ]
87
2018-05-22T18:30:42.000Z
2022-03-12T19:31:52.000Z
twitchbot/_bot_package_path.py
max-susi/PythonTwitchBotFramework
09f9a8dbb56978550e61855c9809f6d7af0c3031
[ "MIT" ]
32
2019-04-01T20:07:33.000Z
2022-01-14T03:00:58.000Z
twitchbot/_bot_package_path.py
max-susi/PythonTwitchBotFramework
09f9a8dbb56978550e61855c9809f6d7af0c3031
[ "MIT" ]
43
2018-08-29T04:59:47.000Z
2022-03-09T16:47:14.000Z
from pathlib import Path _BOT_PACKAGE_PATH = Path() def _set_bot_package_path(path: str): global _BOT_PACKAGE_PATH _BOT_PACKAGE_PATH = Path(path)
17.444444
37
0.770701
91447fed967434b42724bbfef05e88b04008584e
1,614
py
Python
docker_explorer/utils.py
jonathan-greig/docker-explorer
edd7f89effc2c167bc809841212701a6e0518075
[ "Apache-2.0" ]
387
2018-05-16T10:00:50.000Z
2022-03-31T10:41:14.000Z
docker_explorer/utils.py
jonathan-greig/docker-explorer
edd7f89effc2c167bc809841212701a6e0518075
[ "Apache-2.0" ]
90
2018-05-16T10:06:47.000Z
2022-03-07T12:21:50.000Z
docker_explorer/utils.py
jonathan-greig/docker-explorer
edd7f89effc2c167bc809841212701a6e0518075
[ "Apache-2.0" ]
35
2018-05-16T09:16:44.000Z
2022-03-30T10:56:03.000Z
# -*- coding: utf-8 -*- # Copyright 2016 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
29.345455
74
0.71995
91448408f547e27b655689b744e541aa90a78293
1,073
py
Python
scripts/vdot-to-time-coefficients.py
CurtisThompson/VDOT-Calculator
a4a8f7e0fa7ee3d9588fd8f111fc6b39a5f0f529
[ "MIT" ]
null
null
null
scripts/vdot-to-time-coefficients.py
CurtisThompson/VDOT-Calculator
a4a8f7e0fa7ee3d9588fd8f111fc6b39a5f0f529
[ "MIT" ]
null
null
null
scripts/vdot-to-time-coefficients.py
CurtisThompson/VDOT-Calculator
a4a8f7e0fa7ee3d9588fd8f111fc6b39a5f0f529
[ "MIT" ]
null
null
null
from helper import load_times, str_time_to_num_time import numpy as np import pandas as pd import matplotlib.pyplot as plt from sklearn.linear_model import LinearRegression # Load data df = load_times() for col in df.columns[1:]: df[col] = df[col].apply(lambda x: str_time_to_num_time(x)) # Create VDOT powers df[...
32.515152
106
0.662628
914493f4736e753031c4b43b431e08be8dca5cf8
4,821
py
Python
tensorflow/contrib/labeled_tensor/python/ops/sugar.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tensorflow/contrib/labeled_tensor/python/ops/sugar.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tensorflow/contrib/labeled_tensor/python/ops/sugar.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.522727
80
0.67766
9144aef58173ea4b8d7cb0279cffc20c399ad212
389
py
Python
tests/transforms/test_Solarize.py
Tekrific/lightly
75a1d56b4cee77f68e0f3166e3a412711d0dbb2d
[ "MIT" ]
1,515
2020-10-05T13:04:17.000Z
2022-03-31T16:14:55.000Z
tests/transforms/test_Solarize.py
Tekrific/lightly
75a1d56b4cee77f68e0f3166e3a412711d0dbb2d
[ "MIT" ]
628
2020-10-14T11:38:51.000Z
2022-03-31T14:40:54.000Z
tests/transforms/test_Solarize.py
Tekrific/lightly
75a1d56b4cee77f68e0f3166e3a412711d0dbb2d
[ "MIT" ]
108
2020-10-17T08:31:06.000Z
2022-03-20T16:44:22.000Z
import unittest from PIL import Image from lightly.transforms.solarize import RandomSolarization class TestRandomSolarization(unittest.TestCase): def test_on_pil_image(self): for w in [32,64,128]: for h in [32,64,128]: solarization = RandomSolarization(0.5) sa...
25.933333
58
0.634961
9144d673f3f04a14d06b09dd458a055512d667ca
936
py
Python
setup.py
kemingy/flaskerk
4d29761a876a267a48946d318efbfdcdcdf95806
[ "MIT" ]
25
2019-08-20T10:34:41.000Z
2021-06-01T07:48:14.000Z
setup.py
assem-ch/flaskerk
3d348b8f081623545064b768c2b3679b9a06acbd
[ "MIT" ]
10
2019-08-28T11:21:30.000Z
2020-01-14T09:57:07.000Z
setup.py
assem-ch/flaskerk
3d348b8f081623545064b768c2b3679b9a06acbd
[ "MIT" ]
5
2019-10-03T10:23:49.000Z
2020-03-03T09:01:44.000Z
from setuptools import setup, find_packages from os import path from io import open here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: readme = f.read() with open(path.join(here, 'requirements.txt'), encoding='utf-8') as f: requires = [req.strip() for...
24.631579
70
0.646368
9144f912ad09dc6af825ada4fd625adf679a39a9
2,977
py
Python
modules/dbnd/test_dbnd/utils/test_api_client.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
224
2020-01-02T10:46:37.000Z
2022-03-02T13:54:08.000Z
modules/dbnd/test_dbnd/utils/test_api_client.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
16
2020-03-11T09:37:58.000Z
2022-01-26T10:22:08.000Z
modules/dbnd/test_dbnd/utils/test_api_client.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
24
2020-03-24T13:53:50.000Z
2022-03-22T11:55:18.000Z
from contextlib import contextmanager from unittest import TestCase from unittest.mock import MagicMock, call, patch import mock import requests from dbnd._core.utils.http.retry_policy import LinearRetryPolicy from dbnd.utils.api_client import ApiClient class TestApiClient(TestCase): base_url = "http://does-not...
34.218391
83
0.628149
914517ac9482d0dcfde5a747635dbd2626787a52
436
py
Python
main/migrations/0039_auto_20170926_1634.py
OKThess/website
3d5a2a125bfb48179937b058aa7180b751eb2b43
[ "MIT" ]
5
2017-08-25T16:37:18.000Z
2019-02-25T18:26:37.000Z
main/migrations/0039_auto_20170926_1634.py
OKThess/website
3d5a2a125bfb48179937b058aa7180b751eb2b43
[ "MIT" ]
43
2017-01-22T23:58:43.000Z
2018-05-17T21:35:16.000Z
main/migrations/0039_auto_20170926_1634.py
OKThess/website
3d5a2a125bfb48179937b058aa7180b751eb2b43
[ "MIT" ]
2
2017-11-05T08:36:02.000Z
2017-12-22T17:37:19.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-09-26 16:34 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('main', '0038_auto_20170926_1624'), ] operations = [ migrations.RenameField( ...
20.761905
48
0.612385
9145521b2d74a40bc5cebad67c45eaae786f2fa8
102
py
Python
tests/integration/sitecustomize.py
PaulStaggs/signalfx-python-tracing
0f704f86d25824cb9fac306f5b2132fe913aaf87
[ "Apache-2.0" ]
null
null
null
tests/integration/sitecustomize.py
PaulStaggs/signalfx-python-tracing
0f704f86d25824cb9fac306f5b2132fe913aaf87
[ "Apache-2.0" ]
null
null
null
tests/integration/sitecustomize.py
PaulStaggs/signalfx-python-tracing
0f704f86d25824cb9fac306f5b2132fe913aaf87
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2019 SignalFx. All rights reserved. import sys sys.modules['my_altered_site'] = True
20.4
51
0.754902
91456b54767f3f368bef9c19335f0e542bdc4bb1
71,653
py
Python
netmiko/base_connection.py
Rawrroar/netmiko
5477580e168f79571920b61e718d0a8781b39dbb
[ "MIT" ]
null
null
null
netmiko/base_connection.py
Rawrroar/netmiko
5477580e168f79571920b61e718d0a8781b39dbb
[ "MIT" ]
null
null
null
netmiko/base_connection.py
Rawrroar/netmiko
5477580e168f79571920b61e718d0a8781b39dbb
[ "MIT" ]
null
null
null
""" Base connection class for netmiko Handles SSH connection and methods that are generically applicable to different platforms (Cisco and non-Cisco). Also defines methods that should generally be supported by child classes """ import io import re import socket import telnetlib import time from collections import deq...
38.214933
100
0.609116
9145cdb11f41fa0b079e7cf99cac60b8bafa85cf
6,272
py
Python
DL/utils/logger.py
xdr940/NPMCM2020
dba9d943e83eb94ec816bfd972e28274d7c45cee
[ "MIT" ]
null
null
null
DL/utils/logger.py
xdr940/NPMCM2020
dba9d943e83eb94ec816bfd972e28274d7c45cee
[ "MIT" ]
null
null
null
DL/utils/logger.py
xdr940/NPMCM2020
dba9d943e83eb94ec816bfd972e28274d7c45cee
[ "MIT" ]
null
null
null
from blessings import Terminal from progressbar import ProgressBar import progressbar import sys import time from random import random def time_formate(sec): if sec>3600: sec = int(sec) h = int(sec / 3600) lm = sec % 3600 m = int(lm / 60) s = lm % 60 ret = '{} h {}...
27.508772
120
0.537628
9145d74da5c33555fa984e344513302fa6af59fe
8,163
py
Python
reports/views.py
tiagocordeiro/zumaq-partners
ba2c5d4257438ec062ef034096cd203efe58ef4a
[ "MIT" ]
1
2019-02-13T11:01:25.000Z
2019-02-13T11:01:25.000Z
reports/views.py
tiagocordeiro/zumaq-partners
ba2c5d4257438ec062ef034096cd203efe58ef4a
[ "MIT" ]
619
2018-11-26T06:11:05.000Z
2022-03-31T22:56:13.000Z
reports/views.py
tiagocordeiro/zumaq-partners
ba2c5d4257438ec062ef034096cd203efe58ef4a
[ "MIT" ]
1
2020-03-12T16:34:13.000Z
2020-03-12T16:34:13.000Z
import csv from datetime import datetime import xlwt from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User from django.http import HttpResponse from django.shortcuts import render, redirect from django.utils.encoding import smart_str from core.models import UserProfile ...
33.182927
118
0.644861