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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f43185328a18705e4eff347a4129ed7e5e76c3b3 | 215 | py | Python | red_mind/core/admin.py | IntegratedMindHeart/project_red_mind | a76af03627a4202a4f26a092b5cf4f93f2f5e2a6 | [
"Apache-2.0"
] | 2 | 2021-07-01T08:17:00.000Z | 2021-07-01T08:18:35.000Z | red_mind/core/admin.py | IntegratedMindHeart/project_red_mind | a76af03627a4202a4f26a092b5cf4f93f2f5e2a6 | [
"Apache-2.0"
] | null | null | null | red_mind/core/admin.py | IntegratedMindHeart/project_red_mind | a76af03627a4202a4f26a092b5cf4f93f2f5e2a6 | [
"Apache-2.0"
] | 1 | 2020-10-15T20:06:43.000Z | 2020-10-15T20:06:43.000Z | from django.contrib import admin
from .models import MovieRecord
# Register your models here.
@admin.register(MovieRecord)
class MovieRecordAdmin(admin.ModelAdmin):
list_display=('id','movie_name','date_time') | 26.875 | 48 | 0.790698 | 27 | 215 | 6.185185 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102326 | 215 | 8 | 48 | 26.875 | 0.865285 | 0.12093 | 0 | 0 | 0 | 0 | 0.111702 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 | 0 | 0 | 0 | 3 |
f43b3b8b4bb9c36a2ac3061027ed4a3c53847042 | 2,461 | py | Python | dedalov2/explanation_evaluation.py | jdonkervliet/dedalov2 | 255b707e36acce384596662bde97a333f900fc89 | [
"MIT"
] | null | null | null | dedalov2/explanation_evaluation.py | jdonkervliet/dedalov2 | 255b707e36acce384596662bde97a333f900fc89 | [
"MIT"
] | null | null | null | dedalov2/explanation_evaluation.py | jdonkervliet/dedalov2 | 255b707e36acce384596662bde97a333f900fc89 | [
"MIT"
] | null | null | null |
from typing import Set, Tuple
from .example import Example, Examples
from .explanation import Explanation, Record
from .path import Path
def find_best_explanation(explanations: Set[Explanation], examples: Examples) -> None:
for e in explanations:
new_score = evaluate_explanation(e, examples)
roo... | 32.381579 | 157 | 0.709061 | 344 | 2,461 | 4.837209 | 0.162791 | 0.052885 | 0.046875 | 0.057692 | 0.407452 | 0.359375 | 0.338942 | 0.234375 | 0.234375 | 0.206731 | 0 | 0.004955 | 0.180008 | 2,461 | 75 | 158 | 32.813333 | 0.819623 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.244898 | false | 0 | 0.081633 | 0.122449 | 0.612245 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
be3704c5e819cdb0e5cdc3efd96462ee13669113 | 9,503 | py | Python | terraform/cloudwatch.tf.json.template.py | NoopDog/azul | 37614eff627888065c7b0a277b3137b8a587ed51 | [
"Apache-2.0"
] | null | null | null | terraform/cloudwatch.tf.json.template.py | NoopDog/azul | 37614eff627888065c7b0a277b3137b8a587ed51 | [
"Apache-2.0"
] | null | null | null | terraform/cloudwatch.tf.json.template.py | NoopDog/azul | 37614eff627888065c7b0a277b3137b8a587ed51 | [
"Apache-2.0"
] | null | null | null | import json
from azul import (
config,
)
from azul.deployment import (
aws,
emit_tf,
)
emit_tf(None if config.disable_monitoring else {
"resource": [
*([] if config.share_es_domain else [
{
"aws_cloudwatch_metric_alarm": {
"CPUUtilization": {
... | 47.994949 | 117 | 0.412501 | 681 | 9,503 | 5.577093 | 0.155653 | 0.07109 | 0.044234 | 0.063191 | 0.776461 | 0.719326 | 0.684834 | 0.684834 | 0.641654 | 0.641654 | 0 | 0.009718 | 0.469431 | 9,503 | 197 | 118 | 48.238579 | 0.743554 | 0.007682 | 0 | 0.608247 | 0 | 0 | 0.394888 | 0.200361 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.015464 | 0 | 0.015464 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
be396762ab37a806e5c01b2bd836304a8b2f60a2 | 269 | py | Python | tests/aoc/test_d03.py | klittlepage/aoc2021 | 896848024b24e862211357795bc1e866534ffec2 | [
"MIT"
] | null | null | null | tests/aoc/test_d03.py | klittlepage/aoc2021 | 896848024b24e862211357795bc1e866534ffec2 | [
"MIT"
] | null | null | null | tests/aoc/test_d03.py | klittlepage/aoc2021 | 896848024b24e862211357795bc1e866534ffec2 | [
"MIT"
] | null | null | null | import aoc.d03
from tests.aoc.test_base import BaseTestCase
class TestAll(BaseTestCase):
def test_part_one(self) -> None:
self.run_aoc_part(3, 3320834, aoc.d03.p_1)
def test_part_two(self) -> None:
self.run_aoc_part(3, 4481199, aoc.d03.p_2)
| 22.416667 | 50 | 0.702602 | 45 | 269 | 3.955556 | 0.511111 | 0.101124 | 0.123596 | 0.168539 | 0.258427 | 0.258427 | 0.258427 | 0 | 0 | 0 | 0 | 0.109589 | 0.185874 | 269 | 11 | 51 | 24.454545 | 0.703196 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
be4614ecfed37bd042e43d2ffca405f7a0f118aa | 162 | py | Python | hdcs_manager/source/hsm-dashboard/hsm_dashboard/dashboards/hsm/rbd/panel.py | isabella232/HDCS | 1a5ae046e3ff947cc7a42219b9b1959766687612 | [
"Apache-2.0"
] | null | null | null | hdcs_manager/source/hsm-dashboard/hsm_dashboard/dashboards/hsm/rbd/panel.py | isabella232/HDCS | 1a5ae046e3ff947cc7a42219b9b1959766687612 | [
"Apache-2.0"
] | 1 | 2021-02-23T19:10:26.000Z | 2021-02-23T19:10:26.000Z | hdcs_manager/source/hsm-dashboard/hsm_dashboard/dashboards/hsm/rbd/panel.py | isabella232/HDCS | 1a5ae046e3ff947cc7a42219b9b1959766687612 | [
"Apache-2.0"
] | null | null | null |
import horizon
from hsm_dashboard.dashboards.hsm import dashboard
class Rbd(horizon.Panel):
name = "RBD"
slug = 'rbd'
dashboard.VizDash.register(Rbd)
| 14.727273 | 50 | 0.734568 | 21 | 162 | 5.619048 | 0.619048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 162 | 10 | 51 | 16.2 | 0.874074 | 0 | 0 | 0 | 0 | 0 | 0.037267 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
be4e1715c8020f93066dbcbb5edc507563aa8056 | 1,126 | py | Python | src/py_gql/execution/runtime/blocking.py | johnpaulguzman/py-gql | 5a2d180537218e1c30c65b2a933fb4fe197785ae | [
"MIT"
] | 6 | 2019-04-30T10:48:09.000Z | 2021-08-19T15:57:53.000Z | src/py_gql/execution/runtime/blocking.py | johnpaulguzman/py-gql | 5a2d180537218e1c30c65b2a933fb4fe197785ae | [
"MIT"
] | 6 | 2019-04-08T12:39:08.000Z | 2020-08-10T15:00:18.000Z | src/py_gql/execution/runtime/blocking.py | johnpaulguzman/py-gql | 5a2d180537218e1c30c65b2a933fb4fe197785ae | [
"MIT"
] | 2 | 2021-04-14T07:06:15.000Z | 2021-08-19T15:58:46.000Z | # -*- coding: utf-8 -*-
from typing import Any, Callable, Iterable, Optional, Tuple, Type, TypeVar
from .base import Runtime
T = TypeVar("T")
E = TypeVar("E", bound=Exception)
TException = TypeVar("TException", bound=Type[Exception])
AnyFn = Callable[..., Any]
class BlockingRuntime(Runtime):
"""
Default r... | 24.478261 | 74 | 0.592362 | 135 | 1,126 | 4.874074 | 0.444444 | 0.027356 | 0.054711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003686 | 0.277087 | 1,126 | 45 | 75 | 25.022222 | 0.804668 | 0.076377 | 0 | 0.068966 | 0 | 0 | 0.011719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.068966 | 0.172414 | 0.551724 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
be55fede7bb6ceaf9f823edd4af2b010f31148ea | 340 | py | Python | CodingBat/Python/String-1/make_tags.py | Togohogo1/pg | ee3c36acde47769c66ee13a227762ee677591375 | [
"MIT"
] | null | null | null | CodingBat/Python/String-1/make_tags.py | Togohogo1/pg | ee3c36acde47769c66ee13a227762ee677591375 | [
"MIT"
] | 1 | 2021-10-14T18:26:56.000Z | 2021-10-14T18:26:56.000Z | CodingBat/Python/String-1/make_tags.py | Togohogo1/pg | ee3c36acde47769c66ee13a227762ee677591375 | [
"MIT"
] | 1 | 2021-08-06T03:39:55.000Z | 2021-08-06T03:39:55.000Z | '''
The web is built with HTML strings like "<i>Yay</i>" which draws Yay as
italic text. In this example, the "i" tag makes <i> and </i> which surround
the word "Yay". Given tag and word strings, create the HTML string with tags
around the word, e.g. "<i>Yay</i>".
'''
def make_tags(tag, word):
return "<%s>%s</%s>"... | 34 | 76 | 0.652941 | 63 | 340 | 3.507937 | 0.539683 | 0.036199 | 0.045249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182353 | 340 | 9 | 77 | 37.777778 | 0.794964 | 0.764706 | 0 | 0 | 0 | 0 | 0.152778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
be60a851c1fc3365a30a20d72356f56f4451d78f | 1,100 | py | Python | wedo2/services/voltage_sensor.py | MikhailSukhovei/LEGO-WeDo-2.0-Python-SDK | 69c8f64807f3d9aa25bb89e6de53e93f72526714 | [
"MIT"
] | 26 | 2017-11-02T02:48:24.000Z | 2022-01-07T08:33:25.000Z | wedo2/services/voltage_sensor.py | MikhailSukhovei/LEGO-WeDo-2.0-Python-SDK | 69c8f64807f3d9aa25bb89e6de53e93f72526714 | [
"MIT"
] | 4 | 2018-04-09T14:43:22.000Z | 2021-08-21T19:40:21.000Z | wedo2/services/voltage_sensor.py | MikhailSukhovei/LEGO-WeDo-2.0-Python-SDK | 69c8f64807f3d9aa25bb89e6de53e93f72526714 | [
"MIT"
] | 15 | 2017-05-21T16:00:09.000Z | 2021-12-03T09:00:24.000Z |
from wedo2.services.lego_service import LegoService
from wedo2.input_output.input_format import InputFormat, InputFormatUnit
SERVICE_VOLTAGE_SENSOR_NAME = "Voltage Sensor"
class VoltageSensor(LegoService):
def __init__(self, connect_info, io):
super(VoltageSensor, self).__init__(connect_info, io)
... | 37.931034 | 112 | 0.737273 | 145 | 1,100 | 5.186207 | 0.324138 | 0.131649 | 0.079787 | 0.079787 | 0.180851 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007839 | 0.188182 | 1,100 | 28 | 113 | 39.285714 | 0.834267 | 0 | 0 | 0 | 0 | 0 | 0.012739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.105263 | 0.157895 | 0.684211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
be63c890f787894e49c39052bfcd0225d6842b0f | 120 | py | Python | examples/ex4_audio_devices.py | mcjlnrtwcz/python-audio-basics-demo | bd02ae26f5298d943abeb68548558947e7498c10 | [
"MIT"
] | null | null | null | examples/ex4_audio_devices.py | mcjlnrtwcz/python-audio-basics-demo | bd02ae26f5298d943abeb68548558947e7498c10 | [
"MIT"
] | null | null | null | examples/ex4_audio_devices.py | mcjlnrtwcz/python-audio-basics-demo | bd02ae26f5298d943abeb68548558947e7498c10 | [
"MIT"
] | null | null | null | import sounddevice as sd
print(sd.query_devices())
device_idx = input()
sd.default.device = device_idx # Or iterable
| 17.142857 | 45 | 0.758333 | 18 | 120 | 4.888889 | 0.722222 | 0.204545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141667 | 120 | 6 | 46 | 20 | 0.854369 | 0.091667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
be7758d647e816da51c31a7982902ac96d660bd8 | 2,838 | py | Python | psx/_dump_/33/_dump_ida_/overlay_d/make_psx.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 15 | 2018-06-28T01:11:25.000Z | 2021-09-27T15:57:18.000Z | psx/_dump_/33/_dump_ida_/overlay_d/make_psx.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-29T04:08:23.000Z | 2019-10-17T13:57:22.000Z | psx/_dump_/33/_dump_ida_/overlay_d/make_psx.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-28T01:11:34.000Z | 2020-05-23T09:21:48.000Z | set_name(0x8014B0D8, "EA_cd_seek", SN_NOWARN)
set_name(0x8014B0E0, "MY_CdGetSector", SN_NOWARN)
set_name(0x8014B114, "init_cdstream", SN_NOWARN)
set_name(0x8014B124, "flush_cdstream", SN_NOWARN)
set_name(0x8014B148, "check_complete_frame", SN_NOWARN)
set_name(0x8014B1C8, "reset_cdstream", SN_NOWARN)
set_name(0x8014B1F0... | 49.789474 | 58 | 0.82241 | 424 | 2,838 | 5.03066 | 0.29717 | 0.183779 | 0.283638 | 0.386779 | 0.384435 | 0.197843 | 0 | 0 | 0 | 0 | 0 | 0.149813 | 0.059197 | 2,838 | 56 | 59 | 50.678571 | 0.649064 | 0 | 0 | 0 | 0 | 0 | 0.289641 | 0.046159 | 0 | 0 | 0.197322 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
be78c3d2edfdc49a5676debec59073abb629ea13 | 258 | py | Python | kisseru/__init__.py | chamibuddhika/kisseru | 6a77cbbf10f85c71a95c5e0d784bd41bdc5a00b6 | [
"Apache-2.0"
] | 4 | 2018-08-07T12:51:32.000Z | 2021-04-07T22:10:26.000Z | kisseru/__init__.py | chamibuddhika/kiseru | 6a77cbbf10f85c71a95c5e0d784bd41bdc5a00b6 | [
"Apache-2.0"
] | 13 | 2018-07-30T17:57:40.000Z | 2019-01-22T16:42:51.000Z | kisseru/__init__.py | chamibuddhika/kiseru | 6a77cbbf10f85c71a95c5e0d784bd41bdc5a00b6 | [
"Apache-2.0"
] | 1 | 2020-01-17T22:49:33.000Z | 2020-01-17T22:49:33.000Z | name = "kisseru"
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
from .kisseru import app
from .kisseru import AppRunner
from .kisseru import csv
from .kisseru import png
from .kisseru import task
from .kisseru import xls
| 18.428571 | 59 | 0.782946 | 40 | 258 | 4.95 | 0.425 | 0.459596 | 0.515152 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135659 | 258 | 13 | 60 | 19.846154 | 0.887892 | 0 | 0 | 0 | 0 | 0 | 0.027132 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
be7a474dd48aa73f49e637d7b6a0ee2203a505bd | 80 | py | Python | number.py | ximury/python | 8624464e214c74e640d01a83b21c66df8eb7ad8c | [
"Apache-2.0"
] | null | null | null | number.py | ximury/python | 8624464e214c74e640d01a83b21c66df8eb7ad8c | [
"Apache-2.0"
] | null | null | null | number.py | ximury/python | 8624464e214c74e640d01a83b21c66df8eb7ad8c | [
"Apache-2.0"
] | null | null | null | import math
a = 9
b = int(a / 2)
print(b)
c = math.ceil(a / 2)
print(c)
| 10 | 21 | 0.5125 | 17 | 80 | 2.411765 | 0.588235 | 0.097561 | 0.341463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054545 | 0.3125 | 80 | 7 | 22 | 11.428571 | 0.690909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.333333 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
be9315baefb238e1234304bbd5fac822c294926a | 19 | py | Python | DaysOfCode/__init__.py | PeterMcD/100-Days-Of-Code-Cli-Tool | cea1be23cd314a5421a3c9ae4587769d6bb75e77 | [
"MIT"
] | null | null | null | DaysOfCode/__init__.py | PeterMcD/100-Days-Of-Code-Cli-Tool | cea1be23cd314a5421a3c9ae4587769d6bb75e77 | [
"MIT"
] | 4 | 2019-01-04T01:49:17.000Z | 2019-01-11T18:22:58.000Z | DaysOfCode/__init__.py | petermcd/100-Days-Of-Code-Cli-Tool | cea1be23cd314a5421a3c9ae4587769d6bb75e77 | [
"MIT"
] | null | null | null | name = "DaysOfCode" | 19 | 19 | 0.736842 | 2 | 19 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 19 | 1 | 19 | 19 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
beb4afa019b48fd73ce6cf7fc92215a55d465644 | 12,462 | py | Python | py/src/ai/h2o/sparkling/ml/params/H2OXGBoostParams.py | salliewalecka/sparkling-water | 497306fbc7f4f374fe367f1303289db13be4ec48 | [
"Apache-2.0"
] | null | null | null | py/src/ai/h2o/sparkling/ml/params/H2OXGBoostParams.py | salliewalecka/sparkling-water | 497306fbc7f4f374fe367f1303289db13be4ec48 | [
"Apache-2.0"
] | null | null | null | py/src/ai/h2o/sparkling/ml/params/H2OXGBoostParams.py | salliewalecka/sparkling-water | 497306fbc7f4f374fe367f1303289db13be4ec48 | [
"Apache-2.0"
] | null | null | null | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 27.091304 | 108 | 0.654149 | 1,162 | 12,462 | 6.954389 | 0.227194 | 0.08786 | 0.066823 | 0.084643 | 0.310358 | 0.079941 | 0.063853 | 0.028214 | 0 | 0 | 0 | 0.00575 | 0.246429 | 12,462 | 459 | 109 | 27.150327 | 0.854755 | 0.062991 | 0 | 0.217791 | 0 | 0 | 0.104508 | 0.03538 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217791 | false | 0 | 0.021472 | 0.217791 | 0.567485 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
bebe2a2407a6383f167447dc34e08f34b5d1b71a | 1,738 | py | Python | resources/libraries/python/parsers/JsonParser.py | nidhyanandhan/csit | 2156583b4e66f2c3c35903c854b1823b76a4e9a6 | [
"Apache-2.0"
] | null | null | null | resources/libraries/python/parsers/JsonParser.py | nidhyanandhan/csit | 2156583b4e66f2c3c35903c854b1823b76a4e9a6 | [
"Apache-2.0"
] | null | null | null | resources/libraries/python/parsers/JsonParser.py | nidhyanandhan/csit | 2156583b4e66f2c3c35903c854b1823b76a4e9a6 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2019 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 31.6 | 74 | 0.68412 | 243 | 1,738 | 4.806584 | 0.436214 | 0.082192 | 0.02226 | 0.027397 | 0.148973 | 0.148973 | 0.148973 | 0.148973 | 0.077055 | 0.077055 | 0 | 0.006102 | 0.245685 | 1,738 | 54 | 75 | 32.185185 | 0.884821 | 0.671461 | 0 | 0.285714 | 0 | 0 | 0.004619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.071429 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
fe1ef73861a7a243d3489cbdadd7fc363225456d | 2,151 | py | Python | getl/blocks/transform/add_column/date.py | husqvarnagroup/GETL | 37251abf12bac2efed1fe463b09a288d85969141 | [
"MIT"
] | 8 | 2020-06-10T09:00:17.000Z | 2021-06-07T18:02:19.000Z | getl/blocks/transform/add_column/date.py | husqvarnagroup/GETL | 37251abf12bac2efed1fe463b09a288d85969141 | [
"MIT"
] | 5 | 2020-07-03T10:39:25.000Z | 2021-08-30T14:52:47.000Z | getl/blocks/transform/add_column/date.py | husqvarnagroup/GETL | 37251abf12bac2efed1fe463b09a288d85969141 | [
"MIT"
] | 1 | 2020-05-28T07:53:48.000Z | 2020-05-28T07:53:48.000Z | """Module for all the date related operations a dataframe."""
from pyspark.sql import DataFrame, functions as F, types as T
def unixtime_to_utcz(
dataframe: DataFrame, from_column: str, to_column: str
) -> DataFrame:
"""Convert a unix timestamp.
:param int from_column: source column
:param str to_col... | 35.262295 | 94 | 0.710367 | 312 | 2,151 | 4.778846 | 0.173077 | 0.127431 | 0.044266 | 0.093897 | 0.769282 | 0.733065 | 0.675386 | 0.652582 | 0.566063 | 0.508384 | 0 | 0 | 0.192004 | 2,151 | 60 | 95 | 35.85 | 0.857883 | 0.465365 | 0 | 0.190476 | 0 | 0 | 0.021989 | 0.021989 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.047619 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
fe3acaaf4a74c2eb2f7ad7ed304b07720448e951 | 381 | py | Python | app/main/__init__.py | hellokuku/flask_demo | 2b78eb168b8f98ef735970797b5c041609b0fb2a | [
"MIT"
] | null | null | null | app/main/__init__.py | hellokuku/flask_demo | 2b78eb168b8f98ef735970797b5c041609b0fb2a | [
"MIT"
] | null | null | null | app/main/__init__.py | hellokuku/flask_demo | 2b78eb168b8f98ef735970797b5c041609b0fb2a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
#
# Author : Jianwei Fu
# E-mail : jianwei1031@gmail.com
# Date : 15/12/26 20:37:01
# Desc :
#
from flask import Blueprint
main = Blueprint('main', __name__)
from . import views, errors
from ..models import Permission
@main.app_context_processor
... | 19.05 | 37 | 0.669291 | 50 | 381 | 4.96 | 0.8 | 0.104839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055921 | 0.2021 | 381 | 19 | 38 | 20.052632 | 0.759868 | 0.383202 | 0 | 0 | 0 | 0 | 0.017857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0.142857 | 0.714286 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
fe44969f5e4446a91a81ec539e5948391a71158b | 691 | py | Python | test/providers/cache/test_cache_base.py | neoworth/dimstore | d00243f7af4759f3a1d90e68325172330c649f20 | [
"MIT"
] | 4 | 2020-05-01T15:50:11.000Z | 2021-04-15T17:52:42.000Z | test/providers/cache/test_cache_base.py | neoworth/dimstore | d00243f7af4759f3a1d90e68325172330c649f20 | [
"MIT"
] | null | null | null | test/providers/cache/test_cache_base.py | neoworth/dimstore | d00243f7af4759f3a1d90e68325172330c649f20 | [
"MIT"
] | 1 | 2021-05-12T17:46:48.000Z | 2021-05-12T17:46:48.000Z | """
test cache base class
"""
import pytest
from dimstore.providers.cache.cache_base import CacheLayerBase
@pytest.fixture(scope='function')
def base_class(request):
return CacheLayerBase()
class TestCacheLayerBase():
def test_put_method_implementation_exception(self, base_class):
with pytest.... | 23.827586 | 69 | 0.732272 | 77 | 691 | 6.311688 | 0.363636 | 0.148148 | 0.179012 | 0.203704 | 0.530864 | 0.530864 | 0.530864 | 0.530864 | 0.530864 | 0.530864 | 0 | 0 | 0.183792 | 691 | 28 | 70 | 24.678571 | 0.861702 | 0.030391 | 0 | 0.2 | 0 | 0 | 0.012195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.133333 | 0.066667 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
fe507eb53f4c167551ec747c4db6a75a42256012 | 2,581 | py | Python | corehq/form_processor/track_related.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 471 | 2015-01-10T02:55:01.000Z | 2022-03-29T18:07:18.000Z | corehq/form_processor/track_related.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 14,354 | 2015-01-01T07:38:23.000Z | 2022-03-31T20:55:14.000Z | corehq/form_processor/track_related.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 175 | 2015-01-06T07:16:47.000Z | 2022-03-29T13:27:01.000Z | from collections import defaultdict
class TrackRelatedChanges(object):
def __init__(self):
self.create_models = defaultdict(list)
self.update_models = defaultdict(list)
self.delete_models = defaultdict(list)
def has_tracked_models(self, model_class=None):
return any((
... | 35.847222 | 89 | 0.700116 | 334 | 2,581 | 5.020958 | 0.158683 | 0.19678 | 0.133572 | 0.064401 | 0.620155 | 0.482409 | 0.373882 | 0.20811 | 0.14192 | 0.14192 | 0 | 0 | 0.21852 | 2,581 | 71 | 90 | 36.352113 | 0.831433 | 0.080201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0.020833 | 0.020833 | 0.145833 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fe50b4d6b1b9cc74d7f068ae047f3a8ba35b9089 | 66 | py | Python | examples/5_select_clause_queries/env/database_enum.py | kungfuai/sql-chemistry | 98f75bb66eff87cec51eb77ecc2ebba1a1ae0870 | [
"MIT"
] | 1 | 2021-07-29T15:50:02.000Z | 2021-07-29T15:50:02.000Z | examples/12_building_subqueries/env/database_enum.py | kungfuai/sql-chemistry | 98f75bb66eff87cec51eb77ecc2ebba1a1ae0870 | [
"MIT"
] | 3 | 2021-05-20T14:35:53.000Z | 2021-06-25T12:24:26.000Z | examples/11_having_clause_queries/env/database_enum.py | kungfuai/sql-chemistry | 98f75bb66eff87cec51eb77ecc2ebba1a1ae0870 | [
"MIT"
] | 2 | 2021-05-04T18:42:44.000Z | 2021-09-18T16:27:35.000Z | from enum import Enum
class DatabaseEnum(Enum):
PET = "pet"
| 11 | 25 | 0.681818 | 9 | 66 | 5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 66 | 5 | 26 | 13.2 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
fe55d8816130c1c64ab1db944311fb9b56d62193 | 355 | py | Python | btcebot/trader.py | CodeReclaimers/btce-bot | cc19f604a2aad24c6cfb413018dd9f8fac88a075 | [
"MIT"
] | 25 | 2015-11-05T00:28:47.000Z | 2019-04-26T02:08:58.000Z | btcebot/trader.py | CodeReclaimers/btce-bot | cc19f604a2aad24c6cfb413018dd9f8fac88a075 | [
"MIT"
] | 6 | 2017-03-24T23:24:42.000Z | 2017-06-15T13:39:51.000Z | btcebot/trader.py | CodeReclaimers/btce-bot | cc19f604a2aad24c6cfb413018dd9f8fac88a075 | [
"MIT"
] | 15 | 2015-12-26T01:21:09.000Z | 2020-11-24T10:20:11.000Z | # Copyright (c) 2013-2017 CodeReclaimers, LLC
class TraderBase(object):
def __init__(self, pairs):
self.pairs = pairs
def onNewDepth(self, t, pair, asks, bids):
pass
def onNewTradeHistory(self, t, pair, trades):
pass
def onLoopEnd(self, t):
pass
d... | 18.684211 | 49 | 0.566197 | 40 | 355 | 4.925 | 0.575 | 0.076142 | 0.091371 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034043 | 0.338028 | 355 | 18 | 50 | 19.722222 | 0.804255 | 0.121127 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.454545 | false | 0.363636 | 0 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
fe5bd3dd3dfee460e491249a8f896dce0dda9c7e | 512 | py | Python | backend/todo/serializers.py | jimbofreedman/naggingnelly-backend | a1e64089915ad80a2d3d8cd0252bc2bcd0e1f475 | [
"MIT"
] | null | null | null | backend/todo/serializers.py | jimbofreedman/naggingnelly-backend | a1e64089915ad80a2d3d8cd0252bc2bcd0e1f475 | [
"MIT"
] | null | null | null | backend/todo/serializers.py | jimbofreedman/naggingnelly-backend | a1e64089915ad80a2d3d8cd0252bc2bcd0e1f475 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import Context, TodoItem
class ContextSerializer(serializers.ModelSerializer):
class Meta:
model = Context
fields = ['id', 'name', ]
class TodoItemSerializer(serializers.ModelSerializer):
class Meta:
model = TodoItem
fields... | 28.444444 | 118 | 0.646484 | 47 | 512 | 6.978723 | 0.702128 | 0.158537 | 0.189024 | 0.213415 | 0.243902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214844 | 512 | 17 | 119 | 30.117647 | 0.81592 | 0 | 0 | 0.181818 | 0 | 0 | 0.221135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
fe7f41e6f7211e9d61cbeec8ac1571b54c6bc9d2 | 341 | py | Python | ex035 - Analisador de trinagulos.py | CelsoAntunesNogueira/Phyton3 | 3a7ec8d7a6f996b2d3c36a9c6d239707e76aace4 | [
"MIT"
] | null | null | null | ex035 - Analisador de trinagulos.py | CelsoAntunesNogueira/Phyton3 | 3a7ec8d7a6f996b2d3c36a9c6d239707e76aace4 | [
"MIT"
] | null | null | null | ex035 - Analisador de trinagulos.py | CelsoAntunesNogueira/Phyton3 | 3a7ec8d7a6f996b2d3c36a9c6d239707e76aace4 | [
"MIT"
] | null | null | null | print( '-=' *30)
print('Analisador de triângulos')
print( '-=' *30)
a = float(input('Digite o primeiro segmento:'))
b = float(input('Digite o segundo segmento:'))
c = float(input('Digite o terceiro segmento'))
if a < b + c and b < c+ a and c < a +b:
print('Podem se formar um trinagulo!')
else:
print('Não podem ... | 34.1 | 47 | 0.651026 | 54 | 341 | 4.111111 | 0.481481 | 0.135135 | 0.216216 | 0.22973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.178886 | 341 | 10 | 48 | 34.1 | 0.778571 | 0 | 0 | 0.2 | 0 | 0 | 0.482456 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
fe8a6ef16e60b6f66e87586b3f94def471955da0 | 874 | py | Python | server/main.py | jamesrappazzo/beta-list | 5b52630080b4d3b16f27f1be63cfecad50d28ba6 | [
"MIT"
] | null | null | null | server/main.py | jamesrappazzo/beta-list | 5b52630080b4d3b16f27f1be63cfecad50d28ba6 | [
"MIT"
] | null | null | null | server/main.py | jamesrappazzo/beta-list | 5b52630080b4d3b16f27f1be63cfecad50d28ba6 | [
"MIT"
] | null | null | null |
from waitress import serve
from mongo.models.patient_model import Patient
from connect import connect_to_db
from flask import Flask
from flask_restful import Resource, Api
from flask_cors import CORS, cross_origin
from mongoengine import *
import json
app = Flask(__name__)
CORS(app, origins='http://localhost:8000')
ap... | 24.971429 | 63 | 0.702517 | 122 | 874 | 4.827869 | 0.442623 | 0.040747 | 0.037351 | 0.061121 | 0.057725 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031421 | 0.162471 | 874 | 34 | 64 | 25.705882 | 0.773224 | 0.183066 | 0 | 0 | 0 | 0 | 0.096045 | 0.029661 | 0 | 0 | 0 | 0.029412 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fe9f43c7023cf6a5f0fc5c7c7c3adff3e3542d86 | 3,581 | py | Python | Configuration/Generator/python/Herwig7_Matchbox_aMCatNLO_Herwig_ppTojj_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | Configuration/Generator/python/Herwig7_Matchbox_aMCatNLO_Herwig_ppTojj_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | Configuration/Generator/python/Herwig7_Matchbox_aMCatNLO_Herwig_ppTojj_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
generator = cms.EDFilter("Herwig7GeneratorFilter",
hwpp_cmsDefaults = cms.vstring('+hwpp_basicSetup',
'+hwpp_setParticlesStableForDetector'),
run = cms.string('InterfaceMatchboxTest'),
dumpConfig = cms.untracked.string('HerwigConfig.in'),
repository = ... | 45.329114 | 96 | 0.688634 | 377 | 3,581 | 6.519894 | 0.31565 | 0.095199 | 0.146461 | 0.162327 | 0.340928 | 0.221318 | 0.168836 | 0.168836 | 0.168836 | 0.147681 | 0 | 0.011145 | 0.173136 | 3,581 | 78 | 97 | 45.910256 | 0.81898 | 0 | 0 | 0.027027 | 0 | 0 | 0.654007 | 0.445965 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.013514 | 0 | 0.013514 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
feba04bd1a873dc1786741438a7dc0f1a5392180 | 74 | py | Python | costar_planning_interface/python/costar_planning_interface/__init__.py | cpaxton/costar_plan | be5c12f9d0e9d7078e6a5c283d3be059e7f3d040 | [
"Apache-2.0"
] | 66 | 2018-10-31T04:58:53.000Z | 2022-03-17T02:32:25.000Z | costar_planning_interface/python/costar_planning_interface/__init__.py | cpaxton/costar_plan | be5c12f9d0e9d7078e6a5c283d3be059e7f3d040 | [
"Apache-2.0"
] | 8 | 2018-10-23T21:19:25.000Z | 2018-12-03T02:08:41.000Z | costar_planning_interface/python/costar_planning_interface/__init__.py | cpaxton/costar_plan | be5c12f9d0e9d7078e6a5c283d3be059e7f3d040 | [
"Apache-2.0"
] | 25 | 2018-10-19T00:54:17.000Z | 2021-10-10T08:28:15.000Z |
from interface import PlanningInterface
__all__ = ["PlanningInterface"]
| 14.8 | 39 | 0.810811 | 6 | 74 | 9.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121622 | 74 | 4 | 40 | 18.5 | 0.861538 | 0 | 0 | 0 | 0 | 0 | 0.232877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
228d7e558c831f9735f0b2744ea09d22e946a66f | 196 | py | Python | paminco/utils/__init__.py | paminco/paminco | 2b8da7cc83adde3c72af5150cf6d7294ff6fd29e | [
"MIT"
] | 4 | 2021-12-30T06:25:09.000Z | 2022-01-06T17:28:57.000Z | paminco/utils/__init__.py | paminco/paminco | 2b8da7cc83adde3c72af5150cf6d7294ff6fd29e | [
"MIT"
] | 9 | 2021-12-13T07:38:13.000Z | 2021-12-21T16:43:15.000Z | paminco/utils/__init__.py | paminco/paminco | 2b8da7cc83adde3c72af5150cf6d7294ff6fd29e | [
"MIT"
] | null | null | null | # flake8: noqa
from .bisec import *
from .io import *
from .math import *
from .misc import *
from .testing import *
from .typing import *
__all__ = [s for s in dir() if not s.startswith("_")]
| 16.333333 | 53 | 0.673469 | 30 | 196 | 4.233333 | 0.6 | 0.393701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00641 | 0.204082 | 196 | 11 | 54 | 17.818182 | 0.807692 | 0.061224 | 0 | 0 | 0 | 0 | 0.005495 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.857143 | 0 | 0.857143 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2290d680766e67d0415c2c192500dfeb36b16b14 | 236 | py | Python | pixivpy3/__init__.py | kerosukedakero/pixivpy | 73aebe18bff761bb682a37774d8df740708d3b1d | [
"Unlicense"
] | null | null | null | pixivpy3/__init__.py | kerosukedakero/pixivpy | 73aebe18bff761bb682a37774d8df740708d3b1d | [
"Unlicense"
] | null | null | null | pixivpy3/__init__.py | kerosukedakero/pixivpy | 73aebe18bff761bb682a37774d8df740708d3b1d | [
"Unlicense"
] | null | null | null | """
Pixiv API library
"""
__version__ = '3.6.1'
from .papi import PixivAPI
from .aapi import AppPixivAPI
from .bapi import ByPassSniApi
from .utils import PixivError
__all__ = ('PixivAPI', 'AppPixivAPI', 'ByPassSniApi', 'PixivError')
| 19.666667 | 67 | 0.741525 | 28 | 236 | 5.964286 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014706 | 0.135593 | 236 | 11 | 68 | 21.454545 | 0.803922 | 0.072034 | 0 | 0 | 0 | 0 | 0.218009 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
22975ebdda4754d6f226871365bde62355dcf91b | 239 | py | Python | odoo-13.0/addons/test_website/tests/test_session.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | null | null | null | odoo-13.0/addons/test_website/tests/test_session.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | null | null | null | odoo-13.0/addons/test_website/tests/test_session.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | null | null | null | import odoo.tests
from odoo.tools import mute_logger
@odoo.tests.common.tagged('post_install', '-at_install')
class TestWebsiteSession(odoo.tests.HttpCase):
def test_01_run_test(self):
self.start_tour('/', 'test_json_auth')
| 23.9 | 56 | 0.748954 | 34 | 239 | 5 | 0.705882 | 0.158824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009524 | 0.121339 | 239 | 9 | 57 | 26.555556 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.158996 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
22b27bf8b0fa39dd32394242080cffc1fe53178e | 123 | py | Python | python_modules/dagster/dagster/core/storage/runs/sqlite/__init__.py | xhochy/dagster | 120269fb3b29b8c5e8943624df4b971e04f59b92 | [
"Apache-2.0"
] | 1 | 2019-11-25T19:03:32.000Z | 2019-11-25T19:03:32.000Z | python_modules/dagster/dagster/core/storage/runs/sqlite/__init__.py | xhochy/dagster | 120269fb3b29b8c5e8943624df4b971e04f59b92 | [
"Apache-2.0"
] | null | null | null | python_modules/dagster/dagster/core/storage/runs/sqlite/__init__.py | xhochy/dagster | 120269fb3b29b8c5e8943624df4b971e04f59b92 | [
"Apache-2.0"
] | null | null | null | from .sqlite_run_storage import (
RunStorageSQLMetadata,
SQLRunStorage,
SqliteRunStorage,
create_engine,
)
| 17.571429 | 33 | 0.739837 | 10 | 123 | 8.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203252 | 123 | 6 | 34 | 20.5 | 0.897959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
22d147c07511373b94eca9634424b3b7ba76394d | 288 | wsgi | Python | web-ldap-query/server.wsgi | chaosre/iac | e640d9d43655c6781aba28e353c9e5c5e39394ee | [
"MIT"
] | 1 | 2021-09-07T22:01:59.000Z | 2021-09-07T22:01:59.000Z | web-ldap-query/server.wsgi | chaosre/iac | e640d9d43655c6781aba28e353c9e5c5e39394ee | [
"MIT"
] | null | null | null | web-ldap-query/server.wsgi | chaosre/iac | e640d9d43655c6781aba28e353c9e5c5e39394ee | [
"MIT"
] | null | null | null | import sys
import os
sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)))
def application(environ, start_response):
for key in environ:
if isinstance(environ[key], str):
os.environ[key] = environ[key]
from server import app
return app(environ, start_response) | 28.8 | 64 | 0.736111 | 43 | 288 | 4.790698 | 0.55814 | 0.145631 | 0.194175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004082 | 0.149306 | 288 | 10 | 65 | 28.8 | 0.836735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
22f50ec32ed3e1b77b34bff2168e53d698ea8a7d | 158 | py | Python | salesforce_bulk/bulk_states.py | pelucid/salesforce_bulk | 1adf711a3a20f021ec8a93aefca0d240f2cf9859 | [
"MIT"
] | 23 | 2016-12-15T12:48:23.000Z | 2021-04-09T20:39:14.000Z | salesforce_bulk/bulk_states.py | pelucid/salesforce_bulk | 1adf711a3a20f021ec8a93aefca0d240f2cf9859 | [
"MIT"
] | 3 | 2016-12-21T18:23:17.000Z | 2017-07-31T14:53:01.000Z | salesforce_bulk/bulk_states.py | pelucid/salesforce_bulk | 1adf711a3a20f021ec8a93aefca0d240f2cf9859 | [
"MIT"
] | 10 | 2016-12-21T11:40:23.000Z | 2019-05-06T08:44:25.000Z | ABORTED = 'Aborted'
FAILED = 'Failed'
NOT_PROCESSED = 'Not Processed'
COMPLETED = 'Completed'
ERROR_STATES = (
ABORTED,
FAILED,
NOT_PROCESSED,
)
| 14.363636 | 31 | 0.677215 | 16 | 158 | 6.5 | 0.4375 | 0.346154 | 0.346154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208861 | 158 | 10 | 32 | 15.8 | 0.832 | 0 | 0 | 0 | 0 | 0 | 0.221519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
22f8957a81cb6fcb9f7fa2497cdb7f666ca13567 | 630 | py | Python | sample/integration/original.py | markuswissinger/ducktestpy | 4e9f75edc2bd953f670639a4a4ce9ad10a6a3577 | [
"Apache-2.0"
] | 4 | 2016-07-18T08:46:11.000Z | 2017-08-12T14:24:49.000Z | sample/integration/original.py | markuswissinger/ducktestpy | 4e9f75edc2bd953f670639a4a4ce9ad10a6a3577 | [
"Apache-2.0"
] | null | null | null | sample/integration/original.py | markuswissinger/ducktestpy | 4e9f75edc2bd953f670639a4a4ce9ad10a6a3577 | [
"Apache-2.0"
] | null | null | null | def generator_example():
yield 1
def non_builtin_example(a):
return a
def mock_example(a):
return a
def list_example(a):
return a
def multi_line_docstring_example():
"""
La \ndi dee
One
Two
Three
"""
return 'Eric the half a bee'
def two_line_docstring():
"""a b ... | 11.454545 | 35 | 0.606349 | 95 | 630 | 3.821053 | 0.4 | 0.096419 | 0.137741 | 0.121212 | 0.341598 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009009 | 0.295238 | 630 | 54 | 36 | 11.666667 | 0.808559 | 0.152381 | 0 | 0.363636 | 0 | 0 | 0.03854 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.272727 | 0.954545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fe13bea7728302a8c4b0aec893ab6315f85846c6 | 853 | py | Python | mmdet/models/classifiers/base.py | anorthman/mmdetection | 52e28154364f0e19d11c206bb357d88f29fc4a2d | [
"Apache-2.0"
] | 5 | 2019-06-11T11:08:54.000Z | 2021-03-25T10:06:01.000Z | mmdet/models/classifiers/base.py | anorthman/mmdetection | 52e28154364f0e19d11c206bb357d88f29fc4a2d | [
"Apache-2.0"
] | null | null | null | mmdet/models/classifiers/base.py | anorthman/mmdetection | 52e28154364f0e19d11c206bb357d88f29fc4a2d | [
"Apache-2.0"
] | 1 | 2019-06-11T11:08:55.000Z | 2019-06-11T11:08:55.000Z | import logging
from abc import ABCMeta, abstractmethod
import mmcv
import numpy as np
import torch.nn as nn
class BaseClassifier(nn.Module):
"""Base class for classifier"""
__metaclass__ = ABCMeta
def __init__(self):
super(BaseClassifier, self).__init__()
@abstractmethod
def ... | 25.848485 | 65 | 0.638921 | 100 | 853 | 5.26 | 0.48 | 0.057034 | 0.053232 | 0.076046 | 0.129278 | 0.129278 | 0.129278 | 0 | 0 | 0 | 0 | 0 | 0.260258 | 853 | 32 | 66 | 26.65625 | 0.833597 | 0.029308 | 0 | 0.086957 | 0 | 0 | 0.023114 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0.086957 | 0.217391 | 0 | 0.608696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
fe1a23ecd2a0b586f65f75872261c2091b4838ae | 174 | py | Python | kitt/gpu/utils.py | vojtechcima/kitt | c499523be6ad5db2ed6a214ca217597dc16282a4 | [
"MIT"
] | null | null | null | kitt/gpu/utils.py | vojtechcima/kitt | c499523be6ad5db2ed6a214ca217597dc16282a4 | [
"MIT"
] | null | null | null | kitt/gpu/utils.py | vojtechcima/kitt | c499523be6ad5db2ed6a214ca217597dc16282a4 | [
"MIT"
] | null | null | null | def gpu_share_memory():
import tensorflow as tf
for device in tf.config.list_physical_devices("GPU"):
tf.config.experimental.set_memory_growth(device, True)
| 29 | 62 | 0.741379 | 25 | 174 | 4.92 | 0.76 | 0.130081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 174 | 5 | 63 | 34.8 | 0.848276 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a3b88f91c7ab98b1aa9e6ce9bf84efba0f694a0b | 198 | py | Python | irekua_rest_api/permissions/users.py | IslasGECI/irekua-rest-api | 35cf5153ed7f54d12ebad2ac07d472585f04e3e7 | [
"BSD-4-Clause"
] | null | null | null | irekua_rest_api/permissions/users.py | IslasGECI/irekua-rest-api | 35cf5153ed7f54d12ebad2ac07d472585f04e3e7 | [
"BSD-4-Clause"
] | 11 | 2020-03-28T18:51:50.000Z | 2022-01-13T01:47:40.000Z | irekua_rest_api/permissions/users.py | IslasGECI/irekua-rest-api | 35cf5153ed7f54d12ebad2ac07d472585f04e3e7 | [
"BSD-4-Clause"
] | 1 | 2021-05-06T19:38:14.000Z | 2021-05-06T19:38:14.000Z | from rest_framework.permissions import BasePermission
class IsSelf(BasePermission):
def has_object_permission(self, request, view, obj):
user = request.user
return user == obj
| 24.75 | 56 | 0.727273 | 23 | 198 | 6.130435 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20202 | 198 | 7 | 57 | 28.285714 | 0.892405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a3bdab1acec9c5a7fda3a9aac49d822071037355 | 176 | py | Python | MyProject/API_basic/urls.py | Ankuraxz/Django-REST-Framework | 60f0921da4ecde6ccf12048691da0d42fe952434 | [
"MIT"
] | null | null | null | MyProject/API_basic/urls.py | Ankuraxz/Django-REST-Framework | 60f0921da4ecde6ccf12048691da0d42fe952434 | [
"MIT"
] | 7 | 2020-02-12T03:15:17.000Z | 2022-02-10T10:04:28.000Z | api_basic/urls.py | C16735211/webmap2 | 1111539348bd6bfe3312537253147def014bd432 | [
"MIT"
] | null | null | null | from django.urls import path
from .views import article_list, article_detail
urlpatterns = [
path('article/', article_list),
path('detail/<int:pk>/', article_detail)
] | 25.142857 | 47 | 0.727273 | 23 | 176 | 5.391304 | 0.521739 | 0.177419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142045 | 176 | 7 | 48 | 25.142857 | 0.821192 | 0 | 0 | 0 | 0 | 0 | 0.135593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a3d9caa1c5a818bd724b264024d06d5cd46d5f6e | 76 | py | Python | 1. Beginner/URI1004.py | antuniooh/uri-resolutions | c2844a9a6e2fae350293d6d24b0551691e7c8656 | [
"MIT"
] | null | null | null | 1. Beginner/URI1004.py | antuniooh/uri-resolutions | c2844a9a6e2fae350293d6d24b0551691e7c8656 | [
"MIT"
] | null | null | null | 1. Beginner/URI1004.py | antuniooh/uri-resolutions | c2844a9a6e2fae350293d6d24b0551691e7c8656 | [
"MIT"
] | null | null | null | a = int(input(""))
b = int(input(""))
x = (a*b)
print("PROD = " + str(x))
| 10.857143 | 25 | 0.447368 | 13 | 76 | 2.615385 | 0.615385 | 0.470588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 76 | 6 | 26 | 12.666667 | 0.566667 | 0 | 0 | 0 | 0 | 0 | 0.092105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a3ed131987c0c529c32f92f1e2020fff37d14caa | 1,292 | py | Python | protodb/directory_class.py | nayas360/protodb-python | fbe2dd5c8eb251e19b1442fb367e1db3fb75a039 | [
"Apache-2.0"
] | null | null | null | protodb/directory_class.py | nayas360/protodb-python | fbe2dd5c8eb251e19b1442fb367e1db3fb75a039 | [
"Apache-2.0"
] | null | null | null | protodb/directory_class.py | nayas360/protodb-python | fbe2dd5c8eb251e19b1442fb367e1db3fb75a039 | [
"Apache-2.0"
] | null | null | null | # the directory class for protodb
# it can handle listing and making directories and documents
from . import protodb_pb2 as pdb
from . import utils
from . import document_class
# protodb directory wrapper
class ProtoDBDirectory:
def __init__(self, directory):
if not isinstance(directory, pdb.ProtoDBDirec... | 31.512195 | 103 | 0.655573 | 149 | 1,292 | 5.503356 | 0.395973 | 0.059756 | 0.058537 | 0.082927 | 0.146341 | 0.146341 | 0.043902 | 0 | 0 | 0 | 0 | 0.002068 | 0.251548 | 1,292 | 40 | 104 | 32.3 | 0.845915 | 0.089783 | 0 | 0.071429 | 0 | 0 | 0.063993 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.107143 | 0.142857 | 0.535714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a3f83d61b2713b316a644b98df8bb0d7c47cf710 | 158 | py | Python | First course/1st semester/proba.py | tekcellat/University | 9a0196a45c9cf33ac58018d636c3e4857eba0330 | [
"MIT"
] | null | null | null | First course/1st semester/proba.py | tekcellat/University | 9a0196a45c9cf33ac58018d636c3e4857eba0330 | [
"MIT"
] | null | null | null | First course/1st semester/proba.py | tekcellat/University | 9a0196a45c9cf33ac58018d636c3e4857eba0330 | [
"MIT"
] | 7 | 2020-12-04T07:26:46.000Z | 2022-03-08T17:47:47.000Z | a = ['Alpha','Betta','Qamma','Delta']
'c' = input('Input word')
for i in range(len(a)):
while True:
del 'c'
else:
print('pzd')
| 19.75 | 38 | 0.481013 | 22 | 158 | 3.454545 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.303797 | 158 | 7 | 39 | 22.571429 | 0.690909 | 0 | 0 | 0 | 0 | 0 | 0.231788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
431ec7297bc2370316abe6b5f4d5dd82bff4a01a | 1,205 | py | Python | baseline_agent.py | lobachevzky/on-policy-curiosity | 1d1e9c05b04d313d15e698fb8a05c3116085381f | [
"MIT"
] | 1 | 2021-11-22T09:43:13.000Z | 2021-11-22T09:43:13.000Z | baseline_agent.py | lobachevzky/on-policy-curiosity | 1d1e9c05b04d313d15e698fb8a05c3116085381f | [
"MIT"
] | 2 | 2019-12-17T04:05:25.000Z | 2020-03-18T18:38:31.000Z | baseline_agent.py | lobachevzky/on-policy-curiosity | 1d1e9c05b04d313d15e698fb8a05c3116085381f | [
"MIT"
] | 1 | 2020-05-29T15:14:36.000Z | 2020-05-29T15:14:36.000Z | from dataclasses import dataclass
import torch
import torch.nn as nn
import our_agent
@dataclass
class Agent(our_agent.Agent):
def __hash__(self):
return self.hash()
def build_beta(self):
return None
def build_d_gate(self):
return None
def build_encode_G(self):
retu... | 21.909091 | 66 | 0.619087 | 174 | 1,205 | 4.051724 | 0.33908 | 0.113475 | 0.073759 | 0.07234 | 0.141844 | 0.079433 | 0.079433 | 0 | 0 | 0 | 0 | 0.009292 | 0.285477 | 1,205 | 54 | 67 | 22.314815 | 0.809524 | 0 | 0 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.102564 | 0.307692 | 0.794872 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
432a143e9fe6e08b562721bb8aa2b6c562f281d0 | 2,851 | py | Python | extras/update_paintings.py | huderlem/mcdungeon | fb81fa13808662b0c44ea7cb022d0e32871c0c53 | [
"MIT"
] | 1 | 2021-01-12T11:37:16.000Z | 2021-01-12T11:37:16.000Z | extras/update_paintings.py | huderlem/mcdungeon | fb81fa13808662b0c44ea7cb022d0e32871c0c53 | [
"MIT"
] | null | null | null | extras/update_paintings.py | huderlem/mcdungeon | fb81fa13808662b0c44ea7cb022d0e32871c0c53 | [
"MIT"
] | null | null | null | import sys
import os
import hashlib
import shutil
print "Quick and dirty tool to update paintings in an existing world."
if (len(sys.argv) != 2):
print 'Usage: update_paintings.py <path to world folder>'
print 'When using a bukkit setup remember to provide the primary world'
print "Always make a backup."
... | 54.826923 | 90 | 0.606103 | 459 | 2,851 | 3.694989 | 0.655773 | 0.017689 | 0.029481 | 0.01533 | 0.020047 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110773 | 0.192564 | 2,851 | 52 | 91 | 54.826923 | 0.625977 | 0.00947 | 0 | 0 | 0 | 0.333333 | 0.613669 | 0.379249 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.088889 | null | null | 0.133333 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
432eeaedc969321321cef92ff01ca88d185f9321 | 386 | py | Python | spec/python/test_cast_to_imported.py | DarkShadow44/kaitai_struct_tests | 4bb13cef82965cca66dda2eb2b77cd64e9f70a12 | [
"MIT"
] | 11 | 2018-04-01T03:58:15.000Z | 2021-08-14T09:04:55.000Z | spec/python/test_cast_to_imported.py | DarkShadow44/kaitai_struct_tests | 4bb13cef82965cca66dda2eb2b77cd64e9f70a12 | [
"MIT"
] | 73 | 2016-07-20T10:27:15.000Z | 2020-12-17T18:56:46.000Z | spec/python/test_cast_to_imported.py | DarkShadow44/kaitai_struct_tests | 4bb13cef82965cca66dda2eb2b77cd64e9f70a12 | [
"MIT"
] | 37 | 2016-08-15T08:25:56.000Z | 2021-08-28T14:48:46.000Z | # Autogenerated from KST: please remove this line if doing any edits by hand!
import unittest
from cast_to_imported import CastToImported
class TestCastToImported(unittest.TestCase):
def test_cast_to_imported(self):
with CastToImported.from_file('src/fixed_struct.bin') as r:
self.assertEqual(... | 32.166667 | 77 | 0.738342 | 54 | 386 | 5.12963 | 0.685185 | 0.043321 | 0.101083 | 0.137184 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012698 | 0.183938 | 386 | 11 | 78 | 35.090909 | 0.866667 | 0.194301 | 0 | 0 | 1 | 0 | 0.064725 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.142857 | false | 0 | 0.714286 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4a39a138a0dd3d3374243a30bb797c4a15b922e7 | 6,002 | py | Python | tests/compiler/utils.py | pretl/ALIGN-public | 4b03042d9e96fa669740427842b0bf268b0c9a86 | [
"BSD-3-Clause"
] | null | null | null | tests/compiler/utils.py | pretl/ALIGN-public | 4b03042d9e96fa669740427842b0bf268b0c9a86 | [
"BSD-3-Clause"
] | null | null | null | tests/compiler/utils.py | pretl/ALIGN-public | 4b03042d9e96fa669740427842b0bf268b0c9a86 | [
"BSD-3-Clause"
] | null | null | null | import os
import pathlib
import shutil
import json
import textwrap
my_dir = pathlib.Path(__file__).resolve().parent
pdk_path = (
pathlib.Path(__file__).resolve().parent.parent.parent
/ "pdks"
/ "FinFET14nm_Mock_PDK"
)
config_path = pathlib.Path(__file__).resolve().parent.parent / "files"
out_path = pathlib... | 34.297143 | 137 | 0.634455 | 1,073 | 6,002 | 3.415657 | 0.167754 | 0.072033 | 0.08513 | 0.113506 | 0.780355 | 0.747067 | 0.729604 | 0.683765 | 0.6603 | 0.583902 | 0 | 0.101145 | 0.286738 | 6,002 | 174 | 138 | 34.494253 | 0.754964 | 0 | 0 | 0.428571 | 0 | 0.006494 | 0.716428 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058442 | false | 0 | 0.032468 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4a3f7d7eb9489f184a5abd90fb306c77751f18c6 | 500 | py | Python | surfcar/articles/forms.py | bzhou26/surfcar | e2396107856bf36d2eb488a26935bad6bdf7ef38 | [
"MIT"
] | null | null | null | surfcar/articles/forms.py | bzhou26/surfcar | e2396107856bf36d2eb488a26935bad6bdf7ef38 | [
"MIT"
] | null | null | null | surfcar/articles/forms.py | bzhou26/surfcar | e2396107856bf36d2eb488a26935bad6bdf7ef38 | [
"MIT"
] | null | null | null | from django import forms
from surfcar.articles.models import Article
class ArticleForm(forms.ModelForm):
status = forms.CharField(widget=forms.HiddenInput())
title = forms.CharField(
widget=forms.TextInput(attrs={'class': 'form-control'}),
max_length=255)
content = forms.CharField(
... | 27.777778 | 64 | 0.656 | 55 | 500 | 5.927273 | 0.545455 | 0.128834 | 0.184049 | 0.230061 | 0.184049 | 0.184049 | 0 | 0 | 0 | 0 | 0 | 0.017677 | 0.208 | 500 | 17 | 65 | 29.411765 | 0.805556 | 0 | 0 | 0 | 0 | 0 | 0.112 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4aa1e5d13d6ffeaee1ce6bb055561f54043492d2 | 300 | py | Python | LeetCode_Solutions/1913. Maximum Product Difference Between Two Pairs.py | foxfromworld/LeetCode-and-Algorithm | 9deb52b375bcc53e60e32107db201c26a1634471 | [
"BSD-2-Clause"
] | null | null | null | LeetCode_Solutions/1913. Maximum Product Difference Between Two Pairs.py | foxfromworld/LeetCode-and-Algorithm | 9deb52b375bcc53e60e32107db201c26a1634471 | [
"BSD-2-Clause"
] | null | null | null | LeetCode_Solutions/1913. Maximum Product Difference Between Two Pairs.py | foxfromworld/LeetCode-and-Algorithm | 9deb52b375bcc53e60e32107db201c26a1634471 | [
"BSD-2-Clause"
] | null | null | null | # Source : https://leetcode.com/problems/maximum-product-difference-between-two-pairs/
# Author : foxfromworld
# Date : 16/12/2021
# First attempt
class Solution:
def maxProductDifference(self, nums: List[int]) -> int:
nums.sort()
return nums[-1] * nums[-2] - nums[0] * nums[1]
| 30 | 86 | 0.663333 | 39 | 300 | 5.102564 | 0.820513 | 0.050251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0.18 | 300 | 9 | 87 | 33.333333 | 0.760163 | 0.463333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4ac4c1975fb98bc758c3cd34d41a1eaff65e1db4 | 76 | py | Python | module_1.py | VadimPolyanskii/learn_in_python_5 | f66b9951ff5e5179e4811a8ce903ba1431776fab | [
"MIT"
] | null | null | null | module_1.py | VadimPolyanskii/learn_in_python_5 | f66b9951ff5e5179e4811a8ce903ba1431776fab | [
"MIT"
] | null | null | null | module_1.py | VadimPolyanskii/learn_in_python_5 | f66b9951ff5e5179e4811a8ce903ba1431776fab | [
"MIT"
] | null | null | null | # Модуль 1
def f(a, b):
summ = a + b
return summ
print(f(10, 20)) | 9.5 | 16 | 0.513158 | 15 | 76 | 2.6 | 0.733333 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098039 | 0.328947 | 76 | 8 | 17 | 9.5 | 0.666667 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
436a4d912213b9c11aea37cdad0e023fcf44654b | 245 | py | Python | qqbot/core/network/ws/ws_handler.py | SuperKuroko/botpy | 8e9a69ebe4d52a9a84b25047595925525495f402 | [
"MIT"
] | null | null | null | qqbot/core/network/ws/ws_handler.py | SuperKuroko/botpy | 8e9a69ebe4d52a9a84b25047595925525495f402 | [
"MIT"
] | null | null | null | qqbot/core/network/ws/ws_handler.py | SuperKuroko/botpy | 8e9a69ebe4d52a9a84b25047595925525495f402 | [
"MIT"
] | null | null | null | class DefaultHandler:
"""
持有handler的实例
"""
plain = None
guild = None
guild_member = None
channel = None
message = None
at_message = None
direct_message = None
audio = None
message_reaction = None
| 16.333333 | 27 | 0.604082 | 25 | 245 | 5.76 | 0.52 | 0.229167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.330612 | 245 | 14 | 28 | 17.5 | 0.878049 | 0.04898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4378f8d98191d17c4171afaceea290bae72a194f | 1,011 | py | Python | backserver.py | o-matsuo/puppeteer | 5c44ce6a085e7fd831d4c18860cae9f7835a893c | [
"MIT"
] | 17 | 2019-07-13T22:57:32.000Z | 2021-07-23T14:29:32.000Z | backserver.py | yuyasugano/puppeteer | 5c44ce6a085e7fd831d4c18860cae9f7835a893c | [
"MIT"
] | 3 | 2019-07-16T14:21:44.000Z | 2021-06-01T23:55:43.000Z | backserver.py | yuyasugano/puppeteer | 5c44ce6a085e7fd831d4c18860cae9f7835a893c | [
"MIT"
] | 3 | 2019-07-16T12:28:18.000Z | 2020-07-23T05:37:52.000Z | # -*- coding: utf-8 -*-
# ==========================================
# システムモジュール
# ==========================================
import sys
# ==========================================
# python backserver <実行ファイルのフルパス> <実行定義JSONファイルのフルパス>
# ==========================================
args = sys.argv
# ===================... | 25.923077 | 53 | 0.22453 | 38 | 1,011 | 5.657895 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001176 | 0.159248 | 1,011 | 38 | 54 | 26.605263 | 0.251765 | 0.718101 | 0 | 0 | 0 | 0 | 0.030769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.111111 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
437a9bdcc9d0b87360b09389571048b94f8d7791 | 77 | py | Python | cgc/cgc.py | cffbots/cgc | 1ea8b6bb6e4e9e728aff493744d8646b4953eaa4 | [
"Apache-2.0"
] | 11 | 2020-09-04T10:28:48.000Z | 2022-03-10T13:56:43.000Z | cgc/cgc.py | cffbots/cgc | 1ea8b6bb6e4e9e728aff493744d8646b4953eaa4 | [
"Apache-2.0"
] | 40 | 2020-08-19T09:23:15.000Z | 2022-03-01T16:16:30.000Z | cgc/cgc.py | phenology/geoclustering | 9b9b6ab8e64cdb62dbed6bdcfe63612e99665fd1 | [
"Apache-2.0"
] | 4 | 2020-10-03T21:17:18.000Z | 2022-03-09T14:32:56.000Z | # -*- coding: utf-8 -*-
import logging
logger = logging.getLogger(__name__)
| 15.4 | 36 | 0.688312 | 9 | 77 | 5.444444 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.142857 | 77 | 4 | 37 | 19.25 | 0.727273 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4388f60abba23f95f7f1897fa23a2a9d116d3327 | 85 | py | Python | photoshop/__init__.py | MrTeferi/photoshop-python-api | 3467c345c836e0515af793d365edb83fe9166643 | [
"MIT"
] | 270 | 2020-04-11T22:41:20.000Z | 2022-03-29T09:16:43.000Z | photoshop/__init__.py | MrTeferi/photoshop-python-api | 3467c345c836e0515af793d365edb83fe9166643 | [
"MIT"
] | 67 | 2020-04-18T08:12:34.000Z | 2022-03-31T16:51:56.000Z | venv/Lib/site-packages/photoshop/__init__.py | philliphqs/StreamDeck | 0edc20cc5dd35238c0a6ec8988c92934c3c613b0 | [
"MIT"
] | 32 | 2020-05-13T10:51:04.000Z | 2022-03-19T02:53:43.000Z | # Import local modules
from photoshop.session import Session
__all__ = ["Session"]
| 14.166667 | 37 | 0.764706 | 10 | 85 | 6.1 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152941 | 85 | 5 | 38 | 17 | 0.847222 | 0.235294 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
438e45a81bef8eb488cc0366ee9a37238f083a3e | 185 | py | Python | scrapy_cultural_sp/scrapy_cultural_sp/items.py | GCrispino/scrapy_cultural_sp | 54b7faca4fb46d4301e8b1936e10531608cbee50 | [
"MIT"
] | 21 | 2017-09-03T21:57:16.000Z | 2022-01-31T22:18:27.000Z | scrapy_cultural_sp/scrapy_cultural_sp/items.py | GCrispino/scrapy_cultural_sp | 54b7faca4fb46d4301e8b1936e10531608cbee50 | [
"MIT"
] | 2 | 2021-03-22T20:48:52.000Z | 2022-03-02T15:05:24.000Z | scrapy_cultural_sp/scrapy_cultural_sp/items.py | GCrispino/scrapy_cultural_sp | 54b7faca4fb46d4301e8b1936e10531608cbee50 | [
"MIT"
] | 10 | 2017-03-15T19:28:56.000Z | 2022-03-12T20:20:05.000Z | # -*- coding: utf-8 -*-
from scrapy.item import Item, Field
class Atracao(Item):
cidade = Field()
endereco = Field()
dia = Field()
hora = Field()
artista = Field()
| 18.5 | 35 | 0.583784 | 22 | 185 | 4.909091 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007299 | 0.259459 | 185 | 9 | 36 | 20.555556 | 0.781022 | 0.113514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
439602a2e5002b253833793f3ca9673f20796387 | 289 | py | Python | smoof/utilities.py | leopoldavezac/topdowndash | 1b0a4936b3695452a69b66158be4353e7abf6443 | [
"MIT"
] | null | null | null | smoof/utilities.py | leopoldavezac/topdowndash | 1b0a4936b3695452a69b66158be4353e7abf6443 | [
"MIT"
] | null | null | null | smoof/utilities.py | leopoldavezac/topdowndash | 1b0a4936b3695452a69b66158be4353e7abf6443 | [
"MIT"
] | null | null | null |
from typing import List
def get_not_none_elements(elements:List) -> List:
return [
el for el in elements if el != None
]
def get_index_not_none_element(elements:List) -> int:
for i, el in enumerate(elements):
if el is not None:
return i | 20.642857 | 53 | 0.622837 | 43 | 289 | 4.023256 | 0.465116 | 0.121387 | 0.138728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.304498 | 289 | 14 | 54 | 20.642857 | 0.860697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
439a7cf57bfe5dd7aef354fad8f7fb5c3138d95b | 527 | py | Python | hackerrank/Algorithms/Designer PDF Viewer/test.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | 4 | 2020-07-24T01:59:50.000Z | 2021-07-24T15:14:08.000Z | hackerrank/Algorithms/Designer PDF Viewer/test.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | hackerrank/Algorithms/Designer PDF Viewer/test.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | import unittest
import solution
class TestQ(unittest.TestCase):
def test_case_0(self):
self.assertEqual(solution.designerPdfViewer(
[1, 3, 1, 3, 1, 4, 1, 3, 2, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5],
'abc'
), 9)
def test_case_1(self):
self.assertEq... | 23.954545 | 91 | 0.497154 | 87 | 527 | 2.873563 | 0.298851 | 0.248 | 0.348 | 0.432 | 0.556 | 0.556 | 0.556 | 0.556 | 0.556 | 0.556 | 0 | 0.161017 | 0.328273 | 527 | 21 | 92 | 25.095238 | 0.545198 | 0 | 0 | 0.133333 | 0 | 0 | 0.028463 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.133333 | false | 0 | 0.133333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
78e9d86305fcb563c69571cc103374782d1d67f6 | 1,780 | py | Python | src/mips/load_store.py | IOverflow/cool-compiler-2020 | 65ee19af19973e25b79de70e0dca7721b93c82b6 | [
"MIT"
] | null | null | null | src/mips/load_store.py | IOverflow/cool-compiler-2020 | 65ee19af19973e25b79de70e0dca7721b93c82b6 | [
"MIT"
] | null | null | null | src/mips/load_store.py | IOverflow/cool-compiler-2020 | 65ee19af19973e25b79de70e0dca7721b93c82b6 | [
"MIT"
] | null | null | null | from mips.instruction import AbstractLoadNode
class LA(AbstractLoadNode):
"""
Carga la direccion de un label (indicado por src).
"""
pass
class LB(AbstractLoadNode):
"""
Carga el byte desde src en $dest.
Operacion con signo.
"""
pass
class LBU(AbstractLoadNode):
"""
Ca... | 17.115385 | 110 | 0.625281 | 214 | 1,780 | 5.200935 | 0.299065 | 0.105121 | 0.056604 | 0.07637 | 0.646002 | 0.601977 | 0.53549 | 0.503145 | 0.463612 | 0.312668 | 0 | 0.006245 | 0.280337 | 1,780 | 104 | 111 | 17.115385 | 0.862607 | 0.495506 | 0 | 0.482759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.482759 | 0.034483 | 0 | 0.517241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
78eaaf2e15e78017fe066acc750108d01747de7e | 98 | py | Python | src/views/scraping_server.py | nickitaliano/mcl-brand-sentiment- | 47cf8d369bd4bd4fc0d388f676b513c4f7e5d4ad | [
"MIT"
] | null | null | null | src/views/scraping_server.py | nickitaliano/mcl-brand-sentiment- | 47cf8d369bd4bd4fc0d388f676b513c4f7e5d4ad | [
"MIT"
] | 4 | 2020-05-27T02:17:46.000Z | 2021-05-11T02:13:23.000Z | src/views/scraping_server.py | nickitaliano/mcl-brand-sentiment- | 47cf8d369bd4bd4fc0d388f676b513c4f7e5d4ad | [
"MIT"
] | null | null | null | from os import environ
from flask import Flask
app = Flask(__name__)
app.run(environ.get('PORT'))
| 19.6 | 28 | 0.765306 | 16 | 98 | 4.4375 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122449 | 98 | 4 | 29 | 24.5 | 0.825581 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
78ebeacf9191f846cf46cea4fbd4b079201626ff | 204 | py | Python | test_urls.py | kezabelle/django-menuhin | b9c4111eed04e241c29ca8ec95c8a3ffeaac48da | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | test_urls.py | kezabelle/django-menuhin | b9c4111eed04e241c29ca8ec95c8a3ffeaac48da | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | test_urls.py | kezabelle/django-menuhin | b9c4111eed04e241c29ca8ec95c8a3ffeaac48da | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | # -*- coding: utf-8 -*-
from django.conf.urls import patterns, url, include
from django.contrib import admin
urlpatterns = patterns('',
url(r'^admin_mountpoint/', include(admin.site.urls)),
)
| 25.5 | 58 | 0.681373 | 26 | 204 | 5.307692 | 0.653846 | 0.144928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005848 | 0.161765 | 204 | 7 | 59 | 29.142857 | 0.80117 | 0.102941 | 0 | 0 | 0 | 0 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
78f547e441afa94a823fa341ee6d5d94c8eb26c7 | 1,213 | py | Python | packages/pyright-internal/src/tests/samples/tupleUnpack2.py | lipovsek/pytea | c536515a5e5947fac8871784323ba7eddc58956d | [
"MIT"
] | 1 | 2022-02-21T10:18:35.000Z | 2022-02-21T10:18:35.000Z | packages/pyright-internal/src/tests/samples/tupleUnpack2.py | lipovsek/pytea | c536515a5e5947fac8871784323ba7eddc58956d | [
"MIT"
] | 1 | 2022-01-27T19:30:44.000Z | 2022-01-27T19:30:44.000Z | packages/pyright-internal/src/tests/samples/tupleUnpack2.py | lipovsek/pytea | c536515a5e5947fac8871784323ba7eddc58956d | [
"MIT"
] | null | null | null | # This sample tests the handling of *tuple[...] as described
# in PEP 646. This test is the same as tupleUnpack1.py but
# it uses the * syntax instead of the backward compatibility
# "Unpack" form.
from typing import Union
def func1(v1: tuple[int, *tuple[bool, bool], str]):
reveal_type(v1, expected_text="tuple[i... | 28.880952 | 76 | 0.672712 | 178 | 1,213 | 4.52809 | 0.376404 | 0.133995 | 0.086849 | 0.084367 | 0.375931 | 0.280397 | 0.220844 | 0.220844 | 0.163772 | 0.163772 | 0 | 0.024438 | 0.156636 | 1,213 | 41 | 77 | 29.585366 | 0.763441 | 0.325639 | 0 | 0.176471 | 0 | 0 | 0.135802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.470588 | false | 0.176471 | 0.058824 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
601ab06877de1a6d7aaf7c31de5fdf69706820ac | 2,828 | py | Python | sigopt/log_capture.py | emattia/sigopt-python | e6b4e5240261ddbdc84a3b4061b8935873612c23 | [
"MIT"
] | 67 | 2015-03-01T02:16:47.000Z | 2021-05-10T16:17:21.000Z | sigopt/log_capture.py | emattia/sigopt-python | e6b4e5240261ddbdc84a3b4061b8935873612c23 | [
"MIT"
] | 150 | 2015-10-22T21:59:37.000Z | 2022-03-10T00:55:19.000Z | sigopt/log_capture.py | emattia/sigopt-python | e6b4e5240261ddbdc84a3b4061b8935873612c23 | [
"MIT"
] | 19 | 2016-07-10T03:46:33.000Z | 2022-02-05T12:13:01.000Z | import io
import sys
import threading
class MonitorStream(io.IOBase):
def __init__(self, original_stream):
super().__init__()
self.buffer_lock = threading.Lock()
self.original_stream = original_stream
self.buffer_stream = None
self._closed = original_stream.closed
self._replace_buffer_stream... | 24.17094 | 79 | 0.713225 | 348 | 2,828 | 5.531609 | 0.215517 | 0.072727 | 0.065455 | 0.04987 | 0.267013 | 0.208831 | 0.169351 | 0.092468 | 0.057143 | 0.057143 | 0 | 0 | 0.192362 | 2,828 | 116 | 80 | 24.37931 | 0.84282 | 0 | 0 | 0.340909 | 0 | 0 | 0.04703 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.306818 | false | 0 | 0.034091 | 0.125 | 0.568182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
60462a20d328e355b37a2f217def036080a86daa | 1,243 | py | Python | tests/models/test_model_audit.py | bitcaster-io/bitcaster | 9f1bad96e00e3bc78a22451731e231d30662b166 | [
"BSD-3-Clause"
] | 4 | 2018-03-01T10:22:30.000Z | 2020-04-04T16:31:11.000Z | tests/models/test_model_audit.py | bitcaster-io/bitcaster | 9f1bad96e00e3bc78a22451731e231d30662b166 | [
"BSD-3-Clause"
] | 60 | 2018-05-20T04:42:32.000Z | 2022-02-10T17:03:37.000Z | tests/models/test_model_audit.py | bitcaster-io/bitcaster | 9f1bad96e00e3bc78a22451731e231d30662b166 | [
"BSD-3-Clause"
] | 1 | 2018-08-04T05:06:45.000Z | 2018-08-04T05:06:45.000Z | import pytest
from bitcaster.models import AuditEvent, AuditLogEntry
@pytest.mark.django_db
def test_create_actor(organization1, user1):
c = AuditLogEntry(organization=organization1,
event=AuditEvent.MEMBER_LOGIN,
actor=user1)
c.save()
assert c.pk
@pytest.mar... | 26.446809 | 80 | 0.654867 | 136 | 1,243 | 5.816176 | 0.264706 | 0.063211 | 0.101138 | 0.11378 | 0.734513 | 0.734513 | 0.734513 | 0.618205 | 0.484197 | 0.484197 | 0 | 0.016931 | 0.239743 | 1,243 | 46 | 81 | 27.021739 | 0.820106 | 0.482703 | 0 | 0.705882 | 0 | 0 | 0.011309 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.117647 | false | 0 | 0.117647 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 0 | 0 | 0 | 3 |
6056d312b4c7a6dd21fb076809e892d4960c607e | 562 | py | Python | Game/data/blueprints/Blueprint-Townhall1.py | joaompinto/2DExplorer | 1c172c208535a3121e9fee3cf6d64b6b8ec3684f | [
"MIT"
] | 9 | 2016-07-25T04:16:46.000Z | 2020-05-07T16:27:26.000Z | Game/data/blueprints/Blueprint-Townhall1.py | joaompinto/2DExplorer | 1c172c208535a3121e9fee3cf6d64b6b8ec3684f | [
"MIT"
] | null | null | null | Game/data/blueprints/Blueprint-Townhall1.py | joaompinto/2DExplorer | 1c172c208535a3121e9fee3cf6d64b6b8ec3684f | [
"MIT"
] | 2 | 2017-03-04T09:49:02.000Z | 2020-04-10T00:13:45.000Z | blueprint = []
h = 10
w = 8
ID = 1
roofSize = 3
for wi in range(w+1):
blueprint.append((0,wi,5,6))
for hi in range(1,4):
for wi in range(1,w):
blueprint.append((hi,wi,16,8))
blueprint.append((hi,0,20,10))
blueprint.append((hi,w,20,10))
for hi in range(4,h-roofSize):
blueprint.append((hi,0,5... | 19.37931 | 46 | 0.578292 | 110 | 562 | 2.954545 | 0.218182 | 0.369231 | 0.313846 | 0.147692 | 0.326154 | 0.326154 | 0.326154 | 0.326154 | 0.326154 | 0.326154 | 0 | 0.097727 | 0.217082 | 562 | 28 | 47 | 20.071429 | 0.640909 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.409091 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
6062f1313bf2092ffe6945a9762774c5767cad45 | 6,753 | py | Python | python/aghast/aghast_generated/Histogram.py | matthewfeickert/aghast | dd5af536e24e56dc47a1f23a5e78eeb6c9f56033 | [
"BSD-3-Clause"
] | null | null | null | python/aghast/aghast_generated/Histogram.py | matthewfeickert/aghast | dd5af536e24e56dc47a1f23a5e78eeb6c9f56033 | [
"BSD-3-Clause"
] | null | null | null | python/aghast/aghast_generated/Histogram.py | matthewfeickert/aghast | dd5af536e24e56dc47a1f23a5e78eeb6c9f56033 | [
"BSD-3-Clause"
] | null | null | null | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: aghast_generated
import flatbuffers
# ///////////////////////////////////////////////// histogram
class Histogram(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsHistogram(cls, buf, offset):
n = flatbuffers... | 39.723529 | 174 | 0.658226 | 769 | 6,753 | 5.647594 | 0.139142 | 0.066083 | 0.141837 | 0.217592 | 0.590606 | 0.590606 | 0.51347 | 0.51347 | 0.503569 | 0.431729 | 0 | 0.016073 | 0.235303 | 6,753 | 169 | 175 | 39.95858 | 0.824942 | 0.045017 | 0 | 0.572519 | 1 | 0 | 0.000622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.244275 | false | 0 | 0.053435 | 0.053435 | 0.534351 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
607088e78a0a79aafc2bd5666ff0d56f2d5d357b | 103 | py | Python | init_config.py | bachew/darknodes | 3ee15b9700240163712cf24808703555903943a1 | [
"MIT"
] | null | null | null | init_config.py | bachew/darknodes | 3ee15b9700240163712cf24808703555903943a1 | [
"MIT"
] | 1 | 2020-03-07T06:51:18.000Z | 2020-03-07T06:51:18.000Z | init_config.py | bachew/inkbot | 3ee15b9700240163712cf24808703555903943a1 | [
"MIT"
] | null | null | null | def check_python_version(version):
if version < (3, 4):
raise ValueError('requires >=3.4')
| 25.75 | 42 | 0.640777 | 14 | 103 | 4.571429 | 0.714286 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049383 | 0.213592 | 103 | 3 | 43 | 34.333333 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0.135922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
607ab332ca4e1882426a218fbc14cf4544908b17 | 217 | py | Python | 2-python-intermediario (Programacao Procedural)/aula18-raise-try_except/aula18-raise-try_except.py | Leodf/projetos-python | 64e6262e6535d92624ad50148634d881608a7523 | [
"MIT"
] | null | null | null | 2-python-intermediario (Programacao Procedural)/aula18-raise-try_except/aula18-raise-try_except.py | Leodf/projetos-python | 64e6262e6535d92624ad50148634d881608a7523 | [
"MIT"
] | null | null | null | 2-python-intermediario (Programacao Procedural)/aula18-raise-try_except/aula18-raise-try_except.py | Leodf/projetos-python | 64e6262e6535d92624ad50148634d881608a7523 | [
"MIT"
] | null | null | null |
def divide(n1 , n2):
try:
return n1 / n2
except ZeroDivisionError as error:
print('Log: ', error)
raise
try:
print(divide(2,0))
except ZeroDivisionError as error:
print(error) | 18.083333 | 38 | 0.599078 | 27 | 217 | 4.814815 | 0.555556 | 0.061538 | 0.384615 | 0.461538 | 0.538462 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039474 | 0.299539 | 217 | 12 | 39 | 18.083333 | 0.815789 | 0 | 0 | 0.4 | 0 | 0 | 0.023041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 0.3 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6099095c15cc57c1ae78d8deda66f71265b28bb8 | 582 | py | Python | blackadder/__init__.py | fubuloubu/blackadder | aa5e5cb3a5052683f8aa900670d5a3dfc82766ad | [
"MIT"
] | 5 | 2020-11-02T18:54:51.000Z | 2020-11-06T16:54:59.000Z | blackadder/__init__.py | fubuloubu/blackadder | aa5e5cb3a5052683f8aa900670d5a3dfc82766ad | [
"MIT"
] | 7 | 2020-11-02T19:12:22.000Z | 2020-11-11T17:50:11.000Z | blackadder/__init__.py | fubuloubu/blackadder | aa5e5cb3a5052683f8aa900670d5a3dfc82766ad | [
"MIT"
] | 1 | 2020-11-05T20:10:45.000Z | 2020-11-05T20:10:45.000Z | from black import format_str as black_format_str
from black import FileContent
from blackadder.vyper_compat import pre_format_str, post_format_str
def format_str_override(src_contents: str, **kwargs) -> FileContent:
vyper_types_names, src_contents = pre_format_str(src_contents)
dst_contents = black_format_str... | 30.631579 | 72 | 0.802405 | 86 | 582 | 5.046512 | 0.290698 | 0.228111 | 0.103687 | 0.092166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003968 | 0.134021 | 582 | 18 | 73 | 32.333333 | 0.857143 | 0.080756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.454545 | 0 | 0.636364 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
60a7affe9117c87bb03a24182f7527363386e232 | 1,422 | bzl | Python | bazel/protobuf_bytes_deps.bzl | chokobole/protobuf_bytes | 99a0be8537f344e0ee012a519e4436686e4cfb5b | [
"BSD-3-Clause"
] | 1 | 2020-02-19T22:45:47.000Z | 2020-02-19T22:45:47.000Z | bazel/protobuf_bytes_deps.bzl | chokobole/protobuf_bytes | 99a0be8537f344e0ee012a519e4436686e4cfb5b | [
"BSD-3-Clause"
] | null | null | null | bazel/protobuf_bytes_deps.bzl | chokobole/protobuf_bytes | 99a0be8537f344e0ee012a519e4436686e4cfb5b | [
"BSD-3-Clause"
] | 1 | 2021-10-15T12:50:33.000Z | 2021-10-15T12:50:33.000Z | # Copyright (c) 2019 The ProtobufBytes Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
def protobuf_bytes_deps():
if not native.existing_rule("rules_proto"):
... | 50.785714 | 135 | 0.695499 | 127 | 1,422 | 7.629921 | 0.519685 | 0.0516 | 0.078431 | 0.039216 | 0.421053 | 0.373581 | 0.373581 | 0.167183 | 0.167183 | 0 | 0 | 0.214095 | 0.211674 | 1,422 | 28 | 136 | 50.785714 | 0.650312 | 0.115331 | 0 | 0.272727 | 0 | 0.090909 | 0.606375 | 0.25259 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | true | 0 | 0 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
60bdc4ef33666f195b0ab274b4b901f393def257 | 166 | py | Python | easy/1619-mean-of-array-after-removing-some-elements.py | changmeng72/leecode_python3 | 8384f52f0dd74b06b1b6aefa277dde6a228ff5f3 | [
"MIT"
] | null | null | null | easy/1619-mean-of-array-after-removing-some-elements.py | changmeng72/leecode_python3 | 8384f52f0dd74b06b1b6aefa277dde6a228ff5f3 | [
"MIT"
] | null | null | null | easy/1619-mean-of-array-after-removing-some-elements.py | changmeng72/leecode_python3 | 8384f52f0dd74b06b1b6aefa277dde6a228ff5f3 | [
"MIT"
] | null | null | null | class Solution:
def trimMean(self, arr: List[int]) -> float:
arr.sort()
n = len(arr) * 5 //100
return sum(arr[n:-n])/(len(arr)-(n<<1)) | 33.2 | 49 | 0.5 | 25 | 166 | 3.32 | 0.68 | 0.096386 | 0.168675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042373 | 0.289157 | 166 | 5 | 50 | 33.2 | 0.661017 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
60c0d671011c4b4fec62bdb22a25d3b2c046dd9a | 732 | py | Python | samples/hello.py | mas-student/web-python-2018-04-ht04 | 02dac18acaa0268dc280d2dd991adbbfff6c213d | [
"MIT"
] | null | null | null | samples/hello.py | mas-student/web-python-2018-04-ht04 | 02dac18acaa0268dc280d2dd991adbbfff6c213d | [
"MIT"
] | null | null | null | samples/hello.py | mas-student/web-python-2018-04-ht04 | 02dac18acaa0268dc280d2dd991adbbfff6c213d | [
"MIT"
] | null | null | null | from web_python_2018_04_ht04_framework import route, response, response_with_json, response_with_jinja2
@route('/', methods=['GET', 'POST'], strict=True)
def root(request):
return '<html><head></head><body><p>This is index page</p></body></html>'
@route('/foo(.+).*', methods=['GET'])
def foo(request, arg1):
... | 31.826087 | 103 | 0.68306 | 102 | 732 | 4.77451 | 0.411765 | 0.102669 | 0.080082 | 0.065708 | 0.110883 | 0.110883 | 0 | 0 | 0 | 0 | 0 | 0.019727 | 0.099727 | 732 | 22 | 104 | 33.272727 | 0.719272 | 0 | 0 | 0 | 0 | 0.0625 | 0.217213 | 0.102459 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.0625 | 0.3125 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
60db8346e2287f12b16ad299cebe0dc5916dab18 | 281 | py | Python | climatetalk/node_types/air_exchanger.py | kdschlosser/ClimateTalk | 3b09a45c295cf5228283d7095834e8f133ed7de3 | [
"MIT"
] | 3 | 2021-04-30T20:12:16.000Z | 2022-03-09T11:53:12.000Z | climatetalk/node_types/air_exchanger.py | kdschlosser/ClimateTalk | 3b09a45c295cf5228283d7095834e8f133ed7de3 | [
"MIT"
] | null | null | null | climatetalk/node_types/air_exchanger.py | kdschlosser/ClimateTalk | 3b09a45c295cf5228283d7095834e8f133ed7de3 | [
"MIT"
] | 2 | 2021-04-08T18:29:39.000Z | 2021-04-30T20:13:55.000Z | # -*- coding: utf-8 -*-
# Copyright 2020 Kevin Schlosser
from . import NodeType, Node
from ..mdi import air_handler
NODE_TYPE_AIR_EXCHANGER = NodeType(0x0B).set_desc('Air Exchanger')
class AirExchanger(Node, air_handler.AirHandlerMDI):
node_type = NODE_TYPE_AIR_EXCHANGER
| 21.615385 | 66 | 0.765125 | 38 | 281 | 5.394737 | 0.578947 | 0.117073 | 0.107317 | 0.195122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028807 | 0.135231 | 281 | 12 | 67 | 23.416667 | 0.814815 | 0.185053 | 0 | 0 | 0 | 0 | 0.057778 | 0 | 0 | 0 | 0.017778 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
60de45f8ebe6b4d4977463a000b73655dfc6e02d | 5,705 | py | Python | stubs.min/Autodesk/Revit/DB/__init___parts/ImageExportOptions.py | ricardyn/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | 1 | 2021-02-02T13:39:16.000Z | 2021-02-02T13:39:16.000Z | stubs.min/Autodesk/Revit/DB/__init___parts/ImageExportOptions.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | stubs.min/Autodesk/Revit/DB/__init___parts/ImageExportOptions.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | class ImageExportOptions(object,IDisposable):
"""
This class defines options for exporting views and sheets as an image.
ImageExportOptions()
"""
def Dispose(self):
""" Dispose(self: ImageExportOptions) """
pass
@staticmethod
def GetFileName(aDoc,dbViewId):
"""
GetFileName(aDoc: Document,... | 33.558824 | 215 | 0.714987 | 661 | 5,705 | 6.069592 | 0.217852 | 0.089731 | 0.053838 | 0.071785 | 0.27318 | 0.264706 | 0.247258 | 0.247258 | 0.195414 | 0.195414 | 0 | 0 | 0.182296 | 5,705 | 169 | 216 | 33.757396 | 0.860021 | 0.293777 | 0 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.289474 | false | 0.289474 | 0 | 0 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
60ead829d28a208921aca44d50b48837150715a8 | 491 | py | Python | tests/wasp1/AllAnswerSets/bug_09.test.py | bernardocuteri/wasp | 05c8f961776dbdbf7afbf905ee00fc262eba51ad | [
"Apache-2.0"
] | 19 | 2015-12-03T08:53:45.000Z | 2022-03-31T02:09:43.000Z | tests/wasp1/AllAnswerSets/bug_09.test.py | bernardocuteri/wasp | 05c8f961776dbdbf7afbf905ee00fc262eba51ad | [
"Apache-2.0"
] | 80 | 2017-11-25T07:57:32.000Z | 2018-06-10T19:03:30.000Z | tests/wasp1/AllAnswerSets/bug_09.test.py | bernardocuteri/wasp | 05c8f961776dbdbf7afbf905ee00fc262eba51ad | [
"Apache-2.0"
] | 6 | 2015-01-15T07:51:48.000Z | 2020-06-18T14:47:48.000Z | input = """
q(a,b,c).
q(b,c,a).
q(c,b,c).
q(b,b,c).
q(a,b,b).
q(c,a,a).
s(c,b).
s(a,b).
s(a,c).
s(c,c).
t(a).
t(b).
w(b,c).
w(b,b).
w(a,a).
p(X,Y) :- q(X,b,Z), r(Z,b,Y), not r(X,Y,Z).
m(X,Y) :- u(a,X,Y,Y,c,X).
v(X) :- s(a,X), not t(X).
n(X,X) :- q(X,b,X).
r(X,Y,Z) :- t(a), s(X,Z), w(X,Y), not p(Z,Y).
"""
output = ... | 15.83871 | 162 | 0.376782 | 170 | 491 | 1.088235 | 0.111765 | 0.108108 | 0.081081 | 0.086486 | 0.394595 | 0.367568 | 0.297297 | 0.172973 | 0 | 0 | 0 | 0 | 0.144603 | 491 | 30 | 163 | 16.366667 | 0.440476 | 0 | 0 | 0.08 | 0 | 0.16 | 0.934827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
60fcf2437f3ce01a700ac843e0dafd514753a677 | 1,319 | py | Python | pyraceview/util/ByteArray.py | jdamiani27/PyRaceView | 9c62861e2b659407948c77a780f47c95482cdfbf | [
"MIT"
] | 4 | 2019-09-10T18:14:53.000Z | 2022-01-08T02:01:01.000Z | pyraceview/util/ByteArray.py | jdamiani27/pyraceview | 9c62861e2b659407948c77a780f47c95482cdfbf | [
"MIT"
] | null | null | null | pyraceview/util/ByteArray.py | jdamiani27/pyraceview | 9c62861e2b659407948c77a780f47c95482cdfbf | [
"MIT"
] | null | null | null | import numpy as np
from .Endian import Endian
class ByteArray(object):
def __init__(self, bytes):
self._bytes = bytes
self._position = 0
self._endian = Endian.BIG_ENDIAN
def read_unsigned_byte(self):
return np.uint32(self.read(np.uint8))
def read_byte(self):
retur... | 24.425926 | 78 | 0.644428 | 173 | 1,319 | 4.757225 | 0.254335 | 0.097205 | 0.072904 | 0.077764 | 0.260024 | 0.234508 | 0.110571 | 0.077764 | 0 | 0 | 0 | 0.01592 | 0.238059 | 1,319 | 53 | 79 | 24.886792 | 0.802985 | 0 | 0 | 0.078947 | 0 | 0 | 0.004549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.342105 | false | 0 | 0.052632 | 0.236842 | 0.684211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
880c5a9a2d2743a486960f207180c7f3c36fea08 | 168 | py | Python | config.py | hwallann/PoetAndHeartbeatParser | 9c454558bfaa1a5f6df78284358997100af17591 | [
"MIT"
] | 3 | 2018-04-20T12:29:02.000Z | 2018-04-20T13:13:52.000Z | config.py | hwallann/PoetAndHeartbeatParser | 9c454558bfaa1a5f6df78284358997100af17591 | [
"MIT"
] | null | null | null | config.py | hwallann/PoetAndHeartbeatParser | 9c454558bfaa1a5f6df78284358997100af17591 | [
"MIT"
] | null | null | null | '''Config file for log_parser'''
#Path to 'POET' log file
POET_LOG = './Test_Logs/poet.log'
#Path to 'Heartbeat' log file
HEARTBEAT_LOG = './Test_Logs/heartbeat.log'
| 21 | 43 | 0.714286 | 27 | 168 | 4.259259 | 0.407407 | 0.182609 | 0.191304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130952 | 168 | 7 | 44 | 24 | 0.787671 | 0.464286 | 0 | 0 | 0 | 0 | 0.542169 | 0.301205 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
714f32f62b012c22718763f7a56a95a8eb3ac377 | 338 | py | Python | tutorials/unittests/python/tests/test_utils.py | nithyarajendiran/softwaretesting | 0fdaaca51804529acf5578e59b2afb0119524dbd | [
"MIT"
] | 13 | 2016-02-08T04:32:22.000Z | 2021-11-15T16:19:10.000Z | tutorials/unittests/python/tests/test_utils.py | nithyarajendiran/softwaretesting | 0fdaaca51804529acf5578e59b2afb0119524dbd | [
"MIT"
] | 3 | 2016-04-18T19:04:27.000Z | 2017-01-21T19:07:01.000Z | tutorials/unittests/python/tests/test_utils.py | nithyarajendiran/softwaretesting | 0fdaaca51804529acf5578e59b2afb0119524dbd | [
"MIT"
] | 67 | 2015-07-27T23:44:47.000Z | 2022-02-20T14:38:49.000Z | import unittest
from python.src import utils
class test_utils(unittest.TestCase):
def test_add(self):
self.assertEqual(5, utils.add(2,3))
def test_divide(self):
self.assertEqual(2, utils.divide(4,2))
class Test_Calculator(unittest.TestCase):
def test_add(self):
self.assertEqual(5, utils.Calcu... | 22.533333 | 57 | 0.721893 | 51 | 338 | 4.686275 | 0.372549 | 0.087866 | 0.238494 | 0.192469 | 0.426778 | 0.426778 | 0.426778 | 0.426778 | 0.426778 | 0.426778 | 0 | 0.031142 | 0.14497 | 338 | 15 | 57 | 22.533333 | 0.795848 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.3 | false | 0 | 0.2 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7188e9e77248a7f62be9bc1a5d63e170a70247fb | 599 | py | Python | tests/test_datasets.py | Nuno09/clusterval | 4844fd75a658b7ced6c78e4f79f0b308870f9adf | [
"BSD-2-Clause"
] | 3 | 2020-11-27T10:49:40.000Z | 2021-12-13T02:52:29.000Z | tests/test_datasets.py | Nuno09/clusterval | 4844fd75a658b7ced6c78e4f79f0b308870f9adf | [
"BSD-2-Clause"
] | null | null | null | tests/test_datasets.py | Nuno09/clusterval | 4844fd75a658b7ced6c78e4f79f0b308870f9adf | [
"BSD-2-Clause"
] | null | null | null | from tests.context import datasets
def test_load_khan_train():
res = datasets.load_khan_train()
assert res['data'].shape == (64, 306)
assert len(res['labels']) == 64
def test_load_khan_test():
res = datasets.load_khan_test()
assert res['data'].shape == (25, 306)
assert len(res['labels']) == 25... | 28.52381 | 41 | 0.646077 | 87 | 599 | 4.241379 | 0.298851 | 0.075881 | 0.119241 | 0.195122 | 0.113821 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05123 | 0.185309 | 599 | 21 | 42 | 28.52381 | 0.704918 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0.470588 | 1 | 0.235294 | false | 0 | 0.058824 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7192faacf42fa6d518ad731c4811f5d2656ce52d | 221 | py | Python | src/scrapy/scrapers/scrapers/spiders/humariweb_names.py | rizimore/scraping-automation-playground | b477f19d63c702de94469d1e949e6b004aa9f209 | [
"MIT"
] | null | null | null | src/scrapy/scrapers/scrapers/spiders/humariweb_names.py | rizimore/scraping-automation-playground | b477f19d63c702de94469d1e949e6b004aa9f209 | [
"MIT"
] | null | null | null | src/scrapy/scrapers/scrapers/spiders/humariweb_names.py | rizimore/scraping-automation-playground | b477f19d63c702de94469d1e949e6b004aa9f209 | [
"MIT"
] | null | null | null | import scrapy
class HumariwebNamesSpider(scrapy.Spider):
name = 'humariweb-names'
allowed_domains = ['humariweb.com']
start_urls = ['http://humariweb.com/names']
def parse(self, response):
pass
| 20.090909 | 47 | 0.674208 | 24 | 221 | 6.125 | 0.791667 | 0.163265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199095 | 221 | 10 | 48 | 22.1 | 0.830508 | 0 | 0 | 0 | 0 | 0 | 0.244344 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.142857 | 0 | 0.857143 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
7193abfb1ba4e5fb861868af54842855696c72e8 | 6,487 | py | Python | rlbot/messages/flat/PlayerInfo.py | danielbairamian/RL-RL | 4fc4ac14bd10088e83e7a15c3319370f74d0a756 | [
"MIT"
] | 3 | 2020-04-30T14:33:10.000Z | 2021-10-11T00:12:35.000Z | rlbot/messages/flat/PlayerInfo.py | danielbairamian/RL-RL | 4fc4ac14bd10088e83e7a15c3319370f74d0a756 | [
"MIT"
] | null | null | null | rlbot/messages/flat/PlayerInfo.py | danielbairamian/RL-RL | 4fc4ac14bd10088e83e7a15c3319370f74d0a756 | [
"MIT"
] | null | null | null | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: flat
import flatbuffers
class PlayerInfo(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsPlayerInfo(cls, buf, offset):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = PlayerI... | 41.318471 | 148 | 0.678588 | 798 | 6,487 | 5.393484 | 0.213033 | 0.074814 | 0.143123 | 0.154507 | 0.484898 | 0.477463 | 0.425883 | 0.425883 | 0.425883 | 0.425883 | 0 | 0.019181 | 0.220441 | 6,487 | 156 | 149 | 41.583333 | 0.831916 | 0.121782 | 0 | 0.415929 | 1 | 0 | 0.000705 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.283186 | false | 0 | 0.044248 | 0.00885 | 0.60177 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7197373dd35f71906a75734a4d93590001032113 | 23,509 | py | Python | run.py | wangzhenjjcn/Udisk_Formater | 2b31b38dfcd1c43d1808a1e3541d905f59bc219d | [
"Apache-2.0"
] | 83 | 2018-04-30T01:04:19.000Z | 2018-12-25T12:06:49.000Z | run.py | faker2333/Udisk_Formater | 2b31b38dfcd1c43d1808a1e3541d905f59bc219d | [
"Apache-2.0"
] | null | null | null | run.py | faker2333/Udisk_Formater | 2b31b38dfcd1c43d1808a1e3541d905f59bc219d | [
"Apache-2.0"
] | 22 | 2018-04-30T02:52:45.000Z | 2018-05-12T14:29:00.000Z | #coding=utf-8
import os,sys,time
global listAllDrivers
global drivers
global disks
global driverList
global lastDisks
global lastDriverList
global originalDriverList
global originalDiskList
global diskpartInfo
global diskPatitonInfo
global diskType
global encodenum
diskType="FAT32"
listAllDrivers="fsut... | 47.112224 | 209 | 0.609596 | 2,197 | 23,509 | 6.498407 | 0.105599 | 0.024935 | 0.061638 | 0.09862 | 0.744554 | 0.73769 | 0.711144 | 0.628704 | 0.555089 | 0.546824 | 0 | 0.018354 | 0.249096 | 23,509 | 498 | 210 | 47.206827 | 0.790404 | 0.00051 | 0 | 0.673077 | 0 | 0.002137 | 0.163645 | 0.024983 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.012821 | 0.002137 | null | null | 0.145299 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
719c36289421787a243e9038b44b7a022605fa24 | 11,077 | py | Python | thorium/testsuite/test_response.py | EventMobi/thorium | 3beccf9b327fc264967ead83360f95262ce5192b | [
"BSD-3-Clause"
] | 11 | 2015-01-23T21:58:14.000Z | 2017-09-14T21:57:20.000Z | thorium/testsuite/test_response.py | EventMobi/thorium | 3beccf9b327fc264967ead83360f95262ce5192b | [
"BSD-3-Clause"
] | 28 | 2015-01-02T16:50:55.000Z | 2016-05-10T14:50:04.000Z | thorium/testsuite/test_response.py | EventMobi/thorium | 3beccf9b327fc264967ead83360f95262ce5192b | [
"BSD-3-Clause"
] | 2 | 2015-02-01T22:59:19.000Z | 2015-11-01T12:33:42.000Z | # -*- coding: utf-8 -*-
from unittest import TestCase, mock
from thorium.response import (Response, DetailResponse, CollectionResponse,
ErrorResponse)
from thorium.errors import MethodNotAllowedError, BadRequestError
from thorium import Resource, fields
class SimpleResource(Resource):
... | 40.724265 | 79 | 0.630766 | 1,321 | 11,077 | 5.132475 | 0.084027 | 0.162832 | 0.10177 | 0.091593 | 0.783186 | 0.757375 | 0.706785 | 0.666962 | 0.645428 | 0.645428 | 0 | 0.013684 | 0.22154 | 11,077 | 271 | 80 | 40.874539 | 0.772585 | 0.001896 | 0 | 0.44843 | 0 | 0 | 0.060069 | 0 | 0 | 0 | 0 | 0 | 0.336323 | 1 | 0.121076 | false | 0 | 0.017937 | 0 | 0.197309 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
71a2677376243329fcd560f3ba3e1ef39c8ddb63 | 166 | py | Python | blackjack/View/Buttons/view_blackjack_game_button.py | TrevorMcDougald/Blackjack | 7441064525ef4634a8ad8d09aca971de2d150cec | [
"MIT"
] | null | null | null | blackjack/View/Buttons/view_blackjack_game_button.py | TrevorMcDougald/Blackjack | 7441064525ef4634a8ad8d09aca971de2d150cec | [
"MIT"
] | null | null | null | blackjack/View/Buttons/view_blackjack_game_button.py | TrevorMcDougald/Blackjack | 7441064525ef4634a8ad8d09aca971de2d150cec | [
"MIT"
] | null | null | null | class BlackjackGameButtonView:
control_y_axis = 153
new_game_x_axis = 650
quit_x_axis = 760
control_button_width = 100
control_button_height = 40
| 23.714286 | 30 | 0.740964 | 23 | 166 | 4.869565 | 0.73913 | 0.089286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108527 | 0.222892 | 166 | 6 | 31 | 27.666667 | 0.75969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
71ad68bb5585657c07b2aea86994e68cec45ee6b | 175 | py | Python | {{cookiecutter.project_name}}/tests/factories.py | hprobotic/cookiecutter-flask-restful | 32a6ff7b5205e6fe404d5c19c95d6429bf4c4cd2 | [
"MIT"
] | 1 | 2020-10-09T01:37:19.000Z | 2020-10-09T01:37:19.000Z | {{cookiecutter.project_name}}/tests/factories.py | hprobotic/cookiecutter-flask-restful | 32a6ff7b5205e6fe404d5c19c95d6429bf4c4cd2 | [
"MIT"
] | null | null | null | {{cookiecutter.project_name}}/tests/factories.py | hprobotic/cookiecutter-flask-restful | 32a6ff7b5205e6fe404d5c19c95d6429bf4c4cd2 | [
"MIT"
] | 1 | 2020-10-09T01:37:21.000Z | 2020-10-09T01:37:21.000Z | from {{cookiecutter.app_name}}.models import User
def user_factory(i):
return User(
username="user{}".format(i),
email="user{}@mail.com".format(i)
)
| 19.444444 | 49 | 0.617143 | 23 | 175 | 4.608696 | 0.695652 | 0.132075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211429 | 175 | 8 | 50 | 21.875 | 0.768116 | 0 | 0 | 0 | 0 | 0 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
71af8ca605db60b1a624d97867b3079012470510 | 66 | py | Python | data-structure-algorithms/set/e02-add-element.py | sinhdev/python-demo | 77e97d01d853799aef9a71cd6b7892847f85727d | [
"MIT"
] | null | null | null | data-structure-algorithms/set/e02-add-element.py | sinhdev/python-demo | 77e97d01d853799aef9a71cd6b7892847f85727d | [
"MIT"
] | null | null | null | data-structure-algorithms/set/e02-add-element.py | sinhdev/python-demo | 77e97d01d853799aef9a71cd6b7892847f85727d | [
"MIT"
] | null | null | null | my_set = {1, 2, 3}
my_set.add(4) #add element to set
print(my_set) | 22 | 33 | 0.681818 | 16 | 66 | 2.625 | 0.625 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.151515 | 66 | 3 | 34 | 22 | 0.678571 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
71bb3f4c2ddc87f7b53666bc9fe96ed28fcd5c72 | 1,896 | py | Python | tests/unit/model_utils/test_syntropy.py | jakubauskas/syntropy-ansible-collection | 0fe2b57a5fcf75a0d02764bc66418358ca029389 | [
"MIT"
] | null | null | null | tests/unit/model_utils/test_syntropy.py | jakubauskas/syntropy-ansible-collection | 0fe2b57a5fcf75a0d02764bc66418358ca029389 | [
"MIT"
] | null | null | null | tests/unit/model_utils/test_syntropy.py | jakubauskas/syntropy-ansible-collection | 0fe2b57a5fcf75a0d02764bc66418358ca029389 | [
"MIT"
] | null | null | null | from __future__ import absolute_import, division, print_function
__metaclass__ = type
import os
from unittest import mock
import syntropy_sdk as sdk
from ansible_collections.syntropynet.syntropy.plugins.module_utils import syntropy
def test_imports():
assert syntropy.HAS_SDK
def test_get_api_client():
wi... | 29.625 | 96 | 0.666139 | 235 | 1,896 | 5.114894 | 0.234043 | 0.02995 | 0.0599 | 0.066556 | 0.812812 | 0.757072 | 0.757072 | 0.633111 | 0.622296 | 0.464226 | 0 | 0 | 0.230485 | 1,896 | 63 | 97 | 30.095238 | 0.823852 | 0 | 0 | 0.48 | 0 | 0 | 0.168249 | 0.089662 | 0 | 0 | 0 | 0 | 0.22 | 1 | 0.1 | false | 0 | 0.12 | 0 | 0.22 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
71e7524b1cb7a06c2d754a01e38d01356fe7815e | 408 | py | Python | clients/__init__.py | symmetricapi/apiclient | 47e046caa676cac3990bf76781e35ead9103bfc8 | [
"MIT"
] | null | null | null | clients/__init__.py | symmetricapi/apiclient | 47e046caa676cac3990bf76781e35ead9103bfc8 | [
"MIT"
] | null | null | null | clients/__init__.py | symmetricapi/apiclient | 47e046caa676cac3990bf76781e35ead9103bfc8 | [
"MIT"
] | null | null | null | from apiclient.platforms.dropbox import Dropbox
from apiclient.platforms.facebook import Facebook
from apiclient.platforms.googleplus import GooglePlus
from apiclient.platforms.instagram import Instagram
from apiclient.platforms.tumblr import Tumblr
from apiclient.platforms.twitter import Twitter
__all__ = [
'Drop... | 25.5 | 53 | 0.77451 | 43 | 408 | 7.255814 | 0.255814 | 0.25 | 0.423077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144608 | 408 | 15 | 54 | 27.2 | 0.893983 | 0 | 0 | 0 | 0 | 0 | 0.115196 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e084644ce0471cbead14472ab47e7396ba8fcaa7 | 132 | py | Python | arquivos-py/CursoEmVideo_Python3_DESAFIOS/desafio25.py | oliveiralecca/cursoemvideo-python3 | e0a3e27d73a49ce0e72ae4faa9ac0c6da9811d2e | [
"MIT"
] | 2 | 2021-07-14T13:22:36.000Z | 2021-07-18T01:28:21.000Z | arquivos-py/CursoEmVideo_Python3_DESAFIOS/desafio25.py | oliveiralecca/cursoemvideo-python3 | e0a3e27d73a49ce0e72ae4faa9ac0c6da9811d2e | [
"MIT"
] | 2 | 2021-07-18T01:09:26.000Z | 2021-07-18T01:30:23.000Z | arquivos-py/CursoEmVideo_Python3_DESAFIOS/desafio25.py | oliveiralecca/cursoemvideo-python3 | e0a3e27d73a49ce0e72ae4faa9ac0c6da9811d2e | [
"MIT"
] | null | null | null | print('======= DESAFIO 25 =======')
nome = input('Digite seu nome completo: ')
print('Tem Silva no nome?', 'Silva' in nome.title())
| 33 | 52 | 0.598485 | 18 | 132 | 4.388889 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.136364 | 132 | 3 | 53 | 44 | 0.675439 | 0 | 0 | 0 | 0 | 0 | 0.568182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
e0870ec2a223a84e4b1cfb78453501adf41ab2a5 | 621 | py | Python | opacus/__init__.py | twosixlabs/opacus | c52af6f1e4cd32d27e60e255ec52a51ff135f996 | [
"Apache-2.0"
] | null | null | null | opacus/__init__.py | twosixlabs/opacus | c52af6f1e4cd32d27e60e255ec52a51ff135f996 | [
"Apache-2.0"
] | null | null | null | opacus/__init__.py | twosixlabs/opacus | c52af6f1e4cd32d27e60e255ec52a51ff135f996 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from . import utils
from .per_sample_gradient_clip import PerSampleGradientClipper
from .privacy_engine import PrivacyEngine
from .is_privacy_engine import ISPrivacyEngine
from .global_l2_is_privacy_engine import GlobalISPriv... | 41.4 | 161 | 0.834138 | 68 | 621 | 7.235294 | 0.514706 | 0.132114 | 0.193089 | 0.085366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003552 | 0.093398 | 621 | 14 | 162 | 44.357143 | 0.870337 | 0.144928 | 0 | 0 | 0 | 0 | 0.224953 | 0.085066 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.888889 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e097f298d23166b9337eecfb0b20d017a7943703 | 643 | py | Python | src/ethindex/cli.py | dakingha69/py-eth-index | dadf0b2a84b51083f9d50546bd0924d6a286a8d2 | [
"MIT"
] | null | null | null | src/ethindex/cli.py | dakingha69/py-eth-index | dadf0b2a84b51083f9d50546bd0924d6a286a8d2 | [
"MIT"
] | null | null | null | src/ethindex/cli.py | dakingha69/py-eth-index | dadf0b2a84b51083f9d50546bd0924d6a286a8d2 | [
"MIT"
] | null | null | null | import click
import pkg_resources
import ethindex.pgimport
def report_version():
click.echo(pkg_resources.get_distribution("eth-index").version)
@click.group(invoke_without_command=True)
@click.option("--version", help="Prints the version of the software", is_flag=True)
@click.pass_context
def cli(ctx, version... | 24.730769 | 83 | 0.765163 | 87 | 643 | 5.482759 | 0.482759 | 0.167715 | 0.109015 | 0.176101 | 0.243187 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121306 | 643 | 25 | 84 | 25.72 | 0.844248 | 0 | 0 | 0 | 0 | 0 | 0.080871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.055556 | 0.388889 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
e0a5426c83e00cd965cca5fae08724084a65c81c | 1,322 | py | Python | cryptosystem.py | tanguymario/Paillier | 8426205b358905c04526fc074c367c0ab429ed65 | [
"Apache-2.0"
] | null | null | null | cryptosystem.py | tanguymario/Paillier | 8426205b358905c04526fc074c367c0ab429ed65 | [
"Apache-2.0"
] | null | null | null | cryptosystem.py | tanguymario/Paillier | 8426205b358905c04526fc074c367c0ab429ed65 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
# sympy.ntheory.generate.randprime(a, b)
# Return a random prime number in the range [a, b).
# pow(x, y[, z]) Python built-in function
from sympy.ntheory.generate import randprime
from sympy import numbers
from abc import ABC, abstractmethod
class CryptoSystem(ABC):
"""
Classe abstraite d'un ... | 26.44 | 79 | 0.597579 | 184 | 1,322 | 4.26087 | 0.48913 | 0.010204 | 0.05102 | 0.07398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012889 | 0.295764 | 1,322 | 49 | 80 | 26.979592 | 0.829216 | 0.349471 | 0 | 0.192308 | 1 | 0 | 0.042027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.038462 | 0.115385 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e0d0817886944821fe87500029dd84ee7f369a42 | 2,377 | py | Python | apps/users/models.py | Sravanksk/fyle-qbo-api | 53f595170a073f245b9930bfce2ca07bdf998ce3 | [
"MIT"
] | null | null | null | apps/users/models.py | Sravanksk/fyle-qbo-api | 53f595170a073f245b9930bfce2ca07bdf998ce3 | [
"MIT"
] | null | null | null | apps/users/models.py | Sravanksk/fyle-qbo-api | 53f595170a073f245b9930bfce2ca07bdf998ce3 | [
"MIT"
] | null | null | null | # Create your models here.
from django.db import models
from django.contrib.auth.models import (
BaseUserManager, AbstractBaseUser
)
class UserManager(BaseUserManager):
def create_user(self, email, full_name, password=None):
"""
Creates and saves a User with the given email and password.
... | 24.760417 | 74 | 0.613799 | 280 | 2,377 | 5.053571 | 0.289286 | 0.079152 | 0.055124 | 0.036042 | 0.338516 | 0.320848 | 0.302474 | 0.277032 | 0.25371 | 0.144876 | 0 | 0.003617 | 0.302061 | 2,377 | 95 | 75 | 25.021053 | 0.849307 | 0.090871 | 0 | 0.313433 | 0 | 0 | 0.03252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.164179 | false | 0.089552 | 0.029851 | 0.119403 | 0.522388 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 3 |
e0f25a7b9bad8b4cfb36a97a427a239b57d61e61 | 1,691 | py | Python | tests/px_load_bar_test.py | noahfx/px | 1b49febda9d387f750b65a662ff662defce9acf6 | [
"MIT"
] | null | null | null | tests/px_load_bar_test.py | noahfx/px | 1b49febda9d387f750b65a662ff662defce9acf6 | [
"MIT"
] | null | null | null | tests/px_load_bar_test.py | noahfx/px | 1b49febda9d387f750b65a662ff662defce9acf6 | [
"MIT"
] | null | null | null | from px import px_load_bar
def get_load_bar(physical=None, logical=None):
return_me = px_load_bar.PxLoadBar(physical=physical, logical=logical)
return_me.normal = b'n'
return_me.inverse = b'i'
return_me.red = b'r'
return_me.yellow = b'y'
return_me.green = b'g'
return return_me
def test_s... | 33.82 | 73 | 0.613247 | 319 | 1,691 | 3.025078 | 0.144201 | 0.13057 | 0.195855 | 0.264249 | 0.66943 | 0.66943 | 0.655959 | 0.595855 | 0.535751 | 0.508808 | 0 | 0.050354 | 0.248374 | 1,691 | 49 | 74 | 34.510204 | 0.708891 | 0 | 0 | 0.205882 | 0 | 0 | 0.121821 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.147059 | false | 0 | 0.029412 | 0 | 0.205882 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
460221811f07b4eefa42de2974f046530dcfe85e | 2,427 | py | Python | src/freemap/helpers/base_map.py | romilly/freemap | 855a34587a2b8131357a5e13157839d0fff976af | [
"MIT"
] | null | null | null | src/freemap/helpers/base_map.py | romilly/freemap | 855a34587a2b8131357a5e13157839d0fff976af | [
"MIT"
] | null | null | null | src/freemap/helpers/base_map.py | romilly/freemap | 855a34587a2b8131357a5e13157839d0fff976af | [
"MIT"
] | null | null | null | minimal_map ="""
<map version="freeplane 1.7.0">
<!--To view this file, download free mind mapping software Freeplane from http://freeplane.sourceforge.net -->
<node TEXT="new_mindmap" FOLDED="false" ID="ID_1723255651" CREATED="1283093380553" MODIFIED="1283093380553"><hook NAME="MapStyle">
<properties edgeColorConf... | 39.786885 | 130 | 0.749897 | 297 | 2,427 | 6.013468 | 0.393939 | 0.181411 | 0.221725 | 0.190929 | 0.43505 | 0.3757 | 0.209966 | 0.132699 | 0.132699 | 0.132699 | 0 | 0.06746 | 0.065513 | 2,427 | 61 | 131 | 39.786885 | 0.720018 | 0 | 0 | 0.316667 | 0 | 0.066667 | 0.991763 | 0.353377 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.016667 | 0 | 0.016667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4613018f5b1c3076e00fe49ee72a01463218e686 | 71 | py | Python | config/__init__.py | merkio/python-websocket-test-example | 4d9a1ea4c05bc1195f496ab00dccd61ccfd24176 | [
"Apache-2.0"
] | null | null | null | config/__init__.py | merkio/python-websocket-test-example | 4d9a1ea4c05bc1195f496ab00dccd61ccfd24176 | [
"Apache-2.0"
] | null | null | null | config/__init__.py | merkio/python-websocket-test-example | 4d9a1ea4c05bc1195f496ab00dccd61ccfd24176 | [
"Apache-2.0"
] | null | null | null | from config.config import TestParameters
parameters = TestParameters() | 23.666667 | 40 | 0.84507 | 7 | 71 | 8.571429 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098592 | 71 | 3 | 41 | 23.666667 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
461881e436a35e6de7588294812bb3e500c99abc | 258 | py | Python | legacy/legacy_scripts/legacy/.ipynb_checkpoints/openGRIB-checkpoint.py | tomkimpson/ML4L | ffa8360cb80df25bd6af4fa5cc39b42bd6f405cd | [
"MIT"
] | 1 | 2022-02-23T12:31:56.000Z | 2022-02-23T12:31:56.000Z | legacy/legacy_scripts/legacy/.ipynb_checkpoints/openGRIB-checkpoint.py | tomkimpson/ML4L | ffa8360cb80df25bd6af4fa5cc39b42bd6f405cd | [
"MIT"
] | null | null | null | legacy/legacy_scripts/legacy/.ipynb_checkpoints/openGRIB-checkpoint.py | tomkimpson/ML4L | ffa8360cb80df25bd6af4fa5cc39b42bd6f405cd | [
"MIT"
] | null | null | null |
import xarray as xr
root = '/network/group/aopp/predict/TIP016_PAXTON_RPSPEEDY/ML4L/ECMWF_files/'
f = 'ml_skin_unstructured_2010_01.grib'
f2 = 'sfc_skin2_unstructured_2010_01.grib'
ds_grib = xr.open_dataset(root+f, engine="cfgrib")
print (ds_grib)
| 15.176471 | 77 | 0.771318 | 41 | 258 | 4.512195 | 0.756098 | 0.172973 | 0.194595 | 0.237838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078603 | 0.112403 | 258 | 16 | 78 | 16.125 | 0.729258 | 0 | 0 | 0 | 0 | 0 | 0.559055 | 0.535433 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1cce622e893889c7a3edd0c5d676731e72d0e264 | 86 | py | Python | solutions/prob3.py | teol99/code-golf-2018-fall | e3a53b9a9b599e95d58c02a6f0380dbb787286d3 | [
"MIT"
] | null | null | null | solutions/prob3.py | teol99/code-golf-2018-fall | e3a53b9a9b599e95d58c02a6f0380dbb787286d3 | [
"MIT"
] | null | null | null | solutions/prob3.py | teol99/code-golf-2018-fall | e3a53b9a9b599e95d58c02a6f0380dbb787286d3 | [
"MIT"
] | null | null | null | for i in range(int(input())):
t=sorted(set(input().split()))
print(t[-int(input())]) | 28.666667 | 31 | 0.616279 | 15 | 86 | 3.533333 | 0.733333 | 0.301887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081395 | 86 | 3 | 32 | 28.666667 | 0.670886 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1cef50d8abd71c43c57a1cdf7f1b8ab41ecdced2 | 6,472 | py | Python | tests/test_app.py | JackPendlebury1/ProjectDevOps | 2a1eb540d663bcb988d61d0ce46f6c759f46cc89 | [
"MIT"
] | null | null | null | tests/test_app.py | JackPendlebury1/ProjectDevOps | 2a1eb540d663bcb988d61d0ce46f6c759f46cc89 | [
"MIT"
] | null | null | null | tests/test_app.py | JackPendlebury1/ProjectDevOps | 2a1eb540d663bcb988d61d0ce46f6c759f46cc89 | [
"MIT"
] | null | null | null | import unittest
from flask import url_for
from flask_testing import TestCase
# import the app's classes and objects
from app import app, db, bcrypt
from app.models import Users, Songs
# Create the base class
class TestBase(TestCase):
def create_app(self):
# Pass in testing configurations for ... | 41.754839 | 141 | 0.594716 | 736 | 6,472 | 5.012228 | 0.16712 | 0.075901 | 0.092708 | 0.069124 | 0.723773 | 0.71781 | 0.707509 | 0.684467 | 0.631065 | 0.589591 | 0 | 0.031889 | 0.297435 | 6,472 | 155 | 142 | 41.754839 | 0.779415 | 0.043881 | 0 | 0.444444 | 0 | 0 | 0.100953 | 0.003677 | 0 | 0 | 0 | 0 | 0.102564 | 1 | 0.128205 | false | 0.094017 | 0.042735 | 0 | 0.213675 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e80abd92bc43f3db0e7c04e4b8431a208248016b | 689 | py | Python | src/server_3D/API/Rice/generalObjects/constraint.py | robertpardillo/Funnel | f45e419f55e085bbb95e17c47b4c94a7c625ba9b | [
"MIT"
] | 1 | 2021-05-18T16:10:49.000Z | 2021-05-18T16:10:49.000Z | src/server_3D/API/Rice/generalObjects/constraint.py | robertpardillo/Funnel | f45e419f55e085bbb95e17c47b4c94a7c625ba9b | [
"MIT"
] | null | null | null | src/server_3D/API/Rice/generalObjects/constraint.py | robertpardillo/Funnel | f45e419f55e085bbb95e17c47b4c94a7c625ba9b | [
"MIT"
] | null | null | null |
class Constraint(object):
def __init__(self, parent, cat_constructor,*args):
self.parentsDict = parent
self.parent=parent[parent[-1]]
self.cat_constructor = cat_constructor
self.references = [i for i in args]
@property
def name(self):
return self.cat_const... | 26.5 | 55 | 0.632801 | 79 | 689 | 5.379747 | 0.291139 | 0.230588 | 0.211765 | 0.08 | 0.258824 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002 | 0.274311 | 689 | 26 | 56 | 26.5 | 0.848 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0.1 | 0.45 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e80d766fdad3cbd5e60fae6ef556513e1e20b258 | 662 | py | Python | theano/sparse/sandbox/truedot.py | MarcCote/Theano | f0d293161a624ccf10c60ee8405a92e7d321151a | [
"BSD-3-Clause"
] | 9 | 2018-10-29T20:25:25.000Z | 2021-11-17T11:03:17.000Z | theano/sparse/sandbox/truedot.py | MarcCote/Theano | f0d293161a624ccf10c60ee8405a92e7d321151a | [
"BSD-3-Clause"
] | null | null | null | theano/sparse/sandbox/truedot.py | MarcCote/Theano | f0d293161a624ccf10c60ee8405a92e7d321151a | [
"BSD-3-Clause"
] | 2 | 2019-08-12T13:45:09.000Z | 2020-08-14T10:13:50.000Z | from __future__ import absolute_import, print_function, division
import unittest
import theano
import numpy as np
import scipy.sparse as sp
from theano import sparse
from theano import gof, tensor, compile
from theano.sparse.tests.test_basic import eval_outputs
from theano.sparse.basic import (
_is_sparse_variab... | 30.090909 | 66 | 0.836858 | 98 | 662 | 5.357143 | 0.418367 | 0.152381 | 0.152381 | 0.08 | 0.24 | 0.137143 | 0.137143 | 0 | 0 | 0 | 0 | 0 | 0.120846 | 662 | 21 | 67 | 31.52381 | 0.902062 | 0.037764 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.866667 | 0 | 0.866667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e82f8bd2adb63aa22e0ad59e3d1b9a48914faacb | 573 | py | Python | features/helpers.py | ashwin31/opensource-job-portal | 2885ea52f8660e893fe0531c986e3bee33d986a2 | [
"MIT"
] | 1 | 2021-09-27T05:01:39.000Z | 2021-09-27T05:01:39.000Z | features/helpers.py | kiran1415/opensource-job-portal | 2885ea52f8660e893fe0531c986e3bee33d986a2 | [
"MIT"
] | null | null | null | features/helpers.py | kiran1415/opensource-job-portal | 2885ea52f8660e893fe0531c986e3bee33d986a2 | [
"MIT"
] | 1 | 2022-01-05T09:02:32.000Z | 2022-01-05T09:02:32.000Z | from django.conf import settings
from datetime import datetime, timedelta
from django.core import management
from django.contrib.contenttypes.models import ContentType
from peeldb.models import Skill, City, State, Country
def initiate_test_data():
country = Country.objects.create(name="India")
state = State.o... | 44.076923 | 73 | 0.766143 | 77 | 573 | 5.649351 | 0.441558 | 0.149425 | 0.195402 | 0.101149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108202 | 573 | 13 | 74 | 44.076923 | 0.851272 | 0 | 0 | 0 | 0 | 0 | 0.092334 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.454545 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1c0fcb979a475b5a0d773ffdb3cf868d99ded20c | 893 | py | Python | tests/test_repository.py | jayvdb/linguist | bac586366f1fc87eda72c90855a4eabb1f61922c | [
"BSD-3-Clause"
] | 75 | 2015-03-14T19:32:23.000Z | 2022-02-14T13:01:43.000Z | tests/test_repository.py | jayvdb/linguist | bac586366f1fc87eda72c90855a4eabb1f61922c | [
"BSD-3-Clause"
] | 16 | 2016-04-08T03:22:02.000Z | 2021-05-17T14:28:06.000Z | tests/test_repository.py | jayvdb/linguist | bac586366f1fc87eda72c90855a4eabb1f61922c | [
"BSD-3-Clause"
] | 22 | 2015-01-14T16:33:58.000Z | 2021-11-02T11:09:51.000Z | # -*- coding: utf-8 -*-
from pygments.lexers import find_lexer_class
from framework import LinguistTestBase, main, ROOT_DIR
from libs.repository import Repository
from libs.language import Language
class TestRepository(LinguistTestBase):
def repo(self, base_path):
return Repository.from_directory(base_pa... | 28.806452 | 98 | 0.726764 | 114 | 893 | 5.394737 | 0.359649 | 0.078049 | 0.091057 | 0.107317 | 0.260163 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012129 | 0.169093 | 893 | 30 | 99 | 29.766667 | 0.816712 | 0.023516 | 0 | 0 | 0 | 0 | 0.047126 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 1 | 0.315789 | false | 0 | 0.210526 | 0.105263 | 0.684211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1c20b9b266127f479dbb23dd63b793110939b5b0 | 52 | py | Python | ai/parameters.py | xelahalo/khet | c4aca94703c24c01d106959849240b890fa6744b | [
"MIT"
] | null | null | null | ai/parameters.py | xelahalo/khet | c4aca94703c24c01d106959849240b890fa6744b | [
"MIT"
] | null | null | null | ai/parameters.py | xelahalo/khet | c4aca94703c24c01d106959849240b890fa6744b | [
"MIT"
] | 1 | 2022-03-19T22:25:54.000Z | 2022-03-19T22:25:54.000Z | C_CONST = 0.375
MC_ITERATION_COUNT = 100
D_MAX = 100 | 17.333333 | 24 | 0.769231 | 11 | 52 | 3.272727 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 0.153846 | 52 | 3 | 25 | 17.333333 | 0.590909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.