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
199b9fe3c8a3ba98e7b1141db31d1f32f85abbd2
545
py
Python
manage.py
kojwangbora/elly-blog
95946ece071784fa5c15c21618011cbb97ebfc46
[ "MIT" ]
null
null
null
manage.py
kojwangbora/elly-blog
95946ece071784fa5c15c21618011cbb97ebfc46
[ "MIT" ]
null
null
null
manage.py
kojwangbora/elly-blog
95946ece071784fa5c15c21618011cbb97ebfc46
[ "MIT" ]
null
null
null
from app import create_app, db from flask_migrate import Migrate from app.models import User, Posts from flask_script import Manager,Server app = create_app() # manager = Manager(app) # manager.add_command('server', Server) # #Creating migration instance # migrate = Migrate(app, db) # manager.add_command('db',Migrate...
23.695652
51
0.717431
0
0
0
0
0
0
0
0
364
0.66789
199c463aaa4e8ff9bc128e9fe6eb09901f8c3ffb
2,354
py
Python
API/AdminPanel/smoke_all_pages/credentials.py
Mikhail-QA/HS
8ddbc09a0d1493128f3af6b8078c295609908dd7
[ "Apache-2.0" ]
null
null
null
API/AdminPanel/smoke_all_pages/credentials.py
Mikhail-QA/HS
8ddbc09a0d1493128f3af6b8078c295609908dd7
[ "Apache-2.0" ]
null
null
null
API/AdminPanel/smoke_all_pages/credentials.py
Mikhail-QA/HS
8ddbc09a0d1493128f3af6b8078c295609908dd7
[ "Apache-2.0" ]
null
null
null
# Админка раздел редактор курсов # Энпоинты меню редактора курсов ДШ в тек. уг path_admin_schedules_grade_1 = '/schedules?grade=1&school=true&' path_admin_schedules_grade_2 = '/schedules?grade=2&school=true&' path_admin_schedules_grade_3 = '/schedules?grade=3&school=true&' path_admin_schedules_grade_4 = '/schedules?gra...
52.311111
193
0.800765
0
0
0
0
0
0
0
0
1,714
0.627609
199c573a26d9f3609be1f4e385345250d059dabc
248
py
Python
swagger2/__init__.py
ppbug/swagger2
a60585a85aad9c16757e67ff70d30e70657a78b8
[ "MIT" ]
1
2021-07-12T07:06:03.000Z
2021-07-12T07:06:03.000Z
swagger2/__init__.py
ppbug/swagger2
a60585a85aad9c16757e67ff70d30e70657a78b8
[ "MIT" ]
null
null
null
swagger2/__init__.py
ppbug/swagger2
a60585a85aad9c16757e67ff70d30e70657a78b8
[ "MIT" ]
null
null
null
from .loader import * from .swagger import * def parse(url,deep=5,**kwargs): source = load_url(url,**kwargs) return Swagger(source,deep=deep) def parse_file(path,deep=5): source = load_file(path) return Swagger(source,deep=deep)
20.666667
36
0.697581
0
0
0
0
0
0
0
0
0
0
199d8a7e9157f48b6df5a88dec9570242bb4b50a
963
py
Python
2021/aoc07.py
wolfgangmuender/AdventOfCode
3956c245f6d3e789cb5424ac54832ebcfc03eb21
[ "Apache-2.0" ]
null
null
null
2021/aoc07.py
wolfgangmuender/AdventOfCode
3956c245f6d3e789cb5424ac54832ebcfc03eb21
[ "Apache-2.0" ]
null
null
null
2021/aoc07.py
wolfgangmuender/AdventOfCode
3956c245f6d3e789cb5424ac54832ebcfc03eb21
[ "Apache-2.0" ]
null
null
null
with open("input/input07.txt") as f: content = f.read().splitlines() positions = list(map(lambda x: int(x), content[0].split(","))) max_pos = max(positions) min_pos = min(positions) possible_pos = range(min_pos, max_pos + 1) fuel_costs1 = [] for align_pos in possible_pos: fuel_costs1.append(sum([abs(pos - al...
35.666667
118
0.74351
0
0
0
0
0
0
0
0
160
0.166147
199dc81e3c59d04bf93fe983d5b45a4485997a89
2,227
py
Python
sources/install_deps.py
Radeon4650/PocketBudgetTracker
61b792f648e73e8043e42e0e1c55b3acf1868f90
[ "Apache-2.0" ]
1
2018-12-03T12:41:50.000Z
2018-12-03T12:41:50.000Z
sources/install_deps.py
Radeon4650/PocketBudgetTracker
61b792f648e73e8043e42e0e1c55b3acf1868f90
[ "Apache-2.0" ]
16
2018-10-08T17:37:52.000Z
2019-01-06T12:02:54.000Z
sources/install_deps.py
Radeon4650/PocketBudgetTracker
61b792f648e73e8043e42e0e1c55b3acf1868f90
[ "Apache-2.0" ]
1
2018-10-11T20:01:05.000Z
2018-10-11T20:01:05.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright © 2018 PocketBudgetTracker. All rights reserved. Author: Andrey Shelest (khadsl1305@gmail.com) 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 Licens...
28.922078
76
0.671756
1,204
0.540395
0
0
0
0
0
0
970
0.435368
199fc92154f499c85aed3bce44e91934109ae7d3
5,305
py
Python
tools/utils/building/layer.py
shinh/dldt
693ab4e79a428e0801f17f4511b129a3fa8f4a62
[ "Apache-2.0" ]
1
2021-02-20T21:48:36.000Z
2021-02-20T21:48:36.000Z
tools/utils/building/layer.py
erinpark33/dldt
edd86d090592f7779f4dbb2681546e1f4e81284f
[ "Apache-2.0" ]
null
null
null
tools/utils/building/layer.py
erinpark33/dldt
edd86d090592f7779f4dbb2681546e1f4e81284f
[ "Apache-2.0" ]
1
2021-02-19T01:06:12.000Z
2021-02-19T01:06:12.000Z
""" Copyright (C) 2018-2019 Intel Corporation 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 wri...
33.575949
153
0.489915
4,667
0.879736
0
0
542
0.102168
0
0
1,321
0.24901
19a02ddbcaad9d7bf3192c753f7e060611b72ae8
19,686
py
Python
tests/test_lightningStub.py
engenegr/lnd_grpc
89336bc83fcfa286dd7927e92fbc88293bd29547
[ "MIT" ]
null
null
null
tests/test_lightningStub.py
engenegr/lnd_grpc
89336bc83fcfa286dd7927e92fbc88293bd29547
[ "MIT" ]
null
null
null
tests/test_lightningStub.py
engenegr/lnd_grpc
89336bc83fcfa286dd7927e92fbc88293bd29547
[ "MIT" ]
null
null
null
import os import time import unittest import bitcoin.rpc import grpc import lnd_grpc.lnd_grpc as py_rpc import lnd_grpc.protos.rpc_pb2 as rpc_pb2 # from google.protobuf.internal.containers import RepeatedCompositeFieldContainer ####################### # Configure variables # ####################### CWD = os.getcwd...
39.689516
99
0.642436
16,483
0.837296
0
0
104
0.005283
0
0
1,697
0.086203
19a16d103bbd6587ea4e474ed212a036bf6bb483
3,683
py
Python
tvb_hpc/metric.py
DeLaVlag/tvb-hpc
6559707dfee8ec712d9624aaf441f9901919fe63
[ "Apache-2.0" ]
3
2017-02-22T10:17:19.000Z
2019-06-20T13:13:53.000Z
tvb_hpc/metric.py
DeLaVlag/tvb-hpc
6559707dfee8ec712d9624aaf441f9901919fe63
[ "Apache-2.0" ]
27
2017-02-07T10:25:31.000Z
2020-07-01T09:48:13.000Z
tvb_hpc/metric.py
DeLaVlag/tvb-hpc
6559707dfee8ec712d9624aaf441f9901919fe63
[ "Apache-2.0" ]
10
2017-03-06T10:52:02.000Z
2020-11-20T02:17:17.000Z
# Copyright 2018 TVB-HPC contributors # # 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 applicab...
26.307143
78
0.519414
3,018
0.819441
0
0
0
0
0
0
3,399
0.922889
19a1cf2092a5e1441835b5519079835b5bb7b437
484
py
Python
20_valid_parens.py
claytonjwong/leetcode-py
16bbf8ac0ba5c80fe3ef67ade0d61a12991270a7
[ "MIT" ]
1
2020-07-15T14:16:23.000Z
2020-07-15T14:16:23.000Z
20_valid_parens.py
claytonjwong/leetcode-py
16bbf8ac0ba5c80fe3ef67ade0d61a12991270a7
[ "MIT" ]
null
null
null
20_valid_parens.py
claytonjwong/leetcode-py
16bbf8ac0ba5c80fe3ef67ade0d61a12991270a7
[ "MIT" ]
null
null
null
# # 20. Valid Parentheses # # Q: https://leetcode.com/problems/valid-parentheses/ # A: https://leetcode.com/problems/valid-parentheses/discuss/9214/Kt-Js-Py3-Cpp-Stack # class Solution: def isValid(self, A: str) -> bool: s = [] for c in A: if c == '(': s.append(')') elif c...
26.888889
85
0.506198
312
0.644628
0
0
0
0
0
0
182
0.376033
19a1f5173da1a19ab9a723e6c007b756a7bf4d27
1,474
py
Python
2016/23/solution.py
Artemigos/advent-of-code
0b2ae6af3788b9e6891219b2b64ce0d510b3e1aa
[ "MIT" ]
null
null
null
2016/23/solution.py
Artemigos/advent-of-code
0b2ae6af3788b9e6891219b2b64ce0d510b3e1aa
[ "MIT" ]
null
null
null
2016/23/solution.py
Artemigos/advent-of-code
0b2ae6af3788b9e6891219b2b64ce0d510b3e1aa
[ "MIT" ]
null
null
null
import common lines = common.read_file('2016/23/data.txt').splitlines() # part 1 eggs = 7 # part 2 eggs = 12 registers = dict(a=eggs, b=0, c=0, d=0) def get_val(val_spec): if val_spec in registers.keys(): return registers[val_spec] return int(val_spec) def is_reg(val_spec): return val_spec in r...
24.566667
58
0.501357
0
0
0
0
0
0
0
0
114
0.077341
19a5490d295df8c74ba7a1b675a66941ae74fa96
798
py
Python
game/gamesrc/conf/at_server_startstop.py
abbacode/avaloria
02e1805ac6e74543c96408b7951429f94bc140ca
[ "ClArtistic" ]
null
null
null
game/gamesrc/conf/at_server_startstop.py
abbacode/avaloria
02e1805ac6e74543c96408b7951429f94bc140ca
[ "ClArtistic" ]
null
null
null
game/gamesrc/conf/at_server_startstop.py
abbacode/avaloria
02e1805ac6e74543c96408b7951429f94bc140ca
[ "ClArtistic" ]
null
null
null
""" This module contains functions that are imported and called by the server whenever it changes its running status. At the point these functions are run, all applicable hooks on individual objects have already been executed. The main purpose of this is module is to have a safe place to initialize eventual custom modu...
25.741935
70
0.738095
0
0
0
0
0
0
0
0
722
0.904762
19a70dde6b545bdfbf0067d8087a6296f69db3a9
407
py
Python
registration/urls.py
NJnisarg/IEEEProfMatch
0a67108c910b40f878cc3e0ed9f37ec59089f02d
[ "MIT" ]
null
null
null
registration/urls.py
NJnisarg/IEEEProfMatch
0a67108c910b40f878cc3e0ed9f37ec59089f02d
[ "MIT" ]
null
null
null
registration/urls.py
NJnisarg/IEEEProfMatch
0a67108c910b40f878cc3e0ed9f37ec59089f02d
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('register/student/', views.StudentCreate.as_view(), name='student-register'), path('register/prof/', views.ProfCreate.as_view(), name='prof-register'), path('remove/student/<pk>/', views.StudentRemove.as_view(), name='student-remov...
45.222222
88
0.687961
0
0
0
0
0
0
0
0
138
0.339066
19a87db683c9165ec3ec45d64b90db5e4bc925f8
3,272
py
Python
src/experiment/experiment.py
ricoms/credit-fraud-dealing-with-imbalanced-datasets-mlops
aa483832493faa88affd00eff5489d03506abdeb
[ "MIT" ]
5
2021-04-29T22:20:08.000Z
2021-05-21T03:29:52.000Z
src/experiment/experiment.py
ricoms/credit-fraud-dealing-with-imbalanced-datasets-mlops
aa483832493faa88affd00eff5489d03506abdeb
[ "MIT" ]
null
null
null
src/experiment/experiment.py
ricoms/credit-fraud-dealing-with-imbalanced-datasets-mlops
aa483832493faa88affd00eff5489d03506abdeb
[ "MIT" ]
3
2021-04-29T22:41:59.000Z
2021-10-03T20:06:05.000Z
import sys from dataclasses import dataclass from io import StringIO from pathlib import Path from typing import Any import numpy as np from sklearn.model_selection import StratifiedKFold from utils.logger import logger from .artifacts import ExperimentArtifacts INPUT_COLUMNS = [ "Time", "V1", "V2", "V3", "V4", ...
31.161905
90
0.573655
2,746
0.839242
0
0
2,757
0.842604
0
0
452
0.138142
19aaba565d436c4904687e34d86883a59ba3510f
92
py
Python
29.operacoes_com_lista/17.exercicio4.py
robinson-1985/python-zero-dnc
df510d67e453611fcd320df1397cdb9ca47fecb8
[ "MIT" ]
null
null
null
29.operacoes_com_lista/17.exercicio4.py
robinson-1985/python-zero-dnc
df510d67e453611fcd320df1397cdb9ca47fecb8
[ "MIT" ]
null
null
null
29.operacoes_com_lista/17.exercicio4.py
robinson-1985/python-zero-dnc
df510d67e453611fcd320df1397cdb9ca47fecb8
[ "MIT" ]
null
null
null
# 4.Crie uma lista que vá de 1 até 100. list = [ cont for cont in range(1,101)] print(list)
23
39
0.673913
0
0
0
0
0
0
0
0
41
0.43617
19ab282eb7fda2cf0e66686848e93a742af27a72
1,385
py
Python
src/responsibility/problems/drsc_fig3.py
pik-gane/pyresponsibility
e0f43be1a9712754832bb97b3797851cdb24842d
[ "BSD-2-Clause" ]
null
null
null
src/responsibility/problems/drsc_fig3.py
pik-gane/pyresponsibility
e0f43be1a9712754832bb97b3797851cdb24842d
[ "BSD-2-Clause" ]
null
null
null
src/responsibility/problems/drsc_fig3.py
pik-gane/pyresponsibility
e0f43be1a9712754832bb97b3797851cdb24842d
[ "BSD-2-Clause" ]
null
null
null
"""Fig. 3 from Heitzig & Hiller (2020) Degrees of individual and groupwise backward and forward responsibility in extensive-form games with ambiguity, and their application to social choice problems. ArXiv:2007.07352 drsc_fig3: v1: i ├─╴dont_hesitate╶─╴w3: lives ✔ ╰─╴hesitate╶─╴v2: i ├─╴try_after_all╶─...
30.108696
81
0.608664
0
0
0
0
0
0
0
0
1,045
0.711368
19ad8e362fd7bad525b8a921fc18f92df7f7282b
82
py
Python
www/speed/benchmarks/fib.py
raspberrypieman/brython
2cc23d1da6acda604d4a56b4c9d464eb7e374eda
[ "BSD-3-Clause" ]
5,926
2015-01-01T07:45:08.000Z
2022-03-31T12:34:38.000Z
www/speed/benchmarks/fib.py
raspberrypieman/brython
2cc23d1da6acda604d4a56b4c9d464eb7e374eda
[ "BSD-3-Clause" ]
1,728
2015-01-01T01:09:12.000Z
2022-03-30T23:25:22.000Z
www/speed/benchmarks/fib.py
raspberrypieman/brython
2cc23d1da6acda604d4a56b4c9d464eb7e374eda
[ "BSD-3-Clause" ]
574
2015-01-02T01:36:10.000Z
2022-03-26T10:18:48.000Z
def fib(n): if (n<2): return n return fib(n-2) + fib(n-1) fib(30)
11.714286
30
0.47561
0
0
0
0
0
0
0
0
0
0
19b063208b212cda110697a8227b09dc8f98a0db
414
py
Python
catalog/bindings/csw/role.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/csw/role.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/csw/role.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass from bindings.csw.code_type_1 import CodeType1 __NAMESPACE__ = "http://www.opengis.net/ows" @dataclass class Role(CodeType1): """Function performed by the responsible party. Possible values of this Role shall include the values and the meanings listed in Subclause B.5.5...
24.352941
65
0.724638
273
0.65942
0
0
284
0.68599
0
0
236
0.570048
5fd5ed7c8159f71250918b127471e85178346d85
31
py
Python
utils_folder/__init__.py
codevideo/Airsim_Test
0b47665c67ba674d277fc8de58739a59648bb7eb
[ "MIT" ]
null
null
null
utils_folder/__init__.py
codevideo/Airsim_Test
0b47665c67ba674d277fc8de58739a59648bb7eb
[ "MIT" ]
null
null
null
utils_folder/__init__.py
codevideo/Airsim_Test
0b47665c67ba674d277fc8de58739a59648bb7eb
[ "MIT" ]
null
null
null
from .image_generator import *
15.5
30
0.806452
0
0
0
0
0
0
0
0
0
0
5fd63dd37aacbace93081d1f24365379814ddc62
1,847
py
Python
discogstagger/lyrics.py
makzyt4/discogs-tagger
b578257922230b634d43349f2efd4fda72fdd008
[ "MIT" ]
2
2019-09-05T04:26:20.000Z
2020-08-05T02:56:04.000Z
discogstagger/lyrics.py
makzyt4/discogs-tagger
b578257922230b634d43349f2efd4fda72fdd008
[ "MIT" ]
null
null
null
discogstagger/lyrics.py
makzyt4/discogs-tagger
b578257922230b634d43349f2efd4fda72fdd008
[ "MIT" ]
1
2019-10-02T13:07:34.000Z
2019-10-02T13:07:34.000Z
import warnings import urllib warnings.filterwarnings("ignore", category=UserWarning) from fuzzywuzzy import fuzz from bs4 import BeautifulSoup from discogstagger.crawler import WebCrawler class LyricsSearcher: def __init__(self, artist_name): self.artist_name = artist_name self.url_base = "http:...
35.519231
74
0.593936
1,654
0.895506
0
0
0
0
0
0
206
0.111532
5fd72d6c14585afca0b8d98d7d4aed63853fc97b
1,478
py
Python
policy_sentry/util/conditions.py
patricksanders/policy_sentry
3559ce8d3a19728b4f64dfff4cbdf075e7629b39
[ "MIT" ]
null
null
null
policy_sentry/util/conditions.py
patricksanders/policy_sentry
3559ce8d3a19728b4f64dfff4cbdf075e7629b39
[ "MIT" ]
20
2020-03-20T06:13:09.000Z
2022-02-10T18:15:35.000Z
policy_sentry/util/conditions.py
ssmbct-netops/policy_sentry
c9f4752c633fe229220b7f476aa766ea65330489
[ "MIT" ]
null
null
null
""" Just some text transformation functions related to our conditions-related workarounds """ # Borrowed from parliament. Altered with normalization for lowercase. def translate_condition_key_data_types(condition_str): """ The docs use different type names, so this standardizes them. Example: The conditio...
32.844444
96
0.688769
0
0
0
0
0
0
0
0
788
0.533153
5fd7391d4fbb21e69c15f5d957bc435fc6d49a18
7,798
py
Python
env/lib/python3.7/site-packages/cleo/inputs/argv_input.py
Kolawole39/masonite-guides-tutorial
9a21cc635291a42f0722f69925be1809bb20e01c
[ "MIT" ]
null
null
null
env/lib/python3.7/site-packages/cleo/inputs/argv_input.py
Kolawole39/masonite-guides-tutorial
9a21cc635291a42f0722f69925be1809bb20e01c
[ "MIT" ]
null
null
null
env/lib/python3.7/site-packages/cleo/inputs/argv_input.py
Kolawole39/masonite-guides-tutorial
9a21cc635291a42f0722f69925be1809bb20e01c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys import re from .input import Input from ..exceptions import NoSuchOption, BadOptionUsage, TooManyArguments class ArgvInput(Input): def __init__(self, argv=None, definition=None): super(ArgvInput, self).__init__(definition) if argv is None: argv = ...
33.467811
115
0.530649
7,651
0.981149
0
0
0
0
0
0
822
0.105412
5fd7b9ebd6a6a68297eb56bfd50e24457d0aa02b
1,528
py
Python
general/email-sender/email_sender.py
caesarcc/python-code-tutorials
aa48ebe695e86440b206b641501ad55d021309bf
[ "MIT" ]
1,059
2019-08-04T17:51:43.000Z
2022-03-31T10:13:37.000Z
general/email-sender/email_sender.py
kylearrigoni/pythoncode-tutorials
6fd30ed854d1ea7573351ddb10c1eaae55ca5717
[ "MIT" ]
56
2019-12-10T16:46:40.000Z
2022-03-29T01:36:50.000Z
general/email-sender/email_sender.py
kylearrigoni/pythoncode-tutorials
6fd30ed854d1ea7573351ddb10c1eaae55ca5717
[ "MIT" ]
1,330
2019-08-16T01:36:18.000Z
2022-03-31T16:57:22.000Z
import smtplib from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from bs4 import BeautifulSoup as bs def send_mail(email, password, FROM, TO, msg): # initialize the SMTP server server = smtplib.SMTP("smtp.gmail.com", 587) # connect to the SMTP server as TLS mode (secure) a...
27.781818
67
0.716623
0
0
0
0
0
0
0
0
861
0.563482
5fd809b863e1c38e1b5883293cb0d69f18e7c0cd
140
py
Python
src/app/models/__init__.py
starlite-api/backend-starlite-postgres
c2d539d88dd13cbe06fa49ab95c1fd6eb398b051
[ "MIT" ]
3
2022-01-18T16:35:12.000Z
2022-01-25T14:55:32.000Z
src/app/models/__init__.py
starlite-api/backend-starlite-postgres
c2d539d88dd13cbe06fa49ab95c1fd6eb398b051
[ "MIT" ]
1
2022-01-24T22:37:35.000Z
2022-01-25T08:09:19.000Z
src/app/models/__init__.py
starlite-api/backend-starlite-postgres
c2d539d88dd13cbe06fa49ab95c1fd6eb398b051
[ "MIT" ]
null
null
null
# flake8: noqa from .base import Base from .item import Item, ItemCreateModel, ItemModel from .user import User, UserCreateModel, UserModel
28
50
0.8
0
0
0
0
0
0
0
0
14
0.1
5fda0bec3ea02ea3a6f8218190306677fcc6bbb6
3,371
py
Python
digibanner.py
w4mhi/digipi
1fb00450cf9ed14a30c293e744848a7cad09f489
[ "MIT" ]
null
null
null
digibanner.py
w4mhi/digipi
1fb00450cf9ed14a30c293e744848a7cad09f489
[ "MIT" ]
null
null
null
digibanner.py
w4mhi/digipi
1fb00450cf9ed14a30c293e744848a7cad09f489
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # direwatch """ Craig Lamparter KM6LYW, 2021, MIT License modified by W4MHI February 2022 - see the init_display.py module for display settings - see https://www.delftstack.com/howto/python/get-ip-address-python/ for the ip address """ import sys import argparse import time from netifaces import...
29.570175
110
0.664195
0
0
0
0
0
0
0
0
1,168
0.346485
5fdb29602cc883d0c3c33fa3a91c2d4157fe4739
7,007
py
Python
autotorrent/utils.py
jyggen/autotorrent
5a8f2b40ccc8c66c73dc520f98b886d21e163afa
[ "MIT" ]
278
2015-02-12T19:19:53.000Z
2022-03-22T21:17:28.000Z
autotorrent/utils.py
jyggen/autotorrent
5a8f2b40ccc8c66c73dc520f98b886d21e163afa
[ "MIT" ]
56
2015-03-27T00:38:37.000Z
2022-03-26T17:52:58.000Z
autotorrent/utils.py
jyggen/autotorrent
5a8f2b40ccc8c66c73dc520f98b886d21e163afa
[ "MIT" ]
48
2015-03-10T16:50:19.000Z
2022-03-20T12:11:50.000Z
from __future__ import division import hashlib import logging import os import re __all__ = [ 'is_unsplitable', 'get_root_of_unsplitable', 'Pieces', ] UNSPLITABLE_FILE_EXTENSIONS = [ set(['.rar', '.sfv']), set(['.mp3', '.sfv']), set(['.vob', '.ifo']), ] logger = logging.getLogger(__name__) ...
38.927778
154
0.572285
5,425
0.774226
0
0
0
0
0
0
1,955
0.279007
5fdbaa30fa591b9ff594e38b62a435e122fd9e26
232
py
Python
Documentation/matplotlib/users/tight_layout_guide-11.py
leesavide/pythonista-docs-deprecated
9ec3363f07e328bde0a58738a16907f11dfd06e1
[ "Apache-2.0" ]
16
2016-06-14T19:45:35.000Z
2020-11-30T19:02:58.000Z
Documentation/matplotlib/users/tight_layout_guide-11.py
leesavide/pythonista-docs
9ec3363f07e328bde0a58738a16907f11dfd06e1
[ "Apache-2.0" ]
1
2016-06-15T07:10:27.000Z
2016-06-15T07:10:27.000Z
Documentation/matplotlib/users/tight_layout_guide-11.py
leesavide/pythonista-docs
9ec3363f07e328bde0a58738a16907f11dfd06e1
[ "Apache-2.0" ]
null
null
null
gs2 = gridspec.GridSpec(3, 1) for ss in gs2: ax = fig.add_subplot(ss) example_plot(ax) ax.set_title("") ax.set_xlabel("") ax.set_xlabel("x-label", fontsize=12) gs2.tight_layout(fig, rect=[0.5, 0, 1, 1], h_pad=0.5)
21.090909
53
0.637931
0
0
0
0
0
0
0
0
13
0.056034
5fdde3756ec64880272edcdfd80736c9d7a32118
5,679
py
Python
FaceRec/dataset.py
JasonLee/FaceRecognitionInLowResolutionVideos
719ef88ddfbed9d5d40df2480b6e9a197febc1b7
[ "MIT" ]
2
2020-07-13T06:00:36.000Z
2021-04-15T06:12:16.000Z
FaceRec/dataset.py
JasonLee/FaceRecognitionInLowResolutionVideos
719ef88ddfbed9d5d40df2480b6e9a197febc1b7
[ "MIT" ]
3
2020-05-15T04:49:28.000Z
2022-01-13T02:47:26.000Z
FaceRec/dataset.py
JasonLee/FaceRecognitionInLowResolutionVideos
719ef88ddfbed9d5d40df2480b6e9a197febc1b7
[ "MIT" ]
null
null
null
from __future__ import print_function, division import os import torch import pandas as pd from skimage import io, transform import numpy as np import matplotlib.pyplot as plt from torch.utils.data import Dataset, DataLoader from torchvision import transforms, utils import random import model from torch.autograd import...
39.713287
121
0.585138
5,339
0.94013
0
0
0
0
0
0
408
0.071844
5fde36f357f3d09233e7473cce22e0c33f10115a
5,203
py
Python
scripts/posts.py
flashreads/mediumish-theme-jekyll
428e3338c00a3aee9fde119f0885496edd082f12
[ "MIT" ]
null
null
null
scripts/posts.py
flashreads/mediumish-theme-jekyll
428e3338c00a3aee9fde119f0885496edd082f12
[ "MIT" ]
null
null
null
scripts/posts.py
flashreads/mediumish-theme-jekyll
428e3338c00a3aee9fde119f0885496edd082f12
[ "MIT" ]
null
null
null
from argparse import ArgumentParser from datetime import datetime from os import path, listdir, getcwd, chdir import subprocess from dateutil.parser import parse as dt_parse from ruamel.yaml import YAML def transform_posts(src_dir, dest_dir, featured_path=None): featured = load_featured(featured_path) if feature...
32.51875
166
0.617528
0
0
0
0
0
0
0
0
854
0.164136
5fe3ceaa4d994eb74303ce409f0c500eac7328b4
4,262
py
Python
gelweb/gel2clin/views.py
moka-guys/GeL2MDT
09bf25b8452e2e887dbf74b1cd4771d234c6166c
[ "MIT" ]
null
null
null
gelweb/gel2clin/views.py
moka-guys/GeL2MDT
09bf25b8452e2e887dbf74b1cd4771d234c6166c
[ "MIT" ]
1
2020-02-06T13:17:40.000Z
2020-02-06T13:17:40.000Z
gelweb/gel2clin/views.py
byronmews/GeL2MDT
1449831f0d7c570b71e7f46fb4dd1fcb805b0325
[ "MIT" ]
null
null
null
"""Copyright (c) 2018 Great Ormond Street Hospital for Children NHS Foundation Trust & Birmingham Women's and Children's NHS Foundation Trust Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software withou...
45.827957
106
0.644533
0
0
0
0
2,783
0.65298
0
0
2,000
0.469263
5fe6da3d5fdab2a2eb9fd6fc794811538cea5b7c
639
py
Python
lib/clock.py
greymistcube/racing_game_ai
7e5e6ec781eb3c98729d370cbcc0ab6ed053962f
[ "MIT" ]
null
null
null
lib/clock.py
greymistcube/racing_game_ai
7e5e6ec781eb3c98729d370cbcc0ab6ed053962f
[ "MIT" ]
null
null
null
lib/clock.py
greymistcube/racing_game_ai
7e5e6ec781eb3c98729d370cbcc0ab6ed053962f
[ "MIT" ]
null
null
null
import pygame import lib.common as common # initializing module pygame.init() class Clock: __instance = None # implementing this class as singleton def __new__(cls, *args, **kwargs): if cls.__instance is None: cls.__instance = super().__new__(cls) return cls.__instance ...
22.034483
62
0.621283
557
0.871674
0
0
0
0
0
0
92
0.143975
5fe6e8bc747c5f980ad7fbb164a7c5c2ef4b9edf
231
py
Python
setup.py
powerd4/SNA_project
458dae1df4d198f6ce82062cd2e59f8408cbb3cf
[ "FTL" ]
null
null
null
setup.py
powerd4/SNA_project
458dae1df4d198f6ce82062cd2e59f8408cbb3cf
[ "FTL" ]
null
null
null
setup.py
powerd4/SNA_project
458dae1df4d198f6ce82062cd2e59f8408cbb3cf
[ "FTL" ]
null
null
null
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='Social Network Analysis module group project 2020', author='Dean Power', license='', )
21
68
0.679654
0
0
0
0
0
0
0
0
77
0.333333
5fe74a248465ad5e98c9c5e8a0c0fa8593134941
994
py
Python
jigu/core/bank.py
bongtrop/jigu
448bce8ce693f3f7c530bea0f2f268e22100937a
[ "MIT" ]
14
2020-03-03T06:46:39.000Z
2021-05-01T15:29:35.000Z
jigu/core/bank.py
bongtrop/jigu
448bce8ce693f3f7c530bea0f2f268e22100937a
[ "MIT" ]
9
2020-03-09T06:36:30.000Z
2021-02-15T14:40:48.000Z
jigu/core/bank.py
bongtrop/jigu
448bce8ce693f3f7c530bea0f2f268e22100937a
[ "MIT" ]
5
2020-05-30T22:38:34.000Z
2021-02-11T00:56:20.000Z
from __future__ import annotations from jigu.core import AccAddress, Coins from jigu.util.serdes import JsonDeserializable, JsonSerializable from jigu.util.validation import Schemas as S from jigu.util.validation import validate_acc_address __all__ = ["Input", "Output"] class MultiSendIO(JsonSerializable, JsonDeser...
30.121212
81
0.719316
712
0.716298
0
0
145
0.145875
0
0
144
0.144869
5fea42b894dab2e2c30e2950d94a43b828f9c4c1
1,743
py
Python
research/controllers/cartpole_regression_sysid.py
MinRegret/TigerControl
b1ca0617cbb2198f9d5cb37f725f3d7accbab08f
[ "Apache-2.0" ]
31
2019-11-08T06:01:54.000Z
2021-11-20T04:50:43.000Z
research/controllers/cartpole_regression_sysid.py
johnhallman/ctsb
b1ca0617cbb2198f9d5cb37f725f3d7accbab08f
[ "Apache-2.0" ]
32
2019-06-27T15:05:04.000Z
2019-08-07T04:23:47.000Z
research/controllers/cartpole_regression_sysid.py
MinRegret/tigercontrol
b1ca0617cbb2198f9d5cb37f725f3d7accbab08f
[ "Apache-2.0" ]
3
2020-09-30T17:06:50.000Z
2021-04-12T22:39:34.000Z
class RegressionSystemID: def __init__(self): self.initialized = False def initialize(self, n, m, K=None, learning_rate=0.001): self.initialized = True self.n, self.m = n, m self.T = 0 self.K = K if K != None else np.zeros((m, n)) self.lr = learning_rate ...
36.3125
71
0.560528
1,743
1
0
0
0
0
0
0
238
0.136546
5feabd6e1aae4b67ada18a6e640a09f3df166ffa
85
py
Python
hwtLib/mem/__init__.py
optical-o/hwtLib
edad621f5ad4cdbea20a5751ff4468979afe2f77
[ "MIT" ]
24
2017-02-23T10:00:50.000Z
2022-01-28T12:20:21.000Z
hwtLib/mem/__init__.py
optical-o/hwtLib
edad621f5ad4cdbea20a5751ff4468979afe2f77
[ "MIT" ]
32
2017-04-28T10:29:34.000Z
2021-04-27T09:16:43.000Z
hwtLib/mem/__init__.py
optical-o/hwtLib
edad621f5ad4cdbea20a5751ff4468979afe2f77
[ "MIT" ]
8
2019-09-19T03:34:36.000Z
2022-01-21T06:56:58.000Z
""" A package dedicated to a memory related components, interfaces and utilities. """
28.333333
77
0.764706
0
0
0
0
0
0
0
0
85
1
5fead45ea3ba403eb9b2c9548ef8cb56dd3f5f96
1,121
py
Python
binary_tree/vertical_order_traversal.py
x899/algorithms
38a5de72db14ef2664489da9857b598d24c4e276
[ "MIT" ]
472
2018-05-25T06:45:44.000Z
2020-01-06T15:46:09.000Z
binary_tree/vertical_order_traversal.py
pratik-a/algorithms-2
241115c64a7518c34f672eb2b851b05f353247f1
[ "MIT" ]
6
2020-01-25T22:22:44.000Z
2021-06-01T04:53:25.000Z
binary_tree/vertical_order_traversal.py
pratik-a/algorithms-2
241115c64a7518c34f672eb2b851b05f353247f1
[ "MIT" ]
44
2019-03-02T07:38:38.000Z
2020-01-01T16:05:06.000Z
""" Vertical Order Traversal On Binary Tree """ from collections import defaultdict class Node: """ class representing node in binary tree """ def __init__(self, data): self.data = data self.left = None self.right = None def preorder(root, horizontal_dist, hd_map): if root is No...
21.557692
52
0.6405
168
0.149866
0
0
0
0
0
0
196
0.174844
5feaf4c73afb53db46a1e5e5e4652d4a41e6e80e
1,452
py
Python
data_preprocessing/load_cifar_ten.py
gwenniger/multi-hare
fb3f655cbbf4af6ccbfc77d587b8ea2924b300cd
[ "Apache-2.0" ]
7
2019-12-04T05:58:40.000Z
2021-08-04T07:19:55.000Z
data_preprocessing/load_cifar_ten.py
gwenniger/multi-hare
fb3f655cbbf4af6ccbfc77d587b8ea2924b300cd
[ "Apache-2.0" ]
null
null
null
data_preprocessing/load_cifar_ten.py
gwenniger/multi-hare
fb3f655cbbf4af6ccbfc77d587b8ea2924b300cd
[ "Apache-2.0" ]
4
2019-12-03T23:42:00.000Z
2020-12-19T19:48:04.000Z
import torchvision.transforms as transforms import torch import torchvision __author__ = "Dublin City University" __copyright__ = "Copyright 2019, Dublin City University" __credits__ = ["Gideon Maillette de Buy Wenniger"] __license__ = "Dublin City University Software License (enclosed)" def get_train_set(): tra...
37.230769
86
0.637741
0
0
0
0
0
0
0
0
166
0.114325
5feb07c430256fe7dba892fc904f0cd15150fcbf
1,018
py
Python
dprofiler/profile.py
disktnk/dprofiler
be820de440c21d3fef711db1220bfddb9bdee177
[ "MIT" ]
null
null
null
dprofiler/profile.py
disktnk/dprofiler
be820de440c21d3fef711db1220bfddb9bdee177
[ "MIT" ]
3
2018-10-16T04:03:50.000Z
2018-10-17T01:34:16.000Z
dprofiler/profile.py
disktnk/dprofiler
be820de440c21d3fef711db1220bfddb9bdee177
[ "MIT" ]
null
null
null
import cProfile import functools import logging import pstats import sys import six _logger = logging.getLogger(__name__) _logger.setLevel(logging.DEBUG) _stream_handler = logging.StreamHandler(sys.stdout) _stream_handler.setLevel(logging.DEBUG) _logger.addHandler(_stream_handler) def profile( fn=None, sor...
23.674419
78
0.642436
0
0
0
0
460
0.451866
0
0
13
0.01277
5feb9d3de56d225150681a0ca825ae08aaac3052
79
py
Python
helper_funcs/__init__.py
mschoder/trajectory_lib
c75476c53fa32b3dd69e998996c6e2a6a72b24b4
[ "MIT" ]
1
2021-11-04T14:05:45.000Z
2021-11-04T14:05:45.000Z
helper_funcs/__init__.py
mschoder/trajectory_lib
c75476c53fa32b3dd69e998996c6e2a6a72b24b4
[ "MIT" ]
null
null
null
helper_funcs/__init__.py
mschoder/trajectory_lib
c75476c53fa32b3dd69e998996c6e2a6a72b24b4
[ "MIT" ]
null
null
null
import helper_funcs.spline import helper_funcs.plotter import helper_funcs.grid
26.333333
27
0.898734
0
0
0
0
0
0
0
0
0
0
5fec5184bee3516b0d2cd771d0ad21b3d6f1997f
3,948
py
Python
server.py
HusseinKabbout/qwc-document-service
c8d856390006e0f5ecc0d28b0d53da55e5505381
[ "MIT" ]
null
null
null
server.py
HusseinKabbout/qwc-document-service
c8d856390006e0f5ecc0d28b0d53da55e5505381
[ "MIT" ]
null
null
null
server.py
HusseinKabbout/qwc-document-service
c8d856390006e0f5ecc0d28b0d53da55e5505381
[ "MIT" ]
1
2020-04-24T11:36:26.000Z
2020-04-24T11:36:26.000Z
import os import sys from urllib.parse import urlencode from flask import Flask, Response, abort, request, stream_with_context, jsonify from flask_restx import Api, Resource, fields, reqparse import requests from qwc_services_core.api import CaseInsensitiveArgument from qwc_services_core.app import app_nocache from q...
32.360656
79
0.680091
598
0.151469
0
0
848
0.214792
0
0
1,210
0.306484
5fed3ac57957a704f707984e8e8650e01df266c1
153
py
Python
modules/2.79/bpy/types/BoneGroups.py
cmbasnett/fake-bpy-module
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
[ "MIT" ]
null
null
null
modules/2.79/bpy/types/BoneGroups.py
cmbasnett/fake-bpy-module
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
[ "MIT" ]
null
null
null
modules/2.79/bpy/types/BoneGroups.py
cmbasnett/fake-bpy-module
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
[ "MIT" ]
null
null
null
class BoneGroups: active = None active_index = None def new(self, name="Group"): pass def remove(self, group): pass
11.769231
32
0.562092
149
0.973856
0
0
0
0
0
0
7
0.045752
5fedb1afd0a343dd3c21ad7f3aee3e96bedef35d
403
py
Python
scripts/Government Spending.py
MarcosDaNight/Dashboard-COVID19
26967d2fb7b3dd44c3c51b8ac79608d91bf26d71
[ "MIT" ]
null
null
null
scripts/Government Spending.py
MarcosDaNight/Dashboard-COVID19
26967d2fb7b3dd44c3c51b8ac79608d91bf26d71
[ "MIT" ]
null
null
null
scripts/Government Spending.py
MarcosDaNight/Dashboard-COVID19
26967d2fb7b3dd44c3c51b8ac79608d91bf26d71
[ "MIT" ]
null
null
null
from matplotlib import pyplot as plt # data speding from Federal Government Plan planes = ['Transferência para saúde', 'FPE e FPM', 'Assistência Social', 'Suspensão de dívidas da União', 'Renegociação com bancos'] spend = [8, 16, 2, 12.6, 9.3] plt.axis("equal") plt.pie(spend, labels=planes, ...
22.388889
73
0.665012
0
0
0
0
0
0
0
0
215
0.523114
5fee310b12b10f820f272b0dba6075da741be40b
9,817
py
Python
nexusmaker/tests/test_CognateParser.py
SimonGreenhill/NexusMaker
12591bd4217bc1ba4477845e524083c2164df91a
[ "BSD-3-Clause" ]
null
null
null
nexusmaker/tests/test_CognateParser.py
SimonGreenhill/NexusMaker
12591bd4217bc1ba4477845e524083c2164df91a
[ "BSD-3-Clause" ]
2
2017-10-12T08:59:51.000Z
2021-05-31T00:37:16.000Z
nexusmaker/tests/test_CognateParser.py
SimonGreenhill/NexusMaker
12591bd4217bc1ba4477845e524083c2164df91a
[ "BSD-3-Clause" ]
1
2017-10-12T08:59:09.000Z
2017-10-12T08:59:09.000Z
import unittest from nexusmaker import CognateParser class TestCognateParser(unittest.TestCase): def test_simple(self): self.assertEqual(CognateParser().parse_cognate('1'), ['1']) self.assertEqual(CognateParser().parse_cognate('10'), ['10']) self.assertEqual(CognateParser().parse_cogn...
44.220721
88
0.581237
9,761
0.994296
0
0
0
0
0
0
2,716
0.276663
5ff029ed47a23de0243a31bef9cc5542860e44d1
867
py
Python
ngo_point1/ngo_requirements/urls.py
Sanayshah2/T046_Scrapshut
ecb269373e9b78a738ceb99675379ca21ee313a5
[ "MIT" ]
null
null
null
ngo_point1/ngo_requirements/urls.py
Sanayshah2/T046_Scrapshut
ecb269373e9b78a738ceb99675379ca21ee313a5
[ "MIT" ]
null
null
null
ngo_point1/ngo_requirements/urls.py
Sanayshah2/T046_Scrapshut
ecb269373e9b78a738ceb99675379ca21ee313a5
[ "MIT" ]
1
2021-04-23T17:06:44.000Z
2021-04-23T17:06:44.000Z
from django.contrib import admin from django.urls import path from . import views from django.conf.urls import url urlpatterns = [ path('',views.home,name='home'), path('register/',views.register,name='register'), path('login/',views.Login,name='login'), path('logout/', views.logout_view, name='logou...
37.695652
110
0.726644
0
0
0
0
0
0
0
0
335
0.38639
5ff34356a914a7907c97352a87bdb8eb2ee14f4e
32,810
py
Python
parakeet/models/wavenet.py
lfchener/Parakeet
b0ba6e7bf9b44b6309ca45927d4405bb85fcd103
[ "Apache-2.0" ]
1
2021-02-03T12:11:21.000Z
2021-02-03T12:11:21.000Z
parakeet/models/wavenet.py
gzfffff/Parakeet
a84b6d3383b2a8a5fb45d0c233bee1ed80d0b389
[ "Apache-2.0" ]
null
null
null
parakeet/models/wavenet.py
gzfffff/Parakeet
a84b6d3383b2a8a5fb45d0c233bee1ed80d0b389
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
33.548057
111
0.569857
30,553
0.93121
0
0
2,817
0.085858
0
0
19,062
0.580981
5ff3bdba3407ef79de92445150f4e8cf96492395
661
py
Python
xmas/util.py
drocco007/xmas_pi
23d8f7b95ec4682d057b68d4a53e5b0ae3b193fa
[ "MIT" ]
null
null
null
xmas/util.py
drocco007/xmas_pi
23d8f7b95ec4682d057b68d4a53e5b0ae3b193fa
[ "MIT" ]
null
null
null
xmas/util.py
drocco007/xmas_pi
23d8f7b95ec4682d057b68d4a53e5b0ae3b193fa
[ "MIT" ]
null
null
null
def normalize(values, gammas): """Adjust a list of brightness values according to a list of gamma values. Given a list of light brightness values from 0.0 to 1.0, adjust the value according to the corresponding maximum brightness in the gamma list. For example:: >>> gammas = [0.3, 1.0] ...
27.541667
78
0.559758
0
0
0
0
0
0
0
0
557
0.842663
5ff67231767a550306fa1eed298e972631db8363
1,407
py
Python
06/TemplateMaching.py
mastnk/GCIP
1d1ec23388629f145a021efd69797aa18b3891e3
[ "MIT" ]
null
null
null
06/TemplateMaching.py
mastnk/GCIP
1d1ec23388629f145a021efd69797aa18b3891e3
[ "MIT" ]
null
null
null
06/TemplateMaching.py
mastnk/GCIP
1d1ec23388629f145a021efd69797aa18b3891e3
[ "MIT" ]
null
null
null
import sys import cv2 # it is necessary to use cv2 library import numpy as np # https://docs.opencv.org/4.5.2/d4/dc6/tutorial_py_template_matching.html def main( input_filename, template_filename ): img = cv2.imread(input_filename,0) template = cv2.imread(template_filename,0) w, h = template.shape[::-1] ...
31.977273
105
0.668088
0
0
0
0
0
0
0
0
569
0.404407
5ff692081eaaca772a3292cf14f5309c58c43958
516
py
Python
contest/tenka1-pbc2019/C_Stones.py
mola1129/atcoder
1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db
[ "MIT" ]
null
null
null
contest/tenka1-pbc2019/C_Stones.py
mola1129/atcoder
1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db
[ "MIT" ]
null
null
null
contest/tenka1-pbc2019/C_Stones.py
mola1129/atcoder
1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db
[ "MIT" ]
null
null
null
n = int(input()) s = input() bcnt = [0]*n wcnt = [0]*n result = 2 * 10 ** 5 # 累積和 if s[0] == "#": bcnt[0] = 1 if s[n-1] == ".": wcnt[n-1] = 1 for i in range(1,n): bcnt[i] = bcnt[i-1] if s[i] == "#": bcnt[i] += 1 for i in range(n-2,-1,-1): wcnt[i] = wcnt[i+1] if s[i] =...
17.2
45
0.45155
0
0
0
0
0
0
0
0
54
0.1
5ff9658511513524516ba459b859ca485a53d2a3
9,413
py
Python
scripts/myclient.py
Anant16/Networks_Project
a0f15bde4b2625a5ffe382da958f04d4538d23d2
[ "MIT" ]
null
null
null
scripts/myclient.py
Anant16/Networks_Project
a0f15bde4b2625a5ffe382da958f04d4538d23d2
[ "MIT" ]
null
null
null
scripts/myclient.py
Anant16/Networks_Project
a0f15bde4b2625a5ffe382da958f04d4538d23d2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Script for Tkinter GUI chat client.""" from socket import AF_INET, socket, SOCK_STREAM from threading import Thread import tkinter from tkinter import filedialog, Tk import os import time def recv_file(): print("file request from ") fname = client_socket.recv(BUFSIZ).decode("utf8") ...
31.272425
125
0.627961
0
0
0
0
0
0
0
0
2,133
0.226602
5ffb47974af4fe5ac023573e2b360b56ebf1ffbc
1,689
py
Python
issues/i10_parent.py
Raph-xyz/wexpect
c1e81b3a69d4d3821cb01b61bd5297b51a24539f
[ "MIT" ]
52
2019-04-24T14:38:43.000Z
2022-03-08T22:03:11.000Z
issues/i10_parent.py
Raph-xyz/wexpect
c1e81b3a69d4d3821cb01b61bd5297b51a24539f
[ "MIT" ]
51
2019-05-13T12:15:09.000Z
2021-12-15T14:00:15.000Z
issues/i10_parent.py
Raph-xyz/wexpect
c1e81b3a69d4d3821cb01b61bd5297b51a24539f
[ "MIT" ]
20
2019-07-15T15:48:31.000Z
2022-03-27T08:55:17.000Z
import wexpect import time import sys import os here = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, here) from long_printer import puskas_wiki print(wexpect.__version__) # With quotes (C:\Program Files\Python37\python.exe needs quotes) python_executable = '"' + sys.executable + '" ' ...
26.390625
68
0.474837
0
0
0
0
0
0
0
0
172
0.101835
5ffcd7c87c77f89439cef7d88357fcf225e1b8ea
3,694
py
Python
sir_sampler.py
bveitch/EpidPy
455cd67afa2efbb774300115abb5fc7d4600b37d
[ "BSD-3-Clause" ]
null
null
null
sir_sampler.py
bveitch/EpidPy
455cd67afa2efbb774300115abb5fc7d4600b37d
[ "BSD-3-Clause" ]
null
null
null
sir_sampler.py
bveitch/EpidPy
455cd67afa2efbb774300115abb5fc7d4600b37d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Jun 26 10:17:51 2020 description : Sampling methods from sir space to data space author : bveitch version : 1.0 project : EpidPy (epidemic modelling in python) Usage: Data fitting in least squares fit Also acts on labels for data ...
29.790323
78
0.554413
1,709
0.462642
0
0
0
0
0
0
958
0.259339
27004bc90d0396548daec8e9a418a7f70ae5efe9
4,597
py
Python
database_sanitizer/session.py
sharescape/python-database-sanitizer
560bf402e3896285980abb21a74d5be8d2da1698
[ "MIT" ]
37
2018-05-07T13:07:25.000Z
2022-02-07T18:58:10.000Z
database_sanitizer/session.py
sharescape/python-database-sanitizer
560bf402e3896285980abb21a74d5be8d2da1698
[ "MIT" ]
31
2018-04-27T13:16:28.000Z
2021-12-10T10:08:00.000Z
database_sanitizer/session.py
sharescape/python-database-sanitizer
560bf402e3896285980abb21a74d5be8d2da1698
[ "MIT" ]
15
2018-05-04T12:28:12.000Z
2022-02-17T09:27:58.000Z
""" API to sanitation session. Sanitation session allows having a state within a single sanitation process. One important thing stored to the session is a secret key which is generated to a new random value for each sanitation session, but it stays constant during the whole sanitation process. Its value is never reve...
31.272109
72
0.688057
0
0
0
0
0
0
0
0
3,157
0.686752
270052ade6542cf9600c8d97910142b209cecc23
573
py
Python
ciaa-nxp/pyExamples/Main_Timers_2.py
braytac/micropython
4fba270b6061395367e7f49eb3baa77365557ace
[ "MIT" ]
2
2019-07-28T05:27:42.000Z
2020-05-26T04:39:43.000Z
ciaa-nxp/pyExamples/Main_Timers_2.py
braytac/micropython
4fba270b6061395367e7f49eb3baa77365557ace
[ "MIT" ]
null
null
null
ciaa-nxp/pyExamples/Main_Timers_2.py
braytac/micropython
4fba270b6061395367e7f49eb3baa77365557ace
[ "MIT" ]
1
2018-06-23T22:07:06.000Z
2018-06-23T22:07:06.000Z
import pyb def callb(timer): print("Interval interrupt") print(timer) def callbTimeout (timer): print("Timeout interrupt") print(timer) print("Test Timers") t1 = pyb.Timer(1) t2 = pyb.Timer(2) t1.interval(2000,callb) t2.timeout(5000,callbTimeout) t1.freq(1) print("f t1:"+str(t1.freq())) t1.period(204000000) ...
14.692308
43
0.685864
0
0
0
0
0
0
0
0
135
0.235602
2701a91ae74b0da4e98a4cd24af4fe84d580b309
17,219
py
Python
tests/test_viewer.py
glenvorel/waterfalls
900e9fb51a487b7ca1f5ed5274c0bdba95a4d435
[ "MIT" ]
1
2020-08-06T03:58:54.000Z
2020-08-06T03:58:54.000Z
tests/test_viewer.py
glenvorel/performancepy
900e9fb51a487b7ca1f5ed5274c0bdba95a4d435
[ "MIT" ]
null
null
null
tests/test_viewer.py
glenvorel/performancepy
900e9fb51a487b7ca1f5ed5274c0bdba95a4d435
[ "MIT" ]
null
null
null
import json import os import tempfile import unittest from unittest.mock import patch from waterfalls import Viewer, viewer class TestViewer(unittest.TestCase): """ Tests the `waterfalls.Viewer` module. """ def test_detect_overlap(self) -> None: """ Tests detecting overlap of timing ...
34.856275
108
0.475812
17,042
0.989721
0
0
0
0
0
0
4,308
0.250189
2704c694bb778a6cd16b19f2de02eece854903d3
4,491
py
Python
reflect/menus.py
stefanthaler/daily-reflection
2aba4873742b205f75a71b2ce382d126153f14c5
[ "MIT" ]
null
null
null
reflect/menus.py
stefanthaler/daily-reflection
2aba4873742b205f75a71b2ce382d126153f14c5
[ "MIT" ]
null
null
null
reflect/menus.py
stefanthaler/daily-reflection
2aba4873742b205f75a71b2ce382d126153f14c5
[ "MIT" ]
null
null
null
from prompt_toolkit.key_binding import KeyBindings from prompt_toolkit import PromptSession,prompt,print_formatted_text from reflect.style import * import os from prompt_toolkit.shortcuts import clear from prompt_toolkit.formatted_text import FormattedText def get_menu(menu_items): message = [] for k in menu_...
30.760274
108
0.583389
0
0
0
0
311
0.06925
0
0
921
0.205077
27059812bfb36013c718b5579e1caa2896f39e29
636
py
Python
matrix/main.py
oleggator/python-advanced
0e951fe6e7ae74129536ded5c02a9f1ea3337a7d
[ "MIT" ]
null
null
null
matrix/main.py
oleggator/python-advanced
0e951fe6e7ae74129536ded5c02a9f1ea3337a7d
[ "MIT" ]
2
2019-04-28T20:37:35.000Z
2019-10-29T08:11:24.000Z
matrix/main.py
oleggator/python-advanced
0e951fe6e7ae74129536ded5c02a9f1ea3337a7d
[ "MIT" ]
null
null
null
from matrix import Matrix as CMatrix from py_matrix import PyMatrix def test(matrix_class, rows=3, columns=2): m = matrix_class([ [column for column in range(row * columns, row * columns + columns)] for row in range(rows) ]) # # or # m = matrix_class([ # [1, 2], # [3, 4...
21.2
76
0.550314
0
0
0
0
0
0
0
0
177
0.278302
2707004f28feaa5db63a1087307863b0d70fe4ec
100
py
Python
Algorithms/Bit Manipulation/Given a list of numbers where every numbers occurs twice except one number.py
cnm06/Competitive-Programming
94242ae458570d503b8218f37624b88cc5020d23
[ "MIT" ]
994
2017-02-28T06:13:47.000Z
2022-03-31T10:49:00.000Z
Algorithms/Bit Manipulation/Given a list of numbers where every numbers occurs twice except one number.py
Quadrified/Competitive-Programming
bccb69952cc5260fb3647b3301ddac1023dacac8
[ "MIT" ]
16
2018-01-01T02:59:55.000Z
2021-11-22T12:49:16.000Z
Algorithms/Bit Manipulation/Given a list of numbers where every numbers occurs twice except one number.py
Quadrified/Competitive-Programming
bccb69952cc5260fb3647b3301ddac1023dacac8
[ "MIT" ]
325
2017-06-15T03:32:43.000Z
2022-03-28T22:43:42.000Z
def answer(numbers): ans = numbers[0] for i in numbers[1:]: ans ^= i return ans
16.666667
25
0.54
0
0
0
0
0
0
0
0
0
0
27085e60eb21632a2fb266c8e1fc048c12001579
3,947
py
Python
horizon_telemetry/compute/views.py
simonpasquier/horizon-telemetry-dashboard
f284ec6ae8b1932079852fe3e9ab4b7a27ff58d7
[ "Apache-2.0" ]
null
null
null
horizon_telemetry/compute/views.py
simonpasquier/horizon-telemetry-dashboard
f284ec6ae8b1932079852fe3e9ab4b7a27ff58d7
[ "Apache-2.0" ]
2
2017-10-10T07:30:41.000Z
2017-10-19T18:34:13.000Z
horizon_telemetry/compute/views.py
simonpasquier/horizon-telemetry-dashboard
f284ec6ae8b1932079852fe3e9ab4b7a27ff58d7
[ "Apache-2.0" ]
null
null
null
import datetime import json from django.conf import settings from django.http import HttpResponse from django.utils.translation import ugettext_lazy as _ from django.views.generic import TemplateView from horizon import exceptions, tables from horizon_telemetry.forms import DateForm from horizon_telemetry.utils.influ...
36.88785
100
0.593615
3,194
0.809222
0
0
0
0
0
0
507
0.128452
270af1960a206b26f220b68d5328bdfbbbe68aa2
1,983
py
Python
src/pySanbot/test/test_util/test_boyer_moore_search.py
BHFaction/Tribot
38d8caaa73775654125db3091b8de2aadb3dba99
[ "MIT" ]
3
2017-04-04T04:03:28.000Z
2021-05-29T08:08:48.000Z
src/pySanbot/test/test_util/test_boyer_moore_search.py
BHFaction/Tribot
38d8caaa73775654125db3091b8de2aadb3dba99
[ "MIT" ]
null
null
null
src/pySanbot/test/test_util/test_boyer_moore_search.py
BHFaction/Tribot
38d8caaa73775654125db3091b8de2aadb3dba99
[ "MIT" ]
2
2018-02-28T14:16:11.000Z
2019-05-07T18:02:16.000Z
from unittest import TestCase from util.boyer_moore_search import z_array from util.boyer_moore_search import boyer_moore, BoyerMoore __author__ = 'Yifei' class TestBoyerMooreSearch(TestCase): def test_z_array(self): # Test Case 0 s = 'aabcaabxaaaz' n = len(s) z = z_array(s) ...
32.508197
96
0.498739
1,824
0.919818
0
0
0
0
0
0
226
0.113969
270b35ddd89f3b512a06eb79c89fed5ad60c1aca
1,668
py
Python
authentication/views.py
ManasUniyal/RoadView
593a4f86cb10efdbf560fc4aec3d58a9b5b41bd2
[ "MIT" ]
null
null
null
authentication/views.py
ManasUniyal/RoadView
593a4f86cb10efdbf560fc4aec3d58a9b5b41bd2
[ "MIT" ]
null
null
null
authentication/views.py
ManasUniyal/RoadView
593a4f86cb10efdbf560fc4aec3d58a9b5b41bd2
[ "MIT" ]
null
null
null
from django.contrib import messages from django.contrib.auth import authenticate, login, logout from django.contrib.auth.models import User from django.shortcuts import render, redirect # Create your views here. def loginUser(request): if request.method == 'POST': email_address = request.POST['email'] ...
35.489362
71
0.63789
0
0
0
0
0
0
0
0
336
0.201439
270baa9c084cf98e0065fdca116072edd2dacd09
1,335
py
Python
dz3/task3_5.py
EsipenkoAnna/PycharmProjects-EsipenkoAnna_2242
46fe55de36b7b1cfdeafcf685ea01c6220e16546
[ "MIT" ]
null
null
null
dz3/task3_5.py
EsipenkoAnna/PycharmProjects-EsipenkoAnna_2242
46fe55de36b7b1cfdeafcf685ea01c6220e16546
[ "MIT" ]
null
null
null
dz3/task3_5.py
EsipenkoAnna/PycharmProjects-EsipenkoAnna_2242
46fe55de36b7b1cfdeafcf685ea01c6220e16546
[ "MIT" ]
null
null
null
import random nouns = ["автомобиль", "лес", "огонь", "город", "дом"] adverbs = ["сегодня", "вчера", "завтра", "позавчера", "ночью"] adjectives = ["веселый", "яркий", "зеленый", "утопичный", "мягкий"] def get_jokes(count: int) -> list: #формируем список состящий из фраз. Каждая фраза содержит по три слова, которые сл...
36.081081
145
0.698127
0
0
0
0
0
0
0
0
722
0.442673
270e32ac710b649bd41e91bee859d8ce32b8ac58
1,140
py
Python
unit_03/06_Dates_and_Time/1-Dates_and_Time/4_timestrings.py
duliodenis/python_master_degree
3ab76838ce2fc1606f28e988a3273dd27122a621
[ "MIT" ]
19
2019-03-14T01:39:32.000Z
2022-02-03T00:36:43.000Z
unit_03/06_Dates_and_Time/1-Dates_and_Time/4_timestrings.py
duliodenis/python_master_degree
3ab76838ce2fc1606f28e988a3273dd27122a621
[ "MIT" ]
1
2020-04-10T01:01:16.000Z
2020-04-10T01:01:16.000Z
unit_03/06_Dates_and_Time/1-Dates_and_Time/4_timestrings.py
duliodenis/python_master_degree
3ab76838ce2fc1606f28e988a3273dd27122a621
[ "MIT" ]
5
2019-01-02T20:46:05.000Z
2020-07-08T22:47:48.000Z
# # Dates and Times in Python: Dates & Time # Python Techdegree # # Created by Dulio Denis on 12/24/18. # Copyright (c) 2018 ddApps. All rights reserved. # ------------------------------------------------ # Challenge 4: strftime & strptime # ------------------------------------------------ # Challenge Task 1 of 2...
30
69
0.650877
0
0
0
0
0
0
0
0
817
0.716667
27103b13e18c6af23c06877c02e17d64b07756a6
177
py
Python
server/DresseurModele.py
crancerkill/pokeploud
d01c596591382fdec62958896e3ec6a6bb3d1ab9
[ "Apache-2.0" ]
null
null
null
server/DresseurModele.py
crancerkill/pokeploud
d01c596591382fdec62958896e3ec6a6bb3d1ab9
[ "Apache-2.0" ]
null
null
null
server/DresseurModele.py
crancerkill/pokeploud
d01c596591382fdec62958896e3ec6a6bb3d1ab9
[ "Apache-2.0" ]
null
null
null
from google.appengine.ext import ndb class Dresseur(ndb.Model): tirage = ndb.KeyProperty(kind='Tirage') nomig = ndb.StringProperty() codeami = ndb.StringProperty()
25.285714
43
0.723164
138
0.779661
0
0
0
0
0
0
8
0.045198
2712d71cebd1c1c0c5ebe71fa2604a188a12e044
331
py
Python
core/migrations/0003_remove_resetpassword_expires_at.py
GolamMullick/HR_PROJECT
fc4c76cfc835ad014a62a3da9d32b8fc8d474397
[ "MIT" ]
null
null
null
core/migrations/0003_remove_resetpassword_expires_at.py
GolamMullick/HR_PROJECT
fc4c76cfc835ad014a62a3da9d32b8fc8d474397
[ "MIT" ]
3
2020-02-12T02:52:01.000Z
2021-06-10T22:18:25.000Z
core/migrations/0003_remove_resetpassword_expires_at.py
GolamMullick/HR_PROJECT
fc4c76cfc835ad014a62a3da9d32b8fc8d474397
[ "MIT" ]
null
null
null
# Generated by Django 2.1.4 on 2019-11-18 11:00 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0002_resetpassword'), ] operations = [ migrations.RemoveField( model_name='resetpassword', name='expires_at', ...
18.388889
47
0.595166
246
0.743202
0
0
0
0
0
0
100
0.302115
2713ca1136e8fbc548b8d5161cb677f262b46b5a
22,410
py
Python
toolbox_plotting.py
roughhawkbit/robs-python-scripts
7d9a28cff106887553970b5c4c37cd53a836c2ff
[ "MIT" ]
null
null
null
toolbox_plotting.py
roughhawkbit/robs-python-scripts
7d9a28cff106887553970b5c4c37cd53a836c2ff
[ "MIT" ]
1
2015-02-23T16:31:21.000Z
2015-02-25T16:34:14.000Z
toolbox_plotting.py
roughhawkbit/robs-python-scripts
7d9a28cff106887553970b5c4c37cd53a836c2ff
[ "MIT" ]
null
null
null
#!/usr/bin/python from __future__ import division from __future__ import with_statement import matplotlib from matplotlib import rcParams from matplotlib import pyplot from mpl_toolkits.axes_grid1 import make_axes_locatable from mpl_toolkits.mplot3d import Axes3D from PIL import Image #import Image from pylab import * ...
46.784969
88
0.585988
20,013
0.893039
0
0
0
0
0
0
2,938
0.131102
27148ed5395addc00af60f81418ead72ae8e82d5
568
py
Python
melon_modules/moderation.py
WeMayNeverKnow/MelonMintBots
6feac66a25ad86ab0c9a8b41f4cdae819f4e9fbd
[ "MIT" ]
null
null
null
melon_modules/moderation.py
WeMayNeverKnow/MelonMintBots
6feac66a25ad86ab0c9a8b41f4cdae819f4e9fbd
[ "MIT" ]
null
null
null
melon_modules/moderation.py
WeMayNeverKnow/MelonMintBots
6feac66a25ad86ab0c9a8b41f4cdae819f4e9fbd
[ "MIT" ]
null
null
null
from hata import Client MELON : Client #@MELON.commands.from_class #class prefix: # pass #@MELON.commands.from_class #class slowmode: # pass #@MELON.commands.from_class #class logs: # pass #@MELON.commands.from_class #class warn: # pass #@MELON.commands.from_class #class mute: # pass #@MELON.comma...
12.909091
27
0.702465
0
0
0
0
0
0
0
0
488
0.859155
27155b9a924aec60a88449cb892d18dddf705986
5,837
py
Python
bundled/linter/linter_server.py
luabud/vscode-pylint
2297f1a6210bf93f7d9c083e32c59ed03664ca05
[ "MIT" ]
null
null
null
bundled/linter/linter_server.py
luabud/vscode-pylint
2297f1a6210bf93f7d9c083e32c59ed03664ca05
[ "MIT" ]
null
null
null
bundled/linter/linter_server.py
luabud/vscode-pylint
2297f1a6210bf93f7d9c083e32c59ed03664ca05
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. """ Implementation of linting support over LSP. """ import json import pathlib import sys from typing import Dict, Sequence, Union # Ensure that will can import LSP libraries, and other bundled linter libraries sys.path.appe...
31.38172
88
0.664211
0
0
0
0
1,513
0.259208
0
0
1,624
0.278225
2717b6d6d414bb9ece4ff0a008bac03ea5586ef2
27
py
Python
api/web/__init__.py
AutoCoinDCF/NEW_API
f4abc48fff907a0785372b941afcd67e62eec825
[ "Apache-2.0" ]
null
null
null
api/web/__init__.py
AutoCoinDCF/NEW_API
f4abc48fff907a0785372b941afcd67e62eec825
[ "Apache-2.0" ]
null
null
null
api/web/__init__.py
AutoCoinDCF/NEW_API
f4abc48fff907a0785372b941afcd67e62eec825
[ "Apache-2.0" ]
null
null
null
from .webapi import WebAPI
13.5
26
0.814815
0
0
0
0
0
0
0
0
0
0
27183201b985ec1686bc23947d232084caa6809f
422
py
Python
example/test.py
long-gong/libbloom-wrapper
628f8ce11a6708d53bb56104182909ca40951f4f
[ "BSD-2-Clause" ]
null
null
null
example/test.py
long-gong/libbloom-wrapper
628f8ce11a6708d53bb56104182909ca40951f4f
[ "BSD-2-Clause" ]
null
null
null
example/test.py
long-gong/libbloom-wrapper
628f8ce11a6708d53bb56104182909ca40951f4f
[ "BSD-2-Clause" ]
null
null
null
from pybloom import BloomFilter if __name__ == '__main__': total_items = 9585058 error = 0.01 bf = BloomFilter(capacity=total_items, error_rate=error) for i in range(total_items): bf.add(i) cf = 0 ct = 0 for i in range(total_items, 2*total_items): if i in bf: c...
22.210526
60
0.566351
0
0
0
0
0
0
0
0
37
0.087678
2718f33aa7d3ea7dfd6692935997031e9e47c7ff
397
py
Python
ifcbdb/dashboard/migrations/0033_dataset_doi.py
veot/ifcbdb
427be36d92ca3c2dc6c8c10aaba94fcadc7cc93e
[ "MIT" ]
4
2019-05-23T13:38:36.000Z
2021-02-25T23:08:24.000Z
ifcbdb/dashboard/migrations/0033_dataset_doi.py
veot/ifcbdb
427be36d92ca3c2dc6c8c10aaba94fcadc7cc93e
[ "MIT" ]
313
2019-05-14T19:43:17.000Z
2022-03-21T14:40:15.000Z
ifcbdb/dashboard/migrations/0033_dataset_doi.py
veot/ifcbdb
427be36d92ca3c2dc6c8c10aaba94fcadc7cc93e
[ "MIT" ]
3
2020-10-26T05:23:04.000Z
2021-07-22T09:54:56.000Z
# Generated by Django 2.1.7 on 2019-10-31 16:30 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dashboard', '0032_auto_20191008_2022'), ] operations = [ migrations.AddField( model_name='dataset', name='doi', ...
20.894737
63
0.602015
304
0.765743
0
0
0
0
0
0
97
0.244332
271c49cbaa02490060b18e56f8f7193420d20ee7
2,411
py
Python
src/utils/roles.py
dciborow/SubscriptionPolicy
100718bca552fb92edcb1867a94aba1f2d131edc
[ "MIT" ]
null
null
null
src/utils/roles.py
dciborow/SubscriptionPolicy
100718bca552fb92edcb1867a94aba1f2d131edc
[ "MIT" ]
null
null
null
src/utils/roles.py
dciborow/SubscriptionPolicy
100718bca552fb92edcb1867a94aba1f2d131edc
[ "MIT" ]
null
null
null
from .cmdline import CmdUtils class AzRole: def __init__(self): self.subscription = None self.id = None self.name = None self.principalId = None self.principalName = None self.principalType = None self.roleDefinitionName = None self.roleDefinitionId ...
26.788889
106
0.520116
2,375
0.985068
0
0
1,319
0.547076
0
0
285
0.118208
271ca124718f33d6bf24a7362d654f72b7d37716
950
py
Python
babyonboard/api/migrations/0005_auto_20171124_1824.py
BabyOnBoard/BabyOnBoard-API
eef34bf4e9649409a3158d6826432acb040afa32
[ "MIT" ]
null
null
null
babyonboard/api/migrations/0005_auto_20171124_1824.py
BabyOnBoard/BabyOnBoard-API
eef34bf4e9649409a3158d6826432acb040afa32
[ "MIT" ]
10
2017-11-23T18:28:11.000Z
2021-06-10T19:53:06.000Z
babyonboard/api/migrations/0005_auto_20171124_1824.py
BabyOnBoard/BabyOnBoard-API
eef34bf4e9649409a3158d6826432acb040afa32
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-11-24 18:24 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0004_babycrib'), ] operations = [ migrations.CreateModel( ...
31.666667
169
0.566316
792
0.833684
0
0
0
0
0
0
222
0.233684
271d8ca306320152e2b945243d46ba85a77910e7
1,880
py
Python
harmoni_actuators/harmoni_speaker/test/unittest_speaker.py
interaction-lab/HARMONI
9c88019601a983a1739744919a95247a997d3bb1
[ "MIT" ]
7
2020-09-02T06:31:21.000Z
2022-02-18T21:16:44.000Z
harmoni_actuators/harmoni_speaker/test/unittest_speaker.py
micolspitale93/HARMONI
cf6a13fb85e3efb4e421dbfd4555359c0a04acaa
[ "MIT" ]
61
2020-05-15T16:46:32.000Z
2021-07-28T17:44:49.000Z
harmoni_actuators/harmoni_speaker/test/unittest_speaker.py
micolspitale93/HARMONI
cf6a13fb85e3efb4e421dbfd4555359c0a04acaa
[ "MIT" ]
3
2020-10-05T23:01:29.000Z
2022-03-02T11:53:34.000Z
#!/usr/bin/env python3 PKG = 'test_harmoni_speaker' # Common Imports import unittest, rospy, rospkg, roslib, sys #from unittest.mock import Mock, patch # Specific Imports from actionlib_msgs.msg import GoalStatus from harmoni_common_msgs.msg import harmoniAction, harmoniFeedback, harmoniResult from harmoni_common_lib...
35.471698
95
0.710106
1,083
0.576064
0
0
0
0
0
0
686
0.364894
271fa52916c14e0243668b5ba4593d20238992fd
3,996
py
Python
ExCon/explainer.py
DarrenZhang01/ExCon
2467c2fa8c0c52edaf54091d2bfecd132eeae594
[ "Apache-2.0" ]
17
2021-11-30T03:50:24.000Z
2022-01-16T10:58:07.000Z
ExCon/explainer.py
DarrenZhang01/ExCon
2467c2fa8c0c52edaf54091d2bfecd132eeae594
[ "Apache-2.0" ]
1
2021-12-04T02:35:59.000Z
2021-12-05T00:53:35.000Z
ExCon/explainer.py
DarrenZhang01/ExCon
2467c2fa8c0c52edaf54091d2bfecd132eeae594
[ "Apache-2.0" ]
null
null
null
""" An utility class for initializing different explainer objects. """ from torch import nn import numpy as np from captum.attr import DeepLift, IntegratedGradients, ShapleyValueSampling, LayerGradCam, Saliency from captum.attr._utils.attribution import LayerAttribution class Explainer(nn.Module): def __init__(s...
47.571429
108
0.567067
3,721
0.931181
0
0
0
0
0
0
455
0.113864
271fe8cb4638bb263355e0c702a01f25cb73e941
2,188
py
Python
django/www/MeteoGaliciaDB/registros/views.py
hugo-lorenzo-mato/Meteo-Galicia-DB
3dd52534c16216de5f25cd40877d2facc7cffe24
[ "MIT" ]
null
null
null
django/www/MeteoGaliciaDB/registros/views.py
hugo-lorenzo-mato/Meteo-Galicia-DB
3dd52534c16216de5f25cd40877d2facc7cffe24
[ "MIT" ]
null
null
null
django/www/MeteoGaliciaDB/registros/views.py
hugo-lorenzo-mato/Meteo-Galicia-DB
3dd52534c16216de5f25cd40877d2facc7cffe24
[ "MIT" ]
1
2021-04-27T18:37:41.000Z
2021-04-27T18:37:41.000Z
from django.shortcuts import render from . import forms from django.core.urlresolvers import reverse from django.contrib.auth.decorators import login_required from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth import authenticate,login,logout # Create your views here. @login_required...
33.151515
136
0.652194
0
0
0
0
230
0.104975
0
0
338
0.154267
2721ab7a1f61ce9281bd09517b3b6a6328c17752
708
py
Python
geotrek/outdoor/admin.py
numahell/Geotrek-admin
e279875b0b06ef60928c049d51533f76716c902a
[ "BSD-2-Clause" ]
1
2019-12-11T11:04:05.000Z
2019-12-11T11:04:05.000Z
geotrek/outdoor/admin.py
numahell/Geotrek-admin
e279875b0b06ef60928c049d51533f76716c902a
[ "BSD-2-Clause" ]
null
null
null
geotrek/outdoor/admin.py
numahell/Geotrek-admin
e279875b0b06ef60928c049d51533f76716c902a
[ "BSD-2-Clause" ]
null
null
null
from django.conf import settings from django.contrib import admin from geotrek.common.admin import MergeActionMixin from geotrek.outdoor.models import Practice, SiteType if 'modeltranslation' in settings.INSTALLED_APPS: from modeltranslation.admin import TranslationAdmin else: TranslationAdmin = admin.ModelAdm...
28.32
56
0.75565
327
0.461864
0
0
379
0.535311
0
0
74
0.10452
2723629eca545ab7058f06d730db5b5baa33b30a
3,516
py
Python
gdrive.py
abwilf/Factorized
64e7d2a54bbfbc8b1c5a2130f2b941c376402fe6
[ "MIT" ]
null
null
null
gdrive.py
abwilf/Factorized
64e7d2a54bbfbc8b1c5a2130f2b941c376402fe6
[ "MIT" ]
null
null
null
gdrive.py
abwilf/Factorized
64e7d2a54bbfbc8b1c5a2130f2b941c376402fe6
[ "MIT" ]
null
null
null
from __future__ import print_function import os.path from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request from google.oauth2.credentials import Credentials from apiclient.http import MediaFileUpload import gdown def gdrive...
45.662338
455
0.71587
0
0
0
0
0
0
0
0
2,125
0.60438
2725c4c1b926b1b3e672d43af2ed2535f3dcf9a6
705
py
Python
web_ext/sseq_gui/tests/test_load.py
hoodmane/sseq
0f19a29c95486a629b0d054c703ca0a58999ae97
[ "Apache-2.0", "MIT" ]
7
2021-04-22T04:06:09.000Z
2022-01-25T04:05:49.000Z
web_ext/sseq_gui/tests/test_load.py
hoodmane/sseq
0f19a29c95486a629b0d054c703ca0a58999ae97
[ "Apache-2.0", "MIT" ]
68
2020-03-21T22:37:24.000Z
2022-03-31T02:51:35.000Z
web_ext/sseq_gui/tests/test_load.py
hoodmane/sseq
0f19a29c95486a629b0d054c703ca0a58999ae97
[ "Apache-2.0", "MIT" ]
5
2021-02-17T06:37:43.000Z
2022-02-01T03:53:22.000Z
import pytest from pathlib import Path @pytest.mark.parametrize("module", ["S_2", "S_3", "C2v14"]) def test_load(driver, module: str): driver.go("/") driver.driver.find_element_by_css_selector(f'a[data="{module}"]').click() driver.wait_complete() driver.check_svg(f"{module}_load.svg") @pytest.mark.p...
30.652174
85
0.673759
0
0
0
0
660
0.93617
0
0
181
0.256738
2726aff9726f405364127c08f5f1c2bf93aa5997
91
py
Python
src/rocket/stage2/src/errors/src/SensorOverload.py
proballstar/atlas
6e4eb36b7e43e750dbb281c2051439198c82f296
[ "MIT" ]
null
null
null
src/rocket/stage2/src/errors/src/SensorOverload.py
proballstar/atlas
6e4eb36b7e43e750dbb281c2051439198c82f296
[ "MIT" ]
null
null
null
src/rocket/stage2/src/errors/src/SensorOverload.py
proballstar/atlas
6e4eb36b7e43e750dbb281c2051439198c82f296
[ "MIT" ]
null
null
null
def init(): # @TODO(aaronhma): UPDATE def catchErrors(): # @TODO(aaronhma): UPDATE
18.2
29
0.626374
0
0
0
0
0
0
0
0
50
0.549451
2727cc439b34121ae42c9bebd5ffc173f65fc3c6
5,905
py
Python
foresight/environment/environment_info_support.py
thundra-io/thundra-agent-python
448e18c17d8730c381b2e2a773782cf80c5a7cfb
[ "Apache-2.0" ]
15
2021-07-28T08:03:50.000Z
2021-11-08T08:36:06.000Z
foresight/environment/environment_info_support.py
thundra-io/thundra-agent-python
448e18c17d8730c381b2e2a773782cf80c5a7cfb
[ "Apache-2.0" ]
1
2021-08-08T07:45:45.000Z
2021-08-08T12:41:36.000Z
foresight/environment/environment_info_support.py
thundra-io/thundra-agent-python
448e18c17d8730c381b2e2a773782cf80c5a7cfb
[ "Apache-2.0" ]
3
2021-08-07T14:19:23.000Z
2021-12-08T15:35:40.000Z
import os, logging from foresight.environment.git.git_helper import GitHelper from foresight.environment.git.git_env_info_provider import GitEnvironmentInfoProvider from foresight.environment.github.github_environment_info_provider import GithubEnvironmentInfoProvider from foresight.environment.gitlab.gitlab_environmen...
60.255102
150
0.720745
4,825
0.817104
0
0
3,454
0.584928
0
0
1,613
0.273158
272ad5e735d859c51d641dfdb613ff9296e5cbee
660
py
Python
Problem_Solving/Algorithms/Warmup/6_Plus_Minus/Solution.py
CFLSousa/HackerRank
29ed039634e88d72981b2ecd619e5c65d37111e4
[ "MIT" ]
null
null
null
Problem_Solving/Algorithms/Warmup/6_Plus_Minus/Solution.py
CFLSousa/HackerRank
29ed039634e88d72981b2ecd619e5c65d37111e4
[ "MIT" ]
null
null
null
Problem_Solving/Algorithms/Warmup/6_Plus_Minus/Solution.py
CFLSousa/HackerRank
29ed039634e88d72981b2ecd619e5c65d37111e4
[ "MIT" ]
null
null
null
import math import os import random import re import sys def plusMinus(arr): posNums=0.0 negNums=0.0 zeroNums=0.0 posFraction=0.0 negFraction=0.0 zeroFraction=0.0 arrLen=len(arr) for i in range(arrLen): if arr[i]==0: zeroNums+=1 elif arr[i]>0: po...
18.333333
71
0.59697
0
0
0
0
0
0
0
0
69
0.104545
272af550504e85a1489b88397788f6d4d8f037c0
1,403
py
Python
golang/godoc.py
nlfiedler/devscripts
122c7b1424b457d7d5499552065da83d76f6b922
[ "BSD-3-Clause" ]
null
null
null
golang/godoc.py
nlfiedler/devscripts
122c7b1424b457d7d5499552065da83d76f6b922
[ "BSD-3-Clause" ]
1
2015-03-04T15:01:08.000Z
2015-03-04T15:01:08.000Z
golang/godoc.py
nlfiedler/devscripts
122c7b1424b457d7d5499552065da83d76f6b922
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 """Start the godoc server and open the docs in a browser window. This uses the 'open' command to open a web browser. """ import argparse import http import http.client import subprocess import time def is_ready(host, port): """Check if the web server returns an OK status.""" conn = h...
26.980769
88
0.639344
0
0
0
0
0
0
0
0
571
0.406985
272b0f6329b631e0b33f8623045bec69644ef0db
19,371
py
Python
mgsa/evaluate_repeats.py
supernifty/mgsa
5f950f8c9c2bf0439a100a2348f1aef478e32934
[ "MIT" ]
2
2016-11-02T20:27:00.000Z
2019-10-23T08:14:44.000Z
mgsa/evaluate_repeats.py
supernifty/mgsa
5f950f8c9c2bf0439a100a2348f1aef478e32934
[ "MIT" ]
null
null
null
mgsa/evaluate_repeats.py
supernifty/mgsa
5f950f8c9c2bf0439a100a2348f1aef478e32934
[ "MIT" ]
null
null
null
import glob import os import random import re import sys import numpy as np import bio import config def align( read, siteA, siteB, mapper_name, rm=True, alt_pos=1000, correct_pos=3000, single_insertion=False ): prefix = 'tmp/tmp%i' % random.randint(1, 1e9) # make fastq fastq = '%s.fastq' % prefix with open...
45.153846
285
0.58918
0
0
0
0
0
0
0
0
6,089
0.314336
272ddcd0024554a1e6ae6a4493df8c6406ed30b3
195
py
Python
scrape_etsy/exceptions.py
philjnicholls/etsy-scrape
d7acb69dc71428325e02859bc7c9d860bf409db4
[ "MIT" ]
3
2020-12-17T10:00:54.000Z
2021-10-30T09:23:55.000Z
scrape_etsy/exceptions.py
philjnicholls/etsy-scrape
d7acb69dc71428325e02859bc7c9d860bf409db4
[ "MIT" ]
null
null
null
scrape_etsy/exceptions.py
philjnicholls/etsy-scrape
d7acb69dc71428325e02859bc7c9d860bf409db4
[ "MIT" ]
null
null
null
class MissingValueException(Exception): pass class ProductScrapeException(Exception): pass class GetPageException(Exception): pass class NoResultsException(Exception): pass
13
40
0.764103
185
0.948718
0
0
0
0
0
0
0
0
272e2592cfb00d569450c8c8739564bdd4f5c46a
393
py
Python
alembic/versions/e3dda7be6a95_extend_user_table.py
paul-wolf/bolo
936e73d80217a0fdbbd983cb1f775686809e1d25
[ "BSD-3-Clause" ]
null
null
null
alembic/versions/e3dda7be6a95_extend_user_table.py
paul-wolf/bolo
936e73d80217a0fdbbd983cb1f775686809e1d25
[ "BSD-3-Clause" ]
null
null
null
alembic/versions/e3dda7be6a95_extend_user_table.py
paul-wolf/bolo
936e73d80217a0fdbbd983cb1f775686809e1d25
[ "BSD-3-Clause" ]
null
null
null
"""Extend user table Revision ID: e3dda7be6a95 Revises: Create Date: 2021-06-07 11:43:45.144088 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = "e3dda7be6a95" down_revision = None branch_labels = None depends_on = None def upgrade(): op.add_column("auth_...
15.72
68
0.727735
0
0
0
0
0
0
0
0
176
0.447837
272f0cf0754b945f03c4fe2b4a5977930d84644b
1,752
py
Python
7_kyu/grow_of_population.py
dimishpatriot/way_on_the_highway
4865db946632b7bd3d74509a20a307841c02169d
[ "MIT" ]
null
null
null
7_kyu/grow_of_population.py
dimishpatriot/way_on_the_highway
4865db946632b7bd3d74509a20a307841c02169d
[ "MIT" ]
null
null
null
7_kyu/grow_of_population.py
dimishpatriot/way_on_the_highway
4865db946632b7bd3d74509a20a307841c02169d
[ "MIT" ]
null
null
null
"""In a small town the population is p0 = 1000 at the beginning of a year. The population regularly increases by 2 percent per year and moreover 50 new inhabitants per year come to live in the town. How many years does the town need to see its population greater or equal to p = 1200 inhabitants? 1) At the end of the f...
30.736842
97
0.673516
0
0
0
0
350
0.199772
0
0
1,165
0.664954
273038458cb6e72fc3b79b5c6ab692951f85b0c3
4,144
py
Python
pysimplegui/DemoPrograms/Demo_Multithreaded_Long_Task_Simple.py
konsan1101/py-etc
bcca13119b0d2453866988404fd1c4976f55d4d5
[ "MIT" ]
null
null
null
pysimplegui/DemoPrograms/Demo_Multithreaded_Long_Task_Simple.py
konsan1101/py-etc
bcca13119b0d2453866988404fd1c4976f55d4d5
[ "MIT" ]
2
2020-06-06T00:30:56.000Z
2021-06-10T22:30:37.000Z
pysimplegui/DemoPrograms/Demo_Multithreaded_Long_Task_Simple.py
konsan1101/py-etc
bcca13119b0d2453866988404fd1c4976f55d4d5
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import threading import time import PySimpleGUI as sg """ DESIGN PATTERN - Multithreaded Long Tasks GUI using shared global variables Presents one method for running long-running operations in a PySimpleGUI environment. The PySimpleGUI code, and thus the underlying GUI framework, ru...
41.029703
138
0.625483
0
0
0
0
0
0
0
0
2,175
0.524855
27315ae22ee7a238a46f0e67142e8517f30c8852
1,838
py
Python
sidekick/tests/test_import_members.py
cybera/netbox-sidekick
ec5e2080513d088e2604d8755f34b1d2592b95dd
[ "Apache-2.0" ]
3
2020-09-07T12:14:31.000Z
2021-11-11T11:46:43.000Z
sidekick/tests/test_import_members.py
cybera/netbox-sidekick
ec5e2080513d088e2604d8755f34b1d2592b95dd
[ "Apache-2.0" ]
null
null
null
sidekick/tests/test_import_members.py
cybera/netbox-sidekick
ec5e2080513d088e2604d8755f34b1d2592b95dd
[ "Apache-2.0" ]
null
null
null
from io import StringIO from django.core.management import call_command import os from . import utils class ImportMemberTest(utils.BaseTest): def test_dry_run(self): dir_path = os.path.dirname(os.path.realpath(__file__)) csv = f"{dir_path}/../fixtures/members.csv" out = StringIO() ...
48.368421
114
0.699129
1,731
0.941785
0
0
0
0
0
0
802
0.436344
27315e1db1e7700a9d36cef574e1deed8416f995
1,385
py
Python
uselessAI.py
Arihant25/beginner-python-projects
43c6489b6973522246073f2187a682487f1684c1
[ "Unlicense" ]
1
2020-06-11T06:10:08.000Z
2020-06-11T06:10:08.000Z
uselessAI.py
Arihant25/beginner-python-projects
43c6489b6973522246073f2187a682487f1684c1
[ "Unlicense" ]
1
2021-07-16T03:50:09.000Z
2021-07-16T04:00:35.000Z
uselessAI.py
Arihant25/beginner-python-projects
43c6489b6973522246073f2187a682487f1684c1
[ "Unlicense" ]
1
2021-07-16T03:28:39.000Z
2021-07-16T03:28:39.000Z
def greet(bot_name, birth_year): print('Hello! My name is ' + bot_name + '.') print('I was created in ' + birth_year + '.') def remind_name(): print('Please, remind me your name.') name = input() print('What a great name you have, ' + name + '!') def guess_age(): print('Let me guess your age...
23.083333
83
0.581949
0
0
0
0
0
0
0
0
627
0.452708
2732112e3d71d0c3a2a906460b62d43c48b4fb95
241
py
Python
pineboolib/fllegacy/aqsobjects/aqsmtpclient.py
juanjosepablos/pineboo
f6ce515aec6e0139821bb9c1d62536d9fb50dae4
[ "MIT" ]
2
2015-09-19T16:54:49.000Z
2016-09-12T08:06:29.000Z
pineboolib/fllegacy/aqsobjects/aqsmtpclient.py
Aulla/pineboo
3ad6412d365a6ad65c3bb2bdc03f5798d7c37004
[ "MIT" ]
36
2017-11-05T21:13:47.000Z
2020-08-26T15:56:15.000Z
pineboolib/fllegacy/aqsobjects/aqsmtpclient.py
deavid/pineboo
acc96ab6d5b8bb182990af6dea4bf0986af15549
[ "MIT" ]
9
2015-01-15T18:15:42.000Z
2019-05-05T18:53:00.000Z
# -*- coding: utf-8 -*- """ AQSmtpClient Module. This class provides utilities to use a Smtp client. """ from pineboolib.fllegacy.flsmtpclient import FLSmtpClient class AQSmtpClient(FLSmtpClient): """AQSmtpClient Class.""" pass
16.066667
57
0.713693
73
0.302905
0
0
0
0
0
0
129
0.53527
2732966b89290e6982d4e90149bce48ffa294e63
871
py
Python
assistant/core/views.py
kapiak/ware_prod
ae61256890834c434d2e38cc2ccacf00b638665a
[ "MIT" ]
null
null
null
assistant/core/views.py
kapiak/ware_prod
ae61256890834c434d2e38cc2ccacf00b638665a
[ "MIT" ]
null
null
null
assistant/core/views.py
kapiak/ware_prod
ae61256890834c434d2e38cc2ccacf00b638665a
[ "MIT" ]
null
null
null
from typing import List from django.contrib.auth.mixins import LoginRequiredMixin from django.views.generic import TemplateView from assistant.orders.models import Order from assistant.products.models import Product class DashboardViewMixin(LoginRequiredMixin): title: str = None breadcrumbs: List = [] ...
26.393939
62
0.69116
647
0.742824
0
0
0
0
0
0
46
0.052813
27346ed4d6dc889abd1e3fa083354a32e52ae98a
2,024
py
Python
chmap/examples/defunct/EUV_map_query_options.py
predsci/CHD
35f29d1b62861f4ffed57b38d18689b282664bcf
[ "Apache-2.0" ]
3
2021-06-29T00:23:47.000Z
2021-09-17T18:29:05.000Z
chmap/examples/defunct/EUV_map_query_options.py
predsci/CHD
35f29d1b62861f4ffed57b38d18689b282664bcf
[ "Apache-2.0" ]
null
null
null
chmap/examples/defunct/EUV_map_query_options.py
predsci/CHD
35f29d1b62861f4ffed57b38d18689b282664bcf
[ "Apache-2.0" ]
1
2021-12-08T06:26:18.000Z
2021-12-08T06:26:18.000Z
import os import datetime import pandas as pd from chmap.settings.app import App from chmap.database.db_classes import * from chmap.database.deprecated.db_funs import init_db_conn from sqlalchemy.orm import joinedload # Assume that we are using images from the 'reference_data' setup supplied with repo # manually s...
37.481481
125
0.76334
0
0
0
0
0
0
0
0
442
0.218379
27376a84a1f1ba1faffcc4132873b55e2e8ca9cd
308
py
Python
hasensor/sensors/announcer.py
eblanton/hasensor
4421bf939f0904fc85ecbdfbd404dabe33c1c443
[ "BSD-2-Clause" ]
1
2020-01-02T21:53:22.000Z
2020-01-02T21:53:22.000Z
hasensor/sensors/announcer.py
eblanton/hasensor
4421bf939f0904fc85ecbdfbd404dabe33c1c443
[ "BSD-2-Clause" ]
null
null
null
hasensor/sensors/announcer.py
eblanton/hasensor
4421bf939f0904fc85ecbdfbd404dabe33c1c443
[ "BSD-2-Clause" ]
null
null
null
from ..sensor import ArgDict, Sensor class Announcer(Sensor): _argtypes: ArgDict = { "value": str } def __init__(self, value: str = "ON", **kwargs): super().__init__(**kwargs) self._value = value def fire(self): self._loop.publish(self.name, self._value)
19.25
52
0.594156
268
0.87013
0
0
0
0
0
0
11
0.035714
2738f4224e35bab74695218b88d121cd720f88b1
85,669
py
Python
post_optimization_studies/mad_analyses/ma100MeV_L1pt8-2pt4TeV_deta2pt6/Output/Histos/MadAnalysis5job_0/selection_11.py
sheride/axion_pheno
7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5
[ "MIT" ]
null
null
null
post_optimization_studies/mad_analyses/ma100MeV_L1pt8-2pt4TeV_deta2pt6/Output/Histos/MadAnalysis5job_0/selection_11.py
sheride/axion_pheno
7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5
[ "MIT" ]
null
null
null
post_optimization_studies/mad_analyses/ma100MeV_L1pt8-2pt4TeV_deta2pt6/Output/Histos/MadAnalysis5job_0/selection_11.py
sheride/axion_pheno
7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5
[ "MIT" ]
null
null
null
def selection_11(): # Library import import numpy import matplotlib import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec # Library version matplotlib_version = matplotlib.__version__ numpy_version = numpy.__version__ # Histo binning xBinning = numpy.li...
392.977064
6,435
0.760824
0
0
0
0
0
0
0
0
2,972
0.034692
27397a994d354b44efa7e09c80fd506b9289236b
1,286
py
Python
app/routers/users.py
Austinstevesk/fast-api-crud-and-user-authentication
17e01e5fcaea2a0c3fa3dd65edfaee8414ff831e
[ "Apache-2.0" ]
null
null
null
app/routers/users.py
Austinstevesk/fast-api-crud-and-user-authentication
17e01e5fcaea2a0c3fa3dd65edfaee8414ff831e
[ "Apache-2.0" ]
null
null
null
app/routers/users.py
Austinstevesk/fast-api-crud-and-user-authentication
17e01e5fcaea2a0c3fa3dd65edfaee8414ff831e
[ "Apache-2.0" ]
null
null
null
from fastapi import FastAPI, status, HTTPException, Response, APIRouter, Depends from sqlalchemy.orm import Session from typing import List from .. import schemas, models, utils #You can move up 2 steps using .. from ..database import get_db router = APIRouter( prefix="/users", tags=['users'] ) @router.post...
29.906977
100
0.709953
0
0
0
0
972
0.755832
0
0
137
0.106532
273b0739f92587e2927e090ad5eb2c6345702f86
7,295
py
Python
src/news/collector.py
aibazhang/multitrue-bot
189c5163010269eec57ae48f8e9d08d22ed5fcb8
[ "MIT" ]
null
null
null
src/news/collector.py
aibazhang/multitrue-bot
189c5163010269eec57ae48f8e9d08d22ed5fcb8
[ "MIT" ]
null
null
null
src/news/collector.py
aibazhang/multitrue-bot
189c5163010269eec57ae48f8e9d08d22ed5fcb8
[ "MIT" ]
null
null
null
import os import requests import json import pathlib from abc import ABCMeta, abstractmethod from .news import News, print_format_markdown, print_format_telebot KEY_PATH = pathlib.Path(os.path.dirname(__file__), "../..") class NewsCollector(metaclass=ABCMeta): @abstractmethod def format_news(self): ...
29.534413
110
0.580123
7,059
0.967384
0
0
813
0.111416
0
0
1,108
0.151843
273c7d9230855a61bacc38d30734d8a53bab556c
982,074
pyt
Python
models/mnist_FNN_1.pyt
CAS-LRJ/DeepPAC
75059572c23474d32a762aca5640f4d799fd992a
[ "Apache-2.0" ]
null
null
null
models/mnist_FNN_1.pyt
CAS-LRJ/DeepPAC
75059572c23474d32a762aca5640f4d799fd992a
[ "Apache-2.0" ]
null
null
null
models/mnist_FNN_1.pyt
CAS-LRJ/DeepPAC
75059572c23474d32a762aca5640f4d799fd992a
[ "Apache-2.0" ]
null
null
null
Normalize mean=[0.1307] std=[0.3081] ReLU [[-0.02289694733917713, -0.0015768347075209022, -0.007779418025165796, -0.018946761265397072, 0.009356001392006874, -0.01212845928966999, -0.019499225541949272, 0.014134012162685394, -0.022251857444643974, 0.03429203853011131, 0.007956764660775661, 0.01797821931540966, 0.0398...
70,148.142857
860,281
0.8397
0
0
0
0
0
0
0
0
0
0
273c940a6cfe38710caeba8144fda95ba8e580c5
9,282
py
Python
scheduler/generation.py
richplane/PyREmatcher
93df987478849e5905f0ee5c9ee79801479acb1e
[ "Apache-2.0" ]
1
2020-03-10T14:35:32.000Z
2020-03-10T14:35:32.000Z
scheduler/generation.py
richplane/PyREmatcher
93df987478849e5905f0ee5c9ee79801479acb1e
[ "Apache-2.0" ]
null
null
null
scheduler/generation.py
richplane/PyREmatcher
93df987478849e5905f0ee5c9ee79801479acb1e
[ "Apache-2.0" ]
null
null
null
# Renewable generation at Findhorn from windpowerlib import WindFarm from windpowerlib import WindTurbine from windpowerlib import WindTurbineCluster from windpowerlib.turbine_cluster_modelchain import TurbineClusterModelChain import pvlib from pvlib.pvsystem import PVSystem from pvlib.location import Location from pvl...
34
88
0.607735
8,657
0.932665
0
0
0
0
0
0
3,155
0.339905
273de09788e8d36ac29db8f66c63f35b9eb059df
37
py
Python
tests/components/minio/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/components/minio/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
tests/components/minio/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Tests for the minio component."""
18.5
36
0.675676
0
0
0
0
0
0
0
0
36
0.972973
273de3624cb2656a5b09bd44464400c778b4cc44
213
py
Python
setup.py
ravi-bade/hive-ML
bd724580bf09d992a838da57f9fd5142bab4e1e5
[ "MIT" ]
null
null
null
setup.py
ravi-bade/hive-ML
bd724580bf09d992a838da57f9fd5142bab4e1e5
[ "MIT" ]
null
null
null
setup.py
ravi-bade/hive-ML
bd724580bf09d992a838da57f9fd5142bab4e1e5
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='Hive-ml project of OneApp', author='Ravikant Bade', license='MIT', )
19.363636
44
0.661972
0
0
0
0
0
0
0
0
59
0.276995
273e3b061e019a5cb896032af82de6f73be47078
1,985
py
Python
app.py
twitterdev/getting-started-with-dash
f0c81a03d0f31ed787a90492d2412c9fe48eeb6d
[ "Apache-2.0" ]
2
2022-03-13T22:54:16.000Z
2022-03-28T02:37:48.000Z
app.py
twitterdev/getting-started-with-dash
f0c81a03d0f31ed787a90492d2412c9fe48eeb6d
[ "Apache-2.0" ]
null
null
null
app.py
twitterdev/getting-started-with-dash
f0c81a03d0f31ed787a90492d2412c9fe48eeb6d
[ "Apache-2.0" ]
null
null
null
import dash import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html import plotly.express as px import pandas as pd import os import requests app = dash.Dash(external_stylesheets=[dbc.themes.JOURNAL]) server = app.server search_url = "https://api.twitter.com/2/t...
26.824324
131
0.665995
0
0
0
0
0
0
0
0
588
0.296222