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
1069ebd444cd41fde8b4f2543e607693b51a94b8
2,394
py
Python
subsurface/geological_formats/segy_reader.py
andieie/subsurface
96d3cc4a0ef6eb549d1ea9d32b71a1380a1383e7
[ "Apache-2.0" ]
55
2019-05-09T12:26:28.000Z
2021-11-05T07:35:15.000Z
subsurface/geological_formats/segy_reader.py
RajdeepTarafder/subsurface
1308bc2a1d8e803db1680a1300682a91fec8d5fe
[ "Apache-2.0" ]
33
2019-05-09T16:28:19.000Z
2022-03-30T13:40:21.000Z
subsurface/geological_formats/segy_reader.py
RajdeepTarafder/subsurface
1308bc2a1d8e803db1680a1300682a91fec8d5fe
[ "Apache-2.0" ]
14
2019-05-09T12:26:33.000Z
2021-09-01T11:31:27.000Z
from typing import Union from scipy.spatial.qhull import Delaunay from shapely.geometry import LineString from subsurface.structs.base_structures import StructuredData import numpy as np try: import segyio segyio_imported = True except ImportError: segyio_imported = False def read_in_segy(filepath: str, ...
32.351351
129
0.629908
0
0
0
0
0
0
0
0
1,046
0.436926
106b9963fc2887b968d35680d06f2e568d43f337
1,069
py
Python
python_learning/basic_learning/lesson_interview.py
suncht/sun-python
b02cba75c142adc44438192577cae171cb4837d4
[ "Apache-2.0" ]
null
null
null
python_learning/basic_learning/lesson_interview.py
suncht/sun-python
b02cba75c142adc44438192577cae171cb4837d4
[ "Apache-2.0" ]
null
null
null
python_learning/basic_learning/lesson_interview.py
suncht/sun-python
b02cba75c142adc44438192577cae171cb4837d4
[ "Apache-2.0" ]
null
null
null
#生成器的创建,区分迭代器、生成器、推导式、生成器表达式 l_01 = [x for x in range(10)] #列表推导式 print(l_01) l_02 = (x for x in range(10)) #列表生成器表达式 print(l_02) class Fib: def __init__(self): self.prev = 0 self.curr = 1 def __iter__(self): #Fib是迭代对象, 因为Fib实现了__iter__方法 -->类/对象 return self def __next__(self...
19.436364
62
0.57811
391
0.309091
395
0.312253
0
0
0
0
399
0.315415
106bc619d04ec9ede221c61b7b392e024005d45b
2,290
py
Python
hack/generateChartOptions.py
deissnerk/external-dns-management
f1e003f04ad9d19af576d8b0d037e892b687c121
[ "Apache-2.0" ]
null
null
null
hack/generateChartOptions.py
deissnerk/external-dns-management
f1e003f04ad9d19af576d8b0d037e892b687c121
[ "Apache-2.0" ]
null
null
null
hack/generateChartOptions.py
deissnerk/external-dns-management
f1e003f04ad9d19af576d8b0d037e892b687c121
[ "Apache-2.0" ]
null
null
null
#!/bin/python # should be started from project base directory # helper script to regenerate helm chart file: partial of charts/external-dns-management/templates/deployment.yaml import re import os helpFilename = "/tmp/dns-controller-manager-help.txt" rc = os.system("make build-local && ./dns-controller-manager --he...
30.533333
114
0.621397
0
0
0
0
0
0
0
0
944
0.412227
106c3eefe5f3cdcf470da1774e9ab84ee3897c21
1,353
py
Python
test.py
ttran1904/MDP
1c44f79dba1ff33de3f9f791612a91f4b2fad4b9
[ "MIT" ]
null
null
null
test.py
ttran1904/MDP
1c44f79dba1ff33de3f9f791612a91f4b2fad4b9
[ "MIT" ]
null
null
null
test.py
ttran1904/MDP
1c44f79dba1ff33de3f9f791612a91f4b2fad4b9
[ "MIT" ]
null
null
null
from MDP import MDP import unittest class MDPTestCase(unittest.TestCase): def test_small1(self): lst = [['a', 'a', 'b', 'b', 'c', 'c', 'd', 'd']] self.__printInput(lst) mdp = MDP(lst) mdp.run() # Get the result Transition Probabilities (dictionary) tp = mdp.getTrans...
31.465116
74
0.474501
1,262
0.932742
0
0
0
0
0
0
366
0.27051
106da9215eb8067c762142bbcb0cab6695c0b979
379
py
Python
apps/purchases/migrations/0009_auto_20200502_0253.py
jorgesaw/kstore
4ec6612eeeb96edb7b7bd374fd0520733c58451c
[ "MIT" ]
null
null
null
apps/purchases/migrations/0009_auto_20200502_0253.py
jorgesaw/kstore
4ec6612eeeb96edb7b7bd374fd0520733c58451c
[ "MIT" ]
5
2021-03-19T10:16:00.000Z
2022-02-10T09:16:32.000Z
apps/purchases/migrations/0009_auto_20200502_0253.py
jorgesaw/kstore
4ec6612eeeb96edb7b7bd374fd0520733c58451c
[ "MIT" ]
null
null
null
# Generated by Django 2.2.10 on 2020-05-02 05:53 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('purchases', '0008_auto_20200430_1617'), ] operations = [ migrations.RenameField( model_name='itempurchase', old_name='suppl...
19.947368
49
0.601583
293
0.773087
0
0
0
0
0
0
121
0.319261
106e4b0ccf7d2a2518a1959d9ed235098c74fcea
97
py
Python
getKey.py
cychiang/spotify-lyrics
78219ea2e9c8eacda7a8cb1cecbb7ecdd39d208e
[ "Apache-2.0" ]
null
null
null
getKey.py
cychiang/spotify-lyrics
78219ea2e9c8eacda7a8cb1cecbb7ecdd39d208e
[ "Apache-2.0" ]
null
null
null
getKey.py
cychiang/spotify-lyrics
78219ea2e9c8eacda7a8cb1cecbb7ecdd39d208e
[ "Apache-2.0" ]
null
null
null
def musixmatch(): with open('musixmatch.txt', 'r') as key: return key.readline()
24.25
44
0.587629
0
0
0
0
0
0
0
0
19
0.195876
106ea10390a127ae67a672fa8cfbea48593dd793
2,750
py
Python
pylayers/antprop/examples/ex_meta.py
usmanwardag/pylayers
2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a
[ "MIT" ]
143
2015-01-09T07:50:20.000Z
2022-03-02T11:26:53.000Z
pylayers/antprop/examples/ex_meta.py
usmanwardag/pylayers
2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a
[ "MIT" ]
148
2015-01-13T04:19:34.000Z
2022-03-11T23:48:25.000Z
pylayers/antprop/examples/ex_meta.py
usmanwardag/pylayers
2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a
[ "MIT" ]
95
2015-05-01T13:22:42.000Z
2022-03-15T11:22:28.000Z
from pylayers.gis.layout import * from pylayers.antprop.signature import * from pylayers.antprop.channel import * import pylayers.signal.waveform as wvf import networkx as nx import numpy as np import time import logging L = Layout('WHERE1_clean.ini') #L = Layout('defstr2.ini') try: L.dumpr() except: L.build()...
19.097222
61
0.607273
0
0
0
0
0
0
0
0
1,755
0.638182
106f055608a9a9b954de165a95645804abf6cce8
2,261
py
Python
code/dash_app/app.py
siwei-li/tweet_stock
5c265a747f06388f303f314d812879cfff90f938
[ "MIT" ]
null
null
null
code/dash_app/app.py
siwei-li/tweet_stock
5c265a747f06388f303f314d812879cfff90f938
[ "MIT" ]
null
null
null
code/dash_app/app.py
siwei-li/tweet_stock
5c265a747f06388f303f314d812879cfff90f938
[ "MIT" ]
null
null
null
import dash from dash import Output, Input, dcc from dash import html from tabs import tab1, tab2 # from tab2_callbacks import tab2_out, upload_prediction, render_graph2 import flask server = flask.Flask(__name__) # define flask app.server external_stylesheets = [ { "href": "https://fonts.googleapis.com...
28.620253
131
0.534277
0
0
0
0
572
0.252985
0
0
800
0.353826
1070116f31c79416da1322b497edf3dc3c3e1f16
158
py
Python
18.py
christi-john/codechef-practice
2f52cb72cbc5df4f4978fdd1cf77b1f01bc583b0
[ "MIT" ]
null
null
null
18.py
christi-john/codechef-practice
2f52cb72cbc5df4f4978fdd1cf77b1f01bc583b0
[ "MIT" ]
null
null
null
18.py
christi-john/codechef-practice
2f52cb72cbc5df4f4978fdd1cf77b1f01bc583b0
[ "MIT" ]
null
null
null
# REMISS for i in range(int(input())): A,B = map(int,input().split()) if A>B: print(str(A) + " " + str(A+B)) else: print(str(B) + " " + str(A+B))
26.333333
42
0.5
0
0
0
0
0
0
0
0
14
0.088608
1070daf15ff202a5e3bcc5749503b19039cf94af
2,260
py
Python
pydemic/data/__init__.py
uiuc-covid19-modeling/pydemic
3c0af60c2ac7e0dbf722584f61c45f9a2f993521
[ "MIT" ]
6
2020-05-29T22:52:30.000Z
2020-11-08T23:27:07.000Z
pydemic/data/__init__.py
uiuc-covid19-modeling/pydemic
3c0af60c2ac7e0dbf722584f61c45f9a2f993521
[ "MIT" ]
null
null
null
pydemic/data/__init__.py
uiuc-covid19-modeling/pydemic
3c0af60c2ac7e0dbf722584f61c45f9a2f993521
[ "MIT" ]
5
2020-06-12T01:47:18.000Z
2022-03-29T13:26:09.000Z
__copyright__ = """ Copyright (C) 2020 George N Wong Copyright (C) 2020 Zachary J Weiner """ __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including withou...
32.753623
78
0.715487
649
0.287168
0
0
0
0
0
0
1,422
0.629204
1071230a1f43893cad26a92ac7143ffa8a21a932
47
py
Python
Lesson5/srez.py
shinkai-tester/python_beginner
a934328c9a50241cc3f02a423060e16aab53b425
[ "Apache-2.0" ]
2
2021-06-01T13:24:04.000Z
2021-06-01T13:27:47.000Z
Lesson5/srez.py
shinkai-tester/python_beginner
a934328c9a50241cc3f02a423060e16aab53b425
[ "Apache-2.0" ]
null
null
null
Lesson5/srez.py
shinkai-tester/python_beginner
a934328c9a50241cc3f02a423060e16aab53b425
[ "Apache-2.0" ]
null
null
null
a = [1, 2, 3, 4, 5] b = a[:3] print(b) print(a)
11.75
19
0.446809
0
0
0
0
0
0
0
0
0
0
1071d5d3c31d440ee16ee62b40826c1d771809f7
216
py
Python
regularize_charsets.py
sys-bio/temp-biomodels
596eebb590d72e74419773f4e9b829a62d7fff9a
[ "CC0-1.0" ]
null
null
null
regularize_charsets.py
sys-bio/temp-biomodels
596eebb590d72e74419773f4e9b829a62d7fff9a
[ "CC0-1.0" ]
5
2022-03-30T21:33:45.000Z
2022-03-31T20:08:15.000Z
regularize_charsets.py
sys-bio/temp-biomodels
596eebb590d72e74419773f4e9b829a62d7fff9a
[ "CC0-1.0" ]
null
null
null
from charset_normalizer import from_path, normalize results = from_path('original\BIOMD0000000424\BIOMD0000000424_url.xml') best = str(results.best()) normalize('original\BIOMD0000000424\BIOMD0000000424_url.xml')
27
71
0.828704
0
0
0
0
0
0
0
0
100
0.462963
1073ef5093a5b8b166fa58df1b32f9b4c68bda68
9,812
py
Python
accounts/forms.py
GDGSNF/My-Business
792bb13a5b296260e5de7e03fba6445a13922851
[ "MIT" ]
21
2020-08-29T14:32:13.000Z
2021-08-28T21:40:32.000Z
accounts/forms.py
GDGSNF/My-Business
792bb13a5b296260e5de7e03fba6445a13922851
[ "MIT" ]
1
2020-10-11T21:56:15.000Z
2020-10-11T21:56:15.000Z
accounts/forms.py
yezz123/My-Business
792bb13a5b296260e5de7e03fba6445a13922851
[ "MIT" ]
5
2021-09-11T23:31:10.000Z
2022-03-06T20:29:59.000Z
import datetime import re from configparser import ConfigParser from smtplib import SMTPException from django import forms from django.conf import settings from django.contrib.auth import authenticate, login from django.contrib.auth.tokens import default_token_generator from django.core.mail import send_mail from djan...
34.918149
100
0.610171
9,192
0.936812
0
0
0
0
0
0
1,916
0.195271
1074779ac430e926e8880572bf45c1deb9b0db82
3,300
py
Python
tests/st/model_zoo_tests/DeepFM/test_deepfm.py
HappyKL/mindspore
479cb89e8b5c9d859130891567038bb849a30bce
[ "Apache-2.0" ]
1
2020-10-18T12:27:45.000Z
2020-10-18T12:27:45.000Z
tests/st/model_zoo_tests/DeepFM/test_deepfm.py
ReIadnSan/mindspore
c3d1f54c7f6d6f514e5748430d24b16a4f9ee9e5
[ "Apache-2.0" ]
null
null
null
tests/st/model_zoo_tests/DeepFM/test_deepfm.py
ReIadnSan/mindspore
c3d1f54c7f6d6f514e5748430d24b16a4f9ee9e5
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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...
40.740741
93
0.688485
0
0
0
0
2,243
0.679697
0
0
889
0.269394
1077969251a2cc5472238f5a65083a0f8624450e
2,588
py
Python
meterer/s3.py
dacut/meterer
441e7f021e3302597f56876948a40fe8799a3375
[ "Apache-2.0" ]
null
null
null
meterer/s3.py
dacut/meterer
441e7f021e3302597f56876948a40fe8799a3375
[ "Apache-2.0" ]
null
null
null
meterer/s3.py
dacut/meterer
441e7f021e3302597f56876948a40fe8799a3375
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3.6 # pylint: disable=C0103 """ Metering client for S3. """ from .client import Meterer class S3Meterer(Meterer): """ Meter an S3 bucket. """ s3_url_prefix = "s3://" def __init__(self, cache, boto_session=None, cloudwatch_namespace=None): """ S3Meterer(cache, ...
32.759494
79
0.633308
2,476
0.956723
0
0
895
0.345827
0
0
1,137
0.439335
1077e543e91d42e1a23cc4585cc1adc1e252701a
984
py
Python
Python/3 kyu/Calculator/test_evaluate.py
newtonsspawn/codewars_challenges
62b20d4e729c8ba79eac7cae6a179af57abd45d4
[ "MIT" ]
3
2020-05-29T23:29:35.000Z
2021-08-12T03:16:44.000Z
Python/3 kyu/Calculator/test_evaluate.py
newtonsspawn/codewars_challenges
62b20d4e729c8ba79eac7cae6a179af57abd45d4
[ "MIT" ]
null
null
null
Python/3 kyu/Calculator/test_evaluate.py
newtonsspawn/codewars_challenges
62b20d4e729c8ba79eac7cae6a179af57abd45d4
[ "MIT" ]
3
2020-05-22T12:14:55.000Z
2021-04-15T12:52:42.000Z
from unittest import TestCase from evaluate import Calculator calc = Calculator() class TestCalculator(TestCase): def test_evaluate_01(self): self.assertEqual(calc.evaluate(string='127'), 127) def test_evaluate_02(self): self.assertEqual(calc.evaluate(string='2 + 3'), 5) d...
28.941176
79
0.604675
897
0.911585
0
0
0
0
0
0
119
0.120935
1078131895be80dd05cd641cc3a84d9d01ba5a0a
272
py
Python
gfapy/line/__init__.py
ujjwalsh/gfapy
891ef3df695f20c67809e5a54549c876d90690b4
[ "ISC" ]
44
2017-03-18T08:08:04.000Z
2021-11-10T16:11:15.000Z
gfapy/line/__init__.py
ujjwalsh/gfapy
891ef3df695f20c67809e5a54549c876d90690b4
[ "ISC" ]
22
2017-04-04T21:20:31.000Z
2022-03-09T19:05:30.000Z
gfapy/line/__init__.py
ujjwalsh/gfapy
891ef3df695f20c67809e5a54549c876d90690b4
[ "ISC" ]
5
2017-07-07T02:56:56.000Z
2020-09-30T20:10:49.000Z
from .comment import Comment from .line import Line from .unknown import Unknown from .edge import Edge from .gap import Gap from .custom_record import CustomRecord from .fragment import Fragment from .header import Header from .segment import Segment from . import group
24.727273
39
0.816176
0
0
0
0
0
0
0
0
0
0
107e914f1ae2666a80b799c84f120d5ecb4a420a
21,546
py
Python
preprocessing/parsing.py
bradhackinen/frdocs
c846eef4bb6e09b49a4a63a69d3d16c8bd505e4e
[ "Apache-2.0" ]
null
null
null
preprocessing/parsing.py
bradhackinen/frdocs
c846eef4bb6e09b49a4a63a69d3d16c8bd505e4e
[ "Apache-2.0" ]
null
null
null
preprocessing/parsing.py
bradhackinen/frdocs
c846eef4bb6e09b49a4a63a69d3d16c8bd505e4e
[ "Apache-2.0" ]
null
null
null
import os import lxml.etree as et import pandas as pd import numpy as np import regex as re def get_element_text(element): """ Extract text while -skipping footnote numbers -Adding a space before and after emphasized text """ head = element.text if element.tag != 'SU' else '' child = ' '....
34.751613
182
0.578808
2,463
0.114271
3,123
0.144892
0
0
0
0
8,306
0.385358
107ee9ab6b9b9047573689de88a1c06760a9cb86
3,960
py
Python
src/stopwords/create_stopword_list.py
prrao87/topic-modelling
b7bceef8711edb097c3afec95c30474ae0789e1f
[ "MIT" ]
3
2020-11-22T14:55:58.000Z
2021-03-13T17:59:26.000Z
src/stopwords/create_stopword_list.py
prrao87/topic-modelling
b7bceef8711edb097c3afec95c30474ae0789e1f
[ "MIT" ]
null
null
null
src/stopwords/create_stopword_list.py
prrao87/topic-modelling
b7bceef8711edb097c3afec95c30474ae0789e1f
[ "MIT" ]
null
null
null
""" Script to generate a custom list of stopwords that extend upon existing lists. """ import json import spacy from urllib.request import urlopen from itertools import chain def combine(*lists): "Combine an arbitrary number of lists into a single list" return list(chain(*lists)) def get_spacy_lemmas(): ...
44.494382
138
0.600253
0
0
0
0
0
0
0
0
1,827
0.461364
108240c1077fc8cf237931a298bf13f9490847ae
10,081
py
Python
main.py
carl-andersson/impest
d896923597b98180d3656efe05a4935b69d3e36e
[ "MIT" ]
null
null
null
main.py
carl-andersson/impest
d896923597b98180d3656efe05a4935b69d3e36e
[ "MIT" ]
null
null
null
main.py
carl-andersson/impest
d896923597b98180d3656efe05a4935b69d3e36e
[ "MIT" ]
2
2018-09-13T19:40:49.000Z
2021-04-04T07:57:32.000Z
''' @author: Carl Andersson ''' import sys import numpy as np import tensorflow as tf import processdata import time import scipy.io # Preformfs a custom matrix multiplication for all matrices in a batch def batchMatMul(x: tf.Tensor, y: tf.Tensor, scope="batchMatMul"): return tf.map_fn(lambda inx: tf.tensordo...
37.898496
120
0.564924
0
0
0
0
0
0
0
0
1,272
0.126178
10846775ed810108f0674e3280e3bdb519f11227
586
py
Python
setup.py
Lzejie/DynamicPool
9a0d42738f55e97962e2a93a0db0b30a38fa1126
[ "MIT" ]
1
2019-01-16T03:00:18.000Z
2019-01-16T03:00:18.000Z
setup.py
Lzejie/DynamicPool
9a0d42738f55e97962e2a93a0db0b30a38fa1126
[ "MIT" ]
null
null
null
setup.py
Lzejie/DynamicPool
9a0d42738f55e97962e2a93a0db0b30a38fa1126
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 18/12/10 上午10:27 # @Author : L_zejie # @Site : # @File : setup.py.py # @Software: PyCharm Community Edition from setuptools import setup, find_packages setup( name="DynamicPool", packages=find_packages(), version='0.14', description="动态任务阻塞线程/进程池", autho...
25.478261
92
0.648464
0
0
0
0
0
0
0
0
355
0.580065
10847fe0c9aff3581b7ae6656083f85f2e69bec1
28,738
py
Python
testsuite/test_singly_linked_list.py
trycatchhorn/PyAlgDat
85f8c7550630cf31b5e4472fd593956c9d96c078
[ "MIT" ]
null
null
null
testsuite/test_singly_linked_list.py
trycatchhorn/PyAlgDat
85f8c7550630cf31b5e4472fd593956c9d96c078
[ "MIT" ]
null
null
null
testsuite/test_singly_linked_list.py
trycatchhorn/PyAlgDat
85f8c7550630cf31b5e4472fd593956c9d96c078
[ "MIT" ]
null
null
null
#!/usr/bin/env py.test """ Test SinglyLinkedList class. """ import copy import unittest from py_alg_dat import singly_linked_list class TestSinglyLinkedList(unittest.TestCase): """ Test SinglyLinkedList class. """ def setUp(self): self.list1 = singly_linked_list.SinglyLinkedList() ...
33.070196
82
0.598163
28,602
0.995268
0
0
0
0
0
0
6,873
0.239161
1084d7175183cbca0c6049d853c6dc625cb88022
243
py
Python
package/awesome_panel/application/services/message_service.py
Jhsmit/awesome-panel
53f7754f7c505a2666f6724df26c851ae942ec40
[ "Apache-2.0" ]
179
2019-12-04T14:54:53.000Z
2022-03-30T09:08:38.000Z
package/awesome_panel/application/services/message_service.py
Jhsmit/awesome-panel
53f7754f7c505a2666f6724df26c851ae942ec40
[ "Apache-2.0" ]
62
2019-12-14T16:51:28.000Z
2022-03-19T18:47:12.000Z
package/awesome_panel/application/services/message_service.py
Jhsmit/awesome-panel
53f7754f7c505a2666f6724df26c851ae942ec40
[ "Apache-2.0" ]
35
2019-12-08T13:19:53.000Z
2022-03-25T10:33:02.000Z
"""This module implements the MessageService The MessageService enables sending and receiving messages """ import param class MessageService(param.Parameterized): """The MessageService enables sending and receiving messages"""
24.3
68
0.769547
111
0.45679
0
0
0
0
0
0
173
0.711934
1085b6a16b899345091e7cc84cb90bde70ab693d
2,448
py
Python
BitMEXAPIKeyAuthenticator.py
SaarasM/trading-algos
79d1cdd84df71b5a6fca19ffa98bd039b4bc89bc
[ "MIT" ]
null
null
null
BitMEXAPIKeyAuthenticator.py
SaarasM/trading-algos
79d1cdd84df71b5a6fca19ffa98bd039b4bc89bc
[ "MIT" ]
null
null
null
BitMEXAPIKeyAuthenticator.py
SaarasM/trading-algos
79d1cdd84df71b5a6fca19ffa98bd039b4bc89bc
[ "MIT" ]
null
null
null
import urllib.parse import time import hashlib import hmac from bravado.requests_client import Authenticator class APIKeyAuthenticator(Authenticator): """?api_key authenticator. This authenticator adds BitMEX API key support via header. :param host: Host to authenticate for. :param api_key: API key. ...
38.25
123
0.646242
2,337
0.954657
0
0
0
0
0
0
1,163
0.475082
1085fa70c9dbc377238e6a8020eb054c9de9d0f5
382
py
Python
herokuapp/project_template/manage.py
urkonn/django-herokuapp
1d3ec10f6e83b7556a443150aa0658bbf341f6d1
[ "BSD-3-Clause" ]
262
2015-01-03T18:34:11.000Z
2021-12-25T21:16:31.000Z
herokuapp/project_template/manage.py
urkonn/django-herokuapp
1d3ec10f6e83b7556a443150aa0658bbf341f6d1
[ "BSD-3-Clause" ]
13
2015-01-14T04:02:34.000Z
2021-10-05T13:59:46.000Z
herokuapp/project_template/manage.py
urkonn/django-herokuapp
1d3ec10f6e83b7556a443150aa0658bbf341f6d1
[ "BSD-3-Clause" ]
52
2015-01-28T20:16:01.000Z
2022-02-11T20:22:39.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": # Load the Heroku environment. from herokuapp.env import load_env load_env(__file__, "{{ app_name }}") os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}.settings") from django.core.management import execu...
23.875
82
0.722513
0
0
0
0
0
0
0
0
130
0.340314
1086c5f31cb6487877c19a733713381c6f9031e7
477
py
Python
packages/indextools/tests/test_cases/test_primes.py
zhihanyang2022/drqn
ac2482e3b42094e6242c042583dbbd9c98e4750b
[ "MIT" ]
5
2021-03-28T14:12:40.000Z
2021-11-19T20:46:10.000Z
packages/indextools/tests/test_cases/test_primes.py
zhihanyang2022/drqn
ac2482e3b42094e6242c042583dbbd9c98e4750b
[ "MIT" ]
null
null
null
packages/indextools/tests/test_cases/test_primes.py
zhihanyang2022/drqn
ac2482e3b42094e6242c042583dbbd9c98e4750b
[ "MIT" ]
null
null
null
import unittest import indextools def is_prime(n): return n > 1 and all(n % i != 0 for i in range(2, n)) class PrimeTest(unittest.TestCase): def test_primes(self): int_space = indextools.RangeSpace(50) prime_space = indextools.SubSpace(int_space, is_prime) values = (2, 3, 5, 7, 11, ...
26.5
73
0.656184
362
0.75891
0
0
0
0
0
0
0
0
108711ba01a7e1bdb1abf96274dfe881e5311d41
2,522
py
Python
lascli/parser/users.py
LucidtechAI/las-cli
bf9ca7d016141059c543527c6654cebb2e2f1178
[ "Apache-2.0" ]
null
null
null
lascli/parser/users.py
LucidtechAI/las-cli
bf9ca7d016141059c543527c6654cebb2e2f1178
[ "Apache-2.0" ]
10
2021-04-12T06:42:04.000Z
2022-03-30T10:21:33.000Z
lascli/parser/users.py
LucidtechAI/las-cli
bf9ca7d016141059c543527c6654cebb2e2f1178
[ "Apache-2.0" ]
null
null
null
import base64 import pathlib from las import Client from lascli.util import nullable, NotProvided def encode_avatar(avatar): return base64.b64encode(pathlib.Path(avatar).read_bytes()).decode() def list_users(las_client: Client, max_results, next_token): return las_client.list_users(max_results=max_results...
32.753247
86
0.752181
0
0
0
0
0
0
0
0
289
0.114592
10876b8adb313d894238da00cbc965a6ae323a52
114
py
Python
labs/tony-monday-15-jg103/hello_hello.py
TonyJenkins/lbu-python-code
d02d843290e887d016cdb05ddc1a8639874f2e06
[ "Unlicense" ]
2
2021-08-20T13:02:45.000Z
2021-10-03T20:34:45.000Z
labs/tony-monday-15-jg103/hello_hello.py
TonyJenkins/lbu-python-code
d02d843290e887d016cdb05ddc1a8639874f2e06
[ "Unlicense" ]
null
null
null
labs/tony-monday-15-jg103/hello_hello.py
TonyJenkins/lbu-python-code
d02d843290e887d016cdb05ddc1a8639874f2e06
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 def hello(**kwargs): print(f'Hello') if __name__ == '__main__': hello(hello())
11.4
26
0.605263
0
0
0
0
0
0
0
0
40
0.350877
10879ad312bd0d2e0eb47f8d066224e8607d0fb3
619
py
Python
example/example/handlers.py
comynli/m
245f4091f0e1bddc4cff26ad89df03122987d549
[ "Apache-2.0" ]
11
2016-09-25T01:35:09.000Z
2020-12-30T03:14:35.000Z
example/example/handlers.py
EscapeLife/mini-SQLAlchemy
c5e4d08349c6469884c5668f4c9dc86cd631b257
[ "Apache-2.0" ]
null
null
null
example/example/handlers.py
EscapeLife/mini-SQLAlchemy
c5e4d08349c6469884c5668f4c9dc86cd631b257
[ "Apache-2.0" ]
21
2016-09-24T09:56:31.000Z
2020-02-18T05:57:21.000Z
from .models import db, User from m import Router from m.utils import jsonify router = Router(prefix='') @router.route('/', methods=['POST']) def home(ctx, request): name = request.json().get('name') user = User(name=name) db.session.add(user) try: db.session.commit() except Exception as ...
23.807692
94
0.638126
0
0
0
0
506
0.817447
0
0
56
0.090468
108807ac7d6193c42b40df14783acb29975e2f3a
4,609
py
Python
scripts/touchup_for_web.py
BennZoll/roboto
cb3cde1a3069f28b9a66f3d104f51fd6c0734be1
[ "Apache-2.0" ]
3,933
2015-05-26T17:02:24.000Z
2020-04-20T12:09:09.000Z
scripts/touchup_for_web.py
BennZoll/roboto
cb3cde1a3069f28b9a66f3d104f51fd6c0734be1
[ "Apache-2.0" ]
274
2015-05-26T20:05:46.000Z
2020-04-16T01:00:03.000Z
scripts/touchup_for_web.py
BennZoll/roboto
cb3cde1a3069f28b9a66f3d104f51fd6c0734be1
[ "Apache-2.0" ]
416
2015-05-26T18:06:06.000Z
2020-03-27T06:33:47.000Z
#!/usr/bin/python # # Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
33.398551
76
0.681493
0
0
0
0
0
0
0
0
1,917
0.415925
1088443ead915e8ccd2320fd64ac1f164ea8d25b
389
py
Python
fact/looping2d.py
BicycleWalrus/slop
300f994cb7d7a58a330fdac1afcd36ffd1da80ff
[ "MIT" ]
null
null
null
fact/looping2d.py
BicycleWalrus/slop
300f994cb7d7a58a330fdac1afcd36ffd1da80ff
[ "MIT" ]
null
null
null
fact/looping2d.py
BicycleWalrus/slop
300f994cb7d7a58a330fdac1afcd36ffd1da80ff
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 with open("dnsservers.txt", "r") as dnsfile: for svr in dnsfile: svr = svr.rstrip('\n') if svr.endswith('org'): with open("org-domain.txt", "a") as srvfile: srvfile.write(svr + "\n") elif svr.endswith('com'): with open("com-dom...
29.923077
56
0.51671
0
0
0
0
0
0
0
0
101
0.25964
10894b46907ea75299b8184798d4baa3caa348c3
322
py
Python
src/controller/tower_controller.py
DockerTower/Tower
c44528007ef566a3e2e461a16ff426f326f9004e
[ "MIT" ]
1
2016-10-28T10:03:08.000Z
2016-10-28T10:03:08.000Z
src/controller/tower_controller.py
DockerTower/Tower
c44528007ef566a3e2e461a16ff426f326f9004e
[ "MIT" ]
null
null
null
src/controller/tower_controller.py
DockerTower/Tower
c44528007ef566a3e2e461a16ff426f326f9004e
[ "MIT" ]
null
null
null
from cement.core.controller import CementBaseController, expose class TowerController(CementBaseController): class Meta: label = 'base' stacked_on = 'base' stacked_type = 'nested' description = "Tower" @expose(hide=True) def default(self): self.app.args.print_help(...
23
63
0.65528
255
0.791925
0
0
76
0.236025
0
0
27
0.083851
1089f5b4102ec85af3cbcbee9d9a0843f6277c92
1,113
py
Python
download.py
reed-hackathon-2022/mc-bot
d770fbb61b6d6bb3c1fc4055bb9e8bc6d45412c6
[ "MIT" ]
1
2022-01-23T19:10:48.000Z
2022-01-23T19:10:48.000Z
download.py
reed-hackathon-2022/mc-bot
d770fbb61b6d6bb3c1fc4055bb9e8bc6d45412c6
[ "MIT" ]
null
null
null
download.py
reed-hackathon-2022/mc-bot
d770fbb61b6d6bb3c1fc4055bb9e8bc6d45412c6
[ "MIT" ]
1
2022-02-27T20:44:38.000Z
2022-02-27T20:44:38.000Z
import io from google.oauth2.credentials import Credentials from googleapiclient.discovery import build from googleapiclient.http import MediaIoBaseDownload from google.oauth2 import service_account from oauth2client.service_account import ServiceAccountCredentials SCOPES = ['https://www.googleapis.com/auth/drive.met...
33.727273
107
0.75292
0
0
0
0
0
0
0
0
202
0.181491
108a668911310c69b94dbdbbb3311bbc3c59a242
5,471
py
Python
lumbermill/output/Zabbix.py
dstore-dbap/LumberMill
b7cbadc209a83386871735b8ad88b61da917a6ab
[ "Apache-2.0" ]
15
2015-12-14T19:07:28.000Z
2022-02-28T13:32:11.000Z
lumbermill/output/Zabbix.py
dstore-dbap/LumberMill
b7cbadc209a83386871735b8ad88b61da917a6ab
[ "Apache-2.0" ]
null
null
null
lumbermill/output/Zabbix.py
dstore-dbap/LumberMill
b7cbadc209a83386871735b8ad88b61da917a6ab
[ "Apache-2.0" ]
4
2017-02-08T10:49:55.000Z
2019-03-19T18:47:46.000Z
# -*- coding: utf-8 -*- import os import sys from pyzabbix import ZabbixMetric, ZabbixSender from lumbermill.BaseThreadedModule import BaseThreadedModule from lumbermill.utils.Buffers import Buffer from lumbermill.utils.Decorators import ModuleDocstringParser from lumbermill.utils.DynamicValues import mapDynamicValue ...
50.192661
138
0.641565
5,125
0.936757
82
0.014988
5,148
0.940961
0
0
2,338
0.427344
108ab9c9df5204ab2c5130ba939418e47c9f9a0b
1,771
py
Python
communicate.py
IloveKanade/k3cgrouparch
e59ca503b076ddfcdd30bea26604f9fbf5509a2c
[ "MIT" ]
null
null
null
communicate.py
IloveKanade/k3cgrouparch
e59ca503b076ddfcdd30bea26604f9fbf5509a2c
[ "MIT" ]
2
2021-11-11T07:14:50.000Z
2022-03-23T06:49:40.000Z
communicate.py
IloveKanade/k3cgrouparch
e59ca503b076ddfcdd30bea26604f9fbf5509a2c
[ "MIT" ]
1
2021-08-30T08:54:19.000Z
2021-08-30T08:54:19.000Z
#!/usr/bin/env python2 # coding: utf-8 import logging from collections import OrderedDict from geventwebsocket import Resource from geventwebsocket import WebSocketApplication from geventwebsocket import WebSocketServer import k3utfjson from k3cgrouparch import account global_value = {} logger = logging.getLogger(...
25.3
69
0.636928
1,221
0.689441
0
0
0
0
0
0
201
0.113495
108b0cf815da5ee0679b962a78a681d92caec0a9
1,171
py
Python
example/BEC.py
zhaofeng-shu33/ace_cream
7c1d853f42b5451b656615474d4c6d561f9e168c
[ "Apache-1.1" ]
6
2018-06-25T02:02:33.000Z
2020-06-16T19:39:24.000Z
example/BEC.py
zhaofeng-shu33/ace_cream
7c1d853f42b5451b656615474d4c6d561f9e168c
[ "Apache-1.1" ]
null
null
null
example/BEC.py
zhaofeng-shu33/ace_cream
7c1d853f42b5451b656615474d4c6d561f9e168c
[ "Apache-1.1" ]
2
2018-06-25T01:58:10.000Z
2020-12-06T04:07:57.000Z
#!/usr/bin/python #author: zhaofeng-shu33 import numpy as np from ace_cream import ace_cream def pearson_correlation(X,Y): return (np.mean(X*Y, axis=0) -np.mean(X, axis = 0)* np.mean(Y, axis = 0)) / ( np.std(X, axis = 0) * np.std(Y, axis = 0)) if __name__ == '__main__': N_SIZE = 1000 ERROR_PROBABILITY = ...
31.648649
124
0.571307
0
0
0
0
0
0
0
0
276
0.235696
108c705719ada1461412a2bd07e90e466ee244b5
446
py
Python
src/main.py
snaka0213/dot_converter
2851246ef3d454e74ac3135c1a15c0a9d2d22db3
[ "MIT" ]
null
null
null
src/main.py
snaka0213/dot_converter
2851246ef3d454e74ac3135c1a15c0a9d2d22db3
[ "MIT" ]
null
null
null
src/main.py
snaka0213/dot_converter
2851246ef3d454e74ac3135c1a15c0a9d2d22db3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys from converter import DotConverter filter_size = int(input("Filter size? >> ")) colors = int(input("Number of colors? >> ")) dtcv = DotConverter(filter_size=filter_size, colors=colors) path = input("File name? >> ") dtcv.load(path) dtcv.convert() dtcv.show() select = input("Save thi...
22.3
59
0.663677
0
0
0
0
0
0
0
0
129
0.289238
108d2f5a8e400cef7db3b4c71125296528340c61
5,148
py
Python
mahiru/rest/internal_client.py
SecConNet/proof_of_concept
80f6b27ff6b97796803e554387ca2881a792be79
[ "Apache-2.0" ]
4
2021-03-26T09:17:51.000Z
2021-05-17T10:31:59.000Z
mahiru/rest/internal_client.py
SecConNet/proof_of_concept
80f6b27ff6b97796803e554387ca2881a792be79
[ "Apache-2.0" ]
58
2020-03-02T10:02:51.000Z
2021-07-09T09:23:49.000Z
mahiru/rest/internal_client.py
SecConNet/proof_of_concept
80f6b27ff6b97796803e554387ca2881a792be79
[ "Apache-2.0" ]
null
null
null
"""Client for internal REST APIs.""" from copy import copy from pathlib import Path from urllib.parse import quote, urlparse import time import requests from mahiru.definitions.assets import Asset from mahiru.definitions.execution import JobResult from mahiru.definitions.policy import Rule from mahiru.definitions.wor...
32.582278
77
0.596348
4,581
0.88986
0
0
0
0
0
0
1,943
0.377428
108d7f449381a3192027b88e7c4525cac6f4b668
4,266
py
Python
image_dataset.py
samlaf/self-ensemble-visual-domain-adapt-photo
77fe1060a0fd05be9219470ff0c1e8ad220fbb73
[ "MIT" ]
76
2018-02-19T21:51:02.000Z
2021-08-17T08:31:57.000Z
image_dataset.py
imkhubaibraza/self-ensemble-visual-domain-adapt-photo
77fe1060a0fd05be9219470ff0c1e8ad220fbb73
[ "MIT" ]
6
2018-05-29T13:44:28.000Z
2021-08-24T17:08:26.000Z
image_dataset.py
imkhubaibraza/self-ensemble-visual-domain-adapt-photo
77fe1060a0fd05be9219470ff0c1e8ad220fbb73
[ "MIT" ]
16
2018-02-20T18:41:12.000Z
2022-01-22T20:45:06.000Z
import numpy as np import cv2 from sklearn.model_selection import StratifiedShuffleSplit, ShuffleSplit class ImageDataset (object): class ImageAccessor (object): def __init__(self, dataset): self.dataset = dataset def __len__(self): return len(self.dataset.paths) ...
34.682927
103
0.599391
3,188
0.747304
0
0
0
0
0
0
158
0.037037
10927e8a7c88b7a095ecc1c95079d91466988ee1
2,106
py
Python
tests/test_losses_config.py
blazejdolicki/vissl
9c10748a19fb1c637f32687142c8cd685f2410ff
[ "MIT" ]
2,512
2021-01-27T18:44:44.000Z
2022-03-31T19:33:49.000Z
tests/test_losses_config.py
blazejdolicki/vissl
9c10748a19fb1c637f32687142c8cd685f2410ff
[ "MIT" ]
361
2021-01-27T20:12:09.000Z
2022-03-31T12:39:34.000Z
tests/test_losses_config.py
blazejdolicki/vissl
9c10748a19fb1c637f32687142c8cd685f2410ff
[ "MIT" ]
277
2021-01-29T08:09:02.000Z
2022-03-31T07:57:35.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import logging import unittest from collections import namedtuple from classy_vision.generic.distributed_util import set_cpu_device from param...
35.1
83
0.694682
1,287
0.611111
0
0
583
0.276828
0
0
618
0.293447
10937391f6e8ece3c5f8b3a5b4d0211aebbf84c3
9,915
py
Python
LossAug/OpticalFlowLoss.py
gexahedron/pytti
9b8508537f0e8f10780c0027b2c9b308917e7889
[ "MIT" ]
null
null
null
LossAug/OpticalFlowLoss.py
gexahedron/pytti
9b8508537f0e8f10780c0027b2c9b308917e7889
[ "MIT" ]
null
null
null
LossAug/OpticalFlowLoss.py
gexahedron/pytti
9b8508537f0e8f10780c0027b2c9b308917e7889
[ "MIT" ]
null
null
null
from pytti.LossAug import MSELoss, LatentLoss import sys, os, gc import argparse import os import cv2 import glob import math, copy import numpy as np import torch from torch import nn from torch.nn import functional as F from PIL import Image import imageio import matplotlib.pyplot as plt from pytti.Note...
39.66
126
0.65648
7,743
0.780938
0
0
6,267
0.632073
0
0
1,527
0.154009
109422f948a8a29c875dcfdb424e7f71d2bd02c6
394
py
Python
apps/track/migrations/0022_auto_20210319_1551.py
martinlehoux/django_bike
05373d2649647fe8ebadb0aad54b9a7ec1900fe7
[ "MIT" ]
1
2020-08-12T17:53:37.000Z
2020-08-12T17:53:37.000Z
apps/track/migrations/0022_auto_20210319_1551.py
martinlehoux/django_bike
05373d2649647fe8ebadb0aad54b9a7ec1900fe7
[ "MIT" ]
12
2020-07-03T03:52:00.000Z
2021-09-22T18:00:44.000Z
apps/track/migrations/0022_auto_20210319_1551.py
martinlehoux/django_bike
05373d2649647fe8ebadb0aad54b9a7ec1900fe7
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-03-19 15:51 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("track", "0021_auto_20200915_1528"), ] operations = [ migrations.RemoveField( model_name="track", name="parser", ), ...
18.761905
47
0.560914
309
0.784264
0
0
0
0
0
0
101
0.256345
1095eaaa785c226cf93b3695060c9c47f5aa16a8
451
py
Python
solutions/404_sum_of_left_leaves.py
YiqunPeng/leetcode_pro
7e6376984f9baec49a5e827d98330fe3d1b656f0
[ "MIT" ]
null
null
null
solutions/404_sum_of_left_leaves.py
YiqunPeng/leetcode_pro
7e6376984f9baec49a5e827d98330fe3d1b656f0
[ "MIT" ]
null
null
null
solutions/404_sum_of_left_leaves.py
YiqunPeng/leetcode_pro
7e6376984f9baec49a5e827d98330fe3d1b656f0
[ "MIT" ]
null
null
null
class Solution: def sumOfLeftLeaves(self, root: TreeNode) -> int: if not root: return 0 res = 0 q = deque([root]) while q: node = q.popleft() if node.left: if not node.left.left and not node.left.right: res += no...
28.1875
62
0.463415
450
0.997783
0
0
0
0
0
0
0
0
10978ae397aee92267c1e48eddfbe94578ffc55a
6,123
py
Python
dev_code/color_kmeans_vis.py
Computational-Plant-Science/plant_image_analysis
321eaae9531cd5f8eaebf3ee6c68b99eb53e420c
[ "BSD-3-Clause" ]
3
2020-11-23T18:41:21.000Z
2020-11-24T22:13:06.000Z
dev_code/color_kmeans_vis.py
Computational-Plant-Science/plant_image_analysis
321eaae9531cd5f8eaebf3ee6c68b99eb53e420c
[ "BSD-3-Clause" ]
3
2020-11-23T17:03:31.000Z
2021-04-29T20:07:27.000Z
dev_code/color_kmeans_vis.py
Computational-Plant-Science/plant_image_analysis
321eaae9531cd5f8eaebf3ee6c68b99eb53e420c
[ "BSD-3-Clause" ]
null
null
null
''' Name: color_segmentation.py Version: 1.0 Summary: Extract plant traits (leaf area, width, height, ) by paralell processing Author: suxing liu Author-email: suxingliu@gmail.com Created: 2018-09-29 USAGE: python3 color_kmeans_vis.py -p /home/suxingliu/plant-image-analysis/sample_test/ -i 01.jpg -m 01_seg...
30.311881
116
0.645109
0
0
0
0
0
0
0
0
3,444
0.562469
1097973ec1380219467a3cca784a3a5967f37e86
120
py
Python
results/results_eval.py
eym55/power_grid_sim
35822a2d2f09c00a38841e0bf3395bc5ea0ddbaa
[ "MIT" ]
1
2022-01-26T15:19:15.000Z
2022-01-26T15:19:15.000Z
results/results_eval.py
eym55/power_grid_sim
35822a2d2f09c00a38841e0bf3395bc5ea0ddbaa
[ "MIT" ]
null
null
null
results/results_eval.py
eym55/power_grid_sim
35822a2d2f09c00a38841e0bf3395bc5ea0ddbaa
[ "MIT" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt import pickle df = pd.read_json('result.json',lines=True) print(df)
20
43
0.783333
0
0
0
0
0
0
0
0
13
0.108333
109969c2ebef94313329e4c92a1901ae1f014cd6
77
py
Python
fabfile/validation.py
b-cube/Response-Identification-Info
d2fa24c9f0d7db7d8bbf5cda937e1a9dd29a8f6e
[ "MIT" ]
null
null
null
fabfile/validation.py
b-cube/Response-Identification-Info
d2fa24c9f0d7db7d8bbf5cda937e1a9dd29a8f6e
[ "MIT" ]
1
2015-09-23T16:30:34.000Z
2015-09-23T16:30:34.000Z
fabfile/validation.py
b-cube/Response-Identification-Info
d2fa24c9f0d7db7d8bbf5cda937e1a9dd29a8f6e
[ "MIT" ]
1
2020-03-25T09:41:03.000Z
2020-03-25T09:41:03.000Z
# to run the metadata validation process via some ec2 and an rds connection
25.666667
75
0.792208
0
0
0
0
0
0
0
0
75
0.974026
109a679e147b4f56e0888419c137399febf66634
5,432
py
Python
papers_clf/tfidf_2_sentence.py
KellyShao/Writing-robots-vs.-Human
86d0a2a0f4ca773417f231a2d6796b429f182e38
[ "CECILL-B" ]
4
2018-10-18T23:02:41.000Z
2019-10-21T14:44:54.000Z
papers_clf/tfidf_2_sentence.py
KellyShao/Writing-robots-vs.-Human
86d0a2a0f4ca773417f231a2d6796b429f182e38
[ "CECILL-B" ]
null
null
null
papers_clf/tfidf_2_sentence.py
KellyShao/Writing-robots-vs.-Human
86d0a2a0f4ca773417f231a2d6796b429f182e38
[ "CECILL-B" ]
null
null
null
import csv import math import pandas as pd import numpy as np from sklearn import svm from sklearn.cross_validation import train_test_split from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.feature_extraction import text from sklearn import metrics from sklearn.metrics import roc_curve,...
40.537313
168
0.660714
0
0
0
0
0
0
0
0
707
0.130155
109b329d3c687011ac089097beb800b987a7d727
1,108
py
Python
chat_manager_api/categories/account.py
lordralinc/chat_manager_api
6c1d57f1d4942d53ee70099ea91f4cbb14b63aab
[ "MIT" ]
null
null
null
chat_manager_api/categories/account.py
lordralinc/chat_manager_api
6c1d57f1d4942d53ee70099ea91f4cbb14b63aab
[ "MIT" ]
null
null
null
chat_manager_api/categories/account.py
lordralinc/chat_manager_api
6c1d57f1d4942d53ee70099ea91f4cbb14b63aab
[ "MIT" ]
null
null
null
from chat_manager_api.categories.base import BaseAPICategory from chat_manager_api.models import account class AccountAPICategory(BaseAPICategory): def get_web_hook_info(self) -> account.GetWebHookInfo: return self.api.make_request("account.getWebHookInfo", dataclass=account.GetWebHookInfo) async de...
46.166667
120
0.768953
1,000
0.902527
0
0
0
0
497
0.448556
134
0.120939
109ec4c3520aaa8f1a607267ca7bf3c73ab92e09
1,674
py
Python
apps/health/views.py
dtisza1/bluebutton-web-server
6322f28d75bd9e00f8dc4b5988a0cd5f7c6c80cb
[ "Apache-2.0" ]
null
null
null
apps/health/views.py
dtisza1/bluebutton-web-server
6322f28d75bd9e00f8dc4b5988a0cd5f7c6c80cb
[ "Apache-2.0" ]
null
null
null
apps/health/views.py
dtisza1/bluebutton-web-server
6322f28d75bd9e00f8dc4b5988a0cd5f7c6c80cb
[ "Apache-2.0" ]
null
null
null
import logging from django.core.exceptions import ImproperlyConfigured from rest_framework.exceptions import APIException from rest_framework.views import APIView from rest_framework.response import Response from .checks import ( internal_services, external_services, ) logger = logging.getLogger('hhs_server.%s...
32.823529
130
0.664875
1,328
0.793309
0
0
0
0
0
0
341
0.203704
10a1b996b725d39d3e7091726d568372d4862d43
9,623
py
Python
tripleohelper/ovb_baremetal.py
redhat-openstack/python-tripleo-helper
bfa165538335edb1088170c7a92f097167225c81
[ "Apache-2.0" ]
2
2016-12-20T11:19:20.000Z
2017-03-17T22:39:32.000Z
tripleohelper/ovb_baremetal.py
redhat-openstack/python-tripleo-helper
bfa165538335edb1088170c7a92f097167225c81
[ "Apache-2.0" ]
null
null
null
tripleohelper/ovb_baremetal.py
redhat-openstack/python-tripleo-helper
bfa165538335edb1088170c7a92f097167225c81
[ "Apache-2.0" ]
1
2020-08-07T21:55:37.000Z
2020-08-07T21:55:37.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2016 Red Hat, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
39.929461
215
0.602827
8,666
0.900364
0
0
0
0
0
0
2,800
0.290909
10a276b2286ab552ab578380c0270c9f71f18d28
524
py
Python
main.py
soup-bowl/lu-jubilee-btn
8791044acd7e4d6a2dc21d71781f6365d2e7ce14
[ "MIT" ]
null
null
null
main.py
soup-bowl/lu-jubilee-btn
8791044acd7e4d6a2dc21d71781f6365d2e7ce14
[ "MIT" ]
null
null
null
main.py
soup-bowl/lu-jubilee-btn
8791044acd7e4d6a2dc21d71781f6365d2e7ce14
[ "MIT" ]
null
null
null
from machine import Pin import time from led import LED tube_btn = Pin(21, Pin.IN, Pin.PULL_UP) sys_led = Pin(25, Pin.OUT) print('Blinking LED to power check (no LED? Check LED batteries and/or script).') LED.led_blink(5) print('Blink code finish - Listening for presses.') while True: first = tube_btn.value() ...
24.952381
81
0.677481
0
0
0
0
0
0
0
0
153
0.291985
10a2a06189cfd607200f594682ebb88158b3ddb8
2,285
py
Python
trampolino/workflows/dsi_trk.py
matteomancini/trampolino
af904844404f97c49e0452527b01fd9f415677ba
[ "MIT" ]
3
2020-06-17T09:25:22.000Z
2021-06-22T23:16:53.000Z
trampolino/workflows/dsi_trk.py
matteomancini/trampolino
af904844404f97c49e0452527b01fd9f415677ba
[ "MIT" ]
1
2020-06-26T08:47:01.000Z
2020-07-21T14:02:40.000Z
trampolino/workflows/dsi_trk.py
matteomancini/trampolino
af904844404f97c49e0452527b01fd9f415677ba
[ "MIT" ]
3
2020-06-16T11:55:50.000Z
2020-11-25T01:37:17.000Z
from nipype.interfaces import utility as util from nipype.pipeline import engine as pe from .interfaces import dsi_studio as dsi import nipype.interfaces.diffusion_toolkit as dtk from nipype.algorithms.misc import Gunzip import os.path def create_pipeline(name="dsi_track", opt="", ensemble=""): parameters = {'nos...
32.642857
76
0.569803
0
0
0
0
0
0
0
0
379
0.165864
10a3272e6ee4e0b4d86ddd253e763f6e83ab8cca
780
py
Python
sponge-examples-projects/sponge-examples-project-spring-boot/sponge/remote_api_security.py
mnpas/sponge
7190f23ae888bbef49d0fbb85157444d6ea48bcd
[ "Apache-2.0" ]
9
2017-12-16T21:48:57.000Z
2022-01-06T12:22:24.000Z
sponge-examples-projects/sponge-examples-project-spring-boot/sponge/remote_api_security.py
mnpas/sponge
7190f23ae888bbef49d0fbb85157444d6ea48bcd
[ "Apache-2.0" ]
3
2020-12-18T11:56:46.000Z
2022-03-31T18:37:10.000Z
sponge-examples-projects/sponge-examples-project-spring-boot/sponge/remote_api_security.py
mnpas/sponge
7190f23ae888bbef49d0fbb85157444d6ea48bcd
[ "Apache-2.0" ]
2
2019-12-29T16:08:32.000Z
2020-06-15T14:05:34.000Z
""" Sponge Knowledge Base Remote API security """ def configureAccessService(): # Configure the RoleBasedAccessService. # Simple access configuration: role -> knowledge base names regexps. remoteApiServer.accessService.addRolesToKb({ "ROLE_ADMIN":[".*"], "ROLE_ANONYMOUS":["boot", "python"]}) # Simple...
33.913043
107
0.723077
0
0
0
0
0
0
0
0
422
0.541026
10a4265ffb9a4bb38670b4dbc1ea1167b07ffcc8
753
py
Python
ConsecutiveCharacters.py
vanigupta20024/Programming-Challenges
578dba33e9f6b04052a503bcb5de9b32f33494a5
[ "MIT" ]
14
2020-10-15T21:47:18.000Z
2021-12-01T06:06:51.000Z
ConsecutiveCharacters.py
vanigupta20024/Programming-Challenges
578dba33e9f6b04052a503bcb5de9b32f33494a5
[ "MIT" ]
null
null
null
ConsecutiveCharacters.py
vanigupta20024/Programming-Challenges
578dba33e9f6b04052a503bcb5de9b32f33494a5
[ "MIT" ]
4
2020-06-15T14:40:45.000Z
2021-06-15T06:22:03.000Z
''' Given a string s, the power of the string is the maximum length of a non-empty substring that contains only one unique character. Return the power of the string. Example 1: Input: s = "leetcode" Output: 2 Explanation: The substring "ee" is of length 2 with the character 'e' only. Example 2: Input: s = "abbcccddd...
26.892857
129
0.61089
326
0.432935
0
0
0
0
0
0
424
0.563081
10a46c5b25f3ebf58bddf11dc9dfc17dcf31469d
8,540
py
Python
tests/ocr/test_suggestion_medication_administration.py
lifeomic/phc-sdk-py
51709c1c2f129a3fbe336a44e4d501ae0249859e
[ "MIT" ]
1
2020-07-22T12:46:58.000Z
2020-07-22T12:46:58.000Z
tests/ocr/test_suggestion_medication_administration.py
lifeomic/phc-sdk-py
51709c1c2f129a3fbe336a44e4d501ae0249859e
[ "MIT" ]
54
2019-10-09T16:19:04.000Z
2022-01-19T20:28:59.000Z
tests/ocr/test_suggestion_medication_administration.py
lifeomic/phc-sdk-py
51709c1c2f129a3fbe336a44e4d501ae0249859e
[ "MIT" ]
2
2019-10-30T19:54:43.000Z
2020-12-03T18:57:15.000Z
import pandas as pd from phc.easy.ocr.suggestion import (expand_array_column, expand_medication_administrations, frame_for_type) sample = expand_array_column( pd.DataFrame( [ { "suggestions": [ ...
45.668449
96
0.353396
0
0
0
0
0
0
0
0
2,959
0.346487
10a4e5fa0983c2458d0d23edcfdb3d0d1a09e3d6
482
py
Python
spacing/json_load.py
Pixir/Pixir
63a6fc0728403af92eadf188f532f9f41cd9f912
[ "MIT" ]
null
null
null
spacing/json_load.py
Pixir/Pixir
63a6fc0728403af92eadf188f532f9f41cd9f912
[ "MIT" ]
1
2020-02-10T08:11:23.000Z
2020-02-10T08:11:23.000Z
spacing/json_load.py
Pixir/Pixir
63a6fc0728403af92eadf188f532f9f41cd9f912
[ "MIT" ]
3
2020-02-09T11:14:33.000Z
2020-04-11T16:10:17.000Z
import json from bs4 import BeautifulSoup import re for i in range(0, 39): with open(f'./KorQuAD/korquad2.1_train_{i}.json', 'r', encoding='utf-8') as f: js = json.load(f) texts = [] for i in range(len(js['data'])): text = js['data'][i]['raw_html'] soup = BeautifulSoup(text, 'html5lib') text =...
25.368421
82
0.609959
0
0
0
0
0
0
0
0
126
0.257143
10a59a24a85be6682daa683fce4544a51ae31094
312
py
Python
auction/admin.py
AnthonyNicklin/newage-auctions
f829c9761e4fef0c084cf0244a4617a4bda8e0c2
[ "FSFAP" ]
1
2021-07-29T07:47:10.000Z
2021-07-29T07:47:10.000Z
auction/admin.py
AnthonyNicklin/newage-auctions
f829c9761e4fef0c084cf0244a4617a4bda8e0c2
[ "FSFAP" ]
9
2019-12-19T21:27:23.000Z
2022-01-13T01:59:10.000Z
auction/admin.py
AnthonyNicklin/newage-auctions
f829c9761e4fef0c084cf0244a4617a4bda8e0c2
[ "FSFAP" ]
1
2020-02-11T19:50:45.000Z
2020-02-11T19:50:45.000Z
from django.contrib import admin from .models import Auction, Lot, Bid class BidAdmin(admin.ModelAdmin): readonly_fields = ( 'user', 'auction', 'bid_amount', 'bid_time', ) admin.site.register(Auction) admin.site.register(Lot) admin.site.register(Bid, BidAdmin)
16.421053
37
0.644231
142
0.455128
0
0
0
0
0
0
37
0.11859
10a637ed134f858c509d1512e086fa81036f6f19
922
py
Python
scale/source/apps.py
kaydoh/scale
1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee
[ "Apache-2.0" ]
121
2015-11-18T18:15:33.000Z
2022-03-10T01:55:00.000Z
scale/source/apps.py
kaydoh/scale
1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee
[ "Apache-2.0" ]
1,415
2015-12-23T23:36:04.000Z
2022-01-07T14:10:09.000Z
scale/source/apps.py
kaydoh/scale
1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee
[ "Apache-2.0" ]
66
2015-12-03T20:38:56.000Z
2020-07-27T15:28:11.000Z
"""Defines the application configuration for the source application""" from __future__ import unicode_literals from django.apps import AppConfig class SourceConfig(AppConfig): """Configuration for the source app """ name = 'source' label = 'source' verbose_name = 'Source' def ready(self): ...
30.733333
83
0.724512
773
0.838395
0
0
0
0
0
0
315
0.341649
10a6aa884d2b424b836a35683369b782a937c1ff
1,556
py
Python
aim/web/api/views.py
admariner/aim
4c143ea40acf3531abfa69f66503428d73d9fedc
[ "Apache-2.0" ]
1
2021-07-19T19:21:30.000Z
2021-07-19T19:21:30.000Z
aim/web/api/views.py
admariner/aim
4c143ea40acf3531abfa69f66503428d73d9fedc
[ "Apache-2.0" ]
null
null
null
aim/web/api/views.py
admariner/aim
4c143ea40acf3531abfa69f66503428d73d9fedc
[ "Apache-2.0" ]
null
null
null
import os from aim.web.api.utils import APIRouter # wrapper for fastapi.APIRouter from fastapi.responses import FileResponse from aim.web.api.projects.project import Project general_router = APIRouter() @general_router.get('/static-files/{path:path}/') async def serve_static_files(path): from aim import web ...
37.95122
95
0.701157
0
0
0
0
1,240
0.796915
1,076
0.691517
347
0.223008
10a73cc97171571950fa706f1f5a0031f3cdc1f9
38,441
py
Python
merceedge/core.py
merceedge/MerceEdge
b1448fbaed912e04e1c71d3f2101f2f297eca794
[ "Apache-2.0" ]
6
2019-01-25T09:03:27.000Z
2021-02-17T14:30:06.000Z
merceedge/core.py
merceedge/MerceEdge
b1448fbaed912e04e1c71d3f2101f2f297eca794
[ "Apache-2.0" ]
null
null
null
merceedge/core.py
merceedge/MerceEdge
b1448fbaed912e04e1c71d3f2101f2f297eca794
[ "Apache-2.0" ]
null
null
null
import threading import enum import os import sys import copy import json import asyncio import attr import uuid import functools import datetime import multiprocessing from time import monotonic import time import copy from collections import deque from concurrent.futures import ThreadPoolExecutor from async_timeout i...
35.429493
122
0.603782
35,575
0.922134
0
0
7,513
0.194743
8,025
0.208015
10,141
0.262863
10a97bd58b8abf9c9e02efdadaee1fda99449912
549
py
Python
trinitee/manage.py
chaosk/trinitee
30190c7e8ff2164c1127e26e733e0b65a9cd1f57
[ "BSD-3-Clause" ]
1
2017-04-20T18:39:48.000Z
2017-04-20T18:39:48.000Z
trinitee/manage.py
chaosk/trinitee
30190c7e8ff2164c1127e26e733e0b65a9cd1f57
[ "BSD-3-Clause" ]
null
null
null
trinitee/manage.py
chaosk/trinitee
30190c7e8ff2164c1127e26e733e0b65a9cd1f57
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from django.core.management import execute_manager try: import settings # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory" " containing %r. It appears you've customized things.\n" "You'll have to...
36.6
77
0.744991
0
0
0
0
0
0
0
0
342
0.622951
10aab83e6e464c961b41023a7a95e718594c6eb3
3,981
py
Python
src/storage.py
stivenramireza/images-resizer-app
1dcce0bb9de6f1bd131f3d7d2bdd0d56b539ffa9
[ "MIT" ]
null
null
null
src/storage.py
stivenramireza/images-resizer-app
1dcce0bb9de6f1bd131f3d7d2bdd0d56b539ffa9
[ "MIT" ]
null
null
null
src/storage.py
stivenramireza/images-resizer-app
1dcce0bb9de6f1bd131f3d7d2bdd0d56b539ffa9
[ "MIT" ]
1
2022-01-14T07:42:17.000Z
2022-01-14T07:42:17.000Z
import os import sys import shutil import asyncio import aioboto3 from glob import glob from PIL import Image from fnmatch import fnmatch from src.secrets import ( SPACES_REGION, SPACES_BUCKET, SPACES_PREFIX, SPACES_ENDPOINT_URL, SPACES_ACCESS_KEY, SPACES_SECRET_KEY ) from src.format import (...
35.864865
116
0.626225
0
0
0
0
0
0
3,542
0.889726
540
0.135644
10ab0866f0c98cd274e552476ba7f587e6c76b7b
17,599
py
Python
sdbms/core/_parser.py
xSkyripper/simple-fs-dbms
731621540eebcf36e7edb230c56304b9674bdd45
[ "Apache-2.0" ]
null
null
null
sdbms/core/_parser.py
xSkyripper/simple-fs-dbms
731621540eebcf36e7edb230c56304b9674bdd45
[ "Apache-2.0" ]
null
null
null
sdbms/core/_parser.py
xSkyripper/simple-fs-dbms
731621540eebcf36e7edb230c56304b9674bdd45
[ "Apache-2.0" ]
null
null
null
import re import operator from collections import namedtuple SCHEMA_TYPES = {'str', 'int', 'bool'} ROWID_KEY = '_rowid' class Literal(namedtuple('Literal', 'value')): @classmethod def eval_value(cls, value): if not isinstance(value, str): raise ValueError(f"Parameter {value} must be a str...
39.108889
410
0.602875
16,591
0.942724
976
0.055458
475
0.02699
0
0
3,461
0.196659
10ab56398b4e896765f87507294e80c3f8b7fff7
6,318
py
Python
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ipv4_telnet_mgmt_cfg.py
tkamata-test/ydk-py
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ipv4_telnet_mgmt_cfg.py
tkamata-test/ydk-py
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ipv4_telnet_mgmt_cfg.py
tkamata-test/ydk-py
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
""" Cisco_IOS_XR_ipv4_telnet_mgmt_cfg This module contains a collection of YANG definitions for Cisco IOS\-XR ipv4\-telnet\-mgmt package configuration. This module contains definitions for the following management objects\: telnet\: Global Telnet configuration commands Copyright (c) 2013\-2016 by Cisco Systems, I...
28.459459
216
0.532922
5,778
0.91453
0
0
1,727
0.273346
0
0
2,607
0.412631
10ab5f4f80fbe79dcb3763a9fbb0a0d765cb29f5
7,027
py
Python
projects/solutions/sa/distance.py
vibbits/gentle-hands-on-python
32aadd1fa8ebee1089cdbb96a4c64ba06c4a8ced
[ "CC-BY-4.0" ]
null
null
null
projects/solutions/sa/distance.py
vibbits/gentle-hands-on-python
32aadd1fa8ebee1089cdbb96a4c64ba06c4a8ced
[ "CC-BY-4.0" ]
60
2020-06-05T13:22:21.000Z
2022-03-17T08:43:59.000Z
projects/solutions/sa/distance.py
vibbits/gentle-hands-on-python
32aadd1fa8ebee1089cdbb96a4c64ba06c4a8ced
[ "CC-BY-4.0" ]
3
2020-04-17T09:46:50.000Z
2021-09-10T09:41:06.000Z
""" A module for calculating the relationship (or distance) between 2 strings. Namely: - edit_distance() - needleman_wunsch() - align() - coverage() """ from typing import Callable, Tuple, List from enum import IntEnum from operator import itemgetter from functools import lru_cache import unittest cl...
30.552174
84
0.539491
1,956
0.278355
0
0
3,047
0.433613
0
0
1,125
0.160097
10abfb12f6e2336b0704fd165a04ee71fb341a6a
10,391
py
Python
indicator17.py
nkzhengwt/Spyder_cta
1cb5e8fd9d70da381ef198aec6431aca4feb24da
[ "MIT" ]
13
2018-05-18T09:19:24.000Z
2019-03-18T02:06:49.000Z
indicator17.py
nkuzhengwt/spyder_cta
1cb5e8fd9d70da381ef198aec6431aca4feb24da
[ "MIT" ]
null
null
null
indicator17.py
nkuzhengwt/spyder_cta
1cb5e8fd9d70da381ef198aec6431aca4feb24da
[ "MIT" ]
2
2019-03-17T14:29:10.000Z
2019-04-09T01:50:38.000Z
# -*- coding: utf-8 -*- import pandas as pd import numpy as np import math import datetime import time import matplotlib.pyplot as plt import warnings warnings.filterwarnings("ignore") class Indicators(): def __init__(self, dataframe, params = []): self.dataframe = dataframe self.params = params ...
53.287179
420
0.630161
10,076
0.958432
0
0
0
0
0
0
2,180
0.207362
10ad5bf59feb60ba24a561f3cbe2b398632d6514
1,785
py
Python
colour/examples/io/examples_ies_tm2714.py
BPearlstine/colour
40f0281295496774d2a19eee017d50fd0c265bd8
[ "Cube", "BSD-3-Clause" ]
2
2020-05-03T20:15:42.000Z
2021-04-09T18:19:06.000Z
colour/examples/io/examples_ies_tm2714.py
BPearlstine/colour
40f0281295496774d2a19eee017d50fd0c265bd8
[ "Cube", "BSD-3-Clause" ]
null
null
null
colour/examples/io/examples_ies_tm2714.py
BPearlstine/colour
40f0281295496774d2a19eee017d50fd0c265bd8
[ "Cube", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Showcases input / output *IES TM-27-14* spectral data XML files related examples. """ import os import colour from colour.utilities import message_box RESOURCES_DIRECTORY = os.path.join(os.path.dirname(__file__), 'resources') message_box('"IES TM-27-14" Spectral Data "XML" File IO') mes...
35.7
77
0.746779
0
0
0
0
0
0
0
0
792
0.443697
10ae75ed502594e92857e84f0c648a364231335c
158
py
Python
ISA/Util/__init__.py
tumido/FIT-VUT-projects
0e23c38a11d0aee55921e15b8865256efddefc53
[ "BSD-2-Clause" ]
null
null
null
ISA/Util/__init__.py
tumido/FIT-VUT-projects
0e23c38a11d0aee55921e15b8865256efddefc53
[ "BSD-2-Clause" ]
null
null
null
ISA/Util/__init__.py
tumido/FIT-VUT-projects
0e23c38a11d0aee55921e15b8865256efddefc53
[ "BSD-2-Clause" ]
3
2015-05-16T00:29:59.000Z
2021-02-03T00:31:16.000Z
from .Announce import get_announce, announce_to_txt from .Torrent import get_torrent_file, parse_torrent_file from .Tracker import get_peerlist, save_peerlist
52.666667
57
0.873418
0
0
0
0
0
0
0
0
0
0
10b0dfd51fb725245bdb9b998ac1c1c6f5c26b22
2,577
py
Python
python-sdk/odi/client/storage/s3.py
Project-OpenBytes/odi
ab9dbcc4d29c80e21f1a8ca3be911eb755495c54
[ "Apache-2.0" ]
5
2021-12-09T09:32:36.000Z
2022-01-31T20:21:35.000Z
python-sdk/odi/client/storage/s3.py
Project-OpenBytes/odi
ab9dbcc4d29c80e21f1a8ca3be911eb755495c54
[ "Apache-2.0" ]
17
2022-01-07T04:24:25.000Z
2022-02-14T11:22:41.000Z
python-sdk/odi/client/storage/s3.py
Project-OpenBytes/odi
ab9dbcc4d29c80e21f1a8ca3be911eb755495c54
[ "Apache-2.0" ]
6
2021-12-09T09:29:22.000Z
2021-12-31T11:00:24.000Z
# Copyright 2021 The OpenBytes Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
31.814815
97
0.625146
1,759
0.682577
0
0
856
0.332169
0
0
686
0.266201
10b2cc5f512be5bb8241e30505ccfc29ff27302f
1,505
py
Python
Chapter14/c14_11_rainbow_callMaxOn2_viaSimulation.py
John-ye666/Python-for-Finance-Second-Edition
dabef09bcdd7b0ec2934774741bd0a7e1950de73
[ "MIT" ]
236
2017-07-02T03:06:54.000Z
2022-03-31T03:15:33.000Z
Chapter14/c14_11_rainbow_callMaxOn2_viaSimulation.py
John-ye666/Python-for-Finance-Second-Edition
dabef09bcdd7b0ec2934774741bd0a7e1950de73
[ "MIT" ]
null
null
null
Chapter14/c14_11_rainbow_callMaxOn2_viaSimulation.py
John-ye666/Python-for-Finance-Second-Edition
dabef09bcdd7b0ec2934774741bd0a7e1950de73
[ "MIT" ]
139
2017-06-30T10:28:16.000Z
2022-01-19T19:43:34.000Z
""" Name : c14_11_rainbow_callMaxOn2_viaSimulation.py Book : Python for Finance (2nd ed.) Publisher: Packt Publishing Ltd. Author : Yuxing Yan Date : 6/6/2017 email : yany@canisius.edu paulyxy@hotmail.com """ import scipy as sp from scipy import zeros, sqrt, shape # sp.rand...
28.396226
62
0.598007
0
0
0
0
0
0
0
0
622
0.413289
10b32ad162c00e0088fd2085f0ff60ca3be39e4b
67
py
Python
loudblog_just_for_git_purposes/yatraWebPageAutomation.py
hodlerfolyf/MobileSatyagraha_Backend_aws
3a82689ae44867f93073581a27c22cd5d8390c52
[ "MIT" ]
2
2020-01-27T03:25:37.000Z
2020-03-30T21:48:07.000Z
loudblog_just_for_git_purposes/yatraWebPageAutomation.py
hodlerfolyf/MobileSatyagraha_Backend_aws
3a82689ae44867f93073581a27c22cd5d8390c52
[ "MIT" ]
3
2021-03-25T23:33:50.000Z
2021-06-01T23:24:21.000Z
loudblog_just_for_git_purposes/yatraWebPageAutomation.py
hodlerfolyf/MobileSatyagraha_Backend_aws
3a82689ae44867f93073581a27c22cd5d8390c52
[ "MIT" ]
3
2021-12-07T11:50:26.000Z
2022-01-22T09:21:05.000Z
from db_repo import * mydb=database_flaskr() rows=mydb.yatraWPA()
22.333333
23
0.776119
0
0
0
0
0
0
0
0
0
0
10b3898c39cc445a1d7a9fa450e58ed1fdf4ed6d
13,823
py
Python
python/constants.py
cbilstra/FATE
40f3962db471764e1cfcd39e295a13308b7d85fd
[ "MIT" ]
null
null
null
python/constants.py
cbilstra/FATE
40f3962db471764e1cfcd39e295a13308b7d85fd
[ "MIT" ]
null
null
null
python/constants.py
cbilstra/FATE
40f3962db471764e1cfcd39e295a13308b7d85fd
[ "MIT" ]
null
null
null
import os from os.path import join INVESTIGATE = False # Records coverages and saves them. Generates a plot in the end. Do not use with automate. TEST_OUTSIDE_FUZZER = False # Runs FATE as standalone (1+1) EA BLACKBOX = True and TEST_OUTSIDE_FUZZER # Disables white-box information such as thresholds and feat imp. F...
56.651639
119
0.747667
0
0
0
0
0
0
0
0
7,814
0.56529
10b3992140f6b71f5bf7a94b467357cdf363478d
417
py
Python
tests/test_cli.py
sthagen/python-xmllint_map_html
23363cfe1c126bc72efddf8fea084283375e2204
[ "MIT" ]
null
null
null
tests/test_cli.py
sthagen/python-xmllint_map_html
23363cfe1c126bc72efddf8fea084283375e2204
[ "MIT" ]
16
2020-09-11T11:07:09.000Z
2020-12-06T16:42:18.000Z
tests/test_cli.py
sthagen/python-xmllint_map_html
23363cfe1c126bc72efddf8fea084283375e2204
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # pylint: disable=missing-docstring,unused-import,reimported import io import json import pytest # type: ignore import xmllint_map_html.cli as cli import xmllint_map_html.xmllint_map_html as xmh def test_main_ok_minimal(capsys): job = [''] report_expected = '' assert cli.main(arg...
24.529412
60
0.714628
0
0
0
0
0
0
0
0
101
0.242206
10b4c550d804f5bcd18eb2df2fb3a4ec068f3834
1,668
py
Python
mat3json.py
tienhaophung/poseval
e78fd221835803895d693de5b30dd7002fd7991c
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
mat3json.py
tienhaophung/poseval
e78fd221835803895d693de5b30dd7002fd7991c
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
mat3json.py
tienhaophung/poseval
e78fd221835803895d693de5b30dd7002fd7991c
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import os # import json from scipy.io import loadmat import argparse import mat4py import h5py import json_tricks as json parser = argparse.ArgumentParser(description="Convert .mat to .json file") parser.add_argument("-ddir", "--data_dir", type=str, default="", help="Data directory of .mat files") ...
26.47619
74
0.613909
0
0
0
0
0
0
0
0
579
0.347122
10b59feccd43ac230e025390e6b432e7a9694f66
261
py
Python
easy/calculate_distance.py
Amin-Abouee/code_eval
8f0d53d2af128d7b57dd3fc8ff16616252f18a52
[ "MIT" ]
null
null
null
easy/calculate_distance.py
Amin-Abouee/code_eval
8f0d53d2af128d7b57dd3fc8ff16616252f18a52
[ "MIT" ]
null
null
null
easy/calculate_distance.py
Amin-Abouee/code_eval
8f0d53d2af128d7b57dd3fc8ff16616252f18a52
[ "MIT" ]
null
null
null
import sys import re import math with open(sys.argv[1]) as test_cases: for test in test_cases: t = re.findall("[+-]?\d+", test) nums = [int(x) for x in t] print int(math.sqrt((nums[0]-nums[2]) * (nums[0]-nums[2]) + (nums[1]-nums[3]) * (nums[1]-nums[3])))
32.625
101
0.613027
0
0
0
0
0
0
0
0
10
0.038314
10b61e4dc3d48f58d5fda316899ef0e8fdafca8b
4,606
py
Python
airflow_provider_kafka/operators/produce_to_topic.py
astronomer/airflow-provider-kafka
c836ff91a5a1cd3a5c1f635a0e3c6602322b579b
[ "Apache-2.0" ]
3
2022-03-11T02:22:41.000Z
2022-03-25T21:53:10.000Z
airflow_provider_kafka/operators/produce_to_topic.py
astronomer/airflow-provider-kafka
c836ff91a5a1cd3a5c1f635a0e3c6602322b579b
[ "Apache-2.0" ]
1
2022-03-09T11:22:03.000Z
2022-03-09T11:22:03.000Z
airflow_provider_kafka/operators/produce_to_topic.py
astronomer/airflow-provider-kafka
c836ff91a5a1cd3a5c1f635a0e3c6602322b579b
[ "Apache-2.0" ]
null
null
null
import logging from functools import partial from typing import Any, Callable, Dict, Optional, Sequence, Union from airflow.exceptions import AirflowException from airflow.models import BaseOperator from airflow_provider_kafka.hooks.producer import KafkaProducerHook from airflow_provider_kafka.shared_utils import get...
41.125
118
0.694746
3,962
0.860182
0
0
0
0
0
0
2,015
0.437473
10b7df52a7109b3cd059e5aa3d9c1aee9eb2218c
2,171
py
Python
tests/models/boundary/test_is_boundary_concave_to_y.py
EderVs/Voronoi-Diagrams
6e69f9b6eb516dee12d66f187cf267a7b527da5f
[ "MIT" ]
3
2021-11-12T17:43:08.000Z
2022-01-03T02:47:34.000Z
tests/models/boundary/test_is_boundary_concave_to_y.py
EderVs/Voronoi-Diagrams
6e69f9b6eb516dee12d66f187cf267a7b527da5f
[ "MIT" ]
3
2021-11-19T20:12:31.000Z
2021-11-19T20:14:39.000Z
tests/models/boundary/test_is_boundary_concave_to_y.py
EderVs/Voronoi-Diagrams
6e69f9b6eb516dee12d66f187cf267a7b527da5f
[ "MIT" ]
null
null
null
"""Test is_boundary_not_x_monotone method in WeightedPointBoundary.""" # Standard from typing import List, Any from random import randint # Models from voronoi_diagrams.models import ( WeightedSite, WeightedPointBisector, WeightedPointBoundary, ) # Math from decimal import Decimal class TestWeightedPoin...
41.75
77
0.706587
1,872
0.862275
0
0
0
0
0
0
343
0.157992
10b999d930f89df35286892beee53b570eddc382
1,202
py
Python
src/core/models/classsification.py
romanovacca/detectioncollection
98f43ceb4ddd51af39fd6566685a8dc57a1380b4
[ "MIT" ]
null
null
null
src/core/models/classsification.py
romanovacca/detectioncollection
98f43ceb4ddd51af39fd6566685a8dc57a1380b4
[ "MIT" ]
null
null
null
src/core/models/classsification.py
romanovacca/detectioncollection
98f43ceb4ddd51af39fd6566685a8dc57a1380b4
[ "MIT" ]
null
null
null
import os import torchvision import torchvision.models as models from src.core.config import config class Model(): def __init__(self, model=None, classes=None, device=None): """ Initializes a model that is predefined or manually added. Most models are taked from Pytorch's torchvision. These model...
30.820513
93
0.631448
1,097
0.912646
0
0
0
0
0
0
398
0.331115
10bb63ae565c938efcb0bb9a6dc0a388e76e7918
46,242
py
Python
flash/core/data/io/input_transform.py
ar90n/lightning-flash
61e1a2d3b72f8fbbffe6ace14fb5b5bb35c5f131
[ "Apache-2.0" ]
null
null
null
flash/core/data/io/input_transform.py
ar90n/lightning-flash
61e1a2d3b72f8fbbffe6ace14fb5b5bb35c5f131
[ "Apache-2.0" ]
null
null
null
flash/core/data/io/input_transform.py
ar90n/lightning-flash
61e1a2d3b72f8fbbffe6ace14fb5b5bb35c5f131
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # 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...
38.09061
120
0.648674
39,821
0.861144
0
0
35,682
0.771636
0
0
25,446
0.550279
10bc0a151128639eac20d774f3975e3ffce78b0c
1,768
py
Python
scripts/ranger/system_requests.py
scil/ansible-ambari-manager
ec6e8406e0475dac8627d2539bf2363c98ace399
[ "Apache-2.0" ]
10
2017-08-21T09:45:42.000Z
2020-10-02T12:13:55.000Z
scripts/ranger/system_requests.py
scil/ansible-ambari-manager
ec6e8406e0475dac8627d2539bf2363c98ace399
[ "Apache-2.0" ]
1
2018-03-29T11:14:45.000Z
2018-03-29T11:14:45.000Z
scripts/ranger/system_requests.py
scil/ansible-ambari-manager
ec6e8406e0475dac8627d2539bf2363c98ace399
[ "Apache-2.0" ]
5
2017-11-23T11:33:18.000Z
2019-12-16T09:59:12.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 "License")...
40.181818
152
0.765837
892
0.504525
0
0
0
0
0
0
882
0.498869
10bd99ec8ccedb03c569281fb82814ef2e18a1af
44
py
Python
europython-2018/code/simple_bind/run.py
svenstaro/talks
0462268a8c684dde65aceb2fb98644cb655c5013
[ "MIT" ]
5
2018-07-26T10:45:41.000Z
2020-08-16T17:45:51.000Z
europython-2018/code/simple_bind/run.py
svenstaro/talks
0462268a8c684dde65aceb2fb98644cb655c5013
[ "MIT" ]
null
null
null
europython-2018/code/simple_bind/run.py
svenstaro/talks
0462268a8c684dde65aceb2fb98644cb655c5013
[ "MIT" ]
1
2020-10-02T22:09:15.000Z
2020-10-02T22:09:15.000Z
from europython import hello hello("Alisa")
14.666667
28
0.795455
0
0
0
0
0
0
0
0
7
0.159091
10bdd4d3723e55e8ab379a60437ccd0b2d7f972d
8,587
py
Python
describe.py
Antip003/logistic_regression
5b80e56386d377c6d6c2d0d16dc7b31992b30ad8
[ "MIT" ]
null
null
null
describe.py
Antip003/logistic_regression
5b80e56386d377c6d6c2d0d16dc7b31992b30ad8
[ "MIT" ]
null
null
null
describe.py
Antip003/logistic_regression
5b80e56386d377c6d6c2d0d16dc7b31992b30ad8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import csv import datetime import math from tabulate import tabulate import scipy.stats as st from tqdm import tqdm import numpy as np np.seterr(all='ignore') def isfloat(val): try: val = float(val) if math.isnan(val): return False return ...
37.17316
125
0.501572
7,977
0.928962
0
0
0
0
0
0
718
0.083615
10be6da56035fd9ae609938d9ac287a00e7f04d6
1,446
py
Python
package.py
wolfogre/notify-github-release
d39b53b78438e242209e745b34d6615ae09875dc
[ "MIT" ]
1
2018-08-12T09:16:23.000Z
2018-08-12T09:16:23.000Z
package.py
wolfogre/notify-github-release
d39b53b78438e242209e745b34d6615ae09875dc
[ "MIT" ]
1
2018-07-11T05:39:42.000Z
2018-07-11T05:39:42.000Z
package.py
wolfogre/notify-github-release
d39b53b78438e242209e745b34d6615ae09875dc
[ "MIT" ]
null
null
null
import os import shutil from modulefinder import ModuleFinder def main(): temp_dir = "package_temp" if os.path.exists(temp_dir): shutil.rmtree(temp_dir) os.makedirs(temp_dir) for py in ["index.py", "notifier.py"]: src, dst = py, os.path.join(temp_dir, py) print("copy '%s' to '...
30.125
96
0.591286
0
0
0
0
0
0
0
0
250
0.172891
529b7c74855c1ebbaf382f7acad7feee7b497ce2
894
py
Python
dataset_loaders/test/data_augmentation/_verify_flip_axis.py
dendisuhubdy/fc-drn
10656d254b450539b50c7c9e38b5dde7ace7c2c3
[ "MIT" ]
9
2018-08-02T06:50:47.000Z
2021-08-09T06:55:42.000Z
dataset_loaders/test/data_augmentation/_verify_flip_axis.py
dendisuhubdy/fc-drn
10656d254b450539b50c7c9e38b5dde7ace7c2c3
[ "MIT" ]
null
null
null
dataset_loaders/test/data_augmentation/_verify_flip_axis.py
dendisuhubdy/fc-drn
10656d254b450539b50c7c9e38b5dde7ace7c2c3
[ "MIT" ]
5
2019-01-22T13:02:25.000Z
2020-04-07T12:15:03.000Z
import numpy as np def flip_axis(x_in, axis): x_out = np.zeros(x_in.shape, dtype=x_in.dtype) for i, x in enumerate(x_in): x = np.asarray(x).swapaxes(axis, 0) x = x[::-1, ...] x_out[i] = x.swapaxes(0, axis) return x_out def flip_axis_fra(x, flipping_axis): pattern = [flipping_...
28.83871
66
0.585011
0
0
0
0
0
0
0
0
87
0.097315
529d02901aebe50198c7119ce11dba7ba389558e
6,932
py
Python
maya/Tests/joint_test.py
ryu-sw/alembic
395450bad88f9d5ed6d20612e9201aac93a5eb54
[ "MIT" ]
921
2015-01-03T11:04:38.000Z
2022-03-29T06:38:34.000Z
maya/Tests/joint_test.py
ryu-sw/alembic
395450bad88f9d5ed6d20612e9201aac93a5eb54
[ "MIT" ]
264
2015-01-05T17:15:45.000Z
2022-03-28T20:14:51.000Z
maya/Tests/joint_test.py
ryu-sw/alembic
395450bad88f9d5ed6d20612e9201aac93a5eb54
[ "MIT" ]
276
2015-01-12T01:34:20.000Z
2022-03-08T09:19:42.000Z
##-***************************************************************************** ## ## Copyright (c) 2009-2011, ## Sony Pictures Imageworks, Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source and binary forms, with...
46.837838
139
0.657819
4,386
0.632718
0
0
0
0
0
0
3,056
0.440854
529d121f9adcfecd640a8c4cf37ab1034c262fe9
3,625
py
Python
airflow/contrib/hooks/gcp_pubsub_hook.py
diggzhang/airflow-dingit
41482b83130d5815b772840681fb36eb9bfa69b9
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
6
2016-04-20T20:40:43.000Z
2022-02-20T10:32:00.000Z
airflow/contrib/hooks/gcp_pubsub_hook.py
diggzhang/airflow-dingit
41482b83130d5815b772840681fb36eb9bfa69b9
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
13
2018-11-30T18:18:32.000Z
2021-02-19T17:04:12.000Z
airflow/contrib/hooks/gcp_pubsub_hook.py
diggzhang/airflow-dingit
41482b83130d5815b772840681fb36eb9bfa69b9
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
8
2016-04-13T21:22:46.000Z
2020-07-31T18:31:59.000Z
# -*- coding: utf-8 -*- # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software ...
38.56383
79
0.642207
2,824
0.779034
0
0
0
0
0
0
2,131
0.587862
529df55b21a880c44659499ee8c65dadbb2b9f31
1,635
py
Python
src/repositories/note.py
notalab/api
7afc0f9896c0d4b5f81605f671f13a9168c78380
[ "MIT" ]
null
null
null
src/repositories/note.py
notalab/api
7afc0f9896c0d4b5f81605f671f13a9168c78380
[ "MIT" ]
null
null
null
src/repositories/note.py
notalab/api
7afc0f9896c0d4b5f81605f671f13a9168c78380
[ "MIT" ]
null
null
null
""" Defines the Note repository """ import random import string import time import bcrypt from sqlalchemy.orm import load_only from werkzeug.exceptions import Forbidden, UnprocessableEntity from models import Note class NoteRepository: @staticmethod def create(user, notebook_id, title, content): ""...
24.044118
75
0.607339
1,415
0.865443
0
0
1,369
0.837309
0
0
200
0.122324
52a0ea8374d3628028b18a4cfa58c3fe60049d6c
575
py
Python
src/main/resources/pytz/zoneinfo/Africa/Ndjamena.py
TheEin/swagger-maven-plugin
cf93dce2d5c8d3534f4cf8c612b11e2d2313871b
[ "Apache-2.0" ]
65
2015-11-14T13:46:01.000Z
2021-08-14T05:54:04.000Z
lib/pytz/zoneinfo/Africa/Ndjamena.py
tjsavage/polymer-dashboard
19bc467f1206613f8eec646b6f2bc43cc319ef75
[ "CNRI-Python", "Linux-OpenIB" ]
13
2016-03-31T20:00:17.000Z
2021-08-20T14:52:31.000Z
lib/pytz/zoneinfo/Africa/Ndjamena.py
tjsavage/polymer-dashboard
19bc467f1206613f8eec646b6f2bc43cc319ef75
[ "CNRI-Python", "Linux-OpenIB" ]
20
2015-03-18T08:41:37.000Z
2020-12-18T02:58:30.000Z
'''tzinfo timezone information for Africa/Ndjamena.''' from pytz.tzinfo import DstTzInfo from pytz.tzinfo import memorized_datetime as d from pytz.tzinfo import memorized_ttinfo as i class Ndjamena(DstTzInfo): '''Africa/Ndjamena timezone definition. See datetime.tzinfo for details''' zone = 'Africa/Ndjamena' ...
21.296296
78
0.676522
366
0.636522
0
0
0
0
0
0
166
0.288696
52a1c2d78cfb1a125c997f8dc53947a5b9217444
5,988
py
Python
code_analyzer/core.py
draihal/code_analyzer
05f56a3f44bbf9e1ccd9bd25b2fbafb631486ad7
[ "MIT" ]
null
null
null
code_analyzer/core.py
draihal/code_analyzer
05f56a3f44bbf9e1ccd9bd25b2fbafb631486ad7
[ "MIT" ]
null
null
null
code_analyzer/core.py
draihal/code_analyzer
05f56a3f44bbf9e1ccd9bd25b2fbafb631486ad7
[ "MIT" ]
null
null
null
import logging import os import shutil import tempfile from git import Repo from .ast_analysis import _get_all_names, _get_all_func_names, _generate_trees from .ntlk_analysis import _get_verbs_from_function_name, _get_nouns_from_function_name from .utils import _get_count_most_common, _get_converted_names, _convert_t...
36.512195
87
0.609552
5,485
0.915999
0
0
0
0
0
0
1,747
0.29175
52a1fe39882bbc1353ccc3425c9b5c1dfc01c4d7
2,482
py
Python
sort_file.py
ask-santosh/Document-Matching
2b5a1be3e8e460029121e43b16fc676ed3874094
[ "Apache-2.0" ]
null
null
null
sort_file.py
ask-santosh/Document-Matching
2b5a1be3e8e460029121e43b16fc676ed3874094
[ "Apache-2.0" ]
null
null
null
sort_file.py
ask-santosh/Document-Matching
2b5a1be3e8e460029121e43b16fc676ed3874094
[ "Apache-2.0" ]
null
null
null
import pandas as pd from fuzzywuzzy import process import Levenshtein as lev import numpy as np import openpyxl # -----------------------code for first csv file------------------------------------------- buyer_df = pd.read_csv("./results/CD_21_05/final2.csv", usecols=['PRODUCTS','UNITS', 'BATCHES', 'EXPIRY']) # aggreg...
35.457143
106
0.589444
0
0
0
0
0
0
0
0
1,206
0.485898
52a1feba8407dbc2ea31f32b3fc768de16e1bd5c
2,719
py
Python
utils.py
mitchelljy/battleships_ai
079555c487ab120d31aff97247e612cdebf1b275
[ "MIT" ]
8
2020-01-23T14:39:56.000Z
2021-12-11T05:06:09.000Z
utils.py
mitchelljy/battleships_ai
079555c487ab120d31aff97247e612cdebf1b275
[ "MIT" ]
null
null
null
utils.py
mitchelljy/battleships_ai
079555c487ab120d31aff97247e612cdebf1b275
[ "MIT" ]
5
2020-05-16T23:28:31.000Z
2022-02-05T10:00:37.000Z
import numpy as np # Place a random ship on the given board of the given length, making sure it does not intersect # with anything in no_intersect def place_random_ship(board, length, no_intersect): placed = False while not placed: vertical = bool(np.random.randint(0, 2)) # Gives us a random boolean ...
39.405797
119
0.603163
0
0
0
0
0
0
0
0
942
0.346451
52a274d162d9e0ff675d928c3cfccd89b9f1212e
8,449
py
Python
assemblyline_ui/security/ldap_auth.py
CybercentreCanada/assemblyline-ui
4b44b26852ef587d1c627fa63c778a135209e25e
[ "MIT" ]
11
2020-06-29T14:31:38.000Z
2022-01-14T17:15:06.000Z
assemblyline_ui/security/ldap_auth.py
CybercentreCanada/assemblyline-ui
4b44b26852ef587d1c627fa63c778a135209e25e
[ "MIT" ]
20
2020-06-22T12:35:30.000Z
2022-03-10T12:41:46.000Z
assemblyline_ui/security/ldap_auth.py
CybercentreCanada/assemblyline-ui
4b44b26852ef587d1c627fa63c778a135209e25e
[ "MIT" ]
13
2020-08-15T16:10:58.000Z
2022-01-14T17:15:09.000Z
import base64 import hashlib import ldap import logging import time from assemblyline.common.str_utils import safe_str from assemblyline_ui.config import config, CLASSIFICATION from assemblyline_ui.helper.user import get_dynamic_classification from assemblyline_ui.http_exceptions import AuthenticationException log = ...
39.297674
113
0.605871
5,445
0.644455
0
0
0
0
0
0
1,595
0.18878
52a6263a62818e4be2b94134abee8658545974c5
537
py
Python
tangos/scripts/writer.py
TobiBu/tangos
decab8c892c5937fd68474a375089abef198dba2
[ "BSD-3-Clause" ]
15
2017-12-04T18:05:32.000Z
2021-12-20T22:11:20.000Z
tangos/scripts/writer.py
TobiBu/tangos
decab8c892c5937fd68474a375089abef198dba2
[ "BSD-3-Clause" ]
99
2017-11-09T16:47:20.000Z
2022-03-07T10:15:12.000Z
tangos/scripts/writer.py
TobiBu/tangos
decab8c892c5937fd68474a375089abef198dba2
[ "BSD-3-Clause" ]
14
2017-11-06T18:46:17.000Z
2021-12-13T10:49:53.000Z
#!/usr/bin/env python2.7 from __future__ import absolute_import import sys def run_dbwriter(argv): from tangos import parallel_tasks, core from tangos.tools.property_writer import PropertyWriter writer = PropertyWriter() writer.parse_command_line(argv) parallel_tasks.launch(writer.run_calculation_...
25.571429
79
0.729981
0
0
0
0
0
0
0
0
170
0.316574
52a71c2541d6c70311412a6faad0de1c41c7af1d
3,107
py
Python
flask_app/models/pet.py
MapleLeo/PawFosterFamily
0f0c14f12858a27ded4ec2565e8a82290518b798
[ "MIT" ]
null
null
null
flask_app/models/pet.py
MapleLeo/PawFosterFamily
0f0c14f12858a27ded4ec2565e8a82290518b798
[ "MIT" ]
null
null
null
flask_app/models/pet.py
MapleLeo/PawFosterFamily
0f0c14f12858a27ded4ec2565e8a82290518b798
[ "MIT" ]
null
null
null
from flask_app.config.mysqlconnection import connectToMySQL from flask import flash from base64 import b64encode class Pet: db = 'pawfosterfamily' def __init__(self,data): self.id = data['id'] self.img = data['img'] self.name = data['name'] self.age = data['age'] self.f...
39.833333
224
0.633087
2,992
0.962987
0
0
2,462
0.792404
0
0
1,108
0.356614
52a7bb8061d2a7831f792c5ce19bca7393244db9
11,046
py
Python
google/ads/google_ads/v6/proto/resources/shared_set_pb2.py
jphanwebstaurant/google-ads-python
600812b2afcc4d57f00b47dfe436620ce50bfe9b
[ "Apache-2.0" ]
1
2021-04-09T04:28:47.000Z
2021-04-09T04:28:47.000Z
google/ads/google_ads/v6/proto/resources/shared_set_pb2.py
jphanwebstaurant/google-ads-python
600812b2afcc4d57f00b47dfe436620ce50bfe9b
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v6/proto/resources/shared_set_pb2.py
jphanwebstaurant/google-ads-python
600812b2afcc4d57f00b47dfe436620ce50bfe9b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads_v6/proto/resources/shared_set.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.p...
58.444444
1,499
0.779558
0
0
0
0
0
0
0
0
4,655
0.42142
52aac1e125cfaa8a910431ade1ba06863dbcee6c
2,722
py
Python
garecovery/mnemonic.py
LeoComandini/garecovery
66f7fe4c15b3866e751162fd990bd5bc8c58ec7a
[ "MIT" ]
61
2017-08-30T13:16:42.000Z
2022-03-24T16:28:18.000Z
garecovery/mnemonic.py
baby636/garecovery
9ced74920b804adc3a7be443f09a950a884c8c0c
[ "MIT" ]
34
2017-08-11T16:58:16.000Z
2022-02-18T09:00:23.000Z
garecovery/mnemonic.py
baby636/garecovery
9ced74920b804adc3a7be443f09a950a884c8c0c
[ "MIT" ]
46
2017-08-09T18:11:55.000Z
2022-03-04T05:30:54.000Z
import wallycore as wally from . import exceptions from gaservices.utils import h2b wordlist_ = wally.bip39_get_wordlist('en') wordlist = [wally.bip39_get_word(wordlist_, i) for i in range(2048)] def seed_from_mnemonic(mnemonic_or_hex_seed): """Return seed, mnemonic given an input string mnemonic_or_hex_se...
37.805556
86
0.709405
0
0
0
0
0
0
0
0
640
0.235121
52aafe97f5c27fcaf130ddb706c81f803caa5389
4,838
py
Python
notebooks/Computational Seismology/Summation-by-Parts/1d/rate.py
krischer/seismo_live_build
e4e8e59d9bf1b020e13ac91c0707eb907b05b34f
[ "CC-BY-3.0" ]
3
2020-07-11T10:01:39.000Z
2020-12-16T14:26:03.000Z
notebooks/Computational Seismology/Summation-by-Parts/1d/rate.py
krischer/seismo_live_build
e4e8e59d9bf1b020e13ac91c0707eb907b05b34f
[ "CC-BY-3.0" ]
null
null
null
notebooks/Computational Seismology/Summation-by-Parts/1d/rate.py
krischer/seismo_live_build
e4e8e59d9bf1b020e13ac91c0707eb907b05b34f
[ "CC-BY-3.0" ]
3
2020-11-11T05:05:41.000Z
2022-03-12T09:36:24.000Z
def elastic_rate( hv, hs, v, s, rho, mu, nx, dx, order, t, y, r0, r1, tau0_1, tau0_2, tauN_1, tauN_2, type_0, forcing, ): # we compute rates that will be used for Runge-Kutta time-stepping # import first_derivative_sbp_operators ...
20.327731
72
0.447912
0
0
0
0
0
0
0
0
699
0.144481
52ab08bb235449b1d6733e6d61123545bf0f1f33
16,752
py
Python
probability_kernels.py
jessebmurray/polygenic
19c1ca5d7cf5e1b22f4301f7864a7b12ea46ac84
[ "MIT" ]
2
2020-03-12T16:45:24.000Z
2020-03-12T23:09:05.000Z
probability_kernels.py
jessebmurray/polygenic
19c1ca5d7cf5e1b22f4301f7864a7b12ea46ac84
[ "MIT" ]
null
null
null
probability_kernels.py
jessebmurray/polygenic
19c1ca5d7cf5e1b22f4301f7864a7b12ea46ac84
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import scipy.stats as st # Basic model functions def pdf(x_i, sigma_i=1, mu=0): """Returns the marginal (population) pdf of X_i ~ Normal(mu, sigma_i^2).""" return st.norm.pdf(x_i, scale=sigma_i, loc=mu) def stable_rs(r): """Calculates r_s from r unde...
38.422018
94
0.660757
0
0
0
0
0
0
0
0
9,089
0.542562
52ab535bd1515f812b69c19c90b0debaf79326f8
6,661
py
Python
main/part1/utils.py
YerbaPage/KnowledgeGraph
6e839ee2fa677360b47eefe4947c4f9d0591685c
[ "MIT" ]
2
2021-04-22T01:59:57.000Z
2021-07-26T08:55:36.000Z
main/part1/utils.py
YerbaPage/KnowledgeGraph
6e839ee2fa677360b47eefe4947c4f9d0591685c
[ "MIT" ]
null
null
null
main/part1/utils.py
YerbaPage/KnowledgeGraph
6e839ee2fa677360b47eefe4947c4f9d0591685c
[ "MIT" ]
null
null
null
# coding: UTF-8 import torch from tqdm import tqdm import time from datetime import timedelta import torch.nn as nn from torch.autograd import Variable import numpy as np import torch.nn.functional as F PAD, CLS = '[PAD]', '[CLS]' # padding符号, bert中综合信息符号 class FocalLoss(nn.Module): """smo This is a implemen...
36.201087
118
0.583696
4,888
0.726408
0
0
0
0
0
0
1,223
0.181751
52acccd56e887711b8141885aa5194b4be9e5cd8
2,596
py
Python
tools/improve_8105.py
dophist/pinyin-data
8010e208f7cbc44290e960e1ed75aeb5ba2b1daf
[ "MIT" ]
823
2016-03-02T04:24:43.000Z
2022-03-26T13:57:23.000Z
tools/improve_8105.py
dophist/pinyin-data
8010e208f7cbc44290e960e1ed75aeb5ba2b1daf
[ "MIT" ]
32
2016-07-19T07:44:20.000Z
2022-03-07T05:43:10.000Z
tools/improve_8105.py
dophist/pinyin-data
8010e208f7cbc44290e960e1ed75aeb5ba2b1daf
[ "MIT" ]
185
2016-03-12T12:09:09.000Z
2022-03-28T00:57:10.000Z
# -*- coding: utf-8 -*- """补充 8105 中汉字的拼音数据""" from collections import namedtuple import re import sys from pyquery import PyQuery import requests re_pinyin = re.compile(r'拼音:(?P<pinyin>\S+) ') re_code = re.compile(r'统一码\w?:(?P<code>\S+) ') re_alternate = re.compile(r'异体字:\s+?(?P<alternate>\S+)') HanziInfo = namedtup...
29.168539
69
0.552003
0
0
980
0.371494
0
0
0
0
439
0.166414