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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2e1ccd54ccad1613ed746053417cd748b2d33875 | 192 | py | Python | rvpvp/isa/rvv/vmv_x_s.py | ultrafive/riscv-pvp | 843e38422c3d545352b955764927d5e7847e5453 | [
"Unlicense"
] | 5 | 2021-05-10T09:57:00.000Z | 2021-10-05T14:39:20.000Z | rvpvp/isa/rvv/vmv_x_s.py | ultrafive/riscv-pvp | 843e38422c3d545352b955764927d5e7847e5453 | [
"Unlicense"
] | null | null | null | rvpvp/isa/rvv/vmv_x_s.py | ultrafive/riscv-pvp | 843e38422c3d545352b955764927d5e7847e5453 | [
"Unlicense"
] | 1 | 2021-05-14T20:24:11.000Z | 2021-05-14T20:24:11.000Z | from ...isa.inst import *
import numpy as np
class Vmv_x_s(Inst):
name = 'vmv.x.s'
# vmv.x.s rd, vs2
# x[rd] = vs2[0] (vs1=0)
def golden(self):
return self['vs2'][0]
| 19.2 | 29 | 0.546875 | 35 | 192 | 2.942857 | 0.571429 | 0.116505 | 0.145631 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.270833 | 192 | 9 | 30 | 21.333333 | 0.685714 | 0.203125 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 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 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
2e4e6cf733e54eca65a602d7e3bfa467d83a46b3 | 98 | py | Python | transfer_app/apps.py | qbrc-cnap/cnap | 624683e91a64c3b4934b578c59db850242d2f94c | [
"MIT"
] | 1 | 2021-07-08T14:06:04.000Z | 2021-07-08T14:06:04.000Z | transfer_app/apps.py | qbrc-cnap/cnap | 624683e91a64c3b4934b578c59db850242d2f94c | [
"MIT"
] | 12 | 2020-02-12T00:10:53.000Z | 2021-06-10T21:24:45.000Z | transfer_app/apps.py | qbrc-cnap/cnap | 624683e91a64c3b4934b578c59db850242d2f94c | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class TransferAppConfig(AppConfig):
name = 'transfer_app'
| 16.333333 | 35 | 0.77551 | 11 | 98 | 6.818182 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153061 | 98 | 5 | 36 | 19.6 | 0.903614 | 0 | 0 | 0 | 0 | 0 | 0.122449 | 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 |
2e53f2b6759936a175fbb3e4afe7b5be958c9128 | 79 | py | Python | rest_framework_captcha/__init__.py | leonardoarroyo/restframework-catpcha | c1acf5904ba8c48bb58e104195380b0bbce1ed8e | [
"MIT"
] | null | null | null | rest_framework_captcha/__init__.py | leonardoarroyo/restframework-catpcha | c1acf5904ba8c48bb58e104195380b0bbce1ed8e | [
"MIT"
] | null | null | null | rest_framework_captcha/__init__.py | leonardoarroyo/restframework-catpcha | c1acf5904ba8c48bb58e104195380b0bbce1ed8e | [
"MIT"
] | 1 | 2020-12-11T21:38:09.000Z | 2020-12-11T21:38:09.000Z | default_app_config = 'rest_framework_captcha.apps.RestFrameworkCaptchaConfig'
| 26.333333 | 77 | 0.886076 | 8 | 79 | 8.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050633 | 79 | 2 | 78 | 39.5 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0.692308 | 0.692308 | 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 |
2e6262da82cf152dfcab69d6e93ee5086457a9ff | 153 | py | Python | bin/trigs/tritrigs-triangle-4.py | tiwo/puzzler | 7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e | [
"Intel"
] | null | null | null | bin/trigs/tritrigs-triangle-4.py | tiwo/puzzler | 7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e | [
"Intel"
] | null | null | null | bin/trigs/tritrigs-triangle-4.py | tiwo/puzzler | 7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e | [
"Intel"
] | 1 | 2022-01-02T16:54:14.000Z | 2022-01-02T16:54:14.000Z | #!/usr/bin/env python
# $Id$
"""
1 solution.
"""
import puzzler
from puzzler.puzzles.tritrigs import TritrigsTriangle4
puzzler.run(TritrigsTriangle4)
| 12.75 | 54 | 0.751634 | 18 | 153 | 6.388889 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.117647 | 153 | 11 | 55 | 13.909091 | 0.82963 | 0.24183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
2e7ad10848efe85c68fbc9621bee7802f36c7718 | 100 | py | Python | saleor/request_order/apps.py | AkioSky/FishMart | 1d01d7e79812dc7cccb1b26ffc6457af6104d9f2 | [
"BSD-3-Clause"
] | null | null | null | saleor/request_order/apps.py | AkioSky/FishMart | 1d01d7e79812dc7cccb1b26ffc6457af6104d9f2 | [
"BSD-3-Clause"
] | null | null | null | saleor/request_order/apps.py | AkioSky/FishMart | 1d01d7e79812dc7cccb1b26ffc6457af6104d9f2 | [
"BSD-3-Clause"
] | null | null | null | from django.apps import AppConfig
class RequestOrderConfig(AppConfig):
name = 'request_order'
| 16.666667 | 36 | 0.78 | 11 | 100 | 7 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 100 | 5 | 37 | 20 | 0.905882 | 0 | 0 | 0 | 0 | 0 | 0.13 | 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 |
2e7ddad188be683aa53d4150da78432b51cf923a | 120 | py | Python | week-6/flask-api-small/scripts/prediction.py | cgsanders/stat418-tools-in-datascience | 4a86fd15386f47d0a59422226b13834bae5a1387 | [
"MIT"
] | 4 | 2019-04-21T08:49:52.000Z | 2019-09-22T14:07:26.000Z | week-6/flask-api-small/scripts/prediction.py | cgsanders/stat418-tools-in-datascience | 4a86fd15386f47d0a59422226b13834bae5a1387 | [
"MIT"
] | 58 | 2019-04-22T15:44:14.000Z | 2019-06-04T19:50:54.000Z | week-6/flask-api-small/scripts/prediction.py | cgsanders/stat418-tools-in-datascience | 4a86fd15386f47d0a59422226b13834bae5a1387 | [
"MIT"
] | 33 | 2019-04-03T01:48:34.000Z | 2021-04-30T06:36:29.000Z | #!/usr/bin/env python3
def predict(dict_values):
x1 = float(dict_values["x"])
y_pred = 2**x1
return y_pred
| 17.142857 | 32 | 0.641667 | 20 | 120 | 3.65 | 0.75 | 0.273973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042105 | 0.208333 | 120 | 6 | 33 | 20 | 0.726316 | 0.175 | 0 | 0 | 0 | 0 | 0.010204 | 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 |
2e8f0b81bbd9561984ac38ea8dfc729ccec17dd2 | 236 | py | Python | organizerui/model.py | angusmacdonald/gopro-organizer | 6fc77fab231d016186b4bb4df5e24ecf039b72d9 | [
"MIT"
] | 6 | 2016-04-23T23:44:10.000Z | 2020-10-30T07:35:19.000Z | organizerui/model.py | angusmacdonald/gopro-organizer | 6fc77fab231d016186b4bb4df5e24ecf039b72d9 | [
"MIT"
] | null | null | null | organizerui/model.py | angusmacdonald/gopro-organizer | 6fc77fab231d016186b4bb4df5e24ecf039b72d9 | [
"MIT"
] | null | null | null | import sys
sys.path.append('')
from organizercore import organizer
class OrganizerModel:
def start_processing(self, input_dir, output_dir, settings):
organizer.Organizer(settings).process_gopro_dir(input_dir, output_dir)
| 23.6 | 78 | 0.783898 | 30 | 236 | 5.933333 | 0.633333 | 0.089888 | 0.157303 | 0.191011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131356 | 236 | 9 | 79 | 26.222222 | 0.868293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5cea000fbf7f6010b16ca5c88addb7c29ae330a8 | 25 | py | Python | src/__init__.py | dmitrijbozhkov/cloudcourseproject | 3e62a5fafef418c1c058587abc5615b03fc2325a | [
"Apache-2.0"
] | null | null | null | src/__init__.py | dmitrijbozhkov/cloudcourseproject | 3e62a5fafef418c1c058587abc5615b03fc2325a | [
"Apache-2.0"
] | 7 | 2021-02-08T20:41:23.000Z | 2022-03-12T00:21:37.000Z | src/__init__.py | dmitrijbozhkov/cloudcourseproject | 3e62a5fafef418c1c058587abc5615b03fc2325a | [
"Apache-2.0"
] | null | null | null | """ Application files """ | 25 | 25 | 0.64 | 2 | 25 | 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 25 | 1 | 25 | 25 | 0.727273 | 0.68 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 |
5cee76e061dea1eed3dca0e1ad8fc1077c7c5235 | 214 | py | Python | rameniaapp/forms/create_list.py | awlane/ramenia | 6bf8e75a1f279ac584daa4ee19927ffccaa67551 | [
"MIT"
] | null | null | null | rameniaapp/forms/create_list.py | awlane/ramenia | 6bf8e75a1f279ac584daa4ee19927ffccaa67551 | [
"MIT"
] | null | null | null | rameniaapp/forms/create_list.py | awlane/ramenia | 6bf8e75a1f279ac584daa4ee19927ffccaa67551 | [
"MIT"
] | null | null | null | from django import forms
from django.forms.widgets import TextInput
class ListCreateForm(forms.Form):
list_name = forms.CharField(label="Name", max_length=60, widget=TextInput(attrs={'class':'form-control'}))
| 35.666667 | 110 | 0.775701 | 29 | 214 | 5.655172 | 0.655172 | 0.121951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010309 | 0.093458 | 214 | 5 | 111 | 42.8 | 0.835052 | 0 | 0 | 0 | 0 | 0 | 0.098131 | 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 |
cf431e72726e4b11c54c98c1b966e61f78dddfff | 7,755 | py | Python | source/code/tag_utilities.py | awslabs/tag-tamer | bfd164c36b5e3ba8e01aba54d973ce372e982b09 | [
"MIT",
"MIT-0"
] | 15 | 2021-06-27T23:42:37.000Z | 2021-09-24T19:40:00.000Z | source/code/tag_utilities.py | awslabs/tag-tamer | bfd164c36b5e3ba8e01aba54d973ce372e982b09 | [
"MIT",
"MIT-0"
] | 7 | 2021-07-05T06:56:46.000Z | 2021-08-06T00:59:36.000Z | source/code/tag_utilities.py | awslabs/tag-tamer | bfd164c36b5e3ba8e01aba54d973ce372e982b09 | [
"MIT",
"MIT-0"
] | 5 | 2021-06-23T17:59:01.000Z | 2021-10-20T14:22:44.000Z | """
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: MIT-0
Tag Tamer utility functions to evaluate resource tags
"""
import logging
# Instantiate logging for this module using its file name
log = logging.getLogger(__name__)
def tag_filter_matcher(
conjunct... | 40.602094 | 102 | 0.660477 | 970 | 7,755 | 4.878351 | 0.095876 | 0.063609 | 0.104396 | 0.128487 | 0.792265 | 0.75951 | 0.754861 | 0.717244 | 0.678994 | 0.651733 | 0 | 0.011465 | 0.246422 | 7,755 | 190 | 103 | 40.815789 | 0.798255 | 0.076725 | 0 | 0.490196 | 0 | 0 | 0.04677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.006536 | 0 | 0.124183 | 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 |
cf51ab45924c97d384d57fc81c4e9f5c32da4311 | 23 | py | Python | samtranslator/__init__.py | bhumikapaharia/serverless-application-model | 4161fdd59f1ec449877a64796401ca074ae7be02 | [
"Apache-2.0"
] | 4 | 2021-12-18T06:44:57.000Z | 2021-12-28T09:52:53.000Z | samtranslator/__init__.py | bhumikapaharia/serverless-application-model | 4161fdd59f1ec449877a64796401ca074ae7be02 | [
"Apache-2.0"
] | 1 | 2021-04-13T17:54:21.000Z | 2021-04-13T17:54:21.000Z | samtranslator/__init__.py | chrisoverzero/serverless-application-model | f297cfb7bb68c75b3a75da49c9488e62bad16347 | [
"Apache-2.0"
] | null | null | null | __version__ = "1.35.0"
| 11.5 | 22 | 0.652174 | 4 | 23 | 2.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.130435 | 23 | 1 | 23 | 23 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cf58f44a787c70c43d9a1a1e3d53a92ccd902710 | 7,019 | py | Python | fusion_platform/translations.py | d-cat-support/fusion-platform-python-sdk | 6f98a60f33a962f6a10861da15affbc28bf4a17a | [
"MIT"
] | null | null | null | fusion_platform/translations.py | d-cat-support/fusion-platform-python-sdk | 6f98a60f33a962f6a10861da15affbc28bf4a17a | [
"MIT"
] | null | null | null | fusion_platform/translations.py | d-cat-support/fusion-platform-python-sdk | 6f98a60f33a962f6a10861da15affbc28bf4a17a | [
"MIT"
] | null | null | null | """
Compiled translations.
author: Matthew Casey
© [Digital Content Analysis Technology Ltd](https://www.d-cat.co.uk)
"""
# Do not modify this file manually as it is built automatically by the localisations.py script.
import i18n
# @formatter:off
i18n.add_translation('session.request_failed', 'API request fai... | 85.597561 | 169 | 0.774327 | 1,043 | 7,019 | 5.055609 | 0.173538 | 0.088944 | 0.228712 | 0.250332 | 0.646691 | 0.627157 | 0.524559 | 0.390669 | 0.296416 | 0.183197 | 0 | 0.021574 | 0.082063 | 7,019 | 81 | 170 | 86.654321 | 0.796834 | 0.034763 | 0 | 0 | 0 | 0.044118 | 0.668884 | 0.306726 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.014706 | 0.014706 | 0 | 0.014706 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cf63128ae3837cdf01a72550d0f6236a6665d83c | 35 | py | Python | scripts/tcutils/tests/cores_ut.py | rombie/contrail-test | a68c71d6f282142501a7e2e889bbb232fdd82dc3 | [
"Apache-2.0"
] | 5 | 2020-09-29T00:36:57.000Z | 2022-02-16T06:51:32.000Z | tcutils/tests/cores_ut.py | vkolli/contrail-test-perf | db04b8924a2c330baabe3059788b149d957a7d67 | [
"Apache-2.0"
] | 27 | 2019-11-02T02:18:34.000Z | 2022-02-24T18:49:08.000Z | tcutils/tests/cores_ut.py | vkolli/contrail-test-perf | db04b8924a2c330baabe3059788b149d957a7d67 | [
"Apache-2.0"
] | 20 | 2019-11-28T16:02:25.000Z | 2022-01-06T05:56:58.000Z | """Unittests for cores module.
"""
| 11.666667 | 30 | 0.657143 | 4 | 35 | 5.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 35 | 2 | 31 | 17.5 | 0.766667 | 0.771429 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 |
cf815298accec6c14c7afef44e976c7b6069c135 | 73 | py | Python | scalabel/tools/__init__.py | cwlroda/scalabel | 296b7f3050ec0d02b4578d9d1f174ffd22aee3fb | [
"Apache-2.0"
] | 279 | 2019-11-18T01:48:39.000Z | 2022-03-30T00:16:43.000Z | scalabel/tools/__init__.py | cwlroda/scalabel | 296b7f3050ec0d02b4578d9d1f174ffd22aee3fb | [
"Apache-2.0"
] | 141 | 2019-11-20T02:36:11.000Z | 2022-03-29T15:17:46.000Z | scalabel/tools/__init__.py | cwlroda/scalabel | 296b7f3050ec0d02b4578d9d1f174ffd22aee3fb | [
"Apache-2.0"
] | 85 | 2019-11-18T06:10:12.000Z | 2022-03-27T12:32:55.000Z | """Tools for using scalabel."""
from . import edit_labels, prepare_data
| 18.25 | 39 | 0.739726 | 10 | 73 | 5.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136986 | 73 | 3 | 40 | 24.333333 | 0.825397 | 0.342466 | 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 |
d85f295a43e1700c84c02249db04af993786f746 | 26 | py | Python | homeassistant/components/imap/__init__.py | domwillcode/home-assistant | f170c80bea70c939c098b5c88320a1c789858958 | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | homeassistant/components/imap/__init__.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 31,101 | 2020-03-02T13:00:16.000Z | 2022-03-31T23:57:36.000Z | homeassistant/components/imap/__init__.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """The imap component."""
| 13 | 25 | 0.615385 | 3 | 26 | 5.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 26 | 1 | 26 | 26 | 0.695652 | 0.730769 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 |
d860dd72da3f6f3d31741e148127e543434eba7d | 4,552 | py | Python | tests/pv_generation.py | Aloso/pv-simulator | daae4a00c4d7c759eedeffe39b6d60395e9a3ebf | [
"MIT"
] | null | null | null | tests/pv_generation.py | Aloso/pv-simulator | daae4a00c4d7c759eedeffe39b6d60395e9a3ebf | [
"MIT"
] | null | null | null | tests/pv_generation.py | Aloso/pv-simulator | daae4a00c4d7c759eedeffe39b6d60395e9a3ebf | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys, os, random, unittest, itertools
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
# pylint: disable=import-error
from libpv.pv_generation import PvGenerator, weather
from libpv.time_of_day import TimeOfDay
def generate_360_times():
t = TimeOfDay(0)
... | 47.915789 | 85 | 0.504174 | 756 | 4,552 | 2.997355 | 0.345238 | 0.126214 | 0.186673 | 0.245366 | 0.172551 | 0.114298 | 0.114298 | 0.114298 | 0.114298 | 0.114298 | 0 | 0.450839 | 0.331942 | 4,552 | 94 | 86 | 48.425532 | 0.294311 | 0.010765 | 0 | 0.175 | 0 | 0 | 0.001777 | 0 | 0 | 0 | 0 | 0 | 0.0875 | 1 | 0.0625 | false | 0 | 0.0375 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d886d8c696a1ebb65d655949115462c4ca60e2a4 | 274 | py | Python | vmraid/patches/v6_0/document_type_rename.py | sowrisurya/vmraid | f833e00978019dad87af80b41279c0146c063ed5 | [
"MIT"
] | null | null | null | vmraid/patches/v6_0/document_type_rename.py | sowrisurya/vmraid | f833e00978019dad87af80b41279c0146c063ed5 | [
"MIT"
] | null | null | null | vmraid/patches/v6_0/document_type_rename.py | sowrisurya/vmraid | f833e00978019dad87af80b41279c0146c063ed5 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
import vmraid
def execute():
vmraid.db.sql("""update tabDocType set document_type='Document'
where document_type='Transaction'""")
vmraid.db.sql("""update tabDocType set document_type='Setup'
where document_type='Master'""")
| 30.444444 | 64 | 0.766423 | 35 | 274 | 5.742857 | 0.542857 | 0.238806 | 0.109453 | 0.169154 | 0.41791 | 0.41791 | 0.41791 | 0.41791 | 0 | 0 | 0 | 0 | 0.105839 | 274 | 8 | 65 | 34.25 | 0.820408 | 0 | 0 | 0 | 0 | 0 | 0.569343 | 0.343066 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.285714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d8b1c38d182c0ed927319fd435a35f4a6f89a701 | 162 | py | Python | saleor/webhook/observability/exceptions.py | DevPoke/saleor | ced3a2249a18031f9f593e71d1d18aa787ec1060 | [
"CC-BY-4.0"
] | null | null | null | saleor/webhook/observability/exceptions.py | DevPoke/saleor | ced3a2249a18031f9f593e71d1d18aa787ec1060 | [
"CC-BY-4.0"
] | null | null | null | saleor/webhook/observability/exceptions.py | DevPoke/saleor | ced3a2249a18031f9f593e71d1d18aa787ec1060 | [
"CC-BY-4.0"
] | null | null | null | class ObservabilityError(Exception):
pass
class ConnectionNotConfigured(ObservabilityError):
pass
class TruncationError(ObservabilityError):
pass
| 14.727273 | 50 | 0.790123 | 12 | 162 | 10.666667 | 0.5 | 0.140625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154321 | 162 | 10 | 51 | 16.2 | 0.934307 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
d8d3a26759da05b4ac662c9a2c7f47a9af51214a | 166 | py | Python | site_repo/utils/requests.py | Aviah/one-click-django-server | ddce7181f025b7f8d0979d725f85f8124add6adf | [
"MIT"
] | 10 | 2016-03-22T22:14:40.000Z | 2021-07-23T22:00:02.000Z | site_repo/utils/requests.py | Aviah/one-click-django-server | ddce7181f025b7f8d0979d725f85f8124add6adf | [
"MIT"
] | null | null | null | site_repo/utils/requests.py | Aviah/one-click-django-server | ddce7181f025b7f8d0979d725f85f8124add6adf | [
"MIT"
] | 4 | 2016-04-05T05:41:15.000Z | 2017-01-08T10:03:25.000Z | # requests utils
def get_ip(request):
ip = request.META['REMOTE_ADDR']
ip = request.META.get('HTTP_X_FORWARDED_FOR',ip)
return ip
| 16.6 | 52 | 0.596386 | 22 | 166 | 4.272727 | 0.636364 | 0.287234 | 0.276596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.295181 | 166 | 10 | 53 | 16.6 | 0.803419 | 0.084337 | 0 | 0 | 0 | 0 | 0.205298 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2b17cbd8a9488937054f8a24306f05f58eb7a8b6 | 2,757 | py | Python | micromath/fibonacci/test_fibonacci.py | hedrox/micromath | 0f300da914c844e5ff0775f25119909f748de635 | [
"MIT"
] | null | null | null | micromath/fibonacci/test_fibonacci.py | hedrox/micromath | 0f300da914c844e5ff0775f25119909f748de635 | [
"MIT"
] | null | null | null | micromath/fibonacci/test_fibonacci.py | hedrox/micromath | 0f300da914c844e5ff0775f25119909f748de635 | [
"MIT"
] | null | null | null | import logging
import json
from server import app
app.testing = True
logging.disable(logging.ERROR)
class TestFibonacci:
def test_correct_fibonacci(self):
with app.test_client() as client:
body = {'number': 16}
result = client.post('/api/v1/fibonacci', json=body)
ass... | 33.621951 | 64 | 0.564019 | 322 | 2,757 | 4.742236 | 0.177019 | 0.085134 | 0.073346 | 0.087099 | 0.787164 | 0.773412 | 0.734774 | 0.709234 | 0.663392 | 0.612312 | 0 | 0.021602 | 0.311571 | 2,757 | 81 | 65 | 34.037037 | 0.782929 | 0 | 0 | 0.571429 | 0 | 0 | 0.141095 | 0 | 0 | 0 | 0 | 0 | 0.396825 | 1 | 0.095238 | false | 0 | 0.047619 | 0 | 0.15873 | 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 |
2b240ebab74f79c8c466f67dcad71acc3ab5e267 | 67 | py | Python | slack_bolt/context/respond/__init__.py | hirosassa/bolt-python | befc3a1463f3ac8dbb780d66decc304e2bdf3e7a | [
"MIT"
] | 504 | 2020-08-07T05:02:57.000Z | 2022-03-31T14:32:46.000Z | slack_bolt/context/respond/__init__.py | hirosassa/bolt-python | befc3a1463f3ac8dbb780d66decc304e2bdf3e7a | [
"MIT"
] | 560 | 2020-08-07T01:16:06.000Z | 2022-03-30T00:40:56.000Z | slack_bolt/context/respond/__init__.py | hirosassa/bolt-python | befc3a1463f3ac8dbb780d66decc304e2bdf3e7a | [
"MIT"
] | 150 | 2020-08-07T09:41:14.000Z | 2022-03-30T04:54:51.000Z | # Don't add async module imports here
from .respond import Respond
| 22.333333 | 37 | 0.791045 | 11 | 67 | 4.818182 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164179 | 67 | 2 | 38 | 33.5 | 0.946429 | 0.522388 | 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 |
2b32885657370cb4b8b7d916d4f131943c631e50 | 421 | py | Python | fexr/fexr.py | fexrapis/pyfexr | 2273f29c9a828722d546e9f7a6cbbc6f50987786 | [
"MIT"
] | null | null | null | fexr/fexr.py | fexrapis/pyfexr | 2273f29c9a828722d546e9f7a6cbbc6f50987786 | [
"MIT"
] | null | null | null | fexr/fexr.py | fexrapis/pyfexr | 2273f29c9a828722d546e9f7a6cbbc6f50987786 | [
"MIT"
] | null | null | null | import requests
import json
def initialize_app(config):
return Fexr(config)
class Fexr:
"""interface"""
def __init__(self, config):
self.botEmail = config["botEmail"]
self.botPassword = config["botPassword"]
self.usageId = config["usageId"]
self.config = None
self.... | 21.05 | 48 | 0.638955 | 47 | 421 | 5.595745 | 0.446809 | 0.076046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244656 | 421 | 19 | 49 | 22.157895 | 0.827044 | 0.021378 | 0 | 0 | 0 | 0 | 0.064039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.076923 | 0.153846 | 0.153846 | 0.615385 | 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 |
2b61ffc6917a5f272ca7c83fd65079c3be07964c | 3,797 | py | Python | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/python_modelling_framework/UnitTests/pfTestModels.py | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/python_modelling_framework/UnitTests/pfTestModels.py | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/python_modelling_framework/UnitTests/pfTestModels.py | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import random
import pcraster
import pcraster.framework.dynamicPCRasterBase as dynamicPCRasterBase
import pcraster.framework.mcPCRasterBase as mcPCRasterBase
import pcraster.framework.pfPCRasterBase as pfPCRasterBase
import pcraster.framework.staticPCRasterBase as staticPCR... | 27.316547 | 121 | 0.738214 | 388 | 3,797 | 6.976804 | 0.162371 | 0.067972 | 0.040635 | 0.11969 | 0.761729 | 0.738825 | 0.653122 | 0.592538 | 0.536387 | 0.514592 | 0 | 0.000936 | 0.156176 | 3,797 | 138 | 122 | 27.514493 | 0.843945 | 0.011061 | 0 | 0.733333 | 0 | 0 | 0.03175 | 0 | 0 | 0 | 0 | 0 | 0.019048 | 1 | 0.304762 | false | 0.152381 | 0.057143 | 0.009524 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
996276e35632e5351e97d09b376c527fbb524a3d | 1,409 | py | Python | alpa/torch/optim/adam.py | TarzanZhao/alpa | c477805bfb182788ed07e8b3a8e2924333433507 | [
"Apache-2.0"
] | null | null | null | alpa/torch/optim/adam.py | TarzanZhao/alpa | c477805bfb182788ed07e8b3a8e2924333433507 | [
"Apache-2.0"
] | null | null | null | alpa/torch/optim/adam.py | TarzanZhao/alpa | c477805bfb182788ed07e8b3a8e2924333433507 | [
"Apache-2.0"
] | null | null | null | """Adam optimizer"""
import copy
import torch
def adam(lr=1e-4):
"""torchoptim.adam(**adam_config)(params)
Factory that generates functional version of Adam optimizer.
Implementation has no in-place op and no data-dependent control flow.
Returns:
- `optim_func`: a function th... | 32.022727 | 77 | 0.596167 | 173 | 1,409 | 4.653179 | 0.369942 | 0.198758 | 0.079503 | 0.067081 | 0.18882 | 0.069565 | 0 | 0 | 0 | 0 | 0 | 0.005187 | 0.315827 | 1,409 | 43 | 78 | 32.767442 | 0.829876 | 0.457062 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0 | 1 | 0.235294 | false | 0 | 0.117647 | 0 | 0.588235 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
99a7afbbb47204c705de2e7ed32e0ae9dbea9c39 | 62 | py | Python | hello_world.py | deepti-anand/hello-world | 494fc16c416dc8fe25600d5830052343b70f2070 | [
"Apache-2.0"
] | null | null | null | hello_world.py | deepti-anand/hello-world | 494fc16c416dc8fe25600d5830052343b70f2070 | [
"Apache-2.0"
] | null | null | null | hello_world.py | deepti-anand/hello-world | 494fc16c416dc8fe25600d5830052343b70f2070 | [
"Apache-2.0"
] | null | null | null | print("hi")
print("Hello World") #print #diff
print("hellooo") | 20.666667 | 33 | 0.693548 | 9 | 62 | 4.777778 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080645 | 62 | 3 | 34 | 20.666667 | 0.754386 | 0.16129 | 0 | 0 | 0 | 0 | 0.392157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
99a8f1f1c93af08f3ec765e04d13a2b8d33dbbbd | 84 | py | Python | hello.py | bingle2400/cs3240-labdemo | 5dca6fd8f4c510aa5b06d7dd17e5204e0cc13ffc | [
"MIT"
] | null | null | null | hello.py | bingle2400/cs3240-labdemo | 5dca6fd8f4c510aa5b06d7dd17e5204e0cc13ffc | [
"MIT"
] | null | null | null | hello.py | bingle2400/cs3240-labdemo | 5dca6fd8f4c510aa5b06d7dd17e5204e0cc13ffc | [
"MIT"
] | null | null | null |
from helper import reeting
if __name__ == "__main__":
reeting("hello")
| 9.333333 | 26 | 0.630952 | 9 | 84 | 5 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261905 | 84 | 8 | 27 | 10.5 | 0.725806 | 0 | 0 | 0 | 0 | 0 | 0.158537 | 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 |
41da78eeb82897161300840746eef404c63146f0 | 7,485 | py | Python | test_farbfeld.py | jmp/farbfeld | 08cb56957624cfe3a1fe872390aa3252226e57cd | [
"MIT"
] | 2 | 2020-02-01T14:59:15.000Z | 2021-11-03T12:39:10.000Z | test_farbfeld.py | jmp/farbfeld | 08cb56957624cfe3a1fe872390aa3252226e57cd | [
"MIT"
] | 5 | 2019-01-26T11:58:58.000Z | 2019-08-31T08:16:59.000Z | test_farbfeld.py | jmp/farbfeld | 08cb56957624cfe3a1fe872390aa3252226e57cd | [
"MIT"
] | null | null | null | # pylint: disable=missing-docstring
import io
import unittest
import farbfeld
class ReadTest(unittest.TestCase):
def test_read_empty_data(self):
self.assertRaises(
farbfeld.InvalidFormat,
farbfeld.read,
io.BytesIO(b''),
)
def test_read_header_only(self):
... | 30.303644 | 76 | 0.501536 | 871 | 7,485 | 4.205511 | 0.129736 | 0.096642 | 0.081081 | 0.07098 | 0.754573 | 0.754027 | 0.741742 | 0.712258 | 0.675949 | 0.675949 | 0 | 0.112829 | 0.360588 | 7,485 | 246 | 77 | 30.426829 | 0.652528 | 0.053975 | 0 | 0.62844 | 0 | 0 | 0.148512 | 0.067777 | 0 | 0 | 0 | 0 | 0.119266 | 1 | 0.110092 | false | 0 | 0.013761 | 0 | 0.133028 | 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 |
510589bac3c231ff9dfff00d74d2b2a73850d0b7 | 934 | py | Python | release/stubs.min/Tekla/Structures/ModelInternal_parts/dotTemporaryStatesEnum.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Tekla/Structures/ModelInternal_parts/dotTemporaryStatesEnum.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Tekla/Structures/ModelInternal_parts/dotTemporaryStatesEnum.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | class dotTemporaryStatesEnum(Enum):
""" enum dotTemporaryStatesEnum,values: DOT_TEMPORARY_STATE_ACCEPTED (8),DOT_TEMPORARY_STATE_ACTIVE (6),DOT_TEMPORARY_STATE_DELETED (3),DOT_TEMPORARY_STATE_DM_ONGOING (4),DOT_TEMPORARY_STATE_MODIFIED (2),DOT_TEMPORARY_STATE_NEW (1),DOT_TEMPORARY_STATE_ORIGINAL (7),DOT_TEMPORARY_S... | 58.375 | 424 | 0.826552 | 124 | 934 | 5.629032 | 0.274194 | 0.378224 | 0.535817 | 0.30086 | 0.194842 | 0.120344 | 0 | 0 | 0 | 0 | 0 | 0.01451 | 0.114561 | 934 | 15 | 425 | 62.266667 | 0.829504 | 0.441113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 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 |
5147aa629fe9091066db83d5ac4d5067803255bc | 359 | py | Python | src/dev.py | Inigoperez/Proyecto_Interfaces | 4a2b98cd499fabf3789301e9eb488297bebfcf2a | [
"MIT"
] | null | null | null | src/dev.py | Inigoperez/Proyecto_Interfaces | 4a2b98cd499fabf3789301e9eb488297bebfcf2a | [
"MIT"
] | null | null | null | src/dev.py | Inigoperez/Proyecto_Interfaces | 4a2b98cd499fabf3789301e9eb488297bebfcf2a | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
from dotenv import load_dotenv
load_dotenv()
from config import StageConfig
from util import route
from util.commands import commands
else:
from .config import StageConfig
from .util import route
from .util.commands import commands
app = route(config=StageCo... | 22.4375 | 46 | 0.732591 | 46 | 359 | 5.413043 | 0.304348 | 0.128514 | 0.128514 | 0.216867 | 0.610442 | 0.610442 | 0.610442 | 0.610442 | 0.610442 | 0.610442 | 0 | 0 | 0.206128 | 359 | 15 | 47 | 23.933333 | 0.873684 | 0 | 0 | 0 | 0 | 0 | 0.022346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.583333 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5159402d19245aba61bb579f188067d4ee6bc977 | 274 | py | Python | vivit/extensions/secondorder/sqrt_ggn/dropout.py | PwLo3K46/vivit | 937642975be2ade122632d4eaef273461992d7ab | [
"MIT"
] | 1 | 2021-06-07T05:15:22.000Z | 2021-06-07T05:15:22.000Z | vivit/extensions/secondorder/sqrt_ggn/dropout.py | PwLo3K46/vivit | 937642975be2ade122632d4eaef273461992d7ab | [
"MIT"
] | 2 | 2021-08-10T12:45:37.000Z | 2021-08-10T12:49:51.000Z | vivit/extensions/secondorder/sqrt_ggn/dropout.py | PwLo3K46/vivit | 937642975be2ade122632d4eaef273461992d7ab | [
"MIT"
] | null | null | null | from backpack.core.derivatives.dropout import DropoutDerivatives
from vivit.extensions.secondorder.sqrt_ggn.sqrt_ggn_base import SqrtGGNBaseModule
class SqrtGGNDropout(SqrtGGNBaseModule):
def __init__(self):
super().__init__(derivatives=DropoutDerivatives())
| 30.444444 | 81 | 0.821168 | 28 | 274 | 7.642857 | 0.714286 | 0.065421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10219 | 274 | 8 | 82 | 34.25 | 0.869919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5163521d44aed6af36c7ee8ac7cba90723cfbc26 | 49 | py | Python | api/common.py | ewangplay/wallet-sdk-py | 9f55ffa6bb7968192fd88e2b2dddf04c997874ab | [
"Apache-2.0"
] | 13 | 2018-03-06T10:04:26.000Z | 2021-08-12T11:25:29.000Z | api/common.py | ewangplay/wallet-sdk-py | 9f55ffa6bb7968192fd88e2b2dddf04c997874ab | [
"Apache-2.0"
] | 42 | 2018-02-08T04:32:56.000Z | 2018-09-06T07:30:58.000Z | api/common.py | ewangplay/wallet-sdk-py | 9f55ffa6bb7968192fd88e2b2dddf04c997874ab | [
"Apache-2.0"
] | 15 | 2018-02-11T09:29:31.000Z | 2021-07-04T07:33:22.000Z | from cryption.crypto import sign
VERSION = "v1"
| 12.25 | 32 | 0.755102 | 7 | 49 | 5.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0.163265 | 49 | 3 | 33 | 16.333333 | 0.878049 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
5163aaae4b007b773986e024d8629d4d1f39a0b9 | 589 | py | Python | tests/unit/test_subscription.py | eldarion/braintree_python | 8be3f69fb9a4171c5e9be049c8440fcc4f79fb40 | [
"MIT"
] | 3 | 2015-11-05T08:57:12.000Z | 2016-07-17T18:10:55.000Z | tests/unit/test_subscription.py | eldarion/braintree_python | 8be3f69fb9a4171c5e9be049c8440fcc4f79fb40 | [
"MIT"
] | null | null | null | tests/unit/test_subscription.py | eldarion/braintree_python | 8be3f69fb9a4171c5e9be049c8440fcc4f79fb40 | [
"MIT"
] | null | null | null | from tests.test_helper import *
class TestSubscription(unittest.TestCase):
def test_create_raises_exception_with_bad_keys(self):
try:
Subscription.create({"bad_key": "value"})
self.assertTrue(False)
except KeyError, e:
self.assertEquals("'Invalid keys: bad_key'",... | 34.647059 | 64 | 0.633277 | 68 | 589 | 5.235294 | 0.455882 | 0.067416 | 0.106742 | 0.123596 | 0.713483 | 0.713483 | 0.713483 | 0.713483 | 0.460674 | 0.460674 | 0 | 0 | 0.249576 | 589 | 16 | 65 | 36.8125 | 0.80543 | 0 | 0 | 0.571429 | 0 | 0 | 0.122241 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 0 | null | null | 0 | 0.071429 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5ac3496c6293aef55801f31bfe043059c6610afa | 467 | py | Python | pmaf/biome/survey/_metakit.py | mmtechslv/PhyloMAF | bab43dd4a4d2812951b1fdf4f1abb83edb79ea88 | [
"BSD-3-Clause"
] | 1 | 2021-07-02T06:24:17.000Z | 2021-07-02T06:24:17.000Z | pmaf/biome/survey/_metakit.py | mmtechslv/PhyloMAF | bab43dd4a4d2812951b1fdf4f1abb83edb79ea88 | [
"BSD-3-Clause"
] | 1 | 2021-06-28T12:02:46.000Z | 2021-06-28T12:02:46.000Z | pmaf/biome/survey/_metakit.py | mmtechslv/PhyloMAF | bab43dd4a4d2812951b1fdf4f1abb83edb79ea88 | [
"BSD-3-Clause"
] | null | null | null | from abc import abstractmethod
from pmaf.biome._metakit import BiomeFeatureMetabase, BiomeSampleMetabase
class BiomeSurveyBackboneMetabase(BiomeFeatureMetabase, BiomeSampleMetabase):
@abstractmethod
def to_assembly(self):
pass
@property
@abstractmethod
def essentials(self):
pass
... | 19.458333 | 77 | 0.704497 | 39 | 467 | 8.384615 | 0.512821 | 0.207951 | 0.146789 | 0.275229 | 0.302752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239829 | 467 | 23 | 78 | 20.304348 | 0.921127 | 0 | 0 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.222222 | 0.111111 | 0 | 0.388889 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
5ae33aa8d62f63600348c0e8b3870cf2f541e67e | 224 | py | Python | translate.py | vipul-khatana/Hinglish-Sentiment-Analysis | 27b0d0aca736194b8f06b8cccb3e68537d91709f | [
"MIT"
] | 19 | 2017-12-03T14:17:13.000Z | 2022-02-23T19:06:07.000Z | translate.py | vipul-khatana/Hinglish-Sentiment-Analysis | 27b0d0aca736194b8f06b8cccb3e68537d91709f | [
"MIT"
] | 2 | 2018-12-14T12:43:47.000Z | 2020-03-31T15:27:31.000Z | translate.py | vipul-khatana/Hinglish-Sentiment-Analysis | 27b0d0aca736194b8f06b8cccb3e68537d91709f | [
"MIT"
] | 23 | 2018-12-14T04:37:47.000Z | 2022-03-25T09:58:26.000Z | # -*- coding: utf-8 -*-
import numpy as np
from googletrans import Translator
translator = Translator(service_urls=['translate.google.co.in'])
def translate(word):
return translator.translate(word,src='hi' , dest='en')
| 22.4 | 64 | 0.727679 | 30 | 224 | 5.4 | 0.766667 | 0.246914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005076 | 0.120536 | 224 | 9 | 65 | 24.888889 | 0.817259 | 0.09375 | 0 | 0 | 0 | 0 | 0.129353 | 0.109453 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 0.8 | 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 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 4 |
851edb7f446fce929abe41c0aa3fb8e6f6bcca40 | 481 | py | Python | src/bxgateway/services/gateway_broadcast_service.py | blockchain-development-resources/bxgateway | 761b5085f9c7c6527f0b9aaae06d2f70f3786db2 | [
"MIT"
] | 1 | 2021-11-26T07:49:24.000Z | 2021-11-26T07:49:24.000Z | src/bxgateway/services/gateway_broadcast_service.py | beepool/bxgateway | 761b5085f9c7c6527f0b9aaae06d2f70f3786db2 | [
"MIT"
] | null | null | null | src/bxgateway/services/gateway_broadcast_service.py | beepool/bxgateway | 761b5085f9c7c6527f0b9aaae06d2f70f3786db2 | [
"MIT"
] | 1 | 2021-09-06T02:10:08.000Z | 2021-09-06T02:10:08.000Z | from bxcommon.connections.abstract_connection import AbstractConnection
from bxcommon.messages.abstract_message import AbstractMessage
from bxcommon.services.broadcast_service import BroadcastService
class GatewayBroadcastService(BroadcastService[AbstractMessage, AbstractConnection]):
def should_broadcast_to_conn... | 48.1 | 111 | 0.837838 | 47 | 481 | 8.446809 | 0.659574 | 0.09068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116424 | 481 | 9 | 112 | 53.444444 | 0.934118 | 0.10395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0.166667 | 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 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
8527867363759e9aaf795447f6ea1b7805273895 | 476 | py | Python | tests/constraints/test_minLength.py | vincentchevrier/tableschema-py | d47b6d73ab3ea1051c866b93b6e2b9202bbd40b1 | [
"MIT"
] | 224 | 2017-04-11T11:29:48.000Z | 2022-03-26T18:34:50.000Z | tests/constraints/test_minLength.py | vincentchevrier/tableschema-py | d47b6d73ab3ea1051c866b93b6e2b9202bbd40b1 | [
"MIT"
] | 111 | 2017-03-28T19:02:01.000Z | 2021-12-20T08:42:21.000Z | tests/constraints/test_minLength.py | vincentchevrier/tableschema-py | d47b6d73ab3ea1051c866b93b6e2b9202bbd40b1 | [
"MIT"
] | 40 | 2017-04-01T08:21:57.000Z | 2021-02-28T23:52:07.000Z | # -*- coding: utf-8 -*-
from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
from __future__ import unicode_literals
import pytest
from tableschema import constraints
# Tests
@pytest.mark.parametrize('constraint, value, result', [
(0, [1], True),
(1, [... | 23.8 | 67 | 0.735294 | 58 | 476 | 5.655172 | 0.534483 | 0.121951 | 0.195122 | 0.176829 | 0.213415 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017327 | 0.151261 | 476 | 19 | 68 | 25.052632 | 0.794554 | 0.056723 | 0 | 0 | 0 | 0 | 0.056054 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.076923 | false | 0 | 0.461538 | 0 | 0.538462 | 0.076923 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
517478985ae408d05857add2bf5a7f8926b3712f | 268 | py | Python | ztlearn/datasets/__init__.py | jefkine/zeta-learn | 04388f90093b52f5df2f334c898f3a1224f5a13f | [
"MIT"
] | 30 | 2018-03-12T19:16:27.000Z | 2021-12-16T05:32:38.000Z | ztlearn/datasets/__init__.py | jefkine/zeta-learn | 04388f90093b52f5df2f334c898f3a1224f5a13f | [
"MIT"
] | 4 | 2018-06-13T03:47:15.000Z | 2018-11-05T21:33:34.000Z | ztlearn/datasets/__init__.py | jefkine/zeta-learn | 04388f90093b52f5df2f334c898f3a1224f5a13f | [
"MIT"
] | 4 | 2018-04-30T07:42:47.000Z | 2022-01-31T11:35:53.000Z | # -*- coding: utf-8 -*-
# import module(s)
from . import pima
from . import iris
from . import mnist
from . import cifar
from . import digits
from . import boston
from . import fashion
from . import data_set
# import from data_utils.py
from .data_set import DataSet
| 17.866667 | 29 | 0.727612 | 41 | 268 | 4.682927 | 0.463415 | 0.416667 | 0.135417 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004587 | 0.186567 | 268 | 14 | 30 | 19.142857 | 0.876147 | 0.238806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
518975b5241f59261c929bcb2590e0efbd096746 | 94 | py | Python | NicBot/errors.py | nicdgonzalez/NicBot-discord.py | 3a21510c1e4e2c933f48708478ae792159324a7c | [
"MIT"
] | null | null | null | NicBot/errors.py | nicdgonzalez/NicBot-discord.py | 3a21510c1e4e2c933f48708478ae792159324a7c | [
"MIT"
] | null | null | null | NicBot/errors.py | nicdgonzalez/NicBot-discord.py | 3a21510c1e4e2c933f48708478ae792159324a7c | [
"MIT"
] | null | null | null |
class NicBotException(Exception):
pass
class UpdateNewFile(NicBotException):
pass
| 10.444444 | 37 | 0.744681 | 8 | 94 | 8.75 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191489 | 94 | 8 | 38 | 11.75 | 0.921053 | 0 | 0 | 0.5 | 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 |
51a8565b769000f11b09672e6d238626a93895dc | 61,477 | py | Python | generated-libraries/python/netapp/fpolicy/__init__.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | 2 | 2017-03-28T15:31:26.000Z | 2018-08-16T22:15:18.000Z | generated-libraries/python/netapp/fpolicy/__init__.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | null | null | null | generated-libraries/python/netapp/fpolicy/__init__.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | null | null | null | from netapp.connection import NaConnection
from extension_list_info import ExtensionListInfo # 1 properties
from event_name import EventName # 0 properties
from fpolicy_policy_get_iter_key_td import FpolicyPolicyGetIterKeyTd # 2 properties
from monitored_operation_info import MonitoredOperationInfo # 1 properties
from ... | 51.748316 | 450 | 0.606422 | 6,729 | 61,477 | 5.39679 | 0.065983 | 0.038001 | 0.023351 | 0.028638 | 0.783726 | 0.740906 | 0.716261 | 0.707173 | 0.69346 | 0.668842 | 0 | 0.002232 | 0.30753 | 61,477 | 1,187 | 451 | 51.791912 | 0.850814 | 0.465995 | 0 | 0.553763 | 0 | 0 | 0.242488 | 0.086806 | 0 | 0 | 0 | 0 | 0 | 1 | 0.110215 | false | 0 | 0.080645 | 0 | 0.303763 | 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 |
51d82a4a78317f4eced5c0075b91640e53d92d65 | 64 | py | Python | create_browser.py | bannedcoder/selenium-easy-debug | 657c7dea3df4c661198e5461abc95a5abaa9ab30 | [
"MIT"
] | null | null | null | create_browser.py | bannedcoder/selenium-easy-debug | 657c7dea3df4c661198e5461abc95a5abaa9ab30 | [
"MIT"
] | null | null | null | create_browser.py | bannedcoder/selenium-easy-debug | 657c7dea3df4c661198e5461abc95a5abaa9ab30 | [
"MIT"
] | null | null | null | from helpers.reusable_browser import *
create_driver_session()
| 16 | 38 | 0.84375 | 8 | 64 | 6.375 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 64 | 3 | 39 | 21.333333 | 0.87931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
51eaff77f11bb6623d586c575371ad21566bce38 | 857 | py | Python | prosperpy/overlays/bollinger_bands.py | CaptainBriot/prosperpy | 831abb9c9e3b730c81895647e33a59854c4e4648 | [
"MIT"
] | 2 | 2018-01-28T06:11:37.000Z | 2018-02-04T16:01:30.000Z | prosperpy/overlays/bollinger_bands.py | CaptainBriot/prosperpy | 831abb9c9e3b730c81895647e33a59854c4e4648 | [
"MIT"
] | 1 | 2018-03-20T12:10:40.000Z | 2018-03-21T00:08:04.000Z | prosperpy/overlays/bollinger_bands.py | CaptainBriot/prosperpy | 831abb9c9e3b730c81895647e33a59854c4e4648 | [
"MIT"
] | 2 | 2019-04-06T14:33:26.000Z | 2020-06-25T23:34:32.000Z | from . import moving_average
from .. import indicators
class BollingerBands:
def __init__(self, values, multiplier=2, moving_average_class=moving_average.SimpleMovingAverage):
self.moving_average_class = moving_average_class
self.multiplier = multiplier
self.moving_average = self.moving_av... | 31.740741 | 102 | 0.72112 | 98 | 857 | 6.081633 | 0.244898 | 0.218121 | 0.171141 | 0.130872 | 0.38255 | 0.278523 | 0.278523 | 0.278523 | 0.278523 | 0.278523 | 0 | 0.001449 | 0.194866 | 857 | 26 | 103 | 32.961538 | 0.862319 | 0 | 0 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1 | 0.15 | 0.55 | 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 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
a4080e0aba5ecd64976ae2135ad806d510892f8d | 93 | py | Python | webapp/MemberApp/apps.py | AdaFactor/RamaProject | 4da35480e2e7185a6d07f00cc8cdbf51898a7bb7 | [
"MIT"
] | null | null | null | webapp/MemberApp/apps.py | AdaFactor/RamaProject | 4da35480e2e7185a6d07f00cc8cdbf51898a7bb7 | [
"MIT"
] | 7 | 2018-02-16T11:18:24.000Z | 2019-04-23T17:49:04.000Z | webapp/MemberApp/apps.py | AdaFactor/RamaProject | 4da35480e2e7185a6d07f00cc8cdbf51898a7bb7 | [
"MIT"
] | 1 | 2018-01-29T05:15:13.000Z | 2018-01-29T05:15:13.000Z | from django.apps import AppConfig
class MemberappConfig(AppConfig):
name = 'MemberApp'
| 15.5 | 33 | 0.763441 | 10 | 93 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 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 |
cf8d37dd7cc02823d08160694115cee5f64df311 | 255 | py | Python | essentials/old_on_352.py | sonicrules1234/sonicbot | 07a22d08bf86ed33dc715a800957aee3b45f3dde | [
"BSD-3-Clause"
] | 1 | 2019-06-27T08:45:23.000Z | 2019-06-27T08:45:23.000Z | essentials/old_on_352.py | sonicrules1234/sonicbot | 07a22d08bf86ed33dc715a800957aee3b45f3dde | [
"BSD-3-Clause"
] | null | null | null | essentials/old_on_352.py | sonicrules1234/sonicbot | 07a22d08bf86ed33dc715a800957aee3b45f3dde | [
"BSD-3-Clause"
] | null | null | null | import time
minlevel = 1
arguments = ["self", "info"]
keyword = "352"
def main(self, info) :
self.hostnames[info["words"][7]] = info["words"][5]
self.whoislist[info["words"][7]] = info["words"][7] + "!" + info["words"][4] + "@" + info["words"][5]
| 31.875 | 105 | 0.576471 | 35 | 255 | 4.2 | 0.485714 | 0.367347 | 0.204082 | 0.285714 | 0.326531 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046083 | 0.14902 | 255 | 7 | 106 | 36.428571 | 0.631336 | 0 | 0 | 0 | 0 | 0 | 0.168627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 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 |
cf9459db5ea16ef4050b20b3369b43e59a337980 | 127 | py | Python | instaapp/tests.py | martinmandina/InstagramApp | 89ab7b8e0b85d49f220fec3c55327dedea9f1b47 | [
"MIT"
] | null | null | null | instaapp/tests.py | martinmandina/InstagramApp | 89ab7b8e0b85d49f220fec3c55327dedea9f1b47 | [
"MIT"
] | null | null | null | instaapp/tests.py | martinmandina/InstagramApp | 89ab7b8e0b85d49f220fec3c55327dedea9f1b47 | [
"MIT"
] | null | null | null | from django.test import TestCase
from .models import Profile,Image,Comments
import datetime as dt
# Create your tests here.
| 15.875 | 42 | 0.795276 | 19 | 127 | 5.315789 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15748 | 127 | 7 | 43 | 18.142857 | 0.943925 | 0.181102 | 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 |
cfab7b4d1f8932a304f458648a1dfa8880c9d0fe | 146 | py | Python | tests/utils.py | tobricz/Expression | 3ff020fda97e8d0bc43467d64b4a9f481fc0c386 | [
"MIT"
] | 135 | 2020-11-30T02:32:32.000Z | 2022-03-29T14:29:34.000Z | tests/utils.py | tobricz/Expression | 3ff020fda97e8d0bc43467d64b4a9f481fc0c386 | [
"MIT"
] | 50 | 2020-11-30T02:42:33.000Z | 2022-03-19T15:39:58.000Z | tests/utils.py | tobricz/Expression | 3ff020fda97e8d0bc43467d64b4a9f481fc0c386 | [
"MIT"
] | 16 | 2020-12-15T17:15:36.000Z | 2022-03-16T08:38:57.000Z | class CustomException(Exception):
def __init__(self, message: str):
self.message = message
def throw(err: Exception):
raise err
| 18.25 | 37 | 0.684932 | 17 | 146 | 5.647059 | 0.647059 | 0.229167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219178 | 146 | 7 | 38 | 20.857143 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0 | 0.6 | 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 |
cfad240cbe2de63e774a45108d8024a830541cc9 | 3,820 | py | Python | sha.py | Jfghanimah/fpga-miner | fcf8fb4a7eed941de78b2517046cdcc7305e833d | [
"MIT"
] | 1 | 2021-12-19T18:11:25.000Z | 2021-12-19T18:11:25.000Z | sha.py | Jfghanimah/fpga-miner | fcf8fb4a7eed941de78b2517046cdcc7305e833d | [
"MIT"
] | null | null | null | sha.py | Jfghanimah/fpga-miner | fcf8fb4a7eed941de78b2517046cdcc7305e833d | [
"MIT"
] | null | null | null | import timeit
W = 32 #Number of bits in word
M = 1 << W
FF = M - 1 #0xFFFFFFFF (for performing addition mod 2**32)
#Constants from SHA256 definition
K_t = (0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5,
0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
0xd807aa98, 0x12835b01, 0x243185be, 0x550... | 41.978022 | 97 | 0.585602 | 587 | 3,820 | 3.781942 | 0.388416 | 0.223423 | 0.32973 | 0.432432 | 0.136937 | 0.133333 | 0.133333 | 0.133333 | 0.122523 | 0.113514 | 0 | 0.275151 | 0.263613 | 3,820 | 91 | 98 | 41.978022 | 0.514042 | 0.165183 | 0 | 0.030303 | 0 | 0 | 0.049571 | 0 | 0 | 0 | 0.310137 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.015152 | 0.015152 | 0.136364 | 0.060606 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cfbdc3d684ec4775e9200fbfec05b45b578aaee8 | 31 | py | Python | Constants.py | TmanHef/CentipedeRL | 400d6e71826a79c1a597b057b7543080d3f3c376 | [
"MIT"
] | 1 | 2020-08-12T02:43:57.000Z | 2020-08-12T02:43:57.000Z | Constants.py | TmanHef/CentipedeRL | 400d6e71826a79c1a597b057b7543080d3f3c376 | [
"MIT"
] | null | null | null | Constants.py | TmanHef/CentipedeRL | 400d6e71826a79c1a597b057b7543080d3f3c376 | [
"MIT"
] | null | null | null | take_action = 0
pass_action = 1 | 15.5 | 15 | 0.774194 | 6 | 31 | 3.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.16129 | 31 | 2 | 16 | 15.5 | 0.769231 | 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 |
cfe01a8804824c311ce3867e63b5c0e7159d9fc9 | 168 | py | Python | lib/app_blocker.py | esoadamo/simple-guardian-ad-hoc | d30afcff5ee14da10837908b531a0e04524e4c9a | [
"MIT"
] | null | null | null | lib/app_blocker.py | esoadamo/simple-guardian-ad-hoc | d30afcff5ee14da10837908b531a0e04524e4c9a | [
"MIT"
] | null | null | null | lib/app_blocker.py | esoadamo/simple-guardian-ad-hoc | d30afcff5ee14da10837908b531a0e04524e4c9a | [
"MIT"
] | null | null | null | class IPBlocker:
def block(self, ip: str) -> bool:
raise NotImplementedError()
def unblock(self, ip: str) -> bool:
raise NotImplementedError()
| 24 | 39 | 0.630952 | 18 | 168 | 5.888889 | 0.611111 | 0.113208 | 0.169811 | 0.245283 | 0.698113 | 0.698113 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255952 | 168 | 6 | 40 | 28 | 0.848 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cfe927bd7ca7e8f24aafb7b3f14f3e83885d3a2b | 27 | py | Python | src/sc3nb/resources/__init__.py | interactive-sonification/sc3nb | c6081ae01f4e72094b6cb6dbd9667278c8d21069 | [
"MIT"
] | 7 | 2021-08-02T12:57:13.000Z | 2022-02-16T08:54:23.000Z | src/sc3nb/resources/__init__.py | thomas-hermann/sc3nb | 7d7fbd9178fe804c5c8ddd0ddd4075579221b7c4 | [
"MIT"
] | 3 | 2019-08-09T17:56:18.000Z | 2020-10-24T13:05:47.000Z | src/sc3nb/resources/__init__.py | thomas-hermann/sc3nb | 7d7fbd9178fe804c5c8ddd0ddd4075579221b7c4 | [
"MIT"
] | 6 | 2019-04-18T17:25:42.000Z | 2020-04-28T09:43:33.000Z | """Module for resources"""
| 13.5 | 26 | 0.666667 | 3 | 27 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 27 | 1 | 27 | 27 | 0.75 | 0.740741 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 |
cff23a15ff1214959fa2e3d85c5cc6d66b104339 | 42 | py | Python | dvc/repo/install.py | kaiogu/dvc | ffa8fe5888dbbb3d37b3874562f99fd77d4bbcb7 | [
"Apache-2.0"
] | 3 | 2020-01-31T05:33:14.000Z | 2021-05-20T08:19:25.000Z | dvc/repo/install.py | kaiogu/dvc | ffa8fe5888dbbb3d37b3874562f99fd77d4bbcb7 | [
"Apache-2.0"
] | null | null | null | dvc/repo/install.py | kaiogu/dvc | ffa8fe5888dbbb3d37b3874562f99fd77d4bbcb7 | [
"Apache-2.0"
] | 1 | 2019-09-02T00:29:40.000Z | 2019-09-02T00:29:40.000Z | def install(self):
self.scm.install()
| 14 | 22 | 0.666667 | 6 | 42 | 4.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 42 | 2 | 23 | 21 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cff9d5239b3700f0d9618adc535bbe162bd56f31 | 65 | py | Python | setup.py | rioyokotalab/asdfghjkl | f435c1e2527162fb07512b4ce5058460aab238b9 | [
"MIT"
] | null | null | null | setup.py | rioyokotalab/asdfghjkl | f435c1e2527162fb07512b4ce5058460aab238b9 | [
"MIT"
] | null | null | null | setup.py | rioyokotalab/asdfghjkl | f435c1e2527162fb07512b4ce5058460aab238b9 | [
"MIT"
] | null | null | null | import setuptools
if __name__ == "main":
setuptools.setup()
| 13 | 22 | 0.692308 | 7 | 65 | 5.857143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184615 | 65 | 4 | 23 | 16.25 | 0.773585 | 0 | 0 | 0 | 0 | 0 | 0.061538 | 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 |
320512f0c69af9c1065d29be90296020700656ad | 141 | py | Python | testing/pkg1/patchingmod_main.py | mxr/pymonkey | f2e55590c7064019e928eddc41dad5d288722ce6 | [
"MIT"
] | 4 | 2018-04-02T18:10:02.000Z | 2019-09-28T21:43:56.000Z | testing/pkg1/patchingmod_main.py | mxr/pymonkey | f2e55590c7064019e928eddc41dad5d288722ce6 | [
"MIT"
] | 4 | 2016-05-05T02:08:59.000Z | 2017-08-15T01:33:19.000Z | testing/pkg1/patchingmod_main.py | mxr/pymonkey | f2e55590c7064019e928eddc41dad5d288722ce6 | [
"MIT"
] | 1 | 2018-04-09T15:14:33.000Z | 2018-04-09T15:14:33.000Z | from pymonkey import make_entry_point
main = make_entry_point(('patchingmod',), 'targetmod')
if __name__ == '__main__':
exit(main())
| 15.666667 | 54 | 0.70922 | 17 | 141 | 5.176471 | 0.705882 | 0.204545 | 0.318182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148936 | 141 | 8 | 55 | 17.625 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0.198582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 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 |
320ed9f71383693ed5738f144db75650764b8b50 | 79 | py | Python | test_custom_user_subclass/__init__.py | montebond/pyp | 9a0356f8ade44fd813e03d54f5b934336c6b6656 | [
"BSD-3-Clause"
] | 238 | 2015-01-05T16:51:00.000Z | 2022-03-31T16:06:19.000Z | test_custom_user_subclass/__init__.py | montebond/pyp | 9a0356f8ade44fd813e03d54f5b934336c6b6656 | [
"BSD-3-Clause"
] | 32 | 2015-02-20T18:10:15.000Z | 2022-03-29T18:54:04.000Z | test_custom_user_subclass/__init__.py | montebond/pyp | 9a0356f8ade44fd813e03d54f5b934336c6b6656 | [
"BSD-3-Clause"
] | 72 | 2015-01-05T16:56:24.000Z | 2022-02-27T17:34:48.000Z | default_app_config = 'test_custom_user_subclass.apps.CustomUserSubclassConfig'
| 39.5 | 78 | 0.898734 | 9 | 79 | 7.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037975 | 79 | 1 | 79 | 79 | 0.868421 | 0 | 0 | 0 | 0 | 0 | 0.696203 | 0.696203 | 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 |
320ee976739f42fedf893794dfa5031aa4b5791f | 1,488 | py | Python | app/models.py | pianomanfrazier/simple-blog | e3e1058c83726ec49273323625fcc3e721618d3d | [
"MIT"
] | null | null | null | app/models.py | pianomanfrazier/simple-blog | e3e1058c83726ec49273323625fcc3e721618d3d | [
"MIT"
] | null | null | null | app/models.py | pianomanfrazier/simple-blog | e3e1058c83726ec49273323625fcc3e721618d3d | [
"MIT"
] | null | null | null | from datetime import datetime
from app import db
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(64), index=True, unique=True)
email = db.Column(db.String(64))
class Category(db.Model):
category = db.Column(db.String(32), primary_key=T... | 38.153846 | 75 | 0.645161 | 216 | 1,488 | 4.398148 | 0.217593 | 0.202105 | 0.252632 | 0.202105 | 0.629474 | 0.450526 | 0.414737 | 0.267368 | 0.267368 | 0.267368 | 0 | 0.023018 | 0.211694 | 1,488 | 38 | 76 | 39.157895 | 0.786871 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 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 |
321b20f9d6d0aa3b0ffc1a6053b57cbad71ac3d1 | 40 | py | Python | lspy/__init__.py | liushilive/PythonTutor | 967cdc842fcfef7477110889e2d947116a2448c7 | [
"MIT"
] | null | null | null | lspy/__init__.py | liushilive/PythonTutor | 967cdc842fcfef7477110889e2d947116a2448c7 | [
"MIT"
] | null | null | null | lspy/__init__.py | liushilive/PythonTutor | 967cdc842fcfef7477110889e2d947116a2448c7 | [
"MIT"
] | 3 | 2020-08-30T06:00:06.000Z | 2022-01-06T12:36:43.000Z | __version__ = "0.0.4"
__author__ = "刘士"
| 13.333333 | 21 | 0.65 | 6 | 40 | 3 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 0.15 | 40 | 2 | 22 | 20 | 0.441176 | 0 | 0 | 0 | 0 | 0 | 0.175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5c5070cb18878ecd7f37417f5ff3abcf765afa7a | 222 | py | Python | tests/template_backends/test_django.py | arachnegl/django | c4e796aa1bab70ee66151d24a061af811e08ad08 | [
"BSD-3-Clause"
] | 1 | 2019-01-14T10:58:43.000Z | 2019-01-14T10:58:43.000Z | tests/template_backends/test_django.py | arachnegl/django | c4e796aa1bab70ee66151d24a061af811e08ad08 | [
"BSD-3-Clause"
] | null | null | null | tests/template_backends/test_django.py | arachnegl/django | c4e796aa1bab70ee66151d24a061af811e08ad08 | [
"BSD-3-Clause"
] | null | null | null | from django.template.backends.django import DjangoTemplates
from .test_dummy import TemplateStringsTests
class DjangoTemplatesTests(TemplateStringsTests):
engine_class = DjangoTemplates
backend_name = 'django'
| 22.2 | 59 | 0.824324 | 21 | 222 | 8.571429 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126126 | 222 | 9 | 60 | 24.666667 | 0.927835 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 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 |
5c63298d5f399fa1ac8a31fab042f54823289e28 | 16,267 | py | Python | RI/flask_server/tapi_server/models/tapi_connectivity_resilience_constraint.py | arthurMll/TAPI | e1171bb139c6791a953af09cfc2bc7ad928da73d | [
"Apache-2.0"
] | 57 | 2018-04-09T08:56:18.000Z | 2022-03-23T08:31:06.000Z | RI/flask_server/tapi_server/models/tapi_connectivity_resilience_constraint.py | arthurMll/TAPI | e1171bb139c6791a953af09cfc2bc7ad928da73d | [
"Apache-2.0"
] | 143 | 2016-06-08T04:09:54.000Z | 2018-02-23T10:45:59.000Z | RI/flask_server/tapi_server/models/tapi_connectivity_resilience_constraint.py | arthurMll/TAPI | e1171bb139c6791a953af09cfc2bc7ad928da73d | [
"Apache-2.0"
] | 64 | 2018-03-07T07:55:17.000Z | 2022-03-28T07:14:28.000Z | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from tapi_server.models.base_model_ import Model
from tapi_server.models.tapi_common_layer_protocol_name import TapiCommonLayerProtocolName # noqa: F401,E501
from tapi... | 47.150725 | 391 | 0.733018 | 1,813 | 16,267 | 6.296746 | 0.112521 | 0.030484 | 0.206027 | 0.050105 | 0.8072 | 0.70918 | 0.630168 | 0.523038 | 0.492554 | 0.402943 | 0 | 0.009387 | 0.214114 | 16,267 | 344 | 392 | 47.287791 | 0.883605 | 0.58634 | 0 | 0.282051 | 0 | 0 | 0.112441 | 0.052789 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205128 | false | 0 | 0.076923 | 0 | 0.393162 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5c75c79e7b141cc80ac12483d8bd267f8a675134 | 110 | py | Python | Lampi/main.py | Ooyekunle/dummytestFeb172020 | fbf0f966d38a90af4fede4c1deef341bf9f7d8c3 | [
"RSA-MD"
] | null | null | null | Lampi/main.py | Ooyekunle/dummytestFeb172020 | fbf0f966d38a90af4fede4c1deef341bf9f7d8c3 | [
"RSA-MD"
] | null | null | null | Lampi/main.py | Ooyekunle/dummytestFeb172020 | fbf0f966d38a90af4fede4c1deef341bf9f7d8c3 | [
"RSA-MD"
] | null | null | null | #!/usr/bin/env python3
from lampi.lampi_app import LampiApp
if __name__ == "__main__":
LampiApp().run()
| 15.714286 | 36 | 0.7 | 15 | 110 | 4.533333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 0.154545 | 110 | 6 | 37 | 18.333333 | 0.72043 | 0.190909 | 0 | 0 | 0 | 0 | 0.090909 | 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 |
5c7f2b4d05c98efc722f2031521e7206c2e38a4e | 86 | py | Python | microgrid/__init__.py | bcornelusse/microgrid-bench | 3f9a8a99f12b580c81f52bb146a5f47f08a032c0 | [
"BSD-2-Clause"
] | 10 | 2017-10-11T11:50:30.000Z | 2021-08-02T20:44:42.000Z | microgrid/__init__.py | bcornelusse/microgrid-bench | 3f9a8a99f12b580c81f52bb146a5f47f08a032c0 | [
"BSD-2-Clause"
] | null | null | null | microgrid/__init__.py | bcornelusse/microgrid-bench | 3f9a8a99f12b580c81f52bb146a5f47f08a032c0 | [
"BSD-2-Clause"
] | 1 | 2017-10-11T11:49:52.000Z | 2017-10-11T11:49:52.000Z | """
The microgrid package organizes the test-bench functionalities in subpackages.
""" | 28.666667 | 78 | 0.790698 | 10 | 86 | 6.8 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 86 | 3 | 79 | 28.666667 | 0.894737 | 0.906977 | 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 |
5c7f7deeb931e035995b8a071503bf7f94cb090c | 89 | py | Python | epsilon/apps.py | atlednolispe/blog | d3926e424d544f3e9a3805b16a15072ac6c6a780 | [
"MIT"
] | null | null | null | epsilon/apps.py | atlednolispe/blog | d3926e424d544f3e9a3805b16a15072ac6c6a780 | [
"MIT"
] | 7 | 2020-06-05T16:37:46.000Z | 2022-03-11T23:11:36.000Z | epsilon/apps.py | atlednolispe/blog | d3926e424d544f3e9a3805b16a15072ac6c6a780 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class EpsilonConfig(AppConfig):
name = 'epsilon'
| 14.833333 | 33 | 0.752809 | 10 | 89 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168539 | 89 | 5 | 34 | 17.8 | 0.905405 | 0 | 0 | 0 | 0 | 0 | 0.078652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
7a31027b5ed0e4096f71764a61c58585d6898d31 | 116 | py | Python | kigo/bpmn/elements/definitions.py | AsyncMicroStack/kigo-bpmn | dfe8c312399f86067393973a0c28a8695bb5e07a | [
"Apache-2.0"
] | null | null | null | kigo/bpmn/elements/definitions.py | AsyncMicroStack/kigo-bpmn | dfe8c312399f86067393973a0c28a8695bb5e07a | [
"Apache-2.0"
] | null | null | null | kigo/bpmn/elements/definitions.py | AsyncMicroStack/kigo-bpmn | dfe8c312399f86067393973a0c28a8695bb5e07a | [
"Apache-2.0"
] | null | null | null | from kigo.bpmn.elements.element import Element
class BpmnDefinitions(Element):
item_name = "bpmn:definitions"
| 19.333333 | 46 | 0.784483 | 14 | 116 | 6.428571 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12931 | 116 | 5 | 47 | 23.2 | 0.891089 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 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 |
7a397491b82c42c5a64d723d577f9c2c7718bf3a | 187 | py | Python | testPins.py | brammieman1/MazeSolver | 22d5a91e95fe88aecd4d4b1f75218d628d2e5fe4 | [
"MIT"
] | null | null | null | testPins.py | brammieman1/MazeSolver | 22d5a91e95fe88aecd4d4b1f75218d628d2e5fe4 | [
"MIT"
] | null | null | null | testPins.py | brammieman1/MazeSolver | 22d5a91e95fe88aecd4d4b1f75218d628d2e5fe4 | [
"MIT"
] | null | null | null | import wiringpi2 as wiringpi
import time
wiringpi.wiringPiSetupGpio()
wiringpi.pinMode(17,1)
wiringpi.digitalWrite(17,1)
time.sleep(4)
wiringpi.digitalWrite(17,0)
wiringpi.pinMode(17,0)
| 18.7 | 28 | 0.812834 | 27 | 187 | 5.62963 | 0.481481 | 0.197368 | 0.223684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08046 | 0.069519 | 187 | 9 | 29 | 20.777778 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7a60e3f7182adc1bb57a1b4a891e3d337828847a | 676 | py | Python | Proj1/test.py | sebemery/EE559-DeepLearning-MiniProjects | 34ea114884e2e4f1416d63fa53466619e6a5c5fd | [
"MIT"
] | null | null | null | Proj1/test.py | sebemery/EE559-DeepLearning-MiniProjects | 34ea114884e2e4f1416d63fa53466619e6a5c5fd | [
"MIT"
] | null | null | null | Proj1/test.py | sebemery/EE559-DeepLearning-MiniProjects | 34ea114884e2e4f1416d63fa53466619e6a5c5fd | [
"MIT"
] | 1 | 2020-03-18T18:58:02.000Z | 2020-03-18T18:58:02.000Z | from models.Nets import *
from models.Basic import *
from models.Inception_Net import *
from models.Le_Net import *
from utils.dlc_practical_prologue import *
from utils.Evaluate import *
from utils.grid_search import *
from utils.loader import *
from utils.metrics import *
from utils.plot import *
from utils.training ... | 30.727273 | 117 | 0.683432 | 91 | 676 | 4.835165 | 0.549451 | 0.227273 | 0.238636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021195 | 0.232249 | 676 | 21 | 118 | 32.190476 | 0.82659 | 0 | 0 | 0 | 0 | 0 | 0.011834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.705882 | 0 | 0.705882 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
7a685ed0387ff3acf55274c958313caca3731d6f | 209 | py | Python | ADVECTOR/enums/forcings.py | john-science/ADVECTOR | 5c5ca7595c2c051f1a088b1f0e694936c3da3610 | [
"MIT"
] | 7 | 2021-09-07T02:32:00.000Z | 2022-01-15T11:35:02.000Z | ADVECTOR/enums/forcings.py | TheOceanCleanupAlgorithms/ADVECT | e27ce15da6a2fcbccbe363f8c2415b0122696d1f | [
"MIT"
] | 1 | 2021-12-24T15:16:26.000Z | 2021-12-24T15:16:26.000Z | ADVECTOR/enums/forcings.py | TheOceanCleanupAlgorithms/ADVECT | e27ce15da6a2fcbccbe363f8c2415b0122696d1f | [
"MIT"
] | 1 | 2021-12-12T15:13:52.000Z | 2021-12-12T15:13:52.000Z | from enum import Enum
class Forcing(Enum):
"""use .name for variable name, .value for human readable name"""
current = "current"
wind = "10-meter wind"
seawater_density = "seawater density"
| 20.9 | 69 | 0.674641 | 27 | 209 | 5.185185 | 0.666667 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01227 | 0.220096 | 209 | 9 | 70 | 23.222222 | 0.846626 | 0.282297 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
7a6de493fc92b2d2c1df09e619cb6257aedb5b88 | 101 | py | Python | predict_emotions.py | fahsan/EmotiFind | aa3071d296cb61a91eea5e0139a9cbeb82b7d14b | [
"MIT"
] | null | null | null | predict_emotions.py | fahsan/EmotiFind | aa3071d296cb61a91eea5e0139a9cbeb82b7d14b | [
"MIT"
] | null | null | null | predict_emotions.py | fahsan/EmotiFind | aa3071d296cb61a91eea5e0139a9cbeb82b7d14b | [
"MIT"
] | 1 | 2018-05-12T22:54:49.000Z | 2018-05-12T22:54:49.000Z | #Takes as input a numpy array of 3 parameters per article and a output array of emotions per text.
| 33.666667 | 99 | 0.772277 | 19 | 101 | 4.105263 | 0.789474 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0125 | 0.207921 | 101 | 2 | 100 | 50.5 | 0.9625 | 0.960396 | 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 |
7a7af5fdb993c98e171a62bd93ae82a0d3f1b8bd | 291 | py | Python | tests/globals/documents/misc_documents.py | RelevanceAI/RelevanceAI | a0542f35153d9c842f3d2cd0955d6b07f6dfc07b | [
"Apache-2.0"
] | 21 | 2021-11-23T13:01:36.000Z | 2022-03-23T03:45:30.000Z | tests/globals/documents/misc_documents.py | RelevanceAI/RelevanceAI | a0542f35153d9c842f3d2cd0955d6b07f6dfc07b | [
"Apache-2.0"
] | 217 | 2021-11-23T00:11:01.000Z | 2022-03-30T08:11:49.000Z | tests/globals/documents/misc_documents.py | RelevanceAI/RelevanceAI | a0542f35153d9c842f3d2cd0955d6b07f6dfc07b | [
"Apache-2.0"
] | 4 | 2022-01-04T01:48:30.000Z | 2022-02-11T03:19:32.000Z | import pytest
from typing import List
from tests.globals.constants import NUMBER_OF_DOCUMENTS
from tests.globals.document import dataclass_document
@pytest.fixture(scope="session")
def dataclass_documents() -> List:
return [dataclass_document() for _ in range(NUMBER_OF_DOCUMENTS)]
| 22.384615 | 69 | 0.80756 | 38 | 291 | 5.973684 | 0.552632 | 0.079295 | 0.140969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116838 | 291 | 12 | 70 | 24.25 | 0.883268 | 0 | 0 | 0 | 0 | 0 | 0.024055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.571429 | 0.142857 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
7a8f9fda09004030cc2c8b33de4dfe7521550783 | 261 | py | Python | backend/config/settings/environments/__init__.py | offurface/logistic-company | 1e98b1191fd9ee63fbd9d6c2eef1354822e53d14 | [
"MIT"
] | null | null | null | backend/config/settings/environments/__init__.py | offurface/logistic-company | 1e98b1191fd9ee63fbd9d6c2eef1354822e53d14 | [
"MIT"
] | null | null | null | backend/config/settings/environments/__init__.py | offurface/logistic-company | 1e98b1191fd9ee63fbd9d6c2eef1354822e53d14 | [
"MIT"
] | null | null | null | from .common import *
from ..components import env
if DEBUG:
SECRET_KEY = env('SECRET_KEY', default='-qf)o7hs$jk@b8o)zidroo9wskuf^95m2$@k)5^@hl-=)349-7')
from .development import *
else:
SECRET_KEY = env('SECRET_KEY')
from .production import *
| 26.1 | 96 | 0.685824 | 38 | 261 | 4.605263 | 0.631579 | 0.205714 | 0.137143 | 0.205714 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050459 | 0.164751 | 261 | 9 | 97 | 29 | 0.752294 | 0 | 0 | 0 | 0 | 0.125 | 0.268199 | 0.191571 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
7aa642c92098c5cae5a9ed0435a274be4705e211 | 245 | py | Python | Lista09/ex013.py | Guilherme-Schwann/Listas-de-Exercicios-UFV-CCF-110 | f306c8dc6385ee8c9580e687afa16a49ace68f95 | [
"MIT"
] | 2 | 2021-09-05T22:29:33.000Z | 2021-09-09T00:13:16.000Z | Lista09/ex013.py | Guilherme-Schwann/Listas-de-Exercicios-UFV-CCF-110 | f306c8dc6385ee8c9580e687afa16a49ace68f95 | [
"MIT"
] | null | null | null | Lista09/ex013.py | Guilherme-Schwann/Listas-de-Exercicios-UFV-CCF-110 | f306c8dc6385ee8c9580e687afa16a49ace68f95 | [
"MIT"
] | null | null | null | N = int(input('Ordem da matriz: '))
A = [[int(input()) for i in range(N)] for j in range(N)]
At = [[0 for i in range(N)] for j in range(N)]
for i in range(N):
for j in range(N):
At[i][j] = A[j][i]
for i in range(N):
print(At[i])
| 27.222222 | 56 | 0.542857 | 55 | 245 | 2.418182 | 0.272727 | 0.368421 | 0.421053 | 0.330827 | 0.661654 | 0.571429 | 0.571429 | 0.571429 | 0.571429 | 0.571429 | 0 | 0.005405 | 0.244898 | 245 | 8 | 57 | 30.625 | 0.713514 | 0 | 0 | 0.25 | 0 | 0 | 0.069388 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 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 |
7abefe6d36851192eaf9f176b148fc64e01f2ed3 | 156 | py | Python | nets/__init__.py | zhuofalin/Pytorch_Mask_R-CNN | c940fb0f238cf75dca9e90c3f4433adee42650af | [
"Apache-2.0"
] | 2 | 2022-01-11T16:18:26.000Z | 2022-01-23T05:56:42.000Z | utils/__init__.py | zhuofalin/Pytorch_Mask_R-CNN | c940fb0f238cf75dca9e90c3f4433adee42650af | [
"Apache-2.0"
] | null | null | null | utils/__init__.py | zhuofalin/Pytorch_Mask_R-CNN | c940fb0f238cf75dca9e90c3f4433adee42650af | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
'''
@Project :mask_rcnn_pytorch
@File :__init__.py.py
@Author :zhuofalin
@Date :2021/11/24 21:18
'''
| 17.333333 | 28 | 0.615385 | 23 | 156 | 3.913043 | 0.956522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100775 | 0.173077 | 156 | 8 | 29 | 19.5 | 0.596899 | 0.923077 | 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 |
8f965f29b335fd5b6b8629d0ff9d0ab59a78971e | 167 | py | Python | 10-Days-of-Statistics/Day 0/weighted-mean.py | vivekec/hackerrank | 71b27a098f8432cd9ca13c6a93e9fd1c246dc8d3 | [
"MIT"
] | null | null | null | 10-Days-of-Statistics/Day 0/weighted-mean.py | vivekec/hackerrank | 71b27a098f8432cd9ca13c6a93e9fd1c246dc8d3 | [
"MIT"
] | null | null | null | 10-Days-of-Statistics/Day 0/weighted-mean.py | vivekec/hackerrank | 71b27a098f8432cd9ca13c6a93e9fd1c246dc8d3 | [
"MIT"
] | null | null | null | N = int(input())
X = list(map(int, input().split()))
W = list(map(int, input().split()))
out = 0
for i in range(N):
out += X[i] * W[i]
print(round(out/sum(W),1))
| 18.555556 | 35 | 0.550898 | 33 | 167 | 2.787879 | 0.545455 | 0.26087 | 0.217391 | 0.326087 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.173653 | 167 | 8 | 36 | 20.875 | 0.652174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 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 |
8f98fada61d1cea79e871415ec49c42c654a446a | 240 | py | Python | code/python/tests/data/load/rvk_test.py | slub/docsa | c33a8243a60fbccbcd0a6418a59337e4ed39dc75 | [
"Apache-2.0"
] | 11 | 2022-01-05T17:19:10.000Z | 2022-02-14T18:57:37.000Z | code/python/tests/data/load/rvk_test.py | slub/docsa | c33a8243a60fbccbcd0a6418a59337e4ed39dc75 | [
"Apache-2.0"
] | null | null | null | code/python/tests/data/load/rvk_test.py | slub/docsa | c33a8243a60fbccbcd0a6418a59337e4ed39dc75 | [
"Apache-2.0"
] | null | null | null | """Tests RVK data source."""
from slub_docsa.data.load.rvk import read_rvk_subjects
def test_rvk_first_level_classes():
"""Check that there are 34 first level classes in RVK."""
assert len(list(read_rvk_subjects(depth=1))) == 34
| 26.666667 | 61 | 0.733333 | 39 | 240 | 4.282051 | 0.692308 | 0.083832 | 0.179641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0.145833 | 240 | 8 | 62 | 30 | 0.790244 | 0.308333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
8fb3efefb1acc2f84cef71783ae8bbf501a5f8f1 | 81 | py | Python | day05/t05/apps.py | SunShuoJia/pyproject | 71f3cada463fd90243b2cdac8c982fb622f9ef9c | [
"Apache-2.0"
] | null | null | null | day05/t05/apps.py | SunShuoJia/pyproject | 71f3cada463fd90243b2cdac8c982fb622f9ef9c | [
"Apache-2.0"
] | null | null | null | day05/t05/apps.py | SunShuoJia/pyproject | 71f3cada463fd90243b2cdac8c982fb622f9ef9c | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class T05Config(AppConfig):
name = 't05'
| 13.5 | 33 | 0.728395 | 10 | 81 | 5.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 0.185185 | 81 | 5 | 34 | 16.2 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 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 |
8fd08194d8b2f0502b3827d5a45622a36c8a6856 | 80 | py | Python | ideal/contrib/django/__init__.py | mvantellingen/python-ideal | fe1254ff8b8199791855b8467c80cca3563d6f68 | [
"MIT"
] | 8 | 2018-02-12T10:22:57.000Z | 2019-11-14T16:10:28.000Z | ideal/contrib/django/__init__.py | mvantellingen/python-ideal | fe1254ff8b8199791855b8467c80cca3563d6f68 | [
"MIT"
] | 5 | 2018-02-12T09:15:46.000Z | 2018-02-23T12:43:29.000Z | ideal/contrib/django/__init__.py | mvantellingen/python-ideal | fe1254ff8b8199791855b8467c80cca3563d6f68 | [
"MIT"
] | 1 | 2018-02-15T12:29:05.000Z | 2018-02-15T12:29:05.000Z | # Moved Django integration to a seperate module to serve as Django's app name.
| 40 | 79 | 0.775 | 14 | 80 | 4.428571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 80 | 1 | 80 | 80 | 0.953846 | 0.95 | 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 |
8fd10d4b55b2a58a75c683ed15c835d168e08322 | 89 | py | Python | renting/apps.py | Ishikashah2510/nirvaas_main | 5eaf92756d06261a7f555b10aad864a34c9e761b | [
"MIT"
] | null | null | null | renting/apps.py | Ishikashah2510/nirvaas_main | 5eaf92756d06261a7f555b10aad864a34c9e761b | [
"MIT"
] | null | null | null | renting/apps.py | Ishikashah2510/nirvaas_main | 5eaf92756d06261a7f555b10aad864a34c9e761b | [
"MIT"
] | 3 | 2020-12-30T11:35:22.000Z | 2021-01-07T13:10:26.000Z | from django.apps import AppConfig
class RentingConfig(AppConfig):
name = 'renting'
| 14.833333 | 33 | 0.752809 | 10 | 89 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168539 | 89 | 5 | 34 | 17.8 | 0.905405 | 0 | 0 | 0 | 0 | 0 | 0.078652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
8fd15d8d08dc9ac65b46cdb43fd15e5581c97ffc | 127 | py | Python | stubs/asttokens/util.py | jamescooke/flake8-aaa | 9df248e10538946531b67da4564bb229a91baece | [
"MIT"
] | 44 | 2018-04-08T21:25:43.000Z | 2022-01-20T14:28:16.000Z | stubs/asttokens/util.py | jamescooke/flake8-aaa | 9df248e10538946531b67da4564bb229a91baece | [
"MIT"
] | 72 | 2018-03-30T14:30:48.000Z | 2022-03-31T16:18:16.000Z | stubs/asttokens/util.py | jamescooke/flake8-aaa | 9df248e10538946531b67da4564bb229a91baece | [
"MIT"
] | 1 | 2018-10-17T18:49:25.000Z | 2018-10-17T18:49:25.000Z | import collections
class Token(collections.namedtuple('Token', 'type string start end line index startpos endpos')):
...
| 21.166667 | 97 | 0.740157 | 15 | 127 | 6.266667 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149606 | 127 | 5 | 98 | 25.4 | 0.87037 | 0 | 0 | 0 | 0 | 0 | 0.417323 | 0 | 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 |
8fe9c1240cc746c7e927be39f2fe9727d0339c7f | 88 | py | Python | segme/metric/__init__.py | shkarupa-alex/segme | d5bc0043f9e709c8ccaf8949d662bc6fd6144006 | [
"MIT"
] | 2 | 2021-05-25T18:53:00.000Z | 2021-05-26T12:11:41.000Z | segme/metric/__init__.py | shkarupa-alex/segme | d5bc0043f9e709c8ccaf8949d662bc6fd6144006 | [
"MIT"
] | null | null | null | segme/metric/__init__.py | shkarupa-alex/segme | d5bc0043f9e709c8ccaf8949d662bc6fd6144006 | [
"MIT"
] | 2 | 2021-11-21T02:39:37.000Z | 2021-12-08T07:26:56.000Z | from .conn import Conn
from .grad import Grad
from .mse import MSE
from .sad import SAD
| 17.6 | 22 | 0.772727 | 16 | 88 | 4.25 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 88 | 4 | 23 | 22 | 0.944444 | 0 | 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 |
890c561bf0aec0a3506eddd281bfa30bb906a86e | 92 | py | Python | greek_app/apps.py | HCDigitalScholarship/GreekPal | 15a99b1dae971edef0cc90be064fb7cb291c317b | [
"MIT"
] | null | null | null | greek_app/apps.py | HCDigitalScholarship/GreekPal | 15a99b1dae971edef0cc90be064fb7cb291c317b | [
"MIT"
] | 28 | 2019-10-08T05:36:39.000Z | 2022-01-13T02:54:15.000Z | greek_app/apps.py | HCDigitalScholarship/GreekPal | 15a99b1dae971edef0cc90be064fb7cb291c317b | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class GreekAppConfig(AppConfig):
name = 'greek_app'
| 15.333333 | 33 | 0.76087 | 11 | 92 | 6.272727 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163043 | 92 | 5 | 34 | 18.4 | 0.896104 | 0 | 0 | 0 | 0 | 0 | 0.097826 | 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 |
8f7b47f31150135672ffa4570db36af3997c8bdf | 47 | py | Python | biker_vasek.py | nikitadragaa/--- | 61cfdd2c078e221e2412a1e776ae8e9afb840562 | [
"MIT"
] | 1 | 2020-11-26T19:12:09.000Z | 2020-11-26T19:12:09.000Z | biker_vasek.py | nikitadragaa/informatics_first_module | 61cfdd2c078e221e2412a1e776ae8e9afb840562 | [
"MIT"
] | null | null | null | biker_vasek.py | nikitadragaa/informatics_first_module | 61cfdd2c078e221e2412a1e776ae8e9afb840562 | [
"MIT"
] | null | null | null | a=int(input())
b=int(input())
print((a*b)%109)
| 11.75 | 16 | 0.595745 | 10 | 47 | 2.8 | 0.6 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 0.06383 | 47 | 3 | 17 | 15.666667 | 0.568182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8f8117fc5388acb6f8832bf7311ec1881c023df3 | 81 | py | Python | pks/apps.py | xingyifei2016/clusterCAD | fb139edc90e3b963ac6bfc9f6890f0a4e4f356d6 | [
"BSD-3-Clause-LBNL"
] | 7 | 2018-11-06T00:04:47.000Z | 2021-08-05T04:37:12.000Z | pks/apps.py | xingyifei2016/clusterCAD | fb139edc90e3b963ac6bfc9f6890f0a4e4f356d6 | [
"BSD-3-Clause-LBNL"
] | 26 | 2017-08-11T21:51:46.000Z | 2022-03-11T23:18:25.000Z | pks/apps.py | xingyifei2016/clusterCAD | fb139edc90e3b963ac6bfc9f6890f0a4e4f356d6 | [
"BSD-3-Clause-LBNL"
] | 7 | 2017-08-16T17:28:40.000Z | 2022-03-02T00:07:00.000Z | from django.apps import AppConfig
class PksConfig(AppConfig):
name = 'pks'
| 13.5 | 33 | 0.728395 | 10 | 81 | 5.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 81 | 5 | 34 | 16.2 | 0.893939 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 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 |
56e0b3bab19585c01401fc4f7a552420d5771661 | 4,066 | py | Python | tsai/models/ROCKET.py | radi-cho/tsai | 32f24d55ee58df1a14d1e68618f230097a266c77 | [
"Apache-2.0"
] | 1 | 2022-01-02T18:21:27.000Z | 2022-01-02T18:21:27.000Z | tsai/models/ROCKET.py | radi-cho/tsai | 32f24d55ee58df1a14d1e68618f230097a266c77 | [
"Apache-2.0"
] | 31 | 2021-12-01T23:08:51.000Z | 2021-12-29T02:59:49.000Z | tsai/models/ROCKET.py | radi-cho/tsai | 32f24d55ee58df1a14d1e68618f230097a266c77 | [
"Apache-2.0"
] | 1 | 2022-03-13T16:47:04.000Z | 2022-03-13T16:47:04.000Z | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/111_models.ROCKET.ipynb (unless otherwise specified).
__all__ = ['RocketClassifier', 'load_rocket', 'RocketRegressor']
# Cell
import sklearn
from sklearn.linear_model import RidgeClassifierCV, RidgeCV
from sklearn.metrics import make_scorer
from ..imports import *
from ... | 42.8 | 143 | 0.657649 | 479 | 4,066 | 5.448852 | 0.2881 | 0.030651 | 0.021456 | 0.029119 | 0.748659 | 0.723372 | 0.701149 | 0.661303 | 0.661303 | 0.661303 | 0 | 0.011039 | 0.242499 | 4,066 | 95 | 144 | 42.8 | 0.836364 | 0.266847 | 0 | 0.603774 | 1 | 0 | 0.129249 | 0.024788 | 0 | 0 | 0 | 0 | 0 | 1 | 0.132075 | false | 0 | 0.226415 | 0.037736 | 0.45283 | 0.037736 | 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 |
56fd5170b7684adf06467bcddc3847c7bea4ee50 | 3,438 | py | Python | DailyProgrammer/DP20150422B.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | 2 | 2020-12-23T18:59:22.000Z | 2021-04-14T13:16:09.000Z | DailyProgrammer/DP20150422B.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | null | null | null | DailyProgrammer/DP20150422B.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | null | null | null | """
[2015-04-22] Challenge #211 [Intermediate] Ogre Maze
https://www.reddit.com/r/dailyprogrammer/comments/33hwwf/20150422_challenge_211_intermediate_ogre_maze/
#Description:
Today we are going to solve a maze. What? Again? Come on, Simpsons did it. Yah okay so we always pick a hero to walk a
maze. This time our her... | 31.254545 | 119 | 0.617219 | 577 | 3,438 | 3.655113 | 0.381283 | 0.039829 | 0.051209 | 0.058796 | 0.075391 | 0.045045 | 0.045045 | 0.045045 | 0.045045 | 0.044571 | 0 | 0.018275 | 0.204188 | 3,438 | 109 | 120 | 31.541284 | 0.752558 | 1.058464 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0.25 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
7122a8e74eb4212d1e6aaea222109cbc1f0c061a | 18,717 | py | Python | tests/src/python/test_qgssearchwidgetwrapper.py | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | tests/src/python/test_qgssearchwidgetwrapper.py | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | tests/src/python/test_qgssearchwidgetwrapper.py | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | 1 | 2021-12-25T08:40:30.000Z | 2021-12-25T08:40:30.000Z | # -*- coding: utf-8 -*-
"""QGIS Unit tests for QgsSearchWidgetWrapper.
.. note:: This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version... | 54.095376 | 131 | 0.689534 | 1,763 | 18,717 | 7.290414 | 0.133863 | 0.120205 | 0.126974 | 0.253948 | 0.769315 | 0.728857 | 0.705905 | 0.651988 | 0.573563 | 0.435307 | 0 | 0.024355 | 0.18176 | 18,717 | 345 | 132 | 54.252174 | 0.814887 | 0.061228 | 0 | 0.382239 | 0 | 0 | 0.124929 | 0.024266 | 0 | 0 | 0 | 0 | 0.405405 | 1 | 0.027027 | false | 0 | 0.023166 | 0 | 0.073359 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
712af4c8d551dfa14800db9ae1b75dfc39f56d2e | 3,692 | py | Python | eval_model.py | yaojin17/adversarial-project | 76af16f126ae701fb3a0a83152b37cbec5e7b28f | [
"Apache-2.0"
] | null | null | null | eval_model.py | yaojin17/adversarial-project | 76af16f126ae701fb3a0a83152b37cbec5e7b28f | [
"Apache-2.0"
] | null | null | null | eval_model.py | yaojin17/adversarial-project | 76af16f126ae701fb3a0a83152b37cbec5e7b28f | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision
from torchvision import datasets, transforms
from utils import prepare_cifar
from fgsm_attack import FGSMAttack
from tqdm import tqdm, trange
from pgd20 import pgd20_attack
from model import get_model_for_attack
def eval_model(mode... | 38.458333 | 120 | 0.578548 | 499 | 3,692 | 4.136273 | 0.152305 | 0.031008 | 0.053295 | 0.087209 | 0.791667 | 0.743702 | 0.728198 | 0.670058 | 0.670058 | 0.652616 | 0 | 0.018961 | 0.285753 | 3,692 | 95 | 121 | 38.863158 | 0.763747 | 0.03467 | 0 | 0.764706 | 0 | 0.023529 | 0.068539 | 0.059831 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035294 | false | 0 | 0.117647 | 0 | 0.188235 | 0 | 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 |
8531b1ab7623355d9bad7b738e3d301375faa339 | 75 | py | Python | Raffle/__init__.py | duanegtr/legendv3-cogs | ffde1452a75ad42b4f6511b612ce486e96fcd6de | [
"MIT"
] | 10 | 2020-05-25T13:32:30.000Z | 2022-02-01T12:33:07.000Z | Raffle/__init__.py | darcyle/tl-cogs | 6b13c4a6247115571c5a2bb6ea98ed1fe2d44d79 | [
"MIT"
] | 2 | 2020-05-23T22:53:07.000Z | 2020-08-09T11:28:12.000Z | Raffle/__init__.py | darcyle/tl-cogs | 6b13c4a6247115571c5a2bb6ea98ed1fe2d44d79 | [
"MIT"
] | 7 | 2020-05-18T17:37:33.000Z | 2022-01-13T04:08:05.000Z | from .raffle import Raffle
def setup(bot):
bot.add_cog(Raffle(bot)) | 18.75 | 28 | 0.693333 | 12 | 75 | 4.25 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186667 | 75 | 4 | 28 | 18.75 | 0.836066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
8531c7eec28be5dec06698cc6a230d91cb72ae17 | 88 | py | Python | tritimap/__init__.py | zwbao/Triti-Map | 58d79d773df3862b6e03717bf3563d8c427c7027 | [
"MIT"
] | null | null | null | tritimap/__init__.py | zwbao/Triti-Map | 58d79d773df3862b6e03717bf3563d8c427c7027 | [
"MIT"
] | null | null | null | tritimap/__init__.py | zwbao/Triti-Map | 58d79d773df3862b6e03717bf3563d8c427c7027 | [
"MIT"
] | null | null | null | import os
__version__ = "0.9.2"
root_dir = os.path.dirname(os.path.abspath(__file__))
| 14.666667 | 53 | 0.727273 | 15 | 88 | 3.666667 | 0.8 | 0.218182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.113636 | 88 | 5 | 54 | 17.6 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.056818 | 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 |
854c44ca4ed3e6cbb53690f31ac48a7258c545d7 | 283 | py | Python | Lista PythonBrasil/exer16.py | GlauberGoncalves/Python | cdea025a3b8a0304455e1f8561c1d13e00040d8e | [
"MIT"
] | 3 | 2017-01-29T00:39:31.000Z | 2017-06-16T18:53:36.000Z | Lista PythonBrasil/exer16.py | GlauberGoncalves/Python | cdea025a3b8a0304455e1f8561c1d13e00040d8e | [
"MIT"
] | null | null | null | Lista PythonBrasil/exer16.py | GlauberGoncalves/Python | cdea025a3b8a0304455e1f8561c1d13e00040d8e | [
"MIT"
] | null | null | null | t = float(input('informe o tamanho em m² '))
l = float(t / 3)
if l % 18 == 0:
print('voce precisara de %f latas ' %(l/18))
print('Preço: R$ %0.2f' %((l/18)*80))
else:
print('voce precisara de %f latas ' %((l//18+1)))
print('Preço: R$ %0.2f' %((l//18 + 1) * 80))
| 28.3 | 53 | 0.515901 | 51 | 283 | 2.862745 | 0.490196 | 0.10274 | 0.246575 | 0.273973 | 0.630137 | 0.630137 | 0.630137 | 0.39726 | 0 | 0 | 0 | 0.106481 | 0.236749 | 283 | 9 | 54 | 31.444444 | 0.569444 | 0 | 0 | 0 | 0 | 0 | 0.381625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
8561b65f73f039098088547f5dc3f1ca3cf952f5 | 145 | py | Python | cloudberry-py/cloudberry/api/json_util.py | olliekrk/cloud-berry | 8b39fb0b4f8772348fb50c0c1d0200c96df03cbe | [
"MIT"
] | null | null | null | cloudberry-py/cloudberry/api/json_util.py | olliekrk/cloud-berry | 8b39fb0b4f8772348fb50c0c1d0200c96df03cbe | [
"MIT"
] | null | null | null | cloudberry-py/cloudberry/api/json_util.py | olliekrk/cloud-berry | 8b39fb0b4f8772348fb50c0c1d0200c96df03cbe | [
"MIT"
] | null | null | null | import json
class JSONUtil:
@staticmethod
def multipart_payload(payload):
return None, json.dumps(payload), 'application/json'
| 18.125 | 60 | 0.710345 | 16 | 145 | 6.375 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 145 | 7 | 61 | 20.714286 | 0.87931 | 0 | 0 | 0 | 0 | 0 | 0.110345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
85a7f592ed553404754f7344c9234b29657d2ed5 | 331 | py | Python | Coding-Challenges/largestSubsequence/largest_subsequence.py | FergusDevelopmentLLC/Coders-Workshop | 3513bd5f79eaa85b4d2a648c5f343a224842325d | [
"MIT"
] | 33 | 2019-12-02T23:29:47.000Z | 2022-03-24T02:40:36.000Z | Coding-Challenges/largestSubsequence/largest_subsequence.py | FergusDevelopmentLLC/Coders-Workshop | 3513bd5f79eaa85b4d2a648c5f343a224842325d | [
"MIT"
] | 39 | 2020-01-15T19:28:12.000Z | 2021-11-26T05:13:29.000Z | Coding-Challenges/largestSubsequence/largest_subsequence.py | FergusDevelopmentLLC/Coders-Workshop | 3513bd5f79eaa85b4d2a648c5f343a224842325d | [
"MIT"
] | 49 | 2019-12-02T23:29:53.000Z | 2022-03-03T01:11:37.000Z | #!/usr/bin/env python3
def largest_subsequence(s1, s2):
pass
print(largest_subsequence("ABAZDC", "BACBAD")) # "ABAD"
print(largest_subsequence("AGGTAB", "GXTXAYB")) # "GTAB"
print(largest_subsequence("aaaa", "aa")) # "aa"
print(largest_subsequence("", "...")) # ""
print(largest_subsequence("ABBA", "ABCABA"))... | 27.583333 | 57 | 0.667674 | 37 | 331 | 5.810811 | 0.567568 | 0.502326 | 0.534884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010239 | 0.114804 | 331 | 11 | 58 | 30.090909 | 0.723549 | 0.151057 | 0 | 0 | 0 | 0 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0 | 0 | 0.142857 | 0.714286 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 4 |
a4119e1240314b1bbd0685ee534363309959e324 | 476 | py | Python | d3dshot/capture_outputs/pytorch_float_capture_output.py | Hualin-Peng/D3DShot | a506e1b3ab4effb49af5cc171fc87822a48b3ba9 | [
"MIT"
] | 238 | 2019-04-04T16:15:45.000Z | 2022-03-30T06:47:47.000Z | d3dshot/capture_outputs/pytorch_float_capture_output.py | Hualin-Peng/D3DShot | a506e1b3ab4effb49af5cc171fc87822a48b3ba9 | [
"MIT"
] | 51 | 2019-05-02T13:22:53.000Z | 2022-01-05T16:15:55.000Z | d3dshot/capture_outputs/pytorch_float_capture_output.py | Hualin-Peng/D3DShot | a506e1b3ab4effb49af5cc171fc87822a48b3ba9 | [
"MIT"
] | 41 | 2019-04-04T20:41:19.000Z | 2022-02-26T09:26:03.000Z | import numpy as np
from PIL import Image
from d3dshot.capture_outputs.pytorch_capture_output import PytorchCaptureOutput
class PytorchFloatCaptureOutput(PytorchCaptureOutput):
def process(self, pointer, pitch, size, width, height, region, rotation):
image = super().process(pointer, pitch, size, width, h... | 31.733333 | 86 | 0.737395 | 60 | 476 | 5.783333 | 0.583333 | 0.069164 | 0.092219 | 0.121037 | 0.236311 | 0.236311 | 0.236311 | 0 | 0 | 0 | 0 | 0.025316 | 0.170168 | 476 | 14 | 87 | 34 | 0.853165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0.111111 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
a434ec81bfc9e87e73d857293f1cc96d1049d22e | 207 | py | Python | debeauty/forms.py | gabriel-py/debeauty | fcb1b2afe72dd45ea1a6e673ce4eaf835f4f3030 | [
"MIT"
] | null | null | null | debeauty/forms.py | gabriel-py/debeauty | fcb1b2afe72dd45ea1a6e673ce4eaf835f4f3030 | [
"MIT"
] | null | null | null | debeauty/forms.py | gabriel-py/debeauty | fcb1b2afe72dd45ea1a6e673ce4eaf835f4f3030 | [
"MIT"
] | null | null | null | from django import forms
class NovoPedido(forms.Form):
data_realizacao_desejada = forms.DateField()
horario_inicio = forms.TimeField(required=False)
horario_fim = forms.TimeField(required=False) | 34.5 | 52 | 0.782609 | 25 | 207 | 6.32 | 0.68 | 0.177215 | 0.278481 | 0.341772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 207 | 6 | 53 | 34.5 | 0.877778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a44f020b904b67da29fbc45f7db81180d181ac35 | 12,210 | py | Python | aries_cloudagent/commands/tests/test_upgrade.py | kuraakhilesh8230/aries-cloudagent-python | ee384d1330f6a50ff45a507392ce54f92900f23a | [
"Apache-2.0"
] | 4 | 2019-07-01T13:12:50.000Z | 2019-07-02T20:01:37.000Z | aries_cloudagent/commands/tests/test_upgrade.py | kuraakhilesh8230/aries-cloudagent-python | ee384d1330f6a50ff45a507392ce54f92900f23a | [
"Apache-2.0"
] | 29 | 2019-06-24T22:48:04.000Z | 2019-07-02T20:52:16.000Z | aries_cloudagent/commands/tests/test_upgrade.py | kuraakhilesh8230/aries-cloudagent-python | ee384d1330f6a50ff45a507392ce54f92900f23a | [
"Apache-2.0"
] | 12 | 2019-06-24T22:17:44.000Z | 2019-07-02T19:49:31.000Z | import asyncio
from asynctest import mock as async_mock, TestCase as AsyncTestCase
from ...core.in_memory import InMemoryProfile
from ...config.error import ArgsParseError
from ...connections.models.conn_record import ConnRecord
from ...storage.base import BaseStorage
from ...storage.record import StorageRecord
from ... | 35.289017 | 112 | 0.498198 | 1,048 | 12,210 | 5.51813 | 0.120229 | 0.110496 | 0.121736 | 0.100294 | 0.750303 | 0.723327 | 0.708456 | 0.703441 | 0.69687 | 0.674218 | 0 | 0.00584 | 0.410975 | 12,210 | 345 | 113 | 35.391304 | 0.798248 | 0 | 0 | 0.618462 | 0 | 0 | 0.134152 | 0.049304 | 0 | 0 | 0 | 0 | 0.04 | 1 | 0.006154 | false | 0 | 0.030769 | 0 | 0.04 | 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 |
a4826abb269c9b1e496e442524fa5f81ca95d1ce | 281 | py | Python | src/rubrix/server/tasks/api.py | drahnreb/rubrix | 340e545baf4d65a0d94e3c671ad6c93ff1d59700 | [
"Apache-2.0"
] | null | null | null | src/rubrix/server/tasks/api.py | drahnreb/rubrix | 340e545baf4d65a0d94e3c671ad6c93ff1d59700 | [
"Apache-2.0"
] | null | null | null | src/rubrix/server/tasks/api.py | drahnreb/rubrix | 340e545baf4d65a0d94e3c671ad6c93ff1d59700 | [
"Apache-2.0"
] | null | null | null | from fastapi import APIRouter
from .text_classification import api as text_classification
from .token_classification import api as token_classification
router = APIRouter()
for task_api in [text_classification, token_classification]:
router.include_router(task_api.router)
| 25.545455 | 61 | 0.836299 | 36 | 281 | 6.277778 | 0.388889 | 0.238938 | 0.20354 | 0.221239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117438 | 281 | 10 | 62 | 28.1 | 0.91129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
a49c560366637a4b9c308293ac6bef9e243f0019 | 736 | py | Python | tabular/tests/unittests/models/test_linear.py | zhiqiangdon/autogluon | 71ee7ef0f05d8f0aad112d8c1719174aa33194d9 | [
"Apache-2.0"
] | 4,462 | 2019-12-09T17:41:07.000Z | 2022-03-31T22:00:41.000Z | tabular/tests/unittests/models/test_linear.py | zhiqiangdon/autogluon | 71ee7ef0f05d8f0aad112d8c1719174aa33194d9 | [
"Apache-2.0"
] | 1,408 | 2019-12-09T17:48:59.000Z | 2022-03-31T20:24:12.000Z | tabular/tests/unittests/models/test_linear.py | zhiqiangdon/autogluon | 71ee7ef0f05d8f0aad112d8c1719174aa33194d9 | [
"Apache-2.0"
] | 623 | 2019-12-10T02:04:18.000Z | 2022-03-20T17:11:01.000Z |
from autogluon.tabular.models.lr.lr_model import LinearModel
def test_linear_binary(fit_helper):
fit_args = dict(
hyperparameters={LinearModel: {}},
)
dataset_name = 'adult'
fit_helper.fit_and_validate_dataset(dataset_name=dataset_name, fit_args=fit_args)
def test_linear_multiclass(fit_help... | 27.259259 | 85 | 0.73913 | 93 | 736 | 5.419355 | 0.27957 | 0.125 | 0.142857 | 0.095238 | 0.78373 | 0.78373 | 0.78373 | 0.78373 | 0.78373 | 0.444444 | 0 | 0 | 0.165761 | 736 | 26 | 86 | 28.307692 | 0.820847 | 0 | 0 | 0.473684 | 0 | 0 | 0.02449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.052632 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8efe2c4eaba4d7937fbcd9cb1f00f290f7aabadc | 99 | py | Python | 08-List-Comprehensions/02-List-Comprehension-with-If-Conditional/main.py | 0x00000024/learn-python | 97057dc427feaf8e6da5ca373e7e02d4a1b949ae | [
"MIT"
] | null | null | null | 08-List-Comprehensions/02-List-Comprehension-with-If-Conditional/main.py | 0x00000024/learn-python | 97057dc427feaf8e6da5ca373e7e02d4a1b949ae | [
"MIT"
] | null | null | null | 08-List-Comprehensions/02-List-Comprehension-with-If-Conditional/main.py | 0x00000024/learn-python | 97057dc427feaf8e6da5ca373e7e02d4a1b949ae | [
"MIT"
] | null | null | null | temps = [221, 233, 132, -9999, 434]
new_temps = [i for i in temps if i != -9999]
print(new_temps) | 19.8 | 44 | 0.636364 | 19 | 99 | 3.210526 | 0.631579 | 0.262295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253165 | 0.20202 | 99 | 5 | 45 | 19.8 | 0.518987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
f10f8aba420899a3f319690d32052dd346a3cc8f | 472 | py | Python | ai_controller/controller.py | mingsumsze1/mcts | e67b80eb138d122a75e12b7d1886edb84de0ede5 | [
"MIT"
] | null | null | null | ai_controller/controller.py | mingsumsze1/mcts | e67b80eb138d122a75e12b7d1886edb84de0ede5 | [
"MIT"
] | null | null | null | ai_controller/controller.py | mingsumsze1/mcts | e67b80eb138d122a75e12b7d1886edb84de0ede5 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from environment.controller import Controller
from environment.game_state import GameState
class AIController(Controller, ABC):
"""
AI player controller
"""
def pick_move(self, state : GameState):
return self.pick_move_with_likelihood(state)[0]
@abstractmethod
def... | 23.6 | 57 | 0.75 | 57 | 472 | 6.070175 | 0.491228 | 0.069364 | 0.063584 | 0.127168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002571 | 0.175847 | 472 | 19 | 58 | 24.842105 | 0.886889 | 0.146186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0.111111 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
f123b44307466fc8929799150b7a0789336de9af | 2,271 | py | Python | data/transcoder_evaluation_gfg/python/REMOVE_MINIMUM_NUMBER_ELEMENTS_NO_COMMON_ELEMENT_EXIST_ARRAY.py | mxl1n/CodeGen | e5101dd5c5e9c3720c70c80f78b18f13e118335a | [
"MIT"
] | 241 | 2021-07-20T08:35:20.000Z | 2022-03-31T02:39:08.000Z | data/transcoder_evaluation_gfg/python/REMOVE_MINIMUM_NUMBER_ELEMENTS_NO_COMMON_ELEMENT_EXIST_ARRAY.py | mxl1n/CodeGen | e5101dd5c5e9c3720c70c80f78b18f13e118335a | [
"MIT"
] | 49 | 2021-07-22T23:18:42.000Z | 2022-03-24T09:15:26.000Z | data/transcoder_evaluation_gfg/python/REMOVE_MINIMUM_NUMBER_ELEMENTS_NO_COMMON_ELEMENT_EXIST_ARRAY.py | mxl1n/CodeGen | e5101dd5c5e9c3720c70c80f78b18f13e118335a | [
"MIT"
] | 71 | 2021-07-21T05:17:52.000Z | 2022-03-29T23:49:28.000Z | # Copyright (c) 2019-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
def f_gold ( a , b , n , m ) :
countA = dict ( )
countB = dict ( )
for i in range ( n ) :
countA [ a [ i ] ]... | 56.775 | 303 | 0.453545 | 493 | 2,271 | 2.054767 | 0.296146 | 0.138203 | 0.192498 | 0.240869 | 0.16387 | 0.140178 | 0.140178 | 0.140178 | 0.13228 | 0.13228 | 0 | 0.360646 | 0.290621 | 2,271 | 40 | 304 | 56.775 | 0.268156 | 0.081462 | 0 | 0.066667 | 0 | 0 | 0.011544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0 | 0 | 0.066667 | 0.033333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f13e7b6e0e1bf6512e5b87efce7ea8384bfd3c4d | 587 | py | Python | dtt/kubectl/pod.py | ymizushi/dtt | a7be7466bcda9644594394ab8c16e794f514b15c | [
"MIT"
] | 3 | 2019-09-28T02:01:17.000Z | 2020-05-23T06:27:57.000Z | dtt/kubectl/pod.py | ymizushi/dtt | a7be7466bcda9644594394ab8c16e794f514b15c | [
"MIT"
] | 11 | 2019-07-26T12:30:47.000Z | 2019-08-06T13:45:10.000Z | dtt/kubectl/pod.py | ymizushi/dtt | a7be7466bcda9644594394ab8c16e794f514b15c | [
"MIT"
] | null | null | null | class Pods:
def __init__(self, pods):
self._index = 0
self._pods = pods.items
self._metadata = pods.metadata
@property
def index(self):
return self._index
@property
def current_pod(self):
return self._pods[self._index]
@property
def list(self):
... | 24.458333 | 45 | 0.565588 | 75 | 587 | 4.146667 | 0.266667 | 0.26045 | 0.128617 | 0.163987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015267 | 0.330494 | 587 | 23 | 46 | 25.521739 | 0.776081 | 0 | 0 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318182 | false | 0 | 0 | 0.136364 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
74adb9d1b6713668874e8ffff93d9e51a052d41f | 114 | py | Python | main.py | panzihan/comic-spider | 2566ed8f725c11fa3f87d7b53da479a530a1bc75 | [
"Apache-2.0"
] | null | null | null | main.py | panzihan/comic-spider | 2566ed8f725c11fa3f87d7b53da479a530a1bc75 | [
"Apache-2.0"
] | null | null | null | main.py | panzihan/comic-spider | 2566ed8f725c11fa3f87d7b53da479a530a1bc75 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: UTF-8 -*-
from scrapy import cmdline
cmdline.execute("scrapy crawl dmzj".split()) | 22.8 | 44 | 0.692982 | 16 | 114 | 4.9375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0.114035 | 114 | 5 | 44 | 22.8 | 0.772277 | 0.333333 | 0 | 0 | 0 | 0 | 0.226667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
74b7830f4dda15ada9843cfeaccea42f032c1f19 | 1,408 | py | Python | E9/contact_manager/contact/forms.py | wendy006/Web-Dev-Course | 2f0cfddb7ab4db88ffb4483c7cd4a00abf36c720 | [
"MIT"
] | null | null | null | E9/contact_manager/contact/forms.py | wendy006/Web-Dev-Course | 2f0cfddb7ab4db88ffb4483c7cd4a00abf36c720 | [
"MIT"
] | null | null | null | E9/contact_manager/contact/forms.py | wendy006/Web-Dev-Course | 2f0cfddb7ab4db88ffb4483c7cd4a00abf36c720 | [
"MIT"
] | null | null | null | from django import forms
# class RenewBookForm(forms.Form):
# renewal_date = forms.DateField(help_text="Enter a date between now and 4 weeks (default 3).")
# class NameForm(forms.Form):
# your_name = forms.CharField(label='Your name', max_length=100)
# class UserForm(forms.Form):
# username = forms... | 36.102564 | 99 | 0.715199 | 190 | 1,408 | 5.142105 | 0.284211 | 0.186285 | 0.252815 | 0.204708 | 0.595701 | 0.595701 | 0.595701 | 0.595701 | 0.595701 | 0.595701 | 0 | 0.034396 | 0.153409 | 1,408 | 38 | 100 | 37.052632 | 0.785235 | 0.314631 | 0 | 0.769231 | 0 | 0 | 0.088328 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
74bf45dcb4a434eeeff395649e73785dadc6d3a6 | 97 | py | Python | tests/_support/configs/yaml/tasks.py | tyewang/invoke | e40b3ef3b8e9a9b275b2964c65e2ce878fec4349 | [
"BSD-2-Clause"
] | null | null | null | tests/_support/configs/yaml/tasks.py | tyewang/invoke | e40b3ef3b8e9a9b275b2964c65e2ce878fec4349 | [
"BSD-2-Clause"
] | null | null | null | tests/_support/configs/yaml/tasks.py | tyewang/invoke | e40b3ef3b8e9a9b275b2964c65e2ce878fec4349 | [
"BSD-2-Clause"
] | null | null | null | from spec import eq_
from invoke import ctask
@ctask
def mytask(c):
eq_(c.hooray, 'yaml')
| 10.777778 | 25 | 0.690722 | 16 | 97 | 4.0625 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206186 | 97 | 8 | 26 | 12.125 | 0.844156 | 0 | 0 | 0 | 0 | 0 | 0.041237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.