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
ad3f016195bbebe749ea93e6dd6bbfeb76dd0048
1,376
py
Python
client/examples/cycle-cards.py
spoore1/smart-card-removinator
dfc42e0ab5cea45c2ba299c10e7bc3b5857ddba2
[ "Apache-2.0" ]
26
2016-10-14T02:33:42.000Z
2022-02-22T01:44:28.000Z
client/examples/cycle-cards.py
spoore1/smart-card-removinator
dfc42e0ab5cea45c2ba299c10e7bc3b5857ddba2
[ "Apache-2.0" ]
2
2018-03-18T03:06:52.000Z
2021-03-21T10:14:17.000Z
client/examples/cycle-cards.py
spoore1/smart-card-removinator
dfc42e0ab5cea45c2ba299c10e7bc3b5857ddba2
[ "Apache-2.0" ]
8
2017-04-26T01:54:07.000Z
2021-09-21T14:14:49.000Z
#!/usr/bin/env python from removinator import removinator import subprocess # This example cycles through each card slot in the Removinator. Any # slots that have a card present will then have the certificates on the # card printed out using the pkcs15-tool utility, which is provided by # the OpenSC project. # # Exa...
32.761905
74
0.667151
0
0
0
0
0
0
0
0
711
0.516715
ad3f3ba0c8f945d938221059aed3b9fa065e26c7
716
py
Python
PDFParser/Client.py
NekuHarp/TPScrum1
bf5d4cd4353066517077bd4116b523b3ce1f99ea
[ "Apache-2.0" ]
2
2018-12-14T10:57:02.000Z
2019-11-23T14:20:55.000Z
PDFParser/Client.py
NekuHarp/TPScrum1
bf5d4cd4353066517077bd4116b523b3ce1f99ea
[ "Apache-2.0" ]
null
null
null
PDFParser/Client.py
NekuHarp/TPScrum1
bf5d4cd4353066517077bd4116b523b3ce1f99ea
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from . import Defs as _D from .Parser import Parser as _P class Client: def __init__(self): self.id = 4 self.p = _P() pass def doXML(self, folder): _EOUT = 'xml' print(_EOUT, folder) def doTXT(self, folder): _EOUT = 'txt' pr...
21.058824
84
0.52095
631
0.881285
0
0
0
0
0
0
62
0.086592
ad3f53ef596ae070ce4e4844884650cb4e2cce56
1,425
py
Python
tree/binary/02.py
zlikun-lang/python-data-structure-and-algorithm
f6bd97e1cfb142baa804113c654ab32144c34175
[ "Apache-2.0" ]
null
null
null
tree/binary/02.py
zlikun-lang/python-data-structure-and-algorithm
f6bd97e1cfb142baa804113c654ab32144c34175
[ "Apache-2.0" ]
null
null
null
tree/binary/02.py
zlikun-lang/python-data-structure-and-algorithm
f6bd97e1cfb142baa804113c654ab32144c34175
[ "Apache-2.0" ]
null
null
null
class BinaryTree: def __init__(self, data, left=None, right=None): self.data = data self.left = left self.right = right def insert_left(self, data): if self.left is None: self.left = BinaryTree(data) else: self.left = BinaryTree(data, left=self.l...
23.75
69
0.619649
803
0.544407
0
0
0
0
0
0
141
0.095593
ad407d34582125c1bd24f6cfc57ab71b5fbb80c8
1,705
py
Python
tmp/keyword_get.py
mingyuexc/huluxia_woman_meitui
f6706947dbeb6cdd9e39b08ad1fcf2fc459ecb0d
[ "Apache-2.0" ]
3
2021-01-19T02:41:54.000Z
2021-05-04T08:23:18.000Z
tmp/keyword_get.py
mingyuexc/huluxia_woman_meitui
f6706947dbeb6cdd9e39b08ad1fcf2fc459ecb0d
[ "Apache-2.0" ]
null
null
null
tmp/keyword_get.py
mingyuexc/huluxia_woman_meitui
f6706947dbeb6cdd9e39b08ad1fcf2fc459ecb0d
[ "Apache-2.0" ]
1
2021-04-14T10:05:32.000Z
2021-04-14T10:05:32.000Z
#!/usr/bin/python3 # coding = utf-8 """ @author:m1n9yu3 @file:keyword_get.py @time:2021/01/13 """ from get_data import * import threading from urllib import parse def multi_thread(idlist, path): """线程控制 , 一次跑 1000 个线程""" # for i in range(start_id, step+start_id): # parse_json(url, start_id+i) thr...
27.063492
129
0.622874
0
0
0
0
0
0
0
0
802
0.4493
ad43350b2da704f794c52e0d66b5d6a868f93d05
388
py
Python
Proctor_Brad/Assignments/bubble sort.py
webguru001/Python-Django-Web
6264bc4c90ef1432ba0902c76b567cf3caaae221
[ "MIT" ]
5
2019-05-17T01:30:02.000Z
2021-06-17T21:02:58.000Z
Proctor_Brad/Assignments/bubble sort.py
curest0x1021/Python-Django-Web
6264bc4c90ef1432ba0902c76b567cf3caaae221
[ "MIT" ]
null
null
null
Proctor_Brad/Assignments/bubble sort.py
curest0x1021/Python-Django-Web
6264bc4c90ef1432ba0902c76b567cf3caaae221
[ "MIT" ]
null
null
null
import random import time b = [] for x in range(0,100): b.append(int(random.random()*10000)) maximum = len(b) - 1 start_time = time.time() for i in range(0,maximum): for j in range(0,maximum): if(b[j] > b[j+1]): temp = b[j] b[j] = b[j+1] b[j+1] = temp maximum -= ...
20.421053
56
0.523196
0
0
0
0
0
0
0
0
20
0.051546
ad437b9b77502ea14c72a607a4c29fcf984906ad
1,863
py
Python
app/morocco/authentication.py
troydai/Morocco
b975d4f6813734a4c7b8e6c61669976389a27560
[ "MIT" ]
null
null
null
app/morocco/authentication.py
troydai/Morocco
b975d4f6813734a4c7b8e6c61669976389a27560
[ "MIT" ]
9
2017-07-11T08:17:27.000Z
2017-08-01T21:48:00.000Z
app/morocco/authentication.py
troydai/Morocco
b975d4f6813734a4c7b8e6c61669976389a27560
[ "MIT" ]
null
null
null
import flask_login from .application import app from .models import DbUser login_manager = flask_login.LoginManager() # pylint: disable=invalid-name login_manager.init_app(app) login_manager.user_loader(lambda user_id: DbUser.query.filter_by(id=user_id).first()) login_required = flask_login.login_required @login_ma...
27.397059
85
0.703167
0
0
0
0
1,535
0.82394
0
0
375
0.201288
ad45281e97f21d2403bb3011a6ec4b34ad957b3a
2,401
py
Python
src/pynwb/ndx_icephys_meta/io/icephys.py
oruebel/ndx-icephys-meta
c97ea4f0ff60ad05e173cca30b0c46b809727f89
[ "BSD-3-Clause-LBNL" ]
6
2020-04-15T14:28:29.000Z
2022-03-31T20:33:25.000Z
src/pynwb/ndx_icephys_meta/io/icephys.py
oruebel/ndx-icephys-meta
c97ea4f0ff60ad05e173cca30b0c46b809727f89
[ "BSD-3-Clause-LBNL" ]
55
2019-10-10T19:21:08.000Z
2021-07-21T03:02:29.000Z
src/pynwb/ndx_icephys_meta/io/icephys.py
oruebel/ndx-icephys-meta
c97ea4f0ff60ad05e173cca30b0c46b809727f89
[ "BSD-3-Clause-LBNL" ]
null
null
null
""" Module with ObjectMapper classes for the icephys-meta Container classes/neurodata_types """ from pynwb import register_map from pynwb.io.file import NWBFileMap from hdmf.common.io.table import DynamicTableMap from ndx_icephys_meta.icephys import ICEphysFile, AlignedDynamicTable @register_map(ICEphysFile) class IC...
47.078431
120
0.768013
2,050
0.853811
0
0
2,112
0.879633
0
0
1,024
0.426489
ad45360a92c7f02994ad544e2eb3f4433e8d7fb6
7,265
py
Python
plugin/AssemblerSPAdes/bin/RunAssembler.py
konradotto/TS
bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e
[ "Apache-2.0" ]
125
2015-01-22T05:43:23.000Z
2022-03-22T17:15:59.000Z
plugin/AssemblerSPAdes/bin/RunAssembler.py
konradotto/TS
bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e
[ "Apache-2.0" ]
59
2015-02-10T09:13:06.000Z
2021-11-11T02:32:38.000Z
plugin/AssemblerSPAdes/bin/RunAssembler.py
konradotto/TS
bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e
[ "Apache-2.0" ]
98
2015-01-17T01:25:10.000Z
2022-03-18T17:29:42.000Z
#!/usr/bin/env python import json import os import subprocess import sys def fileExistsAndNonEmpty(filename): if not os.path.exists(filename): return False return os.stat(filename).st_size > 0 class AssemblerRunner(object): def __init__(self, sample_id, sample_seq, bam_file): with open("st...
38.439153
87
0.599725
6,359
0.875292
0
0
0
0
0
0
1,910
0.262904
ad4606ad266b7b3db3e78f36d7d519b541e707cd
1,242
py
Python
log_utils.py
zheng-yanan/hierarchical-deep-generative-models
3a92d2ce69a51f4da55a18b09ca4c246f6f6ed43
[ "MIT" ]
1
2019-06-06T02:55:45.000Z
2019-06-06T02:55:45.000Z
log_utils.py
zheng-yanan/hierarchical-deep-generative-model
3a92d2ce69a51f4da55a18b09ca4c246f6f6ed43
[ "MIT" ]
null
null
null
log_utils.py
zheng-yanan/hierarchical-deep-generative-model
3a92d2ce69a51f4da55a18b09ca4c246f6f6ed43
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from __future__ import division from __future__ import absolute_import from __future__ import print_function import os import sys import logging def logger_fn(name, filepath, level = logging.DEBUG): """ Function for creating log manager Args: name: name for log manager filepath: file ...
25.875
107
0.711755
0
0
0
0
0
0
0
0
909
0.641949
ad46fd5c399e0415b0358814ed40f6bdf8278661
336
py
Python
api/types.py
ElPapi42/test-api
d7a68e8fadb6cbb6bf48e993e1df4898bedc6372
[ "MIT" ]
null
null
null
api/types.py
ElPapi42/test-api
d7a68e8fadb6cbb6bf48e993e1df4898bedc6372
[ "MIT" ]
null
null
null
api/types.py
ElPapi42/test-api
d7a68e8fadb6cbb6bf48e993e1df4898bedc6372
[ "MIT" ]
null
null
null
from bson.objectid import ObjectId, InvalidId class PydanticObjectId(str): @classmethod def __get_validators__(cls): yield cls.validate @classmethod def validate(cls, v): try: ObjectId(str(v)) except InvalidId: raise TypeError('invalid ObjectId') ...
21
47
0.622024
287
0.854167
55
0.16369
248
0.738095
0
0
18
0.053571
ad47d50e27f1ff53557e090e02e00ff688fd1b95
1,818
py
Python
phr/insteducativa/api/serializers.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/insteducativa/api/serializers.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/insteducativa/api/serializers.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
from drf_extra_fields.geo_fields import PointField from rest_framework import serializers from phr.insteducativa.models import InstitucionEducativa from phr.ubigeo.models import UbigeoDepartamento, UbigeoDistrito, UbigeoProvincia class InstEducativaSerializer(serializers.ModelSerializer): ubicacion = PointField(...
42.27907
116
0.684268
1,584
0.871287
0
0
0
0
0
0
243
0.133663
ad48ea0d8d6cb42aaecd71882b43cea8143d3ab2
885
py
Python
python/review_02_list.py
dayoungMM/TIL
b844ef5621657908d4c256cdfe233462dd075e8b
[ "MIT" ]
null
null
null
python/review_02_list.py
dayoungMM/TIL
b844ef5621657908d4c256cdfe233462dd075e8b
[ "MIT" ]
null
null
null
python/review_02_list.py
dayoungMM/TIL
b844ef5621657908d4c256cdfe233462dd075e8b
[ "MIT" ]
null
null
null
## list array = [1,2,3,"four","five","six",True] print(array[:3]) dust = { '영등포구': 50, '강남구' : 40 } ## Dictionary print(dust['영등포구']) dust2 = dict(abc=50) print(dust2) ## 랜덤으로 coffee메뉴 3개 뽑기 import random coffee = ['아아','뜨아','라떼','믹스','핫초코'] coffee_fav=coffee[1:4] #내가 좋아하는 메뉴 일부 출력 print(coffee_fav) ls...
15.526316
58
0.59887
0
0
0
0
0
0
0
0
548
0.495032
ad49616aedf0c8496a6ad656e69c031e7078edfd
1,661
py
Python
DetectAESECB.py
styojm/CryptoPal-Challenges
e7b1759d01de7d388c1632b827c51f506e419db7
[ "MIT" ]
null
null
null
DetectAESECB.py
styojm/CryptoPal-Challenges
e7b1759d01de7d388c1632b827c51f506e419db7
[ "MIT" ]
null
null
null
DetectAESECB.py
styojm/CryptoPal-Challenges
e7b1759d01de7d388c1632b827c51f506e419db7
[ "MIT" ]
null
null
null
''' Detect AES in ECB mode In this file are a bunch of hex-encoded ciphertexts. One of them has been encrypted with ECB. Detect it. Remember that the problem with ECB is that it is stateless and deterministic; the same 16 byte plaintext block will always produce the same 16 byte ciphertext. Strategy is to separate ...
28.637931
159
0.658037
0
0
0
0
0
0
0
0
637
0.383504
ad4b8493a7a78d74d29fd8adec60eaee8fb97b35
14,527
py
Python
uam_simulator/orca.py
colineRamee/UAM_simulator_scitech2021
0583f5ce195cf1ec4f6919d6523fa39851c419fc
[ "MIT" ]
1
2021-02-04T15:57:03.000Z
2021-02-04T15:57:03.000Z
uam_simulator/orca.py
colineRamee/UAM_simulator_scitech2021
0583f5ce195cf1ec4f6919d6523fa39851c419fc
[ "MIT" ]
null
null
null
uam_simulator/orca.py
colineRamee/UAM_simulator_scitech2021
0583f5ce195cf1ec4f6919d6523fa39851c419fc
[ "MIT" ]
2
2021-02-04T04:41:08.000Z
2022-03-01T16:18:14.000Z
import numpy as np import math """ Implementation of the ORCA algorithm Resources: van den Berg, Reciprocal n-body Collision Avoidance, RVO2 library (C++) https://github.com/snape/RVO2/blob/master/src/Agent.cpp Pyorca library to see another python implementation https://github.com/...
56.968627
191
0.597921
14,143
0.973566
0
0
0
0
0
0
6,277
0.432092
ad4bc314e783e86d0936529813182a506c16c465
3,030
py
Python
lib/heuristic_methods/greedy_packing/largest_heat_match_greedy.py
cog-imperial/min_matches_heuristics
669fd082c747f886c949aacc427f00e80d0c5291
[ "Apache-2.0" ]
4
2019-04-14T14:11:57.000Z
2020-07-02T10:42:12.000Z
lib/heuristic_methods/greedy_packing/largest_heat_match_greedy.py
cog-imperial/min_matches_heuristics
669fd082c747f886c949aacc427f00e80d0c5291
[ "Apache-2.0" ]
null
null
null
lib/heuristic_methods/greedy_packing/largest_heat_match_greedy.py
cog-imperial/min_matches_heuristics
669fd082c747f886c949aacc427f00e80d0c5291
[ "Apache-2.0" ]
2
2018-03-27T15:05:40.000Z
2020-07-03T08:00:37.000Z
from time import time from ...problem_classes.heat_exchange import Heat_Exchange def largest_heat_match_greedy(inst): # Initialization of a local copy of the instance n = inst.n m = inst.m k = inst.k QH = list(inst.QH) QC = list(inst.QC) R = list(inst.R) # Initialization of variables for storing the soluti...
26.12069
86
0.648515
0
0
0
0
0
0
0
0
1,080
0.356436
ad4bd3da35c74d546fcb8432bf4ca348b5a1195d
3,125
py
Python
cosifer/utils/stats.py
C-nit/cosifer
550b3ee1055bf1ceb8883ee8736c8d538ceb6ee4
[ "MIT" ]
7
2020-01-17T17:29:37.000Z
2022-02-18T09:53:50.000Z
cosifer/utils/stats.py
C-nit/cosifer
550b3ee1055bf1ceb8883ee8736c8d538ceb6ee4
[ "MIT" ]
2
2020-10-19T14:28:49.000Z
2021-01-14T18:20:46.000Z
cosifer/utils/stats.py
C-nit/cosifer
550b3ee1055bf1ceb8883ee8736c8d538ceb6ee4
[ "MIT" ]
3
2020-11-02T15:42:34.000Z
2021-02-24T12:37:34.000Z
"""Statistics utils.""" import numpy as np import pandas as pd from statsmodels.stats import multitest as mt from .data import scale_graph def bonferroni_correction(p_values, q_star): """ Return indices of pValues that make reject null hypothesis at given significance level with a Bonferroni correction. ...
30.940594
75
0.68096
0
0
0
0
0
0
0
0
1,581
0.50592
ad4d7bab059d0ea9bad8d2d28f8ce727a3796264
14,523
py
Python
src/dmglib.py
rickmark/dmglib
abcb16b4eeaec8e34f13248874c0e5b39dcfd96d
[ "MIT" ]
null
null
null
src/dmglib.py
rickmark/dmglib
abcb16b4eeaec8e34f13248874c0e5b39dcfd96d
[ "MIT" ]
null
null
null
src/dmglib.py
rickmark/dmglib
abcb16b4eeaec8e34f13248874c0e5b39dcfd96d
[ "MIT" ]
null
null
null
""" dmglib is a basic ``hdiutil`` wrapper that simplifies working with dmg images from Python. The module can be used to attach and detach disk images, to check a disk image's validity and to query whether disk images are password protected or have a license agreement included. """ import plistlib import subprocess i...
31.988987
106
0.658955
7,747
0.53343
791
0.054465
807
0.055567
0
0
7,447
0.512773
ad500e55895d6938ba4ad576c120964bb8775e2f
786
py
Python
example_app/sqlalchemy/models.py
aalamdev/py-angular-testapp
34fbeae36f8890dc254fb181d2d4fe986ada6d00
[ "MIT" ]
null
null
null
example_app/sqlalchemy/models.py
aalamdev/py-angular-testapp
34fbeae36f8890dc254fb181d2d4fe986ada6d00
[ "MIT" ]
null
null
null
example_app/sqlalchemy/models.py
aalamdev/py-angular-testapp
34fbeae36f8890dc254fb181d2d4fe986ada6d00
[ "MIT" ]
null
null
null
import sqlalchemy as sqa from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() db_name = "aalam_pyangtestapp" class Owners(Base): __tablename__ = "owners" __table_args__ = {'schema': db_name} id = sqa.Column(sqa.Integer, primary_key=True) email = sqa.Column(sqa.VARCHAR(32...
25.354839
68
0.680662
641
0.815522
0
0
0
0
0
0
51
0.064885
ad50231d4a1b87b0ce0cfc2a3007141905a769f4
1,195
py
Python
UMSLHackRestAPI/api/serializeres.py
trujivan/climate-impact-changes
609b8197b0ede1c1fdac3aa82b34e73e6f4526e3
[ "MIT" ]
1
2020-03-29T17:52:26.000Z
2020-03-29T17:52:26.000Z
UMSLHackRestAPI/api/serializeres.py
trujivan/climate-impact-changes
609b8197b0ede1c1fdac3aa82b34e73e6f4526e3
[ "MIT" ]
6
2021-03-19T00:01:21.000Z
2021-09-22T18:37:17.000Z
UMSLHackRestAPI/api/serializeres.py
trujivan/climate-impact-changes
609b8197b0ede1c1fdac3aa82b34e73e6f4526e3
[ "MIT" ]
null
null
null
from rest_framework import serializers from .utils import get_ml_predictions from .models import MLRequest, Prediction class PredictionSerializer(serializers.ModelSerializer): class Meta: model = Prediction fields = ['year', 'pollution',] class MLRequestSerializer(serializers.ModelSerializer): ...
37.34375
123
0.669456
1,070
0.895397
0
0
0
0
0
0
186
0.155649
ad51ca380d95e2a4ab5344077a584650b02823ba
160
py
Python
info/modules/passport/__init__.py
xnzgt/git_flask_news
2511927efd2ecd05f2e4312a896cbdfaf69da790
[ "MIT" ]
null
null
null
info/modules/passport/__init__.py
xnzgt/git_flask_news
2511927efd2ecd05f2e4312a896cbdfaf69da790
[ "MIT" ]
null
null
null
info/modules/passport/__init__.py
xnzgt/git_flask_news
2511927efd2ecd05f2e4312a896cbdfaf69da790
[ "MIT" ]
null
null
null
# 创建蓝图接收前端发送数据 from flask import Blueprint # 设置url_prefix用于与其他蓝图进行区分 passport_blu = Blueprint("passport",__name__,url_prefix="/passport") from .views import *
22.857143
68
0.80625
0
0
0
0
0
0
0
0
110
0.52381
ad53cf2904294aa05e0f2f946c5cc98c0ecb42f6
1,276
py
Python
sequential_bake_main.py
Mateusz-Grzelinski/cycles-bake-workaround
9bf68e4e646561c6b2de1303fe0f131dd95e4a9f
[ "MIT" ]
1
2021-06-04T11:39:22.000Z
2021-06-04T11:39:22.000Z
sequential_bake_main.py
Mateusz-Grzelinski/cycles-bake-workaround
9bf68e4e646561c6b2de1303fe0f131dd95e4a9f
[ "MIT" ]
null
null
null
sequential_bake_main.py
Mateusz-Grzelinski/cycles-bake-workaround
9bf68e4e646561c6b2de1303fe0f131dd95e4a9f
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import argparse import os import tempfile def parse(): parser = argparse.ArgumentParser() parser.add_argument("file", help="Path to blend file. File should be previously prepared for baking") return parser.parse_args() def main(): """ Calls inst...
25.019608
97
0.568182
0
0
0
0
0
0
0
0
355
0.278213
ad56a104d06bf367829a2691a45c3980f07d5ff2
664
py
Python
serve.py
uwmisl/purpledrop-driver
7744141c40801d367b6dd54e42eec1ca69320100
[ "MIT" ]
null
null
null
serve.py
uwmisl/purpledrop-driver
7744141c40801d367b6dd54e42eec1ca69320100
[ "MIT" ]
null
null
null
serve.py
uwmisl/purpledrop-driver
7744141c40801d367b6dd54e42eec1ca69320100
[ "MIT" ]
null
null
null
from gevent import monkey monkey.patch_all() import sys import purpledrop.server as server from purpledrop.purpledrop import list_purpledrop_devices, PurpleDropDevice, PurpleDropController devices = list_purpledrop_devices() if(len(devices) == 0): print("No PurpleDrop USB device found") sys.exit(1) elif len(d...
31.619048
106
0.762048
0
0
0
0
0
0
0
0
182
0.274096
ad57972501ce548d43bea55cbadb56125e31eb1f
1,720
py
Python
freiner/storage/redis_cluster.py
djmattyg007/freiner
4acff72c55c37495862ea642a70b443da1278894
[ "MIT" ]
null
null
null
freiner/storage/redis_cluster.py
djmattyg007/freiner
4acff72c55c37495862ea642a70b443da1278894
[ "MIT" ]
null
null
null
freiner/storage/redis_cluster.py
djmattyg007/freiner
4acff72c55c37495862ea642a70b443da1278894
[ "MIT" ]
null
null
null
from typing import Any from urllib.parse import urlparse from rediscluster import RedisCluster from .redis import RedisStorage class RedisClusterStorage(RedisStorage): """ Rate limit storage with redis cluster as backend. Depends on `redis-py-cluster` library. """ @classmethod def from_uri...
30.175439
94
0.62907
1,545
0.898256
0
0
745
0.43314
0
0
954
0.554651
ad5b0dcb1fddf5cb54d8253c41cd8dbc19845262
2,986
py
Python
test4/alien_dict_coderpad.py
MrCsabaToth/IK
713f91c28af7b4a964ba854ede9fec73bf0c4682
[ "Apache-2.0" ]
null
null
null
test4/alien_dict_coderpad.py
MrCsabaToth/IK
713f91c28af7b4a964ba854ede9fec73bf0c4682
[ "Apache-2.0" ]
null
null
null
test4/alien_dict_coderpad.py
MrCsabaToth/IK
713f91c28af7b4a964ba854ede9fec73bf0c4682
[ "Apache-2.0" ]
null
null
null
def alien_order(words): # Underspecified input 0 if not words: return [] # Underspecified input 1 if len(words) == 1: return "".join(sorted(set(list(words[0])))) nodes = [] adj_list = [] chars = set() # 1. Take each word pair for i, word1 in enumerate(words[:-1]): ...
27.145455
68
0.490288
0
0
0
0
239
0.08004
0
0
556
0.186202
ad5c12d313589ae7fb0ab9514bf6274dd4fef970
64
py
Python
KAMA1ShortOnly/custom_indicators/__init__.py
ysdede/jesse_strategies
ade9f4ba42cec11207c766d267b9d8feb8bce648
[ "CC0-1.0" ]
38
2021-09-18T15:33:28.000Z
2022-02-21T17:29:08.000Z
ott2butKAMA1/custom_indicators/__init__.py
ysdede/jesse_strategies
ade9f4ba42cec11207c766d267b9d8feb8bce648
[ "CC0-1.0" ]
4
2022-01-02T14:46:12.000Z
2022-02-16T18:39:41.000Z
KAMA1ShortOnly/custom_indicators/__init__.py
ysdede/jesse_strategies
ade9f4ba42cec11207c766d267b9d8feb8bce648
[ "CC0-1.0" ]
11
2021-10-19T06:21:43.000Z
2022-02-21T17:29:10.000Z
from .ott import ott from .var import var from .rma import rma
12.8
20
0.75
0
0
0
0
0
0
0
0
0
0
ad5c22c2a30ebb3dd262b8552db1d5d150acb5ab
500
py
Python
tests/test_invoke.py
avara1986/ardy
1942413f12e117b991278cada69f478474b9b94b
[ "Apache-2.0" ]
3
2017-07-07T06:39:36.000Z
2017-11-29T23:09:37.000Z
tests/test_invoke.py
avara1986/ardy
1942413f12e117b991278cada69f478474b9b94b
[ "Apache-2.0" ]
3
2017-07-06T20:23:30.000Z
2018-11-05T21:15:48.000Z
tests/test_invoke.py
avara1986/ardy
1942413f12e117b991278cada69f478474b9b94b
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # python imports from __future__ import unicode_literals, print_function, absolute_import import os import unittest from ardy.core.invoke import Invoke TESTS_PATH = os.path.dirname(os.path.abspath(__file__)) class InvokeTest(unittest.TestCase): EXAMPLE_PROJECT = "myexamplelambdaproject" def ...
19.230769
72
0.726
223
0.446
0
0
0
0
0
0
80
0.16
ad5c5f31d45895838d2f7af9abde703612dccc2f
4,415
py
Python
pysparkbasics/L02_DataFrame/S01_DataStructures/01_RowClassExp.py
pengfei99/PySparkCommonFunc
8238949f52a8e0d2c30c42d9f4002941f43db466
[ "MIT" ]
null
null
null
pysparkbasics/L02_DataFrame/S01_DataStructures/01_RowClassExp.py
pengfei99/PySparkCommonFunc
8238949f52a8e0d2c30c42d9f4002941f43db466
[ "MIT" ]
null
null
null
pysparkbasics/L02_DataFrame/S01_DataStructures/01_RowClassExp.py
pengfei99/PySparkCommonFunc
8238949f52a8e0d2c30c42d9f4002941f43db466
[ "MIT" ]
null
null
null
from pyspark import Row from pyspark.sql import SparkSession """ Row class introduction: Row class extends the tuple hence it takes variable number of arguments, Row() is used to create the row object. Once the row object created, we can retrieve the data from Row using index similar to tuple. Key Points of Row Cla...
36.791667
120
0.63624
0
0
0
0
0
0
0
0
2,617
0.592752
ad5daf01c044c5fde437a87219ebf1f9aed1ff36
551
py
Python
icon_prometheus_exporter/config.py
ghalwash/icon-prometheus-exporter
57201f8ad2c0f30aab5b24c99a94e55f68cffb2f
[ "MIT" ]
null
null
null
icon_prometheus_exporter/config.py
ghalwash/icon-prometheus-exporter
57201f8ad2c0f30aab5b24c99a94e55f68cffb2f
[ "MIT" ]
2
2020-07-06T17:34:09.000Z
2020-07-06T17:34:10.000Z
icon_prometheus_exporter/config.py
ghalwash/icon-prometheus-exporter
57201f8ad2c0f30aab5b24c99a94e55f68cffb2f
[ "MIT" ]
2
2020-06-28T19:53:35.000Z
2020-09-17T21:25:43.000Z
discovery_node_rpc_url='https://ctz.solidwallet.io/api/v3' request_data = { "jsonrpc": "2.0", "id": 1234, "method": "icx_call", "params": { "to": "cx0000000000000000000000000000000000000000", "dataType": "call", "data": { ...
27.55
67
0.372051
0
0
0
0
0
0
0
0
213
0.38657
ad5db874c90f5842c8a6e82a7b558b48f5b79bd1
4,187
py
Python
web/models.py
rkhozinov/dicease-area
9ca2159705c778a73f45ca83e83f881d47c355c4
[ "MIT" ]
null
null
null
web/models.py
rkhozinov/dicease-area
9ca2159705c778a73f45ca83e83f881d47c355c4
[ "MIT" ]
null
null
null
web/models.py
rkhozinov/dicease-area
9ca2159705c778a73f45ca83e83f881d47c355c4
[ "MIT" ]
null
null
null
# models.py from sys import path from os.path import dirname as dir path.append(dir(path[0])) from app import db class District(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(120), unique=True) coordinates = db.Column(db.String(120), nullable=True) def __init__(s...
34.04065
98
0.642942
4,056
0.968713
0
0
0
0
0
0
199
0.047528
ad5ee300c9e8ae6ec4833340d2ed6551f1709676
12,755
py
Python
PJ-X-ACT/train.py
Seth-Park/MultimodalExplanations
b58c09ac38a5e5d08541a94599410e59ec5cdec6
[ "BSD-2-Clause" ]
39
2018-07-18T16:31:46.000Z
2022-01-25T16:38:51.000Z
PJ-X-ACT/train.py
Seth-Park/MultimodalExplanations
b58c09ac38a5e5d08541a94599410e59ec5cdec6
[ "BSD-2-Clause" ]
13
2018-10-15T19:10:34.000Z
2021-11-03T02:21:53.000Z
PJ-X-ACT/train.py
Seth-Park/MultimodalExplanations
b58c09ac38a5e5d08541a94599410e59ec5cdec6
[ "BSD-2-Clause" ]
6
2018-11-09T15:41:31.000Z
2021-05-26T11:42:30.000Z
import matplotlib matplotlib.use('Agg') import os import sys import numpy as np import json import matplotlib.pyplot as plt import caffe from caffe import layers as L from caffe import params as P from activity_data_provider_layer import ActivityDataProvider from build_val_model import act_proto, exp_proto import con...
42.235099
130
0.64414
0
0
0
0
0
0
0
0
1,565
0.122697
ad6107c5bfaee0726903a00a606341356cab3655
423
py
Python
disBatch.py
flatironinstitute/disBatch
67cf2090617e6fc2f2fb91fdf54c28bcfacaf59c
[ "Apache-2.0" ]
21
2017-11-08T15:20:05.000Z
2022-03-25T01:06:07.000Z
disBatch.py
flatironinstitute/disBatch
67cf2090617e6fc2f2fb91fdf54c28bcfacaf59c
[ "Apache-2.0" ]
11
2017-11-27T15:25:06.000Z
2021-12-16T20:59:05.000Z
disBatch.py
flatironinstitute/disBatch
67cf2090617e6fc2f2fb91fdf54c28bcfacaf59c
[ "Apache-2.0" ]
6
2019-01-31T22:23:08.000Z
2021-11-06T05:03:15.000Z
#!/usr/bin/env python3 import os, sys dr = os.getenv('DISBATCH_ROOT') if dr and dr not in sys.path: sys.path.append(dr) try: import disbatch except: print(f'disBatch environment is incomplete. Check:\n\tDISBATCH_ROOT {dr!r}.', file=sys.stderr) sys.exit(1) dbExec = os.path.join(os.path.dirnam...
24.882353
98
0.690307
0
0
0
0
0
0
0
0
120
0.283688
ad611aec8e39567a4f46f53f19066964bc6e7636
425
py
Python
cloudflare_exporter/handlers.py
cpaillet/cloudflare-exporter
194a0ce0f316aadc2802fbf180d06f5aab7849be
[ "Apache-2.0" ]
null
null
null
cloudflare_exporter/handlers.py
cpaillet/cloudflare-exporter
194a0ce0f316aadc2802fbf180d06f5aab7849be
[ "Apache-2.0" ]
7
2019-11-28T11:43:56.000Z
2020-06-09T08:21:19.000Z
cloudflare_exporter/handlers.py
cpaillet/cloudflare-exporter
194a0ce0f316aadc2802fbf180d06f5aab7849be
[ "Apache-2.0" ]
3
2019-11-28T08:36:23.000Z
2022-02-21T11:34:41.000Z
from aiohttp import web from prometheus_client import generate_latest from prometheus_client.core import REGISTRY def metric_to_text(): return generate_latest(REGISTRY).decode('utf-8') async def handle_metrics(_request): return web.Response(text=metric_to_text()) async def handle_health(_request): he...
22.368421
63
0.778824
0
0
0
0
0
0
227
0.534118
11
0.025882
ad61efd89b487352162b06da16ad5ffe5da41461
20,737
py
Python
Step4/04_reversing_bis.py
Aterwyn/SSTIC2019
d7fcddd5b223663910ec35aa1d419f0bc636e701
[ "MIT" ]
null
null
null
Step4/04_reversing_bis.py
Aterwyn/SSTIC2019
d7fcddd5b223663910ec35aa1d419f0bc636e701
[ "MIT" ]
null
null
null
Step4/04_reversing_bis.py
Aterwyn/SSTIC2019
d7fcddd5b223663910ec35aa1d419f0bc636e701
[ "MIT" ]
null
null
null
from SM4 import SM4 input_data = "a1a2a3a4a5a6a7a8a9aaabacadaeafa0b1b2b3b4b5b6b7b8b9babbbcbdbebfb0" input_data = "acadaa8b5b55306fb3c6dfc3b2d1c80770084644225febd71a9189aa26ec740e" #input_data = "0000000000000000000000000000000000000000000000000000000000000000" global input_list input_list = bytearray.fromhex(inp...
57.602778
185
0.401601
0
0
0
0
0
0
0
0
9,835
0.474273
ad62b39dc3d459b038919fec68d5b17bad7d8e64
6,454
py
Python
util/list_store.py
natduca/ndbg
f8da43be62dac18072e9b0e6e5ecd0d1818aea4d
[ "Apache-2.0" ]
5
2016-05-12T08:48:41.000Z
2018-07-17T00:48:32.000Z
util/list_store.py
natduca/ndbg
f8da43be62dac18072e9b0e6e5ecd0d1818aea4d
[ "Apache-2.0" ]
1
2022-01-16T12:18:50.000Z
2022-01-16T12:18:50.000Z
util/list_store.py
natduca/ndbg
f8da43be62dac18072e9b0e6e5ecd0d1818aea4d
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
28.431718
89
0.597614
4,924
0.762938
74
0.011466
0
0
0
0
1,176
0.182213
ad63cef726f7367efe5345d0f36197ebd8c709bc
1,582
py
Python
blogs/views/feed.py
daaawx/bearblog
5e01e4443c632ff53b918cf8a0d3b1c648b352fe
[ "MIT" ]
657
2020-05-26T16:16:07.000Z
2022-03-26T22:35:01.000Z
blogs/views/feed.py
daaawx/bearblog
5e01e4443c632ff53b918cf8a0d3b1c648b352fe
[ "MIT" ]
107
2020-05-26T17:45:04.000Z
2022-03-17T08:24:00.000Z
blogs/views/feed.py
daaawx/bearblog
5e01e4443c632ff53b918cf8a0d3b1c648b352fe
[ "MIT" ]
42
2020-05-26T23:57:58.000Z
2022-03-15T04:20:26.000Z
from django.http.response import Http404 from django.http import HttpResponse from blogs.helpers import unmark, clean_text from blogs.views.blog import resolve_address from feedgen.feed import FeedGenerator import mistune def feed(request): blog = resolve_address(request) if not blog: raise Http404...
35.954545
94
0.676359
0
0
0
0
0
0
0
0
336
0.212389
ad651f61bd321ebea386f33585e8cf5eacb6acdb
894
py
Python
src/data_hub/lcd/migrations/0053_alter_collectionfootprint_the_geom.py
TNRIS/api.tnris.org
46620a4edf0682c158907f110158110801e9c398
[ "MIT" ]
6
2019-05-22T20:01:45.000Z
2020-08-18T12:05:12.000Z
src/data_hub/lcd/migrations/0053_alter_collectionfootprint_the_geom.py
TNRIS/api.tnris.org
46620a4edf0682c158907f110158110801e9c398
[ "MIT" ]
73
2019-05-22T19:57:30.000Z
2022-03-12T00:59:33.000Z
src/data_hub/lcd/migrations/0053_alter_collectionfootprint_the_geom.py
TNRIS/api.tnris.org
46620a4edf0682c158907f110158110801e9c398
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-08-10 20:12 import django.contrib.gis.db.models.fields import django.contrib.gis.geos.collections import django.contrib.gis.geos.polygon from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('lcd', '0052_alter_collectionfootprint_th...
40.636364
414
0.722595
684
0.765101
0
0
0
0
0
0
138
0.154362
ad67c8aef56c0e2dd3ee6398991df1cf46f8a5ba
4,456
py
Python
utility/timer.py
xlnwel/g2rl
e1261fdd2ce70724a99ddd174616cf013917b241
[ "Apache-2.0" ]
1
2022-03-27T08:25:57.000Z
2022-03-27T08:25:57.000Z
utility/timer.py
xlnwel/g2rl
e1261fdd2ce70724a99ddd174616cf013917b241
[ "Apache-2.0" ]
null
null
null
utility/timer.py
xlnwel/g2rl
e1261fdd2ce70724a99ddd174616cf013917b241
[ "Apache-2.0" ]
1
2021-11-09T08:33:35.000Z
2021-11-09T08:33:35.000Z
from time import strftime, gmtime, time from collections import defaultdict import tensorflow as tf from utility.aggregator import Aggregator from utility.display import pwc def timeit(func, *args, name=None, to_print=True, return_duration=False, **kwargs): start_time = gmtime() start = time() r...
33.503759
120
0.58842
3,706
0.831688
0
0
0
0
0
0
533
0.119614
ad67d66388f0984d00adcc7945f036f683b5cc41
1,497
py
Python
tests/functional/test_tagged_unions_unknown.py
karim7262/botocore
070204a0afb94c23dcfe040f4933c74ab1d8e089
[ "Apache-2.0" ]
1,063
2015-01-13T13:35:09.000Z
2022-03-31T09:29:32.000Z
tests/functional/test_tagged_unions_unknown.py
karim7262/botocore
070204a0afb94c23dcfe040f4933c74ab1d8e089
[ "Apache-2.0" ]
2,064
2015-01-03T15:53:33.000Z
2022-03-31T23:12:08.000Z
tests/functional/test_tagged_unions_unknown.py
karim7262/botocore
070204a0afb94c23dcfe040f4933c74ab1d8e089
[ "Apache-2.0" ]
1,065
2015-01-16T15:58:42.000Z
2022-03-31T22:18:56.000Z
# Copyright 2021 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
49.9
82
0.734135
869
0.580494
0
0
0
0
0
0
861
0.57515
ad6939b73d6eb13be57d04a632bb4bb399ec7cb8
2,177
py
Python
pytest_profiler/pytest_profiler.py
emilberwald/pytest_profiler
fc873d1b2247ec9355ab3521d67d815f0914e5ec
[ "MIT" ]
null
null
null
pytest_profiler/pytest_profiler.py
emilberwald/pytest_profiler
fc873d1b2247ec9355ab3521d67d815f0914e5ec
[ "MIT" ]
null
null
null
pytest_profiler/pytest_profiler.py
emilberwald/pytest_profiler
fc873d1b2247ec9355ab3521d67d815f0914e5ec
[ "MIT" ]
null
null
null
import io import multiprocessing import pathlib from urllib.parse import quote_plus import pytest import yappi semaphore = multiprocessing.Semaphore(1) class PytestProfiler: def __init__(self, outdir): self.func_stats_summary = io.StringIO() self.outdir = pathlib.Path(outdir) def pytest_ses...
29.821918
86
0.625172
1,298
0.596233
733
0.336702
772
0.354616
0
0
308
0.141479
ad696db21a9d22c4ded15d5a9823102815ab634c
18,027
py
Python
codewars/difficulty_level_6kyu/football_yellow_and_red_cards/test_solution_football_yellow_and_red_cards.py
aleattene/python-codewars-challenges
86cfed8179193780763a0e36ef2f1ea4729a992f
[ "MIT" ]
1
2021-12-16T16:31:11.000Z
2021-12-16T16:31:11.000Z
codewars/difficulty_level_6kyu/football_yellow_and_red_cards/test_solution_football_yellow_and_red_cards.py
aleattene/python-codewars-challenges
86cfed8179193780763a0e36ef2f1ea4729a992f
[ "MIT" ]
2
2022-01-09T22:12:53.000Z
2022-01-13T10:34:52.000Z
codewars/difficulty_level_6kyu/football_yellow_and_red_cards/test_solution_football_yellow_and_red_cards.py
aleattene/python-codewars-challenges
86cfed8179193780763a0e36ef2f1ea4729a992f
[ "MIT" ]
1
2022-03-10T05:17:10.000Z
2022-03-10T05:17:10.000Z
""" To start the tests, type from CLI: python test_solution_sum_of_missing_numbers.py """ import unittest from solution_football_yellow_and_red_cards import men_still_standing class TestSolution(unittest.TestCase): def test_simple_cases(self): self.assertEqual(men_still_standing([]), (11, 11)) ...
90.58794
120
0.419315
17,643
0.978699
0
0
0
0
0
0
6,408
0.355467
ad6c85ce56ed9f4842b89a8439f0c9803a6f3462
3,801
py
Python
iCount/tests/test_externals.py
zhouyu/iCount
c203a5b2c8fbcc2934bb2100be04d3290497cf7d
[ "MIT" ]
null
null
null
iCount/tests/test_externals.py
zhouyu/iCount
c203a5b2c8fbcc2934bb2100be04d3290497cf7d
[ "MIT" ]
null
null
null
iCount/tests/test_externals.py
zhouyu/iCount
c203a5b2c8fbcc2934bb2100be04d3290497cf7d
[ "MIT" ]
1
2020-06-18T21:01:41.000Z
2020-06-18T21:01:41.000Z
# pylint: disable=missing-docstring, protected-access import warnings import unittest import iCount.externals.cutadapt as cutadapt import iCount.externals.star as star from iCount.tests.utils import make_fasta_file, make_fastq_file, get_temp_dir, \ get_temp_file_name, make_file_from_list class TestCutadapt(uni...
36.902913
98
0.631413
3,450
0.907656
0
0
0
0
0
0
756
0.198895
ad6caaf895bc1263240d8f9376ba437ced2dd6f3
216
py
Python
source/auxiliary/other_utilities.py
JoZimmer/ParOptBeam
50d15d8d822a2718f2932807e06c4a7e02f866a3
[ "BSD-3-Clause" ]
1
2021-04-09T14:08:20.000Z
2021-04-09T14:08:20.000Z
source/auxiliary/other_utilities.py
JoZimmer/ParOptBeam
50d15d8d822a2718f2932807e06c4a7e02f866a3
[ "BSD-3-Clause" ]
2
2021-04-28T15:05:01.000Z
2021-11-10T15:12:56.000Z
source/auxiliary/other_utilities.py
JoZimmer/ParOptBeam
50d15d8d822a2718f2932807e06c4a7e02f866a3
[ "BSD-3-Clause" ]
2
2021-02-01T08:49:45.000Z
2021-08-10T02:07:36.000Z
from os.path import sep as os_sep def get_adjusted_path_string(path_string): for separator in ['\\\\', '\\', '/', '//']: path_string = path_string.replace(separator, os_sep) return path_string[:]
21.6
60
0.648148
0
0
0
0
0
0
0
0
17
0.078704
ad6dc8f5ec7abbc123e658c8a53c68b664ad7c1a
271
py
Python
modules/04/examples/dollar.py
edsu/inst126
a14f2c6901759f87b1f199f79ed1b8a5c03c688d
[ "CC-BY-4.0" ]
2
2019-08-07T07:49:09.000Z
2019-08-24T02:07:39.000Z
modules/04/examples/dollar.py
edsu/inst126
a14f2c6901759f87b1f199f79ed1b8a5c03c688d
[ "CC-BY-4.0" ]
2
2020-07-18T02:43:50.000Z
2022-02-10T19:04:57.000Z
modules/04/examples/dollar.py
edsu/inst126
a14f2c6901759f87b1f199f79ed1b8a5c03c688d
[ "CC-BY-4.0" ]
null
null
null
# jaylin hours = float(input("Enter hours worked: ")) rate = float(input("Enter hourly rate: ")) if (rate >= 15): pay=(hours* rate) print("Pay: $", pay) else: print("I'm sorry " + str(rate) + " is lower than the minimum wage!")
20.846154
76
0.535055
0
0
0
0
0
0
0
0
106
0.391144
ad7017adc96fad3d0362ec1d61ae2f9905d89711
297
py
Python
Week 1/id_545/LeetCode_26_545.py
theshaodi/algorithm004-05
cac0cd3bb1211d50936234c08f6ece38677e55cf
[ "Apache-2.0" ]
1
2019-10-12T06:48:45.000Z
2019-10-12T06:48:45.000Z
Week 1/id_545/LeetCode_26_545.py
theshaodi/algorithm004-05
cac0cd3bb1211d50936234c08f6ece38677e55cf
[ "Apache-2.0" ]
1
2019-12-01T10:02:03.000Z
2019-12-01T10:02:03.000Z
Week 1/id_545/LeetCode_26_545.py
theshaodi/algorithm004-05
cac0cd3bb1211d50936234c08f6ece38677e55cf
[ "Apache-2.0" ]
null
null
null
## 删除排序数组中的重复项 # 方法: 快慢指针 时间:O(n) 空间:O(1) class Solution: def removeDuplicates(self, nums: List[int]) -> int: s = 0 for f in range(0, len(nums)): if nums[f] != nums[s]: s += 1 nums[s] = nums[f] return s + 1
27
55
0.430976
253
0.733333
0
0
0
0
0
0
90
0.26087
ad7112c3738411a5a1f2089e56459f416d494862
17,160
py
Python
tests/diag/test_ccsd.py
fevangelista/pyWicked
9bc0e13f6e45c86222ea95fdadf1cb66eb59862f
[ "MIT" ]
null
null
null
tests/diag/test_ccsd.py
fevangelista/pyWicked
9bc0e13f6e45c86222ea95fdadf1cb66eb59862f
[ "MIT" ]
null
null
null
tests/diag/test_ccsd.py
fevangelista/pyWicked
9bc0e13f6e45c86222ea95fdadf1cb66eb59862f
[ "MIT" ]
null
null
null
import wicked as w def print_comparison(val, val2): print(f"Result: {val}") print(f"Test: {val2}") def compare_expressions(test, ref): test_expr = w.Expression() ref_expr = w.Expression() for s in ref: ref_expr += w.string_to_expr(s) for eq in test: test_expr += eq.rhs_expr...
31.030741
88
0.534324
0
0
0
0
0
0
0
0
4,973
0.289802
ad714fa4a31029ee0185a2f2a26418add93804bc
3,301
py
Python
notes/publish.py
simonrus/about
4413401308f0a95e5c42c7eb65879e35dda9db29
[ "MIT" ]
null
null
null
notes/publish.py
simonrus/about
4413401308f0a95e5c42c7eb65879e35dda9db29
[ "MIT" ]
null
null
null
notes/publish.py
simonrus/about
4413401308f0a95e5c42c7eb65879e35dda9db29
[ "MIT" ]
null
null
null
#/bin/python3 ## Step1 scan recursively over all files import os import re import pdb import datetime path = "./notes" dest = "_posts" magic_prefix = "Active-" def extractModifiedDate(string): regexp = r"\d+-\d+-\d+T\d+:\d+:\d+.\d+Z" date_strings_all = re.findall(regexp,string) date = None if (len(da...
28.213675
96
0.49076
0
0
0
0
0
0
0
0
447
0.135414
ad72b53c026f5b811aebd943c7bb216b2e4dff3e
726
py
Python
unittest/test_unittest_runner.py
asisudai/practical_pipeline
09b106dc70d0d9abf7bca117346e796ad542d534
[ "MIT" ]
3
2019-05-28T22:29:38.000Z
2020-04-26T19:03:01.000Z
unittest/test_unittest_runner.py
asisudai/practical_pipeline
09b106dc70d0d9abf7bca117346e796ad542d534
[ "MIT" ]
null
null
null
unittest/test_unittest_runner.py
asisudai/practical_pipeline
09b106dc70d0d9abf7bca117346e796ad542d534
[ "MIT" ]
1
2019-09-01T15:53:36.000Z
2019-09-01T15:53:36.000Z
#!/usr/bin/env python import unittest # import your test modules import test_unittest_01 import test_unittest_02 import test_unittest_03 import test_unittest_04 if __name__ == '__main__': # initialize the test suite loader = unittest.TestLoader() suite = unittest.TestSuite() # add tests to the test...
29.04
64
0.77135
0
0
0
0
0
0
0
0
165
0.227273
ad756753130794b002c07aafb6f259c23435b543
1,535
py
Python
secret_msg(tk).py
weijun-github/some-python-codes
db3d4b4ceb8b7c8ce0bd4b61da6227cd9e994718
[ "MIT" ]
null
null
null
secret_msg(tk).py
weijun-github/some-python-codes
db3d4b4ceb8b7c8ce0bd4b61da6227cd9e994718
[ "MIT" ]
null
null
null
secret_msg(tk).py
weijun-github/some-python-codes
db3d4b4ceb8b7c8ce0bd4b61da6227cd9e994718
[ "MIT" ]
null
null
null
from tkinter import messagebox, simpledialog, Tk def is_even(number): return number % 2 == 0 def get_even_letters(message): even_letters = [] for counter in range(0, len(message)): if is_even(counter): even_letters.append(message[counter]) return even_letters def get_odd_letters(...
26.929825
70
0.661889
0
0
0
0
0
0
0
0
120
0.078176
ad7954a824bd880b95d100c19467ce1850e0e399
497
py
Python
class1/backpropagation.py
janewen134/tensorflow_self_improment
7872b3571f822a513c532d166cf2058b21fe7a6b
[ "MIT" ]
null
null
null
class1/backpropagation.py
janewen134/tensorflow_self_improment
7872b3571f822a513c532d166cf2058b21fe7a6b
[ "MIT" ]
null
null
null
class1/backpropagation.py
janewen134/tensorflow_self_improment
7872b3571f822a513c532d166cf2058b21fe7a6b
[ "MIT" ]
null
null
null
import tensorflow as tf w = tf.Variable(tf.constant(5, dtype=tf.float32)) # set random initial value 5, and make it trainable lr = 0.2 # learning rate epoch = 40 for epoch in range(epoch): with tf.GradientTape() as tape: # "with expression as variable" loss = tf.square(w + 1) grads = tape.gra...
35.5
102
0.649899
0
0
0
0
0
0
0
0
182
0.366197
ad7a1bbb5678c63627d8c2c4ee4f69245d892027
89
py
Python
rorow/feusers/apps.py
derhelge/rorow
deac733dd8632773970b27325c9417a51c3491f3
[ "MIT" ]
null
null
null
rorow/feusers/apps.py
derhelge/rorow
deac733dd8632773970b27325c9417a51c3491f3
[ "MIT" ]
null
null
null
rorow/feusers/apps.py
derhelge/rorow
deac733dd8632773970b27325c9417a51c3491f3
[ "MIT" ]
null
null
null
from django.apps import AppConfig class FeusersConfig(AppConfig): name = 'feusers'
14.833333
33
0.752809
52
0.58427
0
0
0
0
0
0
9
0.101124
ad7b47e123d628383cdc106058dd002388aefb9d
238
py
Python
buck/__init__.py
bukzor/buck.pprint
3b3b2620838512cf8e39d3070964cda1f1b57025
[ "MIT" ]
4
2015-11-24T18:34:39.000Z
2019-09-04T13:53:12.000Z
buck/__init__.py
bukzor/buck.pprint
3b3b2620838512cf8e39d3070964cda1f1b57025
[ "MIT" ]
2
2017-02-01T01:29:13.000Z
2020-11-10T03:55:45.000Z
buck/__init__.py
bukzor/buck.pprint
3b3b2620838512cf8e39d3070964cda1f1b57025
[ "MIT" ]
1
2017-03-05T03:36:57.000Z
2017-03-05T03:36:57.000Z
# This is a namespace package. See also: # http://pythonhosted.org/distribute/setuptools.html#namespace-packages # http://osdir.com/ml/python.distutils.devel/2006-08/msg00029.html __import__('pkg_resources').declare_namespace(__name__)
47.6
73
0.798319
0
0
0
0
0
0
0
0
194
0.815126
ad7bd9466582c413f0454448c47639038f5336ef
469
py
Python
Python/Difference of times/main.py
drtierney/hyperskill-problems
b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0
[ "MIT" ]
5
2020-08-29T15:15:31.000Z
2022-03-01T18:22:34.000Z
Python/Difference of times/main.py
drtierney/hyperskill-problems
b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0
[ "MIT" ]
null
null
null
Python/Difference of times/main.py
drtierney/hyperskill-problems
b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0
[ "MIT" ]
1
2020-12-02T11:13:14.000Z
2020-12-02T11:13:14.000Z
# put your python code here def event_time(hours, minutes, seconds): return (hours * 3600) + (minutes * 60) + seconds def time_difference(a, b): return abs(a - b) hours_1 = int(input()) minutes_1 = int(input()) seconds_1 = int(input()) hours_2 = int(input()) minutes_2 = int(input()) seconds_2 = int(input()...
21.318182
52
0.705757
0
0
0
0
0
0
0
0
27
0.057569
ad7dc5722d5464126b3e82b9529a1e48de237341
2,831
bzl
Python
tools/build_defs/detect_root.bzl
slsyy/rules_foreign_cc
34ab7f86a3ab1b2381cb4820d08a1c892f55bf54
[ "Apache-2.0" ]
2
2021-03-18T04:14:56.000Z
2021-03-18T05:11:09.000Z
tools/build_defs/detect_root.bzl
slsyy/rules_foreign_cc
34ab7f86a3ab1b2381cb4820d08a1c892f55bf54
[ "Apache-2.0" ]
null
null
null
tools/build_defs/detect_root.bzl
slsyy/rules_foreign_cc
34ab7f86a3ab1b2381cb4820d08a1c892f55bf54
[ "Apache-2.0" ]
1
2021-03-01T17:51:22.000Z
2021-03-01T17:51:22.000Z
# buildifier: disable=module-docstring # buildifier: disable=function-docstring-header def detect_root(source): """Detects the path to the topmost directory of the 'source' outputs. To be used with external build systems to point to the source code/tools directories. Args: source (Target): A filegr...
32.918605
89
0.673967
0
0
0
0
0
0
0
0
1,735
0.612858
ad7e4c246dd520ff153b0ca296f046cc27e64648
5,660
py
Python
getcurrentexplorerfile.py
CailleauThierry/MyPython
2301b012fc36d04788ea4640e81a1829b5f6598d
[ "MIT" ]
null
null
null
getcurrentexplorerfile.py
CailleauThierry/MyPython
2301b012fc36d04788ea4640e81a1829b5f6598d
[ "MIT" ]
null
null
null
getcurrentexplorerfile.py
CailleauThierry/MyPython
2301b012fc36d04788ea4640e81a1829b5f6598d
[ "MIT" ]
null
null
null
#!python3 # from https://stackoverflow.com/questions/21241708/python-get-a-list-of-selected-files-in-explorer-windows-7/52959617#52959617 import win32gui, time from win32con import PAGE_READWRITE, MEM_COMMIT, MEM_RESERVE, MEM_RELEASE, PROCESS_ALL_ACCESS, WM_GETTEXTLENGTH, WM_GETTEXT from commctrl import LVS_OWNERDATA, ...
46.393443
127
0.573852
0
0
0
0
0
0
0
0
966
0.170671
ad808e43a2af907aea81485551df9f8197837f25
1,472
py
Python
cookiecutter-project/pages/views.py
goldhand/cookiecutter-project
b7c9189ca0ccda43d34ec1573b14138e979d6e78
[ "BSD-3-Clause" ]
1
2017-03-20T05:54:30.000Z
2017-03-20T05:54:30.000Z
cookiecutter-project/pages/views.py
goldhand/cookiecutter-project
b7c9189ca0ccda43d34ec1573b14138e979d6e78
[ "BSD-3-Clause" ]
null
null
null
cookiecutter-project/pages/views.py
goldhand/cookiecutter-project
b7c9189ca0ccda43d34ec1573b14138e979d6e78
[ "BSD-3-Clause" ]
null
null
null
from django.shortcuts import render, render_to_response from django.core.mail import mail_admins from django.contrib import messages from django.template import RequestContext from django.http import HttpResponseRedirect, Http404, HttpResponse from django.views.generic.base import TemplateView from .forms import Conta...
34.232558
79
0.644701
242
0.164402
0
0
0
0
0
0
154
0.10462
ad80c626fb9482243ada858e1c516fe0842d6cb2
541
py
Python
ratelimitbackend/middleware.py
Edraak/django-ratelimit-backend
b325b62fcaff2d02eb677efe6c22a337df2c4c24
[ "BSD-3-Clause" ]
95
2015-01-05T02:05:43.000Z
2022-02-08T11:22:18.000Z
ratelimitbackend/middleware.py
Edraak/django-ratelimit-backend
b325b62fcaff2d02eb677efe6c22a337df2c4c24
[ "BSD-3-Clause" ]
28
2015-03-27T16:40:42.000Z
2021-02-22T09:59:09.000Z
ratelimitbackend/middleware.py
edx/django-ratelimit-backend
cf80e324820c48daad89c644e6bd809044ad26f4
[ "BSD-3-Clause" ]
28
2015-03-27T15:52:44.000Z
2022-01-25T07:25:30.000Z
from django.http import HttpResponseForbidden from django.utils.deprecation import MiddlewareMixin from .exceptions import RateLimitException class RateLimitMiddleware(MiddlewareMixin): """ Handles exceptions thrown by rate-limited login attepmts. """ def process_exception(self, request, exception): ...
31.823529
67
0.702403
395
0.730129
0
0
0
0
0
0
135
0.249538
ad813efc778d79e46d171b532dba5b2c0927f1e3
5,219
py
Python
RNN/alternative_configurations.py
oncebasun/seq2seq-theano
9d905ed2fb392193e28d67272d3e3f1b5da613ac
[ "MIT" ]
null
null
null
RNN/alternative_configurations.py
oncebasun/seq2seq-theano
9d905ed2fb392193e28d67272d3e3f1b5da613ac
[ "MIT" ]
null
null
null
RNN/alternative_configurations.py
oncebasun/seq2seq-theano
9d905ed2fb392193e28d67272d3e3f1b5da613ac
[ "MIT" ]
null
null
null
def get_config_cs2en(): config = {} # Settings which should be given at start time, but are not, for convenience config['the_task'] = 0 # Settings ---------------------------------------------------------------- config['allTagsSplit'] = 'allTagsSplit/' # can be 'allTagsSplit/', 'POSextra/' or ...
37.818841
176
0.633646
0
0
0
0
0
0
0
0
3,814
0.730791
ad82be8113236ba6ef1a019056b5a21f96562145
589
py
Python
setup.py
Shadofer/dogey
1d9f1b82aa7ecfe6d9776feb03364ef9eb00bd63
[ "MIT" ]
3
2021-05-18T09:46:30.000Z
2022-03-26T14:23:24.000Z
setup.py
Shadofer/dogey
1d9f1b82aa7ecfe6d9776feb03364ef9eb00bd63
[ "MIT" ]
null
null
null
setup.py
Shadofer/dogey
1d9f1b82aa7ecfe6d9776feb03364ef9eb00bd63
[ "MIT" ]
null
null
null
from setuptools import setup with open('README.md', 'r') as f: long_description = f.read() setup( name = 'dogey', version = '0.1', description = 'A pythonic dogehouse API.', long_description = long_description, long_description_content_type = 'text/markdown', author = 'Shadofer#7312', ...
25.608696
52
0.626486
0
0
0
0
0
0
0
0
193
0.327674
ad8464a5e90866608323322de1a9bc098cc0a1d3
476
py
Python
settings/testing.py
skylifewww/artdelo
55d235a59d8a3abdf0f904336c1c75a2be903699
[ "MIT" ]
null
null
null
settings/testing.py
skylifewww/artdelo
55d235a59d8a3abdf0f904336c1c75a2be903699
[ "MIT" ]
null
null
null
settings/testing.py
skylifewww/artdelo
55d235a59d8a3abdf0f904336c1c75a2be903699
[ "MIT" ]
null
null
null
ALLOWED_HOSTS = ['testserver'] EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': ':memory:' } } CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', 'LOC...
22.666667
67
0.596639
0
0
0
0
0
0
0
0
297
0.62395
ad8619a24bcb752efa61539552ec1f87e1e97167
8,140
py
Python
h1/models/billing.py
hyperonecom/h1-client-python
4ce355852ba3120ec1b8f509ab5894a5c08da730
[ "MIT" ]
null
null
null
h1/models/billing.py
hyperonecom/h1-client-python
4ce355852ba3120ec1b8f509ab5894a5c08da730
[ "MIT" ]
null
null
null
h1/models/billing.py
hyperonecom/h1-client-python
4ce355852ba3120ec1b8f509ab5894a5c08da730
[ "MIT" ]
null
null
null
# coding: utf-8 """ HyperOne HyperOne API # noqa: E501 The version of the OpenAPI document: 0.1.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from h1.configuration import Configuration class Billing(object): """NOTE: This class is auto ...
24.741641
189
0.552703
7,874
0.967322
0
0
3,981
0.489066
0
0
3,798
0.466585
ad86259a30d53b22181afbe5c6707aa6fcfa5c27
1,810
py
Python
docs/names/examples/gethostbyname.py
ndg63276/twisted
f672a20395e8beece6350631a70514f06c391bae
[ "Unlicense", "MIT" ]
1
2020-12-18T06:32:58.000Z
2020-12-18T06:32:58.000Z
docs/names/examples/gethostbyname.py
ndg63276/twisted
f672a20395e8beece6350631a70514f06c391bae
[ "Unlicense", "MIT" ]
null
null
null
docs/names/examples/gethostbyname.py
ndg63276/twisted
f672a20395e8beece6350631a70514f06c391bae
[ "Unlicense", "MIT" ]
null
null
null
#!/usr/bin/env python # -*- test-case-name: twisted.names.test.test_examples -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Print the IP address for a given hostname. eg python gethostbyname.py www.google.com This script does a host lookup using the default Twisted Names resolver, ...
24.794521
75
0.68011
151
0.083425
0
0
0
0
0
0
816
0.450829
ad8655b4f82e7a25c6632660cfa325c2cad9ee23
645
py
Python
consumers/venv/lib/python3.7/site-packages/faust/cli/faust.py
spencerpomme/Public-Transit-Status-with-Apache-Kafka
2c85d7daadf4614fe7ce2eabcd13ff87236b1c7e
[ "MIT" ]
null
null
null
consumers/venv/lib/python3.7/site-packages/faust/cli/faust.py
spencerpomme/Public-Transit-Status-with-Apache-Kafka
2c85d7daadf4614fe7ce2eabcd13ff87236b1c7e
[ "MIT" ]
null
null
null
consumers/venv/lib/python3.7/site-packages/faust/cli/faust.py
spencerpomme/Public-Transit-Status-with-Apache-Kafka
2c85d7daadf4614fe7ce2eabcd13ff87236b1c7e
[ "MIT" ]
null
null
null
"""Program ``faust`` (umbrella command).""" # Note: The command options above are defined in .cli.base.builtin_options from .agents import agents from .base import call_command, cli from .clean_versions import clean_versions from .completion import completion from .livecheck import livecheck from .model import model f...
21.5
74
0.699225
0
0
0
0
0
0
0
0
227
0.351938
ad86d9d40c3dcc454a710b3a5148587ea08bb4f9
1,364
py
Python
generator.py
cenarturkmen/watercolor-CycleGAN
94673e5f723904faab3114a9b63ae5d9e1de3de3
[ "MIT" ]
9
2021-04-23T21:57:04.000Z
2021-09-01T08:06:48.000Z
generator.py
cenarturkmen/watercolor-CycleGAN
94673e5f723904faab3114a9b63ae5d9e1de3de3
[ "MIT" ]
null
null
null
generator.py
cenarturkmen/watercolor-CycleGAN
94673e5f723904faab3114a9b63ae5d9e1de3de3
[ "MIT" ]
null
null
null
from model_utils import Upsample, Downsample from torch import nn class CycleGAN_Unet_Generator(nn.Module): def __init__(self, filter=64): super(CycleGAN_Unet_Generator, self).__init__() self.downsamples = nn.ModuleList([ Downsample(3, filter, kernel_size=4, apply_instancenorm=False), ...
34.974359
100
0.544721
1,297
0.95088
0
0
0
0
0
0
121
0.08871
ad88dd61bbd09019864be52cbe4cf8c91fba88d8
337
py
Python
accelerator/models/ethno_racial_identity.py
masschallenge/django-accelerator
8af898b574be3b8335edc8961924d1c6fa8b5fd5
[ "MIT" ]
6
2017-06-14T19:34:01.000Z
2020-03-08T07:16:59.000Z
accelerator/models/ethno_racial_identity.py
masschallenge/django-accelerator
8af898b574be3b8335edc8961924d1c6fa8b5fd5
[ "MIT" ]
160
2017-06-20T17:12:13.000Z
2022-03-30T13:53:12.000Z
accelerator/models/ethno_racial_identity.py
masschallenge/django-accelerator
8af898b574be3b8335edc8961924d1c6fa8b5fd5
[ "MIT" ]
null
null
null
import swapper from accelerator_abstract.models.base_ethno_racial_identity import ( BaseEthnoRacialIdentity, ) class EthnoRacialIdentity(BaseEthnoRacialIdentity): class Meta(BaseEthnoRacialIdentity.Meta): swappable = swapper.swappable_setting( BaseEthnoRacialIdentity.Meta.app_label, 'Ethno...
30.636364
74
0.79822
219
0.649852
0
0
0
0
0
0
21
0.062315
ad8b2d0ea0221f96e6e009e09186a0d67f3d1e7e
2,303
py
Python
setup.py
HaaLeo/vague-requirements-scripts
e08b66aa6c0d17718bec1deb8c694d6b8237259b
[ "BSD-3-Clause" ]
null
null
null
setup.py
HaaLeo/vague-requirements-scripts
e08b66aa6c0d17718bec1deb8c694d6b8237259b
[ "BSD-3-Clause" ]
null
null
null
setup.py
HaaLeo/vague-requirements-scripts
e08b66aa6c0d17718bec1deb8c694d6b8237259b
[ "BSD-3-Clause" ]
null
null
null
# ------------------------------------------------------------------------------------------------------ # Copyright (c) Leo Hanisch. All rights reserved. # Licensed under the BSD 3-Clause License. See LICENSE.txt in the project root for license information. # ---------------------------------------------------------...
40.403509
133
0.605297
0
0
0
0
0
0
0
0
1,593
0.691706
ad8bbb939788d04c4a798ed4657ccace4dec673e
43
py
Python
src/python/WMCore/WMRuntime/Scripts/__init__.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
21
2015-11-19T16:18:45.000Z
2021-12-02T18:20:39.000Z
src/python/WMCore/WMRuntime/Scripts/__init__.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
5,671
2015-01-06T14:38:52.000Z
2022-03-31T22:11:14.000Z
src/python/WMCore/WMRuntime/Scripts/__init__.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
67
2015-01-21T15:55:38.000Z
2022-02-03T19:53:13.000Z
#!/usr/bin/env python """ _Scripts_ """
5.375
21
0.55814
0
0
0
0
0
0
0
0
41
0.953488
ad8c13ec67ec87fbb7e52ba3ef0d5416c7d7a8bc
6,691
py
Python
combine-json.py
efficient/catbench
4f66541efd8318109c4ac150898d60f023e7aba5
[ "Apache-2.0" ]
10
2017-12-12T17:20:41.000Z
2021-05-03T14:40:35.000Z
combine-json.py
efficient/catbench
4f66541efd8318109c4ac150898d60f023e7aba5
[ "Apache-2.0" ]
null
null
null
combine-json.py
efficient/catbench
4f66541efd8318109c4ac150898d60f023e7aba5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import argparse; import os; import sys; import json; def setup_optparse(): parser = argparse.ArgumentParser(); parser.add_argument('--input', '-i', dest='file1', help='json to append to'); parser.add_argument('--append', '-a', nargs='+', dest='files2', ...
46.144828
166
0.567329
0
0
0
0
0
0
0
0
1,846
0.275893
ad8c7679c4fcaabd0666e9de8206c186f2f5bf7b
773
py
Python
following.py
yoshualukash/insta-crawler
c2b9b150e4fff70cb03ea49c08fb46ffc8f23dd0
[ "MIT" ]
null
null
null
following.py
yoshualukash/insta-crawler
c2b9b150e4fff70cb03ea49c08fb46ffc8f23dd0
[ "MIT" ]
null
null
null
following.py
yoshualukash/insta-crawler
c2b9b150e4fff70cb03ea49c08fb46ffc8f23dd0
[ "MIT" ]
null
null
null
# Get instance import instaloader import json L = instaloader.Instaloader(max_connection_attempts=0) # Login or load session username = '' password = '' L.login(username, password) # (login) # Obtain profile metadata instagram_target = '' profile = instaloader.Profile.from_username(L.context, ins...
29.730769
83
0.720569
0
0
0
0
0
0
0
0
169
0.218629
ad8d60c4379e74e8ce58021ef988f95871703eca
11,966
py
Python
ihs/collector/tasks.py
la-mar/ihs-deo
250d3edeb9e3ae4a407285e136b7e911f1d75e82
[ "Apache-2.0" ]
null
null
null
ihs/collector/tasks.py
la-mar/ihs-deo
250d3edeb9e3ae4a407285e136b7e911f1d75e82
[ "Apache-2.0" ]
null
null
null
ihs/collector/tasks.py
la-mar/ihs-deo
250d3edeb9e3ae4a407285e136b7e911f1d75e82
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations import logging from datetime import date, datetime, timedelta from typing import Dict, Generator, List, Optional, Union, Tuple import pandas as pd import metrics from api.models import ( # noqa ChangeDeleteLog, County, ProductionHorizontal, ProductionMasterHorizont...
31.161458
127
0.636637
0
0
406
0.033929
0
0
0
0
4,309
0.360104
ad8e0f494686da07f4c61d50f681147ad0112a38
5,271
py
Python
hivprotmut/structures/pdbcuration.py
victor-gil-sepulveda/PhD-HIVProteaseMutation
164e723605ceaaef246d2b8916fd5aca980e7734
[ "MIT" ]
null
null
null
hivprotmut/structures/pdbcuration.py
victor-gil-sepulveda/PhD-HIVProteaseMutation
164e723605ceaaef246d2b8916fd5aca980e7734
[ "MIT" ]
null
null
null
hivprotmut/structures/pdbcuration.py
victor-gil-sepulveda/PhD-HIVProteaseMutation
164e723605ceaaef246d2b8916fd5aca980e7734
[ "MIT" ]
null
null
null
""" Created on 25/8/2014 @author: victor """ import prody import numpy class CurationSelections(): LIGAND_SELECTION = "hetero not water not ion" HEAVY_LIGAND_SELECTION = "hetero and not water and not ion and not hydrogen" PROTEIN_CHAIN_TEMPLATE = "protein chain %s" def __init__(self): pa...
43.561983
110
0.658509
248
0.04705
0
0
0
0
0
0
2,364
0.448492
ad8f7bbcca004c832305ceeebbf23ba748e94eff
933
py
Python
Session 3/Dictionaries/Accessing, writing & deleting data.py
Tassneem04Hamdy/AUG-Problem-Solving-For-Bioinformatics-Level-1-
7273610cc2e37acb65530dc384472e78ee8c30f7
[ "MIT" ]
4
2021-04-16T12:27:16.000Z
2021-10-08T19:05:33.000Z
Session 3/Dictionaries/Accessing, writing & deleting data.py
Tassneem04Hamdy/AUG-Problem-Solving-For-Bioinformatics-Level-1-
7273610cc2e37acb65530dc384472e78ee8c30f7
[ "MIT" ]
null
null
null
Session 3/Dictionaries/Accessing, writing & deleting data.py
Tassneem04Hamdy/AUG-Problem-Solving-For-Bioinformatics-Level-1-
7273610cc2e37acb65530dc384472e78ee8c30f7
[ "MIT" ]
5
2021-04-18T10:46:44.000Z
2021-05-03T16:13:25.000Z
my_dictionary = { 'type': 'Fruits', 'name': 'Apple', 'color': 'Green', 'available': True, 'number': 25 } print(my_dictionary) print(my_dictionary['name']) # searching with wrong key print(my_dictionary['weight']) ############################################################### # printing keys and ...
21.697674
63
0.45552
0
0
0
0
0
0
0
0
551
0.590568
ad8fb8dc439638934875f09ce4b704d202abf421
18,426
py
Python
old/data_handler_VALVE.py
dlaredo/NASA_RUL_-CMAPS-
b4fc4267e2abb4b0542e4658fd8ee931ba848fd1
[ "BSD-3-Clause" ]
27
2018-05-09T09:18:04.000Z
2022-01-14T06:37:53.000Z
old/data_handler_VALVE.py
hard10086/NASA_RUL_-CMAPS-
b4fc4267e2abb4b0542e4658fd8ee931ba848fd1
[ "BSD-3-Clause" ]
1
2019-06-11T09:09:22.000Z
2019-10-08T21:23:07.000Z
old/data_handler_VALVE.py
hard10086/NASA_RUL_-CMAPS-
b4fc4267e2abb4b0542e4658fd8ee931ba848fd1
[ "BSD-3-Clause" ]
9
2018-07-06T03:40:47.000Z
2022-01-06T07:30:26.000Z
import numpy as np import random import pandas as pd import sqlalchemy from sqlalchemy.orm import sessionmaker from sqlalchemy.sql import select from sqlalchemy import and_ from sqlalchemy import between from sqlalchemy.sql import exists from sqlalchemy import desc from datetime import datetime, timezone, timedelta ...
31.714286
195
0.711712
16,349
0.887279
0
0
530
0.028764
0
0
11,121
0.603549
ad9068a44289e0f08b1e0f06b78ce22398e4bb52
350
py
Python
Course 01 - Getting Started with Python/Extra Studies/Basics/ex036.py
marcoshsq/python_practical_exercises
77136cd4bc0f34acde3380ffdc5af74f7a960670
[ "MIT" ]
9
2022-03-22T16:45:17.000Z
2022-03-25T20:22:35.000Z
Course 01 - Getting Started with Python/Extra Studies/Basics/ex036.py
marcoshsq/python_practical_exercises
77136cd4bc0f34acde3380ffdc5af74f7a960670
[ "MIT" ]
null
null
null
Course 01 - Getting Started with Python/Extra Studies/Basics/ex036.py
marcoshsq/python_practical_exercises
77136cd4bc0f34acde3380ffdc5af74f7a960670
[ "MIT" ]
3
2022-03-22T17:03:38.000Z
2022-03-29T17:20:55.000Z
import math # Extra Exercise 004 """Write a program that asks for the radius of a circle, calculates and displays its area.""" radius = float(input("Enter the radius of the circle: ")) area = math.pi * radius**2 circumference = 2 * math.pi * radius print( f"The area of the circle is {area:.2f} and its circumfere...
26.923077
93
0.708571
0
0
0
0
0
0
0
0
231
0.66
ad908fb8710091b44d78b703219fe574d5101cb4
4,753
py
Python
bw_tools/modules/bw_framer/bw_framer.py
ben-wilson-github/bw_tools
5a0701a39b5af3fcd15021a2600ff2ff1ce41284
[ "MIT" ]
4
2021-10-21T08:28:43.000Z
2022-03-17T04:01:55.000Z
bw_tools/modules/bw_framer/bw_framer.py
ben-wilson-github/bw_tools
5a0701a39b5af3fcd15021a2600ff2ff1ce41284
[ "MIT" ]
null
null
null
bw_tools/modules/bw_framer/bw_framer.py
ben-wilson-github/bw_tools
5a0701a39b5af3fcd15021a2600ff2ff1ce41284
[ "MIT" ]
null
null
null
from __future__ import annotations import os from functools import partial from pathlib import Path from typing import TYPE_CHECKING, Dict from PySide2.QtGui import QIcon, QKeySequence from bw_tools.common.bw_node import BWNode from bw_tools.modules.bw_settings.bw_settings import BWModuleSettings from PySide2.QtWidg...
32.77931
95
0.676415
435
0.091521
0
0
0
0
0
0
547
0.115085
ad924de515f8ae85983543885c9a8879cf74af0c
9,674
py
Python
CodePipeline.py
larroy/codebuild_pipeline_skeleton
20c180e6e9e92df86c7fc38f3a90ba96b1afc711
[ "MIT" ]
null
null
null
CodePipeline.py
larroy/codebuild_pipeline_skeleton
20c180e6e9e92df86c7fc38f3a90ba96b1afc711
[ "MIT" ]
null
null
null
CodePipeline.py
larroy/codebuild_pipeline_skeleton
20c180e6e9e92df86c7fc38f3a90ba96b1afc711
[ "MIT" ]
1
2020-03-05T23:49:04.000Z
2020-03-05T23:49:04.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Github attached AWS Code Pipeline""" __author__ = 'Pedro Larroy' __version__ = '0.1' import boto3 import os import sys import subprocess import logging from troposphere import Parameter, Ref, Template, iam from troposphere.iam import Role from troposphere.s3 import B...
32.139535
113
0.535766
0
0
0
0
0
0
0
0
2,216
0.229068
ad92a0289e1e8498d72a439196ee28b52ed801be
2,723
py
Python
src/huaytools/_demo/argparse_demo.py
imhuay/studies-gitbook
69a31c20c91d131d0fafce0622f4035b9b95e93a
[ "MIT" ]
100
2021-10-13T01:22:27.000Z
2022-03-31T09:52:49.000Z
src/huaytools/_demo/argparse_demo.py
imhuay/studies-gitbook
69a31c20c91d131d0fafce0622f4035b9b95e93a
[ "MIT" ]
null
null
null
src/huaytools/_demo/argparse_demo.py
imhuay/studies-gitbook
69a31c20c91d131d0fafce0622f4035b9b95e93a
[ "MIT" ]
27
2021-11-01T01:05:09.000Z
2022-03-31T03:32:01.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- """ Time: 2021-01-18 19:20 Author: huayang Subject: argparse usage demo References: https://docs.python.org/zh-cn/3/library/argparse.html#the-add-argument-method """ import argparse def get_args(test_arg_ls: list = None): """ 主要是 `.add_ar...
23.474138
89
0.517811
0
0
0
0
0
0
0
0
2,432
0.700259
ad93a1fe02a22cf958094f14b1d5c32570598491
318
py
Python
src/test.py
qitar888/ga2016_final_project
f573f683cc2b5cb73a863f3e83f90fc3ced6454a
[ "MIT" ]
null
null
null
src/test.py
qitar888/ga2016_final_project
f573f683cc2b5cb73a863f3e83f90fc3ced6454a
[ "MIT" ]
null
null
null
src/test.py
qitar888/ga2016_final_project
f573f683cc2b5cb73a863f3e83f90fc3ced6454a
[ "MIT" ]
null
null
null
import cost_function as cf import pic target_image = pic.pic2rgb("../data/img03.jpg", 50, 50) cf.set_target_image(target_image) s = "(H 0.73 (V 0.451 (H 0.963 (L color)(L color))(V 0.549 (L color)(L color)))(L color))" matrix = cf.to_array(s, 50, 50, 1) #print(matrix) pic.rgb2pic(matrix, 'LAB', "./master_piece.png")
35.333333
90
0.68239
0
0
0
0
0
0
0
0
144
0.45283
ad942e6997ea2601c7bed854c8c21558ab9e8c01
444
py
Python
vkquick/pretty_view.py
lordralinc/vkquick
55ca7bb34f7ae5a5b4eb148e94483b995ef9caad
[ "MIT" ]
47
2021-01-12T15:27:04.000Z
2022-03-26T19:37:54.000Z
vkquick/pretty_view.py
lordralinc/vkquick
55ca7bb34f7ae5a5b4eb148e94483b995ef9caad
[ "MIT" ]
40
2020-07-21T15:36:01.000Z
2021-01-10T15:42:34.000Z
vkquick/pretty_view.py
lordralinc/vkquick
55ca7bb34f7ae5a5b4eb148e94483b995ef9caad
[ "MIT" ]
23
2020-07-20T03:31:11.000Z
2021-01-07T12:18:49.000Z
import json import pygments.formatters import pygments.lexers def pretty_view(mapping: dict, /) -> str: """ Args: mapping: Returns: """ dumped_mapping = json.dumps(mapping, ensure_ascii=False, indent=4) pretty_mapping = pygments.highlight( dumped_mapping, pygments.lex...
19.304348
70
0.657658
0
0
0
0
0
0
0
0
71
0.15991
ad9529080b4c0067a7c91cc54c080ae6193fb41f
873
py
Python
firefox/install.py
lfkeitel/dotfiles
7fa891451fee1834b5347638f6405afa654a55a6
[ "BSD-3-Clause" ]
2
2018-11-19T07:57:00.000Z
2020-04-01T22:42:45.000Z
firefox/install.py
lfkeitel/dotfiles
7fa891451fee1834b5347638f6405afa654a55a6
[ "BSD-3-Clause" ]
19
2017-10-13T02:42:47.000Z
2020-08-13T20:42:28.000Z
firefox/install.py
lfkeitel/dotfiles
7fa891451fee1834b5347638f6405afa654a55a6
[ "BSD-3-Clause" ]
null
null
null
from pathlib import Path from configparser import ConfigParser from utils.installer import Installer from utils.chalk import print_header from utils.utils import link_file import utils.platform as platform MOZILLA_DIR = Path.home().joinpath(".mozilla", "firefox") SCRIPT_DIR = Path(__file__).parent class Main(Instal...
28.16129
82
0.667812
569
0.651775
0
0
0
0
0
0
99
0.113402
ad9650632cdafda2546e12eb7a9297786c36ea75
917
py
Python
Example/wangyi.py
Willshon/Python
a10bba4a1e4b7deb3dce12fa11b4fee6f07f91e0
[ "MIT" ]
null
null
null
Example/wangyi.py
Willshon/Python
a10bba4a1e4b7deb3dce12fa11b4fee6f07f91e0
[ "MIT" ]
null
null
null
Example/wangyi.py
Willshon/Python
a10bba4a1e4b7deb3dce12fa11b4fee6f07f91e0
[ "MIT" ]
null
null
null
# 网易云音乐批量下载 # By Tsing # Python3.4.4 import requests import urllib # 榜单歌曲批量下载 # r = requests.get('http://music.163.com/api/playlist/detail?id=2884035') # 网易原创歌曲榜 # r = requests.get('http://music.163.com/api/playlist/detail?id=19723756') # 云音乐飙升榜 # r = requests.get('http://music.163.com/api/playlist/detai...
38.208333
103
0.651036
0
0
0
0
0
0
0
0
928
0.792485
ad974a16f5e2eba5c65ce3b727dca372dec76010
1,353
py
Python
cloudkittyclient/v1/info.py
mmariani/python-cloudkittyclient
92f51ded48b261231f226669f75c52f199584d5c
[ "Apache-2.0" ]
null
null
null
cloudkittyclient/v1/info.py
mmariani/python-cloudkittyclient
92f51ded48b261231f226669f75c52f199584d5c
[ "Apache-2.0" ]
null
null
null
cloudkittyclient/v1/info.py
mmariani/python-cloudkittyclient
92f51ded48b261231f226669f75c52f199584d5c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 Objectif Libre # # 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 ...
35.605263
78
0.679231
681
0.503326
0
0
0
0
0
0
986
0.728751
ad97e5e6daa0d77eaf62c07024df8c1d58d486a8
2,450
py
Python
PiCN/Layers/PacketEncodingLayer/BasicPacketEncodingLayer.py
NikolaiRutz/PiCN
7775c61caae506a88af2e4ec34349e8bd9098459
[ "BSD-3-Clause" ]
null
null
null
PiCN/Layers/PacketEncodingLayer/BasicPacketEncodingLayer.py
NikolaiRutz/PiCN
7775c61caae506a88af2e4ec34349e8bd9098459
[ "BSD-3-Clause" ]
null
null
null
PiCN/Layers/PacketEncodingLayer/BasicPacketEncodingLayer.py
NikolaiRutz/PiCN
7775c61caae506a88af2e4ec34349e8bd9098459
[ "BSD-3-Clause" ]
null
null
null
""" De- and Encoding Layer, using a predefined Encoder """ import multiprocessing from PiCN.Layers.PacketEncodingLayer.Encoder import BasicEncoder from PiCN.Processes import LayerProcess class BasicPacketEncodingLayer(LayerProcess): """ De- and Encoding Layer, using a predefined Encoder """ def __init__(sel...
38.888889
110
0.655102
2,259
0.922041
0
0
140
0.057143
0
0
529
0.215918
ad9a51daee278697203eb4c710d5438cdf50f670
6,187
py
Python
bounce2.py
Yokohama-Miyazawa/bounce_games
6dcc23a254cdae56e4bdf9bf40a7609d5995e4e6
[ "MIT" ]
4
2019-03-03T01:18:56.000Z
2021-02-26T19:53:01.000Z
bounce2.py
Yokohama-Miyazawa/bounce_games
6dcc23a254cdae56e4bdf9bf40a7609d5995e4e6
[ "MIT" ]
null
null
null
bounce2.py
Yokohama-Miyazawa/bounce_games
6dcc23a254cdae56e4bdf9bf40a7609d5995e4e6
[ "MIT" ]
1
2021-12-12T00:52:02.000Z
2021-12-12T00:52:02.000Z
from tkinter import * import random import time class Widget(object): # 画面上で動く物の基本となるクラス def __init__(self, window, size, color, pos, speed=[0, 0]): self.window = window self.size = size self.color = color self.pos = pos self.speed = speed def acty(self): # インスタンスを動...
31.090452
76
0.591563
3,673
0.536753
0
0
0
0
0
0
1,224
0.178869
ad9ab3e056d036c86285fad9ebbf157d0f0bf489
4,074
py
Python
simpleblog/blog/views.py
GrayAn/simpleblog
a3be8e3a6edf25caad80ae8013fcc6ea4e8003d4
[ "MIT" ]
null
null
null
simpleblog/blog/views.py
GrayAn/simpleblog
a3be8e3a6edf25caad80ae8013fcc6ea4e8003d4
[ "MIT" ]
null
null
null
simpleblog/blog/views.py
GrayAn/simpleblog
a3be8e3a6edf25caad80ae8013fcc6ea4e8003d4
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.http import JsonResponse, HttpResponse, HttpResponseForbidden from django.views import generic from .models import Post, Vote class IndexView(generic.ListView): context_object_name = 'posts' model = Post paginate_by = 50 template_name = 'blog/in...
30.631579
103
0.633284
2,949
0.723859
0
0
0
0
0
0
495
0.121502
ad9d9fb7a38ac292e01525e196638ba0f6d199ab
2,303
py
Python
pyatv/protocols/mrp/protobuf/PlayerClientPropertiesMessage_pb2.py
crxporter/pyatv
e694a210b3810c64044116bf40e7b75420b5fe75
[ "MIT" ]
null
null
null
pyatv/protocols/mrp/protobuf/PlayerClientPropertiesMessage_pb2.py
crxporter/pyatv
e694a210b3810c64044116bf40e7b75420b5fe75
[ "MIT" ]
null
null
null
pyatv/protocols/mrp/protobuf/PlayerClientPropertiesMessage_pb2.py
crxporter/pyatv
e694a210b3810c64044116bf40e7b75420b5fe75
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: pyatv/protocols/mrp/protobuf/PlayerClientPropertiesMessage.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from g...
57.575
500
0.860617
0
0
0
0
0
0
0
0
958
0.415979
ad9e41e35c13ed20157dba440d5e3dc168b4b9c8
524
py
Python
app_challenges_sections_units/migrations/0036_auto_20190619_1903.py
Audiotuete/backend_wagtail_api
3c5a4a610ffdbb75d45a57fc670e2ae3b7178c62
[ "MIT" ]
null
null
null
app_challenges_sections_units/migrations/0036_auto_20190619_1903.py
Audiotuete/backend_wagtail_api
3c5a4a610ffdbb75d45a57fc670e2ae3b7178c62
[ "MIT" ]
null
null
null
app_challenges_sections_units/migrations/0036_auto_20190619_1903.py
Audiotuete/backend_wagtail_api
3c5a4a610ffdbb75d45a57fc670e2ae3b7178c62
[ "MIT" ]
null
null
null
# Generated by Django 2.0.8 on 2019-06-19 19:03 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('wagtailimages', '0001_squashed_0021'), ('app_challenges_sections_units', '0035_auto_20190619_1847'), ] operations = [ migrations.RenameModel...
22.782609
69
0.603053
439
0.837786
0
0
0
0
0
0
188
0.358779
ad9eadfbff4068c3a66cb70f04ac1b2216de5ebe
2,534
py
Python
self_organising_systems/texture_ca/losses.py
google-research/self-organizing-systems
2f96d0b0cd6781f8a65d446dad5c5b394e5adf93
[ "Apache-2.0" ]
2
2020-02-04T08:05:52.000Z
2020-02-04T08:06:18.000Z
self_organising_systems/texture_ca/losses.py
google-research/self-organizing-systems
2f96d0b0cd6781f8a65d446dad5c5b394e5adf93
[ "Apache-2.0" ]
null
null
null
self_organising_systems/texture_ca/losses.py
google-research/self-organizing-systems
2f96d0b0cd6781f8a65d446dad5c5b394e5adf93
[ "Apache-2.0" ]
null
null
null
from self_organising_systems.texture_ca.config import cfg from self_organising_systems.shared.util import imread import tensorflow as tf import numpy as np style_layers = ['block%d_conv1'%i for i in range(1, 6)] content_layer = 'block4_conv2' class StyleModel: def __init__(self, input_texture_path): vgg = tf....
36.724638
92
0.686267
2,284
0.901342
0
0
633
0.249803
0
0
142
0.056038
ad9eda249a4ad6c95e811e1a7a874b595d6c8d1f
2,713
py
Python
edflow/hooks/runtime_input.py
rromb/edflow
8681cadf1770ca1bc1515535768dc14cb0758b0f
[ "MIT" ]
2
2021-03-10T13:42:12.000Z
2021-03-10T14:29:53.000Z
edflow/hooks/runtime_input.py
rromb/edflow
8681cadf1770ca1bc1515535768dc14cb0758b0f
[ "MIT" ]
null
null
null
edflow/hooks/runtime_input.py
rromb/edflow
8681cadf1770ca1bc1515535768dc14cb0758b0f
[ "MIT" ]
null
null
null
import numpy as np import os import traceback import yaml from edflow.hooks.hook import Hook from edflow.util import walk, retrieve, contains_key from edflow.custom_logging import get_logger class RuntimeInputHook(Hook): """Given a textfile reads that at each step and passes the results to a callback functio...
33.493827
79
0.542941
2,518
0.928124
0
0
0
0
0
0
724
0.266863
ad9f4705eca81ea52720a66a8b32f82f6946af08
11,392
py
Python
tools/launcher.py
agentx-cgn/Hannibal
8157261c28bd67755dad38ef6b7862d1b736e644
[ "JasPer-2.0" ]
189
2015-01-10T07:35:16.000Z
2021-05-05T08:21:22.000Z
tools/launcher.py
agentx-cgn/Hannibal
8157261c28bd67755dad38ef6b7862d1b736e644
[ "JasPer-2.0" ]
6
2015-02-02T19:18:34.000Z
2017-12-07T11:19:23.000Z
tools/launcher.py
agentx-cgn/Hannibal
8157261c28bd67755dad38ef6b7862d1b736e644
[ "JasPer-2.0" ]
15
2016-03-14T12:27:59.000Z
2020-04-28T23:24:05.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' https://docs.python.org/2/library/subprocess.html#popen-objects http://stackoverflow.com/questions/1606795/catching-stdout-in-realtime-from-subprocess http://askubuntu.com/questions/458041/find-x-window-name http://stackoverflow.com/questions/9681959/how-can-i-use-xdot...
30.297872
122
0.545207
0
0
0
0
0
0
0
0
4,937
0.433374
ad9f81a0cbf6847b29b2b1b0b3d68f028ae28dfe
6,265
py
Python
wurst/brightway/extract_database.py
kais-siala/wurst
448dd4e9e0bfbde956c2913222222509ff2b14e1
[ "BSD-2-Clause" ]
null
null
null
wurst/brightway/extract_database.py
kais-siala/wurst
448dd4e9e0bfbde956c2913222222509ff2b14e1
[ "BSD-2-Clause" ]
null
null
null
wurst/brightway/extract_database.py
kais-siala/wurst
448dd4e9e0bfbde956c2913222222509ff2b14e1
[ "BSD-2-Clause" ]
null
null
null
from bw2data.database import DatabaseChooser try: from bw2data.backends.peewee import SQLiteBackend, ActivityDataset, ExchangeDataset except ImportError: from bw2data.backends import SQLiteBackend, ActivityDataset, ExchangeDataset from tqdm import tqdm import copy def _list_or_dict(obj): if isinstance(obj...
37.969697
186
0.635914
0
0
238
0.037989
0
0
0
0
1,975
0.315243
ad9faceb7907e8d07a0ac107b43606f9fd453a2b
874
py
Python
ex070.py
raphael-abrantes/exercises-python
71f1e7cba2f56173c256d43e4fe33a43722b4484
[ "MIT" ]
null
null
null
ex070.py
raphael-abrantes/exercises-python
71f1e7cba2f56173c256d43e4fe33a43722b4484
[ "MIT" ]
null
null
null
ex070.py
raphael-abrantes/exercises-python
71f1e7cba2f56173c256d43e4fe33a43722b4484
[ "MIT" ]
null
null
null
vTotal = 0 i = 0 vMenorValor = 0 cont = 1 vMenorValorItem = '' while True: vItem = str(input('Insira o nome do produto: ')) vValor = float(input('Valor do produto: R$')) vTotal = vTotal + vValor if vValor >= 1000: i = i + 1 if cont == 1: vMenorValor = vValor vM...
27.3125
85
0.565217
0
0
0
0
0
0
0
0
288
0.329519
ada0c87b43dddcb6a0efe0af0db1a22cebfdc36f
26,826
py
Python
sdscli/adapters/hysds/configure.py
sdskit/sdscli
9bb96e880c8251d1dce56b901c1289ed80f83ce7
[ "Apache-2.0" ]
null
null
null
sdscli/adapters/hysds/configure.py
sdskit/sdscli
9bb96e880c8251d1dce56b901c1289ed80f83ce7
[ "Apache-2.0" ]
24
2018-03-14T15:37:38.000Z
2021-11-30T21:59:44.000Z
sdscli/adapters/hysds/configure.py
sdskit/sdscli
9bb96e880c8251d1dce56b901c1289ed80f83ce7
[ "Apache-2.0" ]
13
2018-02-22T15:01:35.000Z
2019-02-07T18:58:57.000Z
""" Configuration for HySDS cluster. """ from __future__ import print_function from __future__ import unicode_literals from __future__ import division from __future__ import absolute_import from builtins import open from builtins import str from future import standard_library standard_library.install_aliases() import...
38.213675
114
0.456348
0
0
0
0
0
0
0
0
8,127
0.302952
a8db9e49f13dfef65d13b5c20b4f322d715e8a17
17,625
py
Python
robot_control/iiwa_ros-master/iiwa_gazebo/scripts/gazebo_iiwa_keyboard_cmd.py
stanFurrer/Multimodal-solution-for-grasp-stability-prediction
b7d07a217e2a4846f3fe782fe7c3f4942f3299b3
[ "MIT" ]
null
null
null
robot_control/iiwa_ros-master/iiwa_gazebo/scripts/gazebo_iiwa_keyboard_cmd.py
stanFurrer/Multimodal-solution-for-grasp-stability-prediction
b7d07a217e2a4846f3fe782fe7c3f4942f3299b3
[ "MIT" ]
null
null
null
robot_control/iiwa_ros-master/iiwa_gazebo/scripts/gazebo_iiwa_keyboard_cmd.py
stanFurrer/Multimodal-solution-for-grasp-stability-prediction
b7d07a217e2a4846f3fe782fe7c3f4942f3299b3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright (C) 2021 Learning Algorithms and Systems Laboratory, EPFL, Switzerland # Authors: # Lorenzo Panchett (lorenzo.panchetti@epfl.ch) # # Website: lasa.epfl.ch # # This file is part of iiwa_gazebo. # # This program is free software: you can redistribute it and/or modify # it under the t...
32.51845
119
0.607035
0
0
0
0
0
0
0
0
4,338
0.246128
a8dd9e16ff0637026c75f14c84e32a7e547064f3
2,829
py
Python
python_code/Quadrotor/ProblemStatement/targetSlowResponse.py
cholazzzb/APF_Swarm_Control_Simulator
a58a1f55cd709f12928cc31d2320f7833d761c50
[ "MIT" ]
2
2021-12-21T00:39:46.000Z
2022-02-28T11:11:27.000Z
python_code/Quadrotor/ProblemStatement/targetSlowResponse.py
cholazzzb/APF_Swarm_Control_Simulator
a58a1f55cd709f12928cc31d2320f7833d761c50
[ "MIT" ]
1
2021-02-03T13:24:13.000Z
2021-02-03T23:56:33.000Z
python_code/Quadrotor/ProblemStatement/targetSlowResponse.py
cholazzzb/APF_Swarm_Control_Simulator
a58a1f55cd709f12928cc31d2320f7833d761c50
[ "MIT" ]
1
2021-04-16T18:25:15.000Z
2021-04-16T18:25:15.000Z
import matplotlib.pyplot as plt import math import sys sys.path.append('../') from Report import Report from QuadrotorARSim import QuadrotorARSim from Ship import Ship sys.path.append('../') from Agent import Agent from Target import Target from SwarmController import SwarmController # Build Object for Attitude and Po...
36.269231
78
0.645811
0
0
0
0
0
0
0
0
514
0.18169
a8ded0f79cfee5cbfebfd883ed9fb8314fcc5c0e
161
py
Python
internetarchive/spew-shelf.py
wumpus/visigoth-data
6887937f4547a5c8a9b52c5a0e75cb258cc55c97
[ "Apache-2.0" ]
1
2019-02-18T19:34:24.000Z
2019-02-18T19:34:24.000Z
internetarchive/spew-shelf.py
wumpus/visigoth-data
6887937f4547a5c8a9b52c5a0e75cb258cc55c97
[ "Apache-2.0" ]
null
null
null
internetarchive/spew-shelf.py
wumpus/visigoth-data
6887937f4547a5c8a9b52c5a0e75cb258cc55c97
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import shelve import sys for f in sys.argv[1:]: with shelve.open(f, flag='r') as d: for k in d: print(k,d[k])
13.416667
39
0.552795
0
0
0
0
0
0
0
0
25
0.15528
a8df969a1e348281f45c3f81e7d78518202537bb
72
py
Python
aioblescan/__init__.py
nasa-watchdog/aioblescan-ucsb
1202906f6a96208f1887f0026a802c034019b068
[ "MIT" ]
2
2019-10-11T19:13:34.000Z
2020-06-03T14:11:33.000Z
aioblescan/__init__.py
nasa-watchdog/aioblescan-ucsb
1202906f6a96208f1887f0026a802c034019b068
[ "MIT" ]
null
null
null
aioblescan/__init__.py
nasa-watchdog/aioblescan-ucsb
1202906f6a96208f1887f0026a802c034019b068
[ "MIT" ]
4
2019-11-19T22:42:17.000Z
2022-01-18T21:56:31.000Z
# from .aioblescan import * from . import plugins __version__ = '0.2.1'
14.4
25
0.708333
0
0
0
0
0
0
0
0
8
0.111111
a8dfb79a87fbf5130e974794f6839e17cb680477
1,767
py
Python
cajas/users/api/views/validate_partner_withdraw.py
dmontoya1/cajas
5eb3d5835250d5dafae398082200b79c1ca8063b
[ "MIT" ]
null
null
null
cajas/users/api/views/validate_partner_withdraw.py
dmontoya1/cajas
5eb3d5835250d5dafae398082200b79c1ca8063b
[ "MIT" ]
null
null
null
cajas/users/api/views/validate_partner_withdraw.py
dmontoya1/cajas
5eb3d5835250d5dafae398082200b79c1ca8063b
[ "MIT" ]
null
null
null
from django.shortcuts import get_object_or_404 from rest_framework import status from rest_framework.views import APIView from rest_framework.response import Response from cajas.users.models.partner import Partner from cajas.loans.models.loan import Loan, LoanType class ValidatePartnerWithdraw(APIView): def p...
31.553571
95
0.606678
1,498
0.846806
0
0
0
0
0
0
219
0.123799
a8dfd18189d8ca071a33df8e68b7e90fd7a7c3a0
2,666
py
Python
pi88reader/pi88_to_excel.py
natter1/pi88reader
9698b25c3df0f1175fcbcec6c6ab22f6fe3aca6b
[ "MIT" ]
null
null
null
pi88reader/pi88_to_excel.py
natter1/pi88reader
9698b25c3df0f1175fcbcec6c6ab22f6fe3aca6b
[ "MIT" ]
null
null
null
pi88reader/pi88_to_excel.py
natter1/pi88reader
9698b25c3df0f1175fcbcec6c6ab22f6fe3aca6b
[ "MIT" ]
null
null
null
""" todo: check pandas """ from openpyxl import Workbook from openpyxl.styles import Font from pi88reader.pi88_importer import PI88Measurement, SegmentType def main(): filename = '..\\resources\\quasi_static_12000uN.tdm' filename = '..\\resources\\AuSn_Creep\\1000uN 01 LC.tdm' measurement = PI88Measureme...
32.91358
75
0.626782
2,216
0.831208
0
0
448
0.168042
0
0
404
0.151538
a8e1a924cdbc26ab3a5fbd0dc19d7a202d15d1ad
55,228
py
Python
caffe_files/caffe_traininglayers.py
excalib/interactive-deep-colorization
8247da3cc83e54201b20d5a67b997120bb368436
[ "MIT" ]
1
2021-03-26T14:42:01.000Z
2021-03-26T14:42:01.000Z
caffe_files/caffe_traininglayers.py
SleepProgger/interactive-deep-colorization
8247da3cc83e54201b20d5a67b997120bb368436
[ "MIT" ]
null
null
null
caffe_files/caffe_traininglayers.py
SleepProgger/interactive-deep-colorization
8247da3cc83e54201b20d5a67b997120bb368436
[ "MIT" ]
1
2017-09-13T15:36:23.000Z
2017-09-13T15:36:23.000Z
# ************************************** # ***** Richard Zhang / 2016.08.06 ***** # ************************************** import numpy as np import warnings import os import sklearn.neighbors as nn import caffe from skimage import color import matplotlib.pyplot as plt import math import platform import cv2 import rz_f...
37.931319
226
0.573405
44,205
0.800409
0
0
0
0
0
0
14,221
0.257496
a8e1dced7a604f8c2b62fcf91f75b95634a99ffe
22,631
py
Python
services/python/app/lib/parsers/EmailParser.py
ace-ecosystem/eventsentry
79cb67245f9c5bd49118d23e20764ee8feba8660
[ "Apache-2.0" ]
null
null
null
services/python/app/lib/parsers/EmailParser.py
ace-ecosystem/eventsentry
79cb67245f9c5bd49118d23e20764ee8feba8660
[ "Apache-2.0" ]
null
null
null
services/python/app/lib/parsers/EmailParser.py
ace-ecosystem/eventsentry
79cb67245f9c5bd49118d23e20764ee8feba8660
[ "Apache-2.0" ]
null
null
null
import base64 import dateutil.parser import email import hashlib import logging import os import re from dateutil import tz from email.header import decode_header, make_header from urlfinderlib import find_urls from lib import RegexHelpers from lib.config import config from lib.constants import HOME_DIR from lib.indi...
41.601103
146
0.57271
22,239
0.982679
0
0
1,438
0.063541
0
0
5,716
0.252574