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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ec2aaf1ebc93157ed710325e3171b7cc78d7a26a | 441 | py | Python | rjm/errors.py | chrisdjscott/RemoteJobManager | 5fa83f67765aea2ae68f638c8f217f037a5724f0 | [
"MIT"
] | null | null | null | rjm/errors.py | chrisdjscott/RemoteJobManager | 5fa83f67765aea2ae68f638c8f217f037a5724f0 | [
"MIT"
] | null | null | null | rjm/errors.py | chrisdjscott/RemoteJobManager | 5fa83f67765aea2ae68f638c8f217f037a5724f0 | [
"MIT"
] | null | null | null | class RemoteJobRunnerError(Exception):
"""
Errors related to running the job on the remote system.
"""
class RemoteJobTransfererError(Exception):
"""
Errors related to transferring file to and from the remote system.
"""
class RemoteJobBatchError(Exception):
"""
Errors related to r... | 16.333333 | 70 | 0.668934 | 46 | 441 | 6.413043 | 0.586957 | 0.152542 | 0.223729 | 0.244068 | 0.210169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244898 | 441 | 26 | 71 | 16.961538 | 0.885886 | 0.433107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ec34ed2cd232f37b686f8c3c2845ae0bfc064eab | 1,356 | py | Python | RestApi/Python/RestApi_v2/Modules/bps_restpy/bps.py | nutu/BreakingPoint | 978177960c90b3d53b92a7c1a43e6f3144e96436 | [
"MIT"
] | 1 | 2020-04-05T18:36:37.000Z | 2020-04-05T18:36:37.000Z | RestApi/Python/RestApi_v2/Modules/bps_restpy/bps.py | nutu/BreakingPoint | 978177960c90b3d53b92a7c1a43e6f3144e96436 | [
"MIT"
] | null | null | null | RestApi/Python/RestApi_v2/Modules/bps_restpy/bps.py | nutu/BreakingPoint | 978177960c90b3d53b92a7c1a43e6f3144e96436 | [
"MIT"
] | 1 | 2020-02-14T18:06:17.000Z | 2020-02-14T18:06:17.000Z | """
# MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, mod... | 46.758621 | 79 | 0.762537 | 209 | 1,356 | 4.923445 | 0.593301 | 0.08552 | 0.025267 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020318 | 0.165192 | 1,356 | 29 | 80 | 46.758621 | 0.888693 | 0.901917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ec42ec39c19c62b01d49950d739b58a47bb45146 | 322 | py | Python | MUNDO 1/ex022.py | athavus/Curso-em-video-Python-3 | a32be95adbccfcbe512a1ed30d3859141a230b5e | [
"MIT"
] | 1 | 2020-11-12T14:03:32.000Z | 2020-11-12T14:03:32.000Z | MUNDO 1/ex022.py | athavus/Curso-em-video-Python-3 | a32be95adbccfcbe512a1ed30d3859141a230b5e | [
"MIT"
] | null | null | null | MUNDO 1/ex022.py | athavus/Curso-em-video-Python-3 | a32be95adbccfcbe512a1ed30d3859141a230b5e | [
"MIT"
] | 1 | 2021-01-05T22:18:46.000Z | 2021-01-05T22:18:46.000Z | nome = input('Digite o seu nome completo: ').strip()
print(f'Seu nome em maiúsculas é {nome.upper()}')
print(f'Seu nome em minúsculas é {nome.lower()}')
print('Seu nome tem ao todo {} letras'.format(len(nome) - nome.count(' ')))
print(f'Seu primeiro nome é {nome.split()[0]} e ele tem {len(nome.split()[0])} letras')... | 53.666667 | 88 | 0.661491 | 55 | 322 | 3.872727 | 0.490909 | 0.131455 | 0.126761 | 0.122066 | 0.140845 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00722 | 0.139752 | 322 | 5 | 89 | 64.4 | 0.761733 | 0 | 0 | 0 | 0 | 0.2 | 0.675079 | 0.069401 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.8 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
6b4fe14bb6a905a2959e9c2f3006ec517deeff1d | 196 | py | Python | manual.py | jmbo1190/python-click-cli-cookbook | 5887769b373a1cc9be483622eb9b2b9ed6737d7e | [
"CC0-1.0"
] | null | null | null | manual.py | jmbo1190/python-click-cli-cookbook | 5887769b373a1cc9be483622eb9b2b9ed6737d7e | [
"CC0-1.0"
] | null | null | null | manual.py | jmbo1190/python-click-cli-cookbook | 5887769b373a1cc9be483622eb9b2b9ed6737d7e | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python
import sys
def add(x, y):
return x + y
if __name__ == "__main__":
print(sys.argv)
one = int(sys.argv[1])
two = int(sys.argv[2])
print(add(one, two))
| 13.066667 | 26 | 0.571429 | 33 | 196 | 3.151515 | 0.636364 | 0.201923 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013605 | 0.25 | 196 | 14 | 27 | 14 | 0.693878 | 0.102041 | 0 | 0 | 0 | 0 | 0.045714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 0.375 | 0.25 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
6b56563456f6b9cb49b8c408f27da7c3016aa0c1 | 7,268 | py | Python | src/abaqus/BasicGeometry/Edge.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | 7 | 2022-01-21T09:15:45.000Z | 2022-02-15T09:31:58.000Z | src/abaqus/BasicGeometry/Edge.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | src/abaqus/BasicGeometry/Edge.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | from abaqusConstants import *
class Edge:
"""Edges are one-dimensional regions of geometry.
Attributes
----------
index: int
An Int specifying the index of the edge in the EdgeArray.
isReferenceRep: Boolean
A Boolean specifying whether the edge belongs to the reference representat... | 34.445498 | 100 | 0.609246 | 889 | 7,268 | 4.980877 | 0.212598 | 0.046748 | 0.067525 | 0.071138 | 0.551491 | 0.533875 | 0.477191 | 0.406504 | 0.318654 | 0.18112 | 0 | 0.000789 | 0.302559 | 7,268 | 210 | 101 | 34.609524 | 0.872756 | 0.758118 | 0 | 0.37037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.37037 | false | 0.37037 | 0.037037 | 0 | 0.62963 | 0.037037 | 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 |
6b66524f9d77ae0ba858ea73e96a1981ed879f8b | 560 | py | Python | molsysmt/build/__init__.py | uibcdf/MolModMTs | 4f6b6f671a9fa3e73008d1e9c48686d5f20a6573 | [
"MIT"
] | null | null | null | molsysmt/build/__init__.py | uibcdf/MolModMTs | 4f6b6f671a9fa3e73008d1e9c48686d5f20a6573 | [
"MIT"
] | null | null | null | molsysmt/build/__init__.py | uibcdf/MolModMTs | 4f6b6f671a9fa3e73008d1e9c48686d5f20a6573 | [
"MIT"
] | null | null | null | from .add_missing_hydrogens import add_missing_hydrogens
from .add_missing_heavy_atoms import add_missing_heavy_atoms
from .add_missing_terminal_cappings import add_missing_terminal_cappings
from .get_missing_heavy_atoms import get_missing_heavy_atoms
from .get_missing_terminal_cappings import get_missing_terminal_capp... | 43.076923 | 72 | 0.9 | 84 | 560 | 5.52381 | 0.25 | 0.12931 | 0.146552 | 0.086207 | 0.12931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080357 | 560 | 12 | 73 | 46.666667 | 0.900971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
6b769920de2990a5c3fd85036c06d2a0ee5a150b | 65 | py | Python | FirstStepsInPython/Basics/Lab1 First Steps in Coding/08PetShop.py | Pittor052/SoftUni-Studies | 1ee6341082f6ccfa45b3e82824c37722bcf2fb31 | [
"MIT"
] | null | null | null | FirstStepsInPython/Basics/Lab1 First Steps in Coding/08PetShop.py | Pittor052/SoftUni-Studies | 1ee6341082f6ccfa45b3e82824c37722bcf2fb31 | [
"MIT"
] | null | null | null | FirstStepsInPython/Basics/Lab1 First Steps in Coding/08PetShop.py | Pittor052/SoftUni-Studies | 1ee6341082f6ccfa45b3e82824c37722bcf2fb31 | [
"MIT"
] | 1 | 2021-10-07T18:30:42.000Z | 2021-10-07T18:30:42.000Z | d = int ( input () ) * 2.5
nd = int ( input () ) * 4
print(d+nd)
| 16.25 | 26 | 0.461538 | 12 | 65 | 2.5 | 0.666667 | 0.533333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 0.292308 | 65 | 3 | 27 | 21.666667 | 0.586957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6b946ca2b08f6e344a3837f754f312a9a325ae94 | 128 | py | Python | mcpipy/sign.py | wangtt03/raspberryjammod | d828d1b225c0dfc25d91f4e3569ce620fa231e14 | [
"MIT"
] | 338 | 2015-01-20T15:07:48.000Z | 2022-02-25T17:31:06.000Z | mcpipy/sign.py | wangtt03/raspberryjammod | d828d1b225c0dfc25d91f4e3569ce620fa231e14 | [
"MIT"
] | 58 | 2015-03-26T12:21:41.000Z | 2022-02-20T21:01:33.000Z | mcpipy/sign.py | wangtt03/raspberryjammod | d828d1b225c0dfc25d91f4e3569ce620fa231e14 | [
"MIT"
] | 112 | 2015-08-10T19:20:44.000Z | 2022-02-23T08:58:52.000Z | from mine import *
mc = Minecraft()
mc.setBlockWithNBT(mc.player.getTilePos(),block.SIGN("Hello,","World",headingAngle=180))
| 32 | 89 | 0.734375 | 16 | 128 | 5.875 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.085938 | 128 | 3 | 90 | 42.666667 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.088 | 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 |
6b97d79c2f85b10fbbc410b789a2ba73234992d8 | 264 | py | Python | donor/migrations/0011_merge_20201216_1728.py | thapaliya19/covaplad | f3ff6db582165611d03dab6d227b4e5d81214d43 | [
"MIT"
] | 1 | 2021-02-03T15:09:45.000Z | 2021-02-03T15:09:45.000Z | donor/migrations/0011_merge_20201216_1728.py | thapaliya19/covaplad | f3ff6db582165611d03dab6d227b4e5d81214d43 | [
"MIT"
] | 25 | 2021-03-08T07:01:32.000Z | 2022-03-31T09:05:30.000Z | donor/migrations/0011_merge_20201216_1728.py | thapaliya19/covaplad | f3ff6db582165611d03dab6d227b4e5d81214d43 | [
"MIT"
] | 3 | 2021-02-22T15:06:56.000Z | 2021-08-03T13:00:00.000Z | # Generated by Django 3.1.4 on 2020-12-16 11:43
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("donor", "0010_auto_20201216_1552"),
("donor", "0010_auto_20201216_1646"),
]
operations = []
| 18.857143 | 47 | 0.655303 | 33 | 264 | 5.060606 | 0.787879 | 0.107784 | 0.155689 | 0.251497 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228155 | 0.219697 | 264 | 13 | 48 | 20.307692 | 0.582524 | 0.170455 | 0 | 0 | 1 | 0 | 0.258065 | 0.211982 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6b9b313860c2c011ba65477a9844ab7029b88882 | 514 | py | Python | largestContiguousSum/solution.py | Sem8/whiteboard-sem | 68cfa6b09748c54eeed16944e4fb881be5764a50 | [
"MIT"
] | null | null | null | largestContiguousSum/solution.py | Sem8/whiteboard-sem | 68cfa6b09748c54eeed16944e4fb881be5764a50 | [
"MIT"
] | null | null | null | largestContiguousSum/solution.py | Sem8/whiteboard-sem | 68cfa6b09748c54eeed16944e4fb881be5764a50 | [
"MIT"
] | null | null | null | def largest_contiguous_sum(arr):
current_sum = 0
maximum = -1000000
for num in arr:
current_sum += num
if current_sum > maximum:
maximum = current_sum
if current_sum < 0:
current_sum = 0
return maximum
# Tests
print(largest_contiguous_sum([5, -9... | 30.235294 | 77 | 0.583658 | 73 | 514 | 3.917808 | 0.39726 | 0.20979 | 0.27972 | 0.262238 | 0.097902 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097765 | 0.303502 | 514 | 17 | 78 | 30.235294 | 0.701117 | 0.101167 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.153846 | 0.230769 | 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 |
6bba84e5b988d9bde094a5d290a7285acc7d9f93 | 6,050 | py | Python | config/settings/base.py | djstein/test-django-zappa | 57ad140ee614ba2abc7bc0910d2da6bfab20eaaa | [
"MIT"
] | null | null | null | config/settings/base.py | djstein/test-django-zappa | 57ad140ee614ba2abc7bc0910d2da6bfab20eaaa | [
"MIT"
] | null | null | null | config/settings/base.py | djstein/test-django-zappa | 57ad140ee614ba2abc7bc0910d2da6bfab20eaaa | [
"MIT"
] | null | null | null | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 1.10.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import envi... | 27.752294 | 91 | 0.700661 | 645 | 6,050 | 6.364341 | 0.362791 | 0.060171 | 0.03313 | 0.045311 | 0.104019 | 0.086967 | 0.048965 | 0.048965 | 0.029963 | 0 | 0 | 0.008602 | 0.173719 | 6,050 | 217 | 92 | 27.880184 | 0.812563 | 0.166116 | 0 | 0.040541 | 1 | 0 | 0.518127 | 0.415538 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.067568 | 0.013514 | 0 | 0.013514 | 0.013514 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
6bc34e7d4d964ab7c1ef43b1b7789cf0203c4013 | 888 | py | Python | yelp/models/campground.py | cwithmichael/yelp-camp-flask | 15d05285ff198256c396e51456a9a88bc836a342 | [
"MIT"
] | null | null | null | yelp/models/campground.py | cwithmichael/yelp-camp-flask | 15d05285ff198256c396e51456a9a88bc836a342 | [
"MIT"
] | null | null | null | yelp/models/campground.py | cwithmichael/yelp-camp-flask | 15d05285ff198256c396e51456a9a88bc836a342 | [
"MIT"
] | null | null | null | from flask_mongoengine import MongoEngine
from yelp.models.review import Review
from yelp.models.user import User
def _not_empty(val):
if not val:
raise me.ValidationError("value can not be empty")
me = MongoEngine()
class Image(me.EmbeddedDocument):
url = me.StringField(required=True)
filenam... | 30.62069 | 70 | 0.752252 | 109 | 888 | 6.018349 | 0.40367 | 0.128049 | 0.192073 | 0.228659 | 0.327744 | 0.196646 | 0.196646 | 0 | 0 | 0 | 0 | 0 | 0.147523 | 888 | 28 | 71 | 31.714286 | 0.866579 | 0 | 0 | 0 | 0 | 0 | 0.024775 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.15 | 0 | 0.85 | 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 |
6bd1692cc25d88fa6256c5df967578790f0c1333 | 302 | py | Python | ewah/utils/airflow_provider_info.py | soltanianalytics/ewah | bcb2ad6714dd64832054beb829c2cf1551074fd4 | [
"MIT"
] | 2 | 2019-11-21T16:45:12.000Z | 2019-12-10T09:40:14.000Z | ewah/utils/airflow_provider_info.py | soltanianalytics/ewah | bcb2ad6714dd64832054beb829c2cf1551074fd4 | [
"MIT"
] | null | null | null | ewah/utils/airflow_provider_info.py | soltanianalytics/ewah | bcb2ad6714dd64832054beb829c2cf1551074fd4 | [
"MIT"
] | null | null | null | from ewah.hooks import connection_types
def get_provider_info():
return {
"package-name": "ewah",
"name": "EWAH",
"description": "ELT With Airflow Helper - EWAH. Make EL easy for the world.",
"connection-types": connection_types,
"version": "1.0.0",
}
| 25.166667 | 85 | 0.599338 | 36 | 302 | 4.916667 | 0.75 | 0.254237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0.264901 | 302 | 11 | 86 | 27.454545 | 0.783784 | 0 | 0 | 0 | 0 | 0 | 0.403974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.111111 | 0.111111 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
6bd80d36171b6da6287ed2cd866b9cf9cc7b73f4 | 473 | py | Python | journey11/src/main/main.py | parrisma/AI-intuition | 3b081696b1d226815e029cbb536fac5e4d3de9a7 | [
"MIT"
] | null | null | null | journey11/src/main/main.py | parrisma/AI-intuition | 3b081696b1d226815e029cbb536fac5e4d3de9a7 | [
"MIT"
] | 4 | 2020-04-26T18:18:22.000Z | 2020-05-16T14:47:32.000Z | journey11/src/main/main.py | parrisma/AI-intuition | 3b081696b1d226815e029cbb536fac5e4d3de9a7 | [
"MIT"
] | null | null | null | from journey11.src.lib import SimpleSwarmEnv
from journey11.src.main.simple.simplescenario import SimpleScenario
from journey11.src.lib import SimpleTaskPool
from journey11.src.lib import PubSubEnv
from journey10.lib.stateeffortmap import StateEffortMap
if __name__ == "__main__":
pse = PubSubEnv()
ss = Simpl... | 24.894737 | 67 | 0.754757 | 56 | 473 | 6.232143 | 0.5 | 0.148997 | 0.183381 | 0.163324 | 0.2149 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030227 | 0.160677 | 473 | 18 | 68 | 26.277778 | 0.848867 | 0 | 0 | 0 | 0 | 0 | 0.016913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6bdab27e2b0e687b76b5b70543f875689232cf06 | 478 | py | Python | diary/forms.py | 28harishkumar/django-diary | 74f86c8772655358fd0a0eafbabd87bdec81985e | [
"Apache-2.0"
] | 1 | 2016-04-24T19:41:59.000Z | 2016-04-24T19:41:59.000Z | diary/forms.py | 28harishkumar/django-diary | 74f86c8772655358fd0a0eafbabd87bdec81985e | [
"Apache-2.0"
] | null | null | null | diary/forms.py | 28harishkumar/django-diary | 74f86c8772655358fd0a0eafbabd87bdec81985e | [
"Apache-2.0"
] | null | null | null | from django import forms
from django.forms import Form
from diary.models import Diary, Entry
class DiaryForm(forms.ModelForm):
class Meta:
model = Diary
fields = ['user','name','description']
class DiaryEditForm(forms.ModelForm):
class Meta:
model = Diary
field... | 25.157895 | 50 | 0.60251 | 50 | 478 | 5.76 | 0.42 | 0.145833 | 0.197917 | 0.239583 | 0.368056 | 0.270833 | 0.270833 | 0 | 0 | 0 | 0 | 0 | 0.290795 | 478 | 19 | 51 | 25.157895 | 0.849558 | 0 | 0 | 0.333333 | 0 | 0 | 0.100209 | 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 |
6be212e810cc2fe05eaa09e87f87ca0367e1d5c9 | 348 | py | Python | Colaborador/models.py | higornobrega/ramais_UNIFIP | e022d198ee18dd05f49a202288dea79cea9fdc39 | [
"MIT"
] | 1 | 2021-06-10T18:03:42.000Z | 2021-06-10T18:03:42.000Z | Colaborador/models.py | higornobrega/ramais_UNIFIP | e022d198ee18dd05f49a202288dea79cea9fdc39 | [
"MIT"
] | 7 | 2021-06-10T14:21:56.000Z | 2021-06-11T12:08:09.000Z | Colaborador/models.py | higornobrega/ramais_UNIFIP | e022d198ee18dd05f49a202288dea79cea9fdc39 | [
"MIT"
] | 1 | 2021-06-09T13:33:25.000Z | 2021-06-09T13:33:25.000Z | from django.db import models
class Colaborador(models.Model):
nome = models.CharField(max_length=50)
email = models.EmailField(max_length=254)
celular = models.CharField(max_length=20)
instagram = models.CharField(max_length=50)
linkedin = models.CharField(max_length=50)
def __str__(self):
... | 26.769231 | 47 | 0.724138 | 46 | 348 | 5.282609 | 0.521739 | 0.185185 | 0.296296 | 0.395062 | 0.320988 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038194 | 0.172414 | 348 | 12 | 48 | 29 | 0.805556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.111111 | 1 | 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 | 1 | 0 | 0 | 0 | 3 |
d403f2ffad7202c6fce3b95056d282623b81798f | 128 | py | Python | idm/objects/__init__.py | sadfucking/IrCB-Duty | 67cce59900118412b1276c8c7f554500234cc899 | [
"MIT"
] | null | null | null | idm/objects/__init__.py | sadfucking/IrCB-Duty | 67cce59900118412b1276c8c7f554500234cc899 | [
"MIT"
] | null | null | null | idm/objects/__init__.py | sadfucking/IrCB-Duty | 67cce59900118412b1276c8c7f554500234cc899 | [
"MIT"
] | null | null | null | __version__ = '1.4.5 beta'
from .database import DB, DB_general, db_gen
from .events import *
from . import dispatcher as dp
| 16 | 44 | 0.734375 | 21 | 128 | 4.190476 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.179688 | 128 | 7 | 45 | 18.285714 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0.078125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d41a4b99382609d1824d76429dc37de88a48c9e2 | 1,658 | py | Python | pygama/dsp/processors.py | iguinn/pygama | ae643524a49c476c0c5b35407a6ad82ba5d0401c | [
"Apache-2.0"
] | 13 | 2019-05-01T01:37:30.000Z | 2022-03-18T08:52:19.000Z | pygama/dsp/processors.py | iguinn/pygama | ae643524a49c476c0c5b35407a6ad82ba5d0401c | [
"Apache-2.0"
] | 111 | 2019-03-25T00:50:48.000Z | 2022-03-30T17:13:43.000Z | pygama/dsp/processors.py | iguinn/pygama | ae643524a49c476c0c5b35407a6ad82ba5d0401c | [
"Apache-2.0"
] | 52 | 2019-01-24T21:05:04.000Z | 2022-03-07T23:37:55.000Z | """
Contains a list of dsp processors used by the legend experiment, implemented
using numba's guvectorize to implement numpy's ufunc interface. In other words,
all of the functions are void functions whose outputs are given as parameters.
The ufunc interface provides additional information about the function
signature... | 57.172414 | 113 | 0.845597 | 252 | 1,658 | 5.293651 | 0.507937 | 0.178411 | 0.031484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002035 | 0.110977 | 1,658 | 28 | 114 | 59.214286 | 0.902985 | 0.372135 | 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 |
d4300ceb650b58dedd056a957fcbbff64d846803 | 10,410 | py | Python | testscripts/RDKB/component/PAM/TS_PAM_CheckNonRootSupportForParodus.py | rdkcmf/rdkb-tools-tdkb | 9f9c3600cd701d5fc90ac86a6394ebd28d49267e | [
"Apache-2.0"
] | null | null | null | testscripts/RDKB/component/PAM/TS_PAM_CheckNonRootSupportForParodus.py | rdkcmf/rdkb-tools-tdkb | 9f9c3600cd701d5fc90ac86a6394ebd28d49267e | [
"Apache-2.0"
] | null | null | null | testscripts/RDKB/component/PAM/TS_PAM_CheckNonRootSupportForParodus.py | rdkcmf/rdkb-tools-tdkb | 9f9c3600cd701d5fc90ac86a6394ebd28d49267e | [
"Apache-2.0"
] | null | null | null | ##########################################################################
# If not stated otherwise in this file or this component's Licenses.txt
# file the following copyright and licenses apply:
#
# Copyright 2020 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use th... | 48.873239 | 155 | 0.663689 | 1,256 | 10,410 | 5.392516 | 0.218153 | 0.031891 | 0.045179 | 0.042522 | 0.519711 | 0.517644 | 0.492839 | 0.476894 | 0.467887 | 0.421527 | 0 | 0.019012 | 0.221902 | 10,410 | 212 | 156 | 49.103774 | 0.81716 | 0.095677 | 0 | 0.706422 | 0 | 0 | 0.365678 | 0.021981 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.009174 | null | null | 0.449541 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
d4309d5295119f610aea2f64b8a5aaa7cbf45d00 | 253 | py | Python | framework/sessions/utils.py | bdyetton/prettychart | e8b33a7dfdc8c33d15969586be7f68172795f76d | [
"Apache-2.0"
] | null | null | null | framework/sessions/utils.py | bdyetton/prettychart | e8b33a7dfdc8c33d15969586be7f68172795f76d | [
"Apache-2.0"
] | 13 | 2020-03-24T15:29:41.000Z | 2022-03-11T23:15:28.000Z | framework/sessions/utils.py | bdyetton/prettychart | e8b33a7dfdc8c33d15969586be7f68172795f76d | [
"Apache-2.0"
] | null | null | null | from modularodm import Q
from .model import Session
def remove_sessions_for_user(user):
"""Permanently remove all stored sessions for the user from the DB.
:param User user:
"""
Session.remove(Q('data.auth_user_id', 'eq', user._id))
| 21.083333 | 71 | 0.70751 | 38 | 253 | 4.552632 | 0.552632 | 0.127168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189723 | 253 | 11 | 72 | 23 | 0.843902 | 0.328063 | 0 | 0 | 0 | 0 | 0.122581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
d44ad8186acf16537e0d0930e4d23febf86b548a | 1,340 | py | Python | test.py | Mawwlle/CI-and-unit-test-on-python | abe9c847211d4b4054619d404997fb8efcaac49b | [
"MIT"
] | null | null | null | test.py | Mawwlle/CI-and-unit-test-on-python | abe9c847211d4b4054619d404997fb8efcaac49b | [
"MIT"
] | null | null | null | test.py | Mawwlle/CI-and-unit-test-on-python | abe9c847211d4b4054619d404997fb8efcaac49b | [
"MIT"
] | null | null | null | import unittest
from main import Calculator, array_sum, Circle
class TestCalc(unittest.TestCase):
def setUp(self):
self.a = 13
self.b = 2
self.calc = Calculator(self.a, self.b)
def test_sum(self):
self.assertEqual(self.calc.sum(), 15)
def test_sub(self):
self.ass... | 26.27451 | 104 | 0.642537 | 182 | 1,340 | 4.60989 | 0.247253 | 0.095352 | 0.181168 | 0.164482 | 0.34565 | 0.076281 | 0 | 0 | 0 | 0 | 0 | 0.04649 | 0.213433 | 1,340 | 50 | 105 | 26.8 | 0.749526 | 0 | 0 | 0.0625 | 0 | 0 | 0.008955 | 0 | 0 | 0 | 0 | 0 | 0.3125 | 1 | 0.3125 | false | 0 | 0.0625 | 0 | 0.46875 | 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 |
d44dd49c37b74152537bef4e35c05dae7e782aa4 | 167 | py | Python | model/bert/__init__.py | MobtgZhang/PQTA-Net | 94e8d6ad78725f2c4f534f6c2ca9638c28053ad9 | [
"MIT"
] | null | null | null | model/bert/__init__.py | MobtgZhang/PQTA-Net | 94e8d6ad78725f2c4f534f6c2ca9638c28053ad9 | [
"MIT"
] | null | null | null | model/bert/__init__.py | MobtgZhang/PQTA-Net | 94e8d6ad78725f2c4f534f6c2ca9638c28053ad9 | [
"MIT"
] | null | null | null | from .mreader import ErnieMReader
from .rnet import ErnieRNet
from .pqtanet import ErniePQTANet
__all__ = [
'ErnieRNet',
'ErniePQTANet',
'ErnieMReader'
]
| 16.7 | 33 | 0.724551 | 16 | 167 | 7.3125 | 0.5625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191617 | 167 | 9 | 34 | 18.555556 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0.197605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 |
d45af73bc05b92688ab3e8deb24d61a1310874fd | 479 | py | Python | source/Figure.py | kat0lia/python_qa_oop | ca11ccae990b85e7dadd31ffbd4e976f544d1527 | [
"MIT"
] | null | null | null | source/Figure.py | kat0lia/python_qa_oop | ca11ccae990b85e7dadd31ffbd4e976f544d1527 | [
"MIT"
] | null | null | null | source/Figure.py | kat0lia/python_qa_oop | ca11ccae990b85e7dadd31ffbd4e976f544d1527 | [
"MIT"
] | null | null | null | # new class Figure
class Figure:
def __init__(self, name, angles):
if self.__class__ == Figure:
raise Exception("abstract method")
self.name = name
self.angles = angles
def get_name(self):
return self.name
def get_angles(self):
return self.angles
de... | 22.809524 | 55 | 0.597077 | 58 | 479 | 4.741379 | 0.396552 | 0.12 | 0.101818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.313152 | 479 | 20 | 56 | 23.95 | 0.835866 | 0.033403 | 0 | 0 | 0 | 0 | 0.08243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.066667 | 0 | 0.133333 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
d4629336a567bbdbeb47b77d0534aed22f83d729 | 180 | py | Python | portfolio_pj/portfolio_app/models/context/blog_context.py | duynb92/portfolio_site | f6898e8d1c3a67aa8dc6eafc7e4804e81dc46063 | [
"MIT"
] | null | null | null | portfolio_pj/portfolio_app/models/context/blog_context.py | duynb92/portfolio_site | f6898e8d1c3a67aa8dc6eafc7e4804e81dc46063 | [
"MIT"
] | null | null | null | portfolio_pj/portfolio_app/models/context/blog_context.py | duynb92/portfolio_site | f6898e8d1c3a67aa8dc6eafc7e4804e81dc46063 | [
"MIT"
] | null | null | null | from base_context import BaseContext
class BlogContext(BaseContext):
def __init__(self,title,blogs):
self.blogs = blogs
super(BlogContext,self).__init__(title) | 30 | 47 | 0.733333 | 21 | 180 | 5.857143 | 0.619048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177778 | 180 | 6 | 47 | 30 | 0.831081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d463597c15a0dbf02666eb691df6f9ef07c304b7 | 537 | py | Python | eggd800/eggd800_hid.py | rsprouse/eggd800 | 840011b498053162ecc5a4e7fff2c3c58d60b294 | [
"BSD-3-Clause"
] | 2 | 2016-06-27T12:53:56.000Z | 2016-11-04T10:13:36.000Z | eggd800/eggd800_hid.py | rsprouse/eggd800 | 840011b498053162ecc5a4e7fff2c3c58d60b294 | [
"BSD-3-Clause"
] | null | null | null | eggd800/eggd800_hid.py | rsprouse/eggd800 | 840011b498053162ecc5a4e7fff2c3c58d60b294 | [
"BSD-3-Clause"
] | null | null | null | class EggD800HID(object):
'''ABC for EGG-D800 HID elements.'''
def __init__(self):
self.report_num = None
self.packed_fmt = None
@property
def output_report(self):
pass
def get_input_report(self):
'''Get an input report from the HID handle.'''
return... | 29.833333 | 73 | 0.636872 | 71 | 537 | 4.56338 | 0.492958 | 0.154321 | 0.148148 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.26257 | 537 | 17 | 74 | 31.588235 | 0.80303 | 0.221601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0.090909 | 0 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
d4648d99004ba1fe3cef916e345aba38249263d9 | 49 | py | Python | api/config.py | sairam1318/okta_tools_with_test_cases | eb63debc332a77df6f94e72881f4b149177d8f68 | [
"MIT"
] | 1 | 2021-08-23T12:15:41.000Z | 2021-08-23T12:15:41.000Z | api/config.py | sairam1318/okta_tools_with_test_cases | eb63debc332a77df6f94e72881f4b149177d8f68 | [
"MIT"
] | 22 | 2021-08-11T18:40:10.000Z | 2021-11-27T19:55:29.000Z | api/config.py | sairam1318/okta_tools_with_test_cases | eb63debc332a77df6f94e72881f4b149177d8f68 | [
"MIT"
] | 1 | 2021-09-17T07:24:25.000Z | 2021-09-17T07:24:25.000Z | database = "metadata.db"
log_file = "logger.txt"
| 16.333333 | 24 | 0.714286 | 7 | 49 | 4.857143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122449 | 49 | 2 | 25 | 24.5 | 0.790698 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 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 |
00fc737aa25351f7d37dbc0cebd55216b61d40ba | 921 | py | Python | tests/article_test.py | gichimux/news_highlight_0.1 | c085db3b80944bc18960b4896c7cb8d2a15bd305 | [
"MIT"
] | null | null | null | tests/article_test.py | gichimux/news_highlight_0.1 | c085db3b80944bc18960b4896c7cb8d2a15bd305 | [
"MIT"
] | null | null | null | tests/article_test.py | gichimux/news_highlight_0.1 | c085db3b80944bc18960b4896c7cb8d2a15bd305 | [
"MIT"
] | null | null | null | import unittest
from app.models import Article
class TestArticle(unittest.TestCase):
'''
test the behaviour of the article class
'''
def setUp(self):
'''
test that will run before every test
'''
self.new_article = Article('source','http://img.com','doe', 'article','some ... | 36.84 | 128 | 0.651466 | 114 | 921 | 5.184211 | 0.412281 | 0.094755 | 0.189509 | 0.260575 | 0.42132 | 0.121827 | 0 | 0 | 0 | 0 | 0 | 0.038514 | 0.210641 | 921 | 24 | 129 | 38.375 | 0.774415 | 0.127036 | 0 | 0 | 0 | 0 | 0.185984 | 0 | 0 | 0 | 0 | 0 | 0.538462 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.384615 | 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 |
2e1108d3d980545607bbd1eeca934863291f7343 | 59 | py | Python | problem/10000~19999/17362/17362.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 1 | 2019-04-19T16:37:44.000Z | 2019-04-19T16:37:44.000Z | problem/10000~19999/17362/17362.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 1 | 2019-04-20T11:42:44.000Z | 2019-04-20T11:42:44.000Z | problem/10000~19999/17362/17362.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 3 | 2019-04-19T16:37:47.000Z | 2021-10-25T00:45:00.000Z | n=(int(input())-1)%8
if n<5: print(n+1)
else: print(10-n-1) | 19.666667 | 20 | 0.59322 | 16 | 59 | 2.1875 | 0.625 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12963 | 0.084746 | 59 | 3 | 21 | 19.666667 | 0.518519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
2e1348cdd96bf8db7441dffcfef2ba683042bf46 | 350 | py | Python | tf1x/analysis/lambda_analyzer.py | dpaiton/DeepSparseCoding | 5ea01fa8770794df5e13743aa3f2d85297c27eb1 | [
"MIT"
] | 12 | 2017-04-27T17:19:31.000Z | 2021-11-07T03:37:59.000Z | tf1x/analysis/lambda_analyzer.py | dpaiton/DeepSparseCoding | 5ea01fa8770794df5e13743aa3f2d85297c27eb1 | [
"MIT"
] | 12 | 2018-03-21T01:16:25.000Z | 2022-02-10T00:21:58.000Z | tf1x/analysis/lambda_analyzer.py | dpaiton/DeepSparseCoding | 5ea01fa8770794df5e13743aa3f2d85297c27eb1 | [
"MIT"
] | 12 | 2017-02-01T19:49:57.000Z | 2021-12-08T03:16:58.000Z | from DeepSparseCoding.tf1x.analysis.base_analyzer import Analyzer
class LambdaAnalyzer(Analyzer):
def __init__(self):
super(LambdaAnalyzer, self).__init__()
self.var_names = ["mlp/layer0/conv_w_0:0"]
def run_analysis(self, images, labels, save_info=""):
super(LambdaAnalyzer, self).run_analysis(images,... | 35 | 81 | 0.765714 | 46 | 350 | 5.456522 | 0.543478 | 0.095618 | 0.183267 | 0.159363 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012903 | 0.114286 | 350 | 9 | 82 | 38.888889 | 0.796774 | 0 | 0 | 0 | 0 | 0 | 0.06 | 0.06 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2e22cbfae31daa8efb72cee9cc0ba5eb00e14212 | 1,279 | py | Python | surrogates/_nbdev.py | allswellthatsmaxwell/surrogates | 840e011459aa690f30dc1816c19f50c7ee75db37 | [
"Apache-2.0"
] | null | null | null | surrogates/_nbdev.py | allswellthatsmaxwell/surrogates | 840e011459aa690f30dc1816c19f50c7ee75db37 | [
"Apache-2.0"
] | null | null | null | surrogates/_nbdev.py | allswellthatsmaxwell/surrogates | 840e011459aa690f30dc1816c19f50c7ee75db37 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED BY NBDEV! DO NOT EDIT!
__all__ = ["index", "modules", "custom_doc_links", "git_url"]
index = {"length": "ch01_problem01.ipynb",
"DataManager": "ch01_problem01.ipynb",
"attach_std": "ch01_problem01.ipynb",
"plot_scatter": "ch01_problem01.ipynb",
"plot_predictions_act... | 38.757576 | 62 | 0.661454 | 138 | 1,279 | 5.775362 | 0.434783 | 0.195734 | 0.248432 | 0.110414 | 0.124216 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081317 | 0.192338 | 1,279 | 32 | 63 | 39.96875 | 0.690223 | 0.028147 | 0 | 0 | 1 | 0 | 0.634972 | 0.039484 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0 | 0.04 | 0.04 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2e2b069034ed1be33ddd12d68b578fd9be8b8b14 | 114 | py | Python | logbunker/apps/all/boot_all.py | parada3desu/logbunker | 1cc3f197c0d1662946ef65bb9f97a89f625d0c1b | [
"MIT"
] | null | null | null | logbunker/apps/all/boot_all.py | parada3desu/logbunker | 1cc3f197c0d1662946ef65bb9f97a89f625d0c1b | [
"MIT"
] | null | null | null | logbunker/apps/all/boot_all.py | parada3desu/logbunker | 1cc3f197c0d1662946ef65bb9f97a89f625d0c1b | [
"MIT"
] | 1 | 2021-12-28T15:20:20.000Z | 2021-12-28T15:20:20.000Z | from logbunker.apps.all.FullServer import FullServer
def boot_all():
server = FullServer()
server.run()
| 16.285714 | 52 | 0.719298 | 14 | 114 | 5.785714 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175439 | 114 | 6 | 53 | 19 | 0.861702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2e35c6acc03e6b7632276b4cc92cbd9f40116245 | 309 | py | Python | dtreeplacement_web/main.py | Renophaston/dtreeplacement-web | 4b69fbe8af9f45ce4c8cebc98a4bffdc46a6c868 | [
"MIT"
] | null | null | null | dtreeplacement_web/main.py | Renophaston/dtreeplacement-web | 4b69fbe8af9f45ce4c8cebc98a4bffdc46a6c868 | [
"MIT"
] | null | null | null | dtreeplacement_web/main.py | Renophaston/dtreeplacement-web | 4b69fbe8af9f45ce4c8cebc98a4bffdc46a6c868 | [
"MIT"
] | null | null | null | """Main entry point; starts the server."""
from app import app, db
import views # routes, etc
import models # database models
from items.blueprint import items
app.register_blueprint(items, url_prefix='/items')
# only start if this script is being run explicitly
if __name__ == '__main__':
app.run()
| 23.769231 | 51 | 0.737864 | 45 | 309 | 4.844444 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165049 | 309 | 12 | 52 | 25.75 | 0.844961 | 0.372168 | 0 | 0 | 0 | 0 | 0.075269 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.571429 | 0 | 0.571429 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2e4ebd8a30a564c806fa432982f5375c1b22c000 | 48 | py | Python | week-01/02-core-elements/ex-03-happy/happy.py | jersson/mit-intro-cs-python | 4c6232209ed47afcea2fb153ff7fc4aedbd21d52 | [
"MIT"
] | null | null | null | week-01/02-core-elements/ex-03-happy/happy.py | jersson/mit-intro-cs-python | 4c6232209ed47afcea2fb153ff7fc4aedbd21d52 | [
"MIT"
] | null | null | null | week-01/02-core-elements/ex-03-happy/happy.py | jersson/mit-intro-cs-python | 4c6232209ed47afcea2fb153ff7fc4aedbd21d52 | [
"MIT"
] | null | null | null | happy = 3
if happy > 2:
print('hello world') | 16 | 24 | 0.604167 | 8 | 48 | 3.625 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.25 | 48 | 3 | 24 | 16 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.22449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
2e82a1e2e1d77f2da05daca8d44b6b3a4a53c86b | 126 | py | Python | release/stubs.min/Tekla/Structures/ModelInternal_parts/dotSaveOperation_t.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Tekla/Structures/ModelInternal_parts/dotSaveOperation_t.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Tekla/Structures/ModelInternal_parts/dotSaveOperation_t.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | class dotSaveOperation_t(object):
# no doc
aComment = None
aID = None
aSaveAsPath = None
Operation = None
| 18 | 33 | 0.642857 | 14 | 126 | 5.714286 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.293651 | 126 | 6 | 34 | 21 | 0.898876 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 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 |
cf0d1eae104af773028cd50528be5f7a82b47eeb | 8,526 | py | Python | surfstat/tests/test_SurfStatP.py | rudimeier/BrainStat | a5ef474ffd70300ecf5fa464fff4a41e71f4b7a1 | [
"BSD-3-Clause"
] | null | null | null | surfstat/tests/test_SurfStatP.py | rudimeier/BrainStat | a5ef474ffd70300ecf5fa464fff4a41e71f4b7a1 | [
"BSD-3-Clause"
] | null | null | null | surfstat/tests/test_SurfStatP.py | rudimeier/BrainStat | a5ef474ffd70300ecf5fa464fff4a41e71f4b7a1 | [
"BSD-3-Clause"
] | null | null | null | import sys
sys.path.append("python")
from SurfStatP import *
import surfstat_wrap as sw
from scipy.io import loadmat
import numpy as np
import pytest
sw.matlab_init_surfstat()
def dummy_test(slm, mask=None, clusthresh=0.001):
try:
# wrap matlab functions
M_pval, M_peak, M_clus, M_clusid = sw.matl... | 28.804054 | 76 | 0.529439 | 1,266 | 8,526 | 3.512638 | 0.113744 | 0.130425 | 0.05172 | 0.080953 | 0.759388 | 0.741624 | 0.692377 | 0.671014 | 0.663369 | 0.648077 | 0 | 0.056292 | 0.24783 | 8,526 | 295 | 77 | 28.901695 | 0.637143 | 0.090195 | 0 | 0.743243 | 0 | 0 | 0.112003 | 0.002849 | 0 | 0 | 0 | 0 | 0.004505 | 1 | 0.076577 | false | 0 | 0.027027 | 0 | 0.103604 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cf2103a13fd2c31be69f8123eb02a308f7ac6662 | 580 | py | Python | lab-server/controller/lsc/commands/environment.py | CoderDojoTC/python-minecraft | d78ff6d30e47b887f5db12f23de81dd716576c0b | [
"MIT"
] | 31 | 2015-01-30T22:30:55.000Z | 2022-02-12T17:10:26.000Z | lab-server/controller/lsc/commands/environment.py | mikemccllstr/mikemccllstr-python-minecraft | b1765ad7bb39dfad00944a7d8fa914484c88f95a | [
"MIT"
] | 16 | 2015-01-20T23:56:43.000Z | 2016-01-03T04:14:04.000Z | lab-server/controller/lsc/commands/environment.py | mikemccllstr/mikemccllstr-python-minecraft | b1765ad7bb39dfad00944a7d8fa914484c88f95a | [
"MIT"
] | 24 | 2015-02-21T22:52:43.000Z | 2021-12-14T00:18:34.000Z | ''' Command line handlers that help produce the actual directory files
'''
import logging
import os
from cliff.lister import Lister
class Test(Lister):
"""Checks the environment.
It confirms that the config file is present. It validates that the
information in the config file allows it to reach the Con... | 24.166667 | 70 | 0.656897 | 79 | 580 | 4.734177 | 0.683544 | 0.037433 | 0.069519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253448 | 580 | 23 | 71 | 25.217391 | 0.863741 | 0.455172 | 0 | 0 | 0 | 0 | 0.031469 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0.111111 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
cf26a5d98a58c4c78345cfe840552e2013bcc3cf | 237 | py | Python | train_scripts/src/__init__.py | cambridgeltl/MirrorWiC | a0b6ed5ff980f0ed92d84640f07729b6e02f1f6f | [
"MIT"
] | 3 | 2021-11-01T07:14:47.000Z | 2022-03-28T02:52:51.000Z | train_scripts/src/__init__.py | cambridgeltl/MirrorWiC | a0b6ed5ff980f0ed92d84640f07729b6e02f1f6f | [
"MIT"
] | 1 | 2021-10-03T09:27:07.000Z | 2022-02-16T14:28:11.000Z | train_scripts/src/__init__.py | cambridgeltl/MirrorWiC | a0b6ed5ff980f0ed92d84640f07729b6e02f1f6f | [
"MIT"
] | null | null | null | from .data_loader import (
DictionaryDataset,
QueryDataset,
QueryDataset_pretraining,
MetricLearningDataset_pairwise,
)
from .metric_learning import Sap_Metric_Learning_pairwise
from .model_wrapper import Model_Wrapper
| 21.545455 | 57 | 0.814346 | 24 | 237 | 7.666667 | 0.583333 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147679 | 237 | 10 | 58 | 23.7 | 0.910891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.375 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
cf37e112e99a21244b13b9754451ab84c63e1c33 | 50 | py | Python | dask_bigquery/__init__.py | bnaul/dask-bigquery | d4fb0bbfe62334ed5bd51d026af9c398a416de51 | [
"BSD-3-Clause"
] | null | null | null | dask_bigquery/__init__.py | bnaul/dask-bigquery | d4fb0bbfe62334ed5bd51d026af9c398a416de51 | [
"BSD-3-Clause"
] | null | null | null | dask_bigquery/__init__.py | bnaul/dask-bigquery | d4fb0bbfe62334ed5bd51d026af9c398a416de51 | [
"BSD-3-Clause"
] | null | null | null | from .core import read_gbq
__version__ = "0.0.1"
| 12.5 | 26 | 0.72 | 9 | 50 | 3.444444 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.16 | 50 | 3 | 27 | 16.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.1 | 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 |
cf38489d6bb3925b3cce942db72cb8b3df3fe66f | 229 | py | Python | modules/users/domain/entities/get_user.py | eduardolujan/hexagonal_architecture_django | 8055927cb460bc40f3a2651c01a9d1da696177e8 | [
"BSD-3-Clause"
] | 6 | 2020-08-09T23:41:08.000Z | 2021-03-16T22:05:40.000Z | modules/users/domain/entities/get_user.py | eduardolujan/hexagonal_architecture_django | 8055927cb460bc40f3a2651c01a9d1da696177e8 | [
"BSD-3-Clause"
] | 1 | 2020-10-02T02:59:38.000Z | 2020-10-02T02:59:38.000Z | modules/users/domain/entities/get_user.py | eduardolujan/hexagonal_architecture_django | 8055927cb460bc40f3a2651c01a9d1da696177e8 | [
"BSD-3-Clause"
] | 2 | 2021-03-16T22:05:43.000Z | 2021-04-30T06:35:25.000Z | # -*- coding: utf-8 -*-
from dataclasses import dataclass
from modules.shared.domain.entities import Entity
from modules.users.domain.value_objects import UserId
@dataclass(frozen=True)
class GetUser(Entity):
id: UserId
| 17.615385 | 53 | 0.764192 | 30 | 229 | 5.8 | 0.7 | 0.126437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005051 | 0.135371 | 229 | 12 | 54 | 19.083333 | 0.873737 | 0.091703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
cf8a2516c74eec14032dbf8b8ab0f31caf066c59 | 149 | py | Python | okta/models/user/ResetPasswordToken.py | xmercury-qb/okta-sdk-python | a668a963b13fc61177b36c5438c6ec5fa6f17c4e | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-09-09T12:59:19.000Z | 2020-09-09T12:59:19.000Z | okta/models/user/ResetPasswordToken.py | xmercury-qb/okta-sdk-python | a668a963b13fc61177b36c5438c6ec5fa6f17c4e | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2018-01-05T20:23:12.000Z | 2019-03-06T12:00:58.000Z | okta/models/user/ResetPasswordToken.py | xmercury-qb/okta-sdk-python | a668a963b13fc61177b36c5438c6ec5fa6f17c4e | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2018-11-08T19:32:46.000Z | 2021-03-30T06:35:48.000Z | class ResetPasswordToken:
types = {
'resetPasswordUrl': str
}
def __init__(self):
self.resetPasswordUrl = None # str
| 14.9 | 43 | 0.597315 | 12 | 149 | 7.083333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.315436 | 149 | 9 | 44 | 16.555556 | 0.833333 | 0.020134 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.5 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d84625bdb3643d399098bd219e1fb95ad614bb9e | 1,271 | py | Python | docs/spectral_clustering/scikit_example.py | wsgan001/AnomalyDetection | 397673dc6ce978361a3fc6f2fd34879f69bc962a | [
"MIT"
] | null | null | null | docs/spectral_clustering/scikit_example.py | wsgan001/AnomalyDetection | 397673dc6ce978361a3fc6f2fd34879f69bc962a | [
"MIT"
] | null | null | null | docs/spectral_clustering/scikit_example.py | wsgan001/AnomalyDetection | 397673dc6ce978361a3fc6f2fd34879f69bc962a | [
"MIT"
] | 1 | 2020-03-16T21:50:52.000Z | 2020-03-16T21:50:52.000Z | # -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from sklearn.cluster import spectral_clustering
from sklearn.cluster import k_means
from sklearn.manifold import spectral_embedding
from sklearn.utils import check_random_state
def assign_undirected_weig... | 24.921569 | 78 | 0.720692 | 235 | 1,271 | 3.702128 | 0.353191 | 0.165517 | 0.227586 | 0.237931 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048358 | 0.137687 | 1,271 | 50 | 79 | 25.42 | 0.745438 | 0.100708 | 0 | 0 | 0 | 0 | 0.015817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.179487 | null | null | 0.153846 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d8528c5a6e2eafa73109ca62a892ba9b373a8024 | 209 | py | Python | pizza_cutter_metadetect/tests/test_split_range.py | beckermr/pizza-cutter-metadetect | 206d16f42a8f6b340f4c91347010dc13ee643fb2 | [
"BSD-3-Clause"
] | null | null | null | pizza_cutter_metadetect/tests/test_split_range.py | beckermr/pizza-cutter-metadetect | 206d16f42a8f6b340f4c91347010dc13ee643fb2 | [
"BSD-3-Clause"
] | 21 | 2021-03-30T11:42:32.000Z | 2021-11-23T01:10:12.000Z | pizza_cutter_metadetect/tests/test_split_range.py | beckermr/pizza-cutter-metadetect | 206d16f42a8f6b340f4c91347010dc13ee643fb2 | [
"BSD-3-Clause"
] | null | null | null | from ..run_metadetect import split_range
def test_split_range():
rstr = "13:16"
start, end_plus_one, num = split_range(rstr)
assert start == 13
assert end_plus_one == 16
assert num == 3
| 19 | 48 | 0.669856 | 32 | 209 | 4.09375 | 0.5625 | 0.229008 | 0.21374 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05625 | 0.23445 | 209 | 10 | 49 | 20.9 | 0.7625 | 0 | 0 | 0 | 0 | 0 | 0.023923 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 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 |
d86da439448d3e3785c703f6f057a1048576477e | 52 | py | Python | src/skywatch/__init__.py | medwig/skywatch-python-client | a240601ce54316e749a24c8dfd4d1363780b2645 | [
"Apache-2.0"
] | 1 | 2021-08-12T18:25:34.000Z | 2021-08-12T18:25:34.000Z | src/skywatch/__init__.py | medwig/skywatch-python-client | a240601ce54316e749a24c8dfd4d1363780b2645 | [
"Apache-2.0"
] | null | null | null | src/skywatch/__init__.py | medwig/skywatch-python-client | a240601ce54316e749a24c8dfd4d1363780b2645 | [
"Apache-2.0"
] | null | null | null | __version__ = "0.1.0"
from .client import (Client)
| 13 | 28 | 0.692308 | 8 | 52 | 4 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 0.153846 | 52 | 3 | 29 | 17.333333 | 0.659091 | 0 | 0 | 0 | 0 | 0 | 0.096154 | 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 |
d878bf25c20ac657ca0f9083d2f7b2b4b1fb401e | 269 | py | Python | test.py | greysou1/Million-Song-Dataset-HDF5-to-CSV | 717270af89b37be8afe294160531d4104e49061c | [
"MIT"
] | null | null | null | test.py | greysou1/Million-Song-Dataset-HDF5-to-CSV | 717270af89b37be8afe294160531d4104e49061c | [
"MIT"
] | null | null | null | test.py | greysou1/Million-Song-Dataset-HDF5-to-CSV | 717270af89b37be8afe294160531d4104e49061c | [
"MIT"
] | null | null | null | import hdf5_getters
import numpy as np
f = 'MillionSongSubset/A/A/A/TRAAAAW128F429D538.h5'
songH5File = hdf5_getters.open_h5_file_read(f)
print(np.array(songH5File['analysis']))
print(np.array(songH5File['metadata']['songs']))
print(np.array(songH5File['musicbrainz'])) | 38.428571 | 51 | 0.788104 | 38 | 269 | 5.447368 | 0.552632 | 0.101449 | 0.173913 | 0.318841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.052045 | 269 | 7 | 52 | 38.428571 | 0.745098 | 0 | 0 | 0 | 0 | 0 | 0.285185 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
d88a6979b97821e3481a250ce4e7fa48602e1dce | 2,703 | py | Python | thirdparty/jsonpath/jsonpath_demo.py | gwaysoft/python | a74a0b553dfca9606083a41ab6d03801e67d2467 | [
"Apache-2.0"
] | null | null | null | thirdparty/jsonpath/jsonpath_demo.py | gwaysoft/python | a74a0b553dfca9606083a41ab6d03801e67d2467 | [
"Apache-2.0"
] | null | null | null | thirdparty/jsonpath/jsonpath_demo.py | gwaysoft/python | a74a0b553dfca9606083a41ab6d03801e67d2467 | [
"Apache-2.0"
] | null | null | null | import jsonpath
rules = [{
"Name": "AWS-AWSManagedRulesCommonRuleSet",
"Priority": 0,
"Statement": {
"ManagedRuleGroupStatement": {
"VendorName": "AWS",
"Name": "AWSManagedRulesCommonRuleSet",
"ExcludedRules": [
... | 36.527027 | 190 | 0.539771 | 151 | 2,703 | 9.602649 | 0.271523 | 0.234483 | 0.25931 | 0.165517 | 0.445517 | 0.338621 | 0.297931 | 0 | 0 | 0 | 0 | 0.008197 | 0.322974 | 2,703 | 73 | 191 | 37.027397 | 0.784153 | 0.197928 | 0 | 0.037736 | 0 | 0 | 0.418831 | 0.258813 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018868 | 0 | 0.018868 | 0.056604 | 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 |
d8c4ea46aa4f19cc8631d22fa760c8d3bbb0cd3b | 574 | py | Python | blm/smaple.py | tanico-rikudo/raspi4 | ead6064ee5eaf0fb3459487047903aeb031189b7 | [
"MIT"
] | null | null | null | blm/smaple.py | tanico-rikudo/raspi4 | ead6064ee5eaf0fb3459487047903aeb031189b7 | [
"MIT"
] | null | null | null | blm/smaple.py | tanico-rikudo/raspi4 | ead6064ee5eaf0fb3459487047903aeb031189b7 | [
"MIT"
] | null | null | null | import pigpio
import time
motor_pin = 27 #メモしたGPIO番号
pi = pigpio.pi()
for i in range(3):
pi.set_servo_pulsewidth(motor_pin, 1500)
time.sleep(1)
pi.set_servo_pulsewidth(motor_pin, 1600)
time.sleep(1)
pi.set_servo_pulsewidth(motor_pin, 1700)
time.sleep(1)
pi.se... | 23.916667 | 49 | 0.649826 | 85 | 574 | 4.129412 | 0.305882 | 0.182336 | 0.19943 | 0.39886 | 0.729345 | 0.729345 | 0.649573 | 0.649573 | 0.649573 | 0 | 0 | 0.078886 | 0.249129 | 574 | 23 | 50 | 24.956522 | 0.735499 | 0.017422 | 0 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d8c75761438f5db5fd3e25275def786d07040e58 | 4,006 | py | Python | pysnmp-with-texts/TRAPEZE-NETWORKS-LICENSE-FEATURE-TC-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/TRAPEZE-NETWORKS-LICENSE-FEATURE-TC-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/TRAPEZE-NETWORKS-LICENSE-FEATURE-TC-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module TRAPEZE-NETWORKS-LICENSE-FEATURE-TC-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TRAPEZE-NETWORKS-LICENSE-FEATURE-TC-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:27:11 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwan... | 129.225806 | 653 | 0.792312 | 426 | 4,006 | 7.446009 | 0.469484 | 0.056747 | 0.033102 | 0.064628 | 0.200504 | 0.138083 | 0.105927 | 0.105927 | 0.105927 | 0.105927 | 0 | 0.058775 | 0.08687 | 4,006 | 30 | 654 | 133.533333 | 0.808365 | 0.092861 | 0 | 0 | 0 | 0.190476 | 0.502897 | 0.112276 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
d8e317420bcb4318381f6ab240157f6c2b835cf4 | 1,063 | py | Python | t_interval.py | avilene/mplus.subcreation.net | c141246a2d9257843f8f999a1a6c57630cc41044 | [
"MIT"
] | 31 | 2020-01-06T02:26:31.000Z | 2022-02-11T00:11:58.000Z | t_interval.py | MyOneTaps/mplus.subcreation.net | 974c688e0d0dc4cbd1bc5b7e331357f629209caa | [
"MIT"
] | 12 | 2020-04-27T12:04:55.000Z | 2022-03-16T01:34:52.000Z | t_interval.py | MyOneTaps/mplus.subcreation.net | 974c688e0d0dc4cbd1bc5b7e331357f629209caa | [
"MIT"
] | 12 | 2019-01-01T15:19:28.000Z | 2022-01-24T04:01:02.000Z | # 95% confidence intervals
def t_interval(n):
t_table = {}
t_table[1] = 12.71
t_table[2] = 4.303
t_table[3] = 3.182
t_table[4] = 2.776
t_table[5] = 2.571
t_table[6] = 2.447
t_table[7] = 2.365
t_table[8] = 2.306
t_table[9] = 2.262
t_table[10] = 2.228
t_table[1... | 22.617021 | 37 | 0.502352 | 206 | 1,063 | 2.402913 | 0.412621 | 0.460606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.291429 | 0.341486 | 1,063 | 46 | 38 | 23.108696 | 0.415714 | 0.022578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0 | 0 | 0.046512 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d8fd8c54d113a165c0f3d8ef1e584b56b25eb1fa | 7,793 | py | Python | project_1/src/models/face_attr_net.py | kkaryl/AI6126-Advanced_Computer_Vision | 6a55fe02f3267dc295b001f88df595e649c1fd31 | [
"MIT"
] | 3 | 2020-12-28T06:58:31.000Z | 2021-08-30T16:47:03.000Z | project_1/src/models/face_attr_net.py | kkaryl/AI6126-Advanced_Computer_Vision | 6a55fe02f3267dc295b001f88df595e649c1fd31 | [
"MIT"
] | null | null | null | project_1/src/models/face_attr_net.py | kkaryl/AI6126-Advanced_Computer_Vision | 6a55fe02f3267dc295b001f88df595e649c1fd31 | [
"MIT"
] | 2 | 2020-12-28T06:57:56.000Z | 2022-01-15T09:04:53.000Z | import os
import torch.nn as nn
import torch
import shutil
import torchvision.models as tvmodels
__all__ = ['FaceAttrResNet', 'FaceAttrMobileNetV2', 'FaceAttrResNeXt']
class FC_Block(nn.Module):
def __init__(self, inplanes, planes, drop_rate=0.15):
super(FC_Block, self).__init__()
self.fc = nn.Li... | 40.170103 | 89 | 0.625818 | 928 | 7,793 | 5.016164 | 0.154095 | 0.07218 | 0.046402 | 0.046402 | 0.740709 | 0.728464 | 0.702256 | 0.674544 | 0.666165 | 0.666165 | 0 | 0.018328 | 0.264853 | 7,793 | 194 | 90 | 40.170103 | 0.794205 | 0.036058 | 0 | 0.635802 | 0 | 0 | 0.114194 | 0.002935 | 0 | 0 | 0 | 0 | 0.012346 | 1 | 0.104938 | false | 0 | 0.030864 | 0.006173 | 0.216049 | 0.074074 | 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 |
d8fe5290a12f3a4c8e25f61a344ec7e8a1fe5fbb | 189 | py | Python | collect_herbs.py | Wang-Haolong/Python_learning | 804a195a2b1973def8fa9598feb6995760a750bc | [
"MIT"
] | null | null | null | collect_herbs.py | Wang-Haolong/Python_learning | 804a195a2b1973def8fa9598feb6995760a750bc | [
"MIT"
] | null | null | null | collect_herbs.py | Wang-Haolong/Python_learning | 804a195a2b1973def8fa9598feb6995760a750bc | [
"MIT"
] | null | null | null | t,m=map(int,input().split())
val=[0 for i in range(t+1)]
for i in range(m):
c,v=map(int,input().split())
for j in range(c,t+1):
val[j-c]=max(val[j-c],val[j]+v)
print(val[0]) | 27 | 39 | 0.560847 | 45 | 189 | 2.355556 | 0.4 | 0.198113 | 0.207547 | 0.301887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025478 | 0.169312 | 189 | 7 | 40 | 27 | 0.649682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2b01590a5a4dc9d93694aef38a0591787ee07a24 | 116 | py | Python | manta/version.py | eait-itig/python-manta | 788667555e915ced7ea1f68c8343cdcce5fc7966 | [
"MIT"
] | null | null | null | manta/version.py | eait-itig/python-manta | 788667555e915ced7ea1f68c8343cdcce5fc7966 | [
"MIT"
] | null | null | null | manta/version.py | eait-itig/python-manta | 788667555e915ced7ea1f68c8343cdcce5fc7966 | [
"MIT"
] | null | null | null | # Copyright (c) 2018, Joyent, Inc.
__version_info__ = (2, 6, 2)
__version__ = ".".join(map(str, __version_info__))
| 23.2 | 50 | 0.681034 | 16 | 116 | 4.0625 | 0.75 | 0.338462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07 | 0.137931 | 116 | 4 | 51 | 29 | 0.58 | 0.275862 | 0 | 0 | 0 | 0 | 0.012195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2b0193614052ff2b0a52964acd0c898903fc68bb | 291 | py | Python | cc-py/check_pw.py | srufle/cracking-codes | 1581303d7d379a346f8e046b9e1a14d3abd283d9 | [
"BSD-3-Clause"
] | null | null | null | cc-py/check_pw.py | srufle/cracking-codes | 1581303d7d379a346f8e046b9e1a14d3abd283d9 | [
"BSD-3-Clause"
] | null | null | null | cc-py/check_pw.py | srufle/cracking-codes | 1581303d7d379a346f8e046b9e1a14d3abd283d9 | [
"BSD-3-Clause"
] | null | null | null | import getpass
print("Enter your password:")
password = "secret"
typed_password = "SOME"
while password != typed_password:
typed_password = getpass.getpass() ##input()
if typed_password == password:
print("Access Granted !")
else:
print("Access DENIED - HAxr")
| 24.25 | 49 | 0.666667 | 32 | 291 | 5.9375 | 0.53125 | 0.273684 | 0.221053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209622 | 291 | 11 | 50 | 26.454545 | 0.826087 | 0.024055 | 0 | 0 | 0 | 0 | 0.234043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.7 | 0.1 | 0 | 0.1 | 0.3 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
2b0b677aa03a25a1d77cef108bbf856e5f569d7f | 425 | py | Python | leaphue.py | oflisback/leaphue | 5d9dc916f906d79457f28b5aaa8c618a5cfe6ed6 | [
"MIT"
] | 11 | 2015-09-21T16:28:41.000Z | 2021-07-11T11:03:01.000Z | leaphue.py | oflisback/leaphue | 5d9dc916f906d79457f28b5aaa8c618a5cfe6ed6 | [
"MIT"
] | null | null | null | leaphue.py | oflisback/leaphue | 5d9dc916f906d79457f28b5aaa8c618a5cfe6ed6 | [
"MIT"
] | 1 | 2017-10-16T03:39:37.000Z | 2017-10-16T03:39:37.000Z | # use lillfingret instead of longfingret :)
# keep color when moving to other light
from huecontroller import HueController
from framelistener import FrameListener
from plotter import Plotter
import Leap
frame_listener = FrameListener()
leap_controller = Leap.Controller()
leap_controller.add_listener(frame_listener)
... | 22.368421 | 46 | 0.823529 | 51 | 425 | 6.705882 | 0.509804 | 0.152047 | 0.105263 | 0.163743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127059 | 425 | 18 | 47 | 23.611111 | 0.921833 | 0.185882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
2b0ba3a0fde8de985cb174c8551d192545e1a738 | 399 | py | Python | src/modules.py | h1n054ur/pyredditcord | 7cd197a44d1d9d2e3414e7d657fcf0f9117a8c26 | [
"Unlicense"
] | 1 | 2021-06-07T23:55:28.000Z | 2021-06-07T23:55:28.000Z | src/modules.py | h1n054ur/pyredditcord | 7cd197a44d1d9d2e3414e7d657fcf0f9117a8c26 | [
"Unlicense"
] | null | null | null | src/modules.py | h1n054ur/pyredditcord | 7cd197a44d1d9d2e3414e7d657fcf0f9117a8c26 | [
"Unlicense"
] | null | null | null | import os
import sys
import time
import json
import httpx
import imgbbpy
import discord
import platform
import textwrap
from asyncio import sleep
from bs4 import BeautifulSoup
from discord.utils import get
from pygicord import Paginator
from dotenv import load_dotenv
from discord.ext import commands
from src.PillowShee... | 22.166667 | 57 | 0.85213 | 58 | 399 | 5.827586 | 0.534483 | 0.065089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00289 | 0.132832 | 399 | 17 | 58 | 23.470588 | 0.973988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2b10f936449e9d246db7b9b557b903520238bb22 | 138 | py | Python | giswork/station_list.py | crschmidt/bluebikes | 561147d8e0190f161ac070e2d33d8022e0835cf7 | [
"Apache-2.0"
] | null | null | null | giswork/station_list.py | crschmidt/bluebikes | 561147d8e0190f161ac070e2d33d8022e0835cf7 | [
"Apache-2.0"
] | null | null | null | giswork/station_list.py | crschmidt/bluebikes | 561147d8e0190f161ac070e2d33d8022e0835cf7 | [
"Apache-2.0"
] | null | null | null | import json
d = json.load(open("station_information.json"))
for i in d['data']['stations']:
print "%.5f,%.5f" % (i['lat'], i['lon'])
| 23 | 47 | 0.594203 | 22 | 138 | 3.681818 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016807 | 0.137681 | 138 | 5 | 48 | 27.6 | 0.663866 | 0 | 0 | 0 | 0 | 0 | 0.369565 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2b1151b37bfe164191e783c6c2108005561b6945 | 264 | py | Python | zoomapi/__init__.py | swe-262-team/zoomapi | 6e1cce9f76417cff3859369569410b642cb19fa6 | [
"Apache-2.0"
] | 2 | 2020-04-04T16:29:39.000Z | 2020-04-22T05:29:46.000Z | zoomapi/__init__.py | swe-262-team/zoomapi | 6e1cce9f76417cff3859369569410b642cb19fa6 | [
"Apache-2.0"
] | 2 | 2020-04-04T00:30:29.000Z | 2020-04-04T00:31:51.000Z | zoomapi/__init__.py | swe-262-team/zoomapi | 6e1cce9f76417cff3859369569410b642cb19fa6 | [
"Apache-2.0"
] | 37 | 2020-03-31T17:43:32.000Z | 2021-01-31T13:27:47.000Z | """Python wrapper around the Zoom.us REST API"""
from zoomapi.jwtclient import JWTZoomClient
from zoomapi.oauthclient import OAuthZoomClient
from zoomapi.client import ZoomClient
__all__ = ["ZoomClient", "JWTZoomClient", "OAuthZoomClient"]
__version__ = "1.1.1"
| 29.333333 | 60 | 0.791667 | 31 | 264 | 6.483871 | 0.645161 | 0.164179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012766 | 0.109848 | 264 | 8 | 61 | 33 | 0.842553 | 0.159091 | 0 | 0 | 0 | 0 | 0.199074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2b3ce194eb137c1327bb17798e3ce1e1a1fad7db | 130 | py | Python | main.py | nanotaboada/python-samples-fastapi-restful | 33561956031d73005bb852f43dc470bc6ce8745b | [
"MIT"
] | null | null | null | main.py | nanotaboada/python-samples-fastapi-restful | 33561956031d73005bb852f43dc470bc6ce8745b | [
"MIT"
] | 7 | 2021-08-16T03:32:30.000Z | 2021-09-14T03:45:42.000Z | main.py | nanotaboada/python-samples-fastapi-restful | 33561956031d73005bb852f43dc470bc6ce8745b | [
"MIT"
] | null | null | null | # main.py
from fastapi import FastAPI
from routes import routes
fast_api = FastAPI()
fast_api.include_router(routes.api_router)
| 16.25 | 42 | 0.807692 | 20 | 130 | 5.05 | 0.5 | 0.138614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123077 | 130 | 7 | 43 | 18.571429 | 0.885965 | 0.053846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2b671bb11814955abad9feef78609770520502d0 | 103 | py | Python | lib/iostate.py | victorromeo/AudioMoth-Sync | 5ab1512d9b00f725db4d3ba5f146d42babb8389f | [
"MIT"
] | 1 | 2021-08-20T22:00:06.000Z | 2021-08-20T22:00:06.000Z | lib/iostate.py | victorromeo/AudioMoth-Sync | 5ab1512d9b00f725db4d3ba5f146d42babb8389f | [
"MIT"
] | null | null | null | lib/iostate.py | victorromeo/AudioMoth-Sync | 5ab1512d9b00f725db4d3ba5f146d42babb8389f | [
"MIT"
] | null | null | null | from enum import Enum, unique
@unique
class iostate(Enum):
Input = 0
Output = 1
Float = -1 | 14.714286 | 29 | 0.631068 | 15 | 103 | 4.333333 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040541 | 0.281553 | 103 | 7 | 30 | 14.714286 | 0.837838 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 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 |
991860ed8e66ca5378ba03d9cfdb7a71582bbb51 | 350 | py | Python | Entregable_S5.py | bertsms/Algoritmia_21-2 | 9f54a0f4ab0e4400be316a22e1006ac705c025d5 | [
"MIT"
] | null | null | null | Entregable_S5.py | bertsms/Algoritmia_21-2 | 9f54a0f4ab0e4400be316a22e1006ac705c025d5 | [
"MIT"
] | null | null | null | Entregable_S5.py | bertsms/Algoritmia_21-2 | 9f54a0f4ab0e4400be316a22e1006ac705c025d5 | [
"MIT"
] | null | null | null | def pedirDatos(nombre, ApellidoPaterno, ApellidoMaterno, clave, salon):
Datos = {Ana, Lopez, Hernandez, 170654, 1004}
print() # Nombre Completo: Ana Lopez Hernandez
print() # Clave: 170654
return Datos
datos1 = pedirDatos("Ana", 'Lopez', "Hernandez", 170654, 1004)
# {nombre: "Ana", apellidoPat... | 35 | 72 | 0.68 | 37 | 350 | 6.432432 | 0.486486 | 0.10084 | 0.214286 | 0.193277 | 0.226891 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120141 | 0.191429 | 350 | 10 | 73 | 35 | 0.720848 | 0 | 0 | 0.285714 | 0 | 0 | 0.072961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.285714 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
993c21215fd5035b2044f593d5917dc3db44dcb5 | 193 | py | Python | intro/part01-14_name_and_age/src/name_and_age.py | Hannah-Abi/python-pro-21 | 2ce32c4bf118054329d19afdf83c50561be1ada8 | [
"MIT"
] | null | null | null | intro/part01-14_name_and_age/src/name_and_age.py | Hannah-Abi/python-pro-21 | 2ce32c4bf118054329d19afdf83c50561be1ada8 | [
"MIT"
] | null | null | null | intro/part01-14_name_and_age/src/name_and_age.py | Hannah-Abi/python-pro-21 | 2ce32c4bf118054329d19afdf83c50561be1ada8 | [
"MIT"
] | null | null | null | # Write your solution here
name = input("What is your name? ")
year = int(input("Which year were you born? "))
print(f"Hi {name}, you will be {2021-year} years old at the end of the year 2021") | 48.25 | 82 | 0.694301 | 36 | 193 | 3.722222 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050314 | 0.176166 | 193 | 4 | 82 | 48.25 | 0.792453 | 0.124352 | 0 | 0 | 0 | 0.333333 | 0.696429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
99600f179b7b66cdd703d05a6ac11e63abfa3cda | 148 | py | Python | tests/fixtures/database.py | psbsgic/rabbitai | 769e120ba605d56ac076f810a549c38dac410c8e | [
"Apache-2.0"
] | null | null | null | tests/fixtures/database.py | psbsgic/rabbitai | 769e120ba605d56ac076f810a549c38dac410c8e | [
"Apache-2.0"
] | null | null | null | tests/fixtures/database.py | psbsgic/rabbitai | 769e120ba605d56ac076f810a549c38dac410c8e | [
"Apache-2.0"
] | 1 | 2021-07-09T16:29:50.000Z | 2021-07-09T16:29:50.000Z | default_db_extra = """{
"metadata_params": {},
"engine_params": {},
"metadata_cache_timeout": {},
"schemas_allowed_for_csv_upload": []
}"""
| 21.142857 | 38 | 0.648649 | 15 | 148 | 5.733333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 148 | 6 | 39 | 24.666667 | 0.671875 | 0 | 0 | 0 | 0 | 0 | 0.824324 | 0.391892 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
996cd2d39b26993409f6007d13659d9494bf2fca | 219 | py | Python | weebly/signals.py | multilanguagexyz/django-weebly | 83f33e86e3a7e2a1e68983868915c0af7efe0193 | [
"Apache-2.0"
] | 1 | 2020-09-18T03:52:12.000Z | 2020-09-18T03:52:12.000Z | weebly/signals.py | multilanguagexyz/django-weebly | 83f33e86e3a7e2a1e68983868915c0af7efe0193 | [
"Apache-2.0"
] | null | null | null | weebly/signals.py | multilanguagexyz/django-weebly | 83f33e86e3a7e2a1e68983868915c0af7efe0193 | [
"Apache-2.0"
] | null | null | null | from django.dispatch import Signal
webhooks_signal = Signal(providing_args=['event', 'weebly_auth', 'client_id', 'client_version', 'timestamp', 'data'])
app_installed_signal = Signal()
site_refreshed_signal = Signal()
| 36.5 | 117 | 0.776256 | 27 | 219 | 5.962963 | 0.740741 | 0.223602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086758 | 219 | 5 | 118 | 43.8 | 0.805 | 0 | 0 | 0 | 0 | 0 | 0.237443 | 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 |
997bd30e869c41f4c3df7c157ffe18c6dd1be99c | 89 | py | Python | 54 Try_Except_Finally/mian.py | codewithsandy/Python-Basic-Exp | 4c70ada4a042923a94301453c7bd76e704cd2989 | [
"MIT"
] | 3 | 2021-05-08T13:11:41.000Z | 2021-05-14T02:43:20.000Z | 54 Try_Except_Finally/mian.py | codewithsandy/Python-Basic-Exp | 4c70ada4a042923a94301453c7bd76e704cd2989 | [
"MIT"
] | null | null | null | 54 Try_Except_Finally/mian.py | codewithsandy/Python-Basic-Exp | 4c70ada4a042923a94301453c7bd76e704cd2989 | [
"MIT"
] | null | null | null | try:
f = open("my.txt")
except Exception as e:
print(e)
print("Important Stuff") | 14.833333 | 24 | 0.629213 | 14 | 89 | 4 | 0.857143 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213483 | 89 | 6 | 24 | 14.833333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.233333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.4 | 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 |
9982f03c457b0884157a309faa15ddec22c871ec | 145 | py | Python | config612.py | davidfergusonaz/davidtest | 63cca01e48d4f23386a654afec78d291d9e4d54d | [
"MIT"
] | null | null | null | config612.py | davidfergusonaz/davidtest | 63cca01e48d4f23386a654afec78d291d9e4d54d | [
"MIT"
] | null | null | null | config612.py | davidfergusonaz/davidtest | 63cca01e48d4f23386a654afec78d291d9e4d54d | [
"MIT"
] | 1 | 2018-03-05T19:42:13.000Z | 2018-03-05T19:42:13.000Z | provider "aws" {
access_key = "AKIAI2XAD2UG4NDBVVLQ"
secret_key = "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"
region = "${var.region}
}
| 24.166667 | 57 | 0.717241 | 13 | 145 | 7.846154 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090164 | 0.158621 | 145 | 5 | 58 | 29 | 0.745902 | 0 | 0 | 0 | 0 | 0 | 0.434483 | 0.275862 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
998c29bb45eda9c0043833a6996ad749b25509c8 | 22 | py | Python | module_cron/__init__.py | yhuiyang/gcm-server | c08bb62e9169fe34afeb9f49937057dcccbfef63 | [
"Apache-2.0"
] | null | null | null | module_cron/__init__.py | yhuiyang/gcm-server | c08bb62e9169fe34afeb9f49937057dcccbfef63 | [
"Apache-2.0"
] | null | null | null | module_cron/__init__.py | yhuiyang/gcm-server | c08bb62e9169fe34afeb9f49937057dcccbfef63 | [
"Apache-2.0"
] | null | null | null | __author__ = 'yhyang'
| 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 |
998d4226914ac209444248d703747c8e0fe2fc29 | 91 | py | Python | drnet/apps/__init__.py | jameszhou-gl/drnet | d8ff339f802425c3f7896ccd57c8995f69c43d28 | [
"MIT"
] | null | null | null | drnet/apps/__init__.py | jameszhou-gl/drnet | d8ff339f802425c3f7896ccd57c8995f69c43d28 | [
"MIT"
] | null | null | null | drnet/apps/__init__.py | jameszhou-gl/drnet | d8ff339f802425c3f7896ccd57c8995f69c43d28 | [
"MIT"
] | null | null | null | __all__ = ['util', 'main', 'evaluate', 'load_db_icu', 'parameters', 'run_all_experiments']
| 45.5 | 90 | 0.692308 | 11 | 91 | 5 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087912 | 91 | 1 | 91 | 91 | 0.662651 | 0 | 0 | 0 | 0 | 0 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9996eed7fa22530ab4f4f0436b783b70c4b1178e | 7,493 | py | Python | config.py | acesplit/pokeocean | c93b032159bc988413a2b74086e78c3dc19990f0 | [
"MIT"
] | null | null | null | config.py | acesplit/pokeocean | c93b032159bc988413a2b74086e78c3dc19990f0 | [
"MIT"
] | null | null | null | config.py | acesplit/pokeocean | c93b032159bc988413a2b74086e78c3dc19990f0 | [
"MIT"
] | null | null | null | # coding: utf-8
from datetime import datetime
DB_ENGINE = 'sqlite:///db.sqlite'
AREA_NAME = u'Omaha'
MAP_START = (41.364635, -96.158413)
MAP_END = (41.232025, -95.851332)
GRID = (15, 15) # row, column
CYCLES_PER_WORKER = 3
SCAN_RADIUS = 70
ACCOUNTS = [
('starrz4', '206739', 'ptc'),
('starrz3', '206739', 'ptc'),
('s... | 30.45935 | 64 | 0.561457 | 742 | 7,493 | 5.657682 | 0.384097 | 0.482373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29791 | 0.09956 | 7,493 | 245 | 65 | 30.583673 | 0.324292 | 0.003336 | 0 | 0 | 0 | 0 | 0.532351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.004202 | 0 | 0.004202 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
41d6976ee8fd18157b1da963cb00eca9ba591434 | 222 | py | Python | ProjectEulerCode/prob65.py | khaleeque-ansari/Online-Coding-Problems-Solutions-Python | c8378ccad88ce5f50239f82cf9569344e1b92f18 | [
"Apache-2.0"
] | null | null | null | ProjectEulerCode/prob65.py | khaleeque-ansari/Online-Coding-Problems-Solutions-Python | c8378ccad88ce5f50239f82cf9569344e1b92f18 | [
"Apache-2.0"
] | null | null | null | ProjectEulerCode/prob65.py | khaleeque-ansari/Online-Coding-Problems-Solutions-Python | c8378ccad88ce5f50239f82cf9569344e1b92f18 | [
"Apache-2.0"
] | null | null | null | a = 2
b = 3
for i in xrange(98):
if i%3 == 0:
m = 2*(i/3) +2
else:
m = 1
c = m*b + a
a = b
b = c
sum = 0
for ci in str(c):
sum += int(ci)
print sum
| 11.684211 | 23 | 0.328829 | 41 | 222 | 1.780488 | 0.487805 | 0.054795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106796 | 0.536036 | 222 | 18 | 24 | 12.333333 | 0.601942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.071429 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
41f55558612968f179ddd7622733a41254e4af9b | 2,417 | py | Python | src/qm/columbus/colbasis.py | hkimaf/unixmd | 616634c720d0589fd600e3268afab9da957e18bb | [
"MIT"
] | 9 | 2021-04-18T08:03:50.000Z | 2022-03-22T03:29:54.000Z | src/qm/columbus/colbasis.py | hkimaf/unixmd | 616634c720d0589fd600e3268afab9da957e18bb | [
"MIT"
] | 23 | 2021-04-14T08:43:02.000Z | 2022-03-31T10:26:42.000Z | src/qm/columbus/colbasis.py | hkimaf/unixmd | 616634c720d0589fd600e3268afab9da957e18bb | [
"MIT"
] | 16 | 2021-04-14T05:59:45.000Z | 2022-02-02T03:05:23.000Z | cc_pvdz = { "H" : 1, "He" : 1, "Li" : 0, "Be" : 0, "B" : 1, "C" : 1, "N" : 1, \
"O" : 1, "F" : 1, "Ne" : 1, "Na" : 0, "Mg" : 0, "Al" : 1, "Si" : 1, \
"P" : 1, "S" : 1, "Cl" : 1, "Ar" : 1, "K" : 0, "Ca" : 0 }
cc_pvtz = { "H" : 7, "He" : 2, "Li" : 0, "Be" : 0, "B" : 2, "C" : 6, "N" : 6, \
... | 73.242424 | 88 | 0.281754 | 420 | 2,417 | 1.597619 | 0.161905 | 0.029806 | 0.059613 | 0.067064 | 0.245902 | 0.146051 | 0.134128 | 0.077496 | 0.077496 | 0.077496 | 0 | 0.210388 | 0.370707 | 2,417 | 32 | 89 | 75.53125 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0.128258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
41fdd309f3fad04c24e54a474ecce6faa03a3347 | 465 | py | Python | apps/ayudamemoria/models.py | edilio/cubanoshaciamiami.com | 541a22998b7c7ad3acda784c5657bfdf79cc7f07 | [
"MIT"
] | null | null | null | apps/ayudamemoria/models.py | edilio/cubanoshaciamiami.com | 541a22998b7c7ad3acda784c5657bfdf79cc7f07 | [
"MIT"
] | null | null | null | apps/ayudamemoria/models.py | edilio/cubanoshaciamiami.com | 541a22998b7c7ad3acda784c5657bfdf79cc7f07 | [
"MIT"
] | null | null | null | from django.db import models
class Category(models.Model):
name = models.CharField(max_length=200)
class Meta:
verbose_name_plural = 'Categories'
def __str__(self):
return self.name
class MemoryPhrase_Answer(models.Model):
category = models.ForeignKey(Category)
p... | 21.136364 | 46 | 0.668817 | 54 | 465 | 5.5 | 0.462963 | 0.151515 | 0.181818 | 0.242424 | 0.407407 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.245161 | 465 | 21 | 47 | 22.142857 | 0.820513 | 0 | 0 | 0.153846 | 0 | 0 | 0.022573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0.153846 | 0.923077 | 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 | 1 | 0 | 0 | 0 | 3 |
510c583d238b88d9ff54318fc8f762e2523c4d13 | 231 | py | Python | pineboolib/q3widgets/qiconset.py | Aulla/pineboo | 3ad6412d365a6ad65c3bb2bdc03f5798d7c37004 | [
"MIT"
] | 2 | 2017-12-10T23:06:16.000Z | 2017-12-10T23:06:23.000Z | pineboolib/q3widgets/qiconset.py | Aulla/pineboo | 3ad6412d365a6ad65c3bb2bdc03f5798d7c37004 | [
"MIT"
] | 36 | 2017-11-05T21:13:47.000Z | 2020-08-26T15:56:15.000Z | pineboolib/q3widgets/qiconset.py | Aulla/pineboo | 3ad6412d365a6ad65c3bb2bdc03f5798d7c37004 | [
"MIT"
] | 8 | 2017-11-05T15:56:31.000Z | 2019-04-25T16:32:28.000Z | """QIconSet module."""
from PyQt6 import QtGui # type: ignore[import]
class QIconSet(QtGui.QIcon):
"""QIconSet class."""
def __init__(self, icon: QtGui.QIcon):
"""Initialize."""
super().__init__(icon)
| 17.769231 | 47 | 0.614719 | 25 | 231 | 5.36 | 0.64 | 0.149254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005495 | 0.212121 | 231 | 12 | 48 | 19.25 | 0.730769 | 0.285714 | 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 | 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 |
5124addffcbc5c9a4fb84e51c65f06ad3e72c10a | 2,470 | py | Python | src/profiles/migrations/0002_auto_20170821_0332.py | wanyaland/e_membership | a0a879129e6031371bbfa4c8638ef9c33c6de546 | [
"MIT"
] | null | null | null | src/profiles/migrations/0002_auto_20170821_0332.py | wanyaland/e_membership | a0a879129e6031371bbfa4c8638ef9c33c6de546 | [
"MIT"
] | null | null | null | src/profiles/migrations/0002_auto_20170821_0332.py | wanyaland/e_membership | a0a879129e6031371bbfa4c8638ef9c33c6de546 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-21 10:32
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('profiles', '0001_initial'),
]
operations = [
migrations.AddField(
... | 32.5 | 190 | 0.552227 | 235 | 2,470 | 5.642553 | 0.323404 | 0.162896 | 0.208145 | 0.244344 | 0.588235 | 0.588235 | 0.53092 | 0.53092 | 0.396682 | 0.396682 | 0 | 0.028252 | 0.312146 | 2,470 | 75 | 191 | 32.933333 | 0.752207 | 0.02753 | 0 | 0.617647 | 1 | 0 | 0.138808 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029412 | 0 | 0.073529 | 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 |
5156d3f700be0bf4e717d80a511b4e08e29808c7 | 87 | py | Python | codigo/Live134/features/enveironment.py | cassiasamp/live-de-python | 00b5e51793097544ba9b75c97a0d30e63970bf45 | [
"MIT"
] | 572 | 2018-04-03T03:17:08.000Z | 2022-03-31T19:05:32.000Z | codigo/Live134/features/enveironment.py | cassiasamp/live-de-python | 00b5e51793097544ba9b75c97a0d30e63970bf45 | [
"MIT"
] | 176 | 2018-05-18T15:56:16.000Z | 2022-03-28T20:39:07.000Z | codigo/Live134/features/enveironment.py | cassiasamp/live-de-python | 00b5e51793097544ba9b75c97a0d30e63970bf45 | [
"MIT"
] | 140 | 2018-04-18T13:59:11.000Z | 2022-03-29T00:43:49.000Z | def before_all(context):
context.base_url = context.config.userdata.get('url_base') | 43.5 | 62 | 0.770115 | 13 | 87 | 4.923077 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091954 | 87 | 2 | 62 | 43.5 | 0.810127 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5164f0437fd7aecd697bd5e0d636cff0b41c5b4a | 12,567 | py | Python | src/bias_mitigator/prepare_target_texts.py | krangelie/bias-in-german-nlg | 9fbaf50fde7d41d64692ae90c41beae61bc78d44 | [
"MIT"
] | 14 | 2021-08-24T12:36:37.000Z | 2022-03-18T12:14:36.000Z | src/bias_mitigator/prepare_target_texts.py | krangelie/bias-in-german-nlg | 9fbaf50fde7d41d64692ae90c41beae61bc78d44 | [
"MIT"
] | null | null | null | src/bias_mitigator/prepare_target_texts.py | krangelie/bias-in-german-nlg | 9fbaf50fde7d41d64692ae90c41beae61bc78d44 | [
"MIT"
] | 1 | 2021-10-21T20:22:55.000Z | 2021-10-21T20:22:55.000Z | import os
import random
import hydra.utils
from bidict import bidict
import src.constants as constants
def prepare_texts(params):
target_texts_all = get_target_texts(params)
if constants.DEMO not in params.trigger_position:
(
neg_demo_neg_target_texts,
neg_demo_neu_target_tex... | 42.0301 | 124 | 0.608419 | 1,613 | 12,567 | 4.293862 | 0.076875 | 0.24935 | 0.072769 | 0.075368 | 0.774184 | 0.728415 | 0.700982 | 0.672249 | 0.592117 | 0.53393 | 0 | 0.003121 | 0.31153 | 12,567 | 298 | 125 | 42.171141 | 0.797388 | 0.042174 | 0 | 0.479554 | 0 | 0 | 0.015052 | 0 | 0 | 0 | 0 | 0 | 0.003717 | 1 | 0.018587 | false | 0 | 0.018587 | 0 | 0.055762 | 0.022305 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5a98967e0b67a6ad5cef91be6a12c82c9728ba69 | 94 | py | Python | test_convert.py | Escaton615/autovc | c7845e1254c6aa20f506e0462cf762f7b8addb26 | [
"MIT"
] | null | null | null | test_convert.py | Escaton615/autovc | c7845e1254c6aa20f506e0462cf762f7b8addb26 | [
"MIT"
] | null | null | null | test_convert.py | Escaton615/autovc | c7845e1254c6aa20f506e0462cf762f7b8addb26 | [
"MIT"
] | null | null | null | import torch
ckpt = torch.load('checkpoints/autovc.ckpt', map_location=torch.device('cpu'))
| 18.8 | 78 | 0.755319 | 13 | 94 | 5.384615 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 94 | 4 | 79 | 23.5 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0.276596 | 0.244681 | 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 |
5abaa7b2bd2b20fde592c8232c7e96a1bde76852 | 141 | py | Python | test/benchmark/test.py | lzjzx1122/FaaSFlow | c4a32a04797770c21fe6a0dcacd85ac27a3d29ec | [
"Apache-2.0"
] | 24 | 2021-12-02T01:00:54.000Z | 2022-03-27T00:50:28.000Z | test/benchmark/test.py | lzjzx1122/FaaSFlow | c4a32a04797770c21fe6a0dcacd85ac27a3d29ec | [
"Apache-2.0"
] | null | null | null | test/benchmark/test.py | lzjzx1122/FaaSFlow | c4a32a04797770c21fe6a0dcacd85ac27a3d29ec | [
"Apache-2.0"
] | 3 | 2021-12-02T01:00:47.000Z | 2022-03-04T07:33:09.000Z | import yaml
yaml_data2 = {"functions": ['A', 'B']}
f = open('test.yaml', 'w', encoding = 'utf-8')
yaml.dump(yaml_data2, f, sort_keys=False)
| 23.5 | 46 | 0.638298 | 23 | 141 | 3.782609 | 0.73913 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0.12766 | 141 | 5 | 47 | 28.2 | 0.682927 | 0 | 0 | 0 | 0 | 0 | 0.184397 | 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 |
5ac4e7690bbb60b6d207aa0f4f22e2e99d3ea691 | 3,304 | py | Python | paz/backend/image/tensorflow_image.py | niqbal996/paz | f27205907367415d5b21f90e1a1d1d1ce598e889 | [
"MIT"
] | 300 | 2020-10-29T08:02:05.000Z | 2022-03-30T21:47:32.000Z | paz/backend/image/tensorflow_image.py | albertofernandezvillan/paz | 9fbd50b993f37e1e807297a29c6044c09967c9cc | [
"MIT"
] | 30 | 2020-10-29T12:40:32.000Z | 2022-03-31T14:06:35.000Z | paz/backend/image/tensorflow_image.py | albertofernandezvillan/paz | 9fbd50b993f37e1e807297a29c6044c09967c9cc | [
"MIT"
] | 62 | 2020-10-29T12:34:13.000Z | 2022-03-29T05:21:45.000Z | import tensorflow as tf
# same flags as in openCV
RGB2BGR = 4
BGR2RGB = 4
RGB2GRAY = 7
RGB2HSV = 41
HSV2RGB = 55
def cast_image(image, dtype):
return tf.image.convert_image_dtype(image, dtype)
def load_image(filepath, num_channels=3):
image = tf.io.read_file(filepath)
image = tf.image.decode_image(imag... | 25.030303 | 79 | 0.707022 | 465 | 3,304 | 4.806452 | 0.223656 | 0.091275 | 0.069799 | 0.051007 | 0.365101 | 0.219239 | 0.169128 | 0.075168 | 0.034004 | 0 | 0 | 0.01827 | 0.188257 | 3,304 | 131 | 80 | 25.221374 | 0.815063 | 0.070521 | 0 | 0.181818 | 0 | 0 | 0.023294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25974 | false | 0 | 0.012987 | 0.168831 | 0.532468 | 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 |
5ae70625b0c90d4ef5a9b9590b99f773be076748 | 255 | py | Python | celery_cloudwatch/__init__.py | dexterous/celery-cloudwatch | c894dabf655860275edb1ecd7e1dfac223d78926 | [
"MIT"
] | 32 | 2015-03-29T17:00:50.000Z | 2021-01-22T23:26:59.000Z | celery_cloudwatch/__init__.py | dexterous/celery-cloudwatch | c894dabf655860275edb1ecd7e1dfac223d78926 | [
"MIT"
] | 9 | 2015-02-15T12:45:12.000Z | 2018-03-29T14:05:39.000Z | celery_cloudwatch/__init__.py | dexterous/celery-cloudwatch | c894dabf655860275edb1ecd7e1dfac223d78926 | [
"MIT"
] | 18 | 2015-03-29T17:00:36.000Z | 2021-12-14T14:53:44.000Z | from .task_monitor import TaskMonitor
from .state import State
from .stats import Stats
from .camera import Camera, CameraFactory
from .print_camera import PrintCamera
from .cloudwatch_camera import CloudWatchCamera
from .import_class import import_class
| 31.875 | 47 | 0.854902 | 34 | 255 | 6.264706 | 0.411765 | 0.169014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113725 | 255 | 7 | 48 | 36.428571 | 0.942478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.142857 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5aed9435f62c533ec9a26d8cd20df966f9cfec28 | 377 | py | Python | promoprice/prom/items.py | odlsandrey/crawlers | de6be94719a3bbee56213cee1d31690f0551c21c | [
"MIT"
] | null | null | null | promoprice/prom/items.py | odlsandrey/crawlers | de6be94719a3bbee56213cee1d31690f0551c21c | [
"MIT"
] | null | null | null | promoprice/prom/items.py | odlsandrey/crawlers | de6be94719a3bbee56213cee1d31690f0551c21c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import scrapy
class PromItem(scrapy.Item):
articul = scrapy.Field()
posicion = scrapy.Field()
price_base = scrapy.Field()
price_min = scrapy.Field()
price_max = scrapy.Field()
price_midl = scrapy.Field()
deviation = scrapy.Field()
percent... | 17.952381 | 31 | 0.6313 | 45 | 377 | 5.2 | 0.533333 | 0.423077 | 0.273504 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006849 | 0.225464 | 377 | 20 | 32 | 18.85 | 0.794521 | 0.114058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.083333 | 0 | 0.916667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
5af67700409a4d6f7519811de84daa9506040eb1 | 279 | py | Python | warmup/word_count.py | qweroucherr/methods-hw | 19b011863956949f7d59a68ddeaf069b6d0a0c59 | [
"CC0-1.0"
] | 2 | 2020-08-31T08:21:42.000Z | 2020-11-24T22:53:46.000Z | warmup/word_count.py | ezubaric/methods-hw | b22982602d9390bbaea31187424672d833e9937f | [
"CC0-1.0"
] | 1 | 2020-10-07T03:56:06.000Z | 2020-10-07T03:56:06.000Z | warmup/word_count.py | qweroucherr/methods-hw | 19b011863956949f7d59a68ddeaf069b6d0a0c59 | [
"CC0-1.0"
] | 1 | 2020-09-25T07:59:27.000Z | 2020-09-25T07:59:27.000Z |
from collections import defaultdict
def word_count(filename, lower_case=False, remove_punc=False):
"""Open a file, count the words, and return a dictionary with words as keys and the count of each word as value."""
# Finish this function!
return {'the': 15}
| 25.363636 | 119 | 0.709677 | 42 | 279 | 4.642857 | 0.738095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00905 | 0.207885 | 279 | 10 | 120 | 27.9 | 0.873303 | 0.473118 | 0 | 0 | 0 | 0 | 0.021429 | 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 |
851a4de5953601b7e7792540a4c6057fe8467087 | 5,470 | py | Python | mappyfile/ordereddict.py | thorag76/mappyfile | 51ae914cb6282549b73cde684cbc54e213c74d4a | [
"MIT"
] | null | null | null | mappyfile/ordereddict.py | thorag76/mappyfile | 51ae914cb6282549b73cde684cbc54e213c74d4a | [
"MIT"
] | null | null | null | mappyfile/ordereddict.py | thorag76/mappyfile | 51ae914cb6282549b73cde684cbc54e213c74d4a | [
"MIT"
] | null | null | null | # =================================================================
#
# Authors: Seth Girvin
# Jason Kirtland [1]
# Zach Kelling [2]
# m000 [3],[4]
#
# [1] http://code.activestate.com/recipes/523034-emulate-collectionsdefaultdict/
# [2] http://stackoverflow.com/a/6190500/562769
# [3] https://... | 35.064103 | 106 | 0.660878 | 651 | 5,470 | 5.310292 | 0.322581 | 0.026323 | 0.111368 | 0.026323 | 0.283483 | 0.269598 | 0.153891 | 0.087359 | 0 | 0 | 0 | 0.021896 | 0.215174 | 5,470 | 155 | 107 | 35.290323 | 0.783368 | 0.337843 | 0 | 0.102564 | 0 | 0 | 0.016088 | 0.006209 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25641 | false | 0 | 0.089744 | 0.153846 | 0.576923 | 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 |
851b509dd9917bd8f3cf7bff6802b6eacb5fde2d | 125 | py | Python | tests/run_as_script.py | nicoddemus/yappi | f1a8e9bc9d37f167768cbfbfd67b0267c5983723 | [
"MIT"
] | 877 | 2015-05-25T09:39:44.000Z | 2022-03-30T01:13:37.000Z | tests/run_as_script.py | nicoddemus/yappi | f1a8e9bc9d37f167768cbfbfd67b0267c5983723 | [
"MIT"
] | 67 | 2015-10-09T07:00:26.000Z | 2022-03-04T13:10:54.000Z | tests/run_as_script.py | nicoddemus/yappi | f1a8e9bc9d37f167768cbfbfd67b0267c5983723 | [
"MIT"
] | 62 | 2015-07-31T03:33:19.000Z | 2022-03-31T16:19:00.000Z | import threading
class FancyThread(threading.Thread):
def run(self):
pass
t = FancyThread()
t.start()
t.join()
| 12.5 | 36 | 0.664 | 16 | 125 | 5.1875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208 | 125 | 9 | 37 | 13.888889 | 0.838384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
851f49d4bdedf22592c66ce807548fc9730d23fa | 118 | py | Python | tests/apps/good_flow_alter_table_with_same_db_table/models.py | tony/django-pg-zero-downtime-migrations | da60681bd67410b449ed62edc1fab73f76ca75d6 | [
"MIT"
] | null | null | null | tests/apps/good_flow_alter_table_with_same_db_table/models.py | tony/django-pg-zero-downtime-migrations | da60681bd67410b449ed62edc1fab73f76ca75d6 | [
"MIT"
] | null | null | null | tests/apps/good_flow_alter_table_with_same_db_table/models.py | tony/django-pg-zero-downtime-migrations | da60681bd67410b449ed62edc1fab73f76ca75d6 | [
"MIT"
] | null | null | null | from django.db import models
class TestTableRenamed(models.Model):
class Meta:
db_table = 'test_table'
| 14.75 | 37 | 0.70339 | 15 | 118 | 5.4 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220339 | 118 | 7 | 38 | 16.857143 | 0.880435 | 0 | 0 | 0 | 0 | 0 | 0.084746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8526ae958ec8400aea52c5fb77fe9a953f5e9167 | 21 | py | Python | CellProfiler/cellprofiler/gui/constants/preferences_view.py | aidotse/Team-rahma.ai | 66857731e1ca2472e0783e37ba472b55a7ac9cd4 | [
"MIT"
] | null | null | null | CellProfiler/cellprofiler/gui/constants/preferences_view.py | aidotse/Team-rahma.ai | 66857731e1ca2472e0783e37ba472b55a7ac9cd4 | [
"MIT"
] | null | null | null | CellProfiler/cellprofiler/gui/constants/preferences_view.py | aidotse/Team-rahma.ai | 66857731e1ca2472e0783e37ba472b55a7ac9cd4 | [
"MIT"
] | null | null | null | WELCOME_MESSAGE = ""
| 10.5 | 20 | 0.714286 | 2 | 21 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 21 | 1 | 21 | 21 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
852b0c68efbcaed0e2e826190005b7eb822804ae | 13,489 | py | Python | math_signals/math_relation.py | Omnivanitate/sweep_design | 00c20066d83a2eebf8402294b413737f49a97564 | [
"MIT"
] | null | null | null | math_signals/math_relation.py | Omnivanitate/sweep_design | 00c20066d83a2eebf8402294b413737f49a97564 | [
"MIT"
] | null | null | null | math_signals/math_relation.py | Omnivanitate/sweep_design | 00c20066d83a2eebf8402294b413737f49a97564 | [
"MIT"
] | null | null | null | import logging
from typing import Any, Tuple, Union, Type, TypeVar
import numpy as np
from math_signals.defaults import methods as dfm
from math_signals.defaults.base_structures import BadInputError, TypeFuncError, BaseXY, RelationProtocol
Num = Union[float, int, complex]
R = TypeVar('R', bound='Relation')
... | 39.326531 | 105 | 0.576618 | 1,458 | 13,489 | 5.097394 | 0.202332 | 0.021663 | 0.036598 | 0.032293 | 0.42761 | 0.392223 | 0.378095 | 0.328983 | 0.314451 | 0.284311 | 0 | 0.006766 | 0.320706 | 13,489 | 342 | 106 | 39.44152 | 0.804322 | 0.397435 | 0 | 0.209459 | 0 | 0 | 0.05564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209459 | false | 0 | 0.033784 | 0.121622 | 0.52027 | 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 |
518ce4c383c7e9101f134e5f0f619b282a498a59 | 191 | py | Python | screenshooter/config.py | guilherme-kenzo/auto-lovelace-screenshooter | 86a73da37a587906aaaee9fc8ed2d481f9a94ba9 | [
"MIT"
] | null | null | null | screenshooter/config.py | guilherme-kenzo/auto-lovelace-screenshooter | 86a73da37a587906aaaee9fc8ed2d481f9a94ba9 | [
"MIT"
] | null | null | null | screenshooter/config.py | guilherme-kenzo/auto-lovelace-screenshooter | 86a73da37a587906aaaee9fc8ed2d481f9a94ba9 | [
"MIT"
] | null | null | null | import os
import pathlib
GECK_URL = "https://github.com/mozilla/geckodriver/releases/download/v0.30.0/geckodriver-v0.30.0-linux32.tar.gz"
BASE_DIR = pathlib.Path(__file__).parent.resolve()
| 27.285714 | 112 | 0.78534 | 30 | 191 | 4.8 | 0.8 | 0.055556 | 0.069444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055866 | 0.062827 | 191 | 6 | 113 | 31.833333 | 0.748603 | 0 | 0 | 0 | 0 | 0.25 | 0.518325 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
51a5c18f59e6d3740dfe8d5b3554ebff7e875ebb | 105 | py | Python | py_tdlib/constructors/game_high_scores.py | Mr-TelegramBot/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 24 | 2018-10-05T13:04:30.000Z | 2020-05-12T08:45:34.000Z | py_tdlib/constructors/game_high_scores.py | MrMahdi313/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 3 | 2019-06-26T07:20:20.000Z | 2021-05-24T13:06:56.000Z | py_tdlib/constructors/game_high_scores.py | MrMahdi313/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 5 | 2018-10-05T14:29:28.000Z | 2020-08-11T15:04:10.000Z | from ..factory import Type
class gameHighScores(Type):
scores = None # type: "vector<gameHighScore>"
| 17.5 | 47 | 0.733333 | 12 | 105 | 6.416667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152381 | 105 | 5 | 48 | 21 | 0.865169 | 0.27619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
51bbce19c5f6f9a36e6d7ed719a595ba4c9f9a67 | 89 | py | Python | backend/SRLMS/admindb/apps.py | somupra/Inter-IIT-Hackathon | 097764f752ed695e27d5de27a23c1228093e68f0 | [
"MIT"
] | null | null | null | backend/SRLMS/admindb/apps.py | somupra/Inter-IIT-Hackathon | 097764f752ed695e27d5de27a23c1228093e68f0 | [
"MIT"
] | 13 | 2020-02-12T03:16:01.000Z | 2022-02-26T21:39:14.000Z | backend/SRLMS/admindb/apps.py | somupra/Inter-IIT-Hackathon | 097764f752ed695e27d5de27a23c1228093e68f0 | [
"MIT"
] | 2 | 2020-07-18T08:27:32.000Z | 2020-07-19T22:11:36.000Z | from django.apps import AppConfig
class AdmindbConfig(AppConfig):
name = 'admindb'
| 14.833333 | 33 | 0.752809 | 10 | 89 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168539 | 89 | 5 | 34 | 17.8 | 0.905405 | 0 | 0 | 0 | 0 | 0 | 0.078652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
51cdc4fe99711845f3293428ff44af755dce718b | 58 | py | Python | playstation/__init__.py | RonaldKiprotich/FinesseEntertainment-Backend | 007ba86550e4aead9b24d426897b3548a2906ae8 | [
"MIT"
] | null | null | null | playstation/__init__.py | RonaldKiprotich/FinesseEntertainment-Backend | 007ba86550e4aead9b24d426897b3548a2906ae8 | [
"MIT"
] | null | null | null | playstation/__init__.py | RonaldKiprotich/FinesseEntertainment-Backend | 007ba86550e4aead9b24d426897b3548a2906ae8 | [
"MIT"
] | 1 | 2021-06-19T10:52:54.000Z | 2021-06-19T10:52:54.000Z | default_app_config = 'playstation.apps.PlaystationConfig' | 58 | 58 | 0.862069 | 6 | 58 | 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051724 | 58 | 1 | 58 | 58 | 0.872727 | 0 | 0 | 0 | 0 | 0 | 0.576271 | 0.576271 | 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 |
cf91987a17c9c37921e00c1505f407279a192162 | 1,167 | py | Python | neuronjs/tools.py | neuron-js/pyneuron | 8f6262386c41c653e7b1e06176e89cc42ba1f69d | [
"MIT"
] | null | null | null | neuronjs/tools.py | neuron-js/pyneuron | 8f6262386c41c653e7b1e06176e89cc42ba1f69d | [
"MIT"
] | 10 | 2015-10-13T15:57:59.000Z | 2015-10-20T16:08:05.000Z | neuronjs/tools.py | neuron-js/pyneuron | 8f6262386c41c653e7b1e06176e89cc42ba1f69d | [
"MIT"
] | null | null | null | # decorators
import functools
# Memoize the result of the function
def memoize(cache_key_getter):
""" Decorator: memoize the result of a function by
the key which is generated from `cache_key_getter`
- cache_key_getter `String|function()`
"""
def decorator(fn):
@functools.wraps(... | 23.816327 | 58 | 0.58012 | 140 | 1,167 | 4.728571 | 0.328571 | 0.084592 | 0.084592 | 0.081571 | 0.258308 | 0.226586 | 0.226586 | 0.123867 | 0.123867 | 0.123867 | 0 | 0 | 0.328192 | 1,167 | 48 | 59 | 24.3125 | 0.844388 | 0.191088 | 0 | 0.466667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0 | 0.033333 | 0 | 0.633333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
cf921dcbfc6243e143c3741ee26866465d57c0e4 | 749 | py | Python | jsonconfig/_compat.py | luistechio/jsonconfig | 37980d52fcb5f44032c59b185af855ab7d3f5193 | [
"MIT"
] | 7 | 2017-08-09T23:33:47.000Z | 2019-07-08T16:06:33.000Z | jsonconfig/_compat.py | luistechio/jsonconfig | 37980d52fcb5f44032c59b185af855ab7d3f5193 | [
"MIT"
] | 253 | 2017-10-02T23:42:20.000Z | 2022-03-31T01:03:15.000Z | jsonconfig/_compat.py | luistechio/jsonconfig | 37980d52fcb5f44032c59b185af855ab7d3f5193 | [
"MIT"
] | 2 | 2021-02-25T01:17:25.000Z | 2021-09-28T16:19:19.000Z | import getpass
import inspect
import os
import sys
VER = sys.version_info
PY2 = VER.major < 3
PY35_PLUS = VER.major > 2 and not (VER.major == 3 and VER.minor < 5)
def get_parameters(funct):
return (inspect.getargspec(funct).args if PY2
else inspect.signature(funct).parameters)
OPEN_PARAMS = ('file'... | 24.16129 | 76 | 0.676903 | 101 | 749 | 4.910891 | 0.584158 | 0.048387 | 0.03629 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017094 | 0.218959 | 749 | 30 | 77 | 24.966667 | 0.830769 | 0.128171 | 0 | 0 | 0 | 0 | 0.0721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.105263 | 0.315789 | 0.052632 | 0.578947 | 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 |
cfc2a4035a98746edeea9eb661b907bad0a275db | 721 | py | Python | tests/ui/skill/impl/__init__.py | stranac/voice-skill-sdk | 8bfbbedf36ed4e4b2ff865deffe4dee804d57031 | [
"MIT"
] | 18 | 2020-11-25T12:58:36.000Z | 2022-01-06T21:13:52.000Z | tests/ui/skill/impl/__init__.py | stranac/voice-skill-sdk | 8bfbbedf36ed4e4b2ff865deffe4dee804d57031 | [
"MIT"
] | 28 | 2020-11-27T08:45:57.000Z | 2022-03-31T09:01:48.000Z | tests/ui/skill/impl/__init__.py | stranac/voice-skill-sdk | 8bfbbedf36ed4e4b2ff865deffe4dee804d57031 | [
"MIT"
] | 15 | 2020-11-30T08:19:44.000Z | 2022-03-10T13:07:05.000Z | """
Automatically rendered handlers for the intents:
- "Test_Intent"
- "Another_Test_Intent"
"""
from datetime import date
from skill_sdk import skill, Response
@skill.intent_handler("Test_Intent")
async def handle_test_intent(
name: str = "World"
) -> Response:
"""
"Test_Intent" handler implem... | 18.487179 | 53 | 0.678225 | 83 | 721 | 5.650602 | 0.325301 | 0.21322 | 0.181237 | 0.076759 | 0.407249 | 0.162047 | 0.162047 | 0 | 0 | 0 | 0 | 0 | 0.210818 | 721 | 38 | 54 | 18.973684 | 0.824253 | 0.134535 | 0 | 0.307692 | 0 | 0 | 0.216981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.153846 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cfcb3b55cdac804c85d7a1514a55faaf4e428eba | 1,766 | py | Python | aula10_datas_horarios.py | clovisdanielcosta/python-dio | 764eaac06320c0531c3038e301eb4c002fe8afce | [
"MIT"
] | null | null | null | aula10_datas_horarios.py | clovisdanielcosta/python-dio | 764eaac06320c0531c3038e301eb4c002fe8afce | [
"MIT"
] | null | null | null | aula10_datas_horarios.py | clovisdanielcosta/python-dio | 764eaac06320c0531c3038e301eb4c002fe8afce | [
"MIT"
] | null | null | null | from datetime import date, time, datetime, timedelta
def trabalhando_datetime():
data_atual = datetime.now()
print(data_atual)
print(data_atual.strftime('%d/%m/%y'))
print(data_atual.strftime('%H:%M:%S'))
print(data_atual.strftime('%d/%m/%Y %H:%M:%S'))
print(data_atual.strftime('%c'))
print... | 30.982456 | 82 | 0.669309 | 247 | 1,766 | 4.582996 | 0.315789 | 0.182862 | 0.222615 | 0.174912 | 0.209364 | 0.209364 | 0.209364 | 0.175795 | 0.149293 | 0.149293 | 0 | 0.026712 | 0.173273 | 1,766 | 57 | 83 | 30.982456 | 0.74863 | 0.097395 | 0 | 0.047619 | 0 | 0 | 0.102645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.02381 | 0 | 0.095238 | 0.642857 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
cfd4afe32375393f8b176b025b4a25dc78378693 | 3,353 | py | Python | src/onegov/election_day/views/upload/parties.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | src/onegov/election_day/views/upload/parties.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | src/onegov/election_day/views/upload/parties.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | """ The upload view. """
import transaction
from onegov.ballot import Election
from onegov.ballot import ElectionCompound
from onegov.election_day import ElectionDayApp
from onegov.election_day.collections import ArchivedResultCollection
from onegov.election_day.formats import import_party_results
from onegov.election... | 28.176471 | 69 | 0.61527 | 324 | 3,353 | 6.20679 | 0.225309 | 0.065639 | 0.053705 | 0.062655 | 0.744903 | 0.744903 | 0.679264 | 0.679264 | 0.679264 | 0.679264 | 0 | 0.000834 | 0.285118 | 3,353 | 118 | 70 | 28.415254 | 0.838131 | 0.019087 | 0 | 0.729167 | 0 | 0 | 0.10156 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0 | 0.114583 | 0 | 0.15625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cffb997dce6915db551d20420ea557bf850cc5cd | 535 | py | Python | compiler/quilt/tools/compat.py | jbn/quilt | 67960d2739ce5ea34c05febbe8f2bb9f75e211a8 | [
"Apache-2.0"
] | null | null | null | compiler/quilt/tools/compat.py | jbn/quilt | 67960d2739ce5ea34c05febbe8f2bb9f75e211a8 | [
"Apache-2.0"
] | null | null | null | compiler/quilt/tools/compat.py | jbn/quilt | 67960d2739ce5ea34c05febbe8f2bb9f75e211a8 | [
"Apache-2.0"
] | null | null | null | """
Python 2 / 3 compatibility
In cases where the `six` lib covers an item, use `six`.
For others, import the module here under the python3 name (if there are naming differences).
Unfortunately, this *doesn't* allow for `from .tools.compat.foo import bar`, so if needed,
import frequently-used objects here for conven... | 24.318182 | 92 | 0.73271 | 82 | 535 | 4.743902 | 0.731707 | 0.010283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027335 | 0.179439 | 535 | 21 | 93 | 25.47619 | 0.85877 | 0.770093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
320cc179efef12d6aa14ccdacee8afdcfde6c5df | 840 | py | Python | data/train/python/320cc179efef12d6aa14ccdacee8afdcfde6c5dfsettings.py | harshp8l/deep-learning-lang-detection | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | [
"MIT"
] | 84 | 2017-10-25T15:49:21.000Z | 2021-11-28T21:25:54.000Z | data/train/python/320cc179efef12d6aa14ccdacee8afdcfde6c5dfsettings.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 5 | 2018-03-29T11:50:46.000Z | 2021-04-26T13:33:18.000Z | data/train/python/320cc179efef12d6aa14ccdacee8afdcfde6c5dfsettings.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 24 | 2017-11-22T08:31:00.000Z | 2022-03-27T01:22:31.000Z | btfnx_api_url = {
'host': 'api.bitfinex.com',
# Public API
'ticker': 'https://api.bitfinex.com/v1/pubticker/',
'stats': 'https://api.bitfinex.com/v1/stats/',
'funding_book': 'https://api.bitfinex.com/v1/lendbook/',
'order_book': 'https://api.bitfinex.com/v1/book/',
'tradesInfo': 'https://api... | 33.6 | 69 | 0.634524 | 112 | 840 | 4.633929 | 0.303571 | 0.169557 | 0.242775 | 0.292871 | 0.49711 | 0.300578 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.135714 | 840 | 24 | 70 | 35 | 0.699725 | 0.011905 | 0 | 0 | 0 | 0 | 0.676329 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3224e733516c7a37ce78372c817d510c379c8ec8 | 170 | py | Python | mysite/crypto/urls.py | Divyanshu-19/CryptoWebsite | 754f0ae5f279335f4a26bd4d8ae056a2c21fac90 | [
"bzip2-1.0.6"
] | null | null | null | mysite/crypto/urls.py | Divyanshu-19/CryptoWebsite | 754f0ae5f279335f4a26bd4d8ae056a2c21fac90 | [
"bzip2-1.0.6"
] | null | null | null | mysite/crypto/urls.py | Divyanshu-19/CryptoWebsite | 754f0ae5f279335f4a26bd4d8ae056a2c21fac90 | [
"bzip2-1.0.6"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path("crypto",views.home, name="home"),
path("crypto/prices/", views.prices, name = "prices"),
] | 24.285714 | 58 | 0.670588 | 22 | 170 | 5.181818 | 0.5 | 0.175439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158824 | 170 | 7 | 59 | 24.285714 | 0.797203 | 0 | 0 | 0 | 0 | 0 | 0.175439 | 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 |
5c603d68c6ab7566c02836336da256e22140cecb | 385 | py | Python | tests/kyu_6_tests/test_ipv4_to_int32.py | the-zebulan/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 40 | 2016-03-09T12:26:20.000Z | 2022-03-23T08:44:51.000Z | tests/kyu_6_tests/test_ipv4_to_int32.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | null | null | null | tests/kyu_6_tests/test_ipv4_to_int32.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 36 | 2016-11-07T19:59:58.000Z | 2022-03-31T11:18:27.000Z | import unittest
from katas.kyu_6.ipv4_to_int32 import ip_to_int32
class IPToInt32TestCase(unittest.TestCase):
def test_equals(self):
self.assertEqual(ip_to_int32('128.114.17.104'), 2154959208)
def test_equals_2(self):
self.assertEqual(ip_to_int32('0.0.0.0'), 0)
def test_equals_3(self):
... | 25.666667 | 67 | 0.716883 | 61 | 385 | 4.262295 | 0.491803 | 0.134615 | 0.138462 | 0.242308 | 0.346154 | 0.346154 | 0.238462 | 0 | 0 | 0 | 0 | 0.185185 | 0.158442 | 385 | 14 | 68 | 27.5 | 0.617284 | 0 | 0 | 0 | 0 | 0 | 0.083117 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | false | 0 | 0.222222 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5c90afaa46ced00427326e1384b6e215a3fb1551 | 2,078 | tac | Python | Data/TACs/pabloModel/0noise/fullTAC1.4sigma.tac | ExampleOne/Fields-Project-11 | 427d7fd0314106d1ffcee99a4d5e2f5515cb6f66 | [
"MIT"
] | 5 | 2018-08-07T15:40:38.000Z | 2018-08-21T15:01:18.000Z | Data/TACs/pabloModel/0noise/fullTAC1.4sigma.tac | ExampleOne/Fields-Project-11 | 427d7fd0314106d1ffcee99a4d5e2f5515cb6f66 | [
"MIT"
] | null | null | null | Data/TACs/pabloModel/0noise/fullTAC1.4sigma.tac | ExampleOne/Fields-Project-11 | 427d7fd0314106d1ffcee99a4d5e2f5515cb6f66 | [
"MIT"
] | null | null | null | Start End Cerebellar Temporal Frontal Caudate Putamen Thalamus Anterior_cingulate Pons
0.00 76.00 0.27 0.28 0.28 0.27 0.28 0.28 0.27 0.27
76.00 106.00 107.66 117.97 116.33 113.86 123.95 127.43 109.25 92.07
106.00 136.00 274.39 303.10 298.84 295.62 322.74 332.68 278.65 230.84
136.00 166.00 405.74 44... | 69.266667 | 86 | 0.715592 | 571 | 2,078 | 2.602452 | 0.528897 | 0.008075 | 0.010767 | 0.008075 | 0.014805 | 0.014805 | 0.014805 | 0.014805 | 0.014805 | 0 | 0 | 0.797963 | 0.149663 | 2,078 | 29 | 87 | 71.655172 | 0.043011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5c96cca252b14d8cbf05b5a5eab3c2536c51073d | 713 | py | Python | api/__types_streamfields.py | Audiotuete/backend_wagtail_api | 3c5a4a610ffdbb75d45a57fc670e2ae3b7178c62 | [
"MIT"
] | null | null | null | api/__types_streamfields.py | Audiotuete/backend_wagtail_api | 3c5a4a610ffdbb75d45a57fc670e2ae3b7178c62 | [
"MIT"
] | null | null | null | api/__types_streamfields.py | Audiotuete/backend_wagtail_api | 3c5a4a610ffdbb75d45a57fc670e2ae3b7178c62 | [
"MIT"
] | null | null | null | # Utils
import graphene
from api.wagtail_graphql import WagtailImageType
# Types
from .wagtail_graphql import DefaultStreamType
# Models
from core.models import CustomImage as Image
class ParagraphType(DefaultStreamType):
pass
class HeadingType(DefaultStreamType):
pass
class VideoType(DefaultStreamType):
... | 22.28125 | 70 | 0.772791 | 80 | 713 | 6.75 | 0.4625 | 0.116667 | 0.144444 | 0.066667 | 0.111111 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152875 | 713 | 32 | 70 | 22.28125 | 0.89404 | 0.025245 | 0 | 0.166667 | 0 | 0 | 0.017341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.166667 | 0.222222 | 0.111111 | 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 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.