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
9e8e6d830985755cf872faa18feca1ac284fe14d
11,042
py
Python
transposonmapper/transposonmapper.py
EKingma/Transposonmapper
1413bda16a0bd5f5f3ccf84d86193c2dba0ab01b
[ "Apache-2.0" ]
2
2021-11-23T09:39:35.000Z
2022-01-25T15:49:45.000Z
transposonmapper/transposonmapper.py
EKingma/Transposonmapper
1413bda16a0bd5f5f3ccf84d86193c2dba0ab01b
[ "Apache-2.0" ]
76
2021-07-07T18:31:44.000Z
2022-03-22T10:04:40.000Z
transposonmapper/transposonmapper.py
EKingma/Transposonmapper
1413bda16a0bd5f5f3ccf84d86193c2dba0ab01b
[ "Apache-2.0" ]
2
2021-09-16T10:56:20.000Z
2022-01-25T12:33:25.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ This is a tool developed for analysing transposon insertions for experiments using SAturated Transposon Analysis in Yeast (SATAY). This python code contains one function called transposonmapper(). For more information about this code and the project, see https://satay-...
46.394958
271
0.741442
0
0
0
0
0
0
0
0
7,223
0.654139
9e8f1e152b11b2dfb1cd7fa118a719d6c95eed5d
1,975
py
Python
DataTable/Tool/Tool.py
BoilTask/DataTable
d49afe9c43b0a247bc9bc6cceacdd912670eeed9
[ "MIT" ]
5
2020-08-07T17:31:13.000Z
2022-03-03T07:44:29.000Z
DataTable/Tool/Tool.py
BoilTask/DataTable
d49afe9c43b0a247bc9bc6cceacdd912670eeed9
[ "MIT" ]
null
null
null
DataTable/Tool/Tool.py
BoilTask/DataTable
d49afe9c43b0a247bc9bc6cceacdd912670eeed9
[ "MIT" ]
1
2022-03-03T07:44:32.000Z
2022-03-03T07:44:32.000Z
# -*- coding: UTF-8 -*- import sys from datatable import datatable def process_file(file_id): print("1.export_data") print("2.generate_code & export_data") choose_idx = input("plase choose : ") if choose_idx == "1": datatable.export_data(file_id) elif choose_idx == "2": datatable...
27.816901
64
0.571646
0
0
0
0
0
0
0
0
364
0.18356
9e922e429bd689190580fd828c6525764ab943c0
1,268
py
Python
tower_cli/compat.py
kedark3/tower-cli
487a1b9a8e96509798fee108e4f7d2c187177771
[ "Apache-2.0" ]
363
2015-01-14T17:48:34.000Z
2022-01-29T06:37:04.000Z
tower_cli/compat.py
kedark3/tower-cli
487a1b9a8e96509798fee108e4f7d2c187177771
[ "Apache-2.0" ]
703
2015-01-06T17:17:20.000Z
2020-09-16T15:54:17.000Z
tower_cli/compat.py
kedark3/tower-cli
487a1b9a8e96509798fee108e4f7d2c187177771
[ "Apache-2.0" ]
203
2015-01-18T22:38:23.000Z
2022-01-28T19:19:05.000Z
# Copyright 2015, Ansible, Inc. # Luke Sneeringer <lsneeringer@ansible.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
36.228571
77
0.746057
0
0
0
0
0
0
0
0
1,035
0.816246
9e92a7a7b55047819665042784eb05a1717697c3
19,250
py
Python
py/tests/test_donorfy.py
samuelcolvin/nosht
9e4d9bea8ff6bfae86cae948cc3028ccc68d0188
[ "MIT" ]
26
2018-07-28T23:11:27.000Z
2022-02-09T13:40:33.000Z
py/tests/test_donorfy.py
samuelcolvin/nosht
9e4d9bea8ff6bfae86cae948cc3028ccc68d0188
[ "MIT" ]
336
2018-05-25T17:57:00.000Z
2022-03-11T23:24:36.000Z
py/tests/test_donorfy.py
samuelcolvin/nosht
9e4d9bea8ff6bfae86cae948cc3028ccc68d0188
[ "MIT" ]
4
2018-07-18T08:37:19.000Z
2022-01-31T14:42:48.000Z
import json import pytest from buildpg import Values from pytest import fixture from pytest_toolbox.comparison import CloseToNow, RegexStr from shared.actions import ActionTypes from shared.donorfy import DonorfyActor from shared.utils import RequestError from web.utils import encrypt_json from .conftest import Fact...
41.75705
115
0.720883
0
0
357
0.018545
382
0.019844
18,832
0.978286
7,660
0.397922
9e930c5a58d02157e9d5c759c46110f181e09d5b
85
py
Python
lxman/cli/__main__.py
stuxcrystal/lxman
ea0b44a8b9424b3489e393591f5384a986f583a3
[ "MIT" ]
1
2017-12-04T18:48:21.000Z
2017-12-04T18:48:21.000Z
lxman/cli/__main__.py
stuxcrystal/lxman
ea0b44a8b9424b3489e393591f5384a986f583a3
[ "MIT" ]
null
null
null
lxman/cli/__main__.py
stuxcrystal/lxman
ea0b44a8b9424b3489e393591f5384a986f583a3
[ "MIT" ]
null
null
null
import colorama from lxman.cli import cli if __name__ == "__main__": cli()
14.166667
27
0.658824
0
0
0
0
0
0
0
0
10
0.117647
9e952388ffcae30ff69efaffb734ef8eaddfbd24
275
py
Python
exercicios/ex047.py
mrcbnu/python-_exercicios
773da52a227f0e9ecce998cb6b50b3fe167a4f1d
[ "MIT" ]
null
null
null
exercicios/ex047.py
mrcbnu/python-_exercicios
773da52a227f0e9ecce998cb6b50b3fe167a4f1d
[ "MIT" ]
null
null
null
exercicios/ex047.py
mrcbnu/python-_exercicios
773da52a227f0e9ecce998cb6b50b3fe167a4f1d
[ "MIT" ]
null
null
null
########################################### # EXERCICIO 047 # ########################################### '''CRIE UM PROGRAMA QUE MOSTRE NA TELA TODOS OS NUMEROS PARES DE 1 E 50''' for c in range(1, 51): if c % 2 == 0: print(c, end=' ')
30.555556
55
0.341818
0
0
0
0
0
0
0
0
206
0.749091
9e9894afbce14bcac12775c18c8be20d7bdde76f
333
py
Python
src/handler.py
HobbitOfIsengard/automata
5f3bc2c9e42ac856e1bb4ef11dd28f42f5678c20
[ "MIT" ]
null
null
null
src/handler.py
HobbitOfIsengard/automata
5f3bc2c9e42ac856e1bb4ef11dd28f42f5678c20
[ "MIT" ]
null
null
null
src/handler.py
HobbitOfIsengard/automata
5f3bc2c9e42ac856e1bb4ef11dd28f42f5678c20
[ "MIT" ]
null
null
null
def handle(automata, result): """ This is a simple handler :param automata: the automata which yielded the result :type automata: :class:`Automata` :param result: the result of the automata :type result: bool """ print(result) if not result: automata.switch("ask m: try again:...
27.75
58
0.645646
0
0
0
0
0
0
0
0
235
0.705706
9e98a6268aa07a08ba6a43715f82f5d441844cbc
2,090
py
Python
model-optimizer/extensions/ops/bucketize.py
evgenytalanin-intel/openvino
c3aa866a3318fe9fa8c7ebd3bd333b075bb1cc36
[ "Apache-2.0" ]
null
null
null
model-optimizer/extensions/ops/bucketize.py
evgenytalanin-intel/openvino
c3aa866a3318fe9fa8c7ebd3bd333b075bb1cc36
[ "Apache-2.0" ]
1
2021-09-09T08:43:57.000Z
2021-09-10T12:39:16.000Z
model-optimizer/extensions/ops/bucketize.py
evgenytalanin-intel/openvino
c3aa866a3318fe9fa8c7ebd3bd333b075bb1cc36
[ "Apache-2.0" ]
null
null
null
""" Copyright (C) 2018-2020 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
33.709677
113
0.661244
1,416
0.677512
0
0
878
0.420096
0
0
896
0.428708
9e9904613297e7bec0c0b0302bbc80565d246970
5,470
py
Python
app/view/winners.py
pitust/OfMagesAndMagic
e5d5d4f0a930b01b047962028e5c633f6caefe40
[ "MIT" ]
15
2016-12-11T14:30:30.000Z
2019-12-15T13:26:57.000Z
app/view/winners.py
pitust/OfMagesAndMagic
e5d5d4f0a930b01b047962028e5c633f6caefe40
[ "MIT" ]
10
2016-12-11T14:32:30.000Z
2016-12-12T13:30:37.000Z
app/view/winners.py
pitust/OfMagesAndMagic
e5d5d4f0a930b01b047962028e5c633f6caefe40
[ "MIT" ]
4
2016-12-11T14:30:37.000Z
2021-03-13T12:46:20.000Z
import pygame from app.view.animations import Delay, FadeIn, FadeOut, ChooseRandom, FrameAnimate, MovePosition, DelayCallBack, MoveValue, SequenceAnimation, ParallelAnimation, Timeout from app.resources.event_handler import SET_GAME_STATE from app.resources import text_renderer, colours from app.resources.music import ...
38.251748
169
0.668556
4,987
0.9117
0
0
0
0
0
0
84
0.015356
9e991333e11e3674737935eaa3ae326ec405ea15
7,259
py
Python
Source Codes/Assignment1/transformations.py
amir-souri/ML-Exam2020
8feb614ce8171c2c8e88b0fa385db8b679b68748
[ "MIT" ]
null
null
null
Source Codes/Assignment1/transformations.py
amir-souri/ML-Exam2020
8feb614ce8171c2c8e88b0fa385db8b679b68748
[ "MIT" ]
null
null
null
Source Codes/Assignment1/transformations.py
amir-souri/ML-Exam2020
8feb614ce8171c2c8e88b0fa385db8b679b68748
[ "MIT" ]
null
null
null
import numpy as np import math import functools as fu import cv2 import random as rand def transform_points(m, points): """ It transforms the given point/points using the given transformation matrix. :param points: numpy array, list The point/points to be transformed given the transformation matri...
38.005236
121
0.609726
0
0
0
0
0
0
0
0
4,267
0.586771
9e996e95c8e4d35efb2b156fddfb2e6b4af528f7
665
py
Python
scripts/identify_circular-from-reassembled-flye.py
SeanChenHCY/metaLAS
854db6a966a11ab628ad33fa3264a74cfc54eef9
[ "MIT" ]
1
2021-10-04T07:45:18.000Z
2021-10-04T07:45:18.000Z
scripts/identify_circular-from-reassembled-flye.py
SeanChenHCY/metaLAS
854db6a966a11ab628ad33fa3264a74cfc54eef9
[ "MIT" ]
1
2021-08-30T08:01:35.000Z
2021-09-02T09:49:01.000Z
scripts/identify_circular-from-reassembled-flye.py
SeanChenHCY/metaLAS
854db6a966a11ab628ad33fa3264a74cfc54eef9
[ "MIT" ]
null
null
null
#sys.argv[1] = bin_dir, sys.argv[2] = flye_info, sys.argv[3] = output_dir, sys.argv[3] = output_dir import os, sys bin_name=sys.argv[1] bin_dir = sys.argv[2] output_dir = sys.argv[3] large_circular = [] flye_info = open(bin_dir + '/assembly_info.txt','r') read_info = True while read_info: read_info ...
25.576923
142
0.628571
0
0
0
0
0
0
0
0
202
0.303759
9e99d0c79aa914a0737c4a26e98e840b98a19a4a
322
py
Python
apps/Utils/message_constants.py
vikkyB2/UserMaintenance
0ae9db17d694ae67ac82145524cae4a1f69d54c6
[ "MIT" ]
null
null
null
apps/Utils/message_constants.py
vikkyB2/UserMaintenance
0ae9db17d694ae67ac82145524cae4a1f69d54c6
[ "MIT" ]
null
null
null
apps/Utils/message_constants.py
vikkyB2/UserMaintenance
0ae9db17d694ae67ac82145524cae4a1f69d54c6
[ "MIT" ]
null
null
null
LOGGEDOUT_SCSS_MSG = "User Logged out successfully" LOGIN_SCSS_MSG = "User Logged in successfully" INVALID_PASS = "Passowrd not valid" INVALID_USER = "User dose not exsists" INVALID_SESSION = "Session Invalid" INVALID_REQUEST = "Not a valid request" BAD_REQUEST = "Bad request" PASSWORD_EXPIERD = "Password Expier...
40.25
52
0.779503
0
0
0
0
0
0
0
0
171
0.531056
9e9c6e139be0c60a12be6bd43fc6f12d8b899a15
1,611
py
Python
intg/src/main/python/apache_atlas/model/lineage.py
alexwang789/atlas
b265f5e80e02d69ea7bbcfd9d0770361ca7fa185
[ "Apache-2.0" ]
4
2020-10-30T06:15:23.000Z
2022-02-18T09:56:27.000Z
intg/src/main/python/apache_atlas/model/lineage.py
alexwang789/atlas
b265f5e80e02d69ea7bbcfd9d0770361ca7fa185
[ "Apache-2.0" ]
null
null
null
intg/src/main/python/apache_atlas/model/lineage.py
alexwang789/atlas
b265f5e80e02d69ea7bbcfd9d0770361ca7fa185
[ "Apache-2.0" ]
4
2020-10-30T07:21:57.000Z
2021-10-21T16:07:02.000Z
#!/usr/bin/env/python # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # ...
41.307692
122
0.7455
783
0.486034
0
0
0
0
0
0
834
0.517691
9e9ef4bfbf0ebd4b0914ac2783452487117ef345
7,247
py
Python
ucdev/register.py
vpetrigo/python-ucdev
d3606fd1244dfefef039c7c38acb8b4a1f086c29
[ "MIT" ]
11
2015-07-08T01:28:01.000Z
2022-01-26T14:29:47.000Z
ucdev/register.py
vpetrigo/python-ucdev
d3606fd1244dfefef039c7c38acb8b4a1f086c29
[ "MIT" ]
5
2017-12-07T15:04:00.000Z
2021-06-02T14:47:14.000Z
ucdev/register.py
vpetrigo/python-ucdev
d3606fd1244dfefef039c7c38acb8b4a1f086c29
[ "MIT" ]
4
2017-02-18T18:20:13.000Z
2022-03-23T16:21:20.000Z
#!/usr/bin/env python # -*- coding: utf-8-unix -*- """ FOO = Register("A:4 B:4", 0x12) BAR = Register("B:4 C:4", 0x23) # evals as int which is a register address print FOO == 0x12 # each field attribute returns a mask for that field print FOO.B == 0b00001111 print BAR.B == 0b11110000 # ERROR: Register definition is ...
27.660305
74
0.588519
4,805
0.663033
0
0
792
0.109287
0
0
1,576
0.217469
9e9f1ba89714829bd8385e0bc2781953760fa2f6
83,916
py
Python
pynsxv/library/nsx_dfw.py
preussal/pynsxv
20d50236243729c0f52864825b23861ea1b664d3
[ "MIT", "Ruby", "X11", "Unlicense" ]
2
2020-10-20T16:09:25.000Z
2020-12-16T23:35:55.000Z
pynsxv/library/nsx_dfw.py
preussal/pynsxv
20d50236243729c0f52864825b23861ea1b664d3
[ "MIT", "Ruby", "X11", "Unlicense" ]
null
null
null
pynsxv/library/nsx_dfw.py
preussal/pynsxv
20d50236243729c0f52864825b23861ea1b664d3
[ "MIT", "Ruby", "X11", "Unlicense" ]
2
2020-12-16T23:35:56.000Z
2021-02-04T07:00:08.000Z
#!/usr/bin/env python # coding=utf-8 # # Copyright © 2015-2016 VMware, Inc. All Rights Reserved. # # Licensed under the X11 (MIT) (the “License”) set forth below; # # you may not use this file except in compliance with the License. Unless required by applicable law or agreed to in # writing, software distributed under ...
48.930612
122
0.631894
0
0
0
0
0
0
0
0
34,323
0.408963
9e9f896246ab8606b9ddf1a41403635bb424c413
2,463
py
Python
src/myapp/tests/test_utils.py
thinkAmi/DjangoCongress_JP_2019_talk
0b746f62808d979c1570de80084686f709996e1d
[ "Unlicense" ]
1
2019-05-18T04:34:59.000Z
2019-05-18T04:34:59.000Z
src/myapp/tests/test_utils.py
thinkAmi/DjangoCongress_JP_2019_talk
0b746f62808d979c1570de80084686f709996e1d
[ "Unlicense" ]
null
null
null
src/myapp/tests/test_utils.py
thinkAmi/DjangoCongress_JP_2019_talk
0b746f62808d979c1570de80084686f709996e1d
[ "Unlicense" ]
null
null
null
import pathlib from django.conf import settings from django.core import mail from django.core.mail import EmailMessage from django.test import TestCase class TestSendMail(TestCase): def _callFUT(self, encoding='utf-8', has_attachment=False): from myapp.utils import my_send_mail my_send_mail(encod...
32.84
78
0.639464
2,571
0.942794
0
0
0
0
0
0
714
0.261826
9ea0c546a1e521014a32f12995b27d65c50cbaf0
34,133
py
Python
app.py
luyaozou/conjugaison
c8d100b38e1067af17f428cba4af925465d5fd52
[ "MIT" ]
null
null
null
app.py
luyaozou/conjugaison
c8d100b38e1067af17f428cba4af925465d5fd52
[ "MIT" ]
null
null
null
app.py
luyaozou/conjugaison
c8d100b38e1067af17f428cba4af925465d5fd52
[ "MIT" ]
null
null
null
#! encoding = utf-8 """ Practice French conjugaison """ import sys from os.path import isfile from time import sleep from sqlite3 import Error as dbError from PyQt5 import QtWidgets, QtCore from PyQt5.QtGui import QTextOption, QKeySequence from dictionary import TENSE_MOODS, PERSONS from dictionary import conjug, con...
40.538005
103
0.637213
33,516
0.981607
0
0
1,169
0.034237
0
0
3,338
0.097762
9ea2e6bc949b1feeca26b6c53dd72ef93834de53
2,515
py
Python
python/lib/viewer/bluf/plot_func.py
timtyree/bgmc
891e003a9594be9e40c53822879421c2b8c44eed
[ "MIT" ]
null
null
null
python/lib/viewer/bluf/plot_func.py
timtyree/bgmc
891e003a9594be9e40c53822879421c2b8c44eed
[ "MIT" ]
null
null
null
python/lib/viewer/bluf/plot_func.py
timtyree/bgmc
891e003a9594be9e40c53822879421c2b8c44eed
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt, numpy as np, pandas as pd # general functions for plotting # Tim Tyree # 7.23.2021 def PlotTextBox(ax,text,text_width=150.,xcenter=0.5,ycenter=0.5,fontsize=20, family='serif', style='italic',horizontalalignment='center', verticalalignment='center', color='black',use_turnoff_axis=T...
38.106061
137
0.690258
0
0
0
0
0
0
0
0
506
0.201193
9eaab24d3548bb05725fadfb2ac9add9355eace8
331
py
Python
box/endpoints.py
manojiitkumar93/apibox
5e7c30da73be2179eb695148e4fe9909ac280e9e
[ "MIT" ]
null
null
null
box/endpoints.py
manojiitkumar93/apibox
5e7c30da73be2179eb695148e4fe9909ac280e9e
[ "MIT" ]
null
null
null
box/endpoints.py
manojiitkumar93/apibox
5e7c30da73be2179eb695148e4fe9909ac280e9e
[ "MIT" ]
null
null
null
from lambdatest import Operations from unicode1 import convert file_name = "ocr.json" k = Operations() jsonObj = k.load_Json(file_name) dictData = convert(jsonObj) endpoints_list = dictData["endpoints"] enp_path = [] dfp = {} for i in endpoints_list: enp_path.append(i["path"]) try: dfp[i["path"]]=i['result'] excep...
19.470588
38
0.722054
0
0
0
0
0
0
0
0
41
0.123867
9eab6ea7aa5627d7aec1c6ead82d9bb0ee0138e3
4,804
py
Python
src/currency_rates.py
akinmetin/currency-rates
586ea1205eb4a00b84bb37f85e781060383a673a
[ "MIT" ]
null
null
null
src/currency_rates.py
akinmetin/currency-rates
586ea1205eb4a00b84bb37f85e781060383a673a
[ "MIT" ]
2
2020-03-05T19:55:07.000Z
2020-10-25T13:30:18.000Z
src/currency_rates.py
akinmetin/currency-rates
586ea1205eb4a00b84bb37f85e781060383a673a
[ "MIT" ]
2
2020-03-07T08:58:09.000Z
2020-03-07T09:01:11.000Z
import requests from decouple import config import datetime from calendar import monthrange import psycopg2 import time def create_db_table(): con = psycopg2.connect(database=config("DB_NAME"), user=config("DB_USER"), password=config("DB_PASSWORD"), host=confi...
34.561151
151
0.622606
0
0
0
0
0
0
0
0
2,164
0.450458
9eac32aaf34bddbfe912ad8b935101d15d22cb63
3,446
py
Python
association_rules_viz/graph.py
ScenesK/association-rules-viz
2134b0866509ae9b65f323da7972033e54ffb25f
[ "MIT" ]
1
2020-06-22T09:50:26.000Z
2020-06-22T09:50:26.000Z
association_rules_viz/graph.py
ScenesK/association-rules-viz
2134b0866509ae9b65f323da7972033e54ffb25f
[ "MIT" ]
null
null
null
association_rules_viz/graph.py
ScenesK/association-rules-viz
2134b0866509ae9b65f323da7972033e54ffb25f
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import networkx as nx import matplotlib as mpl import matplotlib.pyplot as plt from mpl_toolkits.axes_grid1 import make_axes_locatable def graph(lhs, rhs, support, confidence, lift, data=None, fig_scale=2, fon...
34.46
75
0.531631
0
0
0
0
0
0
0
0
91
0.026407
9ead611c9befd61012037395d04c055fa2feabec
1,833
py
Python
src/herald/herald.py
Artic42/ArticUtils
4eb3d010e2448d12edde569b600e6cd0d8f1d7a5
[ "MIT" ]
null
null
null
src/herald/herald.py
Artic42/ArticUtils
4eb3d010e2448d12edde569b600e6cd0d8f1d7a5
[ "MIT" ]
null
null
null
src/herald/herald.py
Artic42/ArticUtils
4eb3d010e2448d12edde569b600e6cd0d8f1d7a5
[ "MIT" ]
null
null
null
import readExcel import modifyFile import sys import time import sendEmail def main (excelFilePath): emailConfigPath = "/tmp/emailConfig" emailFilePath = "/tmp/emails" sys.system ("mkdir -p" + emailConfigPath) sys.system ("mkdir -p" + emailFilePath) #Read excel file excel = readExcel.readExce...
29.095238
84
0.643208
0
0
0
0
0
0
0
0
420
0.229133
9eaf5189699bfaacfc0f73117848a3fc060f8088
2,314
py
Python
cvpack/extras/clustering.py
alkasm/cvtools
7d7aceddf18aca03ac77ccf8e0da7f71ef6674a3
[ "MIT" ]
10
2018-09-22T14:05:42.000Z
2020-11-30T07:12:18.000Z
cvpack/extras/clustering.py
alkasm/cvmod
7d7aceddf18aca03ac77ccf8e0da7f71ef6674a3
[ "MIT" ]
3
2019-02-22T20:54:53.000Z
2021-04-15T17:56:44.000Z
cvpack/extras/clustering.py
alkasm/cvpack
7d7aceddf18aca03ac77ccf8e0da7f71ef6674a3
[ "MIT" ]
1
2019-04-01T18:35:46.000Z
2019-04-01T18:35:46.000Z
# type: ignore import cv2 import numpy as np TWO_PI = 2 * np.pi def kmeans_periodic(columns, intervals, data, *args, **kwargs): """Runs kmeans with periodicity in a subset of dimensions. Transforms columns with periodicity on the specified intervals into two columns with coordinates on the unit circle...
33.536232
81
0.653414
0
0
0
0
0
0
0
0
1,297
0.560501
9eb1d479f5b09c6f55397ec22af703577ef9ccc9
6,599
py
Python
models/model.py
SeungoneKim/Transformer_implementation
a52bf552eb645fc9bfb812cc26842fc147d6c008
[ "Apache-2.0" ]
null
null
null
models/model.py
SeungoneKim/Transformer_implementation
a52bf552eb645fc9bfb812cc26842fc147d6c008
[ "Apache-2.0" ]
null
null
null
models/model.py
SeungoneKim/Transformer_implementation
a52bf552eb645fc9bfb812cc26842fc147d6c008
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from models.embedding import TokenEmbedding, PositionalEncoding, TransformerEmbedding from models.attention import ScaledDotProductAttention, MultiHeadAttention, FeedForward from models.layers import EncoderLayer, DecoderLayer class Encoder(nn.M...
43.993333
105
0.618882
5,648
0.855887
0
0
0
0
0
0
800
0.12123
9eb2558837d9b3df4ed680f126f72ec0f1a601b9
23,299
py
Python
market/models/sim_trades.py
LuoMaimingS/django_virtual_stock_market
cfeccdbb906f9998ec0a0633c2d2f39cdd87bf85
[ "BSD-3-Clause" ]
1
2021-05-29T23:33:41.000Z
2021-05-29T23:33:41.000Z
market/models/sim_trades.py
LuoMaimingS/django_virtual_stock_market
cfeccdbb906f9998ec0a0633c2d2f39cdd87bf85
[ "BSD-3-Clause" ]
null
null
null
market/models/sim_trades.py
LuoMaimingS/django_virtual_stock_market
cfeccdbb906f9998ec0a0633c2d2f39cdd87bf85
[ "BSD-3-Clause" ]
null
null
null
# _*_ coding:UTF-8 _*_ """ 该文件定义了模拟环境中交易动作相关的模型 并非虚拟股市原本的模型,做了一些适应性的调整,取消了全部外键。 """ from django.db import models import uuid from decimal import Decimal import time from .clients import BaseClient from .sim_market import SimMarket from .sim_clients import SimHoldingElem, SimCommissionElem, SimTransactionElem from .s...
45.864173
120
0.621057
3,628
0.145254
0
0
0
0
0
0
3,876
0.155183
9eb25cb35ba11321a4478f3939055dd02c0dd60a
906
py
Python
project/project3/tests/q3_2_3.py
ds-modules/Colab-demo
cccaff13633f8a5ec697cd4aeca9087f2feec2e4
[ "BSD-3-Clause" ]
null
null
null
project/project3/tests/q3_2_3.py
ds-modules/Colab-demo
cccaff13633f8a5ec697cd4aeca9087f2feec2e4
[ "BSD-3-Clause" ]
null
null
null
project/project3/tests/q3_2_3.py
ds-modules/Colab-demo
cccaff13633f8a5ec697cd4aeca9087f2feec2e4
[ "BSD-3-Clause" ]
null
null
null
test = { 'name': 'q3_2_3', 'points': 1, 'suites': [ { 'cases': [ { 'code': '>>> # this test just checks that your classify_feature_row works correctly.;\n' '>>> def check(r):\n' '... t = test_my_features....
60.4
158
0.324503
0
0
0
0
0
0
0
0
406
0.448124
9eb59f13f0ec2dce6a8b666bbd3d7c93b0067e02
695
py
Python
Lib/email/mime/nonmultipart.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
1
2018-06-21T18:21:24.000Z
2018-06-21T18:21:24.000Z
Lib/email/mime/nonmultipart.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
Lib/email/mime/nonmultipart.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
# Copyright (C) 2002-2006 Python Software Foundation # Author: Barry Warsaw # Contact: email-sig@python.org """Base klasa dla MIME type messages that are nie multipart.""" __all__ = ['MIMENonMultipart'] z email zaimportuj errors z email.mime.base zaimportuj MIMEBase klasa MIMENonMultipart(MIMEBase): """Base ...
30.217391
76
0.719424
0
0
0
0
0
0
0
0
446
0.640805
9eb647f3ff599f7fe9aba98c470407028b7ff5b5
682
py
Python
notifications/providers/slack.py
danidee10/django-notifs
2712aad90ee1cc7b6735dad6e311e4df6a02b843
[ "MIT" ]
145
2017-06-22T20:37:14.000Z
2022-02-03T21:18:28.000Z
notifications/providers/slack.py
danidee10/django-notifs
2712aad90ee1cc7b6735dad6e311e4df6a02b843
[ "MIT" ]
67
2017-06-23T06:53:32.000Z
2021-11-13T04:00:27.000Z
notifications/providers/slack.py
danidee10/django-notifs
2712aad90ee1cc7b6735dad6e311e4df6a02b843
[ "MIT" ]
24
2017-06-22T20:37:17.000Z
2022-02-17T19:52:35.000Z
from notifications import ImproperlyInstalledNotificationProvider try: from slack_sdk import WebClient except ImportError as err: raise ImproperlyInstalledNotificationProvider( missing_package='slack_sdk', provider='slack' ) from err from notifications import default_settings as settings from . i...
28.416667
83
0.771261
328
0.480938
0
0
0
0
0
0
25
0.036657
9eb6d151f5528cdc1c322f9b0068d09d6d965dbb
114
py
Python
pinax/points/signals.py
hacklabr/pinax-points
1133c6d911e9fe9445ff45aebe118bcaf715aae0
[ "MIT" ]
28
2015-01-26T07:52:49.000Z
2022-03-20T17:15:04.000Z
pinax/points/signals.py
hacklabr/pinax-points
1133c6d911e9fe9445ff45aebe118bcaf715aae0
[ "MIT" ]
15
2017-12-04T07:35:49.000Z
2020-05-21T15:53:20.000Z
pinax/points/signals.py
hacklabr/pinax-points
1133c6d911e9fe9445ff45aebe118bcaf715aae0
[ "MIT" ]
14
2015-02-10T04:27:12.000Z
2021-10-05T10:27:21.000Z
from django.dispatch import Signal points_awarded = Signal(providing_args=["target", "key", "points", "source"])
28.5
77
0.745614
0
0
0
0
0
0
0
0
29
0.254386
9eb729a54e82db494828c16cbebb47a4ee3adfae
1,798
py
Python
symplyphysics/laws/nuclear/fast_non_leakage_probability_from_fermi_age.py
blackyblack/symplyphysics
4a22ceb7ffbdd8a0b2623a09bfb1a8febf541e4f
[ "MIT" ]
null
null
null
symplyphysics/laws/nuclear/fast_non_leakage_probability_from_fermi_age.py
blackyblack/symplyphysics
4a22ceb7ffbdd8a0b2623a09bfb1a8febf541e4f
[ "MIT" ]
null
null
null
symplyphysics/laws/nuclear/fast_non_leakage_probability_from_fermi_age.py
blackyblack/symplyphysics
4a22ceb7ffbdd8a0b2623a09bfb1a8febf541e4f
[ "MIT" ]
null
null
null
from sympy.functions import exp from symplyphysics import ( symbols, Eq, pretty, solve, Quantity, units, S, Probability, validate_input, expr_to_quantity, convert_to ) # Description ## Ptnl (fast non-leakage factor) is the ratio of the number of fast neutrons that do not leak from the reactor ## core during th...
47.315789
114
0.775306
0
0
0
0
596
0.330744
0
0
790
0.438402
9eb7a903f72b60e9e3df9e532475115dd09aef7e
599
py
Python
3. Python Advanced (September 2021)/3.1 Python Advanced (September 2021)/12. Exercise - File Handling/02_line_numbers.py
kzborisov/SoftUni
ccb2b8850adc79bfb2652a45124c3ff11183412e
[ "MIT" ]
1
2021-02-07T07:51:12.000Z
2021-02-07T07:51:12.000Z
3. Python Advanced (September 2021)/3.1 Python Advanced (September 2021)/12. Exercise - File Handling/02_line_numbers.py
kzborisov/softuni
9c5b45c74fa7d9748e9b3ea65a5ae4e15c142751
[ "MIT" ]
null
null
null
3. Python Advanced (September 2021)/3.1 Python Advanced (September 2021)/12. Exercise - File Handling/02_line_numbers.py
kzborisov/softuni
9c5b45c74fa7d9748e9b3ea65a5ae4e15c142751
[ "MIT" ]
null
null
null
import re def count_letters(text): return len(re.findall(r"[a-zA-Z]", text)) def count_punctuation(text): return len([x for x in text if x in '!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~']) lines = [] with open("text.txt", "r") as f: content = f.readlines() for index, line in enumerate(content): l...
23.96
84
0.580968
0
0
0
0
0
0
0
0
141
0.235392
9eb81dc7bd07da6f0a064dae1f82cb5f9f4c811b
422
py
Python
app/auth/forms.py
jakhax/esp9266_rfid_lock
e9c25628a023c8d6005a136e240ca1a36589fd36
[ "MIT" ]
2
2020-11-10T09:16:21.000Z
2021-12-15T07:27:17.000Z
app/auth/forms.py
jakhax/consecutive_normal_punches
e9c25628a023c8d6005a136e240ca1a36589fd36
[ "MIT" ]
null
null
null
app/auth/forms.py
jakhax/consecutive_normal_punches
e9c25628a023c8d6005a136e240ca1a36589fd36
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField,SubmitField,BooleanField,PasswordField from wtforms.validators import Required,DataRequired,Length class LoginForm(FlaskForm): username = StringField('username', validators=[DataRequired(), Length(1, 32)]) password = PasswordField('Password', vali...
46.888889
82
0.779621
258
0.611374
0
0
0
0
0
0
41
0.097156
9eb981e2b99c90652643fa12268a2ebf31a607f2
929
py
Python
hub/sensorhub/models/user_agent.py
kblum/sensor-hub
6b766ca59be74ae1a8d3d42afe048d04b6a0c546
[ "MIT" ]
null
null
null
hub/sensorhub/models/user_agent.py
kblum/sensor-hub
6b766ca59be74ae1a8d3d42afe048d04b6a0c546
[ "MIT" ]
null
null
null
hub/sensorhub/models/user_agent.py
kblum/sensor-hub
6b766ca59be74ae1a8d3d42afe048d04b6a0c546
[ "MIT" ]
null
null
null
from django.db import models from . import TimestampedModel class UserAgent(TimestampedModel): """ Representation of HTTP user agent string from reading API request. Exists as a separate model for database normalisation. """ user_agent_string = models.TextField(db_index=True, unique=True, null=Fa...
32.034483
93
0.678149
866
0.932185
0
0
523
0.562971
0
0
215
0.231432
9eb9fac0aba71cd2544a8102ad03715608f8d6b1
428
py
Python
sortingAlgorithm/pigeonHoleSort.py
slowy07/pythonApps
22f9766291dbccd8185035745950c5ee4ebd6a3e
[ "MIT" ]
10
2020-10-09T11:05:18.000Z
2022-02-13T03:22:10.000Z
sortingAlgorithm/pigeonHoleSort.py
khairanabila/pythonApps
f90b8823f939b98f7bf1dea7ed35fe6e22e2f730
[ "MIT" ]
null
null
null
sortingAlgorithm/pigeonHoleSort.py
khairanabila/pythonApps
f90b8823f939b98f7bf1dea7ed35fe6e22e2f730
[ "MIT" ]
6
2020-11-26T12:49:43.000Z
2022-03-06T06:46:43.000Z
def pigeonHoleSort(nums): minNumbers = min(nums) maxNumbers = max(nums) size = maxNumbers - minNumbers + 1 holes = [0] * size for x in nums: holes[x - minNumbers] += 1 i = 0 for count in range(size): while holes[count] > 0: holes[count] -= 1 nums[i]...
20.380952
40
0.546729
0
0
0
0
0
0
0
0
0
0
9eba0cf24a0b17206785479fbe34def5787d6765
345
py
Python
service/utils/parsers.py
psorianom/csv_detective_api
7c96f497374d842226a95a26cb6627ac22cd799b
[ "MIT" ]
2
2020-02-04T05:24:56.000Z
2021-05-05T17:22:55.000Z
service/utils/parsers.py
psorianom/csv_detective_api
7c96f497374d842226a95a26cb6627ac22cd799b
[ "MIT" ]
10
2019-10-24T13:29:59.000Z
2022-02-26T17:06:15.000Z
service/utils/parsers.py
psorianom/csv_detective_api
7c96f497374d842226a95a26cb6627ac22cd799b
[ "MIT" ]
2
2019-12-30T23:26:53.000Z
2020-03-27T17:23:28.000Z
# parsers.py from werkzeug.datastructures import FileStorage from flask_restplus import reqparse file_upload = reqparse.RequestParser() file_upload.add_argument('resource_csv', type=FileStorage, location='files', required=True, ...
34.5
47
0.585507
0
0
0
0
0
0
0
0
43
0.124638
9ebb0d752144dce45cafae8a4dd28aecf263593a
4,410
py
Python
sdk/python/kfp/components/yaml_component_test.py
johnmacnamararseg/pipelines
340318625c527836af1c9abc0fd0d76c0a466333
[ "Apache-2.0" ]
null
null
null
sdk/python/kfp/components/yaml_component_test.py
johnmacnamararseg/pipelines
340318625c527836af1c9abc0fd0d76c0a466333
[ "Apache-2.0" ]
1
2020-02-06T12:53:44.000Z
2020-02-06T12:53:44.000Z
sdk/python/kfp/components/yaml_component_test.py
johnmacnamararseg/pipelines
340318625c527836af1c9abc0fd0d76c0a466333
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The Kubeflow Authors # # 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...
34.453125
111
0.654649
2,493
0.565306
0
0
0
0
0
0
1,966
0.445805
9ebbdb1a7760f5a35b7e2094efb06933644ff5ca
10,548
py
Python
cpmm.py
wallfair-organization/amm-sim
0ae8584563dd44162a8e2407382d250b02474704
[ "MIT" ]
null
null
null
cpmm.py
wallfair-organization/amm-sim
0ae8584563dd44162a8e2407382d250b02474704
[ "MIT" ]
null
null
null
cpmm.py
wallfair-organization/amm-sim
0ae8584563dd44162a8e2407382d250b02474704
[ "MIT" ]
null
null
null
# # Constant Price Market Making Simulator # # simulate different liquidity provision and trading strategies # from typing import Tuple import csv import numpy as np import pandas as pd from numpy.random import binomial, default_rng # TODO: switch to decimal type and control quantization. numeric errors will kill us...
32.455385
168
0.724877
7,761
0.735779
0
0
579
0.054892
0
0
3,685
0.349355
9ebc76ad7fb2ab59ef2ca50b8282c5e6935d4d06
1,184
py
Python
modules/sdl2/input/__init__.py
rave-engine/rave
0eeb956363f4d7eda92350775d7d386550361273
[ "BSD-2-Clause" ]
5
2015-03-18T01:19:56.000Z
2020-10-23T12:44:47.000Z
modules/sdl2/input/__init__.py
rave-engine/rave
0eeb956363f4d7eda92350775d7d386550361273
[ "BSD-2-Clause" ]
null
null
null
modules/sdl2/input/__init__.py
rave-engine/rave
0eeb956363f4d7eda92350775d7d386550361273
[ "BSD-2-Clause" ]
null
null
null
""" rave input backend using the SDL2 library. """ import sys import sdl2 import rave.log import rave.events import rave.backends from ..common import events_for from . import keyboard, mouse, touch, controller BACKEND_PRIORITY = 50 ## Module API. def load(): rave.backends.register(rave.backends.BACKEND_INPUT,...
22.769231
113
0.688345
0
0
0
0
0
0
0
0
146
0.123311
9ebe258aa483e065cfc04b0e3ffeede0cfc9e13c
862
py
Python
setup.py
Dhruv-Jauhar/pyDownload
4c64427037533dccf9d4dd958a46cded2422985a
[ "MIT" ]
null
null
null
setup.py
Dhruv-Jauhar/pyDownload
4c64427037533dccf9d4dd958a46cded2422985a
[ "MIT" ]
null
null
null
setup.py
Dhruv-Jauhar/pyDownload
4c64427037533dccf9d4dd958a46cded2422985a
[ "MIT" ]
null
null
null
try: from setuptools import setup, find_packages except ImportError as e: from distutils.core import setup dependencies = ['docopt', 'termcolor', 'requests'] setup( name = 'pyDownload', version = '1.0.2', description = 'CLI based download utility', url = 'https://github.com/Dhruv-Jauhar/pyDownload', author = ...
25.352941
53
0.682135
0
0
0
0
0
0
0
0
485
0.562645
9ebfc8aff37fd8a9c5182bec54f14b5f742f7af5
792
py
Python
todo/models.py
sanaullahaq/todo-API
fc4b3c46902ceae8b67d96195451dcfe404a2d48
[ "MIT" ]
2
2020-10-28T05:00:06.000Z
2020-10-28T05:05:35.000Z
todo/models.py
sanaullahaq/todo-API
fc4b3c46902ceae8b67d96195451dcfe404a2d48
[ "MIT" ]
4
2021-03-30T14:09:51.000Z
2021-06-10T20:04:28.000Z
todo/models.py
sanaullahaq/todo
afd05969b74326a72f3103f86a55225137f3faab
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User class Todo(models.Model): title = models.CharField(max_length=100) memo = models.TextField(blank=True) # it can be left blank created = models.DateTimeField(auto_now_add=True) # this will automatically add date and time and the ...
39.6
115
0.738636
716
0.90404
0
0
0
0
0
0
307
0.387626
7b35640cc33e749326b0108e01c9308ac2c3ffda
603
py
Python
pRestore/stuff.py
snaiperskaya96/pRestore
cd51050fbd02423b038233c804e1c1ee0bfe59e7
[ "MIT" ]
null
null
null
pRestore/stuff.py
snaiperskaya96/pRestore
cd51050fbd02423b038233c804e1c1ee0bfe59e7
[ "MIT" ]
null
null
null
pRestore/stuff.py
snaiperskaya96/pRestore
cd51050fbd02423b038233c804e1c1ee0bfe59e7
[ "MIT" ]
null
null
null
class Stuff: def __init__(self): return @staticmethod def print_logo(): print ''' ____ _ _ __ | _ \ ___ ___| |_ ___ _ __ ___ | '_ \| |_) / _ \/ __| __/ _ \| '__/ _ \\ | |_) | _ < __/\__ \ || (_) | | | __/ | .__/|_| \_\___||___/\__\___/|_| \___| |_| ''' cla...
19.451613
41
0.507463
596
0.988391
0
0
257
0.426202
0
0
207
0.343284
7b356af2edb34b8b508b0178b0361112e9713c32
558
py
Python
tests/coverage/add_perf_summary.py
olvrou/CCF
3843ff0ccf3871dc49cf2102655404d17ed5dcaf
[ "Apache-2.0" ]
1
2020-02-03T21:57:22.000Z
2020-02-03T21:57:22.000Z
tests/coverage/add_perf_summary.py
olvrou/CCF
3843ff0ccf3871dc49cf2102655404d17ed5dcaf
[ "Apache-2.0" ]
null
null
null
tests/coverage/add_perf_summary.py
olvrou/CCF
3843ff0ccf3871dc49cf2102655404d17ed5dcaf
[ "Apache-2.0" ]
1
2021-04-08T12:55:28.000Z
2021-04-08T12:55:28.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache 2.0 License. import time import json with open("coverage.json", "r") as file: timestamp = str(int(time.time())) data = json.load(file)["data"][0] lines_covered = str(data["totals"]["lines"]["covered"]) lines_valid =...
26.571429
59
0.594982
0
0
0
0
0
0
0
0
231
0.413978
7b3573ace3d1c2705447c13d56f1be46ceaa32b4
1,063
py
Python
tests/test_calculator_ui.py
ellinaMart/test_trade_calculator
d7523ba3ce00500ace9d2f9493ba7d5e483cf4f3
[ "Apache-2.0" ]
null
null
null
tests/test_calculator_ui.py
ellinaMart/test_trade_calculator
d7523ba3ce00500ace9d2f9493ba7d5e483cf4f3
[ "Apache-2.0" ]
null
null
null
tests/test_calculator_ui.py
ellinaMart/test_trade_calculator
d7523ba3ce00500ace9d2f9493ba7d5e483cf4f3
[ "Apache-2.0" ]
null
null
null
import pytest import allure from data.parameters import data_parameters @allure.feature('UI TEST:open page') def test_open_page(app): with allure.step('Открываем страницу калькулятора'): app.open_calculator_page() assert '/calculator' in app.get_path_current_url() @allure.feature('UI TEST: Check ...
39.37037
91
0.718721
0
0
0
0
1,095
0.9343
0
0
375
0.319966
7b3a31a3ced9da114ff604217cc00699fa473e8b
6,383
py
Python
indy-diem/writeTransactionSimple.py
kiva/indy-diem
c015a44b15886a2a039c3b7768cf03a6295c134e
[ "Apache-2.0" ]
null
null
null
indy-diem/writeTransactionSimple.py
kiva/indy-diem
c015a44b15886a2a039c3b7768cf03a6295c134e
[ "Apache-2.0" ]
15
2021-08-17T15:31:07.000Z
2021-09-20T15:11:59.000Z
indy-diem/writeTransactionSimple.py
kiva/indy-diem
c015a44b15886a2a039c3b7768cf03a6295c134e
[ "Apache-2.0" ]
null
null
null
import asyncio import json import time from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PrivateKey from diem import AuthKey, testnet, utils from indy import anoncreds, wallet from indy import pool from get_schema import get_schema from diem_txn import create_diem_script, create_diem_raw_txn, sign_a...
34.690217
116
0.734608
0
0
0
0
0
0
1,616
0.253172
2,043
0.320069
7b3a56677628b2dcca3ff0494700cfb7a0aa4b48
2,173
py
Python
Packs/GoogleCloudFunctions/Integrations/GoogleCloudFunctions/GoogleCloudFunctions_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/GoogleCloudFunctions/Integrations/GoogleCloudFunctions/GoogleCloudFunctions_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/GoogleCloudFunctions/Integrations/GoogleCloudFunctions/GoogleCloudFunctions_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import pytest from GoogleCloudFunctions import resolve_default_project_id, functions_list_command @pytest.mark.parametrize('project, credentials_json, expected_output,expected_exception', [ ("some-project-id", {"credentials_json": {"type": "service_account", "project_id": "some-project-id"}}, "some-project-i...
36.830508
120
0.698113
347
0.159687
0
0
966
0.444547
0
0
751
0.345605
7b3b43938d892ce413a93aef4a822d3347566181
11,938
py
Python
implementation.py
Alwaysproblem/Sentimental-Analysis
9af282842fe32e4581065a04dd47119dbabd4b01
[ "Apache-2.0" ]
2
2019-11-06T22:57:42.000Z
2019-11-24T04:00:21.000Z
implementation.py
Alwaysproblem/Sentimental-Analysis
9af282842fe32e4581065a04dd47119dbabd4b01
[ "Apache-2.0" ]
null
null
null
implementation.py
Alwaysproblem/Sentimental-Analysis
9af282842fe32e4581065a04dd47119dbabd4b01
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' BATCH_SIZE = 128 MAX_WORDS_IN_REVIEW = 200 # Maximum length of a review to consider EMBEDDING_SIZE = 50 # Dimensions for each word vector stop_words = set({'ourselves', 'hers', 'between', 'yourself', 'again', 'there', 'a...
40.467797
107
0.59608
0
0
0
0
0
0
0
0
7,259
0.608058
7b3cc4dc345dd62020834a44def43b7e9619fb29
3,492
py
Python
cssqc/parser.py
matematik7/CSSQC
f8048435e60f688fef70d1608651d31e1288b4cf
[ "MIT" ]
null
null
null
cssqc/parser.py
matematik7/CSSQC
f8048435e60f688fef70d1608651d31e1288b4cf
[ "MIT" ]
null
null
null
cssqc/parser.py
matematik7/CSSQC
f8048435e60f688fef70d1608651d31e1288b4cf
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ---------------------------------------------------------------- # cssqc/__init__.py # # css quality control # ---------------------------------------------------------------- # copyright (c) 2014 - Domen Ipavec # Distributed under The MIT License, see LICENSE # -------...
23.28
69
0.489977
2,416
0.691867
0
0
84
0.024055
0
0
804
0.230241
7b3e25ca3f02a2235c0f0ca58913370560e98207
3,351
py
Python
parser/team23/instruccion/update_st.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
35
2020-12-07T03:11:43.000Z
2021-04-15T17:38:16.000Z
parser/team23/instruccion/update_st.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
47
2020-12-09T01:29:09.000Z
2021-01-13T05:37:50.000Z
parser/team23/instruccion/update_st.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
556
2020-12-07T03:13:31.000Z
2021-06-17T17:41:10.000Z
from abstract.instruccion import * from tools.console_text import * from tools.tabla_tipos import * from storage import jsonMode as funciones from error.errores import * from tools.tabla_simbolos import * class update_st (instruccion): def __init__(self, id1, id2, dato, where, line, column, num_nodo): su...
41.37037
156
0.5661
3,153
0.938672
0
0
0
0
0
0
700
0.208395
7b3e6682a8f4db3e33235458e638c05f2e380911
1,791
py
Python
ncfm/generate_proposals.py
kirk86/kaggle
8178ed790bc1f8fcd2cd7a01560e5f25f01c07cc
[ "MIT" ]
null
null
null
ncfm/generate_proposals.py
kirk86/kaggle
8178ed790bc1f8fcd2cd7a01560e5f25f01c07cc
[ "MIT" ]
null
null
null
ncfm/generate_proposals.py
kirk86/kaggle
8178ed790bc1f8fcd2cd7a01560e5f25f01c07cc
[ "MIT" ]
null
null
null
# import sys # sys.path.appenval.'/usr/local/lib/python2.7/site-packages') import dlib import scipy import skimage as io import numpy as np def dlib_selective_search(orig_img, img_scale, min_size, dedub_boxes=1./16): rects = [] dlib.find_candidate_object_locations(orig_img, rects, min_size=min_size) # pro...
33.166667
76
0.634841
0
0
0
0
0
0
0
0
577
0.322166
7b405010c115340a11d63243786f96de4c6d44a6
3,953
py
Python
comp_prov.py
RickyMexx/ML_CompilerProvenance
ce19276aa93b01fa6cdd275e5c0514cb0e9a9f45
[ "Apache-2.0" ]
null
null
null
comp_prov.py
RickyMexx/ML_CompilerProvenance
ce19276aa93b01fa6cdd275e5c0514cb0e9a9f45
[ "Apache-2.0" ]
null
null
null
comp_prov.py
RickyMexx/ML_CompilerProvenance
ce19276aa93b01fa6cdd275e5c0514cb0e9a9f45
[ "Apache-2.0" ]
null
null
null
# each JSON has: {instructions}, {opt}, {compiler} # MODEL SETTINGS: please set these before running the main # mode = "opt" # Labels of the model: [opt] or [compiler] samples = 3000 # Number of the blind set samples fav_instrs_in = ["mov"] # Set of instructions of which DEST register should be extracted [IN] fav_i...
30.407692
101
0.625348
0
0
0
0
0
0
0
0
1,132
0.286365
7b42bb511e27ed76adb521890d7b12af28eb727f
206
py
Python
project/striide/urls.py
Striide/DjangoRestApi
db4bec3bf5ac7b60021a5e28d67a054d80ed307f
[ "MIT" ]
null
null
null
project/striide/urls.py
Striide/DjangoRestApi
db4bec3bf5ac7b60021a5e28d67a054d80ed307f
[ "MIT" ]
null
null
null
project/striide/urls.py
Striide/DjangoRestApi
db4bec3bf5ac7b60021a5e28d67a054d80ed307f
[ "MIT" ]
null
null
null
from django.contrib import admin from django.conf.urls import url, include # Wire up our API using automatic URL routing. # Additionally, we include login URLs for the browsable API. urlpatterns = [ ]
25.75
60
0.762136
0
0
0
0
0
0
0
0
106
0.514563
7b42bde77e1661a4f0f1591879e395dd1510705b
2,266
py
Python
task.py
init-helpful/jsontasks
2cfc0b9b7e5f0ece9d753037f2d6dacf2c165f6e
[ "MIT" ]
null
null
null
task.py
init-helpful/jsontasks
2cfc0b9b7e5f0ece9d753037f2d6dacf2c165f6e
[ "MIT" ]
null
null
null
task.py
init-helpful/jsontasks
2cfc0b9b7e5f0ece9d753037f2d6dacf2c165f6e
[ "MIT" ]
null
null
null
from jsonlink import JsonLink from globals import read_json_file class Task(JsonLink): def __init__( self, name="", task_description=None, step_groupings=[], global_values={}, global_hooks={}, steps=[], python_dependencies=[], keywords_file_p...
26.97619
68
0.581642
2,107
0.929832
0
0
0
0
0
0
916
0.404237
7b4355b686014d85c2cc35d093973bc84723e068
5,252
py
Python
sight_api/__init__.py
siftrics/sight-python
dd162b54efa856cd15955791bbdb563b3ca9cd35
[ "Apache-2.0" ]
1
2020-02-23T19:08:39.000Z
2020-02-23T19:08:39.000Z
sight_api/__init__.py
siftrics/sight-python
dd162b54efa856cd15955791bbdb563b3ca9cd35
[ "Apache-2.0" ]
null
null
null
sight_api/__init__.py
siftrics/sight-python
dd162b54efa856cd15955791bbdb563b3ca9cd35
[ "Apache-2.0" ]
null
null
null
# Copyright © 2020 Siftrics # # 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, merge, publish, distribute, ...
40.091603
143
0.581493
3,886
0.739768
3,362
0.640015
0
0
0
0
1,908
0.363221
7b443c8f7fa19307b9a833a456473a9a811c2e29
190
py
Python
back-end/erasmail/emails/admin.py
SamirM-BE/ErasMail
88602a039ae731ca8566c96c7c4d2635f82a07a5
[ "Apache-2.0" ]
7
2021-02-06T21:06:23.000Z
2022-01-31T09:33:26.000Z
back-end/erasmail/emails/admin.py
SamirM-BE/ErasMail
88602a039ae731ca8566c96c7c4d2635f82a07a5
[ "Apache-2.0" ]
null
null
null
back-end/erasmail/emails/admin.py
SamirM-BE/ErasMail
88602a039ae731ca8566c96c7c4d2635f82a07a5
[ "Apache-2.0" ]
5
2021-05-07T15:35:25.000Z
2022-03-21T09:11:24.000Z
from django.contrib import admin from .models import Attachment, EmailHeaders, Newsletter admin.site.register(EmailHeaders) admin.site.register(Attachment) admin.site.register(Newsletter)
23.75
56
0.836842
0
0
0
0
0
0
0
0
0
0
7b47c5080977b6ed437b3d285f1ec4ab43d82e70
145
py
Python
acronym.py
MathewsPeter/PythonProjects
4ea83a317452f8abd2c9c1273753037de263f88f
[ "MIT" ]
null
null
null
acronym.py
MathewsPeter/PythonProjects
4ea83a317452f8abd2c9c1273753037de263f88f
[ "MIT" ]
null
null
null
acronym.py
MathewsPeter/PythonProjects
4ea83a317452f8abd2c9c1273753037de263f88f
[ "MIT" ]
null
null
null
fullform = input("Enter a full form: ") words = fullform.split(" ") acro = "" for word in words: acro+=word[0] print("Acronym is ", acro)
24.166667
39
0.62069
0
0
0
0
0
0
0
0
39
0.268966
7b480f2ef9a1cf0b8da2461f923c649d122517ca
514
py
Python
Usuario.py
Josh0105/SESION9
90421c3573e66c5d4bdf93c52c67658b9de03977
[ "Apache-2.0" ]
1
2020-10-20T04:02:49.000Z
2020-10-20T04:02:49.000Z
Usuario.py
Josh0105/Sesion9
90421c3573e66c5d4bdf93c52c67658b9de03977
[ "Apache-2.0" ]
null
null
null
Usuario.py
Josh0105/Sesion9
90421c3573e66c5d4bdf93c52c67658b9de03977
[ "Apache-2.0" ]
null
null
null
class Usuario: def __init__(self, id, usuario, passw): self.id = id self.usuario = usuario self.passw = passw def autenticar(self, usuario, passw): if self.usuario == usuario and self.passw == passw: print("La autenticación fue correcta") return True...
19.769231
59
0.533074
515
0.998062
0
0
0
0
0
0
78
0.151163
7b483bc7a8258807d0838c4087de8c2c75b55797
802
py
Python
10_54_sobel_filter.py
Larilok/image_processing
331e50ecd127ba61d6a59a51b7e90f0fd31c7a29
[ "MIT" ]
null
null
null
10_54_sobel_filter.py
Larilok/image_processing
331e50ecd127ba61d6a59a51b7e90f0fd31c7a29
[ "MIT" ]
null
null
null
10_54_sobel_filter.py
Larilok/image_processing
331e50ecd127ba61d6a59a51b7e90f0fd31c7a29
[ "MIT" ]
null
null
null
from skimage import img_as_int import cv2 import numpy as np from pylab import * import scipy.ndimage.filters as filters #img = cv2.imread('images/profile.jpg', 0) img = cv2.imread('images/moon.jpg',0) sobel_operator_v = np.array([ [-1, 0, 1], [-2, 0 ,2], [-1, 0, 1] ]) sobelX = cv2.Sobel(img, -1...
22.277778
79
0.649626
0
0
0
0
0
0
0
0
142
0.177057
7b4b9aebba4c243de4aa31a177c2640cf3ee6e9d
199
py
Python
src/gluonts/model/prophet/__init__.py
rlucas7/gluon-ts
f8572ab4daeb01a05aa88a252bb67ec9062ee150
[ "Apache-2.0" ]
null
null
null
src/gluonts/model/prophet/__init__.py
rlucas7/gluon-ts
f8572ab4daeb01a05aa88a252bb67ec9062ee150
[ "Apache-2.0" ]
null
null
null
src/gluonts/model/prophet/__init__.py
rlucas7/gluon-ts
f8572ab4daeb01a05aa88a252bb67ec9062ee150
[ "Apache-2.0" ]
null
null
null
# Relative imports from ._estimator import ProphetEstimator from ._predictor import ProphetPredictor, PROPHET_IS_INSTALLED __all__ = ['ProphetEstimator', 'ProphetPredictor', 'PROPHET_IS_INSTALLED']
33.166667
74
0.834171
0
0
0
0
0
0
0
0
76
0.38191
7b4bc6101cb34fe0e28e691b6f51e4ac042ddfb6
4,995
py
Python
DEPENDENCIES/seash/modules/factoids/__init__.py
kevinkenzhao/Repy2
a7afb4c8ba263c8a74775a6281a50d94880a8d34
[ "MIT" ]
null
null
null
DEPENDENCIES/seash/modules/factoids/__init__.py
kevinkenzhao/Repy2
a7afb4c8ba263c8a74775a6281a50d94880a8d34
[ "MIT" ]
null
null
null
DEPENDENCIES/seash/modules/factoids/__init__.py
kevinkenzhao/Repy2
a7afb4c8ba263c8a74775a6281a50d94880a8d34
[ "MIT" ]
null
null
null
""" <Filename> factoids/__init__.py <Purpose> Used to print saesh factoids. It implements the following command: show factoids [number of factoids]/all """ import seash_exceptions import random import os # List which will contain all factoids after fatching from a file. factoids = [] def initiali...
26.289474
116
0.680881
0
0
0
0
0
0
0
0
3,243
0.649249
7b4d5102e41f930744e5fe944b292c3c7d93fe14
2,985
py
Python
tests/test_detailed.py
TarasRudnyk/python-telegram-bot-calendar
6bca67e1e4ac1e9cc187d2370ba02a6df9ed60a4
[ "MIT" ]
44
2020-08-05T20:19:45.000Z
2022-03-10T22:29:19.000Z
tests/test_detailed.py
TarasRudnyk/python-telegram-bot-calendar
6bca67e1e4ac1e9cc187d2370ba02a6df9ed60a4
[ "MIT" ]
6
2021-01-08T16:07:24.000Z
2022-02-15T18:39:51.000Z
tests/test_detailed.py
TarasRudnyk/python-telegram-bot-calendar
6bca67e1e4ac1e9cc187d2370ba02a6df9ed60a4
[ "MIT" ]
20
2020-09-08T16:19:22.000Z
2022-03-14T15:39:56.000Z
import json import os import sys from datetime import date import pytest from dateutil.relativedelta import relativedelta from telegram_bot_calendar import DAY, MONTH, YEAR from telegram_bot_calendar.detailed import DetailedTelegramCalendar, NOTHING myPath = os.path.dirname(os.path.abspath(__file__)) sys.path.insert...
45.923077
121
0.60536
0
0
0
0
2,582
0.864123
0
0
796
0.266399
7b4da977c274712fe30edac1bd68cf28ac41017f
4,964
py
Python
django_bootstrap_generator/management/commands/generate_bootstrap.py
rapilabs/django-bootstrap-generator
51bd0ea3eae69c04b856c1df34c5be1a4abc0385
[ "MIT" ]
1
2015-03-10T03:41:39.000Z
2015-03-10T03:41:39.000Z
django_bootstrap_generator/management/commands/generate_bootstrap.py
rapilabs/django-bootstrap-generator
51bd0ea3eae69c04b856c1df34c5be1a4abc0385
[ "MIT" ]
null
null
null
django_bootstrap_generator/management/commands/generate_bootstrap.py
rapilabs/django-bootstrap-generator
51bd0ea3eae69c04b856c1df34c5be1a4abc0385
[ "MIT" ]
null
null
null
import collections import types from optparse import make_option from django.db.models.loading import get_model from django.core.management.base import BaseCommand, CommandError from django.db.models.fields import EmailField, URLField, BooleanField, TextField def convert(name): return name.replace('_', ' ').capita...
29.724551
124
0.567889
924
0.18614
0
0
0
0
0
0
1,622
0.326753
7b50d8a97e5f0d3cb0ea0a3693bd90b984964582
291
py
Python
logical/__init__.py
reity/logical
476193949311824cd63bd9e279a223bcfdceb2e2
[ "MIT" ]
null
null
null
logical/__init__.py
reity/logical
476193949311824cd63bd9e279a223bcfdceb2e2
[ "MIT" ]
null
null
null
logical/__init__.py
reity/logical
476193949311824cd63bd9e279a223bcfdceb2e2
[ "MIT" ]
null
null
null
"""Gives users direct access to class and functions.""" from logical.logical import\ logical,\ nullary, unary, binary, every,\ nf_, nt_,\ uf_, id_, not_, ut_,\ bf_,\ and_, nimp_, fst_, nif_, snd_, xor_, or_,\ nor_, xnor_, nsnd_, if_, nfst_, imp_, nand_,\ bt_
26.454545
55
0.61512
0
0
0
0
0
0
0
0
55
0.189003
7b51df476a25eb10705b2313609ccd9bca295e46
1,667
py
Python
lab_15/server/main.py
MrLuckUA/python_course
50a87bc54550aedaac3afcce5b8b5c132fb6ec98
[ "MIT" ]
null
null
null
lab_15/server/main.py
MrLuckUA/python_course
50a87bc54550aedaac3afcce5b8b5c132fb6ec98
[ "MIT" ]
null
null
null
lab_15/server/main.py
MrLuckUA/python_course
50a87bc54550aedaac3afcce5b8b5c132fb6ec98
[ "MIT" ]
null
null
null
import queue import select import socket server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server.setblocking(False) server.bind(('localhost', 9999)) server.listen(5) inputs = [server] outputs = [] message_queues = {} while inputs: readable, writable, exceptional = select.select( inputs, outputs,...
26.887097
69
0.574685
0
0
0
0
0
0
0
0
387
0.232154
7b51e80ec38fe59135b07b0729fc19b2c432fc68
1,118
py
Python
febraban/cnab240/itau/sispag/payment/transfer.py
netosjb/febraban-python
a546fa3353d2db1546df60f6f8cc26c7c862c743
[ "MIT" ]
7
2019-07-16T11:31:50.000Z
2019-07-29T19:49:50.000Z
febraban/cnab240/itau/sispag/payment/transfer.py
netosjb/febraban-python
a546fa3353d2db1546df60f6f8cc26c7c862c743
[ "MIT" ]
4
2020-05-07T15:34:21.000Z
2020-11-12T21:09:34.000Z
febraban/cnab240/itau/sispag/payment/transfer.py
netosjb/febraban-python
a546fa3353d2db1546df60f6f8cc26c7c862c743
[ "MIT" ]
6
2019-12-04T00:40:10.000Z
2020-11-05T18:39:40.000Z
from .segmentA import SegmentA class Transfer: def __init__(self): self.segmentA = SegmentA() def toString(self): return self.segmentA.content def amountInCents(self): return self.segmentA.amountInCents() def setSender(self, user): self.segmentA.setSenderBank(user.b...
24.844444
91
0.658318
1,084
0.969589
0
0
0
0
0
0
184
0.16458
7b53b8e74efe57ed1e451add7d928562719e4e93
4,689
py
Python
BroLog.py
jcwoods/BroLog
b95c91178d4038d1e363cb8c8ef9ecc64a23193f
[ "MIT" ]
null
null
null
BroLog.py
jcwoods/BroLog
b95c91178d4038d1e363cb8c8ef9ecc64a23193f
[ "MIT" ]
null
null
null
BroLog.py
jcwoods/BroLog
b95c91178d4038d1e363cb8c8ef9ecc64a23193f
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import codecs import ipaddress as ip import pandas as pd from datetime import datetime as dt class BroLogFile: def doSeparator(self, fields): sep = fields[1] if len(sep) == 1: # a literal? self.separator = sep elif sep[:2] == '\\x': ...
28.591463
97
0.527831
4,241
0.904457
0
0
0
0
0
0
1,379
0.294093
7b53fdee739e7f6188764d53517bc20b22165406
8,288
py
Python
test_pdf.py
ioggstream/json-forms-pdf
9f18cf239ae892ebb0018bfd4a8f792af35ccfac
[ "BSD-3-Clause" ]
2
2020-06-18T13:31:32.000Z
2022-02-21T08:30:37.000Z
test_pdf.py
ioggstream/json-forms-pdf
9f18cf239ae892ebb0018bfd4a8f792af35ccfac
[ "BSD-3-Clause" ]
2
2020-05-25T17:31:52.000Z
2020-06-23T17:32:03.000Z
test_pdf.py
ioggstream/json-forms-pdf
9f18cf239ae892ebb0018bfd4a8f792af35ccfac
[ "BSD-3-Clause" ]
null
null
null
# simple_checkboxes.py import logging from os.path import basename from pathlib import Path import jsonschema import pytest # from reportlab.pdfbase import pdfform import yaml from reportlab.pdfgen import canvas uischema = yaml.safe_load(Path("jsonforms-react-seed/src/uischema.json").read_text()) form_schema = yaml....
30.358974
86
0.527389
5,770
0.696187
0
0
503
0.06069
0
0
1,290
0.155647
7b549c8cf31113881352739cc51b8f9b8d3428b5
701
py
Python
pos_map.py
olzama/neural-supertagging
340a9b3eaf6427e5ec475cd03bc6f4b3d4891ba4
[ "MIT" ]
null
null
null
pos_map.py
olzama/neural-supertagging
340a9b3eaf6427e5ec475cd03bc6f4b3d4891ba4
[ "MIT" ]
null
null
null
pos_map.py
olzama/neural-supertagging
340a9b3eaf6427e5ec475cd03bc6f4b3d4891ba4
[ "MIT" ]
null
null
null
''' Assuming the following tag-separated format: VBP+RB VBP VBZ+RB VBZ IN+DT IN (etc.) ''' class Pos_mapper: def __init__(self, filepath): with open(filepath,'r') as f: lines = f.readlines() self.pos_map = {} self.unknowns = [] for ln in lines: if ln: ...
23.366667
52
0.513552
607
0.865906
0
0
0
0
0
0
154
0.219686
7b580428c6c3fc7e1f2b5ec4c50a922c0d642dcf
4,051
py
Python
src/nti/externalization/integer_strings.py
NextThought/nti.externalization
5a445b85fb809a7c27bf8dbe45c29032ece187d8
[ "Apache-2.0" ]
null
null
null
src/nti/externalization/integer_strings.py
NextThought/nti.externalization
5a445b85fb809a7c27bf8dbe45c29032ece187d8
[ "Apache-2.0" ]
78
2017-09-15T14:59:58.000Z
2021-10-05T17:40:06.000Z
src/nti/externalization/integer_strings.py
NextThought/nti.externalization
5a445b85fb809a7c27bf8dbe45c29032ece187d8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Functions to represent potentially large integers as the shortest possible human-readable and writable strings. The motivation is to be able to take int ids as produced by an :class:`zc.intid.IIntId` utility and produce something that can be written down and typed in by...
30.923664
85
0.709701
0
0
0
0
0
0
0
0
2,752
0.679338
7b5a89b5d003d45628ff5ec0925287bf4802eb5a
2,882
py
Python
chokitto.py
WKSu/chokitto
9eb0c7e69a62aede76cd0c8fd43dd4879bf03ff8
[ "MIT" ]
null
null
null
chokitto.py
WKSu/chokitto
9eb0c7e69a62aede76cd0c8fd43dd4879bf03ff8
[ "MIT" ]
null
null
null
chokitto.py
WKSu/chokitto
9eb0c7e69a62aede76cd0c8fd43dd4879bf03ff8
[ "MIT" ]
1
2021-01-16T18:51:57.000Z
2021-01-16T18:51:57.000Z
#!/usr/bin/python3 import argparse, os from collections import defaultdict from lib.data import * from lib.exporters import * from lib.filters import * from lib.parsers import * def parse_arguments(): arg_parser = argparse.ArgumentParser(description='chokitto') arg_parser.add_argument('input', ...
37.428571
161
0.683553
0
0
0
0
0
0
0
0
1,044
0.362248
7b5ac6eff9c37a22900d99e140cd578daaa0f186
736
py
Python
torrent.py
olazona/colabtorrent
bbddec0fc12eab672a711769f7d071ada8235c86
[ "Apache-2.0" ]
3
2020-07-30T09:29:00.000Z
2022-02-05T05:19:30.000Z
torrent.py
olazona/colabtorrent
bbddec0fc12eab672a711769f7d071ada8235c86
[ "Apache-2.0" ]
null
null
null
torrent.py
olazona/colabtorrent
bbddec0fc12eab672a711769f7d071ada8235c86
[ "Apache-2.0" ]
4
2020-03-31T15:42:38.000Z
2021-09-27T07:30:07.000Z
# -*- coding: utf-8 -*- """Torrent.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1Uo1_KHGxOe_Dh4-DjQyEb0wROp-tMv0w """ TorrName = 'YOUR TORRENT NAME' FolderPath = f'/content/drive/My Drive/{TorrName}' TorrPath = f'{TorrName}.torrent' def init...
25.37931
86
0.71875
0
0
0
0
0
0
0
0
470
0.638587
7b5b098de65214be758959ec7c9a6aae3055a94c
3,197
py
Python
src/py21cmmc/_21cmfast/_utils.py
BradGreig/Hybrid21CMMC
984aa88ee4543db24095a3ba8529e1f4d0b1048d
[ "MIT" ]
null
null
null
src/py21cmmc/_21cmfast/_utils.py
BradGreig/Hybrid21CMMC
984aa88ee4543db24095a3ba8529e1f4d0b1048d
[ "MIT" ]
null
null
null
src/py21cmmc/_21cmfast/_utils.py
BradGreig/Hybrid21CMMC
984aa88ee4543db24095a3ba8529e1f4d0b1048d
[ "MIT" ]
null
null
null
""" Utilities that help with wrapping various C structures. """ class StructWithDefaults: """ A class which provides a convenient interface to create a C structure with defaults specified. It is provided for the purpose of *creating* C structures in Python to be passed to C functions, where sensible ...
32.622449
119
0.597435
3,131
0.979356
0
0
246
0.076947
0
0
1,747
0.54645
7b5b0c3580d4b9ad4e0f4e13f5794c9e38d7df6a
160
py
Python
components/charts.py
tufts-ml/c19-dashboard
be88f91ca74dd154566bd7b36fe482565331346b
[ "MIT" ]
null
null
null
components/charts.py
tufts-ml/c19-dashboard
be88f91ca74dd154566bd7b36fe482565331346b
[ "MIT" ]
5
2020-04-10T20:36:18.000Z
2020-04-28T19:42:15.000Z
components/charts.py
tufts-ml/c19-dashboard
be88f91ca74dd154566bd7b36fe482565331346b
[ "MIT" ]
null
null
null
import dash_html_components as html def chart_panel() -> html.Div: return html.Div(className='row', children=[html.Div(id='output', className='column')])
26.666667
90
0.725
0
0
0
0
0
0
0
0
21
0.13125
7b5bf002a4841de751ef7a81520f03f1fc8e3906
2,144
py
Python
lib/bes/fs/dir_util.py
reconstruir/bes
82ff54b2dadcaef6849d7de424787f1dedace85c
[ "Apache-2.0" ]
null
null
null
lib/bes/fs/dir_util.py
reconstruir/bes
82ff54b2dadcaef6849d7de424787f1dedace85c
[ "Apache-2.0" ]
null
null
null
lib/bes/fs/dir_util.py
reconstruir/bes
82ff54b2dadcaef6849d7de424787f1dedace85c
[ "Apache-2.0" ]
null
null
null
#-*- coding:utf-8; mode:python; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*- import os, os.path as path, shutil import datetime from .file_match import file_match from .file_util import file_util class dir_util(object): @classmethod def is_empty(clazz, d): return clazz.list(d) == [] @cl...
30.197183
90
0.588619
1,930
0.900187
0
0
1,875
0.874534
0
0
265
0.123601
7b5cbfeebbb6c1b6c874a7c85487913e09de67c0
24,540
py
Python
exploit.py
yassineaboukir/CVE-2019-0708
4f4ff5a9eef5ed4cda92376b25667fd5272d9753
[ "Apache-2.0" ]
null
null
null
exploit.py
yassineaboukir/CVE-2019-0708
4f4ff5a9eef5ed4cda92376b25667fd5272d9753
[ "Apache-2.0" ]
null
null
null
exploit.py
yassineaboukir/CVE-2019-0708
4f4ff5a9eef5ed4cda92376b25667fd5272d9753
[ "Apache-2.0" ]
null
null
null
import os import argparse from struct import pack from twisted.internet import reactor from twisted.application.reactors import Reactor from twisted.internet.endpoints import HostnameEndpoint from twisted.internet.protocol import ClientFactory from pyrdp.core.ssl import ClientTLSContext from pyrdp.mitm.layerset impor...
44.699454
3,207
0.724165
21,299
0.86793
0
0
0
0
0
0
6,024
0.245477
7b5cf1180972e7b3ffbdfafed33eb97b3d3772b4
8,241
py
Python
deep_light/random_selection_threeInputs.py
maqorbani/neural-daylighting
753c86dfea32483a7afbf213a7b7684e070d3672
[ "Apache-2.0" ]
4
2020-08-24T03:12:22.000Z
2020-08-27T17:13:56.000Z
deep_light/random_selection_threeInputs.py
maqorbani/neural-daylighting
753c86dfea32483a7afbf213a7b7684e070d3672
[ "Apache-2.0" ]
4
2020-08-24T07:30:51.000Z
2021-02-20T10:18:47.000Z
deep_light/random_selection_threeInputs.py
maqorbani/neural-daylighting
753c86dfea32483a7afbf213a7b7684e070d3672
[ "Apache-2.0" ]
3
2020-04-08T17:37:40.000Z
2020-08-24T07:32:52.000Z
# # # Copyright (c) 2020. Yue Liu # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
31.818533
138
0.580876
0
0
0
0
0
0
0
0
2,340
0.283946
7b5e2470f1d47ae2237ac46314f2765d06fcd634
1,993
py
Python
graphs/ops.py
andreipoe/sve-analysis-tools
696d9a82af379564b05ce0207a6f872211a819eb
[ "MIT" ]
2
2020-12-23T02:22:20.000Z
2020-12-31T17:30:56.000Z
graphs/ops.py
andreipoe/sve-analysis-tools
696d9a82af379564b05ce0207a6f872211a819eb
[ "MIT" ]
null
null
null
graphs/ops.py
andreipoe/sve-analysis-tools
696d9a82af379564b05ce0207a6f872211a819eb
[ "MIT" ]
3
2020-06-03T17:05:45.000Z
2021-12-26T13:45:49.000Z
#!/usr/bin/env python3 import argparse import sys from concurrent.futures import ThreadPoolExecutor import pandas as pd import altair as alt def parse_args(): parser = argparse.ArgumentParser() parser.add_argument('-a', '--application', help='Plot only the given application') parser.add_argument('data', hel...
30.661538
114
0.610637
0
0
0
0
0
0
0
0
498
0.249875
7b600881aefecd926df3678ce829274a46e661ba
18
py
Python
schicexplorer/_version.py
joachimwolff/scHiCExplorer
8aebb444f3968d398c260690c89c9cd0e3186f0e
[ "MIT" ]
10
2019-12-09T04:11:18.000Z
2021-03-24T15:29:06.000Z
common/walt/common/version.py
drakkar-lig/walt-python-packages
b778992e241d54b684f54715d83c4aff98a01db7
[ "BSD-3-Clause" ]
73
2016-04-29T13:17:26.000Z
2022-03-01T15:06:48.000Z
common/walt/common/version.py
drakkar-lig/walt-python-packages
b778992e241d54b684f54715d83c4aff98a01db7
[ "BSD-3-Clause" ]
3
2019-03-18T14:27:56.000Z
2021-06-03T12:07:02.000Z
__version__ = '7'
9
17
0.666667
0
0
0
0
0
0
0
0
3
0.166667
7b60c81cc28198aaec6b287552d4028bec373d4b
2,918
py
Python
bluebottle/organizations/views.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
10
2015-05-28T18:26:40.000Z
2021-09-06T10:07:03.000Z
bluebottle/organizations/views.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
762
2015-01-15T10:00:59.000Z
2022-03-31T15:35:14.000Z
bluebottle/organizations/views.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
9
2015-02-20T13:19:30.000Z
2022-03-08T14:09:17.000Z
from rest_framework import generics from rest_framework import filters from bluebottle.utils.permissions import IsAuthenticated, IsOwnerOrReadOnly, IsOwner from rest_framework_json_api.pagination import JsonApiPageNumberPagination from rest_framework_json_api.parsers import JSONParser from rest_framework_json_api.vie...
30.715789
84
0.778958
2,203
0.754969
0
0
0
0
0
0
42
0.014393
7b6172efe890112ba2bd4d2808ee33bca9779adb
1,646
py
Python
gen3_etl/utils/defaults.py
ohsu-comp-bio/gen3-etl
9114f75cc8c8085111152ce0ef686a8a12f67f8e
[ "MIT" ]
1
2020-01-22T17:05:58.000Z
2020-01-22T17:05:58.000Z
gen3_etl/utils/defaults.py
ohsu-comp-bio/gen3-etl
9114f75cc8c8085111152ce0ef686a8a12f67f8e
[ "MIT" ]
2
2019-02-08T23:24:58.000Z
2021-05-13T22:42:28.000Z
gen3_etl/utils/defaults.py
ohsu-comp-bio/gen3_etl
9114f75cc8c8085111152ce0ef686a8a12f67f8e
[ "MIT" ]
null
null
null
from gen3_etl.utils.cli import default_argument_parser from gen3_etl.utils.ioutils import JSONEmitter import os import re DEFAULT_OUTPUT_DIR = 'output/default' DEFAULT_EXPERIMENT_CODE = 'default' DEFAULT_PROJECT_ID = 'default-default' def emitter(type=None, output_dir=DEFAULT_OUTPUT_DIR, **kwargs): """Creates a ...
35.782609
99
0.643378
0
0
0
0
0
0
0
0
413
0.250911
7b6408ae7e94f31c2cccd6d4bff3b3ad42baca0f
6,266
py
Python
csrank/dataset_reader/discretechoice/tag_genome_discrete_choice_dataset_reader.py
kiudee/cs-ranking
47cf648fa286c37b9214bbad1926004d4d7d9796
[ "Apache-2.0" ]
65
2018-02-12T13:18:13.000Z
2021-12-18T12:01:51.000Z
csrank/dataset_reader/discretechoice/tag_genome_discrete_choice_dataset_reader.py
kiudee/cs-ranking
47cf648fa286c37b9214bbad1926004d4d7d9796
[ "Apache-2.0" ]
189
2018-02-13T10:11:55.000Z
2022-03-12T16:36:23.000Z
csrank/dataset_reader/discretechoice/tag_genome_discrete_choice_dataset_reader.py
kiudee/cs-ranking
47cf648fa286c37b9214bbad1926004d4d7d9796
[ "Apache-2.0" ]
19
2018-03-08T15:39:31.000Z
2020-11-18T12:46:36.000Z
import logging import numpy as np from sklearn.utils import check_random_state from csrank.constants import DISCRETE_CHOICE from csrank.dataset_reader.tag_genome_reader import critique_dist from csrank.dataset_reader.util import get_key_for_indices from ..tag_genome_reader import TagGenomeDatasetReader from ...util i...
42.62585
111
0.57804
5,873
0.937281
0
0
0
0
0
0
527
0.084105
7b6453cb804d74096b8a1f23797b8a9e957ae61c
12,614
py
Python
tests/conversion/converters/inside_worker_test/declarative_schema/osm_models.py
tyrasd/osmaxx
da4454083d17b2ef8b0623cad62e39992b6bd52a
[ "MIT" ]
27
2015-03-30T14:17:26.000Z
2022-02-19T17:30:44.000Z
tests/conversion/converters/inside_worker_test/declarative_schema/osm_models.py
tyrasd/osmaxx
da4454083d17b2ef8b0623cad62e39992b6bd52a
[ "MIT" ]
483
2015-03-09T16:58:03.000Z
2022-03-14T09:29:06.000Z
tests/conversion/converters/inside_worker_test/declarative_schema/osm_models.py
tyrasd/osmaxx
da4454083d17b2ef8b0623cad62e39992b6bd52a
[ "MIT" ]
6
2015-04-07T07:38:30.000Z
2020-04-01T12:45:53.000Z
# coding: utf-8 from geoalchemy2 import Geometry from sqlalchemy import BigInteger, Column, DateTime, Float, Integer, SmallInteger, Table, Text, TEXT, BIGINT from sqlalchemy.dialects.postgresql import HSTORE from sqlalchemy.dialects.postgresql import ARRAY from sqlalchemy.ext.declarative import declarative_base Base ...
29.961995
108
0.615507
694
0.055018
0
0
0
0
0
0
3,860
0.306009
7b64b4f449f372c3bd3efce8e5b293075f2e5515
321
py
Python
twinfield/tests/__init__.py
yellowstacks/twinfield
2ae161a6cf6d7ff1f2c80a034b775f3d4928313d
[ "Apache-2.0" ]
4
2020-12-20T23:02:33.000Z
2022-01-13T19:40:13.000Z
twinfield/tests/__init__.py
yellowstacks/twinfield
2ae161a6cf6d7ff1f2c80a034b775f3d4928313d
[ "Apache-2.0" ]
9
2020-12-18T07:27:07.000Z
2022-02-17T09:23:51.000Z
twinfield/tests/__init__.py
yellowstacks/twinfield
2ae161a6cf6d7ff1f2c80a034b775f3d4928313d
[ "Apache-2.0" ]
null
null
null
import logging from keyvault import secrets_to_environment from twinfield import TwinfieldApi logging.basicConfig( format="%(asctime)s.%(msecs)03d [%(levelname)-5s] [%(name)s] - %(message)s", datefmt="%Y-%m-%d %H:%M:%S", level=logging.INFO, ) secrets_to_environment("twinfield-test") tw = TwinfieldApi()...
20.0625
80
0.70405
0
0
0
0
0
0
0
0
103
0.320872
7b64b79a9fe2fe03f8066b0d29de8f2b6617fac5
397
py
Python
magic/magicdb/migrations/0002_auto_20181027_1726.py
ParserKnight/django-app-magic
bdedf7f423da558f09d5818157762f3d8ac65d93
[ "MIT" ]
1
2019-12-20T17:56:13.000Z
2019-12-20T17:56:13.000Z
magic/magicdb/migrations/0002_auto_20181027_1726.py
ParserKnight/django-app-magic
bdedf7f423da558f09d5818157762f3d8ac65d93
[ "MIT" ]
11
2019-11-23T19:24:17.000Z
2022-03-11T23:34:21.000Z
magic/magicdb/migrations/0002_auto_20181027_1726.py
ParserKnight/django-app-magic
bdedf7f423da558f09d5818157762f3d8ac65d93
[ "MIT" ]
1
2019-12-20T17:58:20.000Z
2019-12-20T17:58:20.000Z
# Generated by Django 2.1.2 on 2018-10-27 17:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('magicdb', '0001_initial'), ] operations = [ migrations.AlterField( model_name='card', name='number', fie...
20.894737
74
0.594458
304
0.765743
0
0
0
0
0
0
84
0.211587
7b6531b31b1e432174690734541236e12b96ec5b
385
py
Python
dscli/storageimage.py
Taywee/dscli-python
c06786d3924912b323251d8e081edf60d3cedef0
[ "MIT" ]
null
null
null
dscli/storageimage.py
Taywee/dscli-python
c06786d3924912b323251d8e081edf60d3cedef0
[ "MIT" ]
null
null
null
dscli/storageimage.py
Taywee/dscli-python
c06786d3924912b323251d8e081edf60d3cedef0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright © 2017 Taylor C. Richberger <taywee@gmx.com> # This code is released under the license described in the LICENSE file from __future__ import division, absolute_import, print_function, unicode_literals class StorageImage(Instance): def __init__(self, xml): name sfi_name ...
29.615385
82
0.711688
146
0.378238
0
0
0
0
0
0
151
0.391192
7b654b9c9b8b039ce736b77aa128a506d29b9452
140
py
Python
Pruebas/prob_14.py
FR98/Cuarto-Compu
3824d0089562bccfbc839d9979809bc7a0fe4684
[ "MIT" ]
1
2022-03-20T12:57:04.000Z
2022-03-20T12:57:04.000Z
Pruebas/prob_14.py
FR98/cuarto-compu
3824d0089562bccfbc839d9979809bc7a0fe4684
[ "MIT" ]
null
null
null
Pruebas/prob_14.py
FR98/cuarto-compu
3824d0089562bccfbc839d9979809bc7a0fe4684
[ "MIT" ]
null
null
null
def prob_14(n): if n < 2: return False for i in range(2, n): if n % i == 0: return False return True
20
25
0.464286
0
0
0
0
0
0
0
0
0
0
7b65bb70b1e3c95b7c5e5cfddb6056ef4399ec89
2,968
py
Python
crnpy/utils.py
mehradans92/crnpy
e145d63b5cf97eb3c91276000cc8fef92c35cde9
[ "BSD-3-Clause" ]
null
null
null
crnpy/utils.py
mehradans92/crnpy
e145d63b5cf97eb3c91276000cc8fef92c35cde9
[ "BSD-3-Clause" ]
null
null
null
crnpy/utils.py
mehradans92/crnpy
e145d63b5cf97eb3c91276000cc8fef92c35cde9
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt def weighted_quantile(values, quantiles, sample_weight=None, values_sorted=False, old_style=False): ''' Very close to numpy.percentile, but supports weights. Note: quantiles should be in [0, 1]! :param values: numpy.array with da...
41.802817
148
0.626685
0
0
0
0
0
0
0
0
664
0.22372
7b65f6a1d2bed41aa57a027424c81ab5587c97d9
123
py
Python
exercise/newfile5.py
LeeBeral/python
9f0d360d69ee5245e3ef13a9dc9fc666374587a4
[ "MIT" ]
null
null
null
exercise/newfile5.py
LeeBeral/python
9f0d360d69ee5245e3ef13a9dc9fc666374587a4
[ "MIT" ]
null
null
null
exercise/newfile5.py
LeeBeral/python
9f0d360d69ee5245e3ef13a9dc9fc666374587a4
[ "MIT" ]
null
null
null
alist = [1,2,3,5,5,1,3] b = set(alist) c = tuple(alist) print(b) print(c) print([x for x in b]) print([x for x in c])
17.571429
24
0.569106
0
0
0
0
0
0
0
0
0
0
7b661c16cd5afafef4aba119027c917f67774a50
170
py
Python
ocp_resources/kubevirt_metrics_aggregation.py
kbidarkar/openshift-python-wrapper
3cd4d6d3b71c82ff87f032a51510d9c9d207f6cb
[ "Apache-2.0" ]
9
2021-07-05T18:35:55.000Z
2021-12-31T03:09:39.000Z
ocp_resources/kubevirt_metrics_aggregation.py
kbidarkar/openshift-python-wrapper
3cd4d6d3b71c82ff87f032a51510d9c9d207f6cb
[ "Apache-2.0" ]
418
2021-07-04T13:12:09.000Z
2022-03-30T08:37:45.000Z
ocp_resources/kubevirt_metrics_aggregation.py
kbidarkar/openshift-python-wrapper
3cd4d6d3b71c82ff87f032a51510d9c9d207f6cb
[ "Apache-2.0" ]
28
2021-07-04T12:48:18.000Z
2022-02-22T15:19:30.000Z
from ocp_resources.resource import NamespacedResource class KubevirtMetricsAggregation(NamespacedResource): api_group = NamespacedResource.ApiGroup.SSP_KUBEVIRT_IO
28.333333
59
0.870588
113
0.664706
0
0
0
0
0
0
0
0
7b66b53434936973c793021141732d4d9ee0ccb9
1,329
py
Python
metashare/accounts/urls.py
hpusset/ELRI
c4455cff3adb920627f014f37e740665342e9cee
[ "BSD-3-Clause" ]
1
2017-07-10T08:15:07.000Z
2017-07-10T08:15:07.000Z
metashare/accounts/urls.py
hpusset/ELRI
c4455cff3adb920627f014f37e740665342e9cee
[ "BSD-3-Clause" ]
null
null
null
metashare/accounts/urls.py
hpusset/ELRI
c4455cff3adb920627f014f37e740665342e9cee
[ "BSD-3-Clause" ]
1
2018-07-03T07:55:56.000Z
2018-07-03T07:55:56.000Z
from django.conf.urls import patterns, url from metashare.settings import DJANGO_BASE urlpatterns = patterns('metashare.accounts.views', url(r'create/$', 'create', name='create'), url(r'confirm/(?P<uuid>[0-9a-f]{32})/$', 'confirm', name='confirm'), url(r'contact/$', 'contact', name='contact'), url(...
42.870968
175
0.713318
0
0
0
0
0
0
0
0
897
0.674944
7b690221ede88220da58423f3771708cee9c615d
4,090
py
Python
lib_collection/queue/resizing_array_queue.py
caser789/libcollection
eb0a6fc36ce1cb57ed587865bbc1576e81c08924
[ "MIT" ]
null
null
null
lib_collection/queue/resizing_array_queue.py
caser789/libcollection
eb0a6fc36ce1cb57ed587865bbc1576e81c08924
[ "MIT" ]
null
null
null
lib_collection/queue/resizing_array_queue.py
caser789/libcollection
eb0a6fc36ce1cb57ed587865bbc1576e81c08924
[ "MIT" ]
null
null
null
class ResizingArrayQueue(object): def __init__(self, lst=None, capacity=2): self.capacity = capacity self.lst = [None] * self.capacity self.head = 0 self.tail = 0 self.n = 0 def __len__(self): """ >>> queue = ResizingArrayQueue() >>> len(queue) ...
23.505747
82
0.429829
4,089
0.999756
393
0.096088
534
0.130562
0
0
2,407
0.588509
7b6919cc089619a865a91ca1a0c07ade430d6d28
366
py
Python
conduit/config/env/__init__.py
utilmeta/utilmeta-py-realworld-example-app
cf6d9e83e72323a830b2fcdb5c5eae3ebd800103
[ "MIT" ]
null
null
null
conduit/config/env/__init__.py
utilmeta/utilmeta-py-realworld-example-app
cf6d9e83e72323a830b2fcdb5c5eae3ebd800103
[ "MIT" ]
null
null
null
conduit/config/env/__init__.py
utilmeta/utilmeta-py-realworld-example-app
cf6d9e83e72323a830b2fcdb5c5eae3ebd800103
[ "MIT" ]
null
null
null
from utilmeta.conf import Env class ServiceEnvironment(Env): PRODUCTION: bool = False OPS_TOKEN: str = '' JWT_SECRET_key: str = '' DATABASE_USER: str = '' DATABASE_PASSWORD: str = '' REDIS_PASSWORD: str = '' PUBLIC_ONLY: bool = True TEST_ENV_SUFFIX: str = '' # be -test when it's ...
22.875
65
0.650273
296
0.808743
0
0
0
0
0
0
41
0.112022
7b6a1e3587e95d7c0cf5eb9e41ba34ccfca2c19e
437
py
Python
sort/counting.py
haandol/dojo
c29dc54614bdfaf79eb4862ed9fa25974a0f5654
[ "MIT" ]
null
null
null
sort/counting.py
haandol/dojo
c29dc54614bdfaf79eb4862ed9fa25974a0f5654
[ "MIT" ]
null
null
null
sort/counting.py
haandol/dojo
c29dc54614bdfaf79eb4862ed9fa25974a0f5654
[ "MIT" ]
null
null
null
# https://www.geeksforgeeks.org/counting-sort/ def sort(arr): n = len(arr) result = [-1] * n counts = [0] * (max(arr) + 1) for el in arr: counts[el] += 1 for i in range(1, len(counts)): counts[i] += counts[i-1] for i in range(n): result[counts[arr[i]] - 1] = arr[i] counts[arr[i]] -= 1 ...
18.208333
46
0.535469
0
0
0
0
0
0
0
0
56
0.128146
7b6a67db77e30e9f797bb8f8a046460eef6c1f54
1,316
py
Python
uedinst/daq.py
trbritt/uedinst
e9fe1379b762be97b31ffab86a2cb149cb6291da
[ "BSD-3-Clause" ]
null
null
null
uedinst/daq.py
trbritt/uedinst
e9fe1379b762be97b31ffab86a2cb149cb6291da
[ "BSD-3-Clause" ]
null
null
null
uedinst/daq.py
trbritt/uedinst
e9fe1379b762be97b31ffab86a2cb149cb6291da
[ "BSD-3-Clause" ]
null
null
null
import nidaqmx from . import InstrumentException from time import sleep class PCI6281: """ Interface to NI-Data Aquisition PCI-6281. """ def __init__(self, *args, **kwargs): pass def set_voltage(self, value, timeout=None): """ Set voltage on the output channel. ...
26.32
86
0.522796
1,241
0.943009
0
0
0
0
0
0
570
0.433131
7b6ab2fe5bfb6e6c729ecffe273017b734826941
1,135
py
Python
tests/operations_model_test.py
chlemagne/python-oop-calculator
0259ce0f7a72faab60b058588a6838fe107e88eb
[ "MIT" ]
null
null
null
tests/operations_model_test.py
chlemagne/python-oop-calculator
0259ce0f7a72faab60b058588a6838fe107e88eb
[ "MIT" ]
null
null
null
tests/operations_model_test.py
chlemagne/python-oop-calculator
0259ce0f7a72faab60b058588a6838fe107e88eb
[ "MIT" ]
null
null
null
""" Unittest. """ import unittest from calculator.standard.operations_model import ( UniOperation, BiOperation, Square, SquareRoot, Reciprocal, Add, Subtract, Multiply, Divide, Modulo ) class OperationsModelTest(unittest.TestCase): """ Operations model test suite. """ ...
21.415094
58
0.600881
905
0.797357
0
0
0
0
0
0
96
0.084581
7b6c01aa137fe5eab922023b4f7b039eaadf78f0
684
py
Python
LAB5/lab/main.py
ThinkingFrog/MathStat
cd3712f4f4a59badd7f2611de64681b0e928d3db
[ "MIT" ]
null
null
null
LAB5/lab/main.py
ThinkingFrog/MathStat
cd3712f4f4a59badd7f2611de64681b0e928d3db
[ "MIT" ]
null
null
null
LAB5/lab/main.py
ThinkingFrog/MathStat
cd3712f4f4a59badd7f2611de64681b0e928d3db
[ "MIT" ]
null
null
null
from lab.distribution import DistrManager def main(): sizes = [20, 60, 100] rhos = [0, 0.5, 0.9] times = 1000 manager = DistrManager(sizes, rhos, times) for size in sizes: for rho in rhos: mean, sq_mean, disp = manager.get_coeff_stats("Normal", size, rho) print( ...
28.5
120
0.557018
0
0
0
0
0
0
0
0
208
0.304094
7b6c677fc5296afba3c3ed059b4dbdc0e009c7cf
3,010
py
Python
haplotype_plot/tests/test_plot.py
neobernad/haplotype_plot
45d9e916f474242648baa8d8b2afe9d502302485
[ "MIT" ]
2
2021-01-09T10:43:25.000Z
2021-02-16T17:21:08.000Z
haplotype_plot/tests/test_plot.py
neobernad/haplotype_plot
45d9e916f474242648baa8d8b2afe9d502302485
[ "MIT" ]
3
2021-02-01T11:28:17.000Z
2021-03-29T22:12:48.000Z
haplotype_plot/tests/test_plot.py
neobernad/haplotype_plot
45d9e916f474242648baa8d8b2afe9d502302485
[ "MIT" ]
null
null
null
import unittest import logging import os import haplotype_plot.genotyper as genotyper import haplotype_plot.reader as reader import haplotype_plot.haplotyper as haplotyper import haplotype_plot.plot as hplot logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) dir_path = os.path.dirname(os.p...
38.589744
108
0.644186
2,606
0.865781
0
0
0
0
0
0
154
0.051163
7b6e114171988bb11bb357d60e9671587a0a54e0
1,806
py
Python
src/docknet/data_generator/chessboard_data_generator.py
Accenture/Docknet
e81eb0c5aefd080ebeebf369d41f8d3fa85ab917
[ "Apache-2.0" ]
2
2020-06-29T08:58:26.000Z
2022-03-08T11:38:18.000Z
src/docknet/data_generator/chessboard_data_generator.py
jeekim/Docknet
eb3cad13701471a7aaeea1d573bc5608855bab52
[ "Apache-2.0" ]
1
2022-03-07T17:58:59.000Z
2022-03-07T17:58:59.000Z
src/docknet/data_generator/chessboard_data_generator.py
jeekim/Docknet
eb3cad13701471a7aaeea1d573bc5608855bab52
[ "Apache-2.0" ]
3
2020-06-29T08:58:31.000Z
2020-11-22T11:23:11.000Z
from typing import Tuple import numpy as np from docknet.data_generator.data_generator import DataGenerator class ChessboardDataGenerator(DataGenerator): """ The chessboard data generator generates two classes (0 and 1) of 2D vectors distributed as follows: 0011 0011 1100 11...
32.836364
103
0.606312
1,693
0.937431
0
0
0
0
0
0
773
0.428018
7b7181c5da71f675df29626211d629f1f9f4e5ef
5,485
py
Python
stereoVO/geometry/features.py
sakshamjindal/Visual-Odometry-Pipeline-in-Python
d4a8a8ee16f91a145b90c41744a85e8dd1c1d249
[ "Apache-2.0" ]
10
2021-11-01T23:56:30.000Z
2022-03-07T08:08:25.000Z
stereoVO/geometry/features.py
sakshamjindal/StereoVO-SFM
d4a8a8ee16f91a145b90c41744a85e8dd1c1d249
[ "Apache-2.0" ]
null
null
null
stereoVO/geometry/features.py
sakshamjindal/StereoVO-SFM
d4a8a8ee16f91a145b90c41744a85e8dd1c1d249
[ "Apache-2.0" ]
1
2021-12-02T03:15:00.000Z
2021-12-02T03:15:00.000Z
import cv2 import numpy as np import matplotlib.pyplot as plt __all__ = ['DetectionEngine'] class DetectionEngine(): """ Main Engine Code for detection of feature in the frames and matching of features in the frames at the current stereo state """ def __init__(self, left_frame, right_frame...
40.036496
149
0.615497
5,389
0.982498
0
0
1,615
0.294439
0
0
1,828
0.333273
7b72e8377f711b1cb1ee17fd39204a3883465200
78
py
Python
shopify_csv/__init__.py
d-e-h-i-o/shopify_csv
0c49666bca38802a756502f72f835abb63115025
[ "MIT" ]
1
2021-02-28T11:36:50.000Z
2021-02-28T11:36:50.000Z
shopify_csv/__init__.py
d-e-h-i-o/shopify_csv
0c49666bca38802a756502f72f835abb63115025
[ "MIT" ]
null
null
null
shopify_csv/__init__.py
d-e-h-i-o/shopify_csv
0c49666bca38802a756502f72f835abb63115025
[ "MIT" ]
null
null
null
from .constants import FIELDS, PROPERTIES from .shopify_csv import ShopifyRow
26
41
0.846154
0
0
0
0
0
0
0
0
0
0
7b745432625aa3fd9106d5e8fec7445b66115435
8,070
py
Python
pgpointcloud_utils/pcformat.py
dustymugs/pgpointcloud_utils
24193438982a8070a0aada34fca4db62688d18ba
[ "BSD-3-Clause" ]
1
2016-09-04T20:44:15.000Z
2016-09-04T20:44:15.000Z
pgpointcloud_utils/pcformat.py
dustymugs/pgpointcloud_utils
24193438982a8070a0aada34fca4db62688d18ba
[ "BSD-3-Clause" ]
6
2015-02-19T10:27:39.000Z
2015-02-19T10:58:49.000Z
pgpointcloud_utils/pcformat.py
dustymugs/pgpointcloud_utils
24193438982a8070a0aada34fca4db62688d18ba
[ "BSD-3-Clause" ]
null
null
null
from decimal import Decimal import xml.etree.ElementTree as ET from .pcexception import * class PcDimension(object): DEFAULT_SCALE = 1. BYTE_1 = 1 BYTE_2 = 2 BYTE_4 = 4 BYTE_8 = 8 BYTES = [BYTE_1, BYTE_2, BYTE_4, BYTE_8] INTERPRETATION_MAPPING = { 'unknown': {}, 'int8_t'...
24.603659
78
0.53482
7,975
0.988228
0
0
5,002
0.619827
0
0
1,173
0.145353