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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
672e9c42d3f2d17647b4b2896d62df2d841f8b01 | 8,084 | py | Python | test_quiz.py | jjberg83/oving_10 | 1b70b1a43d0dfa7316c14a9ad81db7cc07422e01 | [
"MIT"
] | null | null | null | test_quiz.py | jjberg83/oving_10 | 1b70b1a43d0dfa7316c14a9ad81db7cc07422e01 | [
"MIT"
] | null | null | null | test_quiz.py | jjberg83/oving_10 | 1b70b1a43d0dfa7316c14a9ad81db7cc07422e01 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Dec 23 14:12:04 2021
@author: jjberg
"""
import unittest
from quiz import *
class TestMultipleChoice(unittest.TestCase):
def test_answer_check(self):
liste_med_alle_instansene = read_the_document()
# Question 1
self.... | 45.931818 | 134 | 0.679861 | 999 | 8,084 | 5.129129 | 0.139139 | 0.106167 | 0.159251 | 0.291959 | 0.720921 | 0.710773 | 0.710773 | 0.638759 | 0.574746 | 0.300742 | 0 | 0.02983 | 0.199654 | 8,084 | 176 | 135 | 45.931818 | 0.762133 | 0.28043 | 0 | 0.027397 | 0 | 0 | 0.035341 | 0 | 0 | 0 | 0 | 0 | 0.876712 | 1 | 0.027397 | false | 0 | 0.027397 | 0 | 0.068493 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 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 | 4 |
674905efb4cf96cee3c1a694e401c0bc8fa6243d | 3,672 | py | Python | plot_holographic_example.py | ftonolini45/VICI | 7508328b474492edc7479bb41527cbbfd5f43a1d | [
"CC0-1.0"
] | null | null | null | plot_holographic_example.py | ftonolini45/VICI | 7508328b474492edc7479bb41527cbbfd5f43a1d | [
"CC0-1.0"
] | null | null | null | plot_holographic_example.py | ftonolini45/VICI | 7508328b474492edc7479bb41527cbbfd5f43a1d | [
"CC0-1.0"
] | null | null | null | import numpy as np
import scipy.io as sio
import matplotlib.pyplot as plt
# Plot Forward Model Results
n_plots = 3 # number of examples to plot
samp_index = [0,1,2,3]
# Load the test results for the multi-fidelity forward model
results = sio.loadmat('results/holographic_forward_model_examples.mat')
x_exp_... | 26.228571 | 72 | 0.605392 | 613 | 3,672 | 3.435563 | 0.120718 | 0.042735 | 0.057455 | 0.083571 | 0.823362 | 0.802469 | 0.739791 | 0.696581 | 0.696581 | 0.676638 | 0 | 0.052859 | 0.242647 | 3,672 | 140 | 73 | 26.228571 | 0.704423 | 0.061275 | 0 | 0.686275 | 0 | 0 | 0.135978 | 0.027862 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029412 | 0 | 0.029412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 4 |
6760ad5bc199398ac01024e2e42beaa778e34029 | 334 | py | Python | tests/test_plugins.py | asmeurer/nikola | ea1c651bfed0fd6337f1d22cf8dd99899722912c | [
"MIT"
] | null | null | null | tests/test_plugins.py | asmeurer/nikola | ea1c651bfed0fd6337f1d22cf8dd99899722912c | [
"MIT"
] | null | null | null | tests/test_plugins.py | asmeurer/nikola | ea1c651bfed0fd6337f1d22cf8dd99899722912c | [
"MIT"
] | 1 | 2021-07-07T11:32:42.000Z | 2021-07-07T11:32:42.000Z | """
Simple plugin tests.
More advanced tests should be in a separate module.
"""
def test_command_version():
"""Test `nikola version`."""
from nikola.plugins.command.version import CommandVersion
CommandVersion().execute()
def test_importing_plugin_task_galleries():
import nikola.plugins.task.gall... | 19.647059 | 61 | 0.736527 | 40 | 334 | 6 | 0.625 | 0.058333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158683 | 334 | 16 | 62 | 20.875 | 0.854093 | 0.305389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | true | 0 | 0.6 | 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 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
678a299ea29d23227c6e615595693d7197b3f816 | 79 | py | Python | SoftLayer/CLI/cdn/__init__.py | dvzrv/softlayer-python | 9a5f6c6981bcc370084537b4d1769383499ce90d | [
"MIT"
] | 126 | 2015-01-05T05:09:22.000Z | 2021-07-02T00:16:35.000Z | SoftLayer/CLI/cdn/__init__.py | dvzrv/softlayer-python | 9a5f6c6981bcc370084537b4d1769383499ce90d | [
"MIT"
] | 969 | 2015-01-05T15:55:31.000Z | 2022-03-31T19:55:20.000Z | SoftLayer/CLI/cdn/__init__.py | dvzrv/softlayer-python | 9a5f6c6981bcc370084537b4d1769383499ce90d | [
"MIT"
] | 176 | 2015-01-22T11:23:40.000Z | 2022-02-11T13:16:58.000Z | """Content Delivery Network."""
# :license: MIT, see LICENSE for more details.
| 26.333333 | 46 | 0.708861 | 10 | 79 | 5.6 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139241 | 79 | 2 | 47 | 39.5 | 0.823529 | 0.898734 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
67907226614f1b77ed7a73f3d2d69546ddddb58c | 142 | py | Python | tests/conftest.py | vault-the/rigor | 02f5ddb18092a114dc0a23c8fb60975e2b906e85 | [
"MIT"
] | null | null | null | tests/conftest.py | vault-the/rigor | 02f5ddb18092a114dc0a23c8fb60975e2b906e85 | [
"MIT"
] | null | null | null | tests/conftest.py | vault-the/rigor | 02f5ddb18092a114dc0a23c8fb60975e2b906e85 | [
"MIT"
] | null | null | null | import pytest
import rigor
@pytest.fixture(scope="module")
def pytest_runtest_setup(item):
rigor.setup_logging(quiet=False, json=False)
| 17.75 | 48 | 0.78169 | 20 | 142 | 5.4 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105634 | 142 | 7 | 49 | 20.285714 | 0.850394 | 0 | 0 | 0 | 0 | 0 | 0.042254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
67ae604d7b7cc40f5d5a19e5d3d721d826d891c7 | 54 | py | Python | Edabit/Return the Next Number from the Integer Passed/Sol.py | Pandz18/C-Programs | 9d9b47516d3f65d348f9f72b9c0edda8246e9fab | [
"MIT"
] | null | null | null | Edabit/Return the Next Number from the Integer Passed/Sol.py | Pandz18/C-Programs | 9d9b47516d3f65d348f9f72b9c0edda8246e9fab | [
"MIT"
] | null | null | null | Edabit/Return the Next Number from the Integer Passed/Sol.py | Pandz18/C-Programs | 9d9b47516d3f65d348f9f72b9c0edda8246e9fab | [
"MIT"
] | null | null | null | def addition(num):
b=num+1
return b
| 3.857143 | 18 | 0.481481 | 8 | 54 | 3.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.425926 | 54 | 13 | 19 | 4.153846 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
67c0c873af503588d7f4a352e82ea3823ed8f714 | 4,955 | py | Python | data_collection/TestDataProcessing.py | rmarathay/hedgehogs_rcos | 07129fbd215e4b6a68f0ce4f9a47101f56222aa9 | [
"MIT"
] | 9 | 2018-02-06T19:08:16.000Z | 2022-03-15T13:31:57.000Z | data_collection/TestDataProcessing.py | rmarathay/hedgehogs_rcos | 07129fbd215e4b6a68f0ce4f9a47101f56222aa9 | [
"MIT"
] | 37 | 2018-02-09T21:22:58.000Z | 2021-12-13T19:51:24.000Z | data_collection/TestDataProcessing.py | rmarathay/hedgehogs_rcos | 07129fbd215e4b6a68f0ce4f9a47101f56222aa9 | [
"MIT"
] | 10 | 2018-02-27T20:26:55.000Z | 2021-02-06T02:26:30.000Z | import datetime
from DataProcessing import StockData
# -----------------------------------------------------------------------------------------------------------------
def Accessors_Test():
ticker1 = "TICKER1"
ticker2 = "TICKER2"
indicator1 = "close"
indicator2 = "open"
data1 = [100, 200, 300]
... | 47.190476 | 115 | 0.535822 | 645 | 4,955 | 4.094574 | 0.164341 | 0.205983 | 0.257478 | 0.270352 | 0.661871 | 0.57554 | 0.558122 | 0.546384 | 0.546384 | 0.546384 | 0 | 0.115968 | 0.201211 | 4,955 | 104 | 116 | 47.644231 | 0.551289 | 0.171342 | 0 | 0.4375 | 0 | 0 | 0.199413 | 0.027649 | 0 | 0 | 0 | 0 | 0.1125 | 0 | null | null | 0.025 | 0.025 | null | null | 0.3 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
67c9694e1c5c3a7aa02804bd04d9377839e361b8 | 363 | py | Python | 16.Functional Programming with Python - SW/03.Advanced Functional Concepts/basic_currying.py | ptyadana/python-dojo | 98c7234b84f0afea99a091c7198342d66bbdff5b | [
"MIT"
] | 3 | 2020-06-01T04:17:18.000Z | 2020-12-18T03:05:55.000Z | 16.Functional Programming with Python - SW/03.Advanced Functional Concepts/basic_currying.py | ptyadana/python-dojo | 98c7234b84f0afea99a091c7198342d66bbdff5b | [
"MIT"
] | 1 | 2020-04-25T08:01:59.000Z | 2020-04-25T08:01:59.000Z | 16.Functional Programming with Python - SW/03.Advanced Functional Concepts/basic_currying.py | ptyadana/python-dojo | 98c7234b84f0afea99a091c7198342d66bbdff5b | [
"MIT"
] | 7 | 2020-04-26T10:02:36.000Z | 2021-06-08T05:12:46.000Z | # similar to partial application, but only with one level deeper
def curry_add(x):
def curry_add_inner(y):
def curry_add_inner_2(z):
return x + y + z
return curry_add_inner_2
return curry_add_inner
add_5 = curry_add(5)
add_5_and_6 = add_5(6)
print(add_5_and_6(7))
# or we can even... | 21.352941 | 64 | 0.683196 | 69 | 363 | 3.289855 | 0.449275 | 0.246696 | 0.229075 | 0.140969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.22865 | 363 | 16 | 65 | 22.6875 | 0.760714 | 0.256198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0.1 | 0.6 | 0.2 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
67e5034bcd6af04c69e191b2d637fda10835d3b5 | 335 | py | Python | tests/constructors.py | codemee/micropython-ulab | 882294dabfae41e8c27396325334ec7952271598 | [
"MIT"
] | 4 | 2020-02-12T12:08:56.000Z | 2022-03-18T00:30:04.000Z | tests/constructors.py | codemee/micropython-ulab | 882294dabfae41e8c27396325334ec7952271598 | [
"MIT"
] | null | null | null | tests/constructors.py | codemee/micropython-ulab | 882294dabfae41e8c27396325334ec7952271598 | [
"MIT"
] | 2 | 2022-01-11T11:47:22.000Z | 2022-01-20T03:41:36.000Z | from ulab import linalg
import ulab
print(ulab.ones(3))
print(ulab.ones((2,3)))
print(ulab.zeros(3))
print(ulab.zeros((2,3)))
print(ulab.eye(3))
print(ulab.ones(1, dtype=ulab.int8))
print(ulab.ones(2, dtype=ulab.uint8))
print(ulab.ones(3, dtype=ulab.int16))
print(ulab.ones(4, dtype=ulab.uint16))
print(ulab.ones(5, dtyp... | 25.769231 | 38 | 0.725373 | 63 | 335 | 3.857143 | 0.301587 | 0.37037 | 0.374486 | 0.115226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057325 | 0.062687 | 335 | 12 | 39 | 27.916667 | 0.716561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0.833333 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
67f92a2772cde248c692d61df4632481f30aeb2c | 1,110 | py | Python | wallet_lib/wallet_base.py | Bitcoin-com/wallet-lib | 291d4986e5718adeb0e1001030841f0bf6c30943 | [
"MIT"
] | 1 | 2021-11-03T16:16:40.000Z | 2021-11-03T16:16:40.000Z | wallet_lib/wallet_base.py | Bitcoin-com/wallet-lib | 291d4986e5718adeb0e1001030841f0bf6c30943 | [
"MIT"
] | 4 | 2019-12-11T00:19:08.000Z | 2020-01-22T09:40:25.000Z | wallet_lib/wallet_base.py | Bitcoin-com/wallet-lib | 291d4986e5718adeb0e1001030841f0bf6c30943 | [
"MIT"
] | 1 | 2021-11-03T16:16:31.000Z | 2021-11-03T16:16:31.000Z | import simplejson as json
from simplejson.errors import JSONDecodeError
from abc import ABCMeta, abstractmethod
from .adapters import WalletAdapterBase
from .wallet_exceptions import WalletException
from .zmq_notifier import ZMQNotifier
class WalletBase(metaclass=ABCMeta):
def load_json(self, val: str, raw: bool... | 24.666667 | 55 | 0.695495 | 130 | 1,110 | 5.807692 | 0.415385 | 0.180132 | 0.127152 | 0.24106 | 0.316556 | 0.201325 | 0.116556 | 0 | 0 | 0 | 0 | 0 | 0.224324 | 1,110 | 44 | 56 | 25.227273 | 0.876887 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0.25 | 0.1875 | 0.03125 | 0.5625 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
db01fb213a6eb66e7efa42d8ee39466529715e82 | 22 | py | Python | axelrod/version.py | rjsu26/Axelrod | 677f6da86d7ba56d3b2ec031de558c4f2a0675b0 | [
"MIT"
] | null | null | null | axelrod/version.py | rjsu26/Axelrod | 677f6da86d7ba56d3b2ec031de558c4f2a0675b0 | [
"MIT"
] | null | null | null | axelrod/version.py | rjsu26/Axelrod | 677f6da86d7ba56d3b2ec031de558c4f2a0675b0 | [
"MIT"
] | null | null | null | __version__ = "4.6.0"
| 11 | 21 | 0.636364 | 4 | 22 | 2.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 0.136364 | 22 | 1 | 22 | 22 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
db05f1454e6cc433f350a3445dde418510efd33a | 501 | py | Python | events/__init__.py | yemikudaisi/GIS-Lite | 9a366fae77142b5c3887907bb2a3e7824897f17c | [
"MIT"
] | 2 | 2021-03-26T06:34:49.000Z | 2021-04-01T12:55:45.000Z | events/__init__.py | yemikudaisi/GIS-Lite | 9a366fae77142b5c3887907bb2a3e7824897f17c | [
"MIT"
] | 2 | 2019-04-27T16:21:25.000Z | 2019-11-15T07:13:41.000Z | events/__init__.py | yemikudaisi/GIS-Lite | 9a366fae77142b5c3887907bb2a3e7824897f17c | [
"MIT"
] | 1 | 2020-08-17T15:01:58.000Z | 2020-08-17T15:01:58.000Z | import wx
from mapmouseover import MapMouseOverEvent, EVT_MAP_MOUSE_DRAG
from mapscalechanged import MapScaleChangedEvent, EVT_MAP_SCALE_CHANGED
from maptoolactivated import MapToolActivatedEvent, EVT_MAP_TOOL_ACTIVATED
from maptooldeactivated import MapToolDeactivatedEvent, EVT_MAP_TOOL_DEACTIVATED
from maplayerschang... | 50.1 | 80 | 0.91018 | 57 | 501 | 7.649123 | 0.508772 | 0.09633 | 0.045872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075848 | 501 | 9 | 81 | 55.666667 | 0.941685 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
db2f734c1bfdc95a626a54c1f6eff35f3f92d18e | 475 | py | Python | logger.py | ImGabe/Tamagochi | 0478c4525ae7b535f491e4de50a0b12ecb30d0bc | [
"MIT"
] | 11 | 2018-12-06T12:35:12.000Z | 2019-06-22T12:54:06.000Z | logger.py | ImGabe/tamagochi | 0478c4525ae7b535f491e4de50a0b12ecb30d0bc | [
"MIT"
] | 15 | 2018-12-09T01:51:24.000Z | 2018-12-23T16:47:33.000Z | logger.py | ImGabe/Tamagochi | 0478c4525ae7b535f491e4de50a0b12ecb30d0bc | [
"MIT"
] | 5 | 2018-12-09T23:45:26.000Z | 2019-03-15T18:16:30.000Z | import logging
logging.basicConfig(filename='tamagochi_logs.log',
level=logging.DEBUG,
format='%(asctime)s [%(levelname)s] %(message)s',
datefmt='%m/%d/%Y %I:%M:%S')
def log_info(x):
return logging.info(x)
def log_debug(x):
return logging.debug(x)... | 17.592593 | 69 | 0.602105 | 65 | 475 | 4.307692 | 0.4 | 0.107143 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252632 | 475 | 26 | 70 | 18.269231 | 0.788732 | 0 | 0 | 0 | 0 | 0 | 0.155789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.066667 | 0.333333 | 0.733333 | 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 | 1 | 1 | 0 | 0 | 4 |
db3206e0630c4a5221866da435009e68ada96f48 | 560 | py | Python | src/fpm_tablut_player/utils/network.py | contimatteo/PMF-Tablut-Player | 9886583d2027beb2c0941c753f78bfb42ba8ae36 | [
"MIT"
] | null | null | null | src/fpm_tablut_player/utils/network.py | contimatteo/PMF-Tablut-Player | 9886583d2027beb2c0941c753f78bfb42ba8ae36 | [
"MIT"
] | null | null | null | src/fpm_tablut_player/utils/network.py | contimatteo/PMF-Tablut-Player | 9886583d2027beb2c0941c753f78bfb42ba8ae36 | [
"MIT"
] | null | null | null | import struct
###
class NetworkUtils:
@staticmethod
def is_value_sent(bytes_sent: int, expected_bytes_sent: int):
return bytes_sent == expected_bytes_sent
@staticmethod
def integer_request(integer: int):
return struct.pack('>i', integer)
@staticmethod
def string_request(str... | 20.740741 | 65 | 0.667857 | 65 | 560 | 5.569231 | 0.384615 | 0.207182 | 0.066298 | 0.121547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006928 | 0.226786 | 560 | 26 | 66 | 21.538462 | 0.829099 | 0 | 0 | 0.294118 | 0 | 0 | 0.025135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.058824 | 0.294118 | 0.705882 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
e1d5805c51e0b83912c4864bc54df34539d64faf | 60 | py | Python | locale/pot/api/plotting/_autosummary/pyvista-themes-ParaViewTheme-outline_color-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 4 | 2020-08-07T08:19:19.000Z | 2020-12-04T09:51:11.000Z | locale/pot/api/plotting/_autosummary/pyvista-themes-DefaultTheme-outline_color-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 19 | 2020-08-06T00:24:30.000Z | 2022-03-30T19:22:24.000Z | locale/pot/api/plotting/_autosummary/pyvista-themes-ParaViewTheme-outline_color-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 1 | 2021-03-09T07:50:40.000Z | 2021-03-09T07:50:40.000Z | import pyvista
pyvista.global_theme.outline_color = 'white'
| 20 | 44 | 0.833333 | 8 | 60 | 6 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 60 | 2 | 45 | 30 | 0.872727 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e1df797c87e40099a1407df06ab155f1ca3d1c2f | 2,336 | py | Python | SAP Script - FB50.py | LeandroPOliveira/SAP-Scripting | 8a0f50a1e14a9e1040300bbdefb671c917cc32e9 | [
"MIT"
] | null | null | null | SAP Script - FB50.py | LeandroPOliveira/SAP-Scripting | 8a0f50a1e14a9e1040300bbdefb671c917cc32e9 | [
"MIT"
] | null | null | null | SAP Script - FB50.py | LeandroPOliveira/SAP-Scripting | 8a0f50a1e14a9e1040300bbdefb671c917cc32e9 | [
"MIT"
] | null | null | null | # Importar o pacote pandas para trabalhar com arquivos excel
import pandas as pd
# Abrir arquivo de script gerado pelo SAP
arquivo = open('FB50.vbs', 'a') # modo 'a' de append, insere novos dados no arquivo sem excluir os que estavam
# Abrir arquivo com os dados a serem lançados
dados_cab = pd.read_excel('FB50.xlsx'... | 64.888889 | 147 | 0.742723 | 346 | 2,336 | 4.947977 | 0.355491 | 0.131425 | 0.15771 | 0.166472 | 0.596963 | 0.574766 | 0.574766 | 0.548481 | 0.548481 | 0.431659 | 0 | 0.050114 | 0.06036 | 2,336 | 36 | 148 | 64.888889 | 0.729841 | 0.118151 | 0 | 0.08 | 0 | 0.48 | 0.856378 | 0.735638 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 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 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e1ea904855fc06013587410d741049ec33ca9618 | 61 | py | Python | tests/__init__.py | boweeb/wikiup | 2694a8a9bc3914507803abc0540850e25ec64fd2 | [
"ISC"
] | null | null | null | tests/__init__.py | boweeb/wikiup | 2694a8a9bc3914507803abc0540850e25ec64fd2 | [
"ISC"
] | null | null | null | tests/__init__.py | boweeb/wikiup | 2694a8a9bc3914507803abc0540850e25ec64fd2 | [
"ISC"
] | null | null | null | # -*- coding: utf-8 -*-
"""Unit test package for wikiup."""
| 15.25 | 35 | 0.557377 | 8 | 61 | 4.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.180328 | 61 | 3 | 36 | 20.333333 | 0.66 | 0.852459 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e1fa01d7ff0815944c8193d5b90fac0d025e0556 | 308 | py | Python | utils/operations.py | hmeretti/grid-world | 03a91dcb89f960ffca7918639365402c9a750814 | [
"MIT"
] | 1 | 2022-02-06T12:50:02.000Z | 2022-02-06T12:50:02.000Z | utils/operations.py | hmeretti/grid-world | 03a91dcb89f960ffca7918639365402c9a750814 | [
"MIT"
] | 1 | 2022-02-01T12:41:03.000Z | 2022-02-01T12:41:03.000Z | utils/operations.py | hmeretti/grid-world | 03a91dcb89f960ffca7918639365402c9a750814 | [
"MIT"
] | null | null | null | import numpy as np
def add_tuples(a: tuple[int, ...], b: tuple[int, ...]) -> tuple[int, ...]:
return tuple(p + q for p, q in zip(a, b))
def float_dict_comparison(d0: dict[any, float], d1: dict[any, float]) -> bool:
return np.all([np.isclose(d0[x], d1[x]) for x in d0]) and d0.keys() == d1.keys()
| 30.8 | 84 | 0.597403 | 57 | 308 | 3.175439 | 0.508772 | 0.132597 | 0.132597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.181818 | 308 | 9 | 85 | 34.222222 | 0.690476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0.4 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
e1fb5f4836567ff682af78ed27c3946aadec55b6 | 5,592 | py | Python | tests/test_query_generator.py | zedrem/coast_search | 6216b3b0505f00eba39f1ec947ea1e4ba4bb55c6 | [
"MIT"
] | null | null | null | tests/test_query_generator.py | zedrem/coast_search | 6216b3b0505f00eba39f1ec947ea1e4ba4bb55c6 | [
"MIT"
] | null | null | null | tests/test_query_generator.py | zedrem/coast_search | 6216b3b0505f00eba39f1ec947ea1e4ba4bb55c6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_citations
----------------------------------
Tests for `citations` module.
"""
import os
import unittest
from coast_search import query_generator
class TestQueryGenerator(unittest.TestCase):
def setUp(self):
self.dimensions_dict = {
"re... | 37.530201 | 123 | 0.528612 | 508 | 5,592 | 5.545276 | 0.216535 | 0.046148 | 0.038339 | 0.076677 | 0.753994 | 0.72382 | 0.716365 | 0.716365 | 0.671282 | 0.616613 | 0 | 0.090812 | 0.332439 | 5,592 | 148 | 124 | 37.783784 | 0.663809 | 0.021817 | 0 | 0.403509 | 0 | 0 | 0.326314 | 0.100165 | 0 | 0 | 0 | 0 | 0.070175 | 1 | 0.052632 | false | 0.035088 | 0.026316 | 0 | 0.087719 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 4 |
c008d051baf823c63ce751f3fb44cf8afd5d33bd | 310 | py | Python | bzt/engine/__init__.py | IamSaurabh1/taurus | 928d44e30e6cd5b979e675bfdce4c1dbeb5d0eff | [
"Apache-2.0"
] | 1 | 2019-12-05T14:57:58.000Z | 2019-12-05T14:57:58.000Z | bzt/engine/__init__.py | IamSaurabh1/taurus | 928d44e30e6cd5b979e675bfdce4c1dbeb5d0eff | [
"Apache-2.0"
] | null | null | null | bzt/engine/__init__.py | IamSaurabh1/taurus | 928d44e30e6cd5b979e675bfdce4c1dbeb5d0eff | [
"Apache-2.0"
] | null | null | null | from .names import EXEC, TAURUS_ARTIFACTS_DIR, SETTINGS
from .engine import Engine
from .dicts import Scenario, Configuration
from .templates import FileLister, HavingInstallableTools, Singletone, SelfDiagnosable
from .modules import Provisioning, Reporter, Service, Aggregator, EngineModule, ScenarioExecutor
| 51.666667 | 96 | 0.848387 | 33 | 310 | 7.909091 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 310 | 5 | 97 | 62 | 0.935484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
c0393b9aa0efe5e0ae6c0a7a0e71e718ff387015 | 134 | py | Python | profiler/profiler/utils/inference_url_parser.py | Hydrospheredata/hydro-profiler | bca177f8d71d9d8c93091f9a9fdf9a337582e194 | [
"Apache-2.0"
] | null | null | null | profiler/profiler/utils/inference_url_parser.py | Hydrospheredata/hydro-profiler | bca177f8d71d9d8c93091f9a9fdf9a337582e194 | [
"Apache-2.0"
] | 14 | 2021-11-22T18:07:28.000Z | 2022-01-14T08:51:45.000Z | profiler/profiler/utils/inference_url_parser.py | rufusnufus/hydro-profiler | a729ffa2575bb8bfe9a080c2562fd592ed37521d | [
"Apache-2.0"
] | 1 | 2021-11-19T11:16:50.000Z | 2021-11-19T11:16:50.000Z | from urllib.parse import urlparse
def extract_file_name(url: str):
parsed = urlparse(url)
return parsed.path.split("/")[-1]
| 19.142857 | 37 | 0.701493 | 19 | 134 | 4.842105 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0.164179 | 134 | 6 | 38 | 22.333333 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0.007463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
c055cae955a199d416db77300f1d5f0e76cebf6e | 7,092 | py | Python | Teste.py | NunoMarquesRM/Logica-AlgHorn | 51b00596dcc09c7541f15ff0059422d19ae50144 | [
"MIT"
] | null | null | null | Teste.py | NunoMarquesRM/Logica-AlgHorn | 51b00596dcc09c7541f15ff0059422d19ae50144 | [
"MIT"
] | null | null | null | Teste.py | NunoMarquesRM/Logica-AlgHorn | 51b00596dcc09c7541f15ff0059422d19ae50144 | [
"MIT"
] | null | null | null | from abc import abstractproperty
s = '(~p | R ) & (~x) & (p) & (~p | x | ~R | x)'
s = "(~q | ~S | ~Q | ~p | ~p | ~q | ~y | ~X | ~p | ~L | ~V | ~Y | ~U | ~q | ~u | ~R | ~R | ~P | ~V | ~O | ~m | ~w | ~J | ~u | ~S | ~d | ~s | ~w | ~f | ~p | ~X | ~i | ~C) & (s) & (~B | ~O | ~X | ~r | ~T | ~f | ~A | ~t | ~u | ~e | ~C | ~... | 59.1 | 4,682 | 0.271151 | 1,226 | 7,092 | 1.557096 | 0.066884 | 0.025144 | 0.018858 | 0.023573 | 0.020953 | 0.020953 | 0.020953 | 0.020953 | 0 | 0 | 0 | 0.005529 | 0.413424 | 7,092 | 120 | 4,683 | 59.1 | 0.453365 | 0.008319 | 0 | 0.197674 | 0 | 0.046512 | 0.692789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05814 | false | 0.034884 | 0.011628 | 0 | 0.186047 | 0.046512 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c05c2ed3f73c6d91e67567062b596f9684fbe057 | 228 | py | Python | pokemon_image_dataset/data_sources/__init__.py | jneuendorf/pokemon-image-dataset | 120b5beb4f058ee7c8fa86cc7e5b8030b75a03f1 | [
"MIT"
] | null | null | null | pokemon_image_dataset/data_sources/__init__.py | jneuendorf/pokemon-image-dataset | 120b5beb4f058ee7c8fa86cc7e5b8030b75a03f1 | [
"MIT"
] | null | null | null | pokemon_image_dataset/data_sources/__init__.py | jneuendorf/pokemon-image-dataset | 120b5beb4f058ee7c8fa86cc7e5b8030b75a03f1 | [
"MIT"
] | null | null | null | from .archive import ArchiveDataSource, RemoteArchiveDataSource
from .base import DataSource
from .sprite_set import SpriteSetConfig, SpriteSetDataSource
from .path_dict import PathDict
from .battlers import BattlersDataSource
| 32.571429 | 63 | 0.868421 | 24 | 228 | 8.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100877 | 228 | 6 | 64 | 38 | 0.956098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
fbe51356ffacd7b71b1c2e88e52d5526bc5b2ffd | 224 | py | Python | hitcount/urls.py | Ione03/django-hitcount | 6212b44f3830c29bcef809543f9eaeb88fcb037d | [
"MIT"
] | null | null | null | hitcount/urls.py | Ione03/django-hitcount | 6212b44f3830c29bcef809543f9eaeb88fcb037d | [
"MIT"
] | null | null | null | hitcount/urls.py | Ione03/django-hitcount | 6212b44f3830c29bcef809543f9eaeb88fcb037d | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.conf.urls import url
from hitcount.views import HitCountJSONView
app_name = 'hitcount'
urlpatterns = [url('^hit/ajax/$', HitCountJSONView.as_view(), name='hit_ajax')]
| 37.333333 | 80 | 0.776786 | 29 | 224 | 5.724138 | 0.655172 | 0.084337 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111607 | 224 | 5 | 81 | 44.8 | 0.834171 | 0 | 0 | 0 | 0 | 0 | 0.123288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
fbf195859d145c9edc62ce791dbd3d712c1e02d1 | 81 | py | Python | kivy3/loaders/__init__.py | poikilos/kivy3 | e3364b39ec61a69aa31bf88e77fadaa148359ec6 | [
"MIT"
] | 13 | 2020-04-27T10:58:35.000Z | 2021-09-22T20:39:16.000Z | kivy3/loaders/__init__.py | poikilos/kivy3 | e3364b39ec61a69aa31bf88e77fadaa148359ec6 | [
"MIT"
] | 8 | 2020-04-27T11:12:38.000Z | 2022-03-13T16:31:28.000Z | kivy3/loaders/__init__.py | poikilos/kivy3 | e3364b39ec61a69aa31bf88e77fadaa148359ec6 | [
"MIT"
] | 6 | 2020-05-14T17:00:44.000Z | 2022-03-13T16:29:19.000Z |
from .objloader import OBJLoader, OBJMTLLoader
from .stlloader import STLLoader
| 20.25 | 46 | 0.839506 | 9 | 81 | 7.555556 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123457 | 81 | 3 | 47 | 27 | 0.957746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
2201f288b845e1976ecea9ca5e7e9639183116bb | 635 | py | Python | Helper/Base/Chess.py | jingege315/gobang | 983a0ce34dc2120464f42441ef6b190ef2433f08 | [
"MIT"
] | 4 | 2019-04-20T07:04:02.000Z | 2020-06-23T14:12:15.000Z | Helper/Base/Chess.py | jingege315/gobang_alphazero | 983a0ce34dc2120464f42441ef6b190ef2433f08 | [
"MIT"
] | null | null | null | Helper/Base/Chess.py | jingege315/gobang_alphazero | 983a0ce34dc2120464f42441ef6b190ef2433f08 | [
"MIT"
] | null | null | null | from enum import Enum
class Chess(Enum):
"""
the chess's enum
"""
BLACK = 1
WHITE = 2
NONE = 3
def is_black(self) -> bool:
return self == self.BLACK
def is_white(self) -> bool:
return self == self.WHITE
def is_none(self) -> bool:
return self == self.NONE
def exchange(self):
return self.BLACK if ... | 17.162162 | 54 | 0.653543 | 103 | 635 | 3.854369 | 0.242718 | 0.105793 | 0.176322 | 0.2267 | 0.267003 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00996 | 0.209449 | 635 | 36 | 55 | 17.638889 | 0.780876 | 0.025197 | 0 | 0 | 0 | 0 | 0.004926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0 | 0.041667 | 0.25 | 0.875 | 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 | 1 | 0 | 0 | 4 |
2205eb2f75d5a1fb0ec2337d8dd63ce09412e990 | 864 | py | Python | lib/systems/d-cysteine.py | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | lib/systems/d-cysteine.py | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | lib/systems/d-cysteine.py | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | import pulsar as psr
def load_ref_system():
""" Returns d-cysteine as found in the IQMol fragment library.
All credit to https://github.com/nutjunkie/IQmol
"""
return psr.make_system("""
C -0.2529 -0.1635 -0.4344
C 0.1089 -1.5934 -0.0355
O 0.9646... | 39.272727 | 66 | 0.423611 | 128 | 864 | 2.835938 | 0.601563 | 0.022039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.460526 | 0.472222 | 864 | 21 | 67 | 41.142857 | 0.335526 | 0.123843 | 0 | 0 | 0 | 0 | 0.886024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | true | 0 | 0.055556 | 0 | 0.166667 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
220ac7d76f7e04b60c04a1fcd6500a774749fbeb | 196 | py | Python | sberbank/apps.py | Zagrebelin/django-sberbank | 29a30ae72d9d243c69677323eed048e0931e8ccd | [
"BSD-2-Clause"
] | 1 | 2021-07-22T11:00:31.000Z | 2021-07-22T11:00:31.000Z | sberbank/apps.py | Zagrebelin/django-sberbank | 29a30ae72d9d243c69677323eed048e0931e8ccd | [
"BSD-2-Clause"
] | null | null | null | sberbank/apps.py | Zagrebelin/django-sberbank | 29a30ae72d9d243c69677323eed048e0931e8ccd | [
"BSD-2-Clause"
] | null | null | null | from django.apps import AppConfig as BaseAppConfig
from django.utils.translation import ugettext_lazy as _
class AppConfig(BaseAppConfig):
name = 'sberbank'
verbose_name = _('sberbank')
| 24.5 | 55 | 0.77551 | 23 | 196 | 6.434783 | 0.652174 | 0.135135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153061 | 196 | 7 | 56 | 28 | 0.891566 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
222885319f49c9f429cf1dab45fefb15c2a8f61a | 135 | py | Python | testsuite/N806_py35.py | danielpatrickdotdev/pep8-naming | 884f3c40880fcc4c4e3f83e0006f7ec4113213fe | [
"MIT"
] | 335 | 2015-12-18T00:05:05.000Z | 2022-03-30T09:40:56.000Z | testsuite/N806_py35.py | DalavanCloud/pep8-naming | 6fc2dc694c729403360f10e2545c6602b9a53727 | [
"MIT"
] | 118 | 2015-12-17T03:42:54.000Z | 2022-02-05T15:25:48.000Z | testsuite/N806_py35.py | DalavanCloud/pep8-naming | 6fc2dc694c729403360f10e2545c6602b9a53727 | [
"MIT"
] | 64 | 2015-12-28T11:46:52.000Z | 2022-03-23T09:45:42.000Z | # python_version >= '3.5'
#: Okay
async def test():
good = 1
#: N806
async def f():
async with expr as ASYNC_VAR:
pass
| 15 | 33 | 0.577778 | 21 | 135 | 3.619048 | 0.809524 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.288889 | 135 | 8 | 34 | 16.875 | 0.729167 | 0.259259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
2246b3f98f4136835b8bf402e5bea97ba9c69563 | 109 | py | Python | hostsmgr/exceptions.py | starofrainnight/hostsmgr | ac62fea4ce4542a4755cbb5818a1153c3be999fe | [
"Apache-2.0"
] | null | null | null | hostsmgr/exceptions.py | starofrainnight/hostsmgr | ac62fea4ce4542a4755cbb5818a1153c3be999fe | [
"Apache-2.0"
] | null | null | null | hostsmgr/exceptions.py | starofrainnight/hostsmgr | ac62fea4ce4542a4755cbb5818a1153c3be999fe | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
class HostsNotFound(OSError):
pass
class InvalidFormat(ValueError):
pass
| 10.9 | 32 | 0.651376 | 11 | 109 | 6.454545 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011628 | 0.211009 | 109 | 9 | 33 | 12.111111 | 0.813953 | 0.192661 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
226569b7a9cfa76260cc6b28ca1f5e17e5df5341 | 20,923 | py | Python | src/teachpyx/faq/faq_python.py | sdpython/teachpyx | 93bd7164cfcf285866ac268a6e1e719a16d96ebf | [
"MIT"
] | 3 | 2018-04-13T15:06:52.000Z | 2019-05-26T09:11:18.000Z | src/teachpyx/faq/faq_python.py | sdpython/teachpyx | 93bd7164cfcf285866ac268a6e1e719a16d96ebf | [
"MIT"
] | 17 | 2016-09-25T12:35:50.000Z | 2021-11-20T21:44:16.000Z | src/teachpyx/faq/faq_python.py | sdpython/teachpyx | 93bd7164cfcf285866ac268a6e1e719a16d96ebf | [
"MIT"
] | 1 | 2019-07-29T12:11:33.000Z | 2019-07-29T12:11:33.000Z | # -*- coding: utf-8 -*-
"""
@file
@brief Quelques questions d'ordre général autour du langage Python.
"""
import os
import io
import re
def entier_grande_taille():
"""
.. faqref::
:tag: python
:title: Quel est l'entier le plus grand ?
La version 3 du langage Python a supprimé la co... | 36.261698 | 139 | 0.591024 | 2,673 | 20,923 | 4.577628 | 0.260007 | 0.017653 | 0.029421 | 0.035306 | 0.188787 | 0.159284 | 0.139179 | 0.126757 | 0.099052 | 0.072246 | 0 | 0.026013 | 0.307317 | 20,923 | 576 | 140 | 36.324653 | 0.818257 | 0.881614 | 0 | 0.083333 | 0 | 0 | 0.014299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.083333 | 0.138889 | 0 | 0.694444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
97fec7fe8d25a158135aaf942fd80baafbf67a15 | 2,198 | py | Python | tests/pricing.py | RossLote/lingo24 | 44d33b2c7dd040ba90f4ea090038aaa22721c9df | [
"MIT"
] | null | null | null | tests/pricing.py | RossLote/lingo24 | 44d33b2c7dd040ba90f4ea090038aaa22721c9df | [
"MIT"
] | null | null | null | tests/pricing.py | RossLote/lingo24 | 44d33b2c7dd040ba90f4ea090038aaa22721c9df | [
"MIT"
] | 1 | 2021-04-21T06:58:29.000Z | 2021-04-21T06:58:29.000Z | # -*- coding: utf-8 -*-
from lingo24.business_documents.pricing import Price, TotalPrice
from .base import BaseTestCase
class PriceTestCase(BaseTestCase):
def test_equality(self):
self.assertEqual(Price('GBP', 123, 456), Price('GBP', 123, 456))
self.assertNotEqual(Price('GBP', 123, 456), Price('U... | 43.098039 | 76 | 0.620564 | 287 | 2,198 | 4.696864 | 0.135889 | 0.124629 | 0.207715 | 0.093472 | 0.773739 | 0.718843 | 0.718843 | 0.378338 | 0.284866 | 0.186944 | 0 | 0.137378 | 0.205187 | 2,198 | 50 | 77 | 43.96 | 0.630796 | 0.009554 | 0 | 0.2 | 0 | 0 | 0.071724 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.15 | false | 0 | 0.05 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 1 | 1 | 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 | 4 |
3f33416f7906ecb5711fdfe46e800f78d39df718 | 249 | py | Python | Model/predictor_dl_model/predictor_dl_model/trainer/trainer_run.py | spyglass700/blue-marlin | b2e4689b2ebc0966db6a96f6c5ecb4478998d605 | [
"Apache-2.0"
] | null | null | null | Model/predictor_dl_model/predictor_dl_model/trainer/trainer_run.py | spyglass700/blue-marlin | b2e4689b2ebc0966db6a96f6c5ecb4478998d605 | [
"Apache-2.0"
] | null | null | null | Model/predictor_dl_model/predictor_dl_model/trainer/trainer_run.py | spyglass700/blue-marlin | b2e4689b2ebc0966db6a96f6c5ecb4478998d605 | [
"Apache-2.0"
] | null | null | null | import os
if __name__ == '__main__':
os.system('python tfrecord_reader.py --add_days=63 data/vars')
os.system('python trainer.py --name s32 --hparam_set=s32 --n_models=3 --no_forward_split --no_eval --asgd_decay=0.99 --max_epoch=150')
| 41.5 | 139 | 0.702811 | 41 | 249 | 3.853659 | 0.804878 | 0.101266 | 0.177215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060465 | 0.136546 | 249 | 5 | 140 | 49.8 | 0.674419 | 0 | 0 | 0 | 0 | 0.25 | 0.729508 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3f35b0149cea791424e4ce7e06c1ffc79ae4a07b | 170 | py | Python | variant_db/MySQLVariantDB.py | dawidsielski/medical-data-share | e462ffcfe0650b4fed2bb113c331a2a7438a8509 | [
"MIT"
] | null | null | null | variant_db/MySQLVariantDB.py | dawidsielski/medical-data-share | e462ffcfe0650b4fed2bb113c331a2a7438a8509 | [
"MIT"
] | null | null | null | variant_db/MySQLVariantDB.py | dawidsielski/medical-data-share | e462ffcfe0650b4fed2bb113c331a2a7438a8509 | [
"MIT"
] | null | null | null | from variant_db.VariantDB import VariantDB
class MySQLVarinatDB(VariantDB):
@staticmethod
def get_variants(chrom=None, start=None, end=None):
pass
| 18.888889 | 55 | 0.717647 | 20 | 170 | 6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205882 | 170 | 8 | 56 | 21.25 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.2 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
3f47f69357bdcd3a89beb841e87168976fe2c42f | 82 | py | Python | MLB-pyMatchups/__init__.py | FranB57/MLB-pyMatchups | 6a8ea5bc7b6f475eac6ada08c4ee3d03ad989301 | [
"MIT"
] | 1 | 2020-12-25T22:08:17.000Z | 2020-12-25T22:08:17.000Z | MLB-pyMatchups/__init__.py | FranB57/MLB-pyMatchups | 6a8ea5bc7b6f475eac6ada08c4ee3d03ad989301 | [
"MIT"
] | null | null | null | MLB-pyMatchups/__init__.py | FranB57/MLB-pyMatchups | 6a8ea5bc7b6f475eac6ada08c4ee3d03ad989301 | [
"MIT"
] | null | null | null |
#develop an init.py once the project reaches phase 2 to publish it as a library
| 20.5 | 79 | 0.768293 | 16 | 82 | 3.9375 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.207317 | 82 | 3 | 80 | 27.333333 | 0.953846 | 0.95122 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3f64073a62636ecf19174d8b00ab70245fcb6a63 | 693 | py | Python | theapp/migrations/0007_auto_20191027_1606.py | je-ss-y/awards | c7633c4cb8a50fcebc05003e8a4d3e2719b13ef3 | [
"CNRI-Python"
] | null | null | null | theapp/migrations/0007_auto_20191027_1606.py | je-ss-y/awards | c7633c4cb8a50fcebc05003e8a4d3e2719b13ef3 | [
"CNRI-Python"
] | 3 | 2020-06-05T23:53:13.000Z | 2021-06-10T22:09:59.000Z | theapp/migrations/0007_auto_20191027_1606.py | je-ss-y/awards | c7633c4cb8a50fcebc05003e8a4d3e2719b13ef3 | [
"CNRI-Python"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-10-27 16:06
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('theapp', '0006_auto_20191027_0942'),
]
operations = [
migrations.RemoveField(
... | 21.65625 | 46 | 0.539683 | 63 | 693 | 5.746032 | 0.603175 | 0.232044 | 0.287293 | 0.331492 | 0.41989 | 0.41989 | 0 | 0 | 0 | 0 | 0 | 0.07033 | 0.343434 | 693 | 31 | 47 | 22.354839 | 0.725275 | 0.095238 | 0 | 0.5 | 1 | 0 | 0.113782 | 0.036859 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 1 | 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 | 4 |
3f705c845143482cfeb57f7612ead011c15c6520 | 63 | py | Python | GoPiGo_J/src/server/python/increase_speed.py | theplatypus/GoPiGo_Java | 85544c93146d898bf08f0898350a9ef80da6754f | [
"Unlicense",
"MIT"
] | 1 | 2016-01-22T20:35:24.000Z | 2016-01-22T20:35:24.000Z | GoPiGo_J/src/server/python/increase_speed.py | theplatypus/GoPiGo_Java | 85544c93146d898bf08f0898350a9ef80da6754f | [
"Unlicense",
"MIT"
] | null | null | null | GoPiGo_J/src/server/python/increase_speed.py | theplatypus/GoPiGo_Java | 85544c93146d898bf08f0898350a9ef80da6754f | [
"Unlicense",
"MIT"
] | null | null | null | #!/usr/bin/env python
import gopigo
gopigo.increase_speed()
| 10.5 | 23 | 0.746032 | 9 | 63 | 5.111111 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126984 | 63 | 5 | 24 | 12.6 | 0.836364 | 0.31746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
58b77a93cfda4e77dd29f130442b70ce30e13fc0 | 368 | py | Python | Which are in.py | lluxury/codewars | 2cacc9d5411a248c199ad21949617c5acc9c7f24 | [
"MIT"
] | null | null | null | Which are in.py | lluxury/codewars | 2cacc9d5411a248c199ad21949617c5acc9c7f24 | [
"MIT"
] | null | null | null | Which are in.py | lluxury/codewars | 2cacc9d5411a248c199ad21949617c5acc9c7f24 | [
"MIT"
] | null | null | null | def in_array(a1, a2):
return sorted({sub for sub in a1 if any(sub in s for s in a2)})
# return sorted({sub for sub in a1 if 1})
# any 传入空可迭代对象时返回False,当可迭代对象中有任意一个不为False,则返回True
# all 传入空可迭代对象时返回True,当可迭代对象中有任意一个不为True,则返回False
# if 真有返回,if假无返回, 真假由 ()里内容决定,对a1里的每个sub反回真,假
# 不知道使用{}的原因,但是换掉会报错 ['duplic... | 46 | 77 | 0.722826 | 53 | 368 | 5 | 0.603774 | 0.056604 | 0.10566 | 0.128302 | 0.218868 | 0.218868 | 0.218868 | 0.218868 | 0.218868 | 0 | 0 | 0.022654 | 0.160326 | 368 | 8 | 77 | 46 | 0.834951 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
58c74d86eff7f75e85efb442571cd8932f5b7778 | 196 | py | Python | examples/tutorial/tutorial/users/amodels.py | carbonariy/dvhb-hybrid | adbb250767ea255addc607fb6f6755c9add447db | [
"MIT"
] | 27 | 2018-05-08T16:03:24.000Z | 2020-02-20T06:39:19.000Z | examples/tutorial/tutorial/users/amodels.py | carbonariy/dvhb-hybrid | adbb250767ea255addc607fb6f6755c9add447db | [
"MIT"
] | 7 | 2018-10-20T16:03:36.000Z | 2021-11-03T11:09:22.000Z | examples/tutorial/tutorial/users/amodels.py | carbonariy/dvhb-hybrid | adbb250767ea255addc607fb6f6755c9add447db | [
"MIT"
] | 16 | 2018-12-11T15:34:22.000Z | 2022-01-25T00:20:55.000Z | from dvhb_hybrid.amodels import Model
from .models import User as DjangoUser
class User(Model):
# Build sqlalchemy model by Django model
table = Model.get_table_from_django(DjangoUser)
| 21.777778 | 51 | 0.780612 | 28 | 196 | 5.321429 | 0.607143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168367 | 196 | 8 | 52 | 24.5 | 0.91411 | 0.193878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
58c7d376c2fb7bd1e705a6c7dcc2ca76d379ea5b | 309 | py | Python | trade_utilities/executions.py | bkarjoo/pysim | 5d4e6ae337cac5b588a98ed33807e97677e36922 | [
"MIT"
] | null | null | null | trade_utilities/executions.py | bkarjoo/pysim | 5d4e6ae337cac5b588a98ed33807e97677e36922 | [
"MIT"
] | null | null | null | trade_utilities/executions.py | bkarjoo/pysim | 5d4e6ae337cac5b588a98ed33807e97677e36922 | [
"MIT"
] | null | null | null | class Executions(object):
def __init__(self):
self.executions = []
def append(self, execution):
self.executions.append(execution)
def shares_traded(self):
return sum([abs(item.qty) for item in self.executions])
def __len__(self):
return len(self.executions)
| 23.769231 | 63 | 0.647249 | 37 | 309 | 5.162162 | 0.486486 | 0.293194 | 0.17801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239482 | 309 | 12 | 64 | 25.75 | 0.812766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0 | 0 | 0.222222 | 0.777778 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
58d6151f82f31cb94db1d639deb715ae93b58aea | 1,482 | py | Python | tests/test_choice_from_list.py | zheyu-wang-tony/datahub | 40bcf2e225f74c914afee6843ace11a8dea20bf9 | [
"Apache-2.0"
] | null | null | null | tests/test_choice_from_list.py | zheyu-wang-tony/datahub | 40bcf2e225f74c914afee6843ace11a8dea20bf9 | [
"Apache-2.0"
] | null | null | null | tests/test_choice_from_list.py | zheyu-wang-tony/datahub | 40bcf2e225f74c914afee6843ace11a8dea20bf9 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import datahub_core.generators as gen
def test_address_generation():
df = gen.generate(
props={
'region': gen.choice(['NAM', 'EMEA', 'APAC', 'LATAM']),
},
count=100,
randomstate=np.random.RandomState(13031981)
).to_dataframe()
found_nam = Fals... | 23.15625 | 67 | 0.537787 | 174 | 1,482 | 4.402299 | 0.241379 | 0.052219 | 0.070496 | 0.046997 | 0.78329 | 0.78329 | 0.78329 | 0.697128 | 0.697128 | 0.582245 | 0 | 0.029289 | 0.354926 | 1,482 | 63 | 68 | 23.52381 | 0.771967 | 0 | 0 | 0.740741 | 1 | 0 | 0.059379 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 1 | 0.037037 | false | 0 | 0.037037 | 0 | 0.074074 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
58feec3a171a7d23967fb87272b47eaf4d82e5bc | 30 | py | Python | cosmos/ingestion/ingest/process/detection/src/torch_model/train/anchor_targets/__init__.py | ilmcconnell/Cosmos | 84245034727c30e20ffddee9e02c7e96f3aa115e | [
"Apache-2.0"
] | 30 | 2019-03-14T08:24:34.000Z | 2022-03-09T06:05:44.000Z | cosmos/ingestion/ingest/process/detection/src/torch_model/train/anchor_targets/__init__.py | ilmcconnell/Cosmos | 84245034727c30e20ffddee9e02c7e96f3aa115e | [
"Apache-2.0"
] | 78 | 2019-02-07T22:14:48.000Z | 2022-03-09T05:59:18.000Z | cosmos/ingestion/ingest/process/detection/src/torch_model/train/anchor_targets/__init__.py | ilmcconnell/Cosmos | 84245034727c30e20ffddee9e02c7e96f3aa115e | [
"Apache-2.0"
] | 11 | 2019-03-02T01:20:06.000Z | 2022-03-25T07:25:46.000Z | """
Anchor targets module
"""
| 7.5 | 21 | 0.633333 | 3 | 30 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 30 | 3 | 22 | 10 | 0.76 | 0.7 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
18ef39fe736f8e8ad6e7df9847943aa98bca2c9e | 17,944 | py | Python | netbox/dcim/migrations/0044_virtualization_squashed_0061_platform_napalm_args.py | BrnoPCmaniak/netbox | 7b517abdb68a6324950dfd0375861163c7bfff00 | [
"Apache-2.0"
] | 1 | 2021-09-23T00:06:51.000Z | 2021-09-23T00:06:51.000Z | netbox/dcim/migrations/0044_virtualization_squashed_0061_platform_napalm_args.py | BrnoPCmaniak/netbox | 7b517abdb68a6324950dfd0375861163c7bfff00 | [
"Apache-2.0"
] | 2 | 2021-06-08T21:05:10.000Z | 2021-09-08T01:46:58.000Z | netbox/dcim/migrations/0044_virtualization_squashed_0061_platform_napalm_args.py | BrnoPCmaniak/netbox | 7b517abdb68a6324950dfd0375861163c7bfff00 | [
"Apache-2.0"
] | null | null | null | import django.contrib.postgres.fields.jsonb
import django.core.validators
import django.db.models.deletion
import taggit.managers
import timezone_field.fields
from django.conf import settings
from django.db import migrations, models
import utilities.fields
class Migration(migrations.Migration):
replaces = [('dc... | 50.546479 | 1,210 | 0.597693 | 1,858 | 17,944 | 5.62648 | 0.181378 | 0.052516 | 0.103405 | 0.121389 | 0.757413 | 0.725751 | 0.646929 | 0.623493 | 0.618232 | 0.604266 | 0 | 0.049248 | 0.247492 | 17,944 | 354 | 1,211 | 50.689266 | 0.72495 | 0 | 0 | 0.758621 | 0 | 0 | 0.251393 | 0.029202 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.002874 | 0.022989 | 0 | 0.034483 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7a19be530f5cea0c8e3abb4854d0dbd9712c508a | 187 | py | Python | dataformat-json-jackson/src/test/resources/org/camunda/spin/python/json/tree/JsonTreeSetPropertyPythonTest.shouldReplaceObjectProperty.py | ingorichtsmeier/camunda-spin | f6f929cb4b49f5be3c06fcecf03008fec9fe25c1 | [
"Apache-2.0"
] | 27 | 2015-02-15T22:01:39.000Z | 2022-03-02T05:41:29.000Z | dataformat-json-jackson/src/test/resources/org/camunda/spin/python/json/tree/JsonTreeSetPropertyPythonTest.shouldReplaceObjectProperty.py | ingorichtsmeier/camunda-spin | f6f929cb4b49f5be3c06fcecf03008fec9fe25c1 | [
"Apache-2.0"
] | 101 | 2015-06-05T06:53:56.000Z | 2022-02-28T19:32:44.000Z | dataformat-json-jackson/src/test/resources/org/camunda/spin/python/json/tree/JsonTreeSetPropertyPythonTest.shouldReplaceObjectProperty.py | ingorichtsmeier/camunda-spin | f6f929cb4b49f5be3c06fcecf03008fec9fe25c1 | [
"Apache-2.0"
] | 25 | 2015-05-26T21:28:42.000Z | 2021-07-06T10:04:01.000Z | node = S(input, "application/json")
oldValue = node.prop("order")
jsonObject = {
"name": "test",
"comment": "42!"
}
node.prop("order", jsonObject)
newValue = node.prop("order") | 17 | 35 | 0.625668 | 22 | 187 | 5.318182 | 0.636364 | 0.205128 | 0.333333 | 0.393162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012739 | 0.160428 | 187 | 11 | 36 | 17 | 0.732484 | 0 | 0 | 0 | 0 | 0 | 0.260638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 4 |
e13295df6149bfe10f3c7dc3aca345513f5d842d | 1,378 | py | Python | application/models/user.py | Rsl1122/Forum-Aurum | d9f2d6687b4411a3d9cba4c1a01923f6d4ba0c69 | [
"MIT"
] | null | null | null | application/models/user.py | Rsl1122/Forum-Aurum | d9f2d6687b4411a3d9cba4c1a01923f6d4ba0c69 | [
"MIT"
] | 2 | 2018-04-22T20:08:25.000Z | 2018-08-11T20:57:47.000Z | application/models/user.py | Rsl1122/Forum-Aurum | d9f2d6687b4411a3d9cba4c1a01923f6d4ba0c69 | [
"MIT"
] | null | null | null | from sqlalchemy import text
from application import db
from application.models.user_role import UserRole
class User(db.Model):
__tablename__ = "account"
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(100))
created = db.Column(db.DateTime, default=db.func.current_timestamp())... | 26 | 78 | 0.640784 | 181 | 1,378 | 4.762431 | 0.447514 | 0.037123 | 0.046404 | 0.037123 | 0.064965 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007805 | 0.256168 | 1,378 | 52 | 79 | 26.5 | 0.833171 | 0.031205 | 0 | 0.138889 | 0 | 0 | 0.061515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.083333 | 0.083333 | 0.138889 | 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 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
e14c8dbfc8bc358b24ede1903a6a39230071e498 | 117 | py | Python | office365/sharepoint/pages/template_file_type.py | wreiner/Office365-REST-Python-Client | 476bbce4f5928a140b4f5d33475d0ac9b0783530 | [
"MIT"
] | null | null | null | office365/sharepoint/pages/template_file_type.py | wreiner/Office365-REST-Python-Client | 476bbce4f5928a140b4f5d33475d0ac9b0783530 | [
"MIT"
] | null | null | null | office365/sharepoint/pages/template_file_type.py | wreiner/Office365-REST-Python-Client | 476bbce4f5928a140b4f5d33475d0ac9b0783530 | [
"MIT"
] | null | null | null | class TemplateFileType:
def __init__(self):
pass
StandardPage = 0
WikiPage = 1
FormPage = 2
| 14.625 | 23 | 0.606838 | 12 | 117 | 5.583333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.333333 | 117 | 7 | 24 | 16.714286 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0 | 0 | 0.833333 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
e15b454b5cf405b40d8aee4544d849cebf8a71b0 | 118 | py | Python | qtoggleserver/mppsolar/commands/pbdv.py | qtoggle/qtoggleserver-mppsolar | cc3a68f3ba9f5695946989ea5fa32364c5e28f70 | [
"Apache-2.0"
] | 1 | 2021-11-30T01:04:37.000Z | 2021-11-30T01:04:37.000Z | qtoggleserver/mppsolar/commands/pbdv.py | qtoggle/qtoggleserver-mppsolar | cc3a68f3ba9f5695946989ea5fa32364c5e28f70 | [
"Apache-2.0"
] | null | null | null | qtoggleserver/mppsolar/commands/pbdv.py | qtoggle/qtoggleserver-mppsolar | cc3a68f3ba9f5695946989ea5fa32364c5e28f70 | [
"Apache-2.0"
] | null | null | null |
from .base import Command
class PBDV(Command):
REQUEST_FMT = 'PBDV{battery_back_to_discharging_voltage:04.1f}'
| 16.857143 | 67 | 0.771186 | 17 | 118 | 5.058824 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.135593 | 118 | 6 | 68 | 19.666667 | 0.813725 | 0 | 0 | 0 | 0 | 0 | 0.401709 | 0.401709 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e15cf002aeee90b8a8e4fb51920ec2785dea62e9 | 222 | py | Python | scripts/util/si_formatter.py | iQoo/NYState-COVID-19-Tracker | 2c39c182e3420768bc60902d220d6b257eb7b73f | [
"MIT"
] | 16 | 2020-04-01T16:22:32.000Z | 2020-08-10T20:14:19.000Z | scripts/util/si_formatter.py | iQoo/NYState-COVID-19-Tracker | 2c39c182e3420768bc60902d220d6b257eb7b73f | [
"MIT"
] | 11 | 2020-04-02T14:21:22.000Z | 2022-03-12T00:28:20.000Z | scripts/util/si_formatter.py | iQoo/NYState-COVID-19-Tracker | 2c39c182e3420768bc60902d220d6b257eb7b73f | [
"MIT"
] | 8 | 2020-04-02T14:10:31.000Z | 2020-10-24T05:06:24.000Z | import si_prefix
from matplotlib.ticker import LogFormatter
class LogFormatterSI(LogFormatter):
def _num_to_string(self, x, vmin, vmax):
return si_prefix.si_format(x, precision=0, format_str='{value}{prefix}') | 37 | 80 | 0.765766 | 31 | 222 | 5.258065 | 0.741935 | 0.09816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005181 | 0.130631 | 222 | 6 | 80 | 37 | 0.839378 | 0 | 0 | 0 | 0 | 0 | 0.067265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 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 | 1 | 1 | 0 | 0 | 4 |
e16a99338edffe6ebb1c178aec99baa780c71941 | 7,031 | py | Python | gnuradio-3.7.13.4/gr-digital/python/digital/qa_pfb_clock_sync.py | v1259397/cosmic-gnuradio | 64c149520ac6a7d44179c3f4a38f38add45dd5dc | [
"BSD-3-Clause"
] | 1 | 2021-03-09T07:32:37.000Z | 2021-03-09T07:32:37.000Z | gnuradio-3.7.13.4/gr-digital/python/digital/qa_pfb_clock_sync.py | v1259397/cosmic-gnuradio | 64c149520ac6a7d44179c3f4a38f38add45dd5dc | [
"BSD-3-Clause"
] | null | null | null | gnuradio-3.7.13.4/gr-digital/python/digital/qa_pfb_clock_sync.py | v1259397/cosmic-gnuradio | 64c149520ac6a7d44179c3f4a38f38add45dd5dc | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
#
# Copyright 2011,2013 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your optio... | 31.671171 | 77 | 0.548002 | 874 | 7,031 | 4.223112 | 0.23341 | 0.022758 | 0.034679 | 0.043349 | 0.75806 | 0.732593 | 0.703874 | 0.678407 | 0.660526 | 0.660526 | 0 | 0.038791 | 0.369364 | 7,031 | 221 | 78 | 31.81448 | 0.79364 | 0.182904 | 0 | 0.77037 | 0 | 0 | 0.005435 | 0.004032 | 0 | 0 | 0 | 0 | 0.02963 | 1 | 0.044444 | false | 0 | 0.02963 | 0 | 0.081481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e18010c558ea4d95b1a3770b4e5a294222e2cd4e | 131 | py | Python | filters.py | Phrampu/phrampu | 1c7ab14b2486a679bb9fffab978a522754d10c1f | [
"MIT"
] | 1 | 2017-03-16T19:24:33.000Z | 2017-03-16T19:24:33.000Z | filters.py | Phrampu/phrampu | 1c7ab14b2486a679bb9fffab978a522754d10c1f | [
"MIT"
] | 2 | 2016-11-12T22:09:50.000Z | 2016-11-18T19:34:05.000Z | filters.py | Phrampu/phrampu | 1c7ab14b2486a679bb9fffab978a522754d10c1f | [
"MIT"
] | 1 | 2016-11-10T19:24:23.000Z | 2016-11-10T19:24:23.000Z | import logging
class MyFilter(logging.Filter):
def filter(self, record):
return record.name != 'paramiko.transport'
| 16.375 | 50 | 0.694656 | 15 | 131 | 6.066667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198473 | 131 | 7 | 51 | 18.714286 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0.137405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
e190763d875917513e2877e63412397bff1e5255 | 331 | py | Python | pynotes/helpers/__init__.py | afonsopacifer/pynotes | 442b2a3f802d523f1872ba912af880fdd3849062 | [
"MIT"
] | 8 | 2018-07-27T15:06:29.000Z | 2019-07-23T04:01:24.000Z | pynotes/helpers/__init__.py | afonsopacifer/pynotes | 442b2a3f802d523f1872ba912af880fdd3849062 | [
"MIT"
] | null | null | null | pynotes/helpers/__init__.py | afonsopacifer/pynotes | 442b2a3f802d523f1872ba912af880fdd3849062 | [
"MIT"
] | 1 | 2018-07-31T00:43:58.000Z | 2018-07-31T00:43:58.000Z | from .file_exist import file_exist
class helpers:
def file_exist(file_name):
return file_exist(file_name)
class colors:
def success(text):
return '\033[92m' + text
def warning(text):
return '\033[93m' + text
def error(text):
return '\033[... | 19.470588 | 36 | 0.567976 | 41 | 331 | 4.439024 | 0.439024 | 0.197802 | 0.214286 | 0.186813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 0.335347 | 331 | 17 | 37 | 19.470588 | 0.759091 | 0 | 0 | 0 | 0 | 0 | 0.072289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.090909 | 0.363636 | 1 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
e1cdb170c24eb2d41f98543b5553171526b689e6 | 198 | py | Python | scripts/tor.newnym.py | asvdf/joininbox | 0e9c14e4b3ba50eaf35d182a4f48ce36da85be9f | [
"MIT"
] | 102 | 2020-01-20T07:00:28.000Z | 2022-03-28T04:13:13.000Z | scripts/tor.newnym.py | asvdf/joininbox | 0e9c14e4b3ba50eaf35d182a4f48ce36da85be9f | [
"MIT"
] | 66 | 2020-06-14T15:53:22.000Z | 2022-03-12T10:45:01.000Z | scripts/tor.newnym.py | asvdf/joininbox | 0e9c14e4b3ba50eaf35d182a4f48ce36da85be9f | [
"MIT"
] | 17 | 2020-06-21T21:22:03.000Z | 2022-03-11T13:23:20.000Z | #!/usr/bin/env python3
from stem import Signal
from stem.control import Controller
with Controller.from_port(port=9051) as controller:
controller.authenticate()
controller.signal(Signal.NEWNYM)
| 22 | 51 | 0.808081 | 27 | 198 | 5.888889 | 0.592593 | 0.100629 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02809 | 0.10101 | 198 | 8 | 52 | 24.75 | 0.865169 | 0.106061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
bed460a84a5d20781dbbbbdc09c03ebb9273b977 | 148 | py | Python | app/__init__.py | TranscendComputing/StackStudio | f596d1ff6935d63c8aea740fb100459b368bb5c5 | [
"Apache-2.0"
] | null | null | null | app/__init__.py | TranscendComputing/StackStudio | f596d1ff6935d63c8aea740fb100459b368bb5c5 | [
"Apache-2.0"
] | null | null | null | app/__init__.py | TranscendComputing/StackStudio | f596d1ff6935d63c8aea740fb100459b368bb5c5 | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python
#
# Simple app pieces for running StackPlace on GAE
#
# Copyright (c) 2013, Transcend Computing, Inc.
# All rights reserved.
| 21.142857 | 49 | 0.722973 | 21 | 148 | 5.095238 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03252 | 0.168919 | 148 | 6 | 50 | 24.666667 | 0.837398 | 0.918919 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
bed81d921343887d980e663596e3f8cf473510fc | 220 | py | Python | pythonProject/005.py | MontanhaRio/python | 43ad6173d692ebeb153c23c893e4b8f0bf07afcc | [
"MIT"
] | null | null | null | pythonProject/005.py | MontanhaRio/python | 43ad6173d692ebeb153c23c893e4b8f0bf07afcc | [
"MIT"
] | null | null | null | pythonProject/005.py | MontanhaRio/python | 43ad6173d692ebeb153c23c893e4b8f0bf07afcc | [
"MIT"
] | null | null | null | N = int(input('Digite um numero:'))
a = N - 1
s = N + 1
#print('analisando o valor {} , seu antecessor e {} e o sucessor e {} '.format(N, a, s))
print(f'Analisando o valor {N} , seu antecessor e {a} e o sucessor e {s}')
| 36.666667 | 88 | 0.609091 | 42 | 220 | 3.190476 | 0.452381 | 0.029851 | 0.238806 | 0.164179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0.209091 | 220 | 5 | 89 | 44 | 0.758621 | 0.395455 | 0 | 0 | 0 | 0 | 0.613636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
bef4eb3923c67b2d848891c343f3be622cf34ada | 16,373 | py | Python | main.py | alexnaoki/LHC_Hidroweb_Kivy | 089ef1a952843f0f275c53eda179aca7417adb37 | [
"MIT"
] | 5 | 2021-01-15T15:26:56.000Z | 2022-01-01T16:51:10.000Z | main.py | alexnaoki/LHC_Hidroweb_Kivy | 089ef1a952843f0f275c53eda179aca7417adb37 | [
"MIT"
] | null | null | null | main.py | alexnaoki/LHC_Hidroweb_Kivy | 089ef1a952843f0f275c53eda179aca7417adb37 | [
"MIT"
] | null | null | null | from kivy.app import App
from kivy.uix.floatlayout import FloatLayout
from kivy.network.urlrequest import UrlRequest
from kivy.uix.popup import Popup
from kivy.properties import ObjectProperty, StringProperty
from kivy.lang import Builder
from kivy.uix.screenmanager import ScreenManager, Screen
from kivy.uix.filechoose... | 42.527273 | 165 | 0.570329 | 1,749 | 16,373 | 5.202973 | 0.152087 | 0.059231 | 0.056923 | 0.081319 | 0.742527 | 0.72967 | 0.720769 | 0.709231 | 0.687802 | 0.65044 | 0 | 0.007584 | 0.307457 | 16,373 | 384 | 166 | 42.638021 | 0.794955 | 0.121419 | 0 | 0.608541 | 0 | 0.003559 | 0.09947 | 0.012704 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078292 | false | 0.010676 | 0.088968 | 0.003559 | 0.224199 | 0.156584 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 4 |
bef80c9cea9ac3e26d2e15014d8f66cb78145cf2 | 99 | py | Python | apptSchedule/apps.py | MyMedicalAssistant/MyMedicalAssistant | e03758109167cef13efed7ee1d450dbd18a1fed7 | [
"MIT"
] | null | null | null | apptSchedule/apps.py | MyMedicalAssistant/MyMedicalAssistant | e03758109167cef13efed7ee1d450dbd18a1fed7 | [
"MIT"
] | 1 | 2020-08-05T22:58:28.000Z | 2020-08-05T22:58:28.000Z | apptSchedule/apps.py | MyMedicalAssistant/MyMedicalAssistant | e03758109167cef13efed7ee1d450dbd18a1fed7 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class ApptscheduleConfig(AppConfig):
name = 'apptSchedule'
| 16.5 | 36 | 0.777778 | 10 | 99 | 7.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 99 | 5 | 37 | 19.8 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
83457f0b99a40bb668109631db69f0000aa2bba6 | 1,623 | py | Python | tests/test_alphabet.py | bluesheeptoken/CPT | a63db544fdc306515e02245bcd7bc068048da04c | [
"MIT"
] | 38 | 2019-03-25T13:15:03.000Z | 2022-03-28T12:32:45.000Z | tests/test_alphabet.py | bluesheeptoken/CPT | a63db544fdc306515e02245bcd7bc068048da04c | [
"MIT"
] | 20 | 2019-03-25T13:09:04.000Z | 2022-03-29T16:54:27.000Z | tests/test_alphabet.py | bluesheeptoken/CPT | a63db544fdc306515e02245bcd7bc068048da04c | [
"MIT"
] | 3 | 2020-07-03T16:12:07.000Z | 2021-12-28T20:57:24.000Z | import unittest
import pickle
from cpt.alphabet import Alphabet
class AlphabetTest(unittest.TestCase):
def setUp(self):
self.alphabet = Alphabet()
self.alphabet.add_symbol('C')
self.alphabet.add_symbol('P')
self.alphabet.add_symbol('T')
def test_setup(self):
self.ass... | 31.211538 | 73 | 0.667899 | 206 | 1,623 | 5.092233 | 0.194175 | 0.21735 | 0.21735 | 0.308866 | 0.367969 | 0.28408 | 0.216397 | 0.171592 | 0 | 0 | 0 | 0.010031 | 0.201479 | 1,623 | 51 | 74 | 31.823529 | 0.799383 | 0 | 0 | 0.052632 | 0 | 0 | 0.010474 | 0 | 0 | 0 | 0 | 0 | 0.368421 | 1 | 0.263158 | false | 0 | 0.078947 | 0 | 0.368421 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8348d6a83d08cf786a1da36c935a946e54c3db77 | 20,841 | py | Python | moose/ida/mips_identify_syscalls.py | H1d3r/malware-research | b2dad2a7d2e6fd3d469002a864ad5714906ea8e7 | [
"BSD-2-Clause"
] | 322 | 2015-02-28T10:22:31.000Z | 2022-03-08T16:29:55.000Z | moose/ida/mips_identify_syscalls.py | XXXHakuna-MatataXXX/malware-research | 8d0005fc4d29d08063e6c5b0c433c6faa0536659 | [
"BSD-2-Clause"
] | 4 | 2015-05-26T21:06:53.000Z | 2021-03-04T20:56:15.000Z | moose/ida/mips_identify_syscalls.py | XXXHakuna-MatataXXX/malware-research | 8d0005fc4d29d08063e6c5b0c433c6faa0536659 | [
"BSD-2-Clause"
] | 85 | 2015-01-09T12:10:25.000Z | 2022-03-05T18:23:25.000Z | #!/usr/bin/env python
#
# Code related to ESET's Linux/Moose research
# For feedback or questions contact us at: github@eset.com
# https://github.com/eset/malware-research/
#
# This code is provided to the community under the two-clause BSD license as
# follows:
#
# Copyright (C) 2015 ESET
# All rights reserved.
#
# Re... | 47.582192 | 89 | 0.767046 | 3,008 | 20,841 | 4.445479 | 0.307513 | 0.320371 | 0.371672 | 0.504412 | 0.118307 | 0.018546 | 0.010171 | 0.010171 | 0.010171 | 0.010171 | 0 | 0.05506 | 0.084977 | 20,841 | 437 | 90 | 47.691076 | 0.646146 | 0.095917 | 0 | 0 | 0 | 0 | 0.261228 | 0.01937 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.005277 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
55cfd558772756bca9854a49d7750d4639610350 | 133 | py | Python | 2dlist.py | litesh1998/Python3-programs | ab2dd9900bdf686f650024e2c224b568a70477b6 | [
"MIT"
] | null | null | null | 2dlist.py | litesh1998/Python3-programs | ab2dd9900bdf686f650024e2c224b568a70477b6 | [
"MIT"
] | null | null | null | 2dlist.py | litesh1998/Python3-programs | ab2dd9900bdf686f650024e2c224b568a70477b6 | [
"MIT"
] | null | null | null | lf=[]
for i in range(2):
l=[int(i) for i in input().strip().split()]
lf.append(l)
print(lf)
for i in lf:
print(i)
| 16.625 | 48 | 0.526316 | 26 | 133 | 2.692308 | 0.5 | 0.171429 | 0.257143 | 0.228571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010309 | 0.270677 | 133 | 7 | 49 | 19 | 0.71134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0 | 0 | null | 0 | 1 | 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 | 4 |
55f136bc3b81b04c130766f018259a9f1324c326 | 84 | py | Python | src/waldur_openstack/openstack_tenant/__init__.py | geant-multicloud/MCMS-mastermind | 81333180f5e56a0bc88d7dad448505448e01f24e | [
"MIT"
] | 26 | 2017-10-18T13:49:58.000Z | 2021-09-19T04:44:09.000Z | src/waldur_openstack/openstack_tenant/__init__.py | geant-multicloud/MCMS-mastermind | 81333180f5e56a0bc88d7dad448505448e01f24e | [
"MIT"
] | 14 | 2018-12-10T14:14:51.000Z | 2021-06-07T10:33:39.000Z | src/waldur_openstack/openstack_tenant/__init__.py | geant-multicloud/MCMS-mastermind | 81333180f5e56a0bc88d7dad448505448e01f24e | [
"MIT"
] | 32 | 2017-09-24T03:10:45.000Z | 2021-10-16T16:41:09.000Z | default_app_config = 'waldur_openstack.openstack_tenant.apps.OpenStackTenantConfig'
| 42 | 83 | 0.892857 | 9 | 84 | 7.888889 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 84 | 1 | 84 | 84 | 0.876543 | 0 | 0 | 0 | 0 | 0 | 0.714286 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
55f610986bda865aaa74036a78dfc7ac9f37ed93 | 255 | py | Python | python_basic_part_1/8.py | EmilianStoyanov/python_exercises_practice_solution | ed0c4a638d0e3510d61344d1ff6d8a47891253b6 | [
"MIT"
] | null | null | null | python_basic_part_1/8.py | EmilianStoyanov/python_exercises_practice_solution | ed0c4a638d0e3510d61344d1ff6d8a47891253b6 | [
"MIT"
] | null | null | null | python_basic_part_1/8.py | EmilianStoyanov/python_exercises_practice_solution | ed0c4a638d0e3510d61344d1ff6d8a47891253b6 | [
"MIT"
] | null | null | null | color_list = ["Red", "Green", "White", "Black"]
print("%s %s" % (color_list[0], color_list[-1]))
"""
Write a Python program to display the first and last colors from the
following list. Go to the editor
color_list = ["Red","Green","White" ,"Black"]
"""
| 28.333333 | 69 | 0.654902 | 40 | 255 | 4.075 | 0.625 | 0.220859 | 0.147239 | 0.208589 | 0.331288 | 0.331288 | 0 | 0 | 0 | 0 | 0 | 0.009217 | 0.14902 | 255 | 8 | 70 | 31.875 | 0.741935 | 0 | 0 | 0 | 0 | 0 | 0.232323 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 4 |
360222d382a7db34e93416f7fd0de5c4f39b0697 | 5,550 | py | Python | lorikeet/migrations/0001_initial.py | excitedleigh/lorikeet | fe99cf4557736891f2a0e951f0f748074d5e02d4 | [
"MIT"
] | 6 | 2020-02-15T19:22:30.000Z | 2020-12-27T10:58:58.000Z | lorikeet/migrations/0001_initial.py | excitedleigh/lorikeet | fe99cf4557736891f2a0e951f0f748074d5e02d4 | [
"MIT"
] | 79 | 2019-12-29T22:13:51.000Z | 2022-03-30T23:12:37.000Z | lorikeet/migrations/0001_initial.py | excitedleigh/lorikeet | fe99cf4557736891f2a0e951f0f748074d5e02d4 | [
"MIT"
] | 2 | 2019-12-29T22:06:19.000Z | 2020-08-27T20:30:47.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2016-12-13 01:24
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migration... | 30.662983 | 88 | 0.375856 | 358 | 5,550 | 5.673184 | 0.217877 | 0.043328 | 0.068932 | 0.108321 | 0.687346 | 0.687346 | 0.651896 | 0.651896 | 0.651896 | 0.651896 | 0 | 0.008567 | 0.537297 | 5,550 | 180 | 89 | 30.833333 | 0.782321 | 0.012072 | 0 | 0.75 | 1 | 0 | 0.05146 | 0.008394 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.023256 | 0 | 0.046512 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3616f709b22d4e0ad00f5394ba17efd2c32c5375 | 366 | py | Python | ProjectSystem/admin_resign/form.py | matthew9602/Project-Management-System | ba74de0bfd4785a46fbe8b332d8bff1e4eb980a9 | [
"MIT"
] | 1 | 2021-04-01T17:30:58.000Z | 2021-04-01T17:30:58.000Z | ProjectSystem/admin_resign/form.py | MatthewTsan/Project-Management-System | ba74de0bfd4785a46fbe8b332d8bff1e4eb980a9 | [
"MIT"
] | null | null | null | ProjectSystem/admin_resign/form.py | MatthewTsan/Project-Management-System | ba74de0bfd4785a46fbe8b332d8bff1e4eb980a9 | [
"MIT"
] | null | null | null | from django import forms
class resign_form(forms.Form):
username = forms.CharField(max_length=30)
sex = forms.CharField(max_length=30)
birthday = forms.CharField(max_length=30)
phone = forms.CharField(max_length=30)
mobile = forms.CharField(max_length=30)
cardname = forms.CharField(max_length=3... | 33.272727 | 45 | 0.740437 | 51 | 366 | 5.156863 | 0.352941 | 0.372624 | 0.452471 | 0.612167 | 0.665399 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045161 | 0.153005 | 366 | 10 | 46 | 36.6 | 0.803226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 1 | 0 | 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 | 1 | 0 | 0 | 4 |
36351c5a32e68eb0164ebde680d6471c6f55238d | 177 | py | Python | proc_scrapy.py | kyle-yu/scrape_on_lianjia | c811eb2ff27374fdfc9ba1823c5253eb1cba4223 | [
"MIT"
] | null | null | null | proc_scrapy.py | kyle-yu/scrape_on_lianjia | c811eb2ff27374fdfc9ba1823c5253eb1cba4223 | [
"MIT"
] | null | null | null | proc_scrapy.py | kyle-yu/scrape_on_lianjia | c811eb2ff27374fdfc9ba1823c5253eb1cba4223 | [
"MIT"
] | null | null | null | import os
import sys
import subprocess
file_object = open('list.txt')
for line in file_object:
print line
p=subprocess.Popen('scrapy crawl -a dt=20150327 dmoz',shell=True)
| 19.666667 | 65 | 0.762712 | 29 | 177 | 4.586207 | 0.793103 | 0.150376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.141243 | 177 | 8 | 66 | 22.125 | 0.822368 | 0 | 0 | 0 | 0 | 0 | 0.225989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.428571 | null | null | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
3675f653a73588e2b1e69f224113af5e4bb320ef | 92 | py | Python | sqds_seed/apps.py | abey79/sqds | acab1d9c6d4a010fff9d8e89a5fdd9d94def7c89 | [
"MIT"
] | null | null | null | sqds_seed/apps.py | abey79/sqds | acab1d9c6d4a010fff9d8e89a5fdd9d94def7c89 | [
"MIT"
] | null | null | null | sqds_seed/apps.py | abey79/sqds | acab1d9c6d4a010fff9d8e89a5fdd9d94def7c89 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class SqdsSeedConfig(AppConfig):
name = 'sqds_seed'
| 15.333333 | 33 | 0.76087 | 11 | 92 | 6.272727 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163043 | 92 | 5 | 34 | 18.4 | 0.896104 | 0 | 0 | 0 | 0 | 0 | 0.097826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
36863c23f4ae7c5a5de8f903204ae4fca2e480d7 | 2,380 | py | Python | DailyProgrammer/DP20130416W.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | 2 | 2020-12-23T18:59:22.000Z | 2021-04-14T13:16:09.000Z | DailyProgrammer/DP20130416W.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | null | null | null | DailyProgrammer/DP20130416W.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | null | null | null | """
[04/16/13] Week-Long Challenge #1: Make a (tiny) video game!
https://www.reddit.com/r/dailyprogrammer/comments/1ch463/041613_weeklong_challenge_1_make_a_tiny_video_game/
# [](#EasyIcon) *(Easy)*: Make a tiny video game!
**Please note this is an official week-long challenge; all submissions are due by Monday night... | 62.631579 | 119 | 0.765966 | 414 | 2,380 | 4.350242 | 0.55314 | 0.011105 | 0.014992 | 0.02332 | 0.073293 | 0.031094 | 0.031094 | 0 | 0 | 0 | 0 | 0.020875 | 0.154622 | 2,380 | 37 | 120 | 64.324324 | 0.874254 | 0.969748 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0.25 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
3689488664cc0c3933a6d5b6b7e7ea42f374d6b2 | 28 | py | Python | porespy/__version__.py | xu-kai-xu/porespy | 9df231bfd4010e3a13efc66585474e148cd08d6c | [
"MIT"
] | null | null | null | porespy/__version__.py | xu-kai-xu/porespy | 9df231bfd4010e3a13efc66585474e148cd08d6c | [
"MIT"
] | null | null | null | porespy/__version__.py | xu-kai-xu/porespy | 9df231bfd4010e3a13efc66585474e148cd08d6c | [
"MIT"
] | null | null | null | __version__ = '2.0.2.dev16'
| 14 | 27 | 0.678571 | 5 | 28 | 3 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.107143 | 28 | 1 | 28 | 28 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0.392857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
36a4b223a307cd9878e2ca0dd153a9619d8580e1 | 1,907 | py | Python | 06_Transformacoes_do_Conjunto_de_Dados/6.4_Imputacao_de_Valores_Ausentes/6.4.5_Atribuicao_de_Vizinhos_mais_Proximos.py | BrunoBertti/Scikit_Learning | 4b9e10ff7909f3728ac1e8bba19f5fd779340bc4 | [
"MIT"
] | null | null | null | 06_Transformacoes_do_Conjunto_de_Dados/6.4_Imputacao_de_Valores_Ausentes/6.4.5_Atribuicao_de_Vizinhos_mais_Proximos.py | BrunoBertti/Scikit_Learning | 4b9e10ff7909f3728ac1e8bba19f5fd779340bc4 | [
"MIT"
] | null | null | null | 06_Transformacoes_do_Conjunto_de_Dados/6.4_Imputacao_de_Valores_Ausentes/6.4.5_Atribuicao_de_Vizinhos_mais_Proximos.py | BrunoBertti/Scikit_Learning | 4b9e10ff7909f3728ac1e8bba19f5fd779340bc4 | [
"MIT"
] | null | null | null | ########## 6.4.5. Atribuição de vizinhos mais próximos ##########
# A classe KNNImputer fornece imputação para preencher valores ausentes usando a abordagem k-Nearest Neighbors. Por padrão, uma métrica de distância euclidiana que suporta valores ausentes, nan_euclidean_distances, é usada para localizar os vizi... | 86.681818 | 1,178 | 0.785527 | 286 | 1,907 | 5.216783 | 0.566434 | 0.032172 | 0.053619 | 0.025469 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017478 | 0.159937 | 1,907 | 22 | 1,179 | 86.681818 | 0.913858 | 0.863136 | 0 | 0 | 0 | 0 | 0.029787 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
7fc6c4463695b7c526608877f4d2440e4c081573 | 1,220 | gyp | Python | binding.gyp | SalvatorePreviti/roaring-node | 6ab16a27d76c0eef9a016c52d72bcb59812a5b50 | [
"Apache-2.0"
] | 58 | 2018-06-09T05:46:06.000Z | 2022-01-10T11:41:45.000Z | binding.gyp | SalvatorePreviti/roaring-node | 6ab16a27d76c0eef9a016c52d72bcb59812a5b50 | [
"Apache-2.0"
] | 24 | 2018-06-14T00:28:38.000Z | 2022-01-07T22:37:39.000Z | binding.gyp | SalvatorePreviti/roaring-node | 6ab16a27d76c0eef9a016c52d72bcb59812a5b50 | [
"Apache-2.0"
] | 5 | 2020-04-24T20:06:00.000Z | 2022-01-31T07:31:52.000Z | {
"targets": [
{
"target_name": "roaring",
"default_configuration": "Release",
"cflags_cc": ["-O3", "-std=c++14"],
"sources": [
"src/cpp/v8utils/v8utils.cpp",
"src/cpp/RoaringBitmap32.cpp"
],
"conditions"... | 33.888889 | 98 | 0.248361 | 47 | 1,220 | 6.255319 | 0.638298 | 0.040816 | 0.190476 | 0.306122 | 0.44898 | 0.44898 | 0.44898 | 0.44898 | 0.44898 | 0 | 0 | 0.015837 | 0.637705 | 1,220 | 35 | 99 | 34.857143 | 0.649321 | 0 | 0 | 0.171429 | 0 | 0 | 0.271311 | 0.061475 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 4 |
3d0714d90d06760f393370c26f985db039d8cfa8 | 1,074 | py | Python | aoc2019/python/day04.py | austinsalonen/advent_of_code | c085a813511ace023620739f367948c58e7ca5e7 | [
"MIT"
] | null | null | null | aoc2019/python/day04.py | austinsalonen/advent_of_code | c085a813511ace023620739f367948c58e7ca5e7 | [
"MIT"
] | null | null | null | aoc2019/python/day04.py | austinsalonen/advent_of_code | c085a813511ace023620739f367948c58e7ca5e7 | [
"MIT"
] | null | null | null | from functools import reduce
def run_length_encode(num):
def rle(acc, c):
if acc and acc[-1][0] == c:
c,n = acc[-1]
acc[-1] = (c, n+1)
else:
acc.append((c,1))
return acc
return reduce(rle, str(num), [])
assert [('1', 6)] == run_length_encode(111111)
def never_decrease(x):
return all(a[0] <= b[0] ... | 27.538462 | 103 | 0.719739 | 194 | 1,074 | 3.78866 | 0.273196 | 0.110204 | 0.183673 | 0.087075 | 0.609524 | 0.570068 | 0.386395 | 0.302041 | 0.302041 | 0.223129 | 0 | 0.083243 | 0.138734 | 1,074 | 39 | 103 | 27.538462 | 0.711351 | 0 | 0 | 0.142857 | 0 | 0 | 0.015814 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.25 | false | 0 | 0.035714 | 0.107143 | 0.535714 | 0.071429 | 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 | 1 | 1 | 0 | 0 | 4 |
3d0f5da8f484cd974ba36992cf63e79671b8bf2d | 118 | py | Python | app/services/iex/rest_api_to_db/__init__.py | Tinitto/crypto-exchange | cb61664ff0119d8120315b8c6feb77aeba0ec050 | [
"MIT"
] | null | null | null | app/services/iex/rest_api_to_db/__init__.py | Tinitto/crypto-exchange | cb61664ff0119d8120315b8c6feb77aeba0ec050 | [
"MIT"
] | null | null | null | app/services/iex/rest_api_to_db/__init__.py | Tinitto/crypto-exchange | cb61664ff0119d8120315b8c6feb77aeba0ec050 | [
"MIT"
] | null | null | null | """Module containing all the controllers for the rest_api_to_db IEX service"""
IEX_REST_API_TO_DB_CONTROLLERS = [
]
| 19.666667 | 78 | 0.788136 | 19 | 118 | 4.473684 | 0.631579 | 0.164706 | 0.211765 | 0.258824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135593 | 118 | 5 | 79 | 23.6 | 0.833333 | 0.610169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 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 | 4 |
3d118bac865f69734c091263f8416200b6d8b2f5 | 115 | py | Python | guppe/atividades/secao_4/ex009.py | WesleyLucas97/cursos_python | b2cbd393e8fed6e36b84253f7934766f2b4f1de8 | [
"MIT"
] | null | null | null | guppe/atividades/secao_4/ex009.py | WesleyLucas97/cursos_python | b2cbd393e8fed6e36b84253f7934766f2b4f1de8 | [
"MIT"
] | null | null | null | guppe/atividades/secao_4/ex009.py | WesleyLucas97/cursos_python | b2cbd393e8fed6e36b84253f7934766f2b4f1de8 | [
"MIT"
] | null | null | null | c = float(input('Informe a temperatura em Celsius: '))
k = c + 273.15
print(f'A temperatura em Kelvin é de {k}°') | 23 | 54 | 0.66087 | 22 | 115 | 3.5 | 0.772727 | 0.311688 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053191 | 0.182609 | 115 | 5 | 55 | 23 | 0.755319 | 0 | 0 | 0 | 0 | 0 | 0.577586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 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 | 4 |
3d211e570e3b09bff347c2495216c04333e4385c | 285 | py | Python | terrascript/resource/alxrem/hdns.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 507 | 2017-07-26T02:58:38.000Z | 2022-01-21T12:35:13.000Z | terrascript/resource/alxrem/hdns.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 135 | 2017-07-20T12:01:59.000Z | 2021-10-04T22:25:40.000Z | terrascript/resource/alxrem/hdns.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 81 | 2018-02-20T17:55:28.000Z | 2022-01-31T07:08:40.000Z | # terrascript/resource/alxrem/hdns.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:18:18 UTC)
import terrascript
class hdns_record(terrascript.Resource):
pass
class hdns_zone(terrascript.Resource):
pass
__all__ = [
"hdns_record",
"hdns_zone",
]
| 15.833333 | 73 | 0.729825 | 37 | 285 | 5.405405 | 0.594595 | 0.285 | 0.23 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050209 | 0.161404 | 285 | 17 | 74 | 16.764706 | 0.786611 | 0.375439 | 0 | 0.222222 | 1 | 0 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.222222 | 0.111111 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
3d5486ea8e773196ccfb791035021df33f8e0d17 | 122 | py | Python | scphylo/external/gpps/__init__.py | faridrashidi/scphylo-tools | 4574e2c015da58e59caa38e3b3e49b398c1379c1 | [
"BSD-3-Clause"
] | null | null | null | scphylo/external/gpps/__init__.py | faridrashidi/scphylo-tools | 4574e2c015da58e59caa38e3b3e49b398c1379c1 | [
"BSD-3-Clause"
] | null | null | null | scphylo/external/gpps/__init__.py | faridrashidi/scphylo-tools | 4574e2c015da58e59caa38e3b3e49b398c1379c1 | [
"BSD-3-Clause"
] | null | null | null | """External gpps Module."""
from ._gpps_hc import gpps_hc
from ._gpps_ilp import gpps_ilp
__all__ = (gpps_hc, gpps_ilp)
| 17.428571 | 31 | 0.754098 | 20 | 122 | 4 | 0.4 | 0.225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139344 | 122 | 6 | 32 | 20.333333 | 0.761905 | 0.172131 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
e9eeb93c02beb2c401d0d4fd5981249340cb916d | 103 | py | Python | regtests/list/simple.py | bpmbank/PythonJS | 591a80afd8233fb715493591db2b68f1748558d9 | [
"BSD-3-Clause"
] | 319 | 2015-01-02T11:34:16.000Z | 2022-03-25T00:43:33.000Z | regtests/list/simple.py | AlexRacoon/PythonJS | 0bde55dccf3dd5dfe70f31822bcf6257abd33d2a | [
"BSD-3-Clause"
] | 10 | 2015-02-03T02:33:09.000Z | 2021-11-09T21:41:00.000Z | regtests/list/simple.py | AlexRacoon/PythonJS | 0bde55dccf3dd5dfe70f31822bcf6257abd33d2a | [
"BSD-3-Clause"
] | 61 | 2015-01-02T12:01:56.000Z | 2021-12-08T07:16:16.000Z | """basics"""
def main():
a = [1,2,3,4]
TestError( len(a)==4 )
#b = list()
#TestError( len(b)==0 )
| 12.875 | 24 | 0.495146 | 18 | 103 | 2.833333 | 0.722222 | 0.470588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072289 | 0.194175 | 103 | 7 | 25 | 14.714286 | 0.542169 | 0.378641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a159873c7885437fa9fea9a328c23ca33bfa6935 | 1,688 | py | Python | credentials.py | Ruweydha/Password-Locker | e514945078719e2bee0b720364ae3a569fe1c5ea | [
"MIT"
] | null | null | null | credentials.py | Ruweydha/Password-Locker | e514945078719e2bee0b720364ae3a569fe1c5ea | [
"MIT"
] | null | null | null | credentials.py | Ruweydha/Password-Locker | e514945078719e2bee0b720364ae3a569fe1c5ea | [
"MIT"
] | null | null | null | from keyring import delete_password
class Credentials:
'''
Class that generates instances of credentials
'''
passwords = []
def __init__(self, account, password):
'''
__init__ method that helps us define properties for our objects
Args:
account = New credentials a... | 28.133333 | 86 | 0.591825 | 168 | 1,688 | 5.845238 | 0.345238 | 0.050917 | 0.032587 | 0.04888 | 0.120163 | 0.120163 | 0.120163 | 0.120163 | 0.120163 | 0.120163 | 0 | 0 | 0.347749 | 1,688 | 60 | 87 | 28.133333 | 0.891916 | 0.353673 | 0 | 0.291667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.666667 | 0.041667 | 0 | 0.541667 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
a1743cb4543619ffeadbd792f54cf02778642608 | 574 | py | Python | commands/command_config.py | iTechnious/QueueBot | 9348eba96f7d2563d212469c04c5adb4f58d6fb0 | [
"MIT"
] | 1 | 2020-01-01T19:21:23.000Z | 2020-01-01T19:21:23.000Z | commands/command_config.py | AuxiliumCDNG/QueueBot | 9348eba96f7d2563d212469c04c5adb4f58d6fb0 | [
"MIT"
] | 2 | 2020-01-12T19:17:27.000Z | 2020-01-25T21:18:02.000Z | commands/command_config.py | iTechnious/QueueBot | 9348eba96f7d2563d212469c04c5adb4f58d6fb0 | [
"MIT"
] | 1 | 2020-01-04T23:13:14.000Z | 2020-01-04T23:13:14.000Z | import discord
from funcs import change_prefix, change_queue, change_role, change_text, change_video
async def execute(client, message, args):
if args[0] == "prefix":
await change_prefix.execute(client, message, args)
elif args[0] == "queue":
await change_queue.execute(client, message, args)
... | 41 | 85 | 0.679443 | 76 | 574 | 5 | 0.263158 | 0.205263 | 0.315789 | 0.378947 | 0.347368 | 0.347368 | 0.347368 | 0 | 0 | 0 | 0 | 0.010893 | 0.200348 | 574 | 14 | 86 | 41 | 0.816993 | 0 | 0 | 0 | 0 | 0 | 0.041739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.153846 | 0 | 0.153846 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a1d23f857b3e0d965776fc9a092a3b01479cc36a | 139 | py | Python | reddit2telegram/channels/r_polhumor/app.py | mainyordle/reddit2telegram | 1163e15aed3b6ff0fba65b222d3d9798f644c386 | [
"MIT"
] | 187 | 2016-09-20T09:15:54.000Z | 2022-03-29T12:22:33.000Z | reddit2telegram/channels/r_polhumor/app.py | mainyordle/reddit2telegram | 1163e15aed3b6ff0fba65b222d3d9798f644c386 | [
"MIT"
] | 84 | 2016-09-22T14:25:07.000Z | 2022-03-19T01:26:17.000Z | reddit2telegram/channels/r_polhumor/app.py | mainyordle/reddit2telegram | 1163e15aed3b6ff0fba65b222d3d9798f644c386 | [
"MIT"
] | 172 | 2016-09-21T15:39:39.000Z | 2022-03-16T15:15:58.000Z | #encoding:utf-8
subreddit = 'PolHumor'
t_channel = '@r_PolHumor'
def send_post(submission, r2t):
return r2t.send_simple(submission)
| 15.444444 | 38 | 0.741007 | 19 | 139 | 5.210526 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.136691 | 139 | 8 | 39 | 17.375 | 0.8 | 0.100719 | 0 | 0 | 0 | 0 | 0.153226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
a1d2ed2286aaf0397c93a3316fddcf1b9e6e8329 | 113 | py | Python | metadata.py | GuillaumeRochette/Human36MProcessing | 6decb8cbfaaae674fdc59cabf084146b3e8ee892 | [
"Apache-2.0"
] | null | null | null | metadata.py | GuillaumeRochette/Human36MProcessing | 6decb8cbfaaae674fdc59cabf084146b3e8ee892 | [
"Apache-2.0"
] | null | null | null | metadata.py | GuillaumeRochette/Human36MProcessing | 6decb8cbfaaae674fdc59cabf084146b3e8ee892 | [
"Apache-2.0"
] | null | null | null | SUBJECTS = ["S1", "S5", "S6", "S7", "S8", "S9", "S11"]
VIEWS = ["54138969", "55011271", "58860488", "60457274"]
| 28.25 | 56 | 0.530973 | 13 | 113 | 4.615385 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.412371 | 0.141593 | 113 | 3 | 57 | 37.666667 | 0.206186 | 0 | 0 | 0 | 0 | 0 | 0.415929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a1e169b6d92e4a9370b1ba1a559061a06271c8a1 | 118 | py | Python | external/renderWinFix.py | aaronfang/small-Scripts | 890b10ab19fa9cdf2415aaf2dc08b81cc64fc79d | [
"MIT"
] | 1 | 2018-03-08T16:34:00.000Z | 2018-03-08T16:34:00.000Z | external/renderWinFix.py | aaronfang/personal_scripts | 890b10ab19fa9cdf2415aaf2dc08b81cc64fc79d | [
"MIT"
] | null | null | null | external/renderWinFix.py | aaronfang/personal_scripts | 890b10ab19fa9cdf2415aaf2dc08b81cc64fc79d | [
"MIT"
] | null | null | null | from pymel.core import *
import maya.mel as mel
deleteUI('unifiedRenderGlobalsWindow')
mel.eval('buildNewSceneUI;')
| 19.666667 | 38 | 0.788136 | 14 | 118 | 6.642857 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101695 | 118 | 5 | 39 | 23.6 | 0.877358 | 0 | 0 | 0 | 0 | 0 | 0.355932 | 0.220339 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b807278e60b50c5e79811efda7e30019317f2133 | 48 | py | Python | cfdata/tabular/processors/one_hot/__init__.py | carefree0910/carefree-data | ae0f4ea5724b4efd5d76f2a9d420acf3322c1d19 | [
"MIT"
] | 9 | 2020-10-25T11:52:34.000Z | 2022-01-23T02:45:41.000Z | cfdata/tabular/processors/one_hot/__init__.py | carefree0910/carefree-data | ae0f4ea5724b4efd5d76f2a9d420acf3322c1d19 | [
"MIT"
] | 2 | 2020-08-02T01:58:48.000Z | 2021-02-26T11:24:19.000Z | cfdata/tabular/processors/one_hot/__init__.py | carefree0910/carefree-data | ae0f4ea5724b4efd5d76f2a9d420acf3322c1d19 | [
"MIT"
] | 1 | 2021-11-04T14:34:13.000Z | 2021-11-04T14:34:13.000Z | from .core import OneHot
__all__ = ["OneHot"]
| 9.6 | 24 | 0.6875 | 6 | 48 | 4.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 48 | 4 | 25 | 12 | 0.74359 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
62a620928fe4636dba68c4a158736c66ea6ade66 | 67 | py | Python | junn/predict/__init__.py | modsim/junn | a40423b98c6a3739dd0b2ba02d546a5db91f9215 | [
"BSD-2-Clause"
] | null | null | null | junn/predict/__init__.py | modsim/junn | a40423b98c6a3739dd0b2ba02d546a5db91f9215 | [
"BSD-2-Clause"
] | null | null | null | junn/predict/__init__.py | modsim/junn | a40423b98c6a3739dd0b2ba02d546a5db91f9215 | [
"BSD-2-Clause"
] | null | null | null | """Dummy to redirect run-as-module to the junn_predict package."""
| 33.5 | 66 | 0.746269 | 11 | 67 | 4.454545 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119403 | 67 | 1 | 67 | 67 | 0.830508 | 0.895522 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
62a684c948a09d5f9177ddec73c24fd219c6e2db | 1,450 | py | Python | typedb/api/query/future.py | rpatil524/client-python | e8daba79842a81669f4f4c2799bcc8610e610551 | [
"Apache-2.0"
] | 47 | 2019-01-22T19:17:13.000Z | 2021-02-06T15:39:59.000Z | typedb/api/query/future.py | rpatil524/client-python | e8daba79842a81669f4f4c2799bcc8610e610551 | [
"Apache-2.0"
] | 85 | 2019-01-22T14:51:34.000Z | 2021-04-08T15:41:43.000Z | typedb/api/query/future.py | rpatil524/client-python | e8daba79842a81669f4f4c2799bcc8610e610551 | [
"Apache-2.0"
] | 24 | 2019-01-22T13:21:42.000Z | 2021-03-02T18:06:03.000Z | #
# Copyright (C) 2021 Vaticle
#
# 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... | 31.521739 | 81 | 0.722069 | 202 | 1,450 | 5.113861 | 0.485149 | 0.058083 | 0.043562 | 0.030978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00678 | 0.186207 | 1,450 | 45 | 82 | 32.222222 | 0.868644 | 0.537241 | 0 | 0 | 0 | 0 | 0.024615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.0625 | 0.125 | 0.125 | 0.625 | 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 | 1 | 1 | 0 | 0 | 4 |
62a95faa0facd9ac90aa25b393fd7c3589c12db8 | 848 | py | Python | base_map/admin.py | ishuah91/MtaaSafi-Web-App | b3ed936c13d090388986b278d611387c1651b823 | [
"MIT"
] | null | null | null | base_map/admin.py | ishuah91/MtaaSafi-Web-App | b3ed936c13d090388986b278d611387c1651b823 | [
"MIT"
] | null | null | null | base_map/admin.py | ishuah91/MtaaSafi-Web-App | b3ed936c13d090388986b278d611387c1651b823 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.contrib.contenttypes import generic
from base_map.models import BaseSite, Shape, Point, Polygon, MultiPolygon, Line, MultiLine
class PointInline(generic.GenericTabularInline):
max_num = 1
model = Point
class PolygonInline(generic.GenericTabularInline):
max_... | 24.228571 | 90 | 0.728774 | 83 | 848 | 7.373494 | 0.39759 | 0.220588 | 0.245098 | 0.269608 | 0.318627 | 0.318627 | 0 | 0 | 0 | 0 | 0 | 0.007418 | 0.205189 | 848 | 34 | 91 | 24.941176 | 0.900593 | 0 | 0 | 0.185185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.740741 | 0 | 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 | 1 | 0 | 0 | 4 |
62b2fbe40a0675188db493d55122a3023cde4a5e | 115 | py | Python | python/while_lopp.py | sivasant/python_project | d148a1be177a634b25e571b1fc1b710276f3ef3b | [
"Apache-2.0"
] | null | null | null | python/while_lopp.py | sivasant/python_project | d148a1be177a634b25e571b1fc1b710276f3ef3b | [
"Apache-2.0"
] | null | null | null | python/while_lopp.py | sivasant/python_project | d148a1be177a634b25e571b1fc1b710276f3ef3b | [
"Apache-2.0"
] | null | null | null | condition = 1
while condition < 10:
print(condition)
condition += 1
while True:
print('santhosh')
| 14.375 | 22 | 0.626087 | 13 | 115 | 5.538462 | 0.538462 | 0.277778 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.269565 | 115 | 7 | 23 | 16.428571 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0.069565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 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 | 4 |
62b6b637e035cb4f04a05d125e387bd90a4a6055 | 104 | py | Python | cybox/bindings/extensions/location/__init__.py | siemens/python-cybox | b692a98c8a62bd696e2a0dda802ada7359853482 | [
"BSD-3-Clause"
] | null | null | null | cybox/bindings/extensions/location/__init__.py | siemens/python-cybox | b692a98c8a62bd696e2a0dda802ada7359853482 | [
"BSD-3-Clause"
] | null | null | null | cybox/bindings/extensions/location/__init__.py | siemens/python-cybox | b692a98c8a62bd696e2a0dda802ada7359853482 | [
"BSD-3-Clause"
] | 1 | 2019-04-16T18:37:32.000Z | 2019-04-16T18:37:32.000Z | # Copyright (c) 2014, The MITRE Corporation. All rights reserved.
# See LICENSE.txt for complete terms.
| 34.666667 | 65 | 0.759615 | 15 | 104 | 5.266667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.153846 | 104 | 2 | 66 | 52 | 0.852273 | 0.951923 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1a1f3a12b311a67478020822c4ae2b8cdb67f86c | 144 | py | Python | utility/__init__.py | thitta/Python-Automation-Script | 7ffae3350a13201e2070843acb11bc73aa815ce3 | [
"MIT"
] | null | null | null | utility/__init__.py | thitta/Python-Automation-Script | 7ffae3350a13201e2070843acb11bc73aa815ce3 | [
"MIT"
] | null | null | null | utility/__init__.py | thitta/Python-Automation-Script | 7ffae3350a13201e2070843acb11bc73aa815ce3 | [
"MIT"
] | null | null | null | from .file_utility import *
from .template import procedure, NextStep, teardown
__all__ = ["procedure", "NextStep", "FileUtility", "teardown"]
| 28.8 | 62 | 0.75 | 15 | 144 | 6.866667 | 0.666667 | 0.330097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118056 | 144 | 4 | 63 | 36 | 0.811024 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
a7e5d1e8bab69e0a54ddf7ec07ed5fb93b818ed5 | 162 | py | Python | test2/login.py | hungry-Tt/test | fe32f8f3e6ae02213894d8f51cb0d464a7255fcc | [
"Apache-2.0"
] | null | null | null | test2/login.py | hungry-Tt/test | fe32f8f3e6ae02213894d8f51cb0d464a7255fcc | [
"Apache-2.0"
] | null | null | null | test2/login.py | hungry-Tt/test | fe32f8f3e6ae02213894d8f51cb0d464a7255fcc | [
"Apache-2.0"
] | null | null | null | 我是经理鸭
我是你三爹
你明天可以不用来上班了
你爹就是不想上了
CNM
NMSL
<<<<<<< HEAD
11
33
999999999999999
0000000000000000000000
=======
222
>>>>>>> 8c0c2ceb0ca1300b4d93211d74be91e43833d532
| 10.125 | 48 | 0.765432 | 13 | 162 | 9.538462 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.482759 | 0.104938 | 162 | 15 | 49 | 10.8 | 0.372414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c5022ccfc8bcdb4572727a9eda6febde7d3d2f83 | 218 | py | Python | backend/messages/admin.py | HillalRoy/Studenthut | 6aba8208e8f6d2650196c5a0220b62fee2eae108 | [
"Apache-2.0"
] | 1 | 2021-05-01T16:52:30.000Z | 2021-05-01T16:52:30.000Z | backend/messages/admin.py | HillalRoy/Studenthut | 6aba8208e8f6d2650196c5a0220b62fee2eae108 | [
"Apache-2.0"
] | null | null | null | backend/messages/admin.py | HillalRoy/Studenthut | 6aba8208e8f6d2650196c5a0220b62fee2eae108 | [
"Apache-2.0"
] | 1 | 2021-04-29T15:11:47.000Z | 2021-04-29T15:11:47.000Z | from django.contrib import admin
from . import models
@admin.register(models.Message)
class MsgAdmin(admin.ModelAdmin):
pass
@admin.register(models.ClassMessage)
class ClassMsgAdmin(admin.ModelAdmin):
pass
| 16.769231 | 38 | 0.779817 | 26 | 218 | 6.538462 | 0.538462 | 0.152941 | 0.223529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12844 | 218 | 12 | 39 | 18.166667 | 0.894737 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
c525a1b69e396884bafe9bd58f424d1e9bacdeab | 413 | py | Python | pycsca/__init__.py | prithagupta/ml-sca | 7158d8013cea02c316ce86c802b9651b97c6fe36 | [
"Apache-2.0"
] | null | null | null | pycsca/__init__.py | prithagupta/ml-sca | 7158d8013cea02c316ce86c802b9651b97c6fe36 | [
"Apache-2.0"
] | 1 | 2022-02-17T17:21:26.000Z | 2022-02-17T17:21:26.000Z | pycsca/__init__.py | prithagupta/ml-sca | 7158d8013cea02c316ce86c802b9651b97c6fe36 | [
"Apache-2.0"
] | null | null | null | from .baseline import RandomClassifier, MajorityVoting, PriorClassifier
from .csv_reader import CSVReader
from .synthetic_dataset_reader import SyntheticDatasetGenerator
from .real_dataset_generator import RealDatasetGenerator
from .classification_test import optimize_search_cv
from .classifiers import classifiers_spac... | 45.888889 | 71 | 0.871671 | 47 | 413 | 7.425532 | 0.595745 | 0.068768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09201 | 413 | 9 | 72 | 45.888889 | 0.930667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
c54efb0abf61d28303d4290e7360ec51d6b7f181 | 121 | py | Python | dsfp/tests/test_data.py | adamamiller/DSFP-demo | 136daa7fd3684c7c8d469b4bd9b4214118d88529 | [
"MIT"
] | null | null | null | dsfp/tests/test_data.py | adamamiller/DSFP-demo | 136daa7fd3684c7c8d469b4bd9b4214118d88529 | [
"MIT"
] | null | null | null | dsfp/tests/test_data.py | adamamiller/DSFP-demo | 136daa7fd3684c7c8d469b4bd9b4214118d88529 | [
"MIT"
] | null | null | null | from dsfp.data import get_photometry
def test_get_photometry():
data = get_photometry(10)
assert len(data) == 10 | 24.2 | 36 | 0.735537 | 18 | 121 | 4.722222 | 0.611111 | 0.458824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.173554 | 121 | 5 | 37 | 24.2 | 0.81 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c5591302e0e195db119d2d71fb4cfdf055fa46b4 | 276 | py | Python | Challenges/Google/problem_58.py | JeremySomsouk/DailyCodingProblem | ca4e19571b175d92a913b5b373a6f17fccd87731 | [
"Unlicense"
] | 54 | 2019-03-14T21:27:13.000Z | 2021-12-08T12:58:08.000Z | Challenges/Google/problem_58.py | JeremySomsouk/DailyCodingProblem | ca4e19571b175d92a913b5b373a6f17fccd87731 | [
"Unlicense"
] | null | null | null | Challenges/Google/problem_58.py | JeremySomsouk/DailyCodingProblem | ca4e19571b175d92a913b5b373a6f17fccd87731 | [
"Unlicense"
] | 8 | 2020-02-06T23:28:01.000Z | 2021-08-05T20:33:16.000Z | """ Asked by: Google [Hard].
Given a string, split it into as few strings as possible such that each string is a palindrome.
For example, given the input string racecarannakayak, return ["racecar", "anna", "kayak"].
Given the input string abc, return ["a", "b", "c"].
"""
| 27.6 | 95 | 0.692029 | 42 | 276 | 4.547619 | 0.738095 | 0.08377 | 0.136126 | 0.198953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 276 | 9 | 96 | 30.666667 | 0.837719 | 0.963768 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c55b696476c7f3f9706708cb56e62bc5186815e1 | 207 | py | Python | vent/helpers/errors.py | edgardmota/vent | 67b01abc059a3e9e8d16670c7058f0a9e267d8f1 | [
"Apache-2.0"
] | null | null | null | vent/helpers/errors.py | edgardmota/vent | 67b01abc059a3e9e8d16670c7058f0a9e267d8f1 | [
"Apache-2.0"
] | null | null | null | vent/helpers/errors.py | edgardmota/vent | 67b01abc059a3e9e8d16670c7058f0a9e267d8f1 | [
"Apache-2.0"
] | null | null | null | def ErrorHandler(function):
def wrapper(*args, **kwargs):
try:
return function(*args, **kwargs)
except Exception as e: # pragma: no cover
pass
return wrapper
| 25.875 | 50 | 0.570048 | 22 | 207 | 5.363636 | 0.727273 | 0.169492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 207 | 7 | 51 | 29.571429 | 0.855072 | 0.077295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.142857 | 0 | 0 | 0.571429 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
c561a4b73276386325c25a14084dc06e12823791 | 87 | py | Python | bgport/apps.py | shotastage/neco-sys | 60816ceee3eaf36d8d278db72e741d45c3f4af41 | [
"MIT"
] | null | null | null | bgport/apps.py | shotastage/neco-sys | 60816ceee3eaf36d8d278db72e741d45c3f4af41 | [
"MIT"
] | 10 | 2020-02-12T00:37:45.000Z | 2022-03-03T21:58:40.000Z | bgport/apps.py | shotastage/neco-sys | 60816ceee3eaf36d8d278db72e741d45c3f4af41 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class BgportConfig(AppConfig):
name = 'bgport'
| 14.5 | 33 | 0.747126 | 10 | 87 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 87 | 5 | 34 | 17.4 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
c575e41a43c3c3975029340793ce4e0ad061493b | 75 | py | Python | lgp/abcd/task.py | dingmyu/hlsm | 628702789d910f745c74e738efbdd65f0fdb654b | [
"BSD-3-Clause"
] | null | null | null | lgp/abcd/task.py | dingmyu/hlsm | 628702789d910f745c74e738efbdd65f0fdb654b | [
"BSD-3-Clause"
] | null | null | null | lgp/abcd/task.py | dingmyu/hlsm | 628702789d910f745c74e738efbdd65f0fdb654b | [
"BSD-3-Clause"
] | null | null | null | from abc import ABC
class Task(ABC):
def __init__(self):
...
| 10.714286 | 23 | 0.573333 | 10 | 75 | 3.9 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.306667 | 75 | 6 | 24 | 12.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
3d836a57fc3ce550b7c2663e3f433fa1afe1e670 | 716 | py | Python | playmobile/config.py | rajab-murod/playmobile | c00e067a92c71c001c4085cfbd65f04a9f411a37 | [
"MIT"
] | null | null | null | playmobile/config.py | rajab-murod/playmobile | c00e067a92c71c001c4085cfbd65f04a9f411a37 | [
"MIT"
] | null | null | null | playmobile/config.py | rajab-murod/playmobile | c00e067a92c71c001c4085cfbd65f04a9f411a37 | [
"MIT"
] | null | null | null | import base64
from django.conf import settings
class Config:
URL = settings.PLAY_MOBILE_SETTINGS['API_URL']
PREFIX = settings.PLAY_MOBILE_SETTINGS['PREFIX']
DEFAULT_ORIGINATOR = settings.PLAY_MOBILE_SETTINGS['ORIGINATOR']
ORIGINATOR = '3700' if DEFAULT_ORIGINATOR == '' else DEFAULT_ORIGINATOR
LOGI... | 35.8 | 76 | 0.689944 | 82 | 716 | 5.804878 | 0.426829 | 0.12605 | 0.189076 | 0.273109 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020443 | 0.180168 | 716 | 20 | 77 | 35.8 | 0.79046 | 0 | 0 | 0 | 0 | 0 | 0.105997 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.125 | 0 | 0.75 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
3d8805332ffb39c7d58eba2ac173b5e909178677 | 1,191 | py | Python | tests/approximate_als_test.py | yurijmikhalevich/implicit | be5ba9b312a408453701b216dd99093a4986129f | [
"MIT"
] | 1 | 2019-01-16T23:35:24.000Z | 2019-01-16T23:35:24.000Z | tests/approximate_als_test.py | yurijmikhalevich/implicit | be5ba9b312a408453701b216dd99093a4986129f | [
"MIT"
] | null | null | null | tests/approximate_als_test.py | yurijmikhalevich/implicit | be5ba9b312a408453701b216dd99093a4986129f | [
"MIT"
] | null | null | null | from __future__ import print_function
import unittest
from implicit.approximate_als import (AnnoyAlternatingLeastSquares, FaissAlternatingLeastSquares,
NMSLibAlternatingLeastSquares)
from .recommender_base_test import TestRecommenderBaseMixin
# don't require annoy/faiss/nmslib ... | 29.04878 | 97 | 0.700252 | 109 | 1,191 | 7.440367 | 0.486239 | 0.033292 | 0.147965 | 0.159063 | 0.382244 | 0.334155 | 0.334155 | 0.225647 | 0 | 0 | 0 | 0.009879 | 0.235097 | 1,191 | 40 | 98 | 29.775 | 0.880351 | 0.052897 | 0 | 0.413793 | 0 | 0 | 0.010686 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0.103448 | 0.344828 | 0.103448 | 0.655172 | 0.034483 | 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 | 1 | 1 | 0 | 0 | 4 |
3d948c300f0a6fa60842a9be91f7e887ec6bd691 | 149 | py | Python | code/1115.py | minssoj/Learning_Algorithm_Up | 45ec4e2eb4c07c9ec907a74dbd31370e1645c50b | [
"MIT"
] | null | null | null | code/1115.py | minssoj/Learning_Algorithm_Up | 45ec4e2eb4c07c9ec907a74dbd31370e1645c50b | [
"MIT"
] | null | null | null | code/1115.py | minssoj/Learning_Algorithm_Up | 45ec4e2eb4c07c9ec907a74dbd31370e1645c50b | [
"MIT"
] | null | null | null | # 두 정수의 덧셈 (64비트)
# minso.jeong@daum.net
'''
문제링크 : https://www.codeup.kr/problem.php?id=1115
'''
a, b = list(map(int, input().split()))
print(a + b) | 21.285714 | 48 | 0.61745 | 27 | 149 | 3.407407 | 0.925926 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046154 | 0.127517 | 149 | 7 | 49 | 21.285714 | 0.661538 | 0.577181 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
3dd40141f80e114d5c1ca4f717d1ca111dc4d96e | 201 | py | Python | lang/Python/catamorphism-1.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/Python/catamorphism-1.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/Python/catamorphism-1.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | # Python 2.X
from operator import add
listoflists = [['the', 'cat'], ['sat', 'on'], ['the', 'mat']]
help(reduce)
reduce(...)
reduce(add, listoflists, [])
['the', 'cat', 'sat', 'on', 'the', 'mat']
| 15.461538 | 61 | 0.547264 | 26 | 201 | 4.230769 | 0.576923 | 0.254545 | 0.309091 | 0.363636 | 0.563636 | 0.563636 | 0.563636 | 0.563636 | 0 | 0 | 0 | 0.005882 | 0.154229 | 201 | 12 | 62 | 16.75 | 0.641176 | 0.049751 | 0 | 0 | 0 | 0 | 0.180851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 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 | 4 |
3dd4a94e679b747a2cfbdb99a9cff63b9bf0630c | 23 | py | Python | pymattype/version.py | yasirroni/PyMatType | e35d3e7e216473fa4c9d05c4ed31c2f5f86450e3 | [
"MIT"
] | null | null | null | pymattype/version.py | yasirroni/PyMatType | e35d3e7e216473fa4c9d05c4ed31c2f5f86450e3 | [
"MIT"
] | null | null | null | pymattype/version.py | yasirroni/PyMatType | e35d3e7e216473fa4c9d05c4ed31c2f5f86450e3 | [
"MIT"
] | null | null | null | __version__ = "0.0.1a0" | 23 | 23 | 0.695652 | 4 | 23 | 3 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 0.086957 | 23 | 1 | 23 | 23 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0.291667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.