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
2cd413ab0694b52c176757f5f81d49bb4eb4ab50
2,142
py
Python
w02-calling-functions/team-discount/teach_stretch.py
carloswm85/2021-cs111-programming-with-functions
73cc376e3f0de60aa0150d33ec95568d217096ec
[ "Unlicense" ]
null
null
null
w02-calling-functions/team-discount/teach_stretch.py
carloswm85/2021-cs111-programming-with-functions
73cc376e3f0de60aa0150d33ec95568d217096ec
[ "Unlicense" ]
null
null
null
w02-calling-functions/team-discount/teach_stretch.py
carloswm85/2021-cs111-programming-with-functions
73cc376e3f0de60aa0150d33ec95568d217096ec
[ "Unlicense" ]
null
null
null
""" You work for a retail store that wants to increase sales on Tuesday and Wednesday, which are the store's slowest sales days. On Tuesday and Wednesday, if a customer's subtotal is greater than $50, the store will discount the customer's purchase by 10%. """ # Import the datatime module so that # it can be used in t...
30.169014
76
0.699813
0
0
0
0
0
0
0
0
1,354
0.63212
2cd504ebd0e349ea8bbd9fdb492b7ad1e64929f7
194
py
Python
online assessment interview/SE Big Data role/mongoTest1.py
NirmalSilwal/Python-
6d23112db8366360f0b79bdbf21252575e8eab3e
[ "MIT" ]
32
2020-04-05T08:29:40.000Z
2022-01-08T03:10:00.000Z
online assessment interview/SE Big Data role/mongoTest1.py
NirmalSilwal/Python-
6d23112db8366360f0b79bdbf21252575e8eab3e
[ "MIT" ]
3
2021-06-02T04:09:11.000Z
2022-03-02T14:55:03.000Z
online assessment interview/SE Big Data role/mongoTest1.py
NirmalSilwal/Python-
6d23112db8366360f0b79bdbf21252575e8eab3e
[ "MIT" ]
3
2020-07-13T05:44:04.000Z
2021-03-03T07:07:58.000Z
import pymongo connection = pymongo.MongoClient("localhost", 27017) database = connection['mydb_01'] collection = database['mycol_01'] data = {'Name' : "Akshay"} collection.insert_one(data)
17.636364
52
0.742268
0
0
0
0
0
0
0
0
44
0.226804
2cd52f5ec1b4d2a4d6e332b743eb08c5891cf5ce
13,410
py
Python
training/loss/styleganV.py
maua-maua-maua/nvGAN
edea24c58646780c9fb8ea942e49708ce9d62421
[ "MIT" ]
null
null
null
training/loss/styleganV.py
maua-maua-maua/nvGAN
edea24c58646780c9fb8ea942e49708ce9d62421
[ "MIT" ]
null
null
null
training/loss/styleganV.py
maua-maua-maua/nvGAN
edea24c58646780c9fb8ea942e49708ce9d62421
[ "MIT" ]
null
null
null
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and rel...
58.304348
220
0.602908
12,574
0.937658
0
0
0
0
0
0
2,803
0.209023
2cd748d2051b8e82062e8e8a4558cedcec3899bb
701
py
Python
spec/__init__.py
deep-spin/spec-blackboxnlp
23db7a559e09ff7f63ede06b04cad226432b90db
[ "MIT" ]
2
2020-11-26T07:46:48.000Z
2021-07-28T08:06:58.000Z
spec/__init__.py
deep-spin/spec-blackboxnlp
23db7a559e09ff7f63ede06b04cad226432b90db
[ "MIT" ]
null
null
null
spec/__init__.py
deep-spin/spec-blackboxnlp
23db7a559e09ff7f63ede06b04cad226432b90db
[ "MIT" ]
null
null
null
""" SpEC ~~~~~~~~~~~~~~~~~~~ Sparsity, Explainability, and Communication :copyright: (c) 2019 by Marcos Treviso :licence: MIT, see LICENSE for more details """ # Generate your own AsciiArt at: # patorjk.com/software/taag/#f=Calvin%20S&t=SpEC __banner__ = """ _____ _____ _____ | __|___| __| | |__ | . | ...
21.90625
59
0.663338
0
0
0
0
0
0
0
0
554
0.7903
2cd7bb87b2723af7e7c3023b2524d9f7f046ca6e
722
py
Python
BurstPaperWallet/initialize.py
MrPilotMan/BurstPaperWallet
5a98a646487d6049f455680fe26ff10185b6d097
[ "Apache-2.0" ]
5
2018-07-21T09:05:35.000Z
2018-09-18T16:36:52.000Z
BurstPaperWallet/initialize.py
MrPilotMan/Burst-Paper-Wallet
5a98a646487d6049f455680fe26ff10185b6d097
[ "MIT" ]
null
null
null
BurstPaperWallet/initialize.py
MrPilotMan/Burst-Paper-Wallet
5a98a646487d6049f455680fe26ff10185b6d097
[ "MIT" ]
null
null
null
from BurstPaperWallet.api import brs_api from BurstPaperWallet.api import passphrase_url_transform as transform def initialize(account, old_passphrase, fee=735000): url = "sendMoney&recipient={}&secretPhrase={}&amountNQT=1&feeNQT={}&recipientPublicKey={}&deadline=1440"\ .format(account["reed solomon"], tr...
27.769231
109
0.710526
0
0
0
0
0
0
0
0
179
0.247922
2cd8482be7ce334c43cdcfd74e894afdafd98102
157
py
Python
planning/data/__init__.py
XinyuHua/pair-emnlp2020
45f8b8ea3752dfb43aa75914afab1b29b2f10c50
[ "MIT" ]
20
2020-10-10T05:38:14.000Z
2022-02-15T01:07:39.000Z
planning/data/__init__.py
XinyuHua/pair-emnlp2020
45f8b8ea3752dfb43aa75914afab1b29b2f10c50
[ "MIT" ]
4
2020-10-20T03:29:41.000Z
2021-04-23T16:10:34.000Z
planning/data/__init__.py
XinyuHua/pair-emnlp2020
45f8b8ea3752dfb43aa75914afab1b29b2f10c50
[ "MIT" ]
2
2021-07-06T01:20:01.000Z
2021-08-19T05:26:24.000Z
from .dictionary import BertDictionary from .text_planning_dataset import TextPlanningDataset __all__ = [ 'BertDictionary', 'TextPlanningDataset', ]
22.428571
54
0.789809
0
0
0
0
0
0
0
0
37
0.235669
2cd953c3506112aa015b7a530b4dc9235de2bd55
3,850
py
Python
vaemodel.py
iakash2604/Music-AI-IIT_Delhi
ef564c39a141c828d58536da621ffcc8cec41f9d
[ "MIT" ]
1
2018-04-12T01:57:47.000Z
2018-04-12T01:57:47.000Z
vaemodel.py
iakash2604/Music-AI-IIT_Delhi
ef564c39a141c828d58536da621ffcc8cec41f9d
[ "MIT" ]
null
null
null
vaemodel.py
iakash2604/Music-AI-IIT_Delhi
ef564c39a141c828d58536da621ffcc8cec41f9d
[ "MIT" ]
null
null
null
import numpy as np import os import keras from keras import regularizers, losses from keras.models import Sequential, Model from keras.layers import Lambda, Input, Dense, Dropout, Reshape, BatchNormalization, Softmax, Concatenate from keras.utils import plot_model import keras.backend as K class multiVAE: def __init_...
39.690722
212
0.72961
3,557
0.923896
0
0
0
0
0
0
396
0.102857
2cda4cc79b80b9a4194f66d4309cdecba7f0a2e3
608
py
Python
PycharmProjects/untitled1/printGraph.py
jiankangliu/baseOfPython
a10e81c79bc6fc3807ca8715fb1be56df527742c
[ "MIT" ]
null
null
null
PycharmProjects/untitled1/printGraph.py
jiankangliu/baseOfPython
a10e81c79bc6fc3807ca8715fb1be56df527742c
[ "MIT" ]
null
null
null
PycharmProjects/untitled1/printGraph.py
jiankangliu/baseOfPython
a10e81c79bc6fc3807ca8715fb1be56df527742c
[ "MIT" ]
null
null
null
# 第一行一个*,第二行两个*........ 共十行 # 打印乘法口诀 n = 1 while n <= 10: n1 = n while n1: print("*", end = "") n1 -= 1 print() n += 1 n2 = 1 n3 = 1 while n2 < 10: while n3 <= n2: print(f"{n3}*{n2}={n3*n2}",end="\t") n3 += 1 print() n2 += 1 n3 = 1 ...
16
45
0.320724
0
0
0
0
0
0
0
0
123
0.189815
2cda9fc4c3b7e52ae6618733b4ca5902d28c7ffa
59
py
Python
src/models/exif_sc/__init__.py
lemonwaffle/nisemono
f2b32dbff63ea6de47460713aac8a768ff59f126
[ "MIT" ]
7
2021-07-08T05:17:19.000Z
2021-12-29T05:45:24.000Z
src/models/exif_sc/__init__.py
yizhe-ang/fake-detection-lab
f2b32dbff63ea6de47460713aac8a768ff59f126
[ "MIT" ]
null
null
null
src/models/exif_sc/__init__.py
yizhe-ang/fake-detection-lab
f2b32dbff63ea6de47460713aac8a768ff59f126
[ "MIT" ]
null
null
null
from .exif_sc import EXIF_SC from .networks import EXIF_Net
29.5
30
0.847458
0
0
0
0
0
0
0
0
0
0
2cdb285432c69bfe1c1fbf5662fc9c8781add56e
766
py
Python
tests/fixtures.py
luisfmcalado/coinoxr
e7cf95d717aa9b58e458332bfd6fd2d4172d175f
[ "MIT" ]
2
2020-09-05T20:48:54.000Z
2022-03-28T11:00:15.000Z
tests/fixtures.py
luisfmcalado/coinoxr
e7cf95d717aa9b58e458332bfd6fd2d4172d175f
[ "MIT" ]
null
null
null
tests/fixtures.py
luisfmcalado/coinoxr
e7cf95d717aa9b58e458332bfd6fd2d4172d175f
[ "MIT" ]
null
null
null
import pytest from tests.stub_client import StubHttpClient from coinoxr.requestor import Requestor from coinoxr.response import Response def content(file): return StubHttpClient.json(file)["content"] @pytest.fixture def client(): client = StubHttpClient() client.add_app_id("fake_app_id") client.add...
21.885714
55
0.73107
0
0
0
0
550
0.718016
0
0
59
0.077023
2cdbad0e2ea4c368579e59aa921da21b9efa73a0
605
py
Python
CPJIntroduction/CPJIntroduction/app.py
zhaishuai/CPJIntroduction
ee0dafc1f9982708a75d7186cce1c1bfac7419e8
[ "MIT" ]
null
null
null
CPJIntroduction/CPJIntroduction/app.py
zhaishuai/CPJIntroduction
ee0dafc1f9982708a75d7186cce1c1bfac7419e8
[ "MIT" ]
null
null
null
CPJIntroduction/CPJIntroduction/app.py
zhaishuai/CPJIntroduction
ee0dafc1f9982708a75d7186cce1c1bfac7419e8
[ "MIT" ]
null
null
null
#!flask/bin/python # coding=utf-8 from flask import Flask, jsonify app = Flask(__name__) tasks = { "event_id" : "1.9", "introductions" : [ { "title" : "情怀", "details" : "各种无敌, 各种牛人, 各种挑战, 等你来战", "image" : "hello.png", "background_image" : "backgroundImage.png" }, { "title...
20.862069
51
0.565289
0
0
0
0
94
0.137628
0
0
376
0.550512
2cdd770cb59585fff2f8363916717357018b2efd
34,050
py
Python
hcpre/duke_siemens/util_dicom_siemens.py
beOn/hcpre
8c56d4f72c06abcb5d2d2b64e7e37fee040f2be4
[ "BSD-3-Clause" ]
10
2016-09-17T09:28:16.000Z
2019-07-31T18:40:12.000Z
hcpre/duke_siemens/util_dicom_siemens.py
beOn/hcpre
8c56d4f72c06abcb5d2d2b64e7e37fee040f2be4
[ "BSD-3-Clause" ]
4
2017-10-30T19:02:40.000Z
2018-01-14T00:28:46.000Z
hcpre/duke_siemens/util_dicom_siemens.py
beOn/hcpre
8c56d4f72c06abcb5d2d2b64e7e37fee040f2be4
[ "BSD-3-Clause" ]
5
2015-03-30T17:41:32.000Z
2020-10-15T13:17:22.000Z
""" Routines for extracting data from Siemens DICOM files. The simplest way to read a file is to call read(filename). If you like you can also call lower level functions like read_data(). Except for the map of internal data types to numpy type strings (which doesn't require an import of numpy), this code is deliberat...
39.048165
87
0.622173
0
0
0
0
0
0
0
0
17,445
0.512335
2cdefd8c563bbdcc05d1cd341d68e9bcaf7e3525
9,764
py
Python
lib/nbrun.py
etalab/run-nb
0e0f5f4d4508d09d95cef615c427eb64e93012bc
[ "MIT" ]
null
null
null
lib/nbrun.py
etalab/run-nb
0e0f5f4d4508d09d95cef615c427eb64e93012bc
[ "MIT" ]
null
null
null
lib/nbrun.py
etalab/run-nb
0e0f5f4d4508d09d95cef615c427eb64e93012bc
[ "MIT" ]
null
null
null
# Copyright (c) 2015-2017 Antonino Ingargiola # License: MIT """ nbrun - Run an Jupyter/IPython notebook, optionally passing arguments. USAGE ----- Copy this file in the folder containing the master notebook used to execute the other notebooks. Then use `run_notebook()` to execute notebooks. """ import time from pat...
43.784753
77
0.645739
0
0
0
0
0
0
0
0
5,649
0.578554
2cdf4d07ac3dc5fe02900f164bcf1938199e4ed3
254
py
Python
Beginner/Day6/utilitiesmodule.py
vishipayyallore/LearningPython_2019
f72d5af61ad96721442b7ebfc33518c2a879eb64
[ "MIT" ]
null
null
null
Beginner/Day6/utilitiesmodule.py
vishipayyallore/LearningPython_2019
f72d5af61ad96721442b7ebfc33518c2a879eb64
[ "MIT" ]
null
null
null
Beginner/Day6/utilitiesmodule.py
vishipayyallore/LearningPython_2019
f72d5af61ad96721442b7ebfc33518c2a879eb64
[ "MIT" ]
null
null
null
def banner(message, length, header='=', footer='*'): print() print(header * length) print((' ' * (length//2 - len(message)//2)), message) print(footer * length) def banner_v2(length, footer='-'): print(footer * length) print()
21.166667
57
0.586614
0
0
0
0
0
0
0
0
12
0.047244
2ce0692dbb9dbc53c64f62fdadf855b89afbf67f
3,277
py
Python
src/nninst/plot/heatmap_alexnet_imagenet_inter_class_similarity_frequency.py
uchuhimo/Ptolemy
5c8ae188af30ee49d38f27d54c67af2eab9489e7
[ "Apache-2.0" ]
15
2020-08-24T07:11:20.000Z
2021-09-13T08:03:42.000Z
src/nninst/plot/heatmap_alexnet_imagenet_inter_class_similarity_frequency.py
uchuhimo/Ptolemy
5c8ae188af30ee49d38f27d54c67af2eab9489e7
[ "Apache-2.0" ]
5
2021-02-28T17:30:26.000Z
2021-06-15T09:33:00.000Z
src/nninst/plot/heatmap_alexnet_imagenet_inter_class_similarity_frequency.py
uchuhimo/Ptolemy
5c8ae188af30ee49d38f27d54c67af2eab9489e7
[ "Apache-2.0" ]
3
2020-10-22T09:11:11.000Z
2021-01-16T14:49:34.000Z
import numpy as np import pandas as pd import seaborn as sns from nninst.backend.tensorflow.model import AlexNet from nninst.backend.tensorflow.trace.alexnet_imagenet_inter_class_similarity import ( alexnet_imagenet_inter_class_similarity_frequency, ) from nninst.op import Conv2dOp, DenseOp np.random.seed(0) sns....
33.10101
85
0.646933
0
0
0
0
0
0
0
0
886
0.270369
2ce1e3299abfe56cee528dffc7ce99df7cb83c6a
3,070
py
Python
spec/repositories/test_person.py
dooma/Events
0c9556cae90ae9cdbacdbd0337c06df91cc72c13
[ "MIT" ]
null
null
null
spec/repositories/test_person.py
dooma/Events
0c9556cae90ae9cdbacdbd0337c06df91cc72c13
[ "MIT" ]
null
null
null
spec/repositories/test_person.py
dooma/Events
0c9556cae90ae9cdbacdbd0337c06df91cc72c13
[ "MIT" ]
null
null
null
__author__ = 'Călin Sălăgean' import unittest from utils.IO import IO from events.repositories.person import PersonRepository from events.models.person import Person class TestPersonRepository(unittest.TestCase): def test_initialization(self): io = IO('test.json') io.set([]) repository = ...
30.098039
77
0.602932
2,902
0.944354
0
0
0
0
0
0
626
0.20371
2ce2a13441ae41fb3cffcc76633e1754ee418995
777
py
Python
AGD_ST/search/util_visual/draw_histogram.py
Erfun76/AGD
c20755f7198b299c3ad080a1a1215b4f42100e5f
[ "MIT" ]
52
2020-08-19T07:06:49.000Z
2022-03-30T07:40:06.000Z
AGD_ST/search/util_visual/draw_histogram.py
Erfun76/AGD
c20755f7198b299c3ad080a1a1215b4f42100e5f
[ "MIT" ]
12
2020-08-17T09:06:12.000Z
2021-11-20T09:48:08.000Z
AGD_ST/search/util_visual/draw_histogram.py
Erfun76/AGD
c20755f7198b299c3ad080a1a1215b4f42100e5f
[ "MIT" ]
9
2020-08-21T05:28:33.000Z
2021-07-13T11:34:26.000Z
import numpy as np from skimage.io import imread, imsave import os import sys import matplotlib.pyplot as plt def draw_hist(fname, save_folder): img = imread(fname) img_flat = np.reshape(np.array(img),[-1]) plt.clf() plt.hist(img_flat) plt.title('Color Distribution Histogram') plt...
23.545455
68
0.644788
0
0
0
0
0
0
0
0
69
0.088803
2ce31456540ab00747dedfd50b8822dd96f15a36
5,176
py
Python
instrument_plugins/EGandG_Model5209.py
sourav-majumder/qtlab
96b2a127b1df7b45622c90229bd5ef8a4083614e
[ "MIT" ]
null
null
null
instrument_plugins/EGandG_Model5209.py
sourav-majumder/qtlab
96b2a127b1df7b45622c90229bd5ef8a4083614e
[ "MIT" ]
null
null
null
instrument_plugins/EGandG_Model5209.py
sourav-majumder/qtlab
96b2a127b1df7b45622c90229bd5ef8a4083614e
[ "MIT" ]
null
null
null
# EGandG_Model5209.py class, to perform the communication between the Wrapper and the device # Martijn Schaafsma <qtlab@mcschaafsma.nl>, 2010 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; ei...
30.269006
153
0.651468
4,211
0.813563
0
0
0
0
0
0
1,661
0.320904
2ce52789e9c62be6a5f2d0514309edbb8a1eff3e
6,747
py
Python
scripts/addons/keentools_facebuilder/utils/materials.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
2
2020-04-16T22:12:40.000Z
2022-01-22T17:18:45.000Z
scripts/addons/keentools_facebuilder/utils/materials.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
null
null
null
scripts/addons/keentools_facebuilder/utils/materials.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
2
2019-05-16T04:01:09.000Z
2020-08-25T11:42:26.000Z
# ##### BEGIN GPL LICENSE BLOCK ##### # KeenTools for blender is a blender addon for using KeenTools in Blender. # Copyright (C) 2019 KeenTools # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, ...
32.4375
95
0.67719
202
0.029939
0
0
0
0
0
0
1,081
0.160219
2ce777497859d2197b79ee44dcd351d14e88fcd2
172
py
Python
scripts/item/consume_2434951.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
null
null
null
scripts/item/consume_2434951.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
null
null
null
scripts/item/consume_2434951.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
null
null
null
# Soft-serve Damage Skin success = sm.addDamageSkin(2434951) if success: sm.chat("The Soft-serve Damage Skin has been added to your account's damage skin collection.")
34.4
98
0.761628
0
0
0
0
0
0
0
0
109
0.633721
2ce817a6e849abb570f9ff5f54594335a171ed3d
2,918
py
Python
ext/testlib/suite.py
mandaltj/gem5_chips
b9c0c602241ffda7851c1afb32fa01f295bb98fd
[ "BSD-3-Clause" ]
135
2016-10-21T03:31:49.000Z
2022-03-25T01:22:20.000Z
ext/testlib/suite.py
mandaltj/gem5_chips
b9c0c602241ffda7851c1afb32fa01f295bb98fd
[ "BSD-3-Clause" ]
35
2017-03-10T17:57:46.000Z
2022-02-18T17:34:16.000Z
ext/testlib/suite.py
mandaltj/gem5_chips
b9c0c602241ffda7851c1afb32fa01f295bb98fd
[ "BSD-3-Clause" ]
48
2016-12-08T12:03:13.000Z
2022-02-16T09:16:13.000Z
# Copyright (c) 2017 Mark D. Hill and David A. Wood # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source code must retain the above copyright # notice, this list of conditio...
42.289855
77
0.718986
1,312
0.449623
0
0
0
0
0
0
2,113
0.724126
2ce9ea1882a265e53124e26b179ea50756f2193c
9,163
py
Python
src/downloaders/video.py
s0hvaperuna/playlist-checker
ce9ee4e603070c9bd892a9bec64e792d647618d2
[ "MIT" ]
null
null
null
src/downloaders/video.py
s0hvaperuna/playlist-checker
ce9ee4e603070c9bd892a9bec64e792d647618d2
[ "MIT" ]
null
null
null
src/downloaders/video.py
s0hvaperuna/playlist-checker
ce9ee4e603070c9bd892a9bec64e792d647618d2
[ "MIT" ]
null
null
null
import io import logging import os import re import subprocess import time from dataclasses import dataclass from random import uniform import yt_dlp from yt_dlp.utils import replace_extension, Popen, PostProcessingError from src.config import MinMax from src.config import get_yt_dlp_options from src.db import models...
33.199275
133
0.615301
4,708
0.513581
0
0
939
0.102433
0
0
2,434
0.265518
2cebf204a510dbac577ed44449d7a53a945fbd9d
7,984
py
Python
nol/KNNFeatures.py
tlarock/nol
39c9ec8bc8e05a91c623511302978d2de479c0ff
[ "MIT" ]
null
null
null
nol/KNNFeatures.py
tlarock/nol
39c9ec8bc8e05a91c623511302978d2de479c0ff
[ "MIT" ]
null
null
null
nol/KNNFeatures.py
tlarock/nol
39c9ec8bc8e05a91c623511302978d2de479c0ff
[ "MIT" ]
1
2019-09-19T18:17:01.000Z
2019-09-19T18:17:01.000Z
import numpy as np def set_egonets(self, nodes = None): """ Updates the self.egonets data structure, which is a dictionary indexed by node pointing to the induced subgraph on the node and its neighbors. Also updates the egonet_edgecounts for each node, used in a calculation later. """ if nod...
43.628415
204
0.675726
0
0
0
0
0
0
0
0
2,571
0.322019
2cecc4379034e1c8d91bd34f47fbd53d6988aac0
857
py
Python
crossvalidation_pipeline.py
ktian08/6784-drugs
7c3ae9f65ce60b031008b0026bb9b954575315fa
[ "MIT" ]
1
2020-06-13T00:40:21.000Z
2020-06-13T00:40:21.000Z
crossvalidation_pipeline.py
ktian08/6784-drugs
7c3ae9f65ce60b031008b0026bb9b954575315fa
[ "MIT" ]
null
null
null
crossvalidation_pipeline.py
ktian08/6784-drugs
7c3ae9f65ce60b031008b0026bb9b954575315fa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Andrew D. Rouillard Computational Biologist Target Sciences GSK andrew.d.rouillard@gsk.com """ import sys import get_generalizable_features import get_merged_features import get_useful_features def main(validation_rep=0, validation_fold=0): print('VALIDATION_REP: {0!s}, VALIDATION...
28.566667
109
0.753792
0
0
0
0
0
0
0
0
268
0.312719
2ceda82e2a43820df794cf8b286e7af486b5effb
4,818
py
Python
locations/spiders/kona_grill.py
mfjackson/alltheplaces
37c90b4041c80a574e6e4c2f886883e97df4b636
[ "MIT" ]
null
null
null
locations/spiders/kona_grill.py
mfjackson/alltheplaces
37c90b4041c80a574e6e4c2f886883e97df4b636
[ "MIT" ]
null
null
null
locations/spiders/kona_grill.py
mfjackson/alltheplaces
37c90b4041c80a574e6e4c2f886883e97df4b636
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import json import scrapy from locations.items import GeojsonPointItem from locations.hours import OpeningHours STATES = [ "AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DC", "DE", "FL", "GA", "HI", "ID", "IL", "IN", "IA", "KS", ...
26.472527
93
0.494396
4,099
0.850768
2,202
0.457036
0
0
0
0
1,538
0.31922
2cee532fa1ad8c3bab0846e524ce8d97c1e63a13
93
py
Python
test/login.py
hongren798911/haha
8b198b6e4ae3d992f2d1d7217b7532da3d557112
[ "MIT" ]
null
null
null
test/login.py
hongren798911/haha
8b198b6e4ae3d992f2d1d7217b7532da3d557112
[ "MIT" ]
null
null
null
test/login.py
hongren798911/haha
8b198b6e4ae3d992f2d1d7217b7532da3d557112
[ "MIT" ]
null
null
null
num1 = 100 num2 = 200 num3 = 300 num4 = 400 num5 = 500 mum6 = 600 num7 = 700 num8 = 800
6.642857
10
0.602151
0
0
0
0
0
0
0
0
0
0
2cee64c765350c049d3f0289910d5b8f629efbd1
16,464
py
Python
darling_ansible/python_venv/lib/python3.7/site-packages/oci/waas/models/health_check.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
null
null
null
darling_ansible/python_venv/lib/python3.7/site-packages/oci/waas/models/health_check.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
null
null
null
darling_ansible/python_venv/lib/python3.7/site-packages/oci/waas/models/health_check.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
1
2020-06-25T03:12:58.000Z
2020-06-25T03:12:58.000Z
# coding: utf-8 # Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
37.589041
479
0.672133
15,924
0.967201
0
0
15,954
0.969023
0
0
11,837
0.718963
2cee8c3838a909612dd4cc9396674d4f705e3fa3
409
py
Python
misc/appveyor_filter.py
ppwwyyxx/taichi
ef0c3367bb06ad78b3457b8f93b5370f14b1d9c4
[ "MIT" ]
2
2020-10-22T14:57:47.000Z
2020-10-24T07:30:47.000Z
misc/appveyor_filter.py
zf38473013/taichi
ad4d7ae04f4e559e84f6dee4a64ad57c3cf0c7fb
[ "MIT" ]
3
2020-08-24T09:07:15.000Z
2020-08-24T09:18:29.000Z
misc/appveyor_filter.py
zf38473013/taichi
ad4d7ae04f4e559e84f6dee4a64ad57c3cf0c7fb
[ "MIT" ]
1
2020-09-29T17:56:48.000Z
2020-09-29T17:56:48.000Z
import sys import os msg = os.environ["APPVEYOR_REPO_COMMIT_MESSAGE"] if msg.startswith('[release]') or sys.version_info[1] == 6: exit( 0 ) # Build for this configuration (starts with '[release]', or python version is 3.6) else: print( f'[appveyor_filer] Not build for [{msg}] with Python {...
29.214286
89
0.657702
0
0
0
0
0
0
0
0
245
0.599022
2cf1316f9ee5f955fd15c0e34a1d960d2f6a156f
303
py
Python
mysite/SocialApp/migrations/0003_delete_remotefollow.py
asmao7/Cmput404W2021
82c1f42492c93048d5f144e2bbb416764d78013b
[ "MIT" ]
3
2021-01-20T18:23:14.000Z
2021-02-22T19:38:46.000Z
mysite/SocialApp/migrations/0003_delete_remotefollow.py
asmao7/Cmput404W2021
82c1f42492c93048d5f144e2bbb416764d78013b
[ "MIT" ]
24
2021-02-18T19:28:46.000Z
2021-04-14T17:12:21.000Z
mysite/SocialApp/migrations/0003_delete_remotefollow.py
asmao7/Cmput404W2021
82c1f42492c93048d5f144e2bbb416764d78013b
[ "MIT" ]
1
2021-05-13T04:43:00.000Z
2021-05-13T04:43:00.000Z
# Generated by Django 3.1.6 on 2021-04-12 08:45 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('SocialApp', '0002_auto_20210411_2237'), ] operations = [ migrations.DeleteModel( name='RemoteFollow', ), ]
17.823529
49
0.613861
218
0.719472
0
0
0
0
0
0
97
0.320132
2cf319393483234ff687e05e713a56ff2a047833
6,688
py
Python
api/tests/opentrons/protocol_runner/test_thread_async_queue.py
anuwrag/opentrons
28c8d76a19e367c6bd38f5290faaa32abf378715
[ "Apache-2.0" ]
2
2015-11-10T17:49:51.000Z
2016-01-15T04:43:37.000Z
api/tests/opentrons/protocol_runner/test_thread_async_queue.py
anuwrag/opentrons
28c8d76a19e367c6bd38f5290faaa32abf378715
[ "Apache-2.0" ]
null
null
null
api/tests/opentrons/protocol_runner/test_thread_async_queue.py
anuwrag/opentrons
28c8d76a19e367c6bd38f5290faaa32abf378715
[ "Apache-2.0" ]
null
null
null
"""Tests for thread_async_queue.""" from __future__ import annotations import asyncio from concurrent.futures import ThreadPoolExecutor from itertools import chain from typing import List, NamedTuple import pytest from opentrons.protocol_runner.thread_async_queue import ( ThreadAsyncQueue, QueueClosed, ) ...
33.273632
88
0.683014
69
0.010317
0
0
0
0
1,612
0.241029
2,530
0.378289
2cf440be4e7f718674833ee056299fd05b2abad8
3,062
py
Python
courses/data_analysis/deepdive/composer-exercises/subdag_example_solution.py
pranaynanda/training-data-analyst
f10ab778589129239fd5b277cfdefb41638eded5
[ "Apache-2.0" ]
null
null
null
courses/data_analysis/deepdive/composer-exercises/subdag_example_solution.py
pranaynanda/training-data-analyst
f10ab778589129239fd5b277cfdefb41638eded5
[ "Apache-2.0" ]
null
null
null
courses/data_analysis/deepdive/composer-exercises/subdag_example_solution.py
pranaynanda/training-data-analyst
f10ab778589129239fd5b277cfdefb41638eded5
[ "Apache-2.0" ]
null
null
null
"""Solution for subdag_example.py. Uses a factory function to return a DAG that can be used as the subdag argument to SubDagOperator. Notice that: 1) the SubDAG's dag_id is formatted as parent_dag_id.subdag_task_id 2) the start_date and schedule_interval of the SubDAG are copied from the parent DAG. """ from airflo...
43.126761
113
0.625408
0
0
0
0
0
0
0
0
938
0.306336
2cf4f7aa04d5ae102d82d9c9bd6e398a5f525f06
5,230
py
Python
src/export_blueprints.py
nutanixdev/export_blueprints
5100dc3342c4b7d01b7fd4276fd69fc2ff150c5a
[ "MIT" ]
null
null
null
src/export_blueprints.py
nutanixdev/export_blueprints
5100dc3342c4b7d01b7fd4276fd69fc2ff150c5a
[ "MIT" ]
null
null
null
src/export_blueprints.py
nutanixdev/export_blueprints
5100dc3342c4b7d01b7fd4276fd69fc2ff150c5a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.8 """ export_blueprints.py Connect to a Nutanix Prism Central instance, grab all Calm blueprints and export them to JSON files. You would need to *heavily* modify this script for use in a production environment so that it contains appropriate error-checking and exception handling....
30.231214
157
0.573231
0
0
0
0
0
0
0
0
2,439
0.466348
2cf50032fd22989de13d200d7094ccf88a77e1bb
3,945
py
Python
public_ssl_drown_scanner/pyx509/pkcs7/asn1_models/X509_certificate.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
11
2020-05-30T13:53:49.000Z
2021-03-17T03:20:59.000Z
public_ssl_drown_scanner/pyx509/pkcs7/asn1_models/X509_certificate.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
6
2020-05-13T03:25:18.000Z
2020-07-21T06:24:16.000Z
public_ssl_drown_scanner/pyx509/pkcs7/asn1_models/X509_certificate.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
6
2020-05-30T13:53:51.000Z
2020-12-01T21:44:26.000Z
#* pyx509 - Python library for parsing X.509 #* Copyright (C) 2009-2010 CZ.NIC, z.s.p.o. (http://www.nic.cz) #* #* This library is free software; you can redistribute it and/or #* modify it under the terms of the GNU Library General Public #* License as published by the Free Software Foundation; either...
37.932692
159
0.710773
2,756
0.698606
0
0
0
0
0
0
1,313
0.332826
2cf62110e3ab8800a99fcb288cf2cfd2fa6ffec9
141
py
Python
Codewars/you're a square/you're a square.py
adoreblvnk/code_solutions
03e4261241dd33a4232dabe0e9450d344f7ccc6d
[ "MIT" ]
null
null
null
Codewars/you're a square/you're a square.py
adoreblvnk/code_solutions
03e4261241dd33a4232dabe0e9450d344f7ccc6d
[ "MIT" ]
null
null
null
Codewars/you're a square/you're a square.py
adoreblvnk/code_solutions
03e4261241dd33a4232dabe0e9450d344f7ccc6d
[ "MIT" ]
null
null
null
from math import isqrt is_square = lambda n: isqrt(n) ** 2 == n if n >= 0 else False def is_square_soln(n): pass print(is_square(-1))
15.666667
61
0.659574
0
0
0
0
0
0
0
0
0
0
2cf720719acd6ee5090e6cba4b8337c7302d552b
1,575
py
Python
change_name.py
agk2000/catalyst_project
6bae324f24d6d6382e84dcf1f2fedf0d896371e1
[ "MIT" ]
2
2022-01-12T16:34:25.000Z
2022-03-30T09:48:33.000Z
solar_PV_utils/change_name.py
BensonRen/Drone_based_solar_PV_detection
4b45307328d94fb7b1eafa318059ddcb86fda21f
[ "MIT" ]
null
null
null
solar_PV_utils/change_name.py
BensonRen/Drone_based_solar_PV_detection
4b45307328d94fb7b1eafa318059ddcb86fda21f
[ "MIT" ]
1
2021-09-11T14:55:26.000Z
2021-09-11T14:55:26.000Z
# The function to change the name of a list of folders # 2021.06.07 Ben wants to change a list of folder names that is too long for plotting import numpy as np import os import shutil name_change_dir_list = ['/scratch/sr365/Catalyst_data/every_10m/{}0m/images/save_root'.format(i) for i in range(5, 13)] def change_f...
41.447368
119
0.67619
0
0
0
0
0
0
0
0
585
0.371429
2cf7266e9b31c455b918042035a8554f33eeaf4b
143
py
Python
test/unit/__init__.py
comtravo/grafana-dashboards
cd0e6f46408aebd2941ae4abc5b94e45124006a2
[ "MIT" ]
8
2020-12-09T13:14:53.000Z
2022-01-29T01:56:30.000Z
test/unit/__init__.py
comtravo/grafana-dashboards
cd0e6f46408aebd2941ae4abc5b94e45124006a2
[ "MIT" ]
4
2021-02-24T08:49:14.000Z
2022-01-22T18:17:32.000Z
test/unit/__init__.py
comtravo/grafana-dashboards
cd0e6f46408aebd2941ae4abc5b94e45124006a2
[ "MIT" ]
null
null
null
""" tests module """ import os import sys import sure ROOT_DIR = os.path.join(os.path.dirname(__file__), "../..") sys.path.append(ROOT_DIR)
11.916667
59
0.685315
0
0
0
0
0
0
0
0
27
0.188811
2cf7ede7519b76677c68ab0cf790c978c3c5cc8f
203
py
Python
genda/formats/__init__.py
jeffhsu3/genda
5adbb5b5620c592849fa4a61126b934e1857cd77
[ "BSD-3-Clause" ]
5
2016-01-12T15:12:18.000Z
2022-02-10T21:57:39.000Z
genda/formats/__init__.py
jeffhsu3/genda
5adbb5b5620c592849fa4a61126b934e1857cd77
[ "BSD-3-Clause" ]
5
2015-01-20T04:22:50.000Z
2018-10-02T19:39:12.000Z
genda/formats/__init__.py
jeffhsu3/genda
5adbb5b5620c592849fa4a61126b934e1857cd77
[ "BSD-3-Clause" ]
1
2022-03-04T06:49:39.000Z
2022-03-04T06:49:39.000Z
""" Formats submodule contains classes and functions to parse various formats into pandas dataframes as well as lookup utilities to various formats """ from .gene_utils import * from .panVCF import VCF
25.375
52
0.79803
0
0
0
0
0
0
0
0
151
0.743842
2cf8d4d1bb868ca0298242ce158fc4c9f8b561f1
6,046
py
Python
src/api/bkuser_core/categories/plugins/plugin.py
Chace-wang/bk-user
057f270d66a1834312306c9fba1f4e95521f10b1
[ "MIT" ]
null
null
null
src/api/bkuser_core/categories/plugins/plugin.py
Chace-wang/bk-user
057f270d66a1834312306c9fba1f4e95521f10b1
[ "MIT" ]
null
null
null
src/api/bkuser_core/categories/plugins/plugin.py
Chace-wang/bk-user
057f270d66a1834312306c9fba1f4e95521f10b1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-用户管理(Bk-User) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the Lic...
41.986111
116
0.662256
5,033
0.773356
0
0
4,688
0.720344
0
0
1,995
0.306546
2cf913172f053454c3779f2bdd6081d51582533f
175
py
Python
blog/templatetags/markdownify.py
darkLord19/blog
16c3b72fef9d22ccfa606934c8b94fc0feb82103
[ "MIT" ]
12
2018-01-30T00:44:06.000Z
2020-07-13T05:20:48.000Z
blog/templatetags/markdownify.py
darkLord19/blog
16c3b72fef9d22ccfa606934c8b94fc0feb82103
[ "MIT" ]
36
2018-03-06T17:49:50.000Z
2020-06-23T19:26:00.000Z
web/templatetags/markdown.py
odinje/yactff
d55ece2905ca49114f7ec15bbcd354cacb49b973
[ "MIT" ]
3
2018-08-03T07:03:09.000Z
2020-07-09T20:21:10.000Z
from django import template import mistune register = template.Library() @register.filter def markdown(value): markdown = mistune.Markdown() return markdown(value)
15.909091
33
0.754286
0
0
0
0
98
0.56
0
0
0
0
2cf97b1d907f72ad5a0f43ac1cc591d832dc9a6f
2,758
py
Python
hummingbot/connector/exchange/k2/k2_in_flight_order.py
d3alek/hummingbot
14d6c3b8c4d34c44079c45ef6cd05e9c192f241c
[ "Apache-2.0" ]
null
null
null
hummingbot/connector/exchange/k2/k2_in_flight_order.py
d3alek/hummingbot
14d6c3b8c4d34c44079c45ef6cd05e9c192f241c
[ "Apache-2.0" ]
null
null
null
hummingbot/connector/exchange/k2/k2_in_flight_order.py
d3alek/hummingbot
14d6c3b8c4d34c44079c45ef6cd05e9c192f241c
[ "Apache-2.0" ]
null
null
null
import asyncio from decimal import Decimal from typing import ( Any, Dict, Optional, ) from hummingbot.connector.exchange.k2.k2_utils import convert_from_exchange_trading_pair from hummingbot.connector.in_flight_order_base import InFlightOrderBase from hummingbot.core.event.events import ( OrderType, ...
31.701149
95
0.617476
2,419
0.877085
0
0
294
0.106599
0
0
310
0.1124
2cf9a7344995d303c32d96dce9e5be80b38ca7df
3,164
py
Python
finite/storage/factom/__init__.py
FactomProject/finite
6a55d815073d1015e21c3abe55eb1ca7ea75defa
[ "MIT" ]
null
null
null
finite/storage/factom/__init__.py
FactomProject/finite
6a55d815073d1015e21c3abe55eb1ca7ea75defa
[ "MIT" ]
null
null
null
finite/storage/factom/__init__.py
FactomProject/finite
6a55d815073d1015e21c3abe55eb1ca7ea75defa
[ "MIT" ]
null
null
null
import json from finite.storage import new_uuid class Unimplemented(Exception): pass class RoleFail(Exception): pass SUPERUSER = '*' """ role used to bypass all permission checks """ ROOT_UUID = '00000000-0000-0000-0000-000000000000' """ parent UUID used to initialize a stream """ DEFAULT_SCHEMA = 'base...
25.934426
109
0.520544
2,870
0.90708
0
0
231
0.073009
0
0
1,177
0.371997
2cfaa098a5bde08da247bf4b6a018a03f20be4ee
704
py
Python
bin/notify.py
nfischer/dotfiles
40daa50f9375a987cf5c76606e34db08c1ed8a98
[ "MIT" ]
4
2016-08-30T03:56:31.000Z
2017-08-16T02:46:49.000Z
bin/notify.py
nfischer/dotfiles
40daa50f9375a987cf5c76606e34db08c1ed8a98
[ "MIT" ]
7
2017-09-16T06:32:57.000Z
2018-07-04T01:15:28.000Z
bin/notify.py
nfischer/dotfiles
40daa50f9375a987cf5c76606e34db08c1ed8a98
[ "MIT" ]
null
null
null
#!/usr/bin/python import dbus import sys DEFAULT_TIMEOUT = 4000 def notify(summary, body='', app_name='', app_icon='', timeout=DEFAULT_TIMEOUT, actions=[], hints=[], replaces_id=0): _bus_name = 'org.freedesktop.Notifications' _object_path = '/org/freedesktop/Notifications' _interface_name = _bus_n...
32
70
0.705966
0
0
0
0
0
0
0
0
153
0.21733
2cfaf45dde9f79b4daea8e34b742698f034e176d
685
py
Python
code/exampleStrats/gradualtft.py
protonlaser91/PrisonersDilemmaTournament
5a24aca5149b4768778de820eaaf6b096c4aff6d
[ "MIT" ]
null
null
null
code/exampleStrats/gradualtft.py
protonlaser91/PrisonersDilemmaTournament
5a24aca5149b4768778de820eaaf6b096c4aff6d
[ "MIT" ]
null
null
null
code/exampleStrats/gradualtft.py
protonlaser91/PrisonersDilemmaTournament
5a24aca5149b4768778de820eaaf6b096c4aff6d
[ "MIT" ]
null
null
null
import numpy as np from random import random def strategy(history, memory): currentCount,defector,hasDefected = (0,0,False) if memory is None else memory choice = 1 if currentCount > 0: choice = 0 currentCount -= 1 return choice, (currentCount,defector,hasDefected) elif curren...
27.4
81
0.643796
0
0
0
0
0
0
0
0
0
0
2cfb8abfe4a94bc0ccc1207406144720bd05773e
5,558
py
Python
indico/modules/oauth/provider_test.py
uxmaster/indico
ecd19f17ef6fdc9f5584f59c87ec647319ce5d31
[ "MIT" ]
1
2019-11-03T11:34:16.000Z
2019-11-03T11:34:16.000Z
indico/modules/oauth/provider_test.py
NP-compete/indico
80db7ca0ef9d1f3240a16b9ff2d84bf0bf26c549
[ "MIT" ]
null
null
null
indico/modules/oauth/provider_test.py
NP-compete/indico
80db7ca0ef9d1f3240a16b9ff2d84bf0bf26c549
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2019 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from datetime import datetime, timedelta from uuid import uuid4 import pytest from flask import session f...
34.955975
112
0.725621
0
0
0
0
4,053
0.729219
0
0
753
0.13548
2cfcfb9e9b672e889b4728cb7b9faa88f7e34168
72
py
Python
2019/Python/Day_6/__init__.py
airstandley/AdventofCode
86b7e289d67ba3ea31a78f4a4005253098f47254
[ "MIT" ]
null
null
null
2019/Python/Day_6/__init__.py
airstandley/AdventofCode
86b7e289d67ba3ea31a78f4a4005253098f47254
[ "MIT" ]
null
null
null
2019/Python/Day_6/__init__.py
airstandley/AdventofCode
86b7e289d67ba3ea31a78f4a4005253098f47254
[ "MIT" ]
null
null
null
""" Day 6: Universal Orbit Map (https://adventofcode.com/2019/day/6) """
24
64
0.680556
0
0
0
0
0
0
0
0
72
1
2cfe6a6691ee44f3aa077c5ff3abfea13c8da13d
1,031
py
Python
tests/service/test_log_cloudwatch.py
wenhaizhu/FBPCS
cf103135acf44e879dab7c9819a5a8f0e22ef702
[ "MIT" ]
null
null
null
tests/service/test_log_cloudwatch.py
wenhaizhu/FBPCS
cf103135acf44e879dab7c9819a5a8f0e22ef702
[ "MIT" ]
null
null
null
tests/service/test_log_cloudwatch.py
wenhaizhu/FBPCS
cf103135acf44e879dab7c9819a5a8f0e22ef702
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import unittest from unittest.mock import MagicMock, patch from fbpcs.service.log_cloudwatch import CloudWatchLogServi...
38.185185
81
0.758487
626
0.607177
0
0
571
0.553831
0
0
329
0.319108
2cffde54fce64df2346d3c12e08ed04887efeb6d
129
py
Python
build/ARM/arch/arm/ArmSemihosting.py
zhoushuxin/impl_of_HPCA2018
594d807fb0c0712bb7766122c4efe3321d012687
[ "BSD-3-Clause" ]
5
2019-12-12T16:26:09.000Z
2022-03-17T03:23:33.000Z
build/ARM/arch/arm/ArmSemihosting.py
zhoushuxin/impl_of_HPCA2018
594d807fb0c0712bb7766122c4efe3321d012687
[ "BSD-3-Clause" ]
null
null
null
build/ARM/arch/arm/ArmSemihosting.py
zhoushuxin/impl_of_HPCA2018
594d807fb0c0712bb7766122c4efe3321d012687
[ "BSD-3-Clause" ]
null
null
null
version https://git-lfs.github.com/spec/v1 oid sha256:60c08155c02f8c1321979a81a67a2ef5a0bc292b2d26a9e5be7e6e1cb484e248 size 2756
32.25
75
0.883721
0
0
0
0
0
0
0
0
0
0
fa01295cd72e1cc24e99fe0b555865e4e352a352
844
py
Python
cqi_cpp/src/wrapper/discrete.py
AMR-/Conservative-Q-Improvement
f9d47b33fe757475d3216d3c406d147206738c90
[ "MIT" ]
null
null
null
cqi_cpp/src/wrapper/discrete.py
AMR-/Conservative-Q-Improvement
f9d47b33fe757475d3216d3c406d147206738c90
[ "MIT" ]
null
null
null
cqi_cpp/src/wrapper/discrete.py
AMR-/Conservative-Q-Improvement
f9d47b33fe757475d3216d3c406d147206738c90
[ "MIT" ]
null
null
null
import numpy as np from .space import Space class Discrete(Space): r"""A discrete space in :math:`\{ 0, 1, \\dots, n-1 \}`. Example:: >>> Discrete(2) """ def __init__(self, n): assert n >= 0 self.n = n super(Discrete, self).__init__((), np.int64) def sample(self)...
24.823529
120
0.555687
798
0.945498
0
0
0
0
0
0
131
0.155213
fa01b60aac42da66a6f0eab342c49c8c76904fbf
87
py
Python
lab02/eurocv/apps.py
vascoalramos/tpw
e0d1ab14f1e701dd2b2a77522c57cb22fda85e56
[ "MIT" ]
null
null
null
lab02/eurocv/apps.py
vascoalramos/tpw
e0d1ab14f1e701dd2b2a77522c57cb22fda85e56
[ "MIT" ]
null
null
null
lab02/eurocv/apps.py
vascoalramos/tpw
e0d1ab14f1e701dd2b2a77522c57cb22fda85e56
[ "MIT" ]
null
null
null
from django.apps import AppConfig class EurocvConfig(AppConfig): name = 'eurocv'
14.5
33
0.747126
50
0.574713
0
0
0
0
0
0
8
0.091954
fa025170f51f5c6eb69696b0c97480d3cf254f86
1,914
py
Python
2020/13/solution2.py
mitchellrj/adventofcode
e7a55d59a51292218b8849a7428fa32bd0371727
[ "WTFPL" ]
null
null
null
2020/13/solution2.py
mitchellrj/adventofcode
e7a55d59a51292218b8849a7428fa32bd0371727
[ "WTFPL" ]
null
null
null
2020/13/solution2.py
mitchellrj/adventofcode
e7a55d59a51292218b8849a7428fa32bd0371727
[ "WTFPL" ]
null
null
null
import functools import math import operator import sys import time def get_factors(n): i = 2 factors = set() while i * i <= n: if n % i: i += 1 else: n //= i factors.add(i) if n > 1: factors.add(n) return factors def main(departure_int...
27.342857
120
0.570533
0
0
0
0
0
0
0
0
235
0.12278
fa035cd8d58bb677605584ef22cf203bfd4ff3ef
17,693
py
Python
pyrosetta/models/_overrides.py
blockjoe/rosetta-api-client-python
707f325f7560ffa6d5dfe361aff4779cc0b7182f
[ "Apache-2.0" ]
null
null
null
pyrosetta/models/_overrides.py
blockjoe/rosetta-api-client-python
707f325f7560ffa6d5dfe361aff4779cc0b7182f
[ "Apache-2.0" ]
null
null
null
pyrosetta/models/_overrides.py
blockjoe/rosetta-api-client-python
707f325f7560ffa6d5dfe361aff4779cc0b7182f
[ "Apache-2.0" ]
null
null
null
from textwrap import indent from ._models import * def str_SubNetworkIdentifier(self : SubNetworkIdentifier) -> str: sn = "Subnetwork: {}".format(self.network) if self.metadata: md_h = "Additional Metadata:" md = "\n".join(["- {}: {}".format(key, val) for key, val in self.metadata.items()]) ...
39.317778
107
0.651048
0
0
0
0
0
0
0
0
2,856
0.16142
fa0387e8bd74f0b0f503dfeea41eb47cd54c1fe4
1,331
py
Python
src/lockstep/models/arheaderinfomodel.py
sfwatanabe/lockstep-sdk-python
b388c818663a4b090debb68c65c18728a082fec0
[ "MIT" ]
1
2022-03-17T00:23:24.000Z
2022-03-17T00:23:24.000Z
src/lockstep/models/arheaderinfomodel.py
sfwatanabe/lockstep-sdk-python
b388c818663a4b090debb68c65c18728a082fec0
[ "MIT" ]
null
null
null
src/lockstep/models/arheaderinfomodel.py
sfwatanabe/lockstep-sdk-python
b388c818663a4b090debb68c65c18728a082fec0
[ "MIT" ]
null
null
null
# # Lockstep Software Development Kit for Python # # (c) 2021-2022 Lockstep, Inc. # # For the full copyright and license information, please view the LICENSE # file that was distributed with this source code. # # @author Ted Spence <tspence@lockstep.io> # @copyright 2021-2022 Lockstep, Inc. # @version 2022.4 # ...
28.934783
73
0.731029
891
0.669421
0
0
902
0.677686
0
0
436
0.327573
fa048e87ea337e5c20190eb2cfaa54ef301156c6
3,477
py
Python
aae/server.py
ez-corp/easy
c0cd3eb8787eb445cbf2ea2fab4f5320aa229012
[ "MIT" ]
null
null
null
aae/server.py
ez-corp/easy
c0cd3eb8787eb445cbf2ea2fab4f5320aa229012
[ "MIT" ]
null
null
null
aae/server.py
ez-corp/easy
c0cd3eb8787eb445cbf2ea2fab4f5320aa229012
[ "MIT" ]
null
null
null
# coding=utf-8 import time from flask import Flask from flask import jsonify from flask import request from werkzeug.exceptions import BadRequest from containers import grade_submission, RunStatus # TODO: move to conf file TIME_EXCEEDED_MESSAGE = "Programmi kontrollimine ületas lubatud käivitusaega." MEM_EXCEEDED_M...
31.609091
117
0.67702
0
0
0
0
1,366
0.392416
0
0
996
0.286125
fa04a1e6f72faada0d2891b854d62e5f2153ccd5
1,046
py
Python
code03[efficient].py
inaxia/face_recognition_in_image
1979e89e22a79b4473b5f629669709da886e3e0b
[ "MIT" ]
1
2020-10-19T20:18:11.000Z
2020-10-19T20:18:11.000Z
code03[efficient].py
inaxia/face_recognition_in_image
1979e89e22a79b4473b5f629669709da886e3e0b
[ "MIT" ]
null
null
null
code03[efficient].py
inaxia/face_recognition_in_image
1979e89e22a79b4473b5f629669709da886e3e0b
[ "MIT" ]
null
null
null
# THIS IS A SHORTENED CODE # WE ARE COMPARING ONE IMAGE WITH ALL IMAGES IN 'ASSETS' FOLDER # ALSO CHECKS THE TOTAL TIME TAKEN # HERE, IMAGES ARE NOT SHOWN from cv2 import cv2 import face_recognition import os import time # FOR CHECKING THE CPU TIME startTimer = time.process_time() # FUNCTION TO GET FACE LOCATION AND...
32.6875
83
0.760038
0
0
0
0
0
0
0
0
327
0.31262
fa04b991cc6d146ac7f1dac666aa9bb071d80333
908
py
Python
scripts/media_to_wp.py
benjaminaschultz/pypress
358e088ac361aa4ae808f0a3d05fb6320d62240c
[ "MIT" ]
2
2015-01-25T17:21:53.000Z
2020-02-15T08:30:26.000Z
scripts/media_to_wp.py
benjaminaschultz/pypress
358e088ac361aa4ae808f0a3d05fb6320d62240c
[ "MIT" ]
1
2015-04-22T20:36:01.000Z
2015-04-22T20:36:01.000Z
scripts/media_to_wp.py
benjaminaschultz/pypress
358e088ac361aa4ae808f0a3d05fb6320d62240c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os,re,sys import mimetypes as mt import argparse import wordpress_xmlrpc as wp from pypress import * def main(argv,client=None): parser = argparse.ArgumentParser() parser.add_argument('-b','--blog', help='url of wordpress blog to which you want to post',dest='url') parser.add_argumen...
34.923077
115
0.709251
0
0
0
0
0
0
0
0
292
0.321586
fa05d36ef8abee158f25e36a1d1976c52c9722c5
6,577
py
Python
GOKOTAI/commands/Meteor/entry.py
kantoku-code/Fusion360_GOKOTAI
1a0644233ca3638c6f864d135f69f90192f31c23
[ "MIT" ]
1
2022-03-18T13:03:22.000Z
2022-03-18T13:03:22.000Z
GOKOTAI/commands/Meteor/entry.py
kantoku-code/Fusion360_GOKOTAI
1a0644233ca3638c6f864d135f69f90192f31c23
[ "MIT" ]
null
null
null
GOKOTAI/commands/Meteor/entry.py
kantoku-code/Fusion360_GOKOTAI
1a0644233ca3638c6f864d135f69f90192f31c23
[ "MIT" ]
null
null
null
import adsk.core import adsk.fusion import os from ...lib import fusion360utils as futil from ... import config import math app = adsk.core.Application.get() ui = app.userInterface # TODO *** コマンドのID情報を指定します。 *** CMD_ID = f'{config.COMPANY_NAME}_{config.ADDIN_NAME}_Meteor' CMD_NAME = 'メテオ' CMD_Descript...
26.203187
88
0.638285
0
0
0
0
0
0
0
0
2,263
0.294164
fa0619b095728c9cbe0aa36d7fe788dda554c238
3,704
py
Python
tp/log/es.py
chinapnr/agbot
9739ce1c2198e50111629db2d1de785edd06876e
[ "MIT" ]
2
2018-06-23T06:48:46.000Z
2018-06-23T10:11:50.000Z
tp/log/es.py
chinapnr/agbot
9739ce1c2198e50111629db2d1de785edd06876e
[ "MIT" ]
5
2020-01-03T09:33:02.000Z
2021-06-02T00:49:52.000Z
tp/log/es.py
chinapnr/agbot
9739ce1c2198e50111629db2d1de785edd06876e
[ "MIT" ]
1
2021-07-07T07:17:27.000Z
2021-07-07T07:17:27.000Z
import re import time from datetime import datetime from enum import Enum from fishbase.fish_logger import logger from .elk_connector import Es from ..base.tp_base import TpBase, TestStatus, Conf, VerticalContext from ..base.tp_base import get_params_dict # LogTestPoint class LogESTestPoint(TpBase): # 类的初始化过程 ...
35.615385
140
0.601242
3,548
0.906027
0
0
0
0
0
0
920
0.234934
fa063d565e386e5f6704b88cfa4179fa400be8cb
5,326
py
Python
main.py
nmanzini/flashcardipy
a36be3d733d27d5252485d3b9ff71437dc3453cf
[ "MIT" ]
null
null
null
main.py
nmanzini/flashcardipy
a36be3d733d27d5252485d3b9ff71437dc3453cf
[ "MIT" ]
null
null
null
main.py
nmanzini/flashcardipy
a36be3d733d27d5252485d3b9ff71437dc3453cf
[ "MIT" ]
null
null
null
import sqlite3, random, os import time name = 'test01.db' filename = "grelist.txt" conn = sqlite3.connect(name) c = conn.cursor() '''word, definition, example, history, time, seen, right, wrong, streak, reported''' class Word(object): def __init__(self, row_id): """ Initialize a Word object with ...
28.481283
108
0.533421
4,369
0.820315
0
0
0
0
0
0
1,918
0.36012
fa078e49a61057ac1da2c5e2c17b188b1fbf01de
128
py
Python
shit.py
rangehow/TransformerForMT
48ec2fb5350003063290f2ad14d55c642517c026
[ "MIT" ]
null
null
null
shit.py
rangehow/TransformerForMT
48ec2fb5350003063290f2ad14d55c642517c026
[ "MIT" ]
null
null
null
shit.py
rangehow/TransformerForMT
48ec2fb5350003063290f2ad14d55c642517c026
[ "MIT" ]
null
null
null
import math from typing import List import numpy as np import torch a = torch.randn(4, 3,2) print(a) print(torch.argmax(a, -1))
16
26
0.734375
0
0
0
0
0
0
0
0
0
0
fa07d8d54e3e7e71f0d6bf08b9fe0410c6904351
6,536
py
Python
tcr/status.py
kris-76/thecardroom
8a527f0a6d8e3339bbd76fe2bebe029517f29deb
[ "MIT" ]
5
2021-11-27T16:40:05.000Z
2022-02-20T18:46:43.000Z
tcr/status.py
kris-76/thecardroom
8a527f0a6d8e3339bbd76fe2bebe029517f29deb
[ "MIT" ]
null
null
null
tcr/status.py
kris-76/thecardroom
8a527f0a6d8e3339bbd76fe2bebe029517f29deb
[ "MIT" ]
4
2022-02-03T08:08:46.000Z
2022-03-03T07:14:41.000Z
# # Copyright 2021 Kristofer Henderson # # MIT License: # # 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, ...
38.674556
108
0.577264
0
0
0
0
0
0
0
0
1,844
0.28213
fa0982dc1f168404670380a21142d00f25739e44
2,863
py
Python
aws/ec2/manage.py
amaga38/discord_bot
99093189ef9e50ca4152b47546deacec78cb6983
[ "MIT" ]
null
null
null
aws/ec2/manage.py
amaga38/discord_bot
99093189ef9e50ca4152b47546deacec78cb6983
[ "MIT" ]
null
null
null
aws/ec2/manage.py
amaga38/discord_bot
99093189ef9e50ca4152b47546deacec78cb6983
[ "MIT" ]
null
null
null
import sys import json import boto3 from botocore.exceptions import ClientError from . import config def status_instance(instance_id, dry_run=False): ec2 = boto3.client('ec2', region_name='ap-northeast-1', aws_access_key_id=config.AWS_ACCESS_KEY_ID, ...
30.457447
80
0.555012
0
0
0
0
0
0
0
0
190
0.066225
fa0a0031b6771b43d0976594e38309c2e2f0ab94
156
py
Python
submissions/templatetags/auth_extras.py
lesves/acceptor
07c3e144e93f27e8355effbfe95a1f01dc818a90
[ "MIT" ]
1
2022-01-03T21:42:37.000Z
2022-01-03T21:42:37.000Z
submissions/templatetags/auth_extras.py
lesves/acceptor
07c3e144e93f27e8355effbfe95a1f01dc818a90
[ "MIT" ]
null
null
null
submissions/templatetags/auth_extras.py
lesves/acceptor
07c3e144e93f27e8355effbfe95a1f01dc818a90
[ "MIT" ]
null
null
null
from django import template register = template.Library() @register.filter def has_group(user, name): return user.groups.filter(name=name).exists()
19.5
50
0.75
0
0
0
0
93
0.596154
0
0
0
0
fa0b649415efbfbba1ac84c2d59ac1cdd94fe947
5,081
py
Python
python_modules/dagster-graphql/dagster_graphql/implementation/fetch_pipelines.py
zzztimbo/dagster
5cf8f159183a80d2364e05bb30362e2798a7af37
[ "Apache-2.0" ]
null
null
null
python_modules/dagster-graphql/dagster_graphql/implementation/fetch_pipelines.py
zzztimbo/dagster
5cf8f159183a80d2364e05bb30362e2798a7af37
[ "Apache-2.0" ]
null
null
null
python_modules/dagster-graphql/dagster_graphql/implementation/fetch_pipelines.py
zzztimbo/dagster
5cf8f159183a80d2364e05bb30362e2798a7af37
[ "Apache-2.0" ]
null
null
null
import sys from dagster_graphql.schema.pipelines import DauphinPipeline, DauphinPipelineSnapshot from graphql.execution.base import ResolveInfo from dagster import check from dagster.core.definitions.pipeline import ExecutionSelector from dagster.core.errors import DagsterInvalidDefinitionError from dagster.utils.err...
41.647541
98
0.739618
0
0
0
0
691
0.135997
0
0
925
0.182051
fa0d80b9aeafc9ccb67f6cea2a2f78fcffb1f863
701
py
Python
tests/snippets/index_overflow.py
khg0712/RustPython
a04c19ccb0f5e7e1774d5e6f267ffed3ee27aeae
[ "MIT" ]
3
2019-08-14T02:05:49.000Z
2020-01-03T08:39:56.000Z
tests/snippets/index_overflow.py
khg0712/RustPython
a04c19ccb0f5e7e1774d5e6f267ffed3ee27aeae
[ "MIT" ]
6
2021-10-14T15:55:16.000Z
2022-03-31T14:04:02.000Z
tests/snippets/index_overflow.py
khg0712/RustPython
a04c19ccb0f5e7e1774d5e6f267ffed3ee27aeae
[ "MIT" ]
1
2020-05-26T15:20:20.000Z
2020-05-26T15:20:20.000Z
import sys def expect_cannot_fit_index_error(s, index): try: s[index] except IndexError: pass # TODO: Replace current except block with commented # after solving https://github.com/RustPython/RustPython/issues/322 # except IndexError as error: # assert str(error) == "cannot...
25.962963
77
0.727532
0
0
0
0
0
0
0
0
226
0.322397
fa0e99500da23e759265befa87f20ecc71948e4b
7,495
py
Python
src/spn/experiments/FPGA/RunNative.py
QueensGambit/SPFlow
2b4d5ec58ff90927177441004df0a49cb69791fb
[ "Apache-2.0" ]
null
null
null
src/spn/experiments/FPGA/RunNative.py
QueensGambit/SPFlow
2b4d5ec58ff90927177441004df0a49cb69791fb
[ "Apache-2.0" ]
null
null
null
src/spn/experiments/FPGA/RunNative.py
QueensGambit/SPFlow
2b4d5ec58ff90927177441004df0a49cb69791fb
[ "Apache-2.0" ]
null
null
null
""" Created on March 26, 2018 @author: Alejandro Molina """ import glob import os import platform import subprocess from collections import OrderedDict import numpy as np from natsort import natsorted from spn.algorithms.Inference import likelihood from spn.experiments.FPGA.GenerateSPNs import load_spn_from_file, fp...
34.068182
112
0.598132
0
0
0
0
0
0
0
0
861
0.114877
fa1043f553e1c60667839cc0926b5837cdef559f
576
py
Python
api/views.py
AktanKasymaliev/django_blog_site_fullstack
146a03a58c12bf61ff32cadfbb66e7f0ecbcf6b1
[ "MIT" ]
1
2021-06-29T15:17:06.000Z
2021-06-29T15:17:06.000Z
api/views.py
AktanKasymaliev/django_blog_site_fullstack
146a03a58c12bf61ff32cadfbb66e7f0ecbcf6b1
[ "MIT" ]
null
null
null
api/views.py
AktanKasymaliev/django_blog_site_fullstack
146a03a58c12bf61ff32cadfbb66e7f0ecbcf6b1
[ "MIT" ]
null
null
null
from rest_framework import generics from blogs.models import Comments from .serializers import CommentsSerializer, UsersSerializers from rest_framework.permissions import AllowAny, IsAuthenticated, IsAdminUser from customUsers.models import User class CommentsView(generics.CreateAPIView): serializer_class = Commen...
33.882353
77
0.8125
317
0.550347
0
0
0
0
0
0
8
0.013889
fa11053785bbc9426fa980dd1bd5615c9a3ba8c5
562
py
Python
client/__init__.py
mycelium-ethereum/punk-offerbook
5804a27fe26af0d613fd5281f0f17b9c207f1822
[ "MIT" ]
null
null
null
client/__init__.py
mycelium-ethereum/punk-offerbook
5804a27fe26af0d613fd5281f0f17b9c207f1822
[ "MIT" ]
null
null
null
client/__init__.py
mycelium-ethereum/punk-offerbook
5804a27fe26af0d613fd5281f0f17b9c207f1822
[ "MIT" ]
null
null
null
from dotenv import load_dotenv load_dotenv(); import os import json import settings from web3 import Web3 from client.Mongo import Mongo from client.Webhook import webhook from client.Opensea import Opensea def get_raw_abis(abi_paths): raw_abis = {} for abi_key, abi_path in abi_paths.items(): with ope...
25.545455
62
0.731317
0
0
0
0
0
0
0
0
22
0.039146
fa12c48a1797c75639adb55946f33942c0b816e2
401
py
Python
src/indexer.py
HypoChloremic/fcsan
37f75b69eab0285d309b198ffa51cee9556d849a
[ "MIT" ]
null
null
null
src/indexer.py
HypoChloremic/fcsan
37f75b69eab0285d309b198ffa51cee9556d849a
[ "MIT" ]
null
null
null
src/indexer.py
HypoChloremic/fcsan
37f75b69eab0285d309b198ffa51cee9556d849a
[ "MIT" ]
null
null
null
from analyze import Analyze import argparse # ap = argparse.ArgumentParser() # ap.addargument("-f", "--folder") # opts = ap.parse_args() run = Analyze() run.read() files = run.files def indexer(): with open("FACS_INDEX.txt", "w") as file: for i in files: run.read(i) meta = run.meta str_to_save = f"File: ...
19.095238
65
0.645885
0
0
0
0
0
0
0
0
157
0.391521
fa12c7d1995b97754015bbb18baea049a24d51b2
1,056
py
Python
Leetcode Practice/strStr.py
falconcode16/pythonprogramming
fc53a879be473ebceb1d7da061b0e8fc2a20706c
[ "MIT" ]
2
2020-04-11T14:15:10.000Z
2020-05-12T09:57:29.000Z
Leetcode Practice/strStr.py
falconcode16/pythonprogramming
fc53a879be473ebceb1d7da061b0e8fc2a20706c
[ "MIT" ]
null
null
null
Leetcode Practice/strStr.py
falconcode16/pythonprogramming
fc53a879be473ebceb1d7da061b0e8fc2a20706c
[ "MIT" ]
1
2021-10-10T02:13:42.000Z
2021-10-10T02:13:42.000Z
# Link - https://leetcode.com/problems/implement-strstr/ """ 28. Implement strStr() Implement strStr(). Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Clarification: What should we return when needle is an empty string? This is a great question to ask during...
22
138
0.660985
257
0.243371
0
0
0
0
0
0
794
0.751894
fa132dcd77d4356013f00fce442c60e3fac1fb8d
816
py
Python
skaio/scheduler.py
cipriantarta/skaio
30716a3bd30d055c0c18d10a899522934bb71613
[ "BSD-3-Clause" ]
null
null
null
skaio/scheduler.py
cipriantarta/skaio
30716a3bd30d055c0c18d10a899522934bb71613
[ "BSD-3-Clause" ]
null
null
null
skaio/scheduler.py
cipriantarta/skaio
30716a3bd30d055c0c18d10a899522934bb71613
[ "BSD-3-Clause" ]
null
null
null
import importlib.util import inspect from skaio import log from skaio.core.publisher import Publisher from skaio.core.base.task import BaseTask from skaio.utils.common import get_loop tasks = ['samples.simple_tasks'] class Scheduler: def start(self): publisher = Publisher() loop = get_loop() ...
32.64
65
0.590686
595
0.729167
0
0
0
0
0
0
59
0.072304
fa14df4a641344d268ffc7e3fb5ac45c848bc4ad
10,347
py
Python
rotkehlchen/accounting/export/csv.py
rotkehlchenio/rotkehlchen
98f49cd3ed26c641fec03b78eff9fe1872385fbf
[ "BSD-3-Clause" ]
137
2018-03-05T11:53:29.000Z
2019-11-03T16:38:42.000Z
rotkehlchen/accounting/export/csv.py
rotkehlchenio/rotkehlchen
98f49cd3ed26c641fec03b78eff9fe1872385fbf
[ "BSD-3-Clause" ]
385
2018-03-08T12:43:41.000Z
2019-11-10T09:15:36.000Z
rotkehlchen/accounting/export/csv.py
rotkehlchenio/rotkehlchen
98f49cd3ed26c641fec03b78eff9fe1872385fbf
[ "BSD-3-Clause" ]
59
2018-03-08T10:08:27.000Z
2019-10-26T11:30:44.000Z
import json import logging from csv import DictWriter from pathlib import Path from tempfile import mkdtemp from typing import TYPE_CHECKING, Any, Dict, List, Literal, Tuple from zipfile import ZIP_DEFLATED, ZipFile from rotkehlchen.accounting.pnl import PnlTotals from rotkehlchen.constants.misc import ZERO from rotke...
35.193878
120
0.590896
8,429
0.814632
0
0
0
0
0
0
2,262
0.218614
fa1575f93b6616c8d5798896a41c353c1200f26e
551
py
Python
tests/ut/bq_test_kit/interpolators/test_shell_interpolator.py
tiboun/python-bigquery-test-kit
8f62bdf21122b615f56088a8e2701e0bb4c71f3b
[ "MIT" ]
31
2021-03-03T21:07:44.000Z
2022-03-20T22:00:45.000Z
tests/ut/bq_test_kit/interpolators/test_shell_interpolator.py
tiboun/python-bq-test-kit
8f62bdf21122b615f56088a8e2701e0bb4c71f3b
[ "MIT" ]
14
2020-11-25T20:45:31.000Z
2021-01-29T13:06:28.000Z
tests/ut/bq_test_kit/interpolators/test_shell_interpolator.py
tiboun/python-bq-test-kit
8f62bdf21122b615f56088a8e2701e0bb4c71f3b
[ "MIT" ]
null
null
null
# Copyright (c) 2020 Bounkong Khamphousone # # This software is released under the MIT License. # https://opensource.org/licenses/MIT from bq_test_kit.interpolators.shell_interpolator import ShellInterpolator def test_interpolate(): si = ShellInterpolator({"LOCAL_KEY": "VALUE"}) result = si.interpolate("Loca...
36.733333
93
0.669691
0
0
0
0
0
0
0
0
300
0.544465
fa17a8836d0b0829d07d117b80ec33b5f3ae92ce
1,123
py
Python
Analytics_Deployment/amls/model_deployment/download_model.py
dciborow/Azure-Synapse-Retail-Recommender-Solution-Accelerator
7ce56d00071bd1f521429dd15ea14c0d0b217008
[ "MIT" ]
12
2021-02-13T06:23:05.000Z
2022-03-26T05:17:49.000Z
Analytics_Deployment/amls/model_deployment/download_model.py
dciborow/Azure-Synapse-Retail-Recommender-Solution-Accelerator
7ce56d00071bd1f521429dd15ea14c0d0b217008
[ "MIT" ]
1
2021-10-17T00:23:51.000Z
2021-10-17T00:23:51.000Z
Analytics_Deployment/amls/model_deployment/download_model.py
dciborow/Azure-Synapse-Retail-Recommender-Solution-Accelerator
7ce56d00071bd1f521429dd15ea14c0d0b217008
[ "MIT" ]
13
2021-02-13T06:23:07.000Z
2022-02-25T11:23:24.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import os, uuid, sys, pickle, shutil, io, logging from azure.storage.filedatalake import DataLakeServiceClient from azure.core._match_conditions import MatchConditions from azure.storage.filedatalake._models import ContentSet...
48.826087
163
0.836153
0
0
0
0
0
0
0
0
470
0.418522
fa17e8b1f375783af0ed86095777f566aaaf4a26
15,480
py
Python
tests/server/test_storage.py
ecoen66/imcsdk
b10eaa926a5ee57cea7182ae0adc8dd1c818b0ab
[ "Apache-2.0" ]
31
2016-06-14T07:23:59.000Z
2021-09-12T17:17:26.000Z
tests/server/test_storage.py
sthagen/imcsdk
1831eaecb5960ca03a8624b1579521749762b932
[ "Apache-2.0" ]
109
2016-05-25T03:56:56.000Z
2021-10-18T02:58:12.000Z
tests/server/test_storage.py
sthagen/imcsdk
1831eaecb5960ca03a8624b1579521749762b932
[ "Apache-2.0" ]
67
2016-05-17T05:53:56.000Z
2022-03-24T15:52:53.000Z
# Copyright 2016 Cisco Systems, 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...
38.7
101
0.581848
0
0
0
0
350
0.02261
0
0
3,079
0.198902
fa19487e15aeeab2574bd34a25e68c329059d835
3,274
py
Python
parsers/demoty.py
discord-advertiser/api
81b168f6326a67f3af2927bd9ba54c2a3d8c27a0
[ "MIT" ]
18
2018-06-08T19:39:11.000Z
2021-06-04T08:25:57.000Z
parsers/demoty.py
discord-advertiser/api
81b168f6326a67f3af2927bd9ba54c2a3d8c27a0
[ "MIT" ]
17
2017-12-05T18:24:38.000Z
2021-06-01T23:49:28.000Z
parsers/demoty.py
discord-advertiser/api
81b168f6326a67f3af2927bd9ba54c2a3d8c27a0
[ "MIT" ]
6
2019-03-20T19:29:41.000Z
2022-01-25T13:08:24.000Z
from parsel import Selector from utils import ( download, remove_big_whitespaces_selector, find_id_in_url, catch_errors, get_last_part_url, ) from data import VideoContent, GalleryContent, ImageContent, Meme, Author, Page import re ROOT = "https://m.demotywatory.pl" def scrap(url): html = do...
27.982906
85
0.626451
0
0
0
0
0
0
0
0
513
0.156689
fa1c471e585180b23bf9534e145118cd67482d08
3,036
py
Python
evaluate_sklearn.py
syenn2896/batik-recommendation
c1bd88e9e4448d5baa48880524ab9ffa356f5777
[ "BSD-2-Clause" ]
null
null
null
evaluate_sklearn.py
syenn2896/batik-recommendation
c1bd88e9e4448d5baa48880524ab9ffa356f5777
[ "BSD-2-Clause" ]
null
null
null
evaluate_sklearn.py
syenn2896/batik-recommendation
c1bd88e9e4448d5baa48880524ab9ffa356f5777
[ "BSD-2-Clause" ]
null
null
null
import sys import tables import numpy as np import argparse import pickle from sklearn.metrics import accuracy_score, confusion_matrix from sklearn.model_selection import cross_val_score from sklearn.preprocessing import StandardScaler from sklearn.tree import DecisionTreeClassifier from sklearn.svm import SVC...
38.43038
172
0.737154
0
0
0
0
0
0
0
0
612
0.201581
fa1ec522fb870aa12118b32f01be14c44f8786bc
552
py
Python
01-DesenvolvimentoDeSistemas/02-LinguagensDeProgramacao/01-Python/01-ListaDeExercicios/02-Aluno/Roberto/exc0019.py
moacirsouza/nadas
ad98d73b4281d1581fd2b2a9d29001acb426ee56
[ "MIT" ]
1
2020-07-03T13:54:18.000Z
2020-07-03T13:54:18.000Z
01-DesenvolvimentoDeSistemas/02-LinguagensDeProgramacao/01-Python/01-ListaDeExercicios/02-Aluno/Roberto/exc0019.py
moacirsouza/nadas
ad98d73b4281d1581fd2b2a9d29001acb426ee56
[ "MIT" ]
null
null
null
01-DesenvolvimentoDeSistemas/02-LinguagensDeProgramacao/01-Python/01-ListaDeExercicios/02-Aluno/Roberto/exc0019.py
moacirsouza/nadas
ad98d73b4281d1581fd2b2a9d29001acb426ee56
[ "MIT" ]
null
null
null
print('[-- Um professor quer sortear um dos seus quatro alunos para apagar o quadro. Faça um programa que ajude ele, lendo o nome deles e escrevendo o nome do escolhido. --]\n') from random import choice nome01 = input('Digite o nome do primeiro aluno: ') nome02 = input('Digite o nome do segundo aluno: ') nome03 = inp...
42.461538
177
0.737319
0
0
0
0
0
0
0
0
336
0.607595
fa1f18445f40e5b73ddd2287b5c90937270ba682
624
py
Python
setup.py
swdream/flyfingers
1d2422139d0cb2d64605e89646b693dc86cc4d96
[ "MIT" ]
2
2015-06-29T09:46:11.000Z
2015-06-29T23:54:44.000Z
setup.py
swdream/flyfingers
1d2422139d0cb2d64605e89646b693dc86cc4d96
[ "MIT" ]
null
null
null
setup.py
swdream/flyfingers
1d2422139d0cb2d64605e89646b693dc86cc4d96
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup import flyfingers requisites = [] setup( name='flyfingers', version=flyfingers.__version__, description='Learn to type 10 fingers', scripts=['scripts/flyfinge...
22.285714
63
0.661859
0
0
0
0
0
0
0
0
281
0.450321
fa1f7e2d0ecc70ad4189a83e4a795841b1fe3bd4
7,764
py
Python
kivy_modules/widget/slider.py
VictorManhani/polingua
16309ef4b25347e2d114749a24dfec5f9696e30f
[ "MIT" ]
null
null
null
kivy_modules/widget/slider.py
VictorManhani/polingua
16309ef4b25347e2d114749a24dfec5f9696e30f
[ "MIT" ]
null
null
null
kivy_modules/widget/slider.py
VictorManhani/polingua
16309ef4b25347e2d114749a24dfec5f9696e30f
[ "MIT" ]
null
null
null
__all__ = ('FlexSlider', ) import os import sys root = os.path.abspath( os.path.dirname( os.path.dirname( os.path.dirname(os.path.realpath(__file__))))) sys.path.insert(0,root) from kivy.lang import Builder from kivy_modules.widget.widget import Widget from kivy.properties import (NumericPrope...
39.815385
229
0.578053
5,314
0.684441
0
0
0
0
0
0
2,404
0.309634
fa23b5ad8e2d48f157fde43ab9bbb1141bdb0d96
676
py
Python
tests/conftest.py
tohanss/repobee-sanitizer
d7a22dc51f298857db4f0138c04ffd5f3fe43511
[ "MIT" ]
null
null
null
tests/conftest.py
tohanss/repobee-sanitizer
d7a22dc51f298857db4f0138c04ffd5f3fe43511
[ "MIT" ]
137
2020-06-18T14:57:11.000Z
2022-01-16T15:58:27.000Z
tests/conftest.py
tohanss/repobee-sanitizer
d7a22dc51f298857db4f0138c04ffd5f3fe43511
[ "MIT" ]
2
2020-06-20T21:47:40.000Z
2020-06-24T13:04:54.000Z
"""Global fixtures and setup code for the test suite.""" import sys import pathlib import pytest import repobee sys.path.append(str(pathlib.Path(__file__).parent / "helpers")) @pytest.fixture(autouse=True) def unregister_plugins(): """Fixture that automatically unregisters all plugins after each test functio...
28.166667
73
0.745562
0
0
245
0.362426
493
0.72929
0
0
318
0.470414
fa258850d54e2ff8a1971affb1d60df347f4e149
1,945
py
Python
query_flight/tests/utils/test_sel.py
eskemojoe007/sw_web_app
92e9b6cd3fedcbbeefc9275cdc49db2fdefaa09e
[ "MIT" ]
null
null
null
query_flight/tests/utils/test_sel.py
eskemojoe007/sw_web_app
92e9b6cd3fedcbbeefc9275cdc49db2fdefaa09e
[ "MIT" ]
17
2018-06-04T16:02:51.000Z
2021-06-10T20:26:45.000Z
query_flight/tests/utils/test_sel.py
eskemojoe007/sw_web_app
92e9b6cd3fedcbbeefc9275cdc49db2fdefaa09e
[ "MIT" ]
null
null
null
import pytest from query_flight import utils from query_flight.models import Search, Flight, Layover, Airport from django.utils import timezone # @pytest.fixture # def basic_search(): # return Search.objects.create() @pytest.fixture def basic_sw_inputs(): return {'browser': 1, 'originationAirportCode': ['ATL...
28.188406
67
0.659126
0
0
0
0
1,705
0.876607
0
0
393
0.202057
fa2894498609ba22cccb5fff7dcf91feb33619f2
4,857
py
Python
tests/blockchain_tests.py
AoHRuthless/Doubloon
9279ac7decd434d43bf9b03487691aa52aab499f
[ "Apache-2.0" ]
1
2018-08-13T10:26:39.000Z
2018-08-13T10:26:39.000Z
tests/blockchain_tests.py
AoHRuthless/Doubloon
9279ac7decd434d43bf9b03487691aa52aab499f
[ "Apache-2.0" ]
null
null
null
tests/blockchain_tests.py
AoHRuthless/Doubloon
9279ac7decd434d43bf9b03487691aa52aab499f
[ "Apache-2.0" ]
null
null
null
import sys sys.path.append(sys.path[0] + '/src') from unittest import TestCase from src.blockchain import Blockchain from src import constant PUBLIC_KEY = '30819f300d06092a864886f70d010101050003818d0030818902818100d99c9347b6ecd418b1df48012201c5bd2869a707e45dee91a5c63027dc8020210aa4cf6e34e81fc200f29c893add94fefbf3759...
50.072165
1,230
0.774758
3,130
0.644431
0
0
0
0
0
0
1,835
0.377805
fa298b5e11ded681d1d7dc27673c2c5d79e5b845
487
py
Python
compte/migrations/0003_auto_20210701_1337.py
bzg/acceslibre
52c7c6990dc132da71a92e856d65f4a983c3b15a
[ "MIT" ]
8
2020-07-23T08:17:28.000Z
2022-03-09T22:31:36.000Z
compte/migrations/0003_auto_20210701_1337.py
bzg/acceslibre
52c7c6990dc132da71a92e856d65f4a983c3b15a
[ "MIT" ]
37
2020-07-01T08:47:33.000Z
2022-02-03T19:50:58.000Z
compte/migrations/0003_auto_20210701_1337.py
bzg/acceslibre
52c7c6990dc132da71a92e856d65f4a983c3b15a
[ "MIT" ]
4
2021-04-08T10:57:18.000Z
2022-01-31T13:16:31.000Z
from django.contrib.auth import get_user_model from django.db import migrations from compte.models import UserPreferences def add_preferences_to_users(apps, schema_editor): users = get_user_model().objects.all() for user in users: UserPreferences.objects.create(user=user) class Migration(migrations...
22.136364
55
0.724846
192
0.394251
0
0
0
0
0
0
30
0.061602
fa29ea4e3eeb4f0c285cf1d53297cc76c1421a6f
3,846
py
Python
mechroutines/es/_routines/hr.py
sjklipp/mechdriver
17c3d9bc82116954b331955e87a60e9adc5e1de9
[ "Apache-2.0" ]
null
null
null
mechroutines/es/_routines/hr.py
sjklipp/mechdriver
17c3d9bc82116954b331955e87a60e9adc5e1de9
[ "Apache-2.0" ]
null
null
null
mechroutines/es/_routines/hr.py
sjklipp/mechdriver
17c3d9bc82116954b331955e87a60e9adc5e1de9
[ "Apache-2.0" ]
null
null
null
""" es_runners for coordinate scans """ import automol import elstruct from mechroutines.es.runner import scan from mechroutines.es.runner import qchem_params from mechlib.amech_io import printer as ioprinter from phydat import phycon def hindered_rotor_scans( zma, spc_info, mod_thy_info, thy_save_fs, ...
31.268293
74
0.629225
0
0
0
0
0
0
0
0
1,236
0.321373
fa2aef92f1386e419f64a36bf512725d85f56e94
1,725
py
Python
start_training.py
DrInfy/TheHarvester
dd21194ab2220c8edb73352c299d2bfb0f11d7d6
[ "MIT" ]
6
2020-03-08T21:04:47.000Z
2021-05-29T07:14:25.000Z
start_training.py
DrInfy/TheHarvester
dd21194ab2220c8edb73352c299d2bfb0f11d7d6
[ "MIT" ]
5
2020-04-20T08:41:48.000Z
2021-01-04T18:15:39.000Z
start_training.py
DrInfy/TheHarvester
dd21194ab2220c8edb73352c299d2bfb0f11d7d6
[ "MIT" ]
2
2021-01-18T21:07:56.000Z
2021-11-22T15:24:21.000Z
import subprocess wsl = "wsl python3.7 /mnt/" + YOUR_PATH_TO_HARVESTER # to = "--timeout 900 -z" to = "-p2 ai.terran.hard" to2 = "-p2 ai.zerg.hard" to3 = "-p2 ai.protoss.hard" def ai_opponents(difficulty: str) -> str: text = "" for race in ["zerg", "protoss", "terran"]: for build in ["rush", "timing",...
33.173077
92
0.667826
0
0
0
0
0
0
0
0
1,094
0.634203
fa2cad5b5c8ded6db2143b04e6d358eb00bedb04
264
py
Python
agents/train.py
yamamototakas/fxtrading
955d247b832de7180b8893edaad0b50df515809f
[ "MIT" ]
null
null
null
agents/train.py
yamamototakas/fxtrading
955d247b832de7180b8893edaad0b50df515809f
[ "MIT" ]
null
null
null
agents/train.py
yamamototakas/fxtrading
955d247b832de7180b8893edaad0b50df515809f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from trade_results_loader import * from model import * loader = TradeResultsLoader() data = TradeResults(loader.retrieve_trade_data()) with Trainer() as trainer: trainer.train(10001, data) trainer.save("./model.ckpt")
22
50
0.685606
0
0
0
0
0
0
0
0
38
0.143939
fa2e2fc6030354392d7209c8f4bab9713fe2a353
1,074
py
Python
madlib.py
danhuyle508/madlib-cli
20d50e09a278c441bb7a483f9d2faa331f522655
[ "MIT" ]
null
null
null
madlib.py
danhuyle508/madlib-cli
20d50e09a278c441bb7a483f9d2faa331f522655
[ "MIT" ]
null
null
null
madlib.py
danhuyle508/madlib-cli
20d50e09a278c441bb7a483f9d2faa331f522655
[ "MIT" ]
null
null
null
import re welcome_message = """ Welcome to the Mad Libs game! YOu will be prompted to enter certain types of words. These words will be used in a mad lib and printed out for you. """ def fill_mad_lib(file): new_mad_lib = '' #import pdb; pdb.set_trace() with open('text.txt', 'r+') as f: try: ...
37.034483
146
0.604283
0
0
0
0
0
0
0
0
315
0.293296
fa2fa594594f0295d2e1d08269d1cf3f259f882f
1,852
py
Python
src/abundance.py
Ilia-Abolhasani/modify_vamb
f164b5d6dd8a8104d115063b86b3d5001dac85b9
[ "MIT" ]
111
2019-06-22T15:10:06.000Z
2022-03-29T06:08:27.000Z
src/abundance.py
neptuneyt/vamb
dfd4f005f56471c0aabbe4e977f4cc3dd893e373
[ "MIT" ]
86
2019-06-22T02:29:30.000Z
2022-03-31T06:56:18.000Z
src/abundance.py
neptuneyt/vamb
dfd4f005f56471c0aabbe4e977f4cc3dd893e373
[ "MIT" ]
32
2019-08-28T09:53:18.000Z
2022-03-26T03:30:52.000Z
import sys import os import argparse import numpy as np parser = argparse.ArgumentParser( description="""Command-line bin abundance estimator. Print the median RPKM abundance for each bin in each sample to STDOUT. Will read the RPKM file into memory - beware.""", formatter_class=argparse.RawDescriptionHelpForm...
28.9375
79
0.714363
0
0
0
0
0
0
0
0
503
0.271598
fa30edc5de1f7b51fdc4c2d079353d9aba68b489
3,343
py
Python
miamidade/events.py
jayktee/scrapers-us-municipal
ff52a331e91cb590a3eda7db6c688d75b77acacb
[ "MIT" ]
67
2015-04-28T19:28:18.000Z
2022-01-31T03:27:17.000Z
miamidade/events.py
jayktee/scrapers-us-municipal
ff52a331e91cb590a3eda7db6c688d75b77acacb
[ "MIT" ]
202
2015-01-15T18:43:12.000Z
2021-11-23T15:09:10.000Z
miamidade/events.py
jayktee/scrapers-us-municipal
ff52a331e91cb590a3eda7db6c688d75b77acacb
[ "MIT" ]
54
2015-01-27T03:15:45.000Z
2021-09-10T19:35:32.000Z
from pupa.scrape import Scraper from pupa.scrape import Event import lxml.html from datetime import datetime import pytz DUPLICATE_EVENT_URLS = ('http://miamidade.gov/wps/Events/EventDetail.jsp?eventID=445731', 'http://miamidade.gov/wps/Events/EventDetail.jsp?eventID=452515', ...
43.415584
244
0.518995
2,947
0.881544
2,744
0.82082
0
0
0
0
1,060
0.31708
fa31418ce189be6854e296ddbd28f6d7bc22e85e
344
py
Python
backend/research_note/migrations/0006_remove_researchnote_is_written.py
andy23512/research-note-system
42a9d67de07a0f32615c4b9c6505b46e7c852f79
[ "MIT" ]
null
null
null
backend/research_note/migrations/0006_remove_researchnote_is_written.py
andy23512/research-note-system
42a9d67de07a0f32615c4b9c6505b46e7c852f79
[ "MIT" ]
6
2021-06-04T23:01:14.000Z
2022-02-26T19:57:11.000Z
backend/research_note/migrations/0006_remove_researchnote_is_written.py
andy23512/research-note-system
42a9d67de07a0f32615c4b9c6505b46e7c852f79
[ "MIT" ]
null
null
null
# Generated by Django 2.2.7 on 2019-11-12 16:03 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('research_note', '0005_auto_20191112_2255'), ] operations = [ migrations.RemoveField( model_name='researchnote', name='is_wri...
19.111111
53
0.610465
259
0.752907
0
0
0
0
0
0
113
0.328488
fa3198b66f7c5594775466edadbd3a731696a18b
1,187
py
Python
Tools/nm_swift_demangle.py
kylefleming/XVim2
e5544aba5c1f9b778f0c329a56f8075bf1c48d0e
[ "MIT" ]
null
null
null
Tools/nm_swift_demangle.py
kylefleming/XVim2
e5544aba5c1f9b778f0c329a56f8075bf1c48d0e
[ "MIT" ]
null
null
null
Tools/nm_swift_demangle.py
kylefleming/XVim2
e5544aba5c1f9b778f0c329a56f8075bf1c48d0e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import shutil import subprocess os.chdir("..") if os.path.exists("tmp"): shutil.rmtree("tmp") os.mkdir("tmp") os.chdir("tmp") modules = ['/Applications/Xcode.app/Contents/SharedFrameworks/SourceEditor.framework/SourceEditor' ,'/Applications/Xcode.app/Contents/SharedFram...
35.969697
98
0.518113
0
0
0
0
0
0
0
0
318
0.267902
fa34161536fc8808c400b42131d5fc16b6159bc6
1,319
py
Python
retag_push.py
atiasn/sync-images
2485f74259de2412a0d147ef1093b412bfafc3c9
[ "Apache-2.0" ]
null
null
null
retag_push.py
atiasn/sync-images
2485f74259de2412a0d147ef1093b412bfafc3c9
[ "Apache-2.0" ]
null
null
null
retag_push.py
atiasn/sync-images
2485f74259de2412a0d147ef1093b412bfafc3c9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import os def get_image_list(): with open('sync_images.txt', 'r') as f: images = f.readlines() sync_images = [] for img in images: img = img.strip() if 'docker.io/' in img: sync_images.append(img.replace('docker.io/', '')) else: s...
26.918367
61
0.578469
0
0
0
0
0
0
0
0
476
0.336872
fa35fd9c4c3f40af307596284bdf4287e3dd908d
638
py
Python
Python/Buch_ATBS/Teil_2/Kapitel_17_Bildbearbeitung/04_texte_schreiben/04_texte_schreiben.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_ATBS/Teil_2/Kapitel_17_Bildbearbeitung/04_texte_schreiben/04_texte_schreiben.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_ATBS/Teil_2/Kapitel_17_Bildbearbeitung/04_texte_schreiben/04_texte_schreiben.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
# 04_texte_schreiben.py # In diesem Beispiel geht es darum Texte in ein Bild zu schreiben mittels ImageFont aus dem Modul PIL from PIL import Image, ImageFont, ImageDraw import os os.chdir(os.path.dirname(__file__)) target_file='.\\text_in_image.png' if os.path.exists(target_file): os.remove(target_file) windows_...
31.9
101
0.763323
0
0
0
0
0
0
0
0
221
0.346395
fa3658cc83397f893af5141259e17243f9b55e03
4,060
py
Python
web.py
dujinle/AccountByTornado
ef76be1d8cfffea2797bf024dcb0eaa887ca0aff
[ "Apache-2.0" ]
null
null
null
web.py
dujinle/AccountByTornado
ef76be1d8cfffea2797bf024dcb0eaa887ca0aff
[ "Apache-2.0" ]
null
null
null
web.py
dujinle/AccountByTornado
ef76be1d8cfffea2797bf024dcb0eaa887ca0aff
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import sys, os import tornado.ioloop import tornado.web import tornado.httpserver import logging import logging.handlers import re from urllib import unquote import config from travellers import * reload(sys) sys.setdefaultencoding('utf8') def deamon(chdir = False): try: if os.fork() > 0: os...
31.230769
76
0.698276
978
0.240887
0
0
0
0
0
0
1,442
0.355172
fa372cb86b56c891becb57810223ec547518e2ca
8,739
py
Python
fluiddb/data/user.py
fluidinfo/fluiddb
b5a8c8349f3eaf3364cc4efba4736c3e33b30d96
[ "Apache-2.0" ]
3
2021-05-10T14:41:30.000Z
2021-12-16T05:53:30.000Z
fluiddb/data/user.py
fluidinfo/fluiddb
b5a8c8349f3eaf3364cc4efba4736c3e33b30d96
[ "Apache-2.0" ]
null
null
null
fluiddb/data/user.py
fluidinfo/fluiddb
b5a8c8349f3eaf3364cc4efba4736c3e33b30d96
[ "Apache-2.0" ]
2
2018-01-24T09:03:21.000Z
2021-06-25T08:34:54.000Z
import crypt import random import re from string import ascii_letters, digits from uuid import uuid4 from storm.locals import ( Storm, DateTime, Int, Unicode, UUID, Reference, AutoReload, RawStr) from fluiddb.data.exceptions import DuplicateUserError, MalformedUsernameError from fluiddb.data.store import getMainS...
36.11157
79
0.669642
2,947
0.337224
0
0
0
0
0
0
4,876
0.557959
fa37e3137008518d11130aa95cb3494298511577
2,049
py
Python
marqeta/response_models/business_proprietor_response_model.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
21
2019-04-12T09:02:17.000Z
2022-02-18T11:39:06.000Z
marqeta/response_models/business_proprietor_response_model.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
1
2020-07-22T21:27:40.000Z
2020-07-23T17:38:43.000Z
marqeta/response_models/business_proprietor_response_model.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
10
2019-05-08T14:20:37.000Z
2021-09-20T18:09:26.000Z
from datetime import datetime, date from marqeta.response_models.address_response_model import AddressResponseModel from marqeta.response_models.identification_response_model import IdentificationResponseModel from marqeta.response_models import datetime_object import json import re class BusinessProprietorResponseMod...
25.936709
127
0.697413
1,763
0.86042
0
0
1,304
0.636408
0
0
231
0.112738
fa3a63f302b46c02ff39a3b03b267bd4f406883d
241
py
Python
Books/Book/urls.py
qq292/Books
d3b85829592bcbeb87eeccc568e22c510a289487
[ "MIT" ]
null
null
null
Books/Book/urls.py
qq292/Books
d3b85829592bcbeb87eeccc568e22c510a289487
[ "MIT" ]
null
null
null
Books/Book/urls.py
qq292/Books
d3b85829592bcbeb87eeccc568e22c510a289487
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path from django.views.generic import TemplateView from .views import MainPage urlpatterns = [ path('admin/', admin.site.urls), path('', MainPage.as_view(), name='books'), ]
21.909091
47
0.73029
0
0
0
0
0
0
0
0
17
0.070539
fa3a73830e5fd5eb0ccec1657d21eb8cfd404d56
7,304
py
Python
tests/test_util.py
markusrobertjonsson/learning_simulator
91d0c37f51f4af6bfe23de1bc9eca25c6bb6f262
[ "MIT" ]
1
2021-06-11T08:41:17.000Z
2021-06-11T08:41:17.000Z
tests/test_util.py
markusrobertjonsson/learning_simulator
91d0c37f51f4af6bfe23de1bc9eca25c6bb6f262
[ "MIT" ]
1
2020-12-05T19:24:50.000Z
2021-09-29T14:11:29.000Z
tests/test_util.py
markusrobertjonsson/learning_simulator
91d0c37f51f4af6bfe23de1bc9eca25c6bb6f262
[ "MIT" ]
2
2018-09-21T01:07:09.000Z
2019-03-18T09:43:05.000Z
import unittest import LsUtil class TestLsUtil(unittest.TestCase): def setUp(self): pass def iseq(self, d1, d2): for _, val in d1.items(): val.sort() for _, val in d2.items(): val.sort() self.assertEqual(d1, d2) def test_dict_inv(self): d ...
49.020134
99
0.502464
7,270
0.995345
0
0
0
0
0
0
671
0.091867
fa3b56e4a1b754b6421ee0737d4108a2bb149d0a
3,856
py
Python
code/vrf-chain-sim/find_pattern.py
filecoin-project/consensus
8824ad5fb8948706995805692d594f6ccf199176
[ "Apache-2.0", "MIT" ]
43
2019-02-14T21:02:53.000Z
2021-12-10T22:53:02.000Z
code/vrf-chain-sim/find_pattern.py
filecoin-project/consensus
8824ad5fb8948706995805692d594f6ccf199176
[ "Apache-2.0", "MIT" ]
41
2019-02-23T02:16:42.000Z
2020-06-18T20:17:52.000Z
code/vrf-chain-sim/find_pattern.py
filecoin-project/consensus
8824ad5fb8948706995805692d594f6ccf199176
[ "Apache-2.0", "MIT" ]
4
2019-03-27T09:15:53.000Z
2022-03-25T07:54:18.000Z
import numpy as np import time from math import floor import multiprocessing as mp import scipy.special #Initialize parameters Num_of_sim_per_proc = 1 start_time = time.time() e = 5. alpha = 0.33 ntot = 100 na = int(ntot*alpha) nh = ntot - na height = 5 #height of the attack p=float(e)/float(1*ntot) unrealistic = 0 #d...
25.202614
97
0.616701
0
0
0
0
0
0
0
0
881
0.228475
fa3bda603647c931c3d1f236ad29db629be3ac37
1,478
py
Python
lib/dblatex-0.3.2/lib/dbtexmf/dblatex/grubber/util.py
jonathanmorley/HR-XSL
799b1075cbec4cda3d686d588eea92a62d59963f
[ "Apache-2.0" ]
1
2017-12-29T23:23:14.000Z
2017-12-29T23:23:14.000Z
lib/dblatex-0.3.2/lib/dbtexmf/dblatex/grubber/util.py
jonathanmorley/HR-XSL
799b1075cbec4cda3d686d588eea92a62d59963f
[ "Apache-2.0" ]
null
null
null
lib/dblatex-0.3.2/lib/dbtexmf/dblatex/grubber/util.py
jonathanmorley/HR-XSL
799b1075cbec4cda3d686d588eea92a62d59963f
[ "Apache-2.0" ]
null
null
null
# This file is part of Rubber and thus covered by the GPL # (c) Emmanuel Beffara, 2002--2006 """ This module contains utility functions and classes used by the main system and by the modules for various tasks. """ try: import hashlib except ImportError: # Fallback for python 2.4: import md5 as hashlib impo...
25.482759
80
0.566982
904
0.611637
0
0
0
0
0
0
564
0.381597