hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
14fff5972a7592d8c461ab673a18eb68705810e3
2,884
py
Python
tournament-battle.py
oyasumi-asap/pokemon-swsh-scripts
35684a03b652eb6744a681b95a9798389a499e65
[ "MIT" ]
1
2019-12-31T02:53:04.000Z
2019-12-31T02:53:04.000Z
tournament-battle.py
oyasumi-asap/pokemon-swsh-scripts
35684a03b652eb6744a681b95a9798389a499e65
[ "MIT" ]
null
null
null
tournament-battle.py
oyasumi-asap/pokemon-swsh-scripts
35684a03b652eb6744a681b95a9798389a499e65
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import serial import time from time import sleep import datetime import random parser = argparse.ArgumentParser() parser.add_argument('port') parser.add_argument('--fight_time', type=int, default=150) args = parser.parse_args() dt = datetime.datetime def send(msg, duration=0): ...
20.167832
92
0.449723
53e7df65480b1ebee186419ce9b473429d086128
29,415
py
Python
lib/python3.9/site-packages/pip/_internal/commands/install.py
ichomchom/Twitter-Media-Downloader
8287e0c4d034a8ae83422a623ee1049a3b7150a8
[ "MIT" ]
1
2020-08-07T16:09:57.000Z
2020-08-07T16:09:57.000Z
lib/python3.9/site-packages/pip/_internal/commands/install.py
ichomchom/Twitter-Media-Downloader
8287e0c4d034a8ae83422a623ee1049a3b7150a8
[ "MIT" ]
2
2021-05-12T06:25:57.000Z
2022-03-01T04:16:03.000Z
env/lib/python3.9/site-packages/pip/_internal/commands/install.py
simotwo/AbileneParadox-ddd
c85961efb37aba43c0d99ed1c36d083507e2b2d3
[ "MIT" ]
null
null
null
from __future__ import absolute_import import errno import logging import operator import os import shutil import site import sys from os import path from optparse import SUPPRESS_HELP from pip._vendor import pkg_resources from pip._vendor.packaging.utils import canonicalize_name from pip._internal.cache import Whee...
37.519133
79
0.587455
905fd07e934c1dc2a4d67a005c69a32637e38606
987
py
Python
nuapp/src/parseCacheConfig.py
dasebe/robinhoodcache
c94801d833525b49e1f1e78e6ca2c13f1289f371
[ "BSD-3-Clause" ]
76
2018-10-08T18:24:04.000Z
2022-03-22T03:39:24.000Z
nuapp/src/parseCacheConfig.py
utkarsh39/robinhoodcache
be7c035d1005088ac489a24f73925df20ce9eadb
[ "BSD-3-Clause" ]
3
2018-10-26T17:55:07.000Z
2021-09-22T08:59:23.000Z
nuapp/src/parseCacheConfig.py
utkarsh39/robinhoodcache
be7c035d1005088ac489a24f73925df20ce9eadb
[ "BSD-3-Clause" ]
8
2019-09-17T23:02:13.000Z
2021-05-26T12:33:16.000Z
#!/usr/bin/python2 import json import sys import select from subprocess import Popen import subprocess with open(sys.argv[1]) as df: data = json.load(df) logdir=sys.argv[2] eth0 = sys.argv[3] ports = set([]) procs = {} for i in data: if i["CachePort"] not in ports: startcmd = ["memcached","-v", "-c"...
34.034483
167
0.587639
609348fe29b46fa87eb292f72b62f8a3e1a6985e
4,096
py
Python
bench/widetree.py
crs4/PyTables
02d23d41f714122fd5fd4f7e1063c0b31d1a774b
[ "BSD-3-Clause" ]
1
2020-12-27T13:53:00.000Z
2020-12-27T13:53:00.000Z
bench/widetree.py
mrgloom/PyTables
c30c6f40cd3d5996ee711d5685328085f3569cfc
[ "BSD-3-Clause" ]
null
null
null
bench/widetree.py
mrgloom/PyTables
c30c6f40cd3d5996ee711d5685328085f3569cfc
[ "BSD-3-Clause" ]
null
null
null
import hotshot, hotshot.stats import unittest import os import tempfile from tables import * verbose = 0 class WideTreeTestCase(unittest.TestCase): """Checks for maximum number of childs for a Group. """ def test00_Leafs(self): """Checking creation of large number of leafs (1024) per group ...
32
80
0.551514
02ab8357387b889506a19a52bfb3f7781a03b30d
497
py
Python
tests/src/year2021/test_day13a.py
lancelote/advent_of_code
06dda6ca034bc1e86addee7798bb9b2a34ff565b
[ "Unlicense" ]
10
2017-12-11T17:54:52.000Z
2021-12-09T20:16:30.000Z
tests/src/year2021/test_day13a.py
lancelote/advent_of_code
06dda6ca034bc1e86addee7798bb9b2a34ff565b
[ "Unlicense" ]
260
2015-12-09T11:03:03.000Z
2021-12-12T14:32:23.000Z
tests/src/year2021/test_day13a.py
lancelote/advent_of_code
06dda6ca034bc1e86addee7798bb9b2a34ff565b
[ "Unlicense" ]
null
null
null
"""2021 - Day 13 Part 1: Transparent Origami.""" from textwrap import dedent from src.year2021.day13a import solve def test_solve(): task = dedent( """ 6,10 0,14 9,10 0,3 10,4 4,11 6,0 6,12 4,1 0,13 10,12 3,4 ...
14.617647
48
0.408451
20f8b2be4fb3f60eaa2045a41099a27aee5edaf8
5,440
py
Python
quadis/cli.py
BottomNotch/Quadis
66d8d5d302ccd8691a507fcbd35b4d3097411457
[ "BSD-3-Clause" ]
null
null
null
quadis/cli.py
BottomNotch/Quadis
66d8d5d302ccd8691a507fcbd35b4d3097411457
[ "BSD-3-Clause" ]
null
null
null
quadis/cli.py
BottomNotch/Quadis
66d8d5d302ccd8691a507fcbd35b4d3097411457
[ "BSD-3-Clause" ]
null
null
null
'''the click based CLI''' from datetime import datetime from quadis import main import click # pas a dictionary to sub-commands pass_config = click.make_pass_decorator(dict, ensure=True) def set_date(): '''prompts user to set the last used date of the card''' last_used_month = click.prompt('please enter a mon...
37.260274
93
0.604044
29a6420fb34b15b91af8ba84f88df50f48df2ec7
8,709
py
Python
bigml/tests/world.py
jaor/python
35f69d2f3121f1b3dde43495cf145d4992796ad5
[ "Apache-2.0" ]
137
2015-01-12T06:04:10.000Z
2022-03-06T21:00:04.000Z
bigml/tests/world.py
jaor/python
35f69d2f3121f1b3dde43495cf145d4992796ad5
[ "Apache-2.0" ]
78
2015-01-13T18:28:51.000Z
2022-03-04T19:18:28.000Z
bigml/tests/world.py
jaor/python
35f69d2f3121f1b3dde43495cf145d4992796ad5
[ "Apache-2.0" ]
144
2015-01-16T06:13:33.000Z
2022-03-29T17:53:16.000Z
# -*- coding: utf-8 -*- # # Copyright 2015-2021 BigML # # 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 ...
32.136531
80
0.578827
0b58494d4886044e6d1c08e0d8f3b37ab0ac4498
93
py
Python
Competitive Programming/ICPC/2018/Sub-Regionals/D (Desvendando Monty Hall)/D.py
NelsonGomesNeto/ProgramC
e743b1b869f58f7f3022d18bac00c5e0b078562e
[ "MIT" ]
3
2018-12-18T13:39:42.000Z
2021-06-23T18:05:18.000Z
Competitive Programming/ICPC/2018/Sub-Regionals/D (Desvendando Monty Hall)/D.py
NelsonGomesNeto/ProgramC
e743b1b869f58f7f3022d18bac00c5e0b078562e
[ "MIT" ]
1
2018-11-02T21:32:40.000Z
2018-11-02T22:47:12.000Z
Competitive Programming/ICPC/2018/Sub-Regionals/D (Desvendando Monty Hall)/D.py
NelsonGomesNeto/ProgramC
e743b1b869f58f7f3022d18bac00c5e0b078562e
[ "MIT" ]
6
2018-10-27T14:07:52.000Z
2019-11-14T13:49:29.000Z
n, ans = int(input()), 0 for i in range(n): a = int(input()) ans += a != 1 print(ans)
18.6
24
0.505376
6c985dea217b36c51724c357a88094981d1d015f
2,466
py
Python
scape/__init__.py
ska-sa/scape
0909436b1d5ab0b068106e0479e95a3089e1c840
[ "BSD-3-Clause" ]
null
null
null
scape/__init__.py
ska-sa/scape
0909436b1d5ab0b068106e0479e95a3089e1c840
[ "BSD-3-Clause" ]
1
2021-06-21T23:30:52.000Z
2021-06-22T12:49:30.000Z
scape/__init__.py
ska-sa/scape
0909436b1d5ab0b068106e0479e95a3089e1c840
[ "BSD-3-Clause" ]
null
null
null
"""The Single-dish Continuum Analysis PackagE.""" import logging as _logging # Setup library logger and add a print-like handler used when no logging is configured class _NoConfigFilter(_logging.Filter): """Filter which only allows event if top-level logging is not configured.""" def filter(self, record): ...
37.938462
87
0.686131
7fd0c4c91dfd910e13aef198fd2a3a760fc68a89
2,881
py
Python
simprod-scripts/resources/scripts/startingmuon.py
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
1
2020-12-24T22:00:01.000Z
2020-12-24T22:00:01.000Z
simprod-scripts/resources/scripts/startingmuon.py
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
null
null
null
simprod-scripts/resources/scripts/startingmuon.py
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
3
2020-07-17T09:20:29.000Z
2021-03-30T16:44:18.000Z
#!/usr/bin/env python """ IceProd Module for Simple Muon Production """ import os,sys from os.path import expandvars import logging import argparse from I3Tray import I3Units, I3Tray from icecube import icetray, dataio, dataclasses from icecube.simprod.util import simprodtray, arguments from icecube.simprod.util.sim...
30.326316
79
0.633114
19a99687e41e4b176f628ad780d7a397e470913c
11,942
py
Python
nova/compute/flavors.py
NeCTAR-RC/nova
6176fe1ca5ab080cb90fa174e952949788853234
[ "Apache-2.0" ]
1
2015-02-26T03:23:49.000Z
2015-02-26T03:23:49.000Z
nova/compute/flavors.py
NeCTAR-RC/nova
6176fe1ca5ab080cb90fa174e952949788853234
[ "Apache-2.0" ]
null
null
null
nova/compute/flavors.py
NeCTAR-RC/nova
6176fe1ca5ab080cb90fa174e952949788853234
[ "Apache-2.0" ]
2
2015-06-17T13:24:55.000Z
2015-10-27T05:28:38.000Z
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # Copyright (c) 2010 Citrix Systems, Inc. # Copyright 2011 Ken Pepple # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use t...
34.614493
79
0.672668
87963fbf362d08c769f5a1428eb14b20cabd7944
2,345
py
Python
mandelbrot/mandelbrot.py
gabrielthecruz/mandelbrot-set
7109d858c9ffc4e0fd6ac1a7fbf5f6b95ea30fe7
[ "MIT" ]
null
null
null
mandelbrot/mandelbrot.py
gabrielthecruz/mandelbrot-set
7109d858c9ffc4e0fd6ac1a7fbf5f6b95ea30fe7
[ "MIT" ]
null
null
null
mandelbrot/mandelbrot.py
gabrielthecruz/mandelbrot-set
7109d858c9ffc4e0fd6ac1a7fbf5f6b95ea30fe7
[ "MIT" ]
null
null
null
from itertools import product from PIL import Image import numpy as np import math class Point: def __init__(self, x, y): self.x = x self.y = y def __iter__(self): return iter([self.x, self.y]) class Pixel(Point): pass class Coordinate(Point): pass def coordinates(min_x,...
23.928571
79
0.588486
5705da28a7d25a72b44cdb1610c72f387feb453d
13,164
py
Python
tests/test_metrics/test_losses.py
Naoki-Wake/mmaction2
a2032605db82509744a18d993c94a06feb1efd15
[ "Apache-2.0" ]
648
2021-06-24T19:33:09.000Z
2022-03-31T06:27:24.000Z
tests/test_metrics/test_losses.py
jayleicn/mmaction2-1
0a6fde1abb8403f1f68b568f5b4694c6f828e27e
[ "Apache-2.0" ]
53
2021-07-01T03:07:52.000Z
2022-03-27T16:15:29.000Z
tests/test_metrics/test_losses.py
jayleicn/mmaction2-1
0a6fde1abb8403f1f68b568f5b4694c6f828e27e
[ "Apache-2.0" ]
117
2021-06-25T01:22:32.000Z
2022-03-31T08:33:55.000Z
import numpy as np import pytest import torch import torch.nn as nn import torch.nn.functional as F from mmcv import ConfigDict from numpy.testing import assert_almost_equal, assert_array_almost_equal from torch.autograd import Variable from mmaction.models import (BCELossWithLogits, BinaryLogisticRegressionLoss, ...
39.650602
98
0.649802
1773603e790d073c1934cfbecf8a8afc7a7e0c6f
11,858
py
Python
S4/S4 Library/simulation/open_street_director/open_street_director.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Library/simulation/open_street_director/open_street_director.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Library/simulation/open_street_director/open_street_director.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
from build_buy import load_conditional_objects from conditional_layers.conditional_layer_service import ConditionalLayerRequestSpeedType from date_and_time import TimeSpan, create_time_span from default_property_stream_reader import DefaultPropertyStreamReader from objects.client_object_mixin import ClientObjectMixin f...
61.440415
2,770
0.730477
2a305c52731534ebe77b071e5f2df4daf6fe87c3
1,078
py
Python
hproxy/utils/log.py
howie6879/hproxy
bb862569ca3ffad4d01d08c0ba5b2d9b2521f5e7
[ "MIT" ]
61
2018-04-08T10:42:39.000Z
2022-02-24T08:57:25.000Z
hproxy/utils/log.py
howie6879/hproxy
bb862569ca3ffad4d01d08c0ba5b2d9b2521f5e7
[ "MIT" ]
5
2018-04-13T01:00:26.000Z
2021-12-13T19:41:59.000Z
hproxy/utils/log.py
howie6879/hproxy
bb862569ca3ffad4d01d08c0ba5b2d9b2521f5e7
[ "MIT" ]
18
2018-04-08T10:42:44.000Z
2021-12-02T05:40:47.000Z
#!/usr/bin/env python """ Created by howie.hu at 06/04/2018. """ import logging import colorama from colorama import Fore, Style colorama.init(autoreset=True) class Logger: """ Token from https://github.com/gaojiuli/toapi/blob/master/toapi/log.py """ def __init__(self, name, level=logging.DEBUG):...
26.95
97
0.617811
facca6cca07110023e4394e5f5890dbcfd57738c
18,987
py
Python
venv/Lib/site-packages/pygments/lexers/erlang.py
star10919/drf
77c005794087484d72ffc0d76612a6ac9845821e
[ "BSD-3-Clause" ]
9
2019-05-29T23:50:28.000Z
2021-01-29T20:51:05.000Z
venv/Lib/site-packages/pygments/lexers/erlang.py
star10919/drf
77c005794087484d72ffc0d76612a6ac9845821e
[ "BSD-3-Clause" ]
5
2021-02-27T21:31:47.000Z
2021-04-05T21:49:38.000Z
marlinkpy/venv/Lib/site-packages/pygments/lexers/erlang.py
amilinovic/Test
4cfdc12a0efeebd636c4982ef90dad65a63b842b
[ "MIT" ]
3
2021-01-31T16:40:52.000Z
2021-08-29T18:32:34.000Z
# -*- coding: utf-8 -*- """ pygments.lexers.erlang ~~~~~~~~~~~~~~~~~~~~~~ Lexers for Erlang. :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from pygments.lexer import Lexer, RegexLexer, bygroups, words, do_insertions, \ ...
35.757062
96
0.469216
56dc2f59c2971136e1977ce03ce6132111755e89
8,642
py
Python
DFP/multi_experiment.py
kaiolae/tf_future_prediction
e06549e02c10cd957f8b0e51f24c9df2702d7ef0
[ "MIT" ]
null
null
null
DFP/multi_experiment.py
kaiolae/tf_future_prediction
e06549e02c10cd957f8b0e51f24c9df2702d7ef0
[ "MIT" ]
null
null
null
DFP/multi_experiment.py
kaiolae/tf_future_prediction
e06549e02c10cd957f8b0e51f24c9df2702d7ef0
[ "MIT" ]
null
null
null
from __future__ import print_function import numpy as np from .future_target_maker import FutureTargetMaker from .multi_doom_simulator import MultiDoomSimulator from .multi_experience_memory import MultiExperienceMemory from .future_predictor_agent_basic import FuturePredictorAgentBasic from .future_predictor_agent_adv...
61.29078
233
0.693127
cbb61b1d370b4dc74d0319b3b605be5dd9078dc9
4,158
py
Python
configs/GA_CONF-ddp.py
jeffhancock/GlobusArchiver
f1e3775dd8eb32eed511eb410b5d91ac428e06f2
[ "Apache-2.0" ]
3
2019-06-12T15:30:08.000Z
2022-03-02T20:32:30.000Z
configs/GA_CONF-ddp.py
jeffhancock/GlobusArchiver
f1e3775dd8eb32eed511eb410b5d91ac428e06f2
[ "Apache-2.0" ]
38
2019-09-06T19:49:25.000Z
2021-06-23T20:56:40.000Z
configs/GA_CONF-ddp.py
jeffhancock/GlobusArchiver
f1e3775dd8eb32eed511eb410b5d91ac428e06f2
[ "Apache-2.0" ]
3
2019-07-19T19:16:16.000Z
2019-12-06T00:22:19.000Z
#!/usr/bin/env python ###################################### # GLOBUS CONFIGURATION ###################################### # Imports used in the configuration file import os import socket import datetime ##################################### ## GENERAL CONFIGURATION ##################################### ...
33.804878
122
0.638769
9fc0b409e90eafdfdb084736316bba4cccb012ad
990
py
Python
tests/td_cfgtemplate.py
sandeep-gh/justpy-chartjs
0a37e8dc6f6783b7847a744a7cb24cfd124b2787
[ "MIT" ]
4
2021-08-09T17:11:55.000Z
2022-02-24T10:45:17.000Z
tests/td_cfgtemplate.py
sandeep-gh/justpy-chartjs
0a37e8dc6f6783b7847a744a7cb24cfd124b2787
[ "MIT" ]
null
null
null
tests/td_cfgtemplate.py
sandeep-gh/justpy-chartjs
0a37e8dc6f6783b7847a744a7cb24cfd124b2787
[ "MIT" ]
null
null
null
from dpath.util import set as dset from dpath.util import get as dget from addict import Dict from justpy_chartjs.tags import cfg_template as ct import json import jsbeautifier opts = jsbeautifier.default_options() opts.indent_size = 2 labels = ["ds1", "ds2", "ds3", "ds4", "ds5"] datavals = [[{'x': 1, 'y': 3}, {'x': ...
28.285714
53
0.565657
f47dc9e84e76991f2cbe904b05b7a7efe095dead
1,985
py
Python
leetcode/reverse_string.py
julianespinel/trainning
23e07c954e5bf03f1cd117e388eed7da4a3e8f63
[ "MIT" ]
null
null
null
leetcode/reverse_string.py
julianespinel/trainning
23e07c954e5bf03f1cd117e388eed7da4a3e8f63
[ "MIT" ]
null
null
null
leetcode/reverse_string.py
julianespinel/trainning
23e07c954e5bf03f1cd117e388eed7da4a3e8f63
[ "MIT" ]
null
null
null
""" # Problem statement https://leetcode.com/explore/interview/card/top-interview-questions-easy/127/strings/879/ ## Algorithm description Traverse the given input until the middle of it. Swap the extremes of the input until reach the middle of it. Example: input = "abcde" len(input) = 5 middle = ceil(5 / 3) = 3 ...
20.463918
127
0.617128
d335fec9fd0f784ce9de8f34a5f4cce30b2985ac
53,327
py
Python
src/sage/geometry/toric_lattice.py
fredstro/sage
c936d2cda81ec7ec3552a3bdb29c994b40d1bb24
[ "BSL-1.0" ]
null
null
null
src/sage/geometry/toric_lattice.py
fredstro/sage
c936d2cda81ec7ec3552a3bdb29c994b40d1bb24
[ "BSL-1.0" ]
null
null
null
src/sage/geometry/toric_lattice.py
fredstro/sage
c936d2cda81ec7ec3552a3bdb29c994b40d1bb24
[ "BSL-1.0" ]
null
null
null
r""" Toric lattices This module was designed as a part of the framework for toric varieties (:mod:`~sage.schemes.toric.variety`, :mod:`~sage.schemes.toric.fano_variety`). All toric lattices are isomorphic to `\ZZ^n` for some `n`, but will prevent you from doing "wrong" operations with objects from different lattices....
30.026464
109
0.545052
2c00064119768675ea707da0bdd0be6149e957a1
281
py
Python
idea/admin.py
andreyrobota/AndreyKosinskiy
6258c4e90de791f721093545ec3cd9a9569155f2
[ "MIT" ]
null
null
null
idea/admin.py
andreyrobota/AndreyKosinskiy
6258c4e90de791f721093545ec3cd9a9569155f2
[ "MIT" ]
null
null
null
idea/admin.py
andreyrobota/AndreyKosinskiy
6258c4e90de791f721093545ec3cd9a9569155f2
[ "MIT" ]
null
null
null
from django.contrib import admin from idea.models import IdeaUser # Register your models here. class IdeaAdmin(admin.ModelAdmin): fields=['idea_name','idea_text','idea_rank',]# list_display = ("idea_name","idea_text","idea_rank") admin.site.register(IdeaUser,IdeaAdmin)
25.545455
56
0.758007
deb4fcad32d5b76666d88743a107d115e6a5557c
31,880
py
Python
testing/path/test_local.py
mathstuf/pytest-py
a1ce2aa461ce83e03fa99a69b0d93a6594458726
[ "MIT" ]
null
null
null
testing/path/test_local.py
mathstuf/pytest-py
a1ce2aa461ce83e03fa99a69b0d93a6594458726
[ "MIT" ]
null
null
null
testing/path/test_local.py
mathstuf/pytest-py
a1ce2aa461ce83e03fa99a69b0d93a6594458726
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import with_statement import time import py import pytest import os, sys from py.path import local import common failsonjython = py.test.mark.xfail("sys.platform.startswith('java')") failsonjywin32 = py.test.mark.xfail("sys.platform.startswith('java') " "and getattr(os,...
34.539545
80
0.59473
00fb5f06fb30ecac12fa94455856c39c2dcb72ad
6,862
py
Python
models/resnetv2.py
XH-B/attention-feature-distillation
aaab9f63da1b27fd25a1b75b8844b3b66cbc9d82
[ "Apache-2.0" ]
53
2021-02-09T13:19:27.000Z
2022-03-24T05:55:05.000Z
models/resnetv2.py
XH-B/attention-feature-distillation
aaab9f63da1b27fd25a1b75b8844b3b66cbc9d82
[ "Apache-2.0" ]
2
2021-04-12T06:44:43.000Z
2021-09-01T15:43:50.000Z
models/resnetv2.py
XH-B/attention-feature-distillation
aaab9f63da1b27fd25a1b75b8844b3b66cbc9d82
[ "Apache-2.0" ]
12
2021-02-09T07:41:07.000Z
2022-02-10T04:30:54.000Z
# Attention-based Feature-level Distillation # Original Source : https://github.com/HobbitLong/RepDistiller '''ResNet in PyTorch. For Pre-activation ResNet, see 'preact_resnet.py'. Reference: [1] Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun Deep Residual Learning for Image Recognition. arXiv:1512.03385 ''' im...
34.656566
106
0.594433
22ef0eb1aec13245aab4ee1d767d6c84f622099d
13,409
py
Python
trace/google/cloud/gapic/trace/v1/trace_service_client.py
rodrigodias27/google-cloud-python
7d1161f70744c0dbbe67a3f472ea95667eaafe50
[ "Apache-2.0" ]
1
2021-01-04T11:40:17.000Z
2021-01-04T11:40:17.000Z
trace/google/cloud/gapic/trace/v1/trace_service_client.py
rodrigodias27/google-cloud-python
7d1161f70744c0dbbe67a3f472ea95667eaafe50
[ "Apache-2.0" ]
null
null
null
trace/google/cloud/gapic/trace/v1/trace_service_client.py
rodrigodias27/google-cloud-python
7d1161f70744c0dbbe67a3f472ea95667eaafe50
[ "Apache-2.0" ]
null
null
null
# Copyright 2017, Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
43.115756
159
0.63875
1a15ceab92b6ddfa7e8102a5aa88e686706f7bdc
4,408
py
Python
tests/test_areas_item.py
jvm986/podio-py
a48924c4aa4c30dfafdcacd228f512b930b31ee9
[ "MIT" ]
32
2015-02-02T14:45:01.000Z
2021-09-22T21:01:23.000Z
tests/test_areas_item.py
jvm986/podio-py
a48924c4aa4c30dfafdcacd228f512b930b31ee9
[ "MIT" ]
15
2015-03-19T16:00:27.000Z
2022-03-30T22:18:27.000Z
tests/test_areas_item.py
jvm986/podio-py
a48924c4aa4c30dfafdcacd228f512b930b31ee9
[ "MIT" ]
45
2015-01-06T11:21:54.000Z
2022-03-27T00:25:48.000Z
#!/usr/bin/env python """ Unit tests for pypodio2.areas.Item (via pypodio2.client.Client). Works by mocking httplib2, and making assertions about how pypodio2 calls it. """ import json from mock import Mock from nose.tools import eq_ from tests.utils import check_client_method, get_client_and_http, URL_BASE def te...
29.192053
79
0.591198
eecd67f2530a2b1cb529443b305ec215432dadb3
303
py
Python
data/multilingual/Latn.TGL/Mono_16/pdf_to_json_test_Latn.TGL_Mono_16.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
1
2021-09-19T19:47:35.000Z
2021-09-19T19:47:35.000Z
data/multilingual/Latn.TGL/Mono_16/pdf_to_json_test_Latn.TGL_Mono_16.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
data/multilingual/Latn.TGL/Mono_16/pdf_to_json_test_Latn.TGL_Mono_16.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
import pdf_to_json as p2j import json url = "file:data/multilingual/Latn.TGL/Mono_16/udhr_Latn.TGL_Mono_16.pdf" lConverter = p2j.pdf_to_json.pdf_to_json_converter() lConverter.mImageHashOnly = True lDict = lConverter.convert(url) print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
30.3
73
0.811881
3d50836216d661df16f5f9932dbd9b0d11852588
88
py
Python
test_challenge.py
EstebanFicetti/itec-pp1-challenge
cdc6b17a6ef6a550f7044c3e7caf17cda234af93
[ "MIT" ]
null
null
null
test_challenge.py
EstebanFicetti/itec-pp1-challenge
cdc6b17a6ef6a550f7044c3e7caf17cda234af93
[ "MIT" ]
null
null
null
test_challenge.py
EstebanFicetti/itec-pp1-challenge
cdc6b17a6ef6a550f7044c3e7caf17cda234af93
[ "MIT" ]
null
null
null
from challenge import num_to_str def test_answer(): assert num_to_str(3) == 'tres'
17.6
34
0.727273
6bcf56a2669f6f116305d70c89c6ef911bf10b31
2,816
py
Python
python/test/function/test_softmax_cross_entropy.py
sdonatti/nnabla
ac4a42e62dd358f16bd79c08a9a9f3d83c0100c9
[ "Apache-2.0" ]
1
2020-08-03T12:49:19.000Z
2020-08-03T12:49:19.000Z
python/test/function/test_softmax_cross_entropy.py
langbin2014/nnabla
e94bac5bed65337010e2ac07a5937fb862ab2dd8
[ "Apache-2.0" ]
1
2020-11-09T07:33:29.000Z
2020-11-09T07:33:29.000Z
python/test/function/test_softmax_cross_entropy.py
langbin2014/nnabla
e94bac5bed65337010e2ac07a5937fb862ab2dd8
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 Sony Corporation. 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 applicabl...
35.64557
85
0.652344
71f9a843650fe85ba5609f83b5674078efd5a5c9
2,390
py
Python
tests/confidence_checks/task_checklists/task_suite_test.py
MSLars/allennlp
2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475
[ "Apache-2.0" ]
11,433
2017-06-27T03:08:46.000Z
2022-03-31T18:14:33.000Z
tests/confidence_checks/task_checklists/task_suite_test.py
MSLars/allennlp
2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475
[ "Apache-2.0" ]
4,006
2017-06-26T21:45:43.000Z
2022-03-31T02:11:10.000Z
tests/confidence_checks/task_checklists/task_suite_test.py
MSLars/allennlp
2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475
[ "Apache-2.0" ]
2,560
2017-06-26T21:16:53.000Z
2022-03-30T07:55:46.000Z
import pytest from allennlp.confidence_checks.task_checklists.task_suite import TaskSuite from allennlp.common.testing import AllenNlpTestCase from allennlp.common.checks import ConfigurationError from allennlp.models.archival import load_archive from allennlp.predictors import Predictor from allennlp.common.testing.ch...
37.936508
89
0.714644
02f833d31b8f9c9c177ba44560b8f741c2ceac46
442
py
Python
src/results/migrations/0005_yahoomatchup_updated_result_timestamp.py
sfernandezf/analytics-yahoofantasy
6242599b903e4b8a7f9c56892ba26591a441b8fb
[ "Apache-2.0" ]
null
null
null
src/results/migrations/0005_yahoomatchup_updated_result_timestamp.py
sfernandezf/analytics-yahoofantasy
6242599b903e4b8a7f9c56892ba26591a441b8fb
[ "Apache-2.0" ]
6
2020-03-15T03:32:06.000Z
2022-01-13T03:46:05.000Z
src/results/migrations/0005_yahoomatchup_updated_result_timestamp.py
sfernandezf/analytics-yahoofantasy
6242599b903e4b8a7f9c56892ba26591a441b8fb
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.3 on 2020-07-27 00:23 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('results', '0004_yahoomatchupteamresult_so'), ] operations = [ migrations.AddField( model_name='yahoomatchup', name='...
23.263158
77
0.635747
c5c8832e62ec2944d8a12ba1e83e5b833a5cac26
1,784
py
Python
seriesplugin/src/ShowLogScreen.py
builder07/enigma2-plugins_3
2fc0d26891fba28ebea1550a39f5e8d7973db10c
[ "OLDAP-2.3" ]
2
2020-09-02T18:25:39.000Z
2020-09-02T18:39:07.000Z
seriesplugin/src/ShowLogScreen.py
builder07/enigma2-plugins_3
2fc0d26891fba28ebea1550a39f5e8d7973db10c
[ "OLDAP-2.3" ]
null
null
null
seriesplugin/src/ShowLogScreen.py
builder07/enigma2-plugins_3
2fc0d26891fba28ebea1550a39f5e8d7973db10c
[ "OLDAP-2.3" ]
11
2015-02-26T20:59:14.000Z
2021-09-20T08:23:03.000Z
# -*- coding: utf-8 -*- import os, sys, traceback # Config from Components.config import * from Components.Sources.StaticText import StaticText # Screen from Components.ActionMap import ActionMap from Components.ScrollLabel import ScrollLabel from enigma import eSize, ePoint, getDesktop from Screens.Screen import S...
22.871795
97
0.673206
4ae7a5f725ffbe5d686b01cecea81bee6739b990
568
py
Python
projects/aid_project.py
magicwenli/morpher
2f8e756d81f3fac59c948789e945a06a4d4adce3
[ "MIT" ]
null
null
null
projects/aid_project.py
magicwenli/morpher
2f8e756d81f3fac59c948789e945a06a4d4adce3
[ "MIT" ]
null
null
null
projects/aid_project.py
magicwenli/morpher
2f8e756d81f3fac59c948789e945a06a4d4adce3
[ "MIT" ]
null
null
null
import cv2 import matplotlib.pyplot as plt from PIL import Image def cvt(img): b, g, r = cv2.split(img) return cv2.merge([r, g, b]) img1 = Image.open("pics/fig00001.png") img2 = cv2.imread('pics/fig00003.png', 1) img3 = cv2.imread('pics/fig00004.jpg', 1) img4 = Image.open("pics/fig00002.png") plt.figure("f...
16.705882
41
0.667254
9344e3f6086f39de840c6be7a2b8eabe86bd138a
96
py
Python
pywt/data/__init__.py
SalvoCas/pywt
75b3b7b37102aad27780153b4b0fdaf184b205a4
[ "MIT" ]
1,435
2015-07-29T18:28:27.000Z
2022-03-31T10:16:46.000Z
pywt/data/__init__.py
SalvoCas/pywt
75b3b7b37102aad27780153b4b0fdaf184b205a4
[ "MIT" ]
547
2015-07-29T18:10:15.000Z
2022-03-24T18:42:57.000Z
site-packages/pywt/data/__init__.py
Wristlebane/Pyto
901ac307b68486d8289105c159ca702318bea5b0
[ "MIT" ]
421
2015-07-30T13:08:25.000Z
2022-03-24T11:10:07.000Z
from ._readers import ascent, aero, ecg, camera, nino from ._wavelab_signals import demo_signal
32
53
0.8125
d409e301c133548c35a4658083c87815b2ebd8a6
3,735
py
Python
label_studio_ml/examples/bert/_wsgi.py
arronmabrey/label-studio-ml-backend
9e8728a9aba11b8385e501428b4421c819ef1839
[ "Apache-2.0" ]
null
null
null
label_studio_ml/examples/bert/_wsgi.py
arronmabrey/label-studio-ml-backend
9e8728a9aba11b8385e501428b4421c819ef1839
[ "Apache-2.0" ]
null
null
null
label_studio_ml/examples/bert/_wsgi.py
arronmabrey/label-studio-ml-backend
9e8728a9aba11b8385e501428b4421c819ef1839
[ "Apache-2.0" ]
null
null
null
import os import argparse import logging import logging.config logging.config.dictConfig({ "version": 1, "formatters": { "standard": { "format": "[%(asctime)s] [%(levelname)s] [%(name)s::%(funcName)s::%(lineno)d] %(message)s" } }, "handlers": { "console": { "class": "logging.StreamHandl...
29.409449
105
0.596252
ae0b37e211a1246b11effadfbca34063842a8787
537
py
Python
homeassistant/components/recorder/const.py
danieledwardgeorgehitchcock/core
4cd4fbefbf7142ecf0734fcf6365a034b53ec4ff
[ "Apache-2.0" ]
null
null
null
homeassistant/components/recorder/const.py
danieledwardgeorgehitchcock/core
4cd4fbefbf7142ecf0734fcf6365a034b53ec4ff
[ "Apache-2.0" ]
14
2022-01-26T06:25:32.000Z
2022-03-31T06:27:51.000Z
homeassistant/components/recorder/const.py
letterarrow/home-assistant
8220817d479a101f06fa029b221b2faca496260a
[ "Apache-2.0" ]
null
null
null
"""Recorder constants.""" DATA_INSTANCE = "recorder_instance" SQLITE_URL_PREFIX = "sqlite://" DOMAIN = "recorder" CONF_DB_INTEGRITY_CHECK = "db_integrity_check" MAX_QUEUE_BACKLOG = 30000 # The maximum number of rows (events) we purge in one delete statement # sqlite3 has a limit of 999 until version 3.32.0 # in ht...
26.85
85
0.785847
ecc322251564418c7a23321719718ad770e65213
6,393
py
Python
numpy/typing/tests/data/reveal/ndarray_misc.py
DFEvans/numpy
75567b5b15940d2c09cc309eafb2950504714551
[ "BSD-3-Clause" ]
null
null
null
numpy/typing/tests/data/reveal/ndarray_misc.py
DFEvans/numpy
75567b5b15940d2c09cc309eafb2950504714551
[ "BSD-3-Clause" ]
null
null
null
numpy/typing/tests/data/reveal/ndarray_misc.py
DFEvans/numpy
75567b5b15940d2c09cc309eafb2950504714551
[ "BSD-3-Clause" ]
null
null
null
""" Tests for miscellaneous (non-magic) ``np.ndarray``/``np.generic`` methods. More extensive tests are performed for the methods' function-based counterpart in `../from_numeric.py`. """ import operator from typing import Any import numpy as np class SubClass(np.ndarray): ... f8: np.float64 B: SubClass AR_f8: np....
35.516667
82
0.69451
f8372366460d5b2e92b14c50fb06ae3c9cbba7c5
60,326
py
Python
datamart_isi/entries_old.py
usc-isi-i2/datamart-user-end
b3111d67d3c9a7f69885e44b4645724f9a629c19
[ "MIT" ]
1
2020-09-19T14:51:14.000Z
2020-09-19T14:51:14.000Z
datamart_isi/entries_old.py
usc-isi-i2/datamart-user-end
b3111d67d3c9a7f69885e44b4645724f9a629c19
[ "MIT" ]
null
null
null
datamart_isi/entries_old.py
usc-isi-i2/datamart-user-end
b3111d67d3c9a7f69885e44b4645724f9a629c19
[ "MIT" ]
1
2020-11-06T22:52:30.000Z
2020-11-06T22:52:30.000Z
import pandas as pd # import os import copy import random import frozendict import collections import typing from d3m.container import DataFrame as d3m_DataFrame from d3m.container import Dataset as d3m_Dataset import d3m.metadata.base as metadata_base # from datamart.dataset import Dataset from datamart.utilities.util...
48.145251
217
0.613782
87aea42aac9ef372d8bb66bf1c102808381cbbb3
103
py
Python
auto_funcs/symptoms.py
rhysrushton/testauto
9c32f40640f58703a0d063afbb647855fb680a61
[ "MIT" ]
null
null
null
auto_funcs/symptoms.py
rhysrushton/testauto
9c32f40640f58703a0d063afbb647855fb680a61
[ "MIT" ]
null
null
null
auto_funcs/symptoms.py
rhysrushton/testauto
9c32f40640f58703a0d063afbb647855fb680a61
[ "MIT" ]
null
null
null
from random import randrange def symptoms (range): number = randrange(1,range) return number
14.714286
31
0.718447
41c6915ee87037bd3960ce1cb3fba0a14bf4f686
13,131
py
Python
airflow/utils/db.py
RSEnergyGroup/incubator-airflow
e947c6c034238ede29a6c8f51307458d3e40c1b5
[ "Apache-2.0" ]
null
null
null
airflow/utils/db.py
RSEnergyGroup/incubator-airflow
e947c6c034238ede29a6c8f51307458d3e40c1b5
[ "Apache-2.0" ]
1
2018-12-13T10:33:00.000Z
2018-12-13T10:33:00.000Z
airflow/utils/db.py
RSEnergyGroup/incubator-airflow
e947c6c034238ede29a6c8f51307458d3e40c1b5
[ "Apache-2.0" ]
1
2019-06-03T23:15:00.000Z
2019-06-03T23:15:00.000Z
# -*- coding: utf-8 -*- # # 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 #...
35.203753
99
0.572767
c6680ab3dcaa1a65aa0653915c388010e5985e41
3,787
py
Python
projects/robots/abb/irb/controllers/inverse_kinematics/inverse_kinematics.py
SherlockSheep/webots
13bb7f13f15cd1a003b64368b1fd8783732e175e
[ "Apache-2.0" ]
null
null
null
projects/robots/abb/irb/controllers/inverse_kinematics/inverse_kinematics.py
SherlockSheep/webots
13bb7f13f15cd1a003b64368b1fd8783732e175e
[ "Apache-2.0" ]
null
null
null
projects/robots/abb/irb/controllers/inverse_kinematics/inverse_kinematics.py
SherlockSheep/webots
13bb7f13f15cd1a003b64368b1fd8783732e175e
[ "Apache-2.0" ]
null
null
null
# Copyright 1996-2020 Cyberbotics 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 agreed to in...
36.76699
125
0.69633
416b589288ad3cbf3bffa948213ab497f3933ed4
10,477
py
Python
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_system_ha_peer.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_system_ha_peer.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_system_ha_peer.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python from __future__ import absolute_import, division, print_function # Copyright 2019-2021 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the ...
31.557229
153
0.523528
2068031265864629f085fe3327956c69c5a00edc
1,052
py
Python
examples/ignore_errors.py
eddiechapman/XlsxWriter
c636117ab30e64e4b7b824c9105595c42887c2c9
[ "BSD-2-Clause-FreeBSD" ]
2,766
2015-01-02T17:36:42.000Z
2022-03-31T09:23:30.000Z
examples/ignore_errors.py
xiaolanmeng86/XlsxWriter
6c3ea23a410e8216eab8f5751e5544ffb444b3da
[ "BSD-2-Clause-FreeBSD" ]
683
2015-01-03T09:55:02.000Z
2022-03-31T07:18:15.000Z
examples/ignore_errors.py
xiaolanmeng86/XlsxWriter
6c3ea23a410e8216eab8f5751e5544ffb444b3da
[ "BSD-2-Clause-FreeBSD" ]
636
2015-01-05T01:57:08.000Z
2022-03-25T18:42:41.000Z
############################################################################## # # An example of turning off worksheet cells errors/warnings using the # XlsxWriter Python module. # # Copyright 2013-2021, John McNamara, jmcnamara@cpan.org # import xlsxwriter workbook = xlsxwriter.Workbook('ignore_errors.xlsx') workshee...
32.875
78
0.690114
f898a951cc50940f1aad54a6afc6914e812191c1
877
py
Python
kubernetes/test/test_v1_host_alias.py
craigtracey/python
177564c655c0ea3f9cf38e61ca275ef6c6256aab
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_host_alias.py
craigtracey/python
177564c655c0ea3f9cf38e61ca275ef6c6256aab
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_host_alias.py
craigtracey/python
177564c655c0ea3f9cf38e61ca275ef6c6256aab
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.9.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys im...
19.488889
105
0.685291
cce9ec3c6d15526ead6ca7b37d4d1bacfee28ca6
520
py
Python
database.py
sdkskdks/assignment4
a0c9c3e79883504415e17dcfed3f84bfbeca0091
[ "CC0-1.0" ]
null
null
null
database.py
sdkskdks/assignment4
a0c9c3e79883504415e17dcfed3f84bfbeca0091
[ "CC0-1.0" ]
null
null
null
database.py
sdkskdks/assignment4
a0c9c3e79883504415e17dcfed3f84bfbeca0091
[ "CC0-1.0" ]
null
null
null
from flask import Flask from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'postgresql://postgres:<password>@localhost/<database_name>' db = SQLAlchemy(app) class Tableone(db.Model): __tablename__ = 'tableone' id = db.Column(db.Integer, primary_key=True) ...
28.888889
100
0.728846
f8b954ca0bb2a2320eccb54ae6d3c4faeddf3d75
23,561
py
Python
iot/api-client/manager/manager.py
marford5/DA320
d93f8e90c974b24c67f57669d388ae84f705b0ed
[ "Apache-2.0" ]
null
null
null
iot/api-client/manager/manager.py
marford5/DA320
d93f8e90c974b24c67f57669d388ae84f705b0ed
[ "Apache-2.0" ]
null
null
null
iot/api-client/manager/manager.py
marford5/DA320
d93f8e90c974b24c67f57669d388ae84f705b0ed
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
34.85355
79
0.649336
8d6570a892f9bf0c0389683d9f1ca6b7ed36c2b3
1,848
py
Python
client.py
joao-p-marques/drive-throught-p2p
5ec24127d771e50631b105402042aa876c307ba0
[ "MIT" ]
null
null
null
client.py
joao-p-marques/drive-throught-p2p
5ec24127d771e50631b105402042aa876c307ba0
[ "MIT" ]
null
null
null
client.py
joao-p-marques/drive-throught-p2p
5ec24127d771e50631b105402042aa876c307ba0
[ "MIT" ]
null
null
null
# coding: utf-8 import time import pickle import socket import random import logging import argparse logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(name)-15s %(levelname)-8s %(message)s', datefmt='%m-%d %H:%M:%S') def main(port, ring, timeout): # Create ...
27.176471
90
0.617424
e151770b97fe0756af454c466a3c3401f9c7a4cf
998
py
Python
examples/benchmark/simple-vispy.py
MatthieuDartiailh/vispy
09d429be361a148b0614a192f56d4070c624072c
[ "BSD-3-Clause" ]
null
null
null
examples/benchmark/simple-vispy.py
MatthieuDartiailh/vispy
09d429be361a148b0614a192f56d4070c624072c
[ "BSD-3-Clause" ]
null
null
null
examples/benchmark/simple-vispy.py
MatthieuDartiailh/vispy
09d429be361a148b0614a192f56d4070c624072c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (c) 2014, Vispy Development Team. # Distributed under the (new) BSD License. See LICENSE.txt for more info. # ------------------------------------------------------------------------...
27.722222
79
0.518036
cffe710f2f045fc2ddcf3bba85843e26af912a80
1,229
py
Python
magenta/tensor2tensor/t2t_datagen.py
sleep-yearning/magenta
a03a14ef5a691ee9e3d336aa621281028dc5af32
[ "Apache-2.0" ]
1
2020-02-24T06:12:09.000Z
2020-02-24T06:12:09.000Z
magenta/tensor2tensor/t2t_datagen.py
sleep-yearning/magenta
a03a14ef5a691ee9e3d336aa621281028dc5af32
[ "Apache-2.0" ]
null
null
null
magenta/tensor2tensor/t2t_datagen.py
sleep-yearning/magenta
a03a14ef5a691ee9e3d336aa621281028dc5af32
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Magenta Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
30.725
75
0.777868
77ddecb50c5cbd76164a9f111911a43e37d8f20c
1,135
py
Python
30_day_leetcoding_challenge/2020_05/03-Ransom_Note.py
QuenLo/leecode
ce861103949510dc54fd5cb336bd992c40748de2
[ "MIT" ]
6
2018-06-13T06:48:42.000Z
2020-11-25T10:48:13.000Z
30_day_leetcoding_challenge/2020_05/03-Ransom_Note.py
QuenLo/leecode
ce861103949510dc54fd5cb336bd992c40748de2
[ "MIT" ]
null
null
null
30_day_leetcoding_challenge/2020_05/03-Ransom_Note.py
QuenLo/leecode
ce861103949510dc54fd5cb336bd992c40748de2
[ "MIT" ]
null
null
null
class Solution1: def canConstruct(self, ransomNote: str, magazine: str) -> bool: C_r = Counter( ransomNote ) C_m = Counter( magazine ) for r in C_r: if C_r[r] > C_m[r]: return False return True class Solution2: def canCon...
26.395349
67
0.492511
d180caf6766f343a3e3b91684f9bb8883d5a632e
33,908
py
Python
sdk/python/pulumi_azure_native/network/v20201101/virtual_hub.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20201101/virtual_hub.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20201101/virtual_hub.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
49
2,981
0.676625
cfdb76dc28d4af80901f1a1dd7159491439ac789
1,667
py
Python
market_maker/market_maker_runner.py
Quant-Network/sample-market-maker
4c47b60be66b1aead901400ba5fe96abf5e73c1b
[ "Apache-2.0" ]
null
null
null
market_maker/market_maker_runner.py
Quant-Network/sample-market-maker
4c47b60be66b1aead901400ba5fe96abf5e73c1b
[ "Apache-2.0" ]
null
null
null
market_maker/market_maker_runner.py
Quant-Network/sample-market-maker
4c47b60be66b1aead901400ba5fe96abf5e73c1b
[ "Apache-2.0" ]
1
2021-04-27T12:02:41.000Z
2021-04-27T12:02:41.000Z
from __future__ import absolute_import import sys import quant_trading from market_maker.settings import settings from market_maker.utils import log, constants from market_maker.quant_position_manager_strategy import QuantPositionManager from market_maker.quant_position_swinger_strategy import QuantPositionSwinger # ...
39.690476
105
0.759448
012838eb379407f376e1e01a4f232b378edfb8eb
1,545
py
Python
src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2019_02_01/models/container_service_linux_profile.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
2
2021-06-05T17:51:26.000Z
2021-11-17T11:17:56.000Z
src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2019_02_01/models/container_service_linux_profile.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
3
2020-05-27T20:16:26.000Z
2020-07-23T19:46:49.000Z
src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2019_02_01/models/container_service_linux_profile.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
5
2020-09-08T22:46:48.000Z
2020-11-08T14:54:35.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 ...
35.930233
85
0.620065
44787036c585421d76a4561fd2f7792615150b31
6,876
py
Python
RecoEgamma/ElectronIdentification/python/Identification/cutBasedElectronID_PHYS14_PU20bx25_V2_cff.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
RecoEgamma/ElectronIdentification/python/Identification/cutBasedElectronID_PHYS14_PU20bx25_V2_cff.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
RecoEgamma/ElectronIdentification/python/Identification/cutBasedElectronID_PHYS14_PU20bx25_V2_cff.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
from PhysicsTools.SelectorUtils.centralIDRegistry import central_id_registry # Common functions and classes for ID definition are imported here: from RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_tools import * # # This is the first second of PHYS14 cuts, optimized on PHYS14 samples. # # The I...
38.2
125
0.736329
8048a55b32d7fdeed9c75d58e2f6ed55a425814c
8,042
py
Python
nPYc/plotting/_plotSpectralVariance.py
phenomecentre/nPYc-Toolbox
614339d7b1fc7c82e7eaec1bb3710822ca9ca84d
[ "MIT" ]
14
2018-01-23T23:10:40.000Z
2022-02-03T15:15:52.000Z
nPYc/plotting/_plotSpectralVariance.py
phenomecentre/nPYc-Toolbox
614339d7b1fc7c82e7eaec1bb3710822ca9ca84d
[ "MIT" ]
76
2018-01-24T17:37:25.000Z
2022-03-23T14:12:54.000Z
nPYc/plotting/_plotSpectralVariance.py
phenomecentre/nPYc-Toolbox
614339d7b1fc7c82e7eaec1bb3710822ca9ca84d
[ "MIT" ]
11
2018-01-25T11:35:47.000Z
2022-03-07T15:04:02.000Z
import numpy import re import matplotlib as mpl import matplotlib.pyplot as plt import plotly import plotly.graph_objs as go from ..enumerations import VariableType from .. import Dataset, NMRDataset def plotSpectralVariance(dataset, classes=None, quantiles=(25, 75), average='median', xlim=None, logy=False, title=None...
31.661417
308
0.714375
badc58f1b4ff7ee12f0fac34b1cb9a99e6fcca05
2,938
py
Python
visualDet3D/utils/imdb.py
saurav1869/saurav1869-mono3d_road
ae65b705504af0bec33cd86b7cfeef5d8605e159
[ "Apache-2.0" ]
null
null
null
visualDet3D/utils/imdb.py
saurav1869/saurav1869-mono3d_road
ae65b705504af0bec33cd86b7cfeef5d8605e159
[ "Apache-2.0" ]
null
null
null
visualDet3D/utils/imdb.py
saurav1869/saurav1869-mono3d_road
ae65b705504af0bec33cd86b7cfeef5d8605e159
[ "Apache-2.0" ]
null
null
null
import json import pickle import os import threading class IMDB: def __init__(self, imdb_path, frames_size=5000, dump_index=0, size=0, save_method=None, load_method=None): self.imdb_path = imdb_path self._frames = [] self._frames_size = frames_size self._dump_inde...
32.285714
86
0.600068
3f30127053db464d00794f1f5da00d09de240403
32
py
Python
stubbs/defs/colo.py
holy-crust/reclaimer
0aa693da3866ce7999c68d5f71f31a9c932cdb2c
[ "MIT" ]
null
null
null
stubbs/defs/colo.py
holy-crust/reclaimer
0aa693da3866ce7999c68d5f71f31a9c932cdb2c
[ "MIT" ]
null
null
null
stubbs/defs/colo.py
holy-crust/reclaimer
0aa693da3866ce7999c68d5f71f31a9c932cdb2c
[ "MIT" ]
null
null
null
from ...hek.defs.colo import *
16
31
0.65625
f7344479dd36c883ecee3ae2e8ca891b5e378565
4,706
py
Python
unlock/util/runtime.py
NeuralProsthesisLab/unlock
0c4d95abdab288d3e657ca2db867b06f755f26ff
[ "BSD-3-Clause" ]
6
2017-05-05T01:08:55.000Z
2021-08-03T21:50:07.000Z
unlock/util/runtime.py
NeuralProsthesisLab/unlock
0c4d95abdab288d3e657ca2db867b06f755f26ff
[ "BSD-3-Clause" ]
1
2015-05-21T01:02:50.000Z
2015-05-21T16:03:43.000Z
unlock/util/runtime.py
NeuralProsthesisLab/unlock
0c4d95abdab288d3e657ca2db867b06f755f26ff
[ "BSD-3-Clause" ]
4
2015-05-21T12:38:42.000Z
2022-03-28T15:47:58.000Z
# Copyright (c) James Percent, Byron Galbraith and Unlock contributors. # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notic...
39.216667
132
0.68742
7d9f7db905544e2962117c53effea52e3b06c292
8,354
py
Python
src/ychaos/cli/verify.py
vanderh0ff/ychaos
5148c889912b744ee73907e4dd30c9ddb851aeb3
[ "Apache-2.0" ]
8
2021-07-21T15:37:48.000Z
2022-03-03T14:43:09.000Z
src/ychaos/cli/verify.py
vanderh0ff/ychaos
5148c889912b744ee73907e4dd30c9ddb851aeb3
[ "Apache-2.0" ]
102
2021-07-20T16:08:29.000Z
2022-03-25T07:28:37.000Z
src/ychaos/cli/verify.py
vanderh0ff/ychaos
5148c889912b744ee73907e4dd30c9ddb851aeb3
[ "Apache-2.0" ]
8
2021-07-20T13:37:46.000Z
2022-02-18T01:44:52.000Z
# Copyright 2021, Yahoo # Licensed under the terms of the Apache 2.0 license. See the LICENSE file in the project root for terms from abc import ABC from argparse import ArgumentParser, Namespace from pathlib import Path from typing import Any, Optional, Union from pydantic import validate_arguments from ..core.ver...
35.10084
120
0.594087
e678937ffa958feedad60c6818f9966146fc7fd7
229
py
Python
tests/list/list03.py
ktok07b6/polyphony
657c5c7440520db6b4985970bd50547407693ac4
[ "MIT" ]
83
2015-11-30T09:59:13.000Z
2021-08-03T09:12:28.000Z
tests/list/list03.py
jesseclin/polyphony
657c5c7440520db6b4985970bd50547407693ac4
[ "MIT" ]
4
2017-02-10T01:43:11.000Z
2020-07-14T03:52:25.000Z
tests/list/list03.py
jesseclin/polyphony
657c5c7440520db6b4985970bd50547407693ac4
[ "MIT" ]
11
2016-11-18T14:39:15.000Z
2021-02-23T10:05:20.000Z
from polyphony import testbench def list03(x, y, z): a = [1, 2, 3] r0 = x r1 = y a[r0] = a[r1] + z return a[r0] @testbench def test(): assert 4 == list03(0, 1 ,2) assert 5 == list03(2, 1 ,3) test()
14.3125
31
0.515284
646352aaa461f485591782ef3ba1c496aa41e966
330
py
Python
python/reflection.py
MeshFEM/MeshFEM
9b3619fa450d83722879bfd0f5a3fe69d927bd63
[ "MIT" ]
19
2020-10-21T10:05:17.000Z
2022-03-20T13:41:50.000Z
python/reflection.py
MeshFEM/MeshFEM
9b3619fa450d83722879bfd0f5a3fe69d927bd63
[ "MIT" ]
4
2021-01-01T15:58:15.000Z
2021-09-19T03:31:09.000Z
python/reflection.py
MeshFEM/MeshFEM
9b3619fa450d83722879bfd0f5a3fe69d927bd63
[ "MIT" ]
4
2020-10-05T09:01:50.000Z
2022-01-11T03:02:39.000Z
import inspect def hasArg(func, argName): try: return argName in inspect.signature(func).parameters except: # Pybind11 methods/funcs apparently don't support `inspect.signature`, # but at least their arg names are guaranteed to appear in the docstring... :( return argName in fun...
33
86
0.690909
34067c62dd3381b045eefc821641d5bb97c16723
931
py
Python
mars/dataframe/arithmetic/exp.py
hxri/mars
f7864f00911883b94800b63856f0e57648d3d9b4
[ "Apache-2.0" ]
2,413
2018-12-06T09:37:11.000Z
2022-03-30T15:47:39.000Z
mars/dataframe/arithmetic/exp.py
hxri/mars
f7864f00911883b94800b63856f0e57648d3d9b4
[ "Apache-2.0" ]
1,335
2018-12-07T03:06:18.000Z
2022-03-31T11:45:57.000Z
mars/dataframe/arithmetic/exp.py
hxri/mars
f7864f00911883b94800b63856f0e57648d3d9b4
[ "Apache-2.0" ]
329
2018-12-07T03:12:41.000Z
2022-03-29T21:49:57.000Z
# Copyright 1999-2021 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...
33.25
74
0.75188
3115f9c095f6c5419d069eec3e613ceed901cc59
2,743
py
Python
tests/test_utility_indices.py
sirmarcel/cmlk
e099bf3e255b60675e8e1b3ad29db750dbd6faf3
[ "MIT" ]
24
2018-06-22T17:31:20.000Z
2022-03-29T14:52:49.000Z
tests/test_utility_indices.py
sirmarcel/cmlk
e099bf3e255b60675e8e1b3ad29db750dbd6faf3
[ "MIT" ]
8
2019-06-06T14:51:57.000Z
2021-06-30T19:43:13.000Z
tests/test_utility_indices.py
sirmarcel/cmlk
e099bf3e255b60675e8e1b3ad29db750dbd6faf3
[ "MIT" ]
5
2018-07-30T18:53:08.000Z
2022-02-10T09:12:15.000Z
from unittest import TestCase from cmlkit.utility.indices import * class TestFourwaySplit(TestCase): def setUp(self): self.n = 40 self.k_train = 7 self.k_test = 5 self.k_valid = 15 self.a, self.b, self.c, self.d = fourway_split( self.n, self.k_train, self.k_tes...
27.707071
87
0.588407
cc492e5d3f64a2fffbf38742929ba774f90ae95b
598
py
Python
alembic/versions/4713e7ebca9_add_task_status_links.py
Vjrx/airship-drydock
315fb9864e6d55a66d5266f76c160be55d22c98b
[ "Apache-2.0" ]
14
2018-05-19T11:58:22.000Z
2019-05-10T12:31:36.000Z
alembic/versions/4713e7ebca9_add_task_status_links.py
Vjrx/airship-drydock
315fb9864e6d55a66d5266f76c160be55d22c98b
[ "Apache-2.0" ]
10
2019-11-12T17:21:16.000Z
2021-11-10T18:16:06.000Z
alembic/versions/4713e7ebca9_add_task_status_links.py
Vjrx/airship-drydock
315fb9864e6d55a66d5266f76c160be55d22c98b
[ "Apache-2.0" ]
11
2018-06-05T16:21:18.000Z
2019-04-03T11:44:34.000Z
"""add task status links Revision ID: 4713e7ebca9 Revises: 4a5bef3702b Create Date: 2018-07-05 14:54:18.381988 """ # revision identifiers, used by Alembic. revision = '4713e7ebca9' down_revision = '4a5bef3702b' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa from drydock_provi...
20.62069
58
0.757525
1ad1e7f153cdfca9ebc806f8161206de810ea5b4
9,500
py
Python
test/python/docker/compat/test_containers.py
hmarsanch1/podman
7a0d94837a15a195f33e82d18a4d8f7d8e65e0f5
[ "Apache-2.0" ]
8,575
2020-07-07T20:13:34.000Z
2022-03-31T23:54:14.000Z
test/python/docker/compat/test_containers.py
hmarsanch1/podman
7a0d94837a15a195f33e82d18a4d8f7d8e65e0f5
[ "Apache-2.0" ]
6,911
2020-07-07T19:20:47.000Z
2022-03-31T21:28:02.000Z
test/python/docker/compat/test_containers.py
hmarsanch1/podman
7a0d94837a15a195f33e82d18a4d8f7d8e65e0f5
[ "Apache-2.0" ]
1,066
2020-07-08T10:03:02.000Z
2022-03-31T20:31:01.000Z
import io import subprocess import sys import time import unittest from typing import IO, Optional from docker import DockerClient, errors from docker.models.containers import Container from docker.models.images import Image from test.python.docker import Podman from test.python.docker.compat import common, constant ...
37.401575
109
0.632632
a2899a4876e40cd410e431a9d118b099e855c222
2,210
py
Python
model/lookahead.py
17854212083/MSCANet
4dd3aa8a85e16ae9eb15c87ab5dd5a7158417cb2
[ "MIT" ]
null
null
null
model/lookahead.py
17854212083/MSCANet
4dd3aa8a85e16ae9eb15c87ab5dd5a7158417cb2
[ "MIT" ]
null
null
null
model/lookahead.py
17854212083/MSCANet
4dd3aa8a85e16ae9eb15c87ab5dd5a7158417cb2
[ "MIT" ]
null
null
null
#! -*- coding: utf-8 -*- from keras import backend as K class Lookahead(object): def __init__(self, k=5, alpha=0.5): self.k = k self.alpha = alpha self.count = 0 def inject(self, model): if not hasattr(model, 'train_function'): raise RuntimeError('You must compil...
37.457627
78
0.511312
bf699cfd0e8ba65b2e7a29ddedb3fa273019dbf6
4,237
py
Python
sendmail/urllib3/util/connection.py
flows-app/FLOWS_util
8f310a7e38f3b6fc9d69f96d7fcc77cc7d866cd5
[ "Apache-2.0" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
office_hours/dependencies/requests/packages/urllib3/util/connection.py
ikottman/alexa-skills
b7322aaf63ea8172af960a1f5f9fa5dc0bc41cf1
[ "Unlicense" ]
4,640
2015-07-08T16:19:08.000Z
2019-12-02T15:01:27.000Z
office_hours/dependencies/requests/packages/urllib3/util/connection.py
ikottman/alexa-skills
b7322aaf63ea8172af960a1f5f9fa5dc0bc41cf1
[ "Unlicense" ]
698
2015-06-02T19:18:35.000Z
2022-03-29T16:57:15.000Z
from __future__ import absolute_import import socket from .wait import wait_for_read from .selectors import HAS_SELECT, SelectorError def is_connection_dropped(conn): # Platform-specific """ Returns True if the connection is dropped and should be closed. :param conn: :class:`httplib.HTTPConnecti...
32.343511
82
0.660137
37111f4570fe1648f2741131d81b1b85aeab3caf
117
py
Python
hypothesis/benchmark/mg1/__init__.py
boyali/hypothesis-sre
f44d25eb281d49663d49d134ee73ad542849714b
[ "BSD-3-Clause" ]
45
2019-02-13T14:16:35.000Z
2022-02-23T21:30:02.000Z
hypothesis/benchmark/mg1/__init__.py
boyali/hypothesis-sre
f44d25eb281d49663d49d134ee73ad542849714b
[ "BSD-3-Clause" ]
1
2020-01-13T08:29:50.000Z
2020-01-22T10:28:02.000Z
hypothesis/benchmark/mg1/__init__.py
boyali/hypothesis-sre
f44d25eb281d49663d49d134ee73ad542849714b
[ "BSD-3-Clause" ]
8
2019-04-23T14:25:08.000Z
2021-07-28T15:05:31.000Z
from .simulator import MG1Simulator from .util import Prior from .util import Truth from .util import log_likelihood
23.4
35
0.82906
9d25760ca8a7d41e5a8b30526061ebf6f207a215
656
py
Python
runs/src2-tgt1/par-nobro-iter07000.cfg.py
janpawellek/broeval
57e31aa6e354d0bba88103b44910483e8d982d00
[ "MIT" ]
null
null
null
runs/src2-tgt1/par-nobro-iter07000.cfg.py
janpawellek/broeval
57e31aa6e354d0bba88103b44910483e8d982d00
[ "MIT" ]
null
null
null
runs/src2-tgt1/par-nobro-iter07000.cfg.py
janpawellek/broeval
57e31aa6e354d0bba88103b44910483e8d982d00
[ "MIT" ]
null
null
null
# Write results to this file OUTFILE = 'runs/src2-tgt1/par-nobro-iter07000.result.csv' # Source computers for the requests SOURCE = ['10.0.0.1', '10.0.0.3'] # Should Bro be enabled on the source machines? SOURCE_BRO = [False, False] # Target machines for the requests (aka server) TARGET = ['10.0.0.2'] # Should Bro...
22.62069
68
0.717988
705fd80b9a8a9464811137eb6a10700c2acc6c76
3,028
py
Python
performance/test_azure_data_lake_storage_gen2_origin.py
Pragatibs/datacollector-tests
aac53b2f0e056009ef0e437c8430651e3cf4d502
[ "Apache-2.0" ]
1
2021-11-24T16:17:25.000Z
2021-11-24T16:17:25.000Z
performance/test_azure_data_lake_storage_gen2_origin.py
Pragatibs/datacollector-tests
aac53b2f0e056009ef0e437c8430651e3cf4d502
[ "Apache-2.0" ]
null
null
null
performance/test_azure_data_lake_storage_gen2_origin.py
Pragatibs/datacollector-tests
aac53b2f0e056009ef0e437c8430651e3cf4d502
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 StreamSets Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
43.884058
109
0.654227
5ecf9cf303c9a1d46fc8ddba927a9bcef20b4387
35,983
py
Python
testslide/__init__.py
deathowl/TestSlide
22958af9d487caa9bbc309405106591a48716ad5
[ "MIT" ]
76
2018-09-29T17:54:36.000Z
2020-12-04T19:42:54.000Z
testslide/__init__.py
deathowl/TestSlide
22958af9d487caa9bbc309405106591a48716ad5
[ "MIT" ]
158
2018-10-03T14:18:06.000Z
2021-01-05T13:02:51.000Z
testslide/__init__.py
deathowl/TestSlide
22958af9d487caa9bbc309405106591a48716ad5
[ "MIT" ]
33
2021-03-03T19:55:14.000Z
2022-03-29T21:49:30.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 os if "COVERAGE_PROCESS_START" in os.environ: import coverage coverage.process_startup() import asyncio import asyncio.log i...
35.002918
187
0.607592
112e26409a1b6ee64ff7438062702c05270606ce
3,711
py
Python
context_classification.py
yunzhe99/calam
09d11fba021ccce93a0baac8d09ae220299ef6c2
[ "MIT" ]
null
null
null
context_classification.py
yunzhe99/calam
09d11fba021ccce93a0baac8d09ae220299ef6c2
[ "MIT" ]
null
null
null
context_classification.py
yunzhe99/calam
09d11fba021ccce93a0baac8d09ae220299ef6c2
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from sklearn.cluster import KMeans, DBSCAN, AgglomerativeClustering from scipy.cluster.hierarchy import dendrogram from my_utils.data_io import load_dataset from my_utils.preprocess import resnet_18_encoder from my_utils.tool...
27.69403
89
0.665858
6b0ea3ce8a87e61d02a3b7bdd9ddcf6b25966b9e
145
py
Python
timemachines/skaters/pycrt/pycaretinclusion.py
iklasky/timemachines
1820fa9453d31d4daaeff75274a935c7455febe3
[ "MIT" ]
253
2021-01-08T17:33:30.000Z
2022-03-21T17:32:36.000Z
timemachines/skaters/pycrt/pycaretinclusion.py
iklasky/timemachines
1820fa9453d31d4daaeff75274a935c7455febe3
[ "MIT" ]
65
2021-01-20T16:43:35.000Z
2022-03-30T19:07:22.000Z
timemachines/skaters/pycrt/pycaretinclusion.py
iklasky/timemachines
1820fa9453d31d4daaeff75274a935c7455febe3
[ "MIT" ]
28
2021-02-04T14:58:30.000Z
2022-01-17T04:35:17.000Z
try: from pycaret.internal.pycaret_experiment import TimeSeriesExperiment using_pycaret=True except ImportError: using_pycaret=False
24.166667
72
0.813793
3c542aa512ab1f5c757eaaa51bfdc08e7bc78a26
12,927
py
Python
my/balancesheet_220220.py
ssawwqdf/-project-stock_info_dashboard
f14a462d915d2207db1da12307aefdef4b6921e1
[ "MIT" ]
1
2022-02-19T20:22:05.000Z
2022-02-19T20:22:05.000Z
my/balancesheet_220220.py
ssawwqdf/-project-stock_info_dashboard
f14a462d915d2207db1da12307aefdef4b6921e1
[ "MIT" ]
null
null
null
my/balancesheet_220220.py
ssawwqdf/-project-stock_info_dashboard
f14a462d915d2207db1da12307aefdef4b6921e1
[ "MIT" ]
null
null
null
# ==================================================== # 패키지 # ==================================================== # -------- data import pandas as pd import numpy as np import sqlalchemy as sa # -------- str import re # -------- date from datetime import datetime, date # -------- float import ...
27.680942
154
0.512571
5d6aa1d53a3848a4aa1776764c8a9d675a82f914
2,754
py
Python
examples/point/equivariance.py
mariogeiger/se3cnn
afd027c72e87f2c390e0a2e7c6cfc8deea34b0cf
[ "MIT" ]
170
2018-07-03T17:18:35.000Z
2022-03-30T15:30:40.000Z
examples/point/equivariance.py
CNNs4QSPR/se3cnn
513f5f827c4c511bdc96e3c6ea663c8fbce60f57
[ "MIT" ]
34
2018-10-09T08:56:24.000Z
2020-01-30T09:46:52.000Z
examples/point/equivariance.py
CNNs4QSPR/se3cnn
513f5f827c4c511bdc96e3c6ea663c8fbce60f57
[ "MIT" ]
40
2018-07-03T13:40:14.000Z
2022-01-28T16:40:48.000Z
from functools import partial import torch from se3cnn.non_linearities.gated_block import GatedBlock from se3cnn.non_linearities.rescaled_act import relu, sigmoid, tanh, absolute from se3cnn.non_linearities.gated_block_parity import GatedBlockParity from se3cnn.point.kernel import Kernel from se3cnn.point.operations ...
34
107
0.637981
3f498badc94c7060ed3768e5e0fa4d30e0b5368a
265
py
Python
coverage_wrapper.py
christophermark/Python-Example-Project
2c37e0342b5d037be50f6ee553485d1dee0e598b
[ "MIT" ]
7
2017-07-08T03:24:40.000Z
2020-06-21T13:29:05.000Z
coverage_wrapper.py
ccpmark/Python-Example-Project
2c37e0342b5d037be50f6ee553485d1dee0e598b
[ "MIT" ]
null
null
null
coverage_wrapper.py
ccpmark/Python-Example-Project
2c37e0342b5d037be50f6ee553485d1dee0e598b
[ "MIT" ]
7
2017-04-17T20:54:54.000Z
2021-11-06T13:09:32.000Z
# A wrapper function to monitor coverage through all tests from coverage import coverage import pytest cov = coverage(omit='.tox*') cov.start() # Tests to run # Pytest will crawl through the project directory for test files. pytest.main() cov.stop() cov.save()
17.666667
65
0.750943
eed943dc6ae81a125d77c5cad44abcb6084cb47e
403
py
Python
crusoe_act/act-component/dnsfw-wrapper/dnsfw_wrapper/wsgi.py
CSIRT-MU/CRUSOE
73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b
[ "MIT" ]
3
2021-11-09T09:55:17.000Z
2022-02-19T02:58:27.000Z
crusoe_act/act-component/dnsfw-wrapper/dnsfw_wrapper/wsgi.py
CSIRT-MU/CRUSOE
73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b
[ "MIT" ]
null
null
null
crusoe_act/act-component/dnsfw-wrapper/dnsfw_wrapper/wsgi.py
CSIRT-MU/CRUSOE
73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b
[ "MIT" ]
null
null
null
""" WSGI config for dnsfw_wrapper project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO...
23.705882
78
0.791563
a780bdb2082be461f0658b778ab3efe0a8987ef7
1,996
py
Python
Leetcode/427.construct-quad-tree.py
EdwaRen/Competitve-Programming
e8bffeb457936d28c75ecfefb5a1f316c15a9b6c
[ "MIT" ]
1
2021-05-03T21:48:25.000Z
2021-05-03T21:48:25.000Z
Leetcode/427.construct-quad-tree.py
EdwaRen/Competitve_Programming
e8bffeb457936d28c75ecfefb5a1f316c15a9b6c
[ "MIT" ]
null
null
null
Leetcode/427.construct-quad-tree.py
EdwaRen/Competitve_Programming
e8bffeb457936d28c75ecfefb5a1f316c15a9b6c
[ "MIT" ]
null
null
null
""" # Definition for a QuadTree node. """ class Node(object): def __init__(self, val, isLeaf, topLeft, topRight, bottomLeft, bottomRight): self.val = val self.isLeaf = isLeaf self.topLeft = topLeft self.topRight = topRight self.bottomLeft = bottomLeft self.bottomRigh...
29.352941
93
0.523547
83b88f0bea9410f715c3662cbbf4bf6afb9f790d
1,470
py
Python
src/main.py
giansalex/repo_info_extractor
fa31940964e31c2d1aa3cdfd302539e02f70f511
[ "MIT" ]
null
null
null
src/main.py
giansalex/repo_info_extractor
fa31940964e31c2d1aa3cdfd302539e02f70f511
[ "MIT" ]
null
null
null
src/main.py
giansalex/repo_info_extractor
fa31940964e31c2d1aa3cdfd302539e02f70f511
[ "MIT" ]
null
null
null
import argparse import git import os from export_result import ExportResult from analyze_repo import AnalyzeRepo from ui.questions import Questions def main(): parser = argparse.ArgumentParser() parser.add_argument('directory', help='Path to the repository. Example usage: run.sh path/to/directory') parser....
37.692308
198
0.719048
31a33c0dced0f35d0e19d3b47557833b2184e7d4
1,821
py
Python
modules/sr/robot/vision/api.py
WillB97/competition-simulator-CI-testing
e0ef45d0abfa1d167b9844c29bfd43b495aed9af
[ "MIT" ]
4
2020-06-12T18:00:45.000Z
2021-02-17T14:16:59.000Z
modules/sr/robot/vision/api.py
WillB97/competition-simulator-CI-testing
e0ef45d0abfa1d167b9844c29bfd43b495aed9af
[ "MIT" ]
158
2020-04-29T17:59:31.000Z
2021-11-13T00:00:21.000Z
modules/sr/robot/vision/api.py
WillB97/competition-simulator-CI-testing
e0ef45d0abfa1d167b9844c29bfd43b495aed9af
[ "MIT" ]
10
2020-06-12T16:19:46.000Z
2021-07-07T21:06:48.000Z
from typing import List, Tuple, Callable, Iterable, Sequence, TYPE_CHECKING from sr.robot.coordinates.vectors import Vector from .image import Rectangle from .tokens import Token from .convert import WebotsOrientation, rotation_matrix_from_axis_and_angle if TYPE_CHECKING: from controller import CameraRecognition...
29.852459
79
0.701263
9039fdbb1e19473346ab220e832c1259909c11c3
2,319
py
Python
test_scripts/udp_client.py
gftabor/pyForceDAQ
3eababb41d855b961d228d8366fdd154bb6314ea
[ "MIT" ]
null
null
null
test_scripts/udp_client.py
gftabor/pyForceDAQ
3eababb41d855b961d228d8366fdd154bb6314ea
[ "MIT" ]
null
null
null
test_scripts/udp_client.py
gftabor/pyForceDAQ
3eababb41d855b961d228d8366fdd154bb6314ea
[ "MIT" ]
null
null
null
# test client udo connection from expyriment import control, stimuli, io, misc from expyriment.misc import Clock from forceDAQ import UDPConnection # t : test connect # q : quit client # space : enter control.set_develop_mode(True) exp = control.initialize() udp_connection = UDPConnection() print udp_connectio...
23.424242
68
0.605002
ce47d1224f6f86d3be6d1b4748e9b43c7dbd3d99
13,367
py
Python
src_py/hat/drivers/mms/connection.py
hat-open/hat-drivers
64d175b1f724e9b7e7e7fe4852f8de973a659730
[ "Apache-2.0" ]
1
2022-02-01T13:42:51.000Z
2022-02-01T13:42:51.000Z
src_py/hat/drivers/mms/connection.py
hat-open/hat-drivers
64d175b1f724e9b7e7e7fe4852f8de973a659730
[ "Apache-2.0" ]
null
null
null
src_py/hat/drivers/mms/connection.py
hat-open/hat-drivers
64d175b1f724e9b7e7e7fe4852f8de973a659730
[ "Apache-2.0" ]
3
2021-09-10T12:22:02.000Z
2022-02-18T12:55:44.000Z
"""Manufacturing Message Specification""" from pathlib import Path import asyncio import logging import typing from hat import aio from hat import asn1 from hat.drivers import acse from hat.drivers.mms import common from hat.drivers.mms import encoder mlog = logging.getLogger(__name__) Address = acse.Address """A...
35.550532
89
0.596843
aeb01c27b0fc2af3b0297459f82c4c4234b07625
8,799
py
Python
spotify/spotify_oauth.py
jose-log/playlistCreator
ebe44f8277efdbd3b2b521f5ea45bfb25a081f73
[ "MIT" ]
null
null
null
spotify/spotify_oauth.py
jose-log/playlistCreator
ebe44f8277efdbd3b2b521f5ea45bfb25a081f73
[ "MIT" ]
null
null
null
spotify/spotify_oauth.py
jose-log/playlistCreator
ebe44f8277efdbd3b2b521f5ea45bfb25a081f73
[ "MIT" ]
null
null
null
#!/bin/env python3 # This script implements direct OAuth authentication protocol based on the # Spotify web API documentation. The Authentication process uses the # Authorization Code Flow, which only requires from the user to authorize # the client application only once using the web browser # # The end result is an ...
28.568182
106
0.64155
cb66824b7c3d0909a18db8b0a2a02e1312728c64
546
py
Python
tests/r/test_snow_deaths2.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
199
2017-07-24T01:34:27.000Z
2022-01-29T00:50:55.000Z
tests/r/test_snow_deaths2.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
46
2017-09-05T19:27:20.000Z
2019-01-07T09:47:26.000Z
tests/r/test_snow_deaths2.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
45
2017-07-26T00:10:44.000Z
2022-03-16T20:44:59.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import shutil import sys import tempfile from observations.r.snow_deaths2 import snow_deaths2 def test_snow_deaths2(): """Test module snow_deaths2.py by downloading snow_deaths2.csv and testing shape of...
22.75
52
0.767399
037e811036c31fa80d6c1ea3b153270b16fdf001
369
py
Python
configuration/config.py
hemidactylus/measurement-api
00dc85988d9fd0fb31ba8a3ecd43bd16dfec754f
[ "Apache-2.0" ]
null
null
null
configuration/config.py
hemidactylus/measurement-api
00dc85988d9fd0fb31ba8a3ecd43bd16dfec754f
[ "Apache-2.0" ]
null
null
null
configuration/config.py
hemidactylus/measurement-api
00dc85988d9fd0fb31ba8a3ecd43bd16dfec754f
[ "Apache-2.0" ]
null
null
null
import os this_dir = os.path.abspath(os.path.dirname(__file__)) base_dir = os.path.join(this_dir, '..') secure_db_bundle_path = os.path.join( base_dir, 'secrets', 'secure-connect-measurements.zip', ) secrets_json_path = os.path.join( base_dir, 'secrets', 'access.json', ) defaultRateLimitWindo...
19.421053
53
0.715447
dbbcf6161ab2c6d9a820d39c89aa689305768e49
11,874
py
Python
sdk/python/pulumi_azure_native/logz/v20201001/sub_account.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/logz/v20201001/sub_account.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/logz/v20201001/sub_account.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
42.407143
360
0.646454
0ad14df8e1901f5ba30f327e51c1909186dc7725
4,274
py
Python
app.py
PriateXYF/HabiCat-Backend
46f80f2630ac54249dfb635e114d7f92f88da62a
[ "MIT" ]
1
2021-12-23T11:49:58.000Z
2021-12-23T11:49:58.000Z
app.py
PriateXYF/HabiCat-Backend
46f80f2630ac54249dfb635e114d7f92f88da62a
[ "MIT" ]
null
null
null
app.py
PriateXYF/HabiCat-Backend
46f80f2630ac54249dfb635e114d7f92f88da62a
[ "MIT" ]
null
null
null
# coding: utf-8 import sys from datetime import datetime import leancloud from flask import Flask, jsonify, request from flask import render_template from flask_sockets import Sockets from leancloud import LeanCloudError import common from views.todos import todos_view from bbdc.api import BBDC from forest.api import ...
21.585859
97
0.695835
544946da43c6440307b0332ab3533f0a9078a26e
1,082
py
Python
desktop/core/ext-py/docutils-0.14/test/test_parsers/test_rst/test_directives/test_class.py
kokosing/hue
2307f5379a35aae9be871e836432e6f45138b3d9
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
desktop/core/ext-py/docutils-0.14/test/test_parsers/test_rst/test_directives/test_class.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
desktop/core/ext-py/docutils-0.14/test/test_parsers/test_rst/test_directives/test_class.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
#! /usr/bin/env python # $Id: test_class.py 5174 2007-05-31 00:01:52Z wiemann $ # Author: Lea Wiemann <LeWiemann@gmail.com> # Copyright: This module has been placed in the public domain. """ Tests for the 'class' directive. """ from __init__ import DocutilsTestSupport def suite(): s = DocutilsTestSupport.Parser...
20.415094
64
0.626617
e8cfab09086af8e082df509a02ec0f04b57840ff
1,564
py
Python
oruxmap/layers_switzerland.py
hmaerki/orux_swissmap
986207271a4e421bf4bcf683fbfcd747d67ff6f7
[ "Apache-2.0" ]
1
2021-11-16T13:28:35.000Z
2021-11-16T13:28:35.000Z
oruxmap/layers_switzerland.py
hmaerki/orux_swissmap
986207271a4e421bf4bcf683fbfcd747d67ff6f7
[ "Apache-2.0" ]
null
null
null
oruxmap/layers_switzerland.py
hmaerki/orux_swissmap
986207271a4e421bf4bcf683fbfcd747d67ff6f7
[ "Apache-2.0" ]
1
2021-11-16T13:28:42.000Z
2021-11-16T13:28:42.000Z
from dataclasses import dataclass @dataclass class LayerParams: scale: int orux_layer: int m_per_pixel: float tiff_filename: str = None tiff_url: str = None pixel_per_tile: int = 400 @property def name(self): return f"{self.scale:04d}" @property def m_per_tile(self) -...
26.066667
99
0.627877
1b443fab66911cccc65914866fb6463f8ec017d4
25
py
Python
clearml_agent/version.py
Honzys/clearml-agent
f58071fc74e2df9bdba8ca91569e0bfd70ad4f46
[ "Apache-2.0" ]
null
null
null
clearml_agent/version.py
Honzys/clearml-agent
f58071fc74e2df9bdba8ca91569e0bfd70ad4f46
[ "Apache-2.0" ]
null
null
null
clearml_agent/version.py
Honzys/clearml-agent
f58071fc74e2df9bdba8ca91569e0bfd70ad4f46
[ "Apache-2.0" ]
null
null
null
__version__ = '1.2.0rc6'
12.5
24
0.68
5720a8d461d5e4b3aa0d5f5f8eb6508ce8957bd3
911
py
Python
src/neuralnetwork/lstm_user.py
Dive904/What2Cite
bcf188047790abfbb71e6fc0361028749a391f40
[ "CC-BY-4.0" ]
null
null
null
src/neuralnetwork/lstm_user.py
Dive904/What2Cite
bcf188047790abfbb71e6fc0361028749a391f40
[ "CC-BY-4.0" ]
null
null
null
src/neuralnetwork/lstm_user.py
Dive904/What2Cite
bcf188047790abfbb71e6fc0361028749a391f40
[ "CC-BY-4.0" ]
null
null
null
import pickle import numpy as np from keras.preprocessing.sequence import pad_sequences from tensorflow_core.python.keras.models import load_model from src.pipelineapplication import utils from src.neuralnetwork import lstm_utils lstm_model = "../../output/official/neuralnetwork.h5" tokenizer_model = "../../output/o...
26.028571
75
0.755214
4e688a07f210cdc9b3c69707f1af2feae3266bc3
1,429
py
Python
saleor/graphql/order/bulk_mutations/draft_orders.py
calinrada/saleor
f4e3ba4cb819e9c07a2e1fa963539d2f15528b40
[ "BSD-3-Clause" ]
1
2019-06-09T14:56:04.000Z
2019-06-09T14:56:04.000Z
saleor/graphql/order/bulk_mutations/draft_orders.py
ardeal/saleor
9af726ba6d3a8cb11da07dc957a3fd2a92d7ef64
[ "BSD-3-Clause" ]
null
null
null
saleor/graphql/order/bulk_mutations/draft_orders.py
ardeal/saleor
9af726ba6d3a8cb11da07dc957a3fd2a92d7ef64
[ "BSD-3-Clause" ]
null
null
null
import graphene from django.core.exceptions import ValidationError from ....order import OrderStatus, models from ...core.mutations import ModelBulkDeleteMutation class DraftOrderBulkDelete(ModelBulkDeleteMutation): class Arguments: ids = graphene.List( graphene.ID, required=True,...
29.163265
76
0.656403
2d0274dd30710f47dfd4ef3a9c93587c1611f474
1,502
py
Python
randgen/importers.py
VasilisG/Mock-Dataset-Generator
f468fcbbd9a1c4a2cdbf80507aa7d0ebf59c9258
[ "MIT" ]
null
null
null
randgen/importers.py
VasilisG/Mock-Dataset-Generator
f468fcbbd9a1c4a2cdbf80507aa7d0ebf59c9258
[ "MIT" ]
null
null
null
randgen/importers.py
VasilisG/Mock-Dataset-Generator
f468fcbbd9a1c4a2cdbf80507aa7d0ebf59c9258
[ "MIT" ]
null
null
null
import csv import os import randgen.utils as utils class Importer: def __init__(self, filename, fetchBy, delimiter=','): self.filename = filename self.fetchBy = fetchBy self.delimiter = delimiter self.data = None @property def filename(self): return self.filen...
28.884615
91
0.511984
cfc8098af67e2188fdaaa361032f050c1d0de95c
4,340
py
Python
tests/storage/test_rollback_worker.py
dsonck92/synapse
2560b1b6b2f74b5724253396c0e3665fa1f7968c
[ "Apache-2.0" ]
9,945
2015-01-02T07:41:06.000Z
2022-03-31T23:22:42.000Z
tests/storage/test_rollback_worker.py
t2bot/synapse
62ca554ef09330cb88d46fca8296a859d0adc143
[ "Apache-2.0" ]
9,320
2015-01-08T14:09:03.000Z
2022-03-31T21:11:24.000Z
tests/storage/test_rollback_worker.py
t2bot/synapse
62ca554ef09330cb88d46fca8296a859d0adc143
[ "Apache-2.0" ]
2,299
2015-01-31T22:16:29.000Z
2022-03-31T06:08:26.000Z
# Copyright 2021 The Matrix.org Foundation C.I.C. # # 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...
36.166667
89
0.672811
3dc369feaa55491ad0beafb745406fe4fa1845de
154
py
Python
intake_omnisci/__init__.py
Quansight/intake-mapd
6e7bc4b9cef9955f7907c049c3967e80026781a9
[ "Apache-2.0" ]
2
2019-09-12T00:32:13.000Z
2020-08-10T18:09:49.000Z
intake_omnisci/__init__.py
Quansight/intake-omnisci
6e7bc4b9cef9955f7907c049c3967e80026781a9
[ "Apache-2.0" ]
8
2019-07-25T23:32:13.000Z
2020-10-23T17:12:49.000Z
intake_omnisci/__init__.py
Quansight/intake-mapd
6e7bc4b9cef9955f7907c049c3967e80026781a9
[ "Apache-2.0" ]
1
2021-04-17T15:22:19.000Z
2021-04-17T15:22:19.000Z
__version__ = '0.0.2' import intake from .catalog import OmniSciCatalog from .source import OmniSciSource __all__ = ["OmniSciCatalog", "OmniSciSource"]
19.25
45
0.779221
aacc79c2630f664a62fc81b6305486a25ba525f0
1,554
py
Python
setup.py
AbsarF/ChatterBot
61dfdac4714846d4f1a7d843bec70c77c7106630
[ "BSD-3-Clause" ]
null
null
null
setup.py
AbsarF/ChatterBot
61dfdac4714846d4f1a7d843bec70c77c7106630
[ "BSD-3-Clause" ]
null
null
null
setup.py
AbsarF/ChatterBot
61dfdac4714846d4f1a7d843bec70c77c7106630
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup, find_packages req = open("requirements.txt") requirements = req.readlines() # Dynamically calculate the version based on chatterbot version version = __import__...
31.714286
69
0.655084
926098ed838188bf7c06388be2b450dc661ccf42
4,440
py
Python
python_src/adaptive_formation/tasks.py
tkortz/motion_planning_rt
08e914642b802f7217a8ad0f6153d41ccdce8c7d
[ "MIT" ]
111
2020-02-18T11:41:23.000Z
2022-03-27T17:07:17.000Z
python_src/adaptive_formation/tasks.py
tkortz/motion_planning_rt
08e914642b802f7217a8ad0f6153d41ccdce8c7d
[ "MIT" ]
null
null
null
python_src/adaptive_formation/tasks.py
tkortz/motion_planning_rt
08e914642b802f7217a8ad0f6153d41ccdce8c7d
[ "MIT" ]
40
2019-12-19T14:14:19.000Z
2022-02-27T03:29:04.000Z
import contextlib from matplotlib import animation as anim import matplotlib.pyplot as plt import matplotlib.patches as patches import numpy as np from math import * import time def draw_map(start, goal, obstacles_poses, R_obstacles, f=None, draw_gradients=True, nrows=500, ncols=500): if draw_gradients and f is n...
41.495327
144
0.661486
770ec62529ab993c5d901bee506a329c34e11ce3
8,601
py
Python
src/sentry/models/organizationmember.py
hieast/sentry
1179b6b13e86f552d18da0578d7b3bc5d002c0d9
[ "BSD-3-Clause" ]
1
2019-05-28T06:18:03.000Z
2019-05-28T06:18:03.000Z
src/sentry/models/organizationmember.py
c88888/sentry
53837d9e8dad2443c3881fcd05f1b261bdd922fd
[ "BSD-3-Clause" ]
6
2018-10-19T10:04:23.000Z
2019-12-09T20:29:12.000Z
src/sentry/models/organizationmember.py
c88888/sentry
53837d9e8dad2443c3881fcd05f1b261bdd922fd
[ "BSD-3-Clause" ]
1
2020-07-03T00:52:19.000Z
2020-07-03T00:52:19.000Z
""" sentry.models.organizationmember ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import, print_function import six from bitfield import BitField from django.conf import se...
31.390511
98
0.6183
1d32356d77a332608761321075dfa8c9d96d79db
4,269
py
Python
tests/python/pants_test/engine/legacy/test_filemap_integration.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/engine/legacy/test_filemap_integration.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
1
2018-09-04T17:37:34.000Z
2018-09-04T19:42:58.000Z
tests/python/pants_test/engine/legacy/test_filemap_integration.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import os from pants.base.file_system_project_tree import FileSystemProjectTree from pants.testutil.pants_run_integration_test import PantsRunIntegrationTest class FilemapIntegrationTes...
40.657143
120
0.662919
5e304d2b6637f0c9af6aae8af1a802463ba1e4f5
3,193
py
Python
src/m6_grid_row_and_column.py
deckerdj/24-Tkinter
5543aef3cd9a64e28084c6d3e580989cb6eb269d
[ "MIT" ]
null
null
null
src/m6_grid_row_and_column.py
deckerdj/24-Tkinter
5543aef3cd9a64e28084c6d3e580989cb6eb269d
[ "MIT" ]
null
null
null
src/m6_grid_row_and_column.py
deckerdj/24-Tkinter
5543aef3cd9a64e28084c6d3e580989cb6eb269d
[ "MIT" ]
null
null
null
""" This project lets you try out Tkinter/Ttk and practice it! Authors: David Mutchler, Vibha Alangar, Matt Boutell, Dave Fisher, Mark Hays, Amanda Stouder, Aaron Wilkin, their colleagues, and Daniel Decker. """ # Done: 1. PUT YOUR NAME IN THE ABOVE LINE. import tkinter from tkinter import ttk de...
35.876404
79
0.607892