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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
290a0c25a916059a9ceb5867da78e35b981b4c99 | 97,415 | py | Python | src/data/state2constituency_maps.py | satishjasthi/GeneralElectionData | 7d50dd5c25d30e14d9c08f33b322a73b73806961 | [
"MIT"
] | null | null | null | src/data/state2constituency_maps.py | satishjasthi/GeneralElectionData | 7d50dd5c25d30e14d9c08f33b322a73b73806961 | [
"MIT"
] | null | null | null | src/data/state2constituency_maps.py | satishjasthi/GeneralElectionData | 7d50dd5c25d30e14d9c08f33b322a73b73806961 | [
"MIT"
] | null | null | null | state2constituency_mapper = {2004: {'ANDHRA PRADESH': ['Srikakulam',
'Parvathipuram',
'Bobbili',
'Visakhapatnam',
... | 61.383113 | 110 | 0.150521 | 1,997 | 97,415 | 7.342013 | 0.370055 | 0.009003 | 0.008594 | 0.005934 | 0.693698 | 0.678761 | 0.672214 | 0.663211 | 0.663211 | 0.658778 | 0 | 0.001444 | 0.793892 | 97,415 | 1,586 | 111 | 61.421816 | 0.728808 | 0 | 0 | 0.812106 | 0 | 0 | 0.154956 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
29116d8a87f35781c07e19923536bdc620005c94 | 1,774 | py | Python | tst/accept/steps/scs_template.py | AndreasVikke/ComputerScience-Final | 52d09a5876bfde661a00736712db6e3d19be877d | [
"MIT"
] | 1 | 2021-01-15T11:23:20.000Z | 2021-01-15T11:23:20.000Z | tst/accept/steps/scs_template.py | AndreasVikke/ComputerScience-Final | 52d09a5876bfde661a00736712db6e3d19be877d | [
"MIT"
] | null | null | null | tst/accept/steps/scs_template.py | AndreasVikke/ComputerScience-Final | 52d09a5876bfde661a00736712db6e3d19be877d | [
"MIT"
] | null | null | null | import uuid
import os
from datetime import date
from src.modules.queue_message_writer import write_message
from src.modules.type_enum import Types
from src.modules.get_export import get_export
from src.combine_template_to_slack import consume_sqs
from src.process_user_input import process_template
from src.models.model... | 45.487179 | 296 | 0.790868 | 255 | 1,774 | 5.282353 | 0.403922 | 0.062361 | 0.084633 | 0.100223 | 0.244246 | 0.095768 | 0.095768 | 0.063846 | 0 | 0 | 0 | 0.013141 | 0.099211 | 1,774 | 39 | 297 | 45.487179 | 0.829787 | 0.154453 | 0 | 0.241379 | 0 | 0.034483 | 0.272241 | 0.155184 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0.103448 | 0.517241 | 0 | 0.655172 | 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 |
292ca0c4eed663aec3f6b18b28b600a20bcc99a0 | 4,535 | py | Python | project-settings/settings.py | raikhert13/phonepages | 20359156dd14b6f303cc30465db32cdd0c45c26b | [
"MIT"
] | null | null | null | project-settings/settings.py | raikhert13/phonepages | 20359156dd14b6f303cc30465db32cdd0c45c26b | [
"MIT"
] | null | null | null | project-settings/settings.py | raikhert13/phonepages | 20359156dd14b6f303cc30465db32cdd0c45c26b | [
"MIT"
] | null | null | null | """
Django settings for phonebook project.
Generated by 'django-admin startproject' using Django 3.2.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
... | 26.520468 | 91 | 0.700992 | 495 | 4,535 | 6.276768 | 0.39596 | 0.062762 | 0.063727 | 0.072417 | 0.157708 | 0.149018 | 0.098809 | 0.098809 | 0.051497 | 0 | 0 | 0.011079 | 0.164057 | 4,535 | 170 | 92 | 26.676471 | 0.808494 | 0.248291 | 0 | 0.028571 | 1 | 0.009524 | 0.547014 | 0.430219 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.057143 | 0.028571 | 0 | 0.028571 | 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 |
294d5b66878c0fbdd11005709c3ea986a01a5b0b | 340 | py | Python | ajenti-core/aj/util/__init__.py | ajenti/ajen | 177c1a67278a7763ed06eb2f773d7b409a85ec77 | [
"MIT"
] | 3,777 | 2015-02-21T00:10:12.000Z | 2022-03-30T15:33:22.000Z | ajenti-core/aj/util/__init__.py | ajenti/ajen | 177c1a67278a7763ed06eb2f773d7b409a85ec77 | [
"MIT"
] | 749 | 2015-03-12T14:17:03.000Z | 2022-03-25T13:22:28.000Z | ajenti-core/aj/util/__init__.py | ajenti/ajen | 177c1a67278a7763ed06eb2f773d7b409a85ec77 | [
"MIT"
] | 687 | 2015-03-21T10:42:33.000Z | 2022-03-21T23:18:12.000Z | from aj.util.broadcast_queue import BroadcastQueue
from aj.util.public import public
from aj.util.strings import str_fsize
from aj.util.misc import make_report, platform_select
from aj.util.lazy import LazyModule
__all__ = [
'BroadcastQueue',
'public',
'str_fsize',
'make_report',
'platform_select',... | 24.285714 | 53 | 0.744118 | 45 | 340 | 5.377778 | 0.422222 | 0.123967 | 0.206612 | 0.198347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161765 | 340 | 14 | 54 | 24.285714 | 0.849123 | 0 | 0 | 0 | 0 | 0 | 0.190616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
29613d799a6878d86a3f286da308279195c3690c | 127 | py | Python | Blogs/urls.py | indoriyasboyz/E-commerce | a71e7d043899769e48992216bebebc4b43d647ca | [
"MIT"
] | null | null | null | Blogs/urls.py | indoriyasboyz/E-commerce | a71e7d043899769e48992216bebebc4b43d647ca | [
"MIT"
] | null | null | null | Blogs/urls.py | indoriyasboyz/E-commerce | a71e7d043899769e48992216bebebc4b43d647ca | [
"MIT"
] | null | null | null | from django.urls import path
from .views import Blogview
urlpatterns = [
path('blogs', Blogview.as_view(), name='blog'),
]
| 21.166667 | 51 | 0.708661 | 17 | 127 | 5.235294 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149606 | 127 | 5 | 52 | 25.4 | 0.824074 | 0 | 0 | 0 | 0 | 0 | 0.070866 | 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 |
2964b59fb9688972c8a1b53d2378554e7d7fff86 | 323 | py | Python | run.py | FusionAuth/-fusionauth-example-python-jwt | 3fb8cfd1d7c77306a3a5d92cb834fbf53eee61d9 | [
"Apache-2.0"
] | 2 | 2022-01-04T15:52:31.000Z | 2022-02-01T12:23:10.000Z | run.py | FusionAuth/fusionauth-example-python-jwt | 3fb8cfd1d7c77306a3a5d92cb834fbf53eee61d9 | [
"Apache-2.0"
] | null | null | null | run.py | FusionAuth/fusionauth-example-python-jwt | 3fb8cfd1d7c77306a3a5d92cb834fbf53eee61d9 | [
"Apache-2.0"
] | null | null | null | from app import hmac, rsa, hmac_verify_claims, rsa_wrong_algo
import sys
if __name__ == "__main__":
if sys.argv[1] == "hmac":
hmac.run()
if sys.argv[1] == "rsa":
rsa.run()
if sys.argv[1] == "hmac_verify_claims":
hmac_verify_claims.run()
if sys.argv[1] == "rsa_wrong_algo":
rsa_wrong_algo.run... | 24.846154 | 61 | 0.647059 | 52 | 323 | 3.634615 | 0.307692 | 0.10582 | 0.190476 | 0.21164 | 0.333333 | 0.169312 | 0 | 0 | 0 | 0 | 0 | 0.015326 | 0.19195 | 323 | 12 | 62 | 26.916667 | 0.708812 | 0 | 0 | 0 | 0 | 0 | 0.145511 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
297135053b4df3e9935a10ac78806e5ca7fc1bc7 | 975 | py | Python | gitviper/utilities.py | BeayemX/GitViper | 1d6bb8f070d47868e687d879aa30e572ec6cb876 | [
"MIT"
] | 41 | 2017-11-30T19:38:18.000Z | 2021-04-06T21:39:00.000Z | gitviper/utilities.py | BeayemX/GitViper | 1d6bb8f070d47868e687d879aa30e572ec6cb876 | [
"MIT"
] | 24 | 2017-11-21T22:56:45.000Z | 2020-11-03T20:16:11.000Z | gitviper/utilities.py | BeayemX/GitViper | 1d6bb8f070d47868e687d879aa30e572ec6cb876 | [
"MIT"
] | 6 | 2017-12-13T13:38:48.000Z | 2022-01-05T19:27:01.000Z | import os
from os import walk
from gitviper.settings import settings
from datetime import datetime, timedelta
import humanize
class Vector2:
def __init__(self, x, y):
self.x = x
self.y = y
def get_window_size():
rows, columns = os.popen('stty size', 'r').read().split()
return Vector2(int(columns), int(rows))
... | 23.214286 | 78 | 0.721026 | 146 | 975 | 4.684932 | 0.417808 | 0.035088 | 0.049708 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002442 | 0.16 | 975 | 42 | 79 | 23.214286 | 0.832723 | 0.019487 | 0 | 0 | 0 | 0 | 0.010471 | 0 | 0 | 0 | 0 | 0.02381 | 0 | 1 | 0.225806 | false | 0 | 0.16129 | 0.129032 | 0.612903 | 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 | 1 | 0 | 0 | 0 | 3 |
297fa0f2b0bc93964da46fae2fe3cd251a14d68a | 11,440 | py | Python | ironic/tests/unit/drivers/modules/amt/test_management.py | ISCAS-VDI/ironic-base | 404e41530c4005f3b3967bda3e8bb9d266db1c54 | [
"Apache-2.0"
] | null | null | null | ironic/tests/unit/drivers/modules/amt/test_management.py | ISCAS-VDI/ironic-base | 404e41530c4005f3b3967bda3e8bb9d266db1c54 | [
"Apache-2.0"
] | null | null | null | ironic/tests/unit/drivers/modules/amt/test_management.py | ISCAS-VDI/ironic-base | 404e41530c4005f3b3967bda3e8bb9d266db1c54 | [
"Apache-2.0"
] | null | null | null | #
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under... | 46.885246 | 79 | 0.638986 | 1,332 | 11,440 | 5.18018 | 0.135135 | 0.037681 | 0.024493 | 0.028696 | 0.776232 | 0.756957 | 0.725797 | 0.691159 | 0.685507 | 0.68087 | 0 | 0.000971 | 0.279633 | 11,440 | 243 | 80 | 47.078189 | 0.836306 | 0.049126 | 0 | 0.663212 | 0 | 0 | 0.053964 | 0.004052 | 0 | 0 | 0 | 0 | 0.160622 | 1 | 0.088083 | false | 0 | 0.067358 | 0 | 0.165803 | 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 |
2984b160ea37e7bd06ad604b67b28ffe4bf072a6 | 293 | py | Python | bottle/hello.py | sdyz5210/python | 78f9999f94d92d9ca7fde6f18acec7d3abd422ef | [
"BSD-3-Clause"
] | null | null | null | bottle/hello.py | sdyz5210/python | 78f9999f94d92d9ca7fde6f18acec7d3abd422ef | [
"BSD-3-Clause"
] | null | null | null | bottle/hello.py | sdyz5210/python | 78f9999f94d92d9ca7fde6f18acec7d3abd422ef | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# python version 2.7.6
from bottle import route, run, template
@route('/hello')
def index():
return "Hello Bottle"
@route('/hello/<name>')
def index(name):
return template('<b>Hello {{name}}</b>!', name=name)
run(host='localhost', port=8080)
| 18.3125 | 56 | 0.641638 | 43 | 293 | 4.372093 | 0.604651 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031621 | 0.136519 | 293 | 15 | 57 | 19.533333 | 0.711462 | 0.201365 | 0 | 0 | 0 | 0 | 0.268398 | 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 |
461c891ad53ad3c81b71435a594233be6f185da3 | 242 | py | Python | resources/urls.py | japsu/tracontent | 169fe84c49c1a30133e927f1be50abba171ebe68 | [
"PostgreSQL",
"Unlicense",
"MIT"
] | null | null | null | resources/urls.py | japsu/tracontent | 169fe84c49c1a30133e927f1be50abba171ebe68 | [
"PostgreSQL",
"Unlicense",
"MIT"
] | 7 | 2020-11-26T18:41:07.000Z | 2022-01-18T09:27:00.000Z | resources/urls.py | tracon/tracontent | 65bd8c15b7909a90ebe5ed28cbbf66683a4e3c2c | [
"MIT",
"PostgreSQL",
"Unlicense"
] | null | null | null |
from .views import resources_style_sheet_view
from django.urls import re_path
urlpatterns = [
re_path(r'^css/(?P<style_sheet_name>[a-z0-9_\.]+)$',
resources_style_sheet_view,
name='resources_style_sheet_view',
),
]
| 20.166667 | 56 | 0.694215 | 34 | 242 | 4.529412 | 0.558824 | 0.25974 | 0.37013 | 0.448052 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01005 | 0.177686 | 242 | 11 | 57 | 22 | 0.763819 | 0 | 0 | 0 | 0 | 0 | 0.273859 | 0.273859 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
461dd87cafe0a87071eb33c1511e9f2ce71ae629 | 68 | py | Python | youtube_dl/version.py | gitblazer/youtube-dl | a8035827177d6b59aca03bd717acb6a9bdd75ada | [
"Unlicense"
] | 66,635 | 2019-03-10T21:34:18.000Z | 2022-03-31T23:50:31.000Z | youtube_dl/version.py | gitblazer/youtube-dl | a8035827177d6b59aca03bd717acb6a9bdd75ada | [
"Unlicense"
] | 10,936 | 2019-03-10T21:35:47.000Z | 2022-03-31T23:46:52.000Z | youtube_dl/version.py | gitblazer/youtube-dl | a8035827177d6b59aca03bd717acb6a9bdd75ada | [
"Unlicense"
] | 15,194 | 2019-03-10T21:09:27.000Z | 2022-03-31T22:13:49.000Z | from __future__ import unicode_literals
__version__ = '2021.06.06'
| 17 | 39 | 0.808824 | 9 | 68 | 5.111111 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 0.117647 | 68 | 3 | 40 | 22.666667 | 0.633333 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 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 |
4623e8e3130eae2b8614cb7f9bbe04e1632566ac | 214 | py | Python | aula022 - MODULOS e PACOTES/ex107 - ExercitandoModulos/moeda.py | miradouro/CursoEmVideo-Python | cc7b05a9a4aad8e6ef3b29453d83370094d75e41 | [
"MIT"
] | null | null | null | aula022 - MODULOS e PACOTES/ex107 - ExercitandoModulos/moeda.py | miradouro/CursoEmVideo-Python | cc7b05a9a4aad8e6ef3b29453d83370094d75e41 | [
"MIT"
] | null | null | null | aula022 - MODULOS e PACOTES/ex107 - ExercitandoModulos/moeda.py | miradouro/CursoEmVideo-Python | cc7b05a9a4aad8e6ef3b29453d83370094d75e41 | [
"MIT"
] | null | null | null | def aumentar(n, taxa=10):
a = n + (n * taxa / 100)
return a
def diminuir(n, taxa=10):
a = n - (n * taxa / 100)
return a
def dobro(n):
return float(n * 2)
def metade(n):
return n / 2
| 11.263158 | 28 | 0.514019 | 37 | 214 | 2.972973 | 0.351351 | 0.181818 | 0.127273 | 0.145455 | 0.490909 | 0.490909 | 0.490909 | 0.490909 | 0.490909 | 0.490909 | 0 | 0.084507 | 0.336449 | 214 | 18 | 29 | 11.888889 | 0.690141 | 0 | 0 | 0.2 | 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 |
4657776a1325926c71fc9d6ca95c80e2ad23d589 | 7,278 | py | Python | python/enolib/locales/de.py | eno-lang/enolib | 4175f7c1e8246493b6758c29bddc80d20eaf15f7 | [
"MIT"
] | 17 | 2019-04-15T21:03:37.000Z | 2022-01-24T11:03:34.000Z | python/enolib/locales/de.py | eno-lang/enolib | 4175f7c1e8246493b6758c29bddc80d20eaf15f7 | [
"MIT"
] | 20 | 2019-03-13T23:23:40.000Z | 2022-03-29T13:40:57.000Z | python/enolib/locales/de.py | eno-lang/enolib | 4175f7c1e8246493b6758c29bddc80d20eaf15f7 | [
"MIT"
] | 4 | 2019-04-15T21:18:03.000Z | 2019-09-21T16:18:10.000Z | # GENERATED ON 2019-06-18T08:50:41 - DO NOT EDIT MANUALLY
content_header = 'Inhalt'
expected_document = 'Das Dokument wurde erwartet.'
expected_empty = 'Ein Leerfeld wurde erwartet.'
expected_field = 'Ein Feld wurde erwartet.'
expected_fields = 'Nur Felder wurden erwartet.'
expected_fieldset = 'Ein Fieldset wurde erw... | 101.083333 | 198 | 0.802693 | 1,056 | 7,278 | 5.380682 | 0.167614 | 0.092925 | 0.047518 | 0.064766 | 0.602253 | 0.539775 | 0.431186 | 0.353221 | 0.233545 | 0.194826 | 0 | 0.002206 | 0.12792 | 7,278 | 72 | 199 | 101.083333 | 0.89302 | 0.007557 | 0 | 0 | 1 | 0.171429 | 0.653926 | 0.020357 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
465a4ee8acfcc9309b3b237c1dc1caf602359938 | 1,075 | py | Python | setup.py | rec/myers | 15210e2b2107a8fb524e0bc4e472bdfc0906788c | [
"MIT"
] | 10 | 2020-11-22T14:54:29.000Z | 2022-03-19T14:26:03.000Z | setup.py | rec/myers | 15210e2b2107a8fb524e0bc4e472bdfc0906788c | [
"MIT"
] | null | null | null | setup.py | rec/myers | 15210e2b2107a8fb524e0bc4e472bdfc0906788c | [
"MIT"
] | 2 | 2020-11-12T06:44:28.000Z | 2021-06-01T09:58:31.000Z | from setuptools import setup
import myers
_classifiers = [
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: ... | 31.617647 | 58 | 0.605581 | 111 | 1,075 | 5.711712 | 0.567568 | 0.209779 | 0.276025 | 0.246057 | 0.085174 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01836 | 0.24 | 1,075 | 33 | 59 | 32.575758 | 0.75765 | 0 | 0 | 0 | 0 | 0 | 0.533953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.064516 | 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 |
466a6185edb9374b311b3559cf50b3de02e2bcf5 | 167 | py | Python | utils/remove_all_jobs.py | velniukas/devops-python-jenkins | f44bb0ccd5f89cab718e742cbb591e9ff696d8f1 | [
"MIT"
] | null | null | null | utils/remove_all_jobs.py | velniukas/devops-python-jenkins | f44bb0ccd5f89cab718e742cbb591e9ff696d8f1 | [
"MIT"
] | null | null | null | utils/remove_all_jobs.py | velniukas/devops-python-jenkins | f44bb0ccd5f89cab718e742cbb591e9ff696d8f1 | [
"MIT"
] | null | null | null | from jenkinsapi.jenkins import Jenkins
J = Jenkins('http://localhost:8080')
for job_name in J.jobs.keys():
print 'Removing ', job_name
del J.jobs[job_name]
| 18.555556 | 38 | 0.706587 | 26 | 167 | 4.423077 | 0.653846 | 0.182609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028777 | 0.167665 | 167 | 8 | 39 | 20.875 | 0.798561 | 0 | 0 | 0 | 0 | 0 | 0.179641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
467d00d819b0b49b35bf9de4a96b3327ac99a84e | 217 | py | Python | setting/urls.py | ianahart/devtrove | b743881a5a4b470ffb235bb2311b9a71952ad05b | [
"MIT"
] | null | null | null | setting/urls.py | ianahart/devtrove | b743881a5a4b470ffb235bb2311b9a71952ad05b | [
"MIT"
] | null | null | null | setting/urls.py | ianahart/devtrove | b743881a5a4b470ffb235bb2311b9a71952ad05b | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('settings/theme/<int:pk>/', views.ThemeAPIView.as_view()),
path('settings/language/<int:pk>/', views.PreferredLanguageAPIView.as_view())
]
| 31 | 81 | 0.723502 | 27 | 217 | 5.740741 | 0.592593 | 0.154839 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110599 | 217 | 6 | 82 | 36.166667 | 0.803109 | 0 | 0 | 0 | 0 | 0 | 0.235023 | 0.235023 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
46a29251a908476060eb6ccd9f414788a9f6d981 | 107 | py | Python | output/models/ibm_data/valid/s3_16_2/s3_16_2v04_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/ibm_data/valid/s3_16_2/s3_16_2v04_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/ibm_data/valid/s3_16_2/s3_16_2v04_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.ibm_data.valid.s3_16_2.s3_16_2v04_xsd.s3_16_2v04 import Root
__all__ = [
"Root",
]
| 17.833333 | 79 | 0.757009 | 20 | 107 | 3.45 | 0.7 | 0.173913 | 0.231884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172043 | 0.130841 | 107 | 5 | 80 | 21.4 | 0.569892 | 0 | 0 | 0 | 0 | 0 | 0.037383 | 0 | 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 |
46a2fcd9039639d71f2d154bdefb54df63717368 | 1,700 | py | Python | jacinle/utils/enum.py | sakshamjindal/NSCL-PyTorch-Release | 830842d10da68f82916c131e1f1cbf31b5f8b918 | [
"MIT"
] | 1 | 2020-10-24T10:54:24.000Z | 2020-10-24T10:54:24.000Z | jacinle/utils/enum.py | sakshamjindal/NSCL-PyTorch-Release | 830842d10da68f82916c131e1f1cbf31b5f8b918 | [
"MIT"
] | null | null | null | jacinle/utils/enum.py | sakshamjindal/NSCL-PyTorch-Release | 830842d10da68f82916c131e1f1cbf31b5f8b918 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# File : enum.py
# Author : Jiayuan Mao
# Email : maojiayuan@gmail.com
# Date : 01/18/2018
#
# This file is part of Jacinle.
# Distributed under terms of the MIT license.
import six
import enum
__all__ = ['JacEnum']
class JacEnum(enum.Enum):
"""A customized e... | 25.757576 | 100 | 0.639412 | 214 | 1,700 | 4.892523 | 0.420561 | 0.08596 | 0.064947 | 0.08405 | 0.285578 | 0.241643 | 0.182426 | 0.148997 | 0 | 0 | 0 | 0.007788 | 0.244706 | 1,700 | 65 | 101 | 26.153846 | 0.807632 | 0.174706 | 0 | 0.225 | 0 | 0 | 0.035303 | 0 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.225 | false | 0 | 0.05 | 0.125 | 0.525 | 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 |
3101d56d6af4e204c763fc59cece9e2425a46423 | 1,858 | py | Python | aliyun-python-sdk-alimt/aliyunsdkalimt/request/v20190107/TranslateGeneralRequest.py | liumihust/aliyun-openapi-python-sdk | c7b5dd4befae4b9c59181654289f9272531207ef | [
"Apache-2.0"
] | null | null | null | aliyun-python-sdk-alimt/aliyunsdkalimt/request/v20190107/TranslateGeneralRequest.py | liumihust/aliyun-openapi-python-sdk | c7b5dd4befae4b9c59181654289f9272531207ef | [
"Apache-2.0"
] | null | null | null | aliyun-python-sdk-alimt/aliyunsdkalimt/request/v20190107/TranslateGeneralRequest.py | liumihust/aliyun-openapi-python-sdk | c7b5dd4befae4b9c59181654289f9272531207ef | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 34.407407 | 79 | 0.766416 | 250 | 1,858 | 5.544 | 0.396 | 0.04329 | 0.050505 | 0.061328 | 0.111833 | 0.111833 | 0.111833 | 0 | 0 | 0 | 0 | 0.007505 | 0.139397 | 1,858 | 54 | 80 | 34.407407 | 0.859287 | 0.405813 | 0 | 0 | 0 | 0 | 0.13447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.458333 | false | 0 | 0.041667 | 0.208333 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3119e193b71e76cdb506706d06a754fe395e6ae6 | 65 | py | Python | TestDjango/views.py | antonycarlioni/testDjango | 55e3a9705c6b8d883f14580a2df95fb227c83049 | [
"MIT"
] | null | null | null | TestDjango/views.py | antonycarlioni/testDjango | 55e3a9705c6b8d883f14580a2df95fb227c83049 | [
"MIT"
] | null | null | null | TestDjango/views.py | antonycarlioni/testDjango | 55e3a9705c6b8d883f14580a2df95fb227c83049 | [
"MIT"
] | null | null | null | __author__ = 'longtony'
def test(request):
raise Exception() | 16.25 | 23 | 0.707692 | 7 | 65 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169231 | 65 | 4 | 24 | 16.25 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
311da03ab1ac60ee9a28bdac710922d7bef391c2 | 1,242 | py | Python | 0031_pycahrm_refactor/extract_superclass.py | junjiecai/jupyter_demos | 8aa8a0320545c0ea09e05e94aea82bc8aa537750 | [
"MIT"
] | 3 | 2019-09-16T10:44:39.000Z | 2021-09-04T18:55:52.000Z | 0031_pycahrm_refactor/extract_superclass.py | junjiecai/jupyter_demos | 8aa8a0320545c0ea09e05e94aea82bc8aa537750 | [
"MIT"
] | null | null | null | 0031_pycahrm_refactor/extract_superclass.py | junjiecai/jupyter_demos | 8aa8a0320545c0ea09e05e94aea82bc8aa537750 | [
"MIT"
] | 2 | 2020-10-24T16:19:29.000Z | 2021-09-04T18:55:57.000Z | # Extract __radd__, __sub__, __rsub__ into Mixin (Extract Super Class)
from hyperopt import fmin
from collections import namedtuple
def gcd(x, y):
x = abs(x)
y = abs(y)
while x:
x, y = y % x, x
return y
class Rational(namedtuple('Rational', ['num', 'denom'])):
def __new__(cls, num, den... | 24.84 | 70 | 0.583736 | 154 | 1,242 | 4.396104 | 0.292208 | 0.093058 | 0.053176 | 0.084195 | 0.218612 | 0.079764 | 0 | 0 | 0 | 0 | 0 | 0.003452 | 0.300322 | 1,242 | 49 | 71 | 25.346939 | 0.775604 | 0.05475 | 0 | 0 | 0 | 0 | 0.040102 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.058824 | 0.147059 | 0.588235 | 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 |
3129e3dfdc7f8d9716095ceb04d30a60b3942ad0 | 241 | py | Python | pythainav/nav.py | namv2012/pythainav | 3e617df682ac2f6a453e3e4e120f7a8315758711 | [
"BSD-3-Clause"
] | 12 | 2020-01-23T12:48:01.000Z | 2021-10-06T16:02:42.000Z | pythainav/nav.py | namv2012/pythainav | 3e617df682ac2f6a453e3e4e120f7a8315758711 | [
"BSD-3-Clause"
] | 102 | 2020-01-25T10:06:04.000Z | 2022-03-02T01:05:31.000Z | pythainav/nav.py | namv2012/pythainav | 3e617df682ac2f6a453e3e4e120f7a8315758711 | [
"BSD-3-Clause"
] | 13 | 2020-01-23T13:10:31.000Z | 2021-09-07T02:42:56.000Z | from typing import Set
from dataclasses import dataclass
from datetime import datetime
@dataclass
class Nav:
"""Class for store the NAV value with references"""
value: float
updated: datetime
tags: Set[str]
fund: str
| 16.066667 | 55 | 0.713693 | 32 | 241 | 5.375 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228216 | 241 | 14 | 56 | 17.214286 | 0.924731 | 0.186722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.888889 | 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 |
312e9d3fa7135776a459eb45058dd62c4ecf8837 | 261 | py | Python | features/environment.py | dunossauro/behave-gherkin-v6 | 7761185ea306b93799e11a1061e298670dbe53d5 | [
"MIT"
] | null | null | null | features/environment.py | dunossauro/behave-gherkin-v6 | 7761185ea306b93799e11a1061e298670dbe53d5 | [
"MIT"
] | null | null | null | features/environment.py | dunossauro/behave-gherkin-v6 | 7761185ea306b93799e11a1061e298670dbe53d5 | [
"MIT"
] | null | null | null | from behave import use_fixture
from fixtures.firefox import browser_firefox
def before_tag(context, tag):
if tag == "fixture.browser.firefox":
use_fixture(browser_firefox, context, timeout=10)
if tag == "skip":
context.scenario.skip()
| 26.1 | 57 | 0.712644 | 34 | 261 | 5.323529 | 0.5 | 0.232044 | 0.232044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0.187739 | 261 | 9 | 58 | 29 | 0.84434 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 0.088123 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 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 |
313dd67db12fa4b9207f4f54444a9e99a1ab7ad6 | 2,811 | py | Python | archivebox/core/models.py | apkallum/ArchiveBox | 3d3d5246f13393f3d7e13a421b663d9b61768da2 | [
"MIT"
] | null | null | null | archivebox/core/models.py | apkallum/ArchiveBox | 3d3d5246f13393f3d7e13a421b663d9b61768da2 | [
"MIT"
] | null | null | null | archivebox/core/models.py | apkallum/ArchiveBox | 3d3d5246f13393f3d7e13a421b663d9b61768da2 | [
"MIT"
] | null | null | null | __package__ = 'archivebox.core'
import uuid
from django.db import models
from django.utils.functional import cached_property
from ..util import parse_date
from ..index.schema import Link
class Snapshot(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
url = models.... | 28.393939 | 82 | 0.645322 | 374 | 2,811 | 4.647059 | 0.259358 | 0.088608 | 0.097814 | 0.064442 | 0.327388 | 0.256617 | 0.225547 | 0.13809 | 0.13809 | 0.13809 | 0 | 0.009259 | 0.23159 | 2,811 | 98 | 83 | 28.683673 | 0.79537 | 0.012451 | 0 | 0.222222 | 0 | 0 | 0.063807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.097222 | 0.125 | 0.680556 | 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 |
3150f4eab344cbba861d85590b05890730c56563 | 218 | py | Python | Day9/pallendrome.py | ananthramas/pythonEducation | 7abd0341ee6cf46aaf3b337ba5870e3e3ea72e83 | [
"MIT"
] | null | null | null | Day9/pallendrome.py | ananthramas/pythonEducation | 7abd0341ee6cf46aaf3b337ba5870e3e3ea72e83 | [
"MIT"
] | null | null | null | Day9/pallendrome.py | ananthramas/pythonEducation | 7abd0341ee6cf46aaf3b337ba5870e3e3ea72e83 | [
"MIT"
] | 1 | 2021-03-16T00:04:42.000Z | 2021-03-16T00:04:42.000Z |
print("---Pallendrome check---")
inputStr = input("Enter string ")
revserStr = inputStr[::-1]
if inputStr == revserStr :
print (inputStr, "is a pallendrome!")
else :
print (inputStr, "is not a pallendrome!")
| 15.571429 | 43 | 0.655963 | 25 | 218 | 5.72 | 0.56 | 0.181818 | 0.20979 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005556 | 0.174312 | 218 | 13 | 44 | 16.769231 | 0.788889 | 0 | 0 | 0 | 0 | 0 | 0.345794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
31531aea023d09fb97bac80ad27197ba5fd5b6c5 | 1,593 | py | Python | python/misc/accumulating_product.py | christopher-burke/warmups | 140c96ada87ec5e9faa4622504ddee18840dce4a | [
"MIT"
] | null | null | null | python/misc/accumulating_product.py | christopher-burke/warmups | 140c96ada87ec5e9faa4622504ddee18840dce4a | [
"MIT"
] | 2 | 2022-03-10T03:49:14.000Z | 2022-03-14T00:49:54.000Z | python/misc/accumulating_product.py | christopher-burke/warmups | 140c96ada87ec5e9faa4622504ddee18840dce4a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""Accumulating Product.
Create a function that takes a list and returns a
list of the accumulating product.
"""
from functools import reduce
from itertools import accumulate
from operator import mul
def accumulating_product_reduce(items):
"""Calculate the accumulating product of a list... | 21.821918 | 78 | 0.661645 | 195 | 1,593 | 5.287179 | 0.312821 | 0.294859 | 0.048497 | 0.096993 | 0.380213 | 0.380213 | 0.350145 | 0.313288 | 0.313288 | 0.222114 | 0 | 0.014551 | 0.223478 | 1,593 | 72 | 79 | 22.125 | 0.818917 | 0.512869 | 0 | 0.117647 | 0 | 0 | 0.012085 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.176471 | 0 | 0.588235 | 0.294118 | 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 |
31810666bd10db0a3bd79bcec178285b39ad48bf | 255 | py | Python | lichess_client/abstract_endpoints/abstract_simulations.py | amrout/lichess_python_SDK | 1e2a545b65111bfc58bb963c44ad56be9b4d0835 | [
"Apache-2.0"
] | 8 | 2020-03-14T23:01:59.000Z | 2021-04-02T16:02:32.000Z | lichess_client/abstract_endpoints/abstract_simulations.py | amrout/lichess_python_SDK | 1e2a545b65111bfc58bb963c44ad56be9b4d0835 | [
"Apache-2.0"
] | 13 | 2020-03-08T23:38:53.000Z | 2020-03-14T20:51:16.000Z | lichess_client/abstract_endpoints/abstract_simulations.py | amrout/lichess_python_SDK | 1e2a545b65111bfc58bb963c44ad56be9b4d0835 | [
"Apache-2.0"
] | 7 | 2020-04-11T16:54:43.000Z | 2021-07-18T21:24:15.000Z | from abc import ABC, abstractmethod
class AbstractSimulations(ABC):
"""An abstract class for Simulations API Endpoint"""
@abstractmethod
def get_current(self):
"""Get recently finished, ongoing, and upcoming simuls."""
pass
| 23.181818 | 66 | 0.690196 | 28 | 255 | 6.25 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219608 | 255 | 10 | 67 | 25.5 | 0.879397 | 0.388235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.2 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
319a763c26bda10fb3bdd849b9c9c521dedbf3c8 | 1,339 | py | Python | build/lib.linux-x86_64-2.7/moca/mrs/legacy_urls.py | satvikdhandhania/vit-11 | e599f2b82a9194658c67bbd5c7e45f3b50d016da | [
"BSD-3-Clause"
] | 1 | 2016-09-20T20:36:53.000Z | 2016-09-20T20:36:53.000Z | moca/mrs/legacy_urls.py | satvikdhandhania/vit-11 | e599f2b82a9194658c67bbd5c7e45f3b50d016da | [
"BSD-3-Clause"
] | null | null | null | moca/mrs/legacy_urls.py | satvikdhandhania/vit-11 | e599f2b82a9194658c67bbd5c7e45f3b50d016da | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls.defaults import patterns, url
from moca.mrs import api_handlers
urlpatterns = patterns(
'',
url(r'^notifications/submit/$',
'moca.mrs.legacy_api.notification_submit',
name="moca-api-notification-submit"),
url(r'^notifications/submit/email/$',
'moca.mrs.legac... | 29.755556 | 56 | 0.643017 | 166 | 1,339 | 5.060241 | 0.210843 | 0.083333 | 0.139286 | 0.171429 | 0.35 | 0.078571 | 0 | 0 | 0 | 0 | 0 | 0.001835 | 0.18596 | 1,339 | 44 | 57 | 30.431818 | 0.768807 | 0 | 0 | 0 | 0 | 0 | 0.603435 | 0.588499 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
31b0185d2b7d335e32c19fd7ae8c764135e1b921 | 1,404 | py | Python | tests/conftest.py | J-Owens/soccerdata | 6580835f5790f869f1540da257d58e8cc8fe8104 | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | J-Owens/soccerdata | 6580835f5790f869f1540da257d58e8cc8fe8104 | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | J-Owens/soccerdata | 6580835f5790f869f1540da257d58e8cc8fe8104 | [
"Apache-2.0"
] | null | null | null | """Pytest fixtures for soccerdata package."""
import pytest
import soccerdata as foo
@pytest.fixture
def five38():
"""Return a correctly initialized instance of FiveThirtyEight."""
return foo.FiveThirtyEight(seasons=2021)
@pytest.fixture
def five38_laliga():
"""Return a correctly initialized instance ... | 26 | 97 | 0.723647 | 183 | 1,404 | 5.513661 | 0.322404 | 0.103072 | 0.126858 | 0.187314 | 0.249752 | 0.249752 | 0.103072 | 0 | 0 | 0 | 0 | 0.034775 | 0.160256 | 1,404 | 53 | 98 | 26.490566 | 0.821035 | 0.42094 | 0 | 0.307692 | 0 | 0 | 0.108214 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | true | 0 | 0.076923 | 0 | 0.692308 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
31cb95a7fb83f12e229803bc459aad48c4191678 | 932 | py | Python | flights/migrations/0002_auto_20201230_1158.py | Fastex007/fscs | 4a454fbdcd0dd6d25d88cb085ec2342059d2be31 | [
"BSD-3-Clause"
] | null | null | null | flights/migrations/0002_auto_20201230_1158.py | Fastex007/fscs | 4a454fbdcd0dd6d25d88cb085ec2342059d2be31 | [
"BSD-3-Clause"
] | null | null | null | flights/migrations/0002_auto_20201230_1158.py | Fastex007/fscs | 4a454fbdcd0dd6d25d88cb085ec2342059d2be31 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.1.4 on 2020-12-30 08:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('flights', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='flight',
name='flight_date',
... | 27.411765 | 79 | 0.579399 | 87 | 932 | 6.057471 | 0.517241 | 0.094877 | 0.189753 | 0.220114 | 0.506641 | 0.447818 | 0.151803 | 0 | 0 | 0 | 0 | 0.029412 | 0.306867 | 932 | 33 | 80 | 28.242424 | 0.786378 | 0.048283 | 0 | 0.444444 | 1 | 0 | 0.177401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 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 |
31d4732ca4c5c3f9257c5a4f1e7f4c516f711ff5 | 23,188 | py | Python | tacker/tests/unit/vnfm/infra_drivers/kubernetes/fakes.py | takahashi-tsc/tacker | a0ae01a13dcc51bb374060adcbb4fd484ab37156 | [
"Apache-2.0"
] | null | null | null | tacker/tests/unit/vnfm/infra_drivers/kubernetes/fakes.py | takahashi-tsc/tacker | a0ae01a13dcc51bb374060adcbb4fd484ab37156 | [
"Apache-2.0"
] | null | null | null | tacker/tests/unit/vnfm/infra_drivers/kubernetes/fakes.py | takahashi-tsc/tacker | a0ae01a13dcc51bb374060adcbb4fd484ab37156 | [
"Apache-2.0"
] | 1 | 2020-11-16T02:14:35.000Z | 2020-11-16T02:14:35.000Z | # Copyright (C) 2020 FUJITSU
# 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 a... | 24.589608 | 78 | 0.484992 | 1,795 | 23,188 | 6.071866 | 0.153203 | 0.037251 | 0.088265 | 0.090834 | 0.822186 | 0.76218 | 0.709331 | 0.686302 | 0.612625 | 0.554546 | 0 | 0.030701 | 0.412843 | 23,188 | 942 | 79 | 24.615711 | 0.769813 | 0.025746 | 0 | 0.589487 | 0 | 0 | 0.123361 | 0.011339 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072591 | false | 0 | 0.001252 | 0.037547 | 0.146433 | 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 |
9ed195e6ed7869b2c1f5c83b703758b64f354900 | 226 | py | Python | venv/Lib/site-packages/PySimpleGUIDesigner/boilerplate_psg.py | DoesArt-Studios/RamBrowse | a81da53e04d265d17e76855e7affc11130ee6120 | [
"MIT"
] | 1 | 2020-05-18T06:35:36.000Z | 2020-05-18T06:35:36.000Z | venv/Lib/site-packages/PySimpleGUIDesigner/boilerplate_psg.py | DoesArt-Studios/RamBrowse | a81da53e04d265d17e76855e7affc11130ee6120 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/PySimpleGUIDesigner/boilerplate_psg.py | DoesArt-Studios/RamBrowse | a81da53e04d265d17e76855e7affc11130ee6120 | [
"MIT"
] | null | null | null | boilerplate_ = '''import PySimpleGUI as sg
layout = [[]]
window = sg.Window('App', layout)
while True:
event, values = window.read()
if event in (None, 'Exit'): break
if event == '':
pass
# ~TARGET
window.close()
''' | 14.125 | 42 | 0.628319 | 29 | 226 | 4.862069 | 0.724138 | 0.099291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190265 | 226 | 16 | 43 | 14.125 | 0.770492 | 0 | 0 | 0 | 0 | 0 | 0.903084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.090909 | 0 | 0.090909 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
9edbde44f69ca0eb0652d1d3c9f7314963d456bd | 287 | py | Python | lib/activations.py | gangchill/nip-convnet | 423008883a2fcb68297658f2e6cc63848fa4081b | [
"Apache-2.0"
] | 4 | 2017-07-10T08:48:10.000Z | 2021-05-21T14:47:42.000Z | lib/activations.py | gangchill/nip-convnet | 423008883a2fcb68297658f2e6cc63848fa4081b | [
"Apache-2.0"
] | 22 | 2017-05-26T09:41:48.000Z | 2019-09-11T22:47:27.000Z | lib/activations.py | gangchill/nip-convnet | 423008883a2fcb68297658f2e6cc63848fa4081b | [
"Apache-2.0"
] | 3 | 2017-10-18T00:59:34.000Z | 2019-04-14T17:54:33.000Z | import tensorflow as tf
def l_relu(x, leak = 0.2, name='lrelu'):
# elegant leaky relu formulation inspired by
# https://github.com/pkmital/tensorflow_tutorials/blob/master/python/libs/activations.py
with tf.name_scope(name):
return 0.5 * ( (1 + leak) * x + (1 - leak) * abs(x) ) | 35.875 | 89 | 0.69338 | 46 | 287 | 4.26087 | 0.76087 | 0.05102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024793 | 0.156794 | 287 | 8 | 90 | 35.875 | 0.785124 | 0.452962 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9ee8637b018dd4829d67a249dde1a259b2216375 | 502 | py | Python | service.py | cmput401-fall2018/web-app-ci-cd-with-travis-ci-Perplex | 9c55b9fefc9e1b08f12503e3e7289e1b72c2c322 | [
"MIT"
] | null | null | null | service.py | cmput401-fall2018/web-app-ci-cd-with-travis-ci-Perplex | 9c55b9fefc9e1b08f12503e3e7289e1b72c2c322 | [
"MIT"
] | 3 | 2020-02-11T23:13:20.000Z | 2021-06-10T20:51:52.000Z | service.py | cmput401-fall2018/web-app-ci-cd-with-travis-ci-Perplex | 9c55b9fefc9e1b08f12503e3e7289e1b72c2c322 | [
"MIT"
] | null | null | null | import random
class Service():
# returns a random number
def bad_random():
file = open('/Users/dchui1/datafile', 'r')
numberStrings = file.readlines()
numbers = [int(x) for x in numberStrings]
return random.randint(0, len(numberStrings)-1)
def divide(self, y):
ret... | 22.818182 | 54 | 0.59761 | 65 | 502 | 4.538462 | 0.538462 | 0.091525 | 0.088136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01385 | 0.280876 | 502 | 21 | 55 | 23.904762 | 0.803324 | 0.045817 | 0 | 0 | 0 | 0 | 0.048319 | 0.046218 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0.230769 | 0.769231 | 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 |
9ee992a86fc896cb144edecba4aca4b9b4805467 | 1,956 | py | Python | bishop.py | danielrunejensen/chess-move-validator | 8916654399fd1c9f67c6838947e618a33fe51211 | [
"MIT"
] | null | null | null | bishop.py | danielrunejensen/chess-move-validator | 8916654399fd1c9f67c6838947e618a33fe51211 | [
"MIT"
] | null | null | null | bishop.py | danielrunejensen/chess-move-validator | 8916654399fd1c9f67c6838947e618a33fe51211 | [
"MIT"
] | null | null | null | from coordinate import Coordinate
from piece import Piece, Type
class Bishop(Piece):
def __init__(self, color):
super(Bishop, self).__init__(Type.BISHOP, color)
def create_possible_moves(self, from_coordinate, board):
moves = []
moves.extend(self.create_directional_coordinates(
... | 44.454545 | 102 | 0.695808 | 232 | 1,956 | 5.560345 | 0.224138 | 0.184496 | 0.073643 | 0.081395 | 0.703876 | 0.703876 | 0.703876 | 0.668992 | 0.668992 | 0.668992 | 0 | 0.005291 | 0.226994 | 1,956 | 44 | 103 | 44.454545 | 0.846561 | 0 | 0 | 0.222222 | 0 | 0 | 0.016863 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.055556 | 0.083333 | 0.388889 | 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 |
73172116a9a1d704886fbafad3429d7ef55916d8 | 1,110 | py | Python | src/sima/riflex/blueprints/strainstressitem.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/riflex/blueprints/strainstressitem.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/riflex/blueprints/strainstressitem.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | #
# Generated with StrainStressItemBlueprint
from dmt.blueprint import Blueprint
from dmt.dimension import Dimension
from dmt.attribute import Attribute
from dmt.enum_attribute import EnumAttribute
from dmt.blueprint_attribute import BlueprintAttribute
from sima.sima.blueprints.moao import MOAOBlueprint
class StrainS... | 55.5 | 123 | 0.746847 | 123 | 1,110 | 6.634146 | 0.365854 | 0.102941 | 0.147059 | 0.177696 | 0.246324 | 0.205882 | 0.102941 | 0.102941 | 0.102941 | 0.102941 | 0 | 0.004057 | 0.111712 | 1,110 | 20 | 124 | 55.5 | 0.823529 | 0.036036 | 0 | 0 | 1 | 0 | 0.212064 | 0.023563 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.4 | 0 | 0.533333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
732341df435301b4064e469007e37e3120a9692a | 153 | py | Python | problem/10000~19999/17388/17388.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 1 | 2019-04-19T16:37:44.000Z | 2019-04-19T16:37:44.000Z | problem/10000~19999/17388/17388.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 1 | 2019-04-20T11:42:44.000Z | 2019-04-20T11:42:44.000Z | problem/10000~19999/17388/17388.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 3 | 2019-04-19T16:37:47.000Z | 2021-10-25T00:45:00.000Z | a,b,c=map(int,input().split())
if a+b+c>=100: print("OK")
elif a==min(a,b,c): print("Soongsil")
elif b==min(a,b,c): print("Korea")
else: print("Hanyang") | 30.6 | 37 | 0.620915 | 33 | 153 | 2.878788 | 0.515152 | 0.084211 | 0.126316 | 0.126316 | 0.231579 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021127 | 0.071895 | 153 | 5 | 38 | 30.6 | 0.647887 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.8 | 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 | 0 | 0 | 0 | 1 | 0 | 3 |
7327f3b96bca558406209ad5efceb765506d3705 | 279 | py | Python | dagobah/core/__init__.py | rclough/dagobah | 5480cbaae4d5d17d10d497ba657dffd7677953b0 | [
"WTFPL"
] | null | null | null | dagobah/core/__init__.py | rclough/dagobah | 5480cbaae4d5d17d10d497ba657dffd7677953b0 | [
"WTFPL"
] | null | null | null | dagobah/core/__init__.py | rclough/dagobah | 5480cbaae4d5d17d10d497ba657dffd7677953b0 | [
"WTFPL"
] | null | null | null | from dag import DAG, DAGValidationError
from .components import JobState, Scheduler, EventHandler
from .dagobah_error import DagobahError
from .dagobah import Dagobah
from .task import Task
from .jobtask import JobTask
from .job import Job
from .delegator import CommitDelegator
| 31 | 57 | 0.83871 | 36 | 279 | 6.472222 | 0.444444 | 0.094421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125448 | 279 | 8 | 58 | 34.875 | 0.954918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
734597168a52100ff36bec9ff34a8ee2647c4479 | 641 | py | Python | mmf/datasets/databases/scene_graph_database.py | facebookresearch/worldsheet | 13175f8f5e10b13436546ebf1600dc21005124d0 | [
"BSD-3-Clause"
] | 21 | 2021-09-29T17:19:29.000Z | 2022-03-14T23:24:51.000Z | mmf/datasets/databases/scene_graph_database.py | facebookresearch/worldsheet | 13175f8f5e10b13436546ebf1600dc21005124d0 | [
"BSD-3-Clause"
] | 1 | 2022-03-14T00:53:26.000Z | 2022-03-15T16:08:16.000Z | mmf/datasets/databases/scene_graph_database.py | facebookresearch/worldsheet | 13175f8f5e10b13436546ebf1600dc21005124d0 | [
"BSD-3-Clause"
] | 2 | 2021-11-06T01:35:39.000Z | 2021-11-27T02:53:49.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
from mmf.datasets.databases.annotation_database import AnnotationDatabase
class SceneGraphDatabase(AnnotationData... | 35.611111 | 73 | 0.714509 | 85 | 641 | 5.141176 | 0.658824 | 0.073227 | 0.08238 | 0.091533 | 0.1373 | 0.1373 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191888 | 641 | 17 | 74 | 37.705882 | 0.843629 | 0.304212 | 0 | 0 | 0 | 0 | 0.018141 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
734c14f355fd7311bbb772bf65cbe9873c629067 | 417 | py | Python | tests/contrib/djangorestframework/app/exceptions.py | p7g/dd-trace-py | 141ac0ab6e9962e3b3bafc9de172076075289a19 | [
"Apache-2.0",
"BSD-3-Clause"
] | 308 | 2016-12-07T16:49:27.000Z | 2022-03-15T10:06:45.000Z | tests/contrib/djangorestframework/app/exceptions.py | p7g/dd-trace-py | 141ac0ab6e9962e3b3bafc9de172076075289a19 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1,928 | 2016-11-28T17:13:18.000Z | 2022-03-31T21:43:19.000Z | tests/contrib/djangorestframework/app/exceptions.py | p7g/dd-trace-py | 141ac0ab6e9962e3b3bafc9de172076075289a19 | [
"Apache-2.0",
"BSD-3-Clause"
] | 311 | 2016-11-27T03:01:49.000Z | 2022-03-18T21:34:03.000Z | from rest_framework import status
from rest_framework.response import Response
from rest_framework.views import exception_handler
def custom_exception_handler(exc, context):
response = exception_handler(exc, context)
# We overwrite the response status code to 500
if response is not None:
return R... | 29.785714 | 91 | 0.781775 | 56 | 417 | 5.625 | 0.535714 | 0.07619 | 0.161905 | 0.165079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017143 | 0.160671 | 417 | 13 | 92 | 32.076923 | 0.882857 | 0.105516 | 0 | 0 | 0 | 0 | 0.016173 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 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 |
b4061ab57e2f2604f0574865e88656421caa0133 | 1,555 | py | Python | sarpy/io/general/nitf_elements/tres/unclass/RSMPIA.py | spacefan/sarpy | 2791af86b568c8a8560275aee426a4718d5a4606 | [
"MIT"
] | 119 | 2018-07-12T22:08:17.000Z | 2022-03-24T12:11:39.000Z | sarpy/io/general/nitf_elements/tres/unclass/RSMPIA.py | spacefan/sarpy | 2791af86b568c8a8560275aee426a4718d5a4606 | [
"MIT"
] | 72 | 2018-03-29T15:57:37.000Z | 2022-03-10T01:46:21.000Z | sarpy/io/general/nitf_elements/tres/unclass/RSMPIA.py | spacefan/sarpy | 2791af86b568c8a8560275aee426a4718d5a4606 | [
"MIT"
] | 54 | 2018-03-27T19:57:20.000Z | 2022-03-09T20:53:11.000Z |
from ..tre_elements import TREExtension, TREElement
__classification__ = "UNCLASSIFIED"
__author__ = "Thomas McCullough"
class RSMPIAType(TREElement):
def __init__(self, value):
super(RSMPIAType, self).__init__()
self.add_field('IID', 's', 80, value)
self.add_field('EDITION', 's', 40, va... | 36.162791 | 51 | 0.565273 | 220 | 1,555 | 3.777273 | 0.254545 | 0.227437 | 0.389892 | 0.531889 | 0.574007 | 0.574007 | 0 | 0 | 0 | 0 | 0 | 0.044992 | 0.242444 | 1,555 | 42 | 52 | 37.02381 | 0.660441 | 0 | 0 | 0 | 0 | 0 | 0.093951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.027778 | 0 | 0.166667 | 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 |
b40f56cf079af2381f00d67dfe89aa6b1b64976b | 19 | py | Python | gatherup/__init__.py | GatherUp/PYTHON-SDK | 92c01376fbfd66084d8cd5210c04673c1ea0520e | [
"MIT"
] | null | null | null | gatherup/__init__.py | GatherUp/PYTHON-SDK | 92c01376fbfd66084d8cd5210c04673c1ea0520e | [
"MIT"
] | null | null | null | gatherup/__init__.py | GatherUp/PYTHON-SDK | 92c01376fbfd66084d8cd5210c04673c1ea0520e | [
"MIT"
] | null | null | null | name = "gatherup"
| 9.5 | 18 | 0.631579 | 2 | 19 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 19 | 1 | 19 | 19 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.421053 | 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 |
b43927bfbff6ff73d4b0abc6879d0b7f406a810b | 396 | py | Python | vkbottle/tools/dev_tools/__init__.py | van-burgerberg/vkbottle | 134eb76e6289b7674142316ca72646ce999d9388 | [
"MIT"
] | null | null | null | vkbottle/tools/dev_tools/__init__.py | van-burgerberg/vkbottle | 134eb76e6289b7674142316ca72646ce999d9388 | [
"MIT"
] | null | null | null | vkbottle/tools/dev_tools/__init__.py | van-burgerberg/vkbottle | 134eb76e6289b7674142316ca72646ce999d9388 | [
"MIT"
] | null | null | null | from . import auth
from .ctx_tool import BaseContext
from .keyboard import *
from .template import TemplateElement, template_gen
from .loop_wrapper import LoopWrapper, DelayedTask
from .mini_types import BotTypes, message_min
from .storage import ABCStorage, CtxStorage
from .utils import run_in_task, convert_shorten_fi... | 39.6 | 84 | 0.853535 | 53 | 396 | 6.132075 | 0.641509 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106061 | 396 | 9 | 85 | 44 | 0.918079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.111111 | 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 |
b43971f5cab9fc3c9e9398f5fa33ab56b48b8c24 | 609 | py | Python | python/ingestor/errors.py | jonathan-longe/RSBC-DataHub-API | 90c3810a982a3f440673e8d4ea60973467eb335f | [
"Apache-2.0"
] | 3 | 2020-02-18T20:54:13.000Z | 2022-01-14T17:11:45.000Z | python/ingestor/errors.py | jonathan-longe/RSBC-DataHub-API | 90c3810a982a3f440673e8d4ea60973467eb335f | [
"Apache-2.0"
] | 41 | 2020-03-19T19:00:51.000Z | 2022-03-05T02:12:18.000Z | python/ingestor/errors.py | jonathan-longe/RSBC-DataHub-API | 90c3810a982a3f440673e8d4ea60973467eb335f | [
"Apache-2.0"
] | 6 | 2020-02-20T20:05:24.000Z | 2022-01-25T02:19:29.000Z | import logging
def has_not_applied_before_evidence(**args) -> tuple:
error = 'You must apply before you can submit evidence.'
logging.info(error)
args['error_string'] = error
return True, args
def has_not_paid_before_evidence(**args) -> tuple:
error = 'You must pay before you can submit evidence... | 26.478261 | 69 | 0.704433 | 84 | 609 | 4.928571 | 0.309524 | 0.043478 | 0.065217 | 0.123188 | 0.821256 | 0.700483 | 0.700483 | 0.531401 | 0.531401 | 0.531401 | 0 | 0 | 0.197044 | 609 | 22 | 70 | 27.681818 | 0.846626 | 0 | 0 | 0.5625 | 0 | 0 | 0.297209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.0625 | 0 | 0.4375 | 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 |
b43fe4a73f00731ebe430a473d136caed6b009e0 | 17 | py | Python | python/testData/psi/FStringWithSimpleFragment.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/psi/FStringWithSimpleFragment.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/psi/FStringWithSimpleFragment.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | s = f'foo{42}bar' | 17 | 17 | 0.588235 | 5 | 17 | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 0.117647 | 17 | 1 | 17 | 17 | 0.533333 | 0 | 0 | 0 | 0 | 0 | 0.555556 | 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 |
b4406813f91bee0792ef4bfca4e293e5594b2ac3 | 171 | py | Python | richtemplates/urls.py | lordoftheflies/django-richtemplates | 622f8728b286516ed0affb26ecc3d543f43bda3f | [
"BSD-3-Clause"
] | null | null | null | richtemplates/urls.py | lordoftheflies/django-richtemplates | 622f8728b286516ed0affb26ecc3d543f43bda3f | [
"BSD-3-Clause"
] | 3 | 2020-02-12T03:14:04.000Z | 2021-06-10T22:01:38.000Z | richtemplates/urls.py | lordoftheflies/django-richtemplates | 622f8728b286516ed0affb26ecc3d543f43bda3f | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls.defaults import *
urlpatterns = patterns('richtemplates.views',
url(r'rst_preview/$', view='rst_preview', name='richtemplates_rst_preview'),
)
| 24.428571 | 80 | 0.748538 | 21 | 171 | 5.904762 | 0.761905 | 0.241935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099415 | 171 | 6 | 81 | 28.5 | 0.805195 | 0 | 0 | 0 | 0 | 0 | 0.4 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
b446e119ba27dbe47191f57353483f11afec5fb6 | 2,378 | py | Python | Mediante_Kid_Day_3_Act2.py | RomartM/PythonSeminarActivities | 59e3409e7ef1bd7a1ee0c105a23a6a5165c921eb | [
"MIT"
] | null | null | null | Mediante_Kid_Day_3_Act2.py | RomartM/PythonSeminarActivities | 59e3409e7ef1bd7a1ee0c105a23a6a5165c921eb | [
"MIT"
] | null | null | null | Mediante_Kid_Day_3_Act2.py | RomartM/PythonSeminarActivities | 59e3409e7ef1bd7a1ee0c105a23a6a5165c921eb | [
"MIT"
] | null | null | null | # Init
f1 = 0
f2 = 0
f3 = 0
f4 = 0
# Input
n1 = int(input("Enter First Number: "))
n2 = int(input("Enter Second Number: "))
n3 = int(input("Enter Third Number: "))
n4 = int(input("Enter Fourth Number: "))
# Process
if n1 > n2 and n1 > n3 and n1 > n4:
f4 = n1
if n2 > n3 and n2 > n4:
f3 = n2
... | 19.177419 | 40 | 0.333894 | 327 | 2,378 | 2.428135 | 0.082569 | 0.09068 | 0.04534 | 0.062972 | 0.575567 | 0.394207 | 0.221662 | 0.221662 | 0.221662 | 0.221662 | 0 | 0.24024 | 0.579899 | 2,378 | 123 | 41 | 19.333333 | 0.554555 | 0.010513 | 0 | 0.707965 | 0 | 0 | 0.046422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.00885 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b4510637bd6553bdccd5a0f8673f4a658ca16bd1 | 231 | py | Python | tensorkit/backend/sparse.py | lizeyan/tensorkit | 2997a5914ec3c3ec72f91eb5906b5ee878fdc020 | [
"MIT"
] | null | null | null | tensorkit/backend/sparse.py | lizeyan/tensorkit | 2997a5914ec3c3ec72f91eb5906b5ee878fdc020 | [
"MIT"
] | null | null | null | tensorkit/backend/sparse.py | lizeyan/tensorkit | 2997a5914ec3c3ec72f91eb5906b5ee878fdc020 | [
"MIT"
] | null | null | null | from ..settings_ import settings
if settings.backend == 'PyTorch':
from .pytorch_ import sparse
from .pytorch_.sparse import *
else:
RuntimeError(f'Backend {settings.backend} not supported.')
__all__ = sparse.__all__
| 23.1 | 62 | 0.735931 | 27 | 231 | 5.888889 | 0.481481 | 0.188679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164502 | 231 | 9 | 63 | 25.666667 | 0.823834 | 0 | 0 | 0 | 0 | 0 | 0.207792 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 |
81e9f1159575ac31acce7e5d310cd4ca10100434 | 1,055 | py | Python | poezio/tabs/__init__.py | hrnciar/poezio | 12b8af11df35dda535412b0c02ba792890095a7d | [
"Zlib"
] | 50 | 2015-02-11T12:00:25.000Z | 2022-01-18T05:26:40.000Z | poezio/tabs/__init__.py | hrnciar/poezio | 12b8af11df35dda535412b0c02ba792890095a7d | [
"Zlib"
] | 3 | 2017-11-27T20:55:42.000Z | 2020-03-20T18:05:53.000Z | poezio/tabs/__init__.py | hrnciar/poezio | 12b8af11df35dda535412b0c02ba792890095a7d | [
"Zlib"
] | 15 | 2015-04-22T14:33:36.000Z | 2021-09-29T21:33:50.000Z | from poezio.tabs.basetabs import Tab, ChatTab, GapTab, OneToOneTab
from poezio.tabs.basetabs import STATE_PRIORITY, SHOW_NAME
from poezio.tabs.rostertab import RosterInfoTab
from poezio.tabs.muctab import MucTab, NS_MUC_USER
from poezio.tabs.privatetab import PrivateTab
from poezio.tabs.confirmtab import ConfirmTab
fro... | 45.869565 | 80 | 0.802844 | 117 | 1,055 | 7.111111 | 0.307692 | 0.15625 | 0.21875 | 0.052885 | 0.067308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106161 | 1,055 | 22 | 81 | 47.954545 | 0.882291 | 0 | 0 | 0 | 0 | 0 | 0.21327 | 0.040758 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.619048 | 0 | 0.619048 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
81f2c5633c2f07ddae43f0662e1766f8b37f8d47 | 141 | py | Python | app/models/__init__.py | 1995chen/jingdong_financial | 0d3542fc91c28cf051d57775ab529f789fbdbba1 | [
"MIT"
] | 1 | 2022-03-09T13:05:14.000Z | 2022-03-09T13:05:14.000Z | app/models/__init__.py | 1995chen/jingdong_financial | 0d3542fc91c28cf051d57775ab529f789fbdbba1 | [
"MIT"
] | null | null | null | app/models/__init__.py | 1995chen/jingdong_financial | 0d3542fc91c28cf051d57775ab529f789fbdbba1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from app.models.test import Test
from app.models.gold import GoldPrice
__all__ = [
'Test',
'GoldPrice',
]
| 12.818182 | 37 | 0.631206 | 18 | 141 | 4.722222 | 0.611111 | 0.164706 | 0.305882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009009 | 0.212766 | 141 | 10 | 38 | 14.1 | 0.756757 | 0.148936 | 0 | 0 | 0 | 0 | 0.110169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
81f7af0c48b3d90ad796b393238bfe3d50b1e455 | 14,690 | py | Python | lib/googlecloudsdk/core/resource/resource_lf_expr.py | ianel20/google-cloud-sdk | 36ed4e06ba3961d0a8fbf30a3eaabf7db6d4e9c3 | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/core/resource/resource_lf_expr.py | ianel20/google-cloud-sdk | 36ed4e06ba3961d0a8fbf30a3eaabf7db6d4e9c3 | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/core/resource/resource_lf_expr.py | ianel20/google-cloud-sdk | 36ed4e06ba3961d0a8fbf30a3eaabf7db6d4e9c3 | [
"Apache-2.0"
] | 1 | 2020-07-25T12:23:41.000Z | 2020-07-25T12:23:41.000Z | # Copyright 2015 Google Inc. 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 applicable law or ag... | 29.031621 | 80 | 0.673724 | 1,936 | 14,690 | 5.016012 | 0.149277 | 0.036248 | 0.037174 | 0.042632 | 0.373906 | 0.320667 | 0.268561 | 0.235403 | 0.144166 | 0.134693 | 0 | 0.000873 | 0.220014 | 14,690 | 505 | 81 | 29.089109 | 0.846657 | 0.428795 | 0 | 0.26601 | 0 | 0 | 0.029356 | 0.008896 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216749 | false | 0.009852 | 0.014778 | 0.1133 | 0.596059 | 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 |
81fb622101909461922fb742aaff38108dffe5bb | 14,119 | py | Python | tests/fds/sdk/utils/authentication/test_confidential.py | factset/enterprise-sdk-utils-python | 8f2b5e3ed9cc56c34a341a1acea2b5e966db7284 | [
"Apache-2.0"
] | 5 | 2022-02-08T17:32:27.000Z | 2022-03-22T12:59:33.000Z | tests/fds/sdk/utils/authentication/test_confidential.py | factset/enterprise-sdk-utils-python | 8f2b5e3ed9cc56c34a341a1acea2b5e966db7284 | [
"Apache-2.0"
] | 2 | 2022-03-22T13:35:26.000Z | 2022-03-29T02:41:20.000Z | tests/fds/sdk/utils/authentication/test_confidential.py | factset/enterprise-sdk-utils-python | 8f2b5e3ed9cc56c34a341a1acea2b5e966db7284 | [
"Apache-2.0"
] | null | null | null | import json
import logging
from unittest.mock import ANY, mock_open
import pytest
from fds.sdk.utils.authentication import (
AccessTokenError,
AuthServerMetadataError,
AuthServerMetadataContentError,
ConfidentialClient,
ConfidentialClientError,
ConfigurationError,
OAuth2Client,
)
@pytest... | 35.926209 | 119 | 0.714286 | 1,614 | 14,119 | 6.034696 | 0.113383 | 0.068891 | 0.063244 | 0.143737 | 0.769302 | 0.744764 | 0.716427 | 0.652464 | 0.607598 | 0.607598 | 0 | 0.01079 | 0.166372 | 14,119 | 392 | 120 | 36.017857 | 0.816737 | 0 | 0 | 0.498328 | 0 | 0 | 0.354204 | 0.243077 | 0 | 0 | 0 | 0 | 0.110368 | 1 | 0.083612 | false | 0 | 0.016722 | 0.016722 | 0.160535 | 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 |
c31109c974c59face0e57ffe81fc28a25d8bc82f | 1,192 | py | Python | src/tensorflow_time_series_dataset/loaders/__init__.py | MArpogaus/tensorflow_timeseries_dataset | f5202d2845e2583b21b30d467e301517f5c5f5f1 | [
"Apache-2.0"
] | 1 | 2022-01-27T10:33:11.000Z | 2022-01-27T10:33:11.000Z | src/tensorflow_time_series_dataset/loaders/__init__.py | MArpogaus/tensorflow_timeseries_dataset | f5202d2845e2583b21b30d467e301517f5c5f5f1 | [
"Apache-2.0"
] | null | null | null | src/tensorflow_time_series_dataset/loaders/__init__.py | MArpogaus/tensorflow_timeseries_dataset | f5202d2845e2583b21b30d467e301517f5c5f5f1 | [
"Apache-2.0"
] | null | null | null | # -*- time-stamp-pattern: "changed[\s]+:[\s]+%%$"; -*-
# AUTHOR INFORMATION ##########################################################
# file : __init__.py
# author : Marcel Arpogaus <marcel dot arpogaus at gmail dot com>
#
# created : 2022-01-07 09:02:38 (Marcel Arpogaus)
# changed : 2022-01-07 09:02:38 (Marcel Ar... | 45.846154 | 79 | 0.566275 | 137 | 1,192 | 4.883212 | 0.642336 | 0.089686 | 0.023916 | 0.029895 | 0.083707 | 0.083707 | 0.083707 | 0.083707 | 0 | 0 | 0 | 0.034615 | 0.127517 | 1,192 | 25 | 80 | 47.68 | 0.608654 | 0.696309 | 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 |
c35d308d78ed4d2aac9f5a255429c6508a28e943 | 4,632 | py | Python | cosmogrb/instruments/gbm/gbm_universe.py | grburgess/cosmogrb | 55182f2223a329f598bcbc43448f3b0ae9f45448 | [
"BSD-2-Clause"
] | 3 | 2020-03-08T18:20:32.000Z | 2022-03-10T17:27:26.000Z | cosmogrb/instruments/gbm/gbm_universe.py | grburgess/cosmogrb | 55182f2223a329f598bcbc43448f3b0ae9f45448 | [
"BSD-2-Clause"
] | 11 | 2020-03-04T17:21:15.000Z | 2020-06-09T12:20:00.000Z | cosmogrb/instruments/gbm/gbm_universe.py | grburgess/cosmogrb | 55182f2223a329f598bcbc43448f3b0ae9f45448 | [
"BSD-2-Clause"
] | 5 | 2020-03-18T18:05:05.000Z | 2022-03-21T16:06:38.000Z | import numpy as np
from cosmogrb.instruments.gbm.gbm_grb import GBMGRB_CPL, GBMGRB_CPL_Constant
from cosmogrb.universe.universe import GRBWrapper, ParameterServer, Universe
class GBM_CPL_Universe(Universe):
"""Documentation for GBM_CPL_Universe
"""
def __init__(self, population, save_path="."):
... | 23.276382 | 79 | 0.602332 | 491 | 4,632 | 5.274949 | 0.12831 | 0.055598 | 0.064865 | 0.050965 | 0.821236 | 0.756757 | 0.650965 | 0.650965 | 0.611583 | 0.577606 | 0 | 0.002486 | 0.305268 | 4,632 | 198 | 80 | 23.393939 | 0.802362 | 0.156952 | 0 | 0.565657 | 0 | 0 | 0.015664 | 0 | 0 | 0 | 0 | 0.010101 | 0 | 1 | 0.141414 | false | 0 | 0.030303 | 0.060606 | 0.292929 | 0 | 0 | 0 | 0 | null | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c35edcd01cdb2970fa79e97d4809d7ecb03c4b75 | 129 | py | Python | x2xlm.py | treys/crypto-key-derivation | 789900bd73160db9a0d406c7c7f00f5f299aff73 | [
"MIT"
] | 29 | 2017-11-12T08:54:03.000Z | 2022-03-04T21:12:00.000Z | x2xlm.py | treys/crypto-key-derivation | 789900bd73160db9a0d406c7c7f00f5f299aff73 | [
"MIT"
] | 2 | 2019-03-01T05:56:52.000Z | 2021-05-17T00:18:01.000Z | x2xlm.py | treys/crypto-key-derivation | 789900bd73160db9a0d406c7c7f00f5f299aff73 | [
"MIT"
] | 9 | 2018-04-10T08:40:25.000Z | 2021-12-29T16:04:48.000Z | #!./venv/bin/python
from lib import mbp32, utils
xkey = mbp32.XKey.from_xkey(utils.one_line_from_stdin())
print(xkey.to_xlm())
| 18.428571 | 56 | 0.751938 | 22 | 129 | 4.181818 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034188 | 0.093023 | 129 | 6 | 57 | 21.5 | 0.752137 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c37812edc50753d85b59f4dc6704718d0cfb6906 | 210 | py | Python | Exercices/Secao04/exercicio06.py | Guilt-tech/PythonExercices | e59bffae997a1974d3e3cdcfff7700afbed65e6e | [
"MIT"
] | null | null | null | Exercices/Secao04/exercicio06.py | Guilt-tech/PythonExercices | e59bffae997a1974d3e3cdcfff7700afbed65e6e | [
"MIT"
] | null | null | null | Exercices/Secao04/exercicio06.py | Guilt-tech/PythonExercices | e59bffae997a1974d3e3cdcfff7700afbed65e6e | [
"MIT"
] | null | null | null | print('Digite uma temperatura em graus Celsius, que será convertido em Fahrenheit')
C = float(input('Temperatura: '))
F = C * (9.0 / 5.0) + 32.0
print(f'A temperatura em Fahrenheit é: {F} e em Celsius é: {C}') | 52.5 | 83 | 0.680952 | 37 | 210 | 3.864865 | 0.594595 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.166667 | 210 | 4 | 84 | 52.5 | 0.777143 | 0 | 0 | 0 | 0 | 0 | 0.668246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
c37895f2eb4a87e1750a4122165e57f55ed48a94 | 55 | py | Python | mlcomp/worker/executors/catalyst/__init__.py | sUeharaE4/mlcomp | 1e0c23f84622ea4f72eb4e2354cef5ee16b767f4 | [
"Apache-2.0"
] | null | null | null | mlcomp/worker/executors/catalyst/__init__.py | sUeharaE4/mlcomp | 1e0c23f84622ea4f72eb4e2354cef5ee16b767f4 | [
"Apache-2.0"
] | null | null | null | mlcomp/worker/executors/catalyst/__init__.py | sUeharaE4/mlcomp | 1e0c23f84622ea4f72eb4e2354cef5ee16b767f4 | [
"Apache-2.0"
] | null | null | null | from .catalyst import Catalyst
__all__ = ['Catalyst']
| 13.75 | 30 | 0.745455 | 6 | 55 | 6.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145455 | 55 | 3 | 31 | 18.333333 | 0.787234 | 0 | 0 | 0 | 0 | 0 | 0.145455 | 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 |
5ee4deaf6fc27c76bfdcc18b3ca2e19ec374cf61 | 71 | py | Python | Configuration/Eras/python/Modifier_phase2_GE0_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | Configuration/Eras/python/Modifier_phase2_GE0_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | Configuration/Eras/python/Modifier_phase2_GE0_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
phase2_GE0 = cms.Modifier()
| 17.75 | 40 | 0.788732 | 10 | 71 | 5.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.126761 | 71 | 3 | 41 | 23.666667 | 0.854839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5eec068ebb6a5d21a2d7e2cfb9a156bf3e673334 | 1,272 | py | Python | src/environment/room_seed.py | xdaiyan/AdventureGameTemplate | 49de1de33bc63fdf763a18c74cfbf53242eaf24a | [
"MIT"
] | null | null | null | src/environment/room_seed.py | xdaiyan/AdventureGameTemplate | 49de1de33bc63fdf763a18c74cfbf53242eaf24a | [
"MIT"
] | null | null | null | src/environment/room_seed.py | xdaiyan/AdventureGameTemplate | 49de1de33bc63fdf763a18c74cfbf53242eaf24a | [
"MIT"
] | null | null | null | import random
class Environment:
def __init__(self, length=200, width=200):
self.length = length
self.width = width
self.npcs = 1
self.environment_boost = None
def get_length(self):
return self.length
def set_length(self, length:int):
self.length = length
... | 25.44 | 81 | 0.597484 | 160 | 1,272 | 4.575 | 0.2 | 0.10929 | 0.10929 | 0.060109 | 0.062842 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026906 | 0.298742 | 1,272 | 50 | 81 | 25.44 | 0.793722 | 0 | 0 | 0.307692 | 0 | 0.025641 | 0.061273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.282051 | false | 0 | 0.025641 | 0.128205 | 0.589744 | 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 |
5eede947dee1c8ebab7be8ff3b0870a1c9049611 | 141 | py | Python | image_example.py | nprabhav/tesseractpython | d7fa4ec95b4f576d1f5ea1b728fb88d55fe8f51c | [
"MIT"
] | null | null | null | image_example.py | nprabhav/tesseractpython | d7fa4ec95b4f576d1f5ea1b728fb88d55fe8f51c | [
"MIT"
] | null | null | null | image_example.py | nprabhav/tesseractpython | d7fa4ec95b4f576d1f5ea1b728fb88d55fe8f51c | [
"MIT"
] | null | null | null | from PIL import Image
import pytesseract
im = Image.open("download.png")
text = pytesseract.image_to_string(im, lang = 'eng')
print(text)
| 15.666667 | 52 | 0.744681 | 21 | 141 | 4.904762 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134752 | 141 | 8 | 53 | 17.625 | 0.844262 | 0 | 0 | 0 | 0 | 0 | 0.106383 | 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 |
6f03426ce3b5e8227c1533867cfd0c04f6532b9f | 322 | py | Python | rlpyt/agents/dqn/atari/atari_catdqn_agent.py | 2016choang/sfl | c99faa853f610455e8bb7709ac47f9d725499d91 | [
"MIT"
] | 2 | 2021-12-06T03:24:18.000Z | 2022-01-12T01:11:38.000Z | rlpyt/agents/dqn/atari/atari_catdqn_agent.py | 2016choang/sfl | c99faa853f610455e8bb7709ac47f9d725499d91 | [
"MIT"
] | 1 | 2021-12-06T13:28:44.000Z | 2022-01-06T07:34:24.000Z | rlpyt/agents/dqn/atari/atari_catdqn_agent.py | 2016choang/sfl | c99faa853f610455e8bb7709ac47f9d725499d91 | [
"MIT"
] | null | null | null | from rlpyt.agents.dqn.catdqn_agent import CatDqnAgent
from rlpyt.models.dqn.atari_catdqn_model import AtariCatDqnModel
from rlpyt.agents.dqn.mixin import Mixin
class AtariCatDqnAgent(Mixin, CatDqnAgent):
def __init__(self, ModelCls=AtariCatDqnModel, **kwargs):
super().__init__(ModelCls=ModelCls, **kwargs... | 32.2 | 64 | 0.795031 | 39 | 322 | 6.282051 | 0.538462 | 0.110204 | 0.122449 | 0.146939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111801 | 322 | 9 | 65 | 35.777778 | 0.856643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
6f1a6da40b9dfba40152b0a0d8455bf4199316b0 | 7,575 | py | Python | k8sclient/models/__init__.py | beli-sk/k8sclient | 3a6102405ee1a65933e328298964f282329fb1f0 | [
"Apache-2.0"
] | null | null | null | k8sclient/models/__init__.py | beli-sk/k8sclient | 3a6102405ee1a65933e328298964f282329fb1f0 | [
"Apache-2.0"
] | null | null | null | k8sclient/models/__init__.py | beli-sk/k8sclient | 3a6102405ee1a65933e328298964f282329fb1f0 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: extensions/v1beta1
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");... | 52.241379 | 104 | 0.891881 | 897 | 7,575 | 7.190635 | 0.351171 | 0.052093 | 0.058605 | 0.022326 | 0.048992 | 0.011783 | 0.011783 | 0 | 0 | 0 | 0 | 0.047193 | 0.085281 | 7,575 | 144 | 105 | 52.604167 | 0.883677 | 0.103102 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6f2b1acd5c4e177e8085d1445b123991077dd529 | 605 | py | Python | my_ad_project/ads/forms.py | MaksNech/django_my_ad | 55d0480cda3f0eb6fc78541763a916996ed265c1 | [
"MIT"
] | null | null | null | my_ad_project/ads/forms.py | MaksNech/django_my_ad | 55d0480cda3f0eb6fc78541763a916996ed265c1 | [
"MIT"
] | 8 | 2020-02-11T23:56:23.000Z | 2022-03-11T23:43:31.000Z | my_ad_project/ads/forms.py | MaksNech/django_my_ad | 55d0480cda3f0eb6fc78541763a916996ed265c1 | [
"MIT"
] | null | null | null | from django.forms import ModelForm
from .models import Ad, Image, UserFavouriteAd, ChatMessage
class AdCreateForm(ModelForm):
class Meta:
model = Ad
fields = ['title', 'category', 'description', 'price', 'negotiable_price']
class ImageCreateForm(ModelForm):
class Meta:
model = Image
... | 22.407407 | 82 | 0.642975 | 57 | 605 | 6.807018 | 0.473684 | 0.14433 | 0.185567 | 0.237113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242975 | 605 | 26 | 83 | 23.269231 | 0.847162 | 0 | 0 | 0.222222 | 0 | 0 | 0.112397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6f308b1778d32560c07c160a07f8c4a2664e1ad4 | 934 | py | Python | oldnumba/tests/test_ifexp.py | meawoppl/numba | bb8df0aee99133c6d52465ae9f9df2a7996339f3 | [
"BSD-2-Clause"
] | 1 | 2015-01-29T06:52:36.000Z | 2015-01-29T06:52:36.000Z | oldnumba/tests/test_ifexp.py | meawoppl/numba | bb8df0aee99133c6d52465ae9f9df2a7996339f3 | [
"BSD-2-Clause"
] | null | null | null | oldnumba/tests/test_ifexp.py | meawoppl/numba | bb8df0aee99133c6d52465ae9f9df2a7996339f3 | [
"BSD-2-Clause"
] | null | null | null | from itertools import product
from numba import autojit
def _make_test(f):
def test_ifexp():
f_ = autojit(f)
for args in product(range(3), range(3)):
assert f_(*args)==f(*args)
test_ifexp.__name__ = f.__name__
return test_ifexp
@_make_test
def test_as_return_value(a,b):
ret... | 20.304348 | 48 | 0.6606 | 172 | 934 | 3.255814 | 0.255814 | 0.042857 | 0.042857 | 0.085714 | 0.410714 | 0.301786 | 0.166071 | 0.166071 | 0.166071 | 0 | 0 | 0.026135 | 0.221627 | 934 | 45 | 49 | 20.755556 | 0.744154 | 0 | 0 | 0.257143 | 0 | 0 | 0.008565 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 1 | 0.257143 | false | 0 | 0.057143 | 0.114286 | 0.514286 | 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 |
6f47a3ef13b1dae417d6dd8f7b413a5d475a9549 | 3,383 | py | Python | pylua/test/test_timer.py | malirod/pylua | e6a1718428ab77f87c58890436a89bdd408ff95b | [
"MIT"
] | 1 | 2021-12-31T08:58:14.000Z | 2021-12-31T08:58:14.000Z | pylua/test/test_timer.py | malirod/pylua | e6a1718428ab77f87c58890436a89bdd408ff95b | [
"MIT"
] | 12 | 2016-09-08T06:24:05.000Z | 2016-11-30T06:49:09.000Z | pylua/test/test_timer.py | malirod/pylua | e6a1718428ab77f87c58890436a89bdd408ff95b | [
"MIT"
] | 7 | 2016-09-08T17:27:43.000Z | 2018-12-27T17:32:09.000Z | # -*- coding: utf-8 -*-
import timeit
from pylua.timer import Timer, msec_to_sec
from pylua.test.mixin import EventLoopMixin
class TestTimer(EventLoopMixin):
_interval_ms = 30
def setup(self):
EventLoopMixin.setup(self)
def teardown(self):
EventLoopMixin.teardown(self)
def test_st... | 31.616822 | 78 | 0.572569 | 387 | 3,383 | 4.782946 | 0.157623 | 0.142626 | 0.060508 | 0.051324 | 0.759589 | 0.733657 | 0.733657 | 0.733657 | 0.639114 | 0.567801 | 0 | 0.009874 | 0.341413 | 3,383 | 106 | 79 | 31.915094 | 0.820916 | 0.006208 | 0 | 0.651685 | 0 | 0 | 0.065179 | 0 | 0 | 0 | 0 | 0 | 0.089888 | 1 | 0.134831 | false | 0 | 0.033708 | 0 | 0.191011 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 |
6f4b94cf0e818ee6a7912519adcaa0dea145e3bd | 130 | py | Python | wagtailnews/__init__.py | Taywee/wagtailnews-collection | 526e6d36a16b490822032e6255e6ac914af498a0 | [
"BSD-2-Clause"
] | 1 | 2017-10-04T14:34:09.000Z | 2017-10-04T14:34:09.000Z | wagtailnews/__init__.py | Taywee/wagtailnews-collection | 526e6d36a16b490822032e6255e6ac914af498a0 | [
"BSD-2-Clause"
] | null | null | null | wagtailnews/__init__.py | Taywee/wagtailnews-collection | 526e6d36a16b490822032e6255e6ac914af498a0 | [
"BSD-2-Clause"
] | null | null | null | from .version import version as __version__
__all__ = ['__version__']
default_app_config = 'wagtailnews.apps.WagtailNewsConfig'
| 21.666667 | 57 | 0.807692 | 14 | 130 | 6.5 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107692 | 130 | 5 | 58 | 26 | 0.784483 | 0 | 0 | 0 | 0 | 0 | 0.346154 | 0.261538 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6f5710e245e89f92a4348aee0062092c749b17ba | 178 | py | Python | example_project/simple_blog/models.py | taxido/django-sortable-listview | 29bd3052eab89cbd53a25992949977b2f37e4b8c | [
"MIT"
] | 27 | 2015-01-13T16:36:21.000Z | 2022-03-11T09:46:59.000Z | example_project/simple_blog/models.py | taxido/django-sortable-listview | 29bd3052eab89cbd53a25992949977b2f37e4b8c | [
"MIT"
] | 19 | 2015-01-07T23:18:23.000Z | 2021-04-27T20:08:44.000Z | example_project/simple_blog/models.py | taxido/django-sortable-listview | 29bd3052eab89cbd53a25992949977b2f37e4b8c | [
"MIT"
] | 22 | 2015-01-12T10:13:53.000Z | 2022-03-11T10:26:23.000Z | from django.db import models
class Article(models.Model):
title = models.CharField(max_length=100)
content = models.TextField()
published_date = models.DateField()
| 22.25 | 44 | 0.735955 | 22 | 178 | 5.863636 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020134 | 0.162921 | 178 | 7 | 45 | 25.428571 | 0.845638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6f5e809bac041adc1ca6dfc81a241f79d37f7fd9 | 214 | py | Python | pyrep/robots/mobiles/quadricopter.py | wawachen/PyRep | e2cd9a1a7d1a6cee402f7a903ff99df5d93ea407 | [
"MIT"
] | null | null | null | pyrep/robots/mobiles/quadricopter.py | wawachen/PyRep | e2cd9a1a7d1a6cee402f7a903ff99df5d93ea407 | [
"MIT"
] | null | null | null | pyrep/robots/mobiles/quadricopter.py | wawachen/PyRep | e2cd9a1a7d1a6cee402f7a903ff99df5d93ea407 | [
"MIT"
] | null | null | null | from pyrep.robots.mobiles.drone_base import Drone_base
class Quadricopter(Drone_base):
def __init__(self, count: int = 0, num_propeller:int = 4):
super().__init__(count, num_propeller, 'Quadricopter') | 35.666667 | 62 | 0.742991 | 29 | 214 | 5.034483 | 0.655172 | 0.184932 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010929 | 0.14486 | 214 | 6 | 63 | 35.666667 | 0.786885 | 0 | 0 | 0 | 0 | 0 | 0.055814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6f6aaebd2eb6d5fe9809fa5716cc549d5992a2d6 | 409 | py | Python | bundles/finance/services/index_manager.py | briancappello/flask-techan-unchained | a26a900bb47e40e5db67e78822dc6af59d1abc31 | [
"Apache-2.0"
] | null | null | null | bundles/finance/services/index_manager.py | briancappello/flask-techan-unchained | a26a900bb47e40e5db67e78822dc6af59d1abc31 | [
"Apache-2.0"
] | 18 | 2019-12-10T22:11:27.000Z | 2021-12-13T20:42:58.000Z | bundles/finance/services/index_manager.py | briancappello/flask-techan-unchained | a26a900bb47e40e5db67e78822dc6af59d1abc31 | [
"Apache-2.0"
] | 1 | 2021-07-26T08:20:28.000Z | 2021-07-26T08:20:28.000Z | from flask_unchained.bundles.sqlalchemy import ModelManager
from ..models import Index
class IndexManager(ModelManager):
class Meta:
model = Index
def create(self, ticker, name, commit=False, **kwargs):
return super().create(ticker=ticker, name=name, commit=commit, **kwargs)
def find_by... | 27.266667 | 80 | 0.713936 | 51 | 409 | 5.647059 | 0.54902 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176039 | 409 | 14 | 81 | 29.214286 | 0.854599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.222222 | 0.888889 | 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 |
489692aae0ea0160a43c991dbb1419ea4e39012b | 217 | py | Python | 403-Leveraring-RDS-Proxy-For-Db-Conns/cdk-AWS-Cookbook-403/app.py | AWSCookbook/Databases | 97445fdfe54458a9d70974259c8beaf53c6e12ed | [
"MIT"
] | 6 | 2021-03-08T10:11:49.000Z | 2022-01-18T01:23:56.000Z | 403-Leveraring-RDS-Proxy-For-Db-Conns/cdk-AWS-Cookbook-403/app.py | AWSCookbook/Databases | 97445fdfe54458a9d70974259c8beaf53c6e12ed | [
"MIT"
] | null | null | null | 403-Leveraring-RDS-Proxy-For-Db-Conns/cdk-AWS-Cookbook-403/app.py | AWSCookbook/Databases | 97445fdfe54458a9d70974259c8beaf53c6e12ed | [
"MIT"
] | 3 | 2021-09-23T12:00:59.000Z | 2022-02-25T06:53:45.000Z | #!/usr/bin/env python3
from aws_cdk import core
from cdk_aws_cookbook_403.cdk_aws_cookbook_403_stack import CdkAwsCookbook403Stack
app = core.App()
CdkAwsCookbook403Stack(app, "cdk-aws-cookbook-403")
app.synth()
| 18.083333 | 82 | 0.806452 | 32 | 217 | 5.21875 | 0.46875 | 0.107784 | 0.251497 | 0.305389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 0.096774 | 217 | 11 | 83 | 19.727273 | 0.770408 | 0.096774 | 0 | 0 | 0 | 0 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
48a43a7178caf9752b7ee1aca4adbbe99b90a064 | 193 | py | Python | src/music/music_state.py | janbrrr/dndj-discord | 078ce5a0367134117f6184b2612648e9a25bcf9f | [
"MIT"
] | 2 | 2020-07-12T17:46:08.000Z | 2021-07-29T01:42:46.000Z | src/music/music_state.py | janbrrr/dndj-discord | 078ce5a0367134117f6184b2612648e9a25bcf9f | [
"MIT"
] | null | null | null | src/music/music_state.py | janbrrr/dndj-discord | 078ce5a0367134117f6184b2612648e9a25bcf9f | [
"MIT"
] | null | null | null | from collections import namedtuple
MusicState = namedtuple(
"MusicState",
["group_index", "group_name", "track_list_index", "track_list_name", "master_volume", "track_list_volume"],
)
| 27.571429 | 111 | 0.740933 | 22 | 193 | 6.090909 | 0.545455 | 0.201493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124352 | 193 | 6 | 112 | 32.166667 | 0.792899 | 0 | 0 | 0 | 0 | 0 | 0.476684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
48a6d6da736ffbb9393ab0479f94c2b1c7811135 | 107 | py | Python | pip_services3_kafka/queues/__init__.py | pip-services3-python/pip-services3-kafka-python | 8c6df619af56c033de68b518004c93e45a335517 | [
"MIT"
] | null | null | null | pip_services3_kafka/queues/__init__.py | pip-services3-python/pip-services3-kafka-python | 8c6df619af56c033de68b518004c93e45a335517 | [
"MIT"
] | null | null | null | pip_services3_kafka/queues/__init__.py | pip-services3-python/pip-services3-kafka-python | 8c6df619af56c033de68b518004c93e45a335517 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
__all__ = ['KafkaMessageQueue']
from .KafkaMessageQueue import KafkaMessageQueue
| 17.833333 | 48 | 0.728972 | 9 | 107 | 8.222222 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 0.130841 | 107 | 5 | 49 | 21.4 | 0.784946 | 0.196262 | 0 | 0 | 0 | 0 | 0.202381 | 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 |
48bfce622864056a61e7f64e954d0f7756a8af7f | 626 | py | Python | app/serializers.py | GDGVIT/hestia-requests | 666a8b818cccbf968ac8d43d9ced6dba8fd458d5 | [
"MIT"
] | null | null | null | app/serializers.py | GDGVIT/hestia-requests | 666a8b818cccbf968ac8d43d9ced6dba8fd458d5 | [
"MIT"
] | null | null | null | app/serializers.py | GDGVIT/hestia-requests | 666a8b818cccbf968ac8d43d9ced6dba8fd458d5 | [
"MIT"
] | null | null | null | from .models import ItemRequest, Accepts, Organizations, AreasCatered
from rest_framework import serializers
class ItemRequestSerializer(serializers.ModelSerializer):
class Meta:
model = ItemRequest
fields = "__all__"
class AcceptsSerializer(serializers.ModelSerializer):
class Meta:
mo... | 28.454545 | 69 | 0.722045 | 52 | 626 | 8.365385 | 0.384615 | 0.23908 | 0.285057 | 0.321839 | 0.367816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214058 | 626 | 22 | 70 | 28.454545 | 0.884146 | 0 | 0 | 0.444444 | 0 | 0 | 0.044657 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.555556 | 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 |
48e0665c47048cd101c5c54beace17be55c7b4db | 413 | py | Python | testrun.py | afterever/bustime | ff3c77cde22c39468eefd071d123756725595804 | [
"BSD-2-Clause"
] | null | null | null | testrun.py | afterever/bustime | ff3c77cde22c39468eefd071d123756725595804 | [
"BSD-2-Clause"
] | null | null | null | testrun.py | afterever/bustime | ff3c77cde22c39468eefd071d123756725595804 | [
"BSD-2-Clause"
] | null | null | null | from os import getenv
from bustime.monitor import StopMonitor
BUSTIME_API_KEY = getenv('BUSTIME_API_KEY')
print("M15")
monitor = StopMonitor(BUSTIME_API_KEY, '401768', 'm15', 3)
print(monitor)
print("\nM15-SBS South-Bound")
monitor = StopMonitor(BUSTIME_API_KEY, '401768', 'M15+', 3)
print(monitor)
print("\nM15-... | 19.666667 | 59 | 0.74092 | 58 | 413 | 5.103448 | 0.327586 | 0.168919 | 0.219595 | 0.324324 | 0.577703 | 0.577703 | 0.439189 | 0.439189 | 0.439189 | 0.439189 | 0 | 0.089674 | 0.108959 | 413 | 20 | 60 | 20.65 | 0.714674 | 0 | 0 | 0.25 | 0 | 0 | 0.215496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.5 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
48e1e5887845db30c41999a4fb84eb90c0dac89e | 262 | py | Python | tests/model_child.py | drunkcoding/model-inference | 02d2240bc7052fa32223a80fa63625fe681db102 | [
"MIT"
] | 1 | 2021-11-15T19:07:13.000Z | 2021-11-15T19:07:13.000Z | tests/model_child.py | drunkcoding/model-inference | 02d2240bc7052fa32223a80fa63625fe681db102 | [
"MIT"
] | null | null | null | tests/model_child.py | drunkcoding/model-inference | 02d2240bc7052fa32223a80fa63625fe681db102 | [
"MIT"
] | null | null | null | from transformers import AutoModel, AutoModelForMaskedLM, T5ForConditionalGeneration
model = model = T5ForConditionalGeneration.from_pretrained("t5-small")
print(model)
# for name, child in model.base_model.named_children():
# print(name, child.__class__) | 32.75 | 84 | 0.805344 | 28 | 262 | 7.285714 | 0.678571 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012766 | 0.103053 | 262 | 8 | 85 | 32.75 | 0.855319 | 0.328244 | 0 | 0 | 0 | 0 | 0.045977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
48e6f0cfd7a5561700d7d0569541da651d761f95 | 78 | py | Python | yelp.py | cyrushadavi/home_automation | dcf1dcc688b5021a0c16e68e372e38a28d819f3d | [
"MIT"
] | null | null | null | yelp.py | cyrushadavi/home_automation | dcf1dcc688b5021a0c16e68e372e38a28d819f3d | [
"MIT"
] | null | null | null | yelp.py | cyrushadavi/home_automation | dcf1dcc688b5021a0c16e68e372e38a28d819f3d | [
"MIT"
] | null | null | null | __author__ = 'Cyrus'
import config
config_dict = config.get_dict_of_params()
| 15.6 | 41 | 0.794872 | 11 | 78 | 4.909091 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 78 | 4 | 42 | 19.5 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0.064103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d28da9bc69ccbd2e1354ee9bb4e357397f2d60a0 | 751 | py | Python | exercises/en/solution_06_21.py | UBC-MDS/MCL-DSCI-511-programming-in-python | 22836d9013d3e3d1b1074678ba7dc3ee2e66f398 | [
"MIT"
] | 1 | 2020-06-26T20:15:44.000Z | 2020-06-26T20:15:44.000Z | exercises/en/solution_06_21.py | UBC-MDS/MCL-DSCI-011-programming-in-python | 22836d9013d3e3d1b1074678ba7dc3ee2e66f398 | [
"MIT"
] | 20 | 2020-06-15T23:05:20.000Z | 2020-09-01T22:07:45.000Z | exercises/en/solution_06_21.py | UBC-MDS/MCL-programming-in-python | 22836d9013d3e3d1b1074678ba7dc3ee2e66f398 | [
"MIT"
] | 1 | 2020-06-25T20:53:13.000Z | 2020-06-25T20:53:13.000Z | def bmi_calculator(height, weight):
return (weight/(height**2)) * 702
# Write 4 unit tests and check that at least 2 of them are testing edge cases
# There are many different tests that could have been written for this question.
# Here are a few examples.
assert bmi_calculator(1, 1) == 702.0, 'Input arguments g... | 53.642857 | 85 | 0.757656 | 115 | 751 | 4.886957 | 0.495652 | 0.161922 | 0.169039 | 0.186833 | 0.448399 | 0.448399 | 0.384342 | 0.309609 | 0.309609 | 0.309609 | 0 | 0.076563 | 0.147803 | 751 | 13 | 86 | 57.769231 | 0.801563 | 0.23968 | 0 | 0 | 0 | 0 | 0.399293 | 0 | 0 | 0 | 0 | 0 | 0.75 | 1 | 0.125 | false | 0 | 0 | 0.125 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
d28fb23bc76cf360dd0f4968620cadd25e38b0c8 | 3,174 | py | Python | UnityEngine/RaycastHit2D/__init__.py | Grim-es/udon-pie-auto-completion | c2cd86554ed615cdbbb01e19fa40665eafdfaedc | [
"MIT"
] | null | null | null | UnityEngine/RaycastHit2D/__init__.py | Grim-es/udon-pie-auto-completion | c2cd86554ed615cdbbb01e19fa40665eafdfaedc | [
"MIT"
] | null | null | null | UnityEngine/RaycastHit2D/__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 RaycastHit2D:
def __new__(cls, arg1=None):
'''
:returns: RaycastHit2D
:rtype: UnityEngine.RaycastHit2D
'''
pass
@staticmethod
def op_Implicit(arg1):
'''
... | 18.561404 | 44 | 0.499055 | 253 | 3,174 | 6.189723 | 0.181818 | 0.194125 | 0.230524 | 0.112388 | 0.593231 | 0.593231 | 0.593231 | 0.593231 | 0.477011 | 0.217114 | 0 | 0.029427 | 0.400441 | 3,174 | 170 | 45 | 18.670588 | 0.793484 | 0.345936 | 0 | 0.619048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.31746 | false | 0.31746 | 0.047619 | 0 | 0.380952 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d29976671e1a7abc439ca6b67f90aa9a76752b11 | 8,537 | py | Python | deepchem/utils/test/test_molecule_feature_utils.py | deloragaskins/deepchem | 234ab699cdb997e5963966a8b6926cb2cda7c064 | [
"MIT"
] | 3,782 | 2016-02-21T03:53:11.000Z | 2022-03-31T16:10:26.000Z | deepchem/utils/test/test_molecule_feature_utils.py | deloragaskins/deepchem | 234ab699cdb997e5963966a8b6926cb2cda7c064 | [
"MIT"
] | 2,666 | 2016-02-11T01:54:54.000Z | 2022-03-31T11:14:33.000Z | deepchem/utils/test/test_molecule_feature_utils.py | deloragaskins/deepchem | 234ab699cdb997e5963966a8b6926cb2cda7c064 | [
"MIT"
] | 1,597 | 2016-02-21T03:10:08.000Z | 2022-03-30T13:21:28.000Z | import unittest
from deepchem.utils.molecule_feature_utils import one_hot_encode
from deepchem.utils.molecule_feature_utils import get_atom_type_one_hot
from deepchem.utils.molecule_feature_utils import construct_hydrogen_bonding_info
from deepchem.utils.molecule_feature_utils import get_atom_hydrogen_bonding_one_hot
... | 40.652381 | 83 | 0.710671 | 1,487 | 8,537 | 3.764627 | 0.077337 | 0.078957 | 0.096999 | 0.109325 | 0.822258 | 0.764916 | 0.706324 | 0.675956 | 0.638978 | 0.566274 | 0 | 0.051029 | 0.157549 | 8,537 | 209 | 84 | 40.84689 | 0.727336 | 0.03315 | 0 | 0.373494 | 0 | 0 | 0.01104 | 0.002912 | 0 | 0 | 0 | 0 | 0.36747 | 1 | 0.120482 | false | 0 | 0.138554 | 0 | 0.26506 | 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 |
d2b0b3f4ccd12c4ae9fa50ab2778def761ca1775 | 19,190 | py | Python | ldfparser/parser.py | leisure0808/ldfparser | 6310985cbee2d3ea3b1153c2e5d6281309675760 | [
"MIT"
] | 23 | 2020-10-18T12:22:13.000Z | 2022-03-10T10:59:28.000Z | ldfparser/parser.py | leisure0808/ldfparser | 6310985cbee2d3ea3b1153c2e5d6281309675760 | [
"MIT"
] | 68 | 2020-09-28T11:23:29.000Z | 2022-03-31T19:22:59.000Z | ldfparser/parser.py | leisure0808/ldfparser | 6310985cbee2d3ea3b1153c2e5d6281309675760 | [
"MIT"
] | 10 | 2020-10-14T23:02:40.000Z | 2022-01-15T14:29:10.000Z | import os
import warnings
from typing import Any, Dict, List
from lark import Lark, Transformer
from .frame import LinEventTriggeredFrame, LinUnconditionalFrame
from .signal import LinSignal
from .encoding import ASCIIValue, BCDValue, LinSignalEncodingType, LogicalValue, PhysicalValue, ValueConverter
from .lin import ... | 38.846154 | 176 | 0.651485 | 2,476 | 19,190 | 4.834814 | 0.114297 | 0.049453 | 0.081865 | 0.022555 | 0.342077 | 0.255534 | 0.196809 | 0.144098 | 0.087378 | 0.064155 | 0 | 0.013268 | 0.218395 | 19,190 | 493 | 177 | 38.924949 | 0.784852 | 0.036321 | 0 | 0.075419 | 0 | 0.002793 | 0.163728 | 0.017358 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25419 | false | 0.002793 | 0.030726 | 0.198324 | 0.539106 | 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 |
d2b1a11b26f18c8357332a510dca904d4140c646 | 5,935 | py | Python | tests/unit_tests/homeassistant/test_helper_functions.py | ehendrix23/teslajsonpy | 7e5a86acc053df4e990bfece4db37d2cbb6ac5e0 | [
"Apache-2.0"
] | null | null | null | tests/unit_tests/homeassistant/test_helper_functions.py | ehendrix23/teslajsonpy | 7e5a86acc053df4e990bfece4db37d2cbb6ac5e0 | [
"Apache-2.0"
] | null | null | null | tests/unit_tests/homeassistant/test_helper_functions.py | ehendrix23/teslajsonpy | 7e5a86acc053df4e990bfece4db37d2cbb6ac5e0 | [
"Apache-2.0"
] | null | null | null | """Test helper functions."""
import time
from teslajsonpy.controller import Controller
from tests.tesla_mock import TeslaMock, VIN, CAR_ID
CAR_PARKED = 1577833200 # Timestamp a long time ago
NOW = time.time()
def test_climate_params(monkeypatch):
"""Test set/get climate params."""
_mock = TeslaMock(monk... | 32.431694 | 83 | 0.734288 | 794 | 5,935 | 5.035264 | 0.074307 | 0.18009 | 0.166333 | 0.074787 | 0.823912 | 0.745623 | 0.689095 | 0.625313 | 0.577289 | 0.453477 | 0 | 0.00197 | 0.144903 | 5,935 | 182 | 84 | 32.60989 | 0.785813 | 0.08155 | 0 | 0.307692 | 0 | 0 | 0.053178 | 0 | 0 | 0 | 0 | 0 | 0.442308 | 1 | 0.086538 | false | 0 | 0.028846 | 0 | 0.115385 | 0 | 0 | 0 | 0 | null | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d2c836054ba83e4f9570f87ca394e471e236059f | 1,297 | py | Python | CSAW/2016 Quals/coinslot.py | PurpEth/solved-hacking-problem | 6f289d1647eb9c091caa580c7aae673e3ba02952 | [
"Unlicense"
] | 1 | 2021-08-24T22:16:41.000Z | 2021-08-24T22:16:41.000Z | CSAW/2016 Quals/coinslot.py | PurpEth/solved-hacking-problem | 6f289d1647eb9c091caa580c7aae673e3ba02952 | [
"Unlicense"
] | null | null | null | CSAW/2016 Quals/coinslot.py | PurpEth/solved-hacking-problem | 6f289d1647eb9c091caa580c7aae673e3ba02952 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
from pwn import *
def pay(cost, divider):
counter = cost // divider
p.sendline(str(counter))
return cost - divider * counter
p = remote('misc.chal.csaw.io', 8000)
for i in range(400):
p.recvuntil("$")
dolor = int(p.recvuntil('.')[:-1])
penny = int(p.recvline())
p... | 24.018519 | 53 | 0.570547 | 181 | 1,297 | 4.088398 | 0.348066 | 0.22973 | 0.175676 | 0.243243 | 0.085135 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079798 | 0.2367 | 1,297 | 53 | 54 | 24.471698 | 0.667677 | 0.01542 | 0 | 0 | 0 | 0 | 0.178683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02381 | null | null | 0.02381 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d2ce6772ad55d73e7d5c5caaac8b4bf105566961 | 715 | py | Python | ckan/migration/versions/063_org_changes.py | okfde/ckankrzn | df4c1ed624f6751ac2a8f03527ff19e448d27dfb | [
"Apache-2.0"
] | 4 | 2017-06-12T15:18:30.000Z | 2019-10-11T15:12:43.000Z | ckan/migration/versions/063_org_changes.py | okfde/ckankrzn | df4c1ed624f6751ac2a8f03527ff19e448d27dfb | [
"Apache-2.0"
] | 64 | 2017-05-14T22:15:53.000Z | 2020-03-08T15:26:49.000Z | ckan/migration/versions/063_org_changes.py | okfde/ckankrzn | df4c1ed624f6751ac2a8f03527ff19e448d27dfb | [
"Apache-2.0"
] | 5 | 2017-04-06T21:18:38.000Z | 2020-03-30T17:05:23.000Z | # encoding: utf-8
from migrate import *
def upgrade(migrate_engine):
update_schema = '''
BEGIN;
ALTER TABLE "user"
ADD COLUMN sysadmin boolean DEFAULT FALSE;
ALTER TABLE package
ADD COLUMN owner_org TEXT,
ADD COLUMN private boolean DEFAULT FALSE;
ALTER TABLE package_revision
ADD COLUMN owner_o... | 21.029412 | 124 | 0.755245 | 99 | 715 | 5.323232 | 0.444444 | 0.119545 | 0.180266 | 0.182163 | 0.529412 | 0.529412 | 0.409867 | 0.250474 | 0.250474 | 0.250474 | 0 | 0.001718 | 0.186014 | 715 | 33 | 125 | 21.666667 | 0.90378 | 0.020979 | 0 | 0.3 | 0 | 0.05 | 0.82235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.1 | 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 |
d2e0d0401e3d2c5dfc1a1ce0f2fc8fc0e530dd6c | 3,705 | py | Python | tests/test_colorspace.py | alvii147/OpenChroma | b0d8719ca1b992ef1b1897fe193ea4d70d824a75 | [
"BSD-3-Clause"
] | null | null | null | tests/test_colorspace.py | alvii147/OpenChroma | b0d8719ca1b992ef1b1897fe193ea4d70d824a75 | [
"BSD-3-Clause"
] | null | null | null | tests/test_colorspace.py | alvii147/OpenChroma | b0d8719ca1b992ef1b1897fe193ea4d70d824a75 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import numpy.testing as npt
import pytest
from openchroma.colorspace import RGB_to_CMYK, CMYK_to_RGB
RGB_to_CMYK_parameters = [
[
np.array([117.0, 95.0, 143.0], dtype=np.float64),
np.array([18.0, 34.0, 0.0, 44.0], dtype=np.float64),
],
[
np.array([13.0, 31.0, 52.... | 26.276596 | 70 | 0.351687 | 485 | 3,705 | 2.604124 | 0.23299 | 0.047506 | 0.101346 | 0.190024 | 0.391132 | 0.361045 | 0.15677 | 0.099762 | 0 | 0 | 0 | 0.258817 | 0.479622 | 3,705 | 140 | 71 | 26.464286 | 0.396266 | 0 | 0 | 0.363636 | 0 | 0 | 0.009717 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 1 | 0.015152 | false | 0 | 0.030303 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d2ef9c13c5e87410ea1c2635d4b1285abf7c3780 | 463 | py | Python | ada_loss/chainer_impl/links/__init__.py | kumasento/gradient-scaling | 0ca435433b9953e33656173c4d60ebd61c5c5e87 | [
"MIT"
] | 7 | 2020-08-12T12:04:28.000Z | 2021-11-22T15:56:08.000Z | ada_loss/chainer_impl/links/__init__.py | kumasento/gradient-scaling | 0ca435433b9953e33656173c4d60ebd61c5c5e87 | [
"MIT"
] | 1 | 2021-10-07T08:37:39.000Z | 2021-10-08T02:41:39.000Z | ada_loss/chainer_impl/links/__init__.py | kumasento/gradient-scaling | 0ca435433b9953e33656173c4d60ebd61c5c5e87 | [
"MIT"
] | null | null | null | from .ada_loss_batch_normalization import AdaLossBatchNormalization
from .ada_loss_convolution_2d import AdaLossConvolution2D
from .ada_loss_conv2d_bn_activ import AdaLossConv2DBNActiv
from .ada_loss_bn_activ_conv2d import AdaLossBNActivConv2D
from .ada_loss_linear import AdaLossLinear
from .ada_loss_resnet import (
... | 38.583333 | 67 | 0.87905 | 50 | 463 | 7.74 | 0.48 | 0.108527 | 0.170543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016706 | 0.095032 | 463 | 11 | 68 | 42.090909 | 0.906921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.636364 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
d2f4ba9b49c28a3839f1b5fc9dc48ed29ef0dc0a | 144 | py | Python | pages/themes/beginners/logicalExpressionsAndConditionalStatements/labs/while_loop.py | ProgressBG-Python-Course/ProgressBG-Python | 6429833696c2c50d9f902f62cc3a65ca62659c69 | [
"MIT"
] | null | null | null | pages/themes/beginners/logicalExpressionsAndConditionalStatements/labs/while_loop.py | ProgressBG-Python-Course/ProgressBG-Python | 6429833696c2c50d9f902f62cc3a65ca62659c69 | [
"MIT"
] | null | null | null | pages/themes/beginners/logicalExpressionsAndConditionalStatements/labs/while_loop.py | ProgressBG-Python-Course/ProgressBG-Python | 6429833696c2c50d9f902f62cc3a65ca62659c69 | [
"MIT"
] | null | null | null |
while 1:
user_number = int(input("Entersitive number: "))
if user_number > 0:
break
print("Do somet7hing with number!")
| 16 | 52 | 0.611111 | 18 | 144 | 4.777778 | 0.777778 | 0.232558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028846 | 0.277778 | 144 | 8 | 53 | 18 | 0.798077 | 0 | 0 | 0 | 0 | 0 | 0.323944 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
d2fee61282b0fae2b274088f76f32bb51ccf186f | 345,316 | py | Python | virtual/lib/python3.6/site-packages/phonenumbers/carrierdata/data1.py | NicolletteOchola/NeighborhoodWatch | adf209ac94b891fad07bd8197cd57699ea3d30bb | [
"MIT"
] | 1 | 2019-12-01T16:53:18.000Z | 2019-12-01T16:53:18.000Z | python/phonenumbers/carrierdata/data1.py | TheEyeOfHorus/python-phonenumbers | e439d797e44e42ebb1cbb7c355f0445db0e8d031 | [
"Apache-2.0"
] | 4 | 2020-06-06T00:45:54.000Z | 2021-09-08T01:42:14.000Z | python/phonenumbers/carrierdata/data1.py | TheEyeOfHorus/python-phonenumbers | e439d797e44e42ebb1cbb7c355f0445db0e8d031 | [
"Apache-2.0"
] | null | null | null | """Per-prefix data, mapping each prefix to a dict of locale:name.
Auto-generated file, do not edit by hand.
"""
from ..util import u
# Copyright (C) 2011-2019 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Licens... | 34.45236 | 130 | 0.531203 | 40,223 | 345,316 | 4.554136 | 0.257688 | 0.075532 | 0.039158 | 0.060912 | 0.150157 | 0.149573 | 0.149049 | 0.142269 | 0.135101 | 0.1223 | 0 | 0.295954 | 0.104765 | 345,316 | 10,022 | 131 | 34.455797 | 0.296598 | 0.001958 | 0 | 0 | 1 | 0 | 0.547117 | 0.058812 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0001 | 0 | 0.0001 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9603f8405d84b7311c10aaa5b35e69bd842ec0be | 2,904 | py | Python | custom_components/hottoh/switch.py | benlbrm/ha-hottoh-component | 5292d5d6171ecf8f3882f8e06a4c7b5f4b1d76dd | [
"MIT"
] | 1 | 2021-11-19T12:05:08.000Z | 2021-11-19T12:05:08.000Z | custom_components/hottoh/switch.py | benlbrm/ha-hottoh-component | 5292d5d6171ecf8f3882f8e06a4c7b5f4b1d76dd | [
"MIT"
] | 4 | 2021-11-19T12:40:28.000Z | 2021-12-29T20:18:20.000Z | custom_components/hottoh/switch.py | benlbrm/ha-hottoh-component | 5292d5d6171ecf8f3882f8e06a4c7b5f4b1d76dd | [
"MIT"
] | null | null | null | """Support for Hottoh Climate Entity."""
from datetime import timedelta
import logging
from homeassistant.components.switch import SwitchEntity
from .const import DOMAIN, HOTTOH_SESSION
from . import HottohEntity
_LOGGER = logging.getLogger(__name__)
async def async_setup_entry(hass, config_entry, async_add_entiti... | 24 | 68 | 0.649793 | 356 | 2,904 | 4.980337 | 0.191011 | 0.075014 | 0.056402 | 0.086294 | 0.631134 | 0.620981 | 0.606317 | 0.574168 | 0.529047 | 0.435984 | 0 | 0 | 0.238636 | 2,904 | 120 | 69 | 24.2 | 0.8019 | 0.070592 | 0 | 0.538462 | 0 | 0 | 0.043212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269231 | false | 0 | 0.064103 | 0.141026 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9606ee2c6ffbefb530dd3b40550d13d83333db40 | 2,525 | py | Python | core/models/champion.py | MaybeS/Dodge | 3a3a5909b8134576d49c2f16c39765391814c3dc | [
"MIT"
] | null | null | null | core/models/champion.py | MaybeS/Dodge | 3a3a5909b8134576d49c2f16c39765391814c3dc | [
"MIT"
] | null | null | null | core/models/champion.py | MaybeS/Dodge | 3a3a5909b8134576d49c2f16c39765391814c3dc | [
"MIT"
] | null | null | null | from core.lib.cached_property import cached_property
from core.models import Serialize
from .summoner import Summoner
class Champion(Serialize):
def __init__(self, summoner: Summoner, context):
super().__init__('name', 'wins', 'losses', 'KDA', 'gold', 'cs', 'max_kill', 'max_death', 'ADD', 'ADT',
... | 30.421687 | 111 | 0.58297 | 292 | 2,525 | 4.886986 | 0.260274 | 0.166783 | 0.178697 | 0.140154 | 0.171689 | 0.071479 | 0.071479 | 0.071479 | 0.071479 | 0.071479 | 0 | 0.008264 | 0.281188 | 2,525 | 82 | 112 | 30.792683 | 0.777961 | 0 | 0 | 0.293333 | 0 | 0 | 0.081584 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.04 | 0.226667 | 0.613333 | 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 |
826f93efbe1483d40450fe61006aac0afeb82b74 | 1,895 | py | Python | generator/routes/templates/server.py | aeksco/codotype-python-falcon-mongodb-generator | 32680519e249bafe678ee1f6d394893a2e36086c | [
"MIT"
] | null | null | null | generator/routes/templates/server.py | aeksco/codotype-python-falcon-mongodb-generator | 32680519e249bafe678ee1f6d394893a2e36086c | [
"MIT"
] | null | null | null | generator/routes/templates/server.py | aeksco/codotype-python-falcon-mongodb-generator | 32680519e249bafe678ee1f6d394893a2e36086c | [
"MIT"
] | null | null | null | # server.py
from flask import Flask
from flask.views import MethodView
import json
<%_ app.schemas.forEach((schema) => { _%>
from resources.<%= schema.identifier_plural %> import *
<%_ }) _%>
# # # # #
# TODOs (leftover from Falcon server.py)
# - Add model definition w/ ORM (Mongo, Postgres)
# - Modularize the app i... | 48.589744 | 314 | 0.681794 | 229 | 1,895 | 5.358079 | 0.344978 | 0.208639 | 0.161369 | 0.04238 | 0.456398 | 0.392013 | 0.392013 | 0.392013 | 0.337408 | 0.246129 | 0 | 0 | 0.109763 | 1,895 | 38 | 315 | 49.868421 | 0.727327 | 0.181003 | 0 | 0.1 | 0 | 0 | 0.393346 | 0.172211 | 0 | 0 | 0 | 0.026316 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
82732d8ae530ef1b6792c5e19a25abfb26b0d4f4 | 261 | py | Python | sanskrit_data_implementations/db/__init__.py | sanskrit-coders/sanskrit_data_implementations | 0091aaf2a32a8b53de9dccf46db548101a5c41c5 | [
"MIT"
] | 1 | 2019-08-04T17:38:15.000Z | 2019-08-04T17:38:15.000Z | sanskrit_data_implementations/db/__init__.py | sanskrit-coders/sanskrit_data_implementations | 0091aaf2a32a8b53de9dccf46db548101a5c41c5 | [
"MIT"
] | null | null | null | sanskrit_data_implementations/db/__init__.py | sanskrit-coders/sanskrit_data_implementations | 0091aaf2a32a8b53de9dccf46db548101a5c41c5 | [
"MIT"
] | 2 | 2020-04-07T03:35:34.000Z | 2022-01-15T15:48:29.000Z | # Sphinx uses the all list to check every module is loaded, but in some cases it is not and a warning is generated:
# missing attribute mentioned in :members: or __all__: module
"""Allows users to do ``from xyz import *`` """
__all__ = ["couchdb", "mongodb"]
| 52.2 | 115 | 0.716475 | 41 | 261 | 4.365854 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183908 | 261 | 4 | 116 | 65.25 | 0.840376 | 0.835249 | 0 | 0 | 1 | 0 | 0.388889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
82798b83bac570d75fdecbd935bedf6ef3cebea1 | 391 | py | Python | djs/perturbation_engine/parameter_specific_helpers.py | sdmlua/NWM-Dockerized-Job-Scheduler | 4b5f8079c0af9d58d15ba476f54ab8d0a8d4ac40 | [
"MIT"
] | 3 | 2020-04-16T18:58:06.000Z | 2021-09-08T02:34:40.000Z | djs/perturbation_engine/parameter_specific_helpers.py | sdmlua/NWM-Dockerized-Job-Scheduler | 4b5f8079c0af9d58d15ba476f54ab8d0a8d4ac40 | [
"MIT"
] | 18 | 2019-07-18T03:58:34.000Z | 2020-04-14T22:34:32.000Z | djs/perturbation_engine/parameter_specific_helpers.py | sdmlua/NWM-Dockerized-Job-Scheduler | 4b5f8079c0af9d58d15ba476f54ab8d0a8d4ac40 | [
"MIT"
] | 3 | 2020-04-24T05:52:35.000Z | 2020-07-08T16:33:31.000Z | #!/usr/bin/env python3
def DAfromTopWdth(TopWdth):
return (TopWdth/2.44) ** 2.941176470588235
def CSA(DA):
return 0.75 * DA ** 0.53
def cross_section_area_BlckBrn(TopWdth):
'''
Calculate channel cross sectional area from channel Top Width using Blackburn et
al. 2017 equations
'''
cs_area ... | 24.4375 | 84 | 0.649616 | 59 | 391 | 4.220339 | 0.59322 | 0.064257 | 0.080321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143791 | 0.217391 | 391 | 16 | 85 | 24.4375 | 0.669935 | 0.309463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0.285714 | 0.857143 | 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 |
827d7df4a45e9bfab81bb755e81bd7916b3b55df | 232 | py | Python | pages/urls.py | raiaman15/random-winner | 79542c364ddf7ab71ab18d6772f4a2d6dfe8ea4b | [
"MIT"
] | null | null | null | pages/urls.py | raiaman15/random-winner | 79542c364ddf7ab71ab18d6772f4a2d6dfe8ea4b | [
"MIT"
] | null | null | null | pages/urls.py | raiaman15/random-winner | 79542c364ddf7ab71ab18d6772f4a2d6dfe8ea4b | [
"MIT"
] | null | null | null | from django.urls import path
from .views import CompanyPageView, ProductPageView
urlpatterns = [
path('', ProductPageView.as_view(), name='product_page'),
path('company/', CompanyPageView.as_view(), name='company_page'),
]
| 29 | 69 | 0.737069 | 26 | 232 | 6.423077 | 0.576923 | 0.071856 | 0.11976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12069 | 232 | 7 | 70 | 33.142857 | 0.818627 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8281f8363f00f74df7cc75b1c29fbce3f08f4be5 | 1,666 | py | Python | tgtypes/models/inline_query_result_audio.py | autogram/tgtypes | 90f8d0d35d3c372767508e56c20777635e128e38 | [
"MIT"
] | null | null | null | tgtypes/models/inline_query_result_audio.py | autogram/tgtypes | 90f8d0d35d3c372767508e56c20777635e128e38 | [
"MIT"
] | null | null | null | tgtypes/models/inline_query_result_audio.py | autogram/tgtypes | 90f8d0d35d3c372767508e56c20777635e128e38 | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import TYPE_CHECKING, Optional
from pydantic import Field
from ._base import UNSET
from .inline_query_result import InlineQueryResult
if TYPE_CHECKING: # pragma: no cover
from .inline_keyboard_markup import InlineKeyboardMarkup
from .input_message_content impo... | 36.217391 | 98 | 0.72389 | 217 | 1,666 | 5.460829 | 0.502304 | 0.016878 | 0.048101 | 0.028692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010424 | 0.193878 | 1,666 | 45 | 99 | 37.022222 | 0.871929 | 0.241897 | 0 | 0 | 0 | 0 | 0.006329 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.368421 | 0 | 0.947368 | 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 |
82901d82ee8703a3d3183c7e2a7814928f110805 | 12,190 | py | Python | leaveapp/views.py | avinash795k/leaveProject | 264818f052e0abfdd47a0b9e73b1a9fa28114da0 | [
"MIT"
] | null | null | null | leaveapp/views.py | avinash795k/leaveProject | 264818f052e0abfdd47a0b9e73b1a9fa28114da0 | [
"MIT"
] | null | null | null | leaveapp/views.py | avinash795k/leaveProject | 264818f052e0abfdd47a0b9e73b1a9fa28114da0 | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect
from .forms import FormLeave
from .models import *
from userpanel.models import *
from datetime import date
from workdays import networkdays
# Create your views here.
def leave_request(request):
if not request.user.is_authenticated():
return redirect('/')
... | 68.483146 | 293 | 0.650205 | 1,291 | 12,190 | 5.883811 | 0.115414 | 0.035545 | 0.049368 | 0.067536 | 0.818457 | 0.801474 | 0.779358 | 0.649816 | 0.649816 | 0.59426 | 0 | 0.001868 | 0.25324 | 12,190 | 177 | 294 | 68.870057 | 0.832583 | 0.001887 | 0 | 0.580247 | 0 | 0 | 0.127939 | 0.042098 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0.024691 | 0.037037 | 0 | 0.197531 | 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 |
82a453330a63b00ffa1d47145aac39083fbc83b2 | 1,132 | py | Python | moneysocket1/beacon/location/unknown.py | moneysocket/py-moneysocket | 0392b4b34d5d1ea8762d0a14c6d260b971f72597 | [
"MIT"
] | 1 | 2020-12-04T18:40:51.000Z | 2020-12-04T18:40:51.000Z | moneysocket1/beacon/location/unknown.py | moneysocket/py-moneysocket | 0392b4b34d5d1ea8762d0a14c6d260b971f72597 | [
"MIT"
] | 1 | 2021-01-18T18:44:46.000Z | 2021-01-18T19:09:29.000Z | moneysocket1/beacon/location/unknown.py | moneysocket/py-moneysocket | 0392b4b34d5d1ea8762d0a14c6d260b971f72597 | [
"MIT"
] | 3 | 2020-11-21T22:11:30.000Z | 2021-01-18T17:51:03.000Z | # Copyright (c) 2021 Moneysocket Developers
# Distributed under the MIT software license, see the accompanying
# file LICENSE or http://www.opensource.org/licenses/mit-license.php
from ...encoding.tlv import Tlv
class UnknownLocation():
def __init__(self, t, byte_string):
self.type = t
self.byte_s... | 32.342857 | 79 | 0.560954 | 121 | 1,132 | 5.033058 | 0.413223 | 0.131363 | 0.091954 | 0.052545 | 0.07225 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004464 | 0.208481 | 1,132 | 34 | 80 | 33.294118 | 0.675223 | 0.152827 | 0 | 0.1 | 0 | 0 | 0.074534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.05 | 0.2 | 0.65 | 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 |
82a8f3d512173fc52c50231525a0e6baac083197 | 177 | py | Python | scripts/calculate_f_gain.py | frc2052/2017-Steamworks | 225533f2190f14c0e3a1ad7d8d4ef45bf9ddfbaf | [
"MIT"
] | null | null | null | scripts/calculate_f_gain.py | frc2052/2017-Steamworks | 225533f2190f14c0e3a1ad7d8d4ef45bf9ddfbaf | [
"MIT"
] | null | null | null | scripts/calculate_f_gain.py | frc2052/2017-Steamworks | 225533f2190f14c0e3a1ad7d8d4ef45bf9ddfbaf | [
"MIT"
] | null | null | null | import sys
max_rpm = float(sys.argv[1])
native_units_per_rot = float(sys.argv[2])
f_gain = max_rpm * (1.0 / 60.0) * (1.0 / 10.0) * native_units_per_rot
print(1023.0 / f_gain) | 22.125 | 69 | 0.683616 | 37 | 177 | 3 | 0.513514 | 0.108108 | 0.216216 | 0.306306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112583 | 0.146893 | 177 | 8 | 70 | 22.125 | 0.622517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 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 |
82d4ac9e21250ebdb10a611987782da3723f992d | 25 | py | Python | tests/__init__.py | ahnevskiy/python_for_testers | a17775a8a2586e8068265a937bd64ead60b03e52 | [
"Apache-2.0"
] | null | null | null | tests/__init__.py | ahnevskiy/python_for_testers | a17775a8a2586e8068265a937bd64ead60b03e52 | [
"Apache-2.0"
] | null | null | null | tests/__init__.py | ahnevskiy/python_for_testers | a17775a8a2586e8068265a937bd64ead60b03e52 | [
"Apache-2.0"
] | null | null | null | __author__ = 'ahnevskiy'
| 12.5 | 24 | 0.76 | 2 | 25 | 7.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 25 | 1 | 25 | 25 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0.36 | 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 |
82dfa95d8744ec202ee711e9be48743df5f6fac4 | 526 | py | Python | cdapython/__init__.py | dionboles/cda-python | 2e00d29931801bb977d20028cb4795195d550aa4 | [
"Apache-2.0"
] | null | null | null | cdapython/__init__.py | dionboles/cda-python | 2e00d29931801bb977d20028cb4795195d550aa4 | [
"Apache-2.0"
] | null | null | null | cdapython/__init__.py | dionboles/cda-python | 2e00d29931801bb977d20028cb4795195d550aa4 | [
"Apache-2.0"
] | null | null | null | """
cdapython is a library used to interact with the machine generated CDA Python Client and offers some syntactic sugar to make it more pleasant to query the CDA.
"""
from cdapython.Q import Q
from cdapython.utility import unique_terms, columns, query
from cdapython._get_unnest_clause import _get_unnest_clause
from c... | 27.684211 | 159 | 0.798479 | 73 | 526 | 5.328767 | 0.616438 | 0.133676 | 0.077121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146388 | 526 | 18 | 160 | 29.222222 | 0.86637 | 0.302281 | 0 | 0 | 1 | 0 | 0.066852 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.5 | 0.1 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
82e1f301782765c7ff229e189e71c31df37ba216 | 203 | py | Python | oca_back/advertisement/urls.py | fyrdaral/online-classified-advertisement-backend | 798af955371bb9d4845622d2c0a54dab34cc1b19 | [
"MIT"
] | null | null | null | oca_back/advertisement/urls.py | fyrdaral/online-classified-advertisement-backend | 798af955371bb9d4845622d2c0a54dab34cc1b19 | [
"MIT"
] | null | null | null | oca_back/advertisement/urls.py | fyrdaral/online-classified-advertisement-backend | 798af955371bb9d4845622d2c0a54dab34cc1b19 | [
"MIT"
] | null | null | null | from django.urls import path
from .views import AdvertisementList, AdvertisementDetail
urlpatterns = [
path('', AdvertisementList.as_view()),
path('<int:pk>/', AdvertisementDetail.as_view()),
]
| 25.375 | 57 | 0.73399 | 21 | 203 | 7 | 0.619048 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128079 | 203 | 7 | 58 | 29 | 0.830508 | 0 | 0 | 0 | 0 | 0 | 0.044335 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.