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
4cd30544414a66a98639e94890a48b9c2d8489d1
1,875
py
Python
tests/test_audio_classes.py
roebel/sigsep-mus-db
c091d8b0373efee9bccf4263814cb6655136d6a9
[ "MIT" ]
null
null
null
tests/test_audio_classes.py
roebel/sigsep-mus-db
c091d8b0373efee9bccf4263814cb6655136d6a9
[ "MIT" ]
null
null
null
tests/test_audio_classes.py
roebel/sigsep-mus-db
c091d8b0373efee9bccf4263814cb6655136d6a9
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import division import pytest import musdb.audio_classes as ac import musdb import numpy as np @pytest.fixture(params=[True, False]) def mus(request): return musdb.DB(root_dir='data/MUS-STEMS-SAMPLE', is_wav=request.param) def test_targets(mus): tracks =...
24.038462
77
0.655467
1b5771a3ac3441a0edb6f548b08bfd4d1ef01c94
2,054
py
Python
store.py
hackingmaster1/code1
d5a27a51f4b2cbc646be13a1231757aa56eb9bb2
[ "Apache-2.0" ]
null
null
null
store.py
hackingmaster1/code1
d5a27a51f4b2cbc646be13a1231757aa56eb9bb2
[ "Apache-2.0" ]
null
null
null
store.py
hackingmaster1/code1
d5a27a51f4b2cbc646be13a1231757aa56eb9bb2
[ "Apache-2.0" ]
null
null
null
from termcolor import colored class product: def __init__(self,name,code,price): self.name=name self.code=code self.price=price class store: def __init__(self): self.product_list=[] self.cart=[] def add(self,Product): self.product_list.append(Produc...
29.342857
83
0.561831
f6193e2027b41bed7fc807f67e2b3a32e711a828
2,365
py
Python
examples/advanced/autowrap_ufuncify.py
benjaminmcdonald/sympy
dc44dcc6d6d5f2d0a7ede35eff5f421ab4b11a3e
[ "BSD-3-Clause" ]
1
2016-07-13T04:30:25.000Z
2016-07-13T04:30:25.000Z
examples/advanced/autowrap_ufuncify.py
jegerjensen/sympy
3a43310f1957a21a6f095fe2801cc05b5268a2c7
[ "BSD-3-Clause" ]
null
null
null
examples/advanced/autowrap_ufuncify.py
jegerjensen/sympy
3a43310f1957a21a6f095fe2801cc05b5268a2c7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ Setup ufuncs for the legendre polynomials ----------------------------------------- This example demonstrates how you can use the ufuncify utility in Sympy to create fast, customized universal functions for use with numpy arrays. An autowrapped sympy expression can be significantly faster tha...
29.936709
80
0.668076
7d11a0ba61c8da52fe2d7c1da7955078eef3413c
1,198
py
Python
nes/utils.py
goktug97/nes-torch
016f2618d2f5019718c62359eebb9fd939647607
[ "MIT" ]
8
2021-04-17T09:35:35.000Z
2022-03-30T08:35:26.000Z
nes/utils.py
goktug97/nes-torch
016f2618d2f5019718c62359eebb9fd939647607
[ "MIT" ]
null
null
null
nes/utils.py
goktug97/nes-torch
016f2618d2f5019718c62359eebb9fd939647607
[ "MIT" ]
null
null
null
from functools import lru_cache, wraps import numpy as np @lru_cache(maxsize=1) def _center_function(population_size): centers = np.arange(0, population_size, dtype=np.float32) centers = centers / (population_size - 1) centers -= 0.5 return centers def _compute_ranks(rewards): rewards = np.arra...
23.96
61
0.63773
725dd76106192033f3ad473ce5a2d5e4c6f39387
2,711
py
Python
vagrant/tournament/tournament.py
wiredmind/tournament-results
0af4aea738bd76ab5739f43827623a818e52d738
[ "MIT" ]
null
null
null
vagrant/tournament/tournament.py
wiredmind/tournament-results
0af4aea738bd76ab5739f43827623a818e52d738
[ "MIT" ]
null
null
null
vagrant/tournament/tournament.py
wiredmind/tournament-results
0af4aea738bd76ab5739f43827623a818e52d738
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # tournament.py -- implementation of a Swiss-system tournament # import psycopg2 def connect(): """Connect to the PostgreSQL database. Returns a database connection.""" return psycopg2.connect("dbname=tournament") def deleteMatches(): """Remove all the match records from the d...
27.948454
80
0.659904
3bdbe619b3e8eb76f53678cefd9a13c1de77774b
9,377
py
Python
lib/phoenix/command/conf.py
olcf/phoenix
94da8013e82483f7f07b80ec45acf64121db5347
[ "Apache-2.0" ]
null
null
null
lib/phoenix/command/conf.py
olcf/phoenix
94da8013e82483f7f07b80ec45acf64121db5347
[ "Apache-2.0" ]
null
null
null
lib/phoenix/command/conf.py
olcf/phoenix
94da8013e82483f7f07b80ec45acf64121db5347
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Generate various config files""" # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 import os import sys import logging import argparse import socket import errno from yaml import load, dump try: from yaml import CLoader as Loader, CDumper as Dumper except ImportError: logging.info...
42.049327
199
0.562867
a4671b181079fdf662b702990898f16df58d185e
4,042
py
Python
scripts/get_versions.py
rmay-intwine/volttron
a449f70e32f73ff0136a838d0feddb928ede6298
[ "Apache-2.0" ]
2
2019-10-03T17:00:34.000Z
2019-10-03T17:00:38.000Z
scripts/get_versions.py
rmay-intwine/volttron
a449f70e32f73ff0136a838d0feddb928ede6298
[ "Apache-2.0" ]
2
2018-08-29T13:45:17.000Z
2018-09-06T12:34:23.000Z
scripts/get_versions.py
rmay-intwine/volttron
a449f70e32f73ff0136a838d0feddb928ede6298
[ "Apache-2.0" ]
1
2018-08-14T23:28:10.000Z
2018-08-14T23:28:10.000Z
# -*- coding: utf-8 -*- {{{ # vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et: # # Copyright 2017, Battelle Memorial Institute. # # 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...
34.844828
98
0.696685
e92e2e83c5bda7ed82c513363d8e83394eb24587
9,828
py
Python
train.py
lidongyv/PSSM
61ef78bc465fd53fb128d0aa1b913f787c8c7f74
[ "Apache-2.0" ]
1
2020-12-31T02:40:49.000Z
2020-12-31T02:40:49.000Z
train.py
lidongyv/PSSM
61ef78bc465fd53fb128d0aa1b913f787c8c7f74
[ "Apache-2.0" ]
null
null
null
train.py
lidongyv/PSSM
61ef78bc465fd53fb128d0aa1b913f787c8c7f74
[ "Apache-2.0" ]
1
2020-12-31T02:40:49.000Z
2020-12-31T02:40:49.000Z
# -*- coding: utf-8 -*- # @Author: lidong # @Date: 2018-03-18 13:41:34 # @Last Modified by: yulidong # @Last Modified time: 2018-09-21 22:58:43 import sys import torch import visdom import argparse import numpy as np import time import torch.nn as nn import torch.nn.functional as F import torchvision.models as mode...
40.780083
137
0.540191
d89f8e31a596b9e5df59de345f4f640cc2eaed3c
7,531
py
Python
user/tests.py
JiajiaHuang/smonus
95ec209ae3562ea73ee9ce4c22a0d3a3f0975210
[ "Unlicense" ]
null
null
null
user/tests.py
JiajiaHuang/smonus
95ec209ae3562ea73ee9ce4c22a0d3a3f0975210
[ "Unlicense" ]
null
null
null
user/tests.py
JiajiaHuang/smonus
95ec209ae3562ea73ee9ce4c22a0d3a3f0975210
[ "Unlicense" ]
null
null
null
from django.test import TestCase # Create your tests here. import os import django from django.contrib.auth.hashers import make_password os.environ.setdefault("DJANGO_SETTINGS_MODULE", "SMONU.settings") # project_name 项目名称 django.setup() # Create your tests here. from user.models import RootProfile macpw = make_p...
61.227642
114
0.768955
9aef8102c930f2ded58bcf71a12a431d56f87125
1,602
py
Python
gym_cellular_automata/forest_fire/helicopter/utils/helicopter_shape.py
BrunoGupa/gym-cellular-automata
6b5d96f2ccf13d1c1da9e2dc4d5273553cfbc89f
[ "MIT" ]
13
2021-02-22T20:26:11.000Z
2022-02-03T02:33:33.000Z
gym_cellular_automata/forest_fire/helicopter/utils/helicopter_shape.py
BrunoGupa/gym-cellular-automata
6b5d96f2ccf13d1c1da9e2dc4d5273553cfbc89f
[ "MIT" ]
1
2021-10-18T00:50:01.000Z
2021-10-18T00:50:01.000Z
gym_cellular_automata/forest_fire/helicopter/utils/helicopter_shape.py
BrunoGupa/gym-cellular-automata
6b5d96f2ccf13d1c1da9e2dc4d5273553cfbc89f
[ "MIT" ]
2
2021-03-30T23:35:09.000Z
2021-09-03T16:37:40.000Z
SVG_PATH = "M 12.2727,21.5884 H 65 M 27.2121,55.2753 h 28.1212 c 0,0 5.2728,0 6.1515,-2.6364 M 50.0606,47.3662 c 0,0 2.6364,0.8787 2.6364,7.0303 M 35.1212,47.3662 c 0,0 -2.6364,0.8787 -2.6364,7.0303 M 39.73,20.3298 v 8.73 c 0,0.24 -0.09,0.46 -0.24,0.63 -0.53,0 -1.1,-0.01 -1.72,-0.02 -0.15,-0.17 -0.23,-0.38 -0.23,-0.61 ...
801
1,601
0.563046
8cef559c16ef3a96dc980e1400be6731bcbf1cb4
2,992
py
Python
tasks/eva_2480/test/test_swap_contig_with_correct_contig_in_study.py
sundarvenkata-EBI/eva-tasks
5548bf5858942145980424ee01a9ca316ad0d444
[ "Apache-2.0" ]
null
null
null
tasks/eva_2480/test/test_swap_contig_with_correct_contig_in_study.py
sundarvenkata-EBI/eva-tasks
5548bf5858942145980424ee01a9ca316ad0d444
[ "Apache-2.0" ]
11
2020-09-01T10:29:21.000Z
2022-03-28T10:59:24.000Z
tasks/eva_2480/test/test_swap_contig_with_correct_contig_in_study.py
sundarvenkata-EBI/eva-tasks
5548bf5858942145980424ee01a9ca316ad0d444
[ "Apache-2.0" ]
4
2020-07-18T22:05:29.000Z
2021-11-04T12:34:51.000Z
from unittest import TestCase from ebi_eva_common_pyutils.mongodb import MongoDatabase from tasks.eva_2480.swap_contig_with_correct_contig_in_study import swap_with_correct_contig class TestSwapContigInStudy(TestCase): def setUp(self) -> None: self.db = "eva_accession_sharded_test" self.collecti...
43.362319
92
0.605949
2e64484f08ebd2e5876849ba9a4ac84c24b5bb88
5,217
py
Python
tools/buildgen/generate_projects.py
gmambro/grpc
61aee932d72d59ce9d8c47366aeb9df2825103ec
[ "Apache-2.0" ]
2
2021-07-13T09:16:08.000Z
2021-11-17T11:07:13.000Z
tools/buildgen/generate_projects.py
gmambro/grpc
61aee932d72d59ce9d8c47366aeb9df2825103ec
[ "Apache-2.0" ]
11
2019-10-15T23:03:57.000Z
2020-06-14T16:10:12.000Z
tools/buildgen/generate_projects.py
gmambro/grpc
61aee932d72d59ce9d8c47366aeb9df2825103ec
[ "Apache-2.0" ]
7
2019-07-04T14:23:54.000Z
2020-04-27T08:52:51.000Z
# Copyright 2015 gRPC 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 writing...
35.97931
80
0.592294
90ba88d39034ae56c268eb6e16d7dd508bc23e86
47,406
py
Python
arelle/XmlUtil.py
austinmatherne-wk/Arelle-open
b212aea1a568914eb56ae6224ebb0f4618ddfedc
[ "BSD-3-Clause", "Apache-2.0", "MIT" ]
null
null
null
arelle/XmlUtil.py
austinmatherne-wk/Arelle-open
b212aea1a568914eb56ae6224ebb0f4618ddfedc
[ "BSD-3-Clause", "Apache-2.0", "MIT" ]
null
null
null
arelle/XmlUtil.py
austinmatherne-wk/Arelle-open
b212aea1a568914eb56ae6224ebb0f4618ddfedc
[ "BSD-3-Clause", "Apache-2.0", "MIT" ]
null
null
null
''' Created on Oct 22, 2010 @author: Mark V Systems Limited (c) Copyright 2010 Mark V Systems Limited, All rights reserved. ''' import datetime try: import regex as re except ImportError: import re from lxml import etree from arelle.XbrlConst import ixbrlAll, qnLinkFootnote, xhtml, xml, xsd, xhtml from arelle....
46.294922
202
0.607012
da9fe0d0af4672a9b31b72cf64b1fc16eafe3105
458
py
Python
packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_color.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_color.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_color.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name="color", parent_name="densitymapbox.legendgrouptitle.font", **kwargs, ): super(ColorValidator, self).__init__( plotly_name=...
26.941176
66
0.626638
b4c1fcf84cc134c8aa440e792ecefda49fcda627
46,643
py
Python
grr/server/grr_response_server/gui/api_call_router.py
Dazbeni/grr
5b49a83eba2f84e346a2b50d154264c190a24f08
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/gui/api_call_router.py
Dazbeni/grr
5b49a83eba2f84e346a2b50d154264c190a24f08
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/gui/api_call_router.py
Dazbeni/grr
5b49a83eba2f84e346a2b50d154264c190a24f08
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Lint as: python3 """Router classes route API requests to particular handlers.""" from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import inspect import re from typing import Optional from typing import Text from grr_response_core.li...
33.292648
82
0.723495
aa3901ef9eb89b6eda6e27b4dabed30167c200bb
1,550
py
Python
geomagio/adjusted/transform/ZRotationHScale.py
usgs/geomag-algorithms
a83a0e36bed9307828e37b9130c25dbc26dd1bc9
[ "CC0-1.0" ]
49
2015-10-06T17:57:20.000Z
2022-01-12T18:40:17.000Z
geomagio/adjusted/transform/ZRotationHScale.py
usgs/geomag-algorithms
a83a0e36bed9307828e37b9130c25dbc26dd1bc9
[ "CC0-1.0" ]
229
2015-01-26T20:10:36.000Z
2022-03-12T00:46:33.000Z
geomagio/adjusted/transform/ZRotationHScale.py
usgs/geomag-algorithms
a83a0e36bed9307828e37b9130c25dbc26dd1bc9
[ "CC0-1.0" ]
44
2015-03-03T16:18:18.000Z
2021-11-06T17:07:38.000Z
import numpy as np from typing import List, Optional, Tuple from .LeastSq import LeastSq class ZRotationHscale(LeastSq): """Calculates affine using least squares, constrained to rotate about the Z axis and apply uniform horizontal scaling.""" def get_matrix( self, matrix: List[List[float...
36.046512
84
0.570968
817aae82518add356c97f2c586a545a246129fc9
845
py
Python
electrum_dash/scripts/estimate_fee.py
thephez/electrum-dash
bbf0ba1cc22feebc26d78b5d3b338251a41ca323
[ "MIT" ]
1
2019-09-09T06:54:39.000Z
2019-09-09T06:54:39.000Z
electrum_dash/scripts/estimate_fee.py
thephez/electrum-dash
bbf0ba1cc22feebc26d78b5d3b338251a41ca323
[ "MIT" ]
null
null
null
electrum_dash/scripts/estimate_fee.py
thephez/electrum-dash
bbf0ba1cc22feebc26d78b5d3b338251a41ca323
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import json import asyncio from statistics import median from numbers import Number from electrum_dash.network import filter_protocol, Network from electrum_dash.util import create_and_start_event_loop, log_exceptions loop, stopping_fut, loop_thread = create_and_start_event_loop() network = Ne...
30.178571
92
0.744379
25ba83d58aaedc7ac20a3ba0433f6795d1781bab
524
py
Python
pandas/compat/openpyxl_compat.py
silveto/pandas
0568ed74792152b2e928e25b611074ad0e90a478
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
22
2015-03-05T17:23:34.000Z
2021-12-30T02:52:22.000Z
pandas/compat/openpyxl_compat.py
silveto/pandas
0568ed74792152b2e928e25b611074ad0e90a478
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/compat/openpyxl_compat.py
silveto/pandas
0568ed74792152b2e928e25b611074ad0e90a478
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
22
2015-01-02T12:14:20.000Z
2021-10-13T09:22:30.000Z
""" Detect incompatible version of OpenPyXL GH7169 """ from distutils.version import LooseVersion start_ver = '1.6.1' stop_ver = '2.0.0' def is_compat(): """Detect whether the installed version of openpyxl is supported. Returns ------- compat : bool ``True`` if openpyxl is installed and is...
20.96
75
0.667939
6e1168755100893b7e41e3b4d5662af7924e890f
3,515
py
Python
autokeras/pretrained/voice_generator/deepvoice3_pytorch/builder.py
chenwydj/autokeras
e17e536be6a333865cd8fb47542cb6b736751a65
[ "MIT" ]
1
2019-01-14T11:19:06.000Z
2019-01-14T11:19:06.000Z
autokeras/pretrained/voice_generator/deepvoice3_pytorch/builder.py
CharlotteSean/autokeras
21da0c0ccefd388d07d554e5fd10f04052cb351f
[ "MIT" ]
null
null
null
autokeras/pretrained/voice_generator/deepvoice3_pytorch/builder.py
CharlotteSean/autokeras
21da0c0ccefd388d07d554e5fd10f04052cb351f
[ "MIT" ]
2
2018-11-12T19:43:31.000Z
2018-11-26T08:14:32.000Z
from autokeras.pretrained.voice_generator.deepvoice3_pytorch.model import MultiSpeakerTTSModel, AttentionSeq2Seq def deepvoice3(n_vocab, embed_dim=256, mel_dim=80, linear_dim=513, r=4, downsample_step=1, n_speakers=1, speaker_embed_dim=16, padding_idx=0, dropout=(1 - 0.95)...
39.494382
112
0.6367
f60a46491e70bbb1d95f00b1da3181f8287d742d
1,560
py
Python
app/forms/search.py
dwdraugr/YADS
c8036d8196a3158636aaa4f1910033e70ec8ecb4
[ "Apache-2.0" ]
3
2019-09-02T11:26:58.000Z
2019-12-06T15:54:38.000Z
app/forms/search.py
dwdraugr/YADS
c8036d8196a3158636aaa4f1910033e70ec8ecb4
[ "Apache-2.0" ]
null
null
null
app/forms/search.py
dwdraugr/YADS
c8036d8196a3158636aaa4f1910033e70ec8ecb4
[ "Apache-2.0" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import IntegerField, SelectField, SelectMultipleField, SubmitField, \ StringField from wtforms.validators import DataRequired, Optional, NumberRange class Search(FlaskForm): min_age = IntegerField('From-years', validators=[Optional(), NumberRange(0, 1000, 'Too big ...
43.333333
118
0.642308
c5191b54976b4b2b973f253e26589725335e4b53
959
py
Python
Quizes/dictionary-probabilities-for-all-bigrams/solution.py
stalebi/NLP
26c212694715cb633da9070aa805893c0b76fff6
[ "MIT" ]
null
null
null
Quizes/dictionary-probabilities-for-all-bigrams/solution.py
stalebi/NLP
26c212694715cb633da9070aa805893c0b76fff6
[ "MIT" ]
10
2020-01-28T22:49:30.000Z
2022-02-10T00:41:24.000Z
Quizes/dictionary-probabilities-for-all-bigrams/solution.py
stalebi/NLP
26c212694715cb633da9070aa805893c0b76fff6
[ "MIT" ]
null
null
null
from collections import Counter import utils def bigram_mle(tokens, bigrams): """ provide a dictionary of probabilities for all bigrams in a corpus of text the calculation is based on maximum likelihood estimation and does not include any smoothing. A tag '<unk>' has been added for unknown prob...
34.25
83
0.655892
5642c33eb19d421f2cf04c47c6b45bd14fe3617e
30,239
py
Python
src/sage/geometry/triangulation/element.py
bopopescu/sage
2d495be78e0bdc7a0a635454290b27bb4f5f70f0
[ "BSL-1.0" ]
3
2018-09-11T11:16:26.000Z
2019-09-10T15:26:37.000Z
src/sage/geometry/triangulation/element.py
bopopescu/sage
2d495be78e0bdc7a0a635454290b27bb4f5f70f0
[ "BSL-1.0" ]
2
2018-10-30T13:40:20.000Z
2020-07-23T12:13:30.000Z
src/sage/geometry/triangulation/element.py
bopopescu/sage
2d495be78e0bdc7a0a635454290b27bb4f5f70f0
[ "BSL-1.0" ]
1
2020-07-23T10:22:38.000Z
2020-07-23T10:22:38.000Z
""" A triangulation In Sage, the :class:`~sage.geometry.triangulation.point_configuration.PointConfiguration` and :class:`Triangulation` satisfy a parent/element relationship. In particular, each triangulation refers back to its point configuration. If you want to triangulate a point configuration, you should construc...
36.301321
106
0.531896
00231d7b6c508fe117f109a15e983040e776bc79
36,908
py
Python
api/controllers/tasks.py
vontell/dynabench
5d88346cbbfe5868395cb303eee591487cafbf0f
[ "MIT" ]
null
null
null
api/controllers/tasks.py
vontell/dynabench
5d88346cbbfe5868395cb303eee591487cafbf0f
[ "MIT" ]
null
null
null
api/controllers/tasks.py
vontell/dynabench
5d88346cbbfe5868395cb303eee591487cafbf0f
[ "MIT" ]
null
null
null
# 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 json import secrets from urllib.parse import parse_qs, quote import bottle import sqlalchemy as db import uuid import common.auth as _a...
34.01659
88
0.583315
6afa849ccb6b49112210454dd443406d176b7219
3,207
py
Python
tests/test_getitem.py
m---w/pya
5f3290842db95b722f6c41a97f153352da25353f
[ "MIT" ]
1
2020-12-13T13:17:38.000Z
2020-12-13T13:17:38.000Z
tests/test_getitem.py
m---w/pya
5f3290842db95b722f6c41a97f153352da25353f
[ "MIT" ]
null
null
null
tests/test_getitem.py
m---w/pya
5f3290842db95b722f6c41a97f153352da25353f
[ "MIT" ]
null
null
null
from unittest import TestCase from pya import * import numpy as np import logging logging.basicConfig(level=logging.DEBUG) class TestSlicing(TestCase): def setUp(self): self.sig = np.sin(2 * np.pi * 100 * np.linspace(0, 1, 44100)) self.asine = Asig(self.sig, sr=44100, label="test_sine") s...
39.592593
93
0.611787
4be81689baeda40e508d77dae5d3581db58bd57b
1,611
py
Python
Scripts/mf2fl.py
hyller/GladiatorTool
a28c34e8fb273001b0c70ee0b1f0d99e77ed1ddf
[ "Unlicense" ]
1
2018-04-01T23:13:19.000Z
2018-04-01T23:13:19.000Z
Scripts/mf2fl.py
hyller/GladiatorTool
a28c34e8fb273001b0c70ee0b1f0d99e77ed1ddf
[ "Unlicense" ]
null
null
null
Scripts/mf2fl.py
hyller/GladiatorTool
a28c34e8fb273001b0c70ee0b1f0d99e77ed1ddf
[ "Unlicense" ]
null
null
null
# Exact file list main for source insight from make file based build system # Usage: # Step1: use command make -j4 >> make.txt to collect the build process # Step2: use makefiletofl.bat >> fl.txt to generate the file list to fl.txt # Step3: Form source insight, add files from fl.txt import getopt import sys...
26.85
79
0.579764
44a5576200449ddc0a3c03b416faff90c259dff8
86
py
Python
app/services/tokyo_commodities_exchange/export_site_to_db/quotes_by_trade_date/__init__.py
Tinitto/crypto-exchange
cb61664ff0119d8120315b8c6feb77aeba0ec050
[ "MIT" ]
null
null
null
app/services/tokyo_commodities_exchange/export_site_to_db/quotes_by_trade_date/__init__.py
Tinitto/crypto-exchange
cb61664ff0119d8120315b8c6feb77aeba0ec050
[ "MIT" ]
null
null
null
app/services/tokyo_commodities_exchange/export_site_to_db/quotes_by_trade_date/__init__.py
Tinitto/crypto-exchange
cb61664ff0119d8120315b8c6feb77aeba0ec050
[ "MIT" ]
null
null
null
"""Entry point for service""" from .controller import ControllerForQuotesByTradeDate
21.5
54
0.813953
ece2be9932fb660b853829e930ad5f56519701a5
3,291
py
Python
dataset/data_reader.py
ziapple/fd-dann
72d0a24d94985ba890f371564bb519286644712f
[ "MIT" ]
3
2021-07-03T08:44:06.000Z
2021-12-11T15:13:00.000Z
dataset/data_reader.py
ziapple/fd-dann
72d0a24d94985ba890f371564bb519286644712f
[ "MIT" ]
null
null
null
dataset/data_reader.py
ziapple/fd-dann
72d0a24d94985ba890f371564bb519286644712f
[ "MIT" ]
null
null
null
from scipy.io import loadmat import numpy as np import random import os from PyEMD import EEMD from dataset import data_conf as conf # mat文件为采样样本,采样频率为12k,10秒采集一次,生成一个文件,共samples=122571采集点 # 把这samples大样本数据变成每行是EMD_IMF_SIZE*X_LEN的数据,每行可以看成是一张二维图片(高7,宽400),存储成一维数据 # 把samples样本切分成122571/X_LEN份,每份emd_sample样本长度为X_LEN,emd...
35.387097
111
0.618657
8b02dee7f51f1dbbc4d8e3410e9ab2d5ec8e45ae
628
py
Python
tesseractLineLevel.py
ducanhvna/ocr-tessaract
2ba135d94c1292c3ab3bb81778b4fa2dfd57898f
[ "MIT" ]
null
null
null
tesseractLineLevel.py
ducanhvna/ocr-tessaract
2ba135d94c1292c3ab3bb81778b4fa2dfd57898f
[ "MIT" ]
3
2021-06-08T21:27:40.000Z
2022-01-13T02:40:03.000Z
tesseractLineLevel.py
ducanhvna/ocr-tessaract
2ba135d94c1292c3ab3bb81778b4fa2dfd57898f
[ "MIT" ]
null
null
null
from tesserocr import PyTessBaseAPI, RIL import cv2 with PyTessBaseAPI() as api: api.SetImageFile('image.jpg') print(api.GetUTF8Text()) imagePath = 'image.jpg' img = cv2.imread(imagePath) with PyTessBaseAPI(psm=6, oem=1) as api: level = RIL.TEXTLINE api.SetImageFile(imagePath) api.Recognize() ...
26.166667
86
0.644904
49eed935d6de826c00c5d94d610f7459c9801da1
809
py
Python
venv/lib/python2.7/site-packages/tests/functional_tests/expected_values/openid_yahoo.py
BlueMoon3000/election-2016
9e8f130605bf02ef85391f203381f518e673e183
[ "FSFAP" ]
1
2016-04-06T14:24:52.000Z
2016-04-06T14:24:52.000Z
venv/lib/python2.7/site-packages/tests/functional_tests/expected_values/openid_yahoo.py
BlueMoon3000/election-2016
9e8f130605bf02ef85391f203381f518e673e183
[ "FSFAP" ]
null
null
null
venv/lib/python2.7/site-packages/tests/functional_tests/expected_values/openid_yahoo.py
BlueMoon3000/election-2016
9e8f130605bf02ef85391f203381f518e673e183
[ "FSFAP" ]
null
null
null
import re import fixtures import constants from authomatic.providers import openid conf = fixtures.get_configuration('openid_yahoo') CONFIG = { 'login_xpath': '//*[@id="login-username"]', 'password_xpath': '//*[@id="login-passwd"]', 'consent_xpaths': [ '//*[@id="login-signin"]' ], 'class_...
23.114286
49
0.530284
483ab17faa68417e6a2e9c14a85155544932bfd7
4,968
py
Python
tests/components/scene/test_init.py
twrecked/core
d3ae8a938cdea9b6e0d443c91c37ac3dbbd459ab
[ "Apache-2.0" ]
2
2022-01-24T18:59:56.000Z
2022-02-04T22:12:48.000Z
tests/components/scene/test_init.py
twrecked/core
d3ae8a938cdea9b6e0d443c91c37ac3dbbd459ab
[ "Apache-2.0" ]
5
2021-02-08T20:55:25.000Z
2022-03-12T00:51:18.000Z
tests/components/scene/test_init.py
klauern/home-assistant-core
c18ba6aec0627e6afb6442c678edb5ff2bb17db6
[ "Apache-2.0" ]
2
2020-11-04T07:40:01.000Z
2021-09-13T21:44:03.000Z
"""The tests for the Scene component.""" import io import unittest from homeassistant.components import light, scene from homeassistant.setup import async_setup_component, setup_component from homeassistant.util.yaml import loader as yaml_loader from tests.common import get_test_home_assistant, mock_service from test...
32.900662
87
0.565419
4bbe817efcc15fd23b79c9aefc174bbe8f562de0
8,341
py
Python
scripts/one_time.py
s-ilic/gdm_class_public
4c87916aab5ca124a68f1dd16f31846fc13d1829
[ "MIT" ]
5
2020-04-23T03:30:20.000Z
2021-12-18T17:21:30.000Z
scripts/one_time.py
s-ilic/gdm_class_public
4c87916aab5ca124a68f1dd16f31846fc13d1829
[ "MIT" ]
null
null
null
scripts/one_time.py
s-ilic/gdm_class_public
4c87916aab5ca124a68f1dd16f31846fc13d1829
[ "MIT" ]
null
null
null
# coding: utf-8 # In[1]: # import necessary modules # uncomment to get plots displayed in notebook #%matplotlib inline import matplotlib import matplotlib.pyplot as plt import numpy as np from classy import Class from scipy.optimize import fsolve from scipy.interpolate import interp1d import math # In[2]: # esthe...
33.769231
150
0.654598
ebfdcdbedee0c455529abd8fff9761fe43f24664
737
py
Python
guillotina/tests/test_auth.py
karannaoh/guillotina
dbc04f142734c465a04cb94ef6801ba819e63c76
[ "BSD-2-Clause" ]
null
null
null
guillotina/tests/test_auth.py
karannaoh/guillotina
dbc04f142734c465a04cb94ef6801ba819e63c76
[ "BSD-2-Clause" ]
null
null
null
guillotina/tests/test_auth.py
karannaoh/guillotina
dbc04f142734c465a04cb94ef6801ba819e63c76
[ "BSD-2-Clause" ]
null
null
null
from datetime import datetime from datetime import timedelta from guillotina._settings import app_settings import jwt async def test_jwt_auth(container_requester): async with container_requester as requester: from guillotina.auth.users import ROOT_USER_ID jwt_token = jwt.encode( { ...
29.48
71
0.606513
49d695ed88ad2d2a0968efe30c0cdddde4d7eecd
2,793
py
Python
Easy/563.BinaryTreeTilt.py
YuriSpiridonov/LeetCode
2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781
[ "MIT" ]
39
2020-07-04T11:15:13.000Z
2022-02-04T22:33:42.000Z
Easy/563.BinaryTreeTilt.py
YuriSpiridonov/LeetCode
2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781
[ "MIT" ]
1
2020-07-15T11:53:37.000Z
2020-07-15T11:53:37.000Z
Easy/563.BinaryTreeTilt.py
YuriSpiridonov/LeetCode
2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781
[ "MIT" ]
20
2020-07-14T19:12:53.000Z
2022-03-02T06:28:17.000Z
""" Given the root of a binary tree, return the sum of every tree node's tilt. The tilt of a tree node is the absolute difference between the sum of all left subtree node values and all right subtree node values. If a node does not have a left child, then the sum of the left subtree node values is ...
36.272727
92
0.565342
25396fdc75c1dec03fcd6cb5f5bd44cd7169aa58
3,111
py
Python
unitrail/testrail_filter.py
mettizik/unitrail
e634c6bcd1afac9297940f26f323bd3a104d91d2
[ "MIT" ]
null
null
null
unitrail/testrail_filter.py
mettizik/unitrail
e634c6bcd1afac9297940f26f323bd3a104d91d2
[ "MIT" ]
3
2020-01-02T16:18:58.000Z
2021-04-03T18:11:10.000Z
unitrail/testrail_filter.py
mettizik/unitrail
e634c6bcd1afac9297940f26f323bd3a104d91d2
[ "MIT" ]
null
null
null
from logging import debug def create_testrun(client, mapping): debug('Loading test sections from TestRail...') sections = client.get_sections() filtered_sections = [] debug('Done!') condition = mapping['filters'] if 'section' in condition: filtered_sections = apply_section_fi...
34.955056
95
0.633237
c9950b88668c13a68c7d3b68a9ce92c248dc3f74
1,557
py
Python
chokozainerrl/envs/toy_text/discrete.py
chokozainer/chokozainerrl
7745e307dba715f11887ccccce8cf1067ecfb99f
[ "BSD-2-Clause" ]
123
2018-11-20T09:14:29.000Z
2020-12-28T20:05:55.000Z
chokozainerrl/envs/toy_text/discrete.py
chokozainer/chokozainerrl
7745e307dba715f11887ccccce8cf1067ecfb99f
[ "BSD-2-Clause" ]
5
2020-09-26T01:30:01.000Z
2022-01-13T03:15:42.000Z
chokozainerrl/envs/toy_text/discrete.py
chokozainer/chokozainerrl
7745e307dba715f11887ccccce8cf1067ecfb99f
[ "BSD-2-Clause" ]
46
2018-12-08T23:12:52.000Z
2021-01-15T12:08:00.000Z
import numpy as np from gym import Env, spaces from gym.utils import seeding def categorical_sample(prob_n, np_random): """ Sample from categorical distribution Each row specifies class probabilities """ prob_n = np.asarray(prob_n) csprob_n = np.cumsum(prob_n) return (csprob_n > np_random....
25.95
75
0.603725
c4c6f3819e88e7564967ae52e90f348039667772
2,753
py
Python
cloudroast/images/v2/functional/test_delete_image_tag_negative.py
lmaycotte/cloudroast
c1835aa45e0e86c755d4b24b33e12ba30eee1995
[ "Apache-2.0" ]
null
null
null
cloudroast/images/v2/functional/test_delete_image_tag_negative.py
lmaycotte/cloudroast
c1835aa45e0e86c755d4b24b33e12ba30eee1995
[ "Apache-2.0" ]
null
null
null
cloudroast/images/v2/functional/test_delete_image_tag_negative.py
lmaycotte/cloudroast
c1835aa45e0e86c755d4b24b33e12ba30eee1995
[ "Apache-2.0" ]
null
null
null
""" Copyright 2013 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dist...
33.168675
75
0.694878
9208a7e1c29b07c03253e892ac06ad014397ef6b
10,341
py
Python
game/gamesrc/scripts/examples/red_button_scripts.py
abbacode/avaloria
02e1805ac6e74543c96408b7951429f94bc140ca
[ "ClArtistic" ]
null
null
null
game/gamesrc/scripts/examples/red_button_scripts.py
abbacode/avaloria
02e1805ac6e74543c96408b7951429f94bc140ca
[ "ClArtistic" ]
null
null
null
game/gamesrc/scripts/examples/red_button_scripts.py
abbacode/avaloria
02e1805ac6e74543c96408b7951429f94bc140ca
[ "ClArtistic" ]
null
null
null
""" Example of scripts. These are scripts intended for a particular object - the red_button object type in gamesrc/types/examples. A few variations on uses of scripts are included. """ from ev import Script from game.gamesrc.commands.examples import cmdset_red_button as cmdsetexamples # # Scripts as state-managers #...
37.467391
87
0.647423
d4c61507c2b5a37ea63aeebce9b905f2933b15fc
49,154
py
Python
fhirclient/models/molecularsequence.py
mdx-dev/client-py
f6c16c9bd386c5b05d69753b89c6519d568814ac
[ "Apache-2.0" ]
null
null
null
fhirclient/models/molecularsequence.py
mdx-dev/client-py
f6c16c9bd386c5b05d69753b89c6519d568814ac
[ "Apache-2.0" ]
null
null
null
fhirclient/models/molecularsequence.py
mdx-dev/client-py
f6c16c9bd386c5b05d69753b89c6519d568814ac
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/MolecularSequence) on 2019-01-22. # 2019, SMART Health IT. from . import domainresource class MolecularSequence(domainresource.DomainResource): """ I n f o r ...
12.07715
114
0.283192
42f46cc2fad3901801d97d798e1c10f4a5315f8d
980
py
Python
tests/test_gremlin_pl_performance.py
joshim5/mogwai
917fe5b2dea9c3adc3a3d1dfe41ae33c3ae86f55
[ "BSD-3-Clause" ]
24
2020-11-20T19:10:23.000Z
2022-03-13T13:26:56.000Z
tests/test_gremlin_pl_performance.py
joshim5/mogwai
917fe5b2dea9c3adc3a3d1dfe41ae33c3ae86f55
[ "BSD-3-Clause" ]
10
2020-10-21T21:42:14.000Z
2020-11-18T07:57:30.000Z
tests/test_gremlin_pl_performance.py
joshim5/mogwai
917fe5b2dea9c3adc3a3d1dfe41ae33c3ae86f55
[ "BSD-3-Clause" ]
7
2020-12-27T00:44:18.000Z
2021-11-07T05:16:49.000Z
import torch import unittest import pytorch_lightning as pl from mogwai.data_loading import A3M_MSADataModule, parse_cf from mogwai.models import GremlinPseudolikelihood class TestGremlinPLPerformance(unittest.TestCase): def setUp(self): npz_path = "data/test/4rb6Y/4rb6Y.i90c75.a3m" self.dm = A3...
27.222222
79
0.667347
b187a375e290dfea01efc5677f98e7e548373319
142
py
Python
pys/mongodt.py
nahian-147/my_codes
9729c56b227d75354ea49982720de94ed1c21909
[ "MIT" ]
null
null
null
pys/mongodt.py
nahian-147/my_codes
9729c56b227d75354ea49982720de94ed1c21909
[ "MIT" ]
null
null
null
pys/mongodt.py
nahian-147/my_codes
9729c56b227d75354ea49982720de94ed1c21909
[ "MIT" ]
null
null
null
db.inventory.insert_one( {"item": "canvas", "qty": 100, "tags": ["cotton"], "size": {"h": 28, "w": 35.5, "uom": "cm"}})
28.4
48
0.443662
35af0ba7bcfbb8592aaf75156cb4872268861232
3,511
py
Python
Backend/traveldiary/settings.py
iamzeynepcetin/TravelDiary
ba0b86f2daf9d0abd2bea4f002911d705fd30593
[ "MIT" ]
1
2020-04-01T20:31:27.000Z
2020-04-01T20:31:27.000Z
Backend/traveldiary/settings.py
zcetin/TravelDiary
ba0b86f2daf9d0abd2bea4f002911d705fd30593
[ "MIT" ]
7
2021-03-10T13:09:59.000Z
2022-02-27T02:20:55.000Z
Backend/traveldiary/settings.py
zcetin/TravelDiary
ba0b86f2daf9d0abd2bea4f002911d705fd30593
[ "MIT" ]
null
null
null
""" Django settings for traveldiary project. Generated by 'django-admin startproject' using Django 3.0.4. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import o...
25.258993
91
0.686699
6033799e59955cc261dca8cb790028e78a425584
382
py
Python
forms_app/migrations/0002_auto_20181015_1941.py
cs-fullstack-fall-2018/django-forms2-psanon19
23ec751b4d11ba5bdb9749fb545164c6926aa8ed
[ "Apache-2.0" ]
null
null
null
forms_app/migrations/0002_auto_20181015_1941.py
cs-fullstack-fall-2018/django-forms2-psanon19
23ec751b4d11ba5bdb9749fb545164c6926aa8ed
[ "Apache-2.0" ]
null
null
null
forms_app/migrations/0002_auto_20181015_1941.py
cs-fullstack-fall-2018/django-forms2-psanon19
23ec751b4d11ba5bdb9749fb545164c6926aa8ed
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.6 on 2018-10-15 19:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('forms_app', '0001_initial'), ] operations = [ migrations.AlterField( model_name='formmodel', name='recipe', ...
20.105263
52
0.594241
08fbced2a9dae98e2c65e378c104d9e23adb0994
3,447
py
Python
meraki/api/switch_port_schedules.py
fsandberg/dashboard-api-python
c01ff038643a39bd12660d2719375eeb05c7ba24
[ "MIT" ]
null
null
null
meraki/api/switch_port_schedules.py
fsandberg/dashboard-api-python
c01ff038643a39bd12660d2719375eeb05c7ba24
[ "MIT" ]
null
null
null
meraki/api/switch_port_schedules.py
fsandberg/dashboard-api-python
c01ff038643a39bd12660d2719375eeb05c7ba24
[ "MIT" ]
null
null
null
class SwitchPortSchedules(object): def __init__(self, session): super(SwitchPortSchedules, self).__init__() self._session = session def getNetworkSwitchPortSchedules(self, networkId: str): """ **List switch port schedules** https://developer.cisco.com/docs/meraki-api...
37.467391
120
0.630983
7c1a859127f666e7236fe812aca9a4668618dfef
384
py
Python
examples/data/dp_b.large.generator.py
uta8a/Jikka
6cc465a9c233bea91ad149dadd0a8a7cd1a223eb
[ "Apache-2.0" ]
139
2019-07-19T15:09:34.000Z
2022-03-10T06:26:04.000Z
examples/data/dp_b.large.generator.py
uta8a/Jikka
6cc465a9c233bea91ad149dadd0a8a7cd1a223eb
[ "Apache-2.0" ]
102
2019-07-19T16:49:08.000Z
2021-09-26T14:45:32.000Z
examples/data/dp_b.large.generator.py
uta8a/Jikka
6cc465a9c233bea91ad149dadd0a8a7cd1a223eb
[ "Apache-2.0" ]
11
2019-10-17T05:46:10.000Z
2022-02-27T14:05:19.000Z
#!/usr/bin/env python3 import argparse import random def main() -> None: parser = argparse.ArgumentParser() parser.add_argument('-n', type=int, default=random.randint(2, 10**5)) args = parser.parse_args() k = random.randint(1, 100) h = [random.randint(1, 10**4) for _ in range(args.n)] print(a...
20.210526
73
0.630208
92d57e37575020287411c15892ada7c2d6327eec
1,004
py
Python
tools/deepke/attribution_extraction/standard/models/LM.py
dfface/DoctorKG
6bd6ebec8244a9ce0a2c8c278a704f02b9afaaf8
[ "MIT" ]
1
2022-03-26T16:08:08.000Z
2022-03-26T16:08:08.000Z
tools/deepke/attribution_extraction/standard/models/LM.py
dfface/DoctorKG
6bd6ebec8244a9ce0a2c8c278a704f02b9afaaf8
[ "MIT" ]
null
null
null
tools/deepke/attribution_extraction/standard/models/LM.py
dfface/DoctorKG
6bd6ebec8244a9ce0a2c8c278a704f02b9afaaf8
[ "MIT" ]
null
null
null
import os import sys sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../"))) from torch import nn from . import BasicModule from module import RNN from transformers import BertModel from utils import seq_len_to_mask class LM(BasicModule): def __init__(self, cfg): sup...
33.466667
100
0.655378
29ec821f3230646b6f8c7193f670ff65d64f49c5
5,146
py
Python
commands.py
feasiblereplica/kindlebox
84c7b75eea013e04780d7bdbb77dfc387cebf75a
[ "MIT" ]
null
null
null
commands.py
feasiblereplica/kindlebox
84c7b75eea013e04780d7bdbb77dfc387cebf75a
[ "MIT" ]
null
null
null
commands.py
feasiblereplica/kindlebox
84c7b75eea013e04780d7bdbb77dfc387cebf75a
[ "MIT" ]
null
null
null
import logging import time import os from dropbox.client import DropboxClient from flask_script import Command from flask_script import Option from app import app from app import db from app import emailer from app import filesystem from app.kindleboxer import kindlebox from app.kindleboxer import send_books from app...
34.536913
152
0.633502
eb7f17a8c06169880414d41e7de4ddd6e3dfd62d
10,505
py
Python
libcloud/http.py
pepeproject/libcloud
0feff41370f26d2c14f7a25b5607c8b0dec1c97e
[ "Apache-2.0" ]
2
2019-08-20T03:47:19.000Z
2019-08-21T14:52:08.000Z
libcloud/http.py
pepeproject/libcloud
0feff41370f26d2c14f7a25b5607c8b0dec1c97e
[ "Apache-2.0" ]
1
2019-08-20T03:47:23.000Z
2019-08-20T03:47:23.000Z
libcloud/http.py
pepeproject/libcloud
0feff41370f26d2c14f7a25b5607c8b0dec1c97e
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
31.079882
79
0.617991
a5991f4787639c49014a484883950093eedc8645
2,275
py
Python
setup.py
GvS666/django-graphql-jwt
cf54794acb0e186707f9434a184199ce59e67e0a
[ "MIT" ]
null
null
null
setup.py
GvS666/django-graphql-jwt
cf54794acb0e186707f9434a184199ce59e67e0a
[ "MIT" ]
null
null
null
setup.py
GvS666/django-graphql-jwt
cf54794acb0e186707f9434a184199ce59e67e0a
[ "MIT" ]
null
null
null
#!/usr/bin/env python import io import os import re from collections import OrderedDict from setuptools import find_packages, setup def get_long_description(): for filename in ('README.rst',): with io.open(filename, 'r', encoding='utf-8') as f: yield f.read() def get_version(package): ...
31.164384
75
0.586374
9176ad99ff4e5561887efcc674969766af58be85
815
py
Python
setup.py
gauravaror/pydano
49e29e63f8c835e634854d7e417b430510714912
[ "MIT" ]
null
null
null
setup.py
gauravaror/pydano
49e29e63f8c835e634854d7e417b430510714912
[ "MIT" ]
null
null
null
setup.py
gauravaror/pydano
49e29e63f8c835e634854d7e417b430510714912
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="pydano", version="0.0.8", author="Gaurav Arora", description="Library to interact with cardano network", long_description=long_description, long_description_content_type="text/markdown...
31.346154
76
0.663804
065cf4d830c7a3aa740feb8b2c3b459b9a2332dd
4,129
py
Python
maro/rl/exploration/noise_explorer.py
yourmoonlight/maro
4fbe556f3ae1817995f90cb529e9ca6191f67d7f
[ "MIT" ]
1
2021-01-13T06:41:51.000Z
2021-01-13T06:41:51.000Z
maro/rl/exploration/noise_explorer.py
chaosddp/maro
3d6715649467d49a83886c1fd4ae9b41ff012a50
[ "MIT" ]
null
null
null
maro/rl/exploration/noise_explorer.py
chaosddp/maro
3d6715649467d49a83886c1fd4ae9b41ff012a50
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from abc import abstractmethod from typing import Union import numpy as np from .abs_explorer import AbsExplorer class NoiseExplorer(AbsExplorer): """Explorer that adds a random noise to a model-generated action.""" def __init__( ...
42.132653
118
0.685638
33c4895b27f8affa1cb691fe76a74a553d9c50b2
21,361
py
Python
wrappers/python/indy/did.py
zhigunenko-dsr/indy-sdk
25b7635b656344675b8ba6bf43f4a8a97875698d
[ "Apache-2.0" ]
null
null
null
wrappers/python/indy/did.py
zhigunenko-dsr/indy-sdk
25b7635b656344675b8ba6bf43f4a8a97875698d
[ "Apache-2.0" ]
null
null
null
wrappers/python/indy/did.py
zhigunenko-dsr/indy-sdk
25b7635b656344675b8ba6bf43f4a8a97875698d
[ "Apache-2.0" ]
null
null
null
from typing import Optional from .libindy import do_call, create_cb from ctypes import * import logging async def create_and_store_my_did(wallet_handle: int, did_json: str) -> (str, str): """ Creates keys (signing and encryption keys) for a new DID (owned by the caller...
35.424544
115
0.612939
9e91379cbf0757cbb0174ec22f34da8757dbe0fc
93,426
py
Python
qa/rpc-tests/p2p-segwit.py
xeonchain/XEON-Chain
735aa1ec8e296e0c8cb38ef2c421b1fcf9c22f95
[ "MIT" ]
null
null
null
qa/rpc-tests/p2p-segwit.py
xeonchain/XEON-Chain
735aa1ec8e296e0c8cb38ef2c421b1fcf9c22f95
[ "MIT" ]
null
null
null
qa/rpc-tests/p2p-segwit.py
xeonchain/XEON-Chain
735aa1ec8e296e0c8cb38ef2c421b1fcf9c22f95
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.mininode import * from test_framework.test_framework import BitcoinTestFramework from test...
45.640449
143
0.657986
fdea73f3c6332bd167a78a85c33fb22767c694ee
14,908
py
Python
nessclient/event.py
nickw444/py-ness-232
783d3c713d22a53108ec8f9494386ba6e4f71d15
[ "MIT" ]
9
2018-11-19T05:08:57.000Z
2021-07-09T03:34:51.000Z
nessclient/event.py
nickw444/nessclient
783d3c713d22a53108ec8f9494386ba6e4f71d15
[ "MIT" ]
14
2018-11-15T07:32:55.000Z
2021-06-02T04:35:46.000Z
nessclient/event.py
nickw444/py-ness-232
783d3c713d22a53108ec8f9494386ba6e4f71d15
[ "MIT" ]
3
2019-03-11T05:07:28.000Z
2021-09-08T07:04:23.000Z
import datetime import struct from enum import Enum from typing import List, Optional, TypeVar, Type from .packet import CommandType, Packet T = TypeVar('T', bound=Enum) def unpack_unsigned_short_data_enum(packet: Packet, enum_type: Type[T]) -> List[T]: data = bytearray.fromhex(packet.data) (raw_data,) = st...
32.692982
89
0.62557
de1007286f5bfdc55f12d1d90fda1e1db1e49737
5,394
py
Python
Access/api/api_v1/endpoints/punishment.py
MioYvo/RCS
280a993ef4790850f3ebb1556b78f97eaee48142
[ "Apache-2.0" ]
1
2022-03-25T08:02:20.000Z
2022-03-25T08:02:20.000Z
Access/api/api_v1/endpoints/punishment.py
MioYvo/RCS
280a993ef4790850f3ebb1556b78f97eaee48142
[ "Apache-2.0" ]
null
null
null
Access/api/api_v1/endpoints/punishment.py
MioYvo/RCS
280a993ef4790850f3ebb1556b78f97eaee48142
[ "Apache-2.0" ]
null
null
null
# __author__ = "Mio" # __email__: "liurusi.101@gmail.com" # created: 5/18/21 6:41 PM import datetime from decimal import Decimal from typing import Union, List from pydantic import BaseModel, Field as PDField from fastapi import APIRouter, Query, Depends from odmantic import ObjectId from odmantic.bson import BSON_TYP...
40.863636
104
0.697256
ad8f28f40bb58102a93fc98ddf260c6cc72ab1a2
11,111
py
Python
python/paddle/nn/__init__.py
zmxdream/Paddle
04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c
[ "Apache-2.0" ]
2
2021-11-12T11:31:12.000Z
2021-12-05T10:30:28.000Z
python/paddle/nn/__init__.py
zmxdream/Paddle
04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c
[ "Apache-2.0" ]
null
null
null
python/paddle/nn/__init__.py
zmxdream/Paddle
04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c
[ "Apache-2.0" ]
1
2021-08-21T06:57:20.000Z
2021-08-21T06:57:20.000Z
# Copyright (c) 2020 PaddlePaddle 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 app...
35.726688
77
0.663037
633f1164a7c2570c6a6ca97fd8b1f84d4a0a06a6
1,624
py
Python
shards/utils/plugins/__init__.py
ReigenAraka/milvus
b2f19ace0e1dcd431a512141f42b748581d4b92d
[ "Apache-2.0" ]
4
2020-07-29T02:59:53.000Z
2021-11-16T11:07:51.000Z
shards/utils/plugins/__init__.py
liangwlw/milvus
7e7f626b9c7288c1c82f5dafed87d33897f4b64e
[ "Apache-2.0" ]
2
2020-08-20T07:17:50.000Z
2020-08-21T04:21:34.000Z
shards/utils/plugins/__init__.py
liangwlw/milvus
7e7f626b9c7288c1c82f5dafed87d33897f4b64e
[ "Apache-2.0" ]
2
2021-06-09T23:50:48.000Z
2021-06-17T06:24:29.000Z
import os import inspect from functools import partial from utils.pluginextension import MiPluginBase as PluginBase class BaseMixin(object): def __init__(self, package_name, searchpath=None): self.plugin_package_name = package_name caller_path = os.path.dirname(inspect.stack()[1][1]) get_...
39.609756
102
0.654557
6774f90000a8f811818266644c988ffa780a395a
14,693
py
Python
src/garage/envs/gym_env.py
qureshinomaan/garage
a54a14563080a2df00a38f331dd5a32ff2023c22
[ "MIT" ]
null
null
null
src/garage/envs/gym_env.py
qureshinomaan/garage
a54a14563080a2df00a38f331dd5a32ff2023c22
[ "MIT" ]
null
null
null
src/garage/envs/gym_env.py
qureshinomaan/garage
a54a14563080a2df00a38f331dd5a32ff2023c22
[ "MIT" ]
null
null
null
"""Wrapper class that converts gym.Env into GymEnv.""" import copy import warnings import akro import gym import numpy as np from garage import Environment, EnvSpec, EnvStep, StepType # The gym environments using one of the packages in the following lists as # entry points don't close their viewer windows. KNOWN_GY...
37.674359
80
0.600694
c88afeea24889be24d88d5187cd924b4e91ac54d
2,956
py
Python
plenum/test/node_catchup/test_catchup_delayed_nodes.py
steptan/indy-plenum
488bf63c82753a74a92ac6952da784825ffd4a3d
[ "Apache-2.0" ]
null
null
null
plenum/test/node_catchup/test_catchup_delayed_nodes.py
steptan/indy-plenum
488bf63c82753a74a92ac6952da784825ffd4a3d
[ "Apache-2.0" ]
null
null
null
plenum/test/node_catchup/test_catchup_delayed_nodes.py
steptan/indy-plenum
488bf63c82753a74a92ac6952da784825ffd4a3d
[ "Apache-2.0" ]
null
null
null
import pytest from stp_core.common.log import getlogger from plenum.test import waits from plenum.test.delayers import cpDelay from plenum.test.helper import sendReqsToNodesAndVerifySuffReplies from plenum.test.node_catchup.helper import waitNodeDataEquality from plenum.test.pool_transactions.helper import addNewStew...
42.228571
78
0.64682
b6a7ff022654e60f29ecb2f39908b4be8fc9d3ff
4,197
py
Python
scripts/build/builders/host.py
bluebin14/connectedhomeip
257d179c8ee9dc08c1e9c76888d69ef2d4929bcd
[ "Apache-2.0" ]
1
2022-03-05T15:47:51.000Z
2022-03-05T15:47:51.000Z
scripts/build/builders/host.py
bluebin14/connectedhomeip
257d179c8ee9dc08c1e9c76888d69ef2d4929bcd
[ "Apache-2.0" ]
2
2021-01-21T11:02:53.000Z
2021-06-02T12:50:08.000Z
scripts/build/builders/host.py
bluebin14/connectedhomeip
257d179c8ee9dc08c1e9c76888d69ef2d4929bcd
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 Project CHIP 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 ...
31.795455
108
0.594472
a008c967411db427c3150fab81375086a1f52718
418
py
Python
python/parse.py
nbuilding/N-lang
eab155166943c5fd44b79962e008f94924d836a1
[ "MIT" ]
22
2020-12-21T22:11:31.000Z
2022-02-08T11:30:05.000Z
python/parse.py
nbuilding/N-lang
eab155166943c5fd44b79962e008f94924d836a1
[ "MIT" ]
182
2020-12-20T01:50:48.000Z
2022-01-18T02:05:48.000Z
python/parse.py
nbuilding/N-lang
eab155166943c5fd44b79962e008f94924d836a1
[ "MIT" ]
11
2020-12-25T22:16:54.000Z
2021-06-16T21:38:46.000Z
import sys from os import path from lark import Lark import lark # https://stackoverflow.com/a/4381638 basepath = "" if getattr(sys, "frozen", False): basepath = path.dirname(sys.executable) elif __file__: basepath = path.dirname(__file__) syntaxpath = path.join(basepath, "syntax.lark") with open(syntaxpath,...
22
63
0.722488
4f9da26572eb987d36e8901d7eec89b463e73f5b
3,203
py
Python
netbox/ipam/api/views.py
nathbooth/netbox
0b37d4f5e68017c47e0d530a3f2c8481b54d2f56
[ "Apache-2.0" ]
null
null
null
netbox/ipam/api/views.py
nathbooth/netbox
0b37d4f5e68017c47e0d530a3f2c8481b54d2f56
[ "Apache-2.0" ]
null
null
null
netbox/ipam/api/views.py
nathbooth/netbox
0b37d4f5e68017c47e0d530a3f2c8481b54d2f56
[ "Apache-2.0" ]
null
null
null
from rest_framework import generics from ipam.models import VRF, Role, RIR, Aggregate, Prefix, IPAddress, VLAN from ipam.filters import AggregateFilter, PrefixFilter, IPAddressFilter, VLANFilter from . import serializers class VRFListView(generics.ListAPIView): """ List all VRFs """ queryset = VRF.o...
25.624
90
0.715891
82273d438ab42f7c9e7dc470aaf1af4333336aa8
30,162
py
Python
test/splitgraph/commandline/test_cloud.py
Trase/splitgraph
ef8332b29640230f4eebcbb350a37c67285064b1
[ "Apache-2.0" ]
null
null
null
test/splitgraph/commandline/test_cloud.py
Trase/splitgraph
ef8332b29640230f4eebcbb350a37c67285064b1
[ "Apache-2.0" ]
null
null
null
test/splitgraph/commandline/test_cloud.py
Trase/splitgraph
ef8332b29640230f4eebcbb350a37c67285064b1
[ "Apache-2.0" ]
null
null
null
import json import os from contextlib import contextmanager from tempfile import TemporaryDirectory from typing import Optional from unittest.mock import patch, PropertyMock, call, Mock import httpretty import pytest from click.testing import CliRunner from httpretty.core import HTTPrettyRequest from splitgraph.__ver...
35.235981
748
0.592401
2d4c94924e08f4474413bcef7c2949125146f028
200
py
Python
instaclone/admin.py
ZephonMakale/Zeph-Insty
6138c5cc2944065967587bf8ae718f5a53f3004e
[ "MIT" ]
null
null
null
instaclone/admin.py
ZephonMakale/Zeph-Insty
6138c5cc2944065967587bf8ae718f5a53f3004e
[ "MIT" ]
9
2021-03-30T14:22:36.000Z
2022-03-12T00:53:40.000Z
instaclone/admin.py
ZephonMakale/Zeph-Insty
6138c5cc2944065967587bf8ae718f5a53f3004e
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Profile, Post, Comment, Follow admin.site.register(Profile) admin.site.register(Post) admin.site.register(Comment) admin.site.register(Follow)
18.181818
50
0.8
3010d4de4db81b826defd55eeb97ced413d8647c
276
py
Python
setup.py
cmastalli/whole_body_state_conversions
c7d9a3076003504f359bd0dda3c8235bbc4df8b9
[ "BSD-3-Clause" ]
null
null
null
setup.py
cmastalli/whole_body_state_conversions
c7d9a3076003504f359bd0dda3c8235bbc4df8b9
[ "BSD-3-Clause" ]
9
2021-01-27T00:57:48.000Z
2022-03-02T22:32:20.000Z
setup.py
cmastalli/whole_body_state_conversions
c7d9a3076003504f359bd0dda3c8235bbc4df8b9
[ "BSD-3-Clause" ]
2
2021-01-26T16:32:35.000Z
2021-11-26T10:13:48.000Z
#!/usr/bin/env python from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup # fetch values from package.xml setup_args = generate_distutils_setup(packages=['whole_body_state_conversions'], package_dir={'': 'src'}) setup(**setup_args)
30.666667
105
0.807971
116fab5b751f6196ec97fd75d372f0498ec7d354
1,056
py
Python
tests/h/presenters/user_json_test.py
julien-cheng/h
36c8ec044725720cf36f0986cdf025395aca8929
[ "BSD-2-Clause" ]
2
2019-08-04T07:22:11.000Z
2020-07-17T05:01:41.000Z
tests/h/presenters/user_json_test.py
fuelpress/i.fuel.press
af7b25895d813af0fef656dcf483afe852a99d76
[ "BSD-2-Clause" ]
null
null
null
tests/h/presenters/user_json_test.py
fuelpress/i.fuel.press
af7b25895d813af0fef656dcf483afe852a99d76
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import pytest from h.presenters.user_json import UserJSONPresenter, TrustedUserJSONPresenter class TestUserJSONPresenter(object): def test_asdict(self, user): presenter = UserJSONPresenter(user) assert presenter.asdict() == { ...
24.55814
78
0.617424
571fd5477424e3e86c64c621ab154da58001583b
18,330
py
Python
src/ezdxf/entities/viewport.py
mamofejo/ezdxf
bd5a08a85608360266eb8702d48638195c72c247
[ "MIT" ]
null
null
null
src/ezdxf/entities/viewport.py
mamofejo/ezdxf
bd5a08a85608360266eb8702d48638195c72c247
[ "MIT" ]
null
null
null
src/ezdxf/entities/viewport.py
mamofejo/ezdxf
bd5a08a85608360266eb8702d48638195c72c247
[ "MIT" ]
null
null
null
# Copyright (c) 2019-2021 Manfred Moitzi # License: MIT License from typing import TYPE_CHECKING, List, Iterable from ezdxf.lldxf import validator from ezdxf.lldxf import const from ezdxf.lldxf.attributes import ( DXFAttr, DXFAttributes, DefSubclass, XType, RETURN_DEFAULT, group_code_mapping, ) from ezdxf.lldxf...
39.761388
80
0.626514
3ae1be8cf7f37c03eab6d0a90e7ffd8351c40742
1,337
py
Python
scripts/constants.py
voyager-client/python
d30de935c9cf30fa9e9e4c90714f3868767f4065
[ "Apache-2.0" ]
null
null
null
scripts/constants.py
voyager-client/python
d30de935c9cf30fa9e9e4c90714f3868767f4065
[ "Apache-2.0" ]
1
2018-06-24T20:33:11.000Z
2018-06-24T20:33:11.000Z
scripts/constants.py
voyager-client/python
d30de935c9cf30fa9e9e4c90714f3868767f4065
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 The Kubernetes 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 ...
30.386364
74
0.717277
b2cb53f274624cb6dc6aae90e5d5583da026e659
2,158
py
Python
server/converters/tojson.py
cts2/rf2service
70e4050adfcaf9df3aab43bd09d51a225f1e4043
[ "BSD-3-Clause" ]
null
null
null
server/converters/tojson.py
cts2/rf2service
70e4050adfcaf9df3aab43bd09d51a225f1e4043
[ "BSD-3-Clause" ]
null
null
null
server/converters/tojson.py
cts2/rf2service
70e4050adfcaf9df3aab43bd09d51a225f1e4043
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2013, Mayo Clinic # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # Redistributions of source code must retain the above copyright notice, this # ...
44.958333
98
0.752085
3718034624136e896846a09c044b2cebb9abbf97
4,071
py
Python
Vector.py
Berkmann18/Asteroid
a541f8bdf84ff50c0bc0216899465b94fc614623
[ "MIT" ]
null
null
null
Vector.py
Berkmann18/Asteroid
a541f8bdf84ff50c0bc0216899465b94fc614623
[ "MIT" ]
null
null
null
Vector.py
Berkmann18/Asteroid
a541f8bdf84ff50c0bc0216899465b94fc614623
[ "MIT" ]
null
null
null
""" Vector.py The module that implements vectors and all the necessary methods that comes with vectors. """ import math class Vector: """ The Vector class """ # Initialiser def __init__(self, p=(0, 0)): self.x = p[0] self.y = p[1] @property def __str__(sel...
23.947059
90
0.478752
d528ad4fcff95642966a0cdb7baf947a2e8d5841
3,513
py
Python
backend/logs/run_logs_analysis.py
xuantan/viewfinder
992209086d01be0ef6506f325cf89b84d374f969
[ "Apache-2.0" ]
645
2015-01-03T02:03:59.000Z
2021-12-03T08:43:16.000Z
backend/logs/run_logs_analysis.py
hoowang/viewfinder
9caf4e75faa8070d85f605c91d4cfb52c4674588
[ "Apache-2.0" ]
null
null
null
backend/logs/run_logs_analysis.py
hoowang/viewfinder
9caf4e75faa8070d85f605c91d4cfb52c4674588
[ "Apache-2.0" ]
222
2015-01-07T05:00:52.000Z
2021-12-06T09:54:26.000Z
# Copyright 2012 Viewfinder Inc. All Rights Reserved. """Run logs analysis jobs that depend on each other while holding the job:logs_analysis lock. We can't import those modules as too many global variables would conflict (flags, process name etc...). Sequentially run jobs that depend on each other. Sets of jobs are...
38.604396
110
0.665243
31ce153c30f227938e62968e54be860d9d477aa3
19,456
py
Python
tests/algorithms/scaling/test_scaling_utilities.py
dials-src/dials
25055c1f6164dc33e672e7c5c6a9c5a35e870660
[ "BSD-3-Clause" ]
1
2021-12-10T17:28:16.000Z
2021-12-10T17:28:16.000Z
tests/algorithms/scaling/test_scaling_utilities.py
dials-src/dials
25055c1f6164dc33e672e7c5c6a9c5a35e870660
[ "BSD-3-Clause" ]
null
null
null
tests/algorithms/scaling/test_scaling_utilities.py
dials-src/dials
25055c1f6164dc33e672e7c5c6a9c5a35e870660
[ "BSD-3-Clause" ]
1
2021-12-07T12:39:04.000Z
2021-12-07T12:39:04.000Z
""" Tests for scaling utilities module. """ from __future__ import annotations from math import pi, sqrt import numpy as np import pytest from dxtbx.model import ( Beam, Crystal, Experiment, ExperimentList, GoniometerFactory, Scan, ) from dxtbx.serialize import load from libtbx import phil f...
34.619217
98
0.619655
2ace3ed68ff3f81b5059e05f20d86a32b498c7b3
3,897
py
Python
airbnb_app/tokenizer.py
dakotagporter/airbnb
8b1f4eb07a5fc8a9d0d889ecfe42b1b4e8bc518d
[ "MIT" ]
null
null
null
airbnb_app/tokenizer.py
dakotagporter/airbnb
8b1f4eb07a5fc8a9d0d889ecfe42b1b4e8bc518d
[ "MIT" ]
null
null
null
airbnb_app/tokenizer.py
dakotagporter/airbnb
8b1f4eb07a5fc8a9d0d889ecfe42b1b4e8bc518d
[ "MIT" ]
null
null
null
import re import pickle import unicodedata from nltk.tokenize.toktok import ToktokTokenizer from nltk import PorterStemmer from bs4 import BeautifulSoup from .stuff import CONTRACTION_MAP stopword_list = pickle.load(open('stopwords.pickle', 'rb')) tokenizer = ToktokTokenizer() vectorizer = pickle.load(open('vectorizer...
33.594828
78
0.654093
0d3667902bbccc9b61e8170990708d58efa37fc9
6,400
py
Python
library/javax.py
nhojpatrick/ansible-role-weblogic
418fc04b6824a1d4b4f80842ba60165754966451
[ "Apache-2.0" ]
8
2018-10-16T18:30:03.000Z
2020-09-30T08:11:04.000Z
library/javax.py
nhojpatrick/ansible-role-weblogic
418fc04b6824a1d4b4f80842ba60165754966451
[ "Apache-2.0" ]
1
2020-08-07T16:35:12.000Z
2021-06-16T02:29:42.000Z
library/javax.py
nhojpatrick/ansible-role-weblogic
418fc04b6824a1d4b4f80842ba60165754966451
[ "Apache-2.0" ]
23
2018-12-28T06:03:16.000Z
2022-03-23T03:16:07.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2014, Timothy Appnel <tim@appnel.com> # # Ansible 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 License, or # (at your option) any lat...
37.426901
571
0.648125
c55bfa9a7d5f2dd8ae71fbb5bf137f11fbeb45d8
5,590
py
Python
stix2/test/v21/test_malware.py
cobsec/cti-python-stix2
ea403d5c50b393005c759c6ca765958454ab8193
[ "BSD-3-Clause" ]
null
null
null
stix2/test/v21/test_malware.py
cobsec/cti-python-stix2
ea403d5c50b393005c759c6ca765958454ab8193
[ "BSD-3-Clause" ]
null
null
null
stix2/test/v21/test_malware.py
cobsec/cti-python-stix2
ea403d5c50b393005c759c6ca765958454ab8193
[ "BSD-3-Clause" ]
null
null
null
import datetime as dt import re import pytest import pytz import stix2 from .constants import FAKE_TIME, MALWARE_ID, MALWARE_KWARGS EXPECTED_MALWARE = """{ "type": "malware", "spec_version": "2.1", "id": "malware--9c4638ec-f1de-4ddb-abf4-1b760417654e", "created": "2016-05-12T08:17:27.000Z", "mod...
33.473054
95
0.67102
4117d6b5580937a8e2cdcb77434c1dc6ccfe8aae
5,399
py
Python
setup.py
ussamazahid96/QNN-MO-PYNQ
8e066d8dfbf92a3b15aa0895d09da324aab63f5f
[ "BSD-3-Clause" ]
null
null
null
setup.py
ussamazahid96/QNN-MO-PYNQ
8e066d8dfbf92a3b15aa0895d09da324aab63f5f
[ "BSD-3-Clause" ]
null
null
null
setup.py
ussamazahid96/QNN-MO-PYNQ
8e066d8dfbf92a3b15aa0895d09da324aab63f5f
[ "BSD-3-Clause" ]
1
2020-05-06T17:39:02.000Z
2020-05-06T17:39:02.000Z
# Copyright (c) 2018, Xilinx, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of con...
45.754237
145
0.678089
eca1f0d876cff0115748a7d109ad7b983b1ac9da
3,484
py
Python
SRTestBed/scripts/update_version.py
johannesmenzel/SRPlugins2
646eccdac808a39b22ad063b9a8fb92f8e6a9d55
[ "MIT" ]
null
null
null
SRTestBed/scripts/update_version.py
johannesmenzel/SRPlugins2
646eccdac808a39b22ad063b9a8fb92f8e6a9d55
[ "MIT" ]
null
null
null
SRTestBed/scripts/update_version.py
johannesmenzel/SRPlugins2
646eccdac808a39b22ad063b9a8fb92f8e6a9d55
[ "MIT" ]
1
2022-01-20T18:32:49.000Z
2022-01-20T18:32:49.000Z
#!/usr/bin/python # this script will update the versions in plist and installer files to match that in config.h import plistlib, os, datetime, fileinput, glob, sys, string, shutil scriptpath = os.path.dirname(os.path.realpath(__file__)) projectpath = os.path.abspath(os.path.join(scriptpath, os.pardir)) IPLUG2_ROOT ...
36.291667
116
0.727325
f48e848f6e3814402c5d1ecc69d37945da5d9c04
6,185
py
Python
ee/clickhouse/queries/funnels/funnel_time_to_convert.py
ld-rale/posthog
0fa5b18b2e940cf5cdbe8afc733eb7e3cd4ae810
[ "MIT" ]
null
null
null
ee/clickhouse/queries/funnels/funnel_time_to_convert.py
ld-rale/posthog
0fa5b18b2e940cf5cdbe8afc733eb7e3cd4ae810
[ "MIT" ]
null
null
null
ee/clickhouse/queries/funnels/funnel_time_to_convert.py
ld-rale/posthog
0fa5b18b2e940cf5cdbe8afc733eb7e3cd4ae810
[ "MIT" ]
null
null
null
from rest_framework.exceptions import ValidationError from ee.clickhouse.queries.funnels.base import ClickhouseFunnelBase from ee.clickhouse.queries.funnels.utils import get_funnel_order_class from posthog.constants import FUNNEL_TO_STEP from posthog.models.filters.filter import Filter from posthog.models.team import ...
52.415254
186
0.634115
a14de025ffdf6a5d49093036b255a5bc5f9e7bbc
557
py
Python
Chapter 07/parrot.py
Wenzurk-Ma/Python-Crash-Course
25bb81af95e16f08c849da5f1161658839b85f61
[ "Apache-2.0" ]
null
null
null
Chapter 07/parrot.py
Wenzurk-Ma/Python-Crash-Course
25bb81af95e16f08c849da5f1161658839b85f61
[ "Apache-2.0" ]
null
null
null
Chapter 07/parrot.py
Wenzurk-Ma/Python-Crash-Course
25bb81af95e16f08c849da5f1161658839b85f61
[ "Apache-2.0" ]
null
null
null
# Title : TODO # Objective : TODO # Created by: Wenzurk # Created on: 2018/2/17 # message = input("Tell me something, and I will repeat it back to you: ") # print(message) prompt = "\nTell me something,and I will repeat it back to you:" prompt += "\nEnter 'quit' to end the program." # message = "" # # while mess...
21.423077
74
0.612208
99a62b21a3ecafa9f68d6e95981273ccbfb8fb7c
310
py
Python
edge/upload_udp_to_file.py
dannil10/dogger
7e4570f1aa7d5393a9ae182498573d03fe1b61e9
[ "MIT" ]
null
null
null
edge/upload_udp_to_file.py
dannil10/dogger
7e4570f1aa7d5393a9ae182498573d03fe1b61e9
[ "MIT" ]
null
null
null
edge/upload_udp_to_file.py
dannil10/dogger
7e4570f1aa7d5393a9ae182498573d03fe1b61e9
[ "MIT" ]
null
null
null
import gateway.link mob_upload_sql_udp = gateway.link.SqlUdpRawValue( channels = {168,169}, start_delay = 0, transmit_rate = 0.5, port = 61012, max_age = 10, config_filepath = '/home/heta/Z/app/python/dogger/', config_filename = 'conf.ini') mob_upload_sql_udp.run()
22.142857
57
0.648387
c084efa38c1ac35a76d60218c9e8ffdc97a8c5f1
1,579
py
Python
RecoLuminosity/LumiProducer/test/TestLumiProducerFromBrilcalc_cfg.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
6
2017-09-08T14:12:56.000Z
2022-03-09T23:57:01.000Z
RecoLuminosity/LumiProducer/test/TestLumiProducerFromBrilcalc_cfg.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
545
2017-09-19T17:10:19.000Z
2022-03-07T16:55:27.000Z
RecoLuminosity/LumiProducer/test/TestLumiProducerFromBrilcalc_cfg.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
14
2017-10-04T09:47:21.000Z
2019-10-23T18:04:45.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("TestLumiProducerFromBrilcalc") process.load("FWCore.MessageLogger.MessageLogger_cfi") process.MessageLogger = cms.Service("MessageLogger", destinations = cms.untracked.vstring("cout"), ...
50.935484
199
0.594047
606356b96ea81d7ba9a621adf24fd3739dd66b54
8,070
py
Python
primes_v6.py
LeontiiMaksimov/Primes
62af8f7dfad66f02352aeb28e10832a1a7f7cec3
[ "MIT" ]
null
null
null
primes_v6.py
LeontiiMaksimov/Primes
62af8f7dfad66f02352aeb28e10832a1a7f7cec3
[ "MIT" ]
null
null
null
primes_v6.py
LeontiiMaksimov/Primes
62af8f7dfad66f02352aeb28e10832a1a7f7cec3
[ "MIT" ]
null
null
null
import math, time, multiprocessing, multiprocessing.pool, multiprocessing.shared_memory, sys, os, faulthandler, traceback, secrets faulthandler.enable() import numpy as np, gmpy2, colorama colorama.init() def is_mersenne(args, *, data = {'tf': 0}): try: def lucas_lehmer_test(exp): # Luc...
51.075949
263
0.469641
c1d285737542e33f7309fbc5bf713b72e833837a
820
py
Python
app/web/wish.py
saint816/fishbook
80a4b563a05086c85eb347286d28bb0e6258ff1c
[ "MIT" ]
null
null
null
app/web/wish.py
saint816/fishbook
80a4b563a05086c85eb347286d28bb0e6258ff1c
[ "MIT" ]
null
null
null
app/web/wish.py
saint816/fishbook
80a4b563a05086c85eb347286d28bb0e6258ff1c
[ "MIT" ]
null
null
null
from flask import flash, redirect, url_for from flask_login import current_user from app import db from app.models import Wish from app.web.blue_print import web __author__ = '七月' @web.route('/my/wish') def my_wish(): pass @web.route('/wish/book/<isbn>') def save_to_wish(isbn): if current...
20
59
0.623171
9cc5951a30cd39787e4b5ad5e782507c7025e80d
7,728
py
Python
group_v2_models.py
zhuxinqimac/Ramiel
c1f1daa010d32ca5f4f306fac8c038da64b4d18d
[ "Apache-2.0" ]
null
null
null
group_v2_models.py
zhuxinqimac/Ramiel
c1f1daa010d32ca5f4f306fac8c038da64b4d18d
[ "Apache-2.0" ]
null
null
null
group_v2_models.py
zhuxinqimac/Ramiel
c1f1daa010d32ca5f4f306fac8c038da64b4d18d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python #-*- coding: utf-8 -*- # >.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>. # Licensed under the Apache License, Version 2.0 (the "License") # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # --- File Name: group_v2_models.py # --- Creation Date: 29-09-2020 # --- Last Modified: T...
44.16
95
0.609343
db63211e966bd470ceb1c7788705b77eff81d26a
8,297
py
Python
ThirdParty/Twisted/twisted/web/test/test_cgi.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
3
2016-02-01T02:29:51.000Z
2020-09-04T17:19:24.000Z
ThirdParty/Twisted/twisted/web/test/test_cgi.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
4
2017-02-19T23:58:13.000Z
2019-11-01T15:31:22.000Z
ThirdParty/Twisted/twisted/web/test/test_cgi.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
6
2017-02-13T09:11:02.000Z
2021-06-29T11:22:18.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.web.twcgi}. """ import sys, os from twisted.trial import unittest from twisted.internet import reactor, interfaces, error from twisted.python import util, failure from twisted.web.http import NOT_FOUND, INTERNAL_SERVER_ER...
30.616236
86
0.650838
7056ed0404de754fce9ed7426e6a5d74a37d921d
318
py
Python
hanoi_tower.py
canberkeh/Algorithms
5d4ac443a76e492332ccefa69b71bea62fe83aa1
[ "Unlicense" ]
null
null
null
hanoi_tower.py
canberkeh/Algorithms
5d4ac443a76e492332ccefa69b71bea62fe83aa1
[ "Unlicense" ]
null
null
null
hanoi_tower.py
canberkeh/Algorithms
5d4ac443a76e492332ccefa69b71bea62fe83aa1
[ "Unlicense" ]
null
null
null
def hanoi_tower_algorithm(n, x, y, z): if n == 1: print(f"Diski {x} çubuğundan {z} çubuğuna koy") else: hanoi_tower_algorithm(n-1, x, z, y) hanoi_tower_algorithm(1, x, y, z) hanoi_tower_algorithm(n-1, y, x, z) # ndisc = Number of Disc hanoi_tower_algorithm(5, "A", "B", "C")
35.333333
55
0.59434
d0eca42a2f7ba0e482321515484b1097afcd5f6c
11,109
py
Python
calmap/__init__.py
dimitris1ps/calmap
747d9add387f8f0094cb7926834fdefac114fe4c
[ "MIT" ]
null
null
null
calmap/__init__.py
dimitris1ps/calmap
747d9add387f8f0094cb7926834fdefac114fe4c
[ "MIT" ]
null
null
null
calmap/__init__.py
dimitris1ps/calmap
747d9add387f8f0094cb7926834fdefac114fe4c
[ "MIT" ]
null
null
null
""" Calendar heatmaps from Pandas time series data. Plot Pandas time series data sampled by day in a heatmap per calendar year, similar to GitHub's contributions calendar. """ from __future__ import unicode_literals import calendar import datetime from matplotlib.colors import ColorConverter, ListedColormap import...
33.663636
90
0.635701
0e5bec43e7ad02e792ccbf34c4c1ba79010d99ec
143
py
Python
tags/ctx.py
NoUMelon/phen-cogs
f8d4de3a91f428114d66fd36ba38ecbd5ace83a3
[ "MIT" ]
1
2021-06-01T10:12:09.000Z
2021-06-01T10:12:09.000Z
tags/ctx.py
NoUMelon/phen-cogs
f8d4de3a91f428114d66fd36ba38ecbd5ace83a3
[ "MIT" ]
null
null
null
tags/ctx.py
NoUMelon/phen-cogs
f8d4de3a91f428114d66fd36ba38ecbd5ace83a3
[ "MIT" ]
null
null
null
from redbot.core.commands import Context class SilentContext(Context): async def send(self, content: str = None, **kwargs): pass
20.428571
56
0.699301
9047c36c7a165f0952e4872c206d1a0f5332b844
1,388
py
Python
semestr4/kontr4_n8/beta.py
iamm3chanic/-
71d8775e44bda053e76546cfd8cfa1587e8bb15e
[ "MIT" ]
3
2021-01-27T14:48:16.000Z
2021-08-23T19:34:52.000Z
semestr4/kontr4_n8/beta.py
iamm3chanic/-
71d8775e44bda053e76546cfd8cfa1587e8bb15e
[ "MIT" ]
null
null
null
semestr4/kontr4_n8/beta.py
iamm3chanic/-
71d8775e44bda053e76546cfd8cfa1587e8bb15e
[ "MIT" ]
7
2020-08-05T15:36:54.000Z
2022-01-09T11:26:23.000Z
"""Программа должна загрузить изображения из графических файлов InputFile1, InputFile2 (считается, что файлы имеют одинаковые размеры), изменить яркость всех пикселов первого изображения так, чтобы она была бы равна яркости пикселов второго изображения и вывести получившееся изображение в графический файл OutputFile...
25.236364
88
0.623199
cc5de6115476a47aaa211a7e00dc31539ca3c2e3
20,782
py
Python
misc/config_tools/library/common.py
jackwhich/acrn-hypervisor
e8f2010c2bc8e54b8395ff2fd1f44c599061fcca
[ "BSD-3-Clause" ]
2
2020-09-14T06:48:39.000Z
2020-10-12T14:21:01.000Z
misc/config_tools/library/common.py
selroc/acrn-hypervisor
ce8d69333a73b87ccbb329618048d164ef0e6c9f
[ "BSD-3-Clause" ]
1
2019-04-11T10:23:42.000Z
2019-04-11T10:23:42.000Z
misc/config_tools/library/common.py
selroc/acrn-hypervisor
ce8d69333a73b87ccbb329618048d164ef0e6c9f
[ "BSD-3-Clause" ]
2
2019-03-25T02:54:20.000Z
2019-03-27T04:06:21.000Z
# Copyright (C) 2019 Intel Corporation. All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # import os import sys import getopt import shutil import subprocess # nosec import defusedxml.ElementTree as ET import re import lxml ACRN_CONFIG_TARGET = '' SOURCE_ROOT_DIR = os.path.join(os.path.dirname(os.path....
30.788148
128
0.587961
e9788dab1432c747b32601999f4cc9ef7f9e0886
1,507
py
Python
trainers/trainer.py
Olivier-tl/MO-DAGAN
5ff36dc406d1d8b5c084d575415864b5f590e185
[ "MIT" ]
1
2021-03-18T20:15:03.000Z
2021-03-18T20:15:03.000Z
trainers/trainer.py
Olivier-tl/MO-DAGAN
5ff36dc406d1d8b5c084d575415864b5f590e185
[ "MIT" ]
29
2021-03-18T17:46:04.000Z
2021-04-22T17:20:32.000Z
trainers/trainer.py
Olivier-tl/MO-DAGAN
5ff36dc406d1d8b5c084d575415864b5f590e185
[ "MIT" ]
null
null
null
import os from typing import List import torch import torch.optim as optim import torch.nn as nn from torch.utils.data import DataLoader from utils import logging logger = logging.getLogger() SAVED_MODELS_PATH = 'output/saved_models' class Trainer(): """Parent to the trainers. Implement methods that are commo...
32.06383
105
0.653616
31459746735c1419ec36719a75a11185fa9e5b8b
9,663
py
Python
contrib/bitrpc/bitrpc.py
Real-E-Coin/REC
148063bd6afe431c565f3ae3e75f010b11b3d4e8
[ "MIT" ]
1
2021-12-30T23:58:45.000Z
2021-12-30T23:58:45.000Z
contrib/bitrpc/bitrpc.py
Real-E-Coin/REC
148063bd6afe431c565f3ae3e75f010b11b3d4e8
[ "MIT" ]
null
null
null
contrib/bitrpc/bitrpc.py
Real-E-Coin/REC
148063bd6afe431c565f3ae3e75f010b11b3d4e8
[ "MIT" ]
1
2022-01-10T22:13:20.000Z
2022-01-10T22:13:20.000Z
from jsonrpc import ServiceProxy import sys import string import getpass # ===== BEGIN USER SETTINGS ===== # if you do not set these you will be prompted for a password for every command rpcuser = "" rpcpass = "" # ====== END USER SETTINGS ====== if rpcpass == "": access = ServiceProxy("http://127.0.0.1:2619") e...
28.588757
101
0.573424
32b6bd7fc761b2c83d130e0b51b9d0aacca65272
5,123
py
Python
localstack/services/cloudformation/deployment_utils.py
doytsujin/localstack
46ffd646af553f381cc567e4a7a06f604640c1c7
[ "Apache-2.0" ]
1
2022-03-17T07:22:23.000Z
2022-03-17T07:22:23.000Z
localstack/services/cloudformation/deployment_utils.py
doytsujin/localstack
46ffd646af553f381cc567e4a7a06f604640c1c7
[ "Apache-2.0" ]
null
null
null
localstack/services/cloudformation/deployment_utils.py
doytsujin/localstack
46ffd646af553f381cc567e4a7a06f604640c1c7
[ "Apache-2.0" ]
null
null
null
import json import os from typing import Callable from localstack.config import dirs from localstack.utils import common # URL to "cfn-response" module which is required in some CF Lambdas from localstack.utils.common import select_attributes, short_uid CFN_RESPONSE_MODULE_URL = ( "https://raw.githubusercontent....
31.237805
96
0.679289
cdfe4ab34d74bda81e5a0701575bbeb947cce6e6
39
py
Python
galana/aws/__init__.py
michaelmunje/galaxy-info
e9e948071b702888ce12f034fef1fabb95ed3165
[ "MIT" ]
null
null
null
galana/aws/__init__.py
michaelmunje/galaxy-info
e9e948071b702888ce12f034fef1fabb95ed3165
[ "MIT" ]
20
2019-02-07T01:06:15.000Z
2019-03-01T04:36:07.000Z
galana/aws/__init__.py
michaelmunje/galana
e9e948071b702888ce12f034fef1fabb95ed3165
[ "MIT" ]
1
2019-02-20T12:51:59.000Z
2019-02-20T12:51:59.000Z
from .detect_boxes import detect_boxes
19.5
38
0.871795
811934be2aa63d27fc310132ef1a69d9dfaec912
849
py
Python
django_evolution/models.py
clones/django-evolution
34b1131873da463d22801d8b845a72f35cb367bd
[ "BSD-3-Clause" ]
1
2016-05-09T04:23:18.000Z
2016-05-09T04:23:18.000Z
django_evolution/models.py
clones/django-evolution
34b1131873da463d22801d8b845a72f35cb367bd
[ "BSD-3-Clause" ]
null
null
null
django_evolution/models.py
clones/django-evolution
34b1131873da463d22801d8b845a72f35cb367bd
[ "BSD-3-Clause" ]
null
null
null
from datetime import datetime from django.db import models class Version(models.Model): signature = models.TextField() when = models.DateTimeField(default=datetime.now) class Meta: ordering = ('-when',) db_table = 'django_project_version' def __unicode__(self): ...
27.387097
77
0.652532
d810b2281a3ea9bd12c6f3996bb54383f04b6b26
3,448
py
Python
homeworks/HW4/hw4.py
g1n0st/GAMES102
44a8cf9db102109c8fd15c8dc06aa6ad1519a5eb
[ "MIT" ]
7
2020-10-23T16:33:45.000Z
2021-09-17T23:49:36.000Z
homeworks/HW4/hw4.py
g1n0st/GAMES102
44a8cf9db102109c8fd15c8dc06aa6ad1519a5eb
[ "MIT" ]
null
null
null
homeworks/HW4/hw4.py
g1n0st/GAMES102
44a8cf9db102109c8fd15c8dc06aa6ad1519a5eb
[ "MIT" ]
3
2021-03-18T08:45:36.000Z
2021-08-17T02:36:06.000Z
import taichi as ti ti.init(arch = ti.cpu) max_num_vertex = 1024 num_vertex = ti.field(dtype = ti.i32, shape = ()) p = ti.Vector.field(2, dtype = ti.f32, shape = max_num_vertex) t = ti.field(dtype = ti.f32, shape = max_num_vertex) # parameterization a = ti.Vector.field(2, dtype = ti.f32, shape = max_num_vertex) # r...
30.513274
96
0.467227
7f7383bb5b93837eb3a62855b5ae4fc62ca52d20
2,231
py
Python
aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/ApplyAutoSnapshotPolicyRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/ApplyAutoSnapshotPolicyRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/ApplyAutoSnapshotPolicyRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.57377
81
0.779023
ce06a1ad32bf54c678dd7ec9b12e12c7336ad512
676
py
Python
circles/detect.py
danya02/slon-2020-winter-intro
f3b6107d6a887798a578de63c4fd0919d81bbdbc
[ "MIT" ]
null
null
null
circles/detect.py
danya02/slon-2020-winter-intro
f3b6107d6a887798a578de63c4fd0919d81bbdbc
[ "MIT" ]
null
null
null
circles/detect.py
danya02/slon-2020-winter-intro
f3b6107d6a887798a578de63c4fd0919d81bbdbc
[ "MIT" ]
null
null
null
import numpy import cv2 import settings def detect(path): img = cv2.imread(path,0) rows = img.shape[0] circles = cv2.HoughCircles(img,cv2.HOUGH_GRADIENT,1,rows, param1=settings.param1, param2=settings.param2,minRadius=0,maxRadius=0) if cir...
25.037037
78
0.517751
08f9b167d6708bc5cb266dbf0c42d2e8ec814d1b
1,826
py
Python
collect_ElapsedTime.py
isabella232/pearu-sandbox
ece92fc2a6de19a21a9918196b1c34338a04e148
[ "BSD-3-Clause" ]
5
2018-10-17T20:28:42.000Z
2022-02-15T17:33:01.000Z
collect_ElapsedTime.py
Quansight/pearu-sandbox
3a4009af61197fcfd54dc854f2a00238bda10c2b
[ "BSD-3-Clause" ]
19
2018-07-18T07:15:44.000Z
2021-02-22T17:00:18.000Z
collect_ElapsedTime.py
isabella232/pearu-sandbox
ece92fc2a6de19a21a9918196b1c34338a04e148
[ "BSD-3-Clause" ]
2
2020-05-01T09:54:34.000Z
2021-04-17T10:57:07.000Z
#!/usr/bin/env python # # Author: Pearu Peteson # Created: May 2020 """ class ElapsedTime { /* Report time elapsed in executing a block of code. Usage:: { ElapsedTime _("code"); <block code> } Requires: #include <chrono> */ public: ElapsedTime(std::string label)...
29.451613
126
0.605696
b14271a30bff7f494b7ced7547081ff5a70685b3
57
py
Python
speed_friending_matcher/server/__init__.py
machinekoder/speed-friending-matcher
c1d63c44e198497662c561342b64f597cb8623e9
[ "MIT" ]
4
2018-05-04T15:44:09.000Z
2019-03-17T04:54:20.000Z
speed_friending_matcher/server/__init__.py
machinekoder/speed-friending-and-dating-matcher
c1d63c44e198497662c561342b64f597cb8623e9
[ "MIT" ]
12
2017-10-21T10:42:28.000Z
2019-02-27T10:33:04.000Z
speed_friending_matcher/server/__init__.py
machinekoder/speed-friending-matcher
c1d63c44e198497662c561342b64f597cb8623e9
[ "MIT" ]
8
2018-01-02T10:14:19.000Z
2022-01-11T03:17:04.000Z
# coding=utf-8 from .server import configure, start, app
19
41
0.754386
026fbadcbffdc7e13c2829d7c0852d75ea3ec9e8
848
py
Python
tutorials/W1D1_ModelTypes/solutions/W1D1_Tutorial1_Solution_2972c168.py
eduardojdiniz/CompNeuro
20269e66540dc4e802273735c97323020ee37406
[ "CC-BY-4.0", "BSD-3-Clause" ]
2,294
2020-05-11T12:05:35.000Z
2022-03-28T21:23:34.000Z
tutorials/W1D1_ModelTypes/solutions/W1D1_Tutorial1_Solution_2972c168.py
pellet/course-content
bb383857992469e0e7a9c36639ac0d05e842d9bd
[ "CC-BY-4.0", "BSD-3-Clause" ]
629
2020-05-11T15:42:26.000Z
2022-03-29T12:23:35.000Z
tutorials/W1D1_ModelTypes/solutions/W1D1_Tutorial1_Solution_2972c168.py
pellet/course-content
bb383857992469e0e7a9c36639ac0d05e842d9bd
[ "CC-BY-4.0", "BSD-3-Clause" ]
917
2020-05-11T12:47:53.000Z
2022-03-31T12:14:41.000Z
def compute_single_neuron_isis(spike_times, neuron_idx): """Compute a vector of ISIs for a single neuron given spike times. Args: spike_times (list of 1D arrays): Spike time dataset, with the first dimension corresponding to different neurons. neuron_idx (int): Index of the unit to compute ISIs for. ...
32.615385
76
0.761792