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
19ebb2a3f5203d8e575a8e0bab417177a0a48924
5,010
py
Python
third_party/unidecode/x0bd.py
asysc2020/contentbox
5c155976e0ce7ea308d62293ab89624d97b21d09
[ "Apache-2.0" ]
39
2015-06-10T23:18:07.000Z
2021-10-21T04:29:06.000Z
third_party/unidecode/x0bd.py
asysc2020/contentbox
5c155976e0ce7ea308d62293ab89624d97b21d09
[ "Apache-2.0" ]
2
2016-08-22T12:38:10.000Z
2017-01-26T18:37:33.000Z
third_party/unidecode/x0bd.py
asysc2020/contentbox
5c155976e0ce7ea308d62293ab89624d97b21d09
[ "Apache-2.0" ]
26
2015-06-10T22:09:15.000Z
2021-06-27T15:45:15.000Z
data = ( 'bols', # 0x00 'bolt', # 0x01 'bolp', # 0x02 'bolh', # 0x03 'bom', # 0x04 'bob', # 0x05 'bobs', # 0x06 'bos', # 0x07 'boss', # 0x08 'bong', # 0x09 'boj', # 0x0a 'boc', # 0x0b 'bok', # 0x0c 'bot', # 0x0d 'bop', # 0x0e 'boh', # 0x0f 'bwa', # 0x1...
19.343629
20
0.436128
0
0
0
0
0
0
0
0
3,461
0.690818
19ecf7e3e7e37b889b168edf93836870ccf82afb
55
py
Python
social/backends/azuread.py
raccoongang/python-social-auth
81c0a542d158772bd3486d31834c10af5d5f08b0
[ "BSD-3-Clause" ]
1,987
2015-01-01T16:12:45.000Z
2022-03-29T14:24:25.000Z
social/backends/azuread.py
raccoongang/python-social-auth
81c0a542d158772bd3486d31834c10af5d5f08b0
[ "BSD-3-Clause" ]
731
2015-01-01T22:55:25.000Z
2022-03-10T15:07:51.000Z
virtual/lib/python3.6/site-packages/social/backends/azuread.py
dennismwaniki67/awards
80ed10541f5f751aee5f8285ab1ad54cfecba95f
[ "MIT" ]
1,082
2015-01-01T16:27:26.000Z
2022-03-22T21:18:33.000Z
from social_core.backends.azuread import AzureADOAuth2
27.5
54
0.890909
0
0
0
0
0
0
0
0
0
0
19ed8ee16410261911df594fb0af9ff20f20ca7e
6,556
py
Python
pystitchy/grid.py
iht/Stitchy-Studio
f7faf846d7ce498ef5945caaff2b09f9108e2919
[ "MIT" ]
1
2021-02-28T17:27:16.000Z
2021-02-28T17:27:16.000Z
pystitchy/grid.py
iht/Stitchy-Studio
f7faf846d7ce498ef5945caaff2b09f9108e2919
[ "MIT" ]
null
null
null
pystitchy/grid.py
iht/Stitchy-Studio
f7faf846d7ce498ef5945caaff2b09f9108e2919
[ "MIT" ]
null
null
null
# Copyright (c) 2012 Israel Herraiz <isra@herraiz.org> # 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 without restriction, including # without limitation the rights to use, copy, modify, me...
33.968912
107
0.585265
5,395
0.82291
0
0
0
0
0
0
1,301
0.198444
19eeab362b9fb0e2d6b801d0a756ec8fc09dd20a
2,837
py
Python
usps_tools/exceptions.py
pedrovagner/usps-tools
6a241fda35db6590684a534b9c3cf78a589ea09d
[ "MIT" ]
null
null
null
usps_tools/exceptions.py
pedrovagner/usps-tools
6a241fda35db6590684a534b9c3cf78a589ea09d
[ "MIT" ]
null
null
null
usps_tools/exceptions.py
pedrovagner/usps-tools
6a241fda35db6590684a534b9c3cf78a589ea09d
[ "MIT" ]
null
null
null
import traceback from typing import Optional from .i18n import _ class UspsToolsException(Exception): """ Base class for all errors. """ def __init__(self, message: Optional[str] = None, origin: Exception = None): """ :param message: :param origin: """ super()._...
27.813725
114
0.601692
2,768
0.969867
0
0
124
0.043448
0
0
1,093
0.382971
19effa59bdd92c4854c56be758df2693cacdcb3d
1,158
py
Python
scraper/engine.py
pesya/scraper
c088dc3dc613fec94e297ac71302d2305b44b14c
[ "BSD-3-Clause" ]
null
null
null
scraper/engine.py
pesya/scraper
c088dc3dc613fec94e297ac71302d2305b44b14c
[ "BSD-3-Clause" ]
null
null
null
scraper/engine.py
pesya/scraper
c088dc3dc613fec94e297ac71302d2305b44b14c
[ "BSD-3-Clause" ]
null
null
null
import sys import csv import requests from parsel import Selector from scraper.parser import get_features_from_item start_url = 'http://www.world-art.ru/animation/rating_top.php' SIGN_STDOUT = '-' FORMAT_CSV = 'csv' FORMAT_JL = 'jl' def parse(url: str, out_path: str, out_format: str): """ gets link and ret...
28.243902
103
0.69171
0
0
0
0
0
0
0
0
260
0.224525
19f24b3bd880d9e6bed48acb8886bc868d4be2dd
14,592
py
Python
gui/python/photogate/photogate/photogate_app.py
iorodeo/photogate_software
c9a97dc3da644fe093397dd11024825ba0d79519
[ "Apache-2.0" ]
1
2020-07-23T19:02:50.000Z
2020-07-23T19:02:50.000Z
gui/python/photogate/photogate/photogate_app.py
iorodeo/photogate_software
c9a97dc3da644fe093397dd11024825ba0d79519
[ "Apache-2.0" ]
null
null
null
gui/python/photogate/photogate/photogate_app.py
iorodeo/photogate_software
c9a97dc3da644fe093397dd11024825ba0d79519
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import os import sys import serial.tools.list_ports from PyQt4 import QtCore from PyQt4 import QtGui from photogate_ui import Ui_PhotogateMainWindow from photogate_serial import PhotogateDevice from photogate_serial import getListOfPorts import dependency_hack try: import scipy...
37.22449
94
0.614172
13,025
0.892612
0
0
0
0
0
0
1,714
0.117462
19f364dac17ba32accfedb9fef8b6459dc8369f0
114
py
Python
playground/step2/test1.py
jhson989/jhML
eb8b76d3b47df858e82cd971bb32794e12de4747
[ "Apache-2.0" ]
null
null
null
playground/step2/test1.py
jhson989/jhML
eb8b76d3b47df858e82cd971bb32794e12de4747
[ "Apache-2.0" ]
null
null
null
playground/step2/test1.py
jhson989/jhML
eb8b76d3b47df858e82cd971bb32794e12de4747
[ "Apache-2.0" ]
null
null
null
from core import Variable from operation import * a = Variable(2) b = square(a) c = square(b) print(c.data)
8.769231
25
0.675439
0
0
0
0
0
0
0
0
0
0
19f3a16361bc6bc5804201c9d2a4c2d8f966a4a0
106
py
Python
sharepoint/__init__.py
nessalc/python-sharepoint
d264cf5be56c8f9f619a4f72fd039c167cd01ba8
[ "MIT" ]
1
2019-06-03T03:16:44.000Z
2019-06-03T03:16:44.000Z
sharepoint/__init__.py
nessalc/python-sharepoint
d264cf5be56c8f9f619a4f72fd039c167cd01ba8
[ "MIT" ]
null
null
null
sharepoint/__init__.py
nessalc/python-sharepoint
d264cf5be56c8f9f619a4f72fd039c167cd01ba8
[ "MIT" ]
null
null
null
name = 'sharepoint' from .sharepoint import SharePointSite __author__='James Classen' __version__='0.0.2'
21.2
38
0.792453
0
0
0
0
0
0
0
0
34
0.320755
19f6250f9d15cae4fb338cfbac1c36e435b2c1ca
3,188
py
Python
third_party/nkata/tests/transformvideo_test.py
google/offline-content-packager
5a023eeeed4973e452309b434a59ce745487fdd6
[ "Apache-2.0" ]
32
2016-05-31T13:01:46.000Z
2022-03-18T11:17:36.000Z
third_party/nkata/tests/transformvideo_test.py
google/offline-content-packager
5a023eeeed4973e452309b434a59ce745487fdd6
[ "Apache-2.0" ]
null
null
null
third_party/nkata/tests/transformvideo_test.py
google/offline-content-packager
5a023eeeed4973e452309b434a59ce745487fdd6
[ "Apache-2.0" ]
29
2016-06-08T18:11:00.000Z
2021-09-28T04:14:34.000Z
# Copyright 2015 The Offline Content Packager 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 requi...
32.20202
78
0.69542
2,283
0.716123
0
0
0
0
0
0
1,074
0.336888
19f6287b8eec32e7e9ec1cec1c39636f68949b75
2,308
py
Python
src/E_get_mpns_v8_analyses_answers/query_mpns_v8_name_relationships.py
feiphoon/mpns-pipeline
d34a8609dc4cb04ccc3f5c9b79a52bfeecdb38f6
[ "MIT" ]
1
2022-03-28T10:46:58.000Z
2022-03-28T10:46:58.000Z
src/E_get_mpns_v8_analyses_answers/query_mpns_v8_name_relationships.py
feiphoon/mpns-pipeline
d34a8609dc4cb04ccc3f5c9b79a52bfeecdb38f6
[ "MIT" ]
null
null
null
src/E_get_mpns_v8_analyses_answers/query_mpns_v8_name_relationships.py
feiphoon/mpns-pipeline
d34a8609dc4cb04ccc3f5c9b79a52bfeecdb38f6
[ "MIT" ]
null
null
null
from pathlib import Path from pyspark.sql import SparkSession, functions as f from pyspark.sql.dataframe import DataFrame # Monkeypatch in case I don't use Spark 3.0 def transform(self, f): return f(self) DataFrame.transform = transform def query_mpns_v8_name_relationships( input_filepath: str, outp...
30.368421
86
0.747834
0
0
0
0
0
0
0
0
717
0.310659
19f803a96ec5d364efd732c5edf09bf82c3dfe31
124
py
Python
library_homework/my_project/my_program.py
Tommy3121173/tommy
429aefb377f84a1d49e85f825a32ac2c160ebc85
[ "MIT" ]
null
null
null
library_homework/my_project/my_program.py
Tommy3121173/tommy
429aefb377f84a1d49e85f825a32ac2c160ebc85
[ "MIT" ]
null
null
null
library_homework/my_project/my_program.py
Tommy3121173/tommy
429aefb377f84a1d49e85f825a32ac2c160ebc85
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed May 23 16:56:57 2018 @author: tommy_mizuki """ import my_library my_func(1,2)
11.272727
35
0.645161
0
0
0
0
0
0
0
0
89
0.717742
19f8e4fcaecd9a3968eed26a324bf80026d1583f
246
py
Python
algorithm/python/BAEKJOON_1436.py
cjsrhd94/TIL
b91bab7d99d10c63f91af0790cb28ec3d228b68b
[ "MIT" ]
1
2021-08-19T06:23:00.000Z
2021-08-19T06:23:00.000Z
algorithm/python/BAEKJOON_1436.py
cjsrhd94/TIL
b91bab7d99d10c63f91af0790cb28ec3d228b68b
[ "MIT" ]
null
null
null
algorithm/python/BAEKJOON_1436.py
cjsrhd94/TIL
b91bab7d99d10c63f91af0790cb28ec3d228b68b
[ "MIT" ]
null
null
null
n = int(input()) count = 0 number = 0 while True: if '666' in str(number): #문자열로 변경하였을때 '666'이 포함되어있다면 count를 세준다. count += 1 if count == n: #count가 입력값과 동일할 때 print -> n번째 값 출력 print(number) break number += 1
24.6
68
0.565041
0
0
0
0
0
0
0
0
152
0.477987
19f91845aaff11955f6b430aa3684474c464bf80
3,599
py
Python
cacheTraceAnalysis/plot/reqRate.py
Thesys-lab/cacheWorkloadAnalysisOSDI20
cfc5bbb5c8d909571546c78c247561c9db449469
[ "Apache-2.0" ]
6
2020-11-12T07:51:02.000Z
2022-03-27T20:20:01.000Z
cacheTraceAnalysis/plot/reqRate.py
Thesys-lab/InMemoryCachingWorkloadAnalysis
5f6f9f7e29a164478f3fc28eb64c170bbbafdec7
[ "Apache-2.0" ]
null
null
null
cacheTraceAnalysis/plot/reqRate.py
Thesys-lab/InMemoryCachingWorkloadAnalysis
5f6f9f7e29a164478f3fc28eb64c170bbbafdec7
[ "Apache-2.0" ]
1
2021-12-31T01:16:09.000Z
2021-12-31T01:16:09.000Z
""" plot request rate """ import os, sys sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), "../")) from utils.common import * def _cal_req_rate(trace_reader, window): metadata_name = "reqRateList_w{}_{}.pickle".format(window, trace_reader.trace_path.split("/")[-1]) loaded = load_metadata(...
38.698925
159
0.689358
0
0
0
0
0
0
0
0
430
0.119478
19f928aecd4ff7011c0373aab909dea8913438c6
1,373
py
Python
config.py
ShallweJohn/MonsterBlog
f3bd0bdab99af6ba06b7b8fb0eaa6770115fc9c5
[ "MIT" ]
null
null
null
config.py
ShallweJohn/MonsterBlog
f3bd0bdab99af6ba06b7b8fb0eaa6770115fc9c5
[ "MIT" ]
3
2021-03-18T20:36:25.000Z
2021-09-07T23:54:49.000Z
config.py
ShallweJohn/MonsterBlog
f3bd0bdab99af6ba06b7b8fb0eaa6770115fc9c5
[ "MIT" ]
null
null
null
import os import redis import logging class Config(object): #配置数据库连接 SQLALCHEMY_DATABASE_URI = 'mysql://root:19920917@127.0.0.1:3306/data_monster' SQLALCHEMY_TRACK_MODIFICATIONS = False #配置redis数据库 REDIS_HOST = '127.0.0.1' REDIS_PORT = 6379 # 配置flask_session SESSION_TYPE = 'redis' ...
19.614286
81
0.699927
1,226
0.867657
0
0
49
0.034678
0
0
373
0.263977
19fac7af0c83f21b636a9b1fa9c53ac1705d1cfb
5,097
py
Python
utils.py
sjenni/DeepBilevel
9db6c9d81188e891104677a7ffc4b045421fb097
[ "MIT" ]
8
2019-10-23T12:16:13.000Z
2020-11-16T02:20:28.000Z
utils.py
sjenni/DeepBilevel
9db6c9d81188e891104677a7ffc4b045421fb097
[ "MIT" ]
null
null
null
utils.py
sjenni/DeepBilevel
9db6c9d81188e891104677a7ffc4b045421fb097
[ "MIT" ]
4
2020-02-06T14:54:47.000Z
2020-10-25T03:03:04.000Z
import tensorflow as tf from tensorflow.python import pywrap_tensorflow from tensorflow.python.platform import tf_logging as logging from tensorflow.python.training import saver as tf_saver def average_gradients(tower_grads): """Calculate the average gradient for each shared variable across all towers. Note t...
36.148936
84
0.673141
0
0
0
0
0
0
0
0
2,455
0.481656
19fb5606842651b084278976b916a2b6ffe5d1f9
328
py
Python
configuration/mmd_configuration.py
matthewfaw/mixnmatch
11b923b941198c02e380011853beb70169f024ac
[ "Apache-2.0" ]
1
2020-11-16T04:59:48.000Z
2020-11-16T04:59:48.000Z
configuration/mmd_configuration.py
matthewfaw/mixnmatch
11b923b941198c02e380011853beb70169f024ac
[ "Apache-2.0" ]
null
null
null
configuration/mmd_configuration.py
matthewfaw/mixnmatch
11b923b941198c02e380011853beb70169f024ac
[ "Apache-2.0" ]
1
2019-12-03T21:43:02.000Z
2019-12-03T21:43:02.000Z
class MMDConfiguration: def __init__(self, mmd_rbf_gamma, mmd_rbf_ncomponents, mmd_representative_set_size): self.mmd_rbf_gamma=mmd_rbf_gamma self.mmd_rbf_ncomponents=mmd_rbf_ncomponents self.mmd_representative_set_size=mmd_representative_s...
32.8
68
0.685976
326
0.993902
0
0
0
0
0
0
0
0
19fb9cf0c33a5df90f7ff935997f2b53b4510673
1,234
py
Python
paralleldomain/model/annotation/polygon_2d.py
parallel-domain/pd-sdk
20e3d052a5cb612a2dd84bda7b1b5487a6a60edc
[ "Apache-2.0" ]
10
2021-11-17T17:23:49.000Z
2022-03-18T09:51:23.000Z
paralleldomain/model/annotation/polygon_2d.py
parallel-domain/pd-sdk
20e3d052a5cb612a2dd84bda7b1b5487a6a60edc
[ "Apache-2.0" ]
3
2021-12-02T17:16:20.000Z
2022-01-07T12:47:13.000Z
paralleldomain/model/annotation/polygon_2d.py
parallel-domain/pd-sdk
20e3d052a5cb612a2dd84bda7b1b5487a6a60edc
[ "Apache-2.0" ]
2
2022-03-09T07:03:54.000Z
2022-03-23T15:53:48.000Z
from dataclasses import dataclass from typing import List from paralleldomain.model.annotation.common import Annotation from paralleldomain.model.annotation.polyline_2d import Polyline2D @dataclass class Polygon2D(Polyline2D): """A closed polygon made a collection of 2D Lines. Args: lines: :attr:`~....
29.380952
114
0.691248
1,018
0.824959
0
0
1,040
0.842788
0
0
911
0.73825
19fd46480858b4a1d5b5836cc3a46a14d32272f9
828
py
Python
tests/backup_bsps.py
LaudateCorpus1/bsp_tool
e8c2489ac3bda5a4467f1dce220a76bbf4ce5b19
[ "MIT" ]
null
null
null
tests/backup_bsps.py
LaudateCorpus1/bsp_tool
e8c2489ac3bda5a4467f1dce220a76bbf4ce5b19
[ "MIT" ]
null
null
null
tests/backup_bsps.py
LaudateCorpus1/bsp_tool
e8c2489ac3bda5a4467f1dce220a76bbf4ce5b19
[ "MIT" ]
null
null
null
import os import shutil import sys from maplist import installed_games backup_dir = "F:/bsps" if len(sys.argv) == 2: backup_dir = sys.argv[1] print(f"Making backups in '{backup_dir}'") i = 0 for base_dir, game_dir in installed_games: i += 1 print(f"Backing up ({i}/{len(installed_games)}) {game_dir}...")...
30.666667
67
0.642512
0
0
0
0
0
0
0
0
182
0.219807
19fe235467f017d20a959660a872441f0b170a74
770
py
Python
infobip_channels/whatsapp/models/response/get_templates.py
infobip-community/infobip-api-python-sdk
5ffc5ab877ee1748aa29391f991c8c5324387487
[ "MIT" ]
null
null
null
infobip_channels/whatsapp/models/response/get_templates.py
infobip-community/infobip-api-python-sdk
5ffc5ab877ee1748aa29391f991c8c5324387487
[ "MIT" ]
null
null
null
infobip_channels/whatsapp/models/response/get_templates.py
infobip-community/infobip-api-python-sdk
5ffc5ab877ee1748aa29391f991c8c5324387487
[ "MIT" ]
null
null
null
from typing import List, Optional from pydantic import AnyHttpUrl from infobip_channels.core.models import CamelCaseModel, ResponseBase class Button(CamelCaseModel): text: str type: str phone_number: Optional[str] = None url: Optional[AnyHttpUrl] = None class Header(CamelCaseModel): format: st...
19.25
69
0.711688
617
0.801299
0
0
0
0
0
0
0
0
19ff517f6d368213182e5f5031c40842eae17a49
1,391
py
Python
examples/server.py
fhamborg/Giveme5W
b5f49712654ab466e605716b4cd9f8dce9bcdd88
[ "Apache-2.0" ]
16
2018-03-28T11:20:11.000Z
2020-09-17T19:39:25.000Z
examples/server.py
fhamborg/Giveme5W
b5f49712654ab466e605716b4cd9f8dce9bcdd88
[ "Apache-2.0" ]
3
2018-03-15T10:17:29.000Z
2018-05-16T13:14:28.000Z
examples/server.py
fhamborg/Giveme5W
b5f49712654ab466e605716b4cd9f8dce9bcdd88
[ "Apache-2.0" ]
6
2018-05-08T12:53:51.000Z
2021-09-25T03:21:02.000Z
import logging from flask import Flask, request, jsonify from extractor.document import Document from extractor.five_w_extractor import FiveWExtractor app = Flask(__name__) log = logging.getLogger(__name__) host = None port = 5000 debug = False options = None extractor = FiveWExtractor() ch = logging.StreamHandler() ...
26.245283
82
0.675054
0
0
0
0
827
0.594536
0
0
300
0.215672
19ffa347e490ab19819ef9b329ffa153417391c5
826
py
Python
CPAC/utils/tests/test_symlinks.py
Lawreros/C-PAC
ce26ba9a38cbd401cd405150eeed23b805007724
[ "BSD-3-Clause" ]
125
2015-03-04T09:14:46.000Z
2022-03-29T07:46:12.000Z
CPAC/utils/tests/test_symlinks.py
Lawreros/C-PAC
ce26ba9a38cbd401cd405150eeed23b805007724
[ "BSD-3-Clause" ]
1,018
2015-01-04T16:01:29.000Z
2022-03-31T19:23:09.000Z
CPAC/utils/tests/test_symlinks.py
Lawreros/C-PAC
ce26ba9a38cbd401cd405150eeed23b805007724
[ "BSD-3-Clause" ]
117
2015-01-10T08:05:52.000Z
2022-01-18T05:16:51.000Z
import os import tempfile import pkg_resources as p from CPAC.utils.symlinks import create_symlinks mocked_outputs = \ p.resource_filename( "CPAC", os.path.join( 'utils', 'tests', 'test_symlinks-outputs.txt' ) ) def test_symlinks(): temp_dir ...
19.666667
55
0.579903
0
0
0
0
0
0
0
0
233
0.282082
c200bfcfb3506f7b5d5aa61e676f674b8d4fef20
14,488
py
Python
web/migrations/0001_initial.py
jmason-ebi/pdx
aec38d74a78c907041332f4623c01047f45f3f0a
[ "Apache-2.0" ]
null
null
null
web/migrations/0001_initial.py
jmason-ebi/pdx
aec38d74a78c907041332f4623c01047f45f3f0a
[ "Apache-2.0" ]
null
null
null
web/migrations/0001_initial.py
jmason-ebi/pdx
aec38d74a78c907041332f4623c01047f45f3f0a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-09 15:33 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import django_extensions.db.fields class Migration(migrations.Migration): initial = True dependencies = [ ] ope...
50.835088
143
0.574752
14,262
0.984401
0
0
0
0
0
0
2,708
0.186913
c202c2c6ef86a127b7a659f1ab70e457fb054b54
4,799
py
Python
dserve/__init__.py
JIC-CSB/dserve
5f20d9de8ffb52f98ef9c68b327fe1ca9fcee17e
[ "MIT" ]
null
null
null
dserve/__init__.py
JIC-CSB/dserve
5f20d9de8ffb52f98ef9c68b327fe1ca9fcee17e
[ "MIT" ]
null
null
null
dserve/__init__.py
JIC-CSB/dserve
5f20d9de8ffb52f98ef9c68b327fe1ca9fcee17e
[ "MIT" ]
null
null
null
"""Script for running the dserve server.""" import os from flask import ( Flask, jsonify, send_file, abort, request, ) from flask_cors import CORS, cross_origin app = Flask(__name__) cors = CORS(app) @app.route("/") @cross_origin() def root(): content = { "_links": { "s...
25.526596
77
0.600542
0
0
0
0
2,794
0.582205
0
0
761
0.158575
c203136ec3038930bc5926aaf959f30e095e46a5
1,610
py
Python
kkutil/security.py
kaka19ace/kkutils
1ac449488d85ba2c6b18c5dc9cf77a0bc36579b1
[ "MIT" ]
1
2015-12-13T18:42:52.000Z
2015-12-13T18:42:52.000Z
kkutil/security.py
kaka19ace/kkutil
1ac449488d85ba2c6b18c5dc9cf77a0bc36579b1
[ "MIT" ]
null
null
null
kkutil/security.py
kaka19ace/kkutil
1ac449488d85ba2c6b18c5dc9cf77a0bc36579b1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # """ util regex tool refs: http://www.symantec.com/connect/articles/detection-sql-injection-and-cross-site-scripting-attacks """ import re INJECTION_REGEX = re.compile( r"(%27)|(\')|(\-\-)|(%23)|(#)|" # Regex for detection of SQL meta-characters r"\w*((%27)|(\...
35
148
0.608075
0
0
0
0
0
0
0
0
1,026
0.637267
c204bfd19101390dbf534e7049d9b49aef3685e3
1,520
py
Python
update_eeprom_rc.py
rkojedzinszky/thermo-sensor
f0b5aa6dbf231b566e00a683c5bb1551569d2463
[ "BSD-3-Clause" ]
2
2019-04-25T17:38:02.000Z
2020-03-03T22:50:04.000Z
update_eeprom_rc.py
rkojedzinszky/thermo-sensor
f0b5aa6dbf231b566e00a683c5bb1551569d2463
[ "BSD-3-Clause" ]
null
null
null
update_eeprom_rc.py
rkojedzinszky/thermo-sensor
f0b5aa6dbf231b566e00a683c5bb1551569d2463
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python REGISTERS = { 'IOCFG2': 0x00, 'IOCFG1': 0x01, 'IOCFG0': 0x02, 'FIFOTHR': 0x03, 'SYNC1': 0x04, 'SYNC0': 0x05, 'PKTLEN': 0x06, 'PKTCTRL1': 0x07, 'PKTCTRL0': 0x08, 'ADDR': 0x09, 'CHANNR': 0x0A, 'FSCTRL1': 0x0B, 'FSCTRL0': 0x0C, 'FREQ2': 0x0D, ...
20.540541
72
0.484211
0
0
0
0
0
0
0
0
505
0.332237
c205b5f889cdcc188c5b89c3efa9505bfb938fe3
384
py
Python
UsefulLink.py
qyu6/TAILab
6c3e7a7e2e49f7c673ab46b90c1568a96cce75b7
[ "Apache-2.0" ]
1
2022-01-10T15:14:55.000Z
2022-01-10T15:14:55.000Z
UsefulLink.py
qyu6/TAILab
6c3e7a7e2e49f7c673ab46b90c1568a96cce75b7
[ "Apache-2.0" ]
null
null
null
UsefulLink.py
qyu6/TAILab
6c3e7a7e2e49f7c673ab46b90c1568a96cce75b7
[ "Apache-2.0" ]
null
null
null
''' @func:to store useful links module @create:2021.10.20 ''' def usefullink(): import streamlit as st st.write('[1].在线Latex公式编辑器') st.write('https://latex.codecogs.com/eqneditor/editor.php?lang=zh-cn') st.write('[2].装饰Github README.md文件的logo') st.write('https://shields.io/') st.write('[3...
25.6
74
0.65625
0
0
0
0
0
0
0
0
288
0.669767
c2065e5fc7e61fdabd4ab6fd12c1ead2ad9d477a
78,713
py
Python
htdeblur/acquisition/motion.py
zfphil/htdeblur
ac557284f9913292721a6b9f943ff9b921043978
[ "BSD-3-Clause" ]
2
2020-01-16T18:30:55.000Z
2020-02-06T08:33:51.000Z
htdeblur/acquisition/motion.py
zfphil/htdeblur
ac557284f9913292721a6b9f943ff9b921043978
[ "BSD-3-Clause" ]
null
null
null
htdeblur/acquisition/motion.py
zfphil/htdeblur
ac557284f9913292721a6b9f943ff9b921043978
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2017 Regents of the University of California # # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the follow...
54.284828
757
0.612656
76,891
0.976853
0
0
0
0
0
0
19,483
0.247519
c2094cbd00b0292a602f2ea788a9486c162b5e7e
2,053
py
Python
leetcode/weekly150/last_substring.py
jan25/code_sorted
f405fd0898f72eb3d5428f9e10aefb4a009d5089
[ "Unlicense" ]
2
2018-01-18T11:01:36.000Z
2021-12-20T18:14:48.000Z
leetcode/weekly150/last_substring.py
jan25/code_sorted
f405fd0898f72eb3d5428f9e10aefb4a009d5089
[ "Unlicense" ]
null
null
null
leetcode/weekly150/last_substring.py
jan25/code_sorted
f405fd0898f72eb3d5428f9e10aefb4a009d5089
[ "Unlicense" ]
null
null
null
''' https://leetcode.com/contest/weekly-contest-150/problems/last-substring-in-lexicographical-order/ SA algorithm mostly copied from https://cp-algorithms.com/string/suffix-array.html Status: tle. probably py3 lists ''' class SuffixArray: def __init__(self, s): self.s = s self.n = len(s) ...
31.584615
97
0.431076
1,827
0.889917
0
0
0
0
0
0
221
0.107647
c20c7d9e299f07af3208c0a8aedd483571769bbb
18,555
py
Python
schemagen/schemagen.py
GoZaddy/SchemaGen
c8374382f6b52ad3cec398c77fd5bc90fe891818
[ "MIT" ]
3
2021-03-26T22:51:41.000Z
2021-03-27T15:17:24.000Z
schemagen/schemagen.py
GoZaddy/SchemaGen
c8374382f6b52ad3cec398c77fd5bc90fe891818
[ "MIT" ]
null
null
null
schemagen/schemagen.py
GoZaddy/SchemaGen
c8374382f6b52ad3cec398c77fd5bc90fe891818
[ "MIT" ]
null
null
null
from antlr4 import * from .antlr import GraphQLLexer, GraphQLListener, GraphQLParser from .codegen import CodegenTool, Class, String, ClassInstance, IfElse, If, Method, Expr, Variable import re from math import floor from datetime import datetime from .utils import strip_string_quotes, camel_case_to_snake_case, process...
46.156716
136
0.492643
17,935
0.966586
0
0
0
0
0
0
2,159
0.116357
c20cac9dd66122173bfd30ba53957fea5bb5307b
2,231
py
Python
app/api/views.py
rickywang432/flask
c956dee6c7dfbb57a5fcd247d23af37e20b96da7
[ "MIT" ]
null
null
null
app/api/views.py
rickywang432/flask
c956dee6c7dfbb57a5fcd247d23af37e20b96da7
[ "MIT" ]
1
2021-06-02T02:01:38.000Z
2021-06-02T02:01:38.000Z
app/api/views.py
rickywang432/flask
c956dee6c7dfbb57a5fcd247d23af37e20b96da7
[ "MIT" ]
null
null
null
from flask import Flask, request, jsonify,Blueprint from flask_marshmallow import Marshmallow from app.models import User, Group, Role from app import ma api = Blueprint('api', __name__) class UserSchema(ma.Schema): class Meta: # Fields to expose fields = ('id', 'confirmed','first_name','last_nam...
26.247059
80
0.685791
491
0.220081
0
0
1,217
0.545495
0
0
429
0.19229
c20d8ed82808f42c1ce9f7452c5668af8015a2b5
2,335
py
Python
setup.py
maljovec/samply
9364c2f671c02cb7bab484c0e856a0a0ca6ecc40
[ "BSD-3-Clause" ]
null
null
null
setup.py
maljovec/samply
9364c2f671c02cb7bab484c0e856a0a0ca6ecc40
[ "BSD-3-Clause" ]
2
2019-02-21T00:28:36.000Z
2019-11-09T04:35:39.000Z
setup.py
maljovec/samplers
9364c2f671c02cb7bab484c0e856a0a0ca6ecc40
[ "BSD-3-Clause" ]
null
null
null
""" Setup script for samply """ from setuptools import setup import re extra_args = {} def get_property(prop, project): """ Helper function for retrieving properties from a project's __init__.py file @In, prop, string representing the property to be retrieved @In, project, ...
29.935897
77
0.615418
0
0
0
0
0
0
0
0
1,334
0.571306
c20db92c5e61a54ef4ff2401b5df9360bca3d9b1
4,353
py
Python
数据结构实践课/实验3/文本格式化.py
TD21forever/hdu-term-project-helper
f42f553efd1d7b59162d3fc793ac14ae30850efd
[ "Apache-2.0" ]
17
2021-01-09T06:49:09.000Z
2022-02-23T01:36:20.000Z
数据结构实践课/实验3/文本格式化.py
TD21forever/hdu-term-project-helper
f42f553efd1d7b59162d3fc793ac14ae30850efd
[ "Apache-2.0" ]
null
null
null
数据结构实践课/实验3/文本格式化.py
TD21forever/hdu-term-project-helper
f42f553efd1d7b59162d3fc793ac14ae30850efd
[ "Apache-2.0" ]
1
2021-06-22T12:56:16.000Z
2021-06-22T12:56:16.000Z
# -*- coding: utf-8 -*- # @Author: TD21forever # @Date: 2018-11-14 15:41:57 # @Last Modified by: TD21forever # @Last Modified time: 2018-11-15 16:50:48 file = open('input.txt','r')#读取文件 #预处理 传入字符串 def preprocess(article): article = article.strip() article = article.replace(",", ", ") article...
34.824
107
0.464278
0
0
0
0
0
0
0
0
1,649
0.321255
c210287e380e114135144808518dac8414c8a7fc
1,405
py
Python
authors/apps/authentication/tests/test_models.py
C3real-kill3r/binary-jungle-backend
5333138fbce901e75accf5487b10990979afa571
[ "MIT" ]
null
null
null
authors/apps/authentication/tests/test_models.py
C3real-kill3r/binary-jungle-backend
5333138fbce901e75accf5487b10990979afa571
[ "MIT" ]
8
2020-02-12T03:04:07.000Z
2022-03-12T00:07:31.000Z
authors/apps/authentication/tests/test_models.py
C3real-kill3r/binary-jungle-backend
5333138fbce901e75accf5487b10990979afa571
[ "MIT" ]
null
null
null
from django.test import TestCase from authors.apps.authentication.models import ( User ) class UserModelTest(TestCase): """ This tests the User model class, ability to create a user and create a super user. """ def test_create_user(self): """ Checks whether a user can be created...
30.543478
112
0.64484
1,308
0.930961
0
0
0
0
0
0
570
0.405694
c213671e056f4ccf87fd3dab05b33b16957f6f48
5,908
py
Python
simulations/MonteCarlo_function.py
chengning-zhang/Statistical-methods-for-combining-multiple-tests-a-Wrapper-
42b5aabf6a0619fa7fe18a034926236d133a35d8
[ "MIT" ]
1
2020-11-24T02:58:58.000Z
2020-11-24T02:58:58.000Z
simulations/MonteCarlo_function.py
chengning-zhang/Combining-multiple-tests-Wrapper-
42b5aabf6a0619fa7fe18a034926236d133a35d8
[ "MIT" ]
null
null
null
simulations/MonteCarlo_function.py
chengning-zhang/Combining-multiple-tests-Wrapper-
42b5aabf6a0619fa7fe18a034926236d133a35d8
[ "MIT" ]
null
null
null
#!/usr/bin/env python #-*- coding:utf-8 -*- """ Created on Nov 23, 2020 @author: Chengning Zhang """ ## simulation for Scenario A: generate X0 and X1. def MonteCarlo_1(T, n0, n1, u0, u1, sigma0, sigma1, log_bool = False): """simulation for first scenario: multivarite normal with equal variance T: number of simula...
46.15625
128
0.609682
0
0
0
0
0
0
0
0
1,954
0.330738
c213c3cc512fab07ba3d806bd3d3286525745450
389
py
Python
crawler/robo_proxy.py
xliangwu/com.caveup.machine_learn
793131c4767f45d468a813752c07d02f623a7b99
[ "Apache-2.0" ]
1
2018-09-19T06:27:14.000Z
2018-09-19T06:27:14.000Z
crawler/robo_proxy.py
xliangwu/com.caveup.machine_learn
793131c4767f45d468a813752c07d02f623a7b99
[ "Apache-2.0" ]
null
null
null
crawler/robo_proxy.py
xliangwu/com.caveup.machine_learn
793131c4767f45d468a813752c07d02f623a7b99
[ "Apache-2.0" ]
null
null
null
import requests def pages_crawler(): http_header = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36', } url = r'https://robo.datayes.com/v2/indicator_library' response = requests.get(url, headers=http_header) p...
24.3125
135
0.676093
0
0
0
0
0
0
0
0
182
0.467866
c2145a28b8098d26c67f49818369dff92c2ac06b
11,662
py
Python
apiosintDS/apiosintDS.py
davidonzo/apiosintDS
b5bb1c42e1a3d984a69e8794a4c5da6969dcd917
[ "MIT" ]
13
2019-10-15T06:54:49.000Z
2022-03-28T23:23:29.000Z
apiosintDS/apiosintDS.py
davidonzo/apiosintDS
b5bb1c42e1a3d984a69e8794a4c5da6969dcd917
[ "MIT" ]
1
2019-11-12T15:00:53.000Z
2019-11-14T09:37:46.000Z
apiosintDS/apiosintDS.py
davidonzo/apiosintDS
b5bb1c42e1a3d984a69e8794a4c5da6969dcd917
[ "MIT" ]
4
2019-12-05T05:34:07.000Z
2022-03-24T09:59:26.000Z
import sys import logging import pytz logging.basicConfig(format='%(levelname)s: %(message)s') if (sys.version_info < (3, 0)):#NO MORE PYTHON 2!!! https://pythonclock.org/ logging.error(" ########################### ERROR ###########################") logging.error(" ============================================...
51.149123
428
0.607271
0
0
0
0
0
0
0
0
4,918
0.421712
c215424b83f6d390aecbd0efbacc856a6c8e7a5e
38
py
Python
sqlcouch/exceptions.py
dimagi/sqlcouch
ff264740d223185d80e0bf8ea11f6f3c8f3d7e7b
[ "BSD-3-Clause" ]
1
2016-03-01T10:20:20.000Z
2016-03-01T10:20:20.000Z
sqlcouch/exceptions.py
dimagi/sqlcouch
ff264740d223185d80e0bf8ea11f6f3c8f3d7e7b
[ "BSD-3-Clause" ]
null
null
null
sqlcouch/exceptions.py
dimagi/sqlcouch
ff264740d223185d80e0bf8ea11f6f3c8f3d7e7b
[ "BSD-3-Clause" ]
null
null
null
class NoMoreData(Exception): pass
12.666667
28
0.736842
37
0.973684
0
0
0
0
0
0
0
0
c2160b83bdfd16bb5fd59f1cfbfcbb7c7d36395f
3,327
py
Python
5-3_stock inventory.py
hkrsmk/python
1ee1b0adc911b62af3911428f441c6c59e1b345f
[ "Unlicense" ]
null
null
null
5-3_stock inventory.py
hkrsmk/python
1ee1b0adc911b62af3911428f441c6c59e1b345f
[ "Unlicense" ]
null
null
null
5-3_stock inventory.py
hkrsmk/python
1ee1b0adc911b62af3911428f441c6c59e1b345f
[ "Unlicense" ]
null
null
null
#Stock inventory control system. def menu(): print("""1. Add New Stock 2. Update existing stock 3. Sell stock, even though 2 will work too 8. Display Inventory 9. Exit""") while True: try: choice = int(input("Please select an option")) break except: ...
30.522936
87
0.479411
0
0
0
0
0
0
0
0
1,468
0.441238
c21a45651bf528b945d22bdb962a7e3a45ad0e4d
91
py
Python
backend/gunicorn_config_worker.py
matan-h/futurecoder
5117cbab7ed2bc41fe9d4763038d9c4a0aba064e
[ "MIT" ]
null
null
null
backend/gunicorn_config_worker.py
matan-h/futurecoder
5117cbab7ed2bc41fe9d4763038d9c4a0aba064e
[ "MIT" ]
1
2022-02-28T01:35:27.000Z
2022-02-28T01:35:27.000Z
backend/gunicorn_config_worker.py
matan-h/futurecoder
5117cbab7ed2bc41fe9d4763038d9c4a0aba064e
[ "MIT" ]
null
null
null
bind = "0.0.0.0:5000" threads = 10 worker_class = "gthread" accesslog = '-' errorlog = '-'
15.166667
24
0.626374
0
0
0
0
0
0
0
0
29
0.318681
c21a8492971d5deb4f24b54f0d01b958dad6c817
1,780
py
Python
2017/day23.py
andypymont/adventofcode
912aa48fc5b31ec9202fb9654380991fc62afcd1
[ "MIT" ]
null
null
null
2017/day23.py
andypymont/adventofcode
912aa48fc5b31ec9202fb9654380991fc62afcd1
[ "MIT" ]
null
null
null
2017/day23.py
andypymont/adventofcode
912aa48fc5b31ec9202fb9654380991fc62afcd1
[ "MIT" ]
null
null
null
""" 2017 Day 23 https://adventofcode.com/2017/day/23 """ from typing import Dict import aocd # type: ignore class Program: def __init__(self, text: str): self.registers: Dict[str, int] = {} self.commands = text.split("\n") self.position = 0 self.mul_count = 0 def get(self, k...
25.797101
75
0.561798
1,094
0.614607
0
0
0
0
0
0
245
0.13764
c21ace7559f52cf54fe988e11522102469f04048
1,641
py
Python
src/simulator/wsn/test.py
liuliuliu0605/Federated-Learning-PyTorch
04169455917ae50a8fea2dabd756a0ca1774e5d5
[ "MIT" ]
null
null
null
src/simulator/wsn/test.py
liuliuliu0605/Federated-Learning-PyTorch
04169455917ae50a8fea2dabd756a0ca1774e5d5
[ "MIT" ]
null
null
null
src/simulator/wsn/test.py
liuliuliu0605/Federated-Learning-PyTorch
04169455917ae50a8fea2dabd756a0ca1774e5d5
[ "MIT" ]
null
null
null
import sys from sklearn.datasets import make_blobs from src.simulator.wsn.network import Network from src.simulator.wsn.utils import * from src.simulator.wsn.fcm import * from src.simulator.wsn.direct_communication import * from src.utils import complete, star seed = 1 np.random.seed(seed ) logging.basic...
32.176471
80
0.672151
0
0
0
0
0
0
0
0
425
0.258988
c21c3b472b61858775a3801d8a7ee0aff0f5536a
4,149
py
Python
src/dewloosh/geom/cell.py
dewloosh/dewloosh-geom
5c97fbab4b68f4748bf4309184b9e0e877f94cd6
[ "MIT" ]
2
2021-12-11T17:25:51.000Z
2022-01-06T15:36:27.000Z
src/dewloosh/geom/cell.py
dewloosh/dewloosh-geom
5c97fbab4b68f4748bf4309184b9e0e877f94cd6
[ "MIT" ]
null
null
null
src/dewloosh/geom/cell.py
dewloosh/dewloosh-geom
5c97fbab4b68f4748bf4309184b9e0e877f94cd6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- try: from collections.abc import Iterable except ImportError: from collections import Iterable import numpy as np from numpy import ndarray from dewloosh.math.array import atleast1d from dewloosh.math.utils import to_range from .celldata import CellData from .utils import jacobian_mat...
33.192
89
0.577489
3,721
0.896843
0
0
0
0
0
0
387
0.093275
c2221b8872b6350f052296a7af3215fb075a5795
30
py
Python
src/python/src/rmq/items/__init__.py
halimov-oa/scrapy-boilerplate
fe3c552fed26bedb0618c245ab923aa34a89ac9d
[ "MIT" ]
34
2019-12-13T10:31:39.000Z
2022-03-09T15:59:07.000Z
src/python/src/rmq/items/__init__.py
halimov-oa/scrapy-boilerplate
fe3c552fed26bedb0618c245ab923aa34a89ac9d
[ "MIT" ]
49
2020-02-25T19:41:09.000Z
2022-02-27T12:05:25.000Z
src/python/src/rmq/items/__init__.py
halimov-oa/scrapy-boilerplate
fe3c552fed26bedb0618c245ab923aa34a89ac9d
[ "MIT" ]
23
2019-12-23T15:19:42.000Z
2022-03-09T16:00:15.000Z
from .rmq_item import RMQItem
15
29
0.833333
0
0
0
0
0
0
0
0
0
0
c22246e42a11a496e2843439e4ad4abd332a1d57
968
py
Python
softlearning/environments/mujoco_safety_gym/envs/fetch/slide.py
anyboby/mbpo
98b75cb4cb13a2640fce1fbe1ddef466b864342e
[ "MIT" ]
5
2020-02-12T17:09:09.000Z
2021-09-29T16:06:40.000Z
softlearning/environments/mujoco_safety_gym/envs/fetch/slide.py
anyboby/mbpo
98b75cb4cb13a2640fce1fbe1ddef466b864342e
[ "MIT" ]
10
2020-08-31T02:50:02.000Z
2022-02-09T23:36:43.000Z
softlearning/environments/mujoco_safety_gym/envs/fetch/slide.py
anyboby/mbpo
98b75cb4cb13a2640fce1fbe1ddef466b864342e
[ "MIT" ]
2
2022-03-15T01:45:26.000Z
2022-03-15T06:46:47.000Z
import os import numpy as np from gym import utils from mujoco_safety_gym.envs import fetch_env # Ensure we get the path separator correct on windows MODEL_XML_PATH = os.path.join('fetch', 'slide.xml') class FetchSlideEnv(fetch_env.FetchEnvNew, utils.EzPickle): def __init__(self, reward_type='sparse'): ...
37.230769
105
0.66219
760
0.785124
0
0
0
0
0
0
139
0.143595
c222e22c9b1710ce4667ef563dce67f96dc33915
163
py
Python
packages/raspi_ip/setup.py
atoy322/PiDrive
8758f4b5dae4a0187ce0a769c4146628c88015de
[ "MIT" ]
null
null
null
packages/raspi_ip/setup.py
atoy322/PiDrive
8758f4b5dae4a0187ce0a769c4146628c88015de
[ "MIT" ]
2
2021-09-21T06:32:58.000Z
2021-09-22T23:15:18.000Z
packages/raspi_ip/setup.py
atoy322/PiDrive
8758f4b5dae4a0187ce0a769c4146628c88015de
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name="raspi_ip", version="1.0.0", author="atoy322", description="", long_description="" )
14.818182
43
0.644172
0
0
0
0
0
0
0
0
30
0.184049
c223b2854d4053fb4e412891092b11e58745c844
339
py
Python
kiteconnect/__version__.py
AnjayGoel/pykiteconnect
e33833a86d3e6483f2cff1be8bed74f40d5771c5
[ "MIT" ]
1
2022-02-05T08:43:37.000Z
2022-02-05T08:43:37.000Z
kiteconnect/__version__.py
AnjayGoel/pykiteconnect
e33833a86d3e6483f2cff1be8bed74f40d5771c5
[ "MIT" ]
null
null
null
kiteconnect/__version__.py
AnjayGoel/pykiteconnect
e33833a86d3e6483f2cff1be8bed74f40d5771c5
[ "MIT" ]
null
null
null
__title__ = "open_kite_connect" __description__ = "Fork of the official Kite Connect python client, allowing free access to the api." __url__ = "https://kite.trade" __download_url__ = "https://github.com/AnjayGoel/pykiteconnect" __version__ = "4.0.0" __author__ = "Anjay Goel" __author_email__ = "anjay.goel@gmail.com" _...
37.666667
101
0.766962
0
0
0
0
0
0
0
0
212
0.625369
c223dd7e30b36ebfa0f41bf3e5a06ae1a6e0b5cd
1,679
py
Python
CrsData/pipelines.py
DivineEnder/CrsData
cd0cf14e79b4a3bbf7347b8612a5b67e2a185208
[ "MIT" ]
null
null
null
CrsData/pipelines.py
DivineEnder/CrsData
cd0cf14e79b4a3bbf7347b8612a5b67e2a185208
[ "MIT" ]
null
null
null
CrsData/pipelines.py
DivineEnder/CrsData
cd0cf14e79b4a3bbf7347b8612a5b67e2a185208
[ "MIT" ]
null
null
null
# @Author: DivineEnder # @Date: 2018-03-08 22:24:45 # @Email: danuta@u.rochester.edu # @Last modified by: DivineEnder # @Last modified time: 2018-03-11 01:25:41 # -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy....
34.265306
214
0.731983
1,181
0.703395
0
0
0
0
0
0
876
0.521739
c224e7c1cff16812960fb4cd9afab8ab99e06afc
2,227
py
Python
index_to_csv.py
grenzi/photoindexer
d10b3b6f347168706dc9c2673a29102fd73f31e1
[ "Apache-2.0" ]
null
null
null
index_to_csv.py
grenzi/photoindexer
d10b3b6f347168706dc9c2673a29102fd73f31e1
[ "Apache-2.0" ]
null
null
null
index_to_csv.py
grenzi/photoindexer
d10b3b6f347168706dc9c2673a29102fd73f31e1
[ "Apache-2.0" ]
null
null
null
import os import json from enum import Enum from datetime import datetime,date import logging import pathlib from tqdm import tqdm from datastructures import Volume, IndexedFile,load_index_if_exists, save_index from os import listdir from os.path import isfile, join import itertools import csv logger = lo...
35.349206
122
0.58599
0
0
0
0
0
0
0
0
387
0.173776
c2253045dcaa56a5991a62320574be6662b1c519
1,056
py
Python
tests/test_wrapper.py
waysup/Jike-Metro
b8ead80dddd5d695784c5587edfd8df87c55a4e6
[ "MIT" ]
193
2018-04-04T02:27:51.000Z
2022-03-14T03:26:44.000Z
tests/test_wrapper.py
BeiFenKu/Jike-Metro
e97fd0a751dca28a39d0e9fb94fbd696d5ee07b3
[ "MIT" ]
16
2018-04-04T05:58:15.000Z
2021-01-08T02:56:57.000Z
tests/test_wrapper.py
BeiFenKu/Jike-Metro
e97fd0a751dca28a39d0e9fb94fbd696d5ee07b3
[ "MIT" ]
24
2018-04-06T09:34:58.000Z
2021-03-02T02:10:07.000Z
import unittest from collections import namedtuple from jike.objects.wrapper import * class TestWrapper(unittest.TestCase): def setUp(self): self.Test = namedtuple('Test', ['id', 'content', 'other', 'none']) def test_repr_namedtuple(self): self.Test.__repr__ = repr_namedtuple test = s...
34.064516
83
0.61553
918
0.869318
0
0
0
0
0
0
205
0.194129
c225d7cd38555d8a71f34fd96c413aa41e8e84be
10,125
py
Python
storm_control/hal4000/illumination/illuminationChannelUI.py
shiwei23/STORM6
669067503ebd164b575ce529fcc4a9a3f576b3d7
[ "MIT" ]
47
2015-02-11T16:05:54.000Z
2022-03-26T14:13:12.000Z
storm_control/hal4000/illumination/illuminationChannelUI.py
shiwei23/STORM6
669067503ebd164b575ce529fcc4a9a3f576b3d7
[ "MIT" ]
110
2015-01-30T03:53:41.000Z
2021-11-03T15:58:44.000Z
storm_control/hal4000/illumination/illuminationChannelUI.py
shiwei23/STORM6
669067503ebd164b575ce529fcc4a9a3f576b3d7
[ "MIT" ]
61
2015-01-09T18:31:27.000Z
2021-12-21T13:07:51.000Z
#!/usr/bin/env python """ The various ChannelUI classes. Hazen 04/17 """ import os from PyQt5 import QtCore, QtWidgets def loadStyleSheet(name): text = "" with open(os.path.join(os.path.dirname(__file__), name)) as fp: text += fp.read() return text class ChannelUI(QtWidgets.QFrame): "...
32.041139
100
0.645136
8,704
0.859654
0
0
0
0
0
0
2,737
0.270321
c229b5ef4f038beb67f6eb13b6306e08e27df0c9
4,051
py
Python
3-compressor/compress.py
JamesG3/Search-Engine
790f32c7833eb82d9b01b84af634e650ef7a9e75
[ "BSD-2-Clause" ]
null
null
null
3-compressor/compress.py
JamesG3/Search-Engine
790f32c7833eb82d9b01b84af634e650ef7a9e75
[ "BSD-2-Clause" ]
null
null
null
3-compressor/compress.py
JamesG3/Search-Engine
790f32c7833eb82d9b01b84af634e650ef7a9e75
[ "BSD-2-Clause" ]
null
null
null
import sys import struct from io import FileIO, BufferedWriter import S9Compressor as S9 BLOCKSIZE = (64*1024) / 4 # number of Int LexiPos = 0 # record the current position for new lexicon writing lexiconBuffer = [] IIBuffer = [] WriteThreshold = 0 def docidPrepare(docidList): # calculate the diff, return ...
26.827815
96
0.674155
0
0
0
0
0
0
0
0
809
0.199704
c22ad6cee4570624757675e6c7ad19a18a8249f2
5,028
py
Python
DataProcess/ultimate_subimage.py
EmmaAlexander/possum-tools
051ebca682cd97b68fa2a89c9d67e99cf85b09c7
[ "MIT" ]
5
2021-11-18T13:27:30.000Z
2021-12-05T00:15:33.000Z
DataProcess/ultimate_subimage.py
EmmaAlexander/possum-tools
051ebca682cd97b68fa2a89c9d67e99cf85b09c7
[ "MIT" ]
null
null
null
DataProcess/ultimate_subimage.py
EmmaAlexander/possum-tools
051ebca682cd97b68fa2a89c9d67e99cf85b09c7
[ "MIT" ]
null
null
null
#CASA script to create cutouts of fits cubes directoryA = '/Volumes/TARDIS/Work/askap/' directoryB = '/Volumes/NARNIA/pilot_cutouts/' import numpy as np sources=np.loadtxt('/Users/emma/GitHub/possum-tools/DataProcess/pilot_sources.txt',dtype='str') for i in range(0,sources.shape[0]): objectname=sources[i,0] POSSUM...
57.136364
134
0.793755
0
0
0
0
0
0
0
0
2,054
0.408512
c22b8b9f23f5fc7b3cfeba52a978e7ba6441ed61
92
py
Python
cv_comparison_slider_window/__init__.py
Kazuhito00/cv-comparison-slider-window
215cd91c1832b419af9fb99b484ce8c2a9e79a37
[ "MIT" ]
2
2020-11-14T09:09:02.000Z
2020-11-14T10:54:57.000Z
cv_comparison_slider_window/__init__.py
Kazuhito00/cv-comparison-slider-window
215cd91c1832b419af9fb99b484ce8c2a9e79a37
[ "MIT" ]
null
null
null
cv_comparison_slider_window/__init__.py
Kazuhito00/cv-comparison-slider-window
215cd91c1832b419af9fb99b484ce8c2a9e79a37
[ "MIT" ]
null
null
null
from cv_comparison_slider_window.cv_comparison_slider_window import CvComparisonSliderWindow
92
92
0.956522
0
0
0
0
0
0
0
0
0
0
c22bb60421f79ce3a2d29c04e35af61e67fb09d3
1,207
py
Python
telegram_ecommerce/filters/decorators.py
Anonylions/telegram_ecommerce
f5382886bbebf607c735e2f451774c56df8d6011
[ "MIT" ]
10
2020-11-20T20:55:52.000Z
2022-02-10T20:25:45.000Z
telegram_ecommerce/filters/decorators.py
Anonylions/telegram_ecommerce
f5382886bbebf607c735e2f451774c56df8d6011
[ "MIT" ]
1
2022-02-16T10:28:18.000Z
2022-02-16T10:35:31.000Z
telegram_ecommerce/filters/decorators.py
Anonylions/telegram_ecommerce
f5382886bbebf607c735e2f451774c56df8d6011
[ "MIT" ]
8
2021-05-01T01:13:09.000Z
2022-03-13T14:00:01.000Z
from ..language import get_text from ..database.query import ( user_exist, is_admin) END = -1 def warning_the_user_that_already_have_an_account(update, context): text = get_text("user_have_account", context) update.message.reply_text(text) return END def warning_the_user_that_he_dont_have_an_a...
26.822222
67
0.71831
0
0
0
0
0
0
0
0
43
0.035626
c22fbe148dfbc37e36952003c17c1b1180d11337
63
py
Python
albow/demo/openGL/__init__.py
hasii2011/albow-python-3
04b9d42705b370b62f0e49d10274eebf3ac54bc1
[ "MIT" ]
6
2019-04-30T23:50:39.000Z
2019-11-04T06:15:02.000Z
albow/demo/openGL/__init__.py
hasii2011/albow-python-3
04b9d42705b370b62f0e49d10274eebf3ac54bc1
[ "MIT" ]
73
2019-05-12T18:43:14.000Z
2021-04-13T19:19:03.000Z
albow/demo/openGL/__init__.py
hasii2011/albow-python-3
04b9d42705b370b62f0e49d10274eebf3ac54bc1
[ "MIT" ]
null
null
null
"""" This package contains the OpenGL demonstration classes """
21
54
0.761905
0
0
0
0
0
0
0
0
63
1
c2306615617cec84564c5dcb8ee8a144809be27e
1,640
py
Python
openhab2/scripts/readNilan.py
starze/openhab2
e4eeeecd829cdf286372067bd61561e63fed6e1a
[ "MIT" ]
10
2017-04-04T08:28:54.000Z
2021-02-24T04:36:07.000Z
openhab2/scripts/readNilan.py
starze/openhab2
e4eeeecd829cdf286372067bd61561e63fed6e1a
[ "MIT" ]
2
2017-04-18T13:33:12.000Z
2018-06-05T21:27:18.000Z
openhab2/scripts/readNilan.py
starze/openhab2
e4eeeecd829cdf286372067bd61561e63fed6e1a
[ "MIT" ]
7
2017-04-17T18:02:19.000Z
2020-09-25T21:28:08.000Z
#!/usr/bin/env python3 # -*- coding: ISO-8859-1 -*- # https://github.com/starze/openhab2 # https://github.com/roggmaeh/nilan-openhab import minimalmodbus import serial import os, sys import csv import httplib2 minimalmodbus.CLOSE_PORT_AFTER_EACH_CALL = True instrument = minimalmodbus.Instrument('/dev/ttyUSB0', 30, m...
34.166667
109
0.675
0
0
0
0
0
0
0
0
523
0.318708
c230b7732d9a3dd108e45e13abd94ad053baac7e
2,316
py
Python
face_signin/prepare_training.py
sribs/FaceRecognition
68284173195d55f32a353fe3d78a53c25fbf1363
[ "Apache-2.0" ]
null
null
null
face_signin/prepare_training.py
sribs/FaceRecognition
68284173195d55f32a353fe3d78a53c25fbf1363
[ "Apache-2.0" ]
null
null
null
face_signin/prepare_training.py
sribs/FaceRecognition
68284173195d55f32a353fe3d78a53c25fbf1363
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np import os def prepare_training_data(data_folder_path): #------STEP-1-------- #get the directories (one directory for each subject) in data folder dirs = sorted(os.listdir(data_folder_path)) #print(dirs) faces = [] labels = [] for label,coun...
31.297297
85
0.593264
0
0
0
0
0
0
0
0
926
0.399827
c230e009f1c0351446c02fccceb30b7ead29e784
138
py
Python
randomselection.py
Ristinoa/cs257
e7c31f995d08661114d868a55448c628b4cc9327
[ "MIT" ]
null
null
null
randomselection.py
Ristinoa/cs257
e7c31f995d08661114d868a55448c628b4cc9327
[ "MIT" ]
null
null
null
randomselection.py
Ristinoa/cs257
e7c31f995d08661114d868a55448c628b4cc9327
[ "MIT" ]
null
null
null
"randompicker.py" import random "A very short practice program designed to spit out a random, user-determined sample of input names"
13.8
39
0.775362
0
0
0
0
0
0
0
0
17
0.123188
c2318081600b41f253e54a78d1001f4ddb857e30
15,873
py
Python
fisspy/analysis/tdmap.py
SNU-sunday/FISS-PYTHON
f79420debef476a904356d42542cb6472990bb2f
[ "BSD-2-Clause" ]
3
2017-02-18T06:42:08.000Z
2021-01-05T04:15:08.000Z
fisspy/analysis/tdmap.py
SNU-sunday/fisspy
f79420debef476a904356d42542cb6472990bb2f
[ "BSD-2-Clause" ]
1
2019-06-30T10:35:27.000Z
2019-06-30T10:35:27.000Z
fisspy/analysis/tdmap.py
SNU-sunday/FISS-PYTHON
f79420debef476a904356d42542cb6472990bb2f
[ "BSD-2-Clause" ]
1
2017-02-23T05:24:13.000Z
2017-02-23T05:24:13.000Z
from __future__ import absolute_import, division import numpy as np import matplotlib.pyplot as plt from matplotlib import gridspec from fisspy.analysis.filter import FourierFilter from interpolation.splines import LinearSpline from matplotlib.animation import FuncAnimation import astropy.units as u from astropy.time i...
41.015504
86
0.449001
15,476
0.974989
0
0
0
0
0
0
1,279
0.080577
c231926cf5107bb89588302bb3bc85d7ec967624
2,806
py
Python
Graphy/setup.py
andrepbento/OpenTracingProcessor
9e4b01cb59cecbfa04af8d5d93e3b7deb76d9ee6
[ "MIT" ]
4
2021-03-06T13:50:58.000Z
2022-03-28T15:17:07.000Z
Graphy/setup.py
andrepbento/OpenTracingProcessor
9e4b01cb59cecbfa04af8d5d93e3b7deb76d9ee6
[ "MIT" ]
null
null
null
Graphy/setup.py
andrepbento/OpenTracingProcessor
9e4b01cb59cecbfa04af8d5d93e3b7deb76d9ee6
[ "MIT" ]
null
null
null
""" Author: André Bento Date last modified: 26-02-2019 """ import subprocess import sys from os.path import dirname, abspath, join from setuptools import find_packages, Command, setup from setuptools.command.test import test as TestCommand this_dir = abspath(dirname(__file__)) NAME = 'graphy' VERSION = '0.0....
24.189655
82
0.62794
993
0.353632
0
0
0
0
0
0
882
0.314103
c232029579d8b288e2ac9ed43b03f0690df1e9c2
1,317
py
Python
polaris/polaris/sep24/tzinfo.py
yuriescl/django-polaris
8806d0e4e8baaddbffbceb3609786d2436b8abe1
[ "Apache-2.0" ]
81
2019-11-16T21:47:22.000Z
2022-02-17T07:35:02.000Z
polaris/polaris/sep24/tzinfo.py
yuriescl/django-polaris
8806d0e4e8baaddbffbceb3609786d2436b8abe1
[ "Apache-2.0" ]
491
2019-11-10T23:44:30.000Z
2022-03-20T00:25:02.000Z
polaris/polaris/sep24/tzinfo.py
yuriescl/django-polaris
8806d0e4e8baaddbffbceb3609786d2436b8abe1
[ "Apache-2.0" ]
89
2019-11-18T21:31:01.000Z
2022-03-28T13:47:41.000Z
import pytz from datetime import datetime, timedelta, timezone from rest_framework.decorators import api_view, parser_classes, renderer_classes from rest_framework.parsers import JSONParser from rest_framework.renderers import JSONRenderer from rest_framework.request import Request from rest_framework.response import ...
34.657895
87
0.741838
0
0
0
0
833
0.632498
0
0
147
0.111617
c2321c74ae596a68d5084730c6df5fe1a40a8090
1,615
py
Python
utils/fundoptutils.py
joshualee155/FundOptimizer
da842de6c99f89c767d03c9ef1b392237b726a3f
[ "MIT" ]
2
2021-01-03T00:46:51.000Z
2021-09-01T02:48:51.000Z
utils/fundoptutils.py
joshualee155/FundOptimizer
da842de6c99f89c767d03c9ef1b392237b726a3f
[ "MIT" ]
null
null
null
utils/fundoptutils.py
joshualee155/FundOptimizer
da842de6c99f89c767d03c9ef1b392237b726a3f
[ "MIT" ]
1
2021-08-28T11:04:00.000Z
2021-08-28T11:04:00.000Z
import pandas as pd import datetime as dt class FundType( object ): OF = 'Open Ended Fund' ETF = 'Exchange Traded Fund' LOF = 'Listed Open Ended Fund' MMF = 'Money Market Fund' def getFundType( fundCode ): fundTypeDf = pd.read_csv( 'refData/fund_list.csv', names = [ 'fundCode', 'fundType...
30.471698
102
0.596285
160
0.099071
0
0
0
0
0
0
414
0.256347
c2329a7b9e06911a1ed82d81214f1385b352823d
398
py
Python
Http-api-auth0-jwt/src/list-all-unicorns.py
JimmyDqv/blogs-and-sessions-code
737a2e88f3fd84bd8426be609f7474374d4ac4d6
[ "MIT" ]
2
2021-07-08T10:31:11.000Z
2022-01-07T23:04:31.000Z
Http-api-auth0-jwt/src/list-all-unicorns.py
JimmyDqv/blogs-and-sessions-code
737a2e88f3fd84bd8426be609f7474374d4ac4d6
[ "MIT" ]
null
null
null
Http-api-auth0-jwt/src/list-all-unicorns.py
JimmyDqv/blogs-and-sessions-code
737a2e88f3fd84bd8426be609f7474374d4ac4d6
[ "MIT" ]
null
null
null
import json def lambda_handler(event, context): unicorns = [ { "name": "Gaia", "gift": "Speed" }, { "name": "Magestic", "gift": "Magic" }, { "name": "Sparkles", "gift": "Glitter" } ] r...
15.92
36
0.371859
0
0
0
0
0
0
0
0
103
0.258794
c232b3257fa969c4deba44d282906664d6091820
253
py
Python
examples/http_server.py
srossross/uvio
f4d55ad5ea5900a2a8b9c1249484ed621dc30055
[ "MIT" ]
3
2016-03-23T08:12:03.000Z
2018-10-06T02:46:54.000Z
examples/http_server.py
srossross/uvio
f4d55ad5ea5900a2a8b9c1249484ed621dc30055
[ "MIT" ]
null
null
null
examples/http_server.py
srossross/uvio
f4d55ad5ea5900a2a8b9c1249484ed621dc30055
[ "MIT" ]
null
null
null
import uvio async def route(req): pass async def handler(req, res): await route(req, res)() res.end("Yes") @uvio.run async def main(): server = await uvio.http.listen(handler, host='127.0.0.1', port=80) print("server", server)
14.882353
71
0.632411
0
0
0
0
129
0.509881
224
0.885375
24
0.094862
c2334b533c25c85bcfe5823b2fbd3fe0b9cec5f6
7,933
py
Python
ui/django_site_v2/data_cube_ui/utils/dc_mosaic.py
ceos-seo/Data_Cube_v2
81c3be66153ea123b5d21cf9ec7f59ccb7a2050a
[ "Apache-2.0" ]
27
2016-08-16T18:22:47.000Z
2018-08-25T17:18:15.000Z
ui/django_site_v2/data_cube_ui/utils/dc_mosaic.py
data-cube/CEOS-cube
31baeba08d8e8470c4663c18aaf9056431d9c49f
[ "Apache-2.0" ]
null
null
null
ui/django_site_v2/data_cube_ui/utils/dc_mosaic.py
data-cube/CEOS-cube
31baeba08d8e8470c4663c18aaf9056431d9c49f
[ "Apache-2.0" ]
27
2016-08-26T18:14:40.000Z
2021-12-24T08:41:29.000Z
# Copyright 2016 United States Government as represented by the Administrator # of the National Aeronautics and Space Administration. All Rights Reserved. # # Portion of this code is Copyright Geoscience Australia, Licensed under the # Apache License, Version 2.0 (the "License"); you may not use this file # except in ...
40.682051
173
0.704399
0
0
0
0
0
0
0
0
3,318
0.418253
c234a2bf9d847b0178d0e12fe82918d472e89c91
2,014
py
Python
plotter.py
keshavbantu/covclass
e27cfb4ff8e7e6f076c3429aa1c4696e173bc3a4
[ "MIT" ]
null
null
null
plotter.py
keshavbantu/covclass
e27cfb4ff8e7e6f076c3429aa1c4696e173bc3a4
[ "MIT" ]
null
null
null
plotter.py
keshavbantu/covclass
e27cfb4ff8e7e6f076c3429aa1c4696e173bc3a4
[ "MIT" ]
null
null
null
import cleaner as dataStream import plotly.graph_objects as go import plotly.io as pio #DONUT PLOT - CONDITIONS ----------------------------------------- labels = ['Diabetes','Hypertension','Coronary Heart(D)','Chronic Kidney(D)','No Conditions','Obstructive Pulmonary(D)'] values = dataStream.PIEList fig_cond = go.Fi...
38
124
0.627607
0
0
0
0
0
0
0
0
874
0.433962
c235b37d33733193984303077c70e9f3d941faa4
1,847
py
Python
pyglare/scene/objects.py
keyvank/pyglare
9e26ae444ff4481f0f50d7344d2a5a881d04fe64
[ "MIT" ]
6
2017-01-13T22:32:55.000Z
2022-03-27T22:19:49.000Z
pyglare/scene/objects.py
keyvank/pyglare
9e26ae444ff4481f0f50d7344d2a5a881d04fe64
[ "MIT" ]
1
2016-09-13T17:59:41.000Z
2016-09-13T18:05:20.000Z
pyglare/scene/objects.py
keyvank/pyglare
9e26ae444ff4481f0f50d7344d2a5a881d04fe64
[ "MIT" ]
null
null
null
from ..math import geometry as geo from ..image.color import Color import math class Material: def __init__(self,color,diffuse_rate,specular_rate,specular_exponent,reflection_rate): self.color = color self.diffuse_rate = diffuse_rate self.specular_rate = specular_rate self.specular_exponent = specular_expon...
24.959459
102
0.7634
1,757
0.951272
0
0
0
0
0
0
155
0.08392
c235c83aedce86f0591eb9d244db1ef5424b59b5
1,401
py
Python
Led.py
Zico56/raspberry-gt500
85e29ec8bb604fab9c0eb37b63e85b8058baf2b2
[ "Xnet", "X11" ]
null
null
null
Led.py
Zico56/raspberry-gt500
85e29ec8bb604fab9c0eb37b63e85b8058baf2b2
[ "Xnet", "X11" ]
null
null
null
Led.py
Zico56/raspberry-gt500
85e29ec8bb604fab9c0eb37b63e85b8058baf2b2
[ "Xnet", "X11" ]
null
null
null
import time from tkinter import * from PIL import Image, ImageTk from Configuration import config class Led: imageOn = Image.open(config.get('APPLICATION', 'LED_ON_IMG')) imageOff = Image.open(config.get('APPLICATION', 'LED_OFF_IMG')) STATE_ON = "ON" STATE_OFF = "OFF" def __init__(self, pare...
31.840909
67
0.615989
1,302
0.929336
0
0
0
0
0
0
590
0.421128
c236c320912188a01c92278b510292a2d1855a42
249
py
Python
tests/accounts/model/test_social_security_number.py
Hyaxia/Bank-DDD-CQRS-ES
116e3eb3e93d549c1da53e6d506ab47667d77445
[ "MIT" ]
8
2020-10-27T09:46:20.000Z
2022-01-27T12:16:48.000Z
tests/accounts/model/test_social_security_number.py
Hyaxia/Bank-DDD-CQRS-ES
116e3eb3e93d549c1da53e6d506ab47667d77445
[ "MIT" ]
null
null
null
tests/accounts/model/test_social_security_number.py
Hyaxia/Bank-DDD-CQRS-ES
116e3eb3e93d549c1da53e6d506ab47667d77445
[ "MIT" ]
2
2021-05-29T08:11:48.000Z
2021-07-26T04:44:53.000Z
import pytest from bank_ddd_es_cqrs.accounts import SocialSecurityNumber def test_social_security_number_throws_app_exception_with_status_422_if_too_much_digits(): with pytest.raises(ValueError) as e: SocialSecurityNumber(1324352351)
27.666667
90
0.84739
0
0
0
0
0
0
0
0
0
0
c236d3b1e5bb73ed1d08dc25325aad2b8f8b0b9e
358
py
Python
setup.py
jjakimoto/rl_traders.py
d5411c96d49ba6a54751d12cdd11974e5cc1a8aa
[ "MIT" ]
2
2018-10-07T14:16:32.000Z
2019-01-28T00:14:29.000Z
setup.py
jjakimoto/rl_traders.py
d5411c96d49ba6a54751d12cdd11974e5cc1a8aa
[ "MIT" ]
null
null
null
setup.py
jjakimoto/rl_traders.py
d5411c96d49ba6a54751d12cdd11974e5cc1a8aa
[ "MIT" ]
1
2019-11-05T00:51:20.000Z
2019-11-05T00:51:20.000Z
from setuptools import setup from setuptools import find_packages setup(name='rl_traders', version='0.1.0', description='Reinforcement Learning for Trading', url='https://github.com/jjakimoto/rl_traders.git', author='jjakimoto', author_email='f.j.akimoto@gmail.com', license='MIT', ...
27.538462
56
0.678771
0
0
0
0
0
0
0
0
139
0.388268
c239846032333fb5d26b1c1eb5b5c8a5cf233d15
2,219
py
Python
Music/__init__.py
izazkhan8293/Musicheu
9cd33a71868b8b850d6fd78eaac05dda0713b7cc
[ "Apache-2.0" ]
null
null
null
Music/__init__.py
izazkhan8293/Musicheu
9cd33a71868b8b850d6fd78eaac05dda0713b7cc
[ "Apache-2.0" ]
null
null
null
Music/__init__.py
izazkhan8293/Musicheu
9cd33a71868b8b850d6fd78eaac05dda0713b7cc
[ "Apache-2.0" ]
null
null
null
from pyrogram import Client import asyncio from Music.config import API_ID, API_HASH, BOT_TOKEN, MONGO_DB_URI, SUDO_USERS from motor.motor_asyncio import AsyncIOMotorClient as MongoClient import time import uvloop from Music import config import importlib from pyrogram import Client as Bot from Music.config import API_...
28.448718
102
0.708878
0
0
0
0
0
0
473
0.213159
112
0.050473
c23a870064fefb4e740984ad848e886ea4aa0cd9
9,372
py
Python
test.py
ZJianjin/Traffic4cast2020_lds
6cb76e885a9539e485c055222be77f41a559c507
[ "Apache-2.0" ]
3
2020-12-10T13:43:08.000Z
2021-01-17T04:36:34.000Z
test.py
ZJianjin/Traffic4cast2020_lds
6cb76e885a9539e485c055222be77f41a559c507
[ "Apache-2.0" ]
null
null
null
test.py
ZJianjin/Traffic4cast2020_lds
6cb76e885a9539e485c055222be77f41a559c507
[ "Apache-2.0" ]
null
null
null
import random from random import shuffle import numpy as np import tensorflow as tf from tensorflow.python.tools import freeze_graph import datetime import time import queue import threading import logging from PIL import Image import itertools import yaml import re import os import glob import shutil import sys import...
37.94332
122
0.636364
0
0
0
0
0
0
0
0
1,666
0.177764
c23bc080151d66518c85923b1ce1c8be7c0ff949
3,037
py
Python
python/python-010/rds.py
suzuxander/suzuxander_samples
736224dae91b432ef3ec796f5eda23417865f142
[ "MIT" ]
null
null
null
python/python-010/rds.py
suzuxander/suzuxander_samples
736224dae91b432ef3ec796f5eda23417865f142
[ "MIT" ]
null
null
null
python/python-010/rds.py
suzuxander/suzuxander_samples
736224dae91b432ef3ec796f5eda23417865f142
[ "MIT" ]
null
null
null
from troposphere import Template, Ref, Parameter, GetAtt from troposphere.ec2 import SecurityGroup from troposphere.rds import DBSubnetGroup, DBInstance def create_rds_template(): template = Template() vpc = template.add_parameter( parameter=Parameter( title='Vpc', Type='Strin...
25.957265
66
0.55186
0
0
0
0
0
0
0
0
451
0.148502
c23f39dcaa9bc21fb37ef18d6de38e47058d0da3
514
py
Python
hlwtadmin/migrations/0044_gigfinderurl_ignore_periods.py
Kunstenpunt/havelovewilltravel
6a27824b4d3d8b1bf19e0bc0d0648f0f4e8abc83
[ "Apache-2.0" ]
1
2020-10-16T16:29:01.000Z
2020-10-16T16:29:01.000Z
hlwtadmin/migrations/0044_gigfinderurl_ignore_periods.py
Kunstenpunt/havelovewilltravel
6a27824b4d3d8b1bf19e0bc0d0648f0f4e8abc83
[ "Apache-2.0" ]
365
2020-02-03T12:46:53.000Z
2022-02-27T17:20:46.000Z
hlwtadmin/migrations/0044_gigfinderurl_ignore_periods.py
Kunstenpunt/havelovewilltravel
6a27824b4d3d8b1bf19e0bc0d0648f0f4e8abc83
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.7 on 2021-01-26 09:57 import django.contrib.postgres.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('hlwtadmin', '0043_auto_20210126_0833'), ] operations = [ migrations.AddField( model_name='...
25.7
126
0.659533
383
0.745136
0
0
0
0
0
0
113
0.219844
c23fbfd17a95b6fdf7b229efd815b011116431cc
1,855
py
Python
conanfile.py
ltjax/nativefiledialog-extended
2dc958b98f41e081189e84b56f9f250e1b30f92e
[ "Zlib" ]
null
null
null
conanfile.py
ltjax/nativefiledialog-extended
2dc958b98f41e081189e84b56f9f250e1b30f92e
[ "Zlib" ]
null
null
null
conanfile.py
ltjax/nativefiledialog-extended
2dc958b98f41e081189e84b56f9f250e1b30f92e
[ "Zlib" ]
null
null
null
from conans import ConanFile, CMake, tools class NativeFileDialogExtendedConan(ConanFile): name = "nativefiledialog-extended" version = "1.0" license = "zlib" author = "Marius Elvert marius.elvert@googlemail.com" url = "https://github.com/ltjax/nativefiledialog-extended" description = "Small C...
40.326087
116
0.654447
1,810
0.975741
0
0
0
0
0
0
433
0.233423
c24130645b33d6b4c145bae50da7d266149801e6
960
py
Python
hackerearth/Algorithms/New World/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
4
2020-07-24T01:59:50.000Z
2021-07-24T15:14:08.000Z
hackerearth/Algorithms/New World/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
hackerearth/Algorithms/New World/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
""" # Sample code to perform I/O: name = input() # Reading input from STDIN print('Hi, %s.' % name) # Writing output to STDOUT # Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail """ # Write your code here import bisect def check(arr, x, ln, val):...
24
94
0.527083
0
0
0
0
0
0
0
0
328
0.341667
c2416fc1e551162c64c074b04f41a960aa792575
712
py
Python
core/departments/urls.py
IvanRch/bsuphys
105715cde8fc8e9a42019ed4b650fe00b94fa132
[ "Apache-2.0" ]
1
2022-01-04T07:04:46.000Z
2022-01-04T07:04:46.000Z
core/departments/urls.py
IvanRch/bsuphys
105715cde8fc8e9a42019ed4b650fe00b94fa132
[ "Apache-2.0" ]
1
2020-02-17T19:06:03.000Z
2020-02-17T19:06:03.000Z
core/departments/urls.py
IvanRch/bsuphys
105715cde8fc8e9a42019ed4b650fe00b94fa132
[ "Apache-2.0" ]
1
2021-07-08T13:21:04.000Z
2021-07-08T13:21:04.000Z
from django.urls import path, re_path from . import views app_name = "departments" urlpatterns = [path("", views.departmentList, name="energy department"), path( "<slug:department>/", views.department_detail, name="department_detail", ), path( "<slug:departm...
25.428571
72
0.573034
0
0
0
0
0
0
0
0
214
0.300562
c2456834188f5aaff78f04e88343303b398c8b26
432
py
Python
18th May Assignments/case study 1/question_5.py
JangirSumit/data_science
a1957122f8a4c66e3b4c7b7c93a74c53a2db1fe4
[ "MIT" ]
15
2019-05-05T04:48:42.000Z
2022-02-15T12:08:33.000Z
18th May Assignments/case study 1/question_5.py
JangirSumit/data_science
a1957122f8a4c66e3b4c7b7c93a74c53a2db1fe4
[ "MIT" ]
null
null
null
18th May Assignments/case study 1/question_5.py
JangirSumit/data_science
a1957122f8a4c66e3b4c7b7c93a74c53a2db1fe4
[ "MIT" ]
53
2019-11-10T05:09:25.000Z
2022-03-28T01:26:32.000Z
# 5. How do you Count The Number Of Times Each Value Appears In An Array Of Integers? # [0, 5, 4, 0, 4, 4, 3, 0, 0, 5, 2, 1, 1, 9] # Answer should be array([4, 2, 1, 1, 3, 2, 0, 0, 0, 1]) which means 0 comes 4 times, 1 comes 2 times, 2 comes 1 time, 3 comes 1 time and so on. array = [0, 5, 4, 0, 4, 4, 3,...
43.2
144
0.601852
0
0
0
0
0
0
0
0
287
0.664352
c246213af42c94a04ec5e4409ced7cd800cf77ef
4,957
py
Python
pvp-tic-tac-toe.py
lsfidelis/pvp-tic-tac-toe
6ed73e5a053cc22a092c7b56d774503f57a859ab
[ "MIT" ]
null
null
null
pvp-tic-tac-toe.py
lsfidelis/pvp-tic-tac-toe
6ed73e5a053cc22a092c7b56d774503f57a859ab
[ "MIT" ]
null
null
null
pvp-tic-tac-toe.py
lsfidelis/pvp-tic-tac-toe
6ed73e5a053cc22a092c7b56d774503f57a859ab
[ "MIT" ]
null
null
null
from time import sleep print("Welcome to Tic Tac Toe! \nWe'll be playing in a sec, but, first..") general_board = {'7': ' ', '8': ' ', '9': ' ', '4': ' ', '5': ' ', '6': ' ', '1': ' ', '2': ' ', '3': ' '} # prints board structure def show_board(board): print('\t\t', board['7'],...
35.92029
89
0.435747
0
0
0
0
0
0
0
0
1,456
0.293726
c24663b502469b48e008fb30a563fba0b901fd18
7,119
py
Python
total_tolles_ferleihsystem/auth_providers/ldap_auth_provider.py
spethso/Verleihsystem-TTF
39179f9ac5b07f5106e555f82f3c9011d33805bd
[ "MIT" ]
1
2019-03-17T08:11:14.000Z
2019-03-17T08:11:14.000Z
total_tolles_ferleihsystem/auth_providers/ldap_auth_provider.py
spethso/Verleihsystem-TTF
39179f9ac5b07f5106e555f82f3c9011d33805bd
[ "MIT" ]
60
2018-06-12T14:46:50.000Z
2020-11-16T00:50:37.000Z
total_tolles_ferleihsystem/auth_providers/ldap_auth_provider.py
FIUS/ttf-backend
39179f9ac5b07f5106e555f82f3c9011d33805bd
[ "MIT" ]
1
2019-12-02T19:25:59.000Z
2019-12-02T19:25:59.000Z
""" Auth Providers which provides LDAP login """ from typing import List, Dict from ldap3 import Connection, Server, AUTO_BIND_TLS_BEFORE_BIND, SUBTREE from ldap3.core.exceptions import LDAPSocketOpenError, LDAPBindError from ..login import LoginProvider from .. import APP, AUTH_LOGGER class LDAPAuthProvider(LoginPr...
47.46
118
0.61975
6,828
0.959123
0
0
409
0.057452
0
0
1,822
0.255935
c247338889dd4aef3193b428e74aac5424652e3f
4,117
py
Python
md2html.py
osfans/yancheng
1f5cec75c8d97006f8b2ee4b1b36b7dc78930ef0
[ "Apache-2.0" ]
4
2017-01-26T03:25:24.000Z
2019-04-15T14:11:46.000Z
md2html.py
osfans/yancheng
1f5cec75c8d97006f8b2ee4b1b36b7dc78930ef0
[ "Apache-2.0" ]
1
2016-12-02T04:26:31.000Z
2016-12-05T05:02:39.000Z
md2html.py
osfans/xu
1f5cec75c8d97006f8b2ee4b1b36b7dc78930ef0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import re, os, glob template = """ <!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"> <style> body { font-family: PMingLiu, HanaMinA, HanaMinB, Helvetica, arial, sans-serif; writing-mode: vertical-rl...
24.360947
120
0.459072
0
0
0
0
0
0
0
0
1,646
0.396531
c2478e02ca506e0323d992197336faa1570d5c97
2,460
py
Python
plugin_hide_run_panel/__init__.py
Holt59/modorganizer-python_plugins
f3404b1c3d9b8f5a6aa2133b47f7fc0218c18dc9
[ "MIT" ]
null
null
null
plugin_hide_run_panel/__init__.py
Holt59/modorganizer-python_plugins
f3404b1c3d9b8f5a6aa2133b47f7fc0218c18dc9
[ "MIT" ]
null
null
null
plugin_hide_run_panel/__init__.py
Holt59/modorganizer-python_plugins
f3404b1c3d9b8f5a6aa2133b47f7fc0218c18dc9
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- from PyQt5.QtCore import QCoreApplication from PyQt5.QtWidgets import QMainWindow, QFrame import mobase class HideRunPanelPlugin(mobase.IPlugin): _runFrame: QFrame def __init__(self): super().__init__() def init(self, organizer: mobase.IOrganizer): """ For a ...
31.948052
85
0.660976
2,271
0.923171
0
0
0
0
0
0
925
0.376016
c24ab458d07762596a9a0b958ea5ceac2489021a
164
py
Python
nnet/learning_rate_func/__init__.py
zhaoyan1117/NeuralNet
a0343dd469e981bf9b4f18db0209ca9bfaf58c4f
[ "BSD-2-Clause" ]
null
null
null
nnet/learning_rate_func/__init__.py
zhaoyan1117/NeuralNet
a0343dd469e981bf9b4f18db0209ca9bfaf58c4f
[ "BSD-2-Clause" ]
null
null
null
nnet/learning_rate_func/__init__.py
zhaoyan1117/NeuralNet
a0343dd469e981bf9b4f18db0209ca9bfaf58c4f
[ "BSD-2-Clause" ]
null
null
null
from ._inv_prop_lr import InvPropLR from ._constant_lr import ConstantLR from ._step_size_lr import StepSizeLR from ._dynamic_step_size_lr import DynamicStepSizeLR
32.8
52
0.878049
0
0
0
0
0
0
0
0
0
0
c24d4c5a8f9125c9ef834c785c10d1d380869f30
8,645
py
Python
src/utils/strava.py
adrigrillo/endomondo-strava-migrator
398ff4a0db4a8a5a3a4f0d8fb53157ffeeb88079
[ "MIT" ]
2
2020-12-08T20:51:38.000Z
2021-01-03T20:42:10.000Z
src/utils/strava.py
adrigrillo/endomondo-strava-migrator
398ff4a0db4a8a5a3a4f0d8fb53157ffeeb88079
[ "MIT" ]
1
2020-12-08T21:09:50.000Z
2020-12-08T21:30:35.000Z
src/utils/strava.py
adrigrillo/endomondo-strava-migrator
398ff4a0db4a8a5a3a4f0d8fb53157ffeeb88079
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ utils/strava.py ================= Utility class to Strava API """ import json import time from configparser import ConfigParser, NoOptionError from datetime import datetime from pathlib import Path from typing import Tuple from loguru import logger from stravalib import Client, exc from ut...
36.020833
99
0.65587
0
0
0
0
0
0
0
0
4,769
0.551648
df9a160281e97721997326dd0b0903a52cd73273
5,293
py
Python
train_synthText.py
skyatmoon/Detailed-Handwriting-detection
1eb7ba8087290cbdd3fbc2c092fbdbc2b715fc9c
[ "MIT" ]
1
2020-12-08T01:24:34.000Z
2020-12-08T01:24:34.000Z
train_synthText.py
skyatmoon/Detailed-Handwriting-detection
1eb7ba8087290cbdd3fbc2c092fbdbc2b715fc9c
[ "MIT" ]
null
null
null
train_synthText.py
skyatmoon/Detailed-Handwriting-detection
1eb7ba8087290cbdd3fbc2c092fbdbc2b715fc9c
[ "MIT" ]
null
null
null
""" Author: brooklyn train with synthText """ import torch import torch.nn as nn import torch.optim as optim import torchvision.transforms as transforms import os from net.craft import CRAFT import sys from utils.cal_loss import cal_synthText_loss from dataset.synthDataset import SynthDataset import argparse from eval...
37.807143
128
0.642736
0
0
0
0
0
0
0
0
992
0.18132
df9b4ebedd02514962424a1cc0a1b5aae502b670
1,896
py
Python
friendcircle/models.py
jossafossa/Project24_backend
bb5cc91d21c9f93034b85b3e94e829f7ab33c565
[ "MIT" ]
null
null
null
friendcircle/models.py
jossafossa/Project24_backend
bb5cc91d21c9f93034b85b3e94e829f7ab33c565
[ "MIT" ]
9
2019-12-04T23:15:59.000Z
2022-02-10T09:08:38.000Z
friendcircle/models.py
jossafossa/Project24_backend
bb5cc91d21c9f93034b85b3e94e829f7ab33c565
[ "MIT" ]
null
null
null
from django.db import models class FriendCircle(models.Model): name = models.CharField(blank=True, max_length=255) description = models.CharField(blank=True, max_length=1000) interests = models.ManyToManyField('interests.Interest', blank=True) members = models.ManyToManyField( 'users.CustomUser...
35.773585
103
0.68038
1,611
0.849684
0
0
0
0
0
0
454
0.239451
df9d6d03fbed45db8f46a22336474ebb4831783c
474
py
Python
components/collector/tests/source_collectors/jira/test_issues.py
m-zakeri/quality-time
531931f0d8d4f5d262ea98445868158e41d268da
[ "Apache-2.0" ]
null
null
null
components/collector/tests/source_collectors/jira/test_issues.py
m-zakeri/quality-time
531931f0d8d4f5d262ea98445868158e41d268da
[ "Apache-2.0" ]
null
null
null
components/collector/tests/source_collectors/jira/test_issues.py
m-zakeri/quality-time
531931f0d8d4f5d262ea98445868158e41d268da
[ "Apache-2.0" ]
null
null
null
"""Unit tests for the Jira issues collector.""" from .base import JiraTestCase class JiraIssuesTest(JiraTestCase): """Unit tests for the Jira issue collector.""" METRIC_TYPE = "issues" async def test_issues(self): """Test that the issues are returned.""" issues_json = dict(total=1, issu...
29.625
78
0.679325
391
0.824895
0
0
0
0
271
0.57173
144
0.303797
df9e429f72ebf0471ad51a2d2296ecb2934b944d
1,485
py
Python
cf_xarray/tests/test_coding.py
rcaneill/cf-xarray
210e997ab5e550e411ec1a4e789aac28e77bacff
[ "Apache-2.0" ]
null
null
null
cf_xarray/tests/test_coding.py
rcaneill/cf-xarray
210e997ab5e550e411ec1a4e789aac28e77bacff
[ "Apache-2.0" ]
null
null
null
cf_xarray/tests/test_coding.py
rcaneill/cf-xarray
210e997ab5e550e411ec1a4e789aac28e77bacff
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd import pytest import xarray as xr import cf_xarray as cfxr @pytest.mark.parametrize( "mindex", [ pd.MultiIndex.from_product([["a", "b"], [1, 2]], names=("lat", "lon")), pd.MultiIndex.from_arrays( [["a", "b", "c", "d"], [1, 2, 4, 10]], names=(...
34.534884
80
0.60404
0
0
0
0
1,383
0.931313
0
0
298
0.200673
dfa1fd750ebe41f9f5e5dbc785b717257dc70d9d
1,908
py
Python
slack_bolt/adapter/socket_mode/base_handler.py
hirosassa/bolt-python
befc3a1463f3ac8dbb780d66decc304e2bdf3e7a
[ "MIT" ]
504
2020-08-07T05:02:57.000Z
2022-03-31T14:32:46.000Z
slack_bolt/adapter/socket_mode/base_handler.py
hirosassa/bolt-python
befc3a1463f3ac8dbb780d66decc304e2bdf3e7a
[ "MIT" ]
560
2020-08-07T01:16:06.000Z
2022-03-30T00:40:56.000Z
slack_bolt/adapter/socket_mode/base_handler.py
hirosassa/bolt-python
befc3a1463f3ac8dbb780d66decc304e2bdf3e7a
[ "MIT" ]
150
2020-08-07T09:41:14.000Z
2022-03-30T04:54:51.000Z
"""The base class of Socket Mode client implementation. If you want to build asyncio-based ones, use `AsyncBaseSocketModeHandler` instead. """ import logging import signal import sys from threading import Event from slack_sdk.socket_mode.client import BaseSocketModeClient from slack_sdk.socket_mode.request import Sock...
32.896552
101
0.678197
1,492
0.781971
0
0
0
0
0
0
892
0.467505
dfa2ba545c720071817fb0691cb4e7c5aad3c2a5
8,344
py
Python
project/pfasst/transfer_tools.py
amit17133129/pyMG-2016
b82a60811bb0a8b91d8793c47177a240221f9176
[ "BSD-2-Clause" ]
2
2016-04-04T15:20:50.000Z
2020-08-01T19:28:55.000Z
project/pfasst/transfer_tools.py
amit17133129/pyMG-2016
b82a60811bb0a8b91d8793c47177a240221f9176
[ "BSD-2-Clause" ]
1
2020-10-02T05:44:45.000Z
2020-10-02T05:44:45.000Z
project/pfasst/transfer_tools.py
amit17133129/pyMG-2016
b82a60811bb0a8b91d8793c47177a240221f9176
[ "BSD-2-Clause" ]
11
2016-03-26T18:37:06.000Z
2020-10-01T19:44:55.000Z
# coding=utf-8 import numpy as np import scipy.interpolate as intpl import scipy.sparse as sprs def to_sparse(D, format="csc"): """ Transform dense matrix to sparse matrix of return_type bsr_matrix(arg1[, shape, dtype, copy, blocksize]) Block Sparse Row matrix coo_matrix(arg1[, shape, dtype, ...
36.920354
111
0.628715
0
0
0
0
0
0
0
0
2,896
0.347076
dfa3a2fa2289a9c892b09c29ede2ebe39a3dd0c8
7,266
py
Python
python/trees/rbtree_graphviz.py
rcanepa/cs-fundamentals
b362fc206417501e53a5739df1edf7568901eef8
[ "MIT" ]
null
null
null
python/trees/rbtree_graphviz.py
rcanepa/cs-fundamentals
b362fc206417501e53a5739df1edf7568901eef8
[ "MIT" ]
null
null
null
python/trees/rbtree_graphviz.py
rcanepa/cs-fundamentals
b362fc206417501e53a5739df1edf7568901eef8
[ "MIT" ]
null
null
null
"""rbtree_graphviz.py - create a graphviz representation of a LLRBT. The purpose of this module is to visually show how the shape of a LLRBT changes when keys are inserted in it. For every insert, sub graph (tree) is added to the main graph. `initialization_list` holds the values that are inserted in the tree. This l...
38.648936
100
0.597991
0
0
0
0
0
0
0
0
2,603
0.358244
dfa4028f5508da847e15896d92223ad5641ce047
87
py
Python
sampledata/exceptions.py
jespino/sampledata
18682f878787f296adc90eb3ab6d236a863954bf
[ "BSD-3-Clause" ]
3
2015-06-19T08:50:50.000Z
2019-05-30T07:40:59.000Z
sampledata/exceptions.py
jespino/sampledata
18682f878787f296adc90eb3ab6d236a863954bf
[ "BSD-3-Clause" ]
4
2015-06-19T09:20:09.000Z
2017-03-10T17:15:21.000Z
sampledata/exceptions.py
jespino/sampledata
18682f878787f296adc90eb3ab6d236a863954bf
[ "BSD-3-Clause" ]
4
2015-06-19T07:25:27.000Z
2022-02-15T10:09:12.000Z
class ParameterError(Exception): pass class NotChoicesFound(Exception): pass
12.428571
33
0.747126
83
0.954023
0
0
0
0
0
0
0
0
dfa5cb1adcaf33702f7f2c3cd145a0c36382a865
97
py
Python
students/K33421/Samoshchenkov_Alexei/lr_2/hw_system/apps.py
Vivasus/ITMO_ICT_WebDevelopment_2020-2021
833d7ac1d40d9f7456a3c6b104a0e53c652d0035
[ "MIT" ]
null
null
null
students/K33421/Samoshchenkov_Alexei/lr_2/hw_system/apps.py
Vivasus/ITMO_ICT_WebDevelopment_2020-2021
833d7ac1d40d9f7456a3c6b104a0e53c652d0035
[ "MIT" ]
null
null
null
students/K33421/Samoshchenkov_Alexei/lr_2/hw_system/apps.py
Vivasus/ITMO_ICT_WebDevelopment_2020-2021
833d7ac1d40d9f7456a3c6b104a0e53c652d0035
[ "MIT" ]
null
null
null
from django.apps import AppConfig class HwSystemConfig(AppConfig): name = 'hw_system'
16.166667
34
0.721649
56
0.57732
0
0
0
0
0
0
11
0.113402
dfa771b70b06ebdb06698f8a6ef450643663f3e9
5,721
py
Python
azure_sftp_plugin/hooks/adls_gen2_hook.py
christo-olivier/airflow_azure_sftp_plugin
1d483be6419744909af2fa940cd50880ed8d5890
[ "Apache-2.0" ]
null
null
null
azure_sftp_plugin/hooks/adls_gen2_hook.py
christo-olivier/airflow_azure_sftp_plugin
1d483be6419744909af2fa940cd50880ed8d5890
[ "Apache-2.0" ]
null
null
null
azure_sftp_plugin/hooks/adls_gen2_hook.py
christo-olivier/airflow_azure_sftp_plugin
1d483be6419744909af2fa940cd50880ed8d5890
[ "Apache-2.0" ]
null
null
null
from pathlib import Path from typing import Generator from airflow.hooks.base_hook import BaseHook from azure.storage.filedatalake import FileSystemClient from azure.storage.filedatalake._generated.models._models_py3 import ( StorageErrorException, ) class ADLSGen2Hook(BaseHook): """ Hook to interact with...
39.729167
86
0.632582
5,463
0.954903
606
0.105926
0
0
0
0
3,004
0.525083
dfa9f05edc79136d5654d284a464ccb459169f40
536
py
Python
phr/ciudadano/migrations/0044_ciudadano_codigo_asegurado.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/ciudadano/migrations/0044_ciudadano_codigo_asegurado.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/ciudadano/migrations/0044_ciudadano_codigo_asegurado.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-07-14 17:10 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ciudadano', '0043_ciudadanorn_numero_dni_ciudadano'), ] operations = [ migra...
26.8
109
0.654851
379
0.705773
0
0
0
0
0
0
172
0.320298
dfad270ef93b37ed6df9bcf779f6cf41ac7ec78e
2,499
py
Python
graphtiny/service.py
Canicio/pyqtgraph-tiny
b88ebe8a2e6ad860ca4857b527adccbbde14851d
[ "MIT" ]
1
2018-03-17T12:36:56.000Z
2018-03-17T12:36:56.000Z
graphtiny/service.py
Canicio/pyqtgraph-tiny
b88ebe8a2e6ad860ca4857b527adccbbde14851d
[ "MIT" ]
1
2017-08-08T18:31:31.000Z
2017-08-08T18:31:31.000Z
graphtiny/service.py
Canicio/graphtiny
b88ebe8a2e6ad860ca4857b527adccbbde14851d
[ "MIT" ]
null
null
null
from time import sleep import pyqtgraph as pg import threading from graphtiny.api import IChart, IDataStreamWindow from graphtiny.domain import DataStreamWindow, Chart class FuncThread(threading.Thread): def __init__(self, t, *a) -> None: self._t = t self._a = a threading.Thread.__init__(...
34.232877
95
0.612645
2,321
0.928772
0
0
0
0
0
0
69
0.027611
dfad2ce40cf4b3e7c6bdab613bdf207aa9161bc1
2,576
py
Python
backend/app/app/api/deps.py
totalhack/zillion-web
e567c04d3564aec8105d54533d318b79d943c9c6
[ "MIT" ]
3
2020-10-01T11:28:02.000Z
2020-10-31T15:35:51.000Z
backend/app/app/api/deps.py
totalhack/zillion-web
e567c04d3564aec8105d54533d318b79d943c9c6
[ "MIT" ]
1
2022-02-09T04:19:20.000Z
2022-02-09T13:56:40.000Z
backend/app/app/api/deps.py
totalhack/zillion-web
e567c04d3564aec8105d54533d318b79d943c9c6
[ "MIT" ]
null
null
null
from typing import Generator, Dict, Any from fastapi import Depends, HTTPException, status from fastapi.security import OAuth2PasswordBearer from jose import jwt from pydantic import ValidationError from sqlalchemy.orm import Session from tlbx import json, pp from zillion.configs import load_warehouse_config, zillion_...
27.115789
77
0.69604
0
0
112
0.043478
109
0.042314
84
0.032609
263
0.102096
dfaff48e9268da391e5354a533c983a642617b56
517
py
Python
matching_operators.py
DeadManPoe/PyMatcher
fa0301033d6a9476920519c867bc5e66db7793b7
[ "MIT" ]
null
null
null
matching_operators.py
DeadManPoe/PyMatcher
fa0301033d6a9476920519c867bc5e66db7793b7
[ "MIT" ]
null
null
null
matching_operators.py
DeadManPoe/PyMatcher
fa0301033d6a9476920519c867bc5e66db7793b7
[ "MIT" ]
null
null
null
def match_plus(string, matching_value): matches = match_star(string, matching_value) return matches != 0, matches def match_star(string, matching_value): found_occurrences = 0 for i, char in enumerate(string): if not match_identity(char, matching_value): return found_occurrences ...
28.722222
52
0.694391
0
0
0
0
0
0
0
0
5
0.009671
dfb0e4025d32f8743112eeea3ef16b5393035552
212
py
Python
BufferStockModel/run.py
bbardoczy/ConsumptionSavingNotebooks
91811f784ec61fe2f11f8c9e0e172d085574f57c
[ "MIT" ]
1
2022-03-09T14:43:29.000Z
2022-03-09T14:43:29.000Z
BufferStockModel/run.py
bbardoczy/ConsumptionSavingNotebooks
91811f784ec61fe2f11f8c9e0e172d085574f57c
[ "MIT" ]
null
null
null
BufferStockModel/run.py
bbardoczy/ConsumptionSavingNotebooks
91811f784ec61fe2f11f8c9e0e172d085574f57c
[ "MIT" ]
null
null
null
from BufferStockModel import BufferStockModelClass updpar = dict() updpar["Np"] = 1500 updpar["Nm"] = 1500 updpar["Na"] = 1500 model = BufferStockModelClass(name="baseline",solmethod="egm",**updpar) model.test()
26.5
71
0.745283
0
0
0
0
0
0
0
0
27
0.127358
dfb2125e655f351b14d7a2e313cfea92c5b3d51d
4,629
py
Python
pcie_bw.py
pcie-bench/pcie-model
5bb1a71684c51f4bbbab2b9673c6bbc3dcf57b11
[ "Apache-2.0" ]
30
2018-12-05T22:02:26.000Z
2022-03-13T17:09:51.000Z
pcie_bw.py
pcie-bench/pcie-model
5bb1a71684c51f4bbbab2b9673c6bbc3dcf57b11
[ "Apache-2.0" ]
null
null
null
pcie_bw.py
pcie-bench/pcie-model
5bb1a71684c51f4bbbab2b9673c6bbc3dcf57b11
[ "Apache-2.0" ]
13
2018-12-28T14:31:48.000Z
2022-02-25T11:24:36.000Z
#! /usr/bin/env python3 # ## Copyright (C) 2015-2018 Rolf Neugebauer. All rights reserved. ## Copyright (C) 2015 Netronome Systems, Inc. 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 co...
38.575
80
0.534241
0
0
0
0
0
0
0
0
1,777
0.383884