hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
b35206db6eaaa312fca86f170531ab36f181b6a0
6,745
py
Python
server.py
eugenetan01/TranslatorBot
e814d11b5a492a26ecb84737c31dc2c92c9711d8
[ "MIT" ]
null
null
null
server.py
eugenetan01/TranslatorBot
e814d11b5a492a26ecb84737c31dc2c92c9711d8
[ "MIT" ]
null
null
null
server.py
eugenetan01/TranslatorBot
e814d11b5a492a26ecb84737c31dc2c92c9711d8
[ "MIT" ]
null
null
null
import json import logging from telegram import InlineKeyboardButton, InlineKeyboardMarkup from telegram.ext import Updater, CommandHandler, MessageHandler, Filters, CallbackQueryHandler, ConversationHandler import os from googletrans import Translator import Controller as controller import DBController as dbController...
40.878788
166
0.722016
0
0
0
0
0
0
0
0
2,412
0.357598
b3530c3a8484a4747a14654a1eca8555cff02513
60
py
Python
login.py
saaassin13/test_python10
102acab0417b238cba5f452604bda09ea2a98591
[ "MIT" ]
null
null
null
login.py
saaassin13/test_python10
102acab0417b238cba5f452604bda09ea2a98591
[ "MIT" ]
null
null
null
login.py
saaassin13/test_python10
102acab0417b238cba5f452604bda09ea2a98591
[ "MIT" ]
null
null
null
num = 1 num1 = 1111 num2 = 2222 num3 = 3333 num4 = 4444
6
11
0.6
0
0
0
0
0
0
0
0
0
0
b354e2175d42b27df0d6c702ef00771b60b91fe6
60
py
Python
modules/shared/infrastructure/requests/django/__init__.py
eduardolujan/hexagonal_architecture_django
8055927cb460bc40f3a2651c01a9d1da696177e8
[ "BSD-3-Clause" ]
6
2020-08-09T23:41:08.000Z
2021-03-16T22:05:40.000Z
modules/shared/infrastructure/requests/django/__init__.py
eduardolujan/hexagonal_architecture_django
8055927cb460bc40f3a2651c01a9d1da696177e8
[ "BSD-3-Clause" ]
1
2020-10-02T02:59:38.000Z
2020-10-02T02:59:38.000Z
modules/shared/infrastructure/requests/django/__init__.py
eduardolujan/hexagonal_architecture_django
8055927cb460bc40f3a2651c01a9d1da696177e8
[ "BSD-3-Clause" ]
2
2021-03-16T22:05:43.000Z
2021-04-30T06:35:25.000Z
from .django_request import Request __all__ = ('Request',)
15
35
0.75
0
0
0
0
0
0
0
0
9
0.15
b35557efbdcd9de6dfaad18c72d80170e6a3f1c7
871
py
Python
tests/test_cluster_assignment.py
mo6zes/Reproducing-Deep-Fair-Clustering
91f915436821eb05cdd021d3e9eb050a248fe993
[ "Unlicense" ]
4
2021-01-30T12:36:18.000Z
2022-03-23T10:10:45.000Z
tests/test_cluster_assignment.py
mo6zes/Reproducing-Deep-Fair-Clustering
91f915436821eb05cdd021d3e9eb050a248fe993
[ "Unlicense" ]
1
2021-11-05T09:16:36.000Z
2021-11-05T15:27:25.000Z
tests/test_cluster_assignment.py
mo6zes/Reproducing-Deep-Fair-Clustering
91f915436821eb05cdd021d3e9eb050a248fe993
[ "Unlicense" ]
1
2021-03-21T19:44:45.000Z
2021-03-21T19:44:45.000Z
""" Source: https://github.com/vlukiyanov/pt-dec/blob/master/tests/test_cluster.py """ import torch from unittest import TestCase from module import ClusterAssignment class TestClusterAssignment(TestCase): @classmethod def setUpClass(cls) -> None: cls.cluster = ClusterAssignment( clu...
30.034483
82
0.608496
694
0.796785
0
0
252
0.289323
0
0
91
0.104478
b357152a7c97a6a98a37a74b2b7b43161d57c224
2,789
py
Python
products/models.py
anonshubh/eCommerce-rostores-
7503e855d650556e216c42fc1c5b95a42bb9c501
[ "Apache-2.0" ]
null
null
null
products/models.py
anonshubh/eCommerce-rostores-
7503e855d650556e216c42fc1c5b95a42bb9c501
[ "Apache-2.0" ]
null
null
null
products/models.py
anonshubh/eCommerce-rostores-
7503e855d650556e216c42fc1c5b95a42bb9c501
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.urls import reverse import random,os from ecommerce_src.utils import unique_slug_generator,get_filename from django.db.models.signals import pre_save from django.utils.encoding import smart_str from django.core.files.storage import FileSystemStorage from django.conf import setti...
32.811765
122
0.726067
1,655
0.593403
0
0
211
0.075654
0
0
186
0.066691
b35836893267f52783e00ae095462a2ce8e96ecc
5,473
py
Python
ai/project/scraper.py
BoraKurucu/Artificial-Intelligence
5681ad43a79e349b36eab3f8c1fd994fffcf0cfe
[ "MIT" ]
null
null
null
ai/project/scraper.py
BoraKurucu/Artificial-Intelligence
5681ad43a79e349b36eab3f8c1fd994fffcf0cfe
[ "MIT" ]
null
null
null
ai/project/scraper.py
BoraKurucu/Artificial-Intelligence
5681ad43a79e349b36eab3f8c1fd994fffcf0cfe
[ "MIT" ]
1
2021-02-23T19:34:12.000Z
2021-02-23T19:34:12.000Z
import time from selenium import webdriver from selenium.webdriver.chrome.options import Options class SeleniumCrosswordHelper: """ A class to determine the web-operations of Selenium. Methods --------- get_clues() Returns the data of the clues using the tags that are embedded...
35.083333
101
0.610451
5,359
0.97917
0
0
0
0
0
0
2,310
0.422072
b359b7be06a297e1d25880bf92aada1e13ba8821
3,930
py
Python
server.py
LutherMckeiver/http-server
4ce81dfad82c5b2792bf21f088985ddb784d43c9
[ "MIT" ]
null
null
null
server.py
LutherMckeiver/http-server
4ce81dfad82c5b2792bf21f088985ddb784d43c9
[ "MIT" ]
null
null
null
server.py
LutherMckeiver/http-server
4ce81dfad82c5b2792bf21f088985ddb784d43c9
[ "MIT" ]
null
null
null
from http.server import BaseHTTPRequestHandler, HTTPServer from urllib.parse import urlparse, parse_qs from cowpy import cow import os import json httpcow = '''<!DOCTYPE html> <html> <head> <title> cowsay </title> </head> <body> <header> <nav> <ul> <li><a href="/cow">cowsay</a></li...
28.273381
97
0.526718
2,875
0.731552
0
0
0
0
0
0
1,189
0.302545
b35e517ebb50cbef91f32f99c017eebf79d3a397
2,873
py
Python
byceps/services/site/dbmodels/site.py
GSH-LAN/byceps
ab8918634e90aaa8574bd1bb85627759cef122fe
[ "BSD-3-Clause" ]
33
2018-01-16T02:04:51.000Z
2022-03-22T22:57:29.000Z
byceps/services/site/dbmodels/site.py
GSH-LAN/byceps
ab8918634e90aaa8574bd1bb85627759cef122fe
[ "BSD-3-Clause" ]
7
2019-06-16T22:02:03.000Z
2021-10-02T13:45:31.000Z
byceps/services/site/dbmodels/site.py
GSH-LAN/byceps
ab8918634e90aaa8574bd1bb85627759cef122fe
[ "BSD-3-Clause" ]
14
2019-06-01T21:39:24.000Z
2022-03-14T17:56:43.000Z
""" byceps.services.site.dbmodels.site ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2021 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) """ from typing import Optional from ....database import db from ....typing import BrandID, PartyID from ....util.instances import ReprBuilder f...
34.202381
110
0.678037
2,055
0.71528
0
0
0
0
0
0
361
0.125653
b35f49c197da4ac821ef9e64e2d19def9b56f814
178
py
Python
setup.py
cxu-fork/pipupgradeall
fcca62aa0c334d9f9eca8323c7d17f228d937ee7
[ "MIT" ]
null
null
null
setup.py
cxu-fork/pipupgradeall
fcca62aa0c334d9f9eca8323c7d17f228d937ee7
[ "MIT" ]
1
2020-10-27T01:51:33.000Z
2020-10-27T01:51:33.000Z
setup.py
cxu-fork/pipupgradeall
fcca62aa0c334d9f9eca8323c7d17f228d937ee7
[ "MIT" ]
2
2020-10-26T20:36:01.000Z
2020-10-26T21:00:47.000Z
import setuptools setuptools.setup( name='pipupgradeall', py_modules=['pipupgradeall'], entry_points={"console_scripts": ["pipupgradeall = pipupgradeall:_main"],}, )
25.428571
79
0.724719
0
0
0
0
0
0
0
0
84
0.47191
b35f99354012d3ad1fdad1496663748a0d44b801
1,799
py
Python
src/air_controller.py
n-guitar/flask-natuer-remo
197ff7b6031caa3ac36eaf2bbeca71fbeac090db
[ "MIT" ]
5
2021-08-13T14:55:58.000Z
2022-03-21T12:11:11.000Z
src/air_controller.py
n-guitar/flask-natuer-remo
197ff7b6031caa3ac36eaf2bbeca71fbeac090db
[ "MIT" ]
null
null
null
src/air_controller.py
n-guitar/flask-natuer-remo
197ff7b6031caa3ac36eaf2bbeca71fbeac090db
[ "MIT" ]
null
null
null
from flask import Blueprint from api.json_dataclient import AppliancesDataClient from api.remoclient import NatureRemoClient air_controller = Blueprint('air_controller', __name__, url_prefix='/air/api') @air_controller.route('/send/power/<appliance_id>/<signal>', methods=['POST']) def send_power(appliance_id,signal...
38.276596
100
0.761534
0
0
0
0
1,583
0.879933
0
0
265
0.147304
b360a4c4991b238fe7765fcb44a5651558f24263
275
py
Python
kollect/management/commands/runserver.py
dcramer/kollect
a8586ec07f671e01e80df2336ad1fa5dfe4804e5
[ "Apache-2.0" ]
7
2018-09-03T20:52:00.000Z
2021-09-12T20:52:43.000Z
kollect/management/commands/runserver.py
dcramer/kollect
a8586ec07f671e01e80df2336ad1fa5dfe4804e5
[ "Apache-2.0" ]
9
2020-02-11T23:11:31.000Z
2022-01-13T00:53:07.000Z
tabletop/management/commands/runserver.py
dcramer/tabletop-server
062f56d149a29d5ab8605e220c156c1b4fb52d2f
[ "Apache-2.0" ]
null
null
null
from django.conf import settings from django.contrib.staticfiles.management.commands.runserver import Command as BaseCommand class Command(BaseCommand): def execute(self, *args, **options): settings.DEBUG = True return super().execute(*args, **options)
30.555556
91
0.738182
147
0.534545
0
0
0
0
0
0
0
0
b36181990f0e7a289739c1df1c506a6c08cadfb1
1,952
py
Python
code/api_controlers/apis.py
AICyberTeam/retrievalSystem
3a6b4a3f38ed179b529d3ac0cf0aad9aa6b98903
[ "MIT" ]
51
2021-11-07T03:14:12.000Z
2022-03-31T11:47:56.000Z
code/api_controlers/apis.py
AICyberTeam/retrievalSystem
3a6b4a3f38ed179b529d3ac0cf0aad9aa6b98903
[ "MIT" ]
null
null
null
code/api_controlers/apis.py
AICyberTeam/retrievalSystem
3a6b4a3f38ed179b529d3ac0cf0aad9aa6b98903
[ "MIT" ]
13
2021-11-07T03:14:14.000Z
2022-03-20T11:14:03.000Z
from flask import Flask, request, jsonify import json, os from threading import Timer from api_controlers import base_function, image_encode_ctl, delete_encode_ctl,\ text_search_ctl, image_search_ctl, semantic_localization_ctl, utils def api_run(cfg): app = Flask(__name__) # Flask 初始化 # ================...
36.830189
83
0.665471
0
0
0
0
1,278
0.623415
0
0
469
0.22878
b36472502cc6bb056b8f449921017ab2cdc6baa1
2,440
py
Python
atnp/collecter.py
alanfgn/text-analysis-political-news
2a6e81bbc68eac7cacd63b0fcf157161264a91b1
[ "MIT" ]
null
null
null
atnp/collecter.py
alanfgn/text-analysis-political-news
2a6e81bbc68eac7cacd63b0fcf157161264a91b1
[ "MIT" ]
null
null
null
atnp/collecter.py
alanfgn/text-analysis-political-news
2a6e81bbc68eac7cacd63b0fcf157161264a91b1
[ "MIT" ]
null
null
null
import atnp.utils as utils import requests import csv import re import os def slice_url(url): match = re.search(utils.LINK_PATTERN, url) return match.group(1), match.group(2), match.group(3) def gen_unique_name(domain, path): return "{}__{}".format(domain, path.replace("/", "_")) def makerequest(row, ...
28.045977
73
0.611475
0
0
0
0
0
0
0
0
388
0.159016
b3654a8261cc1c66da5a7989b216f4998e241a89
754
py
Python
alembic/versions/5ce477cd7ee3_add_otp_column.py
ashrafmahmood/oscarine-api
775f3ad5a3d3c50e36e228ee348ef40f075e95ec
[ "MIT" ]
7
2019-09-18T19:45:46.000Z
2020-05-18T20:07:07.000Z
alembic/versions/5ce477cd7ee3_add_otp_column.py
ashrafmahmood/oscarine-api
775f3ad5a3d3c50e36e228ee348ef40f075e95ec
[ "MIT" ]
252
2019-09-18T20:25:03.000Z
2022-03-25T11:23:50.000Z
alembic/versions/5ce477cd7ee3_add_otp_column.py
ashrafmahmood/oscarine-api
775f3ad5a3d3c50e36e228ee348ef40f075e95ec
[ "MIT" ]
8
2019-09-18T11:02:45.000Z
2021-05-18T17:08:51.000Z
"""add otp column Revision ID: 5ce477cd7ee3 Revises: 54f029830204 Create Date: 2020-05-12 19:04:09.302116 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '5ce477cd7ee3' down_revision = '54f029830204' branch_labels = None depends_on = None def upgrade(): #...
24.322581
74
0.679045
0
0
0
0
0
0
0
0
407
0.539788
b3665ca9272e655d3f741a8fee81a4c7439cc490
631
py
Python
setup.py
claranet/boto-mfa-profile
c789cc01fccf9014862ae64ee36895b1458c0237
[ "MIT" ]
1
2019-05-15T04:46:22.000Z
2019-05-15T04:46:22.000Z
setup.py
claranet/boto-mfa-profile
c789cc01fccf9014862ae64ee36895b1458c0237
[ "MIT" ]
2
2019-10-28T14:44:14.000Z
2020-05-27T12:14:16.000Z
setup.py
claranet/boto-source-profile-mfa
c789cc01fccf9014862ae64ee36895b1458c0237
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup setup( name='boto-source-profile-mfa', version='0.0.11', description='AWS boto helper library for reusing MFA tokens in profiles with the same source profile', author='Raymond Butcher', author_email='ray.butcher@claranet.uk', url='https://gith...
24.269231
106
0.62599
0
0
0
0
0
0
0
0
344
0.545166
b367a99d2eea02a6be2ff588beeb604ce121f954
870
py
Python
packs/kubernetes/actions/secret_delete.py
pearsontechnology/st2contrib
f60ff517079b91de7ee84fdf91cd742784e2731e
[ "Apache-2.0" ]
5
2016-10-11T11:52:53.000Z
2017-06-15T05:21:05.000Z
packs/kubernetes/actions/secret_delete.py
pearsontechnology/st2contrib
f60ff517079b91de7ee84fdf91cd742784e2731e
[ "Apache-2.0" ]
25
2016-07-28T17:50:35.000Z
2017-09-25T09:26:18.000Z
packs/kubernetes/actions/secret_delete.py
pearsontechnology/st2contrib
f60ff517079b91de7ee84fdf91cd742784e2731e
[ "Apache-2.0" ]
1
2017-05-05T19:12:01.000Z
2017-05-05T19:12:01.000Z
#!/usr/bin/python import json import base64 from st2actions.runners.pythonrunner import Action from lib import k8s from datetime import datetime deleteoptions = {} class SecretDelete(Action): def run(self, ns, name): k8suser = self.config.get('user') k8spass = self.config.get('password') ...
29
90
0.67931
703
0.808046
0
0
0
0
0
0
147
0.168966
b367e04a0c647330d45d344829776dd6eaf4daa7
3,087
py
Python
keras_approach.py
NicolaOrritos/pricenet
1667e564d48bf0021eb16dcd529017cd00643b03
[ "MIT" ]
null
null
null
keras_approach.py
NicolaOrritos/pricenet
1667e564d48bf0021eb16dcd529017cd00643b03
[ "MIT" ]
null
null
null
keras_approach.py
NicolaOrritos/pricenet
1667e564d48bf0021eb16dcd529017cd00643b03
[ "MIT" ]
null
null
null
#!/usr/bin/env python import tensorflow import pandas as pd import numpy as np from time import time from keras.models import Sequential from keras.layers import Dense from keras.callbacks import TensorBoard from keras.wrappers.scikit_learn import KerasRegressor from sklearn.model_selection import train_test...
27.318584
112
0.694201
0
0
0
0
0
0
0
0
710
0.229997
b3689078026756fd3c5035e1b65e769c2b8ddc88
1,725
py
Python
transfer_characteristics/signals.py
qh73xe/transfer_characteristics
1cdf120602501bd744fe83c208394bf96cf3bf50
[ "MIT" ]
null
null
null
transfer_characteristics/signals.py
qh73xe/transfer_characteristics
1cdf120602501bd744fe83c208394bf96cf3bf50
[ "MIT" ]
null
null
null
transfer_characteristics/signals.py
qh73xe/transfer_characteristics
1cdf120602501bd744fe83c208394bf96cf3bf50
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -* """信号処理一般関数""" def gen_chirp(duration, fs=96, **kwargs): """Generate chirp signal. 特定の長さのチャープ信号を返します. Args: duration (float) : 生成する信号の持続時間 (単位は sec). fs (int, optional) : 生成する信号のサンプリング周波数 (単位は kHz. デフォルトでは 96kHz) **kwargs: scipy.signal.chirp 関数に...
23.310811
72
0.577391
0
0
0
0
0
0
0
0
1,304
0.623625
b369861278c0f6577303d1013bf15fd9eaf975ac
55
py
Python
D02/set/hapus_clear.py
shdx8/dtwrhs
108decb8056931fc7601ed455a72ef0d65983ab0
[ "MIT" ]
null
null
null
D02/set/hapus_clear.py
shdx8/dtwrhs
108decb8056931fc7601ed455a72ef0d65983ab0
[ "MIT" ]
null
null
null
D02/set/hapus_clear.py
shdx8/dtwrhs
108decb8056931fc7601ed455a72ef0d65983ab0
[ "MIT" ]
null
null
null
set_saya = {1,2,3,4,5} set_saya.clear() print(set_saya)
18.333333
22
0.709091
0
0
0
0
0
0
0
0
0
0
b36db078f5ad5b524a09271c885138fe8560c69f
40
py
Python
lale/datasets/uci/__init__.py
haodeqi/lale
b58cda5d17ba6ee233e9afa91844afa413af5520
[ "Apache-2.0" ]
null
null
null
lale/datasets/uci/__init__.py
haodeqi/lale
b58cda5d17ba6ee233e9afa91844afa413af5520
[ "Apache-2.0" ]
null
null
null
lale/datasets/uci/__init__.py
haodeqi/lale
b58cda5d17ba6ee233e9afa91844afa413af5520
[ "Apache-2.0" ]
null
null
null
from .uci_datasets import fetch_drugscom
40
40
0.9
0
0
0
0
0
0
0
0
0
0
b36f756e8c02928780345bf238c0fd02acb4022d
37
py
Python
pyautoeasy/__main__.py
SaranshBaniyal/pyautoeasy
22d7cf556fd05f94a1a5806ce731011523779ef5
[ "MIT" ]
4
2021-10-10T18:20:49.000Z
2021-12-06T18:38:59.000Z
pyautoeasy/__main__.py
SaranshBaniyal/pyautoeasy
22d7cf556fd05f94a1a5806ce731011523779ef5
[ "MIT" ]
8
2021-10-10T18:05:28.000Z
2021-12-07T03:37:45.000Z
pyautoeasy/__main__.py
SaranshBaniyal/pyautoeasy
22d7cf556fd05f94a1a5806ce731011523779ef5
[ "MIT" ]
5
2021-10-11T13:41:15.000Z
2021-12-27T15:02:31.000Z
from pyautoeasy import cli cli.main()
18.5
26
0.810811
0
0
0
0
0
0
0
0
0
0
b36f7b55fef96f9aeb10f4219fd2d711b6be42d7
39,009
py
Python
invoice_ar/tests/test_serializers.py
mbaragiola/heimdallerp
8d32131a20bd0f3609d772ac437f4f24622abfc7
[ "0BSD" ]
8
2016-04-07T11:58:42.000Z
2019-06-24T01:38:12.000Z
invoice_ar/tests/test_serializers.py
mbaragiola/heimdallerp
8d32131a20bd0f3609d772ac437f4f24622abfc7
[ "0BSD" ]
null
null
null
invoice_ar/tests/test_serializers.py
mbaragiola/heimdallerp
8d32131a20bd0f3609d772ac437f4f24622abfc7
[ "0BSD" ]
null
null
null
from datetime import date, timedelta from decimal import Decimal from contact.models import Contact from django.contrib.auth.models import User from django.core.urlresolvers import reverse from geo.models import Country, Locality from invoice.models import (INVOICE_STATUSTYPE_DRAFT, VAT, CompanyInvoice, ...
33.628448
76
0.503243
38,484
0.986339
0
0
0
0
0
0
7,346
0.188277
b36ff8b258a3b936864a267d1093c9ac36b4d023
1,412
py
Python
tests/misc/test_ordersort.py
BarrensZeppelin/PyRival
bb01523283af0130c3921445ed5e532bfcf053af
[ "Apache-2.0" ]
748
2018-09-27T01:08:12.000Z
2022-03-25T17:31:56.000Z
tests/misc/test_ordersort.py
swarajspatil158/PyRival
07c4c38b2b6ca69a275d2ed3743b6c09af80b732
[ "Apache-2.0" ]
38
2019-02-24T14:50:02.000Z
2022-03-25T01:27:50.000Z
tests/misc/test_ordersort.py
swarajspatil158/PyRival
07c4c38b2b6ca69a275d2ed3743b6c09af80b732
[ "Apache-2.0" ]
288
2018-10-29T11:55:57.000Z
2022-03-20T04:37:27.000Z
import random from pyrival.ordersort import * def test_ordersort(): for _ in range(10000): l = random.randint(1, 100) arr = [random.randint(0, 1000) for _ in range(l)] got = ordersort(range(l), arr) expected = sorted(range(l), key=arr.__getitem__) assert [arr[i] for i i...
26.641509
77
0.596317
0
0
0
0
0
0
0
0
0
0
b370896f47311d0de8df8d3319b14b23e5a40b32
912
py
Python
agmcs/0010/0010.py
saurabh896/python-1
f8d3aedf4c0fe6e24dfa3269ea7e642c9f7dd9b7
[ "MIT" ]
3,976
2015-01-01T15:49:39.000Z
2022-03-31T03:47:56.000Z
agmcs/0010/0010.py
oyesam7/python-1
220734af09fa09a6f615d4f1b4612a0ab75d91d1
[ "MIT" ]
97
2015-01-11T02:59:46.000Z
2022-03-16T14:01:56.000Z
agmcs/0010/0010.py
oyesam7/python-1
220734af09fa09a6f615d4f1b4612a0ab75d91d1
[ "MIT" ]
3,533
2015-01-01T06:19:30.000Z
2022-03-28T13:14:54.000Z
from PIL import Image, ImageDraw, ImageFont import random im = Image.new('RGBA',(120,50),(255,255,255)) text = random.sample('abcdefghijklmnopqrstuvwxyz\ ABCDEFGHIJKLMNOPQRSTUVWXYZ',4) draw = ImageDraw.Draw(im) font = ImageFont.truetype("msyh.ttf",40) x=0 y=0 for i in xrange(200): x1 = random.randint(0,120) ...
27.636364
84
0.671053
0
0
0
0
0
0
0
0
79
0.086623
b370d17d5c8b1ddccff4041e2effd7503de95a5e
8,292
py
Python
home/templatetags/table_tags.py
davidjrichardson/toucans
7446b78ec2a09ff90eb83d4a78638c909deb06e1
[ "MIT" ]
1
2020-04-20T05:37:09.000Z
2020-04-20T05:37:09.000Z
home/templatetags/table_tags.py
davidjrichardson/toucans
7446b78ec2a09ff90eb83d4a78638c909deb06e1
[ "MIT" ]
23
2019-03-13T10:54:36.000Z
2022-03-11T23:33:59.000Z
home/templatetags/table_tags.py
davidjrichardson/toucans
7446b78ec2a09ff90eb83d4a78638c909deb06e1
[ "MIT" ]
null
null
null
from functools import reduce from django import template register = template.Library() def rank_leg(scores): points = {} ranked = sorted(scores, key=lambda x: x[1], reverse=True) for i in range(0, len(ranked)): if ranked[i][1] != (0, 0, 0): points[ranked[i][0]] = (len(ranked) - i, r...
43.873016
113
0.599735
0
0
0
0
2,109
0.25428
0
0
1,650
0.198939
b371587fd6814326d2d07cd04a37a379d3827420
1,893
py
Python
Playlist.py
FloSewn/Jukeberry
9afb4a544ba1f35c6bde41b7bc25be0aa6b87954
[ "MIT" ]
null
null
null
Playlist.py
FloSewn/Jukeberry
9afb4a544ba1f35c6bde41b7bc25be0aa6b87954
[ "MIT" ]
null
null
null
Playlist.py
FloSewn/Jukeberry
9afb4a544ba1f35c6bde41b7bc25be0aa6b87954
[ "MIT" ]
null
null
null
from Songlist import Songlist import random class Playlist(Songlist): def __init__(self, songpool, n_minimum=3, n_maximum=7): super().__init__("Playlist") random.seed(539) self.songpool = songpool self.n_minimum = min((n_minimum, len(songpool.data))) self.n_maximum = ma...
26.291667
113
0.577919
1,844
0.974115
0
0
0
0
0
0
490
0.258848
b37267d6c2c6d0c826bf45142f7dbce6bb47ab24
4,131
py
Python
model.py
khk4912/slash-dpy
751f66cb0eb330d230695c179e44ce99b4575fd1
[ "MIT" ]
2
2021-05-09T17:46:10.000Z
2021-05-09T17:46:13.000Z
model.py
khk4912/slash-dpy
751f66cb0eb330d230695c179e44ce99b4575fd1
[ "MIT" ]
null
null
null
model.py
khk4912/slash-dpy
751f66cb0eb330d230695c179e44ce99b4575fd1
[ "MIT" ]
null
null
null
import inspect from dataclasses import dataclass from typing import Callable, Optional, OrderedDict import aiohttp import discord from discord.member import Member from discord.role import Role from discord.user import User from exceptions import InvaildArgument SUB_COMMAND = 1 SUB_COMMAND_GROUP = 2 STRING = 3 INTEG...
25.5
88
0.535706
3,734
0.903897
0
0
3,756
0.909223
1,415
0.342532
1,343
0.325103
b37268a6e2b21c06a412ba95af142dfc30df87fd
20,192
py
Python
labelprop/voxelmorph2d.py
nathandecaux/labelprop
c92c453e12cc8575929d947db4ae7b266433eb52
[ "MIT" ]
null
null
null
labelprop/voxelmorph2d.py
nathandecaux/labelprop
c92c453e12cc8575929d947db4ae7b266433eb52
[ "MIT" ]
null
null
null
labelprop/voxelmorph2d.py
nathandecaux/labelprop
c92c453e12cc8575929d947db4ae7b266433eb52
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch.distributions.normal import Normal from monai.networks.nets import UNet,Classifier,DenseNet,BasicUNet,DynUNet import numpy as np import math from kornia.geometry.transform import get_perspective_transform,get_affine_matrix2d from .MultiLevelN...
37.186004
314
0.595186
19,721
0.976577
0
0
0
0
0
0
7,662
0.37942
b3778118c079067408f2edb5b9e482453afbdd52
9,672
py
Python
couplet_composer/support/tools/llvm.py
anttikivi/couplet-composer
0f6aaf894b35ea60d8047c0072ec146d4e1d2a6f
[ "MIT" ]
null
null
null
couplet_composer/support/tools/llvm.py
anttikivi/couplet-composer
0f6aaf894b35ea60d8047c0072ec146d4e1d2a6f
[ "MIT" ]
16
2020-10-29T17:31:47.000Z
2022-03-07T17:01:52.000Z
couplet_composer/support/tools/llvm.py
anttikivi/couplet-composer
0f6aaf894b35ea60d8047c0072ec146d4e1d2a6f
[ "MIT" ]
null
null
null
# Copyright (c) 2020 Antti Kivi # Licensed under the MIT License """A module that contains the class for the object that represents LLVM and various LLVM tools in the toolchain of the build script. """ import os import stat from argparse import Namespace from ...util import http, shell from ...build_directory impo...
29.487805
165
0.57072
9,232
0.954508
0
0
0
0
0
0
3,548
0.366832
2fa25397bfe9a1bf7f421c4c55cc856fda3104b8
435
py
Python
openet_client/exceptions.py
water3d/openet
c3c0b8c2c4fadd163121702c37e9f862f93d5bd2
[ "MIT" ]
null
null
null
openet_client/exceptions.py
water3d/openet
c3c0b8c2c4fadd163121702c37e9f862f93d5bd2
[ "MIT" ]
null
null
null
openet_client/exceptions.py
water3d/openet
c3c0b8c2c4fadd163121702c37e9f862f93d5bd2
[ "MIT" ]
null
null
null
class DataProcessingError(RuntimeError): def __init__(self, text, data=None): self.text = text self.data = data def __str__(self): return self.text def __repr__(self): return self.text class AuthenticationError(PermissionError): pass class BadRequestError(ValueError...
17.4
43
0.694253
424
0.974713
0
0
0
0
0
0
0
0
2fa3085303864c7e12eabfe87f9bd18ac95b7ca4
3,269
py
Python
perception/Old/CVChess-master/src/MarkImage.py
gabrieledamone/DE3-ROB1-CHESS
19ec74f10317d27683817989e729cacd6fe55a3f
[ "CC-BY-4.0" ]
25
2018-03-28T09:46:50.000Z
2022-02-10T02:51:46.000Z
perception/Old/CVChess-master/src/MarkImage.py
gabrieledamone/DE3-ROB1-CHESS
19ec74f10317d27683817989e729cacd6fe55a3f
[ "CC-BY-4.0" ]
2
2018-02-25T13:14:46.000Z
2020-06-15T09:24:09.000Z
perception/Old/CVChess-master/src/MarkImage.py
gabrieledamone/DE3-ROB1-CHESS
19ec74f10317d27683817989e729cacd6fe55a3f
[ "CC-BY-4.0" ]
21
2018-02-06T23:09:28.000Z
2021-06-24T16:58:59.000Z
#!/opt/local/bin/python import os, sys import numpy as np import cv, cv2 import CVAnalysis from Board import Board from util import print_message, print_status #==========[ Global Data ]========== corner_keypoints = [] corner_image_points = [] corner_board_points = [] corner_sift_desc = [] def get_closest_keyp...
28.675439
82
0.655552
0
0
0
0
0
0
0
0
1,379
0.421842
2fa6051aedcd77c23a8930e26b6cd51d26ec9f9d
607
py
Python
4fun/open_web.py
gatitoz-luan/extras
b5caf73afcdc5e24f3ad97ef565cb15a7fee2764
[ "MIT" ]
null
null
null
4fun/open_web.py
gatitoz-luan/extras
b5caf73afcdc5e24f3ad97ef565cb15a7fee2764
[ "MIT" ]
null
null
null
4fun/open_web.py
gatitoz-luan/extras
b5caf73afcdc5e24f3ad97ef565cb15a7fee2764
[ "MIT" ]
null
null
null
from time import sleep import urllib.request import webbrowser try: urllib.request.urlopen("https://www.youtube.com/watch?v=ffbI0JMW7g4") except Exception as erro: # Desligando o wifi, ou o site não estiver no ar print('\033[1; 31mO melhor vídeo do youtube não está acessível no momento.\033[m') er = erro ...
43.357143
86
0.708402
0
0
0
0
0
0
0
0
386
0.625608
2fa6797946f30447b24a6199a63c2d91f44255e0
5,546
py
Python
crystal_toolkit/components/symmetry.py
mkhorton/mp-dash-components
b9af1b59f0120a90897631d9a7f8d9f0ae561de9
[ "MIT" ]
null
null
null
crystal_toolkit/components/symmetry.py
mkhorton/mp-dash-components
b9af1b59f0120a90897631d9a7f8d9f0ae561de9
[ "MIT" ]
5
2018-10-18T19:52:12.000Z
2018-11-17T19:02:49.000Z
crystal_toolkit/components/symmetry.py
mkhorton/mp-dash-components
b9af1b59f0120a90897631d9a7f8d9f0ae561de9
[ "MIT" ]
null
null
null
from fractions import Fraction from dash import html import numpy as np from dash import callback_context from dash.dependencies import Input, Output from pymatgen.core.structure import Structure from pymatgen.symmetry.analyzer import SpacegroupAnalyzer from pymatgen.util.string import unicodeify_spacegroup, unicodeif...
33.817073
94
0.545979
5,022
0.905354
0
0
3,702
0.667388
0
0
1,100
0.198305
2fa6c536a0c61526a9ec8c3d285219c9f61ba8f1
14,306
py
Python
operation_obj.py
Frichetten/aws_api_shapeshifter
c5b8891ca98eb290c0773c5fb46672d64cd7fae0
[ "MIT" ]
16
2022-02-13T00:35:30.000Z
2022-02-14T20:11:55.000Z
operation_obj.py
Frichetten/aws_api_shapeshifter
c5b8891ca98eb290c0773c5fb46672d64cd7fae0
[ "MIT" ]
null
null
null
operation_obj.py
Frichetten/aws_api_shapeshifter
c5b8891ca98eb290c0773c5fb46672d64cd7fae0
[ "MIT" ]
1
2022-02-16T18:27:34.000Z
2022-02-16T18:27:34.000Z
from xeger import Xeger import api_signer import protocol_formatter import aws_api_shapeshifter """ The operation_obj will be the primary location where parameters are altered and configured. Every user generated modification will pass throug here. As a result this code is ugly and I'm only partially sorry. "...
34.555556
134
0.572557
13,068
0.913463
218
0.015238
0
0
0
0
3,455
0.241507
2fa7cb7b773d534e726796a3ee44b6013d7d462d
244
py
Python
get_confluence_page_latex_path.py
Open-Measure/TOME-Python
55159b3fbb55224b34e4fb71b63e4678c84ab4b7
[ "CC-BY-4.0" ]
1
2021-04-17T14:44:47.000Z
2021-04-17T14:44:47.000Z
get_confluence_page_latex_path.py
Open-Measure/TOME-Python
55159b3fbb55224b34e4fb71b63e4678c84ab4b7
[ "CC-BY-4.0" ]
null
null
null
get_confluence_page_latex_path.py
Open-Measure/TOME-Python
55159b3fbb55224b34e4fb71b63e4678c84ab4b7
[ "CC-BY-4.0" ]
null
null
null
import settings def get_confluence_page_latex_path(space_key, page_id): confluence_page_latex_path = \ f"{settings.LOCAL_CONFLUENCE_PAGE_LATEX_FOLDER}/" \ f"{space_key}_{page_id}.tex" return confluence_page_latex_path
27.111111
59
0.758197
0
0
0
0
0
0
0
0
77
0.315574
2fa7dec69496a095a2c47ea6cc15a0aee006cc97
29,064
py
Python
chesstab/gui/uci.py
RogerMarsh/chesstab
01d375dc6bf025b621612a84513e55c4640a78ad
[ "BSD-3-Clause" ]
null
null
null
chesstab/gui/uci.py
RogerMarsh/chesstab
01d375dc6bf025b621612a84513e55c4640a78ad
[ "BSD-3-Clause" ]
null
null
null
chesstab/gui/uci.py
RogerMarsh/chesstab
01d375dc6bf025b621612a84513e55c4640a78ad
[ "BSD-3-Clause" ]
null
null
null
# uci.py # Copyright 2015 Roger Marsh # License: See LICENSE.TXT (BSD licence) """Control multiple UCI compliant chess engines.""" import tkinter import tkinter.messagebox import tkinter.filedialog from solentware_grid.core.dataclient import DataSource from solentware_misc.gui.exceptionhandler import ExceptionHandl...
37.071429
87
0.525495
28,338
0.975021
0
0
105
0.003613
0
0
7,784
0.267823
2fa9b6e0222d2c0b70dc7ec3aecbef873f179373
4,704
py
Python
Exercises/flask-blogly/app.py
pedwards95/Springboard_Class
9df8dbd8832223e89b89d12db3f7e0b178e2ed79
[ "MIT" ]
null
null
null
Exercises/flask-blogly/app.py
pedwards95/Springboard_Class
9df8dbd8832223e89b89d12db3f7e0b178e2ed79
[ "MIT" ]
null
null
null
Exercises/flask-blogly/app.py
pedwards95/Springboard_Class
9df8dbd8832223e89b89d12db3f7e0b178e2ed79
[ "MIT" ]
null
null
null
# python -m venv venv # source venv/Scripts/activate # pip install pylint # pip install ipython # pip install flask # pip install flask_debugtoolbar # pip install pylint-flask # pip install psycopg2-binary # pip install flask-sqlalchemy # pip install pylint_flask_sqlalchemy # pip install pylint-sqlalchemy # pip install...
31.36
87
0.713435
0
0
0
0
3,843
0.816964
0
0
1,573
0.334396
2fac0c4396b2a1e4917a749d9f069dc4251273b4
541
py
Python
src/errors/errors.py
stdevAdrianPaez/cool-compiler-2020
7a783a0a69eabe9d7c80bdeddeabbb9d06445aba
[ "MIT" ]
null
null
null
src/errors/errors.py
stdevAdrianPaez/cool-compiler-2020
7a783a0a69eabe9d7c80bdeddeabbb9d06445aba
[ "MIT" ]
null
null
null
src/errors/errors.py
stdevAdrianPaez/cool-compiler-2020
7a783a0a69eabe9d7c80bdeddeabbb9d06445aba
[ "MIT" ]
null
null
null
""" Copyright (c) 2020 School of Math and Computer Science, University of Havana COOL compiler project """ LEXER_ERRORS = [] PARSER_ERRORS = [] SEMANTIC_ERRORS = [] def add_lexer_error(line, column, message): LEXER_ERRORS.append(f'({line}, {column}) - LexicographicError: {message}') def add_parser_error(line,...
24.590909
78
0.715342
0
0
0
0
0
0
0
0
257
0.475046
2facf704e67c18a43aeaa59d0fa5a011f2590e09
398
py
Python
safe_relay_service/tokens/migrations/0008_priceoracleticker_inverse.py
vaporyorg/safe-relay-service
1289c3d31639f83aa2c0110ff3b84a69212b81f5
[ "MIT" ]
5
2021-06-07T14:07:32.000Z
2022-03-26T19:42:45.000Z
safe_relay_service/tokens/migrations/0008_priceoracleticker_inverse.py
vaporyorg/safe-relay-service
1289c3d31639f83aa2c0110ff3b84a69212b81f5
[ "MIT" ]
24
2019-12-11T14:43:38.000Z
2022-03-01T12:37:24.000Z
safe_relay_service/tokens/migrations/0008_priceoracleticker_inverse.py
vaporyorg/safe-relay-service
1289c3d31639f83aa2c0110ff3b84a69212b81f5
[ "MIT" ]
4
2020-05-25T03:30:53.000Z
2021-11-22T06:51:12.000Z
# Generated by Django 2.1.3 on 2018-12-12 10:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tokens', '0007_auto_20181205_1024'), ] operations = [ migrations.AddField( model_name='priceoracleticker', name='inv...
20.947368
53
0.610553
305
0.766332
0
0
0
0
0
0
108
0.271357
2fad9a654e68fbbd2c8a4a136f03a32478751ee4
1,177
py
Python
emmet/action_utils/utils.py
jingyuexing/py-emmet
e3b1ecb875e0067fc9ef4f4479c7a8d4646aaa11
[ "MIT" ]
29
2019-11-12T16:15:15.000Z
2022-02-06T10:51:25.000Z
emmet/action_utils/utils.py
jingyuexing/py-emmet
e3b1ecb875e0067fc9ef4f4479c7a8d4646aaa11
[ "MIT" ]
3
2020-04-25T11:02:53.000Z
2021-11-25T10:39:09.000Z
emmet/action_utils/utils.py
jingyuexing/py-emmet
e3b1ecb875e0067fc9ef4f4479c7a8d4646aaa11
[ "MIT" ]
7
2020-04-25T09:42:54.000Z
2021-02-16T20:29:41.000Z
from ..scanner_utils import is_space class SelectItemModel: __slots__ = ('start', 'end', 'ranges') def __init__(self, start: int, end: int, ranges: list=None): self.start = start self.end = end self.ranges = ranges def to_json(self): return { 'start': self.sta...
23.078431
89
0.531011
357
0.303314
0
0
0
0
0
0
116
0.098556
2fae65f69504a377cf97ec0ffdf0a00d4a9c2141
434
py
Python
VisualPy/engine/ext/ErrorTypes.py
xTrayambak/visualpy
10a68c023b230f9c2f11e57680dab06e68078d0a
[ "BSD-2-Clause" ]
null
null
null
VisualPy/engine/ext/ErrorTypes.py
xTrayambak/visualpy
10a68c023b230f9c2f11e57680dab06e68078d0a
[ "BSD-2-Clause" ]
null
null
null
VisualPy/engine/ext/ErrorTypes.py
xTrayambak/visualpy
10a68c023b230f9c2f11e57680dab06e68078d0a
[ "BSD-2-Clause" ]
null
null
null
class NoDialogError(Exception): """ Occurs when the user has not inputted any dialog. """ pass class DialogTooBigError(Exception): """ Occurs when the user has inputted too big of a dialog. """ pass class DiscordRPCFailed(Exception): """ Occurs when pypresence fails to connect to Discord. """ ...
20.666667
56
0.695853
426
0.981567
0
0
0
0
0
0
253
0.582949
2faef444b1852c4a4b65fb3d4c3766d0712c2492
2,765
py
Python
tests/test_effect_overlay.py
niklasR/brave
5234bd9cecd6d7282cd0b50acfda44890cf4cfb8
[ "Apache-2.0" ]
1
2018-12-04T21:58:27.000Z
2018-12-04T21:58:27.000Z
tests/test_effect_overlay.py
niklasR/brave
5234bd9cecd6d7282cd0b50acfda44890cf4cfb8
[ "Apache-2.0" ]
null
null
null
tests/test_effect_overlay.py
niklasR/brave
5234bd9cecd6d7282cd0b50acfda44890cf4cfb8
[ "Apache-2.0" ]
1
2018-12-07T12:21:08.000Z
2018-12-07T12:21:08.000Z
import time, pytest, inspect from utils import * from PIL import Image def test_effect_overlay_visible_after_creation(run_brave): run_brave() time.sleep(0.5) check_brave_is_running() add_overlay({'type': 'effect', 'props': {'effect_name': 'edgetv'}}) time.sleep(0.1) assert_overlays([{'id': 0,...
41.893939
109
0.632911
0
0
0
0
0
0
0
0
1,153
0.416998
2fafadc84ca6d4bd015e4f90fe2035ddef798fc3
1,659
py
Python
RaNDaL/packages/models/text_fields/tree_field.py
adam-bentley/RaNDaL
d079ea4773815630f25f83ab0fbb8eefdbf2d17c
[ "MIT" ]
null
null
null
RaNDaL/packages/models/text_fields/tree_field.py
adam-bentley/RaNDaL
d079ea4773815630f25f83ab0fbb8eefdbf2d17c
[ "MIT" ]
null
null
null
RaNDaL/packages/models/text_fields/tree_field.py
adam-bentley/RaNDaL
d079ea4773815630f25f83ab0fbb8eefdbf2d17c
[ "MIT" ]
null
null
null
import json from numpy import ndarray from tensorflow.python.keras import Sequential from ...helpers.segmentation import split_characters from .text_field import TextArea class Tree(TextArea): def __init__(self, frame: ndarray, model: Sequential, inverted: bool = False): """ Constrctor for a tre...
33.18
82
0.502712
1,484
0.894515
0
0
0
0
0
0
471
0.283906
2fb05c28f9fc1d23f3b79a475475fc481afb0de9
2,742
py
Python
pyez/PyEZ_Cookbook_2017/15-Monitoring_IPSEC_tunnels/ike-tunnels.py
rsmekala/junosautomation
b76b3e8ce34048e3460cb071d0aeef176ab3836f
[ "Apache-2.0" ]
117
2016-08-22T15:52:28.000Z
2022-01-08T00:53:28.000Z
pyez/PyEZ_Cookbook_2017/15-Monitoring_IPSEC_tunnels/ike-tunnels.py
rsmekala/junosautomation
b76b3e8ce34048e3460cb071d0aeef176ab3836f
[ "Apache-2.0" ]
12
2017-10-28T09:44:44.000Z
2018-11-21T15:12:42.000Z
pyez/PyEZ_Cookbook_2017/15-Monitoring_IPSEC_tunnels/ike-tunnels.py
rsmekala/junosautomation
b76b3e8ce34048e3460cb071d0aeef176ab3836f
[ "Apache-2.0" ]
78
2016-08-19T05:35:28.000Z
2022-03-13T07:16:27.000Z
# Copyright 2017, Juniper Networks Pvt Ltd. # All rights reserved. from jnpr.junos import Device from jnpr.junos.utils.config import Config from lxml import etree import dill import xmltodict from io import StringIO from contextlib import redirect_stdout from collections import defaultdict from operator import itemget...
32.642857
77
0.539023
0
0
0
0
0
0
0
0
641
0.233771
2fb06c21eb891caf2ba79588b761d865ccf7d6e3
21,869
py
Python
sdk/python/pulumi_newrelic/service_level.py
pulumi/pulumi-newrelic
cd9a882f3524883ed155f87ff26c4c17cd048c9a
[ "ECL-2.0", "Apache-2.0" ]
6
2019-09-17T20:41:26.000Z
2022-01-13T23:54:14.000Z
sdk/python/pulumi_newrelic/service_level.py
pulumi/pulumi-newrelic
cd9a882f3524883ed155f87ff26c4c17cd048c9a
[ "ECL-2.0", "Apache-2.0" ]
136
2019-04-29T21:34:57.000Z
2022-03-30T17:07:03.000Z
sdk/python/pulumi_newrelic/service_level.py
pulumi/pulumi-newrelic
cd9a882f3524883ed155f87ff26c4c17cd048c9a
[ "ECL-2.0", "Apache-2.0" ]
3
2019-10-05T10:33:59.000Z
2021-06-15T16:37:49.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
44.630612
241
0.637661
21,398
0.978463
0
0
19,085
0.872697
0
0
12,841
0.587178
2fb0c6198b297677732f2c4daf939edfc49f4ce4
3,484
py
Python
tools/precommit_converter/extractor/extractor.py
bayeshack2016/icon-service
36cab484d2e41548d7f2f74526f127ee3a4423fc
[ "Apache-2.0" ]
52
2018-08-24T02:28:43.000Z
2021-07-06T04:44:22.000Z
tools/precommit_converter/extractor/extractor.py
bayeshack2016/icon-service
36cab484d2e41548d7f2f74526f127ee3a4423fc
[ "Apache-2.0" ]
62
2018-09-17T06:59:16.000Z
2021-12-15T06:02:51.000Z
tools/precommit_converter/extractor/extractor.py
bayeshack2016/icon-service
36cab484d2e41548d7f2f74526f127ee3a4423fc
[ "Apache-2.0" ]
35
2018-09-14T02:42:10.000Z
2022-02-05T10:34:46.000Z
import json from typing import List, Tuple, Optional from iconservice.base.block import Block from tools.precommit_converter.data.icon_service_info import IconServiceInfo from tools.precommit_converter.data.key_value import KeyValue class NotSupportFileException(Exception): pass class ExtractException(Exceptio...
39.590909
99
0.528703
3,241
0.930253
0
0
3,108
0.892078
0
0
488
0.140069
2fb1c6be4ef74a37e43239a8048564bf4ff487d1
2,389
py
Python
hw2-romv-scheduler/user_simulator/transaction_parsing_patterns.py
eladn/romv-scheduler-python
4afa4312686d7e218faa0cff9790096dff0501fc
[ "MIT" ]
1
2021-01-28T16:50:24.000Z
2021-01-28T16:50:24.000Z
hw2-romv-scheduler/user_simulator/transaction_parsing_patterns.py
eladn/romv-scheduler-python
4afa4312686d7e218faa0cff9790096dff0501fc
[ "MIT" ]
null
null
null
hw2-romv-scheduler/user_simulator/transaction_parsing_patterns.py
eladn/romv-scheduler-python
4afa4312686d7e218faa0cff9790096dff0501fc
[ "MIT" ]
null
null
null
# Collection of patterns used for parsing the input workload test file. # Used by the method: TransactionSimulator.parse_transaction_from_test_line(..) # Used by the method: TransactionSimulator.parse_and_add_operation(..) class TransactionParsingPatterns: number_pattern = '(([1-9][0-9]*)|0)' identifier_patte...
59.725
119
0.619506
2,163
0.9054
0
0
0
0
0
0
751
0.314357
2fb1dc0865cc26fff0ec597322348e9156d9ffbc
298
py
Python
ssb_sparktools/utils/utils.py
statisticsnorway/SSB_Spark_tools
95271519b0babcfbc9ec2c93503e287d776eaedb
[ "Apache-2.0" ]
1
2021-06-25T06:16:50.000Z
2021-06-25T06:16:50.000Z
ssb_sparktools/utils/utils.py
statisticsnorway/SSB_Spark_tools
95271519b0babcfbc9ec2c93503e287d776eaedb
[ "Apache-2.0" ]
6
2020-09-04T07:32:29.000Z
2021-07-08T11:04:02.000Z
ssb_sparktools/utils/utils.py
statisticsnorway/SSB_Spark_tools
95271519b0babcfbc9ec2c93503e287d776eaedb
[ "Apache-2.0" ]
null
null
null
import os import sys def set_runpath(repo): repo = '/' + repo if os.getcwd()[:13] =='/home/runner/': os.chdir(os.getcwd()[:(os.getcwd().index(repo) + ((len(repo)*2)+1))] ) else: os.chdir(os.getcwd()[:(os.getcwd().index(repo) + ((len(repo))+1))] ) return os.getcwd()
29.8
78
0.550336
0
0
0
0
0
0
0
0
18
0.060403
2fb29c745c8c1dc478e042622cebe679734864c2
185
py
Python
home/tests.py
mennonitengemeinde/church_site
ae9ef5f0f78811cecd734705339511dc0efb8340
[ "MIT" ]
null
null
null
home/tests.py
mennonitengemeinde/church_site
ae9ef5f0f78811cecd734705339511dc0efb8340
[ "MIT" ]
44
2020-05-13T20:15:26.000Z
2022-03-04T02:58:58.000Z
home/tests.py
mennonitengemeinde/church_site
ae9ef5f0f78811cecd734705339511dc0efb8340
[ "MIT" ]
4
2020-06-05T17:59:52.000Z
2021-02-06T19:09:43.000Z
from django.test import TestCase class HomeTests(TestCase): def test_home_page(self): response = self.client.get('/') self.assertEqual(response.status_code, 200)
20.555556
51
0.697297
149
0.805405
0
0
0
0
0
0
3
0.016216
2fb2fdfa61351569e57447f454e2aeffc1bbdbb3
104
py
Python
crud/crudexample/admin.py
Neeraj2701/numpy
bbc3167427eb8ecafeee3c5c9606b3532405dd96
[ "BSD-3-Clause" ]
null
null
null
crud/crudexample/admin.py
Neeraj2701/numpy
bbc3167427eb8ecafeee3c5c9606b3532405dd96
[ "BSD-3-Clause" ]
null
null
null
crud/crudexample/admin.py
Neeraj2701/numpy
bbc3167427eb8ecafeee3c5c9606b3532405dd96
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from crudexample.models import employee admin.site.register(employee)
20.8
39
0.846154
0
0
0
0
0
0
0
0
0
0
2fb476dd66bd0ab1d1e4099cd971c61bf78c0144
2,325
py
Python
api/models/predict.py
sanjeet1207/Batman
658a1bab55de425b23288ffec69f2d7ac93bb007
[ "MIT" ]
null
null
null
api/models/predict.py
sanjeet1207/Batman
658a1bab55de425b23288ffec69f2d7ac93bb007
[ "MIT" ]
null
null
null
api/models/predict.py
sanjeet1207/Batman
658a1bab55de425b23288ffec69f2d7ac93bb007
[ "MIT" ]
null
null
null
from datetime import datetime from PIL import Image from torchvision import transforms from urllib.request import urlopen import requests import logging import os import sys import torch model = torch.hub.load('pytorch/vision:v0.5.0', 'resnet18', pretrained=True) model.eval() def get_class_labels(): class_dict = ...
33.695652
96
0.630968
0
0
0
0
0
0
0
0
468
0.20129
2fb498d7415d0de70777173de30217109842ad90
643
py
Python
wipe_slate_clean.py
tjgran01/DotNIRSToolboxTools
aa07f507095dc42d4af4c3d8616e826c401e6a54
[ "MIT" ]
null
null
null
wipe_slate_clean.py
tjgran01/DotNIRSToolboxTools
aa07f507095dc42d4af4c3d8616e826c401e6a54
[ "MIT" ]
null
null
null
wipe_slate_clean.py
tjgran01/DotNIRSToolboxTools
aa07f507095dc42d4af4c3d8616e826c401e6a54
[ "MIT" ]
null
null
null
import os import shutil def main(): """ Removes any and all files generated from eml_localizer_pipeline.py, resetting the repository back to it's native state w/r/t code and data. Will NOT get rid of your zipped data. WiLL get rid of your unzipped data. So, beware if you're working with a lot, ...
26.791667
80
0.637636
0
0
0
0
0
0
0
0
444
0.690513
2fb6f09cc2a00f81943353736fc4cc723e1daf09
1,471
py
Python
nlp_helper/nlp_helper_sentence_split.py
mstaschik/nlp-helper
9f0722637cdcce6ae0063a152db735bb99818ec1
[ "MIT" ]
null
null
null
nlp_helper/nlp_helper_sentence_split.py
mstaschik/nlp-helper
9f0722637cdcce6ae0063a152db735bb99818ec1
[ "MIT" ]
null
null
null
nlp_helper/nlp_helper_sentence_split.py
mstaschik/nlp-helper
9f0722637cdcce6ae0063a152db735bb99818ec1
[ "MIT" ]
null
null
null
from pathlib import Path import logging logging.basicConfig(level=logging.DEBUG) def split_text_into_columns(nlp_models, df) -> None: """ Takes Text Content of one DataFrame Cell and splits into multiple Columns Args: nlp_models (list): List of Spacy Language Models df (Pandas DataFrame):...
25.807018
87
0.60775
0
0
0
0
0
0
0
0
682
0.46363
2fb82aeb0795716862ec22bbeb4fb9c9fa7db7dd
5,592
py
Python
ribo_annotate.py
everyday847/RiboAnnotate
a53abc6987e71538527b5b282129ead54497b31a
[ "MIT" ]
null
null
null
ribo_annotate.py
everyday847/RiboAnnotate
a53abc6987e71538527b5b282129ead54497b31a
[ "MIT" ]
null
null
null
ribo_annotate.py
everyday847/RiboAnnotate
a53abc6987e71538527b5b282129ead54497b31a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from PIL import Image, ImageFont, ImageDraw base_fields = ["x", "y", "chain", "segid", "seqpos", "name"] def base_info_of(line): """ Line format: x y chain segid seqpos name 205.500 -150.750 C AB 0 L14 """ return dict(zip(...
38.833333
160
0.599428
0
0
0
0
0
0
0
0
1,987
0.355329
2fb8fc30976ab33b0e15ec82896875c44dae5fcd
108
py
Python
lang/py/cookbook/v2/source/cb2_1_23_exm_4.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/cookbook/v2/source/cb2_1_23_exm_4.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/cookbook/v2/source/cb2_1_23_exm_4.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
outfile = codecs.open('out.html', mode='w', encoding='ascii', errors='html_replace')
36
61
0.555556
0
0
0
0
0
0
0
0
34
0.314815
2fb91561e56ca96f56198adfb8680ae6a7d77cc6
14,969
py
Python
phi/math/backend/_numpy_backend.py
Sh0cktr4p/PhiFlow
cc87c5887bc3abfa1ef3c03252122a06e9fd2c18
[ "MIT" ]
null
null
null
phi/math/backend/_numpy_backend.py
Sh0cktr4p/PhiFlow
cc87c5887bc3abfa1ef3c03252122a06e9fd2c18
[ "MIT" ]
null
null
null
phi/math/backend/_numpy_backend.py
Sh0cktr4p/PhiFlow
cc87c5887bc3abfa1ef3c03252122a06e9fd2c18
[ "MIT" ]
1
2021-09-15T11:14:42.000Z
2021-09-15T11:14:42.000Z
import numbers import os import sys import warnings from typing import List import numpy as np import scipy.signal import scipy.sparse from scipy.sparse.linalg import cg, LinearOperator from . import Backend, ComputeDevice from ._backend_helper import combined_dim from ._dtype import from_numpy_dtype, to_numpy_dtype,...
34.175799
176
0.594161
14,190
0.947959
0
0
0
0
0
0
1,176
0.078562
2fbb0c4e75b2c3ddc001608e2927153cc660a8eb
5,560
py
Python
web_app.py
frank-chris/HospitalDatabaseSystem
4861582d8cdca0ea28c7ef7ed46b2bdcecb3bf0b
[ "MIT" ]
null
null
null
web_app.py
frank-chris/HospitalDatabaseSystem
4861582d8cdca0ea28c7ef7ed46b2bdcecb3bf0b
[ "MIT" ]
null
null
null
web_app.py
frank-chris/HospitalDatabaseSystem
4861582d8cdca0ea28c7ef7ed46b2bdcecb3bf0b
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request, redirect, url_for, session from flask_mysqldb import MySQL from sql_helper import * from html_helper import * app = Flask(__name__) app.debug = True app.secret_key = 'mango' # Enter your database connection details below app.config['MYSQL_HOST'] = 'localhost' app.co...
42.442748
121
0.645863
0
0
0
0
5,036
0.905755
0
0
825
0.148381
2fbcf0d92ad2b40b429d3953d100953a69f41fd2
4,379
py
Python
seq2seq_dataset.py
Leon-Francis/blue-badminton
4b267ac355173a2ed717f9fcf16edd008960b502
[ "Apache-2.0" ]
null
null
null
seq2seq_dataset.py
Leon-Francis/blue-badminton
4b267ac355173a2ed717f9fcf16edd008960b502
[ "Apache-2.0" ]
null
null
null
seq2seq_dataset.py
Leon-Francis/blue-badminton
4b267ac355173a2ed717f9fcf16edd008960b502
[ "Apache-2.0" ]
null
null
null
import os import re from victim_module.victim_config import IMDB_Config from torch.utils.data import Dataset from tools import logging from transformers import AutoTokenizer from nltk.stem import WordNetLemmatizer from nltk.corpus import stopwords os.environ["TOKENIZERS_PARALLELISM"] = "false" # Setup stopwords list ...
38.752212
97
0.542818
3,284
0.749943
0
0
0
0
0
0
588
0.134277
2fbd1a3f064e91f24a62fbd3f2c26b8c21d38fe6
14,285
py
Python
devilry/devilry_import_v2database/tests/test_modelimporters/test_qualifiesforexam_importer.py
aless80/devilry-django
416c262e75170d5662542f15e2d7fecf5ab84730
[ "BSD-3-Clause" ]
null
null
null
devilry/devilry_import_v2database/tests/test_modelimporters/test_qualifiesforexam_importer.py
aless80/devilry-django
416c262e75170d5662542f15e2d7fecf5ab84730
[ "BSD-3-Clause" ]
null
null
null
devilry/devilry_import_v2database/tests/test_modelimporters/test_qualifiesforexam_importer.py
aless80/devilry-django
416c262e75170d5662542f15e2d7fecf5ab84730
[ "BSD-3-Clause" ]
null
null
null
from django import test from django.conf import settings from django.utils import timezone from django.utils.dateparse import parse_date from model_mommy import mommy from .importer_testcase_mixin import ImporterTestCaseMixin from devilry.devilry_import_v2database.modelimporters.qualifiesforexam_importer import \ ...
48.260135
119
0.706265
13,570
0.949947
0
0
0
0
0
0
2,353
0.164718
2fbeda5ce9c154a9ab00881c49315865e5d2e8ad
197,887
py
Python
boto3_type_annotations_with_docs/boto3_type_annotations/lex_models/client.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
119
2018-12-01T18:20:57.000Z
2022-02-02T10:31:29.000Z
boto3_type_annotations_with_docs/boto3_type_annotations/lex_models/client.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
15
2018-11-16T00:16:44.000Z
2021-11-13T03:44:18.000Z
boto3_type_annotations_with_docs/boto3_type_annotations/lex_models/client.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
11
2019-05-06T05:26:51.000Z
2021-09-28T15:27:59.000Z
from typing import Optional from botocore.client import BaseClient from typing import Dict from botocore.paginate import Paginator from botocore.waiter import Waiter from typing import Union from typing import List class Client(BaseClient): def can_paginate(self, operation_name: str = None): """ C...
59.74849
1,198
0.557945
197,669
0.998898
0
0
0
0
0
0
192,710
0.973839
2fbf69f0c7833581d5b839c771d79dfeca5e3540
771
py
Python
tests/read_head_test.py
aescwork/sqliteminor
83aa4f76a28141b085bbfc7f725531e0b67aeed5
[ "BSD-2-Clause" ]
1
2020-01-31T11:38:47.000Z
2020-01-31T11:38:47.000Z
tests/read_head_test.py
aescwork/sqliteminor
83aa4f76a28141b085bbfc7f725531e0b67aeed5
[ "BSD-2-Clause" ]
null
null
null
tests/read_head_test.py
aescwork/sqliteminor
83aa4f76a28141b085bbfc7f725531e0b67aeed5
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import unittest import sys sys.path.append("../sqliteminor/") sys.path.append("../temp/") import sqliteminor import setup_db class ReadHeadTest(unittest.TestCase): def setUp(self): self.conn = setup_db.setup_db() self.read_head_comp = [(1, u'Ash'), (2, u'Yew'), (3, u'White Pine'), (4...
15.734694
124
0.673152
562
0.728923
0
0
0
0
0
0
144
0.18677
2fbf7f011904cba5b1dd2d9a8b76bf67ae5b7a0e
5,955
py
Python
Gallery/views.py
CiganOliviu/InfiniteShoot
14f7fb21e360e3c58876d82ebbe206054c72958e
[ "MIT" ]
1
2021-04-02T16:45:37.000Z
2021-04-02T16:45:37.000Z
Gallery/views.py
CiganOliviu/InfiniteShoot-1
6322ae34f88caaffc1de29dfa4f6d86d175810a7
[ "Apache-2.0" ]
null
null
null
Gallery/views.py
CiganOliviu/InfiniteShoot-1
6322ae34f88caaffc1de29dfa4f6d86d175810a7
[ "Apache-2.0" ]
null
null
null
from django.contrib.auth.decorators import login_required from django.contrib.auth.mixins import LoginRequiredMixin from django.shortcuts import render from django.urls import reverse from django.views import generic from django.views.generic.edit import FormMixin from .models import * from Gallery.form import ClientC...
37.21875
116
0.751637
2,205
0.370277
0
0
842
0.141394
0
0
921
0.15466
2fc03895160f2fd0bb43ba9092bb74994194db31
4,766
py
Python
kat/controller.py
TOT0RoKR/kat
5fafe688593a60700f1067ca51ec9d5f148a396e
[ "MIT" ]
3
2019-10-27T08:26:15.000Z
2019-11-26T12:23:38.000Z
kat/controller.py
tot0rokr/kat
5fafe688593a60700f1067ca51ec9d5f148a396e
[ "MIT" ]
null
null
null
kat/controller.py
tot0rokr/kat
5fafe688593a60700f1067ca51ec9d5f148a396e
[ "MIT" ]
1
2020-01-25T00:14:51.000Z
2020-01-25T00:14:51.000Z
from kat.lib.tag import Tag from kat.lib.file import File from kat.lib.scope import Scope from kat.tracer import ccscanner as ccs from kat.tracer import ccparser as ccp from kat.tracer import ppscanner as pps from kat.tracer import ppparser as ppp from kat.ui.tabpage import * import kat.ui.filetree as ft import kat.ui....
29.974843
78
0.610575
0
0
0
0
0
0
0
0
647
0.135753
2fc3d10c1bf1b8fbca3ca021751b16b83e1a9d1e
7,709
py
Python
plotMO_deg.py
landyion/plotMO
8de33b925223a170a33fdea7a5645ff64d6638d5
[ "MIT" ]
null
null
null
plotMO_deg.py
landyion/plotMO
8de33b925223a170a33fdea7a5645ff64d6638d5
[ "MIT" ]
null
null
null
plotMO_deg.py
landyion/plotMO
8de33b925223a170a33fdea7a5645ff64d6638d5
[ "MIT" ]
1
2020-05-05T08:16:19.000Z
2020-05-05T08:16:19.000Z
#!/usr/bin/python2.7 # Create the gnuplot script for MO energy diagrams # This script is released under MIT license. # Usage: plotMO.py <datefile> > <tol> # Date file structure: # 1) different molecules diveded by blank line, # 2) for each molecule section, start with molecule name # 3) second line for HOMO number...
27.144366
126
0.592035
0
0
0
0
0
0
0
0
3,964
0.514204
2fc44e44de4fa82a33eba71af9e9f0b7407fba0b
2,024
py
Python
apps/hq/tests/auth.py
commtrack/commtrack-old-to-del
cc9c22754ac192a45483cef609bdcf09aa990340
[ "BSD-3-Clause" ]
1
2017-05-19T07:23:00.000Z
2017-05-19T07:23:00.000Z
apps/hq/tests/auth.py
commtrack/commtrack-old-to-del
cc9c22754ac192a45483cef609bdcf09aa990340
[ "BSD-3-Clause" ]
null
null
null
apps/hq/tests/auth.py
commtrack/commtrack-old-to-del
cc9c22754ac192a45483cef609bdcf09aa990340
[ "BSD-3-Clause" ]
null
null
null
import hashlib from django.test import TestCase from django.test.client import Client from hq.models import ExtUser, Domain, Organization, ReporterProfile from hq.tests.util import create_user_and_domain from receiver.models import Submission from reporters.models import Reporter class AuthenticationTestCase(TestCase)...
49.365854
166
0.623518
1,741
0.860178
0
0
0
0
0
0
556
0.274704
2fc482b29b5ed517acbe06792cf699b040d68832
7,015
py
Python
corehq/apps/data_interfaces/utils.py
andyasne/commcare-hq
c59a24e57bdd4d2536493f9ecdcc9906f4ae1b88
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/apps/data_interfaces/utils.py
andyasne/commcare-hq
c59a24e57bdd4d2536493f9ecdcc9906f4ae1b88
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/apps/data_interfaces/utils.py
andyasne/commcare-hq
c59a24e57bdd4d2536493f9ecdcc9906f4ae1b88
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
from typing import List, Optional from django.utils.translation import ugettext as _ from couchdbkit import ResourceNotFound from soil import DownloadBase from corehq.apps.casegroups.models import CommCareCaseGroup from corehq.apps.hqcase.utils import get_case_by_identifier from corehq.form_processor.interfaces.dba...
33.564593
115
0.606557
0
0
0
0
0
0
0
0
1,207
0.17206
2fc4fb97dec276ac9c856a99d96ed1184a3ff45c
4,725
py
Python
category_prediction/evalCategoryModel.py
jakelever/corona-ml
8ceb22af50d7277ebf05f2fd21bbbf68c080ed76
[ "MIT" ]
7
2021-02-01T22:39:23.000Z
2021-08-09T16:28:38.000Z
category_prediction/evalCategoryModel.py
jakelever/corona-ml
8ceb22af50d7277ebf05f2fd21bbbf68c080ed76
[ "MIT" ]
1
2021-05-17T13:14:40.000Z
2021-05-20T10:26:09.000Z
category_prediction/evalCategoryModel.py
jakelever/corona-ml
8ceb22af50d7277ebf05f2fd21bbbf68c080ed76
[ "MIT" ]
1
2021-01-04T14:11:18.000Z
2021-01-04T14:11:18.000Z
import argparse import json import sys from sklearn.model_selection import train_test_split from sklearn.preprocessing import MultiLabelBinarizer import sklearn.metrics from coronacode import DocumentClassifier def main(): parser = argparse.ArgumentParser('Build a model for a classifier') parser.add_argument('-...
35.526316
148
0.729735
0
0
0
0
0
0
0
0
1,261
0.266878
2fc5e09486ca793c293ae78afb5fd7c1bcc6bbb2
1,930
py
Python
simple/cubes.py
sawantss/simple-cozmo
54c85d7a42e351616edfc19ea000c94b3eee47f4
[ "Apache-2.0" ]
1
2019-10-19T22:03:33.000Z
2019-10-19T22:03:33.000Z
simple/cubes.py
sawantss/simple-cozmo
54c85d7a42e351616edfc19ea000c94b3eee47f4
[ "Apache-2.0" ]
null
null
null
simple/cubes.py
sawantss/simple-cozmo
54c85d7a42e351616edfc19ea000c94b3eee47f4
[ "Apache-2.0" ]
null
null
null
""" This class makes it easier to deal with cube tapped events in a procedural way using if statements. """ from __future__ import with_statement __all__ = ["LightCubesEventsSerializer"] __author__ = "Shitalkumar Sawant" __copyright__ = "Copyright(c) 2018 All rights reserved" from threading import Lock import cozmo...
31.129032
99
0.672021
1,481
0.767358
0
0
0
0
0
0
414
0.214508
2fc616d3f84483fe97876ef204e5c1ea508cf80c
7,771
py
Python
test/test_basic.py
brunoginciene/mergin-db-sync
0126e952df0e290ce503629b9831fbd1623edf7e
[ "MIT" ]
null
null
null
test/test_basic.py
brunoginciene/mergin-db-sync
0126e952df0e290ce503629b9831fbd1623edf7e
[ "MIT" ]
null
null
null
test/test_basic.py
brunoginciene/mergin-db-sync
0126e952df0e290ce503629b9831fbd1623edf7e
[ "MIT" ]
null
null
null
import pytest import os import shutil import sqlite3 import tempfile import psycopg2 from mergin import MerginClient, ClientError import sys sys.path.insert(0, '/home/martin/lutra/mergin-db-sync') from dbsync import dbsync_init, dbsync_pull, dbsync_push, dbsync_status, config GEODIFFINFO_EXE = os.environ.get('TES...
34.847534
111
0.713808
0
0
0
0
274
0.035259
0
0
3,209
0.412946
2fc6dec78a4c6244e5db1d19faef976eaab1b58b
20,773
py
Python
code/ARAX/ARAXQuery/Expand/bte_querier.py
MayankMurali/RTX
7d86305fb654c013c5ed2450dfe222f8666bfab2
[ "MIT" ]
null
null
null
code/ARAX/ARAXQuery/Expand/bte_querier.py
MayankMurali/RTX
7d86305fb654c013c5ed2450dfe222f8666bfab2
[ "MIT" ]
null
null
null
code/ARAX/ARAXQuery/Expand/bte_querier.py
MayankMurali/RTX
7d86305fb654c013c5ed2450dfe222f8666bfab2
[ "MIT" ]
null
null
null
#!/bin/env python3 import sys import os import traceback import asyncio from biothings_explorer.user_query_dispatcher import SingleEdgeQueryDispatcher sys.path.append(os.path.dirname(os.path.abspath(__file__))+"/../../UI/OpenAPI/python-flask-server/") from swagger_server.models.node import Node from swagger_server.mo...
60.211594
140
0.620854
20,390
0.981563
0
0
6,555
0.315554
0
0
5,434
0.26159
2fc91778fcd42d41ff8ba864c167436b5a44ede5
1,679
py
Python
utilities/test_DFT.py
matter-labs-archive/belle_cuda
36c48708920e0ae0a43539f4476312649bbefc97
[ "Apache-2.0" ]
2
2021-03-03T19:09:04.000Z
2021-11-23T22:13:52.000Z
utilities/test_DFT.py
matter-labs-archive/belle_cuda
36c48708920e0ae0a43539f4476312649bbefc97
[ "Apache-2.0" ]
null
null
null
utilities/test_DFT.py
matter-labs-archive/belle_cuda
36c48708920e0ae0a43539f4476312649bbefc97
[ "Apache-2.0" ]
3
2021-08-21T07:50:12.000Z
2022-03-20T17:59:47.000Z
#FFT p = 0x30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f0000001 field = GF(p) R = field(0xe0a77c19a07df2f666ea36f7879462e36fc76959f60cd29ac96341c4ffffffb) root_of_unity = field(0x1860ef942963f9e756452ac01eb203d8a22bf3742445ffd6636e735580d13d9c) / R FILE_LOCATION = "/home/k/TestCuda3/benches.txt" unity_ord...
20.9875
93
0.627755
0
0
0
0
0
0
0
0
166
0.098868
2fc96bd9749d33c45053ca208a6959e1316c8c1b
320
py
Python
zhaquirks/linkind/__init__.py
Siglis-AG/zha-device-handlers
2e8d6a117fbc1bec50cad463a8a2dcf948588838
[ "Apache-2.0" ]
56
2018-12-07T19:45:36.000Z
2020-03-30T15:01:58.000Z
zhaquirks/linkind/__init__.py
Siglis-AG/zha-device-handlers
2e8d6a117fbc1bec50cad463a8a2dcf948588838
[ "Apache-2.0" ]
207
2018-12-07T20:34:30.000Z
2020-04-03T11:50:39.000Z
zhaquirks/linkind/__init__.py
Siglis-AG/zha-device-handlers
2e8d6a117fbc1bec50cad463a8a2dcf948588838
[ "Apache-2.0" ]
65
2018-12-08T01:11:41.000Z
2020-03-24T18:23:17.000Z
"""Linkind sensors.""" from zigpy.quirks import CustomCluster import zigpy.types as t from zigpy.zcl.clusters.general import Basic class LinkindBasicCluster(CustomCluster, Basic): """Linkind Basic cluster.""" attributes = Basic.attributes.copy() attributes.update({0x0400A: ("linkind", t.uint8_t, True)})
26.666667
62
0.740625
186
0.58125
0
0
0
0
0
0
59
0.184375
2fc9f7217040262d94ce5133df432d66dd60db6a
48
py
Python
src/ui/menus.py
KathTheDragon/spindizzy-client
7ad7c5b330e707ab40fa572c2c25049959544d11
[ "MIT" ]
null
null
null
src/ui/menus.py
KathTheDragon/spindizzy-client
7ad7c5b330e707ab40fa572c2c25049959544d11
[ "MIT" ]
null
null
null
src/ui/menus.py
KathTheDragon/spindizzy-client
7ad7c5b330e707ab40fa572c2c25049959544d11
[ "MIT" ]
null
null
null
import tkinter as tk def menubar(ui): pass
9.6
20
0.6875
0
0
0
0
0
0
0
0
0
0
2fcabbf4dd03d68a4332042abb2b0e3d729ffc0b
2,088
py
Python
filehandling.py
theambidextrous/py-learn-trail
33283d29862654972edaab5baf318ae7298e6f76
[ "Apache-2.0" ]
null
null
null
filehandling.py
theambidextrous/py-learn-trail
33283d29862654972edaab5baf318ae7298e6f76
[ "Apache-2.0" ]
null
null
null
filehandling.py
theambidextrous/py-learn-trail
33283d29862654972edaab5baf318ae7298e6f76
[ "Apache-2.0" ]
null
null
null
### FILE HADLING ############# ## File OPen """" Use open() to manipulate files. Open() function takes two parameters; filename, and mode. There are four different methods (modes) for opening a file: =================================================================== "r" - Read - Default value. Opens a file for reading...
34.229508
120
0.534962
0
0
0
0
0
0
0
0
1,738
0.832375
2fcb5b1b96a29a0e18900da614e07c230a2d10b4
5,046
py
Python
train_utils.py
mengcz13/pytorch_training_toolbox
fae446b53d687248c7cf4667b45530b6a9676f43
[ "MIT" ]
null
null
null
train_utils.py
mengcz13/pytorch_training_toolbox
fae446b53d687248c7cf4667b45530b6a9676f43
[ "MIT" ]
null
null
null
train_utils.py
mengcz13/pytorch_training_toolbox
fae446b53d687248c7cf4667b45530b6a9676f43
[ "MIT" ]
null
null
null
import os import sys import socket import time import argparse import pickle import datetime import multiprocessing import numpy as np import torch import torch.optim as optim import torch.nn.functional as torchF from torch.optim import lr_scheduler from torch.utils.data import DataLoader import torch.multiprocessing...
36.565217
169
0.652794
1,612
0.319461
0
0
0
0
0
0
1,781
0.352953
2fcdd52a443fa79c19be95378dac193232845c7f
2,684
py
Python
helloworld.py
sungwon89/starter
8da98db4275ed149ada7b72a768cf55f36241284
[ "Apache-2.0" ]
null
null
null
helloworld.py
sungwon89/starter
8da98db4275ed149ada7b72a768cf55f36241284
[ "Apache-2.0" ]
null
null
null
helloworld.py
sungwon89/starter
8da98db4275ed149ada7b72a768cf55f36241284
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python ##################################### # Name : Daily Check # Language : Python # Create date : 2017.03.23 # Version : 0.1 ###################################### import csv import platform import commands ###################################### # Variables # 0. System_ENV # 1. SyslogChecke...
27.670103
117
0.596125
104
0.038748
0
0
0
0
0
0
795
0.2962
2fcee79f2e3618a6a53efa3b80dd76c30155b9ef
140
py
Python
ExPython/CursoemVideo/ex030.py
MatheusEwen/Exercicios_Do_CursoDePython
7c21f95f0d31ec1e6c17e1b957c1442843118c48
[ "MIT" ]
1
2020-10-06T00:27:05.000Z
2020-10-06T00:27:05.000Z
ExPython/CursoemVideo/ex030.py
MatheusEwen/Exercicios_Do_CursoDePython
7c21f95f0d31ec1e6c17e1b957c1442843118c48
[ "MIT" ]
null
null
null
ExPython/CursoemVideo/ex030.py
MatheusEwen/Exercicios_Do_CursoDePython
7c21f95f0d31ec1e6c17e1b957c1442843118c48
[ "MIT" ]
null
null
null
import math n = int(input('Digite um número:')) resul = n % 2 if resul == 0: print('O número é par') else: print('O número é impar')
20
35
0.614286
0
0
0
0
0
0
0
0
58
0.4
2fcf43e4ac6a474d5fc5c5ee29da212ada27726d
933
py
Python
exercicios/Exercicios Diversos/ex026.py
Roberto-Sartore/Python
98f91f13cf78d761893c4a1f3264ed999244d32b
[ "MIT" ]
null
null
null
exercicios/Exercicios Diversos/ex026.py
Roberto-Sartore/Python
98f91f13cf78d761893c4a1f3264ed999244d32b
[ "MIT" ]
null
null
null
exercicios/Exercicios Diversos/ex026.py
Roberto-Sartore/Python
98f91f13cf78d761893c4a1f3264ed999244d32b
[ "MIT" ]
null
null
null
"""Faça um programa que pergunte o preço de três produtos e informe qual produto você deve comprar, sabendo que a decisão é sempre pelo mais barato""" p1 = float(input('Digite a 1º valor R$ : ').replace(',', '.')) p2 = float(input('Digite a 2º valor R$ : ').replace(',', '.')) p3 = float(input('Digite a 3º valor R$ : ...
34.555556
99
0.620579
0
0
0
0
0
0
0
0
563
0.592632
2fd0cfd1e79c1ace8d687b73297ea9d7a24a0964
79
py
Python
pdr/__init__.py
jmzhao/CS704-asn3
95020c5198e50d520f34e51dbc77e195c06e6473
[ "MIT" ]
null
null
null
pdr/__init__.py
jmzhao/CS704-asn3
95020c5198e50d520f34e51dbc77e195c06e6473
[ "MIT" ]
1
2016-05-14T04:08:55.000Z
2016-05-14T07:20:30.000Z
pdr/__init__.py
jmzhao/CS704-asn3
95020c5198e50d520f34e51dbc77e195c06e6473
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: jmzhao """ from pdr import * import test
11.285714
23
0.56962
0
0
0
0
0
0
0
0
46
0.582278
2fd3ac7c1ba41bd5ab199c3429b9b16299c4d677
3,677
py
Python
get_images.py
agnes-yang/firecam
9282d1b5b83be3abf6a137f7a72c090a9eca05f6
[ "Apache-2.0" ]
10
2019-12-19T02:37:33.000Z
2021-12-07T04:47:08.000Z
get_images.py
agnes-yang/firecam
9282d1b5b83be3abf6a137f7a72c090a9eca05f6
[ "Apache-2.0" ]
5
2019-10-27T23:22:52.000Z
2020-02-13T23:08:15.000Z
get_images.py
agnes-yang/firecam
9282d1b5b83be3abf6a137f7a72c090a9eca05f6
[ "Apache-2.0" ]
13
2019-09-24T18:53:24.000Z
2021-07-16T05:57:18.000Z
# Copyright 2018 The Fuego Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
39.537634
144
0.689421
0
0
0
0
0
0
0
0
1,392
0.378569
2fd4b59a4281b93484f61543a3964063cbea187d
2,578
py
Python
run_compile_all_cython.py
SamanFekri/BookRecommendation
07dfa875154af39546cb263d4407339ce26d47e8
[ "MIT" ]
null
null
null
run_compile_all_cython.py
SamanFekri/BookRecommendation
07dfa875154af39546cb263d4407339ce26d47e8
[ "MIT" ]
null
null
null
run_compile_all_cython.py
SamanFekri/BookRecommendation
07dfa875154af39546cb263d4407339ce26d47e8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on 30/03/2019 @author: Maurizio Ferrari Dacrema """ import sys, glob, traceback, os from CythonCompiler.run_compile_subprocess import run_compile_subprocess if __name__ == '__main__': # cython_file_list = glob.glob('**/*.pyx', recursive=True) subf...
28.644444
137
0.643134
0
0
0
0
0
0
0
0
715
0.277347
2fd7e97342ba7ba70c0c1d034f2b6f659e0d93a5
3,822
py
Python
python/table_bandits.py
lbiester/gem5
21e2743f0d71c7f729f1ce799ec6e73c13a2eaba
[ "BSD-3-Clause" ]
null
null
null
python/table_bandits.py
lbiester/gem5
21e2743f0d71c7f729f1ce799ec6e73c13a2eaba
[ "BSD-3-Clause" ]
null
null
null
python/table_bandits.py
lbiester/gem5
21e2743f0d71c7f729f1ce799ec6e73c13a2eaba
[ "BSD-3-Clause" ]
null
null
null
import random import numpy as np from scipy.stats import bernoulli # TODO: how best to assign rewards? Should "too soon" of use be penalized? Should max reward be > 1? # what if something is used twice? Shouldn't this increase reward? for now no extra reward is given class ContextBandit: def __init__(self, state...
52.356164
125
0.674254
3,549
0.928571
0
0
0
0
0
0
915
0.239403
2fd84b89ad959d00f7cb28ec23fef9355fc7136b
1,473
py
Python
angr/procedures/posix/getenv.py
BA7JCM/angr
187a713c35759d998d93dfc5280630976d42d717
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/posix/getenv.py
BA7JCM/angr
187a713c35759d998d93dfc5280630976d42d717
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/posix/getenv.py
BA7JCM/angr
187a713c35759d998d93dfc5280630976d42d717
[ "BSD-2-Clause" ]
null
null
null
import angr ###################################### # getenv ###################################### class getenv(angr.SimProcedure): ''' The getenv() function searches the environment list to find the environment variable name, and returns a pointer to the corresponding value string. ''' #pylin...
39.810811
120
0.596062
1,371
0.930754
0
0
0
0
0
0
347
0.235574
2fd88f709bdb101553b7e313c87147a9ef4f3e60
1,571
py
Python
pyblaze/utils/examples/normalizing_flows.py
Greenroom-Robotics/pyblaze
e45e27fbd400b6ae2365ad2347165c7b5154ac51
[ "MIT" ]
20
2020-03-29T08:43:15.000Z
2021-12-17T21:38:17.000Z
pyblaze/utils/examples/normalizing_flows.py
borchero/bxtorch
8d01568c8ee9fc05f5b3c84ca3ec68ea74eef9eb
[ "MIT" ]
4
2020-10-27T20:43:40.000Z
2021-04-29T12:19:39.000Z
pyblaze/utils/examples/normalizing_flows.py
borchero/bxtorch
8d01568c8ee9fc05f5b3c84ca3ec68ea74eef9eb
[ "MIT" ]
2
2020-08-16T18:10:49.000Z
2021-03-31T23:17:28.000Z
# pylint: disable=missing-docstring import torch import torch.optim as optim from torch.utils.data.dataset import TensorDataset import matplotlib.pyplot as plt import pyblaze.nn as xnn import pyblaze.plot as P def train(engine, data, lr=1e-2, epochs=1000): data_ = torch.as_tensor(data, dtype=torch.float) # pyl...
29.092593
100
0.615532
0
0
0
0
0
0
0
0
121
0.077021
2fd8994fcfe97d0f5782b8f01e1cbbee48079342
4,896
py
Python
pracnbastats/team.py
practicallypredictable/pracnbstats
55cd6e285394686a62f3d1535a5b3468cd5410ea
[ "MIT" ]
null
null
null
pracnbastats/team.py
practicallypredictable/pracnbstats
55cd6e285394686a62f3d1535a5b3468cd5410ea
[ "MIT" ]
null
null
null
pracnbastats/team.py
practicallypredictable/pracnbstats
55cd6e285394686a62f3d1535a5b3468cd5410ea
[ "MIT" ]
null
null
null
import numpy as np from . import params from . import scrape from . import utils from . import league class BoxScores(league.BoxScores): def __init__( self, *, scraper, season=params.Season.default(), season_type=params.SeasonType.default(), date_from=params.DateFro...
30.409938
70
0.500817
4,788
0.977941
0
0
1,980
0.404412
0
0
771
0.157475
2fd9979293758751fadd18729d122db6a313068a
2,192
py
Python
anaf/changes/urls.py
tovmeod/anaf
80e4a00532ce6f4ce76c5ffc858ff90c759a9879
[ "BSD-3-Clause" ]
2
2016-03-15T13:17:26.000Z
2017-03-22T15:39:01.000Z
anaf/changes/urls.py
tovmeod/anaf
80e4a00532ce6f4ce76c5ffc858ff90c759a9879
[ "BSD-3-Clause" ]
4
2021-03-19T21:42:58.000Z
2022-03-11T23:13:07.000Z
anaf/changes/urls.py
tovmeod/anaf
80e4a00532ce6f4ce76c5ffc858ff90c759a9879
[ "BSD-3-Clause" ]
4
2016-08-31T16:55:41.000Z
2020-04-22T18:48:54.000Z
""" Change Control module URLs """ from django.conf.urls import url, patterns from anaf.changes import views urlpatterns = patterns('anaf.changes.views', url(r'^(\.(?P<response_format>\w+))?$', views.index, name='changes_index'), url(r'^owned(\.(?P<response_format>\w+))?$...
57.684211
120
0.485858
0
0
0
0
0
0
0
0
1,028
0.468978
2fda17987d3e3d4eee33a6885696e3d642ef4b29
336
py
Python
app/editor/migrations/0004_auto_20190809_1728.py
sappachok/django-anaconda
1ffd33ded759f622b6db23a3550a898b62350403
[ "MIT" ]
null
null
null
app/editor/migrations/0004_auto_20190809_1728.py
sappachok/django-anaconda
1ffd33ded759f622b6db23a3550a898b62350403
[ "MIT" ]
7
2019-12-06T05:34:28.000Z
2021-06-10T18:25:17.000Z
app/editor/migrations/0004_auto_20190809_1728.py
sappachok/django-datasci
1ffd33ded759f622b6db23a3550a898b62350403
[ "MIT" ]
null
null
null
# Generated by Django 2.2.4 on 2019-08-09 17:28 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('editor', '0003_auto_20190809_1724'), ] operations = [ migrations.RenameModel( old_name='PythonLabs', new_name='PythonLab', ...
18.666667
47
0.60119
251
0.747024
0
0
0
0
0
0
103
0.306548
2fde19d1fd4d8c645e2a58569add1946141ead92
3,429
py
Python
aishell/prepare_data.py
luweishuang/GSoC-2019-ASR-Pipeline
db43575418d57711e8be2ea83c32b931b90fa814
[ "MIT" ]
1
2019-12-25T03:37:01.000Z
2019-12-25T03:37:01.000Z
aishell/prepare_data.py
luweishuang/GSoC-2019-ASR-Pipeline
db43575418d57711e8be2ea83c32b931b90fa814
[ "MIT" ]
null
null
null
aishell/prepare_data.py
luweishuang/GSoC-2019-ASR-Pipeline
db43575418d57711e8be2ea83c32b931b90fa814
[ "MIT" ]
1
2020-03-20T07:59:37.000Z
2020-03-20T07:59:37.000Z
""" Command : prepare_data.py --src [...] --dst [...] """ import argparse import os import sys from tqdm import tqdm def findaudiofiles(dir): files = [] for dirpath, _, filenames in os.walk(dir): for filename in filenames: if filename.endswith(".wav"): files.append(os.path....
29.560345
89
0.580927
0
0
0
0
0
0
0
0
796
0.232138
2fdee606c545c725c7021d340c2c47cba95c6f8a
5,317
py
Python
server/config.py
BlankDAO/user-dashboard
b94e82366aeafab9aa08ed523f06e8ea6682f7a5
[ "BSD-2-Clause" ]
3
2019-03-10T06:07:39.000Z
2019-04-08T12:52:58.000Z
server/config.py
BlankDAO/user-dashboard
b94e82366aeafab9aa08ed523f06e8ea6682f7a5
[ "BSD-2-Clause" ]
null
null
null
server/config.py
BlankDAO/user-dashboard
b94e82366aeafab9aa08ed523f06e8ea6682f7a5
[ "BSD-2-Clause" ]
null
null
null
def Obj(): return lambda: None INFURA_URL = 'https://mainnet.infura.io/v3/81a17a01107e4ac9bf8a556da267ae2d' BLANKDAO_PUBLIC_KEY = '117f893e-9184-427a-892c-6993e88981f0' BLANK_TOKEN_ABI = '[{"constant": true, "inputs": [], "name": "mintingFinished", "outputs": [{"name": "", "type": "bool"}], "payable": false,...
231.173913
4,861
0.595637
0
0
0
0
0
0
0
0
5,045
0.948843
2fdfd7c8de26fc11a29c348de139d64a9c7837bf
1,034
py
Python
bin/analytic/catalog/regressor.py
DarkEnergyScienceCollaboration/chroma
64fc123a065334b307654f29b3bea52885b46ec8
[ "BSD-2-Clause", "BSD-3-Clause" ]
3
2015-10-22T14:57:27.000Z
2016-08-25T08:16:02.000Z
bin/analytic/catalog/regressor.py
DarkEnergyScienceCollaboration/chroma
64fc123a065334b307654f29b3bea52885b46ec8
[ "BSD-2-Clause", "BSD-3-Clause" ]
1
2017-08-28T14:42:46.000Z
2017-08-28T16:08:37.000Z
bin/analytic/catalog/regressor.py
DarkEnergyScienceCollaboration/chroma
64fc123a065334b307654f29b3bea52885b46ec8
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
""" Simple wrapper for sklearn regession classes that scales features to have zero mean and unit variance. Can also easily unscale features of predicted data. """ import numpy as np class regress(): def __init__(self, regressor): self.regressor = regressor def add_training_data(self, train_X, train_...
36.928571
90
0.689555
848
0.820116
0
0
0
0
0
0
163
0.15764
2fe14f420e86345764e26b8b68fa3a9d231ede94
7,717
py
Python
ddpg.py
fengredrum/DDPG-v2
78d7bfbedb52b4dec76d2723f4e5d04d340f1275
[ "MIT" ]
3
2018-12-26T09:33:30.000Z
2020-04-22T12:11:30.000Z
ddpg.py
fengredrum/DDPG-v2
78d7bfbedb52b4dec76d2723f4e5d04d340f1275
[ "MIT" ]
null
null
null
ddpg.py
fengredrum/DDPG-v2
78d7bfbedb52b4dec76d2723f4e5d04d340f1275
[ "MIT" ]
1
2018-12-20T08:19:08.000Z
2018-12-20T08:19:08.000Z
import time import numpy as np from replayBuffer import Memory from network import * class DDPG: """docstring for DDPG""" def __init__(self, sess, env, args): self.s_dim = env.observation_space.shape[0] self.act_dim = env.action_space.shape[0] self.sess = sess self.args = args...
51.791946
120
0.621485
6,343
0.821952
0
0
0
0
0
0
515
0.066736
2fe4fadf475b13cfb0692513254c3cb049b9b1c5
3,025
py
Python
chainlet_unittests/test_grammar/test_subscription.py
maxfischer2781/chainlet
4e17f9992b4780bd0d9309202e2847df640bffe8
[ "MIT" ]
1
2017-11-22T21:23:34.000Z
2017-11-22T21:23:34.000Z
chainlet_unittests/test_grammar/test_subscription.py
maxfischer2781/chainlet
4e17f9992b4780bd0d9309202e2847df640bffe8
[ "MIT" ]
10
2017-02-16T16:20:09.000Z
2018-03-12T16:57:38.000Z
chainlet_unittests/test_grammar/test_subscription.py
maxfischer2781/chainlet
4e17f9992b4780bd0d9309202e2847df640bffe8
[ "MIT" ]
null
null
null
import itertools import unittest from chainlet.dataflow import MergeLink from chainlet_unittests.utility import Adder class ChainSubscription(unittest.TestCase): def test_pair(self): """Subscribe chain[i:j:k] for `a >> b`""" elements = [Adder(val) for val in (0, -2, -1E6)] for elements i...
44.485294
120
0.596364
2,902
0.959339
0
0
0
0
0
0
232
0.076694
2fe84a2906f5bf097d1442024ee1714c19469089
2,727
py
Python
tests/test_rules.py
f213/richtypo.py
717cf4b640289c410b5ecddbd240d7cc818b8b68
[ "MIT" ]
9
2017-01-12T16:52:35.000Z
2020-11-08T19:08:34.000Z
tests/test_rules.py
f213/richtypo.py
717cf4b640289c410b5ecddbd240d7cc818b8b68
[ "MIT" ]
115
2018-06-12T20:48:09.000Z
2020-07-29T02:14:58.000Z
tests/test_rules.py
f213/richtypo.py
717cf4b640289c410b5ecddbd240d7cc818b8b68
[ "MIT" ]
1
2022-02-10T06:40:58.000Z
2022-02-10T06:40:58.000Z
# -*- coding: utf-8 import re import six from richtypo import Richtypo from richtypo.rules import ABRule, Rule try: from unittest.mock import patch except ImportError: from mock import patch def test_rule_generic(): r = Rule( pattern='b{2}', replacement='c' ) assert r.apply('abb...
20.350746
70
0.604327
0
0
0
0
633
0.232123
0
0
478
0.175284
2fe8b058bff633879ee2bcceb0dc667d24109f50
786
py
Python
accounts/urls.py
UTpay/UTpay
5e43f07f9046781ab2b50ada3c3a022d13da1765
[ "MIT" ]
1
2017-11-04T20:33:04.000Z
2017-11-04T20:33:04.000Z
accounts/urls.py
UTpay/utpay
5e43f07f9046781ab2b50ada3c3a022d13da1765
[ "MIT" ]
7
2020-06-05T17:38:37.000Z
2022-03-11T23:17:27.000Z
accounts/urls.py
UTpay/UTpay
5e43f07f9046781ab2b50ada3c3a022d13da1765
[ "MIT" ]
null
null
null
from django.contrib.auth import views as auth_views from django.urls import path from .views import * app_name = 'accounts' urlpatterns = [ path('signup/', SignUpView.as_view(), name='signup'), path('activation/<key>/', ActivationView.as_view(), name='activation'), path('login/', auth_views.LoginView.as_v...
46.235294
96
0.717557
0
0
0
0
0
0
0
0
251
0.319338
2fe90b31573edf5975fb492298b9d7925da1286f
2,230
py
Python
Flight/RC Overrides/Forward Movement.py
MissouriMRR/DroneKit
979fc814c333db843252abe642dfb741613bfc94
[ "MIT" ]
1
2020-07-20T02:53:01.000Z
2020-07-20T02:53:01.000Z
Flight/RC Overrides/Forward Movement.py
MissouriMRR/DroneKit
979fc814c333db843252abe642dfb741613bfc94
[ "MIT" ]
null
null
null
Flight/RC Overrides/Forward Movement.py
MissouriMRR/DroneKit
979fc814c333db843252abe642dfb741613bfc94
[ "MIT" ]
null
null
null
import time from dronekit import VehicleMode, connect from pymavlink import mavutil fly=False landing = False lat = 49.2778638 lon = -123.0633418 vehicle = connect('tcp:127.0.0.1:5763', wait_ready=True) print "Read channels individually:" print " Ch1: %s" % vehicle.channels['1'] print " Ch2: %s" % vehicle.channels['2...
30.972222
110
0.698206
0
0
0
0
0
0
0
0
510
0.2287
2fe9d5bba8728b3052a65f08a998d3c145a7e3af
1,806
py
Python
enaml/qt/qt_web_view.py
pberkes/enaml
cbcbee929e3117dfe56c0b06dc2385acc832b0e8
[ "BSD-3-Clause-Clear" ]
26
2016-04-01T18:49:31.000Z
2020-07-21T22:19:46.000Z
enaml/qt/qt_web_view.py
pberkes/enaml
cbcbee929e3117dfe56c0b06dc2385acc832b0e8
[ "BSD-3-Clause-Clear" ]
29
2016-02-22T17:40:55.000Z
2018-08-21T18:18:36.000Z
enaml/qt/qt_web_view.py
pberkes/enaml
cbcbee929e3117dfe56c0b06dc2385acc832b0e8
[ "BSD-3-Clause-Clear" ]
4
2016-08-29T13:07:19.000Z
2018-11-04T01:31:46.000Z
#------------------------------------------------------------------------------ # Copyright (c) 2013, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #-------------------------------------------------...
30.610169
79
0.477298
1,285
0.711517
0
0
0
0
0
0
1,027
0.56866
2feaafe4312b2826f2437121c11a4ae1d7ccd4e8
10,940
py
Python
latest version/web/index.py
Kanae25805/Arcaea-server
0218e797aec835e07488a1dfbd121925d56245b5
[ "MIT" ]
null
null
null
latest version/web/index.py
Kanae25805/Arcaea-server
0218e797aec835e07488a1dfbd121925d56245b5
[ "MIT" ]
null
null
null
latest version/web/index.py
Kanae25805/Arcaea-server
0218e797aec835e07488a1dfbd121925d56245b5
[ "MIT" ]
null
null
null
from flask import ( Blueprint, flash, g, redirect, render_template, request, url_for ) from web.login import login_required from werkzeug.utils import secure_filename import sqlite3 import web.webscore import web.system import time import server.arcscore import os UPLOAD_FOLDER = 'database' ALLOWED_EXTENSIONS = {'...
30.304709
139
0.522121
0
0
0
0
10,589
0.938741
0
0
2,837
0.251507
2feb74471e168c7ba1d30e8dffed81e0e52414c6
3,271
py
Python
feedreader/fallback/atom.py
webos-goodies/feedreader
42f44a98980af3a9bc39fa5c436a48fc31733d0f
[ "BSD-2-Clause" ]
1
2015-11-15T18:45:50.000Z
2015-11-15T18:45:50.000Z
feedreader/fallback/atom.py
webos-goodies/feedreader
42f44a98980af3a9bc39fa5c436a48fc31733d0f
[ "BSD-2-Clause" ]
null
null
null
feedreader/fallback/atom.py
webos-goodies/feedreader
42f44a98980af3a9bc39fa5c436a48fc31733d0f
[ "BSD-2-Clause" ]
null
null
null
""" Malformed Atom fallback """ from feedreader.fallback.base import (PREFERRED_LINK_TYPES, PREFERRED_CONTENT_TYPES, Feed, Item, get_element_text, get_attribute, search_child, get_xpath_node, get_xpath_text, get_xpath_datetime, ...
31.757282
97
0.670131
2,877
0.879548
0
0
2,732
0.835219
0
0
563
0.172119
2feca74f95fd3ef72f4807ca5abf86a33a361fda
14,122
py
Python
taggd/core/demultiplex.py
jfnavarro/taggd
c423a4bb8a2afc1ffaabc6704a8968dc3e829b4f
[ "BSD-3-Clause" ]
3
2015-05-07T12:23:12.000Z
2019-12-07T11:30:43.000Z
taggd/core/demultiplex.py
JoelSjostrand/taggd
d778dcce5205ca61bd82cb518854583f32f63baf
[ "BSD-3-Clause" ]
1
2017-06-29T11:49:28.000Z
2017-06-29T17:59:03.000Z
taggd/core/demultiplex.py
JoelSjostrand/taggd
d778dcce5205ca61bd82cb518854583f32f63baf
[ "BSD-3-Clause" ]
3
2015-05-11T08:00:03.000Z
2020-11-30T07:49:27.000Z
""" Runs taggd, a tool to demultiplex (link molecular barcodes back to) a file of genetic reads, typically obtained by sequencing. For matched reads, the barcode and its related properties are added to the read. Unmatched reads, ambiguously matched reads, and stats are by default produced as output files as well. The...
52.303704
195
0.599278
0
0
0
0
0
0
0
0
5,866
0.41538
2fed9c1cc996668efe8fcc3cc02dc64126644948
18,586
py
Python
plots_matlabformat.py
apiasecki/benthic_calibration
739a42096018f51af2c2043413b90aa072fcd81d
[ "MIT" ]
null
null
null
plots_matlabformat.py
apiasecki/benthic_calibration
739a42096018f51af2c2043413b90aa072fcd81d
[ "MIT" ]
null
null
null
plots_matlabformat.py
apiasecki/benthic_calibration
739a42096018f51af2c2043413b90aa072fcd81d
[ "MIT" ]
null
null
null
# THIS TAKES AN ALREADY FORMATED DATA TABLE from matlab AND DOES THE REGRESSIONS # IT ALSO MAKES THE PLOTS # LAST EDITED 11-29-17 import pandas import numpy as np import matplotlib.pyplot as plt from scipy.optimize import curve_fit from pylab import * from pyteomics import mass # can do cool isotope math stuff, not us...
46.698492
112
0.620144
0
0
0
0
0
0
0
0
10,498
0.564834