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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11e51bf15fcec5b821f3109548476cd0bddc595c | 1,062 | py | Python | threedi_api_client/versions.py | nens/threedi-api-client | 43b0eb1bd47310b1783f87f6ad8bfbfe0fb4d90a | [
"BSD-3-Clause"
] | null | null | null | threedi_api_client/versions.py | nens/threedi-api-client | 43b0eb1bd47310b1783f87f6ad8bfbfe0fb4d90a | [
"BSD-3-Clause"
] | 16 | 2021-05-31T09:52:04.000Z | 2022-03-14T16:07:19.000Z | threedi_api_client/versions.py | nens/threedi-api-client | 43b0eb1bd47310b1783f87f6ad8bfbfe0fb4d90a | [
"BSD-3-Clause"
] | null | null | null | import re
from .openapi import V3Api
API_VERSIONS = {
"v3": V3Api,
}
try:
from .openapi import V3BetaApi as _V3BetaApi
# Make any missing method on V3BetaApi dispatch to V3Api, so that
# v3-beta is a superset of v3.
class V3BetaApi(_V3BetaApi, V3Api):
pass
API_VERSIONS["v3-beta"] = ... | 22.125 | 74 | 0.680791 | 146 | 1,062 | 4.828767 | 0.342466 | 0.10922 | 0.129078 | 0.096454 | 0.296454 | 0.056738 | 0 | 0 | 0 | 0 | 0 | 0.039663 | 0.216573 | 1,062 | 47 | 75 | 22.595745 | 0.807692 | 0.210923 | 0 | 0.214286 | 0 | 0 | 0.07443 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.214286 | 0.035714 | 0.464286 | 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 |
11e9d7395fe5486e83e12b85d5196e61ddf249d8 | 307 | py | Python | c03/p104_none_type.py | HiAwesome/dive-into-python3-practice | e57504cb0683ebca9c80b20ff0cb3878bdcc3f87 | [
"Apache-2.0"
] | null | null | null | c03/p104_none_type.py | HiAwesome/dive-into-python3-practice | e57504cb0683ebca9c80b20ff0cb3878bdcc3f87 | [
"Apache-2.0"
] | null | null | null | c03/p104_none_type.py | HiAwesome/dive-into-python3-practice | e57504cb0683ebca9c80b20ff0cb3878bdcc3f87 | [
"Apache-2.0"
] | null | null | null | from is_it_true import is_it_true as t
print(type(None))
print(None == False)
print(None == 0)
print(None == '')
print(None is None)
x = None
print(x == None)
y = None
print(x == y)
"""
<class 'NoneType'>
False
False
False
True
True
True
"""
t(None)
t(not None)
"""
no, it is false
yes, it is true
"""
| 9.903226 | 38 | 0.638436 | 56 | 307 | 3.428571 | 0.339286 | 0.1875 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004032 | 0.192182 | 307 | 30 | 39 | 10.233333 | 0.770161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.583333 | 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 |
11ee4de166bf72152f692e4da584f579e87b4c25 | 6,571 | py | Python | ssguan/ignitor/etl/tmp.py | samuelbaizg/ssguan | 97def0609d61e40472554464470758b5fb9eca35 | [
"Apache-2.0"
] | 1 | 2015-07-14T14:24:05.000Z | 2015-07-14T14:24:05.000Z | ssguan/ignitor/etl/tmp.py | samuelbaizg/ssguan | 97def0609d61e40472554464470758b5fb9eca35 | [
"Apache-2.0"
] | null | null | null | ssguan/ignitor/etl/tmp.py | samuelbaizg/ssguan | 97def0609d61e40472554464470758b5fb9eca35 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2015 www.suishouguan.com
#
# Licensed under the Private License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://github.com/samuelbaizg/ssguan/blob/master/LICENSE
#
# Unless ... | 36.303867 | 142 | 0.618627 | 808 | 6,571 | 4.816832 | 0.259901 | 0.023124 | 0.032374 | 0.034687 | 0.170606 | 0.144913 | 0.120761 | 0.108428 | 0.108428 | 0.095324 | 0 | 0.012872 | 0.278801 | 6,571 | 181 | 143 | 36.303867 | 0.808398 | 0.089941 | 0 | 0.195652 | 0 | 0.007246 | 0.069079 | 0 | 0 | 0 | 0 | 0.005525 | 0.065217 | 0 | null | null | 0 | 0.043478 | 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 |
11f149c6d89bf6d2589d926340c454c7aad9e30f | 1,285 | py | Python | tests/test_icd10.py | AberystwythSystemsBiology/icd10-cm-ng | 28d7f9de5302a2451236105ad5f02df2f070b77d | [
"MIT"
] | 46 | 2019-08-12T15:59:09.000Z | 2022-03-18T09:36:38.000Z | tests/test_icd10.py | AberystwythSystemsBiology/icd10-cm-ng | 28d7f9de5302a2451236105ad5f02df2f070b77d | [
"MIT"
] | 3 | 2020-05-29T16:20:20.000Z | 2022-01-03T15:02:37.000Z | tests/test_icd10.py | AberystwythSystemsBiology/icd10-cm-ng | 28d7f9de5302a2451236105ad5f02df2f070b77d | [
"MIT"
] | 13 | 2019-08-29T19:45:04.000Z | 2022-03-29T22:10:49.000Z | import icd10
def test_exists():
assert icd10.exists("T50.B")
assert icd10.exists("T50B") # Omit the period
assert not icd10.exists("A99.8")
assert icd10.exists("Z01.4")
def test_find_salmonella():
dx = icd10.find("A02.1")
assert isinstance(dx, icd10.ICD10)
assert dx.code == "A021"
... | 30.595238 | 83 | 0.664591 | 181 | 1,285 | 4.646409 | 0.337017 | 0.095125 | 0.061831 | 0.071344 | 0.271106 | 0.180737 | 0.097503 | 0.097503 | 0.097503 | 0 | 0 | 0.097963 | 0.197665 | 1,285 | 41 | 84 | 31.341463 | 0.71775 | 0.049805 | 0 | 0.181818 | 0 | 0 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0.787879 | 1 | 0.121212 | false | 0 | 0.030303 | 0 | 0.151515 | 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 |
11f303b2b5bce67173e81a6d3ac64a010aaeef6b | 470 | py | Python | python-review/modules_review.py/useful_modules.py | SandraCoburn/python-web-development | 1f33cdbd970566b128d2e81e665e504da79dcffd | [
"MIT"
] | null | null | null | python-review/modules_review.py/useful_modules.py | SandraCoburn/python-web-development | 1f33cdbd970566b128d2e81e665e504da79dcffd | [
"MIT"
] | null | null | null | python-review/modules_review.py/useful_modules.py | SandraCoburn/python-web-development | 1f33cdbd970566b128d2e81e665e504da79dcffd | [
"MIT"
] | null | null | null | from collections import Counter, defaultdict, OrderedDict
li = [1,2,3,4,5,6,7,8]
print(Counter(li)) # it creates a dictionary from the list that keeps track of how many times a number occur in the list
dictionary = defaultdict(lambda: 5,{'a': 1, 'b': 2}) # if the key doesn't exist it will return 5
print("default di... | 24.736842 | 120 | 0.670213 | 84 | 470 | 3.75 | 0.547619 | 0.019048 | 0.101587 | 0.165079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045918 | 0.165957 | 470 | 18 | 121 | 26.111111 | 0.757653 | 0.344681 | 0 | 0 | 0 | 0 | 0.10596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.272727 | 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 |
11f36f60faafc820eca1bc27b4fe4c5f54aaa139 | 917 | py | Python | services/recommendsystem/recomv1/v1/service.py | X5GON/lamapi | 0558c3b7af520ab83bdbd29e1b1b9b87bdc147b0 | [
"BSD-2-Clause"
] | null | null | null | services/recommendsystem/recomv1/v1/service.py | X5GON/lamapi | 0558c3b7af520ab83bdbd29e1b1b9b87bdc147b0 | [
"BSD-2-Clause"
] | null | null | null | services/recommendsystem/recomv1/v1/service.py | X5GON/lamapi | 0558c3b7af520ab83bdbd29e1b1b9b87bdc147b0 | [
"BSD-2-Clause"
] | null | null | null | from flask import request
from flask_restx import Resource, Namespace
from .core import get_resource_recommend_v1
from ....iomodels import input_def_recommend_v1, output_def
ns_recomv1 = Namespace('recommendsystem',
description='First version of the recommendation system based on KNN models')
i... | 35.269231 | 100 | 0.725191 | 119 | 917 | 5.344538 | 0.478992 | 0.099057 | 0.075472 | 0.084906 | 0.116352 | 0.116352 | 0.116352 | 0.116352 | 0 | 0 | 0 | 0.021025 | 0.17012 | 917 | 25 | 101 | 36.68 | 0.814717 | 0.095965 | 0 | 0 | 0 | 0 | 0.119311 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.235294 | 0 | 0.529412 | 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 |
11f94bb0a5febdc4cdb49a5c86d394429e6443fd | 826 | py | Python | tests/unit/repositories/test_user_skill_repo.py | Maxcutex/pm_api | de1e1a07feecd1be7bb86a87b4ffed012a05aec0 | [
"MIT"
] | null | null | null | tests/unit/repositories/test_user_skill_repo.py | Maxcutex/pm_api | de1e1a07feecd1be7bb86a87b4ffed012a05aec0 | [
"MIT"
] | null | null | null | tests/unit/repositories/test_user_skill_repo.py | Maxcutex/pm_api | de1e1a07feecd1be7bb86a87b4ffed012a05aec0 | [
"MIT"
] | null | null | null | from app.models import UserSkill
from app.repositories.user_skill_repo import UserSkillRepo
from factories.user_skill_factory import UserSkillFactoryFake
from tests.base_test_case import BaseTestCase
class TestUserSkillRepo(BaseTestCase):
def setUp(self):
self.BaseSetUp()
self.repo = UserSkillRepo... | 31.769231 | 76 | 0.725182 | 99 | 826 | 5.707071 | 0.363636 | 0.223009 | 0.127434 | 0.100885 | 0.099115 | 0.099115 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209443 | 826 | 25 | 77 | 33.04 | 0.865237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.15 | false | 0 | 0.2 | 0 | 0.4 | 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 |
11f997ab96580438334d35760fee376988d7afc7 | 828 | py | Python | backend/members/migrations/0002_auto_20220118_2100.py | singsaker/intern | 9376732c6d537f46443ad43afa51e82df2005da8 | [
"MIT"
] | 4 | 2021-10-06T19:09:12.000Z | 2022-03-28T12:14:42.000Z | backend/members/migrations/0002_auto_20220118_2100.py | singsaker/intern | 9376732c6d537f46443ad43afa51e82df2005da8 | [
"MIT"
] | 2 | 2021-11-30T16:07:05.000Z | 2022-02-17T23:57:00.000Z | backend/members/migrations/0002_auto_20220118_2100.py | singsaker/intern | 9376732c6d537f46443ad43afa51e82df2005da8 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.10 on 2022-01-18 21:00
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("members", "0001_initial"),
]
operations = [
migrations.AlterModelOptions(... | 26.709677 | 111 | 0.597826 | 81 | 828 | 6 | 0.604938 | 0.049383 | 0.057613 | 0.090535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034014 | 0.289855 | 828 | 30 | 112 | 27.6 | 0.792517 | 0.055556 | 0 | 0.25 | 1 | 0 | 0.129487 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.25 | 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 |
11fd4cbacf00505924ff1a50b721901b50ad4922 | 5,879 | py | Python | stw_sender_v4.py | preetha2711/Stop-and-Wait-Protocol | 568d909400da6de8a979934f5330a78a054421d2 | [
"MIT"
] | 3 | 2020-08-31T15:14:04.000Z | 2020-10-16T19:07:14.000Z | stw_sender_v4.py | preetha2711/Stop-and-Wait-Protocol | 568d909400da6de8a979934f5330a78a054421d2 | [
"MIT"
] | null | null | null | stw_sender_v4.py | preetha2711/Stop-and-Wait-Protocol | 568d909400da6de8a979934f5330a78a054421d2 | [
"MIT"
] | 5 | 2020-09-29T19:30:54.000Z | 2021-04-08T09:36:14.000Z | """
This is the sender side of a stop and wait protocol.
It does the following:
1) Asks for user input for bitstring, propogation time and probability of
package being 'dropped' between the sender and receiver.
2) It then proceeds to send or not send (to simulate dropping in an
unreliable channel) the bits of the... | 37.208861 | 87 | 0.447525 | 541 | 5,879 | 4.829945 | 0.358595 | 0.027555 | 0.024876 | 0.03253 | 0.136242 | 0.060467 | 0.025258 | 0 | 0 | 0 | 0 | 0.023635 | 0.467426 | 5,879 | 157 | 88 | 37.44586 | 0.810923 | 0.267903 | 0 | 0.285714 | 0 | 0 | 0.051557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057143 | null | null | 0.114286 | 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 |
f50330222191f635e3808203838b8dae70d53ddd | 1,375 | py | Python | watchapp/forms.py | kepha-okari/the-watch | 80720ad4ffc394e5acbca0fbf1fc9f1dbff0f56f | [
"MIT"
] | null | null | null | watchapp/forms.py | kepha-okari/the-watch | 80720ad4ffc394e5acbca0fbf1fc9f1dbff0f56f | [
"MIT"
] | 7 | 2020-02-11T23:48:54.000Z | 2022-03-11T23:16:45.000Z | watchapp/forms.py | kepha-okari/the-watch | 80720ad4ffc394e5acbca0fbf1fc9f1dbff0f56f | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.auth.forms import AuthenticationForm
from .models import Neighborhood,Post,Business,Profile
class NeighborhoodForm(forms.ModelForm):
'''
Class to create a form for an authenticated user to create neighborhood
'''
class Meta:
model = Neighborhood
... | 32.738095 | 110 | 0.511273 | 121 | 1,375 | 5.760331 | 0.31405 | 0.057389 | 0.109039 | 0.120517 | 0.335725 | 0.335725 | 0.335725 | 0.335725 | 0.335725 | 0.335725 | 0 | 0 | 0.182545 | 1,375 | 41 | 111 | 33.536585 | 0.620107 | 0.433455 | 0 | 0.210526 | 0 | 0 | 0.162011 | 0.02933 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.578947 | 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 |
f5038acb2035622aec38d57ca8343ddbab2a7099 | 5,077 | py | Python | 03-Hard/Prime_Stacks_Problem/Python/prime-stacks.py | acmatku/ku-ipc-2016 | 54d1672c68c788502ceff6b9b2e453640d9fd754 | [
"MIT"
] | 2 | 2016-04-28T03:18:59.000Z | 2016-05-12T21:14:20.000Z | 03-Hard/Prime_Stacks_Problem/Python/prime-stacks.py | acmatku/ku-ipc-2016 | 54d1672c68c788502ceff6b9b2e453640d9fd754 | [
"MIT"
] | null | null | null | 03-Hard/Prime_Stacks_Problem/Python/prime-stacks.py | acmatku/ku-ipc-2016 | 54d1672c68c788502ceff6b9b2e453640d9fd754 | [
"MIT"
] | null | null | null | #Stephen Longofono
#Prime Stacks, Solution
#April 21, 2016
#Expects 5 space-delineated lines of intgers
#first and second line are the original stacks given as input, bottom to top
#third, fourth, and fifth are the solution stacks, bottom to top
#This solves the optimal solution, which should be the first one they cou... | 26.862434 | 587 | 0.68505 | 862 | 5,077 | 4.033643 | 0.339907 | 0.056946 | 0.012079 | 0.032787 | 0.383952 | 0.359793 | 0.281852 | 0.281852 | 0.270923 | 0.225482 | 0 | 0.125499 | 0.161907 | 5,077 | 188 | 588 | 27.005319 | 0.691657 | 0.250739 | 0 | 0.407407 | 0 | 0 | 0.049163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.014815 | null | null | 0.148148 | 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 |
ee93387e7273f3682779ba0c98706fa08d8751e1 | 987 | py | Python | Basico/user.py | uadson/poo | 27a7afb3eea5c181d39b645de8d492011ee10475 | [
"MIT"
] | 1 | 2020-10-19T21:39:19.000Z | 2020-10-19T21:39:19.000Z | Basico/user.py | uadson/poo | 27a7afb3eea5c181d39b645de8d492011ee10475 | [
"MIT"
] | null | null | null | Basico/user.py | uadson/poo | 27a7afb3eea5c181d39b645de8d492011ee10475 | [
"MIT"
] | null | null | null | from time import sleep
class User():
def __init__(self, first_name, last_name, age, login_attempts):
self.first_name = first_name
self.last_name = last_name
self.age = age
self.login_attempts = login_attempts
def describe_user(self):
print(f'Nome: {self.first_name.title()}.')
print(f'Sobrenome: {self.... | 18.980769 | 64 | 0.701114 | 144 | 987 | 4.534722 | 0.340278 | 0.218989 | 0.059724 | 0.045942 | 0.272588 | 0.272588 | 0.168453 | 0.168453 | 0.168453 | 0.168453 | 0 | 0.023753 | 0.14691 | 987 | 52 | 65 | 18.980769 | 0.751781 | 0 | 0 | 0.129032 | 0 | 0 | 0.254049 | 0.096154 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0 | 0.032258 | 0 | 0.225806 | 0.258065 | 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 |
ee9966ab207ee8f0baba0722d3b1a02c25199f67 | 1,468 | py | Python | tests/test_commands.py | francescotenerini/django-money-rates | ac1f7636b9a38d3e153eb833019342c4d88634c2 | [
"BSD-3-Clause"
] | 75 | 2015-01-02T11:10:35.000Z | 2022-01-29T06:05:38.000Z | tests/test_commands.py | juliocesar-io/django-money-rates | ac1f7636b9a38d3e153eb833019342c4d88634c2 | [
"BSD-3-Clause"
] | 24 | 2015-02-05T21:04:05.000Z | 2019-03-29T08:19:41.000Z | tests/test_commands.py | Songtrust/django-money-rates | a2b9e7d31d1799751e7dfaf6cb5094256530e79e | [
"BSD-3-Clause"
] | 59 | 2015-04-06T19:15:54.000Z | 2019-12-18T19:45:06.000Z | from __future__ import unicode_literals
import pytest
from django.core.management import call_command
from django.core.management.base import CommandError
from djmoney_rates.backends import BaseRateBackend
from djmoney_rates.models import Rate, RateSource
from djmoney_rates.settings import money_rates_settings
clas... | 34.139535 | 92 | 0.76703 | 197 | 1,468 | 5.472081 | 0.416244 | 0.120594 | 0.07885 | 0.081633 | 0.267161 | 0.267161 | 0.267161 | 0.267161 | 0.19295 | 0.19295 | 0 | 0.007843 | 0.131471 | 1,468 | 42 | 93 | 34.952381 | 0.837647 | 0.048365 | 0 | 0.222222 | 0 | 0 | 0.165098 | 0.023896 | 0 | 0 | 0 | 0 | 0.185185 | 1 | 0.148148 | false | 0 | 0.259259 | 0.037037 | 0.555556 | 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 |
ee9ac40a4411f2a00d4387750ea399618de8938c | 1,828 | py | Python | app/modules/resources/model.py | DsCodeStudio98m0f/DTia-Nugrahab | 218ef140727849206fe76f42f43a5a231cfda9d9 | [
"Apache-2.0"
] | 16 | 2020-03-26T13:21:15.000Z | 2021-07-25T18:49:05.000Z | app/modules/resources/model.py | DsCodeStudio98m0f/DTia-Nugrahab | 218ef140727849206fe76f42f43a5a231cfda9d9 | [
"Apache-2.0"
] | 13 | 2020-03-24T18:19:48.000Z | 2022-03-12T00:18:59.000Z | app/modules/resources/model.py | DsCodeStudio98m0f/DTia-Nugrahab | 218ef140727849206fe76f42f43a5a231cfda9d9 | [
"Apache-2.0"
] | 14 | 2020-03-31T01:02:38.000Z | 2021-09-17T01:10:36.000Z | """model
Database Table Model
PROJECT: BaoAI Backend
AUTHOR: henry <703264459@qq.com>
WEBSITE: http://www.baoai.co
COPYRIGHT: Copyright © 2016-2020 广州源宝网络有限公司 Guangzhou Yuanbao Network Co., Ltd. ( http://www.ybao.org )
LICENSE: Apache-2.0
"""
from app import db
from app.common.mixin import *
class Resources(TableM... | 40.622222 | 185 | 0.690372 | 275 | 1,828 | 4.570909 | 0.429091 | 0.089101 | 0.111376 | 0.114558 | 0.286396 | 0.239459 | 0.170247 | 0.062053 | 0.062053 | 0 | 0 | 0.057105 | 0.176149 | 1,828 | 44 | 186 | 41.545455 | 0.776892 | 0.329322 | 0 | 0 | 0 | 0 | 0.02549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 1 | 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 |
eea25d0bfb918961a3bc1e9aece03407fbbcb97c | 5,554 | py | Python | src/ransac.py | bburns/PyVoyager | 20eea9dd445c503cd00d6a18c88af8ec93ef1c74 | [
"MIT"
] | 6 | 2016-10-25T14:42:02.000Z | 2021-11-30T23:38:23.000Z | src/ransac.py | bburns/PyVoyager | 20eea9dd445c503cd00d6a18c88af8ec93ef1c74 | [
"MIT"
] | null | null | null | src/ransac.py | bburns/PyVoyager | 20eea9dd445c503cd00d6a18c88af8ec93ef1c74 | [
"MIT"
] | null | null | null |
"""
Obtain the best translation parameters tx,ty for a given set of data, using RANSAC.
The data is a set of point pairs, eg
[[[x1,y1],[x1',y1']],
[[x2,y2],[x2',y2']],
...
]
The output is [tx,ty], which can be used to predict x',y' given x,y, i.e.
x' = x + tx
y' = y + ty
See https://en.wikipedia.org/wiki/RAN... | 27.77 | 97 | 0.588045 | 711 | 5,554 | 4.582278 | 0.278481 | 0.006753 | 0.029466 | 0.009208 | 0.065684 | 0.054635 | 0.040209 | 0.040209 | 0.03008 | 0.03008 | 0 | 0.02058 | 0.317609 | 5,554 | 199 | 98 | 27.909548 | 0.83905 | 0.172128 | 0 | 0.2 | 0 | 0 | 0.033216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.01 | null | null | 0.1 | 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 |
eea4e2cb32d74b515ce051b5b2124eb28e7304ca | 1,542 | py | Python | tastetoursjapan_project/contactus/forms.py | AoiToShiro/django-tastetours | 5577742bd97f1eafc23ebf75317afa4015ee48fc | [
"Apache-2.0"
] | null | null | null | tastetoursjapan_project/contactus/forms.py | AoiToShiro/django-tastetours | 5577742bd97f1eafc23ebf75317afa4015ee48fc | [
"Apache-2.0"
] | 7 | 2020-06-05T18:14:30.000Z | 2022-03-11T23:20:16.000Z | tastetoursjapan_project/contactus/forms.py | AoiToShiro/django-tastetour | 5577742bd97f1eafc23ebf75317afa4015ee48fc | [
"Apache-2.0"
] | null | null | null | # contactus/forms.py
from crispy_forms.helper import FormHelper
from django import forms
class ContactForm(forms.Form):
contact_name = forms.CharField(required=True)
from_email = forms.EmailField(required=True)
subject = forms.CharField(required=True)
message = forms.CharField(widget=forms.Textarea, re... | 40.578947 | 72 | 0.589494 | 163 | 1,542 | 5.417178 | 0.496933 | 0.05436 | 0.04983 | 0.05889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.278859 | 1,542 | 37 | 73 | 41.675676 | 0.794065 | 0.493515 | 0 | 0 | 0 | 0 | 0.126482 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.615385 | 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 |
eea611cc507a57deb858558d1b72a7ab6ac8336e | 5,724 | py | Python | Gaia_parallaxes/compute_distances.py | logan-pearce/breakthroughlisten | 026aa8ab9c3f76044f60a85142b22a390df683b8 | [
"MIT"
] | 1 | 2019-06-12T05:03:16.000Z | 2019-06-12T05:03:16.000Z | Gaia_parallaxes/compute_distances.py | logan-pearce/breakthroughlisten | 026aa8ab9c3f76044f60a85142b22a390df683b8 | [
"MIT"
] | null | null | null | Gaia_parallaxes/compute_distances.py | logan-pearce/breakthroughlisten | 026aa8ab9c3f76044f60a85142b22a390df683b8 | [
"MIT"
] | null | null | null | ###############################################################################
# #
# MeerKAT 1-Million star target list: #
# compute_distances.py #
... | 36.458599 | 104 | 0.54123 | 830 | 5,724 | 3.686747 | 0.322892 | 0.011765 | 0.019608 | 0.021569 | 0.202614 | 0.192484 | 0.133333 | 0.095425 | 0.081046 | 0.062745 | 0 | 0.050294 | 0.287911 | 5,724 | 156 | 105 | 36.692308 | 0.700442 | 0.34731 | 0 | 0.188889 | 0 | 0 | 0.111274 | 0.009663 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.011111 | 0.066667 | null | null | 0.122222 | 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 |
eeac775a534ddfd8a9efb9e17dd442bca98f6436 | 3,404 | py | Python | Peach/fixup.py | aleasims/Peach | bb56841e943d719d5101fee0a503ed34308eda04 | [
"MIT"
] | null | null | null | Peach/fixup.py | aleasims/Peach | bb56841e943d719d5101fee0a503ed34308eda04 | [
"MIT"
] | null | null | null | Peach/fixup.py | aleasims/Peach | bb56841e943d719d5101fee0a503ed34308eda04 | [
"MIT"
] | 1 | 2020-07-26T03:57:45.000Z | 2020-07-26T03:57:45.000Z |
'''
Implementation of base Transformer class.
@author: Michael Eddington
@version: $Id: transformer.py 872 2008-05-12 17:56:54Z meddingt $
'''
#
# Copyright (c) Michael Eddington
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentat... | 28.366667 | 95 | 0.697121 | 464 | 3,404 | 5.096983 | 0.474138 | 0.037209 | 0.011416 | 0.017759 | 0.034672 | 0.034672 | 0.034672 | 0.034672 | 0.034672 | 0.034672 | 0 | 0.013756 | 0.231199 | 3,404 | 119 | 96 | 28.605042 | 0.88995 | 0.681551 | 0 | 0.153846 | 0 | 0 | 0.132029 | 0.026895 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eead97ceb93d8ee5cc84a0a9cbab3dc4a894a739 | 1,621 | py | Python | modelvshuman/datasets/info_mappings.py | TizianThieringer/model-vs-human | 17729b8167520f682d93d55c340c27de07bb2681 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | 158 | 2021-06-04T15:19:58.000Z | 2022-03-30T00:31:28.000Z | modelvshuman/datasets/info_mappings.py | TizianThieringer/model-vs-human | 17729b8167520f682d93d55c340c27de07bb2681 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | 7 | 2021-07-20T03:57:34.000Z | 2022-02-01T11:00:47.000Z | modelvshuman/datasets/info_mappings.py | TizianThieringer/model-vs-human | 17729b8167520f682d93d55c340c27de07bb2681 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | 14 | 2021-06-16T13:33:11.000Z | 2022-03-29T15:04:09.000Z | from abc import ABC
class ImagePathToInformationMapping(ABC):
def __init__(self):
pass
def __call__(self, full_path):
pass
class ImageNetInfoMapping(ImagePathToInformationMapping):
"""
For ImageNet-like directory structures without sessions/conditions:
.../{category}/{im... | 28.438596 | 96 | 0.636027 | 164 | 1,621 | 5.957317 | 0.286585 | 0.078813 | 0.06653 | 0.061412 | 0.371546 | 0.352098 | 0.352098 | 0.248721 | 0.154555 | 0.154555 | 0 | 0.009677 | 0.23504 | 1,621 | 56 | 97 | 28.946429 | 0.778226 | 0.202961 | 0 | 0.433333 | 0 | 0 | 0.027273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.066667 | 0.033333 | 0 | 0.433333 | 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 |
eeb540ebe6885cf944bba93b504eaff06933c8d0 | 931 | py | Python | etc/base_config.py | yandexdataschool/everware | 78c3a02acfcf3f3170981f2319d061eaf9c407aa | [
"BSD-3-Clause"
] | 130 | 2015-08-13T15:51:17.000Z | 2021-10-04T05:12:51.000Z | etc/base_config.py | yandexdataschool/everware | 78c3a02acfcf3f3170981f2319d061eaf9c407aa | [
"BSD-3-Clause"
] | 184 | 2015-08-01T11:40:10.000Z | 2018-03-23T12:00:57.000Z | etc/base_config.py | yandexdataschool/everware | 78c3a02acfcf3f3170981f2319d061eaf9c407aa | [
"BSD-3-Clause"
] | 38 | 2015-07-31T18:27:05.000Z | 2021-01-05T02:15:18.000Z | # Basic configuration, you should not use this directly
# instead checkout local_config.py or local_dockermacine_config.py
# spawn with custom docker containers
c.JupyterHub.spawner_class = 'everware.CustomDockerSpawner'
c.Spawner.tls = False
c.Spawner.debug = True
c.Spawner.start_timeout = 1000
c.Spawner.http_time... | 32.103448 | 82 | 0.795918 | 140 | 931 | 5.128571 | 0.607143 | 0.100279 | 0.050139 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009744 | 0.118153 | 931 | 28 | 83 | 33.25 | 0.864799 | 0.451128 | 0 | 0 | 0 | 0 | 0.099602 | 0.055777 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 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 |
eeb6610313b0192ed17a6855812b46195cea4ace | 7,327 | py | Python | src/brewlog/models/brewing.py | zgoda/brewlog | 13a930b328f81d01a2be9aca07d3b14703b80faa | [
"BSD-3-Clause"
] | 3 | 2019-03-11T04:30:06.000Z | 2020-01-26T03:21:52.000Z | src/brewlog/models/brewing.py | zgoda/brewlog | 13a930b328f81d01a2be9aca07d3b14703b80faa | [
"BSD-3-Clause"
] | 23 | 2019-02-06T20:37:37.000Z | 2020-06-01T07:08:35.000Z | src/brewlog/models/brewing.py | zgoda/brewlog | 13a930b328f81d01a2be9aca07d3b14703b80faa | [
"BSD-3-Clause"
] | null | null | null | import datetime
import json
from dataclasses import dataclass
from typing import ClassVar, Optional, Tuple
import markdown
from flask_babel import lazy_gettext as _
from werkzeug.utils import cached_property
from ..ext import db
from ..utils.brewing import abv, apparent_attenuation, real_attenuation
from ..utils.text... | 33.456621 | 88 | 0.634639 | 914 | 7,327 | 4.911379 | 0.196937 | 0.053464 | 0.06683 | 0.028069 | 0.212742 | 0.126086 | 0.101136 | 0.101136 | 0.101136 | 0.075741 | 0 | 0.004914 | 0.250171 | 7,327 | 218 | 89 | 33.610092 | 0.812159 | 0.003958 | 0 | 0.163158 | 0 | 0 | 0.052913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089474 | false | 0 | 0.068421 | 0.015789 | 0.505263 | 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 |
eeb7ffcc4404a19026c3d50ede1bfaba0c0cb0d5 | 3,047 | py | Python | shorten.py | saahil/bib-shorty | d11db6be4b48ab137a0a39da57925b65614d7b0d | [
"Apache-2.0"
] | 1 | 2021-12-30T09:33:37.000Z | 2021-12-30T09:33:37.000Z | shorten.py | saahil/bib-shorty | d11db6be4b48ab137a0a39da57925b65614d7b0d | [
"Apache-2.0"
] | null | null | null | shorten.py | saahil/bib-shorty | d11db6be4b48ab137a0a39da57925b65614d7b0d | [
"Apache-2.0"
] | 1 | 2021-12-30T09:33:39.000Z | 2021-12-30T09:33:39.000Z | from optparse import OptionParser
mand_article_fields = ['author', 'title', 'journal', 'year']
mand_book_fields = ['author', 'editor', 'title', 'publisher', 'year']
mand_inproceedings_fields = ['author', 'title', 'booktitle', 'year']
mand_techreport_fields = ['author', 'title', 'institution', 'year']
mand_phdthesis_fi... | 29.298077 | 100 | 0.582212 | 358 | 3,047 | 4.726257 | 0.248603 | 0.091017 | 0.05792 | 0.085106 | 0.05792 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004955 | 0.271415 | 3,047 | 103 | 101 | 29.582524 | 0.757207 | 0 | 0 | 0.117647 | 0 | 0 | 0.111294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.011765 | null | null | 0.011765 | 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 |
eeb8b0c120d3c20c3049814f3728551b888a1a6d | 264 | py | Python | script-01.py | gsc92/bottle-tutorial | af8255786d39a59a4663e31c240ede0434b2ebd9 | [
"MIT"
] | null | null | null | script-01.py | gsc92/bottle-tutorial | af8255786d39a59a4663e31c240ede0434b2ebd9 | [
"MIT"
] | null | null | null | script-01.py | gsc92/bottle-tutorial | af8255786d39a59a4663e31c240ede0434b2ebd9 | [
"MIT"
] | null | null | null | import bottle
bottle.TEMPLATE_PATH = ['template']
from bottle import Bottle, run, template
app = Bottle()
@app.route('/')
@app.route('/<name:re:[a-z]+>')
def index(name='world'):
return template('script-01', name=name)
run(app, host='localhost', port=8080) | 20.307692 | 43 | 0.67803 | 38 | 264 | 4.684211 | 0.578947 | 0.134831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025751 | 0.117424 | 264 | 13 | 44 | 20.307692 | 0.738197 | 0 | 0 | 0 | 0 | 0 | 0.184906 | 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 |
eeba58732b0155f72d93bda26b266f750c422287 | 544 | py | Python | app/main/model/group_chat.py | GruppoProgettoTMM201920-Parthenopeddit/RESTPlusAPI | ea52df40b2445df6e91fd4dbb85662a6cb91edcf | [
"Apache-2.0"
] | null | null | null | app/main/model/group_chat.py | GruppoProgettoTMM201920-Parthenopeddit/RESTPlusAPI | ea52df40b2445df6e91fd4dbb85662a6cb91edcf | [
"Apache-2.0"
] | null | null | null | app/main/model/group_chat.py | GruppoProgettoTMM201920-Parthenopeddit/RESTPlusAPI | ea52df40b2445df6e91fd4dbb85662a6cb91edcf | [
"Apache-2.0"
] | null | null | null | from app.main import db
from app.main.model.chat import Chat
class GroupChat(Chat):
__tablename__ = "group_chat"
# DATA COLUMNS
id = db.Column(db.Integer, db.ForeignKey('chat.id'), primary_key=True, autoincrement=True)
of_group_id = db.Column(db.Integer, db.ForeignKey('group.id'), nullable=False)
... | 23.652174 | 94 | 0.65625 | 65 | 544 | 5.230769 | 0.538462 | 0.041176 | 0.064706 | 0.070588 | 0.182353 | 0.182353 | 0.182353 | 0 | 0 | 0 | 0 | 0 | 0.222426 | 544 | 22 | 95 | 24.727273 | 0.803783 | 0.069853 | 0 | 0 | 0 | 0 | 0.139442 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.571429 | 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 |
eebbb05a57322251f7034718c7a9486054e7503d | 1,829 | py | Python | hc2002/plugin/user_data.py | biochimia/hc2000 | ec12df0326f368dde424bab861fc8fd1c673c010 | [
"Apache-2.0"
] | null | null | null | hc2002/plugin/user_data.py | biochimia/hc2000 | ec12df0326f368dde424bab861fc8fd1c673c010 | [
"Apache-2.0"
] | null | null | null | hc2002/plugin/user_data.py | biochimia/hc2000 | ec12df0326f368dde424bab861fc8fd1c673c010 | [
"Apache-2.0"
] | null | null | null | import hc2002.plugin as plugin
import os.path
import email.mime.base
import email.mime.multipart
import email.mime.text
plugin.register_for_resource(__name__, 'hc2002.resource.instance')
_magic_to_mime = {
'#!': ('text', 'x-shellscript'),
'#cloud-boothook': ('text', 'cloud-boothook'),
'#clo... | 30.483333 | 78 | 0.630399 | 216 | 1,829 | 5.226852 | 0.398148 | 0.04783 | 0.039858 | 0.033658 | 0.070859 | 0.070859 | 0 | 0 | 0 | 0 | 0 | 0.009142 | 0.222526 | 1,829 | 59 | 79 | 31 | 0.78481 | 0.057408 | 0 | 0.044444 | 0 | 0 | 0.198722 | 0.013945 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0.066667 | false | 0 | 0.111111 | 0 | 0.244444 | 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 |
eec9dbcab2adfbd7edbe2b6cd6e5749c0b4ff7d1 | 1,501 | py | Python | src/commands/consultas/consultaDeIp.py | kori-lab/Violet | 304b47439ac7f72474fa83021634d2c477ed9f9f | [
"MIT"
] | 3 | 2021-08-18T03:31:45.000Z | 2021-08-30T11:04:24.000Z | src/commands/consultas/consultaDeIp.py | kori-lab/Violet | 304b47439ac7f72474fa83021634d2c477ed9f9f | [
"MIT"
] | null | null | null | src/commands/consultas/consultaDeIp.py | kori-lab/Violet | 304b47439ac7f72474fa83021634d2c477ed9f9f | [
"MIT"
] | null | null | null | from requests import get
def formatResponse(_res: dict, functions: dict) -> str:
message = '';
values = {
"country": "Pais", "countryCode": "Código do Pais",
"region": "Região", "regionName": "Nome da Região",
"city": "Cidade", "query": "Ip"
};
for key in _res:
if key... | 28.320755 | 85 | 0.479014 | 150 | 1,501 | 4.72 | 0.526667 | 0.072034 | 0.067797 | 0.070621 | 0.079096 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01 | 0.333777 | 1,501 | 53 | 86 | 28.320755 | 0.698 | 0 | 0 | 0.179487 | 0 | 0.025641 | 0.274967 | 0.013981 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0.051282 | 0.025641 | 0 | 0.102564 | 0.076923 | 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 |
eeca38497861af423f6047cde0403cecd62dc80f | 1,347 | py | Python | LibreOffice/app_asc.py | joe247/appimage_file_associator | e8e756b5ab2409f48986c01fe1d97b9e220897a9 | [
"MIT"
] | 1 | 2021-04-23T19:55:43.000Z | 2021-04-23T19:55:43.000Z | LibreOffice/app_asc.py | joe733/appimage_file_associator | e8e756b5ab2409f48986c01fe1d97b9e220897a9 | [
"MIT"
] | 1 | 2020-09-17T13:56:57.000Z | 2020-09-17T13:56:57.000Z | LibreOffice/app_asc.py | joe733/appimage_file_associator | e8e756b5ab2409f48986c01fe1d97b9e220897a9 | [
"MIT"
] | null | null | null | import os
from pathlib import Path
import re
import getpass
user = getpass.getuser()
def write_mime_types(file_obj):
global mime_type
mime_type = list(filter(None, mime_type[len('MimeType='):].split(';')))
for i in mime_type:
file_obj.write(i+'=LibreOffice.desktop;\n')
def read_mime_types(file_obj... | 30.613636 | 88 | 0.638456 | 201 | 1,347 | 3.975124 | 0.318408 | 0.070088 | 0.022528 | 0.071339 | 0.192741 | 0.150188 | 0.075094 | 0 | 0 | 0 | 0 | 0.000944 | 0.213808 | 1,347 | 43 | 89 | 31.325581 | 0.753541 | 0 | 0 | 0.157895 | 0 | 0 | 0.132888 | 0.042316 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0.052632 | 0.105263 | 0 | 0.184211 | 0.026316 | 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 |
eecc670f2b2ac4eae7f74337e8b5e55fefb1a78e | 845 | py | Python | dorest/exceptions.py | rungsiman/dorest | 480f0cf6369777beb6209e67e6515343ce826281 | [
"BSD-3-Clause"
] | null | null | null | dorest/exceptions.py | rungsiman/dorest | 480f0cf6369777beb6209e67e6515343ce826281 | [
"BSD-3-Clause"
] | null | null | null | dorest/exceptions.py | rungsiman/dorest | 480f0cf6369777beb6209e67e6515343ce826281 | [
"BSD-3-Clause"
] | null | null | null | """Exceptions for Dorest
The Dorest project
:copyright: (c) 2020 Ichise Laboratory at NII & AIST
:author: Rungsiman Nararatwong
"""
from typing import List
from django.utils.translation import gettext_lazy as _
from rest_framework import status
from rest_framework.exceptions import APIException
class ObjectNotFou... | 27.258065 | 106 | 0.738462 | 108 | 845 | 5.546296 | 0.611111 | 0.093489 | 0.056761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010029 | 0.173965 | 845 | 30 | 107 | 28.166667 | 0.848138 | 0.218935 | 0 | 0 | 0 | 0 | 0.117284 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.071429 | 0.857143 | 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 |
eecf9350003de3783fcf616d1951957dcb1dc204 | 6,900 | py | Python | galaxy_data_mines/match_stats.py | Lucas-Kuhn/galaxy_data_mines | 71908df33b4cfc8ba9a00ccd165ff4f52c5869de | [
"MIT"
] | 2 | 2019-03-30T04:25:20.000Z | 2019-04-15T13:04:51.000Z | galaxy_data_mines/match_stats.py | Lucas-Kuhn/galaxy_data_mines | 71908df33b4cfc8ba9a00ccd165ff4f52c5869de | [
"MIT"
] | 5 | 2019-04-23T13:28:58.000Z | 2019-08-23T20:05:20.000Z | galaxy_data_mines/match_stats.py | Lucas-Kuhn/galaxy_data_mines | 71908df33b4cfc8ba9a00ccd165ff4f52c5869de | [
"MIT"
] | 2 | 2019-04-22T17:46:41.000Z | 2021-07-07T20:51:04.000Z | # Statistics Class
#
# Class served to generate, save, and print statistics
# of object comparison # match findings.
#
#
import os
from string import Template
import pandas as pd
import logging
this_dir = os.path.dirname(__file__)
class MatchStats:
def __init__(self, template_file):
# Open statistics te... | 43.670886 | 105 | 0.635797 | 917 | 6,900 | 4.53108 | 0.142857 | 0.08231 | 0.046931 | 0.037545 | 0.264501 | 0.16775 | 0.090012 | 0.06065 | 0.041877 | 0 | 0 | 0.015813 | 0.266812 | 6,900 | 157 | 106 | 43.949045 | 0.805495 | 0.135797 | 0 | 0 | 1 | 0 | 0.049141 | 0.003571 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045045 | false | 0.009009 | 0.036036 | 0 | 0.099099 | 0.018018 | 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 |
eed4cacf631699f13f96cb9a857e83b06d4a184f | 2,143 | py | Python | GNURadio/OOT_Modules/gr-ccsds/python/qa_rs_encode.py | ClydeSpace-GroundStation/GroundStation | 21b4da25a7061b59447cf5a6686e5a575350a3f4 | [
"MIT"
] | 5 | 2016-04-21T18:39:40.000Z | 2020-04-18T12:35:48.000Z | GNURadio/OOT_Modules/gr-ccsds/python/qa_rs_encode.py | ClydeSpace-GroundStation/GroundStation | 21b4da25a7061b59447cf5a6686e5a575350a3f4 | [
"MIT"
] | 1 | 2016-06-01T10:55:03.000Z | 2016-06-01T10:55:03.000Z | GNURadio/OOT_Modules/gr-ccsds/python/qa_rs_encode.py | ClydeSpace-GroundStation/GroundStation | 21b4da25a7061b59447cf5a6686e5a575350a3f4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2015 <+YOU OR YOUR COMPANY+>.
#
# This is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#... | 23.549451 | 70 | 0.688287 | 350 | 2,143 | 4.068571 | 0.431429 | 0.049157 | 0.045646 | 0.039326 | 0.183989 | 0.115169 | 0.054775 | 0.029494 | 0 | 0 | 0 | 0.02054 | 0.204853 | 2,143 | 90 | 71 | 23.811111 | 0.815141 | 0.501633 | 0 | 0.121212 | 0 | 0 | 0.064797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.121212 | 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 |
eed81887a8aff7e998da08cf5def203c3b94955c | 645 | py | Python | Lintcode/Others/397. Longest Continuous Increasing Subsequence.py | ctc316/algorithm-python | ac4580d55e05e93e407c6156c9bb801808027d60 | [
"MIT"
] | null | null | null | Lintcode/Others/397. Longest Continuous Increasing Subsequence.py | ctc316/algorithm-python | ac4580d55e05e93e407c6156c9bb801808027d60 | [
"MIT"
] | null | null | null | Lintcode/Others/397. Longest Continuous Increasing Subsequence.py | ctc316/algorithm-python | ac4580d55e05e93e407c6156c9bb801808027d60 | [
"MIT"
] | null | null | null | class Solution:
"""
@param A: An array of Integer
@return: an integer
"""
def longestIncreasingContinuousSubsequence(self, A):
n = len(A)
if n < 2:
return n
longest = 0
conti = 1
for i in range(1, n):
if A[i] > A[i - 1]:
... | 22.241379 | 56 | 0.404651 | 73 | 645 | 3.575342 | 0.356164 | 0.137931 | 0.068966 | 0.076628 | 0.490421 | 0.490421 | 0.490421 | 0.490421 | 0.490421 | 0.490421 | 0 | 0.037267 | 0.500775 | 645 | 29 | 57 | 22.241379 | 0.773292 | 0.075969 | 0 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0 | 0 | 0.190476 | 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 |
eee804c0edeb0f60e5bc5c733a4c0386439c6b85 | 1,167 | py | Python | nhais-adaptor/edifact/outgoing/models/tests/test_message.py | tomzo/integration-adaptors | d4f296d3e44475df6f69a78a27fac6ed5b67513b | [
"Apache-2.0"
] | 15 | 2019-08-06T16:08:12.000Z | 2021-05-24T13:14:39.000Z | nhais-adaptor/edifact/outgoing/models/tests/test_message.py | tomzo/integration-adaptors | d4f296d3e44475df6f69a78a27fac6ed5b67513b | [
"Apache-2.0"
] | 75 | 2019-04-25T13:59:02.000Z | 2021-09-15T06:05:36.000Z | nhais-adaptor/edifact/outgoing/models/tests/test_message.py | tomzo/integration-adaptors | d4f296d3e44475df6f69a78a27fac6ed5b67513b | [
"Apache-2.0"
] | 7 | 2019-11-12T15:26:34.000Z | 2021-04-11T07:23:56.000Z | import unittest
from edifact.outgoing.models.message import MessageHeader, MessageBeginning, MessageTrailer
class TestMessageHeader(unittest.TestCase):
"""
Test the generating of a message header
"""
def test_message_header_to_edifact(self):
msg_hdr = MessageHeader(sequence_number... | 33.342857 | 107 | 0.70437 | 140 | 1,167 | 5.642857 | 0.442857 | 0.068354 | 0.098734 | 0.087342 | 0.313924 | 0.279747 | 0.279747 | 0.279747 | 0 | 0 | 0 | 0.073607 | 0.18509 | 1,167 | 34 | 108 | 34.323529 | 0.757098 | 0.105398 | 0 | 0 | 0 | 0.066667 | 0.136929 | 0.096473 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.133333 | 0 | 0.533333 | 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 |
eef513eb26f52af3177446b1e8163abb2769dbae | 3,760 | py | Python | aiida/orm/implementation/sqlalchemy/logs.py | borellim/aiida_core | eebef392c81e8b130834a92e1d7abf5e2e30b3ce | [
"BSD-2-Clause"
] | 1 | 2019-03-15T10:37:53.000Z | 2019-03-15T10:37:53.000Z | aiida/orm/implementation/sqlalchemy/logs.py | odarbelaeze/aiida_core | 934b4ccdc73a993f2a6656caf516500470e3da08 | [
"BSD-2-Clause"
] | null | null | null | aiida/orm/implementation/sqlalchemy/logs.py | odarbelaeze/aiida_core | 934b4ccdc73a993f2a6656caf516500470e3da08 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
###########################################################################
# Copyright (c), The AiiDA team. All rights reserved. #
# This file is part of the AiiDA code. #
# ... | 30.819672 | 119 | 0.576064 | 400 | 3,760 | 5.2875 | 0.355 | 0.041608 | 0.056265 | 0.062411 | 0.098345 | 0.083215 | 0.056738 | 0 | 0 | 0 | 0 | 0.000382 | 0.303989 | 3,760 | 121 | 120 | 31.07438 | 0.807795 | 0.286436 | 0 | 0.118644 | 0 | 0 | 0.045474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.169492 | false | 0.016949 | 0.169492 | 0 | 0.525424 | 0.016949 | 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 |
eefde26a599e085cf4cda9a05384f4d830e5cc33 | 3,287 | py | Python | project2/cracker/crack.py | Plastix/CSC-483 | 15722876316fab181167234b926a8aeb544b5c55 | [
"MIT"
] | null | null | null | project2/cracker/crack.py | Plastix/CSC-483 | 15722876316fab181167234b926a8aeb544b5c55 | [
"MIT"
] | null | null | null | project2/cracker/crack.py | Plastix/CSC-483 | 15722876316fab181167234b926a8aeb544b5c55 | [
"MIT"
] | null | null | null | # crack.py
# A very inefficient password cracker
#
# Aidan Pieper
# CSC 483
# Winter 2018
from enum import Enum
from hashlib import pbkdf2_hmac
from hmac import compare_digest
from binascii import hexlify, unhexlify
import sys
import time
import itertools
class Mode(Enum):
BRUTE_FORCE = 1
DICTIONARY_ATTACK =... | 30.435185 | 103 | 0.576818 | 396 | 3,287 | 4.707071 | 0.363636 | 0.030043 | 0.025751 | 0.030579 | 0.138949 | 0.126609 | 0.094421 | 0.094421 | 0 | 0 | 0 | 0.025721 | 0.313964 | 3,287 | 107 | 104 | 30.719626 | 0.800887 | 0.111652 | 0 | 0.189873 | 0 | 0 | 0.090847 | 0.007226 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037975 | false | 0.202532 | 0.088608 | 0 | 0.202532 | 0.075949 | 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 |
e1081b1b409dee3bc44eaff12486562d34cf5dd8 | 1,487 | py | Python | vmware_nsx/shell/admin/plugins/nsxv3/resources/cluster.py | yebinama/vmware-nsx | 5f59ce8d4668c24e0f4f934898fb4b4e63f1c2f4 | [
"Apache-2.0"
] | null | null | null | vmware_nsx/shell/admin/plugins/nsxv3/resources/cluster.py | yebinama/vmware-nsx | 5f59ce8d4668c24e0f4f934898fb4b4e63f1c2f4 | [
"Apache-2.0"
] | null | null | null | vmware_nsx/shell/admin/plugins/nsxv3/resources/cluster.py | yebinama/vmware-nsx | 5f59ce8d4668c24e0f4f934898fb4b4e63f1c2f4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 VMware, Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | 37.175 | 78 | 0.740417 | 214 | 1,487 | 5.018692 | 0.537383 | 0.055866 | 0.048417 | 0.067039 | 0.132216 | 0.106145 | 0.078212 | 0.078212 | 0 | 0 | 0 | 0.007407 | 0.182919 | 1,487 | 39 | 79 | 38.128205 | 0.876543 | 0.425689 | 0 | 0 | 0 | 0 | 0.041866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.352941 | 0 | 0.411765 | 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 |
e10a9ef061682599da71a15ad8f6c9cc5a6dd6f4 | 707 | py | Python | example_script.py | Machahine/cluster-scan | e3a67bca5991347043d777c79c3abef4d12c6a8e | [
"MIT"
] | null | null | null | example_script.py | Machahine/cluster-scan | e3a67bca5991347043d777c79c3abef4d12c6a8e | [
"MIT"
] | 1 | 2020-06-12T01:49:39.000Z | 2020-06-12T01:49:39.000Z | example_script.py | Machahine/cluster-scan | e3a67bca5991347043d777c79c3abef4d12c6a8e | [
"MIT"
] | null | null | null | import pwm_scan
import time
if __name__ == '__main__':
scan = pwm_scan.PWMScan()
# Load binding sites to generate a position weight matrix
scan.load_pwm(filename='example_target_sites.txt')
# Load genome sequence (fasta)
scan.load_sequence(seq='example_genome_sequence.fna')
# Load annotati... | 27.192308 | 66 | 0.691655 | 96 | 707 | 4.885417 | 0.479167 | 0.051173 | 0.051173 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010292 | 0.175389 | 707 | 25 | 67 | 28.28 | 0.794168 | 0.199434 | 0 | 0 | 1 | 0 | 0.289286 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.25 | 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 |
e11a42aed86fb60e189d6a690ab6cc5e80d6da3e | 312 | py | Python | mystream/streampage/migrations/0004_delete_usercirclefollowing.py | akarakoc/SWE574 | be9c1b735ac6e9a55a3a1c2c522443496f387baf | [
"MIT"
] | 2 | 2020-07-02T10:16:02.000Z | 2020-07-20T23:04:05.000Z | mystream/streampage/migrations/0004_delete_usercirclefollowing.py | akarakoc/mystream | be9c1b735ac6e9a55a3a1c2c522443496f387baf | [
"MIT"
] | 11 | 2020-06-18T17:34:53.000Z | 2021-12-09T22:23:44.000Z | mystream/streampage/migrations/0004_delete_usercirclefollowing.py | akarakoc/SWE574 | be9c1b735ac6e9a55a3a1c2c522443496f387baf | [
"MIT"
] | 2 | 2020-07-30T08:23:51.000Z | 2020-08-05T07:43:40.000Z | # Generated by Django 3.0.3 on 2020-05-16 23:52
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('streampage', '0003_usercirclefollowing'),
]
operations = [
migrations.DeleteModel(
name='UserCircleFollowing',
),
]
| 18.352941 | 51 | 0.625 | 30 | 312 | 6.466667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.269231 | 312 | 16 | 52 | 19.5 | 0.767544 | 0.144231 | 0 | 0 | 1 | 0 | 0.2 | 0.090566 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.4 | 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 |
e11f4eb21b465e2d201497d53bd8a39eae7caba9 | 623 | py | Python | cmachines_site/users/migrations/0006_auto_20170430_2030.py | JinpengLI/gpu_share_platform | 53d7f2b45acd9340cf49908fe9809f8d2856757c | [
"MIT"
] | 18 | 2018-02-21T00:39:37.000Z | 2019-05-21T08:03:49.000Z | cmachines_site/users/migrations/0006_auto_20170430_2030.py | JinpengLI/gpu_share_platform | 53d7f2b45acd9340cf49908fe9809f8d2856757c | [
"MIT"
] | 1 | 2020-08-08T18:05:31.000Z | 2020-08-08T19:57:05.000Z | cmachines_site/users/migrations/0006_auto_20170430_2030.py | JinpengLI/gpu_share_platform | 53d7f2b45acd9340cf49908fe9809f8d2856757c | [
"MIT"
] | 12 | 2018-02-22T07:22:58.000Z | 2020-01-06T07:45:52.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-04-30 20:30
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0005_userlog_virtualmachines'),
]
operations = [
migrations.AddField... | 23.961538 | 50 | 0.603531 | 61 | 623 | 5.983607 | 0.639344 | 0.09863 | 0.126027 | 0.147945 | 0.235616 | 0.235616 | 0.235616 | 0.235616 | 0 | 0 | 0 | 0.049327 | 0.284109 | 623 | 25 | 51 | 24.92 | 0.769058 | 0.105939 | 0 | 0.444444 | 1 | 0 | 0.146209 | 0.050542 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 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 |
010094fa893ae96403bb47985903dcf6f3451eed | 8,540 | py | Python | lib/JumpScale/baselib/remote/ssh/SSHClient.py | rudecs/jumpscale_core7 | 30c03f26f1cdad3edbb9d79d50fbada8acc974f5 | [
"Apache-2.0"
] | null | null | null | lib/JumpScale/baselib/remote/ssh/SSHClient.py | rudecs/jumpscale_core7 | 30c03f26f1cdad3edbb9d79d50fbada8acc974f5 | [
"Apache-2.0"
] | 4 | 2016-08-25T12:08:39.000Z | 2018-04-12T12:36:01.000Z | lib/JumpScale/baselib/remote/ssh/SSHClient.py | rudecs/jumpscale_core7 | 30c03f26f1cdad3edbb9d79d50fbada8acc974f5 | [
"Apache-2.0"
] | 3 | 2016-03-08T07:49:34.000Z | 2018-10-19T13:56:43.000Z | import warnings
# warnings.filterwarnings('ignore', r'.*sha.*')
from JumpScale import j
import base64
from binascii import hexlify
import select
import socket
import sys
import paramiko
# try:
# import interactive
# except ImportError:
# from . import interactive
class SSHClient:
client = None # obje... | 41.456311 | 129 | 0.594848 | 984 | 8,540 | 5.088415 | 0.27439 | 0.022369 | 0.021969 | 0.010385 | 0.232874 | 0.175754 | 0.156181 | 0.115438 | 0.094268 | 0.077891 | 0 | 0.006737 | 0.287354 | 8,540 | 205 | 130 | 41.658537 | 0.815971 | 0.438056 | 0 | 0.230769 | 0 | 0.025641 | 0.09928 | 0 | 0 | 0 | 0 | 0.004878 | 0 | 0 | null | null | 0.025641 | 0.102564 | null | null | 0.012821 | 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 |
01030377c7b5bd4212b3c3cc6ea8b79da7ad5c94 | 2,954 | py | Python | day2/day2.py | mantelsolutions/adventofcode2019 | 39b95bdcf42b2a3b9ee48e0cf38f242d65aa20b9 | [
"MIT"
] | null | null | null | day2/day2.py | mantelsolutions/adventofcode2019 | 39b95bdcf42b2a3b9ee48e0cf38f242d65aa20b9 | [
"MIT"
] | null | null | null | day2/day2.py | mantelsolutions/adventofcode2019 | 39b95bdcf42b2a3b9ee48e0cf38f242d65aa20b9 | [
"MIT"
] | null | null | null | # Solution for day2 of advent of code
origValues = list(map(int, open('day2/input.txt').readline().rstrip().split(',')))
print(origValues)
def getOpCode(values, codeAndArgumentWidth, numberOfCodesEvaluated):
currentOpCodeIndex = getCurrentOpCodeIndex(values, codeAndArgumentWidth, numberOfCodesEvaluated)
retu... | 31.425532 | 169 | 0.67671 | 273 | 2,954 | 7.322344 | 0.307692 | 0.168084 | 0.168084 | 0.172586 | 0.278139 | 0.14007 | 0.14007 | 0.055028 | 0.055028 | 0 | 0 | 0.034572 | 0.216655 | 2,954 | 94 | 170 | 31.425532 | 0.8293 | 0.117129 | 0 | 0.116667 | 0 | 0 | 0.046736 | 0 | 0 | 0 | 0 | 0 | 0.016667 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.15 | 0.083333 | 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 |
0109552a98a678283ccb5f921b092945478e776a | 3,289 | py | Python | djasana/migrations/0006_adds_custom_fields.py | zaptim/django-asana | ab6d7166f28945292d5632ef766fc13cc2ea4cf3 | [
"MIT"
] | 10 | 2017-04-25T20:20:14.000Z | 2021-02-26T18:57:59.000Z | djasana/migrations/0006_adds_custom_fields.py | zaptim/django-asana | ab6d7166f28945292d5632ef766fc13cc2ea4cf3 | [
"MIT"
] | 19 | 2018-08-09T20:45:51.000Z | 2021-11-29T17:47:21.000Z | djasana/migrations/0006_adds_custom_fields.py | zaptim/django-asana | ab6d7166f28945292d5632ef766fc13cc2ea4cf3 | [
"MIT"
] | 8 | 2018-06-28T02:54:06.000Z | 2020-02-23T13:34:46.000Z | # Generated by Django 2.0.8 on 2018-08-15 13:12
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('djasana', '0005_adds_custom_field_settings_rich_text_project_status'),
]
operations =... | 44.445946 | 145 | 0.592277 | 334 | 3,289 | 5.667665 | 0.323353 | 0.034865 | 0.029583 | 0.046487 | 0.443212 | 0.443212 | 0.404649 | 0.368199 | 0.323825 | 0.276281 | 0 | 0.020332 | 0.267254 | 3,289 | 73 | 146 | 45.054795 | 0.765145 | 0.013682 | 0 | 0.477612 | 1 | 0 | 0.185071 | 0.045034 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.059701 | 0 | 0.104478 | 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 |
010e28b5a960f059f644870f8628655603c8b39f | 346 | py | Python | vendor/tmpl/uploadsettings.py | iongraphix/word-blaster | 3a258dcddf45a7e3daee99314c779f3957b57104 | [
"MIT"
] | null | null | null | vendor/tmpl/uploadsettings.py | iongraphix/word-blaster | 3a258dcddf45a7e3daee99314c779f3957b57104 | [
"MIT"
] | null | null | null | vendor/tmpl/uploadsettings.py | iongraphix/word-blaster | 3a258dcddf45a7e3daee99314c779f3957b57104 | [
"MIT"
] | null | null | null | site = 'ftp.skilldrick.co.uk'
webRoot = '/public_html'
localDir = '.' #by default use current directory
remoteDir = 'tmpl'
ignoreDirs = ['.git', 'fancybox', 'safeinc']
ignoreFileSuffixes = ['.py', '.pyc', '~', '#', '.swp',
'.gitignore', '.lastrun',
'Makefile', '.bat', 'Thumb... | 34.6 | 73 | 0.552023 | 32 | 346 | 5.9375 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231214 | 346 | 9 | 74 | 38.444444 | 0.714286 | 0.092486 | 0 | 0 | 0 | 0 | 0.392971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
010f801d5933385cef5fcf79654cba7bef4ede23 | 522 | py | Python | icbd/compiler/tests/8.py | kmod/icbd | 9636564eb3993afa07c6220d589bbd1991923d74 | [
"MIT"
] | 7 | 2015-04-06T15:17:13.000Z | 2020-10-21T04:57:00.000Z | icbd/compiler/tests/8.py | kmod/icbd | 9636564eb3993afa07c6220d589bbd1991923d74 | [
"MIT"
] | null | null | null | icbd/compiler/tests/8.py | kmod/icbd | 9636564eb3993afa07c6220d589bbd1991923d74 | [
"MIT"
] | 4 | 2016-05-16T17:53:08.000Z | 2020-11-28T17:18:50.000Z | """
function test
"""
def f(x):
return x ** x
def g():
def h():
return 2
return h
print 2
for i in xrange(15):
# print i, f(i)
if i > 0:
if f(i-1) != 0:
print i, f(i) * 100 / f(i-1) / i
print g()()
# cPython 2.6: 15.05s
# pypy 1.8: 2.59s
# icbd: 0.24s
# icbd -O3: 0.1... | 13.384615 | 44 | 0.494253 | 101 | 522 | 2.554455 | 0.356436 | 0.031008 | 0.046512 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141619 | 0.337165 | 522 | 38 | 45 | 13.736842 | 0.604046 | 0.14751 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.217391 | 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 |
010fee4e8bccf3493a06ce969b7081e2a5daacb1 | 831 | py | Python | examples/generate.py | jayzzhou-thu/inference | 96a8d64b595087b921229865949ebab58aa268ac | [
"Apache-2.0"
] | null | null | null | examples/generate.py | jayzzhou-thu/inference | 96a8d64b595087b921229865949ebab58aa268ac | [
"Apache-2.0"
] | null | null | null | examples/generate.py | jayzzhou-thu/inference | 96a8d64b595087b921229865949ebab58aa268ac | [
"Apache-2.0"
] | null | null | null | import numpy as np
import bminference
from tqdm import tqdm
def generate(model : bminference.models.CPM2, sentence):
with tqdm() as progress_bar:
progress_bar.write(sentence)
while True:
value = model.generate(sentence + "<span>",
temperature=1.1,
top_p... | 25.181818 | 56 | 0.537906 | 90 | 831 | 4.766667 | 0.522222 | 0.102564 | 0.097902 | 0.111888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027726 | 0.348977 | 831 | 32 | 57 | 25.96875 | 0.76525 | 0 | 0 | 0.074074 | 1 | 0 | 0.061372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.111111 | 0 | 0.185185 | 0.074074 | 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 |
011c407af259db1ec180fc85def23d02bc46d6e6 | 6,475 | py | Python | controller/logs/process-log.py | midiacom/thanos-resilience-test | eb9350fd6d94ea78fdcf9fb137ae77674fdf75c0 | [
"MIT"
] | null | null | null | controller/logs/process-log.py | midiacom/thanos-resilience-test | eb9350fd6d94ea78fdcf9fb137ae77674fdf75c0 | [
"MIT"
] | null | null | null | controller/logs/process-log.py | midiacom/thanos-resilience-test | eb9350fd6d94ea78fdcf9fb137ae77674fdf75c0 | [
"MIT"
] | null | null | null | import time
import csv
import os
import gc
import re
import copy
import datetime
class Entry:
def __init__(self, timestamp, uptime, loads, memory_total, memory_free, memory_used, buff):
self.timestamp = timestamp
self.uptime = uptime
self.loads = loads
self.memory_total = memory_t... | 40.217391 | 148 | 0.533282 | 771 | 6,475 | 4.402075 | 0.216602 | 0.045963 | 0.035357 | 0.018562 | 0.359753 | 0.332351 | 0.243076 | 0.20713 | 0.172363 | 0.161461 | 0 | 0.023413 | 0.313977 | 6,475 | 160 | 149 | 40.46875 | 0.740657 | 0.076448 | 0 | 0.21374 | 0 | 0 | 0.117164 | 0.020952 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.053435 | null | null | 0.038168 | 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 |
012156cbc70a762ad9f87d4dab3b82ffcbfb8b02 | 2,184 | py | Python | basics-data-structure/linked-list/circularLinkedList.py | nishantml/Data-Structure-And-Algorithms | 1f75bdbddb5fa4bccba762515460c73280cde65d | [
"MIT"
] | null | null | null | basics-data-structure/linked-list/circularLinkedList.py | nishantml/Data-Structure-And-Algorithms | 1f75bdbddb5fa4bccba762515460c73280cde65d | [
"MIT"
] | null | null | null | basics-data-structure/linked-list/circularLinkedList.py | nishantml/Data-Structure-And-Algorithms | 1f75bdbddb5fa4bccba762515460c73280cde65d | [
"MIT"
] | 1 | 2020-08-25T19:05:19.000Z | 2020-08-25T19:05:19.000Z | class Node:
def __init__(self, data):
self.data = data
self.next = None
class CircularLinkedList:
def __init__(self):
self.head = None
self.tail = None
self.length = 0
def append(self, data):
new_node = Node(data)
if not self.head:
self.... | 26.634146 | 65 | 0.541209 | 266 | 2,184 | 4.263158 | 0.139098 | 0.218695 | 0.148148 | 0.112875 | 0.498236 | 0.32716 | 0.26455 | 0.191358 | 0.191358 | 0.191358 | 0 | 0.005806 | 0.369048 | 2,184 | 81 | 66 | 26.962963 | 0.817126 | 0.073718 | 0 | 0.47541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098361 | false | 0 | 0 | 0 | 0.147541 | 0.016393 | 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 |
012596894436a8af9860408c7baf773600f3135e | 554 | py | Python | reana_workflow_engine_cwl/config.py | ParthS007/reana-workflow-engine-cwl | 3ccc628e42878e2714acf79e7e4e7f2cc2d81d8f | [
"MIT"
] | null | null | null | reana_workflow_engine_cwl/config.py | ParthS007/reana-workflow-engine-cwl | 3ccc628e42878e2714acf79e7e4e7f2cc2d81d8f | [
"MIT"
] | null | null | null | reana_workflow_engine_cwl/config.py | ParthS007/reana-workflow-engine-cwl | 3ccc628e42878e2714acf79e7e4e7f2cc2d81d8f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# This file is part of REANA.
# Copyright (C) 2017, 2018 CERN.
#
# REANA is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""REANA Workflow Engine CWL configuration."""
import os
SHARED_VOLUME_PATH = os.geten... | 27.7 | 72 | 0.723827 | 83 | 554 | 4.73494 | 0.60241 | 0.099237 | 0.145038 | 0.167939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019068 | 0.148014 | 554 | 19 | 73 | 29.157895 | 0.813559 | 0.465704 | 0 | 0 | 0 | 0 | 0.39267 | 0.13089 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
012ca1b433563cb3ecb21b0091806a3e0524fe27 | 810 | py | Python | t_5_data_structures/t_5_1_3_list_comprehensions/__init__.py | naokiur/Python-tutorial | 7b03dc8fd2e5992859fde00bfe2873b4fb7ca5e5 | [
"Apache-2.0"
] | null | null | null | t_5_data_structures/t_5_1_3_list_comprehensions/__init__.py | naokiur/Python-tutorial | 7b03dc8fd2e5992859fde00bfe2873b4fb7ca5e5 | [
"Apache-2.0"
] | null | null | null | t_5_data_structures/t_5_1_3_list_comprehensions/__init__.py | naokiur/Python-tutorial | 7b03dc8fd2e5992859fde00bfe2873b4fb7ca5e5 | [
"Apache-2.0"
] | null | null | null | from math import pi
squares1 = []
for x in range(10):
squares1.append(x ** 2)
print(squares1)
print("Still exists 'x' : ", x)
squares2 = list(map(lambda x:x ** 2, range(10)))
print(squares2)
squares3 = [x ** 2 for x in range(10)]
print(squares3)
combs = [(x, y) for x in [1, 2, 3] for y in [3, 1, 4] if x != y]
p... | 25.3125 | 73 | 0.596296 | 158 | 810 | 3.056962 | 0.335443 | 0.066253 | 0.099379 | 0.091097 | 0.202899 | 0.109731 | 0.082816 | 0.082816 | 0.082816 | 0 | 0 | 0.07764 | 0.204938 | 810 | 31 | 74 | 26.129032 | 0.67236 | 0.08642 | 0 | 0 | 0 | 0 | 0.071913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.045455 | 0.045455 | 0 | 0.045455 | 0.545455 | 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 |
0130c63693f53ce2e3a2710efc2da7b80e9b2983 | 1,135 | py | Python | prometheus_alert_model/utils.py | trallnag/prometheus-alertmanager-alert-python | 90096fbf79d495e3b09499d0ef7e372af0c247b6 | [
"Apache-2.0"
] | 2 | 2020-12-05T13:28:20.000Z | 2021-07-27T03:10:18.000Z | prometheus_alert_model/utils.py | trallnag/prometheus-alertmanager-alert-python | 90096fbf79d495e3b09499d0ef7e372af0c247b6 | [
"Apache-2.0"
] | 2 | 2021-05-13T20:54:09.000Z | 2022-01-06T13:05:29.000Z | prometheus_alert_model/utils.py | trallnag/prometheus-alertmanager-alert-python | 90096fbf79d495e3b09499d0ef7e372af0c247b6 | [
"Apache-2.0"
] | null | null | null | # Copyright © 2020 Tim Schwenke <tim.and.trallnag+code@gmail.com>
# Licensed under Apache License 2.0 <http://www.apache.org/licenses/LICENSE-2.0>
from typing import Dict, List
def intersect(list_of_dcts: List[Dict[str, str]]) -> Dict[str, str]:
"""Calculates the key-value intersection of a list of dictionaries.... | 35.46875 | 80 | 0.668722 | 172 | 1,135 | 4.302326 | 0.44186 | 0.089189 | 0.081081 | 0.037838 | 0.064865 | 0.064865 | 0.064865 | 0 | 0 | 0 | 0 | 0.014925 | 0.232599 | 1,135 | 31 | 81 | 36.612903 | 0.833525 | 0.605286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.555556 | 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 |
0139532b07d9f80c17b5568419aeb89ad24dc0e9 | 314 | py | Python | lawyerd/complaint/forms.py | loobinsk/customer_project | 4f43d4c6db2c99926715ea16451511466569c4ae | [
"MIT"
] | null | null | null | lawyerd/complaint/forms.py | loobinsk/customer_project | 4f43d4c6db2c99926715ea16451511466569c4ae | [
"MIT"
] | null | null | null | lawyerd/complaint/forms.py | loobinsk/customer_project | 4f43d4c6db2c99926715ea16451511466569c4ae | [
"MIT"
] | null | null | null | from django import forms
from complaint.models import Order
class CreateOrderForm(forms.ModelForm):
email = forms.EmailField(label='Enter e-mail')
email_count = forms.IntegerField(label='Enter e-mail count', min_value=1)
class Meta:
model = Order
fields = ('email', 'email_count',)
| 24.153846 | 77 | 0.697452 | 40 | 314 | 5.4 | 0.6 | 0.092593 | 0.101852 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003953 | 0.194268 | 314 | 12 | 78 | 26.166667 | 0.849802 | 0 | 0 | 0 | 0 | 0 | 0.146497 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.75 | 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 |
014134bf94e7e9ef3c79f998a92055183d76d615 | 3,650 | py | Python | scripts/parse_class.py | hulu7/news | a5e601a089b0331c7233bed697c7c6492283afd5 | [
"MIT"
] | null | null | null | scripts/parse_class.py | hulu7/news | a5e601a089b0331c7233bed697c7c6492283afd5 | [
"MIT"
] | null | null | null | scripts/parse_class.py | hulu7/news | a5e601a089b0331c7233bed697c7c6492283afd5 | [
"MIT"
] | null | null | null | #coding=utf-8
import requests
import csv
import re
from lxml import etree
import os
from bs4 import BeautifulSoup
def crawl_one_page(url):
headers = {
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
'Accept-Language': 'zh-CN,zh;q=0.9,en;q=0.8',
... | 41.011236 | 750 | 0.67726 | 460 | 3,650 | 5.18913 | 0.465217 | 0.026812 | 0.020109 | 0.026812 | 0.096774 | 0.048178 | 0.038961 | 0 | 0 | 0 | 0 | 0.124703 | 0.191507 | 3,650 | 88 | 751 | 41.477273 | 0.684175 | 0.003288 | 0 | 0.078947 | 0 | 0.039474 | 0.375859 | 0.215012 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078947 | null | null | 0.013158 | 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 |
0147bd0e950937ee94199ce259dfd2b2c0b859a9 | 604 | py | Python | produce/train_model.py | ahmed14-cell/produce | ef68c31e5eb87a3894f886361fd58b2162c5e352 | [
"MIT"
] | null | null | null | produce/train_model.py | ahmed14-cell/produce | ef68c31e5eb87a3894f886361fd58b2162c5e352 | [
"MIT"
] | null | null | null | produce/train_model.py | ahmed14-cell/produce | ef68c31e5eb87a3894f886361fd58b2162c5e352 | [
"MIT"
] | null | null | null | import pickle
import pandas as pd
from config import Config
from sklearn.linear_model import ElasticNet
# Creating a path to save the models
Config.models_path.mkdir(parents=True,exist_ok=True)
# Arranging the data
x_train = pd.read_csv(str(Config.features_path / 'train_features.csv'))
y_train = pd.read_csv(str(Con... | 30.2 | 72 | 0.774834 | 97 | 604 | 4.670103 | 0.484536 | 0.059603 | 0.07064 | 0.06181 | 0.1766 | 0.1766 | 0.1766 | 0.1766 | 0.1766 | 0 | 0 | 0 | 0.119205 | 604 | 19 | 73 | 31.789474 | 0.851504 | 0.235099 | 0 | 0 | 0 | 0 | 0.105033 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 |
01484f8d0091c2d813104eb3049d829dc1b00048 | 6,397 | py | Python | MorphogenesisImageData.py | thomasdeniau/pyfauxfur | 7862bf1a6f7a3302c3cc0bb2547e586ccead98f1 | [
"BSD-3-Clause"
] | 5 | 2015-02-28T21:38:49.000Z | 2021-12-23T01:14:44.000Z | MorphogenesisImageData.py | thomasdeniau/pyfauxfur | 7862bf1a6f7a3302c3cc0bb2547e586ccead98f1 | [
"BSD-3-Clause"
] | 1 | 2016-03-11T16:41:46.000Z | 2019-11-14T20:30:57.000Z | MorphogenesisImageData.py | thomasdeniau/pyfauxfur | 7862bf1a6f7a3302c3cc0bb2547e586ccead98f1 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
"""
Texture.py
Created by Olivier Le Floch on 2009-03-17.
Program written by Thomas Deniau and Olivier Le Floch.
Copyright (c) 2009. All rights reserved.
Portions of this code have been adapted from pygarrayimage :
http://pypi.python.org/pypi/pygarrayimage/0.0.5
http://code... | 27.934498 | 116 | 0.56761 | 959 | 6,397 | 3.602711 | 0.228363 | 0.055572 | 0.036469 | 0.004631 | 0.178003 | 0.086252 | 0.061939 | 0.038206 | 0.031838 | 0.031838 | 0 | 0.033311 | 0.296076 | 6,397 | 228 | 117 | 28.057018 | 0.733955 | 0.009379 | 0 | 0.04902 | 0 | 0.009804 | 0.081212 | 0.020367 | 0 | 0 | 0.001527 | 0 | 0.009804 | 0 | null | null | 0 | 0.068627 | null | null | 0.088235 | 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 |
014f2bad261e2a2c28d2f3514670a4e3e0b62226 | 717 | py | Python | course_grader/log.py | uw-it-aca/gradepage | 7059d715cc112ad0ecb0e5012f716e525ee7b3bc | [
"Apache-2.0"
] | 1 | 2017-01-29T09:52:06.000Z | 2017-01-29T09:52:06.000Z | course_grader/log.py | uw-it-aca/gradepage | 7059d715cc112ad0ecb0e5012f716e525ee7b3bc | [
"Apache-2.0"
] | 287 | 2017-03-09T00:17:20.000Z | 2022-01-08T00:36:34.000Z | course_grader/log.py | uw-it-aca/gradepage | 7059d715cc112ad0ecb0e5012f716e525ee7b3bc | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0
from logging import Filter
class UserFilter(Filter):
""" Add user information to each log entry. """
def filter(self, record):
from userservice.user import UserService
user_service = UserService()
... | 25.607143 | 67 | 0.617852 | 83 | 717 | 5.26506 | 0.590361 | 0.075515 | 0.059497 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0.271967 | 717 | 27 | 68 | 26.555556 | 0.825671 | 0.217573 | 0 | 0.133333 | 0 | 0 | 0.014625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 0.066667 | 0.533333 | 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 |
0158336ef5dce616921eaa67be2f4b027e8f196b | 677 | py | Python | app/libs/emails.py | redsnowc/odst | ae49802477d6bfccdde39e3445bfe55468ce9d5c | [
"MIT"
] | null | null | null | app/libs/emails.py | redsnowc/odst | ae49802477d6bfccdde39e3445bfe55468ce9d5c | [
"MIT"
] | 1 | 2021-06-02T00:03:50.000Z | 2021-06-02T00:03:50.000Z | app/libs/emails.py | redsnowc/odst | ae49802477d6bfccdde39e3445bfe55468ce9d5c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
:author: 秋荏苒
:copyright: © 2019 by 秋荏苒 <nuanyang.44@gmail.com>.
:license: MIT, see LICENSE for more details.
"""
from threading import Thread
from flask import url_for, current_app, render_template
from flask_mail import Message
from app.libs.extensions import mail
def _send_... | 26.038462 | 62 | 0.703102 | 93 | 677 | 4.946237 | 0.526882 | 0.03913 | 0.056522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012522 | 0.174298 | 677 | 25 | 63 | 27.08 | 0.808587 | 0.193501 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.307692 | 0 | 0.461538 | 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 |
015b04a437c6c6ea29e12778ee4af81690771e66 | 295 | py | Python | contest_01/C.py | diable201/YandexAlgorithms | 98302aab63d47f1dffcd77cfb0aad2b3e1343bfc | [
"MIT"
] | null | null | null | contest_01/C.py | diable201/YandexAlgorithms | 98302aab63d47f1dffcd77cfb0aad2b3e1343bfc | [
"MIT"
] | null | null | null | contest_01/C.py | diable201/YandexAlgorithms | 98302aab63d47f1dffcd77cfb0aad2b3e1343bfc | [
"MIT"
] | null | null | null | def reformat(string):
string = string.replace('-', '').replace('(', '').replace(')', '')
return string[-10:] if len(string) > 7 else '495' + string[-7:]
n = 4
notes = [input() for i in range(n)]
for note in notes[1:]:
print('YES' if reformat(notes[0]) == reformat(note) else 'NO')
| 32.777778 | 70 | 0.579661 | 43 | 295 | 3.976744 | 0.581395 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041322 | 0.179661 | 295 | 8 | 71 | 36.875 | 0.665289 | 0 | 0 | 0 | 0 | 0 | 0.037288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0.142857 | 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 |
015fa3798d3e3ec280a9c39f8605b75f2548c211 | 1,024 | py | Python | wicarproject/carupload/tests.py | todhm/wicarproject | 5a3ea7b70ba6649af75d9e9bb49683eb6f94b570 | [
"MIT"
] | 1 | 2018-04-20T04:58:50.000Z | 2018-04-20T04:58:50.000Z | wicarproject/carupload/tests.py | todhm/wicarproject | 5a3ea7b70ba6649af75d9e9bb49683eb6f94b570 | [
"MIT"
] | 7 | 2021-02-08T20:24:49.000Z | 2022-03-11T23:26:33.000Z | wicarproject/carupload/tests.py | todhm/wicarproject | 5a3ea7b70ba6649af75d9e9bb49683eb6f94b570 | [
"MIT"
] | null | null | null | import os
import unittest
import sqlalchemy
from flask import Flask,session,url_for,redirect
from flask_sqlalchemy import SQLAlchemy
from application import create_app ,db
import unittest
import json
from caruser.models import User
from carupload.models import CarOption,Car,CarImage
from flask_testing import TestCase
f... | 29.257143 | 82 | 0.794922 | 144 | 1,024 | 5.513889 | 0.5 | 0.034005 | 0.050378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134766 | 1,024 | 34 | 83 | 30.117647 | 0.896163 | 0 | 0 | 0.074074 | 0 | 0 | 0.043945 | 0.025391 | 0 | 0 | 0 | 0 | 0.074074 | 1 | 0.037037 | false | 0 | 0.703704 | 0 | 0.777778 | 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 |
0169d61c2bae04986d4cde0ff70ab77e92f99156 | 6,430 | py | Python | wink/api.py | borromeotlhs/py-wink | 12e1901ee9848f500f51d5d0705dbf7ac7bac1af | [
"MIT"
] | 33 | 2015-01-10T07:31:45.000Z | 2018-11-08T21:04:51.000Z | wink/api.py | borromeotlhs/py-wink | 12e1901ee9848f500f51d5d0705dbf7ac7bac1af | [
"MIT"
] | 3 | 2015-01-24T19:21:44.000Z | 2015-04-11T17:29:48.000Z | wink/api.py | borromeotlhs/py-wink | 12e1901ee9848f500f51d5d0705dbf7ac7bac1af | [
"MIT"
] | 20 | 2015-01-21T05:32:35.000Z | 2021-05-03T03:46:20.000Z | import httplib2
import json
from pprint import pprint
from auth import reauth, need_to_reauth
import devices
class Wink(object):
"""Main object for making API calls to the Wink cloud servers.
Constructor requires a persistence object,
e.g. persist.ConfigFile.
"populate_devices" reads the device lis... | 29.631336 | 74 | 0.575428 | 777 | 6,430 | 4.570142 | 0.235521 | 0.047874 | 0.036609 | 0.038299 | 0.171501 | 0.124472 | 0.041115 | 0.024219 | 0.024219 | 0.024219 | 0 | 0.004398 | 0.328149 | 6,430 | 216 | 75 | 29.768519 | 0.817593 | 0.038725 | 0 | 0.086331 | 0 | 0 | 0.06975 | 0.013428 | 0 | 0 | 0 | 0.00463 | 0 | 0 | null | null | 0.007194 | 0.035971 | null | null | 0.057554 | 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 |
0169f78a94ffe6c00ee51474c8ff6ab23da2e524 | 478 | py | Python | src/blog/migrations/0032_auto_20191004_1509.py | codewithrakib/first-django-blog | 339f5833025b0758f391c7c8e0979ca2eefd1b52 | [
"MIT"
] | null | null | null | src/blog/migrations/0032_auto_20191004_1509.py | codewithrakib/first-django-blog | 339f5833025b0758f391c7c8e0979ca2eefd1b52 | [
"MIT"
] | 7 | 2021-03-19T02:00:00.000Z | 2022-02-10T10:26:38.000Z | src/blog/migrations/0032_auto_20191004_1509.py | codewithrakib/first-django-blog | 339f5833025b0758f391c7c8e0979ca2eefd1b52 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.5 on 2019-10-04 15:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0031_auto_20191004_1453'),
]
operations = [
migrations.AlterField(
model_name='reaction',
name='react',
... | 25.157895 | 144 | 0.594142 | 52 | 478 | 5.346154 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091922 | 0.248954 | 478 | 18 | 145 | 26.555556 | 0.682451 | 0.094142 | 0 | 0 | 1 | 0 | 0.178654 | 0.053364 | 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 |
016f73a3354a8524e2ded8dd621f7116c494079b | 3,131 | py | Python | tests/test_worker_emails.py | peterwallhead/dnstwister | 9c162282bbe48fcfda08f0deb6eadcfd8cf980b4 | [
"Unlicense"
] | null | null | null | tests/test_worker_emails.py | peterwallhead/dnstwister | 9c162282bbe48fcfda08f0deb6eadcfd8cf980b4 | [
"Unlicense"
] | 1 | 2015-12-10T00:01:36.000Z | 2015-12-10T00:11:05.000Z | tests/test_worker_emails.py | peterwallhead/dnstwister | 9c162282bbe48fcfda08f0deb6eadcfd8cf980b4 | [
"Unlicense"
] | null | null | null | """Tests the email worker."""
import datetime
import dnstwister
import patches
import worker_email
import worker_deltas
def test_subscription_email_timing(capsys, monkeypatch):
"""Test that email subscriptions and delta reporting are in sync.
A bug was found where, because signing up registers f... | 33.308511 | 80 | 0.691153 | 417 | 3,131 | 5.040767 | 0.314149 | 0.021408 | 0.048525 | 0.039962 | 0.320647 | 0.235014 | 0.209324 | 0.209324 | 0.147003 | 0.129401 | 0 | 0.016893 | 0.224848 | 3,131 | 93 | 81 | 33.666667 | 0.849197 | 0.301821 | 0 | 0.3125 | 0 | 0 | 0.106445 | 0.053711 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.020833 | false | 0.0625 | 0.104167 | 0 | 0.125 | 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 |
0170c4d881ac61c4be1de42fbdd40accf46d539b | 1,767 | py | Python | books/book_information.py | Bricevne/P2_booksonline | 1da0a6ddbd96b7d8f58760b13060a611e4d01e15 | [
"MIT"
] | null | null | null | books/book_information.py | Bricevne/P2_booksonline | 1da0a6ddbd96b7d8f58760b13060a611e4d01e15 | [
"MIT"
] | null | null | null | books/book_information.py | Bricevne/P2_booksonline | 1da0a6ddbd96b7d8f58760b13060a611e4d01e15 | [
"MIT"
] | null | null | null | """Functions to get all the book's information."""
def get_title(soup_object: object) -> str:
"""Return book title."""
return soup_object.find("h1").text
def get_universal_product_code(product_information_table: list) -> str:
"""Return book UPC."""
return product_information_table[0].text
def get_... | 32.127273 | 87 | 0.681381 | 225 | 1,767 | 5.128889 | 0.306667 | 0.095321 | 0.090121 | 0.082322 | 0.330156 | 0.274697 | 0.117851 | 0.083189 | 0.083189 | 0 | 0 | 0.005394 | 0.160724 | 1,767 | 54 | 88 | 32.722222 | 0.772758 | 0.156763 | 0 | 0 | 0 | 0 | 0.104239 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.346154 | false | 0 | 0 | 0 | 0.692308 | 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 |
0171e23ca82e6c87217ac95637a60a119a029234 | 2,355 | py | Python | foundation_public/constants.py | smegurus/smegurus-django | 053973b5ff0b997c52bfaca8daf8e07db64a877c | [
"BSD-4-Clause"
] | 1 | 2020-07-16T10:58:23.000Z | 2020-07-16T10:58:23.000Z | foundation_public/constants.py | smegurus/smegurus-django | 053973b5ff0b997c52bfaca8daf8e07db64a877c | [
"BSD-4-Clause"
] | 13 | 2018-11-30T02:29:39.000Z | 2022-03-11T23:35:49.000Z | foundation_public/constants.py | smegurus/smegurus-django | 053973b5ff0b997c52bfaca8daf8e07db64a877c | [
"BSD-4-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from django.utils.translation import ugettext_lazy as _
# Array of suspicious URLs which are generally called by Users who have
# malicious intent to harm our system.
SUSPICIOUS_PATHS = [
'/phpmyadmin/scripts/setup.php',
'/phpMyAdmin/scripts/setup.php',
'/pma/scripts/setup.php',
... | 26.761364 | 194 | 0.58896 | 290 | 2,355 | 4.762069 | 0.675862 | 0.043447 | 0.054308 | 0.036206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050131 | 0.186837 | 2,355 | 87 | 195 | 27.068966 | 0.671018 | 0.054352 | 0 | 0.02439 | 0 | 0.036585 | 0.678363 | 0.347728 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.012195 | 0 | 0.012195 | 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 |
017728801944ff18133d9b5e6b58f6dc490f4cfb | 1,849 | py | Python | src/loom/exceptions.py | hemagso/loom | c63917ddf3279187c54d7ff638d6bef5f0afebab | [
"MIT"
] | null | null | null | src/loom/exceptions.py | hemagso/loom | c63917ddf3279187c54d7ff638d6bef5f0afebab | [
"MIT"
] | null | null | null | src/loom/exceptions.py | hemagso/loom | c63917ddf3279187c54d7ff638d6bef5f0afebab | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from .tables import BaseTable
from .fields import BaseField
class DuplicatedFieldException(Exception):
"""
An Exception that is raised when two fields with the same physical name are added
to the same T... | 30.816667 | 86 | 0.650081 | 223 | 1,849 | 5.206278 | 0.309417 | 0.096469 | 0.065461 | 0.041344 | 0.367786 | 0.347115 | 0.268734 | 0.144703 | 0.079242 | 0.079242 | 0 | 0 | 0.275284 | 1,849 | 60 | 87 | 30.816667 | 0.866418 | 0.24662 | 0 | 0.363636 | 0 | 0 | 0.167453 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.121212 | 0 | 0.545455 | 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 |
017a5d8679c6a8064c34293149769ab52bc82dff | 2,007 | py | Python | brewPipe/models/numpy_mean_variance.py | meyerd/brewPipe | 48f20ccd3ac7cefb899164407de3cd61ce17000a | [
"Apache-2.0"
] | null | null | null | brewPipe/models/numpy_mean_variance.py | meyerd/brewPipe | 48f20ccd3ac7cefb899164407de3cd61ce17000a | [
"Apache-2.0"
] | null | null | null | brewPipe/models/numpy_mean_variance.py | meyerd/brewPipe | 48f20ccd3ac7cefb899164407de3cd61ce17000a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
from ..pipelineState import PipelineStateInterface
from ..data import BrewPipeDataFrame
__author__ = 'Dominik Meyer <meyerd@mytum.de>'
class RandomMeanVariance(PipelineStateInterface):
"""
This is an implementation that records the mean and va... | 31.359375 | 78 | 0.618834 | 241 | 2,007 | 4.879668 | 0.381743 | 0.068027 | 0.038265 | 0.038265 | 0.061224 | 0.037415 | 0 | 0 | 0 | 0 | 0 | 0.004923 | 0.29148 | 2,007 | 63 | 79 | 31.857143 | 0.822082 | 0.020927 | 0 | 0 | 0 | 0 | 0.053696 | 0.015793 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078947 | null | null | 0.078947 | 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 |
0188575535ae6f68d4bab82f9863729bd8be6e16 | 1,094 | py | Python | tests/unit/test_badge.py | OptimeeringAS/python-coverage-comment-action | 8ad51106c29cf72cea966495db6234974b611c3f | [
"MIT"
] | 2 | 2022-02-04T09:22:47.000Z | 2022-03-13T21:34:17.000Z | tests/unit/test_badge.py | OptimeeringAS/python-coverage-comment-action | 8ad51106c29cf72cea966495db6234974b611c3f | [
"MIT"
] | 4 | 2022-01-30T21:46:43.000Z | 2022-03-28T20:32:11.000Z | tests/unit/test_badge.py | OptimeeringAS/python-coverage-comment-action | 8ad51106c29cf72cea966495db6234974b611c3f | [
"MIT"
] | 1 | 2022-03-18T14:44:37.000Z | 2022-03-18T14:44:37.000Z | import pytest
from coverage_comment import badge
@pytest.mark.parametrize(
"line_rate, badge_json",
[
(
0.2,
"""{"schemaVersion": 1, "label": "Coverage", "message": "20%", "color": "red"}""",
),
(
0.8,
"""{"schemaVersion": 1, "label": "C... | 26.682927 | 103 | 0.566728 | 122 | 1,094 | 4.868852 | 0.385246 | 0.075758 | 0.127946 | 0.181818 | 0.262626 | 0.148148 | 0.148148 | 0.148148 | 0 | 0 | 0 | 0.030266 | 0.244973 | 1,094 | 40 | 104 | 27.35 | 0.688862 | 0 | 0 | 0.096774 | 0 | 0.032258 | 0.200238 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 1 | 0.096774 | false | 0 | 0.064516 | 0 | 0.16129 | 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 |
018d7d1f1f88359133dc389cc911cd695de3c89e | 1,789 | py | Python | original/common/exceptions.py | duoduo369/pirate | 744fc1d4d0ef2ab13369494a5e7c6622267fae32 | [
"MIT"
] | null | null | null | original/common/exceptions.py | duoduo369/pirate | 744fc1d4d0ef2ab13369494a5e7c6622267fae32 | [
"MIT"
] | 7 | 2020-06-06T00:41:27.000Z | 2022-03-12T00:15:22.000Z | original/common/exceptions.py | duoduo369/pirate | 744fc1d4d0ef2ab13369494a5e7c6622267fae32 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import
class ErrorCode(object):
system_error = 10001
missing_parameter = 20001
invalid_parameter = 20002
api_exception = 20003
not_found = 20004
not_authenticated = 20005
permission_denied = 20006
authentication_failed = 20007
... | 28.854839 | 86 | 0.737842 | 187 | 1,789 | 6.652406 | 0.31016 | 0.051447 | 0.053055 | 0.072347 | 0.300643 | 0.28135 | 0.11254 | 0 | 0 | 0 | 0 | 0.037308 | 0.160984 | 1,789 | 61 | 87 | 29.327869 | 0.791472 | 0.011738 | 0 | 0 | 0 | 0 | 0.056059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.189189 | false | 0.027027 | 0.027027 | 0.027027 | 0.756757 | 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 |
019101920a62f66f1af9c085b16f5e899a627e90 | 665 | py | Python | setup.py | smidm/EfficientPose | 7df95541a9af4e3fe4350d857a3128f000bcbee3 | [
"CC-BY-4.0"
] | null | null | null | setup.py | smidm/EfficientPose | 7df95541a9af4e3fe4350d857a3128f000bcbee3 | [
"CC-BY-4.0"
] | null | null | null | setup.py | smidm/EfficientPose | 7df95541a9af4e3fe4350d857a3128f000bcbee3 | [
"CC-BY-4.0"
] | null | null | null | #!/usr/bin/env python3
from setuptools import setup
setup(
name="efficientpose",
description="Human pose estimation",
python_requires=">=3.6",
install_requires=[
"numpy",
"tensorflow", # ==2.5.1
"pymediainfo==5.0.3",
"scikit-image==0.17.2",
"sk-video==1.1.10",
... | 27.708333 | 116 | 0.586466 | 68 | 665 | 5.647059 | 0.661765 | 0.135417 | 0.161458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032443 | 0.21203 | 665 | 23 | 117 | 28.913043 | 0.700382 | 0.043609 | 0 | 0 | 0 | 0 | 0.449527 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 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 |
6d6eb046c0521262c259e62e2e41a6fec9825334 | 1,090 | py | Python | nodes/join_path.py | iograft/iograft | 80bcf7d9311ffbdbb2669e00f79d1c497a274b1f | [
"Apache-2.0"
] | null | null | null | nodes/join_path.py | iograft/iograft | 80bcf7d9311ffbdbb2669e00f79d1c497a274b1f | [
"Apache-2.0"
] | null | null | null | nodes/join_path.py | iograft/iograft | 80bcf7d9311ffbdbb2669e00f79d1c497a274b1f | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Fabrica Software, LLC
import os
import iograft
import iobasictypes
class JoinPath(iograft.Node):
"""
Join two paths. Wrapper around os.path.join() for two paths.
"""
dirname = iograft.InputDefinition("dirname", iobasictypes.String())
basename = iograft.InputDefinition("basename"... | 26.585366 | 73 | 0.678899 | 114 | 1,090 | 6.482456 | 0.385965 | 0.073072 | 0.027064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004662 | 0.212844 | 1,090 | 40 | 74 | 27.25 | 0.856643 | 0.109174 | 0 | 0 | 0 | 0 | 0.02935 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.12 | 0.04 | 0.52 | 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 |
6d727afe57b7221b50a5cd2b9bdf82f6c15d2615 | 1,023 | py | Python | gerador_mega_sena.py | rodrigolins92/exercicios-diversos | c2ea729b7ea6d522d73ef228a5ab59d883ee1617 | [
"Apache-2.0"
] | null | null | null | gerador_mega_sena.py | rodrigolins92/exercicios-diversos | c2ea729b7ea6d522d73ef228a5ab59d883ee1617 | [
"Apache-2.0"
] | null | null | null | gerador_mega_sena.py | rodrigolins92/exercicios-diversos | c2ea729b7ea6d522d73ef228a5ab59d883ee1617 | [
"Apache-2.0"
] | null | null | null | from random import randint
def gera_jogos(qtd_jogos):
contador_jogos = 0
while contador_jogos < qtd_jogos:
lista = []
contador_numeros = 0
while contador_numeros < 6:
numero_sorteado = randint(1,60)
if numero_sorteado not in lista:
lista.appen... | 24.357143 | 68 | 0.461388 | 93 | 1,023 | 4.892473 | 0.473118 | 0.175824 | 0.164835 | 0.131868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009816 | 0.203324 | 1,023 | 42 | 69 | 24.357143 | 0.548466 | 0.02737 | 0 | 0.37931 | 0 | 0 | 0.316583 | 0.235176 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.034483 | 0 | 0.068966 | 0.448276 | 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 |
6d72830af5533abefc96d639e4192a05d9335321 | 1,176 | py | Python | services/web/project/auth/__init__.py | petervuyk456/persona_finance | 5c4c1bea0e176f37cc122571b846de1f020bdd92 | [
"MIT"
] | null | null | null | services/web/project/auth/__init__.py | petervuyk456/persona_finance | 5c4c1bea0e176f37cc122571b846de1f020bdd92 | [
"MIT"
] | null | null | null | services/web/project/auth/__init__.py | petervuyk456/persona_finance | 5c4c1bea0e176f37cc122571b846de1f020bdd92 | [
"MIT"
] | null | null | null | import functools
from flask import redirect, abort
from flask_bcrypt import Bcrypt
from flask_login import LoginManager, AnonymousUserMixin, current_user, login_user
class TrackerAnonymous(AnonymousUserMixin):
def __init__(self):
self.username = 'Guest'
bcrypt = Bcrypt()
login_manager = LoginManager()
... | 26.133333 | 82 | 0.732993 | 148 | 1,176 | 5.567568 | 0.418919 | 0.116505 | 0.061893 | 0.058252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003128 | 0.184524 | 1,176 | 44 | 83 | 26.727273 | 0.8561 | 0 | 0 | 0 | 0 | 0 | 0.048469 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.1875 | 0 | 0.53125 | 0.0625 | 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 |
6d74a4f2e38244f2f6d37925573d0ecdec8cfe88 | 2,199 | py | Python | users/class_tests/login_tests.py | RavidYael/lets-meet | 38c409dc3ae79e9683b2e22b0e3a51298aea606c | [
"MIT"
] | null | null | null | users/class_tests/login_tests.py | RavidYael/lets-meet | 38c409dc3ae79e9683b2e22b0e3a51298aea606c | [
"MIT"
] | 21 | 2022-03-09T08:39:42.000Z | 2022-03-31T21:11:47.000Z | users/class_tests/login_tests.py | RavidYael/lets-meet | 38c409dc3ae79e9683b2e22b0e3a51298aea606c | [
"MIT"
] | 5 | 2022-02-28T13:45:11.000Z | 2022-03-06T15:26:54.000Z | import pytest
from users.models import User
from collections import namedtuple
from django.contrib.auth import authenticate
from pytest_django.asserts import assertTemplateUsed
from users.forms import MyUserCreationForm as LoginForm
from .constants import (
VALID_USERNAME, VALID_EMAIL, VALID_PASSWORD,
NOT_VALID... | 38.578947 | 114 | 0.746703 | 269 | 2,199 | 5.769517 | 0.245353 | 0.072165 | 0.171392 | 0.099227 | 0.433634 | 0.425258 | 0.320876 | 0.320876 | 0.320876 | 0.251289 | 0 | 0.004937 | 0.170987 | 2,199 | 56 | 115 | 39.267857 | 0.846407 | 0 | 0 | 0.204545 | 0 | 0 | 0.050023 | 0 | 0 | 0 | 0 | 0 | 0.204545 | 1 | 0.181818 | false | 0.227273 | 0.159091 | 0.022727 | 0.409091 | 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 |
6d7dc273cdd95c59cefadb47739bd26c8cbbc6b1 | 23,555 | py | Python | csb/test/cases/bio/io/wwpdb/__init__.py | ujjwalsh/CSB | cbe04f35e1ecace7fa01cabce669d99714b9dd38 | [
"MIT"
] | 10 | 2017-07-03T14:06:25.000Z | 2021-04-20T07:49:08.000Z | csb/test/cases/bio/io/wwpdb/__init__.py | ujjwalsh/CSB | cbe04f35e1ecace7fa01cabce669d99714b9dd38 | [
"MIT"
] | 5 | 2017-07-03T13:29:03.000Z | 2022-02-02T12:45:29.000Z | csb/test/cases/bio/io/wwpdb/__init__.py | ujjwalsh/CSB | cbe04f35e1ecace7fa01cabce669d99714b9dd38 | [
"MIT"
] | 3 | 2017-07-04T14:45:41.000Z | 2020-12-18T08:57:27.000Z | import os
import sys
import csb.test as test
from csb.bio.io.wwpdb import EntryID, StandardID, DegenerateID, SeqResID, InvalidEntryIDError, HeaderFormatError
from csb.bio.io.wwpdb import RobustResidueMapper, FastResidueMapper, CombinedResidueMapper, ResidueMappingError, SparseChainSequence
from csb.bio.io.wwpdb import... | 36.406491 | 170 | 0.618595 | 2,389 | 23,555 | 6.046882 | 0.139389 | 0.120449 | 0.038142 | 0.038073 | 0.640593 | 0.588052 | 0.512876 | 0.499792 | 0.472657 | 0.46968 | 0 | 0.018528 | 0.262195 | 23,555 | 646 | 171 | 36.462848 | 0.812705 | 0.026279 | 0 | 0.486352 | 1 | 0.002481 | 0.042417 | 0.009792 | 0 | 0 | 0 | 0 | 0.394541 | 1 | 0.16129 | false | 0 | 0.024814 | 0 | 0.238213 | 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 |
6d80b5b9cd7a15c03914f4bba43249962f2fad50 | 8,603 | py | Python | pychess/board/board.py | mpunkenhofer/pychess | 29e48d3ec68ba55e87b8d5a07544d96bc14ab558 | [
"MIT"
] | null | null | null | pychess/board/board.py | mpunkenhofer/pychess | 29e48d3ec68ba55e87b8d5a07544d96bc14ab558 | [
"MIT"
] | null | null | null | pychess/board/board.py | mpunkenhofer/pychess | 29e48d3ec68ba55e87b8d5a07544d96bc14ab558 | [
"MIT"
] | null | null | null | # Mathias Punkenhofer
# code.mpunkenhofer@gmail.com
#
import math
from abc import ABC, abstractmethod
import pychess
class Board(ABC):
@abstractmethod
def __init__(self):
self.history = []
self.pieces = None
self.enable_white_long_castle = self.enable_white_short_castle = True
... | 31.628676 | 115 | 0.610485 | 1,169 | 8,603 | 4.304534 | 0.134303 | 0.040342 | 0.019078 | 0.037758 | 0.491455 | 0.413156 | 0.378975 | 0.354332 | 0.263911 | 0.24841 | 0 | 0.008997 | 0.289434 | 8,603 | 271 | 116 | 31.745387 | 0.814167 | 0.171452 | 0 | 0.184211 | 0 | 0 | 0.007788 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.236842 | false | 0.039474 | 0.019737 | 0.092105 | 0.447368 | 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 |
6d8446e88c0c1ca13e08b106b8108b43bbee88c9 | 7,080 | py | Python | bminf/backend/cublaslt.py | THUCSTHanxu13/BMInf | 59e8903366ed53615d8af0a61e15b9f932042dcc | [
"Apache-2.0"
] | null | null | null | bminf/backend/cublaslt.py | THUCSTHanxu13/BMInf | 59e8903366ed53615d8af0a61e15b9f932042dcc | [
"Apache-2.0"
] | null | null | null | bminf/backend/cublaslt.py | THUCSTHanxu13/BMInf | 59e8903366ed53615d8af0a61e15b9f932042dcc | [
"Apache-2.0"
] | null | null | null | import ctypes, sys, struct
from ..utils.lib import LibFunction, lookup_dll, unix_find_lib
found = False
if sys.platform.startswith("win"):
dll_path = lookup_dll("cublasLt%d_" % (struct.calcsize("P") * 8))
if dll_path is not None:
found = True
lib = ctypes.WinDLL(dll_path)
else:
lib_name = unix... | 56.190476 | 378 | 0.728249 | 754 | 7,080 | 6.412467 | 0.224138 | 0.059359 | 0.038056 | 0.057084 | 0.26577 | 0.24364 | 0.222337 | 0.211169 | 0.169804 | 0.169804 | 0 | 0.023248 | 0.210169 | 7,080 | 126 | 379 | 56.190476 | 0.841381 | 0 | 0 | 0.070796 | 0 | 0 | 0.112414 | 0.092784 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00885 | false | 0.00885 | 0.017699 | 0 | 0.672566 | 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 |
6d869cf308c9139d79cab1a5d24e68075fe8f2c5 | 1,705 | py | Python | contribauthproxy/migrations/0002_foreignauthuser_usercomment.py | parksandwildlife/fdwfunhouse | f08d73e4cdd1cdc9e2df194f1da24f32d15c9cda | [
"Apache-2.0"
] | null | null | null | contribauthproxy/migrations/0002_foreignauthuser_usercomment.py | parksandwildlife/fdwfunhouse | f08d73e4cdd1cdc9e2df194f1da24f32d15c9cda | [
"Apache-2.0"
] | null | null | null | contribauthproxy/migrations/0002_foreignauthuser_usercomment.py | parksandwildlife/fdwfunhouse | f08d73e4cdd1cdc9e2df194f1da24f32d15c9cda | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-31 08:44
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('contribauthproxy', '0001_initial'),
... | 36.276596 | 149 | 0.564223 | 157 | 1,705 | 5.955414 | 0.522293 | 0.080214 | 0.096257 | 0.128342 | 0.124064 | 0.064171 | 0 | 0 | 0 | 0 | 0 | 0.028404 | 0.297947 | 1,705 | 46 | 150 | 37.065217 | 0.752715 | 0.039883 | 0 | 0.210526 | 1 | 0 | 0.137699 | 0.019584 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.026316 | 0.078947 | 0 | 0.184211 | 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 |
6d91091c0e7cf05439d96ac1dad861c9deb2436c | 488 | py | Python | pandas/basic.py | FedoraScientific/scientific_spin_tests | 953620749c50092e0265846f49d89b1de77e93d3 | [
"Unlicense"
] | 1 | 2015-04-06T02:09:57.000Z | 2015-04-06T02:09:57.000Z | pandas/basic.py | FedoraScientific/scientific_spin_tests | 953620749c50092e0265846f49d89b1de77e93d3 | [
"Unlicense"
] | 1 | 2018-03-27T06:42:26.000Z | 2018-03-27T06:42:26.000Z | pandas/basic.py | FedoraScientific/scientific_spin_tests | 953620749c50092e0265846f49d89b1de77e93d3 | [
"Unlicense"
] | null | null | null | # Example from http://pandas.pydata.org/pandas-docs/stable/visualization.html#visualization
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from numpy.random import randn
from pandas import Series, date_range, DataFrame
ts = Series(randn(1000), index=date_range('1/1/2000', periods=1000))
ts =... | 25.684211 | 91 | 0.747951 | 75 | 488 | 4.84 | 0.533333 | 0.088154 | 0.077135 | 0.099174 | 0.115702 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042986 | 0.094262 | 488 | 18 | 92 | 27.111111 | 0.778281 | 0.180328 | 0 | 0.153846 | 0 | 0 | 0.078086 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 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 |
6d9467cc6e1190ce5fd0d0bd6fe9d2d6a8898bdc | 273 | py | Python | definitions.py | Jamesforelock/data-visualizer | 30b92e4f5ace16fc32e5c88cef4151b84cd303c2 | [
"MIT"
] | null | null | null | definitions.py | Jamesforelock/data-visualizer | 30b92e4f5ace16fc32e5c88cef4151b84cd303c2 | [
"MIT"
] | null | null | null | definitions.py | Jamesforelock/data-visualizer | 30b92e4f5ace16fc32e5c88cef4151b84cd303c2 | [
"MIT"
] | null | null | null | # @author Denis Chuprynin <denischuprynin@gmail.com>
import os
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
DATA_DIR = os.path.join(ROOT_DIR, 'app/data')
MYSQL = {
'host': 'localhost',
'user': 'user',
'password': 'user',
'database': 'for_vis'
}
| 19.5 | 53 | 0.652015 | 36 | 273 | 4.722222 | 0.694444 | 0.105882 | 0.105882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164835 | 273 | 13 | 54 | 21 | 0.745614 | 0.18315 | 0 | 0 | 0 | 0 | 0.253394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.111111 | 0 | 0.111111 | 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 |
6d978b0402a86afe9ddb72f7f250e814d8dda790 | 1,398 | py | Python | ttpp/gen/nonstationary_renewal.py | shchur/triangular-tpp | 19df15fb6f0701e0a2cb9f6afc8a5dfe87a80f40 | [
"MIT"
] | 19 | 2020-11-10T11:31:05.000Z | 2022-03-19T16:15:02.000Z | ttpp/gen/nonstationary_renewal.py | shchur/triangular-tpp | 19df15fb6f0701e0a2cb9f6afc8a5dfe87a80f40 | [
"MIT"
] | null | null | null | ttpp/gen/nonstationary_renewal.py | shchur/triangular-tpp | 19df15fb6f0701e0a2cb9f6afc8a5dfe87a80f40 | [
"MIT"
] | 5 | 2021-03-03T10:24:50.000Z | 2021-12-13T09:20:06.000Z | import numpy as np
from pathlib import Path
from scipy.stats import gamma
from scipy.optimize import brentq
dataset_dir = Path(__file__).parents[2] / 'data'
def generate(max_time, n_sequences, filename='nonstationary_renewal'):
times, nll = [], []
for _ in range(n_sequences):
L = max_time
amp ... | 29.125 | 132 | 0.555079 | 227 | 1,398 | 3.264317 | 0.330396 | 0.066127 | 0.026991 | 0.021592 | 0.026991 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017526 | 0.306152 | 1,398 | 47 | 133 | 29.744681 | 0.746392 | 0 | 0 | 0 | 1 | 0 | 0.037911 | 0.03505 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.105263 | 0 | 0.157895 | 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 |
6d99f79d010cb61c87fd3701327f217ad679f096 | 479 | py | Python | apps/notes/migrations/0005_alter_note_updated_at.py | Quartz-Vision/syncnote-back-end | 99dd7adeeab9795fe2cceaf17b583d7907869acb | [
"MIT"
] | null | null | null | apps/notes/migrations/0005_alter_note_updated_at.py | Quartz-Vision/syncnote-back-end | 99dd7adeeab9795fe2cceaf17b583d7907869acb | [
"MIT"
] | null | null | null | apps/notes/migrations/0005_alter_note_updated_at.py | Quartz-Vision/syncnote-back-end | 99dd7adeeab9795fe2cceaf17b583d7907869acb | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-11-08 17:59
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('notes', '0004_auto_20211108_1714'),
]
operations = [
migrations.AlterField(
model_name='note',
... | 23.95 | 114 | 0.643006 | 55 | 479 | 5.490909 | 0.781818 | 0.072848 | 0.125828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085399 | 0.242171 | 479 | 19 | 115 | 25.210526 | 0.746556 | 0.093946 | 0 | 0 | 1 | 0 | 0.122685 | 0.053241 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6d9bfee832ad5d71da5827abb15914e64078012f | 5,176 | py | Python | config.py | KirkGuo/HCN | 7d8020c8d76413b6ca3a359fb2e9b34652949e17 | [
"MIT"
] | 1 | 2021-03-22T05:19:44.000Z | 2021-03-22T05:19:44.000Z | config.py | KirkGuo/Context-aware-Dense-Video-Captioning-with-Hierarchical-Attention-Networks | 7d8020c8d76413b6ca3a359fb2e9b34652949e17 | [
"MIT"
] | 1 | 2021-09-30T07:16:38.000Z | 2021-09-30T07:16:38.000Z | config.py | KirkGuo/HCN | 7d8020c8d76413b6ca3a359fb2e9b34652949e17 | [
"MIT"
] | null | null | null | import argparse
def parse_config():
parser = argparse.ArgumentParser()
# data config
parser.add_argument("--train_dataset", type=str)
parser.add_argument("--test_dataset", type=str)
parser.add_argument("--text_feature", type=str)
parser.add_argument("--audio_feature", type=str)
parser.add... | 41.079365 | 114 | 0.71194 | 734 | 5,176 | 4.750681 | 0.209809 | 0.12647 | 0.238887 | 0.068827 | 0.446802 | 0.30628 | 0.144824 | 0.072842 | 0.026957 | 0.026957 | 0 | 0.019716 | 0.127898 | 5,176 | 125 | 115 | 41.408 | 0.752769 | 0.12442 | 0 | 0 | 0 | 0 | 0.176301 | 0.036102 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010526 | false | 0.010526 | 0.010526 | 0 | 0.031579 | 0.010526 | 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 |
6d9d9e2b4149e8a1bd363b71e790c814ee2faff8 | 441 | py | Python | seapy/materials/__init__.py | FRidh/seapy | de63acdb3722c2558fc1ad1e1eca92abdd027932 | [
"BSD-3-Clause"
] | 8 | 2015-07-02T13:34:06.000Z | 2021-05-17T21:34:07.000Z | seapy/materials/__init__.py | FRidh/seapy | de63acdb3722c2558fc1ad1e1eca92abdd027932 | [
"BSD-3-Clause"
] | 2 | 2015-11-09T17:16:07.000Z | 2020-02-19T14:00:20.000Z | seapy/materials/__init__.py | FRidh/seapy | de63acdb3722c2558fc1ad1e1eca92abdd027932 | [
"BSD-3-Clause"
] | 2 | 2021-02-03T08:56:10.000Z | 2022-01-22T02:21:43.000Z | """
Materials
=========
Materials.
.. automodule:: seapy.materials.material
.. automodule:: seapy.materails.materialgas
.. automodule:: seapy.materials.materialsolid
"""
from .materialgas import MaterialGas
from .materialsolid import MaterialSolid
import inspect, sys
materials_map = {
item[0]: item[1]
f... | 16.333333 | 74 | 0.730159 | 46 | 441 | 6.891304 | 0.543478 | 0.141956 | 0.15142 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005236 | 0.133787 | 441 | 26 | 75 | 16.961538 | 0.824607 | 0.369615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 |
6da53a00b46ce9e0dc0e0d27a8f4211f7c0465e1 | 1,548 | py | Python | mopidy/internal/storage.py | stekern/mopidy | 94509cf70f2bd35ebb13e746dde135bfbe35ce0e | [
"Apache-2.0"
] | 2 | 2019-02-13T15:16:55.000Z | 2019-02-18T08:47:29.000Z | mopidy/internal/storage.py | stekern/mopidy | 94509cf70f2bd35ebb13e746dde135bfbe35ce0e | [
"Apache-2.0"
] | 40 | 2019-02-13T09:33:00.000Z | 2019-02-19T13:21:12.000Z | mopidy/internal/storage.py | stekern/mopidy | 94509cf70f2bd35ebb13e746dde135bfbe35ce0e | [
"Apache-2.0"
] | 1 | 2020-03-10T05:11:49.000Z | 2020-03-10T05:11:49.000Z | from __future__ import absolute_import, unicode_literals
import gzip
import json
import logging
import os
import tempfile
from mopidy import models
from mopidy.internal import encoding
logger = logging.getLogger(__name__)
def load(path):
"""
Deserialize data from file.
:param path: full path to import... | 25.377049 | 71 | 0.627907 | 193 | 1,548 | 4.963731 | 0.497409 | 0.018789 | 0.02714 | 0.035491 | 0.048017 | 0.048017 | 0 | 0 | 0 | 0 | 0 | 0.000881 | 0.266796 | 1,548 | 60 | 72 | 25.8 | 0.843172 | 0.229974 | 0 | 0.121212 | 0 | 0 | 0.047872 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 1 | 0.060606 | false | 0 | 0.242424 | 0 | 0.393939 | 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 |
6da6b40278375d84977c56d8d0b94082b7a2bdb8 | 519 | py | Python | server/views/media_search.py | rleir/MediaCloud-Web-Tools | 86fd42959bec2f24c74cf63277da1931a159b218 | [
"Apache-2.0"
] | null | null | null | server/views/media_search.py | rleir/MediaCloud-Web-Tools | 86fd42959bec2f24c74cf63277da1931a159b218 | [
"Apache-2.0"
] | null | null | null | server/views/media_search.py | rleir/MediaCloud-Web-Tools | 86fd42959bec2f24c74cf63277da1931a159b218 | [
"Apache-2.0"
] | null | null | null | import logging
from server.auth import user_mediacloud_client
logger = logging.getLogger(__name__)
MAX_SOURCES = 40
def media_search(search_str, tags_id=None, **kwargs):
mc = user_mediacloud_client()
return mc.mediaList(name_like=search_str, tags_id=tags_id, rows=MAX_SOURCES, sort="num_stories", **kwargs)
... | 28.833333 | 110 | 0.795761 | 79 | 519 | 4.78481 | 0.468354 | 0.095238 | 0.15873 | 0.079365 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004348 | 0.11368 | 519 | 17 | 111 | 30.529412 | 0.817391 | 0 | 0 | 0 | 0 | 0 | 0.021195 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6dac1e73c6d7f36cc695dbfdfbbbf09182f4b6a8 | 5,453 | py | Python | code/models/example_youtube.py | weiqi-luo/face.evoLVe.PyTorch | 9349090a1b593ebe0d12d55d77565fe3f141fb0e | [
"MIT"
] | null | null | null | code/models/example_youtube.py | weiqi-luo/face.evoLVe.PyTorch | 9349090a1b593ebe0d12d55d77565fe3f141fb0e | [
"MIT"
] | null | null | null | code/models/example_youtube.py | weiqi-luo/face.evoLVe.PyTorch | 9349090a1b593ebe0d12d55d77565fe3f141fb0e | [
"MIT"
] | null | null | null | from youtube.face_evoLVe_PyTorch.align.YTPredictor import YTPredictor
import os
import cv2
current_dir = os.path.abspath(os.path.join(os.path.dirname(__file__)))
absPath_to_youtube = os.path.abspath(os.path.join(current_dir, 'youtube'))
## create the object
## absPath_to_youtube : please pass the absolute path to th... | 52.432692 | 165 | 0.520447 | 643 | 5,453 | 4.281493 | 0.275272 | 0.027243 | 0.043589 | 0.029059 | 0.457319 | 0.450054 | 0.385035 | 0.340719 | 0.335997 | 0.335997 | 0 | 0.017751 | 0.132221 | 5,453 | 103 | 166 | 52.941748 | 0.564032 | 0.583532 | 0 | 0.235294 | 0 | 0 | 0.340055 | 0.223648 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.176471 | 0.470588 | 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 |
6daeccb1b1ade3c6a0921ee770cf092be74f9bf5 | 3,653 | py | Python | graphvy/console/graphvy_console.py | salt-die/graphvy | 13e5bac15aa121cc00fc38c1b2f0fb19ff2fc0ee | [
"MIT"
] | 8 | 2020-04-13T00:44:46.000Z | 2021-02-06T01:22:50.000Z | graphvy/console/graphvy_console.py | salt-die/graphvy | 13e5bac15aa121cc00fc38c1b2f0fb19ff2fc0ee | [
"MIT"
] | null | null | null | graphvy/console/graphvy_console.py | salt-die/graphvy | 13e5bac15aa121cc00fc38c1b2f0fb19ff2fc0ee | [
"MIT"
] | 1 | 2020-03-21T01:34:24.000Z | 2020-03-21T01:34:24.000Z | """TODO: ctrl + left/right (move past word), ctrl + backspace/del (del word), shift + del (del line)
...: ctrl + enter to continue input, shift + enter to run code now
...: Smart movement through leading indentation.
...: Except for first line, up/down to work normally on multi-line console input.
"""
from ... | 39.27957 | 112 | 0.637284 | 478 | 3,653 | 4.677824 | 0.322176 | 0.039356 | 0.026834 | 0.016995 | 0.015206 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009111 | 0.248837 | 3,653 | 92 | 113 | 39.706522 | 0.805758 | 0.150287 | 0 | 0 | 0 | 0 | 0.054309 | 0.010081 | 0 | 0 | 0 | 0.01087 | 0 | 1 | 0.09375 | false | 0 | 0.15625 | 0.015625 | 0.390625 | 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 |
6dcb57b1d5e16cfc35aa85b25be7229c0e3008dc | 31,846 | py | Python | analyze_overlap_compute_simpsons.py | shanavas33/tcr-dist | f9304fa9b7ba05f9f776aa3f60822e2e08023151 | [
"MIT"
] | 1 | 2018-10-26T10:59:46.000Z | 2018-10-26T10:59:46.000Z | analyze_overlap_compute_simpsons.py | joshuabhk/tcr-dist | 5ea156bae9216cf1205a7e54a45aa6ffbccac7c9 | [
"MIT"
] | null | null | null | analyze_overlap_compute_simpsons.py | joshuabhk/tcr-dist | 5ea156bae9216cf1205a7e54a45aa6ffbccac7c9 | [
"MIT"
] | null | null | null | from basic import *
import util
from scipy import stats
from tcr_distances import get_rank
from all_genes import all_genes
import numpy as np
distance_threshold_default = pipeline_params['distance_threshold_25']
with Parser(locals()) as p:
p.str('clones_file').required()
p.multiword('epitopes').cast(lambda ... | 40.465057 | 168 | 0.542768 | 3,936 | 31,846 | 4.186738 | 0.114329 | 0.016991 | 0.018569 | 0.011651 | 0.540445 | 0.48753 | 0.457855 | 0.439711 | 0.414224 | 0.40051 | 0 | 0.026917 | 0.331533 | 31,846 | 786 | 169 | 40.516539 | 0.747182 | 0.075865 | 0 | 0.400716 | 0 | 0.023256 | 0.110869 | 0.014357 | 0 | 0 | 0 | 0 | 0.0161 | 0 | null | null | 0 | 0.014311 | null | null | 0.026834 | 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 |
6dcc00e1dad97b93d7aba069f2c9d86653358785 | 441 | py | Python | tests/test_palette.py | knowark/widark | ea3199c2665587d53168963dc1b9c07929e2baff | [
"MIT"
] | 1 | 2020-09-22T14:34:20.000Z | 2020-09-22T14:34:20.000Z | tests/test_palette.py | knowark/widark | ea3199c2665587d53168963dc1b9c07929e2baff | [
"MIT"
] | 4 | 2020-06-12T02:16:38.000Z | 2020-06-15T16:43:17.000Z | tests/test_palette.py | knowark/widark | ea3199c2665587d53168963dc1b9c07929e2baff | [
"MIT"
] | null | null | null | from pytest import raises
from widark.palette import Palette, DefaultPalette
def test_palette_instantiation():
palette = DefaultPalette()
assert isinstance(palette, Palette)
def test_palette_not_implemented():
palette = Palette()
with raises(NotImplementedError):
palette.generate()
def tes... | 22.05 | 50 | 0.741497 | 45 | 441 | 7.111111 | 0.422222 | 0.196875 | 0.13125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176871 | 441 | 19 | 51 | 23.210526 | 0.881543 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.230769 | false | 0 | 0.153846 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6dd39494514835966436ca43028f36c05a0c86b5 | 1,397 | py | Python | 5_diccionarios/2_codigoMorse/codigoMorse.py | igijon/sge_2022 | 48228dad24c3d9fbcd7b0975c28095c40b15c4c3 | [
"MIT"
] | null | null | null | 5_diccionarios/2_codigoMorse/codigoMorse.py | igijon/sge_2022 | 48228dad24c3d9fbcd7b0975c28095c40b15c4c3 | [
"MIT"
] | null | null | null | 5_diccionarios/2_codigoMorse/codigoMorse.py | igijon/sge_2022 | 48228dad24c3d9fbcd7b0975c28095c40b15c4c3 | [
"MIT"
] | null | null | null | #!/usr/bin/env pytho
codigo = {
'A': '.-', 'B': '-...', 'C': '-.-.',
'D': '-..', 'E': '.', 'F': '..-.',
'G': '--.', 'H': '....', 'I': '..',
'J': '.---', 'K': '-.-', 'L': '.-..',
'M': '--', 'N': '-.', 'O': '---',
'P': '.--.', 'Q': '--.-', 'R': '.-.',
... | 34.925 | 65 | 0.272011 | 106 | 1,397 | 3.528302 | 0.575472 | 0.096257 | 0.058824 | 0.069519 | 0.181818 | 0.181818 | 0.181818 | 0.181818 | 0.181818 | 0 | 0 | 0.010628 | 0.259127 | 1,397 | 40 | 66 | 34.925 | 0.350725 | 0.05655 | 0 | 0 | 0 | 0 | 0.232346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6dd83f9a6e77671950e4864de52bc9491ce0ba67 | 1,354 | py | Python | memeoverflow/imgflip/__init__.py | bennuttall/stack-meme-generator | 92ca8301a2bb4428b72b3a62598e8df8b2fdd826 | [
"BSD-3-Clause"
] | 33 | 2019-02-21T08:37:02.000Z | 2021-12-11T17:39:04.000Z | memeoverflow/imgflip/__init__.py | bennuttall/stack-meme-generator | 92ca8301a2bb4428b72b3a62598e8df8b2fdd826 | [
"BSD-3-Clause"
] | null | null | null | memeoverflow/imgflip/__init__.py | bennuttall/stack-meme-generator | 92ca8301a2bb4428b72b3a62598e8df8b2fdd826 | [
"BSD-3-Clause"
] | 3 | 2019-04-06T12:23:46.000Z | 2020-12-16T14:27:50.000Z | from time import sleep
from json import JSONDecodeError
import requests
from requests.exceptions import RequestException
from .memes import MEMES
from ..exc import ImgFlipError
API_URL = 'https://api.imgflip.com/caption_image'
class ImgFlip:
"""
Wrapper class for imgflip API interaction
:type usernam... | 26.54902 | 68 | 0.623338 | 155 | 1,354 | 5.283871 | 0.425806 | 0.07326 | 0.04884 | 0.058608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004094 | 0.278434 | 1,354 | 50 | 69 | 27.08 | 0.834186 | 0.166913 | 0 | 0 | 0 | 0 | 0.170287 | 0.023458 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.09375 | 0.1875 | 0.0625 | 0.4375 | 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 |
6dda36c6b87e988f9cbbc1456f79ae00ea190953 | 755 | py | Python | main/scripts/Cloth.py | danille/ClothesAdvisor-server | 3c0e91001490ca87f89c0799b5abfa93c7012605 | [
"Apache-2.0"
] | 1 | 2016-05-26T17:56:15.000Z | 2016-05-26T17:56:15.000Z | main/scripts/Cloth.py | danille/ClothesAdvisor-server | 3c0e91001490ca87f89c0799b5abfa93c7012605 | [
"Apache-2.0"
] | null | null | null | main/scripts/Cloth.py | danille/ClothesAdvisor-server | 3c0e91001490ca87f89c0799b5abfa93c7012605 | [
"Apache-2.0"
] | null | null | null | class Cloth:
def __init__(self, name, shop_url, available, brand_logo, price, img_url):
self.name = name
self.shop_url = shop_url
self.available = available
self.brand_logo = brand_logo
self.price = price
self.img_url = img_url
def __str__(self):
print('N... | 50.333333 | 118 | 0.394702 | 67 | 755 | 4.179104 | 0.402985 | 0.1 | 0.078571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013966 | 0.525828 | 755 | 14 | 119 | 53.928571 | 0.768156 | 0 | 0 | 0 | 0 | 0.076923 | 0.095364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0 | 0.230769 | 0.076923 | 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 |
6ddcabb292618c0dd92a104290eadf6ee8e98435 | 8,941 | py | Python | ratpy/ratpy.py | dimatura/ratpy | 70e14eec331bf3126821904d7e90b93d1d79a196 | [
"MIT"
] | 2 | 2019-06-19T15:15:32.000Z | 2021-12-22T21:33:58.000Z | ratpy/ratpy.py | dimatura/ratpy | 70e14eec331bf3126821904d7e90b93d1d79a196 | [
"MIT"
] | null | null | null | ratpy/ratpy.py | dimatura/ratpy | 70e14eec331bf3126821904d7e90b93d1d79a196 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from collections import defaultdict
import subprocess
import re
def _call_sdump():
return subprocess.check_output(['ratpoison', '-c', 'sdump'])
def _call_sfdump():
return subprocess.check_output(['ratpoison', '-c', 'sfdump'])
def _call_curframe():
return subprocess.check_output(... | 29.314754 | 75 | 0.553853 | 1,002 | 8,941 | 4.780439 | 0.139721 | 0.056367 | 0.048225 | 0.062004 | 0.43382 | 0.387056 | 0.321921 | 0.290188 | 0.238205 | 0.208142 | 0 | 0.00458 | 0.316296 | 8,941 | 304 | 76 | 29.411184 | 0.778996 | 0.005145 | 0 | 0.361446 | 0 | 0 | 0.087617 | 0.010572 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.012048 | null | null | 0.024096 | 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 |
6ddff75810e3fa67c06f5592ef10f63737e911e6 | 2,092 | py | Python | old_train.py | leyhline/vix-term-structure | b00ad5025bc68280a21e58cecbf5944aee03da97 | [
"MIT"
] | 3 | 2017-08-17T10:54:54.000Z | 2021-03-07T16:02:33.000Z | old_train.py | leyhline/vix-term-structure | b00ad5025bc68280a21e58cecbf5944aee03da97 | [
"MIT"
] | null | null | null | old_train.py | leyhline/vix-term-structure | b00ad5025bc68280a21e58cecbf5944aee03da97 | [
"MIT"
] | 2 | 2019-02-22T00:46:45.000Z | 2021-02-15T19:29:43.000Z | # TODO Logging and Tests are essential!
import sys
import numpy as np
import keras
import vixstructure.models as models
import vixstructure.data as data
def get_model(hidden_layers, past_days, days_to_future, step_size=0.01):
model = models.naive_fully_connected(hidden_layers, past_days, days_to_future)
sg... | 39.471698 | 131 | 0.66826 | 300 | 2,092 | 4.433333 | 0.383333 | 0.054135 | 0.054135 | 0.063158 | 0.147368 | 0.132331 | 0.132331 | 0.06015 | 0.06015 | 0 | 0 | 0.016403 | 0.213193 | 2,092 | 52 | 132 | 40.230769 | 0.791616 | 0.017686 | 0 | 0 | 0 | 0.025 | 0.179737 | 0.075012 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.075 | false | 0 | 0.125 | 0 | 0.275 | 0.1 | 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 |
6de69553939d9610fee8e7e95e1a7be2ff4b3c43 | 1,036 | py | Python | Python/Analysis/serial_GetGyroData.py | garethnisbet/T-BOTS | 70e211191cc6c713084836bff89241e811667378 | [
"Apache-2.0"
] | 20 | 2018-07-16T21:34:35.000Z | 2022-01-07T02:33:10.000Z | Python/Analysis/serial_GetGyroData.py | garethnisbet/T-BOTS | 70e211191cc6c713084836bff89241e811667378 | [
"Apache-2.0"
] | 5 | 2018-07-02T23:00:36.000Z | 2020-01-23T17:38:32.000Z | Python/Analysis/serial_GetGyroData.py | garethnisbet/T-BOTS | 70e211191cc6c713084836bff89241e811667378 | [
"Apache-2.0"
] | 10 | 2018-05-15T10:38:40.000Z | 2021-06-03T07:07:21.000Z | import numpy as np
from time import sleep
import serial
########## Prepare Arduino code for data output ##################
#
# remove the /* and */ around the print commands in functions.ino
#
# /*
# Serial.print(dt); Serial.print("\t");
# Serial.print(pitch); Serial.print("\t");
# Serial.print(gyroYrate); Seri... | 22.042553 | 66 | 0.571429 | 135 | 1,036 | 4.377778 | 0.496296 | 0.204738 | 0.101523 | 0.152284 | 0.262267 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039171 | 0.162162 | 1,036 | 46 | 67 | 22.521739 | 0.641705 | 0.392857 | 0 | 0.272727 | 0 | 0 | 0.093023 | 0.042636 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.136364 | 0 | 0.227273 | 0.045455 | 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 |
6df33d371d1c34a2cb3c2cc64215e57a69374c97 | 8,292 | py | Python | licensed/examples.py | Dengshuo6879/odrl-creator | ebca02245760ebcd4347eab6f06cb21a549b7ad2 | [
"CNRI-Python"
] | null | null | null | licensed/examples.py | Dengshuo6879/odrl-creator | ebca02245760ebcd4347eab6f06cb21a549b7ad2 | [
"CNRI-Python"
] | null | null | null | licensed/examples.py | Dengshuo6879/odrl-creator | ebca02245760ebcd4347eab6f06cb21a549b7ad2 | [
"CNRI-Python"
] | null | null | null | #!/usr/bin/python
from licensed import mklicense
import json
class SimpleLicenseXML:
def __init__(self):
self.licenseFactory = mklicense(target="urn:newsml:example.com:20090101:120111-999-000013",
assigner="http://example.com/cv/party/epa",
assignee="http://example.com/cv/policy/group/epapartners")
def ... | 36.853333 | 220 | 0.749638 | 1,083 | 8,292 | 5.555863 | 0.130194 | 0.051853 | 0.052352 | 0.033904 | 0.746053 | 0.711484 | 0.607944 | 0.594482 | 0.576367 | 0.554263 | 0 | 0.031584 | 0.075977 | 8,292 | 224 | 221 | 37.017857 | 0.75372 | 0.00193 | 0 | 0.359155 | 0 | 0.021127 | 0.318429 | 0.017764 | 0 | 0 | 0 | 0 | 0.169014 | 1 | 0.098592 | false | 0.007042 | 0.014085 | 0 | 0.140845 | 0.267606 | 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 |
6df471d2481bddcd4a3ae60096200b389fc48b95 | 611 | py | Python | finder/admin.py | rc4594/Dbms | 57a160fd4339a884b1ce4ef75fe8489f6ff30fa2 | [
"MIT"
] | null | null | null | finder/admin.py | rc4594/Dbms | 57a160fd4339a884b1ce4ef75fe8489f6ff30fa2 | [
"MIT"
] | null | null | null | finder/admin.py | rc4594/Dbms | 57a160fd4339a884b1ce4ef75fe8489f6ff30fa2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
# Register your models here.
from finder.models import Student,Hostels,Status
class StudentAdmin(admin.ModelAdmin) :
list_display = ["__unicode__"]
class Meta:
model = Student
class HostelsAdmin(admin.ModelAdmin) :
... | 21.068966 | 48 | 0.769231 | 72 | 611 | 6.25 | 0.402778 | 0.1 | 0.126667 | 0.173333 | 0.313333 | 0.313333 | 0.313333 | 0.313333 | 0 | 0 | 0 | 0.001876 | 0.12766 | 611 | 28 | 49 | 21.821429 | 0.842402 | 0.07856 | 0 | 0.333333 | 0 | 0 | 0.05914 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.666667 | 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 |
6df8c52b6d01dd4298747c88bcb1ad9447b4d53f | 2,024 | py | Python | brython_test_utils/__init__.py | uuosio/python-contract-demos | 7d56ba371f2115b0ab895fca3e71092c2523f25d | [
"MIT"
] | 2 | 2020-12-08T13:15:06.000Z | 2020-12-29T10:06:44.000Z | brython_test_utils/__init__.py | uuosio/python-contract-demos | 7d56ba371f2115b0ab895fca3e71092c2523f25d | [
"MIT"
] | null | null | null | brython_test_utils/__init__.py | uuosio/python-contract-demos | 7d56ba371f2115b0ab895fca3e71092c2523f25d | [
"MIT"
] | null | null | null | import sys
import time
import tb as traceback
from browser import console
import test_modules
def discover_brython_test_modules():
# TODO : Test discovery based on file system paths
return test_modules.modules
def populate_testmod_input(elem, selected=None):
"""Build a multiple selection control includin... | 28.111111 | 67 | 0.59832 | 262 | 2,024 | 4.374046 | 0.347328 | 0.062827 | 0.052356 | 0.045375 | 0.349913 | 0.349913 | 0.256545 | 0.216405 | 0.216405 | 0.216405 | 0 | 0.009168 | 0.299407 | 2,024 | 71 | 68 | 28.507042 | 0.799013 | 0.083498 | 0 | 0.305085 | 0 | 0 | 0.046046 | 0 | 0 | 0 | 0 | 0.014085 | 0 | 1 | 0.050847 | false | 0 | 0.101695 | 0.016949 | 0.220339 | 0.050847 | 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 |
a3000ae5def3521676c8fc19cff6eed11945f2b8 | 2,552 | py | Python | jeff_hanna/4.py | techartorg/Advent_of_Code_2020 | ae21164bc126352e7a2e9c9c6a0017ccb9d946cc | [
"MIT"
] | 3 | 2020-11-16T15:20:11.000Z | 2020-12-11T17:01:42.000Z | jeff_hanna/4.py | techartorg/Advent_of_Code_2020 | ae21164bc126352e7a2e9c9c6a0017ccb9d946cc | [
"MIT"
] | null | null | null | jeff_hanna/4.py | techartorg/Advent_of_Code_2020 | ae21164bc126352e7a2e9c9c6a0017ccb9d946cc | [
"MIT"
] | 1 | 2020-12-13T04:42:44.000Z | 2020-12-13T04:42:44.000Z | # -*- coding: utf-8 -*-
from copy import deepcopy
from pathlib import Path
def validate_passport_keys( raw_data ):
valid_passports = [ ]
passport = { }
for i, rd in enumerate( raw_data ):
for x in rd.split( ' ' ):
if ':' in x:
kv = x.split( ':' )
pass... | 27.73913 | 97 | 0.476489 | 296 | 2,552 | 3.952703 | 0.320946 | 0.042735 | 0.046154 | 0.07265 | 0.134188 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033752 | 0.407915 | 2,552 | 91 | 98 | 28.043956 | 0.740569 | 0.013715 | 0 | 0.215385 | 0 | 0 | 0.031834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046154 | false | 0.246154 | 0.030769 | 0 | 0.138462 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a30324f2071bdb58d36f985ef0b76b4f0948a60b | 18,001 | py | Python | core/models.py | wyrmiyu/kompassi | e089a235bcd74b6a31b34572a56f4947bebc5e60 | [
"MIT"
] | null | null | null | core/models.py | wyrmiyu/kompassi | e089a235bcd74b6a31b34572a56f4947bebc5e60 | [
"MIT"
] | null | null | null | core/models.py | wyrmiyu/kompassi | e089a235bcd74b6a31b34572a56f4947bebc5e60 | [
"MIT"
] | null | null | null | # encoding: utf-8
from datetime import date, datetime, timedelta
from django.conf import settings
from django.contrib.auth.models import User, Group
from django.db import models
from django.template import RequestContext
from django.template.loader import render_to_string
from django.utils.dateformat import format as... | 29.365416 | 130 | 0.639076 | 2,035 | 18,001 | 5.426536 | 0.189681 | 0.030879 | 0.030427 | 0.030427 | 0.304265 | 0.238975 | 0.18917 | 0.134565 | 0.110749 | 0.110024 | 0 | 0.007087 | 0.263152 | 18,001 | 612 | 131 | 29.413399 | 0.825467 | 0.005722 | 0 | 0.250526 | 0 | 0 | 0.15005 | 0.032357 | 0 | 0 | 0 | 0 | 0.004211 | 0 | null | null | 0.044211 | 0.033684 | null | null | 0.002105 | 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 |
a3045f100eeac2b82d29f7c0ff5f0d067e5e2281 | 1,712 | py | Python | exel_path.py | Spinist89/Swimmer_ranking | 17fa41b4e054e272aaa4bc6c54fbb35fb43cb07f | [
"Apache-2.0"
] | null | null | null | exel_path.py | Spinist89/Swimmer_ranking | 17fa41b4e054e272aaa4bc6c54fbb35fb43cb07f | [
"Apache-2.0"
] | null | null | null | exel_path.py | Spinist89/Swimmer_ranking | 17fa41b4e054e272aaa4bc6c54fbb35fb43cb07f | [
"Apache-2.0"
] | null | null | null | import openpyxl
class ExelWorker:
def __init__(self, file_path):
self.wb = openpyxl.load_workbook(file_path)
self.ws = self.wb.active
def get_data(self):
return self.sorting(list(self.ws.values))
def sorting(self, data: list) -> list: #Ранжирование по году рождения
for i... | 31.127273 | 76 | 0.488318 | 194 | 1,712 | 4.103093 | 0.309278 | 0.146985 | 0.075377 | 0.080402 | 0.422111 | 0.396985 | 0.396985 | 0.396985 | 0.396985 | 0.396985 | 0 | 0.008122 | 0.42465 | 1,712 | 54 | 77 | 31.703704 | 0.8 | 0.028622 | 0 | 0.454545 | 0 | 0 | 0.001806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113636 | false | 0.068182 | 0.022727 | 0.045455 | 0.25 | 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 |
a304c9b63b21dc31f27b91fcc3efed4d6aff002f | 423 | py | Python | PySpace/pickle_r.py | dralee/LearningRepository | 4324d3c5ac1a12dde17ae70c1eb7f3d36a047ba4 | [
"Apache-2.0"
] | null | null | null | PySpace/pickle_r.py | dralee/LearningRepository | 4324d3c5ac1a12dde17ae70c1eb7f3d36a047ba4 | [
"Apache-2.0"
] | null | null | null | PySpace/pickle_r.py | dralee/LearningRepository | 4324d3c5ac1a12dde17ae70c1eb7f3d36a047ba4 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
# 文件名:pickle.py
import pprint,pickle
# pickle实现基本数据序列和反序列化
# 使用pickle模块从文件中重构python
pkl_file = open('data.pkl','rb')
data = pickle.load(pkl_file)
pprint.pprint(data)
selfref_list = pickle.load(pkl_file)
pprint.pprint(selfref_list)
pkl_file.close()
#print(data)
#print(selfref_list)
print('dict ... | 15.107143 | 36 | 0.730496 | 65 | 423 | 4.630769 | 0.384615 | 0.093023 | 0.086379 | 0.112957 | 0.192691 | 0.192691 | 0 | 0 | 0 | 0 | 0 | 0.002667 | 0.113475 | 423 | 27 | 37 | 15.666667 | 0.8 | 0.245863 | 0 | 0 | 0 | 0 | 0.099042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.538462 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.