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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9ac2d215665fe8d23ba2ab12a3e27bf4e67d3f6f | 264 | py | Python | app/genres/urls.py | marcosvbras/inimex-api | 1d19289d23bc2cd08672aa6d052803149df7af3e | [
"WTFPL"
] | null | null | null | app/genres/urls.py | marcosvbras/inimex-api | 1d19289d23bc2cd08672aa6d052803149df7af3e | [
"WTFPL"
] | null | null | null | app/genres/urls.py | marcosvbras/inimex-api | 1d19289d23bc2cd08672aa6d052803149df7af3e | [
"WTFPL"
] | 3 | 2019-09-06T17:02:30.000Z | 2021-10-25T23:57:52.000Z | from django.conf.urls import url
from .views import GenreListCreateView, GenreRetrieveUpdateView
urlpatterns = [
url(r'^genres/$', GenreListCreateView.as_view(), name='genre_list_create'),
url(r'^genres/(?P<genre_pk>\d+)$', GenreRetrieveUpdateView.as_view()),
] | 37.714286 | 76 | 0.765152 | 32 | 264 | 6.15625 | 0.65625 | 0.040609 | 0.101523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075758 | 264 | 7 | 77 | 37.714286 | 0.807377 | 0 | 0 | 0 | 0 | 0 | 0.196226 | 0.098113 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
9aceeca95bdefec2b4cc8e397689736b997e4cae | 2,164 | py | Python | kernel_density/kernel_density_config.py | marius-blomli/telefold | be14c41483b6b81a9bc63153a36c7bb175e1e5ac | [
"MIT"
] | null | null | null | kernel_density/kernel_density_config.py | marius-blomli/telefold | be14c41483b6b81a9bc63153a36c7bb175e1e5ac | [
"MIT"
] | null | null | null | kernel_density/kernel_density_config.py | marius-blomli/telefold | be14c41483b6b81a9bc63153a36c7bb175e1e5ac | [
"MIT"
] | null | null | null | config = {
'matrikkel_zip_files': [{
'zip_name': 'Y:/kartdata/Matrikkeldata/SOSIuttrekk/07_Vestfold/0709_Larvik/UTM32_Euref89/Shape/32_Matrikkeldata_0709.zip',
'target_shape_prefix': '32_0709adresse_punkt'
},{
'zip_name': 'Y:/kartdata/Matrikkeldata/SOSIuttrekk/07_Vestfold/0706_Sandefjord/UTM32_Euref89/Shape/32_... | 54.1 | 128 | 0.806377 | 289 | 2,164 | 5.574394 | 0.273356 | 0.039106 | 0.044693 | 0.089385 | 0.605835 | 0.304159 | 0.304159 | 0.304159 | 0.273122 | 0 | 0 | 0.116838 | 0.058688 | 2,164 | 39 | 129 | 55.487179 | 0.67403 | 0 | 0 | 0.205128 | 0 | 0 | 0.85305 | 0.601201 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9ad3ba478acf06877dd826b4425a33af7a16bbb8 | 1,322 | py | Python | tests/download/download_tests.py | jarve/FAIRDATAtest | 7dd32a37a88b240996fcb67210c6e2f71a1091e0 | [
"MIT"
] | null | null | null | tests/download/download_tests.py | jarve/FAIRDATAtest | 7dd32a37a88b240996fcb67210c6e2f71a1091e0 | [
"MIT"
] | null | null | null | tests/download/download_tests.py | jarve/FAIRDATAtest | 7dd32a37a88b240996fcb67210c6e2f71a1091e0 | [
"MIT"
] | null | null | null | import time
import unittest
from tests.download import download
class TestDownload(unittest.TestCase):
@classmethod
def setUpClass(cls):
print('Executing %s...' % cls.__name__)
super().setUpClass()
def setUp(self):
self.OK = [200, 201, 202, 203, 204]
self.FAIL = [401, 403... | 36.722222 | 104 | 0.700454 | 164 | 1,322 | 5.530488 | 0.335366 | 0.066152 | 0.056229 | 0.066152 | 0.6086 | 0.6086 | 0.6086 | 0.6086 | 0.6086 | 0.6086 | 0 | 0.125947 | 0.20121 | 1,322 | 35 | 105 | 37.771429 | 0.732955 | 0.089259 | 0 | 0.217391 | 0 | 0.086957 | 0.292744 | 0.187656 | 0 | 0 | 0 | 0 | 0.130435 | 1 | 0.217391 | false | 0 | 0.130435 | 0 | 0.391304 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9ae02703dc473878cd60b65bcd6439a89d549462 | 1,158 | py | Python | csvkit/exceptions.py | tthibo/csvkit | fb12c7df32504b51b9def6e3cff41c36147616cf | [
"MIT"
] | 2 | 2015-03-06T15:22:02.000Z | 2016-03-11T13:35:48.000Z | csvkit/exceptions.py | tthibo/csvkit | fb12c7df32504b51b9def6e3cff41c36147616cf | [
"MIT"
] | null | null | null | csvkit/exceptions.py | tthibo/csvkit | fb12c7df32504b51b9def6e3cff41c36147616cf | [
"MIT"
] | null | null | null | #!/usr/bin/env python
class ColumnIdentifierError(Exception):
"""
Exception raised when the user supplies an invalid column identifier.
"""
def __init__(self, msg):
self.msg = msg
class XLSDataError(Exception):
"""
Exception raised when there is a problem converting XLS data.
"""
... | 28.95 | 83 | 0.65544 | 137 | 1,158 | 5.313869 | 0.437956 | 0.082418 | 0.06044 | 0.076923 | 0.145604 | 0.145604 | 0.07967 | 0.07967 | 0 | 0 | 0 | 0 | 0.246978 | 1,158 | 39 | 84 | 29.692308 | 0.834862 | 0.291019 | 0 | 0.263158 | 0 | 0 | 0.049007 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0 | 0.052632 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b100e0561aad30cdeececf8275ef55cddc5bc621 | 1,580 | py | Python | examples/processors/other.py | calibre12/zipreport | e6b48c999c530e16600842847a17f650002a0e13 | [
"MIT"
] | null | null | null | examples/processors/other.py | calibre12/zipreport | e6b48c999c530e16600842847a17f650002a0e13 | [
"MIT"
] | null | null | null | examples/processors/other.py | calibre12/zipreport | e6b48c999c530e16600842847a17f650002a0e13 | [
"MIT"
] | null | null | null | from zipreport import ZipReportCli
from zipreport.processors.zipreport import ZipReportClient, ZipReportProcessor
from zipreport.report import ReportFileLoader, ReportJob
from zipreport.template import JinjaRender
def generate_pdf_server(report:str, data: dict, output_file:str) -> bool:
zpt = ReportFileLoader.loa... | 35.111111 | 91 | 0.710759 | 203 | 1,580 | 5.413793 | 0.295567 | 0.043676 | 0.047316 | 0.030937 | 0.647862 | 0.647862 | 0.647862 | 0.647862 | 0.647862 | 0.647862 | 0 | 0.022082 | 0.197468 | 1,580 | 44 | 92 | 35.909091 | 0.844637 | 0.14557 | 0 | 0.727273 | 0 | 0 | 0.018671 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.121212 | 0 | 0.30303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
b12814d054ed75c22f60eaf6b6c69d028a62c9df | 754 | py | Python | Lib/site-packages/pyexcel_io/writers/tsvz.py | percevalm/aumyproject | b24b38005188ce9dd41ed663cf54dad5464afef3 | [
"bzip2-1.0.6"
] | null | null | null | Lib/site-packages/pyexcel_io/writers/tsvz.py | percevalm/aumyproject | b24b38005188ce9dd41ed663cf54dad5464afef3 | [
"bzip2-1.0.6"
] | 16 | 2020-03-24T17:30:37.000Z | 2022-03-11T23:57:41.000Z | Lib/site-packages/pyexcel_io/writers/tsvz.py | percevalm/aumyproject | b24b38005188ce9dd41ed663cf54dad5464afef3 | [
"bzip2-1.0.6"
] | null | null | null | """
pyexcel_io.fileformat.tsvz
~~~~~~~~~~~~~~~~~~~~~~~~~~
The lower level tsvz file format handler.
:copyright: (c) 2014-2017 by Onni Software Ltd.
:license: New BSD License, see LICENSE for more details
"""
from pyexcel_io.constants import FILE_FORMAT_TSVZ, KEYWORD_TSV_DIALECT
from .csvz import ... | 26.928571 | 72 | 0.689655 | 89 | 754 | 5.595506 | 0.595506 | 0.060241 | 0.056225 | 0.064257 | 0.096386 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013245 | 0.198939 | 754 | 27 | 73 | 27.925926 | 0.811258 | 0.388594 | 0 | 0 | 0 | 0 | 0.016746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b135494785a70fb73063ec4b52b691407e172ccc | 967 | py | Python | libs/report/__init__.py | Cookie-YY/cooshow | fe487ff27a4d5fa0a2f832c45694fb4526d9771b | [
"MIT"
] | null | null | null | libs/report/__init__.py | Cookie-YY/cooshow | fe487ff27a4d5fa0a2f832c45694fb4526d9771b | [
"MIT"
] | null | null | null | libs/report/__init__.py | Cookie-YY/cooshow | fe487ff27a4d5fa0a2f832c45694fb4526d9771b | [
"MIT"
] | null | null | null | class Graph:
"""
convert层继承Graph后,将数据放到__init__中之后,执行父类run方法,得到填充好的数据
"""
def __init__(self):
pass
def get_graph(self):
"""
根据传过来的参数找合适的图
"""
pass
def fill_graph(self):
"""
拿到format后的数据,天道graph里面
"""
pass
def _get_dat... | 16.964912 | 57 | 0.54395 | 99 | 967 | 5.030303 | 0.515152 | 0.070281 | 0.040161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016051 | 0.355739 | 967 | 56 | 58 | 17.267857 | 0.783307 | 0.434333 | 0 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.352941 | false | 0.352941 | 0 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b1356ca6ddabc52431e8b28f5c29a332530cfdab | 190 | py | Python | wrappers/scripts/get_last_tx_hash.py | button-tech/ton-grams-testnet | e4d83fef72e24f8ba977bc0dfab9d4f57c1f27ec | [
"MIT"
] | null | null | null | wrappers/scripts/get_last_tx_hash.py | button-tech/ton-grams-testnet | e4d83fef72e24f8ba977bc0dfab9d4f57c1f27ec | [
"MIT"
] | null | null | null | wrappers/scripts/get_last_tx_hash.py | button-tech/ton-grams-testnet | e4d83fef72e24f8ba977bc0dfab9d4f57c1f27ec | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.7
import sys
from ton import get_last_tx_hash
tx_hash = get_last_tx_hash(sys.argv[1], sys.argv[2])
if tx_hash == False:
print("error")
else:
print(tx_hash)
| 15.833333 | 52 | 0.705263 | 36 | 190 | 3.472222 | 0.583333 | 0.24 | 0.144 | 0.208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.157895 | 190 | 11 | 53 | 17.272727 | 0.75625 | 0.121053 | 0 | 0 | 0 | 0 | 0.030303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.285714 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b139ad758af1e15899ea2c47d2b089c2a1cd60cc | 513 | py | Python | d1/part2-d1.py | guillesiesta/advent_of_code_2021 | 0e6a2fa4ada22794c7947cabd049866b43a47e1d | [
"Apache-2.0"
] | null | null | null | d1/part2-d1.py | guillesiesta/advent_of_code_2021 | 0e6a2fa4ada22794c7947cabd049866b43a47e1d | [
"Apache-2.0"
] | null | null | null | d1/part2-d1.py | guillesiesta/advent_of_code_2021 | 0e6a2fa4ada22794c7947cabd049866b43a47e1d | [
"Apache-2.0"
] | null | null | null | # abrir y leer archivo
f = open ('input.txt','r')
mensaje = f.read()
f.close()
# almacenar los números en una lista
list_numbers = mensaje.split('\n')
list_numbers = list(map(int,list_numbers))
#print(list_numbers)
increased = 0
for x in range(len(list_numbers)-3):
previous = list_numbers[x] + list_... | 27 | 74 | 0.668616 | 78 | 513 | 4.25641 | 0.487179 | 0.364458 | 0.216867 | 0.078313 | 0.156627 | 0.156627 | 0.156627 | 0.156627 | 0 | 0 | 0 | 0.019277 | 0.191033 | 513 | 19 | 75 | 27 | 0.780723 | 0.14425 | 0 | 0 | 0 | 0 | 0.028708 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.083333 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b149a6b6d77f47e475bb5e10fe2362b5a66f04fe | 112 | py | Python | exercises/ex005.py | mouraa0/python-exercises | 78ecf1cb0d1dfd7dfbdd05574cce5cd6a5cba0f1 | [
"MIT"
] | null | null | null | exercises/ex005.py | mouraa0/python-exercises | 78ecf1cb0d1dfd7dfbdd05574cce5cd6a5cba0f1 | [
"MIT"
] | null | null | null | exercises/ex005.py | mouraa0/python-exercises | 78ecf1cb0d1dfd7dfbdd05574cce5cd6a5cba0f1 | [
"MIT"
] | null | null | null | n = int(input('Digite um número: '))
ns = n+1
na = n-1
print(f'O sucessor de {n} é {ns} e o antecessor é {na}.') | 28 | 57 | 0.598214 | 25 | 112 | 2.68 | 0.68 | 0.059701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.196429 | 112 | 4 | 57 | 28 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0.575221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b14f5760b3aaebfd8f0c0dc267d7969296a29dad | 22,031 | py | Python | lttnganalyses/core/period.py | azharivs/lamiminer | 168b79074e08837076c832d942d1db290d139930 | [
"MIT"
] | 93 | 2015-02-04T16:55:27.000Z | 2022-03-05T13:25:02.000Z | lttnganalyses/core/period.py | azharivs/lamiminer | 168b79074e08837076c832d942d1db290d139930 | [
"MIT"
] | 49 | 2015-02-03T19:57:44.000Z | 2022-02-27T13:05:55.000Z | lttnganalyses/core/period.py | azharivs/lamiminer | 168b79074e08837076c832d942d1db290d139930 | [
"MIT"
] | 32 | 2015-02-03T19:33:07.000Z | 2020-12-23T13:25:16.000Z | # The MIT License (MIT)
#
# Copyright (C) 2016 - Philippe Proulx <pproulx@efficios.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the... | 28.723598 | 79 | 0.647179 | 2,737 | 22,031 | 4.854951 | 0.112532 | 0.03537 | 0.032661 | 0.02047 | 0.348961 | 0.265879 | 0.215006 | 0.147351 | 0.142836 | 0.131397 | 0 | 0.000938 | 0.274068 | 22,031 | 766 | 80 | 28.761097 | 0.829926 | 0.104943 | 0 | 0.249004 | 0 | 0 | 0.01953 | 0 | 0 | 0 | 0 | 0 | 0.003984 | 1 | 0.203187 | false | 0.005976 | 0.011952 | 0.113546 | 0.458167 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
b153368d5363e8d56f0739e13cb9f730c808550c | 890 | py | Python | portal/migrations/0019_auto_20180813_1116.py | eugenechia95/Project-Document-Submission-Portal | d2534564f0aac7ad3896739719b5e86d4f719eef | [
"Apache-2.0"
] | 1 | 2019-03-06T07:56:44.000Z | 2019-03-06T07:56:44.000Z | portal/migrations/0019_auto_20180813_1116.py | eugenechia95/Project-Document-Submission-Portal | d2534564f0aac7ad3896739719b5e86d4f719eef | [
"Apache-2.0"
] | null | null | null | portal/migrations/0019_auto_20180813_1116.py | eugenechia95/Project-Document-Submission-Portal | d2534564f0aac7ad3896739719b5e86d4f719eef | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.7 on 2018-08-13 03:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('portal', '0018_auto_20180810_1801'),
]
operations = [
migrations.AddField(
model_name='templateinstance',
name='name... | 30.689655 | 109 | 0.613483 | 92 | 890 | 5.804348 | 0.48913 | 0.050562 | 0.140449 | 0.162921 | 0.621723 | 0.621723 | 0.464419 | 0.464419 | 0.464419 | 0.464419 | 0 | 0.064615 | 0.269663 | 890 | 28 | 110 | 31.785714 | 0.756923 | 0.050562 | 0 | 0.5 | 1 | 0 | 0.221827 | 0.027284 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b15fe1a0bc312e52426c6b9ef622373d40e6511e | 39,310 | py | Python | sdk/python/pulumi_aws_native/gamelift/_inputs.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 29 | 2021-09-30T19:32:07.000Z | 2022-03-22T21:06:08.000Z | sdk/python/pulumi_aws_native/gamelift/_inputs.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 232 | 2021-09-30T19:26:26.000Z | 2022-03-31T23:22:06.000Z | sdk/python/pulumi_aws_native/gamelift/_inputs.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 4 | 2021-11-10T19:42:01.000Z | 2022-02-05T10:15:49.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | 42.774755 | 554 | 0.691325 | 4,765 | 39,310 | 5.50829 | 0.090241 | 0.093039 | 0.05974 | 0.039814 | 0.670553 | 0.549358 | 0.49979 | 0.449613 | 0.415247 | 0.379548 | 0 | 0.00219 | 0.21015 | 39,310 | 918 | 555 | 42.821351 | 0.843151 | 0.268201 | 0 | 0.425361 | 1 | 0 | 0.140425 | 0.08414 | 0 | 0 | 0 | 0 | 0 | 1 | 0.215088 | false | 0 | 0.009631 | 0.05618 | 0.351525 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b16e35fecb7f641cc02d82c65e5835be96bef2e5 | 2,213 | py | Python | ptp/tools/robots/parser.py | owtf/ptp | b43e581d7646330810f526432c689c3d88995df9 | [
"BSD-3-Clause"
] | 23 | 2015-03-22T09:18:35.000Z | 2022-03-10T23:28:13.000Z | ptp/tools/robots/parser.py | owtf/ptp | b43e581d7646330810f526432c689c3d88995df9 | [
"BSD-3-Clause"
] | 22 | 2015-07-12T12:23:40.000Z | 2017-02-26T12:39:48.000Z | ptp/tools/robots/parser.py | owtf/ptp | b43e581d7646330810f526432c689c3d88995df9 | [
"BSD-3-Clause"
] | 14 | 2015-06-03T19:16:22.000Z | 2022-03-10T23:28:15.000Z | """
:synopsis: Specialized :class:`ptp.libptp.parser.AbstractParser` classes for the robots.txt files.
.. moduleauthor:: Tao Sauvage
"""
from ptp.libptp.constants import UNKNOWN
from ptp.libptp.parser import LineParser
from ptp.tools.robots.signatures import SIGNATURES
class RobotsParser(LineParser):
"""Robot... | 33.029851 | 112 | 0.643922 | 272 | 2,213 | 5.154412 | 0.393382 | 0.057775 | 0.03709 | 0.034237 | 0.182596 | 0.105563 | 0.105563 | 0.062767 | 0 | 0 | 0 | 0.000601 | 0.248531 | 2,213 | 66 | 113 | 33.530303 | 0.842453 | 0.428378 | 0 | 0 | 0 | 0 | 0.074007 | 0 | 0 | 0 | 0 | 0.015152 | 0 | 1 | 0.166667 | false | 0 | 0.125 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b1a05bcb58e96bbaad0dc46aa2709b4f00beb64c | 2,263 | py | Python | fast_transformers/feature_maps/base.py | SamuelCahyawijaya/fast-transformers | 6ae8ed4cc50bd037968db4f5062e4d328aae73fe | [
"MIT"
] | 1,171 | 2020-06-30T01:57:19.000Z | 2022-03-31T15:11:25.000Z | fast_transformers/feature_maps/base.py | SamuelCahyawijaya/fast-transformers | 6ae8ed4cc50bd037968db4f5062e4d328aae73fe | [
"MIT"
] | 105 | 2020-06-30T14:40:56.000Z | 2022-02-08T16:31:45.000Z | fast_transformers/feature_maps/base.py | SamuelCahyawijaya/fast-transformers | 6ae8ed4cc50bd037968db4f5062e4d328aae73fe | [
"MIT"
] | 127 | 2020-06-26T09:07:48.000Z | 2022-03-25T06:46:37.000Z | #
# Copyright (c) 2020 Idiap Research Institute, http://www.idiap.ch/
# Written by Angelos Katharopoulos <angelos.katharopoulos@idiap.ch>
#
"""Create the feature map interface and some commonly used feature maps.
All attention implementations that expect a feature map shall receive a factory
function that returns a f... | 30.581081 | 79 | 0.687141 | 291 | 2,263 | 5.216495 | 0.357388 | 0.085639 | 0.046113 | 0.033597 | 0.201581 | 0.130435 | 0.054018 | 0.054018 | 0.054018 | 0.054018 | 0 | 0.002875 | 0.231551 | 2,263 | 73 | 80 | 31 | 0.87004 | 0.465312 | 0 | 0.258065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.322581 | false | 0 | 0.096774 | 0.096774 | 0.677419 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b1a3ee57311794655d903b13da4c55485579dd21 | 1,889 | py | Python | PropertyEditor/CustomProperties.py | wizath/pyqt-propertyeditor | 26ba6ea23a73576b6d6973b6c518d3538614a6b6 | [
"MIT"
] | 3 | 2017-11-02T11:07:53.000Z | 2020-01-30T20:10:02.000Z | PropertyEditor/CustomProperties.py | wizath/pyqt-propertyeditor | 26ba6ea23a73576b6d6973b6c518d3538614a6b6 | [
"MIT"
] | null | null | null | PropertyEditor/CustomProperties.py | wizath/pyqt-propertyeditor | 26ba6ea23a73576b6d6973b6c518d3538614a6b6 | [
"MIT"
] | 6 | 2017-01-03T17:44:11.000Z | 2021-09-03T01:25:02.000Z | from PyQt4 import QtCore, QtGui
from Property import Property
# TODO add metaclass with auto-property registering for easier use
# TODO format with PEP8
class ListProperty(Property):
def __init__(self, name, propertyList, parent = None):
super(ListProperty, self).__init__(name, None, parent)
se... | 33.732143 | 94 | 0.665431 | 207 | 1,889 | 5.951691 | 0.352657 | 0.025974 | 0.071429 | 0.046266 | 0.091721 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003401 | 0.22181 | 1,889 | 56 | 95 | 33.732143 | 0.834014 | 0.045527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
49336560063ddc88f7d0dead10de2084bc5866e8 | 1,041 | py | Python | pyshrt_tiny.py | elasyaf/pyshort-cli | 0cb7e8f10d441c303d0d36b05f8d0e86ec4b5774 | [
"Unlicense"
] | null | null | null | pyshrt_tiny.py | elasyaf/pyshort-cli | 0cb7e8f10d441c303d0d36b05f8d0e86ec4b5774 | [
"Unlicense"
] | null | null | null | pyshrt_tiny.py | elasyaf/pyshort-cli | 0cb7e8f10d441c303d0d36b05f8d0e86ec4b5774 | [
"Unlicense"
] | null | null | null | #!/usr/bin/python
# Licence
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
# Version 2, December 2004
# Everyone is permitted to copy and distribute verbatim or modified
# copies of this license document, and changing it is allowed as long
# as the name is changed.
#
# DO WHA... | 26.025 | 70 | 0.692603 | 145 | 1,041 | 4.903448 | 0.586207 | 0.025316 | 0.037975 | 0.054852 | 0.129395 | 0.129395 | 0.129395 | 0.098453 | 0.098453 | 0 | 0 | 0.011097 | 0.220941 | 1,041 | 40 | 71 | 26.025 | 0.865598 | 0.428434 | 0 | 0.2 | 0 | 0 | 0.107692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.4 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
494523c59f1754d55e567211d1d1a74785c21bde | 223 | py | Python | leda/urls.py | banbanchs/leda | 26bf6394aff813bc3f4da30f46bcc7bf597cca3a | [
"MIT"
] | null | null | null | leda/urls.py | banbanchs/leda | 26bf6394aff813bc3f4da30f46bcc7bf597cca3a | [
"MIT"
] | null | null | null | leda/urls.py | banbanchs/leda | 26bf6394aff813bc3f4da30f46bcc7bf597cca3a | [
"MIT"
] | null | null | null | # coding=utf-8
from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^$', include('home.urls', namespace='home')),
url(r'^api/', include('api.urls', namespace='api')),
]
| 22.3 | 56 | 0.663677 | 31 | 223 | 4.774194 | 0.548387 | 0.135135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005208 | 0.139013 | 223 | 9 | 57 | 24.777778 | 0.765625 | 0.053812 | 0 | 0 | 0 | 0 | 0.148325 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
494dfd7da7a566397090621e278b80655c4abca4 | 38,113 | py | Python | Python Calc basic 2.py | Prithwis-2023/PyCalc--The-Python-Calculator | 4241e34714173f4b7d813eb83ccf0fbfaf9432ed | [
"MIT"
] | null | null | null | Python Calc basic 2.py | Prithwis-2023/PyCalc--The-Python-Calculator | 4241e34714173f4b7d813eb83ccf0fbfaf9432ed | [
"MIT"
] | null | null | null | Python Calc basic 2.py | Prithwis-2023/PyCalc--The-Python-Calculator | 4241e34714173f4b7d813eb83ccf0fbfaf9432ed | [
"MIT"
] | null | null | null |
def ADD(A,B):
return A+B
def SUBSTRACT(A,B):
return A-B
def MULTIPLY(A,B):
return A*B
def QUOTIENT_OF_DIVISION(A,B):
return A//B
def REMAINDER_OF_DIVISION(A,B):
return A%B
def AVERAGE(A,B):
return (A+B)/2
def N_ROOT(A,B):
return (A)**(1/B)
def POWER(A,B):
return (A)**(B)... | 35.062557 | 1,588 | 0.449059 | 5,105 | 38,113 | 3.29716 | 0.076396 | 0.018774 | 0.070283 | 0.015447 | 0.686965 | 0.602365 | 0.521566 | 0.498455 | 0.447956 | 0.422172 | 0 | 0.027657 | 0.401385 | 38,113 | 1,086 | 1,589 | 35.094843 | 0.710103 | 0 | 0 | 0.419355 | 0 | 0.00504 | 0.286648 | 0.047225 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009073 | false | 0.004032 | 0.052419 | 0.009073 | 0.070565 | 0.440524 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
494f853c0620ce5e08c9096bfea1e082d704227e | 753 | py | Python | source_examiner.py | rsoaresp/pydep | bcd391d7fa538431e364f611e6cf652d5baa8556 | [
"MIT"
] | null | null | null | source_examiner.py | rsoaresp/pydep | bcd391d7fa538431e364f611e6cf652d5baa8556 | [
"MIT"
] | null | null | null | source_examiner.py | rsoaresp/pydep | bcd391d7fa538431e364f611e6cf652d5baa8556 | [
"MIT"
] | null | null | null | from typing import *
from code_checker import find_functions, find_imports, clean
from load_files import get_source_code
class SourceParser:
def __init__(self, path: str):
self.source_code = get_source_code(path)
def scan(self) -> Dict[str, Dict[str, Set[str]]]:
relations_dict = dict()
... | 27.888889 | 116 | 0.646746 | 101 | 753 | 4.60396 | 0.405941 | 0.086022 | 0.055914 | 0.090323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262948 | 753 | 27 | 117 | 27.888889 | 0.837838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0.058824 | 0.294118 | 0 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
49760a423f475c9850b10a132d14cca7dddef529 | 216 | py | Python | python/dmopc18c5p0.py | ThePeeps191/dmoj-solutions | 7137e945f3f595c481ad4d29e1dc3a77d8b26e55 | [
"MIT"
] | 1 | 2022-01-23T16:02:14.000Z | 2022-01-23T16:02:14.000Z | python/dmopc18c5p0.py | ThePeeps191/dmoj-solutions | 7137e945f3f595c481ad4d29e1dc3a77d8b26e55 | [
"MIT"
] | 5 | 2022-01-23T00:16:49.000Z | 2022-01-30T04:37:45.000Z | python/dmopc18c5p0.py | ThePeeps191/dmoj-solutions | 7137e945f3f595c481ad4d29e1dc3a77d8b26e55 | [
"MIT"
] | 1 | 2022-01-23T00:03:47.000Z | 2022-01-23T00:03:47.000Z | # not yet finished
mode = input()
a = [float(a) for a in input().split()]
b = [float(a) for a in input().split()]
if mode == "Multiply":
print(f"{a[0] * b[0]} {a[1] * b[1]} {a[2] * b[2]}")
elif mode == "Screen":
| 19.636364 | 52 | 0.532407 | 41 | 216 | 2.804878 | 0.487805 | 0.104348 | 0.156522 | 0.173913 | 0.382609 | 0.382609 | 0.382609 | 0 | 0 | 0 | 0 | 0.034483 | 0.194444 | 216 | 10 | 53 | 21.6 | 0.626437 | 0.074074 | 0 | 0 | 0 | 0.166667 | 0.277778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
49783ee4a1e802d5f5076c85bec069585ff1fcb2 | 1,266 | py | Python | src/commands/context.py | an-dyy/lefi-bot | 07f1b97d009dcc3fb8ec52eb14d4503861ac8a74 | [
"MIT"
] | 3 | 2021-07-26T03:28:40.000Z | 2021-07-29T08:16:02.000Z | src/commands/context.py | an-dyy/lefi-bot | 07f1b97d009dcc3fb8ec52eb14d4503861ac8a74 | [
"MIT"
] | null | null | null | src/commands/context.py | an-dyy/lefi-bot | 07f1b97d009dcc3fb8ec52eb14d4503861ac8a74 | [
"MIT"
] | 1 | 2021-07-29T07:50:12.000Z | 2021-07-29T07:50:12.000Z | from __future__ import annotations
import snekcord as s
import typing as t
import inspect
from .command import Command
from ..utils import CheckFailed, maybe_coro
__all__ = ("Context",)
class Context:
def __init__(self, *args, **kwargs):
self.message = kwargs["message"]
self._parser = kwargs["pa... | 26.375 | 66 | 0.639021 | 161 | 1,266 | 4.937888 | 0.347826 | 0.069182 | 0.085535 | 0.040252 | 0.050314 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242496 | 1,266 | 47 | 67 | 26.93617 | 0.828989 | 0 | 0 | 0.138889 | 0 | 0 | 0.018167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.138889 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
497afe4a631c336864b0c3bbbbe1b33c28a92f1f | 594 | py | Python | steps/make/haxe.py | flipcoder/siege-tools | df8a9fa5a4a6f2bcce4789cebe17b0c4dd3f7e60 | [
"MIT"
] | 6 | 2015-08-14T15:26:38.000Z | 2019-11-14T01:08:31.000Z | steps/make/haxe.py | flipcoder/siege-tools | df8a9fa5a4a6f2bcce4789cebe17b0c4dd3f7e60 | [
"MIT"
] | null | null | null | steps/make/haxe.py | flipcoder/siege-tools | df8a9fa5a4a6f2bcce4789cebe17b0c4dd3f7e60 | [
"MIT"
] | 1 | 2019-05-10T04:52:40.000Z | 2019-05-10T04:52:40.000Z | #!/usr/bin/env python
import os
import sgmake
from common import Status
from common import Support
from common import Settings
from common.Plugin import Plugin
import subprocess
from common import call
def make(project):
cmd = [ 'haxe', 'compile.hxml' ]
try:
call(cmd)
except subprocess.Called... | 19.16129 | 47 | 0.695286 | 73 | 594 | 5.657534 | 0.479452 | 0.121065 | 0.154964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 594 | 30 | 48 | 19.8 | 0.893939 | 0.03367 | 0 | 0 | 0 | 0 | 0.048951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0.045455 | 0.363636 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
497e89040f973cc06d1802505835c93f454a4845 | 2,311 | py | Python | services/test/services/test_matchmaking.py | tkblackbelt/Asteroids-Multiplayer-Backend | e09b110ec8698657d8f22f2600e95acc663b1ba0 | [
"Apache-2.0"
] | null | null | null | services/test/services/test_matchmaking.py | tkblackbelt/Asteroids-Multiplayer-Backend | e09b110ec8698657d8f22f2600e95acc663b1ba0 | [
"Apache-2.0"
] | null | null | null | services/test/services/test_matchmaking.py | tkblackbelt/Asteroids-Multiplayer-Backend | e09b110ec8698657d8f22f2600e95acc663b1ba0 | [
"Apache-2.0"
] | null | null | null | # import pytest
# import os
# import boto3
# import inject
# from moto import mock_sqs
# from matchmaking.matchmaking import MatchMakerApp, MatchMakerConfig, get_configuration
# from common.domain.game_queue_interface import GameQueueInterface
# from common.domain.player import Player
# @pytest.fixture(scope='functio... | 33.492754 | 118 | 0.679792 | 254 | 2,311 | 5.925197 | 0.330709 | 0.071761 | 0.031894 | 0.037874 | 0.480399 | 0.406645 | 0.295681 | 0.295681 | 0.295681 | 0.295681 | 0 | 0.009858 | 0.209866 | 2,311 | 68 | 119 | 33.985294 | 0.814348 | 0.943315 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b8cc36ac004126dbe3a1efa158ec0dfa5415912d | 1,300 | py | Python | authorstyle/preprocessing/util.py | mullerpeter/authorstyle | 9cb869e6428f5115478c6be516451b28572189bf | [
"MIT"
] | 1 | 2020-08-28T10:02:54.000Z | 2020-08-28T10:02:54.000Z | authorstyle/preprocessing/util.py | mullerpeter/authorstyle | 9cb869e6428f5115478c6be516451b28572189bf | [
"MIT"
] | null | null | null | authorstyle/preprocessing/util.py | mullerpeter/authorstyle | 9cb869e6428f5115478c6be516451b28572189bf | [
"MIT"
] | null | null | null | from nltk.corpus import stopwords as nltk_stopwords
from nltk.tokenize import RegexpTokenizer
from nltk.stem import PorterStemmer
def make_tokens_alphabetic(text):
"""
Remove all non alphabetic tokens
:type text: str
:param text: The text
:rtype List of str
:returns List of alphabetic tokens
... | 28.888889 | 114 | 0.698462 | 183 | 1,300 | 4.918033 | 0.322404 | 0.08 | 0.06 | 0.046667 | 0.246667 | 0.232222 | 0.232222 | 0.142222 | 0.093333 | 0.093333 | 0 | 0 | 0.229231 | 1,300 | 44 | 115 | 29.545455 | 0.898204 | 0.485385 | 0 | 0 | 0 | 0 | 0.017668 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b8cdcbe6652c846189ff84a7c167532b9b6fb956 | 555 | py | Python | src/pss_achievement.py | PieInTheSky-Inc/pss-statistics | be57974f0f0a36a9a0ea1e2117348f6f481b26b0 | [
"Apache-2.0"
] | 12 | 2019-11-06T12:02:37.000Z | 2022-03-17T17:24:47.000Z | src/pss_achievement.py | PieInTheSky-Inc/pss-statistics | be57974f0f0a36a9a0ea1e2117348f6f481b26b0 | [
"Apache-2.0"
] | 243 | 2019-11-06T12:05:01.000Z | 2022-03-28T13:37:17.000Z | src/pss_achievement.py | PieInTheSky-Inc/pss-statistics | be57974f0f0a36a9a0ea1e2117348f6f481b26b0 | [
"Apache-2.0"
] | 19 | 2019-11-06T02:17:48.000Z | 2022-01-27T02:40:07.000Z | import pss_entity as entity
# ---------- Constants ----------
ACHIEVEMENT_DESIGN_BASE_PATH: str = 'AchievementService/ListAchievementDesigns2?languageKey=en'
ACHIEVEMENT_DESIGN_KEY_NAME: str = 'AchievementDesignId'
ACHIEVEMENT_DESIGN_DESCRIPTION_PROPERTY_NAME: str = 'AchievementTitle'
# ---------- Initialization -... | 30.833333 | 95 | 0.78018 | 50 | 555 | 8.2 | 0.52 | 0.24878 | 0.102439 | 0.121951 | 0.195122 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001996 | 0.097297 | 555 | 18 | 96 | 30.833333 | 0.816367 | 0.122523 | 0 | 0 | 0 | 0 | 0.226804 | 0.117526 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b8d69ce1eb58c86311657fe6011b6313c8150db1 | 6,841 | py | Python | dacScanV3.py | lpetre-ulb/vfatqc-python-scripts | 1f11c736de630deba24c7da927eeb9746206db93 | [
"MIT"
] | 1 | 2017-07-10T12:48:27.000Z | 2017-07-10T12:48:27.000Z | dacScanV3.py | lpetre-ulb/vfatqc-python-scripts | 1f11c736de630deba24c7da927eeb9746206db93 | [
"MIT"
] | 200 | 2016-11-11T16:13:22.000Z | 2020-05-27T13:41:39.000Z | dacScanV3.py | lpetre-ulb/vfatqc-python-scripts | 1f11c736de630deba24c7da927eeb9746206db93 | [
"MIT"
] | 20 | 2016-09-14T12:41:46.000Z | 2020-02-10T19:46:04.000Z | #!/bin/env python
r"""
Dac Scan
========
Performs a VFAT3 DAC scan on all unmasked optohybrids. Measures the correspondence between DAC units
and physical values (in fC, uA, or V depending on the register of interest).
``dacScanV3.py``
================
Synopsis
--------
**run_scans.py** **dacScanV3** [-**h**] [--*... | 37.587912 | 333 | 0.652536 | 845 | 6,841 | 5.233136 | 0.360947 | 0.024423 | 0.046133 | 0.02171 | 0.180914 | 0.176391 | 0.131162 | 0.131162 | 0.113523 | 0.113523 | 0 | 0.009303 | 0.230083 | 6,841 | 181 | 334 | 37.79558 | 0.830264 | 0.053501 | 0 | 0.287356 | 0 | 0.045977 | 0.280376 | 0 | 0 | 0 | 0.002598 | 0 | 0 | 0 | null | null | 0.057471 | 0.137931 | null | null | 0.091954 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b8f60a2ee265799459028ba389432e56f7f85ac3 | 437 | py | Python | running_modes/validation/logging/local_validation_logger.py | lilleswing/Reinvent-1 | ac4e3e6fa6379c6f4af883478dfd1b3407933ada | [
"Apache-2.0"
] | 183 | 2020-04-04T02:01:15.000Z | 2022-03-30T21:56:56.000Z | running_modes/validation/logging/local_validation_logger.py | prasannavd/Reinvent | ca02ebee8d8ed83223c55f4a1dd1b3fbc2359616 | [
"MIT"
] | 39 | 2020-04-05T15:19:56.000Z | 2022-03-09T12:58:21.000Z | running_modes/validation/logging/local_validation_logger.py | prasannavd/Reinvent | ca02ebee8d8ed83223c55f4a1dd1b3fbc2359616 | [
"MIT"
] | 70 | 2020-04-05T19:25:43.000Z | 2022-02-22T12:04:39.000Z | from running_modes.configurations.general_configuration_envelope import GeneralConfigurationEnvelope
from running_modes.validation.logging.base_validation_logger import BaseValidationLogger
class LocalValidationLogger(BaseValidationLogger):
def __init__(self, configuration: GeneralConfigurationEnvelope):
... | 36.416667 | 100 | 0.828375 | 41 | 437 | 8.414634 | 0.609756 | 0.063768 | 0.092754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10984 | 437 | 11 | 101 | 39.727273 | 0.886889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b8fe5d38825946ccc2ee8d9ee6a81d3d2f1b86e1 | 314 | py | Python | desafio_007_media_aritmetica.py | VagnerGit/PythonCursoEmVideo | 3e80e12fbf21f5be08c554d77fa9073dc0a3145f | [
"MIT"
] | null | null | null | desafio_007_media_aritmetica.py | VagnerGit/PythonCursoEmVideo | 3e80e12fbf21f5be08c554d77fa9073dc0a3145f | [
"MIT"
] | null | null | null | desafio_007_media_aritmetica.py | VagnerGit/PythonCursoEmVideo | 3e80e12fbf21f5be08c554d77fa9073dc0a3145f | [
"MIT"
] | null | null | null | """
Exercício Python 7:
Desenvolva um programa que leia as duas
notas de um aluno, calcule e mostre a sua média.
"""
n1 = float(input('Digite nota AV: '))
n2 = float(input('Digite Nota AVS: '))
n3 = float(input('Digite nota VR: '))
#media = (n1+n2+n3)/3
print('A media do aluno é {:.1f}'.format((n1+n2+n3)/3))
| 28.545455 | 55 | 0.652866 | 55 | 314 | 3.727273 | 0.654545 | 0.146341 | 0.234146 | 0.292683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049808 | 0.16879 | 314 | 10 | 56 | 31.4 | 0.735632 | 0.423567 | 0 | 0 | 0 | 0 | 0.427746 | 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 | 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 | 2 |
7702c6429016f81529601cedcd461d2e7b9ff30a | 1,248 | py | Python | wwpdb/utils/tests-nmr-tox/ImportTests.py | wwPDB/py-wwpdb_utils_nmr | 531f1cf5dba0c1fb4e5d710d740c3ee05d34dafb | [
"Apache-2.0"
] | null | null | null | wwpdb/utils/tests-nmr-tox/ImportTests.py | wwPDB/py-wwpdb_utils_nmr | 531f1cf5dba0c1fb4e5d710d740c3ee05d34dafb | [
"Apache-2.0"
] | null | null | null | wwpdb/utils/tests-nmr-tox/ImportTests.py | wwPDB/py-wwpdb_utils_nmr | 531f1cf5dba0c1fb4e5d710d740c3ee05d34dafb | [
"Apache-2.0"
] | 1 | 2021-06-21T10:46:22.000Z | 2021-06-21T10:46:22.000Z | ##
# File: NEFImportTests.py
# Date: 06-Oct-2018 E. Peisach
#
# Updates:
##
"""Test cases for NEFTranslator - simply import everything to ensure imports work"""
import unittest
import sys
if __package__ is None or __package__ == "":
from os import path
sys.path.append(path.dirname(path.dirname(path.abspath... | 31.2 | 96 | 0.725962 | 150 | 1,248 | 5.866667 | 0.46 | 0.061364 | 0.095455 | 0.115909 | 0.118182 | 0.118182 | 0.118182 | 0.118182 | 0 | 0 | 0 | 0.029211 | 0.177083 | 1,248 | 39 | 97 | 32 | 0.827653 | 0.254006 | 0 | 0 | 0 | 0 | 0.008791 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.5 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
771f182baf79a3a8864e33668bb6f90ad253cc46 | 2,175 | py | Python | emLam/corpus/multi_file_writer.py | DavidNemeskey/emLam | 89359e7eee5b7b9c596dec8ab6654591d4039e3e | [
"MIT"
] | 2 | 2018-03-31T10:00:11.000Z | 2018-09-15T19:38:19.000Z | emLam/corpus/multi_file_writer.py | DavidNemeskey/emLam | 89359e7eee5b7b9c596dec8ab6654591d4039e3e | [
"MIT"
] | 16 | 2017-02-28T13:58:28.000Z | 2018-03-14T11:42:01.000Z | emLam/corpus/multi_file_writer.py | dlt-rilmta/emLam | 2b7274dcda4080445698e10b34a3db2e2eed5112 | [
"MIT"
] | 1 | 2017-01-30T15:06:37.000Z | 2017-01-30T15:06:37.000Z | #!/usr/bin/env python3
"""Defines ways to "convert" a file name to an input/output stream."""
from __future__ import absolute_import, division, print_function
from builtins import range
from io import TextIOBase
import math
import os
from emLam.utils import allname, openall
class MultiFileWriter(TextIOBase):
def... | 29.794521 | 77 | 0.597241 | 294 | 2,175 | 4.217687 | 0.329932 | 0.064516 | 0.044355 | 0.048387 | 0.117742 | 0.091935 | 0.091935 | 0.046774 | 0 | 0 | 0 | 0.009126 | 0.294713 | 2,175 | 72 | 78 | 30.208333 | 0.799218 | 0.085517 | 0 | 0.169811 | 0 | 0 | 0.012295 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.207547 | false | 0 | 0.113208 | 0.113208 | 0.471698 | 0.018868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
7727342447537ee5cc16bae72c12b32f1db5dc54 | 2,064 | py | Python | pyaz/backup/vault/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/backup/vault/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/backup/vault/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | 1 | 2022-02-03T09:12:01.000Z | 2022-02-03T09:12:01.000Z | '''
Online storage entity in Azure used to hold data such as backup copies, recovery points and backup policies.
'''
from ... pyaz_utils import _call_az
from . import backup_properties, encryption, identity
def create(location, name, resource_group, tags=None):
'''
Create a new Recovery Services vault.
R... | 35.586207 | 161 | 0.702519 | 267 | 2,064 | 5.355805 | 0.303371 | 0.109091 | 0.073427 | 0.062937 | 0.52028 | 0.464336 | 0.429371 | 0.429371 | 0.429371 | 0.429371 | 0 | 0 | 0.200581 | 2,064 | 57 | 162 | 36.210526 | 0.866667 | 0.685078 | 0 | 0 | 0 | 0 | 0.163743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
7748a409ddb122ff7dda205c1356cad3425fc3ef | 226 | py | Python | variants/urls.py | raonyguimaraes/mendelmd | 7f8f98a55b12c1fe9dfc2d95905a6128ca800091 | [
"BSD-3-Clause"
] | 33 | 2016-07-22T21:39:09.000Z | 2021-06-24T02:57:02.000Z | variants/urls.py | raonyguimaraes/mendelmd | 7f8f98a55b12c1fe9dfc2d95905a6128ca800091 | [
"BSD-3-Clause"
] | 41 | 2017-06-20T03:10:33.000Z | 2021-12-24T23:54:41.000Z | variants/urls.py | raonyguimaraes/mendelmd | 7f8f98a55b12c1fe9dfc2d95905a6128ca800091 | [
"BSD-3-Clause"
] | 8 | 2017-06-14T21:07:47.000Z | 2021-01-12T17:59:49.000Z | from django.conf.urls import *
from . import views
from django.urls import include, path
urlpatterns = [
path('', views.index, name='variant_index'),
path('view/<int:variant_id>/', views.view, name='variant_view'),
] | 25.111111 | 68 | 0.699115 | 31 | 226 | 5 | 0.483871 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141593 | 226 | 9 | 69 | 25.111111 | 0.798969 | 0 | 0 | 0 | 0 | 0 | 0.207048 | 0.096916 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
77542820ab0a7920b93751412fd4a15d7d8291c8 | 159 | py | Python | root/models.py | radoslawdabrowski/radoslawdabrowski.pl | b3d4f92ea51b40b104449259a376134aeb11766b | [
"Apache-2.0"
] | 1 | 2019-05-17T10:57:25.000Z | 2019-05-17T10:57:25.000Z | root/models.py | radoslawdabrowski/radoslawdabrowski.pl | b3d4f92ea51b40b104449259a376134aeb11766b | [
"Apache-2.0"
] | 1 | 2019-08-06T01:55:54.000Z | 2019-08-06T01:55:54.000Z | root/models.py | radoslawdabrowski/personal-website | b3d4f92ea51b40b104449259a376134aeb11766b | [
"MIT"
] | 1 | 2019-05-07T21:23:57.000Z | 2019-05-07T21:23:57.000Z | from django.db import models
# Const
DEFAULT_ID = 1
class BaseModel(models.Model):
objects = models.Manager()
class Meta:
abstract = True
| 12.230769 | 30 | 0.666667 | 20 | 159 | 5.25 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008403 | 0.251572 | 159 | 12 | 31 | 13.25 | 0.87395 | 0.031447 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
775d4714b6856f633e120322cfcb970d141f530a | 621 | py | Python | api/views/asset.py | lndba/apasa_backend | e0bb96e22a22f6e2a5a2826f225388113473e7e2 | [
"Apache-2.0"
] | 1 | 2019-08-06T07:31:40.000Z | 2019-08-06T07:31:40.000Z | api/views/asset.py | lndba/apasa_backend | e0bb96e22a22f6e2a5a2826f225388113473e7e2 | [
"Apache-2.0"
] | null | null | null | api/views/asset.py | lndba/apasa_backend | e0bb96e22a22f6e2a5a2826f225388113473e7e2 | [
"Apache-2.0"
] | null | null | null | from rest_framework.viewsets import ModelViewSet
from api.models import *
from api.serializers.asset import *
from api.pagination.page import MyPageNumberPagination
class AssetListViewSet(ModelViewSet):
queryset = Asset.objects.all().order_by('id')
pagination_class = MyPageNumberPagination
serializer_cla... | 24.84 | 54 | 0.78744 | 63 | 621 | 7.634921 | 0.428571 | 0.043659 | 0.155925 | 0.199584 | 0.336798 | 0.336798 | 0.336798 | 0.336798 | 0.245322 | 0.245322 | 0 | 0 | 0.130435 | 621 | 24 | 55 | 25.875 | 0.890741 | 0 | 0 | 0.214286 | 0 | 0 | 0.009709 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
77606ddbd8837bece3247917199682103e7b6859 | 844 | py | Python | oneibl/globus.py | nbonacchi/ibllib | 9066c00a8e9a65a1d209144a2ac54d0b87bec0b3 | [
"MIT"
] | 1 | 2020-11-21T07:02:21.000Z | 2020-11-21T07:02:21.000Z | oneibl/globus.py | nbonacchi/ibllib | 9066c00a8e9a65a1d209144a2ac54d0b87bec0b3 | [
"MIT"
] | null | null | null | oneibl/globus.py | nbonacchi/ibllib | 9066c00a8e9a65a1d209144a2ac54d0b87bec0b3 | [
"MIT"
] | null | null | null | from ibllib.io import globus
from oneibl.one import ONE
import oneibl.params
par = oneibl.params.get()
class OneGlobus(ONE):
def __init__(self, **kwargs):
# Init connection to the database
super(OneGlobus, self).__init__(**kwargs)
# Init connection to Globus if needed
self._tc = ... | 27.225806 | 83 | 0.686019 | 106 | 844 | 5.188679 | 0.462264 | 0.065455 | 0.072727 | 0.08 | 0.181818 | 0.181818 | 0.181818 | 0.181818 | 0.181818 | 0.181818 | 0 | 0 | 0.193128 | 844 | 30 | 84 | 28.133333 | 0.807636 | 0.393365 | 0 | 0 | 0 | 0 | 0.075697 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.076923 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
776074899b373caca325ce2db69a4c1bee3a951f | 6,348 | py | Python | web/webapp/models.py | chickenshifu/InstagramBot | f7f042ee919a02e41de74bf0f91ce8ccc9ade798 | [
"Unlicense"
] | 2 | 2021-02-13T20:05:39.000Z | 2021-10-11T18:56:43.000Z | web/webapp/models.py | chickenshifu/InstagramBot | f7f042ee919a02e41de74bf0f91ce8ccc9ade798 | [
"Unlicense"
] | null | null | null | web/webapp/models.py | chickenshifu/InstagramBot | f7f042ee919a02e41de74bf0f91ce8ccc9ade798 | [
"Unlicense"
] | 1 | 2021-03-19T19:11:35.000Z | 2021-03-19T19:11:35.000Z | from webapp import db, login_manager
from datetime import datetime
from werkzeug.security import generate_password_hash, check_password_hash
from flask_login import UserMixin # is_authenticated is_loggedin usw...
@login_manager.user_loader # if user is authenticated, then....
def load_user(user_id):
return Us... | 31.899497 | 173 | 0.698803 | 863 | 6,348 | 4.852839 | 0.128621 | 0.122254 | 0.152818 | 0.091691 | 0.539637 | 0.44341 | 0.374881 | 0.356256 | 0.292264 | 0.262178 | 0 | 0.014201 | 0.179112 | 6,348 | 198 | 174 | 32.060606 | 0.789484 | 0.011027 | 0 | 0.333333 | 1 | 0.007092 | 0.091474 | 0.014821 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134752 | false | 0.042553 | 0.028369 | 0.056738 | 0.865248 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
91f7be2931c63738cfe743d7a595fd6581ccef00 | 19,502 | py | Python | tests/test_nest_MPI_threading/check_result.py | mfahdaz/TVB-NEST | c16e18f41ff07b33482a55f4a033b8c698051c9a | [
"Apache-2.0"
] | 2 | 2020-10-21T11:45:19.000Z | 2020-12-01T09:32:53.000Z | tests/test_nest_MPI_threading/check_result.py | mfahdaz/TVB-NEST | c16e18f41ff07b33482a55f4a033b8c698051c9a | [
"Apache-2.0"
] | 10 | 2020-11-17T09:33:19.000Z | 2022-01-11T17:00:40.000Z | tests/test_nest_MPI_threading/check_result.py | mfahdaz/TVB-NEST | c16e18f41ff07b33482a55f4a033b8c698051c9a | [
"Apache-2.0"
] | 9 | 2020-11-17T08:52:51.000Z | 2021-12-10T12:25:04.000Z | # Copyright 2020 Forschungszentrum Jülich GmbH and Aix-Marseille Université
# "Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements; and to You under the Apache License, Version 2.0. "
import numpy as np
import sys
import os
import copy
def get_data(path,nb_mpi,labels=['s... | 46.544153 | 163 | 0.57389 | 2,889 | 19,502 | 3.722395 | 0.073036 | 0.065092 | 0.046029 | 0.030686 | 0.738516 | 0.694346 | 0.681886 | 0.647759 | 0.614562 | 0.602009 | 0 | 0.041341 | 0.304174 | 19,502 | 419 | 164 | 46.544153 | 0.751142 | 0.319557 | 0 | 0.605948 | 0 | 0 | 0.084419 | 0 | 0 | 0 | 0 | 0.02148 | 0 | 1 | 0.033457 | false | 0 | 0.01487 | 0 | 0.052045 | 0.152416 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6203a1e9f399c656dfba1a70bc7d6c5384556fb5 | 2,136 | py | Python | ABetterProposal/db/experiments_db.py | ebord/ABetterProposal | e1fec4ae21c35e7eda9e0faa6a9abb6b04f5021b | [
"MIT"
] | null | null | null | ABetterProposal/db/experiments_db.py | ebord/ABetterProposal | e1fec4ae21c35e7eda9e0faa6a9abb6b04f5021b | [
"MIT"
] | null | null | null | ABetterProposal/db/experiments_db.py | ebord/ABetterProposal | e1fec4ae21c35e7eda9e0faa6a9abb6b04f5021b | [
"MIT"
] | null | null | null | from flask import (
Blueprint, flash, g, redirect, render_template, request, session, url_for
)
# Blueprint Configuration
db_bp = Blueprint('db_bp', __name__,
template_folder='templates',
static_folder='static')
# this will be the experiment db dashboard page, only accessib... | 44.5 | 92 | 0.731273 | 295 | 2,136 | 5.125424 | 0.172881 | 0.126984 | 0.074074 | 0.034392 | 0.76455 | 0.76455 | 0.652778 | 0.652778 | 0.652778 | 0.652778 | 0 | 0 | 0.190075 | 2,136 | 48 | 93 | 44.5 | 0.873988 | 0.404026 | 0 | 0.307692 | 0 | 0 | 0.261147 | 0.121019 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.038462 | 0 | 0.5 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 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 | 2 |
620aefcfda08fb1a87c47faf813214712ea795ae | 366 | py | Python | bnn_mcmc_examples/examples/mlp/noisy_xor/setting1/optim/sgd/constants.py | papamarkou/bnn_mcmc_examples | 7bb4ecfb33db4c30a8e61e31f528bda0efb24e3d | [
"MIT"
] | 1 | 2021-09-09T15:55:37.000Z | 2021-09-09T15:55:37.000Z | bnn_mcmc_examples/examples/mlp/noisy_xor/setting1/optim/sgd/constants.py | kushagragpt99/bnn_mcmc_examples | 297cdb1e74335860989bebdb4ff6f6322b6adc06 | [
"MIT"
] | null | null | null | bnn_mcmc_examples/examples/mlp/noisy_xor/setting1/optim/sgd/constants.py | kushagragpt99/bnn_mcmc_examples | 297cdb1e74335860989bebdb4ff6f6322b6adc06 | [
"MIT"
] | 1 | 2021-10-05T06:38:57.000Z | 2021-10-05T06:38:57.000Z | # %% Import packages
from bnn_mcmc_examples.examples.mlp.noisy_xor.setting1.constants import output_path
# %% Define optimizer-specific output directories
optimizer_output_path = output_path.joinpath('sgd')
optimizer_output_pilot_path = optimizer_output_path.joinpath('pilot_run')
optimizer_output_benchmark_path = op... | 36.6 | 83 | 0.846995 | 47 | 366 | 6.191489 | 0.468085 | 0.171821 | 0.195876 | 0.158076 | 0.213058 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002941 | 0.071038 | 366 | 9 | 84 | 40.666667 | 0.852941 | 0.180328 | 0 | 0 | 0 | 0 | 0.084175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6221da779148edbe63710dce5f8a0b88e5a4ba62 | 3,492 | py | Python | easyxsd/utils.py | gnrfan/python-easyxsd | 26b8a25599fce1d9c80de47d6e3f424979ff71b2 | [
"BSD-3-Clause"
] | 11 | 2016-06-15T09:46:30.000Z | 2021-05-20T11:54:49.000Z | easyxsd/utils.py | gnrfan/python-easyxsd | 26b8a25599fce1d9c80de47d6e3f424979ff71b2 | [
"BSD-3-Clause"
] | null | null | null | easyxsd/utils.py | gnrfan/python-easyxsd | 26b8a25599fce1d9c80de47d6e3f424979ff71b2 | [
"BSD-3-Clause"
] | 7 | 2015-09-17T14:59:24.000Z | 2021-05-03T20:30:00.000Z | from lxml import etree
def xml_from_string(xmlstr):
"""
Returns an lxml.etree._ElementTree object from a string
containing a valid XML document.
"""
try:
return etree.XML(str(xmlstr).strip())
except etree.XMLSyntaxError:
return None
def xml_from_file(filepath):
"""
Ret... | 29.344538 | 75 | 0.691008 | 479 | 3,492 | 4.920668 | 0.179541 | 0.020365 | 0.028002 | 0.043275 | 0.564277 | 0.522698 | 0.481544 | 0.462452 | 0.342809 | 0.342809 | 0 | 0 | 0.239977 | 3,492 | 118 | 76 | 29.59322 | 0.888093 | 0.450745 | 0 | 0.403846 | 0 | 0 | 0.000597 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.211538 | false | 0 | 0.019231 | 0 | 0.519231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6226406ea3b28b2417eb8efc3211c5906e7fd517 | 1,446 | py | Python | oauth/models.py | zhxiaohe/starwars_api | f1b729e819eb19e5eb59630bed56b13127eb1ef2 | [
"MIT"
] | null | null | null | oauth/models.py | zhxiaohe/starwars_api | f1b729e819eb19e5eb59630bed56b13127eb1ef2 | [
"MIT"
] | null | null | null | oauth/models.py | zhxiaohe/starwars_api | f1b729e819eb19e5eb59630bed56b13127eb1ef2 | [
"MIT"
] | null | null | null | from app import db
from passlib.apps import custom_app_context as pwd_context
class User(db.Model):
__tablename__ = 'users'
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(64))
password = db.Column(db.String(120))
role = db.relations... | 35.268293 | 85 | 0.607884 | 183 | 1,446 | 4.655738 | 0.284153 | 0.140845 | 0.152582 | 0.131455 | 0.301643 | 0.116197 | 0.116197 | 0.116197 | 0 | 0 | 0 | 0.016775 | 0.257953 | 1,446 | 40 | 86 | 36.15 | 0.77726 | 0 | 0 | 0.096774 | 0 | 0 | 0.061549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0.193548 | 0.064516 | 0.032258 | 0.83871 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
6232426d009029a71686a7036203c42fe004aa6f | 470 | py | Python | app/utils.py | VeraButler/resources_api | 5dc4f0f0828a7fe331c8b8036ecd1e0956c69848 | [
"MIT"
] | null | null | null | app/utils.py | VeraButler/resources_api | 5dc4f0f0828a7fe331c8b8036ecd1e0956c69848 | [
"MIT"
] | null | null | null | app/utils.py | VeraButler/resources_api | 5dc4f0f0828a7fe331c8b8036ecd1e0956c69848 | [
"MIT"
] | null | null | null | class Paginator:
def __init__(self, configuration, request):
self.configuration = configuration
self.page = request.args.get('page', 1, type=int)
self.page_size = request.args.get('page_size', configuration.per_page, type=int)
if self.page_size > configuration.max_page_size:
... | 36.153846 | 88 | 0.689362 | 61 | 470 | 5.081967 | 0.360656 | 0.180645 | 0.154839 | 0.116129 | 0.232258 | 0.232258 | 0.232258 | 0 | 0 | 0 | 0 | 0.002674 | 0.204255 | 470 | 12 | 89 | 39.166667 | 0.826203 | 0 | 0 | 0 | 0 | 0 | 0.02766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0.111111 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
62478315f9d5ac3dc84354d11a5fed8f0f055173 | 392 | py | Python | apphelpers/socialauth/fb.py | MilindSuryawanshi/apphelpers | aa8866895f5108b4d020378551dba3b557fa443f | [
"MIT"
] | 1 | 2019-03-21T15:17:30.000Z | 2019-03-21T15:17:30.000Z | apphelpers/socialauth/fb.py | MilindSuryawanshi/apphelpers | aa8866895f5108b4d020378551dba3b557fa443f | [
"MIT"
] | 4 | 2019-05-08T07:40:06.000Z | 2020-08-01T01:42:39.000Z | apphelpers/socialauth/fb.py | scrolltech/commonlib | 2ae0c9206c631ea5942024a00755f2d858de9d3f | [
"MIT"
] | 5 | 2019-04-26T06:57:48.000Z | 2020-12-24T12:10:22.000Z | import os
from requests_oauthlib import OAuth2Session
try:
from converge import settings
except:
import settings
os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = 'True'
def fetch_info(access_token):
session = OAuth2Session(token={'access_token': access_token})
info_url = 'https://graph.facebook.com/me?fie... | 26.133333 | 80 | 0.760204 | 51 | 392 | 5.627451 | 0.627451 | 0.114983 | 0.111498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0059 | 0.135204 | 392 | 14 | 81 | 28 | 0.840708 | 0 | 0 | 0 | 0 | 0 | 0.204082 | 0.068878 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
6248aefb5befe02f4679eec1d06143a11bc7e2f6 | 493 | py | Python | utils/validate.py | umd-mith/twarc | 943485b17d2c3553f826d4e0572c362a17001105 | [
"CC0-1.0"
] | null | null | null | utils/validate.py | umd-mith/twarc | 943485b17d2c3553f826d4e0572c362a17001105 | [
"CC0-1.0"
] | null | null | null | utils/validate.py | umd-mith/twarc | 943485b17d2c3553f826d4e0572c362a17001105 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python
import sys
import json
import fileinput
import dateutil.parser
line_number = 0
for line in fileinput.input():
... | 30.8125 | 199 | 0.411765 | 46 | 493 | 4.347826 | 0.608696 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008368 | 0.515213 | 493 | 15 | 200 | 32.866667 | 0.828452 | 0.040568 | 0 | 0 | 0 | 0 | 0.061441 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
62596739203982959c523efef3b677c9e44b47e7 | 1,050 | py | Python | python/basis/16-function.py | weizhenwei/tech-docs-2016 | 253564a1633e9ec75ac94efede57f52c02b29280 | [
"BSD-2-Clause"
] | 3 | 2017-06-09T08:48:07.000Z | 2020-12-13T10:37:44.000Z | python/basis/16-function.py | weizhenwei/tech-docs-sharetome | 253564a1633e9ec75ac94efede57f52c02b29280 | [
"BSD-2-Clause"
] | null | null | null | python/basis/16-function.py | weizhenwei/tech-docs-sharetome | 253564a1633e9ec75ac94efede57f52c02b29280 | [
"BSD-2-Clause"
] | 4 | 2020-04-29T07:03:44.000Z | 2021-07-25T15:12:15.000Z | #!/usr/bin/env python
def printme(str):
"print something input"
print str
return
printme("Hello")
def changeme(list):
list.append([1, 2, 3, 4])
print "In the function, list = ", list
return
list = [23, 34, 32, 12]
print "Out the function, before call list = ", list
changeme(list)
pr... | 15.671642 | 51 | 0.624762 | 148 | 1,050 | 4.418919 | 0.358108 | 0.061162 | 0.084098 | 0.114679 | 0.321101 | 0.235474 | 0.235474 | 0.235474 | 0.235474 | 0.183486 | 0 | 0.035533 | 0.249524 | 1,050 | 66 | 52 | 15.909091 | 0.794416 | 0.088571 | 0 | 0.371429 | 0 | 0 | 0.264211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.685714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
625a9c5018450b2235010c7b79f7df2a76a0f1e2 | 1,752 | py | Python | euler/problem090.py | brunorijsman/euler-problems-python | 8f5681a54795fc5859cee1c4ad38a995a530dc66 | [
"BSD-2-Clause"
] | 2 | 2018-06-25T17:54:55.000Z | 2020-05-13T06:10:15.000Z | euler/problem090.py | brunorijsman/euler-problems-python | 8f5681a54795fc5859cee1c4ad38a995a530dc66 | [
"BSD-2-Clause"
] | null | null | null | euler/problem090.py | brunorijsman/euler-problems-python | 8f5681a54795fc5859cee1c4ad38a995a530dc66 | [
"BSD-2-Clause"
] | null | null | null | # Euler problem 90: Cube digit pairs
def solve():
# Find all possible dies with 6 digits on faces out of 10 combinations
options = []
find_options(options, [])
count = 0
# Figure out which combinations of two dies make a square
for die1 in options:
for die2 in options:
... | 26.149254 | 81 | 0.602169 | 266 | 1,752 | 3.890977 | 0.255639 | 0.131401 | 0.217391 | 0.275362 | 0.433816 | 0.433816 | 0.402899 | 0.278261 | 0.244444 | 0 | 0 | 0.07371 | 0.303082 | 1,752 | 66 | 82 | 26.545455 | 0.773956 | 0.123288 | 0 | 0.282609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0 | 0 | 0.391304 | 0.021739 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
627bb3ace21ba42e86189fe8ff453b9f2c909850 | 3,362 | py | Python | src/abaqus/Optimization/FixedRegion.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | 7 | 2022-01-21T09:15:45.000Z | 2022-02-15T09:31:58.000Z | src/abaqus/Optimization/FixedRegion.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | src/abaqus/Optimization/FixedRegion.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | from abaqusConstants import *
from .GeometricRestriction import GeometricRestriction
from ..Region.Region import Region
class FixedRegion(GeometricRestriction):
"""The FixedRegion object defines a fixed region geometric restriction.
The FixedRegion object is derived from the GeometricRestriction object.
... | 37.775281 | 111 | 0.617787 | 389 | 3,362 | 5.318766 | 0.239075 | 0.069599 | 0.079749 | 0.090382 | 0.646689 | 0.613823 | 0.613823 | 0.584824 | 0.584824 | 0.584824 | 0 | 0.007951 | 0.326591 | 3,362 | 88 | 112 | 38.204545 | 0.905919 | 0.68025 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.181818 | 0.272727 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
62806e40976995ebdbe3640cbdccbd0e62311f6d | 2,989 | py | Python | problems/OF/auto/problem19_OF.py | sunandita/ICAPS_Summer_School_RAE_2020 | a496b62185bcfdd2c76eb7986ae99cfa85708d28 | [
"BSD-3-Clause"
] | 5 | 2020-10-15T14:40:03.000Z | 2021-08-20T17:45:41.000Z | problems/OF/auto/problem19_OF.py | sunandita/ICAPS_Summer_School_RAE_2020 | a496b62185bcfdd2c76eb7986ae99cfa85708d28 | [
"BSD-3-Clause"
] | null | null | null | problems/OF/auto/problem19_OF.py | sunandita/ICAPS_Summer_School_RAE_2020 | a496b62185bcfdd2c76eb7986ae99cfa85708d28 | [
"BSD-3-Clause"
] | 2 | 2020-10-15T07:06:14.000Z | 2020-10-15T17:33:01.000Z | __author__ = 'mason'
from domain_orderFulfillment import *
from timer import DURATION
from state import state
import numpy as np
'''
This is a randomly generated problem
'''
def GetCostOfMove(id, r, loc1, loc2, dist):
return 1 + dist
def GetCostOfLookup(id, item):
return max(1, np.random.beta(2, 2))
def Ge... | 35.164706 | 379 | 0.600201 | 416 | 2,989 | 4.283654 | 0.317308 | 0.039282 | 0.036476 | 0.039282 | 0.274972 | 0.274972 | 0.262626 | 0.262626 | 0.217733 | 0.217733 | 0 | 0.225952 | 0.18267 | 2,989 | 85 | 380 | 35.164706 | 0.503479 | 0 | 0 | 0.307692 | 1 | 0 | 0.107264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107692 | false | 0 | 0.061538 | 0.092308 | 0.261538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
65649872be0991246314d5df6efcac9933c9cfaa | 1,102 | py | Python | src/sims4communitylib/_vanilla_fixes/_sim_full_name.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | 118 | 2019-08-31T04:33:18.000Z | 2022-03-28T21:12:14.000Z | src/sims4communitylib/_vanilla_fixes/_sim_full_name.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | 15 | 2019-12-05T01:29:46.000Z | 2022-02-18T17:13:46.000Z | src/sims4communitylib/_vanilla_fixes/_sim_full_name.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | 28 | 2019-09-07T04:11:05.000Z | 2022-02-07T18:31:40.000Z | """
The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0).
https://creativecommons.org/licenses/by/4.0/
https://creativecommons.org/licenses/by/4.0/legalcode
Copyright (c) COLONOLNUTTY
"""
# The purpose of this file is to fix the fact that when try... | 47.913043 | 135 | 0.813067 | 146 | 1,102 | 5.910959 | 0.486301 | 0.00927 | 0.013905 | 0.020857 | 0.17613 | 0.17613 | 0.085747 | 0.085747 | 0.085747 | 0.085747 | 0 | 0.013238 | 0.108893 | 1,102 | 22 | 136 | 50.090909 | 0.86558 | 0.378403 | 0 | 0 | 0 | 0 | 0.013314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.454545 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
659e22ad1df6700db9cece7c2733711ba6dc4fea | 183 | py | Python | example/producer.py | Semo/kq | 024cc52b10b2af0c2999a20920faa460442bcbd6 | [
"MIT"
] | 582 | 2016-10-31T04:26:28.000Z | 2022-03-30T12:57:14.000Z | example/producer.py | Semo/kq | 024cc52b10b2af0c2999a20920faa460442bcbd6 | [
"MIT"
] | 17 | 2016-11-01T16:37:16.000Z | 2022-02-10T06:47:36.000Z | example/producer.py | Semo/kq | 024cc52b10b2af0c2999a20920faa460442bcbd6 | [
"MIT"
] | 26 | 2016-11-01T05:06:02.000Z | 2022-02-04T12:44:36.000Z | from kafka import KafkaProducer
producer = KafkaProducer(bootstrap_servers="127.0.0.1:9092")
for _ in range(10000):
producer.send("my_topic", b"message")
# producer.flush()
| 22.875 | 60 | 0.726776 | 25 | 183 | 5.2 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094937 | 0.136612 | 183 | 7 | 61 | 26.142857 | 0.727848 | 0.087432 | 0 | 0 | 0 | 0 | 0.175758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
659fd83828277eff7d087e06a37e0adb49957a10 | 35,761 | py | Python | festival/management/commands/export_artists.py | mykonosbiennale/mykonosbiennale.github.io | fba479807204768ac440c77c4850b64fb25d113d | [
"Apache-2.0"
] | null | null | null | festival/management/commands/export_artists.py | mykonosbiennale/mykonosbiennale.github.io | fba479807204768ac440c77c4850b64fb25d113d | [
"Apache-2.0"
] | 4 | 2015-04-17T14:10:54.000Z | 2015-04-17T14:13:00.000Z | festival/management/commands/export_artists.py | mykonosbiennale/mykonosbiennale.github.io | fba479807204768ac440c77c4850b64fb25d113d | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
import time, traceback
import collections
import re
import os
import sys
import csv
import pprint, json
import optparse
from django.core.files.base import ContentFile
from nameparser import HumanName
from django.core.serializers import serial... | 58.433007 | 172 | 0.424597 | 2,813 | 35,761 | 5.244223 | 0.097049 | 0.031318 | 0.013829 | 0.020743 | 0.461226 | 0.412554 | 0.388625 | 0.361646 | 0.320838 | 0.276573 | 0 | 0.00536 | 0.457454 | 35,761 | 611 | 173 | 58.528642 | 0.754974 | 0.884287 | 0 | 0 | 0 | 0 | 0.109964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.386364 | 0 | 0.454545 | 0.022727 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
65a4b3fdaca2febab7995b0b62abcbdeca55c479 | 2,119 | py | Python | pyfr/backends/hip/packing.py | rishit2307/PyFR | 1d249426d8ea4257cb8beff75b6ccd8a058787f4 | [
"BSD-3-Clause"
] | 185 | 2015-01-03T01:06:04.000Z | 2019-09-02T22:10:53.000Z | pyfr/backends/hip/packing.py | rishit2307/PyFR | 1d249426d8ea4257cb8beff75b6ccd8a058787f4 | [
"BSD-3-Clause"
] | 68 | 2015-02-18T13:34:15.000Z | 2019-09-03T13:28:36.000Z | pyfr/backends/hip/packing.py | rishit2307/PyFR | 1d249426d8ea4257cb8beff75b6ccd8a058787f4 | [
"BSD-3-Clause"
] | 105 | 2015-01-09T14:05:22.000Z | 2019-07-25T22:04:00.000Z | # -*- coding: utf-8 -*-
from pyfr.backends.base import NullKernel
from pyfr.backends.hip.provider import (HIPKernel, HIPKernelProvider,
get_grid_for_block)
class HIPPackingKernels(HIPKernelProvider):
def pack(self, mv):
hip = self.backend.hip
# An exchange... | 33.109375 | 79 | 0.562529 | 250 | 2,119 | 4.688 | 0.392 | 0.046928 | 0.038396 | 0.043515 | 0.309727 | 0.309727 | 0.222696 | 0.222696 | 0.222696 | 0.222696 | 0 | 0.005768 | 0.345446 | 2,119 | 63 | 80 | 33.634921 | 0.839221 | 0.138745 | 0 | 0.487179 | 0 | 0 | 0.020925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205128 | false | 0.076923 | 0.051282 | 0 | 0.435897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
65a80ca222d527565d108fc40d6b9d9c4b29c696 | 746 | py | Python | sapp/pipeline/create_database.py | gracewgao/sapp | a6a48f2a88b0dd9feae75f005b8586d36037a0a6 | [
"MIT"
] | 1 | 2021-07-01T12:08:06.000Z | 2021-07-01T12:08:06.000Z | sapp/pipeline/create_database.py | JayGitH/sapp | 2cb58b4dfc0907c4e6d40ce7612559587c243c55 | [
"MIT"
] | null | null | null | sapp/pipeline/create_database.py | JayGitH/sapp | 2cb58b4dfc0907c4e6d40ce7612559587c243c55 | [
"MIT"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import logging
from typing import Tuple
from ..db import DB
from ..models import create as create_models
from ..trace_graph import TraceGraph... | 28.692308 | 87 | 0.733244 | 95 | 746 | 5.642105 | 0.557895 | 0.067164 | 0.059701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182306 | 746 | 25 | 88 | 29.84 | 0.878689 | 0.225201 | 0 | 0 | 0 | 0 | 0.006981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
65a8a0c9529b2e9777d5350a74cbfbac3f65b765 | 27,171 | py | Python | tests/test_auto_sharding_bert.py | alpa-projects/alpa | 2c54de2a8fa8a48c77069f4bad802f4e8fa6d126 | [
"Apache-2.0"
] | 114 | 2022-03-02T20:38:16.000Z | 2022-03-31T20:41:50.000Z | tests/test_auto_sharding_bert.py | alpa-projects/alpa | 2c54de2a8fa8a48c77069f4bad802f4e8fa6d126 | [
"Apache-2.0"
] | 6 | 2022-03-09T22:04:50.000Z | 2022-03-30T17:53:15.000Z | tests/test_auto_sharding_bert.py | alpa-projects/alpa | 2c54de2a8fa8a48c77069f4bad802f4e8fa6d126 | [
"Apache-2.0"
] | 5 | 2022-03-05T12:04:31.000Z | 2022-03-31T03:55:42.000Z | """Test auto sharding on transformer layers and bert models."""
import unittest
import jax
import jax.numpy as jnp
import numpy as np
from flax import optim, linen as nn
from alpa import parallelize, ShardParallel, LocalPhysicalDeviceMesh, AutoShardingOption
from alpa.model.bert_model import (BertConfig, FlaxBertLay... | 41.673313 | 106 | 0.581208 | 3,181 | 27,171 | 4.634077 | 0.092424 | 0.033241 | 0.02605 | 0.032562 | 0.771182 | 0.735703 | 0.696425 | 0.662099 | 0.64826 | 0.610746 | 0 | 0.0195 | 0.328107 | 27,171 | 651 | 107 | 41.737327 | 0.78796 | 0.073718 | 0 | 0.594862 | 0 | 0 | 0.066029 | 0.021983 | 0 | 0 | 0 | 0 | 0.112648 | 1 | 0.059289 | false | 0 | 0.017787 | 0.001976 | 0.102767 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 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 | 2 |
65aad0dcad6b978d7933961de7d32128e38494f9 | 12,917 | py | Python | infrastructure-provisioning/scripts/post-deployment_configuration.py | roolrd/incubator-datalab | 2045207ecd1b381193f1a1ec143cc968716ad989 | [
"Apache-2.0"
] | 66 | 2020-10-03T08:36:48.000Z | 2022-03-20T23:16:20.000Z | infrastructure-provisioning/scripts/post-deployment_configuration.py | roolrd/incubator-datalab | 2045207ecd1b381193f1a1ec143cc968716ad989 | [
"Apache-2.0"
] | 48 | 2019-02-28T12:11:33.000Z | 2020-09-15T08:27:08.000Z | infrastructure-provisioning/scripts/post-deployment_configuration.py | roolrd/incubator-datalab | 2045207ecd1b381193f1a1ec143cc968716ad989 | [
"Apache-2.0"
] | 44 | 2019-01-14T10:31:55.000Z | 2020-09-22T17:53:33.000Z | #!/usr/bin/python3
# *****************************************************************************
#
# 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 ... | 66.582474 | 177 | 0.695905 | 1,724 | 12,917 | 5.100348 | 0.174594 | 0.076879 | 0.082793 | 0.106448 | 0.6802 | 0.628682 | 0.593427 | 0.547708 | 0.519618 | 0.487092 | 0 | 0.006094 | 0.148874 | 12,917 | 193 | 178 | 66.927461 | 0.793706 | 0.071766 | 0 | 0.202614 | 0 | 0.300654 | 0.48258 | 0.280558 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.124183 | 0.052288 | 0 | 0.052288 | 0.084967 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
65b84a0f57583610a96238b297af5b9209e39504 | 2,078 | py | Python | lib/mayaUsd/resources/scripts/mayaUsdMayaReferenceUtils.py | sun-frog/maya-usd | 561fc867e192e426749c9df59807cc836d16a2c2 | [
"Apache-2.0"
] | null | null | null | lib/mayaUsd/resources/scripts/mayaUsdMayaReferenceUtils.py | sun-frog/maya-usd | 561fc867e192e426749c9df59807cc836d16a2c2 | [
"Apache-2.0"
] | null | null | null | lib/mayaUsd/resources/scripts/mayaUsdMayaReferenceUtils.py | sun-frog/maya-usd | 561fc867e192e426749c9df59807cc836d16a2c2 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2022 Autodesk
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31.014925 | 88 | 0.681906 | 220 | 2,078 | 6.386364 | 0.631818 | 0.042705 | 0.018505 | 0.022776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007609 | 0.241097 | 2,078 | 66 | 89 | 31.484848 | 0.883323 | 0.397979 | 0 | 0.064516 | 0 | 0 | 0.09744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0.064516 | 0.032258 | 0.096774 | 0.387097 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
65bfe9e8439f59de883ef94bfad2065595ac30d1 | 770 | py | Python | composite_pk/util.py | SelfHacked/django-composite-pk | a8f8c98b83e1993e284e6a5bf206648de936ef27 | [
"MIT"
] | null | null | null | composite_pk/util.py | SelfHacked/django-composite-pk | a8f8c98b83e1993e284e6a5bf206648de936ef27 | [
"MIT"
] | null | null | null | composite_pk/util.py | SelfHacked/django-composite-pk | a8f8c98b83e1993e284e6a5bf206648de936ef27 | [
"MIT"
] | 1 | 2021-06-03T12:03:58.000Z | 2021-06-03T12:03:58.000Z | from django.utils.functional import (
cached_property as _cached_property,
)
cached_property = _cached_property
class ConstantValueProperty(object):
def __init__(self, val):
self.val = val
def __get__(self, instance, cls=None):
if instance is None:
return self
return ... | 20.810811 | 42 | 0.603896 | 86 | 770 | 5.05814 | 0.395349 | 0.128736 | 0.091954 | 0.128736 | 0.413793 | 0.413793 | 0.413793 | 0.262069 | 0.262069 | 0.262069 | 0 | 0 | 0.319481 | 770 | 36 | 43 | 21.388889 | 0.830153 | 0.016883 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0.08 | 0.04 | 0 | 0.52 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
65c35d1bad34012dddb65c54176bb85dee35fa66 | 302 | py | Python | applications/main/tests/test_models.py | uottawapython/uopy | af5d1e809dfe8fb54f5c92aa2d5d7bda243e7a21 | [
"BSD-3-Clause"
] | 1 | 2016-09-17T12:03:21.000Z | 2016-09-17T12:03:21.000Z | applications/main/tests/test_models.py | uottawapython/uopy | af5d1e809dfe8fb54f5c92aa2d5d7bda243e7a21 | [
"BSD-3-Clause"
] | null | null | null | applications/main/tests/test_models.py | uottawapython/uopy | af5d1e809dfe8fb54f5c92aa2d5d7bda243e7a21 | [
"BSD-3-Clause"
] | 9 | 2016-06-05T17:02:51.000Z | 2022-03-05T21:45:48.000Z | import pytest
from mixer.backend.django import mixer
#Don't try to write in the database
pytestmark = pytest.mark.django_db
class TestClubEvent:
def test_init(self):
obj=mixer.blend('main.ClubEvent')
assert obj.pk == 1, 'Should save an isntance'
#TODO Create other test ....
| 23.230769 | 53 | 0.701987 | 44 | 302 | 4.772727 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004149 | 0.201987 | 302 | 12 | 54 | 25.166667 | 0.86722 | 0.201987 | 0 | 0 | 0 | 0 | 0.154812 | 0 | 0 | 0 | 0 | 0.083333 | 0.142857 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
02950750c6242e00ff9f32adec3131bfa3cc33fb | 984 | py | Python | plugin_skill/__init__.py | forslund/mycroft-skill-plugin | 0b7b431134686731c936871b39a9656639723d05 | [
"Apache-2.0"
] | null | null | null | plugin_skill/__init__.py | forslund/mycroft-skill-plugin | 0b7b431134686731c936871b39a9656639723d05 | [
"Apache-2.0"
] | null | null | null | plugin_skill/__init__.py | forslund/mycroft-skill-plugin | 0b7b431134686731c936871b39a9656639723d05 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Åke Forslund
#
# This test plugin is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This module is distributed in th... | 36.444444 | 74 | 0.764228 | 143 | 984 | 5.216783 | 0.65035 | 0.020107 | 0.052279 | 0.076408 | 0.10992 | 0.075067 | 0 | 0 | 0 | 0 | 0 | 0.006098 | 0.166667 | 984 | 26 | 75 | 37.846154 | 0.903659 | 0.650407 | 0 | 0 | 0 | 0 | 0.057751 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
02aa3a7506318ee5003595e5253547c4b4ed875f | 494 | py | Python | parser/team17/Interprete/Primitivos/BOOLEANO.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 35 | 2020-12-07T03:11:43.000Z | 2021-04-15T17:38:16.000Z | parser/team17/Interprete/Primitivos/BOOLEANO.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 47 | 2020-12-09T01:29:09.000Z | 2021-01-13T05:37:50.000Z | parser/team17/Interprete/Primitivos/BOOLEANO.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 556 | 2020-12-07T03:13:31.000Z | 2021-06-17T17:41:10.000Z | from Interprete.NodoAST import NodoArbol
from Interprete.Tabla_de_simbolos import Tabla_de_simbolos
from Interprete.Arbol import Arbol
from Interprete.Valor.Valor import Valor
from Interprete.Primitivos.TIPO import TIPO
class BOOLEANO(NodoArbol):
def __init__(self, data, line, column):
super().__init__(li... | 32.933333 | 62 | 0.753036 | 65 | 494 | 5.507692 | 0.4 | 0.195531 | 0.125698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17004 | 494 | 15 | 63 | 32.933333 | 0.873171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.416667 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
02b0d72371be62631bb43f797ca61b4675b29c36 | 2,181 | py | Python | pyeip1962/group.py | HarryR/pyeip1962 | fde81a16276bd18c7ebb03e0fcedcfc9574d8fb6 | [
"MIT"
] | 2 | 2019-09-30T20:41:50.000Z | 2019-10-01T14:57:32.000Z | pyeip1962/group.py | HarryR/pyeip1962 | fde81a16276bd18c7ebb03e0fcedcfc9574d8fb6 | [
"MIT"
] | null | null | null | pyeip1962/group.py | HarryR/pyeip1962 | fde81a16276bd18c7ebb03e0fcedcfc9574d8fb6 | [
"MIT"
] | null | null | null |
class AbstractPoint(object):
__slots__ = ('x', 'y')
def __init__(self, x, y):
self.x = self.field()(x)
self.y = self.field()(y)
def __neg__(self):
return self.neg()
def __add__(self, other):
return self.add(other)
def __sub__(self, other):
return self.add(other.neg())
def __mul__(self, n):
retur... | 19.300885 | 70 | 0.692801 | 287 | 2,181 | 5.111498 | 0.212544 | 0.179959 | 0.143149 | 0.155419 | 0.29107 | 0.103613 | 0 | 0 | 0 | 0 | 0 | 0.009476 | 0.177442 | 2,181 | 112 | 71 | 19.473214 | 0.80825 | 0.057772 | 0 | 0.294872 | 0 | 0 | 0.049583 | 0.0162 | 0 | 0 | 0 | 0 | 0.025641 | 1 | 0.320513 | false | 0 | 0 | 0.153846 | 0.564103 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
02bdd39dab555d84b4a26ad67896b2890f7c2449 | 157 | py | Python | distinct_numbers.py | kshitijgupta01/CSES-Problem-Set | db53323967abcbdad3d6c172cd6c8c43956417ea | [
"MIT"
] | null | null | null | distinct_numbers.py | kshitijgupta01/CSES-Problem-Set | db53323967abcbdad3d6c172cd6c8c43956417ea | [
"MIT"
] | null | null | null | distinct_numbers.py | kshitijgupta01/CSES-Problem-Set | db53323967abcbdad3d6c172cd6c8c43956417ea | [
"MIT"
] | null | null | null | #this is my solution for Distinct Numbers problem in CSES dataset
no_of_integers = int(input())
array = list(map(int,input().split()))
print(len(set(array))) | 39.25 | 65 | 0.745223 | 26 | 157 | 4.423077 | 0.884615 | 0.13913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10828 | 157 | 4 | 66 | 39.25 | 0.821429 | 0.407643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
02bfa751ea5336a900a793d41a727f461bc9f3e5 | 1,332 | py | Python | service/machines/admin.py | TAHER-MOSTAFA/service-app | c48d872769e20e5d58a339c2e43e4578d71c7011 | [
"MIT"
] | null | null | null | service/machines/admin.py | TAHER-MOSTAFA/service-app | c48d872769e20e5d58a339c2e43e4578d71c7011 | [
"MIT"
] | null | null | null | service/machines/admin.py | TAHER-MOSTAFA/service-app | c48d872769e20e5d58a339c2e43e4578d71c7011 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Company, Machine, Specs, Conatact, Category
from django.utils.html import format_html
class StackedSpecsAdmin(admin.TabularInline):
model = Specs
fields = ("label", "value", "machine")
readonly_fields = ("machine",)
extra = 1
def has_add_permis... | 24.666667 | 85 | 0.6997 | 145 | 1,332 | 6.296552 | 0.42069 | 0.056955 | 0.050383 | 0.041621 | 0.100767 | 0.100767 | 0.100767 | 0.100767 | 0.100767 | 0 | 0 | 0.001808 | 0.16967 | 1,332 | 54 | 86 | 24.666667 | 0.823689 | 0 | 0 | 0.171429 | 0 | 0 | 0.152288 | 0.027007 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0.057143 | 0.085714 | 0.085714 | 0.828571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
02c12b84a85cbb928482b4c22d75b845a626ce93 | 3,304 | py | Python | examples/get_vms_paged.py | tmongero/tintri-python-sdk | aadeb047201fb0b82f0edf966dfcbba675705821 | [
"BSD-3-Clause"
] | 11 | 2016-10-27T05:57:20.000Z | 2018-03-09T19:22:11.000Z | examples/get_vms_paged.py | tmongero/tintri-python-sdk | aadeb047201fb0b82f0edf966dfcbba675705821 | [
"BSD-3-Clause"
] | 2 | 2018-03-20T17:57:43.000Z | 2020-02-26T15:59:50.000Z | examples/get_vms_paged.py | tmongero/tintri-python-sdk | aadeb047201fb0b82f0edf966dfcbba675705821 | [
"BSD-3-Clause"
] | 5 | 2017-04-13T19:07:47.000Z | 2018-07-26T20:41:45.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# The MIT License (MIT)
#
# Copyright (c) 2015 Tintri, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including withou... | 27.081967 | 79 | 0.714588 | 486 | 3,304 | 4.76749 | 0.425926 | 0.03798 | 0.025896 | 0.022011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007907 | 0.196126 | 3,304 | 121 | 80 | 27.305785 | 0.864458 | 0.425545 | 0 | 0.113208 | 0 | 0 | 0.102079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.075472 | 0.056604 | null | null | 0.283019 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
02c5694ad44ef93cb82d72f35ed2f9c05c18d13d | 1,243 | py | Python | pyfakefs/tests/fixtures/module_with_attributes.py | kmerenkov/pyfakefs | dca7de71f100a45ad0c715cfe5618ff083122a57 | [
"Apache-2.0"
] | 422 | 2015-03-19T06:03:48.000Z | 2022-03-31T00:06:45.000Z | pyfakefs/tests/fixtures/module_with_attributes.py | kmerenkov/pyfakefs | dca7de71f100a45ad0c715cfe5618ff083122a57 | [
"Apache-2.0"
] | 510 | 2015-03-19T18:35:04.000Z | 2022-03-28T20:59:01.000Z | pyfakefs/tests/fixtures/module_with_attributes.py | kmerenkov/pyfakefs | dca7de71f100a45ad0c715cfe5618ff083122a57 | [
"Apache-2.0"
] | 95 | 2015-03-17T20:25:57.000Z | 2022-03-28T18:04:45.000Z | # Copyright 2017 John McGehee
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 40.096774 | 78 | 0.776348 | 185 | 1,243 | 5.162162 | 0.562162 | 0.062827 | 0.092147 | 0.065969 | 0.105759 | 0.075393 | 0 | 0 | 0 | 0 | 0 | 0.007554 | 0.148029 | 1,243 | 30 | 79 | 41.433333 | 0.89424 | 0.849558 | 0 | 0 | 0 | 0 | 0.60119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
02d3c3e42d5b3f989b288416035479d17f111820 | 2,994 | py | Python | code/duke.py | jordankeener/ncaa_rosters | 12e66e9ef7502ab6869e7352ae673c46680eedd0 | [
"MIT"
] | null | null | null | code/duke.py | jordankeener/ncaa_rosters | 12e66e9ef7502ab6869e7352ae673c46680eedd0 | [
"MIT"
] | null | null | null | code/duke.py | jordankeener/ncaa_rosters | 12e66e9ef7502ab6869e7352ae673c46680eedd0 | [
"MIT"
] | null | null | null | from urllib.request import urlopen
from urllib.request import FancyURLopener
from bs4 import BeautifulSoup
import pandas as pd
import os
import _proj_functions as proj
import _lookups as lookups
import re
outdir = '../output'
##### duke ###########################
school = 'duke'
sports_dict = lookups.get_sports_dic... | 61.102041 | 116 | 0.756179 | 467 | 2,994 | 4.683084 | 0.263383 | 0.118884 | 0.124829 | 0.153635 | 0.599451 | 0.599451 | 0.570645 | 0.191129 | 0 | 0 | 0 | 0.097026 | 0.05678 | 2,994 | 48 | 117 | 62.375 | 0.677408 | 0.032732 | 0 | 0 | 0 | 0.538462 | 0.655245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.205128 | 0 | 0.205128 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
02d96248c22be4751eaae58fef6939b6f3f460f3 | 742 | py | Python | chapter_6-DesignPatternsWithFirst-ClassFunctions/promotions.py | zixingkong/Fluent-Python | 6f05ec5f27a1cf582ddc5a09959f446d455b6c4a | [
"MIT"
] | null | null | null | chapter_6-DesignPatternsWithFirst-ClassFunctions/promotions.py | zixingkong/Fluent-Python | 6f05ec5f27a1cf582ddc5a09959f446d455b6c4a | [
"MIT"
] | null | null | null | chapter_6-DesignPatternsWithFirst-ClassFunctions/promotions.py | zixingkong/Fluent-Python | 6f05ec5f27a1cf582ddc5a09959f446d455b6c4a | [
"MIT"
] | 1 | 2022-03-14T15:04:58.000Z | 2022-03-14T15:04:58.000Z | # -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name: promotions
Description :
date: 2022/2/13
-------------------------------------------------
"""
def fidelity_promo(order):
"""为积分为1000或以上的顾客提供5%折扣"""
return order.total() * .05 if order.customer.fidelit... | 26.5 | 72 | 0.52965 | 79 | 742 | 4.886076 | 0.544304 | 0.07772 | 0.082902 | 0.072539 | 0.103627 | 0.103627 | 0 | 0 | 0 | 0 | 0 | 0.062176 | 0.219677 | 742 | 28 | 73 | 26.5 | 0.604491 | 0.351752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
02e51142160ed375afe6453fc1e50d6771aa26ed | 150 | py | Python | api/gradebook/apps.py | Latiftanga/TagnatekAPI | 8ad609a5d7097051796d25d9b532c770d32ac304 | [
"MIT"
] | null | null | null | api/gradebook/apps.py | Latiftanga/TagnatekAPI | 8ad609a5d7097051796d25d9b532c770d32ac304 | [
"MIT"
] | 5 | 2022-02-05T00:10:27.000Z | 2022-03-23T19:45:38.000Z | api/gradebook/apps.py | Latiftanga/TagnatekAPI | 8ad609a5d7097051796d25d9b532c770d32ac304 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class GradebookConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'gradebook'
| 21.428571 | 56 | 0.766667 | 17 | 150 | 6.647059 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146667 | 150 | 6 | 57 | 25 | 0.882813 | 0 | 0 | 0 | 0 | 0 | 0.253333 | 0.193333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
02ea408316f34a34779491f9ebf203a60a082d85 | 4,314 | py | Python | src/examples/smart-mirror/kitchen_sink.py | adams-liu/SmartMirrorG23 | bdc60083d03aaae75e7b66e97a0af4977945260f | [
"MIT"
] | 1 | 2020-01-09T19:41:15.000Z | 2020-01-09T19:41:15.000Z | src/examples/smart-mirror/kitchen_sink.py | adams-liu/SmartMirrorG36 | bdc60083d03aaae75e7b66e97a0af4977945260f | [
"MIT"
] | null | null | null | src/examples/smart-mirror/kitchen_sink.py | adams-liu/SmartMirrorG36 | bdc60083d03aaae75e7b66e97a0af4977945260f | [
"MIT"
] | null | null | null | #
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# These materials are licensed under the Amazon Software License in connection with the Alexa Gadgets Program.
# The Agreement is available at https://aws.amazon.com/asl/.
# See the Agreement for the specific terms and conditions of the Agreem... | 33.703125 | 131 | 0.680575 | 500 | 4,314 | 5.794 | 0.262 | 0.03797 | 0.024853 | 0.057991 | 0.470142 | 0.463238 | 0.463238 | 0.463238 | 0.463238 | 0.463238 | 0 | 0.001826 | 0.238526 | 4,314 | 127 | 132 | 33.968504 | 0.880061 | 0.65554 | 0 | 0.333333 | 0 | 0 | 0.023622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0.111111 | 0 | 0.481481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f31af71189c0278b02e9b7d22f145978921271f1 | 1,442 | py | Python | tests/test_damerau_levenshtein_distance.py | nokia/PyBGL | e9868361e5a3870b5247872a8c8c91a1c065fe84 | [
"BSD-3-Clause"
] | 11 | 2019-05-20T16:47:03.000Z | 2021-12-17T10:24:22.000Z | tests/test_damerau_levenshtein_distance.py | nokia/PyBGL | e9868361e5a3870b5247872a8c8c91a1c065fe84 | [
"BSD-3-Clause"
] | null | null | null | tests/test_damerau_levenshtein_distance.py | nokia/PyBGL | e9868361e5a3870b5247872a8c8c91a1c065fe84 | [
"BSD-3-Clause"
] | 3 | 2019-05-24T02:24:30.000Z | 2020-03-17T09:55:40.000Z | #!/usr/bin/env pytest-3
# -*- coding: utf-8 -*-
__author__ = "Marc-Olivier Buob"
__maintainer__ = "Marc-Olivier Buob"
__email__ = "marc-olivier.buob@nokia-bell-labs.com"
__copyright__ = "Copyright (C) 2021, Nokia"
__license__ = "BSD-3"
from pybgl.damerau_levenshtein_distance import *
WORDS = [
"book... | 32.044444 | 87 | 0.635922 | 171 | 1,442 | 5.005848 | 0.415205 | 0.315421 | 0.455607 | 0.116822 | 0.303738 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022462 | 0.228155 | 1,442 | 44 | 88 | 32.772727 | 0.746631 | 0.030513 | 0 | 0.057143 | 0 | 0 | 0.118195 | 0.026504 | 0 | 0 | 0 | 0 | 0.171429 | 1 | 0.114286 | false | 0 | 0.028571 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b827b1a522736058911316912c15784f94c517de | 959 | py | Python | peeringdb/resource.py | alarig/peeringdb-py | 917cda69f7bc05be008faa66875827d408328609 | [
"Apache-2.0"
] | null | null | null | peeringdb/resource.py | alarig/peeringdb-py | 917cda69f7bc05be008faa66875827d408328609 | [
"Apache-2.0"
] | null | null | null | peeringdb/resource.py | alarig/peeringdb-py | 917cda69f7bc05be008faa66875827d408328609 | [
"Apache-2.0"
] | null | null | null | """
PeeringDB resource definitions
"""
from collections import OrderedDict
# Generate classes
_NAMES = OrderedDict(
[
("org", "Organization"),
("fac", "Facility"),
("net", "Network"),
("ix", "InternetExchange"),
("ixfac", "InternetExchangeFacility"),
("ixlan", "Inter... | 20.404255 | 47 | 0.616267 | 92 | 959 | 6.130435 | 0.554348 | 0.097518 | 0.124113 | 0.060284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233577 | 959 | 46 | 48 | 20.847826 | 0.767347 | 0.050052 | 0 | 0 | 1 | 0 | 0.219269 | 0.054264 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.034483 | 0.103448 | 0.275862 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
b827c5049998aee470f52ac1b088f9ea6f219154 | 457 | py | Python | tests/db/sql/clauses/test_array_agg.py | furious-luke/polecat | 7be5110f76dc42b15c922c1bb7d49220e916246d | [
"MIT"
] | 4 | 2019-08-10T12:56:12.000Z | 2020-01-21T09:51:20.000Z | tests/db/sql/clauses/test_array_agg.py | furious-luke/polecat | 7be5110f76dc42b15c922c1bb7d49220e916246d | [
"MIT"
] | 71 | 2019-04-09T05:39:21.000Z | 2020-05-16T23:09:24.000Z | tests/db/sql/clauses/test_array_agg.py | furious-luke/polecat | 7be5110f76dc42b15c922c1bb7d49220e916246d | [
"MIT"
] | null | null | null | from unittest.mock import MagicMock
import pytest
from polecat.db.sql.expression.array_agg import ArrayAgg
from polecat.db.sql.sql import Sql
from .conftest import SqlTermTester
def test_to_sql():
term = ArrayAgg('test')
sql = Sql(term.to_sql())
assert str(sql) == 'array_agg("test")'
@pytest.mark.para... | 22.85 | 62 | 0.746171 | 66 | 457 | 4.984848 | 0.409091 | 0.06383 | 0.079027 | 0.097264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140044 | 457 | 19 | 63 | 24.052632 | 0.83715 | 0 | 0 | 0 | 0 | 0 | 0.065646 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.153846 | false | 0 | 0.384615 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
b82e0f8ad8aa623885eb167fbebcf7ad8e1d3f53 | 548 | py | Python | scipy_central/person/tests.py | wangvictor2012/liuwei | 0a06f8fd56d78162f81f1e7e7def7bfdeb4472e1 | [
"BSD-3-Clause"
] | 7 | 2016-02-03T12:44:33.000Z | 2020-08-26T09:22:23.000Z | scipy_central/person/tests.py | wangvictor2012/liuwei | 0a06f8fd56d78162f81f1e7e7def7bfdeb4472e1 | [
"BSD-3-Clause"
] | 19 | 2015-01-20T11:27:22.000Z | 2017-09-23T22:26:18.000Z | scipy_central/person/tests.py | wangvictor2012/liuwei | 0a06f8fd56d78162f81f1e7e7def7bfdeb4472e1 | [
"BSD-3-Clause"
] | 9 | 2015-01-03T02:56:33.000Z | 2021-02-20T10:45:11.000Z | from django.test import TestCase
"""
Tests to add:
* User account: may not contain characters such as #!$&*() etc
* Password must be at least 1 character long
* Reset the password; check that email is received;
* Try reset with an incorrect email link
* Reset with correct email link should work
* Reset with correct e... | 24.909091 | 78 | 0.687956 | 80 | 548 | 4.6875 | 0.7125 | 0.072 | 0.085333 | 0.112 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016627 | 0.231752 | 548 | 21 | 79 | 26.095238 | 0.874109 | 0.060219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b83bb5360f919b4728106dee5150ed0baf861cd4 | 7,444 | py | Python | PySimService.py | tjsego/simservice | 1ca1df4c6644f22217645575719cfa72f5b9f895 | [
"MIT"
] | 1 | 2021-08-08T03:15:47.000Z | 2021-08-08T03:15:47.000Z | PySimService.py | tjsego/simservice | 1ca1df4c6644f22217645575719cfa72f5b9f895 | [
"MIT"
] | null | null | null | PySimService.py | tjsego/simservice | 1ca1df4c6644f22217645575719cfa72f5b9f895 | [
"MIT"
] | null | null | null | """
Defines the base class for simulation services
"""
from enum import Enum
from typing import Callable, Optional
class SimStatus(Enum):
"""Simulation status enum"""
SIM_REGISTERED = 0
SIM_LOADED = 1
SIM_INITIALIZED = 2
SIM_STARTED = 3
SIM_RUNNING = 4
SIM_STOPPED = 5
SIM_FINISHED = 6
... | 27.069091 | 101 | 0.59417 | 827 | 7,444 | 5.204353 | 0.195889 | 0.055762 | 0.05855 | 0.034154 | 0.321794 | 0.245353 | 0.225372 | 0.225372 | 0.193773 | 0.193773 | 0 | 0.00219 | 0.325228 | 7,444 | 274 | 102 | 27.167883 | 0.854669 | 0.464938 | 0 | 0.128205 | 0 | 0 | 0.002385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25641 | false | 0 | 0.025641 | 0 | 0.512821 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b849efed2771731f61e06629a1e09b140def91dd | 365 | py | Python | nequip/model/__init__.py | schiotz/nequip | c343ce25ecfeb64f6df92e96022e673a7714e3a6 | [
"MIT"
] | null | null | null | nequip/model/__init__.py | schiotz/nequip | c343ce25ecfeb64f6df92e96022e673a7714e3a6 | [
"MIT"
] | null | null | null | nequip/model/__init__.py | schiotz/nequip | c343ce25ecfeb64f6df92e96022e673a7714e3a6 | [
"MIT"
] | null | null | null | from ._eng import EnergyModel
from ._grads import ForceOutput
from ._scaling import RescaleEnergyEtc, PerSpeciesRescale
from ._weight_init import uniform_initialize_FCs
from ._build import model_from_config
__all__ = [
"EnergyModel",
"ForceOutput",
"RescaleEnergyEtc",
"PerSpeciesRescale",
"uniform... | 22.8125 | 57 | 0.769863 | 37 | 365 | 7.108108 | 0.486486 | 0.250951 | 0.152091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156164 | 365 | 15 | 58 | 24.333333 | 0.853896 | 0 | 0 | 0 | 0 | 0 | 0.257534 | 0.060274 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
b859a4d8cdc702c42d0301b920b261c2cf9c08ae | 3,422 | py | Python | mindware/optimizers/base_optimizer.py | aman-gupta-1995/Machine-Learning-Mindware | 8b3050720711730520683c89949e3dbdfb168961 | [
"MIT"
] | 27 | 2021-07-19T09:03:34.000Z | 2022-03-31T06:19:23.000Z | mindware/optimizers/base_optimizer.py | aman-gupta-1995/Machine-Learning-Mindware | 8b3050720711730520683c89949e3dbdfb168961 | [
"MIT"
] | 4 | 2021-07-15T12:17:10.000Z | 2022-01-26T17:16:58.000Z | mindware/optimizers/base_optimizer.py | aman-gupta-1995/Machine-Learning-Mindware | 8b3050720711730520683c89949e3dbdfb168961 | [
"MIT"
] | 17 | 2020-05-12T20:24:50.000Z | 2021-07-11T03:31:38.000Z | import abc
import os
import time
import numpy as np
import pickle as pkl
from mindware.utils.constant import MAX_INT
from mindware.utils.logging_utils import get_logger
from mindware.components.evaluators.base_evaluator import _BaseEvaluator
from mindware.components.utils.topk_saver import CombinedTopKModelSaver
clas... | 38.886364 | 120 | 0.570427 | 380 | 3,422 | 4.905263 | 0.336842 | 0.041309 | 0.038627 | 0.051502 | 0.080472 | 0.080472 | 0.042918 | 0.042918 | 0.042918 | 0 | 0 | 0.000911 | 0.35827 | 3,422 | 87 | 121 | 39.333333 | 0.847905 | 0.058738 | 0 | 0.194444 | 0 | 0 | 0.022077 | 0 | 0 | 0 | 0 | 0.011494 | 0.013889 | 1 | 0.083333 | false | 0.069444 | 0.125 | 0.027778 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b8654db26747ae44ec12c43d203554508c2c6ed3 | 119 | py | Python | tests/fixtures/tabs/tab1_out.py | spulec/pep8ify | cf1815f7bad9882027289bdb2f77604b68962ca7 | [
"Apache-2.0"
] | 50 | 2015-01-04T04:24:41.000Z | 2021-09-13T01:01:29.000Z | tests/fixtures/tabs/tab1_out.py | michaelBenin/pep8ify | 3cd8a9e8baaab33d66e792185a6870338bdf0911 | [
"Apache-2.0"
] | 2 | 2016-05-15T12:01:28.000Z | 2019-03-08T03:27:20.000Z | tests/fixtures/tabs/tab1_out.py | michaelBenin/pep8ify | 3cd8a9e8baaab33d66e792185a6870338bdf0911 | [
"Apache-2.0"
] | 5 | 2016-07-27T13:44:54.000Z | 2020-11-19T16:00:08.000Z | import foo
class testing():
def tester(self):
return self.blah
def tester2():
print "bleh"
| 10.818182 | 24 | 0.563025 | 14 | 119 | 4.785714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0.336134 | 119 | 10 | 25 | 11.9 | 0.835443 | 0 | 0 | 0 | 0 | 0 | 0.033613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b8806b8f4c29befbbd329c1dfaae5baf9400c456 | 964 | py | Python | mcl/structures/Fp.py | michal21/mcl-python | 12967a2812e50c3a71a9f275b12d3da9d97911ed | [
"MIT"
] | 1 | 2020-10-29T02:32:50.000Z | 2020-10-29T02:32:50.000Z | mcl/structures/Fp.py | michal21/mcl-python | 12967a2812e50c3a71a9f275b12d3da9d97911ed | [
"MIT"
] | null | null | null | mcl/structures/Fp.py | michal21/mcl-python | 12967a2812e50c3a71a9f275b12d3da9d97911ed | [
"MIT"
] | 3 | 2020-10-16T05:55:02.000Z | 2022-02-13T21:27:38.000Z | import ctypes
from .. import builder
from .. import consts
from . import base
@builder.provide_methods(
builder.method("__add__").using(builder.buildThreeOp).with_args("add"),
builder.method("__eq__").using(builder.buildIsEqual),
builder.method("__invert__").using(builder.buildTwoOp).with_args("inv"),
... | 35.703704 | 79 | 0.711618 | 110 | 964 | 5.881818 | 0.363636 | 0.301391 | 0.148377 | 0.173107 | 0.290572 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109959 | 964 | 26 | 80 | 37.076923 | 0.754079 | 0 | 0 | 0 | 0 | 0 | 0.139004 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.173913 | 0 | 0.26087 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b883fce07d08e7dee0c7164c5465cda42f705cd9 | 986 | py | Python | step04.py | xuantum/StockmanDuck | aa328d00511a1024138af2eece9f31f694889f31 | [
"MIT"
] | 1 | 2020-12-24T06:36:26.000Z | 2020-12-24T06:36:26.000Z | step04.py | xuantum/StockmanDuck | aa328d00511a1024138af2eece9f31f694889f31 | [
"MIT"
] | null | null | null | step04.py | xuantum/StockmanDuck | aa328d00511a1024138af2eece9f31f694889f31 | [
"MIT"
] | null | null | null | # Step04 needs "ticker_list.pkl" generated in Step03.
# Step04 downloads half-year PD data of stocks that were picked in Step03, using pandas_datareader.
# Step04 then pickles the PD data into "pd_data.pkl".
print('==============================================')
print(' Step04 Started')
print('=============... | 36.518519 | 99 | 0.608519 | 122 | 986 | 4.770492 | 0.418033 | 0.103093 | 0.044674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025522 | 0.125761 | 986 | 26 | 100 | 37.923077 | 0.649652 | 0.315416 | 0 | 0.235294 | 1 | 0 | 0.396707 | 0.275449 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.235294 | 0 | 0.235294 | 0.411765 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
b8846436f0713620ffbb7130c2d3cffc2f0c7030 | 1,110 | py | Python | setup.py | ingresso-group/django-debug-toolbar-api-requests | c95a515bba61e1be1ee6870d734b71491a019ace | [
"MIT"
] | 1 | 2020-05-19T20:07:28.000Z | 2020-05-19T20:07:28.000Z | setup.py | ingresso-group/django-debug-toolbar-api-requests | c95a515bba61e1be1ee6870d734b71491a019ace | [
"MIT"
] | 1 | 2018-08-08T14:59:44.000Z | 2018-08-08T14:59:44.000Z | setup.py | ingresso-group/django-debug-toolbar-api-requests | c95a515bba61e1be1ee6870d734b71491a019ace | [
"MIT"
] | null | null | null | #import os
from setuptools import setup
# allow setup.py to be run from any path
#os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-debug-toolbar-api-requests',
version='0.1.0',
packages=['djdt_api_requests', 'djdt_api_requests.panels'],
include_package... | 32.647059 | 79 | 0.636036 | 130 | 1,110 | 5.330769 | 0.615385 | 0.137085 | 0.180375 | 0.075036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011641 | 0.226126 | 1,110 | 33 | 80 | 33.636364 | 0.795111 | 0.113514 | 0 | 0 | 0 | 0 | 0.572449 | 0.080612 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.037037 | 0 | 0.037037 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b8b6ea646be9425d8fdb344d8e14fe9e914e2b64 | 719 | py | Python | python/p_lesson_7/task2.py | korwil/lessons | cbeb375cea38e143498979b63e133fdf71bf83bf | [
"Apache-2.0"
] | null | null | null | python/p_lesson_7/task2.py | korwil/lessons | cbeb375cea38e143498979b63e133fdf71bf83bf | [
"Apache-2.0"
] | null | null | null | python/p_lesson_7/task2.py | korwil/lessons | cbeb375cea38e143498979b63e133fdf71bf83bf | [
"Apache-2.0"
] | null | null | null | # 2-e задание
from abc import ABC, abstractmethod
class Clothes(ABC):
name = None
@property
@abstractmethod
def fabric_consumption(self):
pass
class Coat(Clothes):
name = 'Пальто'
def __init__(self, size):
self.size = size
@property
def fabric_consumption(self):
... | 17.119048 | 70 | 0.62726 | 97 | 719 | 4.515464 | 0.402062 | 0.194064 | 0.136986 | 0.164384 | 0.173516 | 0.173516 | 0 | 0 | 0 | 0 | 0 | 0.024164 | 0.251739 | 719 | 41 | 71 | 17.536585 | 0.789963 | 0.015299 | 0 | 0.24 | 0 | 0 | 0.187234 | 0.062411 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.04 | 0.04 | 0.08 | 0.56 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b8bc962f0301402c9c2acf9b1b47bcb1b3b39107 | 184 | py | Python | cloudsql/utilities.py | amuetter/cloudSQL | c1881a51aa61bf1667cabb3f723b35de6fde96be | [
"MIT"
] | null | null | null | cloudsql/utilities.py | amuetter/cloudSQL | c1881a51aa61bf1667cabb3f723b35de6fde96be | [
"MIT"
] | null | null | null | cloudsql/utilities.py | amuetter/cloudSQL | c1881a51aa61bf1667cabb3f723b35de6fde96be | [
"MIT"
] | null | null | null | def parse_args(r_args):
columns = r_args.get('columns')
args = {key:value for (key,value) in r_args.items() if key not in ('columns', 'api_key')}
return columns, args | 30.666667 | 93 | 0.646739 | 30 | 184 | 3.8 | 0.5 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206522 | 184 | 6 | 94 | 30.666667 | 0.780822 | 0 | 0 | 0 | 0 | 0 | 0.113514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 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 | 0 | 0 | 0 | 0 | 2 |
b211c71ee95b7527d604be8209afe870fad6cedb | 600 | py | Python | myweb/xsite.py | RainYang0925/testcase_web | 6698190c426be56bfc54e92b6f99a3de335d5e82 | [
"CC-BY-4.0"
] | 7 | 2017-08-03T08:02:11.000Z | 2021-02-22T02:25:03.000Z | myweb/xsite.py | kian11/testcase_web | 6698190c426be56bfc54e92b6f99a3de335d5e82 | [
"CC-BY-4.0"
] | null | null | null | myweb/xsite.py | kian11/testcase_web | 6698190c426be56bfc54e92b6f99a3de335d5e82 | [
"CC-BY-4.0"
] | null | null | null | # -*- coding:utf-8 -*-
from xadmin import Settings
from xadmin.views.list import ListAdminView
from xadmin.views import CommAdminView
from xadmin.plugins.actions import BaseActionView,ActionPlugin
from django.http import HttpResponse, HttpResponseRedirect
class Base(Settings):
enable_themes = True
use_bootswatc... | 27.272727 | 62 | 0.768333 | 70 | 600 | 6.471429 | 0.585714 | 0.0883 | 0.066225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005871 | 0.148333 | 600 | 21 | 63 | 28.571429 | 0.880626 | 0.171667 | 0 | 0 | 0 | 0 | 0.042857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.846154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
b224a64cf7cc85d948580ba95f6790032e7f2a0a | 1,658 | py | Python | tests/views/test_auth.py | koonwen/YNC-Gym-Counter | e5000f1e8665c275f0a3c66ade7084d94e6526ad | [
"Apache-2.0"
] | null | null | null | tests/views/test_auth.py | koonwen/YNC-Gym-Counter | e5000f1e8665c275f0a3c66ade7084d94e6526ad | [
"Apache-2.0"
] | null | null | null | tests/views/test_auth.py | koonwen/YNC-Gym-Counter | e5000f1e8665c275f0a3c66ade7084d94e6526ad | [
"Apache-2.0"
] | 1 | 2021-11-05T06:15:33.000Z | 2021-11-05T06:15:33.000Z | import pytest
from flask import g, session
from app.db.models import Admin
# TODO implement skipping for pytest
# @pytest.mark.parametrize(('username', 'password', 'message'), (
# ('', '', b'Username is required.'),
# ('a', '', b'Password is required.'),
# ('test', 'test', b'already registered'),
# ))
# de... | 30.145455 | 74 | 0.627262 | 192 | 1,658 | 5.338542 | 0.291667 | 0.093659 | 0.089756 | 0.056585 | 0.323902 | 0.323902 | 0.081951 | 0.081951 | 0 | 0 | 0 | 0.005307 | 0.204463 | 1,658 | 54 | 75 | 30.703704 | 0.771797 | 0.4807 | 0 | 0.086957 | 0 | 0 | 0.15119 | 0 | 0 | 0 | 0 | 0.018519 | 0.26087 | 1 | 0.130435 | false | 0.173913 | 0.130435 | 0 | 0.26087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b224cde180e86605ee3a29c4c55a1a85f558060d | 971 | py | Python | Brain_Waves_Analysis/Training_Data_Acquisition/src/Board.py | ViniciusALS/Cerebro | 473866662fc93512b90d234f0cee8fea256b22e3 | [
"MIT"
] | 3 | 2020-11-05T15:36:22.000Z | 2021-01-25T20:54:32.000Z | Brain_Waves_Analysis/Training_Data_Acquisition/src/Board.py | ViniciusALS/Cerebro | 473866662fc93512b90d234f0cee8fea256b22e3 | [
"MIT"
] | 2 | 2021-01-27T07:42:58.000Z | 2021-01-27T07:53:28.000Z | Brain_Waves_Analysis/Training_Data_Acquisition/src/Board.py | ViniciusALS/Cerebro | 473866662fc93512b90d234f0cee8fea256b22e3 | [
"MIT"
] | null | null | null | import time
import numpy as np
import brainflow
from brainflow import BoardIds
from brainflow.board_shim import BoardShim, BrainFlowInputParams
class Board:
def __init__(self):
self.__board_ID = brainflow.board_shim.BoardIds(BoardIds.CYTON_BOARD)
self.__parameters = self.__setBoardParameters()
self.__bo... | 19.42 | 71 | 0.775489 | 117 | 971 | 5.948718 | 0.350427 | 0.116379 | 0.074713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001198 | 0.140062 | 971 | 49 | 72 | 19.816327 | 0.832335 | 0 | 0 | 0 | 0 | 0 | 0.004119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.178571 | 0 | 0.535714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b2305aa91fe5b020c41774b34b8c9cfbff9c2994 | 8,117 | py | Python | app/accounts/models.py | HenriqueLR/payments | f2f7316fe12b683705e9a78813a86e43c08a2cf6 | [
"MIT"
] | null | null | null | app/accounts/models.py | HenriqueLR/payments | f2f7316fe12b683705e9a78813a86e43c08a2cf6 | [
"MIT"
] | 9 | 2017-06-01T12:28:25.000Z | 2017-10-26T11:21:37.000Z | app/accounts/models.py | HenriqueLR/payments | f2f7316fe12b683705e9a78813a86e43c08a2cf6 | [
"MIT"
] | null | null | null | #coding: utf-8
import re
from django.db.models import Q
from django.db import models
from django.conf import settings
from django.core import validators
from accounts.localflavor.br.br_states import STATE_CHOICES
from django.contrib.auth.models import (AbstractBaseUser, PermissionsMixin, UserManager)
cl... | 39.024038 | 117 | 0.628434 | 955 | 8,117 | 5.099476 | 0.183246 | 0.083573 | 0.064066 | 0.043121 | 0.427926 | 0.345175 | 0.331622 | 0.249692 | 0.216838 | 0.196304 | 0 | 0.003626 | 0.252433 | 8,117 | 208 | 118 | 39.024038 | 0.798945 | 0.001602 | 0 | 0.310559 | 0 | 0 | 0.185387 | 0.008484 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111801 | false | 0.055901 | 0.043478 | 0.099379 | 0.534161 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
b247f037ae61375f2b14b99fb0d6e385812f3e13 | 367 | py | Python | backend/models.py | MichalKandybowicz/cicida | 92cd0ae5551c0a2e3386feb758bf3b7daf2d205f | [
"MIT"
] | null | null | null | backend/models.py | MichalKandybowicz/cicida | 92cd0ae5551c0a2e3386feb758bf3b7daf2d205f | [
"MIT"
] | null | null | null | backend/models.py | MichalKandybowicz/cicida | 92cd0ae5551c0a2e3386feb758bf3b7daf2d205f | [
"MIT"
] | null | null | null | from django.core.validators import MinValueValidator, MaxValueValidator
from django.db import models
from accounts.models import CustomUser
from django.utils.translation import ugettext_lazy as _
from accounts.models import CustomUser
class Purchase(models.Model):
user = models.ForeignKey(CustomUser, related_name... | 28.230769 | 96 | 0.831063 | 46 | 367 | 6.521739 | 0.565217 | 0.1 | 0.12 | 0.16 | 0.226667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106267 | 367 | 12 | 97 | 30.583333 | 0.914634 | 0 | 0 | 0.285714 | 0 | 0 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.714286 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
b2567e4c1272d4eecac9f7a4ed88557d78012849 | 4,370 | py | Python | crypto/bls/bls_bft_replica.py | rhzs/indy-plenum | a1ee6f3d081e802b404637026dc6f8ef3ec82a40 | [
"Apache-2.0"
] | null | null | null | crypto/bls/bls_bft_replica.py | rhzs/indy-plenum | a1ee6f3d081e802b404637026dc6f8ef3ec82a40 | [
"Apache-2.0"
] | null | null | null | crypto/bls/bls_bft_replica.py | rhzs/indy-plenum | a1ee6f3d081e802b404637026dc6f8ef3ec82a40 | [
"Apache-2.0"
] | 1 | 2020-01-24T09:36:13.000Z | 2020-01-24T09:36:13.000Z | from abc import ABCMeta, abstractmethod
from crypto.bls.bls_bft import BlsBft
from plenum.common.messages.node_messages import PrePrepare, Prepare, Commit
class BlsBftReplica(metaclass=ABCMeta):
PPR_BLS_MULTISIG_WRONG = 1
CM_BLS_SIG_WRONG = 2
def __init__(self,
bls_bft: BlsBft,
... | 32.857143 | 114 | 0.641419 | 522 | 4,370 | 5.247126 | 0.224138 | 0.07667 | 0.07667 | 0.069003 | 0.638919 | 0.566265 | 0.566265 | 0.501278 | 0.459657 | 0.408178 | 0 | 0.00195 | 0.295881 | 4,370 | 132 | 115 | 33.106061 | 0.888203 | 0.51373 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.25 | 0.068182 | 0 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b25746127a291678ddbe683728c485ff67e3f35a | 318 | py | Python | ex000.py | Laurahpro/EXERCICIOS-EM-PYTHON | 7eb896e322f183fdbcf3a7d93b21ab5b6162f303 | [
"MIT"
] | null | null | null | ex000.py | Laurahpro/EXERCICIOS-EM-PYTHON | 7eb896e322f183fdbcf3a7d93b21ab5b6162f303 | [
"MIT"
] | null | null | null | ex000.py | Laurahpro/EXERCICIOS-EM-PYTHON | 7eb896e322f183fdbcf3a7d93b21ab5b6162f303 | [
"MIT"
] | null | null | null | nome = input('Qual o seu nome?')
print('É um grande prazer te conhecer,', nome)
idade = input('Quantos anos você tem?')
print('Bacana que você tem', idade,'anos', nome,'!')
filho = input('Você tem filhos?')
print('Que bacana!')
nomeFilho = input('Qual o nome do seu filho?')
print('Então ele se chama', nomeFilho, '!') | 39.75 | 52 | 0.679245 | 50 | 318 | 4.32 | 0.54 | 0.097222 | 0.092593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141509 | 318 | 8 | 53 | 39.75 | 0.791209 | 0 | 0 | 0 | 0 | 0 | 0.514107 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
b260c0aa25c629eb40bb0e5bdaa0ce6efb625770 | 1,197 | py | Python | mempyasync/resourcehelper.py | sumsted/mempy-async | cbbfe8c972c8076668e74fbf1f79299d65e6336a | [
"Apache-2.0"
] | null | null | null | mempyasync/resourcehelper.py | sumsted/mempy-async | cbbfe8c972c8076668e74fbf1f79299d65e6336a | [
"Apache-2.0"
] | null | null | null | mempyasync/resourcehelper.py | sumsted/mempy-async | cbbfe8c972c8076668e74fbf1f79299d65e6336a | [
"Apache-2.0"
] | null | null | null | __author__ = 'scottumsted'
import gc
import resource
import time
class ResourceHelper():
def __init__(self, module=None):
self.module = '' if module is None else '\nmodule:\t'+module+'\n'
gc.disable()
self.reset()
def reset(self):
self.start_mem = resource.getrusage(res... | 46.038462 | 159 | 0.679198 | 163 | 1,197 | 4.705521 | 0.245399 | 0.11734 | 0.195567 | 0.242503 | 0.388527 | 0.388527 | 0.388527 | 0.388527 | 0.143416 | 0.143416 | 0 | 0 | 0.193818 | 1,197 | 26 | 159 | 46.038462 | 0.794819 | 0 | 0 | 0 | 0 | 0.043478 | 0.07596 | 0.055927 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.130435 | 0 | 0.304348 | 0.043478 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b267a0be277dc89d036ac9ce801fd45bd41ed451 | 770 | py | Python | intro/summary-exercises/examples/plot_optimize_lidar_data_fit.py | zmoon/scipy-lecture-notes | 75a89ddedeb48930dbdb6fe25a76e9ef0587ae21 | [
"CC-BY-4.0"
] | 2,538 | 2015-01-01T04:58:41.000Z | 2022-03-31T21:06:05.000Z | intro/summary-exercises/examples/plot_optimize_lidar_data_fit.py | zmoon/scipy-lecture-notes | 75a89ddedeb48930dbdb6fe25a76e9ef0587ae21 | [
"CC-BY-4.0"
] | 362 | 2015-01-18T14:16:23.000Z | 2021-11-18T16:24:34.000Z | intro/summary-exercises/examples/plot_optimize_lidar_data_fit.py | zmoon/scipy-lecture-notes | 75a89ddedeb48930dbdb6fe25a76e9ef0587ae21 | [
"CC-BY-4.0"
] | 1,127 | 2015-01-05T14:39:29.000Z | 2022-03-25T08:38:39.000Z | """
The lidar system, data and fit (1 of 2 datasets)
================================================
Generate a chart of the data fitted by Gaussian curve
"""
import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import leastsq
def model(t, coeffs):
return coeffs[0] + coeffs[1] * np.exp(- ((t-... | 22 | 73 | 0.628571 | 124 | 770 | 3.862903 | 0.548387 | 0.093946 | 0.050104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033384 | 0.144156 | 770 | 34 | 74 | 22.647059 | 0.693475 | 0.197403 | 0 | 0 | 1 | 0 | 0.085246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.166667 | 0.111111 | 0.388889 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
b26d586e3c72dd097aa813377afb6cb1bec96e72 | 535 | py | Python | app/main/forms.py | Nyirabazungu/pitcher-app | 65f9a98d4df6a2966840d0703bf081aa27d3b324 | [
"MIT"
] | null | null | null | app/main/forms.py | Nyirabazungu/pitcher-app | 65f9a98d4df6a2966840d0703bf081aa27d3b324 | [
"MIT"
] | null | null | null | app/main/forms.py | Nyirabazungu/pitcher-app | 65f9a98d4df6a2966840d0703bf081aa27d3b324 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField,TextAreaField,SubmitField
from wtforms.validators import Required
class PitchForm(FlaskForm):
pitches= TextAreaField('Write your Pitch',validators=[Required()])
submit = SubmitField('Submit')
class UpdateProfile(FlaskForm):
bio = TextAreaFi... | 29.722222 | 71 | 0.75514 | 54 | 535 | 7.462963 | 0.481481 | 0.133995 | 0.17866 | 0.260546 | 0.330025 | 0.228288 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130841 | 535 | 18 | 72 | 29.722222 | 0.866667 | 0 | 0 | 0.25 | 0 | 0 | 0.110075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b29521c7a015bd44e52db5b543c3a1f07ffbf977 | 6,055 | py | Python | app/template_controller.py | MaxKusnadi/tax-calculator | 9de1bd426b26e43e8cb23daca668b07dd1c68535 | [
"MIT"
] | null | null | null | app/template_controller.py | MaxKusnadi/tax-calculator | 9de1bd426b26e43e8cb23daca668b07dd1c68535 | [
"MIT"
] | 3 | 2018-12-05T14:55:18.000Z | 2018-12-07T15:52:00.000Z | app/template_controller.py | MaxKusnadi/tax-calculator | 9de1bd426b26e43e8cb23daca668b07dd1c68535 | [
"MIT"
] | null | null | null | import dash_html_components as html
from dash.dependencies import Input, Output, State
from app import app
from app.utils import Utils
from app.logic.tax_calculator import TaxCalculator
tax_calculator = TaxCalculator()
@app.callback(
Output('annual-salary', 'children'),
[Input('monthly-salary', 'n_submit')... | 39.835526 | 106 | 0.546821 | 682 | 6,055 | 4.695015 | 0.104106 | 0.052467 | 0.119925 | 0.094941 | 0.768582 | 0.752967 | 0.687383 | 0.644285 | 0.630231 | 0.630231 | 0 | 0.015814 | 0.289843 | 6,055 | 151 | 107 | 40.099338 | 0.728837 | 0 | 0 | 0.567164 | 0 | 0 | 0.216185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052239 | false | 0 | 0.037313 | 0.014925 | 0.141791 | 0.007463 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 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 | 2 |
b295adcbecace89aae63b84ee21aa2cb2868aee6 | 7,370 | py | Python | tests/ut/python/pipeline/parse/test_parse.py | Gavin-Hoang/mindspore | f745ae0799a0840ebba18021c250f0089325a414 | [
"Apache-2.0"
] | 2 | 2020-08-12T16:14:40.000Z | 2020-12-04T03:05:57.000Z | tests/ut/python/pipeline/parse/test_parse.py | Gavin-Hoang/mindspore | f745ae0799a0840ebba18021c250f0089325a414 | [
"Apache-2.0"
] | null | null | null | tests/ut/python/pipeline/parse/test_parse.py | Gavin-Hoang/mindspore | f745ae0799a0840ebba18021c250f0089325a414 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 29.015748 | 102 | 0.669878 | 943 | 7,370 | 4.988335 | 0.223754 | 0.014881 | 0.021046 | 0.02381 | 0.385417 | 0.330995 | 0.242985 | 0.185374 | 0.134779 | 0.114796 | 0 | 0.023838 | 0.20882 | 7,370 | 253 | 103 | 29.130435 | 0.782885 | 0.1654 | 0 | 0.342105 | 0 | 0 | 0.047179 | 0.021445 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.085526 | 0.111842 | 0.539474 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
b297e45185fae6af8c48b427526a973481d69e16 | 283 | py | Python | matzip_image/views.py | Qone2/real-matzip-backend | 8448e28c928dd9117163055643746b86d99ae692 | [
"MIT"
] | null | null | null | matzip_image/views.py | Qone2/real-matzip-backend | 8448e28c928dd9117163055643746b86d99ae692 | [
"MIT"
] | null | null | null | matzip_image/views.py | Qone2/real-matzip-backend | 8448e28c928dd9117163055643746b86d99ae692 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
from django.template import loader
def index(request):
template = loader.get_template('matzip_image/index.html')
return HttpResponse(template.render(request))
# def image_show(request, file_name):
#
| 23.583333 | 61 | 0.787986 | 37 | 283 | 5.918919 | 0.540541 | 0.136986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123675 | 283 | 11 | 62 | 25.727273 | 0.883065 | 0.123675 | 0 | 0 | 0 | 0 | 0.093878 | 0.093878 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
b29d5a4083ec5d6c11d0029ec08b9c76886af89b | 1,763 | py | Python | games/spiders/spider.py | winkelmantanner/mmai20-dumbsophomores | bd2c88ea34cf9be83e2efd59abf2adf9a1a056fa | [
"MIT"
] | null | null | null | games/spiders/spider.py | winkelmantanner/mmai20-dumbsophomores | bd2c88ea34cf9be83e2efd59abf2adf9a1a056fa | [
"MIT"
] | null | null | null | games/spiders/spider.py | winkelmantanner/mmai20-dumbsophomores | bd2c88ea34cf9be83e2efd59abf2adf9a1a056fa | [
"MIT"
] | null | null | null | # Spider: A Spider in the game. The most basic unit.
# DO NOT MODIFY THIS FILE
# Never try to directly create an instance of this class, or modify its member variables.
# Instead, you should only be reading its variables and calling its functions.
from games.spiders.game_object import GameObject
# <<-- Creer-Merge: ... | 32.054545 | 135 | 0.655133 | 249 | 1,763 | 4.566265 | 0.437751 | 0.03518 | 0.029024 | 0.021108 | 0.191733 | 0.191733 | 0.191733 | 0.191733 | 0.191733 | 0.135444 | 0 | 0 | 0.261486 | 1,763 | 54 | 136 | 32.648148 | 0.873272 | 0.669881 | 0 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
a22c7d4bf85e09e6ea43da9912a236c43d81caf2 | 638 | py | Python | aoc_2020/run_all.py | n1ckdm/advent-of-code-2020 | 913ea4cff29fa76df15c0c22616cc1eebb903490 | [
"MIT"
] | 1 | 2020-12-05T09:25:03.000Z | 2020-12-05T09:25:03.000Z | aoc_2020/run_all.py | n1ckdm/advent-of-code-2020 | 913ea4cff29fa76df15c0c22616cc1eebb903490 | [
"MIT"
] | null | null | null | aoc_2020/run_all.py | n1ckdm/advent-of-code-2020 | 913ea4cff29fa76df15c0c22616cc1eebb903490 | [
"MIT"
] | null | null | null | from . import day1, day2, day3, day4, day5, day6, day7, day8
from . import inputs
if __name__ == "__main__":
day1.part1(inputs.day1.data)
day1.part2(inputs.day1.data)
day2.part1(inputs.day2.data)
day2.part2(inputs.day2.data)
day3.part1(inputs.day3.data)
day3.part2(inputs.day3.data)
day4.par... | 30.380952 | 60 | 0.695925 | 96 | 638 | 4.541667 | 0.177083 | 0.201835 | 0.06422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104089 | 0.15674 | 638 | 20 | 61 | 31.9 | 0.70632 | 0 | 0 | 0 | 0 | 0 | 0.012539 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.105263 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a238a1ceea17ace23e3bc7ba0790cd397f800bc7 | 1,936 | py | Python | lsg/gene.py | nemanja-m/learning-space-generator | 376147fa4240aef5ab5fea9953ac026622943c4b | [
"MIT"
] | 2 | 2021-01-06T15:00:08.000Z | 2021-03-18T20:58:55.000Z | lsg/gene.py | nemanja-m/learning-space-generator | 376147fa4240aef5ab5fea9953ac026622943c4b | [
"MIT"
] | null | null | null | lsg/gene.py | nemanja-m/learning-space-generator | 376147fa4240aef5ab5fea9953ac026622943c4b | [
"MIT"
] | 1 | 2021-07-07T12:42:58.000Z | 2021-07-07T12:42:58.000Z | import random
from .structure import KnowledgeState
class Gene:
def __init__(self, key):
self.key = key
def __eq__(self, other: 'Gene') -> int:
return self.key == other.key
def distance(self, other: 'Gene') -> int:
raise NotImplementedError()
def copy(self) -> 'Gene':
... | 29.333333 | 88 | 0.657025 | 230 | 1,936 | 5.326087 | 0.3 | 0.114286 | 0.102857 | 0.056327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004814 | 0.248967 | 1,936 | 65 | 89 | 29.784615 | 0.837689 | 0.071281 | 0 | 0.097561 | 0 | 0 | 0.044036 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 1 | 0.292683 | false | 0 | 0.04878 | 0.097561 | 0.560976 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
a257742eec39f35c6d5fd82dfdb85767267136de | 997 | py | Python | binarysearch.io/22_add_binary_numbers.py | mishrakeshav/Competitive-Programming | b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2 | [
"MIT"
] | 2 | 2020-06-25T21:10:32.000Z | 2020-12-10T06:53:45.000Z | binarysearch.io/22_add_binary_numbers.py | mishrakeshav/Competitive-Programming | b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2 | [
"MIT"
] | null | null | null | binarysearch.io/22_add_binary_numbers.py | mishrakeshav/Competitive-Programming | b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2 | [
"MIT"
] | 3 | 2020-05-15T14:17:09.000Z | 2021-07-25T13:18:20.000Z | class Solution:
def solve(self, a, b):
def bin_sum(x,y,c):
x = int(x)
y = int(y)
c = int(c)
si = (x+y+c)%2
c = (x+y+c)//2
if c:
c = 1
return str(si),str(c)
n , m = len(a),len(b)
... | 23.738095 | 42 | 0.268806 | 135 | 997 | 1.955556 | 0.214815 | 0.090909 | 0.034091 | 0.102273 | 0.276515 | 0.276515 | 0.106061 | 0.106061 | 0 | 0 | 0 | 0.045 | 0.598796 | 997 | 42 | 43 | 23.738095 | 0.615 | 0 | 0 | 0.324324 | 0 | 0 | 0.001002 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0 | 0 | 0.135135 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.