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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
138ad53bc75698fb0a04af0266ae508da388a981 | 6,057 | py | Python | nevergrad/parametrization/utils.py | mehrdad-shokri/nevergrad | 7b68b00c158bf60544bc45997560edf733fb5812 | [
"MIT"
] | 2 | 2021-04-13T12:14:46.000Z | 2021-07-07T14:37:50.000Z | nevergrad/parametrization/utils.py | OregonWebSells/nevergrad | c2b2a0efdca29830ccc9182d8a7ba4d8695f698d | [
"MIT"
] | 1 | 2020-09-25T10:45:06.000Z | 2020-09-25T11:51:13.000Z | nevergrad/parametrization/utils.py | OregonWebSells/nevergrad | c2b2a0efdca29830ccc9182d8a7ba4d8695f698d | [
"MIT"
] | 1 | 2021-04-07T10:34:20.000Z | 2021-04-07T10:34:20.000Z | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import os
import sys
import shutil
import tempfile
import subprocess
import typing as tp
from pathlib import Path
from ne... | 38.826923 | 133 | 0.639591 | 744 | 6,057 | 5.106183 | 0.34543 | 0.014741 | 0.008687 | 0.011056 | 0.052645 | 0.043169 | 0.017373 | 0 | 0 | 0 | 0 | 0.000453 | 0.270596 | 6,057 | 155 | 134 | 39.077419 | 0.859439 | 0.297177 | 0 | 0.023256 | 0 | 0 | 0.061914 | 0.00814 | 0 | 0 | 0 | 0.012903 | 0.023256 | 1 | 0.093023 | false | 0 | 0.093023 | 0 | 0.302326 | 0.034884 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
138b01aa9774bbead45a8dac1264c5149cf9f912 | 568 | py | Python | Section 20/2.Document-transfer_files.py | airbornum/-Complete-Python-Scripting-for-Automation | bc053444f8786259086269ca1713bdb10144dd74 | [
"MIT"
] | 18 | 2020-04-13T03:14:06.000Z | 2022-03-09T18:54:41.000Z | Section 20/2.Document-transfer_files.py | airbornum/-Complete-Python-Scripting-for-Automation | bc053444f8786259086269ca1713bdb10144dd74 | [
"MIT"
] | null | null | null | Section 20/2.Document-transfer_files.py | airbornum/-Complete-Python-Scripting-for-Automation | bc053444f8786259086269ca1713bdb10144dd74 | [
"MIT"
] | 22 | 2020-04-29T21:12:42.000Z | 2022-03-17T18:19:54.000Z | import paramiko
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(hostname='54.165.97.91',username='ec2-user',password='paramiko123',port=22)
sftp_client=ssh.open_sftp()
#sftp_client.get('/home/ec2-user/paramiko_download.txt','paramiko_downloaded_file.txt')
#sftp_c... | 43.692308 | 88 | 0.769366 | 84 | 568 | 4.988095 | 0.535714 | 0.167064 | 0.078759 | 0.081146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033272 | 0.047535 | 568 | 13 | 89 | 43.692308 | 0.74122 | 0.399648 | 0 | 0 | 0 | 0 | 0.245399 | 0.09816 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.125 | 0 | 0.125 | 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 | 0 | 0 | 0 | 1 |
139af14f3890b6a5fdebd9bc833f815258ac26c3 | 1,433 | py | Python | tests/adv/test_pop_sfrd.py | jlashner/ares | 6df2b676ded6bd59082a531641cb1dadd475c8a8 | [
"MIT"
] | 10 | 2020-03-26T01:08:10.000Z | 2021-12-04T13:02:10.000Z | tests/adv/test_pop_sfrd.py | jlashner/ares | 6df2b676ded6bd59082a531641cb1dadd475c8a8 | [
"MIT"
] | 25 | 2020-06-08T14:52:28.000Z | 2022-03-08T02:30:54.000Z | tests/adv/test_pop_sfrd.py | jlashner/ares | 6df2b676ded6bd59082a531641cb1dadd475c8a8 | [
"MIT"
] | 8 | 2020-03-24T14:11:25.000Z | 2021-11-06T06:32:59.000Z | """
test_pop_models.py
Author: Jordan Mirocha
Affiliation: UCLA
Created on: Fri Jul 15 15:23:11 PDT 2016
Description:
"""
import ares
import matplotlib.pyplot as pl
PB = ares.util.ParameterBundle
def test():
# Create a simple population
pars_1 = PB('pop:fcoll') + PB('sed:bpass')
pop_fcoll = ares.po... | 25.589286 | 75 | 0.669923 | 203 | 1,433 | 4.502463 | 0.413793 | 0.078775 | 0.04814 | 0.135667 | 0.282276 | 0.203501 | 0.203501 | 0.203501 | 0.203501 | 0.203501 | 0 | 0.046007 | 0.196092 | 1,433 | 55 | 76 | 26.054545 | 0.747396 | 0.432659 | 0 | 0 | 0 | 0 | 0.183081 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.052632 | false | 0.052632 | 0.105263 | 0 | 0.157895 | 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 | 0 | 0 | 0 | 1 |
139b92054f917712ecbfacdc663b9fc7eea6103f | 6,010 | py | Python | core/self6dpp/tools/ycbv/ycbv_pbr_so_mlBCE_Double_3_merge_train_real_uw_init_results_with_refined_poses_to_json.py | THU-DA-6D-Pose-Group/self6dpp | c267cfa55e440e212136a5e9940598720fa21d16 | [
"Apache-2.0"
] | 33 | 2021-12-15T07:11:47.000Z | 2022-03-29T08:58:32.000Z | core/self6dpp/tools/ycbv/ycbv_pbr_so_mlBCE_Double_3_merge_train_real_uw_init_results_with_refined_poses_to_json.py | THU-DA-6D-Pose-Group/self6dpp | c267cfa55e440e212136a5e9940598720fa21d16 | [
"Apache-2.0"
] | 3 | 2021-12-15T11:39:54.000Z | 2022-03-29T07:24:23.000Z | core/self6dpp/tools/ycbv/ycbv_pbr_so_mlBCE_Double_3_merge_train_real_uw_init_results_with_refined_poses_to_json.py | THU-DA-6D-Pose-Group/self6dpp | c267cfa55e440e212136a5e9940598720fa21d16 | [
"Apache-2.0"
] | null | null | null | import os.path as osp
import sys
import numpy as np
import mmcv
from tqdm import tqdm
from functools import cmp_to_key
cur_dir = osp.dirname(osp.abspath(__file__))
PROJ_ROOT = osp.normpath(osp.join(cur_dir, "../../../../"))
sys.path.insert(0, PROJ_ROOT)
from lib.pysixd import inout, misc
from lib.utils.bbox_utils impo... | 52.719298 | 146 | 0.708985 | 906 | 6,010 | 4.248344 | 0.342163 | 0.051442 | 0.062873 | 0.114575 | 0.277734 | 0.075864 | 0.016108 | 0 | 0 | 0 | 0 | 0.141502 | 0.175707 | 6,010 | 113 | 147 | 53.185841 | 0.635446 | 0.100166 | 0 | 0 | 0 | 0 | 0.540305 | 0.456352 | 0 | 0 | 0 | 0 | 0.020202 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.050505 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
139bcb633d3c2b224334dad0ddfc97013f3a8ff8 | 918 | py | Python | tests/test_app/rest_app/rest_app/services/account_service.py | jadbin/guniflask | 36253a962c056abf34884263c6919b02b921ad9c | [
"MIT"
] | 12 | 2018-09-06T06:14:59.000Z | 2021-04-18T06:30:44.000Z | tests/test_app/rest_app/rest_app/services/account_service.py | jadbin/guniflask | 36253a962c056abf34884263c6919b02b921ad9c | [
"MIT"
] | null | null | null | tests/test_app/rest_app/rest_app/services/account_service.py | jadbin/guniflask | 36253a962c056abf34884263c6919b02b921ad9c | [
"MIT"
] | 2 | 2019-09-08T22:01:26.000Z | 2020-08-03T07:23:29.000Z | from flask import abort
from guniflask.context import service
from ..config.jwt_config import jwt_manager
@service
class AccountService:
accounts = {
'root': {
'authorities': ['role_admin'],
'password': '123456',
}
}
def login(self, username: str, password: str):
... | 27.818182 | 102 | 0.59695 | 91 | 918 | 5.945055 | 0.395604 | 0.110906 | 0.110906 | 0.05915 | 0.110906 | 0.110906 | 0.110906 | 0 | 0 | 0 | 0 | 0.018576 | 0.296296 | 918 | 32 | 103 | 28.6875 | 0.818885 | 0 | 0 | 0.148148 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0.111111 | 0.111111 | 0 | 0.407407 | 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 | 0 | 0 | 0 | 1 |
139ed5391c8324e35fd54e409887ff876db4d1d0 | 239 | py | Python | noo/impl/utils/__init__.py | nooproject/noo | 238711c55faeb1226a4e5339cd587a312c4babac | [
"MIT"
] | 2 | 2022-02-03T07:35:46.000Z | 2022-02-03T16:12:25.000Z | noo/impl/utils/__init__.py | nooproject/noo | 238711c55faeb1226a4e5339cd587a312c4babac | [
"MIT"
] | 2 | 2022-03-05T02:31:38.000Z | 2022-03-05T21:26:42.000Z | noo/impl/utils/__init__.py | nooproject/noo | 238711c55faeb1226a4e5339cd587a312c4babac | [
"MIT"
] | 1 | 2022-03-05T01:40:29.000Z | 2022-03-05T01:40:29.000Z | from .echo import echo, set_quiet
from .errors import NooException, cancel
from .store import STORE, FileStore, Store
__all__ = (
"FileStore",
"NooException",
"Store",
"STORE",
"cancel",
"echo",
"set_quiet",
)
| 17.071429 | 42 | 0.635983 | 26 | 239 | 5.615385 | 0.423077 | 0.09589 | 0.164384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23431 | 239 | 13 | 43 | 18.384615 | 0.797814 | 0 | 0 | 0 | 0 | 0 | 0.209205 | 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 | 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 | 1 |
139f98ba0220830de5e89cabcde17bead64e5fb5 | 625 | py | Python | setup.py | ooreilly/mydocstring | 077cebfb86575914d343bd3291b9e6c5e8beef94 | [
"MIT"
] | 13 | 2018-12-11T00:34:09.000Z | 2022-03-22T20:41:04.000Z | setup.py | ooreilly/mydocstring | 077cebfb86575914d343bd3291b9e6c5e8beef94 | [
"MIT"
] | 13 | 2018-06-15T19:42:06.000Z | 2020-12-18T22:20:02.000Z | setup.py | ooreilly/mydocstring | 077cebfb86575914d343bd3291b9e6c5e8beef94 | [
"MIT"
] | 5 | 2018-06-16T07:45:49.000Z | 2020-12-12T07:12:00.000Z | from setuptools import setup
setup(name='mydocstring',
version='0.2.7',
description="""A tool for extracting and converting Google-style docstrings to
plain-text, markdown, and JSON.""",
url='http://github.com/ooreilly/mydocstring',
author="Ossian O'Reilly",
license='MIT',
pa... | 32.894737 | 84 | 0.6048 | 63 | 625 | 5.904762 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006424 | 0.2528 | 625 | 18 | 85 | 34.722222 | 0.79015 | 0 | 0 | 0 | 0 | 0 | 0.4592 | 0.1072 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
13a92427a8cdec440aec42402a7483f2303b73a6 | 10,075 | py | Python | json_to_relation/mysqldb.py | paepcke/json_to_relation | acfa58d540f8f51d1d913d0c173ee3ded1b6c2a9 | [
"BSD-3-Clause"
] | 4 | 2015-10-10T19:09:49.000Z | 2021-09-02T00:58:06.000Z | json_to_relation/mysqldb.py | paepcke/json_to_relation | acfa58d540f8f51d1d913d0c173ee3ded1b6c2a9 | [
"BSD-3-Clause"
] | null | null | null | json_to_relation/mysqldb.py | paepcke/json_to_relation | acfa58d540f8f51d1d913d0c173ee3ded1b6c2a9 | [
"BSD-3-Clause"
] | 8 | 2015-05-16T14:33:33.000Z | 2019-10-24T08:56:25.000Z | # Copyright (c) 2014, Stanford University
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the ... | 40.461847 | 757 | 0.60794 | 1,195 | 10,075 | 5.121339 | 0.314644 | 0.032026 | 0.019608 | 0.02549 | 0.186438 | 0.156373 | 0.128758 | 0.112909 | 0.112909 | 0.096242 | 0 | 0.006105 | 0.300943 | 10,075 | 248 | 758 | 40.625 | 0.862843 | 0.504218 | 0 | 0.431373 | 0 | 0.019608 | 0.104526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098039 | false | 0.068627 | 0.039216 | 0 | 0.176471 | 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 | 0 | 0 | 0 | 1 |
13a95b957fe3881893fa91e63fed84b8224215f9 | 611 | py | Python | tools/xkeydump.py | treys/crypto-key-derivation | 789900bd73160db9a0d406c7c7f00f5f299aff73 | [
"MIT"
] | 29 | 2017-11-12T08:54:03.000Z | 2022-03-04T21:12:00.000Z | tools/xkeydump.py | treys/crypto-key-derivation | 789900bd73160db9a0d406c7c7f00f5f299aff73 | [
"MIT"
] | 2 | 2019-03-01T05:56:52.000Z | 2021-05-17T00:18:01.000Z | tools/xkeydump.py | treys/crypto-key-derivation | 789900bd73160db9a0d406c7c7f00f5f299aff73 | [
"MIT"
] | 9 | 2018-04-10T08:40:25.000Z | 2021-12-29T16:04:48.000Z | #!./venv/bin/python
from lib.mbp32 import XKey
from lib.utils import one_line_from_stdin
xkey = XKey.from_xkey(one_line_from_stdin())
print(xkey)
print("Version:", xkey.version)
print("Depth:", xkey.depth)
print("Parent FP:", xkey.parent_fp.hex())
print("Child number:", xkey.child_number_with_tick())
print("Chain cod... | 32.157895 | 63 | 0.721768 | 97 | 611 | 4.350515 | 0.360825 | 0.094787 | 0.07109 | 0.075829 | 0.104265 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003546 | 0.076923 | 611 | 18 | 64 | 33.944444 | 0.744681 | 0.02946 | 0 | 0 | 0 | 0 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0.733333 | 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 | 0 | 0 | 1 | 0 | 1 |
13aa5a46812a4881dac4a4f78ba8019d3b73841d | 616 | py | Python | examples/compute_angular_resolution.py | meder411/Tangent-Images | 6def4d7b8797110e54f7faa2435973771d9e9722 | [
"BSD-3-Clause"
] | 57 | 2019-12-20T09:28:29.000Z | 2022-03-28T02:38:48.000Z | examples/compute_angular_resolution.py | meder411/Tangent-Images | 6def4d7b8797110e54f7faa2435973771d9e9722 | [
"BSD-3-Clause"
] | 6 | 2020-06-06T16:39:35.000Z | 2021-01-21T01:19:52.000Z | examples/compute_angular_resolution.py | meder411/Tangent-Images | 6def4d7b8797110e54f7faa2435973771d9e9722 | [
"BSD-3-Clause"
] | 16 | 2019-12-21T08:19:33.000Z | 2022-03-28T02:38:49.000Z | from spherical_distortion.util import *
sample_order = 9 # Input resolution to examine
def ang_fov(s):
print('Spherical Resolution:', s)
for b in range(s):
dim = tangent_image_dim(b, s) # Pixel dimension of tangent image
corners = tangent_image_corners(b, s) # Corners of each tangent image
... | 36.235294 | 77 | 0.625 | 90 | 616 | 4.066667 | 0.422222 | 0.163934 | 0.103825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002183 | 0.256494 | 616 | 17 | 78 | 36.235294 | 0.796943 | 0.146104 | 0 | 0 | 0 | 0 | 0.183556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.142857 | 0.428571 | 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 | 0 | 0 | 1 | 0 | 1 |
13abd087d6a8034a9d1a9da08f2dab574fb7be66 | 51,194 | py | Python | polymath/srdfg/base.py | he-actlab/polymath | 9b7937d0ddf7452f6cc74ee90d05f8c6acef737e | [
"Apache-2.0"
] | 15 | 2021-05-09T05:46:04.000Z | 2022-03-06T20:46:32.000Z | polymath/srdfg/base.py | he-actlab/polymath | 9b7937d0ddf7452f6cc74ee90d05f8c6acef737e | [
"Apache-2.0"
] | null | null | null | polymath/srdfg/base.py | he-actlab/polymath | 9b7937d0ddf7452f6cc74ee90d05f8c6acef737e | [
"Apache-2.0"
] | 4 | 2021-08-24T07:46:29.000Z | 2022-03-05T18:23:07.000Z |
from polymath import UNSET_SHAPE, DEFAULT_SHAPES
import builtins
import operator
from collections import OrderedDict, Mapping, Sequence, deque
import functools
from numbers import Integral, Rational, Real
import contextlib
import traceback
import uuid
import numpy as np
import importlib
from .graph import Graph
from .... | 35.725052 | 158 | 0.607239 | 6,433 | 51,194 | 4.613866 | 0.0813 | 0.050942 | 0.049055 | 0.038947 | 0.487214 | 0.429905 | 0.399717 | 0.387554 | 0.363633 | 0.352481 | 0 | 0.004223 | 0.282963 | 51,194 | 1,432 | 159 | 35.75 | 0.804348 | 0.13777 | 0 | 0.37013 | 0 | 0.002165 | 0.063779 | 0.005614 | 0 | 0 | 0 | 0.003492 | 0.002165 | 1 | 0.187229 | false | 0 | 0.016234 | 0.126623 | 0.398268 | 0.001082 | 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 | 0 | 0 | 0 | 1 |
13bc25bc6434cc017d92bbc47c055999ff8c038c | 3,181 | py | Python | tests/stack_test.py | arthurlogilab/py_zipkin | 8e733506c399967ea74c56b99a9a421e1bb1736a | [
"Apache-2.0"
] | 225 | 2016-09-16T17:57:51.000Z | 2022-02-12T22:15:32.000Z | tests/stack_test.py | arthurlogilab/py_zipkin | 8e733506c399967ea74c56b99a9a421e1bb1736a | [
"Apache-2.0"
] | 156 | 2016-09-17T03:50:04.000Z | 2021-03-17T23:19:40.000Z | tests/stack_test.py | arthurlogilab/py_zipkin | 8e733506c399967ea74c56b99a9a421e1bb1736a | [
"Apache-2.0"
] | 53 | 2016-09-20T18:34:08.000Z | 2021-08-31T06:14:03.000Z | import mock
import pytest
import py_zipkin.storage
@pytest.fixture(autouse=True, scope="module")
def create_zipkin_attrs():
# The following tests all expect _thread_local.zipkin_attrs to exist: if it
# doesn't, mock.patch will fail.
py_zipkin.storage.ThreadLocalStack().get()
def test_get_zipkin_attrs_r... | 34.576087 | 83 | 0.727759 | 449 | 3,181 | 4.775056 | 0.184855 | 0.089552 | 0.16791 | 0.14459 | 0.704291 | 0.640392 | 0.508862 | 0.385728 | 0.385728 | 0.362407 | 0 | 0.000366 | 0.142094 | 3,181 | 91 | 84 | 34.956044 | 0.785269 | 0.055014 | 0 | 0.241379 | 0 | 0 | 0.041972 | 0 | 0 | 0 | 0 | 0 | 0.327586 | 1 | 0.224138 | false | 0.017241 | 0.051724 | 0 | 0.275862 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13c5d0054209f9afb389d03f1764cab446c01a96 | 742 | py | Python | src/messages.py | Ewpratten/chat | 4cc8461e442b6530b7874f234b1a2261f3db8456 | [
"MIT"
] | null | null | null | src/messages.py | Ewpratten/chat | 4cc8461e442b6530b7874f234b1a2261f3db8456 | [
"MIT"
] | null | null | null | src/messages.py | Ewpratten/chat | 4cc8461e442b6530b7874f234b1a2261f3db8456 | [
"MIT"
] | null | null | null | greeting = """
--------------- BEGIN SESSION ---------------
You have connected to a chat server. Welcome!
:: About
Chat is a small piece of server software
written by Evan Pratten to allow people to
talk to eachother from any computer as long
as it has an internet connection. (Even an
arduino!). Check out the proje... | 32.26087 | 45 | 0.690027 | 114 | 742 | 4.491228 | 0.719298 | 0.011719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165768 | 742 | 23 | 46 | 32.26087 | 0.827141 | 0 | 0 | 0 | 0 | 0 | 0.975774 | 0.060565 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13c974d988a5a072e9adfbe93d6a9ef5022a8ab3 | 1,712 | py | Python | source/dump_query_results.py | CheyenneNS/metrics | cfeeac6d01d99679897a998b193d630ada169c61 | [
"MIT"
] | null | null | null | source/dump_query_results.py | CheyenneNS/metrics | cfeeac6d01d99679897a998b193d630ada169c61 | [
"MIT"
] | null | null | null | source/dump_query_results.py | CheyenneNS/metrics | cfeeac6d01d99679897a998b193d630ada169c61 | [
"MIT"
] | null | null | null | #!/usr/local/bin/python
import os
import mysql.connector as mysql
metrics_mysql_password = os.environ['METRICS_MYSQL_PWD']
sql_host = os.environ['SQL_HOST']
metrics = os.environ['QUERY_ON']
def dump_query_results():
"""
This is a simple SQL table dump of a given query so we can supply users with custom ... | 33.568627 | 164 | 0.675234 | 242 | 1,712 | 4.603306 | 0.512397 | 0.056553 | 0.02693 | 0.023339 | 0.055655 | 0.055655 | 0.055655 | 0.055655 | 0 | 0 | 0 | 0.003817 | 0.234813 | 1,712 | 50 | 165 | 34.24 | 0.846565 | 0.28271 | 0 | 0.066667 | 0 | 0.033333 | 0.261163 | 0.090143 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0.066667 | 0.066667 | 0 | 0.133333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
13cbb884947e5c5ee43f164c1fde11e81811776b | 4,399 | py | Python | osaka/storage/sftp.py | riverma/osaka | f9ed386936500303c629d7213d91215085bcf346 | [
"Apache-2.0"
] | 2 | 2018-05-08T03:13:49.000Z | 2022-02-09T08:48:06.000Z | osaka/storage/sftp.py | riverma/osaka | f9ed386936500303c629d7213d91215085bcf346 | [
"Apache-2.0"
] | 6 | 2019-02-06T19:12:09.000Z | 2022-02-08T04:29:49.000Z | osaka/storage/sftp.py | riverma/osaka | f9ed386936500303c629d7213d91215085bcf346 | [
"Apache-2.0"
] | 12 | 2018-04-08T12:58:29.000Z | 2022-03-31T18:35:53.000Z | from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
from builtins import int
from future import standard_library
standard_library.install_aliases()
import os
import os.path
import stat
import urllib.parse
import paramiko... | 30.130137 | 90 | 0.562855 | 519 | 4,399 | 4.703276 | 0.310212 | 0.02458 | 0.032773 | 0.027038 | 0.119623 | 0.082343 | 0 | 0 | 0 | 0 | 0 | 0.001745 | 0.348716 | 4,399 | 145 | 91 | 30.337931 | 0.850262 | 0.246874 | 0 | 0.17284 | 0 | 0 | 0.034852 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098765 | false | 0.074074 | 0.160494 | 0 | 0.308642 | 0.049383 | 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 | 0 | 0 | 0 | 1 |
13ce074cf333bc82bde9c49d1dbfefb77ad96d57 | 715 | py | Python | kindler/solver/optimizer.py | mingruimingrui/kindler | 8a9c2278b607a167b0ce827b218e54949a1120e7 | [
"MIT"
] | null | null | null | kindler/solver/optimizer.py | mingruimingrui/kindler | 8a9c2278b607a167b0ce827b218e54949a1120e7 | [
"MIT"
] | null | null | null | kindler/solver/optimizer.py | mingruimingrui/kindler | 8a9c2278b607a167b0ce827b218e54949a1120e7 | [
"MIT"
] | null | null | null | import torch
def make_sgd_optimizer(
model,
base_lr=0.001,
bias_lr_factor=2.0,
momentum=0.9,
weight_decay=0.0005,
weight_decay_bias=0.0,
):
params = []
for key, value in model.named_parameters():
if not value.requires_grad:
continue
param_lr = base_lr
... | 22.34375 | 67 | 0.601399 | 91 | 715 | 4.417582 | 0.384615 | 0.218905 | 0.119403 | 0.064677 | 0.134328 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030426 | 0.31049 | 715 | 31 | 68 | 23.064516 | 0.78499 | 0 | 0 | 0 | 0 | 0 | 0.033566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.04 | 0 | 0.12 | 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 | 0 | 0 | 0 | 1 |
13d25057738843cced8f3d82852dabf41375fb9a | 754 | py | Python | redshift_upload/base_utilities.py | douglassimonsen/redshift_upload | e549c770538f022c0b90a983ca056f3e9c16c643 | [
"MIT"
] | null | null | null | redshift_upload/base_utilities.py | douglassimonsen/redshift_upload | e549c770538f022c0b90a983ca056f3e9c16c643 | [
"MIT"
] | 1 | 2022-03-12T03:50:55.000Z | 2022-03-12T03:50:55.000Z | redshift_upload/base_utilities.py | douglassimonsen/redshift_upload | e549c770538f022c0b90a983ca056f3e9c16c643 | [
"MIT"
] | null | null | null | import inspect
import os
from pathlib import Path
class change_directory:
"""
A class for changing the working directory using a "with" statement.
It takes the directory to change to as an argument. If no directory is given,
it takes the directory of the file from which this function was call... | 30.16 | 98 | 0.624668 | 102 | 754 | 4.421569 | 0.529412 | 0.046563 | 0.066519 | 0.084257 | 0.084257 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003704 | 0.28382 | 754 | 24 | 99 | 31.416667 | 0.831481 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.214286 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13d760267b20f874fc4b087de72759e81f401445 | 6,123 | py | Python | servicedirectory/src/sd-api/users/tests/tests_serializers.py | ealogar/servicedirectory | fb4f4bfa8b499b93c03af589ef2f34c08a830b17 | [
"Apache-2.0"
] | null | null | null | servicedirectory/src/sd-api/users/tests/tests_serializers.py | ealogar/servicedirectory | fb4f4bfa8b499b93c03af589ef2f34c08a830b17 | [
"Apache-2.0"
] | null | null | null | servicedirectory/src/sd-api/users/tests/tests_serializers.py | ealogar/servicedirectory | fb4f4bfa8b499b93c03af589ef2f34c08a830b17 | [
"Apache-2.0"
] | null | null | null | '''
(c) Copyright 2013 Telefonica, I+D. Printed in Spain (Europe). All Rights
Reserved.
The copyright to the software program(s) is property of Telefonica I+D.
The program(s) may be used and or copied only with the express written
consent of Telefonica I+D or in accordance with the terms and conditions
stipulated in t... | 52.784483 | 114 | 0.6634 | 654 | 6,123 | 6.022936 | 0.19419 | 0.081239 | 0.106118 | 0.116781 | 0.693069 | 0.687992 | 0.669713 | 0.648388 | 0.606245 | 0.567149 | 0 | 0.003606 | 0.230116 | 6,123 | 115 | 115 | 53.243478 | 0.83199 | 0.136534 | 0 | 0.421687 | 0 | 0 | 0.16926 | 0 | 0 | 0 | 0 | 0 | 0.240964 | 1 | 0.13253 | false | 0.144578 | 0.060241 | 0 | 0.204819 | 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 | 0 | 0 | 0 | 1 |
13d7896d6d799cba6c0e766504d5f3eea5f2e531 | 3,124 | py | Python | Web/notifyXAPI/app/src/users/views.py | abs0lut3pwn4g3/RootersCTF2019-challenges | 397a6fad0b03e55541df06e5103172ae850cd4e5 | [
"MIT"
] | 14 | 2019-10-13T07:38:04.000Z | 2022-02-13T09:03:50.000Z | Web/notifyXAPI/app/src/users/views.py | abs0lut3pwn4g3/RootersCTF2019-challenges | 397a6fad0b03e55541df06e5103172ae850cd4e5 | [
"MIT"
] | 1 | 2019-10-13T07:35:13.000Z | 2019-10-13T08:22:48.000Z | Web/notifyXAPI/app/src/users/views.py | abs0lut3pwn4g3/RootersCTF2019-challenges | 397a6fad0b03e55541df06e5103172ae850cd4e5 | [
"MIT"
] | 4 | 2019-10-13T08:21:43.000Z | 2022-01-09T16:39:33.000Z | ''' User views '''
from datetime import timedelta
from flask import request, jsonify, make_response, redirect, json, render_template
from flask_jwt_extended import (create_access_token, jwt_required)
from flask_restful import Resource
from flask_login import login_user, current_user
from sqlalchemy.exc import Integrit... | 40.571429 | 124 | 0.588348 | 336 | 3,124 | 5.354167 | 0.28869 | 0.073374 | 0.100056 | 0.097276 | 0.367982 | 0.31851 | 0.264591 | 0.223457 | 0.190106 | 0.190106 | 0 | 0.018165 | 0.295134 | 3,124 | 77 | 125 | 40.571429 | 0.798819 | 0.003201 | 0 | 0.274194 | 0 | 0 | 0.08336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048387 | false | 0.064516 | 0.145161 | 0.016129 | 0.451613 | 0.016129 | 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 | 0 | 0 | 0 | 1 |
13ded3828a8c037ea4aa78b91386fb78512809eb | 326 | py | Python | tests/test-recipes/metadata/ignore_some_prefix_files/run_test.py | mbargull/conda-build | ebc56f48196774301863fecbe98a32a7ded6eb7e | [
"BSD-3-Clause"
] | null | null | null | tests/test-recipes/metadata/ignore_some_prefix_files/run_test.py | mbargull/conda-build | ebc56f48196774301863fecbe98a32a7ded6eb7e | [
"BSD-3-Clause"
] | null | null | null | tests/test-recipes/metadata/ignore_some_prefix_files/run_test.py | mbargull/conda-build | ebc56f48196774301863fecbe98a32a7ded6eb7e | [
"BSD-3-Clause"
] | null | null | null | import os
pkgs = os.path.join(os.environ["ROOT"], "pkgs")
info_dir = os.path.join(pkgs, "conda-build-test-ignore-some-prefix-files-1.0-0", "info")
has_prefix_file = os.path.join(info_dir, "has_prefix")
print(info_dir)
assert os.path.isfile(has_prefix_file)
with open(has_prefix_file) as f:
assert "test2" not in f.r... | 32.6 | 88 | 0.733129 | 60 | 326 | 3.816667 | 0.516667 | 0.104803 | 0.131004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013605 | 0.09816 | 326 | 9 | 89 | 36.222222 | 0.765306 | 0 | 0 | 0 | 0 | 0 | 0.226994 | 0.144172 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13e067146d5c409e953e8fe9a97ca674f7b0976f | 2,217 | py | Python | ymir/backend/src/ymir_controller/controller/utils/invoker_mapping.py | phoenix-xhuang/ymir | 537d3ac389c4a365ce4daef431c95b42ddcd5b1b | [
"Apache-2.0"
] | 64 | 2021-11-15T03:48:00.000Z | 2022-03-25T07:08:46.000Z | ymir/backend/src/ymir_controller/controller/utils/invoker_mapping.py | phoenix-xhuang/ymir | 537d3ac389c4a365ce4daef431c95b42ddcd5b1b | [
"Apache-2.0"
] | 35 | 2021-11-23T04:14:35.000Z | 2022-03-26T09:03:43.000Z | ymir/backend/src/ymir_controller/controller/utils/invoker_mapping.py | phoenix-xhuang/ymir | 537d3ac389c4a365ce4daef431c95b42ddcd5b1b | [
"Apache-2.0"
] | 57 | 2021-11-11T10:15:40.000Z | 2022-03-29T07:27:54.000Z | from controller.invoker import (
invoker_cmd_branch_checkout,
invoker_cmd_branch_commit,
invoker_cmd_branch_create,
invoker_cmd_branch_delete,
invoker_cmd_branch_list,
invoker_cmd_evaluate,
invoker_cmd_filter,
invoker_cmd_gpu_info,
invoker_cmd_inference,
invoker_cmd_init,
inv... | 43.470588 | 87 | 0.834461 | 284 | 2,217 | 5.929577 | 0.204225 | 0.243468 | 0.146675 | 0.045131 | 0.273159 | 0.179335 | 0 | 0 | 0 | 0 | 0 | 0.011705 | 0.113667 | 2,217 | 50 | 88 | 44.34 | 0.845293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.041667 | 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 | 0 | 0 | 0 | 1 |
13e10f247a53a809b100dc05b97804f51f30b05a | 463 | py | Python | server/form/mongo.py | SRM-IST-KTR/ossmosis | 06e375dfdd67f91286ffbcb13e04b6543585d8ad | [
"MIT"
] | 6 | 2021-07-04T07:59:17.000Z | 2021-07-04T14:41:00.000Z | server/form/mongo.py | SRM-IST-KTR/ossmosis | 06e375dfdd67f91286ffbcb13e04b6543585d8ad | [
"MIT"
] | null | null | null | server/form/mongo.py | SRM-IST-KTR/ossmosis | 06e375dfdd67f91286ffbcb13e04b6543585d8ad | [
"MIT"
] | 1 | 2022-02-15T13:31:46.000Z | 2022-02-15T13:31:46.000Z | import os
from pymongo import MongoClient
from dotenv import load_dotenv
def database_entry(data):
try:
load_dotenv()
mongo_string = os.getenv('MONGODB_AUTH_URI')
client = MongoClient(mongo_string)
database = client[os.getenv('MONGODB_DB')]
col = database['users']
c... | 21.045455 | 52 | 0.637149 | 56 | 463 | 4.964286 | 0.642857 | 0.071942 | 0.107914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.278618 | 463 | 21 | 53 | 22.047619 | 0.832335 | 0 | 0 | 0 | 0 | 0 | 0.084233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.058824 | 0.176471 | 0 | 0.352941 | 0.058824 | 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 | 0 | 0 | 0 | 1 |
13e74a7f98e6571f4fc714e2743e38c7eafbf58e | 2,607 | py | Python | orthoexon/tests/test_util.py | jessicalettes/orthoexon | 463ad1908364c602cf75dbddb0b16a42f4100a36 | [
"BSD-3-Clause"
] | null | null | null | orthoexon/tests/test_util.py | jessicalettes/orthoexon | 463ad1908364c602cf75dbddb0b16a42f4100a36 | [
"BSD-3-Clause"
] | null | null | null | orthoexon/tests/test_util.py | jessicalettes/orthoexon | 463ad1908364c602cf75dbddb0b16a42f4100a36 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_orthoexon
----------------------------------
Tests for `orthoexon` module.
"""
import os
import pytest
@pytest.fixture
def exon_id_with_quotes():
return "'ENSE00001229068.1'"
@pytest.fixture
def exon_id():
return "ENSE00001229068.1"
def test_separate_... | 23.917431 | 86 | 0.678558 | 287 | 2,607 | 5.965157 | 0.275261 | 0.028037 | 0.079439 | 0.107477 | 0.478388 | 0.271028 | 0.204439 | 0.158879 | 0.136682 | 0.079439 | 0 | 0.048434 | 0.215957 | 2,607 | 109 | 87 | 23.917431 | 0.789139 | 0.221327 | 0 | 0.327273 | 0 | 0 | 0.117588 | 0.057798 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.2 | false | 0 | 0.145455 | 0.109091 | 0.454545 | 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 | 0 | 0 | 0 | 1 |
13efdb45818b7da3afae845201256a86d37c940d | 4,302 | py | Python | Lib/test/libregrtest/utils.py | oskomorokhov/cpython | c0e11a3ceb9427e09db4224f394c7789bf6deec5 | [
"0BSD"
] | 5 | 2017-08-25T04:31:30.000Z | 2022-03-22T15:01:56.000Z | Lib/test/libregrtest/utils.py | oskomorokhov/cpython | c0e11a3ceb9427e09db4224f394c7789bf6deec5 | [
"0BSD"
] | 20 | 2021-03-25T12:52:42.000Z | 2022-03-01T02:02:03.000Z | Lib/test/libregrtest/utils.py | oskomorokhov/cpython | c0e11a3ceb9427e09db4224f394c7789bf6deec5 | [
"0BSD"
] | 3 | 2020-04-13T14:41:31.000Z | 2022-03-02T18:56:32.000Z | import math
import os.path
import sys
import textwrap
from test import support
def format_duration(seconds):
ms = math.ceil(seconds * 1e3)
seconds, ms = divmod(ms, 1000)
minutes, seconds = divmod(seconds, 60)
hours, minutes = divmod(minutes, 60)
parts = []
if hours:
parts.append('%s h... | 22.761905 | 75 | 0.600418 | 510 | 4,302 | 4.933333 | 0.35098 | 0.051669 | 0.085851 | 0.104928 | 0.022258 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009015 | 0.303812 | 4,302 | 188 | 76 | 22.882979 | 0.831052 | 0.125291 | 0 | 0.381295 | 0 | 0 | 0.051701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057554 | false | 0.086331 | 0.035971 | 0 | 0.129496 | 0.035971 | 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 | 0 | 0 | 0 | 1 |
13f954a55ebaa879400311cfe5c32a3993b29137 | 12,933 | py | Python | test/test_rimuhosting.py | shenoyn/libcloud | bd902992a658b6a99193d69323e051ffa7388253 | [
"Apache-2.0"
] | 1 | 2015-11-08T12:59:27.000Z | 2015-11-08T12:59:27.000Z | test/test_rimuhosting.py | shenoyn/libcloud | bd902992a658b6a99193d69323e051ffa7388253 | [
"Apache-2.0"
] | null | null | null | test/test_rimuhosting.py | shenoyn/libcloud | bd902992a658b6a99193d69323e051ffa7388253 | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# libcloud.org licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not... | 45.22028 | 380 | 0.540478 | 1,377 | 12,933 | 4.819898 | 0.28976 | 0.029381 | 0.01808 | 0.021697 | 0.446738 | 0.410125 | 0.361911 | 0.339009 | 0.309779 | 0.309779 | 0 | 0.050881 | 0.341993 | 12,933 | 285 | 381 | 45.378947 | 0.729025 | 0.067115 | 0 | 0.387755 | 0 | 0.036735 | 0.757244 | 0.111831 | 0 | 0 | 0 | 0 | 0.053061 | 1 | 0.053061 | false | 0.004082 | 0.020408 | 0 | 0.106122 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b913259774170b0ae117752589cf379fac40286c | 4,139 | py | Python | easyidp/core/tests/test_class_reconsproject.py | HowcanoeWang/EasyIDP | 0d0a0df1287e3c15cda17e8e4cdcbe05f21f7272 | [
"MIT"
] | null | null | null | easyidp/core/tests/test_class_reconsproject.py | HowcanoeWang/EasyIDP | 0d0a0df1287e3c15cda17e8e4cdcbe05f21f7272 | [
"MIT"
] | null | null | null | easyidp/core/tests/test_class_reconsproject.py | HowcanoeWang/EasyIDP | 0d0a0df1287e3c15cda17e8e4cdcbe05f21f7272 | [
"MIT"
] | null | null | null | import os
import numpy as np
import pytest
import easyidp
from easyidp.core.objects import ReconsProject, Points
from easyidp.io import metashape
module_path = os.path.join(easyidp.__path__[0], "io/tests")
def test_init_reconsproject():
attempt1 = ReconsProject("agisoft")
assert attempt1.software == "metash... | 42.234694 | 112 | 0.723846 | 535 | 4,139 | 5.297196 | 0.293458 | 0.012703 | 0.047636 | 0.063514 | 0.452717 | 0.41602 | 0.357798 | 0.290049 | 0.269584 | 0.162315 | 0 | 0.222932 | 0.167673 | 4,139 | 97 | 113 | 42.670103 | 0.59971 | 0.033341 | 0 | 0.126984 | 0 | 0 | 0.033801 | 0.015023 | 0 | 0 | 0 | 0 | 0.174603 | 1 | 0.063492 | false | 0 | 0.095238 | 0 | 0.15873 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b915eeed88fbfbe46318454fd21bc9db43d6d639 | 6,023 | py | Python | utils/utils_bbox.py | MasoonZhang/FasterRConvMixer | a7a17d00f716a28a5b301088053e00840c222524 | [
"MIT"
] | null | null | null | utils/utils_bbox.py | MasoonZhang/FasterRConvMixer | a7a17d00f716a28a5b301088053e00840c222524 | [
"MIT"
] | null | null | null | utils/utils_bbox.py | MasoonZhang/FasterRConvMixer | a7a17d00f716a28a5b301088053e00840c222524 | [
"MIT"
] | 1 | 2022-03-14T05:29:42.000Z | 2022-03-14T05:29:42.000Z | import numpy as np
import torch
from torch.nn import functional as F
from torchvision.ops import nms
def loc2bbox(src_bbox, loc):
if src_bbox.size()[0] == 0:
return torch.zeros((0, 4), dtype=loc.dtype)
src_width = torch.unsqueeze(src_bbox[:, 2] - src_bbox[:, 0], -1)
src_height = torch.unsqueez... | 45.628788 | 136 | 0.381205 | 601 | 6,023 | 3.567388 | 0.21797 | 0.025187 | 0.020989 | 0.039179 | 0.157183 | 0.102612 | 0.059701 | 0.041978 | 0 | 0 | 0 | 0.028913 | 0.305164 | 6,023 | 131 | 137 | 45.977099 | 0.483393 | 0.267309 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053333 | false | 0 | 0.053333 | 0 | 0.173333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
b923cd998b5a122c2fa8e86b09305b2b291d6507 | 3,873 | py | Python | platformio/commands/home/run.py | Granjow/platformio-core | 71ae579bc07b2e11fec16acda482dea04bc3a359 | [
"Apache-2.0"
] | 4,744 | 2016-11-28T14:37:47.000Z | 2022-03-31T12:35:56.000Z | platformio/commands/home/run.py | Granjow/platformio-core | 71ae579bc07b2e11fec16acda482dea04bc3a359 | [
"Apache-2.0"
] | 3,424 | 2016-11-27T22:45:41.000Z | 2022-03-31T21:40:03.000Z | platformio/commands/home/run.py | Granjow/platformio-core | 71ae579bc07b2e11fec16acda482dea04bc3a359 | [
"Apache-2.0"
] | 576 | 2016-12-01T18:48:22.000Z | 2022-03-30T02:27:35.000Z | # Copyright (c) 2014-present PlatformIO <contact@platformio.org>
#
# 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 appli... | 38.73 | 88 | 0.737155 | 479 | 3,873 | 5.803758 | 0.386221 | 0.060432 | 0.038849 | 0.07482 | 0.103597 | 0.093165 | 0 | 0 | 0 | 0 | 0 | 0.004992 | 0.172476 | 3,873 | 99 | 89 | 39.121212 | 0.862403 | 0.150529 | 0 | 0.028169 | 0 | 0 | 0.079365 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028169 | false | 0 | 0.309859 | 0 | 0.380282 | 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 | 0 | 0 | 0 | 1 |
b925f7b3126896a3611797c97e1fa8d0eee2234c | 564 | py | Python | webscraping.py | carvalho-fdec/DesafioDSA | fec9742bd77ddc3923ed616b6511cce87de48968 | [
"MIT"
] | null | null | null | webscraping.py | carvalho-fdec/DesafioDSA | fec9742bd77ddc3923ed616b6511cce87de48968 | [
"MIT"
] | null | null | null | webscraping.py | carvalho-fdec/DesafioDSA | fec9742bd77ddc3923ed616b6511cce87de48968 | [
"MIT"
] | null | null | null | # webscraping test
import urllib.request
from bs4 import BeautifulSoup
with urllib.request.urlopen('http://www.netvasco.com.br') as url:
page = url.read()
#print(page)
print(url.geturl())
print(url.info())
print(url.getcode())
# Analise o html na variável 'page' e armazene-o no formato Beautiful... | 18.193548 | 74 | 0.687943 | 86 | 564 | 4.465116 | 0.55814 | 0.09375 | 0.109375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006316 | 0.157801 | 564 | 30 | 75 | 18.8 | 0.802105 | 0.216312 | 0 | 0 | 0 | 0 | 0.097448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0.533333 | 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 | 0 | 0 | 1 | 0 | 1 |
b9312660991c249b5bd6faf4ead63f4150e99b7e | 4,915 | py | Python | pysnmp/EXTREME-RTSTATS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/EXTREME-RTSTATS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/EXTREME-RTSTATS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module EXTREME-RTSTATS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/EXTREME-BASE-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:53:03 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, M... | 114.302326 | 713 | 0.790031 | 498 | 4,915 | 7.793173 | 0.25502 | 0.007215 | 0.075754 | 0.013399 | 0.345014 | 0.262304 | 0.172121 | 0.172121 | 0.172121 | 0.168771 | 0 | 0.068882 | 0.075483 | 4,915 | 42 | 714 | 117.02381 | 0.785211 | 0.066938 | 0 | 0 | 0 | 0 | 0.157745 | 0.009613 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b936e2da1dfb0c50e0a4123e54c302664e300cf0 | 4,454 | py | Python | tests/core_ptl/check_for_ranks.py | PatrykNeubauer/NeMo | 3ada744b884dba5f233f22c6991fc6092c6ca8d0 | [
"Apache-2.0"
] | 2 | 2021-09-21T07:36:20.000Z | 2022-02-05T15:29:04.000Z | tests/core_ptl/check_for_ranks.py | PatrykNeubauer/NeMo | 3ada744b884dba5f233f22c6991fc6092c6ca8d0 | [
"Apache-2.0"
] | null | null | null | tests/core_ptl/check_for_ranks.py | PatrykNeubauer/NeMo | 3ada744b884dba5f233f22c6991fc6092c6ca8d0 | [
"Apache-2.0"
] | 12 | 2021-06-20T08:56:10.000Z | 2022-03-16T19:07:10.000Z | # Copyright (c) 2021, NVIDIA CORPORATION. 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 appli... | 28.551282 | 102 | 0.687023 | 604 | 4,454 | 4.836093 | 0.347682 | 0.030811 | 0.012325 | 0.013352 | 0.109552 | 0.05683 | 0.043136 | 0.026703 | 0.026703 | 0 | 0 | 0.005402 | 0.210373 | 4,454 | 155 | 103 | 28.735484 | 0.825135 | 0.141895 | 0 | 0.145833 | 0 | 0 | 0.113738 | 0.032834 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0.041667 | 0.09375 | 0.072917 | 0.4375 | 0.041667 | 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 | 0 | 0 | 0 | 1 |
b93839299c30aa23ab066b85969c7c27e043c202 | 1,143 | py | Python | helpers/json_manager.py | Lofi-Lemonade/Python-Discord-Bot-Template | 4cb79197c751c88100ad396adb38e88bf2a4d1ed | [
"Apache-2.0"
] | null | null | null | helpers/json_manager.py | Lofi-Lemonade/Python-Discord-Bot-Template | 4cb79197c751c88100ad396adb38e88bf2a4d1ed | [
"Apache-2.0"
] | null | null | null | helpers/json_manager.py | Lofi-Lemonade/Python-Discord-Bot-Template | 4cb79197c751c88100ad396adb38e88bf2a4d1ed | [
"Apache-2.0"
] | null | null | null | """"
Copyright © Krypton 2022 - https://github.com/kkrypt0nn (https://krypton.ninja)
Description:
This is a template to create your own discord bot in python.
Version: 4.1
"""
import json
def add_user_to_blacklist(user_id: int) -> None:
"""
This function will add a user based on its ID in the blacklist.json... | 31.75 | 91 | 0.659668 | 181 | 1,143 | 4.071823 | 0.353591 | 0.141113 | 0.086839 | 0.108548 | 0.719132 | 0.708277 | 0.662144 | 0.662144 | 0.559023 | 0.559023 | 0 | 0.012346 | 0.220472 | 1,143 | 35 | 92 | 32.657143 | 0.813692 | 0.433946 | 0 | 0.533333 | 0 | 0 | 0.111296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 1 |
b93a3daf85b033d7039d8c3747eadb457802db6b | 2,814 | py | Python | GeneratePassword/generate_password_v2.py | OneScreenfulOfPython/screenfuls | ea4e378c8d9e530edadd4a3315fe9e8acc98460b | [
"Apache-2.0"
] | 2 | 2015-01-19T14:50:55.000Z | 2015-01-28T12:45:59.000Z | GeneratePassword/generate_password_v2.py | OneScreenfulOfPython/screenfuls | ea4e378c8d9e530edadd4a3315fe9e8acc98460b | [
"Apache-2.0"
] | null | null | null | GeneratePassword/generate_password_v2.py | OneScreenfulOfPython/screenfuls | ea4e378c8d9e530edadd4a3315fe9e8acc98460b | [
"Apache-2.0"
] | null | null | null | import os, sys
import random
import string
try:
# Make Python2 work like Python3
input = raw_input
except NameError:
# On Python3; already using input
pass
letters = string.ascii_letters
numbers = string.digits
punctuation = string.punctuation
def generate(password_length, at_least_one_letter, at_lea... | 33.5 | 108 | 0.658138 | 369 | 2,814 | 4.821138 | 0.365854 | 0.086565 | 0.123665 | 0.062957 | 0.229342 | 0.106802 | 0.106802 | 0.106802 | 0.084317 | 0.084317 | 0 | 0.001428 | 0.253376 | 2,814 | 83 | 109 | 33.903614 | 0.845312 | 0.327292 | 0 | 0.046512 | 0 | 0 | 0.074878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0.255814 | 0.069767 | 0 | 0.116279 | 0.023256 | 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 | 0 | 0 | 0 | 1 |
b93b21d31a5eecb527d2b3ad7f00cf5d4683d661 | 1,535 | py | Python | forms.py | lennykioko/Flask-social-network | 15bfe1f7dca90074c0cbef62c5da9d5a25b5ce65 | [
"MIT"
] | 1 | 2018-04-15T19:35:54.000Z | 2018-04-15T19:35:54.000Z | forms.py | lennykioko/Flask-social-network | 15bfe1f7dca90074c0cbef62c5da9d5a25b5ce65 | [
"MIT"
] | null | null | null | forms.py | lennykioko/Flask-social-network | 15bfe1f7dca90074c0cbef62c5da9d5a25b5ce65 | [
"MIT"
] | null | null | null | # forms are not just about display, instead they are more of validation
# wtf forms protect our site against csrf attacks
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, TextAreaField
from wtforms.validators import (DataRequired, Regexp, ValidationError, Email,
Length, EqualTo... | 25.583333 | 85 | 0.712704 | 171 | 1,535 | 6.362573 | 0.48538 | 0.141544 | 0.082721 | 0.03125 | 0.334559 | 0.240809 | 0.152574 | 0.152574 | 0 | 0 | 0 | 0.003891 | 0.162866 | 1,535 | 59 | 86 | 26.016949 | 0.842802 | 0.084691 | 0 | 0.222222 | 0 | 0 | 0.172734 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0.155556 | 0.088889 | 0 | 0.355556 | 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 | 0 | 0 | 0 | 1 |
b9421dbb7e263a5a3de9a9e29e270b09ceba630c | 1,004 | py | Python | django_events/users/management/commands/create_default_su.py | chrisBrookes93/django-events-management | 93886448a7bb85c8758324977ff67bcacc80bbec | [
"MIT"
] | null | null | null | django_events/users/management/commands/create_default_su.py | chrisBrookes93/django-events-management | 93886448a7bb85c8758324977ff67bcacc80bbec | [
"MIT"
] | null | null | null | django_events/users/management/commands/create_default_su.py | chrisBrookes93/django-events-management | 93886448a7bb85c8758324977ff67bcacc80bbec | [
"MIT"
] | null | null | null | from django.core.management.base import BaseCommand
from django.contrib.auth import get_user_model
class Command(BaseCommand):
help = "Creates a default super user if one doesn't already exist. " \
"This is designed to be used in the docker-compose.yml to create an initial super user on deploymen... | 41.833333 | 114 | 0.661355 | 129 | 1,004 | 5.069767 | 0.581395 | 0.03211 | 0.055046 | 0.058104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1,004 | 23 | 115 | 43.652174 | 0.868526 | 0.111554 | 0 | 0 | 0 | 0.076923 | 0.387214 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.153846 | 0.153846 | 0 | 0.384615 | 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 | 0 | 0 | 0 | 1 |
b942ff3dafb5c886434a478e8bfb0592e83afd1c | 6,215 | bzl | Python | antlir/bzl/image_layer.bzl | zeroxoneb/antlir | 811d88965610d16a5c85d831d317f087797ca732 | [
"MIT"
] | 28 | 2020-08-11T16:22:46.000Z | 2022-03-04T15:41:52.000Z | antlir/bzl/image_layer.bzl | zeroxoneb/antlir | 811d88965610d16a5c85d831d317f087797ca732 | [
"MIT"
] | 137 | 2020-08-11T16:07:49.000Z | 2022-02-27T10:59:05.000Z | antlir/bzl/image_layer.bzl | zeroxoneb/antlir | 811d88965610d16a5c85d831d317f087797ca732 | [
"MIT"
] | 10 | 2020-09-10T00:01:28.000Z | 2022-03-08T18:00:28.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
An `image.layer` is a set of `feature` with some additional parameters. Its
purpose to materialize those `feature`s as a btrfs subvolume ... | 44.078014 | 79 | 0.740628 | 950 | 6,215 | 4.774737 | 0.374737 | 0.039683 | 0.016534 | 0.011905 | 0.037037 | 0.037037 | 0.037037 | 0.037037 | 0.037037 | 0.020723 | 0 | 0 | 0.20177 | 6,215 | 140 | 80 | 44.392857 | 0.914332 | 0.8428 | 0 | 0 | 0 | 0 | 0.157596 | 0.080499 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0 | 0 | 0.04 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9458ab72f55b4db845f6d76e44dba3b00e000ed | 6,265 | py | Python | src/features/v3/proc_v3_n1_calc_distance.py | askoki/nfl_dpi_prediction | dc3256f24ddc0b6725eace2081d1fb1a7e5ce805 | [
"MIT"
] | null | null | null | src/features/v3/proc_v3_n1_calc_distance.py | askoki/nfl_dpi_prediction | dc3256f24ddc0b6725eace2081d1fb1a7e5ce805 | [
"MIT"
] | null | null | null | src/features/v3/proc_v3_n1_calc_distance.py | askoki/nfl_dpi_prediction | dc3256f24ddc0b6725eace2081d1fb1a7e5ce805 | [
"MIT"
] | null | null | null | import os
import sys
import pandas as pd
from datetime import datetime
from settings import RAW_DATA_DIR, DataV3, DATA_V3_SUBVERSION
from src.features.helpers.processing import add_missing_timestamp_values
from src.features.helpers.processing_v3 import get_closest_players, get_players_and_ball_indices, calculate_distan... | 35.596591 | 119 | 0.675499 | 934 | 6,265 | 4.17666 | 0.217345 | 0.017688 | 0.020508 | 0.015381 | 0.277108 | 0.136632 | 0.102538 | 0.067931 | 0.058703 | 0.044348 | 0 | 0.009312 | 0.194413 | 6,265 | 175 | 120 | 35.8 | 0.763622 | 0.03336 | 0 | 0.095588 | 0 | 0 | 0.168788 | 0.013721 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.051471 | 0.058824 | 0 | 0.058824 | 0.073529 | 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 | 0 | 0 | 0 | 1 |
b9475ee1123a7f8c87eb161ddf2246d4b5a64a79 | 1,847 | py | Python | fst_web/demo_settings.py | kamidev/autobuild_fst | 6baffa955075ffe3c5f197789e9fd065fa74058e | [
"BSD-3-Clause"
] | null | null | null | fst_web/demo_settings.py | kamidev/autobuild_fst | 6baffa955075ffe3c5f197789e9fd065fa74058e | [
"BSD-3-Clause"
] | null | null | null | fst_web/demo_settings.py | kamidev/autobuild_fst | 6baffa955075ffe3c5f197789e9fd065fa74058e | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import os
ROOT = os.path.abspath(os.path.dirname(__file__))
path = lambda *args: os.path.join(ROOT, *args)
""" Template for local settings of the FST webservice (fst_web)
Please edit this file and replace all generic values with values suitable to
your particular installation.
"""
# NOTE! Al... | 28.415385 | 76 | 0.721711 | 281 | 1,847 | 4.629893 | 0.519573 | 0.023059 | 0.023059 | 0.013836 | 0.047656 | 0.021522 | 0 | 0 | 0 | 0 | 0 | 0.020182 | 0.168381 | 1,847 | 64 | 77 | 28.859375 | 0.826823 | 0.494857 | 0 | 0 | 0 | 0 | 0.226287 | 0.03523 | 0 | 0 | 0 | 0.015625 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b94890b4860019fd993040c0790c0701fc24a0c5 | 2,919 | py | Python | main.py | valurhrafn/chromium-sync | df5e3299d179fc47ff34d1a95409383f46aac4d4 | [
"MIT"
] | 4 | 2017-03-27T02:25:07.000Z | 2021-03-07T21:40:58.000Z | main.py | valurhrafn/chromium-sync | df5e3299d179fc47ff34d1a95409383f46aac4d4 | [
"MIT"
] | null | null | null | main.py | valurhrafn/chromium-sync | df5e3299d179fc47ff34d1a95409383f46aac4d4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Copyright 2007 Google 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... | 30.40625 | 74 | 0.647825 | 363 | 2,919 | 5.121212 | 0.4573 | 0.045186 | 0.051641 | 0.043034 | 0.141474 | 0.124798 | 0.124798 | 0.023669 | 0 | 0 | 0 | 0.006891 | 0.204522 | 2,919 | 95 | 75 | 30.726316 | 0.793712 | 0.378554 | 0 | 0.191489 | 0 | 0 | 0.100338 | 0.027058 | 0 | 0 | 0 | 0.010526 | 0 | 1 | 0.148936 | false | 0.042553 | 0.106383 | 0.021277 | 0.446809 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b95403252db42b0394653a122fd73b2b596e194d | 400 | py | Python | app/main.py | meysam81/sheypoor | aa67e20646ebc4143b83968f60c0b28c2ad340a1 | [
"MIT"
] | null | null | null | app/main.py | meysam81/sheypoor | aa67e20646ebc4143b83968f60c0b28c2ad340a1 | [
"MIT"
] | null | null | null | app/main.py | meysam81/sheypoor | aa67e20646ebc4143b83968f60c0b28c2ad340a1 | [
"MIT"
] | null | null | null | from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from app import api
from app.core.config import config
app = FastAPI(title="Sheypoor")
# Set all CORS enabled origins
app.add_middleware(
CORSMiddleware,
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
... | 21.052632 | 53 | 0.7425 | 51 | 400 | 5.686275 | 0.509804 | 0.075862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145 | 400 | 18 | 54 | 22.222222 | 0.847953 | 0.07 | 0 | 0 | 0 | 0 | 0.02973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 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 | 0 | 0 | 0 | 1 |
b965c021bcb2dac479172708e85ad9ed89f09ef2 | 5,427 | py | Python | View/View.py | MoriokaReimen/ConfigHeaderGenerator | 73ba5d3bd5269d7e6881ec79b6fc0121ff2fb03e | [
"MIT"
] | null | null | null | View/View.py | MoriokaReimen/ConfigHeaderGenerator | 73ba5d3bd5269d7e6881ec79b6fc0121ff2fb03e | [
"MIT"
] | null | null | null | View/View.py | MoriokaReimen/ConfigHeaderGenerator | 73ba5d3bd5269d7e6881ec79b6fc0121ff2fb03e | [
"MIT"
] | null | null | null | import tkinter as tk
import tkinter.messagebox
from Control import Control
class View:
def __init__(self, control : Control.Control):
self.control = control
# Init Window
self.root = tk.Tk()
self.root.title(u"Header File Generator")
self.root.geometry("700x800")
se... | 43.071429 | 112 | 0.629445 | 696 | 5,427 | 4.741379 | 0.136494 | 0.06 | 0.058182 | 0.060606 | 0.763636 | 0.713939 | 0.665758 | 0.638485 | 0.6 | 0.535758 | 0 | 0.015036 | 0.252442 | 5,427 | 125 | 113 | 43.416 | 0.798373 | 0.00995 | 0 | 0.3125 | 0 | 0 | 0.054583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.010417 | 0.03125 | 0 | 0.104167 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 1 |
b967ba0197b144171458b230c2dfe31844ba0b72 | 5,231 | py | Python | dags/download_decrypt_transfer_files.py | hms-dbmi/bch-pic-sure-airflow-dags | 0c1e6f07da4e270581942e551ac30284474921d4 | [
"Apache-2.0"
] | null | null | null | dags/download_decrypt_transfer_files.py | hms-dbmi/bch-pic-sure-airflow-dags | 0c1e6f07da4e270581942e551ac30284474921d4 | [
"Apache-2.0"
] | null | null | null | dags/download_decrypt_transfer_files.py | hms-dbmi/bch-pic-sure-airflow-dags | 0c1e6f07da4e270581942e551ac30284474921d4 | [
"Apache-2.0"
] | null | null | null | """
@author: anilkdegala
"""
import os
from airflow import DAG
from airflow.operators.bash_operator import BashOperator
from airflow.operators.python_operator import PythonOperator, BranchPythonOperator
from datetime import date, timedelta, datetime
from collections import OrderedDict
from scripts.dag_pebbles import ... | 30.770588 | 171 | 0.664118 | 585 | 5,231 | 5.586325 | 0.218803 | 0.055692 | 0.066095 | 0.025704 | 0.250306 | 0.222766 | 0.168605 | 0.146573 | 0.083843 | 0.083843 | 0 | 0.002979 | 0.229975 | 5,231 | 169 | 172 | 30.952663 | 0.808342 | 0.003823 | 0 | 0.201493 | 0 | 0 | 0.208149 | 0.111474 | 0.022388 | 0 | 0 | 0 | 0 | 1 | 0.059701 | false | 0.052239 | 0.074627 | 0 | 0.149254 | 0.074627 | 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 | 0 | 0 | 0 | 1 |
b96b280416f0d557826ffa670a7914f2d45e5fc5 | 526 | py | Python | src/sot_talos_balance/test/test_feet_admittance.py | imaroger/sot-talos-balance | 5e56700b4e105273ecf6feb3474789beac469a77 | [
"BSD-2-Clause"
] | null | null | null | src/sot_talos_balance/test/test_feet_admittance.py | imaroger/sot-talos-balance | 5e56700b4e105273ecf6feb3474789beac469a77 | [
"BSD-2-Clause"
] | null | null | null | src/sot_talos_balance/test/test_feet_admittance.py | imaroger/sot-talos-balance | 5e56700b4e105273ecf6feb3474789beac469a77 | [
"BSD-2-Clause"
] | null | null | null | '''Test feet admittance control'''
from sot_talos_balance.utils.run_test_utils import run_ft_calibration, run_test, runCommandClient
try:
# Python 2
input = raw_input # noqa
except NameError:
pass
run_test('appli_feet_admittance.py')
run_ft_calibration('robot.ftc')
input("Wait before running the test")
... | 25.047619 | 97 | 0.752852 | 79 | 526 | 4.822785 | 0.556962 | 0.047244 | 0.055118 | 0.052493 | 0.028871 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030369 | 0.123574 | 526 | 20 | 98 | 26.3 | 0.796095 | 0.081749 | 0 | 0 | 0 | 0.083333 | 0.42437 | 0.17437 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.083333 | 0 | 0.083333 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b96d766a7c5eab27eb3785b1277b6beccda7c9ed | 1,446 | py | Python | auth/tests/test_views.py | asb29/Redundant | ee816fd41f9217610bd11f757cf9175288723c70 | [
"MIT"
] | null | null | null | auth/tests/test_views.py | asb29/Redundant | ee816fd41f9217610bd11f757cf9175288723c70 | [
"MIT"
] | null | null | null | auth/tests/test_views.py | asb29/Redundant | ee816fd41f9217610bd11f757cf9175288723c70 | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.test import Client
class RegisterTestCase(TestCase):
def test_register(self):
c = Client()
# on success redirects to /
response = c.post('/accounts/register/', {
'username': 'asdas',
'password1': 'asdasdasd12',
... | 30.125 | 52 | 0.53527 | 116 | 1,446 | 6.62931 | 0.37931 | 0.058518 | 0.084525 | 0.136541 | 0.563069 | 0.453836 | 0.117035 | 0 | 0 | 0 | 0 | 0.037344 | 0.333333 | 1,446 | 47 | 53 | 30.765957 | 0.760373 | 0.076763 | 0 | 0.571429 | 0 | 0 | 0.258841 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.028571 | false | 0.285714 | 0.057143 | 0 | 0.114286 | 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 | 0 | 0 | 0 | 1 |
b974d5d1bd35654f50415a8f7c66f3fb9a0316ab | 704 | py | Python | tests/test_formatter.py | hbraux/kafkacli | 5f7ed23150932b66b484fb43dd6210b6c0968776 | [
"MIT"
] | null | null | null | tests/test_formatter.py | hbraux/kafkacli | 5f7ed23150932b66b484fb43dd6210b6c0968776 | [
"MIT"
] | null | null | null | tests/test_formatter.py | hbraux/kafkacli | 5f7ed23150932b66b484fb43dd6210b6c0968776 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import pytest
import json
from kafkacli.formatter import Formatter
sampleJson = json.loads('{"a":"s", "b":1}')
def test_print_default(capsys):
Formatter().print(sampleJson)
captured = capsys.readouterr()
assert captured.out == '{"a": "s", "b": 1}\n... | 24.275862 | 62 | 0.640625 | 96 | 704 | 4.635417 | 0.395833 | 0.013483 | 0.080899 | 0.195506 | 0.4 | 0.4 | 0.4 | 0.4 | 0.4 | 0 | 0 | 0.02911 | 0.170455 | 704 | 28 | 63 | 25.142857 | 0.732877 | 0.059659 | 0 | 0.166667 | 0 | 0.055556 | 0.183333 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.222222 | 0 | 0.388889 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b975e6fb7fb3fa8849afb4e4ce41618c2ce94c1b | 451 | py | Python | src/test/tests/unit/protocol.py | ylee88/visit | 8e0920996d84fef70a7014b0d770360918d849d5 | [
"BSD-3-Clause"
] | 1 | 2022-01-27T23:52:04.000Z | 2022-01-27T23:52:04.000Z | src/test/tests/unit/protocol.py | ylee88/visit | 8e0920996d84fef70a7014b0d770360918d849d5 | [
"BSD-3-Clause"
] | null | null | null | src/test/tests/unit/protocol.py | ylee88/visit | 8e0920996d84fef70a7014b0d770360918d849d5 | [
"BSD-3-Clause"
] | null | null | null | # ----------------------------------------------------------------------------
# CLASSES: nightly
#
# Test Case: protocolo.py
#
# Tests: vistprotocol unit test
#
# Mark C. Miller, Tue Jan 11 10:19:23 PST 2011
# ----------------------------------------------------------------------------
tapp = visit_bin_path(... | 26.529412 | 78 | 0.432373 | 44 | 451 | 4.340909 | 0.886364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049223 | 0.144124 | 451 | 16 | 79 | 28.1875 | 0.445596 | 0.618625 | 0 | 0 | 0 | 0 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b97d4675d330154e0b12b91fbd601affd888ea29 | 1,901 | py | Python | examples/airflow/dags/etl_orders_7_days.py | phixMe/marquez | 06d71635369893b371a8a9c9e7023f11d7cbb1f8 | [
"Apache-2.0"
] | null | null | null | examples/airflow/dags/etl_orders_7_days.py | phixMe/marquez | 06d71635369893b371a8a9c9e7023f11d7cbb1f8 | [
"Apache-2.0"
] | null | null | null | examples/airflow/dags/etl_orders_7_days.py | phixMe/marquez | 06d71635369893b371a8a9c9e7023f11d7cbb1f8 | [
"Apache-2.0"
] | null | null | null | from datetime import datetime
from marquez_airflow import DAG
from airflow.operators.postgres_operator import PostgresOperator
from airflow.utils.dates import days_ago
default_args = {
'owner': 'datascience',
'depends_on_past': False,
'start_date': days_ago(1),
'email_on_failure': False,
'email_on_... | 29.246154 | 135 | 0.681746 | 270 | 1,901 | 4.533333 | 0.318519 | 0.044118 | 0.093137 | 0.044118 | 0.105392 | 0.07598 | 0.07598 | 0 | 0 | 0 | 0 | 0.008136 | 0.224093 | 1,901 | 64 | 136 | 29.703125 | 0.821695 | 0 | 0 | 0.137931 | 0 | 0.017241 | 0.635455 | 0.012099 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 0 | 0.068966 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b980be1e0d2b8db749e25a4f49c35cdddbdca9d9 | 1,650 | py | Python | tt/urls.py | samiksha-patil/Knowledge-Sharing-Platform | 22e61a659d5ad63fe656fa639dc897cbdebad4fe | [
"bzip2-1.0.6"
] | 1 | 2021-05-09T08:18:49.000Z | 2021-05-09T08:18:49.000Z | tt/urls.py | samiksha-patil/Knowledge-Sharing-Platform | 22e61a659d5ad63fe656fa639dc897cbdebad4fe | [
"bzip2-1.0.6"
] | 9 | 2021-03-19T01:11:35.000Z | 2022-03-12T00:20:13.000Z | tt/urls.py | samiksha-patil/Knowledge-Sharing-Platform | 22e61a659d5ad63fe656fa639dc897cbdebad4fe | [
"bzip2-1.0.6"
] | null | null | null | """
tt URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | 35.869565 | 100 | 0.726061 | 243 | 1,650 | 4.835391 | 0.316872 | 0.051064 | 0.012766 | 0.020426 | 0.138723 | 0.099574 | 0.06383 | 0 | 0 | 0 | 0 | 0.00569 | 0.147879 | 1,650 | 46 | 101 | 35.869565 | 0.830014 | 0.428485 | 0 | 0 | 0 | 0 | 0.149733 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.368421 | 0 | 0.368421 | 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 | 0 | 0 | 0 | 1 |
b997c70668ace413cc27502883f737e007e56239 | 1,006 | py | Python | Doc/includes/sqlite3/load_extension.py | livioso/cpython | 077061a7b24917aaf31057885c69919c5a553c88 | [
"PSF-2.0"
] | 36 | 2019-06-07T20:44:06.000Z | 2022-03-23T06:19:43.000Z | Doc/includes/sqlite3/load_extension.py | livioso/cpython | 077061a7b24917aaf31057885c69919c5a553c88 | [
"PSF-2.0"
] | 49 | 2016-02-29T17:59:52.000Z | 2019-05-05T04:59:26.000Z | Doc/includes/sqlite3/load_extension.py | livioso/cpython | 077061a7b24917aaf31057885c69919c5a553c88 | [
"PSF-2.0"
] | 28 | 2019-06-27T04:11:27.000Z | 2022-03-11T06:27:44.000Z | import sqlite3
con = sqlite3.connect(":memory:")
# enable extension loading
con.enable_load_extension(True)
# Load the fulltext search extension
con.execute("select load_extension('./fts3.so')")
# alternatively you can load the extension using an API call:
# con.load_extension("./fts3.so")
# disable extension load... | 37.259259 | 104 | 0.744533 | 131 | 1,006 | 5.671756 | 0.465649 | 0.121131 | 0.086137 | 0.107672 | 0.239569 | 0.239569 | 0.239569 | 0 | 0 | 0 | 0 | 0.005794 | 0.142147 | 1,006 | 26 | 105 | 38.692308 | 0.855156 | 0.206759 | 0 | 0 | 0 | 0 | 0.723135 | 0.034134 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b999aec7c34874ef90e0f30812ac97217ce90cca | 3,145 | py | Python | emoji.py | notagoat/Deepmoji | 1ab922306c3647f9c7ea98caa2660a53b18fe4b6 | [
"MIT"
] | 1 | 2020-03-19T20:09:00.000Z | 2020-03-19T20:09:00.000Z | emoji.py | notagoat/Deepmoji | 1ab922306c3647f9c7ea98caa2660a53b18fe4b6 | [
"MIT"
] | null | null | null | emoji.py | notagoat/Deepmoji | 1ab922306c3647f9c7ea98caa2660a53b18fe4b6 | [
"MIT"
] | null | null | null | import requests
import urllib.request
import os.path
import shutil
import csv
def main():
with open("data.csv") as i: #Open the data.csv file
instances = i.readlines() #Write them into memory
instances = [x.strip() for x in instances] #Strip any weird issues from writing
instances.sort() #Sort t... | 37.440476 | 151 | 0.574245 | 418 | 3,145 | 4.289474 | 0.373206 | 0.020078 | 0.047407 | 0.050195 | 0.139431 | 0.070273 | 0 | 0 | 0 | 0 | 0 | 0.001403 | 0.320191 | 3,145 | 83 | 152 | 37.891566 | 0.837231 | 0.294118 | 0 | 0.430556 | 0 | 0 | 0.114299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.111111 | 0.069444 | 0 | 0.125 | 0.138889 | 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 | 0 | 0 | 0 | 1 |
b99add86778172fa08bc930ed29f8f26a88ec4d3 | 943 | py | Python | String/640.One Edit Distance/Solution_DP.py | Zhenye-Na/LxxxCode | afd79d790d0a7495d75e6650f80adaa99bd0ff07 | [
"MIT"
] | 12 | 2019-05-04T04:21:27.000Z | 2022-03-02T07:06:57.000Z | String/640.One Edit Distance/Solution_DP.py | Zhenye-Na/LxxxCode | afd79d790d0a7495d75e6650f80adaa99bd0ff07 | [
"MIT"
] | 1 | 2019-07-24T18:43:53.000Z | 2019-07-24T18:43:53.000Z | String/640.One Edit Distance/Solution_DP.py | Zhenye-Na/LxxxCode | afd79d790d0a7495d75e6650f80adaa99bd0ff07 | [
"MIT"
] | 10 | 2019-07-01T04:03:04.000Z | 2022-03-09T03:57:37.000Z | class Solution:
"""
@param s: a string
@param t: a string
@return: true if they are both one edit distance apart or false
"""
def isOneEditDistance(self, s, t):
# write your code here
if s == t:
return False
if abs(len(s) - len(t)) > 1:
return Fal... | 29.46875 | 81 | 0.341463 | 149 | 943 | 2.154362 | 0.275168 | 0.056075 | 0.056075 | 0.049844 | 0.165109 | 0.165109 | 0.158879 | 0.158879 | 0.158879 | 0.158879 | 0 | 0.076446 | 0.486744 | 943 | 31 | 82 | 30.419355 | 0.586777 | 0.130435 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9a767c55418efb8b98d12205d59e512ca419081 | 1,860 | py | Python | blobStore.py | odeke-em/resty | 838934033e7eeca521e8c6d8cb2e99778beaa4b9 | [
"Apache-2.0"
] | null | null | null | blobStore.py | odeke-em/resty | 838934033e7eeca521e8c6d8cb2e99778beaa4b9 | [
"Apache-2.0"
] | null | null | null | blobStore.py | odeke-em/resty | 838934033e7eeca521e8c6d8cb2e99778beaa4b9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Author: Emmanuel Odeke <odeke@ualberta.ca>
# This example steps you through using resty & restAssured to save pickled/serialized
# data as a blob and then later re-using it in after deserialization.
# Sample usage might be in collaborative computing ie publish results from an expensive
# compu... | 31 | 87 | 0.7 | 234 | 1,860 | 5.529915 | 0.478632 | 0.009274 | 0.01391 | 0.025502 | 0.341577 | 0.341577 | 0.341577 | 0.341577 | 0.341577 | 0.22102 | 0 | 0.015323 | 0.193011 | 1,860 | 59 | 88 | 31.525424 | 0.846769 | 0.203226 | 0 | 0.292683 | 0 | 0 | 0.088076 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 1 | 0.097561 | false | 0.195122 | 0.073171 | 0 | 0.170732 | 0.146341 | 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 | 0 | 0 | 0 | 1 |
b9a7d3f5b98af28c51ffb55578408fad9a1d3f99 | 3,066 | py | Python | venv/Lib/site-packages/dataframe/_dataframe_column_set.py | kavanAdeshara/Expense_Tracker | b3e4810e858a7786e05cda6b91ba674b73b87981 | [
"Apache-2.0"
] | null | null | null | venv/Lib/site-packages/dataframe/_dataframe_column_set.py | kavanAdeshara/Expense_Tracker | b3e4810e858a7786e05cda6b91ba674b73b87981 | [
"Apache-2.0"
] | null | null | null | venv/Lib/site-packages/dataframe/_dataframe_column_set.py | kavanAdeshara/Expense_Tracker | b3e4810e858a7786e05cda6b91ba674b73b87981 | [
"Apache-2.0"
] | null | null | null | # dataframe: a data-frame implementation using method piping
#
# Copyright (C) 2016 Simon Dirmeier
#
# This file is part of dataframe.
#
# dataframe is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either versi... | 30.356436 | 71 | 0.63242 | 405 | 3,066 | 4.62963 | 0.377778 | 0.0384 | 0.072 | 0.036267 | 0.080533 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0.004906 | 0.268754 | 3,066 | 100 | 72 | 30.66 | 0.831401 | 0.302022 | 0 | 0.105263 | 0 | 0 | 0.050986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.070175 | 0.070175 | 0.438596 | 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 | 0 | 0 | 0 | 1 |
b9bb675bdbf31f94537da2d2380efe251bd20dd2 | 1,036 | py | Python | rest_auth/registration/urls.py | soul4code/django-rest-auth | b7a2e06e7736865b18f6aab79dcd42210e06c28b | [
"MIT"
] | null | null | null | rest_auth/registration/urls.py | soul4code/django-rest-auth | b7a2e06e7736865b18f6aab79dcd42210e06c28b | [
"MIT"
] | null | null | null | rest_auth/registration/urls.py | soul4code/django-rest-auth | b7a2e06e7736865b18f6aab79dcd42210e06c28b | [
"MIT"
] | null | null | null | from django.urls import re_path
from django.views.generic import TemplateView
from .views import RegisterView, VerifyEmailView
urlpatterns = [
re_path(r'^$', RegisterView.as_view(), name='rest_register'),
re_path(r'^verify-email/$', VerifyEmailView.as_view(), name='rest_verify_email'),
# This url is use... | 41.44 | 100 | 0.721042 | 150 | 1,036 | 4.886667 | 0.56 | 0.032742 | 0.028649 | 0.038199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17278 | 1,036 | 24 | 101 | 43.166667 | 0.855309 | 0.532819 | 0 | 0 | 0 | 0 | 0.230444 | 0.131078 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
b9cea3f3b51bf703897e952ed45d88260e3502a1 | 1,190 | py | Python | dd_app/messaging/backend.py | datadealer/dd_app | 3806b9b9df165a49f0fca8a249170b4ccd4d0177 | [
"Artistic-2.0"
] | 2 | 2018-12-17T10:10:49.000Z | 2018-12-17T11:18:32.000Z | dd_app/messaging/backend.py | datadealer/dd_app | 3806b9b9df165a49f0fca8a249170b4ccd4d0177 | [
"Artistic-2.0"
] | null | null | null | dd_app/messaging/backend.py | datadealer/dd_app | 3806b9b9df165a49f0fca8a249170b4ccd4d0177 | [
"Artistic-2.0"
] | 1 | 2021-06-06T22:28:12.000Z | 2021-06-06T22:28:12.000Z | class RedisBackend(object):
def __init__(self, settings={}, *args, **kwargs):
self.settings = settings
@property
def connection(self):
# cached redis connection
if not hasattr(self, '_connection'):
self._connection = self.settings.get('redis.connector').get()
re... | 28.333333 | 73 | 0.608403 | 131 | 1,190 | 5.381679 | 0.351145 | 0.139007 | 0.085106 | 0.04539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001185 | 0.290756 | 1,190 | 41 | 74 | 29.02439 | 0.834123 | 0.094118 | 0 | 0.074074 | 0 | 0 | 0.042017 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.296296 | false | 0 | 0 | 0.074074 | 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 | 0 | 0 | 0 | 0 | 1 |
b9d22fbf764d6a06a81fe68e7bedb0cb2069ff17 | 2,360 | py | Python | mpl/models/leaf.py | jiangyuang/ModelPruningLibrary | 9c8ba5a3c5d118f37768d5d42254711f48d88745 | [
"MIT"
] | 13 | 2020-02-24T16:57:37.000Z | 2021-12-14T16:47:41.000Z | mpl/models/leaf.py | jiangyuang/ModelPruningLibrary | 9c8ba5a3c5d118f37768d5d42254711f48d88745 | [
"MIT"
] | 3 | 2021-01-08T14:06:33.000Z | 2021-09-07T13:39:46.000Z | mpl/models/leaf.py | jiangyuang/ModelPruningLibrary | 9c8ba5a3c5d118f37768d5d42254711f48d88745 | [
"MIT"
] | 3 | 2020-05-30T17:59:43.000Z | 2021-04-13T04:55:33.000Z | from torch import nn as nn
from .base_model import BaseModel
from ..nn.conv2d import DenseConv2d
from ..nn.linear import DenseLinear
__all__ = ["Conv2", "conv2", "Conv4", "conv4"]
class Conv2(BaseModel):
def __init__(self):
super(Conv2, self).__init__()
self.features = nn.Sequential(DenseConv2d(... | 36.307692 | 96 | 0.469068 | 235 | 2,360 | 4.578723 | 0.255319 | 0.055762 | 0.066915 | 0.048327 | 0.597584 | 0.515799 | 0.515799 | 0.435874 | 0.435874 | 0.368959 | 0 | 0.093658 | 0.425424 | 2,360 | 64 | 97 | 36.875 | 0.699853 | 0.025424 | 0 | 0.5 | 0 | 0 | 0.008718 | 0 | 0 | 0 | 0 | 0.015625 | 0 | 1 | 0.125 | false | 0 | 0.083333 | 0.041667 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9d992fc9c803eca7ba614c187b28cbfcef4b1f8 | 5,988 | py | Python | scripts/commit_validation/commit_validation/commit_validation.py | cypherdotXd/o3de | bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676 | [
"Apache-2.0",
"MIT"
] | 8 | 2021-08-31T02:14:19.000Z | 2021-12-28T19:20:59.000Z | scripts/commit_validation/commit_validation/commit_validation.py | cypherdotXd/o3de | bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676 | [
"Apache-2.0",
"MIT"
] | 8 | 2021-07-12T13:55:00.000Z | 2021-10-04T14:53:21.000Z | scripts/commit_validation/commit_validation/commit_validation.py | cypherdotXd/o3de | bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-09-16T05:06:18.000Z | 2021-09-16T05:06:18.000Z | #
# Copyright (c) Contributors to the Open 3D Engine Project.
# For complete copyright and license terms please see the LICENSE at the root of this distribution.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
#
#
import abc
import importlib
import os
import pkgutil
import re
import time
from typing import Dict, List, ... | 31.68254 | 124 | 0.631096 | 720 | 5,988 | 5.047222 | 0.3 | 0.04623 | 0.033021 | 0.031646 | 0.168134 | 0.118327 | 0.106219 | 0.042928 | 0.022014 | 0.022014 | 0 | 0.003149 | 0.257515 | 5,988 | 188 | 125 | 31.851064 | 0.814215 | 0.215932 | 0 | 0.125 | 0 | 0 | 0.15374 | 0.056325 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.108333 | 0.066667 | 0 | 0.175 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b9dd82e962e13070a8526b2d4d0da1d0be6265ee | 7,417 | py | Python | src/py65/devices/mpu65c02.py | dabeaz/py65 | 62d790445018f0616508022912b67d8d64935a29 | [
"BSD-3-Clause"
] | 5 | 2015-03-19T22:22:45.000Z | 2020-05-15T18:26:59.000Z | src/py65/devices/mpu65c02.py | BigEd/py65 | 57d5e7191362006c1d6fa20662da3e4854f1b7c2 | [
"BSD-3-Clause"
] | null | null | null | src/py65/devices/mpu65c02.py | BigEd/py65 | 57d5e7191362006c1d6fa20662da3e4854f1b7c2 | [
"BSD-3-Clause"
] | 3 | 2015-04-27T02:42:29.000Z | 2021-07-16T20:50:23.000Z | from py65.devices import mpu6502
from py65.utils.devices import make_instruction_decorator
class MPU(mpu6502.MPU):
def __init__(self, *args, **kwargs):
mpu6502.MPU.__init__(self, *args, **kwargs)
self.name = '65C02'
self.waiting = False
def step(self):
if self.waiting:
... | 27.369004 | 71 | 0.58676 | 949 | 7,417 | 4.528978 | 0.201264 | 0.14658 | 0.047231 | 0.117264 | 0.620754 | 0.427873 | 0.255002 | 0.079107 | 0.079107 | 0.061424 | 0 | 0.050804 | 0.262235 | 7,417 | 270 | 72 | 27.47037 | 0.734649 | 0.011191 | 0 | 0.229665 | 0 | 0 | 0.037259 | 0 | 0 | 0 | 0.009281 | 0 | 0 | 1 | 0.244019 | false | 0 | 0.009569 | 0.009569 | 0.296651 | 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 | 0 | 0 | 0 | 1 |
b9ddc98cf55e2bef4fcf498ec4787ca57bad46d0 | 5,623 | py | Python | tests/test__io.py | soerendip/ms-mint | bf5f5d87d07a0d2108c6cd0d92c278f2ea762e58 | [
"MIT"
] | 1 | 2021-09-03T04:02:25.000Z | 2021-09-03T04:02:25.000Z | tests/test__io.py | soerendip/ms-mint | bf5f5d87d07a0d2108c6cd0d92c278f2ea762e58 | [
"MIT"
] | 3 | 2020-09-29T21:43:39.000Z | 2021-07-21T22:18:27.000Z | tests/test__io.py | soerendip/ms-mint | bf5f5d87d07a0d2108c6cd0d92c278f2ea762e58 | [
"MIT"
] | 4 | 2019-11-14T13:25:24.000Z | 2021-04-30T22:08:53.000Z | import pandas as pd
import shutil
import os
import io
from ms_mint.Mint import Mint
from pathlib import Path as P
from ms_mint.io import (
ms_file_to_df,
mzml_to_pandas_df_pyteomics,
convert_ms_file_to_feather,
convert_ms_file_to_parquet,
MZMLB_AVAILABLE,
)
from paths import (
TEST_MZML,
... | 27.563725 | 81 | 0.634181 | 771 | 5,623 | 4.293126 | 0.143969 | 0.041692 | 0.050755 | 0.045317 | 0.776435 | 0.712387 | 0.676737 | 0.622659 | 0.583988 | 0.583988 | 0 | 0.003273 | 0.239374 | 5,623 | 203 | 82 | 27.699507 | 0.770634 | 0.012627 | 0 | 0.528736 | 0 | 0 | 0.178198 | 0.003784 | 0.005747 | 0 | 0 | 0 | 0.155172 | 1 | 0.068966 | false | 0 | 0.045977 | 0 | 0.12069 | 0.022989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 1 |
b9e0543df8f2ae150950f2a9787edb6296aac618 | 2,482 | py | Python | bluesky/tests/test_simulators.py | NSLS-II/bluesky | b7d666e65cf4ef556fb46b744c33264c8e3f7507 | [
"BSD-3-Clause"
] | 43 | 2015-08-04T20:13:41.000Z | 2019-04-12T17:21:36.000Z | bluesky/tests/test_simulators.py | NSLS-II/bluesky | b7d666e65cf4ef556fb46b744c33264c8e3f7507 | [
"BSD-3-Clause"
] | 966 | 2015-07-29T16:43:21.000Z | 2019-05-09T21:02:28.000Z | bluesky/tests/test_simulators.py | NSLS-II/bluesky | b7d666e65cf4ef556fb46b744c33264c8e3f7507 | [
"BSD-3-Clause"
] | 40 | 2015-07-29T16:42:41.000Z | 2019-02-07T02:30:34.000Z | from bluesky.plans import scan
from bluesky.simulators import (print_summary, print_summary_wrapper,
summarize_plan,
check_limits,
plot_raster_path)
import pytest
from bluesky.plans import grid_scan
def test_print_summary(... | 34 | 76 | 0.636583 | 357 | 2,482 | 4.271709 | 0.268908 | 0.086557 | 0.07082 | 0.068197 | 0.531148 | 0.492459 | 0.372459 | 0.32918 | 0.251803 | 0.199344 | 0 | 0.037695 | 0.251813 | 2,482 | 72 | 77 | 34.472222 | 0.783522 | 0.224013 | 0 | 0.565217 | 0 | 0 | 0.031414 | 0 | 0 | 0 | 0 | 0.013889 | 0.043478 | 1 | 0.108696 | false | 0 | 0.108696 | 0 | 0.217391 | 0.152174 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9e2c12e3855c30001fd37ab610587d3e95c803d | 535 | py | Python | microservices/users/config.py | Levakin/sanic-test-app | d96a54a21f6d0d3b262bbc7bc75f5fa3b12c3b61 | [
"Apache-2.0"
] | null | null | null | microservices/users/config.py | Levakin/sanic-test-app | d96a54a21f6d0d3b262bbc7bc75f5fa3b12c3b61 | [
"Apache-2.0"
] | null | null | null | microservices/users/config.py | Levakin/sanic-test-app | d96a54a21f6d0d3b262bbc7bc75f5fa3b12c3b61 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import os
from distutils.util import strtobool
class Config:
DEBUG = bool(strtobool(os.getenv('DEBUG', "False")))
DATABASE_URI = os.getenv('DATABASE_URI', '127.0.0.1:27017')
WORKERS = int(os.getenv('WORKERS', 2))
LOGO = os.getenv('LOGO', None)
HOST = os.getenv('HOST', '127... | 31.470588 | 63 | 0.646729 | 80 | 535 | 4.2 | 0.4375 | 0.214286 | 0.130952 | 0.035714 | 0.130952 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058166 | 0.164486 | 535 | 16 | 64 | 33.4375 | 0.693512 | 0.039252 | 0 | 0 | 0 | 0 | 0.212891 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 | 0 | 0 | 0 | 1 |
b9e36baa14d5265769af32c8ed910969e39eaf3a | 199 | py | Python | semantic-python/test/fixtures/4-01-lambda-literals.py | Temurson/semantic | 2e9cd2c006cec9a0328791e47d8c6d60af6d5a1b | [
"MIT"
] | 8,844 | 2019-05-31T15:47:12.000Z | 2022-03-31T18:33:51.000Z | semantic-python/test/fixtures/4-01-lambda-literals.py | Qanora/semantic | b0eda9a61bbc690a342fb177cfc12eec8c1c001c | [
"MIT"
] | 401 | 2019-05-31T18:30:26.000Z | 2022-03-31T16:32:29.000Z | semantic-python/test/fixtures/4-01-lambda-literals.py | Qanora/semantic | b0eda9a61bbc690a342fb177cfc12eec8c1c001c | [
"MIT"
] | 504 | 2019-05-31T17:55:03.000Z | 2022-03-30T04:15:04.000Z | # CHECK-TREE: { const <- \x -> \y -> x; y <- const #true #true; z <- const #false #false; #record { const: const, y : y, z: z, }}
const = lambda x, y: x
y = const(True, True)
z = const(False, False)
| 39.8 | 129 | 0.557789 | 34 | 199 | 3.264706 | 0.294118 | 0.072072 | 0.054054 | 0.072072 | 0.594595 | 0.594595 | 0.594595 | 0.594595 | 0.594595 | 0.594595 | 0 | 0 | 0.221106 | 199 | 4 | 130 | 49.75 | 0.716129 | 0.613065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9e707edd4da101ada4ff00b233330f2c2f9843e | 148 | py | Python | abc153/d.py | Lockdef/kyopro-code | 2d943a87987af05122c556e173e5108a0c1c77c8 | [
"MIT"
] | null | null | null | abc153/d.py | Lockdef/kyopro-code | 2d943a87987af05122c556e173e5108a0c1c77c8 | [
"MIT"
] | null | null | null | abc153/d.py | Lockdef/kyopro-code | 2d943a87987af05122c556e173e5108a0c1c77c8 | [
"MIT"
] | null | null | null | h = int(input())
i = 1
a = 1
b = 1
c = 1
while h >= a:
a = 2 ** i
i += 1
s = 0
t = True
for j in range(1, i-1):
c += 2 ** j
print(c)
| 8.705882 | 23 | 0.398649 | 35 | 148 | 1.685714 | 0.542857 | 0.101695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11236 | 0.398649 | 148 | 16 | 24 | 9.25 | 0.550562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9ebcddd99e456fbeb39a0191aad31656c7f4943 | 856 | py | Python | setup.py | EdWard680/python-firetv | 4c02f79a1c8ae60a489297178d010a31545a3b5d | [
"MIT"
] | null | null | null | setup.py | EdWard680/python-firetv | 4c02f79a1c8ae60a489297178d010a31545a3b5d | [
"MIT"
] | null | null | null | setup.py | EdWard680/python-firetv | 4c02f79a1c8ae60a489297178d010a31545a3b5d | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='firetv',
version='1.0.7',
description='Communicate with an Amazon Fire TV device via ADB over a network.',
url='https://github.com/happyleavesaoc/python-firetv/',
license='MIT',
author='happyleaves',
author_email='happyleaves.tfr@gmail.com',
pac... | 30.571429 | 99 | 0.613318 | 91 | 856 | 5.67033 | 0.725275 | 0.062016 | 0.096899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018209 | 0.23014 | 856 | 27 | 100 | 31.703704 | 0.764795 | 0 | 0 | 0 | 0 | 0 | 0.538551 | 0.063084 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.038462 | 0 | 0.038462 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
b9ffb7c6fff3e245dc8ea1ea786cc6f60c2d4cde | 2,427 | py | Python | generator/cache/cache.py | biarmic/OpenCache | bb9e110e434deb83900de328cc76b63901ba582f | [
"BSD-3-Clause"
] | 5 | 2021-09-15T18:29:49.000Z | 2022-03-26T04:41:01.000Z | generator/cache/cache.py | VLSIDA/OpenCache | 0e79bf353c68d57dcc49d78178b12fd0b468f19a | [
"BSD-3-Clause"
] | null | null | null | generator/cache/cache.py | VLSIDA/OpenCache | 0e79bf353c68d57dcc49d78178b12fd0b468f19a | [
"BSD-3-Clause"
] | null | null | null | # See LICENSE for licensing information.
#
# Copyright (c) 2021 Regents of the University of California and The Board
# of Regents for the Oklahoma Agricultural and Mechanical College
# (acting for and on behalf of Oklahoma State University)
# All rights reserved.
#
import debug
import datetime
from policy import assoc... | 33.246575 | 86 | 0.646477 | 311 | 2,427 | 4.884244 | 0.327974 | 0.013167 | 0.050033 | 0.03555 | 0.134299 | 0.060566 | 0.060566 | 0 | 0 | 0 | 0 | 0.003319 | 0.255047 | 2,427 | 73 | 87 | 33.246575 | 0.836836 | 0.217965 | 0 | 0.051282 | 0 | 0 | 0.107817 | 0 | 0 | 0 | 0 | 0.013699 | 0 | 1 | 0.102564 | false | 0 | 0.153846 | 0 | 0.282051 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a00d6b8c83e85268bd294d4e512d54f000cfc8a | 2,843 | py | Python | pytype/tests/py2/test_stdlib.py | souravbadami/pytype | 804fa97e7f9208df2711976085a96f756b3949e6 | [
"Apache-2.0"
] | 1 | 2020-04-20T02:55:21.000Z | 2020-04-20T02:55:21.000Z | pytype/tests/py2/test_stdlib.py | doc22940/pytype | 4772ad6fe89f4df75ae3d08e7374f68074175d4a | [
"Apache-2.0"
] | null | null | null | pytype/tests/py2/test_stdlib.py | doc22940/pytype | 4772ad6fe89f4df75ae3d08e7374f68074175d4a | [
"Apache-2.0"
] | null | null | null | """Tests of selected stdlib functions."""
from pytype.tests import test_base
class StdlibTests(test_base.TargetPython27FeatureTest):
"""Tests for files in typeshed/stdlib."""
def testPosix(self):
ty = self.Infer("""
import posix
x = posix.urandom(10)
""")
self.assertTypesMatchPytd(ty, ""... | 21.869231 | 61 | 0.518115 | 299 | 2,843 | 4.866221 | 0.26087 | 0.03299 | 0.054983 | 0.082474 | 0.468729 | 0.439863 | 0.428179 | 0.428179 | 0.428179 | 0.428179 | 0 | 0.020888 | 0.326416 | 2,843 | 129 | 62 | 22.03876 | 0.738903 | 0.024974 | 0 | 0.616071 | 0 | 0 | 0.604853 | 0.03477 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.089286 | false | 0 | 0.107143 | 0 | 0.205357 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a04d1fd425aed6effcc3e48e1eb103f0872ab5a | 3,621 | py | Python | libqtile/widget/imapwidget.py | akloster/qtile | bd21d0744e177b8ca01ac129081472577d53ed66 | [
"MIT"
] | 1 | 2021-04-05T07:15:37.000Z | 2021-04-05T07:15:37.000Z | libqtile/widget/imapwidget.py | akloster/qtile | bd21d0744e177b8ca01ac129081472577d53ed66 | [
"MIT"
] | 1 | 2022-02-27T12:17:27.000Z | 2022-02-27T12:17:27.000Z | libqtile/widget/imapwidget.py | akloster/qtile | bd21d0744e177b8ca01ac129081472577d53ed66 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2015 David R. Andersen
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, m... | 38.521277 | 98 | 0.67219 | 485 | 3,621 | 4.985567 | 0.472165 | 0.036394 | 0.021092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004681 | 0.233085 | 3,621 | 93 | 99 | 38.935484 | 0.866042 | 0.631041 | 0 | 0.064516 | 0 | 0 | 0.150741 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0.16129 | 0.16129 | 0 | 0.322581 | 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 | 0 | 0 | 0 | 1 |
6a04e4f203740a253735948c968506f6632354e6 | 2,486 | py | Python | game/views/tests/game_definition_view_test.py | dimadk24/english-fight-api | 506a3eb2cb4cb91203b1e023b5248c27975df075 | [
"MIT"
] | null | null | null | game/views/tests/game_definition_view_test.py | dimadk24/english-fight-api | 506a3eb2cb4cb91203b1e023b5248c27975df075 | [
"MIT"
] | null | null | null | game/views/tests/game_definition_view_test.py | dimadk24/english-fight-api | 506a3eb2cb4cb91203b1e023b5248c27975df075 | [
"MIT"
] | null | null | null | from rest_framework.response import Response
from rest_framework.test import APIClient
from game.models import GameDefinition, AppUser
def create_game_definition(api_client: APIClient) -> Response:
return api_client.post("/api/game_definition")
def get_game_definition(api_client: APIClient, game_def_id: str) -... | 35.514286 | 77 | 0.79284 | 382 | 2,486 | 4.657068 | 0.172775 | 0.177066 | 0.210793 | 0.138842 | 0.680157 | 0.639123 | 0.617201 | 0.578977 | 0.578977 | 0.535132 | 0 | 0.011579 | 0.131537 | 2,486 | 69 | 78 | 36.028986 | 0.812413 | 0 | 0 | 0.444444 | 0 | 0 | 0.049879 | 0.013677 | 0 | 0 | 0 | 0 | 0.311111 | 1 | 0.133333 | false | 0 | 0.066667 | 0.044444 | 0.244444 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a0b84b7b59fd4b039d379ec665100c80b070e0d | 1,347 | py | Python | 2. Add Two Numbers DC(12-1-21).py | Dharaneeshwar/Leetcode | cc3ed07f6ac5f4d6e3f60c57a94a06a8be2f5287 | [
"MIT"
] | 4 | 2020-11-17T05:24:24.000Z | 2021-06-14T21:01:45.000Z | 2. Add Two Numbers DC(12-1-21).py | Dharaneeshwar/Leetcode | cc3ed07f6ac5f4d6e3f60c57a94a06a8be2f5287 | [
"MIT"
] | null | null | null | 2. Add Two Numbers DC(12-1-21).py | Dharaneeshwar/Leetcode | cc3ed07f6ac5f4d6e3f60c57a94a06a8be2f5287 | [
"MIT"
] | null | null | null | # Time Complexity - O(n) ; Space Complexity - O(n)
class Solution:
def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode:
carry = 0
out = temp = ListNode()
while l1 is not None and l2 is not None:
tempsum = l1.val + l2.val
tempsum += carry
... | 31.325581 | 76 | 0.400148 | 131 | 1,347 | 4.114504 | 0.236641 | 0.103896 | 0.118738 | 0.083488 | 0.539889 | 0.502783 | 0.502783 | 0.502783 | 0.502783 | 0.502783 | 0 | 0.061129 | 0.526355 | 1,347 | 43 | 77 | 31.325581 | 0.783699 | 0.035635 | 0 | 0.634146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0 | 0 | 0.073171 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a186a13afeea2c9ca39fb78982684eb10c871db | 3,784 | py | Python | bench_fastapi/authentication/controllers/login.py | sharkguto/teste_carga | 56d6e9dcbd3e7b7fe7295d8fcf4b4e8b84943cfb | [
"MIT"
] | 1 | 2021-10-14T07:27:47.000Z | 2021-10-14T07:27:47.000Z | bench_fastapi/authentication/controllers/login.py | sharkguto/teste_carga | 56d6e9dcbd3e7b7fe7295d8fcf4b4e8b84943cfb | [
"MIT"
] | 4 | 2019-08-06T02:26:32.000Z | 2021-06-10T21:39:19.000Z | bench_fastapi/authentication/controllers/login.py | sharkguto/teste_carga | 56d6e9dcbd3e7b7fe7295d8fcf4b4e8b84943cfb | [
"MIT"
] | 1 | 2018-05-11T18:04:41.000Z | 2018-05-11T18:04:41.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# login.py
# @Author : Gustavo Freitas (gustavo@gmf-tech.com)
# @Link :
# @Date : 12/12/2019, 11:43:07 AM
from typing import Optional, Any
from fastapi import APIRouter, Body, Depends, HTTPException
from fastapi import Header, Security
from authentication.models.users... | 29.795276 | 83 | 0.681818 | 496 | 3,784 | 5.08871 | 0.294355 | 0.021395 | 0.022187 | 0.021395 | 0.493265 | 0.443344 | 0.443344 | 0.425515 | 0.385103 | 0.385103 | 0 | 0.014815 | 0.17944 | 3,784 | 126 | 84 | 30.031746 | 0.798068 | 0.075846 | 0 | 0.395349 | 0 | 0 | 0.267355 | 0.055651 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.069767 | 0.162791 | 0 | 0.197674 | 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 | 0 | 0 | 0 | 1 |
6a1f7efcf406b9bcc9bc35cc271b47eed9db309f | 7,998 | py | Python | mod_core.py | nokia-wroclaw/innovativeproject-dbshepherd | f82f3b36caaf9fcd6d28076051cb92458ba2edd3 | [
"MIT"
] | null | null | null | mod_core.py | nokia-wroclaw/innovativeproject-dbshepherd | f82f3b36caaf9fcd6d28076051cb92458ba2edd3 | [
"MIT"
] | null | null | null | mod_core.py | nokia-wroclaw/innovativeproject-dbshepherd | f82f3b36caaf9fcd6d28076051cb92458ba2edd3 | [
"MIT"
] | 1 | 2020-02-05T20:02:15.000Z | 2020-02-05T20:02:15.000Z | import re
import os
import cmd
import sys
import common
from getpass import getpass
from kp import KeePassError, get_password
from configmanager import ConfigManager, ConfigManagerError
common.init()
class ParseArgsException(Exception):
def __init__(self, msg):
self.msg = msg
class ModuleCore(cmd.Cmd):
def __... | 29.512915 | 132 | 0.635159 | 1,039 | 7,998 | 4.805582 | 0.256015 | 0.006008 | 0.01442 | 0.016223 | 0.286 | 0.276387 | 0.231925 | 0.187863 | 0.175446 | 0.175446 | 0 | 0.0048 | 0.218555 | 7,998 | 271 | 133 | 29.512915 | 0.79408 | 0.147162 | 0 | 0.348416 | 0 | 0 | 0.102377 | 0.005542 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081448 | false | 0.072398 | 0.036199 | 0.013575 | 0.180995 | 0.153846 | 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 | 0 | 0 | 0 | 1 |
6a315f9411feef2bef3f2cfb2fab79f19fe80e02 | 7,842 | py | Python | weaver/wps_restapi/quotation/quotes.py | crim-ca/weaver | 107fec5e19f20b77061b9405a764da911d2db8a2 | [
"Apache-2.0"
] | 16 | 2019-03-18T12:23:05.000Z | 2022-02-25T00:39:11.000Z | weaver/wps_restapi/quotation/quotes.py | crim-ca/weaver | 107fec5e19f20b77061b9405a764da911d2db8a2 | [
"Apache-2.0"
] | 346 | 2019-03-06T21:05:04.000Z | 2022-03-31T13:38:37.000Z | weaver/wps_restapi/quotation/quotes.py | crim-ca/weaver | 107fec5e19f20b77061b9405a764da911d2db8a2 | [
"Apache-2.0"
] | 5 | 2019-03-15T01:38:28.000Z | 2021-11-11T15:38:43.000Z | import logging
import random
from datetime import timedelta
from typing import TYPE_CHECKING
from duration import to_iso8601
from pyramid.httpexceptions import HTTPBadRequest, HTTPCreated, HTTPNotFound, HTTPOk
from weaver import sort
from weaver.config import WEAVER_CONFIGURATION_ADES, WEAVER_CONFIGURATION_EMS, get_w... | 43.810056 | 119 | 0.718822 | 968 | 7,842 | 5.568182 | 0.206612 | 0.025974 | 0.023748 | 0.016883 | 0.311317 | 0.284972 | 0.219666 | 0.200557 | 0.167532 | 0.156957 | 0 | 0.003418 | 0.179291 | 7,842 | 178 | 120 | 44.05618 | 0.834058 | 0.080719 | 0 | 0.130769 | 0 | 0 | 0.067594 | 0 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.038462 | false | 0 | 0.153846 | 0 | 0.238462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a31701fc7c063904134f212988d1c0c79559f82 | 6,722 | py | Python | pysnmp/CISCO-VSI-CONTROLLER-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/CISCO-VSI-CONTROLLER-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/CISCO-VSI-CONTROLLER-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCO-VSI-CONTROLLER-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-VSI-CONTROLLER-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:03:33 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.... | 105.03125 | 883 | 0.759298 | 739 | 6,722 | 6.903924 | 0.197564 | 0.012544 | 0.01176 | 0.014896 | 0.356919 | 0.253038 | 0.217758 | 0.217758 | 0.217758 | 0.215602 | 0 | 0.070471 | 0.090152 | 6,722 | 63 | 884 | 106.698413 | 0.763734 | 0.050878 | 0 | 0.09434 | 0 | 0 | 0.1849 | 0.063569 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.132075 | 0 | 0.283019 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a415615b9b2bc4e4bdf10ab3d417314a169e277 | 44,836 | py | Python | phi/math/backend/_backend.py | marc-gav/PhiFlow | b6186fd1503d040997b52d49aa18cd875267c27e | [
"MIT"
] | null | null | null | phi/math/backend/_backend.py | marc-gav/PhiFlow | b6186fd1503d040997b52d49aa18cd875267c27e | [
"MIT"
] | null | null | null | phi/math/backend/_backend.py | marc-gav/PhiFlow | b6186fd1503d040997b52d49aa18cd875267c27e | [
"MIT"
] | null | null | null | from collections import namedtuple
from contextlib import contextmanager
from threading import Barrier
from typing import List, Callable
import numpy
from ._dtype import DType, combine_types
SolveResult = namedtuple('SolveResult', [
'method', 'x', 'residual', 'iterations', 'function_evaluations', 'converged', '... | 37.677311 | 216 | 0.629293 | 5,596 | 44,836 | 4.937098 | 0.138134 | 0.068626 | 0.066889 | 0.074055 | 0.31041 | 0.258651 | 0.223252 | 0.202295 | 0.191871 | 0.180976 | 0 | 0.008629 | 0.276274 | 44,836 | 1,189 | 217 | 37.708999 | 0.842769 | 0.322754 | 0 | 0.314035 | 0 | 0.003509 | 0.029159 | 0.000804 | 0 | 0 | 0 | 0 | 0.014035 | 1 | 0.254386 | false | 0.001754 | 0.015789 | 0.02807 | 0.396491 | 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 | 0 | 0 | 0 | 1 |
dbde5b0dbcab23e1ef72b1961f7810d2ab8cc002 | 6,452 | py | Python | file_importer0.py | Alva789ro/Regional-Comprehensive-Economic-Partnership-RCEP-Economic-Default-Risk-Analysis | 454583f47883edae17391f101b10b38b68c9834f | [
"MIT"
] | 1 | 2021-03-15T19:44:36.000Z | 2021-03-15T19:44:36.000Z | file_importer0.py | Alva789ro/Regional-Comprehensive-Economic-Partnership-RCEP-Economic-Default-Risk-Analysis | 454583f47883edae17391f101b10b38b68c9834f | [
"MIT"
] | null | null | null | file_importer0.py | Alva789ro/Regional-Comprehensive-Economic-Partnership-RCEP-Economic-Default-Risk-Analysis | 454583f47883edae17391f101b10b38b68c9834f | [
"MIT"
] | 1 | 2022-02-06T01:33:41.000Z | 2022-02-06T01:33:41.000Z | import xlsxwriter
import pandas as pd
import numpy as np
import mysql.connector
australia=pd.read_excel(r'\Users\jesica\Desktop\RCEP_economic_analysis.xlsx', sheet_name='Australia')
brunei=pd.read_excel(r'\Users\jesica\Desktop\RCEP_economic_analysis.xlsx', sheet_name='Brunei')
cambodia=pd.read_excel(r'\Users\jesica\De... | 72.494382 | 227 | 0.67359 | 1,019 | 6,452 | 4.14524 | 0.087341 | 0.046402 | 0.059659 | 0.066288 | 0.334754 | 0.334754 | 0.334754 | 0.334754 | 0.308239 | 0.308239 | 0 | 0.006621 | 0.110508 | 6,452 | 88 | 228 | 73.318182 | 0.729395 | 0.002015 | 0 | 0 | 0 | 0 | 0.538147 | 0.467302 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbe3e139f969d2b0c02202b763923425574d8d2e | 2,764 | py | Python | default.py | SimonPreissner/get-shifty | aff49220932921c77e419a34ca472b51e0b26b72 | [
"MIT"
] | null | null | null | default.py | SimonPreissner/get-shifty | aff49220932921c77e419a34ca472b51e0b26b72 | [
"MIT"
] | null | null | null | default.py | SimonPreissner/get-shifty | aff49220932921c77e419a34ca472b51e0b26b72 | [
"MIT"
] | null | null | null | """
This file contains meta information and default configurations of the project
"""
RSC_YEARS = [1660, 1670, 1680, 1690,
1700, 1710, 1720, 1730, 1740, 1750, 1760, 1770, 1780, 1790,
1800, 1810, 1820, 1830, 1840, 1850, 1860, 1870, 1880, 1890,
1900, 1910, 1920]
# cf. Chapter 4.... | 52.150943 | 119 | 0.458032 | 272 | 2,764 | 4.511029 | 0.625 | 0.02608 | 0.01793 | 0.01304 | 0.02282 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15557 | 0.434877 | 2,764 | 53 | 120 | 52.150943 | 0.629962 | 0.281476 | 0 | 0 | 0 | 0 | 0.164447 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbe44f6e05680f0d1dad7aaee47f96f07f3de643 | 2,128 | py | Python | tests/python/metaclass_inheritance.py | gmgunter/pyre | e9ff3f8c04661f8b2cd2ba0caded08b6fe8054e2 | [
"BSD-3-Clause"
] | 25 | 2018-04-23T01:45:39.000Z | 2021-12-10T06:01:23.000Z | tests/python/metaclass_inheritance.py | gmgunter/pyre | e9ff3f8c04661f8b2cd2ba0caded08b6fe8054e2 | [
"BSD-3-Clause"
] | 53 | 2018-05-31T04:55:00.000Z | 2021-10-07T21:41:32.000Z | tests/python/metaclass_inheritance.py | gmgunter/pyre | e9ff3f8c04661f8b2cd2ba0caded08b6fe8054e2 | [
"BSD-3-Clause"
] | 12 | 2018-04-23T22:50:40.000Z | 2022-02-20T17:27:23.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# michael a.g. aïvázis
# orthologue
# (c) 1998-2021 all rights reserved
#
#
"""
When a metaclass understands the extra keywords that can be passed during class declaration,
it has to override all these to accommodate the change in signature
"""
class meta(type):
... | 25.035294 | 92 | 0.56156 | 239 | 2,128 | 4.715481 | 0.297071 | 0.070985 | 0.074534 | 0.060337 | 0.545697 | 0.451642 | 0.451642 | 0.451642 | 0.393079 | 0.393079 | 0 | 0.017264 | 0.292293 | 2,128 | 84 | 93 | 25.333333 | 0.731076 | 0.134868 | 0 | 0.583333 | 0 | 0 | 0.077303 | 0 | 0 | 0 | 0 | 0 | 0.4375 | 1 | 0.125 | false | 0 | 0 | 0 | 0.3125 | 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 | 0 | 0 | 0 | 1 |
dbe7a0b13a437a6e05e68098ff2efe008a915ee9 | 862 | py | Python | bin/sort.py | pelavarre/pybashish | 03f74356fb0a2a0ef7106f09c059fd9b375ce89a | [
"CNRI-Python"
] | 4 | 2020-07-10T20:16:13.000Z | 2022-02-16T02:11:20.000Z | bin/sort.py | pelavarre/pybashish | 03f74356fb0a2a0ef7106f09c059fd9b375ce89a | [
"CNRI-Python"
] | null | null | null | bin/sort.py | pelavarre/pybashish | 03f74356fb0a2a0ef7106f09c059fd9b375ce89a | [
"CNRI-Python"
] | 2 | 2020-06-24T20:37:36.000Z | 2020-07-10T20:16:17.000Z | #!/usr/bin/env python3
"""
usage: sort.py [-h]
sort lines
options:
-h, --help show this help message and exit
quirks:
sorts tabs as different than spaces
sorts some spaces ending a line as different than none ending a line
examples:
Oh no! No examples disclosed!! 💥 💔 💥
"""
# FIXME: doc -k$N,$N and -n a... | 21.02439 | 70 | 0.678654 | 139 | 862 | 4.151079 | 0.618705 | 0.046794 | 0.07279 | 0.062392 | 0.086655 | 0.086655 | 0 | 0 | 0 | 0 | 0 | 0.007133 | 0.186775 | 862 | 40 | 71 | 21.55 | 0.811698 | 0.62761 | 0 | 0 | 0 | 0 | 0.159091 | 0 | 0 | 0 | 0 | 0.025 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbec13a8be9b82963156b2e9e29130d14a7c09eb | 975 | py | Python | tests/formatters/fseventsd.py | SamuelePilleri/plaso | f5687f12a89c7309797ccc285da78e855c120579 | [
"Apache-2.0"
] | null | null | null | tests/formatters/fseventsd.py | SamuelePilleri/plaso | f5687f12a89c7309797ccc285da78e855c120579 | [
"Apache-2.0"
] | null | null | null | tests/formatters/fseventsd.py | SamuelePilleri/plaso | f5687f12a89c7309797ccc285da78e855c120579 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for the fseventsd record event formatter."""
from __future__ import unicode_literals
import unittest
from plaso.formatters import fseventsd
from tests.formatters import test_lib
class FseventsdFormatterTest(test_lib.EventFormatterTestCase):
"""Tests for the... | 26.351351 | 67 | 0.756923 | 100 | 975 | 7.11 | 0.52 | 0.118143 | 0.030942 | 0.056259 | 0.112518 | 0.112518 | 0.112518 | 0 | 0 | 0 | 0 | 0.001202 | 0.146667 | 975 | 36 | 68 | 27.083333 | 0.853365 | 0.251282 | 0 | 0.125 | 0 | 0 | 0.067893 | 0 | 0 | 0 | 0 | 0.027778 | 0.0625 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbef5ddea825a12fdea28a38b148d831f47bd566 | 1,446 | py | Python | python_modules/lakehouse/lakehouse/snowflake_table.py | vatervonacht/dagster | 595d78c883ef20618052ac1575fe46cde51fd541 | [
"Apache-2.0"
] | 3 | 2020-04-28T16:27:33.000Z | 2020-07-22T07:43:30.000Z | python_modules/lakehouse/lakehouse/snowflake_table.py | vatervonacht/dagster | 595d78c883ef20618052ac1575fe46cde51fd541 | [
"Apache-2.0"
] | 2 | 2021-05-11T13:36:27.000Z | 2021-09-03T01:53:11.000Z | python_modules/lakehouse/lakehouse/snowflake_table.py | vatervonacht/dagster | 595d78c883ef20618052ac1575fe46cde51fd541 | [
"Apache-2.0"
] | 1 | 2021-02-21T12:16:47.000Z | 2021-02-21T12:16:47.000Z | from dagster import check
from .house import Lakehouse
from .table import create_lakehouse_table_def
class SnowflakeLakehouse(Lakehouse):
def __init__(self):
pass
def hydrate(self, _context, _table_type, _table_metadata, table_handle, _dest_metadata):
return None
def materialize(self, c... | 26.777778 | 98 | 0.670816 | 168 | 1,446 | 5.357143 | 0.285714 | 0.16 | 0.2 | 0.124444 | 0.368889 | 0.368889 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0.253804 | 1,446 | 53 | 99 | 27.283019 | 0.834106 | 0 | 0 | 0.142857 | 0 | 0 | 0.05325 | 0.015214 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119048 | false | 0.02381 | 0.071429 | 0.071429 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbf19789118428ff5f8d3aa59b32b64fa444b8b7 | 984 | py | Python | agent_based_models/abm_allelopathy/plot_data.py | mattsmart/biomodels | 237f87489553fa1ebf5c676fab563166dd0c39e9 | [
"MIT"
] | null | null | null | agent_based_models/abm_allelopathy/plot_data.py | mattsmart/biomodels | 237f87489553fa1ebf5c676fab563166dd0c39e9 | [
"MIT"
] | null | null | null | agent_based_models/abm_allelopathy/plot_data.py | mattsmart/biomodels | 237f87489553fa1ebf5c676fab563166dd0c39e9 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import os
def data_plotter(lattice_dict, datafile_dir, plot_dir):
# total spaces on grid implies grid size
total_cells = lattice_dict['E'][0] + lattice_dict['D_a'][0] + lattice_dict['D_b'][0] + lattice_dict['B'][0]
n = int(total_cells**0.5)
plt.figure(1)
plt.plot... | 30.75 | 111 | 0.650407 | 159 | 984 | 3.830189 | 0.421384 | 0.234811 | 0.078818 | 0.118227 | 0.220033 | 0.220033 | 0.220033 | 0.111658 | 0 | 0 | 0 | 0.02091 | 0.17378 | 984 | 31 | 112 | 31.741935 | 0.728167 | 0.061992 | 0 | 0 | 0 | 0 | 0.182609 | 0.023913 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.095238 | 0 | 0.190476 | 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 | 0 | 0 | 0 | 1 |
dbf3d541561ba11217ad33d7f2e880d8ae1b4729 | 1,567 | py | Python | FOR/Analisador-completo/main.py | lucasf5/Python | c5649121e2af42922e2d9c19cec98322e132bdab | [
"MIT"
] | 1 | 2021-09-28T13:11:56.000Z | 2021-09-28T13:11:56.000Z | FOR/Analisador-completo/main.py | lucasf5/Python | c5649121e2af42922e2d9c19cec98322e132bdab | [
"MIT"
] | null | null | null | FOR/Analisador-completo/main.py | lucasf5/Python | c5649121e2af42922e2d9c19cec98322e132bdab | [
"MIT"
] | null | null | null | # Exercício Python 56: Desenvolva um programa que leia o nome, idade e sexo de 4 pessoas. No final do programa, mostre: a média de idade do grupo, qual é o nome do homem mais velho e quantas mulheres têm menos de 20 anos.
mediaidade = ''
nomelista = []
idadelista = []
sexolista = []
homens = []
mulherescommenosde20 =... | 27.982143 | 221 | 0.612636 | 201 | 1,567 | 4.776119 | 0.477612 | 0.025 | 0.01875 | 0.027083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018405 | 0.167837 | 1,567 | 55 | 222 | 28.490909 | 0.717791 | 0.454371 | 0 | 0 | 0 | 0 | 0.2891 | 0.026066 | 0 | 0 | 0 | 0.018182 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e0023b6272774adf06f1384bdb4cb510043c4a82 | 224 | py | Python | task/w2/trenirovka/12-rivnist 2.py | beregok/pythontask | 50394ff2b52ab4f3273ec9ddc4b504d1f7b3159e | [
"MIT"
] | 1 | 2019-09-29T14:19:54.000Z | 2019-09-29T14:19:54.000Z | task/w2/trenirovka/12-rivnist 2.py | beregok/pythontask | 50394ff2b52ab4f3273ec9ddc4b504d1f7b3159e | [
"MIT"
] | null | null | null | task/w2/trenirovka/12-rivnist 2.py | beregok/pythontask | 50394ff2b52ab4f3273ec9ddc4b504d1f7b3159e | [
"MIT"
] | null | null | null | a = int(input())
b = int(input())
c = int(input())
d = int(input())
if a == 0 and b == 0:
print("INF")
else:
if (d - b * c / a) != 0 and (- b / a) == (- b // a):
print(- b // a)
else:
print("NO")
| 18.666667 | 56 | 0.397321 | 38 | 224 | 2.342105 | 0.342105 | 0.359551 | 0.11236 | 0.134831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02027 | 0.339286 | 224 | 11 | 57 | 20.363636 | 0.581081 | 0 | 0 | 0.181818 | 0 | 0 | 0.022321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.272727 | 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 | 0 | 0 | 0 | 1 |
e01a5f16e11613ae6cff496ae606faff7b1d0e27 | 460 | py | Python | home/push/mipush/APIError.py | he0119/smart-home | bdd3a59a8c46c0fdc07ac3049bf589c7f95a2683 | [
"MIT"
] | null | null | null | home/push/mipush/APIError.py | he0119/smart-home | bdd3a59a8c46c0fdc07ac3049bf589c7f95a2683 | [
"MIT"
] | 223 | 2020-02-21T06:16:56.000Z | 2022-03-01T22:24:19.000Z | home/push/mipush/APIError.py | he0119/smart-home | bdd3a59a8c46c0fdc07ac3049bf589c7f95a2683 | [
"MIT"
] | null | null | null | class APIError(Exception):
"""
raise APIError if receiving json message indicating failure.
"""
def __init__(self, error_code, error, request):
self.error_code = error_code
self.error = error
self.request = request
Exception.__init__(self, error)
def __str__(self):
... | 25.555556 | 64 | 0.576087 | 49 | 460 | 5.081633 | 0.387755 | 0.216867 | 0.156627 | 0.144578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.321739 | 460 | 17 | 65 | 27.058824 | 0.798077 | 0.130435 | 0 | 0 | 0 | 0 | 0.075521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0.083333 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e0201884251a727105b3a8b3946ca3bc3aefd73d | 480 | py | Python | devito/passes/iet/languages/C.py | guaacoelho/devito | 7e0b873114675752c4a49ed9076ee5d52997833c | [
"MIT"
] | 199 | 2016-08-18T23:33:05.000Z | 2019-12-24T07:08:48.000Z | devito/passes/iet/languages/C.py | guaacoelho/devito | 7e0b873114675752c4a49ed9076ee5d52997833c | [
"MIT"
] | 949 | 2016-04-25T11:41:34.000Z | 2019-12-27T10:43:40.000Z | devito/passes/iet/languages/C.py | guaacoelho/devito | 7e0b873114675752c4a49ed9076ee5d52997833c | [
"MIT"
] | 78 | 2016-08-30T07:42:34.000Z | 2019-12-13T20:34:45.000Z | from devito.ir import Call
from devito.passes.iet.definitions import DataManager
from devito.passes.iet.langbase import LangBB
__all__ = ['CBB', 'CDataManager']
class CBB(LangBB):
mapper = {
'aligned': lambda i:
'__attribute__((aligned(%d)))' % i,
'host-alloc': lambda i, j, k:
... | 21.818182 | 53 | 0.591667 | 57 | 480 | 4.824561 | 0.508772 | 0.109091 | 0.116364 | 0.138182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.260417 | 480 | 21 | 54 | 22.857143 | 0.774648 | 0 | 0 | 0 | 0 | 0 | 0.18125 | 0.058333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.133333 | 0.2 | 0 | 0.466667 | 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 | 0 | 0 | 0 | 1 |
e0215d4c222f248ad7105000615a748c88340354 | 2,026 | py | Python | tests/_test_image.py | Freakwill/ell | 8aa510cefb5d63db35071820208971013fac154c | [
"MIT"
] | null | null | null | tests/_test_image.py | Freakwill/ell | 8aa510cefb5d63db35071820208971013fac154c | [
"MIT"
] | null | null | null | tests/_test_image.py | Freakwill/ell | 8aa510cefb5d63db35071820208971013fac154c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""Test methods about image process
Make sure the existance of the images
"""
from ell import *
import numpy as np
_filter = Filter.from_name('db4')
def test_resize():
chennal=0
c = ImageRGB.open('src/lenna.jpg')
d=c.resize(minInd=(-100,-100), maxInd=(100,100))
d.to_image()
... | 28.535211 | 109 | 0.605133 | 338 | 2,026 | 3.428994 | 0.204142 | 0.102675 | 0.085418 | 0.120794 | 0.713546 | 0.669543 | 0.627265 | 0.584124 | 0.535807 | 0.535807 | 0 | 0.051169 | 0.218657 | 2,026 | 70 | 110 | 28.942857 | 0.680985 | 0.082922 | 0 | 0.5 | 0 | 0 | 0.052489 | 0 | 0 | 0 | 0 | 0 | 0.145833 | 1 | 0.208333 | false | 0 | 0.041667 | 0 | 0.3125 | 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 | 0 | 0 | 0 | 1 |
e026dd61a71f4c0236cf71cd04ff440228426371 | 1,303 | py | Python | bot/views.py | eyobofficial/COVID-19-Mutual-Aid | 42d30ce95b0e9c717c5eda3ecaafea2812ec34f7 | [
"MIT"
] | null | null | null | bot/views.py | eyobofficial/COVID-19-Mutual-Aid | 42d30ce95b0e9c717c5eda3ecaafea2812ec34f7 | [
"MIT"
] | 5 | 2020-03-19T17:49:50.000Z | 2021-06-10T20:06:14.000Z | bot/views.py | eyobofficial/COVID-19-Mutual-Aid | 42d30ce95b0e9c717c5eda3ecaafea2812ec34f7 | [
"MIT"
] | null | null | null | import telegram
from django.conf import settings
from django.shortcuts import redirect
from django.utils.decorators import method_decorator
from django.views.generic import View
from django.views.decorators.csrf import csrf_exempt
from braces.views import CsrfExemptMixin
from rest_framework.authentication import Bas... | 29.613636 | 61 | 0.692249 | 154 | 1,303 | 5.714286 | 0.454545 | 0.056818 | 0.096591 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003922 | 0.217191 | 1,303 | 43 | 62 | 30.302326 | 0.858824 | 0 | 0 | 0 | 0 | 0 | 0.058462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.424242 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e0274bb01109146cf480d663260e32b7e8a8cc2d | 580 | py | Python | portfolio/urls.py | ramza007/Ramza.io | 2172d9ac13e87becbc8644ad5755070f48fab8da | [
"Apache-2.0"
] | 3 | 2019-12-16T16:47:16.000Z | 2020-07-28T19:47:34.000Z | portfolio/urls.py | ramza007/Ramza.io | 2172d9ac13e87becbc8644ad5755070f48fab8da | [
"Apache-2.0"
] | 15 | 2019-12-05T03:38:19.000Z | 2022-03-13T02:35:30.000Z | portfolio/urls.py | ramza007/Ramza.io | 2172d9ac13e87becbc8644ad5755070f48fab8da | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url
from django.urls import path, include,re_path
from . import views
from rest_framework.authtoken.views import obtain_auth_token
urlpatterns = [
path('', views.index, name='index'),
path('about', views.about, name='about'),
path('projects', views.projects, name='projects'),... | 34.117647 | 92 | 0.7 | 83 | 580 | 4.759036 | 0.409639 | 0.060759 | 0.053165 | 0.075949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003922 | 0.12069 | 580 | 16 | 93 | 36.25 | 0.770588 | 0 | 0 | 0 | 0 | 0 | 0.194828 | 0.067241 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 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 | 0 | 0 | 0 | 1 |
e0315471bd1a35e31c6a9cdd93a2a2a27365d479 | 2,702 | py | Python | TWLight/emails/views.py | jajodiaraghav/TWLight | 22359ab0b95ee3653e8ffa0eb698acd7bb8ebf70 | [
"MIT"
] | 1 | 2019-10-24T04:49:52.000Z | 2019-10-24T04:49:52.000Z | TWLight/emails/views.py | jajodiaraghav/TWLight | 22359ab0b95ee3653e8ffa0eb698acd7bb8ebf70 | [
"MIT"
] | 1 | 2019-03-29T15:29:45.000Z | 2019-03-29T15:57:20.000Z | TWLight/emails/views.py | jajodiaraghav/TWLight | 22359ab0b95ee3653e8ffa0eb698acd7bb8ebf70 | [
"MIT"
] | 1 | 2019-09-26T14:40:27.000Z | 2019-09-26T14:40:27.000Z | from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.core.exceptions import PermissionDenied
from django.core.urlresolvers import reverse, reverse_lazy
from django.core.mail import BadHeaderError, send_mail
from django.http import HttpResponse, HttpResponseRedirect
f... | 43.580645 | 126 | 0.657661 | 315 | 2,702 | 5.530159 | 0.422222 | 0.063146 | 0.051665 | 0.036165 | 0.04248 | 0.04248 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263879 | 2,702 | 62 | 127 | 43.580645 | 0.875817 | 0.143597 | 0 | 0.115385 | 0 | 0 | 0.069727 | 0 | 0 | 0 | 0 | 0.016129 | 0.038462 | 1 | 0.038462 | false | 0 | 0.211538 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e035deed8737a8c4ccc24d990b915152d4728210 | 3,115 | py | Python | cogs/events.py | rompdodger/RompDodger | 9c8b481d9f69e05c15f01271f6c18e09ab2723e6 | [
"MIT"
] | null | null | null | cogs/events.py | rompdodger/RompDodger | 9c8b481d9f69e05c15f01271f6c18e09ab2723e6 | [
"MIT"
] | null | null | null | cogs/events.py | rompdodger/RompDodger | 9c8b481d9f69e05c15f01271f6c18e09ab2723e6 | [
"MIT"
] | null | null | null | import json
import discord
from utils.time import format_time
from utils import utilities
from discord.ext import commands
from discord import Embed
class Events(commands.Cog):
"""Event Handler for RompDodger"""
def __init__(self, bot):
self.bot = bot
@commands.Cog.listener()
async def on_command_error(self,... | 39.43038 | 163 | 0.733547 | 452 | 3,115 | 4.964602 | 0.285398 | 0.040553 | 0.042335 | 0.053476 | 0.552139 | 0.497772 | 0.443405 | 0.382799 | 0.354724 | 0.280749 | 0 | 0.004104 | 0.139647 | 3,115 | 79 | 164 | 39.43038 | 0.833209 | 0.019262 | 0 | 0.432836 | 0 | 0.029851 | 0.258033 | 0.051475 | 0 | 0 | 0 | 0.012658 | 0 | 1 | 0.029851 | false | 0 | 0.089552 | 0 | 0.19403 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e036f44b7fa0f2862267ed2ae2bb354dffc8bc0b | 260 | py | Python | setup.py | clin366/airpollutionnowcast | f9152583eebc4ad747c8d0510460334a5fb23ff9 | [
"MIT"
] | null | null | null | setup.py | clin366/airpollutionnowcast | f9152583eebc4ad747c8d0510460334a5fb23ff9 | [
"MIT"
] | 9 | 2020-03-24T18:12:45.000Z | 2022-02-10T00:36:57.000Z | setup.py | clin366/airpollutionnowcast | f9152583eebc4ad747c8d0510460334a5fb23ff9 | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(
name='src',
packages=find_packages(),
version='0.1.0',
description='Project: Nowcasting the air pollution using online search log',
author='Emory University(IR Lab)',
license='MIT',
)
| 23.636364 | 80 | 0.692308 | 33 | 260 | 5.393939 | 0.848485 | 0.134831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014151 | 0.184615 | 260 | 10 | 81 | 26 | 0.825472 | 0 | 0 | 0 | 0 | 0 | 0.369231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e0404632a7378b088279de3e94aac11c26a9e183 | 1,540 | py | Python | monasca_persister/conf/influxdb.py | zhangjianweibj/monasca-persister | 0c5d8a7c5553001f2d38227347f482201f92c8e1 | [
"Apache-2.0"
] | null | null | null | monasca_persister/conf/influxdb.py | zhangjianweibj/monasca-persister | 0c5d8a7c5553001f2d38227347f482201f92c8e1 | [
"Apache-2.0"
] | 1 | 2020-03-13T12:30:29.000Z | 2020-03-13T12:38:16.000Z | monasca_persister/conf/influxdb.py | zhangjianweibj/monasca-persister | 0c5d8a7c5553001f2d38227347f482201f92c8e1 | [
"Apache-2.0"
] | null | null | null | # (C) Copyright 2016-2017 Hewlett Packard Enterprise Development LP
# Copyright 2017 FUJITSU LIMITED
#
# 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... | 32.765957 | 69 | 0.653896 | 190 | 1,540 | 5.221053 | 0.573684 | 0.060484 | 0.02621 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.25974 | 1,540 | 46 | 70 | 33.478261 | 0.852632 | 0.398701 | 0 | 0 | 0 | 0 | 0.225275 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0.041667 | 0.041667 | 0.166667 | 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 | 0 | 0 | 0 | 1 |
e044ab975c816db8531273f338dcef5b52d8c7ce | 1,061 | py | Python | src/geneflow/extend/local_workflow.py | jhphan/geneflow2 | a39ab97e6425ee45584cfc15b5740e94a5bf7512 | [
"Apache-2.0"
] | 7 | 2019-04-11T03:50:51.000Z | 2020-03-27T15:59:04.000Z | src/geneflow/extend/local_workflow.py | jhphan/geneflow2 | a39ab97e6425ee45584cfc15b5740e94a5bf7512 | [
"Apache-2.0"
] | 1 | 2019-05-06T14:18:42.000Z | 2019-05-08T22:06:12.000Z | src/geneflow/extend/local_workflow.py | jhphan/geneflow2 | a39ab97e6425ee45584cfc15b5740e94a5bf7512 | [
"Apache-2.0"
] | 6 | 2019-04-10T20:25:27.000Z | 2021-12-16T15:59:59.000Z | """This module contains the GeneFlow LocalWorkflow class."""
class LocalWorkflow:
"""
A class that represents the Local Workflow objects.
"""
def __init__(
self,
job,
config,
parsed_job_work_uri
):
"""
Instantiate LocalWorkflow class.... | 18.293103 | 60 | 0.524034 | 100 | 1,061 | 5.37 | 0.42 | 0.100559 | 0.072626 | 0.089385 | 0.108007 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.402451 | 1,061 | 57 | 61 | 18.614035 | 0.847003 | 0.410933 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
e0453a8ff093c7c5f6bb2239656a47c98c50cec7 | 2,849 | py | Python | S12/tensornet/engine/ops/lr_scheduler.py | abishek-raju/EVA4B2 | 189f4062c85d91f43c1381087a9c89ff794e5428 | [
"Apache-2.0"
] | 4 | 2020-06-18T13:07:19.000Z | 2022-01-07T10:51:10.000Z | S12/tensornet/engine/ops/lr_scheduler.py | abishek-raju/EVA4B2 | 189f4062c85d91f43c1381087a9c89ff794e5428 | [
"Apache-2.0"
] | 1 | 2021-07-31T04:34:46.000Z | 2021-08-11T05:55:57.000Z | S12/tensornet/engine/ops/lr_scheduler.py | abishek-raju/EVA4B2 | 189f4062c85d91f43c1381087a9c89ff794e5428 | [
"Apache-2.0"
] | 4 | 2020-08-09T07:10:46.000Z | 2021-01-16T14:57:23.000Z | from torch.optim.lr_scheduler import StepLR, ReduceLROnPlateau, OneCycleLR
def step_lr(optimizer, step_size, gamma=0.1, last_epoch=-1):
"""Create LR step scheduler.
Args:
optimizer (torch.optim): Model optimizer.
step_size (int): Frequency for changing learning rate.
gamma (float): Fa... | 40.7 | 102 | 0.679537 | 394 | 2,849 | 4.774112 | 0.27665 | 0.070175 | 0.041467 | 0.036683 | 0.239766 | 0.184476 | 0.127592 | 0.078682 | 0.047847 | 0.047847 | 0 | 0.01532 | 0.243945 | 2,849 | 69 | 103 | 41.289855 | 0.857939 | 0.667954 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e048929c57d8279d48bbfdb7b6430abd2459ceab | 243 | py | Python | Others/code_festival/code-festival-2015-final-open/a.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | 2 | 2020-06-12T09:54:23.000Z | 2021-05-04T01:34:07.000Z | Others/code_festival/code-festival-2015-final-open/a.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | 961 | 2020-06-23T07:26:22.000Z | 2022-03-31T21:34:52.000Z | Others/code_festival/code-festival-2015-final-open/a.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
def main():
s, t, u = map(str, input().split())
if len(s) == 5 and len(t) == 7 and len(u) == 5:
print('valid')
else:
print('invalid')
if __name__ == '__main__':
main()
| 16.2 | 52 | 0.440329 | 33 | 243 | 3 | 0.666667 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025157 | 0.345679 | 243 | 14 | 53 | 17.357143 | 0.597484 | 0.08642 | 0 | 0 | 0 | 0 | 0.097087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0 | 0 | 0 | 0.125 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e04d583757322341dcf56eb5852389f9fd5b2748 | 1,634 | py | Python | mistral/tests/unit/utils/test_utils.py | shubhamdang/mistral | 3c83837f6ce1e4ab74fb519a63e82eaae70f9d2d | [
"Apache-2.0"
] | 205 | 2015-06-21T11:51:47.000Z | 2022-03-05T04:00:04.000Z | mistral/tests/unit/utils/test_utils.py | shubhamdang/mistral | 3c83837f6ce1e4ab74fb519a63e82eaae70f9d2d | [
"Apache-2.0"
] | 8 | 2015-06-23T14:47:58.000Z | 2021-01-28T06:06:44.000Z | mistral/tests/unit/utils/test_utils.py | shubhamdang/mistral | 3c83837f6ce1e4ab74fb519a63e82eaae70f9d2d | [
"Apache-2.0"
] | 110 | 2015-06-14T03:34:38.000Z | 2021-11-11T12:12:56.000Z | # Copyright 2013 - Mirantis, Inc.
# Copyright 2015 - StackStorm, Inc.
# Copyright 2015 - Huawei Technologies Co. Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http:/... | 29.178571 | 77 | 0.632191 | 200 | 1,634 | 5.04 | 0.53 | 0.059524 | 0.029762 | 0.053571 | 0.168651 | 0.168651 | 0.140873 | 0.140873 | 0.140873 | 0.140873 | 0 | 0.013865 | 0.293758 | 1,634 | 55 | 78 | 29.709091 | 0.859619 | 0.403305 | 0 | 0.333333 | 0 | 0 | 0.017727 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.066667 | false | 0.166667 | 0.133333 | 0 | 0.366667 | 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 | 0 | 0 | 0 | 1 |
e04ec585b764ff6cb1ec40221ed614d384e735f8 | 581 | py | Python | django_app_permissions/management/commands/resolve_app_groups.py | amp89/django-app-permissions | 11f576d2118f5b73fdbefa0675acc3374a5a9749 | [
"MIT"
] | 2 | 2020-09-04T04:12:30.000Z | 2020-10-20T00:12:01.000Z | django_app_permissions/management/commands/resolve_app_groups.py | amp89/django-app-permissions | 11f576d2118f5b73fdbefa0675acc3374a5a9749 | [
"MIT"
] | 4 | 2020-09-06T22:29:18.000Z | 2020-09-11T01:19:50.000Z | django_app_permissions/management/commands/resolve_app_groups.py | amp89/django-app-permissions | 11f576d2118f5b73fdbefa0675acc3374a5a9749 | [
"MIT"
] | null | null | null | from django.core.management.base import BaseCommand, no_translations
from django.contrib.auth.models import Group
from django.conf import settings
import sys
class Command(BaseCommand):
def handle(self, *args, **options):
sys.stdout.write("\nResolving app groups")
app_list = [app_name.lower... | 32.277778 | 95 | 0.693632 | 79 | 581 | 4.936709 | 0.56962 | 0.089744 | 0.107692 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203098 | 581 | 18 | 96 | 32.277778 | 0.842333 | 0 | 0 | 0 | 0 | 0 | 0.087629 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e053d242f75ab9ddd50217184c0c2cd558a9aad9 | 5,591 | py | Python | library/__mozilla__/pyjamas/DOM.py | certik/pyjamas | 5bb72e63e50f09743ac986f4c9690ba50c499ba9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | library/__mozilla__/pyjamas/DOM.py | certik/pyjamas | 5bb72e63e50f09743ac986f4c9690ba50c499ba9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | library/__mozilla__/pyjamas/DOM.py | certik/pyjamas | 5bb72e63e50f09743ac986f4c9690ba50c499ba9 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-08-13T20:32:25.000Z | 2019-08-13T20:32:25.000Z | def buttonClick(button):
JS("""
var doc = button.ownerDocument;
if (doc != null) {
var evt = doc.createEvent('MouseEvents');
evt.initMouseEvent('click', true, true, null, 0, 0,
0, 0, 0, false, false, false, false, 0, null);
button.d... | 29.119792 | 84 | 0.571275 | 609 | 5,591 | 5.220033 | 0.280788 | 0.033973 | 0.027682 | 0.021705 | 0.505505 | 0.485373 | 0.431268 | 0.406103 | 0.301353 | 0.287512 | 0 | 0.017414 | 0.301556 | 5,591 | 191 | 85 | 29.272251 | 0.796671 | 0.296548 | 0 | 0.330827 | 0 | 0.007519 | 0.898584 | 0.183784 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06015 | false | 0 | 0 | 0 | 0.195489 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e0554c3395746111d418fbf380163f0e080e4265 | 1,260 | py | Python | pytorch_gleam/search/rerank_format.py | Supermaxman/pytorch-gleam | 8b0d8dddc812e8ae120c9760fd44fe93da3f902d | [
"Apache-2.0"
] | null | null | null | pytorch_gleam/search/rerank_format.py | Supermaxman/pytorch-gleam | 8b0d8dddc812e8ae120c9760fd44fe93da3f902d | [
"Apache-2.0"
] | null | null | null | pytorch_gleam/search/rerank_format.py | Supermaxman/pytorch-gleam | 8b0d8dddc812e8ae120c9760fd44fe93da3f902d | [
"Apache-2.0"
] | null | null | null |
import torch
import argparse
from collections import defaultdict
import os
import json
def load_predictions(input_path):
pred_list = []
for file_name in os.listdir(input_path):
if file_name.endswith('.pt'):
preds = torch.load(os.path.join(input_path, file_name))
pred_list.extend(preds)
question_scores = ... | 25.714286 | 86 | 0.743651 | 191 | 1,260 | 4.586387 | 0.350785 | 0.071918 | 0.041096 | 0.054795 | 0.084475 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003683 | 0.138095 | 1,260 | 48 | 87 | 26.25 | 0.802947 | 0.024603 | 0 | 0 | 0 | 0 | 0.103589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0.081081 | 0.135135 | 0 | 0.216216 | 0.054054 | 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 | 0 | 0 | 0 | 1 |
e055f89145eb203a0a63bfdad54931948d02ec37 | 388 | py | Python | des036.py | LeonardoPereirajr/Curso_em_video_Python | 9d8a97ba3389c8e86b37dfd089fab5d04adc146d | [
"MIT"
] | null | null | null | des036.py | LeonardoPereirajr/Curso_em_video_Python | 9d8a97ba3389c8e86b37dfd089fab5d04adc146d | [
"MIT"
] | null | null | null | des036.py | LeonardoPereirajr/Curso_em_video_Python | 9d8a97ba3389c8e86b37dfd089fab5d04adc146d | [
"MIT"
] | null | null | null | casa = int(input('Qual o valor da casa? '))
sal = int(input('Qual seu salario? '))
prazo = int(input('Quantos meses deseja pagar ? '))
parcela = casa/prazo
margem = sal* (30/100)
if parcela > margem:
print('Este negocio não foi aprovado, aumente o prazo .')
else:
print("Negocio aprovado pois a parcela é... | 38.8 | 111 | 0.664948 | 59 | 388 | 4.372881 | 0.644068 | 0.093023 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016026 | 0.195876 | 388 | 9 | 112 | 43.111111 | 0.810897 | 0 | 0 | 0 | 0 | 0 | 0.503958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.