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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c0dc71d40fe6793107f420d3ed2c921caf0414ee | 708 | py | Python | core/topology/constraint/any.py | xUndero/noc | 9fb34627721149fcf7064860bd63887e38849131 | [
"BSD-3-Clause"
] | null | null | null | core/topology/constraint/any.py | xUndero/noc | 9fb34627721149fcf7064860bd63887e38849131 | [
"BSD-3-Clause"
] | null | null | null | core/topology/constraint/any.py | xUndero/noc | 9fb34627721149fcf7064860bd63887e38849131 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# ----------------------------------------------------------------------
# AnyConstraint
# ----------------------------------------------------------------------
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------------... | 25.285714 | 72 | 0.45904 | 51 | 708 | 6.117647 | 0.647059 | 0.070513 | 0.083333 | 0.173077 | 0.333333 | 0.333333 | 0.333333 | 0 | 0 | 0 | 0 | 0.015385 | 0.173729 | 708 | 27 | 73 | 26.222222 | 0.517949 | 0.612994 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0.285714 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
c0e6a420987cdd65242cca82ad135a8af522d643 | 536 | py | Python | LakshmiErrors.py | jakenjarvis/Lakshmi | de805f7488c1a6b3a4e0d3804be7ecd6c814b446 | [
"Apache-2.0"
] | 1 | 2020-08-24T01:31:20.000Z | 2020-08-24T01:31:20.000Z | LakshmiErrors.py | jakenjarvis/Lakshmi | de805f7488c1a6b3a4e0d3804be7ecd6c814b446 | [
"Apache-2.0"
] | null | null | null | LakshmiErrors.py | jakenjarvis/Lakshmi | de805f7488c1a6b3a4e0d3804be7ecd6c814b446 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from discord.ext.commands.errors import CommandError
class PermissionNotFoundException(Exception):
pass
class ArgumentOutOfRangeException(CommandError):
pass
class SubcommandNotFoundException(CommandError):
pass
class UnsupportedSitesException(... | 21.44 | 59 | 0.759328 | 42 | 536 | 9.690476 | 0.571429 | 0.132678 | 0.257985 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004494 | 0.169776 | 536 | 24 | 60 | 22.333333 | 0.910112 | 0.080224 | 0 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.466667 | 0.066667 | 0 | 0.533333 | 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 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
c0ee7d130a218d7c15ca1fedb0b3e75ccb1cdad6 | 558 | py | Python | tests/test_242.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | tests/test_242.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | tests/test_242.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import pytest
"""
Test 242. Valid Anagram
"""
@pytest.fixture(scope="session")
def init_variables_242():
from src.leetcode_242_valid_anagram import Solution
solution = Solution()
def _init_variables_242():
return solution
yield _init_variables_242
class TestClass24... | 19.928571 | 67 | 0.718638 | 71 | 558 | 5.323944 | 0.464789 | 0.240741 | 0.296296 | 0.100529 | 0.137566 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069717 | 0.177419 | 558 | 27 | 68 | 20.666667 | 0.753813 | 0.035842 | 0 | 0 | 0 | 0 | 0.05336 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.307692 | false | 0 | 0.153846 | 0.076923 | 0.615385 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
8d0d0a6d9853d79e0efa2eb755b8ebc3b2a95b38 | 181 | py | Python | python3/koans/test.py | MichelML/python_koans_solution | 941e69d3b3f835bb3108222cb41bf7092920ea07 | [
"MIT"
] | null | null | null | python3/koans/test.py | MichelML/python_koans_solution | 941e69d3b3f835bb3108222cb41bf7092920ea07 | [
"MIT"
] | null | null | null | python3/koans/test.py | MichelML/python_koans_solution | 941e69d3b3f835bb3108222cb41bf7092920ea07 | [
"MIT"
] | null | null | null | stages = iter(['alpha','beta','gamma'])
try:
next(stages)
next(stages)
next(stages)
next(stages)
except StopIteration as ex:
err_msg = 'Ran out of iterations'
| 16.454545 | 39 | 0.635359 | 24 | 181 | 4.75 | 0.708333 | 0.350877 | 0.368421 | 0.526316 | 0.350877 | 0.350877 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220994 | 181 | 10 | 40 | 18.1 | 0.808511 | 0 | 0 | 0.5 | 0 | 0 | 0.194444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
23a4e912e859766af2b13f48d019a8c3e99aabf8 | 23,095 | py | Python | tests/test_grades.py | sglavoie/uol-grades-calculator | 54f812bbcedb48adf9368271ebba491759cf4e40 | [
"MIT"
] | 4 | 2021-03-01T02:14:18.000Z | 2022-01-01T01:52:58.000Z | tests/test_grades.py | sglavoie/uol-grades-calculator | 54f812bbcedb48adf9368271ebba491759cf4e40 | [
"MIT"
] | 28 | 2021-02-20T00:19:35.000Z | 2022-01-30T17:25:25.000Z | tests/test_grades.py | sglavoie/uol-grades-calculator | 54f812bbcedb48adf9368271ebba491759cf4e40 | [
"MIT"
] | 1 | 2020-10-08T17:47:46.000Z | 2020-10-08T17:47:46.000Z | """
Test grades.py
"""
# Standard library imports
from unittest.mock import patch
# Third-party library imports
import pytest
class TestDataIsRetrievedCorrectly:
@staticmethod
def test_count_finished_modules(local_grades):
with patch.dict(
local_grades.data,
{
... | 33.76462 | 79 | 0.446504 | 2,250 | 23,095 | 4.362667 | 0.093778 | 0.115424 | 0.061125 | 0.034841 | 0.833231 | 0.80379 | 0.766096 | 0.694071 | 0.679707 | 0.663407 | 0 | 0.064611 | 0.425677 | 23,095 | 683 | 80 | 33.814056 | 0.675437 | 0.0559 | 0 | 0.650394 | 0 | 0 | 0.232848 | 0.001195 | 0 | 0 | 0 | 0 | 0.03937 | 1 | 0.025197 | false | 0 | 0.00315 | 0 | 0.031496 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
23af06680da576de052747649b0e4930be1a9fda | 533 | py | Python | taotao-cloud-python/taotao-cloud-oldboy/day77-cmdb/cmdb/AutoCmdb/repository/admin.py | shuigedeng/taotao-cloud-paren | 3d281b919490f7cbee4520211e2eee5da7387564 | [
"Apache-2.0"
] | 47 | 2021-04-13T10:32:13.000Z | 2022-03-31T10:30:30.000Z | taotao-cloud-python/taotao-cloud-oldboy/day77-cmdb/cmdb/AutoCmdb/repository/admin.py | shuigedeng/taotao-cloud-paren | 3d281b919490f7cbee4520211e2eee5da7387564 | [
"Apache-2.0"
] | 1 | 2021-11-01T07:41:04.000Z | 2021-11-01T07:41:10.000Z | taotao-cloud-python/taotao-cloud-oldboy/day77-cmdb/cmdb/AutoCmdb/repository/admin.py | shuigedeng/taotao-cloud-paren | 3d281b919490f7cbee4520211e2eee5da7387564 | [
"Apache-2.0"
] | 21 | 2021-04-13T10:32:17.000Z | 2022-03-26T07:43:22.000Z | from django.contrib import admin
from repository import models
admin.site.register(models.Asset)
admin.site.register(models.Server)
admin.site.register(models.NetworkDevice)
admin.site.register(models.UserProfile)
admin.site.register(models.UserGroup)
admin.site.register(models.BusinessUnit)
admin.site.register(models.... | 35.533333 | 41 | 0.838649 | 74 | 533 | 6.040541 | 0.297297 | 0.261745 | 0.494407 | 0.668904 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037523 | 533 | 15 | 42 | 35.533333 | 0.871345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.133333 | 0 | 0.133333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
23cfa67c204b6ff1d8fbe9c8265cdeeffe15bcb0 | 234,031 | py | Python | resources.py | alexnaoki/hidroweb-downloader-plugin | 6609ba025bef6c088a072c20f026d0610769c677 | [
"MIT"
] | 1 | 2021-03-28T01:55:06.000Z | 2021-03-28T01:55:06.000Z | resources.py | alexnaoki/hidroweb-downloader-plugin | 6609ba025bef6c088a072c20f026d0610769c677 | [
"MIT"
] | null | null | null | resources.py | alexnaoki/hidroweb-downloader-plugin | 6609ba025bef6c088a072c20f026d0610769c677 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.11.2)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\xdb\xeb\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x01\xce\x... | 65.298828 | 129 | 0.72725 | 56,650 | 234,031 | 3.003725 | 0.005419 | 0.009697 | 0.014492 | 0.019252 | 0.016502 | 0.011301 | 0.010696 | 0.009955 | 0.008263 | 0.007945 | 0 | 0.303989 | 0.015686 | 234,031 | 3,583 | 130 | 65.317053 | 0.434685 | 0.000649 | 0 | 0.00785 | 0 | 0.989627 | 0.000004 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0.000561 | false | 0 | 0.00028 | 0 | 0.000841 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
23e235a8c32268af6f290dc36d9ca22a543ba93b | 101 | py | Python | __main__.py | JaiSh12345/SnakesVsLadder | f29b799523e8987e04ba52615dfd57f4b7fa6058 | [
"MIT"
] | 1 | 2019-11-01T15:58:35.000Z | 2019-11-01T15:58:35.000Z | __main__.py | JaiSh12345/SnakesVsLadder | f29b799523e8987e04ba52615dfd57f4b7fa6058 | [
"MIT"
] | 1 | 2019-11-01T15:23:37.000Z | 2019-11-12T03:37:05.000Z | __main__.py | JaiSh12345/SnakesVsLadder | f29b799523e8987e04ba52615dfd57f4b7fa6058 | [
"MIT"
] | null | null | null | '''
Module that is the entry point into the game
'''
from SnakesVsLadder.src import game
game.main() | 16.833333 | 44 | 0.742574 | 16 | 101 | 4.6875 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158416 | 101 | 6 | 45 | 16.833333 | 0.882353 | 0.435644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
23e2f555ecf2c0e79ca4e20e6bd6f86c1c266d43 | 698 | py | Python | Exam6-practice/magicNumbers.py | nikolayvutov/Python | 55163496dac452a7110b7f76edc6894ee195f1fe | [
"MIT"
] | null | null | null | Exam6-practice/magicNumbers.py | nikolayvutov/Python | 55163496dac452a7110b7f76edc6894ee195f1fe | [
"MIT"
] | null | null | null | Exam6-practice/magicNumbers.py | nikolayvutov/Python | 55163496dac452a7110b7f76edc6894ee195f1fe | [
"MIT"
] | null | null | null | n = int(input())
for i in range(1, 10):
if n % i != 0:
continue
for j in range(1, 10):
if n % j != 0:
continue
for k in range(1, 10):
if n % k != 0:
continue
for m in range(1, 10):
if n % m != 0:
con... | 31.727273 | 89 | 0.295129 | 92 | 698 | 2.23913 | 0.26087 | 0.203884 | 0.23301 | 0.291262 | 0.533981 | 0.533981 | 0.223301 | 0.223301 | 0.223301 | 0 | 0 | 0.10101 | 0.574499 | 698 | 22 | 89 | 31.727273 | 0.592593 | 0 | 0 | 0.380952 | 0 | 0 | 0.027182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.047619 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
23f9dcbf41eb69a417ef67dd9a0ce7e0f16ee0f0 | 155 | py | Python | src/utils.py | derrod/twl.py | 8fd6dce19028e7beb9bc7f2d4c28f3c73e36e810 | [
"MIT"
] | 5 | 2020-05-17T13:36:22.000Z | 2022-03-26T22:34:14.000Z | src/utils.py | derrod/twl.py | 8fd6dce19028e7beb9bc7f2d4c28f3c73e36e810 | [
"MIT"
] | null | null | null | src/utils.py | derrod/twl.py | 8fd6dce19028e7beb9bc7f2d4c28f3c73e36e810 | [
"MIT"
] | 1 | 2022-02-03T15:55:22.000Z | 2022-02-03T15:55:22.000Z |
def clean_path(path):
"""
Removes illegal characters from path (Windows only)
"""
return ''.join(i for i in path if i not in '<>:"/\|?*')
| 22.142857 | 59 | 0.574194 | 22 | 155 | 4 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251613 | 155 | 6 | 60 | 25.833333 | 0.758621 | 0.329032 | 0 | 0 | 0 | 0 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
9b1a4b32c2fef60084e268ce9ac79138776cef1e | 1,412 | py | Python | tinyrouter/helpers.py | tcantalice/tinyrouter | 1dcefc6c29aabede8a569c024d103c568ae2069b | [
"MIT"
] | null | null | null | tinyrouter/helpers.py | tcantalice/tinyrouter | 1dcefc6c29aabede8a569c024d103c568ae2069b | [
"MIT"
] | null | null | null | tinyrouter/helpers.py | tcantalice/tinyrouter | 1dcefc6c29aabede8a569c024d103c568ae2069b | [
"MIT"
] | null | null | null | from .router import Route
def __route_builder(endpoint, rule, view, *methods):
# TODO: Make documentation
return Route(endpoint, rule, view, *methods)
def route_get(endpoint, rule, view):
"""
Generate route for GET method HTTP
:param endpoint:
:param rule:
:param view:
:return R... | 19.887324 | 58 | 0.615439 | 166 | 1,412 | 5.114458 | 0.216867 | 0.141343 | 0.188457 | 0.141343 | 0.588928 | 0.555948 | 0.405183 | 0.405183 | 0.405183 | 0.405183 | 0 | 0 | 0.269122 | 1,412 | 70 | 59 | 20.171429 | 0.822674 | 0.346317 | 0 | 0 | 0 | 0 | 0.023968 | 0 | 0 | 0 | 0 | 0.014286 | 0 | 1 | 0.352941 | false | 0 | 0.058824 | 0.058824 | 0.764706 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
f1ba4dfd0299ba5aa376cf27f88c6c56221b0e4b | 110,932 | py | Python | Ch15/s15_16/ks15_16_rc.py | Deteriorator/PyQt5-Guide | d34a9659894d279b17369528359844a4ae4aeb20 | [
"CC0-1.0"
] | 1 | 2022-02-23T09:58:11.000Z | 2022-02-23T09:58:11.000Z | Ch15/s15_16/ks15_16_rc.py | Deteriorator/PyQt5-Guide | d34a9659894d279b17369528359844a4ae4aeb20 | [
"CC0-1.0"
] | null | null | null | Ch15/s15_16/ks15_16_rc.py | Deteriorator/PyQt5-Guide | d34a9659894d279b17369528359844a4ae4aeb20 | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.9.7)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\x01\x30\
\x00\
\x00\x04\x36\x78\x9c\xa5\x53\x31\x6e\xc3\x30\x0c\x3c\xd9\x01\x32\
\x08\x68\xfc\x8... | 64.308406 | 103 | 0.72713 | 26,803 | 110,932 | 3.008021 | 0.011417 | 0.009228 | 0.008707 | 0.006549 | 0.015144 | 0.014214 | 0.01316 | 0.012378 | 0.012378 | 0.011709 | 0 | 0.308145 | 0.016298 | 110,932 | 1,724 | 104 | 64.345708 | 0.430684 | 0.001361 | 0 | 0.008782 | 0 | 0.974239 | 0.000036 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0.001171 | false | 0 | 0.000585 | 0 | 0.001756 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f1c2ae4747db713075abc4deb5aaed4cd0bb9c30 | 134 | py | Python | masque/__init__.py | dfdx/masque | d779bd3a4001436148cf6668638d9a1bf64254bb | [
"MIT"
] | 3 | 2015-11-29T06:25:13.000Z | 2020-02-13T20:12:37.000Z | masque/__init__.py | dfdx/masque | d779bd3a4001436148cf6668638d9a1bf64254bb | [
"MIT"
] | null | null | null | masque/__init__.py | dfdx/masque | d779bd3a4001436148cf6668638d9a1bf64254bb | [
"MIT"
] | 1 | 2019-07-19T17:29:43.000Z | 2019-07-19T17:29:43.000Z |
import logging
logging.basicConfig(format='%(asctime)s %(name)s %(levelname)s: %(message)s',
level=logging.INFO) | 26.8 | 77 | 0.626866 | 16 | 134 | 5.25 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208955 | 134 | 5 | 78 | 26.8 | 0.792453 | 0 | 0 | 0 | 0 | 0 | 0.350746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
f1c8b853e165f60090f791b0a73d9d79d215c17b | 92 | py | Python | benchmarks/boxy/apps.py | voldemortX/benchmarks_website | 5b5f534331025cdcb9719a9b4b37550cfe03408d | [
"MIT"
] | 7 | 2020-03-16T09:43:02.000Z | 2021-11-17T09:57:34.000Z | benchmarks/boxy/apps.py | voldemortX/benchmarks_website | 5b5f534331025cdcb9719a9b4b37550cfe03408d | [
"MIT"
] | 4 | 2019-08-09T04:52:55.000Z | 2022-03-08T23:45:17.000Z | benchmarks/boxy/apps.py | voldemortX/benchmarks_website | 5b5f534331025cdcb9719a9b4b37550cfe03408d | [
"MIT"
] | 7 | 2019-12-04T11:37:46.000Z | 2021-11-18T02:19:39.000Z | from django.apps import AppConfig
class BenchmarksAppConfig(AppConfig):
name = 'boxy'
| 15.333333 | 37 | 0.76087 | 10 | 92 | 7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163043 | 92 | 5 | 38 | 18.4 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f1cf0c3c3f23b10de911b09f1b03f2e3b6e14f0b | 122 | py | Python | src/py_dss_interface/models/Example/__init__.py | davilamds/py_dss_interface | a447c97787aeac962381db88dd622ccb235eef4b | [
"MIT"
] | 8 | 2020-08-15T12:56:03.000Z | 2022-01-04T15:51:14.000Z | src/py_dss_interface/models/Example/__init__.py | rodolfoplondero/py_dss_interface | cb6771b34ed322a5df7ef1cc194611e794f26441 | [
"MIT"
] | 24 | 2021-04-24T18:33:19.000Z | 2021-11-13T14:59:54.000Z | src/py_dss_interface/models/Example/__init__.py | rodolfoplondero/py_dss_interface | cb6771b34ed322a5df7ef1cc194611e794f26441 | [
"MIT"
] | 7 | 2020-08-15T12:56:04.000Z | 2021-10-04T16:14:30.000Z | # -*- encoding: utf-8 -*-
"""
Created by Ênio Viana at 20/06/2021 at 15:07:27
Project: py_dss_interface [jun, 2021]
"""
| 20.333333 | 48 | 0.639344 | 21 | 122 | 3.619048 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188119 | 0.172131 | 122 | 5 | 49 | 24.4 | 0.564356 | 0.901639 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f1d1599f26e449d04856a7475216653f3eebd62d | 290 | py | Python | packages/watchmen-model/src/watchmen_model/gui/favorite.py | Indexical-Metrics-Measure-Advisory/watchmen | c54ec54d9f91034a38e51fd339ba66453d2c7a6d | [
"MIT"
] | null | null | null | packages/watchmen-model/src/watchmen_model/gui/favorite.py | Indexical-Metrics-Measure-Advisory/watchmen | c54ec54d9f91034a38e51fd339ba66453d2c7a6d | [
"MIT"
] | null | null | null | packages/watchmen-model/src/watchmen_model/gui/favorite.py | Indexical-Metrics-Measure-Advisory/watchmen | c54ec54d9f91034a38e51fd339ba66453d2c7a6d | [
"MIT"
] | null | null | null | from typing import List
from pydantic import BaseModel
from watchmen_model.common import ConnectedSpaceId, DashboardId, LastVisit, UserBasedTuple
class Favorite(UserBasedTuple, LastVisit, BaseModel):
connectedSpaceIds: List[ConnectedSpaceId] = []
dashboardIds: List[DashboardId] = []
| 26.363636 | 90 | 0.813793 | 28 | 290 | 8.392857 | 0.607143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113793 | 290 | 10 | 91 | 29 | 0.914397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f1ee4808e2c92b18e7aee2e7bb162573ccf71223 | 115 | py | Python | genera_json/danios.py | parismend/Temblor | b7f78a9d8f2aa56150fe510b6e65f86623030f77 | [
"MIT",
"Unlicense"
] | 6 | 2017-09-21T21:05:43.000Z | 2017-09-25T18:36:50.000Z | genera_json/danios.py | parismend/Temblor | b7f78a9d8f2aa56150fe510b6e65f86623030f77 | [
"MIT",
"Unlicense"
] | 18 | 2017-09-21T04:28:57.000Z | 2021-04-30T20:37:11.000Z | genera_json/danios.py | parismend/Temblor | b7f78a9d8f2aa56150fe510b6e65f86623030f77 | [
"MIT",
"Unlicense"
] | 13 | 2017-09-20T21:30:59.000Z | 2020-05-15T06:56:29.000Z | import pandas as pd
import json
#Carga CSV (desde path) como DataFrame
df = pd.DataFrame.from_csv('../datos.csv')
| 19.166667 | 42 | 0.73913 | 19 | 115 | 4.421053 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13913 | 115 | 5 | 43 | 23 | 0.848485 | 0.321739 | 0 | 0 | 0 | 0 | 0.155844 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
7b0636f58d487e4dc359b1d14b39fe5b127d3ff1 | 94 | py | Python | schedule/models/__init__.py | JaviMiot/employeeSchedule | 0ace8086ba8aeb1426f0252558b307e0e03bc7d8 | [
"MIT"
] | null | null | null | schedule/models/__init__.py | JaviMiot/employeeSchedule | 0ace8086ba8aeb1426f0252558b307e0e03bc7d8 | [
"MIT"
] | null | null | null | schedule/models/__init__.py | JaviMiot/employeeSchedule | 0ace8086ba8aeb1426f0252558b307e0e03bc7d8 | [
"MIT"
] | null | null | null | from .dayOfWork import DayOfWork
from .schedule import Schedule
from .employee import Employee | 31.333333 | 32 | 0.851064 | 12 | 94 | 6.666667 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117021 | 94 | 3 | 33 | 31.333333 | 0.963855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
9e37f7a279bf44b7b8f93f5ad30359024e8ab7d7 | 13 | py | Python | login.py | he-zhen/henzhen | 3687e2d05272744245d18bbedd35157d473fcf24 | [
"MIT"
] | null | null | null | login.py | he-zhen/henzhen | 3687e2d05272744245d18bbedd35157d473fcf24 | [
"MIT"
] | null | null | null | login.py | he-zhen/henzhen | 3687e2d05272744245d18bbedd35157d473fcf24 | [
"MIT"
] | null | null | null | num=1
num=22
| 4.333333 | 6 | 0.692308 | 4 | 13 | 2.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 0.153846 | 13 | 2 | 7 | 6.5 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9e5cb7f433c98fd0a3826a2c155f428d118020c1 | 226 | py | Python | src/spaceone/inventory/model/compute_instance/data/hardware.py | spaceone-dev/plugin-oracle-cloud-service-inven-collector | 555dac75b69ebc9ea0f778d69e81407a88be1853 | [
"Apache-2.0"
] | 2 | 2021-02-22T07:08:17.000Z | 2021-04-19T10:16:28.000Z | src/spaceone/inventory/model/compute_instance/data/hardware.py | spaceone-dev/plugin-oracle-cloud-service-inven-collector | 555dac75b69ebc9ea0f778d69e81407a88be1853 | [
"Apache-2.0"
] | null | null | null | src/spaceone/inventory/model/compute_instance/data/hardware.py | spaceone-dev/plugin-oracle-cloud-service-inven-collector | 555dac75b69ebc9ea0f778d69e81407a88be1853 | [
"Apache-2.0"
] | 4 | 2021-02-08T02:21:57.000Z | 2021-06-25T02:28:35.000Z | from schematics import Model
from schematics.types import StringType, IntType, FloatType, ListType
class HardWare(Model):
core = IntType(default=0)
memory = FloatType(default=0.0)
cpu_model = ListType(StringType) | 28.25 | 69 | 0.761062 | 28 | 226 | 6.107143 | 0.571429 | 0.163743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015707 | 0.154867 | 226 | 8 | 70 | 28.25 | 0.879581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
9e5d83088239902989d61d353521e8782d70c7cf | 74 | py | Python | 00.Python/[udemy]numpy/basic.py | LenKIM/Show-me-the-data-science | ce3bbf9d094574ce57e8d04bd63074b146e91c4f | [
"MIT"
] | 2 | 2018-12-17T06:50:51.000Z | 2020-03-12T00:39:38.000Z | 00.Python/[udemy]numpy/basic.py | LenKIM/Show-me-the-data-science | ce3bbf9d094574ce57e8d04bd63074b146e91c4f | [
"MIT"
] | null | null | null | 00.Python/[udemy]numpy/basic.py | LenKIM/Show-me-the-data-science | ce3bbf9d094574ce57e8d04bd63074b146e91c4f | [
"MIT"
] | 1 | 2019-11-16T02:43:01.000Z | 2019-11-16T02:43:01.000Z | import numpy as np
a = np.arange(15).reshape(3,5)
print(a)
print(a.shape) | 14.8 | 30 | 0.702703 | 16 | 74 | 3.25 | 0.75 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061538 | 0.121622 | 74 | 5 | 31 | 14.8 | 0.738462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
9e5e560886d7a2d6b20bb56a0910b7d907dce13e | 168 | py | Python | sciquence/shapelets/__init__.py | krzjoa/sciquence | 6a5f758c757200fffeb0fdc9206462f1f89e2444 | [
"MIT"
] | 8 | 2017-10-23T17:59:35.000Z | 2021-05-10T03:01:30.000Z | sciquence/shapelets/__init__.py | krzjoa/sciquence | 6a5f758c757200fffeb0fdc9206462f1f89e2444 | [
"MIT"
] | 2 | 2019-08-25T19:24:12.000Z | 2019-09-05T12:16:10.000Z | sciquence/shapelets/__init__.py | krzjoa/sciquence | 6a5f758c757200fffeb0fdc9206462f1f89e2444 | [
"MIT"
] | 2 | 2018-02-28T09:47:53.000Z | 2019-08-25T19:24:16.000Z | from shapelet_transformer import ShapeletProcessor
from shapelet_classifier import ShapeletClassifier
__all__ = [
'ShapeletClassifier',
'ShapeletTransformer'
] | 24 | 50 | 0.821429 | 13 | 168 | 10.153846 | 0.692308 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130952 | 168 | 7 | 51 | 24 | 0.90411 | 0 | 0 | 0 | 0 | 0 | 0.218935 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
9e7fa19bfc094b8209a53070af082d84fd931b0e | 722 | py | Python | amadeus/namespaces/_reference_data.py | minjikarin/amadeus-python | 14a004912ee8c36ee4fd79651ea1b23afe6b2a6e | [
"MIT"
] | 125 | 2018-04-09T07:27:24.000Z | 2022-02-22T11:45:20.000Z | amadeus/namespaces/_reference_data.py | minjikarin/amadeus-python | 14a004912ee8c36ee4fd79651ea1b23afe6b2a6e | [
"MIT"
] | 58 | 2018-03-29T14:58:01.000Z | 2022-03-17T10:18:07.000Z | amadeus/namespaces/_reference_data.py | minjikarin/amadeus-python | 14a004912ee8c36ee4fd79651ea1b23afe6b2a6e | [
"MIT"
] | 58 | 2018-04-06T10:56:20.000Z | 2022-03-04T01:23:24.000Z | from amadeus.client.decorator import Decorator
from amadeus.reference_data._urls import Urls
from amadeus.reference_data._location import Location
from amadeus.reference_data._locations import Locations
from amadeus.reference_data._airlines import Airlines
from amadeus.reference_data._recommended_locations import Recom... | 38 | 78 | 0.782548 | 82 | 722 | 6.621951 | 0.256098 | 0.121547 | 0.184162 | 0.220994 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15097 | 722 | 18 | 79 | 40.111111 | 0.885808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.4 | 0.066667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
9ebcf55626db199decdf16f17e6136e77006647d | 1,745 | py | Python | examples/00000_utils.py | numpde/tcga | a7df66530a0249b82788f6367b9642b68eaf6ec5 | [
"MIT"
] | 2 | 2020-06-30T13:15:14.000Z | 2021-08-04T07:46:02.000Z | examples/00000_utils.py | numpde/tcga | a7df66530a0249b82788f6367b9642b68eaf6ec5 | [
"MIT"
] | null | null | null | examples/00000_utils.py | numpde/tcga | a7df66530a0249b82788f6367b9642b68eaf6ec5 | [
"MIT"
] | null | null | null | import io
from pathlib import Path
from tcga.utils import unlist1
# Returns the object from a list
# iff the list is a singleton
assert 43 == unlist1([43])
# An iterable will be consumed:
assert 36 == unlist1((x ** 2) for x in [6])
# These fail with a ValueError:
# unlist1([])
# unlist1([1, 2])
from tcga.utils import... | 26.439394 | 59 | 0.707163 | 280 | 1,745 | 4.342857 | 0.407143 | 0.072368 | 0.117599 | 0.171875 | 0.060855 | 0.027961 | 0.027961 | 0 | 0 | 0 | 0 | 0.03737 | 0.17192 | 1,745 | 65 | 60 | 26.846154 | 0.804152 | 0.434957 | 0 | 0.074074 | 0 | 0 | 0.045929 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 1 | 0.037037 | true | 0 | 0.481481 | 0 | 0.518519 | 0.259259 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
7b4237216c51fff04765218724e81d69f5b1cd49 | 274 | py | Python | custos-client-sdks/custos-python-sdk/custos/clients/utils/utilities.py | hasithajayasundara/airavata-custos | 2d341849dd8ea8a7c2efec6cc73b01dfd495352e | [
"Apache-2.0"
] | 10 | 2019-05-21T22:42:35.000Z | 2022-03-25T15:58:09.000Z | custos-client-sdks/custos-python-sdk/custos/clients/utils/utilities.py | hasithajayasundara/airavata-custos | 2d341849dd8ea8a7c2efec6cc73b01dfd495352e | [
"Apache-2.0"
] | 83 | 2019-02-22T12:22:14.000Z | 2022-03-30T13:42:47.000Z | custos-client-sdks/custos-python-sdk/custos/clients/utils/utilities.py | hasithajayasundara/airavata-custos | 2d341849dd8ea8a7c2efec6cc73b01dfd495352e | [
"Apache-2.0"
] | 20 | 2019-02-22T08:10:05.000Z | 2021-11-07T19:37:04.000Z | from base64 import b64encode
def get_token(custos_settings):
tokenStr = custos_settings.CUSTOS_CLIENT_ID + ":" + custos_settings.CUSTOS_CLIENT_SEC
tokenByte = tokenStr.encode('utf-8')
encodedBytes = b64encode(tokenByte)
return encodedBytes.decode('utf-8')
| 30.444444 | 89 | 0.759124 | 33 | 274 | 6.060606 | 0.606061 | 0.21 | 0.2 | 0.26 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034043 | 0.142336 | 274 | 8 | 90 | 34.25 | 0.817021 | 0 | 0 | 0 | 0 | 0 | 0.040146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7b4a826c24b4eba711741b33822640965656fc64 | 205 | py | Python | circuitpython/lib/adafruit_hid/__init__.py | digixx/MacroPad | 028f381e7e8d686cced65a058d2b3b2e2ef2f13e | [
"MIT"
] | null | null | null | circuitpython/lib/adafruit_hid/__init__.py | digixx/MacroPad | 028f381e7e8d686cced65a058d2b3b2e2ef2f13e | [
"MIT"
] | null | null | null | circuitpython/lib/adafruit_hid/__init__.py | digixx/MacroPad | 028f381e7e8d686cced65a058d2b3b2e2ef2f13e | [
"MIT"
] | null | null | null | """
`adafruit_hid`
====================================================
This driver simulates USB HID devices. Currently keyboard and mouse are implemented.
* Author(s): Scott Shawcroft, Dan Halbert
"""
| 22.777778 | 84 | 0.556098 | 20 | 205 | 5.65 | 0.95 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117073 | 205 | 8 | 85 | 25.625 | 0.624309 | 0.956098 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7b4c00c88715aefa93e271af35c68aa5fe34ce73 | 104 | py | Python | examples/test_project/jsonrpc_service/apps.py | vladcalin/django-gemstone | c099e469e418b005528d0b69940c6418214db414 | [
"MIT"
] | 3 | 2017-11-12T06:03:18.000Z | 2020-11-20T22:35:08.000Z | examples/test_project/jsonrpc_service/apps.py | vladcalin/django-gemstone | c099e469e418b005528d0b69940c6418214db414 | [
"MIT"
] | null | null | null | examples/test_project/jsonrpc_service/apps.py | vladcalin/django-gemstone | c099e469e418b005528d0b69940c6418214db414 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class JsonrpcServiceConfig(AppConfig):
name = 'jsonrpc_service'
| 17.333333 | 38 | 0.788462 | 11 | 104 | 7.363636 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144231 | 104 | 5 | 39 | 20.8 | 0.910112 | 0 | 0 | 0 | 0 | 0 | 0.144231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
7b54b3988e2f0915da17e1eadb192942b08a8626 | 135 | py | Python | reddit2telegram/channels/~inactive/r_hqdesi/app.py | mainyordle/reddit2telegram | 1163e15aed3b6ff0fba65b222d3d9798f644c386 | [
"MIT"
] | 187 | 2016-09-20T09:15:54.000Z | 2022-03-29T12:22:33.000Z | reddit2telegram/channels/~inactive/r_hqdesi/app.py | mainyordle/reddit2telegram | 1163e15aed3b6ff0fba65b222d3d9798f644c386 | [
"MIT"
] | 84 | 2016-09-22T14:25:07.000Z | 2022-03-19T01:26:17.000Z | reddit2telegram/channels/~inactive/r_hqdesi/app.py | mainyordle/reddit2telegram | 1163e15aed3b6ff0fba65b222d3d9798f644c386 | [
"MIT"
] | 172 | 2016-09-21T15:39:39.000Z | 2022-03-16T15:15:58.000Z | #encoding:utf-8
subreddit = 'HQDesi'
t_channel = '@r_HqDesi'
def send_post(submission, r2t):
return r2t.send_simple(submission)
| 15 | 38 | 0.733333 | 19 | 135 | 5 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025862 | 0.140741 | 135 | 8 | 39 | 16.875 | 0.793103 | 0.103704 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
7b56cd1b52571e7ac7f3b2462d1809d73ac26261 | 67 | py | Python | anthemav/__init__.py | tinglis1/anthemav | 7b30f7b878397151eaa3b810662e36221b534531 | [
"BSD-3-Clause"
] | 3 | 2016-09-25T07:22:03.000Z | 2020-01-19T18:06:44.000Z | anthemav/__init__.py | tinglis1/anthemav | 7b30f7b878397151eaa3b810662e36221b534531 | [
"BSD-3-Clause"
] | 1 | 2016-10-09T02:52:17.000Z | 2016-10-09T02:52:17.000Z | anthemav/__init__.py | tinglis1/anthemav | 7b30f7b878397151eaa3b810662e36221b534531 | [
"BSD-3-Clause"
] | null | null | null | '''Empty __init__.py required by Python to scan (for packages?)'''
| 33.5 | 66 | 0.716418 | 10 | 67 | 4.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134328 | 67 | 1 | 67 | 67 | 0.758621 | 0.895522 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7b5c486f14a307edb270853f476eb5176d7c7cca | 290 | py | Python | Part_2_intermediate/mod_2/lesson_5/homework_3/shop/order_element.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | Part_2_intermediate/mod_2/lesson_5/homework_3/shop/order_element.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | Part_2_intermediate/mod_2/lesson_5/homework_3/shop/order_element.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | class OrderElement:
def __init__(self, product, quantity):
self.product = product
self.quantity = quantity
def calculate_price(self):
return self.product.unit_price * self.quantity
def __str__(self):
return f"{self.product} x {self.quantity}"
| 24.166667 | 54 | 0.658621 | 34 | 290 | 5.323529 | 0.411765 | 0.243094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244828 | 290 | 11 | 55 | 26.363636 | 0.826484 | 0 | 0 | 0 | 0 | 0 | 0.110345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0.25 | 0.75 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
7b5e3451b15eb161661e9a32e7186bff4005f47a | 149 | py | Python | sxs/metadata/__init__.py | dongzesun/sxs | 74ac9576032ddc232ff48510ba20f0a9e7116861 | [
"MIT"
] | 8 | 2019-12-08T20:56:59.000Z | 2021-11-01T09:01:39.000Z | sxs/metadata/__init__.py | duetosymmetry/sxs | 1617bf9d1eb06b1aa063db2b310d4e7c3d02e5e5 | [
"MIT"
] | 33 | 2019-12-06T17:40:00.000Z | 2022-03-28T16:53:02.000Z | sxs/metadata/__init__.py | duetosymmetry/sxs | 1617bf9d1eb06b1aa063db2b310d4e7c3d02e5e5 | [
"MIT"
] | 10 | 2019-12-04T17:37:55.000Z | 2022-03-14T07:22:43.000Z | """Interface to SXS metadata files"""
from .metadata import Metadata
formats = {
None: Metadata,
"": Metadata,
"metadata": Metadata,
}
| 14.9 | 37 | 0.644295 | 15 | 149 | 6.4 | 0.6 | 0.5 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221477 | 149 | 9 | 38 | 16.555556 | 0.827586 | 0.208054 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7b70406b8914f70294d9e68254810538a286c7e7 | 84 | py | Python | src/napari_ids/__init__.py | tcotte/napari-IDS | 4572b5f95b70ec7d496a5cec8624cd0f5ba7ed26 | [
"BSD-3-Clause"
] | null | null | null | src/napari_ids/__init__.py | tcotte/napari-IDS | 4572b5f95b70ec7d496a5cec8624cd0f5ba7ed26 | [
"BSD-3-Clause"
] | null | null | null | src/napari_ids/__init__.py | tcotte/napari-IDS | 4572b5f95b70ec7d496a5cec8624cd0f5ba7ed26 | [
"BSD-3-Clause"
] | null | null | null |
__version__ = "0.0.1"
from ._widget import LiveIDS
from .video_ui import initui
| 10.5 | 28 | 0.738095 | 13 | 84 | 4.307692 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.178571 | 84 | 7 | 29 | 12 | 0.768116 | 0 | 0 | 0 | 0 | 0 | 0.060241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
7b7db2db848bd3634e208829aa8859800774f8e1 | 115 | py | Python | kairon/__main__.py | rit1200/kairon | 674a491f6deeae4800825ca93e0726e4fb6e0866 | [
"Apache-2.0"
] | 97 | 2020-08-18T10:07:48.000Z | 2022-03-26T18:33:37.000Z | kairon/__main__.py | rit1200/kairon | 674a491f6deeae4800825ca93e0726e4fb6e0866 | [
"Apache-2.0"
] | 276 | 2020-08-27T23:24:35.000Z | 2022-03-31T09:43:30.000Z | kairon/__main__.py | rit1200/kairon | 674a491f6deeae4800825ca93e0726e4fb6e0866 | [
"Apache-2.0"
] | 46 | 2020-09-11T13:29:41.000Z | 2022-03-08T12:27:17.000Z | from kairon import cli
import logging
if __name__ == "__main__":
logging.basicConfig(level="DEBUG")
cli()
| 16.428571 | 38 | 0.704348 | 14 | 115 | 5.214286 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182609 | 115 | 6 | 39 | 19.166667 | 0.776596 | 0 | 0 | 0 | 0 | 0 | 0.113043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
7b88615fe2c05651070e91e77f44fc4b2bba173e | 580 | py | Python | mesh_around_2d.py | MiroK/gmshAround | 3bd4053eb46a7d933e75579fcf653130cf62890f | [
"MIT"
] | null | null | null | mesh_around_2d.py | MiroK/gmshAround | 3bd4053eb46a7d933e75579fcf653130cf62890f | [
"MIT"
] | null | null | null | mesh_around_2d.py | MiroK/gmshAround | 3bd4053eb46a7d933e75579fcf653130cf62890f | [
"MIT"
] | null | null | null | from dolfin import Mesh
import os
# FIXME
# We don't know how to deal with tight bbox intersecting the surface and so
# are forced to have the bbox larger. Would be nice to handle this.
def mesh_around_2d(mesh_, size=1, scale=10, padding=0.05):
'''
From a 2d in 3d mesh (in XML format) produce a Xd mesh where
... | 34.117647 | 75 | 0.712069 | 97 | 580 | 4.226804 | 0.701031 | 0.039024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022321 | 0.227586 | 580 | 16 | 76 | 36.25 | 0.892857 | 0.708621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
7b8b1cdb81959c21c3f284fe134db336a93398e2 | 144 | py | Python | moto/ec2/exceptions.py | tinyclues/moto | 8612e9d78223d56949eba53ef32bedc4bde0e7de | [
"Apache-2.0"
] | null | null | null | moto/ec2/exceptions.py | tinyclues/moto | 8612e9d78223d56949eba53ef32bedc4bde0e7de | [
"Apache-2.0"
] | null | null | null | moto/ec2/exceptions.py | tinyclues/moto | 8612e9d78223d56949eba53ef32bedc4bde0e7de | [
"Apache-2.0"
] | null | null | null | class InvalidIdError(RuntimeError):
def __init__(self, id_value):
super(InvalidIdError, self).__init__()
self.id = id_value
| 28.8 | 46 | 0.6875 | 16 | 144 | 5.5625 | 0.5625 | 0.179775 | 0.224719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 144 | 4 | 47 | 36 | 0.780702 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7ba05b8c89c9a93f00b13d2b6cfcb5617019594e | 130 | py | Python | mailmerge/exceptions.py | captn3m0/mailmerge | 6c40c252154cd3360a7dc054619ae8919150974c | [
"MIT"
] | 1 | 2021-08-14T19:17:44.000Z | 2021-08-14T19:17:44.000Z | mailmerge/exceptions.py | captn3m0/mailmerge | 6c40c252154cd3360a7dc054619ae8919150974c | [
"MIT"
] | 1 | 2021-01-05T21:04:42.000Z | 2021-01-05T21:04:42.000Z | mailmerge/exceptions.py | captn3m0/mailmerge | 6c40c252154cd3360a7dc054619ae8919150974c | [
"MIT"
] | null | null | null | """Errors raised by mailmerge."""
class MailmergeError(Exception):
"""Top level exception raised by mailmerge functions."""
| 21.666667 | 60 | 0.723077 | 14 | 130 | 6.714286 | 0.714286 | 0.170213 | 0.361702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146154 | 130 | 5 | 61 | 26 | 0.846847 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7baaa2b3c4aecaa6d209c6018384f2067dd28e47 | 173 | py | Python | thai_tokenizer/data/__init__.py | nk2673/thai-tokenizer | bbed18b6c05117c917d67ba603f70f0b1e97b3db | [
"MIT"
] | 4 | 2021-08-17T06:36:45.000Z | 2022-03-09T05:34:29.000Z | thai_tokenizer/data/__init__.py | nk2673/thai-tokenizer | bbed18b6c05117c917d67ba603f70f0b1e97b3db | [
"MIT"
] | 1 | 2021-02-08T11:00:17.000Z | 2021-02-08T11:00:17.000Z | thai_tokenizer/data/__init__.py | nk2673/thai-tokenizer | bbed18b6c05117c917d67ba603f70f0b1e97b3db | [
"MIT"
] | 2 | 2021-02-08T10:18:56.000Z | 2021-02-12T10:09:36.000Z | import json
from importlib import resources
bpe_merges = []
for line in resources.open_text(__name__, 'bpe_merges.jsonl'):
bpe_merges.append(tuple(json.loads(line)))
| 19.222222 | 62 | 0.763006 | 25 | 173 | 4.96 | 0.68 | 0.217742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127168 | 173 | 8 | 63 | 21.625 | 0.821192 | 0 | 0 | 0 | 0 | 0 | 0.092486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
7bc972e6146cd814c5a9dd869e85f62006f0ef95 | 1,046 | py | Python | deep_in_python3/plural2.py | UMP-45/Python_Study | 75126a432230b226f27f2a7434d848bd0ce5696e | [
"Unlicense"
] | 1 | 2022-03-29T09:20:19.000Z | 2022-03-29T09:20:19.000Z | deep_in_python3/plural2.py | UMP-45/Python_Study | 75126a432230b226f27f2a7434d848bd0ce5696e | [
"Unlicense"
] | null | null | null | deep_in_python3/plural2.py | UMP-45/Python_Study | 75126a432230b226f27f2a7434d848bd0ce5696e | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import re
def match_sxz(noun):
return re.search('[sxz]$',noun)
def apply_sxz(noun):
return re.sub('$','es',noun)
def match_h(noun):
return re.search('[^aeioudgkprt]h$',noun)
def apply_h(noun):
return re.sub('$','es',noun)
def match_y(noun):
return re.... | 23.772727 | 45 | 0.606119 | 152 | 1,046 | 3.986842 | 0.230263 | 0.214521 | 0.118812 | 0.089109 | 0.09571 | 0.09571 | 0.09571 | 0.09571 | 0 | 0 | 0 | 0.002509 | 0.23805 | 1,046 | 44 | 46 | 23.772727 | 0.757842 | 0.041109 | 0 | 0.074074 | 0 | 0 | 0.064033 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.037037 | 0.296296 | 0.703704 | 0.037037 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
c879ec92034930814f9dd733a95c86e31701a37f | 128 | py | Python | py-polars/polars/eager/__init__.py | elferherrera/polars | c9eb93e496fcc24667a548baa39b485d2d608aa0 | [
"MIT"
] | 1,595 | 2020-06-17T11:23:08.000Z | 2021-05-06T12:56:22.000Z | py-polars/polars/eager/__init__.py | bfeif/polars | 062172166e4b9e05a51fa29208990ee4ddb21272 | [
"MIT"
] | 346 | 2020-06-24T07:11:19.000Z | 2021-05-06T10:39:22.000Z | py-polars/polars/eager/__init__.py | bfeif/polars | 062172166e4b9e05a51fa29208990ee4ddb21272 | [
"MIT"
] | 92 | 2020-07-11T04:46:19.000Z | 2021-04-30T20:25:31.000Z | # flake8: noqa
from . import frame, series
from .frame import *
from .series import *
__all__ = frame.__all__ + series.__all__
| 18.285714 | 40 | 0.734375 | 17 | 128 | 4.823529 | 0.411765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0.171875 | 128 | 6 | 41 | 21.333333 | 0.764151 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
c8ad3e5a87f0220583e387a873518690760d446e | 2,411 | py | Python | test/test_ngram.py | hammerlab/pepdata | 2f1bad79f8084545227f4a7f895bbf08a6fb6fdc | [
"Apache-2.0"
] | 24 | 2015-03-13T03:52:27.000Z | 2017-12-09T08:46:05.000Z | test/test_ngram.py | openvax/pepdata | 2f1bad79f8084545227f4a7f895bbf08a6fb6fdc | [
"Apache-2.0"
] | 8 | 2015-01-30T18:31:31.000Z | 2017-09-27T13:18:44.000Z | test/test_ngram.py | hammerlab/pepdata | 2f1bad79f8084545227f4a7f895bbf08a6fb6fdc | [
"Apache-2.0"
] | 10 | 2015-01-08T20:33:39.000Z | 2017-08-03T14:38:33.000Z | # Copyright (c) 2014. Mount Sinai School of Medicine
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 38.269841 | 77 | 0.836582 | 153 | 2,411 | 13.143791 | 0.712418 | 0.029836 | 0.012929 | 0.015912 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008443 | 0.11572 | 2,411 | 62 | 78 | 38.887097 | 0.934803 | 0.253837 | 0 | 0.105263 | 0 | 0 | 0.779709 | 0.766256 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.078947 | 0 | 0.078947 | 0.026316 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c8cfcf03f8de6850f96d307c5cfda1f9c4bf854e | 375 | py | Python | wfdb/processing/__init__.py | vishwas1234567/wfdb-python | 8d751aaf38a121b67dade880a930ccd8e002379b | [
"MIT"
] | 1 | 2019-07-06T05:57:49.000Z | 2019-07-06T05:57:49.000Z | wfdb/processing/__init__.py | vishwas1234567/wfdb-python | 8d751aaf38a121b67dade880a930ccd8e002379b | [
"MIT"
] | null | null | null | wfdb/processing/__init__.py | vishwas1234567/wfdb-python | 8d751aaf38a121b67dade880a930ccd8e002379b | [
"MIT"
] | 1 | 2019-01-02T12:02:42.000Z | 2019-01-02T12:02:42.000Z | from .basic import (resample_ann, resample_sig, resample_singlechan,
resample_multichan, normalize_bound, get_filter_gain)
from .evaluate import Comparitor, compare_annotations, benchmark_mitdb
from .hr import compute_hr, calc_rr, calc_mean_hr
from .peaks import find_peaks, find_local_peaks, correct... | 53.571429 | 73 | 0.805333 | 52 | 375 | 5.442308 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141333 | 375 | 6 | 74 | 62.5 | 0.878882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.833333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
cda81d66dcd41823374e3dd3bc23d16ac283edc7 | 741 | py | Python | src/sima/simo/fixedforceelongationmethod.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/simo/fixedforceelongationmethod.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/simo/fixedforceelongationmethod.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | # Generated with FixedForceElongationMethod
#
from enum import Enum
from enum import auto
class FixedForceElongationMethod(Enum):
""""""
PRETENSION_LOCAL = auto()
PRETENSION_GLOBAL = auto()
BOTH_ENDS = auto()
CONSTANT_TENSION_WINCH = auto()
def label(self):
if self == FixedForceElonga... | 35.285714 | 69 | 0.700405 | 71 | 741 | 7.169014 | 0.380282 | 0.047151 | 0.251473 | 0.165029 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232119 | 741 | 21 | 70 | 35.285714 | 0.894552 | 0.055331 | 0 | 0 | 1 | 0 | 0.163531 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.75 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
cdb277a982fdf0f80b6ce5d55443fe1f12068360 | 20 | py | Python | albow/version.py | LaChal/mcedit | 61b2da298a81b0ab739927f50ba03e56092df872 | [
"0BSD"
] | null | null | null | albow/version.py | LaChal/mcedit | 61b2da298a81b0ab739927f50ba03e56092df872 | [
"0BSD"
] | null | null | null | albow/version.py | LaChal/mcedit | 61b2da298a81b0ab739927f50ba03e56092df872 | [
"0BSD"
] | null | null | null | version = (2, 1, 5)
| 10 | 19 | 0.5 | 4 | 20 | 2.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.25 | 20 | 1 | 20 | 20 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cdd87c1a8bb81b64c3767025e6c586aee3071a55 | 49 | py | Python | torch_geometric/__init__.py | cuiqiang1990/pytorch_geometric | a7143b8d9ace60cf2ec1bd14ecc20ff7c3141151 | [
"MIT"
] | 1 | 2019-10-16T09:14:19.000Z | 2019-10-16T09:14:19.000Z | torch_geometric/__init__.py | cuiqiang1990/pytorch_geometric | a7143b8d9ace60cf2ec1bd14ecc20ff7c3141151 | [
"MIT"
] | null | null | null | torch_geometric/__init__.py | cuiqiang1990/pytorch_geometric | a7143b8d9ace60cf2ec1bd14ecc20ff7c3141151 | [
"MIT"
] | null | null | null | __version__ = '1.3.0'
__all__ = ['__version__']
| 12.25 | 25 | 0.653061 | 6 | 49 | 3.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.142857 | 49 | 3 | 26 | 16.333333 | 0.404762 | 0 | 0 | 0 | 0 | 0 | 0.326531 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cddd1691322a94afe58ab7a9b3f1857203ae2c25 | 97 | py | Python | openFlow/ofptBarrierReq.py | wsharif/thesis | 96a9bd6c86ed027c3eeee231b2eae1c14394d728 | [
"MIT"
] | null | null | null | openFlow/ofptBarrierReq.py | wsharif/thesis | 96a9bd6c86ed027c3eeee231b2eae1c14394d728 | [
"MIT"
] | null | null | null | openFlow/ofptBarrierReq.py | wsharif/thesis | 96a9bd6c86ed027c3eeee231b2eae1c14394d728 | [
"MIT"
] | null | null | null | from ofptHeader import ofptHeader
def ofptBarrierReq():
header = ofptHeader(20)
return header | 16.166667 | 33 | 0.793814 | 11 | 97 | 7 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024096 | 0.14433 | 97 | 6 | 34 | 16.166667 | 0.903614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
cdfb96ba744b398d5c85127d4c3061558bb293d1 | 210 | py | Python | scouts/forms.py | MichianaYouthRobotics/2019ScoutingBackend | 73cb13c588f6677903c4d05fde1c03e95eb9f7d8 | [
"MIT"
] | null | null | null | scouts/forms.py | MichianaYouthRobotics/2019ScoutingBackend | 73cb13c588f6677903c4d05fde1c03e95eb9f7d8 | [
"MIT"
] | null | null | null | scouts/forms.py | MichianaYouthRobotics/2019ScoutingBackend | 73cb13c588f6677903c4d05fde1c03e95eb9f7d8 | [
"MIT"
] | null | null | null | from django import forms
from scouts.models import Scout
class ScoutForm(forms.ModelForm):
class Meta:
model = Scout
fields = ['person', 'robot_number', 'match_number', 'hatches_secured']
| 23.333333 | 78 | 0.695238 | 25 | 210 | 5.72 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204762 | 210 | 8 | 79 | 26.25 | 0.856287 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a8039649cb05e931fe1433de4240b989c2613f40 | 218 | py | Python | tasksapp/views.py | ayush1399/Django-TaskApp | 676619b03671c6b16d819da267f416c15d7e941c | [
"MIT"
] | null | null | null | tasksapp/views.py | ayush1399/Django-TaskApp | 676619b03671c6b16d819da267f416c15d7e941c | [
"MIT"
] | null | null | null | tasksapp/views.py | ayush1399/Django-TaskApp | 676619b03671c6b16d819da267f416c15d7e941c | [
"MIT"
] | null | null | null | from django.contrib.auth.decorators import login_required
from django.shortcuts import redirect
app_name = 'main'
@login_required(login_url='accounts:login')
def index(request):
return redirect('taskboard:index') | 27.25 | 57 | 0.802752 | 29 | 218 | 5.896552 | 0.689655 | 0.116959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09633 | 218 | 8 | 58 | 27.25 | 0.86802 | 0 | 0 | 0 | 0 | 0 | 0.150685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 4 |
b527a4129348308c1eb02948e152b9c7387efdb3 | 146 | py | Python | Restaurantes/app_restaurantes/admin.py | Francislley/restaurante02 | d3a858f5f93db3c16dde76c878b759d43365e600 | [
"Apache-2.0"
] | null | null | null | Restaurantes/app_restaurantes/admin.py | Francislley/restaurante02 | d3a858f5f93db3c16dde76c878b759d43365e600 | [
"Apache-2.0"
] | null | null | null | Restaurantes/app_restaurantes/admin.py | Francislley/restaurante02 | d3a858f5f93db3c16dde76c878b759d43365e600 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from app_restaurantes.models import Restaurante
# Register your models here.
admin.site.register(Restaurante)
| 18.25 | 47 | 0.828767 | 19 | 146 | 6.315789 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116438 | 146 | 7 | 48 | 20.857143 | 0.930233 | 0.178082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b5430ae89b24eb3cd090bb19e0f719416c566d78 | 769 | py | Python | tests/recommendations/mocks.py | ExiledNarwal28/glo-2005-project | 3b5b5f9cdcfe53d1e6e702609587068c4bd3310d | [
"MIT"
] | null | null | null | tests/recommendations/mocks.py | ExiledNarwal28/glo-2005-project | 3b5b5f9cdcfe53d1e6e702609587068c4bd3310d | [
"MIT"
] | null | null | null | tests/recommendations/mocks.py | ExiledNarwal28/glo-2005-project | 3b5b5f9cdcfe53d1e6e702609587068c4bd3310d | [
"MIT"
] | 1 | 2020-05-21T10:07:07.000Z | 2020-05-21T10:07:07.000Z | from unittest import mock
from tests.recommendations.fakes import get_recommendations_for_practice_center, \
get_recommendations_for_sport, get_recommendations_for_sport_and_user, \
get_recommendations_for_practice_center_and_user
recommendation_service = mock.Mock()
recommendation_repository = mock.Mock()
... | 36.619048 | 87 | 0.881664 | 99 | 769 | 6.20202 | 0.20202 | 0.234528 | 0.273616 | 0.188925 | 0.765472 | 0.708469 | 0.452769 | 0 | 0 | 0 | 0 | 0 | 0.079324 | 769 | 20 | 88 | 38.45 | 0.867232 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b5894bc8757062f55a618b91e780d07732bbef89 | 304 | py | Python | Course I/Алгоритмы Python/Part2/семинары/pract2/задание/modules/task18/parse_exp.py | GeorgiyDemo/FA | 641a29d088904302f5f2164c9b3e1f1c813849ec | [
"WTFPL"
] | 27 | 2019-08-18T20:54:27.000Z | 2022-02-22T02:39:45.000Z | Course I/Алгоритмы Python/Part2/семинары/pract2/задание/modules/task18/parse_exp.py | GeorgiyDemo/FA | 641a29d088904302f5f2164c9b3e1f1c813849ec | [
"WTFPL"
] | 217 | 2019-09-22T14:43:25.000Z | 2022-03-30T13:49:18.000Z | Course I/Алгоритмы Python/Part2/семинары/pract2/задание/modules/task18/parse_exp.py | GeorgiyDemo/FA | 641a29d088904302f5f2164c9b3e1f1c813849ec | [
"WTFPL"
] | 42 | 2019-09-18T11:36:28.000Z | 2022-03-19T18:43:00.000Z | from .parseexp_koff_a import get as get_a
from .parseexp_koff_b import get as get_b
from .parseexp_koff_c import get as get_c
def parse_exp(input_str):
index_a = get_a(input_str)
index_b = get_b(input_str)
index_c = get_c(input_str)
return list(map(float, [index_a, index_b, index_c]))
| 27.636364 | 56 | 0.75 | 60 | 304 | 3.416667 | 0.316667 | 0.156098 | 0.234146 | 0.204878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171053 | 304 | 10 | 57 | 30.4 | 0.813492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a91c7665746ce93b6512d004e78d650bcac13ef0 | 311 | py | Python | core/api/serializer.py | FurkanOzkaya/postgresql_json_excel | 8890c42a8aeca0e655145606a77e2f465f275ca2 | [
"Apache-2.0"
] | null | null | null | core/api/serializer.py | FurkanOzkaya/postgresql_json_excel | 8890c42a8aeca0e655145606a77e2f465f275ca2 | [
"Apache-2.0"
] | null | null | null | core/api/serializer.py | FurkanOzkaya/postgresql_json_excel | 8890c42a8aeca0e655145606a77e2f465f275ca2 | [
"Apache-2.0"
] | null | null | null | from rest_framework import serializers
from core.models import Column, Data
class ColumnSerializer(serializers.ModelSerializer):
class Meta:
model = Column
fields = '__all__'
class DataSerializer(serializers.ModelSerializer):
class Meta:
model = Data
fields = '__all__' | 25.916667 | 52 | 0.710611 | 31 | 311 | 6.83871 | 0.548387 | 0.245283 | 0.292453 | 0.330189 | 0.377358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22508 | 311 | 12 | 53 | 25.916667 | 0.879668 | 0 | 0 | 0.4 | 0 | 0 | 0.044872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
a921e205726f63b58a6494e38e8391da27fe4fa1 | 1,935 | py | Python | web/pipeline/migrations/0081_auto_20200908_1551.py | stevenstuber/CIT | 8c485e72084c06da6db45da1cb402bac26411ec2 | [
"Apache-2.0"
] | 10 | 2020-11-12T15:13:40.000Z | 2022-03-05T22:33:08.000Z | web/pipeline/migrations/0081_auto_20200908_1551.py | stevenstuber/CIT | 8c485e72084c06da6db45da1cb402bac26411ec2 | [
"Apache-2.0"
] | 28 | 2020-07-17T16:33:55.000Z | 2022-03-21T16:24:25.000Z | web/pipeline/migrations/0081_auto_20200908_1551.py | stevenstuber/CIT | 8c485e72084c06da6db45da1cb402bac26411ec2 | [
"Apache-2.0"
] | 5 | 2020-11-02T23:39:53.000Z | 2022-03-01T19:09:45.000Z | # Generated by Django 2.2.13 on 2020-09-08 15:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pipeline', '0080_airport'),
]
operations = [
migrations.AddField(
model_name='community',
name='nearest_substation_... | 35.833333 | 142 | 0.606718 | 197 | 1,935 | 5.791878 | 0.324873 | 0.126205 | 0.161262 | 0.189308 | 0.708151 | 0.708151 | 0.708151 | 0.674847 | 0.535495 | 0.419807 | 0 | 0.023055 | 0.282687 | 1,935 | 53 | 143 | 36.509434 | 0.798991 | 0.023773 | 0 | 0.617021 | 1 | 0 | 0.243773 | 0.109698 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021277 | 0 | 0.085106 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a92661ec1dd53d1fd822c9d559b2aca1664033b7 | 168 | py | Python | src/preprocessing/plaintext_preprocessor.py | tiefenauer/ip7-python | 512105ba39110ec77d2ea0961dd7c2a42d4ec26d | [
"MIT"
] | null | null | null | src/preprocessing/plaintext_preprocessor.py | tiefenauer/ip7-python | 512105ba39110ec77d2ea0961dd7c2a42d4ec26d | [
"MIT"
] | null | null | null | src/preprocessing/plaintext_preprocessor.py | tiefenauer/ip7-python | 512105ba39110ec77d2ea0961dd7c2a42d4ec26d | [
"MIT"
] | null | null | null | from src.preprocessing.preprocessor import Preprocessor
class PlaintextPreprocessor(Preprocessor):
def preprocess_single(self, row):
return row.plaintext | 24 | 55 | 0.791667 | 17 | 168 | 7.764706 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14881 | 168 | 7 | 56 | 24 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
a94c1e18b766ab1b417b0a8d0472d9601c707714 | 158 | py | Python | 1 - Solving a system of differential equations by scipy.integrate.odeint/code.py | m0m0khan/stackoverflow-answers | 1bee1d535db5efe406d976616407e70793deaa17 | [
"MIT"
] | null | null | null | 1 - Solving a system of differential equations by scipy.integrate.odeint/code.py | m0m0khan/stackoverflow-answers | 1bee1d535db5efe406d976616407e70793deaa17 | [
"MIT"
] | null | null | null | 1 - Solving a system of differential equations by scipy.integrate.odeint/code.py | m0m0khan/stackoverflow-answers | 1bee1d535db5efe406d976616407e70793deaa17 | [
"MIT"
] | null | null | null | def f(t):
# relation between f and t
return value
def rxn1(C,t):
return np.array([f(t)*C0/v-f(t)*C[0]/v-k*C[0], f(t)*C[0]/v-f(t)*C[1]/v-k*C[1]])
| 22.571429 | 83 | 0.531646 | 42 | 158 | 2 | 0.404762 | 0.119048 | 0.107143 | 0.095238 | 0.119048 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053846 | 0.177215 | 158 | 6 | 84 | 26.333333 | 0.592308 | 0.151899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
a9502999e63d4061b8955caecf0e855cbeabebab | 221 | py | Python | mmdet3d/core/points/__init__.py | dreamerlin/mmdetection3d | 20b163a478da83f5ce6fe1c565ea3845cb17e858 | [
"Apache-2.0"
] | 2 | 2021-04-18T12:18:08.000Z | 2021-06-16T01:43:48.000Z | mmdet3d/core/points/__init__.py | dreamerlin/mmdetection3d | 20b163a478da83f5ce6fe1c565ea3845cb17e858 | [
"Apache-2.0"
] | null | null | null | mmdet3d/core/points/__init__.py | dreamerlin/mmdetection3d | 20b163a478da83f5ce6fe1c565ea3845cb17e858 | [
"Apache-2.0"
] | 2 | 2021-04-17T10:30:57.000Z | 2021-09-25T04:25:33.000Z | from .base_points import BasePoints
from .cam_points import CameraPoints
from .depth_points import DepthPoints
from .lidar_points import LiDARPoints
__all__ = ['BasePoints', 'CameraPoints', 'DepthPoints', 'LiDARPoints']
| 31.571429 | 70 | 0.81448 | 25 | 221 | 6.88 | 0.48 | 0.27907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104072 | 221 | 6 | 71 | 36.833333 | 0.868687 | 0 | 0 | 0 | 0 | 0 | 0.199095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
a9622c530f614bdbdfa307f4ea5a31746994dfe2 | 178 | py | Python | application/config/social_links.py | angelaaaateng/awesome-panel | ac3a5c9a382ce796798e74c967ad4a8d20f9eb2c | [
"Apache-2.0"
] | null | null | null | application/config/social_links.py | angelaaaateng/awesome-panel | ac3a5c9a382ce796798e74c967ad4a8d20f9eb2c | [
"Apache-2.0"
] | null | null | null | application/config/social_links.py | angelaaaateng/awesome-panel | ac3a5c9a382ce796798e74c967ad4a8d20f9eb2c | [
"Apache-2.0"
] | null | null | null | """This module provides the SOCIAL_LINKS list of social links"""
from package.awesome_panel.application.models import SocialLink
SOCIAL_LINKS = [SocialLink(name="Twitter")]
| 35.6 | 65 | 0.786517 | 23 | 178 | 5.956522 | 0.782609 | 0.240876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117978 | 178 | 4 | 66 | 44.5 | 0.872611 | 0.325843 | 0 | 0 | 0 | 0 | 0.063636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
a9829d34aa01d72c0f7a78ec50c17b7565c63ce8 | 462 | py | Python | src/pactor/ast.py | kstrempel/pactor | bc12dd6253bec7c08f691697108dcabd2a1c0e00 | [
"MIT"
] | 1 | 2021-03-19T21:36:35.000Z | 2021-03-19T21:36:35.000Z | src/pactor/ast.py | kstrempel/pactor | bc12dd6253bec7c08f691697108dcabd2a1c0e00 | [
"MIT"
] | null | null | null | src/pactor/ast.py | kstrempel/pactor | bc12dd6253bec7c08f691697108dcabd2a1c0e00 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from pactor.vm import VM
class Node(ABC):
@abstractmethod
def run(self, stack):
pass
class Ast:
def __init__(self):
self.__nodes = []
def add_node(self, node: Node):
self.__nodes.append(node)
def add_node_beginning(self, node: Node):
self.__nodes = [nod... | 14.903226 | 43 | 0.675325 | 64 | 462 | 4.5625 | 0.359375 | 0.184932 | 0.133562 | 0.109589 | 0.143836 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002762 | 0.21645 | 462 | 30 | 44 | 15.4 | 0.803867 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0.052632 | 0.105263 | 0.105263 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
8d4b14d6d57318f556522469216b4a25cd6cadc3 | 54 | py | Python | spec/fixtures/semgrep/trivial.py | hstocks/salus | 2c41c69954a7837678cf521ac9cc01b4714d6b58 | [
"Apache-2.0"
] | 625 | 2018-10-18T17:05:01.000Z | 2022-03-29T18:09:15.000Z | spec/fixtures/semgrep/trivial.py | hstocks/salus | 2c41c69954a7837678cf521ac9cc01b4714d6b58 | [
"Apache-2.0"
] | 250 | 2018-10-18T17:05:56.000Z | 2022-03-24T00:30:40.000Z | spec/fixtures/semgrep/trivial.py | hstocks/salus | 2c41c69954a7837678cf521ac9cc01b4714d6b58 | [
"Apache-2.0"
] | 128 | 2018-10-18T19:42:08.000Z | 2022-03-25T21:09:00.000Z | # https://semgrep.live/DdG
if 3 == 3:
print('3!') | 13.5 | 26 | 0.537037 | 9 | 54 | 3.222222 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 0.203704 | 54 | 4 | 27 | 13.5 | 0.604651 | 0.444444 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
8d7362d20bfe01538aca9b102d58c370f26ce79a | 5,391 | py | Python | test/apps/minermedic/resources/miners/antminer_s9.py | holitics/minermedic | 39dd03e58d665bea23f1e9c9ab134a794d092cb1 | [
"Apache-2.0"
] | 2 | 2020-02-13T15:32:43.000Z | 2020-04-08T04:10:10.000Z | test/apps/minermedic/resources/miners/antminer_s9.py | alimogh/minermedic | 39dd03e58d665bea23f1e9c9ab134a794d092cb1 | [
"Apache-2.0"
] | 11 | 2019-11-23T00:20:23.000Z | 2020-01-02T02:17:55.000Z | test/apps/minermedic/resources/miners/antminer_s9.py | alimogh/minermedic | 39dd03e58d665bea23f1e9c9ab134a794d092cb1 | [
"Apache-2.0"
] | 2 | 2020-06-15T22:32:43.000Z | 2020-07-17T18:40:58.000Z | routes = {
'{"command": "stats"}' : {"STATUS":[{"STATUS":"S","When":1553711204,"Code":70,"Msg":"BMMiner stats","Description":"bmminer 1.0.0"}],"STATS":[{"BMMiner":"2.0.0","Miner":"16.8.1.3","CompileTime":"Fri Nov 17 17:37:49 CST 2017","Type":"Antminer S9"},{"STATS":0,"ID":"BC50","Elapsed":248,"Calls":0,"Wait":0.00000... | 1,078.2 | 3,447 | 0.701354 | 893 | 5,391 | 4.059351 | 0.318029 | 0.054621 | 0.09931 | 0.105931 | 0.362207 | 0.33269 | 0.296552 | 0.296552 | 0.296552 | 0.21931 | 0 | 0.164173 | 0.020404 | 5,391 | 4 | 3,448 | 1,347.75 | 0.52225 | 0 | 0 | 0 | 0 | 0 | 0.632536 | 0.031349 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8da8dee9e1d93aeae78071dc82854913911f054b | 113 | py | Python | antiphishme/src/db_config.py | TheArqsz/AntiPhishMe-backend | 3ae38059e410152ae1976815c209829ac08f47a5 | [
"MIT"
] | 1 | 2020-05-28T11:45:22.000Z | 2020-05-28T11:45:22.000Z | antiphishme/src/db_config.py | TheArqsz/AntiPhishMe-backend | 3ae38059e410152ae1976815c209829ac08f47a5 | [
"MIT"
] | 1 | 2021-03-31T19:56:26.000Z | 2021-03-31T19:56:26.000Z | antiphishme/src/db_config.py | TheArqsz/AntiPhishMe-backend | 3ae38059e410152ae1976815c209829ac08f47a5 | [
"MIT"
] | 2 | 2020-05-28T16:45:45.000Z | 2021-09-07T14:16:44.000Z | from antiphishme.src.config import *
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy(connexion_app.app)
| 22.6 | 39 | 0.831858 | 15 | 113 | 6.133333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106195 | 113 | 4 | 40 | 28.25 | 0.910891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a5d9f66d27124de10727d1aa47bf59a5cbaf0b46 | 3,459 | py | Python | servo/data/servo_sweetberry_rails_addr.py | neverware-mirrors/hdctools | dd7f911bb9051e615af7fcb71d921bd481f934fb | [
"BSD-3-Clause"
] | null | null | null | servo/data/servo_sweetberry_rails_addr.py | neverware-mirrors/hdctools | dd7f911bb9051e615af7fcb71d921bd481f934fb | [
"BSD-3-Clause"
] | null | null | null | servo/data/servo_sweetberry_rails_addr.py | neverware-mirrors/hdctools | dd7f911bb9051e615af7fcb71d921bd481f934fb | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2018 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
config_type='sweetberry'
# the names j2, j3, and j4 are the white banks on sweetberry
# Note that here the bank name in the mux position is optional
# as... | 57.65 | 72 | 0.534837 | 596 | 3,459 | 3.021812 | 0.147651 | 0.053304 | 0.079956 | 0.159911 | 0.745697 | 0.707385 | 0.700167 | 0.674625 | 0 | 0 | 0 | 0.227723 | 0.182423 | 3,459 | 59 | 73 | 58.627119 | 0.409123 | 0.097138 | 0 | 0 | 0 | 0 | 0.348845 | 0 | 0 | 0 | 0.061617 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
570a519759828bfe1b5a0ca80c7dbc44d199db0b | 47 | py | Python | third_party/universal-ctags/ctags/Units/parser-python.r/triple-quotes-in-default-arg.d/input.py | f110/wing | 31b259f723b57a6481252a4b8b717fcee6b01ff4 | [
"MIT"
] | 4 | 2017-02-07T20:04:31.000Z | 2022-01-30T14:04:45.000Z | third_party/universal-ctags/ctags/Units/parser-python.r/triple-quotes-in-default-arg.d/input.py | f110/wing | 31b259f723b57a6481252a4b8b717fcee6b01ff4 | [
"MIT"
] | 1 | 2018-01-07T19:14:53.000Z | 2018-01-07T19:14:53.000Z | third_party/universal-ctags/ctags/Units/parser-python.r/triple-quotes-in-default-arg.d/input.py | f110/wing | 31b259f723b57a6481252a4b8b717fcee6b01ff4 | [
"MIT"
] | 1 | 2021-04-26T09:00:06.000Z | 2021-04-26T09:00:06.000Z | def f(var=("""
str
""",1)):
pass
anothervar=1
| 7.833333 | 14 | 0.553191 | 8 | 47 | 3.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.148936 | 47 | 5 | 15 | 9.4 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0 | 0 | 0.2 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
570ebb2337fe6118fceb643f3e74641b86a3c54c | 58 | py | Python | lishixian/docs/__init__.py | znsoooo/lishixian | 1fbf8529154cc3a215900f80f926bb87ef471761 | [
"MIT"
] | 4 | 2021-06-09T12:18:01.000Z | 2021-11-02T13:57:26.000Z | lishixian/docs/__init__.py | znsoooo/lishixian | 1fbf8529154cc3a215900f80f926bb87ef471761 | [
"MIT"
] | null | null | null | lishixian/docs/__init__.py | znsoooo/lishixian | 1fbf8529154cc3a215900f80f926bb87ef471761 | [
"MIT"
] | null | null | null | # for pip install can be find and copy to package folder.
| 29 | 57 | 0.758621 | 11 | 58 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 58 | 1 | 58 | 58 | 0.956522 | 0.948276 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5713fce1586ea572241f7b6548ca3ce773abe0cf | 92 | py | Python | dlcli/__main__.py | outlyerapp/dlcli | 57458b7346a9b9c92cf99628f6c051589a9edb27 | [
"Apache-2.0"
] | 1 | 2017-12-06T11:07:48.000Z | 2017-12-06T11:07:48.000Z | dlcli/__main__.py | outlyerapp/dlcli | 57458b7346a9b9c92cf99628f6c051589a9edb27 | [
"Apache-2.0"
] | 1 | 2020-02-22T20:29:15.000Z | 2020-02-22T20:29:15.000Z | dlcli/__main__.py | outlyerapp/dlcli | 57458b7346a9b9c92cf99628f6c051589a9edb27 | [
"Apache-2.0"
] | null | null | null | """Executed when package directory is called as a script"""
from .dlcli import main
main()
| 18.4 | 59 | 0.73913 | 14 | 92 | 4.857143 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163043 | 92 | 4 | 60 | 23 | 0.883117 | 0.576087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
572bd3cfe454bc50a6002fdeeb9c268cdee89ff0 | 24 | py | Python | Python training/First steps/Exercise_7.py | tarsic99/Python_coursera | 2748a4f0c43cc21eb4c71b9494e86bc843c8e258 | [
"Apache-2.0"
] | null | null | null | Python training/First steps/Exercise_7.py | tarsic99/Python_coursera | 2748a4f0c43cc21eb4c71b9494e86bc843c8e258 | [
"Apache-2.0"
] | null | null | null | Python training/First steps/Exercise_7.py | tarsic99/Python_coursera | 2748a4f0c43cc21eb4c71b9494e86bc843c8e258 | [
"Apache-2.0"
] | null | null | null | n = input()
print(n[0])
| 8 | 11 | 0.541667 | 5 | 24 | 2.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.166667 | 24 | 2 | 12 | 12 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
5731decd33b23a8a5392ce77392487b841743b4f | 534 | py | Python | affinity_pdbdataset/utility/autodock_utility/autodock_util.py | Reimilia/Affinity_pdbdataset | 26538e9f6efff2251d36a5e1caa6689d1293241c | [
"MIT"
] | null | null | null | affinity_pdbdataset/utility/autodock_utility/autodock_util.py | Reimilia/Affinity_pdbdataset | 26538e9f6efff2251d36a5e1caa6689d1293241c | [
"MIT"
] | null | null | null | affinity_pdbdataset/utility/autodock_utility/autodock_util.py | Reimilia/Affinity_pdbdataset | 26538e9f6efff2251d36a5e1caa6689d1293241c | [
"MIT"
] | null | null | null | '''
'''
from affinity_pdbdataset.Config import Autodock_program_store_dir,Pythonsh_DIR
from affinity_pdbdataset.utility.file_utility import atomgroup_filepack
import prody as pd
class autodock_executor:
def __init__(self):
pass
def get_receptor_gridmaps(self):
pass
def get_ligand_gri... | 15.257143 | 78 | 0.687266 | 67 | 534 | 5.104478 | 0.507463 | 0.163743 | 0.192982 | 0.163743 | 0.22807 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252809 | 534 | 34 | 79 | 15.705882 | 0.857143 | 0 | 0 | 0.388889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.388889 | false | 0.388889 | 0.166667 | 0 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
93914dcb5455b14ce952a92b54dc6f399e68c505 | 40 | py | Python | Chapter02/apt_install_package.py | PacktPublishing/Secret-Recipes-of-the-Python-Ninja | 805d00c7a54927ba94c9077e9a580508ee3c5e56 | [
"MIT"
] | 13 | 2018-06-21T01:44:49.000Z | 2021-12-01T10:49:53.000Z | Chapter02/apt_install_package.py | PacktPublishing/Secret-Recipes-of-the-Python-Ninja | 805d00c7a54927ba94c9077e9a580508ee3c5e56 | [
"MIT"
] | null | null | null | Chapter02/apt_install_package.py | PacktPublishing/Secret-Recipes-of-the-Python-Ninja | 805d00c7a54927ba94c9077e9a580508ee3c5e56 | [
"MIT"
] | 6 | 2018-10-05T08:29:24.000Z | 2022-01-11T14:49:50.000Z | $ sudo apt install python[3]-<package>
| 13.333333 | 38 | 0.7 | 6 | 40 | 4.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.15 | 40 | 2 | 39 | 20 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
93935d7488b3bf913bd2f314f1c1a6327240ce23 | 6,693 | py | Python | tests/test_element_assess.py | geosharma/liquepy | d567f6a7eb93eb76218f718375f2d34355d7edd4 | [
"MIT"
] | 4 | 2020-04-12T14:49:24.000Z | 2020-09-22T09:28:10.000Z | tests/test_element_assess.py | geosharma/liquepy | d567f6a7eb93eb76218f718375f2d34355d7edd4 | [
"MIT"
] | null | null | null | tests/test_element_assess.py | geosharma/liquepy | d567f6a7eb93eb76218f718375f2d34355d7edd4 | [
"MIT"
] | 4 | 2019-11-02T02:11:34.000Z | 2021-04-30T06:06:41.000Z | import numpy as np
import eqsig
from liquepy.element.models import ShearTest
from liquepy.element import assess
def test_with_one_cycle_no_dissipation():
strs = np.array([0, -1, -2, -3, -4, -3, -2, -1, 0, 1, 2, 3, 4, 3, 2, 1, 0])
tau = np.array([0, -2, -4, -6, -8, -6, -4, -2, 0, 2, 4, 6, 8, 6, 4, 2, 0])
... | 33.633166 | 113 | 0.612431 | 1,200 | 6,693 | 3.168333 | 0.0875 | 0.068122 | 0.065229 | 0.054708 | 0.813782 | 0.766439 | 0.713572 | 0.658601 | 0.644398 | 0.636244 | 0 | 0.096989 | 0.215897 | 6,693 | 198 | 114 | 33.80303 | 0.627477 | 0.00747 | 0 | 0.413793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 1 | 0.131034 | false | 0 | 0.027586 | 0 | 0.158621 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
939da0cd23fed24b8d8a1670fa70eb723a21f267 | 56 | py | Python | tests/src/preprocess/extend_typevar.py | pystatic/pystatic | e93d372e46adf8a8f697a71b80f3c88d26272607 | [
"MIT"
] | null | null | null | tests/src/preprocess/extend_typevar.py | pystatic/pystatic | e93d372e46adf8a8f697a71b80f3c88d26272607 | [
"MIT"
] | null | null | null | tests/src/preprocess/extend_typevar.py | pystatic/pystatic | e93d372e46adf8a8f697a71b80f3c88d26272607 | [
"MIT"
] | null | null | null | from typing import TypeVar
I = TypeVar('I', bound=int)
| 14 | 27 | 0.714286 | 9 | 56 | 4.444444 | 0.777778 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160714 | 56 | 3 | 28 | 18.666667 | 0.851064 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
93a6bb30c11b90c8c46e23835641c22cf4e3cc2b | 461 | py | Python | gym_loop/agents/random_agent.py | KirillPlaksin/gym-loop | 3708925820ebdc9bbdcc05a1f000f1bf0995f3df | [
"MIT"
] | 1 | 2021-01-10T15:15:35.000Z | 2021-01-10T15:15:35.000Z | gym_loop/agents/random_agent.py | KirillPlaksin/gym-loop | 3708925820ebdc9bbdcc05a1f000f1bf0995f3df | [
"MIT"
] | null | null | null | gym_loop/agents/random_agent.py | KirillPlaksin/gym-loop | 3708925820ebdc9bbdcc05a1f000f1bf0995f3df | [
"MIT"
] | null | null | null | from .base_agent import BaseAgent
class RandomAgent(BaseAgent):
@staticmethod
def get_default_parameters():
return {}
def __init__(self, **params):
super().__init__(**params)
self.action_space = params["action_space"]
def memorize(self, last_ob, action, reward, done, ob):
... | 21.952381 | 58 | 0.644252 | 54 | 461 | 5.185185 | 0.574074 | 0.117857 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247289 | 461 | 20 | 59 | 23.05 | 0.806916 | 0 | 0 | 0.142857 | 0 | 0 | 0.02603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0.142857 | 0.071429 | 0.142857 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
93b212f4572b24dd862a6e546d1bd45672c90675 | 205 | py | Python | users/admin.py | Jxiang2/task-manager | f7af07c9f1a9ac6264ced3924c799b3f223dfdc0 | [
"MIT"
] | null | null | null | users/admin.py | Jxiang2/task-manager | f7af07c9f1a9ac6264ced3924c799b3f223dfdc0 | [
"MIT"
] | null | null | null | users/admin.py | Jxiang2/task-manager | f7af07c9f1a9ac6264ced3924c799b3f223dfdc0 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Profile
# register the user
class ProfileAdmin(admin.ModelAdmin):
readonly_fields = ('id','user_status')
admin.site.register(Profile, ProfileAdmin) | 29.285714 | 42 | 0.790244 | 26 | 205 | 6.153846 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112195 | 205 | 7 | 43 | 29.285714 | 0.879121 | 0.082927 | 0 | 0 | 0 | 0 | 0.069519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
93f60abbf7673ed1f636236869e92408111dcd5a | 229 | py | Python | method_of_moments/__init__.py | AlbertFarkhutdinov/method_of_moments | 0a69c63197d7f88a3b57356620b4d84e76543177 | [
"MIT"
] | null | null | null | method_of_moments/__init__.py | AlbertFarkhutdinov/method_of_moments | 0a69c63197d7f88a3b57356620b4d84e76543177 | [
"MIT"
] | null | null | null | method_of_moments/__init__.py | AlbertFarkhutdinov/method_of_moments | 0a69c63197d7f88a3b57356620b4d84e76543177 | [
"MIT"
] | null | null | null | """
This package allows you to work with probability distributions
with a specified mean values and variances.
"""
from .continuous import Beta, GenNBD, Norm
from .discrete import Bernoulli, GPD, HGD, NBD, Poisson, QGD, ZiNBD
| 22.9 | 67 | 0.764192 | 32 | 229 | 5.46875 | 0.90625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161572 | 229 | 9 | 68 | 25.444444 | 0.911458 | 0.462882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
9e0dc3d82b401f605e3b6c19d7243313cd5a7bb4 | 107 | py | Python | functions.py | Fatih032/Discord_botu | bb8e4f037e3bf395590ff581a195f76be5113374 | [
"Apache-2.0"
] | null | null | null | functions.py | Fatih032/Discord_botu | bb8e4f037e3bf395590ff581a195f76be5113374 | [
"Apache-2.0"
] | null | null | null | functions.py | Fatih032/Discord_botu | bb8e4f037e3bf395590ff581a195f76be5113374 | [
"Apache-2.0"
] | null | null | null | from random import randint as r
class Game:
@staticmethod
def zar_at():
return r(1,7) | 17.833333 | 32 | 0.607477 | 16 | 107 | 4 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 0.317757 | 107 | 6 | 33 | 17.833333 | 0.849315 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.2 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
9e20232342907496e610befede2592f3ce3e338e | 341 | py | Python | src/components/game-server/lib/data/model/tictactoe/tictactoe_board.py | rorik/UBU-DMS | 7c3fc38823478054499e233dd36b8b4430d3f3d3 | [
"MIT"
] | null | null | null | src/components/game-server/lib/data/model/tictactoe/tictactoe_board.py | rorik/UBU-DMS | 7c3fc38823478054499e233dd36b8b4430d3f3d3 | [
"MIT"
] | null | null | null | src/components/game-server/lib/data/model/tictactoe/tictactoe_board.py | rorik/UBU-DMS | 7c3fc38823478054499e233dd36b8b4430d3f3d3 | [
"MIT"
] | 1 | 2020-02-07T11:36:04.000Z | 2020-02-07T11:36:04.000Z | from lib.data.model.shared.abstract_board import AbstractBoard
from lib.data.model.shared.cell import Cell
from lib.data.model.shared.player import Player
class TicTacToeBoard(AbstractBoard):
def __init__(self, size):
self.height = self.width = size
self.board = [[Cell(j, i) for i in range(size)] ... | 37.888889 | 77 | 0.733138 | 52 | 341 | 4.711538 | 0.461538 | 0.085714 | 0.134694 | 0.195918 | 0.269388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 341 | 9 | 77 | 37.888889 | 0.856643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f53f814c77c6d99f66b08c3239bd0a44b8943c09 | 145 | py | Python | allaccess/apps.py | ngaurav/aadhaar | 0792701010bdd2a17a2f101876e88bd388defcae | [
"MIT"
] | 33 | 2015-01-06T14:23:23.000Z | 2020-12-09T12:09:34.000Z | allaccess/apps.py | ngaurav/aadhaar | 0792701010bdd2a17a2f101876e88bd388defcae | [
"MIT"
] | 29 | 2015-01-02T14:34:48.000Z | 2021-06-10T18:17:07.000Z | allaccess/apps.py | ngaurav/aadhaar | 0792701010bdd2a17a2f101876e88bd388defcae | [
"MIT"
] | 28 | 2015-01-16T20:51:04.000Z | 2020-07-03T02:51:46.000Z | try:
from django.apps import AppConfig
except ImportError:
AppConfig = object
class AllAccessConfig(AppConfig):
name = 'allaccess'
| 16.111111 | 37 | 0.731034 | 15 | 145 | 7.066667 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 145 | 8 | 38 | 18.125 | 0.913793 | 0 | 0 | 0 | 0 | 0 | 0.062069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f55d8849648dc69305c1e5aafdc6aad4d75c1a22 | 1,814 | py | Python | SRC/engine/subproblemtype.py | usnistgov/OOF3D | 4fd423a48aea9c5dc207520f02de53ae184be74c | [
"X11"
] | 31 | 2015-04-01T15:59:36.000Z | 2022-03-18T20:21:47.000Z | SRC/engine/subproblemtype.py | usnistgov/OOF3D | 4fd423a48aea9c5dc207520f02de53ae184be74c | [
"X11"
] | 3 | 2015-02-06T19:30:24.000Z | 2017-05-25T14:14:31.000Z | SRC/engine/subproblemtype.py | usnistgov/OOF3D | 4fd423a48aea9c5dc207520f02de53ae184be74c | [
"X11"
] | 7 | 2015-01-23T15:19:22.000Z | 2021-06-09T09:03:59.000Z | # -*- python -*-
# This software was produced by NIST, an agency of the U.S. government,
# and by statute is not subject to copyright in the United States.
# Recipients of this software assume all responsibilities associated
# with its operation, modification and maintenance. However, to
# facilitate maintenance we as... | 38.595745 | 80 | 0.727674 | 235 | 1,814 | 5.591489 | 0.565957 | 0.027397 | 0.021309 | 0.027397 | 0.091324 | 0.091324 | 0.091324 | 0.091324 | 0.091324 | 0.091324 | 0 | 0 | 0.214994 | 1,814 | 46 | 81 | 39.434783 | 0.922753 | 0.620728 | 0 | 0.294118 | 0 | 0 | 0.114458 | 0.061747 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0.176471 | 0.176471 | 0.117647 | 0.823529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
f567ce3b3b2d056652020a288393a84815873658 | 103 | py | Python | dit_helpdesk/rules_of_origin/apps.py | uktrade/dit-helpdesk | f5127daa46e920d33ec3f0b982136b65bba0353a | [
"MIT"
] | 3 | 2019-10-24T10:39:38.000Z | 2021-07-13T11:46:18.000Z | dit_helpdesk/rules_of_origin/apps.py | uktrade/dit-helpdesk | f5127daa46e920d33ec3f0b982136b65bba0353a | [
"MIT"
] | 20 | 2020-01-22T11:16:24.000Z | 2022-02-02T10:38:54.000Z | dit_helpdesk/rules_of_origin/apps.py | uktrade/dit-helpdesk | f5127daa46e920d33ec3f0b982136b65bba0353a | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class RulesOfOriginConfig(AppConfig):
name = "rules_of_origin"
| 17.166667 | 37 | 0.786408 | 12 | 103 | 6.583333 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145631 | 103 | 5 | 38 | 20.6 | 0.897727 | 0 | 0 | 0 | 0 | 0 | 0.145631 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
192f4093484c0baf9fba37480641415fbdbc57ed | 45 | py | Python | HSCTF 2020/Pythagorean Tree Fractal 1/Fractal.py | Ishaan514/CTFs | 643bf9b74fe01bdeea519bdf884616bb2a8ed85b | [
"Apache-2.0"
] | null | null | null | HSCTF 2020/Pythagorean Tree Fractal 1/Fractal.py | Ishaan514/CTFs | 643bf9b74fe01bdeea519bdf884616bb2a8ed85b | [
"Apache-2.0"
] | null | null | null | HSCTF 2020/Pythagorean Tree Fractal 1/Fractal.py | Ishaan514/CTFs | 643bf9b74fe01bdeea519bdf884616bb2a8ed85b | [
"Apache-2.0"
] | null | null | null | s = 0
for i in range(50):
s += 2**i
print s | 11.25 | 19 | 0.533333 | 12 | 45 | 2 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0.288889 | 45 | 4 | 20 | 11.25 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.25 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1947c0ba6975ca5be538854bf4908ee0b6e3c15c | 112 | py | Python | apool/testing.py | Delaunay/apool | ac5241215b6407879007ed0c1e84c0657794aafd | [
"BSD-3-Clause"
] | null | null | null | apool/testing.py | Delaunay/apool | ac5241215b6407879007ed0c1e84c0657794aafd | [
"BSD-3-Clause"
] | null | null | null | apool/testing.py | Delaunay/apool | ac5241215b6407879007ed0c1e84c0657794aafd | [
"BSD-3-Clause"
] | null | null | null |
def fun(a, b, c, d):
return a + b + c + d
def inc(a):
return a + 1
def add(a, b):
return a + b
| 9.333333 | 24 | 0.455357 | 24 | 112 | 2.125 | 0.416667 | 0.156863 | 0.117647 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.383929 | 112 | 11 | 25 | 10.181818 | 0.724638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
195e4fb9bb42e4884513e74481dd6cd54b1f87ea | 444 | py | Python | iCount/genomes/__init__.py | zhouyu/iCount | c203a5b2c8fbcc2934bb2100be04d3290497cf7d | [
"MIT"
] | null | null | null | iCount/genomes/__init__.py | zhouyu/iCount | c203a5b2c8fbcc2934bb2100be04d3290497cf7d | [
"MIT"
] | null | null | null | iCount/genomes/__init__.py | zhouyu/iCount | c203a5b2c8fbcc2934bb2100be04d3290497cf7d | [
"MIT"
] | 1 | 2020-06-18T21:01:41.000Z | 2020-06-18T21:01:41.000Z | """.. Line to protect from pydocstyle D205, D400.
Genomes
=======
This module provides access to `Ensembl`_ genome sequence and annotation. Segmentation into genes
and into segments of same type (exon, intron, UTR, ...) is supported.
.. automodule:: iCount.genomes.ensembl
:members:
.. automodule:: iCount.genomes... | 20.181818 | 97 | 0.709459 | 55 | 444 | 5.690909 | 0.709091 | 0.102236 | 0.146965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.162162 | 444 | 21 | 98 | 21.142857 | 0.825269 | 0.878378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1999021796fcbfc3efbf2e76ea32d094a4f0c008 | 700 | py | Python | python/DP/subset.py | hs634/algorithms | e411d747eb27a1c784605e44111de2703f6dde4d | [
"MIT"
] | null | null | null | python/DP/subset.py | hs634/algorithms | e411d747eb27a1c784605e44111de2703f6dde4d | [
"MIT"
] | null | null | null | python/DP/subset.py | hs634/algorithms | e411d747eb27a1c784605e44111de2703f6dde4d | [
"MIT"
] | null | null | null | __author__ = 'harsh'
def find_contiguous_subset(subset):
if len(subset) == 0:
return 0
if len(subset) == 1:
return subset[0]
else:
return max(subset[0] + find_contiguous_subset(subset[1:]), find_contiguous_subset(subset[1:]))
def main():
subset = [4,-1,5,6,-13,2]
k = find... | 18.918919 | 102 | 0.637143 | 108 | 700 | 3.833333 | 0.259259 | 0.202899 | 0.193237 | 0.251208 | 0.468599 | 0.270531 | 0.169082 | 0.169082 | 0.169082 | 0.169082 | 0 | 0.046992 | 0.24 | 700 | 36 | 103 | 19.444444 | 0.731203 | 0 | 0 | 0.333333 | 0 | 0 | 0.007174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
19a07c95e18e9752543e9a273debf29416ec8957 | 78 | py | Python | common/exceptions.py | svorcan/aws-prod-con | 5adb89dc4e7f535624dcbcff833f8da1ab4e0930 | [
"MIT"
] | null | null | null | common/exceptions.py | svorcan/aws-prod-con | 5adb89dc4e7f535624dcbcff833f8da1ab4e0930 | [
"MIT"
] | 8 | 2021-02-02T22:07:43.000Z | 2022-03-11T23:42:53.000Z | common/exceptions.py | stalker92/aws-prod-con | 5adb89dc4e7f535624dcbcff833f8da1ab4e0930 | [
"MIT"
] | null | null | null | class ConfigError(Exception):
"""Configuration loading error."""
pass
| 19.5 | 38 | 0.692308 | 7 | 78 | 7.714286 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 78 | 3 | 39 | 26 | 0.84375 | 0.358974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
5fdeaf7abb03d333412f6ef3291e801cd44653c9 | 153 | py | Python | svmbir/__init__.py | dyang37/svmbir_dncnn | 1a7a4fb37db17d71d4b6ea6c2fe2fff60acca459 | [
"BSD-3-Clause"
] | null | null | null | svmbir/__init__.py | dyang37/svmbir_dncnn | 1a7a4fb37db17d71d4b6ea6c2fe2fff60acca459 | [
"BSD-3-Clause"
] | null | null | null | svmbir/__init__.py | dyang37/svmbir_dncnn | 1a7a4fb37db17d71d4b6ea6c2fe2fff60acca459 | [
"BSD-3-Clause"
] | null | null | null | from .svmbir import *
from .phantom import *
__all__ =['_svmbir_lib_path','_clear_cache','auto_sigma_x','auto_sigma_y', 'calc_weights','project','recon'] | 51 | 108 | 0.75817 | 22 | 153 | 4.636364 | 0.772727 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065359 | 153 | 3 | 108 | 51 | 0.713287 | 0 | 0 | 0 | 0 | 0 | 0.493506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5ff0095ad334b53027cc29464a5f6c5b8f615b36 | 259 | py | Python | zilean/system/zilean_backuper.py | A-Hilaly/zilean | 2b2e87969a0d8064e8b92b07c346a4006f93c795 | [
"Apache-2.0"
] | null | null | null | zilean/system/zilean_backuper.py | A-Hilaly/zilean | 2b2e87969a0d8064e8b92b07c346a4006f93c795 | [
"Apache-2.0"
] | null | null | null | zilean/system/zilean_backuper.py | A-Hilaly/zilean | 2b2e87969a0d8064e8b92b07c346a4006f93c795 | [
"Apache-2.0"
] | null | null | null |
class ZileanBackuper(object):
def __init__(self):
self._machines = None
self._linked_databases = None
@classmethod
def backup_linked_databases(cls):
pass
@classmethod
def backup_database(cls, db):
pass
| 16.1875 | 37 | 0.633205 | 27 | 259 | 5.703704 | 0.592593 | 0.194805 | 0.25974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.293436 | 259 | 15 | 38 | 17.266667 | 0.84153 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0.2 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
272690efda5af4b14e7602b5602ab05e08fae91b | 1,027 | py | Python | saleor/attribute/migrations/0002_auto_20201030_1141.py | enesustundag/saleor | 95ce4b577ca06110f4702e61f554e9d165ef5fd4 | [
"CC-BY-4.0"
] | 1 | 2020-03-14T02:07:53.000Z | 2020-03-14T02:07:53.000Z | saleor/attribute/migrations/0002_auto_20201030_1141.py | enesustundag/saleor | 95ce4b577ca06110f4702e61f554e9d165ef5fd4 | [
"CC-BY-4.0"
] | 5 | 2021-06-10T20:57:04.000Z | 2022-03-12T01:04:33.000Z | saleor/attribute/migrations/0002_auto_20201030_1141.py | enesustundag/saleor | 95ce4b577ca06110f4702e61f554e9d165ef5fd4 | [
"CC-BY-4.0"
] | 1 | 2021-06-07T10:16:35.000Z | 2021-06-07T10:16:35.000Z | # Generated by Django 3.1 on 2020-10-30 11:41
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("attribute", "0001_initial"),
("product", "0137_drop_attribute_models"),
]
operations = [
migrations.AlterModelTable(name="assignedpageattribut... | 41.08 | 82 | 0.712756 | 90 | 1,027 | 8.088889 | 0.433333 | 0.343407 | 0.398352 | 0.42033 | 0.46978 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025463 | 0.158715 | 1,027 | 24 | 83 | 42.791667 | 0.81713 | 0.04187 | 0 | 0 | 1 | 0 | 0.240326 | 0.1222 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.222222 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2729b185809de4f0e56fea8634f8cc36186c35bc | 108 | py | Python | python/testData/intentions/PyAnnotateVariableTypeIntentionTest/typeCommentLocalWithTarget_after.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/intentions/PyAnnotateVariableTypeIntentionTest/typeCommentLocalWithTarget_after.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/intentions/PyAnnotateVariableTypeIntentionTest/typeCommentLocalWithTarget_after.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | from typing import BinaryIO
def func():
with open('file.txt') as var: # type: [BinaryIO]
var
| 15.428571 | 53 | 0.611111 | 15 | 108 | 4.4 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.268519 | 108 | 6 | 54 | 18 | 0.835443 | 0.148148 | 0 | 0 | 0 | 0 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
272ac36bd9ac87aa59a1bbe09d39e47fe12d7507 | 1,075 | py | Python | portal/migrations/0021_auto_20170909_1023.py | nickmvincent/ugc-val-est | b5cceda14ef5830f1befaddfccfd90a694c9677a | [
"MIT"
] | 2 | 2019-11-13T19:56:05.000Z | 2020-09-05T03:21:14.000Z | portal/migrations/0021_auto_20170909_1023.py | nickmvincent/ugc-val-est | b5cceda14ef5830f1befaddfccfd90a694c9677a | [
"MIT"
] | 6 | 2018-03-02T16:49:20.000Z | 2021-06-10T18:55:02.000Z | portal/migrations/0021_auto_20170909_1023.py | nickmvincent/ugc-val-est | b5cceda14ef5830f1befaddfccfd90a694c9677a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-09-09 10:23
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('portal', '0020_revision_user_retained_180'),
]
operations = [
migrations.Ad... | 29.861111 | 58 | 0.629767 | 106 | 1,075 | 6.075472 | 0.433962 | 0.111801 | 0.142857 | 0.167702 | 0.692547 | 0.692547 | 0.692547 | 0.692547 | 0.692547 | 0.692547 | 0 | 0.05102 | 0.270698 | 1,075 | 35 | 59 | 30.714286 | 0.770408 | 0.063256 | 0 | 0.714286 | 1 | 0 | 0.253984 | 0.210159 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.178571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
273ce4c04aaeec8d4f0773a31a05342a05fada80 | 211 | py | Python | utils.py | MartinKondor/MachineLearning | 2deb257796cb63bcc4d13594484e266a93ab7a83 | [
"MIT"
] | null | null | null | utils.py | MartinKondor/MachineLearning | 2deb257796cb63bcc4d13594484e266a93ab7a83 | [
"MIT"
] | null | null | null | utils.py | MartinKondor/MachineLearning | 2deb257796cb63bcc4d13594484e266a93ab7a83 | [
"MIT"
] | null | null | null |
def get_regr_coeffs(X, y):
n = X.shape[0]
p = n*(X**2).sum() - X.sum()**2
a = ( n*(X*y).sum() - X.sum()*y.sum() ) / p
b = ( y.sum()*(X**2).sum() - X.sum()*(X*y).sum() ) / p
return a,b
| 21.1 | 58 | 0.398104 | 43 | 211 | 1.906977 | 0.348837 | 0.243902 | 0.256098 | 0.146341 | 0.219512 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026144 | 0.274882 | 211 | 9 | 59 | 23.444444 | 0.509804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 1 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
274a29ab3b4bec4e9c6a03f267b6e6c6a89ebc9b | 388 | py | Python | cyberserver/servers/utilities/colors.py | csd3345/cybermap-server | f9cad5e59547d30c1e6e13c8b4b39e6ea46746cb | [
"Unlicense",
"MIT"
] | null | null | null | cyberserver/servers/utilities/colors.py | csd3345/cybermap-server | f9cad5e59547d30c1e6e13c8b4b39e6ea46746cb | [
"Unlicense",
"MIT"
] | null | null | null | cyberserver/servers/utilities/colors.py | csd3345/cybermap-server | f9cad5e59547d30c1e6e13c8b4b39e6ea46746cb | [
"Unlicense",
"MIT"
] | null | null | null | import colored
from time import strftime, localtime
def colorize(text, color = 'green'):
return colored.stylize(text, colored.fg(color))
def time_colored(color = "gold_1", reverse = True):
return colored.stylize(
text = strftime('[%Y-%m-%d %H:%M:%S]', localtime()),
styles = [colored.fg(color... | 27.714286 | 95 | 0.659794 | 52 | 388 | 4.884615 | 0.519231 | 0.106299 | 0.165354 | 0.188976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003145 | 0.180412 | 388 | 13 | 96 | 29.846154 | 0.795597 | 0 | 0 | 0 | 0 | 0 | 0.095361 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.222222 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
2751673219c9abe646d29c391be11d7bf5b20712 | 139 | py | Python | pyautofinance/common/timers/stop_session.py | webclinic017/PyAutoFinance | 532cb1c5418dd9eeb07f2f08646170cde1fe0303 | [
"MIT"
] | null | null | null | pyautofinance/common/timers/stop_session.py | webclinic017/PyAutoFinance | 532cb1c5418dd9eeb07f2f08646170cde1fe0303 | [
"MIT"
] | null | null | null | pyautofinance/common/timers/stop_session.py | webclinic017/PyAutoFinance | 532cb1c5418dd9eeb07f2f08646170cde1fe0303 | [
"MIT"
] | 1 | 2022-02-24T09:18:13.000Z | 2022-02-24T09:18:13.000Z | from pyautofinance.common.timers.timer import Timer
class StopSession(Timer):
def execute(self, cerebro):
cerebro.runstop()
| 17.375 | 51 | 0.726619 | 16 | 139 | 6.3125 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179856 | 139 | 7 | 52 | 19.857143 | 0.885965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
2779ac8e41a9e6b4e04c9d2e7df154d9ea3d8bf1 | 655 | py | Python | packit/cli/source_git.py | majamassarini/packit | b319c4ac2321f012c17ab0b2d0ebfb6c8226eff0 | [
"MIT"
] | 81 | 2019-02-07T15:38:34.000Z | 2020-07-16T06:33:02.000Z | packit/cli/source_git.py | majamassarini/packit | b319c4ac2321f012c17ab0b2d0ebfb6c8226eff0 | [
"MIT"
] | 825 | 2019-02-07T15:08:16.000Z | 2020-08-02T08:11:23.000Z | packit/cli/source_git.py | majamassarini/packit | b319c4ac2321f012c17ab0b2d0ebfb6c8226eff0 | [
"MIT"
] | 51 | 2019-02-08T09:56:29.000Z | 2020-06-17T15:34:00.000Z | # Copyright Contributors to the Packit project.
# SPDX-License-Identifier: MIT
"""The 'source-git' subcommand for Packit"""
import click
from packit.cli.update_dist_git import update_dist_git
from packit.cli.update_source_git import update_source_git
from packit.cli.source_git_init import source_git_init
from packit... | 27.291667 | 64 | 0.825954 | 101 | 655 | 5.029703 | 0.29703 | 0.301181 | 0.102362 | 0.149606 | 0.307087 | 0.110236 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094656 | 655 | 23 | 65 | 28.478261 | 0.856661 | 0.258015 | 0 | 0 | 0 | 0 | 0.021097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | true | 0.083333 | 0.416667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
279b4025df7e72f33406766ccb6e87375647ba59 | 9,513 | py | Python | test/unit/mongo_libs/crt_coll_inst.py | deepcoder42/mongo-lib | fa2b65587ab88ee90c9d85f12dd642c6295e0d94 | [
"MIT"
] | null | null | null | test/unit/mongo_libs/crt_coll_inst.py | deepcoder42/mongo-lib | fa2b65587ab88ee90c9d85f12dd642c6295e0d94 | [
"MIT"
] | null | null | null | test/unit/mongo_libs/crt_coll_inst.py | deepcoder42/mongo-lib | fa2b65587ab88ee90c9d85f12dd642c6295e0d94 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# Classification (U)
"""Program: crt_coll_inst.py
Description: Unit testing of crt_coll_inst in mongo_libs.py.
Usage:
test/unit/mongo_libs/crt_coll_inst.py
Arguments:
"""
# Libraries and Global Variables
# Standard
import sys
import os
if sys.version_info < (2, 7):
im... | 21.425676 | 77 | 0.618942 | 1,173 | 9,513 | 4.686275 | 0.102302 | 0.04748 | 0.038021 | 0.049482 | 0.81881 | 0.780426 | 0.764235 | 0.684737 | 0.656358 | 0.648354 | 0 | 0.00558 | 0.284138 | 9,513 | 443 | 78 | 21.474041 | 0.801615 | 0.312309 | 0 | 0.683099 | 0 | 0 | 0.107199 | 0.054384 | 0 | 0 | 0 | 0 | 0.112676 | 1 | 0.140845 | false | 0 | 0.049296 | 0 | 0.21831 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
27af95ef0a5f213822aa053745e3041dcde64ac4 | 302 | py | Python | openprocurement/tender/cfaselectionua/adapters/serializable/numberofbids.py | tarasvaskiv/openprocurement.tender.cfaselectionua | 6c4e1bcff13fd582e745d394c4f5fb0ffd76929e | [
"Apache-2.0"
] | 3 | 2020-03-13T06:44:23.000Z | 2020-11-05T18:25:29.000Z | openprocurement/tender/cfaselectionua/adapters/serializable/numberofbids.py | tarasvaskiv/openprocurement.tender.cfaselectionua | 6c4e1bcff13fd582e745d394c4f5fb0ffd76929e | [
"Apache-2.0"
] | 3 | 2019-02-06T14:19:42.000Z | 2019-03-25T15:05:52.000Z | openprocurement/tender/cfaselectionua/adapters/serializable/numberofbids.py | tarasvaskiv/openprocurement.tender.cfaselectionua | 6c4e1bcff13fd582e745d394c4f5fb0ffd76929e | [
"Apache-2.0"
] | 3 | 2020-10-16T16:25:14.000Z | 2021-05-22T12:26:20.000Z | # /src/openprocurement.tender.openua/openprocurement/tender/openua/models.py:382
from openprocurement.api.adapters import Serializable
class SerializableTenderNumberOfBids(Serializable):
serialized_name = "numberOfBids"
def __call__(self, obj, *args, **kwargs):
return len(obj.bids)
| 30.2 | 80 | 0.774834 | 32 | 302 | 7.15625 | 0.8125 | 0.183406 | 0.235808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011321 | 0.122517 | 302 | 9 | 81 | 33.555556 | 0.85283 | 0.258278 | 0 | 0 | 0 | 0 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
27c9cc7a966bd5b947d8c8375bd55563116d8dee | 2,231 | py | Python | marqeta/response_models/pos.py | marqeta/marqeta-python | 66fa690eb910825c510a391720b0fe717fac0234 | [
"MIT"
] | 21 | 2019-04-12T09:02:17.000Z | 2022-02-18T11:39:06.000Z | marqeta/response_models/pos.py | marqeta/marqeta-python | 66fa690eb910825c510a391720b0fe717fac0234 | [
"MIT"
] | 1 | 2020-07-22T21:27:40.000Z | 2020-07-23T17:38:43.000Z | marqeta/response_models/pos.py | marqeta/marqeta-python | 66fa690eb910825c510a391720b0fe717fac0234 | [
"MIT"
] | 10 | 2019-05-08T14:20:37.000Z | 2021-09-20T18:09:26.000Z | from datetime import datetime, date
from marqeta.response_models import datetime_object
import json
import re
class Pos(object):
def __init__(self, json_response):
self.json_response = json_response
def __str__(self):
return json.dumps(self.json_response, default=self.json_serial)
@stati... | 24.516484 | 79 | 0.694307 | 278 | 2,231 | 5.255396 | 0.208633 | 0.104038 | 0.197125 | 0.184805 | 0.383984 | 0.351129 | 0.232033 | 0.108145 | 0 | 0 | 0 | 0 | 0.209771 | 2,231 | 90 | 80 | 24.788889 | 0.828701 | 0 | 0 | 0.25 | 0 | 0 | 0.126849 | 0.051546 | 0 | 0 | 0 | 0 | 0 | 1 | 0.316667 | false | 0 | 0.066667 | 0.283333 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
27cc3640053952f5e5eb80798d4118441411fc37 | 154 | py | Python | 06 - DataTypes/tuple.py | kuyesu/Scripting-With-Python-BIT-II | d2fd4fa1eb49f48de8a5492a20253cd91b38e826 | [
"MIT"
] | 1 | 2022-02-21T10:03:47.000Z | 2022-02-21T10:03:47.000Z | 06 - DataTypes/tuple.py | kuyesu/Scripting-With-Python-BIT-II | d2fd4fa1eb49f48de8a5492a20253cd91b38e826 | [
"MIT"
] | null | null | null | 06 - DataTypes/tuple.py | kuyesu/Scripting-With-Python-BIT-II | d2fd4fa1eb49f48de8a5492a20253cd91b38e826 | [
"MIT"
] | 1 | 2022-02-02T11:02:24.000Z | 2022-02-02T11:02:24.000Z | """ Tuple"""
names = ("rogers","Joan", "Doreen", "Liz", "Peter" )
print(names)
string_tuple = " ".join(str(name) for name in names)
print(string_tuple) | 19.25 | 52 | 0.636364 | 21 | 154 | 4.571429 | 0.666667 | 0.229167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 154 | 8 | 53 | 19.25 | 0.721805 | 0.032468 | 0 | 0 | 0 | 0 | 0.174825 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
27e3bc98e7f35eb02244190adf639e3a0d0be2e2 | 121 | py | Python | cfml/models/neural_network/__init__.py | carefree0910/carefree-ml | eede4c4672045c4cc39a3b82bd6ddc315f059e88 | [
"MIT"
] | 25 | 2020-05-31T04:44:16.000Z | 2022-03-10T09:07:17.000Z | cfml/models/neural_network/__init__.py | carefree0910/carefree-ml | eede4c4672045c4cc39a3b82bd6ddc315f059e88 | [
"MIT"
] | null | null | null | cfml/models/neural_network/__init__.py | carefree0910/carefree-ml | eede4c4672045c4cc39a3b82bd6ddc315f059e88 | [
"MIT"
] | 2 | 2021-01-09T13:00:53.000Z | 2021-08-10T02:54:41.000Z | from .fcnn_clf import FCNNClassifier
from .fcnn_reg import FCNNRegressor
__all__ = ["FCNNClassifier", "FCNNRegressor"]
| 20.166667 | 45 | 0.801653 | 13 | 121 | 7 | 0.615385 | 0.175824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115702 | 121 | 5 | 46 | 24.2 | 0.850467 | 0 | 0 | 0 | 0 | 0 | 0.223141 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
27e500e6c6c249dcf387790bc4c10c48e3138379 | 251 | py | Python | src/python/WMCore/WMBS/Oracle/Users/GetUserId.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 21 | 2015-11-19T16:18:45.000Z | 2021-12-02T18:20:39.000Z | src/python/WMCore/WMBS/Oracle/Users/GetUserId.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 5,671 | 2015-01-06T14:38:52.000Z | 2022-03-31T22:11:14.000Z | src/python/WMCore/WMBS/Oracle/Users/GetUserId.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 67 | 2015-01-21T15:55:38.000Z | 2022-02-03T19:53:13.000Z | #!/usr/bin/env python
"""
_GetUserId_
Oracle implementation of Users.GetUserId
"""
from WMCore.WMBS.MySQL.Users.GetUserId import GetUserId as MySQLGetUserId
class GetUserId(MySQLGetUserId):
"""
_GetUserId_
Load user pars by ID
"""
| 15.6875 | 73 | 0.721116 | 29 | 251 | 6.103448 | 0.758621 | 0.158192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179283 | 251 | 15 | 74 | 16.733333 | 0.859223 | 0.430279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
7e0d226d5c97af8743530092c79907d7ad811f74 | 150 | py | Python | testData/regex/otherFunc.py | alek-sun/pydantic-pycharm-plugin | 6b07519aadf0ff8b8a644c1f9ede88e09c687c80 | [
"Apache-2.0",
"MIT"
] | 238 | 2019-08-05T12:46:09.000Z | 2022-03-25T08:53:25.000Z | testData/regex/otherFunc.py | alek-sun/pydantic-pycharm-plugin | 6b07519aadf0ff8b8a644c1f9ede88e09c687c80 | [
"Apache-2.0",
"MIT"
] | 415 | 2019-07-15T17:39:35.000Z | 2022-03-31T01:18:38.000Z | testData/regex/otherFunc.py | collerek/pydantic-pycharm-plugin | 7068ece42334cc9fbe927d779d199c86d5139888 | [
"Apache-2.0",
"MIT"
] | 7 | 2019-08-09T01:03:16.000Z | 2022-02-08T03:28:19.000Z | from pydantic import BaseModel, constr
def other_func(regex):
pass
class Model(BaseModel):
abc: str = other_func(regex='<caret>[^a-zA-Z]+')
| 18.75 | 52 | 0.693333 | 22 | 150 | 4.636364 | 0.818182 | 0.176471 | 0.27451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 150 | 7 | 53 | 21.428571 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0.113333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.2 | 0 | 0.8 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
fd67923fb53435f548f177b9e96bf7623190d617 | 3,027 | py | Python | tests/test_vectoriser.py | mishraprafful/serving_model | 86119320970fd1b47ad8fcd481b86d37fbbe466b | [
"Apache-2.0"
] | 1 | 2021-01-08T19:59:55.000Z | 2021-01-08T19:59:55.000Z | tests/test_vectoriser.py | mishraprafful/serving_model | 86119320970fd1b47ad8fcd481b86d37fbbe466b | [
"Apache-2.0"
] | null | null | null | tests/test_vectoriser.py | mishraprafful/serving_model | 86119320970fd1b47ad8fcd481b86d37fbbe466b | [
"Apache-2.0"
] | null | null | null | import json
import unittest
from flask import Flask, request, Response
class BasicTests(unittest.TestCase):
# setup and teardown
def setUp(self):
# setting required environment variables
global application, request_data
from app.app import app
self.application = app.test_cli... | 27.770642 | 79 | 0.622398 | 341 | 3,027 | 5.369501 | 0.205279 | 0.048061 | 0.061169 | 0.08793 | 0.73621 | 0.73621 | 0.73621 | 0.712179 | 0.683779 | 0.683779 | 0 | 0.018142 | 0.253386 | 3,027 | 108 | 80 | 28.027778 | 0.792035 | 0.029072 | 0 | 0.558824 | 0 | 0 | 0.110429 | 0.01227 | 0 | 0 | 0 | 0 | 0.102941 | 1 | 0.132353 | false | 0.014706 | 0.058824 | 0 | 0.205882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fd9ddfd3e01a21f76dd8bba439ecdcae90ff6fcb | 93 | py | Python | lewis_emulators/moxa12xx/interfaces/__init__.py | ISISComputingGroup/EPICS-DeviceEmulator | 026c2a14a16bb204ea7527e3765daa182cafa814 | [
"BSD-3-Clause"
] | 2 | 2020-10-20T16:49:13.000Z | 2021-02-19T10:41:44.000Z | lewis_emulators/moxa12xx/interfaces/__init__.py | ISISComputingGroup/EPICS-DeviceEmulator | 026c2a14a16bb204ea7527e3765daa182cafa814 | [
"BSD-3-Clause"
] | 9 | 2019-03-22T15:35:15.000Z | 2021-07-28T11:05:43.000Z | lewis_emulators/moxa12xx/interfaces/__init__.py | ISISComputingGroup/EPICS-DeviceEmulator | 026c2a14a16bb204ea7527e3765daa182cafa814 | [
"BSD-3-Clause"
] | 1 | 2020-10-21T17:02:44.000Z | 2020-10-21T17:02:44.000Z | from .modbus_interface import Moxa1210ModbusInterface
__all__ = ['Moxa1210ModbusInterface']
| 23.25 | 53 | 0.849462 | 7 | 93 | 10.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094118 | 0.086022 | 93 | 3 | 54 | 31 | 0.776471 | 0 | 0 | 0 | 0 | 0 | 0.247312 | 0.247312 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.