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
5b5ae9e5749ec7396c079711e82dc60783ccf32d
6,449
py
Python
interpreter-server/buzzcommander.py
Anglia-Ruskin-IoT-Labs/avs-device-sdk
68d4446b3ecbb81cab73d7701ec909f5f3603316
[ "Apache-2.0" ]
null
null
null
interpreter-server/buzzcommander.py
Anglia-Ruskin-IoT-Labs/avs-device-sdk
68d4446b3ecbb81cab73d7701ec909f5f3603316
[ "Apache-2.0" ]
null
null
null
interpreter-server/buzzcommander.py
Anglia-Ruskin-IoT-Labs/avs-device-sdk
68d4446b3ecbb81cab73d7701ec909f5f3603316
[ "Apache-2.0" ]
1
2018-08-22T14:35:08.000Z
2018-08-22T14:35:08.000Z
#!/usr/bin/python3 import socket # used for TCP/IP communication import smtplib # used to send email report import time # used to insert current date in email report import threading
27.917749
86
0.609862
5b5b5de9cc4bb46f2ff5bbbe7a01860b9bf18703
17,997
py
Python
pointcloud_diff/scripts/PointCloudDiff.py
565353780/pytorch-voxblox-plus-plus
fd319495b36651cf8c0c9244e0f664fac1afd5ca
[ "BSD-3-Clause" ]
null
null
null
pointcloud_diff/scripts/PointCloudDiff.py
565353780/pytorch-voxblox-plus-plus
fd319495b36651cf8c0c9244e0f664fac1afd5ca
[ "BSD-3-Clause" ]
null
null
null
pointcloud_diff/scripts/PointCloudDiff.py
565353780/pytorch-voxblox-plus-plus
fd319495b36651cf8c0c9244e0f664fac1afd5ca
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import numpy as np import open3d as o3d from time import time, sleep import rospy from sensor_msgs.point_cloud2 import read_points from vpp_msgs.srv import GetMap from tensorboard_logger_ros.msg import Scalar from tensorboard_logger_ros.srv import ScalarToBool ...
40.902273
97
0.64483
5b5bca6fb329af46502ecd4b3cff5294fef66f40
1,314
py
Python
tests/pup/sensors/color_color.py
cschlack/pybricks-micropython
0abfd2918267a4e6e7a04062976ac1bb3da1f4b1
[ "MIT" ]
115
2020-06-15T16:43:14.000Z
2022-03-21T21:11:57.000Z
tests/pup/sensors/color_color.py
cschlack/pybricks-micropython
0abfd2918267a4e6e7a04062976ac1bb3da1f4b1
[ "MIT" ]
83
2020-06-17T17:19:29.000Z
2022-03-08T18:50:35.000Z
tests/pup/sensors/color_color.py
BertLindeman/pybricks-micropython
8f22a99551100e66ddf08d014d9f442f22b33b4d
[ "MIT" ]
40
2020-06-15T18:36:39.000Z
2022-03-28T13:22:43.000Z
# SPDX-License-Identifier: MIT # Copyright (c) 2020 The Pybricks Authors """ Hardware Module: 1 Description: Verifies color sensing and calibration capability. """ from pybricks.pupdevices import Motor, ColorSensor, UltrasonicSensor from pybricks.parameters import Port, Color # Initialize devices. motor = Motor(Por...
26.816327
92
0.702435
5b5c888bbb8125ae3ac660dfc5ba639abf84f105
3,406
py
Python
software/firmware/data_dump.py
lab11/polypoint
0a21b19db7d00c0b0d9b523a54a6b243a5e64bac
[ "Apache-2.0" ]
132
2015-05-16T10:19:15.000Z
2022-03-17T22:11:49.000Z
software/module/firmware/data_dump.py
pinsonc/totternary
b938123bec8264927984740f7b435ab0b9ebdbd8
[ "Apache-2.0" ]
14
2015-05-27T07:55:43.000Z
2018-06-27T22:57:47.000Z
software/module/firmware/data_dump.py
pinsonc/totternary
b938123bec8264927984740f7b435ab0b9ebdbd8
[ "Apache-2.0" ]
56
2015-06-27T09:51:13.000Z
2022-01-22T17:02:42.000Z
#!/usr/bin/env python3 import argparse import binascii import os import struct import sys import serial import numpy as np import scipy.io as sio parser = argparse.ArgumentParser() parser.add_argument('-s', '--serial', default='/dev/tty.usbserial-AL00EZAS') parser.add_argument('-b', '--baudrate', default=3000000,...
24.328571
79
0.66882
5b5d9409fdb39d2207c6932a117449e41deba2c3
15,427
py
Python
percolation/text/ks.py
ttm/percolate
cfdf5380c8d155424ab97bdab85edde8b6f0ec9f
[ "MIT" ]
1
2020-06-11T01:34:25.000Z
2020-06-11T01:34:25.000Z
percolation/text/ks.py
ttm/percolate
cfdf5380c8d155424ab97bdab85edde8b6f0ec9f
[ "MIT" ]
null
null
null
percolation/text/ks.py
ttm/percolate
cfdf5380c8d155424ab97bdab85edde8b6f0ec9f
[ "MIT" ]
null
null
null
__doc__="routines for selected Kolmogorov-Smirnov related statistics on text analysis" import numbers ############# OLD def selectedComparisons(samples_dict): """Return selected comparisons from samples obtained from text analysis""" sectors="peripherals","intermediar...
82.497326
251
0.652168
5b5f3d38d66083adf3fa27d5150cb13f0c26d96e
4,642
py
Python
venv/Lib/site-packages/pyshorteners/base.py
arturj9/encurtar-link
2e5bfdd2b2525f10f41942c79cb45cc4e43a24ee
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyshorteners/base.py
arturj9/encurtar-link
2e5bfdd2b2525f10f41942c79cb45cc4e43a24ee
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyshorteners/base.py
arturj9/encurtar-link
2e5bfdd2b2525f10f41942c79cb45cc4e43a24ee
[ "MIT" ]
null
null
null
import requests import re from .exceptions import BadURLException, ExpandingErrorException URL_RE = re.compile( r"(?i)\b((?:https?://|www\d{0,3}[.]|[a-z0-9.\-]+[.]" r"[a-z]{2,4}/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)" r"))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()" r'\[\]{};:\'".,<>?]))...
29.948387
122
0.554718
5b5fb3612eed2c2c094b3078cd58aaf1ac0191cc
3,937
py
Python
walletUI/wallet/views.py
avinashshenoy97/brownie-points
27eb1e9a5ab685e72a5b701c0f76af44d9700960
[ "MIT" ]
1
2020-11-25T12:14:40.000Z
2020-11-25T12:14:40.000Z
walletUI/wallet/views.py
avinashshenoy97/brownie-points
27eb1e9a5ab685e72a5b701c0f76af44d9700960
[ "MIT" ]
null
null
null
walletUI/wallet/views.py
avinashshenoy97/brownie-points
27eb1e9a5ab685e72a5b701c0f76af44d9700960
[ "MIT" ]
null
null
null
from django.shortcuts import render from rest_framework import status from rest_framework.views import APIView from rest_framework.response import Response import requests import os,sys,inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(currentdi...
40.173469
236
0.712217
5b62f118e2ffc9dd673f3068d8b01e2b12d22cc7
1,362
py
Python
tests/test_template.py
furbrain/CVExplorer
1283e3320ef7bb610b1044543614dd1b96740e52
[ "MIT" ]
null
null
null
tests/test_template.py
furbrain/CVExplorer
1283e3320ef7bb610b1044543614dd1b96740e52
[ "MIT" ]
null
null
null
tests/test_template.py
furbrain/CVExplorer
1283e3320ef7bb610b1044543614dd1b96740e52
[ "MIT" ]
null
null
null
from unittest import TestCase import os.path import cv2 from lxml import html from functions import ParameterTemplate from functions.template import FunctionTemplate FIXTURES_FILTER_HTML = "/usr/share/doc/opencv-doc/opencv4/html/d4/d86/group__imgproc__filter.html" FIXTURES_FRAGMENT_HTML = os.path.join(os.path.dirname...
32.428571
98
0.65859
5b6372f2718a1820477d44a40467e6e54ef84811
3,662
py
Python
Eric/day3.py
efacks68/codingjuntos_advent2020
1d7ef6278616716ad62a5f3af3fa0419173b6dc1
[ "MIT" ]
1
2020-12-02T20:16:16.000Z
2020-12-02T20:16:16.000Z
Eric/day3.py
efacks68/codingjuntos_advent2020
1d7ef6278616716ad62a5f3af3fa0419173b6dc1
[ "MIT" ]
null
null
null
Eric/day3.py
efacks68/codingjuntos_advent2020
1d7ef6278616716ad62a5f3af3fa0419173b6dc1
[ "MIT" ]
null
null
null
#Day3: Toboggan Trajectory #Part1: Starting in Top-Left Corner, follow a slope of Right 3 and Down 1. f=open("input_day3.txt") lines=f.readlines() #read in each line f.close() #print("lines\n",lines) length=0 mnt=[] for row in lines: mnt.append(str(row)) #move into new list for easier manipulation length=leng...
19.902174
95
0.534134
5b65b745e1b964b05f2af0b1c1dc9c88bdbc1879
235
py
Python
equipment_slots.py
BTmathic/game-template
77765b1340e51828cc9216b4239f558c251859ce
[ "MIT" ]
1
2019-09-01T20:15:52.000Z
2019-09-01T20:15:52.000Z
equipment_slots.py
BTmathic/game-template
77765b1340e51828cc9216b4239f558c251859ce
[ "MIT" ]
null
null
null
equipment_slots.py
BTmathic/game-template
77765b1340e51828cc9216b4239f558c251859ce
[ "MIT" ]
null
null
null
from enum import auto, Enum
16.785714
27
0.561702
5b661a4cf2786a6eea1f2601c3dbb8569290c20d
1,130
py
Python
alembic/versions/452902fab185_added_auth_related_f.py
go-lab/appcomposer
c2468f11b8398edc9b16e1552ac8d609d8347677
[ "BSD-2-Clause" ]
1
2018-01-20T14:56:01.000Z
2018-01-20T14:56:01.000Z
alembic/versions/452902fab185_added_auth_related_f.py
go-lab/appcomposer
c2468f11b8398edc9b16e1552ac8d609d8347677
[ "BSD-2-Clause" ]
25
2015-01-21T09:16:26.000Z
2021-12-13T20:01:21.000Z
alembic/versions/452902fab185_added_auth_related_f.py
go-lab/appcomposer
c2468f11b8398edc9b16e1552ac8d609d8347677
[ "BSD-2-Clause" ]
3
2015-07-28T18:40:05.000Z
2017-03-28T08:14:37.000Z
"""Added auth-related fields to User Revision ID: 452902fab185 Revises: 501404b36cef Create Date: 2013-09-24 12:42:04.461000 """ # revision identifiers, used by Alembic. revision = '452902fab185' down_revision = '501404b36cef' from alembic import op import sqlalchemy as sa def upgrade(): ### ...
1,130
1,130
0.678761
5b67bc4f2ecf30bc3a0aaebd74c2275fbbb3a19f
129
py
Python
POO/ex04/main.py
isachlopes/Python_Orientado_Objetos
d3b79eff0585cca0786e4c99d0c79d01ef515e61
[ "MIT" ]
null
null
null
POO/ex04/main.py
isachlopes/Python_Orientado_Objetos
d3b79eff0585cca0786e4c99d0c79d01ef515e61
[ "MIT" ]
null
null
null
POO/ex04/main.py
isachlopes/Python_Orientado_Objetos
d3b79eff0585cca0786e4c99d0c79d01ef515e61
[ "MIT" ]
null
null
null
a = A() b = A() a.vc = 432 print(a.vc) print(b.vc) print(A.vc)
12.9
23
0.503876
5b67f1793b6c11e57fe44b1e696b1c4e3fffbe2b
343
py
Python
core/forms.py
olunx/xTrade
6d9c7651c46d8d53c4a6998b76f372802745c1f0
[ "Apache-2.0" ]
null
null
null
core/forms.py
olunx/xTrade
6d9c7651c46d8d53c4a6998b76f372802745c1f0
[ "Apache-2.0" ]
null
null
null
core/forms.py
olunx/xTrade
6d9c7651c46d8d53c4a6998b76f372802745c1f0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'olunx' from django.forms import ModelForm from core.models import ProductItem
28.583333
145
0.705539
5b6848b8710fcce4dc8ab6725a2afbe088dcdcab
1,200
py
Python
make_cache.py
jdh4/tigergpu_visualization
770697124e6c8e04432db08002107dbd694e233b
[ "CNRI-Python" ]
null
null
null
make_cache.py
jdh4/tigergpu_visualization
770697124e6c8e04432db08002107dbd694e233b
[ "CNRI-Python" ]
null
null
null
make_cache.py
jdh4/tigergpu_visualization
770697124e6c8e04432db08002107dbd694e233b
[ "CNRI-Python" ]
1
2020-05-26T15:13:15.000Z
2020-05-26T15:13:15.000Z
#!/usr/licensed/anaconda3/2020.11/bin/python base = "/home/jdh4/bin/gpus" import sys sys.path = list(filter(lambda p: p.startswith("/usr"), sys.path)) sys.path.append(base) import json import subprocess import pandas as pd from dossier import ldap_plus if 1: rows = [] with open(base + "/utilization.json") as f...
31.578947
75
0.675833
5b68dabbc6ef27b5064c767d7bec2e0782be79bd
4,777
py
Python
test_of_inheritance_2.py
JRF-2018/simbd
7a453562331cf5b41187a8c69e18ec3378004dc1
[ "ClArtistic" ]
null
null
null
test_of_inheritance_2.py
JRF-2018/simbd
7a453562331cf5b41187a8c69e18ec3378004dc1
[ "ClArtistic" ]
10
2021-09-05T13:15:50.000Z
2022-02-10T06:48:46.000Z
test_of_inheritance_2.py
JRF-2018/simbd
7a453562331cf5b41187a8c69e18ec3378004dc1
[ "ClArtistic" ]
null
null
null
#!/usr/bin/python3 __version__ = '0.0.3' # Time-stamp: <2021-10-16T01:25:51Z> ## Language: Japanese/UTF-8 """""" ## ## License: ## ## Public Domain ## (Since this small code is close to be mathematically trivial.) ## ## Author: ## ## JRF ## http://jrf.cocolog-nifty.com/software/ ## (The page...
28.777108
78
0.515386
5b6b492e6ec14da57db531db52f34774d727d4cb
8,345
py
Python
detectron/ops/pcl.py
sisrfeng/NA-fWebSOD
49cb75a9a0d557b05968c6b11b0f17a7043f2077
[ "Apache-2.0" ]
23
2020-03-30T11:48:33.000Z
2022-03-11T06:34:31.000Z
detectron/ops/pcl.py
sisrfeng/NA-fWebSOD
49cb75a9a0d557b05968c6b11b0f17a7043f2077
[ "Apache-2.0" ]
9
2020-09-28T07:15:16.000Z
2022-03-25T08:11:06.000Z
detectron/ops/pcl.py
sisrfeng/NA-fWebSOD
49cb75a9a0d557b05968c6b11b0f17a7043f2077
[ "Apache-2.0" ]
10
2020-03-30T11:48:34.000Z
2021-06-02T06:12:36.000Z
import numpy as np from sklearn.cluster import KMeans from detectron.core.config import cfg import detectron.utils.boxes as box_utils try: xrange # Python 2 except NameError: xrange = range # Python 3 cfg_TRAIN_NUM_KMEANS_CLUSTER = 3 cfg_RNG_SEED = 3 cfg_TRAIN_GRAPH_IOU_THRESHOLD = 0.4 cfg_TRAIN_MA...
38.279817
119
0.637987
5b6b52bea6e9b40479b6ac3698397020ea08e793
19,109
py
Python
services/python-images/src/master/resources/distributions.py
hpi-epic/mpcsl
05361acb0c8da68ddfa21f9fc9cd32a59255dc5c
[ "MIT" ]
1
2021-11-21T13:52:36.000Z
2021-11-21T13:52:36.000Z
services/python-images/src/master/resources/distributions.py
hpi-epic/mpcsl
05361acb0c8da68ddfa21f9fc9cd32a59255dc5c
[ "MIT" ]
3
2021-10-06T13:23:43.000Z
2022-01-07T13:48:41.000Z
services/python-images/src/master/resources/distributions.py
hpi-epic/mpcsl
05361acb0c8da68ddfa21f9fc9cd32a59255dc5c
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from flask_restful import Resource from flask_restful_swagger_2 import swagger from marshmallow import fields, validates, Schema, ValidationError from src.master.helpers.database import get_db_session from src.master.helpers.io import marshal, load_data, InvalidInputData from src...
46.045783
120
0.55466
5b6bb41cad09b43e1affc7f6d78a3d1d1f98f54b
567
py
Python
realtors/models.py
TonyKioko/PropertySasa
58182174e2ac3caacf2cc6623d184d165b20c70c
[ "MIT" ]
null
null
null
realtors/models.py
TonyKioko/PropertySasa
58182174e2ac3caacf2cc6623d184d165b20c70c
[ "MIT" ]
null
null
null
realtors/models.py
TonyKioko/PropertySasa
58182174e2ac3caacf2cc6623d184d165b20c70c
[ "MIT" ]
null
null
null
from django.db import models from datetime import datetime # Create your models here
33.352941
70
0.742504
5b6d0b9a2cc4d233d101441bb10f47418da9b63d
472
py
Python
cookies/resources/set.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
8
2019-04-09T21:13:05.000Z
2021-11-23T17:25:18.000Z
cookies/resources/set.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
21
2021-03-31T19:48:22.000Z
2022-03-12T00:24:53.000Z
cookies/resources/set.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
11
2019-04-12T01:20:16.000Z
2021-11-23T17:25:02.000Z
import helpers import urllib def main(request, response): """Respond to `/cookie/set?{cookie}` by echoing `{cookie}` as a `Set-Cookie` header.""" headers = helpers.setNoCacheAndCORSHeaders(request, response) # Cookies may require whitespace (e.g. in the `Expires` attribute), so the # query string shou...
33.714286
91
0.699153
5b6da9f79d2796f8456fd3c992ddac850201f870
18,233
py
Python
ginga/qtw/plugins/Pick.py
Rbeaty88/ginga
08451a81288b8defc54aa9f9e2af23a9ba32e985
[ "BSD-3-Clause" ]
1
2016-03-21T15:56:15.000Z
2016-03-21T15:56:15.000Z
ginga/qtw/plugins/Pick.py
Rbeaty88/ginga
08451a81288b8defc54aa9f9e2af23a9ba32e985
[ "BSD-3-Clause" ]
null
null
null
ginga/qtw/plugins/Pick.py
Rbeaty88/ginga
08451a81288b8defc54aa9f9e2af23a9ba32e985
[ "BSD-3-Clause" ]
null
null
null
# # Pick.py -- Pick plugin for Ginga fits viewer # # Eric Jeschke (eric@naoj.org) # # Copyright (c) Eric R. Jeschke. All rights reserved. # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # from ginga.qtw.QtHelp import QtGui, QtCore from ginga.qtw import QtHel...
34.401887
133
0.577744
5b6e37dbd3c20d60ef9b914f23cdbf88dd577984
208
py
Python
elastic/api/urls.py
deam91/elastic
f5fb20f9afb6669974567fd39e6e261c704d3c54
[ "MIT" ]
null
null
null
elastic/api/urls.py
deam91/elastic
f5fb20f9afb6669974567fd39e6e261c704d3c54
[ "MIT" ]
2
2021-06-09T18:42:49.000Z
2021-06-10T20:40:15.000Z
elastic/api/urls.py
deam91/elastic
f5fb20f9afb6669974567fd39e6e261c704d3c54
[ "MIT" ]
null
null
null
from django.urls import path from elastic.api.views import GoogleView, AppleView urlpatterns = [ path('auth/google/verify/', GoogleView.as_view()), path('auth/apple/verify/', AppleView.as_view()) ]
23.111111
54
0.725962
5b6eeef2c71aa760c9baadb4c5a6e2140938fb6a
4,992
py
Python
iqa_common/executor/command_base.py
fgiorgetti/qpid-dispatch-tests
164c609d28db87692eed53d5361aa1ee5c97375c
[ "Apache-2.0" ]
1
2020-12-21T14:06:52.000Z
2020-12-21T14:06:52.000Z
iqa_common/executor/command_base.py
fgiorgetti/qpid-dispatch-tests
164c609d28db87692eed53d5361aa1ee5c97375c
[ "Apache-2.0" ]
6
2018-10-19T17:04:50.000Z
2019-05-20T19:54:40.000Z
iqa_common/executor/command_base.py
fgiorgetti/qpid-dispatch-tests
164c609d28db87692eed53d5361aa1ee5c97375c
[ "Apache-2.0" ]
1
2018-09-19T13:43:35.000Z
2018-09-19T13:43:35.000Z
""" Provides representation for Commands that can be executed against Executor instances. """ def add_interrupt_callback(self, callback_method): """ Adds a callback method to a list of methods that will be called in case this execution is interrupted. Following argument types will ...
37.253731
108
0.64984
5b723c49946f52cdac915a09e27adab029ad9a35
715
py
Python
django2/simpleDemo/blog/views.py
Gozeon/code-collections
7304e2b9c4c91a809125198d22cf40dcbb45a23b
[ "MIT" ]
null
null
null
django2/simpleDemo/blog/views.py
Gozeon/code-collections
7304e2b9c4c91a809125198d22cf40dcbb45a23b
[ "MIT" ]
1
2020-07-17T09:25:42.000Z
2020-07-17T09:25:42.000Z
django2/simpleDemo/blog/views.py
Gozeon/code-collections
7304e2b9c4c91a809125198d22cf40dcbb45a23b
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from .models import Comment from .forms import CommentForm
28.6
66
0.622378
5b72e1c67050eefbe47eb859b61a29f96962f2cb
2,668
py
Python
polls/models.py
vowatchka/fabrique_test_task
a876321c8c3c3197ce692f247af973432ebf84cf
[ "MIT" ]
null
null
null
polls/models.py
vowatchka/fabrique_test_task
a876321c8c3c3197ce692f247af973432ebf84cf
[ "MIT" ]
null
null
null
polls/models.py
vowatchka/fabrique_test_task
a876321c8c3c3197ce692f247af973432ebf84cf
[ "MIT" ]
null
null
null
from django.db import models
32.144578
133
0.688906
5b73957f0a22b9435187079c42d5be88539e176e
2,572
py
Python
scripts/create_cluster.py
rnrbarbosa/CDPDCTrial
aecff49971ba35b6ec02d04846c1ff891d8bca45
[ "Apache-2.0" ]
7
2020-08-04T20:09:22.000Z
2022-01-09T05:05:39.000Z
scripts/create_cluster.py
rnrbarbosa/CDPDCTrial
aecff49971ba35b6ec02d04846c1ff891d8bca45
[ "Apache-2.0" ]
1
2020-12-09T13:18:45.000Z
2022-01-08T17:41:39.000Z
scripts/create_cluster.py
rnrbarbosa/CDPDCTrial
aecff49971ba35b6ec02d04846c1ff891d8bca45
[ "Apache-2.0" ]
14
2020-09-03T14:19:10.000Z
2022-02-21T20:03:31.000Z
from __future__ import print_function import cm_client from cm_client.rest import ApiException from collections import namedtuple from pprint import pprint import json import time import sys cm_client.configuration.username = 'admin' cm_client.configuration.password = 'admin' api_client = cm_client.ApiClient("http://...
27.956522
115
0.692846
5b73b791ebd04c2f9222a3d5b07d99e182af0ec3
447
py
Python
codefestival_2016_final_b.py
hythof/atc
12cb94ebe693e1f469ce0d982bc2924b586552cd
[ "CC0-1.0" ]
null
null
null
codefestival_2016_final_b.py
hythof/atc
12cb94ebe693e1f469ce0d982bc2924b586552cd
[ "CC0-1.0" ]
null
null
null
codefestival_2016_final_b.py
hythof/atc
12cb94ebe693e1f469ce0d982bc2924b586552cd
[ "CC0-1.0" ]
null
null
null
n=int(input()) printLines(n,findMax(n))
17.88
28
0.373602
5b761dac9e8c8e3725ba145eacfb8d3f0a3908ed
4,914
py
Python
srcSim/model_neuronmodels.py
Olimaol/BOLDpaper2021
a5aaa7f69b6938b4c7b46446ce73e2967c08bbf6
[ "MIT" ]
1
2021-11-02T18:55:22.000Z
2021-11-02T18:55:22.000Z
srcSim/model_neuronmodels.py
hamkerlab/Maith2021_ANNarchyBOLDmonitor
e50af332703ee257a0cd8e30437cdfa4f44893aa
[ "MIT" ]
null
null
null
srcSim/model_neuronmodels.py
hamkerlab/Maith2021_ANNarchyBOLDmonitor
e50af332703ee257a0cd8e30437cdfa4f44893aa
[ "MIT" ]
null
null
null
from ANNarchy import * from ANNarchy.extensions.bold.PredefinedModels import balloon_two_inputs from ANNarchy.extensions.bold import BoldModel from parameters import params, rng setup(dt=params['dt']) setup(num_threads=params['num_threads']) setup(seed=params['seed']) Constant('RS_v_r',params['RS_v_r']) Constant('FS_v...
32.328947
132
0.47558
5b7674325078da66bb522f08c9f888feac4e3166
483
py
Python
test/test_pre_flight.py
gregbanks/atlascli
381966c4a042c3769d14167d5db7b5abb9a7c6e0
[ "Apache-2.0" ]
null
null
null
test/test_pre_flight.py
gregbanks/atlascli
381966c4a042c3769d14167d5db7b5abb9a7c6e0
[ "Apache-2.0" ]
null
null
null
test/test_pre_flight.py
gregbanks/atlascli
381966c4a042c3769d14167d5db7b5abb9a7c6e0
[ "Apache-2.0" ]
null
null
null
import unittest from atlascli.commands import Commands from atlascli.atlasmap import AtlasMap if __name__ == '__main__': unittest.main()
24.15
48
0.652174
5b7677628f641cd87d475d7900b08a0f1f9a0cc8
2,641
py
Python
tests/domain/test_Instrument_perform.py
josiah-wolf-oberholtzer/tloen
731e57f2a0634d5e472c5878ff5b9cc7b4d84974
[ "MIT" ]
3
2020-02-09T09:29:45.000Z
2021-12-29T01:37:45.000Z
tests/domain/test_Instrument_perform.py
josiah-wolf-oberholtzer/tloen
731e57f2a0634d5e472c5878ff5b9cc7b4d84974
[ "MIT" ]
null
null
null
tests/domain/test_Instrument_perform.py
josiah-wolf-oberholtzer/tloen
731e57f2a0634d5e472c5878ff5b9cc7b4d84974
[ "MIT" ]
1
2020-12-12T22:29:48.000Z
2020-12-12T22:29:48.000Z
import asyncio import pytest from supriya.assets.synthdefs import default from uqbar.strings import normalize from tloen.domain import Application, Instrument from tloen.midi import NoteOnMessage
37.728571
97
0.595608
5b76d1c0d954a8965e785d0d46268bbbacc88062
1,357
py
Python
idealplanets/environment.py
bnb32/spring_onset
f856e839c38c7eb72c8f6148fa1c82e880925370
[ "MIT" ]
null
null
null
idealplanets/environment.py
bnb32/spring_onset
f856e839c38c7eb72c8f6148fa1c82e880925370
[ "MIT" ]
null
null
null
idealplanets/environment.py
bnb32/spring_onset
f856e839c38c7eb72c8f6148fa1c82e880925370
[ "MIT" ]
null
null
null
import os USERNAME='bbenton' PROJECT_CODE='UCOR0044' MAIN_DIR='/glade/u/home/'+USERNAME+'/spring_onset/' MY_CESM_DIR=MAIN_DIR+'/my_cesm' POST_PROC_DIR=MAIN_DIR+'/idealplanets/postprocessing/' PRE_PROC_DIR=MAIN_DIR+'/idealplanets/preprocessing/' SCRATCH_DIR='/glade/scratch/'+USERNAME+'/' CIME_OUTPUT_ROOT=SCRATCH_DIR+'/...
37.694444
75
0.812822
5b77172878c48e201c7ca6f3a1acef26fd66d49d
5,316
py
Python
app/services/routes/service.py
codepointtku/viuhka-flask
e51382a306675efabebe2a47d0ae54b7abcdb884
[ "MIT" ]
null
null
null
app/services/routes/service.py
codepointtku/viuhka-flask
e51382a306675efabebe2a47d0ae54b7abcdb884
[ "MIT" ]
1
2021-06-02T00:32:26.000Z
2021-06-02T00:32:26.000Z
app/services/routes/service.py
codepointtku/viuhka-flask
e51382a306675efabebe2a47d0ae54b7abcdb884
[ "MIT" ]
1
2019-11-29T05:46:59.000Z
2019-11-29T05:46:59.000Z
from flask import Blueprint, render_template, request, redirect, Response, url_for from flask_login import login_required, current_user from flask_wtf.csrf import validate_csrf from app.services.models.service import ( Service, get_services...
40.580153
135
0.569789
5b784884f3f3becd440432e2e673aa3c849de8b5
915
py
Python
tests/test_webhook.py
unfoldingWord-dev/door43-catalog-job-handler
d08ac8d6b31fb16063c103113cf338b624f10257
[ "MIT" ]
null
null
null
tests/test_webhook.py
unfoldingWord-dev/door43-catalog-job-handler
d08ac8d6b31fb16063c103113cf338b624f10257
[ "MIT" ]
null
null
null
tests/test_webhook.py
unfoldingWord-dev/door43-catalog-job-handler
d08ac8d6b31fb16063c103113cf338b624f10257
[ "MIT" ]
null
null
null
import json from unittest import TestCase, skip from unittest.mock import patch from app_settings.app_settings import AppSettings from rq_settings import prefix, webhook_queue_name from webhook import process_webhook_job
27.727273
77
0.734426
5b78c81118416d931976b8f9e56f5af3adf5b603
5,799
py
Python
src/idom/backend/starlette.py
jmtaysom/idom
d2a569d27f915d3b2b1fc6eb8eef9aca3a6d9343
[ "MIT" ]
55
2019-02-28T23:58:42.000Z
2020-07-14T22:01:45.000Z
src/idom/backend/starlette.py
jmtaysom/idom
d2a569d27f915d3b2b1fc6eb8eef9aca3a6d9343
[ "MIT" ]
72
2019-04-04T18:46:30.000Z
2020-06-24T02:47:57.000Z
src/idom/backend/starlette.py
jmtaysom/idom
d2a569d27f915d3b2b1fc6eb8eef9aca3a6d9343
[ "MIT" ]
7
2019-04-02T17:53:30.000Z
2020-06-23T16:17:58.000Z
from __future__ import annotations import asyncio import json import logging from dataclasses import dataclass from typing import Any, Awaitable, Callable, Dict, Tuple, Union from starlette.applications import Starlette from starlette.middleware.cors import CORSMiddleware from starlette.staticfiles import StaticFiles...
32.038674
88
0.703914
5b79cabe84902f79ff0d8c0db3006962e902cb92
650
py
Python
python/tests/strings/test_lsd_string_sort.py
rcanepa/cs-fundamentals
b362fc206417501e53a5739df1edf7568901eef8
[ "MIT" ]
null
null
null
python/tests/strings/test_lsd_string_sort.py
rcanepa/cs-fundamentals
b362fc206417501e53a5739df1edf7568901eef8
[ "MIT" ]
null
null
null
python/tests/strings/test_lsd_string_sort.py
rcanepa/cs-fundamentals
b362fc206417501e53a5739df1edf7568901eef8
[ "MIT" ]
null
null
null
import unittest from strings.lsd_string_sort import lsd_sort
25
59
0.526154
5b7ceb722e2e31b6203402c457d5bed34c5fdffb
458
py
Python
src/python/pants/backend/experimental/kotlin/lint/ktlint/register.py
wonlay/pants
53c66503b6898e83c9c9596e56cde5ad9ed6a0d3
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/experimental/kotlin/lint/ktlint/register.py
wonlay/pants
53c66503b6898e83c9c9596e56cde5ad9ed6a0d3
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/experimental/kotlin/lint/ktlint/register.py
wonlay/pants
53c66503b6898e83c9c9596e56cde5ad9ed6a0d3
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from pants.backend.experimental.scala.register import rules as all_kotlin_rules from pants.backend.kotlin.lint.ktlint import rules as ktlint_rules from pants.backend.kotlin.lint.ktlint imp...
30.533333
79
0.740175
5b7fc793ffe2598f7fc3e99084535d7e8a02825e
2,523
py
Python
Neville.py
VdeThevenin/Lagrange-Neville
35081615556d405dba30f874494e382ea5881817
[ "CC0-1.0" ]
null
null
null
Neville.py
VdeThevenin/Lagrange-Neville
35081615556d405dba30f874494e382ea5881817
[ "CC0-1.0" ]
null
null
null
Neville.py
VdeThevenin/Lagrange-Neville
35081615556d405dba30f874494e382ea5881817
[ "CC0-1.0" ]
null
null
null
""" Lagrange's Interpolation class File """ import sympy as sp import numpy as np from time import process_time as timer
31.5375
120
0.442727
5b808a99380bd94afac98d7d0e9d8f814414f64f
1,103
py
Python
tests/test_fuzzy_matching.py
zhangkaizhao/supportbot
03c8e1761a3450614b53c3bdc8c5c33af1f186ec
[ "MIT" ]
1
2019-02-27T06:07:17.000Z
2019-02-27T06:07:17.000Z
tests/test_fuzzy_matching.py
zhangkaizhao/supportbot
03c8e1761a3450614b53c3bdc8c5c33af1f186ec
[ "MIT" ]
null
null
null
tests/test_fuzzy_matching.py
zhangkaizhao/supportbot
03c8e1761a3450614b53c3bdc8c5c33af1f186ec
[ "MIT" ]
null
null
null
from supportbot.bots import FuzzyMatchingSupportbot from helpers import get_fixture_filepath
21.627451
51
0.715322
5b808ed1b42ee2bf4fcd01d4c2489a179a5aa41b
6,668
py
Python
experiments/firefox_send/Flask_App.py
olegtaranenko/gw-proxy-serverless
afb5d7b7cfaf6bfb82bafe951e45c76a11a0ffd3
[ "Apache-2.0" ]
null
null
null
experiments/firefox_send/Flask_App.py
olegtaranenko/gw-proxy-serverless
afb5d7b7cfaf6bfb82bafe951e45c76a11a0ffd3
[ "Apache-2.0" ]
null
null
null
experiments/firefox_send/Flask_App.py
olegtaranenko/gw-proxy-serverless
afb5d7b7cfaf6bfb82bafe951e45c76a11a0ffd3
[ "Apache-2.0" ]
null
null
null
import json import sys from websocket import create_connection sys.path.append('.') sys.path.append('./modules/OSBot-Utils') from osbot_utils.utils.Files import Files from flask import Flask,request,redirect,Response #from flask_socketio import SocketIO, emit import requests from gw_proxy.api.Http_Proxy import Http...
38.543353
140
0.59913
5b811e8a4de244fe71aecf47d57dd7da4e293d80
1,029
py
Python
spectrumuncurver/test/test_spectroCurbatureCorrection.py
DCC-Lab/spectrumuncurver
b885cfc3d253e11103700eb45a7672b8bf228479
[ "Apache-2.0" ]
null
null
null
spectrumuncurver/test/test_spectroCurbatureCorrection.py
DCC-Lab/spectrumuncurver
b885cfc3d253e11103700eb45a7672b8bf228479
[ "Apache-2.0" ]
null
null
null
spectrumuncurver/test/test_spectroCurbatureCorrection.py
DCC-Lab/spectrumuncurver
b885cfc3d253e11103700eb45a7672b8bf228479
[ "Apache-2.0" ]
1
2020-07-20T13:53:42.000Z
2020-07-20T13:53:42.000Z
from unittest import TestCase from .. .spectrumuncurver import SpectrumUncurver from PIL import Image from scipy.optimize import curve_fit import numpy as np from matplotlib import pyplot as plt
27.078947
70
0.703596
5b81b6e72801fe7e0ba9d0279ad1862ad020abe7
4,286
py
Python
aldryn_accounts/utils.py
conformist-mw/aldryn-accounts
e4bd60354547945a8e80cc692c0080582dd0d846
[ "MIT" ]
null
null
null
aldryn_accounts/utils.py
conformist-mw/aldryn-accounts
e4bd60354547945a8e80cc692c0080582dd0d846
[ "MIT" ]
1
2019-05-29T03:49:39.000Z
2019-05-29T09:40:04.000Z
aldryn_accounts/utils.py
conformist-mw/aldryn-accounts
e4bd60354547945a8e80cc692c0080582dd0d846
[ "MIT" ]
6
2019-03-05T15:19:26.000Z
2021-12-16T20:50:21.000Z
# -*- coding: utf-8 -*- import hashlib import logging import os import uuid import importlib from django.conf import settings from django.contrib.auth.models import User from django.utils.crypto import random import pygeoip logger = logging.getLogger('aldryn_accounts') # TODO: make cache method configurable if...
34.564516
173
0.716052
5b83a834e3f1d50dc2140e7d4b70fe0b778dca6a
4,513
py
Python
image-comment-matching/rerank.py
stonyhu/Image-Commenting
eb925a3f99075d8b74c6cabd125f7b9a1f9786d2
[ "Apache-2.0" ]
null
null
null
image-comment-matching/rerank.py
stonyhu/Image-Commenting
eb925a3f99075d8b74c6cabd125f7b9a1f9786d2
[ "Apache-2.0" ]
null
null
null
image-comment-matching/rerank.py
stonyhu/Image-Commenting
eb925a3f99075d8b74c6cabd125f7b9a1f9786d2
[ "Apache-2.0" ]
null
null
null
import time import MeCab from tqdm import tqdm import argparse import torch import torch.nn.functional as F from model import Model from utils.functional import load_image_caption, str2bool mecab = MeCab.Tagger('-Ochasen') parser = argparse.ArgumentParser('Rerank all generated captions') parser.add_argu...
37.297521
94
0.605141
5b83c5eaa2c2d8a8bb4f83de0e100de77825c6af
16,924
py
Python
alpine/job.py
alpinedatalabs/python-alpine-api
2f74e4eeb7cb6d2b4f2d73db90e8c4afc552d1e7
[ "MIT" ]
null
null
null
alpine/job.py
alpinedatalabs/python-alpine-api
2f74e4eeb7cb6d2b4f2d73db90e8c4afc552d1e7
[ "MIT" ]
8
2017-03-07T01:23:22.000Z
2019-10-24T22:45:46.000Z
alpine/job.py
alpinedatalabs/python-alpine-api
2f74e4eeb7cb6d2b4f2d73db90e8c4afc552d1e7
[ "MIT" ]
3
2017-03-13T11:15:19.000Z
2019-03-24T21:47:05.000Z
import json import pytz from datetime import datetime, timedelta try: # For Python 3.0 and later from urllib.parse import urlparse from urllib.parse import urljoin except ImportError: # Fall back to Python 2.7 from urlparse import urlparse from urlparse import urljoin from .exception import * f...
39.63466
125
0.568424
5b84c00b0e49a8356164bb4726b200f671aa1898
96
py
Python
stripe_shop/apps.py
Veilkrand/django-stripe-tutorial
8f47e42175cab7ff7b41a84b8dc78fbab823b013
[ "MIT" ]
2
2021-06-01T10:11:03.000Z
2022-01-13T13:31:43.000Z
stripe_shop/apps.py
Veilkrand/django-stripe-tutorial
8f47e42175cab7ff7b41a84b8dc78fbab823b013
[ "MIT" ]
null
null
null
stripe_shop/apps.py
Veilkrand/django-stripe-tutorial
8f47e42175cab7ff7b41a84b8dc78fbab823b013
[ "MIT" ]
3
2021-02-09T14:41:32.000Z
2022-03-08T01:22:39.000Z
from django.apps import AppConfig
16
34
0.770833
5b87871b91f38876c06627a600c27d3d24fb93ff
83
py
Python
pyfahviewer/config/__init__.py
BrandonDusseau/pyfahviewer
38d370d5bca3b20f2f683bf0879e340f4a4f7297
[ "MIT" ]
2
2020-04-17T23:11:31.000Z
2021-04-14T18:57:33.000Z
pyfahviewer/config/__init__.py
BrandonDusseau/pyfahviewer
38d370d5bca3b20f2f683bf0879e340f4a4f7297
[ "MIT" ]
9
2020-04-17T23:49:21.000Z
2020-05-05T23:48:01.000Z
pyfahviewer/config/__init__.py
BrandonDusseau/pyfahviewer
38d370d5bca3b20f2f683bf0879e340f4a4f7297
[ "MIT" ]
1
2020-04-17T22:43:47.000Z
2020-04-17T22:43:47.000Z
from .config import get_config, set_config __all__ = ('get_config', 'set_config')
20.75
42
0.759036
5b87d9344890072d51b5ec65605a79fe3b17a8f9
3,799
py
Python
src/emutils/imports.py
emanuele-albini/emutils
d5e3939da8a14b629879f06d87d4bd371e7117ab
[ "MIT" ]
null
null
null
src/emutils/imports.py
emanuele-albini/emutils
d5e3939da8a14b629879f06d87d4bd371e7117ab
[ "MIT" ]
null
null
null
src/emutils/imports.py
emanuele-albini/emutils
d5e3939da8a14b629879f06d87d4bd371e7117ab
[ "MIT" ]
null
null
null
""" This module contains a list of common imports Useful to rapidly start a Notebook without writing all imports manually. It will also set up the main logging.Logger ## Usage ```python from emutils.imports import * ``` ## Imports - Python Standard Modules: os, sys, time, platform, gc, math, random, collections, it...
21.223464
134
0.694393
5b88727c1bb9ddfbd158eac61ace6a98bdd56aa2
1,294
py
Python
ParabuildScripts/coverageScriptTest.py
FusionBox2/MAF2
b576955f4f6b954467021f12baedfebcaf79a382
[ "Apache-2.0" ]
1
2018-01-23T09:13:40.000Z
2018-01-23T09:13:40.000Z
ParabuildScripts/coverageScriptTest.py
gradicosmo/MAF2
86ddf1f52a2de4479c09fd3f43dc321ff412af42
[ "Apache-2.0" ]
null
null
null
ParabuildScripts/coverageScriptTest.py
gradicosmo/MAF2
86ddf1f52a2de4479c09fd3f43dc321ff412af42
[ "Apache-2.0" ]
3
2020-09-24T16:04:53.000Z
2020-09-24T16:50:30.000Z
#----------------------------------------------------------------------------- # Heuristic for coverage calculation # author: Stefano Perticoni #----------------------------------------------------------------------------- import coverageScript import os import sys, string import unittest import urllib, urllib2 ...
29.409091
82
0.621329
5b88af3896dc7ac76c3bd00bb55fe5410335259b
11,276
py
Python
methods/http/param_cipher.py
bbhunter/lollipopz
ed6945eab4f017b1b6b8d3d4ec7a3efc1108cd20
[ "MIT" ]
null
null
null
methods/http/param_cipher.py
bbhunter/lollipopz
ed6945eab4f017b1b6b8d3d4ec7a3efc1108cd20
[ "MIT" ]
null
null
null
methods/http/param_cipher.py
bbhunter/lollipopz
ed6945eab4f017b1b6b8d3d4ec7a3efc1108cd20
[ "MIT" ]
null
null
null
import random import urllib from scapy.layers import http import exfilkit as lpz from exfilkit import methods ENCODING_TABLE = { '0': 'radio', '1': 'spoke', '2': 'thick', '3': 'human', '4': 'atom', '5': 'effect', '6': 'electric', '7': 'expect', '8': 'bone', '9': 'rail', '...
19.079526
97
0.485012
5b89275a0c09b79fb0e333962752c95ab1981d95
1,422
py
Python
test.py
itsmahadi007/leet_code
dafbf10c02d163ef69c8bcda26f4f67949e1170e
[ "MIT" ]
null
null
null
test.py
itsmahadi007/leet_code
dafbf10c02d163ef69c8bcda26f4f67949e1170e
[ "MIT" ]
null
null
null
test.py
itsmahadi007/leet_code
dafbf10c02d163ef69c8bcda26f4f67949e1170e
[ "MIT" ]
null
null
null
# Definition for a binary tree node. from typing import Optional # in inorder def inorder(node): if not node: return # first recur on left child inorder(node.left) # then print the data of node print(node.data, end=" ") # now recur on right child inorder(node.right) def main...
21.223881
66
0.585091
5b8945c7fa951796c85d83a1615cc0df86de506d
1,919
py
Python
test/libcxx/ndk/test/config.py
AOSiP/platform_external_libcxx
eb2115113f10274c0d25523ba44c3c7373ea3209
[ "MIT" ]
5
2020-12-19T06:56:06.000Z
2022-01-09T01:28:42.000Z
test/libcxx/ndk/test/config.py
AOSiP/platform_external_libcxx
eb2115113f10274c0d25523ba44c3c7373ea3209
[ "MIT" ]
1
2021-09-27T06:00:40.000Z
2021-09-27T06:00:40.000Z
test/libcxx/ndk/test/config.py
AOSiP/platform_external_libcxx
eb2115113f10274c0d25523ba44c3c7373ea3209
[ "MIT" ]
14
2017-01-21T00:56:32.000Z
2022-02-24T11:27:38.000Z
import os import libcxx.test.config import libcxx.android.test.format
33.086207
79
0.625326
5b898d9bc24faf9e5765013e37fd2996b10a93b4
2,341
py
Python
main.py
uncleben006/ptt-stock-vane
f55951eded377cc2f52fb9b98fc57c04b3ead36f
[ "MIT" ]
1
2021-01-11T06:56:59.000Z
2021-01-11T06:56:59.000Z
main.py
uncleben006/ptt-stock-vane
f55951eded377cc2f52fb9b98fc57c04b3ead36f
[ "MIT" ]
null
null
null
main.py
uncleben006/ptt-stock-vane
f55951eded377cc2f52fb9b98fc57c04b3ead36f
[ "MIT" ]
null
null
null
import json from controller import follow, postback, message, cron, image from datetime import datetime from flask import Flask, request, abort, render_template from linebot.exceptions import ( InvalidSignatureError ) from linebot.models import ( MessageEvent, FollowEvent, PostbackEvent, TextMess...
25.725275
90
0.692012
5b8b223b7c31de5945dad6e3558f8e2424ffcf2e
307
py
Python
tests/test_parser.py
threatlead/blocklistde
fe3649fac2a2a59d5fadced1eecfcb2f3b32781c
[ "MIT" ]
null
null
null
tests/test_parser.py
threatlead/blocklistde
fe3649fac2a2a59d5fadced1eecfcb2f3b32781c
[ "MIT" ]
null
null
null
tests/test_parser.py
threatlead/blocklistde
fe3649fac2a2a59d5fadced1eecfcb2f3b32781c
[ "MIT" ]
null
null
null
from .context import blocklistde import unittest if __name__ == '__main__': unittest.main()
21.928571
91
0.700326
5b8b50e80f22b1ff5ac81a70229feaedc2879237
1,725
py
Python
votermodel/votermodel.py
ruhugu/votermodel
5f5a201754d0231bfb42a2b2299751010dd6a80e
[ "MIT" ]
null
null
null
votermodel/votermodel.py
ruhugu/votermodel
5f5a201754d0231bfb42a2b2299751010dd6a80e
[ "MIT" ]
null
null
null
votermodel/votermodel.py
ruhugu/votermodel
5f5a201754d0231bfb42a2b2299751010dd6a80e
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- from __future__ import (print_function, division, absolute_import, unicode_literals) import networkx as nx import numpy as np import random
26.953125
75
0.577391
5b8c98b7a0da2c7b24385ad368e7947606ef9b7d
16,016
py
Python
vaccinator.py
vikas-kundu/vaccinator
b2621f6d3fb41b0405e56226a7ce0559f321e766
[ "MIT" ]
2
2021-05-05T05:07:52.000Z
2021-05-05T22:35:12.000Z
vaccinator.py
vikas-kundu/vaccinator
b2621f6d3fb41b0405e56226a7ce0559f321e766
[ "MIT" ]
null
null
null
vaccinator.py
vikas-kundu/vaccinator
b2621f6d3fb41b0405e56226a7ce0559f321e766
[ "MIT" ]
null
null
null
print(r""" ______ <((((((\\\ / . }\ ;--..--._|} (\ '--/\--' ) \\ | '-' :'| \\ . -==- .-| \\ \.__.' \--._ [\\ __.--| // _/'...
44.612813
682
0.56225
5b8d2b28b910f8ce39ee47a610413dcc13072e6e
1,992
py
Python
src/test/cli/test_scheduler.py
pebble/flotilla
23d9b3aefd8312879549c50e52ea73f3e3f493be
[ "MIT" ]
5
2016-01-01T15:50:21.000Z
2018-11-27T17:38:15.000Z
src/test/cli/test_scheduler.py
pebble/flotilla
23d9b3aefd8312879549c50e52ea73f3e3f493be
[ "MIT" ]
27
2015-12-17T07:49:56.000Z
2018-07-13T15:06:33.000Z
src/test/cli/test_scheduler.py
pebble/flotilla
23d9b3aefd8312879549c50e52ea73f3e3f493be
[ "MIT" ]
7
2015-12-01T22:04:24.000Z
2021-11-28T13:21:35.000Z
import unittest from mock import patch, MagicMock from botocore.exceptions import ClientError from flotilla.cli.scheduler import start_scheduler REGIONS = ['us-east-1'] ENVIRONMENT = 'develop' DOMAIN = 'test.com'
36.218182
77
0.658133
5b8d4dfeada8d8fccb9fb4cb3ac8031b22dadc37
1,677
py
Python
tests/test_commandline_validate.py
sameerkhurana10/Montreal-Forced-Aligner
b64b6bf4aa0394d59236510a05453740e7e7ebf5
[ "MIT" ]
null
null
null
tests/test_commandline_validate.py
sameerkhurana10/Montreal-Forced-Aligner
b64b6bf4aa0394d59236510a05453740e7e7ebf5
[ "MIT" ]
null
null
null
tests/test_commandline_validate.py
sameerkhurana10/Montreal-Forced-Aligner
b64b6bf4aa0394d59236510a05453740e7e7ebf5
[ "MIT" ]
null
null
null
from montreal_forced_aligner.command_line.mfa import parser from montreal_forced_aligner.command_line.validate import run_validate_corpus
23.619718
99
0.652355
5b8db7b0a0b74ffa065a705147027e75e8d0ea2e
3,857
py
Python
opensearch_dsl/function.py
CEHENKLE/opensearch-dsl-py
f004b394f8c81be59a30b4d6841ab69ccbf9c006
[ "Apache-2.0" ]
13
2021-10-16T13:11:57.000Z
2022-02-11T19:13:05.000Z
opensearch_dsl/function.py
CEHENKLE/opensearch-dsl-py
f004b394f8c81be59a30b4d6841ab69ccbf9c006
[ "Apache-2.0" ]
9
2021-10-15T18:40:15.000Z
2022-03-23T21:56:29.000Z
opensearch_dsl/function.py
CEHENKLE/opensearch-dsl-py
f004b394f8c81be59a30b4d6841ab69ccbf9c006
[ "Apache-2.0" ]
8
2021-10-30T13:21:29.000Z
2022-03-29T20:14:40.000Z
# SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. # # Modifications Copyright OpenSearch Contributors. See # GitHub history for details. # # Licensed to Elasticsearch B.V. under...
30.132813
93
0.651802
5b8e269dde11dc9a9d324b928887d8730e695956
90
py
Python
project/models.py
Gerhut/minimal-django-project
0c07b84859640e53c27487b76cfd5a36c71365aa
[ "Unlicense" ]
null
null
null
project/models.py
Gerhut/minimal-django-project
0c07b84859640e53c27487b76cfd5a36c71365aa
[ "Unlicense" ]
10
2019-08-06T01:52:33.000Z
2020-09-28T00:27:59.000Z
project/models.py
Gerhut/minimal-django-project
0c07b84859640e53c27487b76cfd5a36c71365aa
[ "Unlicense" ]
null
null
null
from django.db import models
15
32
0.733333
5b8e5f0147dcdda64ded2911f084d79a4acf77e0
3,438
py
Python
apps/purchases/api/serializers.py
mikespux/prov-jewellery-cloud
4bb16b74d4f32eec938e64325c39bb5770ad2848
[ "MIT" ]
1
2020-05-17T22:27:02.000Z
2020-05-17T22:27:02.000Z
apps/purchases/api/serializers.py
antorenge/prov-jewellery-cloud
de09048c7043d970d62d13dba1beac73c42ef281
[ "MIT" ]
7
2020-06-05T18:13:25.000Z
2022-03-11T23:20:21.000Z
apps/purchases/api/serializers.py
mikespux/prov-jewellery-cloud
4bb16b74d4f32eec938e64325c39bb5770ad2848
[ "MIT" ]
null
null
null
""" Purchases API """ from rest_framework import serializers from apps.users.api.serializers import UserSerializer from apps.inventory.api.serializers import InventoryItemSerializer from apps.products.api.serializers import (MaterialSerializer, ProductDesignSerializer) from .....
30.696429
75
0.684991
5b90497c328e1808931645b3f89237e811a764fa
619
py
Python
main.py
scrapex-io/scraping-challenge-basic
c3caa58a600f8770eb979cc05886d7248308bf99
[ "MIT" ]
null
null
null
main.py
scrapex-io/scraping-challenge-basic
c3caa58a600f8770eb979cc05886d7248308bf99
[ "MIT" ]
null
null
null
main.py
scrapex-io/scraping-challenge-basic
c3caa58a600f8770eb979cc05886d7248308bf99
[ "MIT" ]
null
null
null
import requests URL_USERS = "https://gorest.co.in/public/v2/users" URL_COMMENTS = "https://gorest.co.in/public/v2/comments" def extract_users(): """ Method for get users from API Rest :return: """ r = requests.get(url=URL_USERS) return r.json() def extract_comments(): """ Method for...
19.967742
69
0.654281
5b914dd6bd0c32e0b0e0f9fee38aac8091c15b3b
3,063
py
Python
src/fill_in_forms.py
vicksonzero/webbot
8cdbe655bafae90d390c0f051c799e164d63365e
[ "MIT" ]
null
null
null
src/fill_in_forms.py
vicksonzero/webbot
8cdbe655bafae90d390c0f051c799e164d63365e
[ "MIT" ]
null
null
null
src/fill_in_forms.py
vicksonzero/webbot
8cdbe655bafae90d390c0f051c799e164d63365e
[ "MIT" ]
null
null
null
# Google sheets from __future__ import print_function import httplib2 import os from apiclient import discovery import oauth2client from oauth2client import client from oauth2client import tools try: import argparse flags = argparse.ArgumentParser(parents=[tools.argparser]).parse_args() except ImportError: ...
27.106195
75
0.757754
5b95d709623e6f9a1a48dbe716470993b1042f83
323
py
Python
pythx/__init__.py
s0b0lev/pythx
c34d81421a2cbea71e60c33245d54fb19b6ad68a
[ "MIT" ]
null
null
null
pythx/__init__.py
s0b0lev/pythx
c34d81421a2cbea71e60c33245d54fb19b6ad68a
[ "MIT" ]
null
null
null
pythx/__init__.py
s0b0lev/pythx
c34d81421a2cbea71e60c33245d54fb19b6ad68a
[ "MIT" ]
null
null
null
"""Top-level package for pythx.""" __author__ = """Dominik Muhs""" __email__ = "dominik.muhs@consensys.net" __version__ = "1.3.2" from pythx.conf import config from pythx.api.client import Client from mythx_models.exceptions import ( MythXBaseException, MythXAPIError, ValidationError, ValidationError,...
21.533333
40
0.736842
5b9656355bf2915fa910a51fa152a1040b905388
1,529
py
Python
ore/urls.py
lukegb/Ore-python
1d1c73795406fa52ae969726feb89f7aedbc4afc
[ "MIT" ]
1
2016-05-24T14:49:42.000Z
2016-05-24T14:49:42.000Z
ore/urls.py
gratimax/ore-old
1d1c73795406fa52ae969726feb89f7aedbc4afc
[ "MIT" ]
null
null
null
ore/urls.py
gratimax/ore-old
1d1c73795406fa52ae969726feb89f7aedbc4afc
[ "MIT" ]
null
null
null
import actstream.urls from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin import ore.core.urls import ore.accounts.urls import ore.projects.urls import ore.versions.urls import ore.teams.urls import ore.discourse_sso.urls...
31.204082
77
0.708306
5b96a678ed44fbc0170f4cf33034df259a65bc46
895
py
Python
qipr/registry/utils.py
ctsit/qipr
3f0ef102d81a859c955f918b74037d199b4d6a00
[ "Apache-2.0" ]
2
2017-02-10T15:07:51.000Z
2017-02-10T15:08:01.000Z
qipr/registry/utils.py
ctsit/qipr
3f0ef102d81a859c955f918b74037d199b4d6a00
[ "Apache-2.0" ]
11
2016-08-03T13:18:08.000Z
2017-01-24T14:19:59.000Z
qipr/registry/utils.py
ctsit/qipr
3f0ef102d81a859c955f918b74037d199b4d6a00
[ "Apache-2.0" ]
5
2016-07-29T17:12:43.000Z
2016-12-19T15:56:14.000Z
import uuid def set_created_by_if_empty(model, user): """ This function is called by our save function because django throws exceptions on object access if something doesn't exist. You cannot dereference a related field if it doesn't exist. Meaning you have to do a try except block. """ try...
24.189189
66
0.658101
5b96fe8753e574fd0587ec62d1080f3007e66924
6,882
py
Python
src/main.py
karavik18/Verification-and-Selection-in-Federated-Average
b7a275b6158c9e9d9c16c1e62786558037196306
[ "MIT" ]
null
null
null
src/main.py
karavik18/Verification-and-Selection-in-Federated-Average
b7a275b6158c9e9d9c16c1e62786558037196306
[ "MIT" ]
null
null
null
src/main.py
karavik18/Verification-and-Selection-in-Federated-Average
b7a275b6158c9e9d9c16c1e62786558037196306
[ "MIT" ]
null
null
null
import os import time import copy import random import argparse import numpy as np from PIL import Image from tqdm import tqdm as tq import matplotlib.pyplot as plt import torch import torch.nn as nn import torch.nn.functional as F from torch.utils import data from model_utils import * from data_utils import * from t...
44.115385
297
0.648794
5b9bae125e13deb3ca6f4383bdd93263a6ff8361
2,398
py
Python
weather/forecast.py
Shom770/weather_usa
4e925c4eb7fbbc444a27f2969d342335dae5ea83
[ "MIT" ]
null
null
null
weather/forecast.py
Shom770/weather_usa
4e925c4eb7fbbc444a27f2969d342335dae5ea83
[ "MIT" ]
null
null
null
weather/forecast.py
Shom770/weather_usa
4e925c4eb7fbbc444a27f2969d342335dae5ea83
[ "MIT" ]
null
null
null
from __future__ import annotations import asyncio import aiohttp from datetime import datetime def forecast(latitude: float, longitude: float) -> list[Forecast]: """Main function for retrieving forecast for a longitude and latitude""" loop = asyncio.get_event_loop() *information, request = loop.run_until_...
46.115385
103
0.621351
5b9d5e37aaae1696ad5a8c3f64abcd5dca15ddbc
1,170
py
Python
bunny.py
querciak/matplotlib-3d
8d361b861f33b1133fcf304a2e397769797ef1d3
[ "BSD-2-Clause" ]
242
2020-03-26T11:36:21.000Z
2022-03-10T01:57:54.000Z
bunny.py
mikepsn/matplotlib-3d
538d514e7fd11843f5a338a52b5887c3f16a9bff
[ "BSD-2-Clause" ]
6
2020-03-30T18:20:09.000Z
2021-01-26T20:16:07.000Z
bunny.py
mikepsn/matplotlib-3d
538d514e7fd11843f5a338a52b5887c3f16a9bff
[ "BSD-2-Clause" ]
31
2020-03-29T01:55:55.000Z
2022-03-29T12:52:14.000Z
# ----------------------------------------------------------------------------- # Copyright (c) 2020 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- # This example shows how to display a mesh # ----------...
36.5625
79
0.486325
5b9d6d92851d5c526612bcafb989ae5b804d21b9
1,193
py
Python
Backend/resize.py
tfederico/WatsonInnovation
22a7bf28c4a110f2af0d45c77fa7971f3d0f9647
[ "MIT" ]
null
null
null
Backend/resize.py
tfederico/WatsonInnovation
22a7bf28c4a110f2af0d45c77fa7971f3d0f9647
[ "MIT" ]
null
null
null
Backend/resize.py
tfederico/WatsonInnovation
22a7bf28c4a110f2af0d45c77fa7971f3d0f9647
[ "MIT" ]
null
null
null
import os, sys from PIL import Image import argparse from os import listdir from os.path import isfile, join if __name__ == '__main__': maxheigth = 320 maxwidth = 320 parser = argparse.ArgumentParser(description='Cleaning files that are too big.') parser.add_argument('-dir', '--d', help="Directory name...
33.138889
97
0.615256
5ba08622224ba72fb67b9d3ea638e78dc27e3b06
1,543
py
Python
Solutions/022.py
ruppysuppy/Daily-Coding-Problem-Solutions
37d061215a9af2ce39c51f8816c83039914c0d0b
[ "MIT" ]
70
2021-03-18T05:22:40.000Z
2022-03-30T05:36:50.000Z
Solutions/022.py
ungaro/Daily-Coding-Problem-Solutions
37d061215a9af2ce39c51f8816c83039914c0d0b
[ "MIT" ]
null
null
null
Solutions/022.py
ungaro/Daily-Coding-Problem-Solutions
37d061215a9af2ce39c51f8816c83039914c0d0b
[ "MIT" ]
30
2021-03-18T05:22:43.000Z
2022-03-17T10:25:18.000Z
""" Problem: Given a dictionary of words and a string made up of those words (no spaces), return the original sentence in a list. If there is more than one possible reconstruction, return any of them. If there is no possible reconstruction, then return null. For example, given the set of words 'quick', 'brown', 'the'...
28.574074
87
0.6442
5ba1f94b481fd67f37cb2f9937fc57e408770c9f
2,872
py
Python
scripts/jpg_exif_remove/jpg_exif_remove.py
jimholdaway/pythonista
f0621e4043a1c1aa7c37bae363ae0852fb54a1ec
[ "MIT" ]
null
null
null
scripts/jpg_exif_remove/jpg_exif_remove.py
jimholdaway/pythonista
f0621e4043a1c1aa7c37bae363ae0852fb54a1ec
[ "MIT" ]
null
null
null
scripts/jpg_exif_remove/jpg_exif_remove.py
jimholdaway/pythonista
f0621e4043a1c1aa7c37bae363ae0852fb54a1ec
[ "MIT" ]
null
null
null
import sys import argparse import os import piexif from PIL import Image def jpg_exif_remove(args): """ Removes EXIF data from directory of jpeg images whilst preserving image orientation and quality. Parameters ---------- in_dir: string, directory containing jpgs to have EXIF removed, default 'images' out...
31.217391
187
0.69812
5ba302171ec86e6e932c808425569cf399e3d09e
385
py
Python
boiler/__init__.py
rudineirk/faculdade_boiler
9e796d8c2603f37799fc02dc7bd01827b28164df
[ "MIT" ]
null
null
null
boiler/__init__.py
rudineirk/faculdade_boiler
9e796d8c2603f37799fc02dc7bd01827b28164df
[ "MIT" ]
null
null
null
boiler/__init__.py
rudineirk/faculdade_boiler
9e796d8c2603f37799fc02dc7bd01827b28164df
[ "MIT" ]
null
null
null
from .conn import BoilerConn from .controller import WaterColumnController, WaterTempController from .core import Main from .reader import WaterColumnReader, WaterTempReader __all__ = [ 'BoilerConn', 'WaterColumnController', 'WaterTempController', 'WaterColumnReader', 'WaterTempReader', 'Main',...
20.263158
66
0.716883
5ba4c64906e7a419a6059b65c07ed6e7d5ed5000
8,226
py
Python
cogs/covid.py
RuiL1904/ruibot-discord.py
588406ef2dbebd7d976237f1d876054d641933f6
[ "MIT" ]
null
null
null
cogs/covid.py
RuiL1904/ruibot-discord.py
588406ef2dbebd7d976237f1d876054d641933f6
[ "MIT" ]
null
null
null
cogs/covid.py
RuiL1904/ruibot-discord.py
588406ef2dbebd7d976237f1d876054d641933f6
[ "MIT" ]
null
null
null
import io from datetime import datetime import nextcord as discord from nextcord.ext import commands import aiohttp import pandas # Load config from config import config color = config.color
48.105263
146
0.384877
5ba6095505bab7a365504562e670632218328c79
2,462
py
Python
fault_generator.py
Jihaoyun/gem5
c52195e8304b5571008eab050fc9cc38ba91107c
[ "BSD-3-Clause" ]
null
null
null
fault_generator.py
Jihaoyun/gem5
c52195e8304b5571008eab050fc9cc38ba91107c
[ "BSD-3-Clause" ]
null
null
null
fault_generator.py
Jihaoyun/gem5
c52195e8304b5571008eab050fc9cc38ba91107c
[ "BSD-3-Clause" ]
null
null
null
import os import argparse parser = argparse.ArgumentParser(description = 'gem5 with fault injection') parser.add_argument('-log', '--log-file', type = str, dest = 'logFile', help = 'The input file of debug info of Gem5 simulator') parser.add_argument('-in', '--input-fault', type = str, dest = 'faultFile', h...
26.191489
90
0.68156
5ba7b4142e2df3a12d460152b808e2562e69558e
1,362
py
Python
src/testproject/urls.py
DramaFever/sst
63d41a102c9d3bdb54019f28a93cff0314a0214f
[ "Apache-2.0" ]
4
2015-01-21T22:20:50.000Z
2017-12-18T11:38:16.000Z
src/testproject/urls.py
DramaFever/sst
63d41a102c9d3bdb54019f28a93cff0314a0214f
[ "Apache-2.0" ]
63
2015-01-13T19:32:06.000Z
2020-04-22T17:01:03.000Z
src/testproject/urls.py
wbdl/sst
7a2805391fdd390ecb0f488f8377f58381358c89
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import include, patterns from django.conf import settings from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Example: # (r'^testproject/', include('...
43.935484
77
0.501468
5ba7e43dc702d76be95efe5fd1760983ebf60da6
5,404
py
Python
iml_common/test/command_capture_testcase.py
AlexTalker/iml-common
5617e9c89a3a5d2f02f499a3497035faf942bf1d
[ "MIT" ]
null
null
null
iml_common/test/command_capture_testcase.py
AlexTalker/iml-common
5617e9c89a3a5d2f02f499a3497035faf942bf1d
[ "MIT" ]
null
null
null
iml_common/test/command_capture_testcase.py
AlexTalker/iml-common
5617e9c89a3a5d2f02f499a3497035faf942bf1d
[ "MIT" ]
null
null
null
# Copyright (c) 2018 DDN. All rights reserved. # Use of this source code is governed by a MIT-style # license that can be found in the LICENSE file. import mock import errno from iml_common.lib.shell import Shell from iml_unit_testcase import ImlUnitTestCase
36.026667
124
0.65285
5ba819e5829f91fab4b95f7e26b1d2411684036a
2,017
py
Python
mmxai/interpretability/classification/torchray/extremal_perturbation/torchray_mmf.py
yongkangzzz/mmfgroup
098a78c83e1c2973dc895d1dc7fd30d7d3668143
[ "MIT" ]
null
null
null
mmxai/interpretability/classification/torchray/extremal_perturbation/torchray_mmf.py
yongkangzzz/mmfgroup
098a78c83e1c2973dc895d1dc7fd30d7d3668143
[ "MIT" ]
null
null
null
mmxai/interpretability/classification/torchray/extremal_perturbation/torchray_mmf.py
yongkangzzz/mmfgroup
098a78c83e1c2973dc895d1dc7fd30d7d3668143
[ "MIT" ]
null
null
null
from mmxai.interpretability.classification.torchray.extremal_perturbation.multimodal_extremal_perturbation import * from mmf.models.mmbt import MMBT from mmf.models.fusions import LateFusion from mmf.models.vilbert import ViLBERT from mmf.models.visual_bert import VisualBERT from PIL import Image
46.906977
115
0.531482
5ba864287e43b24a6ee51f736ea3dfbb9bf7e4ff
812
py
Python
tests/test_json.py
GarrettMooney/moonpy
8e44f7afa2daccac6f2b2c089f272b95e4ba2945
[ "MIT" ]
null
null
null
tests/test_json.py
GarrettMooney/moonpy
8e44f7afa2daccac6f2b2c089f272b95e4ba2945
[ "MIT" ]
null
null
null
tests/test_json.py
GarrettMooney/moonpy
8e44f7afa2daccac6f2b2c089f272b95e4ba2945
[ "MIT" ]
null
null
null
import pytest from .util import make_tempdir from moonpy.util import json_dumps, read_json
30.074074
86
0.694581
5ba92f0037540c51b246e7074e898854f1450755
869
py
Python
2016/python/d10.py
eduellery/adventofcode
dccece0bf59bc241803edc99a6536062fe2714d1
[ "MIT" ]
null
null
null
2016/python/d10.py
eduellery/adventofcode
dccece0bf59bc241803edc99a6536062fe2714d1
[ "MIT" ]
null
null
null
2016/python/d10.py
eduellery/adventofcode
dccece0bf59bc241803edc99a6536062fe2714d1
[ "MIT" ]
null
null
null
import re, collections bot = collections.defaultdict(list) output = collections.defaultdict(list) values = open('d10.in').read().splitlines() pipeline = {} for value in values: if value.startswith('value'): n, b = map(int, re.findall(r'-?\d+', value)) bot[b].append(n) elif value.startswith('...
24.138889
59
0.514384
5bab74b4a30cd2de20b8b06675475d7ebf4ce3d0
6,063
py
Python
datasets/synthetic_iam.py
IHR-Nom/Full_Page_Recognition
27899ece69e328e8d40a8cf5214a77a6ab8aef35
[ "Apache-2.0" ]
null
null
null
datasets/synthetic_iam.py
IHR-Nom/Full_Page_Recognition
27899ece69e328e8d40a8cf5214a77a6ab8aef35
[ "Apache-2.0" ]
null
null
null
datasets/synthetic_iam.py
IHR-Nom/Full_Page_Recognition
27899ece69e328e8d40a8cf5214a77a6ab8aef35
[ "Apache-2.0" ]
null
null
null
import glob from torch.utils.data import Dataset import torchvision.transforms.functional as TF import torchvision as tv import xml.etree.ElementTree as ET from PIL import Image import numpy as np import random import os from transformers import BertTokenizer from .utils import nested_tensor_from_tensor_list MAX_D...
36.305389
116
0.61933
5bac90785ee9d2b6b8dbf64e7b92696ce0bb3f65
1,177
py
Python
idt/factories.py
Bergolfs/idt
22a1d19a42b16a87f9045b45805f82efe34885cf
[ "MIT" ]
null
null
null
idt/factories.py
Bergolfs/idt
22a1d19a42b16a87f9045b45805f82efe34885cf
[ "MIT" ]
null
null
null
idt/factories.py
Bergolfs/idt
22a1d19a42b16a87f9045b45805f82efe34885cf
[ "MIT" ]
null
null
null
from idt.duckgo import DuckGoSearchEngine from idt.bing import BingSearchEngine from idt.bing_api import BingApiSearchEngine from idt.flickr_api import FlickrApiSearchEngine __name__ = "factories"
37.967742
125
0.776551
5bae7bbd789ea3ac35f03b0a03ec727ec87d770c
3,075
py
Python
noaa.py
microprediction/windspeed
0ea88079ac8ae8955c4ba5cbcf1cd1aed64beb10
[ "MIT" ]
null
null
null
noaa.py
microprediction/windspeed
0ea88079ac8ae8955c4ba5cbcf1cd1aed64beb10
[ "MIT" ]
null
null
null
noaa.py
microprediction/windspeed
0ea88079ac8ae8955c4ba5cbcf1cd1aed64beb10
[ "MIT" ]
1
2021-12-19T16:25:22.000Z
2021-12-19T16:25:22.000Z
# New video tutorials are available at https://www.microprediction.com/python-1 to help you # get started creating streams (see the 4th module in particular) import logging import urllib import time import pytz import random from datetime import datetime from pprint import pprint from microprediction import MicroWrite...
33.791209
137
0.609431
5bb090f0a9fb8fbf27d290cbd5f679ebb99b7b62
2,188
py
Python
tests/conftest.py
przemekk1385/django-oac
379b29921551ea1d53edb5e3fbb6fa8d3c972acb
[ "MIT" ]
null
null
null
tests/conftest.py
przemekk1385/django-oac
379b29921551ea1d53edb5e3fbb6fa8d3c972acb
[ "MIT" ]
3
2022-03-02T18:08:13.000Z
2022-03-02T18:29:33.000Z
tests/conftest.py
przemekk1385/django_oac
379b29921551ea1d53edb5e3fbb6fa8d3c972acb
[ "MIT" ]
null
null
null
from copy import copy from unittest.mock import Mock import jwt import pytest from django.contrib.auth.models import AnonymousUser from django.core.cache import cache from django.test import RequestFactory from jwcrypto.jwk import JWK, JWKSet from .common import QUERY_DICT, SESSION_DICT
22.556701
85
0.647623
5bb1e0e67d45581de03559a2275a7b5ca7ba495a
3,384
py
Python
shfl/data_base/data_base.py
joarreg/Sherpa.ai-Federated-Learning-Framework
9da392bf71c9acf13761dde0f119622c62780c87
[ "Apache-2.0" ]
2
2021-11-14T12:04:39.000Z
2022-01-03T16:03:36.000Z
shfl/data_base/data_base.py
joarreg/Sherpa.ai-Federated-Learning-Framework
9da392bf71c9acf13761dde0f119622c62780c87
[ "Apache-2.0" ]
null
null
null
shfl/data_base/data_base.py
joarreg/Sherpa.ai-Federated-Learning-Framework
9da392bf71c9acf13761dde0f119622c62780c87
[ "Apache-2.0" ]
1
2022-01-19T16:29:46.000Z
2022-01-19T16:29:46.000Z
import abc import numpy as np def split_train_test(data, labels, dim): """ Method that randomly choose the train and test sets from data and labels. # Arguments: data: Numpy matrix with data for extract the validation data labels: Numpy array with labels dim: Size for validation d...
28.677966
109
0.649232
5bb2c6977e580018666f892e53fb97c55744bde7
26,945
py
Python
ontomatch/matcher_lib.py
RogerTangos/aurum_debug
fa3afd96c795e9b674a5951430635d43aa3f5c78
[ "MIT" ]
null
null
null
ontomatch/matcher_lib.py
RogerTangos/aurum_debug
fa3afd96c795e9b674a5951430635d43aa3f5c78
[ "MIT" ]
6
2020-06-05T17:52:29.000Z
2021-06-10T19:44:58.000Z
ontomatch/matcher_lib.py
RogerTangos/aurum_debug
fa3afd96c795e9b674a5951430635d43aa3f5c78
[ "MIT" ]
null
null
null
from enum import Enum import time from collections import defaultdict from nltk.corpus import stopwords from dataanalysis import nlp_utils as nlp from ontomatch import glove_api from ontomatch import ss_utils as SS from datasketch import MinHash, MinHashLSH from knowledgerepr.networkbuilder import LSHRandomProjectionsI...
40.825758
128
0.618148
5bb3cf7dfd698c8727e5eccdcdcd702e3c271a0e
3,034
py
Python
details/details/spiders/truyenqq.py
mantranit/vncomics-server
bcf5a45975e393162c9b44daf8c620b6b73292b3
[ "MIT" ]
null
null
null
details/details/spiders/truyenqq.py
mantranit/vncomics-server
bcf5a45975e393162c9b44daf8c620b6b73292b3
[ "MIT" ]
null
null
null
details/details/spiders/truyenqq.py
mantranit/vncomics-server
bcf5a45975e393162c9b44daf8c620b6b73292b3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy import requests import pymongo import time import re from datetime import datetime from details.items import DetailsItem
35.27907
131
0.575808
5bb4934e053b5ee79225aaffff2965e5f1acee34
1,902
py
Python
apps/article/views/pages/category.py
codelieche/codelieche.com
8f18a9f4064af81a6dd0203fbaa138565065fff5
[ "MIT" ]
2
2017-06-11T16:41:48.000Z
2017-06-14T00:32:27.000Z
apps/article/views/pages/category.py
codelieche/codelieche.com
8f18a9f4064af81a6dd0203fbaa138565065fff5
[ "MIT" ]
13
2020-02-11T21:33:40.000Z
2022-03-11T23:12:16.000Z
apps/article/views/pages/category.py
codelieche/codelieche.com
8f18a9f4064af81a6dd0203fbaa138565065fff5
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from django.shortcuts import get_object_or_404, render from django.views.generic import View from django.core.paginator import Paginator from article.models import Category, Post from article.utils import get_page_num_list
31.7
76
0.615668
5bb5bd266de1da3922f853af8a5e52abe7663f06
40
py
Python
Python diye Programming sekha 1st/Sum function.py
mitul3737/My-Python-Programming-journey-from-Beginning-to-Data-Sciene-Machine-Learning-AI-Deep-Learning
ca2c15c597a64e5a7689ba3a44ce36a1c0828194
[ "MIT" ]
1
2021-05-02T20:30:33.000Z
2021-05-02T20:30:33.000Z
Python diye Programming sekha 1st/Sum function.py
Mit382/My-Python-Programming-Journey-from-Beginning-to-Data-Sciene-Machine-Learning-AI-Deep-Learning
c19d84dfe6dcf496ff4527724f92e228579b6456
[ "MIT" ]
null
null
null
Python diye Programming sekha 1st/Sum function.py
Mit382/My-Python-Programming-Journey-from-Beginning-to-Data-Sciene-Machine-Learning-AI-Deep-Learning
c19d84dfe6dcf496ff4527724f92e228579b6456
[ "MIT" ]
1
2021-05-02T20:30:29.000Z
2021-05-02T20:30:29.000Z
li=[1,2,3] result=sum(li) print(result)
10
14
0.675
5bb6be6462f1b05bd57a858fd3bc47ac72fd1813
852
py
Python
card/games/sjuan/moves.py
kvackkvack/cards
b96af8a9ffa296ae80c7684a4b6678be53217ce4
[ "MIT" ]
null
null
null
card/games/sjuan/moves.py
kvackkvack/cards
b96af8a9ffa296ae80c7684a4b6678be53217ce4
[ "MIT" ]
null
null
null
card/games/sjuan/moves.py
kvackkvack/cards
b96af8a9ffa296ae80c7684a4b6678be53217ce4
[ "MIT" ]
null
null
null
from card import * from .sjuan_card_stack import *
23.027027
60
0.549296
5bb7dcb6bea70b57e941c03e794281139890eb69
5,739
py
Python
app/app.py
nepworldwide/nepms-zendesk-stats
7bed10e65b2b6f6d4d1dbbf0c79a0e716d87d517
[ "MIT" ]
null
null
null
app/app.py
nepworldwide/nepms-zendesk-stats
7bed10e65b2b6f6d4d1dbbf0c79a0e716d87d517
[ "MIT" ]
null
null
null
app/app.py
nepworldwide/nepms-zendesk-stats
7bed10e65b2b6f6d4d1dbbf0c79a0e716d87d517
[ "MIT" ]
null
null
null
import argparse import yaml import logging import os import sys import time from schema import Schema, SchemaError import requests from prometheus_client import CollectorRegistry, Gauge, push_to_gateway from apscheduler.schedulers.background import BlockingScheduler def log_level_switch(log_level): return dic...
33.758824
112
0.605855
5bb9142eb89bd3dd107533c878c67b880a33eb33
501
py
Python
mongodb/webScrapper/courseFilter.py
ISHITA006/STARS-Course-Registration-Application
a7a208f5b7e3aa4b4f652bf2b6432b038b76c346
[ "MIT" ]
1
2022-02-16T08:25:53.000Z
2022-02-16T08:25:53.000Z
mongodb/webScrapper/courseFilter.py
ISHITA006/STARS-Course-Registration-Application
a7a208f5b7e3aa4b4f652bf2b6432b038b76c346
[ "MIT" ]
null
null
null
mongodb/webScrapper/courseFilter.py
ISHITA006/STARS-Course-Registration-Application
a7a208f5b7e3aa4b4f652bf2b6432b038b76c346
[ "MIT" ]
null
null
null
import json import os f = open('ntu_mods.json', "r") mod_json = json.loads(f.read()) filtered_dict = {} count = 0 for course in mod_json['COURSES']: if "CE" in course['COURSE']: filtered_dict = course count += 1 path = os.path.abspath("./courses/" + course['COURSE'] + ".json") with...
25.05
73
0.590818
5bba148c43da1cc1a22e73d90ffca7960d363f40
180
py
Python
examples/debugging_api_calls.py
nguyandy/userapp-python
96b8b96049a467774b5273ee73ccb62da09fb85b
[ "MIT" ]
null
null
null
examples/debugging_api_calls.py
nguyandy/userapp-python
96b8b96049a467774b5273ee73ccb62da09fb85b
[ "MIT" ]
null
null
null
examples/debugging_api_calls.py
nguyandy/userapp-python
96b8b96049a467774b5273ee73ccb62da09fb85b
[ "MIT" ]
null
null
null
import config, userapp api = userapp.API(app_id=config.USERAPP_APP_ID, debug=True, throw_errors=False) user_result = api.user.login(login="epicrawbot", password="play_withBitz!")
36
79
0.794444
5bba7f9974f0fe67b7960d20023c9e2ccc835478
338
py
Python
Different_person.py
yahyanik/phd_research
ac77562a094ce17eef303af882c709452efafc7c
[ "MIT" ]
null
null
null
Different_person.py
yahyanik/phd_research
ac77562a094ce17eef303af882c709452efafc7c
[ "MIT" ]
null
null
null
Different_person.py
yahyanik/phd_research
ac77562a094ce17eef303af882c709452efafc7c
[ "MIT" ]
null
null
null
import numpy as np import cv2 #import matplotlib.pyplot as plt from collections import deque import imutils from KCF_tracker import tracker import argparse import sys
19.882353
50
0.668639
5bbc03dd34b0d6ae5babb01f31f01fe13fbcb7bf
2,545
py
Python
graphs/models/vgg.py
bigdata-inha/Rethinking_network_pruning
d68dfeb6d31f5fee2f066ceec92bcb24867de345
[ "MIT" ]
null
null
null
graphs/models/vgg.py
bigdata-inha/Rethinking_network_pruning
d68dfeb6d31f5fee2f066ceec92bcb24867de345
[ "MIT" ]
2
2020-12-04T07:28:01.000Z
2022-02-27T03:07:59.000Z
graphs/models/vgg.py
bigdata-inha/Rethinking_network_pruning
d68dfeb6d31f5fee2f066ceec92bcb24867de345
[ "MIT" ]
null
null
null
"""VGG11/13/16/19 in Pytorch.""" import torch import torch.nn as nn cfg = { 'VGG11': [64, 'M', 128, 'M', 256, 256, 'M', 512, 512, 'M', 512, 512, 'M'], 'VGG13': [64, 64, 'M', 128, 128, 'M', 256, 256, 'M', 512, 512, 'M', 512, 512, 'M'], 'VGG16': [64, 64, 'M', 128, 128, 'M', 256, 256, 256, 'M', 512, 512, 512,...
37.985075
117
0.539882
5bbce0ad3c838fa381d3b09478b10889eda211b9
841
py
Python
interfaces/func_description.py
hriener/party-elli
e7636a8045a46cd988a3a05b4b888577afb97708
[ "MIT" ]
9
2016-04-04T07:13:02.000Z
2021-11-08T12:15:33.000Z
interfaces/func_description.py
hriener/party-elli
e7636a8045a46cd988a3a05b4b888577afb97708
[ "MIT" ]
1
2020-04-12T18:44:26.000Z
2020-04-12T18:44:26.000Z
interfaces/func_description.py
hriener/party-elli
e7636a8045a46cd988a3a05b4b888577afb97708
[ "MIT" ]
2
2019-02-25T13:54:55.000Z
2020-04-07T14:00:36.000Z
from typing import Dict
28.033333
77
0.546968
5bbd5acd96c506ff895add5fd69efd97917904ed
1,001
py
Python
github/delete/collaborator/src/formula/formula.py
rogerio-ignacio-developer/formulas-github
12cf7401f31e4a6212289b839c02de1d612c8271
[ "Apache-2.0" ]
32
2021-01-27T17:43:23.000Z
2022-03-23T18:00:41.000Z
github/delete/collaborator/src/formula/formula.py
rogerio-ignacio-developer/formulas-github
12cf7401f31e4a6212289b839c02de1d612c8271
[ "Apache-2.0" ]
12
2021-01-26T18:14:59.000Z
2021-10-04T12:24:41.000Z
github/delete/collaborator/src/formula/formula.py
rogerio-ignacio-developer/formulas-github
12cf7401f31e4a6212289b839c02de1d612c8271
[ "Apache-2.0" ]
11
2021-01-28T13:54:24.000Z
2022-03-16T12:16:27.000Z
#!/usr/bin/python3 import requests import json
27.805556
144
0.613387
5bbd63f55e42c79ca4727c69d8e64efe299a4827
1,281
py
Python
simulator/src/files/util.py
larashores/burridgeknopoffsimulator
2201b266f8fde00325dc0321acc6aa3f3e2c66f8
[ "MIT" ]
1
2019-05-16T12:50:03.000Z
2019-05-16T12:50:03.000Z
simulator/src/files/util.py
vinceshores/burridgeknopoffsimulator
2201b266f8fde00325dc0321acc6aa3f3e2c66f8
[ "MIT" ]
null
null
null
simulator/src/files/util.py
vinceshores/burridgeknopoffsimulator
2201b266f8fde00325dc0321acc6aa3f3e2c66f8
[ "MIT" ]
1
2021-03-02T14:44:36.000Z
2021-03-02T14:44:36.000Z
from files.datafile import DataFile import glob import os import sys
25.62
65
0.571429
5bbdc792215a8ce6952b1d5568327d6cf71b3813
845
py
Python
pir.py
lionyhw/PlanetX_MicroPython
0bcbb637be9971260c32846acec3ecbd60df647c
[ "MIT" ]
2
2020-08-06T07:32:57.000Z
2022-02-11T02:37:21.000Z
pir.py
lionyhw/PlanetX_MicroPython
0bcbb637be9971260c32846acec3ecbd60df647c
[ "MIT" ]
null
null
null
pir.py
lionyhw/PlanetX_MicroPython
0bcbb637be9971260c32846acec3ecbd60df647c
[ "MIT" ]
1
2021-09-11T02:34:39.000Z
2021-09-11T02:34:39.000Z
from microbit import * from enum import * if __name__ == '__main__': sensor = PIR(J1) while True: if sensor.PIR_is_decection(): display.show(Image.HAPPY) else: display.show(Image.SAD)
17.978723
42
0.504142
5bbe9f7c8be6cfdb5c273cc5d3e55754436428fd
390
py
Python
hive_gns/engine/pruner.py
imwatsi/hive-gns
c2b29b19245381af8ad0c055c0f0c14f331d5c10
[ "MIT" ]
null
null
null
hive_gns/engine/pruner.py
imwatsi/hive-gns
c2b29b19245381af8ad0c055c0f0c14f331d5c10
[ "MIT" ]
null
null
null
hive_gns/engine/pruner.py
imwatsi/hive-gns
c2b29b19245381af8ad0c055c0f0c14f331d5c10
[ "MIT" ]
null
null
null
import time from hive_gns.database.access import delete
19.5
56
0.561538
5bc01949d492a259d48585f6c5cb445301f6248e
7,604
py
Python
examples/example_sim_grad_bounce.py
NVIDIA/warp
fc7d3255435fc2fe6b54300e689f74e6d67418ca
[ "CNRI-Python-GPL-Compatible", "Unlicense", "0BSD", "Apache-2.0", "MIT" ]
306
2022-03-21T23:24:13.000Z
2022-03-31T21:11:28.000Z
examples/example_sim_grad_bounce.py
NVIDIA/warp
fc7d3255435fc2fe6b54300e689f74e6d67418ca
[ "CNRI-Python-GPL-Compatible", "Unlicense", "0BSD", "Apache-2.0", "MIT" ]
11
2022-03-23T06:23:25.000Z
2022-03-31T22:17:18.000Z
examples/example_sim_grad_bounce.py
NVIDIA/warp
fc7d3255435fc2fe6b54300e689f74e6d67418ca
[ "CNRI-Python-GPL-Compatible", "Unlicense", "0BSD", "Apache-2.0", "MIT" ]
18
2022-03-22T16:27:21.000Z
2022-03-30T20:07:47.000Z
# Copyright (c) 2022 NVIDIA CORPORATION. All rights reserved. # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and relate...
28.912548
161
0.574303
5bc291d11ce1dc852f69923b4d905a55362d2478
206
py
Python
brr/article/models.py
nilq/brr
d2b8166d2816750d379b62f408c20b0aebcbc075
[ "Unlicense" ]
null
null
null
brr/article/models.py
nilq/brr
d2b8166d2816750d379b62f408c20b0aebcbc075
[ "Unlicense" ]
null
null
null
brr/article/models.py
nilq/brr
d2b8166d2816750d379b62f408c20b0aebcbc075
[ "Unlicense" ]
null
null
null
from django.db import models
29.428571
54
0.762136
5bc2952588678d234203b37d2a39a4f5f14434b3
856
py
Python
Health_Reminders/Health_reminder.py
balajeraam/BaSh_Python
fd76f4061fb27713a5285b7da898337a42326390
[ "MIT" ]
null
null
null
Health_Reminders/Health_reminder.py
balajeraam/BaSh_Python
fd76f4061fb27713a5285b7da898337a42326390
[ "MIT" ]
null
null
null
Health_Reminders/Health_reminder.py
balajeraam/BaSh_Python
fd76f4061fb27713a5285b7da898337a42326390
[ "MIT" ]
null
null
null
# importing tkinter module that will handle display window and text import tkinter as tk #Create a class that will generate new tkinter window with message for a given text # Replace << >> with your name Reminder("Hi << >>..Take a 30 second walk please..") Reminder("Hi << >>..Drink a glass of water please..")
42.8
100
0.719626