hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
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
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
251
max_forks_repo_name
stringlengths
4
130
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
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
106251ef07afcc86c70965ff744410c8564d5727
1,128
py
Python
File/Common/directory.py
nikminer/HomeCloud
7571e8002ef0919b382c3802d680421bd094d866
[ "MIT" ]
null
null
null
File/Common/directory.py
nikminer/HomeCloud
7571e8002ef0919b382c3802d680421bd094d866
[ "MIT" ]
null
null
null
File/Common/directory.py
nikminer/HomeCloud
7571e8002ef0919b382c3802d680421bd094d866
[ "MIT" ]
null
null
null
import os from django.http import HttpResponse from django.contrib.auth.decorators import login_required
25.066667
78
0.583333
10632756b8a9faccc6b0059f4333f70590921702
1,887
py
Python
plasmapy/examples/plot_distribution.py
techieashish/PlasmaPy
b1e4ea269e59011dcafd5bf3f658b43e683af645
[ "MIT", "BSD-2-Clause-Patent", "BSD-2-Clause", "BSD-3-Clause" ]
1
2020-02-05T18:40:50.000Z
2020-02-05T18:40:50.000Z
plasmapy/examples/plot_distribution.py
techieashish/PlasmaPy
b1e4ea269e59011dcafd5bf3f658b43e683af645
[ "MIT", "BSD-2-Clause-Patent", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
plasmapy/examples/plot_distribution.py
techieashish/PlasmaPy
b1e4ea269e59011dcafd5bf3f658b43e683af645
[ "MIT", "BSD-2-Clause-Patent", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
""" 1D Maxwellian distribution function =================================== We import the usual modules, and the hero of this notebook, the Maxwellian 1D distribution: """ import numpy as np from astropy import units as u import matplotlib.pyplot as plt from astropy.constants import (m_e, k_B) from plasmapy.formula...
28.164179
72
0.54796
1064936a6b00c876007e8bb9831e079b131672ea
50
py
Python
models/__init__.py
yoshikawat64m/kalman-variational-auto-encoder
7d7d0ed170746267f26cc869a8645b2c93da350d
[ "MIT" ]
null
null
null
models/__init__.py
yoshikawat64m/kalman-variational-auto-encoder
7d7d0ed170746267f26cc869a8645b2c93da350d
[ "MIT" ]
null
null
null
models/__init__.py
yoshikawat64m/kalman-variational-auto-encoder
7d7d0ed170746267f26cc869a8645b2c93da350d
[ "MIT" ]
null
null
null
from .kvae import KVAE __all__ = ( 'KVAE', )
8.333333
22
0.58
1065d659f9d77981c8c0c3a93121ee6395bb47c1
1,603
py
Python
get_color_wordcloud.py
Joe606/scrape_sportshoes
dde27cfd97bae3212a2fc35c6fef822667799761
[ "MIT" ]
null
null
null
get_color_wordcloud.py
Joe606/scrape_sportshoes
dde27cfd97bae3212a2fc35c6fef822667799761
[ "MIT" ]
null
null
null
get_color_wordcloud.py
Joe606/scrape_sportshoes
dde27cfd97bae3212a2fc35c6fef822667799761
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pymysql import time import os import matplotlib.pyplot as plt print(os.getcwd()) db = pymysql.connect( host='localhost', user='root', passwd='xxxx', database='' ) cur = db.cursor() cur.execute('select productSize from all_comments;') all_size = cu...
17.423913
58
0.617592
1065da3e4283e981e05c9ad525d6d52a88a2a890
3,769
py
Python
Lesson05_Strings/DNAExtravaganzaSOLUTION.py
WomensCodingCircle/CodingCirclePython
703aff89ffa0a3933baa02881f325d62087eb0af
[ "MIT" ]
4
2017-02-09T20:05:04.000Z
2018-12-06T13:13:35.000Z
Lesson05_Strings/DNAExtravaganzaSOLUTION.py
WomensCodingCircle/CodingCirclePython
703aff89ffa0a3933baa02881f325d62087eb0af
[ "MIT" ]
null
null
null
Lesson05_Strings/DNAExtravaganzaSOLUTION.py
WomensCodingCircle/CodingCirclePython
703aff89ffa0a3933baa02881f325d62087eb0af
[ "MIT" ]
12
2015-12-07T17:22:01.000Z
2021-12-29T02:50:15.000Z
# A little bit of molecular biology # Codons are non-overlapping triplets of nucleotides. # ATG CCC CTG GTA ... - this corresponds to four codons; spaces added for emphasis # The start codon is 'ATG' # Stop codons can be 'TGA' , 'TAA', or 'TAG', but they must be 'in frame' with the start codon. The first stop codon ...
39.673684
654
0.718493
1065f40c6cc9ffeddf508a5f723541790f0616f0
528
py
Python
backend/radio/views.py
dtcooper/jewpizza
374b79c887c46560066e2e01e981a68d1acbd20f
[ "MIT" ]
5
2021-12-15T06:33:03.000Z
2022-03-04T00:46:59.000Z
backend/radio/views.py
dtcooper/jewpizza
374b79c887c46560066e2e01e981a68d1acbd20f
[ "MIT" ]
2
2021-10-11T17:58:17.000Z
2022-03-09T07:13:19.000Z
backend/radio/views.py
dtcooper/jewpizza
374b79c887c46560066e2e01e981a68d1acbd20f
[ "MIT" ]
null
null
null
from django.conf import settings from django.core.exceptions import PermissionDenied from django.views.generic import TemplateView
33
63
0.706439
106647c6640c0372a460301a5b4d20903e8a43b6
2,601
py
Python
torcharc/module/merge.py
kengz/torcharc
e17043391c718a161956b4da98f9a7810efe62a2
[ "MIT" ]
1
2020-06-12T09:55:25.000Z
2020-06-12T09:55:25.000Z
torcharc/module/merge.py
kengz/torcharc
e17043391c718a161956b4da98f9a7810efe62a2
[ "MIT" ]
5
2021-06-26T18:25:39.000Z
2021-12-31T22:43:22.000Z
torcharc/module/merge.py
kengz/torcharc
e17043391c718a161956b4da98f9a7810efe62a2
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from torch import nn from typing import Dict, List import torch
49.075472
205
0.721646
1067f500bc63c5208908d4836e04b87c0d12fba5
6,919
py
Python
tests/milvus_benchmark/local_runner.py
NeatNerdPrime/milvus
98de0f87e99cd1ff86d8e63b91c76589b195abe1
[ "Apache-2.0" ]
1
2020-05-31T00:34:00.000Z
2020-05-31T00:34:00.000Z
tests/milvus_benchmark/local_runner.py
NeatNerdPrime/milvus
98de0f87e99cd1ff86d8e63b91c76589b195abe1
[ "Apache-2.0" ]
1
2021-03-25T23:23:50.000Z
2021-03-25T23:23:50.000Z
tests/milvus_benchmark/local_runner.py
flydragon2018/milvus
fa1effdb91d9fd9710ff5a9ae519bd538e79b0b0
[ "Apache-2.0" ]
1
2021-05-23T15:04:01.000Z
2021-05-23T15:04:01.000Z
import os import logging import pdb import time import random from multiprocessing import Process import numpy as np from client import MilvusClient import utils import parser from runner import Runner logger = logging.getLogger("milvus_benchmark.local_runner")
52.022556
148
0.483162
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
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) f = fib() l_03 = list(islice(f, 0, 10)) print(l_03) #yield print('--------------------') y = 0 func_g = g() print(func_g.__next__()) #next(func_g) print(func_g.__next__()) print(func_g.__next__()) print(func_g.send(10)) p...
19.436364
62
0.57811
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
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 if __name__ == '__main__': unittest.main()
31.465116
74
0.474501
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
19.947368
49
0.601583
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
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
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
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
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
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
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
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
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
32.759494
79
0.633308
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()
28.941176
79
0.604675
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
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
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 lookup_verbs(roots, sp...
44.494382
138
0.600253
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 # Preformfs a custom matrix inversion for all matrices in a batch if __name__ == '__main__': batchSi...
37.898496
120
0.564924
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="/", author="L_zejie", ...
25.478261
92
0.648464
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
33.070196
82
0.598163
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
24.3
68
0.769547
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
38.25
123
0.646242
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
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
26.5
73
0.656184
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
32.753247
86
0.752181
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 if __name__ == '__main__': hello(hello())
11.4
26
0.605263
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='')
23.807692
94
0.638126
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
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
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
23
63
0.65528
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
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
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
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 if __name__ == '__main__': N_SIZE = 1000 ERROR_PROBABILITY = 0.1 x = np.random.choice([0,1],size=N_SIZE) y = np.random.uniform(size=N_SIZE) for i in range(len(x)): if(y[i] < ERROR_PROBABILITY): ...
31.648649
124
0.571307
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
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
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 def subset_indices(d_source, d_target, subsetsize, subsetseed): if subsetsize > 0: if subsetseed != 0: subset_rng = np.random.RandomState(subsetseed) else: subset_rng = ...
34.682927
103
0.599391
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
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
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
18.761905
47
0.560914
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
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
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
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
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
46.166667
120
0.768953
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
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
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
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
32.642857
76
0.569803
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 """
33.913043
107
0.723077
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
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
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
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 admin.site.register(Auction) admin.site.register(Lot) admin.site.register(Bid, BidAdmin)
16.421053
37
0.644231
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
30.733333
83
0.724512
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() # do not change the placement of this method # as it also serves as a fallback for wrong url routes
37.95122
95
0.701157
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
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
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
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' def validate_cmd_row_values(schema={}, row={}): for col_name, col_val in row.items(): lit_val = Literal(col_val) needed_col_type = eval(schema[col_name]) if not isinst...
39.108889
410
0.602875
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
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 #...
30.552174
84
0.539491
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") if __name__=='__main__': indicators = Indicators('/Users/zhubaobao/Documents/Quant/ZXJT/total3.csv', [5,10,20]) #indicators.wr...
53.287179
420
0.630161
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
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
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
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
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
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
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
24.529412
60
0.714628
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
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
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
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
41.75
77
0.706587
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
30.820513
93
0.631448
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
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
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
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') if __name__ == '__main__': CheckArgs() main()
37.17316
125
0.501572
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 if __name__ == '__main__': main()
30.125
96
0.591286
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 if __name__ == '__main__': aa = np.random.random((10, 2, 3, 4)) # b, *, *, * for axis in [1, 2, 3]: print('Testing channel in axis {}'.format(axis)) mm = flip_axis(aa.copy(), axis-1) ff = flip_axis_fra(aa.copy(), axis) assert np.array_equal(mm, ff) pri...
28.83871
66
0.585011
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
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
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
24.044118
75
0.607339
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 Ndjamena = Ndjamena()
21.296296
78
0.676522
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
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
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 # Convert a letter and a number into x and y coords
39.405797
119
0.603163
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
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
25.571429
79
0.729981
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
39.833333
224
0.633087