hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7942dd2668c55d2a3ac382fcebaee4c54379be08
288
py
Python
API/onepanman_api/admin/placementRule.py
CMS0503/CodeOnBoard
2df8c9d934f6ffb05dbfbde329f84c66f2348618
[ "MIT" ]
null
null
null
API/onepanman_api/admin/placementRule.py
CMS0503/CodeOnBoard
2df8c9d934f6ffb05dbfbde329f84c66f2348618
[ "MIT" ]
12
2020-11-19T09:24:02.000Z
2020-12-02T11:07:22.000Z
API/onepanman_api/admin/placementRule.py
CMS0503/CodeOnBoard
2df8c9d934f6ffb05dbfbde329f84c66f2348618
[ "MIT" ]
null
null
null
from django.contrib import admin from .. import models @admin.register(models.PlacementRule) class PlacementRuleAdmin(admin.ModelAdmin): """ 착수 규칙 정보 """ list_display = ['pk', 'type1', 'type2', 'rule_number', 'name'] class Meta: model = models.PlacementRule
22.153846
66
0.666667
7942dd9fad01a113bccf4c4452a3d100ba26b9a1
7,391
py
Python
data_analyzer.py
whiteTyger/NEUR325
04dc5980e9a2deb7bfebb4f7989ca7f99262446e
[ "MIT" ]
1
2018-07-31T20:49:43.000Z
2018-07-31T20:49:43.000Z
data_analyzer.py
whiteTyger/NEUR325_experiment
04dc5980e9a2deb7bfebb4f7989ca7f99262446e
[ "MIT" ]
null
null
null
data_analyzer.py
whiteTyger/NEUR325_experiment
04dc5980e9a2deb7bfebb4f7989ca7f99262446e
[ "MIT" ]
null
null
null
import os import csv import codecs from collections import defaultdict import argparse __author__='Eileen Cho' #read in answer keys #depending on the typdict param, returns a dict mapping words to response or category def ansKey(filename,typedict): f=open(filename) reader = csv.reader(f) returnAns = defaultdict(str...
33.292793
135
0.703829
7942ddf7369d686ef1b401e937de0e409106d33a
970
py
Python
utils/scrapper.py
typhonshambo/desi-memer
74d400e35e3861945cde0425948ebf30b225b4ee
[ "MIT" ]
1
2021-12-02T14:26:35.000Z
2021-12-02T14:26:35.000Z
utils/scrapper.py
typhonshambo/desi-memer
74d400e35e3861945cde0425948ebf30b225b4ee
[ "MIT" ]
null
null
null
utils/scrapper.py
typhonshambo/desi-memer
74d400e35e3861945cde0425948ebf30b225b4ee
[ "MIT" ]
null
null
null
import discord import requests def ranMeme(): request = requests.get("https://meme-api.herokuapp.com/gimme/") data = request.json() postLink = data['postLink'] title = data['title'] url = data['url'] ups = data['ups'] nsfw = data['nsfw'] embed = discord.Embed( color=discord.C...
21.555556
83
0.601031
7942e1b2c32f9e208a7efdb796ad62f8299fa3e0
3,138
py
Python
ansible/roles/mn-find-collateral/scripts/find-collateral.py
AXErunners/axe-network-deploy
b0a89725d3d3d6bee4794a9899003dcb1505d369
[ "MIT" ]
2
2019-01-26T22:08:07.000Z
2019-07-18T02:33:35.000Z
ansible/roles/mn-find-collateral/scripts/find-collateral.py
AXErunners/axe-network-deploy
b0a89725d3d3d6bee4794a9899003dcb1505d369
[ "MIT" ]
null
null
null
ansible/roles/mn-find-collateral/scripts/find-collateral.py
AXErunners/axe-network-deploy
b0a89725d3d3d6bee4794a9899003dcb1505d369
[ "MIT" ]
1
2019-01-26T22:08:11.000Z
2019-01-26T22:08:11.000Z
#!/usr/bin/env python3 import subprocess import sys import json COIN = 100000000 rpcargs = sys.argv[1] mn_address = sys.argv[2] find_protx = sys.argv[3] == 'True' blockchaininfo_s = subprocess.run("axe-cli %s getblockchaininfo" % (rpcargs), shell=True, check=True, stdout=subprocess.PIPE).stdout.decode("utf-8") unsp...
31.69697
185
0.650733
7942e2232397c5460f0fc50247746cfaec82a9a3
3,668
py
Python
Bayes Guards SMS/Vectorize/bayes.py
jetbrains-academy/Machine-Learning-101
7b583dbff1e90115296dcaeac78ca88363c158c9
[ "MIT" ]
null
null
null
Bayes Guards SMS/Vectorize/bayes.py
jetbrains-academy/Machine-Learning-101
7b583dbff1e90115296dcaeac78ca88363c158c9
[ "MIT" ]
10
2021-11-22T16:51:52.000Z
2022-02-14T12:57:57.000Z
Bayes Guards SMS/Vectorize/bayes.py
jetbrains-academy/Machine-Learning-101
7b583dbff1e90115296dcaeac78ca88363c158c9
[ "MIT" ]
null
null
null
import numpy as np from vectorize import * class NaiveBayes: # a predefined method needed for 'Laplace Smoothing' that initializes the # smoothing alpha parameter, by default it's 1 def __init__(self, alpha=1): self.alpha = alpha def fit(self, X, y): # This allows us to get the unique...
47.636364
108
0.635769
7942e3245fd27e8b3fce161784e84a5dc79b89ce
38
py
Python
trainer/test_train2.py
transcendentsky/mixup
41886ffa45412932f4ec5f7653df6c410a1365cc
[ "BSD-3-Clause" ]
2
2018-06-18T12:09:03.000Z
2019-05-20T14:04:06.000Z
trainer/test_train2.py
transcendentsky/mixup
41886ffa45412932f4ec5f7653df6c410a1365cc
[ "BSD-3-Clause" ]
null
null
null
trainer/test_train2.py
transcendentsky/mixup
41886ffa45412932f4ec5f7653df6c410a1365cc
[ "BSD-3-Clause" ]
1
2019-03-26T01:49:11.000Z
2019-03-26T01:49:11.000Z
import os print(os.path.abspath('.'))
19
27
0.684211
7942e3aa6c544f1d2752a81897daef8b68fdaafb
4,596
py
Python
piece.py
jschopmeyer13/Stratego_Ai
ec9916df0e4459351694b43858c07903da5e8068
[ "MIT" ]
1
2020-09-11T00:24:21.000Z
2020-09-11T00:24:21.000Z
piece.py
jschopmeyer13/Stratego_Ai
ec9916df0e4459351694b43858c07903da5e8068
[ "MIT" ]
null
null
null
piece.py
jschopmeyer13/Stratego_Ai
ec9916df0e4459351694b43858c07903da5e8068
[ "MIT" ]
null
null
null
from board import * FLAG = 11 BOMB = 12 LAKE = -1 class Piece: def __init__(self, x, y, rank, team, count, knownStat = []): self.X = x self.Y = y self.rank = rank # switche id to rank for better naming self.count = count self.team = te...
35.90625
159
0.400783
7942e42b60ff8089bc3f7dce1c8f318ffee802d4
970
py
Python
year2020/day18/test_solver.py
Sebaestschjin/advent-of-code
5fd708efa355483fc0ccddf7548b62682662bcc8
[ "MIT" ]
null
null
null
year2020/day18/test_solver.py
Sebaestschjin/advent-of-code
5fd708efa355483fc0ccddf7548b62682662bcc8
[ "MIT" ]
null
null
null
year2020/day18/test_solver.py
Sebaestschjin/advent-of-code
5fd708efa355483fc0ccddf7548b62682662bcc8
[ "MIT" ]
null
null
null
import pytest from assertpy import assert_that import year2020.day18.reader as reader import year2020.day18.solver as solver def test_example_a(): expressions = ['1 + (2 * 3) + (4 * (5 + 6))', '2 * 3 + (4 * 5)', '5 + (8 * 3 + 9 + 3 * 4 * 3)'] result = solver.solve_a(reader.read_lines(expressions, operators={...
32.333333
99
0.629897
7942e4630f9b569c4428ece897b75ab42033a934
40,162
py
Python
tempita/__init__.py
RomanSharapov/tempita
0823acafebcc1815e01337ad56bca43148b1d6d5
[ "MIT" ]
null
null
null
tempita/__init__.py
RomanSharapov/tempita
0823acafebcc1815e01337ad56bca43148b1d6d5
[ "MIT" ]
null
null
null
tempita/__init__.py
RomanSharapov/tempita
0823acafebcc1815e01337ad56bca43148b1d6d5
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ A small templating language This implements a small templating language. This language implements if/elif/else, for/continue/break, expressions, and blocks of Python code. The syntax is:: {{any expression (function calls etc)}} {{any expression | filter}} {{for x in y}}...{{endfor}}...
33.357143
117
0.531722
7942e5f89672596006d2e95cf089c6f9797938d2
137,835
py
Python
hail/python/hail/expr/expressions/typed_expressions.py
FINNGEN/hail
03fabf5dad71415aeca641ef1618e5352639d683
[ "MIT" ]
789
2016-09-05T04:14:25.000Z
2022-03-30T09:51:54.000Z
hail/python/hail/expr/expressions/typed_expressions.py
FINNGEN/hail
03fabf5dad71415aeca641ef1618e5352639d683
[ "MIT" ]
5,724
2016-08-29T18:58:40.000Z
2022-03-31T23:49:42.000Z
hail/python/hail/expr/expressions/typed_expressions.py
FINNGEN/hail
03fabf5dad71415aeca641ef1618e5352639d683
[ "MIT" ]
233
2016-08-31T20:42:38.000Z
2022-02-17T16:42:39.000Z
from typing import Mapping, Dict, Sequence from deprecated import deprecated import hail as hl from .indices import Indices, Aggregation from .base_expression import Expression, ExpressionException, to_expr, \ unify_all, unify_types from .expression_typecheck import coercer_from_dtype, \ expr_any, expr_array,...
30.313393
190
0.542671
7942e7f561335b097cfd8bef8ce06b2245e78368
3,464
py
Python
TemplateDeployment/deployer.py
Azure-Samples/Hybrid-Python-Samples
a30c816fde75856e8b7ed55beff2917cd9e5b100
[ "MIT" ]
null
null
null
TemplateDeployment/deployer.py
Azure-Samples/Hybrid-Python-Samples
a30c816fde75856e8b7ed55beff2917cd9e5b100
[ "MIT" ]
null
null
null
TemplateDeployment/deployer.py
Azure-Samples/Hybrid-Python-Samples
a30c816fde75856e8b7ed55beff2917cd9e5b100
[ "MIT" ]
2
2021-09-14T12:03:24.000Z
2021-11-15T08:54:12.000Z
"""A deployer class to deploy a template on Azure""" import os.path import json from haikunator import Haikunator from azure.profiles import KnownProfiles from azure.identity import ClientSecretCredential from azure.mgmt.resource import ResourceManagementClient from azure.mgmt.resource.resources.models import Deploymen...
43.848101
127
0.707852
7942e853a05922acfe50d64faf5a7e759e4ff9ff
1,326
py
Python
naoqi-sdk-2.5.5.5-linux64/doc/_downloads/alanimationplayer_tutorial_declarePathForTags.py
applejenny66/docker_pepper
2469cc4db6585161a31ac44c8fcf2605d71318b1
[ "MIT" ]
null
null
null
naoqi-sdk-2.5.5.5-linux64/doc/_downloads/alanimationplayer_tutorial_declarePathForTags.py
applejenny66/docker_pepper
2469cc4db6585161a31ac44c8fcf2605d71318b1
[ "MIT" ]
null
null
null
naoqi-sdk-2.5.5.5-linux64/doc/_downloads/alanimationplayer_tutorial_declarePathForTags.py
applejenny66/docker_pepper
2469cc4db6585161a31ac44c8fcf2605d71318b1
[ "MIT" ]
1
2020-10-06T07:44:12.000Z
2020-10-06T07:44:12.000Z
#! /usr/bin/env python # -*- encoding: UTF-8 -*- """Example: Use declarePathForTags Method""" import qi import argparse import sys def main(session): """ This example uses the declarePathForTags method. """ # Get the service ALAnimationPlayer. animation_player_service = session.service("ALAnima...
30.837209
108
0.612368
7942e88010057daad64937a55a71fabac24ee42f
3,044
py
Python
py/g1/devtools/buildtools/g1/devtools/buildtools/capnps.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
3
2016-01-04T06:28:52.000Z
2020-09-20T13:18:40.000Z
py/g1/devtools/buildtools/g1/devtools/buildtools/capnps.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
null
null
null
py/g1/devtools/buildtools/g1/devtools/buildtools/capnps.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
null
null
null
__all__ = [ 'make_compile_schemas', ] import subprocess import warnings from distutils import log from distutils.core import Command from pathlib import Path def make_compile_schemas(schemas, *, import_paths=()): class compile_schemas(Command): IMPORT_PATH = ':'.join(map(str, import_paths)) ...
29.843137
76
0.658673
7942ea1dc20b742e54bbe171e9a323b0caaaf995
13,075
py
Python
sublimerepl.py
tomschenkjr/SublimeREPL
8cfe65d66ce632f97699ca51f2743ed7e3c8df86
[ "BSD-2-Clause" ]
2
2016-02-15T03:13:21.000Z
2019-08-01T19:19:36.000Z
sublimerepl.py
tomschenkjr/SublimeREPL
8cfe65d66ce632f97699ca51f2743ed7e3c8df86
[ "BSD-2-Clause" ]
null
null
null
sublimerepl.py
tomschenkjr/SublimeREPL
8cfe65d66ce632f97699ca51f2743ed7e3c8df86
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2011, Wojciech Bederski (wuub.net) # All rights reserved. # See LICENSE.txt for details. import threading import Queue import sublime import sublime_plugin import repl import os import buzhug repl_views = {} PLATFORM = sublime.platform().lower() SUBLIMEREPL_D...
32.046569
115
0.594493
7942eb97db0a004db663fc056986f310bb984d88
54,530
py
Python
src/pystage/en/sprite.py
pystage/pystage
4a76e95f6de2df59736de17fe81219485fde1556
[ "MIT" ]
12
2021-05-20T12:49:52.000Z
2022-01-12T02:15:33.000Z
src/pystage/en/sprite.py
pystage/pystage
4a76e95f6de2df59736de17fe81219485fde1556
[ "MIT" ]
14
2021-05-25T09:28:33.000Z
2021-09-10T07:54:45.000Z
src/pystage/en/sprite.py
pystage/pystage
4a76e95f6de2df59736de17fe81219485fde1556
[ "MIT" ]
3
2021-05-25T12:58:36.000Z
2022-02-18T04:19:21.000Z
from pystage.core.sprite import CoreSprite class Sprite(): def __init__(self, core_sprite): self._core : CoreSprite = core_sprite self._core.facade = self def create_clone_of(self, sprite='_myself_'): """create clone of %1 Engl. Translation for your reference: ...
20.624054
111
0.487566
7942eba2ee095d3f8c18b9f9b7ee0f1e58f11a4d
4,626
py
Python
demisto_sdk/commands/format/update_incidentfields.py
SergeBakharev/demisto-sdk
17d00942a1bd33039a8aba9ddffecfd81008d275
[ "MIT" ]
null
null
null
demisto_sdk/commands/format/update_incidentfields.py
SergeBakharev/demisto-sdk
17d00942a1bd33039a8aba9ddffecfd81008d275
[ "MIT" ]
null
null
null
demisto_sdk/commands/format/update_incidentfields.py
SergeBakharev/demisto-sdk
17d00942a1bd33039a8aba9ddffecfd81008d275
[ "MIT" ]
null
null
null
from typing import List, Tuple import click import ujson from demisto_sdk.commands.common.tools import (get_dict_from_file, get_item_marketplaces, open_id_set_file) from demisto_sdk.commands.format.format_constants import (E...
44.912621
129
0.608949
7942eba4e426f4afff6029b93719088b1ee1786a
186
py
Python
w/lib/__init__.py
propername/w
bbf253b5f2428e4ee1580140dca15331b8355da2
[ "CC0-1.0" ]
null
null
null
w/lib/__init__.py
propername/w
bbf253b5f2428e4ee1580140dca15331b8355da2
[ "CC0-1.0" ]
null
null
null
w/lib/__init__.py
propername/w
bbf253b5f2428e4ee1580140dca15331b8355da2
[ "CC0-1.0" ]
null
null
null
from w.lib.config import get # noqa from w.lib.config import put # noqa from w.lib.config import root # noqa from w.lib.config import env # noqa from w.lib.config import var # noqa
31
37
0.731183
7942ecdd9280c425ce10a813551741c3fac9f795
4,199
py
Python
tests/refencode.py
mejedi/libordpath
0c70c81b5816881ece0d5b66a5cf1bf1f07b2ebe
[ "Apache-1.1" ]
1
2019-06-05T09:11:18.000Z
2019-06-05T09:11:18.000Z
tests/refencode.py
mejedi/libordpath
0c70c81b5816881ece0d5b66a5cf1bf1f07b2ebe
[ "Apache-1.1" ]
null
null
null
tests/refencode.py
mejedi/libordpath
0c70c81b5816881ece0d5b66a5cf1bf1f07b2ebe
[ "Apache-1.1" ]
null
null
null
#! /usr/bin/python # RANDLABEL.py # # Generates random ORDPATH label in the format compatible with # ordpath-test. # # -l, --lenght=<integer> length of generated label # --setup=<filename> read ORDPATH codec setup from the file # specified; each generated component has # ...
30.427536
79
0.511312
7942ed2a03adf47a78a317a767e16adff9a7bca3
385
py
Python
cats/cats/asgi.py
Xamaneone/test-repository
273b187d1b4c1aa692a802452b5ddde676300d7a
[ "MIT" ]
null
null
null
cats/cats/asgi.py
Xamaneone/test-repository
273b187d1b4c1aa692a802452b5ddde676300d7a
[ "MIT" ]
null
null
null
cats/cats/asgi.py
Xamaneone/test-repository
273b187d1b4c1aa692a802452b5ddde676300d7a
[ "MIT" ]
null
null
null
""" ASGI config for cats project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTINGS...
22.647059
78
0.781818
7942ed5ce37b089cbf36e7407b3154324af879f3
189,100
py
Python
test/scenarios/datafactory/output/src/datafactory-preview/azext_datafactory_preview/vendored_sdks/azure_mgmt_datafactory/models/_models.py
kairu-ms/autorest.az
c3370f3d4d394e580615d8d97df05515533b035e
[ "MIT" ]
null
null
null
test/scenarios/datafactory/output/src/datafactory-preview/azext_datafactory_preview/vendored_sdks/azure_mgmt_datafactory/models/_models.py
kairu-ms/autorest.az
c3370f3d4d394e580615d8d97df05515533b035e
[ "MIT" ]
null
null
null
test/scenarios/datafactory/output/src/datafactory-preview/azext_datafactory_preview/vendored_sdks/azure_mgmt_datafactory/models/_models.py
kairu-ms/autorest.az
c3370f3d4d394e580615d8d97df05515533b035e
[ "MIT" ]
1
2021-03-21T03:59:29.000Z
2021-03-21T03:59:29.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
39.827296
367
0.660159
7942edc7f4eb1edd116a8bd68f3f16c39c496e4e
262
py
Python
forecast/trial_hello.py
BlackPoint-CX/forecast
1ea9b9abda8babadd67ad63c4aa8eaa024873d3e
[ "Apache-2.0" ]
1
2018-11-08T03:38:22.000Z
2018-11-08T03:38:22.000Z
forecast/trial_hello.py
BlackPoint-CX/forecast
1ea9b9abda8babadd67ad63c4aa8eaa024873d3e
[ "Apache-2.0" ]
4
2019-11-03T14:19:46.000Z
2021-10-17T01:47:48.000Z
forecast/trial_hello.py
BlackPoint-CX/forecast
1ea9b9abda8babadd67ad63c4aa8eaa024873d3e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- """ __author__ : BlackPoint-CX __email__ : msg.receiver.bp@gmail.com __file_name__ : trial_hello.py.py __create_time__ : 2021/10/17 """ def hello(someone): result = "hello, {}".format(someone) return result
18.714286
40
0.683206
7942eedabdefccdf324006ee12215e60f5cbfb33
1,786
py
Python
sim_mat_analysis.py
Yao-Yao/Shazam
b1c4153880791812067d87b44ca3d21cf9bd58e4
[ "MIT" ]
null
null
null
sim_mat_analysis.py
Yao-Yao/Shazam
b1c4153880791812067d87b44ca3d21cf9bd58e4
[ "MIT" ]
null
null
null
sim_mat_analysis.py
Yao-Yao/Shazam
b1c4153880791812067d87b44ca3d21cf9bd58e4
[ "MIT" ]
null
null
null
import numpy as np from pprint import pprint as pp class DisjointSet(object): def __init__(self): self.leader = {} # maps a member to the group's leader self.group = {} # maps a group leader to the group (which is a set) def add(self, a, b): leadera = self.leader.get(a) leaderb...
30.271186
99
0.530235
7942ef076a06e68a4f8fd6bf3534367a4c4d0b86
599
py
Python
submissions/count-vowels-permutation/solution.py
Wattyyy/LeetCode
13a9be056d0a0c38c2f8c8222b11dc02cb25a935
[ "MIT" ]
null
null
null
submissions/count-vowels-permutation/solution.py
Wattyyy/LeetCode
13a9be056d0a0c38c2f8c8222b11dc02cb25a935
[ "MIT" ]
1
2022-03-04T20:24:32.000Z
2022-03-04T20:31:58.000Z
submissions/count-vowels-permutation/solution.py
Wattyyy/LeetCode
13a9be056d0a0c38c2f8c8222b11dc02cb25a935
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/count-vowels-permutation from collections import defaultdict class Solution: def countVowelPermutation(self, n: int) -> int: M = 10 ** 9 + 7 dp = {"a": 1, "e": 1, "i": 1, "o": 1, "u": 1} for _ in range(n - 1): new = defaultdict(int) ...
29.95
56
0.419032
7942ef0c72167341ead27ee499c92673fdc210c4
1,235
py
Python
src/dumbgrepcli/__init__.py
arcturus140/dumbgrep
c4c1335a699d8fa9b5099be6553a248e25c18f39
[ "MIT" ]
4
2020-12-27T12:35:02.000Z
2022-01-02T00:44:49.000Z
src/dumbgrepcli/__init__.py
arcturus140/dumbgrep
c4c1335a699d8fa9b5099be6553a248e25c18f39
[ "MIT" ]
null
null
null
src/dumbgrepcli/__init__.py
arcturus140/dumbgrep
c4c1335a699d8fa9b5099be6553a248e25c18f39
[ "MIT" ]
1
2021-03-09T09:20:44.000Z
2021-03-09T09:20:44.000Z
import argparse import sys import re import math def main(): parser = argparse.ArgumentParser(description="A replacement for grep.") parser.add_argument("pattern", type=str, help="the pattern to search for") parser.add_argument("-v", dest="invert", default=False, action="store_true", help="invert matches"...
32.5
111
0.595142
7942ef9bbc5a2a1ae08f2edca627333d52e3398a
9,765
py
Python
sb2.py
dfm/maelstrom
0085218a22400ae54d8295060489dc3a23f1282a
[ "MIT" ]
null
null
null
sb2.py
dfm/maelstrom
0085218a22400ae54d8295060489dc3a23f1282a
[ "MIT" ]
null
null
null
sb2.py
dfm/maelstrom
0085218a22400ae54d8295060489dc3a23f1282a
[ "MIT" ]
null
null
null
# coding: utf-8 # In[1] import numpy as np import pandas as pd import tensorflow as tf import corner import matplotlib.pyplot as plt import hemcee from hemcee.sampler import TFModel from maelstrom.kepler import kepler # In[2] kicid=5709664 # PB1/SB1 rv = False Hemcee = True td=True times, dmag = np.loadtxt("kic570...
35.509091
205
0.643011
7942f016b7713610e44456de967c334ea5640fa8
5,886
py
Python
utils/dataset.py
vuiseng9/CalibTIP
69077c92611b079234706784c344e8c9156f3283
[ "MIT" ]
61
2020-06-14T20:00:05.000Z
2022-03-08T10:18:41.000Z
utils/dataset.py
vuiseng9/CalibTIP
69077c92611b079234706784c344e8c9156f3283
[ "MIT" ]
5
2020-09-01T06:53:41.000Z
2022-01-28T07:40:45.000Z
utils/dataset.py
vuiseng9/CalibTIP
69077c92611b079234706784c344e8c9156f3283
[ "MIT" ]
18
2020-06-28T10:30:58.000Z
2022-02-28T02:04:15.000Z
from io import BytesIO import pickle import PIL import torch from torch.utils.data import Dataset from torch.utils.data.sampler import Sampler, RandomSampler, BatchSampler, _int_classes from numpy.random import choice class RandomSamplerReplacment(torch.utils.data.sampler.Sampler): """Samples elements randomly, wi...
33.634286
95
0.61315
7942f0a2def8cbf8f88884300b3dad076af11c8a
284
py
Python
mmdet/core/bbox/iou_calculators/__init__.py
cameronchoi/r3det-docker
30af0b845b2baa4dcb7dccdc4ccd3238fd72bf75
[ "Apache-2.0" ]
176
2020-06-18T12:35:30.000Z
2022-03-28T02:20:57.000Z
mmdet/core/bbox/iou_calculators/__init__.py
cameronchoi/r3det-docker
30af0b845b2baa4dcb7dccdc4ccd3238fd72bf75
[ "Apache-2.0" ]
35
2020-06-28T07:03:24.000Z
2022-01-09T01:20:46.000Z
mmdet/core/bbox/iou_calculators/__init__.py
cameronchoi/r3det-docker
30af0b845b2baa4dcb7dccdc4ccd3238fd72bf75
[ "Apache-2.0" ]
44
2020-06-20T07:51:01.000Z
2022-02-10T01:17:54.000Z
from .builder import build_iou_calculator from .iou2d_calculator import BboxOverlaps2D, bbox_overlaps from .riou2d_calculator import RBboxOverlaps2D, rbbox_overlaps __all__ = ['build_iou_calculator', 'BboxOverlaps2D', 'bbox_overlaps', 'RBboxOverlaps2D', 'rbbox_overlaps']
40.571429
69
0.806338
7942f11ab1ed85d39a681ef25a53e1f6a59eb22b
5,492
py
Python
1DBedEvolutionModel/SWE-Bed-Exner.py
nakamori1024/WRR
d6595cb5559c76db58dce8c0ae26d2a6c38fe480
[ "MIT" ]
null
null
null
1DBedEvolutionModel/SWE-Bed-Exner.py
nakamori1024/WRR
d6595cb5559c76db58dce8c0ae26d2a6c38fe480
[ "MIT" ]
null
null
null
1DBedEvolutionModel/SWE-Bed-Exner.py
nakamori1024/WRR
d6595cb5559c76db58dce8c0ae26d2a6c38fe480
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Sep 24 16:13:50 2019 @author: river801 """ from numba import njit, jit, f8 import matplotlib.pyplot as plt import matplotlib.cm as cm import numpy as np import time import yaml @jit def momentum2(h,eta,u,wu,q,g,rdx,dt,snm,nx): for i in np.arange(1,nx): h_ba...
23.774892
87
0.446286
7942f1f89662ebaeca07d3789f4f97cc18f4c019
225
py
Python
iiif_store/urls/public.py
digirati-co-uk/drf-iiif-store
e7053ea197f6324a7efcb23aff67246634c84841
[ "MIT" ]
null
null
null
iiif_store/urls/public.py
digirati-co-uk/drf-iiif-store
e7053ea197f6324a7efcb23aff67246634c84841
[ "MIT" ]
null
null
null
iiif_store/urls/public.py
digirati-co-uk/drf-iiif-store
e7053ea197f6324a7efcb23aff67246634c84841
[ "MIT" ]
null
null
null
from rest_framework import routers from ..views import ( IIIFResourcePublicViewSet, ) app_name = "iiif_store" router = routers.SimpleRouter() router.register("iiif", IIIFResourcePublicViewSet) urlpatterns = router.urls
20.454545
50
0.791111
7942f40668fb0f6f17d1943732208bc8525f2fa3
3,324
py
Python
project_cl/tools/visualization.py
zhyever/SimIPU
5b346e392c161a5e9fdde09b1692656bc7cd3faf
[ "Apache-2.0" ]
29
2021-09-29T13:31:12.000Z
2022-03-15T13:31:25.000Z
project_cl/tools/visualization.py
zhyever/SimIPU
5b346e392c161a5e9fdde09b1692656bc7cd3faf
[ "Apache-2.0" ]
3
2021-12-13T01:21:12.000Z
2022-02-24T01:46:14.000Z
project_cl/tools/visualization.py
zhyever/SimIPU
5b346e392c161a5e9fdde09b1692656bc7cd3faf
[ "Apache-2.0" ]
1
2021-12-03T08:39:18.000Z
2021-12-03T08:39:18.000Z
import random from .calib_utils import Calibration, get_lidar_in_image_fov, draw_lidar, show_lidar_on_image import torch import cv2 from PIL import Image import time class Frustum_Region(object): def __init__(self, wr_max=0.7, wr_min=0.4, hr_max=1.0, hr_min=0.4, th=0.7, p=0.5): super(Frustum_Region, self...
42.075949
159
0.606197
7942f4680262e8dda246fc6c0368dd0cf0acabb3
325
py
Python
euler/py/euler-0004.py
kerkeslager/sandbox
45ec9c36ab7241cee93e615b3c901b5b80aa7aff
[ "MIT" ]
null
null
null
euler/py/euler-0004.py
kerkeslager/sandbox
45ec9c36ab7241cee93e615b3c901b5b80aa7aff
[ "MIT" ]
null
null
null
euler/py/euler-0004.py
kerkeslager/sandbox
45ec9c36ab7241cee93e615b3c901b5b80aa7aff
[ "MIT" ]
null
null
null
#!/usr/bin/env python from euler import * import itertools def products_of_three_digit_numbers(): three_digit_pairs = itertools.combinations(numbers_with_digits(3),2) return itertools.imap(product, three_digit_pairs) result = max(itertools.ifilter(is_palindromic, products_of_three_digit_numbers())) print re...
25
82
0.806154
7942f5250ad89e274539e5d59f06eeb2a9e3aa66
1,971
py
Python
nipype/interfaces/freesurfer/tests/test_auto_SphericalAverage.py
moloney/nipype
a7a9c85c79cb1412ba03406074f83200447ef50b
[ "Apache-2.0" ]
7
2017-02-17T08:54:26.000Z
2022-03-10T20:57:23.000Z
nipype/interfaces/freesurfer/tests/test_auto_SphericalAverage.py
moloney/nipype
a7a9c85c79cb1412ba03406074f83200447ef50b
[ "Apache-2.0" ]
1
2016-04-25T15:07:09.000Z
2016-04-25T15:07:09.000Z
nipype/interfaces/freesurfer/tests/test_auto_SphericalAverage.py
moloney/nipype
a7a9c85c79cb1412ba03406074f83200447ef50b
[ "Apache-2.0" ]
2
2017-09-23T16:22:00.000Z
2019-08-01T14:18:52.000Z
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from __future__ import unicode_literals from ..model import SphericalAverage def test_SphericalAverage_inputs(): input_map = dict( args=dict(argstr='%s', ), environ=dict( nohash=True, usedefault=True, ), ...
27
67
0.506342
7942f571b962976573d03d18224952f70b985725
358
py
Python
tests/cuda.pkg/extension.py
avalentino/pyre
7e1f0287eb7eba1c6d1ef385e5160079283ac363
[ "BSD-3-Clause" ]
25
2018-04-23T01:45:39.000Z
2021-12-10T06:01:23.000Z
tests/cuda.pkg/extension.py
avalentino/pyre
7e1f0287eb7eba1c6d1ef385e5160079283ac363
[ "BSD-3-Clause" ]
53
2018-05-31T04:55:00.000Z
2021-10-07T21:41:32.000Z
tests/cuda.pkg/extension.py
avalentino/pyre
7e1f0287eb7eba1c6d1ef385e5160079283ac363
[ "BSD-3-Clause" ]
12
2018-04-23T22:50:40.000Z
2022-02-20T17:27:23.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # michael a.g. aïvázis # orthologue # (c) 1998-2021 all rights reserved # """ Sanity check: verify that the extension module is accessible """ def test(): # access the extension module from cuda import cuda # all done return # main if __name__ == "...
12.344828
60
0.631285
7942f586e2efe06667ed6ea64dfbcdaff4d7152a
30
py
Python
apps/notifications/templatetags/__init__.py
sunmoon11/apilotus_django
115e9d0800751018f41ae8b9d85331d861126fd2
[ "Apache-2.0" ]
null
null
null
apps/notifications/templatetags/__init__.py
sunmoon11/apilotus_django
115e9d0800751018f41ae8b9d85331d861126fd2
[ "Apache-2.0" ]
3
2019-12-04T22:21:46.000Z
2020-05-09T18:57:24.000Z
apps/notifications/templatetags/__init__.py
zaza316614/apilotus_django
115e9d0800751018f41ae8b9d85331d861126fd2
[ "Apache-2.0" ]
null
null
null
__author__ = 'Narayan Kandel'
15
29
0.766667
7942f65f9ead75831cb0c4f44d3aec2f5c9f33f1
2,008
py
Python
wes_service/util.py
jaeddy/workflow-service
e20fda03768990f92389363938ccb45daeffd6fa
[ "Apache-2.0" ]
null
null
null
wes_service/util.py
jaeddy/workflow-service
e20fda03768990f92389363938ccb45daeffd6fa
[ "Apache-2.0" ]
null
null
null
wes_service/util.py
jaeddy/workflow-service
e20fda03768990f92389363938ccb45daeffd6fa
[ "Apache-2.0" ]
null
null
null
import tempfile import json import os from six import itervalues, iterlists import connexion from werkzeug.utils import secure_filename def visit(d, op): """Recursively call op(d) for all list subelements and dictionary 'values' that d may have.""" op(d) if isinstance(d, list): for i in d: ...
31.873016
109
0.550299
7942f661a64e4f5650185822ee17e0e154e580f9
4,129
py
Python
DEMA.py
louisvathan/NSE-Stocks-Strategies-Tester
53d6bfd05cb46ebbdb19f88ed42a8aad4cafdfd8
[ "MIT" ]
null
null
null
DEMA.py
louisvathan/NSE-Stocks-Strategies-Tester
53d6bfd05cb46ebbdb19f88ed42a8aad4cafdfd8
[ "MIT" ]
1
2021-08-07T14:47:25.000Z
2021-08-07T14:47:25.000Z
DEMA.py
louisvathan/NSE-Stocks-Strategies-Tester
53d6bfd05cb46ebbdb19f88ed42a8aad4cafdfd8
[ "MIT" ]
1
2021-06-27T21:36:42.000Z
2021-06-27T21:36:42.000Z
import pandas as pd import numpy as np import matplotlib.pyplot as plt plt.style.use('seaborn') from Status import * from BackTest import BackTest def plot_dema(stock, plt_df, plot_full_location, cur_descp): plt_df = plt_df.set_index(pd.DatetimeIndex(plt_df['Date'].values)) #Plotting DEMA Chart....
38.231481
116
0.644466
7942f6b4a86f3358f453a7c0dbabb49623295c47
31,144
py
Python
venv/Lib/site-packages/jedi/api/__init__.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
1,318
2019-07-11T10:34:39.000Z
2022-03-29T15:05:19.000Z
venv/Lib/site-packages/jedi/api/__init__.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
387
2020-12-15T14:54:04.000Z
2022-03-31T07:00:21.000Z
venv/Lib/site-packages/jedi/api/__init__.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
66
2019-11-11T15:33:12.000Z
2022-03-01T07:55:55.000Z
""" The API basically only provides one class. You can create a :class:`Script` and use its methods. Additionally you can add a debug function with :func:`set_debug_function`. Alternatively, if you don't need a custom function and are happy with printing debug messages to stdout, simply call :func:`set_debug_function`...
40.446753
98
0.627761
7942f7e797c023abb15e67e5afd0091935de890c
2,382
py
Python
tests/test_logger.py
fredstro/mrq
eec5dfb425c765afa1ab5b41ca1e6f76869a6726
[ "MIT" ]
745
2015-01-02T06:54:37.000Z
2022-03-27T13:23:33.000Z
tests/test_logger.py
fredstro/mrq
eec5dfb425c765afa1ab5b41ca1e6f76869a6726
[ "MIT" ]
175
2015-01-01T20:46:08.000Z
2022-01-24T09:40:55.000Z
tests/test_logger.py
fredstro/mrq
eec5dfb425c765afa1ab5b41ca1e6f76869a6726
[ "MIT" ]
143
2015-01-06T06:55:26.000Z
2021-09-13T19:47:12.000Z
import time import pytest import os OPTS = [] for cls in ["string", "unicode", "latin-1", "bytes1"]: for utf8_sys_stdout in [True, False]: OPTS.append([cls, utf8_sys_stdout]) @pytest.mark.parametrize(["class_name", "utf8_sys_stdout"], OPTS) def test_supports_string_and_unicode(worker, class_name, utf8_sy...
29.407407
89
0.642317
7942f8f14883e4b10210f801cd42e6e94ef3185e
13,357
py
Python
test/test_pysindy.py
jzjosuerivera71/pysindy-1
6ed02140c3e255c8bb69b19a7d9452930bd3253d
[ "MIT" ]
1
2021-03-02T20:31:40.000Z
2021-03-02T20:31:40.000Z
test/test_pysindy.py
jzjosuerivera71/pysindy-1
6ed02140c3e255c8bb69b19a7d9452930bd3253d
[ "MIT" ]
null
null
null
test/test_pysindy.py
jzjosuerivera71/pysindy-1
6ed02140c3e255c8bb69b19a7d9452930bd3253d
[ "MIT" ]
null
null
null
""" Unit tests for SINDy class. Note: all tests should be encapsulated in functions whose names start with "test_" To run all tests for this package, navigate to the top-level directory and execute the following command: pytest To run tests for just one file, run pytest file_to_test.py """ import numpy as np import...
25.013109
85
0.681291
7942f9a01cdfb35811fcb8d80ff9afd99f41085a
4,388
py
Python
facts/learn.py
cdcihub/literature-to-facts
9fcf7bd74790e4e067f799270edd958cc30ee143
[ "MIT" ]
null
null
null
facts/learn.py
cdcihub/literature-to-facts
9fcf7bd74790e4e067f799270edd958cc30ee143
[ "MIT" ]
null
null
null
facts/learn.py
cdcihub/literature-to-facts
9fcf7bd74790e4e067f799270edd958cc30ee143
[ "MIT" ]
null
null
null
import logging import typing from concurrent import futures import odakb.sparql # type: ignore import re import sys import json import importlib from datetime import datetime import requests import click import rdflib # type: ignore import time import multiprocessing import threading from facts.core import workflow imp...
27.08642
155
0.537375
7942f9cf809108824b1bacd32182c0acb0155351
2,984
py
Python
tests/unit/states/test_status.py
xiaowei582648206/saltx
1d17b030b973ce5422e0fbe7e17c98c7ca91c49b
[ "Apache-2.0" ]
1
2022-02-09T06:40:14.000Z
2022-02-09T06:40:14.000Z
tests/unit/states/test_status.py
xiaowei582648206/saltx
1d17b030b973ce5422e0fbe7e17c98c7ca91c49b
[ "Apache-2.0" ]
null
null
null
tests/unit/states/test_status.py
xiaowei582648206/saltx
1d17b030b973ce5422e0fbe7e17c98c7ca91c49b
[ "Apache-2.0" ]
4
2020-11-04T06:28:05.000Z
2022-02-09T10:54:49.000Z
# -*- coding: utf-8 -*- ''' :codeauthor: Jayesh Kariya <jayeshk@saltstack.com> ''' # Import Python libs from __future__ import absolute_import # Import Salt Testing Libs from tests.support.mixins import LoaderModuleMockMixin from tests.support.unit import skipIf, TestCase from tests.support.mock import ( NO_MO...
32.434783
73
0.569035
7942f9d926764fc8bddf504aa50cd9d40488fcbb
7,838
py
Python
contrib/bitrpc/bitrpc.py
abc112116/nengcoin
f0306a468b5ddf8b5bac0268bbd9bf7a134624c8
[ "MIT" ]
6
2021-01-04T01:01:29.000Z
2021-04-12T00:39:35.000Z
contrib/bitrpc/bitrpc.py
abc112116/nengcoin
f0306a468b5ddf8b5bac0268bbd9bf7a134624c8
[ "MIT" ]
4
2021-01-06T04:09:54.000Z
2022-01-24T06:12:51.000Z
contrib/bitrpc/bitrpc.py
abc112116/nengcoin
f0306a468b5ddf8b5bac0268bbd9bf7a134624c8
[ "MIT" ]
5
2021-02-07T00:14:59.000Z
2021-04-18T15:08:43.000Z
from jsonrpc import ServiceProxy import sys import string # ===== 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:6376") else: access = Ser...
24.116923
79
0.668283
7942fc360b21a8477d5ce3e92aaff48fc8fc8dde
5,515
py
Python
scripts/plot_dam_break.py
TormodLandet/Ocellaris
6b4b2515fb881b1ed8d8fd8d8c23a8e1990ada58
[ "Apache-2.0" ]
1
2017-11-07T12:19:44.000Z
2017-11-07T12:19:44.000Z
scripts/plot_dam_break.py
TormodLandet/Ocellaris
6b4b2515fb881b1ed8d8fd8d8c23a8e1990ada58
[ "Apache-2.0" ]
null
null
null
scripts/plot_dam_break.py
TormodLandet/Ocellaris
6b4b2515fb881b1ed8d8fd8d8c23a8e1990ada58
[ "Apache-2.0" ]
2
2018-05-02T17:17:01.000Z
2019-03-11T13:09:40.000Z
# Copyright (C) 2017-2019 Tormod Landet # SPDX-License-Identifier: Apache-2.0 # encoding: utf-8 from __future__ import division, print_function import os import numpy from matplotlib import pyplot from matplotlib.ticker import MultipleLocator def read_iso_surface_file(file_name): with open(file_name, 'rt') as f:...
25.298165
79
0.497552
7942fdfffedec9a2db8c9edcf9fc2415ca6571e1
5,445
py
Python
st2common/st2common/transport/publishers.py
kkkanil/st2
07cd195d7a6e177a37dd019e5c9ab8329259d0fa
[ "Apache-2.0" ]
null
null
null
st2common/st2common/transport/publishers.py
kkkanil/st2
07cd195d7a6e177a37dd019e5c9ab8329259d0fa
[ "Apache-2.0" ]
15
2021-02-11T22:58:54.000Z
2021-08-06T18:03:47.000Z
st2common/st2common/transport/publishers.py
kkkanil/st2
07cd195d7a6e177a37dd019e5c9ab8329259d0fa
[ "Apache-2.0" ]
1
2021-07-10T15:02:29.000Z
2021-07-10T15:02:29.000Z
# Copyright 2020 The StackStorm Authors. # Copyright 2019 Extreme Networks, 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 ...
38.617021
98
0.644077
7942ff3de74136ac6fc4eb89ebd342a8b049eb19
542
py
Python
var/spack/repos/builtin.mock/packages/maintainers-1/package.py
alkino/spack
b87ff60c7e23d7b50fac620ad60c8e2537312ebd
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-06-25T15:25:29.000Z
2020-06-25T15:25:29.000Z
var/spack/repos/builtin.mock/packages/maintainers-1/package.py
alkino/spack
b87ff60c7e23d7b50fac620ad60c8e2537312ebd
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin.mock/packages/maintainers-1/package.py
alkino/spack
b87ff60c7e23d7b50fac620ad60c8e2537312ebd
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Maintainers1(Package): """Package with a maintainers field.""" homepage = "http://www...
25.809524
73
0.690037
794300272ee88de3fa66375d377254a2b05554e3
10,596
py
Python
ppgan/apps/first_order_predictor.py
guojiahuiEmily/PaddleGAN
9fa708ffad23a96b0d0faeac0742909136618438
[ "Apache-2.0" ]
null
null
null
ppgan/apps/first_order_predictor.py
guojiahuiEmily/PaddleGAN
9fa708ffad23a96b0d0faeac0742909136618438
[ "Apache-2.0" ]
null
null
null
ppgan/apps/first_order_predictor.py
guojiahuiEmily/PaddleGAN
9fa708ffad23a96b0d0faeac0742909136618438
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. # #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...
37.978495
118
0.534919
79430039b031380e8681e2a6865f8bf005298ea6
5,104
py
Python
TrainingInterfaces/Text_to_Spectrogram/FastSpeech2/PitchCalculator_Dio.py
Adamantcat/IMS-Toucan
1ae02026a2a3233aaacc9d3a63d391918a2581e8
[ "Apache-2.0" ]
null
null
null
TrainingInterfaces/Text_to_Spectrogram/FastSpeech2/PitchCalculator_Dio.py
Adamantcat/IMS-Toucan
1ae02026a2a3233aaacc9d3a63d391918a2581e8
[ "Apache-2.0" ]
null
null
null
TrainingInterfaces/Text_to_Spectrogram/FastSpeech2/PitchCalculator_Dio.py
Adamantcat/IMS-Toucan
1ae02026a2a3233aaacc9d3a63d391918a2581e8
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Nagoya University (Tomoki Hayashi) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) # Adapted by Florian Lux 2021 import numpy as np import pyworld import torch import torch.nn.functional as F from scipy.interpolate import interp1d from Utility.utils import pad_list class Dio(torch.nn.Mo...
39.261538
157
0.628918
7943003f99a102cdaff2f79aee8adfe9f278399e
1,599
py
Python
google-cloud-clients/google-cloud-kms/synth.py
teeraporn39/google-cloud-java
0e2d6f25f6b5dcf3be71cced913fc174e6c46cb0
[ "Apache-2.0" ]
2
2019-08-25T15:16:57.000Z
2019-08-25T15:17:04.000Z
google-cloud-clients/google-cloud-kms/synth.py
teeraporn39/google-cloud-java
0e2d6f25f6b5dcf3be71cced913fc174e6c46cb0
[ "Apache-2.0" ]
3
2019-05-22T14:12:27.000Z
2019-07-09T14:16:23.000Z
google-cloud-clients/google-cloud-kms/synth.py
darienesf/google-cloud-java
d66c22b2ee15453755307249c0e88c79cb20686f
[ "Apache-2.0" ]
1
2019-02-01T22:12:05.000Z
2019-02-01T22:12:05.000Z
# Copyright 2018 Google LLC # # 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, s...
39
134
0.729206
7943014e2dcdec75f68768fc0dfbbff1e9abd8df
3,975
py
Python
yt_dlp/postprocessor/sponsorblock.py
jeroenj/yt-dlp
11078c6d571673a0f09e21933f4ad1e6fcc35456
[ "Unlicense" ]
1
2022-03-26T15:43:50.000Z
2022-03-26T15:43:50.000Z
yt_dlp/postprocessor/sponsorblock.py
jeroenj/yt-dlp
11078c6d571673a0f09e21933f4ad1e6fcc35456
[ "Unlicense" ]
null
null
null
yt_dlp/postprocessor/sponsorblock.py
jeroenj/yt-dlp
11078c6d571673a0f09e21933f4ad1e6fcc35456
[ "Unlicense" ]
2
2022-01-10T08:38:40.000Z
2022-01-25T11:32:14.000Z
from hashlib import sha256 import json import re from .ffmpeg import FFmpegPostProcessor from ..compat import compat_urllib_parse_urlencode class SponsorBlockPP(FFmpegPostProcessor): # https://wiki.sponsor.ajay.app/w/Types EXTRACTORS = { 'Youtube': 'YouTube', } POI_CATEGORIES = { 'poi...
40.561224
141
0.604025
794301ac1ca5014d4568b7fd43d98acccf7caafe
4,129
py
Python
tests/scripts/test_buddy_cli.py
brentyi/hfdsajk
2888aa5d969824ac1e1a528264674ece3f4703f9
[ "MIT" ]
5
2020-03-13T21:34:31.000Z
2020-10-27T15:18:17.000Z
tests/scripts/test_buddy_cli.py
brentyi/hfdsajk
2888aa5d969824ac1e1a528264674ece3f4703f9
[ "MIT" ]
2
2020-06-17T11:06:56.000Z
2020-10-25T03:06:18.000Z
tests/scripts/test_buddy_cli.py
brentyi/hfdsajk
2888aa5d969824ac1e1a528264674ece3f4703f9
[ "MIT" ]
4
2020-03-15T01:55:18.000Z
2022-01-21T22:06:48.000Z
import os import subprocess from typing import List, Tuple, Union import torch import fannypack def _run_command(command: Union[str, List[str]]) -> Tuple[str, str, int]: """Helper for running a command & returning results.""" proc = subprocess.Popen( command, stdout=subprocess.PIPE, ...
28.874126
88
0.640833
7943020f42d8b4148af3265f66df696448585bc0
2,242
py
Python
testproj/testproj/settings/env.py
pivotal-energy-solutions/django-input-collection
cc2ce3e0a7104ba9c524eaba5706da94ddb04a5f
[ "Apache-2.0" ]
null
null
null
testproj/testproj/settings/env.py
pivotal-energy-solutions/django-input-collection
cc2ce3e0a7104ba9c524eaba5706da94ddb04a5f
[ "Apache-2.0" ]
4
2019-08-25T15:47:24.000Z
2022-03-24T19:35:09.000Z
testproj/testproj/settings/env.py
pivotal-energy-solutions/django-input-collection
cc2ce3e0a7104ba9c524eaba5706da94ddb04a5f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import warnings from django.core.exceptions import ImproperlyConfigured # BASE_DIR is the project root (i.e., where manage.py lives) BASE_DIR = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), "../..")) # Default .env location (override with environment vari...
29.5
97
0.620874
79430320a31acc5f3d718cc1c5043ca2cd21c60d
748
py
Python
src/functions.py
pratyuksh/xtDgWave
4b3bf60fe5f974a9d166f3553c64c8ee4f1721d9
[ "MIT" ]
null
null
null
src/functions.py
pratyuksh/xtDgWave
4b3bf60fe5f974a9d166f3553c64c8ee4f1721d9
[ "MIT" ]
null
null
null
src/functions.py
pratyuksh/xtDgWave
4b3bf60fe5f974a9d166f3553c64c8ee4f1721d9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import numpy as np import src.legendre as legendre # uniform time series: h_t = T/ne_t def get_uniform_time_series(T, ne_t): tMesh = np.zeros(ne_t + 1) for k in range(0, ne_t + 1): tMesh[k] = k * T / ne_t return tMesh # Affine mapping, reference i...
19.179487
66
0.593583
79430417b2d0950ca4be67d14ce9dcf1e3ac7e2c
42,834
py
Python
mesonbuild/mtest.py
gerion0/meson
48a5d17830820e4729d252fc33c26fb9dac66404
[ "Apache-2.0" ]
null
null
null
mesonbuild/mtest.py
gerion0/meson
48a5d17830820e4729d252fc33c26fb9dac66404
[ "Apache-2.0" ]
null
null
null
mesonbuild/mtest.py
gerion0/meson
48a5d17830820e4729d252fc33c26fb9dac66404
[ "Apache-2.0" ]
null
null
null
# Copyright 2016-2017 The Meson development team # 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 agree...
40.71673
163
0.570645
7943056f8ac5256440472828c671b04e319d0c09
1,359
py
Python
homeassistant/components/abode/cover.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/abode/cover.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
homeassistant/components/abode/cover.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Support for Abode Security System covers.""" from typing import Any from abodepy.devices.cover import AbodeCover as AbodeCV import abodepy.helpers.constants as CONST from homeassistant.components.cover import CoverEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssist...
28.914894
84
0.726269
7943059c00adb0f4bb38d557ac8f828c9e255543
1,819
py
Python
test/testers/winforms/datetimepicker_showupdown/__init__.py
ABEMBARKA/monoUI
5fda266ad2db8f89580a40b525973d86cd8de939
[ "MIT" ]
1
2019-08-13T15:22:12.000Z
2019-08-13T15:22:12.000Z
test/testers/winforms/datetimepicker_showupdown/__init__.py
ABEMBARKA/monoUI
5fda266ad2db8f89580a40b525973d86cd8de939
[ "MIT" ]
null
null
null
test/testers/winforms/datetimepicker_showupdown/__init__.py
ABEMBARKA/monoUI
5fda266ad2db8f89580a40b525973d86cd8de939
[ "MIT" ]
1
2019-08-13T15:22:17.000Z
2019-08-13T15:22:17.000Z
# vim: set tabstop=4 shiftwidth=4 expandtab ############################################################################## # Written by: Ray Wang <rawang@novell.com> # Date: 02/16/2008 # Description: Application wrapper for datetimepicker_showupdown.py # be called by ../datetimepicker_showupdown_op...
34.980769
110
0.64431
794305d49d744c7860b694eb09b8846e05363fa7
1,646
py
Python
dcase_task2/lasagne_wrapper/evaluation.py
f0k/dcase_task2
e7246e2e2ffdd59efde3b571556eef4c3bcffe22
[ "MIT" ]
32
2018-10-08T13:00:50.000Z
2020-11-24T14:55:51.000Z
dcase_task2/lasagne_wrapper/evaluation.py
f0k/dcase_task2
e7246e2e2ffdd59efde3b571556eef4c3bcffe22
[ "MIT" ]
4
2019-02-25T09:51:46.000Z
2019-05-17T17:03:01.000Z
dcase_task2/lasagne_wrapper/evaluation.py
f0k/dcase_task2
e7246e2e2ffdd59efde3b571556eef4c3bcffe22
[ "MIT" ]
10
2018-11-16T16:41:16.000Z
2021-09-01T07:23:50.000Z
import numpy as np def apk(actual, predicted, k=10): """ Computes the average precision at k. This function computes the average prescision at k between two lists of items. Parameters ---------- actual : list A list of elements that are to be predicted (order doesn't matter) ...
27.898305
79
0.594168
794306e21f9e5ab6a80ac2d7daecada419798930
7,194
py
Python
Tencent/Human Pose Estimation/models/loss_model_parallel.py
orange-eng/internship
c8c566df453d3a4bdf692338f74916ae15792fa1
[ "Apache-2.0" ]
2
2021-11-14T14:09:47.000Z
2022-02-08T22:04:50.000Z
Tencent/Human Pose Estimation/models/loss_model_parallel.py
orange-eng/internship
c8c566df453d3a4bdf692338f74916ae15792fa1
[ "Apache-2.0" ]
null
null
null
Tencent/Human Pose Estimation/models/loss_model_parallel.py
orange-eng/internship
c8c566df453d3a4bdf692338f74916ae15792fa1
[ "Apache-2.0" ]
null
null
null
import time import torch from torch import nn import torch.nn.functional as F class MultiTaskLossParallel(nn.Module): def __init__(self, opt, config, heatmap_weight=1, offset_weight=1, **kwargs): super(MultiTaskLossParallel, self).__init__() self.nstack = opt.nstack self.batch_size = opt.b...
50.661972
120
0.613428
794307658fc7470fe6c5e0890b92cedef9cbdf9e
571
py
Python
utils/data.py
shivamswarnkar/Image-Generator
55b6d066c84c615403e48c27e77ee017cf260955
[ "MIT" ]
8
2019-11-07T19:55:37.000Z
2021-11-11T06:53:50.000Z
utils/data.py
shivamswarnkar/Image-Generator
55b6d066c84c615403e48c27e77ee017cf260955
[ "MIT" ]
1
2021-07-02T23:44:22.000Z
2021-07-10T08:00:12.000Z
utils/data.py
shivamswarnkar/Image-Generator
55b6d066c84c615403e48c27e77ee017cf260955
[ "MIT" ]
2
2019-11-07T19:31:21.000Z
2019-11-21T12:02:12.000Z
import torch import torchvision.transforms as transforms import torchvision.datasets as dset def create_data_loader(args): dataset = dset.ImageFolder(root=args.dataroot, transform=transforms.Compose( [ transforms.Resize(args.image_size), transforms.CenterCrop(args.image_size), transforms.ToTensor(), ...
20.392857
51
0.728546
794307fb6baf23f358b3663013f93070f81b1449
2,568
py
Python
change_world_names.py
fingerco/sims-4-caw
1392b9d9c935ad3ce10feed97a2a37b7fd93749b
[ "Apache-2.0" ]
null
null
null
change_world_names.py
fingerco/sims-4-caw
1392b9d9c935ad3ce10feed97a2a37b7fd93749b
[ "Apache-2.0" ]
null
null
null
change_world_names.py
fingerco/sims-4-caw
1392b9d9c935ad3ce10feed97a2a37b7fd93749b
[ "Apache-2.0" ]
null
null
null
import ctypes import ctypes.util import re import struct from caw_memory_editors import MacOSX, CannotReadException BASE_WORLD_NAME = "Von Haunt Estate".encode('utf-8') REPLACE_WORLD_NAME = "Apple Fritters are tasty".encode('utf-8') class ChangeWorldNames: def __init__(self, process): self.process = proce...
42.098361
138
0.688474
794309a952fa3a98b704ad721865d32b845b39b2
7,886
py
Python
tests/python/test_disassembler.py
navarrothiago/bcc
91a1f2dbee713aac2161ba39de4d98f95e233a68
[ "Apache-2.0" ]
6
2020-01-09T23:01:43.000Z
2020-04-25T01:06:03.000Z
tests/python/test_disassembler.py
navarrothiago/bcc
91a1f2dbee713aac2161ba39de4d98f95e233a68
[ "Apache-2.0" ]
null
null
null
tests/python/test_disassembler.py
navarrothiago/bcc
91a1f2dbee713aac2161ba39de4d98f95e233a68
[ "Apache-2.0" ]
1
2019-02-26T10:06:31.000Z
2019-02-26T10:06:31.000Z
#!/usr/bin/env python3 # Copyright (c) Clevernet # Licensed under the Apache License, Version 2.0 (the "License") # test program for the 'disassemble_func' and 'decode_table' methods from bcc import BPF from bcc import disassembler import ctypes as ct import random from unittest import main, TestCase class BPFInstr(...
39.828283
101
0.410474
794309e12f179df3a940468097773d1e1ce2e1b6
1,170
py
Python
micromagnetictests/calculatortests/stdprob4.py
ubermag/micromagnetictests
60ad592b146f1ca5c35c897b64f281d62fa77699
[ "BSD-3-Clause" ]
2
2021-05-27T05:00:39.000Z
2022-01-16T15:01:39.000Z
micromagnetictests/calculatortests/stdprob4.py
ubermag/micromagnetictests
60ad592b146f1ca5c35c897b64f281d62fa77699
[ "BSD-3-Clause" ]
6
2021-06-25T09:42:35.000Z
2022-03-15T00:09:10.000Z
micromagnetictests/calculatortests/stdprob4.py
ubermag/micromagnetictests
60ad592b146f1ca5c35c897b64f281d62fa77699
[ "BSD-3-Clause" ]
1
2021-07-04T15:39:10.000Z
2021-07-04T15:39:10.000Z
import discretisedfield as df import micromagneticmodel as mm def test_stdprob4(calculator): name = 'stdprob4' L, d, th = 500e-9, 125e-9, 3e-9 # (m) cell = (5e-9, 5e-9, 3e-9) # (m) p1 = (0, 0, 0) p2 = (L, d, th) region = df.Region(p1=p1, p2=p2) mesh = df.Mesh(region=region, cell=cell) ...
24.893617
76
0.580342
79430b8d3558441f6bb681a67f6226e315ffb8b0
1,806
py
Python
tests/gunicorn/test_gunicorn_3.py
hypertrace/pythonagent
283e18c61807f4ae653d147be9ff1424b0b0a6eb
[ "Apache-2.0" ]
4
2021-05-19T16:16:26.000Z
2022-01-16T04:48:43.000Z
tests/gunicorn/test_gunicorn_2.py
hypertrace/pythonagent
283e18c61807f4ae653d147be9ff1424b0b0a6eb
[ "Apache-2.0" ]
48
2021-04-27T07:25:48.000Z
2021-08-30T21:27:27.000Z
tests/gunicorn/test_gunicorn_3.py
hypertrace/pythonagent
283e18c61807f4ae653d147be9ff1424b0b0a6eb
[ "Apache-2.0" ]
null
null
null
import sys import os import logging import traceback import json import pytest import requests from werkzeug.serving import make_server import time import atexit import threading import datetime def setup_custom_logger(name): try: formatter = logging.Formatter(fmt='%(asctime)s %(levelname)-8s %(message)s', ...
32.836364
105
0.684939
79430b9ec6b24047004ffe840a04ef0184cdbf02
13,700
py
Python
mmdet/models/dense_heads/deformable_detr_head.py
hyperlist/mmdetection
ba4918de7fb21a96edc373584fa21a17d098a843
[ "Apache-2.0" ]
null
null
null
mmdet/models/dense_heads/deformable_detr_head.py
hyperlist/mmdetection
ba4918de7fb21a96edc373584fa21a17d098a843
[ "Apache-2.0" ]
null
null
null
mmdet/models/dense_heads/deformable_detr_head.py
hyperlist/mmdetection
ba4918de7fb21a96edc373584fa21a17d098a843
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. import copy import paddle import paddle.nn as nn from mmcv.cnn import Linear, bias_init_with_prob, constant_init from mmcv.runner import force_fp32 from mmdet.core import multi_apply from mmdet.models.utils.transformer import inverse_sigmoid from ..builder import HEADS...
42.946708
98
0.588394
79430beb466d9d12cfb98928ffea27957fc738a0
2,263
py
Python
project/fsm/ms-fsm/setup.py
juanlucruz/tng-communications-pilot
3d40d631b62e14b609cc58eee58e843a97553653
[ "Apache-2.0" ]
null
null
null
project/fsm/ms-fsm/setup.py
juanlucruz/tng-communications-pilot
3d40d631b62e14b609cc58eee58e843a97553653
[ "Apache-2.0" ]
76
2018-06-16T10:46:24.000Z
2019-11-19T08:39:59.000Z
project/fsm/ms-fsm/setup.py
juanlucruz/tng-communications-pilot
3d40d631b62e14b609cc58eee58e843a97553653
[ "Apache-2.0" ]
12
2018-05-14T09:01:47.000Z
2019-08-21T08:03:44.000Z
""" Copyright (c) 2015 SONATA-NFV, 2017 5GTANGO ALL RIGHTS RESERVED. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable la...
31
72
0.760495
79430bf3dd6cc400aa619f299f9520f2cb181cac
3,385
py
Python
e621/reports/api.py
adjspecies/explore621
0ec946d28ed54d11569aa237f721001f74e7f1be
[ "MIT" ]
3
2019-10-12T13:32:22.000Z
2021-11-18T19:17:16.000Z
e621/reports/api.py
adjspecies/explore621
0ec946d28ed54d11569aa237f721001f74e7f1be
[ "MIT" ]
6
2018-12-11T20:38:26.000Z
2021-06-10T21:01:45.000Z
e621/reports/api.py
adjspecies/explore621
0ec946d28ed54d11569aa237f721001f74e7f1be
[ "MIT" ]
4
2018-12-11T06:19:59.000Z
2022-02-17T00:29:15.000Z
import json import re from django.http import HttpResponse from .models import ( Report, Run, ) from .runners import RUNNERS help_text_re = re.compile(r'\n ') def _success(obj): response = HttpResponse(json.dumps({ 'status': 'success', 'message': 'ok', 'result': obj, }), c...
32.864078
75
0.574594
79430c27608b54e55c99ede043800bc145f0a378
2,261
py
Python
drone_system/forms.py
mriduldhall/DroneNav
724718b96e37510c1d1bab942f05f46eec099175
[ "MIT" ]
null
null
null
drone_system/forms.py
mriduldhall/DroneNav
724718b96e37510c1d1bab942f05f46eec099175
[ "MIT" ]
null
null
null
drone_system/forms.py
mriduldhall/DroneNav
724718b96e37510c1d1bab942f05f46eec099175
[ "MIT" ]
null
null
null
from django import forms from django.forms import ModelForm from user_system.models import users from .models import drones class BookForm(ModelForm): class Meta: model = drones fields = ['origin', 'destination'] widgets = { 'origin': forms.Select( attrs={ ...
28.2625
141
0.495798
79430c2e031190489013e316c967eb15859690e0
5,180
py
Python
python/rapidstream/BE/InitialSlotPlacement.py
Licheng-Guo/RapidStream
19d0d8c0f7766fdfb612252483f59660e21fddc0
[ "MIT" ]
69
2021-12-16T12:58:10.000Z
2022-03-22T00:45:13.000Z
python/rapidstream/BE/InitialSlotPlacement.py
Licheng-Guo/RapidStream
19d0d8c0f7766fdfb612252483f59660e21fddc0
[ "MIT" ]
1
2021-12-16T16:43:34.000Z
2021-12-16T16:43:34.000Z
python/rapidstream/BE/InitialSlotPlacement.py
Licheng-Guo/RapidStream
19d0d8c0f7766fdfb612252483f59660e21fddc0
[ "MIT" ]
10
2021-12-17T18:18:19.000Z
2022-03-17T15:56:15.000Z
import argparse import logging import json import math import os from rapidstream.BE.Utilities import getAnchorTimingReportScript from rapidstream.BE.GenAnchorConstraints import getSlotInitPlacementPblock from rapidstream.BE.Utilities import loggingSetup loggingSetup() def getPlacementScript(slot_name): script = ...
40.46875
147
0.741699
79430c9a2be7102fd88e50fb6b297e9e77ca14eb
1,001
py
Python
anyser/__init__.py
Cologler/anyser-python
52afa0a62003adcfe269f47d81863e00381d8ff9
[ "MIT" ]
null
null
null
anyser/__init__.py
Cologler/anyser-python
52afa0a62003adcfe269f47d81863e00381d8ff9
[ "MIT" ]
null
null
null
anyser/__init__.py
Cologler/anyser-python
52afa0a62003adcfe269f47d81863e00381d8ff9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2020~2999 - Cologler <skyoflw@gmail.com> # ---------- # # ---------- import os import importlib from .err import FormatNotFoundError, SerializeError, NotSupportError from .abc import ISerializer from .core import ComplexSerializer from .g import ( load, loads, loadb, ...
24.414634
72
0.635365
79430e254a8a042962939346d76fbd215d2aea63
2,583
py
Python
ppApiConfig.py
GSA/PricesPaidAPI
0899d86d20e20501e15054b2fdf62decac49fa3a
[ "Unlicense" ]
3
2015-02-04T17:34:08.000Z
2017-12-12T16:43:40.000Z
ppApiConfig.py
GSA/PricesPaidAPI
0899d86d20e20501e15054b2fdf62decac49fa3a
[ "Unlicense" ]
null
null
null
ppApiConfig.py
GSA/PricesPaidAPI
0899d86d20e20501e15054b2fdf62decac49fa3a
[ "Unlicense" ]
2
2017-07-15T00:14:48.000Z
2019-11-01T16:17:11.000Z
# These configuration are necessary if you are using Bottle as your webserver BottlePortNumber = 8080 BottleHostname = 'localhost' SolrDeleteExistingData = 'F' PathToDataFiles = "../cookedData/EDW" PathToArchiveInputFiles = "../cookedData/ArchiveFiles/InputFiles" PathToArchiveErrorFiles = "../cookedData/ArchiveFiles/Er...
32.696203
102
0.745645
79430eddbde460f583f7cfc0e94d6809b237c4ba
937
py
Python
cloudworker.py
fredericorecsky/cloudworker
481775eb7c2c46e63d635cbbbf69a049d03fa42a
[ "Apache-2.0" ]
1
2021-04-09T19:59:14.000Z
2021-04-09T19:59:14.000Z
cloudworker.py
fredericorecsky/cloudworker
481775eb7c2c46e63d635cbbbf69a049d03fa42a
[ "Apache-2.0" ]
null
null
null
cloudworker.py
fredericorecsky/cloudworker
481775eb7c2c46e63d635cbbbf69a049d03fa42a
[ "Apache-2.0" ]
null
null
null
import logging from queues import gcppubsub from queues import gcprun from datetime import date, datetime def execute( message ): start = datetime.now().strftime("%d%m%Y %H:%M:%S") process = gcprun.Process(message.data) message.ack() try: if process.Run(): logging...
27.558824
121
0.61793
79430f2f9f7b3614dccb8581c23c089db7f7ff48
6,721
py
Python
pyuvsim/tests/test_telescope.py
RadioAstronomySoftwareGroup/pyuvsim
1ef8cdbfd98fc6f49b598f75d759852407601ebf
[ "BSD-3-Clause" ]
26
2019-01-17T09:02:24.000Z
2022-02-22T07:49:36.000Z
pyuvsim/tests/test_telescope.py
RadioAstronomySoftwareGroup/pyuvsim
1ef8cdbfd98fc6f49b598f75d759852407601ebf
[ "BSD-3-Clause" ]
335
2018-07-20T19:09:38.000Z
2022-03-30T13:55:17.000Z
pyuvsim/tests/test_telescope.py
RadioAstronomySoftwareGroup/pyuvsim
1ef8cdbfd98fc6f49b598f75d759852407601ebf
[ "BSD-3-Clause" ]
3
2018-08-11T02:33:18.000Z
2021-06-17T11:19:31.000Z
import os import copy from astropy.coordinates import EarthLocation import pytest from pyuvdata import UVBeam import pyuvdata.tests as uvtest import pyuvsim from pyuvsim.data import DATA_PATH as SIM_DATA_PATH herabeam_default = os.path.join(SIM_DATA_PATH, 'HERA_NicCST.uvbeam') # Ignore warnings of pending sigma ...
31.406542
86
0.715519
79430fa8f52fefca05e19b8eeb3dea398f76558c
1,362
py
Python
assignment3/assignment3-4.py
2sbsbsb/localization
99089ae9c7eff274d5c9d5063d87ffd067180c95
[ "MIT" ]
6
2020-12-04T11:00:23.000Z
2022-01-29T13:56:08.000Z
assignment3/assignment3-4.py
2sbsbsb/localization
99089ae9c7eff274d5c9d5063d87ffd067180c95
[ "MIT" ]
null
null
null
assignment3/assignment3-4.py
2sbsbsb/localization
99089ae9c7eff274d5c9d5063d87ffd067180c95
[ "MIT" ]
6
2020-12-04T11:00:54.000Z
2022-01-30T17:58:40.000Z
import matplotlib.pyplot as plt import math import numpy as np import random as r class Robot: def __init__(self, pos): self.pos = pos self.pole_dist = 0 class Particle(Robot): def __init__(self, pos): Robot.__init__(self, pos) self.weight = 0 self.measurement_sigma =...
23.482759
59
0.665932
79430fc0305f592db8059104365ed8e8b1f8ad8d
1,103
py
Python
567_Permutation_in_String.py
joshlyman/Josh-LeetCode
cc9e2cc406d2cbd5a90ee579efbcaeffb842c5ed
[ "MIT" ]
null
null
null
567_Permutation_in_String.py
joshlyman/Josh-LeetCode
cc9e2cc406d2cbd5a90ee579efbcaeffb842c5ed
[ "MIT" ]
null
null
null
567_Permutation_in_String.py
joshlyman/Josh-LeetCode
cc9e2cc406d2cbd5a90ee579efbcaeffb842c5ed
[ "MIT" ]
null
null
null
# For each window representing a substring of s2 of length len(s1), we want to check if the count of the window is # equal to the count of s1. Here, the count of a string is the list of: [the number of a's it has, the number of b's,... , # the number of z's.] # We can maintain the window by deleting the value of s2[...
35.580645
123
0.563917
79430fd14831c370a1c8e38c2b4103a992945fcd
1,938
py
Python
em desuso/leitura.py
iagorosa/Pattern_Recognition
29998e67e8313504651ccb58f99a36606e855fe1
[ "Apache-2.0" ]
null
null
null
em desuso/leitura.py
iagorosa/Pattern_Recognition
29998e67e8313504651ccb58f99a36606e855fe1
[ "Apache-2.0" ]
null
null
null
em desuso/leitura.py
iagorosa/Pattern_Recognition
29998e67e8313504651ccb58f99a36606e855fe1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Dec 05 12:15:33 2019 @author: iagorosa """ import scipy.io as scio from PIL import Image as pil import numpy as np import pandas as pd #mat = scio.loadmat('Yale_32x32.mat') #leitura de arquivo .mat no python. #Ret...
28.925373
124
0.566047
7943112210b134c00e064afae3dc76447a3b0dcb
627
py
Python
tests/test_walker.py
reimannsum/DangerBot
2d892b99b9f5582a752a46186291a23ab63eec55
[ "MIT" ]
null
null
null
tests/test_walker.py
reimannsum/DangerBot
2d892b99b9f5582a752a46186291a23ab63eec55
[ "MIT" ]
1
2019-01-29T18:36:04.000Z
2019-01-30T13:00:38.000Z
tests/test_walker.py
reimannsum/DangerBot
2d892b99b9f5582a752a46186291a23ab63eec55
[ "MIT" ]
null
null
null
from os import path from dangerbot.walker import Walker def test_write(): walker1 = Walker() walker1.login2(path.abspath(path.join('data', 'swansborough-park.html'))) assert walker1.write_log == """Log of MaltonMapper1 at [67, 52] Location: Swansborough Park in Roftwood AP: 37 Dead? True Zombies: Zed: ...
25.08
77
0.69697
79431176cc9284a8ce419a05cdeffce665dab67c
4,235
py
Python
demisto_sdk/commands/test_content/tests/test_context_test.py
cpforbes/demisto-sdk
4fe122e6f614e605f96bd47aa089b215dc7c2c5f
[ "MIT" ]
null
null
null
demisto_sdk/commands/test_content/tests/test_context_test.py
cpforbes/demisto-sdk
4fe122e6f614e605f96bd47aa089b215dc7c2c5f
[ "MIT" ]
null
null
null
demisto_sdk/commands/test_content/tests/test_context_test.py
cpforbes/demisto-sdk
4fe122e6f614e605f96bd47aa089b215dc7c2c5f
[ "MIT" ]
null
null
null
from functools import partial from demisto_sdk.commands.common.constants import PB_Status from demisto_sdk.commands.test_content.TestContentClasses import ( TestConfiguration, TestContext, TestPlaybook) from demisto_sdk.commands.test_content.tests.build_context_test import ( generate_content_conf_json, generat...
51.024096
107
0.704132
794311b373bf88ac4860ad006808628b3d03d5e9
7,593
py
Python
elasticsearch/core/queryset.py
racker/slogger
bf076156d324c6d1d57dfdf36286f16e5aff2788
[ "Apache-2.0" ]
null
null
null
elasticsearch/core/queryset.py
racker/slogger
bf076156d324c6d1d57dfdf36286f16e5aff2788
[ "Apache-2.0" ]
null
null
null
elasticsearch/core/queryset.py
racker/slogger
bf076156d324c6d1d57dfdf36286f16e5aff2788
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 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, softwa...
31.246914
136
0.5995
794311be4e4575a6f4d0c55ef9b40a59bd747f2a
1,347
py
Python
deeplearning4j-modelimport/src/test/java/org/deeplearning4j/nn/modelimport/keras/weights/scripts/embedding_conv1d_extended.py
dileeshvar/deeplearning4j
973ebc9fd3522c3d725b81f0caaebeadb46481ad
[ "Apache-2.0" ]
1
2021-11-10T12:29:21.000Z
2021-11-10T12:29:21.000Z
deeplearning4j-modelimport/src/test/java/org/deeplearning4j/nn/modelimport/keras/weights/scripts/embedding_conv1d_extended.py
dileeshvar/deeplearning4j
973ebc9fd3522c3d725b81f0caaebeadb46481ad
[ "Apache-2.0" ]
null
null
null
deeplearning4j-modelimport/src/test/java/org/deeplearning4j/nn/modelimport/keras/weights/scripts/embedding_conv1d_extended.py
dileeshvar/deeplearning4j
973ebc9fd3522c3d725b81f0caaebeadb46481ad
[ "Apache-2.0" ]
1
2018-08-02T10:49:43.000Z
2018-08-02T10:49:43.000Z
import keras from keras.models import Sequential, save_model from keras.layers import Embedding, Convolution1D, Flatten, Dense, Dropout import keras.backend as K import numpy as np base_path = "../../../../../../../../resources/weights/" backend = K.backend() version = keras.__version__ major_version = int(version[0])...
30.613636
159
0.755011
794311c790a1e41d552298c03f498c3e24de04b3
249
py
Python
manage.py
vigzmv/AB-Split-Tester
36a1c4c7b99f933b3f0f4be1219d0292f4ff6955
[ "MIT" ]
1
2016-07-26T18:03:42.000Z
2016-07-26T18:03:42.000Z
manage.py
htadg/innovisionNSIT
6e1537eeb5a8459d3032389f61e7cc4617b477b6
[ "MIT" ]
null
null
null
manage.py
htadg/innovisionNSIT
6e1537eeb5a8459d3032389f61e7cc4617b477b6
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Tester.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
22.636364
70
0.771084
79431207d0c4c6074327393511cb6c6eeaff52b0
101
py
Python
model/SenderType.py
adhocmaster/netmad
fe6c115d71ebeb8c689cdd1b8bed80ac35757681
[ "MIT" ]
null
null
null
model/SenderType.py
adhocmaster/netmad
fe6c115d71ebeb8c689cdd1b8bed80ac35757681
[ "MIT" ]
null
null
null
model/SenderType.py
adhocmaster/netmad
fe6c115d71ebeb8c689cdd1b8bed80ac35757681
[ "MIT" ]
null
null
null
from enum import Enum class SenderType(Enum): Noob = "Noob" Tahoe = "Tahoe" BBR = "BBR"
14.428571
23
0.60396
7943123965a955c41882c54aaa52435f865c88bd
1,601
py
Python
setup.py
sbienkow/eg
96142a74f4416b4a7000c85032c070df713b849e
[ "MIT" ]
2
2019-11-08T15:04:33.000Z
2020-10-28T03:13:43.000Z
setup.py
sbienkow/eg
96142a74f4416b4a7000c85032c070df713b849e
[ "MIT" ]
null
null
null
setup.py
sbienkow/eg
96142a74f4416b4a7000c85032c070df713b849e
[ "MIT" ]
null
null
null
try: from setuptools import setup except ImportError: from distutils.core import setup # Also bump at eg.eg_util.VERSION VERSION = '1.1.1' LONG_DESCRIPTION = """ eg provides examples at the command line. Many commands can be difficult to remember. Man pages work great, but can provide too much information to...
30.207547
80
0.705184
7943126343af57807ba2de95b03d0f73effcc8eb
1,395
py
Python
blockChain/modularDivision.py
khairanabila/pythonApps
f90b8823f939b98f7bf1dea7ed35fe6e22e2f730
[ "MIT" ]
1
2021-08-18T15:54:30.000Z
2021-08-18T15:54:30.000Z
blockChain/modularDivision.py
khairanabila/pythonApps
f90b8823f939b98f7bf1dea7ed35fe6e22e2f730
[ "MIT" ]
null
null
null
blockChain/modularDivision.py
khairanabila/pythonApps
f90b8823f939b98f7bf1dea7ed35fe6e22e2f730
[ "MIT" ]
null
null
null
from typing import Tuple def modular_division(a: int, b: int, n: int) -> int: assert n > 1 and a > 0 and greatest_common_divisor(a, n) == 1 (d, t, s) = extend_gcd(n, a) return x def invert_modulo(a: int, n: int) -> int: (b, x) = extend_euclid(a ,n) if b < 0: b = (b % n + n) % n retur...
24.051724
65
0.551971
7943128d5a6c12eaec8a4457d03a793052f4230a
3,187
py
Python
home/migrations/0001_initial.py
CooloiStudio/Turanga.deskxd.com
64d7a5e3128c85d1d3be38d36913d79b16cff537
[ "MIT" ]
null
null
null
home/migrations/0001_initial.py
CooloiStudio/Turanga.deskxd.com
64d7a5e3128c85d1d3be38d36913d79b16cff537
[ "MIT" ]
null
null
null
home/migrations/0001_initial.py
CooloiStudio/Turanga.deskxd.com
64d7a5e3128c85d1d3be38d36913d79b16cff537
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2015-12-28 09:42 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateM...
42.493333
114
0.564481
794312d62dd8f6d18cbd420bb102244c240394da
3,706
py
Python
twitter_app_auth/tests/api/test_invalid_creds.py
rohitkadam19/API-Automation
96dea5686d1196a942594f82b532bf5eedcc1ec2
[ "Apache-2.0" ]
1
2018-11-02T14:31:14.000Z
2018-11-02T14:31:14.000Z
twitter_app_auth/tests/api/test_invalid_creds.py
rohitkadam19/API-Automation
96dea5686d1196a942594f82b532bf5eedcc1ec2
[ "Apache-2.0" ]
null
null
null
twitter_app_auth/tests/api/test_invalid_creds.py
rohitkadam19/API-Automation
96dea5686d1196a942594f82b532bf5eedcc1ec2
[ "Apache-2.0" ]
null
null
null
import json import logging from twitterauth.session import Session from twitterauth.test import APITestCase from twitterauth.configs import settings from twitterauth.utils import helper from twitterauth.utils import payload LOGGER = logging.getLogger("twitter") invalid_creds_err_msg = "Unable to verify your credentia...
35.295238
71
0.601997
7943142e3d973e1da0cdaf9463a79c69b04c4f78
12,582
py
Python
nova/api/validation/parameter_types.py
mertakozcan/nova
6e4ab9714cc0ca147f61997aa7b68f88185ade5c
[ "Apache-2.0" ]
1
2016-07-18T22:05:01.000Z
2016-07-18T22:05:01.000Z
nova/api/validation/parameter_types.py
woraser/nova
fc3890667e4971e3f0f35ac921c2a6c25f72adec
[ "Apache-2.0" ]
null
null
null
nova/api/validation/parameter_types.py
woraser/nova
fc3890667e4971e3f0f35ac921c2a6c25f72adec
[ "Apache-2.0" ]
1
2021-11-12T03:55:41.000Z
2021-11-12T03:55:41.000Z
# Copyright 2014 NEC 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 ...
25.521298
79
0.623987
794315780d205e71e57b6539a5d7a33d404b81f5
32,909
py
Python
pypureclient/flashblade/FB_2_1/api/directory_services_api.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
14
2018-12-07T18:30:27.000Z
2022-02-22T09:12:33.000Z
pypureclient/flashblade/FB_2_1/api/directory_services_api.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
28
2019-09-17T21:03:52.000Z
2022-03-29T22:07:35.000Z
pypureclient/flashblade/FB_2_1/api/directory_services_api.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
15
2020-06-11T15:50:08.000Z
2022-03-21T09:27:25.000Z
# coding: utf-8 """ FlashBlade REST API A lightweight client for FlashBlade REST API 2.1, developed by Pure Storage, Inc. (http://www.purestorage.com/). OpenAPI spec version: 2.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import...
48.681953
449
0.641101
79431807bf162402f8003bee7a54069474209e8b
237
py
Python
2015/07/supreme-dissent-20150702/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2015/07/supreme-dissent-20150702/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2015/07/supreme-dissent-20150702/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python COPY_GOOGLE_DOC_KEY = '1Nj53xe9i0TWRbEIK22bXMdu0qkUyFZsbQBJExn6Pki8' USE_ASSETS = False # Use these variables to override the default cache timeouts for this graphic # DEFAULT_MAX_AGE = 20 # ASSETS_MAX_AGE = 300
23.7
77
0.805907
7943185d834409070f68f8d5be7f0487b9f1c581
7,330
py
Python
navutils/menu.py
tboulogne/django-navutils
5882f72153de6ed70ed11ce97c89c395e3ed022e
[ "BSD-3-Clause" ]
null
null
null
navutils/menu.py
tboulogne/django-navutils
5882f72153de6ed70ed11ce97c89c395e3ed022e
[ "BSD-3-Clause" ]
null
null
null
navutils/menu.py
tboulogne/django-navutils
5882f72153de6ed70ed11ce97c89c395e3ed022e
[ "BSD-3-Clause" ]
null
null
null
try: # Django 1.10+ from django.urls import reverse except ImportError: from django.core.urlresolvers import reverse from persisting_theory import Registry class Menus(Registry): """ Keep a reference to all menus""" look_into = 'menu' def prepare_name(self, data, name=None): return d...
32.149123
115
0.627012
7943198892d546f166be494c3247ac8cef0da437
20,444
py
Python
tests/test_autocomplete.py
rallytime/fast-autocomplete
9d56bad2b9a8c747a1fd945aaf415d6cb48a422a
[ "MIT" ]
null
null
null
tests/test_autocomplete.py
rallytime/fast-autocomplete
9d56bad2b9a8c747a1fd945aaf415d6cb48a422a
[ "MIT" ]
null
null
null
tests/test_autocomplete.py
rallytime/fast-autocomplete
9d56bad2b9a8c747a1fd945aaf415d6cb48a422a
[ "MIT" ]
null
null
null
import csv import json import os import pytest from pprint import pprint from typing import NamedTuple from fast_autocomplete.misc import read_csv_gen from fast_autocomplete import AutoComplete, DrawGraphMixin from fast_autocomplete.dwg import FindStep current_dir = os.path.dirname(os.path.abspath(__file__)) WHAT_T...
42.859539
193
0.587263
794319aac7ed4a0d16b845ae39c49b775f1ecfff
571
py
Python
Arrays/Left_Rotation.py
govindak-umd/The_HackerRank_Interview_Preparation_Kit
e82ad7258bd90786d9ec8373536c006f3c71f9f3
[ "BSD-3-Clause" ]
null
null
null
Arrays/Left_Rotation.py
govindak-umd/The_HackerRank_Interview_Preparation_Kit
e82ad7258bd90786d9ec8373536c006f3c71f9f3
[ "BSD-3-Clause" ]
null
null
null
Arrays/Left_Rotation.py
govindak-umd/The_HackerRank_Interview_Preparation_Kit
e82ad7258bd90786d9ec8373536c006f3c71f9f3
[ "BSD-3-Clause" ]
1
2020-11-07T14:51:05.000Z
2020-11-07T14:51:05.000Z
#!/bin/python3 import math import os import random import re import sys # Complete the rotLeft function below. def rotLeft(a, d): len_a = len(a) if d < len_a: a_left = a[d:] a_right = a[:d] new_a = a_left + a_right return new_a if __name__ == '__main__': fptr = open(os.envir...
15.432432
48
0.563923
79431b7fe4870565a2e07718689da2f463ed4652
648
py
Python
exercicios-Python/ex058.py
pedrosimoes-programmer/exercicios-python
150de037496d63d76086678d87425a8ccfc74573
[ "MIT" ]
null
null
null
exercicios-Python/ex058.py
pedrosimoes-programmer/exercicios-python
150de037496d63d76086678d87425a8ccfc74573
[ "MIT" ]
null
null
null
exercicios-Python/ex058.py
pedrosimoes-programmer/exercicios-python
150de037496d63d76086678d87425a8ccfc74573
[ "MIT" ]
null
null
null
from random import randint from time import sleep c = 1 print('=' * 20, '=' * 20) print('O computador pensou em um número, tente adivinhá-lo!') print('=' * 20, '=' * 20) n = randint(0, 10) r = int(input('Digite o número que o computador pensou: ')) print('PROCESSANDO...') sleep(0.5) while r != n: if r < n: ...
29.454545
68
0.618827
79431b87ec98f2a683d93558d51b1bf9d52f83e1
100
py
Python
src/accounts/models.py
jayesh96/writingsbykaur
7cd48b52e21f96bec9640d8b3a73a48c9e5ecdcd
[ "MIT" ]
2
2018-05-31T16:21:06.000Z
2019-11-28T11:58:12.000Z
FullContact/models.py
KamalAwasthi/FullContact
fa2e9f29079064b015848d980ddbb8da51f323c9
[ "Apache-2.0" ]
11
2020-06-05T18:31:32.000Z
2022-03-11T23:24:41.000Z
src/accounts/models.py
jayesh96/writingsbykaur
7cd48b52e21f96bec9640d8b3a73a48c9e5ecdcd
[ "MIT" ]
2
2018-02-12T16:37:08.000Z
2019-11-28T11:58:24.000Z
from __future__ import unicode_literals from django.db import models # Create your models here.
12.5
39
0.8
79431bfc763000e962361be8cb774ba79fc3b51b
7,128
py
Python
omnidet/losses/distance_loss.py
AtlasGooo2/WoodScape
597d9dda472c09bafea58ea69853948d63197eca
[ "MIT" ]
348
2019-09-05T09:32:23.000Z
2022-03-31T14:09:10.000Z
omnidet/losses/distance_loss.py
AtlasGooo2/WoodScape
597d9dda472c09bafea58ea69853948d63197eca
[ "MIT" ]
76
2019-10-14T12:29:55.000Z
2022-03-26T02:00:50.000Z
omnidet/losses/distance_loss.py
AtlasGooo2/WoodScape
597d9dda472c09bafea58ea69853948d63197eca
[ "MIT" ]
78
2019-09-14T01:28:22.000Z
2022-03-29T03:59:09.000Z
""" Loss function for Distance Estimation for OmniDet. # author: Varun Ravi Kumar <rvarun7777@gmail.com> Parts of the code adapted from https://github.com/nianticlabs/monodepth2 Please refer to the license of the above repo. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; Au...
42.682635
104
0.61041
79431c85ae1ddd6fa4be03937f11f92f2836cb4d
897
py
Python
qiskit_nature/properties/second_quantization/electronic/bases/__init__.py
SooluThomas/qiskit-nature
0d509525b68b76d0f2d613d0e7409b9ea65cfcc0
[ "Apache-2.0" ]
null
null
null
qiskit_nature/properties/second_quantization/electronic/bases/__init__.py
SooluThomas/qiskit-nature
0d509525b68b76d0f2d613d0e7409b9ea65cfcc0
[ "Apache-2.0" ]
1
2021-08-25T13:31:41.000Z
2021-08-25T13:31:41.000Z
qiskit_nature/properties/second_quantization/electronic/bases/__init__.py
LaurinFischer/qiskit-nature
7baf7c7f8c3d18e082e90bc1e593c47aa2f698ca
[ "Apache-2.0" ]
3
2021-07-02T06:57:58.000Z
2021-07-06T12:32:38.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
33.222222
77
0.710145
79431cc4d49f5d4c67e31197ba713fd6f0f02021
5,774
py
Python
synolopy/cgi.py
hwiyel/synolopy
107f7d534df8e4f8c254136dbe289e76ebcd5164
[ "MIT" ]
40
2015-03-25T14:07:39.000Z
2021-01-28T21:23:49.000Z
synolopy/cgi.py
hwiyel/synolopy
107f7d534df8e4f8c254136dbe289e76ebcd5164
[ "MIT" ]
11
2015-05-16T15:46:23.000Z
2018-08-25T11:55:30.000Z
synolopy/cgi.py
hwiyel/synolopy
107f7d534df8e4f8c254136dbe289e76ebcd5164
[ "MIT" ]
21
2015-02-01T13:44:13.000Z
2020-12-17T13:43:07.000Z
import requests from Queue import Queue from urlparse import urljoin from urllib import urlencode from synolopy.errors import * TIMEOUT = 10 # ------------------------------------------------------------------------------ # Tools # ------------------------------------------------------------------------------ d...
27.235849
80
0.519744
79431cf81fe8bdd4505dbbb59e283db27f28707f
30
py
Python
dirtyclean/__init__.py
paultopia/dirtyclean
1b93b29e070b53afede22ff28497fd68f28d0326
[ "MIT" ]
2
2017-12-04T16:58:57.000Z
2021-03-02T04:59:54.000Z
dirtyclean/__init__.py
paultopia/dirtyclean
1b93b29e070b53afede22ff28497fd68f28d0326
[ "MIT" ]
null
null
null
dirtyclean/__init__.py
paultopia/dirtyclean
1b93b29e070b53afede22ff28497fd68f28d0326
[ "MIT" ]
null
null
null
from .dirtyclean import clean
15
29
0.833333
79431d5829f0a106adb3c6735093419736949f81
694
py
Python
jumpgate/common/hooks/core.py
Neetuj/jumpgate
509c1d43a5f4b91c7f3ad5c0cd34abf61bb0a3ee
[ "MIT" ]
null
null
null
jumpgate/common/hooks/core.py
Neetuj/jumpgate
509c1d43a5f4b91c7f3ad5c0cd34abf61bb0a3ee
[ "MIT" ]
null
null
null
jumpgate/common/hooks/core.py
Neetuj/jumpgate
509c1d43a5f4b91c7f3ad5c0cd34abf61bb0a3ee
[ "MIT" ]
null
null
null
import json import uuid import falcon.status_codes from jumpgate.common.hooks import request_hook, response_hook @response_hook(False) def hook_format(req, resp): body = resp.body if body is not None and not resp.content_type: resp.content_type = 'application/json' resp.body = json.dumps(bod...
25.703704
66
0.645533
79431de009f6a2f8746b71f98d584040e4df143f
18,511
py
Python
nflgame/update_players.py
ca3tech/nflgame
cbb59332b305c10229604c677054b1a41b7830c9
[ "Unlicense" ]
null
null
null
nflgame/update_players.py
ca3tech/nflgame
cbb59332b305c10229604c677054b1a41b7830c9
[ "Unlicense" ]
null
null
null
nflgame/update_players.py
ca3tech/nflgame
cbb59332b305c10229604c677054b1a41b7830c9
[ "Unlicense" ]
null
null
null
# Here's an outline of how this program works. # Firstly, we load a dictionary mapping GSIS identifier to a dictionary of # player meta data. This comes from either the flag `json-update-file` or # nflgame's "players.json" file. We then build a reverse map from profile # identifier (included in player meta data) to GSI...
36.874502
79
0.59986
79431e9906a970cf446a0d91f888bb980a251074
631
py
Python
Dataset/Leetcode/valid/88/455.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/valid/88/455.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/valid/88/455.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution: def XXX(self, nums1: List[int], m: int, nums2: List[int], n: int) -> None: """ Do not return anything, modify nums1 in-place instead. """ left, right, index = m - 1, n - 1, m + n - 1 while left >= 0 and right >= 0: if nums2[right] >= nums1[left]: ...
31.55
78
0.423138
79431ee5f1fdbab271353d8c0f851f6f12d1f0d0
709
py
Python
neurovault/celery.py
abitrolly/NeuroVault
e62bc65c8e0e58bff55bb9fa7cf11193dc54d734
[ "MIT" ]
68
2015-02-07T06:09:49.000Z
2022-03-03T22:58:33.000Z
neurovault/celery.py
abitrolly/NeuroVault
e62bc65c8e0e58bff55bb9fa7cf11193dc54d734
[ "MIT" ]
436
2015-01-01T01:01:13.000Z
2021-11-07T18:24:00.000Z
neurovault/celery.py
abitrolly/NeuroVault
e62bc65c8e0e58bff55bb9fa7cf11193dc54d734
[ "MIT" ]
60
2015-01-10T23:31:26.000Z
2021-08-10T06:39:57.000Z
from __future__ import absolute_import import os from celery import Celery from django.conf import settings os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'neurovault.settings') nvcelery = Celery('neurovault') # Using a string here means the worker will not have to # pickle the object when using Windows. nvcelery.co...
28.36
72
0.829337