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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
46880ad28d510a275a0ef3b605187be19076f07b | 125 | py | Python | tests/test_doctest.py | nlaurance/sourceparse | f7e1a6b7d35b5189b50a68a174260e4d9bd4e4d1 | [
"MIT"
] | null | null | null | tests/test_doctest.py | nlaurance/sourceparse | f7e1a6b7d35b5189b50a68a174260e4d9bd4e4d1 | [
"MIT"
] | 1 | 2018-01-09T13:52:58.000Z | 2018-01-09T14:00:43.000Z | tests/test_doctest.py | nlaurance/sourceparse | f7e1a6b7d35b5189b50a68a174260e4d9bd4e4d1 | [
"MIT"
] | 1 | 2018-01-04T17:59:36.000Z | 2018-01-04T17:59:36.000Z | import doctest
def test_doctests():
doctest.testfile("../README.rst")
if __name__ == "__main__":
test_doctests()
| 12.5 | 37 | 0.672 | 14 | 125 | 5.285714 | 0.785714 | 0.324324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176 | 125 | 9 | 38 | 13.888889 | 0.718447 | 0 | 0 | 0 | 0 | 0 | 0.168 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
46b2b8e9399a85c379f4285c77e5661d7da16017 | 182 | py | Python | bin/django-admin.py | aonrobot/MSC-thug-auth-provider | aef37ef5a000586b8502cc536244f31e08b9c2db | [
"Apache-2.0"
] | null | null | null | bin/django-admin.py | aonrobot/MSC-thug-auth-provider | aef37ef5a000586b8502cc536244f31e08b9c2db | [
"Apache-2.0"
] | 13 | 2019-07-03T21:28:31.000Z | 2022-02-26T10:42:05.000Z | bin/django-admin.py | aonrobot/MSC-thug-auth-provider | aef37ef5a000586b8502cc536244f31e08b9c2db | [
"Apache-2.0"
] | null | null | null | #!/Users/propaganda/Documents/work/msc/MSC-thug-auth-provider/bin/python3.7
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| 30.333333 | 75 | 0.791209 | 25 | 182 | 5.32 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011976 | 0.082418 | 182 | 5 | 76 | 36.4 | 0.784431 | 0.406593 | 0 | 0 | 0 | 0 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
d3b3f8ee565bda866609352e1aa4ec4098fc8f0d | 301 | py | Python | Scripts/selected-glyphs/transform/gridfit.py | miguelsousa/hTools2 | eab400677c1b21bb2519a7354a142e167c2b39ba | [
"BSD-3-Clause"
] | null | null | null | Scripts/selected-glyphs/transform/gridfit.py | miguelsousa/hTools2 | eab400677c1b21bb2519a7354a142e167c2b39ba | [
"BSD-3-Clause"
] | null | null | null | Scripts/selected-glyphs/transform/gridfit.py | miguelsousa/hTools2 | eab400677c1b21bb2519a7354a142e167c2b39ba | [
"BSD-3-Clause"
] | null | null | null | # [h] fit to grid dialog
'''Round different glyph features to a given grid.'''
# debug
import hTools2
reload(hTools2)
if hTools2.DEBUG:
import hTools2.dialogs.glyphs
reload(hTools2.dialogs.glyphs)
# import
from hTools2.dialogs.glyphs import roundToGridDialog
# run
roundToGridDialog()
| 14.333333 | 53 | 0.747508 | 38 | 301 | 5.921053 | 0.552632 | 0.186667 | 0.266667 | 0.231111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.162791 | 301 | 20 | 54 | 15.05 | 0.869048 | 0.292359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
d3cc42aa621427cf5a1dc9c215804beb42adfd74 | 69 | py | Python | coding/optimization/alphabet.py | Tom83B/rate-code-eff-2019 | d494d20334fcbbf94865eafef2ec54a4d12557f2 | [
"MIT"
] | null | null | null | coding/optimization/alphabet.py | Tom83B/rate-code-eff-2019 | d494d20334fcbbf94865eafef2ec54a4d12557f2 | [
"MIT"
] | null | null | null | coding/optimization/alphabet.py | Tom83B/rate-code-eff-2019 | d494d20334fcbbf94865eafef2ec54a4d12557f2 | [
"MIT"
] | null | null | null | from optimization.blahut_arimoto import optimize
def kostal_method() | 23 | 48 | 0.869565 | 9 | 69 | 6.444444 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 69 | 3 | 49 | 23 | 0.920635 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
d3efd2a42368c30bf100211718a26f15e4eb78db | 5,499 | py | Python | ietf/group/migrations/0002_groupfeatures_historicalgroupfeatures.py | omunroe-com/ietfdb2 | aeaae292fbd55aca1b6043227ec105e67d73367f | [
"BSD-3-Clause"
] | 2 | 2021-11-20T03:40:56.000Z | 2021-11-20T03:40:59.000Z | ietf/group/migrations/0002_groupfeatures_historicalgroupfeatures.py | omunroe-com/ietfdb2 | aeaae292fbd55aca1b6043227ec105e67d73367f | [
"BSD-3-Clause"
] | null | null | null | ietf/group/migrations/0002_groupfeatures_historicalgroupfeatures.py | omunroe-com/ietfdb2 | aeaae292fbd55aca1b6043227ec105e67d73367f | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-07-10 15:58
from __future__ import unicode_literals
import django.core.validators
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
import debug # pyflakes:ignore
import... | 72.355263 | 252 | 0.656119 | 625 | 5,499 | 5.5904 | 0.2144 | 0.059817 | 0.128792 | 0.154551 | 0.729823 | 0.701774 | 0.701774 | 0.689181 | 0.66743 | 0.66743 | 0 | 0.013914 | 0.189671 | 5,499 | 75 | 253 | 73.32 | 0.770197 | 0.015457 | 0 | 0.523077 | 1 | 0 | 0.252865 | 0.065065 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107692 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3147cc650f2d70af3229ec8bc54399ea9b246fbf | 725 | py | Python | cifti/__init__.py | pauldmccarthy/cifti | f9f55d67307732ebfaf97a2417e684f480c97f5e | [
"MIT"
] | null | null | null | cifti/__init__.py | pauldmccarthy/cifti | f9f55d67307732ebfaf97a2417e684f480c97f5e | [
"MIT"
] | null | null | null | cifti/__init__.py | pauldmccarthy/cifti | f9f55d67307732ebfaf97a2417e684f480c97f5e | [
"MIT"
] | null | null | null | """Contains helper objects to easily create, read, write, and manipulate CIFTI files
Functions
---------
load : Loads a CIFTI file returning the matrix and two Axis objects describing the row/columns
save : Saves a matrix and two Axis objects into a CIFTI file
Classes
-------
Axis : Parent class of all cifti axes
Bra... | 38.157895 | 94 | 0.76 | 118 | 725 | 4.661017 | 0.474576 | 0.081818 | 0.101818 | 0.130909 | 0.338182 | 0.254545 | 0.254545 | 0.254545 | 0.145455 | 0.145455 | 0 | 0 | 0.171034 | 725 | 18 | 95 | 40.277778 | 0.915141 | 0.844138 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
314bb3efff938f05c401c7b083ea7a05844e32cb | 99 | py | Python | bcpy/features/__init__.py | bneurd/bcpy | f52b64d3206c38f3131e91b4067a35765991891e | [
"MIT"
] | 2 | 2019-05-08T17:35:55.000Z | 2020-03-06T18:23:40.000Z | bcpy/features/__init__.py | igornfaustino/bcpy | f52b64d3206c38f3131e91b4067a35765991891e | [
"MIT"
] | 17 | 2019-07-17T01:36:15.000Z | 2020-05-02T13:22:27.000Z | bcpy/features/__init__.py | bneurd/bcpy | f52b64d3206c38f3131e91b4067a35765991891e | [
"MIT"
] | 1 | 2019-05-08T17:38:35.000Z | 2019-05-08T17:38:35.000Z | from .feature_extract import extract
from . import strategies
__all__ = ['extract', 'strategies']
| 19.8 | 36 | 0.767677 | 11 | 99 | 6.454545 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131313 | 99 | 4 | 37 | 24.75 | 0.825581 | 0 | 0 | 0 | 0 | 0 | 0.171717 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 4 |
3160eef83d7d1091c4693eee24410eb01a0f73dc | 322 | py | Python | scripts/ssc/models/TopoAE/debug_topoae.py | MrBellamonte/MT-VAEs-TDA | 8881b5db607c673fb558f7b74ece27f244b16b77 | [
"MIT"
] | null | null | null | scripts/ssc/models/TopoAE/debug_topoae.py | MrBellamonte/MT-VAEs-TDA | 8881b5db607c673fb558f7b74ece27f244b16b77 | [
"MIT"
] | 1 | 2020-09-22T13:04:58.000Z | 2020-09-22T13:05:23.000Z | scripts/ssc/models/TopoAE/debug_topoae.py | MrBellamonte/AEs-VAEs-TDA | 8881b5db607c673fb558f7b74ece27f244b16b77 | [
"MIT"
] | null | null | null | from scripts.ssc.models.TopoAE.config_libraries.local_configs.mnist2 import mnist_test_loc
from scripts.ssc.models.TopoAE.config_libraries.swissroll import swissroll_testing
from src.models.TopoAE.train_engine import simulator_TopoAE
if __name__ == "__main__":
simulator_TopoAE(mnist_test_loc.configs_from_grid()[0]... | 46 | 90 | 0.850932 | 46 | 322 | 5.5 | 0.543478 | 0.142292 | 0.110672 | 0.158103 | 0.324111 | 0.324111 | 0.324111 | 0 | 0 | 0 | 0 | 0.006667 | 0.068323 | 322 | 6 | 91 | 53.666667 | 0.836667 | 0 | 0 | 0 | 0 | 0 | 0.024845 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
3185b73908fc8c18742ab8325fd0e54fb24f6848 | 206 | py | Python | serif/theory/alternate_pos.py | BBN-E/ZS4IE | 357965f3068cfe5098422d8cb0ca4b0f99c99fd4 | [
"Apache-2.0"
] | 7 | 2022-03-24T11:04:08.000Z | 2022-03-31T17:12:46.000Z | serif/theory/alternate_pos.py | BBN-E/ZS4IE | 357965f3068cfe5098422d8cb0ca4b0f99c99fd4 | [
"Apache-2.0"
] | null | null | null | serif/theory/alternate_pos.py | BBN-E/ZS4IE | 357965f3068cfe5098422d8cb0ca4b0f99c99fd4 | [
"Apache-2.0"
] | null | null | null | from serif.theory.serif_theory import SerifTheory
from serif.xmlio import _SimpleAttribute
class AlternatePOS(SerifTheory):
tag = _SimpleAttribute(is_required=True)
prob = _SimpleAttribute(float)
| 25.75 | 49 | 0.81068 | 23 | 206 | 7.043478 | 0.652174 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126214 | 206 | 7 | 50 | 29.428571 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 | 1 | 0 | 0 | 4 |
318f94eff68650f69b0ce90ebb1c9a529c77ab67 | 21,240 | py | Python | rllab/envs/mujoco/maze/maze_env_utils.py | andrewli77/HAAR-A-Hierarchical-RL-Algorithm | e652da781a03435c904d967211be935f437fb64a | [
"MIT"
] | 19 | 2019-10-07T15:19:29.000Z | 2022-01-26T21:26:46.000Z | rllab/envs/mujoco/maze/maze_env_utils.py | WeiChengTseng/HAAR-A-Hierarchical-RL-Algorithm | f468118e231938606593202898551035a8e60166 | [
"MIT"
] | 1 | 2020-11-18T12:39:35.000Z | 2020-11-19T05:44:56.000Z | rllab/envs/mujoco/maze/maze_env_utils.py | WeiChengTseng/HAAR-A-Hierarchical-RL-Algorithm | f468118e231938606593202898551035a8e60166 | [
"MIT"
] | 5 | 2020-05-04T15:21:54.000Z | 2021-06-01T18:40:26.000Z | from rllab.misc import logger
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
import os.path as osp
import numpy as np
import math
import random
def line_intersect(pt1, pt2, ptA, ptB):
"""
Taken from https://www.cs.hmc.edu/ACM/lectures/intersections.html
this returns the intersect... | 36.494845 | 137 | 0.460734 | 3,544 | 21,240 | 2.661117 | 0.102709 | 0.05747 | 0.055349 | 0.053865 | 0.750928 | 0.737674 | 0.719118 | 0.699502 | 0.69314 | 0.666949 | 0 | 0.1044 | 0.368644 | 21,240 | 581 | 138 | 36.557659 | 0.598881 | 0.202072 | 0 | 0.728929 | 0 | 0 | 0.01717 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015945 | false | 0 | 0.015945 | 0 | 0.045558 | 0.002278 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 4 |
31a21cf806781c03b1fd741f310934e24a3d7c37 | 154 | py | Python | core/tempCodeRunnerFile.py | chart21/Verification-of-Outsourced-Object-Detection | ed1c27e5de6e6c98098969262aa8bd41da140c8b | [
"MIT"
] | null | null | null | core/tempCodeRunnerFile.py | chart21/Verification-of-Outsourced-Object-Detection | ed1c27e5de6e6c98098969262aa8bd41da140c8b | [
"MIT"
] | null | null | null | core/tempCodeRunnerFile.py | chart21/Verification-of-Outsourced-Object-Detection | ed1c27e5de6e6c98098969262aa8bd41da140c8b | [
"MIT"
] | null | null | null | Object found: {}, Confidence: {:.2f}, BBox Coords (xmin, ymin, xmax, ymax): {}, {}, {}, {} ;".format(class_name, score, coor[0], coor[1], coor[2], coor[3] | 154 | 154 | 0.584416 | 22 | 154 | 4.045455 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037313 | 0.12987 | 154 | 1 | 154 | 154 | 0.626866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
31b0b0ed3ce3b9701aafedbb978e33a03be213bc | 77 | py | Python | Codefights/arcade/python-arcade/level-9/55.Twins-Score/Python/solution1.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | 7 | 2017-09-20T16:40:39.000Z | 2021-08-31T18:15:08.000Z | Codefights/arcade/python-arcade/level-9/55.Twins-Score/Python/solution1.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | Codefights/arcade/python-arcade/level-9/55.Twins-Score/Python/solution1.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | # Python3
# 有限制修改區域
def twinsScore(b, m):
return [*map(sum, zip(b, m))]
| 12.833333 | 33 | 0.597403 | 12 | 77 | 3.833333 | 0.833333 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.207792 | 77 | 5 | 34 | 15.4 | 0.737705 | 0.194805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
31d607c74ea216640e772177dc61923a8d4718e6 | 83 | py | Python | boot/wifi.py | swissbyte/symlite | e46e4d95986da5716e153a22c59b229004ac2a70 | [
"MIT"
] | null | null | null | boot/wifi.py | swissbyte/symlite | e46e4d95986da5716e153a22c59b229004ac2a70 | [
"MIT"
] | null | null | null | boot/wifi.py | swissbyte/symlite | e46e4d95986da5716e153a22c59b229004ac2a70 | [
"MIT"
] | null | null | null | import os
if "wlan0" in os.listdir('/sys/class/net/'):
print("WLAN0 exists!")
| 16.6 | 44 | 0.638554 | 13 | 83 | 4.076923 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.156627 | 83 | 4 | 45 | 20.75 | 0.728571 | 0 | 0 | 0 | 0 | 0 | 0.39759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
9ec7325170a19bd49f3443e396c495bc772c76b9 | 14,657 | py | Python | knc/features.py | rmorgan10/KNC-Live | 5a3f97b0b791c84433c118c087acbb68a9e473e6 | [
"BSD-3-Clause"
] | null | null | null | knc/features.py | rmorgan10/KNC-Live | 5a3f97b0b791c84433c118c087acbb68a9e473e6 | [
"BSD-3-Clause"
] | null | null | null | knc/features.py | rmorgan10/KNC-Live | 5a3f97b0b791c84433c118c087acbb68a9e473e6 | [
"BSD-3-Clause"
] | 1 | 2021-05-08T03:10:13.000Z | 2021-05-08T03:10:13.000Z | """
KN-Classify hand-engineered lightcurve features
"""
import numpy as np
import pandas as pd
class FeatureExtractor():
"""
Class to contain all feature extraction methods
"""
def __init__(self):
# Establish feature families
self.features = [x for x in dir(self) if x[0:1] != '_']
... | 33.160633 | 79 | 0.558027 | 2,042 | 14,657 | 3.756121 | 0.071009 | 0.089179 | 0.070404 | 0.09309 | 0.809126 | 0.769622 | 0.731682 | 0.685658 | 0.668188 | 0.660756 | 0 | 0.042846 | 0.315276 | 14,657 | 441 | 80 | 33.235828 | 0.721403 | 0.023402 | 0 | 0.539823 | 0 | 0 | 0.016314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.171091 | false | 0 | 0.0059 | 0.058997 | 0.466077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 4 |
9edbed95eacb767b490ff9cf2a409be36143f146 | 176 | py | Python | api/podcasts/apps.py | urfonline/api | fbd76c246eb1c64c9a12dbcffb21a317e64f8ada | [
"MIT"
] | 4 | 2017-06-13T16:20:34.000Z | 2019-10-03T09:19:54.000Z | api/podcasts/apps.py | urfonline/api | fbd76c246eb1c64c9a12dbcffb21a317e64f8ada | [
"MIT"
] | 162 | 2017-05-23T11:41:33.000Z | 2022-03-11T23:26:15.000Z | api/podcasts/apps.py | urfonline/api | fbd76c246eb1c64c9a12dbcffb21a317e64f8ada | [
"MIT"
] | 1 | 2017-05-19T09:25:25.000Z | 2017-05-19T09:25:25.000Z | from django.apps import AppConfig
class PodcastConfig(AppConfig):
name = 'api.podcasts'
verbose_name = 'Podcasts'
def ready(self):
from . import signals
| 17.6 | 33 | 0.681818 | 20 | 176 | 5.95 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232955 | 176 | 9 | 34 | 19.555556 | 0.881481 | 0 | 0 | 0 | 0 | 0 | 0.113636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | 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 | 1 | 0 | 0 | 4 |
9ee08a8dc9d0a076b4ce186a7f5292df2c4e80aa | 108 | py | Python | test/resources/hello_data/python/main.py | Manu343726/biicode-common | 91b32c6fd1e4a72ce5451183f1766d313cd0e420 | [
"MIT"
] | 17 | 2015-04-15T09:40:23.000Z | 2017-05-17T20:34:49.000Z | test/resources/hello_data/python/main.py | Manu343726/biicode-common | 91b32c6fd1e4a72ce5451183f1766d313cd0e420 | [
"MIT"
] | 2 | 2015-04-22T11:29:36.000Z | 2018-09-25T09:31:09.000Z | test/resources/hello_virtual/python/main.py | bowlofstew/common | 45e9ca902be7bbbdd73dafe3ab8957bc4a006020 | [
"MIT"
] | 22 | 2015-04-15T09:46:00.000Z | 2020-09-29T17:03:31.000Z | '''
Created on 17/07/2013
@author: drodri
'''
import pretty
if __name__ == '__main__':
pretty.pretty() | 12 | 26 | 0.657407 | 14 | 108 | 4.5 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089888 | 0.175926 | 108 | 9 | 27 | 12 | 0.617978 | 0.351852 | 0 | 0 | 0 | 0 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
9ef0828b5d323aca66ea9e3547693c10b7927a75 | 238 | py | Python | tests/functional/test_whoami.py | lipak2345/python-ecsclient | d3f61497348f7c89c760c036d010aa6ca1317c22 | [
"Apache-2.0"
] | null | null | null | tests/functional/test_whoami.py | lipak2345/python-ecsclient | d3f61497348f7c89c760c036d010aa6ca1317c22 | [
"Apache-2.0"
] | 1 | 2021-09-01T13:39:01.000Z | 2021-12-30T21:07:38.000Z | tests/functional/test_whoami.py | lipak2345/python-ecsclient | d3f61497348f7c89c760c036d010aa6ca1317c22 | [
"Apache-2.0"
] | null | null | null | from ecsclient import schemas
from tests import functional
class TestWhoami(functional.BaseTestCase):
def test_whoami(self):
response = self.client.user_info.whoami()
self.assertValidSchema(response, schemas.WHOAMI)
| 26.444444 | 56 | 0.760504 | 27 | 238 | 6.62963 | 0.666667 | 0.111732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163866 | 238 | 8 | 57 | 29.75 | 0.899497 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 4 |
9ef1464117cd9e29bfcaf01ed2b1db032ea940f5 | 25 | py | Python | tests/__init__.py | writepython/fmrest | c3eab39c5cfd97a1879f14f62a06e1b904471eb1 | [
"MIT"
] | null | null | null | tests/__init__.py | writepython/fmrest | c3eab39c5cfd97a1879f14f62a06e1b904471eb1 | [
"MIT"
] | null | null | null | tests/__init__.py | writepython/fmrest | c3eab39c5cfd97a1879f14f62a06e1b904471eb1 | [
"MIT"
] | null | null | null | u"""fmrest test suite"""
| 12.5 | 24 | 0.64 | 4 | 25 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 25 | 1 | 25 | 25 | 0.727273 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7303a26aee6cd10fd12037674a8473150cdda495 | 62 | py | Python | epimargin/etl/__init__.py | dilawar/epimargin | 0261117cb29dd233600d8f0410d79c93ba261fd3 | [
"MIT"
] | 6 | 2021-06-19T14:01:10.000Z | 2021-12-31T23:49:34.000Z | epimargin/etl/__init__.py | dilawar/epimargin | 0261117cb29dd233600d8f0410d79c93ba261fd3 | [
"MIT"
] | 34 | 2020-04-26T05:50:39.000Z | 2020-06-17T14:02:32.000Z | epimargin/etl/__init__.py | dilawar/epimargin | 0261117cb29dd233600d8f0410d79c93ba261fd3 | [
"MIT"
] | 5 | 2021-05-26T16:35:15.000Z | 2021-09-10T02:20:34.000Z | from .commons import download_data
__all__ = ["download_data"] | 31 | 34 | 0.806452 | 8 | 62 | 5.5 | 0.75 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 62 | 2 | 35 | 31 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0.206349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
734ad07da89c635db8109f0513835342e1c6ff52 | 206 | py | Python | en/056/python/main.py | franciscogomes2020/exercises | 8b33c4b9349a9331e4002a8225adc2a482c70024 | [
"MIT"
] | null | null | null | en/056/python/main.py | franciscogomes2020/exercises | 8b33c4b9349a9331e4002a8225adc2a482c70024 | [
"MIT"
] | null | null | null | en/056/python/main.py | franciscogomes2020/exercises | 8b33c4b9349a9331e4002a8225adc2a482c70024 | [
"MIT"
] | null | null | null | # Develop a program that reads the name, age and gender of 4 people. At the end of the program, show: the average age of the group, what the oldest man's name is, and how many women are under 20 years old.
| 103 | 205 | 0.752427 | 42 | 206 | 3.690476 | 0.738095 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018293 | 0.203884 | 206 | 1 | 206 | 206 | 0.926829 | 0.985437 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b413c86041a0b2a5cd3c8b16af72285a6a7c71f9 | 158 | py | Python | templatestore/apps.py | ackotech/django-templatestore | ec96f9b1f5b3d129bea0b2e8f3773bfcea440f36 | [
"Apache-2.0"
] | 7 | 2020-03-06T12:17:50.000Z | 2020-10-19T22:52:55.000Z | templatestore/apps.py | nilinswap/django-templatestore | bbf288a096b3a1e9d188d3dbd203cae2fc38b96c | [
"Apache-2.0"
] | 82 | 2020-03-11T11:10:48.000Z | 2022-02-28T03:20:52.000Z | templatestore/apps.py | wilspi/django-template-editor | 1c255ec408b209014039cc5d7907766d0c6475f3 | [
"Apache-2.0"
] | 3 | 2020-05-12T08:42:50.000Z | 2020-08-31T16:28:39.000Z | from django.apps import AppConfig
from templatestore import app_settings as ts_settings
class TemplateStoreAppConfig(AppConfig):
name = "templatestore"
| 22.571429 | 53 | 0.822785 | 18 | 158 | 7.111111 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132911 | 158 | 6 | 54 | 26.333333 | 0.934307 | 0 | 0 | 0 | 0 | 0 | 0.082278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 1 | 0 | 0 | 4 |
b45c03c065f3eef9a864748dad01da36e0574707 | 302 | py | Python | insult.py | mrmilosz/kosmibot | cb129958a9ec526d86d54035a1951b575166132e | [
"MIT"
] | null | null | null | insult.py | mrmilosz/kosmibot | cb129958a9ec526d86d54035a1951b575166132e | [
"MIT"
] | null | null | null | insult.py | mrmilosz/kosmibot | cb129958a9ec526d86d54035a1951b575166132e | [
"MIT"
] | null | null | null | import random
class Insult:
def __init__(self, filename):
self.insults = open(filename).read().splitlines()
def get(self, victim_name):
insult_format = random.choice(self.insults)
return insult_format % victim_name if insult_format.count('%s') == 1 else insult_format
| 30.2 | 95 | 0.692053 | 39 | 302 | 5.102564 | 0.589744 | 0.241206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004132 | 0.198676 | 302 | 9 | 96 | 33.555556 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.006623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
b475c19d7b1c708cb6b0f64175e80d2b65bc8baf | 164 | py | Python | Python-Basics/11.While/07. Min Number.py | Xamaneone/SoftUni-Intro | 985fe3249cd2adf021c2003372e840219811d989 | [
"MIT"
] | null | null | null | Python-Basics/11.While/07. Min Number.py | Xamaneone/SoftUni-Intro | 985fe3249cd2adf021c2003372e840219811d989 | [
"MIT"
] | null | null | null | Python-Basics/11.While/07. Min Number.py | Xamaneone/SoftUni-Intro | 985fe3249cd2adf021c2003372e840219811d989 | [
"MIT"
] | null | null | null | import sys
num = input()
max_num = sys.maxsize
while num != "Stop":
num = int(num)
if num < max_num:
max_num = num
num = input()
print (max_num) | 18.222222 | 21 | 0.591463 | 26 | 164 | 3.576923 | 0.423077 | 0.258065 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.280488 | 164 | 9 | 22 | 18.222222 | 0.788136 | 0 | 0 | 0.222222 | 0 | 0 | 0.024242 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.111111 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b47d94e2a42cf52292a95a7028763f65c377a38a | 786 | py | Python | Customers/search_indexes.py | solvable/rr | 314ae475ac9a56779d5deb3c457427bf6d8dcb5f | [
"MIT"
] | null | null | null | Customers/search_indexes.py | solvable/rr | 314ae475ac9a56779d5deb3c457427bf6d8dcb5f | [
"MIT"
] | null | null | null | Customers/search_indexes.py | solvable/rr | 314ae475ac9a56779d5deb3c457427bf6d8dcb5f | [
"MIT"
] | null | null | null | import datetime
from haystack import indexes
from .models import Customer
class CustomerIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document = True, use_template=True)
billStreet = indexes.CharField(model_attr='billStreet')
billCity = indexes.CharField(model_attr = 'billCity')
... | 34.173913 | 64 | 0.727735 | 92 | 786 | 6.097826 | 0.456522 | 0.228164 | 0.262032 | 0.311943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006126 | 0.169211 | 786 | 22 | 65 | 35.727273 | 0.852986 | 0.059796 | 0 | 0 | 0 | 0 | 0.069672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0.0625 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
b481d03cd45d6bbc9fa1956712ad4f93c3d5d91f | 171 | py | Python | Networking/checkip.py | inflatus/python | bc87e2ca9f40c0e53c0d6e15e364cb7dff1c6fc0 | [
"MIT"
] | null | null | null | Networking/checkip.py | inflatus/python | bc87e2ca9f40c0e53c0d6e15e364cb7dff1c6fc0 | [
"MIT"
] | 7 | 2021-02-08T20:43:38.000Z | 2022-03-12T00:17:16.000Z | Networking/checkip.py | inflatus/python | bc87e2ca9f40c0e53c0d6e15e364cb7dff1c6fc0 | [
"MIT"
] | null | null | null | import bs4 as bs
import urllib.request
sauce = urllib.request.urlopen('http://checkip.dyndns.com/').read()
soup = bs.BeautifulSoup(sauce, 'lxml')
print(soup.body.text)
| 19 | 67 | 0.736842 | 25 | 171 | 5.04 | 0.76 | 0.206349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006494 | 0.099415 | 171 | 8 | 68 | 21.375 | 0.811688 | 0 | 0 | 0 | 0 | 0 | 0.175439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b48eeba6140b93856bd85f47bb610f870ec796c5 | 17,239 | py | Python | test/test_config_api.py | dcompane/controlm_py | c521208be2f00303383bb32ca5eb2b7ff91999d3 | [
"MIT"
] | 2 | 2020-03-20T18:24:23.000Z | 2021-03-05T22:05:04.000Z | test/test_config_api.py | dcompane/controlm_py | c521208be2f00303383bb32ca5eb2b7ff91999d3 | [
"MIT"
] | null | null | null | test/test_config_api.py | dcompane/controlm_py | c521208be2f00303383bb32ca5eb2b7ff91999d3 | [
"MIT"
] | 1 | 2021-05-27T15:54:37.000Z | 2021-05-27T15:54:37.000Z | # coding: utf-8
"""
Control-M Services
Provides access to BMC Control-M Services # noqa: E501
OpenAPI spec version: 9.20.220
Contact: customer_support@bmc.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import con... | 23.046791 | 106 | 0.598353 | 2,151 | 17,239 | 4.521153 | 0.088796 | 0.086375 | 0.115373 | 0.157326 | 0.665913 | 0.557738 | 0.36329 | 0.155784 | 0.081645 | 0.036195 | 0 | 0.027893 | 0.330356 | 17,239 | 747 | 107 | 23.077644 | 0.814536 | 0.473519 | 0 | 0.476852 | 1 | 0 | 0.001177 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.481481 | false | 0.481481 | 0.023148 | 0 | 0.509259 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
c30168b513edbca9538354032bfa2c8a29a52dd2 | 1,547 | py | Python | sounds/sound.py | liuzihau/OutdoorAtHome | aaf928c8e8e347b5ed9809e20b4536250236eca5 | [
"Apache-2.0"
] | null | null | null | sounds/sound.py | liuzihau/OutdoorAtHome | aaf928c8e8e347b5ed9809e20b4536250236eca5 | [
"Apache-2.0"
] | null | null | null | sounds/sound.py | liuzihau/OutdoorAtHome | aaf928c8e8e347b5ed9809e20b4536250236eca5 | [
"Apache-2.0"
] | null | null | null | import pygame
import time
class fitness_sound():
def __init__(self):
self.soundon = 0
def play_my_sound(self,type,timer):
if timer < 10 and (self.soundon) == 0:
file = f"sounds/{type}.wav"
pygame.mixer.init()
pygame.mixer.music.load(file)
... | 32.229167 | 89 | 0.593407 | 187 | 1,547 | 4.748663 | 0.315508 | 0.247748 | 0.288288 | 0.18018 | 0.476351 | 0.43018 | 0.43018 | 0.43018 | 0.146396 | 0.146396 | 0 | 0.039753 | 0.268261 | 1,547 | 47 | 90 | 32.914894 | 0.7447 | 0.581771 | 0 | 0 | 0 | 0 | 0.043783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.0625 | 0.125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
c30d2d844087c5379759af26dd7d4435667f3e44 | 212 | py | Python | ComicPub/homepage/urls.py | Xonshiz/ComicPub | d332ee1b62d6c28347954280696c86898de6d125 | [
"MIT"
] | 8 | 2017-09-02T07:04:59.000Z | 2020-12-17T17:30:34.000Z | ComicPub/homepage/urls.py | Xonshiz/ComicPub | d332ee1b62d6c28347954280696c86898de6d125 | [
"MIT"
] | 1 | 2017-10-24T12:49:57.000Z | 2017-10-24T15:04:44.000Z | ComicPub/homepage/urls.py | Xonshiz/ComicPub | d332ee1b62d6c28347954280696c86898de6d125 | [
"MIT"
] | 4 | 2017-10-24T14:13:13.000Z | 2021-12-15T17:09:23.000Z | from django.conf.urls import url
from homepage import views
urlpatterns = [
url(r'^$', views.homepage_index, name="homepage_index"),
# url(r'^$', views.HomePageIndex.as_view(), name="homepage_index"),
]
| 26.5 | 71 | 0.70283 | 28 | 212 | 5.178571 | 0.535714 | 0.268966 | 0.124138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132075 | 212 | 7 | 72 | 30.285714 | 0.788043 | 0.306604 | 0 | 0 | 0 | 0 | 0.110345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c3430dbaae1e18444157551926f94a3cdeac9fd6 | 5,164 | py | Python | Dynamic_HD_Scripts/Dynamic_HD_Script_Tests/test_create_connected_lsmask_wrapper.py | ThomasRiddick/DynamicHD | bff378a49ff6c709dc59c2d6835852e1083df20a | [
"BSD-3-Clause"
] | 1 | 2021-08-04T07:51:18.000Z | 2021-08-04T07:51:18.000Z | Dynamic_HD_Scripts/Dynamic_HD_Script_Tests/test_create_connected_lsmask_wrapper.py | ThomasRiddick/DynamicHD | bff378a49ff6c709dc59c2d6835852e1083df20a | [
"BSD-3-Clause"
] | 1 | 2022-01-27T22:12:45.000Z | 2022-02-01T10:16:47.000Z | Dynamic_HD_Scripts/Dynamic_HD_Script_Tests/test_create_connected_lsmask_wrapper.py | ThomasRiddick/DynamicHD | bff378a49ff6c709dc59c2d6835852e1083df20a | [
"BSD-3-Clause"
] | null | null | null | '''
Unit test of the wrapper for the connected ls mask creation c++ code
Created on May 25, 2016
@author: thomasriddick
'''
import unittest
import numpy as np
from Dynamic_HD_Scripts.interface.cpp_interface.libs \
import create_connected_lsmask_wrapper as cc_lsmask_wrapper #@UnresolvedImport
class Test(unittes... | 56.747253 | 104 | 0.332107 | 627 | 5,164 | 2.647528 | 0.133971 | 0.274699 | 0.334337 | 0.371084 | 0.675904 | 0.642169 | 0.629518 | 0.543373 | 0.540964 | 0.539157 | 0 | 0.174979 | 0.541828 | 5,164 | 90 | 105 | 57.377778 | 0.526627 | 0.079202 | 0 | 0.617647 | 0 | 0 | 0.035775 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 1 | 0.044118 | false | 0 | 0.044118 | 0 | 0.102941 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5ee7fd8c534c68c54c2fb265b67760d2ddc3122c | 535 | py | Python | detectron/lib/python3.6/site-packages/torch/distributed/__init__.py | JustinBear99/Mask_RCNN | d43eaf7c6ebf29d4d6da796a0f7ff5561e21acff | [
"Apache-2.0"
] | null | null | null | detectron/lib/python3.6/site-packages/torch/distributed/__init__.py | JustinBear99/Mask_RCNN | d43eaf7c6ebf29d4d6da796a0f7ff5561e21acff | [
"Apache-2.0"
] | null | null | null | detectron/lib/python3.6/site-packages/torch/distributed/__init__.py | JustinBear99/Mask_RCNN | d43eaf7c6ebf29d4d6da796a0f7ff5561e21acff | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import, division, print_function, unicode_literals
import torch
def is_available():
return hasattr(torch._C, "_c10d_init")
if is_available() and not torch._C._c10d_init():
raise RuntimeError("Failed to initialize torch.distributed")
if is_available():
from .distributed... | 25.47619 | 82 | 0.753271 | 71 | 535 | 5.380282 | 0.647887 | 0.086387 | 0.052356 | 0.073298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022624 | 0.173832 | 535 | 20 | 83 | 26.75 | 0.841629 | 0.256075 | 0 | 0 | 0 | 0 | 0.121827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.444444 | 0.111111 | 0.666667 | 0.111111 | 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 | 1 | 1 | 0 | 0 | 4 |
5eff80f47e96a0ee278f12733fb14f20ac08f80f | 184 | py | Python | demos/consts.py | Linusp/soph | 46822f347795f51c3872a164fbbe416fa0e91807 | [
"MIT"
] | 41 | 2016-04-28T03:14:27.000Z | 2021-02-21T18:55:09.000Z | demos/consts.py | Linusp/soph | 46822f347795f51c3872a164fbbe416fa0e91807 | [
"MIT"
] | 3 | 2016-06-19T07:29:56.000Z | 2017-12-15T09:39:05.000Z | demos/consts.py | Linusp/soph | 46822f347795f51c3872a164fbbe416fa0e91807 | [
"MIT"
] | 25 | 2016-06-07T17:29:02.000Z | 2021-05-08T08:43:36.000Z | import os
PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
MODEL_PATH = os.path.join(PROJECT_ROOT, 'models')
DATA_PATH = os.path.join(PROJECT_ROOT, 'data')
| 26.285714 | 74 | 0.76087 | 30 | 184 | 4.366667 | 0.4 | 0.229008 | 0.198473 | 0.229008 | 0.625954 | 0.381679 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081522 | 184 | 6 | 75 | 30.666667 | 0.775148 | 0 | 0 | 0 | 0 | 0 | 0.054348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 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 | 4 |
6f04a19a9c1a981eb21b779442f0b4bc0fe57542 | 765 | py | Python | meta_features/base.py | mostafaelaraby/generalization-gap-features-tensorflow | efec157d790a43a3fdeed81f3bf521023f6a83af | [
"Apache-2.0"
] | null | null | null | meta_features/base.py | mostafaelaraby/generalization-gap-features-tensorflow | efec157d790a43a3fdeed81f3bf521023f6a83af | [
"Apache-2.0"
] | null | null | null | meta_features/base.py | mostafaelaraby/generalization-gap-features-tensorflow | efec157d790a43a3fdeed81f3bf521023f6a83af | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
class Base:
def __init__(self, name, feature_names,is_demogen=False):
self.name = name
self.feature_names = [feature_name +"_" + name for feature_name in feature_names]
self.last_runtime = -1
self.is_demogen = is_demogen
def get_name(self):
retur... | 29.423077 | 90 | 0.645752 | 104 | 765 | 4.509615 | 0.423077 | 0.127932 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008945 | 0.269281 | 765 | 25 | 91 | 30.6 | 0.830054 | 0.067974 | 0 | 0 | 0 | 0 | 0.019691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0.052632 | 0.052632 | 0.157895 | 0.684211 | 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 | 1 | 0 | 0 | 4 |
6f0bca427672985c83338cd9e7a168273972ffbc | 124 | py | Python | exercicios/007.py | daldantas/Curso-Python | 96d09393b1ad278990156906e965c0d7adb4f4aa | [
"MIT"
] | null | null | null | exercicios/007.py | daldantas/Curso-Python | 96d09393b1ad278990156906e965c0d7adb4f4aa | [
"MIT"
] | null | null | null | exercicios/007.py | daldantas/Curso-Python | 96d09393b1ad278990156906e965c0d7adb4f4aa | [
"MIT"
] | null | null | null | n1 = float(input("Digite um número: "))
n2 = float(input("Digite outro: "))
m = (n1 + n2) / 2
print('{:.2f}'.format(m))
| 24.8 | 40 | 0.556452 | 19 | 124 | 3.631579 | 0.684211 | 0.289855 | 0.463768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059406 | 0.185484 | 124 | 4 | 41 | 31 | 0.623762 | 0 | 0 | 0 | 0 | 0 | 0.316667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6f31f0c7e51779dad4dfb9c66baaa199153ee423 | 76 | py | Python | ex41.py | cohadar/learn-python-the-hard-way | 10d88fe59a8abc5303661cfe91c6db9fa71bdd56 | [
"MIT"
] | null | null | null | ex41.py | cohadar/learn-python-the-hard-way | 10d88fe59a8abc5303661cfe91c6db9fa71bdd56 | [
"MIT"
] | null | null | null | ex41.py | cohadar/learn-python-the-hard-way | 10d88fe59a8abc5303661cfe91c6db9fa71bdd56 | [
"MIT"
] | null | null | null | # list.copy is done with lst[:]
# This tutorial is gettingg more insane
| 10.857143 | 39 | 0.697368 | 12 | 76 | 4.416667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223684 | 76 | 6 | 40 | 12.666667 | 0.898305 | 0.881579 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6f3309530d706d96b59228aae1ae630bdda51555 | 421 | py | Python | Droit/views/errors.py | Halleloya/DBAC | af149fdcb18cb12817ea44b45750ede502d114a2 | [
"BSD-3-Clause"
] | null | null | null | Droit/views/errors.py | Halleloya/DBAC | af149fdcb18cb12817ea44b45750ede502d114a2 | [
"BSD-3-Clause"
] | null | null | null | Droit/views/errors.py | Halleloya/DBAC | af149fdcb18cb12817ea44b45750ede502d114a2 | [
"BSD-3-Clause"
] | null | null | null | """
Define the error pages for the project
"""
from flask import render_template
def register_error_page(app):
@app.errorhandler(404)
def page_not_found(e):
# note that we set the 404 status explicitly
return render_template('/errors/404.html', description = e), 404
@app.errorhandler(401... | 24.764706 | 72 | 0.688836 | 57 | 421 | 4.964912 | 0.561404 | 0.14841 | 0.141343 | 0.183746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062874 | 0.206651 | 421 | 16 | 73 | 26.3125 | 0.784431 | 0.194774 | 0 | 0 | 0 | 0 | 0.096677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0.25 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
6f39bd3d68171b799a53acf6028ddb77cbf33f05 | 531 | py | Python | test/test_main_view.py | pixb/great-hero-beard-robot | 5c2b9549e43f756f1604e98fb06b15ad437c11f3 | [
"MIT"
] | null | null | null | test/test_main_view.py | pixb/great-hero-beard-robot | 5c2b9549e43f756f1604e98fb06b15ad437c11f3 | [
"MIT"
] | null | null | null | test/test_main_view.py | pixb/great-hero-beard-robot | 5c2b9549e43f756f1604e98fb06b15ad437c11f3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time : 2021/8/25 8:15
# @Author : pixb
# @Email : tpxsky@163.com
# @File : test_main_view.py
# @Software: PyCharm
# @Description:
from view.main_view import main_view
def test_main_back():
main_view().click_back()
def test_click_enter():
main_view().click_enter()
def test... | 18.310345 | 36 | 0.676083 | 79 | 531 | 4.177215 | 0.43038 | 0.218182 | 0.157576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031746 | 0.169492 | 531 | 28 | 37 | 18.964286 | 0.716553 | 0.284369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.461538 | true | 0 | 0.076923 | 0 | 0.538462 | 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 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
6f451f7ac64563044fa2508a7e4f4b2ced214879 | 45 | py | Python | lang/py/cookbook/v2/source/cb2_2_1_sol_5.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_2_1_sol_5.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_2_1_sol_5.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | for line in file_object:
## process line
| 15 | 24 | 0.688889 | 7 | 45 | 4.285714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244444 | 45 | 2 | 25 | 22.5 | 0.882353 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
489f8c5a279d112759479481c820706af52d0b4e | 115 | py | Python | Scripts/support/textManipulation.py | MainDuelo/Python-Tkinter-and-SQLite | 7f69780ce9c1c8ebe807197448030aed94c3a082 | [
"MIT"
] | null | null | null | Scripts/support/textManipulation.py | MainDuelo/Python-Tkinter-and-SQLite | 7f69780ce9c1c8ebe807197448030aed94c3a082 | [
"MIT"
] | null | null | null | Scripts/support/textManipulation.py | MainDuelo/Python-Tkinter-and-SQLite | 7f69780ce9c1c8ebe807197448030aed94c3a082 | [
"MIT"
] | null | null | null | class TextManipulation:
def formatText(text):
newText = text.replace("&", "\n")
return newText | 23 | 41 | 0.608696 | 11 | 115 | 6.363636 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 115 | 5 | 42 | 23 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0.025862 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
48a91e52dcde69b0ac65d9abba9b30445878565f | 249 | py | Python | setup.py | PublicMapping/districtbuilder-classic-config | a83fd3d8c541475b80eb056d1d3a0f297986ba63 | [
"Apache-2.0"
] | null | null | null | setup.py | PublicMapping/districtbuilder-classic-config | a83fd3d8c541475b80eb056d1d3a0f297986ba63 | [
"Apache-2.0"
] | 1 | 2018-03-01T21:44:48.000Z | 2018-03-01T21:44:48.000Z | setup.py | PublicMapping/district-builder-config | a83fd3d8c541475b80eb056d1d3a0f297986ba63 | [
"Apache-2.0"
] | null | null | null | from distutils.core import setup
setup(
name="district_builder_config",
version="0.1.0",
packages=["district_builder_config"],
package_data={'': ['templates/*.j2']},
install_requires=[
'jinja2',
'lxml',
],
)
| 19.153846 | 42 | 0.60241 | 26 | 249 | 5.538462 | 0.807692 | 0.208333 | 0.291667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025907 | 0.2249 | 249 | 12 | 43 | 20.75 | 0.720207 | 0 | 0 | 0 | 0 | 0 | 0.301205 | 0.184739 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
48e39fdcd0c968124ac508cfc46fb1d14ee18ae9 | 96 | py | Python | Lesson 5 Miniflow/Backpropagation/nn.py | alchemz/Self-Driving-Car-Engineer-Nanodegree | 70d6ae9d741b6c53712e0099af04597dc0ba0291 | [
"MIT"
] | 1 | 2021-03-20T12:32:35.000Z | 2021-03-20T12:32:35.000Z | Lesson 5 Miniflow/Backpropagation/nn.py | alchemz/Self-Driving-Car-Engineer-Nanodegree | 70d6ae9d741b6c53712e0099af04597dc0ba0291 | [
"MIT"
] | null | null | null | Lesson 5 Miniflow/Backpropagation/nn.py | alchemz/Self-Driving-Car-Engineer-Nanodegree | 70d6ae9d741b6c53712e0099af04597dc0ba0291 | [
"MIT"
] | null | null | null | import numpy as np
from miniflow import *
X, W, b = Input(), Input(), Input()
y = Input()
f= li | 16 | 35 | 0.625 | 17 | 96 | 3.529412 | 0.764706 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 96 | 6 | 36 | 16 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
5b01b43a5925ea007b714242cb2e97f79df2f191 | 318 | py | Python | config_handler/exceptions.py | amphinicy/config-handler | 3f787b569eba253bf013a4f8e7324a56153d0d2c | [
"MIT"
] | null | null | null | config_handler/exceptions.py | amphinicy/config-handler | 3f787b569eba253bf013a4f8e7324a56153d0d2c | [
"MIT"
] | 1 | 2019-04-10T13:27:32.000Z | 2019-04-10T13:27:32.000Z | config_handler/exceptions.py | amphinicy/config-handler | 3f787b569eba253bf013a4f8e7324a56153d0d2c | [
"MIT"
] | null | null | null | class ConfigHandlerException(Exception):
"""Main Config Handler Exception class"""
class ConfigHandlerFileReadException(ConfigHandlerException):
"""Config Handler ConfigFile Read Exception class"""
class ConfigHandlerNamingException(ConfigHandlerException):
"""Config Handler Naming Exception class"""
| 28.909091 | 61 | 0.795597 | 25 | 318 | 10.12 | 0.44 | 0.15415 | 0.150198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119497 | 318 | 10 | 62 | 31.8 | 0.903571 | 0.377358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
5b0459c3b7ef7ef2b7d03a3837c86bc10528d470 | 173 | py | Python | lab-taxi/main.py | piotrbazan/deep-reinforcement-learning | 165ab29a1d85630b7baa7ccb31a1ab91cd0c6413 | [
"MIT"
] | null | null | null | lab-taxi/main.py | piotrbazan/deep-reinforcement-learning | 165ab29a1d85630b7baa7ccb31a1ab91cd0c6413 | [
"MIT"
] | null | null | null | lab-taxi/main.py | piotrbazan/deep-reinforcement-learning | 165ab29a1d85630b7baa7ccb31a1ab91cd0c6413 | [
"MIT"
] | null | null | null | from agent import *
from monitor import interact
import gym
import numpy as np
env = gym.make('Taxi-v2')
agent = Sarsa()
avg_rewards, best_avg_reward = interact(env, agent) | 21.625 | 51 | 0.763006 | 28 | 173 | 4.607143 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006757 | 0.144509 | 173 | 8 | 51 | 21.625 | 0.864865 | 0 | 0 | 0 | 0 | 0 | 0.04023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 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 | 1 | 0 | 0 | 4 |
5b095a6e5b2e6b4226aeb79c336118f61aed7522 | 211 | py | Python | 301-400/381-390/389-findTheDifference/findTheDifference.py | xuychen/Leetcode | c8bf33af30569177c5276ffcd72a8d93ba4c402a | [
"MIT"
] | null | null | null | 301-400/381-390/389-findTheDifference/findTheDifference.py | xuychen/Leetcode | c8bf33af30569177c5276ffcd72a8d93ba4c402a | [
"MIT"
] | null | null | null | 301-400/381-390/389-findTheDifference/findTheDifference.py | xuychen/Leetcode | c8bf33af30569177c5276ffcd72a8d93ba4c402a | [
"MIT"
] | null | null | null | class Solution(object):
def findTheDifference(self, s, t):
"""
:type s: str
:type t: str
:rtype: str
"""
return chr(reduce(lambda a, b: a ^ ord(b), s + t, 0)) | 23.444444 | 61 | 0.473934 | 28 | 211 | 3.571429 | 0.678571 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007576 | 0.374408 | 211 | 9 | 61 | 23.444444 | 0.75 | 0.175355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
5b2386fcb0b3e8b285fc398f98e7d07a722a8b64 | 215 | py | Python | tests/context.py | alethiophile/openakun | 6e9a6aee403c3b94dd3e323ff39a6bdfd80e2374 | [
"MIT"
] | null | null | null | tests/context.py | alethiophile/openakun | 6e9a6aee403c3b94dd3e323ff39a6bdfd80e2374 | [
"MIT"
] | null | null | null | tests/context.py | alethiophile/openakun | 6e9a6aee403c3b94dd3e323ff39a6bdfd80e2374 | [
"MIT"
] | null | null | null | import os, sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__),
'..')))
os.environ['OPENAKUN_TESTING'] = '1'
import openakun.pages as pages
| 30.714286 | 74 | 0.562791 | 27 | 215 | 4.296296 | 0.592593 | 0.155172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013072 | 0.288372 | 215 | 6 | 75 | 35.833333 | 0.745098 | 0 | 0 | 0 | 0 | 0 | 0.088372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
d2ef21259f46a9a9c179cd80888c657a70a2e47d | 89 | py | Python | src/Server/backend/GnC/apps.py | tejpratap545/denselight_system | af927da71113e48c9673e3f72623f1f28785ae7c | [
"Apache-2.0"
] | null | null | null | src/Server/backend/GnC/apps.py | tejpratap545/denselight_system | af927da71113e48c9673e3f72623f1f28785ae7c | [
"Apache-2.0"
] | null | null | null | src/Server/backend/GnC/apps.py | tejpratap545/denselight_system | af927da71113e48c9673e3f72623f1f28785ae7c | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class GncConfig(AppConfig):
name = "backend.GnC"
| 14.833333 | 33 | 0.741573 | 11 | 89 | 6 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168539 | 89 | 5 | 34 | 17.8 | 0.891892 | 0 | 0 | 0 | 0 | 0 | 0.123596 | 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 | 1 | 0 | 0 | 4 |
9623396c4d30354ea50b7124a5736fecdcb321a7 | 646 | py | Python | tests/test_utils.py | Copper-Head/RoboSanta | 1e9ca5d7c21bc8e893dcb6f25e9c6baadfe08ba4 | [
"MIT"
] | null | null | null | tests/test_utils.py | Copper-Head/RoboSanta | 1e9ca5d7c21bc8e893dcb6f25e9c6baadfe08ba4 | [
"MIT"
] | 1 | 2019-12-16T10:48:16.000Z | 2019-12-16T10:48:16.000Z | tests/test_utils.py | iliakur/RoboSanta | 1e9ca5d7c21bc8e893dcb6f25e9c6baadfe08ba4 | [
"MIT"
] | null | null | null | from fileIO import experiment_item_name
def test_experiment_item_name():
path = "some-file.lp"
assert experiment_item_name(path) == "some-file"
nested_path = "/some-dir/some-file.lp"
assert experiment_item_name(nested_path) == "some-file"
different_extension = "some-file.txt"
assert experimen... | 30.761905 | 67 | 0.719814 | 85 | 646 | 5.152941 | 0.258824 | 0.255708 | 0.328767 | 0.328767 | 0.406393 | 0.232877 | 0.155251 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 646 | 20 | 68 | 32.3 | 0.805147 | 0 | 0 | 0 | 0 | 0 | 0.196594 | 0.034056 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
82593e4646811dacb505111ef4336f562e786178 | 1,356 | py | Python | cirq/ion/ion_gates.py | alexisshaw/Cirq | f907314fdce765c433206d6ad3c4cff02df07cd9 | [
"Apache-2.0"
] | 1 | 2020-07-16T07:09:10.000Z | 2020-07-16T07:09:10.000Z | cirq/ion/ion_gates.py | alexisshaw/Cirq | f907314fdce765c433206d6ad3c4cff02df07cd9 | [
"Apache-2.0"
] | null | null | null | cirq/ion/ion_gates.py | alexisshaw/Cirq | f907314fdce765c433206d6ad3c4cff02df07cd9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 The Cirq Developers
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 33.073171 | 75 | 0.634218 | 198 | 1,356 | 4.348485 | 0.570707 | 0.069686 | 0.010453 | 0.037166 | 0.018583 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019527 | 0.282448 | 1,356 | 40 | 76 | 33.9 | 0.863309 | 0.822271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0 | 1 | 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 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
82612217373354876b13477c4703bf972232dbe2 | 66 | py | Python | tonga/services/consumer/__init__.py | Qotto/tonga | a6ae223ebf0fb7b317118b762102f1909435d1cf | [
"MIT"
] | 1 | 2019-12-17T10:06:03.000Z | 2019-12-17T10:06:03.000Z | tonga/services/consumer/__init__.py | Qotto/tonga | a6ae223ebf0fb7b317118b762102f1909435d1cf | [
"MIT"
] | 1 | 2019-07-04T15:22:58.000Z | 2019-07-05T07:23:31.000Z | tonga/services/consumer/__init__.py | Qotto/tonga | a6ae223ebf0fb7b317118b762102f1909435d1cf | [
"MIT"
] | 2 | 2019-06-05T15:40:49.000Z | 2019-12-10T09:24:23.000Z | #!/usr/bin/env python
# coding: utf-8
# Copyright (c) Qotto, 2019
| 16.5 | 27 | 0.666667 | 11 | 66 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089286 | 0.151515 | 66 | 3 | 28 | 22 | 0.696429 | 0.909091 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
82694872601c915d96e15a32375bdbef43a5183a | 970 | py | Python | app.py | pwentrys/app_factory | 17081ef7c8e5867f33323d2f78880f8657693d3c | [
"MIT"
] | null | null | null | app.py | pwentrys/app_factory | 17081ef7c8e5867f33323d2f78880f8657693d3c | [
"MIT"
] | null | null | null | app.py | pwentrys/app_factory | 17081ef7c8e5867f33323d2f78880f8657693d3c | [
"MIT"
] | null | null | null | # --------------------------------------------------------------------------- #
# #
# Core Imports #
# #
... | 60.625 | 79 | 0.170103 | 27 | 970 | 6.111111 | 0.62963 | 0.072727 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.486598 | 970 | 15 | 80 | 64.666667 | 0.331325 | 0.791753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
8273757df88786f297c61ff04cedfdae61e481d7 | 300 | py | Python | tdd/chap1/superlists/lists/views.py | peter-wangxu/python_play | 5774c192a49ea0c35504697dd75e1c2c8e366097 | [
"Apache-2.0"
] | null | null | null | tdd/chap1/superlists/lists/views.py | peter-wangxu/python_play | 5774c192a49ea0c35504697dd75e1c2c8e366097 | [
"Apache-2.0"
] | null | null | null | tdd/chap1/superlists/lists/views.py | peter-wangxu/python_play | 5774c192a49ea0c35504697dd75e1c2c8e366097 | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def home_page(request):
if request.method == 'POST':
return render(request, 'home.html',
{'new_item_text': request.POST['item_text']})
return render(request, 'home.html')
| 30 | 57 | 0.69 | 39 | 300 | 5.205128 | 0.589744 | 0.098522 | 0.187192 | 0.226601 | 0.26601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19 | 300 | 9 | 58 | 33.333333 | 0.835391 | 0.076667 | 0 | 0 | 0 | 0 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
8280cecb7c7dcd1eedb6b5aa0ff542a5d44743f8 | 172 | py | Python | app/secure.py | ttkltll/fisher | 8889705c7bde10304cfde7972b805226ac59d735 | [
"MIT"
] | null | null | null | app/secure.py | ttkltll/fisher | 8889705c7bde10304cfde7972b805226ac59d735 | [
"MIT"
] | 3 | 2020-09-15T23:37:18.000Z | 2020-09-16T00:36:55.000Z | app/secure.py | ttkltll/fisher | 8889705c7bde10304cfde7972b805226ac59d735 | [
"MIT"
] | 1 | 2020-09-15T02:55:54.000Z | 2020-09-15T02:55:54.000Z | DEBUG = True
SECRET_KEY = "iECgbYWReMNxkRprrzMo5KAQYnb2UeZ3bwvReTSt+VSESW0OB8zbglT+6rEcDW9X"
SQLALCHEMY_DATABASE_URI = "mysql+pymysql://root:999999@127.0.0.1:3306/fisher"
| 34.4 | 79 | 0.825581 | 20 | 172 | 6.95 | 0.95 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141975 | 0.05814 | 172 | 4 | 80 | 43 | 0.716049 | 0 | 0 | 0 | 0 | 0 | 0.656977 | 0.656977 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8286e87e74c0a3b6aaf9f7f538e426e74f579609 | 2,696 | py | Python | tests/chadlib/utility/test_hex_math.py | cjreynol/chadlib | e417a6c5b100b7124a7d9b61d0120b3caa897bb8 | [
"MIT"
] | 1 | 2021-08-06T21:56:52.000Z | 2021-08-06T21:56:52.000Z | tests/chadlib/utility/test_hex_math.py | cjreynol/chadlib | e417a6c5b100b7124a7d9b61d0120b3caa897bb8 | [
"MIT"
] | null | null | null | tests/chadlib/utility/test_hex_math.py | cjreynol/chadlib | e417a6c5b100b7124a7d9b61d0120b3caa897bb8 | [
"MIT"
] | null | null | null | from unittest import TestCase
from chadlib.utility.hex_math import *
class TestHexMath(TestCase):
def setUp(self):
self.position0 = (0, 0, 0)
self.position1 = (3, 2, -5)
self.cubic_positions = [self.position0, self.position1]
self.axial_positions = [cubic_... | 40.238806 | 79 | 0.642804 | 312 | 2,696 | 5.285256 | 0.157051 | 0.230443 | 0.251061 | 0.22074 | 0.580958 | 0.23772 | 0.221953 | 0.181928 | 0.158884 | 0.158884 | 0 | 0.007948 | 0.253338 | 2,696 | 66 | 80 | 40.848485 | 0.811227 | 0 | 0 | 0.163265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.408163 | 1 | 0.163265 | false | 0.020408 | 0.040816 | 0 | 0.22449 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
82d56627eeab3ffbe585d54cc8f75f3c576e1b38 | 953 | py | Python | Products/CMFDefault/browser/membership/tests/test_password.py | zopefoundation/Products.CMFDefault | a176d9aac5a7e04725dbd0f7b76c6ac357062139 | [
"ZPL-2.1"
] | null | null | null | Products/CMFDefault/browser/membership/tests/test_password.py | zopefoundation/Products.CMFDefault | a176d9aac5a7e04725dbd0f7b76c6ac357062139 | [
"ZPL-2.1"
] | 5 | 2017-07-13T00:51:25.000Z | 2021-02-04T15:08:39.000Z | Products/CMFDefault/browser/membership/tests/test_password.py | zopefoundation/Products.CMFDefault | a176d9aac5a7e04725dbd0f7b76c6ac357062139 | [
"ZPL-2.1"
] | 3 | 2017-07-08T03:22:35.000Z | 2018-05-20T06:42:03.000Z | ##############################################################################
#
# Copyright (c) 2010 Zope Foundation and Contributors.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS I... | 32.862069 | 78 | 0.644281 | 102 | 953 | 5.980392 | 0.656863 | 0.04918 | 0.045902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007255 | 0.132214 | 953 | 28 | 79 | 34.035714 | 0.730351 | 0.500525 | 0 | 0 | 0 | 0 | 0.039604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.333333 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 4 |
7d5a78f6c67bd1f330633bff6ded50e2ddfe0ba1 | 116 | py | Python | Chapter 4, Working with lists/Dimensions.py | EdgarCastillo101/Crash-Course-Python-2nd-edition | 484c9096076c0ba69b1b9d78c6c974064fc1eda3 | [
"MIT"
] | null | null | null | Chapter 4, Working with lists/Dimensions.py | EdgarCastillo101/Crash-Course-Python-2nd-edition | 484c9096076c0ba69b1b9d78c6c974064fc1eda3 | [
"MIT"
] | null | null | null | Chapter 4, Working with lists/Dimensions.py | EdgarCastillo101/Crash-Course-Python-2nd-edition | 484c9096076c0ba69b1b9d78c6c974064fc1eda3 | [
"MIT"
] | null | null | null | dimensions = (200, 50)
print(dimensions[0])
print(dimensions[1])
for dimension in dimensions:
print(dimension)
| 16.571429 | 28 | 0.732759 | 15 | 116 | 5.666667 | 0.6 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07 | 0.137931 | 116 | 6 | 29 | 19.333333 | 0.78 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.6 | 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 | 1 | 0 | 4 |
7d6c22baeb76c6b284171db438291f9c73274cbd | 158 | py | Python | tests/web_platform/css_grid_1/placement/test_grid_layout_grid_span.py | fletchgraham/colosseum | 77be4896ee52b8f5956a3d77b5f2ccd2c8608e8f | [
"BSD-3-Clause"
] | null | null | null | tests/web_platform/css_grid_1/placement/test_grid_layout_grid_span.py | fletchgraham/colosseum | 77be4896ee52b8f5956a3d77b5f2ccd2c8608e8f | [
"BSD-3-Clause"
] | null | null | null | tests/web_platform/css_grid_1/placement/test_grid_layout_grid_span.py | fletchgraham/colosseum | 77be4896ee52b8f5956a3d77b5f2ccd2c8608e8f | [
"BSD-3-Clause"
] | 1 | 2020-01-16T01:56:41.000Z | 2020-01-16T01:56:41.000Z | from tests.utils import W3CTestCase
class TestGridLayoutGridSpan(W3CTestCase):
vars().update(W3CTestCase.find_tests(__file__, 'grid-layout-grid-span'))
| 26.333333 | 76 | 0.797468 | 18 | 158 | 6.722222 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.088608 | 158 | 5 | 77 | 31.6 | 0.819444 | 0 | 0 | 0 | 0 | 0 | 0.133758 | 0.133758 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
7d729d85a98251daea415fb32ab2c34067197ac1 | 47 | py | Python | gunmel/__init__.py | zhenkai/xgunicorn | 33fc122fdc9435ba0b6562186d3c86d983eb992a | [
"Apache-2.0"
] | null | null | null | gunmel/__init__.py | zhenkai/xgunicorn | 33fc122fdc9435ba0b6562186d3c86d983eb992a | [
"Apache-2.0"
] | null | null | null | gunmel/__init__.py | zhenkai/xgunicorn | 33fc122fdc9435ba0b6562186d3c86d983eb992a | [
"Apache-2.0"
] | 1 | 2020-03-03T04:04:56.000Z | 2020-03-03T04:04:56.000Z | default_app_config = 'gunmel.apps.GunmelConfig' | 47 | 47 | 0.851064 | 6 | 47 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 47 | 1 | 47 | 47 | 0.844444 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0.5 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7d94251483a50c8aa6ab8c10c219bd54c68dc27e | 130 | py | Python | my_test.py | CT-assignments-S20-E/farm-problem-natanbrook | 230b113a674a5af0c0fea60b790ea39ae1fef131 | [
"Apache-2.0"
] | null | null | null | my_test.py | CT-assignments-S20-E/farm-problem-natanbrook | 230b113a674a5af0c0fea60b790ea39ae1fef131 | [
"Apache-2.0"
] | null | null | null | my_test.py | CT-assignments-S20-E/farm-problem-natanbrook | 230b113a674a5af0c0fea60b790ea39ae1fef131 | [
"Apache-2.0"
] | 1 | 2020-05-28T14:46:21.000Z | 2020-05-28T14:46:21.000Z | from my_code import legs
def test_inc():
assert 20 == legs(2,2,2)
assert 34 == legs(5,2,4)
assert 22 == legs(1,3,2)
| 16.25 | 28 | 0.592308 | 26 | 130 | 2.884615 | 0.653846 | 0.053333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153061 | 0.246154 | 130 | 7 | 29 | 18.571429 | 0.612245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.6 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7db3d422b2d20a3a1284dae52404eb114c7e72c3 | 62 | py | Python | lmtuners/models/__init__.py | shoarora/polytune | 86f31ba3f41ea47edcfa0442a29a79a2a46deaeb | [
"MIT"
] | 2 | 2020-09-17T10:12:36.000Z | 2020-11-22T16:34:08.000Z | lmtuners/models/__init__.py | shoarora/polytune | 86f31ba3f41ea47edcfa0442a29a79a2a46deaeb | [
"MIT"
] | null | null | null | lmtuners/models/__init__.py | shoarora/polytune | 86f31ba3f41ea47edcfa0442a29a79a2a46deaeb | [
"MIT"
] | null | null | null | from .albert import AlbertForTokenClassification # noqa: 401
| 31 | 61 | 0.822581 | 6 | 62 | 8.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.129032 | 62 | 1 | 62 | 62 | 0.888889 | 0.145161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
7dd8a6371d1d52668aaf08043b62f34886f3abaf | 134 | py | Python | iioy/movies/external/data_sources/__init__.py | tizz98/iioy-v4 | 64d12fafb3c758f8291c6f577aba203932c44cbd | [
"MIT"
] | null | null | null | iioy/movies/external/data_sources/__init__.py | tizz98/iioy-v4 | 64d12fafb3c758f8291c6f577aba203932c44cbd | [
"MIT"
] | 2 | 2020-06-05T18:23:54.000Z | 2021-03-19T22:02:23.000Z | iioy/movies/external/data_sources/__init__.py | tizz98/iioy-v4 | 64d12fafb3c758f8291c6f577aba203932c44cbd | [
"MIT"
] | null | null | null | # flake8: noqa
from .tmdb import (
TmdbMovieAdapter,
TmdbMovieCastAdapter,
TmdbMovieListAdapter,
TmdbPersonAdapter,
)
| 16.75 | 25 | 0.723881 | 9 | 134 | 10.777778 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0.208955 | 134 | 7 | 26 | 19.142857 | 0.90566 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7dd8de4089dd9251588b49f9d3dfa7d324619338 | 164 | py | Python | data/wind/wind.py | QUANTAXIS/quant | d3b76799b20cac7a876fbdeb6f97c48295dde06f | [
"MIT"
] | null | null | null | data/wind/wind.py | QUANTAXIS/quant | d3b76799b20cac7a876fbdeb6f97c48295dde06f | [
"MIT"
] | null | null | null | data/wind/wind.py | QUANTAXIS/quant | d3b76799b20cac7a876fbdeb6f97c48295dde06f | [
"MIT"
] | 1 | 2021-04-10T07:10:42.000Z | 2021-04-10T07:10:42.000Z | from WindPy import *
w.start()
from datetime import datetime
#前复权:复权后价格=[(复权前价格-现金红利)+配(新)股价格×流通股份变动比例]÷(1+流通股份变动比例)
#后复权:复权后价格=复权前价格×(1+流通股份变动比例)+现金红利
import talib | 27.333333 | 55 | 0.756098 | 30 | 164 | 4.233333 | 0.633333 | 0.15748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0.073171 | 164 | 6 | 56 | 27.333333 | 0.802632 | 0.530488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
817c38b3b2acfbd538ca61f855a6810f414983b1 | 917 | py | Python | editor_api/database/output/aquifer.py | jphuart/swatplus-automatic-workflow | dd2eeb7f882eb2d4ab7e1e5265c10b9beb93ddc4 | [
"MIT"
] | 8 | 2020-06-28T07:50:29.000Z | 2022-01-05T16:29:48.000Z | editor_api/database/output/aquifer.py | jphuart/swatplus-automatic-workflow | dd2eeb7f882eb2d4ab7e1e5265c10b9beb93ddc4 | [
"MIT"
] | null | null | null | editor_api/database/output/aquifer.py | jphuart/swatplus-automatic-workflow | dd2eeb7f882eb2d4ab7e1e5265c10b9beb93ddc4 | [
"MIT"
] | 5 | 2020-06-28T07:50:31.000Z | 2021-08-16T07:09:59.000Z | from peewee import *
from .base import OutputBase
class Aquifer(OutputBase):
flo = DoubleField(null=True)
stor = DoubleField(null=True)
rchrg = DoubleField(null=True)
seep = DoubleField(null=True)
revap = DoubleField(null=True)
dep_wt = DoubleField(null=True)
no3_st = DoubleField(null=True)
min = DoubleField(... | 16.672727 | 33 | 0.754635 | 127 | 917 | 5.314961 | 0.283465 | 0.377778 | 0.478519 | 0.136296 | 0.106667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003802 | 0.139586 | 917 | 54 | 34 | 16.981481 | 0.851711 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.222222 | 0.055556 | 0 | 0.777778 | 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 | 1 | 0 | 0 | 4 |
81828806966f4f5e182b92f3a3c4e469b4cc7662 | 306 | py | Python | problems/dividenconquer/Solution240.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | problems/dividenconquer/Solution240.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | problems/dividenconquer/Solution240.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | """ Write an efficient algorithm that searches for a value in an m x n matrix.
This matrix has the following properties:
Integers in each row are sorted in ascending from left to right. Integers in
each column are sorted in ascending from top to bottom.
"""
class Solution240:
pass
| 27.818182 | 80 | 0.722222 | 48 | 306 | 4.604167 | 0.729167 | 0.090498 | 0.126697 | 0.180995 | 0.217195 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012931 | 0.24183 | 306 | 10 | 81 | 30.6 | 0.939655 | 0.816993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
81988d660e9694fc9b4a2171b2b15e0828c2e1e6 | 206 | py | Python | gans/utils/data_utils.py | tlatkowski/gans-2.0 | 974efc5bbcea39c0a7dec9405ba4514ada6dc39c | [
"MIT"
] | 78 | 2019-09-25T15:09:18.000Z | 2022-02-09T09:56:15.000Z | gans/utils/data_utils.py | tlatkowski/gans-2.0 | 974efc5bbcea39c0a7dec9405ba4514ada6dc39c | [
"MIT"
] | 23 | 2019-10-09T21:24:39.000Z | 2022-03-12T00:00:53.000Z | gans/utils/data_utils.py | tlatkowski/gans-2.0 | 974efc5bbcea39c0a7dec9405ba4514ada6dc39c | [
"MIT"
] | 18 | 2020-01-24T13:13:57.000Z | 2022-02-15T18:58:12.000Z | def normalize_inputs(data):
"""
Normalizes the inputs to [-1, 1]
:param data: input data array
:return: normalized data to [-1, 1]
"""
data = (data - 127.5) / 127.5
return data
| 20.6 | 39 | 0.57767 | 29 | 206 | 4.068966 | 0.517241 | 0.050847 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 0.286408 | 206 | 9 | 40 | 22.888889 | 0.721088 | 0.480583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 4 |
81db3652bf57d9462b69f466dc7642f0e7f66cf5 | 4,602 | py | Python | samples/client/petstore/python-experimental/petstore_api/models/__init__.py | tek08/openapi-generator | 5d14b46a5e305b8f1c541b1d6d96751f0626e363 | [
"Apache-2.0"
] | null | null | null | samples/client/petstore/python-experimental/petstore_api/models/__init__.py | tek08/openapi-generator | 5d14b46a5e305b8f1c541b1d6d96751f0626e363 | [
"Apache-2.0"
] | null | null | null | samples/client/petstore/python-experimental/petstore_api/models/__init__.py | tek08/openapi-generator | 5d14b46a5e305b8f1c541b1d6d96751f0626e363 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
# flake8: noqa
<<<<<<< HEAD
# import all models into this package
# if you have many models here with many references from one model to another this may
# raise a RecursionError
# to avoid this, import only the models that you directly need like:
# from from petstore_api.model.pet import Pet
# or impo... | 50.021739 | 174 | 0.867232 | 654 | 4,602 | 5.876147 | 0.281346 | 0.199844 | 0.249805 | 0.333073 | 0.32917 | 0.174863 | 0.016654 | 0 | 0 | 0 | 0 | 0.003582 | 0.089961 | 4,602 | 91 | 175 | 50.571429 | 0.91404 | 0.104954 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.954545 | null | null | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
81e3bbb4ae6386583c41a13ddddbfd94118b0e75 | 171 | py | Python | Business_Coaching_Platform/dedicated_page/forms.py | SDOS2020/Team_1_Business_Coaching_Platform | 0b61f67ce3158cf727d3570daf60bff1b0417360 | [
"MIT"
] | null | null | null | Business_Coaching_Platform/dedicated_page/forms.py | SDOS2020/Team_1_Business_Coaching_Platform | 0b61f67ce3158cf727d3570daf60bff1b0417360 | [
"MIT"
] | 30 | 2020-11-23T22:09:51.000Z | 2020-12-21T21:55:04.000Z | Business_Coaching_Platform/dedicated_page/forms.py | SDOS2020/Team_1_Business_Coaching_Platform | 0b61f67ce3158cf727d3570daf60bff1b0417360 | [
"MIT"
] | null | null | null | from django import forms
from .models import Post
class customForm(forms.Form):
content = forms.CharField(required=False)
pk = forms.IntegerField(required=False)
| 24.428571 | 45 | 0.766082 | 22 | 171 | 5.954545 | 0.681818 | 0.198473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146199 | 171 | 6 | 46 | 28.5 | 0.89726 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 | 1 | 0 | 0 | 4 |
c49d9e427ad4cce7a6f8fba4fac50d65a3820781 | 168 | py | Python | reddit2telegram/channels/~inactive/r_hermitcraft/app.py | CaringCat/reddit2telegram | aa3195d9964dfe0f5d822b37a41d567d1af423b7 | [
"MIT"
] | 187 | 2016-09-20T09:15:54.000Z | 2022-03-29T12:22:33.000Z | reddit2telegram/channels/~inactive/r_hermitcraft/app.py | CaringCat/reddit2telegram | aa3195d9964dfe0f5d822b37a41d567d1af423b7 | [
"MIT"
] | 84 | 2016-09-22T14:25:07.000Z | 2022-03-19T01:26:17.000Z | reddit2telegram/channels/~inactive/r_hermitcraft/app.py | CaringCat/reddit2telegram | aa3195d9964dfe0f5d822b37a41d567d1af423b7 | [
"MIT"
] | 172 | 2016-09-21T15:39:39.000Z | 2022-03-16T15:15:58.000Z | #encoding:utf-8
subreddit = 'HermitCraft'
t_channel = '@r_HermitCraft'
def send_post(submission, r2t):
return r2t.send_simple(submission, min_upvotes_limit=100)
| 18.666667 | 61 | 0.767857 | 23 | 168 | 5.347826 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040541 | 0.119048 | 168 | 8 | 62 | 21 | 0.790541 | 0.083333 | 0 | 0 | 0 | 0 | 0.163399 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 4 |
c4bded62f8176ca710884248045625ece952f747 | 731 | py | Python | utils/graphql/scalars.py | getmetamapper/metamapper | 0b2f67eec03fbf7ece35ff9f58ea9bb2dde4d85f | [
"BSD-2-Clause"
] | 53 | 2020-07-01T23:11:59.000Z | 2022-03-31T19:10:28.000Z | utils/graphql/scalars.py | metamapper-io/metamapper | 376716e72bcaca62f1ec09ca9a13a0346e5502f9 | [
"BSD-2-Clause"
] | 5 | 2020-11-25T19:48:57.000Z | 2022-02-27T23:50:18.000Z | utils/graphql/scalars.py | metamapper-io/metamapper | 376716e72bcaca62f1ec09ca9a13a0346e5502f9 | [
"BSD-2-Clause"
] | 5 | 2020-08-29T16:43:59.000Z | 2022-01-17T19:05:30.000Z | # -*- coding: utf-8 -*-
import graphene
class Upload(graphene.types.Scalar):
"""Create scalar that ignores normal serialization/deserialization, since
that will be handled by the multipart request spec"""
@staticmethod
def serialize(value):
return value
@staticmethod
def parse_litera... | 20.305556 | 77 | 0.666211 | 79 | 731 | 6.113924 | 0.481013 | 0.186335 | 0.132505 | 0.120083 | 0.505176 | 0.505176 | 0.505176 | 0.505176 | 0.505176 | 0.505176 | 0 | 0.001832 | 0.253078 | 731 | 35 | 78 | 20.885714 | 0.882784 | 0.27907 | 0 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.047619 | 0.285714 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
c4d81ddbca265a219fed65029e926604be03fcbc | 195 | py | Python | pythonCore/ch04/E06.py | Furzoom/learnpython | a3034584e481d4e7c55912d9da06439688aa67ea | [
"MIT"
] | null | null | null | pythonCore/ch04/E06.py | Furzoom/learnpython | a3034584e481d4e7c55912d9da06439688aa67ea | [
"MIT"
] | null | null | null | pythonCore/ch04/E06.py | Furzoom/learnpython | a3034584e481d4e7c55912d9da06439688aa67ea | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# type(a) == type(b) - whether value of type(a) is equivalent to value of type(b)
# type(a) is type(b) - whether type(a) and type(b) have same type
| 32.5 | 81 | 0.635897 | 37 | 195 | 3.351351 | 0.513514 | 0.16129 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00625 | 0.179487 | 195 | 5 | 82 | 39 | 0.76875 | 0.953846 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c4e33e361b16e0a3f92ccdc928d57e2b186120bb | 1,299 | py | Python | src/winforms/toga_winforms/widgets/tree.py | luizoti/toga | 3c49e685f325f1aba2ce048b253402d7e4519f97 | [
"BSD-3-Clause"
] | 1,261 | 2019-03-31T16:28:47.000Z | 2022-03-31T09:01:23.000Z | src/winforms/toga_winforms/widgets/tree.py | luizoti/toga | 3c49e685f325f1aba2ce048b253402d7e4519f97 | [
"BSD-3-Clause"
] | 597 | 2019-04-02T20:02:42.000Z | 2022-03-30T10:28:47.000Z | src/winforms/toga_winforms/widgets/tree.py | luizoti/toga | 3c49e685f325f1aba2ce048b253402d7e4519f97 | [
"BSD-3-Clause"
] | 318 | 2019-03-31T18:32:00.000Z | 2022-03-30T18:07:13.000Z | from toga_winforms.libs import WinForms
from .base import Widget
class Tree(Widget):
def create(self):
self.native = WinForms.TreeView()
def row_data(self, item):
self.interface.factory.not_implemented('Tree.row_data()')
def on_select(self, selection):
self.interface.factory.not... | 30.928571 | 77 | 0.701309 | 165 | 1,299 | 5.315152 | 0.242424 | 0.163056 | 0.250855 | 0.288483 | 0.581528 | 0.581528 | 0.490308 | 0.234892 | 0.129989 | 0.129989 | 0 | 0 | 0.168591 | 1,299 | 41 | 78 | 31.682927 | 0.812037 | 0 | 0 | 0 | 0 | 0 | 0.146266 | 0.036952 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0 | 0.074074 | 0 | 0.555556 | 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 | 1 | 0 | 0 | 4 |
c4f61f81576f1be30cdfe8969732ef2af9dcec32 | 125 | py | Python | multithread.py | kgh-85/werkzeug | 0e6f5ef25552ed0a4e800de4395d780a202d2053 | [
"Apache-2.0"
] | 1 | 2022-01-12T06:58:37.000Z | 2022-01-12T06:58:37.000Z | multithread.py | kgh-85/werkzeug | 0e6f5ef25552ed0a4e800de4395d780a202d2053 | [
"Apache-2.0"
] | null | null | null | multithread.py | kgh-85/werkzeug | 0e6f5ef25552ed0a4e800de4395d780a202d2053 | [
"Apache-2.0"
] | 1 | 2022-01-11T15:12:01.000Z | 2022-01-11T15:12:01.000Z | from multiprocessing import Pool, cpu_count
def myFunction(func, data):
p = Pool(cpu_count())
p.map(func, data)
| 12.5 | 43 | 0.68 | 18 | 125 | 4.611111 | 0.666667 | 0.168675 | 0.289157 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208 | 125 | 9 | 44 | 13.888889 | 0.838384 | 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 | 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 | 4 |
c4fbb098a998345d64b84f320c746617f09de9cf | 5,705 | py | Python | seleniumbase/translate/japanese.py | kawarada-san/SeleniumBase | 8e601717fdef0814aae01c6411ea0e1fb114a269 | [
"MIT"
] | null | null | null | seleniumbase/translate/japanese.py | kawarada-san/SeleniumBase | 8e601717fdef0814aae01c6411ea0e1fb114a269 | [
"MIT"
] | null | null | null | seleniumbase/translate/japanese.py | kawarada-san/SeleniumBase | 8e601717fdef0814aae01c6411ea0e1fb114a269 | [
"MIT"
] | null | null | null | # Japanese Language Translations - Python 3 Only!
from seleniumbase import BaseCase
class セレンテストケース(BaseCase): # noqa
def URLを開く(self, *args, **kwargs):
# open(url)
self.open(*args, **kwargs)
def クリックして(self, *args, **kwargs):
# click(selector)
self.click(*args, **kwargs)
... | 29.407216 | 55 | 0.603681 | 661 | 5,705 | 5.009077 | 0.198185 | 0.283902 | 0.198732 | 0.060405 | 0.143763 | 0.017517 | 0 | 0 | 0 | 0 | 0 | 0.001623 | 0.243996 | 5,705 | 193 | 56 | 29.559585 | 0.766056 | 0.194917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104167 | 1 | 0.489583 | false | 0 | 0.010417 | 0 | 0.510417 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
1eecbaa9483cb3e261d89a46864b2a0c09bfd108 | 52 | py | Python | src/tests/unit/converters/__init__.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | src/tests/unit/converters/__init__.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | src/tests/unit/converters/__init__.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
converters package.
"""
| 10.4 | 23 | 0.519231 | 5 | 52 | 5.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0.173077 | 52 | 4 | 24 | 13 | 0.604651 | 0.807692 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1efe7e69ae2639862bb59b0c4b8bbabff425c59e | 1,333 | py | Python | examples/all_refs.py | wyfo/apimodel | 99e6b23504e8ca775fda9dfa93c4e350211c1b8a | [
"MIT"
] | 118 | 2020-05-24T20:22:27.000Z | 2022-03-23T23:04:50.000Z | examples/all_refs.py | wyfo/apimodel | 99e6b23504e8ca775fda9dfa93c4e350211c1b8a | [
"MIT"
] | 89 | 2021-02-26T14:22:41.000Z | 2022-03-30T22:17:06.000Z | examples/all_refs.py | wyfo/apimodel | 99e6b23504e8ca775fda9dfa93c4e350211c1b8a | [
"MIT"
] | 13 | 2020-12-24T22:43:50.000Z | 2022-03-13T15:03:44.000Z | from dataclasses import dataclass
from apischema.json_schema import deserialization_schema
@dataclass
class Bar:
baz: str
@dataclass
class Foo:
bar1: Bar
bar2: Bar
assert deserialization_schema(Foo, all_refs=False) == {
"$schema": "http://json-schema.org/draft/2020-12/schema#",
"$defs": {
... | 25.150943 | 85 | 0.484621 | 115 | 1,333 | 5.565217 | 0.286957 | 0.065625 | 0.21875 | 0.09375 | 0.75625 | 0.75625 | 0.640625 | 0.640625 | 0.640625 | 0.640625 | 0 | 0.023631 | 0.301575 | 1,333 | 52 | 86 | 25.634615 | 0.663802 | 0 | 0 | 0.488889 | 0 | 0 | 0.339085 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 1 | 0 | true | 0 | 0.044444 | 0 | 0.155556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1effcc148875bb56588ce97d11cc6a6fca1e44c6 | 60 | py | Python | enthought/pyface/grid/grid_cell_renderer.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 3 | 2016-12-09T06:05:18.000Z | 2018-03-01T13:00:29.000Z | enthought/pyface/grid/grid_cell_renderer.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 1 | 2020-12-02T00:51:32.000Z | 2020-12-02T08:48:55.000Z | enthought/pyface/grid/grid_cell_renderer.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | null | null | null | # proxy module
from pyface.grid.grid_cell_renderer import *
| 20 | 44 | 0.816667 | 9 | 60 | 5.222222 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116667 | 60 | 2 | 45 | 30 | 0.886792 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
481dc994f0265de6e62cf6e6f268a16dc7ee3be2 | 184 | py | Python | problems/camelcase_method.py | stereoabuse/codewars | d6437afaef38c3601903891b8b9cb0f84c108c54 | [
"MIT"
] | null | null | null | problems/camelcase_method.py | stereoabuse/codewars | d6437afaef38c3601903891b8b9cb0f84c108c54 | [
"MIT"
] | null | null | null | problems/camelcase_method.py | stereoabuse/codewars | d6437afaef38c3601903891b8b9cb0f84c108c54 | [
"MIT"
] | null | null | null | ## CamelCase Method
## 6 kyu
## https://www.codewars.com//kata/587731fda577b3d1b0001196
def camel_case(string):
return ''.join([word.title() for word in string.split()]) | 26.285714 | 61 | 0.673913 | 23 | 184 | 5.347826 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123377 | 0.163043 | 184 | 7 | 61 | 26.285714 | 0.675325 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
48267f9674d9e86a273364ef9f1162e51b0f46a0 | 6,909 | py | Python | pymove/tests/test_core_pandas_discrete.py | JuniorNunes15/PyMove | ee5b68282502bfcb9cf38b52dcdefed5bd927a90 | [
"MIT"
] | 63 | 2019-08-06T14:24:36.000Z | 2022-03-22T11:11:03.000Z | pymove/tests/test_core_pandas_discrete.py | JuniorNunes15/PyMove | ee5b68282502bfcb9cf38b52dcdefed5bd927a90 | [
"MIT"
] | 49 | 2019-09-20T14:06:50.000Z | 2022-03-11T22:13:43.000Z | pymove/tests/test_core_pandas_discrete.py | JuniorNunes15/PyMove | ee5b68282502bfcb9cf38b52dcdefed5bd927a90 | [
"MIT"
] | 18 | 2019-08-15T18:13:10.000Z | 2021-11-30T16:26:19.000Z | import numpy as np
from pandas.testing import assert_frame_equal
from pymove.core.pandas_discrete import PandasDiscreteMoveDataFrame
from pymove.utils.constants import (
DATETIME,
DIST_TO_PREV,
INDEX_GRID,
LATITUDE,
LOCAL_LABEL,
LONGITUDE,
PREV_LOCAL,
SPEED_TO_PREV,
TID_STAT,
TI... | 33.538835 | 78 | 0.361992 | 659 | 6,909 | 3.687405 | 0.159332 | 0.074074 | 0.069959 | 0.097942 | 0.69465 | 0.679012 | 0.641975 | 0.641975 | 0.633745 | 0.584362 | 0 | 0.37054 | 0.525402 | 6,909 | 205 | 79 | 33.702439 | 0.37054 | 0 | 0 | 0.714286 | 0 | 0 | 0.117238 | 0 | 0 | 0 | 0 | 0 | 0.021164 | 1 | 0.015873 | false | 0 | 0.021164 | 0 | 0.037037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
484e1321817f004c2f06cc3d1d70f41523918835 | 77 | py | Python | src/main/python/ui/distribution/__init__.py | boom-roasted/ImageWAO | 944505dab1a7c97b8eae2bf9fb30006d0f471f89 | [
"MIT"
] | 1 | 2020-03-22T01:52:52.000Z | 2020-03-22T01:52:52.000Z | src/main/python/ui/distribution/__init__.py | leftaltkey/ImageWAO | 944505dab1a7c97b8eae2bf9fb30006d0f471f89 | [
"MIT"
] | 2 | 2021-06-08T21:12:47.000Z | 2021-06-08T21:30:32.000Z | src/main/python/ui/distribution/__init__.py | leftaltkey/ImageWAO | 944505dab1a7c97b8eae2bf9fb30006d0f471f89 | [
"MIT"
] | null | null | null | from .distributionform import DistributionForm
__all__ = [DistributionForm]
| 19.25 | 46 | 0.844156 | 6 | 77 | 10.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103896 | 77 | 3 | 47 | 25.666667 | 0.884058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 1 | 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 | 4 |
487964188e1046cce660c12fb7dca469bdd35e11 | 1,693 | py | Python | src/main/java/neqsim/util/python/Copy of init.py | asmfstatoil/neqsim | 21b3034b1c51a481c1347eec3b87b641bc56def2 | [
"Apache-2.0"
] | 28 | 2019-07-27T13:41:28.000Z | 2022-02-24T08:39:18.000Z | src/main/java/neqsim/util/python/Copy of init.py | asmfstatoil/neqsim | 21b3034b1c51a481c1347eec3b87b641bc56def2 | [
"Apache-2.0"
] | 76 | 2019-05-12T08:26:46.000Z | 2022-03-29T11:23:44.000Z | src/main/java/neqsim/util/python/Copy of init.py | asmfstatoil/neqsim | 21b3034b1c51a481c1347eec3b87b641bc56def2 | [
"Apache-2.0"
] | 16 | 2019-05-06T09:23:22.000Z | 2022-03-27T01:48:50.000Z | from javax.swing import *
from thermo.system import *
from thermodynamicOperations import *
from processSimulation import *
from processSimulation.processEquipment import *
from processSimulation.processEquipment.stream import *
from processSimulation.processEquipment.mixer import *
from processSimulation.processEquipm... | 47.027778 | 127 | 0.831069 | 175 | 1,693 | 8.005714 | 0.291429 | 0.192719 | 0.173448 | 0.214847 | 0.357602 | 0.257673 | 0.257673 | 0.257673 | 0.257673 | 0.126338 | 0 | 0.001275 | 0.073243 | 1,693 | 35 | 128 | 48.371429 | 0.891651 | 0.568813 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
6fc540bca2e56a0b1c317a5db52a85cf2d3245ee | 241 | py | Python | ganjoor/__init__.py | MmeK/ganjoor_api_wrapper | b7457ea42efd8a29d5e37868c2db1e6355fcaf54 | [
"MIT"
] | 1 | 2021-12-09T23:30:17.000Z | 2021-12-09T23:30:17.000Z | ganjoor/__init__.py | MmeK/ganjoor_api_wrapper | b7457ea42efd8a29d5e37868c2db1e6355fcaf54 | [
"MIT"
] | 4 | 2021-10-16T18:44:31.000Z | 2021-11-06T18:46:33.000Z | ganjoor/__init__.py | MmeK/ganjoor_api_wrapper | b7457ea42efd8a29d5e37868c2db1e6355fcaf54 | [
"MIT"
] | null | null | null | # Copyright 2021 Mohammad Kazemi <kazemi.me.222@gmail.com>.
# SPDX-License-Identifier: MIT
from .models import (Poet, Poem, Category)
from .ganjoor import Ganjoor
from .config import GANJGAH_BASE_URL
from .exceptions import GanjoorException
| 34.428571 | 59 | 0.804979 | 33 | 241 | 5.818182 | 0.757576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03271 | 0.112033 | 241 | 6 | 60 | 40.166667 | 0.864486 | 0.356846 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
6fd9d29c489e5d996cf6d793173a7387ff6cdbfa | 210 | py | Python | master/utils-master/utils-master/.startup.py | AlexRogalskiy/DevArtifacts | 931aabb8cbf27656151c54856eb2ea7d1153203a | [
"MIT"
] | 4 | 2018-09-07T15:35:24.000Z | 2019-03-27T09:48:12.000Z | master/utils-master/utils-master/.startup.py | AlexRogalskiy/DevArtifacts | 931aabb8cbf27656151c54856eb2ea7d1153203a | [
"MIT"
] | 371 | 2020-03-04T21:51:56.000Z | 2022-03-31T20:59:11.000Z | master/utils-master/utils-master/.startup.py | AlexRogalskiy/DevArtifacts | 931aabb8cbf27656151c54856eb2ea7d1153203a | [
"MIT"
] | 3 | 2019-06-18T19:57:17.000Z | 2020-11-06T03:55:08.000Z | # python startup file to toggle autocomplete on.
# e.g. export PYTHONSTARTUPFILE=pythonstartup.py
#
import readline
import rlcompleter
readline.parse_and_bind('tab: complete')
print "Auto complete is enabled"
| 23.333333 | 48 | 0.804762 | 28 | 210 | 5.964286 | 0.892857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119048 | 210 | 8 | 49 | 26.25 | 0.902703 | 0.442857 | 0 | 0 | 0 | 0 | 0.327434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
82f6619313d12666d72c316412a1654c4a856f22 | 229 | py | Python | shallow_backup/__init__.py | jules-kim/shallow-backup | 672d71e94e44c09baccdbfa3618ca4eef4930073 | [
"MIT"
] | null | null | null | shallow_backup/__init__.py | jules-kim/shallow-backup | 672d71e94e44c09baccdbfa3618ca4eef4930073 | [
"MIT"
] | null | null | null | shallow_backup/__init__.py | jules-kim/shallow-backup | 672d71e94e44c09baccdbfa3618ca4eef4930073 | [
"MIT"
] | null | null | null | __all__ = ['config', 'utils', 'git_wrapper', 'reinstall', 'constants', 'backup', 'printing', 'prompts']
import config
import utils
import git_wrapper
import constants
import backup
import printing
import prompts
import reinstall
| 22.9 | 103 | 0.772926 | 27 | 229 | 6.333333 | 0.407407 | 0.116959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113537 | 229 | 9 | 104 | 25.444444 | 0.842365 | 0 | 0 | 0 | 0 | 0 | 0.266376 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.888889 | 0 | 0.888889 | 0.222222 | 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 | 1 | 0 | 0 | 4 |
d213719075c354beb9ff49a675766eefe97337cd | 66 | py | Python | frontend/__init__.py | karllindmark/IsYourProjectUpToDate | ce2df36b8fa39a4732b05dfd75558a914e4e990b | [
"Apache-2.0"
] | null | null | null | frontend/__init__.py | karllindmark/IsYourProjectUpToDate | ce2df36b8fa39a4732b05dfd75558a914e4e990b | [
"Apache-2.0"
] | null | null | null | frontend/__init__.py | karllindmark/IsYourProjectUpToDate | ce2df36b8fa39a4732b05dfd75558a914e4e990b | [
"Apache-2.0"
] | null | null | null | """ Module for the frontend, ie the UI and presentation layer """
| 33 | 65 | 0.712121 | 10 | 66 | 4.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 66 | 1 | 66 | 66 | 0.87037 | 0.863636 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d22ad5487bc6bc76170ebfbd782e2b680fc1df82 | 216 | py | Python | tests/tests/test_settings.py | einsfr/commontail | a7421b7aac89dead7e4f7e0da0dff317157c3fea | [
"MIT"
] | null | null | null | tests/tests/test_settings.py | einsfr/commontail | a7421b7aac89dead7e4f7e0da0dff317157c3fea | [
"MIT"
] | null | null | null | tests/tests/test_settings.py | einsfr/commontail | a7421b7aac89dead7e4f7e0da0dff317157c3fea | [
"MIT"
] | null | null | null | from unittest import TestCase
from django.conf import settings
class SettingsTestCase(TestCase):
def test_import(self):
self.assertEqual(settings.COMMONTAIL_NO_IMAGE_PLACEHOLDER_TITLE, 'image later')
| 21.6 | 87 | 0.791667 | 26 | 216 | 6.384615 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143519 | 216 | 9 | 88 | 24 | 0.897297 | 0 | 0 | 0 | 0 | 0 | 0.050926 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.6 | 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 | 1 | 0 | 0 | 4 |
d24747b2c99fbf0680128ad8b972b9c219d91e54 | 101 | py | Python | service_and_process/apps.py | rameshgopalakrishnan/v_excel_inventory | 5e7e8cfeb5b0217d7029feb917f84614aa384601 | [
"Apache-2.0"
] | null | null | null | service_and_process/apps.py | rameshgopalakrishnan/v_excel_inventory | 5e7e8cfeb5b0217d7029feb917f84614aa384601 | [
"Apache-2.0"
] | null | null | null | service_and_process/apps.py | rameshgopalakrishnan/v_excel_inventory | 5e7e8cfeb5b0217d7029feb917f84614aa384601 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class LaundryConfig(AppConfig):
name = 'service_and_process'
| 16.833333 | 33 | 0.782178 | 12 | 101 | 6.416667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148515 | 101 | 5 | 34 | 20.2 | 0.895349 | 0 | 0 | 0 | 0 | 0 | 0.188119 | 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 | 1 | 0 | 0 | 4 |
d281c21601382dde76e9d4534fe470f7c677cb5e | 2,777 | py | Python | pytissueoptics/tests/testsMaterial.py | DCC-Lab/PyTissueOptics | 2e1920a970d62c1e2aeca25749ba88969c300325 | [
"MIT"
] | 3 | 2021-02-01T19:30:35.000Z | 2021-06-14T20:08:10.000Z | pytissueoptics/tests/testsMaterial.py | DCC-Lab/PyTissueOptics | 2e1920a970d62c1e2aeca25749ba88969c300325 | [
"MIT"
] | 25 | 2021-02-03T15:53:18.000Z | 2022-03-30T22:53:29.000Z | pytissueoptics/tests/testsMaterial.py | DCC-Lab/PyTissueOptics | 2e1920a970d62c1e2aeca25749ba88969c300325 | [
"MIT"
] | 2 | 2022-02-12T03:51:53.000Z | 2022-02-14T04:52:28.000Z | import envtest # modifies path
from pytissueoptics import *
import numpy as np
import random
from math import cos
inf = float("+inf")
class TestVector(envtest.PyTissueTestCase):
def testMateiralInit(self):
mat = Material()
self.assertIsNotNone(mat)
def testMaterialG0(self):
mat = Mate... | 29.231579 | 58 | 0.555996 | 339 | 2,777 | 4.498525 | 0.188791 | 0.165246 | 0.088525 | 0.055082 | 0.759344 | 0.736393 | 0.733115 | 0.733115 | 0.678033 | 0.628197 | 0 | 0.071814 | 0.333093 | 2,777 | 94 | 59 | 29.542553 | 0.75162 | 0.004681 | 0 | 0.590361 | 0 | 0 | 0.004345 | 0 | 0 | 0 | 0 | 0 | 0.156627 | 1 | 0.108434 | false | 0 | 0.060241 | 0 | 0.180723 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 4 |
d2844539b7c0cc28e8877d969cac37af9a6ad7d1 | 12,240 | py | Python | bpmninja/song_metadata.py | chelseadole/bpmninja | 37495114777c3c6b2c2654ae1b74b29224b80293 | [
"MIT"
] | null | null | null | bpmninja/song_metadata.py | chelseadole/bpmninja | 37495114777c3c6b2c2654ae1b74b29224b80293 | [
"MIT"
] | null | null | null | bpmninja/song_metadata.py | chelseadole/bpmninja | 37495114777c3c6b2c2654ae1b74b29224b80293 | [
"MIT"
] | null | null | null | """All song metadata."""
song_metadata = {0: {'title': 'A Sheridan Square', 'artist': 'Henry Red Allen', 'album': 'Allen, Henry Red: Original 1933-1941 Recordings', 'bpm': 124, 'filepath': 'a-sheridan-square.mp3', 'id': 0}, 1: {'title': "Ain't Misbehavin'", 'artist': 'Sidney Bechet', 'album': 'VICTOR 26746', 'bpm': 145... | 4,080 | 12,214 | 0.628758 | 1,755 | 12,240 | 4.384615 | 0.303704 | 0.045484 | 0.017544 | 0.018194 | 0.100585 | 0.073554 | 0.055101 | 0.049123 | 0.040546 | 0.02963 | 0 | 0.07556 | 0.124183 | 12,240 | 2 | 12,215 | 6,120 | 0.642257 | 0.001471 | 0 | 0 | 0 | 0 | 0.653324 | 0.058448 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
963319c419f5a5869aff0543c93322fd99e95ece | 474 | py | Python | dbaas/drivers/mysqlpercona.py | didindinn/database-as-a-service | 747de31ff8546f7874ddd654af860e130afd17a0 | [
"BSD-3-Clause"
] | 303 | 2015-01-08T10:35:54.000Z | 2022-02-28T08:54:06.000Z | dbaas/drivers/mysqlpercona.py | nouraellm/database-as-a-service | 5e655c9347bea991b7218a01549f5e44f161d7be | [
"BSD-3-Clause"
] | 124 | 2015-01-14T12:56:15.000Z | 2022-03-22T20:45:11.000Z | dbaas/drivers/mysqlpercona.py | nouraellm/database-as-a-service | 5e655c9347bea991b7218a01549f5e44f161d7be | [
"BSD-3-Clause"
] | 110 | 2015-01-02T11:59:48.000Z | 2022-02-28T08:54:06.000Z | from . import mysqldb
from physical.models import Instance
class MySQLPercona(mysqldb.MySQL):
def get_default_instance_type(self):
return Instance.MYSQL_PERCONA
@classmethod
def topology_name(cls):
return ['mysql_percona_single']
class MySQLPerconaFOXHA(mysqldb.MySQLFOXHA):
def ge... | 20.608696 | 44 | 0.729958 | 54 | 474 | 6.148148 | 0.444444 | 0.144578 | 0.078313 | 0.126506 | 0.614458 | 0.614458 | 0.614458 | 0.614458 | 0.614458 | 0.614458 | 0 | 0 | 0.198312 | 474 | 22 | 45 | 21.545455 | 0.873684 | 0 | 0 | 0.571429 | 0 | 0 | 0.082278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.285714 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
9638cd5f59df1b8284b707583af3625677c72f58 | 7,158 | py | Python | libs/configs/DOTA/retinanet/cfgs_res50_dota_atan_v3.py | Karlinik/RotationDetection | efd20d56d3964b89fa356e79a052bb53f6ac8ddb | [
"Apache-2.0"
] | 850 | 2020-10-27T08:51:54.000Z | 2022-03-30T15:12:06.000Z | libs/configs/DOTA/retinanet/cfgs_res50_dota_atan_v3.py | Karlinik/RotationDetection | efd20d56d3964b89fa356e79a052bb53f6ac8ddb | [
"Apache-2.0"
] | 94 | 2020-12-01T02:18:47.000Z | 2022-03-30T08:14:27.000Z | libs/configs/DOTA/retinanet/cfgs_res50_dota_atan_v3.py | Karlinik/RotationDetection | efd20d56d3964b89fa356e79a052bb53f6ac8ddb | [
"Apache-2.0"
] | 149 | 2020-10-29T03:30:32.000Z | 2022-03-29T09:53:23.000Z | # -*- coding: utf-8 -*-
from __future__ import division, print_function, absolute_import
import numpy as np
from libs.configs._base_.models.retinanet_r50_fpn import *
from libs.configs._base_.datasets.dota_detection import *
from libs.configs._base_.schedules.schedule_1x import *
from dataloader.pretrained_weights.pr... | 137.653846 | 5,645 | 0.760687 | 817 | 7,158 | 6.597307 | 0.336597 | 0.022263 | 0.022263 | 0.03154 | 0.04193 | 0.032653 | 0.015584 | 0 | 0 | 0 | 0 | 0.444761 | 0.069293 | 7,158 | 51 | 5,646 | 140.352941 | 0.364305 | 0.0095 | 0 | 0 | 0 | 0 | 0.063922 | 0.052004 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
967e01a90f8554f99516f7476aa71994fcd3d3e9 | 134 | py | Python | site/thicc/apps/scape/apps.py | aldenjenkins/ThiccGaming | 4790d2568b019438d1569d0fe4e9f9aba008b737 | [
"BSD-3-Clause"
] | null | null | null | site/thicc/apps/scape/apps.py | aldenjenkins/ThiccGaming | 4790d2568b019438d1569d0fe4e9f9aba008b737 | [
"BSD-3-Clause"
] | 9 | 2020-03-24T16:20:31.000Z | 2022-03-11T23:32:38.000Z | site/thicc/apps/scape/apps.py | aldenjenkins/ThiccGaming | 4790d2568b019438d1569d0fe4e9f9aba008b737 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import unicode_literals
from django.apps import AppConfig
class RunescapeConfig(AppConfig):
name = 'runescape'
| 16.75 | 39 | 0.798507 | 15 | 134 | 6.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149254 | 134 | 7 | 40 | 19.142857 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0.067164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 1 | 0 | 0 | 4 |
96aa8cdd67bd0fd144ace6b2a284b6ed0df805a0 | 7,081 | py | Python | tests/cpu/test_runtime_api_jit.py | Peach-He/intel-extension-for-pytorch | d3d4d2bc5e8637e251f49d70ae9982c4a1e65935 | [
"Apache-2.0"
] | null | null | null | tests/cpu/test_runtime_api_jit.py | Peach-He/intel-extension-for-pytorch | d3d4d2bc5e8637e251f49d70ae9982c4a1e65935 | [
"Apache-2.0"
] | null | null | null | tests/cpu/test_runtime_api_jit.py | Peach-He/intel-extension-for-pytorch | d3d4d2bc5e8637e251f49d70ae9982c4a1e65935 | [
"Apache-2.0"
] | null | null | null | import unittest, copy
import torch
import torch.nn as nn
import intel_extension_for_pytorch as ipex
from common_utils import TestCase
from torch.testing._internal.jit_utils import JitTestCase
import time, sys
from test_jit_llga_utils import JitLlgaTestCase, run_tests, LLGA_FUSION_GROUP
import torch.fx.experimental.opti... | 38.483696 | 142 | 0.657393 | 984 | 7,081 | 4.493902 | 0.147358 | 0.047038 | 0.075984 | 0.030755 | 0.760968 | 0.736318 | 0.728856 | 0.715739 | 0.698553 | 0.698553 | 0 | 0.021836 | 0.236831 | 7,081 | 183 | 143 | 38.693989 | 0.796447 | 0.069764 | 0 | 0.620155 | 0 | 0 | 0.051325 | 0 | 0 | 0 | 0 | 0 | 0.077519 | 1 | 0.085271 | false | 0 | 0.069767 | 0 | 0.20155 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 4 |
736f3280b963487dc9f2de292d6081975e3a8a5c | 146 | py | Python | Python/Tests/TestData/PydStdLib/Package/__init__.py | nanshuiyu/pytools | 9f9271fe8cf564b4f94e9456d400f4306ea77c23 | [
"Apache-2.0"
] | null | null | null | Python/Tests/TestData/PydStdLib/Package/__init__.py | nanshuiyu/pytools | 9f9271fe8cf564b4f94e9456d400f4306ea77c23 | [
"Apache-2.0"
] | null | null | null | Python/Tests/TestData/PydStdLib/Package/__init__.py | nanshuiyu/pytools | 9f9271fe8cf564b4f94e9456d400f4306ea77c23 | [
"Apache-2.0"
] | null | null | null | import Package._testcapi
if False:
from Package import EphemeralReference
select = EphemeralReference
select = 123
select = str
| 16.222222 | 43 | 0.726027 | 15 | 146 | 7 | 0.666667 | 0.457143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0.239726 | 146 | 8 | 44 | 18.25 | 0.918919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
7385509ed8199eda248959151aea9eb61dd42b33 | 38,649 | py | Python | venv/lib/python3.6/site-packages/ansible_collections/netapp/ontap/tests/unit/plugins/modules/test_na_ontap_svm.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 1 | 2020-01-22T13:11:23.000Z | 2020-01-22T13:11:23.000Z | venv/lib/python3.6/site-packages/ansible_collections/netapp/ontap/tests/unit/plugins/modules/test_na_ontap_svm.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 12 | 2020-02-21T07:24:52.000Z | 2020-04-14T09:54:32.000Z | venv/lib/python3.6/site-packages/ansible_collections/netapp/ontap/tests/unit/plugins/modules/test_na_ontap_svm.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | null | null | null | # (c) 2018, NetApp, Inc
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
''' unit test template for ONTAP Ansible module '''
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import json
import pytest
from ansible.module_utils import ... | 46.453125 | 159 | 0.601956 | 4,352 | 38,649 | 5.09398 | 0.079733 | 0.027787 | 0.021697 | 0.032478 | 0.784384 | 0.763138 | 0.73923 | 0.709189 | 0.689115 | 0.676395 | 0 | 0.011572 | 0.26218 | 38,649 | 831 | 160 | 46.509025 | 0.765851 | 0.077673 | 0 | 0.643258 | 0 | 0.001404 | 0.256048 | 0.097954 | 0 | 0 | 0 | 0 | 0.064607 | 1 | 0.070225 | false | 0.002809 | 0.01264 | 0 | 0.095506 | 0.016854 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 4 |
73a787b0b91377907da788cb5b3ca6ed14c0a3aa | 7,475 | py | Python | tests/units/transformers/test_per_column_imputer.py | shubhada-2019/tsfresh | ff69073bbb4df787fcbf277a611c6b40632e767d | [
"MIT"
] | 6,596 | 2016-10-26T13:05:43.000Z | 2022-03-31T04:12:38.000Z | tests/units/transformers/test_per_column_imputer.py | shubhada-2019/tsfresh | ff69073bbb4df787fcbf277a611c6b40632e767d | [
"MIT"
] | 849 | 2016-10-26T13:52:09.000Z | 2022-03-11T14:34:12.000Z | tests/units/transformers/test_per_column_imputer.py | shubhada-2019/tsfresh | ff69073bbb4df787fcbf277a611c6b40632e767d | [
"MIT"
] | 1,113 | 2016-10-27T19:23:54.000Z | 2022-03-31T15:59:49.000Z | # -*- coding: utf-8 -*-
# This file as well as the whole tsfresh package are licenced under the MIT licence (see the LICENCE.txt)
# Maximilian Christ (maximilianchrist.com), Blue Yonder Gmbh, 2016
import warnings
from builtins import range
from unittest import TestCase
import numpy as np
import numpy.testing as npt
i... | 32.359307 | 105 | 0.603746 | 1,125 | 7,475 | 3.816889 | 0.125333 | 0.039124 | 0.023055 | 0.039124 | 0.747788 | 0.729157 | 0.705636 | 0.705636 | 0.676293 | 0.653703 | 0 | 0.065853 | 0.254448 | 7,475 | 230 | 106 | 32.5 | 0.704647 | 0.029164 | 0 | 0.645161 | 0 | 0.012903 | 0.041782 | 0 | 0 | 0 | 0 | 0 | 0.135484 | 1 | 0.096774 | false | 0 | 0.058065 | 0 | 0.16129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 4 |
73d8a8844a2208c89ea2b1f0603dc40c3a9a54eb | 81 | py | Python | doc/workshop/advancedReliability/inputs/goalFunction.py | rinelson456/raven | 1114246136a2f72969e75b5e99a11b35500d4eef | [
"Apache-2.0"
] | 159 | 2017-03-24T21:07:06.000Z | 2022-03-20T13:44:40.000Z | doc/workshop/advancedReliability/inputs/goalFunction.py | rinelson456/raven | 1114246136a2f72969e75b5e99a11b35500d4eef | [
"Apache-2.0"
] | 1,667 | 2017-03-27T14:41:22.000Z | 2022-03-31T19:50:06.000Z | doc/workshop/advancedReliability/inputs/goalFunction.py | rinelson456/raven | 1114246136a2f72969e75b5e99a11b35500d4eef | [
"Apache-2.0"
] | 95 | 2017-03-24T21:05:03.000Z | 2022-03-08T17:30:22.000Z | def __residuumSign(self):
if self.outcome == 0:
return -1
else: return 1
| 16.2 | 25 | 0.654321 | 12 | 81 | 4.25 | 0.75 | 0.27451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048387 | 0.234568 | 81 | 4 | 26 | 20.25 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
73e2319af9d7750b7289eb5afb569e209c9d68cb | 75 | py | Python | peekpy/exception.py | Xeladem/PeekPy | cff6f73ff5d29a022e60f6927b3e188bb10186cd | [
"MIT"
] | null | null | null | peekpy/exception.py | Xeladem/PeekPy | cff6f73ff5d29a022e60f6927b3e188bb10186cd | [
"MIT"
] | null | null | null | peekpy/exception.py | Xeladem/PeekPy | cff6f73ff5d29a022e60f6927b3e188bb10186cd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
class RedisServiceException(Exception):
pass
| 12.5 | 39 | 0.653333 | 7 | 75 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.186667 | 75 | 5 | 40 | 15 | 0.786885 | 0.28 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
73f6db17deb83073c79fa7b78872de4a6b4895b2 | 359 | py | Python | regression_tests/parsers/c_parser/exprs/binary_ops/lt_op_expr.py | mehrdad-shokri/retdec-regression-tests-framework | 9c3edcd0a7bc292a0d5b5cbfb4315010c78d3bc3 | [
"MIT"
] | 21 | 2017-12-12T20:38:43.000Z | 2019-04-14T12:46:10.000Z | regression_tests/parsers/c_parser/exprs/binary_ops/lt_op_expr.py | mehrdad-shokri/retdec-regression-tests-framework | 9c3edcd0a7bc292a0d5b5cbfb4315010c78d3bc3 | [
"MIT"
] | 6 | 2018-01-06T13:32:23.000Z | 2018-09-14T15:09:11.000Z | regression_tests/parsers/c_parser/exprs/binary_ops/lt_op_expr.py | mehrdad-shokri/retdec-regression-tests-framework | 9c3edcd0a7bc292a0d5b5cbfb4315010c78d3bc3 | [
"MIT"
] | 11 | 2017-12-12T20:38:46.000Z | 2018-07-19T03:12:03.000Z | """
A less than operator (``<``).
"""
from regression_tests.parsers.c_parser.exprs.binary_ops.binary_op_expr import BinaryOpExpr
class LtOpExpr(BinaryOpExpr):
"""A less than operator (``<``)."""
def is_lt_op(self):
"""Returns ``True``."""
return True
def __str__(self):
retur... | 21.117647 | 90 | 0.604457 | 43 | 359 | 4.790698 | 0.697674 | 0.048544 | 0.087379 | 0.165049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211699 | 359 | 16 | 91 | 22.4375 | 0.727915 | 0.214485 | 0 | 0 | 0 | 0 | 0.026923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
fb75a8d72586d15a84032a5f168befdd13d16fc8 | 82 | py | Python | src/hello_konsou/hello.py | konsou/packaging_tutorial | 2e722a3a05043394087a122570ffddbe6f9a5550 | [
"MIT"
] | null | null | null | src/hello_konsou/hello.py | konsou/packaging_tutorial | 2e722a3a05043394087a122570ffddbe6f9a5550 | [
"MIT"
] | null | null | null | src/hello_konsou/hello.py | konsou/packaging_tutorial | 2e722a3a05043394087a122570ffddbe6f9a5550 | [
"MIT"
] | null | null | null | def hello():
print(f"Hello, world!")
if __name__ == '__main__':
hello()
| 11.714286 | 27 | 0.573171 | 10 | 82 | 3.9 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231707 | 82 | 6 | 28 | 13.666667 | 0.619048 | 0 | 0 | 0 | 0 | 0 | 0.256098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fb8b8af6e9c56325bc0d8d78bcb9f450f6b1bb77 | 2,148 | py | Python | test/fields_identity_tests/test_emails.py | koppeltatyana/python_training | bc07671dcb85b783a13a6b00247e4500fc3c2265 | [
"Apache-2.0"
] | null | null | null | test/fields_identity_tests/test_emails.py | koppeltatyana/python_training | bc07671dcb85b783a13a6b00247e4500fc3c2265 | [
"Apache-2.0"
] | null | null | null | test/fields_identity_tests/test_emails.py | koppeltatyana/python_training | bc07671dcb85b783a13a6b00247e4500fc3c2265 | [
"Apache-2.0"
] | null | null | null | from random import randrange
import allure
from model.contact import Contact
def test_emails_on_home_page(app, db):
if len(db.get_contact_list()) == 0:
with allure.step("If contact's list is empty, I'll create a new contact"):
app.contact.create(Contact(firstname="NAME"))
with allure.step(... | 53.7 | 155 | 0.743017 | 338 | 2,148 | 4.452663 | 0.177515 | 0.066445 | 0.093023 | 0.075748 | 0.854485 | 0.810631 | 0.782724 | 0.665781 | 0.665781 | 0.620598 | 0 | 0.002215 | 0.159218 | 2,148 | 39 | 156 | 55.076923 | 0.831118 | 0 | 0 | 0.451613 | 0 | 0 | 0.258845 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 1 | 0.129032 | false | 0 | 0.096774 | 0.064516 | 0.290323 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 4 |
fbb88f7d6e3d8a3d0714008f462c4915499abc5e | 42 | py | Python | src/web-scrapers/config.py | CharlesFrankum/FF_Team_Selector | f230904faa6713dcec97e086e14eb7d841de9278 | [
"Apache-2.0"
] | null | null | null | src/web-scrapers/config.py | CharlesFrankum/FF_Team_Selector | f230904faa6713dcec97e086e14eb7d841de9278 | [
"Apache-2.0"
] | 3 | 2021-03-31T19:24:31.000Z | 2021-12-13T20:07:43.000Z | src/web-scrapers/config.py | CharlesFrankum/FF_Team_Selector | f230904faa6713dcec97e086e14eb7d841de9278 | [
"Apache-2.0"
] | 1 | 2019-08-08T06:46:13.000Z | 2019-08-08T06:46:13.000Z | fantasy_email = ''
fantasy_password = ''
| 14 | 22 | 0.690476 | 4 | 42 | 6.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 42 | 2 | 23 | 21 | 0.771429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
83729fdd2780eaffe278a15aded511948991a2a4 | 778 | py | Python | test_parse_license.py | hjwp/tdd-fridays | 4c2fd8c7eb25d1ebb7c43e4fbd5ba550a23af448 | [
"Unlicense"
] | 2 | 2019-08-04T09:27:24.000Z | 2019-09-06T10:48:08.000Z | test_parse_license.py | hjwp/tdd-fridays | 4c2fd8c7eb25d1ebb7c43e4fbd5ba550a23af448 | [
"Unlicense"
] | null | null | null | test_parse_license.py | hjwp/tdd-fridays | 4c2fd8c7eb25d1ebb7c43e4fbd5ba550a23af448 | [
"Unlicense"
] | null | null | null | import pytest
from parse_license import parse, parse_one
def test_no_children_sums_metadata():
assert parse('0 3 4 5 6') == 4 + 5 + 6
assert parse('0 2 0 7') == 7
def test_one_child():
assert parse('1 2 0 1 9 2 7') == 18
# @pytest.mark.xfail
def test_two_child():
assert parse('2 2 0 1 9 0 3 6 6 6 2... | 29.923077 | 92 | 0.551414 | 171 | 778 | 2.356725 | 0.175439 | 0.218362 | 0.044665 | 0.059553 | 0.503722 | 0.33995 | 0.163772 | 0.163772 | 0.124069 | 0.124069 | 0 | 0.188356 | 0.249357 | 778 | 26 | 93 | 29.923077 | 0.501712 | 0.023136 | 0 | 0.125 | 0 | 0 | 0.068511 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.375 | true | 0 | 0.125 | 0 | 0.5 | 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 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.