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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8e6de0dffa62535acd94ac48b411c974051bb2fa | 6,558 | py | Python | deepst/utils/evalMultiStepAhead.py | amirkhango/DeepST | 7ba669013bbafd5f413ef50d5d76094c3a68efd6 | [
"MIT"
] | 29 | 2020-05-16T01:24:03.000Z | 2022-03-28T02:17:16.000Z | deepst/utils/evalMultiStepAhead.py | wss981086665/DeepST | 7ba669013bbafd5f413ef50d5d76094c3a68efd6 | [
"MIT"
] | null | null | null | deepst/utils/evalMultiStepAhead.py | wss981086665/DeepST | 7ba669013bbafd5f413ef50d5d76094c3a68efd6 | [
"MIT"
] | 21 | 2020-04-21T02:44:27.000Z | 2022-03-13T14:18:34.000Z | from __future__ import print_function
import sys
from deepst_flow.models.gan import generator_model
from deepst_flow.datasets import load_stdata
from deepst_flow.preprocessing import MinMaxNormalization
from deepst_flow.preprocessing import remove_incomplete_days
# import h5py
import numpy as np
from keras.opti... | 33.28934 | 116 | 0.613602 | 967 | 6,558 | 3.963806 | 0.180972 | 0.031307 | 0.025567 | 0.015654 | 0.735716 | 0.714584 | 0.693973 | 0.693973 | 0.679885 | 0.679885 | 0 | 0.035677 | 0.264867 | 6,558 | 196 | 117 | 33.459184 | 0.759386 | 0.127478 | 0 | 0.676056 | 0 | 0 | 0.055899 | 0.014931 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014085 | false | 0 | 0.112676 | 0 | 0.126761 | 0.077465 | 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 |
8e75a055e209b834657641cfacff2b7ed0b25ae6 | 58 | py | Python | ktpdriver/__init__.py | kevinmooreiii/moldriver | 65a0a9cef8971737076f81720a61aa5b607333d2 | [
"Apache-2.0"
] | null | null | null | ktpdriver/__init__.py | kevinmooreiii/moldriver | 65a0a9cef8971737076f81720a61aa5b607333d2 | [
"Apache-2.0"
] | null | null | null | ktpdriver/__init__.py | kevinmooreiii/moldriver | 65a0a9cef8971737076f81720a61aa5b607333d2 | [
"Apache-2.0"
] | null | null | null | from ktpdriver import driver
__all__ = [
'driver',
]
| 9.666667 | 28 | 0.655172 | 6 | 58 | 5.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241379 | 58 | 5 | 29 | 11.6 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8e8b9d129f916946481bd39278edb777b5b2cfcd | 338 | py | Python | SoloLearnPython3/Part_2/sketch_4b.py | mahmoudmheisen91/Python_EDU | 3ca08f65bb219335502159a6d13617b9a73c3b7e | [
"MIT"
] | null | null | null | SoloLearnPython3/Part_2/sketch_4b.py | mahmoudmheisen91/Python_EDU | 3ca08f65bb219335502159a6d13617b9a73c3b7e | [
"MIT"
] | null | null | null | SoloLearnPython3/Part_2/sketch_4b.py | mahmoudmheisen91/Python_EDU | 3ca08f65bb219335502159a6d13617b9a73c3b7e | [
"MIT"
] | null | null | null | # Files:
import os
try:
f = open(os.getcwd()+"\\text_file_1.txt", "r+")
#print(f.read())
#print(f.read(16))
#print(f.readlines())
#for line in f:
# print(line)
a = f.write("testing...")
print(a)
#print(f.read())
finally:
f.close()
# With - auto close:
with open(os.getcwd()+"\\text_file_1.txt", "r+") as f:
... | 15.363636 | 54 | 0.591716 | 58 | 338 | 3.37931 | 0.465517 | 0.153061 | 0.204082 | 0.163265 | 0.255102 | 0.255102 | 0.255102 | 0.255102 | 0 | 0 | 0 | 0.013937 | 0.150888 | 338 | 21 | 55 | 16.095238 | 0.66899 | 0.349112 | 0 | 0 | 0 | 0 | 0.228571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.222222 | 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 |
8e8d184961edd6c1dfb170d828dad00771f70762 | 1,369 | py | Python | jina/executors/indexers/cache.py | sdsd0101/jina | 1a835d9015c627a2cbcdc58ee3d127962ada1bc9 | [
"Apache-2.0"
] | null | null | null | jina/executors/indexers/cache.py | sdsd0101/jina | 1a835d9015c627a2cbcdc58ee3d127962ada1bc9 | [
"Apache-2.0"
] | null | null | null | jina/executors/indexers/cache.py | sdsd0101/jina | 1a835d9015c627a2cbcdc58ee3d127962ada1bc9 | [
"Apache-2.0"
] | null | null | null | from typing import Optional
import numpy as np
from . import BaseKVIndexer
from ...proto import uid
class DocIDCache(BaseKVIndexer):
"""Store doc ids in a int64 set and persistent it to a numpy array """
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.handler_mut... | 29.12766 | 114 | 0.620161 | 192 | 1,369 | 4.234375 | 0.416667 | 0.01845 | 0.059041 | 0.073801 | 0.189422 | 0.189422 | 0.091021 | 0 | 0 | 0 | 0 | 0.008982 | 0.268079 | 1,369 | 46 | 115 | 29.76087 | 0.802395 | 0.157049 | 0 | 0.066667 | 0 | 0 | 0.005333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0 | 0.133333 | 0.066667 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
8eb2b601fdc2c3d0c7c565e6a7177f4f981f1ffd | 1,057 | py | Python | tests/cases/doc/test_parametrize_alt.py | broglep-work/python-pytest-cases | 4976c0073a2fad5fbe5de34a5d1199efda0b7da9 | [
"BSD-3-Clause"
] | 213 | 2018-07-05T21:21:21.000Z | 2022-03-22T04:54:53.000Z | tests/cases/doc/test_parametrize_alt.py | broglep-work/python-pytest-cases | 4976c0073a2fad5fbe5de34a5d1199efda0b7da9 | [
"BSD-3-Clause"
] | 259 | 2018-06-22T16:46:33.000Z | 2022-03-23T19:39:15.000Z | tests/cases/doc/test_parametrize_alt.py | broglep-work/python-pytest-cases | 4976c0073a2fad5fbe5de34a5d1199efda0b7da9 | [
"BSD-3-Clause"
] | 27 | 2019-03-26T12:46:49.000Z | 2022-02-21T16:56:23.000Z | # Authors: Sylvain MARIE <sylvain.marie@se.com>
# + All contributors to <https://github.com/smarie/python-pytest-cases>
#
# License: 3-clause BSD, <https://github.com/smarie/python-pytest-cases/blob/master/LICENSE>
import pytest
from pytest_cases import parametrize_with_cases
def case_sum_one_plus_two():
... | 27.102564 | 92 | 0.661306 | 151 | 1,057 | 4.417219 | 0.370861 | 0.02099 | 0.031484 | 0.167916 | 0.488756 | 0.445277 | 0.445277 | 0.302849 | 0.167916 | 0.167916 | 0 | 0.008187 | 0.191107 | 1,057 | 38 | 93 | 27.815789 | 0.77193 | 0.203406 | 0 | 0.26087 | 0 | 0 | 0.107527 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 1 | 0.217391 | false | 0 | 0.086957 | 0 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8eb5408797a9adfef2dd2e703600111076f8e969 | 500 | py | Python | chatServer/chatServerConstants.py | odeke-em/restAssured | 72d5c3a3fe9fd090f067a4332f2a1df15370b1bb | [
"MIT"
] | 1 | 2016-11-20T17:54:02.000Z | 2016-11-20T17:54:02.000Z | chatServer/chatServerConstants.py | odeke-em/restAssured | 72d5c3a3fe9fd090f067a4332f2a1df15370b1bb | [
"MIT"
] | null | null | null | chatServer/chatServerConstants.py | odeke-em/restAssured | 72d5c3a3fe9fd090f067a4332f2a1df15370b1bb | [
"MIT"
] | null | null | null | # Author: Konrad Lindenbach <klindenb@ualberta.ca>,
# Emmanuel Odeke <odeke@ualberta.ca>
# Copyright (c) 2014
# Table name strings
MESSAGE_TABLE_KEY = "Message"
RECEIPIENT_TABLE_KEY = "Receipient"
MESSAGE_MARKER_TABLE_KEY = "MessageMarker"
MAX_NAME_LENGTH = 60 # Arbitrary value
MAX_BODY_LENGTH = 200 # Arbitr... | 29.411765 | 51 | 0.78 | 67 | 500 | 5.522388 | 0.507463 | 0.227027 | 0.22973 | 0.118919 | 0.135135 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044496 | 0.146 | 500 | 16 | 52 | 31.25 | 0.822014 | 0.452 | 0 | 0 | 0 | 0 | 0.114068 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8ec6a49c43f0dfa005b4b57585655882de2d95f4 | 2,735 | py | Python | app/views/users.py | MatheusMullerGit/api-rest-flask-jwt-authentication | 85ff7e8ed9f5472d3dad097c057b10ac88607d89 | [
"MIT"
] | null | null | null | app/views/users.py | MatheusMullerGit/api-rest-flask-jwt-authentication | 85ff7e8ed9f5472d3dad097c057b10ac88607d89 | [
"MIT"
] | null | null | null | app/views/users.py | MatheusMullerGit/api-rest-flask-jwt-authentication | 85ff7e8ed9f5472d3dad097c057b10ac88607d89 | [
"MIT"
] | 1 | 2021-02-10T23:42:05.000Z | 2021-02-10T23:42:05.000Z | from werkzeug.security import generate_password_hash
from app import db
from flask import request, jsonify
from ..models.users import Users, user_schema, users_schema
def get_users():
name = request.args.get('name')
if name:
users = Users.query.filter(Users.name.like(f'%{name}%')).all()
else:
... | 30.388889 | 84 | 0.597806 | 319 | 2,735 | 5.050157 | 0.206897 | 0.096834 | 0.148976 | 0.089385 | 0.583489 | 0.583489 | 0.517691 | 0.476723 | 0.456238 | 0.338299 | 0 | 0.014837 | 0.260695 | 2,735 | 90 | 85 | 30.388889 | 0.781899 | 0 | 0 | 0.507042 | 1 | 0 | 0.148392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084507 | false | 0.098592 | 0.056338 | 0 | 0.338028 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
8ecdf82b88826a1e74a5fae777d74d80fe90cd3b | 225 | py | Python | CFG.py | abduallahmohamed/Social-Implicit | 229dc11aa767d12de935cb974b20698f4902b733 | [
"MIT"
] | 3 | 2022-03-07T00:37:37.000Z | 2022-03-22T18:28:24.000Z | CFG.py | abduallahmohamed/Social-Implicit | 229dc11aa767d12de935cb974b20698f4902b733 | [
"MIT"
] | null | null | null | CFG.py | abduallahmohamed/Social-Implicit | 229dc11aa767d12de935cb974b20698f4902b733 | [
"MIT"
] | 1 | 2022-03-15T08:48:28.000Z | 2022-03-15T08:48:28.000Z | CFG = {
"spatial_input": 2,
"spatial_output": 2,
"temporal_input": 8,
"temporal_output": 12,
"bins": [0, 0.01, 0.1, 1.2],
"noise_weight": [0.05, 1, 4, 8],
"noise_weight_eth": [0.175, 1.5, 4, 8],
}
| 22.5 | 43 | 0.524444 | 37 | 225 | 3 | 0.513514 | 0.198198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158824 | 0.244444 | 225 | 9 | 44 | 25 | 0.494118 | 0 | 0 | 0 | 0 | 0 | 0.391111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8ed1a72472fa3b7c129f65a19d48f668254a66a4 | 3,530 | py | Python | discourse_form/models.py | cinai/teacher_discourse_form | 7d6863dbf8d628011c6b0653ae7ca4e218c2d3bc | [
"MIT"
] | null | null | null | discourse_form/models.py | cinai/teacher_discourse_form | 7d6863dbf8d628011c6b0653ae7ca4e218c2d3bc | [
"MIT"
] | null | null | null | discourse_form/models.py | cinai/teacher_discourse_form | 7d6863dbf8d628011c6b0653ae7ca4e218c2d3bc | [
"MIT"
] | null | null | null | from django.db import models
from sessions_coding.models import Classroom_session,Subject,Axis,Skill,Learning_goal,Copus_code
DIALOGIC_CHOICES = (
('Autoritativo', 'Autoritativo'),
('Dialogico', 'Dialógico'),
('NA', 'NA'),
)
class Discourse_form(models.Model):
session = models.ForeignKey(Classroom_ses... | 39.662921 | 96 | 0.743343 | 459 | 3,530 | 5.437909 | 0.152505 | 0.064503 | 0.106571 | 0.159856 | 0.576923 | 0.492788 | 0.492788 | 0.488782 | 0.473558 | 0.450321 | 0 | 0.004303 | 0.144193 | 3,530 | 88 | 97 | 40.113636 | 0.821913 | 0 | 0 | 0.407895 | 0 | 0 | 0.01813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.144737 | false | 0 | 0.026316 | 0.131579 | 0.921053 | 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 |
8ed811c6a2d536bedc2c7110b1dd87ef9dfa3f9e | 208 | py | Python | PhysicsTools/RecoAlgos/python/allSuperClusterCandidates_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | PhysicsTools/RecoAlgos/python/allSuperClusterCandidates_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | PhysicsTools/RecoAlgos/python/allSuperClusterCandidates_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
allSuperClusterCandidates = cms.EDProducer("ConcreteEcalCandidateProducer",
src = cms.InputTag("hybridSuperClusters"),
particleType = cms.string('gamma')
)
| 23.111111 | 75 | 0.774038 | 18 | 208 | 8.944444 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120192 | 208 | 8 | 76 | 26 | 0.879781 | 0 | 0 | 0 | 0 | 0 | 0.257282 | 0.140777 | 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 |
8ee3abb37467d65da279bf5a736b8973df927cbd | 1,550 | py | Python | snmp/datadog_checks/snmp/models.py | 01100010011001010110010101110000/integrations-core | b6216f96c9faa67e9e1e236caa8ddac597f0ef13 | [
"BSD-3-Clause"
] | null | null | null | snmp/datadog_checks/snmp/models.py | 01100010011001010110010101110000/integrations-core | b6216f96c9faa67e9e1e236caa8ddac597f0ef13 | [
"BSD-3-Clause"
] | null | null | null | snmp/datadog_checks/snmp/models.py | 01100010011001010110010101110000/integrations-core | b6216f96c9faa67e9e1e236caa8ddac597f0ef13 | [
"BSD-3-Clause"
] | null | null | null | # (C) Datadog, Inc. 2020-present
# All rights reserved
# Licensed under Simplified BSD License (see LICENSE)
"""
Define our own models and interfaces for dealing with SNMP data.
"""
from typing import Any, Sequence, Tuple, Union
from .exceptions import CouldNotDecodeOID
from .pysnmp_types import ObjectIdentity, Objec... | 29.807692 | 120 | 0.630968 | 196 | 1,550 | 4.811224 | 0.530612 | 0.021209 | 0.02333 | 0.036055 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003493 | 0.26129 | 1,550 | 51 | 121 | 30.392157 | 0.820087 | 0.336129 | 0 | 0 | 0 | 0 | 0.077621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.173913 | 0.173913 | 0.608696 | 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 |
d9089775d35deb81b413937db4c14cb666c7998d | 1,044 | py | Python | server/inquest/users/views.py | lucasOlivio/inquest | da7c3030f175f31861cf3db385c611c0c05b9406 | [
"MIT"
] | null | null | null | server/inquest/users/views.py | lucasOlivio/inquest | da7c3030f175f31861cf3db385c611c0c05b9406 | [
"MIT"
] | null | null | null | server/inquest/users/views.py | lucasOlivio/inquest | da7c3030f175f31861cf3db385c611c0c05b9406 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.utils.decorators import method_decorator
from django.views.decorators.cache import cache_page
from rest_framework import mixins, viewsets
from rest_framework.permissions import AllowAny
from inquest.users.models import User
from inquest.users.permissions import IsUserOrRead... | 32.625 | 79 | 0.782567 | 110 | 1,044 | 7.327273 | 0.472727 | 0.037221 | 0.059553 | 0.059553 | 0.121588 | 0.121588 | 0.121588 | 0.121588 | 0 | 0 | 0 | 0 | 0.135057 | 1,044 | 31 | 80 | 33.677419 | 0.89258 | 0.057471 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.380952 | 0.047619 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d930da9efaf30980ba593d3e41b76ab41bf0c7bc | 600 | py | Python | sketch/models/GKRect.py | shrredd/sketch | eebcd5077ae355f914bc77ac44d06410f9caa132 | [
"MIT",
"Unlicense"
] | 2 | 2018-10-22T12:43:51.000Z | 2018-12-02T02:41:55.000Z | sketch/models/GKRect.py | shrredd/sketch | eebcd5077ae355f914bc77ac44d06410f9caa132 | [
"MIT",
"Unlicense"
] | null | null | null | sketch/models/GKRect.py | shrredd/sketch | eebcd5077ae355f914bc77ac44d06410f9caa132 | [
"MIT",
"Unlicense"
] | null | null | null | class GKRect(object):
"""
GKRect is a lightweight rectangle object that is used in many places in Sketch.
It has many of the same methods as MSRect but they cannot always be used
interchangeably
"""
def __init__(self, x, y, width, height):
self._x = x
self._y = y
self._wi... | 21.428571 | 83 | 0.598333 | 80 | 600 | 4.3375 | 0.45 | 0.126801 | 0.161383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.326667 | 600 | 27 | 84 | 22.222222 | 0.858911 | 0.28 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0 | 0.222222 | 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 | 1 | 0 | 0 | 0 | 2 |
d939e2da8bc9779856cf5b9b6ca1c116a4880d8f | 214 | py | Python | tests/context.py | gazzar/scientific-project-structure | 59020f2d391f3b816f80cb7d11cb2397a141d271 | [
"BSD-3-Clause"
] | 1 | 2016-11-14T02:30:24.000Z | 2016-11-14T02:30:24.000Z | tests/context.py | gazzar/tmm_model | b50a8cb2d58e70333015c0ecf5759d887f785047 | [
"BSD-3-Clause"
] | 3 | 2016-06-10T02:04:40.000Z | 2016-06-10T02:05:47.000Z | tests/context.py | gazzar/scientific-project-structure | 59020f2d391f3b816f80cb7d11cb2397a141d271 | [
"BSD-3-Clause"
] | null | null | null | import os
import sys
PATH_HERE = os.path.abspath(os.path.dirname(__file__))
sys.path = [
os.path.join(PATH_HERE, '..'),
os.path.join(PATH_HERE, '..', '..'), # include path to version.py
] + sys.path
| 26.75 | 72 | 0.626168 | 32 | 214 | 3.96875 | 0.40625 | 0.188976 | 0.15748 | 0.220472 | 0.283465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17757 | 214 | 7 | 73 | 30.571429 | 0.721591 | 0.121495 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 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 |
d939e93b7ad1bb2b8301e5e1485a6e64b91cf39c | 2,528 | py | Python | src/opencmiss/utils/iron/bindings/python/opencmiss/iron/_utils.in.py | tsalemink/opencmiss.utils | c727d9b922330e3ca38967fa7dbe6480f698f9a2 | [
"Apache-2.0"
] | null | null | null | src/opencmiss/utils/iron/bindings/python/opencmiss/iron/_utils.in.py | tsalemink/opencmiss.utils | c727d9b922330e3ca38967fa7dbe6480f698f9a2 | [
"Apache-2.0"
] | null | null | null | src/opencmiss/utils/iron/bindings/python/opencmiss/iron/_utils.in.py | tsalemink/opencmiss.utils | c727d9b922330e3ca38967fa7dbe6480f698f9a2 | [
"Apache-2.0"
] | null | null | null | """Utility routines and classes used by OpenCMISS
"""
from . import _@IRON_PYTHON_MODULE@
class CMFEError(Exception):
"""Base class for errors in the OpenCMISS library"""
pass
class CMFEType(object):
"""Base class for all OpenCMISS types"""
pass
class Enum(object):
pass
def wrap_cmiss_rou... | 32 | 82 | 0.598101 | 325 | 2,528 | 4.489231 | 0.353846 | 0.047978 | 0.076765 | 0.075394 | 0.197395 | 0.176833 | 0.176833 | 0.05209 | 0 | 0 | 0 | 0.004103 | 0.325158 | 2,528 | 78 | 83 | 32.410256 | 0.851114 | 0.148734 | 0 | 0.276596 | 0 | 0 | 0.063193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.06383 | 0.021277 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d93bfba4772e6da4fcb48210e144b771e7a65dca | 269 | py | Python | app/vendor/serializers.py | ToddPeterson/food-truck-api | 20de03771abcfb6a689f02519c11b630bad87fbf | [
"MIT"
] | null | null | null | app/vendor/serializers.py | ToddPeterson/food-truck-api | 20de03771abcfb6a689f02519c11b630bad87fbf | [
"MIT"
] | null | null | null | app/vendor/serializers.py | ToddPeterson/food-truck-api | 20de03771abcfb6a689f02519c11b630bad87fbf | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import Vendor
class VendorSerializer(serializers.ModelSerializer):
"""Serializer for Vendor objects"""
class Meta:
model = Vendor
fields = ('id', 'name')
read_only_fields = ('id',)
| 20.692308 | 52 | 0.669145 | 28 | 269 | 6.321429 | 0.714286 | 0.090395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230483 | 269 | 12 | 53 | 22.416667 | 0.855072 | 0.107807 | 0 | 0 | 0 | 0 | 0.034188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.571429 | 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 |
d94e47f662699d2cc3d5d385b3261452d0f31c95 | 329 | py | Python | db.py | joeyw526/Personal | 52849526810f9b11947aeabafe56ecabbc68f04f | [
"MIT"
] | null | null | null | db.py | joeyw526/Personal | 52849526810f9b11947aeabafe56ecabbc68f04f | [
"MIT"
] | null | null | null | db.py | joeyw526/Personal | 52849526810f9b11947aeabafe56ecabbc68f04f | [
"MIT"
] | null | null | null | from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relation, sessionmaker
from sqlalchemy import create_engine
Base = declarative_base()
#replace with config setting for database
import config
database_engine = create_engine(config.database_config)
Session = sessionmaker(bind=database_... | 27.416667 | 55 | 0.851064 | 41 | 329 | 6.658537 | 0.463415 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100304 | 329 | 11 | 56 | 29.909091 | 0.922297 | 0.121581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d95923901f575ed8c69caacfc964b37df86b4a68 | 201 | py | Python | ephim/cli.py | kirov/ephim | 6467bed88e7e8135af42b2fbb5368ccdb3eba969 | [
"MIT"
] | null | null | null | ephim/cli.py | kirov/ephim | 6467bed88e7e8135af42b2fbb5368ccdb3eba969 | [
"MIT"
] | null | null | null | ephim/cli.py | kirov/ephim | 6467bed88e7e8135af42b2fbb5368ccdb3eba969 | [
"MIT"
] | null | null | null | import os
from .library import Library
def main():
location = Library.find_library(os.getcwd())
library = Library(location)
library.organize_all()
if __name__ == '__main__':
main()
| 15.461538 | 48 | 0.681592 | 24 | 201 | 5.291667 | 0.541667 | 0.23622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199005 | 201 | 12 | 49 | 16.75 | 0.78882 | 0 | 0 | 0 | 0 | 0 | 0.039801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d95f30f596b67f748d883389b49d496b68057337 | 795 | py | Python | BI-IOS/semester-project/webapp/beecon/polls/models.py | josefdolezal/fit-cvut | 6b6abea4232b946246d33290718d6c5007926b63 | [
"MIT"
] | 20 | 2016-05-15T10:39:53.000Z | 2022-03-29T00:06:06.000Z | BI-IOS/semester-project/webapp/beecon/polls/models.py | josefdolezal/fit-cvut | 6b6abea4232b946246d33290718d6c5007926b63 | [
"MIT"
] | 3 | 2017-05-27T16:44:01.000Z | 2019-01-02T21:02:59.000Z | BI-IOS/semester-project/webapp/beecon/polls/models.py | josefdolezal/fit-cvut | 6b6abea4232b946246d33290718d6c5007926b63 | [
"MIT"
] | 11 | 2018-08-22T21:16:32.000Z | 2021-04-10T22:42:34.000Z | import datetime
from django.db import models
from django.utils import timezone
class Question( models.Model):
question_text = models.CharField( max_length=200 )
pub_date = models.DateTimeField( 'date published' )
def __str__( self ):
return self.question_text
def was_published_recently( self ):
retu... | 28.392857 | 73 | 0.762264 | 102 | 795 | 5.656863 | 0.45098 | 0.147314 | 0.138648 | 0.076257 | 0.176776 | 0.107452 | 0 | 0 | 0 | 0 | 0 | 0.011817 | 0.148428 | 795 | 27 | 74 | 29.444444 | 0.840473 | 0 | 0 | 0.105263 | 0 | 0 | 0.051572 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.157895 | 0.157895 | 0.842105 | 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 |
d97154d8516e9fbd0041d7ff10fa9ef2abd45bcc | 1,551 | py | Python | CallApi/serializers.py | michaelgabriel01/Phone_API | 13c8a28c5def652dc54ac3b6f7e943201894b6b0 | [
"MIT"
] | null | null | null | CallApi/serializers.py | michaelgabriel01/Phone_API | 13c8a28c5def652dc54ac3b6f7e943201894b6b0 | [
"MIT"
] | null | null | null | CallApi/serializers.py | michaelgabriel01/Phone_API | 13c8a28c5def652dc54ac3b6f7e943201894b6b0 | [
"MIT"
] | null | null | null | from django.db import models
# from django import forms
from django.contrib.auth.models import User, Group
from rest_framework import serializers
from .models import Call, Album
class UserSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = User
fields = ('url', 'username', 'pa... | 27.210526 | 94 | 0.676338 | 147 | 1,551 | 7.047619 | 0.346939 | 0.069498 | 0.108108 | 0.222008 | 0.494208 | 0.416988 | 0.416988 | 0.353282 | 0.353282 | 0.214286 | 0 | 0 | 0.213411 | 1,551 | 57 | 95 | 27.210526 | 0.84918 | 0.034172 | 0 | 0.459459 | 0 | 0 | 0.153075 | 0.016043 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.027027 | 0.108108 | 0 | 0.567568 | 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 |
d973a425a59c3ab83b8943e2045a9899336edafd | 4,047 | py | Python | quflow/utils.py | kmodin/quflow | c12bf42929c349e059d85a8d0ff5830b838e8c91 | [
"MIT"
] | null | null | null | quflow/utils.py | kmodin/quflow | c12bf42929c349e059d85a8d0ff5830b838e8c91 | [
"MIT"
] | null | null | null | quflow/utils.py | kmodin/quflow | c12bf42929c349e059d85a8d0ff5830b838e8c91 | [
"MIT"
] | null | null | null | import numpy as np
import pyssht
from numba import njit
from .laplacian.sparse import solve_heat
@njit
def ind2elm(ind):
"""
Convert single index in omega vector to (el, m) indices.
Parameters
----------
ind: int
Returns
-------
(el, m): tuple of indices
"""
el = int(np.floor... | 20.034653 | 84 | 0.54806 | 589 | 4,047 | 3.757216 | 0.26146 | 0.011749 | 0.036602 | 0.022594 | 0.199729 | 0.176231 | 0.138274 | 0.113873 | 0.0723 | 0.0723 | 0 | 0.028846 | 0.280455 | 4,047 | 201 | 85 | 20.134328 | 0.731113 | 0.487522 | 0 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204082 | false | 0 | 0.102041 | 0 | 0.510204 | 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 |
d984ab97c158ba754132a5054a70a7ee9bd1dfd6 | 1,044 | py | Python | django/Pieng/myclass/myquiz/migrations/0001_initial.py | wasit7/tutorials | 83499821266c8debac05cb5d6d5f6da0f0abd68f | [
"MIT"
] | 4 | 2016-02-23T15:39:45.000Z | 2018-03-25T20:15:07.000Z | django/Pieng/myclass/myquiz/migrations/0001_initial.py | wasit7/tutorials | 83499821266c8debac05cb5d6d5f6da0f0abd68f | [
"MIT"
] | null | null | null | django/Pieng/myclass/myquiz/migrations/0001_initial.py | wasit7/tutorials | 83499821266c8debac05cb5d6d5f6da0f0abd68f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-09-02 04:17
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Questio... | 33.677419 | 121 | 0.551724 | 112 | 1,044 | 4.982143 | 0.535714 | 0.096774 | 0.129032 | 0.172043 | 0.18638 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037185 | 0.278736 | 1,044 | 30 | 122 | 34.8 | 0.703851 | 0.064176 | 0 | 0 | 1 | 0 | 0.063655 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.272727 | 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 |
d994167805a77600928084b097565dcf01f4d86b | 856 | py | Python | engram/tests/test_sys_redirect.py | rgrannell1/engram.py | 69ca1af7b0ddb963a611e15414aa2eda48d6c325 | [
"MIT",
"Unlicense"
] | null | null | null | engram/tests/test_sys_redirect.py | rgrannell1/engram.py | 69ca1af7b0ddb963a611e15414aa2eda48d6c325 | [
"MIT",
"Unlicense"
] | 36 | 2015-01-24T23:12:10.000Z | 2015-07-12T19:01:44.000Z | engram/tests/test_sys_redirect.py | rgrannell1/engram.py | 69ca1af7b0ddb963a611e15414aa2eda48d6c325 | [
"MIT",
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
import unittest
import os
import sys
import requests
import utils_test
from multiprocessing import Process
import time
sys.path.append(os.path.abspath('engram'))
import engram
class TestRedirect(utils_test.EngramTestCase):
def test_index(self):
"""
Story: Bookmark pages loads.... | 16.784314 | 77 | 0.73014 | 119 | 856 | 5.193277 | 0.647059 | 0.063107 | 0.061489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025899 | 0.188084 | 856 | 50 | 78 | 17.12 | 0.863309 | 0.426402 | 0 | 0 | 0 | 0 | 0.129817 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.066667 | false | 0 | 0.533333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
79428c007cb5f673c35aad775e047d5ad9cc87ed | 2,139 | py | Python | quickstartup/qs_accounts/admin.py | shahabaz/quickstartup | e351138580d3b332aa309d5d98d562a1ebef5c2c | [
"MIT"
] | 13 | 2015-06-10T03:29:15.000Z | 2021-10-01T22:06:48.000Z | quickstartup/qs_accounts/admin.py | shahabaz/quickstartup | e351138580d3b332aa309d5d98d562a1ebef5c2c | [
"MIT"
] | 47 | 2015-06-10T03:26:18.000Z | 2021-09-22T17:35:24.000Z | quickstartup/qs_accounts/admin.py | shahabaz/quickstartup | e351138580d3b332aa309d5d98d562a1ebef5c2c | [
"MIT"
] | 3 | 2015-07-07T23:55:39.000Z | 2020-04-18T10:34:53.000Z | from django import forms
from django.contrib import admin
from django.contrib.auth import get_user_model
from django.contrib.auth.forms import ReadOnlyPasswordHashField
from django.utils.translation import gettext_lazy as _
from .models import User
class UserAdminCreationForm(forms.ModelForm):
password1 = forms.... | 31.925373 | 89 | 0.656381 | 231 | 2,139 | 5.930736 | 0.363636 | 0.045985 | 0.054745 | 0.030657 | 0.091241 | 0.091241 | 0.058394 | 0 | 0 | 0 | 0 | 0.010018 | 0.206639 | 2,139 | 66 | 90 | 32.409091 | 0.797289 | 0.027583 | 0 | 0.040816 | 0 | 0 | 0.181906 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061224 | false | 0.346939 | 0.142857 | 0.020408 | 0.591837 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
794d994e6a654793b9be5dad209aa40c437a4b42 | 1,555 | py | Python | wk8_hw/ex5_netmiko_sh_ver.py | philuu12/PYTHON_4_NTWK_ENGRS | ac0126ed687a5201031a6295d0094a536547cb92 | [
"Apache-2.0"
] | 1 | 2016-03-01T14:39:17.000Z | 2016-03-01T14:39:17.000Z | wk8_hw/ex5_netmiko_sh_ver.py | philuu12/PYTHON_4_NTWK_ENGRS | ac0126ed687a5201031a6295d0094a536547cb92 | [
"Apache-2.0"
] | null | null | null | wk8_hw/ex5_netmiko_sh_ver.py | philuu12/PYTHON_4_NTWK_ENGRS | ac0126ed687a5201031a6295d0094a536547cb92 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""
5. Use Netmiko to connect to each of the devices in the database.
Execute 'show version' on each device. Calculate the amount of time required to do this.
"""
from netmiko import ConnectHandler
from datetime import datetime
from net_system.models import NetworkDevice, Credentials
import dja... | 31.1 | 88 | 0.601286 | 178 | 1,555 | 5.039326 | 0.41573 | 0.06243 | 0.043478 | 0.024526 | 0.049052 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012311 | 0.3209 | 1,555 | 49 | 89 | 31.734694 | 0.837121 | 0.078457 | 0 | 0.129032 | 0 | 0 | 0.058452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.064516 | 0.16129 | null | null | 0.258065 | 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 |
795a4c1bfcd51d93ac77149dbb23b12fc1c26f21 | 2,784 | py | Python | data/ansible-module-template.py | trskop/hsansible | 00b2c5894edcdd6a4af710e28497b3b327fdd87c | [
"BSD-3-Clause"
] | 12 | 2015-01-06T23:59:53.000Z | 2021-01-02T13:58:26.000Z | data/ansible-module-template.py | trskop/hsansible | 00b2c5894edcdd6a4af710e28497b3b327fdd87c | [
"BSD-3-Clause"
] | 1 | 2021-10-06T12:44:10.000Z | 2022-01-12T11:21:42.000Z | data/ansible-module-template.py | trskop/hsansible | 00b2c5894edcdd6a4af710e28497b3b327fdd87c | [
"BSD-3-Clause"
] | 2 | 2020-04-25T17:25:26.000Z | 2021-11-07T21:13:49.000Z | #!/usr/bin/env python
# This file was generated using $program$ $version$ from a template
# with following copyringht notice.
#
# Copyright (c) 2013, Peter Trsko <peter.trsko@gmail.com>
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provide... | 31.280899 | 77 | 0.716236 | 382 | 2,784 | 5.175393 | 0.489529 | 0.016186 | 0.025797 | 0.027314 | 0.140111 | 0.115832 | 0.115832 | 0.068791 | 0.068791 | 0.068791 | 0 | 0.005427 | 0.205819 | 2,784 | 88 | 78 | 31.636364 | 0.888738 | 0.595546 | 0 | 0.166667 | 1 | 0 | 0.126489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.238095 | null | null | 0.02381 | 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 |
797995b46e29cf3042b928047befb826374e0e03 | 1,694 | py | Python | leer/core/storage/utxo_index_storage.py | TensorVirus/leer | 9295c7e16364c8ff6da37a120a28e61a2c002ac6 | [
"MIT"
] | null | null | null | leer/core/storage/utxo_index_storage.py | TensorVirus/leer | 9295c7e16364c8ff6da37a120a28e61a2c002ac6 | [
"MIT"
] | null | null | null | leer/core/storage/utxo_index_storage.py | TensorVirus/leer | 9295c7e16364c8ff6da37a120a28e61a2c002ac6 | [
"MIT"
] | null | null | null | import os, lmdb
class UTXOIndex:
'''
Basically it is index [public_key -> set of unspent outputs with this public key]
'''
__shared_states = {}
def __init__(self, storage_space, path):
if not path in self.__shared_states:
self.__shared_states[path]={}
self.__dict__ = self.__shared_states[p... | 34.571429 | 103 | 0.72196 | 249 | 1,694 | 4.614458 | 0.301205 | 0.111401 | 0.038294 | 0.055701 | 0.418625 | 0.358573 | 0.302872 | 0.302872 | 0.186249 | 0.186249 | 0 | 0.001421 | 0.169421 | 1,694 | 48 | 104 | 35.291667 | 0.81521 | 0.063164 | 0 | 0.088235 | 0 | 0 | 0.004453 | 0 | 0 | 0 | 0 | 0.020833 | 0 | 1 | 0.205882 | false | 0 | 0.029412 | 0.029412 | 0.382353 | 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 |
798d4895d401ce4adc3405ca10a7afd4738fcdc6 | 319 | py | Python | SageMaker/from_athena.py | terratenney/aws-tools | d8ca07d56d812deb819b039752b94a0f1b9e6eb2 | [
"MIT"
] | 8 | 2020-12-27T18:44:17.000Z | 2022-03-10T22:20:28.000Z | SageMaker/from_athena.py | terratenney/aws-tools | d8ca07d56d812deb819b039752b94a0f1b9e6eb2 | [
"MIT"
] | 28 | 2020-08-30T02:57:03.000Z | 2021-05-12T09:13:15.000Z | SageMaker/from_athena.py | kyhau/arki | b5d6b160ef0780032f231362158dd9dd892f4e8e | [
"MIT"
] | 8 | 2020-09-03T19:00:13.000Z | 2022-03-31T05:31:35.000Z | #import sys
#!{sys.executable} -m pip install pyathena
from pyathena import connect
import pandas as pd
conn = connect(s3_staging_dir='s3://aws-athena-query-results-459817416023-us-east-1/', region_name='us-east-1')
df = pd.read_sql('SELECT * FROM "ticketdata"."nfl_stadium_data" order by stadium limit 10;', conn)
df | 35.444444 | 111 | 0.758621 | 52 | 319 | 4.538462 | 0.730769 | 0.050847 | 0.059322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062937 | 0.103448 | 319 | 9 | 112 | 35.444444 | 0.762238 | 0.159875 | 0 | 0 | 0 | 0 | 0.501873 | 0.314607 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
798fa01b749eafbace3a784968765b5605f4e82b | 331 | py | Python | attendees/forms.py | TonyEight/lionax-wedding | b1abd230491723253726e2bcfe002c7be97db285 | [
"MIT"
] | null | null | null | attendees/forms.py | TonyEight/lionax-wedding | b1abd230491723253726e2bcfe002c7be97db285 | [
"MIT"
] | null | null | null | attendees/forms.py | TonyEight/lionax-wedding | b1abd230491723253726e2bcfe002c7be97db285 | [
"MIT"
] | null | null | null | from django import forms
from django.db.models.base import ModelBase
from phonenumber_field.formfields import PhoneNumberField
from . import models
class InvitationReplyForm(forms.Form):
mobile_phone = PhoneNumberField(required=True, widget=forms.widgets.TextInput(
attrs={"placeholder": "Saisissez votre ... | 30.090909 | 82 | 0.794562 | 38 | 331 | 6.868421 | 0.710526 | 0.076628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123867 | 331 | 10 | 83 | 33.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0.099698 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
799d1f003f4411bfae3d21a7133897db1e94f10f | 441 | py | Python | src/pyprerender/BaseEventHandler.py | thingiesmm/pyprerender | b990e2916977fe7281b97d505e3c3e7b7777fa96 | [
"MIT"
] | 3 | 2020-07-28T17:19:09.000Z | 2020-09-11T01:56:42.000Z | src/pyprerender/BaseEventHandler.py | thingiesmm/pyprerender | b990e2916977fe7281b97d505e3c3e7b7777fa96 | [
"MIT"
] | null | null | null | src/pyprerender/BaseEventHandler.py | thingiesmm/pyprerender | b990e2916977fe7281b97d505e3c3e7b7777fa96 | [
"MIT"
] | null | null | null | import threading
class BaseEventHandler(object):
screen_lock = threading.Lock()
def __init__(self, browser, tab, directory='./'):
self.browser = browser
self.tab = tab
self.start_frame = None
self.directory = directory
def frame_started_loading(self, frameId):
if ... | 23.210526 | 53 | 0.646259 | 50 | 441 | 5.46 | 0.46 | 0.098901 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.267574 | 441 | 18 | 54 | 24.5 | 0.845201 | 0 | 0 | 0 | 0 | 0 | 0.004535 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.076923 | 0.076923 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
79b1521f2c96172275c767bb838446410cf9cd69 | 426 | py | Python | app/mybot.py | arudmin/rocketgram-template | 5360e4a71ae2ba3c83d87a6278f7f46c04317665 | [
"WTFPL"
] | null | null | null | app/mybot.py | arudmin/rocketgram-template | 5360e4a71ae2ba3c83d87a6278f7f46c04317665 | [
"WTFPL"
] | null | null | null | app/mybot.py | arudmin/rocketgram-template | 5360e4a71ae2ba3c83d87a6278f7f46c04317665 | [
"WTFPL"
] | null | null | null | import logging
import pickle
from datetime import datetime
import munch
from rocketgram import Bot, Dispatcher, DefaultValuesMiddleware, ParseModeType
logger = logging.getLogger('mybot')
router = Dispatcher()
def get_bot(token: str):
bot = Bot(token, router=router, globals_class=munch.Munch, context_data_clas... | 22.421053 | 94 | 0.793427 | 51 | 426 | 6.529412 | 0.54902 | 0.084084 | 0.09009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126761 | 426 | 18 | 95 | 23.666667 | 0.895161 | 0 | 0 | 0 | 0 | 0 | 0.011765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.454545 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
79c4ad5431fc01ca8847cda94d203de141747e2e | 3,863 | py | Python | decuen/actors/strats/epsilon.py | ziyadedher/decuen | bc3bd42857308d7b189f576a3404abb3f9152531 | [
"MIT"
] | 2 | 2019-03-21T20:15:22.000Z | 2019-11-06T21:18:52.000Z | decuen/actors/strats/epsilon.py | ziyadedher/decuen | bc3bd42857308d7b189f576a3404abb3f9152531 | [
"MIT"
] | 10 | 2019-11-17T14:41:31.000Z | 2019-11-26T18:52:27.000Z | decuen/actors/strats/epsilon.py | ziyadedher/decuen | bc3bd42857308d7b189f576a3404abb3f9152531 | [
"MIT"
] | null | null | null | """Implementation of an epsilon-greedy action selection strategy."""
from abc import ABC, abstractmethod
from typing import Callable, ClassVar, Optional
from decuen.actors.strats._strategy import Strategy
from decuen.actors.strats.greedy import GreedyStrategy
from decuen.actors.strats.uniform import UniformStrategy
f... | 32.191667 | 115 | 0.6803 | 446 | 3,863 | 5.807175 | 0.246637 | 0.033977 | 0.027799 | 0.032819 | 0.228958 | 0.180309 | 0.145174 | 0.116602 | 0.088803 | 0.088803 | 0 | 0.001656 | 0.218483 | 3,863 | 119 | 116 | 32.462185 | 0.856244 | 0.330054 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008403 | 0 | 1 | 0.218182 | false | 0 | 0.145455 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
79dd1956eda2bbd3df8995bb81479005690d4a42 | 301 | py | Python | magicmirror/tools/es/__init__.py | memirror/magicMirror | 05ee16b44aef22c30da2bc3323c5ba593b3e53fa | [
"MIT"
] | 5 | 2021-09-03T03:06:51.000Z | 2022-03-22T07:48:22.000Z | magicmirror/tools/es/__init__.py | xiaodongxiexie/magicMirror | 05ee16b44aef22c30da2bc3323c5ba593b3e53fa | [
"MIT"
] | null | null | null | magicmirror/tools/es/__init__.py | xiaodongxiexie/magicMirror | 05ee16b44aef22c30da2bc3323c5ba593b3e53fa | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Author: xiaodong
# @Date : 2021/5/27
from elasticsearch import Elasticsearch
from .question import ElasticSearchQuestion
from ...setting import ELASTICSEARCH_HOST
ElasticSearchQuestion.es = Elasticsearch(ELASTICSEARCH_HOST)
esq = ElasticSearchQuestion("mm_question")
| 21.5 | 60 | 0.777409 | 31 | 301 | 7.451613 | 0.612903 | 0.164502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.122924 | 301 | 13 | 61 | 23.153846 | 0.844697 | 0.192691 | 0 | 0 | 0 | 0 | 0.046025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
79ddb105ac755f4279b7ea5fbb3e4ad1e1be660a | 265 | py | Python | mirari/TCS/migrations/0051_merge_20200210_1930.py | gcastellan0s/mirariapp | 24a9db06d10f96c894d817ef7ccfeec2a25788b7 | [
"MIT"
] | null | null | null | mirari/TCS/migrations/0051_merge_20200210_1930.py | gcastellan0s/mirariapp | 24a9db06d10f96c894d817ef7ccfeec2a25788b7 | [
"MIT"
] | 18 | 2019-12-27T19:58:20.000Z | 2022-02-27T08:17:49.000Z | mirari/TCS/migrations/0051_merge_20200210_1930.py | gcastellan0s/mirariapp | 24a9db06d10f96c894d817ef7ccfeec2a25788b7 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.5 on 2020-02-11 01:30
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('TCS', '0050_auto_20190918_1247'),
('TCS', '0050_auto_20191127_2331'),
]
operations = [
]
| 17.666667 | 47 | 0.637736 | 33 | 265 | 4.939394 | 0.818182 | 0.08589 | 0.134969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232673 | 0.237736 | 265 | 14 | 48 | 18.928571 | 0.574257 | 0.169811 | 0 | 0 | 1 | 0 | 0.238532 | 0.211009 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8db6147436c0b6b4669ca38bc881f7d85d39b8de | 3,050 | py | Python | nova/scheduler/weights/__init__.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/scheduler/weights/__init__.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/scheduler/weights/__init__.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | 2 | 2017-07-20T17:31:34.000Z | 2020-07-24T02:42:19.000Z | begin_unit
comment|'# Copyright (c) 2011 OpenStack Foundation'
nl|'\n'
comment|'# All Rights Reserved.'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may'
nl|'\n'
comment|'# not use this file except in compliance with the License. You may obtain'
nl|'\n... | 15.482234 | 88 | 0.632787 | 442 | 3,050 | 4.298643 | 0.269231 | 0.042632 | 0.068421 | 0.050526 | 0.305263 | 0.226842 | 0.147895 | 0.126842 | 0.084211 | 0 | 0 | 0.00299 | 0.122623 | 3,050 | 196 | 89 | 15.561224 | 0.707025 | 0 | 0 | 0.770408 | 0 | 0 | 0.446885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005102 | 0.005102 | 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 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8dc12441a5e7249e908d2c2dfcd39c2193640172 | 6,680 | py | Python | jinfo/sequence.py | JBwdn/jinfo | b5933edd3ea3d27f4f7c1e0153e16750de0d1726 | [
"MIT"
] | null | null | null | jinfo/sequence.py | JBwdn/jinfo | b5933edd3ea3d27f4f7c1e0153e16750de0d1726 | [
"MIT"
] | 1 | 2020-12-07T14:07:14.000Z | 2020-12-07T14:07:14.000Z | jinfo/sequence.py | JBwdn/jinfo | b5933edd3ea3d27f4f7c1e0153e16750de0d1726 | [
"MIT"
] | null | null | null | from jinfo.tables import (
DNA_VOCAB,
RNA_VOCAB,
AA_VOCAB,
CODON_TABLE,
RC_TABLE,
NT_MW_TABLE,
AA_MW_TABLE,
)
class SeqVocabError(Exception):
pass
class SeqLengthError(Exception):
pass
class UnknownBaseError(Exception):
pass
class BaseSeq:
"""
Parent class for DNA... | 25.39924 | 88 | 0.577994 | 813 | 6,680 | 4.615006 | 0.210332 | 0.035448 | 0.016791 | 0.021322 | 0.441098 | 0.39419 | 0.372068 | 0.269456 | 0.249467 | 0.239872 | 0 | 0.008743 | 0.31512 | 6,680 | 262 | 89 | 25.496183 | 0.811366 | 0.208982 | 0 | 0.294643 | 0 | 0 | 0.058736 | 0.011238 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205357 | false | 0.035714 | 0.053571 | 0.017857 | 0.535714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
8de9bac54c06400b09fe0841b43b9c0c1c1f4575 | 527 | py | Python | Pre-train/refers/data/__init__.py | funnyzhou/REFERS | 392eddf13cbf3c3a7dc0bf8bfffd108ca4a65a19 | [
"MIT"
] | 46 | 2021-11-19T03:23:01.000Z | 2022-03-27T08:59:50.000Z | Pre-train/refers/data/__init__.py | funnyzhou/REFERS | 392eddf13cbf3c3a7dc0bf8bfffd108ca4a65a19 | [
"MIT"
] | null | null | null | Pre-train/refers/data/__init__.py | funnyzhou/REFERS | 392eddf13cbf3c3a7dc0bf8bfffd108ca4a65a19 | [
"MIT"
] | 3 | 2022-01-22T18:45:20.000Z | 2022-03-29T08:59:16.000Z | from .datasets.captioning import CaptioningDataset
from .datasets.masked_lm import MaskedLmDataset
from .datasets.multilabel import MultiLabelClassificationDataset
from .datasets.downstream import (
ImageNetDataset,
INaturalist2018Dataset,
VOC07ClassificationDataset,
ImageDirectoryDataset,
)
__all__ = ... | 26.35 | 64 | 0.781784 | 32 | 527 | 12.71875 | 0.5 | 0.117936 | 0.309582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026667 | 0.14611 | 527 | 19 | 65 | 27.736842 | 0.877778 | 0 | 0 | 0 | 0 | 0 | 0.278937 | 0.189753 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 1 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8df4615701e7dedef4351712d7a59c5d1e5c432e | 364 | py | Python | Snippets and Basic Functions/Cryptography/ecdsa-ops.py | sckulkarni246/python-snippets-for-embedded-programmers | 9dfd0b193f86a6de54598917f3d7088a60ec4abc | [
"MIT"
] | null | null | null | Snippets and Basic Functions/Cryptography/ecdsa-ops.py | sckulkarni246/python-snippets-for-embedded-programmers | 9dfd0b193f86a6de54598917f3d7088a60ec4abc | [
"MIT"
] | null | null | null | Snippets and Basic Functions/Cryptography/ecdsa-ops.py | sckulkarni246/python-snippets-for-embedded-programmers | 9dfd0b193f86a6de54598917f3d7088a60ec4abc | [
"MIT"
] | null | null | null | import ecdsa
import hashlib
sk = ecdsa.SigningKey.generate(curve=ecdsa.NIST256p)
vk = sk.get_verifying_key()
a = b"Hello World!"
sig = sk.sign(a,hashfunc=hashlib.sha256)
result = vk.verify(sig,a,hashfunc=hashlib.sha256)
strsk = sk.to_string()
strvk = vk.to_string()
sk2 = ecdsa.SigningKey.from_string(strsk,curve=ec... | 21.411765 | 62 | 0.760989 | 57 | 364 | 4.736842 | 0.508772 | 0.111111 | 0.133333 | 0.162963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045872 | 0.101648 | 364 | 16 | 63 | 22.75 | 0.779817 | 0 | 0 | 0 | 1 | 0 | 0.032967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8dfcb3cc51ba098203b49c8846a0a0b7192220bf | 313 | py | Python | scenarios/SambaShare/config.py | dasec/ForTrace | b8187522a2c83fb661e5a1a5f403da8f40a31ead | [
"MIT"
] | 1 | 2022-03-31T14:01:51.000Z | 2022-03-31T14:01:51.000Z | scenarios/SambaShare/config.py | dasec/ForTrace | b8187522a2c83fb661e5a1a5f403da8f40a31ead | [
"MIT"
] | null | null | null | scenarios/SambaShare/config.py | dasec/ForTrace | b8187522a2c83fb661e5a1a5f403da8f40a31ead | [
"MIT"
] | 1 | 2022-03-31T14:02:30.000Z | 2022-03-31T14:02:30.000Z |
imagename = "smbScenario"
author = "David Konczewski"
hostplatform = "windows"
poolpath = "/home/wurstfingersalat/Downloads/fortracepool/"
smbname = "smbServer"
smbplatform = "unix"
sourcePath = "C:\Users\fortrace\Desktop\TestFile.txt"
targetPath = r"\\192.168.103.102\public"
username = "bla"
password = "test"
| 26.083333 | 59 | 0.747604 | 34 | 313 | 6.882353 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042705 | 0.102236 | 313 | 11 | 60 | 28.454545 | 0.790036 | 0 | 0 | 0 | 0 | 0 | 0.519231 | 0.346154 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.1 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
5c05581cfe7725cd6de73043086602105f3512f1 | 205 | py | Python | src/commands/posts/kernel.py | MineHubCZ/MH-DOS | 0d1361aee8aa4903e7b6c89c1df279b74d55d703 | [
"MIT"
] | 2 | 2021-08-01T12:59:59.000Z | 2021-09-27T05:51:05.000Z | src/commands/posts/kernel.py | MineHubCZ/MH-DOS | 0d1361aee8aa4903e7b6c89c1df279b74d55d703 | [
"MIT"
] | 3 | 2021-07-25T07:54:19.000Z | 2021-08-18T20:35:26.000Z | src/commands/posts/kernel.py | MineHubCZ/MH-DOS | 0d1361aee8aa4903e7b6c89c1df279b74d55d703 | [
"MIT"
] | null | null | null | from commands.posts.show import show
from commands.posts.all import all
def posts(arguments):
if not arguments:
all()
return
if int(arguments[0]):
show(arguments[0])
| 17.083333 | 36 | 0.629268 | 27 | 205 | 4.777778 | 0.481481 | 0.186047 | 0.263566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0.278049 | 205 | 11 | 37 | 18.636364 | 0.858108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5c1034bae8fc295a3f243c68cc7b08646a98fe8b | 348 | py | Python | 22. Workshop - Custom List/tests/tests_case_base.py | elenaborisova/Python-OOP | 584882c08f84045b12322917f0716c7c7bd9befc | [
"MIT"
] | 1 | 2021-03-27T16:56:30.000Z | 2021-03-27T16:56:30.000Z | 22. Workshop - Custom List/tests/tests_case_base.py | elenaborisova/Python-OOP | 584882c08f84045b12322917f0716c7c7bd9befc | [
"MIT"
] | null | null | null | 22. Workshop - Custom List/tests/tests_case_base.py | elenaborisova/Python-OOP | 584882c08f84045b12322917f0716c7c7bd9befc | [
"MIT"
] | 1 | 2021-03-15T14:50:39.000Z | 2021-03-15T14:50:39.000Z | from unittest import TestCase
class TestCaseBase(TestCase):
def assertEmpty(self, iterable):
if type(iterable) == dict:
return self.assertDictEqual({}, dict(iterable))
elif type(iterable) == set:
return self.assertSetEqual(set(), set(iterable))
return self.assertLi... | 29 | 60 | 0.649425 | 35 | 348 | 6.457143 | 0.571429 | 0.132743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232759 | 348 | 11 | 61 | 31.636364 | 0.846442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
5c242a198477936939412bc6fd3c800247ffa52b | 310 | py | Python | neuraldistributions/utility/__init__.py | mohammadbashiri/bashiri-et-al-2021 | c7c15ea0bf165d4d3db2ff63a04a1e78c29bf44c | [
"MIT"
] | 2 | 2021-12-04T20:01:00.000Z | 2021-12-05T19:59:02.000Z | neuraldistributions/utility/__init__.py | mohammadbashiri/bashiri-et-al-2021 | c7c15ea0bf165d4d3db2ff63a04a1e78c29bf44c | [
"MIT"
] | 1 | 2021-12-15T20:50:04.000Z | 2021-12-15T20:50:04.000Z | neuraldistributions/utility/__init__.py | mohammadbashiri/bashiri-et-al-2021 | c7c15ea0bf165d4d3db2ff63a04a1e78c29bf44c | [
"MIT"
] | 1 | 2021-09-15T12:26:17.000Z | 2021-09-15T12:26:17.000Z | from .reproducibility import set_random_seed
from .training import EarlyStopping
from .dataset import get_dataloader, imread
from .model_evaluation import (
get_conditional_means,
get_conditional_variances,
spearman_corr,
)
from .scoring_functions import (
Correlation,
get_loglikelihood,
) | 25.833333 | 44 | 0.8 | 35 | 310 | 6.771429 | 0.657143 | 0.075949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151613 | 310 | 12 | 45 | 25.833333 | 0.901141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.416667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
5c2fd36ec63dc8452f1ae98ad930b70f17c2fece | 430 | py | Python | nodefinder/search/result/__init__.py | zx-sdu/NodeFinder | edaeeba8fb5a1ca28222313f6de7a6dfa8253093 | [
"Apache-2.0"
] | 2 | 2020-01-29T16:47:18.000Z | 2021-05-24T16:39:00.000Z | nodefinder/search/result/__init__.py | zx-sdu/NodeFinder | edaeeba8fb5a1ca28222313f6de7a6dfa8253093 | [
"Apache-2.0"
] | 12 | 2018-07-11T23:42:19.000Z | 2021-10-07T21:39:12.000Z | nodefinder/search/result/__init__.py | zx-sdu/NodeFinder | edaeeba8fb5a1ca28222313f6de7a6dfa8253093 | [
"Apache-2.0"
] | 2 | 2019-11-06T00:22:53.000Z | 2019-11-06T00:38:23.000Z | # -*- coding: utf-8 -*-
# © 2017-2019, ETH Zurich, Institut für Theoretische Physik
# Author: Dominik Gresch <greschd@gmx.ch>
"""
Submodule defining the result classes of the search step.
"""
from ._minimization import *
from ._search_result_container import *
from ._controller_state import *
__all__ = _minimization... | 30.714286 | 132 | 0.769767 | 53 | 430 | 5.735849 | 0.698113 | 0.065789 | 0.138158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024064 | 0.130233 | 430 | 13 | 133 | 33.076923 | 0.786096 | 0.495349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
308696aec5daf6d1909385db9bbfaabec91c70ed | 12,678 | py | Python | cli/tests/test_polyflow/test_io.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | cli/tests/test_polyflow/test_io.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | cli/tests/test_polyflow/test_io.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#
# Copyright 2019 Polyaxon, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 33.451187 | 88 | 0.54985 | 1,329 | 12,678 | 5.043642 | 0.125658 | 0.052215 | 0.048038 | 0.093988 | 0.797553 | 0.773236 | 0.738774 | 0.671192 | 0.638669 | 0.570192 | 0 | 0.009238 | 0.325446 | 12,678 | 378 | 89 | 33.539683 | 0.774556 | 0.065862 | 0 | 0.589172 | 0 | 0 | 0.106965 | 0.009647 | 0.006369 | 0 | 0 | 0 | 0.184713 | 1 | 0.047771 | false | 0 | 0.028662 | 0 | 0.079618 | 0.003185 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
30b638da5030fbfdcd883d8276e056b82e0090a9 | 2,200 | bzl | Python | tools/build_rules/test_rules_private.bzl | jobechoi/bazel | c03e9ac2588a590881350f4f9dd859de480240de | [
"Apache-2.0"
] | 16,989 | 2015-09-01T19:57:15.000Z | 2022-03-31T23:54:00.000Z | tools/build_rules/test_rules_private.bzl | jobechoi/bazel | c03e9ac2588a590881350f4f9dd859de480240de | [
"Apache-2.0"
] | 12,562 | 2015-09-01T09:06:01.000Z | 2022-03-31T22:26:20.000Z | tools/build_rules/test_rules_private.bzl | jobechoi/bazel | c03e9ac2588a590881350f4f9dd859de480240de | [
"Apache-2.0"
] | 3,707 | 2015-09-02T19:20:01.000Z | 2022-03-31T17:06:14.000Z | # Copyright 2019 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | 46.808511 | 102 | 0.676364 | 299 | 2,200 | 4.886288 | 0.41806 | 0.098563 | 0.081451 | 0.102669 | 0.322382 | 0.284052 | 0.284052 | 0.160164 | 0.1013 | 0.1013 | 0 | 0.009912 | 0.174545 | 2,200 | 46 | 103 | 47.826087 | 0.794604 | 0.386818 | 0 | 0.12 | 0 | 0.16 | 0.815373 | 0.489073 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
30b7f6927cf433ce23be01d4a486fea2d59cd181 | 989 | py | Python | python/items_factory.py | yeachan153/GildedRose-Refactoring-Kata | 77a5c01f3a2250882142f3695e3731372330618c | [
"MIT"
] | null | null | null | python/items_factory.py | yeachan153/GildedRose-Refactoring-Kata | 77a5c01f3a2250882142f3695e3731372330618c | [
"MIT"
] | null | null | null | python/items_factory.py | yeachan153/GildedRose-Refactoring-Kata | 77a5c01f3a2250882142f3695e3731372330618c | [
"MIT"
] | null | null | null | from python.items import AgedBrieItem, BackStageItem, RagnarosItem, ConjuredItem
from python.exceptions import InvalidRepositoryException
from typing import Union
class ItemsFactory:
"""Generates correct item objects
based on specified parameter
"""
@staticmethod
def create_item(
text: st... | 28.257143 | 80 | 0.61274 | 88 | 989 | 6.875 | 0.625 | 0.039669 | 0.122314 | 0.161983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002959 | 0.316481 | 989 | 34 | 81 | 29.088235 | 0.892012 | 0.152679 | 0 | 0 | 1 | 0 | 0.160875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.05 | 0.15 | 0 | 0.45 | 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 |
30beca55a709baf5dd47f082789523e6f07954f1 | 2,005 | py | Python | app/utils/message.py | NehaDC-IMC/connect-processor-template-for-python | 9abdb4b513c648232ffa2092db7e3b8d02575bcb | [
"Apache-2.0"
] | null | null | null | app/utils/message.py | NehaDC-IMC/connect-processor-template-for-python | 9abdb4b513c648232ffa2092db7e3b8d02575bcb | [
"Apache-2.0"
] | null | null | null | app/utils/message.py | NehaDC-IMC/connect-processor-template-for-python | 9abdb4b513c648232ffa2092db7e3b8d02575bcb | [
"Apache-2.0"
] | null | null | null | class TierFulfillmentMessages(object):
RROR_PROCESSING_TIER_REQUEST = 'There has been an error processing the tier config request. Error description: {}'
class BasePurchaseMessages:
pass
class BaseChangeMessages:
pass
class BaseSuspendMessages:
NOTHING_TO_DO = 'Suspend method for request {} - Nothi... | 37.830189 | 118 | 0.66783 | 205 | 2,005 | 6.4 | 0.458537 | 0.021341 | 0.018293 | 0.028963 | 0.042683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269825 | 2,005 | 52 | 119 | 38.557692 | 0.896175 | 0 | 0 | 0.138889 | 0 | 0 | 0.434066 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.138889 | 0 | 0 | 0.638889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
30d1376ed4a53ab1347ac9676cdec36e14b4c7cc | 823 | py | Python | interface/popup.py | spatocode/seeker | b7c3ccf5baa13ce12f6f9f33cc73fa9f09b8a1dc | [
"BSD-2-Clause"
] | null | null | null | interface/popup.py | spatocode/seeker | b7c3ccf5baa13ce12f6f9f33cc73fa9f09b8a1dc | [
"BSD-2-Clause"
] | null | null | null | interface/popup.py | spatocode/seeker | b7c3ccf5baa13ce12f6f9f33cc73fa9f09b8a1dc | [
"BSD-2-Clause"
] | null | null | null | import wx
class PopupMenu(wx.Menu):
def __init__(self, parent):
super(PopupMenu, self).__init__()
self.parent = parent
sendPackets = wx.MenuItem(self, wx.NewId(), "Send Packets")
self.Append(sendPackets)
copyPackets = wx.MenuItem(self, wx.NewId(), "Copy Packets")
s... | 29.392857 | 70 | 0.617254 | 94 | 823 | 5.319149 | 0.308511 | 0.14 | 0.196 | 0.224 | 0.354 | 0.228 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244228 | 823 | 27 | 71 | 30.481481 | 0.803859 | 0 | 0 | 0 | 0 | 0 | 0.113001 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.157895 | 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 |
30ee18a6b2f022e0885f14c7de3dc685941faaaa | 2,604 | py | Python | puente-etl/jobs.py | puente-development-international/serverless | 5eb89737821e3c711fc9ab9f8738c741e0ff5e03 | [
"MIT"
] | null | null | null | puente-etl/jobs.py | puente-development-international/serverless | 5eb89737821e3c711fc9ab9f8738c741e0ff5e03 | [
"MIT"
] | null | null | null | puente-etl/jobs.py | puente-development-international/serverless | 5eb89737821e3c711fc9ab9f8738c741e0ff5e03 | [
"MIT"
] | 1 | 2020-07-05T22:04:07.000Z | 2020-07-05T22:04:07.000Z | from load_to_s3 import export_to_s3_as_dataframe, export_to_s3_as_csv
from transform_form_specifications import get_custom_form_schema_df
from transform_form_results import get_form_results_df
from utils.clients import Clients
from utils.constants import PuenteTables
def run_transform_jobs(event, context):
"""
... | 38.294118 | 94 | 0.715822 | 315 | 2,604 | 5.609524 | 0.234921 | 0.063384 | 0.090549 | 0.199208 | 0.255801 | 0.037351 | 0 | 0 | 0 | 0 | 0 | 0.004764 | 0.193932 | 2,604 | 67 | 95 | 38.865672 | 0.837065 | 0.308756 | 0 | 0 | 0 | 0 | 0.073046 | 0.052661 | 0 | 0 | 0 | 0.014925 | 0 | 1 | 0.028571 | false | 0 | 0.142857 | 0 | 0.171429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a5003aee3fdfeb112214e2ce995e4b7632c2a000 | 1,077 | py | Python | drdown/medicalrecords/views/view_static_data.py | fga-gpp-mds/2018.1-Cris-Down | 3423374360105b06ac2c57a320bf2ee8deaa08a3 | [
"MIT"
] | 11 | 2018-03-11T01:21:43.000Z | 2018-06-19T21:51:33.000Z | drdown/medicalrecords/views/view_static_data.py | fga-gpp-mds/2018.1-Grupo12 | 3423374360105b06ac2c57a320bf2ee8deaa08a3 | [
"MIT"
] | 245 | 2018-03-13T19:07:14.000Z | 2018-07-07T22:46:00.000Z | drdown/medicalrecords/views/view_static_data.py | fga-gpp-mds/2018.1-Grupo12 | 3423374360105b06ac2c57a320bf2ee8deaa08a3 | [
"MIT"
] | 12 | 2018-08-24T13:26:04.000Z | 2021-03-27T16:28:22.000Z | from drdown.users.models.model_health_team import HealthTeam
from ..models.model_static_data import StaticData
from ..models.model_medical_record import MedicalRecord
from drdown.users.models.model_user import User
from drdown.users.models.model_patient import Patient
from django.views.generic import CreateView, Delete... | 41.423077 | 77 | 0.812442 | 121 | 1,077 | 6.991736 | 0.413223 | 0.065012 | 0.053191 | 0.074468 | 0.316785 | 0.224586 | 0.224586 | 0.224586 | 0.224586 | 0.224586 | 0 | 0 | 0.129991 | 1,077 | 25 | 78 | 43.08 | 0.902882 | 0 | 0 | 0.285714 | 0 | 0 | 0.121634 | 0.114206 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.047619 | 0.47619 | 0 | 0.952381 | 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 |
a50616668f1b0fda24a43ea8fe0b13c1c15724d0 | 978 | py | Python | files/hacktm-ctf-2020/strange-pcap/solution/solve.py | J4sp3r/j4sp3r.github.io | 0bab5698fdeab57426c90a315204bcd39cd79fa4 | [
"MIT"
] | null | null | null | files/hacktm-ctf-2020/strange-pcap/solution/solve.py | J4sp3r/j4sp3r.github.io | 0bab5698fdeab57426c90a315204bcd39cd79fa4 | [
"MIT"
] | null | null | null | files/hacktm-ctf-2020/strange-pcap/solution/solve.py | J4sp3r/j4sp3r.github.io | 0bab5698fdeab57426c90a315204bcd39cd79fa4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
usb_codes = {
0x04:"aA", 0x05:"bB", 0x06:"cC", 0x07:"dD", 0x08:"eE", 0x09:"fF",
0x0A:"gG", 0x0B:"hH", 0x0C:"iI", 0x0D:"jJ", 0x0E:"kK", 0x0F:"lL",
0x10:"mM", 0x11:"nN", 0x12:"oO", 0x13:"pP", 0x14:"qQ", 0x15:"rR",
0x16:"sS", 0x17:"tT", 0x18:"uU", 0x19:"vV", 0x1A:"wW", 0x1B:"xX",
0x1... | 28.764706 | 69 | 0.474438 | 150 | 978 | 3.066667 | 0.74 | 0.052174 | 0.021739 | 0.026087 | 0.034783 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210733 | 0.218814 | 978 | 33 | 70 | 29.636364 | 0.391361 | 0.021472 | 0 | 0.111111 | 0 | 0 | 0.139121 | 0 | 0 | 0 | 0.209205 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.037037 | 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 |
a50618df62098357329e3f13f260013ab38c4a27 | 1,410 | py | Python | problems/easy.py | mrcoles/coding-bee | 04cc5bc8dae92640fc8f01501b3f93e18a2a34c5 | [
"MIT"
] | 1 | 2021-07-26T18:29:16.000Z | 2021-07-26T18:29:16.000Z | problems/easy.py | recursecenter/coding-bee | 04cc5bc8dae92640fc8f01501b3f93e18a2a34c5 | [
"MIT"
] | null | null | null | problems/easy.py | recursecenter/coding-bee | 04cc5bc8dae92640fc8f01501b3f93e18a2a34c5 | [
"MIT"
] | 3 | 2018-06-25T19:10:47.000Z | 2018-09-17T10:43:31.000Z |
# original problems
def easy_sum(a, b):
"""Takes two numbers and returns their sum"""
return a + b
def easy_product(a, b):
"""Takes two numbers and returns their product"""
return a * b
def easy_concat(a, b):
"""Takes two strings and returns their concatenation"""
return a + b
def easy_empty... | 30 | 173 | 0.66383 | 236 | 1,410 | 3.919492 | 0.338983 | 0.083243 | 0.037838 | 0.043243 | 0.247568 | 0.166486 | 0.144865 | 0.144865 | 0 | 0 | 0 | 0.016544 | 0.228369 | 1,410 | 46 | 174 | 30.652174 | 0.83364 | 0.568794 | 0 | 0.086957 | 0 | 0 | 0.102349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.478261 | false | 0 | 0 | 0 | 0.956522 | 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 |
eb5a9418501c2901672aa9f163fdc2b0ebe0e845 | 1,032 | py | Python | src/telliot_core/queries/snapshot.py | tellor-io/telliot-core | e2b6cb3486e1aa796bd4d14147bd18d300191492 | [
"MIT"
] | 9 | 2021-12-15T07:03:34.000Z | 2022-03-30T20:16:45.000Z | src/telliot_core/queries/snapshot.py | tellor-io/telliot-core | e2b6cb3486e1aa796bd4d14147bd18d300191492 | [
"MIT"
] | 76 | 2021-11-11T10:06:11.000Z | 2022-03-30T18:50:48.000Z | src/telliot_core/queries/snapshot.py | tellor-io/telliot-core | e2b6cb3486e1aa796bd4d14147bd18d300191492 | [
"MIT"
] | 7 | 2021-12-17T03:39:23.000Z | 2022-03-29T08:53:43.000Z | import logging
from dataclasses import dataclass
from telliot_core.dtypes.value_type import ValueType
from telliot_core.queries.abi_query import AbiQuery
logger = logging.getLogger(__name__)
@dataclass
class Snapshot(AbiQuery):
"""Returns the result for a given option ID (a specific proposal) on Snapshot.
... | 28.666667 | 107 | 0.694767 | 133 | 1,032 | 5.293233 | 0.578947 | 0.042614 | 0.042614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013682 | 0.22093 | 1,032 | 35 | 108 | 29.485714 | 0.86194 | 0.510659 | 0 | 0 | 0 | 0 | 0.076577 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
eb6802390641aaf06fceb753f88bd100dfda7697 | 2,162 | py | Python | rally/plugins/openstack/scenarios/zaqar/utils.py | varuntiwari27/rally | 948fba0e8fe8214dd3716451d2a52e014a4115be | [
"Apache-2.0"
] | 1 | 2018-01-01T00:43:41.000Z | 2018-01-01T00:43:41.000Z | rally/plugins/openstack/scenarios/zaqar/utils.py | noah8713/rally-ovs | 2434787c2cf4ca267108966c4ddc55ded3c333d9 | [
"Apache-2.0"
] | 1 | 2020-07-14T11:29:31.000Z | 2020-07-14T11:29:31.000Z | rally/plugins/openstack/scenarios/zaqar/utils.py | noah8713/rally-ovs | 2434787c2cf4ca267108966c4ddc55ded3c333d9 | [
"Apache-2.0"
] | 1 | 2020-06-05T10:06:37.000Z | 2020-06-05T10:06:37.000Z | # Copyright (c) 2014 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 34.31746 | 79 | 0.672525 | 282 | 2,162 | 5.039007 | 0.432624 | 0.042224 | 0.03589 | 0.046446 | 0.078818 | 0.078818 | 0.042224 | 0 | 0 | 0 | 0 | 0.004887 | 0.242831 | 2,162 | 62 | 80 | 34.870968 | 0.863164 | 0.534228 | 0 | 0 | 0 | 0 | 0.113716 | 0.043376 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.117647 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
eb7438a64c922f1691f5f7bc0e7e1d03e74aaef5 | 1,705 | py | Python | tests/pricehunt_test.py | adipid/pricehunt-py | 095e29f14a4761644b5e35df6c7ca4416eb62331 | [
"MIT"
] | null | null | null | tests/pricehunt_test.py | adipid/pricehunt-py | 095e29f14a4761644b5e35df6c7ca4416eb62331 | [
"MIT"
] | 10 | 2020-01-15T09:29:11.000Z | 2020-05-22T16:40:27.000Z | tests/pricehunt_test.py | adipid/pricehunt-py | 095e29f14a4761644b5e35df6c7ca4416eb62331 | [
"MIT"
] | null | null | null | import json
import os
import unittest
import price_checker
from product import Product
def load_json(filename):
with open(filename) as json_file:
imported_file = json.load(json_file)
return imported_file
cwd = os.path.dirname(os.path.realpath(__file__))
products_data = load_json(r"" + cwd + "/t... | 27.063492 | 101 | 0.693842 | 223 | 1,705 | 5.022422 | 0.363229 | 0.06875 | 0.067857 | 0.058929 | 0.207143 | 0.117857 | 0.071429 | 0 | 0 | 0 | 0 | 0.02106 | 0.192375 | 1,705 | 62 | 102 | 27.5 | 0.792302 | 0.076833 | 0 | 0 | 0 | 0 | 0.086901 | 0 | 0 | 0 | 0 | 0 | 0.228571 | 1 | 0.285714 | false | 0 | 0.2 | 0 | 0.542857 | 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 |
eb80f35fa4930ec027c824efa7f754f7ff93b76c | 251 | py | Python | m2py/thermo/__init__.py | caiorss/m2py | 4a8f754f04adb151b1967fe13b8f80b4ec169560 | [
"BSD-3-Clause"
] | 13 | 2016-12-10T22:03:18.000Z | 2021-11-27T11:55:41.000Z | m2py/thermo/__init__.py | caiorss/m2py | 4a8f754f04adb151b1967fe13b8f80b4ec169560 | [
"BSD-3-Clause"
] | null | null | null | m2py/thermo/__init__.py | caiorss/m2py | 4a8f754f04adb151b1967fe13b8f80b4ec169560 | [
"BSD-3-Clause"
] | 3 | 2017-04-02T00:21:24.000Z | 2021-08-19T14:11:23.000Z | """
Thermodynamic function collection
* Steam tables - module steam
"""
import os
import sys
this = os.path.dirname(os.path.abspath(__file__))
path_dir = os.path.join(this, "..")
sys.path.append(path_dir)
from . import xsteam
from . import gas | 16.733333 | 49 | 0.717131 | 36 | 251 | 4.833333 | 0.555556 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151394 | 251 | 15 | 50 | 16.733333 | 0.816901 | 0.270916 | 0 | 0 | 0 | 0 | 0.011429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
eb8fa34f6b204cef1701b2e9f71c854c05d7f905 | 2,098 | py | Python | Chapter08/lecture02.py | ee06b056/IntoToProgramInPython | 86f81bb61832ebf043c5f79f6e6262ecee36e02f | [
"MIT"
] | null | null | null | Chapter08/lecture02.py | ee06b056/IntoToProgramInPython | 86f81bb61832ebf043c5f79f6e6262ecee36e02f | [
"MIT"
] | null | null | null | Chapter08/lecture02.py | ee06b056/IntoToProgramInPython | 86f81bb61832ebf043c5f79f6e6262ecee36e02f | [
"MIT"
] | null | null | null | import datetime
class Person(object):
def __init__(self, name):
self.name = name
try:
lastBlank = name.rindex(' ')
self.lastName = name[lastBlank+1:]
except:
self.lastName = name
self.birthday = None
def getName(self):
return sel... | 21.191919 | 59 | 0.613441 | 246 | 2,098 | 5.052846 | 0.313008 | 0.070796 | 0.067578 | 0.04827 | 0.072405 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018979 | 0.271687 | 2,098 | 99 | 60 | 21.191919 | 0.794503 | 0 | 0 | 0.144928 | 0 | 0 | 0.038113 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0.028986 | 0.014493 | 0.101449 | 0.492754 | 0.086957 | 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 |
ebb01965890ba34194c2cbeef67583eacd7e6263 | 132 | py | Python | block_2/task_3.py | erdyneevzt/stepik_python | 014fb618426dbee7f76b317c539d7d0363c87d15 | [
"MIT"
] | null | null | null | block_2/task_3.py | erdyneevzt/stepik_python | 014fb618426dbee7f76b317c539d7d0363c87d15 | [
"MIT"
] | null | null | null | block_2/task_3.py | erdyneevzt/stepik_python | 014fb618426dbee7f76b317c539d7d0363c87d15 | [
"MIT"
] | null | null | null | i = 1
while i != 0:
i = int(input())
if i > 100:
break
elif i < 10:
continue
else:
print(i)
| 13.2 | 20 | 0.409091 | 19 | 132 | 2.842105 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.469697 | 132 | 9 | 21 | 14.666667 | 0.671429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 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 |
ebc1fde7f5eab4850e52e3032a953a70b9dcfd1e | 161 | py | Python | Python/1170.py | alinemarchiori/URI_Exercises_Solved | 957681174207388fdb54d6d1a945303ba1ad18f3 | [
"MIT"
] | null | null | null | Python/1170.py | alinemarchiori/URI_Exercises_Solved | 957681174207388fdb54d6d1a945303ba1ad18f3 | [
"MIT"
] | null | null | null | Python/1170.py | alinemarchiori/URI_Exercises_Solved | 957681174207388fdb54d6d1a945303ba1ad18f3 | [
"MIT"
] | null | null | null | n = int(input())
for i in range(n):
dias = 0
valor = float(input())
while valor>1:
valor = valor/2
dias += 1
print(dias, "dias") | 20.125 | 26 | 0.503106 | 24 | 161 | 3.375 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0.341615 | 161 | 8 | 27 | 20.125 | 0.726415 | 0 | 0 | 0 | 0 | 0 | 0.024691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 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 |
ebcfcb17f63d054cbc04f8aa3f5d779478dc0425 | 1,486 | py | Python | plastiqpublicapi/models/client_secrets_response.py | jeffkynaston/sdk-spike-python-apimatic | e1ca52116aabfcdb2f36c24ebd866cf00bb5c6c9 | [
"MIT"
] | null | null | null | plastiqpublicapi/models/client_secrets_response.py | jeffkynaston/sdk-spike-python-apimatic | e1ca52116aabfcdb2f36c24ebd866cf00bb5c6c9 | [
"MIT"
] | null | null | null | plastiqpublicapi/models/client_secrets_response.py | jeffkynaston/sdk-spike-python-apimatic | e1ca52116aabfcdb2f36c24ebd866cf00bb5c6c9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
plastiqpublicapi
This file was automatically generated by APIMATIC v3.0 (
https://www.apimatic.io ).
"""
class ClientSecretsResponse(object):
"""Implementation of the 'Client Secrets Response' model.
TODO: type model description here.
Attributes:
... | 26.535714 | 79 | 0.612382 | 156 | 1,486 | 5.75 | 0.487179 | 0.107023 | 0.035674 | 0.035674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002973 | 0.320996 | 1,486 | 55 | 80 | 27.018182 | 0.886026 | 0.559892 | 0 | 0 | 1 | 0 | 0.074597 | 0 | 0 | 0 | 0 | 0.018182 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
690f41b1ee6bc246782b5ae649ded26264526d14 | 297 | py | Python | pipy/tests/test_utils.py | rhsmits91/pipy | b38100203711fad715078a00c6074ea63af06893 | [
"MIT"
] | null | null | null | pipy/tests/test_utils.py | rhsmits91/pipy | b38100203711fad715078a00c6074ea63af06893 | [
"MIT"
] | null | null | null | pipy/tests/test_utils.py | rhsmits91/pipy | b38100203711fad715078a00c6074ea63af06893 | [
"MIT"
] | null | null | null | import pandas as pd
from pipy.pipeline.utils import combine_series
def test_combine_series():
s1 = pd.Series(dict(zip("AB", (1, 2))))
s2 = pd.Series(dict(zip("BC", (20, 30))))
s3 = combine_series(s1, s2)
pd.testing.assert_series_equal(s3, pd.Series({"A": 1, "B": 20, "C": 30}))
| 27 | 77 | 0.636364 | 50 | 297 | 3.66 | 0.58 | 0.213115 | 0.163934 | 0.163934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068826 | 0.16835 | 297 | 10 | 78 | 29.7 | 0.672065 | 0 | 0 | 0 | 0 | 0 | 0.023569 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6915b8ff7cef6d50399ffe88a65761306ce6129d | 6,310 | py | Python | cephlm/tests/cephmetrics/ceph/test_connectivity_status.py | ArdanaCLM/cephlm | 74afbcd078c0c903d9b8102d27c669decb124a38 | [
"Apache-2.0"
] | null | null | null | cephlm/tests/cephmetrics/ceph/test_connectivity_status.py | ArdanaCLM/cephlm | 74afbcd078c0c903d9b8102d27c669decb124a38 | [
"Apache-2.0"
] | null | null | null | cephlm/tests/cephmetrics/ceph/test_connectivity_status.py | ArdanaCLM/cephlm | 74afbcd078c0c903d9b8102d27c669decb124a38 | [
"Apache-2.0"
] | null | null | null | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017 SUSE LLC
#
# 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
#
#... | 41.788079 | 79 | 0.640571 | 721 | 6,310 | 5.359223 | 0.226075 | 0.061594 | 0.059783 | 0.067288 | 0.729814 | 0.704451 | 0.670807 | 0.670807 | 0.670807 | 0.659161 | 0 | 0.007053 | 0.258479 | 6,310 | 150 | 80 | 42.066667 | 0.818765 | 0.09683 | 0 | 0.609091 | 0 | 0 | 0.146603 | 0.102077 | 0 | 0 | 0 | 0 | 0.127273 | 1 | 0.181818 | false | 0.018182 | 0.063636 | 0.072727 | 0.372727 | 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 |
692623edabe9f0e78683e1958531eb7c61cfa0f0 | 25,868 | py | Python | src/mightypy/ml/_tree.py | NishantBaheti/mightypy | 8219ae5cfc462e02f04bec6bdd7e3751b57d2a25 | [
"MIT"
] | 1 | 2022-02-03T19:32:45.000Z | 2022-02-03T19:32:45.000Z | src/mightypy/ml/_tree.py | NishantBaheti/mightypy | 8219ae5cfc462e02f04bec6bdd7e3751b57d2a25 | [
"MIT"
] | null | null | null | src/mightypy/ml/_tree.py | NishantBaheti/mightypy | 8219ae5cfc462e02f04bec6bdd7e3751b57d2a25 | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import Union, Tuple, List
import warnings
import numpy as np
class Question:
"""Question is a thershold/matching concept for splitting the node of the Decision Tree
Args:
column_index (int): Column index to be chosen from the array passed at the matching... | 36.027855 | 177 | 0.57631 | 3,180 | 25,868 | 4.550314 | 0.089623 | 0.04727 | 0.01244 | 0.014927 | 0.750173 | 0.728749 | 0.693435 | 0.66047 | 0.624119 | 0.607256 | 0 | 0.005106 | 0.326117 | 25,868 | 717 | 178 | 36.078103 | 0.824977 | 0.33497 | 0 | 0.695925 | 0 | 0 | 0.026105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097179 | false | 0 | 0.012539 | 0 | 0.241379 | 0.047022 | 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 |
692c298ef0d7f8ede22958f68c573f616b9a3b6e | 1,443 | py | Python | tests/unitary/RewardStream/test_notify_reward_amount.py | AqualisDAO/curve-dao-contracts | beec73a068da8ed01c0f710939dc5adb776d565b | [
"MIT"
] | 217 | 2020-06-24T14:01:21.000Z | 2022-03-29T08:35:24.000Z | tests/unitary/RewardStream/test_notify_reward_amount.py | AqualisDAO/curve-dao-contracts | beec73a068da8ed01c0f710939dc5adb776d565b | [
"MIT"
] | 25 | 2020-06-24T09:39:02.000Z | 2022-03-22T17:03:00.000Z | tests/unitary/RewardStream/test_notify_reward_amount.py | AqualisDAO/curve-dao-contracts | beec73a068da8ed01c0f710939dc5adb776d565b | [
"MIT"
] | 110 | 2020-07-10T22:45:49.000Z | 2022-03-29T02:51:08.000Z | import math
import brownie
from brownie import chain
def test_only_distributor_allowed(alice, stream):
with brownie.reverts("dev: only distributor"):
stream.notify_reward_amount(10 ** 18, {"from": alice})
def test_retrieves_reward_token(bob, stream, reward_token):
stream.notify_reward_amount(10 ** ... | 29.44898 | 78 | 0.701317 | 207 | 1,443 | 4.647343 | 0.304348 | 0.045738 | 0.130977 | 0.174636 | 0.503119 | 0.426195 | 0.35343 | 0.269231 | 0.269231 | 0.269231 | 0 | 0.070826 | 0.178101 | 1,443 | 48 | 79 | 30.0625 | 0.740304 | 0.085239 | 0 | 0.259259 | 0 | 0 | 0.037234 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
693668c88af0cb09907a7eb439d49d83bf0f94fc | 253 | py | Python | libs/cGeo/setup.py | nodebox/nodebox-pyobjc | 31c7a95ca24fffdc8f4523278d4b68c330adea8e | [
"MIT"
] | 47 | 2015-03-14T01:44:09.000Z | 2021-11-10T10:28:14.000Z | libs/cGeo/setup.py | nodebox/nodebox-pyobjc | 31c7a95ca24fffdc8f4523278d4b68c330adea8e | [
"MIT"
] | 4 | 2015-08-20T20:02:32.000Z | 2021-02-10T18:39:11.000Z | libs/cGeo/setup.py | nodebox/nodebox-pyobjc | 31c7a95ca24fffdc8f4523278d4b68c330adea8e | [
"MIT"
] | 15 | 2015-03-14T01:44:00.000Z | 2020-12-17T16:44:31.000Z | from distutils.core import setup, Extension
cGeo = Extension("cGeo", sources = ["cGeo.c"])
setup (name = "cGeo",
version = "0.1",
author = "Tom De Smedt",
description = "Fast geometric functionality.",
ext_modules = [cGeo]) | 28.111111 | 53 | 0.616601 | 29 | 253 | 5.344828 | 0.793103 | 0.167742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010363 | 0.237154 | 253 | 9 | 54 | 28.111111 | 0.792746 | 0 | 0 | 0 | 0 | 0 | 0.228346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
6947511cb144cec2a642daef44489c9938624281 | 808 | py | Python | setup.py | ox-it/oxford-term-dates | 943a05236a8a4d6178594ae1775a34ef19e7fe16 | [
"AFL-3.0"
] | 2 | 2016-01-13T15:19:17.000Z | 2020-05-16T07:13:38.000Z | setup.py | ox-it/oxford-term-dates | 943a05236a8a4d6178594ae1775a34ef19e7fe16 | [
"AFL-3.0"
] | null | null | null | setup.py | ox-it/oxford-term-dates | 943a05236a8a4d6178594ae1775a34ef19e7fe16 | [
"AFL-3.0"
] | 1 | 2020-05-16T07:13:41.000Z | 2020-05-16T07:13:41.000Z | #!/usr/bin/env python
from distutils.core import setup
setup(name='oxford_term_dates',
version='1.3.0',
description='A Python library for translating between real dates and Oxford term dates',
author='IT Services, University of Oxford',
author_email='mobileoxford@it.ox.ac.uk',
url='https... | 35.130435 | 94 | 0.634901 | 90 | 808 | 5.622222 | 0.733333 | 0.098814 | 0.148221 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006441 | 0.231436 | 808 | 22 | 95 | 36.727273 | 0.808374 | 0.024752 | 0 | 0 | 0 | 0 | 0.617535 | 0.068615 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.052632 | 0 | 0.052632 | 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 |
6962e4354dc7f1a1758e3614363629af342522ee | 1,153 | py | Python | cpdb/data/migrations/0114_attachmentfile_add_fields.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 25 | 2018-07-20T22:31:40.000Z | 2021-07-15T16:58:41.000Z | cpdb/data/migrations/0114_attachmentfile_add_fields.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 13 | 2018-06-18T23:08:47.000Z | 2022-02-10T07:38:25.000Z | cpdb/data/migrations/0114_attachmentfile_add_fields.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 6 | 2018-05-17T21:59:43.000Z | 2020-11-17T00:30:26.000Z | # Generated by Django 2.1.3 on 2019-02-25 03:08
from django.db import migrations, models
from django.db import migrations, models
from django.conf import settings
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('data', '0113_attachmentfile_update_source_type'),
... | 28.121951 | 60 | 0.592368 | 110 | 1,153 | 6.072727 | 0.481818 | 0.047904 | 0.137725 | 0.161677 | 0.479042 | 0.479042 | 0.344311 | 0.344311 | 0.227545 | 0.227545 | 0 | 0.026382 | 0.309627 | 1,153 | 40 | 61 | 28.825 | 0.812814 | 0.039029 | 0 | 0.5 | 1 | 0 | 0.138336 | 0.034358 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.205882 | 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 |
15da9a3152e56c52f76684034993ef00a4445df4 | 696 | py | Python | cjax/continuation/methods/predictor/natural_predictor.py | harsh306/continuation-jax | c1452604558764df9cd4770130b60035eea5c5b3 | [
"MIT"
] | 2 | 2022-01-26T18:02:51.000Z | 2022-02-15T01:36:39.000Z | cjax/continuation/methods/predictor/natural_predictor.py | harsh306/continuation-jax | c1452604558764df9cd4770130b60035eea5c5b3 | [
"MIT"
] | null | null | null | cjax/continuation/methods/predictor/natural_predictor.py | harsh306/continuation-jax | c1452604558764df9cd4770130b60035eea5c5b3 | [
"MIT"
] | 1 | 2022-02-15T01:37:50.000Z | 2022-02-15T01:37:50.000Z | from cjax.continuation.methods.predictor.base_predictor import Predictor
from cjax.utils.math_trees import pytree_element_add
class NaturalPredictor(Predictor):
"""Natural Predictor only updates continuation parameter"""
def __init__(self, concat_states, delta_s):
super().__init__(concat_states)
... | 33.142857 | 81 | 0.715517 | 82 | 696 | 5.719512 | 0.487805 | 0.051173 | 0.06823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195402 | 696 | 20 | 82 | 34.8 | 0.8375 | 0.239943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
15e8686d5766af543463452560a9109ff4ea4229 | 489 | py | Python | contabilidad/users/models.py | R3SWebDevelopment/CreaLibreCanacintraMembership | afab16195bbc7f74417a07cf475b5165eee472cb | [
"MIT"
] | null | null | null | contabilidad/users/models.py | R3SWebDevelopment/CreaLibreCanacintraMembership | afab16195bbc7f74417a07cf475b5165eee472cb | [
"MIT"
] | null | null | null | contabilidad/users/models.py | R3SWebDevelopment/CreaLibreCanacintraMembership | afab16195bbc7f74417a07cf475b5165eee472cb | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.translation import ugettext as _
from django.contrib.postgres.fields import JSONField
from django.conf import settings
class Profile(models.Model):
mobile_number = JSONField(default={})
user = models.OneToOneField(
settings.AUTH_USER_MODEL,
on_del... | 30.5625 | 55 | 0.750511 | 60 | 489 | 5.95 | 0.6 | 0.112045 | 0.140056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167689 | 489 | 15 | 56 | 32.6 | 0.87715 | 0 | 0 | 0 | 0 | 0 | 0.014315 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
15fba4505460aa878e1ca0ea76de89ed1e91bacc | 1,062 | py | Python | mygit/commands/merge.py | 7Bpencil/mygit | 2eda11af904442b4a460a811af75a95c0845297f | [
"WTFPL"
] | null | null | null | mygit/commands/merge.py | 7Bpencil/mygit | 2eda11af904442b4a460a811af75a95c0845297f | [
"WTFPL"
] | null | null | null | mygit/commands/merge.py | 7Bpencil/mygit | 2eda11af904442b4a460a811af75a95c0845297f | [
"WTFPL"
] | null | null | null | import argparse
from textwrap import dedent
from mygit.state import State
from mygit.constants import Constants
from mygit.command import Command
from mygit.backend import merge
class Merge(Command):
def __init__(self, subparsers: argparse._SubParsersAction, commands_dict: dict):
command_description = ded... | 37.928571 | 93 | 0.661017 | 122 | 1,062 | 5.590164 | 0.434426 | 0.052786 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002581 | 0.270245 | 1,062 | 27 | 94 | 39.333333 | 0.877419 | 0 | 0 | 0 | 0 | 0 | 0.024217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
c603108c7c60eb0e0f9cc519512a6749aaa8ce08 | 4,115 | py | Python | intranet/settings.py | We-Are-One-CS/intranet | a96b566b82925fb5d9b809071f2d95a0ce687cf5 | [
"MIT"
] | 3 | 2020-02-28T21:08:22.000Z | 2020-09-09T14:14:28.000Z | intranet/settings.py | We-Are-One-CS/intranet | a96b566b82925fb5d9b809071f2d95a0ce687cf5 | [
"MIT"
] | 28 | 2020-02-11T09:22:32.000Z | 2020-06-05T07:05:23.000Z | intranet/settings.py | We-Are-One-CS/intranet | a96b566b82925fb5d9b809071f2d95a0ce687cf5 | [
"MIT"
] | null | null | null | """
Django settings for intranet project.
Generated by 'django-admin startproject' using Django 2.2.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | 27.433333 | 92 | 0.674119 | 459 | 4,115 | 5.936819 | 0.437909 | 0.07156 | 0.056514 | 0.06422 | 0.214679 | 0.190459 | 0.133211 | 0.097982 | 0.044037 | 0 | 0 | 0.017948 | 0.187606 | 4,115 | 150 | 93 | 27.433333 | 0.797188 | 0.282868 | 0 | 0.063158 | 1 | 0.010526 | 0.517961 | 0.375641 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.073684 | 0.010526 | 0 | 0.010526 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
c609af1653ba1996b5a66579c8a910d23126889e | 1,966 | py | Python | day06/mysql_tutorial.py | zhangyage/Python-jike | 069b1e7f0d18739c19f0980d2f88f99ed14b70b6 | [
"Apache-2.0"
] | null | null | null | day06/mysql_tutorial.py | zhangyage/Python-jike | 069b1e7f0d18739c19f0980d2f88f99ed14b70b6 | [
"Apache-2.0"
] | null | null | null | day06/mysql_tutorial.py | zhangyage/Python-jike | 069b1e7f0d18739c19f0980d2f88f99ed14b70b6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
'''
演示数据的插入操作
学习常见的连接操作mysql的方法
1、官方客户端mysql-connector使用
2、第三方客户端MySQLdb
3、MySQLdb的二次封装torndb使用
'''
from __future__ import print_function
sql = "insert into ipdata (startip,endip,loacl,country) values (16777123,16777324,'电信','青海省')"
sql_tmp = "insert into ipdata (startip,e... | 29.343284 | 134 | 0.685148 | 236 | 1,966 | 5.652542 | 0.470339 | 0.017991 | 0.022489 | 0.026987 | 0.235382 | 0.235382 | 0.235382 | 0.235382 | 0.166417 | 0.166417 | 0 | 0.082684 | 0.151068 | 1,966 | 66 | 135 | 29.787879 | 0.716597 | 0.119023 | 0 | 0 | 0 | 0.0625 | 0.23162 | 0.057254 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.125 | 0.15625 | null | null | 0.3125 | 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 |
c611ace71f06895258980da8c2f9da8383b4b256 | 280 | py | Python | Python/Strings/string_validators.py | isbendiyarovanezrin/HackerRankSolutions | 3e66ecab82b35e718e1bdd1b0c00d0aeb3b4569f | [
"MIT"
] | 2 | 2022-01-03T14:49:57.000Z | 2022-01-16T15:37:18.000Z | Python/Strings/string_validators.py | isbendiyarovanezrin/HackerRankSolutions | 3e66ecab82b35e718e1bdd1b0c00d0aeb3b4569f | [
"MIT"
] | null | null | null | Python/Strings/string_validators.py | isbendiyarovanezrin/HackerRankSolutions | 3e66ecab82b35e718e1bdd1b0c00d0aeb3b4569f | [
"MIT"
] | null | null | null | # Language: Python 3
if __name__ == '__main__':
s = input()
n = any(i.isalnum() for i in s)
a = any(i.isalpha() for i in s)
d = any(i.isdigit() for i in s)
l = any(i.islower() for i in s)
u = any(i.isupper() for i in s)
print(n, a, d, l, u, sep="\n") | 25.454545 | 35 | 0.528571 | 56 | 280 | 2.5 | 0.428571 | 0.142857 | 0.214286 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005025 | 0.289286 | 280 | 11 | 36 | 25.454545 | 0.698492 | 0.064286 | 0 | 0 | 0 | 0 | 0.038314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 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 |
c6218bc9f5911456f82cbd5199c0c02e8eeef895 | 382 | py | Python | incrowd/website/urls.py | incrowdio/incrowd | 711e99c55b9da815af7749a2930d4184e235fa68 | [
"Apache-2.0"
] | 4 | 2015-03-10T04:24:07.000Z | 2016-09-18T16:41:12.000Z | incrowd/website/urls.py | incrowdio/incrowd | 711e99c55b9da815af7749a2930d4184e235fa68 | [
"Apache-2.0"
] | 27 | 2015-01-03T09:52:50.000Z | 2021-06-10T20:37:08.000Z | incrowd/website/urls.py | incrowdio/incrowd | 711e99c55b9da815af7749a2930d4184e235fa68 | [
"Apache-2.0"
] | 2 | 2015-09-07T21:06:51.000Z | 2016-03-10T11:31:57.000Z | from rest_framework import routers
from website.api import UserViewSet, PostViewSet, CommentViewSet, \
CategoryViewSet, CrowdViewSet
router = routers.SimpleRouter()
router.register(r'users', UserViewSet)
router.register(r'posts', PostViewSet)
router.register(r'categories', CategoryViewSet)
router.register(r'commen... | 34.727273 | 67 | 0.814136 | 42 | 382 | 7.380952 | 0.5 | 0.225806 | 0.241935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081152 | 382 | 10 | 68 | 38.2 | 0.883191 | 0 | 0 | 0 | 0 | 0 | 0.089005 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c627f42ed3e1bf273973cce42e035177374b5114 | 3,158 | py | Python | ooobuild/lo/sdb/result_column.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/sdb/result_column.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/sdb/result_column.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http: // www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 27.701754 | 184 | 0.651678 | 383 | 3,158 | 5.281984 | 0.472585 | 0.112704 | 0.05042 | 0.059318 | 0.091943 | 0.050914 | 0.023727 | 0 | 0 | 0 | 0 | 0.014976 | 0.259975 | 3,158 | 113 | 185 | 27.946903 | 0.850663 | 0.513616 | 0 | 0.375 | 0 | 0 | 0.052805 | 0.023927 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.09375 | 0 | 0.59375 | 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 |
c62ebe90410af38a0fd3d10d4dea8a8ef9dad58b | 902 | py | Python | psx/_dump_/28/_dump_ida_/overlay_3/set_funcs.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 15 | 2018-06-28T01:11:25.000Z | 2021-09-27T15:57:18.000Z | psx/_dump_/28/_dump_ida_/overlay_3/set_funcs.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-29T04:08:23.000Z | 2019-10-17T13:57:22.000Z | psx/_dump_/28/_dump_ida_/overlay_3/set_funcs.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-28T01:11:34.000Z | 2020-05-23T09:21:48.000Z | del_items(0x800A0E8C)
SetType(0x800A0E8C, "void VID_OpenModule__Fv()")
del_items(0x800A0F4C)
SetType(0x800A0F4C, "void InitScreens__Fv()")
del_items(0x800A103C)
SetType(0x800A103C, "void MEM_SetupMem__Fv()")
del_items(0x800A1068)
SetType(0x800A1068, "void SetupWorkRam__Fv()")
del_items(0x800A10F8)
SetType(0x800A10F8, "... | 33.407407 | 72 | 0.805987 | 117 | 902 | 5.803419 | 0.333333 | 0.153166 | 0.162003 | 0.123711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222877 | 0.059867 | 902 | 26 | 73 | 34.692308 | 0.57783 | 0 | 0 | 0 | 0 | 0 | 0.337029 | 0.029933 | 0 | 0 | 0.288248 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c63cbc7a7f3580c129f4752ad0bd37f38f7fd932 | 2,044 | py | Python | backend/takeout/admin/views.py | BillBillBillBill/laughing-garbanzo | 27c66dcc4f0e045ae060255679a2aa68c0f744d2 | [
"MIT"
] | 15 | 2016-08-03T08:11:36.000Z | 2022-03-24T03:21:06.000Z | backend/takeout/admin/views.py | BillBillBillBill/laughing-garbanzo | 27c66dcc4f0e045ae060255679a2aa68c0f744d2 | [
"MIT"
] | null | null | null | backend/takeout/admin/views.py | BillBillBillBill/laughing-garbanzo | 27c66dcc4f0e045ae060255679a2aa68c0f744d2 | [
"MIT"
] | 7 | 2016-08-03T08:11:38.000Z | 2020-12-27T08:49:10.000Z | # coding: utf-8
from rest_framework.views import APIView
from models.admin import Admin
from lib.utils.response import JsonResponse, JsonErrorResponse
from lib.utils.misc import get_update_dict_by_list
from lib.utils.token_tools import get_token
class AdminList(APIView):
def get(self, request):
# 获取管理员列表
... | 34.644068 | 98 | 0.629648 | 232 | 2,044 | 5.392241 | 0.331897 | 0.052758 | 0.044764 | 0.023981 | 0.1247 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007363 | 0.26908 | 2,044 | 58 | 99 | 35.241379 | 0.829987 | 0.016634 | 0 | 0.042553 | 0 | 0 | 0.088822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.12766 | 0.106383 | null | null | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
c64f1dc22175bdb827ddb012fc48215e9e45a903 | 1,719 | py | Python | ondewo/t2s/client/services/text_to_speech.py | ondewo/ondewo-t2s-client-python | c580c934c7e0e703f81bbddeee3831919fd5f0a2 | [
"Apache-2.0"
] | null | null | null | ondewo/t2s/client/services/text_to_speech.py | ondewo/ondewo-t2s-client-python | c580c934c7e0e703f81bbddeee3831919fd5f0a2 | [
"Apache-2.0"
] | null | null | null | ondewo/t2s/client/services/text_to_speech.py | ondewo/ondewo-t2s-client-python | c580c934c7e0e703f81bbddeee3831919fd5f0a2 | [
"Apache-2.0"
] | null | null | null | from google.protobuf.empty_pb2 import Empty
from ondewo.utils.base_services_interface import BaseServicesInterface
from ondewo.t2s.text_to_speech_pb2 import (
ListT2sPipelinesRequest,
ListT2sPipelinesResponse,
SynthesizeRequest,
SynthesizeResponse,
T2sPipelineId,
Text2SpeechConfig,
)
from ondew... | 34.38 | 95 | 0.745782 | 167 | 1,719 | 7.538922 | 0.347305 | 0.052423 | 0.100079 | 0.095314 | 0.203336 | 0.04448 | 0.04448 | 0 | 0 | 0 | 0 | 0.02641 | 0.184991 | 1,719 | 49 | 96 | 35.081633 | 0.872234 | 0.052356 | 0 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0 | 0.117647 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
c6590aaf2d2dffbad1dc3622668b97cfa3f432d8 | 834 | py | Python | notebooks/src/code/__init__.py | verdimrc/amazon-textract-transformer-pipeline | f3ae99ec3b8808d9edf7bc5ac003494cf1548293 | [
"MIT-0"
] | 22 | 2021-11-10T17:16:10.000Z | 2022-03-31T19:39:50.000Z | notebooks/src/code/__init__.py | verdimrc/amazon-textract-transformer-pipeline | f3ae99ec3b8808d9edf7bc5ac003494cf1548293 | [
"MIT-0"
] | 4 | 2021-11-03T03:45:51.000Z | 2022-01-28T03:30:57.000Z | notebooks/src/code/__init__.py | verdimrc/amazon-textract-transformer-pipeline | f3ae99ec3b8808d9edf7bc5ac003494cf1548293 | [
"MIT-0"
] | 4 | 2021-12-14T22:41:40.000Z | 2022-02-04T15:30:10.000Z | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
"""Amazon Textract + LayoutLM model training and inference code package for SageMaker
Why the extra level of nesting? Because the src folder (even if __init__ is present) is not loaded
as a Python module during traini... | 55.6 | 98 | 0.780576 | 134 | 834 | 4.828358 | 0.679104 | 0.049459 | 0.027821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001435 | 0.164269 | 834 | 14 | 99 | 59.571429 | 0.926829 | 0.986811 | 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 |
d66ac9bbed52cc97398c2e00fdb14a0c9b408fc1 | 8,428 | py | Python | smartlingApiSdk/api/EstimatesApi.py | Smartling/api-sdk-python | 85e937c3ad0abcf5022688a476ac2edb34ab33ac | [
"Apache-2.0"
] | 8 | 2015-01-08T21:31:17.000Z | 2021-01-07T07:50:31.000Z | smartlingApiSdk/api/EstimatesApi.py | Smartling/api-sdk-python | 85e937c3ad0abcf5022688a476ac2edb34ab33ac | [
"Apache-2.0"
] | 8 | 2015-05-18T21:43:03.000Z | 2020-05-19T06:12:17.000Z | smartlingApiSdk/api/EstimatesApi.py | Smartling/api-sdk-python | 85e937c3ad0abcf5022688a476ac2edb34ab33ac | [
"Apache-2.0"
] | 14 | 2015-07-24T08:52:27.000Z | 2022-03-05T06:36:45.000Z |
#!/usr/bin/python
# -*- coding: utf-8 -*-
""" Copyright 2012-2021 Smartling, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this work except in compliance with the License.
* You may obtain a copy of the License in the LICENSE file, or at:
*
* http://www.apache.org/l... | 41.722772 | 218 | 0.621262 | 746 | 8,428 | 7.008043 | 0.197051 | 0.041316 | 0.048202 | 0.075746 | 0.73508 | 0.722265 | 0.682862 | 0.682862 | 0.666029 | 0.647666 | 0 | 0.010553 | 0.25795 | 8,428 | 201 | 219 | 41.930348 | 0.825392 | 0.295088 | 0 | 0.690722 | 0 | 0 | 0.186534 | 0.128552 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103093 | false | 0 | 0.010309 | 0 | 0.216495 | 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 |
d675f6f9d4cc85cb82ade7351a4c882f764248ac | 494 | py | Python | Python 基础教程/1.5.7 lamda应用.py | shao1chuan/pythonbook | cd9877d04e1e11422d38cc051e368d3d9ce2ab45 | [
"MulanPSL-1.0"
] | 95 | 2020-10-11T04:45:46.000Z | 2022-02-25T01:50:40.000Z | Python 基础教程/1.5.7 lamda应用.py | shao1chuan/pythonbook | cd9877d04e1e11422d38cc051e368d3d9ce2ab45 | [
"MulanPSL-1.0"
] | null | null | null | Python 基础教程/1.5.7 lamda应用.py | shao1chuan/pythonbook | cd9877d04e1e11422d38cc051e368d3d9ce2ab45 | [
"MulanPSL-1.0"
] | 30 | 2020-11-05T09:01:00.000Z | 2022-03-08T05:58:55.000Z | # https://blog.csdn.net/zjuxsl/article/details/77104382
# 一、lambda函数也叫匿名函数,即,函数没有具体的名称。先来看一个最简单例子:
def f(x):
return x**2
print(f(4))
# Python中使用lambda的话,写成这样
g = lambda x : x**2
print (g(4))
# lambda语句中,冒号前是参数,可以有多个,用逗号隔开,冒号右边的返回值。
# lambda语句构建的其实是一个函数对象
from functools import reduce
reduce(lambda x,y:x+y, [1,2,3]) ... | 18.296296 | 55 | 0.661943 | 91 | 494 | 3.593407 | 0.461538 | 0.055046 | 0.159021 | 0.171254 | 0.180428 | 0.134557 | 0.110092 | 0.110092 | 0 | 0 | 0 | 0.057279 | 0.151822 | 494 | 26 | 56 | 19 | 0.72315 | 0.376518 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0.166667 | 0.416667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
d686499fa79e594e85a706dad4ff13ce847aaa79 | 88 | py | Python | obliv/__init__.py | dsroche/obliv | 7a7c72e7dcc05d9a30656a501a952d722027dbc3 | [
"Unlicense"
] | 2 | 2020-11-21T00:18:12.000Z | 2020-11-24T02:20:17.000Z | obliv/__init__.py | dsroche/obliv | 7a7c72e7dcc05d9a30656a501a952d722027dbc3 | [
"Unlicense"
] | null | null | null | obliv/__init__.py | dsroche/obliv | 7a7c72e7dcc05d9a30656a501a952d722027dbc3 | [
"Unlicense"
] | null | null | null | __all__ = ["hirb", "voram", "skipstash", "fstore", "mt_ssh_store", "ssh_info", "idstr"]
| 44 | 87 | 0.636364 | 11 | 88 | 4.454545 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102273 | 88 | 1 | 88 | 88 | 0.620253 | 0 | 0 | 0 | 0 | 0 | 0.556818 | 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 |
d6889b61554d788bc43d1d4a886ba1e6ea609e32 | 348 | py | Python | tests/test_graph.py | ssube/redesigned-barnacle | 314ea415b6f725c798cc97d6e619fbedc7f8bd21 | [
"MIT"
] | null | null | null | tests/test_graph.py | ssube/redesigned-barnacle | 314ea415b6f725c798cc97d6e619fbedc7f8bd21 | [
"MIT"
] | 1 | 2021-11-04T16:00:15.000Z | 2021-11-04T16:00:15.000Z | tests/test_graph.py | ssube/redesigned-barnacle | 314ea415b6f725c798cc97d6e619fbedc7f8bd21 | [
"MIT"
] | null | null | null | from redesigned_barnacle.buffer import CircularBuffer
from redesigned_barnacle.graph import Sparkline
from redesigned_barnacle.mock import MockFramebuffer
from unittest import TestCase
class SparkTest(TestCase):
def test_line(self):
buf = CircularBuffer()
sl = Sparkline(32, 64, buf)
sl.push(16)
sl.d... | 29 | 53 | 0.775862 | 44 | 348 | 6.045455 | 0.590909 | 0.157895 | 0.24812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026936 | 0.146552 | 348 | 12 | 54 | 29 | 0.868687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.6 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
d692c63662549a5451cd5f10534438beadbf49d1 | 401 | py | Python | programs/pgm07_23.py | danielsunzhongyuan/python_practice | 79bc88db1c52ee2f5607f6f9fec1bbacea2804ff | [
"Apache-2.0"
] | null | null | null | programs/pgm07_23.py | danielsunzhongyuan/python_practice | 79bc88db1c52ee2f5607f6f9fec1bbacea2804ff | [
"Apache-2.0"
] | null | null | null | programs/pgm07_23.py | danielsunzhongyuan/python_practice | 79bc88db1c52ee2f5607f6f9fec1bbacea2804ff | [
"Apache-2.0"
] | null | null | null | #
# This file contains the Python code from Program 7.23 of
# "Data Structures and Algorithms
# with Object-Oriented Design Patterns in Python"
# by Bruno R. Preiss.
#
# Copyright (c) 2003 by Bruno R. Preiss, P.Eng. All rights reserved.
#
# http://www.brpreiss.com/books/opus7/programs/pgm07_23.txt
#
class SortedList(O... | 26.733333 | 69 | 0.723192 | 58 | 401 | 4.844828 | 0.844828 | 0.049822 | 0.05694 | 0.099644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035821 | 0.164589 | 401 | 14 | 70 | 28.642857 | 0.802985 | 0.700748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 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 |
d6b2d831c8279558598bc5824ede22c12a555e25 | 16,204 | py | Python | STED_analysis/pixel_detect.py | zhaoaite/dynamic_thresholding_algorithm | adcdfc7970098ab78c83d9aa86333f0a38d30bbb | [
"MIT"
] | 3 | 2021-09-23T03:25:09.000Z | 2022-03-11T15:23:18.000Z | STED_analysis/pixel_detect.py | zhaoaite/dynamic_thresholding_algorithm | adcdfc7970098ab78c83d9aa86333f0a38d30bbb | [
"MIT"
] | null | null | null | STED_analysis/pixel_detect.py | zhaoaite/dynamic_thresholding_algorithm | adcdfc7970098ab78c83d9aa86333f0a38d30bbb | [
"MIT"
] | null | null | null | import cv2
import numpy as np
from matplotlib import pyplot as plt
import os
from scipy.stats.stats import pearsonr
def getColors(n):
colors = np.zeros((n, 3))
colors[:, 0] = np.random.permutation(np.linspace(0, 256, n))
colors[:, 1] = np.random.permutation(colors[:, 0])
colors[:, 2] = np.random.perm... | 39.715686 | 206 | 0.593989 | 2,494 | 16,204 | 3.669206 | 0.080593 | 0.032783 | 0.055295 | 0.028849 | 0.780789 | 0.702874 | 0.656868 | 0.639056 | 0.632062 | 0.623866 | 0 | 0.070219 | 0.223957 | 16,204 | 408 | 207 | 39.715686 | 0.657495 | 0.243397 | 0 | 0.470588 | 0 | 0 | 0.066968 | 0.029545 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021008 | false | 0 | 0.021008 | 0 | 0.063025 | 0.033613 | 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 |
d6ba53ff8f8d9a8c5b5c3fb8bddc1c05b58ae2e9 | 1,392 | py | Python | Fund.py | jacobgarder/FundInfo-Python | 43cdd60454342f1592f4a748616d270d9707c042 | [
"MIT"
] | null | null | null | Fund.py | jacobgarder/FundInfo-Python | 43cdd60454342f1592f4a748616d270d9707c042 | [
"MIT"
] | null | null | null | Fund.py | jacobgarder/FundInfo-Python | 43cdd60454342f1592f4a748616d270d9707c042 | [
"MIT"
] | null | null | null | from TAA import TAA
class Fund:
def __init__(self, id, name):
self.id = id
self.name = name
self.NAV = TAA.getNAV(id)
self.MA6 = TAA.getMA(id, 120)
self.MA10 = TAA.getMA(id, 200)
self.oneMonth = TAA.getChangePercent(id, "month")
self.threeMonths = TAA.getCh... | 38.666667 | 112 | 0.576149 | 176 | 1,392 | 4.522727 | 0.267045 | 0.040201 | 0.052764 | 0.070352 | 0.241206 | 0.188442 | 0.188442 | 0.168342 | 0.040201 | 0.040201 | 0 | 0.086223 | 0.233477 | 1,392 | 35 | 113 | 39.771429 | 0.659794 | 0 | 0 | 0 | 0 | 0.074074 | 0.16954 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.037037 | 0.185185 | 0.481481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
d6d2f07be18b317e54e8f317ec95c5951fca8af6 | 747 | py | Python | import_files.py | ravielakshmanan/arcgis | 678abffe99ef82a5a836573835b8662fe05ac43f | [
"MIT"
] | null | null | null | import_files.py | ravielakshmanan/arcgis | 678abffe99ef82a5a836573835b8662fe05ac43f | [
"MIT"
] | null | null | null | import_files.py | ravielakshmanan/arcgis | 678abffe99ef82a5a836573835b8662fe05ac43f | [
"MIT"
] | null | null | null | from google.cloud import storage
import os
client = storage.Client()
bucket = client.get_bucket('noah-water.appspot.com')
blobs = bucket.list_blobs(prefix='trends3/Part6')
os.system("gsutil acl ch -u qqbi676scrf4nlgyg6e3hqrm6e@speckle-umbrella-16.iam.gserviceaccount.com:W gs://noah-water.appspot.com")
for blob in ... | 39.315789 | 153 | 0.776439 | 110 | 747 | 5.154545 | 0.454545 | 0.063492 | 0.112875 | 0.134039 | 0.407407 | 0.37037 | 0.37037 | 0.268078 | 0.268078 | 0.268078 | 0 | 0.029455 | 0.091031 | 747 | 19 | 154 | 39.315789 | 0.805596 | 0.053548 | 0 | 0 | 0 | 0.166667 | 0.551773 | 0.424113 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.083333 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
d6dc7e9dfb30c4748a187db0ff762043935ab521 | 1,270 | py | Python | shims/SeeedStudios/grove_py/counterfit_shims_grove/grove_relay.py | CallumTarttelin/CounterFit | 0f8b2ad8a884339857979dce6aa6dccc9644756b | [
"MIT"
] | 86 | 2021-03-25T22:01:37.000Z | 2022-03-29T19:09:58.000Z | shims/SeeedStudios/grove_py/counterfit_shims_grove/grove_relay.py | CallumTarttelin/CounterFit | 0f8b2ad8a884339857979dce6aa6dccc9644756b | [
"MIT"
] | 13 | 2021-03-25T22:00:31.000Z | 2022-03-30T17:59:06.000Z | shims/SeeedStudios/grove_py/counterfit_shims_grove/grove_relay.py | CallumTarttelin/CounterFit | 0f8b2ad8a884339857979dce6aa6dccc9644756b | [
"MIT"
] | 43 | 2021-07-11T04:12:15.000Z | 2022-03-22T01:42:23.000Z | '''
This is the code for
- `Grove - Relay <https://www.seeedstudio.com/s/Grove-Relay-p-769.html>`_
Examples:
.. code-block:: python
import time
from counterfit_connection import CounterFitConnection
from counterfit_shims_grove.grove_relay import GroveRelay
# Init the connecti... | 23.518519 | 77 | 0.607874 | 146 | 1,270 | 5.109589 | 0.472603 | 0.053619 | 0.034853 | 0.080429 | 0.284182 | 0.150134 | 0.150134 | 0.150134 | 0.150134 | 0 | 0 | 0.020045 | 0.292913 | 1,270 | 53 | 78 | 23.962264 | 0.81069 | 0.630709 | 0 | 0 | 0 | 0 | 0.025575 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | 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 |
ba53b3a64c0803deb7410b156a56759bff266edf | 999 | py | Python | link/items.py | KiriKira/LinkSpider | a832e2eaac39f31735664eb1c0ddc1de79fa887d | [
"Apache-2.0"
] | 1 | 2018-04-05T06:11:00.000Z | 2018-04-05T06:11:00.000Z | link/items.py | KiriKira/LinkSpider | a832e2eaac39f31735664eb1c0ddc1de79fa887d | [
"Apache-2.0"
] | null | null | null | link/items.py | KiriKira/LinkSpider | a832e2eaac39f31735664eb1c0ddc1de79fa887d | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class IndexItem(scrapy.Item):
tag_qiangdan = scrapy.Field()
class DetailItem(scrapy.Item):
tag = scrapy.Field()
pinlei = scrapy.Field()
... | 24.975 | 52 | 0.65966 | 113 | 999 | 5.787611 | 0.469027 | 0.420489 | 0.039755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031606 | 0.208208 | 999 | 39 | 53 | 25.615385 | 0.795196 | 0.14014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
ba5498b8600bafbe767e96e7573a78bb3a0ea603 | 2,357 | py | Python | OnDemandPublicationScript.py | muneebmallick/OndemandPublication-pyscript | 14220908cf234c72b6e0d8078e1cfef49acd0dde | [
"MIT"
] | null | null | null | OnDemandPublicationScript.py | muneebmallick/OndemandPublication-pyscript | 14220908cf234c72b6e0d8078e1cfef49acd0dde | [
"MIT"
] | null | null | null | OnDemandPublicationScript.py | muneebmallick/OndemandPublication-pyscript | 14220908cf234c72b6e0d8078e1cfef49acd0dde | [
"MIT"
] | null | null | null | import getpass
import datetime
import requests
import gzip
import easywebdav
import os
from bs4 import BeautifulSoup as bs
user = raw_input("Username: ")
password = getpass.getpass()
date = raw_input("As of Date (mmddYYYY): ")
#add URL from where the files are required to be downloaded.
archive_url = 'URL'
def get_... | 20.675439 | 85 | 0.674586 | 355 | 2,357 | 4.352113 | 0.349296 | 0.050485 | 0.023301 | 0.036893 | 0.081553 | 0.056958 | 0.056958 | 0.056958 | 0.056958 | 0.056958 | 0 | 0.006708 | 0.177768 | 2,357 | 114 | 86 | 20.675439 | 0.790506 | 0.061943 | 0 | 0.068493 | 0 | 0 | 0.15179 | 0.01314 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.082192 | 0.09589 | null | null | 0.054795 | 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 |
ba5a94482a11f5fee59779e8dcc15a40991e4772 | 2,027 | py | Python | compute_masks.py | MuhammadHamed/Deep-tracking | 09dd43cff30bbb3763cfc591dcbb372e85fd2618 | [
"MIT"
] | null | null | null | compute_masks.py | MuhammadHamed/Deep-tracking | 09dd43cff30bbb3763cfc591dcbb372e85fd2618 | [
"MIT"
] | null | null | null | compute_masks.py | MuhammadHamed/Deep-tracking | 09dd43cff30bbb3763cfc591dcbb372e85fd2618 | [
"MIT"
] | null | null | null | import scipy.io, os
from scipy.misc import imsave
import numpy as np
import cPickle
from PIL import Image
import shutil
import matplotlib.pyplot as plt
# used for producing the image with only the labels when "show masks only" in the annotation tool is pressed
def create_mask_for_image(image_array, image_annotation, ... | 36.854545 | 363 | 0.77109 | 305 | 2,027 | 4.859016 | 0.288525 | 0.133603 | 0.118758 | 0.175439 | 0.317139 | 0.28475 | 0.232119 | 0.232119 | 0.17274 | 0.17274 | 0 | 0.016279 | 0.151455 | 2,027 | 54 | 364 | 37.537037 | 0.845349 | 0.190923 | 0 | 0.117647 | 0 | 0 | 0.052696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.205882 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ba61d400f8b57fa12cc8c3893ae9262d26ff44e7 | 22,181 | py | Python | scripts/catalog-manager.py | jtheoof/dotfiles | 6d820a685200e6b4cac52638de366123ff8e3677 | [
"MIT"
] | 13 | 2015-01-31T04:38:12.000Z | 2020-06-10T09:11:52.000Z | scripts/catalog-manager.py | jtheoof/dotfiles | 6d820a685200e6b4cac52638de366123ff8e3677 | [
"MIT"
] | null | null | null | scripts/catalog-manager.py | jtheoof/dotfiles | 6d820a685200e6b4cac52638de366123ff8e3677 | [
"MIT"
] | 5 | 2016-05-12T01:44:05.000Z | 2020-12-06T21:30:36.000Z | #!/usr/bin/python
## @package catalog-manager
# Provides general functions to parse SQ3 files
# and generate SQL code.
#
# Can manage both 3D and MATERIALS (with TEXTURES).
import csv
import fnmatch
import getopt
import logging
import os
import platform
import random
import re
import shutil
import string
import sy... | 29.69344 | 77 | 0.640954 | 3,327 | 22,181 | 4.165615 | 0.15239 | 0.016884 | 0.017317 | 0.023306 | 0.251822 | 0.214085 | 0.157587 | 0.119489 | 0.090844 | 0.087957 | 0 | 0.009686 | 0.222713 | 22,181 | 746 | 78 | 29.733244 | 0.794153 | 0.180966 | 0 | 0.241197 | 1 | 0 | 0.133622 | 0 | 0 | 0 | 0 | 0 | 0.001761 | 0 | null | null | 0.008803 | 0.051056 | null | null | 0.003521 | 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 |
ba81c485c843d10d4436ea1652179b5715124c2b | 172 | py | Python | beginner_contest/049/B.py | FGtatsuro/myatcoder | 25a3123be6a6311e7d1c25394987de3e35575ff4 | [
"MIT"
] | null | null | null | beginner_contest/049/B.py | FGtatsuro/myatcoder | 25a3123be6a6311e7d1c25394987de3e35575ff4 | [
"MIT"
] | null | null | null | beginner_contest/049/B.py | FGtatsuro/myatcoder | 25a3123be6a6311e7d1c25394987de3e35575ff4 | [
"MIT"
] | null | null | null | import sys
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 7)
h, w = map(int, input().split())
for i in range(h):
c = input().strip()
print(c)
print(c)
| 17.2 | 32 | 0.616279 | 28 | 172 | 3.785714 | 0.714286 | 0.113208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021898 | 0.203488 | 172 | 9 | 33 | 19.111111 | 0.751825 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 |
ba83dfc67c0f43b3ac93a551683c1a2ad13ec950 | 1,348 | py | Python | app/commands/footprint.py | BartekSzpak/adversary | 231caf58722a5641dd08afe354f2760e89699f3a | [
"Apache-2.0",
"CC0-1.0"
] | 22 | 2019-06-08T11:00:02.000Z | 2021-09-10T10:22:20.000Z | app/commands/footprint.py | BartekSzpak/adversary | 231caf58722a5641dd08afe354f2760e89699f3a | [
"Apache-2.0",
"CC0-1.0"
] | 39 | 2019-04-28T13:28:58.000Z | 2020-07-28T00:49:45.000Z | app/commands/footprint.py | BartekSzpak/adversary | 231caf58722a5641dd08afe354f2760e89699f3a | [
"Apache-2.0",
"CC0-1.0"
] | 11 | 2019-04-29T00:58:35.000Z | 2021-06-28T02:18:48.000Z | from plugins.adversary.app.commands.command import CommandLine
from typing import Callable, Tuple
from plugins.adversary.app.commands import parsers
def files() -> Tuple[CommandLine, Callable[[str], None]]:
command = 'powershell -command "&{$filetype = @(\\"*.docx\\",\\"*.pdf\\",\\"*.xlsx\\"); $startdir = ' \
... | 64.190476 | 120 | 0.589021 | 149 | 1,348 | 5.275168 | 0.436242 | 0.041985 | 0.045802 | 0.058524 | 0.374046 | 0.223919 | 0.127226 | 0.127226 | 0 | 0 | 0 | 0.001803 | 0.1773 | 1,348 | 20 | 121 | 67.4 | 0.706943 | 0 | 0 | 0 | 0 | 0.3125 | 0.530415 | 0.202522 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.1875 | 0.1875 | 0 | 0.4375 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ba84dce9cdb94b7aecc1455ec03b4a4a56c913e6 | 1,175 | py | Python | core/tests/test_models.py | CezarPoeta/Fusion | 284880274f0a62512924207931c1f2a9107f1552 | [
"MIT"
] | null | null | null | core/tests/test_models.py | CezarPoeta/Fusion | 284880274f0a62512924207931c1f2a9107f1552 | [
"MIT"
] | null | null | null | core/tests/test_models.py | CezarPoeta/Fusion | 284880274f0a62512924207931c1f2a9107f1552 | [
"MIT"
] | null | null | null | import uuid
from django.test import TestCase
from model_mommy import mommy
from core.models import get_file_path
class GetFilePathTestCase(TestCase):
def setUp(self):
self.filename = f'{uuid.uuid4()}.png'
def test_get_file_path(self):
arquivo = get_file_path('Nome', 'teste.png')
self... | 24.479167 | 76 | 0.697021 | 143 | 1,175 | 5.643357 | 0.265734 | 0.089219 | 0.099133 | 0.123916 | 0.332094 | 0.183395 | 0.183395 | 0.183395 | 0 | 0 | 0 | 0.001044 | 0.184681 | 1,175 | 47 | 77 | 25 | 0.841336 | 0 | 0 | 0.3 | 0 | 0 | 0.057922 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.333333 | false | 0 | 0.133333 | 0 | 0.633333 | 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 |
ba8a89e49ad1ef9c9861e0ea5fe8940af4390c30 | 545 | py | Python | hpo/evals/conll18_eval.py | Dayitva/Parser-v3 | 45754bb722fabefdb18f67ab4c32a41d24114bca | [
"Apache-2.0"
] | 93 | 2018-08-07T02:54:47.000Z | 2022-02-14T13:47:52.000Z | hpo/evals/conll18_eval.py | Dayitva/Parser-v3 | 45754bb722fabefdb18f67ab4c32a41d24114bca | [
"Apache-2.0"
] | 10 | 2019-01-08T02:37:36.000Z | 2021-01-09T07:45:02.000Z | hpo/evals/conll18_eval.py | Dayitva/Parser-v3 | 45754bb722fabefdb18f67ab4c32a41d24114bca | [
"Apache-2.0"
] | 29 | 2018-07-31T09:08:03.000Z | 2022-03-16T14:50:13.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import scripts.conll18_ud_eval as ud_eval
from scripts.reinsert_compounds import reinsert_compounds
def evaluate(gold_filename, sys_filename, metric):
""""""
reinsert_compounds(gold_filename, sys_filena... | 32.058824 | 66 | 0.833028 | 76 | 545 | 5.434211 | 0.342105 | 0.145278 | 0.116223 | 0.11138 | 0.145278 | 0.145278 | 0.145278 | 0 | 0 | 0 | 0 | 0.006173 | 0.108257 | 545 | 16 | 67 | 34.0625 | 0.843621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.454545 | 0 | 0.636364 | 0.090909 | 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 |
ba938330dbea07848f6aeb3c07cc530fe95b7587 | 914 | py | Python | src/api/controllers/connection/CheckConnectionDatabaseResource.py | PythonDataIntegrator/pythondataintegrator | 6167778c36c2295e36199ac0d4d256a4a0c28d7a | [
"MIT"
] | 14 | 2020-12-19T15:06:13.000Z | 2022-01-12T19:52:17.000Z | src/api/controllers/connection/CheckConnectionDatabaseResource.py | PythonDataIntegrator/pythondataintegrator | 6167778c36c2295e36199ac0d4d256a4a0c28d7a | [
"MIT"
] | 43 | 2021-01-06T22:05:22.000Z | 2022-03-10T10:30:30.000Z | src/api/controllers/connection/CheckConnectionDatabaseResource.py | PythonDataIntegrator/pythondataintegrator | 6167778c36c2295e36199ac0d4d256a4a0c28d7a | [
"MIT"
] | 4 | 2020-12-18T23:10:09.000Z | 2021-04-02T13:03:12.000Z | from injector import inject
from domain.connection.CheckDatabaseConnection.CheckDatabaseConnectionCommand import CheckDatabaseConnectionCommand
from domain.connection.CheckDatabaseConnection.CheckDatabaseConnectionRequest import CheckDatabaseConnectionRequest
from infrastructure.api.ResourceBase import ResourceBase
fr... | 38.083333 | 115 | 0.762582 | 72 | 914 | 9.569444 | 0.430556 | 0.078374 | 0.058055 | 0.124819 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171772 | 914 | 24 | 116 | 38.083333 | 0.910172 | 0.027352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.352941 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ba94b8d454521a32f19d17bede93c216fb9a272e | 148 | py | Python | Python/BasicDataTypes/finding_the_percentage.py | rho2/HackerRank | 4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266 | [
"MIT"
] | null | null | null | Python/BasicDataTypes/finding_the_percentage.py | rho2/HackerRank | 4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266 | [
"MIT"
] | null | null | null | Python/BasicDataTypes/finding_the_percentage.py | rho2/HackerRank | 4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266 | [
"MIT"
] | null | null | null | l = {}
for _ in range(int(input())):
s = input().split()
l[s[0]] = sum([float(a) for a in s[1:]])/(len(s)-1)
print('%.2f' % l[input()]) | 24.666667 | 55 | 0.466216 | 27 | 148 | 2.518519 | 0.592593 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.216216 | 148 | 6 | 56 | 24.666667 | 0.551724 | 0 | 0 | 0 | 0 | 0 | 0.026846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ba95b0f8dc9be866d1181ebc59b07f057e735c50 | 1,196 | py | Python | pstd/pstd_using_numba.py | FRidh/pstd | 1e8f047dda34eac80cbc11b1a261299052e91de6 | [
"BSD-3-Clause"
] | 5 | 2018-01-01T03:04:09.000Z | 2022-02-12T13:32:36.000Z | pstd/pstd_using_numba.py | FRidh/pstd | 1e8f047dda34eac80cbc11b1a261299052e91de6 | [
"BSD-3-Clause"
] | 1 | 2022-01-17T11:08:47.000Z | 2022-01-17T11:08:47.000Z | pstd/pstd_using_numba.py | FRidh/pstd | 1e8f047dda34eac80cbc11b1a261299052e91de6 | [
"BSD-3-Clause"
] | null | null | null | """
This module contains a Numba-accelerated implementation of the k-space PSTD method.
"""
import numba
from . import pstd
kappa = numba.jit(pstd.kappa)
# abs_exp = numba.jit(pstd.abs_exp)
pressure_abs_exp = numba.jit(pstd.pressure_abs_exp)
velocity_abs_exp = numba.jit(pstd.velocity_abs_exp)
pressure_with_pml = numb... | 33.222222 | 83 | 0.763378 | 172 | 1,196 | 5.034884 | 0.19186 | 0.17552 | 0.249423 | 0.166282 | 0.573903 | 0.497691 | 0.2194 | 0.136259 | 0.096998 | 0 | 0 | 0 | 0.121237 | 1,196 | 35 | 84 | 34.171429 | 0.823977 | 0.529264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.333333 | 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 |
bac5fc1e09a2e012dfac85c34379f3c2de92c1a0 | 771 | py | Python | src/integration-tests/expecteds/py/duplicate-names.py | shanejonas/transpiler | ed293861635c23c004ef8276196e461ca5b940db | [
"Apache-2.0"
] | 5 | 2020-10-26T23:32:25.000Z | 2022-01-20T17:02:18.000Z | src/integration-tests/expecteds/py/duplicate-names.py | shanejonas/transpiler | ed293861635c23c004ef8276196e461ca5b940db | [
"Apache-2.0"
] | 525 | 2020-04-20T08:58:52.000Z | 2022-03-26T02:26:13.000Z | src/integration-tests/expecteds/py/duplicate-names.py | shanejonas/transpiler | ed293861635c23c004ef8276196e461ca5b940db | [
"Apache-2.0"
] | 6 | 2020-10-26T23:32:45.000Z | 2021-12-29T18:03:03.000Z | from typing import NewType
from typing import Union
from typing import List
from typing import Tuple
from typing import TypedDict
from typing import Optional
Baz = NewType("Baz", bool)
Foo = NewType("Foo", str)
"""array of strings is all...
"""
UnorderedSetOfFooz1UBFn8B = NewType("UnorderedSetOfFooz1UBFn8B", List[Foo... | 29.653846 | 150 | 0.788586 | 81 | 771 | 7.506173 | 0.444444 | 0.098684 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020468 | 0.11284 | 771 | 25 | 151 | 30.84 | 0.868421 | 0 | 0 | 0 | 0 | 0 | 0.147761 | 0.101493 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.