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
4580e5185df673dea05c4292da77636775a057d5
434
py
Python
flocka/forms/branch.py
sleekslush/flocka
3d1c0ae9bf82b7b8afb03494ee6dd8488157fe68
[ "BSD-2-Clause" ]
null
null
null
flocka/forms/branch.py
sleekslush/flocka
3d1c0ae9bf82b7b8afb03494ee6dd8488157fe68
[ "BSD-2-Clause" ]
null
null
null
flocka/forms/branch.py
sleekslush/flocka
3d1c0ae9bf82b7b8afb03494ee6dd8488157fe68
[ "BSD-2-Clause" ]
null
null
null
from flask_wtf import Form from wtforms import StringField from wtforms.validators import DataRequired class BranchSlugField(StringField): def process_formdata(self, valuelist): if valuelist: if valuelist[0]: self.data = valuelist[0].strip() else: s...
25.529412
64
0.658986
326
0.751152
0
0
0
0
0
0
7
0.016129
458209565dea8013a3f4eb68bbd3789f17400e4a
2,458
py
Python
igvjs/main.py
Sparktx-Data-Science/igv.js-flask
1fc3a6623b6a747830ea0b4c3636adb4e6134c9f
[ "MIT" ]
25
2017-07-20T07:41:30.000Z
2021-12-30T15:49:03.000Z
igvjs/main.py
kkapuria3/igv.js-flask
f3cde4547eaa29133535f95501778d9fe492532d
[ "MIT" ]
10
2017-09-07T23:30:26.000Z
2021-08-06T05:08:32.000Z
igvjs/main.py
kkapuria3/igv.js-flask
f3cde4547eaa29133535f95501778d9fe492532d
[ "MIT" ]
12
2017-10-05T15:00:13.000Z
2021-12-30T15:49:07.000Z
import requests import re import os from flask import Response, request, abort, render_template, url_for, Blueprint from igvjs._config import basedir seen_tokens = set() igvjs_blueprint = Blueprint('igvjs', __name__) # give blueprint access to app config @igvjs_blueprint.record def record_igvjs(setup_state): igv...
35.114286
94
0.634662
0
0
0
0
1,253
0.509764
0
0
403
0.163954
4583a8b165ab4c78a4b26d904a7a68c5264ba730
335
py
Python
ccij/ccij/doctype/representacion/representacion.py
dacosta2213/ccij
ef68d49d8dbabd5e381bcd411dc48b670621e666
[ "MIT" ]
null
null
null
ccij/ccij/doctype/representacion/representacion.py
dacosta2213/ccij
ef68d49d8dbabd5e381bcd411dc48b670621e666
[ "MIT" ]
null
null
null
ccij/ccij/doctype/representacion/representacion.py
dacosta2213/ccij
ef68d49d8dbabd5e381bcd411dc48b670621e666
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2019, Totall and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class Representacion(Document): pass # # def validate(self): # self.db_set('mes_entrega', self....
23.928571
50
0.755224
115
0.343284
0
0
0
0
0
0
189
0.564179
4583c54cfccd1fb3b1fb1dbcb0947ff6d8d1c59a
458
py
Python
Modulo 1/009.py
thiago19maciel/Exercicios-em-Python
0d46816caf655c6e870510bb1136964854fc875f
[ "MIT" ]
1
2022-03-22T22:36:48.000Z
2022-03-22T22:36:48.000Z
Modulo 1/009.py
thiago19maciel/Exercicios-em-Python
0d46816caf655c6e870510bb1136964854fc875f
[ "MIT" ]
null
null
null
Modulo 1/009.py
thiago19maciel/Exercicios-em-Python
0d46816caf655c6e870510bb1136964854fc875f
[ "MIT" ]
null
null
null
numero = int(input('Tabuada do ')) print(f'{numero} X 0 = {numero*0}') print(f'{numero} X 1 = {numero*1}') print(f'{numero} X 2 = {numero*2}') print(f'{numero} X 3 = {numero*3}') print(f'{numero} X 4 = {numero*4}') print(f'{numero} X 5 = {numero*5}') print(f'{numero} X 6 = {numero*6}') print(f'{numero} X ...
38.166667
39
0.558952
0
0
0
0
0
0
0
0
349
0.762009
4584c9acdb19bbdce86f86b2d488f787d8a6387a
5,068
py
Python
kraken/shut_down/common_shut_down_func.py
Sau1506mya/kraken-1
4f7616a1508e0f1f64356512aeda265e1dce5144
[ "Apache-2.0" ]
83
2021-01-15T10:42:22.000Z
2022-03-23T16:01:22.000Z
kraken/shut_down/common_shut_down_func.py
Sau1506mya/kraken-1
4f7616a1508e0f1f64356512aeda265e1dce5144
[ "Apache-2.0" ]
126
2021-01-19T07:41:06.000Z
2022-03-31T16:27:02.000Z
kraken/shut_down/common_shut_down_func.py
Sau1506mya/kraken-1
4f7616a1508e0f1f64356512aeda265e1dce5144
[ "Apache-2.0" ]
26
2021-01-27T19:34:33.000Z
2022-03-18T21:18:35.000Z
#!/usr/bin/env python import sys import yaml import logging import time from multiprocessing.pool import ThreadPool import kraken.cerberus.setup as cerberus import kraken.kubernetes.client as kubecli import kraken.post_actions.actions as post_actions from kraken.node_actions.aws_node_scenarios import AWS from kraken.n...
40.870968
103
0.653907
0
0
0
0
0
0
0
0
760
0.149961
4588e1870c69bb48a27afabbf83f4786a23a64c3
16,539
py
Python
game_seq_embedder/app/app_utils.py
Anonymous9999999/Pretrain-via-MTC
bc47c162aecb68708b68d8ff7c9bfd54b0fc485e
[ "Artistic-1.0-Perl" ]
null
null
null
game_seq_embedder/app/app_utils.py
Anonymous9999999/Pretrain-via-MTC
bc47c162aecb68708b68d8ff7c9bfd54b0fc485e
[ "Artistic-1.0-Perl" ]
null
null
null
game_seq_embedder/app/app_utils.py
Anonymous9999999/Pretrain-via-MTC
bc47c162aecb68708b68d8ff7c9bfd54b0fc485e
[ "Artistic-1.0-Perl" ]
null
null
null
import h5py import collections import numpy as np import os import ipdb import math import time import datetime import random import torch from torch.utils.data.dataset import Dataset def hdf5_load_dataset(hdf5_file_path, all_indices, step_size, large_batch=1024, is_decode_utf8=False): random.shuffle(all_indice...
39.949275
120
0.589697
9,148
0.549594
1,697
0.101953
0
0
0
0
3,232
0.194172
4588f69996e623a4acf1af26a59a4813391ce065
248
py
Python
hackerrank/regex/intro/05-word.py
everarch/psets
7fddb2a01ce8c4e601d63c3be3b11cd2113be035
[ "MIT" ]
null
null
null
hackerrank/regex/intro/05-word.py
everarch/psets
7fddb2a01ce8c4e601d63c3be3b11cd2113be035
[ "MIT" ]
null
null
null
hackerrank/regex/intro/05-word.py
everarch/psets
7fddb2a01ce8c4e601d63c3be3b11cd2113be035
[ "MIT" ]
null
null
null
# # Matching Word & Non-Word Character # # https://www.hackerrank.com/challenges/matching-word-non-word/problem # Regex_Pattern = r"\w{3}\W\w{10}\W\w{3}" # Do not delete 'r'. import re print(str(bool(re.search(Regex_Pattern, input()))).lower())
20.666667
70
0.689516
0
0
0
0
0
0
0
0
152
0.612903
4589ea2bd19fdb4c4eadac909d6adbd2ca938167
980
py
Python
python/problems/same_tree.py
vivaxy/algorithms
b2e49476ed2ad1fd82a1183f656d1907a666c347
[ "MIT" ]
1
2019-05-04T13:21:41.000Z
2019-05-04T13:21:41.000Z
python/problems/same_tree.py
vivaxy/algorithms
b2e49476ed2ad1fd82a1183f656d1907a666c347
[ "MIT" ]
1
2021-08-30T09:34:58.000Z
2021-08-30T09:34:58.000Z
python/problems/same_tree.py
vivaxy/algorithms
b2e49476ed2ad1fd82a1183f656d1907a666c347
[ "MIT" ]
null
null
null
""" https://leetcode.com/problems/same-tree/ https://leetcode.com/submissions/detail/109733704/ """ # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None from common.tree_node import TreeNode class So...
21.777778
111
0.584694
599
0.611224
0
0
0
0
0
0
360
0.367347
458a74a131096b9821f4d2a10c82a473fe5352fd
30,220
py
Python
src/pagure/forms.py
yifengyou/learn-pagure
e54ba955368918c92ad2be6347b53bb2c24a228c
[ "Unlicense" ]
null
null
null
src/pagure/forms.py
yifengyou/learn-pagure
e54ba955368918c92ad2be6347b53bb2c24a228c
[ "Unlicense" ]
null
null
null
src/pagure/forms.py
yifengyou/learn-pagure
e54ba955368918c92ad2be6347b53bb2c24a228c
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ (c) 2014-2016 - Copyright Red Hat Inc Authors: Pierre-Yves Chibon <pingou@pingoured.fr> """ # pylint: disable=too-few-public-methods # pylint: disable=no-init # pylint: disable=super-on-old-class from __future__ import unicode_literals, absolute_import import datetime import re i...
30.556117
79
0.615321
27,110
0.897088
0
0
0
0
0
0
7,891
0.261118
458b9c87e0590b71665c205e005ed91d9aac38d7
5,285
py
Python
docknv/shell/handlers/service.py
sharingcloud/docknv
6eec6a576a32cb05278b7af045f90859066c9f1d
[ "MIT" ]
null
null
null
docknv/shell/handlers/service.py
sharingcloud/docknv
6eec6a576a32cb05278b7af045f90859066c9f1d
[ "MIT" ]
null
null
null
docknv/shell/handlers/service.py
sharingcloud/docknv
6eec6a576a32cb05278b7af045f90859066c9f1d
[ "MIT" ]
null
null
null
"""Service sub commands.""" from docknv.shell.common import exec_handler, load_project def _init(subparsers): cmd = subparsers.add_parser( "service", help="manage one service at a time (service mode)" ) cmd.add_argument( "-c", "--config", help="configuration name (swap)", default=None ...
28.111702
78
0.653359
0
0
0
0
0
0
0
0
1,171
0.22157
458bd70a94f9a431da5e652ce85be0f3753bf347
7,254
py
Python
fgapiserverconfig.py
FutureGateway/geAPIServer
486056784e2927342d0079aef12be7e05d3832f5
[ "Apache-2.0" ]
null
null
null
fgapiserverconfig.py
FutureGateway/geAPIServer
486056784e2927342d0079aef12be7e05d3832f5
[ "Apache-2.0" ]
null
null
null
fgapiserverconfig.py
FutureGateway/geAPIServer
486056784e2927342d0079aef12be7e05d3832f5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2015: # Istituto Nazionale di Fisica Nucleare (INFN), Italy # Consorzio COMETA (COMETA), Italy # # See http://www.infn.it and and http://www.consorzio-cometa.it for details on # the copyright holders. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not...
39.423913
78
0.602426
6,169
0.850427
0
0
0
0
0
0
3,703
0.510477
458d75bdd1f6d36bbdc888e70fe25b1dda1e7cf1
130
py
Python
src/read_data.py
argj92/bball
226827249c83647263447e3ef9f831e70ae1dfa3
[ "Apache-2.0" ]
null
null
null
src/read_data.py
argj92/bball
226827249c83647263447e3ef9f831e70ae1dfa3
[ "Apache-2.0" ]
null
null
null
src/read_data.py
argj92/bball
226827249c83647263447e3ef9f831e70ae1dfa3
[ "Apache-2.0" ]
1
2018-09-26T02:13:47.000Z
2018-09-26T02:13:47.000Z
import pandas as pd import numpy as np def main(): print("a bombae bros production\n") if __name__ == "__main__": main()
16.25
39
0.669231
0
0
0
0
0
0
0
0
38
0.292308
458efec9cad1dcaa401e2261be2ecb2c2d569528
1,466
py
Python
canvasaio/bookmark.py
spapadim/canvasaio
a17e60447acd45cdbd6e4f0f24f3c9ae03a58ca8
[ "MIT" ]
null
null
null
canvasaio/bookmark.py
spapadim/canvasaio
a17e60447acd45cdbd6e4f0f24f3c9ae03a58ca8
[ "MIT" ]
null
null
null
canvasaio/bookmark.py
spapadim/canvasaio
a17e60447acd45cdbd6e4f0f24f3c9ae03a58ca8
[ "MIT" ]
null
null
null
from canvasaio.canvas_object import CanvasObject from canvasaio.util import combine_kwargs class Bookmark(CanvasObject): def __str__(self): return "{} ({})".format(self.name, self.id) async def delete(self, **kwargs): """ Delete this bookmark. :calls: `DELETE /api/v1/users/se...
32.577778
100
0.621419
1,372
0.93588
0
0
0
0
1,256
0.856753
599
0.408595
458fa1840f8fd2566ce3891b8a4741c03204e606
5,295
py
Python
hivwholeseq/sequencing/split_reads_for_mapping.py
neherlab/hivwholeseq
978ce4060362e4973f92b122ed5340a5314d7844
[ "MIT" ]
3
2016-09-13T12:15:47.000Z
2021-07-03T01:28:56.000Z
hivwholeseq/sequencing/split_reads_for_mapping.py
iosonofabio/hivwholeseq
d504c63b446c3a0308aad6d6e484ea1666bbe6df
[ "MIT" ]
null
null
null
hivwholeseq/sequencing/split_reads_for_mapping.py
iosonofabio/hivwholeseq
d504c63b446c3a0308aad6d6e484ea1666bbe6df
[ "MIT" ]
3
2016-01-17T03:43:46.000Z
2020-03-25T07:00:11.000Z
#!/usr/bin/env python # vim: fdm=marker ''' author: Fabio Zanini date: 17/05/14 content: Split the reads for mapping into small aliquots, to exploit the short queue on the cluster. ''' # Modules import os import sys import time import argparse import pysam import numpy as np import subprocess a...
36.267123
115
0.630595
0
0
0
0
0
0
0
0
1,065
0.201133
458fd64c7c730e3cd0e0feae971b00d775ff1c85
3,843
py
Python
spikeforest/forestview/sortingresultcontext.py
mhhennig/spikeforest
5b4507ead724af3de0be5d48a3b23aaedb0be170
[ "Apache-2.0" ]
1
2021-09-23T01:07:19.000Z
2021-09-23T01:07:19.000Z
spikeforest/forestview/sortingresultcontext.py
mhhennig/spikeforest
5b4507ead724af3de0be5d48a3b23aaedb0be170
[ "Apache-2.0" ]
null
null
null
spikeforest/forestview/sortingresultcontext.py
mhhennig/spikeforest
5b4507ead724af3de0be5d48a3b23aaedb0be170
[ "Apache-2.0" ]
1
2021-09-23T01:07:21.000Z
2021-09-23T01:07:21.000Z
from spikeforest import SFMdaSortingExtractor from copy import deepcopy from mountaintools import client as mt from .recordingcontext import RecordingContext import mtlogging class SortingResultContext(): def __init__(self, *, sorting_result_object, recording_context): self._signal_handlers = dict() ...
33.417391
112
0.684361
3,665
0.953682
0
0
598
0.155608
0
0
516
0.13427
4590230328e5c1d8487fcc4dc18325b330d72349
2,712
py
Python
sublime/Packages/BracketHighlighter/bh_modules/tagattrselect.py
herove/dotfiles
5f08d4d6f518758b3ad0516d9e704edf251e8ff3
[ "MIT" ]
1
2018-06-23T08:07:39.000Z
2018-06-23T08:07:39.000Z
sublime/Packages/BracketHighlighter/bh_modules/tagattrselect.py
herove/dotfiles
5f08d4d6f518758b3ad0516d9e704edf251e8ff3
[ "MIT" ]
null
null
null
sublime/Packages/BracketHighlighter/bh_modules/tagattrselect.py
herove/dotfiles
5f08d4d6f518758b3ad0516d9e704edf251e8ff3
[ "MIT" ]
null
null
null
import bh_plugin class SelectAttr(bh_plugin.BracketPluginCommand): def run(self, edit, name, direction='right'): """ Select next attribute in the given direction. Wrap when the end is hit. """ if self.left.size() <= 1: return tag_name = r'[\w\:\.\-]+' ...
35.220779
106
0.450959
2,654
0.978614
0
0
0
0
0
0
425
0.156711
45916c29934819dc98d987bba06861eec3a41f1f
8,304
py
Python
backend/tools/code/merge/git-auto.py
lokiworks/codebase
48a7dfc65311f2776efc87d254dc006251f77628
[ "MIT" ]
2
2021-01-20T13:48:32.000Z
2021-11-14T13:29:19.000Z
backend/tools/code/merge/git-auto.py
lokiworks/codebase
48a7dfc65311f2776efc87d254dc006251f77628
[ "MIT" ]
4
2020-05-19T14:02:17.000Z
2021-08-15T11:17:30.000Z
backend/tools/code/merge/git-auto.py
lokiworks/codebase
48a7dfc65311f2776efc87d254dc006251f77628
[ "MIT" ]
null
null
null
"""" using python version 3.7+ python-gitlab version 1.8.0 python-jenkins version 1.7.0 """ import gitlab import jenkins import smtplib import ssl import markdown from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText class JenkinsAuto: __host = '' __user_name = '' __passwo...
32.4375
120
0.595376
6,845
0.821926
0
0
0
0
0
0
1,488
0.178674
4591e96ca8eecc10cdc680e19398cdebfb252e8a
5,189
py
Python
interpro7dw/interpro/oracle/clans.py
matthiasblum/i7dw
b40e5b9984dec2895956828ddf9db8af4a8ec932
[ "Apache-2.0" ]
null
null
null
interpro7dw/interpro/oracle/clans.py
matthiasblum/i7dw
b40e5b9984dec2895956828ddf9db8af4a8ec932
[ "Apache-2.0" ]
null
null
null
interpro7dw/interpro/oracle/clans.py
matthiasblum/i7dw
b40e5b9984dec2895956828ddf9db8af4a8ec932
[ "Apache-2.0" ]
null
null
null
import json import pickle from typing import Dict import cx_Oracle from interpro7dw import pfam from interpro7dw.utils import logger from interpro7dw.utils.oracle import lob_as_str from interpro7dw.utils.store import BasicStore def get_clans(cur: cx_Oracle.Cursor) -> Dict[str, dict]: cur.execute( """ ...
28.827778
78
0.533629
0
0
537
0.103488
0
0
0
0
1,006
0.193872
459361bbb100cff1efc28163721eb85c951bcf87
4,054
py
Python
tests/test_core/test_controller.py
aaron-parsons/pymalcolm
4e7ebd6b09382ab7e013278a81097d17873fa5c4
[ "Apache-2.0" ]
null
null
null
tests/test_core/test_controller.py
aaron-parsons/pymalcolm
4e7ebd6b09382ab7e013278a81097d17873fa5c4
[ "Apache-2.0" ]
null
null
null
tests/test_core/test_controller.py
aaron-parsons/pymalcolm
4e7ebd6b09382ab7e013278a81097d17873fa5c4
[ "Apache-2.0" ]
null
null
null
import unittest from annotypes import add_call_types, Anno from malcolm.core import Controller, Part, PartRegistrar, StringMeta, \ Process, Queue, Get, Return, Put, Error, Post, Subscribe, Update, \ Unsubscribe with Anno("The return value"): AWorld = str class MyPart(Part): my_attribute = None ...
33.783333
91
0.629008
3,778
0.931919
0
0
89
0.021954
0
0
513
0.126542
45937b2939b14680c7fe8bf6cdcae998c44d589b
2,364
py
Python
Violent_Python/Chapter2/2.063injectPage.py
suleisulei/Violent_Python_Examples
df88fc8b0dde5fac135647d46130e98a4f6b90e2
[ "Apache-2.0" ]
2
2019-07-30T13:47:43.000Z
2021-12-27T09:03:47.000Z
Violent_Python/Chapter2/2.063injectPage.py
suleisulei/Violent_Python_Examples
df88fc8b0dde5fac135647d46130e98a4f6b90e2
[ "Apache-2.0" ]
null
null
null
Violent_Python/Chapter2/2.063injectPage.py
suleisulei/Violent_Python_Examples
df88fc8b0dde5fac135647d46130e98a4f6b90e2
[ "Apache-2.0" ]
null
null
null
# _*_coding:utf8- import ftplib from Violent_Python import _Config ''' This code, we need learning how to upload file or download file with target FTP. Note:Make sure your "write enable equal YES" in your /etc/vsftpd.conf Document: --------- 1. we logon target FTP, and use ftp.retrlines(cmd,callback) function down...
33.771429
108
0.600677
0
0
0
0
0
0
0
0
1,660
0.7022
4594f72e405e0824b4be1fe0fefd39e46766217c
684
py
Python
dado.py
crysller/Dado
63c77bb81bec6fe9d2add2b0d14ba5d399b30018
[ "MIT" ]
null
null
null
dado.py
crysller/Dado
63c77bb81bec6fe9d2add2b0d14ba5d399b30018
[ "MIT" ]
null
null
null
dado.py
crysller/Dado
63c77bb81bec6fe9d2add2b0d14ba5d399b30018
[ "MIT" ]
null
null
null
from random import randint from time import sleep continuar = 'Ss' while continuar in 'Ss': print('\033[1;32mVamos jogar. Exemplo: 1d20 ou 5d10\033[m') opc = input() qntDados = int(opc[:1]) valorDado = int(opc[2:]) if qntDados > 10 or valorDado not in [4,6,8,10,12,20,100]: print('\033[1;31m...
34.2
89
0.599415
0
0
0
0
0
0
0
0
221
0.321689
4595098c311e3e92f7b064d28a78bd111f665e93
3,155
py
Python
tests/test_marklogic_utils.py
marklogic/newrelic-plugin
61bf437cace1c9d9b517e7ae2ad0022b8225086c
[ "Apache-2.0" ]
3
2017-07-08T04:28:43.000Z
2020-03-25T17:35:22.000Z
tests/test_marklogic_utils.py
marklogic-community/newrelic-plugin
61bf437cace1c9d9b517e7ae2ad0022b8225086c
[ "Apache-2.0" ]
13
2017-08-03T19:06:49.000Z
2021-06-25T15:25:03.000Z
tests/test_marklogic_utils.py
marklogic-community/newrelic-plugin
61bf437cace1c9d9b517e7ae2ad0022b8225086c
[ "Apache-2.0" ]
3
2019-03-16T22:15:31.000Z
2020-03-25T17:35:24.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2019 MarkLogic 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# # # U...
39.4375
131
0.701109
2,227
0.705864
0
0
0
0
0
0
805
0.255151
4595f169799444e02f534a9747ed945159901694
1,094
py
Python
test/signature.py
orbs-network/orbs-client-sdk-python
1e8d5699ee98e2ff59d36081eb569237949a558b
[ "MIT" ]
5
2018-08-10T15:39:46.000Z
2020-02-10T03:14:51.000Z
test/signature.py
orbs-network/orbs-client-sdk-python
1e8d5699ee98e2ff59d36081eb569237949a558b
[ "MIT" ]
3
2018-06-22T07:32:46.000Z
2018-12-13T14:16:56.000Z
test/signature.py
orbs-network/orbs-client-sdk-python
1e8d5699ee98e2ff59d36081eb569237949a558b
[ "MIT" ]
2
2018-07-01T12:45:38.000Z
2020-04-13T11:09:36.000Z
import unittest from os import sys, path from crypto.signature import Signature sys.path.append(path.dirname(path.dirname(path.abspath(__file__)))) class TestSignatureFunctions(unittest.TestCase): def test_sign_ed25519(self): private_key = bytes.fromhex('3b24b5f9e6b1371c3b5de2e402a96930eeafe52111bb4a1b00...
42.076923
167
0.761426
894
0.817185
0
0
0
0
0
0
330
0.301645
45960c81e911bf2eccfc72ba2ed6263dc24bbc1a
429
py
Python
bbs_viewer/modules/points/admin.py
yoophi/bbs_viewer
bda8604c02214738c55b6130450d0bff15ee9a0d
[ "MIT" ]
null
null
null
bbs_viewer/modules/points/admin.py
yoophi/bbs_viewer
bda8604c02214738c55b6130450d0bff15ee9a0d
[ "MIT" ]
null
null
null
bbs_viewer/modules/points/admin.py
yoophi/bbs_viewer
bda8604c02214738c55b6130450d0bff15ee9a0d
[ "MIT" ]
null
null
null
# -*- coding: utf8 from __future__ import unicode_literals from flask_admin.contrib.sqla import ModelView from instashare.database import db from instashare.extensions import admin from .models import UserPointInfo, UserDailyPointInfo, \ UserPointHistory admin.add_view(ModelView(UserPointInfo, db.session)) admin...
30.642857
57
0.827506
0
0
0
0
0
0
0
0
18
0.041958
459719287cbd8d4d670931c7497d555a6c24e23b
318
py
Python
q3volume.py
tiwa2022/Lab2
22ebbe4367316a969c0a1642747516b606618ca5
[ "MIT" ]
1
2022-01-27T16:57:53.000Z
2022-01-27T16:57:53.000Z
q3volume.py
tiwa2022/Lab2
22ebbe4367316a969c0a1642747516b606618ca5
[ "MIT" ]
null
null
null
q3volume.py
tiwa2022/Lab2
22ebbe4367316a969c0a1642747516b606618ca5
[ "MIT" ]
null
null
null
#input print("This program find the volume of a cylinder") PI= 3.14159265359 diameter= float(input("Enter diameter: ")) height= float(input("Enter height: ")) #processing volume= PI * diameter *height #output (print("The volume of a cyclinder with a diameter of",diameter, "and a height of", height, "is",volume))
26.5
105
0.72327
0
0
0
0
0
0
0
0
170
0.534591
45973111e2e222b6bc6613d5dc785ebea5705bc1
946
py
Python
cp_rest.py
cloudplugs/rest-python
63ea5c3ba699663912c728f67b190a9141448786
[ "Apache-2.0" ]
null
null
null
cp_rest.py
cloudplugs/rest-python
63ea5c3ba699663912c728f67b190a9141448786
[ "Apache-2.0" ]
null
null
null
cp_rest.py
cloudplugs/rest-python
63ea5c3ba699663912c728f67b190a9141448786
[ "Apache-2.0" ]
null
null
null
class CP_HTTP_RESULT(object): CP_HTTP_OK = 200 CP_HTTP_CREATED = 201 CP_HTTP_MULTI_STATUS = 207 CP_HTTP_BAD_REQUEST = 400 CP_HTTP_UNAUTHORIZED = 401 CP_HTTP_PAYMENT_REQUIRED = 402 CP_HTTP_FORBIDDEN = 403 CP_HTTP_NOT_FOUND = 404 CP_HTTP_NOT_ALLOWED = 405 CP_HTTP_NOT_ACCEPTABLE =...
27.823529
39
0.743129
871
0.920719
0
0
0
0
0
0
0
0
4599de31dc9c5682547c724f43eebc62f2ecf2f8
600
py
Python
components.py
andrewmccullough/linksaver
443dbe9ec4df76f30884550b7da3402cfad194d1
[ "Apache-2.0" ]
1
2017-09-18T01:39:08.000Z
2017-09-18T01:39:08.000Z
components.py
andrewmccullough/linksaver
443dbe9ec4df76f30884550b7da3402cfad194d1
[ "Apache-2.0" ]
null
null
null
components.py
andrewmccullough/linksaver
443dbe9ec4df76f30884550b7da3402cfad194d1
[ "Apache-2.0" ]
null
null
null
import praw # Visit the PRAW website for instructions on installation and configuration. # https://praw.readthedocs.io/en/latest/getting_started/authentication.html#script-application username="" #Your username. reddit = praw.Reddit( client_id = "", #14 character code. client_secret = "", #27 character code....
28.571429
117
0.688333
0
0
0
0
0
0
0
0
402
0.67
459b4482cc67e06b82631e6053118e1bd6455789
2,219
py
Python
ebay_accounts/test_settings.py
luke-dixon/django-ebay-accounts
54cf0e90b75dfbdd63bcd588f3c4771ebe1297c0
[ "BSD-3-Clause" ]
4
2018-01-28T20:10:11.000Z
2020-09-06T14:30:36.000Z
ebay_accounts/test_settings.py
luke-dixon/django-ebay-accounts
54cf0e90b75dfbdd63bcd588f3c4771ebe1297c0
[ "BSD-3-Clause" ]
7
2017-06-04T08:50:06.000Z
2020-09-06T16:03:53.000Z
ebay_accounts/test_settings.py
luke-dixon/django-ebay-accounts
54cf0e90b75dfbdd63bcd588f3c4771ebe1297c0
[ "BSD-3-Clause" ]
7
2017-06-01T09:51:35.000Z
2021-05-25T16:01:53.000Z
# -*- coding: utf-8 -*- """ Test Settings """ import django APP_NAME = 'ebay_accounts' INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'ebay_accounts', ) MIDDLEWARE = ( 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.Cs...
26.105882
74
0.605228
0
0
0
0
0
0
0
0
1,237
0.557458
459ba84999942fac75ac072ba3f560b858a33ebf
2,736
py
Python
indicatorParametersUI.py
webclinic017/backtrader-pyqt-ui
71630a387e63bb054e069e05efe1baa7e98551b2
[ "MIT" ]
105
2021-11-20T20:28:26.000Z
2022-03-31T14:19:07.000Z
indicatorParametersUI.py
tubu/backtrader-pyqt-ui
543ebb2049b0e58feb1b0bec760a32ea619097a0
[ "MIT" ]
2
2021-11-16T14:48:11.000Z
2022-01-20T19:20:08.000Z
indicatorParametersUI.py
tubu/backtrader-pyqt-ui
543ebb2049b0e58feb1b0bec760a32ea619097a0
[ "MIT" ]
48
2021-11-20T20:28:30.000Z
2022-03-28T16:18:15.000Z
from PyQt5 import QtCore, QtWidgets, QtGui, uic import os class IndicatorParametersUI(QtWidgets.QDialog): def __init__(self, parent = None): super(IndicatorParametersUI, self).__init__() #self.setParent(parent) # It does not finish by a "/" self.current_dir_path = os.path.dirna...
30.065934
87
0.613304
2,672
0.976608
0
0
0
0
0
0
153
0.055921
459cfc983851a8ba57e8cee990af42bcae99c62a
699
py
Python
django-simple-captcha/captcha/tests/urls.py
teeworldsCNFun/upTee
1c04b7421f4834f83bbb9f59f43dfebac08e56b0
[ "BSD-3-Clause" ]
null
null
null
django-simple-captcha/captcha/tests/urls.py
teeworldsCNFun/upTee
1c04b7421f4834f83bbb9f59f43dfebac08e56b0
[ "BSD-3-Clause" ]
null
null
null
django-simple-captcha/captcha/tests/urls.py
teeworldsCNFun/upTee
1c04b7421f4834f83bbb9f59f43dfebac08e56b0
[ "BSD-3-Clause" ]
null
null
null
try: from django.conf.urls import url, patterns, include except ImportError: from django.conf.urls.defaults import url, patterns, include urlpatterns = patterns('', url(r'test/$', 'captcha.tests.views.test', name='captcha-test'), url(r'test-modelform/$', 'captcha.tests.views.test_model_form', name='cap...
49.928571
111
0.719599
0
0
0
0
0
0
0
0
403
0.576538
459db3d81ac904122652cb0bff922fb7f630a44a
5,475
py
Python
export/views.py
felix-engelmann/badgecc
5bc0ced339f18737e24cc34935a87e96ae14a825
[ "MIT" ]
null
null
null
export/views.py
felix-engelmann/badgecc
5bc0ced339f18737e24cc34935a87e96ae14a825
[ "MIT" ]
null
null
null
export/views.py
felix-engelmann/badgecc
5bc0ced339f18737e24cc34935a87e96ae14a825
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.template.loader import render_to_string from django.http import HttpResponse from django.conf import settings from persons.models import Role, Right, Department, Person from math import floor import os from subprocess import Popen, PIPE import tempfile # Create your...
29.755435
184
0.588493
0
0
0
0
0
0
0
0
1,305
0.238356
459fe241fa9cf83ded4a40b6c2040315ffceaa98
7,118
py
Python
Gems/Atom/Feature/Common/Editor/Scripts/ColorGrading/lut_helper.py
fromasmtodisasm/o3de
0d728a76778cb0ca88caa5c07f17162fac668b2a
[ "Apache-2.0", "MIT" ]
null
null
null
Gems/Atom/Feature/Common/Editor/Scripts/ColorGrading/lut_helper.py
fromasmtodisasm/o3de
0d728a76778cb0ca88caa5c07f17162fac668b2a
[ "Apache-2.0", "MIT" ]
null
null
null
Gems/Atom/Feature/Common/Editor/Scripts/ColorGrading/lut_helper.py
fromasmtodisasm/o3de
0d728a76778cb0ca88caa5c07f17162fac668b2a
[ "Apache-2.0", "MIT" ]
null
null
null
# coding:utf-8 #!/usr/bin/python # # Copyright (c) Contributors to the Open 3D Engine Project. # For complete copyright and license terms please see the LICENSE at the root of this distribution. # # SPDX-License-Identifier: Apache-2.0 OR MIT # # # lut_helper.py import sys import os import argparse import math import s...
38.064171
139
0.631779
0
0
0
0
0
0
0
0
2,359
0.331413
45a007eb5d03a7c8e9669fdf3b4bcdcd8f2e9700
2,922
py
Python
raxmlOutputWindows/standardLayout.py
chilleo/ALPHA
61ac17a08eb4eb778cec9236f4792c97969311a2
[ "MIT" ]
11
2017-09-18T20:32:04.000Z
2020-08-27T03:38:03.000Z
raxmlOutputWindows/standardLayout.py
chilleo/ALPHA
61ac17a08eb4eb778cec9236f4792c97969311a2
[ "MIT" ]
3
2017-09-30T00:13:47.000Z
2019-06-18T23:24:55.000Z
raxmlOutputWindows/standardLayout.py
chilleo/ALPHA
61ac17a08eb4eb778cec9236f4792c97969311a2
[ "MIT" ]
5
2017-09-28T01:17:15.000Z
2019-05-11T08:56:29.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'standardLayout.ui' # # Created by: PyQt4 UI code generator 4.12 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: def _fromUtf8(...
39.486486
80
0.710815
2,043
0.699179
0
0
0
0
0
0
420
0.143737
45a09665933e84a803dd9206ddcc338279cc67a4
283
py
Python
setup.py
zauberzeug/rosys
10271c88ffd5dcc4fb8eec93d46fe4144a9e40d8
[ "MIT" ]
1
2022-02-20T08:21:07.000Z
2022-02-20T08:21:07.000Z
setup.py
zauberzeug/rosys
10271c88ffd5dcc4fb8eec93d46fe4144a9e40d8
[ "MIT" ]
1
2022-03-08T12:46:09.000Z
2022-03-08T12:46:09.000Z
setup.py
zauberzeug/rosys
10271c88ffd5dcc4fb8eec93d46fe4144a9e40d8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from distutils.core import setup setup( name='RoSys', version='0.1', description='Zauberzeug Robot System', author='Zauberzeug', author_email='info@zauberzeug.com', url='https://github.com/zauberzeug/rosys/', packages=['rosys'], )
21.769231
47
0.667845
0
0
0
0
0
0
0
0
137
0.484099
45a097cba2dbbe048aae9c8954d61af23516651a
7,560
py
Python
recon/nmap.py
bbhunter/recon-pipeline
234fe5e639c2a6ef7573410eb4765df07fb352d1
[ "MIT" ]
null
null
null
recon/nmap.py
bbhunter/recon-pipeline
234fe5e639c2a6ef7573410eb4765df07fb352d1
[ "MIT" ]
null
null
null
recon/nmap.py
bbhunter/recon-pipeline
234fe5e639c2a6ef7573410eb4765df07fb352d1
[ "MIT" ]
1
2020-01-30T10:27:30.000Z
2020-01-30T10:27:30.000Z
import pickle import logging import subprocess import concurrent.futures from pathlib import Path import luigi from luigi.util import inherits from recon.config import defaults from recon.masscan import ParseMasscanOutput @inherits(ParseMasscanOutput) class ThreadedNmapScan(luigi.Task): """ Run nmap against spe...
38.571429
121
0.626852
7,272
0.961905
0
0
7,330
0.969577
0
0
4,922
0.651058
45a34389a4196f702824ce54a8d761be8862131f
3,041
py
Python
docs/source/generate_cli_help.py
Conzel/CompressAI
55be017e93e25fc936fe0fb4fa5851b3c1032dfc
[ "BSD-3-Clause-Clear" ]
515
2020-06-24T23:48:02.000Z
2022-03-31T08:09:19.000Z
docs/source/generate_cli_help.py
Conzel/CompressAI
55be017e93e25fc936fe0fb4fa5851b3c1032dfc
[ "BSD-3-Clause-Clear" ]
102
2020-08-12T15:13:19.000Z
2022-03-30T22:28:16.000Z
docs/source/generate_cli_help.py
Conzel/CompressAI
55be017e93e25fc936fe0fb4fa5851b3c1032dfc
[ "BSD-3-Clause-Clear" ]
123
2020-06-25T00:32:29.000Z
2022-03-28T19:19:16.000Z
# Copyright (c) 2021-2022, InterDigital Communications, Inc # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted (subject to the limitations in the disclaimer # below) provided that the following conditions are met: # * Redistributions of source cod...
34.954023
111
0.694837
0
0
178
0.058533
0
0
0
0
1,992
0.655048
45a3d4d8a1f127580265a0a3c5979a90f99be58c
2,219
py
Python
implementation/data_io.py
rpalo/masters-thesis
fcc0beb933634b17dbe41bde982e947204fd498b
[ "MIT" ]
null
null
null
implementation/data_io.py
rpalo/masters-thesis
fcc0beb933634b17dbe41bde982e947204fd498b
[ "MIT" ]
null
null
null
implementation/data_io.py
rpalo/masters-thesis
fcc0beb933634b17dbe41bde982e947204fd498b
[ "MIT" ]
null
null
null
"""Data I/O: Import and export data to other useable formats.""" import csv from pathlib import Path from model import Job def import_csv(filename, base_dir=Path("data/")): """Converts CSV files with the relevant data (see columns below) to a list of Jobs. """ datafile = base_dir / filename with ...
36.377049
85
0.545291
0
0
0
0
0
0
0
0
691
0.311402
45a6eb2cafb85abd876f4684bf56dbe0066463d9
16,694
py
Python
research/cv/eppmvsnet/src/networks.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/eppmvsnet/src/networks.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/eppmvsnet/src/networks.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
41.424318
117
0.636157
15,773
0.94483
0
0
0
0
0
0
1,346
0.080628
45a8522dedcb5eb9f2989b1034c59beaba43571b
93
py
Python
christina/utils/__init__.py
guansss/christina
e6e8172bd7b0b68bda4f3c13f6427b7f9db4d2ef
[ "MIT" ]
null
null
null
christina/utils/__init__.py
guansss/christina
e6e8172bd7b0b68bda4f3c13f6427b7f9db4d2ef
[ "MIT" ]
null
null
null
christina/utils/__init__.py
guansss/christina
e6e8172bd7b0b68bda4f3c13f6427b7f9db4d2ef
[ "MIT" ]
null
null
null
from .eventemitter import * from .misc import * from .process import * from .string import *
18.6
27
0.741935
0
0
0
0
0
0
0
0
0
0
45a91df091f1f1c66e15a3e3dba9ef0eebdccd22
406
py
Python
apps/courses/migrations/0003_auto_20200414_1516.py
wychmod/Taro-Education
869852b33c06f6eb2c06191c4544e74db9eba8ce
[ "Apache-2.0" ]
1
2020-04-14T16:50:04.000Z
2020-04-14T16:50:04.000Z
apps/courses/migrations/0003_auto_20200414_1516.py
wychmod/Taro-Education
869852b33c06f6eb2c06191c4544e74db9eba8ce
[ "Apache-2.0" ]
3
2021-03-10T14:51:26.000Z
2022-02-27T03:03:10.000Z
apps/courses/migrations/0003_auto_20200414_1516.py
wychmod/Taro-Education
869852b33c06f6eb2c06191c4544e74db9eba8ce
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.4 on 2020-04-14 07:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('courses', '0002_chapter_add_time'), ] operations = [ migrations.AlterField( model_name='courses', name='title_pic', ...
21.368421
68
0.603448
313
0.770936
0
0
0
0
0
0
108
0.26601
45aa13a44c60964639568833f156cf26339f8f91
9,162
py
Python
master-v0/todolist_seperated.py
kaixindelele/Study-System
d64ed15d425064445e2ca6a4bb89515dec68d19c
[ "Apache-2.0" ]
null
null
null
master-v0/todolist_seperated.py
kaixindelele/Study-System
d64ed15d425064445e2ca6a4bb89515dec68d19c
[ "Apache-2.0" ]
null
null
null
master-v0/todolist_seperated.py
kaixindelele/Study-System
d64ed15d425064445e2ca6a4bb89515dec68d19c
[ "Apache-2.0" ]
null
null
null
import tkinter from tkinter import messagebox import random WINDOW_HEIGHT=1200 WINDOW_WIDTH=600 BUTTON_HEIGHT=2 BUTTON_WIDTH=10 class Item: def __init__(self, id, content): self.index=id if len(content.split(" ")) == 1: self.text=content.split(" ")[0] elif not c...
34.186567
127
0.573456
9,211
0.974915
0
0
0
0
0
0
1,582
0.167443
45aad84988a3fb71c8fae9c7b834e17f70aac378
1,728
py
Python
nesi/huawei/huawei_resources/huawei_vlan_interface.py
Tubbz-alt/NESi
0db169dd6378fbd097380280cc41440e652de19e
[ "BSD-2-Clause" ]
1
2021-04-26T23:15:33.000Z
2021-04-26T23:15:33.000Z
nesi/huawei/huawei_resources/huawei_vlan_interface.py
Tubbz-alt/NESi
0db169dd6378fbd097380280cc41440e652de19e
[ "BSD-2-Clause" ]
null
null
null
nesi/huawei/huawei_resources/huawei_vlan_interface.py
Tubbz-alt/NESi
0db169dd6378fbd097380280cc41440e652de19e
[ "BSD-2-Clause" ]
null
null
null
# This file is part of the NESi software. # # Copyright (c) 2020 # Original Software Design by Ilya Etingof <https://github.com/etingof>. # # Software adapted by inexio <https://github.com/inexio>. # - Janis Groß <https://github.com/unkn0wn-user> # - Philip Konrath <https://github.com/Connyko65> # - Alexander Dincher <...
35.265306
102
0.740162
1,131
0.654135
0
0
74
0.042799
0
0
727
0.420474
45aafdc53dd12d0a6a957bd81175c72fb3ad70c0
2,665
py
Python
src/settings/base.py
Hammerstad/blog
3075e59c46321fd5fd5ccafbfb36e6d59b765259
[ "MIT" ]
null
null
null
src/settings/base.py
Hammerstad/blog
3075e59c46321fd5fd5ccafbfb36e6d59b765259
[ "MIT" ]
null
null
null
src/settings/base.py
Hammerstad/blog
3075e59c46321fd5fd5ccafbfb36e6d59b765259
[ "MIT" ]
null
null
null
import os, re from django.contrib.messages import constants as messages BASE_DIR = os.path.dirname(os.path.dirname(__file__)) makepath = lambda *f: os.path.join(BASE_DIR, *f) # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = ')2x-r4x+4oxdmvvxenj*dhq##uxrgl%f3=#+l*1s32y=f^51hz' ALLOWED_H...
26.386139
73
0.734709
0
0
0
0
0
0
0
0
1,623
0.609006
45ab1de9e03a368e0762b53b648e16454e16ea66
4,147
py
Python
aea/cli/list.py
bryanchriswhite/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
126
2019-09-07T09:32:44.000Z
2022-03-29T14:28:41.000Z
aea/cli/list.py
salman6049/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
1,814
2019-08-24T10:08:07.000Z
2022-03-31T14:28:36.000Z
aea/cli/list.py
salman6049/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
46
2019-09-03T22:13:58.000Z
2022-03-22T01:25:16.000Z
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI Limited # # 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 ...
33.176
91
0.672534
0
0
0
0
1,461
0.352303
0
0
1,353
0.32626
45ab9ea2dc5f4b23d74ac29f8266f535d3be4159
2,703
py
Python
KeystrokeDynamics.py
lupoermeyo/Behavioural-Biometrics
0212f1de39412476f8eb852315eb2775f8e9e454
[ "Apache-2.0" ]
null
null
null
KeystrokeDynamics.py
lupoermeyo/Behavioural-Biometrics
0212f1de39412476f8eb852315eb2775f8e9e454
[ "Apache-2.0" ]
null
null
null
KeystrokeDynamics.py
lupoermeyo/Behavioural-Biometrics
0212f1de39412476f8eb852315eb2775f8e9e454
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ * @file KeystrokeDynamics.py * @brief Keystroke generator capture for L. Antichi Thesis * * @author Leonardo Antichi (<leo.antichi@sutd.uniroma3.it>) * @version 1.7 * @since 1.0 * * @copyright Copyright (c) 2017-2018 Roma Tre, Italy * @copyright Apache License, Version 2.0 """ import win32a...
32.963415
151
0.660007
0
0
0
0
0
0
0
0
677
0.250462
45abcd25079db97a67b489f518bd398d367931de
423
py
Python
portfolio/admin.py
mucahitnezir/django-starter
2b5b571da19c37941ae1634d0bd26ac8b0063b7d
[ "MIT" ]
5
2019-01-09T13:17:09.000Z
2021-04-12T19:26:11.000Z
portfolio/admin.py
mucahitnezir/django-blog
2b5b571da19c37941ae1634d0bd26ac8b0063b7d
[ "MIT" ]
9
2019-06-10T18:52:42.000Z
2021-06-10T17:36:44.000Z
portfolio/admin.py
mucahitnezir/django-blog
2b5b571da19c37941ae1634d0bd26ac8b0063b7d
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Portfolio @admin.register(Portfolio) class PortfolioAdmin(admin.ModelAdmin): list_display = ('id', 'title', 'slug', 'category', 'published_at', 'image') list_display_links = ('id',) list_editable = ('title', 'category') list_filter = ('published_at...
30.214286
79
0.678487
329
0.777778
0
0
356
0.841608
0
0
122
0.288416
45af13113748b76dff6737ce6168b834565ba369
737
py
Python
cpias/cli/__init__.py
CellProfiling/cpias
e2d9426436573b40625287101570b849ce9f4a38
[ "Apache-2.0" ]
null
null
null
cpias/cli/__init__.py
CellProfiling/cpias
e2d9426436573b40625287101570b849ce9f4a38
[ "Apache-2.0" ]
null
null
null
cpias/cli/__init__.py
CellProfiling/cpias
e2d9426436573b40625287101570b849ce9f4a38
[ "Apache-2.0" ]
null
null
null
# type: ignore """Provide a CLI.""" import logging import click from cpias import __version__ from cpias.cli.client import run_client from cpias.cli.server import start_server SETTINGS = dict(help_option_names=["-h", "--help"]) @click.group( options_metavar="", subcommand_metavar="<command>", context_settings=...
23.03125
81
0.717775
0
0
0
0
443
0.601085
0
0
127
0.17232
45b1387d07ded17b27c38254744ea03c4ab7dcf9
1,368
py
Python
server/config.py
knrdl/casa
411a71f2fcc7b2f7c6cd33973ce6f5919c9f7180
[ "MIT" ]
40
2022-01-08T18:33:33.000Z
2022-01-17T11:52:40.000Z
server/config.py
knrdl/casa
411a71f2fcc7b2f7c6cd33973ce6f5919c9f7180
[ "MIT" ]
null
null
null
server/config.py
knrdl/casa
411a71f2fcc7b2f7c6cd33973ce6f5919c9f7180
[ "MIT" ]
3
2022-01-10T03:05:45.000Z
2022-01-10T16:17:29.000Z
import os from typing import Literal, get_args, Final, Set, Dict AUTH_API_URL = os.getenv('AUTH_API_URL') AUTH_API_FIELD_USERNAME = os.getenv('AUTH_API_FIELD_USERNAME', 'username') AUTH_API_FIELD_PASSWORD = os.getenv('AUTH_API_FIELD_PASSWORD', 'password') if not AUTH_API_URL: raise Exception('please provide AUTH_A...
41.454545
103
0.681287
0
0
0
0
0
0
0
0
361
0.263889
45b2b23d27a2e53c3f068def849224f1c8fabece
4,347
py
Python
fanuc_planning/src/scripts/workspace/scene.py
oaghub/FMS
f3a4836fcb993903d239935fe05b878f3fe1f874
[ "MIT" ]
null
null
null
fanuc_planning/src/scripts/workspace/scene.py
oaghub/FMS
f3a4836fcb993903d239935fe05b878f3fe1f874
[ "MIT" ]
null
null
null
fanuc_planning/src/scripts/workspace/scene.py
oaghub/FMS
f3a4836fcb993903d239935fe05b878f3fe1f874
[ "MIT" ]
null
null
null
#! /usr/bin/env python import sys import copy import rospy import moveit_commander import moveit_msgs.msg import geometry_msgs.msg from math import pi from std_msgs.msg import String from moveit_commander.conversions import pose_to_list from geometry_msgs.msg import Pose, PoseStamped # Initializing the node represent...
28.227273
130
0.731079
0
0
0
0
0
0
0
0
2,311
0.531631
45b5fa70386d8105f33dc75fae82e50e32e78e74
502
py
Python
loaf/projects/migrations/0004_project_apt.py
phj95304/loaf_django
da3dd778fc11f4cd5583c4f4537a9bf8760756b9
[ "MIT" ]
null
null
null
loaf/projects/migrations/0004_project_apt.py
phj95304/loaf_django
da3dd778fc11f4cd5583c4f4537a9bf8760756b9
[ "MIT" ]
null
null
null
loaf/projects/migrations/0004_project_apt.py
phj95304/loaf_django
da3dd778fc11f4cd5583c4f4537a9bf8760756b9
[ "MIT" ]
null
null
null
# Generated by Django 2.0.8 on 2018-09-08 09:03 import django.contrib.postgres.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('projects', '0003_auto_20180908_1750'), ] operations = [ migrations.AddField( model_name='p...
25.1
131
0.655378
371
0.739044
0
0
0
0
0
0
96
0.191235
45b65bda8190d8c14bc4023732f98de599eb5be5
959
py
Python
effective_python/pythonic_thought/str_demo.py
ftconan/python3
eb63ba33960072f792ecce6db809866b38c402f8
[ "MIT" ]
1
2018-12-19T22:07:56.000Z
2018-12-19T22:07:56.000Z
effective_python/pythonic_thought/str_demo.py
ftconan/python3
eb63ba33960072f792ecce6db809866b38c402f8
[ "MIT" ]
12
2020-03-14T05:32:26.000Z
2022-03-12T00:08:49.000Z
effective_python/pythonic_thought/str_demo.py
ftconan/python3
eb63ba33960072f792ecce6db809866b38c402f8
[ "MIT" ]
1
2018-12-19T22:08:00.000Z
2018-12-19T22:08:00.000Z
""" @author: magician @date: 2019/12/10 @file: str_demo.py """ import os def to_str(bytes_or_str): """ to_str(python2, python3) :param bytes_or_str: :return: """ if isinstance(bytes_or_str, bytes): value = bytes_or_str.decode('utf-8') else: value = bytes_or_str ...
17.759259
53
0.595412
0
0
0
0
0
0
0
0
359
0.374348
45b98152e1ec2d40f01789e515fcc68c070f6c42
2,452
py
Python
src/python/lessons/Pokedex/Club Leader Resources/pokedex-finished.py
arve0/example_lessons
56ce7f386df2478165f4583a86b462974f5e19ec
[ "CC0-1.0" ]
2
2017-02-19T21:31:34.000Z
2019-06-27T07:55:50.000Z
src/python/lessons/Pokedex/Club Leader Resources/pokedex-finished.py
arve0/example_lessons
56ce7f386df2478165f4583a86b462974f5e19ec
[ "CC0-1.0" ]
null
null
null
src/python/lessons/Pokedex/Club Leader Resources/pokedex-finished.py
arve0/example_lessons
56ce7f386df2478165f4583a86b462974f5e19ec
[ "CC0-1.0" ]
null
null
null
from random import * import tkinter from pokeapi import * smallFont = ["Ariel" , 10] mediumFont = ["Ariel" , 14] bigFont = ["Ariel" , 24] #function to display data for a pokemon number def showPokemonData(): #get the number typed into the entry box pokemonNumber = randint(1,178) #use the function above t...
31.844156
98
0.745514
0
0
0
0
0
0
0
0
643
0.262235
45bb4339df10b2c504d23e3c5f87aad73571f0d8
551
py
Python
PythonExercicios/ex092.py
lordvinick/Python
c03fd08d4c204104bf0196b0bd129427fd2067ae
[ "MIT" ]
null
null
null
PythonExercicios/ex092.py
lordvinick/Python
c03fd08d4c204104bf0196b0bd129427fd2067ae
[ "MIT" ]
null
null
null
PythonExercicios/ex092.py
lordvinick/Python
c03fd08d4c204104bf0196b0bd129427fd2067ae
[ "MIT" ]
null
null
null
from datetime import date info = dict() info['nome'] = str(input('Nome: ')) ano = int(input('Ano de Nascimento: ')) info['idade'] = date.today().year - ano info['ctps'] = int(input('Carteira de Trabalho (0 não tem): ')) if info['ctps'] > 0: info['contratação'] = int(input('Ano de contratação: ')) info['Salário'...
36.733333
63
0.618875
0
0
0
0
0
0
0
0
220
0.392857
45bb5f01972a0422e197939fbc86dcc3efd9e8cf
2,547
py
Python
src/words/compiler/compile.py
DavidStrootman/ATP
72005be0ac75339bb5da037a7e98573e338d16db
[ "MIT" ]
2
2021-08-20T17:56:15.000Z
2021-08-21T01:04:08.000Z
src/words/compiler/compile.py
DavidStrootman/Words
72005be0ac75339bb5da037a7e98573e338d16db
[ "MIT" ]
null
null
null
src/words/compiler/compile.py
DavidStrootman/Words
72005be0ac75339bb5da037a7e98573e338d16db
[ "MIT" ]
null
null
null
from pathlib import Path from typing import Callable, Dict, List, Type, Iterator from words.lexer.lex import Lexer from words.parser.parse import Parser from words.parser.parse_util import Program from words.token_types.lexer_token import LexerToken from words.token_types.parser_token import ParserToken, VariableParse...
29.964706
97
0.650962
2,112
0.829211
0
0
1,886
0.740479
0
0
531
0.208481
45bb63a16d11fc1ffe3d85d5f0903a0791235525
666
py
Python
digger/modules/load.py
fxxkrlab/Digger
b69e23aee1f2a8eac4989badd354bd128d35100e
[ "MIT" ]
null
null
null
digger/modules/load.py
fxxkrlab/Digger
b69e23aee1f2a8eac4989badd354bd128d35100e
[ "MIT" ]
null
null
null
digger/modules/load.py
fxxkrlab/Digger
b69e23aee1f2a8eac4989badd354bd128d35100e
[ "MIT" ]
null
null
null
import os, logging, toml _cfgFile_RAW = os.path.abspath(os.path.join("conf.toml")) _cfg = toml.load(_cfgFile_RAW) ''' log setting ''' if _cfg['Servers']['server']['CONSOLE'] == 'DEBUG': logging.basicConfig( format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", level=logging.DEBUG, ) e...
28.956522
125
0.564565
0
0
0
0
0
0
0
0
314
0.471471
45bb66efdc59c469de7d495c36cb9e1d35bdedf1
793
py
Python
src/contact/models.py
daniel-werner/stelagifts
809cb70f98a1ead3acbc2fd6aea99a87fdfd9435
[ "MIT" ]
null
null
null
src/contact/models.py
daniel-werner/stelagifts
809cb70f98a1ead3acbc2fd6aea99a87fdfd9435
[ "MIT" ]
null
null
null
src/contact/models.py
daniel-werner/stelagifts
809cb70f98a1ead3acbc2fd6aea99a87fdfd9435
[ "MIT" ]
null
null
null
from django.db import models from django.utils.translation import ugettext_lazy as _ class ContactMessage(models.Model): name = models.CharField(max_length=500, verbose_name=_("Name")) email = models.EmailField(max_length=500, verbose_name=_("Email")) subject = models.CharField(max_length=1000, verbose_nam...
34.478261
74
0.686003
702
0.885246
0
0
0
0
0
0
54
0.068096
45bbcaa18c9d8b0af41194ae911dd0604064bd55
11,982
py
Python
rados_deploy/internal/remoto/modules/rados_install.py
MariskaIJpelaar/rados-deploy
4ffb467211c2b05d17d76c2423c72c0ee4d4ec99
[ "MIT" ]
null
null
null
rados_deploy/internal/remoto/modules/rados_install.py
MariskaIJpelaar/rados-deploy
4ffb467211c2b05d17d76c2423c72c0ee4d4ec99
[ "MIT" ]
null
null
null
rados_deploy/internal/remoto/modules/rados_install.py
MariskaIJpelaar/rados-deploy
4ffb467211c2b05d17d76c2423c72c0ee4d4ec99
[ "MIT" ]
1
2022-02-08T10:47:14.000Z
2022-02-08T10:47:14.000Z
import os import subprocess import tempfile import urllib.request def _get_ceph_deploy(location, silent=False, retries=5): url = 'https://github.com/ceph/ceph-deploy/archive/refs/heads/master.zip' with tempfile.TemporaryDirectory() as tmpdir: # We use a tempfile to store the downloaded archive. archiv...
54.963303
227
0.647304
0
0
0
0
0
0
0
0
5,689
0.474796
45bc17edfd4d56c459c035506d016dde933b4b38
1,539
py
Python
segment.py
jorjao81/zh-learn
9d14033361918a759dd245984c35c1cb8aa3f24f
[ "MIT" ]
2
2020-12-04T16:23:02.000Z
2021-12-25T12:54:45.000Z
segment.py
jorjao81/zh-learn
9d14033361918a759dd245984c35c1cb8aa3f24f
[ "MIT" ]
null
null
null
segment.py
jorjao81/zh-learn
9d14033361918a759dd245984c35c1cb8aa3f24f
[ "MIT" ]
1
2021-12-22T20:17:08.000Z
2021-12-22T20:17:08.000Z
from pysubparser import parser from pysubparser.util import time_to_millis from pydub import AudioSegment # find segments of conversation import sys FIVE_SECONDS = 5000 def get_segments(subtitles): segments = [] prev_end = -1000000 curr_segment = None for subtitle in subtitles: this_start ...
22.632353
104
0.622482
0
0
0
0
0
0
0
0
203
0.131904
45bc4038c9107e889c840e27905e254cabf514d3
4,766
py
Python
bot.py
BinaryWorld0101201/RSS_Feederbot
177c175fc309645661d2dd804e76f5dc8c5d726e
[ "MIT" ]
1
2019-05-14T11:34:40.000Z
2019-05-14T11:34:40.000Z
bot.py
BinaryWorld0101201/RSS_Feederbot
177c175fc309645661d2dd804e76f5dc8c5d726e
[ "MIT" ]
null
null
null
bot.py
BinaryWorld0101201/RSS_Feederbot
177c175fc309645661d2dd804e76f5dc8c5d726e
[ "MIT" ]
null
null
null
try: import feedparser, html2text, asyncio, json, datetime, telepot from loguru import logger from telepot.aio.loop import MessageLoop from telepot.aio.delegate import per_chat_id, create_open, pave_event_space except ImportError: print("Failed to import required modules.") class RSS(telepot.aio.h...
42.936937
110
0.563785
4,130
0.866555
0
0
0
0
3,972
0.833403
1,604
0.336551
45bcfaeb97ed0ff8e530ddacc88395a26d3c7e57
617
py
Python
medimg/dcm/__init__.py
arokem/nimsdata
9aba149969a4d86d18cf0d731fbd562cc0e8bfeb
[ "MIT" ]
2
2016-03-26T09:43:55.000Z
2016-11-15T11:22:06.000Z
medimg/dcm/__init__.py
arokem/nimsdata
9aba149969a4d86d18cf0d731fbd562cc0e8bfeb
[ "MIT" ]
null
null
null
medimg/dcm/__init__.py
arokem/nimsdata
9aba149969a4d86d18cf0d731fbd562cc0e8bfeb
[ "MIT" ]
1
2017-11-18T10:06:57.000Z
2017-11-18T10:06:57.000Z
""" nimsdata.medimg.dcm =================== TODO: docs? here? yes. Currently supported dicoms include the following Manufacturers and SOPs SUPPORTED_MFR - 'GE MEDICAL SYSTEMS' - 'SIEMENS' SUPPORTED_SOP - '1.2.840.10008.5.1.4.1.1.4' MR Image - '1.2.840.10008.5.1.4.1.1.7' Secondary Capture...
26.826087
81
0.583468
0
0
0
0
0
0
0
0
616
0.998379
45bdb36510e854f6de6cd3293f787a5c8f33e5a3
3,475
py
Python
tests/test_file_stream.py
cglewis/pyais
541fcc8a9edd5a826635273fc818587dbfb7ec42
[ "MIT" ]
51
2019-10-07T11:26:56.000Z
2022-03-16T10:45:15.000Z
tests/test_file_stream.py
cglewis/pyais
541fcc8a9edd5a826635273fc818587dbfb7ec42
[ "MIT" ]
57
2019-10-14T07:50:00.000Z
2022-03-28T06:52:27.000Z
tests/test_file_stream.py
cglewis/pyais
541fcc8a9edd5a826635273fc818587dbfb7ec42
[ "MIT" ]
31
2019-10-13T17:17:56.000Z
2022-03-26T16:46:54.000Z
import pathlib import unittest from unittest.case import skip from pyais.stream import FileReaderStream, should_parse from pyais.messages import NMEAMessage class TestFileReaderStream(unittest.TestCase): FILENAME = "tests/ais_test_messages" def test_reader(self): with FileReaderStream(self.FILENAME) ...
43.987342
118
0.673094
3,315
0.953957
0
0
340
0.097842
0
0
1,020
0.293525
45bdba9e5dd956513cc7f98d220c282da5cc1f1f
6,354
py
Python
i2c_max6639.py
glitchub/plio
5746dfa10fcd74d65e14d554b59883412bfc5bb4
[ "Unlicense" ]
1
2020-02-18T04:46:01.000Z
2020-02-18T04:46:01.000Z
i2c_max6639.py
glitchub/plio
5746dfa10fcd74d65e14d554b59883412bfc5bb4
[ "Unlicense" ]
null
null
null
i2c_max6639.py
glitchub/plio
5746dfa10fcd74d65e14d554b59883412bfc5bb4
[ "Unlicense" ]
null
null
null
# Driver for MAX 6639 fan controller # In normal operation: # reset() possibly with options # set_fan_ config() for each fan # set_pwm_mode() or set_rpm_mode() for each fan. from __future__ import print_function try: from i2c import i2c except: from .i2c import i2c class max6639: # registers, some may ac...
43.520548
126
0.567202
5,403
0.850331
0
0
0
0
0
0
1,897
0.298552
45be769f411fd4437219b4961db9cd7cef98434f
1,423
py
Python
Scripts/005_pyo/scripts/tutorial/s042_hilbert_transform.py
OrangePeelFX/Python-Tutorial
0d47f194553666304765f5bbc928374b7aec8a48
[ "MIT" ]
null
null
null
Scripts/005_pyo/scripts/tutorial/s042_hilbert_transform.py
OrangePeelFX/Python-Tutorial
0d47f194553666304765f5bbc928374b7aec8a48
[ "MIT" ]
1
2021-06-02T00:28:17.000Z
2021-06-02T00:28:17.000Z
Scripts/005_pyo/scripts/tutorial/s042_hilbert_transform.py
florianwns/python-scripts
0d47f194553666304765f5bbc928374b7aec8a48
[ "MIT" ]
1
2020-01-13T11:08:18.000Z
2020-01-13T11:08:18.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Effet de déphasage à la Barberpole. Cet exemple utilise deux déphaseurs (basés sur une modulation complexe) décalant linéairement le contenu fréquentiel d'un son. Le décalage de fréquence est similaire à la modulation en anneaux, sauf que les bandes latérales supérie...
25.410714
79
0.668306
578
0.401947
0
0
0
0
0
0
792
0.550765
45bebfee1fc6c99b8d76516c463bc09140a29f6d
8,885
py
Python
odfdo/paragraph_base.py
mat-m/odfdo
a4a509a056517ecf91449e029b36fe9a8ffa8ed0
[ "Apache-2.0" ]
null
null
null
odfdo/paragraph_base.py
mat-m/odfdo
a4a509a056517ecf91449e029b36fe9a8ffa8ed0
[ "Apache-2.0" ]
null
null
null
odfdo/paragraph_base.py
mat-m/odfdo
a4a509a056517ecf91449e029b36fe9a8ffa8ed0
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Jérôme Dumonteil # Copyright (c) 2009-2013 Ars Aperta, Itaapy, Pierlis, Talend. # # 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...
31.39576
79
0.538323
3,418
0.384218
0
0
0
0
0
0
3,235
0.363647
45bfe5c078f298141870f59d4be7cfb5f40df620
659
py
Python
myUnittest/case_way/case_drive_config.py
ChenJiR/MyPyUnittest
77ecde87218a0ca7482e4d1dfebd403e2325165a
[ "MIT" ]
null
null
null
myUnittest/case_way/case_drive_config.py
ChenJiR/MyPyUnittest
77ecde87218a0ca7482e4d1dfebd403e2325165a
[ "MIT" ]
null
null
null
myUnittest/case_way/case_drive_config.py
ChenJiR/MyPyUnittest
77ecde87218a0ca7482e4d1dfebd403e2325165a
[ "MIT" ]
null
null
null
import os DRIVER_DB = 'db_to_case' DRIVER_EXCEL = 'excel_to_case' DRIVER_TXT = 'txt_to_case' db_case_config = { 'host': '127.0.0.1', 'username': 'root', 'password': 'root', 'port': 3306, 'db': 'test', } excel_case_config = { 'path': os.path.dirname(__file__) + str('/excel_case/'), 'defaul...
17.810811
60
0.654021
0
0
0
0
0
0
0
0
231
0.350531
45c03052ca9a5026e2efea8fa7acae8f6c0c55cc
3,634
py
Python
manage/sawtooth_manage/node.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
1
2017-08-04T10:31:00.000Z
2017-08-04T10:31:00.000Z
core/sawtooth/manage/node.py
gabykyei/GC_BlockChain_T_Rec
b72cb483064852d0a60286943ff55233462fea08
[ "Apache-2.0" ]
1
2021-12-09T23:11:26.000Z
2021-12-09T23:11:26.000Z
core/sawtooth/manage/node.py
gabykyei/GC_BlockChain_T_Rec
b72cb483064852d0a60286943ff55233462fea08
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
26.333333
80
0.63869
2,892
0.795817
0
0
733
0.201706
0
0
1,210
0.332966
45c0e8bae3f25948b5b8cba3047d88441aee1315
1,253
py
Python
Python/Zelle/Chapter8_LoopStructuresBooleans/ProgrammingExercises/4_SyracuseSequence/syracuseSequence.py
jeffvswanson/CodingPractice
9ea8e0dd504230cea0e8684b31ef22c3ed90d2fb
[ "MIT" ]
null
null
null
Python/Zelle/Chapter8_LoopStructuresBooleans/ProgrammingExercises/4_SyracuseSequence/syracuseSequence.py
jeffvswanson/CodingPractice
9ea8e0dd504230cea0e8684b31ef22c3ed90d2fb
[ "MIT" ]
null
null
null
Python/Zelle/Chapter8_LoopStructuresBooleans/ProgrammingExercises/4_SyracuseSequence/syracuseSequence.py
jeffvswanson/CodingPractice
9ea8e0dd504230cea0e8684b31ef22c3ed90d2fb
[ "MIT" ]
null
null
null
# syracuseSequence.py # A program that prints a Syracuse sequence. """The Syracuse (also called "Collatz" or "Hailstone") sequence is generated by starting with a natural number and repeatedly applying the following function until reaching 1: syr(x) = x/2 (if x is even), 3x + 1 (if x is odd) For example, the Syracu...
30.560976
79
0.630487
0
0
0
0
0
0
0
0
782
0.624102
45c2208cd42d48ae80a6876c9b2e2896638c303c
731
py
Python
setup.py
waynew/todo-flask
3cb3c7b50e4c1b6370d63e21b23dca0ec56e9313
[ "BSD-2-Clause" ]
null
null
null
setup.py
waynew/todo-flask
3cb3c7b50e4c1b6370d63e21b23dca0ec56e9313
[ "BSD-2-Clause" ]
null
null
null
setup.py
waynew/todo-flask
3cb3c7b50e4c1b6370d63e21b23dca0ec56e9313
[ "BSD-2-Clause" ]
null
null
null
from setuptools import setup setup( name = "todo-flask", version = "0.0.1", author = "Wayne Werner", author_email = "waynejwerner@gmail.com", description = "A sample todo app written with Flask, unittest, and sqlite", license = "BSD", keywords = "example flask unittest", url = "https://...
30.458333
82
0.632011
0
0
0
0
0
0
0
0
387
0.529412
45c2d3a01088393fc4acdc16b9de54511df97676
17,834
py
Python
reveries/maya/pipeline.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
3
2020-04-01T10:51:17.000Z
2021-08-05T18:35:23.000Z
reveries/maya/pipeline.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
null
null
null
reveries/maya/pipeline.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
1
2020-07-05T12:06:30.000Z
2020-07-05T12:06:30.000Z
import os import logging import avalon.maya import avalon.io from collections import defaultdict from avalon.maya.pipeline import ( AVALON_CONTAINER_ID, AVALON_CONTAINERS, containerise, ) from maya import cmds from . import lib from .vendor import sticker from .capsule import namespaced, nodes_locker from...
29.236066
79
0.618313
0
0
302
0.016934
0
0
0
0
6,399
0.358809
45c440eae6695f819733ad7666e871c73dcc0582
2,697
py
Python
app.py
kmr2/vefferk5
5fe8604781ed65f62a6be8e71381296693215343
[ "MIT" ]
null
null
null
app.py
kmr2/vefferk5
5fe8604781ed65f62a6be8e71381296693215343
[ "MIT" ]
null
null
null
app.py
kmr2/vefferk5
5fe8604781ed65f62a6be8e71381296693215343
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request, session, redirect, url_for import pyrebase app = Flask(__name__) app.config['SECRET_KEY'] = 'covid_19' config = { "apiKey": "AIzaSyB6L9PLOIa-y8spupA2UFiegQGN7gmp12E", "authDomain": "vefferk5.firebaseapp.com", "databaseURL": "https://vefferk5.firebaseio.c...
26.70297
88
0.622914
0
0
0
0
1,692
0.62069
0
0
1,071
0.392883
45c45593e29f001e140d37954419e1ef43c370f9
2,511
py
Python
pax/utils.py
jacr20/pax
d64d0ae4e4ec3e9bb3e61065ed92e9ea23328940
[ "BSD-3-Clause" ]
17
2016-04-24T12:02:03.000Z
2021-07-19T19:39:47.000Z
pax/utils.py
jacr20/pax
d64d0ae4e4ec3e9bb3e61065ed92e9ea23328940
[ "BSD-3-Clause" ]
300
2016-04-01T15:29:57.000Z
2021-01-03T23:59:45.000Z
pax/utils.py
jacr20/pax
d64d0ae4e4ec3e9bb3e61065ed92e9ea23328940
[ "BSD-3-Clause" ]
20
2016-04-14T15:11:26.000Z
2021-09-18T06:39:09.000Z
"""Helper routines needed in pax Please only put stuff here that you *really* can't find any other place for! e.g. a list clustering routine that isn't in some standard, library but several plugins depend on it """ import re import sys import inspect import random import string import logging import time import os im...
26.15625
103
0.657905
621
0.247312
0
0
0
0
0
0
871
0.346874
45c86dc6e97cf9f5c6efe3cc3e929be95a0cc82d
3,251
py
Python
app/auth/forms.py
austinmcconnell/myflaskapp
79223c0480387fd95e8dd26620bf0cd50659161c
[ "BSD-3-Clause" ]
null
null
null
app/auth/forms.py
austinmcconnell/myflaskapp
79223c0480387fd95e8dd26620bf0cd50659161c
[ "BSD-3-Clause" ]
41
2018-01-21T22:49:43.000Z
2022-01-21T19:11:52.000Z
app/auth/forms.py
austinmcconnell/myflaskapp
79223c0480387fd95e8dd26620bf0cd50659161c
[ "BSD-3-Clause" ]
1
2018-02-14T23:27:56.000Z
2018-02-14T23:27:56.000Z
from flask_babel import _, lazy_gettext as _l from flask_wtf import FlaskForm from wtforms import PasswordField, StringField, SubmitField from wtforms.validators import DataRequired, Email, EqualTo, Length from app.user.models import User class RegisterForm(FlaskForm): """Register form.""" username = String...
37.802326
116
0.62996
2,999
0.922485
0
0
0
0
0
0
484
0.148877
45c8bb81a03ef5a3614a21fdea7815af182bb4cc
674
py
Python
tock/session/memory.py
elebescond/tock-py
2addcaa671be4a7af7cdf9bc061c707bbcf7128a
[ "MIT" ]
4
2020-09-05T10:08:34.000Z
2021-10-05T05:38:59.000Z
tock/session/memory.py
elebescond/tock-py
2addcaa671be4a7af7cdf9bc061c707bbcf7128a
[ "MIT" ]
16
2020-09-03T14:13:24.000Z
2021-03-22T09:54:08.000Z
tock/session/memory.py
elebescond/tock-py
2addcaa671be4a7af7cdf9bc061c707bbcf7128a
[ "MIT" ]
3
2020-09-15T09:04:06.000Z
2021-03-04T12:40:27.000Z
# -*- coding: utf-8 -*- from typing import List from tock.session.storage import Storage from tock.session.session import Session from tock.models import UserId class MemoryStorage(Storage): def __init__(self): self.__sessions: List[Session] = [] def get_session(self, user_id: UserId) -> Session: ...
26.96
54
0.648368
509
0.755193
0
0
0
0
0
0
23
0.034125
45c8f3a70c973964d6c049db2cb9fbfddac2a6fa
2,607
py
Python
tests/tests.py
hamedrb/pystripe
8ffd6f64f9074562d2c8b293b57cc795bfdcc196
[ "MIT" ]
null
null
null
tests/tests.py
hamedrb/pystripe
8ffd6f64f9074562d2c8b293b57cc795bfdcc196
[ "MIT" ]
null
null
null
tests/tests.py
hamedrb/pystripe
8ffd6f64f9074562d2c8b293b57cc795bfdcc196
[ "MIT" ]
null
null
null
import numpy as np import unittest import os import tempfile # import matplotlib.pyplot as plt from pystripe import core class TestWavedec(unittest.TestCase): def test(self): img = np.eye(5) coeffs = core.wavedec(img, wavelet='db1', level=None) approx = coeffs[0] self.assertEqual(l...
31.409639
108
0.628308
2,234
0.856924
0
0
0
0
0
0
385
0.147679
45ca35a0fa15eddc046aeaf9cbdd5eec81b1f362
47
py
Python
classifier/fracture_detector/callback/__init__.py
MIPT-Oulu/DeepWrist
9c26ee8639d748671f30a7a45487885989c53fa1
[ "MIT" ]
2
2021-03-03T12:38:15.000Z
2022-03-16T10:57:28.000Z
classifier/fracture_detector/callback/__init__.py
MIPT-Oulu/DeepWrist
9c26ee8639d748671f30a7a45487885989c53fa1
[ "MIT" ]
2
2022-03-07T20:03:42.000Z
2022-03-09T10:47:42.000Z
classifier/fracture_detector/callback/__init__.py
MIPT-Oulu/DeepWrist
9c26ee8639d748671f30a7a45487885989c53fa1
[ "MIT" ]
null
null
null
from ._callback_ptl import ReleaseAfterCallback
47
47
0.914894
0
0
0
0
0
0
0
0
0
0
45cb875e47bdd91ec509e33643403788946586df
288
py
Python
setup.py
mrshurik/mean_average_precision
36634422426ab598918d0f7449bcbc8201cf4381
[ "MIT" ]
119
2017-08-25T00:59:22.000Z
2022-01-04T11:08:38.000Z
setup.py
mrshurik/mean_average_precision
36634422426ab598918d0f7449bcbc8201cf4381
[ "MIT" ]
22
2017-10-04T03:42:43.000Z
2021-01-16T15:43:30.000Z
setup.py
mrshurik/mean_average_precision
36634422426ab598918d0f7449bcbc8201cf4381
[ "MIT" ]
46
2017-10-17T18:38:00.000Z
2021-04-09T17:47:44.000Z
from distutils.core import setup from setuptools import find_packages setup( name='mean_average_precision', version='0.1', packages=find_packages(), url='', license='MIT', author='Mathieu Garon', author_email='mathieugaron91@gmail.com', description='' )
19.2
44
0.6875
0
0
0
0
0
0
0
0
79
0.274306
45cd3bffb17086c822a03c780110bdb0ff225e07
38
py
Python
OctaHomeNagios/OctaFiles/__init__.py
Tomcuzz/OctaHomeAutomation
4f0c5ea8b3d5b6e67633ae9c4cb95287d2784f5e
[ "MIT" ]
4
2016-08-14T22:07:03.000Z
2020-10-05T14:43:03.000Z
OctaHomeNagios/OctaFiles/__init__.py
Tomcuzz/OctaHomeAutomation
4f0c5ea8b3d5b6e67633ae9c4cb95287d2784f5e
[ "MIT" ]
null
null
null
OctaHomeNagios/OctaFiles/__init__.py
Tomcuzz/OctaHomeAutomation
4f0c5ea8b3d5b6e67633ae9c4cb95287d2784f5e
[ "MIT" ]
null
null
null
from menus import * from urls import *
19
19
0.763158
0
0
0
0
0
0
0
0
0
0
45cd8cd79b7985a77b217cfc932114de4167b993
8,854
py
Python
third_party/lid_adversarial_subspace_detection/adaptive_attacks.py
ptrcarta/neural-fingerprinting
01fa8cb592f6fa7497c6884861adf7680ffa7f29
[ "BSD-3-Clause" ]
29
2018-03-10T04:33:25.000Z
2022-03-18T13:03:37.000Z
third_party/lid_adversarial_subspace_detection/adaptive_attacks.py
ptrcarta/neural-fingerprinting
01fa8cb592f6fa7497c6884861adf7680ffa7f29
[ "BSD-3-Clause" ]
2
2019-07-22T20:59:01.000Z
2019-11-17T07:00:00.000Z
third_party/lid_adversarial_subspace_detection/adaptive_attacks.py
StephanZheng/neural-fingerprinting
57e93e487ef324427456b14d1d81bc9e08483d27
[ "BSD-3-Clause" ]
20
2018-03-14T14:01:55.000Z
2021-09-17T19:19:56.000Z
from __future__ import absolute_import from __future__ import print_function import copy from collections import defaultdict import numpy as np import tensorflow as tf from tqdm import tqdm from six.moves import xrange import sys sys.path.append('../../.') from cleverhans.utils import other_classes from cl...
35.99187
106
0.583465
0
0
0
0
0
0
0
0
2,166
0.244635
45cdb841e19bbd7ee0c6ca21d0ef0accbb5b6f9d
2,009
py
Python
pykit/ir/pretty.py
ContinuumIO/pyk
1730d7b831e0cf12a641ac23b5cf03e17e0dc550
[ "BSD-3-Clause" ]
9
2015-06-23T00:13:49.000Z
2022-02-23T02:46:43.000Z
pykit/ir/pretty.py
ContinuumIO/pyk
1730d7b831e0cf12a641ac23b5cf03e17e0dc550
[ "BSD-3-Clause" ]
1
2017-08-30T08:13:12.000Z
2017-08-31T06:36:32.000Z
pykit/ir/pretty.py
ContinuumIO/pyk
1730d7b831e0cf12a641ac23b5cf03e17e0dc550
[ "BSD-3-Clause" ]
7
2015-05-08T10:17:47.000Z
2021-04-01T15:00:57.000Z
# -*- coding: utf-8 -*- """ Pretty print pykit IR. """ from __future__ import print_function, division, absolute_import from pykit.utils import hashable prefix = lambda s: '%' + s indent = lambda s: '\n'.join(' ' + s for s in s.splitlines()) ejoin = "".join sjoin = " ".join ajoin = ", ".join njoin = "\n".join...
25.75641
86
0.594823
0
0
0
0
0
0
0
0
251
0.124938
45cea41fbca701da0133eaa849e6902c4fa1ad42
9,059
py
Python
parser.py
JonahSussman/closure-language
9cbe9e381e81dc645c8e82096366fd50a60a6d32
[ "MIT" ]
null
null
null
parser.py
JonahSussman/closure-language
9cbe9e381e81dc645c8e82096366fd50a60a6d32
[ "MIT" ]
null
null
null
parser.py
JonahSussman/closure-language
9cbe9e381e81dc645c8e82096366fd50a60a6d32
[ "MIT" ]
null
null
null
from expr import Expr from stmt import Stmt class Parser: class ParserError(Exception): pass def __init__(self, tokens): self.tokens = tokens self.c_tok = 0 def match(self, *kinds): if self.c_tok == len(self.tokens): return False for kind in kinds: if kind == self.tokens[self....
24.286863
85
0.610001
9,013
0.994922
0
0
0
0
0
0
740
0.081687
45d0300dc539119af7cf8c40a9178087f5bac8ed
332
py
Python
layers/modules/__init__.py
frezaeix/AttFDNet
e4021b259e187e9180a83fcb67c029144bdd5789
[ "MIT" ]
1
2021-03-07T01:09:33.000Z
2021-03-07T01:09:33.000Z
layers/modules/__init__.py
frezaeix/AttFDNet
e4021b259e187e9180a83fcb67c029144bdd5789
[ "MIT" ]
null
null
null
layers/modules/__init__.py
frezaeix/AttFDNet
e4021b259e187e9180a83fcb67c029144bdd5789
[ "MIT" ]
null
null
null
from .multibox_tf_loss import MultiBoxLoss_tf_source from .knowledge_distillation_loss import KD_loss from .imprinted_object import search_imprinted_weights from .multibox_tf_loss_target import MultiBoxLoss_tf_target __all__ = ['MultiBoxLoss_tf_source', 'KD_loss', 'search_imprinted_weights', 'MultiBoxLoss_...
36.888889
64
0.840361
0
0
0
0
0
0
0
0
83
0.25
45d222639670f52b0e3c20513666dbe93a9ab705
549
py
Python
lab4.py
kayla-koyne/ia241-github-1
b731725ed6aabddf123713a5fe963cef53a0d2e4
[ "MIT" ]
null
null
null
lab4.py
kayla-koyne/ia241-github-1
b731725ed6aabddf123713a5fe963cef53a0d2e4
[ "MIT" ]
null
null
null
lab4.py
kayla-koyne/ia241-github-1
b731725ed6aabddf123713a5fe963cef53a0d2e4
[ "MIT" ]
null
null
null
''' lab4 ''' #3.1 my_dict= { 'name':'Tom', 'id':123 } print(my_dict) #3.2 print(my_dict.values()) print(my_dict.keys()) #3.3 my_id='321' print(my_id) #3.4 my_dict.pop('name') print(my_dict) #3.5 my_tweet= { "tweet_id":1138, "coordinates": (-75, 40), "visited_countries": ["GR", "HK", "MY"] } print(my_twee...
10.98
46
0.639344
0
0
0
0
0
0
0
0
206
0.375228
45d40de792c24807854989ee3810dccce94912de
945
py
Python
src/TeaRoom/urls.py
graipher/TeaRoom
0beb8c2c889b8685d5b7a463206de41947c2d669
[ "MIT" ]
null
null
null
src/TeaRoom/urls.py
graipher/TeaRoom
0beb8c2c889b8685d5b7a463206de41947c2d669
[ "MIT" ]
15
2015-05-20T12:55:13.000Z
2022-03-11T23:26:40.000Z
src/TeaRoom/urls.py
graipher/TeaRoom
0beb8c2c889b8685d5b7a463206de41947c2d669
[ "MIT" ]
2
2016-11-17T11:07:41.000Z
2017-07-07T11:18:36.000Z
from django.conf.urls import patterns, include, url from django.contrib import admin from django.conf import settings from django.conf.urls.static import static import profiles.urls import accounts.urls import courses.urls import uploader.urls from . import views # Links URLs to views urlpatterns = patterns( '', ...
36.346154
76
0.71746
0
0
0
0
0
0
0
0
211
0.22328
45d46add472272ae767f9079eea6562c74ec4a68
2,546
py
Python
app/models.py
barbaramootian/personal_blog
0cbdf4d4c71c6dd04a0e1ce3d059ce0816179ca6
[ "Unlicense", "MIT" ]
null
null
null
app/models.py
barbaramootian/personal_blog
0cbdf4d4c71c6dd04a0e1ce3d059ce0816179ca6
[ "Unlicense", "MIT" ]
null
null
null
app/models.py
barbaramootian/personal_blog
0cbdf4d4c71c6dd04a0e1ce3d059ce0816179ca6
[ "Unlicense", "MIT" ]
null
null
null
from datetime import datetime from . import db, login_manager from flask_login import UserMixin from werkzeug.security import generate_password_hash, check_password_hash class User(db.Model, UserMixin): __tablename__ = 'users' id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(225)...
34.876712
81
0.692852
2,276
0.893951
0
0
430
0.168892
0
0
295
0.115868
45d79374760aed11ea1437698d8d2f46c96c56da
1,741
py
Python
hg/tests/test_tip.py
pakit/test_staging
9be9a6aa392c33926edb6f6ea6af64b4d23224ee
[ "BSD-3-Clause" ]
1
2020-10-06T02:26:24.000Z
2020-10-06T02:26:24.000Z
hg/tests/test_tip.py
pakit/test_staging
9be9a6aa392c33926edb6f6ea6af64b4d23224ee
[ "BSD-3-Clause" ]
null
null
null
hg/tests/test_tip.py
pakit/test_staging
9be9a6aa392c33926edb6f6ea6af64b4d23224ee
[ "BSD-3-Clause" ]
null
null
null
'''Test output of {tip}.''' from nose import * from util import * def _tip_rev(): opts = { 'template': '{rev}', } _ui = get_sandbox_ui() _ui.pushbuffer() commands.tip(_ui, get_sandbox_repo(), **opts) return _ui.popbuffer() def _tip_node(): opts = { 'template': '{node}', } ...
22.320513
56
0.598507
0
0
0
0
1,283
0.736933
0
0
298
0.171166
45d7b22d2dda2ca5aca71ca725c9ff79916acd55
44
py
Python
src/fractal/world/_op/end/state.py
jedhsu/fractal
97833ddc5063fae72352cf590738fef508c02f0c
[ "MIT" ]
null
null
null
src/fractal/world/_op/end/state.py
jedhsu/fractal
97833ddc5063fae72352cf590738fef508c02f0c
[ "MIT" ]
null
null
null
src/fractal/world/_op/end/state.py
jedhsu/fractal
97833ddc5063fae72352cf590738fef508c02f0c
[ "MIT" ]
null
null
null
class EndState(metaclass=ABCMeta): pass
14.666667
34
0.75
43
0.977273
0
0
0
0
0
0
0
0
45d7d0388364df4712cd375ea072f369e100ecba
3,542
py
Python
oocran/django/operators/views.py
howls90/oocran
9951f3ff752f9f6517a4d016476c1d1e2bb44a4d
[ "Apache-2.0", "BSD-3-Clause" ]
3
2018-12-12T10:32:16.000Z
2022-02-07T19:46:10.000Z
oocran/django/operators/views.py
howls90/oocran
9951f3ff752f9f6517a4d016476c1d1e2bb44a4d
[ "Apache-2.0", "BSD-3-Clause" ]
1
2017-01-11T06:56:35.000Z
2017-01-11T06:58:44.000Z
oocran/django/operators/views.py
howls90/OOCRAN
9951f3ff752f9f6517a4d016476c1d1e2bb44a4d
[ "Apache-2.0", "BSD-3-Clause" ]
6
2017-05-29T03:34:23.000Z
2022-02-07T19:46:11.000Z
""" Open Orchestrator Cloud Radio Access Network 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...
34.38835
115
0.709486
0
0
0
0
2,233
0.630435
0
0
1,087
0.306889
45d7eeb536d9afa54b424f98a4bd81f25efce2fc
2,066
py
Python
ad2dispatch/news/views.py
cetaSYN/ad2dispatch
a3fa7585aaf18905d7914faaa5d1d6f584c2dab4
[ "Apache-2.0" ]
null
null
null
ad2dispatch/news/views.py
cetaSYN/ad2dispatch
a3fa7585aaf18905d7914faaa5d1d6f584c2dab4
[ "Apache-2.0" ]
29
2019-01-25T16:05:58.000Z
2020-03-21T21:18:58.000Z
ad2dispatch/news/views.py
cetaSYN/ad2dispatch
a3fa7585aaf18905d7914faaa5d1d6f584c2dab4
[ "Apache-2.0" ]
4
2019-01-25T15:55:04.000Z
2019-01-25T17:33:02.000Z
import markdown from django.http import Http404 from django.shortcuts import render from pages.models import get_top_pages from userprofiles.models import Volunteer from .models import Article def index(request): try: article_list = Article.objects.values( 'id', 'title', 'created_date').order...
29.514286
102
0.631171
0
0
0
0
0
0
0
0
483
0.233785
45d824fccee32ba7826f0cbb0aaa47b2a5382c06
727
py
Python
src/python/zquantum/core/history/recording_functions_with_gradient_test.py
kottmanj/z-quantum-core
21752e92e79aafedbfeb6e7ae196bdc2fd5803e4
[ "Apache-2.0" ]
null
null
null
src/python/zquantum/core/history/recording_functions_with_gradient_test.py
kottmanj/z-quantum-core
21752e92e79aafedbfeb6e7ae196bdc2fd5803e4
[ "Apache-2.0" ]
null
null
null
src/python/zquantum/core/history/recording_functions_with_gradient_test.py
kottmanj/z-quantum-core
21752e92e79aafedbfeb6e7ae196bdc2fd5803e4
[ "Apache-2.0" ]
null
null
null
"""Test cases for recording functions with gradients.""" import pytest import numpy as np from .example_functions import function_1, Function2, Function5 from .recorder import recorder from ..interfaces.functions import CallableWithGradient @pytest.mark.parametrize( "function,params", [ (function_1, n...
31.608696
77
0.72077
0
0
0
0
483
0.664374
0
0
73
0.100413
45da00cb76f03be18a89a07dd9e8e2426fff0cf4
15,085
py
Python
optical/converter/utils.py
hashtagml/optical
1ed11c403b5041497e5b795681b962280c4723d8
[ "MIT" ]
10
2021-04-11T04:45:54.000Z
2022-02-17T07:49:48.000Z
optical/converter/utils.py
hashtagml/optical
1ed11c403b5041497e5b795681b962280c4723d8
[ "MIT" ]
9
2021-04-13T18:09:38.000Z
2021-05-05T13:21:20.000Z
optical/converter/utils.py
hashtagml/optical
1ed11c403b5041497e5b795681b962280c4723d8
[ "MIT" ]
null
null
null
""" __author__: HashTagML license: MIT Created: Sunday, 28th March 2021 """ import json import io import os import shutil import warnings from pathlib import Path, PosixPath from typing import Any, Callable, Dict, Optional, Union import pandas as pd from lxml import etree as xml from PIL import Image import xml.etree...
34.284091
115
0.628638
0
0
0
0
0
0
0
0
5,111
0.338813
45daf2ba13dd10d36a72a6b2b05dc29e34435812
2,960
py
Python
bad_requests/request.py
Ben435/BensLoadTestTool
039c28a6c46cc8b7d6284fffdbf3a5c95158daed
[ "Apache-2.0" ]
1
2018-03-08T07:09:12.000Z
2018-03-08T07:09:12.000Z
bad_requests/request.py
Ben435/BensLoadTestTool
039c28a6c46cc8b7d6284fffdbf3a5c95158daed
[ "Apache-2.0" ]
null
null
null
bad_requests/request.py
Ben435/BensLoadTestTool
039c28a6c46cc8b7d6284fffdbf3a5c95158daed
[ "Apache-2.0" ]
null
null
null
import socket import ssl from bad_requests.response import Response HTTP_STANDARD_PORTS = [80] HTTPS_STANDARD_PORTS = [443, 8080] BUFFERSIZE = 1024 class Request: def __init__(self, host, message, get_body=True): self.host = host self.message = message self.get_body = get_body def s...
30.515464
113
0.529392
2,807
0.948311
0
0
0
0
0
0
371
0.125338
45db1ddc9bbef6c02d6ebbfcea0de3c07ec3bc2b
2,055
py
Python
tests/status_test.py
araines/supervisor-newrelic
8061ced419e1603367272a42b729414a7a51ac35
[ "MIT" ]
4
2019-02-11T03:17:45.000Z
2022-01-17T19:53:03.000Z
tests/status_test.py
araines/supervisor-newrelic
8061ced419e1603367272a42b729414a7a51ac35
[ "MIT" ]
3
2016-12-24T07:30:32.000Z
2017-07-11T11:12:51.000Z
tests/status_test.py
araines/supervisor-newrelic
8061ced419e1603367272a42b729414a7a51ac35
[ "MIT" ]
2
2018-11-27T08:31:23.000Z
2021-03-04T16:59:13.000Z
import mock import unittest from StringIO import StringIO from supervisor_newrelic.status import Status def mock_request(*args, **kwargs): class MockResponse: def __init__(self, json_data, status_code): self.json_data = json_data self.status_code = status_code def json(sel...
36.052632
87
0.66618
1,670
0.812652
0
0
979
0.476399
0
0
470
0.22871
45ddecfc6b040befb28c16618390c57c59d78c8c
11,100
py
Python
tuning.py
grdavis/college-basketball-elo
b26518d3114012bac8b1994f82e7dc93099f15bf
[ "MIT" ]
6
2022-02-07T01:07:57.000Z
2022-03-28T05:49:37.000Z
tuning.py
grdavis/college-basketball-elo
b26518d3114012bac8b1994f82e7dc93099f15bf
[ "MIT" ]
4
2022-03-01T21:55:24.000Z
2022-03-29T18:49:45.000Z
tuning.py
grdavis/college-basketball-elo
b26518d3114012bac8b1994f82e7dc93099f15bf
[ "MIT" ]
2
2022-02-25T01:32:53.000Z
2022-03-03T03:45:36.000Z
import numpy as np from tqdm import tqdm import elo import utils import random import plotly.graph_objects as go from sklearn.metrics import r2_score from scipy.stats import linregress import pandas as pd from predictions import predict_tournament, ROUNDS ERRORS_START = 4 #after 4 seasons (starts counting errors 20141...
49.333333
202
0.697117
1,929
0.173784
0
0
0
0
0
0
7,477
0.673604
45dfa94f9d32503706cf8aacffa0d5d22fe3e19c
3,075
py
Python
aula4/classifica_junto.py
davidpvilaca/TEP
decbf61a96863d76e1b84dc097aa37b12038aa75
[ "MIT" ]
2
2017-08-28T18:24:47.000Z
2019-08-29T03:34:15.000Z
aula4/classifica_junto.py
davidpvilaca/TEP
decbf61a96863d76e1b84dc097aa37b12038aa75
[ "MIT" ]
null
null
null
aula4/classifica_junto.py
davidpvilaca/TEP
decbf61a96863d76e1b84dc097aa37b12038aa75
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Aug 19 13:21:45 2017 @author: davidpvilaca """ import matplotlib.pyplot as plt import numpy as np import cv2 def getHist(arr_img): hists = [] sm = [] for img in arr_img: hist = cv2.calcHist([img], [0, 1, 2], None, [8, 8, 8], [0, 2...
27.954545
113
0.506341
0
0
0
0
0
0
0
0
590
0.19187
45dfb1283861c5bba5c59b6a90a79e3eb6fa9f46
8,005
py
Python
package_management/package_manager.py
m-j/ziprepo-server
35c1f40c3ba5489fb8731e8d66b301333dc9f8b0
[ "MIT" ]
null
null
null
package_management/package_manager.py
m-j/ziprepo-server
35c1f40c3ba5489fb8731e8d66b301333dc9f8b0
[ "MIT" ]
null
null
null
package_management/package_manager.py
m-j/ziprepo-server
35c1f40c3ba5489fb8731e8d66b301333dc9f8b0
[ "MIT" ]
null
null
null
import copy import json import logging import os import shutil from distutils.version import LooseVersion from threading import Lock from typing import List, Dict, Optional from zipfile import ZipFile import aiofiles from tornado.ioloop import IOLoop from package_management.constants import zpspec_filename, package_n...
41.262887
132
0.713679
6,802
0.849719
1,235
0.154279
0
0
1,572
0.196377
719
0.089819
45e14d9917c6a309e9123db8edeb4be716e89467
631
py
Python
wordsToQubits/encoding/word_to_binar.py
VoicuTomut/Qountry
841467eca5704fd24c49000668f739cae8155b59
[ "MIT" ]
null
null
null
wordsToQubits/encoding/word_to_binar.py
VoicuTomut/Qountry
841467eca5704fd24c49000668f739cae8155b59
[ "MIT" ]
null
null
null
wordsToQubits/encoding/word_to_binar.py
VoicuTomut/Qountry
841467eca5704fd24c49000668f739cae8155b59
[ "MIT" ]
null
null
null
""" encode the word on a pure state. """ import pennylane as qml def put_word_on_qubits(word_rep, qubits, base="X"): """ :param word_rep: "00..10..0" :param qubits: :param base: """ word_rep = str(word_rep) if base == "X": for i in range(len(word_rep)): if word_rep[i]...
22.535714
51
0.496038
0
0
0
0
0
0
0
0
142
0.22504
45e194e23cc8440b698a5029bc927b2512c3eb9c
17,667
py
Python
cell2location/models/base/_pyro_mixin.py
jjhong922/cell2location
2c2eb49aa3c0263fe8c6d45baf4ca0345baf21d9
[ "Apache-2.0" ]
null
null
null
cell2location/models/base/_pyro_mixin.py
jjhong922/cell2location
2c2eb49aa3c0263fe8c6d45baf4ca0345baf21d9
[ "Apache-2.0" ]
null
null
null
cell2location/models/base/_pyro_mixin.py
jjhong922/cell2location
2c2eb49aa3c0263fe8c6d45baf4ca0345baf21d9
[ "Apache-2.0" ]
null
null
null
from datetime import date from functools import partial import matplotlib import matplotlib.pyplot as plt import numpy as np import pandas as pd import pyro import torch from pyro import poutine from pyro.infer.autoguide import AutoNormal, init_to_mean from scipy.sparse import issparse from scvi import _CONSTANTS from...
35.263473
119
0.582159
16,893
0.95619
0
0
5,010
0.28358
0
0
6,495
0.367635
45e2441449b8a57f4c898888fafc70417c101445
570
py
Python
mayan/apps/sources/literals.py
atitaya1412/Mayan-EDMS
bda9302ba4b743e7d829ad118b8b836221888172
[ "Apache-2.0" ]
343
2015-01-05T14:19:35.000Z
2018-12-10T19:07:48.000Z
mayan/apps/sources/literals.py
atitaya1412/Mayan-EDMS
bda9302ba4b743e7d829ad118b8b836221888172
[ "Apache-2.0" ]
191
2015-01-03T00:48:19.000Z
2018-11-30T09:10:25.000Z
mayan/apps/sources/literals.py
atitaya1412/Mayan-EDMS
bda9302ba4b743e7d829ad118b8b836221888172
[ "Apache-2.0" ]
114
2015-01-08T20:21:05.000Z
2018-12-10T19:07:53.000Z
import os from django.conf import settings DEFAULT_BINARY_SCANIMAGE_PATH = '/usr/bin/scanimage' DEFAULT_SOURCES_BACKEND_ARGUMENTS = { 'mayan.apps.sources.source_backends.SourceBackendSANEScanner': { 'scanimage_path': DEFAULT_BINARY_SCANIMAGE_PATH } } DEFAULT_SOURCES_CACHE_STORAGE_BACKEND = 'django.cor...
30
85
0.815789
0
0
0
0
0
0
0
0
189
0.331579
45e3e43df6217404133f05bdb8876753107b0f86
3,050
py
Python
test/test14_advanced_search.py
kyu-su/pixplusPlus
2813771c8292ea05d0fd9e7e6b1f4a71e2aba1f8
[ "MIT" ]
null
null
null
test/test14_advanced_search.py
kyu-su/pixplusPlus
2813771c8292ea05d0fd9e7e6b1f4a71e2aba1f8
[ "MIT" ]
null
null
null
test/test14_advanced_search.py
kyu-su/pixplusPlus
2813771c8292ea05d0fd9e7e6b1f4a71e2aba1f8
[ "MIT" ]
null
null
null
import warnings import time import random import util from test_base import TestCase class Test_AdvancedSearch(TestCase): def get_radio(self, name): return self.q('#search-option .content form input[type="radio"][name="%s"]:checked' % name) def set_size(self, wlt, hlt, wgt, hgt): for name in 'wlt', 'hlt...
32.795699
99
0.639672
2,962
0.971148
0
0
0
0
0
0
754
0.247213
45e52e60e920306770881bdab0e81dba6a9ab8d4
511
py
Python
cogs/help/onHelpMessage.py
Narzaru/AiShindou
01daa4e51c5d19b0fa39ab7dff24adad6d764976
[ "BSD-2-Clause" ]
null
null
null
cogs/help/onHelpMessage.py
Narzaru/AiShindou
01daa4e51c5d19b0fa39ab7dff24adad6d764976
[ "BSD-2-Clause" ]
null
null
null
cogs/help/onHelpMessage.py
Narzaru/AiShindou
01daa4e51c5d19b0fa39ab7dff24adad6d764976
[ "BSD-2-Clause" ]
null
null
null
import discord from discord.ext import commands from service.utils import TemplateColours class Help_command(commands.MinimalHelpCommand): async def send_pages(self): ctx = self.get_destination() self.paginator.suffix = "\nif something is wrong, he is to blame\n ---> <@202011264589758464>" ...
36.5
114
0.716243
418
0.818004
0
0
0
0
365
0.714286
101
0.197652