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
20edfabbb18d57e5b8c63c2383e738c3f3549841
27,895
py
Python
LinearRegression-GradientDescent/GradientDescent.py
saurabbhsp/machineLearning
e468854b57c8de6e80bc397bde6f1c71ee50d495
[ "Apache-2.0" ]
3
2017-12-01T16:57:03.000Z
2021-01-08T08:30:12.000Z
LinearRegression-GradientDescent/GradientDescent.py
saurabbhsp/machineLearning
e468854b57c8de6e80bc397bde6f1c71ee50d495
[ "Apache-2.0" ]
null
null
null
LinearRegression-GradientDescent/GradientDescent.py
saurabbhsp/machineLearning
e468854b57c8de6e80bc397bde6f1c71ee50d495
[ "Apache-2.0" ]
6
2019-07-05T12:27:36.000Z
2022-01-25T11:52:21.000Z
# coding: utf-8 # In[1]: get_ipython().run_cell_magic('javascript', '', '<!-- Ignore this block -->\nIPython.OutputArea.prototype._should_scroll = function(lines) {\n return false;\n}') # # Data preprocessing # 1. convert any non-numeric values to numeric values. # 2. If required drop out the rows with missi...
29.834225
307
0.650511
20ee1c58d70a8362de03cea2a5994ea2c4f42549
626
py
Python
src/pagure/validators.py
yifengyou/learn-pagure
e54ba955368918c92ad2be6347b53bb2c24a228c
[ "Unlicense" ]
null
null
null
src/pagure/validators.py
yifengyou/learn-pagure
e54ba955368918c92ad2be6347b53bb2c24a228c
[ "Unlicense" ]
null
null
null
src/pagure/validators.py
yifengyou/learn-pagure
e54ba955368918c92ad2be6347b53bb2c24a228c
[ "Unlicense" ]
null
null
null
import re import six from wtforms import validators
28.454545
72
0.591054
20ef0d8c7ddd5cae1764648c947491c9f4c7cb34
10,524
py
Python
code/vendor/node_js2c.py
thorium-cfx/fivem
587eb7c12066a2ebf8631bde7bb39ee2df1b5a0c
[ "MIT" ]
5,411
2017-04-14T08:57:56.000Z
2022-03-30T19:35:15.000Z
code/vendor/node_js2c.py
thorium-cfx/fivem
587eb7c12066a2ebf8631bde7bb39ee2df1b5a0c
[ "MIT" ]
802
2017-04-21T14:18:36.000Z
2022-03-31T21:20:48.000Z
code/vendor/node_js2c.py
thorium-cfx/fivem
587eb7c12066a2ebf8631bde7bb39ee2df1b5a0c
[ "MIT" ]
2,011
2017-04-14T09:44:15.000Z
2022-03-31T15:40:39.000Z
import os import subprocess import sys inputs = [ 'lib/assert/strict.js', 'lib/assert.js', 'lib/async_hooks.js', 'lib/buffer.js', 'lib/child_process.js', 'lib/cluster.js', 'lib/console.js', 'lib/constants.js', 'lib/crypto.js', 'lib/dgram.js', 'lib/diagnostics_channel.js', 'lib/dns/promises.js', ...
32.481481
155
0.711612
45465c3ae216f2ba2ed2de99dd3ca07f116d36fd
1,982
py
Python
docs/util.py
simplebutneeded/python-measurement
b14f954fc74424ed3b1c9780e089cd91c19be45c
[ "MIT" ]
null
null
null
docs/util.py
simplebutneeded/python-measurement
b14f954fc74424ed3b1c9780e089cd91c19be45c
[ "MIT" ]
null
null
null
docs/util.py
simplebutneeded/python-measurement
b14f954fc74424ed3b1c9780e089cd91c19be45c
[ "MIT" ]
2
2016-09-15T18:36:33.000Z
2019-07-17T17:39:23.000Z
from __future__ import print_function from measurement.base import MeasureBase, BidimensionalMeasure from measurement.utils import get_all_measures for measure in get_all_measures(): classname = measure.__name__ print(classname) print('-' * len(classname)) print() if issubclass(measure, MeasureBas...
36.703704
78
0.55449
45472a59e3945cb5ab443cb81e44f1ea2ad25391
3,006
py
Python
gibson2/core/render/mesh_renderer/mesh_renderer_tensor.py
myalfred03/GibsonEnvV2
9dfc340d85e167983df7abfd7425d4ba78ab8524
[ "MIT" ]
null
null
null
gibson2/core/render/mesh_renderer/mesh_renderer_tensor.py
myalfred03/GibsonEnvV2
9dfc340d85e167983df7abfd7425d4ba78ab8524
[ "MIT" ]
null
null
null
gibson2/core/render/mesh_renderer/mesh_renderer_tensor.py
myalfred03/GibsonEnvV2
9dfc340d85e167983df7abfd7425d4ba78ab8524
[ "MIT" ]
null
null
null
import cv2 import sys import numpy as np from gibson2.core.render.mesh_renderer.mesh_renderer_cpu import MeshRenderer, GL import torch from gibson2.core.render.mesh_renderer.get_available_devices import get_cuda_device
47.714286
120
0.625083
4547e6bcdb29f652198235c9fc8271e10d92d051
117
py
Python
BasicConcepts/SyntaxErrors/Volume1_Chapter6_SyntaxErrors_Fixed.py
jpike/PythonProgrammingForKids
79a36d6db525d39f78e33b6f7b2d0da0d65a073c
[ "Unlicense" ]
null
null
null
BasicConcepts/SyntaxErrors/Volume1_Chapter6_SyntaxErrors_Fixed.py
jpike/PythonProgrammingForKids
79a36d6db525d39f78e33b6f7b2d0da0d65a073c
[ "Unlicense" ]
null
null
null
BasicConcepts/SyntaxErrors/Volume1_Chapter6_SyntaxErrors_Fixed.py
jpike/PythonProgrammingForKids
79a36d6db525d39f78e33b6f7b2d0da0d65a073c
[ "Unlicense" ]
null
null
null
# Commenting syntax errors. print("Printing out a message!") # This is a comment. floating_point_number = 1.5 * 2.7
29.25
54
0.726496
454862ed0335535e0622f4cd4d4b3040600274f8
254
py
Python
setup.py
piotrmaslanka/python-cassandra-jaeger
961a33955e54a84348d97a5e0b0985a3850ee1ad
[ "MIT" ]
null
null
null
setup.py
piotrmaslanka/python-cassandra-jaeger
961a33955e54a84348d97a5e0b0985a3850ee1ad
[ "MIT" ]
null
null
null
setup.py
piotrmaslanka/python-cassandra-jaeger
961a33955e54a84348d97a5e0b0985a3850ee1ad
[ "MIT" ]
null
null
null
#!/usr/bin/env python from distutils.core import setup from setuptools import find_packages import python_cassandra_jaeger setup(version=python_cassandra_jaeger.__version__, packages=find_packages(include=['python_cassandra_jaeger']), )
19.538462
66
0.795276
4549bd855bffd1eea443aa41d7d9077471e5b107
6,544
py
Python
demultiplexer/demultiplexing.py
DominikBuchner/demultiplexer
f707bf4deaff9929a5778a5a4501966e8fd5a0b8
[ "MIT" ]
null
null
null
demultiplexer/demultiplexing.py
DominikBuchner/demultiplexer
f707bf4deaff9929a5778a5a4501966e8fd5a0b8
[ "MIT" ]
1
2021-01-05T14:28:26.000Z
2021-01-05T14:28:26.000Z
demultiplexer/demultiplexing.py
DominikBuchner/demultiplexer
f707bf4deaff9929a5778a5a4501966e8fd5a0b8
[ "MIT" ]
null
null
null
import openpyxl, gzip, datetime, psutil, time from Bio.Data.IUPACData import ambiguous_dna_values from itertools import product from Bio.SeqIO.QualityIO import FastqGeneralIterator from pathlib import Path from joblib import Parallel, delayed def extend_ambiguous_dna(seq): """return list of all possible sequences g...
49.203008
218
0.687347
454e58f16798ed0377b73359904d93ec690b6f7f
1,908
py
Python
test.py
rapidrabbit76/PaintsTensorFlow
a26de880dc43c915f3552b58e01a4314847fd58a
[ "MIT" ]
63
2019-01-03T02:00:33.000Z
2022-03-23T03:56:24.000Z
test.py
rapidrabbit76/PaintsTensorFlow
a26de880dc43c915f3552b58e01a4314847fd58a
[ "MIT" ]
24
2019-02-13T09:04:19.000Z
2022-03-26T16:57:07.000Z
test.py
rapidrabbit76/PaintsTensorFlow
a26de880dc43c915f3552b58e01a4314847fd58a
[ "MIT" ]
10
2019-01-14T13:11:52.000Z
2021-07-07T13:17:59.000Z
import tensorflow as tf import numpy as np import cv2 from dataset.Datasets import Datasets_512 import utils __DRAFT_MODEL_PATH__ = "./GUI/src/saved_model/PaintsTensorFlowDraftModel" __MODEL_PATH__ = "./GUI//src/saved_model/PaintsTensorFlowModel" if __name__ == '__main__': test = PaintsTensorflowTest() test...
34.071429
92
0.645178
454f908f7e41a06c5a4c9549749b050cd2e1d924
8,027
py
Python
ipython/attachments/Weave/iterators_example.py
cassiasamp/scipy-cookbook
67c120be33302554edfd7fe7962f3e2773109021
[ "BSD-3-Clause" ]
408
2016-05-26T04:17:59.000Z
2022-03-18T09:19:59.000Z
ipython/attachments/Weave/iterators_example.py
cassiasamp/scipy-cookbook
67c120be33302554edfd7fe7962f3e2773109021
[ "BSD-3-Clause" ]
25
2016-08-28T22:20:53.000Z
2021-11-08T16:37:00.000Z
ipython/attachments/Weave/iterators_example.py
cassiasamp/scipy-cookbook
67c120be33302554edfd7fe7962f3e2773109021
[ "BSD-3-Clause" ]
185
2016-06-05T03:27:49.000Z
2022-01-28T21:14:02.000Z
#!/usr/bin/env python import sys import numpy as npy import pylab as P from scipy.weave import inline, converters, blitz from scipy.testing import measure # Blitz conversion is terrific, but sometimes you don't have fixed array sizes # in your problem. Fortunately numpy iterators still make writing inline # weave code ...
38.22381
109
0.628005
4550a583d75dd1b434a2910f8dcc72c96ed5f8f1
16,579
py
Python
object_detection2/data/transforms/autoaugment.py
vghost2008/wml
d0c5a1da6c228e321ae59a563e9ac84aa66266ff
[ "MIT" ]
6
2019-12-10T17:18:56.000Z
2022-03-01T01:00:35.000Z
object_detection2/data/transforms/autoaugment.py
vghost2008/wml
d0c5a1da6c228e321ae59a563e9ac84aa66266ff
[ "MIT" ]
2
2021-08-25T16:16:01.000Z
2022-02-10T05:21:19.000Z
object_detection2/data/transforms/autoaugment.py
vghost2008/wml
d0c5a1da6c228e321ae59a563e9ac84aa66266ff
[ "MIT" ]
2
2019-12-07T09:57:35.000Z
2021-09-06T04:58:10.000Z
#coding=utf-8 import tensorflow as tf import tfop contrib_image = tf.contrib.image def blend(image1, image2, factor): """Blend image1 and image2 using 'factor'. Factor can be above 0.0. A value of 0.0 means only image1 is used. A value of 1.0 means only image2 is used. A value between 0.0 and 1.0 means we ...
36.598234
89
0.690633
4552fee979b85fce4dbf6d9c63c69fdf894b4a54
1,693
py
Python
selco/selco/doctype/cash_payment_entry/cash_payment_entry.py
codingCoffee/selco_v2
276b62ac3f904bdc3b4ddf92882fd0bb318c5a35
[ "MIT" ]
null
null
null
selco/selco/doctype/cash_payment_entry/cash_payment_entry.py
codingCoffee/selco_v2
276b62ac3f904bdc3b4ddf92882fd0bb318c5a35
[ "MIT" ]
111
2018-04-26T13:14:09.000Z
2018-08-04T05:54:48.000Z
selco/selco/doctype/cash_payment_entry/cash_payment_entry.py
codingCoffee/selco_v2
276b62ac3f904bdc3b4ddf92882fd0bb318c5a35
[ "MIT" ]
5
2018-02-08T13:34:03.000Z
2021-07-20T10:03:06.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2017, SELCO and contributors # For license information, please see license.txt # -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe fr...
38.477273
111
0.642056
45559cb2010dc718a647583ca7727ca07bebe64f
2,494
py
Python
feedback-Python/models.py
gforghieri/code-demo
7e4faf9d1411d073af360c78387db3f58ea45cf1
[ "MIT" ]
null
null
null
feedback-Python/models.py
gforghieri/code-demo
7e4faf9d1411d073af360c78387db3f58ea45cf1
[ "MIT" ]
null
null
null
feedback-Python/models.py
gforghieri/code-demo
7e4faf9d1411d073af360c78387db3f58ea45cf1
[ "MIT" ]
null
null
null
from django.db import models from django.utils.translation import ugettext_lazy as _
36.676471
105
0.716119
455976b188c8965e37899317a939f416893472f4
727
py
Python
jupyterhub_client/tests/test_async.py
minrk/jupyterhub-client
99b856e81925690d5546fd8457a6e333fb709513
[ "BSD-2-Clause" ]
2
2017-04-06T20:28:31.000Z
2020-03-20T06:51:21.000Z
jupyterhub_client/tests/test_async.py
minrk/jupyterhub-client
99b856e81925690d5546fd8457a6e333fb709513
[ "BSD-2-Clause" ]
2
2017-04-10T09:30:20.000Z
2018-11-22T16:30:03.000Z
jupyterhub_client/tests/test_async.py
minrk/jupyterhub-client
99b856e81925690d5546fd8457a6e333fb709513
[ "BSD-2-Clause" ]
8
2017-04-06T20:28:38.000Z
2021-04-01T13:39:13.000Z
from pytest import fixture from tornado import gen from tornado.ioloop import IOLoop from .conftest import TOKEN from ..async import AsyncJupyterHubClient
24.233333
78
0.696011
4559e964e50001ba3247b35781b62b682a586366
2,247
py
Python
app/ml.py
JeffreyAsuncion/fastapi_test
384a4bbb5fd283f55f34cd036905d9fb8d3314ab
[ "MIT" ]
null
null
null
app/ml.py
JeffreyAsuncion/fastapi_test
384a4bbb5fd283f55f34cd036905d9fb8d3314ab
[ "MIT" ]
null
null
null
app/ml.py
JeffreyAsuncion/fastapi_test
384a4bbb5fd283f55f34cd036905d9fb8d3314ab
[ "MIT" ]
null
null
null
"""Machine learning functions""" from fastapi import APIRouter from sklearn.neighbors import NearestNeighbors import pandas as pd from joblib import load import pickle from app.city_state_json import city_state_2_id_num router = APIRouter() # filename = 'app/recommend/recommendation_model.sav' # model_file = open(f...
29.565789
82
0.581219
455a32504d4c9286e9e3a194024362339d3c0c0a
2,431
py
Python
worker/server.py
OmarZOS/remote-extraction-proxy-and-worker
739466a0df588d7eb5b1dae9666ceb8c7a25e928
[ "MIT" ]
null
null
null
worker/server.py
OmarZOS/remote-extraction-proxy-and-worker
739466a0df588d7eb5b1dae9666ceb8c7a25e928
[ "MIT" ]
10
2022-03-17T23:23:18.000Z
2022-03-18T00:15:11.000Z
worker/server.py
OmarZOS/remote-extraction-proxy-and-worker
739466a0df588d7eb5b1dae9666ceb8c7a25e928
[ "MIT" ]
1
2022-03-24T23:56:46.000Z
2022-03-24T23:56:46.000Z
import json from xmlrpc.server import SimpleXMLRPCServer from xmlrpc.server import SimpleXMLRPCRequestHandler from multiprocessing import Process import xmlrpc.client from locator import locator from constants import * from functions import * import os import constants current_tasks = [{"id":1}] print("Serving somew...
34.239437
88
0.712875
455a510ca3f33288b1e82aa99f9b204ab68b6807
3,972
py
Python
get_player.py
jason-sa/baseball_lin_regression
936535693f00b28d17b2b901144dcba8bce45ab9
[ "MIT" ]
null
null
null
get_player.py
jason-sa/baseball_lin_regression
936535693f00b28d17b2b901144dcba8bce45ab9
[ "MIT" ]
null
null
null
get_player.py
jason-sa/baseball_lin_regression
936535693f00b28d17b2b901144dcba8bce45ab9
[ "MIT" ]
null
null
null
''' Script to loop through all baseballrefernce.com pages and store the HTML in data frames ''' import numpy as np import pandas as pd from bs4 import BeautifulSoup from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.common.exceptions import TimeoutException import requests imp...
34.241379
117
0.659366
455a83cc696af95c9057d25a2138c7ac1f9ece53
1,621
py
Python
src/puzzle_1_you_will_all_conform/site/line-exercise1.py
foryourselfand/mit_6_S095_programming_for_the_puzzled
88371bd8461709011acbed6066ac4f40c5cde29e
[ "MIT" ]
null
null
null
src/puzzle_1_you_will_all_conform/site/line-exercise1.py
foryourselfand/mit_6_S095_programming_for_the_puzzled
88371bd8461709011acbed6066ac4f40c5cde29e
[ "MIT" ]
null
null
null
src/puzzle_1_you_will_all_conform/site/line-exercise1.py
foryourselfand/mit_6_S095_programming_for_the_puzzled
88371bd8461709011acbed6066ac4f40c5cde29e
[ "MIT" ]
null
null
null
# Programming for the Puzzled -- Srini Devadas # You Will All Conform # Input is a vector of F's and B's, in terms of forwards and backwards caps # Output is a set of commands (printed out) to get either all F's or all B's # Fewest commands are the goal caps = ['F', 'F', 'B', 'B', 'B', 'F', 'B', 'B', 'B', 'F', 'F', 'B...
30.018519
86
0.526218
455b9271ec975980f2d05b9d2d018c5d0532f369
515
py
Python
python3/python-tk/tk_busybar_demo.py
cgoldberg/corey-projects
5e6ca9fd02f00a8e44692eed68234a12cf2d5bca
[ "WTFPL" ]
null
null
null
python3/python-tk/tk_busybar_demo.py
cgoldberg/corey-projects
5e6ca9fd02f00a8e44692eed68234a12cf2d5bca
[ "WTFPL" ]
null
null
null
python3/python-tk/tk_busybar_demo.py
cgoldberg/corey-projects
5e6ca9fd02f00a8e44692eed68234a12cf2d5bca
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python # Python 3 # Corey Goldberg - 2009 import tkinter from tkinter import ttk import BusyBar if __name__ == '__main__': root = tkinter.Tk() Application(root) root.mainloop()
20.6
59
0.582524
455c8ff0c603475739ee650d803fb990973e2d71
115
py
Python
abc110_c.py
hythof/atc
12cb94ebe693e1f469ce0d982bc2924b586552cd
[ "CC0-1.0" ]
null
null
null
abc110_c.py
hythof/atc
12cb94ebe693e1f469ce0d982bc2924b586552cd
[ "CC0-1.0" ]
null
null
null
abc110_c.py
hythof/atc
12cb94ebe693e1f469ce0d982bc2924b586552cd
[ "CC0-1.0" ]
null
null
null
s=input() t=input() ss=sorted(map(s.count,set(s))) tt=sorted(map(t.count,set(t))) print('Yes' if ss==tt else 'No')
19.166667
32
0.643478
455c9467c943ec1ae7bba780b8f13a898da0c074
1,547
py
Python
app/schema/item.py
qateam123/eq
704757952323647d659c49a71975c56406ff4047
[ "MIT" ]
null
null
null
app/schema/item.py
qateam123/eq
704757952323647d659c49a71975c56406ff4047
[ "MIT" ]
8
2020-03-24T15:24:18.000Z
2022-03-02T04:32:56.000Z
app/schema/item.py
qateam123/eq
704757952323647d659c49a71975c56406ff4047
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod from app.questionnaire_state.exceptions import StateException
32.914894
106
0.630252
455d83d3700365dc3ad6599f1d91ada671e96df4
378
py
Python
scripts/get_alignments.py
kant/transition-amr-parser
b450b8cf0ddb7cc475f70d0bf46d80ab186a2f7d
[ "Apache-2.0" ]
1
2021-07-08T08:24:21.000Z
2021-07-08T08:24:21.000Z
scripts/get_alignments.py
kant/transition-amr-parser
b450b8cf0ddb7cc475f70d0bf46d80ab186a2f7d
[ "Apache-2.0" ]
null
null
null
scripts/get_alignments.py
kant/transition-amr-parser
b450b8cf0ddb7cc475f70d0bf46d80ab186a2f7d
[ "Apache-2.0" ]
1
2020-07-30T10:12:33.000Z
2020-07-30T10:12:33.000Z
import sys from amr import JAMR_CorpusReader if __name__ == '__main__': args = sys.argv infile = args[1] cr = JAMR_CorpusReader() cr.load_amrs(infile) gold_amrs = cr.amrs for sentidx, amr in enumerate(gold_amrs): for n in amr.alignments: print(str(sentidx)+'\t'+n+'\t'+','...
22.235294
87
0.616402
455ec14366cbca1ad699f01e8d919c9468857541
126
py
Python
setup.py
HDembinski/bibtools
1dcc9b2ad19c11e01848a2d9a26bcad7f20e9141
[ "BSD-3-Clause" ]
null
null
null
setup.py
HDembinski/bibtools
1dcc9b2ad19c11e01848a2d9a26bcad7f20e9141
[ "BSD-3-Clause" ]
null
null
null
setup.py
HDembinski/bibtools
1dcc9b2ad19c11e01848a2d9a26bcad7f20e9141
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup from glob import glob setup( name='bibtools', version='0.0.1', scripts=glob('src/*.py'), )
15.75
28
0.68254
455ec713befd7532c83b45583b4e08a6cd8de1bc
70
py
Python
src/prodis/packets/handshaking/__init__.py
blubberdiblub/prodis
c70d31b7df0358edd8969e9a94341b3771ee2e0f
[ "MIT" ]
null
null
null
src/prodis/packets/handshaking/__init__.py
blubberdiblub/prodis
c70d31b7df0358edd8969e9a94341b3771ee2e0f
[ "MIT" ]
null
null
null
src/prodis/packets/handshaking/__init__.py
blubberdiblub/prodis
c70d31b7df0358edd8969e9a94341b3771ee2e0f
[ "MIT" ]
null
null
null
#!/usr/bin/env python from .serverbound import Packet as ServerBound
17.5
46
0.785714
45615865d28df52f0bed3733b2d9feada286ab25
572
py
Python
send.py
EmelyanenkoK/freeton_scheduler
8fd88d09e95e7ce48923efc48e22f2068705a72a
[ "MIT" ]
null
null
null
send.py
EmelyanenkoK/freeton_scheduler
8fd88d09e95e7ce48923efc48e22f2068705a72a
[ "MIT" ]
null
null
null
send.py
EmelyanenkoK/freeton_scheduler
8fd88d09e95e7ce48923efc48e22f2068705a72a
[ "MIT" ]
2
2021-08-30T15:05:53.000Z
2022-02-20T20:11:12.000Z
import sys from graphqlclient import GraphQLClient from random import randint import codecs, json client = GraphQLClient("https://net.ton.dev/graphql") mutation_template = ''' mutation { postRequests(requests:[{id:"%(request_id)s",body:"%(base64_boc)s",expireAt:2e12}]) } ''' with open(sys.argv[1], "rb+") as f: ...
27.238095
127
0.702797
456204f6871f6eb8dedf973fadca394db0e5504c
87
py
Python
scripts/exercicios/ex025.py
RuanBarretodosSantos/python
4142ccd71c4ffb4bb6a10d61c85f612758f5bb41
[ "MIT" ]
null
null
null
scripts/exercicios/ex025.py
RuanBarretodosSantos/python
4142ccd71c4ffb4bb6a10d61c85f612758f5bb41
[ "MIT" ]
null
null
null
scripts/exercicios/ex025.py
RuanBarretodosSantos/python
4142ccd71c4ffb4bb6a10d61c85f612758f5bb41
[ "MIT" ]
null
null
null
nome = str(input('Digite seu nome: ')).strip() cap = nome.title() print('Silva' in cap)
29
46
0.655172
45633fd4e855086655acb3712ae36101ef73aca3
1,097
py
Python
tests/test_tokenizer.py
AlessandroVol23/DEMorphy
a19532a21ac0ce7334ba3203274dc28ba95075d3
[ "MIT" ]
43
2018-03-07T11:05:00.000Z
2022-01-28T06:44:01.000Z
tests/test_tokenizer.py
AlessandroVol23/DEMorphy
a19532a21ac0ce7334ba3203274dc28ba95075d3
[ "MIT" ]
6
2018-04-06T09:40:32.000Z
2019-12-30T08:08:57.000Z
tests/test_tokenizer.py
AlessandroVol23/DEMorphy
a19532a21ac0ce7334ba3203274dc28ba95075d3
[ "MIT" ]
13
2018-03-20T09:22:53.000Z
2021-11-12T13:33:23.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import pytest from demorphy.tokenizer import tokenize
43.88
142
0.64722
45639632859da23d700860306c51ed0f2069eeb3
7,995
py
Python
pandalog/cmd.py
bitpanda-labs/pandalog
3c2df6bcc8afe20de6a1e9ef8faa560cd6ee03d1
[ "BSD-3-Clause" ]
null
null
null
pandalog/cmd.py
bitpanda-labs/pandalog
3c2df6bcc8afe20de6a1e9ef8faa560cd6ee03d1
[ "BSD-3-Clause" ]
null
null
null
pandalog/cmd.py
bitpanda-labs/pandalog
3c2df6bcc8afe20de6a1e9ef8faa560cd6ee03d1
[ "BSD-3-Clause" ]
null
null
null
"""Pandalog collection of entrypoint scripts Scripts: - pandalog - pandalog-auth To install the collection, use either one of the following options: 1) Build the Dockerfile and run the application 2) Run "python3 setup.py install" The scripts are installed as executable binaries under /usr/local/bin. It is always ...
30.515267
76
0.572358
45644252af580ad3b26baf06271591b906d31ba9
2,803
py
Python
disaster_recovery/actions/views.py
openstack/freezer-web-ui
ed5462edace65a69667e1f2f42cce343cc5bbeea
[ "Apache-2.0" ]
32
2015-10-18T02:53:48.000Z
2022-03-10T23:41:18.000Z
disaster_recovery/actions/views.py
stackforge/freezer-web-ui
722ae8a051762bbd5e8bdede691d55b0c74bb1b4
[ "Apache-2.0" ]
1
2018-01-10T03:59:48.000Z
2018-01-10T03:59:48.000Z
disaster_recovery/actions/views.py
stackforge/freezer-web-ui
722ae8a051762bbd5e8bdede691d55b0c74bb1b4
[ "Apache-2.0" ]
12
2015-12-11T10:09:07.000Z
2021-01-05T13:35:12.000Z
# 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 # distributed under the ...
37.878378
76
0.696397
45650bfff480eaae33caf9f4aae1e7c37cec59e0
507
py
Python
osf_oauth2_adapter/apps.py
enrobyn/lookit-api
621fbb8b25100a21fd94721d39003b5d4f651dc5
[ "MIT" ]
null
null
null
osf_oauth2_adapter/apps.py
enrobyn/lookit-api
621fbb8b25100a21fd94721d39003b5d4f651dc5
[ "MIT" ]
null
null
null
osf_oauth2_adapter/apps.py
enrobyn/lookit-api
621fbb8b25100a21fd94721d39003b5d4f651dc5
[ "MIT" ]
null
null
null
import os from django.apps import AppConfig
39
110
0.704142
4565a962599f606102d9b2cb87ed6c04a795800f
3,040
py
Python
wiktionarifier/scrape/core.py
lgessler/wiktionarifier
7359a946f2dcef08455f9e552d6a1e3875beed63
[ "MIT" ]
1
2021-02-25T16:22:47.000Z
2021-02-25T16:22:47.000Z
wiktionarifier/scrape/core.py
lgessler/wiktionarifier
7359a946f2dcef08455f9e552d6a1e3875beed63
[ "MIT" ]
null
null
null
wiktionarifier/scrape/core.py
lgessler/wiktionarifier
7359a946f2dcef08455f9e552d6a1e3875beed63
[ "MIT" ]
null
null
null
import os import requests as R import click import wiktionarifier.scrape.db as db
35.348837
101
0.653289
4566f1df5335aa685d6a7563d2d07326d10dd71f
911
py
Python
melange/event_serializer.py
Rydra/melange
5de67dd4eab506353ea05f30df6d250997e3c97f
[ "MIT" ]
7
2017-11-22T15:52:46.000Z
2022-01-17T23:01:24.000Z
melange/event_serializer.py
Rydra/melange
5de67dd4eab506353ea05f30df6d250997e3c97f
[ "MIT" ]
1
2017-11-30T16:13:52.000Z
2019-02-12T14:51:54.000Z
melange/event_serializer.py
Rydra/melange
5de67dd4eab506353ea05f30df6d250997e3c97f
[ "MIT" ]
3
2017-11-15T16:34:20.000Z
2022-01-24T11:05:54.000Z
import json from typing import Generic, Dict, Optional from melange.helpers.typing import T
25.305556
87
0.641054
45712dc508f41385cf0cbd9c2e96f1445b5789c9
163
py
Python
utils/decorators/__init__.py
jemand2001/python-utils
652d3998cb272530e42100ae844178ad7a092c8c
[ "MIT" ]
null
null
null
utils/decorators/__init__.py
jemand2001/python-utils
652d3998cb272530e42100ae844178ad7a092c8c
[ "MIT" ]
null
null
null
utils/decorators/__init__.py
jemand2001/python-utils
652d3998cb272530e42100ae844178ad7a092c8c
[ "MIT" ]
null
null
null
from .strict import (strict) from .overload import (overload) from .template import (template) from .convert import (convert) from .auto_slots import (auto_slots)
27.166667
36
0.785276
4571f5ea9930c1e8a75a9d3d4c06b5bd761edd2d
4,058
py
Python
src/ebonite/ext/numpy/dataset.py
geffy/ebonite
2d85eeca44ac1799e743bafe333887712e325060
[ "Apache-2.0" ]
1
2019-11-27T14:33:45.000Z
2019-11-27T14:33:45.000Z
src/ebonite/ext/numpy/dataset.py
geffy/ebonite
2d85eeca44ac1799e743bafe333887712e325060
[ "Apache-2.0" ]
null
null
null
src/ebonite/ext/numpy/dataset.py
geffy/ebonite
2d85eeca44ac1799e743bafe333887712e325060
[ "Apache-2.0" ]
null
null
null
from typing import Tuple, Type import numpy as np from pyjackson.core import ArgList, Field from pyjackson.generics import Serializer from ebonite.core.analyzer.base import CanIsAMustHookMixin, TypeHookMixin from ebonite.core.analyzer.dataset import DatasetHook from ebonite.core.objects.dataset_type import DatasetTyp...
28.985714
111
0.679645
45734ef76afd9e1a67dca51aafc6b99a76fd2b37
3,676
py
Python
src/scenic/simulators/gta/img_modf.py
cahartsell/Scenic
2e7979011aef426108687947668d9ba6f5439136
[ "BSD-3-Clause" ]
141
2019-03-07T07:17:19.000Z
2022-03-19T16:15:48.000Z
src/scenic/simulators/gta/img_modf.py
cahartsell/Scenic
2e7979011aef426108687947668d9ba6f5439136
[ "BSD-3-Clause" ]
27
2019-06-18T23:04:29.000Z
2022-03-31T13:42:05.000Z
src/scenic/simulators/gta/img_modf.py
cahartsell/Scenic
2e7979011aef426108687947668d9ba6f5439136
[ "BSD-3-Clause" ]
59
2019-04-08T15:20:15.000Z
2022-03-29T07:23:26.000Z
''' This file has basic image modification functions ''' from PIL import Image import cv2 from scipy.spatial import Voronoi from itertools import product import numpy as np
33.117117
80
0.658596
4573d78a926be44e3e975ec76045bd812f719ca9
1,396
py
Python
scripts/uri_checks.py
geological-survey-of-queensland/vocabularies
b9a47ad495bb56e09ac7057e0019ce5b014272f1
[ "CC-BY-4.0" ]
15
2019-03-12T04:20:36.000Z
2021-11-03T20:30:05.000Z
scripts/uri_checks.py
geological-survey-of-queensland/vocabularies
b9a47ad495bb56e09ac7057e0019ce5b014272f1
[ "CC-BY-4.0" ]
207
2019-02-11T13:05:56.000Z
2022-03-29T00:57:20.000Z
scripts/uri_checks.py
geological-survey-of-queensland/vocabularies
b9a47ad495bb56e09ac7057e0019ce5b014272f1
[ "CC-BY-4.0" ]
9
2019-02-11T21:42:15.000Z
2021-05-29T05:29:04.000Z
# This script checks the redirect status of vocabs' URIs # # as of 2020-06-03, all 64 vocab' URIs are resulting in successful redirects to GSQ VocPrez import requests import os from os.path import join, dirname import glob from rdflib import Graph from rdflib.namespace import RDF, SKOS if __name__ == "__main__": ...
29.083333
91
0.644699
4575d22b2678c4979e2f0e7aaa2fadd3460d6e76
5,164
py
Python
src/analysis/measurement.py
rabenstefan/epp1819
67a46b9967cd6499a8724778246b5f289abef020
[ "MIT" ]
null
null
null
src/analysis/measurement.py
rabenstefan/epp1819
67a46b9967cd6499a8724778246b5f289abef020
[ "MIT" ]
null
null
null
src/analysis/measurement.py
rabenstefan/epp1819
67a46b9967cd6499a8724778246b5f289abef020
[ "MIT" ]
null
null
null
"""Measurement class: organizes measurements and parameters per factor. MeasurementDimensionError class: exception if dimensions do not fit. """ import numpy as np import pandas as pd from scipy.stats import norm
40.031008
79
0.540279
457699cdcae4bafe41114c01a0f125a7668be5fb
5,823
py
Python
tests/processors/test_processors.py
foxis/EasyVision
ffb2ce1a93fdace39c6bcc13c8ae518cec76919e
[ "MIT", "BSD-3-Clause" ]
7
2018-12-27T07:45:31.000Z
2021-06-17T03:49:15.000Z
tests/processors/test_processors.py
itohio/EasyVision
de6a4bb9160cd08278ae9c5738497132a4cd3202
[ "MIT", "BSD-3-Clause" ]
null
null
null
tests/processors/test_processors.py
itohio/EasyVision
de6a4bb9160cd08278ae9c5738497132a4cd3202
[ "MIT", "BSD-3-Clause" ]
3
2019-08-21T03:36:56.000Z
2021-10-08T16:12:53.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import pytest from pytest import raises, approx from EasyVision.vision.base import * from EasyVision.processors.base import * from tests.common import VisionSubclass, ProcessorA, ProcessorB
29.558376
75
0.666667
45770058508f21a3a4be648d911aa80a191fe520
5,858
py
Python
utils/ErrorMetrics.py
caozidong/Depth-Completion
a4d95cd33f29c5c8610fc8f40dd3b1fc81186143
[ "Apache-2.0" ]
5
2021-01-19T13:59:14.000Z
2021-12-01T12:09:01.000Z
utils/ErrorMetrics.py
caozidong/Depth-Completion
a4d95cd33f29c5c8610fc8f40dd3b1fc81186143
[ "Apache-2.0" ]
null
null
null
utils/ErrorMetrics.py
caozidong/Depth-Completion
a4d95cd33f29c5c8610fc8f40dd3b1fc81186143
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np
35.50303
92
0.575111
45788c6b217430689dd700b6c88fe7ce35978163
1,445
py
Python
main.py
jagadeesh-vinnakota/iiot_health
315d8e572d93cea76e235d440f6299b585a0e98c
[ "MIT" ]
null
null
null
main.py
jagadeesh-vinnakota/iiot_health
315d8e572d93cea76e235d440f6299b585a0e98c
[ "MIT" ]
null
null
null
main.py
jagadeesh-vinnakota/iiot_health
315d8e572d93cea76e235d440f6299b585a0e98c
[ "MIT" ]
null
null
null
import dash import dash_core_components as dcc import dash_html_components as html from data_gather import plot_line_graph from run_save_model import predict_line_graph, train_save_load from generating_data import generate_sensors_data # generating sensors data generate_sensors_data() train_save_load() external_style...
35.243902
151
0.703806
4578fe4c6cbb19782f80ec6f027b88bca5feadb5
5,131
py
Python
what_is_code.py
ccostino/what-is-code
0147113e0193d6ade91e6ae054cec9ff6939b0ab
[ "Apache-2.0" ]
1
2015-06-19T16:37:27.000Z
2015-06-19T16:37:27.000Z
what_is_code.py
ccostino/what-is-code
0147113e0193d6ade91e6ae054cec9ff6939b0ab
[ "Apache-2.0" ]
null
null
null
what_is_code.py
ccostino/what-is-code
0147113e0193d6ade91e6ae054cec9ff6939b0ab
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ WhatIsCode This extremely simple script was an inspiration driven by a combination of Paul Ford's article on Bloomberg Business Week, "What is Code?"[1] and Haddaway's song, "What is Love"[2]. It is probably best enjoyed while watching an 8-bit demake of the song[3], or 16-bit if you prefer...
28.988701
78
0.62327
45796c368191af808f0981f9aa041b0bcb8462f3
10,651
py
Python
frcnn/lib/datasets/cocoatts.py
visinf/style-seqcvae
c51dfeaf0e3c1e25dee19cbd20df2004d027fdee
[ "Apache-2.0" ]
null
null
null
frcnn/lib/datasets/cocoatts.py
visinf/style-seqcvae
c51dfeaf0e3c1e25dee19cbd20df2004d027fdee
[ "Apache-2.0" ]
null
null
null
frcnn/lib/datasets/cocoatts.py
visinf/style-seqcvae
c51dfeaf0e3c1e25dee19cbd20df2004d027fdee
[ "Apache-2.0" ]
null
null
null
import os import pickle import numpy as np from datasets.config_attrib_selection import attrib_selection
37.903915
179
0.5745
457a13fcc5619e763cff2978c285e3ac7191dd4c
349
py
Python
easy/count-as-i-count/main.py
khanh-alice/codingame-python
3d84361db2e3371104db8d9befcf4dbb47f6ac6e
[ "Apache-2.0" ]
null
null
null
easy/count-as-i-count/main.py
khanh-alice/codingame-python
3d84361db2e3371104db8d9befcf4dbb47f6ac6e
[ "Apache-2.0" ]
null
null
null
easy/count-as-i-count/main.py
khanh-alice/codingame-python
3d84361db2e3371104db8d9befcf4dbb47f6ac6e
[ "Apache-2.0" ]
null
null
null
initialScore = int(input()) print(count_solutions(initialScore, 0))
17.45
58
0.601719
457a7a556af7a4b160da5ec709717168732be108
559
py
Python
python/udp_socket_emit.py
draconicfae/godot_daydream_controller
81b6b78583264c9e5d383fe7691a6836deaea7a7
[ "MIT" ]
null
null
null
python/udp_socket_emit.py
draconicfae/godot_daydream_controller
81b6b78583264c9e5d383fe7691a6836deaea7a7
[ "MIT" ]
null
null
null
python/udp_socket_emit.py
draconicfae/godot_daydream_controller
81b6b78583264c9e5d383fe7691a6836deaea7a7
[ "MIT" ]
null
null
null
import socket import json
34.9375
161
0.617174
457b9730f9e55cce329d265159d8b2efc07ce3bc
133
py
Python
recuEuclid.py
azyxb/info
d34555abe55895751272e0ad129c7fb79f9613b0
[ "MIT" ]
2
2019-12-14T10:54:38.000Z
2020-03-30T22:57:11.000Z
recuEuclid.py
azyxb/info
d34555abe55895751272e0ad129c7fb79f9613b0
[ "MIT" ]
null
null
null
recuEuclid.py
azyxb/info
d34555abe55895751272e0ad129c7fb79f9613b0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 a = 12000 b = 8642 print(gcd(a, b))
12.090909
23
0.511278
457bd8f1d4de17115e3f02e7cca8a1fd7c15124e
4,065
py
Python
distributed.py
SagaFav/etlpy
5cc98ecc2b8e6590a7410195174dbe85beeb4927
[ "Apache-2.0" ]
448
2016-03-17T13:00:57.000Z
2022-02-17T06:00:25.000Z
distributed.py
Hanfee/etlpy
5cc98ecc2b8e6590a7410195174dbe85beeb4927
[ "Apache-2.0" ]
6
2016-03-17T12:06:25.000Z
2019-08-31T01:12:18.000Z
distributed.py
Hanfee/etlpy
5cc98ecc2b8e6590a7410195174dbe85beeb4927
[ "Apache-2.0" ]
204
2016-03-17T04:00:00.000Z
2022-03-22T10:28:05.000Z
import sys; from queue import Queue from multiprocessing.managers import BaseManager import etl; import json import extends; import time; authkey= "etlpy".encode('utf-8') timeout=1; rpc_port=8888 if __name__ == '__main__': ip='127.0.0.1' port=8888; argv=sys.argv; if len(argv)>1: ip=argv[1...
29.035714
116
0.597786
457c9e761df0197d87df1e4c38c0d31c4acad3b3
46
py
Python
je_auto_control/utils/exception/__init__.py
JE-Chen/Python_JEAutoControl
477bf9612e28e9ab6d0a8e269db2f699e50a3744
[ "MIT" ]
9
2020-10-12T06:33:36.000Z
2021-09-13T07:07:36.000Z
je_auto_control/utils/exception/__init__.py
JE-Chen/Python_JEAutoControl
477bf9612e28e9ab6d0a8e269db2f699e50a3744
[ "MIT" ]
null
null
null
je_auto_control/utils/exception/__init__.py
JE-Chen/Python_JEAutoControl
477bf9612e28e9ab6d0a8e269db2f699e50a3744
[ "MIT" ]
null
null
null
from je_auto_control.utils.exception import *
23
45
0.847826
457d8ed76184da607ae120220f6d3c830a2b03ff
399
py
Python
kafka_streamer/topic/datatype/base.py
sam-mosleh/kafka-streamer
be977af192b33a335b42af0a42ad05d9f3f9fef4
[ "BSD-3-Clause" ]
1
2020-06-26T00:10:05.000Z
2020-06-26T00:10:05.000Z
kafka_streamer/topic/datatype/base.py
sam-mosleh/kafka-streamer
be977af192b33a335b42af0a42ad05d9f3f9fef4
[ "BSD-3-Clause" ]
null
null
null
kafka_streamer/topic/datatype/base.py
sam-mosleh/kafka-streamer
be977af192b33a335b42af0a42ad05d9f3f9fef4
[ "BSD-3-Clause" ]
null
null
null
from abc import ABC, abstractmethod from typing import Type, Union from kafka_streamer.models import SchematicRecord, Serializable
21
75
0.696742
457fe543702bb54ebf9797e9d79e185259d5ef9b
479
py
Python
Searching and Sorting/playlist.py
mishrakeshav/CSES-Problem-Set
7f7169b20af44430e9208ba22c122054cea23ca1
[ "MIT" ]
null
null
null
Searching and Sorting/playlist.py
mishrakeshav/CSES-Problem-Set
7f7169b20af44430e9208ba22c122054cea23ca1
[ "MIT" ]
null
null
null
Searching and Sorting/playlist.py
mishrakeshav/CSES-Problem-Set
7f7169b20af44430e9208ba22c122054cea23ca1
[ "MIT" ]
null
null
null
if __name__ == '__main__': solve()
19.958333
66
0.409186
458102bbeb0db4cf5f121ed094ae66fd065c288b
998
py
Python
tools/extract-qa-from-squad.py
xuqingyang/qa-robot
19315ec4b603d45e9ea6d2edd57a3148168fb51a
[ "MIT" ]
null
null
null
tools/extract-qa-from-squad.py
xuqingyang/qa-robot
19315ec4b603d45e9ea6d2edd57a3148168fb51a
[ "MIT" ]
null
null
null
tools/extract-qa-from-squad.py
xuqingyang/qa-robot
19315ec4b603d45e9ea6d2edd57a3148168fb51a
[ "MIT" ]
null
null
null
import json import argparse import pprint import csv parser = argparse.ArgumentParser(description="parse squad qa into scv") parser.add_argument("--input", type=str) parser.add_argument("--output", type=str) args = parser.parse_args() input_file = args.input output_file = args.output with open(input_file, 'r') as f: ...
26.263158
86
0.619238
458163ee3d8d9bc98cadc044e2e7a1c59f34e1ba
9,448
py
Python
boardinghouse/middleware.py
luzfcb/django-boardinghouse
4b9fc7b0e51b6f72abcd904152b92243cf6f0eb0
[ "BSD-3-Clause" ]
null
null
null
boardinghouse/middleware.py
luzfcb/django-boardinghouse
4b9fc7b0e51b6f72abcd904152b92243cf6f0eb0
[ "BSD-3-Clause" ]
null
null
null
boardinghouse/middleware.py
luzfcb/django-boardinghouse
4b9fc7b0e51b6f72abcd904152b92243cf6f0eb0
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import logging import re from django.contrib import messages from django.db import ProgrammingError from django.http import HttpResponse, HttpResponseForbidden, HttpResponseRedirect from django.shortcuts import redirect from django.utils.translation import ugettext_lazy as _ fr...
38.096774
89
0.63876
458184e9428ce6081bebdb6fd9e6c94b6f1c189a
13,141
py
Python
meta-nml/model.py
kevintli/mural
e18e7d1a72b561fab1b5da026806e3417a9c63db
[ "MIT" ]
5
2021-09-23T07:35:58.000Z
2022-01-07T21:23:06.000Z
meta-nml/model.py
kevintli/mural
e18e7d1a72b561fab1b5da026806e3417a9c63db
[ "MIT" ]
null
null
null
meta-nml/model.py
kevintli/mural
e18e7d1a72b561fab1b5da026806e3417a9c63db
[ "MIT" ]
1
2021-12-10T20:01:16.000Z
2021-12-10T20:01:16.000Z
import torch.nn as nn import numpy as np from collections import OrderedDict from torchmeta.modules import (MetaModule, MetaConv2d, MetaBatchNorm2d, MetaSequential, MetaLinear) import torch def ModelConvOmniglot(out_features, hidden_size=64): return MetaConvModel(1, out_featur...
39.226866
116
0.623392
4581f801ff1eb9705ad068ec4480ee6ead8ec4c9
3,417
py
Python
debug.py
davenewham/BlackBoard-Course-Downloader
1f0a2fe11067488d8e2a46818857623c4c6849bd
[ "MIT" ]
57
2019-06-11T16:19:39.000Z
2022-03-29T01:38:47.000Z
debug.py
davenewham/BlackBoard-Course-Downloader
1f0a2fe11067488d8e2a46818857623c4c6849bd
[ "MIT" ]
14
2019-06-13T17:30:44.000Z
2022-01-16T14:21:15.000Z
debug.py
davenewham/BlackBoard-Course-Downloader
1f0a2fe11067488d8e2a46818857623c4c6849bd
[ "MIT" ]
20
2019-11-24T11:28:12.000Z
2022-02-16T07:29:56.000Z
from blackboard import BlackBoardContent, BlackBoardClient, BlackBoardAttachment, BlackBoardEndPoints, \ BlackBoardCourse, BlackBoardInstitute import os import re import requests import datetime import xmltodict import argparse import sys import json import getpass import main if __name__ == "__main__": test(...
38.829545
148
0.642962
458360f058f7cad1d028a83c610e0b3f7525ff76
1,246
py
Python
easycron/easycron/plist.py
skeptycal/.dotfiles
ef6d4e47f77a12024587ed24a0c3048fe5b60ed1
[ "MIT" ]
5
2019-10-03T21:25:42.000Z
2022-03-30T16:14:20.000Z
easycron/easycron/plist.py
skeptycal/.dotfiles
ef6d4e47f77a12024587ed24a0c3048fe5b60ed1
[ "MIT" ]
6
2019-07-11T00:23:08.000Z
2020-12-15T06:21:19.000Z
easycron/easycron/plist.py
skeptycal/.dotfiles
ef6d4e47f77a12024587ed24a0c3048fe5b60ed1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import datetime import plistlib import tempfile import time from os import PathLike from typing import Dict, Union pl = dict( aString="Doodah", aList=["A", "B", 12, 32.1, [1, 2, 3]], aFloat=0.1, anInt=728, aDict=dict( anotherString="<hello & hi there!>", aThir...
23.074074
70
0.635634
458445a4da8ce1297713dbab63280e457ebba263
414
py
Python
symposion/schedule/migrations/0003_remove_presentation_additional_speakers.py
pyohio/symposion
f8ec9c7e7daab4658061867d1294c1c126dd2919
[ "BSD-3-Clause" ]
null
null
null
symposion/schedule/migrations/0003_remove_presentation_additional_speakers.py
pyohio/symposion
f8ec9c7e7daab4658061867d1294c1c126dd2919
[ "BSD-3-Clause" ]
5
2015-07-16T19:46:00.000Z
2018-03-11T05:58:48.000Z
symposion/schedule/migrations/0003_remove_presentation_additional_speakers.py
pyohio/symposion
f8ec9c7e7daab4658061867d1294c1c126dd2919
[ "BSD-3-Clause" ]
1
2017-01-27T21:18:26.000Z
2017-01-27T21:18:26.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.9 on 2018-06-23 06:06 from __future__ import unicode_literals from django.db import migrations
20.7
49
0.63285
458576ab2c7f8650e836abcb0b08f9c1ccc55b11
425
py
Python
setup.py
3kwa/datoms
108733769a940b799482270198aa500873aee01c
[ "Unlicense" ]
4
2017-10-27T19:11:23.000Z
2021-02-27T08:18:39.000Z
setup.py
3kwa/datoms
108733769a940b799482270198aa500873aee01c
[ "Unlicense" ]
null
null
null
setup.py
3kwa/datoms
108733769a940b799482270198aa500873aee01c
[ "Unlicense" ]
1
2016-09-02T12:29:45.000Z
2016-09-02T12:29:45.000Z
from setuptools import setup setup( name = 'datoms', version = '0.1.0', description = 'A simplistic, Datomic inspired, SQLite backed, REST influenced, schemaless auditable facts storage.', py_modules = ['datoms'], license = 'unlicense', author = 'Eugene Van den Bulke', author_email = 'euge...
28.333333
120
0.663529
45857d1509e13e72b89d409aa8c1b7c1595621d3
2,728
py
Python
cocoa_folder/scripts/bot_bot_chat.py
s-akanksha/DialoGraph_ICLR21
d5bbc10b2623c9f84d21a99a5e54e7dcfdfb1bcc
[ "Apache-2.0" ]
12
2021-03-17T05:15:33.000Z
2022-01-19T06:09:21.000Z
cocoa_folder/scripts/bot_bot_chat.py
s-akanksha/DialoGraph_ICLR21
d5bbc10b2623c9f84d21a99a5e54e7dcfdfb1bcc
[ "Apache-2.0" ]
2
2021-05-25T07:28:46.000Z
2022-02-11T01:54:43.000Z
cocoa_folder/scripts/bot_bot_chat.py
s-akanksha/DialoGraph_ICLR21
d5bbc10b2623c9f84d21a99a5e54e7dcfdfb1bcc
[ "Apache-2.0" ]
4
2021-10-11T03:39:38.000Z
2022-02-01T23:58:50.000Z
''' Takes two agent implementations and generates the dialogues. ''' import argparse import random import json import numpy as np from cocoa.core.util import read_json from cocoa.core.schema import Schema from cocoa.core.scenario_db import ScenarioDB, add_scenario_arguments from cocoa.core.dataset import add_dataset_...
41.333333
125
0.69868
4586103dff65390c36a39a858fcae5341e48ccd7
2,777
py
Python
app/handlers/admins/moderation.py
vitaliy-ukiru/math-bot
72c116b4f5a4aa6a5f8eaae67ecbbf3df821f9e9
[ "MIT" ]
1
2021-12-11T07:41:38.000Z
2021-12-11T07:41:38.000Z
app/handlers/admins/moderation.py
vitaliy-ukiru/math-bot
72c116b4f5a4aa6a5f8eaae67ecbbf3df821f9e9
[ "MIT" ]
8
2021-05-08T21:48:34.000Z
2022-01-20T15:42:00.000Z
app/handlers/admins/moderation.py
vitaliy-ukiru/math-bot
72c116b4f5a4aa6a5f8eaae67ecbbf3df821f9e9
[ "MIT" ]
null
null
null
# Source: https://github.com/aiogram/bot/blob/master/aiogram_bot/handlers/simple_admin.py import logging from aiogram import types from aiogram.utils import exceptions from babel.dates import format_timedelta from app.loader import dp from app.utils.timedelta import parse_timedelta_from_message logger = logging.ge...
31.556818
99
0.657184
458860860a8c1e1c28fb5b0848e12367ffab7ad3
370
py
Python
serial_scripts/system_test/flow_tests/ReleaseToFlowSetupRateMapping.py
atsgen/tf-test
2748fcd81491450c75dadc71849d2a1c11061029
[ "Apache-2.0" ]
5
2020-09-29T00:36:57.000Z
2022-02-16T06:51:32.000Z
serial_scripts/system_test/flow_tests/ReleaseToFlowSetupRateMapping.py
vkolli/contrail-test-perf
db04b8924a2c330baabe3059788b149d957a7d67
[ "Apache-2.0" ]
27
2019-11-02T02:18:34.000Z
2022-02-24T18:49:08.000Z
serial_scripts/system_test/flow_tests/ReleaseToFlowSetupRateMapping.py
vkolli/contrail-test-perf
db04b8924a2c330baabe3059788b149d957a7d67
[ "Apache-2.0" ]
20
2019-11-28T16:02:25.000Z
2022-01-06T05:56:58.000Z
# Here the rate is set for Policy flows, local to a compute, which is # lesser than policy flows across computes expected_flow_setup_rate = {} expected_flow_setup_rate['policy'] = { '1.04': 6000, '1.05': 9000, '1.06': 10000, '1.10': 10000, '2.10': 13000} expected_flow_setup_rate['nat'] = { '1.04': 4200, '1.05':...
46.25
76
0.654054
458960f108b95d2cbc041786562002a68b17daea
1,016
py
Python
DP_MCP.py
man-o-war/DS-Algorithms
12237fb42fb48e8e7a2cbcb8ecb0d86b87bb3fd3
[ "MIT" ]
null
null
null
DP_MCP.py
man-o-war/DS-Algorithms
12237fb42fb48e8e7a2cbcb8ecb0d86b87bb3fd3
[ "MIT" ]
null
null
null
DP_MCP.py
man-o-war/DS-Algorithms
12237fb42fb48e8e7a2cbcb8ecb0d86b87bb3fd3
[ "MIT" ]
null
null
null
# Dynamic Programming Python implementation of Min Cost Path # problem R = 3 C = 3 # Driver program to test above functions cost = [[1, 2, 3], [4, 8, 2], [1, 5, 3]] print(minCost(cost, 2, 2)) #O(mn)
27.459459
78
0.540354
458a562e22dcc2a1d067069337d7d494ddd4941f
3,277
py
Python
Views/Affichage/transitionView.py
yvesjordan06/automata-brains
1c34dd9315fcee7ce1807a2b94a0ec48421d03b1
[ "MIT" ]
3
2020-01-31T15:54:48.000Z
2020-02-01T10:01:35.000Z
Views/Affichage/transitionView.py
Tcomputer5/automata-brains
6c2a7714d1fcb16763084a33a2f0f1364d4f8eb8
[ "MIT" ]
null
null
null
Views/Affichage/transitionView.py
Tcomputer5/automata-brains
6c2a7714d1fcb16763084a33a2f0f1364d4f8eb8
[ "MIT" ]
2
2020-02-01T09:59:51.000Z
2020-02-01T10:02:12.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'UI/transitionView.ui' # # Created by: PyQt5 UI code generator 5.14.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtGui import QIcon from Models.Automate import Automate ...
32.77
120
0.64968
458b63ce9f8114bff2c526efb8cbbe3355958823
380
py
Python
gellifinsta/migrations/0004_rename_local_fname_gellifinsta_file_path.py
vallka/djellifique
fb84fba6be413f9d38276d89ae84aeaff761218f
[ "MIT" ]
null
null
null
gellifinsta/migrations/0004_rename_local_fname_gellifinsta_file_path.py
vallka/djellifique
fb84fba6be413f9d38276d89ae84aeaff761218f
[ "MIT" ]
null
null
null
gellifinsta/migrations/0004_rename_local_fname_gellifinsta_file_path.py
vallka/djellifique
fb84fba6be413f9d38276d89ae84aeaff761218f
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-06-23 14:52 from django.db import migrations
20
51
0.602632
458ea89efaf4582b937e60a207ad5ec47d2a4440
3,881
py
Python
python/etc/extract_final_branch_weights.py
AdamByerly/MMLCNNwHFCs
499c275522656e4537c58c330476683e0a0f4bef
[ "Apache-2.0" ]
38
2020-02-04T20:07:49.000Z
2022-01-23T22:57:54.000Z
python/etc/extract_final_branch_weights.py
AdamByerly/MMLCNNwHFCs
499c275522656e4537c58c330476683e0a0f4bef
[ "Apache-2.0" ]
3
2020-04-23T16:51:27.000Z
2020-07-19T12:26:39.000Z
python/etc/extract_final_branch_weights.py
AdamByerly/MMLCNNwHFCs
499c275522656e4537c58c330476683e0a0f4bef
[ "Apache-2.0" ]
9
2020-04-22T02:36:59.000Z
2021-09-16T05:42:54.000Z
# Copyright 2021 Adam Byerly. 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 applicable law or agre...
40.852632
80
0.667611
458ee5a0204805bfb05bd187554d1c93282f72a6
7,625
py
Python
pykSpider/kSpider2/ks_clustering.py
mr-eyes/kSpider2
6049c23a5e781534331ba1abcdbf067151e274a2
[ "MIT" ]
null
null
null
pykSpider/kSpider2/ks_clustering.py
mr-eyes/kSpider2
6049c23a5e781534331ba1abcdbf067151e274a2
[ "MIT" ]
null
null
null
pykSpider/kSpider2/ks_clustering.py
mr-eyes/kSpider2
6049c23a5e781534331ba1abcdbf067151e274a2
[ "MIT" ]
1
2021-04-09T23:59:21.000Z
2021-04-09T23:59:21.000Z
from __future__ import division from collections import defaultdict import itertools import sys import os import sqlite3 import click from kSpider2.click_context import cli import glob """ TODO: New help messages 1. containment cutoff (sim_cutoff): cluster sequences with (containment > cutoff) where containment = s...
33.738938
175
0.579803
458f46b3f7bac00aa3202fa59f430204a9e83498
2,041
py
Python
workflow/scripts/build_primer_regions.py
kokyriakidis/dna-seq-varlociraptor
e9331a1bd8bbdf6592383353a0301148eea65e0c
[ "MIT" ]
null
null
null
workflow/scripts/build_primer_regions.py
kokyriakidis/dna-seq-varlociraptor
e9331a1bd8bbdf6592383353a0301148eea65e0c
[ "MIT" ]
null
null
null
workflow/scripts/build_primer_regions.py
kokyriakidis/dna-seq-varlociraptor
e9331a1bd8bbdf6592383353a0301148eea65e0c
[ "MIT" ]
null
null
null
import pandas as pd chunksize = 10 ** 6 with open(snakemake.output[0], "w") as out: with open(snakemake.log[0], "w") as log_file: if snakemake.input[0].endswith("bedpe"): parse_bedpe(log_file, out) else: parse_bed(log_file, out)
30.924242
85
0.488486
458fd8bb6dadc2e31622c1207043cbd32ef38957
2,039
py
Python
utils/visualMap.py
TwelveYC/network-vi
d7a36c21a09eb86276e316193405267e3a9cc78d
[ "MIT" ]
14
2020-05-13T10:04:02.000Z
2020-12-27T05:42:05.000Z
utils/visualMap.py
TwelveYC/network-vi
d7a36c21a09eb86276e316193405267e3a9cc78d
[ "MIT" ]
null
null
null
utils/visualMap.py
TwelveYC/network-vi
d7a36c21a09eb86276e316193405267e3a9cc78d
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import matplotlib.colors as colors
41.612245
104
0.62972
459249d4734814fb5305d256f82cc0dc0641dd16
2,361
py
Python
data/train/python/459249d4734814fb5305d256f82cc0dc0641dd16urls.py
harshp8l/deep-learning-lang-detection
2a54293181c1c2b1a2b840ddee4d4d80177efb33
[ "MIT" ]
84
2017-10-25T15:49:21.000Z
2021-11-28T21:25:54.000Z
data/train/python/459249d4734814fb5305d256f82cc0dc0641dd16urls.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
5
2018-03-29T11:50:46.000Z
2021-04-26T13:33:18.000Z
data/train/python/459249d4734814fb5305d256f82cc0dc0641dd16urls.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
24
2017-11-22T08:31:00.000Z
2022-03-27T01:22:31.000Z
from django.conf.urls import patterns, url from lattice.views import (lattices) from lattice.views import (saveLatticeInfo, saveLattice) from lattice.views import (saveModel) from lattice.views import (lattice_home, lattice_content_home, lattice_content_search, lattice_content_list, lattice_content_model_list, lattice...
30.662338
192
0.67302
4592ee2a9205ee3dd55eed2050ff0223402372a9
52
py
Python
src/core/sessions/buffers/gui/configuration/twitter/__init__.py
Oire/TheQube
fcfd8a68b15948e0740642d635db24adef8cc314
[ "MIT" ]
21
2015-08-02T21:26:14.000Z
2019-12-27T09:57:44.000Z
src/core/sessions/buffers/gui/configuration/twitter/__init__.py
Oire/TheQube
fcfd8a68b15948e0740642d635db24adef8cc314
[ "MIT" ]
34
2015-01-12T00:38:14.000Z
2020-08-31T11:19:37.000Z
src/core/sessions/buffers/gui/configuration/twitter/__init__.py
Oire/TheQube
fcfd8a68b15948e0740642d635db24adef8cc314
[ "MIT" ]
15
2015-03-24T15:42:30.000Z
2020-09-24T20:26:42.000Z
from main import BufferConfigDialog import panels
17.333333
36
0.846154
4593c16eb2e732096aaf3aa076d3366347a35a16
2,155
py
Python
fluid/PaddleRec/ctr/network_conf.py
KaiyuYue/models
d5804a6afab46a31f260dc0696e26883b33bbceb
[ "Apache-2.0" ]
1
2018-11-23T10:29:49.000Z
2018-11-23T10:29:49.000Z
fluid/PaddleRec/ctr/network_conf.py
GuangyanZhang/models
937566323fa228d74a544f16f3e030f4c0bbb3b9
[ "Apache-2.0" ]
null
null
null
fluid/PaddleRec/ctr/network_conf.py
GuangyanZhang/models
937566323fa228d74a544f16f3e030f4c0bbb3b9
[ "Apache-2.0" ]
null
null
null
import paddle.fluid as fluid import math dense_feature_dim = 13
45.851064
123
0.696984
4593e0391956e053099ff76cfe7c1d83b704418a
638
py
Python
hangman_game.py
praneethmolleti/utopia
1855e4571307f8c52fbfc46a525aea0eb366bc79
[ "MIT" ]
null
null
null
hangman_game.py
praneethmolleti/utopia
1855e4571307f8c52fbfc46a525aea0eb366bc79
[ "MIT" ]
null
null
null
hangman_game.py
praneethmolleti/utopia
1855e4571307f8c52fbfc46a525aea0eb366bc79
[ "MIT" ]
null
null
null
import time name=input("Enter your name:") print("hello",name,"time to play Hangman!") time.sleep(1) print("start guessing") time.sleep(0.5) word="secret" guesses="" turns=10 while turns>0: failed=0 for i in word: if i in guesses: print(i) else: print("_") ...
21.266667
47
0.523511
4593eef79d646d64bcab1d1f22414e703f225f47
3,637
py
Python
datawinners/submission/request_processor.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
datawinners/submission/request_processor.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
datawinners/submission/request_processor.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
import json import logging from django.conf import settings from datawinners.feeds.database import get_feeds_db_for_org from mangrove.transport import TransportInfo from datawinners.accountmanagement.models import TEST_REPORTER_MOBILE_NUMBER, OrganizationSetting from datawinners.messageprovider.messages import SMS from...
45.4625
155
0.768765
45940e2e0c52d01e63ad0d9f207ac4852d537161
4,664
py
Python
tests/test_losses.py
p768lwy3/torecsys
2251366268b4fbe6f8c3ab1628fa72a0db043dcd
[ "MIT" ]
92
2019-08-15T11:03:50.000Z
2022-03-12T01:21:05.000Z
tests/test_losses.py
p768lwy3/torecsys
2251366268b4fbe6f8c3ab1628fa72a0db043dcd
[ "MIT" ]
3
2020-03-11T08:57:50.000Z
2021-01-06T01:39:47.000Z
tests/test_losses.py
p768lwy3/torecsys
2251366268b4fbe6f8c3ab1628fa72a0db043dcd
[ "MIT" ]
16
2019-10-12T11:28:53.000Z
2022-03-28T14:04:12.000Z
import unittest import torch from parameterized import parameterized from torecsys.losses import * device = 'cuda:0' if torch.cuda.is_available() else 'cpu' if __name__ == '__main__': unittest.main()
30.684211
75
0.596698
4595ee6a2050b46ad9613d645fcc6da9d6a3d73a
653
py
Python
src/jrtts/GlowTTS/Networks/build_model.py
tosaka-m/japanese_realtime_tts
f278005e6b79ecb975a6dc476aef3394a46214b3
[ "MIT" ]
5
2020-08-06T14:36:16.000Z
2022-03-08T05:47:56.000Z
src/jrtts/GlowTTS/Networks/build_model.py
tosaka-m/japanese_realtime_tts
f278005e6b79ecb975a6dc476aef3394a46214b3
[ "MIT" ]
null
null
null
src/jrtts/GlowTTS/Networks/build_model.py
tosaka-m/japanese_realtime_tts
f278005e6b79ecb975a6dc476aef3394a46214b3
[ "MIT" ]
null
null
null
#coding:utf-8 import torch from torch import nn from .models import FlowGenerator
27.208333
78
0.67075
459604032bfdd5cf9d1499eab90812831118e9c0
5,387
py
Python
layers.py
xiangsheng1325/fastgae_pytorch
97592f2ac064aab99db9a6fec3f6757573a8db7d
[ "MIT" ]
8
2021-01-18T03:14:35.000Z
2022-03-28T08:35:15.000Z
layers.py
xiangsheng1325/fastgae_pytorch
97592f2ac064aab99db9a6fec3f6757573a8db7d
[ "MIT" ]
null
null
null
layers.py
xiangsheng1325/fastgae_pytorch
97592f2ac064aab99db9a6fec3f6757573a8db7d
[ "MIT" ]
1
2022-03-20T09:48:46.000Z
2022-03-20T09:48:46.000Z
import torch, math, copy import scipy.sparse as sp import numpy as np from torch.nn.modules.module import Module import torch.nn as nn from torch.nn.parameter import Parameter #def sp_diag(sp_tensor): # sp_tensor = sp_tensor.to_dense() # sp_array = sp_tensor.to('cpu').numpy() # sp_diags = sp....
36.646259
92
0.599963
45975eff20d2603fa6353e7112b6096bd8544f29
1,532
py
Python
common/db.py
levinster82/GaragePi
873f8dbe6a6abdd64095426fa14392d0bb7e66df
[ "MIT" ]
34
2016-01-07T19:38:45.000Z
2022-03-29T07:32:14.000Z
common/db.py
levinster82/GaragePi
873f8dbe6a6abdd64095426fa14392d0bb7e66df
[ "MIT" ]
17
2016-06-09T22:54:09.000Z
2021-05-14T07:14:34.000Z
common/db.py
levinster82/GaragePi
873f8dbe6a6abdd64095426fa14392d0bb7e66df
[ "MIT" ]
25
2016-07-06T15:55:43.000Z
2022-03-31T06:20:04.000Z
import os from sqlite3 import dbapi2 as sqlite3
37.365854
141
0.63577
459906e9c61347117a3af63208abe4d1417e1da0
541
py
Python
environments/migrations/0003_auto_20201228_1616.py
Teosidonio/Data_Solution
94a898b7939b3bdb0fe92df97aa833c1fc7394a3
[ "MIT" ]
null
null
null
environments/migrations/0003_auto_20201228_1616.py
Teosidonio/Data_Solution
94a898b7939b3bdb0fe92df97aa833c1fc7394a3
[ "MIT" ]
null
null
null
environments/migrations/0003_auto_20201228_1616.py
Teosidonio/Data_Solution
94a898b7939b3bdb0fe92df97aa833c1fc7394a3
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2020-12-28 14:16 from django.db import migrations
23.521739
84
0.582255
459a1e6b7e0fdf087cd3f288de2eb4f069687538
722
py
Python
code_all/day17/homework/exercise02.py
testcg/python
4db4bd5d0e44af807d2df80cf8c8980b40cc03c4
[ "MIT" ]
null
null
null
code_all/day17/homework/exercise02.py
testcg/python
4db4bd5d0e44af807d2df80cf8c8980b40cc03c4
[ "MIT" ]
null
null
null
code_all/day17/homework/exercise02.py
testcg/python
4db4bd5d0e44af807d2df80cf8c8980b40cc03c4
[ "MIT" ]
null
null
null
""" --> yield """ controller = CommodityController() controller.add_commodity("") controller.add_commodity("") controller.add_commodity("") for item in controller: print(item) # iterator = controller.__iter__() # while True: # try: # item = iterator.__next__() # print(item) # except...
19
38
0.621884
459aedab06142ccd615ef56d1e0a1e0074661927
712
py
Python
src/reporter/reporter/reports/estimate.py
tomasfarias/pipeline
e32f1d34fef1cc9fb534e244e71f41276a979002
[ "MIT" ]
1
2019-12-24T05:50:38.000Z
2019-12-24T05:50:38.000Z
src/reporter/reporter/reports/estimate.py
tomasfarias/pipeline
e32f1d34fef1cc9fb534e244e71f41276a979002
[ "MIT" ]
3
2021-08-08T19:52:05.000Z
2021-08-08T19:52:06.000Z
src/reporter/reporter/reports/estimate.py
tomasfarias/pipeline
e32f1d34fef1cc9fb534e244e71f41276a979002
[ "MIT" ]
null
null
null
import pandas as pd from reporter.report import Report
26.37037
83
0.532303
459b244b831dbaca46e8bc6cd6ce8c182a965598
75
py
Python
icls/models/resnet/resnet_test.py
TaikiInoue/iClassification
7045c7721c9ee86e3823b13722d22b6c0095b76a
[ "MIT" ]
null
null
null
icls/models/resnet/resnet_test.py
TaikiInoue/iClassification
7045c7721c9ee86e3823b13722d22b6c0095b76a
[ "MIT" ]
null
null
null
icls/models/resnet/resnet_test.py
TaikiInoue/iClassification
7045c7721c9ee86e3823b13722d22b6c0095b76a
[ "MIT" ]
null
null
null
from torchvision.models import resnet50 model = resnet50(pretrained=True)
18.75
39
0.826667
459c03c8888c050fd9ced363ad52f606db8a1218
2,328
py
Python
core/templatetags/core_menu.py
baxtea/pipeline
0cbdd4b3ee6d05611e1d3ed5a4936f597182e963
[ "MIT" ]
18
2018-11-14T21:52:33.000Z
2022-03-23T08:10:54.000Z
core/templatetags/core_menu.py
baxtea/pipeline
0cbdd4b3ee6d05611e1d3ed5a4936f597182e963
[ "MIT" ]
83
2018-09-21T16:08:51.000Z
2022-03-27T20:31:05.000Z
core/templatetags/core_menu.py
baxtea/pipeline
0cbdd4b3ee6d05611e1d3ed5a4936f597182e963
[ "MIT" ]
6
2019-09-27T20:50:54.000Z
2020-06-12T14:07:38.000Z
from django import template from core.models import ( ArticlesIndexPage, ArticlePage, StaffPage, CandidatePage, ElectionIndexPage, ) from home.models import HomePage register = template.Library() # Retrieves the top menu items - the immediate children of the parent page # The has_menu_children ...
32.788732
82
0.676117
459d4f106f5448c3e38cc2b536e47e739b25817d
11,195
py
Python
onmt/modules/UniversalTransformer/Layers.py
esalesky/NMTGMinor
b6eafff21f5aabb874720e6df30cd6b91c339a7c
[ "MIT" ]
5
2020-05-25T01:11:51.000Z
2021-02-18T08:55:43.000Z
onmt/modules/UniversalTransformer/Layers.py
esalesky/NMTGMinor
b6eafff21f5aabb874720e6df30cd6b91c339a7c
[ "MIT" ]
null
null
null
onmt/modules/UniversalTransformer/Layers.py
esalesky/NMTGMinor
b6eafff21f5aabb874720e6df30cd6b91c339a7c
[ "MIT" ]
1
2020-12-13T07:41:33.000Z
2020-12-13T07:41:33.000Z
import math import torch import torch.nn as nn from torch.autograd import Variable import torch.nn.init as init import torch.nn.utils.weight_norm as WeightNorm import onmt import torch.nn.functional as F from onmt.modules.Bottle import Bottle from onmt.modules.Transformer.Layers import XavierLinear, MultiHeadAttentio...
38.737024
156
0.617329
459e672376134fe4df8011810380fe61fed6944e
1,530
py
Python
upload_folder_to_root.py
cbhramar/Google-Drive-APIs-in-Python
72b25721a88aa14d75ab529011181b7cee80e5e2
[ "MIT" ]
null
null
null
upload_folder_to_root.py
cbhramar/Google-Drive-APIs-in-Python
72b25721a88aa14d75ab529011181b7cee80e5e2
[ "MIT" ]
null
null
null
upload_folder_to_root.py
cbhramar/Google-Drive-APIs-in-Python
72b25721a88aa14d75ab529011181b7cee80e5e2
[ "MIT" ]
null
null
null
from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive from oauth2client.client import OAuth2Credentials import json import sys import os LOCAL_FOLDER_NAME='h5downloads' if __name__ == '__main__': if len(sys.argv) == 1: upload_folder_to_root() elif len(sys.argv) == 2: upload...
31.875
77
0.688889
459f50da0f5e27af8527dfe49afeda2568f40a0c
2,935
py
Python
Server/app.py
AkashSasank/Covid-19-X-ray-scanner
dc4e4ab8258a40c7209a120cb75c51b3ad68d145
[ "MIT" ]
1
2020-12-31T06:34:08.000Z
2020-12-31T06:34:08.000Z
Server/app.py
AkashSasank/Covid-19-X-ray-scanner
dc4e4ab8258a40c7209a120cb75c51b3ad68d145
[ "MIT" ]
null
null
null
Server/app.py
AkashSasank/Covid-19-X-ray-scanner
dc4e4ab8258a40c7209a120cb75c51b3ad68d145
[ "MIT" ]
null
null
null
import os from flask import Flask, render_template, request, redirect, url_for, \ make_response # These are all we need for our purposes from flask_cors import CORS import tensorflow as tf from keras.preprocessing.image import load_img, img_to_array from werkzeug.utils import secure_filename from ML.utils impor...
33.352273
119
0.632368
459f5157ab1931fdcbdbea8249e936a2e4eee079
332
py
Python
_fred-v1/fred/endpoints/shutdown.py
elviva404/frontend-regression-validator
21df2a127712bdf0688dc9aedf478c6a2a90a3c3
[ "ECL-2.0", "Apache-2.0" ]
70
2019-09-16T13:30:49.000Z
2022-02-25T17:46:23.000Z
_fred-v1/fred/endpoints/shutdown.py
elviva404/frontend-regression-validator
21df2a127712bdf0688dc9aedf478c6a2a90a3c3
[ "ECL-2.0", "Apache-2.0" ]
2
2020-01-13T09:15:47.000Z
2020-07-29T11:49:25.000Z
_fred-v1/fred/endpoints/shutdown.py
elviva404/frontend-regression-validator
21df2a127712bdf0688dc9aedf478c6a2a90a3c3
[ "ECL-2.0", "Apache-2.0" ]
10
2019-10-06T08:22:05.000Z
2022-02-03T18:45:08.000Z
from flask_restful import Resource from flask import request
27.666667
70
0.683735
459fe7e7898bb17af2c0a9177f991a1f10c9ca46
1,555
py
Python
module/object/sql.py
arvin-chou/mc
b82305a4a91fe6150caa5423205a0798f3815724
[ "MIT" ]
null
null
null
module/object/sql.py
arvin-chou/mc
b82305a4a91fe6150caa5423205a0798f3815724
[ "MIT" ]
null
null
null
module/object/sql.py
arvin-chou/mc
b82305a4a91fe6150caa5423205a0798f3815724
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from sqlalchemy import Table, Column, Integer, String, MetaData, \ ForeignKey, DateTime, UniqueConstraint from config.config import _logging, metadata from .model import ObjectsIpaddrs, ObjectsIpgroups from .__init__ import __objects_ipaddrs_ipgroups_tablename__, \ __objects_ip...
38.875
86
0.730547
45a076569b4ca7968147de86328747e7fa0b3846
1,286
py
Python
instaclient/instagram/postmedia.py
pthalin/instaclient
7800c641db3b5f81d0b171b6c131752502023fc5
[ "MIT" ]
null
null
null
instaclient/instagram/postmedia.py
pthalin/instaclient
7800c641db3b5f81d0b171b6c131752502023fc5
[ "MIT" ]
null
null
null
instaclient/instagram/postmedia.py
pthalin/instaclient
7800c641db3b5f81d0b171b6c131752502023fc5
[ "MIT" ]
null
null
null
from typing import Optional, List, TYPE_CHECKING if TYPE_CHECKING: from instaclient.client.instaclient import InstaClient from instaclient.instagram.instaobject import InstaBaseObject
31.365854
61
0.671073
45a1215c7fb379ec9d3e7cd1d0925e710f781704
1,117
py
Python
source/server/annotation/migrations/0002_auto_20200622_0656.py
shizacat/shanno
e370dc1bf8a884d8ee5538b702b39275751e5f5d
[ "MIT" ]
1
2020-08-27T12:48:47.000Z
2020-08-27T12:48:47.000Z
source/server/annotation/migrations/0002_auto_20200622_0656.py
shizacat/shanno
e370dc1bf8a884d8ee5538b702b39275751e5f5d
[ "MIT" ]
5
2021-03-30T12:56:24.000Z
2021-06-27T17:42:28.000Z
source/server/annotation/migrations/0002_auto_20200622_0656.py
shizacat/shanno
e370dc1bf8a884d8ee5538b702b39275751e5f5d
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-06-22 06:56 from django.db import migrations, models import django.db.models.deletion
36.032258
148
0.605192
45a398c3801e0cae9986d9b12a66be8c29607231
439
py
Python
setup.py
GiorgioBalestrieri/renewables-ninja-client
5c068f07e0e8e972f8802fd0b3ed28466bbf8c23
[ "MIT" ]
1
2020-05-27T14:15:00.000Z
2020-05-27T14:15:00.000Z
setup.py
GiorgioBalestrieri/renewables-ninja-client
5c068f07e0e8e972f8802fd0b3ed28466bbf8c23
[ "MIT" ]
1
2020-05-27T14:27:29.000Z
2020-05-27T14:27:29.000Z
setup.py
GiorgioBalestrieri/renewables-ninja-client
5c068f07e0e8e972f8802fd0b3ed28466bbf8c23
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name = "renewables_ninja_client", version = "0.1.0", description = ("Client for Renewables Ninja API."), author = ["Giorgio Balestrieri"], packages = find_packages(exclude=[ "docs", "tests", "examples", "sandbox", "scripts"]), ...
27.4375
55
0.587699
45a434893b809e66ad61ea906d250e906d94a42d
5,446
py
Python
pysigep/correios/__init__.py
primeschool-it/trustcode-pysigep
45f845cce385e3682e897948af8f98e19eec696d
[ "MIT" ]
null
null
null
pysigep/correios/__init__.py
primeschool-it/trustcode-pysigep
45f845cce385e3682e897948af8f98e19eec696d
[ "MIT" ]
null
null
null
pysigep/correios/__init__.py
primeschool-it/trustcode-pysigep
45f845cce385e3682e897948af8f98e19eec696d
[ "MIT" ]
1
2021-12-17T10:30:52.000Z
2021-12-17T10:30:52.000Z
# -*- coding: utf-8 -*- # 2016 Alessandro Fernandes Martini, Trustcode # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # ############################################################################# # # Brazillian Carrier Correios Sigep WEB # Copyright (C) 2015 KMEE (http://www.kmee.com.br)...
40.044118
83
0.622292
45a5d652cf5968d8ff355947ff4f952cf9d7e299
1,408
py
Python
urls.py
enisimsar/watchtower-news
222d2e52e76ef32ebb78eb325f4c32b64c0ba1a6
[ "MIT" ]
2
2019-02-21T18:29:09.000Z
2021-01-27T14:52:46.000Z
urls.py
enisimsar/watchtower-news
222d2e52e76ef32ebb78eb325f4c32b64c0ba1a6
[ "MIT" ]
3
2018-11-22T08:34:04.000Z
2021-06-01T22:47:19.000Z
urls.py
enisimsar/watchtower-news
222d2e52e76ef32ebb78eb325f4c32b64c0ba1a6
[ "MIT" ]
1
2019-06-13T10:45:46.000Z
2019-06-13T10:45:46.000Z
""" Endpoints """ from handlers.auth import UserHandler, AuthHandler from handlers.base import StaticHandler from handlers.invitations import InvitationHandler, InvitationsHandler, InvitationPostHandler from handlers.logs import LogHandler, LogsHandler from handlers.swagger import SwaggerHandler from handlers.topics im...
26.566038
93
0.666903
45a5dd444dba72a08ec81120f4521eb550ac09a2
1,757
py
Python
src/compose.py
vimc/montagu
c9682b3e57cf25e75b5b7688f748c8dbe882666d
[ "MIT" ]
null
null
null
src/compose.py
vimc/montagu
c9682b3e57cf25e75b5b7688f748c8dbe882666d
[ "MIT" ]
59
2017-07-28T09:27:15.000Z
2021-11-01T17:16:59.000Z
src/compose.py
vimc/montagu
c9682b3e57cf25e75b5b7688f748c8dbe882666d
[ "MIT" ]
1
2020-09-23T11:08:34.000Z
2020-09-23T11:08:34.000Z
from subprocess import Popen from docker_helpers import montagu_registry import shutil import versions
26.223881
93
0.663631
45a6463ce5c3af0a8d920e0f6fb362535e3511bb
5,234
py
Python
bread/layout/components/notification.py
tpokorra/bread
6e6d0f91275ef5e580ad4fa0626472d3c2b5705b
[ "BSD-3-Clause" ]
null
null
null
bread/layout/components/notification.py
tpokorra/bread
6e6d0f91275ef5e580ad4fa0626472d3c2b5705b
[ "BSD-3-Clause" ]
null
null
null
bread/layout/components/notification.py
tpokorra/bread
6e6d0f91275ef5e580ad4fa0626472d3c2b5705b
[ "BSD-3-Clause" ]
null
null
null
import datetime import htmlgenerator from django.utils.translation import gettext as _ from .button import Button from .icon import Icon KIND_ICON_MAPPING = { "error": "error--filled", "info": "information--filled", "info-square": "information--square--filled", "success": "checkmark--filled", "wa...
33.126582
123
0.509553
45a8c0e961f64f8351c00134142cfebe4ed805f4
388
py
Python
Desafio53.py
VictorCastao/Curso-em-Video-Python
aeee8baaa73c04b839a27ae37ba24ecc0b863075
[ "MIT" ]
null
null
null
Desafio53.py
VictorCastao/Curso-em-Video-Python
aeee8baaa73c04b839a27ae37ba24ecc0b863075
[ "MIT" ]
null
null
null
Desafio53.py
VictorCastao/Curso-em-Video-Python
aeee8baaa73c04b839a27ae37ba24ecc0b863075
[ "MIT" ]
null
null
null
print('=' * 12 + 'Desafio 53' + '=' * 12) frase = input('Digite sua frase: ') frase = frase.strip().replace(" ","").upper() tamanho = len(frase) contador = 0 igual = 0 for i in range(tamanho - 1, -1, -1): if frase[contador] == frase[i]: igual += 1 contador += 1 if contador == tamanho: print('A frase...
25.866667
45
0.587629
45a932ed0daa8d90eab54ad2fe63256555a33c87
2,777
py
Python
example/pytorch/run.py
alibaba/sionnx
3f3e18826ddcc26402b4e2af96ca8aac15560456
[ "Apache-2.0" ]
34
2019-05-29T03:15:48.000Z
2022-03-24T03:14:58.000Z
example/pytorch/run.py
alibaba/sionnx
3f3e18826ddcc26402b4e2af96ca8aac15560456
[ "Apache-2.0" ]
1
2020-05-21T11:44:22.000Z
2020-05-21T11:44:22.000Z
example/pytorch/run.py
alibaba/sionnx
3f3e18826ddcc26402b4e2af96ca8aac15560456
[ "Apache-2.0" ]
4
2019-12-16T18:49:42.000Z
2021-10-11T18:41:54.000Z
#* #* Copyright (C) 2017-2019 Alibaba Group Holding Limited #* #* Licensed under the Apache License, Version 2.0 (the "License"); #* you may not use this file except in compliance with the License. #* You may obtain a copy of the License at #* #* http://www.apache.org/licenses/LICENSE-2.0 #* #* Unless required by ...
35.151899
100
0.673749
45a961e0e1f604b60a477e34ad903c8057c5ec23
877
py
Python
scripts/ipu/callbacks.py
BastienArcelin/IPU-GPU
dde946686478ce77a06821a1517b5b8206ab8de9
[ "BSD-3-Clause" ]
null
null
null
scripts/ipu/callbacks.py
BastienArcelin/IPU-GPU
dde946686478ce77a06821a1517b5b8206ab8de9
[ "BSD-3-Clause" ]
null
null
null
scripts/ipu/callbacks.py
BastienArcelin/IPU-GPU
dde946686478ce77a06821a1517b5b8206ab8de9
[ "BSD-3-Clause" ]
null
null
null
import sys, os import numpy as np import matplotlib.pyplot as plt from tensorflow.keras.callbacks import Callback, ReduceLROnPlateau, TerminateOnNaN, ModelCheckpoint import tensorflow.keras.backend as K import tensorflow as tf import time ###### Callbacks # Create a callback to compute time spent between 10th and 110t...
31.321429
99
0.616876
45a9f4fd71c58a688f030ddcf7a969454a4a8652
1,400
py
Python
ag/tests/test_metrics.py
justyre/jus
1339c010ac4499c253061d2cce5e638ec06062bd
[ "MIT" ]
null
null
null
ag/tests/test_metrics.py
justyre/jus
1339c010ac4499c253061d2cce5e638ec06062bd
[ "MIT" ]
null
null
null
ag/tests/test_metrics.py
justyre/jus
1339c010ac4499c253061d2cce5e638ec06062bd
[ "MIT" ]
null
null
null
"""Unit tests for the metrics module.""" import pytest from forest import metrics def test_counter(): """Test counter.""" counter = metrics.Counter() counter.increase() assert counter.count == 1 counter.increase(10) assert counter.count == 11 counter.decrease() assert c...
28.571429
87
0.642143
45aa3b7da60de08d1a053fb874e8708de93af93e
1,280
py
Python
appmap/test/conftest.py
calvinsomething/appmap-python
7234f7cdb240eadfa74a1e6021bc8695ceb60179
[ "MIT" ]
null
null
null
appmap/test/conftest.py
calvinsomething/appmap-python
7234f7cdb240eadfa74a1e6021bc8695ceb60179
[ "MIT" ]
null
null
null
appmap/test/conftest.py
calvinsomething/appmap-python
7234f7cdb240eadfa74a1e6021bc8695ceb60179
[ "MIT" ]
null
null
null
import importlib import pytest import yaml import appmap._implementation from appmap._implementation.env import Env from appmap._implementation.recording import Recorder
27.826087
82
0.714844
45aa576cd9312ff2a881e945aab29cabb485ed59
7,097
py
Python
occ_sim/animation.py
refmitchell/dcidb-supplemental-repository
44af88de1a51e61ee3b19eaf8823fe7e79d17a12
[ "MIT" ]
null
null
null
occ_sim/animation.py
refmitchell/dcidb-supplemental-repository
44af88de1a51e61ee3b19eaf8823fe7e79d17a12
[ "MIT" ]
null
null
null
occ_sim/animation.py
refmitchell/dcidb-supplemental-repository
44af88de1a51e61ee3b19eaf8823fe7e79d17a12
[ "MIT" ]
null
null
null
""" animation.py This script is used to procduce animations of population behaviour over a range of changing conditions. For example, if we wanted to see how a population would change as light was elevated and wind kept constant, we could produce the animation and watch the general trend. This was mostly useful for vi...
36.772021
122
0.610681
45acd3a5f2cd6ccaa0b7e6db6bf65eb041445b32
285
py
Python
Day18/turtle_dashed_line.py
CodePuzzler/100-Days-Of-Code-Python
4f6da9dabc73f747266ce0e66057d10754ecc54e
[ "MIT" ]
null
null
null
Day18/turtle_dashed_line.py
CodePuzzler/100-Days-Of-Code-Python
4f6da9dabc73f747266ce0e66057d10754ecc54e
[ "MIT" ]
null
null
null
Day18/turtle_dashed_line.py
CodePuzzler/100-Days-Of-Code-Python
4f6da9dabc73f747266ce0e66057d10754ecc54e
[ "MIT" ]
null
null
null
# Day18 of my 100DaysOfCode Challenge # Draw a dashed line using Turtle Graphics from turtle import Turtle, Screen groot = Turtle() for _ in range(15): groot.forward(10) groot.penup() groot.forward(10) groot.pendown() my_screen = Screen() my_screen.exitonclick()
15.833333
42
0.708772
45addf929fefc716794fc0840e1e7815bf960f1d
5,142
py
Python
src/rxn_network/reactions/open.py
GENESIS-EFRC/reaction-network
1482ac1b6b550a5bc9961e9210e33c86c07f64cf
[ "BSD-3-Clause-LBNL" ]
29
2020-08-04T07:07:04.000Z
2022-02-22T22:09:20.000Z
src/rxn_network/reactions/open.py
GENESIS-EFRC/reaction-network
1482ac1b6b550a5bc9961e9210e33c86c07f64cf
[ "BSD-3-Clause-LBNL" ]
70
2021-02-22T07:01:40.000Z
2022-03-31T20:11:56.000Z
src/rxn_network/reactions/open.py
GENESIS-EFRC/reaction-network
1482ac1b6b550a5bc9961e9210e33c86c07f64cf
[ "BSD-3-Clause-LBNL" ]
3
2021-04-20T09:29:39.000Z
2022-02-02T17:43:52.000Z
""" A reaction class that builds reactions based on ComputedEntry objects under the presence of an open entry (e.g. O2), and provides information about reaction thermodynamics computed as changes in grand potential. """ from typing import Dict, List, Optional, Union import numpy as np from pymatgen.analysis.phase_di...
29.215909
87
0.586153