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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7c02196ff08fda517c472d6a6325f606f3df8cac | 1,210 | py | Python | tradeiobot/db/stores/abstractstore.py | hcv57/tradeio-bot | a4c9f96a104e20ca0618d8d787cfef3599c8ebb7 | [
"MIT"
] | 2 | 2018-10-28T18:47:02.000Z | 2019-10-09T14:52:04.000Z | tradeiobot/db/stores/abstractstore.py | hcv57/tradeio-bot | a4c9f96a104e20ca0618d8d787cfef3599c8ebb7 | [
"MIT"
] | null | null | null | tradeiobot/db/stores/abstractstore.py | hcv57/tradeio-bot | a4c9f96a104e20ca0618d8d787cfef3599c8ebb7 | [
"MIT"
] | null | null | null | import abc
class AbstractStore(abc.ABC):
def get(self, table, key, next_store_action):
value = self.do_get(table, key)
if not value:
value = next_store_action(table, key)
if value: # then update the local store
self.do_set(table, key, value)
return ... | 26.888889 | 56 | 0.602479 | 165 | 1,210 | 4.206061 | 0.206061 | 0.149856 | 0.172911 | 0.115274 | 0.576369 | 0.315562 | 0 | 0 | 0 | 0 | 0 | 0 | 0.309091 | 1,210 | 45 | 57 | 26.888889 | 0.830144 | 0.022314 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0.114286 | 0.028571 | 0 | 0.342857 | 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 |
9fdadafb759d17ded7ccd299bdbfcf9faeff04b7 | 66 | py | Python | lang/py/cookbook/v2/source/cb2_1_18_exm_3.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_1_18_exm_3.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_1_18_exm_3.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | rx = re.compile(r'\b%s\b' % r'\b|\b'.join(map(re.escape, adict)))
| 33 | 65 | 0.575758 | 15 | 66 | 2.533333 | 0.666667 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 66 | 1 | 66 | 66 | 0.633333 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9fe282030a02b4055f9395a841b3fabbcbf1b05f | 835 | py | Python | tests/test_BG_IO.py | GeorgRamer/anasys-python-tools | f4fbb83b7df8f6b2fefac3fb5e478076fcea7cfa | [
"MIT"
] | null | null | null | tests/test_BG_IO.py | GeorgRamer/anasys-python-tools | f4fbb83b7df8f6b2fefac3fb5e478076fcea7cfa | [
"MIT"
] | null | null | null | tests/test_BG_IO.py | GeorgRamer/anasys-python-tools | f4fbb83b7df8f6b2fefac3fb5e478076fcea7cfa | [
"MIT"
] | null | null | null |
import anasyspythontools as apt
import pytest
import glob
import os
TESTFOLDER = os.path.join(os.path.dirname(__file__),"test data")
@pytest.mark.parametrize("filename", glob.glob(os.path.join(TESTFOLDER, "*.irb")))
class TestBG:
def setup_method(self, filename):
pass
def teardown_metho... | 23.194444 | 83 | 0.646707 | 106 | 835 | 4.962264 | 0.396226 | 0.114068 | 0.142586 | 0.091255 | 0.31749 | 0.31749 | 0.243346 | 0.1673 | 0.1673 | 0.1673 | 0 | 0 | 0.244311 | 835 | 35 | 84 | 23.857143 | 0.833597 | 0 | 0 | 0.304348 | 0 | 0 | 0.035971 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 1 | 0.26087 | false | 0.086957 | 0.173913 | 0 | 0.478261 | 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 |
9ffe17de7805da9bfb7ad7d54bb9a08115c66b6e | 149 | py | Python | commonutils/__init__.py | lrbsunday/commonutils | 6a4f2106e877417eebc8b8c6a9c1610505bd21e3 | [
"BSD-3-Clause"
] | 1 | 2017-09-10T13:13:04.000Z | 2017-09-10T13:13:04.000Z | commonutils/__init__.py | lrbsunday/commonutils | 6a4f2106e877417eebc8b8c6a9c1610505bd21e3 | [
"BSD-3-Clause"
] | 2 | 2021-03-25T21:45:54.000Z | 2021-11-15T17:47:06.000Z | commonutils/__init__.py | lrbsunday/commonutils | 6a4f2106e877417eebc8b8c6a9c1610505bd21e3 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Top-level package for commonutils."""
__author__ = """lrbsunday"""
__email__ = '272316131@qq.com'
__version__ = '0.1.0'
| 18.625 | 40 | 0.637584 | 18 | 149 | 4.611111 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100775 | 0.134228 | 149 | 7 | 41 | 21.285714 | 0.542636 | 0.38255 | 0 | 0 | 0 | 0 | 0.348837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b0074893c2e7005340588db291b50134738031f4 | 3,044 | py | Python | openclean/util/core.py | remram44/openclean-core | 8c09c8302cadbb3bb02c959907f91a3ae343f939 | [
"BSD-3-Clause"
] | 4 | 2021-04-20T09:06:26.000Z | 2021-11-20T20:31:28.000Z | openclean/util/core.py | remram44/openclean-core | 8c09c8302cadbb3bb02c959907f91a3ae343f939 | [
"BSD-3-Clause"
] | 14 | 2021-01-19T19:23:16.000Z | 2021-04-28T14:31:03.000Z | openclean/util/core.py | remram44/openclean-core | 8c09c8302cadbb3bb02c959907f91a3ae343f939 | [
"BSD-3-Clause"
] | 5 | 2021-08-24T11:57:21.000Z | 2022-03-17T04:39:04.000Z | # This file is part of the Data Cleaning Library (openclean).
#
# Copyright (C) 2018-2021 New York University.
#
# openclean is released under the Revised BSD License. See file LICENSE for
# full license details.
"""Collection of helper functions for various purpoeses."""
from typing import Optional
import uuid
de... | 23.415385 | 79 | 0.617608 | 360 | 3,044 | 5.158333 | 0.361111 | 0.022617 | 0.017771 | 0.020463 | 0.03231 | 0.03231 | 0 | 0 | 0 | 0 | 0 | 0.004146 | 0.286794 | 3,044 | 129 | 80 | 23.596899 | 0.851221 | 0.594941 | 0 | 0.083333 | 0 | 0 | 0.00116 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0.083333 | 0.083333 | 0 | 0.708333 | 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 |
b00a0ae9f8f71c5f857d2683a8d63e315db4a5e2 | 254 | py | Python | fastNLP/modules/encoder/__init__.py | awesome-archive/fastNLP | 767e7971e542783c0129ed88b7d871db775e653e | [
"Apache-2.0"
] | 4 | 2019-01-19T13:58:10.000Z | 2019-01-19T15:07:48.000Z | fastNLP/modules/encoder/__init__.py | TTTREE/fastNLP | ef82c1f10000752db32a5fa323668b94bcb940a1 | [
"Apache-2.0"
] | 1 | 2018-09-30T13:30:51.000Z | 2018-09-30T13:30:51.000Z | fastNLP/modules/encoder/__init__.py | TTTREE/fastNLP | ef82c1f10000752db32a5fa323668b94bcb940a1 | [
"Apache-2.0"
] | null | null | null | from .conv import Conv
from .conv_maxpool import ConvMaxpool
from .embedding import Embedding
from .linear import Linear
from .lstm import LSTM
__all__ = ["LSTM",
"Embedding",
"Linear",
"Conv",
"ConvMaxpool"]
| 21.166667 | 37 | 0.629921 | 27 | 254 | 5.740741 | 0.333333 | 0.103226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.283465 | 254 | 11 | 38 | 23.090909 | 0.851648 | 0 | 0 | 0 | 0 | 0 | 0.133858 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b01440159aa9a67d2eac6230f37afcedb41016ba | 303 | py | Python | app/views.py | kobrient/tinypilot | aa40f11a370e04b11e0f72d34647c0e01669bbe9 | [
"MIT"
] | null | null | null | app/views.py | kobrient/tinypilot | aa40f11a370e04b11e0f72d34647c0e01669bbe9 | [
"MIT"
] | null | null | null | app/views.py | kobrient/tinypilot | aa40f11a370e04b11e0f72d34647c0e01669bbe9 | [
"MIT"
] | null | null | null | import flask
from find_files import find as find_files
views_blueprint = flask.Blueprint('views', __name__, url_prefix='')
@views_blueprint.route('/', methods=['GET'])
def index_get():
return flask.render_template(
'index.html', custom_elements_files=find_files.custom_elements_files())
| 25.25 | 79 | 0.752475 | 40 | 303 | 5.3 | 0.55 | 0.127358 | 0.179245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122112 | 303 | 11 | 80 | 27.545455 | 0.796992 | 0 | 0 | 0 | 0 | 0 | 0.062706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 0.571429 | 0.285714 | 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 |
b0144723fdb455462aff667b476dc0e86c2e8039 | 577 | py | Python | example.py | LAIRLAB/libpyarr | 9e973a4045519fa6aedae3aaabd8267f6f796a8c | [
"BSD-3-Clause"
] | 1 | 2016-04-09T02:37:03.000Z | 2016-04-09T02:37:03.000Z | example.py | LAIRLAB/libpyarr | 9e973a4045519fa6aedae3aaabd8267f6f796a8c | [
"BSD-3-Clause"
] | null | null | null | example.py | LAIRLAB/libpyarr | 9e973a4045519fa6aedae3aaabd8267f6f796a8c | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python
import warnings, numpy
with warnings.catch_warnings():
warnings.simplefilter("ignore")
from libpyarr_example import *
def main():
my_uninited_arr = bar()
my_uninited_arr[:, 0,0] = -50
print "some -50s, some uninitialized:",my_uninited_arr[:,:2,0]
foo(my_uninited_arr... | 28.85 | 83 | 0.694974 | 83 | 577 | 4.566265 | 0.60241 | 0.158311 | 0.205805 | 0.073879 | 0.079156 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025424 | 0.181976 | 577 | 19 | 84 | 30.368421 | 0.777542 | 0.036395 | 0 | 0 | 0 | 0 | 0.317117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.285714 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b02365bd68f389ec1ac4453e0ddfb053b1f457d4 | 20,428 | py | Python | PVPlugins/PVGeo_UBC_Tools.py | jkulesza/PVGeo | c7bdbad5e5e5579033e1b00605d680b67252b3f4 | [
"BSD-3-Clause"
] | 1 | 2020-06-09T16:49:28.000Z | 2020-06-09T16:49:28.000Z | PVPlugins/PVGeo_UBC_Tools.py | jkulesza/PVGeo | c7bdbad5e5e5579033e1b00605d680b67252b3f4 | [
"BSD-3-Clause"
] | null | null | null | PVPlugins/PVGeo_UBC_Tools.py | jkulesza/PVGeo | c7bdbad5e5e5579033e1b00605d680b67252b3f4 | [
"BSD-3-Clause"
] | null | null | null | paraview_plugin_version = '1.1.39'
# This is module to import. It provides VTKPythonAlgorithmBase, the base class
# for all python-based vtkAlgorithm subclasses in VTK and decorators used to
# 'register' the algorithm with ParaView along with information about UI.
from paraview.util.vtkAlgorithm import *
# Helpers:
fr... | 42.558333 | 221 | 0.684012 | 1,974 | 20,428 | 6.936677 | 0.123607 | 0.03615 | 0.043672 | 0.043672 | 0.732637 | 0.71343 | 0.684218 | 0.666691 | 0.66377 | 0.646535 | 0 | 0.003605 | 0.171578 | 20,428 | 479 | 222 | 42.647182 | 0.805531 | 0.090856 | 0 | 0.598802 | 0 | 0.017964 | 0.352498 | 0.092851 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176647 | false | 0 | 0.008982 | 0.002994 | 0.245509 | 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 |
b038cebedd15245004a4a13444cb7f55e363f2e8 | 33,401 | py | Python | EVB.py | yunzhe-zhou/CS285-Project | e6aca061e27d2794949d4419339120107a6cb8f7 | [
"MIT"
] | null | null | null | EVB.py | yunzhe-zhou/CS285-Project | e6aca061e27d2794949d4419339120107a6cb8f7 | [
"MIT"
] | null | null | null | EVB.py | yunzhe-zhou/CS285-Project | e6aca061e27d2794949d4419339120107a6cb8f7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""RED_linear_run1.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1-WN1MY9YYluGcnigLgrndqsxcOYldbB6
"""
#@title mount your Google Drive
#@markdown Your work will be stored in a folder called `cs285_f2021` by default to pr... | 32.586341 | 143 | 0.632945 | 4,888 | 33,401 | 4.170827 | 0.167758 | 0.005886 | 0.014176 | 0.008829 | 0.330014 | 0.278805 | 0.245696 | 0.215333 | 0.201305 | 0.179183 | 0 | 0.024183 | 0.232418 | 33,401 | 1,024 | 144 | 32.618164 | 0.771004 | 0 | 0 | 0.268848 | 1 | 0 | 0.085899 | 0.006316 | 0 | 0 | 0 | 0 | 0.00569 | 0 | null | null | 0 | 0.082504 | null | null | 0.004267 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b048ccf5383075a3e3ddc09cd04494ee80c2a300 | 434 | py | Python | Recursion/Aditya_Verma/Hypothesis_Method/Print_N_to_1.py | prash-kr-meena/GoogleR | 27aca71e51cc2442e604e07ab00406a98d8d63a4 | [
"Apache-2.0"
] | null | null | null | Recursion/Aditya_Verma/Hypothesis_Method/Print_N_to_1.py | prash-kr-meena/GoogleR | 27aca71e51cc2442e604e07ab00406a98d8d63a4 | [
"Apache-2.0"
] | null | null | null | Recursion/Aditya_Verma/Hypothesis_Method/Print_N_to_1.py | prash-kr-meena/GoogleR | 27aca71e51cc2442e604e07ab00406a98d8d63a4 | [
"Apache-2.0"
] | null | null | null | # Forward Implementation
def print_to_n_reverse(n):
if n == 1: # Base Condition
print(1, end=" ")
return
print(n, end=" ") # Induction
print_to_n_reverse(n - 1) # Hypothesis
# Backward implementation
# - Here backward implementation, would be a bit typical to do,
# - Forward implementa... | 25.529412 | 81 | 0.675115 | 62 | 434 | 4.451613 | 0.580645 | 0.076087 | 0.086957 | 0.163043 | 0.115942 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012012 | 0.232719 | 434 | 16 | 82 | 27.125 | 0.816817 | 0.516129 | 0 | 0 | 0 | 0 | 0.049505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0.625 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
b05b358493a6597bac995a34db28dd63e04524e6 | 72 | py | Python | geetiles/config/prod.py | icpac-igad/gee-tiles | 713a58e00b4377dd54aeaa77416ad7fe7b2c9206 | [
"MIT"
] | 1 | 2020-09-28T12:23:25.000Z | 2020-09-28T12:23:25.000Z | geetiles/config/prod.py | icpac-igad/gee-tiles | 713a58e00b4377dd54aeaa77416ad7fe7b2c9206 | [
"MIT"
] | 6 | 2019-08-28T17:17:25.000Z | 2021-10-13T07:19:14.000Z | geetiles/config/prod.py | icpac-igad/gee-tiles | 713a58e00b4377dd54aeaa77416ad7fe7b2c9206 | [
"MIT"
] | 5 | 2019-11-15T10:37:56.000Z | 2021-07-15T08:07:27.000Z | """-"""
SETTINGS = {
'logging': {
'level': 'DEBUG'
}
}
| 9 | 24 | 0.347222 | 4 | 72 | 6.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.375 | 72 | 7 | 25 | 10.285714 | 0.555556 | 0.013889 | 0 | 0 | 0 | 0 | 0.261538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c65ec057f48af79a642c8637764b523b537f83f6 | 5,459 | py | Python | sem/storage/corpus.py | YoannDupont/SEM | ff21c5dc9a8e99eda81dc266e67cfa97dec7c243 | [
"MIT"
] | 22 | 2016-11-13T21:08:58.000Z | 2021-04-26T07:04:54.000Z | sem/storage/corpus.py | Raphencoder/SEM | ff21c5dc9a8e99eda81dc266e67cfa97dec7c243 | [
"MIT"
] | 15 | 2016-11-15T10:21:07.000Z | 2021-11-08T10:08:05.000Z | sem/storage/corpus.py | Raphencoder/SEM | ff21c5dc9a8e99eda81dc266e67cfa97dec7c243 | [
"MIT"
] | 8 | 2016-11-15T10:21:41.000Z | 2022-03-04T21:28:05.000Z | # -*- coding: utf-8 -*-
"""
file: corpus.py
Description: defines the Corpus object. It is an object representation
of a CoNLL-formatted corpus.
author: Yoann Dupont
MIT License
Copyright (c) 2018 Yoann Dupont
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associa... | 32.301775 | 130 | 0.634365 | 713 | 5,459 | 4.736325 | 0.28892 | 0.035535 | 0.023097 | 0.026651 | 0.088244 | 0.062778 | 0.062778 | 0.024282 | 0 | 0 | 0 | 0.002997 | 0.266532 | 5,459 | 168 | 131 | 32.494048 | 0.84041 | 0.259022 | 0 | 0.174757 | 0 | 0 | 0.034131 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242718 | false | 0 | 0.009709 | 0.126214 | 0.427184 | 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 |
c666e9dcacd68dd1abb51bc4ffb6d2640c170719 | 11,792 | py | Python | programs/pyeos/tests/python/cryptokitties/kittyownership.py | learnforpractice/pyeos | 4f04eb982c86c1fdb413084af77c713a6fda3070 | [
"MIT"
] | 144 | 2017-10-18T16:38:51.000Z | 2022-01-09T12:43:57.000Z | programs/pyeos/tests/python/cryptokitties/kittyownership.py | openchatproject/safeos | 2c8dbf57d186696ef6cfcbb671da9705b8f3d9f7 | [
"MIT"
] | 60 | 2017-10-11T13:07:43.000Z | 2019-03-26T04:33:27.000Z | programs/pyeos/tests/python/cryptokitties/kittyownership.py | learnforpractice/pyeos | 4f04eb982c86c1fdb413084af77c713a6fda3070 | [
"MIT"
] | 38 | 2017-12-05T01:13:56.000Z | 2022-01-07T07:06:53.000Z | from backend import *
from basement import *
from pausable import *
from kittyaccesscontrol import *
from kittybase import KittyBase
from erc721 import ERC721
from erc721metadata import ERC721Metadata
# @title The facet of the CryptoKitties core contract that manages ownership, ERC-721 (draft) compliant.
# @author Ax... | 45.180077 | 118 | 0.672914 | 1,385 | 11,792 | 5.633935 | 0.27509 | 0.023068 | 0.010765 | 0.013072 | 0.230552 | 0.206459 | 0.188261 | 0.158913 | 0.127643 | 0.106882 | 0 | 0.038925 | 0.246184 | 11,792 | 260 | 119 | 45.353846 | 0.838902 | 0.500848 | 0 | 0.12987 | 0 | 0 | 0.017489 | 0.013896 | 0 | 0 | 0 | 0.011538 | 0.012987 | 1 | 0.207792 | false | 0.012987 | 0.090909 | 0.064935 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c678e771e656c40554793300ea72d58a952d58cd | 301 | py | Python | slack_invite/slack_invite/forms.py | sanchagrins/umuc-cs-slack | 648e709905b153ad17a3df8bd826a784edd5c11b | [
"MIT"
] | null | null | null | slack_invite/slack_invite/forms.py | sanchagrins/umuc-cs-slack | 648e709905b153ad17a3df8bd826a784edd5c11b | [
"MIT"
] | 13 | 2017-08-18T01:19:49.000Z | 2017-11-16T02:24:07.000Z | slack_invite/slack_invite/forms.py | umuc-cs/umuc-cs-slack | 648e709905b153ad17a3df8bd826a784edd5c11b | [
"MIT"
] | null | null | null | from django import forms
class InviteForm(forms.Form):
email_addr = forms.EmailField(widget=forms.EmailInput(attrs={'class':'form-control','placeholder':'Email address','id':'email'}), label='')
check_terms = forms.BooleanField(label="I agree to the <a link''>Terms and Code of Conduct</a>")
| 50.166667 | 143 | 0.724252 | 42 | 301 | 5.142857 | 0.738095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106312 | 301 | 5 | 144 | 60.2 | 0.802974 | 0 | 0 | 0 | 0 | 0 | 0.33887 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
c68186a925cc94d28ae976073b01ff32e11600e6 | 313 | py | Python | src/pythonboilerplate/app.py | favgeris/pythonBoilerplate | c367758ae01137f3b499ca0d4f8ebb414ae2c4d2 | [
"MIT"
] | null | null | null | src/pythonboilerplate/app.py | favgeris/pythonBoilerplate | c367758ae01137f3b499ca0d4f8ebb414ae2c4d2 | [
"MIT"
] | null | null | null | src/pythonboilerplate/app.py | favgeris/pythonBoilerplate | c367758ae01137f3b499ca0d4f8ebb414ae2c4d2 | [
"MIT"
] | null | null | null | import argparse
import logging
import os
import pathlib
from typing import Union
logger = logging.getLogger(__name__)
def run(somearg) -> int:
"""Run app"""
try:
print(f'Some exciting argument: {somearg}')
except RuntimeError as ex:
logger.error(ex)
return 1
return 0
| 15.65 | 51 | 0.658147 | 40 | 313 | 5.05 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008584 | 0.255591 | 313 | 19 | 52 | 16.473684 | 0.858369 | 0.022364 | 0 | 0 | 0 | 0 | 0.11 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.384615 | 0 | 0.615385 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
c69faa343bb44ce7636a902fb8fc9cfe5f9f2c0d | 3,511 | py | Python | tools/telemetry/telemetry/unittest/output_formatter.py | aranajhonny/chromium | caf5bcb822f79b8997720e589334266551a50a13 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2019-01-16T03:57:39.000Z | 2019-01-16T03:57:39.000Z | tools/telemetry/telemetry/unittest/output_formatter.py | aranajhonny/chromium | caf5bcb822f79b8997720e589334266551a50a13 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2018-02-10T21:00:08.000Z | 2018-03-20T05:09:50.000Z | tools/telemetry/telemetry/unittest/output_formatter.py | aranajhonny/chromium | caf5bcb822f79b8997720e589334266551a50a13 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
from telemetry.core import util
from telemetry.unittest import options_for_unittests
class OutputFormatter(object):
def __init__(self, o... | 26.801527 | 80 | 0.727428 | 425 | 3,511 | 5.837647 | 0.228235 | 0.120919 | 0.096735 | 0.115276 | 0.310762 | 0.263603 | 0.23942 | 0.23942 | 0.23942 | 0.172914 | 0 | 0.002786 | 0.182284 | 3,511 | 130 | 81 | 27.007692 | 0.861372 | 0.07149 | 0 | 0.234043 | 0 | 0 | 0.008305 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.265957 | false | 0.106383 | 0.031915 | 0.010638 | 0.37234 | 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 |
c6db094a77c778676e8dbdbc124941b532991717 | 1,598 | py | Python | setup.py | yonglehou/memsql-loader | 5e7bb5787991aa990889c4e709f63a3529544268 | [
"MIT"
] | 1 | 2021-05-10T03:37:26.000Z | 2021-05-10T03:37:26.000Z | setup.py | yonglehou/memsql-loader | 5e7bb5787991aa990889c4e709f63a3529544268 | [
"MIT"
] | null | null | null | setup.py | yonglehou/memsql-loader | 5e7bb5787991aa990889c4e709f63a3529544268 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup
# get version
from memsql_loader import __version__
setup(
name='memsql-loader',
version=__version__,
author='MemSQL',
author_email='support@memsql.com',
url='https://github.com/memsql/memsql-loader',
download_url='https://github.com/memsql/me... | 27.084746 | 83 | 0.574468 | 191 | 1,598 | 4.638743 | 0.518325 | 0.230248 | 0.031603 | 0.038375 | 0.079007 | 0.079007 | 0.079007 | 0 | 0 | 0 | 0 | 0.040575 | 0.2597 | 1,598 | 58 | 84 | 27.551724 | 0.708369 | 0.020025 | 0 | 0.074074 | 0 | 0 | 0.496164 | 0.085038 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.037037 | 0 | 0.037037 | 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 |
c6f49b93679334772aa9bf531c4d72e0b150e6e1 | 1,225 | py | Python | evalml/tests/data_checks_tests/test_utils.py | Mahesh1822/evalml | aa0ec2379aeba12bbd0dcaaa000f9a2a62064169 | [
"BSD-3-Clause"
] | null | null | null | evalml/tests/data_checks_tests/test_utils.py | Mahesh1822/evalml | aa0ec2379aeba12bbd0dcaaa000f9a2a62064169 | [
"BSD-3-Clause"
] | 1 | 2022-02-19T12:59:09.000Z | 2022-02-19T12:59:09.000Z | evalml/tests/data_checks_tests/test_utils.py | Mahesh1822/evalml | aa0ec2379aeba12bbd0dcaaa000f9a2a62064169 | [
"BSD-3-Clause"
] | null | null | null | import pytest
from evalml.data_checks import DataCheckActionCode
from evalml.data_checks.utils import handle_data_check_action_code
from evalml.problem_types import ProblemTypes
def test_handle_action_code_errors():
with pytest.raises(KeyError, match="Action code 'dropping cols' does not"):
handle_data_c... | 34.027778 | 99 | 0.755102 | 148 | 1,225 | 5.878378 | 0.310811 | 0.149425 | 0.12069 | 0.168966 | 0.510345 | 0.365517 | 0.365517 | 0.285057 | 0.285057 | 0.285057 | 0 | 0 | 0.167347 | 1,225 | 35 | 100 | 35 | 0.852941 | 0 | 0 | 0.285714 | 0 | 0 | 0.22449 | 0.074286 | 0 | 0 | 0 | 0 | 0.035714 | 1 | 0.071429 | false | 0.071429 | 0.142857 | 0 | 0.214286 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
05a68fa246d27153d4fabeb9ddac94a69fd17785 | 392 | py | Python | src/apps/shop/serializers.py | brainfukk/fiuread | 7414ec9f580b8bdc78e3ce63bb6ebf1ac7cdc4f8 | [
"Apache-2.0"
] | null | null | null | src/apps/shop/serializers.py | brainfukk/fiuread | 7414ec9f580b8bdc78e3ce63bb6ebf1ac7cdc4f8 | [
"Apache-2.0"
] | null | null | null | src/apps/shop/serializers.py | brainfukk/fiuread | 7414ec9f580b8bdc78e3ce63bb6ebf1ac7cdc4f8 | [
"Apache-2.0"
] | null | null | null | from rest_framework import serializers
from .models import ShopItem
class ShopItemSerializer(serializers.ModelSerializer):
buy_method = serializers.SerializerMethodField()
class Meta:
model = ShopItem
fields = ("id", "name", "cost", "source", "buy_method")
def get_buy_method(self, obj):... | 26.133333 | 70 | 0.706633 | 43 | 392 | 6.232558 | 0.697674 | 0.100746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188776 | 392 | 14 | 71 | 28 | 0.842767 | 0 | 0 | 0 | 0 | 0 | 0.155612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.111111 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
05d8328fda38c6d6fda5c13e5f09ac74925e7f3b | 10,417 | py | Python | pyart/io/tests/test_mdv_radar.py | josephhardinee/pyart | 909cd4a36bb4cae34349294d2013bc7ad71d0969 | [
"OLDAP-2.6",
"Python-2.0"
] | null | null | null | pyart/io/tests/test_mdv_radar.py | josephhardinee/pyart | 909cd4a36bb4cae34349294d2013bc7ad71d0969 | [
"OLDAP-2.6",
"Python-2.0"
] | null | null | null | pyart/io/tests/test_mdv_radar.py | josephhardinee/pyart | 909cd4a36bb4cae34349294d2013bc7ad71d0969 | [
"OLDAP-2.6",
"Python-2.0"
] | null | null | null | """ Unit Tests for Py-ART's io/mdv_radar.py module. """
import numpy as np
from numpy.testing import assert_almost_equal
from numpy.ma.core import MaskedArray
import pyart
############################################
# read_mdv tests (verify radar attributes) #
############################################
# read in... | 29.179272 | 75 | 0.707977 | 1,445 | 10,417 | 4.847059 | 0.12872 | 0.060965 | 0.075385 | 0.05968 | 0.549829 | 0.375785 | 0.275271 | 0.199886 | 0.188035 | 0.137493 | 0 | 0.017108 | 0.169531 | 10,417 | 356 | 76 | 29.261236 | 0.79251 | 0.112124 | 0 | 0.088235 | 0 | 0 | 0.122164 | 0.008078 | 0 | 0 | 0 | 0 | 0.563725 | 1 | 0.220588 | false | 0 | 0.019608 | 0 | 0.240196 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
05d878ca2e433fc4c0d9802abde19f10dbc8863e | 2,430 | py | Python | model/UserAccess.py | EmbeddedSoftwareCaiShuPeng/vehicleDispatcher | aacebb1656fe095485041de0bcbb67627e384abc | [
"MIT"
] | 1 | 2016-04-27T14:23:53.000Z | 2016-04-27T14:23:53.000Z | model/UserAccess.py | EmbeddedSoftwareCaiShuPeng/vehicleDispatcher | aacebb1656fe095485041de0bcbb67627e384abc | [
"MIT"
] | null | null | null | model/UserAccess.py | EmbeddedSoftwareCaiShuPeng/vehicleDispatcher | aacebb1656fe095485041de0bcbb67627e384abc | [
"MIT"
] | null | null | null | import uuid, json, os, pymongo
from models import User
def addUser(user):
res = {}
res['result'] = 1
res['message'] = ''
if User.insert_one(user).inserted_id != '':
res['message'] = 'success'
else:
res['result'] = 0
res['message'] = 'Fail to add user in database!'
ret... | 24.545455 | 59 | 0.475309 | 258 | 2,430 | 4.383721 | 0.20155 | 0.05305 | 0.038904 | 0.034483 | 0.728559 | 0.728559 | 0.659593 | 0.659593 | 0.633952 | 0.575597 | 0 | 0.004425 | 0.348971 | 2,430 | 99 | 60 | 24.545455 | 0.710493 | 0 | 0 | 0.719512 | 0 | 0 | 0.237351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0.036585 | 0.02439 | 0 | 0.195122 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 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 |
05ddcfc4ce86d56934f5e0733a719cb7c2450e6f | 969 | py | Python | sdk/python/pulumi_google_native/genomics/v1alpha2/_enums.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 44 | 2021-04-18T23:00:48.000Z | 2022-02-14T17:43:15.000Z | sdk/python/pulumi_google_native/genomics/v1alpha2/_enums.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 354 | 2021-04-16T16:48:39.000Z | 2022-03-31T17:16:39.000Z | sdk/python/pulumi_google_native/genomics/v1alpha2/_enums.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 8 | 2021-04-24T17:46:51.000Z | 2022-01-05T10:40:21.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! ***
from enum import Enum
__all__ = [
'DiskType',
]
class DiskType(str, Enum):
"""
Required. The type of the disk to create.
"""
TYP... | 30.28125 | 136 | 0.672859 | 130 | 969 | 4.923077 | 0.507692 | 0.05 | 0.075 | 0.107813 | 0.420313 | 0.420313 | 0.24375 | 0.24375 | 0.184375 | 0.184375 | 0 | 0.001305 | 0.209494 | 969 | 31 | 137 | 31.258065 | 0.834204 | 0.210526 | 0 | 0 | 1 | 0 | 0.237354 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
05ed9c8e8fd31a9e77da54a3f25437648359aef1 | 1,987 | py | Python | aiida_fleur/cmdline/__init__.py | sphuber/aiida-fleur | df33e9a7b993a52c15a747a4ff23be3e19832b8d | [
"MIT"
] | null | null | null | aiida_fleur/cmdline/__init__.py | sphuber/aiida-fleur | df33e9a7b993a52c15a747a4ff23be3e19832b8d | [
"MIT"
] | null | null | null | aiida_fleur/cmdline/__init__.py | sphuber/aiida-fleur | df33e9a7b993a52c15a747a4ff23be3e19832b8d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
###############################################################################
# Copyright (c), Forschungszentrum Jülich GmbH, IAS-1/PGI-1, Germany. #
# All rights reserved. #
# This file is part of the AiiDA-FLEUR package. ... | 43.195652 | 85 | 0.622043 | 240 | 1,987 | 5.0375 | 0.5625 | 0.06617 | 0.033085 | 0.056245 | 0.06617 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001937 | 0.220433 | 1,987 | 45 | 86 | 44.155556 | 0.778567 | 0.611475 | 0 | 0 | 0 | 0 | 0.062392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.466667 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
05efd08ce434309fea6a153caaf4f36da65f692b | 243 | py | Python | textract/parsers/doc_parser.py | Pandaaaa906/textract | cee75460d3d43f0aa6f4967c6ccf069ee79fc560 | [
"MIT"
] | 1,950 | 2015-01-01T18:30:11.000Z | 2022-03-30T21:06:41.000Z | textract/parsers/doc_parser.py | nike199000/textract | 9d739f807351fd9e430a193eca853f5f2171a82a | [
"MIT"
] | 322 | 2015-01-05T09:54:45.000Z | 2022-03-28T17:47:15.000Z | textract/parsers/doc_parser.py | nike199000/textract | 9d739f807351fd9e430a193eca853f5f2171a82a | [
"MIT"
] | 470 | 2015-01-14T11:51:42.000Z | 2022-03-23T07:05:46.000Z | from .utils import ShellParser
class Parser(ShellParser):
"""Extract text from doc files using antiword.
"""
def extract(self, filename, **kwargs):
stdout, stderr = self.run(['antiword', filename])
return stdout
| 22.090909 | 57 | 0.654321 | 27 | 243 | 5.888889 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230453 | 243 | 10 | 58 | 24.3 | 0.850267 | 0.176955 | 0 | 0 | 0 | 0 | 0.042328 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
af15f4dafca99a33d4cb28c9e33b6eb81ea8619b | 2,867 | py | Python | Back/ecoreleve_be_server/Models/Import.py | NaturalSolutions/ecoReleve-BE | e120be8236d3f16d4a698058dcf43a4ed8b18e7b | [
"MIT"
] | 2 | 2019-01-22T15:19:48.000Z | 2019-07-18T06:55:29.000Z | Back/ecoreleve_be_server/Models/Import.py | NaturalSolutions/ecoReleve-BE | e120be8236d3f16d4a698058dcf43a4ed8b18e7b | [
"MIT"
] | 2 | 2018-04-04T15:48:24.000Z | 2018-08-29T11:01:26.000Z | Back/ecoreleve_be_server/Models/Import.py | NaturalSolutions/ecoReleve-BE | e120be8236d3f16d4a698058dcf43a4ed8b18e7b | [
"MIT"
] | 2 | 2018-02-26T11:50:22.000Z | 2018-03-13T08:16:42.000Z | # from ..Models import Base, dbConfig
# from sqlalchemy import (
# Column,
# DateTime,
# ForeignKey,
# Integer,
# Numeric,
# String,
# Unicode,
# text,
# Sequence,
# orm,
# func,
# select,
# bindparam,
# UniqueConstraint,
# event)
# from sqlalchemy.orm import ... | 32.213483 | 92 | 0.618068 | 251 | 2,867 | 6.85259 | 0.394422 | 0.045349 | 0.087209 | 0.023256 | 0.15 | 0.15 | 0.112791 | 0.112791 | 0.055814 | 0.055814 | 0 | 0.005607 | 0.253575 | 2,867 | 88 | 93 | 32.579545 | 0.798131 | 0.934077 | 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 |
af24b85975ed6fa9fb7dc53d770b3f47d5edbcbc | 747 | py | Python | shadowsocksr_cli/setting_utils.py | fanlix/ssr-command-client | 3d6884a2c0f360d47825a500942a8d4209705972 | [
"MIT"
] | 592 | 2020-02-27T16:08:16.000Z | 2022-03-31T12:14:55.000Z | shadowsocksr_cli/setting_utils.py | huzhuangwu/ssr-command-client | 5a47a4fe1e52e28f8ab7e219d7708992f8411c9c | [
"MIT"
] | 57 | 2020-03-04T14:36:03.000Z | 2022-03-27T09:32:30.000Z | shadowsocksr_cli/setting_utils.py | huzhuangwu/ssr-command-client | 5a47a4fe1e52e28f8ab7e219d7708992f8411c9c | [
"MIT"
] | 179 | 2020-03-05T10:52:16.000Z | 2022-03-30T13:06:12.000Z | """
@author: tyrantlucifer
@contact: tyrantlucifer@gmail.com
@blog: https://tyrantlucifer.com
@file: setting_utils.py
@time: 2021/2/18 22:42
@desc:
"""
from shadowsocksr_cli.logger import *
class Setting(object):
"""配置项工具类
提供从本地配置文件中读取对应参数的功能
属性:
config: 配置文件对象
"""
c... | 20.189189 | 58 | 0.621151 | 84 | 747 | 5.380952 | 0.583333 | 0.086283 | 0.070796 | 0.088496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019856 | 0.258367 | 747 | 36 | 59 | 20.75 | 0.796029 | 0.261044 | 0 | 0.142857 | 0 | 0 | 0.03299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.071429 | 0.071429 | 0.071429 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
af26de8caba6f5f8de41aa4611f62c733084b68c | 285 | py | Python | function/deco.py | git-ning/core-python-programming | 907ad7071c08086636134fde97f432037f1b824b | [
"Apache-2.0"
] | null | null | null | function/deco.py | git-ning/core-python-programming | 907ad7071c08086636134fde97f432037f1b824b | [
"Apache-2.0"
] | null | null | null | function/deco.py | git-ning/core-python-programming | 907ad7071c08086636134fde97f432037f1b824b | [
"Apache-2.0"
] | null | null | null | #! /usr/bin python
from time import ctime, sleep
def tsfunc (func):
def wrappedFunc():
print '[%s] %s() called' % (ctime(), func.__name__)
return func()
return wrappedFunc
@tsfunc
def foo():
pass
foo()
sleep(4)
for i in range(2):
sleep(1)
foo() | 14.25 | 59 | 0.582456 | 39 | 285 | 4.153846 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014354 | 0.266667 | 285 | 20 | 60 | 14.25 | 0.760766 | 0.059649 | 0 | 0.142857 | 0 | 0 | 0.059701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.071429 | 0.071429 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
af6af919b708faefe930ae59ccea70a7cedd960e | 210 | py | Python | ABC/060/a.py | fumiyanll23/AtCoder | 362ca9fcacb5415c1458bc8dee5326ba2cc70b65 | [
"MIT"
] | null | null | null | ABC/060/a.py | fumiyanll23/AtCoder | 362ca9fcacb5415c1458bc8dee5326ba2cc70b65 | [
"MIT"
] | null | null | null | ABC/060/a.py | fumiyanll23/AtCoder | 362ca9fcacb5415c1458bc8dee5326ba2cc70b65 | [
"MIT"
] | null | null | null | def main():
# input
A, B, C = input().split()
# compute
# output
if A[-1]==B[0] and B[-1]==C[0]:
print('YES')
else:
print('NO')
if __name__ == '__main__':
main()
| 13.125 | 35 | 0.438095 | 29 | 210 | 2.896552 | 0.62069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029197 | 0.347619 | 210 | 15 | 36 | 14 | 0.583942 | 0.095238 | 0 | 0 | 0 | 0 | 0.069892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0 | 0 | 0 | 0.125 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
af6ea05a1f8f073a03f7dff7deddcb7bdfb3a4a9 | 3,976 | py | Python | oscar/core/loading.py | owad/django-oscar | cfa69e37dc9abc97a7aff5c8616da319e1771008 | [
"BSD-3-Clause"
] | 1 | 2022-03-17T19:26:13.000Z | 2022-03-17T19:26:13.000Z | oscar/core/loading.py | aykut/django-oscar | ca3629e74ea1e0affc55d3de4e97f523e352d267 | [
"BSD-3-Clause"
] | null | null | null | oscar/core/loading.py | aykut/django-oscar | ca3629e74ea1e0affc55d3de4e97f523e352d267 | [
"BSD-3-Clause"
] | 1 | 2019-03-23T10:26:02.000Z | 2019-03-23T10:26:02.000Z | from imp import new_module
from django.conf import settings
class AppNotFoundError(Exception):
pass
def import_module(module_label, classes, namespace=None):
u"""
For dynamically importing classes from a module.
Eg. calling import_module('product.models') will search INSTALLED_APPS for
the... | 46.232558 | 114 | 0.597837 | 446 | 3,976 | 5.134529 | 0.325112 | 0.028821 | 0.062882 | 0.035371 | 0.217031 | 0.20786 | 0.170306 | 0.10393 | 0.057642 | 0.057642 | 0 | 0.001526 | 0.340543 | 3,976 | 85 | 115 | 46.776471 | 0.871854 | 0.145624 | 0 | 0.352941 | 0 | 0 | 0.056135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.039216 | 0.352941 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
af7781158a003eb34d7e6424f047ba42deefc00b | 1,797 | py | Python | tests/measure/test_cosine.py | icfly2/simstring-1 | e4a57603967c5d138ce021cedc09d509f75e1933 | [
"MIT"
] | null | null | null | tests/measure/test_cosine.py | icfly2/simstring-1 | e4a57603967c5d138ce021cedc09d509f75e1933 | [
"MIT"
] | null | null | null | tests/measure/test_cosine.py | icfly2/simstring-1 | e4a57603967c5d138ce021cedc09d509f75e1933 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
from unittest import TestCase
from simstring.measure.cosine import CosineMeasure
class TestCosine(TestCase):
measure = CosineMeasure()
def test_min_feature_size(self):
self.assertEqual(self.measure.min_feature_size(5, 1.0), 5)
self.assertEqual(self.measure.min_feature_s... | 47.289474 | 131 | 0.613244 | 267 | 1,797 | 4.022472 | 0.314607 | 0.181564 | 0.123836 | 0.16946 | 0.637803 | 0.630354 | 0.592179 | 0.485102 | 0.400372 | 0.351955 | 0 | 0.042907 | 0.195882 | 1,797 | 37 | 132 | 48.567568 | 0.700346 | 0.083472 | 0 | 0.076923 | 0 | 0 | 0.073691 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.307692 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
af7b2b1a93e2158eade57c472f0fd8b7130b6ddf | 69 | py | Python | vault/__init__.py | globocom/vault | 4909cc022476e59022a1dc55d1bbabf49873ca80 | [
"Apache-2.0"
] | 15 | 2015-03-19T13:05:06.000Z | 2021-08-13T19:17:25.000Z | vault/__init__.py | globocom/vault | 4909cc022476e59022a1dc55d1bbabf49873ca80 | [
"Apache-2.0"
] | 24 | 2015-02-24T14:20:06.000Z | 2021-12-15T13:33:52.000Z | vault/__init__.py | globocom/vault | 4909cc022476e59022a1dc55d1bbabf49873ca80 | [
"Apache-2.0"
] | 11 | 2016-09-12T07:54:01.000Z | 2021-10-31T20:26:43.000Z | default_app_config = 'vault.apps.VaultConfig'
__version__ = '1.3.7'
| 17.25 | 45 | 0.753623 | 10 | 69 | 4.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048387 | 0.101449 | 69 | 3 | 46 | 23 | 0.693548 | 0 | 0 | 0 | 0 | 0 | 0.391304 | 0.318841 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
af7b67f1e4cd5fbb564b9808cb8df8c219c0b7fc | 702 | py | Python | toughradius/manage/api/v1/api_authorize.py | geosson/GSRadius | 5870e3d055e8366f98b8e65220a1520b5da22f6d | [
"Apache-2.0"
] | 1 | 2019-05-12T15:06:58.000Z | 2019-05-12T15:06:58.000Z | toughradius/manage/api/v1/api_authorize.py | geosson/GSRadius | 5870e3d055e8366f98b8e65220a1520b5da22f6d | [
"Apache-2.0"
] | null | null | null | toughradius/manage/api/v1/api_authorize.py | geosson/GSRadius | 5870e3d055e8366f98b8e65220a1520b5da22f6d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#coding=utf-8
from toughlib import utils, apiutils
from toughlib.permit import permit
from toughradius.manage.api.apibase import ApiHandler
from toughradius.manage import models
from toughradius.manage.radius.radius_authorize import RadiusAuth
@permit.route(r"/api/v1/authorize")
class AuthorizeH... | 31.909091 | 80 | 0.702279 | 89 | 702 | 5.460674 | 0.595506 | 0.092593 | 0.12963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005357 | 0.202279 | 702 | 21 | 81 | 33.428571 | 0.8625 | 0.045584 | 0 | 0 | 0 | 0 | 0.025449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
af7fc4668b2fb86b2672d51501af6b7ccc59aa58 | 1,945 | py | Python | evaluation/novel_base_word_comparison.py | Knuust/Semantic-Password-Generator | d10b8bd3f5871359efae6e046aac76cd22868680 | [
"BSD-3-Clause"
] | null | null | null | evaluation/novel_base_word_comparison.py | Knuust/Semantic-Password-Generator | d10b8bd3f5871359efae6e046aac76cd22868680 | [
"BSD-3-Clause"
] | null | null | null | evaluation/novel_base_word_comparison.py | Knuust/Semantic-Password-Generator | d10b8bd3f5871359efae6e046aac76cd22868680 | [
"BSD-3-Clause"
] | 1 | 2022-02-23T13:48:34.000Z | 2022-02-23T13:48:34.000Z | import pickle
import matplotlib.pyplot as plt
from matplotlib_venn import venn3
test_list_path = 'final/wörterbücher/'
password_list_path = 'final/generated_password_lists/'
def remove_duplicates(seq):
seen = set()
seen_add = seen.add
return [x for x in seq if not (x in seen or seen_add(x))]
def load_pas... | 29.029851 | 123 | 0.728021 | 277 | 1,945 | 4.848375 | 0.306859 | 0.080417 | 0.067014 | 0.028295 | 0.137007 | 0.047655 | 0 | 0 | 0 | 0 | 0 | 0.012651 | 0.14653 | 1,945 | 66 | 124 | 29.469697 | 0.796386 | 0 | 0 | 0.042553 | 1 | 0 | 0.100309 | 0.031379 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0.382979 | 0.06383 | 0.021277 | 0.191489 | 0.042553 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
af8b6e0be67a25ec631893c23bc76d3128fe5bc9 | 901 | py | Python | rigid_body_motion/ros/check_install.py | phausamann/rigid-body-motion | 2d4fbb1b949cc0b609a59877d7539af75dad6861 | [
"MIT"
] | 8 | 2021-05-20T02:24:07.000Z | 2022-03-05T17:15:11.000Z | rigid_body_motion/ros/check_install.py | phausamann/rigid-body-motion | 2d4fbb1b949cc0b609a59877d7539af75dad6861 | [
"MIT"
] | 10 | 2019-06-13T09:36:15.000Z | 2022-01-17T16:55:05.000Z | rigid_body_motion/ros/check_install.py | phausamann/rigid-body-motion | 2d4fbb1b949cc0b609a59877d7539af75dad6861 | [
"MIT"
] | 1 | 2021-08-13T10:24:31.000Z | 2021-08-13T10:24:31.000Z | import traceback
if __name__ == "__main__":
try:
import geometry_msgs.msg # noqa
import rospy # noqa
import std_msgs.msg # noqa
import visualization_msgs.msg # noqa
try:
import rospkg # noqa
import tf2_geometry_msgs # noqa
import t... | 29.064516 | 77 | 0.577137 | 99 | 901 | 5.090909 | 0.575758 | 0.099206 | 0.065476 | 0.06746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005236 | 0.36404 | 901 | 30 | 78 | 30.033333 | 0.874346 | 0.043285 | 0 | 0.08 | 0 | 0 | 0.322392 | 0.028136 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.48 | 0 | 0.48 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
afa16d72320b51ad48b9e7a6f4900aaa906c676a | 101 | py | Python | main.py | JesperKauppinen/dont-touch-the-spikes-clone | c5b0961fe8bbc0706191649bbae2d1784dd72e1d | [
"MIT"
] | null | null | null | main.py | JesperKauppinen/dont-touch-the-spikes-clone | c5b0961fe8bbc0706191649bbae2d1784dd72e1d | [
"MIT"
] | null | null | null | main.py | JesperKauppinen/dont-touch-the-spikes-clone | c5b0961fe8bbc0706191649bbae2d1784dd72e1d | [
"MIT"
] | null | null | null | from game import Game
g = Game()
while g.running:
g.curr_menu.display_menu()
g.game_loop()
| 12.625 | 30 | 0.673267 | 17 | 101 | 3.823529 | 0.588235 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207921 | 101 | 7 | 31 | 14.428571 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
afa2159b2cf1eb45a5549805ce6ddf7bf5854552 | 203 | py | Python | pych_client/exceptions.py | dioptra-io/pych | 46ff9cedb8fac6b35c8eaab442834d9ce190e43d | [
"MIT"
] | null | null | null | pych_client/exceptions.py | dioptra-io/pych | 46ff9cedb8fac6b35c8eaab442834d9ce190e43d | [
"MIT"
] | null | null | null | pych_client/exceptions.py | dioptra-io/pych | 46ff9cedb8fac6b35c8eaab442834d9ce190e43d | [
"MIT"
] | null | null | null | class ClickHouseException(Exception):
def __init__(self, query: str, err: str):
err = "\n".join(err.split(". "))
msg = f"Query\n{query}\n\nError\n{err}"
super().__init__(msg)
| 33.833333 | 47 | 0.591133 | 27 | 203 | 4.148148 | 0.592593 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216749 | 203 | 5 | 48 | 40.6 | 0.704403 | 0 | 0 | 0 | 0 | 0 | 0.167488 | 0.147783 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
afa29bf04f32cf1f5c5165ddb76b18a6eec1cbfc | 1,474 | py | Python | ccdc/pixel.py | USGS-EROS/lcmap-gen | 1be50eb316f7d737d6bbd000bd6a8b5006730928 | [
"Unlicense"
] | 6 | 2018-07-09T00:33:52.000Z | 2019-11-14T16:36:39.000Z | ccdc/pixel.py | USGS-EROS/lcmap-gen | 1be50eb316f7d737d6bbd000bd6a8b5006730928 | [
"Unlicense"
] | 1 | 2017-04-26T17:22:34.000Z | 2017-04-26T17:38:59.000Z | ccdc/pixel.py | USGS-EROS/lcmap-gen | 1be50eb316f7d737d6bbd000bd6a8b5006730928 | [
"Unlicense"
] | 2 | 2018-06-11T17:59:03.000Z | 2018-07-09T00:33:54.000Z | from ccdc import cassandra
from pyspark.sql.types import ArrayType
from pyspark.sql.types import ByteType
from pyspark.sql.types import IntegerType
from pyspark.sql.types import StructField
from pyspark.sql.types import StructType
def table():
"""Cassandra table name"""
return 'pixel'
def schema():
"""S... | 22.333333 | 70 | 0.603121 | 160 | 1,474 | 5.55625 | 0.30625 | 0.061867 | 0.07874 | 0.106862 | 0.257593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.278833 | 1,474 | 65 | 71 | 22.676923 | 0.836312 | 0.282904 | 0 | 0 | 0 | 0 | 0.027197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.25 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
afbcc11a19deb6b6ae32cfc779f94a2a3949f37d | 549 | py | Python | wifi_radio/lockable_mpdclient.py | thomasvamos/wifi_radio | 54a04b37cfbada82074af439a7b0ee12cedf3512 | [
"MIT"
] | null | null | null | wifi_radio/lockable_mpdclient.py | thomasvamos/wifi_radio | 54a04b37cfbada82074af439a7b0ee12cedf3512 | [
"MIT"
] | null | null | null | wifi_radio/lockable_mpdclient.py | thomasvamos/wifi_radio | 54a04b37cfbada82074af439a7b0ee12cedf3512 | [
"MIT"
] | null | null | null | '''
Wrapper for a lockable MPD client
'''
from threading import Lock, Thread
from random import choice
from mpd import MPDClient
class LockableMPDClient(MPDClient):
def __init__(self, use_unicode=False):
super(LockableMPDClient, self).__init__()
self.use_unicode = use_unicode
self._lock = ... | 26.142857 | 49 | 0.668488 | 65 | 549 | 5.307692 | 0.461538 | 0.086957 | 0.063768 | 0.104348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229508 | 549 | 21 | 50 | 26.142857 | 0.815603 | 0.060109 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.1875 | 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 |
afc156258025b1022c60a512cb7371bc599d1647 | 1,709 | py | Python | 11/VMWriter.py | aadityarautela/nand2tetris | 64768087ae5f6903beeb17a01492d68d7b2354f6 | [
"MIT"
] | null | null | null | 11/VMWriter.py | aadityarautela/nand2tetris | 64768087ae5f6903beeb17a01492d68d7b2354f6 | [
"MIT"
] | null | null | null | 11/VMWriter.py | aadityarautela/nand2tetris | 64768087ae5f6903beeb17a01492d68d7b2354f6 | [
"MIT"
] | null | null | null | import os
class VMWriter(object):
def __init__(self,fname):
self.outfile = open(fname, 'w')
def close(self):
self.outfile.close()
def write_cmd(self, cmd, arg1 = "", arg2 = ""):
self.outfile.write(cmd + " " + str(arg1) + " " + str(arg2) + "\n")
def write_push(self... | 25.132353 | 74 | 0.576946 | 229 | 1,709 | 4.09607 | 0.227074 | 0.172708 | 0.115139 | 0.057569 | 0.250533 | 0.157783 | 0 | 0 | 0 | 0 | 0 | 0.007371 | 0.285547 | 1,709 | 67 | 75 | 25.507463 | 0.760852 | 0.014043 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.477273 | false | 0 | 0.022727 | 0 | 0.522727 | 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 |
afcd6032574bba34bea8e6fbfd6741b9fd4aa205 | 270 | py | Python | micropython/002_plot_test.py | mirontoli/tolle-rasp | 020638e86c167aedd7b556d8515a3adef70724af | [
"MIT"
] | 2 | 2021-06-29T17:18:09.000Z | 2022-01-25T08:29:59.000Z | micropython/002_plot_test.py | mirontoli/tolle-rasp | 020638e86c167aedd7b556d8515a3adef70724af | [
"MIT"
] | null | null | null | micropython/002_plot_test.py | mirontoli/tolle-rasp | 020638e86c167aedd7b556d8515a3adef70724af | [
"MIT"
] | null | null | null | # https://codewith.mu/en/tutorials/1.0/microbit
from microbit import *
flag = True
while True:
sleep(100)
if button_a.was_pressed():
flag = not flag
if flag:
print((accelerometer.get_x(),))
else:
print(accelerometer.get_values()) | 22.5 | 47 | 0.637037 | 36 | 270 | 4.666667 | 0.75 | 0.214286 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024155 | 0.233333 | 270 | 12 | 48 | 22.5 | 0.78744 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.2 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bb5ffa2d4cc2b708f22acabc46b7a17e37cfa7ad | 765 | py | Python | backend/equipment/endpoints.py | Vini1979/Engenharia_Software_IF977 | dee99b7a05736bd35935d30a88b61a1f273d7633 | [
"MIT"
] | null | null | null | backend/equipment/endpoints.py | Vini1979/Engenharia_Software_IF977 | dee99b7a05736bd35935d30a88b61a1f273d7633 | [
"MIT"
] | 1 | 2021-04-14T18:52:27.000Z | 2021-04-14T18:52:27.000Z | backend/equipment/endpoints.py | Vini1979/Engenharia_Software_IF977 | dee99b7a05736bd35935d30a88b61a1f273d7633 | [
"MIT"
] | 1 | 2021-04-27T18:15:13.000Z | 2021-04-27T18:15:13.000Z | from rest_framework.generics import ListCreateAPIView, RetrieveUpdateDestroyAPIView
from equipment.serializers import EquipmentSerializer, ItemSerializer
from equipment.models import Item, Equipment
class ListCreateItemEndpoint(ListCreateAPIView):
serializer_class = ItemSerializer
queryset = Item.objects.all... | 31.875 | 83 | 0.831373 | 59 | 765 | 10.694915 | 0.372881 | 0.095087 | 0.071315 | 0.117274 | 0.37084 | 0.37084 | 0.37084 | 0.177496 | 0 | 0 | 0 | 0 | 0.113725 | 765 | 24 | 84 | 31.875 | 0.930678 | 0 | 0 | 0.533333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 0 | 0 | 1 | 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 |
bb724e768f60fb932f05a9b7ae174961837fa0fc | 532 | py | Python | core/models.py | rubberducklive/tcm_api | 53d2b533e3f9251cce49bd4c1b8e9e65a03eaf04 | [
"MIT"
] | null | null | null | core/models.py | rubberducklive/tcm_api | 53d2b533e3f9251cce49bd4c1b8e9e65a03eaf04 | [
"MIT"
] | null | null | null | core/models.py | rubberducklive/tcm_api | 53d2b533e3f9251cce49bd4c1b8e9e65a03eaf04 | [
"MIT"
] | null | null | null | import uuid
from django.db import models
class TimeStampedModel(models.Model):
created_at = models.DateTimeField(auto_now_add=True)
modified_at = models.DateTimeField(auto_now=True)
class Meta(object):
abstract = True
class PrimaryUUIDModel(models.Model):
id = models.UUIDField(primary_key=... | 22.166667 | 79 | 0.734962 | 60 | 532 | 6.416667 | 0.5 | 0.07013 | 0.116883 | 0.179221 | 0.381818 | 0.166234 | 0 | 0 | 0 | 0 | 0 | 0.002294 | 0.180451 | 532 | 23 | 80 | 23.130435 | 0.880734 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.785714 | 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 |
bb835887638d97fd49e95038db89b9f00019f7b3 | 1,343 | py | Python | setup.py | wo0dyn/django-basic-models-behaviors | 19bbd09630c38451c89f32d38023053b23995db9 | [
"BSD-3-Clause"
] | 2 | 2016-07-14T00:29:59.000Z | 2016-07-18T02:55:35.000Z | setup.py | wo0dyn/django-basic-models-behaviors | 19bbd09630c38451c89f32d38023053b23995db9 | [
"BSD-3-Clause"
] | 5 | 2015-07-02T07:42:10.000Z | 2020-06-05T16:54:04.000Z | setup.py | wo0dyn/django-basic-models-behaviors | 19bbd09630c38451c89f32d38023053b23995db9 | [
"BSD-3-Clause"
] | 1 | 2015-10-20T10:11:35.000Z | 2015-10-20T10:11:35.000Z | # -*- coding: utf-8 -*-
import codecs
import os
from setuptools import setup
def read(*parts):
return codecs.open(os.path.join(os.path.dirname(__file__), *parts), encoding='utf-8').read()
setup(
name='django-basic-models-behaviors',
version=__import__('basic_models_behaviors').__version__,
descript... | 31.97619 | 96 | 0.638124 | 146 | 1,343 | 5.726027 | 0.547945 | 0.159091 | 0.20933 | 0.124402 | 0.064593 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01327 | 0.214445 | 1,343 | 41 | 97 | 32.756098 | 0.779147 | 0.015637 | 0 | 0 | 0 | 0 | 0.520455 | 0.075 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | true | 0 | 0.114286 | 0.028571 | 0.171429 | 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 |
bb8bea5e83277cccd81727fc97f2634b237f783d | 707 | py | Python | materialApoio.py | adriano-pacheco/atividades-mentorama | 45d3d8b65994eb12aaaa025426e3a230693e25f4 | [
"MIT"
] | null | null | null | materialApoio.py | adriano-pacheco/atividades-mentorama | 45d3d8b65994eb12aaaa025426e3a230693e25f4 | [
"MIT"
] | null | null | null | materialApoio.py | adriano-pacheco/atividades-mentorama | 45d3d8b65994eb12aaaa025426e3a230693e25f4 | [
"MIT"
] | null | null | null | def titulo(txt): #criando linha com texto
print('_'*30)
print(txt)
print('_'*30)
def soma(a, b): #somando 2 numeros
s = a + b
print('~~'*15)
print(f'A soma A + B = {s}')
print('~~'*15)
def contador(*num): #inserindo varios numeros em uma tupla
tam = len(num)
print(f'Recebi os valo... | 23.566667 | 65 | 0.577086 | 112 | 707 | 3.625 | 0.464286 | 0.08867 | 0.029557 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031311 | 0.277228 | 707 | 30 | 66 | 23.566667 | 0.763209 | 0.23338 | 0 | 0.166667 | 0 | 0 | 0.212291 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bba4b6f4a62fce3404ab57f827ef1473938bae93 | 348 | py | Python | cmdline.py | 30emeciel/freshdesk-token-exchange | 3e449735c20d53061941c77443da6dc7b8ea9e24 | [
"MIT"
] | null | null | null | cmdline.py | 30emeciel/freshdesk-token-exchange | 3e449735c20d53061941c77443da6dc7b8ea9e24 | [
"MIT"
] | null | null | null | cmdline.py | 30emeciel/freshdesk-token-exchange | 3e449735c20d53061941c77443da6dc7b8ea9e24 | [
"MIT"
] | null | null | null |
if __name__ == "__main__":
# export GOOGLE_APPLICATION_CREDENTIALS="trentiemeciel.json"
# get the token using postman
from dotenv import load_dotenv
load_dotenv()
import main
freshdesk_token = main.convert_auth0_token_to_freshdesk_token("gtxiNvJMjuDGec7GUziM2qSupsnCu74I")
print(f"freshdesk... | 31.636364 | 101 | 0.767241 | 39 | 348 | 6.333333 | 0.641026 | 0.226721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017065 | 0.158046 | 348 | 10 | 102 | 34.8 | 0.825939 | 0.247126 | 0 | 0 | 0 | 0 | 0.286822 | 0.124031 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 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 |
bba7b25014664dee8876feca1599b36413d6ce96 | 93 | py | Python | Gate_bases.py | jlfly12/qrsim | 1f5340cdc4f6cc0ca7ecbebd49ba8c6f78afdb8c | [
"Apache-2.0"
] | null | null | null | Gate_bases.py | jlfly12/qrsim | 1f5340cdc4f6cc0ca7ecbebd49ba8c6f78afdb8c | [
"Apache-2.0"
] | null | null | null | Gate_bases.py | jlfly12/qrsim | 1f5340cdc4f6cc0ca7ecbebd49ba8c6f78afdb8c | [
"Apache-2.0"
] | 1 | 2019-06-21T17:55:00.000Z | 2019-06-21T17:55:00.000Z | x = "X"
y = "Y"
z = "Z"
xx = "XX"
h = "H"
cnot = "CNOT"
s_phi = "S_phi"
identity = "Identity" | 11.625 | 21 | 0.494624 | 18 | 93 | 2.444444 | 0.5 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247312 | 93 | 8 | 21 | 11.625 | 0.628571 | 0 | 0 | 0 | 0 | 0 | 0.244681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bbaf14d78f29821d3e6ffec013b3447b60e7a43a | 293 | py | Python | app-receiver/receiver/service/settings.py | makaay/devops_assignment | 937a0877e869c3e6ca09bad35ab869901527e492 | [
"BSD-2-Clause"
] | null | null | null | app-receiver/receiver/service/settings.py | makaay/devops_assignment | 937a0877e869c3e6ca09bad35ab869901527e492 | [
"BSD-2-Clause"
] | null | null | null | app-receiver/receiver/service/settings.py | makaay/devops_assignment | 937a0877e869c3e6ca09bad35ab869901527e492 | [
"BSD-2-Clause"
] | 1 | 2022-03-05T13:11:30.000Z | 2022-03-05T13:11:30.000Z | import os
"""
This file contains configurations for receiver service.
The configurations can be over-ridden with Environment Variables during run time.
"""
OUTPUT_DIR = os.getenv("OUTPUT_DIR", "/usr/src/app-receiver/output")
DECRYPTION_KEY = os.getenv("DECRYPTION_KEY", "/tmp/decryption_key")
| 36.625 | 81 | 0.78157 | 41 | 293 | 5.463415 | 0.707317 | 0.174107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102389 | 293 | 7 | 82 | 41.857143 | 0.851711 | 0 | 0 | 0 | 0 | 0 | 0.47973 | 0.189189 | 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 |
bbb3c58e4009e852c11d677005377bc7618636b3 | 2,581 | py | Python | tests/examples/minlplib/ex6_2_8.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 2 | 2021-07-03T13:19:10.000Z | 2022-02-06T10:48:13.000Z | tests/examples/minlplib/ex6_2_8.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 1 | 2021-07-04T14:52:14.000Z | 2021-07-15T10:17:11.000Z | tests/examples/minlplib/ex6_2_8.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | null | null | null | # NLP written by GAMS Convert at 04/21/18 13:51:45
#
# Equation counts
# Total E G L N X C B
# 2 2 0 0 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | 57.355556 | 120 | 0.484696 | 441 | 2,581 | 2.836735 | 0.256236 | 0.064748 | 0.033573 | 0.035172 | 0.531575 | 0.323741 | 0.314149 | 0.283773 | 0.271783 | 0.18785 | 0 | 0.39363 | 0.355289 | 2,581 | 44 | 121 | 58.659091 | 0.358173 | 0.262689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bbb5a419508bb770bb1a305a0d8d6adcb54e823a | 244 | py | Python | android_notification.py | jbytes1027/notify-mirror | b4a6bb94578dd4c9130731f153f901868f26cded | [
"CC0-1.0"
] | null | null | null | android_notification.py | jbytes1027/notify-mirror | b4a6bb94578dd4c9130731f153f901868f26cded | [
"CC0-1.0"
] | null | null | null | android_notification.py | jbytes1027/notify-mirror | b4a6bb94578dd4c9130731f153f901868f26cded | [
"CC0-1.0"
] | null | null | null | class AndroidNotification:
def __init__(self, header, body, application, package, id_num):
self.application = application
self.body = body
self.package = package
self.header = header
self.id = id_num
| 30.5 | 67 | 0.643443 | 27 | 244 | 5.592593 | 0.407407 | 0.13245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.278689 | 244 | 7 | 68 | 34.857143 | 0.857955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 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 |
bbb715e2f390dc18e086c2e84959bf7e23c5b5d0 | 324 | py | Python | Exec/GravityTests/zeldovich_dm/analysis/zeldovich.py | Gosenca/axionyx_1.0 | 7e2a723e00e6287717d6d81b23db32bcf6c3521a | [
"BSD-3-Clause-LBNL"
] | 72 | 2017-06-16T17:20:25.000Z | 2021-12-18T12:45:58.000Z | Exec/GravityTests/zeldovich_dm/analysis/zeldovich.py | Gosenca/axionyx_1.0 | 7e2a723e00e6287717d6d81b23db32bcf6c3521a | [
"BSD-3-Clause-LBNL"
] | 37 | 2017-05-07T04:20:04.000Z | 2022-02-03T19:16:59.000Z | Exec/GravityTests/zeldovich_dm/analysis/zeldovich.py | Gosenca/axionyx_1.0 | 7e2a723e00e6287717d6d81b23db32bcf6c3521a | [
"BSD-3-Clause-LBNL"
] | 30 | 2017-05-18T21:14:45.000Z | 2022-03-23T20:50:24.000Z | import numpy as np
def perturbed_x(q, z, z_c, k):
return (q - (1.0 + z_c) / (1.0 + z) * np.sin(k * q) / k)
def perturbed_v_x(q, z, z_c, k, H_0):
return (-H_0 * (1.0 + z_c) * np.sqrt(1.0 + z) * np.sin(k * q) / (k))
def get_scale_factor(z):
return 1.0 / (1.0 + z)
def get_redshift(a):
return 1.0 / a - ... | 23.142857 | 72 | 0.530864 | 75 | 324 | 2.133333 | 0.306667 | 0.1 | 0.09375 | 0.05 | 0.25 | 0.25 | 0.175 | 0.175 | 0.175 | 0 | 0 | 0.074689 | 0.256173 | 324 | 13 | 73 | 24.923077 | 0.589212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0 | 0.111111 | 0.444444 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
bbc76fa30b8fa88196b49d21f794c0cf68d9f17b | 595 | py | Python | email-service/rest_utils.py | Rudrarka/Alert-System | ed6d0c0566e70a13d13e6c65fa790f25d07fa99e | [
"MIT"
] | null | null | null | email-service/rest_utils.py | Rudrarka/Alert-System | ed6d0c0566e70a13d13e6c65fa790f25d07fa99e | [
"MIT"
] | null | null | null | email-service/rest_utils.py | Rudrarka/Alert-System | ed6d0c0566e70a13d13e6c65fa790f25d07fa99e | [
"MIT"
] | null | null | null | import os
import requests
class RestApi:
def __init__(self, base_url: str, api_key: str):
self.url = base_url
self.headers = {'X-API-Key': api_key}
def patch_json(self, path, json):
resp = requests.patch(self.url + path, headers=self.headers, json=json)
resp.raise_for_status()
... | 28.333333 | 79 | 0.638655 | 83 | 595 | 4.277108 | 0.421687 | 0.067606 | 0.078873 | 0.101408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223529 | 595 | 21 | 80 | 28.333333 | 0.768398 | 0 | 0 | 0 | 0 | 0 | 0.063758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
bbd25b797957a5f28a70032817bbe3816cae3981 | 3,152 | py | Python | mozdns/mixins.py | jlin/inventory | c098c98e570c3bf9fadfd811eb75e1213f6ea428 | [
"BSD-3-Clause"
] | 22 | 2015-01-16T01:36:32.000Z | 2020-06-08T00:46:18.000Z | mozdns/mixins.py | jlin/inventory | c098c98e570c3bf9fadfd811eb75e1213f6ea428 | [
"BSD-3-Clause"
] | 8 | 2015-12-28T18:56:19.000Z | 2019-04-01T17:33:48.000Z | mozdns/mixins.py | jlin/inventory | c098c98e570c3bf9fadfd811eb75e1213f6ea428 | [
"BSD-3-Clause"
] | 13 | 2015-01-13T20:56:22.000Z | 2022-02-23T06:01:17.000Z | from settings import MOZDNS_BASE_URL
from gettext import gettext as _
from string import Template
class DisplayMixin(object):
# Knobs
justs = {
'pk_just': 10,
'rhs_just': 1,
'ttl_just': 1,
'rdtype_just': 4,
'rdclass_just': 3,
'prio_just': 1,
'lhs_just': ... | 28.396396 | 75 | 0.583756 | 419 | 3,152 | 4.176611 | 0.281623 | 0.041143 | 0.089143 | 0.064 | 0.469143 | 0.457714 | 0.441143 | 0.395429 | 0.36 | 0.320571 | 0 | 0.011384 | 0.303299 | 3,152 | 110 | 76 | 28.654545 | 0.785519 | 0.221447 | 0 | 0.322581 | 0 | 0 | 0.103006 | 0.027851 | 0 | 0 | 0 | 0.009091 | 0 | 1 | 0.209677 | false | 0 | 0.048387 | 0.080645 | 0.532258 | 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 |
bbd37b557f545c19f1a83004ba18612d1700a121 | 1,782 | py | Python | core/migrations/0012_auto_20170423_1836.py | koatse/ilikethem | 962374ff8179a533dba3b00422d11bb819d8acde | [
"MIT"
] | null | null | null | core/migrations/0012_auto_20170423_1836.py | koatse/ilikethem | 962374ff8179a533dba3b00422d11bb819d8acde | [
"MIT"
] | null | null | null | core/migrations/0012_auto_20170423_1836.py | koatse/ilikethem | 962374ff8179a533dba3b00422d11bb819d8acde | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-04-23 18:36
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0011_auto_20170422_1917'),
]
operations = [
migrations.AlterModelOp... | 33 | 102 | 0.597643 | 151 | 1,782 | 6.907285 | 0.397351 | 0.115053 | 0.143816 | 0.166826 | 0.550336 | 0.550336 | 0.2186 | 0.2186 | 0 | 0 | 0 | 0.025781 | 0.281706 | 1,782 | 53 | 103 | 33.622642 | 0.789063 | 0.038159 | 0 | 0.521739 | 1 | 0 | 0.226184 | 0.091175 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.108696 | 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 |
bbd748e6a83de8ca6fc199a6dc4a8e503c1bdd1b | 681 | py | Python | Robot.py | rnandon/RobotsAndDinosaurs | ad83d61a800bcf307dfbbf925abe91bcad2763b4 | [
"MIT"
] | null | null | null | Robot.py | rnandon/RobotsAndDinosaurs | ad83d61a800bcf307dfbbf925abe91bcad2763b4 | [
"MIT"
] | null | null | null | Robot.py | rnandon/RobotsAndDinosaurs | ad83d61a800bcf307dfbbf925abe91bcad2763b4 | [
"MIT"
] | null | null | null | ### IMPORTS
### ================================
from Combatant import Combatant
# Robot. Implementation of the Combatant class
class Robot(Combatant):
def __init__(self, name, weapon):
self.equipped_weapon = weapon
super().__init__(name, self.equipped_weapon.attack_power)
### M... | 35.842105 | 108 | 0.577093 | 69 | 681 | 5.463768 | 0.463768 | 0.095491 | 0.143236 | 0.116711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207048 | 681 | 18 | 109 | 37.833333 | 0.698148 | 0.389134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
bbdfc65e3dc96518486004ed92ed7315cea723ab | 3,559 | py | Python | src/docker_composer/runner/cmd/up.py | michascholl/docker-composer | d190f1db766e216654a4259785b9aaf802a9c64d | [
"Apache-2.0"
] | 4 | 2021-01-18T11:35:24.000Z | 2021-08-30T16:19:39.000Z | src/docker_composer/runner/cmd/up.py | michascholl/docker-composer | d190f1db766e216654a4259785b9aaf802a9c64d | [
"Apache-2.0"
] | null | null | null | src/docker_composer/runner/cmd/up.py | michascholl/docker-composer | d190f1db766e216654a4259785b9aaf802a9c64d | [
"Apache-2.0"
] | 1 | 2022-02-19T10:38:59.000Z | 2022-02-19T10:38:59.000Z | # DO NOT EDIT: Autogenerated by src/docker_composer/_utils/generate_class.py
# for docker-compose version 1.25.0, build unknown
from typing import List, Optional
import attr
from docker_composer.base import DockerBaseRunner
@attr.s(auto_attribs=True)
class DockerComposeUp(DockerBaseRunner):
"""
Builds, (re... | 37.463158 | 83 | 0.680528 | 452 | 3,559 | 5.272124 | 0.380531 | 0.065464 | 0.087285 | 0.033571 | 0.029375 | 0.020982 | 0 | 0 | 0 | 0 | 0 | 0.002165 | 0.221411 | 3,559 | 94 | 84 | 37.861702 | 0.857813 | 0.274515 | 0 | 0 | 1 | 0 | 0.123794 | 0.018489 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.081081 | 0 | 0.594595 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bbed9aef40b38f60b39c83a06b6bc7dda41d6fe6 | 3,112 | py | Python | hard-gists/6572592/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/6572592/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/6572592/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | #!/usr/bin/env python
# Lastfm loved tracks to Google Music All Access playlist. As noted in the comments you do need the All Access subscription thing otherwise it will always find 0 songs.
#
# Written by Tim Hutt, tdhutt@gmail.com, based on this script:
#
# https://gist.github.com/oquno/3664731
#
# Today is the 15th... | 31.12 | 168 | 0.645566 | 450 | 3,112 | 4.366667 | 0.466667 | 0.012723 | 0.021374 | 0.024427 | 0.016285 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020134 | 0.233933 | 3,112 | 99 | 169 | 31.434343 | 0.804111 | 0.404563 | 0 | 0.044444 | 0 | 0.022222 | 0.18292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.066667 | 0.066667 | null | null | 0.155556 | 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 |
a520cc9aad5c8512bee199a8b970862484795d67 | 4,530 | py | Python | mysite/urls.py | jtkim03/Find-a-QT | a330c95f76bcc148febf39284c07d3ac4f909b4e | [
"BSD-3-Clause"
] | null | null | null | mysite/urls.py | jtkim03/Find-a-QT | a330c95f76bcc148febf39284c07d3ac4f909b4e | [
"BSD-3-Clause"
] | 9 | 2021-03-30T13:42:35.000Z | 2022-03-12T00:36:19.000Z | mysite/urls.py | jtkim03/Find-a-QT | a330c95f76bcc148febf39284c07d3ac4f909b4e | [
"BSD-3-Clause"
] | null | null | null | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | 56.625 | 137 | 0.722296 | 641 | 4,530 | 4.897036 | 0.221529 | 0.028672 | 0.028672 | 0.034406 | 0.230965 | 0.150685 | 0.10035 | 0.10035 | 0.020389 | 0 | 0 | 0.005696 | 0.108609 | 4,530 | 79 | 138 | 57.341772 | 0.771669 | 0.17947 | 0 | 0 | 0 | 0.018868 | 0.31552 | 0.163023 | 0 | 0 | 0 | 0.012658 | 0 | 1 | 0 | false | 0.09434 | 0.226415 | 0 | 0.226415 | 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 |
a522e39d60daf369e5808e7febdbf847f905a859 | 880 | py | Python | budgetcalc/admin.py | MAPC/MBTA | a1e669004509832a42ca49ef4d7d06d05e3a88fd | [
"BSD-3-Clause"
] | null | null | null | budgetcalc/admin.py | MAPC/MBTA | a1e669004509832a42ca49ef4d7d06d05e3a88fd | [
"BSD-3-Clause"
] | null | null | null | budgetcalc/admin.py | MAPC/MBTA | a1e669004509832a42ca49ef4d7d06d05e3a88fd | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from budgetcalc.models import Category, Optiongroup, Option, Submission
class CategoryAdmin(admin.ModelAdmin):
list_display = ('pk','title', 'cat_type', 'order',)
list_editable = ('title', 'cat_type', 'order',)
class OptiongroupAdmin(admin.ModelAdmin):
list_display = ('... | 32.592593 | 91 | 0.718182 | 94 | 880 | 6.606383 | 0.340426 | 0.096618 | 0.122383 | 0.167472 | 0.283414 | 0.283414 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119318 | 880 | 27 | 92 | 32.592593 | 0.80129 | 0 | 0 | 0 | 0 | 0 | 0.185017 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.764706 | 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 |
a52614c1f178a95384236fabe39f5251f3b714f1 | 117 | py | Python | USP_Curso/Semana3/Exercicio4.py | IagoAntunes/Python__learning | cb96a1ae902c290270479c7a7f4e97b56c538297 | [
"MIT"
] | null | null | null | USP_Curso/Semana3/Exercicio4.py | IagoAntunes/Python__learning | cb96a1ae902c290270479c7a7f4e97b56c538297 | [
"MIT"
] | null | null | null | USP_Curso/Semana3/Exercicio4.py | IagoAntunes/Python__learning | cb96a1ae902c290270479c7a7f4e97b56c538297 | [
"MIT"
] | null | null | null | num = int(input("Digite um numero: "))
if(num % 5 == 0 and num % 3 == 0):
print("FizzBuzz")
else:
print(num) | 19.5 | 38 | 0.555556 | 19 | 117 | 3.421053 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044944 | 0.239316 | 117 | 6 | 39 | 19.5 | 0.685393 | 0 | 0 | 0 | 0 | 0 | 0.220339 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 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 |
a53ba70350cca6563c1076848345c71f8f783379 | 826 | py | Python | web/checkout/models.py | Arvind-4/E-Commerce | d7d2f395a4e64a683dd73fed29c627a2210f479a | [
"MIT"
] | null | null | null | web/checkout/models.py | Arvind-4/E-Commerce | d7d2f395a4e64a683dd73fed29c627a2210f479a | [
"MIT"
] | null | null | null | web/checkout/models.py | Arvind-4/E-Commerce | d7d2f395a4e64a683dd73fed29c627a2210f479a | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth import get_user_model
from django_countries import countries
COUNTRY_CHOICES = tuple(countries)
User = get_user_model()
# Create your models here.
class Checkout(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
name = models.CharFi... | 30.592593 | 71 | 0.746973 | 107 | 826 | 5.570093 | 0.457944 | 0.125839 | 0.100671 | 0.161074 | 0.181208 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021429 | 0.152542 | 826 | 26 | 72 | 31.769231 | 0.83 | 0.029056 | 0 | 0 | 0 | 0 | 0.03 | 0.03 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.157895 | 0.052632 | 0.894737 | 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 |
a53fd665444f0740f577cb5726aba9622f38b8eb | 3,246 | py | Python | streambox/test/regression.py | chenzongxiong/streambox | 76f95780d1bf6c02731e39d8ac73937cea352b95 | [
"Unlicense"
] | 3 | 2019-07-03T14:03:31.000Z | 2021-12-19T10:18:49.000Z | streambox/test/regression.py | chenzongxiong/streambox | 76f95780d1bf6c02731e39d8ac73937cea352b95 | [
"Unlicense"
] | 6 | 2020-02-17T12:01:30.000Z | 2021-12-09T22:02:33.000Z | streambox/test/regression.py | chenzongxiong/streambox | 76f95780d1bf6c02731e39d8ac73937cea352b95 | [
"Unlicense"
] | 2 | 2020-12-03T04:41:18.000Z | 2021-01-11T21:44:42.000Z | all_tests = [
{
"name" : "wc-fast",
"exec" : "./test-wc.bin",
"records" : 1000 * 1000, # records per epoch
"record_size" : 100,
"target_ms" : 1000,
"input_file" : "/ssd/1g.txt",
# --- optional: soft delay --- #
#"softdelay_maxbad_ratio" : 0.1, # okay if aonmaly delay % is less than this in a windo... | 33.8125 | 90 | 0.608133 | 422 | 3,246 | 4.582938 | 0.260664 | 0.039814 | 0.043433 | 0.058945 | 0.743537 | 0.743537 | 0.678904 | 0.678904 | 0.678904 | 0.612203 | 0 | 0.065947 | 0.229205 | 3,246 | 95 | 91 | 34.168421 | 0.707034 | 0.502773 | 0 | 0.274194 | 0 | 0 | 0.472692 | 0.049415 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
a54d9516f3cf42047c6d21bb9815568bd1e67161 | 2,922 | py | Python | meerschaum/_internal/docs/index.py | bmeares/Meerschaum | 37bd7a9923efce53e91c6a1d9c31f9533b9b4463 | [
"Apache-2.0"
] | 32 | 2020-09-14T16:29:19.000Z | 2022-03-08T00:51:28.000Z | meerschaum/_internal/docs/index.py | bmeares/Meerschaum | 37bd7a9923efce53e91c6a1d9c31f9533b9b4463 | [
"Apache-2.0"
] | 3 | 2020-10-04T20:03:30.000Z | 2022-02-02T21:04:46.000Z | meerschaum/_internal/docs/index.py | bmeares/Meerschaum | 37bd7a9923efce53e91c6a1d9c31f9533b9b4463 | [
"Apache-2.0"
] | 5 | 2021-04-22T23:49:21.000Z | 2022-02-02T12:59:08.000Z | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
"""
<img src="https://meerschaum.io/assets/banner_1920x320.png" alt="Meerschaum banner">
| PyPI | GitHub | License ... | 57.294118 | 292 | 0.647502 | 373 | 2,922 | 5.072386 | 0.493298 | 0.07611 | 0.062896 | 0.044926 | 0.116279 | 0.03277 | 0 | 0 | 0 | 0 | 0 | 0.007923 | 0.179329 | 2,922 | 50 | 293 | 58.44 | 0.780651 | 0.994867 | 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 |
a5738d0cf40642a74790a9e4436c0e8da30c46ce | 259 | py | Python | db_tools/data/user_data.py | thebesteric/bright | 4cd8173e7e53115395fcf25bd4db72990fdb6b3f | [
"MIT"
] | null | null | null | db_tools/data/user_data.py | thebesteric/bright | 4cd8173e7e53115395fcf25bd4db72990fdb6b3f | [
"MIT"
] | null | null | null | db_tools/data/user_data.py | thebesteric/bright | 4cd8173e7e53115395fcf25bd4db72990fdb6b3f | [
"MIT"
] | null | null | null | from common.utils import crypt_utils
from bright import settings
row_data = [
{
'username': 'admin',
'password': crypt_utils.md5('admin', settings.APP_SALT),
'cellphone': '13966660426',
'email': 'admin@wesoft.com'
}
]
| 21.583333 | 64 | 0.6139 | 28 | 259 | 5.535714 | 0.714286 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061538 | 0.247104 | 259 | 11 | 65 | 23.545455 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0.258687 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.2 | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
a5880384a51a2b5216de1db68e0632fb623a8bfc | 1,022 | py | Python | src/_deblaze.py | MenkeTechnologies/zsh-more-completions | c0d4716b695ea9bf3d0e870bc2ced5354db3c031 | [
"MIT"
] | 25 | 2018-07-29T01:49:23.000Z | 2022-01-19T19:21:23.000Z | src/_deblaze.py | MenkeTechnologies/zsh-more-completions | c0d4716b695ea9bf3d0e870bc2ced5354db3c031 | [
"MIT"
] | null | null | null | src/_deblaze.py | MenkeTechnologies/zsh-more-completions | c0d4716b695ea9bf3d0e870bc2ced5354db3c031 | [
"MIT"
] | null | null | null | #compdef deblaze.py
local arguments
arguments=(
'--version[show programs version number and exit]'
'(- * :)'{-h,--help}'[show this help message and exit]'
{-u,--url}'[URL for AMF Gateway]'
{-s,--service}'[remote service to call]'
{-m,--method}'[method to call]'
{-p,--params}'[parameters to send pipe seper... | 36.5 | 74 | 0.662427 | 141 | 1,022 | 4.787234 | 0.673759 | 0.020741 | 0.02963 | 0.068148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002281 | 0.141879 | 1,022 | 27 | 75 | 37.851852 | 0.767389 | 0.017613 | 0 | 0 | 0 | 0 | 0.624128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.043478 | 0 | null | null | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a58ab462ad7e52132f563d3dc36462f69902b7de | 824 | py | Python | app/set_game/deck.py | mmurch/set-game | 8fd1303ab2a4d628547fd7ebca572cf04087cbdb | [
"MIT"
] | null | null | null | app/set_game/deck.py | mmurch/set-game | 8fd1303ab2a4d628547fd7ebca572cf04087cbdb | [
"MIT"
] | 5 | 2021-03-10T04:32:22.000Z | 2022-02-26T22:25:52.000Z | app/set_game/deck.py | mmurch/set-game | 8fd1303ab2a4d628547fd7ebca572cf04087cbdb | [
"MIT"
] | null | null | null | from .card import Card
from .features import Number, Color, Shape, Style
from math import floor
class Deck():
def __init__(self):
return
@staticmethod
def get_card_by_id(self, id):
if id < 1 or id > 81:
raise ValueError
return Card(
self.get_number(id),
... | 20.6 | 49 | 0.54733 | 105 | 824 | 4.161905 | 0.32381 | 0.171625 | 0.20595 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030075 | 0.354369 | 824 | 39 | 50 | 21.128205 | 0.791353 | 0 | 0 | 0.16129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.193548 | false | 0 | 0.096774 | 0.129032 | 0.580645 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
a59ac366b9f4a35b896bc07199abf2aebd42714c | 3,144 | py | Python | Python/lab8 [2, 5, 7, 12, 17]/tz17.py | da-foxbite/KSU121 | 133637abb4f465aeecb845e6735ba383a2fdd689 | [
"MIT"
] | 3 | 2019-09-23T06:06:30.000Z | 2020-02-24T10:22:26.000Z | Python/lab8 [2, 5, 7, 12, 17]/tz17.py | da-foxbite/KSU141 | 133637abb4f465aeecb845e6735ba383a2fdd689 | [
"MIT"
] | null | null | null | Python/lab8 [2, 5, 7, 12, 17]/tz17.py | da-foxbite/KSU141 | 133637abb4f465aeecb845e6735ba383a2fdd689 | [
"MIT"
] | 1 | 2020-10-26T11:00:22.000Z | 2020-10-26T11:00:22.000Z | # 141, Суптеля Владислав
# 【Дата】:「09.04.20」
# 17. Клас Покупець: Прізвище, Ім'я, По батькові, Адреса, Номер кредитної картки, Номер банківського рахунку; конструктор;
# Методи: установка значень атрибутів, отримання значень атрибутів, висновок інформації. Створити масив об'єктів даного класу.
# Вивести список покупців... | 33.094737 | 130 | 0.682252 | 379 | 3,144 | 5.609499 | 0.364116 | 0.073377 | 0.052681 | 0.015522 | 0.118062 | 0.112418 | 0.061618 | 0.061618 | 0.037629 | 0 | 0 | 0.014836 | 0.206743 | 3,144 | 94 | 131 | 33.446809 | 0.83761 | 0.153944 | 0 | 0.081081 | 0 | 0 | 0.130189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.243243 | false | 0.013514 | 0.054054 | 0.108108 | 0.472973 | 0.067568 | 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 |
a59f046e4edcd4dce70590e6b4351f5262990e72 | 868 | py | Python | archiv/tables.py | acdh-oeaw/gtrans | 6f56b1d09de0cad503273bf8a01cd81e25220524 | [
"MIT"
] | 1 | 2020-03-15T16:14:02.000Z | 2020-03-15T16:14:02.000Z | archiv/tables.py | acdh-oeaw/gtrans | 6f56b1d09de0cad503273bf8a01cd81e25220524 | [
"MIT"
] | 14 | 2018-11-09T08:34:23.000Z | 2022-02-10T08:15:53.000Z | archiv/tables.py | acdh-oeaw/gtrans | 6f56b1d09de0cad503273bf8a01cd81e25220524 | [
"MIT"
] | null | null | null | import django_tables2 as tables
from django_tables2.utils import A
from entities.models import *
from archiv.models import *
class ArchResourceTable(tables.Table):
id = tables.LinkColumn(
'archiv:archresource_detail',
args=[A('pk')], verbose_name='ID'
)
title = tables.LinkColumn(
'... | 31 | 63 | 0.687788 | 88 | 868 | 6.647727 | 0.443182 | 0.263248 | 0.075214 | 0.116239 | 0.198291 | 0.198291 | 0.198291 | 0.198291 | 0.198291 | 0.198291 | 0 | 0.002886 | 0.201613 | 868 | 27 | 64 | 32.148148 | 0.84127 | 0 | 0 | 0.083333 | 0 | 0 | 0.125576 | 0.059908 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
a5ad538fb112ec421c158be3cf3243f38640e710 | 194 | py | Python | GUI/check_email.py | BrendanCheong/BT2102-OSHES-Group16 | 2b62772e6c654b8d4e76f09df6473ac88912df28 | [
"MIT"
] | 5 | 2021-09-11T15:07:34.000Z | 2021-09-11T15:16:04.000Z | GUI/check_email.py | BrendanCheong/Online-Smart-Home-Ecommerce-System | 2b62772e6c654b8d4e76f09df6473ac88912df28 | [
"MIT"
] | 1 | 2021-09-18T10:33:00.000Z | 2021-09-18T10:34:01.000Z | GUI/check_email.py | BrendanCheong/BT2102-OSHES-Group16 | 2b62772e6c654b8d4e76f09df6473ac88912df28 | [
"MIT"
] | null | null | null | import re
def check(email):
regex = r'\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b'
if (re.fullmatch(regex, email)):
return True
else:
return False
| 19.4 | 67 | 0.489691 | 32 | 194 | 2.9375 | 0.625 | 0.06383 | 0.106383 | 0.12766 | 0.138298 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.278351 | 194 | 9 | 68 | 21.555556 | 0.635714 | 0 | 0 | 0 | 0 | 0.142857 | 0.275676 | 0.275676 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
a5bef6fa512a2ff46684cc9ce0bb82ae7685d3ba | 773 | py | Python | planegeometry/structures/tests/random_segments.py | ufkapano/planegeometry | fa9309a4e867acedd635665f32d7f59a8eeaf2e3 | [
"BSD-3-Clause"
] | null | null | null | planegeometry/structures/tests/random_segments.py | ufkapano/planegeometry | fa9309a4e867acedd635665f32d7f59a8eeaf2e3 | [
"BSD-3-Clause"
] | null | null | null | planegeometry/structures/tests/random_segments.py | ufkapano/planegeometry | fa9309a4e867acedd635665f32d7f59a8eeaf2e3 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
import random
import Gnuplot # Python 2 only
from planegeometry.structures.points import Point
from planegeometry.structures.segments import Segment
gnu = Gnuplot.Gnuplot (persist = 1)
visible = True
for i in range(10):
segment = Segment(random.random(), random.random(),
random.random... | 23.424242 | 55 | 0.684347 | 110 | 773 | 4.8 | 0.463636 | 0.102273 | 0.204545 | 0.227273 | 0.090909 | 0.090909 | 0.090909 | 0 | 0 | 0 | 0 | 0.012012 | 0.138422 | 773 | 32 | 56 | 24.15625 | 0.780781 | 0.11643 | 0 | 0 | 0 | 0 | 0.301329 | 0.031019 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3c07a5241ac429798f7ed558bc1d6c02e0ff5253 | 662 | py | Python | NucleicAcids/dssrBlock3.py | MooersLab/jupyterlabpymolpysnipsplus | b886750d63372434df53d4d6d7cdad6cb02ae4e7 | [
"MIT"
] | null | null | null | NucleicAcids/dssrBlock3.py | MooersLab/jupyterlabpymolpysnipsplus | b886750d63372434df53d4d6d7cdad6cb02ae4e7 | [
"MIT"
] | null | null | null | NucleicAcids/dssrBlock3.py | MooersLab/jupyterlabpymolpysnipsplus | b886750d63372434df53d4d6d7cdad6cb02ae4e7 | [
"MIT"
] | null | null | null | # Description: DSSR block representation for a multi-state example after loading the dssr_block.py script by Thomas Holder. The x3dna-dssr executable needs to be in the PATH. Edit the path to Thomas Holder's block script.
# Source: Generated while helping Miranda Adams at U of Saint Louis.
"""
cmd.do('reinitialize;'... | 38.941176 | 222 | 0.712991 | 112 | 662 | 4.151786 | 0.482143 | 0.107527 | 0.051613 | 0.086022 | 0.494624 | 0.494624 | 0.387097 | 0.189247 | 0.189247 | 0.189247 | 0 | 0.027304 | 0.114804 | 662 | 16 | 223 | 41.375 | 0.766212 | 0.719033 | 0 | 0 | 0 | 0 | 0.661017 | 0.254237 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3c0c8d1fb6b9a95e3b3506596eae5b34be7226ac | 2,386 | py | Python | numba/containers/typedtuple.py | liuzhenhai/numba | 855a2b262ae3d82bd6ac1c3e1c0acb36ee2e2acf | [
"BSD-2-Clause"
] | 1 | 2015-01-29T06:52:36.000Z | 2015-01-29T06:52:36.000Z | numba/containers/typedtuple.py | shiquanwang/numba | a41c85fdd7d6abf8ea1ebe9116939ddc2217193b | [
"BSD-2-Clause"
] | null | null | null | numba/containers/typedtuple.py | shiquanwang/numba | a41c85fdd7d6abf8ea1ebe9116939ddc2217193b | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import
from functools import partial
import numba as nb
from numba.containers import orderedcontainer
import numpy as np
INITIAL_BUFSIZE = 5
def notimplemented(msg):
raise NotImplementedError("'%s' method of type 'typedtuple'" % ... | 26.808989 | 75 | 0.544007 | 262 | 2,386 | 4.652672 | 0.385496 | 0.065628 | 0.044299 | 0.032814 | 0.027892 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02123 | 0.230092 | 2,386 | 88 | 76 | 27.113636 | 0.642352 | 0.263202 | 0 | 0.044444 | 0 | 0 | 0.039342 | 0 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0.155556 | false | 0 | 0.133333 | 0.022222 | 0.511111 | 0.022222 | 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 |
3c4c370cfd780bfee437676b79c4d199589eb48b | 618 | py | Python | setup.py | elaru/python3-cre | 84863b5acaab5f903a3d3b2a1b6a2cb10ed00679 | [
"0BSD"
] | null | null | null | setup.py | elaru/python3-cre | 84863b5acaab5f903a3d3b2a1b6a2cb10ed00679 | [
"0BSD"
] | null | null | null | setup.py | elaru/python3-cre | 84863b5acaab5f903a3d3b2a1b6a2cb10ed00679 | [
"0BSD"
] | null | null | null | from setuptools import setup
setup(
name="cre",
packages=["cre"],
version="0.1.0",
author="Philipp Schiffmann",
author_email="philippschiffmann@icloud.com",
url="https://github.com/elaru/python3-cre",
description="A regular expression processor implemented in python.",
license="ISC",
classifiers=[
"Developm... | 28.090909 | 69 | 0.676375 | 68 | 618 | 6.132353 | 0.75 | 0.136691 | 0.179856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013645 | 0.169903 | 618 | 21 | 70 | 29.428571 | 0.79922 | 0 | 0 | 0 | 0 | 0 | 0.63754 | 0.045307 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3c4ce0be200904020cc2f4b6271e9daccb20ccb2 | 284 | py | Python | bin/const.py | Novartole/Video-pixels | 10246d1953289e1cded43ed63104f5343a3d9e65 | [
"MIT"
] | null | null | null | bin/const.py | Novartole/Video-pixels | 10246d1953289e1cded43ed63104f5343a3d9e65 | [
"MIT"
] | null | null | null | bin/const.py | Novartole/Video-pixels | 10246d1953289e1cded43ed63104f5343a3d9e65 | [
"MIT"
] | null | null | null | import enum
DEFAULT_FILE_NAME = 'DEFAULT'
RANDOM_MIX_CONFIG_NAME = 'RandomMix'
WIDTH_NAME = 'Width'
HIGHT_NAME = 'Hight'
class AutoName(enum.Enum):
def _generate_next_value_(name, start, count, last_values):
return name
class Algorithms(AutoName):
RANDOM_MIX = enum.auto() | 20.285714 | 61 | 0.760563 | 39 | 284 | 5.205128 | 0.615385 | 0.08867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137324 | 284 | 14 | 62 | 20.285714 | 0.828571 | 0 | 0 | 0 | 1 | 0 | 0.091228 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0.1 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
3c529f808ec5b62668f3e070b0cf33366833814f | 3,434 | py | Python | cerebralcortex/core/datatypes/datapoint.py | hippietilley/CerebralCortex-Kernel | c7dac033d9561f14bdb72430577db6ae4e3c7911 | [
"BSD-2-Clause"
] | null | null | null | cerebralcortex/core/datatypes/datapoint.py | hippietilley/CerebralCortex-Kernel | c7dac033d9561f14bdb72430577db6ae4e3c7911 | [
"BSD-2-Clause"
] | null | null | null | cerebralcortex/core/datatypes/datapoint.py | hippietilley/CerebralCortex-Kernel | c7dac033d9561f14bdb72430577db6ae4e3c7911 | [
"BSD-2-Clause"
] | null | null | null | # Copyright (c) 2018, MD2K Center of Excellence
# - Nasir Ali <nasir.ali08@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above cop... | 33.019231 | 106 | 0.674432 | 449 | 3,434 | 4.971047 | 0.33853 | 0.076613 | 0.052419 | 0.024194 | 0.230735 | 0.158602 | 0.158602 | 0.129928 | 0.129928 | 0.129928 | 0 | 0.002689 | 0.241992 | 3,434 | 103 | 107 | 33.339806 | 0.854783 | 0.440594 | 0 | 0.188679 | 0 | 0 | 0.021727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.301887 | false | 0 | 0.037736 | 0.207547 | 0.566038 | 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 |
3c6ebf3a0e9fc7f67c121517ca72e84e2133c821 | 833 | py | Python | scripts/datasets/dataset.py | daniele21/Financial_Sentiment_Analysis | 3734733f2d1d291c81a6239de121edcce861b463 | [
"MIT"
] | null | null | null | scripts/datasets/dataset.py | daniele21/Financial_Sentiment_Analysis | 3734733f2d1d291c81a6239de121edcce861b463 | [
"MIT"
] | null | null | null | scripts/datasets/dataset.py | daniele21/Financial_Sentiment_Analysis | 3734733f2d1d291c81a6239de121edcce861b463 | [
"MIT"
] | 1 | 2021-08-18T01:40:56.000Z | 2021-08-18T01:40:56.000Z | from typing import Text, Dict
import torch
from torch.utils.data import Dataset
class MyDataset:
def __init__(self, filepath: Text):
self.data = self.load_data(filepath)
self.prep_data = None
def load_data(self, filepath):
pass
def get_x(self, data=None):
pass
def ... | 16.333333 | 53 | 0.619448 | 108 | 833 | 4.546296 | 0.333333 | 0.071283 | 0.07332 | 0.09776 | 0.11609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.283313 | 833 | 50 | 54 | 16.66 | 0.822446 | 0 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0.214286 | 0.107143 | 0.035714 | 0.607143 | 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 |
3c6f84e2e28d5d42137620dfcf9d443aafcc4dc6 | 1,447 | py | Python | citadel/ext.py | CMGS/citadel | 8363a598ed4422d6671f06bad7def3ebb848f441 | [
"MIT"
] | null | null | null | citadel/ext.py | CMGS/citadel | 8363a598ed4422d6671f06bad7def3ebb848f441 | [
"MIT"
] | null | null | null | citadel/ext.py | CMGS/citadel | 8363a598ed4422d6671f06bad7def3ebb848f441 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from authlib.client.apps import github
from authlib.flask.client import OAuth
from etcd import Client
from flask import session
from flask_caching import Cache
from flask_mako import MakoTemplates
from flask_session import Session
from flask_sockets import Sockets
from flask_sqlalchemy import S... | 27.301887 | 96 | 0.769178 | 210 | 1,447 | 5.080952 | 0.342857 | 0.050609 | 0.067479 | 0.074977 | 0.186504 | 0.165886 | 0.165886 | 0.165886 | 0.165886 | 0.165886 | 0 | 0.000796 | 0.131306 | 1,447 | 52 | 97 | 27.826923 | 0.848051 | 0.125086 | 0 | 0.088235 | 0 | 0 | 0.040444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.352941 | 0 | 0.558824 | 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 |
3c7e63e11d96ab3935b8bb543acdf655bcf3abc1 | 14,296 | py | Python | betsy.py | animeshsagar/Betsy | 5cc4ca126fe56803696967b59a9ace61ae7e3f7b | [
"MIT"
] | null | null | null | betsy.py | animeshsagar/Betsy | 5cc4ca126fe56803696967b59a9ace61ae7e3f7b | [
"MIT"
] | null | null | null | betsy.py | animeshsagar/Betsy | 5cc4ca126fe56803696967b59a9ace61ae7e3f7b | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# Design Decisions
# Heuristic : Heuristic tries to maximize the pieces of that particular player on top n rows
# Min-Max : Min-Max algorithm has been used
# IDS : Iterative deepening search has been used to move down the tree(depth:100)
# No Time Constrain : No time constrain has been taken.In... | 54.773946 | 204 | 0.25007 | 1,060 | 14,296 | 3.306604 | 0.132075 | 0.065906 | 0.038802 | 0.043937 | 0.485877 | 0.424251 | 0.405421 | 0.368046 | 0.360913 | 0.360913 | 0 | 0.032485 | 0.681309 | 14,296 | 260 | 205 | 54.984615 | 0.736831 | 0.567082 | 0 | 0.428571 | 0 | 0 | 0.003849 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.02381 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3c92d76b2ecb583dc3d4b1217c00aa46b1e963fb | 710 | py | Python | src/catchbot/routes.py | grihabor/catch-hook-telegram-bot | 1f3c6a5d56d5ebba3d4620b532acde2ed734a75e | [
"MIT"
] | null | null | null | src/catchbot/routes.py | grihabor/catch-hook-telegram-bot | 1f3c6a5d56d5ebba3d4620b532acde2ed734a75e | [
"MIT"
] | 4 | 2018-02-21T11:25:49.000Z | 2018-06-23T15:51:51.000Z | src/catchbot/routes.py | grihabor/catch-hook-telegram-bot | 1f3c6a5d56d5ebba3d4620b532acde2ed734a75e | [
"MIT"
] | null | null | null | from flask import request, redirect
from .message import create_message_for_user
from .tasks import send_message_to_bot
def _hook(chat_id, hash):
if not request.is_json:
return 'Data must be in json format', 400
json_obj = request.get_json(cache=False)
msg = create_message_for_user(request.heade... | 22.903226 | 63 | 0.683099 | 107 | 710 | 4.261682 | 0.495327 | 0.065789 | 0.087719 | 0.092105 | 0.074561 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015652 | 0.190141 | 710 | 30 | 64 | 23.666667 | 0.777391 | 0 | 0 | 0 | 0 | 0 | 0.126761 | 0.032394 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.157895 | 0.157895 | 0.684211 | 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 |
b1b43acb4fa91071f5f63c2486fa86ca051d0487 | 247 | py | Python | servo/views/tags.py | ipwnosx/Servo | 3418ece690ca90d676a7d8ae654da7770ae312fb | [
"BSD-2-Clause"
] | null | null | null | servo/views/tags.py | ipwnosx/Servo | 3418ece690ca90d676a7d8ae654da7770ae312fb | [
"BSD-2-Clause"
] | null | null | null | servo/views/tags.py | ipwnosx/Servo | 3418ece690ca90d676a7d8ae654da7770ae312fb | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from django.http import HttpResponse
from servo.models import TaggedItem
def clear(request, pk):
TaggedItem.objects.get(pk=pk).delete()
return HttpResponse("")
def add(request, content_type, pk, tag):
pass
| 17.642857 | 42 | 0.696356 | 33 | 247 | 5.181818 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004878 | 0.17004 | 247 | 13 | 43 | 19 | 0.829268 | 0.08502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b1bd684c676eed6c1630b156d59e20baabdf47e4 | 212 | py | Python | easy/43_set_union_op.py | UltiRequiem/hacker-rank-python | bcc6a467dd2a1f90cf61c1d6b049f566f5ffabe1 | [
"MIT"
] | 4 | 2021-08-02T21:34:38.000Z | 2021-09-24T03:26:33.000Z | easy/43_set_union_op.py | UltiRequiem/hacker-rank-python | bcc6a467dd2a1f90cf61c1d6b049f566f5ffabe1 | [
"MIT"
] | null | null | null | easy/43_set_union_op.py | UltiRequiem/hacker-rank-python | bcc6a467dd2a1f90cf61c1d6b049f566f5ffabe1 | [
"MIT"
] | 3 | 2021-08-02T21:34:39.000Z | 2021-08-02T21:37:16.000Z | from functools import reduce as rd
def main() -> int:
return len(
rd(lambda a, b: a | b, [set(input().strip().split()) for j in range(4)][1::2])
)
if __name__ == "__main__":
print(main())
| 17.666667 | 86 | 0.561321 | 33 | 212 | 3.363636 | 0.848485 | 0.036036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0.25 | 212 | 11 | 87 | 19.272727 | 0.679245 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.142857 | 0.142857 | 0.428571 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
b1daaac896ddc4849cfd241b1e6031646b780a40 | 156 | py | Python | data-science/exercicios/livro-introducao-a-programacao-com-python/capitulo-5/exercicio5-2.py | joaovictor-loureiro/data-science | 21ad240e1db94d614e54fcb3fbf6ef74a78af9d8 | [
"MIT"
] | null | null | null | data-science/exercicios/livro-introducao-a-programacao-com-python/capitulo-5/exercicio5-2.py | joaovictor-loureiro/data-science | 21ad240e1db94d614e54fcb3fbf6ef74a78af9d8 | [
"MIT"
] | null | null | null | data-science/exercicios/livro-introducao-a-programacao-com-python/capitulo-5/exercicio5-2.py | joaovictor-loureiro/data-science | 21ad240e1db94d614e54fcb3fbf6ef74a78af9d8 | [
"MIT"
] | null | null | null | # Exercício 5.2 - Modifique o programa para exibir os números de 50 a 100.
i = 50
print('\n')
while i <= 100:
print('%d' % i)
i += 1
print('\n') | 14.181818 | 74 | 0.570513 | 28 | 156 | 3.178571 | 0.714286 | 0.134831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113043 | 0.262821 | 156 | 11 | 75 | 14.181818 | 0.66087 | 0.461538 | 0 | 0.333333 | 0 | 0 | 0.072289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
b1dbac0f835a64d0cbdbae3be2827e7023234d2d | 107 | py | Python | Factorial.py | conbopbi/TEchMasterHK | 81452694de6b5d46a51bdf1eceb7a4346b93cc85 | [
"MIT"
] | null | null | null | Factorial.py | conbopbi/TEchMasterHK | 81452694de6b5d46a51bdf1eceb7a4346b93cc85 | [
"MIT"
] | null | null | null | Factorial.py | conbopbi/TEchMasterHK | 81452694de6b5d46a51bdf1eceb7a4346b93cc85 | [
"MIT"
] | null | null | null | import math
n=int(input('Nhap mot so:'))
output=math.factorial(n)
print('Giai thua cua ',n,' la: ',output) | 21.4 | 40 | 0.682243 | 19 | 107 | 3.842105 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11215 | 107 | 5 | 40 | 21.4 | 0.768421 | 0 | 0 | 0 | 0 | 0 | 0.287037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
b1dd89557115038bb1f6354ded5195f9ead07ccf | 233 | py | Python | list02/exer_02.py | pedrolucas27/exercising-python | 4b30bbce6b860fb617baf4600d8da83b68023e82 | [
"MIT"
] | null | null | null | list02/exer_02.py | pedrolucas27/exercising-python | 4b30bbce6b860fb617baf4600d8da83b68023e82 | [
"MIT"
] | null | null | null | list02/exer_02.py | pedrolucas27/exercising-python | 4b30bbce6b860fb617baf4600d8da83b68023e82 | [
"MIT"
] | null | null | null | #Faça um Programa que peça um valor e mostre na tela se o valor é positivo ou negativo.
valor = int(input("Dígite um número:"))
if valor < 0:
print("O número",valor,"é negativo!")
else:
print("O número",valor,"é positivo!") | 33.285714 | 88 | 0.682403 | 40 | 233 | 3.975 | 0.6 | 0.113208 | 0.176101 | 0.213836 | 0.226415 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005263 | 0.184549 | 233 | 7 | 89 | 33.285714 | 0.831579 | 0.369099 | 0 | 0 | 0 | 0 | 0.376712 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b1e369fb08913d130b89cec1f5483abc5621f780 | 851 | py | Python | src/secml/ml/classifiers/gradients/mixin_classifier_gradient_sgd.py | zangobot/secml | 95a293e1201c24256eb7fe2f1d2125cd5f318c8c | [
"Apache-2.0"
] | 63 | 2020-04-20T16:31:16.000Z | 2022-03-29T01:05:35.000Z | src/secml/ml/classifiers/gradients/mixin_classifier_gradient_sgd.py | zangobot/secml | 95a293e1201c24256eb7fe2f1d2125cd5f318c8c | [
"Apache-2.0"
] | 5 | 2020-04-21T11:31:39.000Z | 2022-03-24T13:42:56.000Z | src/secml/ml/classifiers/gradients/mixin_classifier_gradient_sgd.py | zangobot/secml | 95a293e1201c24256eb7fe2f1d2125cd5f318c8c | [
"Apache-2.0"
] | 8 | 2020-04-21T09:16:42.000Z | 2022-02-23T16:28:43.000Z | """
.. module:: CClassifierGradientSGDMixin
:synopsis: Mixin for SGD classifier gradients.
.. moduleauthor:: Ambra Demontis <ambra.demontis@unica.it>
.. moduleauthor:: Marco Melis <marco.melis@unica.it>
"""
from secml.array import CArray
from secml.ml.classifiers.gradients import CClassifierGradientLinearMixin
c... | 26.59375 | 80 | 0.680376 | 84 | 851 | 6.869048 | 0.630952 | 0.045061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232667 | 851 | 31 | 81 | 27.451613 | 0.883614 | 0.576968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
b1eeecae89c5a75d2089876662644291654428d3 | 4,678 | py | Python | windows/winobject/handle.py | 1orenz0/PythonForWindows | f3de7b528b020b45ac6a871c975006fc1db1c3b0 | [
"BSD-3-Clause"
] | 1 | 2021-06-22T16:50:31.000Z | 2021-06-22T16:50:31.000Z | windows/winobject/handle.py | killvxk/PythonForWindows | b253bc5873e7d97087ed22f2753b51fc6880ec18 | [
"BSD-3-Clause"
] | null | null | null | windows/winobject/handle.py | killvxk/PythonForWindows | b253bc5873e7d97087ed22f2753b51fc6880ec18 | [
"BSD-3-Clause"
] | 1 | 2021-05-12T12:58:27.000Z | 2021-05-12T12:58:27.000Z | import os
import ctypes
import windows
from windows import winproxy
from windows.generated_def import windef
from windows.generated_def.winstructs import *
# Remove this ?
class EPUBLIC_OBJECT_TYPE_INFORMATION(PUBLIC_OBJECT_TYPE_INFORMATION):
pass
current_process_pid = os.getpid()
class Handle(SYSTEM_HANDLE):
... | 33.898551 | 150 | 0.665669 | 546 | 4,678 | 5.47619 | 0.232601 | 0.046823 | 0.0301 | 0.04214 | 0.271237 | 0.177258 | 0.122074 | 0.100669 | 0.079599 | 0.079599 | 0 | 0.006985 | 0.234929 | 4,678 | 137 | 151 | 34.145985 | 0.828444 | 0.105387 | 0 | 0.247423 | 1 | 0 | 0.02016 | 0 | 0 | 0 | 0.004372 | 0.014599 | 0 | 1 | 0.14433 | false | 0.030928 | 0.061856 | 0.010309 | 0.42268 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b1f274b6140c852afcbc6bb5b744a886df0fb5fe | 102 | py | Python | cloudflare/__init__.py | darylyu/cloudflare | be12ac9fa614a7078a89d7036f3a99e3165bd99d | [
"BSD-3-Clause"
] | 1 | 2015-05-03T12:51:44.000Z | 2015-05-03T12:51:44.000Z | cloudflare/__init__.py | darylyu/cloudflare | be12ac9fa614a7078a89d7036f3a99e3165bd99d | [
"BSD-3-Clause"
] | 2 | 2015-12-17T00:47:01.000Z | 2016-04-04T14:24:14.000Z | cloudflare/__init__.py | darylyu/cloudflare | be12ac9fa614a7078a89d7036f3a99e3165bd99d | [
"BSD-3-Clause"
] | 3 | 2015-09-13T22:43:54.000Z | 2016-04-02T19:44:21.000Z | # -*- coding: utf-8 -*-
__author__ = 'Daryl Yu'
__email__ = 'dyu@fastmail.com'
__version__ = '0.0.2'
| 17 | 30 | 0.627451 | 14 | 102 | 3.714286 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046512 | 0.156863 | 102 | 5 | 31 | 20.4 | 0.55814 | 0.205882 | 0 | 0 | 0 | 0 | 0.367089 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b1fbf96a2060ff4635f4538c1011d07667a95b78 | 270 | py | Python | sciris/sc_version.py | optimamodel/sciris | fc0148fd9352e443a1c9b1a790275bc2904b30b1 | [
"MIT"
] | null | null | null | sciris/sc_version.py | optimamodel/sciris | fc0148fd9352e443a1c9b1a790275bc2904b30b1 | [
"MIT"
] | 4 | 2018-03-27T21:47:13.000Z | 2018-08-28T00:50:00.000Z | sciris/sc_version.py | optimamodel/sciris | fc0148fd9352e443a1c9b1a790275bc2904b30b1 | [
"MIT"
] | 1 | 2018-09-05T07:57:39.000Z | 2018-09-05T07:57:39.000Z | '''
Version and license information.
'''
__all__ = ['__version__', '__versiondate__', '__license__']
__version__ = '1.3.3'
__versiondate__ = '2022-01-16'
__license__ = f'Sciris {__version__} ({__versiondate__}) – © 2014-2022 by the Sciris Development Team'
| 27 | 107 | 0.692593 | 30 | 270 | 5.1 | 0.666667 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0837 | 0.159259 | 270 | 9 | 108 | 30 | 0.581498 | 0.118519 | 0 | 0 | 0 | 0 | 0.595652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5917ad709fbc60f4121dfd8d315e221b94423156 | 1,938 | py | Python | src/nlp/classification/tf1/traditional_cls/bert_embedding.py | wu-uw/OpenCompetition | 9aa9d7a50ada1deb653d295dd8a7fe46321b9094 | [
"Apache-2.0"
] | 15 | 2019-12-22T14:26:47.000Z | 2020-11-02T10:57:37.000Z | src/nlp/classification/tf1/traditional_cls/bert_embedding.py | GT-JLU/OpenCompetition | 5262fc5fa7efd7b483c1dc09cb7747dd75e37175 | [
"Apache-2.0"
] | 2 | 2020-02-03T07:10:11.000Z | 2020-02-11T16:38:56.000Z | src/nlp/classification/tf1/traditional_cls/bert_embedding.py | GT-JLU/OpenCompetition | 5262fc5fa7efd7b483c1dc09cb7747dd75e37175 | [
"Apache-2.0"
] | 12 | 2020-01-06T14:16:52.000Z | 2020-05-23T14:12:30.000Z | # coding = utf-8
import copy
import json
import logging
import math
import os
import shutil
import tarfile
import tempfile
import sys
from io import open
import torch
from torch import nn
from torch.nn import CrossEntropyLoss
from activation_function import gelu, swish, ACT2FN
import logging
logger = logging.getLogge... | 35.888889 | 114 | 0.750774 | 254 | 1,938 | 5.464567 | 0.370079 | 0.058357 | 0.068444 | 0.058357 | 0.079971 | 0.079971 | 0.079971 | 0.057637 | 0.057637 | 0 | 0 | 0.006289 | 0.179567 | 1,938 | 54 | 115 | 35.888889 | 0.866667 | 0.114551 | 0 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.421053 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
591d8ee660b8804dd218cc4cd1c5374e204e9abe | 1,540 | py | Python | ppqq/src/qq/main.py | xiaomin0322/mypqq | 8bdd5d1dafb5fa53d65cb732b7372fbcfe9c7c2c | [
"Apache-2.0"
] | 1 | 2018-11-11T14:34:53.000Z | 2018-11-11T14:34:53.000Z | ppqq/src/qq/main.py | xiaomin0322/mypqq | 8bdd5d1dafb5fa53d65cb732b7372fbcfe9c7c2c | [
"Apache-2.0"
] | null | null | null | ppqq/src/qq/main.py | xiaomin0322/mypqq | 8bdd5d1dafb5fa53d65cb732b7372fbcfe9c7c2c | [
"Apache-2.0"
] | 1 | 2021-02-04T08:46:09.000Z | 2021-02-04T08:46:09.000Z | # -*- coding: utf8 -*-
# 作者:Light.紫.星
# QQ:1311817771
import AndroidQQ,threading,time
from AndroidQQ import Android
class Main:
def __init__(self):
pass
def login(self,qqnum,qqpass):
print 15*"-",("开始登陆QQ:"),qqnum,15*"-"
self.sdk = Android()
self.state = 0
s... | 35 | 75 | 0.546104 | 180 | 1,540 | 4.494444 | 0.444444 | 0.12979 | 0.144623 | 0.118665 | 0.200247 | 0.131026 | 0 | 0 | 0 | 0 | 0 | 0.048204 | 0.312987 | 1,540 | 43 | 76 | 35.813953 | 0.716446 | 0.185065 | 0 | 0.0625 | 0 | 0 | 0.083612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.09375 | 0.0625 | null | null | 0.15625 | 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 |
59346b4914120bc35ba05709bdea9720cdc9dfbc | 3,009 | py | Python | tests/test_utils.py | caseygrun/plates | 156069487560d0c72f080f7e45a4dc2ae7a466ac | [
"MIT"
] | null | null | null | tests/test_utils.py | caseygrun/plates | 156069487560d0c72f080f7e45a4dc2ae7a466ac | [
"MIT"
] | null | null | null | tests/test_utils.py | caseygrun/plates | 156069487560d0c72f080f7e45a4dc2ae7a466ac | [
"MIT"
] | null | null | null | from microplates.utils import *
def test_itertuples():
assert list(itertuples((0,0),(0,2))) == [(0,0),(0,1),(0,2)]
assert list(itertuples((1,0),(2,0))) == [(1,0),(2,0)]
assert list(itertuples((1,0),(2,1))) == [(1,0),(1,1),(2,0),(2,1)]
assert list(itertuples((1,0),(2,1), by='column')) == [(1,0),(2,0),(1... | 38.576923 | 123 | 0.580592 | 434 | 3,009 | 3.937788 | 0.230415 | 0.119368 | 0.065535 | 0.058514 | 0.154476 | 0.095377 | 0.049152 | 0.021065 | 0.021065 | 0 | 0 | 0.134814 | 0.161848 | 3,009 | 77 | 124 | 39.077922 | 0.542823 | 0 | 0 | 0 | 0 | 0 | 0.108009 | 0 | 0 | 0 | 0 | 0 | 0.815385 | 1 | 0.169231 | true | 0 | 0.015385 | 0 | 0.184615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3ca0c10499ba17cd0bb023edc1433da2fe3b0c6e | 1,144 | py | Python | 03. Programacion orientada a objetos/12. sobrecarga relacional/e1.py | Cidryl/python-desde-cero | fade09d13ab0ed0cbb4f45a49a4ad9e3980f3276 | [
"MIT"
] | null | null | null | 03. Programacion orientada a objetos/12. sobrecarga relacional/e1.py | Cidryl/python-desde-cero | fade09d13ab0ed0cbb4f45a49a4ad9e3980f3276 | [
"MIT"
] | null | null | null | 03. Programacion orientada a objetos/12. sobrecarga relacional/e1.py | Cidryl/python-desde-cero | fade09d13ab0ed0cbb4f45a49a4ad9e3980f3276 | [
"MIT"
] | null | null | null | class Persona:
def __init__(self,nombre, edad):
self.nombre=nombre
self.edad=edad
def __eq__(self,objeto2):
if self.edad==objeto2.edad:
return True
else:
return False
def __ne__(self,objeto2):
if self.edad!=o... | 22.88 | 52 | 0.523601 | 125 | 1,144 | 4.568 | 0.28 | 0.098074 | 0.136602 | 0.178634 | 0.625219 | 0.625219 | 0.625219 | 0.625219 | 0.625219 | 0.625219 | 0 | 0.028818 | 0.393357 | 1,144 | 50 | 53 | 22.88 | 0.793948 | 0.013986 | 0 | 0.475 | 0 | 0 | 0.064007 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175 | false | 0 | 0 | 0 | 0.5 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3ca93bc9e19f578ac6c9e0e416c1d3d6ec54c6d4 | 460 | py | Python | src/unit6/user/user_datastore.py | cdoremus/udacity-python_web_development-cs253 | 87cf5dd5d0e06ee745d3aba058d96fa46f2aeb6b | [
"Apache-2.0"
] | null | null | null | src/unit6/user/user_datastore.py | cdoremus/udacity-python_web_development-cs253 | 87cf5dd5d0e06ee745d3aba058d96fa46f2aeb6b | [
"Apache-2.0"
] | null | null | null | src/unit6/user/user_datastore.py | cdoremus/udacity-python_web_development-cs253 | 87cf5dd5d0e06ee745d3aba058d96fa46f2aeb6b | [
"Apache-2.0"
] | null | null | null | '''
Created on Apr 30, 2012
@author: h87966
'''
class UserDataStore():
'''
classdocs
'''
def __init__(self):
'''
Constructor
'''
def save(self, user):
pass
def delete(self, user_id):
pass
def fetch(self, user_i... | 12.777778 | 40 | 0.43913 | 40 | 460 | 4.9 | 0.575 | 0.142857 | 0.102041 | 0.142857 | 0.173469 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044355 | 0.46087 | 460 | 36 | 41 | 12.777778 | 0.745968 | 0.134783 | 0 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0.416667 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
3cabc6bebd08e9407e6c12b5afc414ea98b75d01 | 1,412 | py | Python | setup.py | squidfarts/py-program | 98c3694ffa90b5969eafe1093def9097dfd0d62c | [
"Apache-2.0"
] | null | null | null | setup.py | squidfarts/py-program | 98c3694ffa90b5969eafe1093def9097dfd0d62c | [
"Apache-2.0"
] | null | null | null | setup.py | squidfarts/py-program | 98c3694ffa90b5969eafe1093def9097dfd0d62c | [
"Apache-2.0"
] | 1 | 2021-02-19T20:32:33.000Z | 2021-02-19T20:32:33.000Z | #!/user/bin/env python3
###################################################################################
# #
# NAME: setup.py #
# ... | 50.428571 | 83 | 0.24221 | 64 | 1,412 | 5.296875 | 0.625 | 0.017699 | 0.117994 | 0.088496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016529 | 0.57153 | 1,412 | 28 | 84 | 50.428571 | 0.543802 | 0.577195 | 0 | 0 | 0 | 0 | 0.340836 | 0.093248 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3cad04b55e10337da5937edce699d46c3369e96d | 1,607 | py | Python | epytope/test/DummyAdapter.py | christopher-mohr/epytope | 8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd | [
"BSD-3-Clause"
] | 7 | 2021-02-01T18:11:28.000Z | 2022-01-31T19:14:07.000Z | epytope/test/DummyAdapter.py | christopher-mohr/epytope | 8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd | [
"BSD-3-Clause"
] | 22 | 2021-01-02T15:25:23.000Z | 2022-03-14T11:32:53.000Z | epytope/test/DummyAdapter.py | christopher-mohr/epytope | 8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd | [
"BSD-3-Clause"
] | 4 | 2021-05-28T08:50:38.000Z | 2022-03-14T11:45:32.000Z | # This code is part of the epytope distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""
.. module:: DummyAdaper
:synopsis: Contains a pseudo data base adapter for testing purposes.
.. moduleauthor:: schubert, brachvogel
"""
import copy... | 31.509804 | 73 | 0.6229 | 181 | 1,607 | 5.39779 | 0.513812 | 0.081883 | 0.030706 | 0.040942 | 0.241556 | 0.241556 | 0.241556 | 0.241556 | 0.241556 | 0.241556 | 0 | 0.013889 | 0.283136 | 1,607 | 50 | 74 | 32.14 | 0.834201 | 0.411948 | 0 | 0.28 | 0 | 0 | 0.061998 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.16 | false | 0.12 | 0.08 | 0 | 0.32 | 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 |
3cccd58c207124db8b9a503a7ea72e1986e27cb3 | 459 | py | Python | voxelcut/initial.py | JohnyEngine/CNC | e4c77250ab2b749d3014022cbb5eb9924e939993 | [
"Apache-2.0"
] | null | null | null | voxelcut/initial.py | JohnyEngine/CNC | e4c77250ab2b749d3014022cbb5eb9924e939993 | [
"Apache-2.0"
] | null | null | null | voxelcut/initial.py | JohnyEngine/CNC | e4c77250ab2b749d3014022cbb5eb9924e939993 | [
"Apache-2.0"
] | null | null | null | toolpath.coords = Coords(-100, -100, -5, 100, 100, 5)
voxelcut.set_current_color(12566512)
toolpath.coords.add_block(0.150768, 0, -5, 9.69846, 9.84808, 10)
GRAY = 0x505050
RED = 0x600000
BLUE = 0x000050
toolpath.tools[2] = Tool([[Span(Point(3, 0), Vertex(0, Point(3, 20), Point(0, 0)), False), GRAY], [Span(Point(3, 20),... | 45.9 | 170 | 0.681917 | 79 | 459 | 3.924051 | 0.531646 | 0.077419 | 0.045161 | 0.083871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20339 | 0.100218 | 459 | 9 | 171 | 51 | 0.547216 | 0.124183 | 0 | 0 | 0 | 0 | 0.01995 | 0 | 0 | 0 | 0.05985 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 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 |
3cf83d68c033ebd1a763e8c4a9ee5516e254ffd0 | 1,068 | py | Python | cogs/Events.py | popop098/Teasia-Bot.py | 764c3b1cab8e07a9e98690263ad94011ee26ab72 | [
"MIT"
] | 1 | 2020-12-21T12:05:25.000Z | 2020-12-21T12:05:25.000Z | cogs/Events.py | popop098/Taesia-Bot.py | 764c3b1cab8e07a9e98690263ad94011ee26ab72 | [
"MIT"
] | null | null | null | cogs/Events.py | popop098/Taesia-Bot.py | 764c3b1cab8e07a9e98690263ad94011ee26ab72 | [
"MIT"
] | 1 | 2021-10-30T03:45:42.000Z | 2021-10-30T03:45:42.000Z | import discord
from discord.ext import commands
from discord.ext.commands import has_permissions, MissingPermissions, CommandNotFound, BucketType, cooldown, CommandOnCooldown
from discord import Webhook, RequestsWebhookAdapter
from time import gmtime, strftime
from discord.utils import get
import youtube_dl
import logg... | 30.514286 | 126 | 0.729401 | 140 | 1,068 | 5.5 | 0.585714 | 0.057143 | 0.036364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003432 | 0.181648 | 1,068 | 34 | 127 | 31.411765 | 0.87643 | 0 | 0 | 0 | 0 | 0 | 0.10206 | 0.022472 | 0 | 0 | 0.007491 | 0 | 0 | 1 | 0.1 | false | 0 | 0.5 | 0.033333 | 0.666667 | 0.033333 | 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 |
a71396c8eccbd499f64ee47c8235e9246d3bc275 | 32,867 | py | Python | saber/xbrain/xbrain.py | elenimath/saber | 71acab9798cf3aee1c4d64b09453e5234f8fdf1e | [
"Apache-2.0"
] | 12 | 2018-05-14T17:43:18.000Z | 2021-11-16T04:03:33.000Z | saber/xbrain/xbrain.py | elenimath/saber | 71acab9798cf3aee1c4d64b09453e5234f8fdf1e | [
"Apache-2.0"
] | 34 | 2019-05-06T19:13:36.000Z | 2021-05-06T19:12:35.000Z | saber/xbrain/xbrain.py | elenimath/saber | 71acab9798cf3aee1c4d64b09453e5234f8fdf1e | [
"Apache-2.0"
] | 3 | 2019-10-08T17:42:17.000Z | 2021-07-28T05:52:02.000Z | # Copyright 2019 The Johns Hopkins University Applied Physics Laboratory
#
# 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 ... | 37.562286 | 220 | 0.66334 | 4,650 | 32,867 | 4.553978 | 0.144301 | 0.033576 | 0.025123 | 0.014167 | 0.712599 | 0.701974 | 0.684029 | 0.670759 | 0.656876 | 0.6437 | 0 | 0.021523 | 0.233821 | 32,867 | 874 | 221 | 37.605263 | 0.819395 | 0.398333 | 0 | 0.451948 | 0 | 0 | 0.02701 | 0.001117 | 0 | 0 | 0 | 0.002288 | 0.007792 | 1 | 0.051948 | false | 0 | 0.137662 | 0 | 0.220779 | 0.041558 | 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 |
a71437b5469d3a544e7b8017e8d77b89874193c2 | 2,088 | py | Python | migrations/versions/b846613b404e_.py | python-02/flask-spa-CoopApp | 8ecd9e22847401c6ee18b76a80c68c8ba5d77401 | [
"MIT"
] | 6 | 2021-04-16T06:37:04.000Z | 2021-11-11T23:37:04.000Z | migrations/versions/b846613b404e_.py | python-02/flask-spa-CoopApp | 8ecd9e22847401c6ee18b76a80c68c8ba5d77401 | [
"MIT"
] | null | null | null | migrations/versions/b846613b404e_.py | python-02/flask-spa-CoopApp | 8ecd9e22847401c6ee18b76a80c68c8ba5d77401 | [
"MIT"
] | 2 | 2021-06-01T15:35:17.000Z | 2022-03-05T03:50:57.000Z | """empty message
Revision ID: b846613b404e
Revises: fc25bf71d841
Create Date: 2020-01-06 21:43:28.958558
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = 'b846613b404e'
down_revision = 'fc25bf71d841'
branch_labels = None... | 36.631579 | 69 | 0.684866 | 280 | 2,088 | 5.007143 | 0.278571 | 0.119829 | 0.189729 | 0.242511 | 0.61127 | 0.490014 | 0.432953 | 0.312411 | 0.172611 | 0.14408 | 0 | 0.03681 | 0.141284 | 2,088 | 56 | 70 | 37.285714 | 0.74512 | 0.141284 | 0 | 0.051282 | 0 | 0 | 0.147494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.076923 | 0 | 0.128205 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a730e555a53175f843e80e26bb1889169e4678c3 | 458 | py | Python | data/datasetFactory.py | dcsgfl/acceleratefl | 9c928ff06dd4dd02eb27cb71d7d539ba4527ec58 | [
"MIT"
] | null | null | null | data/datasetFactory.py | dcsgfl/acceleratefl | 9c928ff06dd4dd02eb27cb71d7d539ba4527ec58 | [
"MIT"
] | null | null | null | data/datasetFactory.py | dcsgfl/acceleratefl | 9c928ff06dd4dd02eb27cb71d7d539ba4527ec58 | [
"MIT"
] | null | null | null | from cifar10 import CIFAR10
from mnist import MNIST
class DatasetFactory:
factories = {}
def addFactory(id, dftory):
DatasetFactory.factories.put[id] = dftory
addFactory = staticmethod(addFactory)
def getDataset(id):
if id not in DatasetFactory.factories:
DatasetFa... | 28.625 | 66 | 0.676856 | 46 | 458 | 6.73913 | 0.456522 | 0.370968 | 0.16129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 0.231441 | 458 | 16 | 67 | 28.625 | 0.869318 | 0 | 0 | 0 | 0 | 0 | 0.021786 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.