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
37218dc001152be9a5cbbcb8a62c2a58d5ca62fb
287
py
Python
yard/skills/66-python/cookbook/yvhai/demo/input/xml.py
paser4se/bbxyard
d09bc6efb75618b2cef047bad9c8b835043446cb
[ "Apache-2.0" ]
1
2016-03-29T02:01:58.000Z
2016-03-29T02:01:58.000Z
yard/skills/66-python/cookbook/yvhai/demo/input/xml.py
paser4se/bbxyard
d09bc6efb75618b2cef047bad9c8b835043446cb
[ "Apache-2.0" ]
18
2019-02-13T09:15:25.000Z
2021-12-09T21:32:13.000Z
yard/skills/66-python/cookbook/yvhai/demo/input/xml.py
paser4se/bbxyard
d09bc6efb75618b2cef047bad9c8b835043446cb
[ "Apache-2.0" ]
2
2020-07-05T01:01:30.000Z
2020-07-08T22:33:06.000Z
#!/usr/bin/env python3 # xml xml_w3_book = """ <?xml version="1.0" encoding="ISO-8859-1"?> <bookstore> <book> <title lang="eng">Harry Potter</title> <price>29.99</price> </book> <book> <title lang="eng">Learning XML</title> <price>39.95</price> </book> </bookstore> """
13.045455
43
0.620209
372d1783d09633f1dcce4eb049bf6981e1c19552
5,855
py
Python
test_001/test_006.py
kostur86/kasia_tut
a974bdac660208409ef3a9d2fcc670429ab5fc07
[ "MIT" ]
null
null
null
test_001/test_006.py
kostur86/kasia_tut
a974bdac660208409ef3a9d2fcc670429ab5fc07
[ "MIT" ]
null
null
null
test_001/test_006.py
kostur86/kasia_tut
a974bdac660208409ef3a9d2fcc670429ab5fc07
[ "MIT" ]
null
null
null
#!env python3 """ Introducing static object in the world. Tasks: 1. File got really long - move all classes to library file and import them here. """ import pygame from pygame import K_ESCAPE, K_LEFT, K_RIGHT, K_UP, K_DOWN, QUIT def read_input(game): """ Read user input and set game state. ...
22.782101
83
0.525021
372e7aa4b02b743d5cd7b6c3f4b391ee437c82f6
256
py
Python
earth_engine/apps.py
ecsnavarretemit/sarai-satellite-analysis-backend
73de6c4cac37889efff49b9be085f3c733e27702
[ "MIT" ]
null
null
null
earth_engine/apps.py
ecsnavarretemit/sarai-satellite-analysis-backend
73de6c4cac37889efff49b9be085f3c733e27702
[ "MIT" ]
null
null
null
earth_engine/apps.py
ecsnavarretemit/sarai-satellite-analysis-backend
73de6c4cac37889efff49b9be085f3c733e27702
[ "MIT" ]
null
null
null
# admin.py # # Copyright(c) Exequiel Ceasar Navarrete <esnavarrete1@up.edu.ph> # Licensed under MIT # Version 0.0.0 from __future__ import unicode_literals from django.apps import AppConfig
18.285714
65
0.769531
372f0b9a0c5b68436afd58d4097085803b7bfd5f
1,333
py
Python
seapy/__init__.py
oceanum/seapy
758a02677340a51bbb20d622552ce798a3221b7b
[ "MIT" ]
2
2020-07-09T03:29:10.000Z
2021-07-07T22:00:46.000Z
seapy/__init__.py
joaometocean/seapy
5df410b3f1fa928f76d3421ae3c1698e9d4a5f52
[ "MIT" ]
null
null
null
seapy/__init__.py
joaometocean/seapy
5df410b3f1fa928f76d3421ae3c1698e9d4a5f52
[ "MIT" ]
null
null
null
""" __init__.py State Estimation and Analysis for PYthon Module for working with oceanographic data and models Copyright (c)2019 University of Hawaii under the MIT-License. Requires the following packages: joblib Import classes include: - :class:`~seapy.environ.opt` - :class:`~seapy.progressbar....
24.236364
63
0.699925
372f9e118f442669abaa10df5175221694562ac7
22,776
py
Python
pypy/module/_ssl/interp_ssl.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
12
2016-01-06T07:10:28.000Z
2021-05-13T23:02:02.000Z
pypy/module/_ssl/interp_ssl.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
null
null
null
pypy/module/_ssl/interp_ssl.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
2
2016-07-29T07:09:50.000Z
2016-10-16T08:50:26.000Z
from pypy.rpython.rctypes.tool import ctypes_platform from pypy.rpython.rctypes.tool.libc import libc import pypy.rpython.rctypes.implementation # this defines rctypes magic from pypy.interpreter.error import OperationError from pypy.interpreter.baseobjspace import W_Root, ObjSpace, Wrappable from pypy.interpreter.type...
38.472973
85
0.67514
37303e892dc9ad94bf01158c4ae3cf2a203d0473
2,576
py
Python
apps/question2.py
roshik2016/CIS-5810-Health-Care
af06711c946a92d06ab198cbe10ff73dd103f1c2
[ "Apache-2.0" ]
null
null
null
apps/question2.py
roshik2016/CIS-5810-Health-Care
af06711c946a92d06ab198cbe10ff73dd103f1c2
[ "Apache-2.0" ]
null
null
null
apps/question2.py
roshik2016/CIS-5810-Health-Care
af06711c946a92d06ab198cbe10ff73dd103f1c2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Nov 29 00:56:43 2017 @author: roshi """ import pandas as pd import matplotlib.pyplot as plt import dash import dash_core_components as dcc import dash_html_components as html import plotly.graph_objs as go from app import app data = pd.read_csv('./data/youth_to...
25.76
97
0.556289
3730b8d9d97aea9d5b10c216bcc20f5a6594936c
1,084
py
Python
tests/test_easy_patient_name.py
taylordeatri/phc-sdk-py
8f3ec6ac44e50c7194f174fd0098de390886693d
[ "MIT" ]
1
2020-07-22T12:46:58.000Z
2020-07-22T12:46:58.000Z
tests/test_easy_patient_name.py
taylordeatri/phc-sdk-py
8f3ec6ac44e50c7194f174fd0098de390886693d
[ "MIT" ]
54
2019-10-09T16:19:04.000Z
2022-01-19T20:28:59.000Z
tests/test_easy_patient_name.py
taylordeatri/phc-sdk-py
8f3ec6ac44e50c7194f174fd0098de390886693d
[ "MIT" ]
2
2019-10-30T19:54:43.000Z
2020-12-03T18:57:15.000Z
from phc.easy.patients.name import expand_name_value
27.794872
79
0.47048
37324e5514d40a1e4f6fc7ae82b9119d2c9de22e
2,249
py
Python
templates/fastApiService/zarubaServiceName/main.py
state-alchemists/zaruba
2c689c920df3589168ec81664b92110021892464
[ "Apache-2.0" ]
39
2020-03-13T19:41:11.000Z
2022-02-14T02:01:00.000Z
templates/fastApiService/zarubaServiceName/main.py
state-alchemists/zaruba
2c689c920df3589168ec81664b92110021892464
[ "Apache-2.0" ]
5
2020-08-01T08:55:48.000Z
2022-02-10T00:55:39.000Z
templates/fastApiService/zarubaServiceName/main.py
state-alchemists/zaruba
2c689c920df3589168ec81664b92110021892464
[ "Apache-2.0" ]
4
2020-11-10T20:45:12.000Z
2021-03-18T06:18:55.000Z
from fastapi import FastAPI from fastapi.staticfiles import StaticFiles from sqlalchemy import create_engine from helpers.transport import RMQEventMap, KafkaEventMap, get_rmq_connection_parameters, get_kafka_connection_parameters from configs.helper import get_abs_static_dir, create_message_bus, create_rpc import os ...
48.891304
120
0.803468
2e92110a4acf5b4d90f4de3ae5d754fd4d0bda47
292
py
Python
integration/tests_ok/user_agent.py
jleverenz/hurl
b81ca8ab7e0e409ec0c074fd8e118721ff4d3fb3
[ "Apache-2.0" ]
null
null
null
integration/tests_ok/user_agent.py
jleverenz/hurl
b81ca8ab7e0e409ec0c074fd8e118721ff4d3fb3
[ "Apache-2.0" ]
null
null
null
integration/tests_ok/user_agent.py
jleverenz/hurl
b81ca8ab7e0e409ec0c074fd8e118721ff4d3fb3
[ "Apache-2.0" ]
null
null
null
from app import app from flask import request
19.466667
59
0.657534
2e9468df37a2fdec7d11655ed9954768b1a4267e
61,398
py
Python
downloader_backend.py
ansys/automatic-installer
47563fbccf0769ba0153deb9cce373d99e8a8b26
[ "MIT" ]
2
2022-02-17T10:02:29.000Z
2022-02-22T21:31:09.000Z
downloader_backend.py
ansys/automatic-installer
47563fbccf0769ba0153deb9cce373d99e8a8b26
[ "MIT" ]
4
2022-02-15T09:56:49.000Z
2022-03-31T15:44:10.000Z
downloader_backend.py
ansys/automatic-installer
47563fbccf0769ba0153deb9cce373d99e8a8b26
[ "MIT" ]
1
2022-02-22T21:31:17.000Z
2022-02-22T21:31:17.000Z
import argparse import datetime import errno import json import logging import os import random import re import shutil import subprocess import sys import time import traceback import zipfile import zlib from functools import wraps from types import SimpleNamespace import psutil import py7zr from artifactory import A...
41.597561
118
0.610052
2e9651f60def43e3b45da108464a7524c9c57ee1
14,752
py
Python
spectrum/input.py
elifesciences/elife-spectrum
05ed1dac44f4fd9271b30808e8381ab033c8ecc4
[ "MIT" ]
null
null
null
spectrum/input.py
elifesciences/elife-spectrum
05ed1dac44f4fd9271b30808e8381ab033c8ecc4
[ "MIT" ]
91
2016-12-12T10:00:00.000Z
2021-10-18T02:51:39.000Z
spectrum/input.py
elifesciences/elife-spectrum
05ed1dac44f4fd9271b30808e8381ab033c8ecc4
[ "MIT" ]
1
2017-04-13T22:26:46.000Z
2017-04-13T22:26:46.000Z
"""utility library for interacting with remote services, such as: * dashboard * journal * elife-bot * journal-cms contains no tests to be run.""" from os import path import random import string import requests from econtools import econ_workflow from pollute import modified_environ import mechanicalsoup from spectru...
39.762803
251
0.657606
2e9709ca8cc7d764b689cf057d3c5b3594a91da1
2,858
py
Python
tools/python/maps_generator/generator/osmtools.py
Polas/omim
03558b418b338f506fbf3aa72ddf15187a2005ee
[ "Apache-2.0" ]
1
2020-11-10T01:13:12.000Z
2020-11-10T01:13:12.000Z
tools/python/maps_generator/generator/osmtools.py
Polas/omim
03558b418b338f506fbf3aa72ddf15187a2005ee
[ "Apache-2.0" ]
1
2018-11-26T15:44:46.000Z
2018-11-27T10:55:36.000Z
tools/python/maps_generator/generator/osmtools.py
Polas/omim
03558b418b338f506fbf3aa72ddf15187a2005ee
[ "Apache-2.0" ]
null
null
null
import os import subprocess from . import settings from .exceptions import BadExitStatusError from .exceptions import wait_and_raise_if_fail
23.42623
78
0.557733
2e97391dfc452d676130d4fba3d542a2e077ba24
3,210
py
Python
app.py
mikecarrier4/GITBTC-Prototype
aff6f9584def94abf15ab753829b032cda4b5e51
[ "MIT" ]
null
null
null
app.py
mikecarrier4/GITBTC-Prototype
aff6f9584def94abf15ab753829b032cda4b5e51
[ "MIT" ]
null
null
null
app.py
mikecarrier4/GITBTC-Prototype
aff6f9584def94abf15ab753829b032cda4b5e51
[ "MIT" ]
null
null
null
from flask import Flask, render_template, redirect, request, url_for, session from flask_sqlalchemy import SQLAlchemy from src import DB import subprocess import os import signal app = Flask(__name__, template_folder='templates') app.secret_key = 'super secret key' app.config['SESSION_TYPE'] = 'filesystem' #app.config...
28.157895
95
0.593458
2e97b594597a17ee9700119005e1bb2d1097d89e
9,027
py
Python
codes/train_for_each_cate.py
thu-coai/DiaSafety
8383d45bea1be44ecf1cb9cd4bec52611812ea2d
[ "Apache-2.0" ]
3
2021-11-03T06:16:15.000Z
2022-03-11T07:09:23.000Z
codes/train_for_each_cate.py
thu-coai/DiaSafety
8383d45bea1be44ecf1cb9cd4bec52611812ea2d
[ "Apache-2.0" ]
null
null
null
codes/train_for_each_cate.py
thu-coai/DiaSafety
8383d45bea1be44ecf1cb9cd4bec52611812ea2d
[ "Apache-2.0" ]
null
null
null
from transformers import RobertaTokenizer, RobertaForSequenceClassification, AdamW import torch import json from sklearn import metrics from tqdm import tqdm import numpy as np from time import time from datetime import timedelta import pandas as pd from sklearn.model_selection import train_test_split import argparse i...
42.985714
174
0.641631
2e9823bd8bb1e8b62572906d7b5463e1162c391e
5,065
py
Python
tests/functional/test_lentBook.py
deemarc/dmLibrary
ebdb77c45ffdf4c92797a2f268b59adedd46ef2a
[ "MIT" ]
null
null
null
tests/functional/test_lentBook.py
deemarc/dmLibrary
ebdb77c45ffdf4c92797a2f268b59adedd46ef2a
[ "MIT" ]
null
null
null
tests/functional/test_lentBook.py
deemarc/dmLibrary
ebdb77c45ffdf4c92797a2f268b59adedd46ef2a
[ "MIT" ]
null
null
null
import unittest from dmLibrary import create_app from dmLibrary.external.googleBook import GoogleBook import time import logging logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__)
35.41958
89
0.595854
2e9869e8da3125095fe2bf1fdea08f90bff81ce5
697
py
Python
LeetCode/Python/search_insert_position.py
tejeshreddy/competitive-programming
e98d3800c7f1dcca285286cac1ac056b11201e12
[ "MIT" ]
null
null
null
LeetCode/Python/search_insert_position.py
tejeshreddy/competitive-programming
e98d3800c7f1dcca285286cac1ac056b11201e12
[ "MIT" ]
null
null
null
LeetCode/Python/search_insert_position.py
tejeshreddy/competitive-programming
e98d3800c7f1dcca285286cac1ac056b11201e12
[ "MIT" ]
null
null
null
""" Title: 0035 - Search Insert Position Tags: Binary Search Time: O(logn) Space: O(1) Source: https://leetcode.com/problems/search-insert-position/ Difficulty: Easy """
22.483871
61
0.476327
2e9a0dfea1dd417d3aed705d60b72d8ce81c3470
1,337
py
Python
server/api/test.py
nwfsc-fram/Warehouse
c1a06ab7bacd6c15ab5fe2bb6076e3ea3c95757d
[ "BSD-3-Clause" ]
5
2019-02-27T03:06:02.000Z
2021-11-15T20:12:50.000Z
server/api/test.py
nwfsc-fram/Warehouse
c1a06ab7bacd6c15ab5fe2bb6076e3ea3c95757d
[ "BSD-3-Clause" ]
48
2019-02-14T21:15:18.000Z
2021-10-02T01:18:49.000Z
server/api/test.py
nwfsc-fram/Warehouse
c1a06ab7bacd6c15ab5fe2bb6076e3ea3c95757d
[ "BSD-3-Clause" ]
1
2021-03-22T23:47:54.000Z
2021-03-22T23:47:54.000Z
# pylint: disable=global-statement """ Module providing unittest test discovery hook for our Doctest testcases Copyright (C) 2015, 2016 ERT Inc. """ import unittest import doctest from time import sleep from api import app_module as app from api import ( config_loader ,aes ,json ,resource_util ) __au...
26.74
77
0.712042
2e9ab9a70a398a99408deeddd6ad6d94b9da8cfd
9,736
py
Python
tests/old_wc.py
qiaojunfeng/yambo-aiida
1900f2a0932b7782759740e5835620dbfb897a76
[ "MIT", "BSD-3-Clause" ]
3
2018-10-30T14:00:40.000Z
2020-04-11T08:03:10.000Z
tests/old_wc.py
qiaojunfeng/yambo-aiida
1900f2a0932b7782759740e5835620dbfb897a76
[ "MIT", "BSD-3-Clause" ]
32
2017-10-23T17:11:35.000Z
2022-03-28T10:04:23.000Z
tests/old_wc.py
qiaojunfeng/yambo-aiida
1900f2a0932b7782759740e5835620dbfb897a76
[ "MIT", "BSD-3-Clause" ]
6
2017-10-23T17:01:13.000Z
2022-03-15T18:20:35.000Z
from __future__ import absolute_import from __future__ import print_function import unittest from aiida.manage.fixtures import PluginTestCase import subprocess, os def backend_obj_users(): """Test if aiida accesses users through backend object.""" backend_obj_flag = False try: from aiida.backends...
38.482213
112
0.57159
2e9d1bb5a95a4719b56246692e62c0136fc3c506
4,017
py
Python
knn.py
dengbuqi/lie_detection
a90070511e779c2ec765b34ec68bac806053bf9d
[ "MIT" ]
1
2022-01-23T17:21:20.000Z
2022-01-23T17:21:20.000Z
knn.py
dengbuqi/lie_detection
a90070511e779c2ec765b34ec68bac806053bf9d
[ "MIT" ]
null
null
null
knn.py
dengbuqi/lie_detection
a90070511e779c2ec765b34ec68bac806053bf9d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # @FileName : knn.py # @Time : 2020/9/25 12:29 # @Author : # @Demand : k- import csv import math import operator from random import shuffle import matplotlib.pyplot as plt # training_set = [] # test_set = []
27.703448
104
0.62584
2e9db835b85cc0a761a8f0a3c7d9faa9306aeec6
5,530
py
Python
vnpy/trader/http/controller/stock.py
chenzj810/vnpy-stock
ca30eb309e38f9f916e9877538b98096303e0b60
[ "MIT" ]
2
2021-01-03T05:28:14.000Z
2021-01-03T05:28:19.000Z
vnpy/trader/http/controller/stock.py
chenzj810/vnpy
ca30eb309e38f9f916e9877538b98096303e0b60
[ "MIT" ]
null
null
null
vnpy/trader/http/controller/stock.py
chenzj810/vnpy
ca30eb309e38f9f916e9877538b98096303e0b60
[ "MIT" ]
1
2021-04-26T14:08:23.000Z
2021-04-26T14:08:23.000Z
# encoding: UTF-8 import os import tornado.httpserver import tornado.ioloop import tornado.options import tornado.web import json ########################################################################
29.414894
102
0.517541
2e9e6bf6e35ae4a1dfdd7e51e95b5be403c30f21
7,126
py
Python
src/headtracking_network/live_training.py
NaviRice/HeadTracking
8227cc247425ecacd3e789dbbac11d3e5103d3e2
[ "MIT" ]
1
2019-10-24T14:29:00.000Z
2019-10-24T14:29:00.000Z
src/headtracking_network/live_training.py
NaviRice/HeadTracking
8227cc247425ecacd3e789dbbac11d3e5103d3e2
[ "MIT" ]
7
2017-11-28T23:58:40.000Z
2022-03-11T23:12:12.000Z
src/headtracking_network/live_training.py
NaviRice/HeadTracking
8227cc247425ecacd3e789dbbac11d3e5103d3e2
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf import os import navirice_image_pb2 import cv2 import random import sys from navirice_generate_data import generate_bitmap_label from navirice_helpers import navirice_image_to_np from navirice_helpers import navirice_ir_to_np from navirice_helpers import map_depth_and_rgb fro...
33.772512
152
0.57648
2e9f1ea21cc06a6a8937ede1cde54d73757d1f69
1,448
py
Python
src/python-opencv/001-base/test_003_change.py
bjlhx15/python-algorithm
bbd162e194359a01806922d73b709fe64fcfa422
[ "Apache-2.0" ]
null
null
null
src/python-opencv/001-base/test_003_change.py
bjlhx15/python-algorithm
bbd162e194359a01806922d73b709fe64fcfa422
[ "Apache-2.0" ]
null
null
null
src/python-opencv/001-base/test_003_change.py
bjlhx15/python-algorithm
bbd162e194359a01806922d73b709fe64fcfa422
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- import cv2 import numpy as np # def img_three(imgPath): # --------------------------- --------------------------- """ warpAffine """ img = cv2.imread(imgPath) rows,cols,_ = img.shape points1 = np.float32([[50,50],[200,50],[50,200]]) points2 = np...
27.846154
71
0.594613
2ea01d9b33fe2e0d0e0d8aac551b396ffa45ae0c
6,836
py
Python
affine/preprocessing.py
OSU-slatelab/geometric-embedding-properties
0436d86303439681ad74aa4d29a53a15953cbb88
[ "MIT" ]
3
2019-06-06T18:57:22.000Z
2020-04-03T07:47:14.000Z
affine/preprocessing.py
OSU-slatelab/geometric-embedding-properties
0436d86303439681ad74aa4d29a53a15953cbb88
[ "MIT" ]
null
null
null
affine/preprocessing.py
OSU-slatelab/geometric-embedding-properties
0436d86303439681ad74aa4d29a53a15953cbb88
[ "MIT" ]
1
2019-09-23T20:44:04.000Z
2019-09-23T20:44:04.000Z
from progressbar import progressbar from tqdm import tqdm import multiprocessing as mp import pandas as pd import numpy as np import pyemblib import scipy import queue import time import sys import os ''' preprocessing.py Preprocessing methods for cuto.py. ''' #========1=========2=========3=========4=========5=...
32.708134
72
0.510532
2ea13d20660fbbf34a9c2a82526adf203ee02dd1
6,931
py
Python
restcli/cliparser.py
jykntr/rest-cli-client
d9ebf5a6e056ba7ab0e59614d9702e373696580e
[ "MIT" ]
1
2015-07-03T10:43:04.000Z
2015-07-03T10:43:04.000Z
restcli/cliparser.py
jykntr/rest-cli-client
d9ebf5a6e056ba7ab0e59614d9702e373696580e
[ "MIT" ]
null
null
null
restcli/cliparser.py
jykntr/rest-cli-client
d9ebf5a6e056ba7ab0e59614d9702e373696580e
[ "MIT" ]
null
null
null
import argparse from profile import Profile PROXY = 'proxy' VERIFY = 'verify' DEBUG = 'verbose'
38.292818
112
0.568605
2ea1906135b6dd2cc25bcc298892705479bf616f
448
py
Python
src/widgets/button.py
priscilafaliani/Analisis-De-Datos
247695e3e976f042fc453d02bd9d4d722fb331ff
[ "CC0-1.0" ]
6
2021-05-02T08:28:42.000Z
2021-05-07T13:18:32.000Z
src/widgets/button.py
priscilafaliani/Analisis-De-Datos
247695e3e976f042fc453d02bd9d4d722fb331ff
[ "CC0-1.0" ]
null
null
null
src/widgets/button.py
priscilafaliani/Analisis-De-Datos
247695e3e976f042fc453d02bd9d4d722fb331ff
[ "CC0-1.0" ]
null
null
null
"""Builds a button according to the theme of the app.""" import PySimpleGUI as sg from src.globals import colors def build(text, key, font, size): """Returns a button with the current theme""" button = sg.Button( button_text=text, button_color=(colors.WHITE, colors.LIGHT_GRAY), mou...
24.888889
56
0.633929
2ea1bf2e9cb8105280a4f2635279518d125a4312
8,005
py
Python
python/paddle/fluid/tests/unittests/test_fused_gemm_epilogue_grad_op.py
Li-fAngyU/Paddle
e548f65f96697830035a28f9070b40829408ccdb
[ "Apache-2.0" ]
8
2016-08-15T07:02:27.000Z
2016-08-24T09:34:00.000Z
python/paddle/fluid/tests/unittests/test_fused_gemm_epilogue_grad_op.py
Li-fAngyU/Paddle
e548f65f96697830035a28f9070b40829408ccdb
[ "Apache-2.0" ]
1
2022-01-28T07:23:22.000Z
2022-01-28T07:23:22.000Z
python/paddle/fluid/tests/unittests/test_fused_gemm_epilogue_grad_op.py
Li-fAngyU/Paddle
e548f65f96697830035a28f9070b40829408ccdb
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # Copyright (c) 2022 NVIDIA Corporation. 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://...
33.354167
75
0.6396
2ea653e279e69de83e480c6b72197a40442f52f8
435
py
Python
scripts/classtest.py
alandegenhart/neuropy
a9f7b735da78a5296f648cb3bb94c1c31843c668
[ "MIT" ]
1
2020-09-03T19:33:48.000Z
2020-09-03T19:33:48.000Z
scripts/classtest.py
alandegenhart/neuropy
a9f7b735da78a5296f648cb3bb94c1c31843c668
[ "MIT" ]
null
null
null
scripts/classtest.py
alandegenhart/neuropy
a9f7b735da78a5296f648cb3bb94c1c31843c668
[ "MIT" ]
null
null
null
"""Class static method test""" if __name__ == '__main__': C = TestClass(a=1, b=2) print(C.add()) print(C.add2())
16.730769
46
0.528736
2ea7b1e2f8c9260e23fc9fd591de1116fc926068
332
py
Python
gsheetsdb/types.py
tim-werner/gsheets-db-api
12f2a4fbe1bd5aa36781226759326ce782b08a91
[ "MIT" ]
176
2018-09-11T12:29:00.000Z
2022-03-26T19:33:31.000Z
gsheetsdb/types.py
tim-werner/gsheets-db-api
12f2a4fbe1bd5aa36781226759326ce782b08a91
[ "MIT" ]
16
2018-09-14T18:11:09.000Z
2022-03-08T20:17:56.000Z
gsheetsdb/types.py
tim-werner/gsheets-db-api
12f2a4fbe1bd5aa36781226759326ce782b08a91
[ "MIT" ]
14
2019-01-10T16:40:25.000Z
2021-07-27T01:22:58.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from enum import Enum
20.75
39
0.73494
2ea7de1147d9144369902e2ec0e8782d863ee315
1,525
py
Python
copy_activities.py
atulbhingarde/PythonTwo
3a43dd0c46959b7aeb6d07c9b26db712e4c14eed
[ "CNRI-Python" ]
null
null
null
copy_activities.py
atulbhingarde/PythonTwo
3a43dd0c46959b7aeb6d07c9b26db712e4c14eed
[ "CNRI-Python" ]
null
null
null
copy_activities.py
atulbhingarde/PythonTwo
3a43dd0c46959b7aeb6d07c9b26db712e4c14eed
[ "CNRI-Python" ]
null
null
null
import os from pathlib import Path from shutil import copyfile stu_activities("Downloads") # test
35.465116
121
0.557377
2ea7fcfc6b9425bbcc8ff271e419c167ea927769
1,122
py
Python
not_so_weird/oneoff/helper.py
psorus/anogen
86afc22718aded00bbc05e4582fa0a9b6aa3ab25
[ "MIT" ]
null
null
null
not_so_weird/oneoff/helper.py
psorus/anogen
86afc22718aded00bbc05e4582fa0a9b6aa3ab25
[ "MIT" ]
null
null
null
not_so_weird/oneoff/helper.py
psorus/anogen
86afc22718aded00bbc05e4582fa0a9b6aa3ab25
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np f=np.load("model.npz",allow_pickle=True) f2=np.load("model2.npz",allow_pickle=True) f3=np.load("model3.npz",allow_pickle=True) f4=np.load("model4.npz",allow_pickle=True) f5=np.load("model5.npz",allow_pickle=True) model=f["model"] print("exp model1") model2=f2["mode...
19.016949
51
0.663993
2ea85744077900251cd10c8772714c2d58a74dc9
2,021
py
Python
workers/event_checker.py
D00Movenok/ctf-participation-bot
bc922f083c4b16e7f78ce6ba8b2836b82261fd45
[ "MIT" ]
8
2022-03-05T09:55:31.000Z
2022-03-10T20:17:54.000Z
workers/event_checker.py
D00Movenok/ctf-participation-bot
bc922f083c4b16e7f78ce6ba8b2836b82261fd45
[ "MIT" ]
null
null
null
workers/event_checker.py
D00Movenok/ctf-participation-bot
bc922f083c4b16e7f78ce6ba8b2836b82261fd45
[ "MIT" ]
null
null
null
import logging import threading import time from datetime import datetime, timedelta from sqlalchemy import column, func, select from sqlalchemy.orm import SessionTransaction from actions.discord import Discord from actions.telegram import Telegram from common.database import session from common.models import Event, ...
33.131148
79
0.638793
2ea94d8d31634c3fa968dde28070a8a994acc38b
9,148
py
Python
zigpy_deconz_parser/commands/responses.py
zha-ng/zigpy-deconz-parser
9182b3578f20a145ccd46b0cfa002613c4cd38db
[ "Apache-2.0" ]
2
2020-02-06T00:00:10.000Z
2022-02-25T23:47:30.000Z
zigpy_deconz_parser/commands/responses.py
zha-ng/zigpy-deconz-parser
9182b3578f20a145ccd46b0cfa002613c4cd38db
[ "Apache-2.0" ]
2
2020-04-08T11:57:46.000Z
2020-05-13T13:32:03.000Z
zigpy_deconz_parser/commands/responses.py
zha-ng/zigpy-deconz-parser
9182b3578f20a145ccd46b0cfa002613c4cd38db
[ "Apache-2.0" ]
null
null
null
import attr import binascii import zigpy.types as t import zigpy_deconz.types as dt import zigpy_deconz_parser.types as pt
35.049808
83
0.636314
2ea9907ebbbf213bac1387472ad831707cedf09e
2,240
py
Python
run.py
evgsolntsev/labirinth_screensaver
b41df36d18a9d7d7fcad6c8de89e04c89b0ed704
[ "MIT" ]
1
2018-09-09T16:50:37.000Z
2018-09-09T16:50:37.000Z
run.py
evgsolntsev/labirinth_screensaver
b41df36d18a9d7d7fcad6c8de89e04c89b0ed704
[ "MIT" ]
null
null
null
run.py
evgsolntsev/labirinth_screensaver
b41df36d18a9d7d7fcad6c8de89e04c89b0ed704
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import math import os import random import sys import time from operator import itemgetter import pygame from screeninfo import get_monitors from Xlib import display from level import Level DEBUG = "XSCREENSAVER_WINDOW" not in os.environ BLACK = (0, 0, 0) WHITE = (255, 255, 255) pygame.init()...
23.829787
77
0.636607
2ea9eb3263cf5ab011a34c951f427040e1522b17
29,789
py
Python
q_dic.py
1ahmedg/quote-script
852d7bb88d5edc282080a9f86387df67eab270ed
[ "MIT" ]
null
null
null
q_dic.py
1ahmedg/quote-script
852d7bb88d5edc282080a9f86387df67eab270ed
[ "MIT" ]
null
null
null
q_dic.py
1ahmedg/quote-script
852d7bb88d5edc282080a9f86387df67eab270ed
[ "MIT" ]
null
null
null
# Quotes from: https://www.notion.so/Quotes-by-Naval-Ravikant-3edaf88cfc914b06a98b58b62b6dc222 dic = [\ "Read what you love until you love to read.",\ "True Wisdom Comes From Understanding, Not Memorization.",\ "Meditation is the art of doing nothing. You cannot do meditation. By definition, if youre doing somet...
61.168378
376
0.757629
2eaaaf757b2e454dd1e67efcc93720debfd58001
9,520
py
Python
back_end/database/update_db_helpers.py
PrincetonResInDe/course-selection
7ec447e13ff74bf130c61feb2de65d94fb192efa
[ "MIT" ]
3
2022-01-11T17:39:44.000Z
2022-02-13T16:31:25.000Z
back_end/database/update_db_helpers.py
PrincetonResInDe/course-selection
7ec447e13ff74bf130c61feb2de65d94fb192efa
[ "MIT" ]
5
2022-01-12T19:03:05.000Z
2022-01-31T20:28:00.000Z
back_end/database/update_db_helpers.py
PrincetonResInDe/course-selection
7ec447e13ff74bf130c61feb2de65d94fb192efa
[ "MIT" ]
null
null
null
import json from database_utils import DatabaseUtils from mobileapp import MobileApp from registrar import RegistrarAPI import logging logging.basicConfig( format="%(asctime)s - %(levelname)s - %(name)s: %(message)s", datefmt="%m/%d/%Y %H:%M:%S", level=logging.INFO, ) logger = logging.getLogger(__name__) ...
39.338843
148
0.626996
2eb1e585fcbec5ec479747784f42d3567bceb246
1,294
py
Python
submission_config.py
ege-k/nlp4nethack
8b8b45a2f0be09c5233b33a47f421906e9e4b561
[ "MIT" ]
null
null
null
submission_config.py
ege-k/nlp4nethack
8b8b45a2f0be09c5233b33a47f421906e9e4b561
[ "MIT" ]
null
null
null
submission_config.py
ege-k/nlp4nethack
8b8b45a2f0be09c5233b33a47f421906e9e4b561
[ "MIT" ]
null
null
null
from agents.custom_agent import CustomAgent from agents.torchbeast_agent import TorchBeastAgent from envs.wrappers import addtimelimitwrapper_fn ################################################ # Import your own agent code # # Set Submision_Agent to your agent # # Set NUM_PARALLEL_ENVI...
33.179487
74
0.663833
2eb5fd9ffdbf193e8abf2874479c7b6361639df5
1,452
py
Python
xmem/templates/registry.py
mHaisham/xmem
87f3ce1b18b629bbc36824cfac5e8f883f9a371a
[ "Apache-2.0" ]
null
null
null
xmem/templates/registry.py
mHaisham/xmem
87f3ce1b18b629bbc36824cfac5e8f883f9a371a
[ "Apache-2.0" ]
null
null
null
xmem/templates/registry.py
mHaisham/xmem
87f3ce1b18b629bbc36824cfac5e8f883f9a371a
[ "Apache-2.0" ]
null
null
null
from typing import Union try: import winreg except ImportError: pass from ..template import BaseTemplate from ..exceptions import NotFoundError
29.632653
94
0.626033
2eb65dad6e5394cc110d92fd92ceb3c0ad67e792
610
py
Python
RSA/src/primeCheck3.py
BenGH28/Projects
f9e25e39e6afb58203b283c2d0d32d11f1c71124
[ "MIT" ]
null
null
null
RSA/src/primeCheck3.py
BenGH28/Projects
f9e25e39e6afb58203b283c2d0d32d11f1c71124
[ "MIT" ]
null
null
null
RSA/src/primeCheck3.py
BenGH28/Projects
f9e25e39e6afb58203b283c2d0d32d11f1c71124
[ "MIT" ]
null
null
null
from math import sqrt, ceil def isPrime(x): """Primality test. Param x: int. Returns True if x is prime, False otherwise. """ if x <= 0: return False elif x == 2 or x == 3: return True else: for i in range(2, ceil(sqrt(x)) + 1): if x % i == 0: ...
21.785714
71
0.52459
2eb7960ce3140ec7ac3164e707d922756ad1469b
1,279
py
Python
text_classifier/utils/analyze_data.py
felixdittrich92/Document_Scanner
64d482393aa76aa845a30cdf5c86c7705c780450
[ "MIT" ]
null
null
null
text_classifier/utils/analyze_data.py
felixdittrich92/Document_Scanner
64d482393aa76aa845a30cdf5c86c7705c780450
[ "MIT" ]
null
null
null
text_classifier/utils/analyze_data.py
felixdittrich92/Document_Scanner
64d482393aa76aa845a30cdf5c86c7705c780450
[ "MIT" ]
1
2021-03-19T14:55:51.000Z
2021-03-19T14:55:51.000Z
"""Script to analyze the Dataframes """ import pandas as pd import matplotlib.pyplot as plt german_df = pd.read_parquet('/home/felix/Desktop/Document_Scanner/text_classifier/data/german.parquet') english_df = pd.read_parquet('/home/felix/Desktop/Document_Scanner/text_classifier/data/english.parquet') german_df.to_csv(...
42.633333
112
0.784206
2ebb42c9684dbe1d66150928c34e62dbd038a141
4,742
py
Python
timeflux_serial/nodes/driver.py
mesca/timeflux_serial
60d751c7250d06cc82f77906f7ec741bf2ca0a8b
[ "MIT" ]
null
null
null
timeflux_serial/nodes/driver.py
mesca/timeflux_serial
60d751c7250d06cc82f77906f7ec741bf2ca0a8b
[ "MIT" ]
null
null
null
timeflux_serial/nodes/driver.py
mesca/timeflux_serial
60d751c7250d06cc82f77906f7ec741bf2ca0a8b
[ "MIT" ]
null
null
null
import serial import time import numpy as np import pandas as pd from timeflux.core.exceptions import WorkerInterrupt from timeflux.helpers import clock from timeflux.core.node import Node
30.792208
103
0.590679
2ebc95c774511889dc90b69ea08be7978a3d36fc
2,147
py
Python
example/infer.py
johnson7788/OpenNRE
dedf56d30b1ba8fa4d7fac2791fb89d6b8af4ba0
[ "MIT" ]
5
2021-05-20T02:29:34.000Z
2021-12-21T13:37:39.000Z
example/infer.py
johnson7788/OpenNRE
dedf56d30b1ba8fa4d7fac2791fb89d6b8af4ba0
[ "MIT" ]
null
null
null
example/infer.py
johnson7788/OpenNRE
dedf56d30b1ba8fa4d7fac2791fb89d6b8af4ba0
[ "MIT" ]
4
2021-06-09T07:40:52.000Z
2022-03-11T01:16:08.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2021/3/15 10:40 # @File : infer.py # @Author: johnson # @Contact : github: johnson7788 # @Desc : import opennre def infer_wiki80_bert_softmax(): """ :return: """ model = opennre.get_model('wiki80_bert_softmax') result = model.infer...
38.339286
143
0.567303
2ec16ba2dc35438c6e75d67e92a70276533f6439
6,938
py
Python
acme_diags/container/e3sm_diags_container.py
zshaheen/e3sm_diags
0317d5634b14221052c0984ad0c1a27ca8484e2e
[ "BSD-3-Clause" ]
null
null
null
acme_diags/container/e3sm_diags_container.py
zshaheen/e3sm_diags
0317d5634b14221052c0984ad0c1a27ca8484e2e
[ "BSD-3-Clause" ]
null
null
null
acme_diags/container/e3sm_diags_container.py
zshaheen/e3sm_diags
0317d5634b14221052c0984ad0c1a27ca8484e2e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ A standalone script that prepares a set of input to e3sm_diags to be ran as a container, and then runs e3sm_diags as a container. """ import os import sys import importlib import argparse import subprocess # Change these commands if needed. SHIFTER_COMMAND = 'shifter --volume=$REFERENCE_DATA_...
34.009804
106
0.682906
2ec16cb8adc026001f696ccb5a401d62990e6977
15,601
py
Python
johnhablecode.py
anthonyjclark/MeshroomCLI
1f1ab5bb758aa7fd804c34e039c1d728723696f2
[ "CC0-1.0" ]
null
null
null
johnhablecode.py
anthonyjclark/MeshroomCLI
1f1ab5bb758aa7fd804c34e039c1d728723696f2
[ "CC0-1.0" ]
null
null
null
johnhablecode.py
anthonyjclark/MeshroomCLI
1f1ab5bb758aa7fd804c34e039c1d728723696f2
[ "CC0-1.0" ]
1
2021-03-03T02:34:28.000Z
2021-03-03T02:34:28.000Z
import sys, os import shutil main()
35.864368
599
0.647715
2ec17047f3913b1560fc059588ca428be5228730
17,448
py
Python
tests/test_cli.py
lucasace/browser-history
cdd6ce892e1bcc84a2eaf932273ac0454af061a0
[ "Apache-2.0" ]
null
null
null
tests/test_cli.py
lucasace/browser-history
cdd6ce892e1bcc84a2eaf932273ac0454af061a0
[ "Apache-2.0" ]
null
null
null
tests/test_cli.py
lucasace/browser-history
cdd6ce892e1bcc84a2eaf932273ac0454af061a0
[ "Apache-2.0" ]
null
null
null
import csv import itertools import json import tempfile import re import pytest from browser_history.utils import get_browsers from browser_history.cli import cli, AVAILABLE_BROWSERS from .utils import ( # noqa: F401 become_linux, become_mac, become_windows, change_homedir, ) # pylint: disable=redef...
34.965932
88
0.618524
2ec1bd4f84d036770ed1c8c4c525dc52df5d3226
3,363
py
Python
lab4FinalFLCD/venv/Lib/site-packages/domain/validate.py
raduceaca1234/Formal-Languages-and-Compiler-Design
6ced207ad0aa12b9fe5b5090b10bb6dcdd4d2297
[ "MIT" ]
null
null
null
lab4FinalFLCD/venv/Lib/site-packages/domain/validate.py
raduceaca1234/Formal-Languages-and-Compiler-Design
6ced207ad0aa12b9fe5b5090b10bb6dcdd4d2297
[ "MIT" ]
null
null
null
lab4FinalFLCD/venv/Lib/site-packages/domain/validate.py
raduceaca1234/Formal-Languages-and-Compiler-Design
6ced207ad0aa12b9fe5b5090b10bb6dcdd4d2297
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-
26.273438
85
0.632174
2ec35e8658fe8c350dc2c624d8f6bcac6016d398
12,527
py
Python
plugin.video.220ro/default.py
keddyboys/keddy-repo
5c3420828e19f97222714e0e8518a95d58b3f637
[ "MIT" ]
1
2019-09-08T05:39:36.000Z
2019-09-08T05:39:36.000Z
plugin.video.220ro/default.py
keddyboys/keddy-repo
5c3420828e19f97222714e0e8518a95d58b3f637
[ "MIT" ]
1
2017-12-03T09:17:31.000Z
2019-01-13T08:48:40.000Z
plugin.video.220ro/default.py
keddyboys/keddy-repo
5c3420828e19f97222714e0e8518a95d58b3f637
[ "MIT" ]
null
null
null
import HTMLParser import os import re import sys import time import urllib import urllib2 import xbmc import xbmcaddon import xbmcgui import xbmcplugin __addon__ = xbmcaddon.Addon() __cwd__ = xbmc.translatePath(__addon__.getAddonInfo('path')).decode("utf-8") __resource__ = xbmc.translatePath(os.path.join(__c...
38.192073
246
0.58346
2ec52c2ec087b16583f425248434d46a96af0fd5
912
py
Python
tickets/forms.py
connorgannaway/dockmate
040d44cac896aabc1488f3ed9d59b417e20719d8
[ "MIT" ]
null
null
null
tickets/forms.py
connorgannaway/dockmate
040d44cac896aabc1488f3ed9d59b417e20719d8
[ "MIT" ]
null
null
null
tickets/forms.py
connorgannaway/dockmate
040d44cac896aabc1488f3ed9d59b417e20719d8
[ "MIT" ]
null
null
null
from django import forms from . import widgets from .models import Ticket, TicketItem #Creating html forms. # Each class interacts with a model. Fields for a form are chosen in 'fields'
28.5
77
0.664474
2ec5499aa58ee90bddbc543db1bbb0895014d0e6
1,089
py
Python
conftest.py
Budapest-Quantum-Computing-Group/piquassoboost
fd384be8f59cfd20d62654cf86c89f69d3cf8b8c
[ "Apache-2.0" ]
4
2021-11-29T13:28:19.000Z
2021-12-21T22:57:09.000Z
conftest.py
Budapest-Quantum-Computing-Group/piquassoboost
fd384be8f59cfd20d62654cf86c89f69d3cf8b8c
[ "Apache-2.0" ]
11
2021-09-24T18:02:26.000Z
2022-01-27T18:51:47.000Z
conftest.py
Budapest-Quantum-Computing-Group/piquassoboost
fd384be8f59cfd20d62654cf86c89f69d3cf8b8c
[ "Apache-2.0" ]
1
2021-11-13T10:06:52.000Z
2021-11-13T10:06:52.000Z
# # Copyright 2021 Budapest Quantum Computing Group # # 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 ...
33
87
0.724518
2ec7a0b5bdeca4cd119b116e98c327c2a10981dd
799
py
Python
app/core/tests/test_models.py
Skyprince-gh/recipe-app-api
a4f0ead6ab546b1fea69c32caa3c269898c4086f
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
Skyprince-gh/recipe-app-api
a4f0ead6ab546b1fea69c32caa3c269898c4086f
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
Skyprince-gh/recipe-app-api
a4f0ead6ab546b1fea69c32caa3c269898c4086f
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model
47
129
0.768461
2ec96efd7987b372b655db0ecf660d386e3c6beb
6,736
py
Python
nova/virt/libvirt/storage/dmcrypt.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/virt/libvirt/storage/dmcrypt.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/virt/libvirt/storage/dmcrypt.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
2
2017-07-20T17:31:34.000Z
2020-07-24T02:42:19.000Z
begin_unit comment|'# Copyright (c) 2014 The Johns Hopkins University/Applied Physics Laboratory' nl|'\n' comment|'# All Rights Reserved' nl|'\n' comment|'#' nl|'\n' comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may' nl|'\n' comment|'# not use this file except in compliance with t...
15.556582
320
0.621734
2ec9b42a47d378d39bc5d7f55d620025c929fc40
1,308
py
Python
quiz/routing.py
zeroish/grey-matters
a8e235b7412f754be70d057ac46d5ca38171cb54
[ "MIT" ]
1
2018-05-18T12:02:05.000Z
2018-05-18T12:02:05.000Z
quiz/routing.py
zeroish/grey-matters
a8e235b7412f754be70d057ac46d5ca38171cb54
[ "MIT" ]
44
2017-11-10T11:27:45.000Z
2022-03-08T21:09:03.000Z
quiz/routing.py
zeroish/grey-matters
a8e235b7412f754be70d057ac46d5ca38171cb54
[ "MIT" ]
2
2019-03-07T21:52:58.000Z
2020-06-25T10:08:24.000Z
from channels.staticfiles import StaticFilesConsumer from .consumers import ws_connect, ws_receive, ws_disconnect, new_contestant, start_quiz, submit_answer from channels import include, route # Although we could, there is no path matching on these routes; instead we rely # on the matching from the top-level routing. ...
42.193548
103
0.745413
2ecc0dd0c98eb13c08cf7df88acd4f1371b2c87f
2,039
py
Python
webapp/flow_summary_graphs.py
bfitzy2142/NET4901-SP
908c13332a5356bd6a59879b8d78af76432b807c
[ "MIT" ]
3
2019-08-04T03:09:02.000Z
2020-06-08T15:48:36.000Z
webapp/flow_summary_graphs.py
bfitzy2142/NET4901-SP
908c13332a5356bd6a59879b8d78af76432b807c
[ "MIT" ]
3
2019-09-06T08:30:21.000Z
2020-06-30T03:24:56.000Z
webapp/flow_summary_graphs.py
bfitzy2142/NET4901-SP-SDLENS
908c13332a5356bd6a59879b8d78af76432b807c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ MySql Parser for graphical presentation """ import mysql.connector import datetime from mysql.connector import Error from datetime import datetime, timedelta import json def pull_flow_graphs(node, time, sql_creds, db): """ Pulls the RX and TX information from the database to di...
29.550725
68
0.611574
2ecd9594ca823d5651d395e05b565a78030a392e
35,203
py
Python
cardinal_pythonlib/sphinxtools.py
bopopescu/pythonlib
9c2187d6092ba133342ca3374eb7c86f9d296c30
[ "Apache-2.0" ]
null
null
null
cardinal_pythonlib/sphinxtools.py
bopopescu/pythonlib
9c2187d6092ba133342ca3374eb7c86f9d296c30
[ "Apache-2.0" ]
null
null
null
cardinal_pythonlib/sphinxtools.py
bopopescu/pythonlib
9c2187d6092ba133342ca3374eb7c86f9d296c30
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # cardinal_pythonlib/sphinxtools.py """ =============================================================================== Original code copyright (C) 2009-2020 Rudolf Cardinal (rudolf@pobox.com). This file is part of cardinal_pythonlib. Licensed under the Apache License, Version 2.0 ...
37.81203
106
0.599068
2ecd9c823bd13321a5aed037237d0b2d3b1ca359
481
py
Python
monsterapi/migrations/0005_monster_name.py
merenor/momeback
33195c43abd2757a361dfc5cb7e3cf56f6b57402
[ "MIT" ]
1
2018-11-05T13:08:48.000Z
2018-11-05T13:08:48.000Z
monsterapi/migrations/0005_monster_name.py
merenor/momeback
33195c43abd2757a361dfc5cb7e3cf56f6b57402
[ "MIT" ]
null
null
null
monsterapi/migrations/0005_monster_name.py
merenor/momeback
33195c43abd2757a361dfc5cb7e3cf56f6b57402
[ "MIT" ]
null
null
null
# Generated by Django 2.1.3 on 2018-11-08 21:12 from django.db import migrations, models import django.db.models.deletion
24.05
126
0.634096
2ecf02de134bbfb63253edf9f0df0a07e83ef05f
239
py
Python
src/check_ids.py
lubianat/complex_bot
e0ddabcc0487c52b14fb94950c5a812f0bdb2283
[ "MIT" ]
1
2021-10-06T00:21:10.000Z
2021-10-06T00:21:10.000Z
src/check_ids.py
lubianat/complex_bot
e0ddabcc0487c52b14fb94950c5a812f0bdb2283
[ "MIT" ]
14
2021-01-15T21:51:38.000Z
2021-11-10T10:08:22.000Z
src/check_ids.py
lubianat/complex_bot
e0ddabcc0487c52b14fb94950c5a812f0bdb2283
[ "MIT" ]
1
2021-01-18T10:32:56.000Z
2021-01-18T10:32:56.000Z
import pandas as pd from wikidataintegrator import wdi_login import utils from login import WDPASS, WDUSER import argparse import sys parser = argparse.ArgumentParser() df = utils.get_complex_portal_species_ids() print(df.to_markdown())
21.727273
43
0.824268
2ed00b75cde30c9fb64baa2e01095d04529cd5dc
2,398
py
Python
src/sentry/migrations/0028_user_reports.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
src/sentry/migrations/0028_user_reports.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
src/sentry/migrations/0028_user_reports.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.27 on 2020-01-23 19:07 from __future__ import unicode_literals import logging from django.db import migrations from sentry import eventstore from sentry.utils.query import RangeQuerySetWrapper from sentry.utils.snuba import ( SnubaError, QueryOutsideRetentio...
36.892308
94
0.708924
2ed1150755a47f709a199aa35375f61abbfe571c
190
py
Python
config.py
sixleaves/fisher
8f35e840f936e4a4d8450acaae793af3be00a842
[ "MIT" ]
null
null
null
config.py
sixleaves/fisher
8f35e840f936e4a4d8450acaae793af3be00a842
[ "MIT" ]
null
null
null
config.py
sixleaves/fisher
8f35e840f936e4a4d8450acaae793af3be00a842
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ @Time : 2019/5/5 12:39 AM @Author : sweetcs @Site : @File : config.py @Software: PyCharm """ DEBUG=True HOST="0.0.0.0" PORT=9292
14.615385
28
0.578947
2ed1c87b80dd4e8779929d2ec1d831bf4040a93d
45
py
Python
garbage/buidlInformation.py
mjasnikovs/horus
c342aafc074e163a5a2eaa3564cba3131c6050a0
[ "MIT" ]
null
null
null
garbage/buidlInformation.py
mjasnikovs/horus
c342aafc074e163a5a2eaa3564cba3131c6050a0
[ "MIT" ]
null
null
null
garbage/buidlInformation.py
mjasnikovs/horus
c342aafc074e163a5a2eaa3564cba3131c6050a0
[ "MIT" ]
null
null
null
import cv2 print(cv2.getBuildInformation())
11.25
32
0.8
2ed3994d0c5b4857eeceb1cfe4c63346bcc38f0c
26,733
py
Python
contrib/gitian-build.py
castarco/unit-e
a396aaea29406744e04057aab3a771c7283086e9
[ "MIT" ]
36
2019-04-17T18:58:51.000Z
2022-01-18T12:16:27.000Z
contrib/gitian-build.py
Danpetersen448/unit-e
4ca86fc55a41e0daeb4409de2719a5523b6007c6
[ "MIT" ]
109
2019-04-17T17:19:45.000Z
2019-06-19T15:16:37.000Z
contrib/gitian-build.py
Danpetersen448/unit-e
4ca86fc55a41e0daeb4409de2719a5523b6007c6
[ "MIT" ]
16
2019-04-17T17:35:42.000Z
2020-01-09T17:51:05.000Z
#!/usr/bin/env python3 # Copyright (c) 2018-2019 The Bitcoin Core developers # Copyright (c) 2019 The Unit-e developers # Distributed under the MIT software license, see the accompanying # file COPYING or https://opensource.org/licenses/MIT. import argparse import os import subprocess import sys import platform impo...
50.061798
231
0.652714
2ed51113f6af6104ceef30f404b847887714f4ec
1,239
py
Python
src/commands/guild_list.py
HugeBrain16/ZenRPG
9ed83a2696a359dff573583582b724ca7bb920ae
[ "MIT" ]
null
null
null
src/commands/guild_list.py
HugeBrain16/ZenRPG
9ed83a2696a359dff573583582b724ca7bb920ae
[ "MIT" ]
null
null
null
src/commands/guild_list.py
HugeBrain16/ZenRPG
9ed83a2696a359dff573583582b724ca7bb920ae
[ "MIT" ]
null
null
null
import discord from lib import utils
29.5
123
0.577885
2ed64ffbfe98feb2efc11a0c58fa360ff20cbac1
4,184
py
Python
redshift-dataapi/iac/app.py
InfrastructureHQ/AWS-CDK-Accelerators
a8a3f61040f4419a6c3485c8f4b8df6204a55940
[ "Apache-2.0" ]
null
null
null
redshift-dataapi/iac/app.py
InfrastructureHQ/AWS-CDK-Accelerators
a8a3f61040f4419a6c3485c8f4b8df6204a55940
[ "Apache-2.0" ]
null
null
null
redshift-dataapi/iac/app.py
InfrastructureHQ/AWS-CDK-Accelerators
a8a3f61040f4419a6c3485c8f4b8df6204a55940
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2021, SteelHead Industry Cloud, Inc. <info@steelheadhq.com>. # All Rights Reserved. * # # # Import Core Modules # For consistency with other languages, `cdk` is the preferred import name for the CDK's core module. from aws_cdk import core as cdk from aws_cdk.core import App, Stack...
24.757396
101
0.658461
2ed6729bedf9bfe75446a749ed9fe190a3fd7ac0
2,443
py
Python
chronosoft8puppeteer/gpio.py
mika1337/chronosoft8-puppeteer
b277664005636e159057998e873271653481ec72
[ "MIT" ]
null
null
null
chronosoft8puppeteer/gpio.py
mika1337/chronosoft8-puppeteer
b277664005636e159057998e873271653481ec72
[ "MIT" ]
null
null
null
chronosoft8puppeteer/gpio.py
mika1337/chronosoft8-puppeteer
b277664005636e159057998e873271653481ec72
[ "MIT" ]
null
null
null
# ============================================================================= # System imports import logging import RPi.GPIO as RPiGPIO # ============================================================================= # Logger setup logger = logging.getLogger(__name__) # =============================================...
35.926471
106
0.494883
2ed8168234f69683f90dc66c5e63649460c38d3c
235
py
Python
eventos/admin.py
JohnVictor2017/StartTm
91a6f60ffd36f25f01d75798c5ef83e7dc44d97d
[ "MIT" ]
null
null
null
eventos/admin.py
JohnVictor2017/StartTm
91a6f60ffd36f25f01d75798c5ef83e7dc44d97d
[ "MIT" ]
null
null
null
eventos/admin.py
JohnVictor2017/StartTm
91a6f60ffd36f25f01d75798c5ef83e7dc44d97d
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Evento, EventoCategoria, InscricaoSolicitacao # Register your models here. admin.site.register(Evento) admin.site.register(EventoCategoria) admin.site.register(InscricaoSolicitacao)
33.571429
65
0.846809
2eda2e9ebcd9d63e306693c5ef3298caf6dec8ba
4,949
py
Python
indra/benchmarks/assembly_eval/batch4/rasmodel.py
pupster90/indra
e90b0bc1016fc2d210a9b46fb160b78a7d6a5ab9
[ "BSD-2-Clause" ]
2
2020-01-14T08:59:10.000Z
2020-12-18T16:21:38.000Z
indra/benchmarks/assembly_eval/batch4/rasmodel.py
pupster90/indra
e90b0bc1016fc2d210a9b46fb160b78a7d6a5ab9
[ "BSD-2-Clause" ]
null
null
null
indra/benchmarks/assembly_eval/batch4/rasmodel.py
pupster90/indra
e90b0bc1016fc2d210a9b46fb160b78a7d6a5ab9
[ "BSD-2-Clause" ]
null
null
null
from __future__ import absolute_import, print_function, unicode_literals from builtins import dict, str from indra.statements import * from indra.preassembler.grounding_mapper import GroundingMapper, \ default_grounding_map
37.210526
78
0.661144
2edb2059e18b0c410523e3639bf85166c7f4e887
263
py
Python
gdal/swig/python/scripts/gcps2wld.py
Sokigo-GLS/gdal
595f74bf60dff89fc5df53f9f4c3e40fc835e909
[ "MIT" ]
null
null
null
gdal/swig/python/scripts/gcps2wld.py
Sokigo-GLS/gdal
595f74bf60dff89fc5df53f9f4c3e40fc835e909
[ "MIT" ]
null
null
null
gdal/swig/python/scripts/gcps2wld.py
Sokigo-GLS/gdal
595f74bf60dff89fc5df53f9f4c3e40fc835e909
[ "MIT" ]
null
null
null
import sys # import osgeo.utils.gcps2wld as a convenience to use as a script from osgeo.utils.gcps2wld import * # noqa from osgeo.utils.gcps2wld import main from osgeo.gdal import deprecation_warn deprecation_warn('gcps2wld', 'utils') sys.exit(main(sys.argv))
26.3
65
0.787072
2edc0159fa249c0dec93294da274e3a53143a4d1
2,138
py
Python
api_tests/principal_claim_test.py
bhatti/saas_rbac
8debc56a9610f8fef1a323155eb938bfef4fa034
[ "MIT" ]
5
2019-12-20T19:52:50.000Z
2021-08-03T11:03:18.000Z
api_tests/principal_claim_test.py
bhatti/saas_rbac
8debc56a9610f8fef1a323155eb938bfef4fa034
[ "MIT" ]
null
null
null
api_tests/principal_claim_test.py
bhatti/saas_rbac
8debc56a9610f8fef1a323155eb938bfef4fa034
[ "MIT" ]
2
2020-03-30T17:00:36.000Z
2021-06-17T05:59:01.000Z
import unittest import base_test import json if __name__ == '__main__': unittest.main()
62.882353
210
0.630028
2edf86c413814d5ad4dd994b2501c494657290bc
510
py
Python
examples/standalone/simple_case_build.py
awillats/brian2
e1107ed0cc4a7d6c69c1e2634b675ba09edfd9fc
[ "BSD-2-Clause" ]
1
2021-06-10T15:28:51.000Z
2021-06-10T15:28:51.000Z
examples/standalone/simple_case_build.py
awillats/brian2
e1107ed0cc4a7d6c69c1e2634b675ba09edfd9fc
[ "BSD-2-Clause" ]
null
null
null
examples/standalone/simple_case_build.py
awillats/brian2
e1107ed0cc4a7d6c69c1e2634b675ba09edfd9fc
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python ''' The most simple case how to use standalone mode with several `run` calls. ''' from brian2 import * set_device('cpp_standalone', build_on_run=False) tau = 10*ms I = 1 # input current eqs = ''' dv/dt = (I-v)/tau : 1 ''' G = NeuronGroup(10, eqs, method='exact') G.v = 'rand()' mon = StateMonitor...
20.4
73
0.656863
2ee031ceef9afeeee26f7964687ce928e931a2a2
801
py
Python
01-python-fundamentals.py
reysmerwvr/python-playgrounds
1e039639d96044986ba5cc894a210180cc2b08e0
[ "MIT" ]
null
null
null
01-python-fundamentals.py
reysmerwvr/python-playgrounds
1e039639d96044986ba5cc894a210180cc2b08e0
[ "MIT" ]
null
null
null
01-python-fundamentals.py
reysmerwvr/python-playgrounds
1e039639d96044986ba5cc894a210180cc2b08e0
[ "MIT" ]
null
null
null
# What should be printing the next snippet of code? intNum = 10 negativeNum = -5 testString = "Hello " testList = [1, 2, 3] print(intNum * 5) print(intNum - negativeNum) print(testString + 'World') print(testString * 2) print(testString[-1]) print(testString[1:]) print(testList + testList) # The sum of each three fir...
21.078947
102
0.60799
2ee1f5707dc3b138efdc660027411aa4640b57d7
801
py
Python
cdchanger/urls.py
mnosinov/cdchanger
7dc4db3849e135c813d4a46287bdb7cb8b1547d6
[ "MIT" ]
null
null
null
cdchanger/urls.py
mnosinov/cdchanger
7dc4db3849e135c813d4a46287bdb7cb8b1547d6
[ "MIT" ]
null
null
null
cdchanger/urls.py
mnosinov/cdchanger
7dc4db3849e135c813d4a46287bdb7cb8b1547d6
[ "MIT" ]
null
null
null
from django.urls import path from django.views.generic import TemplateView from .views import CdchangerListView, CdchangerWizard urlpatterns = [ path('', TemplateView.as_view(template_name='cdchanger/index.html'), name='index'), path('cdchangers', CdchangerListView.as_view(), name='cdchangers'), path('cdc...
50.0625
110
0.739076
2ee23bd27e64239ca72b8aa33e58b21e0f9b9dca
9,255
py
Python
src/genomic_benchmarks/loc2seq/with_biopython.py
Shirapti-nath/genomic_benchmarks
293cb55c645aac1cca8fb349a36fa530cf59276a
[ "Apache-2.0" ]
null
null
null
src/genomic_benchmarks/loc2seq/with_biopython.py
Shirapti-nath/genomic_benchmarks
293cb55c645aac1cca8fb349a36fa530cf59276a
[ "Apache-2.0" ]
null
null
null
src/genomic_benchmarks/loc2seq/with_biopython.py
Shirapti-nath/genomic_benchmarks
293cb55c645aac1cca8fb349a36fa530cf59276a
[ "Apache-2.0" ]
null
null
null
import pandas as pd import yaml import gzip import re import urllib import shutil # for removing and creating folders from pathlib import Path from tqdm.autonotebook import tqdm import warnings from Bio import SeqIO from Bio.Seq import Seq from .cloud_caching import CLOUD_CACHE, download_from_cloud_cache CACHE_PATH...
41.877828
156
0.663857
2ee562e1b0d873d6a89174fee384867b26eb8eb9
851
py
Python
main.py
Forcide/ApacheParser
0f82e8d7d696f1c2e17be4975e6836e435a9ab1a
[ "MIT" ]
null
null
null
main.py
Forcide/ApacheParser
0f82e8d7d696f1c2e17be4975e6836e435a9ab1a
[ "MIT" ]
null
null
null
main.py
Forcide/ApacheParser
0f82e8d7d696f1c2e17be4975e6836e435a9ab1a
[ "MIT" ]
null
null
null
from modules import menu, hosts, logMail, status, webpagina, zoekInLog def main(): """" Dit is de start file/functie van het programma, hierin worden alle modules geladen en zo nodig uitgevoerd. Het menu wordt gestart en de keuze wordt verwezen naar een van de modules. Geimporteerde modules: - menu...
19.340909
110
0.589894
2ee6a54ae75caf325e2b975f0980d27b34405153
15,329
py
Python
Chapter09/cifar_10_revisted_transfer_learning.py
PacktPublishing/Deep-Learning-By-Example
2755f92fad19c54ee15ad858ca20e8e64f58cc00
[ "MIT" ]
27
2018-02-28T04:56:07.000Z
2021-11-08T13:12:44.000Z
Chapter09/cifar_10_revisted_transfer_learning.py
PacktPublishing/Deep-Learning-By-Example
2755f92fad19c54ee15ad858ca20e8e64f58cc00
[ "MIT" ]
1
2018-04-10T21:26:45.000Z
2018-04-10T21:26:45.000Z
Chapter09/cifar_10_revisted_transfer_learning.py
PacktPublishing/Deep-Learning-By-Example
2755f92fad19c54ee15ad858ca20e8e64f58cc00
[ "MIT" ]
16
2018-03-07T01:14:14.000Z
2022-01-12T02:11:27.000Z
import matplotlib.pyplot as plt import tensorflow as tf import numpy as np import time from datetime import timedelta import os # Importing a helper module for the functions of the Inception model. import inception import cifar10 from cifar10 import num_classes from inception import transfer_values_cache #Importing...
34.447191
131
0.694109
2ee7379d9c15a586379addc309fdbb786e13adc1
2,276
py
Python
posts/api/views.py
kasper190/SPAforum
4d26c9d7b62ce84540100ca7f6b1b2aaa4fb57bd
[ "MIT" ]
null
null
null
posts/api/views.py
kasper190/SPAforum
4d26c9d7b62ce84540100ca7f6b1b2aaa4fb57bd
[ "MIT" ]
null
null
null
posts/api/views.py
kasper190/SPAforum
4d26c9d7b62ce84540100ca7f6b1b2aaa4fb57bd
[ "MIT" ]
null
null
null
from rest_framework.exceptions import NotFound, PermissionDenied from rest_framework.generics import ( CreateAPIView, DestroyAPIView, RetrieveUpdateAPIView, ) from .permissions import ( IsAdminOrModeratorOrReadOnly, IsOwnerOrAdminOrModeratorOrReadOnly, IsOwnerOrReadOnly, ) from .serializers impo...
30.346667
99
0.737258
2ee7856345c9fb44d682f93c6f98e331db8127ea
270
py
Python
app/questionnaire_state/state_section.py
qateam123/eq
704757952323647d659c49a71975c56406ff4047
[ "MIT" ]
null
null
null
app/questionnaire_state/state_section.py
qateam123/eq
704757952323647d659c49a71975c56406ff4047
[ "MIT" ]
8
2020-03-24T15:24:18.000Z
2022-03-02T04:32:56.000Z
app/questionnaire_state/state_section.py
qateam123/eq
704757952323647d659c49a71975c56406ff4047
[ "MIT" ]
null
null
null
from app.questionnaire_state.state_item import StateItem
30
66
0.72963
2ee8096164e1adc4d2f9118ff7c8dcfcb8620047
8,046
py
Python
examples/visualize.py
Jallet/keras-jl-ac-mean
2bbc1596192fb8c3aefc4a8126482a5283574a59
[ "MIT" ]
null
null
null
examples/visualize.py
Jallet/keras-jl-ac-mean
2bbc1596192fb8c3aefc4a8126482a5283574a59
[ "MIT" ]
null
null
null
examples/visualize.py
Jallet/keras-jl-ac-mean
2bbc1596192fb8c3aefc4a8126482a5283574a59
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function import sys sys.path.insert(0, "/home/liangjiang/code/keras-jl-mean/") from keras.datasets import cifar10 from keras.preprocessing.image import ImageDataGenerator from keras.models import model_from_json from keras.models import Sequential from keras.layers imp...
38.682692
97
0.616828
2ee93559b4c44d3a539288935e7f1d8e903dfc6a
14,221
py
Python
electrical_simulation/miasole_module_two.py
architecture-building-systems/bipv-tool
3ae73a541754e5215dfd39ef837d72f4b80ef967
[ "MIT" ]
4
2019-02-18T14:10:49.000Z
2021-04-23T09:03:13.000Z
electrical_simulation/miasole_module_two.py
architecture-building-systems/bipv-tool
3ae73a541754e5215dfd39ef837d72f4b80ef967
[ "MIT" ]
1
2018-08-16T13:27:15.000Z
2018-08-16T13:27:16.000Z
electrical_simulation/miasole_module_two.py
architecture-building-systems/bipv-tool
3ae73a541754e5215dfd39ef837d72f4b80ef967
[ "MIT" ]
null
null
null
import numpy as np import pvlib.pvsystem as pvsyst import interconnection as connect import matplotlib.pyplot as plt def calculate_reverse_scaling_factor(voltages, breakdown_voltage, miller_exponent): """ :param voltages: numpy array of voltages :param breakdown_voltage: the minimum voltage before the ave...
52.283088
134
0.664932
2ee996c7e56c15fda4c16fc6ca5f0fcf36384ef4
284
py
Python
default_settings.py
RobMilinski/Xero-Starter-Branched-Test
c82382e674b34c2336ee164f5a079d6becd1ed46
[ "MIT" ]
null
null
null
default_settings.py
RobMilinski/Xero-Starter-Branched-Test
c82382e674b34c2336ee164f5a079d6becd1ed46
[ "MIT" ]
null
null
null
default_settings.py
RobMilinski/Xero-Starter-Branched-Test
c82382e674b34c2336ee164f5a079d6becd1ed46
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os from os.path import dirname, join SECRET_KEY = os.urandom(16) # configure file based session SESSION_TYPE = "filesystem" SESSION_FILE_DIR = join(dirname(__file__), "cache") # configure flask app for local development ENV = "development"
23.666667
52
0.714789
2eea53e1e9eb945c94d4c33420b934da2fc613c6
5,610
py
Python
v0.2/crawl_tool.py
sivanWu0222/GetLinksFromSoBooks
9f429b5f8b359e4faf25381a7b59f5effd21b5ca
[ "Apache-2.0" ]
8
2019-02-09T05:00:50.000Z
2020-11-02T11:30:03.000Z
v0.2/crawl_tool.py
sivanWu0222/GetLinksFromSoBooks
9f429b5f8b359e4faf25381a7b59f5effd21b5ca
[ "Apache-2.0" ]
null
null
null
v0.2/crawl_tool.py
sivanWu0222/GetLinksFromSoBooks
9f429b5f8b359e4faf25381a7b59f5effd21b5ca
[ "Apache-2.0" ]
null
null
null
import requests from bs4 import BeautifulSoup import re from selenium import webdriver import model URL = "https://sobooks.cc" VERIFY_KEY = '2019777' def convert_to_beautifulsoup(data): """ dataBeautifulSoup :param data: html :return: dataBeautifulSoup """ bs = BeautifulSoup(data, "html.parse...
26.842105
106
0.636364
2eea8d34fe53d8a8743f98b68b96db418c9710d2
2,545
py
Python
test_basic.py
mpeters/movie_rating
307188ee2908e42bcdc4e98114a7fe9ae264ebeb
[ "MIT" ]
null
null
null
test_basic.py
mpeters/movie_rating
307188ee2908e42bcdc4e98114a7fe9ae264ebeb
[ "MIT" ]
null
null
null
test_basic.py
mpeters/movie_rating
307188ee2908e42bcdc4e98114a7fe9ae264ebeb
[ "MIT" ]
null
null
null
import unittest import subprocess import re from os import environ if __name__ == '__main__': unittest.main()
48.942308
162
0.674263
2eebbacb5df6c83ca0a014890b1d4f2d50ccc8e9
228
py
Python
tools/intogen/runtime/pyenv/lib/python2.7/site-packages/numpy/version.py
globusgenomics/galaxy
7caf74d9700057587b3e3434c64e82c5b16540f1
[ "CC-BY-3.0" ]
1
2021-02-05T13:19:58.000Z
2021-02-05T13:19:58.000Z
tools/intogen/runtime/pyenv/lib/python2.7/site-packages/numpy/version.py
globusgenomics/galaxy
7caf74d9700057587b3e3434c64e82c5b16540f1
[ "CC-BY-3.0" ]
null
null
null
tools/intogen/runtime/pyenv/lib/python2.7/site-packages/numpy/version.py
globusgenomics/galaxy
7caf74d9700057587b3e3434c64e82c5b16540f1
[ "CC-BY-3.0" ]
null
null
null
# THIS FILE IS GENERATED FROM NUMPY SETUP.PY short_version = '1.9.0' version = '1.9.0' full_version = '1.9.0' git_revision = '07601a64cdfeb1c0247bde1294ad6380413cab66' release = True if not release: version = full_version
20.727273
57
0.745614
2eebfa288fa7ac7e2d9bbee1fae33a9fe39c1ae3
620
py
Python
txter/migrations/0001_initial.py
KanataIZUMIKAWA/TXTer
6cbf67a229db30452e412883cd55584a204199a7
[ "MIT" ]
null
null
null
txter/migrations/0001_initial.py
KanataIZUMIKAWA/TXTer
6cbf67a229db30452e412883cd55584a204199a7
[ "MIT" ]
null
null
null
txter/migrations/0001_initial.py
KanataIZUMIKAWA/TXTer
6cbf67a229db30452e412883cd55584a204199a7
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2021-01-05 03:33 from django.db import migrations, models
25.833333
114
0.564516
2eec6b15a40ea433bc4066f828b5719399dfaf23
1,450
py
Python
bin/util.py
data-lessons/dh-openrefine
925546279c3dbbb35a76d5a7652a999c634ed7a5
[ "CC-BY-4.0" ]
7
2016-08-05T15:38:38.000Z
2021-08-15T09:28:40.000Z
bin/util.py
ucsdlib/library-bash
de433b43aef2983ef1e51a8d61438ab2d5d08e3d
[ "CC-BY-4.0" ]
4
2016-07-28T08:00:12.000Z
2016-09-16T10:17:36.000Z
bin/util.py
ucsdlib/library-bash
de433b43aef2983ef1e51a8d61438ab2d5d08e3d
[ "CC-BY-4.0" ]
4
2016-07-28T06:51:03.000Z
2017-09-24T17:17:58.000Z
import sys
27.884615
90
0.561379
2eee14c3677a7997e3c8aceecca0e08c51854b86
10,722
py
Python
src/graph_io.py
Abdumaleek/infinity-mirror
b493c5602d9e4bcf374b748e9b80e7c85be54a88
[ "MIT" ]
5
2020-03-13T02:54:03.000Z
2022-03-18T02:33:12.000Z
src/graph_io.py
Abdumaleek/infinity-mirror
b493c5602d9e4bcf374b748e9b80e7c85be54a88
[ "MIT" ]
2
2021-11-10T19:47:00.000Z
2022-02-10T01:24:59.000Z
src/graph_io.py
Abdumaleek/infinity-mirror
b493c5602d9e4bcf374b748e9b80e7c85be54a88
[ "MIT" ]
1
2021-05-24T21:54:44.000Z
2021-05-24T21:54:44.000Z
""" Graph i/o helpers """ import math from pathlib import Path import networkx as nx import numpy as np from src.utils import ColorPrint as CP, check_file_exists, print_float # TODO: add LFR benchmark graphs try: import pyintergraph as pig except ImportError as e: print(e) try: import igraph as ig e...
36.845361
150
0.571908
2eee76235b6e429c851cf2af43ca0728c03365df
1,241
py
Python
arquivo.py
raphaelss/programagestalt
dabe073bda7d34a16368cdc881e9d1a7150263cc
[ "MIT" ]
null
null
null
arquivo.py
raphaelss/programagestalt
dabe073bda7d34a16368cdc881e9d1a7150263cc
[ "MIT" ]
null
null
null
arquivo.py
raphaelss/programagestalt
dabe073bda7d34a16368cdc881e9d1a7150263cc
[ "MIT" ]
null
null
null
import csv import re def abrir(path): if path.endswith('csv'): return Csv(path) else: return Arquivo(path)
26.404255
80
0.507655
2ef007f96300135913374e66f242b4d7ad638d34
937
py
Python
env/Lib/site-packages/OpenGL/GL/ARB/shader_clock.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
210
2016-04-09T14:26:00.000Z
2022-03-25T18:36:19.000Z
env/Lib/site-packages/OpenGL/GL/ARB/shader_clock.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
72
2016-09-04T09:30:19.000Z
2022-03-27T17:06:53.000Z
env/Lib/site-packages/OpenGL/GL/ARB/shader_clock.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
64
2016-04-09T14:26:49.000Z
2022-03-21T11:19:47.000Z
'''OpenGL extension ARB.shader_clock This module customises the behaviour of the OpenGL.raw.GL.ARB.shader_clock to provide a more Python-friendly API Overview (from the spec) This extension exposes a 64-bit monotonically incrementing shader counter which may be used to derive local timing information within a ...
32.310345
71
0.803629
2ef1c30c2a21d30607beca0e47199956e827e7ca
234
py
Python
tuiuiu/tuiuiuadmin/tests/api/utils.py
caputomarcos/tuiuiu.io
d8fb57cf95487e7fe1454b2130ef18acc916da46
[ "BSD-3-Clause" ]
3
2019-08-08T09:09:35.000Z
2020-12-15T18:04:17.000Z
tuiuiu/tuiuiuadmin/tests/api/utils.py
caputomarcos/tuiuiu.io
d8fb57cf95487e7fe1454b2130ef18acc916da46
[ "BSD-3-Clause" ]
null
null
null
tuiuiu/tuiuiuadmin/tests/api/utils.py
caputomarcos/tuiuiu.io
d8fb57cf95487e7fe1454b2130ef18acc916da46
[ "BSD-3-Clause" ]
1
2017-09-09T20:10:40.000Z
2017-09-09T20:10:40.000Z
from __future__ import absolute_import, unicode_literals from django.test import TestCase from tuiuiu.tests.utils import TuiuiuTestUtils
21.272727
56
0.790598
2ef1fb64ccfc3ef2323962139efae480655479b6
1,933
py
Python
youtube_channel_dl.py
allicebiyon/youtube-channel-dl
53d06f64fd9a256dd920bc1db093ccd84949c580
[ "MIT" ]
null
null
null
youtube_channel_dl.py
allicebiyon/youtube-channel-dl
53d06f64fd9a256dd920bc1db093ccd84949c580
[ "MIT" ]
null
null
null
youtube_channel_dl.py
allicebiyon/youtube-channel-dl
53d06f64fd9a256dd920bc1db093ccd84949c580
[ "MIT" ]
null
null
null
import argparse import requests import youtube_dl from bs4 import BeautifulSoup from jsonfinder import jsonfinder from nested_lookup import nested_lookup parser = argparse.ArgumentParser(description='Download YouTube videos from a channel using youtube-dl.') parser.add_argument('channelURL', metavar='url', type=str, h...
28.426471
118
0.68598
2ef21a49b80856b019df0f92474580a5a810fe47
1,415
py
Python
Camera_V2.py
Damian-Gsource/ENGI301
e52b23e76fce576235c80eaca908e665076e4ab6
[ "MIT" ]
null
null
null
Camera_V2.py
Damian-Gsource/ENGI301
e52b23e76fce576235c80eaca908e665076e4ab6
[ "MIT" ]
null
null
null
Camera_V2.py
Damian-Gsource/ENGI301
e52b23e76fce576235c80eaca908e665076e4ab6
[ "MIT" ]
null
null
null
import cv2 import numpy as np # Create a VideoCapture object cap = cv2.VideoCapture(0) # Check if camera opened successfully if (cap.isOpened() == False): print("Unable to read camera feed") # Default resolutions of the frame are obtained.The default resolutions are system dependent. # We convert the resolutions ...
25.267857
98
0.691873
2ef2497a0bb99f58197f6f6252d8254c97895330
2,502
py
Python
train/tf/nlp/trainer/tf.py
charliemorning/mlws
8e9bad59ca9f5e774cc1ae7fe454ff3b8a8e1784
[ "MIT" ]
null
null
null
train/tf/nlp/trainer/tf.py
charliemorning/mlws
8e9bad59ca9f5e774cc1ae7fe454ff3b8a8e1784
[ "MIT" ]
null
null
null
train/tf/nlp/trainer/tf.py
charliemorning/mlws
8e9bad59ca9f5e774cc1ae7fe454ff3b8a8e1784
[ "MIT" ]
null
null
null
from models.torch.trainer import SupervisedNNModelTrainConfig, Trainer
37.909091
113
0.643086
2ef4a98fba2216863d25c4500c449a51c8172226
1,168
py
Python
Sliding Window/String Anagrams.py
yalyakoob/Algorithmic-Coding-Challenges
ec1fe427e2eb7f00f56850c5911acc3622a03c55
[ "MIT" ]
null
null
null
Sliding Window/String Anagrams.py
yalyakoob/Algorithmic-Coding-Challenges
ec1fe427e2eb7f00f56850c5911acc3622a03c55
[ "MIT" ]
null
null
null
Sliding Window/String Anagrams.py
yalyakoob/Algorithmic-Coding-Challenges
ec1fe427e2eb7f00f56850c5911acc3622a03c55
[ "MIT" ]
null
null
null
"""Given a string and a pattern, find all anagrams of the pattern in the given string. Write a function to return a list of starting indices of the anagrams of the pattern in the given string.""" """Example: String="ppqp", Pattern="pq", Output = [1, 2] """
35.393939
88
0.601884
2ef62c36e89113dd64975e4991597617554ffa18
826
py
Python
ninja/openapi/urls.py
lsaavedr/django-ninja
caa182007368bb0fed85b184fb0583370e9589b4
[ "MIT" ]
null
null
null
ninja/openapi/urls.py
lsaavedr/django-ninja
caa182007368bb0fed85b184fb0583370e9589b4
[ "MIT" ]
null
null
null
ninja/openapi/urls.py
lsaavedr/django-ninja
caa182007368bb0fed85b184fb0583370e9589b4
[ "MIT" ]
null
null
null
from functools import partial from django.urls import path from .views import openapi_json, swagger, home
25.8125
67
0.512107
2efa90e5edb8969c91a038deb579183818e94e09
113
py
Python
apps.py
MrOerni/django_event_signup
4fa13d64c5cb20599bc1398a8b474ffc6cbdc012
[ "MIT" ]
null
null
null
apps.py
MrOerni/django_event_signup
4fa13d64c5cb20599bc1398a8b474ffc6cbdc012
[ "MIT" ]
null
null
null
apps.py
MrOerni/django_event_signup
4fa13d64c5cb20599bc1398a8b474ffc6cbdc012
[ "MIT" ]
null
null
null
from django.apps import AppConfig
18.833333
43
0.80531
2efb047b94d6832acae0ceb75434aca43e199244
515
py
Python
good_spot/places/migrations/0028_fieldtype_is_shown_in_about_place.py
jasmine92122/NightClubBackend
7f59129b78baaba0e0c25de2b493033b858f1b00
[ "MIT" ]
null
null
null
good_spot/places/migrations/0028_fieldtype_is_shown_in_about_place.py
jasmine92122/NightClubBackend
7f59129b78baaba0e0c25de2b493033b858f1b00
[ "MIT" ]
5
2020-02-12T03:13:11.000Z
2022-01-13T01:41:14.000Z
good_spot/places/migrations/0028_fieldtype_is_shown_in_about_place.py
jasmine92122/NightClubBackend
7f59129b78baaba0e0c25de2b493033b858f1b00
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-12-29 18:33 from __future__ import unicode_literals from django.db import migrations, models
24.52381
97
0.646602
2efcacbc0077a1fe4130947c761f4105ee9cbf6b
1,798
py
Python
mqtt.py
hansehe/graphql-gateway
f2c4b21f1f509ea3c516d8401d69eb0db618045d
[ "MIT" ]
3
2021-03-05T02:27:44.000Z
2021-11-07T02:11:28.000Z
mqtt.py
hansehe/graphql-gateway
f2c4b21f1f509ea3c516d8401d69eb0db618045d
[ "MIT" ]
1
2021-01-22T12:54:18.000Z
2021-01-22T14:02:29.000Z
mqtt.py
hansehe/graphql-gateway
f2c4b21f1f509ea3c516d8401d69eb0db618045d
[ "MIT" ]
null
null
null
import paho.mqtt.client as mqtt import uuid import time # Test code to trig the gateway to update with mqtt. # Requirements: # - pip install paho-mqtt stopMqttClient = False # The callback for when the client receives a CONNACK response from the server. # The callback for when a PUBLISH message is received from ...
29.966667
79
0.735261
2efe4b44afb23c91ba071cfabe00b534c6793018
11,863
py
Python
shrun/runner.py
Nextdoor/shrun
bfc30d535e1e8de1b6ea77b74ca12743c86c7344
[ "BSD-2-Clause" ]
1
2016-10-22T23:57:17.000Z
2016-10-22T23:57:17.000Z
shrun/runner.py
Nextdoor/shrun
bfc30d535e1e8de1b6ea77b74ca12743c86c7344
[ "BSD-2-Clause" ]
2
2016-10-05T22:46:36.000Z
2016-10-23T14:15:37.000Z
shrun/runner.py
Nextdoor/shrun
bfc30d535e1e8de1b6ea77b74ca12743c86c7344
[ "BSD-2-Clause" ]
1
2017-07-08T17:57:19.000Z
2017-07-08T17:57:19.000Z
from builtins import str import collections import contextlib import functools import itertools import io import os import re import six import subprocess import threading import tempfile import time import traceback import termcolor from . import command from . import parser COLORS = ['yellow', 'blue', 'red', 'gre...
34.08908
134
0.571441
2efec4d7645754973922248e12f2e9e6fd0b48f4
746
py
Python
demo/examples/radio/application.py
haizzus/FPGA-radio
7b7811091bafb2865bccb8aef9f4a53f7b43089e
[ "MIT" ]
53
2016-10-15T17:13:19.000Z
2022-03-27T02:24:50.000Z
demo/examples/radio/application.py
dawsonjon/FPGA-radio
7b7811091bafb2865bccb8aef9f4a53f7b43089e
[ "MIT" ]
null
null
null
demo/examples/radio/application.py
dawsonjon/FPGA-radio
7b7811091bafb2865bccb8aef9f4a53f7b43089e
[ "MIT" ]
10
2017-03-17T11:16:01.000Z
2022-03-30T05:00:05.000Z
from demo.components.server import server from chips.api.api import *
32.434783
73
0.576408
2eff7f3dafd4df68788f8af91c9f219b3565485e
227
py
Python
Xiecheng/__init__.py
scottyyf/MultiWorker
4abd361c3053140be6453d6e6e30f5c31a189e79
[ "Apache-2.0" ]
2
2021-12-14T10:46:14.000Z
2021-12-14T10:47:00.000Z
Xiecheng/__init__.py
scottyyf/MultiWorker
4abd361c3053140be6453d6e6e30f5c31a189e79
[ "Apache-2.0" ]
9
2021-12-06T06:16:15.000Z
2021-12-20T06:39:50.000Z
Xiecheng/__init__.py
scottyyf/MultiWorker
4abd361c3053140be6453d6e6e30f5c31a189e79
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ File: __init__.py.py Author: Scott Yang(Scott) Email: yangyingfa@skybility.com Copyright: Copyright (c) 2021, Skybility Software Co.,Ltd. All rights reserved. Description: """
20.636364
79
0.709251
2effa2910ab4cf2ceba74e75f327552e40cb5a00
10,926
py
Python
learning/pytorch/models/rnn_models.py
thomasehuang/Ithemal-Extension
821a875962a261de003c6da6e2d3e9b49918d68a
[ "MIT" ]
105
2019-08-05T21:27:33.000Z
2022-02-16T03:35:10.000Z
learning/pytorch/models/rnn_models.py
thomasehuang/Ithemal-Extension
821a875962a261de003c6da6e2d3e9b49918d68a
[ "MIT" ]
16
2019-08-06T21:12:11.000Z
2021-03-22T14:09:21.000Z
learning/pytorch/models/rnn_models.py
thomasehuang/Ithemal-Extension
821a875962a261de003c6da6e2d3e9b49918d68a
[ "MIT" ]
25
2019-08-11T22:41:57.000Z
2021-11-10T08:02:50.000Z
#this file contains models that I have tried out for different tasks, which are reusable #plus it has the training framework for those models given data - each model has its own data requirements import numpy as np import common_libs.utilities as ut import random import torch.nn as nn import torch.autograd as autograd...
34.358491
106
0.645158
2c00b39003b7029e872ee5035a075a953fa079f3
9,669
py
Python
ddsc/config.py
Duke-GCB/DukeDSClient
7f119a5ee2e674e8deaff1f080caed1953c5cc61
[ "MIT" ]
4
2020-06-18T12:30:13.000Z
2020-10-12T21:25:54.000Z
ddsc/config.py
Duke-GCB/DukeDSClient
7f119a5ee2e674e8deaff1f080caed1953c5cc61
[ "MIT" ]
239
2016-02-18T14:44:08.000Z
2022-03-11T14:38:56.000Z
ddsc/config.py
Duke-GCB/DukeDSClient
7f119a5ee2e674e8deaff1f080caed1953c5cc61
[ "MIT" ]
10
2016-02-22T15:01:28.000Z
2022-02-21T22:46:26.000Z
""" Global configuration for the utility based on config files and environment variables.""" import os import re import math import yaml import multiprocessing from ddsc.core.util import verify_file_private from ddsc.exceptions import DDSUserException try: from urllib.parse import urlparse except ImportError: ...
39.145749
114
0.664288
2c01d7b503296aad5ad328001d1b93bd84cc4e39
12,781
py
Python
keras_wraper_ensemble.py
asultan123/ADP
12a0875d84a6d1b660a4657e0276e7a0511487fd
[ "Apache-2.0" ]
null
null
null
keras_wraper_ensemble.py
asultan123/ADP
12a0875d84a6d1b660a4657e0276e7a0511487fd
[ "Apache-2.0" ]
null
null
null
keras_wraper_ensemble.py
asultan123/ADP
12a0875d84a6d1b660a4657e0276e7a0511487fd
[ "Apache-2.0" ]
null
null
null
""" Model construction utilities based on keras """ import warnings from distutils.version import LooseVersion import tensorflow.keras from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Activation, Flatten # from cleverhans.model import Model, NoSuchLayerError import tensorflow a...
35.30663
86
0.617323