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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
52ded2739c61152c95b60c3899db69f2c7b06d31 | 484 | py | Python | hipsternet/utils.py | lmxhappy/hipsternet | c505330d3677689c0aa836a3480f513a56ca18ef | [
"Unlicense"
] | null | null | null | hipsternet/utils.py | lmxhappy/hipsternet | c505330d3677689c0aa836a3480f513a56ca18ef | [
"Unlicense"
] | null | null | null | hipsternet/utils.py | lmxhappy/hipsternet | c505330d3677689c0aa836a3480f513a56ca18ef | [
"Unlicense"
] | null | null | null | import numpy as np
def exp_running_avg(running, new, gamma=.9):
return gamma * running + (1. - gamma) * new
def accuracy(y_true, y_pred):
return np.mean(y_pred == y_true)
def onehot(labels):
y = np.zeros([labels.size, np.max(labels) + 1])
y[range(labels.size), labels] = 1.
return... | 19.36 | 52 | 0.568182 | 82 | 484 | 3.280488 | 0.378049 | 0.037175 | 0.04461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022284 | 0.258264 | 484 | 24 | 53 | 20.166667 | 0.72702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0.071429 | 0.214286 | 0.785714 | 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 |
52e19525963f10d9160e5ee71e0b9bb09343adad | 8,766 | py | Python | argocd_client/models/v1alpha1_resource_status.py | thepabloaguilar/argocd-client | a6c4ff268a63ee6715f9f837b9225b798aa6bde2 | [
"BSD-3-Clause"
] | 1 | 2021-09-29T11:57:07.000Z | 2021-09-29T11:57:07.000Z | argocd_client/models/v1alpha1_resource_status.py | thepabloaguilar/argocd-client | a6c4ff268a63ee6715f9f837b9225b798aa6bde2 | [
"BSD-3-Clause"
] | 1 | 2020-09-09T00:28:57.000Z | 2020-09-09T00:28:57.000Z | argocd_client/models/v1alpha1_resource_status.py | thepabloaguilar/argocd-client | a6c4ff268a63ee6715f9f837b9225b798aa6bde2 | [
"BSD-3-Clause"
] | 2 | 2020-10-13T18:31:59.000Z | 2021-02-15T12:52:33.000Z | # coding: utf-8
"""
Consolidate Services
Description of all APIs # noqa: E501
The version of the OpenAPI document: version not set
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from argocd_client.configuration import Configuration
class V1alp... | 26.644377 | 192 | 0.584987 | 932 | 8,766 | 5.402361 | 0.127682 | 0.0429 | 0.200199 | 0.171599 | 0.45144 | 0.374578 | 0.363654 | 0.20854 | 0.101291 | 0.015094 | 0 | 0.030834 | 0.322952 | 8,766 | 328 | 193 | 26.72561 | 0.817523 | 0.356491 | 0 | 0.089655 | 1 | 0 | 0.0523 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.165517 | false | 0 | 0.027586 | 0 | 0.324138 | 0.013793 | 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 |
52f323da705c537946272cc9405e76ac45887abf | 387 | py | Python | account/urls/admin.py | shaohuihuang/OnlineJudge | 47f612da40c39b4e93a3b0c73da7058a55b2de5e | [
"MIT"
] | 1 | 2020-03-18T04:16:26.000Z | 2020-03-18T04:16:26.000Z | account/urls/admin.py | shaohuihuang/OnlineJudge | 47f612da40c39b4e93a3b0c73da7058a55b2de5e | [
"MIT"
] | 1 | 2019-05-30T08:09:21.000Z | 2019-05-30T08:09:21.000Z | account/urls/admin.py | shaohuihuang/OnlineJudge | 47f612da40c39b4e93a3b0c73da7058a55b2de5e | [
"MIT"
] | null | null | null | from django.conf.urls import url
from ..views.admin import UserAdminAPI, GenerateUserAPI, ChangeUserpasswordAPI
urlpatterns = [
url(r"^user/?$", UserAdminAPI.as_view(), name="user_admin_api"),
url(r"^generate_user/?$", GenerateUserAPI.as_view(), name="generate_user_api"),
url(r"^change_userpassword/?$", C... | 38.7 | 101 | 0.74677 | 46 | 387 | 6.043478 | 0.456522 | 0.043165 | 0.107914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095607 | 387 | 9 | 102 | 43 | 0.794286 | 0 | 0 | 0 | 1 | 0 | 0.263566 | 0.118863 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.285714 | 0.285714 | 0 | 0.285714 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
5e2e46f9c708401f10b5814c01fac499e33c4c22 | 939 | py | Python | cloudhost/db.py | durgeshrawat/cloudhost | f8952d6d7e9eb979dcca5ce4752099ce780a296f | [
"MIT"
] | 2 | 2021-10-14T16:40:22.000Z | 2021-12-17T03:22:38.000Z | cloudhost/db.py | durgeshrawat/cloudhost | f8952d6d7e9eb979dcca5ce4752099ce780a296f | [
"MIT"
] | null | null | null | cloudhost/db.py | durgeshrawat/cloudhost | f8952d6d7e9eb979dcca5ce4752099ce780a296f | [
"MIT"
] | 1 | 2021-10-13T04:56:23.000Z | 2021-10-13T04:56:23.000Z | #logging = storing unlimited data
import Core
import time
class Authenticate:
def __init__(self,serverurl,username,password):
self.query=Core.Console(serverurl,username,password)
def createfile(self,filename,data): #filename,content of file
self.query.CreateFile(filename,data)
return T... | 28.454545 | 65 | 0.649627 | 108 | 939 | 5.611111 | 0.453704 | 0.089109 | 0.082508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001441 | 0.260916 | 939 | 32 | 66 | 29.34375 | 0.871758 | 0.157614 | 0 | 0.090909 | 0 | 0 | 0.006361 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.090909 | 0.090909 | 0.045455 | 0.590909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5e2f6665595b2fe1ad9828c4568ae6f91a9d38b7 | 1,022 | py | Python | src/condor_credd/condor_credmon_oauth/credmon/CredentialMonitors/AbstractCredentialMonitor.py | sridish123/htcondor | 481d975fd8602242f6a052aab04e20b0b560db89 | [
"Apache-2.0"
] | 217 | 2015-01-08T04:49:42.000Z | 2022-03-27T10:11:58.000Z | src/condor_credd/condor_credmon_oauth/credmon/CredentialMonitors/AbstractCredentialMonitor.py | sridish123/htcondor | 481d975fd8602242f6a052aab04e20b0b560db89 | [
"Apache-2.0"
] | 185 | 2015-05-03T13:26:31.000Z | 2022-03-28T03:08:59.000Z | src/condor_credd/condor_credmon_oauth/credmon/CredentialMonitors/AbstractCredentialMonitor.py | sridish123/htcondor | 481d975fd8602242f6a052aab04e20b0b560db89 | [
"Apache-2.0"
] | 133 | 2015-02-11T09:17:45.000Z | 2022-03-31T07:28:54.000Z | import six
import sys
import os
from abc import ABCMeta, abstractmethod
from credmon.utils import get_cred_dir
import logging
import warnings
@six.add_metaclass(ABCMeta)
class AbstractCredentialMonitor:
"""
Abstract Credential Monitor class
:param cred_dir: The credential directory to scan.
:type cred... | 24.333333 | 97 | 0.702544 | 120 | 1,022 | 5.733333 | 0.475 | 0.071221 | 0.162791 | 0.18314 | 0.228198 | 0.162791 | 0.162791 | 0 | 0 | 0 | 0 | 0.001261 | 0.22407 | 1,022 | 41 | 98 | 24.926829 | 0.86633 | 0.15362 | 0 | 0.296296 | 0 | 0 | 0.001196 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.259259 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
eaace53730d6fc986db83d5e00cb7e8cc9cc5ff9 | 298 | py | Python | code2/day01/demo01.py | picktsh/python | 0f758dcdf9eee3580d8f6e2241ef557b6320ef54 | [
"MIT"
] | 1 | 2019-12-31T16:44:06.000Z | 2019-12-31T16:44:06.000Z | code2/day01/demo01.py | picktsh/python | 0f758dcdf9eee3580d8f6e2241ef557b6320ef54 | [
"MIT"
] | null | null | null | code2/day01/demo01.py | picktsh/python | 0f758dcdf9eee3580d8f6e2241ef557b6320ef54 | [
"MIT"
] | 1 | 2022-01-13T10:32:22.000Z | 2022-01-13T10:32:22.000Z | """
课堂练习
获取这个书苑不太冷的网页源代码,并且打印。
URL:https://localprod.pandateacher.com/python-manuscript/crawler-html/spider-men5.0.html
忘记怎么写了?点击下面的"需要帮助"。
"""
import requests
url = 'https://localprod.pandateacher.com/python-manuscript/crawler-html/spider-men5.0.html'
res = requests.get(url)
print(res.text)
| 18.625 | 92 | 0.768456 | 41 | 298 | 5.585366 | 0.585366 | 0.069869 | 0.148472 | 0.253275 | 0.646288 | 0.646288 | 0.646288 | 0.646288 | 0.646288 | 0.646288 | 0 | 0.014388 | 0.067114 | 298 | 15 | 93 | 19.866667 | 0.809353 | 0.459732 | 0 | 0 | 0 | 0.25 | 0.54902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
eac8d1b7eaaca169ff8d42ff0855d3f278b0b476 | 183 | py | Python | manim_express/color.py | beidongjiedeguang/manim-express | e9c89b74da3692db3ea9b568727e78d5cbcef503 | [
"MIT"
] | 12 | 2021-06-14T07:28:29.000Z | 2022-02-25T02:49:49.000Z | manim_express/color.py | beidongjiedeguang/manim-kunyuan | e9c89b74da3692db3ea9b568727e78d5cbcef503 | [
"MIT"
] | 1 | 2022-02-01T12:30:14.000Z | 2022-02-01T12:30:14.000Z | manim_express/color.py | beidongjiedeguang/manim-express | e9c89b74da3692db3ea9b568727e78d5cbcef503 | [
"MIT"
] | 2 | 2021-05-13T13:24:15.000Z | 2021-05-18T02:56:22.000Z | from manimlib.constants import *
from itertools import chain, cycle
color_list = [GREEN_C, BLUE_C, RED_C, YELLOW_C, ORANGE, GOLD_C, MAROON_C, TEAL_C]
color_cycle = cycle(color_list)
| 30.5 | 81 | 0.786885 | 31 | 183 | 4.322581 | 0.580645 | 0.149254 | 0.208955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125683 | 183 | 5 | 82 | 36.6 | 0.8375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d8121fa92b71ae19c5d6eb85794e3f858282bd11 | 4,656 | py | Python | src/abaqus/EngineeringFeature/SpringDashpotToGround.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | 7 | 2022-01-21T09:15:45.000Z | 2022-02-15T09:31:58.000Z | src/abaqus/EngineeringFeature/SpringDashpotToGround.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | src/abaqus/EngineeringFeature/SpringDashpotToGround.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | from abaqusConstants import *
from .SpringDashpot import SpringDashpot
from ..Region.Region import Region
class SpringDashpotToGround(SpringDashpot):
"""The SpringDashpotToGround object defines springs and/or dashpots between points and
ground on a part or an assembly region.
The SpringDashpotToGround ob... | 40.137931 | 111 | 0.644115 | 517 | 4,656 | 5.7853 | 0.224371 | 0.04012 | 0.060181 | 0.068205 | 0.691408 | 0.661986 | 0.63457 | 0.61451 | 0.61451 | 0.61451 | 0 | 0.003687 | 0.300902 | 4,656 | 115 | 112 | 40.486957 | 0.915207 | 0.723582 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.153846 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
d82a867062ed2b7ec2f2b2e7eeba1a00b44774fd | 348 | py | Python | aliyun/api/rest/Push20150707BatchRegisteRequest.py | snowyxx/aliyun-python-demo | ed40887ddff440b85b77f9b2a1fcda11cca55c8b | [
"Apache-2.0"
] | null | null | null | aliyun/api/rest/Push20150707BatchRegisteRequest.py | snowyxx/aliyun-python-demo | ed40887ddff440b85b77f9b2a1fcda11cca55c8b | [
"Apache-2.0"
] | null | null | null | aliyun/api/rest/Push20150707BatchRegisteRequest.py | snowyxx/aliyun-python-demo | ed40887ddff440b85b77f9b2a1fcda11cca55c8b | [
"Apache-2.0"
] | null | null | null | '''
Created by auto_sdk on 2015.07.08
'''
from aliyun.api.base import RestApi
class Push20150707BatchRegisteRequest(RestApi):
def __init__(self,domain='push.aliyuncs.com',port=80):
RestApi.__init__(self,domain, port)
self.Appid = None
self.Limit = None
def getapiname(self):
return 'push.aliyuncs.c... | 26.769231 | 56 | 0.732759 | 47 | 348 | 5.234043 | 0.680851 | 0.065041 | 0.113821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087248 | 0.143678 | 348 | 12 | 57 | 29 | 0.738255 | 0.094828 | 0 | 0 | 0 | 0 | 0.19322 | 0.135593 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 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 |
d83a2135105889455b4acc5c682a3c69f706495a | 175 | py | Python | HLTrigger/Configuration/python/HLT_75e33/modules/simGmtCaloSumDigis_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-30T16:24:46.000Z | 2021-11-30T16:24:46.000Z | HLTrigger/Configuration/python/HLT_75e33/modules/simGmtCaloSumDigis_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 4 | 2021-11-29T13:57:56.000Z | 2022-03-29T06:28:36.000Z | HLTrigger/Configuration/python/HLT_75e33/modules/simGmtCaloSumDigis_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-30T16:16:05.000Z | 2021-11-30T16:16:05.000Z | import FWCore.ParameterSet.Config as cms
simGmtCaloSumDigis = cms.EDProducer("L1TMuonCaloSumProducer",
caloStage2Layer2Label = cms.InputTag("simCaloStage2Layer1Digis")
)
| 29.166667 | 68 | 0.822857 | 14 | 175 | 10.285714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031447 | 0.091429 | 175 | 5 | 69 | 35 | 0.874214 | 0 | 0 | 0 | 0 | 0 | 0.262857 | 0.262857 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dc2585c4f2830df8c2f8db90a6624495587d83f1 | 357 | py | Python | clean_artists.py | PranavAggarwal0/newsic | 04e3684a6ce0fa5469d23f74898d80846585b0b4 | [
"Apache-2.0"
] | null | null | null | clean_artists.py | PranavAggarwal0/newsic | 04e3684a6ce0fa5469d23f74898d80846585b0b4 | [
"Apache-2.0"
] | null | null | null | clean_artists.py | PranavAggarwal0/newsic | 04e3684a6ce0fa5469d23f74898d80846585b0b4 | [
"Apache-2.0"
] | null | null | null | with open('artistsfollowed.txt') as af:
with open('/app/tosearch.txt', 'w') as ts:
for line in af:
if 'name' in line:
line = line.strip()
line = line.replace('name: ', '')
line = line.replace('\'', '')
line = line.replace(',', '')
... | 35.7 | 49 | 0.431373 | 39 | 357 | 3.948718 | 0.487179 | 0.25974 | 0.292208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.392157 | 357 | 9 | 50 | 39.666667 | 0.709677 | 0 | 0 | 0 | 0 | 0 | 0.148459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
dc2fabe73795c48ec6008709c9696555415b3a97 | 93 | py | Python | new_site/med_ai_site/home/urls.py | com-med-ai/med_ai_site | 91794f43a9bc6925bd95d2daa55244e1de89892a | [
"Apache-2.0"
] | 2 | 2021-09-22T13:16:59.000Z | 2021-09-22T13:19:55.000Z | new_site/med_ai_site/home/urls.py | com-med-ai/med_ai_site | 91794f43a9bc6925bd95d2daa55244e1de89892a | [
"Apache-2.0"
] | null | null | null | new_site/med_ai_site/home/urls.py | com-med-ai/med_ai_site | 91794f43a9bc6925bd95d2daa55244e1de89892a | [
"Apache-2.0"
] | 1 | 2021-09-22T13:20:00.000Z | 2021-09-22T13:20:00.000Z | from django.urls import path
from .views import falan
urlpatterns = [
path('', falan)
] | 13.285714 | 28 | 0.688172 | 12 | 93 | 5.333333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204301 | 93 | 7 | 29 | 13.285714 | 0.864865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
dc34c47813a06d5632dbee66eacf0c9a6288a4f5 | 736 | py | Python | files/Chap 2/exemple_9_listes.py | HenraL/NSI_1ereG6_Programme_Python | 9f46b848fa2331daca57e5e2e11cba41da45a67f | [
"Unlicense"
] | 1 | 2021-06-15T13:44:47.000Z | 2021-06-15T13:44:47.000Z | files/Chap 2/exemple_9_listes.py | HenraL/NSI_1ereG6_Programme_Python | 9f46b848fa2331daca57e5e2e11cba41da45a67f | [
"Unlicense"
] | null | null | null | files/Chap 2/exemple_9_listes.py | HenraL/NSI_1ereG6_Programme_Python | 9f46b848fa2331daca57e5e2e11cba41da45a67f | [
"Unlicense"
] | null | null | null | from time import sleep
i=3
n=2
T=3
L=L1=[]
L2=[-1,1]
L=[3,4,5]
L2[0]=0
L3=n*[0]
L4=5*[0] #= L4=[0,0,0,0,0]
L5=list(range(1,10)) #= L5=[1,2,3,4,5,6,7,8,9]
L6=[n for n in range(1,10)]
L7=[2*n for n in range(1,10)] #--> L7=[2,4,6,8,10,12,14,16,18]
L8=[n**2 for n in range(1,10)] #--> L8=[1,4,9,16,25,36,49,64,81]
L9=[-n for... | 32 | 133 | 0.482337 | 204 | 736 | 1.740196 | 0.29902 | 0.101408 | 0.135211 | 0.15493 | 0.270423 | 0.242254 | 0.202817 | 0.202817 | 0.202817 | 0 | 0 | 0.248476 | 0.108696 | 736 | 23 | 134 | 32 | 0.292683 | 0.30163 | 0 | 0 | 0 | 0 | 0.067194 | 0.055336 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.047619 | 0.047619 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dc40cfe6880d2c07b68e8b9f9904af79ec3e9f26 | 402 | py | Python | api/core/models.py | wiktorcie/django-rest-dokku | 573fac89decee8a760232cc15ade2c98ded7a16a | [
"MIT"
] | null | null | null | api/core/models.py | wiktorcie/django-rest-dokku | 573fac89decee8a760232cc15ade2c98ded7a16a | [
"MIT"
] | null | null | null | api/core/models.py | wiktorcie/django-rest-dokku | 573fac89decee8a760232cc15ade2c98ded7a16a | [
"MIT"
] | null | null | null | from datetime import date
from decimal import Decimal
from django.conf import settings
from django.contrib.auth.models import User
from django.db import models
from django.db.models import (CASCADE, CharField, DateTimeField, ForeignKey,
ManyToManyField, Model, OneToOneField, TextField)
fr... | 36.545455 | 79 | 0.776119 | 51 | 402 | 6.098039 | 0.509804 | 0.192926 | 0.115756 | 0.115756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174129 | 402 | 10 | 80 | 40.2 | 0.936747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.888889 | 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 |
dc4b574ed85d0a1b57198fa7b95be217d96544f0 | 316 | py | Python | algorithms/implementation/flipping_the_matrix/prithaj.py | prithajnath/HackerRank | 4e28acd140d4ebc26db6fcf1dcaefb975a9cc3ae | [
"MIT"
] | 4 | 2017-09-11T13:21:17.000Z | 2018-02-02T03:18:26.000Z | algorithms/implementation/flipping_the_matrix/prithaj.py | prithajnath/HackerRank | 4e28acd140d4ebc26db6fcf1dcaefb975a9cc3ae | [
"MIT"
] | 10 | 2017-01-05T06:03:51.000Z | 2018-10-06T03:35:20.000Z | algorithms/implementation/flipping_the_matrix/prithaj.py | PlattsSEC/HackerRank | f8951c8cd1cd7f5b520d2c66e17e43b3729b8a80 | [
"MIT"
] | 8 | 2016-05-05T00:46:31.000Z | 2018-03-30T01:52:50.000Z | # Enter your code here. Read input from STDIN. Print output to STDOUT
q = input()
for i in range(q):
n = input()
m = []
for j in range(2*n):
m.append(map(int,raw_input().split()))
print sum([max(m[x][y],m[x][2*n-1-y],m[2*n-1-x][y],m[2*n-1-x][2*n-1-y]) for x in range(n) for y in range(n)]) | 39.5 | 113 | 0.563291 | 72 | 316 | 2.458333 | 0.430556 | 0.056497 | 0.067797 | 0.045198 | 0.112994 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0.036145 | 0.212025 | 316 | 8 | 113 | 39.5 | 0.674699 | 0.212025 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | null | null | 0 | 0 | null | null | 0.142857 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dc4c3be2afdd0a3b30fb4c4d78d447a0f9e57a57 | 488 | py | Python | hub_app/accountlib/email.py | passiopeia/passiopeia-hub | 4eed28297a0b134d6b942fa15a9423448dcc2b7e | [
"MIT"
] | null | null | null | hub_app/accountlib/email.py | passiopeia/passiopeia-hub | 4eed28297a0b134d6b942fa15a9423448dcc2b7e | [
"MIT"
] | 29 | 2020-02-09T18:28:01.000Z | 2021-06-25T15:32:48.000Z | hub_app/accountlib/email.py | passiopeia/passiopeia-hub | 4eed28297a0b134d6b942fa15a9423448dcc2b7e | [
"MIT"
] | null | null | null | """
Helper for setting up E-Mail
"""
from datetime import timedelta
from random import SystemRandom
from string import ascii_letters, digits
from django.utils.timezone import now
def get_email_key() -> str:
"""
Get a E-Mail Key
"""
random = SystemRandom()
return ''.join(random.choices(ascii_lette... | 20.333333 | 73 | 0.670082 | 67 | 488 | 4.776119 | 0.626866 | 0.046875 | 0.1125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010363 | 0.209016 | 488 | 23 | 74 | 21.217391 | 0.818653 | 0.194672 | 0 | 0 | 0 | 0 | 0.008451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.444444 | 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 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
dc5f7e6192efc942675edabb90ebee02c6a88625 | 56 | py | Python | client/config.py | sungeunbae/ngrok_url | 7fb987f55d9f11bc4bb83ac2b87f7d8181c767fd | [
"MIT"
] | 1 | 2021-04-22T23:27:05.000Z | 2021-04-22T23:27:05.000Z | client/config.py | sungeunbae/ngrok_url | 7fb987f55d9f11bc4bb83ac2b87f7d8181c767fd | [
"MIT"
] | null | null | null | client/config.py | sungeunbae/ngrok_url | 7fb987f55d9f11bc4bb83ac2b87f7d8181c767fd | [
"MIT"
] | null | null | null | google_credential_file="../vejgarden-4efd839296c1.json"
| 28 | 55 | 0.839286 | 6 | 56 | 7.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145455 | 0.017857 | 56 | 1 | 56 | 56 | 0.672727 | 0 | 0 | 0 | 0 | 0 | 0.535714 | 0.535714 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dc5fb74d5450f7785f04771bdf69ddacfb538d7c | 11,375 | py | Python | tests/test_python_pae.py | MatthiasValvekens/python-pae | 2e604896912ee5420438fbb5188653dce0633f3c | [
"MIT"
] | null | null | null | tests/test_python_pae.py | MatthiasValvekens/python-pae | 2e604896912ee5420438fbb5188653dce0633f3c | [
"MIT"
] | null | null | null | tests/test_python_pae.py | MatthiasValvekens/python-pae | 2e604896912ee5420438fbb5188653dce0633f3c | [
"MIT"
] | null | null | null | """
PAE encoding/decoding tests.
.. (c) 2021 Matthias Valvekens
"""
import struct
from io import BytesIO
from typing import IO
import pytest
from python_pae import (
pae_encode, unmarshal, marshal, pae_encode_multiple,
PAEDecodeError
)
from python_pae.abstract import PAEType
from python_pae.number import PA... | 32.132768 | 78 | 0.657319 | 1,552 | 11,375 | 4.628866 | 0.106314 | 0.068486 | 0.051364 | 0.026726 | 0.78466 | 0.749026 | 0.730651 | 0.677895 | 0.64059 | 0.616648 | 0 | 0.117792 | 0.17978 | 11,375 | 353 | 79 | 32.223796 | 0.652197 | 0.010462 | 0 | 0.583618 | 0 | 0.023891 | 0.214279 | 0.148306 | 0 | 0 | 0 | 0 | 0.054608 | 1 | 0.078498 | false | 0 | 0.030717 | 0.003413 | 0.119454 | 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 |
dc6af33c42aa0166fc95ecfcffee245bbd796ee0 | 540 | py | Python | __printColorListSet.py | simdevex/01.Basics | cf4f372384e66f4b26e4887d2f5d815a1f8e929c | [
"MIT"
] | null | null | null | __printColorListSet.py | simdevex/01.Basics | cf4f372384e66f4b26e4887d2f5d815a1f8e929c | [
"MIT"
] | null | null | null | __printColorListSet.py | simdevex/01.Basics | cf4f372384e66f4b26e4887d2f5d815a1f8e929c | [
"MIT"
] | null | null | null | '''a Python program to print out a set containing all the colors from color_list_1
which are not present in color_list_2'''
def main():
color_list_1 = set(["White", "Black", "Red"])
color_list_2 = set(["Red", "Green"])
print("Original set elements:")
print(color_list_1)
print(color_list_2)
pr... | 33.75 | 83 | 0.714815 | 88 | 540 | 4.068182 | 0.375 | 0.351955 | 0.195531 | 0.125698 | 0.318436 | 0.318436 | 0.318436 | 0.206704 | 0 | 0 | 0 | 0.031042 | 0.164815 | 540 | 16 | 84 | 33.75 | 0.762749 | 0.218519 | 0 | 0 | 0 | 0 | 0.323741 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.090909 | 0.636364 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
dcb656728acabf9111ac514686002dd4c253939f | 126 | py | Python | magicmirror/tools/whooshe/__init__.py | memirror/magicMirror | 05ee16b44aef22c30da2bc3323c5ba593b3e53fa | [
"MIT"
] | 5 | 2021-09-03T03:06:51.000Z | 2022-03-22T07:48:22.000Z | magicmirror/tools/whooshe/__init__.py | xiaodongxiexie/magicMirror | 05ee16b44aef22c30da2bc3323c5ba593b3e53fa | [
"MIT"
] | null | null | null | magicmirror/tools/whooshe/__init__.py | xiaodongxiexie/magicMirror | 05ee16b44aef22c30da2bc3323c5ba593b3e53fa | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Author: xiaodong
# @Date : 2021/5/31
from .question import QuestionWhoosh
wq = QuestionWhoosh()
| 15.75 | 36 | 0.65873 | 15 | 126 | 5.533333 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.174603 | 126 | 7 | 37 | 18 | 0.721154 | 0.460317 | 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 |
dcb86ff5ecad809b46a22d07b4b3f7a8acd94f8c | 287 | py | Python | src/BusinessLogicLayer/plugins/faker_any.py | QIN2DIM/CampusDailyAutoSign | 1123bf9c54d2bbfc7d22de58987c558ddea2b1c3 | [
"MIT"
] | 24 | 2020-11-11T08:29:22.000Z | 2021-09-29T12:56:13.000Z | src/BusinessLogicLayer/plugins/faker_any.py | RobAI-Lab/CampusDailyAutoSign | 9c554f3342e4b3437a2c98d809b0856e8ed5d66a | [
"MIT"
] | 3 | 2021-02-24T10:57:16.000Z | 2021-02-24T11:18:19.000Z | src/BusinessLogicLayer/plugins/faker_any.py | RobAI-Lab/CampusDailyAutoSign | 9c554f3342e4b3437a2c98d809b0856e8ed5d66a | [
"MIT"
] | 5 | 2020-11-11T15:42:25.000Z | 2021-04-07T07:10:11.000Z | __all__ = ['get_useragent']
from fake_useragent import UserAgent
from fake_useragent import errors
def get_useragent() -> str:
try:
return UserAgent().random
except errors.FakeUserAgentError:
exec('import os\nos.system("pip install -upgrade fake-useragent")')
| 23.916667 | 75 | 0.721254 | 34 | 287 | 5.852941 | 0.617647 | 0.19598 | 0.170854 | 0.261307 | 0.321608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181185 | 287 | 11 | 76 | 26.090909 | 0.846809 | 0 | 0 | 0 | 0 | 0 | 0.250871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 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 |
f49bcab9cc24d236c9fa5b5f4954a51347f525dd | 23,586 | py | Python | utils/service_creator/service_creator.py | zero-os/zero-os-0-boot-templates | 4250b5edbc0dcc297a624885505b316c30a9b7a8 | [
"Apache-2.0"
] | null | null | null | utils/service_creator/service_creator.py | zero-os/zero-os-0-boot-templates | 4250b5edbc0dcc297a624885505b316c30a9b7a8 | [
"Apache-2.0"
] | 7 | 2018-06-19T10:02:19.000Z | 2018-07-25T09:07:55.000Z | utils/service_creator/service_creator.py | zero-os/zero-os-0-boot-templates | 4250b5edbc0dcc297a624885505b316c30a9b7a8 | [
"Apache-2.0"
] | 3 | 2018-06-12T05:15:23.000Z | 2018-08-18T20:26:19.000Z | import sys
import csv
from argparse import ArgumentParser
from js9 import j
def main(argv):
parser = ArgumentParser()
parser.add_argument("-d", "--data", dest="data_file", help="CSV file to read the host data from", required=True)
parser.add_argument("-r", "--robot", dest="robot_name", help="0-robot insta... | 38.729064 | 262 | 0.523149 | 2,731 | 23,586 | 4.356646 | 0.081655 | 0.100857 | 0.054211 | 0.02118 | 0.785174 | 0.759539 | 0.704656 | 0.672718 | 0.664565 | 0.639939 | 0 | 0.008187 | 0.368185 | 23,586 | 608 | 263 | 38.792763 | 0.79023 | 0.133469 | 0 | 0.654412 | 0 | 0.034314 | 0.202938 | 0.043725 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02451 | false | 0.029412 | 0.012255 | 0 | 0.044118 | 0.068627 | 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 |
f4a1b689a24c0d0a93a6e0cf531694a4643b45c9 | 563 | py | Python | ch06/plot_overfitting_with_weight_decay.py | sankaku/deep-learning-from-scratch-py | 70ec531578f099136744d2c1ec11959b239c3854 | [
"MIT"
] | null | null | null | ch06/plot_overfitting_with_weight_decay.py | sankaku/deep-learning-from-scratch-py | 70ec531578f099136744d2c1ec11959b239c3854 | [
"MIT"
] | null | null | null | ch06/plot_overfitting_with_weight_decay.py | sankaku/deep-learning-from-scratch-py | 70ec531578f099136744d2c1ec11959b239c3854 | [
"MIT"
] | null | null | null | # Visualize overfitting with weight decay
# mod ch06.plot_overfitting.py
import sys
import os
sys.path.append(os.pardir)
import numpy as np
from dataset.mnist import load_mnist
from ch06.multi_layer_net import MultiLayerNet
from ch06.SGD import SGD
from ch06.plot_overfitting import train
from ch06.plot_overfitting im... | 26.809524 | 55 | 0.802842 | 83 | 563 | 5.180723 | 0.506024 | 0.074419 | 0.132558 | 0.106977 | 0.134884 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045267 | 0.136767 | 563 | 20 | 56 | 28.15 | 0.839506 | 0.120782 | 0 | 0 | 0 | 0 | 0.01626 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.642857 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f4ad77fdb3706975d9516c5dda6eecf4f090d6bd | 4,369 | py | Python | tests/object_store/utils/test_chunk_transfer_throttle.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | tests/object_store/utils/test_chunk_transfer_throttle.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | tests/object_store/utils/test_chunk_transfer_throttle.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | from yellowdog_client.object_store.utils import ChunkTransferThrottle
from cancel_token.cancel_token import CancellationToken
class TestChunkTransferThrottle(object):
def test_constructor(self, mocker):
mock_time = mocker.patch("yellowdog_client.object_store.utils.chunk_transfer_throttle.time")
mo... | 40.082569 | 135 | 0.741588 | 540 | 4,369 | 5.527778 | 0.157407 | 0.048241 | 0.036851 | 0.069682 | 0.822781 | 0.748744 | 0.737688 | 0.677722 | 0.650251 | 0.542044 | 0 | 0.03184 | 0.187686 | 4,369 | 108 | 136 | 40.453704 | 0.809242 | 0.009384 | 0 | 0.506667 | 0 | 0 | 0.103632 | 0.103632 | 0 | 0 | 0 | 0 | 0.306667 | 1 | 0.093333 | false | 0 | 0.026667 | 0 | 0.146667 | 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 |
f4d3d974d966a403143eb13cad5fd07f8eb8e80e | 1,913 | py | Python | goless/selecting.py | ctismer/goless | 02168a40902691264b32c7da6f453819ed7a91cf | [
"Apache-2.0"
] | 1 | 2015-05-28T03:12:47.000Z | 2015-05-28T03:12:47.000Z | goless/selecting.py | ctismer/goless | 02168a40902691264b32c7da6f453819ed7a91cf | [
"Apache-2.0"
] | null | null | null | goless/selecting.py | ctismer/goless | 02168a40902691264b32c7da6f453819ed7a91cf | [
"Apache-2.0"
] | null | null | null | from .backends import current as _be
# noinspection PyPep8Naming,PyShadowingNames
class rcase(object):
"""
A case that will ``chan.recv()`` when the channel is able to receive.
"""
def __init__(self, chan):
self.chan = chan
def ready(self):
return self.chan.recv_ready()
def e... | 26.569444 | 81 | 0.616309 | 256 | 1,913 | 4.539063 | 0.332031 | 0.055077 | 0.030981 | 0.046472 | 0.197935 | 0.175559 | 0.053356 | 0.053356 | 0.053356 | 0.053356 | 0 | 0.002163 | 0.274961 | 1,913 | 71 | 82 | 26.943662 | 0.835616 | 0.444851 | 0 | 0.382353 | 0 | 0 | 0.03272 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 1 | 0.235294 | false | 0 | 0.029412 | 0.117647 | 0.558824 | 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 |
f4de0a5ae02c08d85cc8918f3275d32a5f1090ef | 145 | py | Python | django_evolution/db/postgresql_psycopg2.py | kamrankalantarli/django-evolution | 3e67426b189aecca5e470607838d1191f4892859 | [
"BSD-3-Clause"
] | 18 | 2015-02-08T14:48:02.000Z | 2021-08-03T21:07:37.000Z | django_evolution/db/postgresql_psycopg2.py | kamrankalantarli/django-evolution | 3e67426b189aecca5e470607838d1191f4892859 | [
"BSD-3-Clause"
] | 4 | 2015-01-07T01:15:08.000Z | 2020-08-06T06:52:13.000Z | django_evolution/db/postgresql_psycopg2.py | kamrankalantarli/django-evolution | 3e67426b189aecca5e470607838d1191f4892859 | [
"BSD-3-Clause"
] | 13 | 2015-01-07T01:06:21.000Z | 2022-02-20T16:27:41.000Z | # Psycopg2 behaviour is identical to Psycopg1
from django_evolution.db.postgresql import EvolutionOperations
__all__ = ['EvolutionOperations']
| 24.166667 | 62 | 0.834483 | 15 | 145 | 7.733333 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015504 | 0.110345 | 145 | 5 | 63 | 29 | 0.883721 | 0.296552 | 0 | 0 | 0 | 0 | 0.19 | 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 |
f4e25421a136d0f49225bf4f0ffc79ec0d8aff41 | 264 | py | Python | GTFS2OMNS/test.py | luyuliu/playground | 0e0382be27abf6714bda8ea1bc34249286ef53c1 | [
"MIT"
] | null | null | null | GTFS2OMNS/test.py | luyuliu/playground | 0e0382be27abf6714bda8ea1bc34249286ef53c1 | [
"MIT"
] | null | null | null | GTFS2OMNS/test.py | luyuliu/playground | 0e0382be27abf6714bda8ea1bc34249286ef53c1 | [
"MIT"
] | null | null | null | # Note:
# 1. Need dependency autoinstall
# 2. GDAL
import os
os.environ['PATH']
import gtfs2gmns as gg
gtfs_path = "H:\\ChromeDownload\\gtfscota"
gmns_path = "H:\\ChromeDownload\\gtfscota\\output"
node_transit,link_transit = gg.Convert_GTFS(gtfs_path,gmns_path) | 22 | 64 | 0.761364 | 38 | 264 | 5.105263 | 0.631579 | 0.082474 | 0.195876 | 0.278351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012712 | 0.106061 | 264 | 12 | 64 | 22 | 0.809322 | 0.166667 | 0 | 0 | 0 | 0 | 0.313364 | 0.294931 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 |
f4f25c0f50d3d73973995e366ef56671ed4222cc | 404 | py | Python | neighbourhood/neighbours/api/serializers.py | gracewa/GoodNeighbour | 7b2427aa0b2c9c29823edc7936eeb149d2030853 | [
"MIT"
] | null | null | null | neighbourhood/neighbours/api/serializers.py | gracewa/GoodNeighbour | 7b2427aa0b2c9c29823edc7936eeb149d2030853 | [
"MIT"
] | null | null | null | neighbourhood/neighbours/api/serializers.py | gracewa/GoodNeighbour | 7b2427aa0b2c9c29823edc7936eeb149d2030853 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from ..models import Neighbourhood, Business, EmergencyService, User
class NeighbourhoodSerializer(serializers.ModelSerializer):
class Meta:
model = Neighbourhood
fields = ('id', 'name', 'location', 'admin')
class UserSerializer(serializers.ModelSerializer)... | 25.25 | 68 | 0.69802 | 37 | 404 | 7.594595 | 0.621622 | 0.185053 | 0.220641 | 0.24911 | 0.284698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19802 | 404 | 15 | 69 | 26.933333 | 0.867284 | 0 | 0 | 0.2 | 0 | 0 | 0.084367 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 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 |
f4f2905d4ac94fa1edb03831fdc2fc88fbaaf0fc | 74 | py | Python | python/testData/intentions/convertVariadicParam_after.py | teddywest32/intellij-community | e0268d7a1da1d318b441001448cdd3e8929b2f29 | [
"Apache-2.0"
] | null | null | null | python/testData/intentions/convertVariadicParam_after.py | teddywest32/intellij-community | e0268d7a1da1d318b441001448cdd3e8929b2f29 | [
"Apache-2.0"
] | 11 | 2017-02-27T22:35:32.000Z | 2021-12-24T08:07:40.000Z | python/testData/intentions/convertVariadicParam_after.py | teddywest32/intellij-community | e0268d7a1da1d318b441001448cdd3e8929b2f29 | [
"Apache-2.0"
] | 1 | 2020-11-27T10:36:50.000Z | 2020-11-27T10:36:50.000Z | def foo(tmp, w, q = 2, foo=22, **kwargs):
a = tmp
doSomething(foo) | 24.666667 | 41 | 0.554054 | 13 | 74 | 3.153846 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054545 | 0.256757 | 74 | 3 | 42 | 24.666667 | 0.690909 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
762ade3d958113bcb51d1116e7400051222caa9d | 1,127 | py | Python | castanea_keras/generators/datareader.py | YusukeSuzuki/castanea_keras | dfb2694131580b5e215c3c4fbfed4250c5db0a71 | [
"MIT"
] | null | null | null | castanea_keras/generators/datareader.py | YusukeSuzuki/castanea_keras | dfb2694131580b5e215c3c4fbfed4250c5db0a71 | [
"MIT"
] | null | null | null | castanea_keras/generators/datareader.py | YusukeSuzuki/castanea_keras | dfb2694131580b5e215c3c4fbfed4250c5db0a71 | [
"MIT"
] | null | null | null | import tensorflow as tf
import multiprocessing as mp
class DataReader():
def __init__(self, batch_size, op, args=[], kwargs={}, queue_max=5000, queue_min=1000):
self.graph = tf.Graph()
config = tf.ConfigProto(device_count={'GPU': 0})
self.sess = tf.Session(config=config, graph=self.graph)
... | 28.175 | 91 | 0.625555 | 143 | 1,127 | 4.643357 | 0.426573 | 0.090361 | 0.036145 | 0.051205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013033 | 0.251109 | 1,127 | 39 | 92 | 28.897436 | 0.773697 | 0 | 0 | 0.142857 | 0 | 0 | 0.007993 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.071429 | 0.071429 | 0.107143 | 0.464286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
5201e7a3758c0359cb545db474d454accf475597 | 89 | py | Python | lewis_emulators/rkndio/interfaces/__init__.py | ISISComputingGroup/EPICS-DeviceEmulator | 026c2a14a16bb204ea7527e3765daa182cafa814 | [
"BSD-3-Clause"
] | 2 | 2020-10-20T16:49:13.000Z | 2021-02-19T10:41:44.000Z | lewis_emulators/rkndio/interfaces/__init__.py | ISISComputingGroup/EPICS-DeviceEmulator | 026c2a14a16bb204ea7527e3765daa182cafa814 | [
"BSD-3-Clause"
] | 9 | 2019-03-22T15:35:15.000Z | 2021-07-28T11:05:43.000Z | lewis_emulators/rkndio/interfaces/__init__.py | ISISComputingGroup/EPICS-DeviceEmulator | 026c2a14a16bb204ea7527e3765daa182cafa814 | [
"BSD-3-Clause"
] | 1 | 2020-10-21T17:02:44.000Z | 2020-10-21T17:02:44.000Z | from .stream_interface import RkndioStreamInterface
__all__ = ['RkndioStreamInterface']
| 22.25 | 51 | 0.842697 | 7 | 89 | 10 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089888 | 89 | 3 | 52 | 29.666667 | 0.864198 | 0 | 0 | 0 | 0 | 0 | 0.235955 | 0.235955 | 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 |
5203df72338bedbe225ed8e64c8a15ce062db534 | 1,170 | py | Python | core/models.py | spapas/hyperapp-tutorial | 24a548fbe96b5ecdd51e95e89b7302d85215d88e | [
"Unlicense"
] | 17 | 2018-06-01T10:33:34.000Z | 2021-08-14T13:09:54.000Z | core/models.py | spapas/hyperapp-tutorial | 24a548fbe96b5ecdd51e95e89b7302d85215d88e | [
"Unlicense"
] | 1 | 2019-08-10T15:39:21.000Z | 2019-08-10T15:39:21.000Z | core/models.py | spapas/hyperapp-tutorial | 24a548fbe96b5ecdd51e95e89b7302d85215d88e | [
"Unlicense"
] | 4 | 2017-09-07T21:43:01.000Z | 2019-03-06T14:29:15.000Z | from django.db import models
class Genre(models.Model):
name = models.CharField(max_length=32, unique=True)
def __str__(self):
return self.name
class Job(models.Model):
name = models.CharField(max_length=32, unique=True)
def __str__(self):
return self.name
class Person(models.Mod... | 26.590909 | 68 | 0.697436 | 152 | 1,170 | 5.171053 | 0.309211 | 0.133588 | 0.160305 | 0.21374 | 0.483461 | 0.458015 | 0.458015 | 0.438931 | 0.396947 | 0.396947 | 0 | 0.017598 | 0.174359 | 1,170 | 43 | 69 | 27.209302 | 0.796066 | 0 | 0 | 0.392857 | 0 | 0 | 0.04188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.035714 | 0.142857 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5205acd8a8b45f0288f377de72a0df4c82e445e6 | 342 | py | Python | m_socket/custom_types.py | maxrskiy/m_socket-py | a6f011118cbc335bd4346b290298dabc702a8503 | [
"MIT"
] | 6 | 2021-08-29T15:29:43.000Z | 2022-01-16T19:06:23.000Z | m_socket/custom_types.py | maxrskiy/m_socket-py | a6f011118cbc335bd4346b290298dabc702a8503 | [
"MIT"
] | null | null | null | m_socket/custom_types.py | maxrskiy/m_socket-py | a6f011118cbc335bd4346b290298dabc702a8503 | [
"MIT"
] | null | null | null | import socket
class m_session_socket:
client_socket: socket
socket_id: str
ip: str
def __init__(self, client_socket: socket, socket_id: str, ip: str):
self.client_socket = client_socket
self.socket_id = socket_id
self.ip = ip
def send(self, data: bytes):
self.cli... | 20.117647 | 71 | 0.657895 | 48 | 342 | 4.375 | 0.3125 | 0.285714 | 0.228571 | 0.228571 | 0.32381 | 0.32381 | 0.32381 | 0.32381 | 0 | 0 | 0 | 0 | 0.260234 | 342 | 16 | 72 | 21.375 | 0.83004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.636364 | 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 |
520ab96a57dff09a40af6d8dad6dec49da4e087e | 5,565 | py | Python | tests/test_basic.py | luislhl/python-hathorlib | b8382e2ab9c6036458f22cf4ad9338f52ec99e70 | [
"Apache-2.0"
] | null | null | null | tests/test_basic.py | luislhl/python-hathorlib | b8382e2ab9c6036458f22cf4ad9338f52ec99e70 | [
"Apache-2.0"
] | null | null | null | tests/test_basic.py | luislhl/python-hathorlib | b8382e2ab9c6036458f22cf4ad9338f52ec99e70 | [
"Apache-2.0"
] | null | null | null | """
Copyright (c) Hathor Labs and its affiliates.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
"""
import unittest
from hathorlib import Block, TokenCreationTransaction, Transaction
from hathorlib.scripts import create_output_script
from hath... | 51.527778 | 113 | 0.688949 | 366 | 5,565 | 10.357924 | 0.360656 | 0.031654 | 0.022422 | 0.015036 | 0.338961 | 0.295173 | 0.278291 | 0.278291 | 0.278291 | 0.278291 | 0 | 0.354862 | 0.240431 | 5,565 | 107 | 114 | 52.009346 | 0.541755 | 0.05319 | 0 | 0.289157 | 0 | 0.012048 | 0.484693 | 0.428028 | 0 | 0 | 0 | 0 | 0.216867 | 1 | 0.048193 | false | 0 | 0.048193 | 0 | 0.108434 | 0.024096 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
521c4aca3ca454501747cfb56d6ff6e190156f36 | 910 | py | Python | actions.py | priyanka2109/chatbot-new-rasa | 5d4731e9e63cb1e7177232e780f59ee2baebe1b4 | [
"MIT"
] | null | null | null | actions.py | priyanka2109/chatbot-new-rasa | 5d4731e9e63cb1e7177232e780f59ee2baebe1b4 | [
"MIT"
] | null | null | null | actions.py | priyanka2109/chatbot-new-rasa | 5d4731e9e63cb1e7177232e780f59ee2baebe1b4 | [
"MIT"
] | null | null | null | # This files contains your custom actions which can be used to run
# custom Python code.
#
# See this guide on how to implement these action:
# https://rasa.com/docs/rasa/core/actions/#custom-actions/
# This is a simple example for a custom action which utters "Hello World!"
from typing import Any, Text, Dict, List
... | 31.37931 | 121 | 0.701099 | 120 | 910 | 5.241667 | 0.558333 | 0.038156 | 0.052464 | 0.085851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198901 | 910 | 28 | 122 | 32.5 | 0.862826 | 0.287912 | 0 | 0 | 0 | 0 | 0.110938 | 0.035938 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.307692 | 0.076923 | 0.846154 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
52258c95a7c2f42aa82995b8606de034d618a79e | 2,014 | py | Python | Contents/Libraries/Shared/babelfish/script.py | jippo015/Sub-Zero.bundle | 734e0f7128c05c0f639e11e7dfc77daa1014064b | [
"MIT"
] | 1,553 | 2015-11-09T02:17:06.000Z | 2022-03-31T20:24:52.000Z | Contents/Libraries/Shared/babelfish/script.py | saiterlz/Sub-Zero.bundle | 1a0bb9c3e4be84be35d46672907783363fe5a87b | [
"MIT"
] | 691 | 2015-11-05T21:32:26.000Z | 2022-03-17T10:52:45.000Z | Contents/Libraries/Shared/babelfish/script.py | saiterlz/Sub-Zero.bundle | 1a0bb9c3e4be84be35d46672907783363fe5a87b | [
"MIT"
] | 162 | 2015-11-06T19:38:55.000Z | 2022-03-16T02:42:41.000Z | # -*- coding: utf-8 -*-
#
# Copyright (c) 2013 the BabelFish authors. All rights reserved.
# Use of this source code is governed by the 3-clause BSD license
# that can be found in the LICENSE file.
#
from collections import namedtuple
from pkg_resources import resource_stream # @UnresolvedImport
from . import basestr
... | 26.5 | 100 | 0.645482 | 271 | 2,014 | 4.645756 | 0.413284 | 0.050834 | 0.04448 | 0.031771 | 0.042891 | 0.042891 | 0 | 0 | 0 | 0 | 0 | 0.028871 | 0.243297 | 2,014 | 75 | 101 | 26.853333 | 0.797244 | 0.297418 | 0 | 0.047619 | 0 | 0 | 0.09058 | 0.022464 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.119048 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5226e456a3497eb9c0ee9fadd399d83bf003cb0c | 19,279 | py | Python | src/oci/data_safe/models/update_masking_policy_details.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/data_safe/models/update_masking_policy_details.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/data_safe/models/update_masking_policy_details.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 42.093886 | 245 | 0.699933 | 2,315 | 19,279 | 5.638445 | 0.126134 | 0.02804 | 0.147093 | 0.066192 | 0.801655 | 0.711024 | 0.634567 | 0.559488 | 0.52057 | 0.478817 | 0 | 0.001505 | 0.241973 | 19,279 | 457 | 246 | 42.185996 | 0.891679 | 0.64438 | 0 | 0.096 | 0 | 0 | 0.131907 | 0.042979 | 0 | 0 | 0 | 0 | 0 | 1 | 0.224 | false | 0 | 0.016 | 0.016 | 0.376 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
522bf47a4e8c9c4103287f1ce3603d7071a47c47 | 3,935 | py | Python | src/menten_gcn/decorators/standard.py | MentenAI/menten_gcn | bcc7642cb32ab4e60a97687de17c1aa2dc4b5421 | [
"MIT"
] | 11 | 2020-12-15T15:36:47.000Z | 2022-03-10T19:23:36.000Z | src/menten_gcn/decorators/standard.py | MentenAI/menten_gcn | bcc7642cb32ab4e60a97687de17c1aa2dc4b5421 | [
"MIT"
] | 2 | 2021-01-14T15:04:59.000Z | 2021-01-14T19:24:00.000Z | src/menten_gcn/decorators/standard.py | MentenAI/menten_gcn | bcc7642cb32ab4e60a97687de17c1aa2dc4b5421 | [
"MIT"
] | null | null | null | import math
from menten_gcn.decorators.base import Decorator
# from menten_gcn.decorators.geometry import *
# from menten_gcn.decorators.sequence import *
class BareBonesDecorator(Decorator):
"""
This decorator is included in all DataMakers by default.
Its goal is to be the starting point upon which eve... | 28.514493 | 103 | 0.620584 | 513 | 3,935 | 4.619883 | 0.226121 | 0.070886 | 0.060759 | 0.040506 | 0.537975 | 0.480169 | 0.386498 | 0.357806 | 0.357806 | 0.357806 | 0 | 0.024955 | 0.297332 | 3,935 | 137 | 104 | 28.722628 | 0.832188 | 0.212961 | 0 | 0.447368 | 0 | 0 | 0.207888 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 1 | 0.263158 | false | 0 | 0.026316 | 0.157895 | 0.605263 | 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 |
522ffd9522b9927cd2379fa3b6d3ce8117bd263c | 258 | py | Python | ita/web/models/__init__.py | Tezar/Assigment-generator | 2a3d0d10f1e3b215a79efc727e26d2ebbf1bb7a3 | [
"Apache-2.0"
] | null | null | null | ita/web/models/__init__.py | Tezar/Assigment-generator | 2a3d0d10f1e3b215a79efc727e26d2ebbf1bb7a3 | [
"Apache-2.0"
] | null | null | null | ita/web/models/__init__.py | Tezar/Assigment-generator | 2a3d0d10f1e3b215a79efc727e26d2ebbf1bb7a3 | [
"Apache-2.0"
] | 1 | 2020-07-24T05:48:47.000Z | 2020-07-24T05:48:47.000Z | from . import assigment
from . import lecture
from . import group
from . import user
#todo: hook pri ondelete
Assigment = assigment.Model
Lecture = lecture.Model
Group = group.Model
User = user.Model
__all__=["Assigment", "Lecture", "Group", "User"] | 17.2 | 49 | 0.72093 | 33 | 258 | 5.515152 | 0.363636 | 0.21978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170543 | 258 | 15 | 49 | 17.2 | 0.850467 | 0.089147 | 0 | 0 | 0 | 0 | 0.106383 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
524d67d27c4328ee3a215d5767fc655ff8be9d81 | 200 | py | Python | meiduo02/meiduo02/apps/oauth/urls.py | physili/django_test | 09aa61f36e5d32f98af11057ea206dde8d082ac7 | [
"MIT"
] | 1 | 2020-04-25T04:50:30.000Z | 2020-04-25T04:50:30.000Z | meiduo02/meiduo02/apps/oauth/urls.py | physili/django_test | 09aa61f36e5d32f98af11057ea206dde8d082ac7 | [
"MIT"
] | null | null | null | meiduo02/meiduo02/apps/oauth/urls.py | physili/django_test | 09aa61f36e5d32f98af11057ea206dde8d082ac7 | [
"MIT"
] | null | null | null |
from . import views
from django.urls import re_path
urlpatterns = [
re_path(r'^qq/authorization/$', views.QQURLView.as_view()),
re_path(r'^oauth_callback/$', views.QQUserView.as_view()),
]
| 20 | 63 | 0.705 | 28 | 200 | 4.821429 | 0.607143 | 0.133333 | 0.103704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135 | 200 | 9 | 64 | 22.222222 | 0.780347 | 0 | 0 | 0 | 0 | 0 | 0.180905 | 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 |
525ca8a11c104133087f0de99b44fcaf084fdcd2 | 188 | py | Python | reference/sketchbook/lex/memo.py | JaDogg/__py_playground | 416f88db10e03f5380bcb5cfcad0bca50ffa657c | [
"MIT"
] | 1 | 2015-10-28T00:00:16.000Z | 2015-10-28T00:00:16.000Z | reference/sketchbook/regex/memo.py | JaDogg/__py_playground | 416f88db10e03f5380bcb5cfcad0bca50ffa657c | [
"MIT"
] | null | null | null | reference/sketchbook/regex/memo.py | JaDogg/__py_playground | 416f88db10e03f5380bcb5cfcad0bca50ffa657c | [
"MIT"
] | null | null | null | """
Memoization decorator.
"""
def memoize(f):
memos = {}
def memoized(*args):
if args not in memos: memos[args] = f(*args)
return memos[args]
return memoized
| 17.090909 | 52 | 0.585106 | 23 | 188 | 4.782609 | 0.521739 | 0.163636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276596 | 188 | 10 | 53 | 18.8 | 0.808824 | 0.117021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5269bf906d2d420df5d14fa708b646e84b224ab0 | 196 | py | Python | examples/fib.py | evtn/birp | fe54669f296ca99eb8cc5296ab3ec4896ad8cfc0 | [
"MIT"
] | 21 | 2021-10-09T07:30:12.000Z | 2022-01-04T12:15:14.000Z | examples/fib.py | evtn/birp | fe54669f296ca99eb8cc5296ab3ec4896ad8cfc0 | [
"MIT"
] | 1 | 2021-10-18T10:49:59.000Z | 2021-10-18T10:49:59.000Z | examples/fib.py | evtn/birp | fe54669f296ca99eb8cc5296ab3ec4896ad8cfc0 | [
"MIT"
] | null | null | null | from functools import cache as кэш
@кэш
def фибоначчи(номер):
if номер == 0:
return 0
if номер in [1, 2]:
return 1
return фибоначчи(номер - 1) + фибоначчи(номер - 2)
| 17.818182 | 54 | 0.602041 | 29 | 196 | 4.068966 | 0.517241 | 0.355932 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051471 | 0.306122 | 196 | 10 | 55 | 19.6 | 0.816176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.625 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5270f212583ae75fa1f6727eddc8739ef8d02673 | 3,093 | py | Python | grok_pat_config.py | garyelephant/dolphin | 68bf3b3612c78b3094e332c34787751c948a0246 | [
"MIT"
] | null | null | null | grok_pat_config.py | garyelephant/dolphin | 68bf3b3612c78b3094e332c34787751c948a0246 | [
"MIT"
] | null | null | null | grok_pat_config.py | garyelephant/dolphin | 68bf3b3612c78b3094e332c34787751c948a0246 | [
"MIT"
] | null | null | null | class CaseInsensitiveKey( object ):
def __init__( self, key ):
self.key = key
def __hash__( self ):
return hash( self.key.lower() )
def __eq__( self, other ):
return self.key.lower() == other.key.lower()
def __str__( self ):
return self.key
GROK_PATTERN_CONF = dict()
# B... | 36.821429 | 95 | 0.643065 | 320 | 3,093 | 5.984375 | 0.221875 | 0.160836 | 0.219321 | 0.448042 | 0.239164 | 0.100261 | 0.073107 | 0.035509 | 0.035509 | 0 | 0 | 0.00639 | 0.19043 | 3,093 | 84 | 96 | 36.821429 | 0.758387 | 0.395086 | 0 | 0 | 0 | 0 | 0.166298 | 0 | 0 | 0 | 0 | 0.011905 | 0 | 1 | 0.125 | false | 0 | 0 | 0.09375 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5274cfcbbea41ead5e4d0d7ce47c38af50c6414c | 211 | bzl | Python | test/com/facebook/buck/core/starlark/rule/testdata/compatible_with/defs.bzl | Unknoob/buck | 2dfc734354b326f2f66896dde7746a11965d5a13 | [
"Apache-2.0"
] | 8,027 | 2015-01-02T05:31:44.000Z | 2022-03-31T07:08:09.000Z | test/com/facebook/buck/core/starlark/rule/testdata/compatible_with/defs.bzl | Unknoob/buck | 2dfc734354b326f2f66896dde7746a11965d5a13 | [
"Apache-2.0"
] | 2,355 | 2015-01-01T15:30:53.000Z | 2022-03-30T20:21:16.000Z | test/com/facebook/buck/core/starlark/rule/testdata/compatible_with/defs.bzl | Unknoob/buck | 2dfc734354b326f2f66896dde7746a11965d5a13 | [
"Apache-2.0"
] | 1,280 | 2015-01-09T03:29:04.000Z | 2022-03-30T15:14:14.000Z | """ Module docstring """
def _write_file_impl(ctx):
f = ctx.actions.declare_file("out.txt")
ctx.actions.write(f, "contents")
write_file = rule(
attrs = {},
implementation = _write_file_impl,
)
| 19.181818 | 43 | 0.658768 | 27 | 211 | 4.851852 | 0.592593 | 0.206107 | 0.198473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184834 | 211 | 10 | 44 | 21.1 | 0.761628 | 0.075829 | 0 | 0 | 0 | 0 | 0.080214 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
527ccc2ed40b2f3520f673ecbf6be77b7dc3e6d8 | 144 | py | Python | uplink/apps.py | fga-eps-mds/2017.2-SiGI-Op_API | 4532019c15414fd17e06bb3aa78501886e00da1d | [
"BSD-3-Clause"
] | 6 | 2017-08-24T13:18:21.000Z | 2017-10-03T18:06:13.000Z | uplink/apps.py | fga-gpp-mds/2017.2-Grupo9 | 4532019c15414fd17e06bb3aa78501886e00da1d | [
"BSD-3-Clause"
] | 173 | 2017-08-31T15:29:01.000Z | 2017-12-14T13:40:13.000Z | uplink/apps.py | fga-gpp-mds/2017.2-SiGI-Op_API | 4532019c15414fd17e06bb3aa78501886e00da1d | [
"BSD-3-Clause"
] | 2 | 2018-11-19T10:33:00.000Z | 2019-06-19T22:35:43.000Z | from django.apps import AppConfig
class UplinkConfig(AppConfig):
name = 'uplink'
class SegmentsConfig(AppConfig):
name = 'segments'
| 14.4 | 33 | 0.729167 | 15 | 144 | 7 | 0.733333 | 0.247619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180556 | 144 | 9 | 34 | 16 | 0.889831 | 0 | 0 | 0 | 0 | 0 | 0.097222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
528bb65ff565c33ab7bc33293016ee3dcf4d1335 | 879 | py | Python | Tradable/items/migrations/0005_auto_20190403_2333.py | eddylau328/tradable | 2082da78697484761ddfb5480b28dc5e19aa0958 | [
"MIT"
] | null | null | null | Tradable/items/migrations/0005_auto_20190403_2333.py | eddylau328/tradable | 2082da78697484761ddfb5480b28dc5e19aa0958 | [
"MIT"
] | null | null | null | Tradable/items/migrations/0005_auto_20190403_2333.py | eddylau328/tradable | 2082da78697484761ddfb5480b28dc5e19aa0958 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.7 on 2019-04-03 15:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('items', '0004_auto_20190403_2240'),
]
operations = [
migrations.AlterField(
model_name='item',
name='condition',
... | 25.852941 | 85 | 0.557452 | 86 | 879 | 5.581395 | 0.534884 | 0.166667 | 0.208333 | 0.241667 | 0.441667 | 0.441667 | 0.364583 | 0.364583 | 0.270833 | 0.270833 | 0 | 0.06734 | 0.324232 | 879 | 33 | 86 | 26.636364 | 0.740741 | 0.051195 | 0 | 0.518519 | 1 | 0 | 0.08774 | 0.027644 | 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 |
529340507c85d546884f07fcbeed088d783fafbc | 6,757 | py | Python | tests/tools/test_image_colors_manip_relabeller.py | nipy/nilabels | b065febc611eef638785651b4642d53bb61f1321 | [
"MIT"
] | 15 | 2019-04-09T21:47:47.000Z | 2022-02-01T14:11:51.000Z | tests/tools/test_image_colors_manip_relabeller.py | SebastianoF/LabelsManager | b065febc611eef638785651b4642d53bb61f1321 | [
"MIT"
] | 4 | 2018-08-24T09:25:49.000Z | 2018-08-29T10:47:50.000Z | tests/tools/test_image_colors_manip_relabeller.py | nipy/nilabels | b065febc611eef638785651b4642d53bb61f1321 | [
"MIT"
] | 1 | 2019-04-06T20:49:48.000Z | 2019-04-06T20:49:48.000Z | import numpy as np
import pytest
from nilabels.tools.image_colors_manipulations.relabeller import relabeller, permute_labels, erase_labels, \
assign_all_other_labels_the_same_value, keep_only_one_label, relabel_half_side_one_label
def test_relabeller_basic():
data = np.array(range(10)).reshape(2, 5)
rela... | 37.538889 | 108 | 0.688323 | 1,005 | 6,757 | 4.206965 | 0.096517 | 0.047304 | 0.067408 | 0.076632 | 0.816698 | 0.730842 | 0.726348 | 0.666982 | 0.60667 | 0.460738 | 0 | 0.041497 | 0.201125 | 6,757 | 179 | 109 | 37.748603 | 0.741756 | 0.006956 | 0 | 0.31746 | 0 | 0 | 0.009548 | 0 | 0 | 0 | 0 | 0 | 0.150794 | 1 | 0.119048 | false | 0 | 0.02381 | 0 | 0.142857 | 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 |
bfda6dedee424ce5599151143037800f80651bea | 75 | py | Python | com/LimePencil/Q14928/Main.py | LimePencil/baekjoonProblems | 61eeeeb875585d165d9e39ecdb3d905b4ba6aa87 | [
"MIT"
] | 2 | 2021-07-17T13:05:42.000Z | 2021-09-12T09:14:24.000Z | com/LimePencil/Q14928/Main.py | LimePencil/baekjoonProblems | 61eeeeb875585d165d9e39ecdb3d905b4ba6aa87 | [
"MIT"
] | null | null | null | com/LimePencil/Q14928/Main.py | LimePencil/baekjoonProblems | 61eeeeb875585d165d9e39ecdb3d905b4ba6aa87 | [
"MIT"
] | null | null | null | import sys
num = int(sys.stdin.readline().rstrip("\n"))
print(num%20000303) | 25 | 44 | 0.72 | 12 | 75 | 4.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 0.066667 | 75 | 3 | 45 | 25 | 0.657143 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 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 |
bfdc3cc7df767eac8f228aaa4f5319735b01105f | 8,641 | py | Python | src/borg/testsuite/nonces.py | yzr95924/borg | fcf62872fb0028a43d103e9dc322642fe80334e9 | [
"BSD-3-Clause"
] | null | null | null | src/borg/testsuite/nonces.py | yzr95924/borg | fcf62872fb0028a43d103e9dc322642fe80334e9 | [
"BSD-3-Clause"
] | null | null | null | src/borg/testsuite/nonces.py | yzr95924/borg | fcf62872fb0028a43d103e9dc322642fe80334e9 | [
"BSD-3-Clause"
] | null | null | null | import os.path
import pytest
from ..crypto import nonces
from ..crypto.nonces import NonceManager
from ..crypto.key import bin_to_hex
from ..helpers import get_security_dir
from ..remote import InvalidRPCMethod
class TestNonceManager:
class MockRepository:
class _Location:
orig = '/some/pla... | 37.406926 | 95 | 0.681866 | 996 | 8,641 | 5.660643 | 0.133534 | 0.101809 | 0.063852 | 0.078042 | 0.796559 | 0.751685 | 0.722419 | 0.695282 | 0.686414 | 0.660518 | 0 | 0.11086 | 0.231686 | 8,641 | 230 | 96 | 37.569565 | 0.738364 | 0.033329 | 0 | 0.590361 | 0 | 0 | 0.075144 | 0.027685 | 0 | 0 | 0.048178 | 0 | 0.198795 | 1 | 0.120482 | false | 0 | 0.042169 | 0.006024 | 0.204819 | 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 |
bfddac08db04c6268885da2017b7bd431da45875 | 1,409 | py | Python | slice_visualization_ui.py | johanesmikhael/ContinuityAnalysis | 931dbb1f4d83ec085e8115ee5b183afd2a067b0c | [
"MIT"
] | null | null | null | slice_visualization_ui.py | johanesmikhael/ContinuityAnalysis | 931dbb1f4d83ec085e8115ee5b183afd2a067b0c | [
"MIT"
] | null | null | null | slice_visualization_ui.py | johanesmikhael/ContinuityAnalysis | 931dbb1f4d83ec085e8115ee5b183afd2a067b0c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'slice_visualization.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_slice_visualization_gui(object):
def setupUi(self, slice_v... | 42.69697 | 99 | 0.760114 | 152 | 1,409 | 6.809211 | 0.407895 | 0.295652 | 0.324638 | 0.072464 | 0.081159 | 0.081159 | 0 | 0 | 0 | 0 | 0 | 0.015139 | 0.156139 | 1,409 | 32 | 100 | 44.03125 | 0.855341 | 0.134847 | 0 | 0 | 1 | 0 | 0.07019 | 0.037985 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.05 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
870697c00a61acfe7bcd4e2f2706d65c3c383158 | 208 | py | Python | murraylab_tools/tests/echo_tests/test_mastermix.py | francescazfl/murraylab_tools | 106e70172e1a7065c73238af994a6dc78b6b3fb7 | [
"MIT"
] | 2 | 2017-12-04T22:51:48.000Z | 2018-10-25T22:04:59.000Z | murraylab_tools/tests/echo_tests/test_mastermix.py | francescazfl/murraylab_tools | 106e70172e1a7065c73238af994a6dc78b6b3fb7 | [
"MIT"
] | 7 | 2016-11-19T02:41:08.000Z | 2020-12-15T01:50:56.000Z | murraylab_tools/tests/echo_tests/test_mastermix.py | francescazfl/murraylab_tools | 106e70172e1a7065c73238af994a6dc78b6b3fb7 | [
"MIT"
] | 10 | 2016-11-17T01:17:13.000Z | 2020-12-14T19:40:07.000Z | import pytest
import numpy as np
import murraylab_tools.echo as mt_echo
@pytest.mark.skip(reason="no way of currently testing this")
class TestMasterMix():
def test_implement_me(self):
assert 0
| 20.8 | 60 | 0.754808 | 32 | 208 | 4.78125 | 0.84375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005814 | 0.173077 | 208 | 9 | 61 | 23.111111 | 0.883721 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
871b96a7eb1adaec08134a00822b9bc576f2595d | 4,270 | py | Python | bimap.py | TMPxyz/python_bidi_multimap | cb34d1e8f8352fd8fb564db23b62eb3dac7fda44 | [
"Apache-2.0"
] | null | null | null | bimap.py | TMPxyz/python_bidi_multimap | cb34d1e8f8352fd8fb564db23b62eb3dac7fda44 | [
"Apache-2.0"
] | null | null | null | bimap.py | TMPxyz/python_bidi_multimap | cb34d1e8f8352fd8fb564db23b62eb3dac7fda44 | [
"Apache-2.0"
] | null | null | null | # bidi multimap
from collections import defaultdict
class MMap:
"multimap"
def __init__(self):
self._m = defaultdict(set)
self._pair_cnt = 0
def __contains__(self, k):
"if a key in mmap"
return k in self._m
def __getitem__(self, k):
if k not... | 25.568862 | 76 | 0.514052 | 634 | 4,270 | 3.257098 | 0.129338 | 0.082324 | 0.088136 | 0.043584 | 0.627603 | 0.501211 | 0.377724 | 0.33414 | 0.249395 | 0.182082 | 0 | 0.00149 | 0.371194 | 4,270 | 166 | 77 | 25.722892 | 0.767598 | 0.05363 | 0 | 0.422764 | 0 | 0 | 0.072663 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.284553 | false | 0 | 0.00813 | 0.130081 | 0.520325 | 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 |
874062a6500d935f6cb4043c148b7eed07cfce8c | 20,096 | py | Python | test/functional/tl_metadex.py | patrickdugan/BlockPo-to-Tradelayer | ba1ebf3c329751d414302577a09481ba28db1815 | [
"MIT"
] | null | null | null | test/functional/tl_metadex.py | patrickdugan/BlockPo-to-Tradelayer | ba1ebf3c329751d414302577a09481ba28db1815 | [
"MIT"
] | 5 | 2021-06-21T21:21:53.000Z | 2021-06-22T20:10:16.000Z | test/functional/tl_metadex.py | patrickdugan/BlockPo-to-Tradelayer | ba1ebf3c329751d414302577a09481ba28db1815 | [
"MIT"
] | 1 | 2021-06-21T21:14:45.000Z | 2021-06-21T21:14:45.000Z | #!/usr/bin/env python3
# Copyright (c) 2015-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test MetaDEx functions."""
from test_framework.test_framework import BitcoinTestFramework
from test_fr... | 40.59798 | 128 | 0.606389 | 2,372 | 20,096 | 5.033727 | 0.11172 | 0.117002 | 0.147739 | 0.139028 | 0.796399 | 0.76206 | 0.70804 | 0.674623 | 0.637353 | 0.633836 | 0 | 0.06961 | 0.212231 | 20,096 | 494 | 129 | 40.680162 | 0.68448 | 0.059614 | 0 | 0.544892 | 0 | 0 | 0.262566 | 0.021359 | 0 | 0 | 0 | 0 | 0.393189 | 1 | 0.009288 | false | 0.006192 | 0.018576 | 0 | 0.03096 | 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 |
8741db31068c5c6401fb3b9e4bd1b20ab9581766 | 339 | py | Python | netrd/dynamics/__init__.py | hartle/netrd | da962e080be4b60cb40a43f78582823cbd00c839 | [
"MIT"
] | null | null | null | netrd/dynamics/__init__.py | hartle/netrd | da962e080be4b60cb40a43f78582823cbd00c839 | [
"MIT"
] | null | null | null | netrd/dynamics/__init__.py | hartle/netrd | da962e080be4b60cb40a43f78582823cbd00c839 | [
"MIT"
] | null | null | null | from .base import BaseDynamics
from .sherrington_kirkpatrick import SherringtonKirkpatrickIsing
from .single_unbiased_random_walker import SingleUnbiasedRandomWalker
from .kuramoto import Kuramoto
from .lotka_volterra import LotkaVolterra
from .ising_glauber import IsingGlauber
from .branching_process import BranchingM... | 33.9 | 69 | 0.876106 | 36 | 339 | 7.944444 | 0.638889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094395 | 339 | 9 | 70 | 37.666667 | 0.931596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.875 | 0 | 0.875 | 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 |
8749283015b1eff05def3062265cc7b80c307fb7 | 159 | py | Python | start.py | lolenseu/NetKill | a18c239c44e328f12059ed535511f8b7ab9bf41d | [
"MIT"
] | 3 | 2022-02-27T13:30:24.000Z | 2022-02-28T18:59:27.000Z | start.py | lolenseu/NetKill | a18c239c44e328f12059ed535511f8b7ab9bf41d | [
"MIT"
] | null | null | null | start.py | lolenseu/NetKill | a18c239c44e328f12059ed535511f8b7ab9bf41d | [
"MIT"
] | null | null | null | import os
while True:
print("Starting...")
os.system('wget https://speed.hetzner.de/100MB.bin && rm -rf 100MB.bin')
print("Done!")
os.system('clear')
| 19.875 | 74 | 0.647799 | 24 | 159 | 4.291667 | 0.75 | 0.15534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043796 | 0.138365 | 159 | 7 | 75 | 22.714286 | 0.708029 | 0 | 0 | 0 | 0 | 0 | 0.503145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
874a0c8257b0c907f80555a3687bd87646044a40 | 142 | py | Python | rates/apps.py | mathemartins/syarpa_k8s | 880be2ee3bd26613819d0bd2652be579f6a93886 | [
"Apache-2.0"
] | null | null | null | rates/apps.py | mathemartins/syarpa_k8s | 880be2ee3bd26613819d0bd2652be579f6a93886 | [
"Apache-2.0"
] | null | null | null | rates/apps.py | mathemartins/syarpa_k8s | 880be2ee3bd26613819d0bd2652be579f6a93886 | [
"Apache-2.0"
] | 1 | 2021-12-15T08:38:35.000Z | 2021-12-15T08:38:35.000Z | from django.apps import AppConfig
class RatesConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'rates'
| 20.285714 | 56 | 0.753521 | 17 | 142 | 6.176471 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15493 | 142 | 6 | 57 | 23.666667 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.239437 | 0.204225 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 |
874f9729fc282538503f272f6e8ee38acd87eeb7 | 170 | py | Python | teste.py | vintgrupo/vdd | a859f7d293326b5e7d73888c86bea4c2f3586b86 | [
"MIT"
] | null | null | null | teste.py | vintgrupo/vdd | a859f7d293326b5e7d73888c86bea4c2f3586b86 | [
"MIT"
] | null | null | null | teste.py | vintgrupo/vdd | a859f7d293326b5e7d73888c86bea4c2f3586b86 | [
"MIT"
] | null | null | null | import pandas as pd
df = pd.read_csv('HIST_PAINEL_COVIDBR_20ago2020_MT.csv')
print(df.columns)
# df_semana = df.groupby(['semanaEpi']).sum()
# print(df_semana.head())
| 18.888889 | 56 | 0.735294 | 27 | 170 | 4.37037 | 0.703704 | 0.118644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 0.1 | 170 | 8 | 57 | 21.25 | 0.732026 | 0.394118 | 0 | 0 | 0 | 0 | 0.363636 | 0.363636 | 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 |
87528c41d972122c62bf882ead0cb66cb919b097 | 593 | py | Python | python/tHome/eagle/messages/test/InstantaneousDemand.py | ZigmundRat/T-Home | 5dc8689f52d87dac890051e540b338b009293ced | [
"BSD-2-Clause"
] | 18 | 2016-04-17T19:39:28.000Z | 2020-11-19T06:55:20.000Z | python/tHome/eagle/messages/test/InstantaneousDemand.py | ZigmundRat/T-Home | 5dc8689f52d87dac890051e540b338b009293ced | [
"BSD-2-Clause"
] | 11 | 2018-09-07T18:34:41.000Z | 2021-05-02T04:44:54.000Z | python/tHome/eagle/messages/test/InstantaneousDemand.py | ZigmundRat/T-Home | 5dc8689f52d87dac890051e540b338b009293ced | [
"BSD-2-Clause"
] | 12 | 2016-10-31T12:29:08.000Z | 2021-12-28T12:18:28.000Z | #!/usr/bin/env python
import xml.etree.ElementTree as ET
import tHome.eagle as E
s="""
<InstantaneousDemand>
<DeviceMacId>0xd8d5b9000000103f</DeviceMacId>
<MeterMacId>0x000781000086d0fe</MeterMacId>
<TimeStamp>0x1c531d48</TimeStamp>
<Demand>0x00032d</Demand>
<Multiplier>0x00000001</Multipl... | 22.807692 | 50 | 0.720067 | 56 | 593 | 7.625 | 0.678571 | 0.107728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125749 | 0.155143 | 593 | 25 | 51 | 23.72 | 0.726547 | 0.033727 | 0 | 0 | 0 | 0 | 0.736842 | 0.626316 | 0 | 0 | 0.14386 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
87530bb97282e3f993f9dbe26ce5a09bf11787e3 | 110 | py | Python | web/shell.py | gabriel-v/avizier-virtual | 015f4608f6457990c48ebdef07ec4c01c84cf7a3 | [
"WTFPL"
] | null | null | null | web/shell.py | gabriel-v/avizier-virtual | 015f4608f6457990c48ebdef07ec4c01c84cf7a3 | [
"WTFPL"
] | null | null | null | web/shell.py | gabriel-v/avizier-virtual | 015f4608f6457990c48ebdef07ec4c01c84cf7a3 | [
"WTFPL"
] | null | null | null | #!/bin/bash -ex
docker exec -it $(docker ps -q --filter label=com.docker.swarm.service.name=avizier_web) bash
| 36.666667 | 93 | 0.736364 | 19 | 110 | 4.210526 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 110 | 2 | 94 | 55 | 0.808081 | 0.127273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
875ccce248bd6bd59177edd2d8773827534033ec | 215 | py | Python | enume.py | ambivert143/PythonProgram | 9c21027c35b3b1c3542b068f45faab5db00a2fa8 | [
"MIT"
] | null | null | null | enume.py | ambivert143/PythonProgram | 9c21027c35b3b1c3542b068f45faab5db00a2fa8 | [
"MIT"
] | null | null | null | enume.py | ambivert143/PythonProgram | 9c21027c35b3b1c3542b068f45faab5db00a2fa8 | [
"MIT"
] | null | null | null | class Enum:
def __init__(self,list):
self.list = list
def enume(self):
for index, val in enumerate(self.list,start=1):
print(index,val)
e1 = Enum([5,15,45,4,53])
e1.enume() | 26.875 | 56 | 0.567442 | 33 | 215 | 3.575758 | 0.636364 | 0.20339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.283721 | 215 | 8 | 57 | 26.875 | 0.694805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.375 | 0.125 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5e60a1f2b6bbe0625c4ac1b59637a1981a8be0f5 | 114 | py | Python | tasfie/apps.py | mablue/Specialized-Procurement-and-Sales-Management-System-for-East-Azarbaijan-Gas-Company | da071bd199a92d571228a1d823a7fa1f52275604 | [
"MIT"
] | 30 | 2019-08-18T14:57:39.000Z | 2022-03-15T22:09:09.000Z | tasfie/apps.py | mablue/Specialized-Procurement-and-Sales-Management-System-for-East-Azarbaijan-Gas-Company | da071bd199a92d571228a1d823a7fa1f52275604 | [
"MIT"
] | 3 | 2021-03-19T00:46:32.000Z | 2021-09-22T01:29:08.000Z | tasfie/apps.py | mablue/Specialized-Procurement-and-Sales-Management-System-for-East-Azarbaijan-Gas-Company | da071bd199a92d571228a1d823a7fa1f52275604 | [
"MIT"
] | 7 | 2019-08-20T14:04:28.000Z | 2021-06-29T06:43:08.000Z | from django.apps import AppConfig
class TasfieConfig(AppConfig):
name = 'tasfie'
verbose_name = 'تسویه'
| 16.285714 | 33 | 0.719298 | 13 | 114 | 6.230769 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192982 | 114 | 6 | 34 | 19 | 0.880435 | 0 | 0 | 0 | 0 | 0 | 0.096491 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 |
5e659f259160f253ce492737f80c806e633048f1 | 360 | py | Python | litGL/examples/__init__.py | ncreati/LitGL | acdc57632940538286381387efbefab1160aa32e | [
"MIT"
] | null | null | null | litGL/examples/__init__.py | ncreati/LitGL | acdc57632940538286381387efbefab1160aa32e | [
"MIT"
] | null | null | null | litGL/examples/__init__.py | ncreati/LitGL | acdc57632940538286381387efbefab1160aa32e | [
"MIT"
] | null | null | null | """ examples package.
Author:
- 2020-2021 Nicola Creati
- 2020-2021 Roberto Vidmar
Copyright:
2020-2021 Nicola Creati <ncreati@inogs.it>
2020-2021 Roberto Vidmar <rvidmar@inogs.it>
License:
MIT/X11 License (see
:download:`l... | 21.176471 | 59 | 0.530556 | 36 | 360 | 5.305556 | 0.555556 | 0.167539 | 0.146597 | 0.209424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144681 | 0.347222 | 360 | 16 | 60 | 22.5 | 0.668085 | 0.875 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5e752618d881636eac6eb75fdd24fe3b056b60bd | 429 | py | Python | Week 7/id_510/sort/Leetcode_56_510.py | larryRishi/algorithm004-05 | e60d0b1176acd32a9184b215e36d4122ba0b6263 | [
"Apache-2.0"
] | 1 | 2019-10-12T06:48:45.000Z | 2019-10-12T06:48:45.000Z | Week 7/id_510/sort/Leetcode_56_510.py | larryRishi/algorithm004-05 | e60d0b1176acd32a9184b215e36d4122ba0b6263 | [
"Apache-2.0"
] | 1 | 2019-12-01T10:02:03.000Z | 2019-12-01T10:02:03.000Z | Week 7/id_510/sort/Leetcode_56_510.py | larryRishi/algorithm004-05 | e60d0b1176acd32a9184b215e36d4122ba0b6263 | [
"Apache-2.0"
] | null | null | null | """
给出一个区间的集合,请合并所有重叠的区间。
示例 1:
输入: [[1,3],[2,6],[8,10],[15,18]]
输出: [[1,6],[8,10],[15,18]]
解释: 区间 [1,3] 和 [2,6] 重叠, 将它们合并为 [1,6].
示例 2:
输入: [[1,4],[4,5]]
输出: [[1,5]]
解释: 区间 [1,4] 和 [4,5] 可被视为重叠区间。
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/merge-intervals
著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
"""
from typing... | 19.5 | 67 | 0.606061 | 80 | 429 | 3.25 | 0.55 | 0.023077 | 0.030769 | 0.046154 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102981 | 0.13986 | 429 | 22 | 68 | 19.5 | 0.601626 | 0.699301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5e796ec3f7a48dc3c7fc188a38798d9e8a46bab4 | 100 | py | Python | pytuya/const.py | braub/python-tuya | 0d46bc46d396e8a9baa8ccebc2bc9fe0c0528022 | [
"MIT"
] | 231 | 2017-12-03T13:58:06.000Z | 2022-03-17T07:48:08.000Z | pytuya/const.py | braub/python-tuya | 0d46bc46d396e8a9baa8ccebc2bc9fe0c0528022 | [
"MIT"
] | 67 | 2018-01-01T19:14:17.000Z | 2021-08-12T00:12:15.000Z | pytuya/const.py | braub/python-tuya | 0d46bc46d396e8a9baa8ccebc2bc9fe0c0528022 | [
"MIT"
] | 73 | 2017-12-03T13:58:08.000Z | 2021-09-05T10:06:05.000Z | version_tuple = (7, 0, 7)
version = __version__ = '%d.%d.%d' % version_tuple
__author__ = 'clach04'
| 25 | 50 | 0.67 | 14 | 100 | 4.071429 | 0.5 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.15 | 100 | 3 | 51 | 33.333333 | 0.611765 | 0 | 0 | 0 | 0 | 0 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5e86bc4d50661b0972690f7ca2236df316c7f644 | 68 | py | Python | android/.buildozer/android/platform/build/build/python-installs/youtb_dc/youtube_dl/version.py | mw3tv123/youtube-dc | 84cfdac4b7548285084f453f1716eee83b9288aa | [
"MIT"
] | null | null | null | android/.buildozer/android/platform/build/build/python-installs/youtb_dc/youtube_dl/version.py | mw3tv123/youtube-dc | 84cfdac4b7548285084f453f1716eee83b9288aa | [
"MIT"
] | null | null | null | android/.buildozer/android/platform/build/build/python-installs/youtb_dc/youtube_dl/version.py | mw3tv123/youtube-dc | 84cfdac4b7548285084f453f1716eee83b9288aa | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
__version__ = '2019.03.18'
| 17 | 39 | 0.808824 | 9 | 68 | 5.111111 | 1 | 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 |
5e8e41e3a0c4ff5a6de08b69c73941b177604cde | 85 | py | Python | myapi/__init__.py | CVIU-CSU/M2MRF-Lesion-Segmentation | 13af87927f4cdeca70e35d570edd1aec43b387b6 | [
"Apache-2.0"
] | 10 | 2021-11-29T12:58:21.000Z | 2022-03-08T14:43:59.000Z | myapi/__init__.py | CVIU-CSU/M2MRF-Lesion-Segmentation | 13af87927f4cdeca70e35d570edd1aec43b387b6 | [
"Apache-2.0"
] | 1 | 2021-12-10T01:59:44.000Z | 2021-12-19T05:24:04.000Z | myapi/__init__.py | CVIU-CSU/M2MRF-Lesion-Segmentation | 13af87927f4cdeca70e35d570edd1aec43b387b6 | [
"Apache-2.0"
] | 1 | 2021-11-30T07:51:08.000Z | 2021-11-30T07:51:08.000Z | from .test_hook import *
from .config import *
__all__ = [
'logit_activation'
]
| 12.142857 | 24 | 0.682353 | 10 | 85 | 5.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211765 | 85 | 6 | 25 | 14.166667 | 0.776119 | 0 | 0 | 0 | 0 | 0 | 0.188235 | 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 |
5eb4a4f5b78068b01a1fb2c3c61e7a06496e514e | 232 | py | Python | shooter/game_object/landscapes/water.py | EvgeniiMorozov/zombie_shooter_026 | 0bda0cabe8c9b7c1c3607d84c6e32d5e289cfb4a | [
"MIT"
] | null | null | null | shooter/game_object/landscapes/water.py | EvgeniiMorozov/zombie_shooter_026 | 0bda0cabe8c9b7c1c3607d84c6e32d5e289cfb4a | [
"MIT"
] | 6 | 2021-05-15T09:16:00.000Z | 2021-05-22T13:56:33.000Z | shooter/game_object/landscapes/water.py | EvgeniiMorozov/zombie_shooter_026 | 0bda0cabe8c9b7c1c3607d84c6e32d5e289cfb4a | [
"MIT"
] | 6 | 2021-05-15T08:35:08.000Z | 2021-12-13T16:31:10.000Z | from shooter.config import LANDSCAPE_WATER
from shooter.game_object.landscape import Landscape
class Water(Landscape):
"""Класс вода"""
def __init__(self, x, y, image=LANDSCAPE_WATER):
super().__init__(x, y, image) | 29 | 52 | 0.728448 | 31 | 232 | 5.096774 | 0.580645 | 0.139241 | 0.088608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159483 | 232 | 8 | 53 | 29 | 0.810256 | 0.043103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 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 |
5ecd6253a6c11a52271e37923ed72679dd9c166c | 436 | py | Python | sort/insertion_sort.py | udohsolomon/LearnAlgorithms | 36f8e2af4efe65a6b9627b400da77931ef5a6a26 | [
"MIT"
] | null | null | null | sort/insertion_sort.py | udohsolomon/LearnAlgorithms | 36f8e2af4efe65a6b9627b400da77931ef5a6a26 | [
"MIT"
] | null | null | null | sort/insertion_sort.py | udohsolomon/LearnAlgorithms | 36f8e2af4efe65a6b9627b400da77931ef5a6a26 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
def insertion_sort(lst): #times
for i in range(1,len(lst)): #n - 1
while i > 0 and lst[i-1] > lst[i]: #(n - 1)n
lst[i], lst[i-1] = lst[i-1], lst[i] #(n - 1)n/2
... | 48.444444 | 75 | 0.323394 | 57 | 436 | 2.438596 | 0.473684 | 0.172662 | 0.107914 | 0.172662 | 0.208633 | 0.172662 | 0.172662 | 0.172662 | 0 | 0 | 0 | 0.084577 | 0.538991 | 436 | 9 | 76 | 48.444444 | 0.606965 | 0.114679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
0d7140c06f217f7f03eb9977610356ade32db4a6 | 3,442 | py | Python | unit_tests/test_tlslite_utils_cryptomath_m2crypto.py | tomato42/tlslite-1 | 4631799cdfac8f90b567d455e698b05d7a917599 | [
"Unlicense"
] | 121 | 2015-05-28T18:14:37.000Z | 2020-11-18T11:23:59.000Z | unit_tests/test_tlslite_utils_cryptomath_m2crypto.py | tomato42/tlslite-1 | 4631799cdfac8f90b567d455e698b05d7a917599 | [
"Unlicense"
] | 340 | 2015-05-28T15:56:11.000Z | 2020-11-04T11:40:45.000Z | unit_tests/test_tlslite_utils_cryptomath_m2crypto.py | tomato42/tlslite-1 | 4631799cdfac8f90b567d455e698b05d7a917599 | [
"Unlicense"
] | 60 | 2015-07-10T20:07:02.000Z | 2020-10-22T08:04:20.000Z | # Copyright (c) 2014, Hubert Kario
#
# See the LICENSE file for legal information regarding use of this file.
# compatibility with Python 2.6, for that we need unittest2 package,
# which is not available on 3.3 or 3.4
try:
import unittest2 as unittest
except ImportError:
import unittest
try:
import mock
... | 30.732143 | 72 | 0.633643 | 406 | 3,442 | 5.20197 | 0.263547 | 0.079545 | 0.145833 | 0.066288 | 0.660038 | 0.660038 | 0.660038 | 0.629735 | 0.60322 | 0.60322 | 0 | 0.018022 | 0.27455 | 3,442 | 111 | 73 | 31.009009 | 0.827793 | 0.070889 | 0 | 0.662791 | 0 | 0 | 0.044842 | 0.018188 | 0 | 0 | 0 | 0 | 0.046512 | 1 | 0.127907 | false | 0 | 0.325581 | 0 | 0.523256 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
0d7285a9ed5b6be753859ece5ad8b0b1141ab7cd | 522 | py | Python | app/barometer/migrations/0002_auto_20201206_1510.py | Valentin-Golyonko/FlaskTestRPi | b9796a9acb2bb1c122301a3ef192f43c857eb27b | [
"Apache-2.0"
] | null | null | null | app/barometer/migrations/0002_auto_20201206_1510.py | Valentin-Golyonko/FlaskTestRPi | b9796a9acb2bb1c122301a3ef192f43c857eb27b | [
"Apache-2.0"
] | null | null | null | app/barometer/migrations/0002_auto_20201206_1510.py | Valentin-Golyonko/FlaskTestRPi | b9796a9acb2bb1c122301a3ef192f43c857eb27b | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.4 on 2020-12-06 15:10
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('barometer', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='barometer',
old_name='pressure_pha',
... | 21.75 | 47 | 0.570881 | 51 | 522 | 5.647059 | 0.647059 | 0.145833 | 0.180556 | 0.208333 | 0.319444 | 0.319444 | 0.319444 | 0 | 0 | 0 | 0 | 0.053521 | 0.319923 | 522 | 23 | 48 | 22.695652 | 0.757746 | 0.086207 | 0 | 0.352941 | 1 | 0 | 0.183158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 |
0d772a85e8e35a835ffc788163c3de141d702286 | 127 | py | Python | testpopulator.py | chuzarski/thesketchyhouse | a5bcc225c40f3069e9a0d891025d22cb0c912e7b | [
"Apache-2.0"
] | null | null | null | testpopulator.py | chuzarski/thesketchyhouse | a5bcc225c40f3069e9a0d891025d22cb0c912e7b | [
"Apache-2.0"
] | null | null | null | testpopulator.py | chuzarski/thesketchyhouse | a5bcc225c40f3069e9a0d891025d22cb0c912e7b | [
"Apache-2.0"
] | null | null | null | from game.engine import Engine
from game.populator import Populator
eng = Engine()
pop = Populator(eng)
pop.populateRooms()
| 14.111111 | 36 | 0.771654 | 17 | 127 | 5.764706 | 0.470588 | 0.163265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141732 | 127 | 8 | 37 | 15.875 | 0.899083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0d7d782423bde333b668c8b5ea471874280a3ab1 | 257 | py | Python | desafiosCursoEmVideo/ex060.py | gomesGabriel/Pythonicos | b491cefbb0479dd83fee267304d0fa30b99786a5 | [
"MIT"
] | 1 | 2019-09-02T12:14:58.000Z | 2019-09-02T12:14:58.000Z | desafiosCursoEmVideo/ex060.py | gomesGabriel/Pythonicos | b491cefbb0479dd83fee267304d0fa30b99786a5 | [
"MIT"
] | null | null | null | desafiosCursoEmVideo/ex060.py | gomesGabriel/Pythonicos | b491cefbb0479dd83fee267304d0fa30b99786a5 | [
"MIT"
] | null | null | null | print('\033[33m-=-\033[m' * 20)
print('\033[33m************* Fatorial *************\033[m')
print('\033[33m-=-\033[m' * 20)
v = float(input('Insira um valor: '))
c = 1
f = 1
while c <= v:
f = f * c
c += 1
print('O fatorial de {} é {}' .format(v, f)) | 25.7 | 59 | 0.474708 | 44 | 257 | 2.772727 | 0.454545 | 0.196721 | 0.270492 | 0.229508 | 0.278689 | 0.278689 | 0 | 0 | 0 | 0 | 0 | 0.148325 | 0.18677 | 257 | 10 | 60 | 25.7 | 0.435407 | 0 | 0 | 0.2 | 0 | 0 | 0.472868 | 0.081395 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0d7daff3ac7cc306d71508e0fda3784fb6019e7f | 2,736 | py | Python | app/models/User.py | mmb186/MobileApp_API | da8d5ce20ceda19d14b4e86535d9caadc2dd4275 | [
"MIT"
] | 2 | 2020-03-05T14:00:30.000Z | 2020-09-08T18:28:10.000Z | app/models/User.py | mmb186/MobileApp_API | da8d5ce20ceda19d14b4e86535d9caadc2dd4275 | [
"MIT"
] | null | null | null | app/models/User.py | mmb186/MobileApp_API | da8d5ce20ceda19d14b4e86535d9caadc2dd4275 | [
"MIT"
] | null | null | null | from datetime import datetime
from app import db, bcrypt
trusted_contacts = db.Table(
'trusted_contacts',
db.Column('user_id', db.Integer, db.ForeignKey('users.id')),
db.Column('contact_id', db.Integer, db.ForeignKey('users.id'))
)
class User(db.Model):
"""
User Table Schema
"""
__t... | 31.448276 | 85 | 0.663012 | 348 | 2,736 | 5.008621 | 0.241379 | 0.094664 | 0.045898 | 0.045898 | 0.317269 | 0.250717 | 0.234079 | 0.16179 | 0.11245 | 0.064257 | 0 | 0.003756 | 0.221491 | 2,736 | 86 | 86 | 31.813953 | 0.814554 | 0.006213 | 0 | 0.061538 | 0 | 0 | 0.041126 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.184615 | false | 0.107692 | 0.030769 | 0.123077 | 0.523077 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
0dd125bef5be36b3b21fb072e6a39b654266b439 | 281 | py | Python | ACM-Solution/fIBoNaCCi.py | wasi0013/Python-CodeBase | 4a7a36395162f68f84ded9085fa34cc7c9b19233 | [
"MIT"
] | 2 | 2016-04-26T15:40:40.000Z | 2018-07-18T10:16:42.000Z | ACM-Solution/fIBoNaCCi.py | wasi0013/Python-CodeBase | 4a7a36395162f68f84ded9085fa34cc7c9b19233 | [
"MIT"
] | 1 | 2016-04-26T15:44:15.000Z | 2016-04-29T14:44:40.000Z | ACM-Solution/fIBoNaCCi.py | wasi0013/Python-CodeBase | 4a7a36395162f68f84ded9085fa34cc7c9b19233 | [
"MIT"
] | 1 | 2018-10-02T16:12:19.000Z | 2018-10-02T16:12:19.000Z | fibs = {0: 0, 1: 1}
def fib(n):
if n in fibs: return fibs[n]
if n % 2 == 0:
fibs[n] = ((2 * fib((n / 2) - 1)) + fib(n / 2)) * fib(n / 2)
return fibs[n]
fibs[n] = (fib((n - 1) / 2) ** 2) + (fib((n+1) / 2) ** 2)
return fibs[n]
# limit 100000
| 28.1 | 69 | 0.405694 | 52 | 281 | 2.192308 | 0.230769 | 0.210526 | 0.289474 | 0.105263 | 0.245614 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127072 | 0.355872 | 281 | 9 | 70 | 31.222222 | 0.502762 | 0.042705 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 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 |
0df7fa8f3982ea3308fba6618fab9189d95cc415 | 380 | py | Python | src/sima/post/safetyclass.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/post/safetyclass.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/post/safetyclass.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | # Generated with SafetyClass
#
from enum import Enum
from enum import auto
class SafetyClass(Enum):
""""""
LOW = auto()
NORMAL = auto()
HIGH = auto()
def label(self):
if self == SafetyClass.LOW:
return "Low"
if self == SafetyClass.NORMAL:
return "Normal"
... | 21.111111 | 38 | 0.557895 | 41 | 380 | 5.170732 | 0.390244 | 0.084906 | 0.240566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.334211 | 380 | 18 | 39 | 21.111111 | 0.837945 | 0.068421 | 0 | 0 | 1 | 0 | 0.037681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.769231 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
217711fec45d8b72a9afac237b28003f340fdc97 | 214 | py | Python | snake/myfirsttime/serializers.py | ClovisIRex/Snake-django | dc5484ee874d0157f4c14e37c835d0b6fe1cb40f | [
"MIT"
] | null | null | null | snake/myfirsttime/serializers.py | ClovisIRex/Snake-django | dc5484ee874d0157f4c14e37c835d0b6fe1cb40f | [
"MIT"
] | null | null | null | snake/myfirsttime/serializers.py | ClovisIRex/Snake-django | dc5484ee874d0157f4c14e37c835d0b6fe1cb40f | [
"MIT"
] | 1 | 2021-10-29T18:00:46.000Z | 2021-10-29T18:00:46.000Z | from rest_framework import serializers
from .models import Score
class ScoreSerializer(serializers.ModelSerializer):
class Meta:
model = Score
fields = ('player_name', 'player_score')
| 23.777778 | 51 | 0.700935 | 22 | 214 | 6.681818 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228972 | 214 | 9 | 52 | 23.777778 | 0.890909 | 0 | 0 | 0 | 0 | 0 | 0.106977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
21881b8505b1236d808649841dfc5d0c6f56a1a7 | 581 | py | Python | collector/lib/url_sources/s_pinboard.py | zackw/tbbscraper | a8da7640c1e146fb087ae7c3383526f155b4d39e | [
"Apache-2.0"
] | 17 | 2015-03-27T06:03:30.000Z | 2021-12-21T06:22:08.000Z | collector/lib/url_sources/s_pinboard.py | nissow/tbbscraper | a8da7640c1e146fb087ae7c3383526f155b4d39e | [
"Apache-2.0"
] | null | null | null | collector/lib/url_sources/s_pinboard.py | nissow/tbbscraper | a8da7640c1e146fb087ae7c3383526f155b4d39e | [
"Apache-2.0"
] | 16 | 2015-11-22T21:55:41.000Z | 2021-06-22T15:16:41.000Z | # Copyright © 2013, 2014 Zack Weinberg
# 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
# There is NO WARRANTY.
"""Import URLs from a Pinboard JSON ... | 32.277778 | 76 | 0.728055 | 90 | 581 | 4.666667 | 0.677778 | 0.071429 | 0.061905 | 0.07619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024641 | 0.16179 | 581 | 17 | 77 | 34.176471 | 0.835729 | 0.533563 | 0 | 0 | 0 | 0 | 0.243243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
21bad8c558852bcb990a54123a800b7d9fddb225 | 682 | py | Python | Turtle Drawing Shapes.py | HelloYeew/helloyeew-lab-computer-programming-i | 60b05072f32f23bab4a336b506ba7f66e52c045d | [
"MIT"
] | null | null | null | Turtle Drawing Shapes.py | HelloYeew/helloyeew-lab-computer-programming-i | 60b05072f32f23bab4a336b506ba7f66e52c045d | [
"MIT"
] | null | null | null | Turtle Drawing Shapes.py | HelloYeew/helloyeew-lab-computer-programming-i | 60b05072f32f23bab4a336b506ba7f66e52c045d | [
"MIT"
] | null | null | null | LAB = "turtlelab4.py"
import urllib.request
urllib.request.urlretrieve(f"http://elab.cpe.ku.ac.th/turtlelab/{LAB}",LAB)
from turtlelab4 import turtle,check
def draw_square(size):
turtle.forward(size)
turtle.right(90)
turtle.forward(size)
turtle.right(90)
turtle.forward(size)
turtle.right(90)
... | 20.058824 | 75 | 0.695015 | 96 | 682 | 4.895833 | 0.302083 | 0.191489 | 0.255319 | 0.342553 | 0.502128 | 0.502128 | 0.502128 | 0.502128 | 0.502128 | 0.465957 | 0 | 0.062718 | 0.158358 | 682 | 34 | 76 | 20.058824 | 0.756098 | 0.164223 | 0 | 0.714286 | 0 | 0 | 0.094139 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.095238 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
21d8da180cf0a87cbd8bef2d3eeb3cca6b87ec99 | 600 | py | Python | bbpyp/lexicomb/parser/unary_operator.py | BloggerBust/tag_script | 985a4b6b8c026431842d608ba8feafe8751dd425 | [
"Apache-2.0"
] | null | null | null | bbpyp/lexicomb/parser/unary_operator.py | BloggerBust/tag_script | 985a4b6b8c026431842d608ba8feafe8751dd425 | [
"Apache-2.0"
] | null | null | null | bbpyp/lexicomb/parser/unary_operator.py | BloggerBust/tag_script | 985a4b6b8c026431842d608ba8feafe8751dd425 | [
"Apache-2.0"
] | null | null | null | from bbpyp.lexicomb.parser.artifact import Artifact
class UnaryOperator(Artifact):
def __init__(self, operator, *args, **kwargs):
super().__init__(*args, **kwargs)
self._operator = operator
self._operand = None
def __call__(self, operand):
assert self._operand is None
... | 22.222222 | 72 | 0.636667 | 66 | 600 | 5.393939 | 0.393939 | 0.185393 | 0.106742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256667 | 600 | 26 | 73 | 23.076923 | 0.798206 | 0 | 0 | 0.111111 | 0 | 0 | 0.09 | 0.063333 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.277778 | false | 0 | 0.055556 | 0.166667 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
21dc24a14026a94b224097331ac091e99fd564f6 | 1,749 | py | Python | tests/core_test.py | mediaonegroup/WPWatcher | a8289af766e604e1c8f7d538513bf69dd74bfb50 | [
"Apache-2.0"
] | 27 | 2020-03-22T08:15:19.000Z | 2022-02-09T14:51:25.000Z | tests/core_test.py | mediaonegroup/WPWatcher | a8289af766e604e1c8f7d538513bf69dd74bfb50 | [
"Apache-2.0"
] | 38 | 2020-04-09T14:59:36.000Z | 2021-04-25T20:10:19.000Z | tests/core_test.py | mediaonegroup/WPWatcher | a8289af766e604e1c8f7d538513bf69dd74bfb50 | [
"Apache-2.0"
] | 11 | 2020-04-17T01:07:19.000Z | 2021-11-12T00:08:34.000Z | import unittest
import shlex
from datetime import timedelta
from . import DEFAULT_CONFIG
from wpwatcher.core import WPWatcher
from wpwatcher.config import Config
from wpwatcher.scan import Scanner
from wpwatcher.email import EmailSender
from wpwatcher.wpscan import WPScanWrapper
from wpwatcher.daemon import Daemon
fro... | 34.98 | 159 | 0.728416 | 215 | 1,749 | 5.827907 | 0.367442 | 0.072626 | 0.073424 | 0.092578 | 0.245012 | 0.217079 | 0.142059 | 0.142059 | 0.142059 | 0.105347 | 0 | 0.00211 | 0.186964 | 1,749 | 49 | 160 | 35.693878 | 0.879044 | 0.054889 | 0 | 0.121212 | 0 | 0 | 0.123711 | 0 | 0 | 0 | 0 | 0 | 0.212121 | 1 | 0.151515 | false | 0.060606 | 0.333333 | 0 | 0.515152 | 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 |
0dfb112428109c6407e7d42c422c841df79d76a9 | 147 | py | Python | tests/regression_tests/eigenvalue_genperbatch/test.py | janmalec/openmc | 4a4ac4c351d41fe153ca3341820cc507e484ce50 | [
"MIT"
] | 1 | 2019-04-10T12:41:16.000Z | 2019-04-10T12:41:16.000Z | tests/regression_tests/eigenvalue_genperbatch/test.py | janmalec/openmc | 4a4ac4c351d41fe153ca3341820cc507e484ce50 | [
"MIT"
] | 5 | 2015-03-11T02:28:25.000Z | 2018-11-07T14:10:28.000Z | tests/regression_tests/eigenvalue_genperbatch/test.py | janmalec/openmc | 4a4ac4c351d41fe153ca3341820cc507e484ce50 | [
"MIT"
] | null | null | null | from tests.testing_harness import TestHarness
def test_eigenvalue_genperbatch():
harness = TestHarness('statepoint.7.h5')
harness.main()
| 21 | 45 | 0.768707 | 17 | 147 | 6.470588 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015748 | 0.136054 | 147 | 6 | 46 | 24.5 | 0.850394 | 0 | 0 | 0 | 0 | 0 | 0.102041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
df068ae03885e75d7535202c761e8b4454425e66 | 175 | py | Python | test_pydub.py | gilmore-lab/pliers-play | 16fe85df6b188e6b40c1761f91abd607d0b97f45 | [
"MIT"
] | null | null | null | test_pydub.py | gilmore-lab/pliers-play | 16fe85df6b188e6b40c1761f91abd607d0b97f45 | [
"MIT"
] | null | null | null | test_pydub.py | gilmore-lab/pliers-play | 16fe85df6b188e6b40c1761f91abd607d0b97f45 | [
"MIT"
] | null | null | null | # test pydub conversion
from pydub import AudioSegment
snd = 'snd/peep-I-hap-tlk.mp3'
song = AudioSegment.from_mp3(snd)
song.export("snd/peep-I-hap-tlk.wav", format="wav") | 19.444444 | 51 | 0.737143 | 29 | 175 | 4.413793 | 0.551724 | 0.109375 | 0.125 | 0.171875 | 0.21875 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 0.108571 | 175 | 9 | 51 | 19.444444 | 0.807692 | 0.12 | 0 | 0 | 0 | 0 | 0.30719 | 0.287582 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
df1a1f7fa936c5ba8a8a1f770f36528036750ac5 | 720 | py | Python | collective_blog/settings/__init__.py | AmatanHead/collective-blog | 9bf040faac43feae08b33900e30bf7d17b817ae4 | [
"MIT"
] | null | null | null | collective_blog/settings/__init__.py | AmatanHead/collective-blog | 9bf040faac43feae08b33900e30bf7d17b817ae4 | [
"MIT"
] | 4 | 2016-09-22T06:37:20.000Z | 2016-09-22T16:49:48.000Z | collective_blog/settings/__init__.py | AmatanHead/collective-blog | 9bf040faac43feae08b33900e30bf7d17b817ae4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Django settings for collective_blog project
Generated by 'django-admin startproject' using Django 1.9.1.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/r... | 27.692308 | 64 | 0.680556 | 102 | 720 | 4.764706 | 0.578431 | 0.115226 | 0.067901 | 0.092593 | 0.131687 | 0.131687 | 0.131687 | 0.131687 | 0 | 0 | 0 | 0.017513 | 0.206944 | 720 | 25 | 65 | 28.8 | 0.833625 | 0.455556 | 0 | 0 | 1 | 0 | 0.307292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.363636 | 0 | 0.363636 | 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 |
df6275c47f542f9b3995355d55489046f0a7a80b | 4,858 | py | Python | schablonesk/ast.py | ThomasBollmeier/schablonesk | c2978601dd02b7f2c2a182ff0d6851d4eaed2d49 | [
"MIT"
] | null | null | null | schablonesk/ast.py | ThomasBollmeier/schablonesk | c2978601dd02b7f2c2a182ff0d6851d4eaed2d49 | [
"MIT"
] | null | null | null | schablonesk/ast.py | ThomasBollmeier/schablonesk | c2978601dd02b7f2c2a182ff0d6851d4eaed2d49 | [
"MIT"
] | null | null | null | class Template(object):
def __init__(self, usages, snippets, blocks):
self.usages = usages
self.snippets = snippets
self.blocks = blocks
def accept(self, visitor):
visitor.visit_template(self)
class Text(object):
def __init__(self, text_token):
self._token = text... | 19.747967 | 86 | 0.640387 | 593 | 4,858 | 4.919056 | 0.134907 | 0.071306 | 0.07542 | 0.081591 | 0.33459 | 0.265341 | 0.164553 | 0.159753 | 0.132328 | 0.069249 | 0 | 0.000558 | 0.261836 | 4,858 | 245 | 87 | 19.828571 | 0.812883 | 0.003499 | 0 | 0.362416 | 0 | 0 | 0.005786 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375839 | false | 0.087248 | 0 | 0.060403 | 0.590604 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
df6928e05e07bfd264f95dcd6e85783fa9aa39ad | 828 | py | Python | setup.py | nikitanovosibirsk/switch_case | 67a106c9db169008de03db381332b55cfee7991e | [
"MIT"
] | 6 | 2019-09-13T17:19:49.000Z | 2021-01-25T21:49:39.000Z | setup.py | nikitanovosibirsk/switch_case | 67a106c9db169008de03db381332b55cfee7991e | [
"MIT"
] | 2 | 2020-04-13T08:00:09.000Z | 2021-10-16T13:38:14.000Z | setup.py | nikitanovosibirsk/switch_case | 67a106c9db169008de03db381332b55cfee7991e | [
"MIT"
] | 1 | 2021-01-25T21:49:42.000Z | 2021-01-25T21:49:42.000Z | from setuptools import find_packages, setup
setup(
name="switch_case",
version="1.5",
author="Nikita Tsvetkov",
author_email="nikitanovosibirsk@yandex.com",
python_requires=">=3.6",
description="Switch-case statement for Python",
long_description=open("README.md").read(),
long_descripti... | 33.12 | 59 | 0.641304 | 89 | 828 | 5.853933 | 0.58427 | 0.182342 | 0.239923 | 0.24952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022936 | 0.210145 | 828 | 24 | 60 | 34.5 | 0.7737 | 0 | 0 | 0 | 0 | 0 | 0.509662 | 0.033816 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.043478 | 0 | 0.043478 | 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 |
df72bbc3bb7e498daff48dd0c5415775b33b99ae | 132 | py | Python | raspberryturk/core/vision/constants.py | Dzhuks/raspberryturk | bb7fa25d70f8c1291997332d12fe06d19d957a4e | [
"MIT"
] | null | null | null | raspberryturk/core/vision/constants.py | Dzhuks/raspberryturk | bb7fa25d70f8c1291997332d12fe06d19d957a4e | [
"MIT"
] | null | null | null | raspberryturk/core/vision/constants.py | Dzhuks/raspberryturk | bb7fa25d70f8c1291997332d12fe06d19d957a4e | [
"MIT"
] | null | null | null | ROWS = COLUMNS = 8 # количество столбцов и строк
SQUARE_SIZE = 60 # размер клетки
BOARD_SIZE = SQUARE_SIZE * ROWS # размер доски
| 33 | 49 | 0.734848 | 19 | 132 | 4.947368 | 0.736842 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.204545 | 132 | 3 | 50 | 44 | 0.866667 | 0.409091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
df757e4687daf0050e15461032bcc9cf82572234 | 18,123 | py | Python | BWSTableEditors.py | MinN-11/berwick-saga-editor-randomizer | afa641b99d0f95c3258c7e40878d50b9f5f24f9c | [
"MIT"
] | 3 | 2021-02-14T14:51:35.000Z | 2021-04-03T21:31:00.000Z | BWSTableEditors.py | MinN-11/berwick-saga-editor-randomizer | afa641b99d0f95c3258c7e40878d50b9f5f24f9c | [
"MIT"
] | null | null | null | BWSTableEditors.py | MinN-11/berwick-saga-editor-randomizer | afa641b99d0f95c3258c7e40878d50b9f5f24f9c | [
"MIT"
] | null | null | null | from BWSDefinitions import *
LanguageUsed = 1 # 0 is japanese, 1 is translation patch, globals are bad I know
def SetLanguageUsed(v):
global LanguageUsed
LanguageUsed = v
class UnknownAttributeError(Exception):
pass
class UnknownCommandError(Exception):
pass
class UnknownItemError(Exception):... | 46.588689 | 150 | 0.594272 | 2,448 | 18,123 | 4.242647 | 0.095588 | 0.065473 | 0.126035 | 0.194781 | 0.803197 | 0.749085 | 0.659157 | 0.5803 | 0.530137 | 0.452629 | 0 | 0.05143 | 0.272582 | 18,123 | 388 | 151 | 46.708763 | 0.736403 | 0.01076 | 0 | 0.358209 | 0 | 0 | 0.04146 | 0 | 0 | 0 | 0.004743 | 0.002577 | 0 | 1 | 0.065672 | false | 0.014925 | 0.002985 | 0 | 0.101493 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
df8ac3932256a2e1c64b765c682a70cbf4a75951 | 1,649 | py | Python | everest/cascade/test.py | rsbyrne/everest | 1ec06301cdeb7c2b7d85daf6075d996c5529247e | [
"MIT"
] | 2 | 2020-12-17T02:27:28.000Z | 2020-12-17T23:50:13.000Z | everest/cascade/test.py | rsbyrne/everest | 1ec06301cdeb7c2b7d85daf6075d996c5529247e | [
"MIT"
] | 1 | 2020-12-07T10:14:45.000Z | 2020-12-07T10:14:45.000Z | everest/cascade/test.py | rsbyrne/everest | 1ec06301cdeb7c2b7d85daf6075d996c5529247e | [
"MIT"
] | 1 | 2020-10-22T11:16:50.000Z | 2020-10-22T11:16:50.000Z | ###############################################################################
''''''
###############################################################################
# import unittest
def testfunc(a, b,
c,
d=4, # another comment
/,
e: int = 5,
# stuff
f=6,
... | 26.596774 | 79 | 0.346877 | 144 | 1,649 | 3.909722 | 0.5 | 0.133215 | 0.186501 | 0.184725 | 0.385435 | 0.230906 | 0.124334 | 0 | 0 | 0 | 0 | 0.033119 | 0.340813 | 1,649 | 61 | 80 | 27.032787 | 0.484821 | 0.395998 | 0 | 0 | 0 | 0 | 0.023148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0 | 0 | 0.037037 | 0.037037 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
10d164dfb89f97ef60e2658dd260f386d58d79e4 | 146 | py | Python | app/services/authentication/oauth/google/__init__.py | maxzhenzhera/my_vocab_backend | 2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1 | [
"MIT"
] | null | null | null | app/services/authentication/oauth/google/__init__.py | maxzhenzhera/my_vocab_backend | 2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1 | [
"MIT"
] | null | null | null | app/services/authentication/oauth/google/__init__.py | maxzhenzhera/my_vocab_backend | 2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1 | [
"MIT"
] | null | null | null | from .authorizer import GoogleAuthorizer
from .service import GoogleOAuthService
__all__ = [
'GoogleAuthorizer',
'GoogleOAuthService'
]
| 16.222222 | 40 | 0.767123 | 11 | 146 | 9.818182 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164384 | 146 | 8 | 41 | 18.25 | 0.885246 | 0 | 0 | 0 | 0 | 0 | 0.232877 | 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 |
10d361aadaec2d779534c8108ff4c3c5ea8b4d03 | 214 | py | Python | netmiko/connect.py | sambyers/netauto_learning | 22c1049bf86e188f774f1c977823abea2bb3abfe | [
"MIT"
] | null | null | null | netmiko/connect.py | sambyers/netauto_learning | 22c1049bf86e188f774f1c977823abea2bb3abfe | [
"MIT"
] | null | null | null | netmiko/connect.py | sambyers/netauto_learning | 22c1049bf86e188f774f1c977823abea2bb3abfe | [
"MIT"
] | null | null | null | from netmiko import ConnectHandler
from config import hosts
for host in hosts:
device = ConnectHandler(**host)
print(f'Connected to {host["host"]} successful: {device.is_alive()}')
device.disconnect() | 26.75 | 73 | 0.724299 | 27 | 214 | 5.703704 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158879 | 214 | 8 | 74 | 26.75 | 0.855556 | 0 | 0 | 0 | 0 | 0 | 0.274419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 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 |
10f8f5e28a258a56f84a16523c392739bcfc6f5d | 1,539 | py | Python | 10-19/15. record_calls/record_calls.py | dcragusa/PythonMorsels | 5f75b51a68769036e4004e9ccdada6b220124ab6 | [
"MIT"
] | 1 | 2021-11-30T05:03:24.000Z | 2021-11-30T05:03:24.000Z | 10-19/15. record_calls/record_calls.py | dcragusa/PythonMorsels | 5f75b51a68769036e4004e9ccdada6b220124ab6 | [
"MIT"
] | null | null | null | 10-19/15. record_calls/record_calls.py | dcragusa/PythonMorsels | 5f75b51a68769036e4004e9ccdada6b220124ab6 | [
"MIT"
] | 2 | 2021-04-18T05:26:43.000Z | 2021-11-28T18:46:43.000Z | import functools
# def record_calls(func):
#
# def wrapped(*args, **kwargs):
# wrapped.call_count += 1
# return func(*args, **kwargs)
#
# wrapped.call_count = 0
# return wrapped
# def record_calls(func):
#
# @functools.wraps(func)
# def wrapped(*args, **kwargs):
# wrapped.c... | 24.046875 | 105 | 0.603639 | 181 | 1,539 | 4.966851 | 0.160221 | 0.166852 | 0.151279 | 0.163515 | 0.769744 | 0.714127 | 0.714127 | 0.611791 | 0.400445 | 0.400445 | 0 | 0.007092 | 0.267057 | 1,539 | 63 | 106 | 24.428571 | 0.789894 | 0.480832 | 0 | 0 | 0 | 0 | 0.005229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.05 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
10fcedb4c8059a0af5ebf5ebf30d0d30653fb086 | 1,101 | py | Python | am232x/exceptions.py | ktooi/pyam232x | 92eec41d97ec1e5c4257444e90fe0acf728dd9bc | [
"MIT"
] | null | null | null | am232x/exceptions.py | ktooi/pyam232x | 92eec41d97ec1e5c4257444e90fe0acf728dd9bc | [
"MIT"
] | 1 | 2021-02-13T04:09:38.000Z | 2021-02-13T04:09:38.000Z | am232x/exceptions.py | ktooi/pyam232x | 92eec41d97ec1e5c4257444e90fe0acf728dd9bc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
class AM232xError(Exception):
""" AM232x とのデータ送受信において、何らかのエラーが発生したことを示す Exception.
am232x モジュールが投げる例外の基底クラスとして利用する。
"""
class ReceiveAM232xDataError(AM232xError):
""" AM232x からデータを受信した際に、エラーが発生したことを示すエラーコードが含まれていたことを示す Exception.
"""
def __init__(self, error_code, chi... | 32.382353 | 101 | 0.681199 | 131 | 1,101 | 5.29771 | 0.274809 | 0.138329 | 0.069164 | 0.057637 | 0.308357 | 0.256484 | 0.18732 | 0.10951 | 0.10951 | 0 | 0 | 0.042286 | 0.205268 | 1,101 | 33 | 102 | 33.363636 | 0.750857 | 0.217075 | 0 | 0.25 | 0 | 0.0625 | 0.172662 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.5625 | 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 |
802bc087d127ca8d5be572f177541449d37d6efc | 1,357 | py | Python | atomic_reactor/utils/imageutil.py | ben-alkov/atomic-reactor | be6b626b7d822f77999f245193fefcc00c501ca9 | [
"BSD-3-Clause"
] | 16 | 2019-07-04T16:00:13.000Z | 2022-01-28T19:51:58.000Z | atomic_reactor/utils/imageutil.py | containerbuildsystem/atomic-reactor | 5734a189fc79245d99610f3a81b3aee9913db355 | [
"BSD-3-Clause"
] | 577 | 2019-06-03T07:53:16.000Z | 2022-03-31T04:01:23.000Z | atomic_reactor/utils/imageutil.py | ben-alkov/atomic-reactor | be6b626b7d822f77999f245193fefcc00c501ca9 | [
"BSD-3-Clause"
] | 17 | 2020-02-21T13:30:06.000Z | 2022-02-15T10:42:32.000Z | """
Copyright (c) 2021 Red Hat, Inc
All rights reserved.
This software may be modified and distributed under the terms
of the BSD license. See the LICENSE file for details.
"""
# OSBS2 TBD
def get_inspect_for_image(image):
# util.get_inspect_for_image(image, registry, insecure=False, dockercfg_path=None)
# o... | 25.12963 | 94 | 0.721444 | 190 | 1,357 | 4.921053 | 0.4 | 0.085562 | 0.069519 | 0.096257 | 0.33262 | 0.210695 | 0.072727 | 0.072727 | 0 | 0 | 0 | 0.004541 | 0.188651 | 1,357 | 53 | 95 | 25.603774 | 0.844687 | 0.678703 | 0 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
802d18b8c7aead93622047d9327b29be53f9a315 | 1,417 | py | Python | metadata_replace/test_mrepr.py | Preocts/python_play_carton | 071b19a6b5a6420192cd262195f95acfd787b476 | [
"MIT"
] | null | null | null | metadata_replace/test_mrepr.py | Preocts/python_play_carton | 071b19a6b5a6420192cd262195f95acfd787b476 | [
"MIT"
] | null | null | null | metadata_replace/test_mrepr.py | Preocts/python_play_carton | 071b19a6b5a6420192cd262195f95acfd787b476 | [
"MIT"
] | null | null | null | from typing import Dict
import pytest
import mrepr
@pytest.mark.parametrize(
("in_", "keypairs", "expected"),
(
("{{metatag}}", {"metatag": "replaced"}, "replaced"),
("{{metaTag }}", {"metatag": "replaced"}, "replaced"),
("{{ metaTag}}", {"metatag": "replaced"}, "replaced"),
... | 32.204545 | 85 | 0.485533 | 104 | 1,417 | 6.576923 | 0.240385 | 0.263158 | 0.225146 | 0.307018 | 0.520468 | 0.47076 | 0.47076 | 0.47076 | 0.47076 | 0.307018 | 0 | 0 | 0.301341 | 1,417 | 43 | 86 | 32.953488 | 0.690909 | 0.011997 | 0 | 0.526316 | 0 | 0 | 0.443329 | 0.016499 | 0 | 0 | 0 | 0 | 0.026316 | 1 | 0.026316 | false | 0 | 0.078947 | 0 | 0.105263 | 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 |
802eab523da2956171315c1563d800bf89cc589b | 1,144 | py | Python | Motor.py | issa-clown/DonquiBeast | 96eb9714deb1dc4be1fc8024595e7d66f47f794c | [
"Apache-2.0"
] | null | null | null | Motor.py | issa-clown/DonquiBeast | 96eb9714deb1dc4be1fc8024595e7d66f47f794c | [
"Apache-2.0"
] | null | null | null | Motor.py | issa-clown/DonquiBeast | 96eb9714deb1dc4be1fc8024595e7d66f47f794c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import subprocess
import time
def control(text):
if (text == 'stop'):
# モータ停止
subprocess.call("./motor 0", shell = True)
if (text == 'go forward' or text == 'forward' or text == 'front' ):
# 前進
subprocess.call("./motor 1", shell = True)
# time.sleep... | 29.333333 | 71 | 0.523601 | 137 | 1,144 | 4.372263 | 0.29927 | 0.233723 | 0.317195 | 0.166945 | 0.495826 | 0.495826 | 0.447412 | 0.447412 | 0.447412 | 0.447412 | 0 | 0.01788 | 0.315559 | 1,144 | 38 | 72 | 30.105263 | 0.747126 | 0.288462 | 0 | 0.238095 | 0 | 0 | 0.166458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.095238 | 0 | 0.428571 | 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 |
802f2d4a7e2addc8e42b71b2a05961f53fbc8c58 | 638 | py | Python | src/chatbot/server/auth.py | c4pt000/Sophia-bot | 91c85d2bb58cf0cea54dacb3958ce2b966a40616 | [
"MIT"
] | 1 | 2022-01-23T04:11:39.000Z | 2022-01-23T04:11:39.000Z | src/chatbot/server/auth.py | c4pt000/Sophia-bot | 91c85d2bb58cf0cea54dacb3958ce2b966a40616 | [
"MIT"
] | null | null | null | src/chatbot/server/auth.py | c4pt000/Sophia-bot | 91c85d2bb58cf0cea54dacb3958ce2b966a40616 | [
"MIT"
] | null | null | null | from functools import wraps
from flask import request, Response
import json
from config import HR_CHATBOT_AUTHKEY
json_encode = json.JSONEncoder().encode
def check_auth(auth):
return auth == HR_CHATBOT_AUTHKEY
def authenticate():
return Response(json_encode({'ret': 401, 'response': {'text': 'Could not ver... | 23.62963 | 100 | 0.666144 | 80 | 638 | 5.2 | 0.4625 | 0.043269 | 0.076923 | 0.091346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006061 | 0.224138 | 638 | 26 | 101 | 24.538462 | 0.834343 | 0 | 0 | 0 | 0 | 0 | 0.098746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.722222 | 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 |
802fb647b144cf6f936d7bf42ab325ca99733f29 | 238 | py | Python | setup.py | d0d0d0/OpenTweet | 2aad3a72135c45d2d3e5e7c5eb6cb79e8d2a4cbc | [
"MIT"
] | null | null | null | setup.py | d0d0d0/OpenTweet | 2aad3a72135c45d2d3e5e7c5eb6cb79e8d2a4cbc | [
"MIT"
] | null | null | null | setup.py | d0d0d0/OpenTweet | 2aad3a72135c45d2d3e5e7c5eb6cb79e8d2a4cbc | [
"MIT"
] | null | null | null | from distutils.core import setup
import py2exe, sys, os
## Generate executable for windows
sys.argv.append('py2exe')
setup(
options = {'py2exe': {'bundle_files': 1}},
windows = [{'script': "geotweet.py"}],
zipfile = None,
) | 19.833333 | 46 | 0.659664 | 29 | 238 | 5.37931 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.176471 | 238 | 12 | 47 | 19.833333 | 0.77551 | 0.130252 | 0 | 0 | 1 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
802ff7600c7c6ab00af051f41a438e255c33c167 | 743 | py | Python | pygw2/core/models/map.py | Natsku123/pygw2 | c8e579c07f4d33c7afadc8dee510be0a5e71d16e | [
"MIT"
] | 1 | 2020-01-19T21:27:53.000Z | 2020-01-19T21:27:53.000Z | pygw2/core/models/map.py | Natsku123/pygw2 | c8e579c07f4d33c7afadc8dee510be0a5e71d16e | [
"MIT"
] | 1 | 2021-12-09T21:18:13.000Z | 2021-12-09T21:18:13.000Z | pygw2/core/models/map.py | Natsku123/pygw2 | c8e579c07f4d33c7afadc8dee510be0a5e71d16e | [
"MIT"
] | null | null | null | from typing import List, Optional
from pygw2.utils import BaseModel
class Continent(BaseModel):
id: int
name: str
continent_dims: List[int]
min_zoom: int
max_zoom: int
floors: List[int] # TODO parse subendpoints?
class MapSector(BaseModel):
id: int
name: str
level: int
coor... | 20.081081 | 49 | 0.663526 | 102 | 743 | 4.705882 | 0.333333 | 0.102083 | 0.0875 | 0.1125 | 0.214583 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001792 | 0.248991 | 743 | 36 | 50 | 20.638889 | 0.858423 | 0.111709 | 0 | 0.275862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0 | 1 | 0 | true | 0 | 0.068966 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
80478f1a366bcb84b0a8e74ec4f2aaa35099a39f | 2,743 | py | Python | waltz-test/src/main/python/waltz_ducktape/services/waltz_server.py | zzlbuaa/waltz | 2c9e904cf2d33c1b52d1b8b5fbdf8ed0d9ac9a35 | [
"Apache-2.0"
] | null | null | null | waltz-test/src/main/python/waltz_ducktape/services/waltz_server.py | zzlbuaa/waltz | 2c9e904cf2d33c1b52d1b8b5fbdf8ed0d9ac9a35 | [
"Apache-2.0"
] | null | null | null | waltz-test/src/main/python/waltz_ducktape/services/waltz_server.py | zzlbuaa/waltz | 2c9e904cf2d33c1b52d1b8b5fbdf8ed0d9ac9a35 | [
"Apache-2.0"
] | null | null | null | from waltz_ducktape.services.base_waltz_service import BaseWaltzService
class WaltzServerService(BaseWaltzService):
"""
WaltzStorageService is the service class for Waltz Storage.
"""
def __init__(self, context, cluster_spec, zk, cluster_root, cluster_name, cluster_num_partitions, port, jetty_port,
... | 40.940299 | 131 | 0.664965 | 336 | 2,743 | 5.133929 | 0.241071 | 0.070145 | 0.04058 | 0.049275 | 0.264348 | 0.115942 | 0.052174 | 0.052174 | 0.052174 | 0.052174 | 0 | 0.000982 | 0.257747 | 2,743 | 66 | 132 | 41.560606 | 0.846267 | 0.207437 | 0 | 0.055556 | 0 | 0 | 0.128544 | 0.014663 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0.027778 | 0.25 | 0.583333 | 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 |
80486631d37c7c36a65b158210c000ba23b3923f | 111 | py | Python | python/power_modpower.py | avishshah11/Hackerrank_python | 7a7b8005ba2c8b03fb63d727496deb4175f860f5 | [
"MIT"
] | null | null | null | python/power_modpower.py | avishshah11/Hackerrank_python | 7a7b8005ba2c8b03fb63d727496deb4175f860f5 | [
"MIT"
] | null | null | null | python/power_modpower.py | avishshah11/Hackerrank_python | 7a7b8005ba2c8b03fb63d727496deb4175f860f5 | [
"MIT"
] | null | null | null | import math
a = int(input())
b = int(input())
m = int(input())
x = pow(a,b)
print(x)
y = pow(a,b,m)
print(y)
| 11.1 | 16 | 0.558559 | 24 | 111 | 2.583333 | 0.458333 | 0.387097 | 0.16129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189189 | 111 | 9 | 17 | 12.333333 | 0.688889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.25 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.