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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ba5491631d2c4f3aec2f8aeb57c7e413028fb35d | 2,719 | py | Python | jobs/types/job_run_result.py | soham4abc/oppia | 3b9a71c2142dc0f818fcab00afc749fa0695ad82 | [
"Apache-2.0"
] | null | null | null | jobs/types/job_run_result.py | soham4abc/oppia | 3b9a71c2142dc0f818fcab00afc749fa0695ad82 | [
"Apache-2.0"
] | null | null | null | jobs/types/job_run_result.py | soham4abc/oppia | 3b9a71c2142dc0f818fcab00afc749fa0695ad82 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2021 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 31.988235 | 109 | 0.662376 | 348 | 2,719 | 4.939655 | 0.399425 | 0.046539 | 0.048866 | 0.069808 | 0.243165 | 0.143106 | 0.143106 | 0.089587 | 0.051193 | 0 | 0 | 0.00441 | 0.249356 | 2,719 | 84 | 110 | 32.369048 | 0.837825 | 0.513424 | 0 | 0.2 | 0 | 0 | 0.040886 | 0.019591 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0.133333 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ba560cc843b13e3fd3509ec182fc0951afaee78a | 23,144 | py | Python | Script update background test/Script_normal_update_win_zip.py | dacicas/Update_script | fc5a91f47aefa2e8fe398a6f0c1676181e89a9f3 | [
"MIT"
] | null | null | null | Script update background test/Script_normal_update_win_zip.py | dacicas/Update_script | fc5a91f47aefa2e8fe398a6f0c1676181e89a9f3 | [
"MIT"
] | null | null | null | Script update background test/Script_normal_update_win_zip.py | dacicas/Update_script | fc5a91f47aefa2e8fe398a6f0c1676181e89a9f3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os, fnmatch
import subprocess
import time
import gspread
from oauth2client.service_account import ServiceAccountCredentials
from pprint import pprint
import time
import random
import wget
import shutil
import pyautogui
from stat import S_IREAD, S_IRGRP, S_IROTH
import pyperclip
import thre... | 29.595908 | 181 | 0.652653 | 3,308 | 23,144 | 4.444982 | 0.10792 | 0.129149 | 0.128536 | 0.117587 | 0.785024 | 0.729325 | 0.699878 | 0.699334 | 0.693961 | 0.628536 | 0 | 0.057808 | 0.189034 | 23,144 | 782 | 182 | 29.595908 | 0.725611 | 0.029079 | 0 | 0.722376 | 0 | 0 | 0.151307 | 0.044964 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046961 | false | 0 | 0.019337 | 0 | 0.070442 | 0.085635 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ba57d6a68fdb7502e5e88a984c5c6780a572653e | 9,088 | py | Python | ga-es_gpu/neuroevolution/display.py | MUzzell/UoR-msc-project | fac83bb0ebbdd3839530c6df0493deff3475fff5 | [
"MIT"
] | null | null | null | ga-es_gpu/neuroevolution/display.py | MUzzell/UoR-msc-project | fac83bb0ebbdd3839530c6df0493deff3475fff5 | [
"MIT"
] | null | null | null | ga-es_gpu/neuroevolution/display.py | MUzzell/UoR-msc-project | fac83bb0ebbdd3839530c6df0493deff3475fff5 | [
"MIT"
] | null | null | null | __copyright__ = """
Copyright (c) 2018 Uber Technologies, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, mer... | 77.675214 | 5,194 | 0.65471 | 1,332 | 9,088 | 4.421922 | 0.373123 | 0.179966 | 0.006621 | 0.003735 | 0.014261 | 0.014261 | 0.006791 | 0 | 0 | 0 | 0 | 0.440445 | 0.159331 | 9,088 | 116 | 5,195 | 78.344828 | 0.330497 | 0 | 0 | 0.082474 | 0 | 0 | 0.126981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030928 | false | 0 | 0.154639 | 0 | 0.185567 | 0.020619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ba6c82801375d272f72bf0c3f638368e53ee436c | 525 | py | Python | ConverString.py | shatheesh171/divide_and_conquer_algos | 43dc8b98da03de71fc8c7d3a4afcaebdffe85bf9 | [
"MIT"
] | null | null | null | ConverString.py | shatheesh171/divide_and_conquer_algos | 43dc8b98da03de71fc8c7d3a4afcaebdffe85bf9 | [
"MIT"
] | null | null | null | ConverString.py | shatheesh171/divide_and_conquer_algos | 43dc8b98da03de71fc8c7d3a4afcaebdffe85bf9 | [
"MIT"
] | null | null | null | def findMinOperation(s1,s2,index1,index2):
if index1==len(s1):
return len(s2)-index2
if index2==len(s2):
return len(s1)-index1
if s1[index1]==s2[index2]:
return findMinOperation(s1,s2,index1+1,index2+1)
else:
insertOp=1+findMinOperation(s1,s2,index1+1,index2)
del... | 32.8125 | 61 | 0.672381 | 72 | 525 | 4.902778 | 0.263889 | 0.254958 | 0.283286 | 0.368272 | 0.475921 | 0.291785 | 0.291785 | 0 | 0 | 0 | 0 | 0.1 | 0.180952 | 525 | 15 | 62 | 35 | 0.72093 | 0 | 0 | 0 | 0 | 0 | 0.020952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.384615 | 0.076923 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ba73d9ceb692a93c8dfe87061a119105c090c21c | 1,308 | py | Python | Classes/Wrappers/BattleLogPlayerEntry.py | Enjoyop/BSDS-V42 | 73b1e86364983d0fc521bdb53e0e4d85f6ae8a38 | [
"Apache-2.0"
] | 16 | 2022-03-03T03:49:59.000Z | 2022-03-30T19:18:42.000Z | Classes/Wrappers/BattleLogPlayerEntry.py | Enjoyop/BSDS-V42 | 73b1e86364983d0fc521bdb53e0e4d85f6ae8a38 | [
"Apache-2.0"
] | 11 | 2022-03-03T19:56:13.000Z | 2022-03-29T03:03:35.000Z | Classes/Wrappers/BattleLogPlayerEntry.py | Enjoyop/BSDS-V42 | 73b1e86364983d0fc521bdb53e0e4d85f6ae8a38 | [
"Apache-2.0"
] | 8 | 2022-03-03T12:29:47.000Z | 2022-03-30T19:39:00.000Z | from Classes.Wrappers.PlayerDisplayData import PlayerDisplayData
class BattleLogPlayerEntry:
def encode(calling_instance, fields):
pass
def decode(calling_instance, fields):
fields["BattleLogEntry"] = {}
fields["BattleLogEntry"]["Unkown1"] = calling_instance.readVInt()
fields["... | 56.869565 | 106 | 0.671254 | 113 | 1,308 | 7.654867 | 0.318584 | 0.225434 | 0.186127 | 0.201156 | 0.431214 | 0.124855 | 0.124855 | 0.124855 | 0 | 0 | 0 | 0.009242 | 0.172783 | 1,308 | 23 | 107 | 56.869565 | 0.790203 | 0 | 0 | 0 | 0 | 0 | 0.227655 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.047619 | 0.047619 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ba911736f2a652f2c0afc8c19f3129121c5f028e | 252 | py | Python | stubs/micropython-esp32-1_13-103/btree.py | RonaldHiemstra/micropython-stubs | d97f879b01f6687baaebef1c7e26a80909c3cff3 | [
"MIT"
] | 38 | 2020-10-18T21:59:44.000Z | 2022-03-17T03:03:28.000Z | stubs/micropython-esp32-1_13-103/btree.py | RonaldHiemstra/micropython-stubs | d97f879b01f6687baaebef1c7e26a80909c3cff3 | [
"MIT"
] | 176 | 2020-10-18T14:31:03.000Z | 2022-03-30T23:22:39.000Z | stubs/micropython-esp32-1_13-103/btree.py | RonaldHiemstra/micropython-stubs | d97f879b01f6687baaebef1c7e26a80909c3cff3 | [
"MIT"
] | 6 | 2020-12-28T21:11:12.000Z | 2022-02-06T04:07:50.000Z | """
Module: 'btree' on esp32 1.13.0-103
"""
# MCU: (sysname='esp32', nodename='esp32', release='1.13.0', version='v1.13-103-gb137d064e on 2020-10-09', machine='ESP32 module (spiram) with ESP32')
# Stubber: 1.3.4
DESC = 2
INCL = 1
def open():
pass
| 22.909091 | 150 | 0.642857 | 43 | 252 | 3.767442 | 0.697674 | 0.037037 | 0.049383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213953 | 0.146825 | 252 | 10 | 151 | 25.2 | 0.539535 | 0.793651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0 | 0 | 0.25 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
ba9bd2303e78cf8f9f88bd630ec3f07faf85fb1a | 79 | py | Python | emgineer/__init__.py | mechAneko12/emgineer | 36186feda43eec55028f42ee3c56fffceac424be | [
"MIT"
] | null | null | null | emgineer/__init__.py | mechAneko12/emgineer | 36186feda43eec55028f42ee3c56fffceac424be | [
"MIT"
] | null | null | null | emgineer/__init__.py | mechAneko12/emgineer | 36186feda43eec55028f42ee3c56fffceac424be | [
"MIT"
] | null | null | null | from .emg_decomposition.main import EmgDecomposition
__version__ = '0.1.2'
| 19.75 | 53 | 0.772152 | 10 | 79 | 5.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044118 | 0.139241 | 79 | 3 | 54 | 26.333333 | 0.779412 | 0 | 0 | 0 | 0 | 0 | 0.065789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
baa5b961e71f18539875faa4c82a5c9fe93e21fe | 381 | py | Python | servicenowpy/servicenowpy/exceptions.py | henriquencmt/servicenowpy | 2b03556bbca85b8117a45b3e0168e24946ce8da6 | [
"MIT"
] | null | null | null | servicenowpy/servicenowpy/exceptions.py | henriquencmt/servicenowpy | 2b03556bbca85b8117a45b3e0168e24946ce8da6 | [
"MIT"
] | 1 | 2021-11-13T04:57:13.000Z | 2021-11-13T04:57:13.000Z | servicenowpy/servicenowpy/exceptions.py | henriquencmt/servicenowpy | 2b03556bbca85b8117a45b3e0168e24946ce8da6 | [
"MIT"
] | null | null | null | class StatusCodeError(Exception):
"""Exception used when the status code of a http response is not as expected."""
def __init__(self, message, detail, status):
self.message = message
self.detail = detail
self.status = status
def __str__(self):
return f"\n Message: {sel... | 38.1 | 95 | 0.648294 | 49 | 381 | 4.877551 | 0.510204 | 0.138075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24147 | 381 | 10 | 95 | 38.1 | 0.82699 | 0.194226 | 0 | 0 | 0 | 0.142857 | 0.254967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
bac80665a213087a44077383be486aeaeda6df43 | 226 | py | Python | job_executor/exceptions.py | seamless-io/seamless-web | ad171c9c00f34b7f0453b18b9ea33f16a5427015 | [
"Apache-2.0"
] | 1 | 2021-02-16T04:47:52.000Z | 2021-02-16T04:47:52.000Z | job_executor/exceptions.py | seamless-io/seamless-web | ad171c9c00f34b7f0453b18b9ea33f16a5427015 | [
"Apache-2.0"
] | 2 | 2020-12-30T02:57:42.000Z | 2020-12-30T03:23:01.000Z | job_executor/exceptions.py | seamless-io/seamless-web | ad171c9c00f34b7f0453b18b9ea33f16a5427015 | [
"Apache-2.0"
] | null | null | null | class ExecutorBuildException(Exception):
PREFIX = "[SEAMLESS BUILD ERROR]"
def __init__(self, message, *args, **kwargs):
message = f"{self.PREFIX} {message}"
super().__init__(message, *args, **kwargs)
| 32.285714 | 50 | 0.650442 | 23 | 226 | 6.043478 | 0.652174 | 0.158273 | 0.244604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19469 | 226 | 6 | 51 | 37.666667 | 0.763736 | 0 | 0 | 0 | 0 | 0 | 0.199115 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bafdef9140cb5b04d9d7b7a6277f3cab1b7d8417 | 212 | py | Python | homeassistant/components/rituals_perfume_genie/const.py | RubenKelevra/core | 2787dc9e97eff418e88674a8bb84b558fab4214b | [
"Apache-2.0"
] | 1 | 2021-07-06T03:46:47.000Z | 2021-07-06T03:46:47.000Z | homeassistant/components/rituals_perfume_genie/const.py | RubenKelevra/core | 2787dc9e97eff418e88674a8bb84b558fab4214b | [
"Apache-2.0"
] | 70 | 2020-07-23T07:13:50.000Z | 2022-03-31T06:01:52.000Z | homeassistant/components/rituals_perfume_genie/const.py | bbbates/core | 74029a094821b6368c8e08afe320b73fe9d0ef65 | [
"Apache-2.0"
] | 1 | 2019-10-24T21:00:24.000Z | 2019-10-24T21:00:24.000Z | """Constants for the Rituals Perfume Genie integration."""
DOMAIN = "rituals_perfume_genie"
COORDINATORS = "coordinators"
DEVICES = "devices"
ACCOUNT_HASH = "account_hash"
HUBLOT = "hublot"
SENSORS = "sensors"
| 21.2 | 58 | 0.754717 | 23 | 212 | 6.782609 | 0.608696 | 0.179487 | 0.24359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127358 | 212 | 9 | 59 | 23.555556 | 0.843243 | 0.245283 | 0 | 0 | 0 | 0 | 0.422078 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2401c25bb96c209cd645dc5f60bda44ebab95ca4 | 37 | py | Python | __init__.py | SsnL/amcmc | 32fe639267ead1bd7c5f0addfceb2dc61776e94f | [
"MIT"
] | null | null | null | __init__.py | SsnL/amcmc | 32fe639267ead1bd7c5f0addfceb2dc61776e94f | [
"MIT"
] | null | null | null | __init__.py | SsnL/amcmc | 32fe639267ead1bd7c5f0addfceb2dc61776e94f | [
"MIT"
] | null | null | null | __all__ = ['structure', 'inference']
| 18.5 | 36 | 0.675676 | 3 | 37 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 37 | 1 | 37 | 37 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0.486486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
24134dae3d8fc21694c9b15afaa3dedeac9116aa | 85 | py | Python | basta/apps.py | lorenzosp93/basta_app | 0eba51f648f74d21e84d30d1047a4bedf79dbbaa | [
"MIT"
] | 1 | 2021-03-23T19:14:27.000Z | 2021-03-23T19:14:27.000Z | basta/apps.py | lorenzosp93/basta_app | 0eba51f648f74d21e84d30d1047a4bedf79dbbaa | [
"MIT"
] | 4 | 2021-03-30T14:20:11.000Z | 2021-06-10T20:12:34.000Z | basta/apps.py | lorenzosp93/basta_app | 0eba51f648f74d21e84d30d1047a4bedf79dbbaa | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class BastaConfig(AppConfig):
name = 'basta'
| 14.166667 | 33 | 0.741176 | 10 | 85 | 6.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 85 | 5 | 34 | 17 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
79fce3dcd8fec44d683c9f8c517644261b09f11b | 5,603 | py | Python | lungmask/data_io.py | kwxu/lungmask | 44d89de517925c818dc145683c522389c178728d | [
"Apache-2.0"
] | null | null | null | lungmask/data_io.py | kwxu/lungmask | 44d89de517925c818dc145683c522389c178728d | [
"Apache-2.0"
] | null | null | null | lungmask/data_io.py | kwxu/lungmask | 44d89de517925c818dc145683c522389c178728d | [
"Apache-2.0"
] | null | null | null | import os
from utils import read_file_contents_list, convert_flat_2_3d, get_logger
import nibabel as nib
import numpy as np
import pickle
logger = get_logger('DataFolder')
class DataFolder:
def __init__(self, in_folder, data_file_list=None):
self._in_folder = in_folder
self._file_list = []
... | 30.785714 | 102 | 0.660361 | 845 | 5,603 | 3.975148 | 0.149112 | 0.064305 | 0.035725 | 0.019053 | 0.275082 | 0.21435 | 0.086931 | 0.054183 | 0.03632 | 0.02203 | 0 | 0.00706 | 0.241656 | 5,603 | 181 | 103 | 30.955801 | 0.783478 | 0.022845 | 0 | 0.092308 | 0 | 0 | 0.031079 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.261538 | false | 0 | 0.038462 | 0.115385 | 0.507692 | 0.023077 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
cee6f681d4af9eb3e72ec6155792f49bc79df1d5 | 291 | py | Python | mw/lib/title/tests/test_functions.py | frankier/python-mediawiki-utilities | aa066d3d955daa3d20cf09bf5b0d46778dd67a7c | [
"MIT"
] | 23 | 2015-09-13T04:42:24.000Z | 2021-05-28T23:28:57.000Z | mw/lib/title/tests/test_functions.py | frankier/python-mediawiki-utilities | aa066d3d955daa3d20cf09bf5b0d46778dd67a7c | [
"MIT"
] | 23 | 2015-01-14T04:48:59.000Z | 2015-08-25T19:25:43.000Z | mw/lib/title/tests/test_functions.py | frankier/python-mediawiki-utilities | aa066d3d955daa3d20cf09bf5b0d46778dd67a7c | [
"MIT"
] | 14 | 2015-09-15T16:04:50.000Z | 2022-01-09T19:18:39.000Z | from nose.tools import eq_
from ..functions import normalize
def test_normalize():
eq_("Foobar", normalize("Foobar")) # Same
eq_("Foobar", normalize("foobar")) # Capitalize
eq_("FooBar", normalize("fooBar")) # Late capital
eq_("Foo_bar", normalize("Foo bar")) # Space
| 26.454545 | 54 | 0.666667 | 35 | 291 | 5.342857 | 0.485714 | 0.128342 | 0.272727 | 0.368984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175258 | 291 | 10 | 55 | 29.1 | 0.779167 | 0.116838 | 0 | 0 | 0 | 0 | 0.198413 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.285714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cefcb640da4177a13fd660c6e79afd617be0bf00 | 155 | py | Python | Python2.x/Python2.x-0-basic/004_loop_1.1_while.py | mrxuyong/Python-dev | 8ae4c668a458819a60e39f3e231159afcceb97ee | [
"MIT"
] | null | null | null | Python2.x/Python2.x-0-basic/004_loop_1.1_while.py | mrxuyong/Python-dev | 8ae4c668a458819a60e39f3e231159afcceb97ee | [
"MIT"
] | null | null | null | Python2.x/Python2.x-0-basic/004_loop_1.1_while.py | mrxuyong/Python-dev | 8ae4c668a458819a60e39f3e231159afcceb97ee | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
# @desc while loop
count = 10
while (count > 0):
print 'the count is:', count;
count = count - 1;
print 'it is over...'
| 14.090909 | 33 | 0.548387 | 23 | 155 | 3.695652 | 0.652174 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04386 | 0.264516 | 155 | 10 | 34 | 15.5 | 0.701754 | 0.245161 | 0 | 0 | 0 | 0 | 0.22807 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.4 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3014ef30abaf6085e4fb6a65a95098949fda6b4d | 2,363 | py | Python | vk_air/objects/pretty.py | sultan1k/vk_air | 110864a370914afebbeb4fa27ee382a5bbbed516 | [
"MIT"
] | 5 | 2021-12-02T14:41:54.000Z | 2022-02-17T18:20:36.000Z | vk_air/objects/pretty.py | sultan1k/vk_air | 110864a370914afebbeb4fa27ee382a5bbbed516 | [
"MIT"
] | null | null | null | vk_air/objects/pretty.py | sultan1k/vk_air | 110864a370914afebbeb4fa27ee382a5bbbed516 | [
"MIT"
] | null | null | null | """
MIT License
Copyright (c) 2021 sultan1k
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, modify, merge, publish, dist... | 30.294872 | 81 | 0.679645 | 322 | 2,363 | 4.944099 | 0.419255 | 0.057161 | 0.056533 | 0.050251 | 0.125628 | 0.125628 | 0.04397 | 0.04397 | 0.04397 | 0 | 0 | 0.002761 | 0.233601 | 2,363 | 78 | 82 | 30.294872 | 0.876311 | 0.464664 | 0 | 0.307692 | 0 | 0 | 0.046417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25641 | false | 0 | 0.076923 | 0.153846 | 0.589744 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3033c8c8fb53266153990f7c1eeb409f5500f29b | 282 | py | Python | exercises/test_01_05_02.py | rly/nwb-python-course | a999f4d21df3157c28e0b6cc017944202a47b6d8 | [
"MIT"
] | 8 | 2019-06-07T16:52:38.000Z | 2021-11-09T18:27:27.000Z | exercises/test_01_05_02.py | rly/nwb-python-course | a999f4d21df3157c28e0b6cc017944202a47b6d8 | [
"MIT"
] | 4 | 2019-05-15T17:59:53.000Z | 2019-06-06T21:22:33.000Z | exercises/test_01_05_02.py | rly/nwb-python-course | a999f4d21df3157c28e0b6cc017944202a47b6d8 | [
"MIT"
] | 1 | 2020-04-02T00:09:04.000Z | 2020-04-02T00:09:04.000Z | def test():
# only check that the code runs and x is in the last line of the solution
assert "nwbfile.acquisition['MyTimeSeries']" in __solution__.strip().splitlines()[-1], "Use the name of the time series to get it from nwbfile.acquisition"
__msg__.good("Nice work!")
| 47 | 159 | 0.716312 | 44 | 282 | 4.409091 | 0.795455 | 0.051546 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00431 | 0.177305 | 282 | 5 | 160 | 56.4 | 0.831897 | 0.251773 | 0 | 0 | 0 | 0 | 0.5311 | 0.167464 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3051f733412e4453e55d3bcc51e2e4d3bd706b52 | 30 | py | Python | nssrc/com/citrix/netscaler/nitro/resource/config/protocol/__init__.py | benfinke/ns_python | d651d7aa01d7dc63c1cd435c7b3314d7f5b26659 | [
"Apache-2.0"
] | 2 | 2020-08-24T18:04:22.000Z | 2020-08-24T18:04:47.000Z | nssrc/com/citrix/netscaler/nitro/resource/config/protocol/__init__.py | benfinke/ns_python | d651d7aa01d7dc63c1cd435c7b3314d7f5b26659 | [
"Apache-2.0"
] | 1 | 2017-01-20T22:56:58.000Z | 2017-01-20T22:56:58.000Z | nssrc/com/citrix/netscaler/nitro/resource/config/protocol/__init__.py | benfinke/ns_python | d651d7aa01d7dc63c1cd435c7b3314d7f5b26659 | [
"Apache-2.0"
] | 6 | 2015-04-21T13:14:08.000Z | 2020-12-03T07:27:52.000Z | __all__ = ['protocolhttpband'] | 30 | 30 | 0.766667 | 2 | 30 | 9.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 30 | 1 | 30 | 30 | 0.678571 | 0 | 0 | 0 | 0 | 0 | 0.516129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
307573df17e403b3e3a6d2caa658ffd0543937ff | 62 | py | Python | lightning/admin.py | git-men/bsm-django | 46d1fcbd8ca379d20a3396fd7ea529ccf998f59d | [
"MIT"
] | 90 | 2020-12-07T04:49:43.000Z | 2022-03-31T08:24:35.000Z | lightning/admin.py | flyowl/lightning | 946c98986c1c42bf8c28f203cdf8512262283c25 | [
"MIT"
] | 4 | 2021-01-11T16:10:55.000Z | 2022-02-18T12:13:23.000Z | lightning/admin.py | flyowl/lightning | 946c98986c1c42bf8c28f203cdf8512262283c25 | [
"MIT"
] | 16 | 2020-12-07T12:32:05.000Z | 2022-01-30T05:36:51.000Z | from api_basebone.core.admin import BSMAdmin
Admin = BSMAdmin | 20.666667 | 44 | 0.83871 | 9 | 62 | 5.666667 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112903 | 62 | 3 | 45 | 20.666667 | 0.927273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
063913d70b2c3bc41fd3482a0731f29e48bcbd94 | 49 | py | Python | Living_SDK/board/tg7100cevb/ucube.py | AL-Answer/HF-270-1.6.6 | fe271e48af446ed51fbe1b090be86801480afd2f | [
"Apache-2.0"
] | 12 | 2020-12-04T15:06:22.000Z | 2022-01-19T09:57:47.000Z | Living_SDK/board/tg7100cevb/ucube.py | AL-Answer/HF-270-1.6.6 | fe271e48af446ed51fbe1b090be86801480afd2f | [
"Apache-2.0"
] | 1 | 2021-03-01T04:29:31.000Z | 2021-03-15T03:15:20.000Z | Living_SDK/board/tg7100cevb/ucube.py | AL-Answer/HF-270-1.6.6 | fe271e48af446ed51fbe1b090be86801480afd2f | [
"Apache-2.0"
] | 5 | 2020-12-10T09:09:24.000Z | 2021-04-15T11:50:32.000Z | linux_only_targets="smart_outlet smart_led_bulb"
| 24.5 | 48 | 0.897959 | 8 | 49 | 4.875 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 49 | 1 | 49 | 49 | 0.829787 | 0 | 0 | 0 | 0 | 0 | 0.55102 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
06537fa35591e6a884797274623da50012f86676 | 100 | py | Python | hubblestack/__init__.py | instructure/hubble | d94ec81f478e3a59611faa0c125fd120e9f43d0b | [
"Apache-2.0"
] | 2 | 2019-11-30T19:36:25.000Z | 2020-09-23T06:28:26.000Z | hubblestack/__init__.py | instructure/hubble | d94ec81f478e3a59611faa0c125fd120e9f43d0b | [
"Apache-2.0"
] | 3 | 2020-08-03T18:14:02.000Z | 2020-08-03T22:43:44.000Z | hubblestack/__init__.py | instructure/hubble | d94ec81f478e3a59611faa0c125fd120e9f43d0b | [
"Apache-2.0"
] | null | null | null | __version__ = '4.0.0'
__buildinfo__ = {'branch': 'BRANCH_NOT_SET', 'last_commit': 'COMMIT_NOT_SET'} | 33.333333 | 77 | 0.72 | 14 | 100 | 4.214286 | 0.642857 | 0.20339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032967 | 0.09 | 100 | 3 | 77 | 33.333333 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0.49505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
066d1ddc8787a5de2e8b7be1e2fdb22101823866 | 2,243 | py | Python | nova_powervm/tests/virt/powervm/nvram/fake_api.py | openstack/nova-powervm | 376d9493e2a10313068508daf9054d7ecf6d121f | [
"Apache-2.0"
] | 24 | 2015-10-18T02:55:20.000Z | 2021-11-17T11:43:51.000Z | nova_powervm/tests/virt/powervm/nvram/fake_api.py | openstack/nova-powervm | 376d9493e2a10313068508daf9054d7ecf6d121f | [
"Apache-2.0"
] | null | null | null | nova_powervm/tests/virt/powervm/nvram/fake_api.py | openstack/nova-powervm | 376d9493e2a10313068508daf9054d7ecf6d121f | [
"Apache-2.0"
] | 12 | 2015-10-26T17:38:05.000Z | 2021-07-21T12:45:19.000Z | # Copyright 2016, 2017 IBM Corp.
#
# 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 require... | 32.985294 | 78 | 0.662951 | 292 | 2,243 | 5.089041 | 0.428082 | 0.043069 | 0.057201 | 0.074024 | 0.430686 | 0.430686 | 0.37214 | 0.37214 | 0.37214 | 0.37214 | 0 | 0.010989 | 0.269728 | 2,243 | 67 | 79 | 33.477612 | 0.896215 | 0.694605 | 0 | 0.615385 | 0 | 0 | 0.01938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0.153846 | 0.076923 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
0683855a2b130d0ece2a377399da191c38debc9c | 658 | py | Python | songs-generator2.py | Antoniii/Generator-of-songs-without-neural-network-and-SMS | 3a5bb26dcb9bc447d18c5db5acc8bcdf6ae6ed0e | [
"MIT"
] | null | null | null | songs-generator2.py | Antoniii/Generator-of-songs-without-neural-network-and-SMS | 3a5bb26dcb9bc447d18c5db5acc8bcdf6ae6ed0e | [
"MIT"
] | null | null | null | songs-generator2.py | Antoniii/Generator-of-songs-without-neural-network-and-SMS | 3a5bb26dcb9bc447d18c5db5acc8bcdf6ae6ed0e | [
"MIT"
] | null | null | null | import markovify
# with open("esenin.txt", 'r', encoding='utf-8') as f0, \
# open("kish.txt", 'r', encoding='utf-8') as f1, \
# open("kino.txt", 'r', encoding='utf-8') as f2, \
# open("kukr.txt", 'r', encoding='utf-8') as f3, \
# open("dataset.txt", 'a', encoding='utf-8') as f:
# f.write(f0.read())
# ... | 32.9 | 58 | 0.582067 | 108 | 658 | 3.481481 | 0.351852 | 0.204787 | 0.223404 | 0.223404 | 0.335106 | 0.239362 | 0 | 0 | 0 | 0 | 0 | 0.037175 | 0.182371 | 658 | 20 | 59 | 32.9 | 0.66171 | 0.527356 | 0 | 0 | 0 | 0 | 0.116608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
06a9008bc8769abde32738b35a48c700127edfa3 | 1,453 | py | Python | module/invite.py | lolotree11/pyscord | a9e96485a0ac477a0bb585ddae20061b4f704a51 | [
"MIT"
] | 14 | 2021-09-13T19:16:10.000Z | 2021-09-16T21:06:40.000Z | module/invite.py | Lorisredstone/pyscord | a9e96485a0ac477a0bb585ddae20061b4f704a51 | [
"MIT"
] | null | null | null | module/invite.py | Lorisredstone/pyscord | a9e96485a0ac477a0bb585ddae20061b4f704a51 | [
"MIT"
] | null | null | null | import channels
import client
import general
import guild
import invite
import listener
import messages
import user
class Invite:
def __init__(self, invite, basic_header, api_version=9):
self.basic_header = basic_header
self.api_version = api_version
self.raw = invite
self.invite =... | 51.892857 | 144 | 0.757054 | 186 | 1,453 | 5.61828 | 0.188172 | 0.115789 | 0.2 | 0.263158 | 0.42488 | 0.359809 | 0.218182 | 0.218182 | 0.218182 | 0.218182 | 0 | 0.000806 | 0.146593 | 1,453 | 28 | 145 | 51.892857 | 0.841935 | 0 | 0 | 0 | 0 | 0 | 0.094223 | 0.034388 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.32 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
06b179b6f949317db5ec6ac92046d2b00e5555a4 | 372 | py | Python | listings/middleware.py | darkismus/kompassi | 35dea2c7af2857a69cae5c5982b48f01ba56da1f | [
"CC-BY-3.0"
] | 13 | 2015-11-29T12:19:12.000Z | 2021-02-21T15:42:11.000Z | listings/middleware.py | darkismus/kompassi | 35dea2c7af2857a69cae5c5982b48f01ba56da1f | [
"CC-BY-3.0"
] | 23 | 2015-04-29T19:43:34.000Z | 2021-02-10T05:50:17.000Z | listings/middleware.py | darkismus/kompassi | 35dea2c7af2857a69cae5c5982b48f01ba56da1f | [
"CC-BY-3.0"
] | 11 | 2015-09-20T18:59:00.000Z | 2020-02-07T08:47:34.000Z | from django.conf import settings
from django.utils.deprecation import MiddlewareMixin
class ListingsMiddleware(MiddlewareMixin):
def process_request(self, request):
hostname = request.META['HTTP_HOST']
if hostname in settings.KOMPASSI_LISTING_URLCONFS:
request.urlconf = settings.KOMPA... | 28.615385 | 74 | 0.752688 | 40 | 372 | 6.85 | 0.65 | 0.072993 | 0.167883 | 0.226277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185484 | 372 | 12 | 75 | 31 | 0.90429 | 0 | 0 | 0 | 0 | 0 | 0.024194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.25 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
ebf1dea8253d1b5e7b2805193ce6274790b7064c | 7,537 | py | Python | tests/test_class6.py | kinther/ansible_course | 5ff96b857d7b1ddb359526fed128feefba8ebb90 | [
"Apache-2.0"
] | 14 | 2020-01-24T21:52:51.000Z | 2021-05-24T01:58:08.000Z | tests/test_class6.py | kinther/ansible_course | 5ff96b857d7b1ddb359526fed128feefba8ebb90 | [
"Apache-2.0"
] | null | null | null | tests/test_class6.py | kinther/ansible_course | 5ff96b857d7b1ddb359526fed128feefba8ebb90 | [
"Apache-2.0"
] | 26 | 2020-03-29T20:17:29.000Z | 2022-03-28T19:13:40.000Z | import re
import pytest
from pathlib import Path
from utilities import subprocess_runner, remove_ansible_warnings
TEST_CASES = [
"../class6/collateral/roles_test/test_pb1.yml",
"../class6/collateral/roles_test/test_pb2.yml",
"../class6/collateral/roles_test/test_pb3.yml",
"../class6/collateral/roles_te... | 43.819767 | 87 | 0.677856 | 1,154 | 7,537 | 4.202773 | 0.108319 | 0.059381 | 0.075052 | 0.080412 | 0.834433 | 0.764124 | 0.684742 | 0.681237 | 0.64866 | 0.644742 | 0 | 0.028406 | 0.149927 | 7,537 | 171 | 88 | 44.076023 | 0.728578 | 0.035425 | 0 | 0.4375 | 0 | 0 | 0.303034 | 0.224414 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0.0625 | false | 0 | 0.041667 | 0 | 0.104167 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ebf30e0113331f461f7e6d57d5874004cbbd3ff5 | 421 | py | Python | pyop4/opbase/__init__.py | cindy0123/duty-util01 | c582a7c5dfc6585e421b1b72b2876741b0839c95 | [
"MIT"
] | null | null | null | pyop4/opbase/__init__.py | cindy0123/duty-util01 | c582a7c5dfc6585e421b1b72b2876741b0839c95 | [
"MIT"
] | null | null | null | pyop4/opbase/__init__.py | cindy0123/duty-util01 | c582a7c5dfc6585e421b1b72b2876741b0839c95 | [
"MIT"
] | null | null | null | #
from opmsg import opmsg
from opfilehandle import iterfind, is_writeable, is_readable, tailf, filetail, myreadline, md5sum
from pypyscreen import getoutput, getstderr
from openv import op4env
from opErrCtl import opErrCtl
from opgit import basegit
from opfileformat import opfileformat
from opconfig import opco... | 32.384615 | 98 | 0.828979 | 53 | 421 | 6.54717 | 0.471698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005602 | 0.152019 | 421 | 12 | 99 | 35.083333 | 0.966387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
230be6e5f352a837ed80256684e2f383a2c4bc8a | 569 | py | Python | task22.py | kazh98/pe2019 | 9b09e0c12f31b7eacfb52ee5c2bcbad91306d59a | [
"MIT"
] | null | null | null | task22.py | kazh98/pe2019 | 9b09e0c12f31b7eacfb52ee5c2bcbad91306d59a | [
"MIT"
] | null | null | null | task22.py | kazh98/pe2019 | 9b09e0c12f31b7eacfb52ee5c2bcbad91306d59a | [
"MIT"
] | null | null | null | import math
class Triangle(object):
def __init__(self, a, b, C):
self.a = a
self.b = b
self.C = C * math.pi / 180
def getHeight(self):
return self.b * math.sin(self.C)
def getArea(self):
return (self.a * self.getHeight()) / 2
def getPerimeter(self):
... | 22.76 | 110 | 0.56239 | 92 | 569 | 3.434783 | 0.336957 | 0.094937 | 0.056962 | 0.094937 | 0.18038 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023753 | 0.260105 | 569 | 24 | 111 | 23.708333 | 0.726841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.058824 | 0.176471 | 0.529412 | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
23779aca121a3503a18b23646928d6994ef16ada | 7,726 | py | Python | FATERUI/common/camera/mindvision/CameraMindVision.py | LynnChan706/Fater | dde8e3baaac7be8b0c1f8bee0da628f6e6f2b772 | [
"MIT"
] | 4 | 2018-12-07T02:17:26.000Z | 2020-12-03T05:32:23.000Z | FATERUI/common/camera/mindvision/CameraMindVision.py | LynnChan706/Fater | dde8e3baaac7be8b0c1f8bee0da628f6e6f2b772 | [
"MIT"
] | null | null | null | FATERUI/common/camera/mindvision/CameraMindVision.py | LynnChan706/Fater | dde8e3baaac7be8b0c1f8bee0da628f6e6f2b772 | [
"MIT"
] | 1 | 2021-12-30T12:14:52.000Z | 2021-12-30T12:14:52.000Z | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.11
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (2,6,0):
def swig_import_helper():
from os.path impo... | 52.202703 | 153 | 0.766632 | 914 | 7,726 | 5.977024 | 0.200219 | 0.169138 | 0.173897 | 0.146074 | 0.450485 | 0.253341 | 0.193666 | 0.093904 | 0.065349 | 0.065349 | 0 | 0.005008 | 0.147165 | 7,726 | 147 | 154 | 52.557823 | 0.824101 | 0.038183 | 0 | 0.142857 | 1 | 0 | 0.021291 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.388889 | false | 0.015873 | 0.071429 | 0.34127 | 0.634921 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
88c5677d238cb2a450c2dcd480b3d36c6e75cd64 | 469 | py | Python | morm/exceptions.py | neurobin/python-morm | 2b6dcedc7090a9e642331300a24dfcca41ea1afe | [
"BSD-3-Clause"
] | 4 | 2021-03-12T16:36:24.000Z | 2022-03-06T09:26:14.000Z | morm/exceptions.py | neurobin/python-morm | 2b6dcedc7090a9e642331300a24dfcca41ea1afe | [
"BSD-3-Clause"
] | null | null | null | morm/exceptions.py | neurobin/python-morm | 2b6dcedc7090a9e642331300a24dfcca41ea1afe | [
"BSD-3-Clause"
] | null | null | null | """Exceptions.
"""
__author__ = 'Md Jahidul Hamid <jahidulhamid@yahoo.com>'
__copyright__ = 'Copyright © Md Jahidul Hamid <https://github.com/neurobin/>'
__license__ = '[BSD](http://www.opensource.org/licenses/bsd-license.php)'
__version__ = '0.0.1'
class ItemDoesNotExistError(Exception): pass
class TransactionError... | 31.266667 | 77 | 0.782516 | 52 | 469 | 6.769231 | 0.615385 | 0.184659 | 0.204545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0.085288 | 469 | 14 | 78 | 33.5 | 0.811189 | 0.023454 | 0 | 0 | 0 | 0 | 0.359202 | 0.053215 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.555556 | 0 | 0 | 0.555556 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
88c62afe21dfb39f73d92cd64821ebf63ee556f0 | 528 | py | Python | PowerPoint/Slide.py | Cow-Fu/PowerPointCat | 79e268c2acf386136b3a98354c90e874af4f5d8b | [
"MIT"
] | null | null | null | PowerPoint/Slide.py | Cow-Fu/PowerPointCat | 79e268c2acf386136b3a98354c90e874af4f5d8b | [
"MIT"
] | null | null | null | PowerPoint/Slide.py | Cow-Fu/PowerPointCat | 79e268c2acf386136b3a98354c90e874af4f5d8b | [
"MIT"
] | null | null | null |
class Slide:
def getTitle(self):
return self.titles
def setTitle(self, titles):
self.self.titles = titles
def getContent(self):
return contentHolders
def setContent(self, content):
self.content = content
def getMarkup(self):
return self.markup
def se... | 21.12 | 62 | 0.621212 | 60 | 528 | 5.4 | 0.3 | 0.123457 | 0.08642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.289773 | 528 | 24 | 63 | 22 | 0.864 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.411765 | false | 0 | 0 | 0.176471 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
88e8d8b8441a20fb786410b34dc4755e85f8000a | 156 | py | Python | ipx800/__init__.py | marcaurele/py-ipx800 | 6507d6cbdc73d51069c4e898dc639d546cd11cc1 | [
"Apache-2.0"
] | null | null | null | ipx800/__init__.py | marcaurele/py-ipx800 | 6507d6cbdc73d51069c4e898dc639d546cd11cc1 | [
"Apache-2.0"
] | null | null | null | ipx800/__init__.py | marcaurele/py-ipx800 | 6507d6cbdc73d51069c4e898dc639d546cd11cc1 | [
"Apache-2.0"
] | null | null | null | """Module to control the IPX800 V4 device from GCE Electronics."""
from ipx800.ipx800 import ApiError, IPX800 as ipx800 # noqa
__version__ = "0.6.dev0"
| 22.285714 | 66 | 0.737179 | 23 | 156 | 4.826087 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146154 | 0.166667 | 156 | 6 | 67 | 26 | 0.707692 | 0.423077 | 0 | 0 | 0 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0009d317eda577c77a294988d96387e6a49c680b | 7,508 | py | Python | hearthbreaker/cards/minions/warlock.py | zetsubo/hearthstone-simulator | af5417bde6bb878b7b1e54ef268f2296f300062e | [
"MIT"
] | null | null | null | hearthbreaker/cards/minions/warlock.py | zetsubo/hearthstone-simulator | af5417bde6bb878b7b1e54ef268f2296f300062e | [
"MIT"
] | null | null | null | hearthbreaker/cards/minions/warlock.py | zetsubo/hearthstone-simulator | af5417bde6bb878b7b1e54ef268f2296f300062e | [
"MIT"
] | null | null | null | from hearthbreaker.cards.base import MinionCard, WeaponCard
from hearthbreaker.constants import CHARACTER_CLASS, CARD_RARITY, MINION_TYPE
from hearthbreaker.game_objects import Weapon, Minion
from hearthbreaker.tags.action import Summon, Kill, Damage, Discard, DestroyManaCrystal
from hearthbreaker.tags.base import Effe... | 37.919192 | 119 | 0.658364 | 833 | 7,508 | 5.627851 | 0.178872 | 0.062713 | 0.042235 | 0.061433 | 0.52901 | 0.517065 | 0.388012 | 0.3718 | 0.273891 | 0.231869 | 0 | 0.01218 | 0.23455 | 7,508 | 197 | 120 | 38.111675 | 0.80355 | 0 | 0 | 0.314286 | 0 | 0 | 0.027437 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.271429 | false | 0 | 0.071429 | 0.114286 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
000dc780b9a004805388363d2fa9913daf02f7fc | 85 | py | Python | deeds/apps.py | kingsdigitallab/ec-django | bc3c37d73e2e8705c6e618e8decbcafaa4dcfe15 | [
"MIT"
] | null | null | null | deeds/apps.py | kingsdigitallab/ec-django | bc3c37d73e2e8705c6e618e8decbcafaa4dcfe15 | [
"MIT"
] | null | null | null | deeds/apps.py | kingsdigitallab/ec-django | bc3c37d73e2e8705c6e618e8decbcafaa4dcfe15 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class DeedsConfig(AppConfig):
name = 'deeds'
| 14.166667 | 33 | 0.741176 | 10 | 85 | 6.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 85 | 5 | 34 | 17 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0019c52a970f3519648c7ab3d374020f5f22551e | 53 | py | Python | tmhmm/__init__.py | nicolagulmini/tmhmm.py | fbfb97835043bc18615c81fa6ee24fc9fb5f51fe | [
"MIT"
] | 25 | 2015-04-29T01:32:31.000Z | 2022-03-19T05:37:05.000Z | tmhmm/__init__.py | nicolagulmini/tmhmm.py | fbfb97835043bc18615c81fa6ee24fc9fb5f51fe | [
"MIT"
] | 14 | 2015-03-26T18:58:59.000Z | 2020-12-01T16:05:30.000Z | tmhmm/__init__.py | nicolagulmini/tmhmm.py | fbfb97835043bc18615c81fa6ee24fc9fb5f51fe | [
"MIT"
] | 18 | 2015-03-27T13:57:44.000Z | 2022-03-06T14:46:26.000Z | from tmhmm.api import predict
__all__ = ['predict']
| 13.25 | 29 | 0.735849 | 7 | 53 | 5 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150943 | 53 | 3 | 30 | 17.666667 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.132075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
001f6a50d837b12c9e06f07f6156134ca765eaab | 737 | py | Python | flax/Ports.py | drewp/light9 | ab173a40d095051546e532962f7a33ac502943a6 | [
"MIT"
] | 2 | 2018-10-05T13:32:46.000Z | 2022-01-01T22:51:20.000Z | flax/Ports.py | drewp/light9 | ab173a40d095051546e532962f7a33ac502943a6 | [
"MIT"
] | 4 | 2021-06-08T19:33:40.000Z | 2022-03-11T23:18:06.000Z | flax/Ports.py | drewp/light9 | ab173a40d095051546e532962f7a33ac502943a6 | [
"MIT"
] | null | null | null | # super rough code
class AbstractPort:
def __init__(self):
pass
def put_data(self, value):
pass
def get_data(self):
pass
class Port(AbstractPort):
"Connects from a node to exactly one node."
def __init__(self, value=None):
AbstractPort.__init__(self)
self.va... | 24.566667 | 50 | 0.63365 | 95 | 737 | 4.642105 | 0.305263 | 0.108844 | 0.07483 | 0.095238 | 0.462585 | 0.249433 | 0 | 0 | 0 | 0 | 0 | 0 | 0.279512 | 737 | 29 | 51 | 25.413793 | 0.830508 | 0.141113 | 0 | 0.56 | 0 | 0 | 0.11822 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.36 | false | 0.12 | 0 | 0.08 | 0.56 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
cc6fb6b7fa5d1a0db2a535927d49b69b0a26d92c | 118 | py | Python | hoc/5_clear.py | DolceVii/astropi | d13b42c4a4986c88e784a1ba4463228086f44d89 | [
"MIT"
] | 2 | 2020-03-15T16:41:48.000Z | 2020-03-15T16:44:11.000Z | hoc/5_clear.py | DolceVii/astropi | d13b42c4a4986c88e784a1ba4463228086f44d89 | [
"MIT"
] | null | null | null | hoc/5_clear.py | DolceVii/astropi | d13b42c4a4986c88e784a1ba4463228086f44d89 | [
"MIT"
] | 1 | 2020-03-15T16:45:57.000Z | 2020-03-15T16:45:57.000Z | from sense_hat import SenseHat
sense = SenseHat()
sense.set_rotation(270)
magenta=(255,0,255)
sense.clear(magenta)
| 13.111111 | 30 | 0.771186 | 18 | 118 | 4.944444 | 0.666667 | 0.292135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 0.110169 | 118 | 8 | 31 | 14.75 | 0.752381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cc788ba102fa550d03d7b8d7b629c782086bf9e9 | 73 | py | Python | 6 - Python/Strings/2 - String Split And Join.py | Terence-Guan/Python.HackerRank | 165a5f0e739c7678dfac7eae95443018e2167c3d | [
"MIT"
] | 88 | 2016-10-23T16:41:14.000Z | 2019-12-30T23:51:47.000Z | HackerRank/6 - Python/Strings/2 - String Split And Join.py | natalie-o-perret/coding-challenges | 9a242e0ec54488f59be82592822b31ff51af1633 | [
"MIT"
] | 1 | 2018-10-13T14:31:54.000Z | 2018-10-13T14:31:54.000Z | HackerRank/6 - Python/Strings/2 - String Split And Join.py | natalie-o-perret/coding-challenges | 9a242e0ec54488f59be82592822b31ff51af1633 | [
"MIT"
] | 82 | 2017-02-01T17:02:56.000Z | 2020-02-01T11:45:58.000Z | l = input()
print('-'.join(input().split()))
# print(l.replace(" ", "-")) | 24.333333 | 32 | 0.520548 | 9 | 73 | 4.222222 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09589 | 73 | 3 | 33 | 24.333333 | 0.575758 | 0.356164 | 0 | 0 | 0 | 0 | 0.021739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
cc844dc001a47f6eb06118d9c5b0b6f3e0fa8eac | 466 | py | Python | carball/json_parser/actor/team.py | unitedroguegg/carball | 4767f2c5d195b7d5d60e6a5575415262803acef7 | [
"Apache-2.0"
] | 119 | 2018-09-14T02:14:19.000Z | 2022-03-06T05:06:54.000Z | carball/json_parser/actor/team.py | unitedroguegg/carball | 4767f2c5d195b7d5d60e6a5575415262803acef7 | [
"Apache-2.0"
] | 207 | 2018-09-06T18:53:06.000Z | 2022-02-12T22:39:36.000Z | carball/json_parser/actor/team.py | unitedroguegg/carball | 4767f2c5d195b7d5d60e6a5575415262803acef7 | [
"Apache-2.0"
] | 44 | 2018-09-10T16:54:13.000Z | 2022-02-19T03:07:50.000Z | from .ball import *
class TeamHandler(BaseActorHandler):
@classmethod
def can_handle(cls, actor: dict) -> bool:
return actor['ClassName'] == 'TAGame.Team_Soccar_TA'
def update(self, actor: dict, frame_number: int, time: float, delta: float) -> None:
self.parser.team_dicts[actor['Id']] = ... | 33.285714 | 118 | 0.643777 | 57 | 466 | 5.157895 | 0.719298 | 0.061224 | 0.095238 | 0.129252 | 0.176871 | 0.176871 | 0 | 0 | 0 | 0 | 0 | 0.002688 | 0.201717 | 466 | 13 | 119 | 35.846154 | 0.787634 | 0 | 0 | 0 | 0 | 0 | 0.171674 | 0.092275 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
cc8ebdf341dc9adbc9f048e54b245f630bb19fa2 | 352 | py | Python | bindings/python/scripts/__init__.py | matthieuvigne/pinocchio | 01f211eceda3ac2e5edc8cf101690afb6f3184d3 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2021-06-22T15:42:45.000Z | 2021-06-22T15:42:45.000Z | bindings/python/scripts/__init__.py | matthieuvigne/pinocchio | 01f211eceda3ac2e5edc8cf101690afb6f3184d3 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | bindings/python/scripts/__init__.py | matthieuvigne/pinocchio | 01f211eceda3ac2e5edc8cf101690afb6f3184d3 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2021-03-21T09:14:26.000Z | 2021-03-21T09:14:26.000Z | #
# Copyright (c) 2015-2016,2018 CNRS
#
import numpy as np
from pinocchio.robot_wrapper import RobotWrapper
from . import libpinocchio_pywrap as pin
from . import utils
from .explog import exp, log
from .libpinocchio_pywrap import *
from .deprecated import *
from .shortcuts import *
pin.AngleAxis.__repr__ = lambda s... | 20.705882 | 63 | 0.761364 | 49 | 352 | 5.326531 | 0.591837 | 0.076628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040134 | 0.150568 | 352 | 16 | 64 | 22 | 0.832776 | 0.09375 | 0 | 0 | 0 | 0 | 0.041401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.888889 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ccab49c375ec934afa10274b0d7663fef6c92ffc | 163 | py | Python | build_fake_image__build_exe/__injected_code.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 117 | 2015-12-18T07:18:27.000Z | 2022-03-28T00:25:54.000Z | build_fake_image__build_exe/__injected_code.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 8 | 2018-10-03T09:38:46.000Z | 2021-12-13T19:51:09.000Z | build_fake_image__build_exe/__injected_code.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 28 | 2016-08-02T17:43:47.000Z | 2022-03-21T08:31:12.000Z | import os.path
from pathlib import Path
file_name = Path(os.path.expanduser("~/Desktop")).resolve() / "README_YOU_WERE_HACKED.txt"
file_name.touch(exist_ok=True)
| 27.166667 | 90 | 0.779141 | 26 | 163 | 4.653846 | 0.730769 | 0.099174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079755 | 163 | 5 | 91 | 32.6 | 0.806667 | 0 | 0 | 0 | 0 | 0 | 0.214724 | 0.159509 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ccafbc80ae2c4dc0b7e9f9462d52cdbf1846b6f2 | 152 | py | Python | workstation-backend/account/urls.py | cindy21td/WorkStation | fd8cfd86d7538f55cfbeee8e17c273546691f5a8 | [
"MIT"
] | null | null | null | workstation-backend/account/urls.py | cindy21td/WorkStation | fd8cfd86d7538f55cfbeee8e17c273546691f5a8 | [
"MIT"
] | null | null | null | workstation-backend/account/urls.py | cindy21td/WorkStation | fd8cfd86d7538f55cfbeee8e17c273546691f5a8 | [
"MIT"
] | 1 | 2022-02-01T06:36:54.000Z | 2022-02-01T06:36:54.000Z | from django.urls import path
from .views import RegisterView
urlpatterns = [
path("register", RegisterView.as_view(), name="account-register"),
]
| 19 | 70 | 0.736842 | 18 | 152 | 6.166667 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138158 | 152 | 7 | 71 | 21.714286 | 0.847328 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
cccaea309e2a3f6000d30fc29d69ccec67fdcc53 | 6,233 | py | Python | evolclust/test/test_data.py | maks-ym/evolclust | 7a4b6fb70b370e4b8a0dc047b345be944c8bef64 | [
"Apache-2.0"
] | null | null | null | evolclust/test/test_data.py | maks-ym/evolclust | 7a4b6fb70b370e4b8a0dc047b345be944c8bef64 | [
"Apache-2.0"
] | null | null | null | evolclust/test/test_data.py | maks-ym/evolclust | 7a4b6fb70b370e4b8a0dc047b345be944c8bef64 | [
"Apache-2.0"
] | null | null | null | import data
import numpy as np
# TODO: split tests 1 test per assert statement
# TODO: move repeating constants out of functions
class TestHAPT:
def test_get_train_data(self):
d = data.HAPT()
assert d._train_attrs is None
d.get_train_data()
assert len(d._train_attrs) > 0
a... | 35.016854 | 118 | 0.549174 | 899 | 6,233 | 3.48832 | 0.076752 | 0.040816 | 0.076531 | 0.042092 | 0.771046 | 0.732462 | 0.705038 | 0.664541 | 0.642219 | 0.62213 | 0 | 0.056448 | 0.320712 | 6,233 | 177 | 119 | 35.214689 | 0.684223 | 0.014921 | 0 | 0.7 | 0 | 0 | 0.11341 | 0 | 0 | 0 | 0 | 0.00565 | 0.3 | 1 | 0.08125 | false | 0 | 0.0125 | 0 | 0.1 | 0.00625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cccfeb017fee05d3ea5f76de430fdaffce9b006f | 869 | py | Python | cook.py | hahahaha666/pythonpachong | 2cc8303a4baecea4bbc631e90718c49815e41133 | [
"MIT"
] | null | null | null | cook.py | hahahaha666/pythonpachong | 2cc8303a4baecea4bbc631e90718c49815e41133 | [
"MIT"
] | null | null | null | cook.py | hahahaha666/pythonpachong | 2cc8303a4baecea4bbc631e90718c49815e41133 | [
"MIT"
] | null | null | null | from urllib import request
url="http://www.renren.com/970973463"
headers={
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0',
'Cookie':'anonymid=jw6ali52-qw6ldx; depovince=GUZ; _r01_=1; JSESSIONID=abcv45u4hL5Z0cQdde5Rw; ick_login=99f8241c-bfc0-4cda-9ed9-a... | 37.782609 | 499 | 0.757192 | 108 | 869 | 6.046296 | 0.814815 | 0.030628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.277494 | 0.100115 | 869 | 22 | 500 | 39.5 | 0.557545 | 0 | 0 | 0 | 0 | 0.2 | 0.744048 | 0.461905 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ccd04a7e09d105a59f9f5a6203ec89835df74d6c | 337 | py | Python | Chapter1/Modules.py | rabbitism/Beginning-Python-Practice | f34163291db621a38226841aeb59e71b68fae00c | [
"MIT"
] | null | null | null | Chapter1/Modules.py | rabbitism/Beginning-Python-Practice | f34163291db621a38226841aeb59e71b68fae00c | [
"MIT"
] | null | null | null | Chapter1/Modules.py | rabbitism/Beginning-Python-Practice | f34163291db621a38226841aeb59e71b68fae00c | [
"MIT"
] | null | null | null | import math
from math import sqrt
import cmath
print("Module math imported")
print(math.floor(32.9))
print(int(32.9))
print(math.ceil(32.3))
print(math.ceil(32))
print(sqrt(9))
print(sqrt(2))
#cmath and Complex Numbers
##print(sqrt(-1)) This will trigger a ValueError: math domain error
print(cmath.sqrt(-1))
prin... | 15.318182 | 67 | 0.712166 | 60 | 337 | 4 | 0.466667 | 0.1125 | 0.066667 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063758 | 0.115727 | 337 | 21 | 68 | 16.047619 | 0.741611 | 0.267062 | 0 | 0 | 0 | 0 | 0.081967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.75 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 3 |
aeb938464b8436bc591f29878807da6714edebd6 | 114 | py | Python | msghandle/logger.py | RaenonX/Jelly-Bot-API | c7da1e91783dce3a2b71b955b3a22b68db9056cf | [
"MIT"
] | 5 | 2020-08-26T20:12:00.000Z | 2020-12-11T16:39:22.000Z | msghandle/logger.py | RaenonX/Jelly-Bot | c7da1e91783dce3a2b71b955b3a22b68db9056cf | [
"MIT"
] | 234 | 2019-12-14T03:45:19.000Z | 2020-08-26T18:55:19.000Z | msghandle/logger.py | RaenonX/Jelly-Bot-API | c7da1e91783dce3a2b71b955b3a22b68db9056cf | [
"MIT"
] | 2 | 2019-10-23T15:21:15.000Z | 2020-05-22T09:35:55.000Z | from extutils.logger import LoggerSkeleton
logger = LoggerSkeleton("sys.handle", logger_name_env="EVT_HANDLER")
| 22.8 | 68 | 0.815789 | 14 | 114 | 6.428571 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087719 | 114 | 4 | 69 | 28.5 | 0.865385 | 0 | 0 | 0 | 0 | 0 | 0.184211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
aec38bf484f1021b83c29eabcbe8cf3c71510b3b | 5,243 | py | Python | src/oaipmh/interfaces.py | unt-libraries/pyoai | a8160d73ff3b5de20c9a5b358f9c555316245523 | [
"BSD-3-Clause"
] | 58 | 2015-02-06T17:54:33.000Z | 2022-02-03T11:30:08.000Z | src/oaipmh/interfaces.py | unt-libraries/pyoai | a8160d73ff3b5de20c9a5b358f9c555316245523 | [
"BSD-3-Clause"
] | 40 | 2015-01-15T15:20:36.000Z | 2022-03-09T09:12:09.000Z | src/oaipmh/interfaces.py | unt-libraries/pyoai | a8160d73ff3b5de20c9a5b358f9c555316245523 | [
"BSD-3-Clause"
] | 45 | 2015-02-08T14:14:54.000Z | 2022-02-03T16:15:33.000Z | class IOAI:
def getRecord(metadataPrefix, identifier):
"""Get a record for a metadataPrefix and identifier.
metadataPrefix - identifies metadata set to retrieve
identifier - repository-unique identifier of record
Should raise error.CannotDisseminateFormatError if
me... | 30.660819 | 77 | 0.632462 | 568 | 5,243 | 5.818662 | 0.302817 | 0.029955 | 0.04357 | 0.030257 | 0.451135 | 0.383964 | 0.352799 | 0.334039 | 0.307413 | 0.288048 | 0 | 0.002183 | 0.300973 | 5,243 | 170 | 78 | 30.841176 | 0.899591 | 0.633988 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.666667 | false | 0.166667 | 0 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
aeca24594bb9f1b3c443da90d657bfdc972786f0 | 764 | py | Python | pybaseball/cache/file_utils.py | reddigari/pybaseball | 2d878cf3505ce0a5e657694ae967d6275dc3c211 | [
"MIT"
] | 650 | 2017-06-29T20:05:19.000Z | 2022-03-31T03:27:25.000Z | pybaseball/cache/file_utils.py | reddigari/pybaseball | 2d878cf3505ce0a5e657694ae967d6275dc3c211 | [
"MIT"
] | 216 | 2017-10-21T05:05:08.000Z | 2022-03-31T04:04:53.000Z | pybaseball/cache/file_utils.py | reddigari/pybaseball | 2d878cf3505ce0a5e657694ae967d6275dc3c211 | [
"MIT"
] | 214 | 2017-07-18T21:40:01.000Z | 2022-03-29T03:19:55.000Z | import json
import os
import pathlib
from typing import Any, Dict, List, Union, cast
JSONData = Union[List[Any], Dict[str, Any]]
# Splitting this out for testing with no side effects
def mkdir(directory: str) -> None:
return pathlib.Path(directory).mkdir(parents=True, exist_ok=True)
# Splitting this out for te... | 26.344828 | 72 | 0.71466 | 112 | 764 | 4.8125 | 0.401786 | 0.059369 | 0.059369 | 0.070501 | 0.170686 | 0.170686 | 0.170686 | 0.170686 | 0.170686 | 0.170686 | 0 | 0 | 0.17801 | 764 | 28 | 73 | 27.285714 | 0.85828 | 0.134817 | 0 | 0 | 0 | 0 | 0.00152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.235294 | 0.117647 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
aee8c4aacbfa2452dda49dc8ed7e7e3da50d77d5 | 528 | py | Python | app/forms.py | samkreter/TigerBuilds-Website | 4fa6c740552d87c20c4d649472f3d457bf3e54e1 | [
"MIT"
] | null | null | null | app/forms.py | samkreter/TigerBuilds-Website | 4fa6c740552d87c20c4d649472f3d457bf3e54e1 | [
"MIT"
] | null | null | null | app/forms.py | samkreter/TigerBuilds-Website | 4fa6c740552d87c20c4d649472f3d457bf3e54e1 | [
"MIT"
] | null | null | null | from flask.ext.wtf import Form
from wtforms import BooleanField, TextField, PasswordField, validators
from wtforms.validators import DataRequired
from flask_wtf.file import FileField
class LoginForm(Form):
first_name = TextField('first_name', validators=[DataRequired()])
last_name = TextField('first_name', val... | 48 | 96 | 0.768939 | 62 | 528 | 6.435484 | 0.516129 | 0.067669 | 0.090226 | 0.110276 | 0.220551 | 0.220551 | 0 | 0 | 0 | 0 | 0 | 0.006438 | 0.117424 | 528 | 11 | 97 | 48 | 0.849785 | 0 | 0 | 0 | 0 | 0 | 0.083176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.4 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
aeea2685db25790e4d13c8bf963fcd4d67232f6d | 1,446 | py | Python | codes/Arms.py | imadaouali/bootstrapping-multi-armed-bandits | 5ef0deb73cf3cdba0bb09ecc7a34ff3efda013f5 | [
"MIT"
] | null | null | null | codes/Arms.py | imadaouali/bootstrapping-multi-armed-bandits | 5ef0deb73cf3cdba0bb09ecc7a34ff3efda013f5 | [
"MIT"
] | null | null | null | codes/Arms.py | imadaouali/bootstrapping-multi-armed-bandits | 5ef0deb73cf3cdba0bb09ecc7a34ff3efda013f5 | [
"MIT"
] | null | null | null | """different classes of arms, all of them have a sample() method which produce rewards"""
import numpy as np
from random import random
from math import sqrt,log,exp
class Bernoulli:
def __init__(self,p):
# create a Bernoulli arm with mean p
self.mean = p
self.variance = p*(1-p)... | 26.777778 | 90 | 0.594744 | 193 | 1,446 | 4.373057 | 0.274611 | 0.041469 | 0.052133 | 0.099526 | 0.327014 | 0.28436 | 0.208531 | 0.208531 | 0.127962 | 0.127962 | 0 | 0.007064 | 0.314661 | 1,446 | 53 | 91 | 27.283019 | 0.844601 | 0.299447 | 0 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0 | 0.103448 | 0.137931 | 0.655172 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
aeebdc448d43d0581aeb2361e667620c9e88e700 | 176 | py | Python | validate_signature/serializers.py | Arquitectura-de-Software-UFPS-2022-I/-validate-signature-api-documentation- | 6fc74040dd8b13bb551deaa905b3d0f19aa98d8e | [
"MIT"
] | null | null | null | validate_signature/serializers.py | Arquitectura-de-Software-UFPS-2022-I/-validate-signature-api-documentation- | 6fc74040dd8b13bb551deaa905b3d0f19aa98d8e | [
"MIT"
] | null | null | null | validate_signature/serializers.py | Arquitectura-de-Software-UFPS-2022-I/-validate-signature-api-documentation- | 6fc74040dd8b13bb551deaa905b3d0f19aa98d8e | [
"MIT"
] | null | null | null | from rest_framework import serializers
class ValidateSerializer(serializers.Serializer):
class_label = serializers.IntegerField()
confidence = serializers.FloatField() | 35.2 | 49 | 0.818182 | 16 | 176 | 8.875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113636 | 176 | 5 | 50 | 35.2 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
aefd834e0cdf792e601b60658ab1575032257810 | 166 | py | Python | sample_problems/problems_with_solution100.py | adi01trip01/adi_workspace | f493b3ba84645eec3a57607243760a826880d1a3 | [
"MIT"
] | null | null | null | sample_problems/problems_with_solution100.py | adi01trip01/adi_workspace | f493b3ba84645eec3a57607243760a826880d1a3 | [
"MIT"
] | null | null | null | sample_problems/problems_with_solution100.py | adi01trip01/adi_workspace | f493b3ba84645eec3a57607243760a826880d1a3 | [
"MIT"
] | null | null | null | # Write a Python program to get the name of the host on which the routine is running.
import socket
host_name = socket.gethostname()
print("Host name:", host_name)
| 23.714286 | 85 | 0.759036 | 28 | 166 | 4.428571 | 0.678571 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168675 | 166 | 6 | 86 | 27.666667 | 0.898551 | 0.5 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4e097123121b3e0b89504de02a7411f48e7ddad4 | 94 | py | Python | lab-day/LabDayBackend/labday_api/apps.py | JanStoltman/LabDayBackend | 6c960385b18dad86424e8e619c19bdb6c4d686ea | [
"MIT"
] | 1 | 2018-02-09T10:49:17.000Z | 2018-02-09T10:49:17.000Z | lab-day/LabDayBackend/labday_api/apps.py | JanStoltman/LabDayBackend | 6c960385b18dad86424e8e619c19bdb6c4d686ea | [
"MIT"
] | null | null | null | lab-day/LabDayBackend/labday_api/apps.py | JanStoltman/LabDayBackend | 6c960385b18dad86424e8e619c19bdb6c4d686ea | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class LabdayApiConfig(AppConfig):
name = 'labday_api'
| 15.666667 | 33 | 0.765957 | 11 | 94 | 6.454545 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159574 | 94 | 5 | 34 | 18.8 | 0.898734 | 0 | 0 | 0 | 0 | 0 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4e10551eb1717ce4bf64e7399399939db23ebacc | 125 | py | Python | flags-dest/train_with_globals.py | lambdaofgod/examples | 26f7dd0ab58aba2f251e307982c34c9bd67d4797 | [
"Apache-2.0"
] | 9 | 2017-12-14T01:20:07.000Z | 2020-04-30T09:33:55.000Z | flags-dest/train_with_globals.py | lambdaofgod/examples | 26f7dd0ab58aba2f251e307982c34c9bd67d4797 | [
"Apache-2.0"
] | 2 | 2019-08-15T16:32:00.000Z | 2020-03-18T18:22:38.000Z | flags-dest/train_with_globals.py | lambdaofgod/examples | 26f7dd0ab58aba2f251e307982c34c9bd67d4797 | [
"Apache-2.0"
] | 4 | 2019-08-22T07:25:11.000Z | 2020-06-08T07:07:50.000Z | learning_rate = 0.01
epochs = 10
print("Training for %i epochs with a learning rate of %f"
% (epochs, learning_rate))
| 20.833333 | 57 | 0.688 | 20 | 125 | 4.2 | 0.7 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050505 | 0.208 | 125 | 5 | 58 | 25 | 0.79798 | 0 | 0 | 0 | 0 | 0 | 0.392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4e23e38b28f75a2c8402530d6511c6371b029435 | 213 | py | Python | ref/files/student.py | skrymets/python-core-and-advanced | 7cb486e9b9413d4cbb7fa67929d492094b2a3abb | [
"Apache-2.0"
] | null | null | null | ref/files/student.py | skrymets/python-core-and-advanced | 7cb486e9b9413d4cbb7fa67929d492094b2a3abb | [
"Apache-2.0"
] | null | null | null | ref/files/student.py | skrymets/python-core-and-advanced | 7cb486e9b9413d4cbb7fa67929d492094b2a3abb | [
"Apache-2.0"
] | null | null | null | class Student:
def __init__(self,id,name,testscore):
self.id = id
self.name = name
self.testscore = testscore
def display(self):
print(self.id,self.name,self.testscore) | 26.625 | 47 | 0.610329 | 27 | 213 | 4.666667 | 0.37037 | 0.142857 | 0.15873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.28169 | 213 | 8 | 47 | 26.625 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.428571 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4e2b5894c6eea1db6730165766dba59bdee31ecb | 219 | py | Python | 8723 Patyki.py | jangThang/Baekjoon-problem | f34c7d9977ad95fbe2a59c0096bf8ff1e885c01f | [
"MIT"
] | null | null | null | 8723 Patyki.py | jangThang/Baekjoon-problem | f34c7d9977ad95fbe2a59c0096bf8ff1e885c01f | [
"MIT"
] | null | null | null | 8723 Patyki.py | jangThang/Baekjoon-problem | f34c7d9977ad95fbe2a59c0096bf8ff1e885c01f | [
"MIT"
] | null | null | null | # 입력
a, b, c = map(int, input().split())
# 판별 후 출력
if a == b == c: # 정삼각형 유무
print(2)
# 직각 삼각형 유무
elif a**2 == b**2 + c**2 or b**2 == a**2 + c**2 or c**2 == a**2 + b**2:
print(1)
# 모두 불가능
else:
print(0)
| 14.6 | 71 | 0.442922 | 50 | 219 | 1.94 | 0.5 | 0.061856 | 0.061856 | 0.082474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078431 | 0.30137 | 219 | 14 | 72 | 15.642857 | 0.555556 | 0.159817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
4e360d60d30d5bd3088691429aa1b741ab529c60 | 639 | py | Python | lake/attributes/control_signal_attr.py | StanfordAHA/Lake | 34df001db107e1a0824b7fdb05b9f2145bf49a3e | [
"BSD-3-Clause"
] | 11 | 2019-10-14T02:05:38.000Z | 2022-03-10T14:10:22.000Z | lake/attributes/control_signal_attr.py | StanfordAHA/Lake | 34df001db107e1a0824b7fdb05b9f2145bf49a3e | [
"BSD-3-Clause"
] | 29 | 2019-09-02T05:49:40.000Z | 2022-02-26T00:57:54.000Z | lake/attributes/control_signal_attr.py | StanfordAHA/Lake | 34df001db107e1a0824b7fdb05b9f2145bf49a3e | [
"BSD-3-Clause"
] | 1 | 2021-04-16T20:26:13.000Z | 2021-04-16T20:26:13.000Z | import kratos as kts
from enum import Enum
class ControlSignalAttr(kts.Attribute):
def __init__(self,
is_control=False,
ignore=False,
doc_string=""):
super().__init__()
self.value = "control_signal"
self.is_control = is_control
sel... | 23.666667 | 41 | 0.619718 | 72 | 639 | 5.208333 | 0.361111 | 0.096 | 0.104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.305164 | 639 | 26 | 42 | 24.576923 | 0.844595 | 0 | 0 | 0 | 0 | 0 | 0.021909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1 | 0.15 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4e3b9767ea5476ed703c9f785963bb469a3ca910 | 244 | py | Python | utils.py | ondrejba/monte_carlo | 6bea9afcfaa813c0eb494ae76f615fc483846396 | [
"MIT"
] | 14 | 2018-06-01T12:50:19.000Z | 2021-01-05T22:18:26.000Z | utils.py | ondrejba/monte_carlo | 6bea9afcfaa813c0eb494ae76f615fc483846396 | [
"MIT"
] | null | null | null | utils.py | ondrejba/monte_carlo | 6bea9afcfaa813c0eb494ae76f615fc483846396 | [
"MIT"
] | 5 | 2019-01-02T09:56:42.000Z | 2022-03-11T06:10:22.000Z | def update_mean(value, mean, count):
"""
Update value of a streaming mean.
:param value: New value.
:param mean: Mean value.
:param count: Number of values averaged.
:return:
"""
return (value - mean) / (count + 1) | 24.4 | 46 | 0.614754 | 32 | 244 | 4.65625 | 0.46875 | 0.120805 | 0.187919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005556 | 0.262295 | 244 | 10 | 47 | 24.4 | 0.822222 | 0.598361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9d65eab20ef8090aeb093ecb0be0d44db413dd87 | 105 | py | Python | spellChecker/spellCheckerApp/apps.py | spell-checkers/web-spell-checker | 60273eaaa347891f47a2e40e8cb67ca52685ac86 | [
"Apache-2.0"
] | null | null | null | spellChecker/spellCheckerApp/apps.py | spell-checkers/web-spell-checker | 60273eaaa347891f47a2e40e8cb67ca52685ac86 | [
"Apache-2.0"
] | null | null | null | spellChecker/spellCheckerApp/apps.py | spell-checkers/web-spell-checker | 60273eaaa347891f47a2e40e8cb67ca52685ac86 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class SpellcheckerappConfig(AppConfig):
name = 'spellCheckerApp'
| 17.5 | 39 | 0.790476 | 10 | 105 | 8.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 105 | 5 | 40 | 21 | 0.922222 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9db537704b02f07e7edb910aa737c9bb4e267ba6 | 823 | py | Python | conf/__init__.py | FredrikM97/Medical-ROI | 54246341460c04caeced2ef6dcab984f6c260c9d | [
"Apache-2.0"
] | null | null | null | conf/__init__.py | FredrikM97/Medical-ROI | 54246341460c04caeced2ef6dcab984f6c260c9d | [
"Apache-2.0"
] | null | null | null | conf/__init__.py | FredrikM97/Medical-ROI | 54246341460c04caeced2ef6dcab984f6c260c9d | [
"Apache-2.0"
] | null | null | null | """This package includes all the modules related to data loading and preprocessing.
To add a custom dataset class called 'dummy', you need to add a file called 'dummy_dataset.py' and define a subclass 'DummyDataset' inherited from BaseDataset.
"""
import os
import json
from utils import load_configs
"""
def load_co... | 41.15 | 163 | 0.647631 | 110 | 823 | 4.745455 | 0.5 | 0.05364 | 0.022989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251519 | 823 | 20 | 164 | 41.15 | 0.847403 | 0.291616 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.6 | 0.2 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
9dc491a9b29d6ff50e31c1deef0a62958720ca06 | 72 | py | Python | mp_gui/layout/__init__.py | kerryeon/mp_python | 1aca4069bc635959fa4f3ce94507c55226219039 | [
"MIT"
] | 1 | 2021-04-08T01:59:11.000Z | 2021-04-08T01:59:11.000Z | mp_gui/layout/__init__.py | kerryeon/mp_python | 1aca4069bc635959fa4f3ce94507c55226219039 | [
"MIT"
] | null | null | null | mp_gui/layout/__init__.py | kerryeon/mp_python | 1aca4069bc635959fa4f3ce94507c55226219039 | [
"MIT"
] | null | null | null | __all__ = ['MpGui']
from mp_gui.layout.main import MpGuiLinker as MpGui
| 24 | 51 | 0.777778 | 11 | 72 | 4.636364 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 72 | 2 | 52 | 36 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0.069444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9dc5b2b543926aa3da88fa0591de1a13274cc093 | 638 | py | Python | tests/cases/base.py | chop-dbhi/varify | 5dc721e49ed9bd3582f4b117785fdd1a8b6ba777 | [
"BSD-2-Clause"
] | 6 | 2015-01-16T14:35:29.000Z | 2017-06-18T05:56:15.000Z | tests/cases/base.py | solvebio/varify | 5dc721e49ed9bd3582f4b117785fdd1a8b6ba777 | [
"BSD-2-Clause"
] | null | null | null | tests/cases/base.py | solvebio/varify | 5dc721e49ed9bd3582f4b117785fdd1a8b6ba777 | [
"BSD-2-Clause"
] | 3 | 2015-05-27T15:03:17.000Z | 2020-03-11T08:42:46.000Z | from django.contrib.auth.models import User
from django.core.cache import cache
from django_rq import get_queue, get_connection
from rq.queue import get_failed_queue
from django.test import TestCase, TransactionTestCase
class AuthenticatedBaseTestCase(TestCase):
def setUp(self):
self.user = User.objects.c... | 31.9 | 78 | 0.73511 | 79 | 638 | 5.797468 | 0.417722 | 0.087336 | 0.078603 | 0.104803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15674 | 638 | 19 | 79 | 33.578947 | 0.851301 | 0 | 0 | 0.133333 | 0 | 0 | 0.048589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.133333 | 0.333333 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
9dea38860d9a94289e6ccb0c98ed2bef9a5e2eb4 | 97 | py | Python | source/main.py | ubombar/Traffic-Simulator | eee4c8b89eef74bae014f9386e158fc6a44e26e8 | [
"MIT"
] | null | null | null | source/main.py | ubombar/Traffic-Simulator | eee4c8b89eef74bae014f9386e158fc6a44e26e8 | [
"MIT"
] | null | null | null | source/main.py | ubombar/Traffic-Simulator | eee4c8b89eef74bae014f9386e158fc6a44e26e8 | [
"MIT"
] | null | null | null | if __name__ == "__main__":
raise NotImplementedError('The main program not implemented yet!') | 48.5 | 70 | 0.752577 | 11 | 97 | 5.909091 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14433 | 97 | 2 | 70 | 48.5 | 0.783133 | 0 | 0 | 0 | 0 | 0 | 0.459184 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d19cf606d96079ab58ffba16b357c4e5f17c01fa | 393 | py | Python | multilayerGM/__init__.py | MultilayerBenchmark/MultilayerBenchmark-py | b3b60dd83428423555f78451522ecb0b3e52c7cd | [
"BSD-2-Clause"
] | 10 | 2019-07-17T06:44:50.000Z | 2021-07-25T12:53:48.000Z | multilayerGM/__init__.py | MultilayerGM/MultilayerGM-py | b3b60dd83428423555f78451522ecb0b3e52c7cd | [
"BSD-2-Clause"
] | null | null | null | multilayerGM/__init__.py | MultilayerGM/MultilayerGM-py | b3b60dd83428423555f78451522ecb0b3e52c7cd | [
"BSD-2-Clause"
] | 1 | 2017-03-04T19:14:06.000Z | 2017-03-04T19:14:06.000Z | from . import dependency_tensors
from . import export
from . import comparisons
from .networks import multilayer_DCSBM_network
from .partitions import sample_partition, DirichletNull, dirichlet_null
from pkg_resources import get_distribution, DistributionNotFound
try:
__version__ = get_distribution(__name__).vers... | 28.071429 | 71 | 0.826972 | 44 | 393 | 7.022727 | 0.681818 | 0.097087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13486 | 393 | 13 | 72 | 30.230769 | 0.908824 | 0.061069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
d1b3ac80100aa4cf6d3eb5006bbaa2e04d4fdd32 | 254 | py | Python | Libraries/warshallfloyd.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | 2 | 2022-01-22T07:56:58.000Z | 2022-01-24T00:29:37.000Z | Libraries/warshallfloyd.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | Libraries/warshallfloyd.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | N = 10
cost = [[float('inf')] * N] * N
for k in range(N):
for i in range(N):
for j in range(N):
if cost[i][k] != float('inf') and cost[k][j] != float('inf'):
cost[i][j] = min(cost[i][j], cost[i][k] + cost[k][j])
| 25.4 | 73 | 0.444882 | 47 | 254 | 2.404255 | 0.297872 | 0.176991 | 0.212389 | 0.19469 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 0.307087 | 254 | 9 | 74 | 28.222222 | 0.630682 | 0 | 0 | 0 | 0 | 0 | 0.035573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d1d43a89d6c7b225e40479fb6a5b754a8d8a1828 | 609 | py | Python | Remark/Macros/Comment_Macro.py | kaba2/remark | 42a0f91f1f6da49f09dcdfa272542c63c87932e0 | [
"MIT"
] | null | null | null | Remark/Macros/Comment_Macro.py | kaba2/remark | 42a0f91f1f6da49f09dcdfa272542c63c87932e0 | [
"MIT"
] | null | null | null | Remark/Macros/Comment_Macro.py | kaba2/remark | 42a0f91f1f6da49f09dcdfa272542c63c87932e0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Description: Comment macro
# Detail: Consumes its input and produces no output.
from Remark.Macro_Registry import registerMacro
class Comment_Macro(object):
def name(self):
return 'Comment'
def expand(self, parameter, remark):
# This macro simply eats its parameter.... | 21.75 | 59 | 0.627258 | 66 | 609 | 5.742424 | 0.590909 | 0.094987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002288 | 0.28243 | 609 | 27 | 60 | 22.555556 | 0.864989 | 0.270936 | 0 | 0 | 0 | 0 | 0.031963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0.071429 | 0.214286 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d1eb0d0425ca586171abfaf6513f53cbd334010e | 741 | py | Python | suppliers/models.py | yanwarsolahudin/regensi_api | b8985b9f4ac42974623d192033fabb5892fd35ad | [
"MIT"
] | 1 | 2020-01-09T10:17:59.000Z | 2020-01-09T10:17:59.000Z | suppliers/models.py | yanwarsolahudin/regensi_api | b8985b9f4ac42974623d192033fabb5892fd35ad | [
"MIT"
] | 6 | 2020-06-05T20:18:45.000Z | 2021-09-22T18:19:43.000Z | suppliers/models.py | yanwarsolahudin/regensi_api | b8985b9f4ac42974623d192033fabb5892fd35ad | [
"MIT"
] | null | null | null | from django.db import models
from utils.models import Timestamp, generate_string_code
class Supplier(Timestamp):
PREFIX = 'SPR'
supplier_code = models.CharField(max_length=100, unique=True)
name = models.CharField(max_length=100, default='Ex: Firda Firdaus')
address = models.TextField()
phone = ... | 30.875 | 72 | 0.692308 | 95 | 741 | 5.231579 | 0.515789 | 0.096579 | 0.144869 | 0.193159 | 0.162978 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035413 | 0.19973 | 741 | 23 | 73 | 32.217391 | 0.802698 | 0.044534 | 0 | 0 | 1 | 0 | 0.049575 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 0.066667 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d1fe280c4cd1dfcf8539827a2de3045c9f297434 | 178 | py | Python | libs/jsconsole/jsconsolescript.py | bugbound/webnuke | 8f51d94d58418764733079780fb498bab15b4a7c | [
"MIT"
] | 23 | 2017-07-12T01:12:36.000Z | 2021-11-17T09:56:31.000Z | libs/jsconsole/jsconsolescript.py | bugbound/webnuke | 8f51d94d58418764733079780fb498bab15b4a7c | [
"MIT"
] | 2 | 2018-04-28T11:31:30.000Z | 2019-07-20T09:48:47.000Z | libs/jsconsole/jsconsolescript.py | bugbound/webnuke | 8f51d94d58418764733079780fb498bab15b4a7c | [
"MIT"
] | 9 | 2017-08-29T12:15:05.000Z | 2020-08-04T10:34:15.000Z | class JSConsoleScript:
def __init__(self, jsinjector):
self.version=0.1
self.jsinjector = jsinjector
self.jsinjector.add_help_topic('wn_help()', 'Shows WebNuke Help')
| 22.25 | 67 | 0.747191 | 23 | 178 | 5.478261 | 0.652174 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.134831 | 178 | 7 | 68 | 25.428571 | 0.805195 | 0 | 0 | 0 | 0 | 0 | 0.151685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ae0ac558f242880092a3054013703cd5b4276b82 | 573 | py | Python | terrascript/provider/hashicorp/googleworkspace.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 507 | 2017-07-26T02:58:38.000Z | 2022-01-21T12:35:13.000Z | terrascript/provider/hashicorp/googleworkspace.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 135 | 2017-07-20T12:01:59.000Z | 2021-10-04T22:25:40.000Z | terrascript/provider/hashicorp/googleworkspace.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 81 | 2018-02-20T17:55:28.000Z | 2022-01-31T07:08:40.000Z | # terrascript/provider/hashicorp/googleworkspace.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:17:22 UTC)
import terrascript
class googleworkspace(terrascript.Provider):
"""terraform-provider-googleworkspace"""
__description__ = "terraform-provider-googleworkspace"
__namespace__ = "h... | 28.65 | 82 | 0.746946 | 57 | 573 | 6.947368 | 0.684211 | 0.128788 | 0.242424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058468 | 0.13438 | 573 | 19 | 83 | 30.157895 | 0.739919 | 0.273997 | 0 | 0 | 1 | 0 | 0.413203 | 0.08313 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.9 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ae3b15f637f8d47a264b557407b6db06001456be | 452 | py | Python | game/upl/upl_scripts/storage.py | Sipondo/ulix-dexflow | de46482fe08e3d600dd5da581f0524b55e5df961 | [
"MIT"
] | 5 | 2021-06-25T16:44:38.000Z | 2021-12-31T01:29:00.000Z | game/upl/upl_scripts/storage.py | Sipondo/ulix-dexflow | de46482fe08e3d600dd5da581f0524b55e5df961 | [
"MIT"
] | null | null | null | game/upl/upl_scripts/storage.py | Sipondo/ulix-dexflow | de46482fe08e3d600dd5da581f0524b55e5df961 | [
"MIT"
] | 1 | 2021-06-25T20:33:47.000Z | 2021-06-25T20:33:47.000Z | """function
Opens the battler storage.
Opens the battler storage.
in:
None
"""
class Storage:
def __init__(self, act, src, user):
act.funcs.append(self)
self.init_time = act.current_time
self.act = act
self.src = src
self.user = user
self.act.game.m_gst.switch_s... | 17.384615 | 51 | 0.615044 | 63 | 452 | 4.238095 | 0.460317 | 0.078652 | 0.11236 | 0.164794 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.280973 | 452 | 25 | 52 | 18.08 | 0.821538 | 0.163717 | 0 | 0 | 0 | 0 | 0.018919 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.166667 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
ae3dab09d6b4fffaa4ffc953710fb652c622867c | 103 | py | Python | web_app/__init__.py | yalyakoob/TwitOff | 7d92dfae8323e389f7c2b84b56c006ddb0f8163a | [
"MIT"
] | null | null | null | web_app/__init__.py | yalyakoob/TwitOff | 7d92dfae8323e389f7c2b84b56c006ddb0f8163a | [
"MIT"
] | null | null | null | web_app/__init__.py | yalyakoob/TwitOff | 7d92dfae8323e389f7c2b84b56c006ddb0f8163a | [
"MIT"
] | null | null | null | """Entry point for TwitOff Flask application."""
from web_app.app import create_app
APP = create_app() | 25.75 | 48 | 0.76699 | 16 | 103 | 4.75 | 0.6875 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126214 | 103 | 4 | 49 | 25.75 | 0.844444 | 0.407767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ae416ff4e27d17fa5d53140117ec686db895e2f3 | 133 | py | Python | src/visualize_data.py | h1yung/PyUpBit | 10194ce7020dfe0d38bd079088d4a64d663b9e0f | [
"Unlicense"
] | 3 | 2021-12-23T21:32:48.000Z | 2021-12-23T21:37:59.000Z | src/visualize_data.py | h1yung/PyUpBit | 10194ce7020dfe0d38bd079088d4a64d663b9e0f | [
"Unlicense"
] | null | null | null | src/visualize_data.py | h1yung/PyUpBit | 10194ce7020dfe0d38bd079088d4a64d663b9e0f | [
"Unlicense"
] | null | null | null | import sys
import numpy as np
import matplotlib.pyplot as plt
data = np.load(sys.argv[1])
plt.hist(data, edgecolor='k')
plt.show()
| 14.777778 | 31 | 0.729323 | 24 | 133 | 4.041667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008696 | 0.135338 | 133 | 8 | 32 | 16.625 | 0.834783 | 0 | 0 | 0 | 0 | 0 | 0.007519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ae46f9847bd443982ba95747b8971ef4be2b77ab | 5,414 | py | Python | tests/test_default.py | jonhealy1/stac-validator | 5e73c1e4488fa957eb1071d60855c9f12539ef2c | [
"Apache-2.0"
] | 2 | 2022-03-11T19:47:52.000Z | 2022-03-15T13:35:07.000Z | tests/test_default.py | jonhealy1/stac-validator | 5e73c1e4488fa957eb1071d60855c9f12539ef2c | [
"Apache-2.0"
] | 8 | 2022-03-10T21:21:21.000Z | 2022-03-24T19:21:37.000Z | tests/test_default.py | jonhealy1/stac-validator | 5e73c1e4488fa957eb1071d60855c9f12539ef2c | [
"Apache-2.0"
] | null | null | null | """
Description: Test the default which validates core and extensions
"""
__authors__ = "James Banting", "Jonathan Healy"
from stac_validator import stac_validator
def test_default_v070():
stac_file = "https://radarstac.s3.amazonaws.com/stac/catalog.json"
stac = stac_validator.StacValidate(stac_file)
st... | 34.050314 | 123 | 0.563908 | 647 | 5,414 | 4.567233 | 0.149923 | 0.012183 | 0.017597 | 0.064298 | 0.869712 | 0.810152 | 0.785448 | 0.689002 | 0.584772 | 0.53401 | 0 | 0.04768 | 0.275582 | 5,414 | 158 | 124 | 34.265823 | 0.705762 | 0.012006 | 0 | 0.445255 | 0 | 0.109489 | 0.469476 | 0.088015 | 0 | 0 | 0 | 0 | 0.058394 | 1 | 0.058394 | false | 0 | 0.007299 | 0 | 0.065693 | 0.007299 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ae4f585e1904e161d465daba26b9dd724db5004a | 30 | py | Python | venv/lib/python2.7/site-packages/sqlalchemy/testing/config.py | banianlabs/Stash-Prototype | 6a90817b7dd2e8eb6abf8fa0ac1c60ac09aa7936 | [
"MIT"
] | 5 | 2015-01-18T01:47:56.000Z | 2016-01-30T14:58:58.000Z | venv/lib/python2.7/site-packages/sqlalchemy/testing/config.py | banianlabs/Stash-Prototype | 6a90817b7dd2e8eb6abf8fa0ac1c60ac09aa7936 | [
"MIT"
] | null | null | null | venv/lib/python2.7/site-packages/sqlalchemy/testing/config.py | banianlabs/Stash-Prototype | 6a90817b7dd2e8eb6abf8fa0ac1c60ac09aa7936 | [
"MIT"
] | 1 | 2015-02-09T22:15:14.000Z | 2015-02-09T22:15:14.000Z | requirements = None
db = None
| 10 | 19 | 0.733333 | 4 | 30 | 5.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 30 | 2 | 20 | 15 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ae5d0bcc33450caf65fa58007cda9ccc18f40af2 | 173 | py | Python | api_demo/mydate.py | ntlinh16/api-demo | d426440fce7ea619cd8306eb88c4dc80203d741d | [
"MIT"
] | null | null | null | api_demo/mydate.py | ntlinh16/api-demo | d426440fce7ea619cd8306eb88c4dc80203d741d | [
"MIT"
] | null | null | null | api_demo/mydate.py | ntlinh16/api-demo | d426440fce7ea619cd8306eb88c4dc80203d741d | [
"MIT"
] | null | null | null | from datetime import datetime
def countdown(date=datetime.now()):
new_year = datetime(date.year + 1, 1, 1)
days_left = (new_year - date).days
return days_left
| 21.625 | 44 | 0.693642 | 26 | 173 | 4.461538 | 0.5 | 0.12069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021583 | 0.196532 | 173 | 7 | 45 | 24.714286 | 0.81295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ae66a66c9c04eba53b6376275f079716d3334024 | 532 | py | Python | Diena_8_dictionaries/u2_g2.py | edzya/Python_RTU_08_20 | d2921d998c611c18328dd523daf976a27ce858c1 | [
"MIT"
] | 8 | 2020-08-31T16:10:54.000Z | 2021-11-24T06:37:37.000Z | Diena_8_dictionaries/u2_g2.py | edzya/Python_RTU_08_20 | d2921d998c611c18328dd523daf976a27ce858c1 | [
"MIT"
] | 8 | 2021-06-08T22:30:29.000Z | 2022-03-12T00:48:55.000Z | Diena_8_dictionaries/u2_g2.py | edzya/Python_RTU_08_20 | d2921d998c611c18328dd523daf976a27ce858c1 | [
"MIT"
] | 12 | 2020-09-28T17:06:52.000Z | 2022-02-17T12:12:46.000Z | # def replace_dict_value(d, bad_val, good_val):
# myDict = d
# for x in myDict: # same as going through x in myDict.keys()
# if myDict[x] == bad_val:
# myDict[x] = good_val
# return myDict
# if i do not want to mutate the original dictionary
# then dictionary comprehension will be easie... | 31.294118 | 69 | 0.657895 | 92 | 532 | 3.652174 | 0.532609 | 0.071429 | 0.142857 | 0.113095 | 0.196429 | 0.196429 | 0.196429 | 0.196429 | 0.196429 | 0 | 0 | 0.01699 | 0.225564 | 532 | 17 | 70 | 31.294118 | 0.798544 | 0.633459 | 0 | 0 | 0 | 0 | 0.016216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 0.666667 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ae79970049a3504ebba678c36635c846e4b309b1 | 772 | py | Python | src/sleuthdeck/plugins/sleuth/locks.py | sleuth-io/sleuth-deck | 289b9967e7d395de8aa05268eb5e686b67285c1e | [
"Apache-2.0"
] | null | null | null | src/sleuthdeck/plugins/sleuth/locks.py | sleuth-io/sleuth-deck | 289b9967e7d395de8aa05268eb5e686b67285c1e | [
"Apache-2.0"
] | null | null | null | src/sleuthdeck/plugins/sleuth/locks.py | sleuth-io/sleuth-deck | 289b9967e7d395de8aa05268eb5e686b67285c1e | [
"Apache-2.0"
] | null | null | null | import threading
from os import path
from os.path import dirname
from typing import Optional
from sleuthdeck.deck import Deck
from sleuthdeck.deck import Key
from sleuthdeck.plugins.sleuth import Sleuth
class RepositoryLockKey(Key):
def __init__(self, sleuth: Sleuth, project: str, deployment: Optional[str] = Non... | 28.592593 | 87 | 0.689119 | 96 | 772 | 5.385417 | 0.427083 | 0.081238 | 0.069633 | 0.092843 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.226684 | 772 | 26 | 88 | 29.692308 | 0.865997 | 0.084197 | 0 | 0 | 0 | 0 | 0.011348 | 0 | 0 | 0 | 0 | 0.038462 | 0 | 1 | 0.15 | false | 0.05 | 0.35 | 0 | 0.55 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
882c72e8ebc01ce4dd2fcdac60a454d0bf4282cb | 178 | py | Python | config/admin.py | 2019342a/improved-enigma | 7be2cf30673ed7cc3b78f68b3f22c1ba6d800dee | [
"MIT"
] | null | null | null | config/admin.py | 2019342a/improved-enigma | 7be2cf30673ed7cc3b78f68b3f22c1ba6d800dee | [
"MIT"
] | 6 | 2021-09-06T08:36:33.000Z | 2022-03-01T23:01:24.000Z | config/admin.py | 2019342a/improved-enigma | 7be2cf30673ed7cc3b78f68b3f22c1ba6d800dee | [
"MIT"
] | null | null | null | from django.contrib import admin
class SkorAdmin(admin.AdminSite):
site_title = "Skor"
site_header = "Skor"
index_title = "Skor administration"
site_url = None
| 19.777778 | 39 | 0.707865 | 22 | 178 | 5.545455 | 0.727273 | 0.147541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207865 | 178 | 8 | 40 | 22.25 | 0.865248 | 0 | 0 | 0 | 0 | 0 | 0.151685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
88823479f468ff3c0d13c475633992c6c7dddb56 | 101 | py | Python | Chapter 08/ch8_46.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | Chapter 08/ch8_46.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | Chapter 08/ch8_46.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | import collections
q=collections.deque([10,20,30,40])
q.appendleft(0)
print(q)
#[0,10,20,30,40] | 16.833333 | 35 | 0.683168 | 19 | 101 | 3.631579 | 0.578947 | 0.115942 | 0.173913 | 0.231884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.108911 | 101 | 6 | 36 | 16.833333 | 0.566667 | 0.148515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
31f9b9fa86122a1c62e3c87cd98379ec24cb8362 | 497 | py | Python | server/src/test/deployments/integration_tests/case01_direct/lab_config.py | zstars/weblabdeusto | 09bd9d93d483671bca67ee5c70a9c412eb5d352f | [
"BSD-2-Clause"
] | null | null | null | server/src/test/deployments/integration_tests/case01_direct/lab_config.py | zstars/weblabdeusto | 09bd9d93d483671bca67ee5c70a9c412eb5d352f | [
"BSD-2-Clause"
] | null | null | null | server/src/test/deployments/integration_tests/case01_direct/lab_config.py | zstars/weblabdeusto | 09bd9d93d483671bca67ee5c70a9c412eb5d352f | [
"BSD-2-Clause"
] | null | null | null | ##################################
# Laboratory Server configuration #
##################################
laboratory_assigned_experiments = {
'exp1:dummy1@Dummy experiments':
{
'coord_address': 'experiment_dummy1:myprocess@myhost',
'checkers': ()
},
... | 29.235294 | 71 | 0.438632 | 28 | 497 | 7.571429 | 0.535714 | 0.150943 | 0.198113 | 0.264151 | 0.358491 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018018 | 0.32998 | 497 | 16 | 72 | 31.0625 | 0.618619 | 0.062374 | 0 | 0.166667 | 0 | 0 | 0.426396 | 0.172589 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
ee01e18cfc75e3f5d65b480ce5e824060a1a11ef | 258 | py | Python | tests/test_dimensions.py | man-of-eel/dpgv4 | 8cb5a194d04e03465bf7ad5eef60c49e641dd81b | [
"MIT"
] | 3 | 2020-10-21T14:47:37.000Z | 2021-11-15T08:47:07.000Z | tests/test_dimensions.py | man-of-eel/dpgv4 | 8cb5a194d04e03465bf7ad5eef60c49e641dd81b | [
"MIT"
] | null | null | null | tests/test_dimensions.py | man-of-eel/dpgv4 | 8cb5a194d04e03465bf7ad5eef60c49e641dd81b | [
"MIT"
] | 2 | 2020-10-21T15:14:30.000Z | 2021-11-30T14:22:29.000Z | # pylint: disable=missing-docstring
from dpgv4 import calculate_dimensions
from .util import sample_filename
def test_dimensions() -> None:
input_filename = sample_filename("World - 2.mp4")
assert calculate_dimensions(input_filename) == (256, 144)
| 28.666667 | 61 | 0.771318 | 32 | 258 | 6 | 0.6875 | 0.197917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040359 | 0.135659 | 258 | 8 | 62 | 32.25 | 0.820628 | 0.127907 | 0 | 0 | 0 | 0 | 0.058296 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ee079969344e7287f3a71063022bd9e1c4fb3119 | 138 | py | Python | magic_proxy/__init__.py | restran/magic-proxy | a534efec4092419d7aec187d24f7dee7f3f48482 | [
"MIT"
] | 1 | 2017-12-09T04:52:30.000Z | 2017-12-09T04:52:30.000Z | magic_proxy/__init__.py | restran/magic-proxy | a534efec4092419d7aec187d24f7dee7f3f48482 | [
"MIT"
] | null | null | null | magic_proxy/__init__.py | restran/magic-proxy | a534efec4092419d7aec187d24f7dee7f3f48482 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Created by restran on 2017/9/15
from __future__ import unicode_literals, absolute_import
__version__ = '0.1.0'
| 23 | 56 | 0.724638 | 21 | 138 | 4.285714 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09322 | 0.144928 | 138 | 5 | 57 | 27.6 | 0.669492 | 0.384058 | 0 | 0 | 0 | 0 | 0.060976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ee712525bb4cc2659f92d5316288f92b70e13fc8 | 4,685 | py | Python | tests/testfile_bridge_the_gap.py | augmentedfabricationlab/bridge_the_gap | b1e0344e7ab010c0e298c610e0ba91f5316d0ff4 | [
"MIT"
] | null | null | null | tests/testfile_bridge_the_gap.py | augmentedfabricationlab/bridge_the_gap | b1e0344e7ab010c0e298c610e0ba91f5316d0ff4 | [
"MIT"
] | null | null | null | tests/testfile_bridge_the_gap.py | augmentedfabricationlab/bridge_the_gap | b1e0344e7ab010c0e298c610e0ba91f5316d0ff4 | [
"MIT"
] | null | null | null | from __future__ import division
from __future__ import absolute_import
from __future__ import print_function
from compas.geometry import Point, Frame, Vector
from bridge_the_gap.assembly import BridgeAssembly
from bridge_the_gap.assembly import BridgeElement
my_assembly = BridgeAssembly()
myFrameSet = [
Frame(Point... | 69.925373 | 591 | 0.684525 | 899 | 4,685 | 3.51168 | 0.206897 | 0.107697 | 0.174216 | 0.184669 | 0.364903 | 0.254672 | 0.163446 | 0.114349 | 0.100095 | 0.080773 | 0 | 0.377799 | 0.084739 | 4,685 | 66 | 592 | 70.984848 | 0.358442 | 0.021131 | 0 | 0 | 0 | 0 | 0.001182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ee75dfaa1f0307f516176054d74a6ab923f25f5b | 81 | py | Python | Bits/lengths.py | vit-shreyansh-kumar/DailyWorkAtHome | d1819bda5e835a078d011b98213779cabd91e3db | [
"MIT"
] | null | null | null | Bits/lengths.py | vit-shreyansh-kumar/DailyWorkAtHome | d1819bda5e835a078d011b98213779cabd91e3db | [
"MIT"
] | null | null | null | Bits/lengths.py | vit-shreyansh-kumar/DailyWorkAtHome | d1819bda5e835a078d011b98213779cabd91e3db | [
"MIT"
] | null | null | null | __about__ = """ Bit Lengths """
l = int(1).bit_length()
print("BIT LENGTH:", l) | 16.2 | 31 | 0.604938 | 12 | 81 | 3.666667 | 0.666667 | 0.409091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014706 | 0.160494 | 81 | 5 | 32 | 16.2 | 0.632353 | 0 | 0 | 0 | 0 | 0 | 0.292683 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ee84acea5ae08ec5245f66786a0bcf8a4a7a0787 | 663 | py | Python | controller/Base_controller.py | jvpersuhn/APIRest | eace1e0cd839332dbbea973b1f168615d233ac96 | [
"MIT"
] | null | null | null | controller/Base_controller.py | jvpersuhn/APIRest | eace1e0cd839332dbbea973b1f168615d233ac96 | [
"MIT"
] | null | null | null | controller/Base_controller.py | jvpersuhn/APIRest | eace1e0cd839332dbbea973b1f168615d233ac96 | [
"MIT"
] | null | null | null | from flask_restful import Resource
from flask import request,json
from dao.Base_dao import BaseDao
class BaseController(Resource):
def __init__(self, model):
self.db = BaseDao(model)
def get(self, id=None):
if id:
return self.db.select_by_id(id)
return self.db.select_all()... | 22.1 | 49 | 0.618401 | 89 | 663 | 4.505618 | 0.41573 | 0.089776 | 0.149626 | 0.104738 | 0.204489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.282051 | 663 | 29 | 50 | 22.862069 | 0.842437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.761905 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c9930dbda6ea64f76eeb72374d44803071db3d8e | 198 | py | Python | setup.py | Xysss7/data_visualisation_project | ef511a00e5456507b2cf3c7f851f472b3bed1bb0 | [
"BSD-3-Clause"
] | null | null | null | setup.py | Xysss7/data_visualisation_project | ef511a00e5456507b2cf3c7f851f472b3bed1bb0 | [
"BSD-3-Clause"
] | null | null | null | setup.py | Xysss7/data_visualisation_project | ef511a00e5456507b2cf3c7f851f472b3bed1bb0 | [
"BSD-3-Clause"
] | null | null | null | from setuptools import setup
setup(
name="datavisualization",
version="1.2.0",
author="Yangsha Xie",
packages=['datavisualization'],
install_requires=['matplotlib','IPython']
)
| 19.8 | 45 | 0.681818 | 20 | 198 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0.166667 | 198 | 9 | 46 | 22 | 0.793939 | 0 | 0 | 0 | 0 | 0 | 0.338384 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c9aab5b9a61ce27048ba3dbb92e7bb76e5754dad | 561 | py | Python | engine/admin.py | x-risk/x-risk | b4fc0dd91bf98725f87dded5e535eba0166c18f2 | [
"MIT"
] | 5 | 2020-07-31T22:11:39.000Z | 2022-02-10T17:50:34.000Z | engine/admin.py | x-risk/x-risk | b4fc0dd91bf98725f87dded5e535eba0166c18f2 | [
"MIT"
] | 8 | 2020-07-21T12:54:01.000Z | 2022-02-10T01:22:09.000Z | engine/admin.py | x-risk/x-risk | b4fc0dd91bf98725f87dded5e535eba0166c18f2 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Topic, Source, SearchString, Search, Publication, Assessment, Profile, AssessmentStatus, HumanPrediction, MLModel, MLPrediction, Log
admin.site.register(Topic)
admin.site.register(Source)
admin.site.register(SearchString)
admin.site.register(Search)
admin.site.regis... | 35.0625 | 152 | 0.834225 | 68 | 561 | 6.882353 | 0.294118 | 0.230769 | 0.435897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057041 | 561 | 15 | 153 | 37.4 | 0.884688 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c9c795c58f8d5a562fd8963b0d19ee7dd20767d6 | 3,831 | py | Python | test/test_common.py | FPEPOSHI/PyBoof | 00c67c0689be35019b65d5e5dc1a8a5a8e471d9d | [
"Apache-2.0"
] | 36 | 2016-02-19T04:06:29.000Z | 2022-03-12T08:48:06.000Z | test/test_common.py | yuantailing/PyBoof | a5a0ffba6adfeb8d97c099c2470995553466eeaa | [
"Apache-2.0"
] | 13 | 2019-05-13T18:51:40.000Z | 2022-01-24T20:23:21.000Z | test/test_common.py | yuantailing/PyBoof | a5a0ffba6adfeb8d97c099c2470995553466eeaa | [
"Apache-2.0"
] | 6 | 2017-05-21T20:34:16.000Z | 2022-03-23T23:56:23.000Z | #!/usr/bin/env python3
import unittest
from pyboof import gateway
import pyboof as pb
import numpy as np
pb.init_memmap()
class JavaData(unittest.TestCase):
def test_is_java_class(self):
array_class = gateway.jvm.java.util.ArrayList().getClass()
vector_class = gateway.jvm.java.util.Vector().get... | 37.930693 | 88 | 0.666145 | 567 | 3,831 | 4.24515 | 0.148148 | 0.074782 | 0.074782 | 0.084753 | 0.761113 | 0.73037 | 0.705442 | 0.69381 | 0.659327 | 0.615704 | 0 | 0.062089 | 0.205429 | 3,831 | 100 | 89 | 38.31 | 0.728647 | 0.018272 | 0 | 0.444444 | 0 | 0 | 0.017292 | 0.006651 | 0 | 0 | 0 | 0 | 0.291667 | 1 | 0.138889 | false | 0 | 0.055556 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c9d77df2a7aac025b082a85a14703c1be3bd3c3e | 18,405 | py | Python | release/stubs.min/Wms/RemotingImplementation/Batches/__init__.py | tranconbv/ironpython-stubs | a601759e6c6819beff8e6b639d18a24b7e351851 | [
"MIT"
] | null | null | null | release/stubs.min/Wms/RemotingImplementation/Batches/__init__.py | tranconbv/ironpython-stubs | a601759e6c6819beff8e6b639d18a24b7e351851 | [
"MIT"
] | null | null | null | release/stubs.min/Wms/RemotingImplementation/Batches/__init__.py | tranconbv/ironpython-stubs | a601759e6c6819beff8e6b639d18a24b7e351851 | [
"MIT"
] | null | null | null | # encoding: utf-8
# module Wms.RemotingImplementation.Batches calls itself Batches
# from Wms.RemotingImplementation,Version=1.23.1.0,Culture=neutral,PublicKeyToken=null
# by generator 1.145
# no doc
# no important
from System.Collections.Generic import *
from ..__init__ import *
# no functions
# classes
... | 40.9 | 246 | 0.746265 | 1,591 | 18,405 | 8.443118 | 0.164676 | 0.031266 | 0.03819 | 0.02144 | 0.283928 | 0.258766 | 0.237922 | 0.230924 | 0.223479 | 0.197573 | 0 | 0.000624 | 0.129747 | 18,405 | 449 | 247 | 40.991091 | 0.838047 | 0.481771 | 0 | 0.6 | 0 | 0 | 0.007755 | 0.007755 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384906 | false | 0.354717 | 0.007547 | 0 | 0.524528 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
c9eee5c41562ea3cbb6ea2444de6b9c739134d8b | 147 | py | Python | 9. Find the Runner-UpScore!/sol.py | Abhishek20182/HackerRank-Python-Practice | 1514b3ee4a50d1268b028596f673b88d36dab9ee | [
"Apache-2.0"
] | 2 | 2021-02-10T09:31:08.000Z | 2021-07-15T21:16:53.000Z | 9. Find the Runner-UpScore!/sol.py | Abhishek20182/HackerRank-Python-Practice | 1514b3ee4a50d1268b028596f673b88d36dab9ee | [
"Apache-2.0"
] | null | null | null | 9. Find the Runner-UpScore!/sol.py | Abhishek20182/HackerRank-Python-Practice | 1514b3ee4a50d1268b028596f673b88d36dab9ee | [
"Apache-2.0"
] | null | null | null | if __name__ == '__main__':
n = int(input())
arr = set(map(int, input().split()))
lst = list(arr)
lst.sort()
print(lst[-2]) | 24.5 | 41 | 0.510204 | 20 | 147 | 3.35 | 0.75 | 0.238806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009346 | 0.272109 | 147 | 6 | 42 | 24.5 | 0.616822 | 0 | 0 | 0 | 0 | 0 | 0.055944 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c9fb4d8ceca1bd1d0d3b6e84b44e94cb91bb5502 | 207 | py | Python | webdriver_manager/__init__.py | fictitiouswizard/webdriver_manager | 828f354d03f50898b98039998a66dd5fc5515e73 | [
"Apache-2.0"
] | null | null | null | webdriver_manager/__init__.py | fictitiouswizard/webdriver_manager | 828f354d03f50898b98039998a66dd5fc5515e73 | [
"Apache-2.0"
] | null | null | null | webdriver_manager/__init__.py | fictitiouswizard/webdriver_manager | 828f354d03f50898b98039998a66dd5fc5515e73 | [
"Apache-2.0"
] | null | null | null | __version__ = '3.4.1'
from .chrome import ChromeDriverManager
from .firefox import GeckoDriverManager
from .microsoft import EdgeChromiumDriverManager, IEDriverManager
from .opera import OperaDriverManager
| 29.571429 | 65 | 0.850242 | 21 | 207 | 8.190476 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.101449 | 207 | 6 | 66 | 34.5 | 0.908602 | 0 | 0 | 0 | 0 | 0 | 0.024155 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a01010a80b3d99e76bc5844d61f48e21535b28cd | 2,195 | py | Python | tests/test_generators.py | smartlegionlab/smartpassgen | 1d142da86f0bbc1628f99fe4040b45d392c93e2d | [
"BSD-3-Clause"
] | 2 | 2021-11-17T21:35:47.000Z | 2022-02-09T16:47:14.000Z | tests/test_generators.py | smartlegionlab/smartpassgen | 1d142da86f0bbc1628f99fe4040b45d392c93e2d | [
"BSD-3-Clause"
] | null | null | null | tests/test_generators.py | smartlegionlab/smartpassgen | 1d142da86f0bbc1628f99fe4040b45d392c93e2d | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# --------------------------------------------------------
# Licensed under the terms of the BSD 3-Clause License
# (see LICENSE for details).
# Copyright © 2018-2021, A.A Suvorov
# All rights reserved.
# --------------------------------------------------------
# https://github.com/smartlegionla... | 39.909091 | 114 | 0.688838 | 295 | 2,195 | 4.864407 | 0.20678 | 0.063415 | 0.094774 | 0.096167 | 0.487108 | 0.439721 | 0.327526 | 0.149129 | 0.149129 | 0.080836 | 0 | 0.007311 | 0.127563 | 2,195 | 54 | 115 | 40.648148 | 0.741514 | 0.17631 | 0 | 0 | 0 | 0 | 0.005565 | 0 | 0 | 0 | 0 | 0 | 0.555556 | 1 | 0.37037 | false | 0.555556 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
4e4be5d7253110196344c13a2b299ef4aee33a95 | 564 | py | Python | src/cashier/purchase/container.py | artdotlis/Cashier | 69e49a9b7bd31f2182cae77cc932469cd36ea77b | [
"MIT"
] | null | null | null | src/cashier/purchase/container.py | artdotlis/Cashier | 69e49a9b7bd31f2182cae77cc932469cd36ea77b | [
"MIT"
] | 1 | 2021-12-02T18:38:08.000Z | 2021-12-02T18:38:08.000Z | src/cashier/purchase/container.py | artdotlis/Cashier | 69e49a9b7bd31f2182cae77cc932469cd36ea77b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""A module providing global data containers."""
from dataclasses import dataclass
from decimal import Decimal
from typing import final
@final
@dataclass
class PurchasedItem:
"""A container describing the purchased item."""
imported: bool
"""Whether the item is imported or not."""... | 24.521739 | 68 | 0.664894 | 74 | 564 | 5.067568 | 0.635135 | 0.056 | 0.048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002268 | 0.218085 | 564 | 22 | 69 | 25.636364 | 0.848073 | 0.191489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.363636 | 0 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4e7e221d9aea3d20c372be4d87223d021789002f | 70 | py | Python | azure_config_template.py | alan-turing-institute/Pangeo-UKCP-Transfer | 1d19ebf28fe32318013379c92411ab3e8377626a | [
"MIT"
] | 2 | 2021-07-03T01:07:00.000Z | 2021-08-19T13:02:34.000Z | azure_config_template.py | alan-turing-institute/Pangeo-UKCP-Transfer | 1d19ebf28fe32318013379c92411ab3e8377626a | [
"MIT"
] | null | null | null | azure_config_template.py | alan-turing-institute/Pangeo-UKCP-Transfer | 1d19ebf28fe32318013379c92411ab3e8377626a | [
"MIT"
] | null | null | null | config = {"ACCOUNT_NAME": ACC_NAME,
"SAS_TOKEN": SAS_TOKEN}
| 23.333333 | 35 | 0.628571 | 9 | 70 | 4.444444 | 0.666667 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228571 | 70 | 2 | 36 | 35 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4e83a91b46777550054434c48799d9fd5c87078d | 800 | py | Python | src/sensor.py | dizzyrobin/rpi-trigger | f7f706c70708add86ceea0fb563905290ac6043c | [
"MIT"
] | null | null | null | src/sensor.py | dizzyrobin/rpi-trigger | f7f706c70708add86ceea0fb563905290ac6043c | [
"MIT"
] | 1 | 2022-01-22T02:48:29.000Z | 2022-01-22T02:48:29.000Z | src/sensor.py | dizzyrobin/rpi-trigger | f7f706c70708add86ceea0fb563905290ac6043c | [
"MIT"
] | null | null | null | import Adafruit_DHT
import requests
from time import sleep
req_url = 'http://localhost:7777/'
sensor = Adafruit_DHT.DHT22
pin = 4
def createRequestData(temperature, humidity, electricalOutlet):
json = '''{{ "temperature": {}, "humidity": {}, "electricalOutlet": {} }}'''
return json.format(temperature, humidit... | 29.62963 | 80 | 0.73625 | 82 | 800 | 7.109756 | 0.47561 | 0.19554 | 0.360206 | 0.178388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013294 | 0.15375 | 800 | 26 | 81 | 30.769231 | 0.847858 | 0.0675 | 0 | 0 | 0 | 0 | 0.114401 | 0 | 0 | 0 | 0 | 0.038462 | 0 | 1 | 0.157895 | false | 0 | 0.157895 | 0 | 0.368421 | 0.052632 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4e8837c6d548764bddfb9c3d93a67891f1bf15f5 | 393 | py | Python | mne/time_frequency/__init__.py | jaeilepp/eggie | a7e812f27e33f9c43ac2e36c6b45a26a01530a06 | [
"BSD-2-Clause"
] | null | null | null | mne/time_frequency/__init__.py | jaeilepp/eggie | a7e812f27e33f9c43ac2e36c6b45a26a01530a06 | [
"BSD-2-Clause"
] | null | null | null | mne/time_frequency/__init__.py | jaeilepp/eggie | a7e812f27e33f9c43ac2e36c6b45a26a01530a06 | [
"BSD-2-Clause"
] | null | null | null | """Time frequency analysis tools
"""
from .tfr import induced_power, single_trial_power, morlet, tfr_morlet
from .tfr import AverageTFR
from .psd import compute_raw_psd, compute_epochs_psd
from .csd import CrossSpectralDensity, compute_epochs_csd
from .ar import yule_walker, ar_raw, iir_filter_raw
from .multitaper imp... | 35.727273 | 70 | 0.829517 | 58 | 393 | 5.344828 | 0.517241 | 0.045161 | 0.083871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111959 | 393 | 10 | 71 | 39.3 | 0.888252 | 0.073791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4eabdb21a56cfa2230ccbbf24043222b7053afff | 227 | py | Python | experiments/helpers/os_utils.py | Project-Ellie/capsnet-fashion | 1dae4ee000911cf82ace19c667ad095fd447e8ae | [
"Apache-2.0"
] | 1 | 2019-01-21T18:50:22.000Z | 2019-01-21T18:50:22.000Z | experiments/helpers/os_utils.py | Project-Ellie/capsnet-fashion | 1dae4ee000911cf82ace19c667ad095fd447e8ae | [
"Apache-2.0"
] | null | null | null | experiments/helpers/os_utils.py | Project-Ellie/capsnet-fashion | 1dae4ee000911cf82ace19c667ad095fd447e8ae | [
"Apache-2.0"
] | 1 | 2018-05-06T11:38:36.000Z | 2018-05-06T11:38:36.000Z | import tensorflow as tf
import platform
def os_info():
return {
'machine': platform.machine(),
'node': platform.node(),
'os': platform.platform(),
'cuda': tf.test.is_built_with_cuda()
}
| 20.636364 | 44 | 0.590308 | 26 | 227 | 5 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.264317 | 227 | 10 | 45 | 22.7 | 0.778443 | 0 | 0 | 0 | 0 | 0 | 0.07489 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.222222 | 0.111111 | 0.444444 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
4eb7ed64afec882543daa2f60d1aeedde60be4cc | 460 | py | Python | janch/components/__init__.py | taarimalta/janch | c2e839f536267ab6694d019402c0c539c4303be3 | [
"MIT"
] | null | null | null | janch/components/__init__.py | taarimalta/janch | c2e839f536267ab6694d019402c0c539c4303be3 | [
"MIT"
] | null | null | null | janch/components/__init__.py | taarimalta/janch | c2e839f536267ab6694d019402c0c539c4303be3 | [
"MIT"
] | null | null | null | """This modules contains code that enable the components of the Janch config file
"""
from janch.components.formatters import get_default_formatters
from janch.components.gatherers import get_default_gatherers
from janch.components.inspectors import get_default_inspectors
from janch.components.loggers import get_defau... | 32.857143 | 81 | 0.819565 | 58 | 460 | 6.155172 | 0.362069 | 0.22409 | 0.212885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119565 | 460 | 13 | 82 | 35.384615 | 0.881481 | 0.169565 | 0 | 0 | 0 | 0 | 0.224599 | 0.173797 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4ec0ce586100ec184bfa924aa7c6e3dc49990df3 | 184 | py | Python | src/__main__.py | Nalhin/Econometrics | 540bd0d84bf1bbbd3fde0c183ba605a80d91b261 | [
"MIT"
] | null | null | null | src/__main__.py | Nalhin/Econometrics | 540bd0d84bf1bbbd3fde0c183ba605a80d91b261 | [
"MIT"
] | null | null | null | src/__main__.py | Nalhin/Econometrics | 540bd0d84bf1bbbd3fde0c183ba605a80d91b261 | [
"MIT"
] | null | null | null | import pandas as pd
from .ols_estimator import OLSEstimator
ols = OLSEstimator(pd.read_csv("./data/listings_summary.csv"))
ols.clean_data()
ols.calculate_models()
ols.output_latex()
| 20.444444 | 62 | 0.793478 | 27 | 184 | 5.185185 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 184 | 8 | 63 | 23 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.146739 | 0.146739 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4ece320cb6f86f627a389f18ff68a72ba18cf0ed | 259 | py | Python | app/business/admin.py | HenriqueLR/lawyer_business | 8b1e1651abd2a248300d02067823ab3a647d89c8 | [
"MIT"
] | 2 | 2018-10-08T21:36:02.000Z | 2019-11-29T13:29:01.000Z | app/business/admin.py | HenriqueLR/lawyer_business | 8b1e1651abd2a248300d02067823ab3a647d89c8 | [
"MIT"
] | null | null | null | app/business/admin.py | HenriqueLR/lawyer_business | 8b1e1651abd2a248300d02067823ab3a647d89c8 | [
"MIT"
] | null | null | null | #coding: utf-8
from django.contrib import admin
from business.models import BusinessModel
class BusinessAdmin(admin.ModelAdmin):
list_display = ('name', 'description')
search_fields = ('name',)
admin.site.register(BusinessModel, BusinessAdmin)
| 17.266667 | 49 | 0.752896 | 29 | 259 | 6.655172 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004484 | 0.138996 | 259 | 14 | 50 | 18.5 | 0.860987 | 0.050193 | 0 | 0 | 0 | 0 | 0.077551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.