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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b7afbf9c19372f0c39f8ed04297c51c948405848 | 163 | py | Python | functions/multiplication.py | MateusLinharesDeAelencarLima/Calculator | 44e836aa92fd76d21b4c5f0edfcb5419886f1df6 | [
"CC0-1.0"
] | null | null | null | functions/multiplication.py | MateusLinharesDeAelencarLima/Calculator | 44e836aa92fd76d21b4c5f0edfcb5419886f1df6 | [
"CC0-1.0"
] | 1 | 2021-09-10T21:13:16.000Z | 2021-09-23T16:13:08.000Z | functions/multiplication.py | MateusLinharesDeAelencarLima/Calculator | 44e836aa92fd76d21b4c5f0edfcb5419886f1df6 | [
"CC0-1.0"
] | null | null | null | def multiplication(factor, multiplier):
product = factor * multiplier
if (product % 1) == 0:
return int(product)
else:
return product
| 20.375 | 39 | 0.613497 | 17 | 163 | 5.882353 | 0.647059 | 0.32 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017391 | 0.294479 | 163 | 7 | 40 | 23.285714 | 0.852174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 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 | 3 |
b7bd9afb3be055bcf6a4ce3ab3a13ba062bd6314 | 727 | py | Python | picstore/migrations/0005_auto_20210912_1005.py | kraupn3r/heximage | 0b1be7649b2b3c9d6e8201bea36f26ce50e435c6 | [
"MIT"
] | null | null | null | picstore/migrations/0005_auto_20210912_1005.py | kraupn3r/heximage | 0b1be7649b2b3c9d6e8201bea36f26ce50e435c6 | [
"MIT"
] | null | null | null | picstore/migrations/0005_auto_20210912_1005.py | kraupn3r/heximage | 0b1be7649b2b3c9d6e8201bea36f26ce50e435c6 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-09-12 08:05
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('picstore', '0004_remove_imageset_filename'),
]
operations = [
migrations.AlterModelOptions(
name='imageset',
options={'order... | 27.961538 | 90 | 0.588721 | 65 | 727 | 6.446154 | 0.630769 | 0.193317 | 0.221957 | 0.171838 | 0.243437 | 0.243437 | 0 | 0 | 0 | 0 | 0 | 0.035917 | 0.272352 | 727 | 25 | 91 | 29.08 | 0.756144 | 0.061898 | 0 | 0.315789 | 1 | 0 | 0.297059 | 0.042647 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 3 |
b7c987ca6807835a5eba90991deb4d62931e4ef5 | 371 | py | Python | laa_court_data_api_app/models/hearing/internal/organisation.py | ministryofjustice/laa-court-data-api | 2e79faac7469f0b31ecca0539906d281db08f86c | [
"MIT"
] | 1 | 2022-01-27T14:28:40.000Z | 2022-01-27T14:28:40.000Z | laa_court_data_api_app/models/hearing/internal/organisation.py | ministryofjustice/laa-court-data-api | 2e79faac7469f0b31ecca0539906d281db08f86c | [
"MIT"
] | 16 | 2022-01-28T11:01:27.000Z | 2022-03-30T14:01:11.000Z | laa_court_data_api_app/models/hearing/internal/organisation.py | ministryofjustice/laa-court-data-api | 2e79faac7469f0b31ecca0539906d281db08f86c | [
"MIT"
] | null | null | null | from pydantic import BaseModel
from laa_court_data_api_app.models.hearing.internal.address import Address
from laa_court_data_api_app.models.hearing.internal.contact import Contact
class Organisation(BaseModel):
name: str | None
incorporation_number: str | None
registered_charity_number: str | None
a... | 28.538462 | 74 | 0.789757 | 49 | 371 | 5.755102 | 0.469388 | 0.074468 | 0.085106 | 0.113475 | 0.304965 | 0.304965 | 0.304965 | 0.304965 | 0.304965 | 0 | 0 | 0 | 0.153639 | 371 | 12 | 75 | 30.916667 | 0.898089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b7d04d6b220d09cabfa3755d9cc687b5c68b32ab | 720 | py | Python | tests/test_instant_answer/test_ia_normalization.py | QwantResearch/idunn | 88b6862f1036187855b5541bbb6758ddd4df33c1 | [
"Apache-2.0"
] | 26 | 2018-11-30T09:17:17.000Z | 2020-11-07T01:53:07.000Z | tests/test_instant_answer/test_ia_normalization.py | QwantResearch/idunn | 88b6862f1036187855b5541bbb6758ddd4df33c1 | [
"Apache-2.0"
] | 38 | 2018-06-08T09:41:04.000Z | 2020-12-07T17:39:12.000Z | tests/test_instant_answer/test_ia_normalization.py | Qwant/idunn | 65582dfed732093778bf7c2998db1e2cd78255b8 | [
"Apache-2.0"
] | 9 | 2018-05-18T13:07:00.000Z | 2020-08-01T16:42:40.000Z | from idunn.instant_answer import normalize
def test_normalization():
assert normalize("Strasbourg") == "strasbourg"
assert normalize("map Strasbourg") == "strasbourg"
assert normalize("strasbourg maps") == "strasbourg"
assert normalize("horaires musée picasso") == "musée picasso"
assert normalize(... | 45 | 72 | 0.705556 | 76 | 720 | 6.657895 | 0.486842 | 0.326087 | 0.148221 | 0.13834 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 720 | 15 | 73 | 48 | 0.843333 | 0 | 0 | 0 | 0 | 0 | 0.427778 | 0 | 0 | 0 | 0 | 0 | 0.846154 | 1 | 0.076923 | true | 0 | 0.076923 | 0 | 0.153846 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b7e794419b771691893e5b5384a38c4e7c41ddbf | 161 | py | Python | 1.10.1/solution.py | luxnlex/stepic-python | 92a4b25391f76935c3c2a70fb8552e7f93928d9b | [
"MIT"
] | 1 | 2021-05-07T18:20:51.000Z | 2021-05-07T18:20:51.000Z | 1.10.1/solution.py | luxnlex/stepic-python | 92a4b25391f76935c3c2a70fb8552e7f93928d9b | [
"MIT"
] | null | null | null | 1.10.1/solution.py | luxnlex/stepic-python | 92a4b25391f76935c3c2a70fb8552e7f93928d9b | [
"MIT"
] | 2 | 2017-12-27T07:51:57.000Z | 2020-08-03T22:10:55.000Z | A = int(input())
B = int(input())
H = int(input())
if ((H>=A) and (B>=H)):
print("Это нормально")
elif (A>H):
print("Недосып")
else:
print("Пересып") | 17.888889 | 26 | 0.540373 | 26 | 161 | 3.346154 | 0.538462 | 0.275862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192547 | 161 | 9 | 27 | 17.888889 | 0.669231 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 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 | 3 |
b7fade26e8de488328925f5bd0572e8844c03025 | 148 | py | Python | arduino_001.py | relsi/exemplos-arduino-day-puc-2019 | 31174cf5873438e97fa723469de929b762da49f6 | [
"MIT"
] | 1 | 2019-12-03T22:25:23.000Z | 2019-12-03T22:25:23.000Z | arduino_001.py | relsi/exemplos-arduino-day-puc-2019 | 31174cf5873438e97fa723469de929b762da49f6 | [
"MIT"
] | null | null | null | arduino_001.py | relsi/exemplos-arduino-day-puc-2019 | 31174cf5873438e97fa723469de929b762da49f6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import serial
import time
conexao = serial.Serial('/dev/ttyACM0', 9600)
time.sleep(1.8)
conexao.write(b'D')
conexao.close()
| 18.5 | 45 | 0.689189 | 23 | 148 | 4.434783 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 0.108108 | 148 | 7 | 46 | 21.142857 | 0.712121 | 0.141892 | 0 | 0 | 0 | 0 | 0.104 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
4d01b282269cdc6ac4be4887d37096a64de35693 | 269 | py | Python | mysite/lti/tasks.py | cjlee112/socraticqs2 | 2e7dd9d2ec687f68ca8ca341cf5f1b3b8809c820 | [
"Apache-2.0"
] | 8 | 2015-06-02T15:34:44.000Z | 2019-03-21T12:27:30.000Z | mysite/lti/tasks.py | cjlee112/socraticqs2 | 2e7dd9d2ec687f68ca8ca341cf5f1b3b8809c820 | [
"Apache-2.0"
] | 761 | 2015-01-07T05:13:08.000Z | 2022-02-10T10:23:37.000Z | mysite/lti/tasks.py | cjlee112/socraticqs2 | 2e7dd9d2ec687f68ca8ca341cf5f1b3b8809c820 | [
"Apache-2.0"
] | 12 | 2015-01-28T20:09:36.000Z | 2018-03-20T13:32:11.000Z | from mysite import celery_app
from lti.models import GradedLaunch
from lti.outcomes import send_score_update
@celery_app.task
def send_outcome(score, assignment_id):
assignment = GradedLaunch.objects.get(id=assignment_id)
send_score_update(assignment, score)
| 26.9 | 59 | 0.821561 | 38 | 269 | 5.578947 | 0.5 | 0.084906 | 0.141509 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115242 | 269 | 9 | 60 | 29.888889 | 0.890756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4d0ba7771e08744f3f06980cd55d96f46bfed9f2 | 40,246 | py | Python | test/speed.py | tlocke/zish_python | 2f54c44514c2ad412ee4f408d25058387cac9352 | [
"MIT"
] | 2 | 2017-12-15T17:41:47.000Z | 2017-12-15T21:57:39.000Z | test/speed.py | tlocke/zish_python | 2f54c44514c2ad412ee4f408d25058387cac9352 | [
"MIT"
] | 2 | 2018-01-01T19:40:21.000Z | 2018-10-23T13:44:40.000Z | test/speed.py | tlocke/zish_python | 2f54c44514c2ad412ee4f408d25058387cac9352 | [
"MIT"
] | null | null | null | from zish import loads
from datetime import datetime as Datetime
zish_str = """
{
"rates_gbp_per_mwh": {
"01 00:00 Z": 0.90265,
"01 00:30 Z": 0.89207,
"01 01:00 Z": 0.92321,
"01 01:30 Z": 0.84712,
"01 02:00 Z": 0.84552,
"01 02:30 Z": 0.95593,
"01 03:00 Z": 0.99462,
"01 03:30 Z": 0.962... | 26.79494 | 41 | 0.48042 | 8,959 | 40,246 | 2.157607 | 0.171559 | 0.099431 | 0.100569 | 0.009622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.625331 | 0.2967 | 40,246 | 1,501 | 42 | 26.812791 | 0.057587 | 0 | 0 | 0 | 0 | 0 | 0.995378 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.001336 | 0 | 0.001336 | 0.000668 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4d21db277726f00ec5f1037c7db74739868ef123 | 4,456 | py | Python | tests/tests.py | harwee/django-rest-framework-docs | b424403eb7788843bcc821c84e1d413795142e05 | [
"BSD-2-Clause"
] | 2 | 2018-02-25T13:47:56.000Z | 2019-02-08T08:27:13.000Z | tests/tests.py | harwee/django-rest-framework-docs | b424403eb7788843bcc821c84e1d413795142e05 | [
"BSD-2-Clause"
] | 3 | 2020-02-12T02:56:06.000Z | 2021-06-10T21:40:02.000Z | tests/tests.py | harwee/django-rest-framework-docs | b424403eb7788843bcc821c84e1d413795142e05 | [
"BSD-2-Clause"
] | 12 | 2018-02-14T08:26:28.000Z | 2020-04-14T22:25:38.000Z | try:
from django.urls import reverse_lazy
except ImportError:
# Will be removed in Django 2.0
from django.core.urlresolvers import reverse_lazy
from django.test import TestCase, override_settings
from rest_framework_docs.settings import DRFSettings
class DRFDocsViewTests(TestCase):
SETTINGS_HIDE_DOC... | 50.067416 | 169 | 0.690305 | 525 | 4,456 | 5.758095 | 0.270476 | 0.158783 | 0.214357 | 0.138935 | 0.585511 | 0.507112 | 0.407542 | 0.346014 | 0.292094 | 0.214026 | 0 | 0.015467 | 0.158438 | 4,456 | 88 | 170 | 50.636364 | 0.790667 | 0.08842 | 0 | 0.105263 | 0 | 0 | 0.204705 | 0.035536 | 0 | 0 | 0 | 0 | 0.596491 | 1 | 0.105263 | false | 0.070175 | 0.087719 | 0 | 0.22807 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
4d2486022622f6c55bd5af8ccf8646da44c909ed | 105 | py | Python | Part I. Foundations/Chapter 5 Probabilistic Analysis and Randomized Algorithms/test.py | akniyev/clrs_solutions | 691acb8b0dfcc4375b89ae597dfdd6ae342ce7fa | [
"MIT"
] | null | null | null | Part I. Foundations/Chapter 5 Probabilistic Analysis and Randomized Algorithms/test.py | akniyev/clrs_solutions | 691acb8b0dfcc4375b89ae597dfdd6ae342ce7fa | [
"MIT"
] | null | null | null | Part I. Foundations/Chapter 5 Probabilistic Analysis and Randomized Algorithms/test.py | akniyev/clrs_solutions | 691acb8b0dfcc4375b89ae597dfdd6ae342ce7fa | [
"MIT"
] | null | null | null | product = 1
i = 1
while product > 0.5:
product *= (365.0 - i) / 365.0
i += 1
print(product, i)
| 11.666667 | 34 | 0.52381 | 19 | 105 | 2.894737 | 0.421053 | 0.072727 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178082 | 0.304762 | 105 | 8 | 35 | 13.125 | 0.575342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | 0 | null | 0 | 1 | 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 | 3 |
4d4a6105430d5bf845c98ca9172ec550f5baf74c | 130 | py | Python | backend/users/urls.py | TeamE9uana/DeepMush | 4bfc41cb45e80ab15d050f3a939f63d8fd31cdae | [
"MIT"
] | 5 | 2022-01-03T09:32:00.000Z | 2022-01-26T12:02:32.000Z | backend/users/urls.py | TeamE9uana/DeepMush | 4bfc41cb45e80ab15d050f3a939f63d8fd31cdae | [
"MIT"
] | 25 | 2022-01-03T05:53:26.000Z | 2022-01-20T15:01:13.000Z | backend/users/urls.py | TeamE9uana/DeepMush | 4bfc41cb45e80ab15d050f3a939f63d8fd31cdae | [
"MIT"
] | 4 | 2022-01-03T10:38:09.000Z | 2022-02-23T11:40:41.000Z | from django.urls import path
from .views import *
urlpatterns = [
path('me/', MyProfileView.as_view(), name='my_profile'),
]
| 18.571429 | 60 | 0.692308 | 17 | 130 | 5.176471 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 130 | 6 | 61 | 21.666667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
4d651487281b238e2fb9788b6825bc8f1eb02e41 | 401 | py | Python | formulas/index.py | anthonyk1225/robinhood-to-xlsx | 55150fbf2c1c34fbed7251ad93630fe82c3862f1 | [
"MIT"
] | 12 | 2019-08-06T15:22:07.000Z | 2022-01-02T15:56:01.000Z | formulas/index.py | anthonyk1225/robinhood-to-xlsx | 55150fbf2c1c34fbed7251ad93630fe82c3862f1 | [
"MIT"
] | 13 | 2019-08-12T20:09:48.000Z | 2021-08-07T02:11:15.000Z | formulas/index.py | anthonyk1225/robinhood-to-xlsx | 55150fbf2c1c34fbed7251ad93630fe82c3862f1 | [
"MIT"
] | 3 | 2020-01-21T23:29:20.000Z | 2020-08-18T16:39:12.000Z | from formulas.dividends import handle_formulas as dividend_formulas
from formulas.events import handle_formulas as event_formulas
from formulas.options import handle_formulas as option_formulas
from formulas.orders import handle_formulas as order_formulas
formula_pipelines = {
"dividends": dividend_formulas,
"even... | 33.416667 | 67 | 0.830424 | 50 | 401 | 6.4 | 0.3 | 0.15 | 0.25 | 0.275 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112219 | 401 | 11 | 68 | 36.454545 | 0.898876 | 0 | 0 | 0 | 0 | 0 | 0.069825 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
4d6e4aa22250e7ccee293006e2480443fb9ae340 | 288 | py | Python | dp/unique_path.py | lockeCucumber/DataStructure | a6c22a339deb75b2280e10664964cf1d8588732e | [
"MIT"
] | null | null | null | dp/unique_path.py | lockeCucumber/DataStructure | a6c22a339deb75b2280e10664964cf1d8588732e | [
"MIT"
] | null | null | null | dp/unique_path.py | lockeCucumber/DataStructure | a6c22a339deb75b2280e10664964cf1d8588732e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'长方形矩阵,左上到右下的方式数量'
def get_unique_path_count(m, n):
res_list = [[1]*n]*m
for i in xrange(1, m):
for j in xrange(1, n):
res_list[i][j] = res_list[i -1][j] + res_list[i][j-1]
return res_list[-1][-1]
print get_unique_path_count(3,3)
| 24 | 65 | 0.576389 | 55 | 288 | 2.818182 | 0.418182 | 0.225806 | 0.154839 | 0.232258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045045 | 0.229167 | 288 | 11 | 66 | 26.181818 | 0.653153 | 0.072917 | 0 | 0 | 0 | 0 | 0.060377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.125 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4d75d6f4711cbe7ca3a787e10e5f56fbac0dfffa | 219 | py | Python | Journal/core.py | prabhanshu11/journal | f25bef15ddc8f81a7fb3f8fa73e79294460680cb | [
"Apache-2.0"
] | 1 | 2020-08-18T06:14:47.000Z | 2020-08-18T06:14:47.000Z | Journal/core.py | prabhanshu11/journal | f25bef15ddc8f81a7fb3f8fa73e79294460680cb | [
"Apache-2.0"
] | 2 | 2021-09-28T03:10:50.000Z | 2022-02-26T08:07:39.000Z | Journal/core.py | prabhanshu11/journal | f25bef15ddc8f81a7fb3f8fa73e79294460680cb | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: 00_core.ipynb (unless otherwise specified).
__all__ = []
# Cell
from datetime import datetime, date, time, timedelta
import re
from .tasks import *
from .questions import * | 21.9 | 87 | 0.748858 | 30 | 219 | 5.3 | 0.766667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010929 | 0.164384 | 219 | 10 | 88 | 21.9 | 0.857924 | 0.410959 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
4d79da3aee8e4659a11a7a09ca0fb84fd26678b1 | 9,087 | py | Python | aliyun-python-sdk-ess/aliyunsdkess/request/v20140828/DescribeScalingRulesRequest.py | LittleJober/aliyun-openapi-python-sdk | f45cfa2248a5c8c47b2cebc1d4d1c2516b94df76 | [
"Apache-2.0"
] | null | null | null | aliyun-python-sdk-ess/aliyunsdkess/request/v20140828/DescribeScalingRulesRequest.py | LittleJober/aliyun-openapi-python-sdk | f45cfa2248a5c8c47b2cebc1d4d1c2516b94df76 | [
"Apache-2.0"
] | 1 | 2020-05-31T14:51:47.000Z | 2020-05-31T14:51:47.000Z | aliyun-python-sdk-ess/aliyunsdkess/request/v20140828/DescribeScalingRulesRequest.py | LittleJober/aliyun-openapi-python-sdk | f45cfa2248a5c8c47b2cebc1d4d1c2516b94df76 | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 34.290566 | 78 | 0.781996 | 1,088 | 9,087 | 6.30239 | 0.142463 | 0.034126 | 0.079627 | 0.09669 | 0.373195 | 0.237567 | 0.237567 | 0.196879 | 0 | 0 | 0 | 0.025971 | 0.110157 | 9,087 | 265 | 79 | 34.290566 | 0.822038 | 0.082976 | 0 | 0 | 0 | 0 | 0.159634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.478788 | false | 0 | 0.012121 | 0.236364 | 0.733333 | 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 | 1 | 1 | 0 | 0 | 3 |
4d98405d7742ef6a625135be89c0b41f863b35b7 | 19,741 | py | Python | website/lol.py | qureshinomaan/PumpMonitoringSystem | d55bd8f6ea6643071ae41a8dbe72e487e6330109 | [
"MIT"
] | 2 | 2019-11-25T09:46:10.000Z | 2021-08-23T17:25:34.000Z | website/lol.py | qureshinomaan/PumpMonitoringSystem | d55bd8f6ea6643071ae41a8dbe72e487e6330109 | [
"MIT"
] | 3 | 2019-11-25T12:57:02.000Z | 2019-12-07T00:00:54.000Z | website/lol.py | qureshinomaan/PumpMonitoringSystem | d55bd8f6ea6643071ae41a8dbe72e487e6330109 | [
"MIT"
] | 1 | 2020-02-23T12:43:01.000Z | 2020-02-23T12:43:01.000Z | import requests
import json
from onem2m import *
from datetime import datetime
from datetime import timedelta
from basics import db,data
# from_zone = tz.gettz('UTC')
# to_zone = tz.gettz('America/New_York')
final_reading = []
oe_temp = []
time = []
def get_data_grp(group_name):
headers = {
'X-M2M-Origin': 'ad... | 91.818605 | 5,119 | 0.694038 | 2,603 | 19,741 | 5.2136 | 0.381483 | 0.008842 | 0.019601 | 0.022401 | 0.14192 | 0.132783 | 0.131383 | 0.128288 | 0.126372 | 0.126372 | 0 | 0.44083 | 0.079682 | 19,741 | 214 | 5,120 | 92.247664 | 0.306143 | 0.751279 | 0 | 0.49635 | 0 | 0 | 0.146387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021898 | false | 0 | 0.043796 | 0 | 0.087591 | 0.058394 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4da55a7b6a1e2948337cffc688322918d1c7a193 | 23 | py | Python | zmon_worker_monitor/builtins/plugins/__init__.py | heroldus/zmon-worker | 458f8bacb5a00f7fd93d59db406a2c80870519d1 | [
"Apache-2.0"
] | 17 | 2016-06-03T14:59:21.000Z | 2020-11-06T13:12:18.000Z | zmon_worker_monitor/builtins/plugins/__init__.py | heroldus/zmon-worker | 458f8bacb5a00f7fd93d59db406a2c80870519d1 | [
"Apache-2.0"
] | 394 | 2016-06-03T14:47:37.000Z | 2020-04-21T09:31:23.000Z | zmon_worker_monitor/builtins/plugins/__init__.py | heroldus/zmon-worker | 458f8bacb5a00f7fd93d59db406a2c80870519d1 | [
"Apache-2.0"
] | 55 | 2016-08-15T12:42:28.000Z | 2021-04-06T10:49:35.000Z | __author__ = 'avalles'
| 11.5 | 22 | 0.73913 | 2 | 23 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 23 | 1 | 23 | 23 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0.304348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
4db0140ffee78ca34197a5462ed372c798b2ec34 | 2,744 | py | Python | omni_reports/client/models.py | paretogroup/omni-reports | 563febd7044cdf988d704019ae5fd114cfd824d3 | [
"MIT"
] | 24 | 2020-09-09T20:57:36.000Z | 2022-03-13T17:32:41.000Z | omni_reports/client/models.py | paretogroup/omni-reports | 563febd7044cdf988d704019ae5fd114cfd824d3 | [
"MIT"
] | 13 | 2020-09-01T19:34:24.000Z | 2021-03-31T19:58:53.000Z | omni_reports/client/models.py | paretogroup/omni-reports | 563febd7044cdf988d704019ae5fd114cfd824d3 | [
"MIT"
] | null | null | null | from datetime import date
from typing import Dict, List
from omni_reports.client.fields import ReportField
class ReportPredicate:
def __init__(self, field: ReportField = None, operator: str = None, values: List[str] = None):
self.field = field
self.operator = operator
self.values = values... | 30.488889 | 116 | 0.662536 | 311 | 2,744 | 5.437299 | 0.14791 | 0.076878 | 0.03903 | 0.056771 | 0.329982 | 0.289769 | 0.275577 | 0.25547 | 0.215257 | 0.215257 | 0 | 0.000958 | 0.239067 | 2,744 | 89 | 117 | 30.831461 | 0.808908 | 0 | 0 | 0.380952 | 0 | 0 | 0.170554 | 0.126093 | 0 | 0 | 0 | 0 | 0 | 1 | 0.301587 | false | 0 | 0.047619 | 0.206349 | 0.650794 | 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 | 1 | 1 | 0 | 0 | 3 |
4db1f601b88321eebed6b0807eec1f77489342e0 | 177 | py | Python | imgHandler.py | grug7/BtmTxt | dae1bf857b6eb2ff28e36e34f1c58fbb4138aab5 | [
"MIT"
] | null | null | null | imgHandler.py | grug7/BtmTxt | dae1bf857b6eb2ff28e36e34f1c58fbb4138aab5 | [
"MIT"
] | 2 | 2021-09-08T01:23:49.000Z | 2022-01-13T01:45:35.000Z | imgHandler.py | grug7/BtmTxt | dae1bf857b6eb2ff28e36e34f1c58fbb4138aab5 | [
"MIT"
] | 1 | 2019-10-04T20:47:12.000Z | 2019-10-04T20:47:12.000Z | from PIL import Image
class ImgHandler():
def __init__(self, image_path):
self.image = self.open("/img/test.jpg")
self.width, self.height = self.image.size
| 25.285714 | 49 | 0.661017 | 25 | 177 | 4.48 | 0.68 | 0.241071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20904 | 177 | 6 | 50 | 29.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.073446 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 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 | 3 |
4dc23d949a237f5148bbc73df395e84ba51cdffd | 810 | py | Python | scripts/quest/q21303s.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 54 | 2019-04-16T23:24:48.000Z | 2021-12-18T11:41:50.000Z | scripts/quest/q21303s.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 3 | 2019-05-19T15:19:41.000Z | 2020-04-27T16:29:16.000Z | scripts/quest/q21303s.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 49 | 2020-11-25T23:29:16.000Z | 2022-03-26T16:20:24.000Z | # 21303 - [Job Adv] (Lv.60) Aran
sm.setSpeakerID(1203001)
sm.sendNext("*Sob sob* #p1203001# is sad. #p1203001# is mad. #p1203001# cries. *Sob sob*")
sm.setPlayerAsSpeaker()
sm.sendNext("Wh...What's wrong?")
sm.setSpeakerID(1203001)
sm.sendNext("#p1203001# made gem. #bGem as red as apple#k. But #rthief#k stole gem. #p... | 50.625 | 153 | 0.706173 | 129 | 810 | 4.434109 | 0.534884 | 0.087413 | 0.11014 | 0.08042 | 0.108392 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 0.144444 | 810 | 16 | 154 | 50.625 | 0.704185 | 0.039506 | 0 | 0.466667 | 0 | 0.266667 | 0.6139 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
150dd2077fa706ab88bb93f564898abcdd1b3791 | 1,540 | py | Python | spirit/utils/user/tokens.py | benmurden/Spirit | 168f6a603c24fe9e547b7c077677fea9518c0f28 | [
"MIT"
] | null | null | null | spirit/utils/user/tokens.py | benmurden/Spirit | 168f6a603c24fe9e547b7c077677fea9518c0f28 | [
"MIT"
] | null | null | null | spirit/utils/user/tokens.py | benmurden/Spirit | 168f6a603c24fe9e547b7c077677fea9518c0f28 | [
"MIT"
] | null | null | null | #-*- coding: utf-8 -*-
from django.core import signing
from django.utils.encoding import smart_text
class TokenGenerator(object):
def _uid(self, user):
raise NotImplementedError
def generate(self, user, data=None):
"""
Django signer uses colon (:) for components separation
J... | 29.615385 | 100 | 0.640909 | 188 | 1,540 | 5.079787 | 0.484043 | 0.050262 | 0.05445 | 0.043979 | 0.182199 | 0.081675 | 0.081675 | 0.081675 | 0.081675 | 0.081675 | 0 | 0.006774 | 0.233117 | 1,540 | 52 | 101 | 29.615385 | 0.801863 | 0.179221 | 0 | 0.185185 | 0 | 0 | 0.024671 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0 | 0.074074 | 0.148148 | 0.740741 | 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 | 1 | 1 | 0 | 0 | 3 |
127583bfe935fd456a0c397dd31b960fec0843fa | 345 | py | Python | src/config/api-server/vnc_cfg_api_server/resources/policy_management.py | jnpr-pranav/contrail-controller | 428eee37c28c31830fd764315794e1a6e52720c1 | [
"Apache-2.0"
] | 37 | 2020-09-21T10:42:26.000Z | 2022-01-09T10:16:40.000Z | src/config/api-server/vnc_cfg_api_server/resources/policy_management.py | jnpr-pranav/contrail-controller | 428eee37c28c31830fd764315794e1a6e52720c1 | [
"Apache-2.0"
] | null | null | null | src/config/api-server/vnc_cfg_api_server/resources/policy_management.py | jnpr-pranav/contrail-controller | 428eee37c28c31830fd764315794e1a6e52720c1 | [
"Apache-2.0"
] | 21 | 2020-08-25T12:48:42.000Z | 2022-03-22T04:32:18.000Z | #
# Copyright (c) 2018 Juniper Networks, Inc. All rights reserved.
#
from vnc_api.gen.resource_common import PolicyManagement
from vnc_cfg_api_server.resources._resource_base import ResourceMixin
# Just decelared here to heritate 'locate' method of ResourceMixin class
class PolicyManagementServer(ResourceMixin, Pol... | 26.538462 | 72 | 0.82029 | 42 | 345 | 6.571429 | 0.785714 | 0.050725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013245 | 0.124638 | 345 | 12 | 73 | 28.75 | 0.900662 | 0.385507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.5 | 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 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
128292f1ff0ac50418ec65f3745c984f51653d2b | 332 | py | Python | sample/tests/test_basic.py | cybergrind/pybind_example | 6f492a0b4506e53436076d58205d5897f0a59d72 | [
"MIT"
] | null | null | null | sample/tests/test_basic.py | cybergrind/pybind_example | 6f492a0b4506e53436076d58205d5897f0a59d72 | [
"MIT"
] | null | null | null | sample/tests/test_basic.py | cybergrind/pybind_example | 6f492a0b4506e53436076d58205d5897f0a59d72 | [
"MIT"
] | null | null | null | import pytest
from fan_tools.python import rel_path
from fan_tools.unix import succ, cd
@pytest.fixture(scope='session', autouse=True)
def cpp_module():
with cd(rel_path('../..')):
succ('make example.so')
def test_cpp_module():
import example
assert example.add(1, 2) == 3
assert example.add(... | 20.75 | 46 | 0.674699 | 51 | 332 | 4.254902 | 0.607843 | 0.064516 | 0.110599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02583 | 0.183735 | 332 | 15 | 47 | 22.133333 | 0.774908 | 0 | 0 | 0 | 0 | 0 | 0.081325 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.181818 | true | 0 | 0.363636 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1293756fd741fedb64ccdbda4c006e0da7e1fb78 | 24 | py | Python | _ipynbs_profile/__init__.py | DaMacho/DaMacho.github.io | e8ec6deb76a5917c47db5f6795662e707848c98b | [
"MIT"
] | null | null | null | _ipynbs_profile/__init__.py | DaMacho/DaMacho.github.io | e8ec6deb76a5917c47db5f6795662e707848c98b | [
"MIT"
] | null | null | null | _ipynbs_profile/__init__.py | DaMacho/DaMacho.github.io | e8ec6deb76a5917c47db5f6795662e707848c98b | [
"MIT"
] | null | null | null | __author__ = 'alankang'
| 12 | 23 | 0.75 | 2 | 24 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 24 | 1 | 24 | 24 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
1295e6eba813b16404d11d7e5c835d9857eec0c5 | 149 | py | Python | python_homework/16.py | olzlgur/Like_lion | ac55cd5a0dd81863cb9481b1c7635d629d409660 | [
"MIT"
] | null | null | null | python_homework/16.py | olzlgur/Like_lion | ac55cd5a0dd81863cb9481b1c7635d629d409660 | [
"MIT"
] | null | null | null | python_homework/16.py | olzlgur/Like_lion | ac55cd5a0dd81863cb9481b1c7635d629d409660 | [
"MIT"
] | null | null | null | product_list = ["풀", "가위", "크래파스"]
price_list = [800, 2500, 5000]
product_dict = {x:y for x, y in zip(product_list,price_list)}
print(product_dict) | 24.833333 | 61 | 0.691275 | 26 | 149 | 3.730769 | 0.615385 | 0.226804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085271 | 0.134228 | 149 | 6 | 62 | 24.833333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.046667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 1 | 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 | 3 |
1296849e233287e4dd8c36f3cdc1874aca6c8965 | 181 | py | Python | produtos/admin.py | Ed-Junior/ges-cli | af69e80dffc2cd486b72cc081af50f8e157655b9 | [
"BSD-2-Clause"
] | null | null | null | produtos/admin.py | Ed-Junior/ges-cli | af69e80dffc2cd486b72cc081af50f8e157655b9 | [
"BSD-2-Clause"
] | null | null | null | produtos/admin.py | Ed-Junior/ges-cli | af69e80dffc2cd486b72cc081af50f8e157655b9 | [
"BSD-2-Clause"
] | null | null | null | from django.contrib import admin
from .models import Produtos
class ProdutoAdmin(admin.ModelAdmin):
search_fields = ['nome']
admin.site.register(Produtos, ProdutoAdmin)
| 12.928571 | 43 | 0.762431 | 21 | 181 | 6.52381 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149171 | 181 | 13 | 44 | 13.923077 | 0.88961 | 0 | 0 | 0 | 0 | 0 | 0.022099 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
129cdfd4c9978d22258ae65c04e677d5ebad19db | 412 | py | Python | robocode-python-ls-core/tests/robocode_ls_core_tests/_resources/plugins/some_plugin.py | emanlove/robotframework-lsp | b0d8862d24e3bc1b72d8ce9412a671571520e7d9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | robocode-python-ls-core/tests/robocode_ls_core_tests/_resources/plugins/some_plugin.py | emanlove/robotframework-lsp | b0d8862d24e3bc1b72d8ce9412a671571520e7d9 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-09-30T15:40:29.000Z | 2021-09-30T15:40:29.000Z | robocode-python-ls-core/tests/robocode_ls_core_tests/_resources/plugins/some_plugin.py | emanlove/robotframework-lsp | b0d8862d24e3bc1b72d8ce9412a671571520e7d9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | from robocode_ls_core.pluginmanager import PluginManager
from robocode_ls_core_tests.test_pluginmanager import EPFoo
class FooExt(object):
def Foo(self):
return "from_plugin"
def __typecheckself__(self) -> None:
from robocode_ls_core.protocols import check_implements
_: EPFoo = check... | 24.235294 | 63 | 0.754854 | 50 | 412 | 5.88 | 0.5 | 0.122449 | 0.142857 | 0.183673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177184 | 412 | 16 | 64 | 25.75 | 0.867257 | 0 | 0 | 0 | 0 | 0 | 0.026699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.3 | 0.1 | 0.8 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
12a447ac3ec0799372a95ee74efe6c5976f706dd | 2,599 | py | Python | illallangi/k8sapi/apikind.py | illallangi/K8SAPI | a9492efce51764e443536da4e492344c8381ed92 | [
"MIT"
] | null | null | null | illallangi/k8sapi/apikind.py | illallangi/K8SAPI | a9492efce51764e443536da4e492344c8381ed92 | [
"MIT"
] | null | null | null | illallangi/k8sapi/apikind.py | illallangi/K8SAPI | a9492efce51764e443536da4e492344c8381ed92 | [
"MIT"
] | null | null | null | from cached_property import cached_property
from loguru import logger
from requests import request
class APIKind(object):
def __init__(self, api_group, dictionary, *args, **kwargs):
super().__init__(*args, **kwargs)
self.api_group = api_group
self._dictionary = dictionary
for ke... | 25.99 | 119 | 0.587918 | 273 | 2,599 | 5.322344 | 0.238095 | 0.154164 | 0.140399 | 0.165176 | 0.15967 | 0.121129 | 0.103235 | 0.103235 | 0 | 0 | 0 | 0 | 0.299346 | 2,599 | 99 | 120 | 26.252525 | 0.797913 | 0 | 0 | 0.153846 | 0 | 0.012821 | 0.165448 | 0.051943 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217949 | false | 0 | 0.038462 | 0.179487 | 0.487179 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
12a6f28c9f7f480be3111637e7c88fd3f59c1305 | 10,386 | py | Python | tests/test_resource_tracker/test_resource_group_resource_views.py | LaudateCorpus1/squest | 98304f20c1d966fb3678d348ffd7c5be438bb6be | [
"Apache-2.0"
] | null | null | null | tests/test_resource_tracker/test_resource_group_resource_views.py | LaudateCorpus1/squest | 98304f20c1d966fb3678d348ffd7c5be438bb6be | [
"Apache-2.0"
] | null | null | null | tests/test_resource_tracker/test_resource_group_resource_views.py | LaudateCorpus1/squest | 98304f20c1d966fb3678d348ffd7c5be438bb6be | [
"Apache-2.0"
] | 1 | 2022-03-24T03:37:12.000Z | 2022-03-24T03:37:12.000Z | from copy import copy
from django.urls import reverse
from resource_tracker.models import Resource, ResourceAttribute, ResourceTextAttribute, ResourceGroupAttributeDefinition
from tests.test_resource_tracker.base_test_resource_tracker import BaseTestResourceTracker
class TestResourceGroupResourceViews(BaseTestResou... | 40.889764 | 120 | 0.65338 | 1,168 | 10,386 | 5.506849 | 0.10274 | 0.090951 | 0.075093 | 0.071828 | 0.781716 | 0.750466 | 0.719683 | 0.684391 | 0.661536 | 0.632618 | 0 | 0.010682 | 0.251878 | 10,386 | 253 | 121 | 41.051383 | 0.817117 | 0.028018 | 0 | 0.583756 | 0 | 0 | 0.129813 | 0.064212 | 0 | 0 | 0 | 0 | 0.203046 | 1 | 0.06599 | false | 0 | 0.020305 | 0 | 0.091371 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 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 | 3 |
12ac0458ec30ff302617310d05110ce4b3298f86 | 3,425 | py | Python | dropbox/exceptions.py | ParikhKadam/dropbox-sdk-python | 005a750c0fefc4781cea0850f311b0fca9019da8 | [
"MIT"
] | 910 | 2015-07-10T02:18:38.000Z | 2022-03-30T10:12:48.000Z | dropbox/exceptions.py | ParikhKadam/dropbox-sdk-python | 005a750c0fefc4781cea0850f311b0fca9019da8 | [
"MIT"
] | 371 | 2015-07-01T03:44:16.000Z | 2022-03-30T22:29:32.000Z | dropbox/exceptions.py | oneflower/dropbox-sdk-python | d5179c31345f413d067b33de9206fe7e8017388f | [
"MIT"
] | 402 | 2015-07-31T01:40:52.000Z | 2022-03-29T16:38:25.000Z | class DropboxException(Exception):
"""All errors related to making an API request extend this."""
def __init__(self, request_id, *args, **kwargs):
# A request_id can be shared with Dropbox Support to pinpoint the exact
# request that returns an error.
super(DropboxException, self).__ini... | 33.910891 | 82 | 0.659562 | 428 | 3,425 | 4.955607 | 0.21729 | 0.110325 | 0.091938 | 0.059406 | 0.347006 | 0.276756 | 0.253182 | 0.21405 | 0.150872 | 0.117869 | 0 | 0.004511 | 0.223358 | 3,425 | 100 | 83 | 34.25 | 0.792857 | 0.247007 | 0 | 0.211538 | 0 | 0 | 0.073398 | 0.010138 | 0 | 0 | 0 | 0 | 0 | 1 | 0.288462 | false | 0 | 0 | 0.153846 | 0.596154 | 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 | 1 | 1 | 0 | 0 | 3 |
12b57f62feafc40b8d159c15af6280daa76bb619 | 593 | py | Python | tests/test_adiff.py | PaulHoward77/itmlogic | 4b19cbadb20478b8a13d47e3e945dbc40293255f | [
"MIT"
] | null | null | null | tests/test_adiff.py | PaulHoward77/itmlogic | 4b19cbadb20478b8a13d47e3e945dbc40293255f | [
"MIT"
] | null | null | null | tests/test_adiff.py | PaulHoward77/itmlogic | 4b19cbadb20478b8a13d47e3e945dbc40293255f | [
"MIT"
] | null | null | null | import pytest
from itmlogic.adiff import adiff
def test_adiff(
setup_prop_to_test_adiff,
setup_expected_answer_for_adiff):
q, actual_answer = adiff(0, setup_prop_to_test_adiff)
expected_answer = setup_expected_answer_for_adiff
assert actual_answer['wd1'] == expected_answer['wd1']
assert actu... | 32.944444 | 57 | 0.735245 | 79 | 593 | 5.126582 | 0.291139 | 0.311111 | 0.266667 | 0.074074 | 0.232099 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009862 | 0.145025 | 593 | 17 | 58 | 34.882353 | 0.788955 | 0 | 0 | 0 | 0 | 0 | 0.057336 | 0 | 0 | 0 | 0 | 0 | 0.461538 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
12d076634f71e9b6ceb964252c498b0e91c2e510 | 159 | py | Python | clarisse/var/lib/linux/menus/main_menu/edit/rename.py | GuillaumeVFX/pipel | a1bd726239e6887745396723c3aad5d61e88ce44 | [
"MIT"
] | 2 | 2020-05-12T11:38:44.000Z | 2022-03-07T04:13:50.000Z | clarisse/var/lib/linux/menus/main_menu/edit/rename.py | GuillaumeVFX/pipel | a1bd726239e6887745396723c3aad5d61e88ce44 | [
"MIT"
] | null | null | null | clarisse/var/lib/linux/menus/main_menu/edit/rename.py | GuillaumeVFX/pipel | a1bd726239e6887745396723c3aad5d61e88ce44 | [
"MIT"
] | null | null | null | ix.enable_command_history()
app = ix.application
clarisse_win = app.get_event_window()
app.open_rename_item_window(clarisse_win)
ix.disable_command_history() | 22.714286 | 41 | 0.842767 | 24 | 159 | 5.125 | 0.625 | 0.227642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062893 | 159 | 7 | 42 | 22.714286 | 0.825503 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 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 | 3 |
12d51975c47a34a29649da42dec154e5739d161b | 163 | py | Python | backend/atlas/root_schema.py | getsentry/atlas | 9bf4a236b99a24a7a17700591a0ff94feecf7ce7 | [
"Apache-2.0"
] | 18 | 2019-09-24T23:49:41.000Z | 2020-11-14T17:30:27.000Z | backend/atlas/root_schema.py | getsentry/atlas | 9bf4a236b99a24a7a17700591a0ff94feecf7ce7 | [
"Apache-2.0"
] | 53 | 2019-09-24T18:50:25.000Z | 2022-02-27T11:44:55.000Z | backend/atlas/root_schema.py | getsentry/atlas | 9bf4a236b99a24a7a17700591a0ff94feecf7ce7 | [
"Apache-2.0"
] | 2 | 2020-02-03T08:22:36.000Z | 2021-02-28T12:55:48.000Z | import graphene
import atlas.mutations
import atlas.queries
schema = graphene.Schema(
query=atlas.queries.RootQuery, mutation=atlas.mutations.RootMutation
)
| 18.111111 | 72 | 0.809816 | 19 | 163 | 6.947368 | 0.526316 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110429 | 163 | 8 | 73 | 20.375 | 0.910345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
4200167cd19937c1b5f4386e745fc440b99a9ef9 | 948 | py | Python | main/PleiadesTracker.py | driftingawaynow/Pleiades | c0912e9ab73014a798c394d66ea486f9de6a3f49 | [
"CC-BY-3.0",
"MIT"
] | null | null | null | main/PleiadesTracker.py | driftingawaynow/Pleiades | c0912e9ab73014a798c394d66ea486f9de6a3f49 | [
"CC-BY-3.0",
"MIT"
] | null | null | null | main/PleiadesTracker.py | driftingawaynow/Pleiades | c0912e9ab73014a798c394d66ea486f9de6a3f49 | [
"CC-BY-3.0",
"MIT"
] | null | null | null | from skyfield.api import Topos, Loader, EarthSatellite
from skyfield.positionlib import position_of_radec
from skyfield.api import load, wgs84
import math
ts = load.timescale()
t = ts.now()
earth = 399 # NAIF code for the Earth center of mass
ra_hours = 3.79
dec_degrees = 24.1167
# returns the subpoint
def get_ple... | 20.170213 | 66 | 0.7173 | 144 | 948 | 4.583333 | 0.451389 | 0.066667 | 0.063636 | 0.063636 | 0.069697 | 0.069697 | 0.069697 | 0 | 0 | 0 | 0 | 0.025575 | 0.175105 | 948 | 46 | 67 | 20.608696 | 0.818414 | 0.099156 | 0 | 0 | 0 | 0 | 0.001178 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4200b2085cdfa06fa1cc423e8036b1d83b7b10f4 | 450 | py | Python | utils/checks.py | ephreal/rollbot | 8e345f97a30e2788daf1ef7f6615e0b489eda57c | [
"MIT"
] | 2 | 2021-03-27T21:43:19.000Z | 2022-01-22T17:54:15.000Z | utils/checks.py | ephreal/rollbot | 8e345f97a30e2788daf1ef7f6615e0b489eda57c | [
"MIT"
] | null | null | null | utils/checks.py | ephreal/rollbot | 8e345f97a30e2788daf1ef7f6615e0b489eda57c | [
"MIT"
] | 1 | 2019-03-15T16:52:19.000Z | 2019-03-15T16:52:19.000Z | # -*- coding: utf-8 -*-
"""
This software is licensed under the License (MIT) located at
https://github.com/ephreal/rollbot/Licence
Please see the license for any restrictions or rights granted to you by the
License.
"""
def check_author(author):
"""
Checks to see if the author of a message is the same as th... | 22.5 | 75 | 0.691111 | 66 | 450 | 4.666667 | 0.651515 | 0.097403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002841 | 0.217778 | 450 | 19 | 76 | 23.684211 | 0.872159 | 0.644444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4209a188e33aff89ea1e1f8f352fde0109e73239 | 194 | py | Python | pypy/lib/_ctypes/dll.py | woodrow/pyoac | b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7 | [
"MIT"
] | 1 | 2019-05-27T00:58:46.000Z | 2019-05-27T00:58:46.000Z | pypy/lib/_ctypes/dll.py | woodrow/pyoac | b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7 | [
"MIT"
] | null | null | null | pypy/lib/_ctypes/dll.py | woodrow/pyoac | b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7 | [
"MIT"
] | null | null | null | import _rawffi
def dlopen(name, mode):
# XXX mode is ignored
if name is None:
return None # XXX this should return *all* loaded libs, dlopen(NULL)
return _rawffi.CDLL(name)
| 24.25 | 76 | 0.675258 | 29 | 194 | 4.448276 | 0.655172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247423 | 194 | 7 | 77 | 27.714286 | 0.883562 | 0.381443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.8 | 0 | 1 | 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 | 1 | 0 | 0 | 3 |
42112bf4e48ad0921e000b3171d6aa0b66234da1 | 448 | py | Python | mods/mcpython/Item/purpur.py | uuk0/mcpython-a-minecraft-clone-in-python | c16cd66f319efdeec4130e1a43f5a857caf1ea13 | [
"MIT"
] | 2 | 2020-04-23T16:25:51.000Z | 2020-08-27T17:56:16.000Z | mods/mcpython/Item/purpur.py | uuk0/mcpython-a-minecraft-clone-in-python | c16cd66f319efdeec4130e1a43f5a857caf1ea13 | [
"MIT"
] | null | null | null | mods/mcpython/Item/purpur.py | uuk0/mcpython-a-minecraft-clone-in-python | c16cd66f319efdeec4130e1a43f5a857caf1ea13 | [
"MIT"
] | null | null | null | from .Item import *
class purpur_block(Item):
def getName(self):
return "minecraft:purpur_block"
def getTexturFile(self):
return "./assets/textures/items/purpur_block.png"
handler.register(purpur_block)
class purpur_pillar(Item):
def getName(self):
return "minecraft:purpur_pil... | 18.666667 | 58 | 0.705357 | 53 | 448 | 5.811321 | 0.358491 | 0.142857 | 0.090909 | 0.116883 | 0.584416 | 0.584416 | 0.584416 | 0.331169 | 0 | 0 | 0 | 0 | 0.1875 | 448 | 23 | 59 | 19.478261 | 0.846154 | 0 | 0 | 0.307692 | 0 | 0 | 0.28125 | 0.28125 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0.307692 | 0.846154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
42168beee3bda6d3e85cb3500d7c14867b6c7c4f | 562 | py | Python | unittest/functions_test.py | mokpolar/devops-eng-training | 2cf327a37e4575991f2846f42cad03f3cbab770d | [
"MIT"
] | null | null | null | unittest/functions_test.py | mokpolar/devops-eng-training | 2cf327a37e4575991f2846f42cad03f3cbab770d | [
"MIT"
] | null | null | null | unittest/functions_test.py | mokpolar/devops-eng-training | 2cf327a37e4575991f2846f42cad03f3cbab770d | [
"MIT"
] | 9 | 2021-05-06T06:00:18.000Z | 2021-05-15T08:30:47.000Z | # TODO(everyone): 더하기, 빼기, 곱하기, 나누기 함수 테스트 케이스 작성
import pytest
import os.path
import sys
sys.path.append(
os.path.dirname(os.path.dirname(__file__))
)
import functions
def test_add():
prediction = functions.add_function(6, 2)
assert prediction == 8
def test_subtract():
predict = functions.subtract_... | 19.37931 | 50 | 0.706406 | 77 | 562 | 5 | 0.454545 | 0.072727 | 0.103896 | 0.166234 | 0.202597 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028446 | 0.186833 | 562 | 28 | 51 | 20.071429 | 0.814004 | 0.08363 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.210526 | 1 | 0.210526 | false | 0 | 0.210526 | 0 | 0.421053 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
422268b2182d0ff2d3437b5c09cd3c5c9fdd38bb | 10,932 | py | Python | pylabnet/network/client_server/external_gui.py | wi11dey/pylabnet | a6e3362f727c45aaa60e61496e858ae92e85574d | [
"MIT"
] | 10 | 2020-01-07T23:28:49.000Z | 2022-02-02T19:09:17.000Z | pylabnet/network/client_server/external_gui.py | wi11dey/pylabnet | a6e3362f727c45aaa60e61496e858ae92e85574d | [
"MIT"
] | 249 | 2019-12-28T19:38:49.000Z | 2022-03-28T16:45:32.000Z | pylabnet/network/client_server/external_gui.py | wi11dey/pylabnet | a6e3362f727c45aaa60e61496e858ae92e85574d | [
"MIT"
] | 5 | 2020-11-17T19:45:10.000Z | 2022-01-04T18:07:04.000Z | import pickle
import os
import json
from pylabnet.network.core.service_base import ServiceBase
from pylabnet.network.core.client_base import ClientBase
from pylabnet.utils.helper_methods import load_config, get_config_filepath
class Service(ServiceBase):
def exposed_assign_plot(self, plot_widget, plot_label, le... | 37.057627 | 98 | 0.69539 | 1,384 | 10,932 | 5.127168 | 0.094653 | 0.062007 | 0.054961 | 0.074408 | 0.782272 | 0.680524 | 0.630214 | 0.483794 | 0.362458 | 0.252114 | 0 | 0.000119 | 0.231339 | 10,932 | 294 | 99 | 37.183673 | 0.844341 | 0.082784 | 0 | 0.194313 | 0 | 0 | 0.014648 | 0.003738 | 0 | 0 | 0 | 0 | 0 | 1 | 0.255924 | false | 0 | 0.028436 | 0.218009 | 0.530806 | 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 | 1 | 1 | 0 | 0 | 3 |
42245f3078fb676ef972d6e21f7b02e9cb4aafa2 | 205 | py | Python | tests/urls.py | bushig/OEAdmin | 5464d3e63b658219bd4fe31cddbd8682b15ed3b3 | [
"MIT"
] | null | null | null | tests/urls.py | bushig/OEAdmin | 5464d3e63b658219bd4fe31cddbd8682b15ed3b3 | [
"MIT"
] | 5 | 2019-11-25T21:29:22.000Z | 2019-11-27T23:34:15.000Z | tests/urls.py | bushig/django-vadmin | 5464d3e63b658219bd4fe31cddbd8682b15ed3b3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
from django.urls import path, include
urlpatterns = [
path('', include('django_vadmin.urls', namespace='vadmin')),
]
| 20.5 | 64 | 0.712195 | 24 | 205 | 5.791667 | 0.666667 | 0.158273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005682 | 0.141463 | 205 | 9 | 65 | 22.777778 | 0.784091 | 0.102439 | 0 | 0 | 0 | 0 | 0.131868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
42667a9154db0ce5f470410a70bed046750b9a56 | 33,026 | py | Python | jz-submissions/scripts/train_eval_poly_200_click.py | tobias-liaudat/wf-psf | 0ff1a12d06c46bd8599061d227785393fb528d76 | [
"MIT"
] | 7 | 2022-03-10T10:49:01.000Z | 2022-03-17T16:06:12.000Z | jz-submissions/scripts/train_eval_poly_200_click.py | tobias-liaudat/wf-psf | 0ff1a12d06c46bd8599061d227785393fb528d76 | [
"MIT"
] | null | null | null | jz-submissions/scripts/train_eval_poly_200_click.py | tobias-liaudat/wf-psf | 0ff1a12d06c46bd8599061d227785393fb528d76 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# PSF modelling and evaluation
# Import packages
import sys
import numpy as np
import time
import wf_psf as wf
import tensorflow as tf
import tensorflow_addons as tfa
import click
# from absl import app
# from absl import flags
@click.command()
@click.command()
## Training o... | 39.130332 | 119 | 0.593653 | 4,048 | 33,026 | 4.483696 | 0.088686 | 0.033939 | 0.049366 | 0.019835 | 0.780055 | 0.738678 | 0.712948 | 0.674821 | 0.669091 | 0.636749 | 0 | 0.009525 | 0.303791 | 33,026 | 843 | 120 | 39.17675 | 0.779846 | 0.088052 | 0 | 0.64658 | 0 | 0.001629 | 0.178151 | 0.00971 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004886 | false | 0 | 0.011401 | 0 | 0.016287 | 0.035831 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 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 | 3 |
42750e322eaee4270f33100b42e7ccfe36415d95 | 58,717 | py | Python | FEV_KEGG/Experiments/49.py | ryhaberecht/FEV-KEGG | f55f294aae07b76954ed823f0c2e6d189fb2b1bb | [
"MIT"
] | null | null | null | FEV_KEGG/Experiments/49.py | ryhaberecht/FEV-KEGG | f55f294aae07b76954ed823f0c2e6d189fb2b1bb | [
"MIT"
] | 2 | 2019-05-30T06:42:08.000Z | 2021-05-06T10:37:40.000Z | FEV_KEGG/Experiments/49.py | ryhaberecht/FEV-KEGG | f55f294aae07b76954ed823f0c2e6d189fb2b1bb | [
"MIT"
] | null | null | null | """
Question
--------
Which neofunctionalised enzymes cause the core metabolism of Deltaproteobacteria to have increased redundancy? How much do they contribute?
Method
------
- get clade
- get core metabolism
- calculate "neofunctionalised" ECs
- calculate redundancy
- REPEAT for each "neofunctionalised" EC contribut... | 67.724337 | 219 | 0.576664 | 13,517 | 58,717 | 2.401716 | 0.083081 | 0.041092 | 0.032344 | 0.026121 | 0.691843 | 0.629744 | 0.563979 | 0.519899 | 0.506962 | 0.484598 | 0 | 0.344352 | 0.163275 | 58,717 | 866 | 220 | 67.80254 | 0.316426 | 0.906637 | 0 | 0.287879 | 0 | 0 | 0.066057 | 0.01226 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015152 | false | 0 | 0.060606 | 0 | 0.090909 | 0.015152 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
428df1faa747bc342e48b83fb8c6f44d6757dcf5 | 713 | py | Python | service/app/models/message.py | xuannanxan/maitul-manage | 35ddd2946bf4c97806bb38057a7dc9d6fa97c118 | [
"Apache-2.0"
] | null | null | null | service/app/models/message.py | xuannanxan/maitul-manage | 35ddd2946bf4c97806bb38057a7dc9d6fa97c118 | [
"Apache-2.0"
] | 14 | 2021-03-10T01:16:29.000Z | 2022-02-18T16:53:36.000Z | service/app/models/message.py | xuannanxan/maitul-manage | 35ddd2946bf4c97806bb38057a7dc9d6fa97c118 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Created by xuannan on 2019-01-26.
__author__ = 'Allen xu'
from app.models.base import db, BaseModel
# 留言
class Message(BaseModel):
__tablename__ = "message"
contact = db.Column(db.String(100)) # 联系方式
email = db.Column(db.String(100)) # 邮箱
name = db.Column(db.String(100))... | 29.708333 | 67 | 0.619916 | 105 | 713 | 4.095238 | 0.590476 | 0.186047 | 0.232558 | 0.260465 | 0.176744 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057554 | 0.220196 | 713 | 23 | 68 | 31 | 0.715827 | 0.164095 | 0 | 0 | 0 | 0 | 0.046472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0.0625 | 0.9375 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 3 |
35f09379befd5ddf6b604bb0360a4a26bfd8a00d | 4,952 | py | Python | langeer/langeer.py | kancyframework/python-plugins | 430d0f781b5669d8e6ad83f7af0782b672c43db5 | [
"MIT"
] | 1 | 2021-12-11T12:44:12.000Z | 2021-12-11T12:44:12.000Z | langeer/langeer.py | kancyframework/python-plugins | 430d0f781b5669d8e6ad83f7af0782b672c43db5 | [
"MIT"
] | null | null | null | langeer/langeer.py | kancyframework/python-plugins | 430d0f781b5669d8e6ad83f7af0782b672c43db5 | [
"MIT"
] | null | null | null | def isString(value) -> bool:
return isinstance(value, str)
def isBool(value) -> bool:
return isinstance(value, bool)
def isInt(value) -> bool:
return isinstance(value, int)
def isFloat(value) -> bool:
return isinstance(value, float)
def isNumber(value) -> bool:
return isInt(value) or isFloat... | 19.88755 | 104 | 0.610864 | 610 | 4,952 | 4.877049 | 0.216393 | 0.070588 | 0.07563 | 0.092437 | 0.32437 | 0.243025 | 0.166723 | 0.120336 | 0.08 | 0.08 | 0 | 0.001393 | 0.27504 | 4,952 | 248 | 105 | 19.967742 | 0.827298 | 0.048869 | 0 | 0.1875 | 0 | 0 | 0.063305 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.270833 | false | 0.006944 | 0.020833 | 0.152778 | 0.576389 | 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 | 1 | 1 | 0 | 0 | 3 |
35f84e79df1c871246f4cb7f485e21df1a78147f | 178 | py | Python | Week 8: Functional programming/8 (05).py | MLunov/Python-programming-basics-HSE | 7df8bba105db84d6b932c454fdc39193a648254e | [
"MIT"
] | null | null | null | Week 8: Functional programming/8 (05).py | MLunov/Python-programming-basics-HSE | 7df8bba105db84d6b932c454fdc39193a648254e | [
"MIT"
] | null | null | null | Week 8: Functional programming/8 (05).py | MLunov/Python-programming-basics-HSE | 7df8bba105db84d6b932c454fdc39193a648254e | [
"MIT"
] | null | null | null | from functools import reduce
print(
reduce(
lambda x, y: x * y ** 5,
map(
int,
('1 ' + input()).split()
)
)
)
| 14.833333 | 37 | 0.359551 | 17 | 178 | 3.764706 | 0.823529 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022989 | 0.511236 | 178 | 11 | 38 | 16.181818 | 0.712644 | 0 | 0 | 0 | 0 | 0 | 0.011976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0.1 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
35fcf5f0695912e9a5b0eba398a412ffcb54d320 | 92 | py | Python | code/tenka1_2019_b_01.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | 3 | 2019-08-16T16:55:48.000Z | 2021-04-11T10:21:40.000Z | code/tenka1_2019_b_01.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | code/tenka1_2019_b_01.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | n=int(input())
S=input()
k=int(input())
i=S[k-1]
for s in S:print(s if s==i else "*",end="") | 18.4 | 43 | 0.565217 | 23 | 92 | 2.26087 | 0.565217 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.119565 | 92 | 5 | 43 | 18.4 | 0.62963 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 1 | 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 | 3 |
c43b7062281f1e9e2b1210df8df4e0ed97f774f9 | 203 | py | Python | tests/examples/example3.py | the-one-ninja/pytest-contexts | 4ced6a2d4e2e2df260e3cea093a9555e4bdf4cbc | [
"Unlicense"
] | 4 | 2018-06-29T14:58:11.000Z | 2019-09-18T07:04:58.000Z | tests/examples/example3.py | the-one-ninja/pytest-contexts | 4ced6a2d4e2e2df260e3cea093a9555e4bdf4cbc | [
"Unlicense"
] | 1 | 2021-07-04T08:02:53.000Z | 2021-07-04T08:02:53.000Z | tests/examples/example3.py | the-one-ninja/pytest-contexts | 4ced6a2d4e2e2df260e3cea093a9555e4bdf4cbc | [
"Unlicense"
] | 2 | 2019-05-19T18:09:40.000Z | 2021-05-18T15:17:56.000Z | class When_we_have_a_test:
def when_things_happen(self):
pass
def it_should_do_this_test(self):
assert 1 == 1
def test_we_still_run_regular_pytest_scripts():
assert 2 == 2
| 18.454545 | 47 | 0.694581 | 33 | 203 | 3.787879 | 0.69697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025806 | 0.236453 | 203 | 10 | 48 | 20.3 | 0.780645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.428571 | false | 0.142857 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
c44a2062c168cbe16a4005131c0a60de0f5ca7e0 | 13,786 | py | Python | test/test_damage.py | bwspenc/neml | 2fe283cb14ab309d95627590408670dab877c5a5 | [
"MIT"
] | null | null | null | test/test_damage.py | bwspenc/neml | 2fe283cb14ab309d95627590408670dab877c5a5 | [
"MIT"
] | null | null | null | test/test_damage.py | bwspenc/neml | 2fe283cb14ab309d95627590408670dab877c5a5 | [
"MIT"
] | null | null | null | import sys
sys.path.append('..')
from neml import interpolate, solvers, models, elasticity, ri_flow, hardening, surfaces, visco_flow, general_flow, creep, damage
from common import *
import unittest
import numpy as np
import numpy.linalg as la
class CommonStandardDamageModel(object):
"""
Tests that apply to an... | 31.260771 | 128 | 0.646598 | 2,410 | 13,786 | 3.539419 | 0.087967 | 0.050996 | 0.031887 | 0.03939 | 0.773857 | 0.73517 | 0.7034 | 0.688863 | 0.670692 | 0.657913 | 0 | 0.079212 | 0.205136 | 13,786 | 440 | 129 | 31.331818 | 0.699215 | 0.043667 | 0 | 0.567823 | 0 | 0 | 0.004406 | 0 | 0 | 0 | 0 | 0 | 0.053628 | 1 | 0.069401 | false | 0 | 0.018927 | 0 | 0.113565 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 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 | 3 |
c45cfcaae81ab0c319f27e21c584aaf391f23264 | 279 | py | Python | src/thug/meme/__init__.py | rmoutie/thug-memes | 925b1282f7bf60bf0e70f4f0387dd90a8ce91fce | [
"MIT"
] | 234 | 2018-03-17T02:32:55.000Z | 2022-03-09T20:50:24.000Z | src/thug/meme/__init__.py | rmoutie/thug-memes | 925b1282f7bf60bf0e70f4f0387dd90a8ce91fce | [
"MIT"
] | 9 | 2018-03-17T01:27:37.000Z | 2020-05-10T18:37:25.000Z | src/thug/meme/__init__.py | rmoutie/thug-memes | 925b1282f7bf60bf0e70f4f0387dd90a8ce91fce | [
"MIT"
] | 15 | 2018-03-17T08:04:35.000Z | 2020-09-17T16:46:41.000Z | from os import path as osp
# from .basic import Meme
# from .thug import ThugMeme
DATA_FOLDER = osp.join(osp.dirname(__file__), 'data')
GLASSES_FILE = osp.join(DATA_FOLDER, 'glasses.png')
CIGAR_FILE = osp.join(DATA_FOLDER, 'cigar.png')
FONT = osp.join(DATA_FOLDER, 'font.ttf')
| 27.9 | 53 | 0.741935 | 45 | 279 | 4.377778 | 0.444444 | 0.203046 | 0.167513 | 0.258883 | 0.213198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121864 | 279 | 9 | 54 | 31 | 0.804082 | 0.179211 | 0 | 0 | 0 | 0 | 0.141593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 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 | 3 |
c48355a523a8d9ff38ba08be90b4c2393c8cb2f9 | 563 | py | Python | host/greatfet/glitchkit/uart.py | wchill/greatfet | a76e0ccc2794686407840b11093d460a0ba29825 | [
"BSD-3-Clause"
] | null | null | null | host/greatfet/glitchkit/uart.py | wchill/greatfet | a76e0ccc2794686407840b11093d460a0ba29825 | [
"BSD-3-Clause"
] | null | null | null | host/greatfet/glitchkit/uart.py | wchill/greatfet | a76e0ccc2794686407840b11093d460a0ba29825 | [
"BSD-3-Clause"
] | null | null | null | #
# This file is part of GreatFET
#
from .base import GlitchKitModule
from ..protocol import vendor_requests
class GlitchKitUART(GlitchKitModule):
"""
"""
# TODO: Dominic, implement me. :)
SHORT_NAME = 'uart'
def __init__(self, board):
"""
Create a new GlitchKit module allowing... | 20.107143 | 82 | 0.614565 | 62 | 563 | 5.483871 | 0.741935 | 0.052941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.309059 | 563 | 27 | 83 | 20.851852 | 0.874036 | 0.477798 | 0 | 0 | 0 | 0 | 0.017316 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
670404cf9fdd51cd6127194e26a3105adf12cb1d | 223 | py | Python | setup.py | n0whereRuoxi/gym-multigrid | 98809bd40b3d4a0bfa1ab909b1a748fe82d71b60 | [
"Apache-2.0"
] | 95 | 2020-04-01T15:59:31.000Z | 2022-03-27T05:17:22.000Z | setup.py | n0whereRuoxi/gym-multigrid | 98809bd40b3d4a0bfa1ab909b1a748fe82d71b60 | [
"Apache-2.0"
] | 2 | 2020-07-28T13:56:00.000Z | 2021-03-25T23:35:48.000Z | setup.py | n0whereRuoxi/gym-multigrid | 98809bd40b3d4a0bfa1ab909b1a748fe82d71b60 | [
"Apache-2.0"
] | 30 | 2020-04-17T15:15:07.000Z | 2022-03-17T14:49:19.000Z | from setuptools import setup
setup(name='gym_multigrid',
version='0.0.1',
packages=['gym_multigrid', 'gym_multigrid.envs'],
install_requires=[
'gym>=0.9.6',
'numpy>=1.15.0'
]
) | 22.3 | 57 | 0.565022 | 28 | 223 | 4.357143 | 0.642857 | 0.295082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060976 | 0.264574 | 223 | 10 | 58 | 22.3 | 0.682927 | 0 | 0 | 0 | 0 | 0 | 0.321429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
67048f510a7fa0df370003158c7b138728e45421 | 333 | py | Python | test/test_socket.py | alexmv/python-binary-memcached | 41ed6136a029eda65271055c88f1bbbb4e4f1aba | [
"MIT"
] | 103 | 2015-01-30T15:38:37.000Z | 2022-02-17T02:03:59.000Z | test/test_socket.py | alexmv/python-binary-memcached | 41ed6136a029eda65271055c88f1bbbb4e4f1aba | [
"MIT"
] | 135 | 2015-01-26T11:16:27.000Z | 2021-12-28T14:58:07.000Z | test/test_socket.py | alexmv/python-binary-memcached | 41ed6136a029eda65271055c88f1bbbb4e4f1aba | [
"MIT"
] | 45 | 2015-02-04T16:32:29.000Z | 2021-12-27T22:29:18.000Z | import bmemcached
import test_simple_functions
class SocketMemcachedTests(test_simple_functions.MemcachedTests):
"""
Same tests as above, just make sure it works with sockets.
"""
def setUp(self):
self.server = '/tmp/memcached.sock'
self.client = bmemcached.Client(self.server, 'user',... | 25.615385 | 72 | 0.705706 | 39 | 333 | 5.923077 | 0.74359 | 0.08658 | 0.164502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192192 | 333 | 12 | 73 | 27.75 | 0.858736 | 0.174174 | 0 | 0 | 0 | 0 | 0.119691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.333333 | 0 | 0.666667 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
671d6d8effaf12a58f74ffdc93457f793bbf73f2 | 396 | py | Python | src/courses/tests/records/tests_record_str.py | iNerV/education-backend | 787c0d090eb6e4a9338812941b0246a6e1b8e7ad | [
"MIT"
] | null | null | null | src/courses/tests/records/tests_record_str.py | iNerV/education-backend | 787c0d090eb6e4a9338812941b0246a6e1b8e7ad | [
"MIT"
] | 1 | 2022-02-10T12:08:02.000Z | 2022-02-10T12:08:02.000Z | src/courses/tests/records/tests_record_str.py | iNerV/education-backend | 787c0d090eb6e4a9338812941b0246a6e1b8e7ad | [
"MIT"
] | null | null | null | import pytest
pytestmark = [pytest.mark.django_db]
@pytest.fixture
def course(mixer):
return mixer.blend('courses.Course', name='Упячивание бутявок', name_genitive='Упячивания бутявок')
@pytest.fixture
def record(course, mixer):
return mixer.blend('courses.Record', course=course)
def test(record):
as... | 20.842105 | 103 | 0.737374 | 51 | 396 | 5.686275 | 0.470588 | 0.089655 | 0.110345 | 0.151724 | 0.234483 | 0.234483 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 396 | 18 | 104 | 22 | 0.85044 | 0 | 0 | 0.181818 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.272727 | false | 0 | 0.090909 | 0.181818 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
671f7f77471a377d7ef1fbe2f04c554ba3dcb1d0 | 180 | py | Python | deport_upao/apps/productos/models.py | andree1320z/deport-upao-web | b838b58224bb182243a91c79b7cfe61026798fce | [
"MIT"
] | 1 | 2017-09-26T11:50:27.000Z | 2017-09-26T11:50:27.000Z | deport_upao/apps/productos/models.py | andree1320z/deport-upao-web | b838b58224bb182243a91c79b7cfe61026798fce | [
"MIT"
] | null | null | null | deport_upao/apps/productos/models.py | andree1320z/deport-upao-web | b838b58224bb182243a91c79b7cfe61026798fce | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Product(models.Model):
name = models.CharField(max_length=100)
unidad = models.FloatField(max_length=1000)
| 20 | 47 | 0.75 | 25 | 180 | 5.32 | 0.76 | 0.135338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046053 | 0.155556 | 180 | 8 | 48 | 22.5 | 0.828947 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 0 | 3 |
67474bfe404ab34c4c2617665143d3ba014784ba | 1,454 | py | Python | privpack-app/priv_bmi.py | maxxiefjv/privpack | b6bff78588362e57bc3f1268ab864026db4a1afa | [
"MIT"
] | null | null | null | privpack-app/priv_bmi.py | maxxiefjv/privpack | b6bff78588362e57bc3f1268ab864026db4a1afa | [
"MIT"
] | 1 | 2020-11-06T16:02:51.000Z | 2020-11-06T16:02:51.000Z | privpack-app/priv_bmi.py | maxxiefjv/privpack | b6bff78588362e57bc3f1268ab864026db4a1afa | [
"MIT"
] | null | null | null | from experiments import ExperimentRunner
class BMIExperiment(ExperimentRunner):
def __init__(self):
pass
def run(self, args):
pass
## Figure out the input dimensions: W = (Y, X)
# Width * Height * Color = 224 * 224 * 3 + ID
# Output:
# Width * Height * ... | 40.388889 | 126 | 0.595598 | 174 | 1,454 | 4.816092 | 0.431034 | 0.039379 | 0.057279 | 0.068019 | 0.282816 | 0.282816 | 0.193317 | 0.116945 | 0.116945 | 0 | 0 | 0.032567 | 0.281981 | 1,454 | 35 | 127 | 41.542857 | 0.770115 | 0.736589 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0.166667 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
676164933ccea67f3393c4eac5d26a3878e26e8f | 1,371 | py | Python | jasperserverlib/core/PatchDescriptor.py | saguas/jasperserverlib | c65efc939faff1cf94e6f35855fc16e4fff627b0 | [
"MIT"
] | null | null | null | jasperserverlib/core/PatchDescriptor.py | saguas/jasperserverlib | c65efc939faff1cf94e6f35855fc16e4fff627b0 | [
"MIT"
] | null | null | null | jasperserverlib/core/PatchDescriptor.py | saguas/jasperserverlib | c65efc939faff1cf94e6f35855fc16e4fff627b0 | [
"MIT"
] | null | null | null | import json
from PatchItem import PatchItem
class PatchDescriptor(object):
def __init__(self):
self.items = []
self.version = 2
def getVersion(self):
return self.version
def setVersion(self, version=0):
self.version = version
return self
d... | 24.482143 | 91 | 0.545587 | 140 | 1,371 | 5.171429 | 0.314286 | 0.110497 | 0.077348 | 0.052486 | 0.143646 | 0.088398 | 0.088398 | 0 | 0 | 0 | 0 | 0.002235 | 0.347192 | 1,371 | 56 | 92 | 24.482143 | 0.806704 | 0 | 0 | 0.243902 | 0 | 0 | 0.030612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.268293 | false | 0 | 0.04878 | 0.121951 | 0.585366 | 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 | 1 | 1 | 0 | 0 | 3 |
676254163fa7b82b29373fd440bd57d3e5d304ed | 22 | py | Python | knihovna-server/third_party/gflags/tests/__init__.py | gdg-garage/knihovna-db | a795e71cf2c01a2337370a18df4447632313afae | [
"MIT"
] | 4 | 2015-04-20T11:06:44.000Z | 2015-12-10T21:45:04.000Z | knihovna-server/third_party/gflags/tests/__init__.py | gdg-garage/knihovna-db | a795e71cf2c01a2337370a18df4447632313afae | [
"MIT"
] | null | null | null | knihovna-server/third_party/gflags/tests/__init__.py | gdg-garage/knihovna-db | a795e71cf2c01a2337370a18df4447632313afae | [
"MIT"
] | null | null | null | __author__ = 'filiph'
| 11 | 21 | 0.727273 | 2 | 22 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 22 | 1 | 22 | 22 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
678d3d0e02f8f4d15e975003c2737b692355b104 | 192 | py | Python | bc/forms/templatetags/form_tags.py | Buckinghamshire-Digital-Service/buckinghamshire-council | bbbdb52b515bcdfc79a2bd9198dfa4828405370e | [
"BSD-3-Clause"
] | 1 | 2021-02-27T07:27:17.000Z | 2021-02-27T07:27:17.000Z | bc/forms/templatetags/form_tags.py | Buckinghamshire-Digital-Service/buckinghamshire-council | bbbdb52b515bcdfc79a2bd9198dfa4828405370e | [
"BSD-3-Clause"
] | null | null | null | bc/forms/templatetags/form_tags.py | Buckinghamshire-Digital-Service/buckinghamshire-council | bbbdb52b515bcdfc79a2bd9198dfa4828405370e | [
"BSD-3-Clause"
] | 1 | 2021-06-09T15:56:54.000Z | 2021-06-09T15:56:54.000Z | from django import template
register = template.Library()
@register.simple_tag
def get_form_additional_text(page, field):
return page.form_fields.get(label=field.label).additional_text
| 21.333333 | 66 | 0.807292 | 27 | 192 | 5.518519 | 0.666667 | 0.187919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104167 | 192 | 8 | 67 | 24 | 0.866279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 3 |
678f4ed5c285cf4b17a7d4b0929864e99babccac | 770 | py | Python | Class_2/finalcountdown.py | travism16/Python-Course | d8c522fc31c7830c3ceabf7a35022a9e33e1d706 | [
"Apache-2.0"
] | null | null | null | Class_2/finalcountdown.py | travism16/Python-Course | d8c522fc31c7830c3ceabf7a35022a9e33e1d706 | [
"Apache-2.0"
] | null | null | null | Class_2/finalcountdown.py | travism16/Python-Course | d8c522fc31c7830c3ceabf7a35022a9e33e1d706 | [
"Apache-2.0"
] | null | null | null | import os
import time
from netmiko import ConnectHandler
from getpass import getpass
password = getpass()
device = {
"host": "cisco4.lasthop.io",
"username": "pyclass",
"password": password,
"secret": password,
"device_type": "cisco_ios",
"session_log": "my_output.txt",
}
net_connect = Connec... | 19.25 | 38 | 0.746753 | 101 | 770 | 5.445545 | 0.39604 | 0.2 | 0.290909 | 0.181818 | 0.427273 | 0.427273 | 0.427273 | 0.292727 | 0.292727 | 0.207273 | 0 | 0.002963 | 0.123377 | 770 | 39 | 39 | 19.74359 | 0.811852 | 0 | 0 | 0.354839 | 0 | 0 | 0.13394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.129032 | 0.129032 | 0 | 0.129032 | 0.193548 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
67a36da9da29e8f53da4fa5bcd7a9ece9a2c3db9 | 51,686 | py | Python | xlib/face/FLandmarks2D.py | seanwan/DeepFaceLive | 0a076dbfdffdc5d12b7986d2ec3361eec5812382 | [
"MIT"
] | null | null | null | xlib/face/FLandmarks2D.py | seanwan/DeepFaceLive | 0a076dbfdffdc5d12b7986d2ec3361eec5812382 | [
"MIT"
] | null | null | null | xlib/face/FLandmarks2D.py | seanwan/DeepFaceLive | 0a076dbfdffdc5d12b7986d2ec3361eec5812382 | [
"MIT"
] | null | null | null | from typing import Tuple
import cv2
import numpy as np
import numpy.linalg as npla
from ..math import Affine2DMat, Affine2DUniMat
from .ELandmarks2D import ELandmarks2D
from .FRect import FRect
from .IState import IState
class FLandmarks2D(IState):
def __init__(self):
"""
Describes 2D face landma... | 38.716105 | 1,540 | 0.616724 | 6,151 | 51,686 | 5.140465 | 0.39522 | 0.003985 | 0.004301 | 0.003289 | 0.095101 | 0.089598 | 0.073975 | 0.071697 | 0.071223 | 0.071223 | 0 | 0.64525 | 0.229095 | 51,686 | 1,334 | 1,541 | 38.745127 | 0.1483 | 0.106586 | 0 | 0.012658 | 0 | 0 | 0.005576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011754 | false | 0 | 0.007233 | 0.002712 | 0.027125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
67b344ba986bff74d9148b4e8cd6484a0627e1d7 | 1,208 | py | Python | spiking/helpers.py | LeMuecke/SNNs_with_RNNs_in_Tensorflow_Toolbox | 261f94bc58df5b8add31fe721e85bd167be2ab1d | [
"Apache-2.0"
] | null | null | null | spiking/helpers.py | LeMuecke/SNNs_with_RNNs_in_Tensorflow_Toolbox | 261f94bc58df5b8add31fe721e85bd167be2ab1d | [
"Apache-2.0"
] | null | null | null | spiking/helpers.py | LeMuecke/SNNs_with_RNNs_in_Tensorflow_Toolbox | 261f94bc58df5b8add31fe721e85bd167be2ab1d | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
@tf.custom_gradient
def spike_function(v_to_threshold: tf.Tensor) -> tuple:
"""
A custom gradient for networks of spiking neurons.
@param v_to_threshold: The difference between current and threshold voltage of the neuron.
@type v_to_threshold: tf.float32
@return: Activatio... | 31.789474 | 94 | 0.59851 | 163 | 1,208 | 4.214724 | 0.374233 | 0.048035 | 0.19214 | 0.075691 | 0.110626 | 0.110626 | 0.064047 | 0 | 0 | 0 | 0 | 0.028335 | 0.298841 | 1,208 | 38 | 95 | 31.789474 | 0.782763 | 0.620033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
67b9743bff06abff103c926a2284b994a5e61b64 | 3,568 | py | Python | tests/conftest.py | MBrouns/scikit-prometheus | 530f3b3374e86380235f02e7fca9ff755fc8f24b | [
"MIT"
] | null | null | null | tests/conftest.py | MBrouns/scikit-prometheus | 530f3b3374e86380235f02e7fca9ff755fc8f24b | [
"MIT"
] | 3 | 2021-12-29T07:56:24.000Z | 2022-01-10T08:13:09.000Z | tests/conftest.py | MBrouns/scikit-prometheus | 530f3b3374e86380235f02e7fca9ff755fc8f24b | [
"MIT"
] | null | null | null | from types import SimpleNamespace
import pytest
from prometheus_client import REGISTRY
from sklearn.utils import estimator_checks
from skprometheus.metrics import MetricRegistry
@pytest.fixture(autouse=True)
def unregister_collectors():
"""
Fixture for cleaning registers before each test. Both prometheus_cl... | 35.68 | 88 | 0.818946 | 421 | 3,568 | 6.43943 | 0.332542 | 0.271118 | 0.354113 | 0.121726 | 0.27038 | 0.185172 | 0.185172 | 0.17263 | 0.163777 | 0.163777 | 0 | 0.002901 | 0.130605 | 3,568 | 99 | 89 | 36.040404 | 0.871051 | 0.093049 | 0 | 0.141026 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0 | 1 | 0.025641 | false | 0 | 0.064103 | 0 | 0.089744 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
67c6f5038a31fae55dfad68e5063beab91202ffa | 627 | py | Python | application/operationmodes/validationmode.py | edenhoferMarco/openvas-restful-client | da676b82bbb3d145297f9e078dbd8d782e7fdf1a | [
"MIT"
] | 1 | 2019-10-23T08:38:42.000Z | 2019-10-23T08:38:42.000Z | application/operationmodes/validationmode.py | edenhoferMarco/openvas-restful-client | da676b82bbb3d145297f9e078dbd8d782e7fdf1a | [
"MIT"
] | 2 | 2021-03-31T19:15:08.000Z | 2021-06-02T00:36:26.000Z | application/operationmodes/validationmode.py | edenhoferMarco/openvas-restful-client | da676b82bbb3d145297f9e078dbd8d782e7fdf1a | [
"MIT"
] | null | null | null | from application.operationmodes import OperationModeBase, WorkerBase
from application.taskparser import TaskParserBase
class ValidationMode(OperationModeBase):
def start_execution(self):
print("START\t-\tCreation Mode")
def attach_task_parser(self, task_parser: TaskParserBase):
self.task_parse... | 33 | 73 | 0.741627 | 72 | 627 | 6.277778 | 0.5 | 0.088496 | 0.061947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180223 | 627 | 19 | 73 | 33 | 0.879377 | 0 | 0 | 0 | 0 | 0 | 0.124204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0.142857 | 0.142857 | 0.785714 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
67ce7a5f52615ea78f8b9e3c6a447247811aa35e | 242 | py | Python | Lang/Python/py_base/05_function2.py | Orig5826/Basics | 582e74c83a2b654640fe7c47a1a385a8913cc466 | [
"MIT"
] | 5 | 2018-03-09T13:51:11.000Z | 2021-12-17T02:05:59.000Z | Lang/Python/py_base/05_function2.py | Orig5826/Basics | 582e74c83a2b654640fe7c47a1a385a8913cc466 | [
"MIT"
] | null | null | null | Lang/Python/py_base/05_function2.py | Orig5826/Basics | 582e74c83a2b654640fe7c47a1a385a8913cc466 | [
"MIT"
] | null | null | null |
"""
python 是顺序执行的
若遇到函数,则将函数添加到属性中,暂不调用。
等到实际执行的时候,才会寻找函数来调用。
其中,dir()函数的作用是:返回当前范围内的变量、方法和定义的类型列表
举例如下
"""
def test():
print('222')
fun()
print(dir())
# test() # 若在此处调用,则会在打印完222之后报错
def fun():
print('111')
print(dir())
test()
| 11.52381 | 37 | 0.657025 | 30 | 242 | 5.3 | 0.7 | 0.100629 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043689 | 0.14876 | 242 | 20 | 38 | 12.1 | 0.728155 | 0.533058 | 0 | 0.25 | 0 | 0 | 0.061224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0 | 0 | 0.25 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
67e83fbbe118f07f95bf58704d1c509be39876e0 | 914 | py | Python | twisted/plugins/yapper_plugin.py | progrium/yapper | 310e5ecbd33d76c8630fd7b82ade3606e70015f5 | [
"MIT"
] | 2 | 2015-11-04T10:32:56.000Z | 2019-04-16T09:07:54.000Z | twisted/plugins/yapper_plugin.py | progrium/yapper | 310e5ecbd33d76c8630fd7b82ade3606e70015f5 | [
"MIT"
] | null | null | null | twisted/plugins/yapper_plugin.py | progrium/yapper | 310e5ecbd33d76c8630fd7b82ade3606e70015f5 | [
"MIT"
] | null | null | null | from zope.interface import implements
from twisted.python import usage
from twisted.plugin import IPlugin
from twisted.application.service import IServiceMaker
from twisted.application import internet
from yapper.core import YapperFactory
class Options(usage.Options):
optParameters = [["jid", "j", None, "The JID... | 31.517241 | 108 | 0.681619 | 103 | 914 | 6.048544 | 0.514563 | 0.070626 | 0.05297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005556 | 0.212254 | 914 | 28 | 109 | 32.642857 | 0.859722 | 0.063457 | 0 | 0 | 0 | 0 | 0.169471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.111111 | 0.333333 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
67ebed97c8032bc388be997f362c5eb161315916 | 588 | py | Python | docs/conf.py | jonashaag/karellen-kombu-ext | edabd7e17b5565d9d4c1861c35bc9d6852a0a061 | [
"Apache-2.0"
] | 6 | 2017-01-27T22:13:22.000Z | 2017-11-23T17:22:46.000Z | docs/conf.py | jonashaag/karellen-kombu-ext | edabd7e17b5565d9d4c1861c35bc9d6852a0a061 | [
"Apache-2.0"
] | 7 | 2016-12-19T03:53:22.000Z | 2018-09-24T14:29:12.000Z | docs/conf.py | jonashaag/karellen-kombu-ext | edabd7e17b5565d9d4c1861c35bc9d6852a0a061 | [
"Apache-2.0"
] | 4 | 2016-12-17T05:07:14.000Z | 2018-02-20T10:49:38.000Z | # Automatically generated by PyB
import sys
from os import path
sphinx_pyb_dir = path.abspath(path.join(path.dirname(__file__) if __file__ else ".", "../target/sphinx_pyb"))
sphinx_pyb_module = "sphinx_pyb_conf"
sphinx_pyb_module_file = path.abspath(path.join(sphinx_pyb_dir, sphinx_pyb_module + ".py"))
sys.path.inser... | 34.588235 | 109 | 0.790816 | 93 | 588 | 4.655914 | 0.451613 | 0.228637 | 0.17321 | 0.13164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001923 | 0.115646 | 588 | 16 | 110 | 36.75 | 0.830769 | 0.17517 | 0 | 0 | 1 | 0 | 0.170124 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
67f1b574b8a7c3b975e40c25a616e502b015aa61 | 382 | py | Python | moodle/core/blog/view_entry.py | Hardikris/moodlepy | 8f5cb0cb4c2297e10f48396de681f6bb250f7751 | [
"MIT"
] | null | null | null | moodle/core/blog/view_entry.py | Hardikris/moodlepy | 8f5cb0cb4c2297e10f48396de681f6bb250f7751 | [
"MIT"
] | null | null | null | moodle/core/blog/view_entry.py | Hardikris/moodlepy | 8f5cb0cb4c2297e10f48396de681f6bb250f7751 | [
"MIT"
] | null | null | null | from typing import List
from moodle import MoodleWarning
from moodle.attr import dataclass, field
@dataclass
class ViewEntry:
"""the blog_entries_viewed event.
Constructor arguments:
params: status (bool): status: true if success
params: warnings (List[Warning]): list of warnings
"""
status:... | 22.470588 | 55 | 0.727749 | 46 | 382 | 6 | 0.608696 | 0.072464 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191099 | 382 | 16 | 56 | 23.875 | 0.893204 | 0.395288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
db23c7ee9e7e6148bc6af518f79170573258ab4f | 5,575 | py | Python | backend/api/tests/test_feed_views.py | stasfilin/rss_portal | e6e9f8d254c80c8a7a40901b3b7dab059f259d55 | [
"MIT"
] | null | null | null | backend/api/tests/test_feed_views.py | stasfilin/rss_portal | e6e9f8d254c80c8a7a40901b3b7dab059f259d55 | [
"MIT"
] | null | null | null | backend/api/tests/test_feed_views.py | stasfilin/rss_portal | e6e9f8d254c80c8a7a40901b3b7dab059f259d55 | [
"MIT"
] | null | null | null | import json
import os
from unittest import mock
import feedparser
from rest_framework import status
from utils.testcase import TestCase
class FeedTests(TestCase):
"""
Feed API Test Case
"""
url = "/api/feed/"
def test_list_view(self):
"""
Test API request for getting all feeds
... | 34.627329 | 85 | 0.643587 | 700 | 5,575 | 4.94 | 0.161429 | 0.066512 | 0.113071 | 0.083864 | 0.759109 | 0.728456 | 0.704164 | 0.686813 | 0.650665 | 0.618855 | 0 | 0.007496 | 0.23426 | 5,575 | 160 | 86 | 34.84375 | 0.80253 | 0.071928 | 0 | 0.531915 | 0 | 0 | 0.076146 | 0 | 0 | 0 | 0 | 0 | 0.234043 | 1 | 0.085106 | false | 0 | 0.06383 | 0 | 0.191489 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 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 | 3 |
db31a7cdb2e11d72713dbee401a15752c7f9ae55 | 1,593 | py | Python | setup.py | rubel75/aiida-wien2k | 255c4aa72a6d503b72b502371758605242b0a673 | [
"MIT"
] | 1 | 2022-03-19T00:08:35.000Z | 2022-03-19T00:08:35.000Z | setup.py | rubel75/aiida-wien2k | 255c4aa72a6d503b72b502371758605242b0a673 | [
"MIT"
] | null | null | null | setup.py | rubel75/aiida-wien2k | 255c4aa72a6d503b72b502371758605242b0a673 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='aiida-wien2k',
packages=['aiida_wien2k'],
entry_points={
'aiida.calculations': ["wien2k-x-sgroup = aiida_wien2k.calculations.x_sgroup:Wien2kXSgroup",
"wien2k-init_lapw = aiida_wien2k.calculations.init_lapw:Wien2kInitLapw",
... | 69.26087 | 133 | 0.650345 | 144 | 1,593 | 6.944444 | 0.284722 | 0.176 | 0.138 | 0.12 | 0.06 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059714 | 0.25361 | 1,593 | 22 | 134 | 72.409091 | 0.781329 | 0 | 0 | 0 | 0 | 0 | 0.684871 | 0.501569 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.047619 | 0 | 0.047619 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
db3537c5cc80cb81acd6521bfc51bb7be948800a | 155 | py | Python | opencity/__init__.py | birkealine/konstanz-open-data-api | 5e7267020dd7db7592e1738d23f83990f9a92424 | [
"MIT"
] | 3 | 2021-06-14T09:02:25.000Z | 2021-07-19T18:14:12.000Z | opencity/__init__.py | birkealine/konstanz-open-data-api | 5e7267020dd7db7592e1738d23f83990f9a92424 | [
"MIT"
] | 19 | 2021-07-01T15:35:19.000Z | 2022-03-10T08:46:40.000Z | opencity/__init__.py | birkealine/konstanz-open-data-api | 5e7267020dd7db7592e1738d23f83990f9a92424 | [
"MIT"
] | 2 | 2021-07-28T19:21:33.000Z | 2022-03-06T07:56:24.000Z | import os
version_path = os.path.join(os.path.dirname(__file__), "VERSION")
with open(version_path) as f:
line = f.readline()
__version__ = line
| 19.375 | 65 | 0.703226 | 23 | 155 | 4.304348 | 0.565217 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167742 | 155 | 7 | 66 | 22.142857 | 0.767442 | 0 | 0 | 0 | 0 | 0 | 0.045161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 1 | 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 | 3 |
e1d5ff6226ad23bc2822cbfd030bdfb8d7358bd7 | 1,785 | py | Python | notebook/scipy_sparse_method.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 174 | 2018-05-30T21:14:50.000Z | 2022-03-25T07:59:37.000Z | notebook/scipy_sparse_method.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 5 | 2019-08-10T03:22:02.000Z | 2021-07-12T20:31:17.000Z | notebook/scipy_sparse_method.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 53 | 2018-04-27T05:26:35.000Z | 2022-03-25T07:59:37.000Z | import numpy as np
from scipy.sparse import csr_matrix, lil_matrix
l = [[0, 1, 2],
[3, 0, 4],
[0, 0, 0]]
csr = csr_matrix(l)
lil = lil_matrix(l)
print(csr.sum())
# 10
print(csr.mean())
# 1.111111111111111
print(csr.max())
# 4
print(csr.min())
# 0
# print(lil.max())
# AttributeError: max not found
prin... | 14.875 | 47 | 0.47507 | 294 | 1,785 | 2.829932 | 0.197279 | 0.043269 | 0.021635 | 0.038462 | 0.230769 | 0.15625 | 0.132212 | 0.132212 | 0.132212 | 0.082933 | 0 | 0.215272 | 0.310364 | 1,785 | 119 | 48 | 15 | 0.460601 | 0.506443 | 0 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.051282 | 0 | 0.051282 | 0.615385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 3 |
e1e3e6018e623714813b9d7754241a751bf3e6f8 | 142 | py | Python | project/api/urls.py | blazaid/seymour | 5f9f2b3a2804381410e2a3a43345dac401f0c50c | [
"MIT"
] | null | null | null | project/api/urls.py | blazaid/seymour | 5f9f2b3a2804381410e2a3a43345dac401f0c50c | [
"MIT"
] | null | null | null | project/api/urls.py | blazaid/seymour | 5f9f2b3a2804381410e2a3a43345dac401f0c50c | [
"MIT"
] | null | null | null | from django.conf.urls import url
from .views import StatusView
urlpatterns = [
url('^status/$', StatusView.as_view(), name='status'),
]
| 17.75 | 58 | 0.697183 | 18 | 142 | 5.444444 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147887 | 142 | 7 | 59 | 20.285714 | 0.809917 | 0 | 0 | 0 | 0 | 0 | 0.105634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
e1e6e00ef63858f5fc355319ed10a772f2c07274 | 4,052 | py | Python | microarchiver/ui/__init__.py | caltechlibrary/pubarchiver | 5dded0a68cef69c59a9e0b65cddbaad33434ceba | [
"BSD-3-Clause"
] | 1 | 2019-10-10T19:59:25.000Z | 2019-10-10T19:59:25.000Z | microarchiver/ui/__init__.py | caltechlibrary/microarchiver | 5dded0a68cef69c59a9e0b65cddbaad33434ceba | [
"BSD-3-Clause"
] | 6 | 2019-10-07T04:09:45.000Z | 2021-04-17T00:49:09.000Z | microarchiver/ui/__init__.py | caltechlibrary/pubarchiver | 5dded0a68cef69c59a9e0b65cddbaad33434ceba | [
"BSD-3-Clause"
] | null | null | null | '''
ui: user interface
Authors
-------
Michael Hucka <mhucka@caltech.edu> -- Caltech Library
Copyright
---------
Copyright (c) 2019-2020 by the California Institute of Technology. This code
is open-source software released under a 3-clause BSD license. Please see the
file "LICENSE" for more information.
'''
from... | 32.943089 | 79 | 0.657206 | 573 | 4,052 | 4.586387 | 0.354276 | 0.026636 | 0.031963 | 0.021309 | 0.12519 | 0.025114 | 0.025114 | 0 | 0 | 0 | 0 | 0.002859 | 0.2231 | 4,052 | 122 | 80 | 33.213115 | 0.831957 | 0.63845 | 0 | 0.25 | 0 | 0 | 0.027735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.055556 | 0.083333 | 0.027778 | 0.527778 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
e1ea12d5f3807a26bbfae1ea7864e1e7a9e6777f | 235 | py | Python | casepro/msg_board/urls.py | rapidpro/ureport-partners | 16e5b95eae36ecbbe8ab2a59f34a2f5fd32ceacd | [
"BSD-3-Clause"
] | null | null | null | casepro/msg_board/urls.py | rapidpro/ureport-partners | 16e5b95eae36ecbbe8ab2a59f34a2f5fd32ceacd | [
"BSD-3-Clause"
] | null | null | null | casepro/msg_board/urls.py | rapidpro/ureport-partners | 16e5b95eae36ecbbe8ab2a59f34a2f5fd32ceacd | [
"BSD-3-Clause"
] | null | null | null | from django.urls import re_path
from .views import CommentCRUDL, MessageBoardView
urlpatterns = CommentCRUDL().as_urlpatterns()
urlpatterns += [re_path(r"^messageboard/$", MessageBoardView.as_view(), name="msg_board.comment_list")]
| 29.375 | 103 | 0.791489 | 28 | 235 | 6.428571 | 0.678571 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 235 | 7 | 104 | 33.571429 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0.157447 | 0.093617 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
e1f406a8b298701ebfd6bc3e14bbed7eb1d8514c | 137 | py | Python | 06/06_P14.py | endowp/Python101 | 9c29387f4ed53d10579613ecf5153b71abf7ccd7 | [
"MIT"
] | null | null | null | 06/06_P14.py | endowp/Python101 | 9c29387f4ed53d10579613ecf5153b71abf7ccd7 | [
"MIT"
] | null | null | null | 06/06_P14.py | endowp/Python101 | 9c29387f4ed53d10579613ecf5153b71abf7ccd7 | [
"MIT"
] | null | null | null | list=input().split()
re=[int(e) for e in input().split()]
new=[]
for i in re:
new.append(list[i])
for l in new:
print(l,end=" ")
| 17.125 | 36 | 0.576642 | 27 | 137 | 2.925926 | 0.518519 | 0.253165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189781 | 137 | 7 | 37 | 19.571429 | 0.711712 | 0 | 0 | 0 | 0 | 0 | 0.007299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | 0 | null | 1 | 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 | 3 |
c020a0fcad6fc75fcba922ddf3fe17e44ee2e643 | 805 | py | Python | bdpy/distcomp/distcomp.py | miyosuda/bdpy | c455504d8059e911c09b602fbbb9f01452a1ee1a | [
"MIT"
] | null | null | null | bdpy/distcomp/distcomp.py | miyosuda/bdpy | c455504d8059e911c09b602fbbb9f01452a1ee1a | [
"MIT"
] | null | null | null | bdpy/distcomp/distcomp.py | miyosuda/bdpy | c455504d8059e911c09b602fbbb9f01452a1ee1a | [
"MIT"
] | null | null | null | '''Distributed computation module
This file is a part of BdPy.
'''
__all__ = ['DistComp']
import os
class DistComp(object):
'''Distributed computation class'''
def __init__(self, comp_id=None, lockdir='tmp'):
self.lockdir = lockdir
self.comp_id = comp_id
self.lockfile = self.__... | 18.72093 | 91 | 0.593789 | 99 | 805 | 4.636364 | 0.434343 | 0.091503 | 0.108932 | 0.061002 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29441 | 805 | 42 | 92 | 19.166667 | 0.808099 | 0.144099 | 0 | 0 | 0 | 0 | 0.025298 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0.052632 | 0.052632 | 0 | 0.526316 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
c028105076c192d7a5b86b3dcbfd0f5832e4cf06 | 5,645 | py | Python | blitzortung/geom.py | wuan/bo-python | 86c90e437ff456092bf7c9eff8c85daffdd220f0 | [
"Apache-2.0"
] | 3 | 2015-04-09T22:33:59.000Z | 2019-02-12T12:52:16.000Z | blitzortung/geom.py | wuan/bo-python | 86c90e437ff456092bf7c9eff8c85daffdd220f0 | [
"Apache-2.0"
] | 7 | 2015-05-23T13:38:14.000Z | 2019-12-13T20:43:12.000Z | blitzortung/geom.py | wuan/bo-python | 86c90e437ff456092bf7c9eff8c85daffdd220f0 | [
"Apache-2.0"
] | 4 | 2015-12-13T12:40:40.000Z | 2021-07-09T10:48:16.000Z | # -*- coding: utf8 -*-
"""
Copyright 2014-2020 Andreas Würl
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 ap... | 29.401042 | 113 | 0.617538 | 846 | 5,645 | 3.776596 | 0.182033 | 0.045383 | 0.027543 | 0.018779 | 0.281377 | 0.141471 | 0.053521 | 0.041002 | 0.024413 | 0.016901 | 0 | 0.011847 | 0.267316 | 5,645 | 191 | 114 | 29.554974 | 0.760638 | 0.122055 | 0 | 0.115044 | 0 | 0.00885 | 0.053032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212389 | false | 0.00885 | 0.035398 | 0.123894 | 0.513274 | 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 | 1 | 1 | 0 | 0 | 3 |
c0301ef5f4872699545bc97a859b2695447e10f9 | 4,316 | py | Python | books/booksdatasourcetests.py | jakemartens/cs257 | 379cdd897013f2c94f489f03522374a229dc62fa | [
"MIT"
] | null | null | null | books/booksdatasourcetests.py | jakemartens/cs257 | 379cdd897013f2c94f489f03522374a229dc62fa | [
"MIT"
] | null | null | null | books/booksdatasourcetests.py | jakemartens/cs257 | 379cdd897013f2c94f489f03522374a229dc62fa | [
"MIT"
] | null | null | null | #Chris Melville and Jake Martens
'''
booksdatasourcetest.py
Jeff Ondich, 24 September 2021
'''
import booksdatasource
import unittest
class BooksDataSourceTester(unittest.TestCase):
def setUp(self):
self.data_source_long = booksdatasource.BooksDataSource('books1.csv')
self.data_source_short ... | 41.104762 | 102 | 0.666358 | 559 | 4,316 | 4.923077 | 0.182469 | 0.203488 | 0.124273 | 0.069041 | 0.68859 | 0.661337 | 0.633358 | 0.53125 | 0.442224 | 0.380451 | 0 | 0.018433 | 0.195551 | 4,316 | 104 | 103 | 41.5 | 0.774194 | 0.019694 | 0 | 0.2625 | 0 | 0 | 0.117145 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.2125 | false | 0.0125 | 0.025 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c0428970d6ab1a6ecfd4012c15e5e342ad4c5a24 | 631 | py | Python | src/pkgcore/repository/syncable.py | mgorny/pkgcore | ab4a718aa1626f4edeb385383f5595a1e262b0dc | [
"BSD-3-Clause"
] | null | null | null | src/pkgcore/repository/syncable.py | mgorny/pkgcore | ab4a718aa1626f4edeb385383f5595a1e262b0dc | [
"BSD-3-Clause"
] | null | null | null | src/pkgcore/repository/syncable.py | mgorny/pkgcore | ab4a718aa1626f4edeb385383f5595a1e262b0dc | [
"BSD-3-Clause"
] | null | null | null | # Copyright: 2006-2011 Brian Harring <ferringb@gmail.com>
# License: GPL2/BSD
__all__ = ("tree",)
from pkgcore.operations.repo import sync_operations
class tree(object):
operations_kls = sync_operations
def __init__(self, sync=None):
object.__setattr__(self, '_syncer', sync)
@property
def... | 22.535714 | 57 | 0.679873 | 78 | 631 | 5.205128 | 0.474359 | 0.096059 | 0.054187 | 0.068966 | 0.108374 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018 | 0.207607 | 631 | 27 | 58 | 23.37037 | 0.794 | 0.255151 | 0 | 0 | 0 | 0 | 0.024017 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0 | 0.076923 | 0.153846 | 0.769231 | 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 | 1 | 1 | 0 | 0 | 3 |
c0610254b9dd12af31650f166698144b24850df1 | 179 | py | Python | math/medium/minOperations.py | linminhtoo/algorithms | 884422a7c9f531e7ccaae03ba1ccbd6966b23dd3 | [
"MIT"
] | null | null | null | math/medium/minOperations.py | linminhtoo/algorithms | 884422a7c9f531e7ccaae03ba1ccbd6966b23dd3 | [
"MIT"
] | null | null | null | math/medium/minOperations.py | linminhtoo/algorithms | 884422a7c9f531e7ccaae03ba1ccbd6966b23dd3 | [
"MIT"
] | null | null | null | class Solution:
def minOperations(self, n: int) -> int:
num_ops = 0
for i in range(0, n // 2, 1):
num_ops += n - (2 * i + 1)
return num_ops | 29.833333 | 43 | 0.486034 | 28 | 179 | 3 | 0.607143 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054545 | 0.385475 | 179 | 6 | 44 | 29.833333 | 0.709091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 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 | 3 |
c0683e4499d65da1c6d34e5143cbba020baca2cb | 68 | py | Python | programming-laboratory-I/3hmr/metros_km.py | MisaelAugusto/computer-science | d21335a2dc824b54ffe828370f0e6717fd0c7c27 | [
"MIT"
] | null | null | null | programming-laboratory-I/3hmr/metros_km.py | MisaelAugusto/computer-science | d21335a2dc824b54ffe828370f0e6717fd0c7c27 | [
"MIT"
] | null | null | null | programming-laboratory-I/3hmr/metros_km.py | MisaelAugusto/computer-science | d21335a2dc824b54ffe828370f0e6717fd0c7c27 | [
"MIT"
] | null | null | null | M = int(raw_input())
K = M / 1000.0
print "%i m = %.2f km" %(M, K)
| 17 | 30 | 0.485294 | 15 | 68 | 2.133333 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 0.25 | 68 | 3 | 31 | 22.666667 | 0.509804 | 0 | 0 | 0 | 0 | 0 | 0.205882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c06a855d6873844b893d2badc936a0084d00fd8d | 3,974 | py | Python | env/lib/python3.8/site-packages/unidecode/x1d6.py | avdhari/enigma | b7e965a91ca5f0e929c4c719d695f15ccb8b5a2c | [
"MIT"
] | 48 | 2021-11-20T08:17:53.000Z | 2022-03-19T13:57:15.000Z | venv/lib/python3.6/site-packages/unidecode/x1d6.py | mrsaicharan1/iiita-updates | a22a0157b90d29b946d0f020e5f76744f73a6bff | [
"Apache-2.0"
] | 392 | 2015-07-30T14:37:05.000Z | 2022-03-21T16:56:09.000Z | venv/lib/python3.6/site-packages/unidecode/x1d6.py | mrsaicharan1/iiita-updates | a22a0157b90d29b946d0f020e5f76744f73a6bff | [
"Apache-2.0"
] | 15 | 2015-10-01T21:31:08.000Z | 2020-05-05T00:03:27.000Z | data = (
's', # 0x00
't', # 0x01
'u', # 0x02
'v', # 0x03
'w', # 0x04
'x', # 0x05
'y', # 0x06
'z', # 0x07
'A', # 0x08
'B', # 0x09
'C', # 0x0a
'D', # 0x0b
'E', # 0x0c
'F', # 0x0d
'G', # 0x0e
'H', # 0x0f
'I', # 0x10
'J', # 0x11
'K', # 0x12
'L', # 0x13
'M', # 0... | 15.343629 | 20 | 0.354051 | 474 | 3,974 | 2.968354 | 0.651899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236647 | 0.387519 | 3,974 | 258 | 21 | 15.403101 | 0.341413 | 0.321842 | 0 | 0.810078 | 0 | 0 | 0.155455 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fbe25580b6e1353e7dd5c265d28dec97b2f2893e | 215 | py | Python | mayan/apps/folders/menus.py | nadwiabd/insight_edms | 90a09d7ca77cb111c791e307b55a603e82042dfe | [
"Apache-2.0"
] | null | null | null | mayan/apps/folders/menus.py | nadwiabd/insight_edms | 90a09d7ca77cb111c791e307b55a603e82042dfe | [
"Apache-2.0"
] | null | null | null | mayan/apps/folders/menus.py | nadwiabd/insight_edms | 90a09d7ca77cb111c791e307b55a603e82042dfe | [
"Apache-2.0"
] | null | null | null | from __future__ import unicode_literals
from django.utils.translation import ugettext_lazy as _
from navigation import Menu
menu_folders = Menu(
icon='fa fa-folder', label=_('Folders'), name='folders menu'
)
| 21.5 | 64 | 0.772093 | 29 | 215 | 5.413793 | 0.655172 | 0.140127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139535 | 215 | 9 | 65 | 23.888889 | 0.848649 | 0 | 0 | 0 | 0 | 0 | 0.144186 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
fbfa7d72689adf33bc0a61fd028ba64af9492be3 | 1,734 | py | Python | sahara_plugins/plugins/mapr/util/service_utils.py | tellesnobrega/sahara-plugins | 53deddbeb5d91b50045a7e9065b7810b6bea8f39 | [
"Apache-2.0"
] | null | null | null | sahara_plugins/plugins/mapr/util/service_utils.py | tellesnobrega/sahara-plugins | 53deddbeb5d91b50045a7e9065b7810b6bea8f39 | [
"Apache-2.0"
] | null | null | null | sahara_plugins/plugins/mapr/util/service_utils.py | tellesnobrega/sahara-plugins | 53deddbeb5d91b50045a7e9065b7810b6bea8f39 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2015, MapR Technologies
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 33.346154 | 77 | 0.760669 | 246 | 1,734 | 5.162602 | 0.418699 | 0.18189 | 0.047244 | 0.072441 | 0.185827 | 0.185827 | 0.064567 | 0.064567 | 0 | 0 | 0 | 0.007008 | 0.177047 | 1,734 | 51 | 78 | 34 | 0.882971 | 0.356978 | 0 | 0.090909 | 0 | 0 | 0.021838 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.136364 | 0.136364 | 0.636364 | 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 | 1 | 1 | 0 | 0 | 3 |
2202e4f609b530218336410c393a2d722692072e | 106 | py | Python | app/__init__.py | afrigon/fastapi-template | cb3c86353c67ef19c5abe12658e327ff37b14f90 | [
"MIT"
] | 2 | 2020-03-05T20:34:09.000Z | 2020-04-19T02:33:53.000Z | app/__init__.py | afrigon/fastapi-template | cb3c86353c67ef19c5abe12658e327ff37b14f90 | [
"MIT"
] | 2 | 2019-12-17T18:49:29.000Z | 2019-12-17T23:19:11.000Z | app/__init__.py | afrigon/fastapi-template | cb3c86353c67ef19c5abe12658e327ff37b14f90 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
__version__ = "0.1.0"
from .application import ApplicationFactory # noqa: F401
| 17.666667 | 57 | 0.669811 | 13 | 106 | 5.153846 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079545 | 0.169811 | 106 | 5 | 58 | 21.2 | 0.681818 | 0.301887 | 0 | 0 | 0 | 0 | 0.070423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
2225b19a6c87f7fd2f2456bdca99fcad68a9203d | 393 | py | Python | testSHT30.py | tim-oe/SDL_Pi_SHT30 | 54be6906897bdbe48ac50f8d58e1fbacaff2875b | [
"MIT"
] | null | null | null | testSHT30.py | tim-oe/SDL_Pi_SHT30 | 54be6906897bdbe48ac50f8d58e1fbacaff2875b | [
"MIT"
] | null | null | null | testSHT30.py | tim-oe/SDL_Pi_SHT30 | 54be6906897bdbe48ac50f8d58e1fbacaff2875b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import SHT30
thsen = SHT30.SHT30(powerpin=6)
while 1:
print("T ", thsen.read_temperature())
print("H ", thsen.read_humidity())
print("H,T ", thsen.read_humidity_temperature())
print("H,T,C ", thsen.read_humidity_temperature_crc())
h, t, cH, cT = thsen.read_humidity_tempe... | 26.2 | 58 | 0.656489 | 58 | 393 | 4.275862 | 0.431034 | 0.181452 | 0.274194 | 0.33871 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043077 | 0.173028 | 393 | 14 | 59 | 28.071429 | 0.72 | 0.050891 | 0 | 0 | 0 | 0 | 0.107527 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.6 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 3 |
2225dac7c2c079c3b7980bfe026af5b78ea865c3 | 1,182 | py | Python | Pro/FileSysterm/Test.py | Angold-4/Angold-4 | 14ce47b752d754bed279daacf88e586cf39222b4 | [
"MIT"
] | null | null | null | Pro/FileSysterm/Test.py | Angold-4/Angold-4 | 14ce47b752d754bed279daacf88e586cf39222b4 | [
"MIT"
] | null | null | null | Pro/FileSysterm/Test.py | Angold-4/Angold-4 | 14ce47b752d754bed279daacf88e586cf39222b4 | [
"MIT"
] | null | null | null | from FileSysterm import File
def Test():
print("Check __init__ ...")
_file = File('PCreditCard.py', '/Users/Angold4/WorkSpace/algorithms_in_python/Chapters/Chapter_2')
print("Finished")
print('')
print("Check get_filename() and get_filepath() ...")
_name = _file.get_filename()
_path = _fi... | 22.301887 | 102 | 0.601523 | 134 | 1,182 | 4.977612 | 0.291045 | 0.11994 | 0.215892 | 0.241379 | 0.34033 | 0.34033 | 0.101949 | 0 | 0 | 0 | 0 | 0.002134 | 0.207276 | 1,182 | 52 | 103 | 22.730769 | 0.709712 | 0 | 0 | 0.365854 | 0 | 0 | 0.326565 | 0.054146 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.02439 | 0 | 0.04878 | 0.780488 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 3 |
222bc40f18991f06f0ba69774807bc17db1e0d63 | 148 | py | Python | src/hurnado/app/handler/resource.py | guyuecanhui/hurnado | fc54eed8ebd70768ce6e1f1073e506d365bb5b8d | [
"Apache-2.0"
] | null | null | null | src/hurnado/app/handler/resource.py | guyuecanhui/hurnado | fc54eed8ebd70768ce6e1f1073e506d365bb5b8d | [
"Apache-2.0"
] | null | null | null | src/hurnado/app/handler/resource.py | guyuecanhui/hurnado | fc54eed8ebd70768ce6e1f1073e506d365bb5b8d | [
"Apache-2.0"
] | null | null | null | # coding:utf-8
__author__ = 'cheng.hu'
from base import BaseHandler
class QueryUserHandler(BaseHandler):
def get(self):
print "list"
| 14.8 | 36 | 0.695946 | 18 | 148 | 5.5 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008475 | 0.202703 | 148 | 9 | 37 | 16.444444 | 0.830508 | 0.081081 | 0 | 0 | 0 | 0 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.2 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
224bc5b887ffb60eb8db906d4ed354113ef4faca | 324 | py | Python | users/models.py | MECKEM-COV-19/backend | c0686f32f98b3acd5dc028d8a054089694654a07 | [
"MIT"
] | null | null | null | users/models.py | MECKEM-COV-19/backend | c0686f32f98b3acd5dc028d8a054089694654a07 | [
"MIT"
] | 4 | 2020-03-22T12:27:45.000Z | 2021-06-10T22:44:00.000Z | users/models.py | MECKEM-COV-19/backend | c0686f32f98b3acd5dc028d8a054089694654a07 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import AbstractUser
import uuid
class CustomUser(AbstractUser):
patientId = models.UUIDField(primary_key=True, default=uuid.uuid4,editable=False)
zipCode = models.CharField(max_length=10,null=True)
numberOfFlatmates = models.IntegerField(null=Tr... | 32.4 | 85 | 0.799383 | 41 | 324 | 6.268293 | 0.682927 | 0.077821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010417 | 0.111111 | 324 | 9 | 86 | 36 | 0.881944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
225492585c9e8ca899199c0a3f884d495798806c | 406 | py | Python | procedure_evaluation/angr_tests.py | unkown512/SimProceduresDB | 922e32c4ab7391f197e3ce875c223aa9953d393a | [
"BSD-2-Clause"
] | 1 | 2021-07-10T16:12:10.000Z | 2021-07-10T16:12:10.000Z | procedure_evaluation/angr_tests.py | unkown512/SimProceduresDB | 922e32c4ab7391f197e3ce875c223aa9953d393a | [
"BSD-2-Clause"
] | null | null | null | procedure_evaluation/angr_tests.py | unkown512/SimProceduresDB | 922e32c4ab7391f197e3ce875c223aa9953d393a | [
"BSD-2-Clause"
] | null | null | null | import angr
import claripy
import sys
'''
Step through default programs in tests directory based on sys.argv[1]
1) strncmp
2) strstr
3) scanf
4) toy1
'''
def strncmp():
pass
def strstr():
pass
def scanf():
pass
def toy1():
pass
if __name__ == "__main__":
if(... | 14 | 73 | 0.578818 | 55 | 406 | 4.109091 | 0.618182 | 0.09292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035587 | 0.307882 | 406 | 28 | 74 | 14.5 | 0.768683 | 0 | 0 | 0.333333 | 0 | 0 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | true | 0.333333 | 0.2 | 0 | 0.466667 | 0.066667 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
2270bb322d9ae601b61b371522a9939d4455cf4a | 202 | py | Python | oms_cms/backend/news/forms.py | Hamel007/oms_cms | a120b27932fe1bd89f2c621c181b80b19caba0e0 | [
"BSD-3-Clause"
] | null | null | null | oms_cms/backend/news/forms.py | Hamel007/oms_cms | a120b27932fe1bd89f2c621c181b80b19caba0e0 | [
"BSD-3-Clause"
] | null | null | null | oms_cms/backend/news/forms.py | Hamel007/oms_cms | a120b27932fe1bd89f2c621c181b80b19caba0e0 | [
"BSD-3-Clause"
] | null | null | null | from django import forms
from .models import Comments
class CommentsForm(forms.ModelForm):
"""Форма добавления комментария"""
class Meta:
model = Comments
fields = ("text", )
| 18.363636 | 38 | 0.663366 | 21 | 202 | 6.380952 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242574 | 202 | 10 | 39 | 20.2 | 0.875817 | 0.138614 | 0 | 0 | 0 | 0 | 0.02381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
227239b242d3b8105035500c48f6372b923b6346 | 258 | py | Python | ytvideo/admin.py | LSM2016/Bilibili- | 21ab048d18c790b531cddb63129ef41a0ffecb4d | [
"MIT"
] | 1 | 2021-03-18T05:55:33.000Z | 2021-03-18T05:55:33.000Z | ytvideo/admin.py | LSM2016/Bilibili- | 21ab048d18c790b531cddb63129ef41a0ffecb4d | [
"MIT"
] | null | null | null | ytvideo/admin.py | LSM2016/Bilibili- | 21ab048d18c790b531cddb63129ef41a0ffecb4d | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import *
# Register your models here.
@admin.register(Comment)
class CommentAdmin(admin.ModelAdmin):
list_display = ('oid', 'rpid', 'mid', 'username', 'ctime', 'content')
search_fields = ('oid', 'mid')
| 25.8 | 73 | 0.693798 | 31 | 258 | 5.709677 | 0.741935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147287 | 258 | 9 | 74 | 28.666667 | 0.804545 | 0.100775 | 0 | 0 | 0 | 0 | 0.156522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.833333 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
3f22956d369732e05266ec7e162992e6ffe1a2c3 | 2,627 | py | Python | main/train.py | driftingawaynow/Pleiades | c0912e9ab73014a798c394d66ea486f9de6a3f49 | [
"CC-BY-3.0",
"MIT"
] | null | null | null | main/train.py | driftingawaynow/Pleiades | c0912e9ab73014a798c394d66ea486f9de6a3f49 | [
"CC-BY-3.0",
"MIT"
] | null | null | null | main/train.py | driftingawaynow/Pleiades | c0912e9ab73014a798c394d66ea486f9de6a3f49 | [
"CC-BY-3.0",
"MIT"
] | null | null | null | import os
import tangram
import math
from skyfield.api import Topos, Loader, EarthSatellite
from skyfield.positionlib import position_of_radec
from skyfield.api import load, wgs84
from PleiadesTracker import get_pleiades_pos, final_val, point_arr, point_to_str, earth, ra_hours, dec_degrees
def main():
# Get the pa... | 29.852273 | 145 | 0.730491 | 383 | 2,627 | 4.796345 | 0.336815 | 0.043549 | 0.039194 | 0.043549 | 0.713119 | 0.701143 | 0.701143 | 0.64344 | 0.64344 | 0.64344 | 0 | 0.026126 | 0.15493 | 2,627 | 88 | 146 | 29.852273 | 0.801351 | 0.148839 | 0 | 0.508475 | 0 | 0 | 0.127583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033898 | false | 0 | 0.118644 | 0 | 0.169492 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 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 | 3 |
3f428eac084aba39b71bba92ad7b718f0409a782 | 7,425 | py | Python | onadata/apps/logger/tests/test_simple_submission.py | ubpd/kobocat | 45906e07e8f05c30e3e26bab5570a8ab1ee264db | [
"BSD-2-Clause"
] | null | null | null | onadata/apps/logger/tests/test_simple_submission.py | ubpd/kobocat | 45906e07e8f05c30e3e26bab5570a8ab1ee264db | [
"BSD-2-Clause"
] | null | null | null | onadata/apps/logger/tests/test_simple_submission.py | ubpd/kobocat | 45906e07e8f05c30e3e26bab5570a8ab1ee264db | [
"BSD-2-Clause"
] | null | null | null | # coding: utf-8
from __future__ import unicode_literals, print_function, division, absolute_import
from django.contrib.auth.models import User
from django.test import TestCase, RequestFactory
from pyxform import SurveyElementBuilder
from onadata.apps.logger.xform_instance_parser import DuplicateInstance
from onadata.... | 63.461538 | 3,114 | 0.673131 | 1,227 | 7,425 | 3.98207 | 0.372453 | 0.212444 | 0.20262 | 0.115432 | 0.144904 | 0.095375 | 0.077978 | 0.045641 | 0 | 0 | 0 | 0.085692 | 0.148148 | 7,425 | 116 | 3,115 | 64.008621 | 0.686798 | 0.072997 | 0 | 0.102564 | 0 | 0.064103 | 0.452969 | 0.384627 | 0 | 0 | 0 | 0 | 0.128205 | 1 | 0.141026 | false | 0.038462 | 0.089744 | 0.012821 | 0.269231 | 0.012821 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3f4ee7ae2d968e8fe6a40b398bf0be1d78d69954 | 226 | py | Python | src/sage/version.py | mrejmon/sage | 2c25f07cfd0cbb5cb4a9b57b7bc62ec997039987 | [
"BSL-1.0"
] | 1 | 2021-03-15T21:45:56.000Z | 2021-03-15T21:45:56.000Z | src/sage/version.py | mrejmon/sage | 2c25f07cfd0cbb5cb4a9b57b7bc62ec997039987 | [
"BSL-1.0"
] | null | null | null | src/sage/version.py | mrejmon/sage | 2c25f07cfd0cbb5cb4a9b57b7bc62ec997039987 | [
"BSL-1.0"
] | null | null | null | # Sage version information for Python scripts
# This file is auto-generated by the sage-update-version script, do not edit!
version = '9.3.rc0'
date = '2021-03-23'
banner = 'SageMath version 9.3.rc0, Release Date: 2021-03-23'
| 37.666667 | 77 | 0.738938 | 39 | 226 | 4.282051 | 0.717949 | 0.095808 | 0.107784 | 0.143713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11399 | 0.146018 | 226 | 5 | 78 | 45.2 | 0.751295 | 0.526549 | 0 | 0 | 1 | 0 | 0.644231 | 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 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3f7341ae88070f92b60670bb4e19d50f4e5435fc | 6,504 | py | Python | experiment-fip-2019-2020/plot_data.py | Krystian95/TLGProb | 5af272e0232d11aa0d8e483adf0bcba098ed0ef0 | [
"MIT"
] | 2 | 2018-10-02T01:20:27.000Z | 2020-05-19T20:30:56.000Z | experiment-fip-2019-2020/plot_data.py | Krystian95/TLGProb | 5af272e0232d11aa0d8e483adf0bcba098ed0ef0 | [
"MIT"
] | null | null | null | experiment-fip-2019-2020/plot_data.py | Krystian95/TLGProb | 5af272e0232d11aa0d8e483adf0bcba098ed0ef0 | [
"MIT"
] | 4 | 2018-10-24T08:46:03.000Z | 2021-11-09T18:46:11.000Z | ################################################################################
# TLGProb: Two-Layer Gaussian Process Regression Model For
# Winning Probability Calculation of Two-Team Sports
# Github: https://github.com/MaxInGaussian/TLGProb
# Author: Max W. Y. Lam (maxingaussian@gmail.com)
#############... | 43.651007 | 111 | 0.64591 | 925 | 6,504 | 4.318919 | 0.175135 | 0.085106 | 0.027034 | 0.030038 | 0.767459 | 0.767459 | 0.750939 | 0.699875 | 0.699875 | 0.699875 | 0 | 0.024301 | 0.202798 | 6,504 | 149 | 112 | 43.651007 | 0.746191 | 0.03321 | 0 | 0.676471 | 0 | 0 | 0.070227 | 0.004083 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.080882 | 0 | 0.110294 | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 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 | 3 |
58b1d1aec9cb6fdbbfbb4e360c7e8c81656b2edf | 2,077 | py | Python | test/record/parser/test_response_whois_denic_de_property_nameservers_with_ip.py | huyphan/pyyawhois | 77fb2f73a9c67989f1d41d98f37037406a69d136 | [
"MIT"
] | null | null | null | test/record/parser/test_response_whois_denic_de_property_nameservers_with_ip.py | huyphan/pyyawhois | 77fb2f73a9c67989f1d41d98f37037406a69d136 | [
"MIT"
] | null | null | null | test/record/parser/test_response_whois_denic_de_property_nameservers_with_ip.py | huyphan/pyyawhois | 77fb2f73a9c67989f1d41d98f37037406a69d136 | [
"MIT"
] | null | null | null |
# This file is autogenerated. Do not edit it manually.
# If you want change the content of this file, edit
#
# spec/fixtures/responses/whois.denic.de/property_nameservers_with_ip
#
# and regenerate the tests with the following script
#
# $ scripts/generate_tests.py
#
from nose.tools import *
from dateutil.parser ... | 44.191489 | 96 | 0.684641 | 276 | 2,077 | 4.858696 | 0.326087 | 0.171514 | 0.344519 | 0.360179 | 0.583893 | 0.500373 | 0.243102 | 0.086503 | 0.086503 | 0.086503 | 0 | 0.037231 | 0.172364 | 2,077 | 46 | 97 | 45.152174 | 0.742874 | 0.12181 | 0 | 0 | 1 | 0 | 0.13348 | 0.039162 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.09375 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 3 |
58d441328e3e9a25c53c9b919dc4086116b617b9 | 8,728 | py | Python | src/third_party/beaengine/tests/0f5a.py | CrackerCat/rp | 5fe693c26d76b514efaedb4084f6e37d820db023 | [
"MIT"
] | 1 | 2022-01-17T17:40:29.000Z | 2022-01-17T17:40:29.000Z | src/third_party/beaengine/tests/0f5a.py | CrackerCat/rp | 5fe693c26d76b514efaedb4084f6e37d820db023 | [
"MIT"
] | null | null | null | src/third_party/beaengine/tests/0f5a.py | CrackerCat/rp | 5fe693c26d76b514efaedb4084f6e37d820db023 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# This program 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 of the License, or
# (at your option) any later version.
#
# This progra... | 40.221198 | 79 | 0.639322 | 1,079 | 8,728 | 5.121409 | 0.15848 | 0.107492 | 0.185668 | 0.156352 | 0.728194 | 0.669562 | 0.625769 | 0.617445 | 0.617445 | 0.608397 | 0 | 0.077254 | 0.227314 | 8,728 | 216 | 80 | 40.407407 | 0.742141 | 0.19489 | 0 | 0.650794 | 0 | 0 | 0.165018 | 0.012043 | 0 | 0 | 0.01147 | 0 | 0.428571 | 1 | 0.007937 | false | 0 | 0.015873 | 0 | 0.031746 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 3 |
58d4e4e81df66971936620ec51c8eafca13ae5a5 | 547 | py | Python | Arrays_and_Strings/4URLify.py | RoKu1/cracking-the-coding-interview | ce2fabba75f1edf69b81a80022eb9ebac8a09af2 | [
"Apache-2.0"
] | null | null | null | Arrays_and_Strings/4URLify.py | RoKu1/cracking-the-coding-interview | ce2fabba75f1edf69b81a80022eb9ebac8a09af2 | [
"Apache-2.0"
] | null | null | null | Arrays_and_Strings/4URLify.py | RoKu1/cracking-the-coding-interview | ce2fabba75f1edf69b81a80022eb9ebac8a09af2 | [
"Apache-2.0"
] | null | null | null | """
URLify: Write a method to replace all spaces in a string with '%20'. You may assume that the string
has sufficient space at the end to hold the additional characters, and that you are given the "true"
length of the string. (Note: If implementing in Java, please use a character array so that you can
perform this ope... | 30.388889 | 100 | 0.725777 | 91 | 547 | 4.32967 | 0.67033 | 0.045685 | 0.081218 | 0.086294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021978 | 0.16819 | 547 | 17 | 101 | 32.176471 | 0.843956 | 0.78245 | 0 | 0 | 0 | 0 | 0.171171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 0.666667 | 0.333333 | 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 | 1 | 1 | 0 | 0 | 3 |
58e8377027a76472e224fb1041b7cb456d1caf68 | 1,579 | py | Python | led_control.py | lip-realmax/Pi_LED_Control | 341ae4eae059e95295b29c33fdc4e5ca6271b70d | [
"MIT"
] | null | null | null | led_control.py | lip-realmax/Pi_LED_Control | 341ae4eae059e95295b29c33fdc4e5ca6271b70d | [
"MIT"
] | null | null | null | led_control.py | lip-realmax/Pi_LED_Control | 341ae4eae059e95295b29c33fdc4e5ca6271b70d | [
"MIT"
] | null | null | null | from gpiozero import LED
from argparse import ArgumentParser
import time
import signal
import sys
def readConfiguration(signalNumber, frame):
#print ('(SIGHUP) reading configuration')
return
def terminateProcess(signalNumber, frame):
# print ('(SIGTERM) terminating the process')
sys.exit()
def receive... | 26.762712 | 101 | 0.753008 | 198 | 1,579 | 5.994949 | 0.388889 | 0.303286 | 0.227464 | 0.339511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0.122229 | 1,579 | 58 | 102 | 27.224138 | 0.84632 | 0.129829 | 0 | 0.139535 | 0 | 0 | 0.056287 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.116279 | 0.023256 | 0.209302 | 0.046512 | 0 | 0 | 0 | null | 1 | 1 | 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 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.