hexsha string | size int64 | ext string | lang string | max_stars_repo_path string | max_stars_repo_name string | max_stars_repo_head_hexsha string | max_stars_repo_licenses list | max_stars_count int64 | max_stars_repo_stars_event_min_datetime string | max_stars_repo_stars_event_max_datetime string | max_issues_repo_path string | max_issues_repo_name string | max_issues_repo_head_hexsha string | max_issues_repo_licenses list | max_issues_count int64 | max_issues_repo_issues_event_min_datetime string | max_issues_repo_issues_event_max_datetime string | max_forks_repo_path string | max_forks_repo_name string | max_forks_repo_head_hexsha string | max_forks_repo_licenses list | max_forks_count int64 | max_forks_repo_forks_event_min_datetime string | max_forks_repo_forks_event_max_datetime string | content string | avg_line_length float64 | max_line_length int64 | alphanum_fraction float64 | qsc_code_num_words_quality_signal int64 | qsc_code_num_chars_quality_signal float64 | qsc_code_mean_word_length_quality_signal float64 | qsc_code_frac_words_unique_quality_signal float64 | qsc_code_frac_chars_top_2grams_quality_signal float64 | qsc_code_frac_chars_top_3grams_quality_signal float64 | qsc_code_frac_chars_top_4grams_quality_signal float64 | qsc_code_frac_chars_dupe_5grams_quality_signal float64 | qsc_code_frac_chars_dupe_6grams_quality_signal float64 | qsc_code_frac_chars_dupe_7grams_quality_signal float64 | qsc_code_frac_chars_dupe_8grams_quality_signal float64 | qsc_code_frac_chars_dupe_9grams_quality_signal float64 | qsc_code_frac_chars_dupe_10grams_quality_signal float64 | qsc_code_frac_chars_replacement_symbols_quality_signal float64 | qsc_code_frac_chars_digital_quality_signal float64 | qsc_code_frac_chars_whitespace_quality_signal float64 | qsc_code_size_file_byte_quality_signal float64 | qsc_code_num_lines_quality_signal float64 | qsc_code_num_chars_line_max_quality_signal float64 | qsc_code_num_chars_line_mean_quality_signal float64 | qsc_code_frac_chars_alphabet_quality_signal float64 | qsc_code_frac_chars_comments_quality_signal float64 | qsc_code_cate_xml_start_quality_signal float64 | qsc_code_frac_lines_dupe_lines_quality_signal float64 | qsc_code_cate_autogen_quality_signal float64 | qsc_code_frac_lines_long_string_quality_signal float64 | qsc_code_frac_chars_string_length_quality_signal float64 | qsc_code_frac_chars_long_word_length_quality_signal float64 | qsc_code_frac_lines_string_concat_quality_signal float64 | qsc_code_cate_encoded_data_quality_signal float64 | qsc_code_frac_chars_hex_words_quality_signal float64 | qsc_code_frac_lines_prompt_comments_quality_signal float64 | qsc_code_frac_lines_assert_quality_signal float64 | qsc_codepython_cate_ast_quality_signal float64 | qsc_codepython_frac_lines_func_ratio_quality_signal float64 | qsc_codepython_cate_var_zero_quality_signal bool | qsc_codepython_frac_lines_pass_quality_signal float64 | qsc_codepython_frac_lines_import_quality_signal float64 | qsc_codepython_frac_lines_simplefunc_quality_signal float64 | qsc_codepython_score_lines_no_logic_quality_signal float64 | qsc_codepython_frac_lines_print_quality_signal float64 | qsc_code_num_words int64 | qsc_code_num_chars int64 | qsc_code_mean_word_length int64 | qsc_code_frac_words_unique null | qsc_code_frac_chars_top_2grams int64 | qsc_code_frac_chars_top_3grams int64 | qsc_code_frac_chars_top_4grams int64 | qsc_code_frac_chars_dupe_5grams int64 | qsc_code_frac_chars_dupe_6grams int64 | qsc_code_frac_chars_dupe_7grams int64 | qsc_code_frac_chars_dupe_8grams int64 | qsc_code_frac_chars_dupe_9grams int64 | qsc_code_frac_chars_dupe_10grams int64 | qsc_code_frac_chars_replacement_symbols int64 | qsc_code_frac_chars_digital int64 | qsc_code_frac_chars_whitespace int64 | qsc_code_size_file_byte int64 | qsc_code_num_lines int64 | qsc_code_num_chars_line_max int64 | qsc_code_num_chars_line_mean int64 | qsc_code_frac_chars_alphabet int64 | qsc_code_frac_chars_comments int64 | qsc_code_cate_xml_start int64 | qsc_code_frac_lines_dupe_lines int64 | qsc_code_cate_autogen int64 | qsc_code_frac_lines_long_string int64 | qsc_code_frac_chars_string_length int64 | qsc_code_frac_chars_long_word_length int64 | qsc_code_frac_lines_string_concat null | qsc_code_cate_encoded_data int64 | qsc_code_frac_chars_hex_words int64 | qsc_code_frac_lines_prompt_comments int64 | qsc_code_frac_lines_assert int64 | qsc_codepython_cate_ast int64 | qsc_codepython_frac_lines_func_ratio int64 | qsc_codepython_cate_var_zero int64 | qsc_codepython_frac_lines_pass int64 | qsc_codepython_frac_lines_import int64 | qsc_codepython_frac_lines_simplefunc int64 | qsc_codepython_score_lines_no_logic int64 | qsc_codepython_frac_lines_print int64 | effective string | hits int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5e53fee59bd5ad207e8b11bbd8595b032fac6231 | 1,013 | py | Python | tests/test_priority_queue.py | ZachElkins/PythonDataStructures | ccc069de10aceaec1ddcf04a191791b28c364517 | [
"MIT"
] | 1 | 2022-01-08T21:01:48.000Z | 2022-01-08T21:01:48.000Z | tests/test_priority_queue.py | ZachElkins/PythonDataStructures | ccc069de10aceaec1ddcf04a191791b28c364517 | [
"MIT"
] | null | null | null | tests/test_priority_queue.py | ZachElkins/PythonDataStructures | ccc069de10aceaec1ddcf04a191791b28c364517 | [
"MIT"
] | null | null | null | from data_structures.priority_queue import PriorityQueue
def test_priority_queue_init():
pq = PriorityQueue(lambda x: x[1])
assert isinstance(pq, PriorityQueue)
def test_priority_queue_init_from_list():
lst = [5, 2, 1, 4, 0]
pq = PriorityQueue(items=lst)
assert pq.pop() == 0
assert pq.pop() ... | 20.26 | 56 | 0.607108 | 155 | 1,013 | 3.825806 | 0.232258 | 0.148398 | 0.111298 | 0.168634 | 0.478921 | 0.445194 | 0.192243 | 0.192243 | 0.192243 | 0.192243 | 0 | 0.040576 | 0.245805 | 1,013 | 49 | 57 | 20.673469 | 0.735602 | 0 | 0 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.315789 | 1 | 0.131579 | false | 0 | 0.026316 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5e55b21d1ab9ce6033e3a2f3c3ccb88676bb11c5 | 1,727 | py | Python | coursera/stanford-algo/min-cuts/mincut.py | akras14/cs-101 | 5a836482ae0cca21fea2d8b1ca4be43a6c5e9562 | [
"MIT"
] | null | null | null | coursera/stanford-algo/min-cuts/mincut.py | akras14/cs-101 | 5a836482ae0cca21fea2d8b1ca4be43a6c5e9562 | [
"MIT"
] | null | null | null | coursera/stanford-algo/min-cuts/mincut.py | akras14/cs-101 | 5a836482ae0cca21fea2d8b1ca4be43a6c5e9562 | [
"MIT"
] | null | null | null | startData = [
[1,2,3],
[2,1,3,4],
[3,1,2,4],
[4,3,2]
]
import random
import time
from copy import deepcopy
def getRandomRowAndColumn(data):
rowIndex = random.randint(0, len(data) - 1)
row = data[rowIndex]
columnIndex = random.randint(1, len(row) - 1) # Ignore first value - Node label
r... | 26.166667 | 83 | 0.56051 | 218 | 1,727 | 4.440367 | 0.362385 | 0.061983 | 0.071281 | 0.018595 | 0.047521 | 0.047521 | 0.047521 | 0.047521 | 0 | 0 | 0 | 0.028696 | 0.334105 | 1,727 | 65 | 84 | 26.569231 | 0.813043 | 0.110596 | 0 | 0.04 | 0 | 0 | 0.006545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.06 | null | null | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5e58a177d8cfb0fa81f755e061bcf1af44838c07 | 13,224 | py | Python | health_app/HealthMonitor/CreateTable/CreateTableUserdata.py | FridayGao97/Web_Dev_Flask | 8580d645385055517fa007d6249d10f56a693782 | [
"MIT"
] | null | null | null | health_app/HealthMonitor/CreateTable/CreateTableUserdata.py | FridayGao97/Web_Dev_Flask | 8580d645385055517fa007d6249d10f56a693782 | [
"MIT"
] | null | null | null | health_app/HealthMonitor/CreateTable/CreateTableUserdata.py | FridayGao97/Web_Dev_Flask | 8580d645385055517fa007d6249d10f56a693782 | [
"MIT"
] | null | null | null | # Run this script to create 'userdata' table in DynamoDB
import boto3
def create_userdata_table(dynamodb=None):
if not dynamodb:
dynamodb = boto3.resource('dynamodb', region_name='us-east-1')
table = dynamodb.create_table(
TableName='userdata',
KeySchema=[
{
... | 30.969555 | 70 | 0.299531 | 470 | 13,224 | 8.344681 | 0.180851 | 0.082611 | 0.081591 | 0.134625 | 0.523967 | 0.523967 | 0.523967 | 0.523967 | 0.523967 | 0.523967 | 0 | 0.007295 | 0.595735 | 13,224 | 427 | 71 | 30.969555 | 0.726337 | 0.005823 | 0 | 0.43943 | 0 | 0 | 0.272444 | 0.025563 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002375 | false | 0 | 0.002375 | 0 | 0.007126 | 0.002375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5e5c585bbd132c00feba3669f5098a05809df38e | 357 | py | Python | django_amis_render/migrations/0003_remove_amisrenderlist_temp_json_url_name.py | Jiangshan00001/django_amis_render | f84d288d141853f0c0c0124889db47ef18f6ef5d | [
"MIT"
] | null | null | null | django_amis_render/migrations/0003_remove_amisrenderlist_temp_json_url_name.py | Jiangshan00001/django_amis_render | f84d288d141853f0c0c0124889db47ef18f6ef5d | [
"MIT"
] | null | null | null | django_amis_render/migrations/0003_remove_amisrenderlist_temp_json_url_name.py | Jiangshan00001/django_amis_render | f84d288d141853f0c0c0124889db47ef18f6ef5d | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-11-15 07:55
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('django_amis_render', '0002_auto_20211115_1543'),
]
operations = [
migrations.RemoveField(
model_name='amisrenderlist',
name='t... | 19.833333 | 58 | 0.627451 | 39 | 357 | 5.512821 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 0.271709 | 357 | 17 | 59 | 21 | 0.711538 | 0.120448 | 0 | 0 | 1 | 0 | 0.233974 | 0.073718 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5e5cca2628bc99a274fb6f1ffb0c638e6840ca20 | 696 | py | Python | app/db.py | SynapseFI/misc.slackbot | 98ea74d04a51ead64390436e1f6e0c21185b61b0 | [
"MIT"
] | 4 | 2016-11-30T04:11:18.000Z | 2017-10-03T00:19:00.000Z | app/db.py | SynapseFI/misc.slackbot | 98ea74d04a51ead64390436e1f6e0c21185b61b0 | [
"MIT"
] | null | null | null | app/db.py | SynapseFI/misc.slackbot | 98ea74d04a51ead64390436e1f6e0c21185b61b0 | [
"MIT"
] | 2 | 2017-10-02T23:39:34.000Z | 2020-12-13T12:19:46.000Z | """Database initialization settings and logic."""
from flask_sqlalchemy import SQLAlchemy
def connect_db(**kwargs):
"""Link the app database to a postgres db with the supplied info."""
db_uri = 'postgresql://{0}:{1}@{2}:{3}/{4}'.format(kwargs.get('username'),
... | 43.5 | 78 | 0.46408 | 66 | 696 | 4.80303 | 0.560606 | 0.170347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012225 | 0.412356 | 696 | 15 | 79 | 46.4 | 0.762836 | 0.152299 | 0 | 0 | 0 | 0 | 0.15544 | 0.094991 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.090909 | 0.090909 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5e6afe6c75dc3da2ab00b95273ea01c0fb3c79bc | 882 | py | Python | python/add_user.py | d2iq-shadowbq/FreeIPA-Configuration | be8ffba8ae9f316e8f4126a6d64a04f92df91d47 | [
"MIT"
] | 1 | 2020-05-13T16:19:53.000Z | 2020-05-13T16:19:53.000Z | python/add_user.py | d2iq-shadowbq/FreeIPA-Configuration | be8ffba8ae9f316e8f4126a6d64a04f92df91d47 | [
"MIT"
] | null | null | null | python/add_user.py | d2iq-shadowbq/FreeIPA-Configuration | be8ffba8ae9f316e8f4126a6d64a04f92df91d47 | [
"MIT"
] | null | null | null | from python_freeipa import ClientMeta
CommonTestPassword = 'Secret123'
client = ClientMeta('ipa.demo1.freeipa.org')
client.login('admin', CommonTestPassword)
Userlist = ['alice', 'bob', 'dave', 'frank']
# Reset, Add Users, and Set Manager
for user in UserList:
client.user_del(user, o_continue=True)
client.u... | 27.5625 | 150 | 0.735828 | 120 | 882 | 5.233333 | 0.391667 | 0.08758 | 0.111465 | 0.095541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015444 | 0.119048 | 882 | 31 | 151 | 28.451613 | 0.792793 | 0.082766 | 0 | 0 | 0 | 0 | 0.171856 | 0.026152 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5e6e03ad5146f8d52146de51d9181e23329b8bae | 2,564 | py | Python | resilience/constraints/HFLeverageConstraint.py | vishalbelsare/resilience | 596a9b8224fc6168bd6ee5718ea6c57425b7f273 | [
"Apache-2.0"
] | 7 | 2020-04-04T20:55:21.000Z | 2021-11-15T10:42:44.000Z | resilience/constraints/HFLeverageConstraint.py | vishalbelsare/resilience | 596a9b8224fc6168bd6ee5718ea6c57425b7f273 | [
"Apache-2.0"
] | 1 | 2020-06-19T04:26:35.000Z | 2020-09-25T04:50:00.000Z | resilience/constraints/HFLeverageConstraint.py | vishalbelsare/resilience | 596a9b8224fc6168bd6ee5718ea6c57425b7f273 | [
"Apache-2.0"
] | 4 | 2020-04-16T19:10:33.000Z | 2020-09-24T17:54:21.000Z | import numpy as np
from ..contracts import TradableAsset, AssetCollateral, Repo, Other
class HFLeverageConstraint(object):
r"""
Hedge fund's leverage constraint is calculated just like bank's except that
the params differ for each hedge fund. Additionally, an effective minimum
leverage is used to cal... | 38.268657 | 113 | 0.656396 | 334 | 2,564 | 4.784431 | 0.311377 | 0.033792 | 0.02816 | 0.071965 | 0.185857 | 0.12766 | 0.108886 | 0.108886 | 0.108886 | 0.108886 | 0 | 0.00843 | 0.25975 | 2,564 | 66 | 114 | 38.848485 | 0.833509 | 0.153276 | 0 | 0.148936 | 0 | 0 | 0.005605 | 0 | 0 | 0 | 0 | 0.015152 | 0.021277 | 1 | 0.12766 | false | 0 | 0.042553 | 0.021277 | 0.382979 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5e79c30cf8cd63253e284a2f0c81cf1024810ba3 | 1,229 | py | Python | Programming_in_Python/open-multiple-links-with-python/main.py | CodeWithEmad/Mini_Python_Projects | 4fd20328d7bd520fa007f21fa2602c8f40fd6cb1 | [
"MIT"
] | 2 | 2021-10-01T05:04:30.000Z | 2021-10-01T05:06:21.000Z | Programming_in_Python/open-multiple-links-with-python/main.py | CodeWithEmad/Mini_Python_Projects | 4fd20328d7bd520fa007f21fa2602c8f40fd6cb1 | [
"MIT"
] | 1 | 2021-10-09T18:22:23.000Z | 2021-10-09T23:00:31.000Z | Programming_in_Python/open-multiple-links-with-python/main.py | CodeWithEmad/Mini_Python_Projects | 4fd20328d7bd520fa007f21fa2602c8f40fd6cb1 | [
"MIT"
] | null | null | null | import selenium
import time
from selenium import webdriver
from selenium.webdriver import ActionChains
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDri... | 29.97561 | 83 | 0.728234 | 174 | 1,229 | 5.057471 | 0.471264 | 0.095455 | 0.119318 | 0.095455 | 0.081818 | 0.081818 | 0 | 0 | 0 | 0 | 0 | 0.003984 | 0.183076 | 1,229 | 40 | 84 | 30.725 | 0.87251 | 0.18633 | 0 | 0 | 0 | 0 | 0.103992 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.36 | 0 | 0.36 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5e7c984aa9af7370242c6d3b221d93fefb668b20 | 317 | py | Python | wsi/model/__init__.py | mingrui/NCRF | d3dcb50739a9eb8621d42ea98b7d0496afe430ca | [
"Apache-2.0"
] | 734 | 2018-06-18T17:15:53.000Z | 2022-03-28T08:51:14.000Z | wsi/model/__init__.py | mingrui/NCRF | d3dcb50739a9eb8621d42ea98b7d0496afe430ca | [
"Apache-2.0"
] | 59 | 2018-06-22T04:21:27.000Z | 2022-03-11T23:21:10.000Z | wsi/model/__init__.py | mingrui/NCRF | d3dcb50739a9eb8621d42ea98b7d0496afe430ca | [
"Apache-2.0"
] | 197 | 2018-06-18T17:15:10.000Z | 2022-03-04T03:36:48.000Z | import numpy as np
np.random.seed(0)
from wsi.model.resnet import (resnet18, resnet34, resnet50, resnet101,
resnet152)
MODELS = {'resnet18': resnet18,
'resnet34': resnet34,
'resnet50': resnet50,
'resnet101': resnet101,
'resnet152': resnet152}
| 22.642857 | 70 | 0.580442 | 29 | 317 | 6.344828 | 0.586207 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169725 | 0.312303 | 317 | 13 | 71 | 24.384615 | 0.674312 | 0 | 0 | 0 | 0 | 0 | 0.132492 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5e891244c5b394cace8ef44c165692023ed4d407 | 2,820 | py | Python | customer/migrations/0001_initial.py | neonexchange/psp_template | c81fc831c1f31db00b29c4f016d073e66866f09b | [
"MIT"
] | 5 | 2018-03-02T09:36:41.000Z | 2018-05-09T15:12:53.000Z | customer/migrations/0001_initial.py | neonexchange/psp_template | c81fc831c1f31db00b29c4f016d073e66866f09b | [
"MIT"
] | null | null | null | customer/migrations/0001_initial.py | neonexchange/psp_template | c81fc831c1f31db00b29c4f016d073e66866f09b | [
"MIT"
] | null | null | null | # Generated by Django 2.0 on 2018-01-18 22:49
from django.db import migrations, models
import localflavor.us.models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0009_alter_user_last_name_max_length'),
]
operations = [
migrations.CreateModel(
... | 53.207547 | 181 | 0.563475 | 279 | 2,820 | 5.505376 | 0.44086 | 0.070313 | 0.070313 | 0.09375 | 0.182292 | 0.147135 | 0.057292 | 0.057292 | 0.057292 | 0.057292 | 0 | 0.023292 | 0.314894 | 2,820 | 52 | 182 | 54.230769 | 0.771739 | 0.015248 | 0 | 0 | 1 | 0 | 0.207207 | 0.012973 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.044444 | 0.044444 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5e9092a8c19098c651d6e9f4be58261f6e77a5e3 | 438 | py | Python | api/migrations/0002_auto_20210624_2254.py | Zimodra/yamdb_final | b6bb7e5b92a09604b441e9111bd52ecb459ffaba | [
"MIT"
] | null | null | null | api/migrations/0002_auto_20210624_2254.py | Zimodra/yamdb_final | b6bb7e5b92a09604b441e9111bd52ecb459ffaba | [
"MIT"
] | null | null | null | api/migrations/0002_auto_20210624_2254.py | Zimodra/yamdb_final | b6bb7e5b92a09604b441e9111bd52ecb459ffaba | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2021-06-24 22:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='title',
name='genre',
field=m... | 23.052632 | 119 | 0.607306 | 49 | 438 | 5.346939 | 0.77551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058642 | 0.260274 | 438 | 18 | 120 | 24.333333 | 0.75 | 0.10274 | 0 | 0 | 1 | 0 | 0.132992 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5e91d2502c6c2d35ca1d08e26a83d6d1e5097bf7 | 279 | py | Python | pyexlatex/presentation/beamer/frame/title.py | whoopnip/py-ex-latex | 66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6 | [
"MIT"
] | 4 | 2020-06-08T07:17:12.000Z | 2021-11-04T21:39:52.000Z | pyexlatex/presentation/beamer/frame/title.py | nickderobertis/py-ex-latex | 66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6 | [
"MIT"
] | 24 | 2020-02-17T17:20:44.000Z | 2021-12-20T00:10:19.000Z | pyexlatex/presentation/beamer/frame/title.py | nickderobertis/py-ex-latex | 66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6 | [
"MIT"
] | null | null | null | from typing import Optional
from pyexlatex.models.item import SimpleItem
class FrameTitle(SimpleItem):
name = 'frametitle'
def __init__(self, title: str, modifiers: Optional[str] = None):
self.title = title
super().__init__(self.name, title, modifiers) | 27.9 | 68 | 0.709677 | 33 | 279 | 5.757576 | 0.575758 | 0.084211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189964 | 279 | 10 | 69 | 27.9 | 0.840708 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5e934e4e9c27193d4b838f787701c5a3d73f411c | 541 | py | Python | setup.py | BotBotMe/botbot-plugins | 075ae29bb8c534a1b33baebf36a5fcc0d4398b58 | [
"BSD-3-Clause"
] | 21 | 2015-01-17T15:39:43.000Z | 2021-08-04T01:56:31.000Z | setup.py | Pavel-Sayekat/botbot-plugins | 075ae29bb8c534a1b33baebf36a5fcc0d4398b58 | [
"BSD-3-Clause"
] | 7 | 2015-01-12T02:34:54.000Z | 2018-01-21T22:07:47.000Z | setup.py | Pavel-Sayekat/botbot-plugins | 075ae29bb8c534a1b33baebf36a5fcc0d4398b58 | [
"BSD-3-Clause"
] | 18 | 2015-01-12T02:37:47.000Z | 2018-09-22T15:30:29.000Z | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='botbot_plugins',
version='1.0',
description="Plugins and service integrations for BotBot.me",
author="Lincoln Loop",
author_email='info@lincolnloop.com',
url='https://github.com/lincolnloop/botbot_plugins',
packa... | 25.761905 | 65 | 0.622921 | 69 | 541 | 4.797101 | 0.681159 | 0.072508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044186 | 0.205176 | 541 | 20 | 66 | 27.05 | 0.725581 | 0.036969 | 0 | 0 | 0 | 0 | 0.442308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5e9b7c8ac0576658c37611fd876c771aab62e2e1 | 2,106 | py | Python | mpchctrackinfo/hook.py | mFoxRU/mpc-hc-trackinfo | 5539627a623a8beb08ae8167fa328e9ca14340ea | [
"MIT"
] | 1 | 2016-09-11T04:30:06.000Z | 2016-09-11T04:30:06.000Z | mpchctrackinfo/hook.py | mFoxRU/mpc-hc-trackinfo | 5539627a623a8beb08ae8167fa328e9ca14340ea | [
"MIT"
] | null | null | null | mpchctrackinfo/hook.py | mFoxRU/mpc-hc-trackinfo | 5539627a623a8beb08ae8167fa328e9ca14340ea | [
"MIT"
] | null | null | null | __author__ = 'mFoxRU'
from time import sleep
from win32gui import (FindWindow, EnumChildWindows, GetClassName,
GetWindowText, IsWindow)
class Hook(object):
def __init__(
self,
window='MediaPlayerClassicW',
class_name='#32770',
fields=('Title... | 31.432836 | 80 | 0.565527 | 228 | 2,106 | 4.934211 | 0.328947 | 0.037333 | 0.029333 | 0.028444 | 0.097778 | 0.062222 | 0 | 0 | 0 | 0 | 0 | 0.013788 | 0.345679 | 2,106 | 66 | 81 | 31.909091 | 0.802612 | 0.04226 | 0 | 0.207547 | 0 | 0 | 0.026316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.018868 | 0.037736 | null | null | 0.018868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5e9e205e4a5313490443b84c0deb7fd72d130bbe | 2,307 | py | Python | src/server.py | alextbok/deployable-scraper-api | 9d1f5819c74293f6d95bbf7b64897931ffc90c8e | [
"Apache-2.0"
] | 1 | 2015-01-30T03:27:22.000Z | 2015-01-30T03:27:22.000Z | src/server.py | alextbok/deployable-scraper-api | 9d1f5819c74293f6d95bbf7b64897931ffc90c8e | [
"Apache-2.0"
] | null | null | null | src/server.py | alextbok/deployable-scraper-api | 9d1f5819c74293f6d95bbf7b64897931ffc90c8e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
from SocketServer import ThreadingMixIn
import threading
import urlparse
from endpoint import Endpoint
from config import Parser
CONFIG_PATH = '../config/config.yaml'
class Server(object):
def __init__(self):
parser = Parser(CONFIG_P... | 25.076087 | 66 | 0.691808 | 285 | 2,307 | 5.368421 | 0.326316 | 0.067974 | 0.036601 | 0.020915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001554 | 0.163416 | 2,307 | 91 | 67 | 25.351648 | 0.791192 | 0.006935 | 0 | 0.030769 | 0 | 0 | 0.13061 | 0.009425 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.092308 | null | null | 0.030769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ea1798f91ee38f995fef76c2802897a9c6e8ae0 | 2,212 | py | Python | related_entropy.py | 9b/malpdfobj | 91e1b4537dda61a6c20f8186b13fe87a0a37ecb5 | [
"MIT"
] | 29 | 2015-02-16T08:22:14.000Z | 2022-02-01T09:33:35.000Z | related_entropy.py | 9b/malpdfobj | 91e1b4537dda61a6c20f8186b13fe87a0a37ecb5 | [
"MIT"
] | null | null | null | related_entropy.py | 9b/malpdfobj | 91e1b4537dda61a6c20f8186b13fe87a0a37ecb5 | [
"MIT"
] | 8 | 2016-02-09T16:21:55.000Z | 2020-11-18T09:08:32.000Z | import math
import json
import os
import optparse
def H(data):
entropy = 0
for x in range(256):
p_x = float(data.count(chr(x)))/len(data)
if p_x > 0:
entropy += - p_x*math.log(p_x, 2)
return entropy
def bytes_from_file(filename, chunksize... | 27.308642 | 92 | 0.417722 | 235 | 2,212 | 3.829787 | 0.340426 | 0.008889 | 0.028889 | 0.028889 | 0.077778 | 0.077778 | 0.077778 | 0.077778 | 0.077778 | 0.077778 | 0 | 0.024957 | 0.474684 | 2,212 | 80 | 93 | 27.65 | 0.74957 | 0 | 0 | 0.176471 | 0 | 0 | 0.020344 | 0.011302 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ea974a5486e0838fd0233122ecdd398fad7f25f | 928 | py | Python | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/site_configuration/migrations/0004_add_site_values_field.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 3 | 2021-12-15T04:58:18.000Z | 2022-02-06T12:15:37.000Z | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/site_configuration/migrations/0004_add_site_values_field.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | null | null | null | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/site_configuration/migrations/0004_add_site_values_field.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 1 | 2019-01-02T14:38:50.000Z | 2019-01-02T14:38:50.000Z | # Generated by Django 1.11.28 on 2020-02-19 16:50
import collections
import jsonfield.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('site_configuration', '0003_auto_20200217_1058'),
]
operations = [
migrations.AddField(
mo... | 33.142857 | 209 | 0.661638 | 92 | 928 | 6.5 | 0.554348 | 0.075251 | 0.076923 | 0.090301 | 0.498328 | 0.498328 | 0.498328 | 0.498328 | 0.498328 | 0.324415 | 0 | 0.044595 | 0.202586 | 928 | 27 | 210 | 34.37037 | 0.763514 | 0.050647 | 0 | 0.315789 | 1 | 0 | 0.191126 | 0.05347 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5eaa41b5ba5c1b8a725e3ec84cce0eac16b60635 | 7,603 | py | Python | diagnostics/diagnostic_common_diagnostics/src/diagnostic_common_diagnostics/ntp_monitor.py | zhj-buffer/ROS2-driver-for-Realsense | 936cf27be4e7dc3d699ff99499e72ea8638cc622 | [
"Apache-2.0"
] | 2 | 2021-07-14T12:33:55.000Z | 2021-11-21T07:14:13.000Z | melodic/src/diagnostics/diagnostic_common_diagnostics/src/diagnostic_common_diagnostics/ntp_monitor.py | disorn-inc/ROS-melodic-python3-Opencv-4.1.1-CUDA | 3d265bb64712e3cd7dfa0ad56d78fcdebafdb4b0 | [
"BSD-3-Clause"
] | 1 | 2021-07-08T10:26:06.000Z | 2021-07-08T10:31:11.000Z | melodic/src/diagnostics/diagnostic_common_diagnostics/src/diagnostic_common_diagnostics/ntp_monitor.py | disorn-inc/ROS-melodic-python3-Opencv-4.1.1-CUDA | 3d265bb64712e3cd7dfa0ad56d78fcdebafdb4b0 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Software License Agreement (BSD License)
#
# Copyright (c) 2008, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redist... | 38.790816 | 93 | 0.639484 | 945 | 7,603 | 5.02328 | 0.310053 | 0.032442 | 0.017695 | 0.022751 | 0.259322 | 0.211923 | 0.155888 | 0.107858 | 0.107858 | 0.08932 | 0 | 0.008892 | 0.260424 | 7,603 | 195 | 94 | 38.989744 | 0.835319 | 0.21531 | 0 | 0.161538 | 0 | 0 | 0.138931 | 0.012814 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015385 | 0.084615 | null | null | 0.007692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5eaa87d463aba065e90433c5bc1e27fa235627ad | 1,135 | py | Python | dataprocess.py | gushu333/DA4NMT | dba52a3d3784cd795b6f9aaf655b63475a848798 | [
"Apache-2.0"
] | 1 | 2018-08-25T13:35:02.000Z | 2018-08-25T13:35:02.000Z | dataprocess.py | gushu333/DA4NMT | dba52a3d3784cd795b6f9aaf655b63475a848798 | [
"Apache-2.0"
] | null | null | null | dataprocess.py | gushu333/DA4NMT | dba52a3d3784cd795b6f9aaf655b63475a848798 | [
"Apache-2.0"
] | null | null | null | import argparse as ap
parser = ap.ArgumentParser(description='delete the blank line and keep sequence length less than 50')
parser.add_argument('--input1', type=str)
parser.add_argument('--input2', type=str)
#parser.add_argument('--output', type=str, default=str + ".less50")
parser.add_argument('--encoding',... | 35.46875 | 108 | 0.663436 | 165 | 1,135 | 4.533333 | 0.345455 | 0.080214 | 0.090909 | 0.042781 | 0.342246 | 0.21123 | 0.128342 | 0.128342 | 0.128342 | 0.128342 | 0 | 0.067992 | 0.157709 | 1,135 | 31 | 109 | 36.612903 | 0.714435 | 0.05815 | 0 | 0.153846 | 0 | 0 | 0.123433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.115385 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ead1fa1ac98ccb096f19b374bfc58038b3838ec | 20,969 | py | Python | src/genie/libs/parser/iosxe/show_ppp.py | nielsvanhooy/genieparser | 9a1955749697a6777ca614f0af4d5f3a2c254ccd | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxe/show_ppp.py | nielsvanhooy/genieparser | 9a1955749697a6777ca614f0af4d5f3a2c254ccd | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxe/show_ppp.py | nielsvanhooy/genieparser | 9a1955749697a6777ca614f0af4d5f3a2c254ccd | [
"Apache-2.0"
] | null | null | null | """show_PPP.py
IOSXE parsers for the following show commands:
* 'show ppp statistics'
"""
# Python
import re
# Metaparser
from genie.metaparser import MetaParser
from genie.metaparser.util.schemaengine import Schema, Optional
# import parser utils
from genie.libs.parser.utils.common import Common
class ShowPppSt... | 38.264599 | 84 | 0.409414 | 1,989 | 20,969 | 4.191051 | 0.089995 | 0.077735 | 0.028791 | 0.03167 | 0.790907 | 0.752279 | 0.607126 | 0.508997 | 0.401512 | 0.265955 | 0 | 0.025806 | 0.460394 | 20,969 | 547 | 85 | 38.334552 | 0.710915 | 0.163003 | 0 | 0.604706 | 0 | 0 | 0.230394 | 0.05595 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002353 | false | 0 | 0.009412 | 0 | 0.023529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5eae6de4f3755423f0ab73b4087cbfc0386ab861 | 1,046 | py | Python | figS3/plot.py | andim/paper-bayesimmune | d8e394d0beb1f15c5f488a79a46e77143d2e017e | [
"MIT"
] | null | null | null | figS3/plot.py | andim/paper-bayesimmune | d8e394d0beb1f15c5f488a79a46e77143d2e017e | [
"MIT"
] | null | null | null | figS3/plot.py | andim/paper-bayesimmune | d8e394d0beb1f15c5f488a79a46e77143d2e017e | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import scipy.special
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
plt.style.use(['../optdynim.mplstyle'])
import palettable
import sys
sys.path.append('../lib')
import optdynlib
import plotting
import misc
df = misc.loadnpz('data/data.npz')
df['tauc']... | 27.526316 | 117 | 0.673996 | 182 | 1,046 | 3.813187 | 0.521978 | 0.028818 | 0.020173 | 0.0317 | 0.04611 | 0.04611 | 0 | 0 | 0 | 0 | 0 | 0.037118 | 0.124283 | 1,046 | 37 | 118 | 28.27027 | 0.720524 | 0 | 0 | 0.0625 | 0 | 0 | 0.16348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5eaf2f860b2a78625d7dbcd11d01486b20f6661e | 1,864 | py | Python | application/modules/registration.py | BaggerFast/Simple_votings | 843769fa6fd2c04feb542e6b301b7b4810260d4e | [
"MIT"
] | null | null | null | application/modules/registration.py | BaggerFast/Simple_votings | 843769fa6fd2c04feb542e6b301b7b4810260d4e | [
"MIT"
] | null | null | null | application/modules/registration.py | BaggerFast/Simple_votings | 843769fa6fd2c04feb542e6b301b7b4810260d4e | [
"MIT"
] | null | null | null | from django.contrib import messages
from django.contrib.auth import login
from django.contrib.auth.models import User
from django.shortcuts import render, redirect
from django.urls import reverse
from django.views import View
from application.forms import RegistrationForm
from application.views import get_navbar, Page
... | 42.363636 | 105 | 0.612124 | 199 | 1,864 | 5.628141 | 0.351759 | 0.06875 | 0.045536 | 0.0375 | 0.230357 | 0.230357 | 0.230357 | 0.078571 | 0 | 0 | 0 | 0 | 0.282725 | 1,864 | 43 | 106 | 43.348837 | 0.837696 | 0 | 0 | 0.153846 | 0 | 0 | 0.125536 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.205128 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5eb5b8ff8b16c931358c38d5d6013b24e219911a | 985 | py | Python | falmer/featured/mutations.py | sussexstudent/services-api | ae735bd9d6177002c3d986e5c19a78102233308f | [
"MIT"
] | 2 | 2017-04-27T19:35:59.000Z | 2017-06-13T16:19:33.000Z | falmer/featured/mutations.py | sussexstudent/falmer | ae735bd9d6177002c3d986e5c19a78102233308f | [
"MIT"
] | 975 | 2017-04-13T11:31:07.000Z | 2022-02-10T07:46:18.000Z | falmer/featured/mutations.py | sussexstudent/services-api | ae735bd9d6177002c3d986e5c19a78102233308f | [
"MIT"
] | 3 | 2018-05-09T06:42:25.000Z | 2020-12-10T18:29:30.000Z | import graphene
from . import types
from . import models
from graphene.types.generic import GenericScalar
class SlateInput(graphene.InputObjectType):
data = GenericScalar(required=True)
class UpdateSlate(graphene.Mutation):
class Arguments:
slate_id = graphene.Int(required=True)
data = Slate... | 25.921053 | 67 | 0.651777 | 111 | 985 | 5.72973 | 0.486486 | 0.056604 | 0.059748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252792 | 985 | 37 | 68 | 26.621622 | 0.86413 | 0 | 0 | 0 | 0 | 0 | 0.029442 | 0.02132 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.153846 | 0 | 0.576923 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5eb7fbf95fc89c585b7a5a754022701d49577a00 | 7,235 | py | Python | zarp/config/models.py | zavolanlab/zarp-cli | 61711139e55dba16151d0d624f2a4b93c44b0e0a | [
"Apache-2.0"
] | 4 | 2021-02-26T10:25:18.000Z | 2021-07-06T09:42:00.000Z | zarp/config/models.py | zavolanlab/zarp-cli | 61711139e55dba16151d0d624f2a4b93c44b0e0a | [
"Apache-2.0"
] | 23 | 2021-03-01T22:44:10.000Z | 2022-03-29T18:50:29.000Z | zarp/config/models.py | zavolanlab/zarp-cli | 61711139e55dba16151d0d624f2a4b93c44b0e0a | [
"Apache-2.0"
] | null | null | null | """Models and enumerators."""
from enum import Enum
from typing import (Optional, List, Tuple)
from pydantic import BaseModel # pylint: disable=no-name-in-module
# pylint: disable=too-few-public-methods
# Sample-specific enumerators and models
class SampleIds(BaseModel):
"""Sample identifiers and aliases.
... | 31.320346 | 79 | 0.673531 | 833 | 7,235 | 5.803121 | 0.236495 | 0.023169 | 0.043442 | 0.029789 | 0.482623 | 0.462143 | 0.438146 | 0.419942 | 0.407944 | 0.38312 | 0 | 0.001678 | 0.258466 | 7,235 | 230 | 80 | 31.456522 | 0.899348 | 0.668694 | 0 | 0 | 0 | 0 | 0.040512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.053571 | 0 | 0.928571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5ebffca8cd6561908205fab492db5573c047430d | 10,298 | py | Python | sdk/python/pulumi_alicloud/vpc/get_router_interfaces.py | pulumi/pulumi-alicloud | 9c34d84b4588a7c885c6bec1f03b5016e5a41683 | [
"ECL-2.0",
"Apache-2.0"
] | 42 | 2019-03-18T06:34:37.000Z | 2022-03-24T07:08:57.000Z | sdk/python/pulumi_alicloud/vpc/get_router_interfaces.py | pulumi/pulumi-alicloud | 9c34d84b4588a7c885c6bec1f03b5016e5a41683 | [
"ECL-2.0",
"Apache-2.0"
] | 152 | 2019-04-15T21:03:44.000Z | 2022-03-29T18:00:57.000Z | sdk/python/pulumi_alicloud/vpc/get_router_interfaces.py | pulumi/pulumi-alicloud | 9c34d84b4588a7c885c6bec1f03b5016e5a41683 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2020-08-26T17:30:07.000Z | 2021-07-05T01:37:45.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... | 40.703557 | 250 | 0.655176 | 1,185 | 10,298 | 5.421097 | 0.156962 | 0.07939 | 0.044365 | 0.05604 | 0.302304 | 0.200809 | 0.134184 | 0.077366 | 0.03736 | 0.025841 | 0 | 0.002443 | 0.244902 | 10,298 | 252 | 251 | 40.865079 | 0.823688 | 0.220237 | 0 | 0.121951 | 1 | 0 | 0.153254 | 0.048259 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097561 | false | 0 | 0.036585 | 0.012195 | 0.237805 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ec7930b8c6c3894092804aae53648cb722fdd7b | 751 | py | Python | optimal_transport_morphometry/core/admin/preprocess.py | girder/otm-server | 7abfe9c2d659c962784e28058d8f9a8ffc1f4991 | [
"Apache-2.0"
] | null | null | null | optimal_transport_morphometry/core/admin/preprocess.py | girder/otm-server | 7abfe9c2d659c962784e28058d8f9a8ffc1f4991 | [
"Apache-2.0"
] | 5 | 2022-03-10T19:39:22.000Z | 2022-03-17T21:05:10.000Z | optimal_transport_morphometry/core/admin/preprocess.py | girder/otm-server | 7abfe9c2d659c962784e28058d8f9a8ffc1f4991 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from optimal_transport_morphometry.core.models import (
FeatureImage,
JacobianImage,
RegisteredImage,
SegmentedImage,
)
class CommonAdmin(admin.ModelAdmin):
list_display = ['id', 'atlas', 'blob', 'source_image']
list_display_links = ['id']
@admin.register(Ja... | 22.088235 | 67 | 0.768309 | 72 | 751 | 7.847222 | 0.486111 | 0.116814 | 0.116814 | 0.092035 | 0.116814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131824 | 751 | 33 | 68 | 22.757576 | 0.866564 | 0 | 0 | 0.090909 | 0 | 0 | 0.078562 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.090909 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5ece0c2516a45ad3f70b047cfd0764e7f4392af9 | 2,459 | py | Python | buildimages.py | scripsi/douglasreed.uk | be36e28f59f5542963b4cd36ed044ed07de7ebd8 | [
"MIT"
] | null | null | null | buildimages.py | scripsi/douglasreed.uk | be36e28f59f5542963b4cd36ed044ed07de7ebd8 | [
"MIT"
] | null | null | null | buildimages.py | scripsi/douglasreed.uk | be36e28f59f5542963b4cd36ed044ed07de7ebd8 | [
"MIT"
] | null | null | null | import os
from PIL import Image, ImageOps
artwork_dir = "./docs/artworks"
artwork_filename = "/artwork.jpg"
thumbnail_filename = "/thumbnail.jpg"
image_width_large = 2000
image_width_medium = 1000
image_width_small = 500
image_width_thumbnail = 300
save_as_jpg = True
save_as_webp = False
def save_image(output_image, ... | 40.983333 | 132 | 0.708825 | 322 | 2,459 | 5.149068 | 0.232919 | 0.072376 | 0.060314 | 0.026538 | 0.422195 | 0.422195 | 0.392039 | 0.392039 | 0.392039 | 0.288902 | 0 | 0.014035 | 0.188695 | 2,459 | 59 | 133 | 41.677966 | 0.817043 | 0 | 0 | 0.339286 | 0 | 0 | 0.089061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017857 | false | 0.071429 | 0.035714 | 0 | 0.071429 | 0.089286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5ed60a3c5caf9c5dba8bc4729025fb3ca0156ca4 | 7,057 | py | Python | Main.py | ShihaoWang/Contact-Transition-Tree | cf53aaea8a3a61d3eb92b96a6ca16a3b0c791afc | [
"MIT"
] | 2 | 2019-02-19T19:05:15.000Z | 2019-05-05T20:07:16.000Z | Main.py | ShihaoWang/Contact-Transition-Tree | cf53aaea8a3a61d3eb92b96a6ca16a3b0c791afc | [
"MIT"
] | null | null | null | Main.py | ShihaoWang/Contact-Transition-Tree | cf53aaea8a3a61d3eb92b96a6ca16a3b0c791afc | [
"MIT"
] | null | null | null | #!/usr/bin/python
# import osqp
import sys, os
from klampt import *
from klampt import vis
from klampt.vis.glrobotprogram import GLSimulationPlugin
import numpy as np
import string
import scipy as sp
import scipy.sparse as sparse
from klampt.model.trajectory import Trajectory
import time
import math
sys.path.insert(0... | 50.769784 | 176 | 0.700298 | 934 | 7,057 | 4.992505 | 0.259101 | 0.037744 | 0.040532 | 0.037744 | 0.28887 | 0.198156 | 0.187862 | 0.173708 | 0.138537 | 0.105083 | 0 | 0.002416 | 0.237495 | 7,057 | 138 | 177 | 51.137681 | 0.864152 | 0.313731 | 0 | 0.054054 | 0 | 0 | 0.071429 | 0.005249 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.283784 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0d5d5fe08b68a42bbf47cdd1e53e137159c13499 | 1,877 | py | Python | python/section12-2.py | loveactualry/fluffy-octo-disco | e111282895350e348c660d31c83c3133fcd57ada | [
"Apache-2.0"
] | null | null | null | python/section12-2.py | loveactualry/fluffy-octo-disco | e111282895350e348c660d31c83c3133fcd57ada | [
"Apache-2.0"
] | null | null | null | python/section12-2.py | loveactualry/fluffy-octo-disco | e111282895350e348c660d31c83c3133fcd57ada | [
"Apache-2.0"
] | null | null | null | # Section12-2
# 파이썬 데이터베이스 연동(SQLite)
import sqlite3
# DB 파일 조회(없으면 새로 생성)
conn = sqlite3.connect('C:/pythonbasic/resource/database.db') # 본인 db 경로
# 커서 바인딩
c = conn.cursor()
# 데이터 조회(전체)
#c.execute("SELECT * FROM users")
# 커서 위치가 변경
# 1개 로우 선택
#print('One -> \n', c.fetchone())
# 지정 로우 선택
#pr... | 22.082353 | 78 | 0.598295 | 289 | 1,877 | 3.885813 | 0.359862 | 0.072128 | 0.099733 | 0.128228 | 0.342832 | 0.257346 | 0.257346 | 0.15049 | 0.0935 | 0.0935 | 0 | 0.031886 | 0.214704 | 1,877 | 85 | 79 | 22.082353 | 0.729986 | 0.39105 | 0 | 0.142857 | 0 | 0 | 0.36239 | 0.065622 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.035714 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
0d63537c7a3acbbe4a440b749ad98860f8d066ce | 6,309 | py | Python | scripts/nagios/check_jmxproxy.py | mk23/jmxproxy-test | d5b8145eef2b05560a3e2879cb5f15cbf491e4a7 | [
"MIT"
] | 1 | 2016-08-24T07:57:30.000Z | 2016-08-24T07:57:30.000Z | scripts/nagios/check_jmxproxy.py | mk23/jmxproxy-test | d5b8145eef2b05560a3e2879cb5f15cbf491e4a7 | [
"MIT"
] | null | null | null | scripts/nagios/check_jmxproxy.py | mk23/jmxproxy-test | d5b8145eef2b05560a3e2879cb5f15cbf491e4a7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2.7
import argparse
import json
import re
import sys
import traceback
import urllib
import urllib2
SUCCESS, WARNING, CRITICAL, UNKNOWN = range(4)
ERRORS = dict((v, k) for k, v in vars(sys.modules[__name__]).items() if type(v) == int)
def lookup_val(host, port, expr, auth=None, proxy='http://loca... | 45.388489 | 189 | 0.570772 | 768 | 6,309 | 4.630208 | 0.22526 | 0.02784 | 0.047807 | 0.045276 | 0.421822 | 0.341395 | 0.265748 | 0.249719 | 0.241845 | 0.241845 | 0 | 0.011928 | 0.282454 | 6,309 | 138 | 190 | 45.717391 | 0.773581 | 0.003646 | 0 | 0.069565 | 0 | 0 | 0.179634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017391 | 0.06087 | null | null | 0.052174 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0d64a2a47538f87f2ae8c4d52adea915c9e65edb | 14,042 | py | Python | feature_mining/em_vector.py | nfreundlich/CS410_CourseProject | c50d0ff04472e48b0b59abe4467dc17d7c2cfab8 | [
"MIT"
] | null | null | null | feature_mining/em_vector.py | nfreundlich/CS410_CourseProject | c50d0ff04472e48b0b59abe4467dc17d7c2cfab8 | [
"MIT"
] | 18 | 2018-10-24T01:35:45.000Z | 2018-12-17T03:57:36.000Z | feature_mining/em_vector.py | nfreundlich/CS410_CourseProject | c50d0ff04472e48b0b59abe4467dc17d7c2cfab8 | [
"MIT"
] | null | null | null | import numpy as np
from scipy.sparse import csr_matrix
from feature_mining.em_base import ExpectationMaximization
class ExpectationMaximizationVector(ExpectationMaximization):
"""
Vectorized implementation of EM algorithm.
"""
def __init__(self, dump_path="../tests/data/em_01/"):
print(type(s... | 43.07362 | 127 | 0.543441 | 1,594 | 14,042 | 4.603513 | 0.151192 | 0.008449 | 0.007359 | 0.004906 | 0.274598 | 0.175116 | 0.119515 | 0.102071 | 0.085991 | 0.085991 | 0 | 0.016144 | 0.325096 | 14,042 | 326 | 128 | 43.07362 | 0.758151 | 0.22746 | 0 | 0.145985 | 0 | 0 | 0.038684 | 0.007119 | 0 | 0 | 0 | 0.021472 | 0 | 1 | 0.051095 | false | 0 | 0.058394 | 0 | 0.124088 | 0.072993 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0d69578c10d2634307c060bc1241b6dc2f5a2d74 | 556 | py | Python | geneal/applications/tsp/examples/world_capitals/_world_capitals.py | NeveIsa/geneal | 064b0409912088886bf56fe9a729d74dac92a235 | [
"MIT"
] | 47 | 2020-07-10T14:28:52.000Z | 2022-03-25T17:20:52.000Z | geneal/applications/tsp/examples/world_capitals/_world_capitals.py | NeveIsa/geneal | 064b0409912088886bf56fe9a729d74dac92a235 | [
"MIT"
] | 10 | 2020-08-08T16:35:40.000Z | 2022-03-08T00:07:19.000Z | geneal/applications/tsp/examples/world_capitals/_world_capitals.py | NeveIsa/geneal | 064b0409912088886bf56fe9a729d74dac92a235 | [
"MIT"
] | 14 | 2020-08-07T20:49:18.000Z | 2022-03-31T17:55:47.000Z | import os
import pandas as pd
try:
module_path = os.path.abspath(os.path.join("."))
world_capitals = pd.read_csv(os.path.join(module_path, "data/world_capitals.csv"))
except FileNotFoundError:
module_path = os.path.abspath(os.path.join(".."))
world_capitals = pd.read_csv(os.path.join(module_path, "da... | 27.8 | 86 | 0.751799 | 83 | 556 | 4.819277 | 0.373494 | 0.2925 | 0.1 | 0.08 | 0.475 | 0.475 | 0.475 | 0.475 | 0.475 | 0.475 | 0 | 0.004008 | 0.102518 | 556 | 19 | 87 | 29.263158 | 0.797595 | 0 | 0 | 0.166667 | 0 | 0 | 0.116906 | 0.082734 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0d707813321db46119d80b8013c2b030f2c67f56 | 1,278 | py | Python | tests/test_response_mockups.py | Shin--/django-sofortueberweisung | b410c358cbb3e3a3d047eedcff0a4046c493a7c7 | [
"MIT"
] | 3 | 2016-09-02T13:54:17.000Z | 2017-06-21T22:42:03.000Z | tests/test_response_mockups.py | Shin--/django-sofortueberweisung | b410c358cbb3e3a3d047eedcff0a4046c493a7c7 | [
"MIT"
] | 4 | 2017-01-19T10:09:15.000Z | 2019-10-28T10:39:40.000Z | tests/test_response_mockups.py | Shin--/django-sofortueberweisung | b410c358cbb3e3a3d047eedcff0a4046c493a7c7 | [
"MIT"
] | 3 | 2017-11-07T10:05:14.000Z | 2019-02-06T10:01:52.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.template.loader import render_to_string
from django.utils import timezone
def get_refund_transaction_valid(transaction_id):
return render_to_string(template_name='tests/transaction_refund.xml',
context={'transaction': transactio... | 51.12 | 173 | 0.676839 | 147 | 1,278 | 5.62585 | 0.346939 | 0.123337 | 0.084643 | 0.106409 | 0.481258 | 0.481258 | 0.481258 | 0.481258 | 0.481258 | 0.481258 | 0 | 0.027698 | 0.180751 | 1,278 | 24 | 174 | 53.25 | 0.762178 | 0.032864 | 0 | 0.125 | 0 | 0 | 0.328201 | 0.137763 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
0d7476879775d1d52aa3bcee7ee0cad81c8e65bd | 653 | py | Python | tests/sharepoint/test_client_side_component.py | rikeshtailor/Office365-REST-Python-Client | ca7bfa1b22212137bb4e984c0457632163e89a43 | [
"MIT"
] | 544 | 2016-08-04T17:10:16.000Z | 2022-03-31T07:17:20.000Z | tests/sharepoint/test_client_side_component.py | rikeshtailor/Office365-REST-Python-Client | ca7bfa1b22212137bb4e984c0457632163e89a43 | [
"MIT"
] | 438 | 2016-10-11T12:24:22.000Z | 2022-03-31T19:30:35.000Z | tests/sharepoint/test_client_side_component.py | rikeshtailor/Office365-REST-Python-Client | ca7bfa1b22212137bb4e984c0457632163e89a43 | [
"MIT"
] | 202 | 2016-08-22T19:29:40.000Z | 2022-03-30T20:26:15.000Z | from tests.sharepoint.sharepoint_case import SPTestCase
from office365.sharepoint.webs.web import Web
class TestClientSideComponent(SPTestCase):
target_web = None # type: Web
@classmethod
def setUpClass(cls):
super(TestClientSideComponent, cls).setUpClass()
def test1_get_all_client_side_co... | 31.095238 | 81 | 0.744257 | 78 | 653 | 5.948718 | 0.423077 | 0.086207 | 0.051724 | 0.068966 | 0.491379 | 0.385776 | 0 | 0 | 0 | 0 | 0 | 0.009191 | 0.166922 | 653 | 20 | 82 | 32.65 | 0.84375 | 0.269525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0d7dd31165140749f8c07152e6e2e3b6c074eab6 | 223 | py | Python | openscreenlapser/main.py | tybantarnusa/openscreenlapser | 686c731bd1c50c1f3e400ada6fe629b7debc6a9a | [
"Apache-2.0"
] | 1 | 2017-11-20T08:35:01.000Z | 2017-11-20T08:35:01.000Z | openscreenlapser/main.py | tybantarnusa/openscreenlapser | 686c731bd1c50c1f3e400ada6fe629b7debc6a9a | [
"Apache-2.0"
] | null | null | null | openscreenlapser/main.py | tybantarnusa/openscreenlapser | 686c731bd1c50c1f3e400ada6fe629b7debc6a9a | [
"Apache-2.0"
] | null | null | null | from aesthetic import main_window
from logic import capture
def main():
app = main_window.MainWindow()
app.after(1000, capture.instance.logicLoop, app)
app.mainloop()
if __name__ == '__main__':
main()
| 20.272727 | 52 | 0.695067 | 28 | 223 | 5.178571 | 0.607143 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022346 | 0.197309 | 223 | 11 | 53 | 20.272727 | 0.78771 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0d819bb7b839df183b133e4bb76bc64531f90d4a | 1,901 | py | Python | idconn/connectivity/estimateThresh.py | NBCLab/IDConn | 0677e372c02fe35be28f70567e71e040e1d2a023 | [
"MIT"
] | 1 | 2021-06-24T19:37:46.000Z | 2021-06-24T19:37:46.000Z | idconn/connectivity/estimateThresh.py | NBCLab/IDConn | 0677e372c02fe35be28f70567e71e040e1d2a023 | [
"MIT"
] | 3 | 2020-10-01T19:57:26.000Z | 2020-10-01T20:01:41.000Z | idconn/connectivity/estimateThresh.py | NBCLab/IDConn | 0677e372c02fe35be28f70567e71e040e1d2a023 | [
"MIT"
] | null | null | null | import numpy as np
import networkx as nx
import pandas as pd
import bct
task_networks(dset_dir, subject, session, task, event_related, conditions, runs, connectivity_metric, space, atlas, confounds)
for subject in subjects:
print(subject)
try:
for i in np.arange(0,len(sessions)):
print i
... | 45.261905 | 126 | 0.4808 | 196 | 1,901 | 4.581633 | 0.459184 | 0.013363 | 0.020045 | 0.024499 | 0.327394 | 0.296214 | 0.218263 | 0.218263 | 0.218263 | 0.091314 | 0 | 0.015152 | 0.444503 | 1,901 | 42 | 127 | 45.261905 | 0.835227 | 0.120463 | 0 | 0.060606 | 0 | 0 | 0.019796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.121212 | null | null | 0.121212 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0d8daca2b2d71b7a8855c2ded9597e6220e1a469 | 576 | py | Python | utils/model/get_model.py | CodingLooHee/stock-prediction | 8f0b1a4c34c738748a0be10f73e7a63808f2371b | [
"MIT"
] | null | null | null | utils/model/get_model.py | CodingLooHee/stock-prediction | 8f0b1a4c34c738748a0be10f73e7a63808f2371b | [
"MIT"
] | null | null | null | utils/model/get_model.py | CodingLooHee/stock-prediction | 8f0b1a4c34c738748a0be10f73e7a63808f2371b | [
"MIT"
] | null | null | null | import os as _os
_os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
from tensorflow import keras as _keras
def model_v1(input_shape: tuple):
model = _keras.Sequential()
model.add(_keras.layers.LSTM(64, input_shape=input_shape, activation='relu', return_sequences=True))
model.add(_keras.layers.Dropout(0.3))
mode... | 41.142857 | 104 | 0.730903 | 85 | 576 | 4.729412 | 0.505882 | 0.099502 | 0.161692 | 0.236318 | 0.300995 | 0.233831 | 0.233831 | 0.233831 | 0.233831 | 0.233831 | 0 | 0.021654 | 0.118056 | 576 | 13 | 105 | 44.307692 | 0.769685 | 0 | 0 | 0.166667 | 0 | 0 | 0.078125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0d904dc18a471dd3b6af487b503d01e92bd91a24 | 1,304 | py | Python | examples/basic/basic_extract_features.py | Tongjilibo/bert4torch | 71d5ffb3698730b16e5a252b06644a136787711e | [
"MIT"
] | 49 | 2022-03-15T07:28:16.000Z | 2022-03-31T07:16:15.000Z | examples/basic/basic_extract_features.py | Tongjilibo/bert4torch | 71d5ffb3698730b16e5a252b06644a136787711e | [
"MIT"
] | null | null | null | examples/basic/basic_extract_features.py | Tongjilibo/bert4torch | 71d5ffb3698730b16e5a252b06644a136787711e | [
"MIT"
] | null | null | null | #! -*- coding: utf-8 -*-
# 测试代码可用性: 提取特征
import torch
from bert4torch.models import build_transformer_model
from bert4torch.tokenizers import Tokenizer
root_model_path = "F:/Projects/pretrain_ckpt/bert/[google_tf_base]--chinese_L-12_H-768_A-12"
vocab_path = root_model_path + "/vocab.txt"
config_path = root_model_path... | 34.315789 | 92 | 0.69862 | 190 | 1,304 | 4.6 | 0.521053 | 0.04119 | 0.059497 | 0.058352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.282374 | 0.147239 | 1,304 | 38 | 93 | 34.315789 | 0.503597 | 0.044479 | 0 | 0 | 0 | 0 | 0.20191 | 0.098226 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0d910fd391e1e3916101e4b14a154a4e7e1bb28e | 4,472 | py | Python | Exec/debug/inspect_FAB.py | darylbond/cerberus | a1b99f6b50ba6876d4705f26e6be98ed6e1c5c6a | [
"MIT"
] | 5 | 2021-05-10T01:21:52.000Z | 2022-03-10T17:26:41.000Z | Exec/debug/inspect_FAB.py | darylbond/cerberus | a1b99f6b50ba6876d4705f26e6be98ed6e1c5c6a | [
"MIT"
] | 3 | 2021-05-26T01:12:12.000Z | 2021-12-14T00:34:06.000Z | Exec/debug/inspect_FAB.py | darylbond/cerberus | a1b99f6b50ba6876d4705f26e6be98ed6e1c5c6a | [
"MIT"
] | 3 | 2021-05-11T02:45:27.000Z | 2021-09-06T12:08:23.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Sep 20 05:46:07 2018
@author: uqdbond1
"""
import numpy as np
import re
import pylab as plt
import os, sys
np.set_printoptions(linewidth=1000)
#==============================================================================
#
#==============================================... | 23.661376 | 79 | 0.489714 | 652 | 4,472 | 3.279141 | 0.263804 | 0.032741 | 0.036483 | 0.023854 | 0.256782 | 0.198784 | 0.13985 | 0.13985 | 0.127222 | 0.127222 | 0 | 0.037202 | 0.296735 | 4,472 | 188 | 80 | 23.787234 | 0.642607 | 0.100626 | 0 | 0.099099 | 0 | 0 | 0.036789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.036036 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0d96cf3d5241eee40b7c9c8b48600b5b8db0b111 | 1,527 | py | Python | morpfw/authn/pas/apikey/model.py | morpframework/morpfw | b867e5809d6c52e8839586670a29fcd179ce64c7 | [
"Apache-2.0"
] | 8 | 2018-12-08T01:41:58.000Z | 2020-12-21T15:30:12.000Z | morpfw/authn/pas/apikey/model.py | morpframework/morpfw | b867e5809d6c52e8839586670a29fcd179ce64c7 | [
"Apache-2.0"
] | 17 | 2019-02-05T15:01:32.000Z | 2020-04-28T16:17:42.000Z | morpfw/authn/pas/apikey/model.py | morpframework/morpfw | b867e5809d6c52e8839586670a29fcd179ce64c7 | [
"Apache-2.0"
] | 2 | 2018-12-08T05:03:37.000Z | 2019-03-20T07:15:21.000Z | import hashlib
import secrets
from uuid import uuid4
import rulez
from morpfw.crud import Collection, Model, Schema
from ..app import App
from .schema import APIKeySchema
class APIKeyModel(Model):
schema = APIKeySchema
update_view_enabled = False
@property
def client_id(self):
return self["... | 28.277778 | 88 | 0.645711 | 182 | 1,527 | 5.296703 | 0.346154 | 0.065353 | 0.040456 | 0.045643 | 0.182573 | 0.182573 | 0.182573 | 0.09751 | 0.09751 | 0 | 0 | 0.010399 | 0.24427 | 1,527 | 53 | 89 | 28.811321 | 0.824957 | 0 | 0 | 0.097561 | 0 | 0 | 0.060904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146341 | false | 0 | 0.170732 | 0.02439 | 0.658537 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0d984b08ec5ee5ed4211e1f1a20144e423ac7488 | 970 | py | Python | experiments/scripts/benchmark.py | chrislybaer/huggingmolecules | 210239ac46b467e900a47e8f4520054636744ca6 | [
"Apache-2.0"
] | 60 | 2021-05-07T16:07:26.000Z | 2022-03-26T19:23:54.000Z | experiments/scripts/benchmark.py | gabegomes/huggingmolecules | adc581c97fbc21d9967dd9334afa94b22fb77651 | [
"Apache-2.0"
] | 11 | 2021-05-07T16:01:35.000Z | 2022-03-09T13:06:05.000Z | experiments/scripts/benchmark.py | gabegomes/huggingmolecules | adc581c97fbc21d9967dd9334afa94b22fb77651 | [
"Apache-2.0"
] | 12 | 2021-05-20T08:02:25.000Z | 2022-03-10T14:11:36.000Z | """
benchmark.py: this script performs a benchmark based on hyper-parameters tuning (grid-search).
For details see main README.md.
"""
if __name__ == "__main__":
import argparse
from experiments.src import tune_hyper
from experiments.src.benchmarking.benchmarking_benchmark_results import benchmark_result
... | 40.416667 | 115 | 0.757732 | 127 | 970 | 5.566929 | 0.527559 | 0.050919 | 0.076379 | 0.072136 | 0.120226 | 0.084866 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169072 | 970 | 23 | 116 | 42.173913 | 0.877171 | 0.419588 | 0 | 0 | 0 | 0 | 0.074141 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0d999c2c7289bdc61260b86041d431ef20b3a55c | 916 | py | Python | alerts/push/app.py | isabella232/mirandum | 758286dfef5801747cade7902bc234d14b85de52 | [
"Apache-2.0"
] | 14 | 2016-04-30T00:00:02.000Z | 2022-03-31T14:52:37.000Z | alerts/push/app.py | google/mirandum | 758286dfef5801747cade7902bc234d14b85de52 | [
"Apache-2.0"
] | 9 | 2016-05-03T12:30:09.000Z | 2018-09-10T01:46:02.000Z | alerts/push/app.py | isabella232/mirandum | 758286dfef5801747cade7902bc234d14b85de52 | [
"Apache-2.0"
] | 11 | 2016-04-30T08:12:07.000Z | 2021-10-21T04:25:41.000Z | from tornado import websocket, web, ioloop
import json
import time
clients = []
class SocketHandler(websocket.WebSocketHandler):
def check_origin(self, origin):
return True
def open(self, key=None):
self.key = key
if self not in clients:
clients.append(self)
def on_cl... | 20.818182 | 48 | 0.590611 | 111 | 916 | 4.765766 | 0.522523 | 0.05104 | 0.060491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009217 | 0.289301 | 916 | 43 | 49 | 21.302326 | 0.803379 | 0 | 0 | 0.058824 | 0 | 0 | 0.039301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.029412 | 0.088235 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0d9a3126b7e9a62cce813b3e08d0be070b4a7d1d | 11,410 | py | Python | mapzen/whosonfirst/validator/__init__.py | iandees/py-mapzen-whosonfirst-validator | 64bc526728b7c06796deb767fbdaa196cc630b5e | [
"BSD-3-Clause"
] | null | null | null | mapzen/whosonfirst/validator/__init__.py | iandees/py-mapzen-whosonfirst-validator | 64bc526728b7c06796deb767fbdaa196cc630b5e | [
"BSD-3-Clause"
] | null | null | null | mapzen/whosonfirst/validator/__init__.py | iandees/py-mapzen-whosonfirst-validator | 64bc526728b7c06796deb767fbdaa196cc630b5e | [
"BSD-3-Clause"
] | null | null | null | import sys
import os.path
import logging
import json
import geojson
import types
import mapzen.whosonfirst.export
import mapzen.whosonfirst.placetypes
import mapzen.whosonfirst.sources
import mapzen.whosonfirst.utils
class reporter:
def __init__(self):
self._debug_ = []
self._info_ = []
... | 29.407216 | 125 | 0.470903 | 1,184 | 11,410 | 4.412162 | 0.217061 | 0.030628 | 0.013783 | 0.021822 | 0.132466 | 0.097818 | 0.049005 | 0.036371 | 0.014931 | 0 | 0 | 0.007313 | 0.424715 | 11,410 | 387 | 126 | 29.483204 | 0.788544 | 0.081332 | 0 | 0.229508 | 0 | 0 | 0.148035 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.032787 | 0.04918 | null | null | 0.012295 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0da06da4a9f43226acb2912e15cb685099ae3f01 | 1,075 | py | Python | h2o-bindings/bin/custom/R/gen_rulefit.py | subhash0x/h2o-3 | b9e46003d5d546ab231b215beab08cec75be86b0 | [
"Apache-2.0"
] | null | null | null | h2o-bindings/bin/custom/R/gen_rulefit.py | subhash0x/h2o-3 | b9e46003d5d546ab231b215beab08cec75be86b0 | [
"Apache-2.0"
] | null | null | null | h2o-bindings/bin/custom/R/gen_rulefit.py | subhash0x/h2o-3 | b9e46003d5d546ab231b215beab08cec75be86b0 | [
"Apache-2.0"
] | null | null | null | extensions = dict(
extensions = dict(
validate_params="""
# Required maps for different names params, including deprecated params
.gbm.map <- c("x" = "ignored_columns",
"y" = "response_column")
"""
),
set_required_params="""
parms$training_frame <- training_frame
args <- .verify_dataxy... | 28.289474 | 93 | 0.688372 | 139 | 1,075 | 5.179856 | 0.568345 | 0.072222 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017486 | 0.148837 | 1,075 | 37 | 94 | 29.054054 | 0.769399 | 0 | 0 | 0.176471 | 0 | 0.088235 | 0.84186 | 0.142326 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029412 | 0 | 0.029412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0da6996eb6527e0c2b453ab7c5236849422a1e74 | 224 | py | Python | test/BeautifulSoupTest/BeautifulSoupTest.py | upa8/Stock-Market-Analyser | bfd8661de343d053d1a772cc375d7227963b9c66 | [
"Apache-2.0"
] | 1 | 2016-12-06T08:27:08.000Z | 2016-12-06T08:27:08.000Z | test/BeautifulSoupTest/BeautifulSoupTest.py | upa8/Stock-Market-Analyser | bfd8661de343d053d1a772cc375d7227963b9c66 | [
"Apache-2.0"
] | null | null | null | test/BeautifulSoupTest/BeautifulSoupTest.py | upa8/Stock-Market-Analyser | bfd8661de343d053d1a772cc375d7227963b9c66 | [
"Apache-2.0"
] | null | null | null | from bs4 import BeautifulSoup
import requests
url = "https://www.nseindia.com/live_market/dynaContent/live_analysis/gainers/niftyGainers1.json"
r = requests.get(url)
data = r.text
soup = BeautifulSoup(data)
print soup | 17.230769 | 97 | 0.78125 | 31 | 224 | 5.580645 | 0.741935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0.116071 | 224 | 13 | 98 | 17.230769 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0.395556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.285714 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0da6f261d225a4fe131215b85716b0dbdbf69ac9 | 382 | py | Python | aether-ui/aether/ui/api/migrations/0002_remove_usertokens_odk_token.py | lordmallam/aether | 7ceb71d2ef8b09d704d94dfcb243dbbdf8356135 | [
"Apache-2.0"
] | 14 | 2018-08-09T20:57:16.000Z | 2020-10-11T12:22:18.000Z | aether-ui/aether/ui/api/migrations/0002_remove_usertokens_odk_token.py | lordmallam/aether | 7ceb71d2ef8b09d704d94dfcb243dbbdf8356135 | [
"Apache-2.0"
] | 148 | 2018-07-24T10:52:29.000Z | 2022-02-10T09:06:44.000Z | aether-ui/aether/ui/api/migrations/0002_remove_usertokens_odk_token.py | lordmallam/aether | 7ceb71d2ef8b09d704d94dfcb243dbbdf8356135 | [
"Apache-2.0"
] | 6 | 2018-07-25T13:33:10.000Z | 2019-09-23T03:02:09.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-04-05 15:46
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('ui', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name... | 19.1 | 46 | 0.604712 | 41 | 382 | 5.439024 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072464 | 0.277487 | 382 | 19 | 47 | 20.105263 | 0.735507 | 0.172775 | 0 | 0 | 1 | 0 | 0.105431 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0dad414d72c7d15d58e68ccf54a951a9d79b23c9 | 1,140 | py | Python | scylla/worker.py | gillbates/scylla | 88b999eb60504c23041a56b343c6a021d778538d | [
"Apache-2.0"
] | null | null | null | scylla/worker.py | gillbates/scylla | 88b999eb60504c23041a56b343c6a021d778538d | [
"Apache-2.0"
] | null | null | null | scylla/worker.py | gillbates/scylla | 88b999eb60504c23041a56b343c6a021d778538d | [
"Apache-2.0"
] | null | null | null | from typing import Union
import requests
from requests_html import HTMLSession, HTMLResponse, HTML
from scylla.loggings import logger
class Worker:
def __init__(self):
"""Initialize the worker object
"""
self.session = HTMLSession()
def get_html(self, url: str, render_js: bool = ... | 26.511628 | 78 | 0.581579 | 132 | 1,140 | 4.94697 | 0.469697 | 0.085758 | 0.036753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009126 | 0.327193 | 1,140 | 42 | 79 | 27.142857 | 0.842243 | 0.219298 | 0 | 0.095238 | 0 | 0 | 0.080723 | 0 | 0 | 0 | 0 | 0.02381 | 0 | 1 | 0.095238 | false | 0 | 0.190476 | 0 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0db00d04dd0863321e2100daed1c947150d4bdc1 | 614 | py | Python | utils.py | shehryar37/mod-activity-bot | a35f0d94ce198d1191cda4437c8400e1fbfeafdf | [
"Apache-2.0"
] | null | null | null | utils.py | shehryar37/mod-activity-bot | a35f0d94ce198d1191cda4437c8400e1fbfeafdf | [
"Apache-2.0"
] | null | null | null | utils.py | shehryar37/mod-activity-bot | a35f0d94ce198d1191cda4437c8400e1fbfeafdf | [
"Apache-2.0"
] | null | null | null | import praw
import os
channel_ids = [742799267294609448]
# add 743486931836338267
def reddit_access(file):
try:
reddit = praw.Reddit(username=os.environ["USERNAME"],
password=os.environ["PASSWORD"],
client_id=os.environ["CLIENT_ID"],
... | 25.583333 | 71 | 0.52443 | 59 | 614 | 5.322034 | 0.542373 | 0.143312 | 0.095541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096859 | 0.37785 | 614 | 23 | 72 | 26.695652 | 0.725131 | 0.035831 | 0 | 0 | 0 | 0 | 0.120339 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0.125 | 0 | 0.25 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0db74252debf6e64e108a23cdf2eb6b8ae993a41 | 2,456 | py | Python | meteortracker/serverside/triangulate_events.py | heidtn/MeteorTracker | d0cfe5c34568c9d5ce42f0d9d6e3d63cf96b02a2 | [
"MIT"
] | 11 | 2016-06-24T23:31:57.000Z | 2021-09-08T14:23:00.000Z | meteortracker/serverside/triangulate_events.py | heidtn/MeteorTracker | d0cfe5c34568c9d5ce42f0d9d6e3d63cf96b02a2 | [
"MIT"
] | 1 | 2016-06-25T18:53:55.000Z | 2016-06-26T00:23:43.000Z | meteortracker/serverside/triangulate_events.py | heidtn/MeteorTracker | d0cfe5c34568c9d5ce42f0d9d6e3d63cf96b02a2 | [
"MIT"
] | 1 | 2016-06-25T08:26:31.000Z | 2016-06-25T08:26:31.000Z | import numpy as np
import sys
sys.path.append('../')
import events
import vector_calcs
import find_events
from itertools import combinations
"""
@author(s): Nathan Heidt
This handles single and multiview triangulation of events
TODO:
-
CHANGELOG:
-
"""
class Triangulator(object):
def __init__(self, ... | 26.695652 | 99 | 0.631515 | 302 | 2,456 | 5.039735 | 0.476821 | 0.021682 | 0.027595 | 0.043364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031144 | 0.280945 | 2,456 | 91 | 100 | 26.989011 | 0.830691 | 0.203176 | 0 | 0 | 0 | 0 | 0.001718 | 0 | 0 | 0 | 0 | 0.021978 | 0 | 1 | 0.090909 | false | 0.022727 | 0.136364 | 0 | 0.295455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0dbac5a99ba857cadb23977c772610258d8a683e | 452 | py | Python | djangocms_rest_api/urls.py | wearehoods/djangocms-rest-api | 7ac95b683e24bfdb61a2a2d73c9d018a190d51f8 | [
"MIT"
] | 55 | 2016-08-04T19:08:01.000Z | 2020-07-27T06:43:35.000Z | djangocms_rest_api/urls.py | wearehoods/djangocms-rest-api | 7ac95b683e24bfdb61a2a2d73c9d018a190d51f8 | [
"MIT"
] | 14 | 2016-10-03T19:44:19.000Z | 2019-01-17T13:18:24.000Z | djangocms_rest_api/urls.py | wearehoods/djangocms-rest-api | 7ac95b683e24bfdb61a2a2d73c9d018a190d51f8 | [
"MIT"
] | 18 | 2016-09-30T03:20:43.000Z | 2021-03-03T07:20:01.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from rest_framework.routers import DefaultRouter
from djangocms_rest_api.views import PageViewSet, PlaceHolderViewSet, PluginViewSet
router = DefaultRouter()
router.register(r'pages', PageViewSet, 'page')
router.register... | 34.769231 | 83 | 0.809735 | 50 | 452 | 7.12 | 0.64 | 0.117978 | 0.126404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002421 | 0.086283 | 452 | 12 | 84 | 37.666667 | 0.859564 | 0.04646 | 0 | 0 | 0 | 0 | 0.104895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0dbb5ba21f168ccee678474be80bf54efdfe9cda | 1,130 | py | Python | tasks.py | WasabiFan/pyright-ui-test-poc | 2c9b5220f6fb469d35383a99b692074a4d58ca6c | [
"MIT"
] | 1 | 2021-08-24T03:36:25.000Z | 2021-08-24T03:36:25.000Z | tasks.py | WasabiFan/pyright-ui-test-poc | 2c9b5220f6fb469d35383a99b692074a4d58ca6c | [
"MIT"
] | null | null | null | tasks.py | WasabiFan/pyright-ui-test-poc | 2c9b5220f6fb469d35383a99b692074a4d58ca6c | [
"MIT"
] | null | null | null | """
Tasks to be invoked via "poetry run".
Any task added here must also be specified as a "script" in pyproject.toml.
"""
import os
import subprocess
import sys
from typing import List, Union
repo_root = os.path.dirname(__file__)
def _command(command: Union[List[str], str], shell: bool = False):
command_exit_c... | 20.178571 | 96 | 0.641593 | 148 | 1,130 | 4.72973 | 0.554054 | 0.074286 | 0.064286 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002225 | 0.204425 | 1,130 | 55 | 97 | 20.545455 | 0.776418 | 0.397345 | 0 | 0 | 0 | 0 | 0.091454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0dc6e7bdb0da5bb1eda25e86d04aeac07af2edc1 | 185 | py | Python | examples/rampup.py | druck13/blinkt | 4370a64cbd4cf7d6177967b902f16793a4c5fa60 | [
"MIT"
] | null | null | null | examples/rampup.py | druck13/blinkt | 4370a64cbd4cf7d6177967b902f16793a4c5fa60 | [
"MIT"
] | null | null | null | examples/rampup.py | druck13/blinkt | 4370a64cbd4cf7d6177967b902f16793a4c5fa60 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys
from time import sleep
import blinkt
for i in range(256):
blinkt.set_all(i, i, i)
sys.stdout.write("%3d" % i)
blinkt.show()
sleep(0.1)
| 16.818182 | 31 | 0.643243 | 33 | 185 | 3.575758 | 0.69697 | 0.033898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041096 | 0.210811 | 185 | 10 | 32 | 18.5 | 0.767123 | 0.108108 | 0 | 0 | 0 | 0 | 0.018293 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0dc81185812bd2a578f8d6217d7f878061f816f2 | 732 | py | Python | django_fixtures/decorators.py | retxxxirt/django-fixtures | 8a8d3c1ac49291716c02efe56ed0b9697b93370c | [
"MIT"
] | null | null | null | django_fixtures/decorators.py | retxxxirt/django-fixtures | 8a8d3c1ac49291716c02efe56ed0b9697b93370c | [
"MIT"
] | null | null | null | django_fixtures/decorators.py | retxxxirt/django-fixtures | 8a8d3c1ac49291716c02efe56ed0b9697b93370c | [
"MIT"
] | null | null | null | from typing import Callable
from .utilities import get_fixture
def exclude_fixtures(*fixtures_classes_or_accessors):
def decorator(function: Callable):
def wrapper(*args, **kwargs):
for fixture_class_or_accessor in fixtures_classes_or_accessors:
if isinstance(fixture_class_or_... | 31.826087 | 93 | 0.654372 | 79 | 732 | 5.708861 | 0.443038 | 0.133038 | 0.155211 | 0.243902 | 0.128603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.280055 | 732 | 22 | 94 | 33.272727 | 0.855787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.133333 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0dd6275a25b6feb105a3fe19758151a3ee6b6e20 | 2,221 | py | Python | book4/s4_teorico.py | Felipe-Tommaselli/Python4everbody_Michigan | f4f940c15a4b165b144d14ead79d583bf31b805b | [
"MIT"
] | null | null | null | book4/s4_teorico.py | Felipe-Tommaselli/Python4everbody_Michigan | f4f940c15a4b165b144d14ead79d583bf31b805b | [
"MIT"
] | null | null | null | book4/s4_teorico.py | Felipe-Tommaselli/Python4everbody_Michigan | f4f940c15a4b165b144d14ead79d583bf31b805b | [
"MIT"
] | null | null | null | # MANY-TO-MANY RELATIONSHIPS IN SQL
#! MANY-TO-MANY
# até agr só vimos one-to-many ou many-to-one relationships
#* um exemplo são diferentes livros que são escritos por diferentes autores
#* -------- ----------
#* | BOOKS | <==> | AUTHORS |
#* -------- ----------
#* Nesse caso adicionamos... | 29.613333 | 78 | 0.558757 | 278 | 2,221 | 4.392086 | 0.291367 | 0.10647 | 0.088452 | 0.091728 | 0.464373 | 0.398034 | 0.374283 | 0.374283 | 0.241605 | 0.241605 | 0 | 0.013836 | 0.284106 | 2,221 | 74 | 79 | 30.013514 | 0.754088 | 0.339937 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0dd648a1b0a3c6380cf52b3fe1adf783f9259752 | 426 | py | Python | english/migrations/0006_alter_english_tag.py | xgxofdream/Notebook_by_Tag | 226b304a37564ad68092864266f1c769dcba7473 | [
"MIT"
] | null | null | null | english/migrations/0006_alter_english_tag.py | xgxofdream/Notebook_by_Tag | 226b304a37564ad68092864266f1c769dcba7473 | [
"MIT"
] | null | null | null | english/migrations/0006_alter_english_tag.py | xgxofdream/Notebook_by_Tag | 226b304a37564ad68092864266f1c769dcba7473 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2022-02-02 00:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('english', '0005_auto_20220201_2343'),
]
operations = [
migrations.AlterField(
model_name='english',
name='tag',
... | 22.421053 | 92 | 0.610329 | 47 | 426 | 5.425532 | 0.765957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099042 | 0.265258 | 426 | 18 | 93 | 23.666667 | 0.715655 | 0.105634 | 0 | 0 | 1 | 0 | 0.147757 | 0.060686 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0dd7a9eb3782838d1e9f740e275a10773c24ba31 | 247 | py | Python | categorization/animal_categories.py | techmango-org/python-import-resolution | d41e394399370aebb8862cdfd10daa2de9bc71ab | [
"Apache-2.0"
] | 1 | 2019-07-12T15:58:10.000Z | 2019-07-12T15:58:10.000Z | categorization/animal_categories.py | techmango-org/python-import-resolution | d41e394399370aebb8862cdfd10daa2de9bc71ab | [
"Apache-2.0"
] | null | null | null | categorization/animal_categories.py | techmango-org/python-import-resolution | d41e394399370aebb8862cdfd10daa2de9bc71ab | [
"Apache-2.0"
] | 1 | 2019-06-07T01:23:12.000Z | 2019-06-07T01:23:12.000Z | import utils.constants as const
animal_scores = {
const.DOG: 100,
const.CAT: 300
}
def get_animal_score(animal_name):
if animal_name in animal_scores:
return animal_scores[animal_name]
return const.DEFAULT_ANIMAL_SCORE
| 17.642857 | 41 | 0.732794 | 35 | 247 | 4.885714 | 0.542857 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030457 | 0.202429 | 247 | 13 | 42 | 19 | 0.837563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ddf70bf8e1bbf5bc20b4ce995028fd8820e67d8 | 841 | py | Python | auctioning_platform/main/main/redis.py | nhdinh/smp-modulith | 84c31b36e9b449fe3135f3802c1bbc362e7fb459 | [
"MIT"
] | 299 | 2019-09-13T23:03:29.000Z | 2022-03-24T09:20:43.000Z | auctioning_platform/main/main/redis.py | winston-won/clean-architecture | 95546b29c9a5ff0e16c7f67b9ab736749e87f8ae | [
"MIT"
] | 109 | 2019-11-03T12:16:16.000Z | 2021-07-26T08:32:28.000Z | auctioning_platform/main/main/redis.py | winston-won/clean-architecture | 95546b29c9a5ff0e16c7f67b9ab736749e87f8ae | [
"MIT"
] | 38 | 2019-09-13T23:03:34.000Z | 2022-03-24T09:21:10.000Z | from types import TracebackType
from typing import Optional, Type
from redis import StrictRedis
from typing_extensions import Literal
from foundation.locks import AlreadyLocked, Lock
class RedisLock(Lock):
LOCK_VALUE = "LOCKED"
def __init__(self, redis: StrictRedis, name: str, timeout: int = 30) -> None:
... | 30.035714 | 120 | 0.690844 | 103 | 841 | 5.349515 | 0.427184 | 0.065336 | 0.065336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003053 | 0.221165 | 841 | 27 | 121 | 31.148148 | 0.838168 | 0 | 0 | 0 | 0 | 0 | 0.007134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.25 | 0 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0ddfc1680e0087c9a160e4d4f6fa41fc5828a2ba | 7,124 | py | Python | python/bitwarden/crypto.py | rjc/bitwarden-cli | 770c2af962d696b3aaaf16a77eefc0c3187b7b11 | [
"MIT"
] | 48 | 2018-04-08T02:54:23.000Z | 2022-02-21T10:13:47.000Z | python/bitwarden/crypto.py | rjc/bitwarden-cli | 770c2af962d696b3aaaf16a77eefc0c3187b7b11 | [
"MIT"
] | 13 | 2018-04-08T22:31:44.000Z | 2021-05-08T20:42:39.000Z | python/bitwarden/crypto.py | rjc/bitwarden-cli | 770c2af962d696b3aaaf16a77eefc0c3187b7b11 | [
"MIT"
] | 15 | 2018-04-09T18:39:16.000Z | 2021-04-23T07:12:27.000Z | """
Bitwarden crypto functions.
Yes, this code is UGLY, The bitwarden documentation is either
missing, inconsistent or confusing.
This needs a refactor, but unknown if I will get to it before I move back to rust
where this code probably should live for reals.
See tests/test_bitwarden.py if you want to make sense of... | 34.086124 | 158 | 0.669989 | 859 | 7,124 | 5.547148 | 0.313155 | 0.03022 | 0.047009 | 0.036726 | 0.243442 | 0.206506 | 0.192235 | 0.16957 | 0.146065 | 0.146065 | 0 | 0.038023 | 0.198905 | 7,124 | 208 | 159 | 34.25 | 0.796916 | 0.397108 | 0 | 0.205607 | 0 | 0 | 0.055954 | 0 | 0 | 0 | 0 | 0 | 0.018692 | 1 | 0.093458 | false | 0.093458 | 0.102804 | 0 | 0.317757 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0de0c7aff912812a7b1cf3cab0a2153ee44f170a | 12,624 | py | Python | genproto.py | eruffaldi/protosim | 921ef9f8c174809e2937a44daa2595c11426f7cd | [
"MIT"
] | null | null | null | genproto.py | eruffaldi/protosim | 921ef9f8c174809e2937a44daa2595c11426f7cd | [
"MIT"
] | null | null | null | genproto.py | eruffaldi/protosim | 921ef9f8c174809e2937a44daa2595c11426f7cd | [
"MIT"
] | null | null | null | #
# GenPROTO by Emanuele Ruffaldi 2009
# v1 2009/12/05
#
# TODO:
# - nicer Simulink layout
# - hash as annotation or as output
# - encoder id > 256 in particular using extended encoding (lsb+msb)
# - Alternative: XVR encoding of an array
# - Support for new types
import hashlib
def fixref(x):
if type(... | 41.526316 | 165 | 0.506099 | 1,759 | 12,624 | 3.550881 | 0.142695 | 0.088377 | 0.027378 | 0.017611 | 0.415306 | 0.37544 | 0.317163 | 0.227185 | 0.217259 | 0.147454 | 0 | 0.022872 | 0.276141 | 12,624 | 304 | 166 | 41.526316 | 0.660648 | 0.041667 | 0 | 0.336918 | 0 | 0.02509 | 0.30208 | 0.129731 | 0 | 0 | 0 | 0.003289 | 0 | 0 | null | null | 0.003584 | 0.021505 | null | null | 0.021505 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0de3841159183190f269892a6f7cb86c1c65bd8f | 5,237 | py | Python | scripts/automation/trex_control_plane/common/trex_exceptions.py | timgates42/trex-core | efe94752fcb2d0734c83d4877afe92a3dbf8eccd | [
"Apache-2.0"
] | 956 | 2015-06-24T15:04:55.000Z | 2022-03-30T06:25:04.000Z | scripts/automation/trex_control_plane/common/trex_exceptions.py | angelyouyou/trex-core | fddf78584cae285d9298ef23f9f5c8725e16911e | [
"Apache-2.0"
] | 782 | 2015-09-20T15:19:00.000Z | 2022-03-31T23:52:05.000Z | scripts/automation/trex_control_plane/common/trex_exceptions.py | angelyouyou/trex-core | fddf78584cae285d9298ef23f9f5c8725e16911e | [
"Apache-2.0"
] | 429 | 2015-06-27T19:34:21.000Z | 2022-03-23T11:02:51.000Z | #!/router/bin/python
#from rpc_exceptions import RPCExceptionHandler, WrappedRPCError
from jsonrpclib import Fault, ProtocolError, AppError
class RPCError(Exception):
"""
This is the general RPC error exception class from which :exc:`trex_exceptions.TRexException` inherits.
Every exception in this clas... | 37.141844 | 162 | 0.674814 | 638 | 5,237 | 5.454545 | 0.316614 | 0.036207 | 0.03908 | 0.025862 | 0.190517 | 0.181609 | 0.181609 | 0.151724 | 0.151724 | 0.151724 | 0 | 0.005115 | 0.253389 | 5,237 | 140 | 163 | 37.407143 | 0.88491 | 0.469162 | 0 | 0 | 0 | 0.04 | 0.218362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.02 | 0.02 | 0.68 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0de5270e48f9bb8140229ad87f702d9f9395b7a9 | 1,319 | py | Python | functions/benchmarks/utils.py | xyclin/fluent | f1dcede5d4b7d6eab722180129dbb5aff4241621 | [
"Apache-2.0"
] | 1,164 | 2018-07-25T23:17:07.000Z | 2019-07-11T20:33:52.000Z | functions/benchmarks/utils.py | longwutianya/fluent | c8fc9f2dd781e5ed91c34351adc6a101cc383083 | [
"Apache-2.0"
] | 126 | 2018-07-25T22:41:53.000Z | 2019-07-10T21:49:19.000Z | functions/benchmarks/utils.py | longwutianya/fluent | c8fc9f2dd781e5ed91c34351adc6a101cc383083 | [
"Apache-2.0"
] | 178 | 2018-07-25T23:17:11.000Z | 2019-07-10T02:45:27.000Z | import logging
import numpy as np
import scipy.stats
def mean_confidence_interval(data, confidence=0.95):
n = len(data)
m, se = np.mean(data), scipy.stats.sem(data)
h = se * scipy.stats.t.ppf((1 + confidence) / 2., n-1)
return m, m-h, m+h
def print_latency_stats(data, ident, log=False):
npdata =... | 30.674419 | 76 | 0.501137 | 169 | 1,319 | 3.87574 | 0.378698 | 0.128244 | 0.192366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078409 | 0.332828 | 1,319 | 42 | 77 | 31.404762 | 0.665909 | 0 | 0 | 0 | 0 | 0 | 0.144049 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.088235 | 0 | 0.176471 | 0.058824 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0de9954b30086eb49e586c15ab6996930b07db5e | 2,038 | py | Python | pyxll_jupyter/qtimports.py | masariello/pyxll-jupyter | ae6f4416efda7329a5d67664ab957bad4fc431f1 | [
"MIT"
] | 132 | 2020-11-12T02:09:52.000Z | 2022-02-11T13:21:14.000Z | pyxll_jupyter/qtimports.py | masariello/pyxll-jupyter | ae6f4416efda7329a5d67664ab957bad4fc431f1 | [
"MIT"
] | 17 | 2020-12-25T03:12:18.000Z | 2022-01-12T15:35:26.000Z | pyxll_jupyter/qtimports.py | masariello/pyxll-jupyter | ae6f4416efda7329a5d67664ab957bad4fc431f1 | [
"MIT"
] | 26 | 2020-12-28T10:18:46.000Z | 2021-11-25T10:15:13.000Z | """Common imports used by other modules in this package.
They are collected here so we can switch between PySide6, PySide2 and PyQt5
depending on what's installed.
A specific Qt package can be specified in the pyxll.cfg file by setting
'qt' in the JUPYTER section, eg::
[JUPYTER]
qt = PyQt5
"""
import logging... | 34.542373 | 121 | 0.670265 | 247 | 2,038 | 5.396761 | 0.404858 | 0.045011 | 0.029257 | 0.045011 | 0.285071 | 0.285071 | 0.129032 | 0.129032 | 0.129032 | 0.129032 | 0 | 0.013055 | 0.248283 | 2,038 | 58 | 122 | 35.137931 | 0.85705 | 0.169774 | 0 | 0.052632 | 0 | 0 | 0.136905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.315789 | 0 | 0.394737 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0de9ec4631263c9362f00069530b9cb00707225b | 2,852 | py | Python | sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/aio/_patch.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-09T08:59:13.000Z | 2022-03-09T08:59:13.000Z | sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/aio/_patch.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/aio/_patch.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-04T06:21:56.000Z | 2022-03-04T06:21:56.000Z | # coding=utf-8
# --------------------------------------------------------------------------
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# The MIT License (MIT)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the ... | 46 | 137 | 0.717742 | 330 | 2,852 | 6.033333 | 0.515152 | 0.044199 | 0.052737 | 0.021095 | 0.030136 | 0.030136 | 0 | 0 | 0 | 0 | 0 | 0.000421 | 0.167952 | 2,852 | 61 | 138 | 46.754098 | 0.838601 | 0.507013 | 0 | 0 | 0 | 0 | 0.083515 | 0.036311 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.166667 | 0.2 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0dee8b182c9c00b957334b937616b3f61730f89a | 1,406 | py | Python | selfdrive/car/tesla/teslacan.py | Basketkase/openpilot | 769e1cf7a8322ca83d1a86a2f547acf5e3a5a52e | [
"MIT"
] | 251 | 2019-07-12T05:14:20.000Z | 2022-03-30T21:05:22.000Z | selfdrive/car/tesla/teslacan.py | Basketkase/openpilot | 769e1cf7a8322ca83d1a86a2f547acf5e3a5a52e | [
"MIT"
] | 31 | 2020-03-06T01:50:25.000Z | 2022-03-11T19:09:08.000Z | selfdrive/car/tesla/teslacan.py | Basketkase/openpilot | 769e1cf7a8322ca83d1a86a2f547acf5e3a5a52e | [
"MIT"
] | 284 | 2019-07-29T13:14:19.000Z | 2022-03-30T17:26:47.000Z | import copy
import crcmod
from opendbc.can.can_define import CANDefine
from selfdrive.car.tesla.values import CANBUS
class TeslaCAN:
def __init__(self, dbc_name, packer):
self.can_define = CANDefine(dbc_name)
self.packer = packer
self.crc = crcmod.mkCrcFun(0x11d, initCrc=0x00, rev=False, xorOut=0xff)
... | 33.47619 | 85 | 0.706259 | 193 | 1,406 | 4.901554 | 0.414508 | 0.044397 | 0.059197 | 0.071882 | 0.221987 | 0.221987 | 0.200846 | 0.200846 | 0.200846 | 0.200846 | 0 | 0.02157 | 0.175676 | 1,406 | 41 | 86 | 34.292683 | 0.794651 | 0.027027 | 0 | 0 | 0 | 0 | 0.167643 | 0.091508 | 0 | 0 | 0.021962 | 0.02439 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0def1562e19ad9a5b2327c246d0c89c271c956ce | 2,480 | py | Python | acceptance_test.py | pgrabiec/Interpreter | 427786be63b35decc0af0bba602d84b5ab7d02bd | [
"MIT"
] | null | null | null | acceptance_test.py | pgrabiec/Interpreter | 427786be63b35decc0af0bba602d84b5ab7d02bd | [
"MIT"
] | null | null | null | acceptance_test.py | pgrabiec/Interpreter | 427786be63b35decc0af0bba602d84b5ab7d02bd | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import filecmp
import os
import sys
import unittest
class AcceptanceTests(unittest.TestCase):
@classmethod
def add_test(cls, dirpath, filename):
basename = os.path.splitext(filename)[0]
if dirpath.startswith('./'):
dirpath = dirpath[2:]
if dirpath.end... | 43.508772 | 125 | 0.381048 | 192 | 2,480 | 4.765625 | 0.34375 | 0.043716 | 0.037158 | 0.048087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0.529032 | 2,480 | 56 | 126 | 44.285714 | 0.769692 | 0.008065 | 0 | 0.133333 | 0 | 0.022222 | 0.066287 | 0.02074 | 0 | 0 | 0 | 0 | 0.022222 | 1 | 0.088889 | false | 0 | 0.088889 | 0.022222 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0df53ba43d95a0153001bd438b6726acb358cb36 | 1,266 | py | Python | status/models.py | RyanBalfanz/Django-Bingo | 0ba9f893c78fae1a5fb5eb45e43b36783d930e25 | [
"BSD-3-Clause"
] | 9 | 2015-11-04T16:22:05.000Z | 2021-01-27T11:02:19.000Z | status/models.py | osundiranayoade/Django-Bingo_builder | 9ca7098c28fa0a4d77c3ea62877d44230940618d | [
"BSD-3-Clause"
] | 1 | 2021-06-10T23:18:27.000Z | 2021-06-10T23:18:27.000Z | status/models.py | RyanBalfanz/Django-Bingo | 0ba9f893c78fae1a5fb5eb45e43b36783d930e25 | [
"BSD-3-Clause"
] | 4 | 2015-07-13T19:22:09.000Z | 2020-11-24T11:25:27.000Z | from django.db import models
global_max_length = 200
class FilesystemStats(models.Model):
device = models.CharField(max_length = global_max_length)
used_perc = models.DecimalField(max_digits = 5, decimal_places = 2)
size = models.IntegerField()
used = models.IntegerField()
avail = models.IntegerFi... | 36.171429 | 71 | 0.725908 | 155 | 1,266 | 5.696774 | 0.329032 | 0.112118 | 0.101925 | 0.1359 | 0.582106 | 0.582106 | 0.582106 | 0.361268 | 0.120045 | 0 | 0 | 0.015355 | 0.176935 | 1,266 | 34 | 72 | 37.235294 | 0.832054 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.962963 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0dfaabfbc39ee5e2ac22e5d50e4fe456ac3ceac3 | 481 | py | Python | api/urls.py | Luanlpg/favorites_list | 593bc8eab89382cbf62f6efa0e8a4769f0dc3a0a | [
"MIT"
] | null | null | null | api/urls.py | Luanlpg/favorites_list | 593bc8eab89382cbf62f6efa0e8a4769f0dc3a0a | [
"MIT"
] | null | null | null | api/urls.py | Luanlpg/favorites_list | 593bc8eab89382cbf62f6efa0e8a4769f0dc3a0a | [
"MIT"
] | null | null | null | from django.urls import path
from django.urls import include
from rest_framework import routers
from . import views
router = routers.DefaultRouter()
urlpatterns = [
path('', include(router.urls)),
path('user/', views.UserView.as_view()),
path('<str:token>/client/', views.ClientListView.as_view()),
p... | 28.294118 | 84 | 0.706861 | 61 | 481 | 5.491803 | 0.409836 | 0.071642 | 0.089552 | 0.116418 | 0.262687 | 0.262687 | 0.191045 | 0.191045 | 0 | 0 | 0 | 0 | 0.118503 | 481 | 16 | 85 | 30.0625 | 0.790094 | 0 | 0 | 0 | 0 | 0 | 0.189189 | 0.139293 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
216e193708479aa189d55d4a217d2cdf85446483 | 494 | py | Python | src/schema/client.py | gabrielroot/pedidosDelivery | 52315d6e5db6dc2c8be9e523f7491d798ed07c5b | [
"MIT"
] | null | null | null | src/schema/client.py | gabrielroot/pedidosDelivery | 52315d6e5db6dc2c8be9e523f7491d798ed07c5b | [
"MIT"
] | null | null | null | src/schema/client.py | gabrielroot/pedidosDelivery | 52315d6e5db6dc2c8be9e523f7491d798ed07c5b | [
"MIT"
] | null | null | null | from src import ma
from src.models import Client
from src.models import FlavorItems
from marshmallow import fields
class OrdersSchema(ma.Schema):
class Meta:
model = FlavorItems
fields = ('item_id', 'flavor_id')
class ClientSchema(ma.Schema):
orders = fields.Nested(OrdersSchema, many=True)
... | 23.52381 | 110 | 0.659919 | 59 | 494 | 5.457627 | 0.525424 | 0.065217 | 0.080745 | 0.118012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222672 | 494 | 20 | 111 | 24.7 | 0.838542 | 0 | 0 | 0.142857 | 0 | 0 | 0.147773 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
216fccd5371afe7b93e013de42d1f279a6bf954f | 297 | py | Python | bitcoin/blocksci-server/app-server.py | joequant/sto | 3bd45ef296b0d567c3f74a990580c745fe2114c0 | [
"BSD-2-Clause"
] | null | null | null | bitcoin/blocksci-server/app-server.py | joequant/sto | 3bd45ef296b0d567c3f74a990580c745fe2114c0 | [
"BSD-2-Clause"
] | null | null | null | bitcoin/blocksci-server/app-server.py | joequant/sto | 3bd45ef296b0d567c3f74a990580c745fe2114c0 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
from flask import Flask
app = Flask(__name__)
@app.route("/hello-world")
def hello():
return "Hello world!"
if __name__ == "__main__":
from gevent.pywsgi import WSGIServer
http_server = WSGIServer(('0.0.0.0', 5000), app)
http_server.serve_forever()
| 18.5625 | 52 | 0.673401 | 41 | 297 | 4.512195 | 0.609756 | 0.032432 | 0.032432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.181818 | 297 | 15 | 53 | 19.8 | 0.72428 | 0.070707 | 0 | 0 | 0 | 0 | 0.141818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.111111 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
21725365dcbb684cdebea331fa52515d4fc66d02 | 314 | py | Python | python/JournalDirective.Values.py | BIMpraxis/Journalysis | af0c042b28d01ba5e44dafc2bbe9556434e897b8 | [
"MIT"
] | 26 | 2017-11-23T19:30:03.000Z | 2022-02-09T10:35:10.000Z | python/JournalDirective.Values.py | BIMpraxis/Journalysis | af0c042b28d01ba5e44dafc2bbe9556434e897b8 | [
"MIT"
] | 51 | 2017-11-16T15:02:32.000Z | 2022-03-01T13:51:58.000Z | python/JournalDirective.Values.py | BIMpraxis/Journalysis | af0c042b28d01ba5e44dafc2bbe9556434e897b8 | [
"MIT"
] | 9 | 2017-11-20T09:20:01.000Z | 2021-09-15T13:08:30.000Z | import clr
def process_input(func, input):
if isinstance(input, list): return [func(x) for x in input]
else: return func(input)
def journalDirectiveValues(jdirective):
if jdirective.__repr__() == 'JournalDirective': return jdirective.Values
else: return []
OUT = process_input(journalDirectiveValues,IN[0]) | 28.545455 | 73 | 0.764331 | 40 | 314 | 5.85 | 0.525 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003623 | 0.121019 | 314 | 11 | 74 | 28.545455 | 0.844203 | 0 | 0 | 0 | 0 | 0 | 0.050794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
217a965ac9c1adbe04867282d571db094f2e92da | 1,488 | py | Python | faker/providers/person/en/__init__.py | nortronthered/faker | bc55c88f911f30537c8ad1d1e1b64fe6e91428fb | [
"MIT"
] | null | null | null | faker/providers/person/en/__init__.py | nortronthered/faker | bc55c88f911f30537c8ad1d1e1b64fe6e91428fb | [
"MIT"
] | null | null | null | faker/providers/person/en/__init__.py | nortronthered/faker | bc55c88f911f30537c8ad1d1e1b64fe6e91428fb | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from .. import Provider as PersonProvider
class Provider(PersonProvider):
formats_female = (
'{{first_name_female}} {{last_name}}',
'{{first_name_female}} {{last_name}}',
'{{first_name_female}} {{last_name}}',
'{{first_name_female}} {{last_na... | 35.428571 | 82 | 0.577957 | 166 | 1,488 | 4.704819 | 0.228916 | 0.184379 | 0.166453 | 0.21767 | 0.576184 | 0.576184 | 0.576184 | 0.419974 | 0.419974 | 0.419974 | 0 | 0 | 0.210349 | 1,488 | 41 | 83 | 36.292683 | 0.664681 | 0 | 0 | 0.3125 | 0 | 0 | 0.504032 | 0.112903 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
218ba500303c8c0f234b099b40abb5cfbe848329 | 1,747 | py | Python | constants.py | MartijnGosgens/CovidMobilityTradeOffs | bb0db602edbef9ba79d6bf5f07b5d969eb6ab41c | [
"MIT"
] | 2 | 2021-01-15T11:43:37.000Z | 2022-01-26T13:23:13.000Z | constants.py | MartijnGosgens/CovidMobilityTradeOffs | bb0db602edbef9ba79d6bf5f07b5d969eb6ab41c | [
"MIT"
] | null | null | null | constants.py | MartijnGosgens/CovidMobilityTradeOffs | bb0db602edbef9ba79d6bf5f07b5d969eb6ab41c | [
"MIT"
] | null | null | null | class CoronaConstants:
# Disease constants
latent_period = 4 # nu
infectious_period = 5 # omega
fraction_tested = 1/15 # alpha
contacts_average = 13.85 # c
fraction_local_contacts = 0.5 # rho
basic_reproduction_number = 1.25
transmission_pr... | 47.216216 | 145 | 0.676588 | 206 | 1,747 | 5.475728 | 0.417476 | 0.066489 | 0.093085 | 0.039894 | 0.264184 | 0.159574 | 0.159574 | 0.08156 | 0 | 0 | 0 | 0.056923 | 0.255867 | 1,747 | 36 | 146 | 48.527778 | 0.810769 | 0.263309 | 0 | 0 | 0 | 0 | 0.038674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0 | 0 | 0.56 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
218bb6f494c5e3dd3bec32fdc93089f739ef2557 | 2,273 | py | Python | api/calculators/bridge.py | equinor/lcm | 338bf67e6eb412446e469b4c73f7000990445ebd | [
"MIT"
] | 3 | 2020-12-02T11:14:31.000Z | 2021-12-09T16:53:53.000Z | api/calculators/bridge.py | equinor/lcm | 338bf67e6eb412446e469b4c73f7000990445ebd | [
"MIT"
] | 76 | 2020-09-29T10:59:10.000Z | 2022-01-03T07:41:29.000Z | api/calculators/bridge.py | equinor/lcm | 338bf67e6eb412446e469b4c73f7000990445ebd | [
"MIT"
] | 2 | 2021-01-25T14:24:57.000Z | 2021-01-25T14:51:16.000Z | from math import sqrt
from typing import List
from cachetools import cached, LFUCache
from classes.product import Product
from util.enums import BridgeOption
@cached(cache=LFUCache(2048))
def theoretical_bridge(mode: str, value: int):
bridge_list = []
d_value = 50
bridge_input = value
if mode in (B... | 15.153333 | 76 | 0.524417 | 329 | 2,273 | 3.541033 | 0.49848 | 0.034335 | 0.034335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262407 | 0.352838 | 2,273 | 149 | 77 | 15.255034 | 0.529572 | 0 | 0 | 0.014815 | 0 | 0 | 0.015398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014815 | false | 0.007407 | 0.037037 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
218faee00f37039153c65e5bb3b49bdfd694a503 | 990 | py | Python | setup.py | PostmonAPI/postmon-python | f226866622040ee03f8a73abfdcb847abbc316de | [
"MIT"
] | 5 | 2015-05-07T13:09:17.000Z | 2019-11-14T21:53:11.000Z | setup.py | PostmonAPI/postmon-python | f226866622040ee03f8a73abfdcb847abbc316de | [
"MIT"
] | null | null | null | setup.py | PostmonAPI/postmon-python | f226866622040ee03f8a73abfdcb847abbc316de | [
"MIT"
] | null | null | null | try:
import multiprocessing
except ImportError:
pass
from setuptools import setup
import postmon
setup(
name='postmon',
version=postmon.__version__,
description='Postmon service wrapper',
url='http://github.com/PostmonAPI/postmon-python',
author='Iuri de Silvio',
author_email='iurisi... | 22.5 | 71 | 0.605051 | 94 | 990 | 6.276596 | 0.723404 | 0.047458 | 0.084746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00955 | 0.259596 | 990 | 43 | 72 | 23.023256 | 0.795362 | 0 | 0 | 0.085714 | 0 | 0 | 0.476768 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.028571 | 0.114286 | 0 | 0.114286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
21905fa948c69618781b3395191013845aaa212e | 3,031 | py | Python | mac/pyobjc-core/PyObjCTest/test_corefoundation.py | albertz/music-player | d23586f5bf657cbaea8147223be7814d117ae73d | [
"BSD-2-Clause"
] | 132 | 2015-01-01T10:02:42.000Z | 2022-03-09T12:51:01.000Z | mac/pyobjc-core/PyObjCTest/test_corefoundation.py | mba811/music-player | 7998986b34cfda2244ef622adefb839331b81a81 | [
"BSD-2-Clause"
] | 6 | 2015-01-06T08:23:19.000Z | 2019-03-14T12:22:06.000Z | mac/pyobjc-core/PyObjCTest/test_corefoundation.py | mba811/music-player | 7998986b34cfda2244ef622adefb839331b81a81 | [
"BSD-2-Clause"
] | 27 | 2015-02-23T11:51:43.000Z | 2022-03-07T02:34:18.000Z | """
Testcases for the CoreFoundation wrappers introduced in 1.5
"""
import objc
from PyObjCTools.TestSupport import *
import re
import sys
from PyObjCTest.corefoundation import *
# registerCFSignature(name, encoding, typeId [, tollfreeName]) -> type
CFUUIDRef = objc.registerCFSignature(
"CFUUIDRef",
... | 30.31 | 79 | 0.663477 | 325 | 3,031 | 6.070769 | 0.406154 | 0.121642 | 0.020274 | 0.015205 | 0.169285 | 0.169285 | 0.169285 | 0.169285 | 0.169285 | 0.169285 | 0 | 0.017425 | 0.223689 | 3,031 | 99 | 80 | 30.616162 | 0.821079 | 0.17519 | 0 | 0.210526 | 0 | 0.035088 | 0.094682 | 0.048348 | 0 | 0 | 0 | 0.010101 | 0.245614 | 1 | 0.070175 | false | 0 | 0.087719 | 0.017544 | 0.192982 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
21908533059650158231fb7a6c13d83d59c8fae2 | 555 | py | Python | examples/echo.py | megamit/discord.py | 899c5d0cd9406bd14c8299208bf37736ce6a2df1 | [
"MIT"
] | 1 | 2021-04-08T19:19:22.000Z | 2021-04-08T19:19:22.000Z | examples/echo.py | megamit/discord.py | 899c5d0cd9406bd14c8299208bf37736ce6a2df1 | [
"MIT"
] | null | null | null | examples/echo.py | megamit/discord.py | 899c5d0cd9406bd14c8299208bf37736ce6a2df1 | [
"MIT"
] | null | null | null | import discord
import logging
# Set up the logging module to output diagnostic to the console.
logging.basicConfig()
client = discord.Client()
client.login('email', 'password')
if not client.is_logged_in:
print('Logging in to Discord failed')
exit(1)
@client.event
def on_ready():
print('Connected!')
... | 21.346154 | 64 | 0.706306 | 77 | 555 | 5.025974 | 0.519481 | 0.082687 | 0.072351 | 0.082687 | 0.103359 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002155 | 0.163964 | 555 | 25 | 65 | 22.2 | 0.831897 | 0.111712 | 0 | 0.111111 | 0 | 0 | 0.132383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.055556 | 0.111111 | 0 | 0.222222 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
219091666db74f486781a922effd4aee96ba013d | 8,673 | py | Python | metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/pcap_commands.py | ttracx/metron | e81a5c102375d3b7f9692a561760ff8f8526a6ec | [
"Apache-2.0"
] | 1 | 2019-02-27T03:41:26.000Z | 2019-02-27T03:41:26.000Z | metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/pcap_commands.py | ttracx/metron | e81a5c102375d3b7f9692a561760ff8f8526a6ec | [
"Apache-2.0"
] | 6 | 2016-05-10T15:37:06.000Z | 2019-03-21T07:15:25.000Z | metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/pcap_commands.py | depshield-user-testing/metron | d749961daaa77624e1cb6878548479d86c8fe668 | [
"Apache-2.0"
] | 2 | 2016-01-25T15:51:42.000Z | 2016-01-25T15:53:37.000Z | #!/usr/bin/env python
"""
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License");... | 42.935644 | 155 | 0.652485 | 1,023 | 8,673 | 5.178886 | 0.224829 | 0.0906 | 0.0453 | 0.03775 | 0.436014 | 0.377123 | 0.328237 | 0.248018 | 0.248018 | 0.231031 | 0 | 0.003825 | 0.27649 | 8,673 | 201 | 156 | 43.149254 | 0.840478 | 0.031592 | 0 | 0.21831 | 0 | 0 | 0.137739 | 0.003981 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.070423 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2193bc956f086678110deef9221f1ab72faae2f2 | 392 | py | Python | app_renekton/forms.py | lia0wang/Renekton-Forums | e2d6861173d2279e5b64b42abb2c921853116cc5 | [
"MIT"
] | null | null | null | app_renekton/forms.py | lia0wang/Renekton-Forums | e2d6861173d2279e5b64b42abb2c921853116cc5 | [
"MIT"
] | null | null | null | app_renekton/forms.py | lia0wang/Renekton-Forums | e2d6861173d2279e5b64b42abb2c921853116cc5 | [
"MIT"
] | null | null | null | from django import forms
from .models import Topic, Post
class TopicForm(forms.ModelForm):
class Meta:
model = Topic
fields = ['topic_name']
labels = {'topic_name': ''}
class PostForm(forms.ModelForm):
class Meta:
model = Post
fields = ['text']
labels = {'text':... | 26.133333 | 62 | 0.584184 | 43 | 392 | 5.27907 | 0.511628 | 0.123348 | 0.167401 | 0.202643 | 0.246696 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007018 | 0.272959 | 392 | 15 | 62 | 26.133333 | 0.789474 | 0 | 0 | 0.153846 | 0 | 0 | 0.104326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2195bbee42d1242bbd94379825795efc7049104c | 528 | py | Python | setup.py | yotammarton/TransformDF2Numpy | 3528fe2f207089186865290b9f5cbd14d91e8c82 | [
"MIT"
] | null | null | null | setup.py | yotammarton/TransformDF2Numpy | 3528fe2f207089186865290b9f5cbd14d91e8c82 | [
"MIT"
] | null | null | null | setup.py | yotammarton/TransformDF2Numpy | 3528fe2f207089186865290b9f5cbd14d91e8c82 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name="df2numpy",
version="1.1.0",
description="A simple tool for quick transformation from pandas.DataFrame to numpy.array dataset containing some utilities",
long_description='./README.md',
author="Masaki Kitayama",
author_email="kitayama-mas... | 25.142857 | 128 | 0.700758 | 62 | 528 | 5.887097 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013483 | 0.157197 | 528 | 20 | 129 | 26.4 | 0.806742 | 0 | 0 | 0 | 0 | 0 | 0.492366 | 0.053435 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
21a0c5a63555445f8c24a7d093541a3e613eb0de | 2,176 | py | Python | {{cookiecutter.directory_name}}/setup.py | farisachugthai/cookiecutter_lib | 783c3fbadcf9f8bbf8da07edd9c6df4addf16435 | [
"MIT"
] | null | null | null | {{cookiecutter.directory_name}}/setup.py | farisachugthai/cookiecutter_lib | 783c3fbadcf9f8bbf8da07edd9c6df4addf16435 | [
"MIT"
] | null | null | null | {{cookiecutter.directory_name}}/setup.py | farisachugthai/cookiecutter_lib | 783c3fbadcf9f8bbf8da07edd9c6df4addf16435 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""The setup script."""
from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = [
{%- if cookiecutter.command_line_interface|lower == 'click' %}
'Click>=7.0',
{%- endif %}
]
test_requirements = [
{%- if c... | 31.085714 | 103 | 0.653493 | 244 | 2,176 | 5.663934 | 0.495902 | 0.096237 | 0.099855 | 0.054269 | 0.089725 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004558 | 0.193474 | 2,176 | 69 | 104 | 31.536232 | 0.782906 | 0 | 0 | 0.052632 | 0 | 0 | 0.409746 | 0.139731 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017544 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
21a789b34ff251b32a9332edc970b38f9ab49536 | 1,244 | py | Python | tree/htree.py | Tenbatsu24/python-data-structure | aa54edf30b70f20024111f33ab48c0d081086377 | [
"MIT"
] | null | null | null | tree/htree.py | Tenbatsu24/python-data-structure | aa54edf30b70f20024111f33ab48c0d081086377 | [
"MIT"
] | null | null | null | tree/htree.py | Tenbatsu24/python-data-structure | aa54edf30b70f20024111f33ab48c0d081086377 | [
"MIT"
] | null | null | null | import collections
class Node:
def __init__(self, data, parent):
self.parent = parent
self.data = data
self.children = {}
def __contains__(self, item):
return item in self.children
def __getitem__(self, item):
return self.children[item]
def __setitem__(self, ... | 25.387755 | 69 | 0.580386 | 139 | 1,244 | 4.906475 | 0.359712 | 0.058651 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001214 | 0.337621 | 1,244 | 48 | 70 | 25.916667 | 0.826456 | 0 | 0 | 0.054054 | 0 | 0 | 0.030547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0 | 0.027027 | 0.054054 | 0.459459 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
21a80ca084c0768d2c462391247b55fb974a5877 | 4,530 | py | Python | data/process.py | RenchuSong/FootballAnalyzer | 2a4b619e29e3994b7956ab74217cf08c34756b22 | [
"MIT"
] | null | null | null | data/process.py | RenchuSong/FootballAnalyzer | 2a4b619e29e3994b7956ab74217cf08c34756b22 | [
"MIT"
] | null | null | null | data/process.py | RenchuSong/FootballAnalyzer | 2a4b619e29e3994b7956ab74217cf08c34756b22 | [
"MIT"
] | null | null | null | import csv
import matplotlib.pyplot as plt
import json
combine = []
def norm_name(name):
i = len(name) - 1
while i > -1 and not('a' <= name[i] <= 'z' or 'A' <= name[i] <= 'Z'):
i -= 1
return name[0:i+1]
def percentile(d, min, max):
if ((min <= d <= max) == False and (max <= d <= min) == False):
return 0
ret... | 31.901408 | 142 | 0.582119 | 770 | 4,530 | 3.368831 | 0.144156 | 0.060139 | 0.069391 | 0.053971 | 0.39707 | 0.374325 | 0.357363 | 0.357363 | 0.357363 | 0.319584 | 0 | 0.037552 | 0.206402 | 4,530 | 141 | 143 | 32.12766 | 0.684006 | 0.046799 | 0 | 0.071429 | 0 | 0 | 0.141597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008929 | 0.026786 | null | null | 0.008929 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
21abbc7937fc3a9823260699ccf02930e2b263d7 | 233 | py | Python | employeeProj/employeeApp/urls.py | cs-fullstack-2019-spring/django-formclassv2-cw-itayanna | 3c6038cd88d03df8aef6ab544c6f331acea5dc2e | [
"Apache-2.0"
] | null | null | null | employeeProj/employeeApp/urls.py | cs-fullstack-2019-spring/django-formclassv2-cw-itayanna | 3c6038cd88d03df8aef6ab544c6f331acea5dc2e | [
"Apache-2.0"
] | null | null | null | employeeProj/employeeApp/urls.py | cs-fullstack-2019-spring/django-formclassv2-cw-itayanna | 3c6038cd88d03df8aef6ab544c6f331acea5dc2e | [
"Apache-2.0"
] | null | null | null |
# importing info from views and the path function
from django.urls import path
from . import views
# defining endpoints
urlpatterns = [
path('', views.index, name='index'),
path('appInfo/', views.index, name='appInfo')
] | 17.923077 | 49 | 0.695279 | 30 | 233 | 5.4 | 0.566667 | 0.123457 | 0.17284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180258 | 233 | 13 | 50 | 17.923077 | 0.848168 | 0.283262 | 0 | 0 | 0 | 0 | 0.121951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
21abd60e1f2686da401cbfb50657967001e634e4 | 593 | py | Python | common/data_refinery_common/migrations/0010_auto_20190125_1655.py | erflynn/refinebio | 4ead4082a6b98f7fc8cffdc62c4394338a577f3d | [
"BSD-3-Clause"
] | 106 | 2018-03-05T16:24:47.000Z | 2022-03-19T19:12:25.000Z | common/data_refinery_common/migrations/0010_auto_20190125_1655.py | erflynn/refinebio | 4ead4082a6b98f7fc8cffdc62c4394338a577f3d | [
"BSD-3-Clause"
] | 1,494 | 2018-02-27T17:02:21.000Z | 2022-03-24T15:10:30.000Z | common/data_refinery_common/migrations/0010_auto_20190125_1655.py | erflynn/refinebio | 4ead4082a6b98f7fc8cffdc62c4394338a577f3d | [
"BSD-3-Clause"
] | 15 | 2019-02-03T01:34:59.000Z | 2022-03-29T01:59:13.000Z | # Generated by Django 2.1.5 on 2019-01-25 16:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("data_refinery_common", "0009_es_cache"),
]
operations = [
migrations.AddField(
model_name="dataset",
name="sha1",
... | 24.708333 | 75 | 0.588533 | 64 | 593 | 5.3125 | 0.71875 | 0.105882 | 0.135294 | 0.158824 | 0.223529 | 0.223529 | 0 | 0 | 0 | 0 | 0 | 0.054632 | 0.290051 | 593 | 23 | 76 | 25.782609 | 0.752969 | 0.075885 | 0 | 0.352941 | 1 | 0 | 0.117216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
21b6504873c6c422500d4a9c19f2abf9476fba3d | 314 | py | Python | utils.py | hherrerob/Automated-Resume-Screening-System | 4788024d58211b02ccdb4e9599bf08b1a5ceeb40 | [
"MIT"
] | null | null | null | utils.py | hherrerob/Automated-Resume-Screening-System | 4788024d58211b02ccdb4e9599bf08b1a5ceeb40 | [
"MIT"
] | null | null | null | utils.py | hherrerob/Automated-Resume-Screening-System | 4788024d58211b02ccdb4e9599bf08b1a5ceeb40 | [
"MIT"
] | null | null | null | from flask import jsonify
def make_response(status, message):
raw_response = {
"status": status
}
if status == 200:
raw_response["results"] = message
else:
raw_response["message"] = message
resp = jsonify(raw_response)
resp.status_code = status
return resp
| 17.444444 | 41 | 0.624204 | 35 | 314 | 5.428571 | 0.485714 | 0.231579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.283439 | 314 | 17 | 42 | 18.470588 | 0.831111 | 0 | 0 | 0 | 0 | 0 | 0.063694 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
21b9e59ea383e0b587806904e6e2bc220070db5a | 682 | py | Python | dummyslurm/setup.py | tdegeus/slurm-epfl | 32def6920d9b76eea184dba4756589264498023d | [
"MIT"
] | null | null | null | dummyslurm/setup.py | tdegeus/slurm-epfl | 32def6920d9b76eea184dba4756589264498023d | [
"MIT"
] | null | null | null | dummyslurm/setup.py | tdegeus/slurm-epfl | 32def6920d9b76eea184dba4756589264498023d | [
"MIT"
] | null | null | null | from setuptools import find_packages
from setuptools import setup
setup(
name="dummyslurm",
license="MIT",
author="Tom de Geus",
author_email="tom@geus.me",
description="Dummy slurm installation",
long_description="Dummy slurm installation",
keywords="SLURM",
url="https://github.com/tde... | 27.28 | 48 | 0.623167 | 65 | 682 | 6.430769 | 0.615385 | 0.066986 | 0.095694 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.250733 | 682 | 24 | 49 | 28.416667 | 0.818004 | 0 | 0 | 0 | 0 | 0 | 0.410557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.086957 | 0 | 0.086957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
21bfdd60daace63bc8e65a94ab93a210963d26b5 | 3,576 | py | Python | examples/radial_menu.py | MiguelRobledo/workshop.py | 0159eb752e3154d4eb051fdf242a9d0157ab0887 | [
"MIT"
] | 1 | 2019-05-28T15:01:13.000Z | 2019-05-28T15:01:13.000Z | examples/radial_menu.py | MiguelRobledo/workshop.py | 0159eb752e3154d4eb051fdf242a9d0157ab0887 | [
"MIT"
] | null | null | null | examples/radial_menu.py | MiguelRobledo/workshop.py | 0159eb752e3154d4eb051fdf242a9d0157ab0887 | [
"MIT"
] | null | null | null | # Original by /u/Oran9eUtan
# https://redd.it/bq45gc
# Converted to Python by Peppermint#2241
each_player = ongoing_each_player(all, all)
n_allowed_heroes = count_of(allowed_heroes(event_player))
interact_pressed = is_button_held(event_player, interact)
eye_pos = eye_position(event_player)
rule "Reset menu positions ... | 29.311475 | 164 | 0.756991 | 567 | 3,576 | 4.395062 | 0.243386 | 0.189807 | 0.043339 | 0.050562 | 0.396067 | 0.317416 | 0.305377 | 0.279695 | 0.261637 | 0.229535 | 0 | 0.023159 | 0.130593 | 3,576 | 121 | 165 | 29.553719 | 0.778385 | 0.024049 | 0 | 0.244444 | 0 | 0 | 0.094405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
21c54b7a57604b5f308ac3aab04a31a32f5f6b7c | 1,853 | py | Python | igvm/exceptions.py | lamaral/igvm | ac44a4ba6830433b3040405d7da98067d9f025a3 | [
"MIT"
] | 14 | 2018-02-15T14:09:54.000Z | 2021-07-19T01:55:58.000Z | igvm/exceptions.py | lamaral/igvm | ac44a4ba6830433b3040405d7da98067d9f025a3 | [
"MIT"
] | 129 | 2018-02-19T09:47:18.000Z | 2022-03-02T14:08:10.000Z | igvm/exceptions.py | lamaral/igvm | ac44a4ba6830433b3040405d7da98067d9f025a3 | [
"MIT"
] | 10 | 2018-02-16T15:56:59.000Z | 2021-05-14T23:31:31.000Z | """igvm - Exceptions
Copyright (c) 2018 InnoGames GmbH
"""
class IGVMError(Exception):
pass
class ConfigError(IGVMError):
"""Indicates an error with the Serveradmin configuration."""
pass
class HypervisorError(IGVMError):
"""Something went wrong on the hypervisor."""
pass
class NetworkError... | 20.820225 | 66 | 0.642742 | 193 | 1,853 | 6.082902 | 0.398964 | 0.099659 | 0.054514 | 0.063884 | 0.153322 | 0.11925 | 0.068143 | 0 | 0 | 0 | 0 | 0.002886 | 0.252024 | 1,853 | 88 | 67 | 21.056818 | 0.844156 | 0.291419 | 0 | 0.302326 | 0 | 0 | 0.052335 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 1 | 0.046512 | false | 0.302326 | 0 | 0.023256 | 0.395349 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
21c6d0b4b938001532a3640675f298b2bb5fd68b | 3,045 | py | Python | examples/ernie_sat/local/sedit_arg_parser.py | Mu-L/PaddleSpeech | 0fa3fdb9ee89ca399b0f63ef2117c6370dc1f33d | [
"Apache-2.0"
] | null | null | null | examples/ernie_sat/local/sedit_arg_parser.py | Mu-L/PaddleSpeech | 0fa3fdb9ee89ca399b0f63ef2117c6370dc1f33d | [
"Apache-2.0"
] | null | null | null | examples/ernie_sat/local/sedit_arg_parser.py | Mu-L/PaddleSpeech | 0fa3fdb9ee89ca399b0f63ef2117c6370dc1f33d | [
"Apache-2.0"
] | null | null | null | import argparse
def parse_args():
# parse args and config and redirect to train_sp
parser = argparse.ArgumentParser(
description="Synthesize with acoustic model & vocoder")
# acoustic model
parser.add_argument(
'--am',
type=str,
default='fastspeech2_csmsc',
choi... | 35.823529 | 102 | 0.622332 | 356 | 3,045 | 5.151685 | 0.255618 | 0.098146 | 0.185387 | 0.088332 | 0.420938 | 0.370774 | 0.261723 | 0.229008 | 0.189749 | 0.143948 | 0 | 0.006547 | 0.247619 | 3,045 | 84 | 103 | 36.25 | 0.793976 | 0.025944 | 0 | 0.405405 | 0 | 0 | 0.385811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013514 | false | 0 | 0.013514 | 0 | 0.040541 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
21c6e54c53dfc95007e5b2f40fa0f3853059cf5f | 1,054 | py | Python | alg3dpy/tests/test_vector.py | saullocastro/alg3dpy | a3bf5fcef177a869447661166bf4aa7ef4365568 | [
"BSD-3-Clause"
] | 2 | 2019-02-05T06:12:27.000Z | 2020-03-15T21:37:33.000Z | alg3dpy/tests/test_vector.py | saullocastro/alg3dpy | a3bf5fcef177a869447661166bf4aa7ef4365568 | [
"BSD-3-Clause"
] | null | null | null | alg3dpy/tests/test_vector.py | saullocastro/alg3dpy | a3bf5fcef177a869447661166bf4aa7ef4365568 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
def test_vector():
from alg3dpy.line import asline
from alg3dpy.vector import asvector
from alg3dpy.plane import plane2lines
xaxis = asvector([1, 0, 0])
yaxis = asvector([0, 1, 0])
zaxis = asvector([0, 0, 1])
yaxisneg = asvector([0, -1, 0])
assert xaxis.anglewith(yaxi... | 35.133333 | 53 | 0.594877 | 162 | 1,054 | 3.864198 | 0.203704 | 0.041534 | 0.023962 | 0.070288 | 0.185304 | 0.134185 | 0.038339 | 0 | 0 | 0 | 0 | 0.068881 | 0.228653 | 1,054 | 29 | 54 | 36.344828 | 0.701107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.481481 | 1 | 0.037037 | false | 0 | 0.148148 | 0 | 0.185185 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
21c84ec2962f4cabe372bad1ec35d46334db44ad | 460 | py | Python | tess/src/directories.py | andresscode/tess-cli | ec0a1c865f627637a37c9f1a9b17c5ce6c7a26cc | [
"MIT"
] | null | null | null | tess/src/directories.py | andresscode/tess-cli | ec0a1c865f627637a37c9f1a9b17c5ce6c7a26cc | [
"MIT"
] | null | null | null | tess/src/directories.py | andresscode/tess-cli | ec0a1c865f627637a37c9f1a9b17c5ce6c7a26cc | [
"MIT"
] | null | null | null | class Directory:
SOLUTIONS = 'solutions'
CASES = 'cases'
BUILD = 'build'
TESS = '.tess'
DEBUG_SOLUTIONS = '.tess/debug/src'
DEBUG_BUILD = '.tess/debug/build'
CUSTOM_CONFIG_LINUX = '~/.config/tess'
CUSTOM_CONFIG_MAC = '~/Library/Application\\ Support/Tess'
@staticmethod
def init(... | 30.666667 | 70 | 0.656522 | 48 | 460 | 6.125 | 0.395833 | 0.091837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219565 | 460 | 14 | 71 | 32.857143 | 0.818942 | 0 | 0 | 0 | 0 | 0 | 0.230435 | 0.05 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0.076923 | 0.846154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
21d5966b8848acc25706e3eb669f0243b618f52f | 5,258 | py | Python | rrtimetable/rrtimetable/gtfs2rrrr.py | oooits72/rrrr | 32e98bc593a853008864a130e5c26c113a5f2c7d | [
"BSD-2-Clause"
] | null | null | null | rrtimetable/rrtimetable/gtfs2rrrr.py | oooits72/rrrr | 32e98bc593a853008864a130e5c26c113a5f2c7d | [
"BSD-2-Clause"
] | null | null | null | rrtimetable/rrtimetable/gtfs2rrrr.py | oooits72/rrrr | 32e98bc593a853008864a130e5c26c113a5f2c7d | [
"BSD-2-Clause"
] | null | null | null | from model.transit import *
from gtfsdb import GTFSDatabase
import sys
from exporter.timetable3 import export
import exporter.timetable4
from datetime import timedelta, date
MAX_DAYS = 32
def put_gtfs_modes(tdata):
PhysicalMode(tdata,'0',name='Tram')
PhysicalMode(tdata,'1',name='Metro')
PhysicalMode(tdata... | 38.948148 | 174 | 0.686383 | 724 | 5,258 | 4.729282 | 0.244475 | 0.035047 | 0.035047 | 0.024825 | 0.277453 | 0.259054 | 0.22868 | 0.21028 | 0.21028 | 0.157126 | 0 | 0.009093 | 0.205211 | 5,258 | 134 | 175 | 39.238806 | 0.810242 | 0.003994 | 0 | 0.223214 | 0 | 0.008929 | 0.064362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.026786 | 0.0625 | null | null | 0.026786 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
21d6e2f4acb563e98c1f7995f076c322bbe9c38d | 329 | py | Python | images.py | rvg77/Weather_bot | 4716c7cfa22740dc05dfe768b1150e69a8d80cf4 | [
"MIT"
] | null | null | null | images.py | rvg77/Weather_bot | 4716c7cfa22740dc05dfe768b1150e69a8d80cf4 | [
"MIT"
] | null | null | null | images.py | rvg77/Weather_bot | 4716c7cfa22740dc05dfe768b1150e69a8d80cf4 | [
"MIT"
] | null | null | null | from flickrapi import FlickrAPI
import config
def get(tags):
flickr = FlickrAPI(config.FLICKR_PUBLIC, config.FLICKR_SECRET, format='parsed-json')
rnd = 1
raw = flickr.photos.search(tags=tags[0:1], text=tags[1], tag_node='all', per_page=rnd, extras=config.extras)
return raw['photos']['photo'][rnd - 1][... | 32.9 | 112 | 0.705167 | 50 | 329 | 4.54 | 0.6 | 0.132159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017606 | 0.136778 | 329 | 9 | 113 | 36.555556 | 0.78169 | 0 | 0 | 0 | 0 | 0 | 0.091185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
21e5dbdb2f7dff7b8135ef888c0daf3f4d0890d1 | 2,296 | py | Python | tests/test_validate.py | leipzig/xd-cwl-utils | 28d875ad7804c0e787d46f82a67a6b9d24d73679 | [
"Apache-2.0"
] | null | null | null | tests/test_validate.py | leipzig/xd-cwl-utils | 28d875ad7804c0e787d46f82a67a6b9d24d73679 | [
"Apache-2.0"
] | null | null | null | tests/test_validate.py | leipzig/xd-cwl-utils | 28d875ad7804c0e787d46f82a67a6b9d24d73679 | [
"Apache-2.0"
] | null | null | null |
from tests.test_base import TestBase
from pathlib import Path
from xd_cwl_utils.helpers.get_paths import get_tool_metadata
from xd_cwl_utils.validate import metadata_validator_factory
from xd_cwl_utils.classes.metadata.tool_metadata import ParentToolMetadata, SubtoolMetadata
class TestValidateMetadata(TestBase):
... | 43.320755 | 209 | 0.752178 | 269 | 2,296 | 6.048327 | 0.249071 | 0.095882 | 0.103258 | 0.118009 | 0.731408 | 0.599877 | 0.534112 | 0.521205 | 0.49539 | 0.426552 | 0 | 0.005263 | 0.172474 | 2,296 | 52 | 210 | 44.153846 | 0.851053 | 0.1973 | 0 | 0.419355 | 0 | 0.064516 | 0.123153 | 0.110016 | 0 | 0 | 0 | 0.019231 | 0.064516 | 1 | 0.193548 | false | 0 | 0.16129 | 0.064516 | 0.548387 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
21f0610f9c429eafbd7f7a9b6735df0089388e4e | 1,035 | py | Python | e-mail/enviar_email.py | HeyLucasLeao/HeyLucasLeao.github.io | 5c5da105763bbaeb3391ca716a09e87490b6eb1f | [
"MIT"
] | 1 | 2021-05-14T22:42:02.000Z | 2021-05-14T22:42:02.000Z | e-mail/enviar_email.py | HeyLucasLeao/HeyLucasLeao.github.io | 5c5da105763bbaeb3391ca716a09e87490b6eb1f | [
"MIT"
] | null | null | null | e-mail/enviar_email.py | HeyLucasLeao/HeyLucasLeao.github.io | 5c5da105763bbaeb3391ca716a09e87490b6eb1f | [
"MIT"
] | null | null | null | import smtplib
from email.message import EmailMessage
from os import environ
from time import sleep
from datetime import datetime
"""envio um alerta sobre atualização do relatório
para pessoas próximas, utilizando um gmail bot"""
enderecos_de_usuarios = environ.get("ADRESS_USERS")
emails = enderecos_de_usuarios.spli... | 25.243902 | 77 | 0.700483 | 145 | 1,035 | 4.875862 | 0.551724 | 0.056577 | 0.053748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011614 | 0.168116 | 1,035 | 40 | 78 | 25.875 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0.179679 | 0.02246 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0.071429 | 0.178571 | 0 | 0.214286 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1d05e137c8e932893de9f86db9d1dd1e6a4e1e10 | 9,452 | py | Python | test/mitmproxy/addons/test_proxyauth.py | takeratta/mitmproxy | 569d275d763f499cce9673fcf118dcc8d59d2eeb | [
"MIT"
] | 4 | 2018-03-14T03:47:22.000Z | 2018-06-28T08:00:39.000Z | test/mitmproxy/addons/test_proxyauth.py | takeratta/mitmproxy | 569d275d763f499cce9673fcf118dcc8d59d2eeb | [
"MIT"
] | null | null | null | test/mitmproxy/addons/test_proxyauth.py | takeratta/mitmproxy | 569d275d763f499cce9673fcf118dcc8d59d2eeb | [
"MIT"
] | 1 | 2018-04-22T15:43:46.000Z | 2018-04-22T15:43:46.000Z | import binascii
import pytest
from unittest import mock
from mitmproxy import exceptions
from mitmproxy.addons import proxyauth
from mitmproxy.test import taddons
from mitmproxy.test import tflow
from mitmproxy.test import tutils
class TestMkauth:
def test_mkauth_scheme(self):
assert proxyauth.mkauth('u... | 37.507937 | 133 | 0.563479 | 970 | 9,452 | 5.401031 | 0.137113 | 0.062989 | 0.064134 | 0.100973 | 0.693835 | 0.62531 | 0.584654 | 0.580263 | 0.528727 | 0.446268 | 0 | 0.00761 | 0.318769 | 9,452 | 251 | 134 | 37.657371 | 0.806026 | 0 | 0 | 0.471698 | 0 | 0.014151 | 0.169171 | 0.074587 | 0 | 0 | 0 | 0 | 0.198113 | 1 | 0.051887 | false | 0.056604 | 0.037736 | 0 | 0.103774 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1d065f1a5b01dcca6c7a7a8f8392fd06df430cc0 | 2,340 | py | Python | models/randomized_lu.py | pjrule/math126-final-project | 93c9953366fd684289ba97297ab16651f8c92d39 | [
"MIT"
] | null | null | null | models/randomized_lu.py | pjrule/math126-final-project | 93c9953366fd684289ba97297ab16651f8c92d39 | [
"MIT"
] | null | null | null | models/randomized_lu.py | pjrule/math126-final-project | 93c9953366fd684289ba97297ab16651f8c92d39 | [
"MIT"
] | null | null | null | """Randomized LU decomposition."""
import numpy as np
import scipy.linalg as la
from typing import Tuple
PQLU = Tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray]
def randomized_lu(A: np.ndarray, k: int, l: int, seed: int = 0) -> PQLU:
"""Performs a randomized rank-k LU decomposition of A.
Adapted fr... | 30.789474 | 81 | 0.594872 | 430 | 2,340 | 3.155814 | 0.309302 | 0.020634 | 0.008843 | 0.039794 | 0.080324 | 0.026529 | 0 | 0 | 0 | 0 | 0 | 0.014277 | 0.281624 | 2,340 | 75 | 82 | 31.2 | 0.788816 | 0.509402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.382353 | 1 | 0.029412 | false | 0 | 0.088235 | 0 | 0.147059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
df062a661710aa4fa4a6d5eb73fc96d94ec2f731 | 322 | py | Python | tests/conftest.py | opensafely/risk-factors-research | 32b59c82ee565d974fa2ce863a436914ce17dc03 | [
"MIT"
] | 29 | 2020-06-23T21:43:28.000Z | 2022-03-11T11:49:55.000Z | tests/conftest.py | opensafely/risk-factors-research | 32b59c82ee565d974fa2ce863a436914ce17dc03 | [
"MIT"
] | 7 | 2020-06-26T18:48:43.000Z | 2021-08-11T14:01:18.000Z | tests/conftest.py | opensafely/risk-factors-research | 32b59c82ee565d974fa2ce863a436914ce17dc03 | [
"MIT"
] | 8 | 2020-06-23T21:43:32.000Z | 2022-01-07T10:51:20.000Z | import os
from pathlib import Path
def pytest_generate_tests(metafunc):
"""Source the test environment
"""
for line in open(Path(__file__).absolute().parent.parent / ".env-test"):
k, v = line.split("=", 1)
k = k.strip()
if not os.environ.get(k):
os.environ[k] = v.strip(... | 24.769231 | 76 | 0.590062 | 45 | 322 | 4.088889 | 0.688889 | 0.021739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004184 | 0.257764 | 322 | 12 | 77 | 26.833333 | 0.76569 | 0.083851 | 0 | 0 | 1 | 0 | 0.035211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
df0e4bc6c01a3fd360af919cd7a376f61a4072b9 | 521 | py | Python | spkcspider/apps/spider/migrations/0009_auto_20190929_2117.py | devkral/spkbspider | 97e448b4da412acebd66c4469c7fcdd07bf90ed2 | [
"MIT"
] | 5 | 2019-06-24T14:15:54.000Z | 2021-05-14T23:16:31.000Z | spkcspider/apps/spider/migrations/0009_auto_20190929_2117.py | devkral/spkbspider | 97e448b4da412acebd66c4469c7fcdd07bf90ed2 | [
"MIT"
] | 2 | 2018-06-19T09:56:18.000Z | 2018-11-20T12:02:44.000Z | spkcspider/apps/spider/migrations/0009_auto_20190929_2117.py | devkral/spkbspider | 97e448b4da412acebd66c4469c7fcdd07bf90ed2 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.5 on 2019-09-29 21:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('spider_base', '0008_auto_20190817_1815'),
]
operations = [
migrations.AlterField(
model_name='assignedprotection',
n... | 27.421053 | 170 | 0.612284 | 59 | 521 | 5.271186 | 0.847458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080201 | 0.234165 | 521 | 18 | 171 | 28.944444 | 0.699248 | 0.086372 | 0 | 0 | 1 | 0 | 0.236287 | 0.048523 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
df10538eb1d6c1760f3cbe7668d7cd9ebc44d974 | 641 | py | Python | python/offer/45.py | ParkinWu/leetcode | b31312bdefbb2be795f3459e1a76fbc927cab052 | [
"MIT"
] | null | null | null | python/offer/45.py | ParkinWu/leetcode | b31312bdefbb2be795f3459e1a76fbc927cab052 | [
"MIT"
] | null | null | null | python/offer/45.py | ParkinWu/leetcode | b31312bdefbb2be795f3459e1a76fbc927cab052 | [
"MIT"
] | null | null | null | # 输入一个正整数数组,把数组里所有数字拼接起来排成一个数,打印能拼接出的所有数字中最小的一个。
#
#
#
# 示例 1:
#
# 输入: [10,2]
# 输出: "102"
# 示例 2:
#
# 输入: [3,30,34,5,9]
# 输出: "3033459"
#
#
# 提示:
#
# 0 < nums.length <= 100
# 说明:
#
# 输出结果可能非常大,所以你需要返回一个字符串而不是整数
# 拼接起来的数字可能会有前导 0,最后结果不需要去掉前导 0
#
# 来源:力扣(LeetCode)
# 链接:https://leetcode-cn.com/problems/ba-shu-zu-pai-c... | 20.03125 | 78 | 0.642746 | 96 | 641 | 4.25 | 0.708333 | 0.02451 | 0.039216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053232 | 0.179407 | 641 | 32 | 79 | 20.03125 | 0.722433 | 0.517941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.