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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
604b1f7bed561e9493c6bdb9c1d1d44b811b8684 | 18,477 | py | Python | inn/inn_hotels/doctype/inn_hotels_setting/inn_hotels_setting.py | Muzzy73/front-desk | 107813d12abb40618a3e2ce83de487dcb7047830 | [
"MIT"
] | null | null | null | inn/inn_hotels/doctype/inn_hotels_setting/inn_hotels_setting.py | Muzzy73/front-desk | 107813d12abb40618a3e2ce83de487dcb7047830 | [
"MIT"
] | null | null | null | inn/inn_hotels/doctype/inn_hotels_setting/inn_hotels_setting.py | Muzzy73/front-desk | 107813d12abb40618a3e2ce83de487dcb7047830 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2020, Core Initiative and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
import random
import string
from frappe import _
from frappe.model.document import Document
from frappe.desk.page.setup_wizard.setup_wiz... | 43.475294 | 154 | 0.681063 | 2,428 | 18,477 | 4.946046 | 0.083608 | 0.109251 | 0.136564 | 0.099592 | 0.784162 | 0.750437 | 0.715297 | 0.672829 | 0.625947 | 0.605129 | 0 | 0.044633 | 0.131785 | 18,477 | 424 | 155 | 43.57783 | 0.703965 | 0.038751 | 0 | 0.542289 | 0 | 0 | 0.39298 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017413 | false | 0.022388 | 0.022388 | 0 | 0.042289 | 0.034826 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
605394d133771322762ab420a289cda6e1f73c95 | 137 | py | Python | python/ql/test/2/library-tests/ControlFlow/except/test.py | vadi2/codeql | a806a4f08696d241ab295a286999251b56a6860c | [
"MIT"
] | 4,036 | 2020-04-29T00:09:57.000Z | 2022-03-31T14:16:38.000Z | python/ql/test/2/library-tests/ControlFlow/except/test.py | vadi2/codeql | a806a4f08696d241ab295a286999251b56a6860c | [
"MIT"
] | 2,970 | 2020-04-28T17:24:18.000Z | 2022-03-31T22:40:46.000Z | python/ql/test/2/library-tests/ControlFlow/except/test.py | ScriptBox99/github-codeql | 2ecf0d3264db8fb4904b2056964da469372a235c | [
"MIT"
] | 794 | 2020-04-29T00:28:25.000Z | 2022-03-30T08:21:46.000Z | #Ensure there is an exceptional edge from the following cases
def f1():
try:
exec "print Hello World"
except:
e1
| 19.571429 | 61 | 0.627737 | 19 | 137 | 4.526316 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.313869 | 137 | 6 | 62 | 22.833333 | 0.893617 | 0.437956 | 0 | 0 | 0 | 0 | 0.223684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6068f098e92119c3833d88567d151bb28787d368 | 698 | py | Python | tests/unit_tests/configuration/attributes/test_js_clicks_attr.py | symonk/browzer | 4d9ee5adba6819d787357247da69b5429af9cde1 | [
"MIT"
] | 6 | 2018-07-25T09:14:08.000Z | 2020-12-18T21:25:28.000Z | tests/unit_tests/configuration/attributes/test_js_clicks_attr.py | symonk/sylenium | 4d9ee5adba6819d787357247da69b5429af9cde1 | [
"MIT"
] | 32 | 2018-07-23T19:34:27.000Z | 2020-11-18T01:38:42.000Z | tests/unit_tests/configuration/attributes/test_js_clicks_attr.py | symonk/browzer | 4d9ee5adba6819d787357247da69b5429af9cde1 | [
"MIT"
] | 3 | 2018-10-10T07:43:55.000Z | 2020-01-10T21:50:24.000Z | import pytest
from assertpy import assert_that
def test_javascript_clicks_on(configuration):
assert_that(configuration(javascript_clicks=True).javascript_clicks).is_true()
def test_javascript_clicks_off(configuration):
assert_that(configuration(javascript_clicks=False).javascript_clicks).is_false()
def te... | 30.347826 | 84 | 0.795129 | 86 | 698 | 6.104651 | 0.406977 | 0.335238 | 0.129524 | 0.175238 | 0.297143 | 0.297143 | 0 | 0 | 0 | 0 | 0 | 0.001616 | 0.113181 | 698 | 22 | 85 | 31.727273 | 0.846527 | 0 | 0 | 0 | 0 | 0 | 0.08596 | 0 | 0 | 0 | 0 | 0 | 0.357143 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
607c8517ec1eebe76926e99ed8c8632ad862d917 | 118 | py | Python | categorical_cross_entropy.py | Sajal92/Sorting_Number | 4190bcb0ac5584c1fef6157f85e20be560caec52 | [
"MIT"
] | null | null | null | categorical_cross_entropy.py | Sajal92/Sorting_Number | 4190bcb0ac5584c1fef6157f85e20be560caec52 | [
"MIT"
] | null | null | null | categorical_cross_entropy.py | Sajal92/Sorting_Number | 4190bcb0ac5584c1fef6157f85e20be560caec52 | [
"MIT"
] | null | null | null |
def categorical_cross_entropy(y_pred, y):
x = np.multiply(y, np.log(y_pred))
loss = x.sum()
return loss
| 16.857143 | 41 | 0.644068 | 20 | 118 | 3.6 | 0.65 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220339 | 118 | 6 | 42 | 19.666667 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6081872115453f9524230984cd3d218fe15311ed | 155 | py | Python | Django/django_project_lsc_05/C_databases/urls.py | MarioKarting/Django_basic | 437556628f72ccf8fdfd63c46191dcee39602b00 | [
"MIT"
] | null | null | null | Django/django_project_lsc_05/C_databases/urls.py | MarioKarting/Django_basic | 437556628f72ccf8fdfd63c46191dcee39602b00 | [
"MIT"
] | null | null | null | Django/django_project_lsc_05/C_databases/urls.py | MarioKarting/Django_basic | 437556628f72ccf8fdfd63c46191dcee39602b00 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from django.contrib import admin
from . import views
urlpatterns = [
url(r'^ctest/$', views.DataView.as_view()),
]
| 15.5 | 47 | 0.709677 | 22 | 155 | 4.954545 | 0.681818 | 0.183486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 155 | 9 | 48 | 17.222222 | 0.838462 | 0 | 0 | 0 | 0 | 0 | 0.051613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
608c2d36833a5151cfcbac047573b411ed686a91 | 1,331 | py | Python | ninja_jwt/utils.py | lsimps204/django-ninja-jwt | 153799c1d3f2a83d5a1054bc9c4470de4680e9fd | [
"MIT"
] | null | null | null | ninja_jwt/utils.py | lsimps204/django-ninja-jwt | 153799c1d3f2a83d5a1054bc9c4470de4680e9fd | [
"MIT"
] | null | null | null | ninja_jwt/utils.py | lsimps204/django-ninja-jwt | 153799c1d3f2a83d5a1054bc9c4470de4680e9fd | [
"MIT"
] | null | null | null | from calendar import timegm
from datetime import datetime
from functools import wraps
from importlib import import_module
from django.conf import settings
from django.utils.functional import lazy
from django.utils.timezone import is_naive, make_aware, utc
from six import string_types
from ninja_jwt import exceptions
... | 22.559322 | 59 | 0.7145 | 179 | 1,331 | 5.094972 | 0.391061 | 0.032895 | 0.076754 | 0.046053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000937 | 0.198347 | 1,331 | 58 | 60 | 22.948276 | 0.853796 | 0 | 0 | 0 | 0 | 0 | 0.006762 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 1 | 0.210526 | false | 0 | 0.289474 | 0.105263 | 0.763158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
609f85112067e039f1055b3abbe8c63603f06dc6 | 179 | py | Python | cmdix/test/test_basename.py | jaraco/pycoreutils | 1df462b7b8ff59325cd6183fd3f54197230db632 | [
"MIT"
] | 18 | 2019-02-19T14:12:00.000Z | 2021-08-19T19:34:46.000Z | cmdix/test/test_basename.py | jaraco/pycoreutils | 1df462b7b8ff59325cd6183fd3f54197230db632 | [
"MIT"
] | 8 | 2019-02-11T01:44:54.000Z | 2022-03-28T06:28:48.000Z | cmdix/test/test_basename.py | jaraco/pycoreutils | 1df462b7b8ff59325cd6183fd3f54197230db632 | [
"MIT"
] | 1 | 2021-05-27T18:50:53.000Z | 2021-05-27T18:50:53.000Z | from . import BaseTestCase
class TestCase(BaseTestCase):
def test_basename(self):
out = self.runcommandline('basename foo/bar/biz')[0]
assert out == 'biz\n'
| 22.375 | 60 | 0.664804 | 22 | 179 | 5.363636 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007092 | 0.212291 | 179 | 7 | 61 | 25.571429 | 0.829787 | 0 | 0 | 0 | 0 | 0 | 0.139665 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
60b74008d41cbec4a19d1f2cbc61fec813f9a731 | 334 | py | Python | src/smif/controller/job/__init__.py | nismod/smif | caf5a0fd06fa566b95e6da2d99422b88f227bcda | [
"MIT"
] | 28 | 2017-09-27T12:48:39.000Z | 2022-03-24T17:54:49.000Z | src/smif/controller/job/__init__.py | nismod/smif | caf5a0fd06fa566b95e6da2d99422b88f227bcda | [
"MIT"
] | 376 | 2016-10-19T17:10:29.000Z | 2022-03-29T09:01:23.000Z | src/smif/controller/job/__init__.py | tomalrussell/smif | 42bb7cd56a34d912aa2a125a0d78a340d20fab56 | [
"MIT"
] | 7 | 2016-10-03T10:03:38.000Z | 2019-04-02T13:48:18.000Z | """
Provides all the job run schedulers.
"""
# import classes for access like ::
# from smif.controller.job import SerialJobScheduler
from smif.controller.job.serial_job_scheduler import SerialJobScheduler
# Define what should be imported as * ::
# from smif.controller.job import *
__all__ = ['SerialJ... | 27.833333 | 71 | 0.736527 | 39 | 334 | 6.153846 | 0.589744 | 0.1 | 0.225 | 0.2625 | 0.225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176647 | 334 | 11 | 72 | 30.363636 | 0.872727 | 0.631737 | 0 | 0 | 0 | 0 | 0.160714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
60be7893ed59e1a45a7a43a24a6175f04a1405da | 133 | py | Python | src/genie/libs/parser/ios/tests/ShowProcessesCpuSorted/cli/equal/golden_output_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 204 | 2018-06-27T00:55:27.000Z | 2022-03-06T21:12:18.000Z | src/genie/libs/parser/ios/tests/ShowProcessesCpuSorted/cli/equal/golden_output_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 468 | 2018-06-19T00:33:18.000Z | 2022-03-31T23:23:35.000Z | src/genie/libs/parser/ios/tests/ShowProcessesCpuSorted/cli/equal/golden_output_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 309 | 2019-01-16T20:21:07.000Z | 2022-03-30T12:56:41.000Z | expected_output = {
"five_sec_cpu_total": 13,
"five_min_cpu": 15,
"one_min_cpu": 23,
"five_sec_cpu_interrupts": 0,
}
| 19 | 33 | 0.646617 | 20 | 133 | 3.75 | 0.65 | 0.186667 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.210526 | 133 | 6 | 34 | 22.166667 | 0.647619 | 0 | 0 | 0 | 0 | 0 | 0.481203 | 0.172932 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
88008254302433c00ff330a5b66f78486ae099f8 | 4,013 | py | Python | tests/job/test_jobs.py | critical27/nebula-graph | 04d00e779e860ed3ddb226c416c335a22acc1147 | [
"Apache-2.0"
] | null | null | null | tests/job/test_jobs.py | critical27/nebula-graph | 04d00e779e860ed3ddb226c416c335a22acc1147 | [
"Apache-2.0"
] | null | null | null | tests/job/test_jobs.py | critical27/nebula-graph | 04d00e779e860ed3ddb226c416c335a22acc1147 | [
"Apache-2.0"
] | null | null | null | # --coding:utf-8--
#
# Copyright (c) 2020 vesoft inc. All rights reserved.
#
# This source code is licensed under Apache 2.0 License,
# attached with Common Clause Condition 1.0, found in the LICENSES directory.
import re
import time
from nebula2.graph import ttypes
from tests.common.nebula_test_suite import NebulaTe... | 47.77381 | 136 | 0.647894 | 558 | 4,013 | 4.446237 | 0.198925 | 0.097944 | 0.108827 | 0.075373 | 0.779927 | 0.779927 | 0.731963 | 0.687626 | 0.655784 | 0.655784 | 0 | 0.007516 | 0.204336 | 4,013 | 83 | 137 | 48.349398 | 0.769496 | 0.064789 | 0 | 0.603175 | 0 | 0 | 0.134651 | 0.008282 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031746 | false | 0 | 0.063492 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8814946c7bfc8662d9f3c9e3c545895d10c919e0 | 202 | py | Python | Python/Sets/symmetric-difference.py | kamleshmugdiya/Hackerrank | 2dfb3689dd6cc7848e8b3d91f8674384652e5a56 | [
"MIT"
] | 2 | 2020-05-18T14:59:34.000Z | 2020-05-23T15:22:55.000Z | Python/Sets/symmetric-difference.py | kamleshmugdiya/Hackerrank | 2dfb3689dd6cc7848e8b3d91f8674384652e5a56 | [
"MIT"
] | null | null | null | Python/Sets/symmetric-difference.py | kamleshmugdiya/Hackerrank | 2dfb3689dd6cc7848e8b3d91f8674384652e5a56 | [
"MIT"
] | 1 | 2018-10-09T11:43:17.000Z | 2018-10-09T11:43:17.000Z | n = int(input())
a = set(map(int, input().split()))
m = int(input())
b = set(map(int, input().split()))
inx = a.intersection(b)
unx = a.union(b)
x = unx.difference(inx)
for i in sorted(x):
print(i)
| 20.2 | 34 | 0.59901 | 37 | 202 | 3.27027 | 0.540541 | 0.264463 | 0.14876 | 0.231405 | 0.31405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158416 | 202 | 9 | 35 | 22.444444 | 0.711765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8814d377d403b644db9d55c9621cb16777922593 | 197 | py | Python | app_comment/urls.py | Vern-gu/MyBlog | 2fe9be38e484f39738cb07bdd9f9f78b6da225e2 | [
"MIT"
] | null | null | null | app_comment/urls.py | Vern-gu/MyBlog | 2fe9be38e484f39738cb07bdd9f9f78b6da225e2 | [
"MIT"
] | 2 | 2020-06-05T20:07:25.000Z | 2021-06-10T21:15:33.000Z | app_comment/urls.py | Vern-gu/myblog | 2fe9be38e484f39738cb07bdd9f9f78b6da225e2 | [
"MIT"
] | null | null | null | from django.urls import path, re_path
from .views import *
app_name = 'comments'
urlpatterns = [
re_path(r'^article/(?P<article_pk>\d+)/$', article_comment, name='article_comment')
]
| 21.888889 | 88 | 0.680203 | 27 | 197 | 4.740741 | 0.62963 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167513 | 197 | 8 | 89 | 24.625 | 0.780488 | 0 | 0 | 0 | 0 | 0 | 0.280423 | 0.15873 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
714adc5437db779a8f6ef7c5ce258bad62b3f7fb | 1,580 | py | Python | tests/opengl/test_ticks_opengl.py | PhotonSpheres/manim | 7399c24b33095e29633fd75460d13eae5703cba9 | [
"MIT"
] | 9,497 | 2020-05-19T04:05:51.000Z | 2022-03-31T19:00:02.000Z | tests/opengl/test_ticks_opengl.py | PhotonSpheres/manim | 7399c24b33095e29633fd75460d13eae5703cba9 | [
"MIT"
] | 2,052 | 2020-05-19T03:35:26.000Z | 2022-03-31T16:18:06.000Z | tests/opengl/test_ticks_opengl.py | PhotonSpheres/manim | 7399c24b33095e29633fd75460d13eae5703cba9 | [
"MIT"
] | 1,016 | 2020-05-20T01:16:11.000Z | 2022-03-30T16:47:14.000Z | import numpy as np
from manim import PI, Axes, NumberLine
def test_duplicate_ticks_removed_for_axes(using_opengl_renderer):
axis = NumberLine(
x_range=[-10, 10],
)
ticks = axis.get_tick_range()
assert np.unique(ticks).size == ticks.size
def test_ticks_not_generated_on_origin_for_axes(using_... | 26.779661 | 86 | 0.7 | 268 | 1,580 | 3.731343 | 0.149254 | 0.198 | 0.195 | 0.096 | 0.767 | 0.719 | 0.705 | 0.672 | 0.638 | 0.592 | 0 | 0.025786 | 0.214557 | 1,580 | 58 | 87 | 27.241379 | 0.780016 | 0 | 0 | 0.545455 | 0 | 0 | 0.024684 | 0 | 0 | 0 | 0 | 0 | 0.386364 | 1 | 0.090909 | false | 0 | 0.045455 | 0 | 0.136364 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7174be679a0e5ebc73987cf3c2663478204abf83 | 1,026 | py | Python | pushka/_http/utils.py | 05bit/pushka | 97e30dedcc1c290bd3cda5464a610ee4c06e542a | [
"Apache-2.0"
] | null | null | null | pushka/_http/utils.py | 05bit/pushka | 97e30dedcc1c290bd3cda5464a610ee4c06e542a | [
"Apache-2.0"
] | null | null | null | pushka/_http/utils.py | 05bit/pushka | 97e30dedcc1c290bd3cda5464a610ee4c06e542a | [
"Apache-2.0"
] | null | null | null | from urllib.parse import urlencode
def merge_url(url, params):
"""Merge URL params with query params and return new URL."""
if params:
url = url.strip('&?')
url += '&' if ('?' in url) else '?'
url += urlencode(params)
return url
def encode_body(body):
"""If body is ``dict`` o... | 26.307692 | 69 | 0.64425 | 132 | 1,026 | 4.901515 | 0.348485 | 0.07728 | 0.064915 | 0.086553 | 0.268934 | 0.126739 | 0 | 0 | 0 | 0 | 0 | 0.005025 | 0.224172 | 1,026 | 38 | 70 | 27 | 0.807789 | 0.21345 | 0 | 0.181818 | 0 | 0 | 0.065637 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0.090909 | 0.090909 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
71792ae01e9b62dad9e5eeb2f9e01801ac5a285f | 171 | py | Python | Exercicios/ex05v3.py | BoltzBit/LP | f84d36d1bdee9a20c197cebec2810234c5311fb8 | [
"MIT"
] | null | null | null | Exercicios/ex05v3.py | BoltzBit/LP | f84d36d1bdee9a20c197cebec2810234c5311fb8 | [
"MIT"
] | null | null | null | Exercicios/ex05v3.py | BoltzBit/LP | f84d36d1bdee9a20c197cebec2810234c5311fb8 | [
"MIT"
] | null | null | null | nome = input('Digite seu nome: ')
cpf = input('Digite seu CPF: ')
rg = input('Digite seu RG: ')
msg = '{0}, seu CPF é {1} e seu RG é {2}'
print(msg.format(nome,cpf,rg))
| 21.375 | 41 | 0.602339 | 32 | 171 | 3.21875 | 0.4375 | 0.320388 | 0.407767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.192982 | 171 | 7 | 42 | 24.428571 | 0.724638 | 0 | 0 | 0 | 0 | 0 | 0.473684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
718a315888766fa1529eacb48f206754908493b0 | 630 | py | Python | src/hypervisor_container.py | meissnereric/auto-ai-container | 98d6867e38a280cc830ce330f78b6861269a85a6 | [
"Apache-2.0"
] | null | null | null | src/hypervisor_container.py | meissnereric/auto-ai-container | 98d6867e38a280cc830ce330f78b6861269a85a6 | [
"Apache-2.0"
] | null | null | null | src/hypervisor_container.py | meissnereric/auto-ai-container | 98d6867e38a280cc830ce330f78b6861269a85a6 | [
"Apache-2.0"
] | null | null | null | class ContainerHypervisor():
def __init__(self):
self.data = {}
def parse(self, verbose=True):
assert False, "Please use a subclass the implements this method."
def retrieve_inputs(self, inputs, *args):
assert False, "Please use a subclass the implements this method."
def upl... | 31.5 | 73 | 0.652381 | 78 | 630 | 5.179487 | 0.397436 | 0.108911 | 0.168317 | 0.19802 | 0.537129 | 0.537129 | 0.537129 | 0.537129 | 0.537129 | 0.537129 | 0 | 0 | 0.261905 | 630 | 19 | 74 | 33.157895 | 0.868817 | 0.07619 | 0 | 0.363636 | 0 | 0 | 0.351254 | 0 | 0 | 0 | 0 | 0 | 0.363636 | 1 | 0.454545 | false | 0 | 0 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
71a059fbf10f8e32a13a6a9b12f0dfa45d222056 | 84 | py | Python | Python/Assignment/Task5.py | 9yon6yon-6yon/100DaysChallenge | 74d5b57f9c2f992136844a4be01a303127c7e5c3 | [
"MIT"
] | null | null | null | Python/Assignment/Task5.py | 9yon6yon-6yon/100DaysChallenge | 74d5b57f9c2f992136844a4be01a303127c7e5c3 | [
"MIT"
] | null | null | null | Python/Assignment/Task5.py | 9yon6yon-6yon/100DaysChallenge | 74d5b57f9c2f992136844a4be01a303127c7e5c3 | [
"MIT"
] | null | null | null | a = int(input())
b = int(input())
if(a > b):
print(True)
else:
print(False)
| 12 | 16 | 0.535714 | 14 | 84 | 3.214286 | 0.642857 | 0.355556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 84 | 6 | 17 | 14 | 0.703125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
71b8c8bc59975242838da1d50b01c51a5260b5d4 | 101,429 | py | Python | src/Products/DCWorkflow/tests/test_exportimport.py | zopefoundation/Products.DCWorkflow | d56c36d0e61492f9af134044eea0bf1bc70a189c | [
"ZPL-2.1"
] | 2 | 2019-02-05T18:06:10.000Z | 2019-07-15T10:06:25.000Z | src/Products/DCWorkflow/tests/test_exportimport.py | zopefoundation/Products.DCWorkflow | d56c36d0e61492f9af134044eea0bf1bc70a189c | [
"ZPL-2.1"
] | 15 | 2016-06-20T15:04:32.000Z | 2021-05-11T08:09:50.000Z | src/Products/DCWorkflow/tests/test_exportimport.py | zopefoundation/Products.DCWorkflow | d56c36d0e61492f9af134044eea0bf1bc70a189c | [
"ZPL-2.1"
] | 3 | 2016-06-17T12:34:29.000Z | 2018-10-23T08:01:19.000Z | ##############################################################################
#
# Copyright (c) 2004 Zope Foundation and Contributors.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS I... | 32.138466 | 91 | 0.613355 | 10,372 | 101,429 | 5.749422 | 0.040976 | 0.063891 | 0.023242 | 0.012208 | 0.793403 | 0.745242 | 0.692419 | 0.670401 | 0.658763 | 0.641507 | 0 | 0.005085 | 0.267103 | 101,429 | 3,155 | 92 | 32.148653 | 0.797113 | 0.011299 | 0 | 0.730409 | 0 | 0.001875 | 0.359258 | 0.132265 | 0 | 0 | 0 | 0 | 0.109861 | 1 | 0.020622 | false | 0.008624 | 0.025872 | 0.00075 | 0.053243 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
71ba39de15028a65f9acd8ba3ffb0a9bcfc8633b | 121 | py | Python | beta_rec/recommenders/__init__.py | tangxiaomi888/beta-recsys | d05536b27242e27b36bb83cd800b63f379449453 | [
"MIT"
] | 1 | 2021-09-02T20:38:16.000Z | 2021-09-02T20:38:16.000Z | beta_rec/recommenders/__init__.py | leungyukshing/beta-recsys | 41a9b30fb12e9eec6dd18b9fb9835b1b4babbbd7 | [
"MIT"
] | null | null | null | beta_rec/recommenders/__init__.py | leungyukshing/beta-recsys | 41a9b30fb12e9eec6dd18b9fb9835b1b4babbbd7 | [
"MIT"
] | null | null | null | """Beta_rec Recommender."""
from .matrix_factorization import MatrixFactorization
__all__ = ["MatrixFactorization"]
| 24.2 | 54 | 0.77686 | 10 | 121 | 8.8 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115702 | 121 | 4 | 55 | 30.25 | 0.82243 | 0.173554 | 0 | 0 | 0 | 0 | 0.211111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
71c3ba21730d566b93b7b8af059188c79587b4ee | 69 | py | Python | il2fb/ds/airbridge/compat.py | IL2HorusTeam/il2fb-ds-airbridge | 4107c7a2bc8f8aa3dd38198829ebc0ba60442f3e | [
"MIT"
] | 6 | 2018-06-06T10:06:50.000Z | 2020-08-26T15:21:39.000Z | il2fb/ds/airbridge/compat.py | IL2HorusTeam/il2fb-ds-airbridge | 4107c7a2bc8f8aa3dd38198829ebc0ba60442f3e | [
"MIT"
] | 3 | 2018-03-28T04:02:00.000Z | 2021-03-25T21:57:26.000Z | il2fb/ds/airbridge/compat.py | IL2HorusTeam/il2fb-ds-airbridge | 4107c7a2bc8f8aa3dd38198829ebc0ba60442f3e | [
"MIT"
] | null | null | null | # coding: utf-8
import sys
IS_WINDOWS = (sys.platform == "win32")
| 9.857143 | 38 | 0.652174 | 10 | 69 | 4.4 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053571 | 0.188406 | 69 | 6 | 39 | 11.5 | 0.732143 | 0.188406 | 0 | 0 | 0 | 0 | 0.092593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
71c79e482162df82dce7c31af5834d1a5ddb9e60 | 692 | py | Python | scripts/mcc-ad_zabbix.py | weingrill/stellaweb | 1ae5ac96f685536fee0fe408ce65778021c2f56d | [
"MIT"
] | null | null | null | scripts/mcc-ad_zabbix.py | weingrill/stellaweb | 1ae5ac96f685536fee0fe408ce65778021c2f56d | [
"MIT"
] | null | null | null | scripts/mcc-ad_zabbix.py | weingrill/stellaweb | 1ae5ac96f685536fee0fe408ce65778021c2f56d | [
"MIT"
] | null | null | null | #!/usr/bin/python
import serial
import json
import requests
from datetime import datetime
from settings import API_URL, API_USER, API_PASS
#ser = serial.Serial('/dev/ttyr08', 57600, timeout=1)
ser = serial.Serial('/dev/ttyr0a', 115200, timeout=1)
# read analog channel one
cmd = "AD1R"
ser.write(chr(0x02)+"0"+cmd+ch... | 20.969697 | 82 | 0.666185 | 124 | 692 | 3.693548 | 0.596774 | 0.0131 | 0.065502 | 0.078603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109029 | 0.151734 | 692 | 32 | 83 | 21.625 | 0.67121 | 0.384393 | 0 | 0 | 0 | 0 | 0.055156 | 0 | 0 | 0 | 0.028777 | 0 | 0 | 0 | null | null | 0.0625 | 0.3125 | null | null | 0.0625 | 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 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
71cb9f2ad9ef2ea787bdf675f2a5249ae0d90591 | 425 | py | Python | open_weather/conversion.py | GuptaAyush19/weather-update | 9b7ddaca2de36dcbe60fdbd7eb40ebf1339a67aa | [
"MIT"
] | 3 | 2021-10-09T03:24:45.000Z | 2021-10-30T09:05:39.000Z | open_weather/conversion.py | GuptaAyush19/weather-update | 9b7ddaca2de36dcbe60fdbd7eb40ebf1339a67aa | [
"MIT"
] | 2 | 2021-09-15T08:20:19.000Z | 2021-10-09T03:43:25.000Z | open_weather/conversion.py | GuptaAyush19/weather-update | 9b7ddaca2de36dcbe60fdbd7eb40ebf1339a67aa | [
"MIT"
] | 1 | 2021-09-13T09:00:21.000Z | 2021-09-13T09:00:21.000Z | def to_celsius(kelvin:float, round_digit=2) -> float:
"""Convert Kelvin to Celsius
Args:
kelvin (float):
round_digit (int, optional): Defaults to 2.
Returns:
float: celcius
"""
return round(kelvin-273.15, round_digit)
def fahr_to_celsius(fahr):
cel=(fahr-32)*(5... | 22.368421 | 53 | 0.623529 | 59 | 425 | 4.355932 | 0.389831 | 0.105058 | 0.124514 | 0.163424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047022 | 0.249412 | 425 | 19 | 54 | 22.368421 | 0.758621 | 0.305882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
71e64aa5fa9ac6a23722d4b79a08b9370e554b83 | 256 | py | Python | pragmatic_dp/factory_pattern/autos/dodge_srt.py | abhijit-kar/pragmatic-design-patterns | e2941316e49365d24c5ed9e778ce7e6fccad474d | [
"MIT"
] | 1 | 2017-12-11T16:56:50.000Z | 2017-12-11T16:56:50.000Z | pragmatic_dp/factory_pattern/autos/dodge_srt.py | abhijit-kar/pragmatic-design-patterns | e2941316e49365d24c5ed9e778ce7e6fccad474d | [
"MIT"
] | null | null | null | pragmatic_dp/factory_pattern/autos/dodge_srt.py | abhijit-kar/pragmatic-design-patterns | e2941316e49365d24c5ed9e778ce7e6fccad474d | [
"MIT"
] | null | null | null | from .iauto import IAuto
class DodgeSRT(IAuto):
def __init__(self, car_name):
self._carname = car_name
def start(self):
print(f"{self._carname} Growls")
def stop(self):
print(f"{self._carname} Screeches to a stop!")
| 19.692308 | 54 | 0.632813 | 35 | 256 | 4.371429 | 0.542857 | 0.215686 | 0.130719 | 0.183007 | 0.27451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246094 | 256 | 12 | 55 | 21.333333 | 0.792746 | 0 | 0 | 0 | 0 | 0 | 0.226563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0 | 0.625 | 0.25 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e0820b47f605940a0be99317dc28fcf7f14bea72 | 51,840 | py | Python | etl/parsers/etw/Microsoft_Windows_DXGI.py | IMULMUL/etl-parser | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | [
"Apache-2.0"
] | 104 | 2020-03-04T14:31:31.000Z | 2022-03-28T02:59:36.000Z | etl/parsers/etw/Microsoft_Windows_DXGI.py | IMULMUL/etl-parser | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | [
"Apache-2.0"
] | 7 | 2020-04-20T09:18:39.000Z | 2022-03-19T17:06:19.000Z | etl/parsers/etw/Microsoft_Windows_DXGI.py | IMULMUL/etl-parser | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | [
"Apache-2.0"
] | 16 | 2020-03-05T18:55:59.000Z | 2022-03-01T10:19:28.000Z | # -*- coding: utf-8 -*-
"""
Microsoft-Windows-DXGI
GUID : ca11c036-0102-4a2d-a6ad-f03cfed5d3c9
"""
from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct
from etl.utils import WString, CString, SystemTime, Guid
from etl.dtyp import Sid
from etl.parser... | 27.736758 | 123 | 0.661323 | 5,925 | 51,840 | 5.597131 | 0.076624 | 0.100835 | 0.126044 | 0.126044 | 0.879806 | 0.875735 | 0.620752 | 0.619908 | 0.604499 | 0.604499 | 0 | 0.151772 | 0.20652 | 51,840 | 1,868 | 124 | 27.751606 | 0.654446 | 0.001717 | 0 | 0.471646 | 0 | 0 | 0.261103 | 0.157184 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.002766 | 0 | 0.290456 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e0905e1bbd3312fa70bca917bf8386e5175a5456 | 774 | py | Python | src/cmd_args_test.py | evgenyneu/image_compressor_python | f62e9353473e210f68f87d1ab8bff7deb7ceb0bc | [
"Unlicense"
] | null | null | null | src/cmd_args_test.py | evgenyneu/image_compressor_python | f62e9353473e210f68f87d1ab8bff7deb7ceb0bc | [
"Unlicense"
] | null | null | null | src/cmd_args_test.py | evgenyneu/image_compressor_python | f62e9353473e210f68f87d1ab8bff7deb7ceb0bc | [
"Unlicense"
] | null | null | null | from cmd_args import parse_cmd_args
def test_parse_cmd_args():
result = parse_cmd_args(['hello'])
assert result.IMAGE == 'hello'
assert result.output is None
assert result.annotate
assert result.terms is None
assert result.iterations is None
def test_parse_cmd_args_output():
result = par... | 24.967742 | 59 | 0.705426 | 108 | 774 | 4.759259 | 0.212963 | 0.163424 | 0.256809 | 0.145914 | 0.40856 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012461 | 0.170543 | 774 | 30 | 60 | 25.8 | 0.788162 | 0 | 0 | 0 | 0 | 0 | 0.113695 | 0 | 0 | 0 | 0 | 0 | 0.45 | 1 | 0.25 | false | 0 | 0.05 | 0 | 0.3 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e0b7ebda0680e99c74165db0b2416178ac4736df | 392 | py | Python | fastapi_mail/__init__.py | DmitriySolodkiy/fastapi-mail | d46968ab0efb009606f90b9f60651254857c13c7 | [
"MIT"
] | null | null | null | fastapi_mail/__init__.py | DmitriySolodkiy/fastapi-mail | d46968ab0efb009606f90b9f60651254857c13c7 | [
"MIT"
] | null | null | null | fastapi_mail/__init__.py | DmitriySolodkiy/fastapi-mail | d46968ab0efb009606f90b9f60651254857c13c7 | [
"MIT"
] | null | null | null |
from fastapi_mail.fastmail import FastMail
from fastapi_mail.version import VERSION
from fastapi_mail.config import ConnectionConfig
from fastapi_mail.schemas import MessageSchema,MultipartSubtypeEnum
from . import email_utils
__author__ = "sabuhi.shukurov@gmail.com"
__all__ = [
"FastMail", "VERSION", "Conn... | 23.058824 | 101 | 0.803571 | 42 | 392 | 7.166667 | 0.452381 | 0.146179 | 0.199336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114796 | 392 | 16 | 102 | 24.5 | 0.867435 | 0 | 0 | 0 | 0 | 0 | 0.255754 | 0.063939 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.555556 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e0c49faa2f674f2b74c8d24e06f380c4f3474d98 | 518 | py | Python | ipycytoscape/__init__.py | dreness/ipycytoscape | 5e9695df32f00d47d71b053edf3bccbac3388b68 | [
"BSD-3-Clause"
] | 146 | 2020-03-09T11:55:45.000Z | 2021-05-09T04:08:43.000Z | ipycytoscape/__init__.py | dreness/ipycytoscape | 5e9695df32f00d47d71b053edf3bccbac3388b68 | [
"BSD-3-Clause"
] | 201 | 2020-03-10T12:08:01.000Z | 2021-05-10T10:01:09.000Z | ipycytoscape/__init__.py | dreness/ipycytoscape | 5e9695df32f00d47d71b053edf3bccbac3388b68 | [
"BSD-3-Clause"
] | 48 | 2020-02-05T13:48:04.000Z | 2021-05-03T08:30:51.000Z | #!/usr/bin/env python
# coding: utf-8
# Copyright (c) 2020, QuantStack, Mariana Meireles and ipycytoscape Contributors
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
from .cytoscape import *
from ._version import __version__, ... | 24.666667 | 80 | 0.77027 | 68 | 518 | 5.632353 | 0.691176 | 0.031332 | 0.052219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011261 | 0.142857 | 518 | 20 | 81 | 25.9 | 0.851351 | 0.469112 | 0 | 0 | 0 | 0 | 0.134328 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
e0d51476bc579bbd8846d036eb85770e6095078a | 348 | py | Python | houston/__init__.py | afsafzal/Houston | fb18848cf5841074ab421e1624c586e1d6c7c669 | [
"MIT"
] | 3 | 2018-11-12T08:04:27.000Z | 2021-12-01T11:25:33.000Z | houston/__init__.py | afsafzal/Houston | fb18848cf5841074ab421e1624c586e1d6c7c669 | [
"MIT"
] | 220 | 2017-10-02T19:49:10.000Z | 2019-08-01T22:08:01.000Z | houston/__init__.py | afsafzal/Houston | fb18848cf5841074ab421e1624c586e1d6c7c669 | [
"MIT"
] | 2 | 2018-10-04T21:03:58.000Z | 2018-10-08T13:33:56.000Z | from .version import __version__
from .system import System
from .configuration import Configuration
from .state import State
from .environment import Environment
from .command import Command, CommandOutcome
from .mission import Mission, MissionOutcome
from .sandbox import Sandbox
from .trace import MissionTrace, Comma... | 29 | 45 | 0.836207 | 42 | 348 | 6.833333 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126437 | 348 | 11 | 46 | 31.636364 | 0.944079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e0e63a3252f6946cf9583d5c850317a2bc884d39 | 4,848 | py | Python | userena/settings.py | barszczmm/django-easy-userena | 096052d3e0c5ef0442d93fe90e1bd783f1c1dc7c | [
"BSD-3-Clause"
] | 1 | 2021-09-22T04:11:35.000Z | 2021-09-22T04:11:35.000Z | userena/settings.py | barszczmm/django-easy-userena | 096052d3e0c5ef0442d93fe90e1bd783f1c1dc7c | [
"BSD-3-Clause"
] | null | null | null | userena/settings.py | barszczmm/django-easy-userena | 096052d3e0c5ef0442d93fe90e1bd783f1c1dc7c | [
"BSD-3-Clause"
] | null | null | null | # Userena settings file.
#
# Please consult the docs for more information about each setting.
from django.conf import settings
gettext = lambda s: s
USERENA_REDIRECT_ON_SIGNOUT = getattr(settings,
'USERENA_REDIRECT_ON_SIGNOUT',
None)
USEREN... | 37.875 | 76 | 0.466172 | 334 | 4,848 | 6.317365 | 0.254491 | 0.206161 | 0.30237 | 0.096209 | 0.228436 | 0.027962 | 0 | 0 | 0 | 0 | 0 | 0.006332 | 0.478754 | 4,848 | 127 | 77 | 38.173228 | 0.828651 | 0.017946 | 0 | 0.141304 | 0 | 0 | 0.182296 | 0.136669 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.054348 | 0.01087 | 0 | 0.01087 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e0e716d8e573ce8bf7a6727f77a052f3f0c7f55e | 364 | py | Python | app/core/models/__init__.py | Lontras-e-Preguicas/cnotes-server | 66e15c3f260a9ba3be06c77eb5d03b0f0431019d | [
"MIT"
] | 1 | 2021-02-21T01:03:06.000Z | 2021-02-21T01:03:06.000Z | app/core/models/__init__.py | Lontras-e-Preguicas/cnotes-server | 66e15c3f260a9ba3be06c77eb5d03b0f0431019d | [
"MIT"
] | 1 | 2021-02-12T22:49:18.000Z | 2021-02-12T22:49:18.000Z | app/core/models/__init__.py | Lontras-e-Preguicas/cnotes-server | 66e15c3f260a9ba3be06c77eb5d03b0f0431019d | [
"MIT"
] | 1 | 2021-02-16T20:45:32.000Z | 2021-02-16T20:45:32.000Z | # Disabling import not used warning
# flake8: noqa
from .user import User
from .notebook import Notebook
from .folder import Folder
from .note_group import NoteGroup
from .member import Member
from .invite import Invite
from .activity import Activity
from .note import Note
from .rating import Rating
from .comment impor... | 28 | 35 | 0.818681 | 52 | 364 | 5.711538 | 0.384615 | 0.053872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003205 | 0.142857 | 364 | 13 | 36 | 28 | 0.948718 | 0.126374 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4607a74beb860779b7c605fa83c7516b34af5b3c | 848 | py | Python | src/shopping_cart/extras.py | ciphertz/final | 28cf265b0e3f1e71cd95d2bd90b5662ad6f3d4a6 | [
"bzip2-1.0.6"
] | null | null | null | src/shopping_cart/extras.py | ciphertz/final | 28cf265b0e3f1e71cd95d2bd90b5662ad6f3d4a6 | [
"bzip2-1.0.6"
] | null | null | null | src/shopping_cart/extras.py | ciphertz/final | 28cf265b0e3f1e71cd95d2bd90b5662ad6f3d4a6 | [
"bzip2-1.0.6"
] | null | null | null | from django.conf import settings
import random
import string
from datetime import date
import datetime
import braintree
from shopping_cart.models import OrderItem
def generate_order_id():
date_str = date.today().strftime('%Y%m%d')[2:] + str(datetime.datetime.now().second)
rand_str = "".join([random.choice(stri... | 27.354839 | 88 | 0.751179 | 111 | 848 | 5.54955 | 0.477477 | 0.064935 | 0.042208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002782 | 0.152123 | 848 | 30 | 89 | 28.266667 | 0.853964 | 0 | 0 | 0 | 1 | 0 | 0.007075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.28 | 0.12 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4609d8db8965d8dde11f4407788efcf5dda2ed6a | 8,384 | py | Python | contrib/tools/python/src/Lib/plat-mac/Carbon/MacTextEditor.py | HeyLey/catboost | f472aed90604ebe727537d9d4a37147985e10ec2 | [
"Apache-2.0"
] | 6,989 | 2017-07-18T06:23:18.000Z | 2022-03-31T15:58:36.000Z | python/src/Lib/plat-mac/Carbon/MacTextEditor.py | weiqiangzheng/sl4a | d3c17dca978cbeee545e12ea240a9dbf2a6999e9 | [
"Apache-2.0"
] | 1,978 | 2017-07-18T09:17:58.000Z | 2022-03-31T14:28:43.000Z | python/src/Lib/plat-mac/Carbon/MacTextEditor.py | weiqiangzheng/sl4a | d3c17dca978cbeee545e12ea240a9dbf2a6999e9 | [
"Apache-2.0"
] | 1,228 | 2017-07-18T09:03:13.000Z | 2022-03-29T05:57:40.000Z | # Generated from 'MacTextEditor.h'
def FOUR_CHAR_CODE(x): return x
false = 0
true = 1
kTXNClearThisControl = 0xFFFFFFFF
kTXNClearTheseFontFeatures = 0x80000000
kTXNDontCareTypeSize = 0xFFFFFFFF
kTXNDecrementTypeSize = 0x80000000
kTXNUseCurrentSelection = 0xFFFFFFFF
kTXNStartOffset = 0
kTXNEndOffset = 0x7FFFFFFF
Movie... | 36.933921 | 83 | 0.842557 | 640 | 8,384 | 10.90625 | 0.464063 | 0.048138 | 0.072206 | 0.006877 | 0.01404 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030411 | 0.093989 | 8,384 | 226 | 84 | 37.097345 | 0.888494 | 0.08886 | 0 | 0 | 1 | 0 | 0.021519 | 0 | 0 | 0 | 0.013122 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
460a03a35d0024573283fff2b8f88dac70e40f5a | 851 | py | Python | common/build/curl.py | cheersalam/webrtc | 29e9cad470e6f8a95e2fc32bc111c8550c2ef0ca | [
"BSD-3-Clause"
] | null | null | null | common/build/curl.py | cheersalam/webrtc | 29e9cad470e6f8a95e2fc32bc111c8550c2ef0ca | [
"BSD-3-Clause"
] | null | null | null | common/build/curl.py | cheersalam/webrtc | 29e9cad470e6f8a95e2fc32bc111c8550c2ef0ca | [
"BSD-3-Clause"
] | null | null | null | import os
import subprocess
import shutil
import urllib
import distutils.dir_util
from common import devtools
from common.find import sevenz
name = "curl"
#zipUrl = "http:// .tar.gz"
def getRootPath():
return os.path.join(devtools.rootDir, "3rdparty", "curl")
def getWorkingFolderPath():
return os.... | 32.730769 | 205 | 0.717979 | 110 | 851 | 5.4 | 0.527273 | 0.030303 | 0.050505 | 0.053872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002721 | 0.13631 | 851 | 25 | 206 | 34.04 | 0.805442 | 0.074031 | 0 | 0 | 0 | 0 | 0.291721 | 0.156373 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.368421 | 0.105263 | 0.684211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
1ca2d2e69a241f8495692bcc630202e7df8b7268 | 347 | py | Python | webbreaker/notifiers/notifier.py | one3chens/webbreaker | 2e3e661122bc82f0bc8c9bb105affe700d859035 | [
"MIT"
] | null | null | null | webbreaker/notifiers/notifier.py | one3chens/webbreaker | 2e3e661122bc82f0bc8c9bb105affe700d859035 | [
"MIT"
] | null | null | null | webbreaker/notifiers/notifier.py | one3chens/webbreaker | 2e3e661122bc82f0bc8c9bb105affe700d859035 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
class Notifier(object):
"""
Base class for all notifiers
"""
def __init__(self, name=None):
self._name = name
def notify(self, event):
"""Create notification of event.
:param event: The event for which to create a notificatio... | 18.263158 | 66 | 0.570605 | 42 | 347 | 4.595238 | 0.714286 | 0.082902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004149 | 0.305476 | 347 | 18 | 67 | 19.277778 | 0.796681 | 0.461095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.2 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
1cb436339787729837c257d75b23f9efc730bd1f | 217 | py | Python | env27/Lib/site-packages/pygame/examples/data/mix.py | kamrulhasan1203/four-in-a-row | f02b6c26c22689d7637295e64a631ab80f75bc7e | [
"MIT"
] | null | null | null | env27/Lib/site-packages/pygame/examples/data/mix.py | kamrulhasan1203/four-in-a-row | f02b6c26c22689d7637295e64a631ab80f75bc7e | [
"MIT"
] | null | null | null | env27/Lib/site-packages/pygame/examples/data/mix.py | kamrulhasan1203/four-in-a-row | f02b6c26c22689d7637295e64a631ab80f75bc7e | [
"MIT"
] | null | null | null | import pygame.mixer
import time
filename="house_lo.ogg"
pygame.mixer.init()
f=open(filename,"rb")
pygame.mixer.music.load(f)
pygame.mixer.music.play(0)
time.sleep(1)
pygame.mixer.music.play(0)
time.sleep(1) | 19.727273 | 27 | 0.732719 | 37 | 217 | 4.27027 | 0.486486 | 0.348101 | 0.303797 | 0.253165 | 0.392405 | 0.392405 | 0.392405 | 0.392405 | 0 | 0 | 0 | 0.020513 | 0.101382 | 217 | 11 | 28 | 19.727273 | 0.789744 | 0 | 0 | 0.4 | 0 | 0 | 0.067308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1cb96ed85ca9f6a4991e4fb4f6513c84cbe35208 | 1,845 | py | Python | test/test.py | chrismalcolm/jspec | 053835a562be5c4f304f7982a1ccbf60f1489ca9 | [
"MIT"
] | 2 | 2022-01-11T21:48:50.000Z | 2022-01-12T12:23:45.000Z | test/test.py | chrismalcolm/jspec | 053835a562be5c4f304f7982a1ccbf60f1489ca9 | [
"MIT"
] | 1 | 2021-12-29T20:11:57.000Z | 2021-12-29T20:11:57.000Z | test/test.py | chrismalcolm/jspec | 053835a562be5c4f304f7982a1ccbf60f1489ca9 | [
"MIT"
] | null | null | null | import unittest
from test.exported.exported import JSPECTestExported
from test.scanner.array import JSPECTestScannerArray
from test.scanner.arraycapture import JSPECTestScannerArrayCapture
from test.scanner.boolean import JSPECTestScannerBoolean
from test.scanner.comment import JSPECTestScannerComment
from test.scann... | 48.552632 | 68 | 0.887263 | 193 | 1,845 | 8.440415 | 0.295337 | 0.152241 | 0.138122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074797 | 1,845 | 38 | 69 | 48.552632 | 0.954306 | 0 | 0 | 0 | 0 | 0 | 0.004334 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.941176 | 0 | 0.941176 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1cc1c5479f3e1ff51b05a9d55660401b96e3153f | 3,345 | py | Python | tests/test_init.py | Quentin18/fsmdot | 29a78e7bf0e4ea77e10116828b8a425f813421bf | [
"MIT"
] | 2 | 2020-11-30T18:11:39.000Z | 2021-06-05T09:33:44.000Z | tests/test_init.py | Quentin18/fsmdot | 29a78e7bf0e4ea77e10116828b8a425f813421bf | [
"MIT"
] | null | null | null | tests/test_init.py | Quentin18/fsmdot | 29a78e7bf0e4ea77e10116828b8a425f813421bf | [
"MIT"
] | null | null | null | """
Tests for initialization of FSM.
"""
import pytest
from fsmdot.dfa import Dfa
from fsmdot.nfa import Nfa
from fsmdot.error import FsmError
def test_init_1():
with pytest.raises(FsmError):
Q = {'S0', 'S1', 'S2'}
S = {'0', '1'}
d = {
'S0': {
'0': 'S0',
... | 21.170886 | 67 | 0.260389 | 338 | 3,345 | 2.535503 | 0.150888 | 0.01867 | 0.089848 | 0.196033 | 0.708285 | 0.632439 | 0.549592 | 0.515753 | 0.515753 | 0.469078 | 0 | 0.106297 | 0.558445 | 3,345 | 157 | 68 | 21.305732 | 0.473934 | 0.073842 | 0 | 0.6 | 0 | 0 | 0.064527 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.028571 | 0 | 0.078571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1cc1eb1969b0b9cd6d8c639ffa1fe0cf3dd9240f | 456 | py | Python | asyncenocean/communicators/serialcommunicator.py | M-o-a-T/asyncenocean | ca19c28e4158af46b5507f1d1518a240224efe83 | [
"MIT"
] | null | null | null | asyncenocean/communicators/serialcommunicator.py | M-o-a-T/asyncenocean | ca19c28e4158af46b5507f1d1518a240224efe83 | [
"MIT"
] | null | null | null | asyncenocean/communicators/serialcommunicator.py | M-o-a-T/asyncenocean | ca19c28e4158af46b5507f1d1518a240224efe83 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
from __future__ import print_function, unicode_literals, division, absolute_import
import logging
import time
from .communicator import Communicator
from anyio_serial import Serial
from contextlib import asynccontextmanager
@asynccontextmanager
async def SerialCommunicator(port='/dev/ttyAMA... | 26.823529 | 82 | 0.758772 | 54 | 456 | 6.259259 | 0.574074 | 0.053254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018373 | 0.164474 | 456 | 16 | 83 | 28.5 | 0.868766 | 0.050439 | 0 | 0 | 0 | 0 | 0.027907 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.545455 | 0 | 0.545455 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1cc310d29b552c26e84d100b7fb4c42bc0d9eeba | 875 | py | Python | pedantic/tests/validate/test_validator_match_pattern.py | LostInDarkMath/Pedantic-python-decorators | 32ed54c9593e80f63c0499093cb07847d8a5e1df | [
"Apache-2.0"
] | null | null | null | pedantic/tests/validate/test_validator_match_pattern.py | LostInDarkMath/Pedantic-python-decorators | 32ed54c9593e80f63c0499093cb07847d8a5e1df | [
"Apache-2.0"
] | null | null | null | pedantic/tests/validate/test_validator_match_pattern.py | LostInDarkMath/Pedantic-python-decorators | 32ed54c9593e80f63c0499093cb07847d8a5e1df | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase
from pedantic.decorators.fn_deco_validate.exceptions import ParameterException
from pedantic.decorators.fn_deco_validate.fn_deco_validate import validate
from pedantic.decorators.fn_deco_validate.parameters import Parameter
from pedantic.decorators.fn_deco_validate.validators import Match... | 38.043478 | 78 | 0.689143 | 112 | 875 | 5.258929 | 0.473214 | 0.050934 | 0.118846 | 0.162988 | 0.244482 | 0.244482 | 0 | 0 | 0 | 0 | 0 | 0.058577 | 0.180571 | 875 | 22 | 79 | 39.772727 | 0.762901 | 0 | 0 | 0 | 0 | 0.0625 | 0.089143 | 0.04 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.3125 | 0.0625 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1cc51ecfaa3d5b02c429f97d30529cf7f8ebeb56 | 191 | py | Python | problem0441.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0441.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0441.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | ###########################
#
# #441 The inverse summation of coprime couples - Project Euler
# https://projecteuler.net/problem=441
#
# Code by Kevin Marciniak
#
###########################
| 21.222222 | 63 | 0.52356 | 18 | 191 | 5.555556 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.120419 | 191 | 8 | 64 | 23.875 | 0.559524 | 0.633508 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1ccf7117689a6c3bd29ad357ee5f7b79d6fb131c | 602 | py | Python | base/list.py | sanchez0623/zsq.LearningPython | 419df031a2a905fe7d7c2dfe14aa2f8729989a9a | [
"Apache-2.0"
] | null | null | null | base/list.py | sanchez0623/zsq.LearningPython | 419df031a2a905fe7d7c2dfe14aa2f8729989a9a | [
"Apache-2.0"
] | null | null | null | base/list.py | sanchez0623/zsq.LearningPython | 419df031a2a905fe7d7c2dfe14aa2f8729989a9a | [
"Apache-2.0"
] | null | null | null | #list
print([1, 2, 3, 4, 5])
print(type([1, 2, 3, 4, 5]))
print([1, 2, "hello", "world", True, [1, 2], [True, False]])
print(type([1, 2, "hello", "world", True, [1, 2], [True, False]]))
#基础操作
#返回单个元素
print(["1", "2", "3", "4"][0])
#返回list
print(["1", "2", "3", "4"][0:2])
print(["1", "2", "3", "4"][-1:])
print(["1... | 16.722222 | 66 | 0.456811 | 118 | 602 | 2.330508 | 0.271186 | 0.101818 | 0.109091 | 0.145455 | 0.589091 | 0.541818 | 0.36 | 0.290909 | 0.196364 | 0 | 0 | 0.137577 | 0.19103 | 602 | 35 | 67 | 17.2 | 0.427105 | 0.131229 | 0 | 0 | 0 | 0 | 0.083984 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
1cd2643ae324ecd667e14cd5836ac8ebcc54af42 | 476 | py | Python | pbgca/__init__.py | jeromeshan/mimas | 4e4250bc74a0e69560a13053a9d556bcfd42c6c4 | [
"MIT"
] | null | null | null | pbgca/__init__.py | jeromeshan/mimas | 4e4250bc74a0e69560a13053a9d556bcfd42c6c4 | [
"MIT"
] | null | null | null | pbgca/__init__.py | jeromeshan/mimas | 4e4250bc74a0e69560a13053a9d556bcfd42c6c4 | [
"MIT"
] | null | null | null | from pbgca.cluster import Cluster
from pbgca.clusterer import Clusterer
from pbgca.cube_generator import CubeGenerator
from pbgca.connectivity_matrix import ConnectivityMatrix
from pbgca.cm_python import connectivity_matrix_python
import pyximport
import numpy as np
pyximport.install(setup_args={"include_dirs":np.get_i... | 39.666667 | 63 | 0.842437 | 64 | 476 | 6.03125 | 0.453125 | 0.163212 | 0.056995 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113445 | 476 | 12 | 64 | 39.666667 | 0.914692 | 0 | 0 | 0 | 0 | 0 | 0.025157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.909091 | 0 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1cd9eedea7d68ddb45967e085a81a85dab5fee41 | 100 | py | Python | forge/core/core_utils/abstract_utils/__init__.py | AndresMWeber/Forge | 90b2958a2a40d37b52232091bea9c3ddbd88566b | [
"MIT"
] | 1 | 2021-08-17T02:36:06.000Z | 2021-08-17T02:36:06.000Z | forge/core/core_utils/abstract_utils/__init__.py | AndresMWeber/Forge | 90b2958a2a40d37b52232091bea9c3ddbd88566b | [
"MIT"
] | 1 | 2017-06-12T04:32:54.000Z | 2017-06-12T04:32:54.000Z | forge/core/core_utils/abstract_utils/__init__.py | AndresMWeber/Forge | 90b2958a2a40d37b52232091bea9c3ddbd88566b | [
"MIT"
] | 1 | 2017-06-12T05:47:21.000Z | 2017-06-12T05:47:21.000Z | import attr
import scene
import create
import curve
__all__ = ['attr', 'scene', 'create', 'curve']
| 14.285714 | 46 | 0.71 | 13 | 100 | 5.153846 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 100 | 6 | 47 | 16.666667 | 0.788235 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1cdf59efd27cec16f8fbb6517f379b839c2cf7cf | 59,288 | py | Python | test_images.py | bansan85/ocr-book-tests | 00594aa5e637e5a96d91d52449e669214985c708 | [
"Apache-2.0"
] | null | null | null | test_images.py | bansan85/ocr-book-tests | 00594aa5e637e5a96d91d52449e669214985c708 | [
"Apache-2.0"
] | null | null | null | test_images.py | bansan85/ocr-book-tests | 00594aa5e637e5a96d91d52449e669214985c708 | [
"Apache-2.0"
] | null | null | null | import unittest
import numpy as np
from diptych.angle import Angle
from diptych.cv2ext import charge_image
from diptych.fsext import get_absolute_from_current_path
from diptych.print_interface import ConstString
from tests.mock_separate_page import MockDisableSeparatePage
np.seterr(all="raise")
tc = unittest.TestCas... | 45.120244 | 79 | 0.528066 | 6,712 | 59,288 | 4.469905 | 0.094756 | 0.278381 | 0.154656 | 0.081195 | 0.885074 | 0.864176 | 0.636224 | 0.485168 | 0.476068 | 0.471535 | 0 | 0.129681 | 0.308578 | 59,288 | 1,313 | 80 | 45.154608 | 0.6022 | 0.031001 | 0 | 0.446473 | 0 | 0 | 0.081675 | 0.010133 | 0 | 0 | 0 | 0 | 0.00083 | 1 | 0.024066 | false | 0 | 0.005809 | 0 | 0.029876 | 0.00083 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1ce5f1558039152815c11532f80f966bca7d2cbb | 481 | py | Python | tests/test_helpers.py | richardqiu/pyjanitor | aa3150e7b8e2adc4733ea206ea9c3093e21d4025 | [
"MIT"
] | 674 | 2018-03-04T22:59:51.000Z | 2021-03-22T10:08:58.000Z | tests/test_helpers.py | richardqiu/pyjanitor | aa3150e7b8e2adc4733ea206ea9c3093e21d4025 | [
"MIT"
] | 737 | 2018-03-05T01:03:15.000Z | 2021-03-22T23:55:27.000Z | tests/test_helpers.py | richardqiu/pyjanitor | aa3150e7b8e2adc4733ea206ea9c3093e21d4025 | [
"MIT"
] | 176 | 2018-03-14T23:00:56.000Z | 2021-03-24T19:32:34.000Z | """Tests for test helper functions."""
from helpers import running_on_ci
def test_running_on_ci_local(monkeypatch):
"""Test running_on_ci run on local machine returns False."""
monkeypatch.delenv("JANITOR_CI_MACHINE", raising=False)
assert running_on_ci() is False
def test_running_on_ci_ci(mon... | 32.066667 | 65 | 0.731809 | 70 | 481 | 4.714286 | 0.371429 | 0.09697 | 0.233333 | 0.181818 | 0.412121 | 0.187879 | 0.187879 | 0 | 0 | 0 | 0 | 0.002513 | 0.172557 | 481 | 14 | 66 | 34.357143 | 0.826633 | 0.286902 | 0 | 0 | 0 | 0 | 0.118211 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.285714 | false | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e809df38698890cd2e6ec622a0ae21f562dcf36c | 596 | py | Python | tests/test_validate.py | RenskeW/cwltool | 8ef515037de411abd2f84b569ad4d4a4f7a2c7a0 | [
"Apache-2.0"
] | null | null | null | tests/test_validate.py | RenskeW/cwltool | 8ef515037de411abd2f84b569ad4d4a4f7a2c7a0 | [
"Apache-2.0"
] | 11 | 2022-02-17T03:20:41.000Z | 2022-03-30T10:54:02.000Z | tests/test_validate.py | RenskeW/cwltool | 8ef515037de411abd2f84b569ad4d4a4f7a2c7a0 | [
"Apache-2.0"
] | null | null | null | """Tests --validation."""
from .util import get_data, get_main_output
def test_validate_graph_with_no_default() -> None:
"""Ensure that --validate works on $graph docs that lack a main/#main."""
exit_code, stdout, stderr = get_main_output(
["--validate", get_data("tests/wf/packed_no_main.cwl")]
... | 35.058824 | 77 | 0.711409 | 95 | 596 | 4.221053 | 0.410526 | 0.099751 | 0.149626 | 0.187032 | 0.461347 | 0.36409 | 0.194514 | 0.194514 | 0.194514 | 0.194514 | 0 | 0.002041 | 0.177852 | 596 | 16 | 78 | 37.25 | 0.816327 | 0.145973 | 0 | 0 | 0 | 0 | 0.379518 | 0.25502 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.1 | true | 0 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e8228724a54d372a7bea9bb22d9e9ae3c7a73ad4 | 83 | py | Python | statannotations/__init__.py | orena1/statannotations | bbab40825731ba3387d3aae3cf3adce0debb5b03 | [
"MIT"
] | 110 | 2021-05-29T07:50:33.000Z | 2022-03-31T07:24:57.000Z | statannotations/__init__.py | orena1/statannotations | bbab40825731ba3387d3aae3cf3adce0debb5b03 | [
"MIT"
] | 39 | 2021-05-29T20:11:36.000Z | 2022-03-29T15:22:05.000Z | statannotations/__init__.py | orena1/statannotations | bbab40825731ba3387d3aae3cf3adce0debb5b03 | [
"MIT"
] | 15 | 2021-05-29T07:50:40.000Z | 2022-03-16T01:22:14.000Z | __all__ = ["__version__", "stats", "Annotator"]
from ._version import __version__
| 20.75 | 47 | 0.73494 | 8 | 83 | 6 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120482 | 83 | 3 | 48 | 27.666667 | 0.657534 | 0 | 0 | 0 | 0 | 0 | 0.301205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e822d177ca6613a5c76e9993206781686617f068 | 22,544 | py | Python | tests/layoutlmv2/test_processor_layoutlmv2.py | dctelus/transformers | 6786cbc4b14ebff0ac59c768cadd109391db9a08 | [
"Apache-2.0"
] | 8,028 | 2018-11-05T15:19:44.000Z | 2019-07-16T09:14:59.000Z | tests/layoutlmv2/test_processor_layoutlmv2.py | arron1227/transformers | b18dfd95e1f60ae65a959a7b255fc06522170d1b | [
"Apache-2.0"
] | 731 | 2018-11-05T21:35:52.000Z | 2019-07-16T09:51:26.000Z | tests/layoutlmv2/test_processor_layoutlmv2.py | arron1227/transformers | b18dfd95e1f60ae65a959a7b255fc06522170d1b | [
"Apache-2.0"
] | 2,106 | 2018-11-05T15:29:15.000Z | 2019-07-16T08:51:57.000Z | # Copyright 2021 The HuggingFace Team. All rights reserved.
#
# 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 applicabl... | 52.427907 | 1,451 | 0.644606 | 2,712 | 22,544 | 5.204646 | 0.178097 | 0.031031 | 0.044633 | 0.056961 | 0.736026 | 0.71796 | 0.668934 | 0.640737 | 0.626851 | 0.608218 | 0 | 0.037231 | 0.244633 | 22,544 | 429 | 1,452 | 52.550117 | 0.79165 | 0.07634 | 0 | 0.505495 | 0 | 0.018315 | 0.243759 | 0.004867 | 0 | 0 | 0 | 0 | 0.150183 | 1 | 0.054945 | false | 0 | 0.051282 | 0.014652 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e8250a95c325c7526e57acd33907c99e9a11a13f | 210 | py | Python | Exercicios/Ex_031.py | jotmar/PythonEx | bf026518ae5479d5c99ff7a4e95fc383dec22d36 | [
"MIT"
] | null | null | null | Exercicios/Ex_031.py | jotmar/PythonEx | bf026518ae5479d5c99ff7a4e95fc383dec22d36 | [
"MIT"
] | null | null | null | Exercicios/Ex_031.py | jotmar/PythonEx | bf026518ae5479d5c99ff7a4e95fc383dec22d36 | [
"MIT"
] | null | null | null | km = float(input('Qual é a distância da viagem em km? '))
if km <= 200:
print(f'O total a ser pago na viagem é de R${km * 0.50:.2f}')
else:
print(f'O total a ser pago na viagem é de R${km * 0.45:.2f}')
| 35 | 65 | 0.609524 | 47 | 210 | 2.723404 | 0.553191 | 0.09375 | 0.109375 | 0.1875 | 0.546875 | 0.546875 | 0.546875 | 0.546875 | 0.546875 | 0.546875 | 0 | 0.067901 | 0.228571 | 210 | 5 | 66 | 42 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0.657143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e831866c0d295bf46f9990cd77b3327edde3a860 | 336 | py | Python | tests/plot/test_plot_utils.py | akrherz/pyIEM | ec0acdc4c6b507b0d558ce216d4bbdbcb9b2f364 | [
"MIT"
] | 29 | 2015-09-02T15:53:48.000Z | 2022-02-04T19:47:49.000Z | tests/plot/test_plot_utils.py | akrherz/pyIEM | ec0acdc4c6b507b0d558ce216d4bbdbcb9b2f364 | [
"MIT"
] | 531 | 2015-01-13T20:58:33.000Z | 2022-03-30T13:59:14.000Z | tests/plot/test_plot_utils.py | akrherz/pyIEM | ec0acdc4c6b507b0d558ce216d4bbdbcb9b2f364 | [
"MIT"
] | 7 | 2015-02-28T22:34:32.000Z | 2020-12-06T05:16:13.000Z | """Test pyiem.plot.utils."""
from pyiem.plot.util import fitbox, draw_logo
def test_none_fitbox():
"""Test that we can give fitbox a None value."""
assert fitbox(None, None, 0, 1, 2, 3) is None
def test_none_drawlogo():
"""Test that nothing happens when we pass a None logo."""
assert draw_logo(None... | 24 | 61 | 0.681548 | 56 | 336 | 3.982143 | 0.517857 | 0.080717 | 0.098655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01476 | 0.193452 | 336 | 13 | 62 | 25.846154 | 0.808118 | 0.348214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.4 | true | 0 | 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 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
1c1b48ee4a72262ab9a77f99b242a7579c0e46f1 | 401 | py | Python | topCoder/srms/300s/srm383/div2/floor_layout.py | gauravsingh58/algo | 397859a53429e7a585e5f6964ad24146c6261326 | [
"WTFPL"
] | 1 | 2020-09-30T19:53:08.000Z | 2020-09-30T19:53:08.000Z | topCoder/srms/300s/srm383/div2/floor_layout.py | gauravsingh58/algo | 397859a53429e7a585e5f6964ad24146c6261326 | [
"WTFPL"
] | null | null | null | topCoder/srms/300s/srm383/div2/floor_layout.py | gauravsingh58/algo | 397859a53429e7a585e5f6964ad24146c6261326 | [
"WTFPL"
] | 1 | 2020-10-15T09:10:57.000Z | 2020-10-15T09:10:57.000Z | class FloorLayout:
def countBoards(self, layout):
c = 0
for i in xrange(len(layout)):
for j in xrange(len(layout[i])):
if j > 0 and layout[i][j] == '-' and layout[i][j-1] == '-':
continue
if i > 0 and layout[i][j] == '|' and layout[i-1]... | 33.416667 | 75 | 0.408978 | 51 | 401 | 3.215686 | 0.372549 | 0.213415 | 0.243902 | 0.20122 | 0.268293 | 0.268293 | 0.268293 | 0.268293 | 0 | 0 | 0 | 0.026549 | 0.436409 | 401 | 11 | 76 | 36.454545 | 0.699115 | 0 | 0 | 0.181818 | 0 | 0 | 0.009975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1c268a8de69930dc6da09033edd65e78e7a91c3e | 13,804 | py | Python | yt_dlp/chrome_versions.py | Wahyu213/ytdl-patched | b689465dd67b18f94d9b3f3336f54e742b51a258 | [
"Unlicense"
] | 1 | 2022-01-03T12:06:45.000Z | 2022-01-03T12:06:45.000Z | yt_dlp/chrome_versions.py | Wahyu213/ytdl-patched | b689465dd67b18f94d9b3f3336f54e742b51a258 | [
"Unlicense"
] | null | null | null | yt_dlp/chrome_versions.py | Wahyu213/ytdl-patched | b689465dd67b18f94d9b3f3336f54e742b51a258 | [
"Unlicense"
] | null | null | null | # coding: utf-8
# AUTOMATICALLY GENERATED FILE. DO NOT EDIT.
# Generated by ./devscripts/make_chrome_version_list.py
# This list is created from git tags in https://chromium.googlesource.com/chromium/src
from __future__ import unicode_literals
versions = [
"96.0.4639.0",
"96.0.4639.1",
"96.0.4639.2",
"... | 19.442254 | 86 | 0.438351 | 2,835 | 13,804 | 2.130159 | 0.105115 | 0.108793 | 0.125186 | 0.002649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.567757 | 0.255868 | 13,804 | 709 | 87 | 19.469676 | 0.020152 | 0.014126 | 0 | 0 | 1 | 0 | 0.583358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.001422 | 0 | 0.001422 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1c2c53aa16d9ea8677c56901730b8680fc9510da | 272 | py | Python | PySrc/3day/func12.py | Timmy-Oh/Adorable-Lab | c21454d011e6888fd28c41d1624721ea1826be40 | [
"Apache-2.0"
] | null | null | null | PySrc/3day/func12.py | Timmy-Oh/Adorable-Lab | c21454d011e6888fd28c41d1624721ea1826be40 | [
"Apache-2.0"
] | null | null | null | PySrc/3day/func12.py | Timmy-Oh/Adorable-Lab | c21454d011e6888fd28c41d1624721ea1826be40 | [
"Apache-2.0"
] | null | null | null | # Func12.py
'''
1 @ 4 = 17
3 @ 4 = 25
2 @ 7 = 53
4 @ 8 = 80
'''
# 중첩 함수
def Test(x,y) :
def Sum(i,j): return i+j
def Pow(i): return i**2
return Sum(Pow(x), Pow(y))
print(Test(1,4)) # 17
print(Test(3,4)) # 25
print(Test(2,7)) # 53
print(Test(4,8)) # 80
| 14.315789 | 30 | 0.503676 | 60 | 272 | 2.3 | 0.416667 | 0.26087 | 0.057971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175 | 0.264706 | 272 | 18 | 31 | 15.111111 | 0.51 | 0.102941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
1c2d6ce1b5a4e74a3fcafcdee6cf905f17b70757 | 10,336 | py | Python | core/platform/email/mailgun_email_services_test.py | anubhavsinha98/oppia | 9a64ea2e91d2f471ce22bd39da77b43dccd5b51f | [
"Apache-2.0"
] | 1 | 2019-08-31T17:06:41.000Z | 2019-08-31T17:06:41.000Z | core/platform/email/mailgun_email_services_test.py | anubhavsinha98/oppia | 9a64ea2e91d2f471ce22bd39da77b43dccd5b51f | [
"Apache-2.0"
] | null | null | null | core/platform/email/mailgun_email_services_test.py | anubhavsinha98/oppia | 9a64ea2e91d2f471ce22bd39da77b43dccd5b51f | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2014 The Oppia Authors. All Rights Reserved.
#
# 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 requi... | 47.196347 | 80 | 0.654605 | 1,228 | 10,336 | 5.190554 | 0.151466 | 0.054911 | 0.052714 | 0.052714 | 0.742705 | 0.728428 | 0.704738 | 0.685441 | 0.655005 | 0.627549 | 0 | 0.001689 | 0.255128 | 10,336 | 218 | 81 | 47.412844 | 0.826211 | 0.186726 | 0 | 0.643357 | 0 | 0 | 0.13313 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.076923 | false | 0 | 0.034965 | 0 | 0.118881 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1c32b8a716fff04e983de872a823ae7a7301c97c | 198 | py | Python | molo/surveys/admin_urls.py | praekelt/molo.surveys | c86d231f7cee669eb1c91db49ec05cf711984e30 | [
"BSD-3-Clause"
] | null | null | null | molo/surveys/admin_urls.py | praekelt/molo.surveys | c86d231f7cee669eb1c91db49ec05cf711984e30 | [
"BSD-3-Clause"
] | 88 | 2016-06-14T18:36:18.000Z | 2018-09-21T07:33:58.000Z | molo/surveys/admin_urls.py | praekeltfoundation/molo.surveys | c86d231f7cee669eb1c91db49ec05cf711984e30 | [
"BSD-3-Clause"
] | 1 | 2017-10-02T09:27:45.000Z | 2017-10-02T09:27:45.000Z | from django.conf.urls import url
from molo.surveys.views import index
urlpatterns = [
# re-route to overwritten index view, originally in wagtailsurveys
url(r'^$', index, name='index'),
]
| 22 | 70 | 0.717172 | 27 | 198 | 5.259259 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171717 | 198 | 8 | 71 | 24.75 | 0.865854 | 0.323232 | 0 | 0 | 0 | 0 | 0.05303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1c3b4fa254f1daec3297d254064842c05b66f54d | 318 | py | Python | models/schemas.py | muneeb-bashir/Lost_and_Found | e6d8c9f4323e4e0ecf69afd6af9615ac6e48a522 | [
"Apache-2.0"
] | null | null | null | models/schemas.py | muneeb-bashir/Lost_and_Found | e6d8c9f4323e4e0ecf69afd6af9615ac6e48a522 | [
"Apache-2.0"
] | null | null | null | models/schemas.py | muneeb-bashir/Lost_and_Found | e6d8c9f4323e4e0ecf69afd6af9615ac6e48a522 | [
"Apache-2.0"
] | null | null | null | from pydantic import BaseModel
from datetime import date
class User(BaseModel):
name: str
email: str
password: str
contact :str
class Item(BaseModel):
name: str
description: str
lostlocation: str
foundlocation: str
status: bool
Date : date
user_id: int
| 16.736842 | 31 | 0.632075 | 37 | 318 | 5.405405 | 0.567568 | 0.13 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.314465 | 318 | 18 | 32 | 17.666667 | 0.917431 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.066667 | 0.133333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
1c5a65a1fd183c4526a4ef49becf6c279c94dba1 | 260 | py | Python | dist/ba_root/mods/tools/__init__.py | driftywinds/bombsquad-modded-server | 504c8b47f978508c6d06dd684536883d8c36972e | [
"MIT"
] | 1 | 2022-02-25T15:51:18.000Z | 2022-02-25T15:51:18.000Z | dist/ba_root/mods/tools/__init__.py | driftywinds/bombsquad-modded-server | 504c8b47f978508c6d06dd684536883d8c36972e | [
"MIT"
] | null | null | null | dist/ba_root/mods/tools/__init__.py | driftywinds/bombsquad-modded-server | 504c8b47f978508c6d06dd684536883d8c36972e | [
"MIT"
] | null | null | null | """Common bits of functionality shared between all efro projects.
Things in here should be hardened, highly type-safe, and well-covered by unit
tests since they are widely used in live client and server code.
license : MIT, see LICENSE for more details.
"""
| 32.5 | 77 | 0.773077 | 42 | 260 | 4.785714 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169231 | 260 | 7 | 78 | 37.142857 | 0.930556 | 0.969231 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1c5abe8f78761f216b2f1b5da4dcb882a441950d | 228 | py | Python | signal_crawler/tests/common.py | vzvu3k6k/osaka-covid-19-signal-crawler | b26447979ba64d26d4ef886dd6c29b66ebeeb162 | [
"CC0-1.0"
] | null | null | null | signal_crawler/tests/common.py | vzvu3k6k/osaka-covid-19-signal-crawler | b26447979ba64d26d4ef886dd6c29b66ebeeb162 | [
"CC0-1.0"
] | 1 | 2020-06-06T15:39:48.000Z | 2020-06-06T15:39:48.000Z | signal_crawler/tests/common.py | vzvu3k6k/osaka-covid-19-signal-crawler | b26447979ba64d26d4ef886dd6c29b66ebeeb162 | [
"CC0-1.0"
] | 1 | 2020-05-24T22:10:05.000Z | 2020-05-24T22:10:05.000Z | import os
from ..report import Report
def prepare_report(fixture_name):
path = os.path.join(os.path.dirname(__file__), 'fixtures', f'{fixture_name}.html')
with open(path, encoding='CP932') as f:
return Report(f.read())
| 28.5 | 84 | 0.719298 | 35 | 228 | 4.485714 | 0.628571 | 0.140127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015075 | 0.127193 | 228 | 7 | 85 | 32.571429 | 0.773869 | 0 | 0 | 0 | 0 | 0 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1c6ee4a7947ef225223b5f88701e1e1afb00d6d2 | 2,879 | py | Python | GetYourStar/DjangoProj/packets/polls/tests.py | LoopSun/PythonWay | f92046bc934dcbb91ad9f50d35db4ac3dfb511a4 | [
"BSD-2-Clause"
] | null | null | null | GetYourStar/DjangoProj/packets/polls/tests.py | LoopSun/PythonWay | f92046bc934dcbb91ad9f50d35db4ac3dfb511a4 | [
"BSD-2-Clause"
] | null | null | null | GetYourStar/DjangoProj/packets/polls/tests.py | LoopSun/PythonWay | f92046bc934dcbb91ad9f50d35db4ac3dfb511a4 | [
"BSD-2-Clause"
] | null | null | null | from django.test import TestCase
import datetime
from django.utils import timezone
from .models import Question
from django.core.urlresolvers import reverse
# Create your tests here.
class QuestionMethodTests(TestCase):
def test_was_published_recently_with_future_question(self):
time = timezone.now() + dat... | 46.435484 | 141 | 0.737756 | 347 | 2,879 | 5.85879 | 0.184438 | 0.064929 | 0.07575 | 0.089523 | 0.788982 | 0.779144 | 0.718642 | 0.654697 | 0.634038 | 0.634038 | 0 | 0.010638 | 0.151094 | 2,879 | 62 | 141 | 46.435484 | 0.821195 | 0.007989 | 0 | 0.434783 | 0 | 0 | 0.142207 | 0.036778 | 0 | 0 | 0 | 0 | 0.23913 | 1 | 0.195652 | false | 0 | 0.108696 | 0 | 0.369565 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1c79a54f5f40a4b34311c56ec25c317946d71590 | 999 | py | Python | pyproct/data/matrix/loaderMatrixCalculator.py | victor-gil-sepulveda/pyProCT | 2777c73efb48d5ca6543c69a31719421c4d54694 | [
"MIT"
] | 10 | 2015-03-07T09:00:06.000Z | 2019-01-25T15:00:59.000Z | pyproct/data/matrix/loaderMatrixCalculator.py | victor-gil-sepulveda/pyProCT | 2777c73efb48d5ca6543c69a31719421c4d54694 | [
"MIT"
] | 6 | 2015-01-08T11:17:14.000Z | 2018-10-08T15:17:32.000Z | pyproct/data/matrix/loaderMatrixCalculator.py | victor-gil-sepulveda/pyProCT | 2777c73efb48d5ca6543c69a31719421c4d54694 | [
"MIT"
] | 11 | 2015-03-02T11:13:24.000Z | 2022-02-22T16:21:56.000Z | """
Created on 2/9/2014
@author: victor
"""
from pyRMSD.matrixHandler import MatrixHandler as pyRMSD_MatrixHandler
class LoaderMatrixCalculator(object):
CALCULATION_METHOD = "matrix::load"
def __init__(self, params):
pass
@classmethod
def calculate(cls, data_handler, matrix_para... | 22.704545 | 92 | 0.531532 | 93 | 999 | 5.580645 | 0.580645 | 0.109827 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009772 | 0.385385 | 999 | 43 | 93 | 23.232558 | 0.835505 | 0.426426 | 0 | 0 | 0 | 0 | 0.043243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0.125 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
98be1fca60e565c819d1f4f855fb4fcaca7b1282 | 222 | py | Python | Chapter 02/nn/dummy_model.py | bpbpublications/Time-Series-Forecasting-using-Deep-Learning | fd84553d33e912edb4a1400af0f9374e72747457 | [
"MIT"
] | 7 | 2021-12-13T20:00:05.000Z | 2022-03-11T08:44:43.000Z | Chapter 02/nn/dummy_model.py | bpbpublications/Time-Series-Forecasting-using-Deep-Learning | fd84553d33e912edb4a1400af0f9374e72747457 | [
"MIT"
] | 1 | 2022-02-22T10:39:12.000Z | 2022-02-22T10:39:12.000Z | Chapter 02/nn/dummy_model.py | bpbpublications/Time-Series-Forecasting-using-Deep-Learning | fd84553d33e912edb4a1400af0f9374e72747457 | [
"MIT"
] | null | null | null | import torch
class DummyPredictor(torch.nn.Module):
def forward(self, x):
last_values = []
for r in x.tolist():
last_values.append([r[-1]])
return torch.tensor(data = last_values)
| 22.2 | 47 | 0.599099 | 29 | 222 | 4.482759 | 0.724138 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006211 | 0.274775 | 222 | 9 | 48 | 24.666667 | 0.801242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
98cc167c8a0d0c76fa432dc818d98cb0903caca1 | 15,793 | py | Python | tests/test_csv__provider.py | FarheenB/pygeoapi | a0f4beacb922ca29e2d83353ad03ea2de0353b89 | [
"MIT"
] | null | null | null | tests/test_csv__provider.py | FarheenB/pygeoapi | a0f4beacb922ca29e2d83353ad03ea2de0353b89 | [
"MIT"
] | 1 | 2020-07-27T11:51:43.000Z | 2020-07-27T11:51:43.000Z | tests/test_csv__provider.py | FarheenB/pygeoapi | a0f4beacb922ca29e2d83353ad03ea2de0353b89 | [
"MIT"
] | null | null | null | # =================================================================
#
# Authors: Tom Kralidis <tomkralidis@gmail.com>
#
# Copyright (c) 2018 Tom Kralidis
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in ... | 32.034483 | 86 | 0.645919 | 1,977 | 15,793 | 5.092059 | 0.144158 | 0.113639 | 0.063276 | 0.068342 | 0.740141 | 0.707957 | 0.663058 | 0.634847 | 0.628092 | 0.621834 | 0 | 0.040525 | 0.209397 | 15,793 | 492 | 87 | 32.099594 | 0.765738 | 0.20984 | 0 | 0.565495 | 0 | 0.00639 | 0.246272 | 0.032516 | 0 | 0 | 0 | 0 | 0.42492 | 1 | 0.092652 | false | 0.00639 | 0.015974 | 0 | 0.118211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
98d2fc749b2b5ff11d6399f6fa41086ec968d5df | 599 | py | Python | 20160101_5.py | JaeGyu/PythonEx_1 | e67053db6ca7431c3dd66351c190c53229e3f141 | [
"MIT"
] | null | null | null | 20160101_5.py | JaeGyu/PythonEx_1 | e67053db6ca7431c3dd66351c190c53229e3f141 | [
"MIT"
] | null | null | null | 20160101_5.py | JaeGyu/PythonEx_1 | e67053db6ca7431c3dd66351c190c53229e3f141 | [
"MIT"
] | null | null | null | #_*_ coding: utf-8 _*_
import sys
import math
a = 23
b = 023
c = 0x23
print type(a),type(b),type(c)
print a,b,c
print sys.maxint
d = 1.2
e = 3.5e3
f = -0.2e-4
print type(d),type(e),type(f)
print d,e,f
g = 123456789098765432123456789l
print type(g)
print g * g
h = 12345678909876543212345
print h
print type(h)
pr... | 13.613636 | 32 | 0.684474 | 124 | 599 | 3.274194 | 0.354839 | 0.08867 | 0.044335 | 0.039409 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203156 | 0.153589 | 599 | 44 | 33 | 13.613636 | 0.597633 | 0.035058 | 0 | 0 | 0 | 0 | 0.015571 | 0 | 0 | 0 | 0.00692 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.705882 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
98d6bd0b8a73692a24f717823018b7bfbb235a39 | 313 | py | Python | dropbox_problem/problem_3.py | loftwah/Daily-Coding-Problem | 0327f0b4f69ef419436846c831110795c7a3c1fe | [
"MIT"
] | 129 | 2018-10-14T17:52:29.000Z | 2022-01-29T15:45:57.000Z | dropbox_problem/problem_3.py | loftwah/Daily-Coding-Problem | 0327f0b4f69ef419436846c831110795c7a3c1fe | [
"MIT"
] | 2 | 2019-11-30T23:28:23.000Z | 2020-01-03T16:30:32.000Z | dropbox_problem/problem_3.py | loftwah/Daily-Coding-Problem | 0327f0b4f69ef419436846c831110795c7a3c1fe | [
"MIT"
] | 60 | 2019-02-21T09:18:31.000Z | 2022-03-25T21:01:04.000Z | """This problem was asked by Dropbox.
Sudoku is a puzzle where you're given a partially-filled 9 by 9
grid with digits. The objective is to fill the grid with the
constraint that every row, column, and box (3 by 3 subgrid) must contain all of
the digits from 1 to 9.
Implement an efficient sudoku solver.
""" | 34.777778 | 80 | 0.753994 | 58 | 313 | 4.068966 | 0.741379 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.194888 | 313 | 9 | 81 | 34.777778 | 0.912698 | 0.977636 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
98e76b387753cb013b4db2d4dc70904385d6e63d | 854 | py | Python | venv3864/Lib/site-packages/PyInstaller/hooks/hook-ncclient.py | JonRob812/SuperDuper | 51fdec82c04acf7c0b37f31e1ce2fce3eb22ce8b | [
"Apache-2.0"
] | 4 | 2019-08-28T21:01:08.000Z | 2021-06-30T06:27:35.000Z | venv3864/Lib/site-packages/PyInstaller/hooks/hook-ncclient.py | JonRob812/SuperDuper | 51fdec82c04acf7c0b37f31e1ce2fce3eb22ce8b | [
"Apache-2.0"
] | 5 | 2019-11-10T16:20:09.000Z | 2019-12-02T14:23:58.000Z | venv3864/Lib/site-packages/PyInstaller/hooks/hook-ncclient.py | JonRob812/SuperDuper | 51fdec82c04acf7c0b37f31e1ce2fce3eb22ce8b | [
"Apache-2.0"
] | 2 | 2019-08-27T22:21:05.000Z | 2021-06-30T06:27:41.000Z | #-----------------------------------------------------------------------------
# Copyright (c) 2005-2019, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
#
# The full license is in the file COPYING.txt, distributed with this s... | 34.16 | 78 | 0.644028 | 96 | 854 | 5.708333 | 0.71875 | 0.062044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01455 | 0.114754 | 854 | 24 | 79 | 35.583333 | 0.710317 | 0.832553 | 0 | 0 | 0 | 0 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
98f19403dc7c2c598198dc652c3bc7277a897b21 | 16,098 | py | Python | lightautoml/transformers/gpu/numeric_gpu.py | Rishat-skoltech/LightAutoML_GPU | 4a0a524dc097de94b90871e40f2e33159a0e19b5 | [
"Apache-2.0"
] | 2 | 2022-03-21T19:15:53.000Z | 2022-03-30T07:41:59.000Z | lightautoml/transformers/gpu/numeric_gpu.py | Rishat-skoltech/LightAutoML_GPU | 4a0a524dc097de94b90871e40f2e33159a0e19b5 | [
"Apache-2.0"
] | null | null | null | lightautoml/transformers/gpu/numeric_gpu.py | Rishat-skoltech/LightAutoML_GPU | 4a0a524dc097de94b90871e40f2e33159a0e19b5 | [
"Apache-2.0"
] | null | null | null | """Numeric features transformers."""
from typing import Union
import numpy as np
import cupy as cp
import cudf
from lightautoml.transformers.base import LAMLTransformer
from lightautoml.dataset.np_pd_dataset import PandasDataset
from lightautoml.dataset.np_pd_dataset import NumpyDataset
from lightautoml.dataset.gpu.... | 29.646409 | 99 | 0.627656 | 1,818 | 16,098 | 5.424642 | 0.10451 | 0.033462 | 0.051105 | 0.03407 | 0.752079 | 0.725208 | 0.717197 | 0.694889 | 0.662239 | 0.631819 | 0 | 0.007171 | 0.272332 | 16,098 | 542 | 100 | 29.701107 | 0.834728 | 0.175115 | 0 | 0.664207 | 0 | 0 | 0.004967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.132841 | false | 0 | 0.04797 | 0 | 0.435424 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
98f2e5744d2fac47751f7d6d791ef30fa9cd4775 | 573 | py | Python | Session_08/datamodel.py | CristiPV/kea-pyton | 988e56cd5794711b59af104de4dc6f87ffc014f0 | [
"MIT"
] | null | null | null | Session_08/datamodel.py | CristiPV/kea-pyton | 988e56cd5794711b59af104de4dc6f87ffc014f0 | [
"MIT"
] | null | null | null | Session_08/datamodel.py | CristiPV/kea-pyton | 988e56cd5794711b59af104de4dc6f87ffc014f0 | [
"MIT"
] | null | null | null | class S:
def __init__(self, name):
self.name = name
def __repr__(self):
return f'{self.__dict__}'
def __str__(self):
return f'Name: {self.name}'
def __add__(self, other):
return S(f'{self.name} {other.name}')
class Deck:
def __init__(self):
self.cards = [... | 19.758621 | 45 | 0.553229 | 81 | 573 | 3.419753 | 0.333333 | 0.115523 | 0.119134 | 0.122744 | 0.209386 | 0.209386 | 0.209386 | 0.209386 | 0 | 0 | 0 | 0.012225 | 0.286213 | 573 | 29 | 46 | 19.758621 | 0.665037 | 0 | 0 | 0.173913 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.347826 | false | 0 | 0 | 0.26087 | 0.695652 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
98fd7d6b7e517c798898044f8c6dfe3337a6dec2 | 543 | py | Python | tests/sentry/testutils/helpers/test_features.py | uandco/sentry | 5b8d45cb71c6617dac8e64265848623fbfce9c99 | [
"BSD-3-Clause"
] | 4 | 2019-05-27T13:55:07.000Z | 2021-03-30T07:05:09.000Z | tests/sentry/testutils/helpers/test_features.py | uandco/sentry | 5b8d45cb71c6617dac8e64265848623fbfce9c99 | [
"BSD-3-Clause"
] | 196 | 2019-06-10T08:34:10.000Z | 2022-02-22T01:26:13.000Z | tests/sentry/testutils/helpers/test_features.py | uandco/sentry | 5b8d45cb71c6617dac8e64265848623fbfce9c99 | [
"BSD-3-Clause"
] | 1 | 2020-08-10T07:55:40.000Z | 2020-08-10T07:55:40.000Z | from __future__ import absolute_import
from sentry import features
from sentry.testutils import TestCase
from sentry.testutils.helpers import with_feature
class TestTestUtilsFeatureHelper(TestCase):
def setUp(self):
self.org = self.create_organization()
def test_without_feature(self):
assert... | 30.166667 | 76 | 0.769797 | 64 | 543 | 6.34375 | 0.421875 | 0.073892 | 0.214286 | 0.157635 | 0.231527 | 0.231527 | 0.231527 | 0 | 0 | 0 | 0 | 0 | 0.14733 | 543 | 17 | 77 | 31.941176 | 0.87689 | 0 | 0 | 0 | 0 | 0 | 0.171271 | 0.171271 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.25 | false | 0 | 0.333333 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
c70234eac879d08ff406c0418ef6e94fed996081 | 35 | py | Python | pyble/const/characteristic/rsc_measurement.py | bgromov/PyBLEWrapper | 8a5d016e65b3c259391ddc97c371ab4b1b5c61b5 | [
"MIT"
] | 14 | 2015-03-30T23:11:36.000Z | 2020-04-07T00:57:12.000Z | pyble/const/characteristic/rsc_measurement.py | bgromov/PyBLEWrapper | 8a5d016e65b3c259391ddc97c371ab4b1b5c61b5 | [
"MIT"
] | 3 | 2016-05-17T06:11:07.000Z | 2017-05-15T16:43:09.000Z | pyble/const/characteristic/rsc_measurement.py | bgromov/PyBLEWrapper | 8a5d016e65b3c259391ddc97c371ab4b1b5c61b5 | [
"MIT"
] | 11 | 2016-03-11T08:53:03.000Z | 2019-03-11T21:32:13.000Z | NAME="RSC Measurement"
UUID=0x2A53
| 11.666667 | 22 | 0.8 | 5 | 35 | 5.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0.085714 | 35 | 2 | 23 | 17.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0.171429 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c7138bb88c5fccc5c8d4889fba3c379cd5c8210f | 942 | py | Python | src/compas_rv2/rhino/artists/__init__.py | amaneka/compas-RV2 | 36d1c8df403e231b52e545e3d04df8421998c056 | [
"MIT"
] | 4 | 2022-01-17T19:17:22.000Z | 2022-01-21T18:06:02.000Z | src/compas_rv2/rhino/artists/__init__.py | Rjpanval/compas-RV2 | 4314dccbbefd5b8aadc9557f6d51d52c1e61fc24 | [
"MIT"
] | null | null | null | src/compas_rv2/rhino/artists/__init__.py | Rjpanval/compas-RV2 | 4314dccbbefd5b8aadc9557f6d51d52c1e61fc24 | [
"MIT"
] | null | null | null | from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
from compas.datastructures import Mesh
from compas_rv2.datastructures import Skeleton
from compas_rv2.datastructures import SubdMesh
from compas_rv2.datastructures import Pattern
from compas_rv2.datastructures... | 34.888889 | 51 | 0.874735 | 103 | 942 | 7.805825 | 0.223301 | 0.087065 | 0.097015 | 0.201493 | 0.246269 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006944 | 0.082803 | 942 | 26 | 52 | 36.230769 | 0.923611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.681818 | 0 | 0.681818 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c71732e54fccdd810f0a5866f378f3b0f0577719 | 123 | py | Python | settings.py | bugo99iot/wrapml | 259ccfb7ef0f94d8a1fcee6d724024b3e09f9357 | [
"MIT"
] | 1 | 2021-09-06T20:26:38.000Z | 2021-09-06T20:26:38.000Z | settings.py | bugo99iot/wrapml | 259ccfb7ef0f94d8a1fcee6d724024b3e09f9357 | [
"MIT"
] | 3 | 2020-11-13T18:52:20.000Z | 2022-02-10T01:42:46.000Z | settings.py | bugo99iot/wrapml | 259ccfb7ef0f94d8a1fcee6d724024b3e09f9357 | [
"MIT"
] | null | null | null | import os
from pathlib import Path
ROOT_DIR = Path(__file__).parent.absolute()
SRC_DIR = os.path.join(ROOT_DIR, 'wrapml')
| 20.5 | 43 | 0.764228 | 20 | 123 | 4.35 | 0.65 | 0.16092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113821 | 123 | 5 | 44 | 24.6 | 0.798165 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c71f7b826752473c59bf62a663489208bf011bc3 | 4,539 | py | Python | VyPR/SCFG/symbolic_states.py | SNTSVV/VyPR-iCFTL | 8e6b170821fb4dc1278094d2ed270e5fd619c193 | [
"Apache-2.0"
] | null | null | null | VyPR/SCFG/symbolic_states.py | SNTSVV/VyPR-iCFTL | 8e6b170821fb4dc1278094d2ed270e5fd619c193 | [
"Apache-2.0"
] | null | null | null | VyPR/SCFG/symbolic_states.py | SNTSVV/VyPR-iCFTL | 8e6b170821fb4dc1278094d2ed270e5fd619c193 | [
"Apache-2.0"
] | null | null | null | """
Copyright (C) 2021 University of Luxembourg
Developed by Dr. Joshua Heneage Dawes.
Module to contain definitions of various kinds of symbolic states.
"""
import VyPR.Logging.logger as logger
class SymbolicState():
"""
Base class for all types of symbolic states.
"""
def __init__(self):
... | 31.741259 | 152 | 0.678564 | 555 | 4,539 | 5.218018 | 0.192793 | 0.152624 | 0.04558 | 0.072169 | 0.540746 | 0.436464 | 0.376036 | 0.348757 | 0.327348 | 0.298343 | 0 | 0.001149 | 0.233091 | 4,539 | 143 | 153 | 31.741259 | 0.830796 | 0.287508 | 0 | 0.409091 | 0 | 0 | 0.137885 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318182 | false | 0 | 0.015152 | 0.106061 | 0.621212 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c74a79080bc7ac11d9805791d181b487b6cf40c8 | 134 | py | Python | test22.py | cherytony/test1 | 506ce4cab6f641beff817c81d7a616db29a7131d | [
"Apache-2.0"
] | null | null | null | test22.py | cherytony/test1 | 506ce4cab6f641beff817c81d7a616db29a7131d | [
"Apache-2.0"
] | null | null | null | test22.py | cherytony/test1 | 506ce4cab6f641beff817c81d7a616db29a7131d | [
"Apache-2.0"
] | null | null | null | def length_message(x):
print("The length of", repr(x), "is", len(x))
length_message('Fnord')
length_message([1, 2, 3])
print()
| 14.888889 | 49 | 0.641791 | 22 | 134 | 3.772727 | 0.636364 | 0.46988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0.149254 | 134 | 8 | 50 | 16.75 | 0.701754 | 0 | 0 | 0 | 0 | 0 | 0.149254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0.4 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c75a76bc9efb44da311d18f4f1a19eca3cbb310a | 224 | py | Python | setup.py | elijahr/cyserver | aa3c63105e1d814a33cf82cd13b13b10b1aa9007 | [
"MIT",
"BSD-3-Clause"
] | 1 | 2019-10-07T18:15:11.000Z | 2019-10-07T18:15:11.000Z | setup.py | elijahr/cyserver | aa3c63105e1d814a33cf82cd13b13b10b1aa9007 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | setup.py | elijahr/cyserver | aa3c63105e1d814a33cf82cd13b13b10b1aa9007 | [
"MIT",
"BSD-3-Clause"
] | null | null | null |
from distutils.core import setup
from cyserver.config import make_setup_args, ext_modules_dict
setup_args = make_setup_args(ext_modules=list(ext_modules_dict.values()))
if __name__ == '__main__':
setup(**setup_args) | 22.4 | 73 | 0.794643 | 33 | 224 | 4.818182 | 0.515152 | 0.226415 | 0.163522 | 0.201258 | 0.289308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111607 | 224 | 10 | 74 | 22.4 | 0.798995 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c77f22b5de45ba096456aece8ccc45952ff7a608 | 283 | py | Python | nltools/data/__init__.py | paxtonfitzpatrick/nltools | 9d52e2e1d665a21feb641ab16424e450aca0c971 | [
"MIT"
] | 65 | 2018-08-26T19:39:11.000Z | 2022-02-20T10:32:58.000Z | nltools/data/__init__.py | paxtonfitzpatrick/nltools | 9d52e2e1d665a21feb641ab16424e450aca0c971 | [
"MIT"
] | 138 | 2018-08-15T22:31:45.000Z | 2022-02-14T18:23:46.000Z | nltools/data/__init__.py | paxtonfitzpatrick/nltools | 9d52e2e1d665a21feb641ab16424e450aca0c971 | [
"MIT"
] | 18 | 2018-08-23T16:52:35.000Z | 2022-02-24T01:52:27.000Z | """
nltools data types.
"""
from .brain_data import Brain_Data, Groupby
from .adjacency import Adjacency
from .design_matrix import Design_Matrix, Design_Matrix_Series
__all__ = [
"Brain_Data",
"Adjacency",
"Groupby",
"Design_Matrix",
"Design_Matrix_Series",
]
| 17.6875 | 62 | 0.717314 | 33 | 283 | 5.727273 | 0.363636 | 0.31746 | 0.190476 | 0.253968 | 0.31746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176678 | 283 | 15 | 63 | 18.866667 | 0.811159 | 0.067138 | 0 | 0 | 0 | 0 | 0.230469 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c77fc50c84c36ac057ae141cb24b43452e3d1689 | 345 | py | Python | src/infi/recipe/buildout_logging/tests.py | Infinidat/infi.recipe.buildout_logging | 8ae9b93ce9dcc1d29b5118683c185fb73f3dd2dd | [
"BSD-3-Clause"
] | null | null | null | src/infi/recipe/buildout_logging/tests.py | Infinidat/infi.recipe.buildout_logging | 8ae9b93ce9dcc1d29b5118683c185fb73f3dd2dd | [
"BSD-3-Clause"
] | null | null | null | src/infi/recipe/buildout_logging/tests.py | Infinidat/infi.recipe.buildout_logging | 8ae9b93ce9dcc1d29b5118683c185fb73f3dd2dd | [
"BSD-3-Clause"
] | null | null | null | from infi.unittest import TestCase
from infi.execute import execute_assert_success
import os
EXTENSION = '.exe' if os.name == 'nt' else ''
class CloseApplicationTestCase(TestCase):
def test_via_buildout(self):
execute_assert_success([os.path.join('bin', 'buildout' + EXTENSION), 'install', 'debug-logging',... | 34.5 | 128 | 0.744928 | 43 | 345 | 5.837209 | 0.697674 | 0.063745 | 0.159363 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127536 | 345 | 9 | 129 | 38.333333 | 0.833887 | 0 | 0 | 0 | 0 | 0 | 0.162319 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c795c7d795ab91075f68b2f9598c72d2c762f006 | 128 | py | Python | fam_assignment/video_collector/urls.py | deepanshnagaria/Youtube-Video-Collector | 1ee5dac77ab0386c0d4e62f049d1f37af94bba7c | [
"MIT"
] | 1 | 2020-10-13T11:01:45.000Z | 2020-10-13T11:01:45.000Z | fam_assignment/video_collector/urls.py | deepanshnagaria/Youtube-Video-Collector | 1ee5dac77ab0386c0d4e62f049d1f37af94bba7c | [
"MIT"
] | null | null | null | fam_assignment/video_collector/urls.py | deepanshnagaria/Youtube-Video-Collector | 1ee5dac77ab0386c0d4e62f049d1f37af94bba7c | [
"MIT"
] | null | null | null | from django.urls import path
from .views import Videos
urlpatterns = [
path("", Videos.as_view(), name="Video_listing"),
] | 18.285714 | 53 | 0.703125 | 17 | 128 | 5.176471 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 128 | 7 | 54 | 18.285714 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0.100775 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c7b78a62c644d090ea83d8336e59431a247d0d45 | 4,980 | py | Python | hydrocarbon_problem/api/Simulation.py | ADChristos/Aspen-RL | f600f29593261f9df9701a50e070461c4ae302bb | [
"MIT"
] | null | null | null | hydrocarbon_problem/api/Simulation.py | ADChristos/Aspen-RL | f600f29593261f9df9701a50e070461c4ae302bb | [
"MIT"
] | null | null | null | hydrocarbon_problem/api/Simulation.py | ADChristos/Aspen-RL | f600f29593261f9df9701a50e070461c4ae302bb | [
"MIT"
] | null | null | null | import os
import win32com.client as win32
class Simulation():
AspenSimulation = win32.gencache.EnsureDispatch("Apwn.Document")
def __init__(self, PATH, VISIBILITY):
self.AspenSimulation.InitFromArchive2(os.path.abspath(PATH))
self.AspenSimulation.Visible = VISIBILITY
@property... | 41.848739 | 115 | 0.646586 | 644 | 4,980 | 4.818323 | 0.181677 | 0.042862 | 0.077345 | 0.087657 | 0.540767 | 0.473735 | 0.421528 | 0.370609 | 0.315179 | 0.230744 | 0 | 0.019697 | 0.204819 | 4,980 | 119 | 116 | 41.84874 | 0.763889 | 0 | 0 | 0.05618 | 0 | 0 | 0.073617 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.303371 | false | 0 | 0.022472 | 0.134831 | 0.539326 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c7c14ba5abc885b87ddc54aac9ff766a9be9200f | 260 | py | Python | test/test_esspi.py | godber/esspi | 69965b508ea7215dcd1dbe88306948335d02ac3c | [
"MIT"
] | null | null | null | test/test_esspi.py | godber/esspi | 69965b508ea7215dcd1dbe88306948335d02ac3c | [
"MIT"
] | null | null | null | test/test_esspi.py | godber/esspi | 69965b508ea7215dcd1dbe88306948335d02ac3c | [
"MIT"
] | null | null | null | """
Tests for `esspi` module.
"""
import pytest
from esspi import esspi
class TestEsspi(object):
@classmethod
def setup_class(cls):
pass
def test_something(self):
pass
@classmethod
def teardown_class(cls):
pass
| 13 | 29 | 0.626923 | 30 | 260 | 5.333333 | 0.633333 | 0.175 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.284615 | 260 | 19 | 30 | 13.684211 | 0.860215 | 0.096154 | 0 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.272727 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
c7c68f82dab13d1f33c741baa98504cb4d923eb1 | 155 | py | Python | scripts/sequtils/random_sequence.py | acumb/LatticeDNAOrigami | 0f2522286adc9815865d4abfc55f546da40e606b | [
"MIT"
] | 5 | 2016-04-10T21:21:52.000Z | 2018-07-21T15:33:07.000Z | scripts/sequtils/random_sequence.py | cumberworth/LatticeDNAOrigami | 71570107890e5de602cee2aacf7db9aea2907892 | [
"MIT"
] | 2 | 2020-09-16T13:07:13.000Z | 2020-09-16T13:08:02.000Z | scripts/sequtils/random_sequence.py | cumberworth/LatticeDNAOrigami | 71570107890e5de602cee2aacf7db9aea2907892 | [
"MIT"
] | 2 | 2020-08-19T09:49:21.000Z | 2020-08-19T10:10:06.000Z | import numpy as np
import sys
length = int(sys.argv[1])
sequence = ''.join(np.random.choice(['A', 'C', 'G', 'T'], size=length).tolist())
print(sequence)
| 19.375 | 80 | 0.645161 | 25 | 155 | 4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007353 | 0.122581 | 155 | 7 | 81 | 22.142857 | 0.727941 | 0 | 0 | 0 | 0 | 0 | 0.025806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c7cc8c86b652954602ce8dd1511f0a3e20a6964d | 23,852 | gyp | Python | src/chrome/nacl/nacl_extension.gyp | soleilpqd/mozc | 4767ce2f2b6a63f1f139daea6e98bc7a564d5e4e | [
"BSD-3-Clause"
] | 1 | 2017-09-01T20:55:40.000Z | 2017-09-01T20:55:40.000Z | src/chrome/nacl/nacl_extension.gyp | soleilpqd/mozc | 4767ce2f2b6a63f1f139daea6e98bc7a564d5e4e | [
"BSD-3-Clause"
] | null | null | null | src/chrome/nacl/nacl_extension.gyp | soleilpqd/mozc | 4767ce2f2b6a63f1f139daea6e98bc7a564d5e4e | [
"BSD-3-Clause"
] | 2 | 2020-02-12T15:24:27.000Z | 2020-02-22T13:36:21.000Z | # Copyright 2010-2016, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and ... | 37.094868 | 88 | 0.567667 | 2,642 | 23,852 | 4.759273 | 0.146101 | 0.110068 | 0.102354 | 0.143709 | 0.63353 | 0.538174 | 0.473199 | 0.419755 | 0.228646 | 0.148083 | 0 | 0.003717 | 0.266854 | 23,852 | 642 | 89 | 37.152648 | 0.715331 | 0.081922 | 0 | 0.456954 | 0 | 0 | 0.630924 | 0.518436 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c7d6193cf36de1a113a9cadef32795a3d2078896 | 300 | py | Python | upwork/routers/hr/__init__.py | upwork/python-upwork | 63aa5ebfd91cbf6f019437358f3e89d0e3bc29aa | [
"Apache-2.0"
] | 150 | 2015-05-28T19:09:33.000Z | 2022-03-22T16:56:33.000Z | upwork/routers/hr/__init__.py | Top-coder-1/python-upwork | 0671e1e90cc2d770be4f96ae4bfb21bc111dd122 | [
"Apache-2.0"
] | 38 | 2015-05-28T18:45:55.000Z | 2021-06-14T09:34:27.000Z | upwork/routers/hr/__init__.py | upwork/python-upwork-oauth2 | 5a10558a5c4479e7aea462fec0193db40ecde9e2 | [
"Apache-2.0"
] | 61 | 2015-09-01T06:39:25.000Z | 2021-11-09T12:29:57.000Z | """routers"""
from . import clients, contracts, engagements, freelancers
from . import interviews, jobs, milestones, roles, submissions
__all__ = (
"clients",
"contracts",
"engagements",
"freelancers",
"interviews",
"jobs",
"milestones",
"roles",
"submissions"
)
| 18.75 | 62 | 0.633333 | 24 | 300 | 7.75 | 0.541667 | 0.107527 | 0.290323 | 0.408602 | 0.430108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22 | 300 | 15 | 63 | 20 | 0.794872 | 0.023333 | 0 | 0 | 0 | 0 | 0.271777 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c7e448eee7adcf5c72cdc2da65b74a8eb9cb9e3f | 66 | py | Python | params.py | ankitshah009/BioASQ-Rabbit | 1d3073fbcdebb58b91788b6c2ab0ad9380cb2498 | [
"Apache-2.0"
] | null | null | null | params.py | ankitshah009/BioASQ-Rabbit | 1d3073fbcdebb58b91788b6c2ab0ad9380cb2498 | [
"Apache-2.0"
] | null | null | null | params.py | ankitshah009/BioASQ-Rabbit | 1d3073fbcdebb58b91788b6c2ab0ad9380cb2498 | [
"Apache-2.0"
] | null | null | null | import os
host=os.environ.get('RABBITMQ_HOST')
#host='localhost'
| 13.2 | 36 | 0.757576 | 10 | 66 | 4.9 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075758 | 66 | 4 | 37 | 16.5 | 0.803279 | 0.242424 | 0 | 0 | 0 | 0 | 0.270833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c7eb8fd938844acf083a220580d2143bb539f556 | 27,658 | py | Python | src/scripts/events_to_features.py | yerseg/profiling_data_learning | 9de84589b1b72d38c17e16ad2ddd55dd1859b2f8 | [
"MIT"
] | null | null | null | src/scripts/events_to_features.py | yerseg/profiling_data_learning | 9de84589b1b72d38c17e16ad2ddd55dd1859b2f8 | [
"MIT"
] | null | null | null | src/scripts/events_to_features.py | yerseg/profiling_data_learning | 9de84589b1b72d38c17e16ad2ddd55dd1859b2f8 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
from datetime import datetime as dt
import scipy.stats as stats
from scipy.spatial import distance
from geopy.distance import distance as geodist
import argparse
import os
POWER_EVENTS_FILE_NAME = "power.data"
def generate_location_features(src_path, dst_path_rolling, dst_path_... | 37.224764 | 120 | 0.61277 | 3,840 | 27,658 | 4.141146 | 0.065365 | 0.031694 | 0.017608 | 0.019369 | 0.780782 | 0.746636 | 0.718966 | 0.660357 | 0.647403 | 0.612753 | 0 | 0.009019 | 0.246366 | 27,658 | 742 | 121 | 37.274933 | 0.753886 | 0.003109 | 0 | 0.603291 | 0 | 0 | 0.088631 | 0.006284 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102377 | false | 0 | 0.014625 | 0.025594 | 0.261426 | 0.007313 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1bf9087c1c95870cc2cf7416f8814b53cb28caae | 501,157 | py | Python | pysnmp-with-texts/ALCATEL-IND1-TIMETRA-OAM-TEST-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/ALCATEL-IND1-TIMETRA-OAM-TEST-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/ALCATEL-IND1-TIMETRA-OAM-TEST-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module ALCATEL-IND1-TIMETRA-OAM-TEST-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ALCATEL-IND1-TIMETRA-OAM-TEST-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:19:55 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using P... | 237.966287 | 13,674 | 0.801386 | 60,154 | 501,157 | 6.676264 | 0.038834 | 0.037081 | 0.064892 | 0.043558 | 0.599879 | 0.521369 | 0.47748 | 0.457339 | 0.419319 | 0.402362 | 0 | 0.043977 | 0.095431 | 501,157 | 2,105 | 13,675 | 238.079335 | 0.841919 | 0.000718 | 0 | 0.02988 | 0 | 0.246265 | 0.523956 | 0.170947 | 0 | 0 | 0.000188 | 0 | 0.000482 | 1 | 0 | false | 0.004819 | 0.011566 | 0 | 0.032771 | 0.000964 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
401934ff7d063f6afb899ce702d57f2b09c22ba2 | 712 | py | Python | prebuilder/core/Repo.py | prebuilder/prebuilder.py | e5ee9dce0e46a3bc022dfaa0ce9f1be0563e2bdc | [
"Unlicense"
] | 4 | 2019-11-10T19:53:00.000Z | 2020-11-03T00:35:25.000Z | prebuilder/core/Repo.py | prebuilder/prebuilder.py | e5ee9dce0e46a3bc022dfaa0ce9f1be0563e2bdc | [
"Unlicense"
] | null | null | null | prebuilder/core/Repo.py | prebuilder/prebuilder.py | e5ee9dce0e46a3bc022dfaa0ce9f1be0563e2bdc | [
"Unlicense"
] | 1 | 2019-11-15T08:49:49.000Z | 2019-11-15T08:49:49.000Z | __all__ = ("IRepo",)
import typing
from abc import abstractmethod, ABC
from pathlib import Path
from .Package import Package
from ..buildPipeline import DistroStream
from .BuiltPackage import BuiltPackage
AddableT = typing.Union[DistroStream, BuiltPackage, Path]
AddableT = typing.Union[AddableT, typing.Iterable[Addabl... | 22.25 | 60 | 0.766854 | 76 | 712 | 6.868421 | 0.434211 | 0.130268 | 0.218391 | 0.235632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134831 | 712 | 31 | 61 | 22.967742 | 0.847403 | 0 | 0 | 0.333333 | 0 | 0 | 0.007022 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.541667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
40196d26756f591fc8e498b193547af773d8492e | 4,583 | py | Python | doc_extract/tests/nodes.py | dipasqualew/doc-extract | 12c9daa335d768a9d5f364354e19da1bf5d57a04 | [
"MIT"
] | null | null | null | doc_extract/tests/nodes.py | dipasqualew/doc-extract | 12c9daa335d768a9d5f364354e19da1bf5d57a04 | [
"MIT"
] | 15 | 2020-10-29T07:00:56.000Z | 2021-07-29T06:11:40.000Z | doc_extract/tests/nodes.py | rolafium/doc-extract | 12c9daa335d768a9d5f364354e19da1bf5d57a04 | [
"MIT"
] | null | null | null | """
Generates nodes to be used in tests
"""
import ast
from doc_extract.tests.th.mixins import create_node
# Typical node types
NODE_TYPES = (
ast.Module,
ast.ClassDef,
ast.FunctionDef,
)
def create_function_node(**kwargs):
"""
Creates a function node
"""
return create_node(node_type=ast.... | 40.919643 | 117 | 0.718743 | 617 | 4,583 | 4.915721 | 0.082658 | 0.118694 | 0.184636 | 0.125288 | 0.799538 | 0.725025 | 0.671612 | 0.576657 | 0.48368 | 0.379492 | 0 | 0.01175 | 0.127209 | 4,583 | 111 | 118 | 41.288288 | 0.7465 | 0.056513 | 0 | 0 | 1 | 0 | 0.090333 | 0.062881 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.025 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
401c11650dda97a1940474c91314fec82c26ec5f | 656 | py | Python | csp/constraints/x_less_or_equal_k.py | abeccaro/csp-solver | a761dee02a4dd12162eb55ef34cc0989c79567cc | [
"MIT"
] | null | null | null | csp/constraints/x_less_or_equal_k.py | abeccaro/csp-solver | a761dee02a4dd12162eb55ef34cc0989c79567cc | [
"MIT"
] | null | null | null | csp/constraints/x_less_or_equal_k.py | abeccaro/csp-solver | a761dee02a4dd12162eb55ef34cc0989c79567cc | [
"MIT"
] | null | null | null | from csp.constraints.constraint import Constraint
class XLessOrEqualK(Constraint):
"""Constraint for expressions of type x <= k.
:param name: The name
:param var: The variable
:param val: The value
:type name: str
:type var: IntVariable
:type val: int
"""
def ... | 23.428571 | 50 | 0.570122 | 80 | 656 | 4.525 | 0.4375 | 0.096685 | 0.077348 | 0.093923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.329268 | 656 | 27 | 51 | 24.296296 | 0.822727 | 0.253049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.083333 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
40465094327ecc8b5694e87ccc4427bb01abdf4c | 172 | py | Python | iotedgedev/containerregistry.py | druttka/iotedgedev | c1014993410f220cb8646e5bbdc7d87d064e27c5 | [
"MIT"
] | 111 | 2018-04-09T18:24:30.000Z | 2022-03-29T12:12:50.000Z | iotedgedev/containerregistry.py | druttka/iotedgedev | c1014993410f220cb8646e5bbdc7d87d064e27c5 | [
"MIT"
] | 314 | 2018-04-09T19:59:27.000Z | 2022-03-28T12:13:45.000Z | iotedgedev/containerregistry.py | druttka/iotedgedev | c1014993410f220cb8646e5bbdc7d87d064e27c5 | [
"MIT"
] | 45 | 2018-04-09T21:52:23.000Z | 2022-03-23T12:48:01.000Z | class ContainerRegistry:
def __init__(self, server, username, password):
self.server = server
self.username = username
self.password = password
| 28.666667 | 51 | 0.668605 | 17 | 172 | 6.529412 | 0.470588 | 0.18018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255814 | 172 | 5 | 52 | 34.4 | 0.867188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.4 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
40498c3de9bb533b28836ca3d0fec2ff65d608f0 | 164 | py | Python | cgi-bin/listService.py | raktim00/docker-k8s-webapp | 96c1ddd53e3c2a3a1fd1e258c4ee988d1db1bc10 | [
"MIT"
] | 3 | 2021-08-28T15:27:25.000Z | 2021-09-07T21:41:05.000Z | cgi-bin/listService.py | adyraj/docker-k8s-webapp-1 | 96c1ddd53e3c2a3a1fd1e258c4ee988d1db1bc10 | [
"MIT"
] | null | null | null | cgi-bin/listService.py | adyraj/docker-k8s-webapp-1 | 96c1ddd53e3c2a3a1fd1e258c4ee988d1db1bc10 | [
"MIT"
] | 7 | 2021-08-28T15:18:46.000Z | 2022-01-20T08:04:12.000Z | #!/usr/bin/python3
print("content-type: text/html")
print()
import subprocess
output = subprocess.getoutput("sudo kubectl get svc")
print("<pre>"+ output +"</pre") | 23.428571 | 53 | 0.713415 | 22 | 164 | 5.318182 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006711 | 0.091463 | 164 | 7 | 54 | 23.428571 | 0.778523 | 0.103659 | 0 | 0 | 0 | 0 | 0.360544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.6 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
405db64023919c863c9c83451695fa99f7e5e623 | 224 | py | Python | python/testData/quickdoc/ParamDescriptionInheritedMismatched.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/quickdoc/ParamDescriptionInheritedMismatched.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/quickdoc/ParamDescriptionInheritedMismatched.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | class Base:
def method(self, foo, bar):
"""
:param foo: description
:param bar: description
"""
pass
class Sub(Base):
def met<the_ref>hod(self, param1, param2):
pass
| 17.230769 | 46 | 0.526786 | 26 | 224 | 4.5 | 0.653846 | 0.119658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 0.357143 | 224 | 12 | 47 | 18.666667 | 0.798611 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.333333 | 0 | null | null | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
4063fcc0f16bb80f3c92e18aac1cf010f67ce424 | 809 | py | Python | fairy/tail/ft_array.py | qilutong/fairy | e4d40c5d3d6d431875a49c4f708ee278ab795901 | [
"MIT"
] | null | null | null | fairy/tail/ft_array.py | qilutong/fairy | e4d40c5d3d6d431875a49c4f708ee278ab795901 | [
"MIT"
] | null | null | null | fairy/tail/ft_array.py | qilutong/fairy | e4d40c5d3d6d431875a49c4f708ee278ab795901 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@FileName : ft_array.py
@Description : 数组相关操作
@Author : 齐鲁桐
@Email : qilutong@yahoo.com
@Time : 2019-05-07 17:54
@Modify : None
"""
from __future__ import absolute_import, division, print_function
import numpy as np
from .ft_list import list_insert
def array_merg... | 21.289474 | 64 | 0.642769 | 107 | 809 | 4.700935 | 0.53271 | 0.089463 | 0.05169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02589 | 0.236094 | 809 | 37 | 65 | 21.864865 | 0.788026 | 0.489493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.777778 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
408a1a0b6d7d1afb61026d1f8e8de5d7ea2349fe | 1,559 | py | Python | functions.py | isaiah2286-cmis/isaiah2286-cmis-cs2 | ecb0fb85750eaa92cb7a50602ed6d7cc4db5ed3f | [
"CC0-1.0"
] | null | null | null | functions.py | isaiah2286-cmis/isaiah2286-cmis-cs2 | ecb0fb85750eaa92cb7a50602ed6d7cc4db5ed3f | [
"CC0-1.0"
] | null | null | null | functions.py | isaiah2286-cmis/isaiah2286-cmis-cs2 | ecb0fb85750eaa92cb7a50602ed6d7cc4db5ed3f | [
"CC0-1.0"
] | null | null | null | import math
def add(a, b):
return a + b
def sub(a, b):
return a - b
def mul(a, b):
return a * b
def div(a ,b):
return float(a) / b
def hours_from_seconds(a):
return a/3600
def area_circle(r):
return math.pi*r**2
def sphere_volume(r):
return (r**3)*math.pi*4/3
def avg_volume(a, b):
return (sphere_volume(a... | 17.91954 | 45 | 0.644003 | 319 | 1,559 | 3.012539 | 0.269592 | 0.1436 | 0.251821 | 0.320499 | 0.040583 | 0.040583 | 0 | 0 | 0 | 0 | 0 | 0.086429 | 0.153945 | 1,559 | 86 | 46 | 18.127907 | 0.642153 | 0 | 0 | 0 | 0 | 0 | 0.033355 | 0 | 0.013514 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.013514 | null | null | 0.297297 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
408dccda23c7d4d7e891d0fa9fba1031dda00209 | 114 | py | Python | examples/test1/new_pdfs.py | zoidy/puq | ed70f113f7c135ee61adeebfc9bd18c541970caf | [
"MIT"
] | 14 | 2015-03-07T21:08:46.000Z | 2021-12-06T09:59:20.000Z | examples/test1/new_pdfs.py | zoidy/puq | ed70f113f7c135ee61adeebfc9bd18c541970caf | [
"MIT"
] | 5 | 2015-03-16T22:06:54.000Z | 2019-08-14T12:18:26.000Z | examples/test1/new_pdfs.py | zoidy/puq | ed70f113f7c135ee61adeebfc9bd18c541970caf | [
"MIT"
] | 9 | 2015-07-09T22:28:56.000Z | 2021-11-02T09:16:44.000Z | from puq import *
v = Parameter('v', 'velocity', mean=11.0, dev=1)
m = Parameter('m', 'mass', mean=105.0, dev=5)
| 22.8 | 48 | 0.614035 | 21 | 114 | 3.333333 | 0.714286 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092784 | 0.149123 | 114 | 4 | 49 | 28.5 | 0.628866 | 0 | 0 | 0 | 0 | 0 | 0.122807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
409d11b8e01fb7637bec5089f9a159279348415c | 10,512 | py | Python | dependencies/georeference maps/pythongis/vector/fileformats/thirdparty/stata_dta/stata_variable.py | karimbahgat/AutoMap | eae52f16b7ce71cb2b4b7ae67cf6e4680ea2194f | [
"MIT"
] | 13 | 2015-04-24T18:42:39.000Z | 2021-01-08T04:09:33.000Z | core/stata_variable.py | arlionn/python-in-stata | 49046a270a5cc3ffdfdd634043277584dad13638 | [
"MIT"
] | 1 | 2022-01-13T02:52:09.000Z | 2022-01-13T02:52:09.000Z | core/stata_variable.py | arlionn/python-in-stata | 49046a270a5cc3ffdfdd634043277584dad13638 | [
"MIT"
] | 8 | 2015-08-28T20:20:14.000Z | 2021-01-08T04:09:38.000Z | import collections
__version__ = "0.1.0"
class StataVarVals():
"""A class for intermediate values when calculating with data
variables within a Dta object or in Stata. Variables themselves
are referenced through an instance of StataVariable.
This class is meant for internal use.
Exam... | 37.014085 | 78 | 0.58809 | 1,342 | 10,512 | 4.457526 | 0.125931 | 0.135406 | 0.034102 | 0.055166 | 0.690572 | 0.671682 | 0.655634 | 0.60331 | 0.60331 | 0.60331 | 0 | 0.001372 | 0.306792 | 10,512 | 283 | 79 | 37.144876 | 0.819542 | 0.117009 | 0 | 0.331633 | 0 | 0 | 0.007103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.239796 | false | 0 | 0.005102 | 0.056122 | 0.566327 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
40c46ef34430d625c6483594f6529849ef109d11 | 378 | py | Python | basic/App/test.py | ductnn/Python-tu | 8d0c16a7986cf573dbf7324375967a6bce45a7a9 | [
"MIT"
] | 1 | 2020-05-18T11:40:40.000Z | 2020-05-18T11:40:40.000Z | basic/App/test.py | ductnn/Python-tu | 8d0c16a7986cf573dbf7324375967a6bce45a7a9 | [
"MIT"
] | null | null | null | basic/App/test.py | ductnn/Python-tu | 8d0c16a7986cf573dbf7324375967a6bce45a7a9 | [
"MIT"
] | null | null | null | from abc import ABC,abstractmethod
class PersonAbs(ABC):
"""docstring for PersonAbs"""
name = None
age = 0
def getName(self):
print(self.name)
def getAge(self):
print(self.age)
@abstractmethod
def getFull(self):
pass
class Person(PersonAbs):
name = 'ductn'
age = 21
def getFull(self):
... | 16.434783 | 34 | 0.650794 | 48 | 378 | 5.125 | 0.458333 | 0.105691 | 0.105691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010135 | 0.216931 | 378 | 22 | 35 | 17.181818 | 0.820946 | 0.060847 | 0 | 0.111111 | 0 | 0 | 0.014327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.055556 | 0.055556 | 0 | 0.611111 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
40c5a24d726b595951786169508113aba84d0fc6 | 353 | py | Python | src/Model/Rook.py | anthonyf996/ChessApp | 614f72bc641793681fd5ad7040d6a4c407c9ae9e | [
"MIT"
] | null | null | null | src/Model/Rook.py | anthonyf996/ChessApp | 614f72bc641793681fd5ad7040d6a4c407c9ae9e | [
"MIT"
] | null | null | null | src/Model/Rook.py | anthonyf996/ChessApp | 614f72bc641793681fd5ad7040d6a4c407c9ae9e | [
"MIT"
] | null | null | null | from Piece import Piece
from PieceType import PieceType
class Rook( Piece ):
def __init__(self, color, stepLimit = 8):
super().__init__( color, stepLimit )
self.movementVectors = { ( 1, 0 ), ( 0, 1 ), ( -1, 0 ), ( 0, -1 ) }
def __str__(self):
return "%s%s" % ( self.getColorStr(), "R" )
def getType(... | 25.214286 | 71 | 0.614731 | 46 | 353 | 4.456522 | 0.478261 | 0.136585 | 0.029268 | 0.039024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032967 | 0.226629 | 353 | 13 | 72 | 27.153846 | 0.717949 | 0 | 0 | 0 | 0 | 0 | 0.014164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.2 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
40c8f5d51e556ac5d44a9a24df34edb1680c88a9 | 84 | py | Python | data.py | python-programmer/flask-graphql-postgresql-jwt-todo | 6f54ca86195d8b9351ac682636e194ce1a8efe13 | [
"MIT"
] | 1 | 2022-01-22T12:11:05.000Z | 2022-01-22T12:11:05.000Z | data.py | python-programmer/flask-graphql-postgresql-jwt-todo | 6f54ca86195d8b9351ac682636e194ce1a8efe13 | [
"MIT"
] | null | null | null | data.py | python-programmer/flask-graphql-postgresql-jwt-todo | 6f54ca86195d8b9351ac682636e194ce1a8efe13 | [
"MIT"
] | null | null | null | from models import (
session, Base
)
# create tables
Base.metadata.create_all() | 14 | 26 | 0.72619 | 11 | 84 | 5.454545 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 84 | 6 | 26 | 14 | 0.869565 | 0.154762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dc0dac32b38b3c9e5e6a0aa78ef3c1ed8699bf76 | 315 | py | Python | range_estimator/basic_hierarchy.py | dp-cont/dp-cont | 193bea06c1861645f16bd080e45eb0f282e8469a | [
"MIT"
] | 3 | 2021-06-28T20:49:19.000Z | 2022-03-24T02:01:24.000Z | range_estimator/basic_hierarchy.py | dp-cont/dp-cont | 193bea06c1861645f16bd080e45eb0f282e8469a | [
"MIT"
] | null | null | null | range_estimator/basic_hierarchy.py | dp-cont/dp-cont | 193bea06c1861645f16bd080e45eb0f282e8469a | [
"MIT"
] | 1 | 2021-02-03T22:00:50.000Z | 2021-02-03T22:00:50.000Z | from range_estimator.hierarchy import Hierarchy
class BasicHierarchy(Hierarchy):
def __init__(self, users, args):
Hierarchy.__init__(self, users, args)
self.fanout = 2
self.update_fanout()
def est_precise(self, ell):
count = self.est_hierarchy(ell)
return count
| 21 | 47 | 0.666667 | 37 | 315 | 5.351351 | 0.540541 | 0.080808 | 0.131313 | 0.171717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004219 | 0.247619 | 315 | 14 | 48 | 22.5 | 0.831224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
905967e3b4b87c5a49d2fc8282c032ddc91add69 | 34,125 | py | Python | pythonclient/karmen/karmen_pb2.py | jrcichra/karmen | 4d25d635509ebffa295b085ae7fa3932e3a36344 | [
"MIT"
] | 3 | 2020-03-02T13:09:07.000Z | 2021-12-27T16:27:23.000Z | pythonclient/karmen/karmen_pb2.py | jrcichra/karmen | 4d25d635509ebffa295b085ae7fa3932e3a36344 | [
"MIT"
] | 5 | 2020-03-02T04:53:54.000Z | 2021-12-17T23:57:12.000Z | pythonclient/karmen/karmen_pb2.py | jrcichra/karmen | 4d25d635509ebffa295b085ae7fa3932e3a36344 | [
"MIT"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: karmen.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflec... | 36.536403 | 2,858 | 0.739927 | 4,121 | 34,125 | 5.842514 | 0.060908 | 0.045521 | 0.036051 | 0.033227 | 0.724758 | 0.665241 | 0.651701 | 0.643851 | 0.626698 | 0.608921 | 0 | 0.038536 | 0.127795 | 34,125 | 933 | 2,859 | 36.575563 | 0.770394 | 0.034813 | 0 | 0.678781 | 1 | 0.001172 | 0.179493 | 0.13067 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.007034 | 0 | 0.007034 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.