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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7ee0ad4229cbb8785cc665b7f1d02577367e5533 | 6,358 | py | Python | venv/lib/python3.6/site-packages/xero_python/accounting/models/branding_theme.py | 6enno/FarmXero | 881b1e6648e927631b276e66a4c5287e4de2cbc1 | [
"MIT"
] | null | null | null | venv/lib/python3.6/site-packages/xero_python/accounting/models/branding_theme.py | 6enno/FarmXero | 881b1e6648e927631b276e66a4c5287e4de2cbc1 | [
"MIT"
] | null | null | null | venv/lib/python3.6/site-packages/xero_python/accounting/models/branding_theme.py | 6enno/FarmXero | 881b1e6648e927631b276e66a4c5287e4de2cbc1 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Accounting API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
from xero_python.models import BaseModel
clas... | 27.885965 | 124 | 0.596886 | 786 | 6,358 | 4.647583 | 0.147583 | 0.076649 | 0.124829 | 0.113332 | 0.552696 | 0.463181 | 0.428963 | 0.311799 | 0.24035 | 0.125376 | 0 | 0.026176 | 0.321013 | 6,358 | 227 | 125 | 28.008811 | 0.819551 | 0.423089 | 0 | 0.065934 | 1 | 0 | 0.091883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.021978 | 0 | 0.263736 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ee1d07b4bc413cb7389c911457d3de03b101227 | 2,460 | py | Python | check_mana.py | CheapskateProjects/MtgManaRecognition | 9119a843f5c235ca09c695a46611bb46fea37573 | [
"MIT"
] | 7 | 2020-01-24T13:15:51.000Z | 2021-11-18T00:59:14.000Z | check_mana.py | CheapskateProjects/MtgManaRecognition | 9119a843f5c235ca09c695a46611bb46fea37573 | [
"MIT"
] | null | null | null | check_mana.py | CheapskateProjects/MtgManaRecognition | 9119a843f5c235ca09c695a46611bb46fea37573 | [
"MIT"
] | 3 | 2017-12-11T08:42:20.000Z | 2021-05-23T22:16:37.000Z | """
This code will read file given as parameter and list what mana symbols it contains.
created Apr 2017
by CheapskateProjects
---------------------------
The MIT License (MIT)
Copyright (c) 2017 CheapskateProjects
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and as... | 46.415094 | 460 | 0.742683 | 385 | 2,460 | 4.672727 | 0.449351 | 0.048916 | 0.036131 | 0.050028 | 0.015564 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028338 | 0.153659 | 2,460 | 52 | 461 | 47.307692 | 0.835735 | 0.036992 | 0 | 0 | 0 | 0 | 0.161752 | 0.109026 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.137931 | null | null | 0.206897 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
7eea074d109ec1681ca547e782a6c5293f0db45e | 43,464 | py | Python | backend/tests/baserow/contrib/database/field/test_formula_field_type.py | ashishdhngr/baserow | b098678d2165eb7c42930ee24dc6753a3cb520c3 | [
"MIT"
] | null | null | null | backend/tests/baserow/contrib/database/field/test_formula_field_type.py | ashishdhngr/baserow | b098678d2165eb7c42930ee24dc6753a3cb520c3 | [
"MIT"
] | null | null | null | backend/tests/baserow/contrib/database/field/test_formula_field_type.py | ashishdhngr/baserow | b098678d2165eb7c42930ee24dc6753a3cb520c3 | [
"MIT"
] | null | null | null | import inspect
import pytest
from django.db.models import TextField
from django.urls import reverse
from rest_framework.status import HTTP_200_OK, HTTP_204_NO_CONTENT
from baserow.contrib.database.table.cache import (
generated_models_cache,
)
from baserow.contrib.database.fields.dependencies.handler import Field... | 35.108239 | 88 | 0.649802 | 5,167 | 43,464 | 5.130443 | 0.063286 | 0.071523 | 0.060281 | 0.026406 | 0.770116 | 0.706024 | 0.647214 | 0.604248 | 0.548719 | 0.53016 | 0 | 0.015967 | 0.237737 | 43,464 | 1,237 | 89 | 35.136621 | 0.78416 | 0.006948 | 0 | 0.558453 | 0 | 0 | 0.110158 | 0.05114 | 0 | 0 | 0 | 0 | 0.080935 | 1 | 0.024281 | false | 0 | 0.021583 | 0 | 0.046763 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7eedd09fb3c8d92730036810d13bd71098a0604a | 1,791 | py | Python | asyncpg_opentracing/tracing.py | condorcet/asyncpg_opentracing | 7e8342c2ab9d360507695f802b9a74803f76675e | [
"MIT"
] | 3 | 2021-02-07T02:55:46.000Z | 2021-11-25T21:32:19.000Z | asyncpg_opentracing/tracing.py | condorcet/asyncpg_opentracing | 7e8342c2ab9d360507695f802b9a74803f76675e | [
"MIT"
] | null | null | null | asyncpg_opentracing/tracing.py | condorcet/asyncpg_opentracing | 7e8342c2ab9d360507695f802b9a74803f76675e | [
"MIT"
] | null | null | null | from functools import wraps
from opentracing import global_tracer, tags, logs
from contextlib import contextmanager
def operation_name(query: str):
# TODO: some statement should contain two words. For example CREATE TABLE.
query = query.strip().split(' ')[0].strip(';').upper()
return 'asyncpg ' + query
... | 27.553846 | 78 | 0.627024 | 214 | 1,791 | 5.079439 | 0.373832 | 0.066237 | 0.071757 | 0.033119 | 0.235511 | 0.191352 | 0.191352 | 0.191352 | 0.191352 | 0.119595 | 0 | 0.00076 | 0.265773 | 1,791 | 64 | 79 | 27.984375 | 0.825856 | 0.040201 | 0 | 0.122449 | 0 | 0 | 0.015725 | 0 | 0 | 0 | 0 | 0.015625 | 0 | 1 | 0.102041 | false | 0 | 0.061224 | 0 | 0.285714 | 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 | 0 | 0 | 0 | 1 |
7eef35921fa0ede03616e146e1295177bb83c0f6 | 28,152 | py | Python | acro/train_uncond_dcgan.py | udibr/dcgan_code | b80e8b97193ef57ea86ecb3be684b452655fe2ac | [
"MIT"
] | 9 | 2015-12-18T09:55:35.000Z | 2018-12-02T07:04:07.000Z | acro/train_uncond_dcgan.py | udibr/dcgan_code | b80e8b97193ef57ea86ecb3be684b452655fe2ac | [
"MIT"
] | null | null | null | acro/train_uncond_dcgan.py | udibr/dcgan_code | b80e8b97193ef57ea86ecb3be684b452655fe2ac | [
"MIT"
] | 4 | 2016-01-18T08:16:38.000Z | 2019-02-12T02:29:47.000Z | """
uncond_dcgan1 made with 64x64 images from https://s3.amazonaws.com/udipublic/acro.images.tgz for train.tar.gz
"""
import argparse
parser = argparse.ArgumentParser(description='train uncoditional dcgan')
parser.add_argument('--desc',
default='uncond_dcgan',
help='name to uniq... | 39.318436 | 122 | 0.577472 | 4,207 | 28,152 | 3.712146 | 0.126931 | 0.006147 | 0.037011 | 0.026125 | 0.446821 | 0.361017 | 0.312864 | 0.284562 | 0.25056 | 0.239739 | 0 | 0.043728 | 0.270531 | 28,152 | 715 | 123 | 39.373427 | 0.716741 | 0.057474 | 0 | 0.145985 | 0 | 0.001825 | 0.119365 | 0.004575 | 0 | 0 | 0 | 0 | 0.005474 | 0 | null | null | 0 | 0.047445 | null | null | 0.029197 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
7ef212a3bbd72af3407c75992543ad244f5853aa | 686 | py | Python | tests/test_base_testclass.py | FrNecas/requre | 110ad5c42b6bbb087a28bcaf7d7b7834825ec65a | [
"MIT"
] | 4 | 2019-09-11T10:39:19.000Z | 2020-01-26T14:46:04.000Z | tests/test_base_testclass.py | FrNecas/requre | 110ad5c42b6bbb087a28bcaf7d7b7834825ec65a | [
"MIT"
] | 134 | 2020-08-04T06:56:25.000Z | 2022-03-28T19:59:10.000Z | tests/test_base_testclass.py | FrNecas/requre | 110ad5c42b6bbb087a28bcaf7d7b7834825ec65a | [
"MIT"
] | 8 | 2019-09-11T09:52:01.000Z | 2020-05-15T07:49:20.000Z | # Copyright Contributors to the Packit project.
# SPDX-License-Identifier: MIT
import os
import shutil
from requre import RequreTestCase
from requre.utils import get_datafile_filename
class CheckBaseTestClass(RequreTestCase):
def tearDown(self):
super().tearDown()
data_file_path = get_datafile_f... | 29.826087 | 79 | 0.708455 | 90 | 686 | 5.233333 | 0.533333 | 0.067941 | 0.101911 | 0.097665 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001789 | 0.185131 | 686 | 22 | 80 | 31.181818 | 0.840787 | 0.177843 | 0 | 0 | 0 | 0 | 0.019643 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.142857 | false | 0.071429 | 0.285714 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7ef4e804662096ec1a9ee780599e15a0cae458b8 | 3,106 | py | Python | src/view/services_read_page.py | nbilbo/services_manager | 74e0471a1101305303a96d39963cc98fc0645a64 | [
"MIT"
] | null | null | null | src/view/services_read_page.py | nbilbo/services_manager | 74e0471a1101305303a96d39963cc98fc0645a64 | [
"MIT"
] | null | null | null | src/view/services_read_page.py | nbilbo/services_manager | 74e0471a1101305303a96d39963cc98fc0645a64 | [
"MIT"
] | null | null | null | """Frame to show all service\'s register\'s.
"""
import tkinter.ttk
from src.view import constants
from src.view.services_page import ServicesPage
class ServicesReadPage(ServicesPage):
def __init__(self, parent, controller, *args, **kwargs):
super(ServicesReadPage, self).__init__(parent, *args, **kwargs... | 28.236364 | 106 | 0.59369 | 321 | 3,106 | 5.498442 | 0.202492 | 0.056657 | 0.054391 | 0.054391 | 0.460623 | 0.339377 | 0.14051 | 0.14051 | 0.069122 | 0.069122 | 0 | 0 | 0.306826 | 3,106 | 109 | 107 | 28.495413 | 0.819786 | 0.085963 | 0 | 0.048387 | 0 | 0 | 0.027127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209677 | false | 0 | 0.048387 | 0 | 0.354839 | 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 | 0 | 0 | 0 | 1 |
7efb31a8e8af90737b8da1f5791e1e718e4838b5 | 5,251 | py | Python | anarky/interface.py | MulberryBeacon/anarky | 54684e4422d36c6ea3c0bb3fab5af56002864690 | [
"MIT"
] | 1 | 2015-05-12T13:05:04.000Z | 2015-05-12T13:05:04.000Z | anarky/interface.py | MulberryBeacon/anarky | 54684e4422d36c6ea3c0bb3fab5af56002864690 | [
"MIT"
] | null | null | null | anarky/interface.py | MulberryBeacon/anarky | 54684e4422d36c6ea3c0bb3fab5af56002864690 | [
"MIT"
] | null | null | null | # -*- coding: utf8 -*-
"""
Common user interface operations.
Author: Eduardo Ferreira
License: MIT (see LICENSE for details)
"""
# Module import
# --------------------------------------------------------------------------------------------------
from os import walk
from os.path import isdir, isfile, join
import argp... | 34.546053 | 102 | 0.607503 | 615 | 5,251 | 5.079675 | 0.276423 | 0.03201 | 0.040973 | 0.028169 | 0.387964 | 0.24904 | 0.209987 | 0.15493 | 0.15493 | 0.119718 | 0 | 0.001212 | 0.214626 | 5,251 | 152 | 103 | 34.546053 | 0.756305 | 0.41992 | 0 | 0.212121 | 0 | 0 | 0.134241 | 0 | 0 | 0 | 0 | 0.013158 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.318182 | 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 | 0 | 0 | 0 | 1 |
7d046d7646f874b0a9f0b4e92ebdd10a5f1eb202 | 268 | py | Python | hospitals/urls.py | gilga98/ahalya | 1c50ae3ffaf48db5b1970567028117991451d62b | [
"MIT"
] | 4 | 2020-07-18T18:09:32.000Z | 2021-05-01T02:12:40.000Z | hospitals/urls.py | gilga98/ahalya | 1c50ae3ffaf48db5b1970567028117991451d62b | [
"MIT"
] | 5 | 2021-03-30T13:56:57.000Z | 2021-09-22T19:27:22.000Z | hospitals/urls.py | gilga98/ahalya | 1c50ae3ffaf48db5b1970567028117991451d62b | [
"MIT"
] | 1 | 2020-11-15T05:08:21.000Z | 2020-11-15T05:08:21.000Z | from django.urls import path
from . import views
app_name = "hospitals"
urlpatterns = [
path("hospitalList", views.HospitalDetailedList.as_view(), name="hospital_list"),
path("hospitalDetail", views.HospitalDetailedSingle.as_view(), name="hospital_read"),
] | 26.8 | 89 | 0.75 | 30 | 268 | 6.533333 | 0.633333 | 0.061224 | 0.102041 | 0.183673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115672 | 268 | 10 | 90 | 26.8 | 0.827004 | 0 | 0 | 0 | 0 | 0 | 0.226766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7d06085df3fe41964096c1793c9b3fba869163aa | 273 | py | Python | setup.py | klaasb/python-dmenuwrap | ffc592da00d1c53200e4b391a81c423afc06c592 | [
"BSD-2-Clause"
] | 1 | 2019-06-28T17:47:43.000Z | 2019-06-28T17:47:43.000Z | setup.py | klaasb/python-dmenuwrap | ffc592da00d1c53200e4b391a81c423afc06c592 | [
"BSD-2-Clause"
] | null | null | null | setup.py | klaasb/python-dmenuwrap | ffc592da00d1c53200e4b391a81c423afc06c592 | [
"BSD-2-Clause"
] | null | null | null | from distutils.core import setup
setup(
name='python-dmenuwrap',
author='Klaas Boesche',
author_email='klaas-dev@boesche.me',
url='https://github.com/KaGeBe/python-dmenuwrap',
version='0.1.0',
license='BSD 2-clause',
py_modules=['dmenuwrap']
)
| 22.75 | 53 | 0.67033 | 36 | 273 | 5.027778 | 0.777778 | 0.165746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017467 | 0.161172 | 273 | 11 | 54 | 24.818182 | 0.772926 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7d088e8ad48a298f700c49b458a6cd8398f17041 | 19,511 | py | Python | FortressOfSolitude/_FortressOfSolitude/NeutrinoKey/models.py | BDD16/FortressOfSolitude | 51070d3ffa78262d823ae8ccce4f8ae3c7ed83ac | [
"MIT"
] | null | null | null | FortressOfSolitude/_FortressOfSolitude/NeutrinoKey/models.py | BDD16/FortressOfSolitude | 51070d3ffa78262d823ae8ccce4f8ae3c7ed83ac | [
"MIT"
] | 6 | 2021-07-26T14:07:30.000Z | 2022-01-09T01:06:40.000Z | FortressOfSolitude/_FortressOfSolitude/NeutrinoKey/models.py | BDD16/FortressOfSolitude | 51070d3ffa78262d823ae8ccce4f8ae3c7ed83ac | [
"MIT"
] | null | null | null | """
DBA 1337_TECH, AUSTIN TEXAS © MAY 2020
Proof of Concept code, No liabilities or warranties expressed or implied.
"""
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from datetime import datetime
from .cryptoutils import CryptoTools
from base64 import b64encode, b64dec... | 39.576065 | 194 | 0.621906 | 2,258 | 19,511 | 5.240921 | 0.134632 | 0.073601 | 0.063884 | 0.026027 | 0.651344 | 0.625148 | 0.564729 | 0.540477 | 0.489522 | 0.450397 | 0 | 0.019832 | 0.284147 | 19,511 | 492 | 195 | 39.656504 | 0.827379 | 0.063964 | 0 | 0.533123 | 0 | 0 | 0.057895 | 0.00128 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053628 | false | 0.22082 | 0.022082 | 0.009464 | 0.258675 | 0.066246 | 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 | 0 | 0 | 0 | 1 |
7d124f218a5ee0a4b8f0187b77fddb8e78f5822d | 866 | py | Python | ledis/datastructures.py | gianghta/Ledis | a6b31617621746344408ee411cf510ef3cfb2e7b | [
"MIT"
] | null | null | null | ledis/datastructures.py | gianghta/Ledis | a6b31617621746344408ee411cf510ef3cfb2e7b | [
"MIT"
] | null | null | null | ledis/datastructures.py | gianghta/Ledis | a6b31617621746344408ee411cf510ef3cfb2e7b | [
"MIT"
] | null | null | null | from enum import unique, Enum
from typing import Union
@unique
class DataType(Enum):
STR = "str"
SET = "set"
class BaseDataStructure:
__slots__ = {"data", "type", "expire_at"}
def __init__(self, data: Union[str, set]):
self.data = data
# This will raise an error if type is not supp... | 21.121951 | 62 | 0.614319 | 104 | 866 | 4.884615 | 0.480769 | 0.062992 | 0.047244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.297921 | 866 | 40 | 63 | 21.65 | 0.835526 | 0.15127 | 0 | 0.083333 | 0 | 0 | 0.031464 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0.083333 | 0 | 0.541667 | 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 | 0 | 0 | 0 | 1 |
7d175bf034fa65f7ae66fd6150ae4013621d9935 | 16,355 | py | Python | tests/normalizer/test_number_normalizer.py | tkscode/pyNormalizeNumExp | ac7df9b49153d9b792f5c8087b17c0d8c4a615b2 | [
"BSD-3-Clause"
] | 2 | 2021-11-09T06:18:21.000Z | 2021-12-04T10:58:26.000Z | tests/normalizer/test_number_normalizer.py | tkscode/pyNormalizeNumExp | ac7df9b49153d9b792f5c8087b17c0d8c4a615b2 | [
"BSD-3-Clause"
] | null | null | null | tests/normalizer/test_number_normalizer.py | tkscode/pyNormalizeNumExp | ac7df9b49153d9b792f5c8087b17c0d8c4a615b2 | [
"BSD-3-Clause"
] | 1 | 2021-11-09T03:33:33.000Z | 2021-11-09T03:33:33.000Z | import pytest
from pynormalizenumexp.expression.base import NNumber, NotationType
from pynormalizenumexp.utility.dict_loader import DictLoader
from pynormalizenumexp.normalizer.number_normalizer import NumberNormalizer
@pytest.fixture(scope="class")
def number_normalizer():
return NumberNormalizer(DictLoader("ja... | 50.478395 | 123 | 0.667869 | 2,007 | 16,355 | 5.178376 | 0.106627 | 0.106225 | 0.076494 | 0.056577 | 0.786587 | 0.700953 | 0.626479 | 0.567016 | 0.468488 | 0.427692 | 0 | 0.07068 | 0.217976 | 16,355 | 323 | 124 | 50.634675 | 0.74136 | 0 | 0 | 0.352941 | 0 | 0 | 0.048915 | 0.011801 | 0 | 0 | 0 | 0 | 0.172794 | 1 | 0.077206 | false | 0 | 0.014706 | 0.003676 | 0.099265 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7d176782197a481d98435dbbce03b227e4fc2703 | 253 | py | Python | kivy/tests/pyinstaller/simple_widget/project/widget.py | Galland/kivy | 95a6bf279883d706f645e4629c16d5ee1038f0ec | [
"MIT"
] | 13,889 | 2015-01-01T06:43:41.000Z | 2022-03-31T17:37:56.000Z | kivy/tests/pyinstaller/simple_widget/project/widget.py | Galland/kivy | 95a6bf279883d706f645e4629c16d5ee1038f0ec | [
"MIT"
] | 4,570 | 2015-01-01T17:58:52.000Z | 2022-03-31T18:42:16.000Z | kivy/tests/pyinstaller/simple_widget/project/widget.py | Galland/kivy | 95a6bf279883d706f645e4629c16d5ee1038f0ec | [
"MIT"
] | 3,786 | 2015-01-01T09:20:45.000Z | 2022-03-30T21:15:05.000Z | from kivy.uix.widget import Widget
class MyWidget(Widget):
def __init__(self, **kwargs):
super(MyWidget, self).__init__(**kwargs)
def callback(*l):
self.x = self.y
self.fbind('y', callback)
callback()
| 19.461538 | 48 | 0.58498 | 30 | 253 | 4.666667 | 0.566667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.280632 | 253 | 12 | 49 | 21.083333 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0.003953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7d196d02b6dfdae637cba35d8a14ed891350c55a | 1,046 | py | Python | microcosm_flask/session.py | KensoDev/microcosm-flask | 3618333f4a0f45e673a33986877157208c9eac5f | [
"Apache-2.0"
] | 11 | 2017-01-30T21:53:20.000Z | 2020-05-29T22:39:19.000Z | microcosm_flask/session.py | KensoDev/microcosm-flask | 3618333f4a0f45e673a33986877157208c9eac5f | [
"Apache-2.0"
] | 139 | 2016-03-09T19:09:59.000Z | 2021-09-03T17:14:00.000Z | microcosm_flask/session.py | KensoDev/microcosm-flask | 3618333f4a0f45e673a33986877157208c9eac5f | [
"Apache-2.0"
] | 10 | 2016-12-19T22:39:42.000Z | 2021-03-09T19:23:15.000Z | """
Support a user-defined per-request session.
"""
from flask import g
def register_session_factory(graph, key, session_factory):
"""
Register a session creation function so that a new session (of user-defined type)
will be saved to `flask.g` on every request (and closed on teardown).
In other word... | 30.764706 | 85 | 0.688337 | 146 | 1,046 | 4.863014 | 0.506849 | 0.078873 | 0.080282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235182 | 1,046 | 33 | 86 | 31.69697 | 0.8875 | 0.563098 | 0 | 0 | 0 | 0 | 0.012376 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0 | 0.4 | 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 | 0 | 0 | 0 | 1 |
7d198a067cf29bfd3860f24dbef0396a06853828 | 5,188 | py | Python | pkg_ros_iot_bridge/scripts/temp_for_salim/get_sheet.py | 1arshan/Eyantra_Virgi-bot | 30ebe99fec6a0d4767fe94468b21bc00091bc527 | [
"MIT"
] | 1 | 2021-09-09T04:41:28.000Z | 2021-09-09T04:41:28.000Z | pkg_ros_iot_bridge/scripts/temp_for_salim/get_sheet.py | 1arshan/Eyantra_Virgi-bot | 30ebe99fec6a0d4767fe94468b21bc00091bc527 | [
"MIT"
] | null | null | null | pkg_ros_iot_bridge/scripts/temp_for_salim/get_sheet.py | 1arshan/Eyantra_Virgi-bot | 30ebe99fec6a0d4767fe94468b21bc00091bc527 | [
"MIT"
] | null | null | null | #! /usr/bin/env python2.7
import requests
import json
import heapq as hq #heap
def check_order(order_id,order_info):
for i in order_info:
if i[1] == order_id:
return True
return False
def check_if_dispatched(order_id):
# URL = "https://spreadsheets.google.com/feeds/list/1ria... | 39.907692 | 152 | 0.655551 | 715 | 5,188 | 4.560839 | 0.172028 | 0.055198 | 0.036799 | 0.053971 | 0.774302 | 0.709598 | 0.666053 | 0.650721 | 0.650721 | 0.562404 | 0 | 0.034088 | 0.208365 | 5,188 | 130 | 153 | 39.907692 | 0.759922 | 0.241133 | 0 | 0.602273 | 0 | 0.034091 | 0.176056 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.034091 | 0 | 0.181818 | 0.022727 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7d1e3411660fc6ff987dff3de950e6a48810d1d8 | 7,125 | py | Python | tests/tests_bibliotools/test_parse_and_group.py | wonjoonSeol/ScienceScape | 8d8a3cb76193b6f85b7a2a6c7219e249237d64c8 | [
"BSD-3-Clause"
] | 5 | 2018-02-14T21:11:06.000Z | 2020-02-23T14:53:11.000Z | tests/tests_bibliotools/test_parse_and_group.py | wonjoonSeol/ScienceScape | 8d8a3cb76193b6f85b7a2a6c7219e249237d64c8 | [
"BSD-3-Clause"
] | 106 | 2018-02-09T00:31:05.000Z | 2018-03-29T07:28:34.000Z | tests/tests_bibliotools/test_parse_and_group.py | wonjoonSeol/ScienceScape | 8d8a3cb76193b6f85b7a2a6c7219e249237d64c8 | [
"BSD-3-Clause"
] | 6 | 2018-02-23T17:48:03.000Z | 2020-05-14T13:39:36.000Z | from django.test import TestCase
import sys
import os
lib_path = os.path.abspath(os.path.join(__file__, '..', '..', '..', 'bibliotools3', 'scripts'))
sys.path.append(lib_path)
from parse_and_group import is_year_within_span
from parse_and_group import create_span_files
from parse_and_group import separate_years
from ... | 60.897436 | 2,417 | 0.703439 | 981 | 7,125 | 4.993884 | 0.399592 | 0.019596 | 0.026536 | 0.031843 | 0.359869 | 0.326801 | 0.296183 | 0.270055 | 0.257808 | 0.253725 | 0 | 0.058927 | 0.204491 | 7,125 | 116 | 2,418 | 61.422414 | 0.805399 | 0.052211 | 0 | 0 | 0 | 0.026667 | 0.564006 | 0.152417 | 0 | 0 | 0 | 0 | 0.053333 | 1 | 0.053333 | false | 0 | 0.093333 | 0 | 0.16 | 0.013333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7d1f3ddbc8caa64dc170bb034f2e11f6a498e3f3 | 968 | py | Python | src/hw_conversion/HWPreprocessor.py | jmbarrios/hw-conversion | 8addd24e726e7284ade3195df14f96ea51c332b7 | [
"MIT"
] | null | null | null | src/hw_conversion/HWPreprocessor.py | jmbarrios/hw-conversion | 8addd24e726e7284ade3195df14f96ea51c332b7 | [
"MIT"
] | null | null | null | src/hw_conversion/HWPreprocessor.py | jmbarrios/hw-conversion | 8addd24e726e7284ade3195df14f96ea51c332b7 | [
"MIT"
] | null | null | null | '''
Module containing a preprocessor that keeps cells if they match given
expression.
'''
# Author: Juan M. Barrios <j.m.barrios@gmail.com>
import re
from typing import Pattern
from traitlets import Unicode
from nbconvert.preprocessors import Preprocessor
class HomeworkPreproccessor(Preprocessor):
'''Keeps cell... | 27.657143 | 77 | 0.67562 | 120 | 968 | 5.416667 | 0.541667 | 0.050769 | 0.052308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241736 | 968 | 35 | 78 | 27.657143 | 0.885559 | 0.332645 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7d27c111549ca054eb1d4350e5f213c7b661a06c | 500 | py | Python | drinks/migrations/0002_drink_ingredients.py | jmhubbard/cocktail_api | 47c2cca699f02dc14af04b989beeee9855a797f0 | [
"Unlicense"
] | 1 | 2020-11-25T04:57:34.000Z | 2020-11-25T04:57:34.000Z | drinks/migrations/0002_drink_ingredients.py | jmhubbard/cocktail_api | 47c2cca699f02dc14af04b989beeee9855a797f0 | [
"Unlicense"
] | null | null | null | drinks/migrations/0002_drink_ingredients.py | jmhubbard/cocktail_api | 47c2cca699f02dc14af04b989beeee9855a797f0 | [
"Unlicense"
] | null | null | null | # Generated by Django 3.1.2 on 2020-10-29 04:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('recipes', '0001_initial'),
('ingredients', '0001_initial'),
('drinks', '0001_initial'),
]
operations = [
migrations.AddField... | 23.809524 | 96 | 0.6 | 49 | 500 | 6.040816 | 0.734694 | 0.111486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07337 | 0.264 | 500 | 20 | 97 | 25 | 0.730978 | 0.09 | 0 | 0 | 1 | 0 | 0.247241 | 0.048565 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7d2a2fea07d41d19ee631745dc1ae58b9dcafc22 | 7,363 | py | Python | src/ResourceManager.py | NEKERAFA/Soul-Tower | d37c0bf6bcbf253ec5b2c41f802adeeca31fb384 | [
"MIT"
] | null | null | null | src/ResourceManager.py | NEKERAFA/Soul-Tower | d37c0bf6bcbf253ec5b2c41f802adeeca31fb384 | [
"MIT"
] | null | null | null | src/ResourceManager.py | NEKERAFA/Soul-Tower | d37c0bf6bcbf253ec5b2c41f802adeeca31fb384 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import pygame, sys, os, json
from pygame.locals import *
IMAGE_PATH = os.path.join('assets', 'images')
SPRITE_SHEET_PATH = os.path.join('assets', 'sprites')
STAGE_CONF_PATH = os.path.join('assets', 'stages')
ROOM_CONF_PATH = os.path.join('assets', 'rooms')
DIALOGUE_CONF_PATH = os.path.join('as... | 33.621005 | 76 | 0.573408 | 849 | 7,363 | 4.897527 | 0.147232 | 0.095238 | 0.055315 | 0.060606 | 0.721982 | 0.687831 | 0.639731 | 0.594998 | 0.594998 | 0.594998 | 0 | 0.001237 | 0.341029 | 7,363 | 218 | 77 | 33.775229 | 0.85573 | 0.170583 | 0 | 0.635762 | 0 | 0 | 0.040884 | 0 | 0 | 0 | 0 | 0.004587 | 0 | 0 | null | null | 0 | 0.013245 | null | null | 0.046358 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
7d2c1800b1cf775906aaeca97219fcb2b7436072 | 1,307 | py | Python | valuation/migrations/0001_initial.py | jiun0507/minestock | b333298575cae1c426cc4450e85e9e576458b74a | [
"Unlicense"
] | null | null | null | valuation/migrations/0001_initial.py | jiun0507/minestock | b333298575cae1c426cc4450e85e9e576458b74a | [
"Unlicense"
] | null | null | null | valuation/migrations/0001_initial.py | jiun0507/minestock | b333298575cae1c426cc4450e85e9e576458b74a | [
"Unlicense"
] | 1 | 2021-10-15T20:10:39.000Z | 2021-10-15T20:10:39.000Z | # Generated by Django 3.2 on 2021-04-28 12:31
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
opera... | 36.305556 | 161 | 0.599847 | 132 | 1,307 | 5.810606 | 0.515152 | 0.031291 | 0.036506 | 0.057366 | 0.21382 | 0.21382 | 0.21382 | 0.21382 | 0.21382 | 0.21382 | 0 | 0.021717 | 0.260138 | 1,307 | 35 | 162 | 37.342857 | 0.771458 | 0.0329 | 0 | 0.357143 | 1 | 0 | 0.090333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7d2eedcb594966e266531a38d18f3efe92684a79 | 1,615 | py | Python | linear regression/simple_linear_regression.py | liangjisheng/Machine-Learning | 55b6781d621e2de09c6e750ecc993178fb247c7b | [
"MIT"
] | null | null | null | linear regression/simple_linear_regression.py | liangjisheng/Machine-Learning | 55b6781d621e2de09c6e750ecc993178fb247c7b | [
"MIT"
] | null | null | null | linear regression/simple_linear_regression.py | liangjisheng/Machine-Learning | 55b6781d621e2de09c6e750ecc993178fb247c7b | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
"""
@project = 0602-1
@file = simple_linear_regression
@author = Liangjisheng
@create_time = 2018/6/2 0002 下午 17:16
"""
import matplotlib.pyplot as plt
import numpy as np
from sklearn import datasets, linear_model
# 加载用于回归模型的数据集
# 这个数据集中一共有442个样本,特征向量维度为10
# 特征向量每个变量为实数,变化范围(-.2 ,.2)
# 目标输出为实数,变... | 24.469697 | 83 | 0.763467 | 219 | 1,615 | 5.424658 | 0.479452 | 0.106061 | 0.065657 | 0.070707 | 0.095118 | 0.065657 | 0 | 0 | 0 | 0 | 0 | 0.041181 | 0.097833 | 1,615 | 65 | 84 | 24.846154 | 0.774194 | 0.35418 | 0 | 0 | 0 | 0 | 0.042365 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.407407 | 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 | 0 | 0 | 1 | 0 | 1 |
7d3ea37ac9acf74a01f56012eb7dac104176c0aa | 1,392 | py | Python | mititools/mititools/serializers/frictionless.py | jimmymathews/MITI | 0745b051a02fd1055ff80af560683fdbb18d5651 | [
"MIT"
] | null | null | null | mititools/mititools/serializers/frictionless.py | jimmymathews/MITI | 0745b051a02fd1055ff80af560683fdbb18d5651 | [
"MIT"
] | null | null | null | mititools/mititools/serializers/frictionless.py | jimmymathews/MITI | 0745b051a02fd1055ff80af560683fdbb18d5651 | [
"MIT"
] | null | null | null | import os
from os import mkdir
from os.path import join
from os.path import exists
import json
import importlib.resources
import jinja2
from jinja2 import Environment
from jinja2 import BaseLoader
with importlib.resources.path('mititools', 'fd_schema.json.jinja') as file:
jinja_environment = Environment(loader=Ba... | 32.372093 | 75 | 0.75431 | 188 | 1,392 | 5.31383 | 0.382979 | 0.045045 | 0.065065 | 0.032032 | 0.064064 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003422 | 0.160201 | 1,392 | 42 | 76 | 33.142857 | 0.851155 | 0 | 0 | 0 | 0 | 0 | 0.04023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.393939 | 0 | 0.484848 | 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 | 0 | 0 | 0 | 1 |
7d400f7a4ed47d3dc5c52007ae1f8fcbedc5ec4c | 2,216 | py | Python | mvj/urls.py | tuomas777/mvj | e9a12e42c399b9fb77fd8fad85fc8f0f6d4ce405 | [
"MIT"
] | null | null | null | mvj/urls.py | tuomas777/mvj | e9a12e42c399b9fb77fd8fad85fc8f0f6d4ce405 | [
"MIT"
] | null | null | null | mvj/urls.py | tuomas777/mvj | e9a12e42c399b9fb77fd8fad85fc8f0f6d4ce405 | [
"MIT"
] | null | null | null | import rest_framework.urls
from django.conf import settings
from django.contrib import admin
from django.urls import include, path, re_path
from rest_framework import routers
from rest_framework_swagger.views import get_swagger_view
from leasing.views import ktj_proxy
from leasing.viewsets.basis_of_rent import BasisOf... | 43.45098 | 106 | 0.813628 | 254 | 2,216 | 6.968504 | 0.358268 | 0.142373 | 0.152542 | 0.024859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000491 | 0.080776 | 2,216 | 50 | 107 | 44.32 | 0.868434 | 0 | 0 | 0 | 0 | 0 | 0.129513 | 0.026625 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.311111 | 0 | 0.311111 | 0.022222 | 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 | 0 | 0 | 0 | 1 |
7d44b7e8f5a379cc7b50059795fc7b51e4005b04 | 361 | py | Python | hy-data-analysis-with-python-spring-2020/part03-e07_meeting_planes/src/meeting_planes.py | Melimet/DAP2020 | 0854fe4ce8ace6abf6dc0bbcf71984595ff6d42a | [
"MIT"
] | null | null | null | hy-data-analysis-with-python-spring-2020/part03-e07_meeting_planes/src/meeting_planes.py | Melimet/DAP2020 | 0854fe4ce8ace6abf6dc0bbcf71984595ff6d42a | [
"MIT"
] | null | null | null | hy-data-analysis-with-python-spring-2020/part03-e07_meeting_planes/src/meeting_planes.py | Melimet/DAP2020 | 0854fe4ce8ace6abf6dc0bbcf71984595ff6d42a | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import numpy as np
def meeting_planes(a1, b1, c1, a2, b2, c2, a3, b3, c3):
return []
def main():
a1=1
b1=4
c1=5
a2=3
b2=2
c2=1
a3=2
b3=4
c3=1
x, y, z = meeting_planes(a1, b1, c1, a2, b2, c2, a3, b3, c3)
print(f"Planes meet at x={x}, y={y} and z={z}"... | 15.041667 | 64 | 0.518006 | 70 | 361 | 2.528571 | 0.514286 | 0.146893 | 0.169492 | 0.19209 | 0.350282 | 0.350282 | 0.350282 | 0.350282 | 0.350282 | 0.350282 | 0 | 0.14741 | 0.304709 | 361 | 23 | 65 | 15.695652 | 0.557769 | 0.047091 | 0 | 0 | 0 | 0 | 0.131195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0.058824 | 0.235294 | 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 | 0 | 0 | 0 | 0 | 1 |
7d473618101c1bf818cfd31f50f7230e32057c47 | 566 | py | Python | setup.py | iatlab/datas-utils | b8eef303de5a5d5a57182c0627b721dde0b6b300 | [
"MIT"
] | null | null | null | setup.py | iatlab/datas-utils | b8eef303de5a5d5a57182c0627b721dde0b6b300 | [
"MIT"
] | null | null | null | setup.py | iatlab/datas-utils | b8eef303de5a5d5a57182c0627b721dde0b6b300 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
from setuptools import setup
setup(
name = "datas_utils",
packages = ["datas_utils",
"datas_utils.env",
"datas_utils.log",
"datas_utils.aws",
],
version = "0.0.1",
description = "Tools for Datas Project",
author ... | 28.3 | 74 | 0.55477 | 66 | 566 | 4.621212 | 0.727273 | 0.196721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.279152 | 566 | 19 | 75 | 29.789474 | 0.718137 | 0.035336 | 0 | 0 | 0 | 0 | 0.398897 | 0.055147 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7d507f34d285e67fb744c8b50084ce59c5e7e8eb | 2,065 | py | Python | script/sklearn_like_toolkit/warpper/wrapperGridSearchCV.py | demetoir/MLtools | 8c42fcd4cc71728333d9c116ade639fe57d50d37 | [
"MIT"
] | null | null | null | script/sklearn_like_toolkit/warpper/wrapperGridSearchCV.py | demetoir/MLtools | 8c42fcd4cc71728333d9c116ade639fe57d50d37 | [
"MIT"
] | null | null | null | script/sklearn_like_toolkit/warpper/wrapperGridSearchCV.py | demetoir/MLtools | 8c42fcd4cc71728333d9c116ade639fe57d50d37 | [
"MIT"
] | null | null | null | from sklearn import model_selection
from sklearn.externals.joblib import Parallel
from tqdm import tqdm
from script.sklearn_like_toolkit.warpper.base.MixIn import ClfWrapperMixIn, MetaBaseWrapperClfWithABC
import multiprocessing
CPU_COUNT = multiprocessing.cpu_count()
# TODO using packtools.grid_search Grid... | 42.142857 | 117 | 0.708475 | 223 | 2,065 | 6.269058 | 0.434978 | 0.040057 | 0.032904 | 0.031474 | 0.04721 | 0.04721 | 0 | 0 | 0 | 0 | 0 | 0.001852 | 0.215496 | 2,065 | 48 | 118 | 43.020833 | 0.861111 | 0.171429 | 0 | 0 | 0 | 0 | 0.022465 | 0 | 0 | 0 | 0 | 0.020833 | 0 | 1 | 0.107143 | false | 0 | 0.178571 | 0 | 0.464286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ada4fe020a9277ea274b6aa23f3bc9a49595bbe7 | 430 | py | Python | angr/procedures/libc/tolower.py | mariusmue/angr | f8304c4b1f0097a721a6692b02a45cabaae137c5 | [
"BSD-2-Clause"
] | 2 | 2018-12-03T23:14:56.000Z | 2018-12-03T23:15:57.000Z | angr/procedures/libc/tolower.py | mariusmue/angr | f8304c4b1f0097a721a6692b02a45cabaae137c5 | [
"BSD-2-Clause"
] | null | null | null | angr/procedures/libc/tolower.py | mariusmue/angr | f8304c4b1f0097a721a6692b02a45cabaae137c5 | [
"BSD-2-Clause"
] | 1 | 2019-08-07T01:42:01.000Z | 2019-08-07T01:42:01.000Z | import angr
from angr.sim_type import SimTypeInt
import logging
l = logging.getLogger("angr.procedures.libc.tolower")
class tolower(angr.SimProcedure):
def run(self, c):
self.argument_types = {0: SimTypeInt(self.state.arch, True)}
self.return_type = SimTypeInt(self.state.arch, True)
retu... | 26.875 | 68 | 0.644186 | 60 | 430 | 4.566667 | 0.55 | 0.131387 | 0.138686 | 0.167883 | 0.19708 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021084 | 0.227907 | 430 | 15 | 69 | 28.666667 | 0.804217 | 0.011628 | 0 | 0 | 0 | 0 | 0.066194 | 0.066194 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
adb71119cdfc222b0935d1f0fd6885370fac21e0 | 922 | py | Python | movie/migrations/0003_auto_20200718_0759.py | edith007/The-Movie-Database | fef4aba56be66b93de5665da374ec8aab05c40f9 | [
"CC0-1.0"
] | 2 | 2020-07-12T20:15:53.000Z | 2020-07-19T12:07:48.000Z | movie/migrations/0003_auto_20200718_0759.py | edith007/The-Movie-DataBase | fef4aba56be66b93de5665da374ec8aab05c40f9 | [
"CC0-1.0"
] | 1 | 2020-07-12T07:50:55.000Z | 2020-07-12T07:50:55.000Z | movie/migrations/0003_auto_20200718_0759.py | edith007/The-Movie-DataBase | fef4aba56be66b93de5665da374ec8aab05c40f9 | [
"CC0-1.0"
] | null | null | null | # Generated by Django 2.2.12 on 2020-07-18 07:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('movie', '0002_auto_20200717_1039'),
]
operations = [
migrations.RemoveField(
model_name='show',
name='plot',
... | 24.263158 | 49 | 0.520607 | 81 | 922 | 5.82716 | 0.481481 | 0.095339 | 0.110169 | 0.144068 | 0.451271 | 0.451271 | 0.377119 | 0.377119 | 0.262712 | 0.262712 | 0 | 0.055369 | 0.353579 | 922 | 37 | 50 | 24.918919 | 0.736577 | 0.049892 | 0 | 0.516129 | 1 | 0 | 0.092677 | 0.026316 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.129032 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
adb85db75ca4685e65491305d77f76efef993ae2 | 220 | py | Python | figures/styles.py | Jakob-Unfried/msc-legacy | 2c41f3f714936c25dd534bd66da802c26176fcfa | [
"MIT"
] | 1 | 2021-03-22T14:16:43.000Z | 2021-03-22T14:16:43.000Z | figures/styles.py | Jakob-Unfried/msc-legacy | 2c41f3f714936c25dd534bd66da802c26176fcfa | [
"MIT"
] | null | null | null | figures/styles.py | Jakob-Unfried/msc-legacy | 2c41f3f714936c25dd534bd66da802c26176fcfa | [
"MIT"
] | null | null | null | colors_per_chi = {2: 'green', 3: 'orange', 4: 'purple', 5: 'pink', 6: 'red'}
style_per_chi = {2: '-', 3: '-.', 4: 'dotted'}
markers_per_reason = {'converged': 'o', 'progress': 'x', 'ressources': 'v'}
linewidth = 5.31596
| 44 | 76 | 0.581818 | 32 | 220 | 3.8125 | 0.78125 | 0.098361 | 0.114754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0.140909 | 220 | 4 | 77 | 55 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0.286364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
adb871b1b9356162327f5a254f4edf184c40e44c | 2,222 | py | Python | index.py | tapanbk/compass-distance-and-bearing | 2554a39c79570cb675b8d02d1fe8de7a86a7d0f4 | [
"Apache-2.0"
] | null | null | null | index.py | tapanbk/compass-distance-and-bearing | 2554a39c79570cb675b8d02d1fe8de7a86a7d0f4 | [
"Apache-2.0"
] | null | null | null | index.py | tapanbk/compass-distance-and-bearing | 2554a39c79570cb675b8d02d1fe8de7a86a7d0f4 | [
"Apache-2.0"
] | null | null | null | def calculate_compass_distance(origin, destination):
import math
origin_latitude, origin_longitude = origin
destination_latitude, destination_longitude = destination
# 3959 = > Miles and 6371 = > KM
# unit in meters
radius = 6371*1000
dlat = math.radians(destination_latitude-origin_latitude)... | 47.276596 | 93 | 0.713771 | 274 | 2,222 | 5.59854 | 0.354015 | 0.111473 | 0.071708 | 0.05867 | 0.189048 | 0.170795 | 0.110821 | 0.110821 | 0.110821 | 0.110821 | 0 | 0.12766 | 0.175068 | 2,222 | 46 | 94 | 48.304348 | 0.70922 | 0.191719 | 0 | 0.181818 | 0 | 0 | 0.025843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0.181818 | 0.060606 | 0 | 0.181818 | 0.030303 | 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 | 0 | 0 | 0 | 1 |
adbb784f60c50615a64e5766faabdc65dde7543d | 446 | py | Python | setup.py | CubexX/shortest-python | 0b778ad88cc329e00ecd94236178f13735451ded | [
"MIT"
] | null | null | null | setup.py | CubexX/shortest-python | 0b778ad88cc329e00ecd94236178f13735451ded | [
"MIT"
] | null | null | null | setup.py | CubexX/shortest-python | 0b778ad88cc329e00ecd94236178f13735451ded | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(
name='shortest-python',
packages=['shortest'],
version='0.1',
description='Python library for shorte.st url shortener',
long_description="More on github: https://github.com/CubexX/shortest-python",
author='CubexX',
author_email='root@cubexx.xyz',
... | 29.733333 | 81 | 0.683857 | 55 | 446 | 5.509091 | 0.618182 | 0.138614 | 0.092409 | 0.132013 | 0.224422 | 0.224422 | 0 | 0 | 0 | 0 | 0 | 0.005291 | 0.152466 | 446 | 14 | 82 | 31.857143 | 0.796296 | 0 | 0 | 0 | 0 | 0 | 0.493274 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
adbd54f48752ea1ae6b17c7029c2a22c69b5f6e2 | 3,381 | py | Python | 04_random_forest_exp.py | markysamson/CDSWcreditcardfraud | 31dc6d417baee4ef5736bce74059815b4f51542a | [
"Apache-2.0"
] | null | null | null | 04_random_forest_exp.py | markysamson/CDSWcreditcardfraud | 31dc6d417baee4ef5736bce74059815b4f51542a | [
"Apache-2.0"
] | null | null | null | 04_random_forest_exp.py | markysamson/CDSWcreditcardfraud | 31dc6d417baee4ef5736bce74059815b4f51542a | [
"Apache-2.0"
] | null | null | null | # # Building and Evaluating Random Forest Model
# ## Setup
# Import useful packages, modules, classes, and functions:
from __future__ import print_function
from pyspark.sql import SparkSession
from pyspark.sql.functions import col
#import numpy as np
#import pandas as pd
import matplotlib.pyplot as plt
#import seabor... | 37.988764 | 149 | 0.762496 | 457 | 3,381 | 5.551422 | 0.407002 | 0.024832 | 0.020102 | 0.006307 | 0.134017 | 0.115097 | 0.073315 | 0.073315 | 0.073315 | 0.073315 | 0 | 0.021922 | 0.123041 | 3,381 | 89 | 150 | 37.988764 | 0.833727 | 0.487134 | 0 | 0 | 0 | 0 | 0.111905 | 0.016667 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.275862 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
adc85f255e45341493cae7d856bac908be193a3e | 6,347 | py | Python | common/utils/utils.py | hvsuchitra/tv_tracker | 5415d177fe9a4e16ec39d9812e9502840bba5b12 | [
"MIT"
] | null | null | null | common/utils/utils.py | hvsuchitra/tv_tracker | 5415d177fe9a4e16ec39d9812e9502840bba5b12 | [
"MIT"
] | null | null | null | common/utils/utils.py | hvsuchitra/tv_tracker | 5415d177fe9a4e16ec39d9812e9502840bba5b12 | [
"MIT"
] | null | null | null | import smtplib
def get_binary(src_file):
with open(src_file, 'rb') as f:
return f.read()
def send_mail(to, username, password, message_type='account_creation'):
server = 'smtp.mail.me.com'
port = 587
email = 'mailid'
_password = 'password'
if message_type == 'account_creation':
... | 27.595652 | 109 | 0.688357 | 804 | 6,347 | 5.300995 | 0.288557 | 0.021117 | 0.010324 | 0.011262 | 0.186767 | 0.147114 | 0.084702 | 0.062412 | 0.049273 | 0.049273 | 0 | 0.012234 | 0.201513 | 6,347 | 229 | 110 | 27.716157 | 0.828729 | 0.016071 | 0 | 0.144737 | 0 | 0 | 0.130909 | 0.004166 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131579 | false | 0.125 | 0.111842 | 0 | 0.335526 | 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 | 0 | 0 | 0 | 1 |
adcb4497ce1ae012191c1c8f35996119cb7174cf | 1,059 | py | Python | python/python_challenge/25/25.py | yunyu2019/blog | e4dce66504ad9b9c16d8e40ef6dff92e17ad0af0 | [
"Apache-2.0"
] | null | null | null | python/python_challenge/25/25.py | yunyu2019/blog | e4dce66504ad9b9c16d8e40ef6dff92e17ad0af0 | [
"Apache-2.0"
] | null | null | null | python/python_challenge/25/25.py | yunyu2019/blog | e4dce66504ad9b9c16d8e40ef6dff92e17ad0af0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# @Date : 2016-05-17 16:36:18
# @Author : Yunyu2019 (yunyu2010@yeah.net)
# @Link : http://www.pythonchallenge.com/pc/hex/lake.html
import os
import wave
import time
import Image
import requests
def download(urls):
filename=os.path.basename(urls)
... | 24.068182 | 64 | 0.586402 | 156 | 1,059 | 3.980769 | 0.557692 | 0.022544 | 0.070853 | 0.080515 | 0.109501 | 0.109501 | 0.109501 | 0 | 0 | 0 | 0 | 0.058968 | 0.23135 | 1,059 | 44 | 65 | 24.068182 | 0.703931 | 0.160529 | 0 | 0.068966 | 0 | 0 | 0.091292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.172414 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
add2a5d0a4f10c67d63cf8daaaf3c6b9766d80f2 | 2,743 | py | Python | caloric_balance/test_main_getUserString.py | ankitsumitg/python-projects | 34a3df6fcd8544bf83aa9f3d47ec160e3838b1d1 | [
"MIT"
] | 1 | 2021-03-22T20:45:06.000Z | 2021-03-22T20:45:06.000Z | caloric_balance/test_main_getUserString.py | ankitsumitg/python-projects | 34a3df6fcd8544bf83aa9f3d47ec160e3838b1d1 | [
"MIT"
] | null | null | null | caloric_balance/test_main_getUserString.py | ankitsumitg/python-projects | 34a3df6fcd8544bf83aa9f3d47ec160e3838b1d1 | [
"MIT"
] | null | null | null | """
Do Not Edit this file. You may and are encouraged to look at it for reference.
"""
import sys
if sys.version_info.major != 3:
print('You must use Python 3.x version to run this unit test')
sys.exit(1)
import unittest
import main
class TestGetUserString(unittest.TestCase):
def input_replacement(self... | 33.048193 | 87 | 0.677725 | 303 | 2,743 | 5.867987 | 0.29703 | 0.08099 | 0.114736 | 0.082677 | 0.503937 | 0.503937 | 0.485939 | 0.485939 | 0.43757 | 0.43757 | 0 | 0.010125 | 0.243894 | 2,743 | 82 | 88 | 33.45122 | 0.847155 | 0.028436 | 0 | 0.46875 | 1 | 0 | 0.073767 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 1 | 0.125 | false | 0 | 0.109375 | 0.015625 | 0.375 | 0.046875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
add36b7db37e26004fe848c8316ce3ebda2a90b6 | 660 | py | Python | linked_list_reversal.py | Nikhilxavier/Linked-List | b934985d937edd2cd4a683d751a930aacd7f96bf | [
"BSD-3-Clause"
] | null | null | null | linked_list_reversal.py | Nikhilxavier/Linked-List | b934985d937edd2cd4a683d751a930aacd7f96bf | [
"BSD-3-Clause"
] | null | null | null | linked_list_reversal.py | Nikhilxavier/Linked-List | b934985d937edd2cd4a683d751a930aacd7f96bf | [
"BSD-3-Clause"
] | null | null | null | """
Implementation of Linked List reversal.
"""
# Author: Nikhil Xavier <nikhilxavier@yahoo.com>
# License: BSD 3 clause
class Node:
"""Node class for Singly Linked List."""
def __init__(self, value):
self.value = value
self.next_node = None
def reverse_linked_list(head):
"""Reverse li... | 20 | 48 | 0.668182 | 82 | 660 | 5.109756 | 0.402439 | 0.114558 | 0.143198 | 0.181384 | 0.190931 | 0.136038 | 0.136038 | 0.136038 | 0 | 0 | 0 | 0.002028 | 0.25303 | 660 | 32 | 49 | 20.625 | 0.84787 | 0.304545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
add8774dbb279519f1395cc74a9dc7957550b2a2 | 7,520 | py | Python | edg_core/test_simple_const_prop.py | tengisd/PolymorphicBlocks | 240a11f813762c4eb5a97c9d9766a0af19cd8f3a | [
"BSD-3-Clause"
] | null | null | null | edg_core/test_simple_const_prop.py | tengisd/PolymorphicBlocks | 240a11f813762c4eb5a97c9d9766a0af19cd8f3a | [
"BSD-3-Clause"
] | null | null | null | edg_core/test_simple_const_prop.py | tengisd/PolymorphicBlocks | 240a11f813762c4eb5a97c9d9766a0af19cd8f3a | [
"BSD-3-Clause"
] | null | null | null | import unittest
from . import *
from edg_core.ScalaCompilerInterface import ScalaCompiler
class TestConstPropInternal(Block):
def __init__(self) -> None:
super().__init__()
self.float_param = self.Parameter(FloatExpr())
self.range_param = self.Parameter(RangeExpr())
class TestParameterConstProp(Bloc... | 38.367347 | 100 | 0.71742 | 937 | 7,520 | 5.528282 | 0.085379 | 0.085714 | 0.121042 | 0.172008 | 0.671236 | 0.637066 | 0.611004 | 0.600386 | 0.540154 | 0.489961 | 0 | 0.017411 | 0.121676 | 7,520 | 195 | 101 | 38.564103 | 0.766843 | 0.009441 | 0 | 0.350746 | 0 | 0 | 0.07588 | 0 | 0 | 0 | 0 | 0 | 0.246269 | 1 | 0.186567 | false | 0 | 0.022388 | 0 | 0.328358 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
addded900080d658ae63eb6fa0ec1ba46ebc0d17 | 492 | py | Python | setup.py | my-old-projects/syspy | f870adfa6d2839fa8c8c8d3a6c3bdcfb0c863c1d | [
"MIT"
] | null | null | null | setup.py | my-old-projects/syspy | f870adfa6d2839fa8c8c8d3a6c3bdcfb0c863c1d | [
"MIT"
] | null | null | null | setup.py | my-old-projects/syspy | f870adfa6d2839fa8c8c8d3a6c3bdcfb0c863c1d | [
"MIT"
] | 1 | 2020-11-21T10:09:30.000Z | 2020-11-21T10:09:30.000Z | from distutils.core import setup
setup(
name = 'syspy',
version = '0.2',
url = 'https://github.com/aligoren/syspy',
download_url = 'https://github.com/aligoren/syspy/archive/master.zip',
author = 'Ali GOREN <goren.ali@yandex.com>',
author_email = 'goren.ali@yandex.com',
license = 'Apache v2... | 32.8 | 81 | 0.636179 | 59 | 492 | 5.271186 | 0.644068 | 0.051447 | 0.090032 | 0.109325 | 0.192926 | 0.192926 | 0 | 0 | 0 | 0 | 0 | 0.009926 | 0.180894 | 492 | 14 | 82 | 35.142857 | 0.761787 | 0 | 0 | 0 | 0 | 0 | 0.473577 | 0.044715 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
adde9423551c7dda2a8e059cbe593f3c2faacded | 1,638 | py | Python | DjangoECom/products/migrations/0003_auto_20210109_2256.py | MostafaSamyFayez/E-Commerce-Sys | 95ed3cb65b238866e336d43422dfb1737bfd7993 | [
"Unlicense"
] | 2 | 2021-04-01T00:23:44.000Z | 2021-04-01T00:23:48.000Z | DjangoECom/products/migrations/0003_auto_20210109_2256.py | MostafaSamyFayez/E-Commerce-Sys | 95ed3cb65b238866e336d43422dfb1737bfd7993 | [
"Unlicense"
] | null | null | null | DjangoECom/products/migrations/0003_auto_20210109_2256.py | MostafaSamyFayez/E-Commerce-Sys | 95ed3cb65b238866e336d43422dfb1737bfd7993 | [
"Unlicense"
] | 1 | 2021-01-23T13:06:25.000Z | 2021-01-23T13:06:25.000Z | # Generated by Django 3.1.4 on 2021-01-09 20:56
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('products', '0002_auto_20... | 39.95122 | 139 | 0.59707 | 172 | 1,638 | 5.540698 | 0.465116 | 0.033578 | 0.044071 | 0.069255 | 0.243442 | 0.18468 | 0.115425 | 0.115425 | 0.115425 | 0.115425 | 0 | 0.034539 | 0.257631 | 1,638 | 40 | 140 | 40.95 | 0.749178 | 0.027473 | 0 | 0.147059 | 1 | 0 | 0.10748 | 0.014456 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.088235 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ade1b9af12ca82c1c26ca0644c6d5b378d6445ab | 5,496 | py | Python | build.py | niklas2902/py4godot | bf50624d1fc94b55faf82a3a4d322e33fbba60ce | [
"MIT"
] | 2 | 2021-12-10T21:17:57.000Z | 2021-12-17T18:54:49.000Z | build.py | niklas2902/py4godot | bf50624d1fc94b55faf82a3a4d322e33fbba60ce | [
"MIT"
] | 9 | 2021-12-21T18:35:28.000Z | 2022-03-27T20:03:50.000Z | build.py | niklas2902/py4godot | bf50624d1fc94b55faf82a3a4d322e33fbba60ce | [
"MIT"
] | 1 | 2022-03-07T08:06:57.000Z | 2022-03-07T08:06:57.000Z | import argparse
import os
import subprocess
import time
from Cython.Build import cythonize
import generate_bindings
from meson_scripts import copy_tools, download_python, generate_init_files, \
locations, platform_check, generate_godot, \
download_godot
generate_bindings.build()
def cythonize_files():
m... | 41.014925 | 121 | 0.670852 | 660 | 5,496 | 5.365152 | 0.248485 | 0.047444 | 0.064953 | 0.048009 | 0.331262 | 0.275911 | 0.239198 | 0.133013 | 0.12087 | 0.12087 | 0 | 0.006046 | 0.157387 | 5,496 | 133 | 122 | 41.323308 | 0.758583 | 0.072962 | 0 | 0.083333 | 1 | 0 | 0.319166 | 0.196379 | 0 | 0 | 0 | 0.007519 | 0 | 1 | 0.03125 | false | 0 | 0.072917 | 0 | 0.125 | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ade5f5e2cfd5b36a0ae20ab962012600912b9fde | 1,337 | py | Python | backoffice/web/companies/serializers.py | uktrade/trade-access-program | 8fb565e96de7d7bb0bde31255aef0f291063e93c | [
"MIT"
] | 1 | 2021-03-04T15:24:12.000Z | 2021-03-04T15:24:12.000Z | backoffice/web/companies/serializers.py | uktrade/trade-access-program | 8fb565e96de7d7bb0bde31255aef0f291063e93c | [
"MIT"
] | 7 | 2020-08-24T13:27:02.000Z | 2021-06-09T18:42:31.000Z | backoffice/web/companies/serializers.py | uktrade/trade-access-program | 8fb565e96de7d7bb0bde31255aef0f291063e93c | [
"MIT"
] | 1 | 2021-05-20T07:40:00.000Z | 2021-05-20T07:40:00.000Z | from rest_framework import serializers
from web.companies.models import Company, DnbGetCompanyResponse
class DnbGetCompanyResponseSerializer(serializers.ModelSerializer):
class Meta:
model = DnbGetCompanyResponse
fields = ['id', 'company', 'dnb_data', 'registration_number', 'company_address']
... | 32.609756 | 95 | 0.732236 | 140 | 1,337 | 6.807143 | 0.478571 | 0.083945 | 0.044071 | 0.091291 | 0.256034 | 0.186779 | 0.186779 | 0.113326 | 0.113326 | 0.113326 | 0 | 0.009099 | 0.17801 | 1,337 | 40 | 96 | 33.425 | 0.858053 | 0 | 0 | 0.259259 | 0 | 0 | 0.082274 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.074074 | 0 | 0.592593 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
adf16cd52d01a8a986221348b55fd5f12bd7c761 | 826 | py | Python | test_day01.py | clfs/aoc2019 | 940fdbdd7bbb69c4a3a6c947c37bf7b60a201e88 | [
"MIT"
] | null | null | null | test_day01.py | clfs/aoc2019 | 940fdbdd7bbb69c4a3a6c947c37bf7b60a201e88 | [
"MIT"
] | null | null | null | test_day01.py | clfs/aoc2019 | 940fdbdd7bbb69c4a3a6c947c37bf7b60a201e88 | [
"MIT"
] | null | null | null | def fuel_required(weight: int) -> int:
return weight // 3 - 2
def fuel_required_accurate(weight: int) -> int:
fuel = 0
while weight > 0:
weight = max(0, weight // 3 - 2)
fuel += weight
return fuel
def test_fuel_required() -> None:
cases = [(12, 2), (14, 2), (1969, 654), (100756, ... | 25.030303 | 60 | 0.605327 | 121 | 826 | 3.975207 | 0.363636 | 0.199584 | 0.16632 | 0.079002 | 0.12474 | 0.12474 | 0.12474 | 0.12474 | 0 | 0 | 0 | 0.117264 | 0.256659 | 826 | 32 | 61 | 25.8125 | 0.666124 | 0 | 0 | 0.086957 | 0 | 0 | 0.014528 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 1 | 0.217391 | false | 0 | 0 | 0.043478 | 0.304348 | 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 | 0 | 0 | 0 | 1 |
adf4bfc1de4b0c89ad4020a842811facae16d88a | 499 | py | Python | Easy/After 157/175.Modified Kaprekar Numbers.py | sherryx080/CPTango | c7491156202fa7517c96b96dab27c867b949bb63 | [
"MIT"
] | null | null | null | Easy/After 157/175.Modified Kaprekar Numbers.py | sherryx080/CPTango | c7491156202fa7517c96b96dab27c867b949bb63 | [
"MIT"
] | null | null | null | Easy/After 157/175.Modified Kaprekar Numbers.py | sherryx080/CPTango | c7491156202fa7517c96b96dab27c867b949bb63 | [
"MIT"
] | null | null | null | import sys
p = int(sys.stdin.readline())
q = int(sys.stdin.readline())
result = []
for i in range(p,q+1):
square = i * i
l_num = 0
temp = list(str(square))
#print(temp[:len(temp)//2])
#print(temp[len(temp)//2:])
if square > 10:
l_num = int(''.join(temp[:len(temp)//2]))
r_num = int(... | 20.791667 | 49 | 0.54509 | 83 | 499 | 3.216867 | 0.373494 | 0.104869 | 0.164794 | 0.179775 | 0.307116 | 0.164794 | 0.164794 | 0 | 0 | 0 | 0 | 0.02381 | 0.242485 | 499 | 24 | 50 | 20.791667 | 0.68254 | 0.104208 | 0 | 0 | 0 | 0 | 0.03139 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0.111111 | 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 | 0 | 0 | 0 | 0 | 1 |
adf797c04c5912626a52449a6704952383c10673 | 451 | py | Python | login/migrations/0003_user_token.py | yuxiaoYX/xiaoshuo | 5652703521aa99774e8e0667c5e6b9f24a6d90ac | [
"MIT"
] | null | null | null | login/migrations/0003_user_token.py | yuxiaoYX/xiaoshuo | 5652703521aa99774e8e0667c5e6b9f24a6d90ac | [
"MIT"
] | null | null | null | login/migrations/0003_user_token.py | yuxiaoYX/xiaoshuo | 5652703521aa99774e8e0667c5e6b9f24a6d90ac | [
"MIT"
] | null | null | null | # Generated by Django 2.2.1 on 2019-07-28 08:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('login', '0002_auto_20190720_1846'),
]
operations = [
migrations.AddField(
model_name='user',
name='token',
... | 22.55 | 86 | 0.605322 | 50 | 451 | 5.32 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107692 | 0.279379 | 451 | 19 | 87 | 23.736842 | 0.710769 | 0.099778 | 0 | 0 | 1 | 0 | 0.108911 | 0.056931 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
adfa006844d8a11fe82113a8c42d8b2a11a4d2bc | 10,777 | py | Python | usersystem/views.py | sergioruizdavila/asanni-backend | b2da3f3a97dbd1ef46d65f13ee9b2098124d4fc4 | [
"MIT"
] | 8 | 2018-05-24T04:46:58.000Z | 2021-06-11T04:41:49.000Z | usersystem/views.py | sergioruizdavila/asanni-backend | b2da3f3a97dbd1ef46d65f13ee9b2098124d4fc4 | [
"MIT"
] | null | null | null | usersystem/views.py | sergioruizdavila/asanni-backend | b2da3f3a97dbd1ef46d65f13ee9b2098124d4fc4 | [
"MIT"
] | 4 | 2020-01-24T13:35:42.000Z | 2021-06-15T07:38:06.000Z | from allauth.account.utils import setup_user_email, send_email_confirmation
from rest_framework.response import Response
from usersystem.serializers import UserSerializer, UserRegisterSerializer
from rest_framework.views import APIView
from rest_framework.status import HTTP_200_OK, HTTP_400_BAD_REQUEST, HTTP_201_CREATE... | 39.47619 | 119 | 0.675049 | 1,284 | 10,777 | 5.516355 | 0.195483 | 0.055344 | 0.021177 | 0.036002 | 0.354087 | 0.26373 | 0.211351 | 0.152337 | 0.141607 | 0.141607 | 0 | 0.016842 | 0.234202 | 10,777 | 272 | 120 | 39.621324 | 0.841391 | 0.216943 | 0 | 0.262821 | 0 | 0 | 0.12315 | 0.003155 | 0 | 0 | 0 | 0.003676 | 0 | 1 | 0.070513 | false | 0.115385 | 0.070513 | 0 | 0.403846 | 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 | 0 | 0 | 0 | 1 |
adfb427ed9c8aea967913aed0f52cd6bbf4bc8fe | 1,661 | py | Python | tests/libtests/geocoords/data/ConvertDataApp.py | jedbrown/spatialdata | f18d34d92253986e8018f393201bf901e9667c2a | [
"MIT"
] | null | null | null | tests/libtests/geocoords/data/ConvertDataApp.py | jedbrown/spatialdata | f18d34d92253986e8018f393201bf901e9667c2a | [
"MIT"
] | null | null | null | tests/libtests/geocoords/data/ConvertDataApp.py | jedbrown/spatialdata | f18d34d92253986e8018f393201bf901e9667c2a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# ======================================================================
#
# Brad T. Aagaard, U.S. Geological Survey
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://geodynamics.org).
#
# Copyright (c) 2010-2017 University of California, Davis
#
#... | 27.229508 | 78 | 0.64419 | 178 | 1,661 | 5.921348 | 0.5 | 0.037002 | 0.036053 | 0.051233 | 0.111954 | 0.111954 | 0.111954 | 0.111954 | 0.111954 | 0 | 0 | 0.00581 | 0.170981 | 1,661 | 60 | 79 | 27.683333 | 0.759622 | 0.53522 | 0 | 0.105263 | 0 | 0 | 0.044693 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.210526 | 0 | 0.526316 | 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 | 0 | 1 | 0 | 0 | 1 |
adfb5713c6c3ab922ee55b1c8b7f49f69297f607 | 381 | py | Python | index.py | FunctionX/validator_queries | 842d0a75ee07f48b972d1bb18d292cadc730fa8b | [
"MIT"
] | null | null | null | index.py | FunctionX/validator_queries | 842d0a75ee07f48b972d1bb18d292cadc730fa8b | [
"MIT"
] | null | null | null | index.py | FunctionX/validator_queries | 842d0a75ee07f48b972d1bb18d292cadc730fa8b | [
"MIT"
] | null | null | null | import subprocess
import json
import csv
from csv import DictWriter
import datetime
import pandas as pd
import Cmd
import Data
from Report import Report
import File
def main():
Data.val_earnings_w_sum_columns()
dataframe=Data.get_val_token_info()
dataframe.to_csv(File._generate_file_name("fxcored_s... | 14.111111 | 77 | 0.76378 | 55 | 381 | 4.927273 | 0.6 | 0.088561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165354 | 381 | 26 | 78 | 14.653846 | 0.852201 | 0 | 0 | 0 | 0 | 0 | 0.057743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.625 | 0 | 0.6875 | 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 | 0 | 0 | 0 | 1 |
adfd589bdaa5f2bed3080ab8be5e570ad08ea48a | 1,457 | py | Python | sistemas_lineares.py | lucaspompeun/metodos-matematicos-aplicados-nas-engenharias-via-sistemas-computacionais | 008d397f76a935af1aba530cc0134b9dd326d3ac | [
"MIT"
] | 16 | 2019-09-27T03:08:44.000Z | 2020-10-16T18:43:45.000Z | primeira-edicao/sistemas_lineares.py | gm2sc-ifpa/metodos-matematicos-aplicados-nas-engenharias-via-sistemas-computacionais-master | f435c366e08dc14b0557f2172ad3b841ddb7ef2e | [
"MIT"
] | null | null | null | primeira-edicao/sistemas_lineares.py | gm2sc-ifpa/metodos-matematicos-aplicados-nas-engenharias-via-sistemas-computacionais-master | f435c366e08dc14b0557f2172ad3b841ddb7ef2e | [
"MIT"
] | 5 | 2019-09-13T20:00:38.000Z | 2020-09-19T03:04:00.000Z | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 27 18:19:25 2019
INSTITUTO FEDERAL DE EDUCAÇÃO, CIÊNCIA E TECNOLOGIA DO PÁRA - IFPA ANANINDEUA
@author:
Prof. Dr. Denis C. L. Costa
Discentes:
Heictor Alves de Oliveira Costa
Lucas Pompeu Neves
Grupo... | 26.981481 | 78 | 0.572409 | 175 | 1,457 | 4.742857 | 0.537143 | 0.115663 | 0.014458 | 0.09759 | 0.090361 | 0.083133 | 0 | 0 | 0 | 0 | 0 | 0.028105 | 0.242965 | 1,457 | 54 | 79 | 26.981481 | 0.724388 | 0.589568 | 0 | 0.277778 | 0 | 0 | 0.451128 | 0.146617 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0.777778 | 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 | 0 | 0 | 1 | 0 | 1 |
adfdf98fe1afda40d1e086b86ceaf5056842822c | 1,956 | py | Python | observations/r/unemp_dur.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 199 | 2017-07-24T01:34:27.000Z | 2022-01-29T00:50:55.000Z | observations/r/unemp_dur.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 46 | 2017-09-05T19:27:20.000Z | 2019-01-07T09:47:26.000Z | observations/r/unemp_dur.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 45 | 2017-07-26T00:10:44.000Z | 2022-03-16T20:44:59.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import csv
import numpy as np
import os
import sys
from observations.util import maybe_download_and_extract
def unemp_dur(path):
"""Unemployment Duration
Journal of Business Econ... | 22.744186 | 71 | 0.674847 | 273 | 1,956 | 4.721612 | 0.589744 | 0.011637 | 0.037238 | 0.030256 | 0.057409 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026549 | 0.248978 | 1,956 | 85 | 72 | 23.011765 | 0.850238 | 0.554192 | 0 | 0 | 0 | 0 | 0.101266 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.409091 | 0 | 0.5 | 0.045455 | 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 | 0 | 0 | 0 | 1 |
bc0762cc61dc9010fbb5ce8a4cca396976aadaf0 | 800 | py | Python | tests/strangenames.py | DasSkelett/AVC-VersionFileValidator | f31bab0cf5e273cbb675ffaf921741c32b3a2e15 | [
"MIT"
] | 2 | 2019-12-18T16:34:06.000Z | 2020-03-13T03:31:26.000Z | tests/strangenames.py | DasSkelett/AVC-VersionFileValidator | f31bab0cf5e273cbb675ffaf921741c32b3a2e15 | [
"MIT"
] | 4 | 2019-12-22T18:40:31.000Z | 2020-05-07T00:52:48.000Z | tests/strangenames.py | DasSkelett/AVC-VersionFileValidator | f31bab0cf5e273cbb675ffaf921741c32b3a2e15 | [
"MIT"
] | null | null | null | import os
from pathlib import Path
from unittest import TestCase
import validator.validator as validator
from .test_utils import schema, build_map
class TestStrangeNames(TestCase):
old_cwd = os.getcwd()
@classmethod
def setUpClass(cls):
os.chdir('./tests/workspaces/strange-names')
@classmet... | 29.62963 | 93 | 0.70125 | 92 | 800 | 6.021739 | 0.543478 | 0.097473 | 0.050542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001543 | 0.19 | 800 | 26 | 94 | 30.769231 | 0.853395 | 0.075 | 0 | 0.105263 | 0 | 0 | 0.101626 | 0.085366 | 0 | 0 | 0 | 0 | 0.210526 | 1 | 0.157895 | false | 0 | 0.263158 | 0 | 0.526316 | 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 | 0 | 1 | 0 | 0 | 1 |
bc0cf17e742ee5f0e9c7dd32d45b474ef9bbc8ae | 15,924 | py | Python | util/approximate/embedding_interpolator/old/v1_numpy.py | tchlux/util | eff37464c7e913377398025adf76b057f9630b35 | [
"MIT"
] | 4 | 2021-04-22T20:19:40.000Z | 2022-01-30T18:57:23.000Z | util/approximate/embedding_interpolator/old/v1_numpy.py | tchlux/util | eff37464c7e913377398025adf76b057f9630b35 | [
"MIT"
] | 1 | 2022-01-24T14:10:27.000Z | 2022-01-30T16:42:53.000Z | util/approximate/embedding_interpolator/old/v1_numpy.py | tchlux/util | eff37464c7e913377398025adf76b057f9630b35 | [
"MIT"
] | 2 | 2019-05-19T07:44:28.000Z | 2021-04-22T20:20:40.000Z | from numpy import zeros, ones, dot, sum, abs, max, argmax, clip, \
random, prod, asarray, set_printoptions, unravel_index
# Generate a random uniform number (array) in range [0,1].
def zero(*shape): return zeros(shape)
def randnorm(*shape): return random.normal(size=shape)
def randuni(*shape): return random.ran... | 41.46875 | 129 | 0.543582 | 1,997 | 15,924 | 4.216825 | 0.140711 | 0.058188 | 0.021613 | 0.00855 | 0.266002 | 0.190714 | 0.143926 | 0.105688 | 0.068638 | 0.068638 | 0 | 0.017682 | 0.314557 | 15,924 | 383 | 130 | 41.577024 | 0.753825 | 0.191723 | 0 | 0.193662 | 1 | 0 | 0.068866 | 0.007191 | 0 | 0 | 0 | 0 | 0.007042 | 1 | 0.052817 | false | 0.003521 | 0.010563 | 0.014085 | 0.09507 | 0.373239 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bc101f9477ced02fc73e4aa485f705e9bede840d | 1,429 | py | Python | sample-apps/data-loader/app.py | jkylling/fdb-kubernetes-operator | b6c2d18d7841e789bd33bc1e05ed449e7468fabd | [
"Apache-2.0"
] | null | null | null | sample-apps/data-loader/app.py | jkylling/fdb-kubernetes-operator | b6c2d18d7841e789bd33bc1e05ed449e7468fabd | [
"Apache-2.0"
] | null | null | null | sample-apps/data-loader/app.py | jkylling/fdb-kubernetes-operator | b6c2d18d7841e789bd33bc1e05ed449e7468fabd | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/python
'''
This file provides a sample app for loading data into FDB.
To use it to load data into one of the sample clusters in this repo,
you can build the image by running `docker build -t fdb-data-loader sample-apps/data-loader`,
and then run the data loader by running `kubectl apply -f sample-apps/dat... | 30.404255 | 110 | 0.73478 | 234 | 1,429 | 4.354701 | 0.423077 | 0.061825 | 0.041217 | 0.052993 | 0.075564 | 0.075564 | 0.049068 | 0 | 0 | 0 | 0 | 0.020425 | 0.143457 | 1,429 | 46 | 111 | 31.065217 | 0.812092 | 0.23233 | 0 | 0.068966 | 0 | 0 | 0.172635 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0.068966 | 0.137931 | 0 | 0.206897 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
bc10b3a754b1e07f5391ee346cb0afda2918b4d2 | 1,580 | py | Python | data_files/PROGRAMS/MEDIUM/0018_4Sum.py | sudhirrd007/LeetCode-scraper | de87ff17fff2c73e67392321df1107cce7cbf883 | [
"MIT"
] | null | null | null | data_files/PROGRAMS/MEDIUM/0018_4Sum.py | sudhirrd007/LeetCode-scraper | de87ff17fff2c73e67392321df1107cce7cbf883 | [
"MIT"
] | null | null | null | data_files/PROGRAMS/MEDIUM/0018_4Sum.py | sudhirrd007/LeetCode-scraper | de87ff17fff2c73e67392321df1107cce7cbf883 | [
"MIT"
] | null | null | null | # ID : 18
# Title : 4Sum
# Difficulty : MEDIUM
# Acceptance_rate : 35.2%
# Runtime : 72 ms
# Memory : 12.7 MB
# Tags : Array , Hash Table , Two Pointers
# Language : python3
# Problem_link : https://leetcode.com/problems/4sum
# Premium : 0
# Notes : -
###
def fourSum(self, nums: List[int], target: int) -> List[Lis... | 31.6 | 86 | 0.401899 | 192 | 1,580 | 3.296875 | 0.359375 | 0.07109 | 0.07109 | 0.063191 | 0.044234 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04108 | 0.460759 | 1,580 | 49 | 87 | 32.244898 | 0.701878 | 0.144937 | 0 | 0.323529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
bc16f12ef99fb925404a57659bcb97a3596fb611 | 886 | py | Python | django/store/views.py | brickfaced/django-ecommerce | e06c69f4cc1f57ac2acffa0baf1c48fa99fede13 | [
"MIT"
] | 24 | 2021-03-10T17:04:46.000Z | 2022-02-28T20:09:52.000Z | nextdrf/django/store/views.py | RJ-0605/YT_NextJS_DRF_Ecommerce_2021_Part1 | 4416c2168143aa71ba863d61efb71c5712dbd215 | [
"MIT"
] | 1 | 2021-04-07T19:57:10.000Z | 2021-04-07T20:37:03.000Z | nextdrf/django/store/views.py | RJ-0605/YT_NextJS_DRF_Ecommerce_2021_Part1 | 4416c2168143aa71ba863d61efb71c5712dbd215 | [
"MIT"
] | 18 | 2021-03-21T09:03:40.000Z | 2022-01-31T10:08:24.000Z | from django.shortcuts import render
from rest_framework import generics
from . import models
from .models import Category, Product
from .serializers import CategorySerializer, ProductSerializer
class ProductListView(generics.ListAPIView):
queryset = Product.objects.all()
serializer_class = ProductSerializer
... | 27.6875 | 106 | 0.772009 | 91 | 886 | 7.395604 | 0.428571 | 0.089153 | 0.142645 | 0.074294 | 0.18425 | 0.18425 | 0.18425 | 0.18425 | 0 | 0 | 0 | 0.00133 | 0.151242 | 886 | 31 | 107 | 28.580645 | 0.893617 | 0 | 0 | 0.238095 | 0 | 0 | 0.009029 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.238095 | 0.047619 | 0.904762 | 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 | 0 | 1 | 0 | 0 | 1 |
bc1a89242c0c01e6a959ddfab279551c0ad333eb | 831 | py | Python | 6. Algorithms - Graph Traversal/3 - GraphTraversal-DFS.py | PacktPublishing/Data-Structures-and-Algorithms-The-Complete-Masterclass | a4f34ecaa23682df62763e3b6b54709383f45c0b | [
"MIT"
] | 25 | 2021-01-20T19:09:05.000Z | 2022-02-02T01:29:46.000Z | 6. Algorithms - Graph Traversal/3 - GraphTraversal-DFS.py | EmmaMuhleman1/Data-Structures-and-Algorithms-The-Complete-Masterclass | a4f34ecaa23682df62763e3b6b54709383f45c0b | [
"MIT"
] | null | null | null | 6. Algorithms - Graph Traversal/3 - GraphTraversal-DFS.py | EmmaMuhleman1/Data-Structures-and-Algorithms-The-Complete-Masterclass | a4f34ecaa23682df62763e3b6b54709383f45c0b | [
"MIT"
] | 23 | 2021-01-20T19:09:12.000Z | 2022-03-23T02:50:05.000Z | class Node():
def __init__(self, value):
self.value = value
self.adjacentlist = []
self.visited = False
class Graph():
def DFS(self, node, traversal):
node.visited = True
traversal.append(node.value)
for element in node.adjacentlist:
if element... | 21.868421 | 44 | 0.649819 | 102 | 831 | 5.254902 | 0.362745 | 0.235075 | 0.128731 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035061 | 0.21059 | 831 | 38 | 45 | 21.868421 | 0.782012 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.166667 | 0.033333 | 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 | 0 | 0 | 0 | 1 |
bc1e78e2d936299d31ed164ae95b1d514a32eb51 | 221 | py | Python | homeassistant/components/ridwell/const.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | homeassistant/components/ridwell/const.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 31,101 | 2020-03-02T13:00:16.000Z | 2022-03-31T23:57:36.000Z | homeassistant/components/ridwell/const.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """Constants for the Ridwell integration."""
import logging
DOMAIN = "ridwell"
LOGGER = logging.getLogger(__package__)
DATA_ACCOUNT = "account"
DATA_COORDINATOR = "coordinator"
SENSOR_TYPE_NEXT_PICKUP = "next_pickup"
| 18.416667 | 44 | 0.778281 | 25 | 221 | 6.48 | 0.72 | 0.123457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 221 | 11 | 45 | 20.090909 | 0.830769 | 0.171946 | 0 | 0 | 0 | 0 | 0.20339 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bc1fee8e7b2dd05b18c6fd6cd75205806000b3bf | 4,716 | py | Python | neuron_simulator_service/SAC_network/stimulus.py | jpm343/RetinaX | 63f84209b4f8bdcdc88f35c54a03e7b7c56f4ab3 | [
"MIT"
] | 2 | 2020-12-06T23:04:39.000Z | 2020-12-29T18:28:20.000Z | neuron_simulator_service/SAC_network/stimulus.py | jpm343/RetinaX | 63f84209b4f8bdcdc88f35c54a03e7b7c56f4ab3 | [
"MIT"
] | null | null | null | neuron_simulator_service/SAC_network/stimulus.py | jpm343/RetinaX | 63f84209b4f8bdcdc88f35c54a03e7b7c56f4ab3 | [
"MIT"
] | 1 | 2020-10-23T19:40:59.000Z | 2020-10-23T19:40:59.000Z | from __future__ import division
import numpy as np
# Set bar stimuli speed
def update_bar_speed(BPsyn, delay, width, speed, d_init,
synapse_type="alphaCSyn", angle=0):
print "Updating bar speed to: %f mm/s" % speed
angrad = angle * np.pi / 180.0
angcos = np.cos(angrad)
angsin = np... | 38.975207 | 79 | 0.599237 | 614 | 4,716 | 4.410423 | 0.224756 | 0.073117 | 0.039882 | 0.05096 | 0.460487 | 0.442024 | 0.418021 | 0.36226 | 0.36226 | 0.3113 | 0 | 0.016517 | 0.293893 | 4,716 | 120 | 80 | 39.3 | 0.796697 | 0.083545 | 0 | 0.39 | 0 | 0 | 0.086523 | 0.005103 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02 | null | null | 0.02 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
bc24a0ca761d939b80b88836c40772f1d9ffb66b | 3,055 | py | Python | panel/layout/spacer.py | sthagen/holoviz-panel | 9abae5ac78e55857ed209de06feae3439f2f533b | [
"BSD-3-Clause"
] | 601 | 2018-08-25T20:01:22.000Z | 2019-11-19T19:37:08.000Z | panel/layout/spacer.py | sthagen/holoviz-panel | 9abae5ac78e55857ed209de06feae3439f2f533b | [
"BSD-3-Clause"
] | 626 | 2018-08-27T16:30:33.000Z | 2019-11-20T17:02:00.000Z | panel/layout/spacer.py | sthagen/holoviz-panel | 9abae5ac78e55857ed209de06feae3439f2f533b | [
"BSD-3-Clause"
] | 73 | 2018-09-28T07:46:05.000Z | 2019-11-18T22:45:36.000Z | """
Spacer components to add horizontal or vertical space to a layout.
"""
import param
from bokeh.models import Div as BkDiv, Spacer as BkSpacer
from ..reactive import Reactive
class Spacer(Reactive):
"""
The `Spacer` layout is a very versatile component which makes it easy to
put fixed or responsive ... | 27.035398 | 80 | 0.636661 | 376 | 3,055 | 5.087766 | 0.343085 | 0.029273 | 0.039728 | 0.054365 | 0.493466 | 0.478306 | 0.438578 | 0.438578 | 0.438578 | 0.438578 | 0 | 0.008573 | 0.236334 | 3,055 | 112 | 81 | 27.276786 | 0.811402 | 0.527987 | 0 | 0.444444 | 0 | 0 | 0.066884 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.111111 | 0 | 0.592593 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
bc30514100a65cd97885d46696267a630becc87d | 266 | py | Python | Algorithms/Maximum_Number_of_Coins_You_Can_Get/main.py | ugurcan-sonmez-95/LeetCode | e463a424c2d781f67be31ae42bc3c5c896db6017 | [
"MIT"
] | 1 | 2020-10-01T09:12:09.000Z | 2020-10-01T09:12:09.000Z | Algorithms/Maximum_Number_of_Coins_You_Can_Get/main.py | ugurcan-sonmez-95/LeetCode | e463a424c2d781f67be31ae42bc3c5c896db6017 | [
"MIT"
] | null | null | null | Algorithms/Maximum_Number_of_Coins_You_Can_Get/main.py | ugurcan-sonmez-95/LeetCode | e463a424c2d781f67be31ae42bc3c5c896db6017 | [
"MIT"
] | null | null | null | ### Maximum Number of Coins You Can Get - Solution
class Solution:
def maxCoins(self, piles: List[int]) -> int:
piles.sort()
max_coin, n = 0, len(piles)
for i in range(n//3, n, 2):
max_coin += piles[i]
return max_coin | 29.555556 | 50 | 0.56391 | 40 | 266 | 3.675 | 0.7 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.31203 | 266 | 9 | 51 | 29.555556 | 0.786885 | 0.172932 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bc3513cb203b5eb746d7ca1948d927c26402a7f1 | 390 | py | Python | palsbet/migrations/0003_auto_20180323_0018.py | denis254/palsbetc | d70d0fadaa661ff36c046a4f0a87a88d890c0dc4 | [
"BSD-3-Clause"
] | null | null | null | palsbet/migrations/0003_auto_20180323_0018.py | denis254/palsbetc | d70d0fadaa661ff36c046a4f0a87a88d890c0dc4 | [
"BSD-3-Clause"
] | 11 | 2020-03-24T16:11:23.000Z | 2021-12-13T19:47:29.000Z | palsbet/migrations/0003_auto_20180323_0018.py | denis254/overtimebet | 063af2fc263580d96e396e953ef8658a75ac38a5 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 2.0.2 on 2018-03-22 21:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('palsbet', '0002_viptipsgames'),
]
operations = [
migrations.AlterField(
model_name='viptipsgames',
name='cathegory',... | 20.526316 | 51 | 0.602564 | 40 | 390 | 5.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078853 | 0.284615 | 390 | 18 | 52 | 21.666667 | 0.752688 | 0.115385 | 0 | 0 | 1 | 0 | 0.131195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bc3d021b03a2c4dec39faa861c772e80b36950d7 | 1,311 | py | Python | test.py | nerdingitout/STT-- | 4544f89abd6c2a8c11c1cf3e309ceb6f5d9b6b15 | [
"Apache-2.0"
] | null | null | null | test.py | nerdingitout/STT-- | 4544f89abd6c2a8c11c1cf3e309ceb6f5d9b6b15 | [
"Apache-2.0"
] | null | null | null | test.py | nerdingitout/STT-- | 4544f89abd6c2a8c11c1cf3e309ceb6f5d9b6b15 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
import json
import csv
# importing the module
import json
# Opening JSON file
with open('response.json') as json_file:
data = json.load(json_file)
# for reading nested data [0] represents
# the index value of the list
print(data['results'][0]['alternatives']['transcri... | 29.133333 | 91 | 0.650648 | 179 | 1,311 | 4.687151 | 0.391061 | 0.047676 | 0.035757 | 0.038141 | 0.047676 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005871 | 0.220442 | 1,311 | 44 | 92 | 29.795455 | 0.815068 | 0.601068 | 0 | 0.142857 | 0 | 0 | 0.290581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.428571 | 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 | 0 | 0 | 1 | 0 | 1 |
70b0ec3b0f20b624360319ad2024474c4a16cdca | 928 | py | Python | Learning/python_data_analysis11.py | VictoriaGuXY/MCO-Menu-Checker-Online | 706e2e1bf7395cc344f382ea2ac53d964d459f86 | [
"MIT"
] | null | null | null | Learning/python_data_analysis11.py | VictoriaGuXY/MCO-Menu-Checker-Online | 706e2e1bf7395cc344f382ea2ac53d964d459f86 | [
"MIT"
] | null | null | null | Learning/python_data_analysis11.py | VictoriaGuXY/MCO-Menu-Checker-Online | 706e2e1bf7395cc344f382ea2ac53d964d459f86 | [
"MIT"
] | null | null | null | import pandas as pd
from scipy.stats import ttest_rel
"""
output
"""
# Note: some output is shortened to save spaces.
# This file discusses statistical analysis (Part II).
# ------------------------------------------------------------------------------
# Data stored in form of xlsx with contents:
"""
group data... | 21.090909 | 80 | 0.516164 | 130 | 928 | 3.569231 | 0.569231 | 0.038793 | 0.090517 | 0.038793 | 0.081897 | 0.081897 | 0.081897 | 0 | 0 | 0 | 0 | 0.112971 | 0.227371 | 928 | 43 | 81 | 21.581395 | 0.53417 | 0.459052 | 0 | 0 | 0 | 0 | 0.140078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 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 | 0 | 0 | 0 | 1 |
70bcf6e650bbb3a26c3ae8d0c7700d683160246d | 3,881 | py | Python | fabrun/views.py | agepoly/azimut-gestion | 76da15a55086fdfacf605c139a1a64884ab0de40 | [
"MIT"
] | null | null | null | fabrun/views.py | agepoly/azimut-gestion | 76da15a55086fdfacf605c139a1a64884ab0de40 | [
"MIT"
] | null | null | null | fabrun/views.py | agepoly/azimut-gestion | 76da15a55086fdfacf605c139a1a64884ab0de40 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.shortcuts import get_object_or_404, render_to_response, redirect
from django.template import RequestContext
from django.core.context_processors import csrf
from django.views.decorators.csrf import csrf_exempt
from django.http import Http404, HttpResponse, HttpResponseForbidden, Http... | 31.552846 | 155 | 0.707034 | 467 | 3,881 | 5.738758 | 0.319058 | 0.059701 | 0.035448 | 0.035821 | 0.347015 | 0.312687 | 0.286567 | 0.286567 | 0.286567 | 0.286567 | 0 | 0.007138 | 0.169802 | 3,881 | 122 | 156 | 31.811475 | 0.824643 | 0.127802 | 0 | 0.15625 | 0 | 0 | 0.095068 | 0.006833 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.015625 | 0.328125 | 0 | 0.453125 | 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 | 0 | 0 | 0 | 1 |
70c846852061594e0e9914e39b2035cd28c6dd88 | 2,167 | py | Python | jetson/ballrunner.py | Reslix/Lohbot | 4920c0d0fcda64ec7b6438dd848c789e4fd15cc4 | [
"MIT"
] | 1 | 2018-02-21T03:49:54.000Z | 2018-02-21T03:49:54.000Z | jetson/ballrunner.py | Reslix/Lohbot | 4920c0d0fcda64ec7b6438dd848c789e4fd15cc4 | [
"MIT"
] | null | null | null | jetson/ballrunner.py | Reslix/Lohbot | 4920c0d0fcda64ec7b6438dd848c789e4fd15cc4 | [
"MIT"
] | null | null | null | from newcamera import TrackingCameraRunner
from serial_io import SerialIO
from show import imshow
import cv2
import math
print("Initializing serial connection with Arduino")
ard = SerialIO()
ard.start()
print("Initializing camera")
c = TrackingCameraRunner(0)
print("Tracking Ball...")
tcenterx = 640
tradius = 40
spee... | 30.957143 | 97 | 0.513152 | 229 | 2,167 | 4.838428 | 0.406114 | 0.01083 | 0.039711 | 0.057762 | 0.090253 | 0.090253 | 0 | 0 | 0 | 0 | 0 | 0.04246 | 0.369635 | 2,167 | 69 | 98 | 31.405797 | 0.768668 | 0.041071 | 0 | 0.072727 | 0 | 0 | 0.071547 | 0 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0 | false | 0.018182 | 0.090909 | 0 | 0.090909 | 0.127273 | 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 | 0 | 0 | 0 | 1 |
70c959da6388e937e02687ad9571d92c479badd1 | 8,247 | py | Python | simple_rl/tasks/taxi/TaxiOOMDPClass.py | KorlaMarch/simple_rl | 30086b5cf4fd3e9dee76ddfb5ae4f565593ce191 | [
"Apache-2.0"
] | 10 | 2021-11-22T12:29:30.000Z | 2022-03-28T10:23:16.000Z | simple_rl/tasks/taxi/TaxiOOMDPClass.py | samlobel/simple_rl_mbrl | ed868916d06dbf68f4af23bea83b0e852e88df6e | [
"Apache-2.0"
] | null | null | null | simple_rl/tasks/taxi/TaxiOOMDPClass.py | samlobel/simple_rl_mbrl | ed868916d06dbf68f4af23bea83b0e852e88df6e | [
"Apache-2.0"
] | 2 | 2022-03-19T07:42:56.000Z | 2022-03-28T10:36:33.000Z | '''
TaxiMDPClass.py: Contains the TaxiMDP class.
From:
Dietterich, Thomas G. "Hierarchical reinforcement learning with the
MAXQ value function decomposition." J. Artif. Intell. Res.(JAIR) 13
(2000): 227-303.
Author: David Abel (cs.brown.edu/~dabel/)
'''
# Python imports.
from __future__ import print_func... | 31.477099 | 137 | 0.587486 | 993 | 8,247 | 4.640483 | 0.209466 | 0.044922 | 0.015625 | 0.013889 | 0.319878 | 0.221137 | 0.182075 | 0.121094 | 0.10026 | 0.06901 | 0 | 0.008456 | 0.29732 | 8,247 | 261 | 138 | 31.597701 | 0.786713 | 0.187583 | 0 | 0.141667 | 0 | 0 | 0.084165 | 0 | 0 | 0 | 0 | 0.003831 | 0 | 1 | 0.1 | false | 0.208333 | 0.091667 | 0.008333 | 0.308333 | 0.008333 | 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 | 0 | 0 | 0 | 1 |
70c96909cdb1ba2109525248284a595c630feada | 2,176 | py | Python | tests/bugs/core_2923_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2022-02-05T11:37:13.000Z | 2022-02-05T11:37:13.000Z | tests/bugs/core_2923_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2021-09-03T11:47:00.000Z | 2021-09-03T12:42:10.000Z | tests/bugs/core_2923_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2021-06-30T14:14:16.000Z | 2021-06-30T14:14:16.000Z | #coding:utf-8
#
# id: bugs.core_2923
# title: Problem with dependencies between a procedure and a view using that procedure
# decription:
# tracker_id: CORE-2923
# min_versions: ['2.5.0']
# versions: 3.0
# qmid: None
import pytest
from firebird.qa import db_factory, isql_act, Action
... | 19.428571 | 93 | 0.529412 | 280 | 2,176 | 3.957143 | 0.328571 | 0.032491 | 0.016245 | 0.021661 | 0.113718 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093985 | 0.388787 | 2,176 | 111 | 94 | 19.603604 | 0.739098 | 0.120404 | 0 | 0.383562 | 0 | 0 | 0.747634 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 1 | 0.013699 | false | 0 | 0.027397 | 0 | 0.041096 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
70c98f390066819db18b2eabe5323591400b47e2 | 5,582 | py | Python | day_09.py | bob-white/advent_2018 | 4139359b322eb42ac6cfef9e574e43bc91caa62d | [
"MIT"
] | 1 | 2018-12-02T05:41:56.000Z | 2018-12-02T05:41:56.000Z | day_09.py | bob-white/advent_2018 | 4139359b322eb42ac6cfef9e574e43bc91caa62d | [
"MIT"
] | null | null | null | day_09.py | bob-white/advent_2018 | 4139359b322eb42ac6cfef9e574e43bc91caa62d | [
"MIT"
] | null | null | null | """
--- Day 9: Marble Mania ---
You talk to the Elves while you wait for your navigation system to initialize. To pass the time, they introduce you to their favorite marble game.
The Elves play this game by taking turns arranging the marbles in a circle according to very particular rules. The marbles are numbered sta... | 52.168224 | 473 | 0.67431 | 1,111 | 5,582 | 3.383438 | 0.240324 | 0.034052 | 0.018622 | 0.022346 | 0.286512 | 0.267624 | 0.252195 | 0.24581 | 0.239159 | 0.233041 | 0 | 0.162695 | 0.263346 | 5,582 | 106 | 474 | 52.660377 | 0.751459 | 0.843246 | 0 | 0.090909 | 0 | 0 | 0.021028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
70cd06f1a4e2360da81c2eda5df37352f1b549eb | 762 | py | Python | qctrl_api/control_api/models.py | bibek-Neupane/back-end-challenge | d5a7b33adaa59e5ad566ac7435132c990f80a740 | [
"Apache-2.0"
] | null | null | null | qctrl_api/control_api/models.py | bibek-Neupane/back-end-challenge | d5a7b33adaa59e5ad566ac7435132c990f80a740 | [
"Apache-2.0"
] | null | null | null | qctrl_api/control_api/models.py | bibek-Neupane/back-end-challenge | d5a7b33adaa59e5ad566ac7435132c990f80a740 | [
"Apache-2.0"
] | null | null | null | from django.db import models
from django.core.validators import MinValueValidator, MaxValueValidator
class Control(models.Model):
objects=models.Manager()
TYPE_CHOICES=(
('Primitive','Primitive'),
('Corpse','CORPSE'),
('Gaussian','Gaussian'),
('CinBB','CinBB'),
)
#pk i.... | 34.636364 | 102 | 0.692913 | 87 | 762 | 5.942529 | 0.609195 | 0.038685 | 0.069633 | 0.092843 | 0.340426 | 0.235977 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0.181102 | 762 | 21 | 103 | 36.285714 | 0.809295 | 0.087927 | 0 | 0 | 0 | 0 | 0.093795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0.0625 | 0.6875 | 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 | 0 | 1 | 0 | 0 | 1 |
70d1f8b647267479a9bcde7a989424cc5e099952 | 3,651 | py | Python | engine/engine.py | farouqzaib/Personify | ae7c837b5539ccc1f0d4a8f327783814228fe4d7 | [
"MIT"
] | 1 | 2018-05-09T21:56:08.000Z | 2018-05-09T21:56:08.000Z | engine/engine.py | farouqzaib/Personify | ae7c837b5539ccc1f0d4a8f327783814228fe4d7 | [
"MIT"
] | null | null | null | engine/engine.py | farouqzaib/Personify | ae7c837b5539ccc1f0d4a8f327783814228fe4d7 | [
"MIT"
] | 1 | 2018-05-09T21:56:46.000Z | 2018-05-09T21:56:46.000Z | from algorithms.factorization_machine import FactorizationMachine
from algorithms.latent_dirichlet_allocation import LatentDirichletAllocation
from app.config import db
from app.config.config import engine
import datetime
import numpy as np
import pandas as pd
import pickle
class Engine:
def __init__(self):
... | 36.148515 | 143 | 0.599836 | 448 | 3,651 | 4.680804 | 0.314732 | 0.050072 | 0.03815 | 0.046733 | 0.221268 | 0.136862 | 0.052456 | 0 | 0 | 0 | 0 | 0.005399 | 0.289784 | 3,651 | 101 | 144 | 36.148515 | 0.803317 | 0.130923 | 0 | 0.059701 | 0 | 0 | 0.064124 | 0 | 0 | 0 | 0 | 0.009901 | 0 | 0 | null | null | 0.029851 | 0.119403 | null | null | 0.014925 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
70d940d807d775cf236b4b2decb10d2c5a7f64f8 | 15,391 | py | Python | Snake.py | RodneyTheProgrammer/snkgame | 4fdeb1a1c2c871f307ce0984949693506292ec1c | [
"BSD-2-Clause"
] | null | null | null | Snake.py | RodneyTheProgrammer/snkgame | 4fdeb1a1c2c871f307ce0984949693506292ec1c | [
"BSD-2-Clause"
] | null | null | null | Snake.py | RodneyTheProgrammer/snkgame | 4fdeb1a1c2c871f307ce0984949693506292ec1c | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
import curses
import time
import random
from operator import getitem,attrgetter
stdscr = curses.initscr()
L,W= stdscr.getmaxyx()
curses.start_color()
curses.noecho()
curses.cbreak()
curses.curs_set(0)
stdscr.keypad(1)
L,W = stdscr.getmaxyx()
normal,infiltrate,get2goal,runaway=0,1,2,3
def start_pag... | 27.681655 | 84 | 0.523553 | 2,139 | 15,391 | 3.7223 | 0.106124 | 0.064808 | 0.060286 | 0.063301 | 0.383321 | 0.310852 | 0.261869 | 0.244913 | 0.216654 | 0.214896 | 0 | 0.038495 | 0.333312 | 15,391 | 555 | 85 | 27.731532 | 0.737452 | 0.004548 | 0 | 0.336614 | 0 | 0 | 0.022459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005906 | 0.007874 | null | null | 0.005906 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
70d993efbc1f1e5a1f92a001568acf76b80283cd | 266 | py | Python | Jawaban/4.py | Rakhid16/pibiti-himatifa-2020 | 734ae59d0ffb3cf41d14fe4fbcaba7b317f5c870 | [
"Apache-2.0"
] | null | null | null | Jawaban/4.py | Rakhid16/pibiti-himatifa-2020 | 734ae59d0ffb3cf41d14fe4fbcaba7b317f5c870 | [
"Apache-2.0"
] | null | null | null | Jawaban/4.py | Rakhid16/pibiti-himatifa-2020 | 734ae59d0ffb3cf41d14fe4fbcaba7b317f5c870 | [
"Apache-2.0"
] | null | null | null | kamus = {"elephant" : "gajah", "zebra" : "zebra", "dog" : "anjing", "camel" : "unta"}
kata = input("Masukan kata berbahasa inggris : ")
if kata in kamus:
print("Terjemahan dari " + kata + " adalah " + kamus[kata])
else:
print("Kata tersebt belum ada di kamus") | 33.25 | 85 | 0.631579 | 34 | 266 | 4.941176 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184211 | 266 | 8 | 86 | 33.25 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0.483146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 | 0 | 0 | 1 |
70dec0077e310c765f9ecb7dbeebc0c662a8b197 | 9,621 | py | Python | gui.py | TheAlienBee/Search_and_Apply | a62dcad45df09a38ab41c2f450a3202f3def6b3b | [
"MIT"
] | null | null | null | gui.py | TheAlienBee/Search_and_Apply | a62dcad45df09a38ab41c2f450a3202f3def6b3b | [
"MIT"
] | null | null | null | gui.py | TheAlienBee/Search_and_Apply | a62dcad45df09a38ab41c2f450a3202f3def6b3b | [
"MIT"
] | null | null | null | import tkinter as tk #tkinter is our gui lib.
import webbrowser #webbrowser allows us to open user's default web browser. good for clicking on links.
import jsonlines
import io
import genCoverLetter as gcl
from Search_and_Apply.Search_and_Apply.spiders.IndeedSpider import searchFor
from Search_and_Apply.Search_... | 41.291845 | 122 | 0.624571 | 1,311 | 9,621 | 4.509535 | 0.189931 | 0.05565 | 0.028586 | 0.035183 | 0.475981 | 0.433356 | 0.412382 | 0.344892 | 0.344892 | 0.31952 | 0 | 0.023852 | 0.241763 | 9,621 | 232 | 123 | 41.469828 | 0.786566 | 0.135537 | 0 | 0.276243 | 0 | 0 | 0.092807 | 0.006709 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038674 | null | null | 0.022099 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
70e3213acde89557a8953f051282e36ffe6c2163 | 5,868 | py | Python | vp_suite/models/precipitation_nowcasting/ef_conv_lstm.py | AIS-Bonn/vp-suite | 479bd48185b9a93a6bc6bff2dfe226e9c65800d8 | [
"MIT"
] | 3 | 2022-03-05T15:27:25.000Z | 2022-03-25T18:47:35.000Z | vp_suite/models/precipitation_nowcasting/ef_conv_lstm.py | Flunzmas/vp-suite | 391570121b5bd9e3fd23aca9a0945a63c4173a24 | [
"MIT"
] | 16 | 2022-01-06T08:38:26.000Z | 2022-02-23T19:19:28.000Z | vp_suite/models/precipitation_nowcasting/ef_conv_lstm.py | AIS-Bonn/vp-suite | 479bd48185b9a93a6bc6bff2dfe226e9c65800d8 | [
"MIT"
] | 3 | 2022-02-07T22:34:45.000Z | 2022-02-22T11:14:37.000Z | from collections import OrderedDict
from vp_suite.model_blocks import ConvLSTM
from vp_suite.models.precipitation_nowcasting.ef_blocks import Encoder_Forecaster
class EF_ConvLSTM(Encoder_Forecaster):
r"""
This is a reimplementation of the Encoder-Forecaster model based on ConvLSTMs, as introduced in
"Con... | 53.834862 | 143 | 0.644853 | 880 | 5,868 | 4.022727 | 0.190909 | 0.071186 | 0.031073 | 0.023729 | 0.410452 | 0.287006 | 0.149153 | 0.090395 | 0.076271 | 0.048588 | 0 | 0.035116 | 0.267212 | 5,868 | 108 | 144 | 54.333333 | 0.78814 | 0.361282 | 0 | 0.055556 | 0 | 0 | 0.056831 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.041667 | 0 | 0.513889 | 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 | 0 | 1 | 0 | 0 | 1 |
70e52df4dc9953cd6ed3848558c135eb3f637b16 | 1,984 | py | Python | nbpkg/pkginspect/nbpkgdescr.py | kiaderouiche/nbpkgquery | 17c996398fad922276c2dc250392959e7bfc31f0 | [
"MIT"
] | 1 | 2017-05-27T13:30:41.000Z | 2017-05-27T13:30:41.000Z | nbpkg/pkginspect/nbpkgdescr.py | kiaderouiche/nbpkgquery | 17c996398fad922276c2dc250392959e7bfc31f0 | [
"MIT"
] | null | null | null | nbpkg/pkginspect/nbpkgdescr.py | kiaderouiche/nbpkgquery | 17c996398fad922276c2dc250392959e7bfc31f0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
nbpkg defspec
'''
NBPKG_MAGIC_NUMBER = b'\x1f\x8b'
NBPKG_HEADER_MAGIC_NUMBER = '\037\213'
NBPKGINFO_MIN_NUMBER = 1000
NBPKGINFO_MAX_NUMBER = 1146
# data types definition
NBPKG_DATA_TYPE_NULL = 0
NBPKG_DATA_TYPE_CHAR = 1
NBPKG_DATA_TYPE_INT8 = 2
NBPKG_DATA_TYPE_INT16 = 3
NBPKG_DATA_TYPE_IN... | 25.435897 | 48 | 0.703629 | 238 | 1,984 | 5.327731 | 0.306723 | 0.141956 | 0.194795 | 0.059937 | 0.037855 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067232 | 0.227823 | 1,984 | 77 | 49 | 25.766234 | 0.760444 | 0.029234 | 0 | 0 | 0 | 0 | 0.094418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
70e6d36077cbded389cedfadb9bbd0925029daf4 | 7,286 | py | Python | tensorflow/python/keras/distribute/mnist_multi_worker.py | 6paklata/tensorflow | d6464431256192d2cf1c9b20271792309af7a354 | [
"Apache-2.0"
] | 2 | 2019-05-08T10:02:57.000Z | 2019-05-08T10:02:59.000Z | tensorflow/python/keras/distribute/mnist_multi_worker.py | gurkangokdemir/tensorflow | 2e6446f8a9be31c59080b643d04f9b463c4201cf | [
"Apache-2.0"
] | null | null | null | tensorflow/python/keras/distribute/mnist_multi_worker.py | gurkangokdemir/tensorflow | 2e6446f8a9be31c59080b643d04f9b463c4201cf | [
"Apache-2.0"
] | 2 | 2020-03-25T12:52:20.000Z | 2020-08-11T09:31:43.000Z | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 36.79798 | 94 | 0.734971 | 1,020 | 7,286 | 5.038235 | 0.286275 | 0.03814 | 0.054485 | 0.029578 | 0.237011 | 0.142246 | 0.087566 | 0.073166 | 0.059155 | 0.059155 | 0 | 0.013416 | 0.161131 | 7,286 | 197 | 95 | 36.984772 | 0.827389 | 0.275323 | 0 | 0.086207 | 0 | 0 | 0.101268 | 0.029593 | 0 | 0 | 0 | 0.010152 | 0 | 1 | 0.043103 | false | 0.008621 | 0.155172 | 0 | 0.241379 | 0.008621 | 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 | 0 | 0 | 0 | 1 |
70ef08ce99b2902cbf44d027970fd4e38a0d4f18 | 712 | py | Python | src/tests/test_loading.py | danmysak/ipa-parser | bb4f5fc1a8f95ef87793d2ffd79430a9a0ffbeaf | [
"MIT"
] | null | null | null | src/tests/test_loading.py | danmysak/ipa-parser | bb4f5fc1a8f95ef87793d2ffd79430a9a0ffbeaf | [
"MIT"
] | null | null | null | src/tests/test_loading.py | danmysak/ipa-parser | bb4f5fc1a8f95ef87793d2ffd79430a9a0ffbeaf | [
"MIT"
] | null | null | null | from timeit import timeit
from unittest import TestCase
from ..ipaparser import IPA, load
__all__ = [
'TestLoading',
]
FACTOR = 10.0
def is_much_larger(a: float, b: float) -> bool:
return a > b * FACTOR
def are_roughly_equal(a: float, b: float) -> bool:
return not is_much_larger(a, b) and not is_much... | 25.428571 | 69 | 0.688202 | 103 | 712 | 4.514563 | 0.398058 | 0.051613 | 0.103226 | 0.055914 | 0.094624 | 0.094624 | 0 | 0 | 0 | 0 | 0 | 0.010453 | 0.19382 | 712 | 27 | 70 | 26.37037 | 0.799652 | 0 | 0 | 0 | 0 | 0 | 0.029494 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.166667 | false | 0 | 0.166667 | 0.111111 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
70efcdc28513f6b7a89674d1c7aad0fab1e49771 | 511 | py | Python | Newbies/namedtuple.py | Fernal73/LearnPython3 | 5288017c0dbf95633b84f1e6324f00dec6982d36 | [
"MIT"
] | 1 | 2021-12-17T11:03:13.000Z | 2021-12-17T11:03:13.000Z | Newbies/namedtuple.py | Fernal73/LearnPython3 | 5288017c0dbf95633b84f1e6324f00dec6982d36 | [
"MIT"
] | 1 | 2020-02-05T00:14:43.000Z | 2020-02-06T09:22:49.000Z | Newbies/namedtuple.py | Fernal73/LearnPython3 | 5288017c0dbf95633b84f1e6324f00dec6982d36 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""Named tuple example."""
from collections import namedtuple
Car = namedtuple('Car', 'color mileage')
# Our new "Car" class works as expected:
MY_CAR = Car('red', 3812.4)
print(MY_CAR.color)
print(MY_CAR.mileage)
# We get a nice string repr for free:
print(MY_CAR)
try:
MY_CAR.color = 'bl... | 22.217391 | 53 | 0.690802 | 76 | 511 | 4.578947 | 0.631579 | 0.071839 | 0.086207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014388 | 0.183953 | 511 | 22 | 54 | 23.227273 | 0.820144 | 0.324853 | 0 | 0 | 0 | 0 | 0.104478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.5 | 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 | 0 | 0 | 1 | 0 | 1 |
70f12857a34e97687f3b8515a3ecdf1b8631fbee | 779 | py | Python | zeus/brewery/models.py | sdivakarrajesh/Zeus | 7a6ddd3d0375f3a2f131f6fa46539faafbd73766 | [
"MIT"
] | null | null | null | zeus/brewery/models.py | sdivakarrajesh/Zeus | 7a6ddd3d0375f3a2f131f6fa46539faafbd73766 | [
"MIT"
] | 5 | 2021-03-19T01:10:37.000Z | 2021-09-22T18:47:10.000Z | zeus/brewery/models.py | sdivakarrajesh/Zeus | 7a6ddd3d0375f3a2f131f6fa46539faafbd73766 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class DrinkType(models.Model):
created = models.DateTimeField(auto_now_add=True, blank=True, null=True)
updated = models.DateTimeField(auto_now=True, blank=True, null=True)
title = models.CharField(max_length=100, null=True, blank=True)
def __s... | 32.458333 | 76 | 0.722721 | 107 | 779 | 5.102804 | 0.345794 | 0.131868 | 0.142857 | 0.155678 | 0.553114 | 0.553114 | 0.553114 | 0.446886 | 0.446886 | 0.446886 | 0 | 0.009188 | 0.161746 | 779 | 24 | 77 | 32.458333 | 0.826953 | 0.030809 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0.133333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
70f1cf6cbe1d0d3ea9ded5e933650823891cd848 | 1,015 | py | Python | main.py | kylecorry31/lifx_effects | ea97e3274233fb844c416d4d5a95d06a8a1c7cde | [
"MIT"
] | null | null | null | main.py | kylecorry31/lifx_effects | ea97e3274233fb844c416d4d5a95d06a8a1c7cde | [
"MIT"
] | 1 | 2021-11-13T20:35:21.000Z | 2021-11-13T20:35:21.000Z | main.py | kylecorry31/lifx_effects | ea97e3274233fb844c416d4d5a95d06a8a1c7cde | [
"MIT"
] | null | null | null | from effects.keyboard_effect import KeyboardEffect
from utils.lights import get_lights
from effects.candle_effect import CandleEffect
from effects.phasma_hunt_effect import PhasmaHuntEffect
from effects.audio_spectrum_effect import AudioSpectrumEffect
from effects.audio_amplitude_effect import AudioAmplitudeEffect
from... | 37.592593 | 89 | 0.727094 | 140 | 1,015 | 5.178571 | 0.385714 | 0.09931 | 0.044138 | 0.066207 | 0.126897 | 0.071724 | 0.071724 | 0 | 0 | 0 | 0 | 0.057604 | 0.144828 | 1,015 | 27 | 90 | 37.592593 | 0.77765 | 0.371429 | 0 | 0.222222 | 0 | 0 | 0.015848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cb0378636f9363b9345438112d17636d553ee87d | 1,975 | py | Python | src/ClusterManager/cluster_manager.py | nautilusshell/QianJiangYuan | 262a88ca559f62d6e8633b1596481515d32f7907 | [
"MIT"
] | null | null | null | src/ClusterManager/cluster_manager.py | nautilusshell/QianJiangYuan | 262a88ca559f62d6e8633b1596481515d32f7907 | [
"MIT"
] | null | null | null | src/ClusterManager/cluster_manager.py | nautilusshell/QianJiangYuan | 262a88ca559f62d6e8633b1596481515d32f7907 | [
"MIT"
] | 1 | 2019-12-27T07:57:48.000Z | 2019-12-27T07:57:48.000Z | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import json
import os
import time
import argparse
import uuid
import subprocess
import sys
import datetime
import yaml
from jinja2 import Environment, FileSystemLoader, Template
import base64
import re
import thread
import threading
import random
import textwrap
import lo... | 21.236559 | 85 | 0.691646 | 239 | 1,975 | 5.539749 | 0.389121 | 0.049094 | 0.071752 | 0.072508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002516 | 0.194937 | 1,975 | 93 | 86 | 21.236559 | 0.830189 | 0.150886 | 0 | 0 | 0 | 0 | 0.132415 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035088 | false | 0.017544 | 0.421053 | 0 | 0.45614 | 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 | 0 | 0 | 0 | 1 |
cb0468927dd370e4c6e76788301b7d52a85a268f | 611 | py | Python | netmiko/ssh_exception.py | dalekirkman1/netmiko | a82ae784f4f1ef75e864ac972c088b8c963f77ff | [
"MIT"
] | 1 | 2020-12-11T00:48:09.000Z | 2020-12-11T00:48:09.000Z | netmiko/ssh_exception.py | rockenwind/netmiko | 24291029d0cdd5af660475ac1093a2dcd1c08af2 | [
"MIT"
] | null | null | null | netmiko/ssh_exception.py | rockenwind/netmiko | 24291029d0cdd5af660475ac1093a2dcd1c08af2 | [
"MIT"
] | null | null | null | from paramiko.ssh_exception import SSHException
from paramiko.ssh_exception import AuthenticationException
class NetmikoTimeoutException(SSHException):
"""SSH session timed trying to connect to the device."""
pass
class NetmikoAuthenticationException(AuthenticationException):
"""SSH authentication exce... | 24.44 | 81 | 0.813421 | 50 | 611 | 9.9 | 0.54 | 0.048485 | 0.060606 | 0.09697 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130933 | 611 | 24 | 82 | 25.458333 | 0.932203 | 0.281506 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.3 | 0.2 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cb0b42243a5f1619da2be629a939fedeb68fb530 | 3,510 | py | Python | tools/Vitis-AI-Quantizer/vai_q_tensorflow2.x/setup.py | hito0512/Vitis-AI | 996459fb96cb077ed2f7e789d515893b1cccbc95 | [
"Apache-2.0"
] | 848 | 2019-12-03T00:16:17.000Z | 2022-03-31T22:53:17.000Z | tools/Vitis-AI-Quantizer/vai_q_tensorflow2.x/setup.py | wangyifan778/Vitis-AI | f61061eef7550d98bf02a171604c9a9f283a7c47 | [
"Apache-2.0"
] | 656 | 2019-12-03T00:48:46.000Z | 2022-03-31T18:41:54.000Z | tools/Vitis-AI-Quantizer/vai_q_tensorflow2.x/setup.py | wangyifan778/Vitis-AI | f61061eef7550d98bf02a171604c9a9f283a7c47 | [
"Apache-2.0"
] | 506 | 2019-12-03T00:46:26.000Z | 2022-03-30T10:34:56.000Z | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 35.454545 | 80 | 0.703989 | 456 | 3,510 | 5.328947 | 0.517544 | 0.024691 | 0.055556 | 0.013169 | 0.021399 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01343 | 0.17265 | 3,510 | 98 | 81 | 35.816327 | 0.823347 | 0.38547 | 0 | 0.031746 | 0 | 0 | 0.378417 | 0.075401 | 0 | 0 | 0 | 0.010204 | 0 | 1 | 0.015873 | false | 0 | 0.126984 | 0.015873 | 0.174603 | 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 | 0 | 0 | 0 | 1 |
cb1e226e79e09f241ae2edae33072edf44edd04c | 2,301 | py | Python | bdd/contact_stepts.py | SvetlanaPopova/python_1 | 5acc26e3d3746d7fcf48603d9ca9064e39c248ca | [
"Apache-2.0"
] | null | null | null | bdd/contact_stepts.py | SvetlanaPopova/python_1 | 5acc26e3d3746d7fcf48603d9ca9064e39c248ca | [
"Apache-2.0"
] | null | null | null | bdd/contact_stepts.py | SvetlanaPopova/python_1 | 5acc26e3d3746d7fcf48603d9ca9064e39c248ca | [
"Apache-2.0"
] | null | null | null | __author__ = 'User'
from pytest_bdd import given, when, then
from model.contact import Contact
import random
@given('a contact list')
def contact_list(db):
return db.get_contact_list()
@given('a contact with <firstname>, <lastname>, <address> and <mobilephone>')
def new_contact(firstname, lastname, address, mobi... | 41.836364 | 100 | 0.788787 | 349 | 2,301 | 4.916905 | 0.160458 | 0.147436 | 0.087413 | 0.110723 | 0.346154 | 0.315851 | 0.231352 | 0.161422 | 0.161422 | 0.161422 | 0 | 0.000495 | 0.121686 | 2,301 | 54 | 101 | 42.611111 | 0.84859 | 0 | 0 | 0.046512 | 0 | 0 | 0.207736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.232558 | false | 0 | 0.069767 | 0.069767 | 0.395349 | 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 | 0 | 0 | 0 | 1 |
cb214db88b78d4f30ed19cb317af575bf87c3f7d | 686 | py | Python | src/django_perf_rec/settings.py | adamchainz/django-perf-rec | f543053d9de5bc7f52f5761fc914d342c78e37a1 | [
"MIT"
] | 147 | 2018-08-21T14:18:27.000Z | 2022-03-31T23:16:58.000Z | src/django_perf_rec/settings.py | adamchainz/django-perf-rec | f543053d9de5bc7f52f5761fc914d342c78e37a1 | [
"MIT"
] | 48 | 2018-07-15T11:07:08.000Z | 2022-03-26T16:00:22.000Z | src/django_perf_rec/settings.py | adamchainz/django-perf-rec | f543053d9de5bc7f52f5761fc914d342c78e37a1 | [
"MIT"
] | 11 | 2018-07-13T10:09:44.000Z | 2021-02-13T18:15:12.000Z | import sys
from typing import Any
from django.conf import settings
if sys.version_info >= (3, 8):
from typing import Literal
ModeType = Literal["once", "none", "all"]
else:
ModeType = str
class Settings:
defaults = {"HIDE_COLUMNS": True, "MODE": "once"}
def get_setting(self, key: str) -> Any:... | 20.176471 | 53 | 0.635569 | 85 | 686 | 5.011765 | 0.470588 | 0.077465 | 0.075117 | 0.093897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003884 | 0.249271 | 686 | 33 | 54 | 20.787879 | 0.823301 | 0 | 0 | 0.090909 | 0 | 0 | 0.068513 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.181818 | 0.090909 | 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 | 0 | 1 | 0 | 0 | 1 |
cb283b303e7b53a68315f74dab085b92d21f9186 | 1,031 | py | Python | truncande/cli.py | Ricyteach/truncande | b7c529cb141b6c534833b4f9536ea6910412d637 | [
"MIT"
] | null | null | null | truncande/cli.py | Ricyteach/truncande | b7c529cb141b6c534833b4f9536ea6910412d637 | [
"MIT"
] | null | null | null | truncande/cli.py | Ricyteach/truncande | b7c529cb141b6c534833b4f9536ea6910412d637 | [
"MIT"
] | null | null | null | import pathlib
import click
from . import candeout
@click.group()
@click.argument("ifile", type=click.Path(exists=True, dir_okay=False), required=True)
@click.argument(
"ofile",
type=click.Path(exists=False, dir_okay=False, writable=True),
required=False,
)
@click.pass_context
def main(ctx, ifile, ofile... | 25.775 | 88 | 0.676043 | 141 | 1,031 | 4.87234 | 0.368794 | 0.061135 | 0.069869 | 0.082969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002273 | 0.14646 | 1,031 | 39 | 89 | 26.435897 | 0.778409 | 0 | 0 | 0.096774 | 0 | 0 | 0.072745 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0.096774 | 0.096774 | 0 | 0.193548 | 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 | 0 | 0 | 0 | 1 |
cb2a679f6bf1c9fc3be6603b4c524bc925b318db | 756 | py | Python | conference/decorators.py | ethancarlsson/epcon | 10ae259ad75271651506d44cc5e71cf089349ea3 | [
"BSD-2-Clause"
] | 40 | 2015-03-03T22:14:58.000Z | 2022-02-15T22:27:48.000Z | conference/decorators.py | ethancarlsson/epcon | 10ae259ad75271651506d44cc5e71cf089349ea3 | [
"BSD-2-Clause"
] | 699 | 2015-01-21T10:13:29.000Z | 2022-02-08T09:26:36.000Z | conference/decorators.py | ethancarlsson/epcon | 10ae259ad75271651506d44cc5e71cf089349ea3 | [
"BSD-2-Clause"
] | 96 | 2015-01-22T11:03:13.000Z | 2022-01-31T05:35:34.000Z | import functools
from django.contrib import messages
from django.urls import reverse
from django.shortcuts import redirect
def full_profile_required(func):
@functools.wraps(func)
def wrapper(request, *args, **kwargs):
if (request.user
and request.user.id # FIXME test mocks mess with ... | 31.5 | 109 | 0.661376 | 90 | 756 | 5.511111 | 0.577778 | 0.08871 | 0.068548 | 0.116935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.268519 | 756 | 23 | 110 | 32.869565 | 0.896926 | 0.092593 | 0 | 0 | 0 | 0 | 0.138889 | 0.039474 | 0 | 0 | 0 | 0.043478 | 0 | 1 | 0.117647 | false | 0 | 0.235294 | 0 | 0.529412 | 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 | 0 | 0 | 0 | 1 |
cb397006da0e1fab13bd9fe5696085b9a41dee97 | 1,365 | py | Python | converter.py | Supercip971/convertisseur-python | 5e8e6c150fcc3c79e4902971ffd6227b32253450 | [
"MIT"
] | null | null | null | converter.py | Supercip971/convertisseur-python | 5e8e6c150fcc3c79e4902971ffd6227b32253450 | [
"MIT"
] | null | null | null | converter.py | Supercip971/convertisseur-python | 5e8e6c150fcc3c79e4902971ffd6227b32253450 | [
"MIT"
] | null | null | null | str_xdigits = [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"a",
"b",
"c",
"d",
"e",
"f",
]
def convert_digit(value: int, base: int) -> str:
return str_xdigits[value % base]
def convert_to_val(value: int, base: int) -> str:
if value == No... | 17.727273 | 69 | 0.570696 | 198 | 1,365 | 3.757576 | 0.257576 | 0.056452 | 0.064516 | 0.091398 | 0.209677 | 0.16129 | 0.16129 | 0.16129 | 0.11828 | 0 | 0 | 0.029532 | 0.280586 | 1,365 | 76 | 70 | 17.960526 | 0.728106 | 0.010256 | 0 | 0 | 0 | 0 | 0.022239 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0 | 0.137255 | 0.411765 | 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 | 0 | 0 | 0 | 1 |
cb3c3f1580ef22e37e0c06b778c777c3a92768d2 | 13,914 | py | Python | backend/test/test_api.py | solevis/pixyship2 | 15a592a1961e4286a344a0d1664cfb491439bf09 | [
"MIT"
] | 8 | 2021-04-04T17:10:35.000Z | 2021-12-04T06:56:56.000Z | backend/test/test_api.py | solevis/pixyship2 | 15a592a1961e4286a344a0d1664cfb491439bf09 | [
"MIT"
] | 56 | 2021-02-18T14:50:32.000Z | 2022-03-28T14:03:30.000Z | backend/test/test_api.py | solevis/pixyship2 | 15a592a1961e4286a344a0d1664cfb491439bf09 | [
"MIT"
] | 2 | 2021-09-28T00:57:00.000Z | 2022-01-21T07:47:15.000Z | from pixelstarshipsapi import PixelStarshipsApi
from run import push_context
def test_login():
pixel_starships_api = PixelStarshipsApi()
device_key, device_checksum = pixel_starships_api.generate_device()
token = pixel_starships_api.get_device_token(device_key, device_checksum)
assert isinstance(tok... | 28.280488 | 78 | 0.720425 | 1,569 | 13,914 | 6.251115 | 0.187381 | 0.064233 | 0.077998 | 0.076264 | 0.221554 | 0.18699 | 0.174144 | 0.131117 | 0.131117 | 0.127447 | 0 | 0.006667 | 0.213023 | 13,914 | 491 | 79 | 28.338086 | 0.889041 | 0.033491 | 0 | 0.192837 | 0 | 0 | 0.216313 | 0.02771 | 0 | 0 | 0 | 0 | 0.688705 | 1 | 0.060606 | false | 0 | 0.00551 | 0 | 0.066116 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cb3d6a46bfe63becf40c12dca772072e068d92b3 | 4,524 | py | Python | yamlfred/alfred_object.py | uchida/yamlfred | bbd3ff1c875aef095556aaa6b5838e1f2a3ec01e | [
"CC0-1.0"
] | null | null | null | yamlfred/alfred_object.py | uchida/yamlfred | bbd3ff1c875aef095556aaa6b5838e1f2a3ec01e | [
"CC0-1.0"
] | null | null | null | yamlfred/alfred_object.py | uchida/yamlfred | bbd3ff1c875aef095556aaa6b5838e1f2a3ec01e | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, print_function
import os.path
import uuid
from yamlfred.utils import remove_default, merge_dicts
from yamlfred.utils import Include
defaults = {
'alfred.workflow.output.notification': {
'config': {'removeextension': False, 'output': 0, 'las... | 34.015038 | 148 | 0.552387 | 427 | 4,524 | 5.800937 | 0.28103 | 0.158256 | 0.11304 | 0.177634 | 0.352442 | 0.224869 | 0.101736 | 0.101736 | 0.101736 | 0.101736 | 0 | 0.016867 | 0.266136 | 4,524 | 132 | 149 | 34.272727 | 0.729217 | 0.004642 | 0 | 0.266129 | 0 | 0 | 0.394579 | 0.214175 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016129 | false | 0 | 0.040323 | 0 | 0.080645 | 0.008065 | 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 | 0 | 0 | 0 | 0 | 1 |
cb4f9d88257810b11fcfe2f3d7d48b189b5318eb | 328 | py | Python | bflib/sizes.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | 3 | 2017-10-28T11:28:38.000Z | 2018-09-12T09:47:00.000Z | bflib/sizes.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | null | null | null | bflib/sizes.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | null | null | null | from enum import Enum
class Size(Enum):
VerySmall = "Very Small"
Small = "Small"
Medium = "Medium"
Large = "Large"
Huge = "Huge"
feet_map = {
Size.VerySmall: 1,
Size.Small: 3,
Size.Medium: 5,
Size.Large: 10,
Size.Huge: 20,
}
def size_in_feet(size):
return feet_map.get(s... | 14.26087 | 32 | 0.591463 | 46 | 328 | 4.130435 | 0.5 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033755 | 0.277439 | 328 | 22 | 33 | 14.909091 | 0.767932 | 0 | 0 | 0 | 0 | 0 | 0.091463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0.0625 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
cb56bcf8fe68538776f3fb4e542fc3f89b7ad574 | 414 | py | Python | SAplatform/SAcore/migrations/0009_auto_20190529_2231.py | ThankPan/SA_Backend | 9aecd5950a9170fff264278eded9ab37ee35187b | [
"MIT"
] | 2 | 2019-05-22T09:16:51.000Z | 2019-05-29T10:26:12.000Z | SAplatform/SAcore/migrations/0009_auto_20190529_2231.py | ThankPan/SA_Backend | 9aecd5950a9170fff264278eded9ab37ee35187b | [
"MIT"
] | null | null | null | SAplatform/SAcore/migrations/0009_auto_20190529_2231.py | ThankPan/SA_Backend | 9aecd5950a9170fff264278eded9ab37ee35187b | [
"MIT"
] | null | null | null | # Generated by Django 2.0.6 on 2019-05-29 14:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('SAcore', '0008_user_avator'),
]
operations = [
migrations.AlterField(
model_name='user',
name='avator',
... | 21.789474 | 88 | 0.608696 | 46 | 414 | 5.369565 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072848 | 0.270531 | 414 | 18 | 89 | 23 | 0.745033 | 0.108696 | 0 | 0 | 1 | 0 | 0.155313 | 0.06812 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cb5bf325d16c4ad64611039b02ce9e3296d30e86 | 279 | py | Python | niaaml_gui/progress_bar.py | zStupan/NiaAML-GUI | fff3dd3e5ae1ec26df77d952970d90e1b26a0cf3 | [
"MIT"
] | 2 | 2020-12-02T19:27:03.000Z | 2021-12-23T11:56:02.000Z | niaaml_gui/progress_bar.py | zStupan/NiaAML-GUI | fff3dd3e5ae1ec26df77d952970d90e1b26a0cf3 | [
"MIT"
] | 8 | 2020-12-08T21:50:48.000Z | 2021-11-23T09:47:43.000Z | niaaml_gui/progress_bar.py | zStupan/NiaAML-GUI | fff3dd3e5ae1ec26df77d952970d90e1b26a0cf3 | [
"MIT"
] | 3 | 2021-04-21T09:42:57.000Z | 2021-11-22T15:47:08.000Z | from PyQt5 import QtCore
from PyQt5.QtWidgets import QProgressBar
class ProgressBar(QProgressBar):
def __init__(self):
super(ProgressBar, self).__init__()
self.setTextVisible(True)
self.setMaximum(100)
self.setAlignment(QtCore.Qt.AlignCenter) | 31 | 48 | 0.724014 | 30 | 279 | 6.466667 | 0.633333 | 0.092784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022124 | 0.189964 | 279 | 9 | 48 | 31 | 0.836283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cb6614d079e45fa5d3bb1ee408477e4669627542 | 53,973 | py | Python | bindings/java/gen_jni.py | protocols-comnet/openwebrtc | 49e507623133f8faf10c7c99cc60f2c41c9847d2 | [
"BSD-2-Clause"
] | 1 | 2015-01-26T18:53:22.000Z | 2015-01-26T18:53:22.000Z | bindings/java/gen_jni.py | protocols-comnet/openwebrtc | 49e507623133f8faf10c7c99cc60f2c41c9847d2 | [
"BSD-2-Clause"
] | null | null | null | bindings/java/gen_jni.py | protocols-comnet/openwebrtc | 49e507623133f8faf10c7c99cc60f2c41c9847d2 | [
"BSD-2-Clause"
] | 2 | 2020-09-01T07:00:35.000Z | 2020-09-27T01:13:23.000Z | #!/usr/bin/env python -B
# Copyright (c) 2014, Ericsson AB. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list... | 30.649063 | 171 | 0.528857 | 6,043 | 53,973 | 4.547245 | 0.086381 | 0.013101 | 0.007861 | 0.012009 | 0.419739 | 0.345573 | 0.291168 | 0.249718 | 0.21904 | 0.200226 | 0 | 0.002165 | 0.306857 | 53,973 | 1,760 | 172 | 30.666477 | 0.732351 | 0.07048 | 0 | 0.396403 | 0 | 0.006255 | 0.288627 | 0.049125 | 0 | 0 | 0 | 0.000568 | 0.016419 | 0 | null | null | 0.001564 | 0.006255 | null | null | 0.010164 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
cb66f50e920c621e6d847f079089141e524ab650 | 880 | py | Python | test/functional_requirements/fault_tolerance/REBUILD_TRIGGERED_RIGHT_AFTER_ARRAY_MOUNTED.py | so931/poseidonos | 2aa82f26bfbd0d0aee21cd0574779a655634f08c | [
"BSD-3-Clause"
] | 38 | 2021-04-06T03:20:55.000Z | 2022-03-02T09:33:28.000Z | test/functional_requirements/fault_tolerance/REBUILD_TRIGGERED_RIGHT_AFTER_ARRAY_MOUNTED.py | so931/poseidonos | 2aa82f26bfbd0d0aee21cd0574779a655634f08c | [
"BSD-3-Clause"
] | 19 | 2021-04-08T02:27:44.000Z | 2022-03-23T00:59:04.000Z | test/functional_requirements/fault_tolerance/REBUILD_TRIGGERED_RIGHT_AFTER_ARRAY_MOUNTED.py | so931/poseidonos | 2aa82f26bfbd0d0aee21cd0574779a655634f08c | [
"BSD-3-Clause"
] | 28 | 2021-04-08T04:39:18.000Z | 2022-03-24T05:56:00.000Z | #!/usr/bin/env python3
import subprocess
import os
import sys
sys.path.append("../")
sys.path.append("../../system/lib/")
sys.path.append("../array/")
import json_parser
import pos
import pos_util
import cli
import api
import json
import time
import CREATE_ARRAY_BASIC
ARRAYNAME = CREATE_ARRAY_BASIC.ARRAYNAME
def exec... | 24.444444 | 78 | 0.7125 | 125 | 880 | 4.696 | 0.496 | 0.093697 | 0.136286 | 0.127768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014905 | 0.161364 | 880 | 36 | 79 | 24.444444 | 0.780488 | 0.027273 | 0 | 0 | 0 | 0 | 0.064327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0.03125 | 0.34375 | 0 | 0.4375 | 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 | 0 | 0 | 0 | 1 |
cb6bfa1a351710813d824ef3686ff4624c0467f4 | 70,114 | py | Python | SublimeText3_3176/Data/Packages/SublimeCodeIntel-master/libs/codeintel2/pythoncile1.py | xiexie1993/Tool_Sublime_Text3_for_Windows | 51b11ac2d7df36242d68b3b5f85af5f2a8c550e2 | [
"RSA-MD"
] | 1 | 2018-06-23T08:07:39.000Z | 2018-06-23T08:07:39.000Z | SublimeText3_3176/Data/Packages/SublimeCodeIntel-master/libs/codeintel2/pythoncile1.py | xiexie1993/Tool_Sublime_Text3_for_Windows | 51b11ac2d7df36242d68b3b5f85af5f2a8c550e2 | [
"RSA-MD"
] | null | null | null | SublimeText3_3176/Data/Packages/SublimeCodeIntel-master/libs/codeintel2/pythoncile1.py | xiexie1993/Tool_Sublime_Text3_for_Windows | 51b11ac2d7df36242d68b3b5f85af5f2a8c550e2 | [
"RSA-MD"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) 2004-2006 ActiveState Software Inc.
#
# Contributors:
# Trent Mick (TrentM@ActiveState.com)
"""
pythoncile - a Code Intelligence Language Engine for the Python language
Module Usage:
from pythoncile import scan
mtime = os.stat("foo.py")[stat.ST_MTIME]
... | 39.257559 | 86 | 0.53306 | 7,693 | 70,114 | 4.789289 | 0.138698 | 0.021659 | 0.016149 | 0.017669 | 0.336663 | 0.286722 | 0.270546 | 0.254505 | 0.235805 | 0.22636 | 0 | 0.006997 | 0.359985 | 70,114 | 1,785 | 87 | 39.279552 | 0.814057 | 0.149542 | 0 | 0.335833 | 0 | 0.000833 | 0.075612 | 0.006041 | 0.000833 | 0 | 0 | 0.00056 | 0.000833 | 0 | null | null | 0.013333 | 0.036667 | null | null | 0.005 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
cb6e6dd109fe14cd4863e7a3ef1390182e64eed7 | 3,142 | py | Python | lexical-parse-float/etc/limits.py | sjurajpuchky/rust-lexical | 827dd8722967030bfe75cfbd786f0e160ffb9c0c | [
"Apache-2.0",
"MIT"
] | 249 | 2018-12-15T22:10:42.000Z | 2022-03-28T05:43:13.000Z | lexical-parse-float/etc/limits.py | sjurajpuchky/rust-lexical | 827dd8722967030bfe75cfbd786f0e160ffb9c0c | [
"Apache-2.0",
"MIT"
] | 76 | 2018-11-25T03:41:43.000Z | 2022-03-15T18:57:00.000Z | lexical-parse-float/etc/limits.py | sjurajpuchky/rust-lexical | 827dd8722967030bfe75cfbd786f0e160ffb9c0c | [
"Apache-2.0",
"MIT"
] | 35 | 2018-12-02T19:35:28.000Z | 2022-03-12T23:37:39.000Z | #!/usr/bin/env python3
"""
Generate the numeric limits for a given radix.
This is used for the fast-path algorithms, to calculate the
maximum number of digits or exponent bits that can be exactly
represented as a native value.
"""
import math
def is_pow2(value):
'''Calculate if a value is a power of 2.'''
... | 30.504854 | 82 | 0.619669 | 439 | 3,142 | 4.33713 | 0.275626 | 0.05042 | 0.037815 | 0.046218 | 0.235294 | 0.163866 | 0.163866 | 0.096639 | 0.096639 | 0.096639 | 0 | 0.024003 | 0.257479 | 3,142 | 102 | 83 | 30.803922 | 0.792113 | 0.344048 | 0 | 0.269231 | 1 | 0 | 0.24759 | 0.033486 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.019231 | 0 | 0.288462 | 0.346154 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cb7491736bfbd22fd0d03bf388c942817f7860a2 | 299 | py | Python | Python/9. Errors and Exceptions/exercise2.py | mukeshmithrakumar/HackerRankSolutions | cd9e71be5e8703287b9f4efc042df8827175af1b | [
"MIT"
] | 12 | 2019-10-29T09:49:26.000Z | 2022-02-21T09:43:41.000Z | Python/9. Errors and Exceptions/exercise2.py | ozturkosu/HackerRankSolutions | cd9e71be5e8703287b9f4efc042df8827175af1b | [
"MIT"
] | null | null | null | Python/9. Errors and Exceptions/exercise2.py | ozturkosu/HackerRankSolutions | cd9e71be5e8703287b9f4efc042df8827175af1b | [
"MIT"
] | 10 | 2019-12-22T03:18:50.000Z | 2021-09-23T16:55:25.000Z | # Incorrect Regex "https://www.hackerrank.com/challenges/incorrect-regex/problem"
# Enter your code here. Read input from STDIN. Print output to STDOUT
import re
for i in range(int(input())):
try:
re.compile(input())
print("True")
except ValueError:
print("False")
| 24.916667 | 81 | 0.665552 | 40 | 299 | 4.975 | 0.825 | 0.140704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210702 | 299 | 11 | 82 | 27.181818 | 0.84322 | 0.491639 | 0 | 0 | 0 | 0 | 0.060403 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.285714 | 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 | 0 | 0 | 0 | 1 |
cb7c33f1129f73ea16522644b0dc0c8fff4d920f | 712 | py | Python | UDPMulticastClient.py | monteno-m/Challenge | facebb31d3e04dcd497577e4e6f38020b846c614 | [
"MIT"
] | null | null | null | UDPMulticastClient.py | monteno-m/Challenge | facebb31d3e04dcd497577e4e6f38020b846c614 | [
"MIT"
] | null | null | null | UDPMulticastClient.py | monteno-m/Challenge | facebb31d3e04dcd497577e4e6f38020b846c614 | [
"MIT"
] | null | null | null | # Basic UDP Multicasting server built in python
import socket
import struct
def UDPReceiveMultiCast(group, port):
# Create UDP Socket
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind(('', port))
mreq = stru... | 25.428571 | 76 | 0.657303 | 88 | 712 | 5.113636 | 0.602273 | 0.08 | 0.075556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031365 | 0.238764 | 712 | 28 | 77 | 25.428571 | 0.798893 | 0.088483 | 0 | 0 | 0 | 0 | 0.083462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.125 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
cb7f6dcf22a868c02e40a1c04eb933a6c7a3c1bd | 341 | py | Python | celerytest/tasks.py | dpfried/mocs | d594a47c2e3125a30fe14c2bc646d0e0614cb8b2 | [
"MIT"
] | 8 | 2016-05-31T09:54:15.000Z | 2021-08-13T13:25:01.000Z | celerytest/tasks.py | dpfried/mocs | d594a47c2e3125a30fe14c2bc646d0e0614cb8b2 | [
"MIT"
] | null | null | null | celerytest/tasks.py | dpfried/mocs | d594a47c2e3125a30fe14c2bc646d0e0614cb8b2 | [
"MIT"
] | 10 | 2015-01-07T06:45:44.000Z | 2021-06-21T08:41:57.000Z | from celery.task import task
from time import sleep
@task()
def add(x, y):
return x + y;
@task()
def status(delay):
status.update_state(state='PROGRESS', meta={'description': 'starting timer'})
sleep(delay)
status.update_state(state='PROGRESS', meta={'description': 'after first sleep'})
sleep(dela... | 22.733333 | 84 | 0.677419 | 46 | 341 | 4.978261 | 0.5 | 0.061135 | 0.148472 | 0.19214 | 0.436681 | 0.436681 | 0.436681 | 0.436681 | 0 | 0 | 0 | 0 | 0.170088 | 341 | 14 | 85 | 24.357143 | 0.809187 | 0 | 0 | 0.333333 | 0 | 0 | 0.214076 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.083333 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.