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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0ed2ea837532ec258b30013349fd4135cb2a627d | 155 | py | Python | tests/__init__.py | cronitorio/django_auto_healthchecks | 2edf0b28bd01ee2d4088a834de5c93df463c9cd5 | [
"MIT"
] | 4 | 2017-02-24T08:20:44.000Z | 2019-11-04T15:11:10.000Z | tests/__init__.py | cronitorio/django_auto_healthchecks | 2edf0b28bd01ee2d4088a834de5c93df463c9cd5 | [
"MIT"
] | null | null | null | tests/__init__.py | cronitorio/django_auto_healthchecks | 2edf0b28bd01ee2d4088a834de5c93df463c9cd5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
class MockSettings(object):
def __init__(self, **kwargs):
[self.__setattr__(key, val) for key, val in kwargs.items()]
| 25.833333 | 67 | 0.625806 | 20 | 155 | 4.45 | 0.8 | 0.134831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008 | 0.193548 | 155 | 5 | 68 | 31 | 0.704 | 0.135484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
0edc28d87f228f56d4f4bac9e0dae0cee31eb386 | 79 | py | Python | test/test_longest_turbulent_subarray.py | spencercjh/sync-leetcode-today-problem-python3-example | 4957e5eadb697334741df0fc297bec2edaa9e2ab | [
"Apache-2.0"
] | null | null | null | test/test_longest_turbulent_subarray.py | spencercjh/sync-leetcode-today-problem-python3-example | 4957e5eadb697334741df0fc297bec2edaa9e2ab | [
"Apache-2.0"
] | null | null | null | test/test_longest_turbulent_subarray.py | spencercjh/sync-leetcode-today-problem-python3-example | 4957e5eadb697334741df0fc297bec2edaa9e2ab | [
"Apache-2.0"
] | null | null | null | solution = LongestTurbulentSubarray()
assert X == solution.maxTurbulenceSize( ) | 39.5 | 41 | 0.810127 | 6 | 79 | 10.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088608 | 79 | 2 | 41 | 39.5 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0ee3bbcae049caf7f2b635769e423db21d674b59 | 280 | py | Python | scout/notifications/admin.py | theteam/django-scout | 75d6b708d4c65cca05e8f1678df40543f6e81b0d | [
"BSD-3-Clause"
] | null | null | null | scout/notifications/admin.py | theteam/django-scout | 75d6b708d4c65cca05e8f1678df40543f6e81b0d | [
"BSD-3-Clause"
] | null | null | null | scout/notifications/admin.py | theteam/django-scout | 75d6b708d4c65cca05e8f1678df40543f6e81b0d | [
"BSD-3-Clause"
] | 1 | 2022-03-20T04:22:41.000Z | 2022-03-20T04:22:41.000Z | from django.contrib import admin
from scout.notifications.models import NotificationProfile
class NotificationProfileAdmin(admin.ModelAdmin):
list_display = ['user', 'notification_email', 'mobile_number']
admin.site.register(NotificationProfile, NotificationProfileAdmin)
| 28 | 66 | 0.828571 | 27 | 280 | 8.481481 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089286 | 280 | 9 | 67 | 31.111111 | 0.898039 | 0 | 0 | 0 | 0 | 0 | 0.125 | 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 | 1 | 0 | 0 | 4 |
160beb9ee55bc05f2ae812b52a21056f29b019ff | 87 | py | Python | option/apps.py | puchchi/WebFramework | 8353ffd46827917303a729c64b9f79a51fe8a034 | [
"MIT"
] | 1 | 2019-04-01T17:04:54.000Z | 2019-04-01T17:04:54.000Z | option/apps.py | puchchi/WebFramework | 8353ffd46827917303a729c64b9f79a51fe8a034 | [
"MIT"
] | null | null | null | option/apps.py | puchchi/WebFramework | 8353ffd46827917303a729c64b9f79a51fe8a034 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class optionConfig(AppConfig):
name = 'option'
| 14.5 | 33 | 0.747126 | 10 | 87 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 87 | 5 | 34 | 17.4 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1611fcc9dcb829f41b13f834cdb7a36fa40d577b | 126 | py | Python | flavio/physics/scattering/__init__.py | Felicia56/flavio | ea735bd8febbb961d249eddf338a4960c1fbee69 | [
"MIT"
] | 61 | 2016-03-09T16:19:39.000Z | 2022-03-30T00:55:51.000Z | flavio/physics/scattering/__init__.py | Felicia56/flavio | ea735bd8febbb961d249eddf338a4960c1fbee69 | [
"MIT"
] | 167 | 2016-03-15T15:25:57.000Z | 2022-02-27T22:19:22.000Z | flavio/physics/scattering/__init__.py | Felicia56/flavio | ea735bd8febbb961d249eddf338a4960c1fbee69 | [
"MIT"
] | 57 | 2016-03-15T14:24:23.000Z | 2022-01-14T01:00:03.000Z | r"""Module for observables in scattering of electron-positron or proton-(anti)proton
to SM particles."""
from . import ee_ww
| 25.2 | 84 | 0.769841 | 20 | 126 | 4.8 | 0.95 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134921 | 126 | 4 | 85 | 31.5 | 0.880734 | 0.769841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
16600fa235840d4720fdd8f05799d3581a7f6221 | 142 | py | Python | tudatpy/cli/templates/test.py | gitter-badger/tudatpy | f5faef4ecfe8667cb9c989dd839185eeed5f9662 | [
"BSD-3-Clause"
] | null | null | null | tudatpy/cli/templates/test.py | gitter-badger/tudatpy | f5faef4ecfe8667cb9c989dd839185eeed5f9662 | [
"BSD-3-Clause"
] | null | null | null | tudatpy/cli/templates/test.py | gitter-badger/tudatpy | f5faef4ecfe8667cb9c989dd839185eeed5f9662 | [
"BSD-3-Clause"
] | null | null | null | import jinja2
template_loader = jinja2.FileSystemLoader(searchpath=template_path)
template_env = jinja2.Environment(loader=template_loader)
| 23.666667 | 67 | 0.859155 | 16 | 142 | 7.375 | 0.5625 | 0.237288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.070423 | 142 | 5 | 68 | 28.4 | 0.871212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
16b617183a310adb70ee065fd77e52ff76bab5e1 | 305 | py | Python | onto/mapper/helpers.py | billyrrr/onto | 72733d36a2583ae4758f7cf33a5229b79773702b | [
"MIT"
] | 1 | 2020-10-04T10:01:45.000Z | 2020-10-04T10:01:45.000Z | onto/mapper/helpers.py | billyrrr/onto | 72733d36a2583ae4758f7cf33a5229b79773702b | [
"MIT"
] | null | null | null | onto/mapper/helpers.py | billyrrr/onto | 72733d36a2583ae4758f7cf33a5229b79773702b | [
"MIT"
] | null | null | null | from collections import namedtuple
RelationshipReference = namedtuple(
"RelationshipReference",
['doc_ref', 'nested', 'obj', 'obj_type'],
defaults=(None, None, None, None)
)
EmbeddedElement = namedtuple(
"EmbeddedElement",
['d', 'obj_cls', 'obj'],
defaults=(None, None, None)
)
| 20.333333 | 45 | 0.662295 | 29 | 305 | 6.862069 | 0.517241 | 0.201005 | 0.180905 | 0.201005 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180328 | 305 | 14 | 46 | 21.785714 | 0.796 | 0 | 0 | 0 | 0 | 0 | 0.232787 | 0.068852 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 1 | 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 | 4 |
16c30ecb3823226becb18f821c6873c917332628 | 129 | py | Python | pysomatic/routes/predictions.py | MedleyLabs/DeepAutonomic | 071aabafcc6e5e4c61c7d8e1153c877c52226d31 | [
"MIT"
] | null | null | null | pysomatic/routes/predictions.py | MedleyLabs/DeepAutonomic | 071aabafcc6e5e4c61c7d8e1153c877c52226d31 | [
"MIT"
] | null | null | null | pysomatic/routes/predictions.py | MedleyLabs/DeepAutonomic | 071aabafcc6e5e4c61c7d8e1153c877c52226d31 | [
"MIT"
] | null | null | null | from flask import Blueprint, request, url_for, redirect, flash, make_response
predictions = Blueprint('predictions', __name__)
| 25.8 | 77 | 0.79845 | 15 | 129 | 6.466667 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 129 | 4 | 78 | 32.25 | 0.850877 | 0 | 0 | 0 | 0 | 0 | 0.085271 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
bc41dcd770a141766a15cc3034ae7ad9195b1bf9 | 26 | py | Python | calculate.py | liuzhiyang-liu/lesson2 | c50888764bf1c55df77b66fb9bdb156f955fd760 | [
"Apache-2.0"
] | null | null | null | calculate.py | liuzhiyang-liu/lesson2 | c50888764bf1c55df77b66fb9bdb156f955fd760 | [
"Apache-2.0"
] | null | null | null | calculate.py | liuzhiyang-liu/lesson2 | c50888764bf1c55df77b66fb9bdb156f955fd760 | [
"Apache-2.0"
] | null | null | null | a=2
b=7
c=a // b
print(c)
| 5.2 | 8 | 0.5 | 9 | 26 | 1.444444 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.230769 | 26 | 4 | 9 | 6.5 | 0.55 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
bc55227dda4595d3ed62dbf1445aa79d820c58f2 | 1,393 | py | Python | tests/test_spec.py | sfischer13/python-ssv | b9f8bf7bc6fc259a7b57781673959a42d8631b5b | [
"MIT"
] | 3 | 2016-05-28T10:17:48.000Z | 2020-09-25T17:25:24.000Z | tests/test_spec.py | sfischer13/python-ssv | b9f8bf7bc6fc259a7b57781673959a42d8631b5b | [
"MIT"
] | null | null | null | tests/test_spec.py | sfischer13/python-ssv | b9f8bf7bc6fc259a7b57781673959a42d8631b5b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
test_spec
---------
Tests for the the SSV specification.
"""
import tempfile
import unittest
import ssv
from ssv.constant import RS
from ssv.constant import US
class TestSpec(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def check_in_o... | 20.791045 | 55 | 0.563532 | 188 | 1,393 | 3.904255 | 0.335106 | 0.119891 | 0.149864 | 0.20436 | 0.258856 | 0.185286 | 0.081744 | 0 | 0 | 0 | 0 | 0.048507 | 0.230438 | 1,393 | 66 | 56 | 21.106061 | 0.636194 | 0.055994 | 0 | 0.052632 | 0 | 0 | 0.035195 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.342105 | false | 0.052632 | 0.157895 | 0 | 0.526316 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
bc673fa26474caf7f7b2dd29d67f2146f8e8a3c7 | 134 | py | Python | django_app/seedstars/apps.py | yudori/seedstars_challenge | 2fbc0de5a704f22ad79eb8894b77e4b614788906 | [
"MIT"
] | null | null | null | django_app/seedstars/apps.py | yudori/seedstars_challenge | 2fbc0de5a704f22ad79eb8894b77e4b614788906 | [
"MIT"
] | 3 | 2020-02-11T23:16:16.000Z | 2021-06-10T18:32:14.000Z | django_app/seedstars/apps.py | yudori/seedstars_challenge | 2fbc0de5a704f22ad79eb8894b77e4b614788906 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.apps import AppConfig
class SeedstarsConfig(AppConfig):
name = 'seedstars'
| 16.75 | 39 | 0.798507 | 15 | 134 | 6.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149254 | 134 | 7 | 40 | 19.142857 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0.067164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
bc8083e8c81c2566a2714edd7862cb6506a0b47b | 119,116 | py | Python | kive/metadata/tests.py | dmacmillan/Kive | 76bc8f289f66fb133f78cb6d5689568b7d015915 | [
"BSD-3-Clause"
] | 1 | 2021-12-22T06:10:01.000Z | 2021-12-22T06:10:01.000Z | kive/metadata/tests.py | dmacmillan/Kive | 76bc8f289f66fb133f78cb6d5689568b7d015915 | [
"BSD-3-Clause"
] | null | null | null | kive/metadata/tests.py | dmacmillan/Kive | 76bc8f289f66fb133f78cb6d5689568b7d015915 | [
"BSD-3-Clause"
] | null | null | null | """
Unit tests for Shipyard metadata models.
"""
import os
import re
from django.core.exceptions import ValidationError
from django.test import TestCase, skipIfDBFeature
from django.core.urlresolvers import reverse, resolve
from django.contrib.auth.models import User, Group
from rest_framework import status
from rest... | 40.849108 | 120 | 0.623585 | 14,173 | 119,116 | 4.973965 | 0.050871 | 0.024852 | 0.013902 | 0.018384 | 0.80789 | 0.763377 | 0.724665 | 0.692819 | 0.655186 | 0.619326 | 0 | 0.012049 | 0.274682 | 119,116 | 2,915 | 121 | 40.863122 | 0.803905 | 0.133324 | 0 | 0.534186 | 0 | 0 | 0.102077 | 0.005628 | 0 | 0 | 0 | 0.000686 | 0.126737 | 1 | 0.115064 | false | 0.030573 | 0.007782 | 0 | 0.130072 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
bca64462b5e4828d5e087bdb44d4d37bff0dd2e6 | 256 | py | Python | unke/exceptions.py | tim-sueberkrueb/unke-python | a61a0345d6c352661d229a71fd0e098947c2a211 | [
"MIT"
] | null | null | null | unke/exceptions.py | tim-sueberkrueb/unke-python | a61a0345d6c352661d229a71fd0e098947c2a211 | [
"MIT"
] | null | null | null | unke/exceptions.py | tim-sueberkrueb/unke-python | a61a0345d6c352661d229a71fd0e098947c2a211 | [
"MIT"
] | null | null | null | # -*- coding: utf-8
class ParseException(Exception):
"""
Thrown by Unke parser in case of syntax errors
"""
def __init__(self, message, line, col):
super(ParseException, self).__init__("{}, line {}:{}".format(message, line, col))
| 25.6 | 89 | 0.625 | 30 | 256 | 5.066667 | 0.766667 | 0.144737 | 0.184211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004951 | 0.210938 | 256 | 9 | 90 | 28.444444 | 0.747525 | 0.253906 | 0 | 0 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
bcc7f406ca9fe1fa56dcf9cf941b8c6be4abb80c | 72 | py | Python | tests/__init__.py | RealAllenDa/EEWMap | 4031c951fac97a099fb715c38a1dd77c52390a15 | [
"Apache-2.0"
] | null | null | null | tests/__init__.py | RealAllenDa/EEWMap | 4031c951fac97a099fb715c38a1dd77c52390a15 | [
"Apache-2.0"
] | 7 | 2021-11-20T06:52:50.000Z | 2022-01-13T10:01:21.000Z | tests/__init__.py | RealAllenDa/EEWMap | 4031c951fac97a099fb715c38a1dd77c52390a15 | [
"Apache-2.0"
] | null | null | null | """
EEWMap - Tests
Unittest - Used to test modules and utilities.
"""
| 14.4 | 47 | 0.666667 | 9 | 72 | 5.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 72 | 4 | 48 | 18 | 0.842105 | 0.847222 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
bce1e3233c128f14adf74ec6cd0ebf2bc5e04bb2 | 298 | py | Python | homeassistant/components/sonos/exception.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 3 | 2021-11-22T22:37:43.000Z | 2022-03-17T00:55:28.000Z | homeassistant/components/sonos/exception.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 25 | 2021-11-24T06:24:10.000Z | 2022-03-31T06:23:06.000Z | homeassistant/components/sonos/exception.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 3 | 2022-01-02T18:49:54.000Z | 2022-01-25T02:03:54.000Z | """Sonos specific exceptions."""
from homeassistant.components.media_player.errors import BrowseError
from homeassistant.exceptions import HomeAssistantError
class UnknownMediaType(BrowseError):
"""Unknown media type."""
class SonosUpdateError(HomeAssistantError):
"""Update failed."""
| 24.833333 | 68 | 0.788591 | 27 | 298 | 8.666667 | 0.703704 | 0.145299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107383 | 298 | 11 | 69 | 27.090909 | 0.879699 | 0.204698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
bcf9bc7aaffe5aac2b4d676b557a7c3ffbc3436a | 80 | py | Python | test/services/scan_package/service1.py | livioribeiro/dependency-injector | ab76415233d7e6f82ff13479d10c2aa0f100c173 | [
"Unlicense"
] | 1 | 2021-08-13T20:23:56.000Z | 2021-08-13T20:23:56.000Z | test/sync_tests/services/scan_package/service1.py | livioribeiro/dependency-injector | ab76415233d7e6f82ff13479d10c2aa0f100c173 | [
"Unlicense"
] | null | null | null | test/sync_tests/services/scan_package/service1.py | livioribeiro/dependency-injector | ab76415233d7e6f82ff13479d10c2aa0f100c173 | [
"Unlicense"
] | null | null | null | from dependency_injector import singleton
@singleton
class Service1:
pass
| 11.428571 | 41 | 0.8 | 9 | 80 | 7 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.175 | 80 | 6 | 42 | 13.333333 | 0.939394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 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 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
4c2153194300cac891a469113895fdf7292ba6c3 | 2,091 | py | Python | kubernetes/test/test_admissionregistration_v1alpha1_api.py | sgwilliams-ebsco/python | 35e6406536c96d4769ff7e2a02bf0fdcb902a509 | [
"Apache-2.0"
] | 1 | 2021-06-10T23:44:11.000Z | 2021-06-10T23:44:11.000Z | kubernetes/test/test_admissionregistration_v1alpha1_api.py | sgwilliams-ebsco/python | 35e6406536c96d4769ff7e2a02bf0fdcb902a509 | [
"Apache-2.0"
] | null | null | null | kubernetes/test/test_admissionregistration_v1alpha1_api.py | sgwilliams-ebsco/python | 35e6406536c96d4769ff7e2a02bf0fdcb902a509 | [
"Apache-2.0"
] | 1 | 2018-11-06T16:33:43.000Z | 2018-11-06T16:33:43.000Z | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.12.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
i... | 20.70297 | 111 | 0.656624 | 198 | 2,091 | 6.636364 | 0.318182 | 0.255708 | 0.066971 | 0.091324 | 0.522831 | 0.416286 | 0.126332 | 0 | 0 | 0 | 0 | 0.011221 | 0.275466 | 2,091 | 100 | 112 | 20.91 | 0.856106 | 0.307508 | 0 | 0.3 | 1 | 0 | 0.006957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.3 | 0.233333 | 0 | 0.6 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
4c70c1489928d9894fe77c88ab0c8b0cc9a062e5 | 3,280 | py | Python | var/spack/repos/builtin/packages/py-cython/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | var/spack/repos/builtin/packages/py-cython/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 8 | 2021-11-09T20:28:40.000Z | 2022-03-15T03:26:33.000Z | var/spack/repos/builtin/packages/py-cython/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2 | 2019-02-08T20:37:20.000Z | 2019-03-31T15:19:26.000Z | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class PyCython(PythonPackage):
"""The Cython compiler for writing C extensions for the P... | 60.740741 | 113 | 0.771341 | 293 | 3,280 | 8.59727 | 0.457338 | 0.066693 | 0.055578 | 0.019055 | 0.035331 | 0.035331 | 0.025407 | 0.025407 | 0 | 0 | 0 | 0.372156 | 0.102134 | 3,280 | 53 | 114 | 61.886792 | 0.483192 | 0.104573 | 0 | 0 | 0 | 0 | 0.6013 | 0.491444 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.026316 | 0 | 0.184211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d5b3ff70593a9c07cd082586f374b785fb34d0ef | 575 | py | Python | PythonProjects/99-CapstoneProject-202020d/libs/set_robot_number.py | much2mutch/csse120-public | 4f862a6deb7a5373fb5723fb2a23e4042e4d4157 | [
"MIT"
] | null | null | null | PythonProjects/99-CapstoneProject-202020d/libs/set_robot_number.py | much2mutch/csse120-public | 4f862a6deb7a5373fb5723fb2a23e4042e4d4157 | [
"MIT"
] | null | null | null | PythonProjects/99-CapstoneProject-202020d/libs/set_robot_number.py | much2mutch/csse120-public | 4f862a6deb7a5373fb5723fb2a23e4042e4d4157 | [
"MIT"
] | null | null | null | """
Capstone Team Project. Sets the ROBOT NUMBER for YOUR team's robot.
Winter term, 2019-2020.
"""
def get_robot_number():
my_robot_number = None
return my_robot_number
# --------------------------------------------------------------------------
# TODO: 1. Set my_robot_number in the above to YOU... | 38.333333 | 80 | 0.48 | 74 | 575 | 3.621622 | 0.567568 | 0.246269 | 0.145522 | 0.104478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02603 | 0.198261 | 575 | 14 | 81 | 41.071429 | 0.555315 | 0.794783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
d5d3256539904ba5dd3ab906b9ac486c09860e09 | 37 | py | Python | pythonCode/test.py | eatmore/python_practice | c6a773c8d24182b23a86fd9b66b27b5ff948b258 | [
"MIT"
] | null | null | null | pythonCode/test.py | eatmore/python_practice | c6a773c8d24182b23a86fd9b66b27b5ff948b258 | [
"MIT"
] | null | null | null | pythonCode/test.py | eatmore/python_practice | c6a773c8d24182b23a86fd9b66b27b5ff948b258 | [
"MIT"
] | 1 | 2020-03-12T06:05:38.000Z | 2020-03-12T06:05:38.000Z | s = 'PYTHON'
print('{0:3}'.format(s)) | 18.5 | 24 | 0.567568 | 7 | 37 | 3 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.081081 | 37 | 2 | 24 | 18.5 | 0.558824 | 0 | 0 | 0 | 0 | 0 | 0.289474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 4 |
910b73331c5b8e9c51deafb4a5d60d9dfdb67812 | 554 | py | Python | app/domain/use_case/responses.py | globocom/enforcement | 004ff545d6d61b95b555d9981525510496862b3e | [
"BSD-3-Clause"
] | 7 | 2020-11-08T18:02:26.000Z | 2021-10-15T21:40:35.000Z | app/domain/use_case/responses.py | globocom/enforcement | 004ff545d6d61b95b555d9981525510496862b3e | [
"BSD-3-Clause"
] | 19 | 2020-11-19T20:57:20.000Z | 2021-09-03T14:53:34.000Z | app/domain/use_case/responses.py | globocom/enforcement-service | 004ff545d6d61b95b555d9981525510496862b3e | [
"BSD-3-Clause"
] | 3 | 2020-10-03T02:40:34.000Z | 2020-10-19T10:17:06.000Z | from dataclasses import dataclass, field
from typing import List
from app.domain.entities import Cluster, Enforcement
@dataclass
class RulesResponse:
clusters: List[Cluster] = field(default_factory=list)
install_errors: List[Enforcement] = field(default_factory=list)
@dataclass
class UpdateRulesResponse(Rul... | 30.777778 | 73 | 0.801444 | 62 | 554 | 7.016129 | 0.387097 | 0.137931 | 0.218391 | 0.264368 | 0.432184 | 0.432184 | 0.344828 | 0 | 0 | 0 | 0 | 0 | 0.117329 | 554 | 17 | 74 | 32.588235 | 0.889571 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.833333 | 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 | 1 | 0 | 0 | 4 |
911bb2f2cfe253abbd4204eb7bec3b25f21679ba | 222 | py | Python | server/src/commands/weather.py | op23n1/bridge | 8252224c0956afb49b86a2754763ac23767eb707 | [
"MIT"
] | 1 | 2021-01-16T05:50:28.000Z | 2021-01-16T05:50:28.000Z | server/src/commands/weather.py | op23n1/bridge | 8252224c0956afb49b86a2754763ac23767eb707 | [
"MIT"
] | null | null | null | server/src/commands/weather.py | op23n1/bridge | 8252224c0956afb49b86a2754763ac23767eb707 | [
"MIT"
] | 3 | 2021-01-17T17:17:06.000Z | 2021-01-17T19:04:40.000Z | from commands.base_command import Command
from commands.utils import check_weather
class Weather(Command):
def exec(self):
"""
!weather;City
"""
return check_weather(self.args[0]) | 27.75 | 42 | 0.63964 | 26 | 222 | 5.346154 | 0.615385 | 0.172662 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006135 | 0.265766 | 222 | 8 | 43 | 27.75 | 0.846626 | 0.058559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
914fea0eeafd0a0f83f53f147af71b791090d6b7 | 97 | py | Python | sample/helloworld/test.py | HBuczynski/phoenix-rtos-tests | 3485485e128f5b688be808a968a399938a303fa3 | [
"BSD-3-Clause"
] | null | null | null | sample/helloworld/test.py | HBuczynski/phoenix-rtos-tests | 3485485e128f5b688be808a968a399938a303fa3 | [
"BSD-3-Clause"
] | null | null | null | sample/helloworld/test.py | HBuczynski/phoenix-rtos-tests | 3485485e128f5b688be808a968a399938a303fa3 | [
"BSD-3-Clause"
] | null | null | null | def harness(p):
if 'Hello world!' not in p.readline():
return False
return True
| 16.166667 | 42 | 0.597938 | 14 | 97 | 4.142857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.298969 | 97 | 5 | 43 | 19.4 | 0.852941 | 0 | 0 | 0 | 0 | 0 | 0.123711 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
e66c404ce27fca686b74503befc14c2adc918f47 | 83 | py | Python | xtractor/__main__.py | Bichwaa/xtractor | ce321dda6dbe7cd5b4b924f3794197d346d39adf | [
"MIT"
] | null | null | null | xtractor/__main__.py | Bichwaa/xtractor | ce321dda6dbe7cd5b4b924f3794197d346d39adf | [
"MIT"
] | 1 | 2022-01-31T17:09:07.000Z | 2022-02-03T07:25:38.000Z | xtractor/__main__.py | Bichwaa/xtractor | ce321dda6dbe7cd5b4b924f3794197d346d39adf | [
"MIT"
] | null | null | null | '''extracts shit '''
import fire
from xtractor import recover
fire.Fire(recover) | 11.857143 | 28 | 0.746988 | 11 | 83 | 5.636364 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144578 | 83 | 7 | 29 | 11.857143 | 0.873239 | 0.156627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e6893a1dc607b3e5d29ddc6b312702493b39c856 | 758 | py | Python | tests/test_collecting/test_handler/test_equeality.py | ExpressApp/pybotx | 97c8b1ce5d45a05567ed01d545cb43174a2dcbb9 | [
"MIT"
] | 13 | 2021-01-21T12:43:10.000Z | 2022-03-23T11:11:59.000Z | tests/test_collecting/test_handler/test_equeality.py | ExpressApp/pybotx | 97c8b1ce5d45a05567ed01d545cb43174a2dcbb9 | [
"MIT"
] | 259 | 2020-02-26T08:51:03.000Z | 2022-03-23T11:08:36.000Z | tests/test_collecting/test_handler/test_equeality.py | ExpressApp/pybotx | 97c8b1ce5d45a05567ed01d545cb43174a2dcbb9 | [
"MIT"
] | 5 | 2019-12-02T16:19:22.000Z | 2021-11-22T20:33:34.000Z | from botx.collecting.handlers.handler import Handler
pytest_plugins = ("tests.test_collecting.fixtures",)
def test_equality_is_false_if_not_handler_passed(handler_as_function):
handler = Handler(body="/command", handler=handler_as_function)
assert handler != ""
def test_equality_is_false_if_handlers_are_di... | 36.095238 | 74 | 0.792876 | 95 | 758 | 5.936842 | 0.315789 | 0.12766 | 0.241135 | 0.212766 | 0.638298 | 0.638298 | 0.445035 | 0.170213 | 0 | 0 | 0 | 0.014837 | 0.110818 | 758 | 20 | 75 | 37.9 | 0.821958 | 0 | 0 | 0 | 0 | 0 | 0.094987 | 0.039578 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.230769 | false | 0.076923 | 0.076923 | 0 | 0.307692 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
e69a3603c29d26822dbc0d7d317da4530a211e5b | 26 | py | Python | src/ralph/__init__.py | kula1922/ralph | 08642714cc894025ba4792eeae63037a46f045b3 | [
"Apache-2.0"
] | null | null | null | src/ralph/__init__.py | kula1922/ralph | 08642714cc894025ba4792eeae63037a46f045b3 | [
"Apache-2.0"
] | null | null | null | src/ralph/__init__.py | kula1922/ralph | 08642714cc894025ba4792eeae63037a46f045b3 | [
"Apache-2.0"
] | null | null | null | VERSION = ('2', '2', '0')
| 13 | 25 | 0.384615 | 4 | 26 | 2.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.192308 | 26 | 1 | 26 | 26 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e69d55db9b7df39b2265105f72964987772020b8 | 210 | py | Python | lm_pickers/definied.py | dulek/alt-tester | d3925e28b2b01ca25706546646b921de90fcd5c8 | [
"MIT"
] | null | null | null | lm_pickers/definied.py | dulek/alt-tester | d3925e28b2b01ca25706546646b921de90fcd5c8 | [
"MIT"
] | null | null | null | lm_pickers/definied.py | dulek/alt-tester | d3925e28b2b01ca25706546646b921de90fcd5c8 | [
"MIT"
] | null | null | null | from lm_picker import LMPicker
class DefiniedLMPicker(LMPicker):
def get_landmarks(self, lm_num=10):
lms = [9987, 2062, 36861, 1483, 37357, 30542, 1271, 6699]
return self._calc_dists(lms)
| 26.25 | 65 | 0.695238 | 29 | 210 | 4.862069 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221557 | 0.204762 | 210 | 7 | 66 | 30 | 0.622754 | 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 | 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 | 1 | 0 | 0 | 4 |
e6adf08a425d37c31a6d4cd8d85cee106a2490c5 | 32,331 | py | Python | mergify_engine/tests/functional/test_engine_v2.py | guits/mergify-engine | 5b97e2697e4743ff9e049b90246f9161359655be | [
"Apache-2.0"
] | null | null | null | mergify_engine/tests/functional/test_engine_v2.py | guits/mergify-engine | 5b97e2697e4743ff9e049b90246f9161359655be | [
"Apache-2.0"
] | null | null | null | mergify_engine/tests/functional/test_engine_v2.py | guits/mergify-engine | 5b97e2697e4743ff9e049b90246f9161359655be | [
"Apache-2.0"
] | null | null | null | # -*- encoding: utf-8 -*-
#
# Copyright © 2018 Mehdi Abaakouk <sileht@sileht.net>
#
# 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
#
# Unles... | 34.652733 | 79 | 0.518079 | 3,267 | 32,331 | 4.913682 | 0.105601 | 0.062792 | 0.050209 | 0.061795 | 0.773999 | 0.73899 | 0.700305 | 0.674017 | 0.646795 | 0.613343 | 0 | 0.010229 | 0.322693 | 32,331 | 932 | 80 | 34.689914 | 0.722577 | 0.05023 | 0 | 0.704545 | 0 | 0 | 0.248253 | 0.02946 | 0 | 0 | 0 | 0.001073 | 0.078125 | 1 | 0.03267 | false | 0 | 0.012784 | 0 | 0.048295 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e6c98b1de0e8ef1dc433b8fa89fe229a4d2d6c33 | 3,064 | py | Python | pyscf/dmrgscf/__init__.py | nmardirossian/pyscf | 57c8912dcfcc1157a822feede63df54ed1067115 | [
"BSD-2-Clause"
] | 1 | 2018-05-02T19:55:30.000Z | 2018-05-02T19:55:30.000Z | pyscf/dmrgscf/__init__.py | nmardirossian/pyscf | 57c8912dcfcc1157a822feede63df54ed1067115 | [
"BSD-2-Clause"
] | null | null | null | pyscf/dmrgscf/__init__.py | nmardirossian/pyscf | 57c8912dcfcc1157a822feede63df54ed1067115 | [
"BSD-2-Clause"
] | 1 | 2018-12-06T03:10:50.000Z | 2018-12-06T03:10:50.000Z | #!/usr/bin/env python
#
# Author: Qiming Sun <osirpt.sun@gmail.com>
#
'''DMRG program interface.
There are two DMRG program interfaces available:
* `Block <https://github.com/sanshar/Block>`_ interface provided the
features including the DMRG-CASCI, the 1-step and 2-step DMRG-CASSCF, second
order per... | 31.587629 | 84 | 0.696149 | 413 | 3,064 | 5.121065 | 0.491525 | 0.021277 | 0.03026 | 0.011348 | 0.017021 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031368 | 0.219648 | 3,064 | 96 | 85 | 31.916667 | 0.8532 | 0.939621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e6e04fb65024449204029c3c7e0f5cd074a82d59 | 2,152 | py | Python | src/Completed/deque.py | ChrisAnthonyHudson/data-structures | 5a69800387aab5fe46120a9a1b34d6389a8fc852 | [
"MIT"
] | null | null | null | src/Completed/deque.py | ChrisAnthonyHudson/data-structures | 5a69800387aab5fe46120a9a1b34d6389a8fc852 | [
"MIT"
] | null | null | null | src/Completed/deque.py | ChrisAnthonyHudson/data-structures | 5a69800387aab5fe46120a9a1b34d6389a8fc852 | [
"MIT"
] | null | null | null | """Implementation of a dequeue data structure."""
from doubly_linked_list import DoublyLinkedList
class Deque(object):
"""Set attributes and methods of Dequeue object."""
def __init__(self):
"""Initialize Dequeue using LinkedList."""
self._doubly_linked_list = DoublyLinkedList()
self.... | 34.15873 | 65 | 0.651952 | 280 | 2,152 | 4.721429 | 0.207143 | 0.217852 | 0.290469 | 0.347958 | 0.661876 | 0.581694 | 0.503026 | 0.409228 | 0.409228 | 0.289713 | 0 | 0 | 0.253253 | 2,152 | 62 | 66 | 34.709677 | 0.822651 | 0.184015 | 0 | 0.45 | 0 | 0 | 0.022353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225 | false | 0 | 0.025 | 0 | 0.475 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e6e0b63bfc6ec27f79529733de7c06c25fff42d7 | 193 | py | Python | 08 Other Common Tasks/importing_4.py | gitter-badger/survival-python | c9c7f336ecd0b8196934386d334f53cd79cb7284 | [
"MIT"
] | 1 | 2020-12-19T04:41:50.000Z | 2020-12-19T04:41:50.000Z | 08 Other Common Tasks/importing_4.py | gitter-badger/survival-python | c9c7f336ecd0b8196934386d334f53cd79cb7284 | [
"MIT"
] | null | null | null | 08 Other Common Tasks/importing_4.py | gitter-badger/survival-python | c9c7f336ecd0b8196934386d334f53cd79cb7284 | [
"MIT"
] | 3 | 2020-01-08T00:34:24.000Z | 2021-07-08T23:06:52.000Z | from importing_3 import teacher_comment_with_grade
students = {'Tony': 95, 'Betsy': 85, 'Peter': 75}
for student in students:
print(teacher_comment_with_grade(students[student], student))
| 32.166667 | 65 | 0.766839 | 27 | 193 | 5.222222 | 0.703704 | 0.198582 | 0.255319 | 0.326241 | 0.439716 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041176 | 0.119171 | 193 | 5 | 66 | 38.6 | 0.788235 | 0 | 0 | 0 | 0 | 0 | 0.072539 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e6e404ef1191ab6c918cc7bf3b118561cd94d2df | 258 | py | Python | pip_services3_expressions-3.3.4/pip_services3_expressions/tokenizers/ICommentState.py | pip-services3-python/pip-services3-expressions-python | 4ea237fbbba32e62f920e6be3bd48e6cc02184e5 | [
"MIT"
] | null | null | null | pip_services3_expressions-3.3.4/pip_services3_expressions/tokenizers/ICommentState.py | pip-services3-python/pip-services3-expressions-python | 4ea237fbbba32e62f920e6be3bd48e6cc02184e5 | [
"MIT"
] | null | null | null | pip_services3_expressions-3.3.4/pip_services3_expressions/tokenizers/ICommentState.py | pip-services3-python/pip-services3-expressions-python | 4ea237fbbba32e62f920e6be3bd48e6cc02184e5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from abc import ABC
from pip_services3_expressions.tokenizers.ITokenizerState import ITokenizerState
class ICommentState(ITokenizerState, ABC):
"""
Defines an interface for tokenizer state that processes comments.
"""
| 21.5 | 80 | 0.748062 | 28 | 258 | 6.821429 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009302 | 0.166667 | 258 | 11 | 81 | 23.454545 | 0.87907 | 0.341085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e6e59312cd0496a70576a4bef68fc925d6b7716a | 95 | py | Python | napari_clio_test/_tests/test_writer.py | DocSavage/napari-clio-test | 7523374a2ae41549a220fd9a3c2973b94780653d | [
"Apache-2.0"
] | null | null | null | napari_clio_test/_tests/test_writer.py | DocSavage/napari-clio-test | 7523374a2ae41549a220fd9a3c2973b94780653d | [
"Apache-2.0"
] | null | null | null | napari_clio_test/_tests/test_writer.py | DocSavage/napari-clio-test | 7523374a2ae41549a220fd9a3c2973b94780653d | [
"Apache-2.0"
] | null | null | null | # from napari_clio_test import napari_get_writer, napari_write_image
# add your tests here...
| 23.75 | 68 | 0.810526 | 15 | 95 | 4.733333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126316 | 95 | 3 | 69 | 31.666667 | 0.855422 | 0.936842 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e6e9a68059650ada6021a3eb3a4f68c7fe0c54eb | 61 | py | Python | pdf-file-manager.py | firminoneto11/pdf-file-manager | ede3bda9933fda5977017f6de2dcccf41027d47e | [
"MIT"
] | null | null | null | pdf-file-manager.py | firminoneto11/pdf-file-manager | ede3bda9933fda5977017f6de2dcccf41027d47e | [
"MIT"
] | null | null | null | pdf-file-manager.py | firminoneto11/pdf-file-manager | ede3bda9933fda5977017f6de2dcccf41027d47e | [
"MIT"
] | null | null | null | from main_foo import main
# Executando a função main
main()
| 12.2 | 26 | 0.770492 | 10 | 61 | 4.6 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180328 | 61 | 4 | 27 | 15.25 | 0.92 | 0.393443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e6ede2307bb46748a020075e6b138ed6fc59e70d | 74,344 | py | Python | team61.py | anuragxel/ultimate-tic-tac-toe | 69cdfce1a2cfcd028f1a4467066a69b8ce5216c4 | [
"MIT"
] | null | null | null | team61.py | anuragxel/ultimate-tic-tac-toe | 69cdfce1a2cfcd028f1a4467066a69b8ce5216c4 | [
"MIT"
] | null | null | null | team61.py | anuragxel/ultimate-tic-tac-toe | 69cdfce1a2cfcd028f1a4467066a69b8ce5216c4 | [
"MIT"
] | null | null | null | import random
import json
import datetime
import signal
ENFORCED_TIME = 5
heuristic_table = {"-ox--o-xo": 0, "-xoooxx-o": 0, "-ox-x-oxo": 0, "xo-ooxx--": 7, "oxox-----": 4, "----xx-oo": 6, "ox--xooox": 3, "xx-o-ooxo": 2, "-xo-xoo--": 8, "-oxxo-o-x": 5, "-x--ooxo-": 3, "oox-o--xx": 5, "oxooxox-x": 7, "x--ooxxoo":... | 135.417122 | 50,547 | 0.427109 | 14,535 | 74,344 | 2.135673 | 0.022635 | 0.02139 | 0.01353 | 0.017782 | 0.341505 | 0.226886 | 0.198827 | 0.1785 | 0.173539 | 0.168836 | 0 | 0.071839 | 0.210979 | 74,344 | 548 | 50,548 | 135.664234 | 0.457355 | 0.001426 | 0 | 0.489443 | 0 | 0 | 0.386171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005758 | 0.007678 | null | null | 0.001919 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e6fd0bc7021a4a7ae71d07914a2f31e34dc9ca83 | 126 | py | Python | cmapfile/__main__.py | cgohlke/cmapfile | 0daf3b657b0b7eea2c3293f50e01ac9c65d59d0d | [
"BSD-3-Clause"
] | 1 | 2020-02-26T17:16:03.000Z | 2020-02-26T17:16:03.000Z | cmapfile/__main__.py | cgohlke/cmapfile | 0daf3b657b0b7eea2c3293f50e01ac9c65d59d0d | [
"BSD-3-Clause"
] | null | null | null | cmapfile/__main__.py | cgohlke/cmapfile | 0daf3b657b0b7eea2c3293f50e01ac9c65d59d0d | [
"BSD-3-Clause"
] | null | null | null | # cmapfile/__main__.py
"""Cmapfile package command line script."""
import sys
from .cmapfile import main
sys.exit(main())
| 12.6 | 43 | 0.730159 | 17 | 126 | 5.176471 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 126 | 9 | 44 | 14 | 0.814815 | 0.468254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
fc00904e771d29ad0fdaef094c014ef47fde46bc | 89 | py | Python | plotting/custom_styles.py | woojiahao/pds-analysis | d84c8353b7f7323d673c530e0d414d87f80d5384 | [
"MIT"
] | 4 | 2018-08-10T13:56:58.000Z | 2020-04-09T13:32:08.000Z | plotting/custom_styles.py | woojiahao/pds-analysis | d84c8353b7f7323d673c530e0d414d87f80d5384 | [
"MIT"
] | null | null | null | plotting/custom_styles.py | woojiahao/pds-analysis | d84c8353b7f7323d673c530e0d414d87f80d5384 | [
"MIT"
] | null | null | null | from pygal.style import Style
style = Style(
font_family='googlefont:Source+Code+Pro')
| 17.8 | 42 | 0.775281 | 13 | 89 | 5.230769 | 0.769231 | 0.294118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11236 | 89 | 4 | 43 | 22.25 | 0.860759 | 0 | 0 | 0 | 0 | 0 | 0.292135 | 0.292135 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
fc15c2806479b8cec5d97cecfc698a2d07a30776 | 233 | py | Python | chap 4/dimensions.py | wikilike7/python-crash-course | 85cd7a2ab6e43a554c282b6e0c1c44c415cca3a3 | [
"MIT"
] | null | null | null | chap 4/dimensions.py | wikilike7/python-crash-course | 85cd7a2ab6e43a554c282b6e0c1c44c415cca3a3 | [
"MIT"
] | null | null | null | chap 4/dimensions.py | wikilike7/python-crash-course | 85cd7a2ab6e43a554c282b6e0c1c44c415cca3a3 | [
"MIT"
] | 1 | 2019-03-05T09:31:27.000Z | 2019-03-05T09:31:27.000Z | dimensions = (200, 50)
print(dimensions[0])
print(dimensions[1])
# dimensions[0] = 100
# print(dimensions)
for dimension in dimensions:
print(dimension)
dimensions = [100, 300]
for dimension in dimensions:
print(dimension) | 17.923077 | 28 | 0.72103 | 29 | 233 | 5.793103 | 0.37931 | 0.267857 | 0.166667 | 0.285714 | 0.452381 | 0.452381 | 0 | 0 | 0 | 0 | 0 | 0.086294 | 0.154506 | 233 | 13 | 29 | 17.923077 | 0.766497 | 0.158798 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
fc23b73fbc53178eb143b167a3dfb52b02878f63 | 18,276 | py | Python | ID18_U18_ONE_LENS/coherent_fraction_vs_slit_aperture.py | srio/paper-transfocators-resources | 917d8b4114056f62c84b295579e55bf5f0b56b6b | [
"MIT"
] | 1 | 2021-03-25T15:34:56.000Z | 2021-03-25T15:34:56.000Z | ID18_U18_ONE_LENS/coherent_fraction_vs_slit_aperture.py | srio/paper-transfocators-resources | 917d8b4114056f62c84b295579e55bf5f0b56b6b | [
"MIT"
] | null | null | null | ID18_U18_ONE_LENS/coherent_fraction_vs_slit_aperture.py | srio/paper-transfocators-resources | 917d8b4114056f62c84b295579e55bf5f0b56b6b | [
"MIT"
] | null | null | null | #
# Import section
#
import numpy
from syned.beamline.beamline_element import BeamlineElement
from syned.beamline.element_coordinates import ElementCoordinates
from wofry.propagator.propagator import PropagationManager, PropagationElements, PropagationParameters
from wofry.propagator.wavefront1D.generic_wavefront imp... | 36.625251 | 128 | 0.610309 | 2,062 | 18,276 | 5.118332 | 0.155674 | 0.061114 | 0.037521 | 0.012507 | 0.758196 | 0.729771 | 0.720485 | 0.702956 | 0.685143 | 0.673204 | 0 | 0.050717 | 0.275005 | 18,276 | 499 | 129 | 36.625251 | 0.745811 | 0.191399 | 0 | 0.519084 | 0 | 0 | 0.047939 | 0.015171 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038168 | false | 0.007634 | 0.091603 | 0.007634 | 0.167939 | 0.007634 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fc42fb06431948239aaca17f360cd96e878d2e07 | 129 | py | Python | Examples/test_example.py | sntemple12/lambdata | ead7600b7cf1e04c6db39139bdf69641e07f5c7b | [
"MIT"
] | null | null | null | Examples/test_example.py | sntemple12/lambdata | ead7600b7cf1e04c6db39139bdf69641e07f5c7b | [
"MIT"
] | null | null | null | Examples/test_example.py | sntemple12/lambdata | ead7600b7cf1e04c6db39139bdf69641e07f5c7b | [
"MIT"
] | null | null | null | from random import randint
import pytest
from example import increment, COLORS
def test_increment():
assert increment(3) ==5 | 21.5 | 37 | 0.782946 | 18 | 129 | 5.555556 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018349 | 0.155039 | 129 | 6 | 38 | 21.5 | 0.899083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | true | 0 | 0.6 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
fc660c589a3614be0e4aa04c25632432d2625dfe | 24 | py | Python | dragoneye/version.py | mirzajb/dragoneye | c7593640093a9178a55dd32c738bbf0b1cf49d5e | [
"MIT"
] | 1 | 2021-11-16T19:59:05.000Z | 2021-11-16T19:59:05.000Z | dragoneye/version.py | mirzajb/dragoneye | c7593640093a9178a55dd32c738bbf0b1cf49d5e | [
"MIT"
] | null | null | null | dragoneye/version.py | mirzajb/dragoneye | c7593640093a9178a55dd32c738bbf0b1cf49d5e | [
"MIT"
] | null | null | null | __version__ = 'v0.0.74'
| 12 | 23 | 0.666667 | 4 | 24 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 0.125 | 24 | 1 | 24 | 24 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0.291667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fc702d7db07f01cf0eb790a8691841fd4fed28b8 | 314 | py | Python | test/test_function_softbarcode.py | RubinhoSilva/python-escpos | 342d1e37854df52dbbf256cdbbfb8a69a5e1939c | [
"MIT"
] | null | null | null | test/test_function_softbarcode.py | RubinhoSilva/python-escpos | 342d1e37854df52dbbf256cdbbfb8a69a5e1939c | [
"MIT"
] | null | null | null | test/test_function_softbarcode.py | RubinhoSilva/python-escpos | 342d1e37854df52dbbf256cdbbfb8a69a5e1939c | [
"MIT"
] | null | null | null | #!/usr/bin/python
import escpos.printer as printer
import pytest
@pytest.fixture
def instance():
return printer.Dummy()
def test_soft_barcode_ean8(instance):
instance.soft_barcode("ean8", "1234")
def test_soft_barcode_ean8_nocenter(instance):
instance.soft_barcode("ean8", "1234", center=False)
| 17.444444 | 55 | 0.751592 | 42 | 314 | 5.404762 | 0.5 | 0.193833 | 0.264317 | 0.15859 | 0.502203 | 0.30837 | 0 | 0 | 0 | 0 | 0 | 0.043796 | 0.127389 | 314 | 17 | 56 | 18.470588 | 0.784672 | 0.050955 | 0 | 0 | 0 | 0 | 0.053872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.222222 | 0.111111 | 0.666667 | 0.222222 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
fc74e8967af583ab4d0a352326b7474f366d8755 | 163 | py | Python | benchmarks/__init__.py | Illviljan/flox | 5a2bd5746d5be6c8c4b9d81ea0b688f88e152055 | [
"Apache-2.0"
] | 26 | 2021-11-17T12:37:44.000Z | 2022-03-14T14:58:33.000Z | benchmarks/__init__.py | Illviljan/flox | 5a2bd5746d5be6c8c4b9d81ea0b688f88e152055 | [
"Apache-2.0"
] | 31 | 2021-03-24T16:16:54.000Z | 2021-11-11T20:54:49.000Z | benchmarks/__init__.py | Illviljan/flox | 5a2bd5746d5be6c8c4b9d81ea0b688f88e152055 | [
"Apache-2.0"
] | 3 | 2021-05-19T18:46:42.000Z | 2021-09-11T06:09:09.000Z | def parameterized(names, params):
def decorator(func):
func.param_names = names
func.params = params
return func
return decorator
| 20.375 | 33 | 0.638037 | 18 | 163 | 5.722222 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.294479 | 163 | 7 | 34 | 23.285714 | 0.895652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
fc7635fe001dc5e269e8c9fa8fc26caee9bf3e05 | 162 | py | Python | hy/__main__.py | lafrenierejm/hy | abd5ef6a8a3c42c0f097e5ae424296b177d1221f | [
"MIT"
] | 3,839 | 2015-01-01T23:53:13.000Z | 2022-03-28T07:41:36.000Z | hy/__main__.py | lafrenierejm/hy | abd5ef6a8a3c42c0f097e5ae424296b177d1221f | [
"MIT"
] | 1,430 | 2015-01-01T18:43:36.000Z | 2022-03-31T20:51:21.000Z | hy/__main__.py | lafrenierejm/hy | abd5ef6a8a3c42c0f097e5ae424296b177d1221f | [
"MIT"
] | 361 | 2015-01-02T17:16:11.000Z | 2022-03-20T14:40:14.000Z | import sys
from hy.cmdline import hy_main
# Running hy as a module (e.g. `python -m hy`)
# is equivalent to running the main `hy` command.
sys.exit(hy_main())
| 18 | 49 | 0.709877 | 30 | 162 | 3.766667 | 0.666667 | 0.106195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179012 | 162 | 8 | 50 | 20.25 | 0.849624 | 0.567901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5da8984b58a8e9d320b65e1f156aaf456b8827ce | 112 | py | Python | vispy/util/dataio/__init__.py | MatthieuDartiailh/vispy | 09d429be361a148b0614a192f56d4070c624072c | [
"BSD-3-Clause"
] | 1 | 2017-06-12T16:24:11.000Z | 2017-06-12T16:24:11.000Z | vispy/util/dataio/__init__.py | MatthieuDartiailh/vispy | 09d429be361a148b0614a192f56d4070c624072c | [
"BSD-3-Clause"
] | null | null | null | vispy/util/dataio/__init__.py | MatthieuDartiailh/vispy | 09d429be361a148b0614a192f56d4070c624072c | [
"BSD-3-Clause"
] | null | null | null | from .io import (crate, read_mesh, write_mesh, imread, imsave, # noqa
_check_img_lib) # noqa
| 37.333333 | 70 | 0.625 | 15 | 112 | 4.333333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 112 | 2 | 71 | 56 | 0.8125 | 0.080357 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
5de476cdb216c36ceaeac68e3c1ef564ada34d21 | 82 | py | Python | NoSliceException.py | renshj/High-Cadence-Processing | 5d5a2df741858f6e1466d7c4b008e9245d4b780a | [
"MIT"
] | null | null | null | NoSliceException.py | renshj/High-Cadence-Processing | 5d5a2df741858f6e1466d7c4b008e9245d4b780a | [
"MIT"
] | null | null | null | NoSliceException.py | renshj/High-Cadence-Processing | 5d5a2df741858f6e1466d7c4b008e9245d4b780a | [
"MIT"
] | null | null | null | #This file was created by Tate Hagan
class NoSliceException(Exception):
pass | 27.333333 | 37 | 0.768293 | 11 | 82 | 5.727273 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182927 | 82 | 3 | 38 | 27.333333 | 0.940299 | 0.426829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
b90c83359e9b6e6b18bddf2045d4329e62ac08a5 | 87 | py | Python | wrlapp/apps.py | ShivaGuntuku/TL-DR-Just-Listen | fa5f7ab7ba29c8dd1d1829753c05fd0cafe15016 | [
"MIT"
] | null | null | null | wrlapp/apps.py | ShivaGuntuku/TL-DR-Just-Listen | fa5f7ab7ba29c8dd1d1829753c05fd0cafe15016 | [
"MIT"
] | 10 | 2020-03-24T15:59:34.000Z | 2022-03-11T23:26:29.000Z | wrlapp/apps.py | ShivaGuntuku/TL-DR-Just-Listen | fa5f7ab7ba29c8dd1d1829753c05fd0cafe15016 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class WrlappConfig(AppConfig):
name = 'wrlapp'
| 14.5 | 33 | 0.747126 | 10 | 87 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 87 | 5 | 34 | 17.4 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f8d5cbcc402fe62b532359899727dcbaf07f14a0 | 99 | py | Python | task_manager/enums.py | Serrones/task_manager | 6dd7f1b19841929fa96ff41dd2506631663e087b | [
"MIT"
] | null | null | null | task_manager/enums.py | Serrones/task_manager | 6dd7f1b19841929fa96ff41dd2506631663e087b | [
"MIT"
] | null | null | null | task_manager/enums.py | Serrones/task_manager | 6dd7f1b19841929fa96ff41dd2506631663e087b | [
"MIT"
] | null | null | null | from enum import Enum
class Status(str, Enum):
done = 'done'
in_progress = 'in progress'
| 14.142857 | 31 | 0.656566 | 14 | 99 | 4.571429 | 0.642857 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242424 | 99 | 6 | 32 | 16.5 | 0.853333 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
5d58bae6d952f5f58c88fee3cccab3f9b5475975 | 8,601 | py | Python | stmp.py | dev-acoustikue/nyscec3 | 4c7b4d5bfe52f382b692d56133c55d0ad6bcb437 | [
"MIT"
] | 2 | 2020-09-07T09:58:16.000Z | 2020-12-15T12:46:02.000Z | stmp.py | dev-acoustikue/nyscec3 | 4c7b4d5bfe52f382b692d56133c55d0ad6bcb437 | [
"MIT"
] | null | null | null | stmp.py | dev-acoustikue/nyscec3 | 4c7b4d5bfe52f382b692d56133c55d0ad6bcb437 | [
"MIT"
] | 1 | 2020-12-15T11:32:31.000Z | 2020-12-15T11:32:31.000Z | # [Toy Project NYSCEC]
# 0.1.2va, 20.07.31. First launched.
# written by acoustikue(SukJoon Oh)
#
# Legal stuff:
# This simple code follows MIT license.
#
# MIT License
# Copyright (c) 2020 SukJoon Oh(acoustikue)
import config as cf
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultip... | 102.392857 | 5,940 | 0.635159 | 1,127 | 8,601 | 4.791482 | 0.269743 | 0.026667 | 0.038889 | 0.034074 | 0.168148 | 0.090926 | 0.066667 | 0.055185 | 0.055185 | 0.045556 | 0 | 0.033166 | 0.144634 | 8,601 | 83 | 5,941 | 103.626506 | 0.700829 | 0.031392 | 0 | 0.102564 | 0 | 0.076923 | 0.829145 | 0.100277 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0.051282 | 0.128205 | 0 | 0.205128 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
5d64d082cf2a573d7f77a4851292036897eed3b0 | 218 | py | Python | combiner/ModelA.py | RafalSkolasinski/seldon-experiments | 0deee3e9cf22526da1d4a44c8d5613173577ac16 | [
"MIT"
] | 1 | 2020-04-02T14:02:06.000Z | 2020-04-02T14:02:06.000Z | combiner/ModelA.py | RafalSkolasinski/seldon-experiments | 0deee3e9cf22526da1d4a44c8d5613173577ac16 | [
"MIT"
] | null | null | null | combiner/ModelA.py | RafalSkolasinski/seldon-experiments | 0deee3e9cf22526da1d4a44c8d5613173577ac16 | [
"MIT"
] | null | null | null | import logging
class ModelA():
def predict(self, X, feature_names=[]):
logging.warning(X)
logging.warning(feature_names)
return [0]
def tags(self):
return {"uri": "model-a"}
| 16.769231 | 43 | 0.582569 | 26 | 218 | 4.807692 | 0.653846 | 0.192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006369 | 0.279817 | 218 | 12 | 44 | 18.166667 | 0.789809 | 0 | 0 | 0 | 0 | 0 | 0.045872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
5d6d541da51a5c7ebb57534c891fb2a6e836bec0 | 1,755 | py | Python | setup.py | eoq/vsphere-automation-sdk-python | 4fb7d4878fe22476564af835e5eb099f1d4b38b4 | [
"MIT"
] | null | null | null | setup.py | eoq/vsphere-automation-sdk-python | 4fb7d4878fe22476564af835e5eb099f1d4b38b4 | [
"MIT"
] | null | null | null | setup.py | eoq/vsphere-automation-sdk-python | 4fb7d4878fe22476564af835e5eb099f1d4b38b4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
from setuptools import setup
setup(name='vSphere Automation SDK',
version='1.69.0',
description='VMware vSphere Automation SDK for Python',
url='https://github.com/vmware/vsphere-automation-sdk-python',
author='VMware, Inc.',
license='MIT',
install_... | 65 | 192 | 0.688889 | 282 | 1,755 | 4.198582 | 0.216312 | 0.091216 | 0.121622 | 0.098818 | 0.578547 | 0.535473 | 0.407939 | 0.321791 | 0.321791 | 0.261824 | 0 | 0.042092 | 0.106553 | 1,755 | 26 | 193 | 67.5 | 0.71301 | 0.011396 | 0 | 0 | 0 | 0.409091 | 0.717416 | 0.558824 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 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 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5d74f56fef68a84707573521521baab8c61800fa | 950 | py | Python | criterion/common/reduction/default.py | zhangzhengde0225/SwinTrack | 526be17f8ef266cb924c6939bd8dda23e9b73249 | [
"MIT"
] | 143 | 2021-12-03T02:33:36.000Z | 2022-03-29T00:01:48.000Z | criterion/common/reduction/default.py | zhangzhengde0225/SwinTrack | 526be17f8ef266cb924c6939bd8dda23e9b73249 | [
"MIT"
] | 33 | 2021-12-03T10:32:05.000Z | 2022-03-31T02:13:55.000Z | criterion/common/reduction/default.py | zhangzhengde0225/SwinTrack | 526be17f8ef266cb924c6939bd8dda23e9b73249 | [
"MIT"
] | 24 | 2021-12-04T06:46:42.000Z | 2022-03-30T07:57:47.000Z | def loss_mean_reduction_function(loss, *_):
return loss.mean()
def loss_sum_reduction_function(loss, *_):
return loss.sum()
def loss_reduce_by_weight(loss, pred, label, context):
return (loss * context['sample_weight']).sum()
def build_loss_reduction_function(loss_parameters: dict):
if 'reduce' no... | 33.928571 | 70 | 0.732632 | 110 | 950 | 5.836364 | 0.218182 | 0.423676 | 0.359813 | 0.194704 | 0.375389 | 0.278816 | 0.278816 | 0 | 0 | 0 | 0 | 0 | 0.197895 | 950 | 27 | 71 | 35.185185 | 0.84252 | 0 | 0 | 0.2 | 0 | 0 | 0.042105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.15 | 0.4 | 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 | 1 | 0 | 0 | 0 | 4 |
53766907eea0b3baeba9a03ecf21b62b2ee273e7 | 93 | py | Python | tadataka/optimization/initializers.py | IshitaTakeshi/Tadataka | 852c7afb904503005e51884408e1492ef0be836f | [
"Apache-2.0"
] | 54 | 2019-11-15T16:30:34.000Z | 2022-01-13T15:18:54.000Z | tadataka/optimization/initializers.py | IshitaTakeshi/Tadataka | 852c7afb904503005e51884408e1492ef0be836f | [
"Apache-2.0"
] | 11 | 2019-02-28T08:28:24.000Z | 2020-04-07T04:47:12.000Z | tadataka/optimization/initializers.py | IshitaTakeshi/Tadataka | 852c7afb904503005e51884408e1492ef0be836f | [
"Apache-2.0"
] | 1 | 2020-02-26T13:59:40.000Z | 2020-02-26T13:59:40.000Z | class BaseInitializer(object):
def initialize(self):
raise NotImplementedError()
| 23.25 | 35 | 0.72043 | 8 | 93 | 8.375 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 93 | 3 | 36 | 31 | 0.893333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
5383861636c23c0c9da56d35fd3df695acd77cf3 | 1,244 | py | Python | eclcli/rca/rcaclient/v2/users.py | hanasuke/eclcli | a72191799986a02596d0d467253fd9f5ee03c5c8 | [
"Apache-2.0"
] | 32 | 2016-08-31T04:12:40.000Z | 2020-12-11T04:49:57.000Z | eclcli/rca/rcaclient/v2/users.py | hanasuke/eclcli | a72191799986a02596d0d467253fd9f5ee03c5c8 | [
"Apache-2.0"
] | 27 | 2016-09-06T07:50:36.000Z | 2021-09-14T09:46:03.000Z | eclcli/rca/rcaclient/v2/users.py | hanasuke/eclcli | a72191799986a02596d0d467253fd9f5ee03c5c8 | [
"Apache-2.0"
] | 24 | 2016-09-02T01:09:09.000Z | 2021-01-19T09:14:16.000Z | from .. import base
def getname(obj):
try:
return obj.name
except AttributeError:
return obj
class User(base.Resource):
HUMAN_ID = True
def __repr__(self):
return '<User: %s>' % getattr(self, 'name', 'unknown-name')
def delete(self):
self.manager.delete(self)
... | 21.824561 | 67 | 0.542605 | 137 | 1,244 | 4.846715 | 0.262774 | 0.072289 | 0.058735 | 0.076807 | 0.13253 | 0.13253 | 0.13253 | 0.13253 | 0 | 0 | 0 | 0 | 0.305466 | 1,244 | 56 | 68 | 22.214286 | 0.768519 | 0 | 0 | 0.102564 | 0 | 0 | 0.094855 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.153846 | 0.025641 | 0.102564 | 0.564103 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
538efab80a6406736ff7d8dd355f0730448ccc5f | 60 | py | Python | backtester/orderPlacer/__init__.py | mhawry/auquantoolbox | f88b052d04baa81575b6886f829bca71d9425196 | [
"Apache-2.0"
] | 91 | 2020-07-31T13:57:49.000Z | 2022-01-21T14:16:47.000Z | backtester/orderPlacer/__init__.py | mhawry/auquantoolbox | f88b052d04baa81575b6886f829bca71d9425196 | [
"Apache-2.0"
] | 3 | 2021-02-26T14:43:10.000Z | 2022-01-12T14:58:01.000Z | backtester/orderPlacer/__init__.py | mhawry/auquantoolbox | f88b052d04baa81575b6886f829bca71d9425196 | [
"Apache-2.0"
] | 30 | 2020-07-30T13:48:00.000Z | 2022-03-09T14:20:36.000Z | __all__ = ["backtesting_order_placer", "base_order_placer"]
| 30 | 59 | 0.8 | 7 | 60 | 5.714286 | 0.714286 | 0.55 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 60 | 1 | 60 | 60 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.683333 | 0.4 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
539a384c7b51380ba4aeb24fe55a00f901818dda | 90 | py | Python | dailyfresh/df_goods/apps.py | luoyefeiwu/learn_python | e888537c538309d2600a302c0c6e92456dd785c0 | [
"Apache-2.0"
] | null | null | null | dailyfresh/df_goods/apps.py | luoyefeiwu/learn_python | e888537c538309d2600a302c0c6e92456dd785c0 | [
"Apache-2.0"
] | null | null | null | dailyfresh/df_goods/apps.py | luoyefeiwu/learn_python | e888537c538309d2600a302c0c6e92456dd785c0 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class DfGoodsConfig(AppConfig):
name = 'df_goods'
| 15 | 33 | 0.755556 | 11 | 90 | 6.090909 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 90 | 5 | 34 | 18 | 0.893333 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
53b03b39397a16ec9fb38144dece87cb452712dd | 93 | py | Python | backlinks/apps.py | Animatr/pls | 20bf4ad2f1f9969cd5d5b33e7d8b4de6eca6bc0b | [
"bzip2-1.0.6"
] | 1 | 2019-11-17T04:49:48.000Z | 2019-11-17T04:49:48.000Z | backlinks/apps.py | Animatr/pls | 20bf4ad2f1f9969cd5d5b33e7d8b4de6eca6bc0b | [
"bzip2-1.0.6"
] | 10 | 2019-12-04T22:56:31.000Z | 2022-02-10T11:29:56.000Z | backlinks/apps.py | Animatr/Backlink-Takip | 20bf4ad2f1f9969cd5d5b33e7d8b4de6eca6bc0b | [
"bzip2-1.0.6"
] | null | null | null | from django.apps import AppConfig
class BacklinksConfig(AppConfig):
name = 'backlinks'
| 15.5 | 33 | 0.763441 | 10 | 93 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
53dce1b8e6b7c228865a91853060385c92beb7c2 | 52 | py | Python | packages/vaex-hdf5/vaex/hdf5/_version.py | skywalk163/vaex | f5e38f1fa448ef78936e2cb6b3d026fda1f2a1c5 | [
"MIT"
] | null | null | null | packages/vaex-hdf5/vaex/hdf5/_version.py | skywalk163/vaex | f5e38f1fa448ef78936e2cb6b3d026fda1f2a1c5 | [
"MIT"
] | null | null | null | packages/vaex-hdf5/vaex/hdf5/_version.py | skywalk163/vaex | f5e38f1fa448ef78936e2cb6b3d026fda1f2a1c5 | [
"MIT"
] | null | null | null | __version_tuple__ = (0, 5, 5)
__version__ = '0.5.5'
| 17.333333 | 29 | 0.653846 | 9 | 52 | 2.777778 | 0.444444 | 0.16 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 0.153846 | 52 | 2 | 30 | 26 | 0.431818 | 0 | 0 | 0 | 0 | 0 | 0.096154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
53e3c552e20ccfcc1b2f7dda2d759e6f4c7b32d2 | 132 | py | Python | app/models/__init__.py | cabralwilliams/python-social | 8ec0e3965312c280f31cf74a8b1e2e77d0629324 | [
"MIT"
] | null | null | null | app/models/__init__.py | cabralwilliams/python-social | 8ec0e3965312c280f31cf74a8b1e2e77d0629324 | [
"MIT"
] | null | null | null | app/models/__init__.py | cabralwilliams/python-social | 8ec0e3965312c280f31cf74a8b1e2e77d0629324 | [
"MIT"
] | null | null | null | from .User import User
from .Post import Post
from .Comment import Comment
from .Upvote import Upvote
from .Downvote import Downvote | 26.4 | 30 | 0.818182 | 20 | 132 | 5.4 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143939 | 132 | 5 | 30 | 26.4 | 0.955752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
53e58c7840978058dffb112d0968b444a9f38217 | 116 | py | Python | itsybitsy/__main__.py | jessegonzalez-life360/itsybitsy | b7a8ffeff1f883a3b54a900274bd33247dcb98f8 | [
"Apache-2.0"
] | 1 | 2021-01-22T23:50:58.000Z | 2021-01-22T23:50:58.000Z | itsybitsy/__main__.py | etherops/itsybitsy | ce133cce7bd6fe8fc1c9944e644624583d8fb705 | [
"Apache-2.0"
] | null | null | null | itsybitsy/__main__.py | etherops/itsybitsy | ce133cce7bd6fe8fc1c9944e644624583d8fb705 | [
"Apache-2.0"
] | 3 | 2021-01-04T22:22:12.000Z | 2021-06-18T14:11:28.000Z | # Copyright # Copyright 2020 Life360, Inc
# SPDX-License-Identifier: Apache-2.0
from .itsybitsy import main
main()
| 19.333333 | 41 | 0.758621 | 16 | 116 | 5.5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09 | 0.137931 | 116 | 5 | 42 | 23.2 | 0.79 | 0.637931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
53fa71737929aaa7a166257a3e132102c35a455f | 380 | py | Python | gigalixir/auth.py | oleks/gigalixir-cli | d1b1c303e24be548ddc895165e34652c378f4347 | [
"MIT"
] | null | null | null | gigalixir/auth.py | oleks/gigalixir-cli | d1b1c303e24be548ddc895165e34652c378f4347 | [
"MIT"
] | null | null | null | gigalixir/auth.py | oleks/gigalixir-cli | d1b1c303e24be548ddc895165e34652c378f4347 | [
"MIT"
] | null | null | null | class AuthException(Exception):
def __init__(self):
# Call the base class constructor with the parameters it needs
message = "Sorry, you do not have access to that app. Try passing the app name explicitly with the `-a` flag. If that doesn't work, try running `gigalixir login` or check your ~/.netrc ... | 63.333333 | 199 | 0.713158 | 55 | 380 | 4.781818 | 0.781818 | 0.053232 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207895 | 380 | 5 | 200 | 76 | 0.873754 | 0.157895 | 0 | 0 | 0 | 0.25 | 0.562893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
54d147471337a3befcd8c5823cb82d586449bb59 | 2,204 | py | Python | preprocessing/data_preprocessor.py | wilfred-wulbou/ml_ids | e033c0cb59cb14dbefce93847602c75a69384d65 | [
"MIT"
] | 8 | 2021-04-05T07:42:29.000Z | 2021-12-10T18:13:22.000Z | preprocessing/data_preprocessor.py | wilfred-wulbou/ml_ids | e033c0cb59cb14dbefce93847602c75a69384d65 | [
"MIT"
] | null | null | null | preprocessing/data_preprocessor.py | wilfred-wulbou/ml_ids | e033c0cb59cb14dbefce93847602c75a69384d65 | [
"MIT"
] | 1 | 2021-07-12T00:01:29.000Z | 2021-07-12T00:01:29.000Z | import numpy as np
from sklearn.preprocessing import LabelEncoder
from sklearn.base import BaseEstimator, TransformerMixin
# from sklearn.externals import joblib
import joblib
# Data Preprocessing
class AttributesRemover(BaseEstimator, TransformerMixin):
def __init__(self, columns=['Flow ID','Src IP','Src Port','... | 35.548387 | 104 | 0.669691 | 290 | 2,204 | 4.993103 | 0.351724 | 0.03453 | 0.041436 | 0.055249 | 0.287983 | 0.279696 | 0.254144 | 0.234807 | 0.196823 | 0.196823 | 0 | 0.012593 | 0.20735 | 2,204 | 62 | 105 | 35.548387 | 0.816256 | 0.212341 | 0 | 0.434783 | 0 | 0 | 0.041136 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.369565 | false | 0.065217 | 0.086957 | 0.195652 | 0.826087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
54d1d7535092b7a7616ec819ca9c7cc2b6e1c7ac | 38 | py | Python | example.py | d222nguy/pygcn_new | dafe7d7a2d1b68a641d05428aee1f8a58250a7e6 | [
"MIT"
] | null | null | null | example.py | d222nguy/pygcn_new | dafe7d7a2d1b68a641d05428aee1f8a58250a7e6 | [
"MIT"
] | null | null | null | example.py | d222nguy/pygcn_new | dafe7d7a2d1b68a641d05428aee1f8a58250a7e6 | [
"MIT"
] | null | null | null | i am creating the new example.py file
| 19 | 37 | 0.789474 | 8 | 38 | 3.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184211 | 38 | 1 | 38 | 38 | 0.967742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
54f2be64130b1d10a81fa4100cf08da0fb970011 | 25,210 | py | Python | t_speech_assisstant/venv/lib/python3.7/site-packages/AddressBook/_metadata.py | TEgo17/SpeechAssistant | 0e16dd4757f1b05f08ecbb4f4956b2ccd1a63c10 | [
"MIT"
] | 1 | 2020-09-01T16:24:50.000Z | 2020-09-01T16:24:50.000Z | t_speech_assisstant/venv/lib/python3.7/site-packages/AddressBook/_metadata.py | TEgo17/SpeechAssistant | 0e16dd4757f1b05f08ecbb4f4956b2ccd1a63c10 | [
"MIT"
] | 1 | 2021-01-28T20:40:19.000Z | 2021-01-28T20:40:19.000Z | t_speech_assisstant/venv/lib/python3.7/site-packages/AddressBook/_metadata.py | TEgo17/SpeechAssistant | 0e16dd4757f1b05f08ecbb4f4956b2ccd1a63c10 | [
"MIT"
] | null | null | null | # This file is generated by objective.metadata
#
# Last update: Mon Jul 18 11:30:07 2016
import objc, sys
if sys.maxsize > 2 ** 32:
def sel32or64(a, b):
return b
else:
def sel32or64(a, b):
return a
if sys.byteorder == "little":
def littleOrBig(a, b):
return a
else:
de... | 42.801358 | 2,846 | 0.61551 | 1,701 | 25,210 | 8.858319 | 0.292769 | 0.036236 | 0.064109 | 0.075259 | 0.289488 | 0.233873 | 0.188943 | 0.112822 | 0.102867 | 0.081763 | 0 | 0.015616 | 0.204958 | 25,210 | 588 | 2,847 | 42.87415 | 0.736167 | 0.003729 | 0 | 0.514938 | 1 | 0.003515 | 0.612958 | 0.426546 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00703 | false | 0 | 0.008787 | 0.00703 | 0.022847 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
54f6a58c33e8e4d7e656011f643d413b54575a16 | 64 | py | Python | todolist/api/__init__.py | GArmane/python-fastapi-hex-todo | f54fbe0ecd6e158c1ed54a9a7a8ed6bd9d96d39d | [
"MIT"
] | 60 | 2020-03-27T10:06:47.000Z | 2022-03-23T23:05:12.000Z | todolist/api/__init__.py | GArmane/python-fastapi-hex-todo | f54fbe0ecd6e158c1ed54a9a7a8ed6bd9d96d39d | [
"MIT"
] | null | null | null | todolist/api/__init__.py | GArmane/python-fastapi-hex-todo | f54fbe0ecd6e158c1ed54a9a7a8ed6bd9d96d39d | [
"MIT"
] | 11 | 2020-03-22T01:31:20.000Z | 2021-12-20T21:03:20.000Z | __all__ = ("init_app",)
from todolist.api.app import init_app
| 12.8 | 37 | 0.734375 | 10 | 64 | 4.1 | 0.7 | 0.341463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140625 | 64 | 4 | 38 | 16 | 0.745455 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
54fc672c51e294d26e8b211ad7befbc21f4f40a5 | 542 | py | Python | sklearned/embeddings/allembeddings.py | microprediction/sklearned | beaf6c73d09a0bc13cf97edf617ce5d836e6a1a5 | [
"MIT"
] | null | null | null | sklearned/embeddings/allembeddings.py | microprediction/sklearned | beaf6c73d09a0bc13cf97edf617ce5d836e6a1a5 | [
"MIT"
] | 1 | 2021-11-04T23:01:45.000Z | 2021-11-04T23:01:45.000Z | sklearned/embeddings/allembeddings.py | microprediction/sklearned | beaf6c73d09a0bc13cf97edf617ce5d836e6a1a5 | [
"MIT"
] | null | null | null | from sklearned.embeddings.kerasmodels import KERAS_EMBEDDINGS
from sklearned.embeddings.keraslstm import KERAS_LSTM_MODELS
from sklearned.embeddings.kerastcn import KERAS_TCN_MODELS
from sklearned.embeddings.kerascnn import KERAS_CNN_MODELS
from sklearned.embeddings.kerasnearby import KERAS_NEARBY
EMBEDDINGS = KERAS_E... | 45.166667 | 102 | 0.830258 | 76 | 542 | 5.631579 | 0.381579 | 0.151869 | 0.268692 | 0.203271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004167 | 0.114391 | 542 | 12 | 103 | 45.166667 | 0.8875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.555556 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0708a34d1a8ccac92cee2eda46f4ef4a4f509dc3 | 13,168 | py | Python | tests/async/test_download.py | wangkev/playwright-python | b62c1dbd52364c3aa4ba001bad8f94ea43ad1fc5 | [
"Apache-2.0"
] | null | null | null | tests/async/test_download.py | wangkev/playwright-python | b62c1dbd52364c3aa4ba001bad8f94ea43ad1fc5 | [
"Apache-2.0"
] | null | null | null | tests/async/test_download.py | wangkev/playwright-python | b62c1dbd52364c3aa4ba001bad8f94ea43ad1fc5 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) Microsoft Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 37.19774 | 96 | 0.717421 | 1,789 | 13,168 | 5.094466 | 0.134153 | 0.052337 | 0.029186 | 0.031271 | 0.757845 | 0.736998 | 0.712859 | 0.703862 | 0.694755 | 0.679285 | 0 | 0.00322 | 0.174666 | 13,168 | 353 | 97 | 37.303116 | 0.835388 | 0.070474 | 0 | 0.697509 | 0 | 0 | 0.144354 | 0.075286 | 0 | 0 | 0 | 0.002833 | 0.170819 | 1 | 0.021352 | false | 0.003559 | 0.024911 | 0 | 0.046263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
070fae25d13c4879b48c2cbc833263f12709dc90 | 85 | py | Python | clase/apps.py | luisza/lectura_ciclica | 843d87a7cdbcd9a39b8d1ee76ec884d4a35e8634 | [
"Apache-2.0"
] | null | null | null | clase/apps.py | luisza/lectura_ciclica | 843d87a7cdbcd9a39b8d1ee76ec884d4a35e8634 | [
"Apache-2.0"
] | null | null | null | clase/apps.py | luisza/lectura_ciclica | 843d87a7cdbcd9a39b8d1ee76ec884d4a35e8634 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class ClaseConfig(AppConfig):
name = 'clase'
| 14.166667 | 33 | 0.741176 | 10 | 85 | 6.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 85 | 5 | 34 | 17 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
074a8af93568ba0ab1efa18af79a75585a76a7a9 | 9,236 | py | Python | src/bct_price/main.py | 0xJem/discord-bots | 46ce60e9e64ba0643f8dbb15a4970a68482a4813 | [
"MIT"
] | 1 | 2021-12-24T03:05:43.000Z | 2021-12-24T03:05:43.000Z | main.py | frankTurtle/discord-bots | 376527ad32537b303a4718a525369df2f513cf2a | [
"MIT"
] | null | null | null | main.py | frankTurtle/discord-bots | 376527ad32537b303a4718a525369df2f513cf2a | [
"MIT"
] | null | null | null | import os
import json
from web3 import Web3
import discord
from discord.ext import commands, tasks
BOT_TOKEN = os.environ["DISCORD_BOT_TOKEN"]
# Initialized Discord client
intents = discord.Intents.all()
intents.members = True
client = commands.Bot(intents=intents, help_command=None, command_prefix='&?')
# Initializ... | 135.823529 | 7,427 | 0.658185 | 940 | 9,236 | 6.42766 | 0.182979 | 0.067362 | 0.106587 | 0.087223 | 0.715657 | 0.682224 | 0.588381 | 0.512579 | 0.464581 | 0.460775 | 0 | 0.033034 | 0.046232 | 9,236 | 67 | 7,428 | 137.850746 | 0.652855 | 0.005738 | 0 | 0.142857 | 0 | 0.020408 | 0.826996 | 0.811962 | 0 | 0 | 0.004576 | 0 | 0.020408 | 1 | 0.020408 | false | 0.020408 | 0.102041 | 0 | 0.163265 | 0.040816 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4acaa0d32bddd5ffacb9813549b695024fac223a | 514 | py | Python | response/requestHandler.py | moustachio-belvedere/aeroponicsforall | 7537a10f2b2c6147fdbf966910885952105029e1 | [
"MIT"
] | null | null | null | response/requestHandler.py | moustachio-belvedere/aeroponicsforall | 7537a10f2b2c6147fdbf966910885952105029e1 | [
"MIT"
] | null | null | null | response/requestHandler.py | moustachio-belvedere/aeroponicsforall | 7537a10f2b2c6147fdbf966910885952105029e1 | [
"MIT"
] | null | null | null | class MockFile():
def read(self):
return False
class RequestHandler():
def __init__(self):
self.contentType = ""
self.contents = MockFile()
def getContents(self):
return self.contents.read()
def read(self):
return self.contents
def setStatus(self, status):... | 19.769231 | 35 | 0.605058 | 54 | 514 | 5.685185 | 0.333333 | 0.19544 | 0.18241 | 0.110749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.297665 | 514 | 26 | 36 | 19.769231 | 0.850416 | 0 | 0 | 0.105263 | 0 | 0 | 0.01165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.421053 | false | 0 | 0 | 0.315789 | 0.842105 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
4acf8cb9ac614a30c78e145550f0ca4d8175ee66 | 19 | py | Python | torrentool/__init__.py | pawanshah1997/mytool | 0cd88becf5b6078cad4365c93f0a3a3013495f96 | [
"BSD-3-Clause"
] | null | null | null | torrentool/__init__.py | pawanshah1997/mytool | 0cd88becf5b6078cad4365c93f0a3a3013495f96 | [
"BSD-3-Clause"
] | null | null | null | torrentool/__init__.py | pawanshah1997/mytool | 0cd88becf5b6078cad4365c93f0a3a3013495f96 | [
"BSD-3-Clause"
] | null | null | null | VERSION = (0, 4, 0) | 19 | 19 | 0.526316 | 4 | 19 | 2.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.210526 | 19 | 1 | 19 | 19 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4aeb7d6aa14e4d0f63b5a7ab1753c7ade650334c | 478 | py | Python | keymaker/core/admin.py | fim/keymaker | ad0bc65cd33e5454ef6c1b52a3b5bc0cb81b1b94 | [
"BSD-2-Clause"
] | 1 | 2015-02-26T15:48:54.000Z | 2015-02-26T15:48:54.000Z | keymaker/core/admin.py | fim/keymaker | ad0bc65cd33e5454ef6c1b52a3b5bc0cb81b1b94 | [
"BSD-2-Clause"
] | null | null | null | keymaker/core/admin.py | fim/keymaker | ad0bc65cd33e5454ef6c1b52a3b5bc0cb81b1b94 | [
"BSD-2-Clause"
] | null | null | null | from django.contrib import admin
from keymaker.core.models import CSR, PrivateKey, Certificate, Subject
class CSRAdmin(admin.ModelAdmin):
pass
class SubjectAdmin(admin.ModelAdmin):
pass
class PrivateKeyAdmin(admin.ModelAdmin):
pass
class CertificateAdmin(admin.ModelAdmin):
pass
admin.site.register(... | 23.9 | 70 | 0.803347 | 54 | 478 | 7.111111 | 0.388889 | 0.15625 | 0.197917 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108787 | 478 | 19 | 71 | 25.157895 | 0.901408 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.285714 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
4aec4747c233718503359150d69e5043cdf3cf66 | 498 | py | Python | dfvfs/credentials/luksde_credentials.py | dfjxs/dfvfs | a4154b07bb08c3c86afa2847f3224189dd80c138 | [
"Apache-2.0"
] | 176 | 2015-01-02T13:55:39.000Z | 2022-03-12T11:44:37.000Z | dfvfs/credentials/luksde_credentials.py | dfjxs/dfvfs | a4154b07bb08c3c86afa2847f3224189dd80c138 | [
"Apache-2.0"
] | 495 | 2015-01-13T06:47:06.000Z | 2022-03-12T11:07:03.000Z | dfvfs/credentials/luksde_credentials.py | dfjxs/dfvfs | a4154b07bb08c3c86afa2847f3224189dd80c138 | [
"Apache-2.0"
] | 62 | 2015-02-23T08:19:38.000Z | 2022-03-18T06:01:22.000Z | # -*- coding: utf-8 -*-
"""The LUKS Drive Encryption credentials."""
from dfvfs.credentials import credentials
from dfvfs.credentials import manager
from dfvfs.lib import definitions
class LUKSDECredentials(credentials.Credentials):
"""LUKS Drive Encryption credentials."""
# TODO: add support for key_data crede... | 24.9 | 67 | 0.7751 | 51 | 498 | 7.490196 | 0.588235 | 0.070681 | 0.099476 | 0.157068 | 0.193717 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002304 | 0.128514 | 498 | 19 | 68 | 26.210526 | 0.87788 | 0.279116 | 0 | 0 | 0 | 0 | 0.023055 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 1 | 0 | false | 0.125 | 0.375 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
ab15df2d80fd0f6c5ce767c00fade9386278c40a | 249 | py | Python | manage.py | Contraz/demosys-py | 0479e0f3b0a3901f601bffd2d11e155f97b47555 | [
"0BSD"
] | 70 | 2017-03-31T12:01:41.000Z | 2022-01-05T06:30:57.000Z | manage.py | Contraz/demosys-py | 0479e0f3b0a3901f601bffd2d11e155f97b47555 | [
"0BSD"
] | 69 | 2017-06-18T22:37:46.000Z | 2020-01-23T04:02:22.000Z | manage.py | Contraz/demosys-py | 0479e0f3b0a3901f601bffd2d11e155f97b47555 | [
"0BSD"
] | 9 | 2017-05-13T21:13:02.000Z | 2020-10-01T18:09:49.000Z | #!/usr/bin/env python3
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DEMOSYS_SETTINGS_MODULE", "examples.settings")
from demosys.management import execute_from_command_line
execute_from_command_line(sys.argv)
| 22.636364 | 73 | 0.7751 | 33 | 249 | 5.363636 | 0.666667 | 0.124294 | 0.20339 | 0.248588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004608 | 0.128514 | 249 | 10 | 74 | 24.9 | 0.81106 | 0.084337 | 0 | 0 | 0 | 0 | 0.211454 | 0.101322 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ab193c27bfef9fdf958904e7fb2540cf56c43b31 | 94 | py | Python | osm_painter/__init__.py | nokutu/osm_painter | f8e7cc24e4f96b2df415380d99a47c915f2f128e | [
"MIT"
] | null | null | null | osm_painter/__init__.py | nokutu/osm_painter | f8e7cc24e4f96b2df415380d99a47c915f2f128e | [
"MIT"
] | null | null | null | osm_painter/__init__.py | nokutu/osm_painter | f8e7cc24e4f96b2df415380d99a47c915f2f128e | [
"MIT"
] | null | null | null | from .draw import draw
from .model import BoxLocation, ElevationLayer, Layers, RadiusLocation
| 31.333333 | 70 | 0.829787 | 11 | 94 | 7.090909 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117021 | 94 | 2 | 71 | 47 | 0.939759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ab2d9afa39b9d2ef18c9e8884c53477f3c63fd63 | 718 | py | Python | src/domain/route/repository.py | Monster-Gem/f-ticket | bfee2bcc3db92e2350c0f3bbc32108a79350583e | [
"MIT"
] | 1 | 2022-03-23T13:35:38.000Z | 2022-03-23T13:35:38.000Z | src/domain/route/repository.py | Monster-Gem/f-ticket | bfee2bcc3db92e2350c0f3bbc32108a79350583e | [
"MIT"
] | null | null | null | src/domain/route/repository.py | Monster-Gem/f-ticket | bfee2bcc3db92e2350c0f3bbc32108a79350583e | [
"MIT"
] | null | null | null | from . import entity
from mongoengine.queryset.visitor import Q
def get_all_routes():
return entity.Route.objects()
def get_route_with_origin(origin):
return entity.Route.objects(origin=origin)
def get_route_with_destination(destination):
return entity.Route.objects(destination=destination).first()
def ... | 24.758621 | 86 | 0.725627 | 95 | 718 | 5.336842 | 0.294737 | 0.098619 | 0.134122 | 0.189349 | 0.138067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169916 | 718 | 29 | 87 | 24.758621 | 0.850671 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318182 | false | 0 | 0.090909 | 0.181818 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
db6b9b33525d134e64a0e14f7ae6e8859ab8636e | 119 | py | Python | test_django_admin_bootstrapped/CapitalApp/models.py | Angoreher/django-admin-bootstrapped | 6cb7782c0d23cd352042fc91de0c979f8d8fde52 | [
"Apache-2.0"
] | 987 | 2015-01-04T14:38:41.000Z | 2022-03-23T21:38:42.000Z | test_django_admin_bootstrapped/CapitalApp/models.py | yakky/django-admin-bootstrapped | 637baa44b5271465965941311c1fccef016137bf | [
"Apache-2.0"
] | 104 | 2015-01-13T13:45:57.000Z | 2021-08-15T05:01:56.000Z | test_django_admin_bootstrapped/CapitalApp/models.py | yakky/django-admin-bootstrapped | 637baa44b5271465965941311c1fccef016137bf | [
"Apache-2.0"
] | 290 | 2015-01-02T08:15:22.000Z | 2022-03-10T07:51:01.000Z | from django.db import models
# Create your models here.
class CapitalModel(models.Model):
name = models.TextField()
| 19.833333 | 33 | 0.764706 | 16 | 119 | 5.6875 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 119 | 5 | 34 | 23.8 | 0.892157 | 0.201681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
db7db4b2b5bd00527769feb11fa1825106079504 | 192 | py | Python | tcex/exit/__init__.py | GShepherdTC/tcex | 70b1199b8bb9e63f53e2ba792489267108c909cd | [
"Apache-2.0"
] | null | null | null | tcex/exit/__init__.py | GShepherdTC/tcex | 70b1199b8bb9e63f53e2ba792489267108c909cd | [
"Apache-2.0"
] | null | null | null | tcex/exit/__init__.py | GShepherdTC/tcex | 70b1199b8bb9e63f53e2ba792489267108c909cd | [
"Apache-2.0"
] | null | null | null | """Declares a service to manage exiting and cleaning up an app."""
# flake8: noqa
# first-party
from tcex.exit.error_codes import handle_error
from tcex.exit.exit import ExitCode, ExitService
| 32 | 66 | 0.786458 | 30 | 192 | 4.966667 | 0.8 | 0.107383 | 0.161074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005988 | 0.130208 | 192 | 5 | 67 | 38.4 | 0.886228 | 0.447917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
db91a80e99d278bf1a5f0301021d4c7be0c75f61 | 2,362 | py | Python | ipfshttpclient/client/repo.py | iskanderandrews/py-ipfs-http-client | 9b10477fee55ffc7580f770ab014b7e34a6b693b | [
"MIT"
] | 186 | 2020-04-17T14:21:13.000Z | 2022-03-28T20:16:14.000Z | ipfshttpclient/client/repo.py | iskanderandrews/py-ipfs-http-client | 9b10477fee55ffc7580f770ab014b7e34a6b693b | [
"MIT"
] | 104 | 2020-04-16T19:08:58.000Z | 2022-03-02T01:13:51.000Z | ipfshttpclient/client/repo.py | iskanderandrews/py-ipfs-http-client | 9b10477fee55ffc7580f770ab014b7e34a6b693b | [
"MIT"
] | 94 | 2020-05-14T08:59:52.000Z | 2022-03-31T12:13:27.000Z | from . import base
class Section(base.SectionBase):
@base.returns_multiple_items(base.ResponseBase)
def gc(self, *, quiet: bool = False, **kwargs: base.CommonArgs):
"""Removes stored objects that are not pinned from the repo
.. code-block:: python
>>> client.repo.gc()
[{'Key': 'QmNPXDC6wTXVmZ9Uoc8X1... | 32.356164 | 72 | 0.57536 | 235 | 2,362 | 5.782979 | 0.510638 | 0.020603 | 0.027962 | 0.023547 | 0.110375 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018848 | 0.191363 | 2,362 | 72 | 73 | 32.805556 | 0.689529 | 0.817951 | 0 | 0 | 0 | 0 | 0.075269 | 0 | 0 | 0 | 0 | 0.013889 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
db924ffa9004430338179d39358ea9a3f932cd52 | 829 | py | Python | test.py | coldmanck/dsa-py | 0f406f5b967fa09a6257f3953d3072e5facbc204 | [
"MIT"
] | null | null | null | test.py | coldmanck/dsa-py | 0f406f5b967fa09a6257f3953d3072e5facbc204 | [
"MIT"
] | null | null | null | test.py | coldmanck/dsa-py | 0f406f5b967fa09a6257f3953d3072e5facbc204 | [
"MIT"
] | null | null | null | map = \
[[0,0,1,0,0,0,0,1,0,0,0,0,0],
[0,0,0,0,0,0,0,1,1,1,0,0,0],
[0,1,1,0,1,0,0,0,0,0,0,0,0],
[0,1,0,0,1,1,0,0,1,0,1,0,0],
[0,1,0,0,1,1,0,0,1,1,1,0,0],
[0,0,0,0,0,0,0,0,0,0,1,0,0],
[0,0,0,0,0,0,0,1,1,1,0,0,0],
[0,0,0,0,0,0,0,1,1,0,0,0,0]]
def recursive_find(i, j, size):
if i >= 0 and i < map.shape[0] and ... | 24.382353 | 84 | 0.512666 | 205 | 829 | 2.043902 | 0.126829 | 0.300716 | 0.350835 | 0.381862 | 0.577566 | 0.477327 | 0.465394 | 0.451074 | 0.379475 | 0.379475 | 0 | 0.185827 | 0.234017 | 829 | 33 | 85 | 25.121212 | 0.474016 | 0 | 0 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.037037 | 0 | 0.111111 | 0.037037 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
db9532a5de9c9ac7bb3cdc94f05a9a6cb691255b | 2,405 | py | Python | FBSSchemaGenerator/build/python/FETObs.py | sintefneodroid/schema | 05749c7b84caf188d555947fb6572bc48a5a9067 | [
"Apache-2.0"
] | 2 | 2018-04-28T13:45:45.000Z | 2019-01-21T14:39:53.000Z | FBSSchemaGenerator/build/python/FETObs.py | sintefneodroid/schema | 05749c7b84caf188d555947fb6572bc48a5a9067 | [
"Apache-2.0"
] | null | null | null | FBSSchemaGenerator/build/python/FETObs.py | sintefneodroid/schema | 05749c7b84caf188d555947fb6572bc48a5a9067 | [
"Apache-2.0"
] | null | null | null | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: FBS
import flatbuffers
class FETObs(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsFETObs(cls, buf, offset):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = FETObs()
... | 33.873239 | 134 | 0.63659 | 283 | 2,405 | 5.289753 | 0.243816 | 0.060788 | 0.117568 | 0.187041 | 0.496994 | 0.496994 | 0.387442 | 0.387442 | 0.387442 | 0.374082 | 0 | 0.010164 | 0.263617 | 2,405 | 70 | 135 | 34.357143 | 0.835121 | 0.048233 | 0 | 0.490566 | 1 | 0 | 0.001754 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.226415 | false | 0 | 0.09434 | 0.018868 | 0.528302 | 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 | 1 | 0 | 0 | 4 |
dba0434b869019c9e8fc4dba6e2d485ed2d35d21 | 2,366 | py | Python | idb/grpc/file.py | asafkorem/idb | 43a3eccc1389e3c9f527992c64ef69b9b16b2472 | [
"MIT"
] | null | null | null | idb/grpc/file.py | asafkorem/idb | 43a3eccc1389e3c9f527992c64ef69b9b16b2472 | [
"MIT"
] | null | null | null | idb/grpc/file.py | asafkorem/idb | 43a3eccc1389e3c9f527992c64ef69b9b16b2472 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from idb.common.types import FileContainer, FileContainerType
from idb.grpc.idb_pb2 import FileContainer as GrpcFileC... | 50.340426 | 78 | 0.775993 | 218 | 2,366 | 8.357798 | 0.302752 | 0.214599 | 0.251921 | 0.410538 | 0.175631 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001002 | 0.156382 | 2,366 | 46 | 79 | 51.434783 | 0.911824 | 0.08115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.052632 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
dba274401b44c55159106f26d48c38e10699dc73 | 1,159 | py | Python | config/routers.py | hyphae/apis-service_center | 0a6f0d349a435a3c739c2ee1ebdcc010c2dd13d1 | [
"Apache-2.0"
] | null | null | null | config/routers.py | hyphae/apis-service_center | 0a6f0d349a435a3c739c2ee1ebdcc010c2dd13d1 | [
"Apache-2.0"
] | 3 | 2021-03-20T10:35:08.000Z | 2022-03-21T16:54:05.000Z | config/routers.py | hyphae/apis-service_center | 0a6f0d349a435a3c739c2ee1ebdcc010c2dd13d1 | [
"Apache-2.0"
] | null | null | null | """Django でモデルとデータベース定義との対応付けをするクラスを定義
settings.DATABASE_ROUTERS でクラスを指定する.
"""
from django.conf import settings
class DatabaseRouter:
"""モデルとデータベース定義との対応付けをするクラス
config.DATABASE_APPS_MAPPING を参照し config.DATABASES のエントリ名を返す.
"""
def db_for_read(self, model, **hints):
if model._meta.app_label in settings.DATAB... | 32.194444 | 64 | 0.780846 | 161 | 1,159 | 5.335404 | 0.273292 | 0.223516 | 0.265425 | 0.345751 | 0.541327 | 0.471478 | 0.426077 | 0.426077 | 0.426077 | 0.426077 | 0 | 0.011753 | 0.119068 | 1,159 | 35 | 65 | 33.114286 | 0.829579 | 0.138913 | 0 | 0.272727 | 0 | 0 | 0.003052 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.045455 | 0 | 0.681818 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
dbbb068e3c1eaa17d7fdfe808640a9ea18b469e2 | 228 | py | Python | scripts/update_centroid_reports.py | sot/mica | 136a9b0d9521efda5208067b51cf0c8700b4def3 | [
"BSD-3-Clause"
] | null | null | null | scripts/update_centroid_reports.py | sot/mica | 136a9b0d9521efda5208067b51cf0c8700b4def3 | [
"BSD-3-Clause"
] | 150 | 2015-01-23T17:09:53.000Z | 2022-01-10T00:50:54.000Z | scripts/update_centroid_reports.py | sot/mica | 136a9b0d9521efda5208067b51cf0c8700b4def3 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import mica.centroid_dashboard
# Cheat. Needs entrypoint scripts
mica.centroid_dashboard.update_observed_metrics(save=True, make_plots=True)
| 32.571429 | 75 | 0.815789 | 34 | 228 | 5.323529 | 0.852941 | 0.132597 | 0.232044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004878 | 0.100877 | 228 | 6 | 76 | 38 | 0.878049 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
91741e1d0f4d038601721d995d62edac19715782 | 124 | py | Python | Aula01/aula01EstruturaDeRepeticaoWhile.py | leonardogt4/Curso-Introdu-o-a-Python---Univali | 7f2a7c46b8ddf72391e58f22099d3d8ec91cbf7b | [
"MIT"
] | 2 | 2019-03-08T21:21:03.000Z | 2019-03-08T21:21:16.000Z | Aula01/aula01EstruturaDeRepeticaoWhile.py | leonardogt4/Curso-Introdu-o-a-Python---Univali | 7f2a7c46b8ddf72391e58f22099d3d8ec91cbf7b | [
"MIT"
] | null | null | null | Aula01/aula01EstruturaDeRepeticaoWhile.py | leonardogt4/Curso-Introdu-o-a-Python---Univali | 7f2a7c46b8ddf72391e58f22099d3d8ec91cbf7b | [
"MIT"
] | null | null | null | print("Test WHILE")
total = 0
while total <= 100:
print("%d Interação de Loop\n" %total)
total += 1
print("End")
| 12.4 | 42 | 0.596774 | 19 | 124 | 3.894737 | 0.684211 | 0.27027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.233871 | 124 | 9 | 43 | 13.777778 | 0.726316 | 0 | 0 | 0 | 0 | 0 | 0.282258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
91a89b6a062423aad50899fab0b7a9e7ae6a96ff | 211 | py | Python | terra_sdk/util/hash.py | yeeyangtee/terra-sdk-python | 44e31290cfcb5563dd31a0d9c64c3ef2af72c0e2 | [
"MIT"
] | 66 | 2021-10-21T23:29:38.000Z | 2022-03-30T15:58:13.000Z | terra_sdk/util/hash.py | yeeyangtee/terra-sdk-python | 44e31290cfcb5563dd31a0d9c64c3ef2af72c0e2 | [
"MIT"
] | 50 | 2021-10-19T06:11:56.000Z | 2022-03-31T17:06:57.000Z | terra_sdk/util/hash.py | yeeyangtee/terra-sdk-python | 44e31290cfcb5563dd31a0d9c64c3ef2af72c0e2 | [
"MIT"
] | 39 | 2021-11-07T17:28:31.000Z | 2022-03-31T15:03:57.000Z | import base64
import hashlib
def hash_amino(txdata: str) -> str:
"""Get the transaction hash from Amino-encoded Transaction in base64."""
return hashlib.sha256(base64.b64decode(txdata)).digest().hex()
| 26.375 | 76 | 0.734597 | 28 | 211 | 5.5 | 0.678571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060773 | 0.14218 | 211 | 7 | 77 | 30.142857 | 0.790055 | 0.312796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
91b87097ca71d86eb77a4fdbf667a3e9e9177372 | 154 | py | Python | backend/users/tasks.py | jaenia/test-django-react-boilerplate | d172cc56c7ad93870d05ce3c41742fcc28d6bbb3 | [
"MIT"
] | null | null | null | backend/users/tasks.py | jaenia/test-django-react-boilerplate | d172cc56c7ad93870d05ce3c41742fcc28d6bbb3 | [
"MIT"
] | null | null | null | backend/users/tasks.py | jaenia/test-django-react-boilerplate | d172cc56c7ad93870d05ce3c41742fcc28d6bbb3 | [
"MIT"
] | null | null | null | from django.core import management
from todolist2 import celery_app
@celery_app.task
def clearsessions():
management.call_command('clearsessions')
| 17.111111 | 44 | 0.805195 | 19 | 154 | 6.368421 | 0.684211 | 0.14876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007407 | 0.123377 | 154 | 8 | 45 | 19.25 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0.084416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
91d920cc119dc78a1e47d124e0deba5e4dda51d3 | 222 | py | Python | deepomatic/cli/cmds/site/list.py | Deepomatic/deepocli | 127b95200c3c8e4cbe98bb1548fe865893ab2a49 | [
"MIT"
] | 15 | 2018-12-19T16:51:05.000Z | 2019-02-22T09:08:05.000Z | deepomatic/cli/cmds/site/list.py | Deepomatic/deepocli | 127b95200c3c8e4cbe98bb1548fe865893ab2a49 | [
"MIT"
] | 150 | 2018-12-20T13:45:05.000Z | 2022-03-12T01:04:32.000Z | deepomatic/cli/cmds/site/list.py | Deepomatic/deepocli | 127b95200c3c8e4cbe98bb1548fe865893ab2a49 | [
"MIT"
] | null | null | null | from ..utils import Command
from .utils import SiteManager
class ListCommand(Command):
"""
Get the list of installed sites
"""
def run(self, **kwargs):
print('\n'.join(SiteManager().list()))
| 18.5 | 46 | 0.621622 | 26 | 222 | 5.307692 | 0.769231 | 0.130435 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238739 | 222 | 11 | 47 | 20.181818 | 0.816568 | 0.13964 | 0 | 0 | 0 | 0 | 0.011696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0.2 | 1 | 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 | 4 |
37d12d961dc439435eb2e7cddbd7b53f5561d58f | 1,555 | py | Python | metadeploy/api/migrations/0016_use_hashids.py | sfdc-qbranch/MetaDeploy | d22547b3814dbec6aefa4d86b9f81c6f175c1b67 | [
"BSD-3-Clause"
] | 33 | 2019-03-20T15:34:39.000Z | 2022-03-30T15:59:40.000Z | metadeploy/api/migrations/0016_use_hashids.py | sfdc-qbranch/MetaDeploy | d22547b3814dbec6aefa4d86b9f81c6f175c1b67 | [
"BSD-3-Clause"
] | 2,718 | 2019-02-27T19:46:07.000Z | 2022-03-11T23:18:09.000Z | metadeploy/api/migrations/0016_use_hashids.py | sfdc-qbranch/MetaDeploy | d22547b3814dbec6aefa4d86b9f81c6f175c1b67 | [
"BSD-3-Clause"
] | 28 | 2019-03-28T04:57:16.000Z | 2022-02-04T16:49:25.000Z | # Generated by Django 2.1.2 on 2018-11-07 17:52
import hashid_field.field
from django.db import migrations
alphabet = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"
class Migration(migrations.Migration):
dependencies = [("api", "0015_merge_20181031_0222")]
operations = [
migratio... | 31.1 | 82 | 0.58328 | 144 | 1,555 | 6.131944 | 0.319444 | 0.074745 | 0.10872 | 0.164213 | 0.674972 | 0.674972 | 0.674972 | 0.674972 | 0.674972 | 0.674972 | 0 | 0.043396 | 0.318328 | 1,555 | 49 | 83 | 31.734694 | 0.789623 | 0.028939 | 0 | 0.714286 | 1 | 0 | 0.082228 | 0.057029 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.119048 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
37d8274952af104cee7cdbb8c0f605319df4cd54 | 195 | py | Python | pythontraining/mymodule_user.py | srikanteswartalluri/pyutils | bf8d56ac9e9b0786861c08ef32eae49b021f20a3 | [
"0BSD"
] | null | null | null | pythontraining/mymodule_user.py | srikanteswartalluri/pyutils | bf8d56ac9e9b0786861c08ef32eae49b021f20a3 | [
"0BSD"
] | null | null | null | pythontraining/mymodule_user.py | srikanteswartalluri/pyutils | bf8d56ac9e9b0786861c08ef32eae49b021f20a3 | [
"0BSD"
] | null | null | null | __author__ = 'talluri'
import mymodule
print mymodule.VERSION
print mymodule.version()
from mymodule import *#not a good practice, it pollutes local name space
print VERSION
print version()
| 15 | 72 | 0.784615 | 26 | 195 | 5.730769 | 0.615385 | 0.174497 | 0.268456 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 195 | 12 | 73 | 16.25 | 0.90303 | 0.251282 | 0 | 0 | 0 | 0 | 0.048276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.285714 | null | null | 0.571429 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
37da8be5809f4b80c257533903d5d11aa721345a | 1,872 | py | Python | modules/signatures/windows/disables_browserwarn.py | Yuanmessi/Bold-Falcon | 00fcaba0b3d9c462b9d20ecb256ff85db5d119e2 | [
"BSD-3-Clause"
] | 24 | 2021-06-21T07:35:37.000Z | 2022-03-22T03:33:59.000Z | modules/signatures/windows/disables_browserwarn.py | Yuanmessi/Bold-Falcon | 00fcaba0b3d9c462b9d20ecb256ff85db5d119e2 | [
"BSD-3-Clause"
] | 3 | 2021-07-01T08:09:05.000Z | 2022-01-28T03:38:36.000Z | modules/signatures/windows/disables_browserwarn.py | Yuanmessi/Bold-Falcon | 00fcaba0b3d9c462b9d20ecb256ff85db5d119e2 | [
"BSD-3-Clause"
] | 6 | 2021-06-22T05:32:57.000Z | 2022-02-11T02:05:45.000Z | # Copyright (C) 2015 Optiv, Inc. (brad.spengler@optiv.com), Kevin Ross, Updated 2016 for Cuckoo 2.0
# This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org
# See the file 'docs/LICENSE' for copying permission.
from lib.cuckoo.common.abstracts import Signature
class DisablesBrowserWarn(Signature):
nam... | 56.727273 | 137 | 0.651709 | 170 | 1,872 | 7.123529 | 0.588235 | 0.125516 | 0.184971 | 0.17341 | 0.401321 | 0.401321 | 0.322048 | 0 | 0 | 0 | 0 | 0.030979 | 0.137821 | 1,872 | 32 | 138 | 58.5 | 0.719331 | 0.115385 | 0 | 0 | 0 | 0 | 0.640436 | 0.567191 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.041667 | 0 | 0.5 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5310795e16ddb15e63de386e9c904f7f7aedbfa9 | 71 | py | Python | beginning-python-3ed-master/Chapter10/listing10-3.py | zhuxinkai/python3-book-practice | a0d297df0755eaf239398f138c3b38746c32ac99 | [
"MIT"
] | null | null | null | beginning-python-3ed-master/Chapter10/listing10-3.py | zhuxinkai/python3-book-practice | a0d297df0755eaf239398f138c3b38746c32ac99 | [
"MIT"
] | 1 | 2020-06-19T05:47:38.000Z | 2020-06-19T05:47:46.000Z | beginning-python-3ed-master/Chapter10/listing10-3.py | zhuxinkai/python3-book-practice | a0d297df0755eaf239398f138c3b38746c32ac99 | [
"MIT"
] | null | null | null | # hello3.py
def hello():
print("Hello, world!")
# A test:
hello() | 10.142857 | 26 | 0.577465 | 10 | 71 | 4.1 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.211268 | 71 | 7 | 27 | 10.142857 | 0.714286 | 0.239437 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
53225ca1acb5de9668657bfef0250c2bb0f98b48 | 13,155 | py | Python | Patent_US_3423942_Rocket_Engine/Version_1/unit_tests.py | Jay4C/Python-Macros-For_FreeCAD | 12ce5441a26731377fa43e86ccd2be675740d3a0 | [
"MIT"
] | null | null | null | Patent_US_3423942_Rocket_Engine/Version_1/unit_tests.py | Jay4C/Python-Macros-For_FreeCAD | 12ce5441a26731377fa43e86ccd2be675740d3a0 | [
"MIT"
] | null | null | null | Patent_US_3423942_Rocket_Engine/Version_1/unit_tests.py | Jay4C/Python-Macros-For_FreeCAD | 12ce5441a26731377fa43e86ccd2be675740d3a0 | [
"MIT"
] | null | null | null | import os
import time
import unittest
import pywinauto.mouse
import pywinauto.keyboard
# https://patents.google.com/patent/US3423942A/en?q=rocket+engine&before=priority:19900101
class UnitTestsPatentUS3423942RocketEngineVersion(unittest.TestCase):
# ok
def test_part_nozzle(self):
print("test_part_nozz... | 25.444874 | 217 | 0.687799 | 1,881 | 13,155 | 4.564593 | 0.107921 | 0.033776 | 0.030748 | 0.044258 | 0.832635 | 0.758793 | 0.726648 | 0.643839 | 0.592826 | 0.590962 | 0 | 0.046103 | 0.178867 | 13,155 | 516 | 218 | 25.494186 | 0.74875 | 0.054884 | 0 | 0.583587 | 0 | 0.033435 | 0.757693 | 0.376027 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015198 | false | 0 | 0.030395 | 0 | 0.048632 | 0.030395 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
533149b10cf773e731b2338a2c6ec70f5e802c6c | 69 | py | Python | neuralmonkey/__init__.py | Simon-Will/neuralmonkey | b686a9d302cb10eda5fca991e1d7ee6b9e84b75a | [
"BSD-3-Clause"
] | 446 | 2016-06-16T11:31:12.000Z | 2021-12-04T04:19:26.000Z | neuralmonkey/__init__.py | Simon-Will/neuralmonkey | b686a9d302cb10eda5fca991e1d7ee6b9e84b75a | [
"BSD-3-Clause"
] | 673 | 2016-06-20T09:10:50.000Z | 2020-10-13T17:37:34.000Z | neuralmonkey/__init__.py | Simon-Will/neuralmonkey | b686a9d302cb10eda5fca991e1d7ee6b9e84b75a | [
"BSD-3-Clause"
] | 116 | 2016-06-16T18:23:13.000Z | 2021-02-06T06:45:20.000Z | """The neuralmonkey package is the root package of this project."""
| 34.5 | 68 | 0.73913 | 10 | 69 | 5.1 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15942 | 69 | 1 | 69 | 69 | 0.87931 | 0.884058 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
53692160af71254a08a87d70e3e5a37ad2737a9b | 171 | py | Python | cli.py | shimataro/brocadefw | c49e6a448a83d47d3b7046194748a97c19a3e1d7 | [
"MIT"
] | 1 | 2015-11-22T06:27:56.000Z | 2015-11-22T06:27:56.000Z | cli.py | shimataro/brocadefw | c49e6a448a83d47d3b7046194748a97c19a3e1d7 | [
"MIT"
] | null | null | null | cli.py | shimataro/brocadefw | c49e6a448a83d47d3b7046194748a97c19a3e1d7 | [
"MIT"
] | null | null | null | #!/usr/bin/python3.2
# -*- coding: utf-8 -*-
""" コマンドラインインターフェース
@author: shimataro
"""
def main():
return 0
if __name__ == "__main__":
import sys
sys.exit(main())
| 11.4 | 26 | 0.619883 | 22 | 171 | 4.454545 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028169 | 0.169591 | 171 | 14 | 27 | 12.214286 | 0.661972 | 0.450292 | 0 | 0 | 0 | 0 | 0.094118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.2 | 0.2 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
7267aade2878283d4fb20c9eec7cb04ab913d4a8 | 426 | py | Python | src/todo_or_die/exceptions.py | walshyb/todo-or-die-python | 42abc2ae4f5f9e26dba77fe83420766fa2b4ce0d | [
"MIT"
] | 2 | 2021-09-13T15:58:09.000Z | 2021-09-22T03:45:33.000Z | src/todo_or_die/exceptions.py | walshyb/todo-or-die-python | 42abc2ae4f5f9e26dba77fe83420766fa2b4ce0d | [
"MIT"
] | null | null | null | src/todo_or_die/exceptions.py | walshyb/todo-or-die-python | 42abc2ae4f5f9e26dba77fe83420766fa2b4ce0d | [
"MIT"
] | null | null | null | from .helpers.generate_message import generate_message
from warnings import warn
class OverdueError(Exception):
def __init__(self, message: str, date: str = ""):
super().__init__(generate_message(message, date))
class OverdueWarning(Warning):
def __init__(self, message: str, date: str = ""):
... | 30.428571 | 57 | 0.699531 | 50 | 426 | 5.56 | 0.42 | 0.215827 | 0.079137 | 0.129496 | 0.201439 | 0.201439 | 0.201439 | 0 | 0 | 0 | 0 | 0 | 0.190141 | 426 | 14 | 58 | 30.428571 | 0.805797 | 0 | 0 | 0.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.2 | 0.1 | 0.8 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
7282e9fbcd024d6aae78f71206db5f11719ea2df | 218 | py | Python | stuart/models/abtract_model.py | GajovskiMaxime/stuart | 361a92be3d380e9dfe8db12c7c3327061cc4818a | [
"BSD-3-Clause"
] | null | null | null | stuart/models/abtract_model.py | GajovskiMaxime/stuart | 361a92be3d380e9dfe8db12c7c3327061cc4818a | [
"BSD-3-Clause"
] | 9 | 2017-08-08T15:23:40.000Z | 2017-08-17T15:05:42.000Z | stuart/models/abtract_model.py | GajovskiMaxime/stuart | 361a92be3d380e9dfe8db12c7c3327061cc4818a | [
"BSD-3-Clause"
] | null | null | null | from stuart.database.crud_mixin import CRUDMixin
from stuart.extensions import db
class AbstractModel(CRUDMixin, db.Model):
"""Base model class that includes CRUD convenience methods."""
__abstract__ = True
| 24.222222 | 66 | 0.775229 | 27 | 218 | 6.074074 | 0.703704 | 0.121951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151376 | 218 | 8 | 67 | 27.25 | 0.886486 | 0.256881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
728eeeadbe9b301e4eba6365bd3b12859b3f2704 | 109 | py | Python | nestedSerializers/apps.py | RaghuDalal/Learning_Django_REST_Framework | 11fcca359fbed00aecbbdade11f30eb4557edbe6 | [
"MIT"
] | null | null | null | nestedSerializers/apps.py | RaghuDalal/Learning_Django_REST_Framework | 11fcca359fbed00aecbbdade11f30eb4557edbe6 | [
"MIT"
] | null | null | null | nestedSerializers/apps.py | RaghuDalal/Learning_Django_REST_Framework | 11fcca359fbed00aecbbdade11f30eb4557edbe6 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class NestedserializersConfig(AppConfig):
name = 'nestedSerializers'
| 18.166667 | 41 | 0.798165 | 10 | 109 | 8.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137615 | 109 | 5 | 42 | 21.8 | 0.925532 | 0 | 0 | 0 | 0 | 0 | 0.155963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
72ab75b81949b531f66cf693ec795806dcaf1622 | 1,424 | py | Python | PyOpenGL-3.0.2/OpenGL/GL/ARB/blend_func_extended.py | frederica07/Dragon_Programming_Process | c0dff2e20c1be6db5adc6f9977efae8f7f888ef5 | [
"BSD-2-Clause"
] | null | null | null | PyOpenGL-3.0.2/OpenGL/GL/ARB/blend_func_extended.py | frederica07/Dragon_Programming_Process | c0dff2e20c1be6db5adc6f9977efae8f7f888ef5 | [
"BSD-2-Clause"
] | null | null | null | PyOpenGL-3.0.2/OpenGL/GL/ARB/blend_func_extended.py | frederica07/Dragon_Programming_Process | c0dff2e20c1be6db5adc6f9977efae8f7f888ef5 | [
"BSD-2-Clause"
] | null | null | null | '''OpenGL extension ARB.blend_func_extended
This module customises the behaviour of the
OpenGL.raw.GL.ARB.blend_func_extended to provide a more
Python-friendly API
Overview (from the spec)
Traditional OpenGL includes fixed-function blending that combines source
colors with the existing content of a render buffe... | 45.935484 | 77 | 0.813202 | 220 | 1,424 | 5.218182 | 0.531818 | 0.027875 | 0.041812 | 0.069686 | 0.054007 | 0.054007 | 0.054007 | 0 | 0 | 0 | 0 | 0 | 0.148876 | 1,424 | 31 | 78 | 45.935484 | 0.947195 | 0.928371 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
72aba4e949876455567612d6b5712b51084fca33 | 332 | py | Python | Wasteland/api/encode_decode_save.py | Tonysun1/Explore-Z-Wasteland | 77be93f8b7838cd0b6b42e03607ba5662fc25b4c | [
"MIT"
] | 1 | 2018-10-24T03:48:12.000Z | 2018-10-24T03:48:12.000Z | Wasteland/api/encode_decode_save.py | Tonysun-rpi/Explore-Z-Wasteland | 77be93f8b7838cd0b6b42e03607ba5662fc25b4c | [
"MIT"
] | null | null | null | Wasteland/api/encode_decode_save.py | Tonysun-rpi/Explore-Z-Wasteland | 77be93f8b7838cd0b6b42e03607ba5662fc25b4c | [
"MIT"
] | 1 | 2018-10-22T19:14:38.000Z | 2018-10-22T19:14:38.000Z | import api.save_and_load
# NOTE: all files should be saved in the doc folder
# add all save information into a string and call the save function
# TODO: fill parameters
def encode():
pass
# call load function then
# parse string and extract information from it
#
# num_save: the index of save file
def decode(num_s... | 18.444444 | 67 | 0.756024 | 56 | 332 | 4.410714 | 0.678571 | 0.072874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192771 | 332 | 17 | 68 | 19.529412 | 0.921642 | 0.71988 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 1 | 0.4 | false | 0.4 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.