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
ad5db874c90f5842c8a6e82a7b558b48f5b79bd1
4,187
py
Python
web/models.py
rkhozinov/dicease-area
9ca2159705c778a73f45ca83e83f881d47c355c4
[ "MIT" ]
null
null
null
web/models.py
rkhozinov/dicease-area
9ca2159705c778a73f45ca83e83f881d47c355c4
[ "MIT" ]
null
null
null
web/models.py
rkhozinov/dicease-area
9ca2159705c778a73f45ca83e83f881d47c355c4
[ "MIT" ]
null
null
null
# models.py from sys import path from os.path import dirname as dir path.append(dir(path[0])) from app import db
34.04065
98
0.642942
ad5ee300c9e8ae6ec4833340d2ed6551f1709676
12,755
py
Python
PJ-X-ACT/train.py
Seth-Park/MultimodalExplanations
b58c09ac38a5e5d08541a94599410e59ec5cdec6
[ "BSD-2-Clause" ]
39
2018-07-18T16:31:46.000Z
2022-01-25T16:38:51.000Z
PJ-X-ACT/train.py
Seth-Park/MultimodalExplanations
b58c09ac38a5e5d08541a94599410e59ec5cdec6
[ "BSD-2-Clause" ]
13
2018-10-15T19:10:34.000Z
2021-11-03T02:21:53.000Z
PJ-X-ACT/train.py
Seth-Park/MultimodalExplanations
b58c09ac38a5e5d08541a94599410e59ec5cdec6
[ "BSD-2-Clause" ]
6
2018-11-09T15:41:31.000Z
2021-05-26T11:42:30.000Z
import matplotlib matplotlib.use('Agg') import os import sys import numpy as np import json import matplotlib.pyplot as plt import caffe from caffe import layers as L from caffe import params as P from activity_data_provider_layer import ActivityDataProvider from build_val_model import act_proto, exp_proto import con...
42.235099
130
0.64414
ad6107c5bfaee0726903a00a606341356cab3655
423
py
Python
disBatch.py
flatironinstitute/disBatch
67cf2090617e6fc2f2fb91fdf54c28bcfacaf59c
[ "Apache-2.0" ]
21
2017-11-08T15:20:05.000Z
2022-03-25T01:06:07.000Z
disBatch.py
flatironinstitute/disBatch
67cf2090617e6fc2f2fb91fdf54c28bcfacaf59c
[ "Apache-2.0" ]
11
2017-11-27T15:25:06.000Z
2021-12-16T20:59:05.000Z
disBatch.py
flatironinstitute/disBatch
67cf2090617e6fc2f2fb91fdf54c28bcfacaf59c
[ "Apache-2.0" ]
6
2019-01-31T22:23:08.000Z
2021-11-06T05:03:15.000Z
#!/usr/bin/env python3 import os, sys dr = os.getenv('DISBATCH_ROOT') if dr and dr not in sys.path: sys.path.append(dr) try: import disbatch except: print(f'disBatch environment is incomplete. Check:\n\tDISBATCH_ROOT {dr!r}.', file=sys.stderr) sys.exit(1) dbExec = os.path.join(os.path.dirnam...
24.882353
98
0.690307
ad611aec8e39567a4f46f53f19066964bc6e7636
425
py
Python
cloudflare_exporter/handlers.py
cpaillet/cloudflare-exporter
194a0ce0f316aadc2802fbf180d06f5aab7849be
[ "Apache-2.0" ]
null
null
null
cloudflare_exporter/handlers.py
cpaillet/cloudflare-exporter
194a0ce0f316aadc2802fbf180d06f5aab7849be
[ "Apache-2.0" ]
7
2019-11-28T11:43:56.000Z
2020-06-09T08:21:19.000Z
cloudflare_exporter/handlers.py
cpaillet/cloudflare-exporter
194a0ce0f316aadc2802fbf180d06f5aab7849be
[ "Apache-2.0" ]
3
2019-11-28T08:36:23.000Z
2022-02-21T11:34:41.000Z
from aiohttp import web from prometheus_client import generate_latest from prometheus_client.core import REGISTRY
22.368421
63
0.778824
ad61efd89b487352162b06da16ad5ffe5da41461
20,737
py
Python
Step4/04_reversing_bis.py
Aterwyn/SSTIC2019
d7fcddd5b223663910ec35aa1d419f0bc636e701
[ "MIT" ]
null
null
null
Step4/04_reversing_bis.py
Aterwyn/SSTIC2019
d7fcddd5b223663910ec35aa1d419f0bc636e701
[ "MIT" ]
null
null
null
Step4/04_reversing_bis.py
Aterwyn/SSTIC2019
d7fcddd5b223663910ec35aa1d419f0bc636e701
[ "MIT" ]
null
null
null
from SM4 import SM4 input_data = "a1a2a3a4a5a6a7a8a9aaabacadaeafa0b1b2b3b4b5b6b7b8b9babbbcbdbebfb0" input_data = "acadaa8b5b55306fb3c6dfc3b2d1c80770084644225febd71a9189aa26ec740e" #input_data = "0000000000000000000000000000000000000000000000000000000000000000" global input_list input_list = bytearray.fromhex(inp...
57.602778
185
0.401601
ad62b39dc3d459b038919fec68d5b17bad7d8e64
6,454
py
Python
util/list_store.py
natduca/ndbg
f8da43be62dac18072e9b0e6e5ecd0d1818aea4d
[ "Apache-2.0" ]
5
2016-05-12T08:48:41.000Z
2018-07-17T00:48:32.000Z
util/list_store.py
natduca/ndbg
f8da43be62dac18072e9b0e6e5ecd0d1818aea4d
[ "Apache-2.0" ]
1
2022-01-16T12:18:50.000Z
2022-01-16T12:18:50.000Z
util/list_store.py
natduca/ndbg
f8da43be62dac18072e9b0e6e5ecd0d1818aea4d
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
28.431718
89
0.597614
ad63cef726f7367efe5345d0f36197ebd8c709bc
1,582
py
Python
blogs/views/feed.py
daaawx/bearblog
5e01e4443c632ff53b918cf8a0d3b1c648b352fe
[ "MIT" ]
657
2020-05-26T16:16:07.000Z
2022-03-26T22:35:01.000Z
blogs/views/feed.py
daaawx/bearblog
5e01e4443c632ff53b918cf8a0d3b1c648b352fe
[ "MIT" ]
107
2020-05-26T17:45:04.000Z
2022-03-17T08:24:00.000Z
blogs/views/feed.py
daaawx/bearblog
5e01e4443c632ff53b918cf8a0d3b1c648b352fe
[ "MIT" ]
42
2020-05-26T23:57:58.000Z
2022-03-15T04:20:26.000Z
from django.http.response import Http404 from django.http import HttpResponse from blogs.helpers import unmark, clean_text from blogs.views.blog import resolve_address from feedgen.feed import FeedGenerator import mistune
35.954545
94
0.676359
ad651f61bd321ebea386f33585e8cf5eacb6acdb
894
py
Python
src/data_hub/lcd/migrations/0053_alter_collectionfootprint_the_geom.py
TNRIS/api.tnris.org
46620a4edf0682c158907f110158110801e9c398
[ "MIT" ]
6
2019-05-22T20:01:45.000Z
2020-08-18T12:05:12.000Z
src/data_hub/lcd/migrations/0053_alter_collectionfootprint_the_geom.py
TNRIS/api.tnris.org
46620a4edf0682c158907f110158110801e9c398
[ "MIT" ]
73
2019-05-22T19:57:30.000Z
2022-03-12T00:59:33.000Z
src/data_hub/lcd/migrations/0053_alter_collectionfootprint_the_geom.py
TNRIS/api.tnris.org
46620a4edf0682c158907f110158110801e9c398
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-08-10 20:12 import django.contrib.gis.db.models.fields import django.contrib.gis.geos.collections import django.contrib.gis.geos.polygon from django.db import migrations
40.636364
414
0.722595
ad67c8aef56c0e2dd3ee6398991df1cf46f8a5ba
4,456
py
Python
utility/timer.py
xlnwel/g2rl
e1261fdd2ce70724a99ddd174616cf013917b241
[ "Apache-2.0" ]
1
2022-03-27T08:25:57.000Z
2022-03-27T08:25:57.000Z
utility/timer.py
xlnwel/g2rl
e1261fdd2ce70724a99ddd174616cf013917b241
[ "Apache-2.0" ]
null
null
null
utility/timer.py
xlnwel/g2rl
e1261fdd2ce70724a99ddd174616cf013917b241
[ "Apache-2.0" ]
1
2021-11-09T08:33:35.000Z
2021-11-09T08:33:35.000Z
from time import strftime, gmtime, time from collections import defaultdict import tensorflow as tf from utility.aggregator import Aggregator from utility.display import pwc
33.503759
120
0.58842
ad67d66388f0984d00adcc7945f036f683b5cc41
1,497
py
Python
tests/functional/test_tagged_unions_unknown.py
karim7262/botocore
070204a0afb94c23dcfe040f4933c74ab1d8e089
[ "Apache-2.0" ]
1,063
2015-01-13T13:35:09.000Z
2022-03-31T09:29:32.000Z
tests/functional/test_tagged_unions_unknown.py
karim7262/botocore
070204a0afb94c23dcfe040f4933c74ab1d8e089
[ "Apache-2.0" ]
2,064
2015-01-03T15:53:33.000Z
2022-03-31T23:12:08.000Z
tests/functional/test_tagged_unions_unknown.py
karim7262/botocore
070204a0afb94c23dcfe040f4933c74ab1d8e089
[ "Apache-2.0" ]
1,065
2015-01-16T15:58:42.000Z
2022-03-31T22:18:56.000Z
# Copyright 2021 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
49.9
82
0.734135
ad6939b73d6eb13be57d04a632bb4bb399ec7cb8
2,177
py
Python
pytest_profiler/pytest_profiler.py
emilberwald/pytest_profiler
fc873d1b2247ec9355ab3521d67d815f0914e5ec
[ "MIT" ]
null
null
null
pytest_profiler/pytest_profiler.py
emilberwald/pytest_profiler
fc873d1b2247ec9355ab3521d67d815f0914e5ec
[ "MIT" ]
null
null
null
pytest_profiler/pytest_profiler.py
emilberwald/pytest_profiler
fc873d1b2247ec9355ab3521d67d815f0914e5ec
[ "MIT" ]
null
null
null
import io import multiprocessing import pathlib from urllib.parse import quote_plus import pytest import yappi semaphore = multiprocessing.Semaphore(1)
29.821918
86
0.625172
ad696db21a9d22c4ded15d5a9823102815ab634c
18,027
py
Python
codewars/difficulty_level_6kyu/football_yellow_and_red_cards/test_solution_football_yellow_and_red_cards.py
aleattene/python-codewars-challenges
86cfed8179193780763a0e36ef2f1ea4729a992f
[ "MIT" ]
1
2021-12-16T16:31:11.000Z
2021-12-16T16:31:11.000Z
codewars/difficulty_level_6kyu/football_yellow_and_red_cards/test_solution_football_yellow_and_red_cards.py
aleattene/python-codewars-challenges
86cfed8179193780763a0e36ef2f1ea4729a992f
[ "MIT" ]
2
2022-01-09T22:12:53.000Z
2022-01-13T10:34:52.000Z
codewars/difficulty_level_6kyu/football_yellow_and_red_cards/test_solution_football_yellow_and_red_cards.py
aleattene/python-codewars-challenges
86cfed8179193780763a0e36ef2f1ea4729a992f
[ "MIT" ]
1
2022-03-10T05:17:10.000Z
2022-03-10T05:17:10.000Z
""" To start the tests, type from CLI: python test_solution_sum_of_missing_numbers.py """ import unittest from solution_football_yellow_and_red_cards import men_still_standing if __name__ == '__main__': """ The following instruction executes the tests by discovering all classes present in this file tha...
90.58794
120
0.419315
ad6c85ce56ed9f4842b89a8439f0c9803a6f3462
3,801
py
Python
iCount/tests/test_externals.py
zhouyu/iCount
c203a5b2c8fbcc2934bb2100be04d3290497cf7d
[ "MIT" ]
null
null
null
iCount/tests/test_externals.py
zhouyu/iCount
c203a5b2c8fbcc2934bb2100be04d3290497cf7d
[ "MIT" ]
null
null
null
iCount/tests/test_externals.py
zhouyu/iCount
c203a5b2c8fbcc2934bb2100be04d3290497cf7d
[ "MIT" ]
1
2020-06-18T21:01:41.000Z
2020-06-18T21:01:41.000Z
# pylint: disable=missing-docstring, protected-access import warnings import unittest import iCount.externals.cutadapt as cutadapt import iCount.externals.star as star from iCount.tests.utils import make_fasta_file, make_fastq_file, get_temp_dir, \ get_temp_file_name, make_file_from_list if __name__ == '__ma...
36.902913
98
0.631413
ad6caaf895bc1263240d8f9376ba437ced2dd6f3
216
py
Python
source/auxiliary/other_utilities.py
JoZimmer/ParOptBeam
50d15d8d822a2718f2932807e06c4a7e02f866a3
[ "BSD-3-Clause" ]
1
2021-04-09T14:08:20.000Z
2021-04-09T14:08:20.000Z
source/auxiliary/other_utilities.py
JoZimmer/ParOptBeam
50d15d8d822a2718f2932807e06c4a7e02f866a3
[ "BSD-3-Clause" ]
2
2021-04-28T15:05:01.000Z
2021-11-10T15:12:56.000Z
source/auxiliary/other_utilities.py
JoZimmer/ParOptBeam
50d15d8d822a2718f2932807e06c4a7e02f866a3
[ "BSD-3-Clause" ]
2
2021-02-01T08:49:45.000Z
2021-08-10T02:07:36.000Z
from os.path import sep as os_sep
21.6
60
0.648148
ad6dc8f5ec7abbc123e658c8a53c68b664ad7c1a
271
py
Python
modules/04/examples/dollar.py
edsu/inst126
a14f2c6901759f87b1f199f79ed1b8a5c03c688d
[ "CC-BY-4.0" ]
2
2019-08-07T07:49:09.000Z
2019-08-24T02:07:39.000Z
modules/04/examples/dollar.py
edsu/inst126
a14f2c6901759f87b1f199f79ed1b8a5c03c688d
[ "CC-BY-4.0" ]
2
2020-07-18T02:43:50.000Z
2022-02-10T19:04:57.000Z
modules/04/examples/dollar.py
edsu/inst126
a14f2c6901759f87b1f199f79ed1b8a5c03c688d
[ "CC-BY-4.0" ]
null
null
null
# jaylin hours = float(input("Enter hours worked: ")) rate = float(input("Enter hourly rate: ")) if (rate >= 15): pay=(hours* rate) print("Pay: $", pay) else: print("I'm sorry " + str(rate) + " is lower than the minimum wage!")
20.846154
76
0.535055
ad7017adc96fad3d0362ec1d61ae2f9905d89711
297
py
Python
Week 1/id_545/LeetCode_26_545.py
theshaodi/algorithm004-05
cac0cd3bb1211d50936234c08f6ece38677e55cf
[ "Apache-2.0" ]
1
2019-10-12T06:48:45.000Z
2019-10-12T06:48:45.000Z
Week 1/id_545/LeetCode_26_545.py
theshaodi/algorithm004-05
cac0cd3bb1211d50936234c08f6ece38677e55cf
[ "Apache-2.0" ]
1
2019-12-01T10:02:03.000Z
2019-12-01T10:02:03.000Z
Week 1/id_545/LeetCode_26_545.py
theshaodi/algorithm004-05
cac0cd3bb1211d50936234c08f6ece38677e55cf
[ "Apache-2.0" ]
null
null
null
## # O(n) O(1)
27
55
0.430976
ad7112c3738411a5a1f2089e56459f416d494862
17,160
py
Python
tests/diag/test_ccsd.py
fevangelista/pyWicked
9bc0e13f6e45c86222ea95fdadf1cb66eb59862f
[ "MIT" ]
null
null
null
tests/diag/test_ccsd.py
fevangelista/pyWicked
9bc0e13f6e45c86222ea95fdadf1cb66eb59862f
[ "MIT" ]
null
null
null
tests/diag/test_ccsd.py
fevangelista/pyWicked
9bc0e13f6e45c86222ea95fdadf1cb66eb59862f
[ "MIT" ]
null
null
null
import wicked as w def test_energy1(): """CCSD Energy <F T1> (1)""" initialize() T1 = w.op("t", ["v+ o"]) Fov = w.op("f", ["o+ v"]) wt = w.WickTheorem() val = wt.contract(w.rational(1), Fov @ T1, 0, 0) val2 = w.expression("f^{v_0}_{o_0} t^{o_0}_{v_0}") print_comparison(val, val2) ...
31.030741
88
0.534324
ad714fa4a31029ee0185a2f2a26418add93804bc
3,301
py
Python
notes/publish.py
simonrus/about
4413401308f0a95e5c42c7eb65879e35dda9db29
[ "MIT" ]
null
null
null
notes/publish.py
simonrus/about
4413401308f0a95e5c42c7eb65879e35dda9db29
[ "MIT" ]
null
null
null
notes/publish.py
simonrus/about
4413401308f0a95e5c42c7eb65879e35dda9db29
[ "MIT" ]
null
null
null
#/bin/python3 ## Step1 scan recursively over all files import os import re import pdb import datetime path = "./notes" dest = "_posts" magic_prefix = "Active-" for root,d_names,f_names in os.walk(path): if ("notes" in root): category = os.path.split(os.path.split(root)[0])[1] f...
28.213675
96
0.49076
ad72b53c026f5b811aebd943c7bb216b2e4dff3e
726
py
Python
unittest/test_unittest_runner.py
asisudai/practical_pipeline
09b106dc70d0d9abf7bca117346e796ad542d534
[ "MIT" ]
3
2019-05-28T22:29:38.000Z
2020-04-26T19:03:01.000Z
unittest/test_unittest_runner.py
asisudai/practical_pipeline
09b106dc70d0d9abf7bca117346e796ad542d534
[ "MIT" ]
null
null
null
unittest/test_unittest_runner.py
asisudai/practical_pipeline
09b106dc70d0d9abf7bca117346e796ad542d534
[ "MIT" ]
1
2019-09-01T15:53:36.000Z
2019-09-01T15:53:36.000Z
#!/usr/bin/env python import unittest # import your test modules import test_unittest_01 import test_unittest_02 import test_unittest_03 import test_unittest_04 if __name__ == '__main__': # initialize the test suite loader = unittest.TestLoader() suite = unittest.TestSuite() # add tests to the test...
29.04
64
0.77135
ad756753130794b002c07aafb6f259c23435b543
1,535
py
Python
secret_msg(tk).py
weijun-github/some-python-codes
db3d4b4ceb8b7c8ce0bd4b61da6227cd9e994718
[ "MIT" ]
null
null
null
secret_msg(tk).py
weijun-github/some-python-codes
db3d4b4ceb8b7c8ce0bd4b61da6227cd9e994718
[ "MIT" ]
null
null
null
secret_msg(tk).py
weijun-github/some-python-codes
db3d4b4ceb8b7c8ce0bd4b61da6227cd9e994718
[ "MIT" ]
null
null
null
from tkinter import messagebox, simpledialog, Tk root = Tk() while True: task = get_task() if task == 'encrypt': message = get_message() encrypted = swap_letters(message) messagebox.showinfo('encrypted message:', encrypted) elif task == 'decrypt': message = get_message() ...
26.929825
70
0.661889
ad7954a824bd880b95d100c19467ce1850e0e399
497
py
Python
class1/backpropagation.py
janewen134/tensorflow_self_improment
7872b3571f822a513c532d166cf2058b21fe7a6b
[ "MIT" ]
null
null
null
class1/backpropagation.py
janewen134/tensorflow_self_improment
7872b3571f822a513c532d166cf2058b21fe7a6b
[ "MIT" ]
null
null
null
class1/backpropagation.py
janewen134/tensorflow_self_improment
7872b3571f822a513c532d166cf2058b21fe7a6b
[ "MIT" ]
null
null
null
import tensorflow as tf w = tf.Variable(tf.constant(5, dtype=tf.float32)) # set random initial value 5, and make it trainable lr = 0.2 # learning rate epoch = 40 for epoch in range(epoch): with tf.GradientTape() as tape: # "with expression as variable" loss = tf.square(w + 1) grads = tape.gra...
35.5
102
0.649899
ad7a1bbb5678c63627d8c2c4ee4f69245d892027
89
py
Python
rorow/feusers/apps.py
derhelge/rorow
deac733dd8632773970b27325c9417a51c3491f3
[ "MIT" ]
null
null
null
rorow/feusers/apps.py
derhelge/rorow
deac733dd8632773970b27325c9417a51c3491f3
[ "MIT" ]
null
null
null
rorow/feusers/apps.py
derhelge/rorow
deac733dd8632773970b27325c9417a51c3491f3
[ "MIT" ]
null
null
null
from django.apps import AppConfig
14.833333
33
0.752809
ad7b47e123d628383cdc106058dd002388aefb9d
238
py
Python
buck/__init__.py
bukzor/buck.pprint
3b3b2620838512cf8e39d3070964cda1f1b57025
[ "MIT" ]
4
2015-11-24T18:34:39.000Z
2019-09-04T13:53:12.000Z
buck/__init__.py
bukzor/buck.pprint
3b3b2620838512cf8e39d3070964cda1f1b57025
[ "MIT" ]
2
2017-02-01T01:29:13.000Z
2020-11-10T03:55:45.000Z
buck/__init__.py
bukzor/buck.pprint
3b3b2620838512cf8e39d3070964cda1f1b57025
[ "MIT" ]
1
2017-03-05T03:36:57.000Z
2017-03-05T03:36:57.000Z
# This is a namespace package. See also: # http://pythonhosted.org/distribute/setuptools.html#namespace-packages # http://osdir.com/ml/python.distutils.devel/2006-08/msg00029.html __import__('pkg_resources').declare_namespace(__name__)
47.6
73
0.798319
ad7bd9466582c413f0454448c47639038f5336ef
469
py
Python
Python/Difference of times/main.py
drtierney/hyperskill-problems
b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0
[ "MIT" ]
5
2020-08-29T15:15:31.000Z
2022-03-01T18:22:34.000Z
Python/Difference of times/main.py
drtierney/hyperskill-problems
b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0
[ "MIT" ]
null
null
null
Python/Difference of times/main.py
drtierney/hyperskill-problems
b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0
[ "MIT" ]
1
2020-12-02T11:13:14.000Z
2020-12-02T11:13:14.000Z
# put your python code here hours_1 = int(input()) minutes_1 = int(input()) seconds_1 = int(input()) hours_2 = int(input()) minutes_2 = int(input()) seconds_2 = int(input()) event_1 = event_time(hours_1, minutes_1, seconds_1) event_2 = event_time(hours_2, minutes_2, seconds_2) print(time_difference(event_1, event...
21.318182
52
0.705757
ad7dc5722d5464126b3e82b9529a1e48de237341
2,831
bzl
Python
tools/build_defs/detect_root.bzl
slsyy/rules_foreign_cc
34ab7f86a3ab1b2381cb4820d08a1c892f55bf54
[ "Apache-2.0" ]
2
2021-03-18T04:14:56.000Z
2021-03-18T05:11:09.000Z
tools/build_defs/detect_root.bzl
slsyy/rules_foreign_cc
34ab7f86a3ab1b2381cb4820d08a1c892f55bf54
[ "Apache-2.0" ]
null
null
null
tools/build_defs/detect_root.bzl
slsyy/rules_foreign_cc
34ab7f86a3ab1b2381cb4820d08a1c892f55bf54
[ "Apache-2.0" ]
1
2021-03-01T17:51:22.000Z
2021-03-01T17:51:22.000Z
# buildifier: disable=module-docstring # buildifier: disable=function-docstring-header def detect_root(source): """Detects the path to the topmost directory of the 'source' outputs. To be used with external build systems to point to the source code/tools directories. Args: source (Target): A filegr...
32.918605
89
0.673967
ad7e4c246dd520ff153b0ca296f046cc27e64648
5,660
py
Python
getcurrentexplorerfile.py
CailleauThierry/MyPython
2301b012fc36d04788ea4640e81a1829b5f6598d
[ "MIT" ]
null
null
null
getcurrentexplorerfile.py
CailleauThierry/MyPython
2301b012fc36d04788ea4640e81a1829b5f6598d
[ "MIT" ]
null
null
null
getcurrentexplorerfile.py
CailleauThierry/MyPython
2301b012fc36d04788ea4640e81a1829b5f6598d
[ "MIT" ]
null
null
null
#!python3 # from https://stackoverflow.com/questions/21241708/python-get-a-list-of-selected-files-in-explorer-windows-7/52959617#52959617 import win32gui, time from win32con import PAGE_READWRITE, MEM_COMMIT, MEM_RESERVE, MEM_RELEASE, PROCESS_ALL_ACCESS, WM_GETTEXTLENGTH, WM_GETTEXT from commctrl import LVS_OWNERDATA, ...
46.393443
127
0.573852
ad808e43a2af907aea81485551df9f8197837f25
1,472
py
Python
cookiecutter-project/pages/views.py
goldhand/cookiecutter-project
b7c9189ca0ccda43d34ec1573b14138e979d6e78
[ "BSD-3-Clause" ]
1
2017-03-20T05:54:30.000Z
2017-03-20T05:54:30.000Z
cookiecutter-project/pages/views.py
goldhand/cookiecutter-project
b7c9189ca0ccda43d34ec1573b14138e979d6e78
[ "BSD-3-Clause" ]
null
null
null
cookiecutter-project/pages/views.py
goldhand/cookiecutter-project
b7c9189ca0ccda43d34ec1573b14138e979d6e78
[ "BSD-3-Clause" ]
null
null
null
from django.shortcuts import render, render_to_response from django.core.mail import mail_admins from django.contrib import messages from django.template import RequestContext from django.http import HttpResponseRedirect, Http404, HttpResponse from django.views.generic.base import TemplateView from .forms import Conta...
34.232558
79
0.644701
ad80c626fb9482243ada858e1c516fe0842d6cb2
541
py
Python
ratelimitbackend/middleware.py
Edraak/django-ratelimit-backend
b325b62fcaff2d02eb677efe6c22a337df2c4c24
[ "BSD-3-Clause" ]
95
2015-01-05T02:05:43.000Z
2022-02-08T11:22:18.000Z
ratelimitbackend/middleware.py
Edraak/django-ratelimit-backend
b325b62fcaff2d02eb677efe6c22a337df2c4c24
[ "BSD-3-Clause" ]
28
2015-03-27T16:40:42.000Z
2021-02-22T09:59:09.000Z
ratelimitbackend/middleware.py
edx/django-ratelimit-backend
cf80e324820c48daad89c644e6bd809044ad26f4
[ "BSD-3-Clause" ]
28
2015-03-27T15:52:44.000Z
2022-01-25T07:25:30.000Z
from django.http import HttpResponseForbidden from django.utils.deprecation import MiddlewareMixin from .exceptions import RateLimitException
31.823529
67
0.702403
ad82be8113236ba6ef1a019056b5a21f96562145
589
py
Python
setup.py
Shadofer/dogey
1d9f1b82aa7ecfe6d9776feb03364ef9eb00bd63
[ "MIT" ]
3
2021-05-18T09:46:30.000Z
2022-03-26T14:23:24.000Z
setup.py
Shadofer/dogey
1d9f1b82aa7ecfe6d9776feb03364ef9eb00bd63
[ "MIT" ]
null
null
null
setup.py
Shadofer/dogey
1d9f1b82aa7ecfe6d9776feb03364ef9eb00bd63
[ "MIT" ]
null
null
null
from setuptools import setup with open('README.md', 'r') as f: long_description = f.read() setup( name = 'dogey', version = '0.1', description = 'A pythonic dogehouse API.', long_description = long_description, long_description_content_type = 'text/markdown', author = 'Shadofer#7312', ...
25.608696
52
0.626486
ad8464a5e90866608323322de1a9bc098cc0a1d3
476
py
Python
settings/testing.py
skylifewww/artdelo
55d235a59d8a3abdf0f904336c1c75a2be903699
[ "MIT" ]
null
null
null
settings/testing.py
skylifewww/artdelo
55d235a59d8a3abdf0f904336c1c75a2be903699
[ "MIT" ]
null
null
null
settings/testing.py
skylifewww/artdelo
55d235a59d8a3abdf0f904336c1c75a2be903699
[ "MIT" ]
null
null
null
ALLOWED_HOSTS = ['testserver'] EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': ':memory:' } } CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', 'LOC...
22.666667
67
0.596639
ad8619a24bcb752efa61539552ec1f87e1e97167
8,140
py
Python
h1/models/billing.py
hyperonecom/h1-client-python
4ce355852ba3120ec1b8f509ab5894a5c08da730
[ "MIT" ]
null
null
null
h1/models/billing.py
hyperonecom/h1-client-python
4ce355852ba3120ec1b8f509ab5894a5c08da730
[ "MIT" ]
null
null
null
h1/models/billing.py
hyperonecom/h1-client-python
4ce355852ba3120ec1b8f509ab5894a5c08da730
[ "MIT" ]
null
null
null
# coding: utf-8 """ HyperOne HyperOne API # noqa: E501 The version of the OpenAPI document: 0.1.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from h1.configuration import Configuration def to_str(self): """Returns the string rep...
24.741641
189
0.552703
ad86259a30d53b22181afbe5c6707aa6fcfa5c27
1,810
py
Python
docs/names/examples/gethostbyname.py
ndg63276/twisted
f672a20395e8beece6350631a70514f06c391bae
[ "Unlicense", "MIT" ]
1
2020-12-18T06:32:58.000Z
2020-12-18T06:32:58.000Z
docs/names/examples/gethostbyname.py
ndg63276/twisted
f672a20395e8beece6350631a70514f06c391bae
[ "Unlicense", "MIT" ]
null
null
null
docs/names/examples/gethostbyname.py
ndg63276/twisted
f672a20395e8beece6350631a70514f06c391bae
[ "Unlicense", "MIT" ]
null
null
null
#!/usr/bin/env python # -*- test-case-name: twisted.names.test.test_examples -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Print the IP address for a given hostname. eg python gethostbyname.py www.google.com This script does a host lookup using the default Twisted Names resolver, ...
24.794521
75
0.68011
ad8655b4f82e7a25c6632660cfa325c2cad9ee23
645
py
Python
consumers/venv/lib/python3.7/site-packages/faust/cli/faust.py
spencerpomme/Public-Transit-Status-with-Apache-Kafka
2c85d7daadf4614fe7ce2eabcd13ff87236b1c7e
[ "MIT" ]
null
null
null
consumers/venv/lib/python3.7/site-packages/faust/cli/faust.py
spencerpomme/Public-Transit-Status-with-Apache-Kafka
2c85d7daadf4614fe7ce2eabcd13ff87236b1c7e
[ "MIT" ]
null
null
null
consumers/venv/lib/python3.7/site-packages/faust/cli/faust.py
spencerpomme/Public-Transit-Status-with-Apache-Kafka
2c85d7daadf4614fe7ce2eabcd13ff87236b1c7e
[ "MIT" ]
null
null
null
"""Program ``faust`` (umbrella command).""" # Note: The command options above are defined in .cli.base.builtin_options from .agents import agents from .base import call_command, cli from .clean_versions import clean_versions from .completion import completion from .livecheck import livecheck from .model import model f...
21.5
74
0.699225
ad86d9d40c3dcc454a710b3a5148587ea08bb4f9
1,364
py
Python
generator.py
cenarturkmen/watercolor-CycleGAN
94673e5f723904faab3114a9b63ae5d9e1de3de3
[ "MIT" ]
9
2021-04-23T21:57:04.000Z
2021-09-01T08:06:48.000Z
generator.py
cenarturkmen/watercolor-CycleGAN
94673e5f723904faab3114a9b63ae5d9e1de3de3
[ "MIT" ]
null
null
null
generator.py
cenarturkmen/watercolor-CycleGAN
94673e5f723904faab3114a9b63ae5d9e1de3de3
[ "MIT" ]
null
null
null
from model_utils import Upsample, Downsample from torch import nn
34.974359
100
0.544721
ad88dd61bbd09019864be52cbe4cf8c91fba88d8
337
py
Python
accelerator/models/ethno_racial_identity.py
masschallenge/django-accelerator
8af898b574be3b8335edc8961924d1c6fa8b5fd5
[ "MIT" ]
6
2017-06-14T19:34:01.000Z
2020-03-08T07:16:59.000Z
accelerator/models/ethno_racial_identity.py
masschallenge/django-accelerator
8af898b574be3b8335edc8961924d1c6fa8b5fd5
[ "MIT" ]
160
2017-06-20T17:12:13.000Z
2022-03-30T13:53:12.000Z
accelerator/models/ethno_racial_identity.py
masschallenge/django-accelerator
8af898b574be3b8335edc8961924d1c6fa8b5fd5
[ "MIT" ]
null
null
null
import swapper from accelerator_abstract.models.base_ethno_racial_identity import ( BaseEthnoRacialIdentity, )
30.636364
74
0.79822
ad8b2d0ea0221f96e6e009e09186a0d67f3d1e7e
2,303
py
Python
setup.py
HaaLeo/vague-requirements-scripts
e08b66aa6c0d17718bec1deb8c694d6b8237259b
[ "BSD-3-Clause" ]
null
null
null
setup.py
HaaLeo/vague-requirements-scripts
e08b66aa6c0d17718bec1deb8c694d6b8237259b
[ "BSD-3-Clause" ]
null
null
null
setup.py
HaaLeo/vague-requirements-scripts
e08b66aa6c0d17718bec1deb8c694d6b8237259b
[ "BSD-3-Clause" ]
null
null
null
# ------------------------------------------------------------------------------------------------------ # Copyright (c) Leo Hanisch. All rights reserved. # Licensed under the BSD 3-Clause License. See LICENSE.txt in the project root for license information. # ---------------------------------------------------------...
40.403509
133
0.605297
ad8bbb939788d04c4a798ed4657ccace4dec673e
43
py
Python
src/python/WMCore/WMRuntime/Scripts/__init__.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
21
2015-11-19T16:18:45.000Z
2021-12-02T18:20:39.000Z
src/python/WMCore/WMRuntime/Scripts/__init__.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
5,671
2015-01-06T14:38:52.000Z
2022-03-31T22:11:14.000Z
src/python/WMCore/WMRuntime/Scripts/__init__.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
67
2015-01-21T15:55:38.000Z
2022-02-03T19:53:13.000Z
#!/usr/bin/env python """ _Scripts_ """
5.375
21
0.55814
ad8c13ec67ec87fbb7e52ba3ef0d5416c7d7a8bc
6,691
py
Python
combine-json.py
efficient/catbench
4f66541efd8318109c4ac150898d60f023e7aba5
[ "Apache-2.0" ]
10
2017-12-12T17:20:41.000Z
2021-05-03T14:40:35.000Z
combine-json.py
efficient/catbench
4f66541efd8318109c4ac150898d60f023e7aba5
[ "Apache-2.0" ]
null
null
null
combine-json.py
efficient/catbench
4f66541efd8318109c4ac150898d60f023e7aba5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import argparse; import os; import sys; import json; constant_keys=("cache_ways", "mite_tput_limit", "zipf_alpha"); main();
46.144828
166
0.567329
ad8c7679c4fcaabd0666e9de8206c186f2f5bf7b
773
py
Python
following.py
yoshualukash/insta-crawler
c2b9b150e4fff70cb03ea49c08fb46ffc8f23dd0
[ "MIT" ]
null
null
null
following.py
yoshualukash/insta-crawler
c2b9b150e4fff70cb03ea49c08fb46ffc8f23dd0
[ "MIT" ]
null
null
null
following.py
yoshualukash/insta-crawler
c2b9b150e4fff70cb03ea49c08fb46ffc8f23dd0
[ "MIT" ]
null
null
null
# Get instance import instaloader import json L = instaloader.Instaloader(max_connection_attempts=0) # Login or load session username = '' password = '' L.login(username, password) # (login) # Obtain profile metadata instagram_target = '' profile = instaloader.Profile.from_username(L.context, ins...
29.730769
83
0.720569
ad8d60c4379e74e8ce58021ef988f95871703eca
11,966
py
Python
ihs/collector/tasks.py
la-mar/ihs-deo
250d3edeb9e3ae4a407285e136b7e911f1d75e82
[ "Apache-2.0" ]
null
null
null
ihs/collector/tasks.py
la-mar/ihs-deo
250d3edeb9e3ae4a407285e136b7e911f1d75e82
[ "Apache-2.0" ]
null
null
null
ihs/collector/tasks.py
la-mar/ihs-deo
250d3edeb9e3ae4a407285e136b7e911f1d75e82
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations import logging from datetime import date, datetime, timedelta from typing import Dict, Generator, List, Optional, Union, Tuple import pandas as pd import metrics from api.models import ( # noqa ChangeDeleteLog, County, ProductionHorizontal, ProductionMasterHorizont...
31.161458
127
0.636637
ad8e0f494686da07f4c61d50f681147ad0112a38
5,271
py
Python
hivprotmut/structures/pdbcuration.py
victor-gil-sepulveda/PhD-HIVProteaseMutation
164e723605ceaaef246d2b8916fd5aca980e7734
[ "MIT" ]
null
null
null
hivprotmut/structures/pdbcuration.py
victor-gil-sepulveda/PhD-HIVProteaseMutation
164e723605ceaaef246d2b8916fd5aca980e7734
[ "MIT" ]
null
null
null
hivprotmut/structures/pdbcuration.py
victor-gil-sepulveda/PhD-HIVProteaseMutation
164e723605ceaaef246d2b8916fd5aca980e7734
[ "MIT" ]
null
null
null
""" Created on 25/8/2014 @author: victor """ import prody import numpy def choose_main_chains(initial_pdb): """ We can have complexes attached to the chain or even duplicated chains that cover the same space (ex. in the same model, A and B are one structure and C and B form a duplicated protein). We ...
43.561983
110
0.658509
ad8f7bbcca004c832305ceeebbf23ba748e94eff
933
py
Python
Session 3/Dictionaries/Accessing, writing & deleting data.py
Tassneem04Hamdy/AUG-Problem-Solving-For-Bioinformatics-Level-1-
7273610cc2e37acb65530dc384472e78ee8c30f7
[ "MIT" ]
4
2021-04-16T12:27:16.000Z
2021-10-08T19:05:33.000Z
Session 3/Dictionaries/Accessing, writing & deleting data.py
Tassneem04Hamdy/AUG-Problem-Solving-For-Bioinformatics-Level-1-
7273610cc2e37acb65530dc384472e78ee8c30f7
[ "MIT" ]
null
null
null
Session 3/Dictionaries/Accessing, writing & deleting data.py
Tassneem04Hamdy/AUG-Problem-Solving-For-Bioinformatics-Level-1-
7273610cc2e37acb65530dc384472e78ee8c30f7
[ "MIT" ]
5
2021-04-18T10:46:44.000Z
2021-05-03T16:13:25.000Z
my_dictionary = { 'type': 'Fruits', 'name': 'Apple', 'color': 'Green', 'available': True, 'number': 25 } print(my_dictionary) print(my_dictionary['name']) # searching with wrong key print(my_dictionary['weight']) ############################################################### # printing keys and ...
21.697674
63
0.45552
ad8fb8dc439638934875f09ce4b704d202abf421
18,426
py
Python
old/data_handler_VALVE.py
dlaredo/NASA_RUL_-CMAPS-
b4fc4267e2abb4b0542e4658fd8ee931ba848fd1
[ "BSD-3-Clause" ]
27
2018-05-09T09:18:04.000Z
2022-01-14T06:37:53.000Z
old/data_handler_VALVE.py
hard10086/NASA_RUL_-CMAPS-
b4fc4267e2abb4b0542e4658fd8ee931ba848fd1
[ "BSD-3-Clause" ]
1
2019-06-11T09:09:22.000Z
2019-10-08T21:23:07.000Z
old/data_handler_VALVE.py
hard10086/NASA_RUL_-CMAPS-
b4fc4267e2abb4b0542e4658fd8ee931ba848fd1
[ "BSD-3-Clause" ]
9
2018-07-06T03:40:47.000Z
2022-01-06T07:30:26.000Z
import numpy as np import random import pandas as pd import sqlalchemy from sqlalchemy.orm import sessionmaker from sqlalchemy.sql import select from sqlalchemy import and_ from sqlalchemy import between from sqlalchemy.sql import exists from sqlalchemy import desc from datetime import datetime, timezone, timedelta ...
31.714286
195
0.711712
ad9068a44289e0f08b1e0f06b78ce22398e4bb52
350
py
Python
Course 01 - Getting Started with Python/Extra Studies/Basics/ex036.py
marcoshsq/python_practical_exercises
77136cd4bc0f34acde3380ffdc5af74f7a960670
[ "MIT" ]
9
2022-03-22T16:45:17.000Z
2022-03-25T20:22:35.000Z
Course 01 - Getting Started with Python/Extra Studies/Basics/ex036.py
marcoshsq/python_practical_exercises
77136cd4bc0f34acde3380ffdc5af74f7a960670
[ "MIT" ]
null
null
null
Course 01 - Getting Started with Python/Extra Studies/Basics/ex036.py
marcoshsq/python_practical_exercises
77136cd4bc0f34acde3380ffdc5af74f7a960670
[ "MIT" ]
3
2022-03-22T17:03:38.000Z
2022-03-29T17:20:55.000Z
import math # Extra Exercise 004 """Write a program that asks for the radius of a circle, calculates and displays its area.""" radius = float(input("Enter the radius of the circle: ")) area = math.pi * radius**2 circumference = 2 * math.pi * radius print( f"The area of the circle is {area:.2f} and its circumfere...
26.923077
93
0.708571
ad908fb8710091b44d78b703219fe574d5101cb4
4,753
py
Python
bw_tools/modules/bw_framer/bw_framer.py
ben-wilson-github/bw_tools
5a0701a39b5af3fcd15021a2600ff2ff1ce41284
[ "MIT" ]
4
2021-10-21T08:28:43.000Z
2022-03-17T04:01:55.000Z
bw_tools/modules/bw_framer/bw_framer.py
ben-wilson-github/bw_tools
5a0701a39b5af3fcd15021a2600ff2ff1ce41284
[ "MIT" ]
null
null
null
bw_tools/modules/bw_framer/bw_framer.py
ben-wilson-github/bw_tools
5a0701a39b5af3fcd15021a2600ff2ff1ce41284
[ "MIT" ]
null
null
null
from __future__ import annotations import os from functools import partial from pathlib import Path from typing import TYPE_CHECKING, Dict from PySide2.QtGui import QIcon, QKeySequence from bw_tools.common.bw_node import BWNode from bw_tools.modules.bw_settings.bw_settings import BWModuleSettings from PySide2.QtWidg...
32.77931
95
0.676415
ad924de515f8ae85983543885c9a8879cf74af0c
9,674
py
Python
CodePipeline.py
larroy/codebuild_pipeline_skeleton
20c180e6e9e92df86c7fc38f3a90ba96b1afc711
[ "MIT" ]
null
null
null
CodePipeline.py
larroy/codebuild_pipeline_skeleton
20c180e6e9e92df86c7fc38f3a90ba96b1afc711
[ "MIT" ]
null
null
null
CodePipeline.py
larroy/codebuild_pipeline_skeleton
20c180e6e9e92df86c7fc38f3a90ba96b1afc711
[ "MIT" ]
1
2020-03-05T23:49:04.000Z
2020-03-05T23:49:04.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Github attached AWS Code Pipeline""" __author__ = 'Pedro Larroy' __version__ = '0.1' import boto3 import os import sys import subprocess import logging from troposphere import Parameter, Ref, Template, iam from troposphere.iam import Role from troposphere.s3 import B...
32.139535
113
0.535766
ad92a0289e1e8498d72a439196ee28b52ed801be
2,723
py
Python
src/huaytools/_demo/argparse_demo.py
imhuay/studies-gitbook
69a31c20c91d131d0fafce0622f4035b9b95e93a
[ "MIT" ]
100
2021-10-13T01:22:27.000Z
2022-03-31T09:52:49.000Z
src/huaytools/_demo/argparse_demo.py
imhuay/studies-gitbook
69a31c20c91d131d0fafce0622f4035b9b95e93a
[ "MIT" ]
null
null
null
src/huaytools/_demo/argparse_demo.py
imhuay/studies-gitbook
69a31c20c91d131d0fafce0622f4035b9b95e93a
[ "MIT" ]
27
2021-11-01T01:05:09.000Z
2022-03-31T03:32:01.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- """ Time: 2021-01-18 19:20 Author: huayang Subject: argparse usage demo References: https://docs.python.org/zh-cn/3/library/argparse.html#the-add-argument-method """ import argparse def get_args(test_arg_ls: list = None): """ `.add_argum...
23.474138
89
0.517811
ad93a1fe02a22cf958094f14b1d5c32570598491
318
py
Python
src/test.py
qitar888/ga2016_final_project
f573f683cc2b5cb73a863f3e83f90fc3ced6454a
[ "MIT" ]
null
null
null
src/test.py
qitar888/ga2016_final_project
f573f683cc2b5cb73a863f3e83f90fc3ced6454a
[ "MIT" ]
null
null
null
src/test.py
qitar888/ga2016_final_project
f573f683cc2b5cb73a863f3e83f90fc3ced6454a
[ "MIT" ]
null
null
null
import cost_function as cf import pic target_image = pic.pic2rgb("../data/img03.jpg", 50, 50) cf.set_target_image(target_image) s = "(H 0.73 (V 0.451 (H 0.963 (L color)(L color))(V 0.549 (L color)(L color)))(L color))" matrix = cf.to_array(s, 50, 50, 1) #print(matrix) pic.rgb2pic(matrix, 'LAB', "./master_piece.png")
35.333333
90
0.68239
ad942e6997ea2601c7bed854c8c21558ab9e8c01
444
py
Python
vkquick/pretty_view.py
lordralinc/vkquick
55ca7bb34f7ae5a5b4eb148e94483b995ef9caad
[ "MIT" ]
47
2021-01-12T15:27:04.000Z
2022-03-26T19:37:54.000Z
vkquick/pretty_view.py
lordralinc/vkquick
55ca7bb34f7ae5a5b4eb148e94483b995ef9caad
[ "MIT" ]
40
2020-07-21T15:36:01.000Z
2021-01-10T15:42:34.000Z
vkquick/pretty_view.py
lordralinc/vkquick
55ca7bb34f7ae5a5b4eb148e94483b995ef9caad
[ "MIT" ]
23
2020-07-20T03:31:11.000Z
2021-01-07T12:18:49.000Z
import json import pygments.formatters import pygments.lexers def pretty_view(mapping: dict, /) -> str: """ Args: mapping: Returns: """ dumped_mapping = json.dumps(mapping, ensure_ascii=False, indent=4) pretty_mapping = pygments.highlight( dumped_mapping, pygments.lex...
19.304348
70
0.657658
ad9529080b4c0067a7c91cc54c080ae6193fb41f
873
py
Python
firefox/install.py
lfkeitel/dotfiles
7fa891451fee1834b5347638f6405afa654a55a6
[ "BSD-3-Clause" ]
2
2018-11-19T07:57:00.000Z
2020-04-01T22:42:45.000Z
firefox/install.py
lfkeitel/dotfiles
7fa891451fee1834b5347638f6405afa654a55a6
[ "BSD-3-Clause" ]
19
2017-10-13T02:42:47.000Z
2020-08-13T20:42:28.000Z
firefox/install.py
lfkeitel/dotfiles
7fa891451fee1834b5347638f6405afa654a55a6
[ "BSD-3-Clause" ]
null
null
null
from pathlib import Path from configparser import ConfigParser from utils.installer import Installer from utils.chalk import print_header from utils.utils import link_file import utils.platform as platform MOZILLA_DIR = Path.home().joinpath(".mozilla", "firefox") SCRIPT_DIR = Path(__file__).parent
28.16129
82
0.667812
ad9650632cdafda2546e12eb7a9297786c36ea75
917
py
Python
Example/wangyi.py
Willshon/Python
a10bba4a1e4b7deb3dce12fa11b4fee6f07f91e0
[ "MIT" ]
null
null
null
Example/wangyi.py
Willshon/Python
a10bba4a1e4b7deb3dce12fa11b4fee6f07f91e0
[ "MIT" ]
null
null
null
Example/wangyi.py
Willshon/Python
a10bba4a1e4b7deb3dce12fa11b4fee6f07f91e0
[ "MIT" ]
null
null
null
# # By Tsing # Python3.4.4 import requests import urllib # # r = requests.get('http://music.163.com/api/playlist/detail?id=2884035') # # r = requests.get('http://music.163.com/api/playlist/detail?id=19723756') # # r = requests.get('http://music.163.com/api/playlist/detail?id=3778678') # r = reque...
38.208333
103
0.651036
ad974a16f5e2eba5c65ce3b727dca372dec76010
1,353
py
Python
cloudkittyclient/v1/info.py
mmariani/python-cloudkittyclient
92f51ded48b261231f226669f75c52f199584d5c
[ "Apache-2.0" ]
null
null
null
cloudkittyclient/v1/info.py
mmariani/python-cloudkittyclient
92f51ded48b261231f226669f75c52f199584d5c
[ "Apache-2.0" ]
null
null
null
cloudkittyclient/v1/info.py
mmariani/python-cloudkittyclient
92f51ded48b261231f226669f75c52f199584d5c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 Objectif Libre # # 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 ...
35.605263
78
0.679231
ad97e5e6daa0d77eaf62c07024df8c1d58d486a8
2,450
py
Python
PiCN/Layers/PacketEncodingLayer/BasicPacketEncodingLayer.py
NikolaiRutz/PiCN
7775c61caae506a88af2e4ec34349e8bd9098459
[ "BSD-3-Clause" ]
null
null
null
PiCN/Layers/PacketEncodingLayer/BasicPacketEncodingLayer.py
NikolaiRutz/PiCN
7775c61caae506a88af2e4ec34349e8bd9098459
[ "BSD-3-Clause" ]
null
null
null
PiCN/Layers/PacketEncodingLayer/BasicPacketEncodingLayer.py
NikolaiRutz/PiCN
7775c61caae506a88af2e4ec34349e8bd9098459
[ "BSD-3-Clause" ]
null
null
null
""" De- and Encoding Layer, using a predefined Encoder """ import multiprocessing from PiCN.Layers.PacketEncodingLayer.Encoder import BasicEncoder from PiCN.Processes import LayerProcess def check_data(self, data): """check if data from queue match the requirements""" if len(data) != 2: ...
38.888889
110
0.655102
ad9a51daee278697203eb4c710d5438cdf50f670
6,187
py
Python
bounce2.py
Yokohama-Miyazawa/bounce_games
6dcc23a254cdae56e4bdf9bf40a7609d5995e4e6
[ "MIT" ]
4
2019-03-03T01:18:56.000Z
2021-02-26T19:53:01.000Z
bounce2.py
Yokohama-Miyazawa/bounce_games
6dcc23a254cdae56e4bdf9bf40a7609d5995e4e6
[ "MIT" ]
null
null
null
bounce2.py
Yokohama-Miyazawa/bounce_games
6dcc23a254cdae56e4bdf9bf40a7609d5995e4e6
[ "MIT" ]
1
2021-12-12T00:52:02.000Z
2021-12-12T00:52:02.000Z
from tkinter import * import random import time # tk = Tk() canvas_size = [500, 400] canvas = Canvas(tk, width=canvas_size[0], height=canvas_size[1]) tk.title("!!!") canvas.pack() # canvas.create_text(50, 150, text='COM', fill='green', font=('', 20)) canvas.create_text(50, 250, text='YOU', fill='red', font=('...
31.090452
76
0.591563
ad9ab3e056d036c86285fad9ebbf157d0f0bf489
4,074
py
Python
simpleblog/blog/views.py
GrayAn/simpleblog
a3be8e3a6edf25caad80ae8013fcc6ea4e8003d4
[ "MIT" ]
null
null
null
simpleblog/blog/views.py
GrayAn/simpleblog
a3be8e3a6edf25caad80ae8013fcc6ea4e8003d4
[ "MIT" ]
null
null
null
simpleblog/blog/views.py
GrayAn/simpleblog
a3be8e3a6edf25caad80ae8013fcc6ea4e8003d4
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.http import JsonResponse, HttpResponse, HttpResponseForbidden from django.views import generic from .models import Post, Vote def cast_vote(request, post_id, direction): try: post = Post.objects.get(pk=post_id) except Post.DoesNotExist: ...
30.631579
103
0.633284
ad9d9fb7a38ac292e01525e196638ba0f6d199ab
2,303
py
Python
pyatv/protocols/mrp/protobuf/PlayerClientPropertiesMessage_pb2.py
crxporter/pyatv
e694a210b3810c64044116bf40e7b75420b5fe75
[ "MIT" ]
null
null
null
pyatv/protocols/mrp/protobuf/PlayerClientPropertiesMessage_pb2.py
crxporter/pyatv
e694a210b3810c64044116bf40e7b75420b5fe75
[ "MIT" ]
null
null
null
pyatv/protocols/mrp/protobuf/PlayerClientPropertiesMessage_pb2.py
crxporter/pyatv
e694a210b3810c64044116bf40e7b75420b5fe75
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: pyatv/protocols/mrp/protobuf/PlayerClientPropertiesMessage.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from g...
57.575
500
0.860617
ad9e41e35c13ed20157dba440d5e3dc168b4b9c8
524
py
Python
app_challenges_sections_units/migrations/0036_auto_20190619_1903.py
Audiotuete/backend_wagtail_api
3c5a4a610ffdbb75d45a57fc670e2ae3b7178c62
[ "MIT" ]
null
null
null
app_challenges_sections_units/migrations/0036_auto_20190619_1903.py
Audiotuete/backend_wagtail_api
3c5a4a610ffdbb75d45a57fc670e2ae3b7178c62
[ "MIT" ]
null
null
null
app_challenges_sections_units/migrations/0036_auto_20190619_1903.py
Audiotuete/backend_wagtail_api
3c5a4a610ffdbb75d45a57fc670e2ae3b7178c62
[ "MIT" ]
null
null
null
# Generated by Django 2.0.8 on 2019-06-19 19:03 from django.db import migrations
22.782609
69
0.603053
ad9eadfbff4068c3a66cb70f04ac1b2216de5ebe
2,534
py
Python
self_organising_systems/texture_ca/losses.py
google-research/self-organizing-systems
2f96d0b0cd6781f8a65d446dad5c5b394e5adf93
[ "Apache-2.0" ]
2
2020-02-04T08:05:52.000Z
2020-02-04T08:06:18.000Z
self_organising_systems/texture_ca/losses.py
google-research/self-organizing-systems
2f96d0b0cd6781f8a65d446dad5c5b394e5adf93
[ "Apache-2.0" ]
null
null
null
self_organising_systems/texture_ca/losses.py
google-research/self-organizing-systems
2f96d0b0cd6781f8a65d446dad5c5b394e5adf93
[ "Apache-2.0" ]
null
null
null
from self_organising_systems.texture_ca.config import cfg from self_organising_systems.shared.util import imread import tensorflow as tf import numpy as np style_layers = ['block%d_conv1'%i for i in range(1, 6)] content_layer = 'block4_conv2' class Inception:
36.724638
92
0.686267
ad9eda249a4ad6c95e811e1a7a874b595d6c8d1f
2,713
py
Python
edflow/hooks/runtime_input.py
rromb/edflow
8681cadf1770ca1bc1515535768dc14cb0758b0f
[ "MIT" ]
2
2021-03-10T13:42:12.000Z
2021-03-10T14:29:53.000Z
edflow/hooks/runtime_input.py
rromb/edflow
8681cadf1770ca1bc1515535768dc14cb0758b0f
[ "MIT" ]
null
null
null
edflow/hooks/runtime_input.py
rromb/edflow
8681cadf1770ca1bc1515535768dc14cb0758b0f
[ "MIT" ]
null
null
null
import numpy as np import os import traceback import yaml from edflow.hooks.hook import Hook from edflow.util import walk, retrieve, contains_key from edflow.custom_logging import get_logger
33.493827
79
0.542941
ad9f4705eca81ea52720a66a8b32f82f6946af08
11,392
py
Python
tools/launcher.py
agentx-cgn/Hannibal
8157261c28bd67755dad38ef6b7862d1b736e644
[ "JasPer-2.0" ]
189
2015-01-10T07:35:16.000Z
2021-05-05T08:21:22.000Z
tools/launcher.py
agentx-cgn/Hannibal
8157261c28bd67755dad38ef6b7862d1b736e644
[ "JasPer-2.0" ]
6
2015-02-02T19:18:34.000Z
2017-12-07T11:19:23.000Z
tools/launcher.py
agentx-cgn/Hannibal
8157261c28bd67755dad38ef6b7862d1b736e644
[ "JasPer-2.0" ]
15
2016-03-14T12:27:59.000Z
2020-04-28T23:24:05.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' https://docs.python.org/2/library/subprocess.html#popen-objects http://stackoverflow.com/questions/1606795/catching-stdout-in-realtime-from-subprocess http://askubuntu.com/questions/458041/find-x-window-name http://stackoverflow.com/questions/9681959/how-can-i-use-xdot...
30.297872
122
0.545207
ad9f81a0cbf6847b29b2b1b0b3d68f028ae28dfe
6,265
py
Python
wurst/brightway/extract_database.py
kais-siala/wurst
448dd4e9e0bfbde956c2913222222509ff2b14e1
[ "BSD-2-Clause" ]
null
null
null
wurst/brightway/extract_database.py
kais-siala/wurst
448dd4e9e0bfbde956c2913222222509ff2b14e1
[ "BSD-2-Clause" ]
null
null
null
wurst/brightway/extract_database.py
kais-siala/wurst
448dd4e9e0bfbde956c2913222222509ff2b14e1
[ "BSD-2-Clause" ]
null
null
null
from bw2data.database import DatabaseChooser try: from bw2data.backends.peewee import SQLiteBackend, ActivityDataset, ExchangeDataset except ImportError: from bw2data.backends import SQLiteBackend, ActivityDataset, ExchangeDataset from tqdm import tqdm import copy def extract_activity(proxy): """Get data...
37.969697
186
0.635914
ad9faceb7907e8d07a0ac107b43606f9fd453a2b
874
py
Python
ex070.py
raphael-abrantes/exercises-python
71f1e7cba2f56173c256d43e4fe33a43722b4484
[ "MIT" ]
null
null
null
ex070.py
raphael-abrantes/exercises-python
71f1e7cba2f56173c256d43e4fe33a43722b4484
[ "MIT" ]
null
null
null
ex070.py
raphael-abrantes/exercises-python
71f1e7cba2f56173c256d43e4fe33a43722b4484
[ "MIT" ]
null
null
null
vTotal = 0 i = 0 vMenorValor = 0 cont = 1 vMenorValorItem = '' while True: vItem = str(input('Insira o nome do produto: ')) vValor = float(input('Valor do produto: R$')) vTotal = vTotal + vValor if vValor >= 1000: i = i + 1 if cont == 1: vMenorValor = vValor vM...
27.3125
85
0.565217
ada0c87b43dddcb6a0efe0af0db1a22cebfdc36f
26,826
py
Python
sdscli/adapters/hysds/configure.py
sdskit/sdscli
9bb96e880c8251d1dce56b901c1289ed80f83ce7
[ "Apache-2.0" ]
null
null
null
sdscli/adapters/hysds/configure.py
sdskit/sdscli
9bb96e880c8251d1dce56b901c1289ed80f83ce7
[ "Apache-2.0" ]
24
2018-03-14T15:37:38.000Z
2021-11-30T21:59:44.000Z
sdscli/adapters/hysds/configure.py
sdskit/sdscli
9bb96e880c8251d1dce56b901c1289ed80f83ce7
[ "Apache-2.0" ]
13
2018-02-22T15:01:35.000Z
2019-02-07T18:58:57.000Z
""" Configuration for HySDS cluster. """ from __future__ import print_function from __future__ import unicode_literals from __future__ import division from __future__ import absolute_import from builtins import open from builtins import str from future import standard_library standard_library.install_aliases() import...
38.213675
114
0.456348
a8db9e49f13dfef65d13b5c20b4f322d715e8a17
17,625
py
Python
robot_control/iiwa_ros-master/iiwa_gazebo/scripts/gazebo_iiwa_keyboard_cmd.py
stanFurrer/Multimodal-solution-for-grasp-stability-prediction
b7d07a217e2a4846f3fe782fe7c3f4942f3299b3
[ "MIT" ]
null
null
null
robot_control/iiwa_ros-master/iiwa_gazebo/scripts/gazebo_iiwa_keyboard_cmd.py
stanFurrer/Multimodal-solution-for-grasp-stability-prediction
b7d07a217e2a4846f3fe782fe7c3f4942f3299b3
[ "MIT" ]
null
null
null
robot_control/iiwa_ros-master/iiwa_gazebo/scripts/gazebo_iiwa_keyboard_cmd.py
stanFurrer/Multimodal-solution-for-grasp-stability-prediction
b7d07a217e2a4846f3fe782fe7c3f4942f3299b3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright (C) 2021 Learning Algorithms and Systems Laboratory, EPFL, Switzerland # Authors: # Lorenzo Panchett (lorenzo.panchetti@epfl.ch) # # Website: lasa.epfl.ch # # This file is part of iiwa_gazebo. # # This program is free software: you can redistribute it and/or modify # it under the t...
32.51845
119
0.607035
a8dd9e16ff0637026c75f14c84e32a7e547064f3
2,829
py
Python
python_code/Quadrotor/ProblemStatement/targetSlowResponse.py
cholazzzb/APF_Swarm_Control_Simulator
a58a1f55cd709f12928cc31d2320f7833d761c50
[ "MIT" ]
2
2021-12-21T00:39:46.000Z
2022-02-28T11:11:27.000Z
python_code/Quadrotor/ProblemStatement/targetSlowResponse.py
cholazzzb/APF_Swarm_Control_Simulator
a58a1f55cd709f12928cc31d2320f7833d761c50
[ "MIT" ]
1
2021-02-03T13:24:13.000Z
2021-02-03T23:56:33.000Z
python_code/Quadrotor/ProblemStatement/targetSlowResponse.py
cholazzzb/APF_Swarm_Control_Simulator
a58a1f55cd709f12928cc31d2320f7833d761c50
[ "MIT" ]
1
2021-04-16T18:25:15.000Z
2021-04-16T18:25:15.000Z
import matplotlib.pyplot as plt import math import sys sys.path.append('../') from Report import Report from QuadrotorARSim import QuadrotorARSim from Ship import Ship sys.path.append('../') from Agent import Agent from Target import Target from SwarmController import SwarmController # Build Object for Attitude and Po...
36.269231
78
0.645811
a8ded0f79cfee5cbfebfd883ed9fb8314fcc5c0e
161
py
Python
internetarchive/spew-shelf.py
wumpus/visigoth-data
6887937f4547a5c8a9b52c5a0e75cb258cc55c97
[ "Apache-2.0" ]
1
2019-02-18T19:34:24.000Z
2019-02-18T19:34:24.000Z
internetarchive/spew-shelf.py
wumpus/visigoth-data
6887937f4547a5c8a9b52c5a0e75cb258cc55c97
[ "Apache-2.0" ]
null
null
null
internetarchive/spew-shelf.py
wumpus/visigoth-data
6887937f4547a5c8a9b52c5a0e75cb258cc55c97
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import shelve import sys for f in sys.argv[1:]: with shelve.open(f, flag='r') as d: for k in d: print(k,d[k])
13.416667
39
0.552795
a8df969a1e348281f45c3f81e7d78518202537bb
72
py
Python
aioblescan/__init__.py
nasa-watchdog/aioblescan-ucsb
1202906f6a96208f1887f0026a802c034019b068
[ "MIT" ]
2
2019-10-11T19:13:34.000Z
2020-06-03T14:11:33.000Z
aioblescan/__init__.py
nasa-watchdog/aioblescan-ucsb
1202906f6a96208f1887f0026a802c034019b068
[ "MIT" ]
null
null
null
aioblescan/__init__.py
nasa-watchdog/aioblescan-ucsb
1202906f6a96208f1887f0026a802c034019b068
[ "MIT" ]
4
2019-11-19T22:42:17.000Z
2022-01-18T21:56:31.000Z
# from .aioblescan import * from . import plugins __version__ = '0.2.1'
14.4
25
0.708333
a8dfb79a87fbf5130e974794f6839e17cb680477
1,767
py
Python
cajas/users/api/views/validate_partner_withdraw.py
dmontoya1/cajas
5eb3d5835250d5dafae398082200b79c1ca8063b
[ "MIT" ]
null
null
null
cajas/users/api/views/validate_partner_withdraw.py
dmontoya1/cajas
5eb3d5835250d5dafae398082200b79c1ca8063b
[ "MIT" ]
null
null
null
cajas/users/api/views/validate_partner_withdraw.py
dmontoya1/cajas
5eb3d5835250d5dafae398082200b79c1ca8063b
[ "MIT" ]
null
null
null
from django.shortcuts import get_object_or_404 from rest_framework import status from rest_framework.views import APIView from rest_framework.response import Response from cajas.users.models.partner import Partner from cajas.loans.models.loan import Loan, LoanType
31.553571
95
0.606678
a8dfd18189d8ca071a33df8e68b7e90fd7a7c3a0
2,666
py
Python
pi88reader/pi88_to_excel.py
natter1/pi88reader
9698b25c3df0f1175fcbcec6c6ab22f6fe3aca6b
[ "MIT" ]
null
null
null
pi88reader/pi88_to_excel.py
natter1/pi88reader
9698b25c3df0f1175fcbcec6c6ab22f6fe3aca6b
[ "MIT" ]
null
null
null
pi88reader/pi88_to_excel.py
natter1/pi88reader
9698b25c3df0f1175fcbcec6c6ab22f6fe3aca6b
[ "MIT" ]
null
null
null
""" todo: check pandas """ from openpyxl import Workbook from openpyxl.styles import Font from pi88reader.pi88_importer import PI88Measurement, SegmentType if __name__ == "__main__": main()
32.91358
75
0.626782
a8e1a924cdbc26ab3a5fbd0dc19d7a202d15d1ad
55,228
py
Python
caffe_files/caffe_traininglayers.py
excalib/interactive-deep-colorization
8247da3cc83e54201b20d5a67b997120bb368436
[ "MIT" ]
1
2021-03-26T14:42:01.000Z
2021-03-26T14:42:01.000Z
caffe_files/caffe_traininglayers.py
SleepProgger/interactive-deep-colorization
8247da3cc83e54201b20d5a67b997120bb368436
[ "MIT" ]
null
null
null
caffe_files/caffe_traininglayers.py
SleepProgger/interactive-deep-colorization
8247da3cc83e54201b20d5a67b997120bb368436
[ "MIT" ]
1
2017-09-13T15:36:23.000Z
2017-09-13T15:36:23.000Z
# ************************************** # ***** Richard Zhang / 2016.08.06 ***** # ************************************** import numpy as np import warnings import os import sklearn.neighbors as nn import caffe from skimage import color import matplotlib.pyplot as plt import math import platform import cv2 import rz_f...
37.931319
226
0.573405
a8e1dced7a604f8c2b62fcf91f75b95634a99ffe
22,631
py
Python
services/python/app/lib/parsers/EmailParser.py
ace-ecosystem/eventsentry
79cb67245f9c5bd49118d23e20764ee8feba8660
[ "Apache-2.0" ]
null
null
null
services/python/app/lib/parsers/EmailParser.py
ace-ecosystem/eventsentry
79cb67245f9c5bd49118d23e20764ee8feba8660
[ "Apache-2.0" ]
null
null
null
services/python/app/lib/parsers/EmailParser.py
ace-ecosystem/eventsentry
79cb67245f9c5bd49118d23e20764ee8feba8660
[ "Apache-2.0" ]
null
null
null
import base64 import dateutil.parser import email import hashlib import logging import os import re from dateutil import tz from email.header import decode_header, make_header from urlfinderlib import find_urls from lib import RegexHelpers from lib.config import config from lib.constants import HOME_DIR from lib.indi...
41.601103
146
0.57271
a8e27fe84476933e035a3939488c30dcc66b58ba
17,061
py
Python
rb/processings/sentiment/utils_new.py
readerbench/ReaderBench
f0588a9a63ba21e3b8c2e5e5bc474904c07f6897
[ "Apache-2.0" ]
1
2022-03-05T17:12:55.000Z
2022-03-05T17:12:55.000Z
rb/processings/sentiment/utils_new.py
rwth-acis/readerbenchpy
1a070ae678f58ccd6f358c0802bdf0b3b3dde9d3
[ "Apache-2.0" ]
2
2021-10-17T14:00:52.000Z
2021-10-17T14:00:52.000Z
rb/processings/sentiment/utils_new.py
rwth-acis/readerbenchpy
1a070ae678f58ccd6f358c0802bdf0b3b3dde9d3
[ "Apache-2.0" ]
null
null
null
import json import sys # import matplotlib.pyplot as plt import copy import numpy as np import tensorflow as tf from sklearn.model_selection import StratifiedShuffleSplit from sklearn.utils import class_weight from collections import Counter import random from tensorflow.keras.callbacks import Callback from sklearn.met...
35.104938
144
0.649083
a8e295359a28a2381f6b58817f1595af8035d0d8
4,200
py
Python
trie.py
kawasaki-kento/LOUDS
6a5e157e04ad0f9a50e7c3858b382f9189d044db
[ "MIT" ]
1
2020-12-02T04:38:12.000Z
2020-12-02T04:38:12.000Z
trie.py
kawasaki-kento/LOUDS
6a5e157e04ad0f9a50e7c3858b382f9189d044db
[ "MIT" ]
1
2022-02-17T05:39:27.000Z
2022-02-17T05:39:27.000Z
trie.py
kawasaki-kento/LOUDS
6a5e157e04ad0f9a50e7c3858b382f9189d044db
[ "MIT" ]
null
null
null
from constructor import ArrayConstructor from measure import MeasureMemory import re import array # rank
28.378378
108
0.561667
a8e480da6a075138e07033a8fe888a7b13527f5b
3,813
py
Python
metglyphs/__init__.py
informatics-lab/metglyphs
5726502d5873a44fcee270b3e058d681fee84be7
[ "BSD-3-Clause" ]
4
2018-05-12T03:12:29.000Z
2020-05-29T06:10:31.000Z
metglyphs/__init__.py
informatics-lab/metglyphs
5726502d5873a44fcee270b3e058d681fee84be7
[ "BSD-3-Clause" ]
null
null
null
metglyphs/__init__.py
informatics-lab/metglyphs
5726502d5873a44fcee270b3e058d681fee84be7
[ "BSD-3-Clause" ]
1
2021-04-10T23:58:45.000Z
2021-04-10T23:58:45.000Z
"""A library for converting weather codes to symbols.""" import os.path from io import BytesIO import cairosvg import imageio from .glyphs import WMO_GLYPH_LOOKUP, DEFAULT_GLYPHS from .codes import DATAPOINT_TO_WMO_LOOKUP, DARKSKY_TO_WMO_LOOKUP class Glyph(): """An individual glyph with methods to convert bet...
34.044643
79
0.602151
a8e5b8ce05b40fbc469c45e36983e0d032a99b84
1,581
py
Python
showyourwork/exceptions/other.py
katiebreivik/showyourwork
77a15de6778e14c3a3936e86e181539cc31cc693
[ "MIT" ]
null
null
null
showyourwork/exceptions/other.py
katiebreivik/showyourwork
77a15de6778e14c3a3936e86e181539cc31cc693
[ "MIT" ]
null
null
null
showyourwork/exceptions/other.py
katiebreivik/showyourwork
77a15de6778e14c3a3936e86e181539cc31cc693
[ "MIT" ]
null
null
null
from .base import ShowyourworkException
21.657534
97
0.71537
a8e65d0852311bd81e04a9f8be156d61168eac0b
1,222
py
Python
seq_util/pull_longest_seq_from_img_fa.py
fandemonium/code
4498f97658c146de8e693776e05bedeaaf2d5a1d
[ "MIT" ]
2
2017-12-25T09:14:52.000Z
2021-05-18T06:39:26.000Z
seq_util/pull_longest_seq_from_img_fa.py
fandemonium/code
4498f97658c146de8e693776e05bedeaaf2d5a1d
[ "MIT" ]
1
2018-09-29T22:34:30.000Z
2018-09-29T22:34:30.000Z
seq_util/pull_longest_seq_from_img_fa.py
fandemonium/code
4498f97658c146de8e693776e05bedeaaf2d5a1d
[ "MIT" ]
1
2015-01-30T20:29:25.000Z
2015-01-30T20:29:25.000Z
import sys from Bio import SeqIO import operator # 1. get genome img_oid from the genecart text file # 2. create gene sequence dictionary # 3. add genome img_oid to the gene sequence dictionary # 4. for genes from the same organism, pull the longest sequence out gene_cart = open(sys.argv[1], 'rU') firstline = gene_c...
28.418605
144
0.673486
a8e727decc6f36450568f08df6b418bcc7070425
3,444
py
Python
chapter_projects/quiz_generator/quiz_generator.py
zspatter/automate-the-boring-stuff
5efc5ab7112be5b5e1197c86472aee212c3a829b
[ "Unlicense" ]
15
2019-08-16T19:44:30.000Z
2021-09-05T20:19:40.000Z
chapter_projects/quiz_generator/quiz_generator.py
zspatter/automate-the-boring-stuff
5efc5ab7112be5b5e1197c86472aee212c3a829b
[ "Unlicense" ]
1
2020-01-05T10:06:33.000Z
2020-01-17T22:28:07.000Z
chapter_projects/quiz_generator/quiz_generator.py
zspatter/automate-the-boring-stuff
5efc5ab7112be5b5e1197c86472aee212c3a829b
[ "Unlicense" ]
7
2019-08-16T20:42:11.000Z
2022-03-10T10:33:18.000Z
#! /usr/bin/env python3 # randomQuizGenerator.py - Creates quizzes with questions and answers in # random order, along with the answer key import random # The quiz data. Keys are states and values are their capitals. capitals = {'Alabama': 'Montgomery', 'Alaska': 'Juneau', 'Ariz...
38.696629
87
0.485772
a8e92779935c13faae8293404567f0278d30ae7e
138
py
Python
scripts/reactor/autogen_ludiquest2.py
hsienjan/SideQuest-Server
3e88debaf45615b759d999255908f99a15283695
[ "MIT" ]
null
null
null
scripts/reactor/autogen_ludiquest2.py
hsienjan/SideQuest-Server
3e88debaf45615b759d999255908f99a15283695
[ "MIT" ]
null
null
null
scripts/reactor/autogen_ludiquest2.py
hsienjan/SideQuest-Server
3e88debaf45615b759d999255908f99a15283695
[ "MIT" ]
null
null
null
# ParentID: 2202002 # Character field ID when accessed: 220020000 # ObjectID: 1000016 # Object Position X: -228 # Object Position Y: -198
23
45
0.746377
a8e9720c8eef1700f8da8b99e8e23353e5960428
565
py
Python
GN.py
Aashutosh-922/News-Notifier
fef0665f09f87feeaaa39533905c75ca67098559
[ "MIT" ]
1
2021-12-09T06:24:46.000Z
2021-12-09T06:24:46.000Z
GN.py
Aashutosh-922/News-Notifier
fef0665f09f87feeaaa39533905c75ca67098559
[ "MIT" ]
null
null
null
GN.py
Aashutosh-922/News-Notifier
fef0665f09f87feeaaa39533905c75ca67098559
[ "MIT" ]
null
null
null
import feedparser allheadlines = [] newsurls = { 'googlenews': 'https://news.google.com/news/rss/?hl=en&amp;ned=us&amp;gl=US', } for key, url in newsurls.items(): allheadlines.extend(getHeadlines(url)) for hl in allheadlines: print(hl)
15.27027
82
0.59115
a8e9cca9c462f701ccbd95ce0e087cddfc60329e
3,070
py
Python
src/jarvis/jarvis/skills/collection/remember.py
jameswynn/Python-ai-assistant
2acc2982350e8500e3fbd534b26bcdaa1c00a14b
[ "MIT" ]
424
2020-04-19T06:01:00.000Z
2022-03-31T10:54:03.000Z
src/jarvis/jarvis/skills/collection/remember.py
jameswynn/Python-ai-assistant
2acc2982350e8500e3fbd534b26bcdaa1c00a14b
[ "MIT" ]
40
2020-05-11T18:14:27.000Z
2022-03-20T14:26:55.000Z
src/jarvis/jarvis/skills/collection/remember.py
mdanisurrahmanrony/Python-ai-assistant
d519731478e809ca085b67de4eaf1d59cd0a64f5
[ "MIT" ]
164
2020-04-15T11:46:39.000Z
2022-03-31T14:28:20.000Z
# MIT License # Copyright (c) 2019 Georgios Papachristou # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify,...
41.486486
95
0.630945
a8ea590dba805a42688e0ba0bfb3a1410eed7819
1,977
py
Python
kubernetes/e2e_test/test_batch.py
pllsxyc/python
442ebc019056c2dc246be94f85cf61f1e1d26a88
[ "Apache-2.0" ]
2
2021-03-09T12:42:05.000Z
2021-03-09T13:27:50.000Z
kubernetes/e2e_test/test_batch.py
pllsxyc/python
442ebc019056c2dc246be94f85cf61f1e1d26a88
[ "Apache-2.0" ]
8
2020-10-28T01:18:36.000Z
2021-06-11T01:06:15.000Z
kubernetes/e2e_test/test_batch.py
pllsxyc/python
442ebc019056c2dc246be94f85cf61f1e1d26a88
[ "Apache-2.0" ]
1
2021-06-13T09:21:37.000Z
2021-06-13T09:21:37.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, softw...
33.508475
75
0.587759
a8ebb8c7ba04d8c8e2be86842c467f1340eb08b4
3,223
py
Python
ZZZ/DES/match_bliss.py
ivmfnal/striped
eef1a4d544fa1b97fde39d7ee5ef779071218891
[ "BSD-3-Clause" ]
1
2019-07-01T15:19:43.000Z
2019-07-01T15:19:43.000Z
ZZZ/DES/match_bliss.py
ivmfnal/striped
eef1a4d544fa1b97fde39d7ee5ef779071218891
[ "BSD-3-Clause" ]
null
null
null
ZZZ/DES/match_bliss.py
ivmfnal/striped
eef1a4d544fa1b97fde39d7ee5ef779071218891
[ "BSD-3-Clause" ]
1
2020-04-21T21:18:01.000Z
2020-04-21T21:18:01.000Z
from striped.common import Tracer T = Tracer() with T["run"]: with T["imports"]: from striped.job import SinglePointStripedSession as Session import numpy as np from numpy.lib.recfunctions import append_fields impor...
39.790123
131
0.501396
a8ebf8bbb141395df211d1beccebe31440e682f7
109
py
Python
chk.py
benhur98/GazeUI_RH3
3e633474bcb78ab30897692fbcb75c8ad1f5c92e
[ "MIT" ]
null
null
null
chk.py
benhur98/GazeUI_RH3
3e633474bcb78ab30897692fbcb75c8ad1f5c92e
[ "MIT" ]
null
null
null
chk.py
benhur98/GazeUI_RH3
3e633474bcb78ab30897692fbcb75c8ad1f5c92e
[ "MIT" ]
null
null
null
import numpy as np a=np.load("train-data-{}.npy".format(input())) while 1: print(a[int(input())][1])
21.8
47
0.605505
a8ec8c2dda24550165672ed485cf1f2b5ef00950
30
py
Python
python/orcreader/__init__.py
nqbao/python-orc-reader
c4d6a06851b12a309f485ef208c0d84e80b22f8b
[ "BSD-3-Clause" ]
15
2016-07-04T17:05:31.000Z
2020-06-28T02:15:49.000Z
python/orcreader/__init__.py
nqbao/python-orc-reader
c4d6a06851b12a309f485ef208c0d84e80b22f8b
[ "BSD-3-Clause" ]
3
2017-05-15T06:01:18.000Z
2018-04-18T21:14:17.000Z
python/orcreader/__init__.py
nqbao/python-orc-reader
c4d6a06851b12a309f485ef208c0d84e80b22f8b
[ "BSD-3-Clause" ]
6
2017-01-23T23:47:52.000Z
2018-11-01T17:43:40.000Z
from .reader import OrcReader
15
29
0.833333
a8ec95c8cb86838f72fe414c4922ade690fedb2c
4,509
py
Python
materials-downloader.py
goDoCer/imperial-computing-materials-downloader
7ab906d3b2720d1f7739c50908a367d4a6d3155e
[ "MIT" ]
10
2020-11-02T12:27:16.000Z
2020-12-23T05:31:03.000Z
materials-downloader.py
prnvbn/imperial-computing-materials-downloader
7ab906d3b2720d1f7739c50908a367d4a6d3155e
[ "MIT" ]
null
null
null
materials-downloader.py
prnvbn/imperial-computing-materials-downloader
7ab906d3b2720d1f7739c50908a367d4a6d3155e
[ "MIT" ]
null
null
null
import sys import os import json import subprocess import datetime as dt sys.path.insert(1, './lib') from config import * from webhelpers import * from argsparser import * from getpass import getpass from distutils.dir_util import remove_tree, copy_tree from selenium import webdriver from selenium.webdriver.chrome.op...
30.466216
88
0.569306
a8ed6afe97f49d0c92eeaeda111ff0c3ba602a10
16,551
py
Python
PoliCmm/src/parser.py
jutge-org/cpp2many
2d2fb1784f2515b3c1a1056e163640e556331766
[ "MIT" ]
4
2018-04-06T00:18:20.000Z
2021-10-11T20:25:38.000Z
PoliCmm/src/parser.py
jutge-org/cpp2many
2d2fb1784f2515b3c1a1056e163640e556331766
[ "MIT" ]
1
2019-02-27T17:04:43.000Z
2019-02-28T08:25:12.000Z
PoliCmm/src/parser.py
jutge-org/cpp2many
2d2fb1784f2515b3c1a1056e163640e556331766
[ "MIT" ]
4
2019-02-27T17:05:17.000Z
2021-03-12T10:36:04.000Z
import ply.lex as lex import ply.yacc as yacc import lexer import sys import ast tokens = lexer.tokens precedence = ( ('right', 'ELSE'), ) def p_start (t): '''start : program''' t[0] = t[1] def p_program_01 (t): '''program : program_part''' t[0] = ast.Program(t[1]) def p_program_02 (t): ...
21.921854
114
0.638995
a8eda53e827a5f782990a22fc39cd52fd4859e3a
6,530
py
Python
src/models/backbones/resnet.py
DIVA-DIA/DIVA-DAF
0ae3b873d04f1852d9053cb4cb2fbc7bda73471c
[ "MIT" ]
3
2022-02-10T17:35:41.000Z
2022-03-04T10:38:58.000Z
src/models/backbones/resnet.py
DIVA-DIA/DIVA-DAF
0ae3b873d04f1852d9053cb4cb2fbc7bda73471c
[ "MIT" ]
3
2022-02-02T09:12:18.000Z
2022-02-16T13:42:30.000Z
src/models/backbones/resnet.py
DIVA-DIA/DIVA-DAF
0ae3b873d04f1852d9053cb4cb2fbc7bda73471c
[ "MIT" ]
null
null
null
""" Model definition adapted from: https://github.com/pytorch/vision/blob/master/torchvision/models/resnet.py """ import math from typing import Optional, List, Union, Type import torch.nn as nn model_urls = { 'resnet18': 'https://download.pytorch.org/models/resnet18-5c106cde.pth', 'resnet34': 'https://downlo...
34.550265
114
0.606126
a8f137a79f39517bbee4123c05c0f4f0f49019c3
5,652
py
Python
feature_extraction.py
Tina-Rezaei/malware-detection-based-on-pe-header
f897f5b3e9ac8158ee4d7bf6a002cd7f1498f8f7
[ "MIT" ]
1
2020-11-15T18:43:07.000Z
2020-11-15T18:43:07.000Z
feature_extraction.py
Tina-Rezaei/malware-detection-based-on-pe-header
f897f5b3e9ac8158ee4d7bf6a002cd7f1498f8f7
[ "MIT" ]
null
null
null
feature_extraction.py
Tina-Rezaei/malware-detection-based-on-pe-header
f897f5b3e9ac8158ee4d7bf6a002cd7f1498f8f7
[ "MIT" ]
null
null
null
import os import pefile import time import re import click import subprocess data_directory_list = ['DIRECTORY_ENTRY_DEBUG', 'DIRECTORY_ENTRY_EXPORT', 'DIRECTORY_ENTRY_LOAD_CONFIG', 'DIRECTORY_ENTRY_RESOURCE', 'DIRECTORY_ENTRY_BASERELOC', 'DIRECTORY_ENTRY_TLS'] normal_section_names = ['.text',...
36.701299
111
0.548478
a8f190e009aea7f92f01038fb21a86895c98af57
18,148
py
Python
research/steve/toy_demo.py
jdavidagudelo/tensorflow-models
6f019beec73b01861363bf717706e27f4210b979
[ "Apache-2.0" ]
1
2021-05-17T01:42:29.000Z
2021-05-17T01:42:29.000Z
research/steve/toy_demo.py
jdavidagudelo/tensorflow-models
6f019beec73b01861363bf717706e27f4210b979
[ "Apache-2.0" ]
null
null
null
research/steve/toy_demo.py
jdavidagudelo/tensorflow-models
6f019beec73b01861363bf717706e27f4210b979
[ "Apache-2.0" ]
null
null
null
from __future__ import division from __future__ import print_function from builtins import range from past.utils import old_div # Copyright 2018 The TensorFlow Authors All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Licen...
40.782022
119
0.605356
a8f4b9efd55de6bdf846467727516214fa245f0e
7,112
py
Python
ldbs.py
Greg-Bernard/EloquaDataLoader
523aebb519758f086177cc4124508c0cda88610b
[ "MIT" ]
11
2018-02-02T03:02:17.000Z
2022-03-01T03:52:20.000Z
ldbs.py
Greg-Bernard/EloquaDataLoader
523aebb519758f086177cc4124508c0cda88610b
[ "MIT" ]
null
null
null
ldbs.py
Greg-Bernard/EloquaDataLoader
523aebb519758f086177cc4124508c0cda88610b
[ "MIT" ]
null
null
null
#!/usr/bin/python # ElqBulk scheduler by Greg Bernard import schedule import time from ElqBulk import ElqBulk from ElqRest import ElqRest import TableNames import geoip from closest_city import CityAppend def initialise_database(filename='EloquaDB.db'): """ Initialise entire database in one run """ ...
30.135593
121
0.695585
a8f537040119b192daaa8da6c2ebd5f6aff85c58
22,554
py
Python
test/FileTest.py
ytyaru/Python.File.Dir.Stat.20180402093000
f66e5eff603c62e24dd25f4aea034ce288059c66
[ "CC0-1.0" ]
null
null
null
test/FileTest.py
ytyaru/Python.File.Dir.Stat.20180402093000
f66e5eff603c62e24dd25f4aea034ce288059c66
[ "CC0-1.0" ]
null
null
null
test/FileTest.py
ytyaru/Python.File.Dir.Stat.20180402093000
f66e5eff603c62e24dd25f4aea034ce288059c66
[ "CC0-1.0" ]
null
null
null
import sys, os, os.path, pathlib print(pathlib.Path(__file__).parent.parent / 'src') sys.path.append(str(pathlib.Path(__file__).parent.parent / 'src')) from File import File from Directory import Directory import unittest import time, datetime if __name__ == '__main__': unittest.main()
41.689464
222
0.6202
a8f571492f94df0b230565b81e8284f0b4160ad7
1,994
py
Python
cogs/StatCollector.py
galaxyAbstractor/rvnBot
a013b92c924cc218811e801680bf7d4318406a4c
[ "MIT" ]
null
null
null
cogs/StatCollector.py
galaxyAbstractor/rvnBot
a013b92c924cc218811e801680bf7d4318406a4c
[ "MIT" ]
null
null
null
cogs/StatCollector.py
galaxyAbstractor/rvnBot
a013b92c924cc218811e801680bf7d4318406a4c
[ "MIT" ]
null
null
null
from discord import TextChannel from discord.ext import commands from stats import StatService from users import UserService
23.458824
56
0.654965
a8f671f7ebe45c7c676519c46355c82e84f18cea
1,369
py
Python
dredis/gc.py
keang/dredis
520b3c10a1cee6de9d0f73cd2c43298ce3f9598a
[ "MIT" ]
53
2018-09-19T15:19:09.000Z
2022-03-06T17:05:32.000Z
dredis/gc.py
keang/dredis
520b3c10a1cee6de9d0f73cd2c43298ce3f9598a
[ "MIT" ]
31
2018-09-19T16:45:46.000Z
2021-05-05T15:12:20.000Z
dredis/gc.py
keang/dredis
520b3c10a1cee6de9d0f73cd2c43298ce3f9598a
[ "MIT" ]
5
2018-09-19T16:42:25.000Z
2022-03-07T11:36:57.000Z
import threading import time from dredis.db import NUMBER_OF_REDIS_DATABASES, DB_MANAGER, KEY_CODEC DEFAULT_GC_INTERVAL = 500 # milliseconds DEFAULT_GC_BATCH_SIZE = 10000 # number of storage keys to delete in a batch
35.102564
90
0.65084
a8f6ec64b56c58fb68898e4ec50ed4fb8d84702a
431
py
Python
week08/states_utils.py
thashmadech/is445_spring2022
034f71ca545bf06fb2491d818ceb3f8dd6bba8b7
[ "BSD-3-Clause" ]
1
2019-08-11T04:03:24.000Z
2019-08-11T04:03:24.000Z
week08/states_utils.py
thashmadech/is445_spring2022
034f71ca545bf06fb2491d818ceb3f8dd6bba8b7
[ "BSD-3-Clause" ]
1
2020-03-02T00:11:33.000Z
2020-03-02T00:11:33.000Z
week08/states_utils.py
thashmadech/is445_spring2022
034f71ca545bf06fb2491d818ceb3f8dd6bba8b7
[ "BSD-3-Clause" ]
5
2022-01-30T19:45:48.000Z
2022-03-07T04:15:37.000Z
import numpy as np
39.181818
77
0.663573
a8fb94dedf1844c0d8c37c6a506f33161aed70db
464
py
Python
1005.py
TheLurkingCat/TIOJ
077e1cd22239d8f6bc1cd7561f27c68143e80263
[ "MIT" ]
1
2018-10-21T10:03:42.000Z
2018-10-21T10:03:42.000Z
1005.py
TheLurkingCat/TIOJ
077e1cd22239d8f6bc1cd7561f27c68143e80263
[ "MIT" ]
null
null
null
1005.py
TheLurkingCat/TIOJ
077e1cd22239d8f6bc1cd7561f27c68143e80263
[ "MIT" ]
2
2018-10-12T16:40:11.000Z
2021-04-05T12:05:36.000Z
from itertools import combinations from math import gcd, sqrt a = int(input()) while a: s = set() total = 0 coprime = 0 for _ in range(a): s.add(int(input())) for (x, y) in combinations(list(s), 2): total += 1 if gcd(x, y) == 1: coprime += 1 try: print...
24.421053
57
0.538793
a8fbf8ce338a6262976301ea199c5ca131183f5f
49
py
Python
reloader/__init__.py
gerardroche/AutomaticPackageReloader
e90c22a50f6bfb195394cc6eedab0e7977a0011d
[ "MIT" ]
30
2017-03-05T12:28:31.000Z
2022-03-23T11:32:23.000Z
reloader/__init__.py
gerardroche/AutomaticPackageReloader
e90c22a50f6bfb195394cc6eedab0e7977a0011d
[ "MIT" ]
34
2017-03-14T05:59:58.000Z
2021-08-24T16:25:05.000Z
reloader/__init__.py
randy3k/PackageReloader
1255fcb0bc8effb66956e2240c42b7ae10615860
[ "MIT" ]
16
2017-03-09T12:03:21.000Z
2019-10-18T08:19:37.000Z
from .reloader import reload_package, load_dummy
24.5
48
0.857143
a8fc954825cc770935a579719186567eddd9a42d
1,899
py
Python
tests/bugs/core_2361_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/bugs/core_2361_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/bugs/core_2361_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
#coding:utf-8 # # id: bugs.core_2361 # title: String truncation reading 8859-1 Spanish column using isc_dsql_fetch with UTF-8 connection.. # decription: # tracker_id: CORE-2361 # min_versions: [] # versions: 3.0 # qmid: None import pytest from firebird.qa import db_factory, isql_act, ...
27.128571
126
0.674039
a8fcc6ac8aab4f48607db30ce376a669495d6728
229
py
Python
lorem/data.py
Ahsoka/python-lorem
5252a5819fcdf87955794a4f1d06284d152e2c8a
[ "MIT" ]
21
2016-06-16T22:33:40.000Z
2022-03-13T22:56:39.000Z
lorem/data.py
Ahsoka/python-lorem
5252a5819fcdf87955794a4f1d06284d152e2c8a
[ "MIT" ]
null
null
null
lorem/data.py
Ahsoka/python-lorem
5252a5819fcdf87955794a4f1d06284d152e2c8a
[ "MIT" ]
10
2017-02-09T14:33:02.000Z
2021-08-07T15:02:04.000Z
WORDS = ("adipisci aliquam amet consectetur dolor dolore dolorem eius est et" "incidunt ipsum labore magnam modi neque non numquam porro quaerat qui" "quia quisquam sed sit tempora ut velit voluptatem").split()
57.25
80
0.733624
a8fdf92716ffae4bc0c6399c929dc082d01dc0eb
886
py
Python
motto/readers.py
attakei/jamproject
f3a677f4f95c112b89fb38957e6ba1a3c923ea85
[ "Apache-2.0" ]
null
null
null
motto/readers.py
attakei/jamproject
f3a677f4f95c112b89fb38957e6ba1a3c923ea85
[ "Apache-2.0" ]
1
2020-01-05T14:04:35.000Z
2020-01-05T14:04:35.000Z
motto/readers.py
attakei/motto
f3a677f4f95c112b89fb38957e6ba1a3c923ea85
[ "Apache-2.0" ]
null
null
null
"""Core custom readers for docutils """ from typing import List, Type from docutils import readers from docutils.transforms import Transform from .skill import SkillBase from .transforms import InitializeReportTransform, TokenizeTransform
27.6875
68
0.694131
d100ae3537b01cb4189c0cbb205089a37a69ed98
14,136
py
Python
flybrainlab/utilities/neurometry.py
FlyBrainLab/FBLClient
c85de23d428a38fe13491b2f5eb30b690610108e
[ "BSD-3-Clause" ]
3
2020-07-23T05:51:22.000Z
2021-12-24T11:40:30.000Z
flybrainlab/utilities/neurometry.py
FlyBrainLab/FBLClient
c85de23d428a38fe13491b2f5eb30b690610108e
[ "BSD-3-Clause" ]
3
2020-07-31T05:08:35.000Z
2021-01-08T17:55:16.000Z
flybrainlab/utilities/neurometry.py
FlyBrainLab/FBLClient
c85de23d428a38fe13491b2f5eb30b690610108e
[ "BSD-3-Clause" ]
1
2019-02-03T02:03:00.000Z
2019-02-03T02:03:00.000Z
import pandas as pd import numpy as np from scipy.spatial.distance import pdist from sklearn.metrics import pairwise_distances import networkx as nx def generate_neuron_stats(_input, scale = 'mum', scale_coefficient = 1., log=False): """Generates statistics for a given neuron. # Arguments: _input ...
44.037383
286
0.599392