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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aa4ef2d9ea34cac394dfd068462eacae94338cce | 8,849 | py | Python | devilry/devilry_examiner/views/assignment/bulkoperations/bulk_feedback.py | devilry/devilry-django | 9ae28e462dfa4cfee966ebacbca04ade9627e715 | [
"BSD-3-Clause"
] | 29 | 2015-01-18T22:56:23.000Z | 2020-11-10T21:28:27.000Z | devilry/devilry_examiner/views/assignment/bulkoperations/bulk_feedback.py | devilry/devilry-django | 9ae28e462dfa4cfee966ebacbca04ade9627e715 | [
"BSD-3-Clause"
] | 786 | 2015-01-06T16:10:18.000Z | 2022-03-16T11:10:50.000Z | devilry/devilry_examiner/views/assignment/bulkoperations/bulk_feedback.py | devilry/devilry-django | 9ae28e462dfa4cfee966ebacbca04ade9627e715 | [
"BSD-3-Clause"
] | 15 | 2015-04-06T06:18:43.000Z | 2021-02-24T12:28:30.000Z |
from django import forms
from django.contrib import messages
from django.db import models
from django.db import transaction
from django.http import HttpResponseRedirect, Http404
from django.utils import timezone
from django.utils.translation import gettext_lazy, pgettext_lazy
from django.views.generic import View
im... | 40.591743 | 111 | 0.711154 | 974 | 8,849 | 6.201232 | 0.235113 | 0.015894 | 0.015066 | 0.017384 | 0.34702 | 0.317715 | 0.273841 | 0.231954 | 0.22798 | 0.205464 | 0 | 0.001441 | 0.215731 | 8,849 | 217 | 112 | 40.778802 | 0.868876 | 0.228274 | 0 | 0.158333 | 0 | 0 | 0.071254 | 0.029969 | 0 | 0 | 0 | 0 | 0 | 1 | 0.141667 | false | 0.116667 | 0.125 | 0.066667 | 0.508333 | 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 | 0 | 1 | 0 | 0 | 2 |
aa819751141039d158103e1e22f76244cbd9c7bf | 874 | py | Python | configs/_base_/models/x3d.py | ptoupas/mmaction2 | 1e1911295b63cffeba4c6f4809cb74d291c4505b | [
"Apache-2.0"
] | null | null | null | configs/_base_/models/x3d.py | ptoupas/mmaction2 | 1e1911295b63cffeba4c6f4809cb74d291c4505b | [
"Apache-2.0"
] | null | null | null | configs/_base_/models/x3d.py | ptoupas/mmaction2 | 1e1911295b63cffeba4c6f4809cb74d291c4505b | [
"Apache-2.0"
] | null | null | null | # model settings
model = dict(
type='Recognizer3D',
backbone=dict(type='X3D', frozen_stages = -1, gamma_w=1, gamma_b=2.25, gamma_d=2.2),
cls_head=dict(
type='X3DHead',
in_channels=432,
num_classes=400,
multi_class=False,
spatial_type='avg',
dropout_ratio=0.7,
... | 29.133333 | 88 | 0.606407 | 118 | 874 | 4.262712 | 0.415254 | 0.095427 | 0.05169 | 0.099404 | 0.842942 | 0.842942 | 0.675944 | 0.548708 | 0.548708 | 0.548708 | 0 | 0.053681 | 0.254005 | 874 | 29 | 89 | 30.137931 | 0.717791 | 0.512586 | 0 | 0 | 0 | 0 | 0.070905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
aa97298a7164be0094cd007d6b0ccc9b510f720f | 329 | py | Python | test.py | sxhfut/Kashgari | efc9510ed53f5bb78183e66d96d57a55cc290a91 | [
"MIT"
] | 1 | 2019-01-26T15:18:07.000Z | 2019-01-26T15:18:07.000Z | test.py | sxhfut/Kashgari | efc9510ed53f5bb78183e66d96d57a55cc290a91 | [
"MIT"
] | null | null | null | test.py | sxhfut/Kashgari | efc9510ed53f5bb78183e66d96d57a55cc290a91 | [
"MIT"
] | null | null | null | # encoding: utf-8
"""
@author: BrikerMan
@contact: eliyar917@gmail.com
@blog: https://eliyar.biz
@version: 1.0
@license: Apache Licence
@file: test.py.py
@time: 2019-01-25 14:43
"""
import unittest
from tests import *
from kashgari.utils.logger import init_logger
init_logger()
if __name__ == '__main__':
unittes... | 15.666667 | 45 | 0.717325 | 48 | 329 | 4.708333 | 0.8125 | 0.088496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06338 | 0.136778 | 329 | 20 | 46 | 16.45 | 0.732394 | 0.525836 | 0 | 0 | 0 | 0 | 0.054422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 0 | 0 | 2 |
aa9a7b51d2199fe8ca1968592f12f16f55f4da67 | 536 | py | Python | crossasr/text.py | mhilmiasyrofi/CrossASRv2 | 202b9a7caadf5f8d6f115f776526960af35a73a3 | [
"MIT"
] | 3 | 2021-05-12T02:48:06.000Z | 2021-12-21T14:45:56.000Z | crossasr/text.py | mhilmiasyrofi/CrossASRv2 | 202b9a7caadf5f8d6f115f776526960af35a73a3 | [
"MIT"
] | null | null | null | crossasr/text.py | mhilmiasyrofi/CrossASRv2 | 202b9a7caadf5f8d6f115f776526960af35a73a3 | [
"MIT"
] | 1 | 2021-06-14T11:15:35.000Z | 2021-06-14T11:15:35.000Z | import functools
@functools.total_ordering
class Text:
def __init__(self, id: int, text: str):
self.id = id
self.text = text
def __eq__(self, other):
return self.id == other.id and self.text == other.text
def __lt__(self, other):
return (self.id, self.text) < (other.id, ot... | 20.615385 | 62 | 0.587687 | 75 | 536 | 4.026667 | 0.28 | 0.139073 | 0.119205 | 0.125828 | 0.139073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.294776 | 536 | 25 | 63 | 21.44 | 0.798942 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.388889 | false | 0 | 0.055556 | 0.222222 | 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 | 0 | 0 | 0 | 2 |
aa9c683934f9013e24a201545cdec92668339683 | 912 | py | Python | ansibler/exceptions/ansibler.py | ProfessorManhattan/ansibler | ca3cbd8af974b59a70e6c46b4ee7f97f68158031 | [
"MIT"
] | null | null | null | ansibler/exceptions/ansibler.py | ProfessorManhattan/ansibler | ca3cbd8af974b59a70e6c46b4ee7f97f68158031 | [
"MIT"
] | null | null | null | ansibler/exceptions/ansibler.py | ProfessorManhattan/ansibler | ca3cbd8af974b59a70e6c46b4ee7f97f68158031 | [
"MIT"
] | null | null | null | class BaseAnsiblerException(Exception):
message = "Error"
def __init__(self, *args, **kwargs) -> None:
super().__init__(*args)
self.__class__.message = kwargs.get("message", self.message)
def __str__(self) -> str:
return self.__class__.message
class CommandNotFound(BaseAnsiblerEx... | 24 | 68 | 0.737939 | 86 | 912 | 7.593023 | 0.5 | 0.300153 | 0.049005 | 0.11026 | 0.125574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169956 | 912 | 37 | 69 | 24.648649 | 0.862616 | 0 | 0 | 0 | 0 | 0 | 0.188596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0 | 0.047619 | 0.904762 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
aaaa178c8c04cddbd491ee6f45b2a2ede27a0ba8 | 1,131 | py | Python | src/commons/helpers.py | thierrydecker/nfpy | bda460feb07719e66dc25c763172fc380559e022 | [
"Apache-2.0"
] | null | null | null | src/commons/helpers.py | thierrydecker/nfpy | bda460feb07719e66dc25c763172fc380559e022 | [
"Apache-2.0"
] | null | null | null | src/commons/helpers.py | thierrydecker/nfpy | bda460feb07719e66dc25c763172fc380559e022 | [
"Apache-2.0"
] | null | null | null | """helpers module
"""
import json
import pcap
import yaml
def get_adapters_names():
"""Finds all adapters on the system
:return: A list of the network adapters available on the system
"""
return pcap.findalldevs()
def config_loader_yaml(config_name):
"""Loads a .yml configuration file
:p... | 28.275 | 109 | 0.713528 | 162 | 1,131 | 4.882716 | 0.376543 | 0.037927 | 0.068268 | 0.079646 | 0.235145 | 0.108723 | 0.108723 | 0.108723 | 0 | 0 | 0 | 0 | 0.209549 | 1,131 | 39 | 110 | 29 | 0.884787 | 0.576481 | 0 | 0 | 0 | 0 | 0.002463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.272727 | 0 | 0.727273 | 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 | 0 | 1 | 0 | 0 | 2 |
aaad78389190fcfac231fdc6ed3013707ef9bc63 | 488 | py | Python | Daily-Coding-Problem/Problem4/Problem4.py | grisreyesrios/Solutions--Daily-Coding-Problems | beb977e6666800b2158e43a649ed197ad2f79d0a | [
"MIT"
] | 1 | 2019-02-14T00:35:26.000Z | 2019-02-14T00:35:26.000Z | Daily-Coding-Problem/Problem4/Problem4.py | grisreyesrios/Solutions--Daily-Coding-Problems | beb977e6666800b2158e43a649ed197ad2f79d0a | [
"MIT"
] | null | null | null | Daily-Coding-Problem/Problem4/Problem4.py | grisreyesrios/Solutions--Daily-Coding-Problems | beb977e6666800b2158e43a649ed197ad2f79d0a | [
"MIT"
] | 1 | 2021-10-18T00:51:51.000Z | 2021-10-18T00:51:51.000Z | # Python programming that returns the weight of the maximum weight path in a triangle
def triangle_max_weight(arrs, level=0, index=0):
if level == len(arrs) - 1:
return arrs[level][index]
else:
return arrs[level][index] + max(
triangle_max_weight(arrs, level + 1, index), triangle_ma... | 34.857143 | 104 | 0.637295 | 70 | 488 | 4.214286 | 0.457143 | 0.152542 | 0.230508 | 0.213559 | 0.305085 | 0.216949 | 0.216949 | 0 | 0 | 0 | 0 | 0.037534 | 0.235656 | 488 | 13 | 105 | 37.538462 | 0.753351 | 0.202869 | 0 | 0 | 0 | 0 | 0.020725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.3 | 0.1 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
aabcc6bd93dd565fe8912f5540d060fac3483c64 | 2,246 | py | Python | odoo_actions/odoo_client/common.py | catalyst-cloud/adjutant-odoo | 6d1e473710e1757b92b4344d65d5bd106677fe36 | [
"Apache-2.0"
] | 1 | 2020-05-01T18:28:39.000Z | 2020-05-01T18:28:39.000Z | odoo_actions/odoo_client/common.py | catalyst-cloud/adjutant-odoo | 6d1e473710e1757b92b4344d65d5bd106677fe36 | [
"Apache-2.0"
] | null | null | null | odoo_actions/odoo_client/common.py | catalyst-cloud/adjutant-odoo | 6d1e473710e1757b92b4344d65d5bd106677fe36 | [
"Apache-2.0"
] | 2 | 2018-09-20T05:01:34.000Z | 2020-10-17T04:31:47.000Z | from collections import Iterable
class BaseManager(object):
# you must initialise self.resource_env in __init__
fields = None
class Meta:
abstract = True
def _is_iterable(self, ids):
if isinstance(ids, str) or not isinstance(ids, Iterable):
ids = [ids, ]
return ... | 29.168831 | 66 | 0.580142 | 304 | 2,246 | 4.144737 | 0.273026 | 0.050794 | 0.063492 | 0.083333 | 0.189683 | 0.189683 | 0.189683 | 0.189683 | 0.189683 | 0.189683 | 0 | 0.007658 | 0.302315 | 2,246 | 76 | 67 | 29.552632 | 0.796426 | 0.454141 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.038462 | 0 | 0.692308 | 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 | 0 | 1 | 0 | 0 | 2 |
aac63a5d8e54599f688823a384ac72b4a3f7a76c | 233 | py | Python | app/helpers/header_helpers.py | petechd/eq-questionnaire-runner | 1c5b182a7f8bc878cfdd767ae080410fa679abd6 | [
"MIT"
] | 3 | 2020-09-28T13:21:21.000Z | 2021-05-05T14:14:51.000Z | app/helpers/header_helpers.py | petechd/eq-questionnaire-runner | 1c5b182a7f8bc878cfdd767ae080410fa679abd6 | [
"MIT"
] | 402 | 2019-11-06T17:23:03.000Z | 2022-03-31T16:03:35.000Z | app/helpers/header_helpers.py | petechd/eq-questionnaire-runner | 1c5b182a7f8bc878cfdd767ae080410fa679abd6 | [
"MIT"
] | 10 | 2020-03-03T14:23:27.000Z | 2022-01-31T12:21:21.000Z | def get_span_and_trace(headers):
try:
trace, span = headers.get("X-Cloud-Trace-Context").split("/")
except (ValueError, AttributeError):
return None, None
span = span.split(";")[0]
return span, trace
| 25.888889 | 69 | 0.626609 | 29 | 233 | 4.931034 | 0.586207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005525 | 0.223176 | 233 | 8 | 70 | 29.125 | 0.78453 | 0 | 0 | 0 | 0 | 0 | 0.098712 | 0.090129 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
aad4319f7007dc6fffcb823fea0b0e260ea324c5 | 3,298 | py | Python | src/oci/object_storage/models/commit_multipart_upload_part_details.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/object_storage/models/commit_multipart_upload_part_details.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/object_storage/models/commit_multipart_upload_part_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... | 31.113208 | 245 | 0.654942 | 400 | 3,298 | 5.22 | 0.3675 | 0.060345 | 0.181992 | 0.08046 | 0.354406 | 0.22318 | 0.157088 | 0.157088 | 0.157088 | 0.157088 | 0 | 0.007484 | 0.27077 | 3,298 | 105 | 246 | 31.409524 | 0.860707 | 0.567314 | 0 | 0.057143 | 0 | 0 | 0.036348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0 | 0.057143 | 0.057143 | 0.485714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
aadcc926ae2bae8f3f547c0e153e1ffc86f3b16e | 65 | py | Python | tackle/__init__.py | robcxyz/tackle-box | a7a1403d4f7549cdacb32e5b11c1f9043bdd5762 | [
"BSD-3-Clause"
] | 5 | 2021-01-05T04:21:37.000Z | 2022-01-01T22:12:32.000Z | tackle/__init__.py | robcxyz/tackle-box | a7a1403d4f7549cdacb32e5b11c1f9043bdd5762 | [
"BSD-3-Clause"
] | 51 | 2021-01-03T00:41:59.000Z | 2022-03-27T00:13:51.000Z | tackle/__init__.py | robcxyz/tackle-box | a7a1403d4f7549cdacb32e5b11c1f9043bdd5762 | [
"BSD-3-Clause"
] | 1 | 2022-01-03T11:46:02.000Z | 2022-01-03T11:46:02.000Z | """Main package for tackle box."""
__version__ = "0.1.0-alpha.4"
| 21.666667 | 34 | 0.661538 | 11 | 65 | 3.545455 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070175 | 0.123077 | 65 | 2 | 35 | 32.5 | 0.614035 | 0.430769 | 0 | 0 | 0 | 0 | 0.419355 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
aae0ef6f919b713b8a03794a527288d50661e12d | 880 | py | Python | ticket/triggers/trg_ticket_prioridade.py | rafaelnoronha/tickets | 5497b8de4efed02e5d2cad78fe8e8811ad1e03c1 | [
"MIT"
] | null | null | null | ticket/triggers/trg_ticket_prioridade.py | rafaelnoronha/tickets | 5497b8de4efed02e5d2cad78fe8e8811ad1e03c1 | [
"MIT"
] | null | null | null | ticket/triggers/trg_ticket_prioridade.py | rafaelnoronha/tickets | 5497b8de4efed02e5d2cad78fe8e8811ad1e03c1 | [
"MIT"
] | null | null | null | def trigger():
return """
CREATE OR REPLACE FUNCTION trg_ticket_prioridade()
RETURNS TRIGGER AS $$
DECLARE
prioridade_grupo smallint;
prioridade_subgrupo smallint;
BEGIN
prioridade_grupo = COALESCE((SELECT prioridade FR... | 36.666667 | 112 | 0.586364 | 86 | 880 | 5.813953 | 0.453488 | 0.072 | 0.152 | 0.112 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003565 | 0.3625 | 880 | 23 | 113 | 38.26087 | 0.887701 | 0 | 0 | 0 | 0 | 0 | 0.9625 | 0.101136 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | true | 0 | 0 | 0.052632 | 0.105263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
aae44756cbe9fb17074f9c08844383373bfa435e | 247 | py | Python | kattis/Shopping List.py | jaredliw/python-question-bank | 9c8c246623d8d171f875700b57772df0afcbdcdf | [
"MIT"
] | 1 | 2021-04-08T07:49:15.000Z | 2021-04-08T07:49:15.000Z | kattis/Shopping List.py | jaredliw/leetcode-solutions | 9c8c246623d8d171f875700b57772df0afcbdcdf | [
"MIT"
] | null | null | null | kattis/Shopping List.py | jaredliw/leetcode-solutions | 9c8c246623d8d171f875700b57772df0afcbdcdf | [
"MIT"
] | 1 | 2022-01-23T02:12:24.000Z | 2022-01-23T02:12:24.000Z | # CPU: 0.18 s
n_rows, _ = map(int, input().split())
common_items = set(input().split())
for _ in range(n_rows - 1):
common_items = common_items.intersection(set(input().split()))
print(len(common_items))
print(*sorted(common_items), sep="\n")
| 30.875 | 66 | 0.684211 | 39 | 247 | 4.102564 | 0.564103 | 0.34375 | 0.1625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018265 | 0.11336 | 247 | 7 | 67 | 35.285714 | 0.712329 | 0.044534 | 0 | 0 | 0 | 0 | 0.008547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2a9e6aba26f30258549a13ef7697fd4a41b47aac | 563 | py | Python | search_engine/worker.py | Dhruvacube/search-engine | 13ba35d99e1dcb7591975e352d70329d41f868e6 | [
"Apache-2.0"
] | null | null | null | search_engine/worker.py | Dhruvacube/search-engine | 13ba35d99e1dcb7591975e352d70329d41f868e6 | [
"Apache-2.0"
] | null | null | null | search_engine/worker.py | Dhruvacube/search-engine | 13ba35d99e1dcb7591975e352d70329d41f868e6 | [
"Apache-2.0"
] | null | null | null | import importlib
from uvicorn.workers import UvicornWorker
class DynamicUvicornWorker(UvicornWorker):
"""
This class is called `DynamicUvicornWorker` because it assigns values
according to the module available Union['asyncio', 'uvloop']
It also set `lifespan` to `off` :)
"""
spam_spec = impo... | 29.631579 | 77 | 0.65897 | 65 | 563 | 5.630769 | 0.630769 | 0.043716 | 0.087432 | 0.103825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207815 | 563 | 18 | 78 | 31.277778 | 0.820628 | 0.293073 | 0 | 0 | 0 | 0 | 0.165775 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
2aa980f2e7bb9369dafe24972122e61fe79c1759 | 766 | py | Python | class and objects/Mro.py | ZephyrAveryl777/Python-Programs | 26de85c31af28382d406d27d54186b966a7b1bfc | [
"MIT"
] | 6 | 2020-08-13T11:49:29.000Z | 2021-03-07T05:46:17.000Z | class and objects/Mro.py | ZephyrAveryl777/Python-Programs | 26de85c31af28382d406d27d54186b966a7b1bfc | [
"MIT"
] | null | null | null | class and objects/Mro.py | ZephyrAveryl777/Python-Programs | 26de85c31af28382d406d27d54186b966a7b1bfc | [
"MIT"
] | 1 | 2021-04-24T06:12:48.000Z | 2021-04-24T06:12:48.000Z | '''
mro stands for Method Resolution Order.
It returns a list of types the class is
derived from, in the order they are searched
for methods'''
print(__doc__)
print('\n'+'-'*35+ 'Method Resolution Order'+'-'*35)
class A(object):
def dothis(self):
print('From A class')
class B1(A):
de... | 17.022222 | 53 | 0.591384 | 106 | 766 | 4.122642 | 0.367925 | 0.08238 | 0.118993 | 0.16476 | 0.23341 | 0.23341 | 0 | 0 | 0 | 0 | 0 | 0.043796 | 0.284595 | 766 | 45 | 54 | 17.022222 | 0.75365 | 0.208877 | 0 | 0.307692 | 0 | 0 | 0.140288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.153846 | 0 | 0 | 0.384615 | 0.307692 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
2aac09b051b13c891b16499f4e8579b8384792aa | 1,507 | py | Python | src/petmail/test/test_eventsource.py | warner/petmail | 2c43f6177e301275e235cc2a155aafba3e66b4c4 | [
"MIT"
] | 25 | 2015-04-14T15:55:46.000Z | 2021-01-23T16:00:55.000Z | src/petmail/test/test_eventsource.py | warner/petmail | 2c43f6177e301275e235cc2a155aafba3e66b4c4 | [
"MIT"
] | null | null | null | src/petmail/test/test_eventsource.py | warner/petmail | 2c43f6177e301275e235cc2a155aafba3e66b4c4 | [
"MIT"
] | 1 | 2018-05-17T08:41:47.000Z | 2018-05-17T08:41:47.000Z | from twisted.trial import unittest
from ..eventsource import EventSourceParser
class FakeTransport:
disconnecting = False
def parse_events(s):
fields = []
p = EventSourceParser(lambda name, data: fields.append((name,data)))
p.makeConnection(FakeTransport())
p.dataReceived(s)
return fields
cla... | 35.880952 | 76 | 0.52223 | 128 | 1,507 | 6.132813 | 0.273438 | 0.132484 | 0.254777 | 0.198726 | 0.681529 | 0.633121 | 0.633121 | 0.624204 | 0.568153 | 0.436943 | 0 | 0 | 0.327804 | 1,507 | 41 | 77 | 36.756098 | 0.774926 | 0 | 0 | 0.527778 | 0 | 0 | 0.098208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.222222 | 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 | 0 | 0 | 0 | 2 |
2aad36ed8d9e01be2c017eacc17af6c7e6d3a8a0 | 126 | py | Python | 01_Language/01_Functions/python/fread.py | cliff363825/TwentyFour | 09df59bd5d275e66463e343647f46027397d1233 | [
"MIT"
] | 3 | 2020-06-28T07:42:51.000Z | 2021-01-15T10:32:11.000Z | 01_Language/01_Functions/python/fread.py | cliff363825/TwentyFour | 09df59bd5d275e66463e343647f46027397d1233 | [
"MIT"
] | 9 | 2021-03-10T22:45:40.000Z | 2022-02-27T06:53:20.000Z | 01_Language/01_Functions/python/fread.py | cliff363825/TwentyFour | 09df59bd5d275e66463e343647f46027397d1233 | [
"MIT"
] | 1 | 2021-01-15T10:51:24.000Z | 2021-01-15T10:51:24.000Z | # coding: utf-8
import os
size = os.path.getsize("test.txt")
with open("test.txt", mode="r") as f:
print(f.read(size))
| 14 | 37 | 0.626984 | 23 | 126 | 3.434783 | 0.782609 | 0.177215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009524 | 0.166667 | 126 | 8 | 38 | 15.75 | 0.742857 | 0.103175 | 0 | 0 | 0 | 0 | 0.153153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2ab21d6af7562df91669716faae1d4fb2aeb12d2 | 499 | py | Python | interactive_widgets/backend/contexts/docker_context.py | h3ndrk/interactive-widgets-backend | 926dea44f00aca8b51893dab533c566728d5e65d | [
"MIT"
] | null | null | null | interactive_widgets/backend/contexts/docker_context.py | h3ndrk/interactive-widgets-backend | 926dea44f00aca8b51893dab533c566728d5e65d | [
"MIT"
] | null | null | null | interactive_widgets/backend/contexts/docker_context.py | h3ndrk/interactive-widgets-backend | 926dea44f00aca8b51893dab533c566728d5e65d | [
"MIT"
] | null | null | null | import aiodocker
import interactive_widgets.backend.contexts.context
class DockerContext(interactive_widgets.backend.contexts.context.Context):
async def __aenter__(self):
self.docker = aiodocker.Docker(
url=self.configuration.get('url', None),
)
await self.docker.__aenter__(... | 27.722222 | 74 | 0.685371 | 55 | 499 | 5.890909 | 0.472727 | 0.123457 | 0.138889 | 0.203704 | 0.246914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204409 | 499 | 17 | 75 | 29.352941 | 0.816121 | 0 | 0 | 0 | 0 | 0 | 0.006012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2ab6f2fd95e89231a622465bab0cf4bb48fade28 | 418 | py | Python | vtr_flow/scripts/benchtracker/flask_cors/__init__.py | HackerFoo/vtr-verilog-to-routing | 9bf3c1004e8a7c9f3756167905fd2e71218158d0 | [
"MIT"
] | 1 | 2020-05-07T17:38:58.000Z | 2020-05-07T17:38:58.000Z | vtr_flow/scripts/benchtracker/flask_cors/__init__.py | HackerFoo/vtr-verilog-to-routing | 9bf3c1004e8a7c9f3756167905fd2e71218158d0 | [
"MIT"
] | 12 | 2015-06-26T19:47:14.000Z | 2015-07-06T17:29:29.000Z | vtr_flow/scripts/benchtracker/flask_cors/__init__.py | HackerFoo/vtr-verilog-to-routing | 9bf3c1004e8a7c9f3756167905fd2e71218158d0 | [
"MIT"
] | 1 | 2020-08-15T03:04:34.000Z | 2020-08-15T03:04:34.000Z | # -*- coding: utf-8 -*-
"""
flask_cors
~~~~
Flask-CORS is a simple extension to Flask allowing you to support cross
origin resource sharing (CORS) using a simple decorator.
:copyright: (c) 2014 by Cory Dolphin.
:license: MIT, see LICENSE for more details.
"""
from .decorator import cross_origin... | 26.125 | 75 | 0.696172 | 56 | 418 | 5 | 0.625 | 0.117857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01497 | 0.200957 | 418 | 15 | 76 | 27.866667 | 0.823353 | 0.600478 | 0 | 0 | 0 | 0 | 0.118519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
2ad7054044b890689ad7e39e0a17d04847e28d9a | 347 | py | Python | grpc_django/models.py | soheltarir/grpc-django | 890038de2d7b7c36e4fd37ef1727d3568b3f68f5 | [
"MIT"
] | 12 | 2018-08-03T08:02:32.000Z | 2020-05-06T03:49:43.000Z | grpc_django/models.py | localhost-sys/grpc-django | 890038de2d7b7c36e4fd37ef1727d3568b3f68f5 | [
"MIT"
] | 7 | 2018-07-18T07:18:44.000Z | 2022-02-10T10:28:42.000Z | grpc_django/models.py | localhost-sys/grpc-django | 890038de2d7b7c36e4fd37ef1727d3568b3f68f5 | [
"MIT"
] | 5 | 2019-10-13T08:22:04.000Z | 2021-06-11T02:25:04.000Z | from django.contrib.auth.models import AbstractUser
# Create your models here.
class ContextUser(AbstractUser):
"""
Just an abstract model class to represent Auth user coming as context in GRPC requests
"""
class Meta:
abstract = True
def __str__(self):
return " ".format([self.fi... | 23.133333 | 90 | 0.688761 | 44 | 347 | 5.295455 | 0.795455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227666 | 347 | 14 | 91 | 24.785714 | 0.869403 | 0.322767 | 0 | 0 | 0 | 0 | 0.004566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
2addab6e6db1d5d6df636a69706b6de36199b161 | 2,350 | py | Python | dataset_tools/dataset_case/base_case.py | jprashant21/ElNeuKGQA | ebafa0a3d3e779e487a665fabc4f9ed50f21f134 | [
"MIT"
] | null | null | null | dataset_tools/dataset_case/base_case.py | jprashant21/ElNeuKGQA | ebafa0a3d3e779e487a665fabc4f9ed50f21f134 | [
"MIT"
] | null | null | null | dataset_tools/dataset_case/base_case.py | jprashant21/ElNeuKGQA | ebafa0a3d3e779e487a665fabc4f9ed50f21f134 | [
"MIT"
] | null | null | null | from typing import Optional
class BaseCaseMethodNotImplemented(Exception):
"""
Exception when a BaseCase method has not been implemented.
"""
pass
class BaseCase:
"""
Base class for representing a dataset case with a mandatory question text
and an optional question id and sparql query an... | 25.543478 | 91 | 0.628085 | 262 | 2,350 | 5.503817 | 0.229008 | 0.108183 | 0.058946 | 0.043689 | 0.54577 | 0.469487 | 0.457698 | 0.393897 | 0.393897 | 0.393897 | 0 | 0 | 0.295319 | 2,350 | 91 | 92 | 25.824176 | 0.870773 | 0.488085 | 0 | 0.423077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269231 | false | 0.038462 | 0.038462 | 0 | 0.615385 | 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 | 0 | 1 | 0 | 0 | 2 |
2ae1ab750c7d91fe0b34736e84b79b4270ed4fbb | 355 | py | Python | 1_mundo_exercicios/ex012.py | GuilhermeLima182/CursoDePython | 7e72b117142794c38cbb14284d0fa6e1dbee5bf6 | [
"MIT"
] | null | null | null | 1_mundo_exercicios/ex012.py | GuilhermeLima182/CursoDePython | 7e72b117142794c38cbb14284d0fa6e1dbee5bf6 | [
"MIT"
] | null | null | null | 1_mundo_exercicios/ex012.py | GuilhermeLima182/CursoDePython | 7e72b117142794c38cbb14284d0fa6e1dbee5bf6 | [
"MIT"
] | null | null | null | #Faça um programa que pergunte ao usuario o valor do produto,
#e mostre o valor final com 5% de desconto.
valorProduto = float(input('Qual o valor do produto? R$ '))
desconto = (valorProduto * 5) / 100
vFinal = valorProduto - desconto
print('O valor do produto é R${}'.format(valorProduto))
print('O novo valor com o d... | 39.444444 | 62 | 0.721127 | 57 | 355 | 4.491228 | 0.508772 | 0.09375 | 0.09375 | 0.175781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016835 | 0.16338 | 355 | 8 | 63 | 44.375 | 0.845118 | 0.287324 | 0 | 0 | 0 | 0 | 0.36255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2aece40023ab19be0d9af7b42aedee10e53c55c8 | 1,375 | py | Python | spec/person.py | ace6807/spec-data-validation-pattern | 57c7a757035f16ffa999244175814db0ec3964d9 | [
"MIT"
] | 1 | 2021-07-27T00:55:08.000Z | 2021-07-27T00:55:08.000Z | spec/person.py | ace6807/spec-data-validation-pattern | 57c7a757035f16ffa999244175814db0ec3964d9 | [
"MIT"
] | null | null | null | spec/person.py | ace6807/spec-data-validation-pattern | 57c7a757035f16ffa999244175814db0ec3964d9 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from . import Spec
from dto.person import PersonDTO
@dataclass
class HasNameSpec(Spec):
def passes(self, candidate: PersonDTO) -> bool:
return candidate.name is not None and candidate.name != ""
@dataclass
class HasAgeSpec(Spec):
def passes(self, candidate: PersonDT... | 22.916667 | 66 | 0.674909 | 159 | 1,375 | 5.698113 | 0.251572 | 0.092715 | 0.086093 | 0.145695 | 0.401766 | 0.401766 | 0.363135 | 0.363135 | 0.307947 | 0.18543 | 0 | 0.00381 | 0.236364 | 1,375 | 59 | 67 | 23.305085 | 0.859048 | 0 | 0 | 0.333333 | 0 | 0 | 0.001455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.166667 | 0.071429 | 0.119048 | 0.690476 | 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 | 0 | 0 | 0 | 2 |
2af11eb0b42cbfb5a1efbef4325e698fa799a2e8 | 5,631 | py | Python | roadmap_planner_tools/scripts/pi_manager_example.py | JKBehrens/STAAMS-Solver | b6837da69cda574d081ab3dc0b307e3ce40ad6f2 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 16 | 2018-12-11T13:02:58.000Z | 2022-02-28T09:05:20.000Z | roadmap_planner_tools/scripts/pi_manager_example.py | stepakar/STAAMS-Solver | b6837da69cda574d081ab3dc0b307e3ce40ad6f2 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2019-11-04T13:16:49.000Z | 2022-02-28T09:17:30.000Z | roadmap_planner_tools/scripts/pi_manager_example.py | stepakar/STAAMS-Solver | b6837da69cda574d081ab3dc0b307e3ce40ad6f2 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 4 | 2019-02-12T12:41:25.000Z | 2022-02-09T12:55:56.000Z | #!/usr/bin/env python
"""
Copyright (c) 2018 Robert Bosch GmbH
All rights reserved.
This source code is licensed under the BSD-3-Clause license found in the
LICENSE file in the root directory of this source tree.
@author: Jan Behrens
"""
from geometry_msgs.msg import TransformStamped
from roadmap_planner_tools.plann... | 69.518519 | 402 | 0.679098 | 682 | 5,631 | 5.423754 | 0.303519 | 0.008651 | 0.029197 | 0.043255 | 0.203028 | 0.187348 | 0.187348 | 0.178427 | 0.114085 | 0.049202 | 0 | 0.25847 | 0.124667 | 5,631 | 81 | 403 | 69.518519 | 0.491986 | 0.054697 | 0 | 0.075472 | 0 | 0.150943 | 0.597026 | 0.117636 | 0.150943 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0 | 0.09434 | 0 | 0.132075 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2af67edc0d8f4da4a1404fc6cd17e17df40ffa60 | 374 | py | Python | src/cn_query/juhe/exceptions.py | winkidney/juhe-sdk | dc92d7421f54b5858c90b32f75297a76e3ecbac5 | [
"MIT"
] | null | null | null | src/cn_query/juhe/exceptions.py | winkidney/juhe-sdk | dc92d7421f54b5858c90b32f75297a76e3ecbac5 | [
"MIT"
] | null | null | null | src/cn_query/juhe/exceptions.py | winkidney/juhe-sdk | dc92d7421f54b5858c90b32f75297a76e3ecbac5 | [
"MIT"
] | null | null | null | from functools import wraps
DEFAULT_CODE = -1
class APIError(ValueError):
pass
def normalize_network_error(func):
from requests import exceptions as exc
@wraps(func)
def decorated(*args, **kwargs):
try:
return func(*args, **kwargs)
except exc.RequestException as e:
... | 17 | 42 | 0.644385 | 44 | 374 | 5.409091 | 0.681818 | 0.084034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003676 | 0.272727 | 374 | 21 | 43 | 17.809524 | 0.871324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.153846 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
6310d4042eb7ef64a2b5785735563119f99531f8 | 719 | py | Python | Test_Beat_Detector.py | filipmazurek/Heart-Rate-Monitor | eef5bed63357442dde3746e0443671a947f0ec3d | [
"MIT"
] | null | null | null | Test_Beat_Detector.py | filipmazurek/Heart-Rate-Monitor | eef5bed63357442dde3746e0443671a947f0ec3d | [
"MIT"
] | null | null | null | Test_Beat_Detector.py | filipmazurek/Heart-Rate-Monitor | eef5bed63357442dde3746e0443671a947f0ec3d | [
"MIT"
] | null | null | null | from Beat_Detector import BeatDetector
from SignalChoice import *
update_time_seconds = 20
update_time_easy = 2 # means enough data for 2 seconds.
array_easy = [0, 2, 5, 10, 5, 2, 0, 2, 5, 10, 5]
def test_get_num_beats():
beat_detector = BeatDetector(update_time_seconds, SignalChoice.both)
assert 2 == beat_... | 32.681818 | 95 | 0.769124 | 111 | 719 | 4.648649 | 0.315315 | 0.162791 | 0.081395 | 0.174419 | 0.383721 | 0.294574 | 0.294574 | 0.294574 | 0.294574 | 0.294574 | 0 | 0.042484 | 0.148818 | 719 | 21 | 96 | 34.238095 | 0.800654 | 0.091794 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.214286 | false | 0 | 0.142857 | 0 | 0.357143 | 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 | 0 | 0 | 0 | 2 |
6315ca182a138a7397f2bdcc32da39042e1ae1a2 | 3,356 | py | Python | gestor_usuarios/apps/app_gestor_usuarios/forms.py | Enrialonso/LP-Manage-Contacts | fdee309442b44efee5f7aa67612738b1655197c9 | [
"Unlicense"
] | null | null | null | gestor_usuarios/apps/app_gestor_usuarios/forms.py | Enrialonso/LP-Manage-Contacts | fdee309442b44efee5f7aa67612738b1655197c9 | [
"Unlicense"
] | null | null | null | gestor_usuarios/apps/app_gestor_usuarios/forms.py | Enrialonso/LP-Manage-Contacts | fdee309442b44efee5f7aa67612738b1655197c9 | [
"Unlicense"
] | null | null | null | from django import forms
from apps.app_gestor_usuarios.models import db_usuarios, db_manage_contacts
class signupForm(forms.ModelForm):
class Meta:
model = db_usuarios
fields = [
'name',
'last',
'email',
'password',
]
labels = {
... | 32.901961 | 107 | 0.502384 | 294 | 3,356 | 5.636054 | 0.207483 | 0.1207 | 0.16898 | 0.25347 | 0.592637 | 0.552806 | 0.418226 | 0.284249 | 0.231141 | 0.231141 | 0 | 0.000439 | 0.321514 | 3,356 | 102 | 108 | 32.901961 | 0.727273 | 0 | 0 | 0.460674 | 0 | 0 | 0.30146 | 0.008043 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.067416 | 0.022472 | 0 | 0.089888 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
6324fc38f5d2e0297dfed36c24f30bc5c9a5e87b | 3,786 | py | Python | sails/commands.py | metrasynth/solar-sails | 3a10774dad29d85834d3acb38171741b3a11ef91 | [
"MIT"
] | 6 | 2016-11-22T14:32:55.000Z | 2021-08-15T01:35:33.000Z | sails/commands.py | metrasynth/s4ils | efc061993d15ebe662b72ab8b3127f7f7ce2f66b | [
"MIT"
] | 2 | 2022-03-18T16:47:43.000Z | 2022-03-18T16:47:44.000Z | sails/commands.py | metrasynth/s4ils | efc061993d15ebe662b72ab8b3127f7f7ce2f66b | [
"MIT"
] | 2 | 2019-07-09T23:44:08.000Z | 2021-08-15T01:35:37.000Z | import rv.api
class Command(object):
args = ()
processed = False
def __init__(self, *args, **kw):
self._apply_args(*args, **kw)
def __repr__(self):
attrs = ' '.join(
'{}={!r}'.format(
arg,
getattr(self, arg),
)
for ... | 23.811321 | 66 | 0.542789 | 427 | 3,786 | 4.632319 | 0.201405 | 0.033367 | 0.035389 | 0.058645 | 0.215369 | 0.152679 | 0.122346 | 0.037412 | 0 | 0 | 0 | 0.001988 | 0.335711 | 3,786 | 158 | 67 | 23.962025 | 0.784493 | 0 | 0 | 0.169643 | 0 | 0 | 0.029847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.223214 | false | 0.008929 | 0.008929 | 0.116071 | 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 | 0 | 0 | 0 | 2 |
6326a7cc80d3d1603f92a048b09d9d4066064738 | 448 | py | Python | .config/vim/python3/tex.py | psvenk/dotfiles | 2c07e97b5087a224e5df3060405f8bbfac28866e | [
"0BSD"
] | null | null | null | .config/vim/python3/tex.py | psvenk/dotfiles | 2c07e97b5087a224e5df3060405f8bbfac28866e | [
"0BSD"
] | null | null | null | .config/vim/python3/tex.py | psvenk/dotfiles | 2c07e97b5087a224e5df3060405f8bbfac28866e | [
"0BSD"
] | null | null | null | import vim
from datetime import datetime
from os import path
from subprocess import run, DEVNULL
def include_screenshot():
directory = path.dirname(vim.current.buffer.name)
timestamp = datetime.now().strftime("%Y-%m-%d-%H-%M-%S")
filename = f"screenshot-{timestamp}.png"
with open(path.join(directory, f... | 34.461538 | 74 | 0.703125 | 61 | 448 | 5.147541 | 0.655738 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151786 | 448 | 12 | 75 | 37.333333 | 0.826316 | 0 | 0 | 0 | 0 | 0 | 0.113839 | 0.058036 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
63319d40cb5498bfc7c0d34898459019f0749096 | 1,031 | py | Python | lre/nlp/__init__.py | ovixiao/lre | e60de7b4457efd5a85165e89a4477c14f52c471b | [
"Apache-2.0"
] | null | null | null | lre/nlp/__init__.py | ovixiao/lre | e60de7b4457efd5a85165e89a4477c14f52c471b | [
"Apache-2.0"
] | null | null | null | lre/nlp/__init__.py | ovixiao/lre | e60de7b4457efd5a85165e89a4477c14f52c471b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
处理各种语言的库,主要是实现分段落、句子、词的功能
"""
from __future__ import unicode_literals
from .nlp_zh import NlpZh
class Nlp(object):
def __init__(self, config):
self.config = config
if self.config.language == 'zh':
self.nlp = NlpZh(config)
else:
raise Va... | 24.547619 | 66 | 0.591659 | 116 | 1,031 | 5.146552 | 0.456897 | 0.067002 | 0.050251 | 0.090452 | 0.130653 | 0.130653 | 0 | 0 | 0 | 0 | 0 | 0.009669 | 0.297769 | 1,031 | 41 | 67 | 25.146341 | 0.814917 | 0.343356 | 0 | 0 | 0 | 0 | 0.0301 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.133333 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
2d4e716ec32e46db3c8f8b92ca201b3088f776bf | 1,911 | py | Python | pages/cart_page.py | kukushdi3981/sel-1_test-project | 81066e1501a62f642b5b76745801170ca62ad237 | [
"Apache-2.0"
] | null | null | null | pages/cart_page.py | kukushdi3981/sel-1_test-project | 81066e1501a62f642b5b76745801170ca62ad237 | [
"Apache-2.0"
] | null | null | null | pages/cart_page.py | kukushdi3981/sel-1_test-project | 81066e1501a62f642b5b76745801170ca62ad237 | [
"Apache-2.0"
] | null | null | null | from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
class CartPage:
def __init__(self, driver):
self.driver = driver
self.wait = WebDriverWait(driver, 10)
def del_from_cart_butto... | 39 | 112 | 0.70539 | 254 | 1,911 | 5.047244 | 0.385827 | 0.054602 | 0.060842 | 0.078003 | 0.306552 | 0.279251 | 0.279251 | 0.279251 | 0.192668 | 0.192668 | 0 | 0.003958 | 0.206698 | 1,911 | 48 | 113 | 39.8125 | 0.841689 | 0.125589 | 0 | 0.090909 | 0 | 0 | 0.122975 | 0.092981 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242424 | false | 0 | 0.090909 | 0.121212 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
2d5dc4553abbc55c9321bc9cfe1937d4082c6990 | 272 | py | Python | Modulo1/exercicio009_2.py | natterra/python3 | e462192f03e81e2a614b1f2a441ffa702e4988e0 | [
"MIT"
] | null | null | null | Modulo1/exercicio009_2.py | natterra/python3 | e462192f03e81e2a614b1f2a441ffa702e4988e0 | [
"MIT"
] | null | null | null | Modulo1/exercicio009_2.py | natterra/python3 | e462192f03e81e2a614b1f2a441ffa702e4988e0 | [
"MIT"
] | null | null | null | #Exercício Python 9: Faça um programa que leia um número Inteiro qualquer e mostre na tela a sua tabuada.
n = int(input("Digite um número: "))
i = 0
print("--------------")
while i < 10:
i += 1
print("{:2} x {:2} = {:2}".format(n, i, n*i))
print("--------------") | 30.222222 | 105 | 0.544118 | 44 | 272 | 3.363636 | 0.704545 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036364 | 0.191176 | 272 | 9 | 106 | 30.222222 | 0.636364 | 0.382353 | 0 | 0.285714 | 0 | 0 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 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 | 0 | 0 | 0 | 1 | 0 | 2 |
2d5eb9a5f86eac06485fcefb4b677be4db7c878c | 4,988 | py | Python | tests/test_metrics.py | Patte1808/moda | 312c9594754ae0f6d17cbfafaa2c4c790c58efe5 | [
"MIT"
] | 27 | 2019-03-15T21:21:17.000Z | 2022-01-03T14:37:02.000Z | tests/test_metrics.py | Patte1808/moda | 312c9594754ae0f6d17cbfafaa2c4c790c58efe5 | [
"MIT"
] | 4 | 2019-09-30T13:29:20.000Z | 2021-03-20T20:05:36.000Z | tests/test_metrics.py | Patte1808/moda | 312c9594754ae0f6d17cbfafaa2c4c790c58efe5 | [
"MIT"
] | 11 | 2019-03-15T21:21:19.000Z | 2021-08-09T22:10:15.000Z | """Test evaluation functionality."""
from moda.evaluators import f_beta
from moda.evaluators.metrics import calculate_metrics_with_shift, _join_metrics
def test_f_beta1():
precision = 0.6
recall = 1.0
beta = 1
f = f_beta(precision, recall, beta)
assert (f > 0.74) and (f < 0.76)
def test_f_beta3(... | 34.4 | 90 | 0.604451 | 784 | 4,988 | 3.633929 | 0.081633 | 0.087048 | 0.087399 | 0.078624 | 0.759214 | 0.759214 | 0.688663 | 0.588277 | 0.540892 | 0.517375 | 0 | 0.08794 | 0.220329 | 4,988 | 144 | 91 | 34.638889 | 0.644639 | 0.006014 | 0 | 0.446429 | 0 | 0 | 0.071688 | 0 | 0 | 0 | 0 | 0 | 0.410714 | 1 | 0.089286 | false | 0 | 0.017857 | 0 | 0.107143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2d662757e1d86c36d9d911b8a2139bac3250db00 | 221 | py | Python | Other/pdf2imageTest.py | Wanganator414/python | afa7a931bd9da8a5235a6cd889bfc417950165fe | [
"MIT"
] | 1 | 2019-08-17T03:31:19.000Z | 2019-08-17T03:31:19.000Z | Other/pdf2imageTest.py | Wanganator414/python | afa7a931bd9da8a5235a6cd889bfc417950165fe | [
"MIT"
] | null | null | null | Other/pdf2imageTest.py | Wanganator414/python | afa7a931bd9da8a5235a6cd889bfc417950165fe | [
"MIT"
] | null | null | null | from pdf2image import convert_from_path, convert_from_bytes
from pdf2image.exceptions import (
PDFInfoNotInstalledError,
PDFPageCountError,
PDFSyntaxError
)
images = convert_from_path('.\git_cheat_sheet.pdf')
| 27.625 | 59 | 0.809955 | 24 | 221 | 7.125 | 0.625 | 0.192982 | 0.175439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010363 | 0.126697 | 221 | 7 | 60 | 31.571429 | 0.875648 | 0 | 0 | 0 | 0 | 0 | 0.095023 | 0.095023 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 | 0 | 0 | 0 | 2 |
2d6d0fc2ece7d6b6190b0adbadaceaefdccb6df6 | 472 | py | Python | templatetags/spreedly_tags.py | shelfworthy/django-spreedly | 95e4572fec67501835d08c3e54e9437345733784 | [
"MIT"
] | 2 | 2015-09-28T10:08:13.000Z | 2015-11-08T12:46:43.000Z | templatetags/spreedly_tags.py | shelfworthy/django-spreedly | 95e4572fec67501835d08c3e54e9437345733784 | [
"MIT"
] | null | null | null | templatetags/spreedly_tags.py | shelfworthy/django-spreedly | 95e4572fec67501835d08c3e54e9437345733784 | [
"MIT"
] | null | null | null | from django.conf import settings
from django import template
from spreedly.functions import subscription_url
register = template.Library()
@register.simple_tag
def existing_plan_url(user):
return 'https://spreedly.com/%(site_name)s/subscriber_accounts/%(user_token)s' % {
'site_name': settings.SPREEDLY_SI... | 27.764706 | 86 | 0.760593 | 63 | 472 | 5.460317 | 0.444444 | 0.069767 | 0.098837 | 0.116279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137712 | 472 | 17 | 87 | 27.764706 | 0.845209 | 0 | 0 | 0.153846 | 0 | 0 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0.153846 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
2d7ff8efa71157528cf59e7762c185eb4caf5b50 | 147 | py | Python | Chapter08/chapter8_sflowtool_1.py | stavsta/Mastering-Python-Networking-Second-Edition | 9999d2e415a1eb9c653ac3507500da7ddac2b556 | [
"MIT"
] | 107 | 2017-03-31T09:39:47.000Z | 2022-01-10T17:43:12.000Z | Chapter08/chapter8_sflowtool_1.py | muzhang90/Mastering-Python-Networking-Third-Edition | f8086fc9a28e441cf8c31099d16839c2e868c7fc | [
"MIT"
] | 3 | 2020-03-29T14:14:43.000Z | 2020-10-29T18:21:09.000Z | Chapter08/chapter8_sflowtool_1.py | muzhang90/Mastering-Python-Networking-Third-Edition | f8086fc9a28e441cf8c31099d16839c2e868c7fc | [
"MIT"
] | 98 | 2017-02-25T17:55:43.000Z | 2022-02-20T19:06:06.000Z | #!/usr/bin/env python3
import sys, re
for line in iter(sys.stdin.readline, ''):
if re.search('agent ', line):
print(line.strip())
| 14.7 | 41 | 0.605442 | 22 | 147 | 4.045455 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008696 | 0.217687 | 147 | 9 | 42 | 16.333333 | 0.765217 | 0.142857 | 0 | 0 | 0 | 0 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2d849f6ef02f2ba2420e4777e5f788eedd4a8971 | 357 | py | Python | src/emr/scripts/util.py | anorth848/aws-data-analytics | 7721f1214f163a9a76f8e797edd3a1e300a5e2ab | [
"MIT"
] | 1 | 2022-02-18T22:28:36.000Z | 2022-02-18T22:28:36.000Z | src/emr/scripts/util.py | anorth848/aws-data-analytics | 7721f1214f163a9a76f8e797edd3a1e300a5e2ab | [
"MIT"
] | null | null | null | src/emr/scripts/util.py | anorth848/aws-data-analytics | 7721f1214f163a9a76f8e797edd3a1e300a5e2ab | [
"MIT"
] | null | null | null | import boto3
import logging
import json
def get_secret(secret):
client = boto3.client('secretsmanager')
logging.info(f'Retrieving secret {secret}')
response = client.get_secret_value(SecretId=secret)
logging.debug(f'Retrieved Secret ARN {response["ARN"]} VersionId {response["VersionId"]}')
return ... | 29.75 | 94 | 0.742297 | 43 | 357 | 6.093023 | 0.511628 | 0.068702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006452 | 0.131653 | 357 | 11 | 95 | 32.454545 | 0.83871 | 0 | 0 | 0 | 0 | 0 | 0.347339 | 0.064426 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
2da34ae804d338824cab481265b913a1023b155d | 2,509 | py | Python | pkgs/nbconvert-4.1.0-py27_0/lib/python2.7/site-packages/nbconvert/filters/markdown.py | wangyum/anaconda | 6e5a0dbead3327661d73a61e85414cf92aa52be6 | [
"Apache-2.0",
"BSD-3-Clause"
] | 652 | 2015-07-26T00:00:17.000Z | 2022-02-24T18:30:04.000Z | pkgs/nbconvert-4.1.0-py27_0/lib/python2.7/site-packages/nbconvert/filters/markdown.py | wangyum/anaconda | 6e5a0dbead3327661d73a61e85414cf92aa52be6 | [
"Apache-2.0",
"BSD-3-Clause"
] | 8 | 2015-09-07T03:38:19.000Z | 2021-05-23T03:18:51.000Z | pkgs/nbconvert-4.1.0-py27_0/lib/python2.7/site-packages/nbconvert/filters/markdown.py | wangyum/anaconda | 6e5a0dbead3327661d73a61e85414cf92aa52be6 | [
"Apache-2.0",
"BSD-3-Clause"
] | 40 | 2015-07-24T19:45:08.000Z | 2021-11-01T14:54:56.000Z | """Markdown filters
This file contains a collection of utility filters for dealing with
markdown within Jinja templates.
"""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
from __future__ import print_function
import os
import subprocess
from io import TextIOWra... | 28.511364 | 87 | 0.721403 | 312 | 2,509 | 5.685897 | 0.394231 | 0.055806 | 0.031567 | 0.040586 | 0.327508 | 0.327508 | 0.327508 | 0.327508 | 0.306652 | 0.258174 | 0 | 0.007459 | 0.198485 | 2,509 | 87 | 88 | 28.83908 | 0.874689 | 0.478677 | 0 | 0 | 0 | 0 | 0.135666 | 0.017918 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0.413793 | 0 | 0.655172 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
2db7c1f7bd22a70de17e35de2236e6155f5a96dc | 534 | py | Python | AEC.py | apayeur/GIF-Ca | 7ba9e715d79aa3a733f417f7dfce81842041e7ec | [
"MIT"
] | 1 | 2020-06-05T15:34:34.000Z | 2020-06-05T15:34:34.000Z | src/AEC.py | apayeur/GIF-K | 36228dfe5ffc2cded3f3224e289bd60e6bc7b93c | [
"MIT"
] | null | null | null | src/AEC.py | apayeur/GIF-K | 36228dfe5ffc2cded3f3224e289bd60e6bc7b93c | [
"MIT"
] | null | null | null | import abc
from Experiment import *
class AEC :
"""
Abstract class defining an interface for performing active electrode compensation.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def performAEC(self, experiment):
"""
This method should preprocess al... | 18.413793 | 97 | 0.554307 | 52 | 534 | 5.596154 | 0.711538 | 0.116838 | 0.137457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.378277 | 534 | 28 | 98 | 19.071429 | 0.876506 | 0.367041 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
2ddca5cc12de3a408cda0ff45249cbd6d8e54333 | 7,452 | py | Python | pysnmp-with-texts/TIMETRA-SAS-IEEE8021-PAE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/TIMETRA-SAS-IEEE8021-PAE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/TIMETRA-SAS-IEEE8021-PAE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module TIMETRA-SAS-IEEE8021-PAE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TIMETRA-SAS-IEEE8021-PAE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:21:45 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python vers... | 143.307692 | 1,076 | 0.800322 | 841 | 7,452 | 7.08918 | 0.335315 | 0.005032 | 0.04579 | 0.00738 | 0.243039 | 0.166723 | 0.154646 | 0.142905 | 0.142905 | 0.140892 | 0 | 0.071915 | 0.093129 | 7,452 | 51 | 1,077 | 146.117647 | 0.810299 | 0.046967 | 0 | 0.071429 | 0 | 0.142857 | 0.415621 | 0.056535 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2df782b87d6da8a3b61ad938472a58ca41cb66f2 | 396 | py | Python | stubs/esp32_1_10_0/upip_utarfile.py | jmannau/micropython-stubber | 8930e8a0038192fd259b31a193d1da3b2501256a | [
"MIT"
] | null | null | null | stubs/esp32_1_10_0/upip_utarfile.py | jmannau/micropython-stubber | 8930e8a0038192fd259b31a193d1da3b2501256a | [
"MIT"
] | null | null | null | stubs/esp32_1_10_0/upip_utarfile.py | jmannau/micropython-stubber | 8930e8a0038192fd259b31a193d1da3b2501256a | [
"MIT"
] | null | null | null | "Module 'upip_utarfile' on firmware 'v1.10-247-g0fb15fc3f on 2019-03-29'"
DIRTYPE = 'dir'
class FileSection(): ...
def read():
pass
def readinto():
pass
def skip():
pass
REGTYPE = 'file'
TAR_HEADER = None
class TarFile(): ...
def extractfile():
pass
def next():
... | 13.2 | 73 | 0.560606 | 46 | 396 | 4.782609 | 0.695652 | 0.095455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064982 | 0.300505 | 396 | 29 | 74 | 13.655172 | 0.729242 | 0 | 0 | 0.3 | 0 | 0.05 | 0.19697 | 0.05303 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.3 | 0 | null | null | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
2dfab9e21824f933194ff41412afd5eaebd5cb04 | 438 | py | Python | reader.py | Asylumrunner/FeedingFrenzy | 7f0d96f8361cb2c37cd41d06345e6ec0aa721472 | [
"MIT"
] | 1 | 2020-12-08T13:09:38.000Z | 2020-12-08T13:09:38.000Z | reader.py | weisisheng/FeedingFrenzy | 7f0d96f8361cb2c37cd41d06345e6ec0aa721472 | [
"MIT"
] | null | null | null | reader.py | weisisheng/FeedingFrenzy | 7f0d96f8361cb2c37cd41d06345e6ec0aa721472 | [
"MIT"
] | 1 | 2020-12-08T13:09:39.000Z | 2020-12-08T13:09:39.000Z | import feedparser
def read_rss_feed(feed_url):
feed = feedparser.parse(feed_url)
return [trim_entry(entry) for entry in feed.entries]
def trim_entry(entry):
return {
'date': "{}/{}/{}".format(entry.published_parsed.tm_year, entry.published_parsed.tm_mon, entry.published_parsed.tm_mday),
't... | 31.285714 | 129 | 0.6621 | 56 | 438 | 4.964286 | 0.464286 | 0.151079 | 0.215827 | 0.23741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19863 | 438 | 14 | 130 | 31.285714 | 0.792023 | 0 | 0 | 0 | 0 | 0 | 0.077449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0.083333 | 0.416667 | 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 | 0 | 0 | 0 | 2 |
93034a9a6233faadc660e34f44294b994aedc83c | 124 | py | Python | Eolymp_DSAWeek1_Solns/Digits.py | sulphatet/MiniProjectsndCodingProbs | a8f6c9c3993854cad9444800f9d1b1720a239b39 | [
"MIT"
] | 1 | 2022-02-24T08:29:00.000Z | 2022-02-24T08:29:00.000Z | Eolymp_DSAWeek1_Solns/Digits.py | sulphatet/MiniProjectsndCodingProbs | a8f6c9c3993854cad9444800f9d1b1720a239b39 | [
"MIT"
] | null | null | null | Eolymp_DSAWeek1_Solns/Digits.py | sulphatet/MiniProjectsndCodingProbs | a8f6c9c3993854cad9444800f9d1b1720a239b39 | [
"MIT"
] | null | null | null | num = int(input())
x = 0
if num == 0:
print(1)
exit()
while num != 0:
x +=1
num = num//10
print(x)
| 12.4 | 19 | 0.435484 | 21 | 124 | 2.571429 | 0.52381 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.379032 | 124 | 9 | 20 | 13.777778 | 0.61039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
93074d51c0af568361ff79fea1825596f6e8553e | 252 | py | Python | edbdeploy/spec/__init__.py | mw2q/postgres-deployment | 7b07375588da6ede25062c5518922275ed35844b | [
"BSD-3-Clause"
] | null | null | null | edbdeploy/spec/__init__.py | mw2q/postgres-deployment | 7b07375588da6ede25062c5518922275ed35844b | [
"BSD-3-Clause"
] | 1 | 2021-07-01T18:02:00.000Z | 2021-07-01T18:02:00.000Z | edbdeploy/spec/__init__.py | jt-edb/postgres-deployment | 871cf517379152f096f44d682dd03d93971715a2 | [
"BSD-3-Clause"
] | null | null | null | class SpecValidator:
def __init__(self, type=None, default=None, choices=[], min=None,
max=None):
self.type = type
self.default = default
self.choices = choices
self.min = min
self.max = max
| 28 | 69 | 0.559524 | 29 | 252 | 4.724138 | 0.37931 | 0.116788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.337302 | 252 | 8 | 70 | 31.5 | 0.820359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
931b8e121065b6e7d0568d8a4e43d037da1b3b77 | 4,295 | py | Python | dynatrace/environment_v2/networkzones.py | hashmibilaldt/api-client-python | 910008a4c6800a547535acba79b7a49e540b5d16 | [
"Apache-2.0"
] | null | null | null | dynatrace/environment_v2/networkzones.py | hashmibilaldt/api-client-python | 910008a4c6800a547535acba79b7a49e540b5d16 | [
"Apache-2.0"
] | null | null | null | dynatrace/environment_v2/networkzones.py | hashmibilaldt/api-client-python | 910008a4c6800a547535acba79b7a49e540b5d16 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2021 Dynatrace LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... | 40.518868 | 122 | 0.723632 | 521 | 4,295 | 5.802303 | 0.320537 | 0.039696 | 0.037049 | 0.029772 | 0.244459 | 0.209064 | 0.171684 | 0.169699 | 0.169699 | 0.12041 | 0 | 0.003166 | 0.191153 | 4,295 | 106 | 123 | 40.518868 | 0.867012 | 0.331548 | 0 | 0 | 0 | 0 | 0.137996 | 0.075168 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
9320c7176b7d0f5a4f94419ff900dc0287dd18c3 | 8,544 | py | Python | tests/l_layer/backward.py | felix990302/nnlib | 618c9f860ff2298ed2e0bbcb249ae74eeb8a408b | [
"Apache-2.0"
] | 1 | 2019-03-27T17:02:50.000Z | 2019-03-27T17:02:50.000Z | tests/l_layer/backward.py | felix990302/nnlib | 618c9f860ff2298ed2e0bbcb249ae74eeb8a408b | [
"Apache-2.0"
] | null | null | null | tests/l_layer/backward.py | felix990302/nnlib | 618c9f860ff2298ed2e0bbcb249ae74eeb8a408b | [
"Apache-2.0"
] | null | null | null | import numpy as np
from numpy.random import RandomState
from numpy.testing import assert_allclose
from nnlib.l_layer.backward import linear_backward, linear_backward_activation, model_backward
from nnlib.utils.derivative import sigmoid_backward, relu_backward
from nnlib.utils.activation import sigmoid, relu
def test... | 37.147826 | 122 | 0.508544 | 1,160 | 8,544 | 3.682759 | 0.194828 | 0.070459 | 0.05618 | 0.014981 | 0.553371 | 0.499766 | 0.466994 | 0.410346 | 0.410346 | 0.35206 | 0 | 0.351985 | 0.301381 | 8,544 | 229 | 123 | 37.310044 | 0.363713 | 0.002458 | 0 | 0.422111 | 0 | 0 | 0.001995 | 0 | 0 | 0 | 0 | 0 | 0.090452 | 1 | 0.030151 | false | 0 | 0.030151 | 0 | 0.060302 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
932e5914cfad78eadac43b5ef29f6ed1ab78376e | 874 | py | Python | config/conf.d/04-spawner-common.py | possiblyMikeB/davidson-jupyter | 8980c1249756d421b70950b9895b75e16d7e68c0 | [
"BSD-3-Clause"
] | null | null | null | config/conf.d/04-spawner-common.py | possiblyMikeB/davidson-jupyter | 8980c1249756d421b70950b9895b75e16d7e68c0 | [
"BSD-3-Clause"
] | null | null | null | config/conf.d/04-spawner-common.py | possiblyMikeB/davidson-jupyter | 8980c1249756d421b70950b9895b75e16d7e68c0 | [
"BSD-3-Clause"
] | null | null | null | import json, os
## base spawner config
try:
c.Spawner.cmd = \
json.loads(os.environ['SPAWNER_CMD'])
except KeyError:
c.Spawner.cmd = [
'jupyterhub-singleuser', # OAuth wrapped jupyter instance server
'--KernelManager.transport=ipc', # -- all kernel comms over UNIX sockets
'--Ma... | 33.615385 | 114 | 0.693364 | 116 | 874 | 5.112069 | 0.646552 | 0.080944 | 0.037099 | 0.064081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004202 | 0.183066 | 874 | 25 | 115 | 34.96 | 0.826331 | 0.330664 | 0 | 0 | 0 | 0 | 0.317073 | 0.160279 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.058824 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
93388ca96a9f3273e22a1cd4ed97d8092f0d63f7 | 739 | py | Python | a10/build/lib/a10/asvr/types.py | THS-on/AttestationEngine | 6746d602215df43056b04515bd9b831f0bb0ddbb | [
"BSD-3-Clause-Clear"
] | null | null | null | a10/build/lib/a10/asvr/types.py | THS-on/AttestationEngine | 6746d602215df43056b04515bd9b831f0bb0ddbb | [
"BSD-3-Clause-Clear"
] | 4 | 2021-11-08T19:47:56.000Z | 2021-11-25T10:30:50.000Z | a10/build/lib/a10/asvr/types.py | THS-on/AttestationEngine | 6746d602215df43056b04515bd9b831f0bb0ddbb | [
"BSD-3-Clause-Clear"
] | null | null | null | # Copyright 2021 Nokia
# Licensed under the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause
import a10.structures.constants
import a10.structures.identity
import a10.structures.returncode
import a10.asvr.db.core
import a10.asvr.db.announce
import a10.asvr.elements
def getTypes():
"""Gets a list of... | 21.114286 | 50 | 0.630582 | 104 | 739 | 4.480769 | 0.538462 | 0.11588 | 0.122318 | 0.064378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036166 | 0.251691 | 739 | 34 | 51 | 21.735294 | 0.80651 | 0.351827 | 0 | 0 | 0 | 0 | 0.048458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.4 | 0 | 0.533333 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
934773febc7f5decd256c9aba66a91ef1956f628 | 761 | py | Python | setup.py | shubhamjain/quick-grayscale | 470f726ec93224ffff57a3d7ba58fcf849fb4617 | [
"MIT"
] | 14 | 2018-11-26T01:32:21.000Z | 2021-11-09T11:04:34.000Z | setup.py | shubhamjain/quick-grayscale | 470f726ec93224ffff57a3d7ba58fcf849fb4617 | [
"MIT"
] | 1 | 2019-03-28T21:38:56.000Z | 2019-03-30T21:34:05.000Z | setup.py | shubhamjain/quick-grayscale | 470f726ec93224ffff57a3d7ba58fcf849fb4617 | [
"MIT"
] | 1 | 2018-12-05T01:10:55.000Z | 2018-12-05T01:10:55.000Z | """
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
from setuptools import setup
APP = ["quick-gray.py"]
APP_NAME = "QuickGrayscale"
DATA_FILES = ["status-bar-logo.png", "status-bar-logo--dark.png"]
OPTIONS = {
"iconfile":"./assets/gq.icns",
"plist": {
"CFBundl... | 23.060606 | 65 | 0.634691 | 82 | 761 | 5.829268 | 0.634146 | 0.056485 | 0.054393 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016529 | 0.204993 | 761 | 33 | 66 | 23.060606 | 0.773554 | 0.022339 | 0 | 0 | 1 | 0 | 0.461656 | 0.118098 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043478 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9352862472804182f6ff78dfa5acae79e4f0c5ce | 476 | py | Python | gist_set.py | devnoname120/gist-alfred | 5e918566254b6891241be3ad6e2f6c77959052ff | [
"MIT"
] | 113 | 2015-06-24T19:36:22.000Z | 2022-03-05T05:15:49.000Z | gist_set.py | devnoname120/gist-alfred | 5e918566254b6891241be3ad6e2f6c77959052ff | [
"MIT"
] | 18 | 2016-05-03T08:21:54.000Z | 2022-03-26T18:24:21.000Z | gist_set.py | devnoname120/gist-alfred | 5e918566254b6891241be3ad6e2f6c77959052ff | [
"MIT"
] | 13 | 2015-07-02T03:16:04.000Z | 2022-03-15T10:42:38.000Z | #!/usr/bin/python
# encoding: utf-8
from collections import Counter
from gist import create_workflow
from pprint import pprint as pp
import sys
import workflow
from workflow import Workflow, web
from workflow.background import run_in_background, is_running
def main(wf):
arg = wf.args[0]
wf.add_item(u"Set tok... | 21.636364 | 74 | 0.735294 | 74 | 476 | 4.527027 | 0.594595 | 0.083582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005 | 0.159664 | 476 | 21 | 75 | 22.666667 | 0.8325 | 0.067227 | 0 | 0 | 0 | 0 | 0.072398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.5 | 0 | 0.571429 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
936f55fdfaa40d9286b2780e20a668166b6fc40f | 273 | py | Python | backfill/save_to_gcs.py | grollins/quandl-gcp-pipeline | 1b6c247fb3ad1ee33bd3cf363d119c124b8e26b2 | [
"MIT"
] | null | null | null | backfill/save_to_gcs.py | grollins/quandl-gcp-pipeline | 1b6c247fb3ad1ee33bd3cf363d119c124b8e26b2 | [
"MIT"
] | null | null | null | backfill/save_to_gcs.py | grollins/quandl-gcp-pipeline | 1b6c247fb3ad1ee33bd3cf363d119c124b8e26b2 | [
"MIT"
] | null | null | null | from google.cloud import storage
GCS_CLIENT = storage.Client()
GCS_BUCKET = GCS_CLIENT.get_bucket('senpai-io.appspot.com')
path = 'quandl-stage/backfill_data_jan2015_mar2018.csv'
blob = GCS_BUCKET.blob(path)
blob.upload_from_filename(filename='data_jan2015_mar2018.csv')
| 30.333333 | 62 | 0.81685 | 41 | 273 | 5.146341 | 0.585366 | 0.085308 | 0.170616 | 0.199052 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062992 | 0.069597 | 273 | 8 | 63 | 34.125 | 0.767717 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9373256a577124b3122a3c2bb32ac8963415c16e | 5,229 | py | Python | rest_api/views/doc_users.py | AktanKasymaliev/django_MyDentKg_backend | ede10d33028d36035b22e1e1dec916d773fecff6 | [
"MIT"
] | null | null | null | rest_api/views/doc_users.py | AktanKasymaliev/django_MyDentKg_backend | ede10d33028d36035b22e1e1dec916d773fecff6 | [
"MIT"
] | null | null | null | rest_api/views/doc_users.py | AktanKasymaliev/django_MyDentKg_backend | ede10d33028d36035b22e1e1dec916d773fecff6 | [
"MIT"
] | null | null | null | from rest_framework import generics
from rest_framework import response
from rest_framework.permissions import AllowAny, IsAuthenticated
from rest_framework.views import APIView
from rest_api.serializers.doc_serializers import (DoctorRegisterSerializer,
DoctorUsersSerializer, DoctorLoginSerializer, Doct... | 43.214876 | 126 | 0.673934 | 528 | 5,229 | 6.507576 | 0.282197 | 0.054424 | 0.052969 | 0.030268 | 0.1461 | 0.103027 | 0.075378 | 0.052387 | 0.029686 | 0.029686 | 0 | 0.00621 | 0.230063 | 5,229 | 121 | 127 | 43.214876 | 0.847243 | 0 | 0 | 0.142857 | 0 | 0 | 0.086807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.114286 | 0.142857 | 0.019048 | 0.514286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
fa79e9f429253026bc9c0f924d862a6178140da0 | 1,156 | py | Python | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/common/djangoapps/util/monitoring.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 3 | 2021-12-15T04:58:18.000Z | 2022-02-06T12:15:37.000Z | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/common/djangoapps/util/monitoring.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | null | null | null | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/common/djangoapps/util/monitoring.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 1 | 2019-01-02T14:38:50.000Z | 2019-01-02T14:38:50.000Z | """Helper methods for monitoring of events."""
from edx_django_utils.monitoring import set_custom_attribute, set_custom_attributes_for_course_key
def monitor_import_failure(course_key, import_step, message=None, exception=None):
"""
Helper method to add custom parameters to for import failures.
Arguments:... | 41.285714 | 98 | 0.745675 | 142 | 1,156 | 5.619718 | 0.352113 | 0.078947 | 0.112782 | 0.120301 | 0.275689 | 0.275689 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0.179931 | 1,156 | 27 | 99 | 42.814815 | 0.841772 | 0.24308 | 0 | 0 | 0 | 0 | 0.22542 | 0.21223 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.461538 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
fa7c044effd2fd98d0d77b1344bdf8fa952165a5 | 482 | py | Python | day-02/python/part2.py | kayew/aoc-2020 | 55ea804c983aef4d3a7e159403247ec23a47aa10 | [
"MIT"
] | null | null | null | day-02/python/part2.py | kayew/aoc-2020 | 55ea804c983aef4d3a7e159403247ec23a47aa10 | [
"MIT"
] | null | null | null | day-02/python/part2.py | kayew/aoc-2020 | 55ea804c983aef4d3a7e159403247ec23a47aa10 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
file = open(sys.argv[1], "r")
total = 0
for line in file:
letterMatch = 0
param = line.split()
passIndex = [int(x) for x in param[0].split('-')]
targetLetter = param[1][0]
password = param[2]
if password[passIndex[0]-1] == targetLetter:
letterMatch +... | 19.28 | 53 | 0.591286 | 66 | 482 | 4.318182 | 0.439394 | 0.126316 | 0.133333 | 0.175439 | 0.189474 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044199 | 0.248963 | 482 | 24 | 54 | 20.083333 | 0.743094 | 0.043568 | 0 | 0.117647 | 0 | 0 | 0.034783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.235294 | 0.058824 | 0 | 0.058824 | 0.058824 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
fa98db342baff8386700db039d9f97d991e6637e | 2,648 | py | Python | tests/conftest.py | Peter-Metz/taxdata | ee4d401979f48bbbe392bbfba1b571233fec3495 | [
"CC0-1.0"
] | null | null | null | tests/conftest.py | Peter-Metz/taxdata | ee4d401979f48bbbe392bbfba1b571233fec3495 | [
"CC0-1.0"
] | null | null | null | tests/conftest.py | Peter-Metz/taxdata | ee4d401979f48bbbe392bbfba1b571233fec3495 | [
"CC0-1.0"
] | null | null | null | import os
import json
import pytest
import pandas as pd
# TODO: revise the following constants when using new or revised CPS/PUF data
CPS_START_YEAR = 2014
PUF_START_YEAR = 2011
PUF_COUNT = 248591
LAST_YEAR = 2027
@pytest.fixture(scope='session')
def test_path():
return os.path.abspath(os.path.dirname(__file__)... | 24.293578 | 77 | 0.702795 | 415 | 2,648 | 4.240964 | 0.185542 | 0.086364 | 0.153409 | 0.213068 | 0.597159 | 0.506818 | 0.316477 | 0.132955 | 0.054545 | 0.054545 | 0 | 0.01255 | 0.157477 | 2,648 | 108 | 78 | 24.518519 | 0.776333 | 0.070242 | 0 | 0.315068 | 0 | 0 | 0.146461 | 0.075671 | 0 | 0 | 0 | 0.009259 | 0 | 1 | 0.205479 | false | 0 | 0.054795 | 0.082192 | 0.479452 | 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 | 0 | 0 | 0 | 2 |
fa9a48ce8dbd9143921b6d9a6aaa68457aed7d58 | 3,353 | py | Python | sixx/plugins/utils/converters.py | TildeBeta/6X | 1814eb8f394b7c25b49decdd7d7249567c85f30f | [
"MIT"
] | 2 | 2018-03-06T20:39:49.000Z | 2018-03-17T04:28:57.000Z | sixx/plugins/utils/converters.py | TildeBeta/TwitterImages | 1814eb8f394b7c25b49decdd7d7249567c85f30f | [
"MIT"
] | 2 | 2018-03-06T20:39:46.000Z | 2018-03-15T17:03:03.000Z | sixx/plugins/utils/converters.py | TildeBeta/TwitterImages | 1814eb8f394b7c25b49decdd7d7249567c85f30f | [
"MIT"
] | 1 | 2018-04-25T22:24:40.000Z | 2018-04-25T22:24:40.000Z | from math import sqrt
import re
from curious.commands import Context
from curious.commands.exc import ConversionFailedError
from typing import Tuple
colour_pattern = re.compile(r'(#|0x)?([A-Za-z0-9]{1,6})')
RGB = Tuple[int, int, int]
class Colour:
"""
A class that represents a colour.
"""
def __ini... | 25.022388 | 101 | 0.593498 | 458 | 3,353 | 4.240175 | 0.344978 | 0.027806 | 0.020082 | 0.026262 | 0.209063 | 0.160659 | 0.123584 | 0.123584 | 0.056643 | 0.056643 | 0 | 0.044676 | 0.285714 | 3,353 | 133 | 102 | 25.210526 | 0.76618 | 0.197137 | 0 | 0.150685 | 0 | 0 | 0.066303 | 0.022621 | 0 | 0 | 0 | 0.007519 | 0 | 1 | 0.219178 | false | 0.013699 | 0.068493 | 0.109589 | 0.575342 | 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 | 0 | 0 | 0 | 2 |
fa9b854e0bf31a77452586413b7c4fd1b1f19d69 | 85 | py | Python | tests/plugins/tool/docformatter_tool_plugin/valid_package/wrong.py | kogut/statick | 6cbe43b5ac78275a12af3ac5aa325833368d0767 | [
"CC0-1.0"
] | 54 | 2018-08-27T19:12:41.000Z | 2022-03-31T04:16:40.000Z | tests/plugins/tool/docformatter_tool_plugin/valid_package/wrong.py | gregtkogut/statick | 11a8f950d50b52903a25f4f00c7cd52a90eff56c | [
"CC0-1.0"
] | 288 | 2018-08-28T13:17:44.000Z | 2022-03-21T20:05:19.000Z | tests/plugins/tool/docformatter_tool_plugin/valid_package/wrong.py | gregtkogut/statick | 11a8f950d50b52903a25f4f00c7cd52a90eff56c | [
"CC0-1.0"
] | 12 | 2018-08-28T13:18:39.000Z | 2022-03-21T19:27:16.000Z | '''
Docstring with single quotes instead of double quotes.
'''
my_str = "not an int"
| 17 | 54 | 0.705882 | 13 | 85 | 4.538462 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 85 | 4 | 55 | 21.25 | 0.842857 | 0.635294 | 0 | 0 | 0 | 0 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fa9fe5acc3c1efc2638d84976321625ca2613512 | 3,299 | py | Python | src/scs_core/data/histogram.py | seoss/scs_core | 0d4323c5697a39eb44a887f179ba5dca3716c1d2 | [
"MIT"
] | null | null | null | src/scs_core/data/histogram.py | seoss/scs_core | 0d4323c5697a39eb44a887f179ba5dca3716c1d2 | [
"MIT"
] | null | null | null | src/scs_core/data/histogram.py | seoss/scs_core | 0d4323c5697a39eb44a887f179ba5dca3716c1d2 | [
"MIT"
] | null | null | null | """
Created on 9 Aug 2016
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
"""
import _csv
import sys
# --------------------------------------------------------------------------------------------------------------------
class Histogram(object):
"""
classdocs
"""
__HEADER_BIN = ".bin"
... | 24.992424 | 118 | 0.461352 | 309 | 3,299 | 4.556634 | 0.242718 | 0.068182 | 0.089489 | 0.036222 | 0.107955 | 0.03267 | 0.03267 | 0 | 0 | 0 | 0 | 0.006002 | 0.242498 | 3,299 | 131 | 119 | 25.183206 | 0.557423 | 0.254623 | 0 | 0.15873 | 0 | 0.015873 | 0.056549 | 0.010395 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.031746 | 0.174603 | 0.492063 | 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 | 0 | 0 | 0 | 2 |
faaad1e0a17c9ccfde15b59721ef3b9545cff063 | 871 | py | Python | tests/test_vera.py | j-faria/vera | 96cbdb61c98c3527416611155b29a03a2bc66b15 | [
"MIT"
] | null | null | null | tests/test_vera.py | j-faria/vera | 96cbdb61c98c3527416611155b29a03a2bc66b15 | [
"MIT"
] | null | null | null | tests/test_vera.py | j-faria/vera | 96cbdb61c98c3527416611155b29a03a2bc66b15 | [
"MIT"
] | null | null | null | # import pytest
def test_imports():
import vera
from vera import RV
def test_dace():
from vera.query_dace import get_observations
_ = get_observations('HD10180', verbose=False)
def test_read_rdb():
from vera import RV
from os.path import dirname, join
here = dirname(__file__)
s = R... | 18.531915 | 70 | 0.652124 | 128 | 871 | 4.296875 | 0.4375 | 0.076364 | 0.127273 | 0.058182 | 0.163636 | 0.109091 | 0.109091 | 0 | 0 | 0 | 0 | 0.036866 | 0.252583 | 871 | 46 | 71 | 18.934783 | 0.807988 | 0.057405 | 0 | 0.275862 | 0 | 0 | 0.085679 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 1 | 0.206897 | false | 0 | 0.344828 | 0 | 0.551724 | 0.068966 | 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 | 0 | 0 | 0 | 2 |
fabe4605f255d398162a6669d4a99f004a58a723 | 6,380 | py | Python | qchem/tests/test_two_particle.py | theRoughCode/pennylane | 317f82ef00c752beeef7d2412b88119a753467b4 | [
"Apache-2.0"
] | 1 | 2020-10-15T01:09:27.000Z | 2020-10-15T01:09:27.000Z | qchem/tests/test_two_particle.py | theRoughCode/pennylane | 317f82ef00c752beeef7d2412b88119a753467b4 | [
"Apache-2.0"
] | 1 | 2020-10-04T22:45:45.000Z | 2020-10-04T22:45:45.000Z | qchem/tests/test_two_particle.py | theRoughCode/pennylane | 317f82ef00c752beeef7d2412b88119a753467b4 | [
"Apache-2.0"
] | null | null | null | import os
import numpy as np
import pytest
from pennylane import qchem
from openfermion.hamiltonians import MolecularData
ref_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "test_ref_files")
table_1 = np.array(
[
[0.0, 0.0, 0.0, 0.0, 0.68238953],
[0.0, 1.0, 1.0, 0.0, 0.68238953]... | 37.529412 | 92 | 0.487461 | 1,343 | 6,380 | 2.266567 | 0.077439 | 0.185283 | 0.130092 | 0.098555 | 0.679698 | 0.580815 | 0.554534 | 0.406045 | 0.31406 | 0.059133 | 0 | 0.390291 | 0.273511 | 6,380 | 169 | 93 | 37.751479 | 0.266451 | 0.053448 | 0 | 0.026846 | 0 | 0 | 0.054688 | 0 | 0 | 0 | 0 | 0 | 0.013423 | 1 | 0.013423 | false | 0 | 0.033557 | 0 | 0.04698 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fade8de862f192db4db57a6e8e338b8eea806aa8 | 1,628 | py | Python | tests/prosperpy/overlays/test_bollinger_bands.py | CaptainBriot/prosperpy | 831abb9c9e3b730c81895647e33a59854c4e4648 | [
"MIT"
] | 2 | 2018-01-28T06:11:37.000Z | 2018-02-04T16:01:30.000Z | tests/prosperpy/overlays/test_bollinger_bands.py | CaptainBriot/prosperpy | 831abb9c9e3b730c81895647e33a59854c4e4648 | [
"MIT"
] | 1 | 2018-03-20T12:10:40.000Z | 2018-03-21T00:08:04.000Z | tests/prosperpy/overlays/test_bollinger_bands.py | CaptainBriot/prosperpy | 831abb9c9e3b730c81895647e33a59854c4e4648 | [
"MIT"
] | 2 | 2019-04-06T14:33:26.000Z | 2020-06-25T23:34:32.000Z | import unittest
import decimal
import prosperpy
def get_prices():
prices = ['90.704', '92.900', '92.978', '91.802', '92.665', '92.684', '92.302', '92.773', '92.537', '92.949',
'93.204', '91.067', '89.832', '89.744', '90.399', '90.739', '88.018', '88.087', '88.844', '90.778',
'90.542',... | 49.333333 | 113 | 0.651106 | 199 | 1,628 | 5.246231 | 0.422111 | 0.12069 | 0.16092 | 0.194444 | 0.220307 | 0.090038 | 0.090038 | 0 | 0 | 0 | 0 | 0.253743 | 0.179361 | 1,628 | 32 | 114 | 50.875 | 0.527695 | 0 | 0 | 0 | 0 | 0 | 0.226044 | 0 | 0 | 0 | 0 | 0 | 0.28 | 1 | 0.08 | false | 0 | 0.12 | 0 | 0.28 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
faedb7593b3fda8461621c6c98b5de97e2ad88e0 | 1,064 | py | Python | test/integration/test_natural_language_understanding_v1.py | jsstylos/waston-developer-cloud-python-sdk | 97de097b8c86622ab2f30f5386bb74321d28addf | [
"Apache-2.0"
] | 1,579 | 2015-10-08T14:02:17.000Z | 2022-02-28T10:49:21.000Z | test/integration/test_natural_language_understanding_v1.py | jsstylos/waston-developer-cloud-python-sdk | 97de097b8c86622ab2f30f5386bb74321d28addf | [
"Apache-2.0"
] | 749 | 2015-10-08T20:00:24.000Z | 2022-03-21T21:33:17.000Z | test/integration/test_natural_language_understanding_v1.py | jsstylos/waston-developer-cloud-python-sdk | 97de097b8c86622ab2f30f5386bb74321d28addf | [
"Apache-2.0"
] | 1,006 | 2015-10-24T06:30:58.000Z | 2022-03-23T07:10:04.000Z | # coding: utf-8
from unittest import TestCase
import os
import ibm_watson
import pytest
import json
import time
from ibm_watson.natural_language_understanding_v1 import Features, EntitiesOptions, KeywordsOptions
@pytest.mark.skipif(os.getenv('NATURAL_LANGUAGE_UNDERSTANDING_APIKEY') is None,
reason=... | 39.407407 | 109 | 0.727444 | 120 | 1,064 | 6.266667 | 0.55 | 0.119681 | 0.223404 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016222 | 0.18891 | 1,064 | 26 | 110 | 40.923077 | 0.855156 | 0.012218 | 0 | 0 | 0 | 0 | 0.21163 | 0.094376 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.090909 | false | 0 | 0.318182 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
fafb8734f2572ef0c2b5074b37edc6e0b8a53374 | 1,070 | py | Python | test_credentialData.py | mireille1999/Credential-Locker | fc7e8c9035a3d89c889ab7db603eec4ec3d62522 | [
"Unlicense"
] | null | null | null | test_credentialData.py | mireille1999/Credential-Locker | fc7e8c9035a3d89c889ab7db603eec4ec3d62522 | [
"Unlicense"
] | null | null | null | test_credentialData.py | mireille1999/Credential-Locker | fc7e8c9035a3d89c889ab7db603eec4ec3d62522 | [
"Unlicense"
] | null | null | null | import unittest
from credentialData import CredentialData
class TestCredentials(unittest.TestCase):
def setUp(self):
"""
setUp method
"""
self.new_credential = CredentialData("Instagram", "mimi", "mireille")
def test_init(self):
"""
testing initialization
... | 26.75 | 89 | 0.648598 | 100 | 1,070 | 6.74 | 0.38 | 0.051929 | 0.126113 | 0.097923 | 0.142433 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001244 | 0.248598 | 1,070 | 39 | 90 | 27.435897 | 0.837065 | 0.111215 | 0 | 0 | 0 | 0 | 0.058275 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 1 | 0.277778 | false | 0.055556 | 0.111111 | 0 | 0.444444 | 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 | 0 | 0 | 0 | 2 |
4f0149cb740276e036ceef0f9256600992cdaaba | 338 | py | Python | timetest.py | schaibo/gpio- | 67843aa3869662ad87e9c23914bc0c1ff9f4e2bb | [
"Apache-2.0"
] | null | null | null | timetest.py | schaibo/gpio- | 67843aa3869662ad87e9c23914bc0c1ff9f4e2bb | [
"Apache-2.0"
] | null | null | null | timetest.py | schaibo/gpio- | 67843aa3869662ad87e9c23914bc0c1ff9f4e2bb | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Jan 26 16:01:59 2014
@author: pi
"""
import time
def delay(i):
k=0
for j in range(i):
k+=1
n=5000
j=0
a=time.time()
i=1
c=time.time()
d=c-a
print d
a=time.time()
for i in range(n):
j+=1
c=time.time()
d=c-a
print d
a=time.time()
delay(n)
c=time.tim... | 9.941176 | 35 | 0.56213 | 76 | 338 | 2.5 | 0.421053 | 0.252632 | 0.142105 | 0.157895 | 0.389474 | 0.389474 | 0.389474 | 0.389474 | 0.294737 | 0.294737 | 0 | 0.085271 | 0.236686 | 338 | 33 | 36 | 10.242424 | 0.651163 | 0.06213 | 0 | 0.521739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043478 | null | null | 0.130435 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4f0516d6a42f51c998184fee233eec9bb65f272a | 427 | py | Python | codewars/7kyu/mohamedashrafamin/Ultimate_Array_Reverser/test_bench.py | mohamedashrafamin/Training_one | 11748fdde85cdc9083e2b0bde7519b51a7acfa62 | [
"MIT"
] | null | null | null | codewars/7kyu/mohamedashrafamin/Ultimate_Array_Reverser/test_bench.py | mohamedashrafamin/Training_one | 11748fdde85cdc9083e2b0bde7519b51a7acfa62 | [
"MIT"
] | 2 | 2019-01-22T10:53:42.000Z | 2019-01-31T08:02:48.000Z | codewars/7kyu/mohamedashrafamin/Ultimate_Array_Reverser/test_bench.py | mohamedashrafamin/Training_one | 11748fdde85cdc9083e2b0bde7519b51a7acfa62 | [
"MIT"
] | 13 | 2019-01-22T10:37:42.000Z | 2019-01-25T13:30:43.000Z | from main import reverse, reverse1
def test1(benchmark):
assert benchmark(reverse, ["I", "like", "big", "butts", "and", "I", "cannot", "lie!"]) == \
["!", "eilt", "onn", "acIdn", "ast", "t", "ubgibe", "kilI"]
def test(benchmark):
assert benchmark(reverse1, ["I", "like", "big", "butts", "and", "I"... | 32.846154 | 96 | 0.508197 | 49 | 427 | 4.428571 | 0.510204 | 0.138249 | 0.221198 | 0.119816 | 0.479263 | 0.479263 | 0.479263 | 0.479263 | 0.479263 | 0.479263 | 0 | 0.008772 | 0.199063 | 427 | 13 | 97 | 32.846154 | 0.625731 | 0.016393 | 0 | 0.285714 | 0 | 0 | 0.257757 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4f06852d79a4234cb404a8d1df2fcff4ed2b0dcb | 2,356 | py | Python | rodario/registry.py | haliphax/rodario | c31f9a99f80a19cd911edb61e86f4050003dbd90 | [
"MIT"
] | 4 | 2015-08-18T16:54:38.000Z | 2021-02-21T13:07:08.000Z | rodario/registry.py | haliphax/rodario | c31f9a99f80a19cd911edb61e86f4050003dbd90 | [
"MIT"
] | 14 | 2015-08-29T06:04:52.000Z | 2017-04-12T17:58:09.000Z | rodario/registry.py | haliphax/rodario | c31f9a99f80a19cd911edb61e86f4050003dbd90 | [
"MIT"
] | 2 | 2016-10-14T21:27:54.000Z | 2017-05-07T12:59:08.000Z | """ Actor registry for rodario framework """
# local
from rodario import get_redis_connection
from rodario.exceptions import RegistrationException
# pylint: disable=C1001
class _RegistrySingleton(object):
""" Singleton for actor registry """
def __init__(self, prefix=None):
"""
Initialize t... | 24.28866 | 70 | 0.604414 | 262 | 2,356 | 5.29771 | 0.305344 | 0.034582 | 0.034582 | 0.032421 | 0.152017 | 0.126801 | 0.126801 | 0.126801 | 0.126801 | 0.126801 | 0 | 0.008469 | 0.298387 | 2,356 | 96 | 71 | 24.541667 | 0.831216 | 0.387521 | 0 | 0 | 0 | 0 | 0.055131 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269231 | false | 0 | 0.115385 | 0 | 0.653846 | 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 | 0 | 1 | 0 | 0 | 2 |
877c7d49d1b9f81b157093af1820422a112322bb | 4,069 | py | Python | main.py | artin222/Password-generator | 7649377b578267b899737b4f7d312bc2b489cc0e | [
"MIT"
] | 1 | 2021-11-20T13:47:27.000Z | 2021-11-20T13:47:27.000Z | main.py | artin222/Password-generator | 7649377b578267b899737b4f7d312bc2b489cc0e | [
"MIT"
] | null | null | null | main.py | artin222/Password-generator | 7649377b578267b899737b4f7d312bc2b489cc0e | [
"MIT"
] | null | null | null | from csv import reader , writer
from random import randrange
#These are lists of characters that program can use to generate password
smlLetters = ["a" , "b" , "c" , "d" , "e" , "f" , "g" , "h" , "i" , "j" ,
"k" , "l" , "m" , "n" , "o" , "p" , "q" , "r" , "s" , "t" , "u" , "v" , "w" ,
"x" , "y" , "z"]
capLetters = [... | 42.831579 | 141 | 0.632834 | 502 | 4,069 | 5.129482 | 0.294821 | 0.023301 | 0.042718 | 0.034175 | 0.380971 | 0.354563 | 0.328544 | 0.328544 | 0.328544 | 0.258641 | 0 | 0.012428 | 0.228803 | 4,069 | 94 | 142 | 43.287234 | 0.808158 | 0.074711 | 0 | 0.15625 | 1 | 0.015625 | 0.282522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0.296875 | 0.03125 | 0 | 0.078125 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
8786ee9f99a430b3faffc52d450268f38a85e338 | 368 | py | Python | pythonforandroid/recipes/android/__init__.py | inclement/p4a-experiment | 4e120e08cc3c33af89948307628c8b28fdf76b87 | [
"MIT"
] | 1 | 2015-06-09T21:12:09.000Z | 2015-06-09T21:12:09.000Z | pythonforandroid/recipes/android/__init__.py | inclement/p4a-experiment | 4e120e08cc3c33af89948307628c8b28fdf76b87 | [
"MIT"
] | null | null | null | pythonforandroid/recipes/android/__init__.py | inclement/p4a-experiment | 4e120e08cc3c33af89948307628c8b28fdf76b87 | [
"MIT"
] | null | null | null |
from pythonforandroid.toolchain import CythonRecipe, shprint, ensure_dir, current_directory, ArchAndroid, IncludedFilesBehaviour
import sh
from os.path import exists, join
class AndroidRecipe(IncludedFilesBehaviour, CythonRecipe):
# name = 'android'
version = None
url = None
depends = ['pygame']
... | 23 | 128 | 0.75 | 37 | 368 | 7.378378 | 0.783784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171196 | 368 | 15 | 129 | 24.533333 | 0.895082 | 0.043478 | 0 | 0 | 0 | 0 | 0.025788 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.888889 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
8793f9ea482d0f9374dda4215d86b8945f6bf480 | 1,709 | py | Python | api/tiposrefeicao.py | Guergeiro/bd2-group2 | 34520e40ef915dc7bb89486ac2322f8994ac9862 | [
"MIT"
] | null | null | null | api/tiposrefeicao.py | Guergeiro/bd2-group2 | 34520e40ef915dc7bb89486ac2322f8994ac9862 | [
"MIT"
] | 12 | 2019-11-17T21:22:49.000Z | 2020-01-19T18:10:00.000Z | api/tiposrefeicao.py | Guergeiro/bd2-group2 | 34520e40ef915dc7bb89486ac2322f8994ac9862 | [
"MIT"
] | 2 | 2019-11-15T16:47:21.000Z | 2019-11-17T13:59:40.000Z | from flask import Blueprint, request
import json
import databaseutils as utils
tiposrefeicao = Blueprint("tiposrefeicao", __name__)
tiposrefeicaoColumns = ["cod_tiporefeicao", "designacao"]
@tiposrefeicao.route("/api/tiposrefeicao", methods=["GET"])
@tiposrefeicao.route("/api/tiposrefeicao/", methods=["GET"])
def g... | 37.152174 | 88 | 0.715038 | 162 | 1,709 | 7.407407 | 0.234568 | 0.1625 | 0.175 | 0.283333 | 0.576667 | 0.481667 | 0.333333 | 0.333333 | 0.126667 | 0.126667 | 0 | 0 | 0.128145 | 1,709 | 46 | 89 | 37.152174 | 0.805369 | 0 | 0 | 0.117647 | 0 | 0 | 0.383041 | 0.263743 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147059 | false | 0 | 0.088235 | 0.147059 | 0.382353 | 0.058824 | 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 | 0 | 0 | 0 | 2 |
87a0c198aaf64fb0040e08381e0e0853c27aa4ce | 1,483 | py | Python | settings.py | vboginskey/cribfinder | fe89717b5ed503a42100069cad966f82b495d7b5 | [
"MIT"
] | null | null | null | settings.py | vboginskey/cribfinder | fe89717b5ed503a42100069cad966f82b495d7b5 | [
"MIT"
] | null | null | null | settings.py | vboginskey/cribfinder | fe89717b5ed503a42100069cad966f82b495d7b5 | [
"MIT"
] | null | null | null | import os
CRAIGSLIST_SITE = 'newjersey'
CRAIGSLIST_CATEGORY = 'apa'
MIN_FT2 = 900
MIN_PRICE = 1500
MAX_PRICE = 3000
MAX_TRANSIT_DISTANCE = 0.75
BOXES = {
"Hoboken": [40.734966101, -74.0439891815, 40.7529789172, -74.0192699432],
"The Heights": [40.7332100782, -74.0573787689, 40.7615609255, -74.0378093719],
... | 34.488372 | 84 | 0.645314 | 190 | 1,483 | 4.984211 | 0.536842 | 0.085533 | 0.104541 | 0.041183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.352459 | 0.177343 | 1,483 | 42 | 85 | 35.309524 | 0.42377 | 0 | 0 | 0 | 0 | 0 | 0.286581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029412 | 0 | 0.029412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
87a2ad1b1b371bea7b87cb1eb38aeedd4b3b8d00 | 210 | py | Python | q5.py | fairoz-ahmed/Python_Practice | e498f81fca02f0773f1c6e9f93e5f1cf1f94eb89 | [
"MIT"
] | null | null | null | q5.py | fairoz-ahmed/Python_Practice | e498f81fca02f0773f1c6e9f93e5f1cf1f94eb89 | [
"MIT"
] | null | null | null | q5.py | fairoz-ahmed/Python_Practice | e498f81fca02f0773f1c6e9f93e5f1cf1f94eb89 | [
"MIT"
] | null | null | null | class Input_data():
def __init__(self):
self.s=''
def getString(self):
self.s = input()
def printString(self):
print(self.s.upper())
strobj=Input_data()
strobj.getString()
strobj.printString() | 21 | 24 | 0.67619 | 28 | 210 | 4.857143 | 0.428571 | 0.110294 | 0.132353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157143 | 210 | 10 | 25 | 21 | 0.768362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0 | 0.4 | 0.3 | 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 | 0 | 0 | 0 | 2 |
87ae65900773758ea1e8c983d49e6f56cd93b9ec | 795 | py | Python | clone/views.py | kurian-thomas/neuralcloning | 1458aeeaef6be32a11079a66d09fb94feeeba8c1 | [
"MIT"
] | 9 | 2018-11-15T16:50:59.000Z | 2021-10-05T09:58:36.000Z | clone/views.py | kurian-thomas/neuralcloning | 1458aeeaef6be32a11079a66d09fb94feeeba8c1 | [
"MIT"
] | null | null | null | clone/views.py | kurian-thomas/neuralcloning | 1458aeeaef6be32a11079a66d09fb94feeeba8c1 | [
"MIT"
] | 6 | 2018-11-26T05:38:34.000Z | 2021-03-30T16:30:21.000Z | from django.shortcuts import render, HttpResponse
from django.views.decorators.csrf import csrf_exempt
import os
import base64
# from .celery_test import test
# from clone_script import clone
def index(request):
return render(request, 'clone/index.html')
def results(request):
return render(request, 'clone/results.... | 25.645161 | 52 | 0.719497 | 105 | 795 | 5.4 | 0.47619 | 0.068783 | 0.100529 | 0.137566 | 0.164021 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017518 | 0.138365 | 795 | 31 | 53 | 25.645161 | 0.810219 | 0.106918 | 0 | 0 | 0 | 0 | 0.13881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.136364 | 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 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
87b8e5d4a4c403c1e33d8ea9c1529f056cb42aa0 | 646 | py | Python | mapnik_style_generator/utils/PandasMerge.py | sjsafranek/GeoTileServer | 4f39ce3b6dc5bd374d4a683fd7a425e950b218f0 | [
"MIT"
] | 1 | 2017-09-29T21:30:33.000Z | 2017-09-29T21:30:33.000Z | mapnik_style_generator/utils/PandasMerge.py | sjsafranek/go-tileserver | 5453186b5c00281588aeba82311bea8ddf8d8ae2 | [
"BSD-3-Clause"
] | null | null | null | mapnik_style_generator/utils/PandasMerge.py | sjsafranek/go-tileserver | 5453186b5c00281588aeba82311bea8ddf8d8ae2 | [
"BSD-3-Clause"
] | null | null | null | #table join
#stefan safranek
import csv, os, sys, time
import pandas as pd
start_time = time.time() #start time
#File 1
IMPORT_FILE = "Burns_wO_LnLID.csv"
SAVE_FILE = IMPORT_FILE.replace('.csv','') + " MATCHED.csv"
df1 = pd.read_csv("Burns HD 58.csv", index_col=None, usecols=[0,1,2,4], parse_dates=True... | 22.275862 | 90 | 0.690402 | 111 | 646 | 3.801802 | 0.459459 | 0.094787 | 0.078199 | 0.090047 | 0.184834 | 0.184834 | 0.104265 | 0 | 0 | 0 | 0 | 0.029358 | 0.156347 | 646 | 28 | 91 | 23.071429 | 0.744954 | 0.157895 | 0 | 0 | 0 | 0 | 0.143984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.416667 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
87cc1d411068ff6128e0109b9dbc111a69527c35 | 3,218 | py | Python | client/netmgr.py | kendase3/every | 83b543c54a2dd071f0a34f128c5baa20a7e58def | [
"BSD-2-Clause"
] | 1 | 2017-06-12T18:36:20.000Z | 2017-06-12T18:36:20.000Z | client/netmgr.py | kendase3/every | 83b543c54a2dd071f0a34f128c5baa20a7e58def | [
"BSD-2-Clause"
] | null | null | null | client/netmgr.py | kendase3/every | 83b543c54a2dd071f0a34f128c5baa20a7e58def | [
"BSD-2-Clause"
] | null | null | null |
from twisted.internet import defer, reactor
from twisted.protocols import basic
from twisted.internet.protocol import Protocol, ReconnectingClientFactory
from time import sleep
# local
import screen
import stevent
class NetMgr:
"""
new abstraction:
1) this module receives the latest screen from the server.
2)... | 25.951613 | 114 | 0.711933 | 436 | 3,218 | 5.21789 | 0.394495 | 0.043956 | 0.014505 | 0.026374 | 0.076484 | 0.076484 | 0.031648 | 0.031648 | 0 | 0 | 0 | 0.003467 | 0.193288 | 3,218 | 123 | 115 | 26.162602 | 0.872881 | 0.175264 | 0 | 0.136986 | 0 | 0 | 0.078807 | 0 | 0 | 0 | 0 | 0.01626 | 0 | 0 | null | null | 0 | 0.082192 | null | null | 0.082192 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
87d6924e02630e60ee58f3ea397ba2d39e4eb305 | 442 | py | Python | set_input.py | oinu32/discordpy-startup | 9ef948d1811beba71aa44051b23b5a59adac0500 | [
"MIT"
] | 1 | 2020-01-09T16:29:25.000Z | 2020-01-09T16:29:25.000Z | set_input.py | oinu32/discordpy-startup | 9ef948d1811beba71aa44051b23b5a59adac0500 | [
"MIT"
] | null | null | null | set_input.py | oinu32/discordpy-startup | 9ef948d1811beba71aa44051b23b5a59adac0500 | [
"MIT"
] | null | null | null | #AGNET
# 該当のチャンネルのID
ID_CHANNEL_README = 771383900814573598
#たすきる
ID_ROLE_TSKL = 671354476044615680
#たすきる用ちゃんねるID(とつかんり)
ID_TSKILL = 624668843444273164
#とつ予定(とつかんり)
ID_totu = 739498595329376487
#とつ予定じゃり
ID_totu2 = 750321508219355227
#さーばーID
ID_SRV = 539773033724772362
#agnet
ID_agnet = 549971775828656168
ID_alist =... | 15.785714 | 38 | 0.830317 | 47 | 442 | 7.510638 | 0.617021 | 0.050992 | 0.062323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.461735 | 0.113122 | 442 | 27 | 39 | 16.37037 | 0.438776 | 0.210407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
87fbec4be50353beb91a6993ffce8b10edc30d98 | 679 | py | Python | cctbx_website/run_tests.py | dwpaley/cctbx_project | 476428363d260126319e82aa24d1e79b6474d877 | [
"BSD-3-Clause-LBNL"
] | null | null | null | cctbx_website/run_tests.py | dwpaley/cctbx_project | 476428363d260126319e82aa24d1e79b6474d877 | [
"BSD-3-Clause-LBNL"
] | null | null | null | cctbx_website/run_tests.py | dwpaley/cctbx_project | 476428363d260126319e82aa24d1e79b6474d877 | [
"BSD-3-Clause-LBNL"
] | null | null | null | from __future__ import absolute_import, division, print_function
from libtbx import test_utils
import libtbx.load_env
#tst_list = [
# "$D/regression/tst_py_from_html.py"
# ]
tst_list = [
"$D/regression/tst_1_template.py",
"$D/regression/tst_2_doc_high_level_objects.py",
"$D/regression/tst_3_doc_model_manager.... | 25.148148 | 64 | 0.755523 | 108 | 679 | 4.231481 | 0.425926 | 0.16849 | 0.214442 | 0.175055 | 0.242888 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009934 | 0.110457 | 679 | 26 | 65 | 26.115385 | 0.746689 | 0.076583 | 0 | 0 | 0 | 0 | 0.434295 | 0.379808 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.176471 | 0 | 0.235294 | 0.058824 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e20dfc2a207d87cb746506a4b2801706084ee98d | 966 | py | Python | env/Lib/site-packages/promise/compat.py | nerdyator/graphene-django-cookbook | e19aec7a6e910898558b16e910c7392b0b219390 | [
"MIT"
] | 2 | 2019-01-07T07:11:05.000Z | 2019-11-10T18:08:40.000Z | env/Lib/site-packages/promise/compat.py | nerdyator/graphene-django-cookbook | e19aec7a6e910898558b16e910c7392b0b219390 | [
"MIT"
] | null | null | null | env/Lib/site-packages/promise/compat.py | nerdyator/graphene-django-cookbook | e19aec7a6e910898558b16e910c7392b0b219390 | [
"MIT"
] | 2 | 2017-10-18T14:12:35.000Z | 2020-03-24T06:01:23.000Z | try:
from asyncio import Future, iscoroutine, ensure_future # type: ignore
except ImportError:
class Future: # type: ignore
def __init__(self):
raise Exception("You need asyncio for using Futures")
def set_result(self):
raise Exception("You need asyncio for using Fut... | 28.411765 | 74 | 0.668737 | 116 | 966 | 5.465517 | 0.336207 | 0.094637 | 0.107256 | 0.132492 | 0.37224 | 0.37224 | 0.37224 | 0.37224 | 0.246057 | 0.246057 | 0 | 0.002793 | 0.258799 | 966 | 33 | 75 | 29.272727 | 0.882682 | 0.108696 | 0 | 0.333333 | 0 | 0 | 0.231221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.291667 | 0.041667 | 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 | 0 | 1 | 0 | 0 | 2 |
e2151dbd8d042f1a314638218c6335ca02b0727a | 513 | py | Python | tests/unit/test_models.py | Joel-Milligan/physics-tutor-assignment | 9db0b871c947bb19886026c06bcd04cefd852d98 | [
"MIT"
] | null | null | null | tests/unit/test_models.py | Joel-Milligan/physics-tutor-assignment | 9db0b871c947bb19886026c06bcd04cefd852d98 | [
"MIT"
] | null | null | null | tests/unit/test_models.py | Joel-Milligan/physics-tutor-assignment | 9db0b871c947bb19886026c06bcd04cefd852d98 | [
"MIT"
] | null | null | null | from datetime import datetime
from app.models import Assessment, User
def test_new_user():
new_user = User('usernam1', 'password', datetime(2020, 1, 1), True)
assert new_user.username == 'usernam1'
assert new_user.password != 'password'
assert new_user.signup_date == datetime(2020, 1, 1)
assert ne... | 30.176471 | 71 | 0.71345 | 68 | 513 | 5.176471 | 0.352941 | 0.119318 | 0.147727 | 0.079545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042254 | 0.169591 | 513 | 16 | 72 | 32.0625 | 0.784038 | 0 | 0 | 0 | 0 | 0 | 0.101365 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.166667 | false | 0.166667 | 0.166667 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
357a7c212d64ef469b6cfe0399c8c3f62da9f7bf | 7,160 | py | Python | app/models.py | nickspeal/net-zero-python-backend | a31139fe8d365abed4f48407a2f407a9b5ac7357 | [
"MIT"
] | null | null | null | app/models.py | nickspeal/net-zero-python-backend | a31139fe8d365abed4f48407a2f407a9b5ac7357 | [
"MIT"
] | null | null | null | app/models.py | nickspeal/net-zero-python-backend | a31139fe8d365abed4f48407a2f407a9b5ac7357 | [
"MIT"
] | null | null | null | from app import db
# Junction Tables for many-to-many relationships
campaign_users = db.Table('campaign_users',
db.Column('campaign', db.Integer, db.ForeignKey('campaigns.id'), primary_key=True),
db.Column('user', db.Integer, db.ForeignKey('users.username'), primary_key=True),
)
campaign_vehicles = db.Table('... | 41.149425 | 161 | 0.691899 | 966 | 7,160 | 4.987578 | 0.259834 | 0.069738 | 0.078871 | 0.043171 | 0.402657 | 0.381901 | 0.333126 | 0.277501 | 0.229348 | 0.157119 | 0 | 0.009089 | 0.185615 | 7,160 | 174 | 162 | 41.149425 | 0.817184 | 0.615363 | 0 | 0.173913 | 0 | 0 | 0.093798 | 0.00814 | 0 | 0 | 0 | 0.011494 | 0 | 1 | 0.086957 | false | 0 | 0.021739 | 0.065217 | 0.73913 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
35939e520372bd241032dd0ca8f839c03e847bef | 1,792 | py | Python | demo/buf.py | uldisa/tuxedo-python | 59bd44ee9be1807b63599b48b3af9b4dc4ac4277 | [
"MIT"
] | 4 | 2019-11-05T17:44:29.000Z | 2022-03-21T08:51:14.000Z | demo/buf.py | uldisa/tuxedo-python | 59bd44ee9be1807b63599b48b3af9b4dc4ac4277 | [
"MIT"
] | 3 | 2020-12-15T19:39:38.000Z | 2021-11-22T20:54:13.000Z | demo/buf.py | uldisa/tuxedo-python | 59bd44ee9be1807b63599b48b3af9b4dc4ac4277 | [
"MIT"
] | 4 | 2020-12-13T17:02:21.000Z | 2021-12-15T22:46:00.000Z | #!/usr/bin/env python3
import tuxedo as t
if __name__ == '__main__':
buf = {'TA_CLASS': ['T_SVCGRP'], 'TA_OPERATION': ['GET']}
assert t.tpimport(t.tpexport(buf)) == buf
assert t.tpimport(t.tpexport(buf, t.TPEX_STRING), t.TPEX_STRING) == buf
assert t.Fname32(t.Fldid32('TA_OPERATION')) == 'TA_OPERATIO... | 41.674419 | 92 | 0.671875 | 248 | 1,792 | 4.697581 | 0.294355 | 0.217167 | 0.120172 | 0.092704 | 0.480687 | 0.418884 | 0.263519 | 0.212017 | 0.085837 | 0 | 0 | 0.118404 | 0.132813 | 1,792 | 42 | 93 | 42.666667 | 0.631274 | 0.011719 | 0 | 0 | 0 | 0.034483 | 0.344068 | 0.144068 | 0 | 0 | 0 | 0 | 0.482759 | 1 | 0 | false | 0 | 0.275862 | 0 | 0.275862 | 0.103448 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
359667e8aabcd97e7d2ce1d0e41dfa0d7e888640 | 302 | py | Python | archive/2017/week12/tasks/more_list_tasks/tail.py | YAtOff/python0 | b5af5004131d64dd52d42746eddb72b6c43a13c7 | [
"Apache-2.0"
] | 6 | 2017-11-08T14:04:39.000Z | 2019-03-24T22:11:04.000Z | archive/2016/week13/tasks/tail.py | YAtOff/python0 | b5af5004131d64dd52d42746eddb72b6c43a13c7 | [
"Apache-2.0"
] | null | null | null | archive/2016/week13/tasks/tail.py | YAtOff/python0 | b5af5004131d64dd52d42746eddb72b6c43a13c7 | [
"Apache-2.0"
] | 7 | 2015-10-27T09:04:58.000Z | 2019-03-03T14:18:26.000Z | def tail(xs):
"""
Напишете функция в Python, която взима списък и връща нов списък,
който се състои от всички елементи **без първия** от първоначалния списъка.
**Не се грижете, ако списъка е празен**
>>> tail([1, 2, 3])
[2, 3]
>>> tail(["Python"])
[]
"""
pass
| 21.571429 | 79 | 0.572848 | 41 | 302 | 4.219512 | 0.780488 | 0.023121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023041 | 0.281457 | 302 | 13 | 80 | 23.230769 | 0.774194 | 0.774834 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0.5 | 0 | 0 | 0.5 | 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 | 0 | 0 | 0 | 2 |
359a0ef6c0200615c6b4cd4163ac0cfe31bb7efc | 970 | py | Python | squealy/urls.py | vaibhav-singh/squealy | abfe8fc5e7406987d84fb065bb70152d43f61250 | [
"MIT"
] | null | null | null | squealy/urls.py | vaibhav-singh/squealy | abfe8fc5e7406987d84fb065bb70152d43f61250 | [
"MIT"
] | null | null | null | squealy/urls.py | vaibhav-singh/squealy | abfe8fc5e7406987d84fb065bb70152d43f61250 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from django.conf.urls import url
from django.contrib.auth.decorators import login_required
from . import views
urlpatterns = [
url(r'^swagger.json/$',views.swagger_json_api),
url(r'^swagger/$', login_required(views.swagger)),
url(r'charts/$', login_required(views.Char... | 44.090909 | 96 | 0.710309 | 135 | 970 | 4.874074 | 0.296296 | 0.217325 | 0.273556 | 0.091185 | 0.273556 | 0.155015 | 0.155015 | 0.155015 | 0.155015 | 0.155015 | 0 | 0 | 0.080412 | 970 | 21 | 97 | 46.190476 | 0.737668 | 0 | 0 | 0 | 0 | 0 | 0.202062 | 0.139175 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.235294 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
359d7f659114e08efb5857c6c56f60369996d99c | 142 | py | Python | my_site/objects.py | mequetrefe-do-subtroco/web_constel_cont_ext | c720c66e6d394e9aad0ed7039e1ff44e4a1c61c1 | [
"MIT"
] | 1 | 2020-06-18T09:03:53.000Z | 2020-06-18T09:03:53.000Z | my_site/objects.py | mequetrefe-do-subtroco/web_constel_cont_ext | c720c66e6d394e9aad0ed7039e1ff44e4a1c61c1 | [
"MIT"
] | 33 | 2020-06-16T18:59:33.000Z | 2021-08-12T21:33:17.000Z | constel/objects.py | gabrielhjs/web_constel | 57b5626fb17b4fefc740cbe1ac95fd4ab90147bc | [
"MIT"
] | null | null | null |
class Button(object):
def __init__(self, url, label, get=''):
self.url = url
self.label = label
self.get = get
| 15.777778 | 43 | 0.542254 | 18 | 142 | 4.055556 | 0.5 | 0.191781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.330986 | 142 | 8 | 44 | 17.75 | 0.768421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
35aec8279955fef5781af2402034c048af969760 | 618 | py | Python | ztools/Fs/__init__.py | ItsCinnabar/Mass_Custom_XCIs | 94551f43eeed3a6ab7a761fd41ff5500435910dc | [
"MIT"
] | 6 | 2019-05-08T18:52:48.000Z | 2019-10-01T06:58:20.000Z | ztools/Fs/__init__.py | ItsCinnabar/Mass_Custom_XCIs | 94551f43eeed3a6ab7a761fd41ff5500435910dc | [
"MIT"
] | null | null | null | ztools/Fs/__init__.py | ItsCinnabar/Mass_Custom_XCIs | 94551f43eeed3a6ab7a761fd41ff5500435910dc | [
"MIT"
] | 1 | 2020-01-01T07:44:06.000Z | 2020-01-01T07:44:06.000Z | from Fs.Xci import Xci
from Fs.pXci import uXci
from Fs.pXci import nXci
from Fs.Nca import Nca
from Fs.Nsp import Nsp
from Fs.Rom import Rom
from Fs.Nacp import Nacp
from Fs.Pfs0 import Pfs0
from Fs.Hfs0 import Hfs0
from Fs.Ticket import Ticket
from Fs.File import File
def factory(name):
if name.endswith('.xci'):
... | 20.6 | 29 | 0.666667 | 105 | 618 | 3.92381 | 0.247619 | 0.160194 | 0.23301 | 0.07767 | 0.097087 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012 | 0.190939 | 618 | 30 | 30 | 20.6 | 0.812 | 0 | 0 | 0.068966 | 0 | 0 | 0.048465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.37931 | 0 | 0.448276 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
35d3caf546997ac4a3e9ab5b7bbe7a7b734d8898 | 72,977 | py | Python | juju/client/_client8.py | wallyworld/python-libjuju | 1de9ad1cea120a691041c243877a6316ba648900 | [
"Apache-2.0"
] | null | null | null | juju/client/_client8.py | wallyworld/python-libjuju | 1de9ad1cea120a691041c243877a6316ba648900 | [
"Apache-2.0"
] | 1 | 2019-02-11T10:00:15.000Z | 2019-02-11T10:06:20.000Z | juju/client/_client8.py | CanonicalBootStack/python-libjuju | 43fb846042f4cd7d31ae11b1542862477bd76d36 | [
"Apache-2.0"
] | null | null | null | # DO NOT CHANGE THIS FILE! This file is auto-generated by facade.py.
# Changes will be overwritten/lost when the file is regenerated.
from juju.client.facade import Type, ReturnMapping
from juju.client._definitions import *
class ApplicationFacade(Type):
name = 'Application'
version = 8
schema = {'de... | 57.057858 | 163 | 0.357113 | 3,627 | 72,977 | 7.134546 | 0.07582 | 0.051011 | 0.102794 | 0.038258 | 0.532287 | 0.489972 | 0.407157 | 0.334544 | 0.302894 | 0.294431 | 0 | 0.000976 | 0.522397 | 72,977 | 1,278 | 164 | 57.102504 | 0.741464 | 0.013977 | 0 | 0.566057 | 1 | 0 | 0.253978 | 0.061123 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.002033 | 0 | 0.039634 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
ea06238c6c6f8de7ed088df9c80dadbb3372a8f9 | 1,277 | py | Python | GUI/Generic/GTasks.py | gcewing/PyGUI | 58c6c38ccb8e66acdf98dea6b24bef1d9a03147c | [
"MIT"
] | 9 | 2019-07-15T19:03:27.000Z | 2021-11-24T19:50:02.000Z | GUI/Generic/GTasks.py | mnabeelp/PyGUI | 58c6c38ccb8e66acdf98dea6b24bef1d9a03147c | [
"MIT"
] | 3 | 2019-09-11T13:22:10.000Z | 2020-08-19T20:13:00.000Z | GUI/Generic/GTasks.py | mnabeelp/PyGUI | 58c6c38ccb8e66acdf98dea6b24bef1d9a03147c | [
"MIT"
] | 4 | 2020-02-23T16:50:06.000Z | 2022-02-10T07:15:35.000Z | #
# PyGUI - Tasks - Generic
#
from GUI.Properties import Properties, overridable_property
class Task(Properties):
"""A Task represents an action to be performed after a specified
time interval, either once or repeatedly.
Constructor:
Task(proc, interval, repeat = False, start = True)
Creates a task to cal... | 33.605263 | 83 | 0.740799 | 179 | 1,277 | 5.240223 | 0.424581 | 0.052239 | 0.01919 | 0.027719 | 0.181237 | 0.06823 | 0.06823 | 0 | 0 | 0 | 0 | 0 | 0.179327 | 1,277 | 37 | 84 | 34.513514 | 0.895038 | 0.639781 | 0 | 0 | 0 | 0 | 0.320225 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
ea410dc0122ec7353bc207c7a8f3f53b18676252 | 2,918 | py | Python | Communal.Network.v.py | HolocronFoundation/Communal.Network | 41eff8ac3ca54897f19cd584e1cfc58f9326ab80 | [
"CC0-1.0"
] | 1 | 2019-03-08T18:41:26.000Z | 2019-03-08T18:41:26.000Z | Communal.Network.v.py | HolocronFoundation/Communal.Network | 41eff8ac3ca54897f19cd584e1cfc58f9326ab80 | [
"CC0-1.0"
] | null | null | null | Communal.Network.v.py | HolocronFoundation/Communal.Network | 41eff8ac3ca54897f19cd584e1cfc58f9326ab80 | [
"CC0-1.0"
] | null | null | null | item: event({channel_index: indexed(uint256), reply_to_index: indexed(uint256), metadata: indexed(uint256)})
# item_index is the index of the sent item in C.N.
# TODO: Implement channeling
# Channel management
struct channel:
owner: address
name_display: bytes32
name_unique: bytes32 # TODO: finish impleme... | 39.972603 | 207 | 0.765593 | 419 | 2,918 | 5.150358 | 0.338902 | 0.032437 | 0.055607 | 0.044022 | 0.215941 | 0.1557 | 0.113531 | 0.113531 | 0.113531 | 0.113531 | 0 | 0.055916 | 0.154215 | 2,918 | 72 | 208 | 40.527778 | 0.818477 | 0.360521 | 0 | 0.255814 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022839 | 0.013889 | 0.023256 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ea4c67653d6bf178d84a235b1ed66aa70ed28be1 | 519 | py | Python | demos/reusable/hello/src/hello/web/tests/test_views.py | akornatskyy/wheezy.web | 417834db697cf1f78f3a60cc880b9fd25d40c6de | [
"MIT"
] | 17 | 2020-08-29T18:45:51.000Z | 2022-03-02T19:37:13.000Z | demos/reusable/hello/src/hello/web/tests/test_views.py | akornatskyy/wheezy.web | 417834db697cf1f78f3a60cc880b9fd25d40c6de | [
"MIT"
] | 29 | 2020-07-18T04:34:03.000Z | 2021-07-06T09:42:36.000Z | demos/reusable/hello/src/hello/web/tests/test_views.py | akornatskyy/wheezy.web | 417834db697cf1f78f3a60cc880b9fd25d40c6de | [
"MIT"
] | 1 | 2022-03-14T08:41:42.000Z | 2022-03-14T08:41:42.000Z | import unittest
from app import main
from wheezy.http.functional import WSGIClient
path_for = main.options["path_for"]
class HelloTestCase(unittest.TestCase):
def setUp(self):
self.client = WSGIClient(main)
def tearDown(self):
self.client = None
def path_for(self, name, **kwargs):
... | 23.590909 | 63 | 0.666667 | 67 | 519 | 5.074627 | 0.492537 | 0.102941 | 0.082353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007335 | 0.211946 | 519 | 21 | 64 | 24.714286 | 0.823961 | 0 | 0 | 0 | 0 | 0 | 0.065511 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.285714 | false | 0 | 0.214286 | 0.071429 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
ea50fbdd5b47c4790c000e6a763c6ba66c891802 | 763 | py | Python | chat/models.py | horsehair/unimate | 13fd7336307120ea36ff7eb8a28f6d1966222130 | [
"MIT"
] | null | null | null | chat/models.py | horsehair/unimate | 13fd7336307120ea36ff7eb8a28f6d1966222130 | [
"MIT"
] | null | null | null | chat/models.py | horsehair/unimate | 13fd7336307120ea36ff7eb8a28f6d1966222130 | [
"MIT"
] | null | null | null | from django.db import models
from django.db.models import Model, TextField, DateTimeField, ForeignKey, CASCADE
from accounts.models import User
from rooms.models import Room
# Create your models here.
class MessageModel(Model):
"""
This class represents a chat message. It has a owner (user), timestamp and
... | 40.157895 | 81 | 0.671035 | 95 | 763 | 5.252632 | 0.463158 | 0.072144 | 0.066132 | 0.088176 | 0.104208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235911 | 763 | 18 | 82 | 42.388889 | 0.855918 | 0.154653 | 0 | 0 | 0 | 0 | 0.0592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ea5e0c05fc5fd1bd126ce33ac9399b17f9572400 | 6,349 | py | Python | server/app/models.py | ju1115kr/hash-brown | 93c5e636404608c7cba889cc9f9e0f3d3d0723b2 | [
"Apache-2.0"
] | 4 | 2018-06-27T10:28:54.000Z | 2020-03-15T10:44:37.000Z | server/app/models.py | ju1115kr/hash-brown | 93c5e636404608c7cba889cc9f9e0f3d3d0723b2 | [
"Apache-2.0"
] | 9 | 2018-06-27T10:29:37.000Z | 2021-12-13T19:48:39.000Z | server/app/models.py | ju1115kr/hash-brown | 93c5e636404608c7cba889cc9f9e0f3d3d0723b2 | [
"Apache-2.0"
] | 2 | 2018-07-04T16:54:20.000Z | 2018-07-04T16:58:36.000Z | # -*- coding: utf-8 -*-
from flask import url_for, current_app, g
from werkzeug import secure_filename
from werkzeug.security import generate_password_hash, check_password_hash
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer
from . import db
from app.exceptions import ValidationError
from datetim... | 35.272222 | 93 | 0.599779 | 766 | 6,349 | 4.821149 | 0.203655 | 0.041159 | 0.051449 | 0.036826 | 0.245329 | 0.219334 | 0.217168 | 0.118603 | 0.063905 | 0.023287 | 0 | 0.001747 | 0.278784 | 6,349 | 179 | 94 | 35.469274 | 0.804761 | 0.021736 | 0 | 0.161074 | 1 | 0 | 0.09771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.100671 | false | 0.080537 | 0.053691 | 0.026846 | 0.42953 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ea668e4c3f0055d09aecf153fc4a7af6e486eded | 388 | py | Python | factor_vae/types.py | kiwi0fruit/jats-semi-supervised-pytorch | 67e9bb85f09f8ef02e17e495784d1d9a71c3adec | [
"MIT"
] | null | null | null | factor_vae/types.py | kiwi0fruit/jats-semi-supervised-pytorch | 67e9bb85f09f8ef02e17e495784d1d9a71c3adec | [
"MIT"
] | null | null | null | factor_vae/types.py | kiwi0fruit/jats-semi-supervised-pytorch | 67e9bb85f09f8ef02e17e495784d1d9a71c3adec | [
"MIT"
] | null | null | null | from typing import Tuple
from abc import abstractmethod
from torch import Tensor
from torch.nn import Module
class BaseDiscriminator(Module):
@abstractmethod
def forward_(self, z: Tensor) -> Tuple[Tensor, Tensor]:
raise NotImplementedError
def forward(self, z: Tensor) -> Tuple[Tensor, Tensor]: #... | 27.714286 | 94 | 0.729381 | 48 | 388 | 5.854167 | 0.479167 | 0.064057 | 0.099644 | 0.106762 | 0.270463 | 0.270463 | 0.270463 | 0.270463 | 0 | 0 | 0 | 0 | 0.185567 | 388 | 13 | 95 | 29.846154 | 0.889241 | 0.082474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.1 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ea7787caeef8cdf78dfed953bd54966edcd2ae6e | 150 | py | Python | deepstreampy/constants/call_state.py | sapid/deepstreampy-twisted | 78025141bb0ac3aadc248d68f9273bf8993fc3d4 | [
"MIT"
] | null | null | null | deepstreampy/constants/call_state.py | sapid/deepstreampy-twisted | 78025141bb0ac3aadc248d68f9273bf8993fc3d4 | [
"MIT"
] | null | null | null | deepstreampy/constants/call_state.py | sapid/deepstreampy-twisted | 78025141bb0ac3aadc248d68f9273bf8993fc3d4 | [
"MIT"
] | null | null | null | INITIAL = 'INITIAL'
CONNECTING = 'CONNECTING'
ESTABLISHED = 'ESTABLISHED'
ACCEPTED = 'ACCEPTED'
DECLINED = 'DECLINED'
ENDED = 'ENDED'
ERROR = 'ERROR'
| 18.75 | 27 | 0.72 | 14 | 150 | 7.714286 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14 | 150 | 7 | 28 | 21.428571 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0.36 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ea78ba9051ae04427d4f22dd53746203619b8ac9 | 369 | py | Python | app/__init__.py | abhishtagatya/pandubot | ec0f20b31fc61b5581753711d774213bbf70d438 | [
"MIT"
] | 1 | 2018-08-29T12:03:06.000Z | 2018-08-29T12:03:06.000Z | app/__init__.py | abhishtagatya/pandubot | ec0f20b31fc61b5581753711d774213bbf70d438 | [
"MIT"
] | null | null | null | app/__init__.py | abhishtagatya/pandubot | ec0f20b31fc61b5581753711d774213bbf70d438 | [
"MIT"
] | null | null | null | import os
import sys
from instance.config import DATABASE_URI
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_compress import Compress
app = Flask(__name__)
Compress(app)
app.config['SQLALCHEMY_DATABASE_URI'] = DATABASE_URI
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
db = SQLAlche... | 20.5 | 52 | 0.821138 | 53 | 369 | 5.490566 | 0.358491 | 0.113402 | 0.130584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121951 | 369 | 17 | 53 | 21.705882 | 0.898148 | 0 | 0 | 0 | 0 | 0 | 0.143631 | 0.143631 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.615385 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ea83c30edcb40ded19cfef34c991c3cc46a06772 | 2,099 | py | Python | app/purchases.py | thowell332/Mini-Amazon | 927c387d569aef00275b7d6ecaae891fc16025e9 | [
"MIT"
] | null | null | null | app/purchases.py | thowell332/Mini-Amazon | 927c387d569aef00275b7d6ecaae891fc16025e9 | [
"MIT"
] | null | null | null | app/purchases.py | thowell332/Mini-Amazon | 927c387d569aef00275b7d6ecaae891fc16025e9 | [
"MIT"
] | null | null | null | from re import S
from flask import render_template, redirect, url_for, flash, request
from flask_paginate import Pagination, get_page_parameter
from flask_login import current_user
from flask_wtf import FlaskForm
from wtforms import SubmitField
from flask_babel import _, lazy_gettext as _l
from flask_login import curre... | 41.98 | 177 | 0.769414 | 291 | 2,099 | 5.285223 | 0.295533 | 0.064369 | 0.042263 | 0.026008 | 0.26528 | 0.26528 | 0.26528 | 0.219766 | 0.171652 | 0.171652 | 0 | 0.002773 | 0.14102 | 2,099 | 50 | 177 | 41.98 | 0.85025 | 0.115293 | 0 | 0.25 | 0 | 0 | 0.074054 | 0.03027 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.34375 | 0 | 0.53125 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ea9175a6523f472b33f34201baced746430025fa | 290 | py | Python | regphot/pyprofit.py | raphaelshirley/regphot | 05b382e5360099dadd7599187b5f25c1fcbd5a61 | [
"MIT"
] | null | null | null | regphot/pyprofit.py | raphaelshirley/regphot | 05b382e5360099dadd7599187b5f25c1fcbd5a61 | [
"MIT"
] | null | null | null | regphot/pyprofit.py | raphaelshirley/regphot | 05b382e5360099dadd7599187b5f25c1fcbd5a61 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Wed Feb 1 17:13:54 2017
Should have similar functions as galfit and allow a model object to use functions to
calculate chisq and optimse using standard optimisation.
@author: rs548
"""
import pyprofit
def optimise():
| 18.125 | 85 | 0.713793 | 44 | 290 | 4.704545 | 0.931818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068085 | 0.189655 | 290 | 15 | 86 | 19.333333 | 0.812766 | 0.148276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.5 | null | null | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
ea9198eb50dfdf75e05b7e2f2c6b062c8ea681fb | 6,061 | py | Python | chrome/common/extensions/docs/server2/branch_utility_test.py | pozdnyakov/chromium-crosswalk | 0fb25c7278bf1d93e53a3b0bcb75aa8b99d4b26e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/common/extensions/docs/server2/branch_utility_test.py | pozdnyakov/chromium-crosswalk | 0fb25c7278bf1d93e53a3b0bcb75aa8b99d4b26e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/common/extensions/docs/server2/branch_utility_test.py | pozdnyakov/chromium-crosswalk | 0fb25c7278bf1d93e53a3b0bcb75aa8b99d4b26e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import sys
import unittest
from branch_utility import BranchUtility
from fake_url_fetcher import FakeUrlFetcher
from obj... | 41.513699 | 77 | 0.683881 | 606 | 6,061 | 6.635314 | 0.19967 | 0.134295 | 0.188013 | 0.10669 | 0.614275 | 0.501119 | 0.355882 | 0.133549 | 0.042527 | 0 | 0 | 0.023364 | 0.187923 | 6,061 | 145 | 78 | 41.8 | 0.79358 | 0.029698 | 0 | 0.253846 | 0 | 0 | 0.115875 | 0.047984 | 0 | 0 | 0 | 0 | 0.407692 | 1 | 0.053846 | false | 0 | 0.046154 | 0 | 0.107692 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ea99720b3ead320ff8f07f3efbaae5fb0d1681fb | 94 | py | Python | aiida_icl/__init__.py | chrisjsewell/aiida-cx1scheduler | fd9a1723f65d3858aee678bf035a7b63a03c5885 | [
"MIT"
] | null | null | null | aiida_icl/__init__.py | chrisjsewell/aiida-cx1scheduler | fd9a1723f65d3858aee678bf035a7b63a03c5885 | [
"MIT"
] | null | null | null | aiida_icl/__init__.py | chrisjsewell/aiida-cx1scheduler | fd9a1723f65d3858aee678bf035a7b63a03c5885 | [
"MIT"
] | 2 | 2020-07-01T07:43:13.000Z | 2020-07-07T20:00:02.000Z | """
AiiDA Plugin Template
Adapt this template for your own needs.
"""
__version__ = '0.3.4'
| 11.75 | 39 | 0.691489 | 14 | 94 | 4.357143 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038961 | 0.180851 | 94 | 7 | 40 | 13.428571 | 0.753247 | 0.659574 | 0 | 0 | 0 | 0 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
57605a45872280f1b96cf87232eb6af9882ebf02 | 1,131 | py | Python | console/info.py | alexeysp11/sdc-console-python | 237ec357b0883d0d033cd0f5609ac8a4f064f86f | [
"MIT"
] | null | null | null | console/info.py | alexeysp11/sdc-console-python | 237ec357b0883d0d033cd0f5609ac8a4f064f86f | [
"MIT"
] | null | null | null | console/info.py | alexeysp11/sdc-console-python | 237ec357b0883d0d033cd0f5609ac8a4f064f86f | [
"MIT"
] | null | null | null | class Info:
"""
Allows to print out information about the application.
"""
def commands():
print('''Main modules:
imu | Inertial Measurement Unit (GPS, gyro, accelerometer)
gps | GPS
gyro | Gyroscope
accel | Accelerometer
... | 23.5625 | 74 | 0.482759 | 116 | 1,131 | 4.706897 | 0.525862 | 0.043956 | 0.043956 | 0.065934 | 0.084249 | 0.084249 | 0 | 0 | 0 | 0 | 0 | 0 | 0.422635 | 1,131 | 47 | 75 | 24.06383 | 0.836141 | 0.047745 | 0 | 0.117647 | 0 | 0 | 0.825472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | true | 0 | 0 | 0 | 0.147059 | 0.117647 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
577b488a4c6bb95a24f07ede098c7e6465673424 | 380 | py | Python | src/quotes_crawlspider/quotes/items.py | azzamsa/learn-scrapy | 8d408763ff0be21fe2e0933b91b4ad1fe082b3ec | [
"MIT"
] | null | null | null | src/quotes_crawlspider/quotes/items.py | azzamsa/learn-scrapy | 8d408763ff0be21fe2e0933b91b4ad1fe082b3ec | [
"MIT"
] | null | null | null | src/quotes_crawlspider/quotes/items.py | azzamsa/learn-scrapy | 8d408763ff0be21fe2e0933b91b4ad1fe082b3ec | [
"MIT"
] | null | null | null | # Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class QuotesItem(scrapy.Item):
# define the fields for your item here like:
author_name = scrapy.Field()
author_location = scrapy.Field()
author_date = scrapy.... | 23.75 | 53 | 0.705263 | 52 | 380 | 5.096154 | 0.615385 | 0.207547 | 0.128302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186842 | 380 | 15 | 54 | 25.333333 | 0.857605 | 0.426316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
5782896b4d6e5c85e7c0c81d31dbd8cff1438078 | 453 | py | Python | crawlMp/enums.py | domarm-comat/crawlMp | 32b66573f351a2f28fcb7ce8627f8605975f76eb | [
"MIT"
] | 1 | 2021-12-03T15:14:36.000Z | 2021-12-03T15:14:36.000Z | crawlMp/enums.py | domarm-comat/crawlMp | 32b66573f351a2f28fcb7ce8627f8605975f76eb | [
"MIT"
] | 2 | 2021-12-03T16:10:14.000Z | 2021-12-03T18:09:33.000Z | crawlMp/enums.py | domarm-comat/crawlMp | 32b66573f351a2f28fcb7ce8627f8605975f76eb | [
"MIT"
] | null | null | null | from enum import Enum
from typing import Tuple, Type, Optional
class Mode(Enum):
SIMPLE = "s"
EXTENDED = "e"
def __str__(self) -> str:
return self.value
class Header(Enum):
PATH = "Path"
NAME = "Name"
SIZE = "Size"
MODIFIED = "Modified"
ACCESSED = "Accessed"
INPUT = "Inp... | 16.777778 | 47 | 0.602649 | 55 | 453 | 4.8 | 0.490909 | 0.090909 | 0.075758 | 0.098485 | 0.212121 | 0.212121 | 0.212121 | 0 | 0 | 0 | 0 | 0 | 0.278146 | 453 | 26 | 48 | 17.423077 | 0.807339 | 0 | 0 | 0.222222 | 0 | 0 | 0.090508 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.111111 | 0.944444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.