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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
69b76f258153e3260b3ba25e7cf4af2dca15b876 | 210 | py | Python | src/playground/test_import/tool.py | objcat/test-python | 97b3cb610a80b8e00b8a032ca94bb3fead4102fb | [
"MIT"
] | null | null | null | src/playground/test_import/tool.py | objcat/test-python | 97b3cb610a80b8e00b8a032ca94bb3fead4102fb | [
"MIT"
] | null | null | null | src/playground/test_import/tool.py | objcat/test-python | 97b3cb610a80b8e00b8a032ca94bb3fead4102fb | [
"MIT"
] | null | null | null | # description: tool
# date: 2020/6/7 19:07
# author: objcat
# version: 1.0
import time
class Tool:
def __init__(self):
print("Tool初始化了")
def say(self):
print(23333)
# tool = Tool()
| 12.352941 | 25 | 0.595238 | 29 | 210 | 4.172414 | 0.793103 | 0.14876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11039 | 0.266667 | 210 | 16 | 26 | 13.125 | 0.675325 | 0.380952 | 0 | 0 | 0 | 0 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.666667 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
69c08d0a5233785d5283c758701c1890fc87f127 | 438 | py | Python | exercism/gigasecond.py | NewForester/spl-python | 5d79be7bd602e8e6ba7669a1db06a9465483c754 | [
"MIT"
] | null | null | null | exercism/gigasecond.py | NewForester/spl-python | 5d79be7bd602e8e6ba7669a1db06a9465483c754 | [
"MIT"
] | null | null | null | exercism/gigasecond.py | NewForester/spl-python | 5d79be7bd602e8e6ba7669a1db06a9465483c754 | [
"MIT"
] | null | null | null | """
Python 3 solution to the Exercism 'gigasecond' exercise
"""
from datetime import timedelta
def add_gigasecond(birth_date):
"""
add a gigasecond to a date in datetime.datetime format
and return the result in the same format
"""
return birth_date + timedelta(seconds=10**9)
##
## It seems eve... | 24.333333 | 59 | 0.705479 | 64 | 438 | 4.78125 | 0.65625 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0317 | 0.207763 | 438 | 17 | 60 | 25.764706 | 0.850144 | 0.623288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
69ccf0b4a44bb339ece5d795a32292e9c7cb51db | 390 | py | Python | awardsapp/serializer.py | AnnabelNkir/Awards | 79d2b3bf7fe7491425b469df9f95fd3a62431e80 | [
"MIT",
"Unlicense"
] | null | null | null | awardsapp/serializer.py | AnnabelNkir/Awards | 79d2b3bf7fe7491425b469df9f95fd3a62431e80 | [
"MIT",
"Unlicense"
] | null | null | null | awardsapp/serializer.py | AnnabelNkir/Awards | 79d2b3bf7fe7491425b469df9f95fd3a62431e80 | [
"MIT",
"Unlicense"
] | null | null | null | from rest_framework import serializers
from .models import Profile, Projects
class ProfileSerializer(serializers.ModelSerializer):
class Meta:
model = Profile
fields = ('name', 'pro_photo', 'bio','user')
class ProjectsSerializer(serializers.ModelSerializer):
class Meta:
model = Project... | 32.5 | 68 | 0.694872 | 38 | 390 | 7.078947 | 0.605263 | 0.193309 | 0.230483 | 0.260223 | 0.297398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189744 | 390 | 12 | 68 | 32.5 | 0.851266 | 0 | 0 | 0.2 | 0 | 0 | 0.13555 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
69dae4982c1f804212e8cf9037b224d8ee6131b9 | 80 | py | Python | setup.py | karafra/steg-utility | 04eef24d7c6baff636522764fc7c8e39f0d2f743 | [
"Apache-2.0"
] | 1 | 2022-01-26T01:07:25.000Z | 2022-01-26T01:07:25.000Z | setup.py | karafra/steg-utility | 04eef24d7c6baff636522764fc7c8e39f0d2f743 | [
"Apache-2.0"
] | 8 | 2022-01-24T14:11:27.000Z | 2022-03-28T08:55:19.000Z | setup.py | karafra/steg-utility | 04eef24d7c6baff636522764fc7c8e39f0d2f743 | [
"Apache-2.0"
] | null | null | null | import setuptools
setuptools.setup(
packages=setuptools.find_packages()
)
| 11.428571 | 39 | 0.775 | 8 | 80 | 7.625 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1375 | 80 | 6 | 40 | 13.333333 | 0.884058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
69f2870c3c06eaa7bf0d67ac7bf780042050cc40 | 38 | py | Python | config.py | mikkokallio/mitodo | 09cc4958622e0016bcd03304e550161493f3c5fd | [
"MIT"
] | null | null | null | config.py | mikkokallio/mitodo | 09cc4958622e0016bcd03304e550161493f3c5fd | [
"MIT"
] | null | null | null | config.py | mikkokallio/mitodo | 09cc4958622e0016bcd03304e550161493f3c5fd | [
"MIT"
] | null | null | null | FILENAME = 'todo.json'
MIN_LENGTH = 2
| 12.666667 | 22 | 0.710526 | 6 | 38 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.157895 | 38 | 2 | 23 | 19 | 0.78125 | 0 | 0 | 0 | 0 | 0 | 0.236842 | 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 |
0e1621ba3b58b75fb07ca7140c73a5eb138c6c54 | 165 | py | Python | aula8a.py | Laurahpro/EXERCICIOS-EM-PYTHON | 7eb896e322f183fdbcf3a7d93b21ab5b6162f303 | [
"MIT"
] | null | null | null | aula8a.py | Laurahpro/EXERCICIOS-EM-PYTHON | 7eb896e322f183fdbcf3a7d93b21ab5b6162f303 | [
"MIT"
] | null | null | null | aula8a.py | Laurahpro/EXERCICIOS-EM-PYTHON | 7eb896e322f183fdbcf3a7d93b21ab5b6162f303 | [
"MIT"
] | null | null | null | import math import sqrt, floor
num = int(input('Digite um número: '))
raiz = sqrt(num)
print ('A raiz quadrada de {} é igual a {:.0f}.'.format(num, raiz))
print ('') | 33 | 67 | 0.654545 | 27 | 165 | 4 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007194 | 0.157576 | 165 | 5 | 68 | 33 | 0.769784 | 0 | 0 | 0 | 0 | 0 | 0.343373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.4 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
38528b8f01ad4a0f5b9ddb4615224d7e7ebb563e | 55 | py | Python | panel-backend/scripts/panelconfig.py | Karliscraft/dotfiles | ff26026410fb4112008f2a1c02f25a10d00a2429 | [
"MIT"
] | null | null | null | panel-backend/scripts/panelconfig.py | Karliscraft/dotfiles | ff26026410fb4112008f2a1c02f25a10d00a2429 | [
"MIT"
] | null | null | null | panel-backend/scripts/panelconfig.py | Karliscraft/dotfiles | ff26026410fb4112008f2a1c02f25a10d00a2429 | [
"MIT"
] | null | null | null | wifi = 'wlp6s0'
configdir = '/home/void/panel-backend'
| 18.333333 | 38 | 0.709091 | 7 | 55 | 5.571429 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0.109091 | 55 | 2 | 39 | 27.5 | 0.755102 | 0 | 0 | 0 | 0 | 0 | 0.545455 | 0.436364 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
385d3e83c66a13cd805df1579db1c4637ac4752a | 253 | py | Python | iridauploader/api/exceptions/irida_connection_error.py | COMBAT-SARS-COV-2/irida-uploader | b9d04d187d6a5a9fdcaef5b27135965ffac99db0 | [
"Apache-2.0"
] | 7 | 2019-01-25T16:56:11.000Z | 2021-01-12T15:32:08.000Z | iridauploader/api/exceptions/irida_connection_error.py | COMBAT-SARS-COV-2/irida-uploader | b9d04d187d6a5a9fdcaef5b27135965ffac99db0 | [
"Apache-2.0"
] | 80 | 2019-01-29T14:54:26.000Z | 2022-03-25T18:51:51.000Z | iridauploader/api/exceptions/irida_connection_error.py | COMBAT-SARS-COV-2/irida-uploader | b9d04d187d6a5a9fdcaef5b27135965ffac99db0 | [
"Apache-2.0"
] | 9 | 2019-03-14T09:58:05.000Z | 2022-01-06T20:14:45.000Z | class IridaConnectionError(Exception):
"""
This error is thrown when the api cannot connect to the IRIDA api
Either the server is unreachable or the credentials are invalid
All calls to the api should expect this error
"""
pass
| 28.111111 | 69 | 0.719368 | 36 | 253 | 5.055556 | 0.722222 | 0.098901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245059 | 253 | 8 | 70 | 31.625 | 0.95288 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
3890eba2e914177cfa14bc0730d281f4ace41611 | 222 | py | Python | main.py | KretschiGL/RPi_SensorController | 57c0db08901b92deff0706b5b35b11a2a8c36d63 | [
"MIT"
] | null | null | null | main.py | KretschiGL/RPi_SensorController | 57c0db08901b92deff0706b5b35b11a2a8c36d63 | [
"MIT"
] | null | null | null | main.py | KretschiGL/RPi_SensorController | 57c0db08901b92deff0706b5b35b11a2a8c36d63 | [
"MIT"
] | null | null | null | # Author: Lukas Kretschmar (lukas.kretschmar@ost.ch)
# License: MIT
from src.Program import Program
# Example program to execute on the RPi
if __name__ == "__main__":
program = Program()
program.run()
| 22.2 | 58 | 0.68018 | 28 | 222 | 5.107143 | 0.75 | 0.20979 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220721 | 222 | 9 | 59 | 24.666667 | 0.82659 | 0.504505 | 0 | 0 | 0 | 0 | 0.075472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
38a8181ed5c0474062640cb8571e1aa5db1c0d30 | 7,383 | py | Python | server/generateconfig.py | ehackify/hnp | ba0e10e9ca390616dfa3888ceafc94672f41d26d | [
"MIT"
] | 2 | 2020-04-29T09:58:21.000Z | 2020-05-08T20:23:33.000Z | server/generateconfig.py | ehackify/hnp | ba0e10e9ca390616dfa3888ceafc94672f41d26d | [
"MIT"
] | 1 | 2020-05-01T11:00:58.000Z | 2020-05-01T11:00:58.000Z | server/generateconfig.py | ehackify/hnp | ba0e10e9ca390616dfa3888ceafc94672f41d26d | [
"MIT"
] | null | null | null | """
This is a helper script meant to generate a
working config.py file from the config template.
"""
from getpass import getpass
import json
import os.path
from random import choice
import string
import sys
from urllib2 import urlopen
import argparse
el = string.ascii_letters + string.digits
rand_str = lambda n: ''... | 39.908108 | 111 | 0.629554 | 922 | 7,383 | 4.79718 | 0.186551 | 0.031653 | 0.041149 | 0.064662 | 0.258422 | 0.111011 | 0.047931 | 0.023061 | 0.023061 | 0.023061 | 0 | 0.004719 | 0.253691 | 7,383 | 184 | 112 | 40.125 | 0.798004 | 0.02289 | 0 | 0.021127 | 1 | 0 | 0.211874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.126761 | 0.056338 | null | null | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
38b27566b1259125c82f23bb410465baad833115 | 146 | py | Python | data/yaml_reader.py | Aadesh-Baral/OSM-chatbot | 346779f66e1b16b9605588f57644703cf8790607 | [
"MIT"
] | null | null | null | data/yaml_reader.py | Aadesh-Baral/OSM-chatbot | 346779f66e1b16b9605588f57644703cf8790607 | [
"MIT"
] | null | null | null | data/yaml_reader.py | Aadesh-Baral/OSM-chatbot | 346779f66e1b16b9605588f57644703cf8790607 | [
"MIT"
] | null | null | null | import yaml
from yaml.loader import SafeLoader
with open('chitchat.yml') as f:
data = yaml.load(f, Loader=SafeLoader)
print(data['nlu']) | 24.333333 | 43 | 0.705479 | 22 | 146 | 4.681818 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164384 | 146 | 6 | 44 | 24.333333 | 0.844262 | 0 | 0 | 0 | 0 | 0 | 0.105634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
38e079f25d15e79b7eabb93241bdba303f7cd204 | 2,915 | py | Python | tests/test_gui.py | bscott711/LLSpy | b99aab165ed2c9ebbb957880e15b7b869e266c23 | [
"BSD-3-Clause"
] | null | null | null | tests/test_gui.py | bscott711/LLSpy | b99aab165ed2c9ebbb957880e15b7b869e266c23 | [
"BSD-3-Clause"
] | null | null | null | tests/test_gui.py | bscott711/LLSpy | b99aab165ed2c9ebbb957880e15b7b869e266c23 | [
"BSD-3-Clause"
] | null | null | null | import os
from llspy.gui.mainwindow import main_GUI
from PyQt5 import QtWidgets, QtCore
from pytestqt import qtbot
from llspy.llsdir import LLSdir
def test_basic_processing(qtbot):
testdata = os.path.join(os.path.dirname(__file__), 'testdata', 'sample')
LLSdir(testdata).reduce_to_raw(keepmip=False)
n_test... | 37.857143 | 78 | 0.718696 | 340 | 2,915 | 6.014706 | 0.232353 | 0.052812 | 0.03912 | 0.035208 | 0.761369 | 0.728117 | 0.708068 | 0.671883 | 0.634719 | 0.634719 | 0 | 0.010543 | 0.154031 | 2,915 | 76 | 79 | 38.355263 | 0.818735 | 0.267581 | 0 | 0.458333 | 0 | 0 | 0.03026 | 0 | 0 | 0 | 0 | 0 | 0.270833 | 1 | 0.0625 | false | 0 | 0.104167 | 0 | 0.166667 | 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 |
2a000f80356a5312781a30411e6a7a8d86918fdb | 379 | py | Python | astropy/io/registry/__init__.py | MatiasRepetto/astropy | 689f9d3b063145150149e592a879ee40af1fac06 | [
"BSD-3-Clause"
] | 1 | 2019-03-11T12:26:49.000Z | 2019-03-11T12:26:49.000Z | astropy/io/registry/__init__.py | MatiasRepetto/astropy | 689f9d3b063145150149e592a879ee40af1fac06 | [
"BSD-3-Clause"
] | 1 | 2019-10-09T18:54:27.000Z | 2019-10-09T18:54:27.000Z | astropy/io/registry/__init__.py | MatiasRepetto/astropy | 689f9d3b063145150149e592a879ee40af1fac06 | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Unified I/O Registry.
"""
from . import base, compat, core, interface
from .base import *
from .compat import *
from .compat import _identifiers, _readers, _writers # for backwards compat
from .core import *
from .interface import *
__all__ = core._... | 27.071429 | 76 | 0.744063 | 51 | 379 | 5.078431 | 0.509804 | 0.11583 | 0.123552 | 0.169884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003145 | 0.16095 | 379 | 13 | 77 | 29.153846 | 0.811321 | 0.277045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.857143 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2a04e2880189d993b36ce4377554cbe94ad29268 | 183 | py | Python | Mundo01/ex003.py | anemesio/Pyyhon3-Exercicios | 7f2c6ec62545f411c79e96070db5cf3198ba4c80 | [
"Apache-2.0"
] | null | null | null | Mundo01/ex003.py | anemesio/Pyyhon3-Exercicios | 7f2c6ec62545f411c79e96070db5cf3198ba4c80 | [
"Apache-2.0"
] | null | null | null | Mundo01/ex003.py | anemesio/Pyyhon3-Exercicios | 7f2c6ec62545f411c79e96070db5cf3198ba4c80 | [
"Apache-2.0"
] | null | null | null | num01 = int(input('Digite um valor: '))
num02 = int(input('Digite outro valor: '))
soma = num01 + num02
print('A soma entre {} e {} é igual a {}!'.format(num01, num02, soma))
| 26.142857 | 71 | 0.612022 | 27 | 183 | 4.148148 | 0.592593 | 0.142857 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082192 | 0.202186 | 183 | 6 | 72 | 30.5 | 0.684932 | 0 | 0 | 0 | 0 | 0 | 0.405714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
2a1238361703dbce64c86cb1b725dcb3ecedc2bc | 756 | py | Python | backend_sqlalchemy/backend_app/models/user.py | jiz148/medical_app | 2f8b3f299ff6a87e62ac7483b6d2bac156a08874 | [
"MIT"
] | null | null | null | backend_sqlalchemy/backend_app/models/user.py | jiz148/medical_app | 2f8b3f299ff6a87e62ac7483b6d2bac156a08874 | [
"MIT"
] | null | null | null | backend_sqlalchemy/backend_app/models/user.py | jiz148/medical_app | 2f8b3f299ff6a87e62ac7483b6d2bac156a08874 | [
"MIT"
] | null | null | null | from backend_sqlalchemy.backend_app.db import db
from backend_sqlalchemy.backend_app.db import app
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import relationship
from passlib.hash import pbkdf2_sha256
# defining a custom hash function to be used for encrypting the password
custom_hash = pbkdf... | 25.2 | 95 | 0.769841 | 104 | 756 | 5.403846 | 0.509615 | 0.071174 | 0.096085 | 0.099644 | 0.13879 | 0.13879 | 0.13879 | 0 | 0 | 0 | 0 | 0.021572 | 0.141534 | 756 | 29 | 96 | 26.068966 | 0.844376 | 0.092593 | 0 | 0 | 0 | 0 | 0.033774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
2a464ba0527d1863b8407c18a0248d9e6c7bc349 | 532 | py | Python | rent/rent/forms.py | ahmedsadman/house-rent-service | b2054f67e61e81153b8b2d78613b37e296d4e863 | [
"MIT"
] | 1 | 2019-09-11T10:39:59.000Z | 2019-09-11T10:39:59.000Z | rent/rent/forms.py | ahmedsadman/house-rent-service | b2054f67e61e81153b8b2d78613b37e296d4e863 | [
"MIT"
] | null | null | null | rent/rent/forms.py | ahmedsadman/house-rent-service | b2054f67e61e81153b8b2d78613b37e296d4e863 | [
"MIT"
] | null | null | null | from django import forms
from posts.models import District, Area
class SearchForm(forms.Form):
district = forms.ModelChoiceField(queryset=District.objects.all(
), widget=forms.Select(attrs={'id': 'district_choice'}))
area = forms.ModelChoiceField(required=False, queryset=Area.objects.all(
), widget=fo... | 40.923077 | 76 | 0.755639 | 62 | 532 | 6.403226 | 0.435484 | 0.130982 | 0.18136 | 0.241814 | 0.450882 | 0.171285 | 0.171285 | 0 | 0 | 0 | 0 | 0 | 0.118421 | 532 | 12 | 77 | 44.333333 | 0.846482 | 0 | 0 | 0 | 0 | 0 | 0.056391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
2a517b58e71273f992cffda3b861cf923d54767b | 1,771 | py | Python | solutions/dcp367/test_dcp367.py | hiimalexjgarcia/dailycodingproblem | 5c70dc86ec98821a552cb411cf97fa43c9fde638 | [
"MIT"
] | null | null | null | solutions/dcp367/test_dcp367.py | hiimalexjgarcia/dailycodingproblem | 5c70dc86ec98821a552cb411cf97fa43c9fde638 | [
"MIT"
] | 1 | 2021-04-08T03:23:05.000Z | 2021-04-08T03:23:05.000Z | solutions/dcp367/test_dcp367.py | hiimalexjgarcia/dailycodingproblem | 5c70dc86ec98821a552cb411cf97fa43c9fde638 | [
"MIT"
] | null | null | null | #
# Daily Coding Problem: Problem #367 [Medium]
#
# Good morning! Here's your coding interview problem for today.
#
# This problem was asked by Two Sigma.
#
# Given two sorted iterators, merge it into one iterator.
#
# For example, given these two iterators:
#
# foo = iter([5, 10, 15])
# bar = iter([3, 8, 9])
#
# You s... | 26.044118 | 81 | 0.625071 | 244 | 1,771 | 4.434426 | 0.336066 | 0.088725 | 0.245841 | 0.271719 | 0.443623 | 0.378928 | 0.378928 | 0.378928 | 0.378928 | 0.177449 | 0 | 0.050708 | 0.242801 | 1,771 | 67 | 82 | 26.432836 | 0.756152 | 0.26087 | 0 | 0.424242 | 0 | 0 | 0.017282 | 0 | 0 | 0 | 0 | 0 | 0.515152 | 1 | 0.090909 | false | 0 | 0.060606 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2a5f66fb7bc72f469e5a9d4125ceaa357bf6e2ab | 316 | py | Python | qr_code_service/appengine_config.py | stanwood/stanwood-services | a9a3afcb10c94877b656bbf48994e74560ab0166 | [
"MIT"
] | null | null | null | qr_code_service/appengine_config.py | stanwood/stanwood-services | a9a3afcb10c94877b656bbf48994e74560ab0166 | [
"MIT"
] | 8 | 2019-12-26T17:33:37.000Z | 2022-03-21T22:17:52.000Z | qr_code_service/appengine_config.py | stanwood/stanwood-services | a9a3afcb10c94877b656bbf48994e74560ab0166 | [
"MIT"
] | 1 | 2019-02-14T13:43:36.000Z | 2019-02-14T13:43:36.000Z | import os
from google.appengine.ext import vendor
# Third-party libraries are stored in "ext", vendoring will make
# sure that they are importable by the application.
vendor.add(os.path.join(os.path.dirname(__file__), 'ext'))
import requests
from requests_toolbelt.adapters import appengine
appengine.monkeypatch() | 31.6 | 64 | 0.803797 | 46 | 316 | 5.413043 | 0.695652 | 0.072289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110759 | 316 | 10 | 65 | 31.6 | 0.886121 | 0.35443 | 0 | 0 | 0 | 0 | 0.014851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2a6d809b71bda74dfb1163170b6005a475a3148b | 3,750 | py | Python | test_pyqueued.py | miku/pyqueued | 30156dae682a07418b116f1d67430325e998e769 | [
"MIT"
] | 1 | 2015-05-11T08:06:09.000Z | 2015-05-11T08:06:09.000Z | test_pyqueued.py | miku/pyqueued | 30156dae682a07418b116f1d67430325e998e769 | [
"MIT"
] | null | null | null | test_pyqueued.py | miku/pyqueued | 30156dae682a07418b116f1d67430325e998e769 | [
"MIT"
] | null | null | null | # coding: utf-8
import pyqueued
import random
import requests
import time
import unittest
def random_queue_name():
return "test_pyqueued_%d" % random.randint(0, 99999999)
class TestClient(unittest.TestCase):
def test_init(self):
c = pyqueued.Client()
self.assertTrue(c is not None)
def t... | 34.090909 | 100 | 0.5992 | 492 | 3,750 | 4.434959 | 0.144309 | 0.053621 | 0.082493 | 0.08066 | 0.757562 | 0.716774 | 0.705775 | 0.690651 | 0.622365 | 0.603116 | 0 | 0.02 | 0.253333 | 3,750 | 109 | 101 | 34.40367 | 0.759286 | 0.003467 | 0 | 0.623656 | 0 | 0 | 0.077644 | 0 | 0 | 0 | 0 | 0 | 0.225806 | 1 | 0.139785 | false | 0 | 0.053763 | 0.010753 | 0.215054 | 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 |
2a77bc03c23c3e4bdf7a744a26aaaa0f08da2174 | 1,479 | py | Python | src/python/doufo/collections/composite.py | Hong-Xiang/doufo | 3d375fef30670597768a6eef809b75b4b1b5a3fd | [
"Apache-2.0"
] | 3 | 2018-08-05T07:16:34.000Z | 2018-08-10T05:28:24.000Z | src/python/doufo/collections/composite.py | tech-pi/doufo | 3d375fef30670597768a6eef809b75b4b1b5a3fd | [
"Apache-2.0"
] | 10 | 2018-09-16T15:44:19.000Z | 2018-10-06T10:39:59.000Z | src/python/doufo/collections/composite.py | tech-pi/doufo | 3d375fef30670597768a6eef809b75b4b1b5a3fd | [
"Apache-2.0"
] | 1 | 2018-08-04T08:13:50.000Z | 2018-08-04T08:13:50.000Z | """
Objective:
Lazy "concatenated" lists/table or other Sequence[T], thus combining
multiple sequences without actually concatenating them.
"""
from doufo import Functor, Monoid, List
from typing import Sequence, TypeVar, Callable
from itertools import chain
T = TypeVar('T')
B = TypeVar('B')
class CompositeSequen... | 27.388889 | 112 | 0.636241 | 197 | 1,479 | 4.654822 | 0.436548 | 0.083969 | 0.032715 | 0.034896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003575 | 0.243408 | 1,479 | 53 | 113 | 27.90566 | 0.815907 | 0.180527 | 0 | 0 | 0 | 0 | 0.059122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258065 | false | 0 | 0.096774 | 0.16129 | 0.612903 | 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 |
2a8b20e98f264c8d0fbe480372459477d7caf58c | 634 | py | Python | pydashlite/collections/head.py | glowlex/pydashlite | cbc96478fa610aeae95b5584b406aa0c35b89db1 | [
"MIT"
] | null | null | null | pydashlite/collections/head.py | glowlex/pydashlite | cbc96478fa610aeae95b5584b406aa0c35b89db1 | [
"MIT"
] | null | null | null | pydashlite/collections/head.py | glowlex/pydashlite | cbc96478fa610aeae95b5584b406aa0c35b89db1 | [
"MIT"
] | null | null | null | from typing import Any, Iterable, TypeVar, Union, overload, KeysView, Optional, Dict
T = TypeVar('T')
Y = TypeVar('Y')
@overload
def head(iterable: KeysView[T], default: Y) -> Union[T, Y]:
...
@overload
def head(iterable: Iterable[T], default: Y) -> Union[T, Y]:
...
@overload
def head(iterable: KeysView... | 19.212121 | 97 | 0.62776 | 84 | 634 | 4.738095 | 0.261905 | 0.08794 | 0.188442 | 0.231156 | 0.5 | 0.434673 | 0.434673 | 0.316583 | 0.19598 | 0.19598 | 0 | 0 | 0.195584 | 634 | 32 | 98 | 19.8125 | 0.780392 | 0 | 0 | 0.4 | 0 | 0 | 0.003155 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.05 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2a91d2a470d3a566a36a8ddcc755241dad3f1939 | 165 | py | Python | Desafios/Desafio 1.py | blopah/python3-curso-em-video-gustavo-guanabara-exercicios | d86c613ea8bb335c4dd888a34bda456055e4d82e | [
"MIT"
] | 2 | 2021-02-06T04:35:44.000Z | 2021-02-08T02:37:33.000Z | Desafios/Desafio 1.py | blopah/python3-curso-em-video-gustavo-guanabara-exercicios | d86c613ea8bb335c4dd888a34bda456055e4d82e | [
"MIT"
] | null | null | null | Desafios/Desafio 1.py | blopah/python3-curso-em-video-gustavo-guanabara-exercicios | d86c613ea8bb335c4dd888a34bda456055e4d82e | [
"MIT"
] | null | null | null | # Desafio 1
n1 = float(input('Digite um número!! '))
n2 = float(input('Agora outro!!! '))
s = int( n1 / n2 )
print('A divisão entre {} e {} é {}'.format(n1, n2, s)) | 27.5 | 55 | 0.575758 | 27 | 165 | 3.518519 | 0.740741 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052239 | 0.187879 | 165 | 6 | 55 | 27.5 | 0.656716 | 0.054545 | 0 | 0 | 0 | 0 | 0.4 | 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 |
aa72d3d1483141392d7c230d27352e96cfc81293 | 143 | py | Python | 26.Mayor10TripleValor.py | JDKdevStudio/Taller30Abril | fe8094b6669899aae50154a6d380ce583531699a | [
"CC0-1.0"
] | null | null | null | 26.Mayor10TripleValor.py | JDKdevStudio/Taller30Abril | fe8094b6669899aae50154a6d380ce583531699a | [
"CC0-1.0"
] | null | null | null | 26.Mayor10TripleValor.py | JDKdevStudio/Taller30Abril | fe8094b6669899aae50154a6d380ce583531699a | [
"CC0-1.0"
] | null | null | null | numero = int(input("Introduzca el numero= "))
if numero >= 10:
numero *= 3
print(numero)
else:
numero *=4
print(numero)
| 17.875 | 46 | 0.573427 | 18 | 143 | 4.555556 | 0.611111 | 0.268293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 0.286713 | 143 | 7 | 47 | 20.428571 | 0.764706 | 0 | 0 | 0.285714 | 0 | 0 | 0.161765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 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 |
aa809ddac91ed2debaf2e80711fd70e8db57e6bf | 22 | py | Python | utils/__init__.py | JyothibabuAmudala/test | ed8749a7356d127c772b69152da46d629dc2accc | [
"MIT"
] | null | null | null | utils/__init__.py | JyothibabuAmudala/test | ed8749a7356d127c772b69152da46d629dc2accc | [
"MIT"
] | null | null | null | utils/__init__.py | JyothibabuAmudala/test | ed8749a7356d127c772b69152da46d629dc2accc | [
"MIT"
] | null | null | null | __author__ = 'ruddra'
| 11 | 21 | 0.727273 | 2 | 22 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 22 | 1 | 22 | 22 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 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 |
aa91ee1ba9d24bdd74e90859a0911d87a504b368 | 143 | py | Python | xtdate_utils/__init__.py | mxtadmin/xtdate-utils | 779160b8da601b4a2a89239e6b243bf7cd1ffba0 | [
"MIT"
] | null | null | null | xtdate_utils/__init__.py | mxtadmin/xtdate-utils | 779160b8da601b4a2a89239e6b243bf7cd1ffba0 | [
"MIT"
] | null | null | null | xtdate_utils/__init__.py | mxtadmin/xtdate-utils | 779160b8da601b4a2a89239e6b243bf7cd1ffba0 | [
"MIT"
] | null | null | null | # !/usr/bin/env python
# -*- coding:utf-8 -*-
# @Author : mao
from xtdate_utils.xtdate_utils import TimeUtils
__all__ = [
"TimeUtils",
]
| 14.3 | 47 | 0.65035 | 18 | 143 | 4.833333 | 0.833333 | 0.252874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008547 | 0.181818 | 143 | 9 | 48 | 15.888889 | 0.735043 | 0.384615 | 0 | 0 | 0 | 0 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
aa942fc1cbd85078be78e85e297952ab9a5a478b | 2,367 | py | Python | list/migrations/0001_initial.py | haochengz/wvote | 7e7a909bd4aa90750cb79bbcabdb328e70cf3744 | [
"MIT"
] | null | null | null | list/migrations/0001_initial.py | haochengz/wvote | 7e7a909bd4aa90750cb79bbcabdb328e70cf3744 | [
"MIT"
] | null | null | null | list/migrations/0001_initial.py | haochengz/wvote | 7e7a909bd4aa90750cb79bbcabdb328e70cf3744 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.2 on 2018-05-22 17:12
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='EventModel',
fields=[
... | 39.45 | 114 | 0.562738 | 236 | 2,367 | 5.495763 | 0.283898 | 0.083269 | 0.083269 | 0.111025 | 0.720894 | 0.700848 | 0.654588 | 0.603701 | 0.603701 | 0.603701 | 0 | 0.024536 | 0.294043 | 2,367 | 59 | 115 | 40.118644 | 0.751646 | 0.019011 | 0 | 0.576923 | 1 | 0 | 0.088793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.115385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
aa9ef9eaef0079e0a77c606a805f2198a7fcb61d | 1,099 | py | Python | sahara/api/v2/job_types.py | ksshanam/sahara | 0d259f7a71447cd0cefe4f11184cc2ee335f4e33 | [
"Apache-2.0"
] | null | null | null | sahara/api/v2/job_types.py | ksshanam/sahara | 0d259f7a71447cd0cefe4f11184cc2ee335f4e33 | [
"Apache-2.0"
] | 1 | 2020-10-06T07:50:12.000Z | 2020-10-06T07:50:12.000Z | sahara/api/v2/job_types.py | ksshanam/sahara | 0d259f7a71447cd0cefe4f11184cc2ee335f4e33 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2016 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 34.34375 | 69 | 0.735214 | 184 | 1,099 | 4.309783 | 0.586957 | 0.070618 | 0.032787 | 0.040353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010941 | 0.168335 | 1,099 | 31 | 70 | 35.451613 | 0.856674 | 0.640582 | 0 | 0 | 0 | 0 | 0.137931 | 0.087533 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
aad754e209e80c69eaa686f0494e6614197c13b0 | 204 | py | Python | mmic_mda/__init__.py | MolSSI/mmic_mda | a412a2c96b445c0e584d9c3cc4d636e8b0214fbc | [
"BSD-3-Clause"
] | null | null | null | mmic_mda/__init__.py | MolSSI/mmic_mda | a412a2c96b445c0e584d9c3cc4d636e8b0214fbc | [
"BSD-3-Clause"
] | 2 | 2021-02-16T20:23:44.000Z | 2021-03-30T00:43:42.000Z | mmic_mda/__init__.py | MolSSI/mmic_mda | a412a2c96b445c0e584d9c3cc4d636e8b0214fbc | [
"BSD-3-Clause"
] | 2 | 2021-04-09T23:05:52.000Z | 2021-11-05T19:50:04.000Z | """
mmic_mda
A short description of the project.
"""
# Add imports here
from . import components, models
from .mmic_mda import *
_classes_map = {"Molecule": models.MdaMol, "Trajectory": models.MdaTraj}
| 18.545455 | 72 | 0.735294 | 27 | 204 | 5.407407 | 0.777778 | 0.09589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 204 | 10 | 73 | 20.4 | 0.83908 | 0.303922 | 0 | 0 | 0 | 0 | 0.134328 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
aae498ddcdeee69f93d815f7648d5123929964ce | 747 | py | Python | Chapter13/pythonlog.py | VinushaVemuri/learn | 077349d34063b49af24de4ffeb654ecf729ddb65 | [
"MIT"
] | 185 | 2020-10-23T18:08:21.000Z | 2022-03-28T12:08:11.000Z | Chapter13/pythonlog.py | VinushaVemuri/learn | 077349d34063b49af24de4ffeb654ecf729ddb65 | [
"MIT"
] | 2 | 2021-01-30T13:28:47.000Z | 2021-12-11T14:13:12.000Z | Chapter13/pythonlog.py | VinushaVemuri/learn | 077349d34063b49af24de4ffeb654ecf729ddb65 | [
"MIT"
] | 103 | 2020-10-26T13:12:56.000Z | 2022-03-29T16:53:45.000Z | import logging
logging.basicConfig(level=0,filename='python-log.log', filemode='w', format='%(levelname)s - %(message)s')
logging.debug('Attempted to divide by zero')
logging.warning('User left field blank in the form')
logging.error("Couldn't find specified file")
# > DEBUG - Attempted to divide by zero
# > WARNING... | 35.571429 | 120 | 0.722892 | 115 | 747 | 4.695652 | 0.434783 | 0.096296 | 0.085185 | 0.088889 | 0.868519 | 0.775926 | 0.564815 | 0.564815 | 0.32963 | 0.218519 | 0 | 0.055385 | 0.129853 | 747 | 20 | 121 | 37.35 | 0.775385 | 0.336011 | 0 | 0 | 0 | 0 | 0.496933 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2ab2819e05accbf8e1aa25cf5065851ec9a0e372 | 102 | py | Python | src/interfaces/python/opengm/opengmcore/dtypes.py | burcin/opengm | a1b21eecb93c6c5a7b11ab312d26b1c98c55ff41 | [
"MIT"
] | 318 | 2015-01-07T15:22:02.000Z | 2022-01-22T10:10:29.000Z | src/interfaces/python/opengm/opengmcore/dtypes.py | burcin/opengm | a1b21eecb93c6c5a7b11ab312d26b1c98c55ff41 | [
"MIT"
] | 89 | 2015-03-24T14:33:01.000Z | 2020-07-10T13:59:13.000Z | src/interfaces/python/opengm/opengmcore/dtypes.py | burcin/opengm | a1b21eecb93c6c5a7b11ab312d26b1c98c55ff41 | [
"MIT"
] | 119 | 2015-01-13T08:35:03.000Z | 2022-03-01T01:49:08.000Z | from numpy import uint64,uint64,float64
index_type = uint64
label_type = uint64
value_type = float64
| 17 | 39 | 0.813725 | 15 | 102 | 5.333333 | 0.6 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 0.137255 | 102 | 5 | 40 | 20.4 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
2abcc6e5c1c572096ea2db886854b576b7fd5bf0 | 484 | py | Python | Python/isPrimeNumber.py | PushpneetSingh/Hello-world | def0f44737e02fb40063cd347e93e456658e2532 | [
"MIT"
] | 1,428 | 2018-10-03T15:15:17.000Z | 2019-03-31T18:38:36.000Z | Python/isPrimeNumber.py | PushpneetSingh/Hello-world | def0f44737e02fb40063cd347e93e456658e2532 | [
"MIT"
] | 1,162 | 2018-10-03T15:05:49.000Z | 2018-10-18T14:17:52.000Z | Python/isPrimeNumber.py | PushpneetSingh/Hello-world | def0f44737e02fb40063cd347e93e456658e2532 | [
"MIT"
] | 3,909 | 2018-10-03T15:07:19.000Z | 2019-03-31T18:39:08.000Z | def isPrime(n):
# 1 is not a prime number by definition
if n < 2:
return False
return sum(d for d in xrange(2, n) if n % d == 0) == 0
def UnitTests():
assert isPrime(1) == False
assert isPrime(2) == True
assert isPrime(3) == True
assert isPrime(4) == False
assert isPrime(13) == True
assert isPrime(23) == ... | 22 | 55 | 0.661157 | 77 | 484 | 4.155844 | 0.441558 | 0.446875 | 0.31875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080729 | 0.206612 | 484 | 21 | 56 | 23.047619 | 0.752604 | 0.076446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.647059 | 1 | 0.117647 | false | 0 | 0 | 0 | 0.235294 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2ae92f194d6333af24855367620993f48d11df97 | 1,943 | py | Python | tests/test_is_ip_v4.py | alvistack/daveoncode-python-string-utils | 78929d88d90b1f90cb4837528ed955166bf0f559 | [
"MIT"
] | 3 | 2020-08-20T10:27:13.000Z | 2021-11-02T20:28:16.000Z | tests/test_is_ip_v4.py | alvistack/daveoncode-python-string-utils | 78929d88d90b1f90cb4837528ed955166bf0f559 | [
"MIT"
] | null | null | null | tests/test_is_ip_v4.py | alvistack/daveoncode-python-string-utils | 78929d88d90b1f90cb4837528ed955166bf0f559 | [
"MIT"
] | null | null | null | from unittest import TestCase
from string_utils import is_ip_v4
class IsIpV4TestCase(TestCase):
def test_return_false_for_non_string_objects(self):
# noinspection PyTypeChecker
self.assertFalse(is_ip_v4(None))
# noinspection PyTypeChecker
self.assertFalse(is_ip_v4(1))
# ... | 34.087719 | 69 | 0.670612 | 306 | 1,943 | 3.928105 | 0.215686 | 0.08985 | 0.134775 | 0.363561 | 0.702163 | 0.656406 | 0.59401 | 0.479201 | 0.301165 | 0.282862 | 0 | 0.119365 | 0.189398 | 1,943 | 56 | 70 | 34.696429 | 0.64381 | 0.068966 | 0 | 0.108108 | 0 | 0 | 0.12812 | 0.017194 | 0 | 0 | 0 | 0 | 0.702703 | 1 | 0.216216 | false | 0 | 0.054054 | 0 | 0.297297 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2aedc30d70348b531ff69134841412a0fc59f4cc | 2,277 | py | Python | src/pyrin/utils/exceptions.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | src/pyrin/utils/exceptions.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | src/pyrin/utils/exceptions.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
utils exceptions module.
"""
from pyrin.core.exceptions import CoreException, CoreBusinessException
class UtilsException(CoreException):
"""
utils exception.
"""
pass
class UtilsBusinessException(CoreBusinessException, UtilsException):
"""
utils business exceptio... | 16.264286 | 70 | 0.671498 | 174 | 2,277 | 8.787356 | 0.408046 | 0.105952 | 0.146501 | 0.035317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000575 | 0.236276 | 2,277 | 139 | 71 | 16.381295 | 0.878666 | 0.268336 | 0 | 0.487179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.487179 | 0.025641 | 0 | 0.512821 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
630c5ca4e1c7b02f3067e4efdcbe76d98ebd2c36 | 361 | py | Python | done/18-2-python-ds-practice/10_frequency.py | demohack/yute | 2fb136118733394e3595bf707cb32f1b7b2aede0 | [
"MIT"
] | null | null | null | done/18-2-python-ds-practice/10_frequency.py | demohack/yute | 2fb136118733394e3595bf707cb32f1b7b2aede0 | [
"MIT"
] | 17 | 2021-03-24T14:59:50.000Z | 2022-03-05T23:52:31.000Z | done/18-2-python-ds-practice/10_frequency.py | demohack/yute | 2fb136118733394e3595bf707cb32f1b7b2aede0 | [
"MIT"
] | null | null | null | def frequency(lst, search_term):
"""Return frequency of term in lst.
>>> frequency([1, 4, 3, 4, 4], 4)
3
>>> frequency([1, 4, 3], 7)
0
"""
d = {}
for x in lst:
if x in d:
d[x] = d[x] + 1
else:
d[x] = 1
if search_term in d:
... | 18.05 | 41 | 0.418283 | 54 | 361 | 2.740741 | 0.333333 | 0.202703 | 0.216216 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074257 | 0.440443 | 361 | 19 | 42 | 19 | 0.658416 | 0.277008 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.3 | 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 |
2d4b676d2044d81e9fad7b128d20dcfe0824b079 | 2,064 | py | Python | src/cube2common/bvec.py | DanSeraf/spyd | af893b7f9c67785613b25754eb2cf150523a9fe4 | [
"Zlib"
] | 1 | 2020-03-23T20:28:06.000Z | 2020-03-23T20:28:06.000Z | src/cube2common/bvec.py | DanSeraf/spyd | af893b7f9c67785613b25754eb2cf150523a9fe4 | [
"Zlib"
] | 1 | 2022-02-05T16:59:53.000Z | 2022-02-08T17:30:55.000Z | src/cube2common/bvec.py | DanSeraf/spyd | af893b7f9c67785613b25754eb2cf150523a9fe4 | [
"Zlib"
] | null | null | null | from cube2common.vec import vec
def uchar(val):
return val&0xFF
class bvec(object):
def __init__(self, *args):
self.v = bytearray(3)
if len(args) == 1 and isinstance(args[0], vec):
v = args[0]
self.x = uchar((v.x+1)*255/2)
self.y = ucha... | 21.5 | 80 | 0.474322 | 287 | 2,064 | 3.327526 | 0.170732 | 0.08377 | 0.080628 | 0.094241 | 0.431414 | 0.33089 | 0.289005 | 0.289005 | 0.098429 | 0.098429 | 0 | 0.029435 | 0.390988 | 2,064 | 95 | 81 | 21.726316 | 0.73031 | 0 | 0 | 0.347826 | 0 | 0 | 0.009695 | 0 | 0 | 0 | 0.001939 | 0 | 0 | 1 | 0.304348 | false | 0 | 0.014493 | 0.15942 | 0.550725 | 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 |
2d54582755db17f5c496589fbadef8653adece51 | 221 | py | Python | src/thenewboston/third_party/factory/utils.py | achalpatel/thenewboston-python | 4044ce07cb5e0d1f92b4332bbd8c6ac8f33bcdb9 | [
"MIT"
] | 122 | 2020-07-12T23:08:49.000Z | 2021-12-18T16:14:10.000Z | src/thenewboston/third_party/factory/utils.py | achalpatel/thenewboston-python | 4044ce07cb5e0d1f92b4332bbd8c6ac8f33bcdb9 | [
"MIT"
] | 47 | 2020-07-15T02:18:09.000Z | 2021-09-22T19:51:59.000Z | src/thenewboston/third_party/factory/utils.py | achalpatel/thenewboston-python | 4044ce07cb5e0d1f92b4332bbd8c6ac8f33bcdb9 | [
"MIT"
] | 52 | 2020-07-13T10:49:52.000Z | 2021-10-30T03:34:55.000Z | import factory
def build_json(factory_class, **kwargs):
"""Build json representation for object using factory."""
return factory.build(
dict,
FACTORY_CLASS=factory_class,
**kwargs,
)
| 20.090909 | 61 | 0.647059 | 24 | 221 | 5.791667 | 0.541667 | 0.258993 | 0.258993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253394 | 221 | 10 | 62 | 22.1 | 0.842424 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2d85b59adfe741de18b948f9ef4ab0b034c0cd7a | 6,692 | py | Python | src/genie/libs/parser/iosxe/tests/ShowBridgeDomain/cli/equal/golden_output_bridge_domain_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 204 | 2018-06-27T00:55:27.000Z | 2022-03-06T21:12:18.000Z | src/genie/libs/parser/iosxe/tests/ShowBridgeDomain/cli/equal/golden_output_bridge_domain_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 468 | 2018-06-19T00:33:18.000Z | 2022-03-31T23:23:35.000Z | src/genie/libs/parser/iosxe/tests/ShowBridgeDomain/cli/equal/golden_output_bridge_domain_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 309 | 2019-01-16T20:21:07.000Z | 2022-03-30T12:56:41.000Z | expected_output = {
"bridge_domain": {
3051: {
"number_of_ports_in_all": 2,
"state": "UP",
"member_ports": [
"vfi VPLS-3051 neighbor 192.168.36.220 3051",
"GigabitEthernet0/0/3 service instance 3051",
],
"mac_table":... | 41.308642 | 81 | 0.249701 | 373 | 6,692 | 4.383378 | 0.225201 | 0.185933 | 0.171254 | 0.220183 | 0.424465 | 0.408563 | 0.287462 | 0.238532 | 0.238532 | 0.238532 | 0 | 0.191886 | 0.63165 | 6,692 | 161 | 82 | 41.565217 | 0.4714 | 0 | 0 | 0.416149 | 0 | 0 | 0.246414 | 0.011656 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
2d86a408526bb07d12706876dcedbbfd71280eb7 | 152 | py | Python | pyckaxe/utils/default.py | Arcensoth/pyckaxe | 09ed0828d6660a233b827721454293579329991b | [
"MIT"
] | 3 | 2018-09-23T05:16:44.000Z | 2021-12-23T03:06:07.000Z | pyckaxe/utils/default.py | Arcensoth/pyckaxe | 09ed0828d6660a233b827721454293579329991b | [
"MIT"
] | 5 | 2018-07-11T02:31:56.000Z | 2018-07-11T03:15:05.000Z | pyckaxe/utils/default.py | Arcensoth/pyckaxe | 09ed0828d6660a233b827721454293579329991b | [
"MIT"
] | null | null | null | from typing import Any, cast
__all__ = ("DEFAULT",)
# Unique object that can be used as a default for nullable fields.
DEFAULT = cast(Any, object())
| 19 | 66 | 0.717105 | 23 | 152 | 4.565217 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184211 | 152 | 7 | 67 | 21.714286 | 0.846774 | 0.421053 | 0 | 0 | 0 | 0 | 0.081395 | 0 | 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 |
2d88fcc935bd14f39b74408cb426471b76aa149d | 313 | py | Python | mtproxy/utils/__init__.py | i-Naji/mtproxy | b8fe68023cf35bc6bc8e96d797f1f39304d4e5fa | [
"MIT"
] | 16 | 2019-06-21T11:26:26.000Z | 2021-03-14T08:06:36.000Z | mtproxy/utils/__init__.py | WhymustIhaveaname/mtproxy | b8fe68023cf35bc6bc8e96d797f1f39304d4e5fa | [
"MIT"
] | 2 | 2020-02-27T16:25:41.000Z | 2021-03-14T08:31:14.000Z | mtproxy/utils/__init__.py | WhymustIhaveaname/mtproxy | b8fe68023cf35bc6bc8e96d797f1f39304d4e5fa | [
"MIT"
] | 4 | 2019-06-21T15:59:56.000Z | 2021-03-17T04:54:42.000Z | from .async_tools import AsyncTools
from .user import User
from .ip_info import IPInfo
from .socket_settings import set_keepalive, set_ack_timeout, set_bufsizes
from .ext import setup_files_limit
__all__ = ['AsyncTools', 'User', 'IPInfo', 'set_keepalive', 'set_ack_timeout', 'set_bufsizes', 'setup_files_limit']
| 39.125 | 115 | 0.801917 | 45 | 313 | 5.155556 | 0.466667 | 0.103448 | 0.12931 | 0.155172 | 0.310345 | 0.310345 | 0.310345 | 0 | 0 | 0 | 0 | 0 | 0.102236 | 313 | 7 | 116 | 44.714286 | 0.825623 | 0 | 0 | 0 | 0 | 0 | 0.246006 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.833333 | 0 | 0.833333 | 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 |
2d9748fdac3fa400b0f8b65ece06c4785477b43a | 92 | py | Python | overholt/__init__.py | prdonahue/overholt | e03209f7a059d165a9154355d090738af3159028 | [
"MIT"
] | 1,152 | 2015-01-04T16:30:17.000Z | 2022-03-27T19:50:52.000Z | overholt/__init__.py | prdonahue/overholt | e03209f7a059d165a9154355d090738af3159028 | [
"MIT"
] | 25 | 2020-07-06T08:49:08.000Z | 2021-07-27T06:15:43.000Z | overholt/__init__.py | prdonahue/overholt | e03209f7a059d165a9154355d090738af3159028 | [
"MIT"
] | 218 | 2015-01-06T20:41:52.000Z | 2022-03-25T19:07:53.000Z | # -*- coding: utf-8 -*-
"""
overholt
~~~~~~~~
overholt application package
"""
| 11.5 | 32 | 0.478261 | 7 | 92 | 6.285714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.271739 | 92 | 7 | 33 | 13.142857 | 0.641791 | 0.76087 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 |
2da6673efc09c78028b8fa2cfc84c380ff8cde13 | 7,438 | py | Python | dpa/product/version/__init__.py | Clemson-DPA/dpa-pipe | 2482b8a0fd96dc19c0be4e82c3eaf0508914a968 | [
"MIT"
] | 55 | 2015-07-15T02:33:55.000Z | 2020-12-28T08:02:54.000Z | dpa/product/version/__init__.py | Clemson-DPA/dpa-pipe | 2482b8a0fd96dc19c0be4e82c3eaf0508914a968 | [
"MIT"
] | 5 | 2015-07-11T03:21:10.000Z | 2016-12-27T12:20:07.000Z | dpa/product/version/__init__.py | Clemson-DPA/dpa-pipe | 2482b8a0fd96dc19c0be4e82c3eaf0508914a968 | [
"MIT"
] | 12 | 2015-07-08T04:48:39.000Z | 2020-06-27T11:35:58.000Z | """Classes and functions related to DPA pipeline product versions."""
# -----------------------------------------------------------------------------
# Imports:
# -----------------------------------------------------------------------------
from dateutil import parser as date_parser
from dpa.ptask.spec import PTaskS... | 35.251185 | 79 | 0.404813 | 493 | 7,438 | 5.957404 | 0.255578 | 0.048689 | 0.023834 | 0.022472 | 0.126319 | 0.110317 | 0.023834 | 0.023834 | 0 | 0 | 0 | 0.000332 | 0.18997 | 7,438 | 210 | 80 | 35.419048 | 0.487137 | 0.431433 | 0 | 0.207921 | 0 | 0 | 0.03316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.247525 | false | 0.009901 | 0.09901 | 0.108911 | 0.594059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
2db3f169c6b8edc1c8319eb41165c588fa8f1af8 | 1,380 | py | Python | talks-articles/languages-n-runtimes/python/terminal-whisper/netcat-sample.py | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 37 | 2015-02-01T23:16:39.000Z | 2021-12-22T16:50:48.000Z | talks-articles/languages-n-runtimes/python/terminal-whisper/netcat-sample.py | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 1 | 2017-03-02T04:55:48.000Z | 2018-01-14T10:51:11.000Z | talks-articles/languages-n-runtimes/python/terminal-whisper/netcat-sample.py | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 15 | 2015-03-02T08:09:01.000Z | 2021-06-10T03:25:41.000Z | #!/usr/bin/env python3
## netcat -lv -s 127.0.0.1 -p 8080
import socket, time
def connect():
s = socket.socket()
s.connect(('localhost', 8080))
return s
def publish_with_delay(txt):
conn.send(b"%s" % txt)
time.sleep(0.5)
def line_demo(conn):
publish_with_delay("this is a text")
publish_... | 25.090909 | 71 | 0.652174 | 201 | 1,380 | 4.139303 | 0.308458 | 0.34375 | 0.5 | 0.165865 | 0.49399 | 0.436298 | 0.427885 | 0.266827 | 0.165865 | 0.081731 | 0 | 0.024779 | 0.181159 | 1,380 | 54 | 72 | 25.555556 | 0.711504 | 0.05 | 0 | 0.186047 | 0 | 0 | 0.154671 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.139535 | false | 0 | 0.023256 | 0 | 0.186047 | 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 |
2db7f9f213f29e0565892df428369ab039e087c3 | 1,377 | py | Python | src/group_manager.py | luckykadam/kickup | 7a9a4dc6ace5e9fe71e67f92b96705637dd2772a | [
"MIT"
] | 4 | 2019-11-16T10:34:55.000Z | 2020-06-21T14:35:24.000Z | src/group_manager.py | luckykadam/kickup | 7a9a4dc6ace5e9fe71e67f92b96705637dd2772a | [
"MIT"
] | 2 | 2019-11-25T16:26:55.000Z | 2019-11-25T16:53:50.000Z | src/group_manager.py | luckykadam/kickup | 7a9a4dc6ace5e9fe71e67f92b96705637dd2772a | [
"MIT"
] | null | null | null | from exceptions import UnknownUser, UnknownGroup, UserNotInGroup, UserAlreadyInGroup
class GroupManager:
def __init__(self, dao):
self.dao = dao
def all_users(self):
return self.dao.users
def all_groups(self):
return self.dao.groups
def check_user_in_group(self, user_id, gro... | 36.236842 | 113 | 0.695715 | 212 | 1,377 | 4.221698 | 0.146226 | 0.156425 | 0.100559 | 0.073743 | 0.678212 | 0.678212 | 0.650279 | 0.646927 | 0.646927 | 0.604469 | 0 | 0 | 0.233842 | 1,377 | 37 | 114 | 37.216216 | 0.848341 | 0.015251 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.038462 | 0.115385 | 0.423077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
2dc155cb300189b73bfa24cb441cd6949aac4292 | 99 | py | Python | FetchStockPricesAndIndicators/config.py | Snowflake-Labs/sfguide-ExternalFunctions | cb38a3e18076b467c1cb79c7e59766b1be03f638 | [
"Apache-2.0"
] | 14 | 2020-12-04T18:01:28.000Z | 2021-11-02T12:13:09.000Z | FetchStockPricesAndIndicators/config.py | Snowflake-Labs/sfguide-ExternalFunctions | cb38a3e18076b467c1cb79c7e59766b1be03f638 | [
"Apache-2.0"
] | 1 | 2020-12-07T18:36:07.000Z | 2021-01-25T20:35:54.000Z | FetchStockPricesAndIndicators/config.py | Snowflake-Labs/sfguide-ExternalFunctions | cb38a3e18076b467c1cb79c7e59766b1be03f638 | [
"Apache-2.0"
] | 10 | 2020-12-10T06:22:15.000Z | 2022-02-22T01:34:22.000Z | class FinnHubAPI:
TOKEN="yourTokenHere"
# Get a FinHubb API from
# https://finnhub.io/ | 19.8 | 28 | 0.656566 | 12 | 99 | 5.416667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232323 | 99 | 5 | 29 | 19.8 | 0.855263 | 0.424242 | 0 | 0 | 0 | 0 | 0.236364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 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 |
2dca07fb4478db7525d6c199ec37dbf3667b740d | 937 | py | Python | geodjango/world/migrations/0003_auto_20191222_1056.py | Zhimin90/Chicago_Pothole_Tracker_Pub | 5d46e130e861fd8aaf01ab8e1b214f20d8d0c02b | [
"MIT"
] | 1 | 2020-04-02T16:59:58.000Z | 2020-04-02T16:59:58.000Z | geodjango/world/migrations/0003_auto_20191222_1056.py | Zhimin90/Chicago_Pothole_Tracker_Pub | 5d46e130e861fd8aaf01ab8e1b214f20d8d0c02b | [
"MIT"
] | 1 | 2021-09-22T18:31:46.000Z | 2021-09-22T18:31:46.000Z | geodjango/world/migrations/0003_auto_20191222_1056.py | Zhimin90/Chicago_Pothole_Tracker_Pub | 5d46e130e861fd8aaf01ab8e1b214f20d8d0c02b | [
"MIT"
] | null | null | null | # Generated by Django 2.0 on 2019-12-22 16:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('world', '0002_t_potholes'),
]
operations = [
migrations.AlterField(
model_name='t_potholes',
name='COMPLETION_DATE',
... | 27.558824 | 93 | 0.578442 | 93 | 937 | 5.655914 | 0.473118 | 0.085551 | 0.190114 | 0.220532 | 0.562738 | 0.562738 | 0.562738 | 0.403042 | 0.403042 | 0.403042 | 0 | 0.033898 | 0.307364 | 937 | 33 | 94 | 28.393939 | 0.776579 | 0.045891 | 0 | 0.592593 | 1 | 0 | 0.116592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2dd5c217c89509f42983ffe6d2b0f75ac6a643ec | 5,212 | py | Python | src/tests/architect_tests/test_planner.py | josephbajor/triage_NN | cbaee6e5a06e597c91fec372717d89a2b5f34fa5 | [
"MIT"
] | 160 | 2017-06-13T09:59:59.000Z | 2022-03-21T22:00:35.000Z | src/tests/architect_tests/test_planner.py | josephbajor/triage_NN | cbaee6e5a06e597c91fec372717d89a2b5f34fa5 | [
"MIT"
] | 803 | 2016-10-21T19:44:02.000Z | 2022-03-29T00:02:33.000Z | src/tests/architect_tests/test_planner.py | josephbajor/triage_NN | cbaee6e5a06e597c91fec372717d89a2b5f34fa5 | [
"MIT"
] | 59 | 2017-01-31T22:10:22.000Z | 2022-03-19T12:35:03.000Z | import datetime
from triage.component.architect import Planner
from triage.component.architect.feature_group_creator import FeatureGroup
def test_Planner():
matrix_set_definitions = [
{
"feature_start_time": datetime.datetime(1990, 1, 1, 0, 0),
"modeling_start_time": datetime.date... | 38.607407 | 88 | 0.512471 | 607 | 5,212 | 4.197694 | 0.197694 | 0.21978 | 0.259027 | 0.271978 | 0.613815 | 0.611068 | 0.540424 | 0.537677 | 0.536107 | 0.497253 | 0 | 0.097649 | 0.363392 | 5,212 | 134 | 89 | 38.895522 | 0.670283 | 0.034919 | 0 | 0.388889 | 0 | 0 | 0.134899 | 0 | 0 | 0 | 0 | 0 | 0.087302 | 1 | 0.007937 | false | 0 | 0.02381 | 0 | 0.031746 | 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 |
2de3e17c2cb3df19509f2e6aeb2b3ce407983468 | 149 | py | Python | nose2/tests/functional/support/lib/plugin_a.py | Metaswitch/nose2 | 1fdb46ef9eb279fb1f9b2321dc978977876e8230 | [
"BSD-2-Clause"
] | null | null | null | nose2/tests/functional/support/lib/plugin_a.py | Metaswitch/nose2 | 1fdb46ef9eb279fb1f9b2321dc978977876e8230 | [
"BSD-2-Clause"
] | null | null | null | nose2/tests/functional/support/lib/plugin_a.py | Metaswitch/nose2 | 1fdb46ef9eb279fb1f9b2321dc978977876e8230 | [
"BSD-2-Clause"
] | 1 | 2019-11-24T12:11:52.000Z | 2019-11-24T12:11:52.000Z | from nose2 import events
class PluginA(events.Plugin):
configSection = 'a'
def __init__(self):
self.a = self.config.as_int('a', 0)
| 18.625 | 43 | 0.651007 | 21 | 149 | 4.380952 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0.221477 | 149 | 7 | 44 | 21.285714 | 0.775862 | 0 | 0 | 0 | 0 | 0 | 0.013423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2dfbed0b4428675615d51607e6acf82ef204e50e | 478 | py | Python | analytics/urls.py | dehnert/zulip | f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5 | [
"Apache-2.0"
] | null | null | null | analytics/urls.py | dehnert/zulip | f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5 | [
"Apache-2.0"
] | 1 | 2019-11-02T09:06:05.000Z | 2019-11-02T09:06:05.000Z | analytics/urls.py | erinis-eligro/zulip-outcasts | 51153a6ce219370aee79bfe462f6e4fb956993d9 | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url
import analytics.views
i18n_urlpatterns = [
url(r'^activity$', analytics.views.get_activity,
name='analytics.views.get_activity'),
url(r'^realm_activity/(?P<realm>[\S]+)/$', analytics.views.get_realm_activity,
name='analytics.views.get_realm_activity'),
url(... | 34.142857 | 82 | 0.713389 | 62 | 478 | 5.274194 | 0.306452 | 0.299694 | 0.311927 | 0.238532 | 0.474006 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009569 | 0.125523 | 478 | 13 | 83 | 36.769231 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0.359833 | 0.338912 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 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 |
930339e13f408ad46d0504fac557ef8cf0a57a56 | 620 | py | Python | projects/DensePose/densepose/converters/__init__.py | mmabrouk/detectron2 | 158e395acdb8ca6ed6d488b43475f9ef9d200405 | [
"Apache-2.0"
] | 21,274 | 2019-10-10T17:50:46.000Z | 2022-03-31T17:58:45.000Z | projects/DensePose/densepose/converters/__init__.py | mmabrouk/detectron2 | 158e395acdb8ca6ed6d488b43475f9ef9d200405 | [
"Apache-2.0"
] | 3,253 | 2019-10-10T20:39:47.000Z | 2022-03-31T22:27:53.000Z | projects/DensePose/densepose/converters/__init__.py | mmabrouk/detectron2 | 158e395acdb8ca6ed6d488b43475f9ef9d200405 | [
"Apache-2.0"
] | 6,288 | 2019-10-10T18:00:27.000Z | 2022-03-31T21:22:58.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
from .hflip import HFlipConverter
from .to_mask import ToMaskConverter
from .to_chart_result import ToChartResultConverter, ToChartResultConverterWithConfidences
from .segm_to_mask import (
predictor_output_with_fine_and_coarse_segm_to_mask,
predictor_output_w... | 38.75 | 90 | 0.866129 | 82 | 620 | 5.97561 | 0.341463 | 0.153061 | 0.061224 | 0.177551 | 0.312245 | 0.15102 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098387 | 620 | 15 | 91 | 41.333333 | 0.876565 | 0.077419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.461538 | 0 | 0.461538 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
93090e0db3054d8dae613294c451bd5825045a1e | 3,088 | py | Python | operator_api/operator_api/crypto.py | liquidity-network/nocust-hub | 76f49f9b8a6c264fcbe9e0c110e98031d463c0a8 | [
"MIT"
] | 1 | 2021-08-04T06:09:46.000Z | 2021-08-04T06:09:46.000Z | operator_api/operator_api/crypto.py | liquidity-network/nocust-hub | 76f49f9b8a6c264fcbe9e0c110e98031d463c0a8 | [
"MIT"
] | 8 | 2020-11-01T19:48:21.000Z | 2022-02-10T14:12:25.000Z | operator_api/operator_api/crypto.py | liquidity-network/nocust-hub | 76f49f9b8a6c264fcbe9e0c110e98031d463c0a8 | [
"MIT"
] | 3 | 2020-11-01T15:59:56.000Z | 2021-09-16T07:18:18.000Z | import bitcoin
import random
from eth_utils import keccak, decode_hex, int_to_big_endian, big_endian_to_int, encode_hex, remove_0x_prefix, is_hex
from ecdsa import SigningKey, SECP256k1
def uint512(x):
return zfill(unsigned_int_to_bytes(int(x)), 64)
def uint256(x):
return zfill(unsigned_int_to_bytes(int(x)... | 22.874074 | 116 | 0.692034 | 513 | 3,088 | 3.879142 | 0.231969 | 0.030151 | 0.040201 | 0.042211 | 0.256281 | 0.160804 | 0.117588 | 0.068342 | 0.068342 | 0 | 0 | 0.04293 | 0.177785 | 3,088 | 134 | 117 | 23.044776 | 0.740843 | 0.018135 | 0 | 0.026667 | 0 | 0 | 0.027063 | 0.006931 | 0 | 0 | 0 | 0 | 0.026667 | 1 | 0.373333 | false | 0 | 0.053333 | 0.293333 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
93142ced2f885d7147cedac17b0eda29617b93a7 | 65 | py | Python | mmdet3d/models/fusion_layers/__init__.py | BB88Lee/mmdetection3d | 62aeeadf70ac1229c595e3a4fe09d8a49df808f1 | [
"Apache-2.0"
] | 136 | 2021-06-03T06:37:56.000Z | 2022-03-29T13:29:03.000Z | mmdet3d/models/fusion_layers/__init__.py | BB88Lee/mmdetection3d | 62aeeadf70ac1229c595e3a4fe09d8a49df808f1 | [
"Apache-2.0"
] | 38 | 2021-06-05T12:41:30.000Z | 2022-03-23T07:31:28.000Z | mmdet3d/models/fusion_layers/__init__.py | BB88Lee/mmdetection3d | 62aeeadf70ac1229c595e3a4fe09d8a49df808f1 | [
"Apache-2.0"
] | 15 | 2021-04-23T01:13:28.000Z | 2022-03-27T11:15:25.000Z | from .point_fusion import PointFusion
__all__ = ['PointFusion']
| 16.25 | 37 | 0.784615 | 7 | 65 | 6.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123077 | 65 | 3 | 38 | 21.666667 | 0.807018 | 0 | 0 | 0 | 0 | 0 | 0.169231 | 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 |
932a415cb941d58fb5af7cebd188d1ee857650ff | 254 | py | Python | utils/WindowDATA.py | AngeloXD13/Simple_ATM_Interface | 4ca64c085a21c90acdd2d98b3064a266920cfffa | [
"MIT"
] | null | null | null | utils/WindowDATA.py | AngeloXD13/Simple_ATM_Interface | 4ca64c085a21c90acdd2d98b3064a266920cfffa | [
"MIT"
] | null | null | null | utils/WindowDATA.py | AngeloXD13/Simple_ATM_Interface | 4ca64c085a21c90acdd2d98b3064a266920cfffa | [
"MIT"
] | null | null | null | class WindowDatas():
def __init__(self):
self.previousWindow = None
self.nextWindow = None
self.finalWindow = None
self.accountDATA = None
self.actions= None
self.show= True
self.database = None | 28.222222 | 34 | 0.598425 | 26 | 254 | 5.692308 | 0.538462 | 0.27027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.322835 | 254 | 9 | 35 | 28.222222 | 0.860465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 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 |
9351a62d93ef7feca971287259a384d0f4dcbdc1 | 277 | py | Python | ai/STA/Tactic/Stop.py | wonwon0/RobocupStrategyIA | 891028f616d476b05b23b40924d7c99502a718e3 | [
"MIT"
] | null | null | null | ai/STA/Tactic/Stop.py | wonwon0/RobocupStrategyIA | 891028f616d476b05b23b40924d7c99502a718e3 | [
"MIT"
] | null | null | null | ai/STA/Tactic/Stop.py | wonwon0/RobocupStrategyIA | 891028f616d476b05b23b40924d7c99502a718e3 | [
"MIT"
] | null | null | null | # Under MIT license, see LICENSE.txt
from .Tactic import Tactic
from . tactic_constants import Flags
class Stop(Tactic):
def __init__(self, game_state, player_id, *args, **kwargs):
super().__init__(game_state, player_id)
self.status_flag = Flags.SUCCESS
| 25.181818 | 63 | 0.718412 | 38 | 277 | 4.868421 | 0.657895 | 0.108108 | 0.162162 | 0.183784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184116 | 277 | 10 | 64 | 27.7 | 0.818584 | 0.122744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
93528bcd1e6ed11d23d81ef908b594ef5d78c89b | 422 | py | Python | src/testing/TestON/lib/updatedriver/fvtadd.py | securedataplane/preacher | 2f76581de47036e79cd6e1183948c88b35ce4950 | [
"MIT"
] | 1 | 2020-07-23T08:06:44.000Z | 2020-07-23T08:06:44.000Z | src/testing/TestON/lib/updatedriver/fvtadd.py | securedataplane/preacher | 2f76581de47036e79cd6e1183948c88b35ce4950 | [
"MIT"
] | null | null | null | src/testing/TestON/lib/updatedriver/fvtadd.py | securedataplane/preacher | 2f76581de47036e79cd6e1183948c88b35ce4950 | [
"MIT"
] | null | null | null | class FVTADD :
def __init__(self):
self.default = ''
def runTest(self,self) :
return TemplateTest.runTest(self)
def tearDown(self,self) :
return TemplateTest.tearDown(self)
def setUp(self,self) :
return TemplateTest.setUp(self)
def chkSetUpCondition(self,self,fv,... | 24.823529 | 76 | 0.675355 | 53 | 422 | 5.188679 | 0.320755 | 0.145455 | 0.152727 | 0.283636 | 0.16 | 0.16 | 0.16 | 0.16 | 0 | 0 | 0 | 0 | 0.220379 | 422 | 16 | 77 | 26.375 | 0.835866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.454545 | false | 0 | 0 | 0.363636 | 0.909091 | 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 |
935b31332c3c700a5959adebcf2982d2a6481509 | 232 | py | Python | training/Leetcode/380.py | voleking/ICPC | fc2cf408fa2607ad29b01eb00a1a212e6d0860a5 | [
"MIT"
] | 68 | 2017-10-08T04:44:23.000Z | 2019-08-06T20:15:02.000Z | training/Leetcode/380.py | voleking/ICPC | fc2cf408fa2607ad29b01eb00a1a212e6d0860a5 | [
"MIT"
] | null | null | null | training/Leetcode/380.py | voleking/ICPC | fc2cf408fa2607ad29b01eb00a1a212e6d0860a5 | [
"MIT"
] | 18 | 2017-05-31T02:52:23.000Z | 2019-07-05T09:18:34.000Z | from functools import reduce
class Solution:
def findTheDifference(self, s, t):
"""
:type s: str
:type t: str
:rtype: str
"""
return chr(reduce(lambda x, y: x ^ ord(y), s + t, 0))
| 23.2 | 61 | 0.512931 | 31 | 232 | 3.83871 | 0.677419 | 0.033613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006711 | 0.357759 | 232 | 9 | 62 | 25.777778 | 0.791946 | 0.159483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9375ab00ba5c79d7e2c56510f35000c3f25585ca | 105 | py | Python | Project_Euler/problem13.py | csixteen/HackerRank | 3ef6fa48599341f481b9e266c69df2d449a7b313 | [
"MIT"
] | 4 | 2018-04-19T20:32:54.000Z | 2020-04-21T12:28:00.000Z | Project_Euler/problem13.py | csixteen/HackerRank | 3ef6fa48599341f481b9e266c69df2d449a7b313 | [
"MIT"
] | null | null | null | Project_Euler/problem13.py | csixteen/HackerRank | 3ef6fa48599341f481b9e266c69df2d449a7b313 | [
"MIT"
] | null | null | null | n = int(input())
res = 0
for i in range(n):
res += int((input().strip())[:25])
print(str(res)[:10])
| 15 | 38 | 0.533333 | 19 | 105 | 2.947368 | 0.736842 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05814 | 0.180952 | 105 | 6 | 39 | 17.5 | 0.593023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
877e9d0ceab6040c857094c0b8f8359064ef39b9 | 107 | py | Python | operator/test_operator.py | Carglglz/micropython-lib | 07102c56aa1087b97ee313cedc1d89fd20452e11 | [
"PSF-2.0"
] | 2 | 2021-02-24T13:59:02.000Z | 2021-04-06T22:25:03.000Z | operator/test_operator.py | Carglglz/micropython-lib | 07102c56aa1087b97ee313cedc1d89fd20452e11 | [
"PSF-2.0"
] | null | null | null | operator/test_operator.py | Carglglz/micropython-lib | 07102c56aa1087b97ee313cedc1d89fd20452e11 | [
"PSF-2.0"
] | 3 | 2021-02-24T12:16:11.000Z | 2022-01-04T08:35:59.000Z | import operator
class A: pass
a = A()
a.name = "foo"
f = operator.attrgetter('name')
assert f(a) == "foo"
| 13.375 | 31 | 0.635514 | 18 | 107 | 3.777778 | 0.555556 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17757 | 107 | 7 | 32 | 15.285714 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0.093458 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | false | 0.166667 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
8782e035420767b2fe93311fae828f5ced1260aa | 172 | py | Python | settings.py | NekoSarada1101/twitter-wordcloud-generator | 67607ef4bdce0d474008c9a8afc45e5f7043143b | [
"MIT"
] | null | null | null | settings.py | NekoSarada1101/twitter-wordcloud-generator | 67607ef4bdce0d474008c9a8afc45e5f7043143b | [
"MIT"
] | 1 | 2021-01-24T15:53:59.000Z | 2021-01-25T06:13:27.000Z | settings.py | NekoSarada1101/twitter-wordcloud-generator | 67607ef4bdce0d474008c9a8afc45e5f7043143b | [
"MIT"
] | null | null | null | BEARER_KEY = "BEARER_KEY"
MECAB_DICT_PATH = "MECAB_DICT_PATH" # MeCabの辞書ファイルへのパス
FONT_PATH = "./font/ヒラギノ角ゴシック W3.ttc" # WordCloud用のフォントファイルへのパス
TWEET_COUNT = 5 # * 100
| 34.4 | 64 | 0.761628 | 22 | 172 | 5.590909 | 0.681818 | 0.146341 | 0.211382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033557 | 0.133721 | 172 | 4 | 65 | 43 | 0.791946 | 0.267442 | 0 | 0 | 0 | 0 | 0.393443 | 0 | 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 |
87869aac00c79c014cf9620d2ed6c985258b0109 | 8,018 | py | Python | scrapers/scrape_sh.py | zukunft/covid_19 | 458cc0369aa5ffe2ba738b8048416784c402ee3e | [
"CC-BY-4.0"
] | null | null | null | scrapers/scrape_sh.py | zukunft/covid_19 | 458cc0369aa5ffe2ba738b8048416784c402ee3e | [
"CC-BY-4.0"
] | null | null | null | scrapers/scrape_sh.py | zukunft/covid_19 | 458cc0369aa5ffe2ba738b8048416784c402ee3e | [
"CC-BY-4.0"
] | null | null | null | #!/usr/bin/env python3
import scrape_common as sc
print('SH')
# A JavaScript content loaded from https://sh.ch/CMS/Webseite/Kanton-Schaffhausen/Beh-rde/Verwaltung/Departement-des-Innern/Gesundheitsamt-3209198-DE.html
d = sc.download('https://sh.ch/CMS/content.jsp?contentid=3209198&language=DE&_=1584807070095')
sc.tim... | 178.177778 | 5,820 | 0.726989 | 1,232 | 8,018 | 4.694805 | 0.30763 | 0.010373 | 0.015041 | 0.020055 | 0.392289 | 0.356155 | 0.334544 | 0.306881 | 0.2787 | 0.263485 | 0 | 0.027321 | 0.08244 | 8,018 | 44 | 5,821 | 182.227273 | 0.758869 | 0.032926 | 0 | 0 | 0 | 0.25 | 0.567194 | 0.384387 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
878a4119c034db03676d68374dbd3bd7990c79cb | 216 | py | Python | priv/python/test/__init__.py | hnrkptrsn/erlport_python_example | 1484e24218ffeca4e91916f92b86657a08db987d | [
"BSD-3-Clause"
] | null | null | null | priv/python/test/__init__.py | hnrkptrsn/erlport_python_example | 1484e24218ffeca4e91916f92b86657a08db987d | [
"BSD-3-Clause"
] | null | null | null | priv/python/test/__init__.py | hnrkptrsn/erlport_python_example | 1484e24218ffeca4e91916f92b86657a08db987d | [
"BSD-3-Clause"
] | null | null | null | import random
import fortune
def example():
return random.random()
# Remember that the return value will be a unicode UTF-8
def myfortune():
f = fortune.get_random_fortune('priv/fortunes/fortunes')
return f
| 18 | 58 | 0.75 | 32 | 216 | 5 | 0.65625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005525 | 0.162037 | 216 | 11 | 59 | 19.636364 | 0.878453 | 0.25 | 0 | 0 | 0 | 0 | 0.1375 | 0.1375 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0.142857 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
879e0a0f0a7f318587a439d8da7d7990843f52b4 | 107 | py | Python | pyamg/relaxation/__init__.py | Alexey-Voronin/pyamg-1 | 59d35010e4bd660aae3526e8a206a42cb1a54bfa | [
"MIT"
] | null | null | null | pyamg/relaxation/__init__.py | Alexey-Voronin/pyamg-1 | 59d35010e4bd660aae3526e8a206a42cb1a54bfa | [
"MIT"
] | null | null | null | pyamg/relaxation/__init__.py | Alexey-Voronin/pyamg-1 | 59d35010e4bd660aae3526e8a206a42cb1a54bfa | [
"MIT"
] | null | null | null | """Relaxation methods"""
from .info import __doc__
__all__ = [s for s in dir() if not s.startswith('_')]
| 17.833333 | 53 | 0.672897 | 16 | 107 | 3.9375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168224 | 107 | 5 | 54 | 21.4 | 0.707865 | 0.168224 | 0 | 0 | 0 | 0 | 0.012048 | 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 |
e200020f48349e86ffef10cf892f1aef58d0142d | 1,375 | py | Python | setup.py | dhagrow/profig | ee10a8af030f7b387320e2a8d110f25e8b2395da | [
"MIT"
] | 16 | 2015-03-28T14:55:18.000Z | 2022-03-03T00:19:19.000Z | setup.py | dhagrow/profig | ee10a8af030f7b387320e2a8d110f25e8b2395da | [
"MIT"
] | 4 | 2019-10-24T14:38:49.000Z | 2021-09-07T20:40:07.000Z | setup.py | dhagrow/profig | ee10a8af030f7b387320e2a8d110f25e8b2395da | [
"MIT"
] | 1 | 2017-08-20T09:49:25.000Z | 2017-08-20T09:49:25.000Z | #!/usr/bin/env python
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import profig
BASE_DIR = os.path.dirname(__file__)
README_PATH = os.path.join(BASE_DIR, 'README.rst')
DESCRIPTION = open(README_PATH).read()
setup(
name='profig',
version=profig.__v... | 31.25 | 64 | 0.627636 | 145 | 1,375 | 5.793103 | 0.496552 | 0.22619 | 0.297619 | 0.247619 | 0.127381 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017908 | 0.228364 | 1,375 | 43 | 65 | 31.976744 | 0.773798 | 0.014545 | 0 | 0 | 0 | 0 | 0.471935 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.131579 | 0 | 0.131579 | 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 |
35585f1e2cf1be3e67fa916851cf16cbd2bec8c1 | 311 | py | Python | app/users/api/serializers.py | DakobedBard/Bookings | 6738fd52d2bcd5ab16228b7bfe9c06fee3ee49aa | [
"MIT"
] | null | null | null | app/users/api/serializers.py | DakobedBard/Bookings | 6738fd52d2bcd5ab16228b7bfe9c06fee3ee49aa | [
"MIT"
] | null | null | null | app/users/api/serializers.py | DakobedBard/Bookings | 6738fd52d2bcd5ab16228b7bfe9c06fee3ee49aa | [
"MIT"
] | null | null | null | from rest_framework import serializers
from users.models import Host, Guest
class GuestSerializer(serializers.ModelSerializer):
class Meta:
model = Guest
fields = '__all__'
class HostSerializer(serializers.ModelSerializer):
class Meta:
model = Host
fields = '__all__'
| 22.214286 | 51 | 0.70418 | 31 | 311 | 6.774194 | 0.548387 | 0.247619 | 0.295238 | 0.333333 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231511 | 311 | 13 | 52 | 23.923077 | 0.878661 | 0 | 0 | 0.4 | 0 | 0 | 0.045016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 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 |
355a68a3c38d59a404b83f0584fa684a0dd27b6b | 40 | py | Python | adversarial_robustness/datasets/__init__.py | dtak/adversarial_robustness | eb1e3af5301789cc6e7562750145ab91f80dcca7 | [
"MIT"
] | 50 | 2017-12-07T02:46:38.000Z | 2022-02-12T08:06:27.000Z | adversarial_robustness/datasets/__init__.py | dtak/adversarial_robustness | eb1e3af5301789cc6e7562750145ab91f80dcca7 | [
"MIT"
] | 4 | 2018-03-09T04:10:36.000Z | 2019-05-06T10:00:11.000Z | adversarial_robustness/datasets/__init__.py | dtak/adversarial_robustness | eb1e3af5301789cc6e7562750145ab91f80dcca7 | [
"MIT"
] | 13 | 2018-05-02T08:32:26.000Z | 2021-12-28T11:16:07.000Z | __all__ = ['mnist', 'notmnist', 'svhn']
| 20 | 39 | 0.6 | 4 | 40 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 40 | 1 | 40 | 40 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0.425 | 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 |
3581c945b6cd4f2028980af4bcb034ddbeaee534 | 307 | py | Python | textgenrnn/run_model.py | demo835/textgenrnn | bf5a57c09a2ccec080ead52ffad33f219bd38cfe | [
"MIT"
] | null | null | null | textgenrnn/run_model.py | demo835/textgenrnn | bf5a57c09a2ccec080ead52ffad33f219bd38cfe | [
"MIT"
] | null | null | null | textgenrnn/run_model.py | demo835/textgenrnn | bf5a57c09a2ccec080ead52ffad33f219bd38cfe | [
"MIT"
] | null | null | null | #! python3
from textgenrnn import textgenrnn
textgen = textgenrnn(weights_path='gaunt_weights.hdf5', vocab_path='gaunt_vocab.json', config_path='gaunt_config.json')
textgen.generate_samples(temperatures=[0.1, 0.2, 0.3], max_gen_length=500)
# textgen.generate_to_file('generated.txt', max_gen_length=1000) | 38.375 | 119 | 0.801303 | 46 | 307 | 5.065217 | 0.608696 | 0.11588 | 0.103004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052265 | 0.065147 | 307 | 8 | 120 | 38.375 | 0.759582 | 0.234528 | 0 | 0 | 1 | 0 | 0.217949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
35bee0dab6564aeebd86827daf4311898db81ec2 | 184 | py | Python | project_name/urls.py | cirlabs/django-project-template | 8d96cfaff18ef7958591387ea1d1df656d2bc2ab | [
"MIT",
"Unlicense"
] | 15 | 2015-03-06T16:21:27.000Z | 2020-03-25T02:21:40.000Z | project_name/urls.py | josnin/django-project-template | 8d96cfaff18ef7958591387ea1d1df656d2bc2ab | [
"MIT",
"Unlicense"
] | 60 | 2015-01-08T20:36:46.000Z | 2016-04-19T00:21:59.000Z | project_name/urls.py | cirlabs/django-project-template | 8d96cfaff18ef7958591387ea1d1df656d2bc2ab | [
"MIT",
"Unlicense"
] | 12 | 2015-03-01T03:33:20.000Z | 2022-03-30T23:35:11.000Z | from django.contrib import admin
from django.conf.urls import patterns, include, url
admin.autodiscover()
urlpatterns = patterns('',
# Admin
(r'^admin/', admin.site.urls),
)
| 18.4 | 51 | 0.706522 | 23 | 184 | 5.652174 | 0.608696 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157609 | 184 | 9 | 52 | 20.444444 | 0.83871 | 0.027174 | 0 | 0 | 0 | 0 | 0.039548 | 0 | 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 |
35c32710c2d120f84df9439fb0e2288578d6ff2a | 309 | py | Python | datalad_osf/osfclient/osfclient/models/__init__.py | adswa/datalad-osf-2 | 25988f898ffc6f489c0855933136f39f79cf8c65 | [
"BSD-3-Clause"
] | 80 | 2017-10-24T05:06:00.000Z | 2022-02-20T18:44:17.000Z | datalad_osf/osfclient/osfclient/models/__init__.py | adswa/datalad-osf-2 | 25988f898ffc6f489c0855933136f39f79cf8c65 | [
"BSD-3-Clause"
] | 133 | 2017-03-07T22:36:54.000Z | 2017-10-24T04:43:57.000Z | datalad_osf/osfclient/osfclient/models/__init__.py | adswa/datalad-osf-2 | 25988f898ffc6f489c0855933136f39f79cf8c65 | [
"BSD-3-Clause"
] | 37 | 2017-10-26T03:34:17.000Z | 2021-11-17T05:24:10.000Z | """Model OSF entities.
Users should not have to instantiate classes from here, instead they should
use `osfclient.OSF()` to access the OSF.
"""
from .core import OSFCore
from .file import File
from .file import Folder
from .project import Project
from .session import OSFSession
from .storage import Storage
| 25.75 | 75 | 0.783172 | 46 | 309 | 5.26087 | 0.586957 | 0.066116 | 0.115702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152104 | 309 | 11 | 76 | 28.090909 | 0.923664 | 0.443366 | 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 |
35c3f69b32c67376d0c0eed43825629cc18230c7 | 540 | py | Python | amu_bachelor_thesis_app/views/auth_views.py | remes2000/amu_bachelor_thesis | 9e0a97f5e28ab65d7953e38dedbab8fe8f04f6cd | [
"MIT"
] | null | null | null | amu_bachelor_thesis_app/views/auth_views.py | remes2000/amu_bachelor_thesis | 9e0a97f5e28ab65d7953e38dedbab8fe8f04f6cd | [
"MIT"
] | null | null | null | amu_bachelor_thesis_app/views/auth_views.py | remes2000/amu_bachelor_thesis | 9e0a97f5e28ab65d7953e38dedbab8fe8f04f6cd | [
"MIT"
] | null | null | null | from django.contrib.auth.decorators import login_required
from django.http import HttpResponse, HttpResponseRedirect
from django.urls import reverse
from amu_bachelor_thesis_app.models import User
@login_required
def login_redirect(request):
if not request.user.is_authenticated:
return HttpResponse('Unau... | 31.764706 | 77 | 0.801852 | 65 | 540 | 6.476923 | 0.538462 | 0.071259 | 0.12114 | 0.171021 | 0.23753 | 0.23753 | 0 | 0 | 0 | 0 | 0 | 0.006342 | 0.124074 | 540 | 16 | 78 | 33.75 | 0.883721 | 0 | 0 | 0 | 0 | 0 | 0.128253 | 0.105948 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
35cbdb886d2da0ba36553593e2cf231f34246352 | 260 | py | Python | linza/__init__.py | wallarelvo/linza | a27b9f3c565d145b12d93898765e3d8f7add1cd0 | [
"Apache-2.0"
] | 1 | 2015-02-22T18:03:48.000Z | 2015-02-22T18:03:48.000Z | linza/__init__.py | wallarelvo/linza | a27b9f3c565d145b12d93898765e3d8f7add1cd0 | [
"Apache-2.0"
] | null | null | null | linza/__init__.py | wallarelvo/linza | a27b9f3c565d145b12d93898765e3d8f7add1cd0 | [
"Apache-2.0"
] | 2 | 2017-02-10T18:28:47.000Z | 2020-02-25T03:19:08.000Z |
__all__ = ["Planner", "Linza", "nn_roadmap", "Visualizer", "grid_graph",
"PositiveSine"]
from planner import Planner
from linza import Linza
from visualizer import Visualizer
from graphs import nn_roadmap, grid_graph
from sine import PositiveSine
| 26 | 72 | 0.757692 | 32 | 260 | 5.90625 | 0.40625 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161538 | 260 | 9 | 73 | 28.888889 | 0.866972 | 0 | 0 | 0 | 0 | 0 | 0.208494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.714286 | 0 | 0.714286 | 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 |
35dcb29d4cc63db21b565dbca9e09344a24922ac | 319 | py | Python | exercicios/ex004.py | Siqueira-Vinicius/Python | bd1f7e2bcdfd5481724d32db387f51636bb4ad60 | [
"MIT"
] | null | null | null | exercicios/ex004.py | Siqueira-Vinicius/Python | bd1f7e2bcdfd5481724d32db387f51636bb4ad60 | [
"MIT"
] | null | null | null | exercicios/ex004.py | Siqueira-Vinicius/Python | bd1f7e2bcdfd5481724d32db387f51636bb4ad60 | [
"MIT"
] | null | null | null | x = input('Digite algo:')
print('o tipo da variavel é', type(x))
print('é apenas numerico?', x.isnumeric())
print('é apenas alfabetico?', x.isalpha())
print('é apenas maiusculo?', x.isupper())
print('é apenas minusculo?', x.islower())
print('é numerico e alfabetico?', x.isalnum())
print('Só tem espaços?', x.isspace()) | 39.875 | 46 | 0.683386 | 49 | 319 | 4.44898 | 0.530612 | 0.137615 | 0.220183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106583 | 319 | 8 | 47 | 39.875 | 0.764912 | 0 | 0 | 0 | 0 | 0 | 0.459375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.875 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
35e0ee04c80e3610d8ef7bfc588b5f4ce4d30518 | 492 | py | Python | salesforce_api/utils/misc.py | dont-panic-llc/python-salesforce-api | 793011ec32248f7ccf37339c0c0f5087980b9270 | [
"MIT"
] | null | null | null | salesforce_api/utils/misc.py | dont-panic-llc/python-salesforce-api | 793011ec32248f7ccf37339c0c0f5087980b9270 | [
"MIT"
] | null | null | null | salesforce_api/utils/misc.py | dont-panic-llc/python-salesforce-api | 793011ec32248f7ccf37339c0c0f5087980b9270 | [
"MIT"
] | 1 | 2020-04-20T06:06:16.000Z | 2020-04-20T06:06:16.000Z | import distutils.util
import requests
import hashlib
def parse_bool(input_value: str) -> bool:
return distutils.util.strtobool(input_value)
def get_session(session: requests.Session = None):
return session if isinstance(session, requests.Session) else requests.Session()
def hash_list(input_list... | 27.333333 | 84 | 0.70122 | 63 | 492 | 5.333333 | 0.428571 | 0.107143 | 0.130952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002577 | 0.211382 | 492 | 17 | 85 | 28.941176 | 0.863402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ea2a7a6994e778aadabb6ba539f5c811dc530594 | 458 | py | Python | run.py | nagataaaas/dinagon | a41f647ebe3feafedce1e68902ecb589999219ed | [
"MIT"
] | 1 | 2021-06-14T09:10:46.000Z | 2021-06-14T09:10:46.000Z | run.py | nagataaaas/dinagon | a41f647ebe3feafedce1e68902ecb589999219ed | [
"MIT"
] | 13 | 2021-06-21T08:59:57.000Z | 2022-01-23T16:29:38.000Z | run.py | nagataaaas/dinagon | a41f647ebe3feafedce1e68902ecb589999219ed | [
"MIT"
] | null | null | null | import uvicorn
from app.config import HOST, PORT, IS_DEV
from app.models import create_database, clear_database
from testing.load_fixture import load
from sqlalchemy.exc import IntegrityError
if __name__ == '__main__':
# clear_database()
# create_database()
# if IS_DEV:
# try:
# load(... | 25.444444 | 83 | 0.674672 | 58 | 458 | 5.068966 | 0.534483 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002833 | 0.229258 | 458 | 17 | 84 | 26.941176 | 0.830028 | 0.237991 | 0 | 0 | 0 | 0 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.714286 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ea651a073123fe10b9a0e8f8dbfc6eda92fbdb68 | 438 | py | Python | full_cost/imag/migrations/0005_auto_20200122_1614.py | CEMES-CNRS/full_cost_git | 600409b49db123db82e7f66462395294dde320ce | [
"CECILL-B"
] | null | null | null | full_cost/imag/migrations/0005_auto_20200122_1614.py | CEMES-CNRS/full_cost_git | 600409b49db123db82e7f66462395294dde320ce | [
"CECILL-B"
] | null | null | null | full_cost/imag/migrations/0005_auto_20200122_1614.py | CEMES-CNRS/full_cost_git | 600409b49db123db82e7f66462395294dde320ce | [
"CECILL-B"
] | null | null | null | # Generated by Django 2.2.8 on 2020-01-22 15:14
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('imag', '0004_auto_20200122_1418'),
]
operations = [
migrations.RemoveField(
model_name='historicalrecord',
name='subexp',
... | 19.909091 | 47 | 0.56621 | 42 | 438 | 5.785714 | 0.714286 | 0.17284 | 0.213992 | 0.246914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104377 | 0.321918 | 438 | 21 | 48 | 20.857143 | 0.713805 | 0.10274 | 0 | 0.4 | 1 | 0 | 0.15601 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ea78da9568d3f117eb796bb5b388d91ada83b271 | 200 | py | Python | humans_api/apps/match/urls.py | isz/humans-api | b6a680f2a2f96f41d3773de598da0e790ece0764 | [
"BSD-3-Clause"
] | null | null | null | humans_api/apps/match/urls.py | isz/humans-api | b6a680f2a2f96f41d3773de598da0e790ece0764 | [
"BSD-3-Clause"
] | 5 | 2021-03-19T01:59:53.000Z | 2022-01-13T02:35:36.000Z | humans_api/apps/match/urls.py | isz/humans-api | b6a680f2a2f96f41d3773de598da0e790ece0764 | [
"BSD-3-Clause"
] | null | null | null | from django.urls import path
from rest_framework import routers
from . import views
urlpatterns = [
path(r"", views.MatchListView.as_view()),
path(r"<int:pk>/", views.MatchView.as_view()),
] | 22.222222 | 50 | 0.71 | 28 | 200 | 4.964286 | 0.607143 | 0.071942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145 | 200 | 9 | 51 | 22.222222 | 0.812866 | 0 | 0 | 0 | 0 | 0 | 0.044776 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 |
eaa14de049d6719899bb2b5982901501b303900b | 234 | py | Python | django-server/fras/attendance/serializers/CapturedFrameSerializer.py | ArleneAndrews/Facial-Recognition-Attendance-System | 104d17e56af87358974331ef491949b557ab2f01 | [
"MIT"
] | 52 | 2019-01-29T14:46:17.000Z | 2022-01-14T16:11:37.000Z | django-server/fras/attendance/serializers/CapturedFrameSerializer.py | etrigaen47/Facial-Recognition-Attendance-System | ad0bd18cf9582cc12002baf8c92f6638f632c46e | [
"MIT"
] | 13 | 2018-11-04T12:29:48.000Z | 2020-02-11T23:47:35.000Z | django-server/fras/attendance/serializers/CapturedFrameSerializer.py | etrigaen47/Facial-Recognition-Attendance-System | ad0bd18cf9582cc12002baf8c92f6638f632c46e | [
"MIT"
] | 16 | 2019-03-07T11:07:16.000Z | 2021-08-13T07:19:28.000Z | from rest_framework import serializers
from attendance.models.CapturedFrame import CapturedFrame
class CapturedFrameSerializer(serializers.ModelSerializer):
class Meta:
model = CapturedFrame
fields = '__all__'
| 21.272727 | 59 | 0.773504 | 21 | 234 | 8.380952 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 234 | 10 | 60 | 23.4 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0.029915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
576f17ecb141a3f161e50137110468d8282a86bf | 3,011 | py | Python | se34euca/lib/EucaUITestLib_IP_Address.py | eucalyptus/se34euca | af5da36754fccca84b7f260ba7605b8fdc30fa55 | [
"BSD-2-Clause"
] | 8 | 2015-01-08T21:06:08.000Z | 2019-10-26T13:17:16.000Z | se34euca/lib/EucaUITestLib_IP_Address.py | eucalyptus/se34euca | af5da36754fccca84b7f260ba7605b8fdc30fa55 | [
"BSD-2-Clause"
] | null | null | null | se34euca/lib/EucaUITestLib_IP_Address.py | eucalyptus/se34euca | af5da36754fccca84b7f260ba7605b8fdc30fa55 | [
"BSD-2-Clause"
] | 7 | 2016-08-31T07:02:21.000Z | 2020-07-18T00:10:36.000Z | from se34euca.lib.EucaUITestLib_Base import *
class EucaUITestLib_IP_Address(EucaUITestLib_Base):
def test_ui_allocate_ip_address(self, ip_count):
print
print "Started Test: Allocate IP Address: IP_COUNT " + str(ip_count)
print
self.click_element_by_link_text("Dashboard")
... | 34.609195 | 86 | 0.660578 | 400 | 3,011 | 4.6525 | 0.2125 | 0.101558 | 0.146158 | 0.164428 | 0.511553 | 0.42504 | 0.31166 | 0.262225 | 0.229984 | 0.229984 | 0 | 0.004893 | 0.253404 | 3,011 | 86 | 87 | 35.011628 | 0.822954 | 0 | 0 | 0.5 | 0 | 0 | 0.287802 | 0.033979 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.013889 | null | null | 0.430556 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
577e485407058af16724b536b98c0eebdac167ea | 269 | py | Python | simulation/models/env_db/ci_roads/traffic_island.py | LeonardII/KitCarFork | b2802c5b08cc8250446ce3731cb622af064db4ca | [
"MIT"
] | 13 | 2020-06-30T17:18:28.000Z | 2021-07-20T16:55:35.000Z | simulation/models/env_db/ci_roads/traffic_island.py | LeonardII/KitCarFork | b2802c5b08cc8250446ce3731cb622af064db4ca | [
"MIT"
] | 1 | 2020-11-10T20:15:42.000Z | 2020-12-25T18:27:56.000Z | simulation/models/env_db/ci_roads/traffic_island.py | LeonardII/KitCarFork | b2802c5b08cc8250446ce3731cb622af064db4ca | [
"MIT"
] | 3 | 2020-07-20T09:09:08.000Z | 2021-07-20T17:00:37.000Z | from simulation.utils.road.road import Road
from simulation.utils.road.sections import StraightRoad, TrafficIsland
road = Road()
road.append(StraightRoad(length=3))
road.append(TrafficIsland(zebra_marking_type=TrafficIsland.LINES))
road.append(StraightRoad(length=2))
| 33.625 | 70 | 0.832714 | 35 | 269 | 6.342857 | 0.457143 | 0.108108 | 0.171171 | 0.207207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007905 | 0.05948 | 269 | 7 | 71 | 38.428571 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
577ee228f592900c99d73bd8d1baf5b93fbdf545 | 656 | py | Python | python_pass.py | aliradi3/python-pass | 562d8164f901fec104ce72441d274d07a1fe7b4c | [
"MIT"
] | null | null | null | python_pass.py | aliradi3/python-pass | 562d8164f901fec104ce72441d274d07a1fe7b4c | [
"MIT"
] | null | null | null | python_pass.py | aliradi3/python-pass | 562d8164f901fec104ce72441d274d07a1fe7b4c | [
"MIT"
] | null | null | null | """
Instructions:
1. Create a class named ReversedString that inherits from StringOperations class
2. Implement the function reverse
3. reverse function should be a one liner function that returns the reverse string to_be_reversed
4. Instantiate the class ReversedString
5. Print to show your function implementation re... | 27.333333 | 97 | 0.76372 | 87 | 656 | 5.666667 | 0.54023 | 0.032454 | 0.097363 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01087 | 0.158537 | 656 | 23 | 98 | 28.521739 | 0.882246 | 0.536585 | 0 | 0 | 0 | 0 | 0.060811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.571429 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5783b7eb00929c612e2eb71e5fc68e44330f8425 | 174 | py | Python | app.py | jepster/python_for_web | ee4fa0922e54427521b93f2dd905ee92b462ce6f | [
"MIT"
] | null | null | null | app.py | jepster/python_for_web | ee4fa0922e54427521b93f2dd905ee92b462ce6f | [
"MIT"
] | null | null | null | app.py | jepster/python_for_web | ee4fa0922e54427521b93f2dd905ee92b462ce6f | [
"MIT"
] | null | null | null | from flask import Flask, request
app = Flask(__name__)
"""
Run like this:
> flask run --host 0.0.0.0 --port 3000
"""
@app.route('/')
def home():
return 'hello world!' | 14.5 | 38 | 0.626437 | 27 | 174 | 3.888889 | 0.703704 | 0.057143 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056738 | 0.189655 | 174 | 12 | 39 | 14.5 | 0.687943 | 0 | 0 | 0 | 0 | 0 | 0.115044 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5784aa445ed0f90d3f5d480f21462c433d6f4075 | 185 | py | Python | 001-math/001-Greatest Common Divisor/Python/Solution.py | raveerocks/problem-solving | 0d3980ac68e434500762ba09c501284846a3df51 | [
"MIT"
] | 1 | 2020-07-10T19:29:11.000Z | 2020-07-10T19:29:11.000Z | 001-math/001-Greatest Common Divisor/Python/Solution.py | raveerocks/problem-solving | 0d3980ac68e434500762ba09c501284846a3df51 | [
"MIT"
] | null | null | null | 001-math/001-Greatest Common Divisor/Python/Solution.py | raveerocks/problem-solving | 0d3980ac68e434500762ba09c501284846a3df51 | [
"MIT"
] | 1 | 2020-07-11T07:17:51.000Z | 2020-07-11T07:17:51.000Z | class Solution:
# @param A : integer
# @param B : integer
# @return an integer
def gcd(self,A, B):
if(B==0):
return A
return self.gcd(B,A%B)
| 20.555556 | 30 | 0.502703 | 27 | 185 | 3.444444 | 0.481481 | 0.043011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008547 | 0.367568 | 185 | 8 | 31 | 23.125 | 0.786325 | 0.302703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
57a798db617631067d2ae447d71f07fff528086c | 232 | py | Python | utils/templatetags/jsonify.py | bulv1ne/django_utils | bf19923dcfdff5c2655500e5b61962c479074d58 | [
"MIT"
] | 1 | 2017-05-05T11:57:26.000Z | 2017-05-05T11:57:26.000Z | utils/templatetags/jsonify.py | bulv1ne/django_utils | bf19923dcfdff5c2655500e5b61962c479074d58 | [
"MIT"
] | 2 | 2021-04-06T18:14:52.000Z | 2021-06-01T22:46:45.000Z | utils/templatetags/jsonify.py | bulv1ne/django-utils | bf19923dcfdff5c2655500e5b61962c479074d58 | [
"MIT"
] | null | null | null | import json
from django import template
from django.utils.safestring import mark_safe
register = template.Library()
@register.filter(is_safe=True)
def jsonify(obj, indent=0):
return mark_safe(json.dumps(obj, indent=indent))
| 19.333333 | 52 | 0.780172 | 34 | 232 | 5.235294 | 0.617647 | 0.11236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004902 | 0.12069 | 232 | 11 | 53 | 21.090909 | 0.867647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
57bdbb2a62c8a58448b5d8da7d9d80037df16631 | 739 | py | Python | core/projects/migrations/0005_auto_20211016_1626.py | Nikita-Filonov/lama_logger | 7b3f474ddf35685e6949ab00d7272d16c630295c | [
"Apache-2.0"
] | null | null | null | core/projects/migrations/0005_auto_20211016_1626.py | Nikita-Filonov/lama_logger | 7b3f474ddf35685e6949ab00d7272d16c630295c | [
"Apache-2.0"
] | null | null | null | core/projects/migrations/0005_auto_20211016_1626.py | Nikita-Filonov/lama_logger | 7b3f474ddf35685e6949ab00d7272d16c630295c | [
"Apache-2.0"
] | 1 | 2021-12-21T09:39:02.000Z | 2021-12-21T09:39:02.000Z | # Generated by Django 3.2.7 on 2021-10-16 16:26
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('projects', '0004_rename_last_updated_project_lastupdated'),
]
operations = [
migrations.RenameField(
model_name='projectsettings',
... | 25.482759 | 69 | 0.598106 | 66 | 739 | 6.439394 | 0.590909 | 0.148235 | 0.183529 | 0.211765 | 0.4 | 0.4 | 0.4 | 0.277647 | 0 | 0 | 0 | 0.036893 | 0.303112 | 739 | 28 | 70 | 26.392857 | 0.78835 | 0.060893 | 0 | 0.409091 | 1 | 0 | 0.265896 | 0.063584 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
57e9846f6dd730c9b6f417b346518e8d5a1c38d4 | 750 | py | Python | flask_modular_auth/__init__.py | fabian-rump/flask_modular_auth | 509def7b2cb366cba5d0d18187d99932c8ca00ef | [
"MIT"
] | null | null | null | flask_modular_auth/__init__.py | fabian-rump/flask_modular_auth | 509def7b2cb366cba5d0d18187d99932c8ca00ef | [
"MIT"
] | null | null | null | flask_modular_auth/__init__.py | fabian-rump/flask_modular_auth | 509def7b2cb366cba5d0d18187d99932c8ca00ef | [
"MIT"
] | null | null | null | from .manager import AuthManager
from .abstract import AbstractAuthProvider, AbstractAuthEntity, AbstractUnauthenticatedEntity, AbstractPrivilege
from .privilege import AndPrivilege, RolePrivilege, AuthenticatedPrivilege
from .auth_providers import BasicAuthProvider, KeyBasedAuthProvider, SessionBasedAuthProvider
from ... | 34.090909 | 112 | 0.797333 | 49 | 750 | 11.979592 | 0.489796 | 0.129472 | 0.228279 | 0.286201 | 0.146508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130667 | 750 | 21 | 113 | 35.714286 | 0.900307 | 0 | 0 | 0 | 0 | 0 | 0.332 | 0.137333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 1 | 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 |
17bb696fe1f5a70b3168e3c06a9c22f80f617101 | 1,692 | py | Python | artifacts-corepy/artifacts_corepy/common/controller.py | WeBankPartners/wecube-plugins-artifacts | dd3b45648f9d40de83fae2b9b1bf8e8c82e90ccd | [
"Apache-2.0"
] | 22 | 2019-11-26T00:38:49.000Z | 2021-07-16T05:52:43.000Z | artifacts-corepy/artifacts_corepy/common/controller.py | WeBankPartners/wecube-plugins-artifacts | dd3b45648f9d40de83fae2b9b1bf8e8c82e90ccd | [
"Apache-2.0"
] | 101 | 2019-11-21T02:25:16.000Z | 2021-06-03T10:48:33.000Z | artifacts-corepy/artifacts_corepy/common/controller.py | WeBankPartners/wecube-plugins-artifacts | dd3b45648f9d40de83fae2b9b1bf8e8c82e90ccd | [
"Apache-2.0"
] | 8 | 2019-12-03T09:24:33.000Z | 2022-02-11T13:55:38.000Z | # coding=utf-8
from __future__ import absolute_import
import falcon
from talos.common.controller import CollectionController
from talos.common.controller import ItemController
from talos.core import exceptions
from talos.core import utils
from talos.core.i18n import _
from artifacts_corepy.common import exceptions a... | 35.25 | 113 | 0.669622 | 219 | 1,692 | 5.045662 | 0.237443 | 0.050679 | 0.039819 | 0.061538 | 0.552036 | 0.495928 | 0.439819 | 0.439819 | 0.411765 | 0.411765 | 0 | 0.010791 | 0.178487 | 1,692 | 48 | 114 | 35.25 | 0.784173 | 0.007092 | 0 | 0.363636 | 0 | 0 | 0.071471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242424 | false | 0 | 0.242424 | 0.121212 | 0.69697 | 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 |
17bb6ffd54ee4946827040e7eeb8313c64eac49f | 887 | py | Python | tests/test_compilers_git.py | collectiveacuity/labPack | c8fb0d1ee23608f6dbcb99c232373eee886000fd | [
"MIT"
] | 2 | 2017-06-20T15:20:46.000Z | 2019-11-18T01:28:49.000Z | tests/test_compilers_git.py | collectiveacuity/labPack | c8fb0d1ee23608f6dbcb99c232373eee886000fd | [
"MIT"
] | null | null | null | tests/test_compilers_git.py | collectiveacuity/labPack | c8fb0d1ee23608f6dbcb99c232373eee886000fd | [
"MIT"
] | null | null | null | __author__ = 'rcj1492'
__created__ = '2021.03'
__license__ = '©2021 Collective Acuity'
from labpack.compilers.git import merge_diff
if __name__ == '__main__':
f1 = 'test20210330a.scss'
f2 = 'test20210330b.scss'
f3 = 'test20210330c.scss'
merged = merge_diff(f1, f2, f3)
assert merged.find('// ... | 40.318182 | 103 | 0.65389 | 116 | 887 | 4.818966 | 0.474138 | 0.214669 | 0.257603 | 0.121646 | 0.296959 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081744 | 0.172492 | 887 | 22 | 103 | 40.318182 | 0.678474 | 0 | 0 | 0 | 0 | 0 | 0.386261 | 0.051802 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
17c0537a4564982f3863efa58c767032a719be8b | 523 | py | Python | project0/companies/views.py | priyanshgupta1998/Python-django | 00ed73ddf22ebaaec9221c766f934d4fe42a3778 | [
"MIT"
] | null | null | null | project0/companies/views.py | priyanshgupta1998/Python-django | 00ed73ddf22ebaaec9221c766f934d4fe42a3778 | [
"MIT"
] | null | null | null | project0/companies/views.py | priyanshgupta1998/Python-django | 00ed73ddf22ebaaec9221c766f934d4fe42a3778 | [
"MIT"
] | null | null | null | from .serializers import serializers
from .models import Stock
from django.shortcuts import get_object_or_404
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
#Lists all stocks or create a new one
#stcoks/
class StockList(APIView):
de... | 30.764706 | 59 | 0.720841 | 66 | 523 | 5.621212 | 0.590909 | 0.06469 | 0.137466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007353 | 0.219885 | 523 | 17 | 60 | 30.764706 | 0.901961 | 0.082218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.461538 | 0 | 0.769231 | 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 |
17f10ab53c97e13a619aa93ab20fb0ad601b0807 | 156 | py | Python | service/backend/logger.py | Shamilv05/Currency-Receiver | 9f98d9c9c809bfaeb834d19813f69cd221623a30 | [
"MIT"
] | null | null | null | service/backend/logger.py | Shamilv05/Currency-Receiver | 9f98d9c9c809bfaeb834d19813f69cd221623a30 | [
"MIT"
] | null | null | null | service/backend/logger.py | Shamilv05/Currency-Receiver | 9f98d9c9c809bfaeb834d19813f69cd221623a30 | [
"MIT"
] | null | null | null | import logging
from aiomisc.log import basic_config
basic_config(level=logging.INFO, buffered=False, log_format='json')
log = logging.getLogger('service')
| 26 | 67 | 0.807692 | 22 | 156 | 5.590909 | 0.681818 | 0.178862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 156 | 5 | 68 | 31.2 | 0.86014 | 0 | 0 | 0 | 0 | 0 | 0.070513 | 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 |
17fd6f011175c9a0340c90ec75a1eaaa05adb45b | 813 | py | Python | volatility/framework/interfaces/__init__.py | dl9rdz/volatility3 | 9d9cdfb7d43b98662089503fdb85f103d551b543 | [
"Linux-OpenIB"
] | 3 | 2021-05-31T19:43:14.000Z | 2021-08-02T00:09:26.000Z | volatility/framework/interfaces/__init__.py | dl9rdz/volatility3 | 9d9cdfb7d43b98662089503fdb85f103d551b543 | [
"Linux-OpenIB"
] | null | null | null | volatility/framework/interfaces/__init__.py | dl9rdz/volatility3 | 9d9cdfb7d43b98662089503fdb85f103d551b543 | [
"Linux-OpenIB"
] | 1 | 2021-06-14T13:32:53.000Z | 2021-06-14T13:32:53.000Z | # This file is Copyright 2019 Volatility Foundation and licensed under the Volatility Software License 1.0
# which is available at https://www.volatilityfoundation.org/license/vsl-v1.0
#
"""The interfaces module contains the API interface for the core volatility
framework.
These interfaces should help developers attem... | 47.823529 | 115 | 0.810578 | 115 | 813 | 5.730435 | 0.66087 | 0.018209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011511 | 0.145141 | 813 | 16 | 116 | 50.8125 | 0.936691 | 0.815498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
aa0b3c5f7a01e2d58f0aee17288e6fe813c07ac2 | 529 | py | Python | passwordhelper.py | andrusstrockiy/uploads | 3b4199c519f5ed65938e2491a0feb201e9b985ce | [
"Apache-2.0"
] | null | null | null | passwordhelper.py | andrusstrockiy/uploads | 3b4199c519f5ed65938e2491a0feb201e9b985ce | [
"Apache-2.0"
] | null | null | null | passwordhelper.py | andrusstrockiy/uploads | 3b4199c519f5ed65938e2491a0feb201e9b985ce | [
"Apache-2.0"
] | null | null | null | import hashlib
import os
import base64
class PasswordHelper:
def get_hash(self, plain):
hash = hashlib.sha512()
hash.update(('%s%s' % (self.get_salt(), plain)).encode('utf-8'))
return hash.hexdigest()
def get_salt(self):
password_salt = os.urandom(32).hex()
return pass... | 26.45 | 72 | 0.638941 | 67 | 529 | 4.940299 | 0.432836 | 0.081571 | 0.154079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034568 | 0.234405 | 529 | 19 | 73 | 27.842105 | 0.782716 | 0.073724 | 0 | 0 | 0 | 0 | 0.018443 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.285714 | 0.214286 | 0 | 0.714286 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
aa1d1145381d2ac071008866a8aec6b198c1f460 | 356 | py | Python | qtrio/_tests/test_cli.py | nodeselector/qtrio | 4bc25ef97d7e6e01a9751de9c84a4214e637e9d4 | [
"Apache-2.0",
"MIT"
] | null | null | null | qtrio/_tests/test_cli.py | nodeselector/qtrio | 4bc25ef97d7e6e01a9751de9c84a4214e637e9d4 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-03-30T21:14:20.000Z | 2021-03-30T21:14:20.000Z | qtrio/_tests/test_cli.py | nodeselector/qtrio | 4bc25ef97d7e6e01a9751de9c84a4214e637e9d4 | [
"Apache-2.0",
"MIT"
] | null | null | null | import os
import pathlib
import subprocess
import sys
import sysconfig
def test_emissions_help_dash_m():
"""The CLI run via ``python -m qtrio`` doesn't fail when asked for --help for the
emissions example. Woooot more stuff.
"""
subprocess.run(
[sys.executable, "-m", "qtrio", "examples", "emis... | 23.733333 | 86 | 0.671348 | 48 | 356 | 4.895833 | 0.666667 | 0.110638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202247 | 356 | 14 | 87 | 25.428571 | 0.827465 | 0.325843 | 0 | 0 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.555556 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
aa34887cc8378c05890e7cf48ffccedf21b0721e | 277 | py | Python | tests/test_mceditlib/session_lock_test.py | elcarrion06/mcedit2 | 4bb98da521447b6cf43d923cea9f00acf2f427e9 | [
"BSD-3-Clause"
] | 673 | 2015-01-02T02:08:13.000Z | 2022-03-24T19:38:14.000Z | tests/test_mceditlib/session_lock_test.py | ozzhates/mcedit2 | 4bb98da521447b6cf43d923cea9f00acf2f427e9 | [
"BSD-3-Clause"
] | 526 | 2015-01-01T02:10:53.000Z | 2022-02-06T16:24:21.000Z | tests/test_mceditlib/session_lock_test.py | ozzhates/mcedit2 | 4bb98da521447b6cf43d923cea9f00acf2f427e9 | [
"BSD-3-Clause"
] | 231 | 2015-01-01T16:47:30.000Z | 2022-03-31T21:51:55.000Z | from mceditlib.anvil.adapter import SessionLockLost
from mceditlib.worldeditor import WorldEditor
import pytest
def test_session_lock(pc_world):
level2 = WorldEditor(pc_world.filename, resume=False)
with pytest.raises(SessionLockLost):
pc_world.saveChanges()
| 27.7 | 57 | 0.797834 | 33 | 277 | 6.545455 | 0.636364 | 0.097222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004167 | 0.133574 | 277 | 9 | 58 | 30.777778 | 0.895833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
aa3ab1da9543a953e682464e46874e56b7adea5a | 52,778 | py | Python | template_container_human/labels/slice_150.py | lkondratova/Brainplot | 3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d | [
"MIT"
] | null | null | null | template_container_human/labels/slice_150.py | lkondratova/Brainplot | 3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d | [
"MIT"
] | null | null | null | template_container_human/labels/slice_150.py | lkondratova/Brainplot | 3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d | [
"MIT"
] | null | null | null | coordinates_E0E1E1 = ((125, 114),
(126, 93), (126, 114), (126, 130), (126, 132), (127, 92), (127, 93), (127, 104), (127, 114), (127, 115), (127, 130), (128, 91), (128, 92), (128, 102), (128, 104), (128, 114), (128, 117), (128, 119), (128, 131), (128, 132), (129, 91), (129, 101), (129, 114), (129, 119), (129, 131), (1... | 493.252336 | 865 | 0.485183 | 8,996 | 52,778 | 2.843264 | 0.014784 | 0.000704 | 0.000704 | 0.000938 | 0.001407 | 0.001407 | 0 | 0 | 0 | 0 | 0 | 0.578173 | 0.174467 | 52,778 | 106 | 866 | 497.90566 | 0.008882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a4b2eb29026b39b9d0463c237b0585046ff08884 | 176 | py | Python | haproxy/haproxy-hooks.py | laundrapp/docker-thumor | 60bb15b0196486cca67a8cee33b4aebe6845a56c | [
"MIT"
] | null | null | null | haproxy/haproxy-hooks.py | laundrapp/docker-thumor | 60bb15b0196486cca67a8cee33b4aebe6845a56c | [
"MIT"
] | null | null | null | haproxy/haproxy-hooks.py | laundrapp/docker-thumor | 60bb15b0196486cca67a8cee33b4aebe6845a56c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from haproxy_helper import create_conf
def before_start(watcher, arbiter, hook_name, **kwargs):
create_conf()
return True | 25.142857 | 56 | 0.710227 | 25 | 176 | 4.8 | 0.92 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006711 | 0.153409 | 176 | 7 | 57 | 25.142857 | 0.798658 | 0.238636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
350eb2e604161c82691929910f393b323d247390 | 546 | py | Python | backend/src/account/permissions.py | NgoQuocBao1010/Shipping-System-Management | 4b9f26c63f1db46ed1beac3b867f40756d0ba980 | [
"MIT"
] | 4 | 2022-01-03T16:26:42.000Z | 2022-01-04T02:55:52.000Z | backend/src/account/permissions.py | NgoQuocBao1010/Shipping-System-Management | 4b9f26c63f1db46ed1beac3b867f40756d0ba980 | [
"MIT"
] | null | null | null | backend/src/account/permissions.py | NgoQuocBao1010/Shipping-System-Management | 4b9f26c63f1db46ed1beac3b867f40756d0ba980 | [
"MIT"
] | 1 | 2022-01-16T21:41:20.000Z | 2022-01-16T21:41:20.000Z | from rest_framework import permissions
class AdminOnly(permissions.BasePermission):
"""
Only allow admin user to access this endpoint
"""
def has_permission(self, request, view):
message = "Non-admin user not allowed"
return request.user.is_admin
class StaffOnly(permissions.BasePerm... | 24.818182 | 70 | 0.690476 | 66 | 546 | 5.636364 | 0.5 | 0.134409 | 0.155914 | 0.182796 | 0.505376 | 0.505376 | 0.505376 | 0.327957 | 0.327957 | 0.327957 | 0 | 0 | 0.228938 | 546 | 21 | 71 | 26 | 0.88361 | 0.205128 | 0 | 0.222222 | 0 | 0 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
352bd88d9ec657f77f3754c54637dc693126ef29 | 919 | py | Python | tubbs/formatter/scala/rewrite.py | tek/tubbs | cd4c174c31b6c58a6935ca8a5f0f141377a9a04c | [
"MIT"
] | null | null | null | tubbs/formatter/scala/rewrite.py | tek/tubbs | cd4c174c31b6c58a6935ca8a5f0f141377a9a04c | [
"MIT"
] | null | null | null | tubbs/formatter/scala/rewrite.py | tek/tubbs | cd4c174c31b6c58a6935ca8a5f0f141377a9a04c | [
"MIT"
] | null | null | null | from amino import Left, Either, List
from amino.util.string import snake_case
from ribosome.nvim.components import NvimComponent
from tubbs.tatsu.ast import AstMap, AstElem
from tubbs.formatter.base import Formatter as FormatterBase
class Formatter(FormatterBase):
def no_rule(self, ast: AstElem) -> Either[str,... | 27.848485 | 68 | 0.694233 | 122 | 919 | 5.090164 | 0.360656 | 0.045089 | 0.083736 | 0.10306 | 0.186795 | 0.186795 | 0.186795 | 0.186795 | 0.128824 | 0 | 0 | 0 | 0.181719 | 919 | 32 | 69 | 28.71875 | 0.825798 | 0 | 0 | 0 | 0 | 0 | 0.050054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.263158 | 0.157895 | 0.842105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
353293893eaf8bbe5e279b16a241c39b0b6d3b4b | 294 | py | Python | SolidColour.py | timpelican/raytrace | 2ffe9f4de093b856c71301480feb6fb2e095407c | [
"Apache-2.0"
] | null | null | null | SolidColour.py | timpelican/raytrace | 2ffe9f4de093b856c71301480feb6fb2e095407c | [
"Apache-2.0"
] | null | null | null | SolidColour.py | timpelican/raytrace | 2ffe9f4de093b856c71301480feb6fb2e095407c | [
"Apache-2.0"
] | null | null | null | # Solid colour "pattern"
from Pattern import Pattern
class SolidColour(Pattern):
def __init__(self, c):
super(SolidColour, self).__init__()
self.c = c
def pattern(self, point):
# Solid colour, this is in preparation for nesting patterns
return self.c
| 22.615385 | 67 | 0.656463 | 37 | 294 | 5 | 0.567568 | 0.081081 | 0.097297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258503 | 294 | 12 | 68 | 24.5 | 0.848624 | 0.272109 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3536b03022e4b3fa8944d70a20fe699c93fc1612 | 269 | py | Python | pinterest_problems/problem_4.py | Neilblaze/Circadian-Coding-Problems | 25f87087341b6d6d622bcbbdb8c60e86360da131 | [
"MIT"
] | 129 | 2018-10-14T17:52:29.000Z | 2022-01-29T15:45:57.000Z | pinterest_problems/problem_4.py | Neilblaze/Circadian-Coding-Problems | 25f87087341b6d6d622bcbbdb8c60e86360da131 | [
"MIT"
] | 2 | 2019-11-30T23:28:23.000Z | 2020-01-03T16:30:32.000Z | pinterest_problems/problem_4.py | Neilblaze/Circadian-Coding-Problems | 25f87087341b6d6d622bcbbdb8c60e86360da131 | [
"MIT"
] | 60 | 2019-02-21T09:18:31.000Z | 2022-03-25T21:01:04.000Z | """This problem was asked by Pinterest.
Given a binary tree, write a function to determine whether the tree is a
mirror image of itself.
Two trees are a mirror image if their root values are the same and the
left subtree is a mirror image of the right subtree.
""" | 33.625 | 73 | 0.762082 | 49 | 269 | 4.183673 | 0.673469 | 0.102439 | 0.17561 | 0.136585 | 0.156098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.200743 | 269 | 8 | 74 | 33.625 | 0.953488 | 0.973978 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
353e25c3cd7ce94b5eb8b1b14772ade82fdd445b | 411 | py | Python | plugin2/plugin2/__init__.py | philipov/python-plugins-demo | a8f7fa3ba4862bf62e96104080ced5bde560a473 | [
"MIT"
] | null | null | null | plugin2/plugin2/__init__.py | philipov/python-plugins-demo | a8f7fa3ba4862bf62e96104080ced5bde560a473 | [
"MIT"
] | null | null | null | plugin2/plugin2/__init__.py | philipov/python-plugins-demo | a8f7fa3ba4862bf62e96104080ced5bde560a473 | [
"MIT"
] | null | null | null | #-- plugin2.__init__
""" Documentation for Plugin 2
"""
from master import Thing
#----------------------------------------------------------------------------------------------#
PARAMETER = False
###############
class Dog(Thing):
__key__ = 'Dog'
###############
class Cat(Thing):
__key__ = 'Cat'
#-----... | 17.125 | 96 | 0.289538 | 22 | 411 | 4.863636 | 0.727273 | 0.149533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005495 | 0.114355 | 411 | 23 | 97 | 17.869565 | 0.288462 | 0.569343 | 0 | 0 | 0 | 0 | 0.044444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
103828c473b07d82693334cd15f2b60d3c992144 | 1,034 | py | Python | Lib/site-packages/svgwrite/data/pattern.py | Carshy/blogApplication | a471cd8627510ebc2bd3ba213fe2dbe6e4eca60f | [
"bzip2-1.0.6"
] | 46 | 2020-05-25T21:10:19.000Z | 2022-03-27T12:33:40.000Z | Lib/site-packages/svgwrite/data/pattern.py | Carshy/blogApplication | a471cd8627510ebc2bd3ba213fe2dbe6e4eca60f | [
"bzip2-1.0.6"
] | 110 | 2017-12-13T08:36:06.000Z | 2020-05-07T05:42:19.000Z | Lib/site-packages/svgwrite/data/pattern.py | Carshy/blogApplication | a471cd8627510ebc2bd3ba213fe2dbe6e4eca60f | [
"bzip2-1.0.6"
] | 31 | 2020-05-25T21:14:56.000Z | 2022-03-25T08:57:43.000Z | #!/usr/bin/env python
#coding:utf-8
# Author: mozman --<mozman@gmx.at>
# Purpose: pattern module
# Created: 27.09.2010
# Copyright (C) 2010, Manfred Moitzi
# License: MIT License
import re
#coordinate ::= number ("em" | "ex" | "px" | "in" | "cm" | "mm" | "pt" | "pc" | "%")?
coordinate = re.compile(r"(^[-+]?[0-9]*\.?... | 33.354839 | 98 | 0.476789 | 152 | 1,034 | 3.243421 | 0.381579 | 0.073022 | 0.121704 | 0.133874 | 0.308316 | 0.308316 | 0.308316 | 0.308316 | 0.308316 | 0.219067 | 0 | 0.053965 | 0.121857 | 1,034 | 30 | 99 | 34.466667 | 0.488987 | 0.478723 | 0 | 0 | 0 | 0.25 | 0.597701 | 0.597701 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
107ce8890a6a37c4f3abc7bcbd0dd3d94fd641a7 | 414 | py | Python | example/flashing_light.py | lolloberga/Capsian-Engine | 086e0fee9392df1642c8199e61e2e24fb6b81e77 | [
"Apache-2.0"
] | 10 | 2020-09-26T15:10:48.000Z | 2022-02-03T19:13:56.000Z | example/flashing_light.py | lolloberga/Capsian-Engine | 086e0fee9392df1642c8199e61e2e24fb6b81e77 | [
"Apache-2.0"
] | 2 | 2020-09-29T19:13:50.000Z | 2021-12-24T12:04:29.000Z | example/flashing_light.py | lolloberga/Capsian-Engine | 086e0fee9392df1642c8199e61e2e24fb6b81e77 | [
"Apache-2.0"
] | 3 | 2021-03-05T20:14:38.000Z | 2022-01-26T21:34:36.000Z | from Capsian import *
import random
class FlashingLight(AmbientLight):
def flash(self, *args, **kwargs):
offset = random.uniform(-30, 20)
if not self.intensity[0] > 0:
self.intensity[0] = 50
self.intensity[1] = 50
return
if self.intensity[0] ... | 24.352941 | 42 | 0.543478 | 47 | 414 | 4.787234 | 0.510638 | 0.346667 | 0.248889 | 0.177778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.342995 | 414 | 16 | 43 | 25.875 | 0.768382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.416667 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.