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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b9a3c9dc013a44c3896c7d18feeaf026d0c69629 | 915 | py | Python | tests/test_base_models.py | danertor/devsocial | d0d307c1512b4233a6bb1f7cb71cf749e16b7daa | [
"MIT"
] | null | null | null | tests/test_base_models.py | danertor/devsocial | d0d307c1512b4233a6bb1f7cb71cf749e16b7daa | [
"MIT"
] | null | null | null | tests/test_base_models.py | danertor/devsocial | d0d307c1512b4233a6bb1f7cb71cf749e16b7daa | [
"MIT"
] | null | null | null | # pylint: disable=missing-module-docstring, disable=missing-class-docstring, missing-function-docstring
# pylint: disable=unused-variable, unused-argument
import pytest
from devsocial.models.base_developer import BaseDeveloper
def test_base_create_basedeveloper():
dev: BaseDeveloper = BaseDeveloper('homer')
... | 28.59375 | 103 | 0.757377 | 102 | 915 | 6.617647 | 0.411765 | 0.231111 | 0.065185 | 0.071111 | 0.207407 | 0.207407 | 0.207407 | 0.207407 | 0 | 0 | 0 | 0.012804 | 0.146448 | 915 | 31 | 104 | 29.516129 | 0.851472 | 0.206557 | 0 | 0.111111 | 0 | 0 | 0.036011 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 1 | 0.222222 | true | 0 | 0.111111 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b9afe9e7c35c4bcfa854fd6c1d09b2bba89a3236 | 430 | py | Python | container_service_extension/client/template.py | biyiklioglu/container-service-extension | 7974a485b7242432d2f4485dbb78c340e5929c5e | [
"Apache-2.0"
] | null | null | null | container_service_extension/client/template.py | biyiklioglu/container-service-extension | 7974a485b7242432d2f4485dbb78c340e5929c5e | [
"Apache-2.0"
] | null | null | null | container_service_extension/client/template.py | biyiklioglu/container-service-extension | 7974a485b7242432d2f4485dbb78c340e5929c5e | [
"Apache-2.0"
] | null | null | null | # container-service-extension
# Copyright (c) 2020 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: BSD-2-Clause
from container_service_extension.client.cse_client.templates_api import TemplatesApi # noqa: E501
class Template:
def __init__(self, client):
self._templates_api = TemplatesApi(cl... | 30.714286 | 98 | 0.762791 | 56 | 430 | 5.571429 | 0.660714 | 0.115385 | 0.160256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021858 | 0.148837 | 430 | 13 | 99 | 33.076923 | 0.830601 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b9bb3653c53ddb00b1a61d28e8fb633e234a1ae8 | 2,697 | py | Python | nixio/pycore/source.py | JiriVanek/nixpy | 25ccda7ddeeb81b67409a9a9d1a2fd09beddbc12 | [
"BSD-3-Clause"
] | null | null | null | nixio/pycore/source.py | JiriVanek/nixpy | 25ccda7ddeeb81b67409a9a9d1a2fd09beddbc12 | [
"BSD-3-Clause"
] | null | null | null | nixio/pycore/source.py | JiriVanek/nixpy | 25ccda7ddeeb81b67409a9a9d1a2fd09beddbc12 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2016, German Neuroinformatics Node (G-Node)
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted under the terms of the BSD License. See
# LICENSE file in the root of the Project.
from __future__ import (absolute_import, division, ... | 32.107143 | 76 | 0.667037 | 347 | 2,697 | 4.933718 | 0.305476 | 0.014603 | 0.05257 | 0.064252 | 0.154206 | 0.135514 | 0.095794 | 0.07243 | 0.07243 | 0.07243 | 0 | 0.006429 | 0.250278 | 2,697 | 83 | 77 | 32.493976 | 0.840257 | 0.195032 | 0 | 0.166667 | 0 | 0 | 0.022967 | 0 | 0 | 0 | 0 | 0.012048 | 0 | 1 | 0.229167 | false | 0 | 0.104167 | 0.0625 | 0.541667 | 0.020833 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
b9c857ae5f7173dd1fa667114d761f98ac7785bd | 426 | py | Python | db/validators/job_posting.py | matchd-ch/matchd-backend | 84be4aab1b4708cae50a8988301b15df877c8db0 | [
"Apache-2.0"
] | 1 | 2022-03-03T09:55:57.000Z | 2022-03-03T09:55:57.000Z | db/validators/job_posting.py | matchd-ch/matchd-backend | 84be4aab1b4708cae50a8988301b15df877c8db0 | [
"Apache-2.0"
] | 7 | 2022-02-09T10:44:53.000Z | 2022-03-28T03:29:43.000Z | db/validators/job_posting.py | matchd-ch/matchd-backend | 84be4aab1b4708cae50a8988301b15df877c8db0 | [
"Apache-2.0"
] | null | null | null | from django.core.exceptions import ValidationError
class JobPostingFormStepValidator:
def __init__(self, min_required_step=1):
self.min_required_step = min_required_step
def validate(self, job_posting):
if job_posting.form_step < self.min_required_step:
raise ValidationError(code... | 32.769231 | 88 | 0.694836 | 49 | 426 | 5.714286 | 0.632653 | 0.157143 | 0.214286 | 0.203571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003086 | 0.239437 | 426 | 12 | 89 | 35.5 | 0.861111 | 0 | 0 | 0 | 0 | 0 | 0.129108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b9d3420a6c5133659f439486f8464f162c3b57bf | 7,941 | py | Python | test/test_convert_jef.py | kryshac/pyembroidery | 54987b6919b99f4c59f6a1b88b99ec5cb635ba71 | [
"MIT"
] | 83 | 2018-08-20T22:52:18.000Z | 2022-03-30T07:44:37.000Z | test/test_convert_jef.py | kryshac/pyembroidery | 54987b6919b99f4c59f6a1b88b99ec5cb635ba71 | [
"MIT"
] | 81 | 2018-08-12T15:43:23.000Z | 2022-01-05T14:59:51.000Z | test/test_convert_jef.py | kryshac/pyembroidery | 54987b6919b99f4c59f6a1b88b99ec5cb635ba71 | [
"MIT"
] | 21 | 2019-02-25T13:31:37.000Z | 2022-03-08T08:44:05.000Z | from __future__ import print_function
import unittest
from pattern_for_tests import *
class TestConverts(unittest.TestCase):
def position_equals(self, stitches, j, k):
self.assertEqual(stitches[j][:1], stitches[k][:1])
def test_convert_jef_to_u01(self):
file1 = "convert_u01.jef"
fi... | 39.507463 | 118 | 0.67057 | 1,040 | 7,941 | 4.809615 | 0.073077 | 0.095962 | 0.10076 | 0.145542 | 0.79968 | 0.765494 | 0.713315 | 0.698721 | 0.680328 | 0.638745 | 0 | 0.030779 | 0.222642 | 7,941 | 201 | 119 | 39.507463 | 0.779524 | 0 | 0 | 0.473684 | 0 | 0 | 0.056031 | 0 | 0 | 0 | 0.000504 | 0 | 0.239766 | 1 | 0.076023 | false | 0 | 0.017544 | 0 | 0.099415 | 0.064327 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b9d584a9ed845b9fe1984f58f7f3495be6b537d5 | 248 | py | Python | .history/tests_20191109184910.py | kerwin-wong/brand_demo | d5df3d4cdc773a221304c95ff71e7bcfce3a1603 | [
"MIT"
] | null | null | null | .history/tests_20191109184910.py | kerwin-wong/brand_demo | d5df3d4cdc773a221304c95ff71e7bcfce3a1603 | [
"MIT"
] | null | null | null | .history/tests_20191109184910.py | kerwin-wong/brand_demo | d5df3d4cdc773a221304c95ff71e7bcfce3a1603 | [
"MIT"
] | null | null | null | '''
@Author: your name
@Date: 2019-11-09 18:49:02
@LastEditTime: 2019-11-09 18:49:10
@LastEditors: Please set LastEditors
@Description: In User Settings Edit
@FilePath: \project_2c:\Users\HCK\Desktop\brand promoting\brand_demo\tests.py
'''
print(1) | 27.555556 | 77 | 0.758065 | 40 | 248 | 4.65 | 0.825 | 0.064516 | 0.086022 | 0.107527 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 0.092742 | 248 | 9 | 78 | 27.555556 | 0.693333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
b9e085155f8d8133b404806d8c021205937b199e | 203 | py | Python | skill_selectors/telegram_selector/connector.py | stefanrer/commonbsecret | bb527f9b3e460124ccc307c0d39baba9a2490fcd | [
"Apache-2.0"
] | null | null | null | skill_selectors/telegram_selector/connector.py | stefanrer/commonbsecret | bb527f9b3e460124ccc307c0d39baba9a2490fcd | [
"Apache-2.0"
] | null | null | null | skill_selectors/telegram_selector/connector.py | stefanrer/commonbsecret | bb527f9b3e460124ccc307c0d39baba9a2490fcd | [
"Apache-2.0"
] | null | null | null | from typing import Callable, Dict
class TelegramSelector:
async def send(self, payload: Dict, callback: Callable):
await callback(task_id=payload["task_id"], response=[payload["payload"]])
| 29 | 81 | 0.729064 | 25 | 203 | 5.84 | 0.68 | 0.082192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152709 | 203 | 6 | 82 | 33.833333 | 0.848837 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b9e3bd10daa617346a6d3edd282cf610d6b378ee | 395 | py | Python | problems/179.Largest_Number/solution.py | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | problems/179.Largest_Number/solution.py | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | problems/179.Largest_Number/solution.py | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | class Solution:
# @param num, a list of integers
# @return a string
def largestNumber(self, num):
num = [str(x) for x in num]
num.sort(cmp=lambda x, y: cmp(y + x, x + y))
return ''.join(num).lstrip('0') or '0'
def largestNumber2(self, num):
return ''.join(sorted(itertoo... | 32.916667 | 111 | 0.564557 | 64 | 395 | 3.484375 | 0.453125 | 0.035874 | 0.089686 | 0.098655 | 0.161435 | 0.161435 | 0.161435 | 0.161435 | 0.161435 | 0 | 0 | 0.017123 | 0.260759 | 395 | 11 | 112 | 35.909091 | 0.746575 | 0.118987 | 0 | 0 | 0 | 0 | 0.011594 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b9ec648a529289d20f4059c29ecebfee231b4f6c | 192 | py | Python | coursera/algorithmic-toolbox/week-1/sum-of-two-digits/solution.py | kamilsk/algo | 08b446760543844d62ecb98c98cd641203a60932 | [
"MIT"
] | 4 | 2019-07-26T21:29:09.000Z | 2022-01-09T01:21:46.000Z | coursera/algorithmic-toolbox/week-1/sum-of-two-digits/solution.py | kamilsk/algo | 08b446760543844d62ecb98c98cd641203a60932 | [
"MIT"
] | null | null | null | coursera/algorithmic-toolbox/week-1/sum-of-two-digits/solution.py | kamilsk/algo | 08b446760543844d62ecb98c98cd641203a60932 | [
"MIT"
] | null | null | null | # python3
def sum_of_two_digits(first: int, second: int) -> int:
return first + second
if __name__ == '__main__':
a, b = map(int, input().split())
print(sum_of_two_digits(a, b))
| 21.333333 | 54 | 0.645833 | 30 | 192 | 3.666667 | 0.633333 | 0.090909 | 0.145455 | 0.254545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006494 | 0.197917 | 192 | 8 | 55 | 24 | 0.707792 | 0.036458 | 0 | 0 | 0 | 0 | 0.043716 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.2 | 0.4 | 0.2 | 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 | 0 | 1 | 0 | 0 | 0 | 3 |
b9eee31af0f8c66ad90ea62fd16aaa97ee438a37 | 4,588 | py | Python | tests/domainprops_test.py | vikpe/domainprops | b58513153ed7ff40a058777c83c8bf338af5fb50 | [
"MIT"
] | 1 | 2020-05-07T13:47:02.000Z | 2020-05-07T13:47:02.000Z | tests/domainprops_test.py | vikpe/domainprops | b58513153ed7ff40a058777c83c8bf338af5fb50 | [
"MIT"
] | null | null | null | tests/domainprops_test.py | vikpe/domainprops | b58513153ed7ff40a058777c83c8bf338af5fb50 | [
"MIT"
] | 1 | 2020-07-26T05:33:51.000Z | 2020-07-26T05:33:51.000Z | import unittest
from domainprops import domainprops
class DomainTest(unittest.TestCase):
def test_sld(self):
self.assertEqual("foo", domainprops.sld("foo.com"))
self.assertEqual("foo.bar", domainprops.sld("foo.bar.com"))
def test_bld(self):
self.assertEqual("foo", domainprops.bld("fo... | 44.543689 | 83 | 0.680471 | 574 | 4,588 | 5.348432 | 0.092334 | 0.107166 | 0.220195 | 0.198371 | 0.799349 | 0.612378 | 0.409446 | 0.239414 | 0.239414 | 0.239414 | 0 | 0.014205 | 0.156059 | 4,588 | 102 | 84 | 44.980392 | 0.774019 | 0 | 0 | 0 | 0 | 0 | 0.148431 | 0 | 0 | 0 | 0 | 0 | 0.759036 | 1 | 0.180723 | false | 0 | 0.024096 | 0 | 0.216867 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b9f56f991defef88bc2a27aaa313f20b61b43849 | 1,103 | py | Python | tests.py | funkybob/json_default | 902cee5d3300228c3ae6accf8a6644702064b82f | [
"MIT"
] | 6 | 2017-10-27T23:08:45.000Z | 2020-10-27T12:16:32.000Z | tests.py | funkybob/json_default | 902cee5d3300228c3ae6accf8a6644702064b82f | [
"MIT"
] | null | null | null | tests.py | funkybob/json_default | 902cee5d3300228c3ae6accf8a6644702064b82f | [
"MIT"
] | null | null | null |
import datetime
import json
from decimal import Decimal
from unittest import TestCase
from json_default import default
class DefaultTestCase(TestCase):
def encode(self, obj):
return json.dumps(obj, default=default)
def test_simple(self):
self.assertEqual(self.encode({'a': 1}), '{"a": 1}')
... | 31.514286 | 90 | 0.6165 | 154 | 1,103 | 4.363636 | 0.305195 | 0.0625 | 0.169643 | 0.223214 | 0.434524 | 0.348214 | 0.348214 | 0.247024 | 0.247024 | 0.247024 | 0 | 0.108108 | 0.194923 | 1,103 | 34 | 91 | 32.441176 | 0.648649 | 0 | 0 | 0 | 0 | 0 | 0.145191 | 0.040835 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.291667 | false | 0 | 0.208333 | 0.041667 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b9f7e9771b9375bc3a4d9fa0efd3f54ceeafc7ef | 126,612 | py | Python | sdk/python/lib/pulumi/runtime/proto/provider_pb2.py | BearerPipelineTest/pulumi | c8a36883d451fa0827f2e116c3935894f25c6faa | [
"Apache-2.0"
] | null | null | null | sdk/python/lib/pulumi/runtime/proto/provider_pb2.py | BearerPipelineTest/pulumi | c8a36883d451fa0827f2e116c3935894f25c6faa | [
"Apache-2.0"
] | null | null | null | sdk/python/lib/pulumi/runtime/proto/provider_pb2.py | BearerPipelineTest/pulumi | c8a36883d451fa0827f2e116c3935894f25c6faa | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: provider.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_... | 32.257834 | 9,729 | 0.599059 | 11,816 | 126,612 | 6.134817 | 0.042485 | 0.046904 | 0.053594 | 0.038544 | 0.693209 | 0.647519 | 0.632386 | 0.618439 | 0.6119 | 0.584875 | 0 | 0.039485 | 0.302096 | 126,612 | 3,924 | 9,730 | 32.266055 | 0.78087 | 0.022968 | 0 | 0.780132 | 1 | 0.004503 | 0.148578 | 0.10909 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.001854 | 0 | 0.001854 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6a14376de403749bc23f21048e056f488bea4e69 | 375 | py | Python | bin/mk_php_site.py | Rondore/sitewrangler | a67a140262281c1f6be48c55f86544e476d7d7b4 | [
"MIT"
] | null | null | null | bin/mk_php_site.py | Rondore/sitewrangler | a67a140262281c1f6be48c55f86544e476d7d7b4 | [
"MIT"
] | null | null | null | bin/mk_php_site.py | Rondore/sitewrangler | a67a140262281c1f6be48c55f86544e476d7d7b4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
from libsw import php, nginx, user
def make_php_site(user, domain, php_version):
php.make_vhost(user, domain, php_version)
nginx.make_vhost(user, domain)
if __name__ == '__main__':
user = user.select_user()
domain = input('New Domain: ')
php_version = php.select_v... | 23.4375 | 45 | 0.709333 | 55 | 375 | 4.472727 | 0.418182 | 0.203252 | 0.260163 | 0.243902 | 0.252033 | 0.252033 | 0.252033 | 0 | 0 | 0 | 0 | 0.003226 | 0.173333 | 375 | 15 | 46 | 25 | 0.790323 | 0.056 | 0 | 0 | 0 | 0 | 0.056657 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6a19bb094dfe97de67fa5e4fc511e0b055cbeef0 | 237 | py | Python | sitemonitor/utils/exceptions.py | louisliv/django-sitemonitor | 793702edf0dfdbeb80ac9a06f683b0b203380b32 | [
"MIT"
] | null | null | null | sitemonitor/utils/exceptions.py | louisliv/django-sitemonitor | 793702edf0dfdbeb80ac9a06f683b0b203380b32 | [
"MIT"
] | null | null | null | sitemonitor/utils/exceptions.py | louisliv/django-sitemonitor | 793702edf0dfdbeb80ac9a06f683b0b203380b32 | [
"MIT"
] | null | null | null | class TempKeyNotFoundException(Exception):
def __init__(self, message):
# Call the base class constructor with the parameters it needs
super().__init__(message)
self.message = message
| 33.857143 | 70 | 0.628692 | 23 | 237 | 6.130435 | 0.695652 | 0.156028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.308017 | 237 | 7 | 71 | 33.857143 | 0.859756 | 0.253165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6a1e66a3c39aa513b51caf47d08be906c21bda44 | 149 | py | Python | src/sound_fx/sound_fx.py | phf-souza/fgv-jogo-de-nave | f6a55054a85e7d228b5405fca188ee44116cdff4 | [
"MIT"
] | null | null | null | src/sound_fx/sound_fx.py | phf-souza/fgv-jogo-de-nave | f6a55054a85e7d228b5405fca188ee44116cdff4 | [
"MIT"
] | null | null | null | src/sound_fx/sound_fx.py | phf-souza/fgv-jogo-de-nave | f6a55054a85e7d228b5405fca188ee44116cdff4 | [
"MIT"
] | null | null | null | import pygame
pygame.mixer.music.load('src/sound_fx/tracks/main_track.mp3')
pew = pygame.mixer.Sound('src/sound_fx/fx/pew.wav')
pew.set_volume(0.1) | 24.833333 | 61 | 0.771812 | 28 | 149 | 3.964286 | 0.642857 | 0.198198 | 0.18018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.053691 | 149 | 6 | 62 | 24.833333 | 0.765957 | 0 | 0 | 0 | 0 | 0 | 0.38 | 0.38 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6a2c46fc99abc1379f42a062978f004e3c0c6919 | 2,199 | py | Python | RLBotPack/Botimus&Bumblebee/tools/vector_math.py | L0laapk3/RLBotPack | f54038475d2a57428f3784560755f96bfcf8015f | [
"MIT"
] | 13 | 2019-05-25T20:25:51.000Z | 2022-03-19T13:36:23.000Z | RLBotPack/Botimus&Bumblebee/tools/vector_math.py | L0laapk3/RLBotPack | f54038475d2a57428f3784560755f96bfcf8015f | [
"MIT"
] | 53 | 2019-06-07T13:31:59.000Z | 2022-03-28T22:53:47.000Z | RLBotPack/Botimus&Bumblebee/tools/vector_math.py | L0laapk3/RLBotPack | f54038475d2a57428f3784560755f96bfcf8015f | [
"MIT"
] | 78 | 2019-06-30T08:42:13.000Z | 2022-03-23T20:11:42.000Z | from rlutilities.linear_algebra import vec3, norm, normalize, dot, mat3, angle_between, vec2, xy
from rlutilities.simulation import Car, Ball
def to_vec3(obj) -> vec3:
if isinstance(obj, vec3):
return obj
elif isinstance(obj, vec2):
return vec3(obj)
elif hasattr(obj, "position"):
... | 29.32 | 116 | 0.632106 | 333 | 2,199 | 4.078078 | 0.222222 | 0.035346 | 0.02651 | 0.044183 | 0.388071 | 0.370398 | 0.190722 | 0.190722 | 0.119293 | 0.119293 | 0 | 0.047897 | 0.221464 | 2,199 | 74 | 117 | 29.716216 | 0.745327 | 0.025466 | 0 | 0 | 0 | 0 | 0.004847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.311111 | false | 0 | 0.044444 | 0.222222 | 0.755556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6a2faa334a36a3dc8a7c65c804f11619052eef72 | 132 | py | Python | src/python/module/cnnef/core/__init__.py | DerThorsten/cnnef | 08c5ffa30c7c86ac5efe48c12f735a7680f6420d | [
"MIT"
] | null | null | null | src/python/module/cnnef/core/__init__.py | DerThorsten/cnnef | 08c5ffa30c7c86ac5efe48c12f735a7680f6420d | [
"MIT"
] | null | null | null | src/python/module/cnnef/core/__init__.py | DerThorsten/cnnef | 08c5ffa30c7c86ac5efe48c12f735a7680f6420d | [
"MIT"
] | null | null | null | from __future__ import print_function
from _core import *
__all__ = []
for key in _core.__dict__.keys():
__all__.append(key)
| 14.666667 | 37 | 0.734848 | 18 | 132 | 4.333333 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174242 | 132 | 8 | 38 | 16.5 | 0.715596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6a4743bf084d4b2fd75290969b0591a1ac9d1b19 | 1,215 | py | Python | src/slpcc/examples/jr1al.py | paulmanns/slpcc | 1642a41f7d0529ab4d1cdf50217253d8f7517ed5 | [
"BSD-3-Clause"
] | 1 | 2021-12-03T16:17:30.000Z | 2021-12-03T16:17:30.000Z | src/slpcc/examples/jr1al.py | paulmanns/slpcc | 1642a41f7d0529ab4d1cdf50217253d8f7517ed5 | [
"BSD-3-Clause"
] | null | null | null | src/slpcc/examples/jr1al.py | paulmanns/slpcc | 1642a41f7d0529ab4d1cdf50217253d8f7517ed5 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
class Jr1AL:
def __init__(self):
self.rho = 100.
self.lam = -1.
self.n0 = 1
self.n12 = 1
# x[0] x[1] x[2]
# z1 z2 s1
self.l = np.array([-500., 0., 0.])
self.u = np.array([500., ... | 33.75 | 109 | 0.376955 | 187 | 1,215 | 2.40107 | 0.203209 | 0.218263 | 0.046771 | 0.218263 | 0.4098 | 0.329621 | 0.316258 | 0.316258 | 0.300668 | 0.138085 | 0 | 0.094499 | 0.416461 | 1,215 | 35 | 110 | 34.714286 | 0.538787 | 0.08642 | 0 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.037037 | 0.111111 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
dbe053f4bdd3af25bc459d302eee9a92faca0c77 | 955 | py | Python | app/auth/forms.py | VictorKMaina/mkondoni | 8a03691bc29b8ae71ec60c32b549bb3980f500e0 | [
"MIT"
] | 2 | 2020-12-03T18:39:18.000Z | 2020-12-03T18:39:21.000Z | app/auth/forms.py | VictorKMaina/mkondoni | 8a03691bc29b8ae71ec60c32b549bb3980f500e0 | [
"MIT"
] | null | null | null | app/auth/forms.py | VictorKMaina/mkondoni | 8a03691bc29b8ae71ec60c32b549bb3980f500e0 | [
"MIT"
] | 2 | 2020-11-04T08:02:24.000Z | 2020-11-04T08:23:48.000Z | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, SubmitField,SelectField
from wtforms.validators import Required, Email, EqualTo
import email_validator
from ..models import Voter
from wtforms import ValidationError
class LoginForm(FlaskForm):
passport = StringField('ID ... | 47.75 | 203 | 0.717277 | 104 | 955 | 6.509615 | 0.528846 | 0.106352 | 0.050222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146597 | 955 | 20 | 204 | 47.75 | 0.830675 | 0 | 0 | 0 | 0 | 0 | 0.183054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.266667 | 0.4 | 0 | 0.866667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
dbf685e5f859eada86f32e920b83d2a234e621d6 | 203 | py | Python | custodian/__init__.py | gpetretto/custodian | d6276f37009eafd3806b6d73ed29c53acf1bbadd | [
"MIT"
] | null | null | null | custodian/__init__.py | gpetretto/custodian | d6276f37009eafd3806b6d73ed29c53acf1bbadd | [
"MIT"
] | null | null | null | custodian/__init__.py | gpetretto/custodian | d6276f37009eafd3806b6d73ed29c53acf1bbadd | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
__author__ = "Shyue Ping Ong, William Davidson Richards, Stephen Dacek, " \
"Xiaohui Qu"
__version__ = "2018.8.10"
from .custodian import Custodian
| 25.375 | 75 | 0.729064 | 24 | 203 | 5.625 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042945 | 0.197044 | 203 | 7 | 76 | 29 | 0.785276 | 0 | 0 | 0 | 0 | 0 | 0.37931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
dbf88b534098291999f6ceda22cdca0edbbc6a85 | 8,390 | py | Python | qiskit/quantum_info/states/quantum_state.py | lerongil/qiskit-terra | a25af2a2378bc3d4f5ec73b948d048d1b707454c | [
"Apache-2.0"
] | 3 | 2019-11-20T08:15:28.000Z | 2020-11-01T15:32:57.000Z | qiskit/quantum_info/states/quantum_state.py | lerongil/qiskit-terra | a25af2a2378bc3d4f5ec73b948d048d1b707454c | [
"Apache-2.0"
] | 4 | 2019-05-13T15:28:46.000Z | 2019-12-19T20:47:02.000Z | qiskit/quantum_info/states/quantum_state.py | lerongil/qiskit-terra | a25af2a2378bc3d4f5ec73b948d048d1b707454c | [
"Apache-2.0"
] | 1 | 2021-07-07T16:55:41.000Z | 2021-07-07T16:55:41.000Z | # -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM 2017, 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any... | 28.634812 | 87 | 0.604172 | 980 | 8,390 | 5.042857 | 0.229592 | 0.034601 | 0.033387 | 0.023068 | 0.353298 | 0.297248 | 0.272966 | 0.245245 | 0.216512 | 0.201335 | 0 | 0.003807 | 0.311204 | 8,390 | 292 | 88 | 28.732877 | 0.850666 | 0.41764 | 0 | 0.267717 | 0 | 0 | 0.055607 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259843 | false | 0.086614 | 0.03937 | 0.062992 | 0.503937 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
dbfdaa8b2179aea60e3c1ec3ba118060a6a7c8f6 | 758 | py | Python | pca/lib/naive_bayes_classifier_exception.py | efulet/pca | cfca0e366789cced6ea62e44eff5019544895932 | [
"MIT"
] | null | null | null | pca/lib/naive_bayes_classifier_exception.py | efulet/pca | cfca0e366789cced6ea62e44eff5019544895932 | [
"MIT"
] | null | null | null | pca/lib/naive_bayes_classifier_exception.py | efulet/pca | cfca0e366789cced6ea62e44eff5019544895932 | [
"MIT"
] | null | null | null | """
@created_at 2014-07-17
@author Exequiel Fuentes <efulet@gmail.com>
@author Brian Keith <briankeithn@gmail.com>
"""
# Se recomienda seguir los siguientes estandares:
# 1. Para codificacion: PEP 8 - Style Guide for Python Code (http://legacy.python.org/dev/peps/pep-0008/)
# 2. Para documentacion: PEP 257 - Docst... | 30.32 | 107 | 0.722955 | 92 | 758 | 5.858696 | 0.717391 | 0.050093 | 0.059369 | 0.070501 | 0.107607 | 0.107607 | 0.107607 | 0 | 0 | 0 | 0 | 0.035032 | 0.171504 | 758 | 24 | 108 | 31.583333 | 0.823248 | 0.725594 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e022acd7b05e0c041f991072bf0d0a85b37ed379 | 918 | py | Python | examples/python/misc.py | BigBSB/Gpufit | 1e91957ec22c4bcdda623bd871bc54372d227196 | [
"MIT"
] | 228 | 2017-08-10T17:46:44.000Z | 2022-03-29T07:06:06.000Z | examples/python/misc.py | BigBSB/Gpufit | 1e91957ec22c4bcdda623bd871bc54372d227196 | [
"MIT"
] | 90 | 2017-08-14T11:41:19.000Z | 2022-03-30T12:22:59.000Z | examples/python/misc.py | BigBSB/Gpufit | 1e91957ec22c4bcdda623bd871bc54372d227196 | [
"MIT"
] | 76 | 2017-08-16T15:20:08.000Z | 2022-03-16T06:28:38.000Z | """
General helper functions for the examples.
"""
import numpy as np
def gaussian_peak_1d(x, p):
"""
Generates a 1D Gaussian peak.
See http://gpufit.readthedocs.io/en/latest/fit_model_functions.html#d-gaussian-function
:param x: x grid position values
:param p: parameters (amplitude, center pos... | 25.5 | 108 | 0.61329 | 143 | 918 | 3.881119 | 0.363636 | 0.108108 | 0.016216 | 0.082883 | 0.342342 | 0.342342 | 0.342342 | 0.342342 | 0.342342 | 0.342342 | 0 | 0.027972 | 0.221133 | 918 | 35 | 109 | 26.228571 | 0.748252 | 0.605664 | 0 | 0.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e03aea87ef4a79789dfe8e6eeb6fe3901f04e9f4 | 1,078 | py | Python | src/haydi/base/uset.py | Kobzol/haydi | 4b49230d33ce02edff207b49a5db4ef6e605200c | [
"MIT"
] | 5 | 2017-08-09T17:12:31.000Z | 2020-06-14T13:13:05.000Z | src/haydi/base/uset.py | Kobzol/haydi | 4b49230d33ce02edff207b49a5db4ef6e605200c | [
"MIT"
] | 13 | 2017-01-31T15:42:13.000Z | 2017-12-04T11:24:26.000Z | src/haydi/base/uset.py | Kobzol/haydi | 4b49230d33ce02edff207b49a5db4ef6e605200c | [
"MIT"
] | 2 | 2017-08-21T09:49:10.000Z | 2021-02-28T13:51:05.000Z | from .basictypes import Atom
from .domain import Domain
class USet(Domain):
"""
A domain of unlabeled objects.
USet is a domain of :class:``haydi.Atom``. It is a basic block for
canonical forms. See section TODO ref.
"""
step_jumps = True
strict = True
counter = 1
def __init__(... | 22.93617 | 70 | 0.586271 | 145 | 1,078 | 4.2 | 0.413793 | 0.08867 | 0.029557 | 0.062397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006649 | 0.302412 | 1,078 | 46 | 71 | 23.434783 | 0.803191 | 0.127087 | 0 | 0 | 0 | 0 | 0.034896 | 0 | 0 | 0 | 0 | 0.021739 | 0.034483 | 1 | 0.241379 | false | 0 | 0.068966 | 0.068966 | 0.62069 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
e061150955dc226002909938f2c4eea5090459ee | 433 | py | Python | ovos_plugin_manager/language.py | NeonJarbas/OVOS-plugin-manager | d25e29ef9c543d949e673cbedf92c7e7def7b446 | [
"Apache-2.0"
] | null | null | null | ovos_plugin_manager/language.py | NeonJarbas/OVOS-plugin-manager | d25e29ef9c543d949e673cbedf92c7e7def7b446 | [
"Apache-2.0"
] | null | null | null | ovos_plugin_manager/language.py | NeonJarbas/OVOS-plugin-manager | d25e29ef9c543d949e673cbedf92c7e7def7b446 | [
"Apache-2.0"
] | null | null | null | from ovos_plugin_manager.utils import load_plugin, find_plugins, PluginTypes
def find_tx_plugins():
return find_plugins(PluginTypes.TRANSLATE)
def load_tx_plugin(module_name):
return load_plugin(module_name, PluginTypes.TRANSLATE)
def find_lang_detect_plugins():
return find_plugins(PluginTypes.LANG_DE... | 21.65 | 76 | 0.817552 | 59 | 433 | 5.59322 | 0.305085 | 0.145455 | 0.193939 | 0.145455 | 0.533333 | 0.321212 | 0.321212 | 0.321212 | 0.321212 | 0 | 0 | 0 | 0.115473 | 433 | 19 | 77 | 22.789474 | 0.861619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0 | 0.111111 | 0.444444 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
e06dfe6434aa37f9e05ec2068a7ae638f14b1c47 | 188 | py | Python | users/models/utils/mturk.py | heolin123/funcrowd | 20167783de208394c09ed0429a5f02ec6dd79c42 | [
"MIT"
] | null | null | null | users/models/utils/mturk.py | heolin123/funcrowd | 20167783de208394c09ed0429a5f02ec6dd79c42 | [
"MIT"
] | 11 | 2019-11-12T23:26:45.000Z | 2021-06-10T17:37:23.000Z | users/models/utils/mturk.py | heolin123/funcrowd | 20167783de208394c09ed0429a5f02ec6dd79c42 | [
"MIT"
] | null | null | null | import re
def verify_worker_id(worker_id):
if len(worker_id) >= 10 and len(worker_id) <= 16:
if re.match("[A-Za-z0-9]*", worker_id):
return True
return False
| 20.888889 | 53 | 0.606383 | 31 | 188 | 3.483871 | 0.612903 | 0.37037 | 0.203704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043165 | 0.260638 | 188 | 8 | 54 | 23.5 | 0.733813 | 0 | 0 | 0 | 0 | 0 | 0.06383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e06e59898773e138cba0770d305a3c927dfea87e | 93 | py | Python | fuzzpayload/fileToList.py | devarahalli/openApiFuzz | 035db27e872a03a015abaa10f8ecf970678bec82 | [
"MIT"
] | null | null | null | fuzzpayload/fileToList.py | devarahalli/openApiFuzz | 035db27e872a03a015abaa10f8ecf970678bec82 | [
"MIT"
] | null | null | null | fuzzpayload/fileToList.py | devarahalli/openApiFuzz | 035db27e872a03a015abaa10f8ecf970678bec82 | [
"MIT"
] | 2 | 2019-09-23T16:08:26.000Z | 2019-10-22T08:33:22.000Z | with open ('all-attacks-unix.txt', 'r' ) as f :
lines = f.read().splitlines()
print lines
| 18.6 | 47 | 0.634409 | 15 | 93 | 3.933333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172043 | 93 | 4 | 48 | 23.25 | 0.766234 | 0 | 0 | 0 | 0 | 0 | 0.225806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e07a31b0c7d8ae969475cb6613324cbd92f759c7 | 294 | py | Python | api/config/database_config.py | bonybody/2020_hew_app | d09cdafd55348ed70424a443d8619114cae3d27f | [
"MIT"
] | 1 | 2021-06-03T02:54:51.000Z | 2021-06-03T02:54:51.000Z | api/config/database_config.py | bonybody/agri | d09cdafd55348ed70424a443d8619114cae3d27f | [
"MIT"
] | 19 | 2021-01-01T09:48:51.000Z | 2021-04-08T09:11:30.000Z | api/config/database_config.py | bonybody/agri | d09cdafd55348ed70424a443d8619114cae3d27f | [
"MIT"
] | 1 | 2021-09-28T11:54:25.000Z | 2021-09-28T11:54:25.000Z | import os
SQLALCHEMY_DATABASE_URI = 'postgresql://{user}:{password}@{host}/{db_name}?charset=utf8'.format(**{
'user': os.environ['POSTGRES_USER'],
'password': os.environ['POSTGRES_PASSWORD'],
'host': os.environ['DB_HOST'],
'db_name': os.environ['POSTGRES_DATABASE']
})
| 32.666667 | 100 | 0.659864 | 35 | 294 | 5.314286 | 0.457143 | 0.193548 | 0.274194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003922 | 0.132653 | 294 | 8 | 101 | 36.75 | 0.72549 | 0 | 0 | 0 | 0 | 0 | 0.479021 | 0.20979 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.285714 | 0.142857 | 0 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
0eb48d6f9ffc11e18ac67dc238dae8ff3bd9074b | 758 | py | Python | pdm/project/metadata.py | orions-stardom/pdm | 005e6ed1549330479c12d9152fab14c5f04e22cd | [
"MIT"
] | null | null | null | pdm/project/metadata.py | orions-stardom/pdm | 005e6ed1549330479c12d9152fab14c5f04e22cd | [
"MIT"
] | null | null | null | pdm/project/metadata.py | orions-stardom/pdm | 005e6ed1549330479c12d9152fab14c5f04e22cd | [
"MIT"
] | null | null | null | from collections.abc import MutableMapping
from pdm.pep517.metadata import Metadata
class MutableMetadata(Metadata, MutableMapping):
"""
A subclass of Metadata that delegates some modifying methods
to the underlying toml parsed dict.
"""
def __init__(self, filepath, data=None) -> None:
s... | 23.6875 | 64 | 0.653034 | 91 | 758 | 5.087912 | 0.472527 | 0.155508 | 0.084233 | 0.069114 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005348 | 0.259894 | 758 | 31 | 65 | 24.451613 | 0.819964 | 0.126649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0ecf6bb7ec39bec252c9c0841a2ceae74d079428 | 1,038 | py | Python | apps/portalbase/macros/page/urlcalled/1_main.py | jumpscale7/jumpscale_portal | 8c99265e48f85643f8a52bc40a23f5266fb09231 | [
"Apache-2.0"
] | 2 | 2016-04-14T14:05:01.000Z | 2016-04-21T07:20:36.000Z | apps/portalbase/macros/page/urlcalled/1_main.py | Jumpscale/jumpscale6_core | 0502ddc1abab3c37ed982c142d21ea3955d471d3 | [
"BSD-2-Clause"
] | 13 | 2016-03-07T12:07:15.000Z | 2018-02-28T13:11:59.000Z | apps/portalbase/macros/page/urlcalled/1_main.py | Jumpscale/jumpscale6_core | 0502ddc1abab3c37ed982c142d21ea3955d471d3 | [
"BSD-2-Clause"
] | 5 | 2016-03-08T07:49:51.000Z | 2018-10-19T13:57:04.000Z |
def main(j, args, params, tags, tasklet):
params.merge(args)
page = args.page
e = args.requestContext.env
addr = j.core.portal.active.addr
querystr = e["QUERY_STRING"]
querystr = querystr.replace("&format=text", "")
querystr = querystr.replace("&authkey=,", "")
querystr = queryst... | 29.657143 | 107 | 0.588632 | 115 | 1,038 | 5.286957 | 0.469565 | 0.131579 | 0.189145 | 0.197368 | 0.381579 | 0.309211 | 0.210526 | 0.210526 | 0.210526 | 0.210526 | 0 | 0 | 0.237958 | 1,038 | 34 | 108 | 30.529412 | 0.768647 | 0.029865 | 0 | 0.08 | 0 | 0 | 0.21194 | 0 | 0 | 0 | 0 | 0.029412 | 0 | 1 | 0.08 | false | 0 | 0 | 0.04 | 0.16 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0ed408fb349e64c829da16bd908f3ac078d91119 | 740 | py | Python | .pycharm_helpers/python_stubs/-583653458/_crypt.py | pyy1988/management-system | 3dee81b4abd54b1c869a509bdd30e09c8b91d05f | [
"Apache-2.0"
] | null | null | null | .pycharm_helpers/python_stubs/-583653458/_crypt.py | pyy1988/management-system | 3dee81b4abd54b1c869a509bdd30e09c8b91d05f | [
"Apache-2.0"
] | null | null | null | .pycharm_helpers/python_stubs/-583653458/_crypt.py | pyy1988/management-system | 3dee81b4abd54b1c869a509bdd30e09c8b91d05f | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
# module _crypt
# from /home/pyy2/.virtualenvs/pyy3.5/lib/python3.5/lib-dynload/_crypt.cpython-35m-x86_64-linux-gnu.so
# by generator 1.145
# no doc
# no imports
# functions
def crypt(*args, **kwargs): # real signature unknown
"""
Hash a *word* with the given *salt* and return the hashed pas... | 26.428571 | 102 | 0.689189 | 110 | 740 | 4.536364 | 0.745455 | 0.016032 | 0.052104 | 0.06012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032368 | 0.206757 | 740 | 27 | 103 | 27.407407 | 0.817717 | 0.809459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
0ef84124fd20d4ce51500733ac44dc3750081af6 | 196 | py | Python | peekextn/__init__.py | vadivelmurugank/peekextn | dc487cc6a334ccc374c228341605084ade5d2a02 | [
"MIT"
] | null | null | null | peekextn/__init__.py | vadivelmurugank/peekextn | dc487cc6a334ccc374c228341605084ade5d2a02 | [
"MIT"
] | null | null | null | peekextn/__init__.py | vadivelmurugank/peekextn | dc487cc6a334ccc374c228341605084ade5d2a02 | [
"MIT"
] | null | null | null | """
peekextn package contains peeksrc and fileextn modules.
peekexnt is the file extensions database
"""
import os
import sys
__all__ = ["peeksrc"]
from . import peeksrc
__version__="0.1"
| 10.888889 | 55 | 0.734694 | 25 | 196 | 5.44 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012422 | 0.178571 | 196 | 17 | 56 | 11.529412 | 0.832298 | 0.494898 | 0 | 0 | 0 | 0 | 0.11236 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1607be0f57f9f8956a42e7e33e52532851c699bf | 638 | py | Python | src/ml_service/app.py | arekmano/JusticeAI | a996a8903f7d05d5b5c275a1a394d0f55664f299 | [
"MIT"
] | 1 | 2020-06-11T21:35:14.000Z | 2020-06-11T21:35:14.000Z | src/ml_service/app.py | mihaiqc/JusticeAI | 311a080112b17cfb50b445df1a803c6a320c5405 | [
"MIT"
] | 1 | 2017-09-24T22:54:09.000Z | 2017-09-24T22:54:09.000Z | src/ml_service/app.py | mihaiqc/JusticeAI | 311a080112b17cfb50b445df1a803c6a320c5405 | [
"MIT"
] | null | null | null | from flask import Flask, request, jsonify
from web.ml_controller import MlController
app = Flask(__name__)
@app.route("/predict", methods=['POST'])
def classify_claim_category():
input_json = request.get_json()
return jsonify(MlController.predict_outcome(input_json))
@app.route("/weights", methods=['GET'])... | 24.538462 | 60 | 0.744514 | 81 | 638 | 5.580247 | 0.395062 | 0.070796 | 0.221239 | 0.106195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10815 | 638 | 25 | 61 | 25.52 | 0.794376 | 0 | 0 | 0 | 0 | 0 | 0.07837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.1875 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
161832859f8b6c0fee94aba0730a691988ac90e1 | 3,165 | py | Python | scrapers/scrape-tweets.py | oztalha/News-Commentary-Tweets-of-Elites | cd93caccd7a725e9c34f3bf7be6f0b9ecd88faf1 | [
"MIT"
] | 5 | 2015-01-18T04:53:38.000Z | 2018-12-18T09:28:58.000Z | scrapers/scrape-tweets.py | oztalha/News-Commentary-Tweets-of-Elites | cd93caccd7a725e9c34f3bf7be6f0b9ecd88faf1 | [
"MIT"
] | null | null | null | scrapers/scrape-tweets.py | oztalha/News-Commentary-Tweets-of-Elites | cd93caccd7a725e9c34f3bf7be6f0b9ecd88faf1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 13 15:05:35 2015
@author: Talha Oz @tozCSS
"""
import pandas as pd
from bs4 import BeautifulSoup
import os
def nediyor_news():
df = pd.DataFrame(columns=('twhandle', 'twtext', 'title', 'dt'))
errors = []
for html in (os.listdir('news/nediyor_news/')):
... | 33.670213 | 113 | 0.507109 | 376 | 3,165 | 4.226064 | 0.268617 | 0.052863 | 0.071743 | 0.079295 | 0.760856 | 0.753933 | 0.716174 | 0.661422 | 0.595972 | 0.572058 | 0 | 0.017274 | 0.323223 | 3,165 | 93 | 114 | 34.032258 | 0.724556 | 0.026224 | 0 | 0.605634 | 0 | 0 | 0.130362 | 0.007316 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042254 | null | null | 0.126761 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1629437f0d3436af92c37675ac71a98e706b3aad | 501 | py | Python | lambdata_tomfox1/what_to_do.py | tomfox1/lambdata | 63abf251172c9bd28f5d8d02c7284f316298cbc5 | [
"MIT"
] | null | null | null | lambdata_tomfox1/what_to_do.py | tomfox1/lambdata | 63abf251172c9bd28f5d8d02c7284f316298cbc5 | [
"MIT"
] | 4 | 2020-03-24T17:21:08.000Z | 2021-06-02T00:09:05.000Z | lambdata_tomfox1/what_to_do.py | tomfox1/lambdata | 63abf251172c9bd28f5d8d02c7284f316298cbc5 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
class Cake:
"""example"""
x=2
def __init__(self):
self.baked = False
def bake(self):
self.baked = True
print("All done!")
class Datacleaner:
""""class for cleaning our data"""
def __init__(self, df):
self.df = df
d... | 18.555556 | 50 | 0.576846 | 68 | 501 | 4.102941 | 0.558824 | 0.086022 | 0.078853 | 0.086022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005714 | 0.301397 | 501 | 26 | 51 | 19.269231 | 0.791429 | 0.131737 | 0 | 0 | 0 | 0 | 0.021583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0.0625 | 0.125 | 0 | 0.625 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
1639d7f0f2f5ff8e0915c8332d7c47c50305a1f3 | 105 | py | Python | types_.py | RKelln/GON-lightning | c39e530be33b2b8c257da69d2ea0a3e96a5ea060 | [
"MIT"
] | null | null | null | types_.py | RKelln/GON-lightning | c39e530be33b2b8c257da69d2ea0a3e96a5ea060 | [
"MIT"
] | null | null | null | types_.py | RKelln/GON-lightning | c39e530be33b2b8c257da69d2ea0a3e96a5ea060 | [
"MIT"
] | null | null | null | from typing import List, Callable, Union, Any, TypeVar, Tuple, Optional
Tensor = TypeVar('torch.tensor') | 35 | 71 | 0.761905 | 14 | 105 | 5.714286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12381 | 105 | 3 | 72 | 35 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0.113208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1643c1c0391ed9db6ff9896898c68f9967b8c1dd | 219 | py | Python | setup.py | heinemml/co2meter | 85db5a6be043d4645801a010098bdea96e2a0ad1 | [
"MIT"
] | 74 | 2017-01-14T10:17:37.000Z | 2022-03-21T20:26:14.000Z | setup.py | heinemml/co2meter | 85db5a6be043d4645801a010098bdea96e2a0ad1 | [
"MIT"
] | 5 | 2017-04-09T13:41:48.000Z | 2021-01-20T10:28:59.000Z | setup.py | heinemml/co2meter | 85db5a6be043d4645801a010098bdea96e2a0ad1 | [
"MIT"
] | 22 | 2017-04-06T19:28:06.000Z | 2021-03-21T05:41:31.000Z | from distutils.core import setup
setup(name='CO2Meter',
version='2.3',
py_modules=['CO2Meter'],
url='https://github.com/heinemml/CO2Meter',
description='Library to access USB CO2Meters'
)
| 24.333333 | 51 | 0.652968 | 26 | 219 | 5.461538 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.205479 | 219 | 8 | 52 | 27.375 | 0.781609 | 0 | 0 | 0 | 0 | 0 | 0.392694 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
164d1fcd306d8c453c66fe045925f665017a4818 | 297 | py | Python | mundo1/aula05.py | fdossantos95/CURSO-DE-PYTHON | 27315b27895f3cea9734302310d66c579254e521 | [
"MIT"
] | null | null | null | mundo1/aula05.py | fdossantos95/CURSO-DE-PYTHON | 27315b27895f3cea9734302310d66c579254e521 | [
"MIT"
] | null | null | null | mundo1/aula05.py | fdossantos95/CURSO-DE-PYTHON | 27315b27895f3cea9734302310d66c579254e521 | [
"MIT"
] | null | null | null | '''Instalando o PyCharm.
Digite no navegador 'PyCharm' >> acessar o site da Jetbrains >> Download Now >> a versão gratuita é a Community >> executar >> Sim >> Next >> Next >> 32 ou 64 bits >> marcar a flag .py >> Next >> uninstall >> Clicar a flag 'Run PyCharm Community Edition' >> finish >> OK
| 74.25 | 270 | 0.680135 | 43 | 297 | 4.697674 | 0.767442 | 0.049505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016736 | 0.195286 | 297 | 3 | 271 | 99 | 0.828452 | 0 | 0 | 0 | 0 | 0.5 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
16541827660c31db84f05a358624a98b4d046652 | 10,042 | py | Python | vision/object_detection/matchers/argmax_matcher_test.py | TeamAutonomousCarOffenburg/TACO_2018 | ebb63e466578fc3911269d4a714ebff0a516dbf6 | [
"BSD-3-Clause"
] | 1 | 2019-09-11T23:06:25.000Z | 2019-09-11T23:06:25.000Z | vision/object_detection/matchers/argmax_matcher_test.py | TeamAutonomousCarOffenburg/TACO_2018 | ebb63e466578fc3911269d4a714ebff0a516dbf6 | [
"BSD-3-Clause"
] | null | null | null | vision/object_detection/matchers/argmax_matcher_test.py | TeamAutonomousCarOffenburg/TACO_2018 | ebb63e466578fc3911269d4a714ebff0a516dbf6 | [
"BSD-3-Clause"
] | 1 | 2019-04-08T09:52:24.000Z | 2019-04-08T09:52:24.000Z | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 41.155738 | 80 | 0.652061 | 1,267 | 10,042 | 4.861878 | 0.130229 | 0.080195 | 0.068182 | 0.064286 | 0.778084 | 0.748214 | 0.726948 | 0.675162 | 0.658442 | 0.648214 | 0 | 0.027484 | 0.246365 | 10,042 | 243 | 81 | 41.325103 | 0.786469 | 0.08335 | 0 | 0.67033 | 0 | 0 | 0.000871 | 0 | 0 | 0 | 0 | 0 | 0.131868 | 1 | 0.065934 | false | 0 | 0.016484 | 0 | 0.087912 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
16860115b73e54faad9e87b10a4ff8b2659fcf8e | 497 | py | Python | dyslexia/ocr/tesseract.py | YounessDataV/batch9_dyslexia | ec40ac0b79e7269ddc543e55ddc7a241ca313524 | [
"MIT"
] | null | null | null | dyslexia/ocr/tesseract.py | YounessDataV/batch9_dyslexia | ec40ac0b79e7269ddc543e55ddc7a241ca313524 | [
"MIT"
] | null | null | null | dyslexia/ocr/tesseract.py | YounessDataV/batch9_dyslexia | ec40ac0b79e7269ddc543e55ddc7a241ca313524 | [
"MIT"
] | null | null | null | import pytesseract
def extract_text_from_image(img, lang='fra'):
"""Retrieves the text on an image using the
tesseract backend.
tesseract must be installed
Parameters
----------
img : array like or Image
Source image
lang: str, default 'fra'
Language to use
Returns
... | 19.88 | 56 | 0.599598 | 59 | 497 | 4.932203 | 0.627119 | 0.04811 | 0.123711 | 0.164948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.299799 | 497 | 25 | 57 | 19.88 | 0.836207 | 0.573441 | 0 | 0 | 0 | 0 | 0.02 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
16adadf404e522bf5f495e4025bcebc94adb9102 | 739 | py | Python | tsx/api/api.py | ElisaBayra/tsx | a03e959362ce5e9cef114dba585950c4e64cae7c | [
"MIT"
] | null | null | null | tsx/api/api.py | ElisaBayra/tsx | a03e959362ce5e9cef114dba585950c4e64cae7c | [
"MIT"
] | null | null | null | tsx/api/api.py | ElisaBayra/tsx | a03e959362ce5e9cef114dba585950c4e64cae7c | [
"MIT"
] | null | null | null | from flask import Flask, request, session, g, redirect, url_for, abort, render_template, flash
import tsx.api.lpi_data
from tsx.api.util import setup_db
import tsx.config
import uuid
from flask_cors import CORS
import tsx.api.upload
import tsx.api.lpi_data
import tsx.api.data_import
import tsx.api.misc
# import tsx.ap... | 24.633333 | 94 | 0.786198 | 126 | 739 | 4.460317 | 0.31746 | 0.117438 | 0.128114 | 0.163701 | 0.263345 | 0.149466 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094723 | 739 | 29 | 95 | 25.482759 | 0.84006 | 0.064953 | 0 | 0.105263 | 0 | 0 | 0.061135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.578947 | 0 | 0.578947 | 0.210526 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
16b0e4420599cf381361511b212081e775aa3dec | 579 | py | Python | geode/python/test_frozen.py | jjqcat/geode | 157cc904c113cc5e29a1ffe7c091a83b8ec2cf8e | [
"BSD-3-Clause"
] | 75 | 2015-02-08T22:04:31.000Z | 2022-02-26T14:31:43.000Z | geode/python/test_frozen.py | bantamtools/geode | d906f1230b14953b68af63aeec2f7b0418d5fdfd | [
"BSD-3-Clause"
] | 15 | 2015-01-08T15:11:38.000Z | 2021-09-05T13:27:22.000Z | geode/python/test_frozen.py | bantamtools/geode | d906f1230b14953b68af63aeec2f7b0418d5fdfd | [
"BSD-3-Clause"
] | 22 | 2015-03-11T16:43:13.000Z | 2021-02-15T09:37:51.000Z | #!/usr/bin/env python
from __future__ import with_statement
from geode.python.Frozen import Frozen,Immutable
def test_frozen():
a = Frozen()
try:
a.x = 0
assert False
except TypeError:
pass
with a.thaw():
a.x = 0
a.x = 1
try:
a.y = 0
assert False
except TypeError:
pass
def t... | 14.121951 | 48 | 0.597582 | 86 | 579 | 3.94186 | 0.302326 | 0.035398 | 0.044248 | 0.265487 | 0.60177 | 0.60177 | 0.60177 | 0.60177 | 0.60177 | 0.283186 | 0 | 0.02 | 0.309154 | 579 | 40 | 49 | 14.475 | 0.8275 | 0.034542 | 0 | 0.805556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 1 | 0.055556 | false | 0.138889 | 0.055556 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
16b46eeae3046d4fc773ede54e4d77167e48c731 | 296 | py | Python | python/unittest/unittest_ex.py | hainvit/dev | 95f02c4c93c488deb8e0eaaa4a6602083369104a | [
"MIT"
] | null | null | null | python/unittest/unittest_ex.py | hainvit/dev | 95f02c4c93c488deb8e0eaaa4a6602083369104a | [
"MIT"
] | null | null | null | python/unittest/unittest_ex.py | hainvit/dev | 95f02c4c93c488deb8e0eaaa4a6602083369104a | [
"MIT"
] | null | null | null | import unittest
class TestStringMethods(unittest.TestCase):
def test_upper(self):
self.assertEqual('foo'.upper(), 'FOO')
def test_isupper(self):
self.assertTrue('Foo'.isupper())
self.assertTrue('FOO'.isupper())
if __name__ == '__main__':
unittest.main()
| 18.5 | 46 | 0.648649 | 32 | 296 | 5.6875 | 0.5 | 0.076923 | 0.186813 | 0.263736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199324 | 296 | 15 | 47 | 19.733333 | 0.767932 | 0 | 0 | 0 | 0 | 0 | 0.067568 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
16c3398fbd39c46ae9d4c16a951d66651c42c12b | 192 | py | Python | myPrint.py | sgondala/RecommenderSystems | 679670fddca0b7213e302fa90b92e09016d86ee4 | [
"MIT"
] | null | null | null | myPrint.py | sgondala/RecommenderSystems | 679670fddca0b7213e302fa90b92e09016d86ee4 | [
"MIT"
] | null | null | null | myPrint.py | sgondala/RecommenderSystems | 679670fddca0b7213e302fa90b92e09016d86ee4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
def myPrint(fileName, string):
"""
Prints in a file, as soon as the function is called
"""
f = open(fileName, "a")
print >> f, string
f.close() | 21.333333 | 55 | 0.552083 | 27 | 192 | 3.925926 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007246 | 0.28125 | 192 | 9 | 56 | 21.333333 | 0.76087 | 0.385417 | 0 | 0 | 0 | 0 | 0.009709 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
16dd71443e791f0f0a9661538e920016e4299660 | 1,570 | py | Python | githubsurvivor/timeutils.py | richo/githubsurvivor | 43c8648d9b956372de669e0d5b45844d24a72583 | [
"MIT"
] | null | null | null | githubsurvivor/timeutils.py | richo/githubsurvivor | 43c8648d9b956372de669e0d5b45844d24a72583 | [
"MIT"
] | null | null | null | githubsurvivor/timeutils.py | richo/githubsurvivor | 43c8648d9b956372de669e0d5b45844d24a72583 | [
"MIT"
] | null | null | null | "Time and timezone helpers"
from datetime import datetime, timedelta, tzinfo
import time
def with_local_tz(dt):
"""
Returns a copy of a datetime with the local timezone attached. No conversion
happens; `datetime` is assumed to already represent a local time.
Use this function when interoperating with... | 28.545455 | 82 | 0.673248 | 210 | 1,570 | 4.980952 | 0.414286 | 0.022945 | 0.031549 | 0.034417 | 0.032505 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006515 | 0.217834 | 1,570 | 54 | 83 | 29.074074 | 0.845277 | 0.307006 | 0 | 0 | 0 | 0 | 0.023719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.071429 | 0.107143 | 0.607143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
16ebbba4926f968765fc22990f1a1ee7dbe4c727 | 757 | py | Python | xumm/resource/kyc_status.py | xdvlabs/xumm-sdk-py | c92066a6e9738e402e0ae1627dd21fbc6b3bead1 | [
"MIT"
] | 4 | 2022-01-29T11:22:06.000Z | 2022-03-01T03:36:59.000Z | xumm/resource/kyc_status.py | CASL-AE/xumm-py | dbe040f409ffc5f918086a12f190ef289e709d22 | [
"MIT"
] | 4 | 2022-01-14T22:49:02.000Z | 2022-01-18T17:32:21.000Z | xumm/resource/kyc_status.py | CASL-AE/xumm-py | dbe040f409ffc5f918086a12f190ef289e709d22 | [
"MIT"
] | 2 | 2022-03-01T03:32:35.000Z | 2022-03-20T17:11:56.000Z | #!/usr/bin/env python
# coding: utf-8
from xumm.resource import XummResource
class KycStatusResource(XummResource):
@classmethod
def get_url(cls, id: str = None) -> str:
"""
Gets the GET url of this KycStatusResource
:param id: A string id.
:type: str
:return: The GE... | 25.233333 | 94 | 0.607662 | 88 | 757 | 5.181818 | 0.443182 | 0.04386 | 0.078947 | 0.22807 | 0.54386 | 0.54386 | 0.372807 | 0.372807 | 0.372807 | 0.372807 | 0 | 0.007435 | 0.2893 | 757 | 29 | 95 | 26.103448 | 0.840149 | 0.383091 | 0 | 0.25 | 0 | 0 | 0.056757 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
bc6301a035674b0559f97413a0e1496f94c891a3 | 30,429 | py | Python | autotest/gcore/vsifile.py | jpapadakis/gdal | f07aa15fd65af36b04291303cc6834c87f662814 | [
"MIT"
] | 18 | 2021-01-27T00:07:35.000Z | 2022-03-25T22:20:13.000Z | autotest/gcore/vsifile.py | jpapadakis/gdal | f07aa15fd65af36b04291303cc6834c87f662814 | [
"MIT"
] | 4 | 2019-07-18T15:49:23.000Z | 2021-10-19T22:56:50.000Z | autotest/gcore/vsifile.py | jpapadakis/gdal | f07aa15fd65af36b04291303cc6834c87f662814 | [
"MIT"
] | 2 | 2019-12-20T07:43:13.000Z | 2021-04-16T22:45:29.000Z | #!/usr/bin/env pytest
# -*- coding: utf-8 -*-
###############################################################################
# $Id$
#
# Project: GDAL/OGR Test Suite
# Purpose: Test VSI file primitives
# Author: Even Rouault <even dot rouault at spatialys.com>
#
#####################################################... | 34.5 | 327 | 0.64593 | 3,218 | 30,429 | 6.007458 | 0.158484 | 0.025347 | 0.558659 | 0.728326 | 0.561194 | 0.475533 | 0.439789 | 0.420184 | 0.378181 | 0.351231 | 0 | 0.17849 | 0.165204 | 30,429 | 881 | 328 | 34.53916 | 0.582553 | 0.102994 | 0 | 0.377049 | 0 | 0.004098 | 0.187297 | 0.078424 | 0 | 1 | 0.002614 | 0.001135 | 0.239754 | 1 | 0.063525 | false | 0 | 0.014344 | 0.002049 | 0.086066 | 0.004098 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bc7179ab154774566b8bf4c9fdb0722d9cc38592 | 384 | py | Python | bert/__init__.py | breadbread1984/bert-for-tf2 | fbe48ebe2e6a699fab80cae23dd4493c4939251b | [
"MIT"
] | 2 | 2019-10-25T22:32:35.000Z | 2020-02-24T14:20:45.000Z | bert/__init__.py | breadbread1984/bert-for-tf2 | fbe48ebe2e6a699fab80cae23dd4493c4939251b | [
"MIT"
] | null | null | null | bert/__init__.py | breadbread1984/bert-for-tf2 | fbe48ebe2e6a699fab80cae23dd4493c4939251b | [
"MIT"
] | 1 | 2019-10-25T22:32:37.000Z | 2019-10-25T22:32:37.000Z | # coding=utf-8
#
# created by kpe on 15.Mar.2019 at 15:28
#
from __future__ import division, absolute_import, print_function
from .version import __version__
from .attention import AttentionLayer
from .layer import Layer
from .model import BertModelLayer
from .tokenization import FullTokenizer
from .loader import S... | 24 | 84 | 0.825521 | 52 | 384 | 5.807692 | 0.673077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032738 | 0.125 | 384 | 15 | 85 | 25.6 | 0.866071 | 0.132813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
bc7cc5dd06a2c979b0d69f03d331603289c18ba5 | 229 | py | Python | logger/logger_settings.py | catalinnega/Cryptocurrencies-TA-on-Dash | 498f152e06fe959e2c9672bd4d862820e6155884 | [
"MIT"
] | null | null | null | logger/logger_settings.py | catalinnega/Cryptocurrencies-TA-on-Dash | 498f152e06fe959e2c9672bd4d862820e6155884 | [
"MIT"
] | null | null | null | logger/logger_settings.py | catalinnega/Cryptocurrencies-TA-on-Dash | 498f152e06fe959e2c9672bd4d862820e6155884 | [
"MIT"
] | null | null | null | FORMAT = '%(asctime)s %(name)-12s %(funcName)-8s %(message)s'
DATE_FORMAT = '%m-%d %H:%M'
MAX_SIZE_BYTES = 5*1024*1024
DFT_PATH = '/home/nega/tmp/myapp.log'
FILEMODE = 'w'
CONSOLE_FORMAT = '%(name)-5s %(funcName)-8s %(message)s'
| 32.714286 | 61 | 0.659389 | 38 | 229 | 3.842105 | 0.736842 | 0.136986 | 0.232877 | 0.246575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068293 | 0.104803 | 229 | 6 | 62 | 38.166667 | 0.643902 | 0 | 0 | 0 | 0 | 0 | 0.537118 | 0.104803 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bc8c2595cdc2d8e08f9f880694bc03b7e7910252 | 301 | py | Python | config.py | chamoddeshanbot/Shazam-Telegram-Bot | 6e80a0b934b9df6b6125e1d9715f216395f40b1d | [
"Apache-2.0"
] | null | null | null | config.py | chamoddeshanbot/Shazam-Telegram-Bot | 6e80a0b934b9df6b6125e1d9715f216395f40b1d | [
"Apache-2.0"
] | null | null | null | config.py | chamoddeshanbot/Shazam-Telegram-Bot | 6e80a0b934b9df6b6125e1d9715f216395f40b1d | [
"Apache-2.0"
] | null | null | null | class Config:
API_ID = "9049867" # 🤖 Same As APP_ID. Get It From My.telegram.org.
API_HASH = "972c0f2e94973b5ffa9a89cb34e5671b" # 🤖 Get It From My.telegram.org.
BOT_TOKEN = "5149412762:AAF1w1IwWC65J5_7Lj5yCs-6iRBhhaP2qvM" # 🤖 Get It From @BotFather (Telegram) By Sending /newbot Command.
| 60.2 | 130 | 0.734219 | 42 | 301 | 5.214286 | 0.666667 | 0.068493 | 0.123288 | 0.100457 | 0.200913 | 0.200913 | 0 | 0 | 0 | 0 | 0 | 0.183267 | 0.166113 | 301 | 4 | 131 | 75.25 | 0.677291 | 0.468439 | 0 | 0 | 0 | 0 | 0.544872 | 0.5 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
bc9ebb1a6c15018da5985a4713cc14562d293aa4 | 145 | py | Python | datatransfer/__init__.py | RheingoldRiver/misc-cogs | 3013af713999fa3ba5ae70f387febb8b43b33840 | [
"MIT"
] | null | null | null | datatransfer/__init__.py | RheingoldRiver/misc-cogs | 3013af713999fa3ba5ae70f387febb8b43b33840 | [
"MIT"
] | null | null | null | datatransfer/__init__.py | RheingoldRiver/misc-cogs | 3013af713999fa3ba5ae70f387febb8b43b33840 | [
"MIT"
] | null | null | null | from .datatransfer import *
__red_end_user_data_statement__ = "No personal data is stored."
def setup(bot):
bot.add_cog(DataTransfer(bot))
| 20.714286 | 63 | 0.765517 | 21 | 145 | 4.857143 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 145 | 6 | 64 | 24.166667 | 0.816 | 0 | 0 | 0 | 0 | 0 | 0.186207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bcb4fce917c54e1b186195f83488f0994c0aab8c | 2,790 | py | Python | btpp/migrations/0008_auto_20191202_1204.py | yvesjordan06/hiro_django | 24ccfdfaf9258bd254d031563190a45a0d837a02 | [
"MIT"
] | null | null | null | btpp/migrations/0008_auto_20191202_1204.py | yvesjordan06/hiro_django | 24ccfdfaf9258bd254d031563190a45a0d837a02 | [
"MIT"
] | null | null | null | btpp/migrations/0008_auto_20191202_1204.py | yvesjordan06/hiro_django | 24ccfdfaf9258bd254d031563190a45a0d837a02 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.7 on 2019-12-02 12:04
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('btpp', '0007_auto_20191202_1139'),
]
operations = [
migrations.AddField(
... | 31.704545 | 115 | 0.556989 | 274 | 2,790 | 5.536496 | 0.266423 | 0.166117 | 0.212261 | 0.249176 | 0.615689 | 0.615689 | 0.546473 | 0.503626 | 0.446935 | 0.374423 | 0 | 0.025357 | 0.321505 | 2,790 | 87 | 116 | 32.068966 | 0.776017 | 0.016129 | 0 | 0.592593 | 1 | 0 | 0.088954 | 0.008385 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.012346 | 0.037037 | 0 | 0.074074 | 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 | 0 | 0 | 0 | 3 |
bcc1fa9ad84c65ef5ea5b8ad81fe5479ab96b539 | 13,685 | py | Python | test/test.py | monacohq/graphsense-REST | 4d94eb14a2d7d2fa65c145a56c4dcb1fef07d2d7 | [
"MIT"
] | null | null | null | test/test.py | monacohq/graphsense-REST | 4d94eb14a2d7d2fa65c145a56c4dcb1fef07d2d7 | [
"MIT"
] | null | null | null | test/test.py | monacohq/graphsense-REST | 4d94eb14a2d7d2fa65c145a56c4dcb1fef07d2d7 | [
"MIT"
] | null | null | null | import unittest
import json
from flask_cors import CORS
from requests.auth import _basic_auth_str
from graphsenserest import app
import graphsensedao as gd
class FlaskBookshelfTests(unittest.TestCase):
clusterId = 59468308
address = "1Arch17xM2rBqDSLhPKc9WF9hnsuHbUiwB"
txhash = "d3ad39fa52a89997ac7381c95e... | 44.868852 | 136 | 0.658385 | 1,680 | 13,685 | 5.258333 | 0.11369 | 0.079239 | 0.093729 | 0.075277 | 0.747227 | 0.713833 | 0.706588 | 0.654177 | 0.623953 | 0.605954 | 0 | 0.03328 | 0.218341 | 13,685 | 304 | 137 | 45.016447 | 0.792559 | 0.217903 | 0 | 0.406593 | 0 | 0.021978 | 0.167404 | 0.094059 | 0 | 0 | 0 | 0 | 0.269231 | 1 | 0.192308 | false | 0.016484 | 0.032967 | 0 | 0.258242 | 0.082418 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bcea9eb47ae8d504bdfafe7d627ea0b1d8d7f1d0 | 3,503 | py | Python | JSP/cost.py | ZongSingHuang/Metaheuristic-benchmark | a454ee02ffe206d925a6193a60cf6bcb772213a0 | [
"MIT"
] | null | null | null | JSP/cost.py | ZongSingHuang/Metaheuristic-benchmark | a454ee02ffe206d925a6193a60cf6bcb772213a0 | [
"MIT"
] | null | null | null | JSP/cost.py | ZongSingHuang/Metaheuristic-benchmark | a454ee02ffe206d925a6193a60cf6bcb772213a0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 28 15:09:32 2021
@author: zongsing.huang
"""
import numpy as np
def test():
Cost = np.array([[2, 3, 5, 3],
[3, 4, 4, 4],
[3, 4, 6, 6],
[6, 2, 5, 3]])
return Cost
def ft06():
Cost = np.array([[1,... | 35.383838 | 63 | 0.287468 | 470 | 3,503 | 2.142553 | 0.257447 | 0.041708 | 0.076465 | 0.025819 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.470769 | 0.536112 | 3,503 | 99 | 64 | 35.383838 | 0.148923 | 0.023694 | 0 | 0.082353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082353 | false | 0 | 0.011765 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bcf97b88be5c1b7dc531567f0febc29534c4dfdb | 511 | py | Python | ABC151D/sample_code.py | staguchi0703/prob_boot_camp_difficult | 77c2adcac98b6f84049acd66ead62e30dc48fa8b | [
"MIT"
] | null | null | null | ABC151D/sample_code.py | staguchi0703/prob_boot_camp_difficult | 77c2adcac98b6f84049acd66ead62e30dc48fa8b | [
"MIT"
] | null | null | null | ABC151D/sample_code.py | staguchi0703/prob_boot_camp_difficult | 77c2adcac98b6f84049acd66ead62e30dc48fa8b | [
"MIT"
] | null | null | null | import collections
import time
start = time.time()
que = collections.deque()
for i in range(10**5):
que.append(i)
elapsed_time = time.time() - start
print('single', elapsed_time)
start = time.time()
que = collections.deque()
for i in range(10**5):
que.append([i,i+1])
elapsed_time = time.time() - start
print... | 18.925926 | 34 | 0.675147 | 82 | 511 | 4.134146 | 0.243902 | 0.212389 | 0.115044 | 0.150442 | 0.840708 | 0.840708 | 0.584071 | 0.584071 | 0.584071 | 0.584071 | 0 | 0.027714 | 0.152642 | 511 | 27 | 35 | 18.925926 | 0.755196 | 0 | 0 | 0.6 | 0 | 0 | 0.035156 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.15 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4c058cf2dc8456833f912290bf9121fb30874849 | 700 | py | Python | mci/api/__init__.py | brighthive/master-client-index | b5aeb600d7e9e7c07a0b57deb2b4d89b3f90fd2f | [
"MIT"
] | 2 | 2019-05-29T14:10:56.000Z | 2019-06-27T02:53:01.000Z | mci/api/__init__.py | brighthive/master-client-index | b5aeb600d7e9e7c07a0b57deb2b4d89b3f90fd2f | [
"MIT"
] | 22 | 2019-05-01T21:19:53.000Z | 2020-07-01T23:15:21.000Z | mci/api/__init__.py | brighthive/master-client-index | b5aeb600d7e9e7c07a0b57deb2b4d89b3f90fd2f | [
"MIT"
] | 1 | 2020-04-29T18:18:31.000Z | 2020-04-29T18:18:31.000Z | from mci.api.core.versioned_resource import VersionedResource
from mci.api.v1_0_0.healthcheck_handler import HealthCheckHandler as V1_0_0_HealthCheckHandler
from mci.api.v1_0_0.user_handler import UserHandler as V1_0_0_UserHandler
from mci.api.v1_0_0.helper_handler import HelperHandler as V1_0_0_HelperHandler
from mci.... | 63.636364 | 106 | 0.877143 | 86 | 700 | 6.918605 | 0.383721 | 0.094118 | 0.134454 | 0.060504 | 0.070588 | 0.070588 | 0 | 0 | 0 | 0 | 0 | 0.027907 | 0.078571 | 700 | 10 | 107 | 70 | 0.894574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.8 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4c0e46f1e35e18a8fe27ddf8a5247af7d8ad8b8d | 94 | py | Python | example/tushare/constant.py | notedd/huobi_Python | 16c1ddb8dddba015f1dcbfb792358057357cc658 | [
"Apache-2.0"
] | null | null | null | example/tushare/constant.py | notedd/huobi_Python | 16c1ddb8dddba015f1dcbfb792358057357cc658 | [
"Apache-2.0"
] | null | null | null | example/tushare/constant.py | notedd/huobi_Python | 16c1ddb8dddba015f1dcbfb792358057357cc658 | [
"Apache-2.0"
] | null | null | null |
g_token = ""
g_host = "127.0.0.1"
g_user = "test"
g_password = "12345678"
g_database = "test" | 15.666667 | 23 | 0.648936 | 17 | 94 | 3.294118 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177215 | 0.159574 | 94 | 6 | 24 | 15.666667 | 0.531646 | 0 | 0 | 0 | 0 | 0 | 0.265957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
4c1752f73a3434fadc747ccf83026f5049bc7603 | 4,240 | py | Python | projects/crawl_taobao_goods_migrate/test.py | kingking888/crawler-pyspider | 29ba13905c73081097df9ef646a5c8194eb024be | [
"Apache-2.0"
] | 1 | 2021-12-07T15:48:51.000Z | 2021-12-07T15:48:51.000Z | projects/crawl_taobao_goods_migrate/test.py | GongSong/crawler-pyspider | b6dcec4afa4e1cd393f94627290a21ed95238676 | [
"Apache-2.0"
] | null | null | null | projects/crawl_taobao_goods_migrate/test.py | GongSong/crawler-pyspider | b6dcec4afa4e1cd393f94627290a21ed95238676 | [
"Apache-2.0"
] | 1 | 2021-11-10T07:12:02.000Z | 2021-11-10T07:12:02.000Z | import unittest
from crawl_taobao_goods_migrate.model.es.es_based_spu_summary import EsBasedSpuSummary
from crawl_taobao_goods_migrate.model.result import Result
from crawl_taobao_goods_migrate.page.goods_callback import GoodsCallback
from crawl_taobao_goods_migrate.page.goods_rate import GoodsRate
from crawl_taobao_g... | 55.789474 | 108 | 0.744811 | 485 | 4,240 | 6.319588 | 0.191753 | 0.054812 | 0.078303 | 0.093964 | 0.654486 | 0.654486 | 0.617292 | 0.526591 | 0.35106 | 0.35106 | 0 | 0.231337 | 0.1375 | 4,240 | 75 | 109 | 56.533333 | 0.606782 | 0 | 0 | 0 | 0 | 0.216667 | 0.491509 | 0.443632 | 0 | 0 | 0 | 0 | 0.15 | 1 | 0.15 | false | 0 | 0.183333 | 0 | 0.366667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4c18f967121454e8cfa7ec72ae877f810c0213a5 | 121 | py | Python | Calculator/Division.py | krishnaeleti/StatCalcIS601 | dd34f5b582bcd6d4576219f473f66ea59d6df73d | [
"MIT"
] | null | null | null | Calculator/Division.py | krishnaeleti/StatCalcIS601 | dd34f5b582bcd6d4576219f473f66ea59d6df73d | [
"MIT"
] | null | null | null | Calculator/Division.py | krishnaeleti/StatCalcIS601 | dd34f5b582bcd6d4576219f473f66ea59d6df73d | [
"MIT"
] | null | null | null | # Division static method
def division(a: object, b: object) -> object:
a = float(a)
b = float(b)
return b / a | 24.2 | 45 | 0.603306 | 19 | 121 | 3.842105 | 0.473684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.264463 | 121 | 5 | 46 | 24.2 | 0.820225 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4c24269ce01aa544e2ac357c0df8fb86bb6fc1ca | 256 | py | Python | Python/Codeforces/118A.py | flmnv/Training | 6070b8ddfb6e01c0f433c813265bf50d59a26ef4 | [
"Unlicense"
] | null | null | null | Python/Codeforces/118A.py | flmnv/Training | 6070b8ddfb6e01c0f433c813265bf50d59a26ef4 | [
"Unlicense"
] | null | null | null | Python/Codeforces/118A.py | flmnv/Training | 6070b8ddfb6e01c0f433c813265bf50d59a26ef4 | [
"Unlicense"
] | null | null | null | result = ''
string = input()
string = string.lower()
for i in range(len(string)):
if (string[i] != 'a' and string[i] != 'o' and
string[i] != 'y' and string[i] != 'e' and
string[i] != 'u' and string[i] != 'i'):
result += '.' + string[i]
print(result) | 28.444444 | 46 | 0.558594 | 41 | 256 | 3.487805 | 0.414634 | 0.342657 | 0.34965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191406 | 256 | 9 | 47 | 28.444444 | 0.690821 | 0 | 0 | 0 | 0 | 0 | 0.027237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4c36c9c37586864139330ab82275e503b1de95b0 | 950 | py | Python | dev-support/misc/flask/server.py | RamakrishnaChilaka/submarine | e8104e5935a0b15d7ccbb000650f2bfe90525ba0 | [
"Apache-2.0"
] | 544 | 2019-10-29T02:35:31.000Z | 2022-03-31T21:22:44.000Z | dev-support/misc/flask/server.py | RamakrishnaChilaka/submarine | e8104e5935a0b15d7ccbb000650f2bfe90525ba0 | [
"Apache-2.0"
] | 545 | 2019-10-29T03:21:38.000Z | 2022-03-30T05:21:15.000Z | dev-support/misc/flask/server.py | RamakrishnaChilaka/submarine | e8104e5935a0b15d7ccbb000650f2bfe90525ba0 | [
"Apache-2.0"
] | 220 | 2019-10-29T05:14:03.000Z | 2022-03-28T07:29:30.000Z | """
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use... | 30.645161 | 61 | 0.761053 | 141 | 950 | 5.099291 | 0.595745 | 0.083449 | 0.036161 | 0.044506 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005089 | 0.172632 | 950 | 30 | 62 | 31.666667 | 0.909669 | 0.789474 | 0 | 0 | 0 | 0 | 0.202247 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.25 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4c45684f9e66885958baeccb8841ebb6a91a1f0c | 5,415 | py | Python | gargoyle/builtins.py | roverdotcom/gargoyle | 5ba3a0b91694272a905155a255ed8cfe4f12251e | [
"Apache-2.0"
] | 1 | 2017-08-11T19:51:32.000Z | 2017-08-11T19:51:32.000Z | gargoyle/builtins.py | roverdotcom/gargoyle | 5ba3a0b91694272a905155a255ed8cfe4f12251e | [
"Apache-2.0"
] | 2 | 2016-09-06T15:45:56.000Z | 2016-09-12T22:29:54.000Z | gargoyle/builtins.py | roverdotcom/gargoyle | 5ba3a0b91694272a905155a255ed8cfe4f12251e | [
"Apache-2.0"
] | 1 | 2021-12-20T15:57:42.000Z | 2021-12-20T15:57:42.000Z | """
gargoyle.builtins
~~~~~~~~~~~~~~~~~
:copyright: (c) 2010 DISQUS.
:license: Apache License 2.0, see LICENSE for more details.
"""
from __future__ import absolute_import, division, print_function, unicode_literals
import socket
import struct
from datetime import datetime
from django.conf import settings
from djang... | 29.27027 | 109 | 0.680332 | 667 | 5,415 | 5.337331 | 0.247376 | 0.025281 | 0.017697 | 0.023876 | 0.418539 | 0.383146 | 0.333989 | 0.296067 | 0.252528 | 0.228933 | 0 | 0.00311 | 0.22807 | 5,415 | 184 | 110 | 29.429348 | 0.848565 | 0.1241 | 0 | 0.333333 | 0 | 0 | 0.082849 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.201754 | false | 0 | 0.096491 | 0.140351 | 0.763158 | 0.008772 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4c4866ba2f8cf4225d180c7d1266ea08ab1c58ed | 381 | py | Python | telegram_commands/getsound.py | SalamiArmy/InfoBoet | 71df751e50b4b458db44444ef7d6dfe6f68e648f | [
"Apache-2.0"
] | 1 | 2021-07-14T21:48:48.000Z | 2021-07-14T21:48:48.000Z | telegram_commands/getsound.py | SalamiArmy/InfoBoet | 71df751e50b4b458db44444ef7d6dfe6f68e648f | [
"Apache-2.0"
] | 6 | 2017-11-27T06:04:34.000Z | 2020-02-19T05:15:02.000Z | telegram_commands/getsound.py | SalamiArmy/InfoBoet | 71df751e50b4b458db44444ef7d6dfe6f68e648f | [
"Apache-2.0"
] | 2 | 2017-08-16T20:26:02.000Z | 2020-11-10T18:44:11.000Z | # coding=utf-8
import ConfigParser
import json
import urllib
import urllib2
def run(bot, chat_id, user, keyConfig, message, totalResults=1):
bot.sendMessage(chat_id=chat_id, text='I\'m sorry ' + (user if not user == '' else 'Dave') +\
', I\'m afraid the soundcloud API is giving me an unauthorized exception.... | 38.1 | 140 | 0.71916 | 60 | 381 | 4.516667 | 0.783333 | 0.066421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009524 | 0.173228 | 381 | 9 | 141 | 42.333333 | 0.850794 | 0.031496 | 0 | 0 | 0 | 0.142857 | 0.098093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.571429 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4c54a936ab5263208bfb02d612431c7f8907b43e | 73 | py | Python | Codewars/8kyu/array-plus-array/Python/solution1.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | 7 | 2017-09-20T16:40:39.000Z | 2021-08-31T18:15:08.000Z | Codewars/8kyu/array-plus-array/Python/solution1.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | Codewars/8kyu/array-plus-array/Python/solution1.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | # Python - 3.6.0
array_plus_array = lambda arr1, arr2: sum(arr1 + arr2)
| 18.25 | 54 | 0.684932 | 13 | 73 | 3.692308 | 0.769231 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116667 | 0.178082 | 73 | 3 | 55 | 24.333333 | 0.683333 | 0.191781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4c55fcc26679498413e0f44610d77b77474b82fe | 27 | py | Python | config.py | davidjohnstone/alt | b782778d387a8db4e65c95359de0d0c37b52a970 | [
"MIT"
] | 1 | 2015-10-24T03:45:46.000Z | 2015-10-24T03:45:46.000Z | config.py | davidjohnstone/alt | b782778d387a8db4e65c95359de0d0c37b52a970 | [
"MIT"
] | null | null | null | config.py | davidjohnstone/alt | b782778d387a8db4e65c95359de0d0c37b52a970 | [
"MIT"
] | null | null | null | secret_key = 'change this'
| 13.5 | 26 | 0.740741 | 4 | 27 | 4.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 27 | 1 | 27 | 27 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0.407407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4c7402508bbb91fbbf750e73153121b6b138a997 | 115 | py | Python | intro/part04-20_star_studded/src/star_studded.py | Hannah-Abi/python-pro-21 | 2ce32c4bf118054329d19afdf83c50561be1ada8 | [
"MIT"
] | null | null | null | intro/part04-20_star_studded/src/star_studded.py | Hannah-Abi/python-pro-21 | 2ce32c4bf118054329d19afdf83c50561be1ada8 | [
"MIT"
] | null | null | null | intro/part04-20_star_studded/src/star_studded.py | Hannah-Abi/python-pro-21 | 2ce32c4bf118054329d19afdf83c50561be1ada8 | [
"MIT"
] | null | null | null | # Write your solution here
str = input("Please type in a string: ")
for item in str:
print(item)
print("*") | 23 | 40 | 0.643478 | 18 | 115 | 4.111111 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.226087 | 115 | 5 | 41 | 23 | 0.831461 | 0.208696 | 0 | 0 | 0 | 0 | 0.288889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
d5cb9bcac6d9679f8b87fbee0a58a9bd49e0fb60 | 154 | py | Python | temapi/api/__init__.py | Leviosar/temapi | 4db795d903f3840228e934aa53abecfd6db5f540 | [
"MIT"
] | 9 | 2020-02-01T12:55:41.000Z | 2020-12-02T17:42:22.000Z | temapi/api/__init__.py | Leviosar/temapi | 4db795d903f3840228e934aa53abecfd6db5f540 | [
"MIT"
] | 11 | 2020-01-26T02:38:45.000Z | 2020-01-26T21:07:31.000Z | temapi/api/__init__.py | archipelagolabs/temtemapi | 4db795d903f3840228e934aa53abecfd6db5f540 | [
"MIT"
] | 1 | 2020-01-29T11:57:00.000Z | 2020-01-29T11:57:00.000Z | from fastapi import FastAPI
from .routes import routers
app = FastAPI()
for (prefix, router) in routers:
app.include_router(router, prefix=prefix)
| 17.111111 | 45 | 0.753247 | 21 | 154 | 5.47619 | 0.52381 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162338 | 154 | 8 | 46 | 19.25 | 0.891473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d5d13f4556307fa4136eb691809ac38a5dd20588 | 2,031 | py | Python | localfolder-import.py | bliksemlabs/bliksemintegration | 38f4a4b6e7ea28e8f5c4f7fe1a75868549ee4677 | [
"BSD-2-Clause"
] | 5 | 2015-11-13T09:46:18.000Z | 2019-05-12T20:56:00.000Z | localfolder-import.py | bliksemlabs/bliksemintegration | 38f4a4b6e7ea28e8f5c4f7fe1a75868549ee4677 | [
"BSD-2-Clause"
] | 5 | 2015-07-11T00:40:01.000Z | 2019-04-30T15:20:34.000Z | localfolder-import.py | bliksemlabs/bliksemintegration | 38f4a4b6e7ea28e8f5c4f7fe1a75868549ee4677 | [
"BSD-2-Clause"
] | 5 | 2015-07-15T09:35:54.000Z | 2018-03-11T09:28:52.000Z | import os
import sys
import importers.arr
import importers.avv
import importers.cxx
import importers.ebs
import importers.gvb
import importers.htm
import importers.htmbuzz
import importers.ns
import importers.qbuzz
import importers.ret
import importers.retbus
import importers.syntus
import importers.vtn
import importer... | 29.014286 | 105 | 0.604628 | 242 | 2,031 | 5.020661 | 0.214876 | 0.17284 | 0.139095 | 0.181893 | 0.382716 | 0.365432 | 0.345679 | 0.141564 | 0.141564 | 0 | 0 | 0.008784 | 0.271295 | 2,031 | 69 | 106 | 29.434783 | 0.812162 | 0 | 0 | 0.111111 | 0 | 0 | 0.122167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.555556 | null | null | 0.018519 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9110400140b2985d94ae93ed9cf78d30bb369461 | 1,778 | py | Python | src/ds_algs/binary_heap.py | E1mir/PySandbox | 44b39b98a41add433f0815cd3cde4d7554629eea | [
"MIT"
] | null | null | null | src/ds_algs/binary_heap.py | E1mir/PySandbox | 44b39b98a41add433f0815cd3cde4d7554629eea | [
"MIT"
] | null | null | null | src/ds_algs/binary_heap.py | E1mir/PySandbox | 44b39b98a41add433f0815cd3cde4d7554629eea | [
"MIT"
] | null | null | null | class BinaryHeap(object):
def __init__(self):
self.heap_list = [0]
self.current_size = 0
def insert(self, element):
self.heap_list.append(element)
self.current_size += 1
self.percolate_up(self.current_size)
def percolate_up(self, i):
while i // 2 > 0:
... | 28.677419 | 65 | 0.517435 | 250 | 1,778 | 3.432 | 0.188 | 0.205128 | 0.307692 | 0.166667 | 0.357809 | 0.252914 | 0.252914 | 0.208625 | 0.08042 | 0.065268 | 0 | 0.02812 | 0.359955 | 1,778 | 61 | 66 | 29.147541 | 0.725835 | 0 | 0 | 0.076923 | 0 | 0 | 0.005624 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0.019231 | 0.269231 | 0.019231 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
912758992c80407d6d776f1de459fba57e7f5e17 | 242 | py | Python | py/kubeflow/kubeflow/cd/notebook_servers/notebook_server_jupyter_tensorflow_full_runner.py | zhyon404/kubeflow | e0daf0f2eee705e5ffd78d78b5b34290c7e423ff | [
"Apache-2.0"
] | 9,272 | 2018-01-29T14:14:06.000Z | 2022-03-31T14:01:45.000Z | py/kubeflow/kubeflow/cd/notebook_servers/notebook_server_jupyter_tensorflow_full_runner.py | zhou762/kubeflow | 5bf005f21647c2238b8f863e9e51e9c81872b2f5 | [
"Apache-2.0"
] | 6,321 | 2018-01-29T14:00:15.000Z | 2022-03-31T21:21:07.000Z | py/kubeflow/kubeflow/cd/notebook_servers/notebook_server_jupyter_tensorflow_full_runner.py | zhou762/kubeflow | 5bf005f21647c2238b8f863e9e51e9c81872b2f5 | [
"Apache-2.0"
] | 1,909 | 2018-01-30T01:31:58.000Z | 2022-03-30T07:43:48.000Z | # This file is only intended for development purposes
from kubeflow.kubeflow.cd import base_runner
base_runner.main(component_name="notebook_servers.notebook_server_jupyter_tensorflow_full",
workflow_name="nb-j-tf-f-build")
| 40.333333 | 91 | 0.789256 | 34 | 242 | 5.352941 | 0.852941 | 0.10989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 242 | 5 | 92 | 48.4 | 0.870813 | 0.210744 | 0 | 0 | 0 | 0 | 0.375661 | 0.296296 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 3 |
912f67008d35c408feb137b3a4f29a97b9c429cc | 764 | py | Python | xonsh/prompt/__init__.py | danielballan/xonsh | 7116b294b379214831706d2f4160d6537c2c158b | [
"BSD-2-Clause-FreeBSD"
] | 7,986 | 2015-11-07T11:59:21.000Z | 2022-03-27T17:20:49.000Z | xonsh/prompt/__init__.py | themaximum88/gitsome | d7c57abc7cb66e9c910a844f15d4536866da3310 | [
"Apache-2.0"
] | 161 | 2016-05-09T09:53:48.000Z | 2022-02-22T04:18:59.000Z | xonsh/prompt/__init__.py | themaximum88/gitsome | d7c57abc7cb66e9c910a844f15d4536866da3310 | [
"Apache-2.0"
] | 539 | 2016-04-05T05:39:58.000Z | 2022-03-23T20:47:52.000Z | # amalgamate exclude
import os as _os
if _os.getenv("XONSH_DEBUG", ""):
pass
else:
import sys as _sys
try:
from xonsh.prompt import __amalgam__
cwd = __amalgam__
_sys.modules["xonsh.prompt.cwd"] = __amalgam__
env = __amalgam__
_sys.modules["xonsh.prompt.env"] = __a... | 25.466667 | 60 | 0.632199 | 82 | 764 | 5.060976 | 0.329268 | 0.185542 | 0.245783 | 0.318072 | 0.404819 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.277487 | 764 | 29 | 61 | 26.344828 | 0.751812 | 0.043194 | 0 | 0.083333 | 0 | 0 | 0.15522 | 0.03022 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.166667 | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
913774b562022c63cca7151a74eed07654cda353 | 1,583 | py | Python | var/spack/repos/builtin/packages/erlang/package.py | LiamBindle/spack | e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2,360 | 2017-11-06T08:47:01.000Z | 2022-03-31T14:45:33.000Z | var/spack/repos/builtin/packages/erlang/package.py | LiamBindle/spack | e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 13,838 | 2017-11-04T07:49:45.000Z | 2022-03-31T23:38:39.000Z | var/spack/repos/builtin/packages/erlang/package.py | LiamBindle/spack | e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 1,793 | 2017-11-04T07:45:50.000Z | 2022-03-30T14:31:53.000Z | # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Erlang(AutotoolsPackage):
"""
Erlang is a programming language and runtime system for ... | 46.558824 | 94 | 0.777006 | 141 | 1,583 | 8.673759 | 0.602837 | 0.036795 | 0.05233 | 0.058872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.323803 | 0.116235 | 1,583 | 33 | 95 | 47.969697 | 0.550393 | 0.212255 | 0 | 0 | 0 | 0 | 0.601639 | 0.472131 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
91384c1d10547e43c846a5c9a61efad39d9eefff | 456 | py | Python | command/g_dance.py | iddev5/gifbot | 7aceba3820d18b014871b5f1feff495ad917ddeb | [
"Unlicense"
] | null | null | null | command/g_dance.py | iddev5/gifbot | 7aceba3820d18b014871b5f1feff495ad917ddeb | [
"Unlicense"
] | null | null | null | command/g_dance.py | iddev5/gifbot | 7aceba3820d18b014871b5f1feff495ad917ddeb | [
"Unlicense"
] | null | null | null | import discord
ID = 'DNC'
Title = [
'dance!!', 'eveybody dance!!', 'party time!!!'
]
Color = [
discord.Color.red()
]
List = [
'https://media.tenor.com/images/84d47c23dcaf79cb54fd5d31631d26c8/tenor.gif',
'https://media.tenor.com/images/3c7e55c7137110f0235c0cf9ec41e0ea/tenor.gif',
'https://media.tenor.c... | 25.333333 | 80 | 0.723684 | 47 | 456 | 7.021277 | 0.468085 | 0.121212 | 0.181818 | 0.218182 | 0.363636 | 0.290909 | 0.290909 | 0 | 0 | 0 | 0 | 0.188725 | 0.105263 | 456 | 18 | 81 | 25.333333 | 0.620098 | 0 | 0 | 0 | 0 | 0 | 0.724289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9140e693efdf77847c471999894bb3c1616c123a | 16 | py | Python | __init__.py | ConquerProgramming1/helping | cf8ba7cd186d700bf35c28b959e7644792a699f1 | [
"MIT"
] | 3 | 2019-03-23T13:49:15.000Z | 2019-04-12T02:58:13.000Z | __init__.py | ConquerProgramming1/helping | cf8ba7cd186d700bf35c28b959e7644792a699f1 | [
"MIT"
] | null | null | null | __init__.py | ConquerProgramming1/helping | cf8ba7cd186d700bf35c28b959e7644792a699f1 | [
"MIT"
] | null | null | null | name = "helping" | 16 | 16 | 0.6875 | 2 | 16 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 16 | 1 | 16 | 16 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0.411765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e66eb2099b279df575a587a9534678895e320810 | 50 | py | Python | list.py | git-vivek/Python | 5c5e1030b1d703f527ff3778fd44e832d30545e1 | [
"Apache-2.0"
] | null | null | null | list.py | git-vivek/Python | 5c5e1030b1d703f527ff3778fd44e832d30545e1 | [
"Apache-2.0"
] | null | null | null | list.py | git-vivek/Python | 5c5e1030b1d703f527ff3778fd44e832d30545e1 | [
"Apache-2.0"
] | null | null | null | a=[4,5,6,7]
for i in a:
if i==4:
print("okay")
| 10 | 15 | 0.5 | 14 | 50 | 1.785714 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 0.22 | 50 | 4 | 16 | 12.5 | 0.512821 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
e677296ed41dfb3dddbc6a3b1e8ff8e1ebf24a0b | 316 | py | Python | pingo/__init__.py | willingc/pingo | 0890bf5ed763e9061320093fc3fb5f7543c5cc2c | [
"MIT"
] | null | null | null | pingo/__init__.py | willingc/pingo | 0890bf5ed763e9061320093fc3fb5f7543c5cc2c | [
"MIT"
] | null | null | null | pingo/__init__.py | willingc/pingo | 0890bf5ed763e9061320093fc3fb5f7543c5cc2c | [
"MIT"
] | null | null | null | # api
from board import ANALOG, IN, OUT, HIGH, LOW
from board import ModeNotSuported, WrongPinMode
from board import AnalogInputCapable, AnalogPin, Board, DigitalPin, GroundPin, Pin, VccPin
# boards
import rpi
import ghost
import udoo
import pcduino
import arduino
import bbb
# resources
import detect
import test
| 18.588235 | 90 | 0.806962 | 42 | 316 | 6.071429 | 0.642857 | 0.105882 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148734 | 316 | 16 | 91 | 19.75 | 0.947955 | 0.063291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e678d113ba8fb21edf06d62b320eab5c576bb4f0 | 2,520 | py | Python | var/spack/repos/builtin/packages/rdma-core/package.py | Nortamo/spack | 5fade5bee733bd488a129fbd0153c6f72ac6164c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | var/spack/repos/builtin/packages/rdma-core/package.py | Nortamo/spack | 5fade5bee733bd488a129fbd0153c6f72ac6164c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 12 | 2021-05-12T06:12:27.000Z | 2022-03-30T15:09:45.000Z | var/spack/repos/builtin/packages/rdma-core/package.py | Nortamo/spack | 5fade5bee733bd488a129fbd0153c6f72ac6164c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RdmaCore(CMakePackage):
"""RDMA core userspace libraries and daemons"""
homepage = "h... | 56 | 102 | 0.770238 | 232 | 2,520 | 8.306034 | 0.616379 | 0.029061 | 0.01453 | 0.01972 | 0.032174 | 0.032174 | 0.032174 | 0 | 0 | 0 | 0 | 0.302685 | 0.128175 | 2,520 | 44 | 103 | 57.272727 | 0.57442 | 0.187302 | 0 | 0 | 0 | 0.035714 | 0.626536 | 0.468796 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.035714 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e6a05f0d577ef3037a0a4597e24fb71bffa99bb3 | 544 | py | Python | neodroidvision/multitask/multi_task_learning_scheduler.py | aivclab/vision | 6c644dd72f68bca608a2900e5d9461e90fe841eb | [
"Apache-2.0"
] | 1 | 2019-07-03T04:33:51.000Z | 2019-07-03T04:33:51.000Z | neodroidvision/multitask/multi_task_learning_scheduler.py | aivclab/vision | 6c644dd72f68bca608a2900e5d9461e90fe841eb | [
"Apache-2.0"
] | 5 | 2019-07-03T04:38:07.000Z | 2021-09-10T15:40:44.000Z | neodroidvision/multitask/multi_task_learning_scheduler.py | aivclab/vision | 6c644dd72f68bca608a2900e5d9461e90fe841eb | [
"Apache-2.0"
] | 3 | 2019-10-03T06:14:40.000Z | 2021-01-31T14:31:39.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "Christian Heider Nielsen"
__doc__ = r"""
Created on 19-09-2021
"""
import torch
def cache_backbone_results(model:torch.Module)->None:
"""
Cache and freeze the backbone part of the model and only update heads
"""
pass... | 17 | 73 | 0.621324 | 73 | 544 | 4.438356 | 0.657534 | 0.092593 | 0.148148 | 0.185185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024814 | 0.259191 | 544 | 31 | 74 | 17.548387 | 0.779156 | 0.316176 | 0 | 0.272727 | 0 | 0 | 0.215385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.272727 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e6c348c93938ca455efb27bc9cf241fcc726e72c | 690 | py | Python | tests/data/expected/main/main_complicated_enum_default_member/output.py | tomercagan/datamodel-code-generator | c4a1852c28969762c1dc7c4607ece33a539f75aa | [
"MIT"
] | null | null | null | tests/data/expected/main/main_complicated_enum_default_member/output.py | tomercagan/datamodel-code-generator | c4a1852c28969762c1dc7c4607ece33a539f75aa | [
"MIT"
] | null | null | null | tests/data/expected/main/main_complicated_enum_default_member/output.py | tomercagan/datamodel-code-generator | c4a1852c28969762c1dc7c4607ece33a539f75aa | [
"MIT"
] | null | null | null | # generated by datamodel-codegen:
# filename: complicated_enum.json
# timestamp: 2019-07-26T00:00:00+00:00
from __future__ import annotations
from enum import Enum
from typing import Optional
from pydantic import BaseModel
class ProcessingStatus(Enum):
COMPLETED = 'COMPLETED'
PENDING = 'PENDING'
F... | 21.5625 | 78 | 0.755072 | 73 | 690 | 6.972603 | 0.506849 | 0.023576 | 0.023576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.165217 | 690 | 31 | 79 | 22.258065 | 0.852431 | 0.152174 | 0 | 0 | 1 | 0 | 0.053356 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.235294 | 0 | 0.941176 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
e6de709125e6c5696f7706387ffab69a981c0aae | 21,788 | py | Python | src/azure-cli/azure/cli/command_modules/apim/_params.py | xaliciayang/azure-cli | 38c80c875e8a79d08d06a2f42ec82fd54934343e | [
"MIT"
] | 1 | 2021-05-03T21:33:51.000Z | 2021-05-03T21:33:51.000Z | src/azure-cli/azure/cli/command_modules/apim/_params.py | xaliciayang/azure-cli | 38c80c875e8a79d08d06a2f42ec82fd54934343e | [
"MIT"
] | 1 | 2021-02-23T20:57:31.000Z | 2021-02-23T20:57:31.000Z | src/azure-cli/azure/cli/command_modules/apim/_params.py | xaliciayang/azure-cli | 38c80c875e8a79d08d06a2f42ec82fd54934343e | [
"MIT"
] | 1 | 2021-03-02T09:26:15.000Z | 2021-03-02T09:26:15.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 99.944954 | 432 | 0.721223 | 3,129 | 21,788 | 4.902844 | 0.116651 | 0.082133 | 0.053452 | 0.071182 | 0.740369 | 0.721205 | 0.697608 | 0.669839 | 0.662278 | 0.657715 | 0 | 0.00115 | 0.161695 | 21,788 | 217 | 433 | 100.40553 | 0.838763 | 0.018451 | 0 | 0.414365 | 0 | 0.138122 | 0.598952 | 0.029796 | 0.016575 | 0 | 0 | 0 | 0 | 1 | 0.005525 | false | 0 | 0.071823 | 0 | 0.110497 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fc15fc3baae1c23c289ee4f8cc77d31670c6e275 | 31,555 | py | Python | st2actions/tests/unit/test_mistral_v2.py | UbuntuEvangelist/st2 | 36af04f2caa03b396fb8ab00fd6d700e827fda8d | [
"Apache-2.0"
] | 1 | 2020-11-21T10:11:25.000Z | 2020-11-21T10:11:25.000Z | st2actions/tests/unit/test_mistral_v2.py | UbuntuEvangelist/st2 | 36af04f2caa03b396fb8ab00fd6d700e827fda8d | [
"Apache-2.0"
] | 1 | 2015-06-08T15:27:11.000Z | 2015-06-08T15:27:11.000Z | st2actions/tests/unit/test_mistral_v2.py | UbuntuEvangelist/st2 | 36af04f2caa03b396fb8ab00fd6d700e827fda8d | [
"Apache-2.0"
] | 13 | 2017-01-12T11:07:20.000Z | 2019-04-19T09:55:49.000Z | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | 46.268328 | 99 | 0.691364 | 3,464 | 31,555 | 6.043591 | 0.100462 | 0.039933 | 0.052305 | 0.071077 | 0.775352 | 0.73561 | 0.700979 | 0.699069 | 0.679054 | 0.674851 | 0 | 0.017067 | 0.195975 | 31,555 | 681 | 100 | 46.33627 | 0.808088 | 0.03356 | 0 | 0.615646 | 0 | 0 | 0.109507 | 0.019821 | 0 | 0 | 0 | 0 | 0.108844 | 1 | 0.040816 | false | 0 | 0.056122 | 0 | 0.098639 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fc170ee1404040c3335afa9b441ffd9cd145e444 | 78 | py | Python | tests/__init__.py | TimNooren/pytest-cairo | a72b3a210688133637bd6f9bb5e137851e4578e2 | [
"MIT"
] | 10 | 2022-02-08T13:28:37.000Z | 2022-03-22T11:56:41.000Z | tests/__init__.py | TimNooren/pytest-cairo | a72b3a210688133637bd6f9bb5e137851e4578e2 | [
"MIT"
] | null | null | null | tests/__init__.py | TimNooren/pytest-cairo | a72b3a210688133637bd6f9bb5e137851e4578e2 | [
"MIT"
] | null | null | null | from pathlib import Path
RESOURCES_DIR = Path(__file__).parent / 'resources'
| 19.5 | 51 | 0.782051 | 10 | 78 | 5.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 78 | 3 | 52 | 26 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
fc1cdb5eb4487ca40a3b0c9b752153872db165c1 | 362 | py | Python | muspy/visualization/__init__.py | annahung31/muspy | 978efe85f60df82c93b154dda87920bb37a72e9d | [
"MIT"
] | 260 | 2020-08-29T00:09:37.000Z | 2022-03-31T11:15:49.000Z | muspy/visualization/__init__.py | annahung31/muspy | 978efe85f60df82c93b154dda87920bb37a72e9d | [
"MIT"
] | 62 | 2020-08-30T18:56:47.000Z | 2021-12-17T08:03:27.000Z | muspy/visualization/__init__.py | annahung31/muspy | 978efe85f60df82c93b154dda87920bb37a72e9d | [
"MIT"
] | 44 | 2020-08-30T01:28:15.000Z | 2022-03-19T09:54:45.000Z | """Visualization tools.
This module provides functions for visualizing a Music object.
Classes
-------
- ScorePlotter
Functions
---------
- show
- show_pianoroll
- show_score
"""
from .pianoroll import show_pianoroll
from .score import ScorePlotter, show_score
from .wrappers import show
__all__ = ["show", "show_... | 15.73913 | 66 | 0.734807 | 41 | 362 | 6.243902 | 0.487805 | 0.152344 | 0.132813 | 0.164063 | 0.203125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138122 | 362 | 22 | 67 | 16.454545 | 0.820513 | 0.486188 | 0 | 0 | 0 | 0 | 0.224719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fc20ff8e5566f4c5bd95e17b7082b0b01a72f07d | 532 | py | Python | Chapter11/demo_nameko/test.py | PacktPublishing/Daniel-Arbuckles-Mastering-Python | ecd1e78d95aedc832d8f5ceec4794374459e890a | [
"MIT"
] | 28 | 2017-08-10T18:21:52.000Z | 2021-11-22T11:13:01.000Z | Chapter11/demo_nameko/test.py | PacktPublishing/Daniel-Arbuckles-Mastering-Python | ecd1e78d95aedc832d8f5ceec4794374459e890a | [
"MIT"
] | 2 | 2019-06-17T13:22:00.000Z | 2019-06-17T14:06:18.000Z | Chapter11/demo_nameko/test.py | PacktPublishing/Daniel-Arbuckles-Mastering-Python | ecd1e78d95aedc832d8f5ceec4794374459e890a | [
"MIT"
] | 20 | 2017-07-07T16:25:50.000Z | 2022-01-11T15:57:18.000Z | from nameko.rpc import RpcProxy
from nameko.timer import timer
from pprint import pprint
class TestService:
name = 'test_person'
person = RpcProxy('person')
@timer(interval = 10)
def test(self):
pprint(self.person.list())
candide = self.person.create('Candide', 'Apples', 25)
... | 19.703704 | 61 | 0.633459 | 64 | 532 | 5.25 | 0.40625 | 0.208333 | 0.190476 | 0.178571 | 0.160714 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.244361 | 532 | 26 | 62 | 20.461538 | 0.820896 | 0 | 0 | 0.1875 | 0 | 0 | 0.056391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.1875 | 0 | 0.4375 | 0.375 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fc49c0bc2bf8769748ed4d571ca329edb460f35b | 495 | py | Python | Lib/Nets/utils/generic/DecayLR.py | cattale93/pytorch_self_supervised_learning | 162c26446837a7c0ffd2679b3fb54ba01f204123 | [
"MIT"
] | null | null | null | Lib/Nets/utils/generic/DecayLR.py | cattale93/pytorch_self_supervised_learning | 162c26446837a7c0ffd2679b3fb54ba01f204123 | [
"MIT"
] | null | null | null | Lib/Nets/utils/generic/DecayLR.py | cattale93/pytorch_self_supervised_learning | 162c26446837a7c0ffd2679b3fb54ba01f204123 | [
"MIT"
] | null | null | null | class DecayLR:
"""
The learning scheduler requires a function that it is used to update the lr value
This is the function used in the project models
"""
def __init__(self, epochs, checkpoint_epoch, decay_epochs):
self.epochs = epochs
self.checkpoint_epoch = checkpoint_epoch
s... | 38.076923 | 114 | 0.690909 | 68 | 495 | 4.838235 | 0.470588 | 0.167173 | 0.136778 | 0.12766 | 0.182371 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007895 | 0.232323 | 495 | 12 | 115 | 41.25 | 0.857895 | 0.260606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fc53ccc81ce11ddfef4583288108d6bf7df2375a | 966 | py | Python | example/app_with_dotenv/app.py | RonnyPfannschmidt/dynaconf | 3223f6586aa6ae3ef7b5cd7d198fb950f5038526 | [
"MIT"
] | 2,293 | 2015-08-14T22:39:31.000Z | 2022-03-31T12:44:49.000Z | example/app_with_dotenv/app.py | RonnyPfannschmidt/dynaconf | 3223f6586aa6ae3ef7b5cd7d198fb950f5038526 | [
"MIT"
] | 676 | 2015-08-20T19:29:56.000Z | 2022-03-31T13:45:51.000Z | example/app_with_dotenv/app.py | RonnyPfannschmidt/dynaconf | 3223f6586aa6ae3ef7b5cd7d198fb950f5038526 | [
"MIT"
] | 255 | 2015-12-02T21:16:33.000Z | 2022-03-20T22:03:46.000Z | from dynaconf import settings
print(settings.MYSQL_HOST) # noqa
print(settings.MYSQL_PASSWD) # noqa
print(settings.EXAMPLE) # noqa # noqa
print(settings.MYSQL_HOST) # noqa
print(settings.MYSQL_PASSWD) # noqa
print(settings.EXAMPLE) # noqa
print(settings.MONEY_VALUE) # noqa
print(settings.BOOL_VALUE) # noqa
pr... | 29.272727 | 73 | 0.650104 | 126 | 966 | 4.833333 | 0.428571 | 0.213465 | 0.251232 | 0.108374 | 0.256158 | 0.256158 | 0.256158 | 0.256158 | 0.256158 | 0.256158 | 0 | 0.01875 | 0.171843 | 966 | 32 | 74 | 30.1875 | 0.7425 | 0.057971 | 0 | 0.214286 | 0 | 0 | 0.260579 | 0.028953 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | false | 0.107143 | 0.035714 | 0 | 0.035714 | 0.357143 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
fc6617bbe419f265a4bf29039234d56803f95001 | 1,161 | py | Python | test/ts_timeout.py | zoumingzhe/PyTools | 7202268fca71db5e5b35fccc4031002e6ebbc023 | [
"MIT"
] | 3 | 2019-05-02T07:08:15.000Z | 2021-03-10T04:55:03.000Z | test/ts_timeout.py | zoumingzhe/PyTools | 7202268fca71db5e5b35fccc4031002e6ebbc023 | [
"MIT"
] | null | null | null | test/ts_timeout.py | zoumingzhe/PyTools | 7202268fca71db5e5b35fccc4031002e6ebbc023 | [
"MIT"
] | 1 | 2019-05-13T07:26:33.000Z | 2019-05-13T07:26:33.000Z | import sys
sys.path.append(r'..\ztools\ztools')
from tool.timeout import timeout
import time
timeout = timeout()
timeout.Version(isShow = True)
print("开始计时: %0.3f sec" % timeout.Time())
time.sleep(0.1)
print("延时 0.1 sec: %0.3f sec" % timeout.Time())
print("TimeStart值: %0.3f sec" % timeout.GetTimeStart())
print("重置计时... | 29.025 | 69 | 0.628768 | 189 | 1,161 | 3.862434 | 0.227513 | 0.057534 | 0.115068 | 0.178082 | 0.756164 | 0.694521 | 0.623288 | 0.623288 | 0.623288 | 0.623288 | 0 | 0.044057 | 0.159345 | 1,161 | 39 | 70 | 29.769231 | 0.703893 | 0 | 0 | 0.484848 | 0 | 0 | 0.304048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.484848 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
fc7f031bbeda46aff23dc5f87a763cebe6205509 | 585 | py | Python | Classifier/tf/abc_main.py | YuHe0108/cvmodule | ea00a90fc9bbca5b2c7809791cbd1f7b0da526cd | [
"Apache-2.0"
] | null | null | null | Classifier/tf/abc_main.py | YuHe0108/cvmodule | ea00a90fc9bbca5b2c7809791cbd1f7b0da526cd | [
"Apache-2.0"
] | null | null | null | Classifier/tf/abc_main.py | YuHe0108/cvmodule | ea00a90fc9bbca5b2c7809791cbd1f7b0da526cd | [
"Apache-2.0"
] | null | null | null | """实现训练分类模型的抽象类"""
import tensorflow as tf
import abc
class ClassifierModule(abc.ABC):
def __init__(self, *args, **kwargs):
tf.keras.backend.set_learning_phase(True)
pass
@abc.abstractclassmethod
def configure_optimizer(cls, optimizer):
"""子类必须要实现的类"""
return
def load... | 16.714286 | 50 | 0.618803 | 68 | 585 | 5.117647 | 0.5 | 0.068966 | 0.08046 | 0.097701 | 0.293103 | 0.293103 | 0.293103 | 0.293103 | 0.293103 | 0.293103 | 0 | 0 | 0.282051 | 585 | 34 | 51 | 17.205882 | 0.828571 | 0.037607 | 0 | 0.47619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.285714 | 0.095238 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
fc90934476a862a0c01197dabb40a44a620a4b8c | 582 | py | Python | books/model/BankRuleList.py | nudglabs/books-python-wrappers | 8844eca8fe681542644a70749b72a6dc4e48c171 | [
"MIT"
] | 9 | 2015-04-01T08:59:49.000Z | 2022-01-27T01:27:45.000Z | books/model/BankRuleList.py | nudglabs/books-python-wrappers | 8844eca8fe681542644a70749b72a6dc4e48c171 | [
"MIT"
] | 3 | 2020-05-14T04:22:22.000Z | 2021-08-06T11:19:03.000Z | books/model/BankRuleList.py | nudglabs/books-python-wrappers | 8844eca8fe681542644a70749b72a6dc4e48c171 | [
"MIT"
] | 11 | 2016-04-14T10:59:36.000Z | 2020-08-19T13:26:05.000Z | #$Id$#
class BankRuleList:
"""This class is used to create object for Bank rules list."""
def __init__(self):
"""Initialize parameters for bank rules list."""
self.bank_rules = []
def set_bank_rules(self, bank_rules):
"""Set bank rules.
Args:
bank_rules(ins... | 21.555556 | 66 | 0.573883 | 70 | 582 | 4.571429 | 0.371429 | 0.39375 | 0.1625 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.323024 | 582 | 26 | 67 | 22.384615 | 0.812183 | 0.427835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0 | 0.714286 | 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 | 0 | 1 | 0 | 0 | 3 |
fc98df065b819cd231378a178bdec4ad5fbecf17 | 561 | py | Python | priorityqueue.py | melayev/algods | 04084868da7fbbfd7074985243f35536ce5f2169 | [
"MIT"
] | null | null | null | priorityqueue.py | melayev/algods | 04084868da7fbbfd7074985243f35536ce5f2169 | [
"MIT"
] | null | null | null | priorityqueue.py | melayev/algods | 04084868da7fbbfd7074985243f35536ce5f2169 | [
"MIT"
] | null | null | null | import heapq
class PriorityQueue:
def __init__(self):
self._queue = []
def __len__(self):
return len(self._queue)
def isEmpty(self):
return len(self) == 0
def enqueue(self, item, priority):
heapq.heappush(self._queue, (priority, item))
def dequeue(self):
... | 23.375 | 53 | 0.554367 | 68 | 561 | 4.367647 | 0.338235 | 0.181818 | 0.080808 | 0.114478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013089 | 0.319073 | 561 | 24 | 54 | 23.375 | 0.764398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.055556 | 0.166667 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fc9ed7bc8da23f08d95e8b809d24ec863d9d4984 | 2,200 | py | Python | sympy/stats/stochastic_process.py | msgoff/sympy | 1e7daef7514902f5e89718fa957b7b36c6669a10 | [
"BSD-3-Clause"
] | null | null | null | sympy/stats/stochastic_process.py | msgoff/sympy | 1e7daef7514902f5e89718fa957b7b36c6669a10 | [
"BSD-3-Clause"
] | null | null | null | sympy/stats/stochastic_process.py | msgoff/sympy | 1e7daef7514902f5e89718fa957b7b36c6669a10 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import print_function, division
from sympy import Basic
from sympy.stats.joint_rv import ProductPSpace
from sympy.stats.rv import ProductDomain, _symbol_converter
class StochasticPSpace(ProductPSpace):
"""
Represents probability space of stochastic processes
and their random variables. Co... | 34.375 | 87 | 0.703182 | 253 | 2,200 | 6.01581 | 0.395257 | 0.032852 | 0.027595 | 0.021025 | 0.256242 | 0.219448 | 0.219448 | 0.219448 | 0.219448 | 0.219448 | 0 | 0.00177 | 0.229545 | 2,200 | 63 | 88 | 34.920635 | 0.896165 | 0.353182 | 0 | 0.148148 | 0 | 0 | 0.040031 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0 | 0.185185 | 0.111111 | 0.740741 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fca6527dc6b09446c75320cc021bb2a51e2d982a | 9,154 | py | Python | tests/test_hvactemplatezonedualduct.py | marcelosalles/pyidf | c2f744211572b5e14e29522aac1421ba88addb0e | [
"Apache-2.0"
] | 19 | 2015-12-08T23:33:51.000Z | 2022-01-31T04:41:10.000Z | tests/test_hvactemplatezonedualduct.py | marcelosalles/pyidf | c2f744211572b5e14e29522aac1421ba88addb0e | [
"Apache-2.0"
] | 2 | 2019-10-04T10:57:00.000Z | 2021-10-01T06:46:17.000Z | tests/test_hvactemplatezonedualduct.py | marcelosalles/pyidf | c2f744211572b5e14e29522aac1421ba88addb0e | [
"Apache-2.0"
] | 7 | 2015-11-04T02:25:01.000Z | 2021-12-08T03:14:28.000Z | import os
import tempfile
import unittest
import logging
from pyidf import ValidationLevel
import pyidf
from pyidf.idf import IDF
from pyidf.hvac_templates import HvactemplateZoneDualDuct
log = logging.getLogger(__name__)
class TestHvactemplateZoneDualDuct(unittest.TestCase):
def setUp(self):
self.fd, se... | 66.333333 | 178 | 0.807188 | 1,150 | 9,154 | 5.863478 | 0.095652 | 0.046715 | 0.066736 | 0.115676 | 0.870088 | 0.830936 | 0.783479 | 0.651935 | 0.582233 | 0.476198 | 0 | 0.011353 | 0.143653 | 9,154 | 138 | 179 | 66.333333 | 0.848833 | 0.022176 | 0 | 0 | 0 | 0 | 0.057703 | 0.002353 | 0 | 0 | 0 | 0 | 0.254902 | 1 | 0.029412 | false | 0 | 0.078431 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5d75e44ec8a7d1816d7d464cd7305b08b9a513c1 | 3,499 | py | Python | release/stubs.min/Autodesk/Revit/DB/Electrical_parts/WireMaterialType.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 182 | 2017-06-27T02:26:15.000Z | 2022-03-30T18:53:43.000Z | release/stubs.min/Autodesk/Revit/DB/Electrical_parts/WireMaterialType.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 28 | 2017-06-27T13:38:23.000Z | 2022-03-15T11:19:44.000Z | release/stubs.min/Autodesk/Revit/DB/Electrical_parts/WireMaterialType.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 67 | 2017-06-28T09:43:59.000Z | 2022-03-20T21:17:10.000Z | class WireMaterialType(ElementType,IDisposable):
""" Represents electrical wire material type definition information of wire type. """
def AddGroundConductorSize(self,ampacity,size):
"""
AddGroundConductorSize(self: WireMaterialType,ampacity: Int64,size: str) -> GroundConductorSize
Add new electri... | 27.551181 | 215 | 0.720206 | 380 | 3,499 | 6.473684 | 0.260526 | 0.04878 | 0.046341 | 0.039024 | 0.206504 | 0.206504 | 0.188618 | 0.138211 | 0.138211 | 0.138211 | 0 | 0.00105 | 0.183767 | 3,499 | 126 | 216 | 27.769841 | 0.860294 | 0.510717 | 0 | 0.407407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.407407 | false | 0.407407 | 0 | 0 | 0.592593 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5d8bf895eb9661414912e0b1da56c777816d631c | 735 | py | Python | UnityEngine/AccelerationEventArray/__init__.py | Grim-es/udon-pie-auto-completion | c2cd86554ed615cdbbb01e19fa40665eafdfaedc | [
"MIT"
] | null | null | null | UnityEngine/AccelerationEventArray/__init__.py | Grim-es/udon-pie-auto-completion | c2cd86554ed615cdbbb01e19fa40665eafdfaedc | [
"MIT"
] | null | null | null | UnityEngine/AccelerationEventArray/__init__.py | Grim-es/udon-pie-auto-completion | c2cd86554ed615cdbbb01e19fa40665eafdfaedc | [
"MIT"
] | null | null | null | from UdonPie import System
from UdonPie import UnityEngine
from UdonPie.Undefined import *
class AccelerationEventArray:
def __new__(cls, arg1=None):
'''
:returns: AccelerationEventArray
:rtype: UnityEngine.AccelerationEventArray
'''
pass
def __setitem__(self, key, val... | 23.709677 | 50 | 0.604082 | 66 | 735 | 6.545455 | 0.409091 | 0.076389 | 0.078704 | 0.078704 | 0.166667 | 0.166667 | 0.166667 | 0.166667 | 0.166667 | 0 | 0 | 0.017857 | 0.314286 | 735 | 30 | 51 | 24.5 | 0.839286 | 0.427211 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0.3 | 0.3 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5d94a006f56be5e366e84b77ee35b60d1a5a5b41 | 17,174 | py | Python | v1.0.0.test/toontown/racing/RaceGlobals.py | TTOFFLINE-LEAK/ttoffline | bb0e91704a755d34983e94288d50288e46b68380 | [
"MIT"
] | 4 | 2019-07-01T15:46:43.000Z | 2021-07-23T16:26:48.000Z | v1.0.0.test/toontown/racing/RaceGlobals.py | TTOFFLINE-LEAK/ttoffline | bb0e91704a755d34983e94288d50288e46b68380 | [
"MIT"
] | 1 | 2019-06-29T03:40:05.000Z | 2021-06-13T01:15:16.000Z | v1.0.0.test/toontown/racing/RaceGlobals.py | TTOFFLINE-LEAK/ttoffline | bb0e91704a755d34983e94288d50288e46b68380 | [
"MIT"
] | 4 | 2019-07-28T21:18:46.000Z | 2021-02-25T06:37:25.000Z | TrackSignDuration = 15
RaceCountdown = 3
MaxRacers = 4
MaxTickets = 99999
Practice = 0
ToonBattle = 1
Circuit = 2
Speedway = 0
Rural = 1
Urban = 2
RT_Speedway_1 = 0
RT_Speedway_1_rev = 1
RT_Rural_1 = 20
RT_Rural_1_rev = 21
RT_Urban_1 = 40
RT_Urban_1_rev = 41
RT_Speedway_2 = 60
RT_Speedway_2_rev = 61
RT_Rural_2 = 62
RT_... | 27.74475 | 163 | 0.54565 | 2,315 | 17,174 | 3.87473 | 0.327862 | 0.020067 | 0.024526 | 0.015608 | 0.162207 | 0.139911 | 0.126421 | 0.112152 | 0.112152 | 0.112152 | 0 | 0.27995 | 0.298649 | 17,174 | 619 | 164 | 27.74475 | 0.464757 | 0 | 0 | 0.217094 | 0 | 0 | 0.024221 | 0.001339 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.001709 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5da848aec2abd5de52857b129a6637d93ada3db9 | 2,502 | py | Python | src/sklearn_evaluation/table.py | abcnishant007/sklearn-evaluation | 77ff2da43097b0451d8cf6f95c534409f612bf6a | [
"MIT"
] | 351 | 2016-01-27T19:15:27.000Z | 2022-03-09T15:40:56.000Z | src/sklearn_evaluation/table.py | abcnishant007/sklearn-evaluation | 77ff2da43097b0451d8cf6f95c534409f612bf6a | [
"MIT"
] | 37 | 2016-03-16T03:57:59.000Z | 2021-06-26T14:02:33.000Z | src/sklearn_evaluation/table.py | abcnishant007/sklearn-evaluation | 77ff2da43097b0451d8cf6f95c534409f612bf6a | [
"MIT"
] | 30 | 2016-01-27T19:27:08.000Z | 2022-03-31T06:09:59.000Z | from copy import copy
from . import compute
__all__ = ['feature_importances']
def extend_to(list_, n):
needed = n - len(list_)
if needed > 0:
to_add = [None] * needed
return list(list_) + to_add
else:
return copy(list_)
def fixed_length_lists(lists):
max_length = max([len(... | 27.494505 | 78 | 0.616307 | 306 | 2,502 | 4.830065 | 0.372549 | 0.060893 | 0.028417 | 0.017591 | 0.113667 | 0.078484 | 0.078484 | 0.078484 | 0.078484 | 0.078484 | 0 | 0.000569 | 0.298161 | 2,502 | 90 | 79 | 27.8 | 0.841116 | 0.265388 | 0 | 0.086957 | 0 | 0 | 0.109205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0.021739 | 0.195652 | 0.108696 | 0.652174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5db2e311a9c06c294f1b68c721ad796c21518307 | 6,012 | py | Python | Deployment/Heroku-Deployment/Files/server/settings.py | ShahriarDhruvo/DU_Hackathon | 30650287a61a3314e6adb9e1c26206d4d8dbe312 | [
"MIT"
] | 3 | 2021-02-27T21:06:05.000Z | 2021-08-03T16:56:22.000Z | Deployment/Heroku-Deployment/Files/server/settings.py | ShahriarDhruvo/DU_Hackathon | 30650287a61a3314e6adb9e1c26206d4d8dbe312 | [
"MIT"
] | 1 | 2021-02-13T07:22:09.000Z | 2021-02-13T07:22:09.000Z | Deployment/Heroku-Deployment/Files/server/settings.py | ShahriarDhruvo/DU_Hackathon | 30650287a61a3314e6adb9e1c26206d4d8dbe312 | [
"MIT"
] | 1 | 2021-06-14T13:25:36.000Z | 2021-06-14T13:25:36.000Z | """
Django settings for server project.
Generated by 'django-admin startproject' using Django 3.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
i... | 28.093458 | 92 | 0.684963 | 641 | 6,012 | 6.24649 | 0.419657 | 0.051948 | 0.038462 | 0.043706 | 0.164585 | 0.113137 | 0.056943 | 0.056943 | 0.02997 | 0 | 0 | 0.009862 | 0.190452 | 6,012 | 213 | 93 | 28.225352 | 0.812821 | 0.238856 | 0 | 0.023622 | 1 | 0.007874 | 0.521156 | 0.421965 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.062992 | 0.023622 | 0 | 0.023622 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
5db42a9150a8814be168876c7f50795cfcb7bd0a | 119 | py | Python | app/saml/config.py | sunwei/flask-saml2-okta | bae37b119c7b8f7ace66df6d0fe3b88c2e0199d3 | [
"MIT"
] | 1 | 2020-03-02T22:14:47.000Z | 2020-03-02T22:14:47.000Z | app/saml/config.py | sunwei/flask-saml2-okta | bae37b119c7b8f7ace66df6d0fe3b88c2e0199d3 | [
"MIT"
] | null | null | null | app/saml/config.py | sunwei/flask-saml2-okta | bae37b119c7b8f7ace66df6d0fe3b88c2e0199d3 | [
"MIT"
] | null | null | null | metadata_url_for = {
'example-okta-com': 'https://sso.sunzhongmou.com/app/exklw9gt3lxj9xZnv0h7/sso/saml/metadata'
} | 39.666667 | 96 | 0.756303 | 15 | 119 | 5.866667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.07563 | 119 | 3 | 97 | 39.666667 | 0.754545 | 0 | 0 | 0 | 0 | 0 | 0.716667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5db77a70b0bababdf3e8929ac546f78c306ba7d4 | 419 | py | Python | lcci/16.02/dict.py | M-Quadra/LeetCode-problems | 0cc100aa1e50b02df289f04fe2e0b97239eb9895 | [
"MIT"
] | null | null | null | lcci/16.02/dict.py | M-Quadra/LeetCode-problems | 0cc100aa1e50b02df289f04fe2e0b97239eb9895 | [
"MIT"
] | null | null | null | lcci/16.02/dict.py | M-Quadra/LeetCode-problems | 0cc100aa1e50b02df289f04fe2e0b97239eb9895 | [
"MIT"
] | null | null | null | from typing import Dict, List
class WordsFrequency:
dic: Dict[str, int] = {}
def __init__(self, book: List[str]):
self.dic.clear()
for v in book:
self.dic[v] = self.dic.get(v, 0) + 1
def get(self, word: str) -> int:
return self.dic.get(word, 0)
# Your WordsFrequency obj... | 29.928571 | 69 | 0.622912 | 63 | 419 | 4.063492 | 0.539683 | 0.109375 | 0.078125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012698 | 0.24821 | 419 | 14 | 70 | 29.928571 | 0.8 | 0.281623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5db9f5c204bca669101f85ee7440c09e52395453 | 455 | py | Python | loaderio/Loaderio.py | kenyaapps/loaderio | ac0b59d3f8080634c6e69a94fca3767b2a839676 | [
"MIT"
] | null | null | null | loaderio/Loaderio.py | kenyaapps/loaderio | ac0b59d3f8080634c6e69a94fca3767b2a839676 | [
"MIT"
] | null | null | null | loaderio/Loaderio.py | kenyaapps/loaderio | ac0b59d3f8080634c6e69a94fca3767b2a839676 | [
"MIT"
] | null | null | null | from loaderio.resources.client import Client
from loaderio.resources.apps import Apps
from loaderio.resources.results import Results
from loaderio.resources.servers import Servers
from loaderio.resources.tests import Tests
class Loaderio():
"""
"""
def __init__(self, api_key):
self.api_key = api_key
self.apps... | 25.277778 | 46 | 0.773626 | 66 | 455 | 5.166667 | 0.227273 | 0.123167 | 0.175953 | 0.164223 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127473 | 455 | 17 | 47 | 26.764706 | 0.858942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.416667 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.