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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0902becf0cc85035e9f04cc78c468e09f7880261 | 1,127 | py | Python | discord_base/__manifest__.py | bishalgit/discord-addons | f7f36791734440cd0b37296f5f5132e91035b15f | [
"MIT"
] | 1 | 2020-10-02T23:22:44.000Z | 2020-10-02T23:22:44.000Z | discord_base/__manifest__.py | bishalgit/discord-addons | f7f36791734440cd0b37296f5f5132e91035b15f | [
"MIT"
] | null | null | null | discord_base/__manifest__.py | bishalgit/discord-addons | f7f36791734440cd0b37296f5f5132e91035b15f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Part of Ygen. See LICENSE file for full copyright and licensing details.
{
'name': 'Discord - Base module for discord',
'summary': """
This module is a base module to provide foudation for building discord modules for Odoo.""",
'description': """
This module is a b... | 32.2 | 100 | 0.598048 | 136 | 1,127 | 4.830882 | 0.544118 | 0.060883 | 0.114155 | 0.121766 | 0.222222 | 0.222222 | 0.222222 | 0.222222 | 0.222222 | 0.222222 | 0 | 0.014235 | 0.251996 | 1,127 | 35 | 101 | 32.2 | 0.765125 | 0.083407 | 0 | 0.125 | 0 | 0 | 0.658584 | 0.247333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
09042b5650522c004e88f9bb356dd4258fbf0a37 | 78 | py | Python | python_resolutions/beginner/1070.py | DanielYe1/UriResolutions | 7140c4a7f37b95cc15d9c77612c4abde469d379f | [
"Apache-2.0"
] | null | null | null | python_resolutions/beginner/1070.py | DanielYe1/UriResolutions | 7140c4a7f37b95cc15d9c77612c4abde469d379f | [
"Apache-2.0"
] | null | null | null | python_resolutions/beginner/1070.py | DanielYe1/UriResolutions | 7140c4a7f37b95cc15d9c77612c4abde469d379f | [
"Apache-2.0"
] | null | null | null | x = int(input())
for i in range(12):
if (i+x) % 2 ==1:
print(i+x)
| 15.6 | 21 | 0.448718 | 16 | 78 | 2.1875 | 0.75 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075472 | 0.320513 | 78 | 4 | 22 | 19.5 | 0.584906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0904bf755d3e10215cee53a8c90b515aa46d7e38 | 1,487 | py | Python | build/lib/modules/admin.py | HyperServiceOne/py-nsbcli | 9da6f01455b14cf21863acb0ba5acfce21f818cb | [
"BSD-3-Clause"
] | null | null | null | build/lib/modules/admin.py | HyperServiceOne/py-nsbcli | 9da6f01455b14cf21863acb0ba5acfce21f818cb | [
"BSD-3-Clause"
] | null | null | null | build/lib/modules/admin.py | HyperServiceOne/py-nsbcli | 9da6f01455b14cf21863acb0ba5acfce21f818cb | [
"BSD-3-Clause"
] | 1 | 2021-04-09T13:07:44.000Z | 2021-04-09T13:07:44.000Z |
class Admin(object):
def __init__(self):
self.rpc_host = None
self._abci_info_url = None
self._abci_query_url = None
self._block_url = None
self._block_result_url = None
self._block_chain_url = None
self._broadcast_tx_async_url = None
self._broadcast... | 29.74 | 78 | 0.659045 | 199 | 1,487 | 4.376884 | 0.20603 | 0.211251 | 0.277842 | 0.091848 | 0.316877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.27505 | 1,487 | 49 | 79 | 30.346939 | 0.807978 | 0 | 0 | 0.073171 | 0 | 0 | 0.027591 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121951 | false | 0 | 0 | 0.073171 | 0.219512 | 0.02439 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
090815c73402b5617ea4e0affb9e020029701833 | 108 | py | Python | solutions/week-1/interval.py | bekbolsky/stepik-python | 91613178ef8401019fab01ad18f10ee84f2f4491 | [
"MIT"
] | 1 | 2022-02-23T09:05:47.000Z | 2022-02-23T09:05:47.000Z | solutions/week-1/interval.py | bekbolsky/stepik-python | 91613178ef8401019fab01ad18f10ee84f2f4491 | [
"MIT"
] | null | null | null | solutions/week-1/interval.py | bekbolsky/stepik-python | 91613178ef8401019fab01ad18f10ee84f2f4491 | [
"MIT"
] | null | null | null | x = int(input())
if (-15 < x <= 12) or (14 < x < 17) or x >= 19:
print("True")
else:
print("False")
| 18 | 47 | 0.472222 | 19 | 108 | 2.684211 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 0.277778 | 108 | 5 | 48 | 21.6 | 0.525641 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
09121593cc5ea6a702aa8923134e504c5a40889f | 503 | py | Python | ZiggeoConfig.py | Ziggeo/ZiggeoPythonSdk | 7c1e46bdd0649bdd58707747279da40783f14f8b | [
"Apache-2.0"
] | 3 | 2018-07-17T16:38:17.000Z | 2020-10-31T19:56:47.000Z | ZiggeoConfig.py | Ziggeo/ZiggeoPythonSdk | 7c1e46bdd0649bdd58707747279da40783f14f8b | [
"Apache-2.0"
] | 8 | 2015-08-20T15:59:13.000Z | 2022-01-17T13:08:45.000Z | ZiggeoConfig.py | Ziggeo/ZiggeoPythonSdk | 7c1e46bdd0649bdd58707747279da40783f14f8b | [
"Apache-2.0"
] | 7 | 2015-08-12T14:32:12.000Z | 2019-10-30T05:26:51.000Z |
class ZiggeoConfig:
def __init__(self):
self.server_api_url = "https://srv-api.ziggeo.com"
self.regions = {"r1":"https://srv-api-eu-west-1.ziggeo.com"}
self.api_url = "https://api-us-east-1.ziggeo.com"
self.api_regions = {"r1":"https://api-eu-west-1.ziggeo.com"}
self.cdn... | 29.588235 | 74 | 0.612326 | 74 | 503 | 4 | 0.364865 | 0.182432 | 0.263514 | 0.189189 | 0.290541 | 0.222973 | 0.155405 | 0 | 0 | 0 | 0 | 0.024938 | 0.202783 | 503 | 17 | 75 | 29.588235 | 0.713217 | 0 | 0 | 0 | 0 | 0 | 0.393638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0913490c7e8b8a24f711e0b9a27fb487a58be19f | 77 | py | Python | recipes/stages/_base_/optimizers/adam.py | openvinotoolkit/model_preparation_algorithm | 8d36bf5944837b7a3d22fc2c3a4cb93423619fc2 | [
"Apache-2.0"
] | null | null | null | recipes/stages/_base_/optimizers/adam.py | openvinotoolkit/model_preparation_algorithm | 8d36bf5944837b7a3d22fc2c3a4cb93423619fc2 | [
"Apache-2.0"
] | null | null | null | recipes/stages/_base_/optimizers/adam.py | openvinotoolkit/model_preparation_algorithm | 8d36bf5944837b7a3d22fc2c3a4cb93423619fc2 | [
"Apache-2.0"
] | null | null | null | _base_ = './optimizer.py'
optimizer = dict(
type='Adam',
lr=0.003
)
| 11 | 25 | 0.571429 | 10 | 77 | 4.2 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067797 | 0.233766 | 77 | 6 | 26 | 12.833333 | 0.644068 | 0 | 0 | 0 | 0 | 0 | 0.233766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0913a064947d243f614c619b7153c8fd3f692bd6 | 228 | py | Python | benders-decomposition/src/input/facility.py | grzegorz-siekaniec/benders-decomposition-gurobi | 5435e82c7ef4fe14fc53ff07b8eaa1516208b57c | [
"MIT"
] | 6 | 2021-05-31T10:23:18.000Z | 2022-02-15T08:45:30.000Z | benders-decomposition/src/input/facility.py | grzegorz-siekaniec/benders-decomposition-gurobi | 5435e82c7ef4fe14fc53ff07b8eaa1516208b57c | [
"MIT"
] | null | null | null | benders-decomposition/src/input/facility.py | grzegorz-siekaniec/benders-decomposition-gurobi | 5435e82c7ef4fe14fc53ff07b8eaa1516208b57c | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from typing import Dict
@dataclass(frozen=True)
class Facility:
name: str
exists: bool
build_cost: float
supply: float
transport_cost: Dict[str, float] # customer to cost
| 19 | 56 | 0.723684 | 30 | 228 | 5.433333 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214912 | 228 | 11 | 57 | 20.727273 | 0.910615 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.222222 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
093315dcd39f337b13a244cffb3617bb0e05e77d | 2,852 | py | Python | thingsdb/client/abc/events.py | Koos85/python-thingsdb | 034649b0cbd38c27bdbdd4fed7bc13ed76d69cb5 | [
"MIT"
] | null | null | null | thingsdb/client/abc/events.py | Koos85/python-thingsdb | 034649b0cbd38c27bdbdd4fed7bc13ed76d69cb5 | [
"MIT"
] | null | null | null | thingsdb/client/abc/events.py | Koos85/python-thingsdb | 034649b0cbd38c27bdbdd4fed7bc13ed76d69cb5 | [
"MIT"
] | null | null | null | from ..protocol import Proto
import abc
from typing import Any
class Events(abc.ABC):
def __init__(self):
self._evmap = {
Proto.ON_NODE_STATUS: self.on_node_status,
Proto.ON_WARN: self.on_warning,
Proto.ON_WATCH_INI: self.on_watch_init,
Proto.ON_WATCH_UPD: ... | 25.017544 | 78 | 0.491585 | 299 | 2,852 | 4.518395 | 0.371237 | 0.082902 | 0.103627 | 0.11399 | 0.198372 | 0.159882 | 0 | 0 | 0 | 0 | 0 | 0.008982 | 0.414446 | 2,852 | 113 | 79 | 25.238938 | 0.8 | 0.411992 | 0 | 0.388889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.194444 | 0.083333 | 0 | 0.361111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
0934dae8263a1eb5eb984ac917bcab294f2ec303 | 7,962 | py | Python | mmseg/models/backbones/colorize_mask.py | yong-qiang/BANet | eb0964664dff0b2d581b8de68306def8d586c55d | [
"MIT"
] | 4 | 2021-09-25T15:29:45.000Z | 2022-03-01T09:38:13.000Z | mmseg/models/backbones/colorize_mask.py | yong-qiang/BANet | eb0964664dff0b2d581b8de68306def8d586c55d | [
"MIT"
] | null | null | null | mmseg/models/backbones/colorize_mask.py | yong-qiang/BANet | eb0964664dff0b2d581b8de68306def8d586c55d | [
"MIT"
] | null | null | null | from PIL import Image
import torch
import numpy as np
cityscapes_palette = [128, 64, 128, 244, 35, 232, 70, 70, 70, 102, 102, 156, 190, 153, 153, 153, 153, 153, 250, 170, 30,
220, 220, 0, 107, 142, 35, 152, 251, 152, 70, 130, 180, 220, 20, 60, 255, 0, 0, 0, 0, 142, 0, 0,
70,... | 45.497143 | 975 | 0.503893 | 1,390 | 7,962 | 2.828058 | 0.109353 | 0.031544 | 0.023658 | 0.025439 | 0.479013 | 0.439328 | 0.410328 | 0.37853 | 0.350038 | 0.350038 | 0 | 0.421289 | 0.329817 | 7,962 | 174 | 976 | 45.758621 | 0.315405 | 0.05589 | 0 | 0.314961 | 0 | 0 | 0.002265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070866 | false | 0 | 0.023622 | 0.007874 | 0.165354 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
09390bc16efe546bdac818e37e914aa39899f96d | 1,336 | py | Python | qcos_addons/access_log/log.py | kevin0120/airflow | fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd | [
"Apache-2.0"
] | null | null | null | qcos_addons/access_log/log.py | kevin0120/airflow | fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd | [
"Apache-2.0"
] | null | null | null | qcos_addons/access_log/log.py | kevin0120/airflow | fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd | [
"Apache-2.0"
] | null | null | null | import json
from typing import Callable, TypeVar, cast
from .constants import CUSTOM_LOG_FORMAT, CUSTOM_EVENT_NAME_MAP, CUSTOM_PAGE_NAME_MAP
from datetime import datetime
import logging
from airflow.settings import TIMEZONE
from airflow.utils.session import create_session
import functools
T = TypeVar("T", bound=Calla... | 31.809524 | 115 | 0.657186 | 167 | 1,336 | 5.017964 | 0.437126 | 0.091885 | 0.0358 | 0.042959 | 0.114558 | 0.114558 | 0.114558 | 0.114558 | 0.114558 | 0.114558 | 0 | 0.002964 | 0.242515 | 1,336 | 41 | 116 | 32.585366 | 0.825099 | 0.077844 | 0 | 0 | 0 | 0 | 0.037252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.321429 | 0 | 0.535714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
09427cf92374db5f7f6567478a568e972eec2cff | 1,198 | py | Python | memex_images/image_space/migrations/0001_initial.py | quasiben/image_space | 811180d5b39cef20e2e3322c650de9602d6afb29 | [
"BSD-3-Clause"
] | null | null | null | memex_images/image_space/migrations/0001_initial.py | quasiben/image_space | 811180d5b39cef20e2e3322c650de9602d6afb29 | [
"BSD-3-Clause"
] | null | null | null | memex_images/image_space/migrations/0001_initial.py | quasiben/image_space | 811180d5b39cef20e2e3322c650de9602d6afb29 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Images',
fields=[
('id', models.AutoField(verbo... | 37.4375 | 114 | 0.601002 | 110 | 1,198 | 6.290909 | 0.490909 | 0.151734 | 0.182081 | 0.242775 | 0.369942 | 0.330925 | 0 | 0 | 0 | 0 | 0 | 0.0252 | 0.271285 | 1,198 | 31 | 115 | 38.645161 | 0.767469 | 0.017529 | 0 | 0 | 0 | 0 | 0.16766 | 0.122553 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
094570371ac6509b0c55dba57d84871c450cb274 | 396 | py | Python | Python/PythonExercicios/ex035.py | isabellathome/College-Activities | 12fc73f8416f5a9572d0a8c59eb7403d9c88ed0f | [
"MIT"
] | null | null | null | Python/PythonExercicios/ex035.py | isabellathome/College-Activities | 12fc73f8416f5a9572d0a8c59eb7403d9c88ed0f | [
"MIT"
] | null | null | null | Python/PythonExercicios/ex035.py | isabellathome/College-Activities | 12fc73f8416f5a9572d0a8c59eb7403d9c88ed0f | [
"MIT"
] | null | null | null | print('-=-' * 15)
print('Analisador de Triângulos')
print('-=-' * 15)
sega = float(input('Primeiro Segmento: '))
segb = float(input('Segundo Segmento: '))
segc = float(input('Terceiro Segmento: '))
if sega < segb + segc and segb < sega + segc and segc < sega + segb:
print('Os segmentos acima PODEM FORMAR um triângu... | 36 | 68 | 0.676768 | 53 | 396 | 5.056604 | 0.490566 | 0.11194 | 0.097015 | 0.164179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012121 | 0.166667 | 396 | 10 | 69 | 39.6 | 0.8 | 0 | 0 | 0.2 | 0 | 0 | 0.457071 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 2 |
094cff1135e104cc38ed7c1dc2ae3fc5641b7f5b | 5,321 | py | Python | open_publishing/__init__.py | open-publishing/open-publishing-api | 0d1646bb2460c6f35cba610a355941d2e07bfefd | [
"BSD-3-Clause"
] | null | null | null | open_publishing/__init__.py | open-publishing/open-publishing-api | 0d1646bb2460c6f35cba610a355941d2e07bfefd | [
"BSD-3-Clause"
] | null | null | null | open_publishing/__init__.py | open-publishing/open-publishing-api | 0d1646bb2460c6f35cba610a355941d2e07bfefd | [
"BSD-3-Clause"
] | null | null | null | from .context import Context as _Context
from .user import User
from .document import Document
from .order import Order
from .order_fulfillment import OrderFulfillment
from .prices import public as prices
from .catalog import public as catalog
from .taxes import public as tax
from .core.enums import DocumentStatus as ... | 32.054217 | 74 | 0.738207 | 675 | 5,321 | 5.619259 | 0.231111 | 0.092803 | 0.150804 | 0.220406 | 0.139731 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000708 | 0.203909 | 5,321 | 165 | 75 | 32.248485 | 0.894712 | 0.00451 | 0 | 0 | 0 | 0 | 0.015309 | 0.004158 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007194 | false | 0.007194 | 0.417266 | 0 | 0.690647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
095502239b92541af036182c1af9eb6e40d0190e | 133 | py | Python | EPI - Python/Chapter 5- Arrays/page_47/code.py | therealmaxkim/Playground | 29c3513464bee07efaac1e41686bf391b52d475d | [
"MIT"
] | null | null | null | EPI - Python/Chapter 5- Arrays/page_47/code.py | therealmaxkim/Playground | 29c3513464bee07efaac1e41686bf391b52d475d | [
"MIT"
] | null | null | null | EPI - Python/Chapter 5- Arrays/page_47/code.py | therealmaxkim/Playground | 29c3513464bee07efaac1e41686bf391b52d475d | [
"MIT"
] | null | null | null | '''
the number numbers are not always the same length
23
* 4
4 * 3 + 20 * 4
'''
def multiply_two_numbers(A, B):
| 11.083333 | 49 | 0.556391 | 21 | 133 | 3.428571 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.338346 | 133 | 12 | 50 | 11.083333 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
116d9139d5f83f9fbcc89073ff6134259db521b6 | 5,245 | py | Python | generators_and_CLIs/baldir_markdown_mvp_incomplete/test_baldir_markdown_lib.py | marc-bouvier/sandbox | 84993257edcfd39e88a3e28378d8dbed965576dc | [
"Unlicense"
] | null | null | null | generators_and_CLIs/baldir_markdown_mvp_incomplete/test_baldir_markdown_lib.py | marc-bouvier/sandbox | 84993257edcfd39e88a3e28378d8dbed965576dc | [
"Unlicense"
] | 8 | 2020-06-13T11:38:30.000Z | 2020-06-15T06:22:44.000Z | test_baldir_markdown_lib.py | marc-bouvier/baldir_markdown | edd386493856fc4109f4ab3fd99bd69fb9017bf9 | [
"Unlicense"
] | null | null | null | import pytest
import tempfile
import shutil
from baldir_markdown_lib import read_source_file, parse_source_listing_start, import_code_snippet, format_markdown_snippet, split_against_source_listing_tags, pre_process_markdown_file_in_place, pre_process_markdown_text, pre_process_markdown_file_to_string, verify
def test... | 34.966667 | 322 | 0.717255 | 654 | 5,245 | 5.487768 | 0.134557 | 0.061298 | 0.072444 | 0.058512 | 0.772081 | 0.752856 | 0.68292 | 0.640011 | 0.640011 | 0.628587 | 0 | 0.00578 | 0.142421 | 5,245 | 149 | 323 | 35.201342 | 0.79213 | 0 | 0 | 0.464646 | 0 | 0.070707 | 0.543565 | 0.134414 | 0 | 0 | 0 | 0 | 0.151515 | 1 | 0.121212 | false | 0 | 0.10101 | 0 | 0.222222 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
11736bcc1f4851da6758b8dc02337693096d5be6 | 1,597 | py | Python | waio/factory/models/contact.py | dotX12/waio | 6bc41df2d650f31fdb11a1a2b67c6149afa0e11a | [
"MIT"
] | 24 | 2021-11-08T13:37:05.000Z | 2022-03-24T12:49:54.000Z | waio/factory/models/contact.py | dotX12/waio | 6bc41df2d650f31fdb11a1a2b67c6149afa0e11a | [
"MIT"
] | 1 | 2022-01-19T03:11:58.000Z | 2022-01-19T03:13:30.000Z | waio/factory/models/contact.py | dotX12/waio | 6bc41df2d650f31fdb11a1a2b67c6149afa0e11a | [
"MIT"
] | 5 | 2021-11-11T04:11:12.000Z | 2022-02-15T10:41:58.000Z | from dataclasses import dataclass
from typing import List, Optional, Union
@dataclass
class PayloadSender:
phone: int
name: str
@dataclass
class BaseModel:
sender: PayloadSender
payload_id: str
@dataclass
class PayloadContactName:
first_name: str
formatted_name: str
last_name: Optional... | 20.474359 | 59 | 0.724483 | 166 | 1,597 | 6.933735 | 0.301205 | 0.103388 | 0.208514 | 0.127715 | 0.230235 | 0.154648 | 0.154648 | 0.125109 | 0.125109 | 0 | 0 | 0 | 0.187226 | 1,597 | 77 | 60 | 20.74026 | 0.886749 | 0 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.036364 | 0 | 0.8 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
11760b46f1fe55bc25871f161153fb36dff70ac5 | 922 | py | Python | transcv/swin.py | Ys-Prakash/transcv | fe72f8dac2bbdb5cffaaf36352cb039c1ca5b8a9 | [
"Apache-2.0"
] | 6 | 2021-09-19T07:47:04.000Z | 2021-11-15T17:08:28.000Z | transcv/swin.py | Ys-Prakash/transcv | fe72f8dac2bbdb5cffaaf36352cb039c1ca5b8a9 | [
"Apache-2.0"
] | null | null | null | transcv/swin.py | Ys-Prakash/transcv | fe72f8dac2bbdb5cffaaf36352cb039c1ca5b8a9 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: 01_swin.ipynb (unless otherwise specified).
__all__ = ['SwinT']
# Cell
#hide
import timm
from nbdev.showdoc import *
from fastai.vision.all import *
# Cell
class SwinT :
"""Class for setting up a Swin Transformer model. The architecture is specified by `arch`, and the
... | 32.928571 | 111 | 0.686551 | 123 | 922 | 4.99187 | 0.487805 | 0.09772 | 0.065147 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002805 | 0.226681 | 922 | 28 | 112 | 32.928571 | 0.858345 | 0.433839 | 0 | 0 | 1 | 0 | 0.010081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
11a618f11b6fac52f4355fdfd119636e79cd945a | 1,415 | py | Python | pset_pandas_ext/101problems/solutions/p65.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 5 | 2019-04-08T20:05:37.000Z | 2019-12-04T20:48:45.000Z | pset_pandas_ext/101problems/solutions/p65.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 8 | 2019-04-15T15:16:05.000Z | 2022-02-12T10:33:32.000Z | pset_pandas_ext/101problems/solutions/p65.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 2 | 2019-04-10T00:14:42.000Z | 2020-02-26T20:35:21.000Z | """
66. How to replace both the diagonals of dataframe with 0?
"""
"""
Difficulty Level: L2
"""
"""
Replace both values in both diagonals of df with 0.
"""
"""
Input
"""
"""
df = pd.DataFrame(np.random.randint(1,100, 100).reshape(10, -1))
df
# 0 1 2 3 4 5 6 7 8 9
# 0 11 46 26 44 11 62 18 7... | 27.745098 | 64 | 0.477032 | 315 | 1,415 | 2.142857 | 0.31746 | 0.008889 | 0.023704 | 0.02963 | 0.542222 | 0.542222 | 0.405926 | 0.405926 | 0.228148 | 0.183704 | 0 | 0.545226 | 0.437456 | 1,415 | 51 | 65 | 27.745098 | 0.302764 | 0.052297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
11b5aaf2858fc133d106e1faff9a6c588ffce900 | 1,530 | py | Python | node_Interface.py | robocol-rem-u/master_msgs | fac49cf34a25c16b01ab6014ac47b60c3c5c14a8 | [
"MIT"
] | null | null | null | node_Interface.py | robocol-rem-u/master_msgs | fac49cf34a25c16b01ab6014ac47b60c3c5c14a8 | [
"MIT"
] | null | null | null | node_Interface.py | robocol-rem-u/master_msgs | fac49cf34a25c16b01ab6014ac47b60c3c5c14a8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import rospy
from master_msgs.msg import traction_Orders, imu_Speed, imu_Magnetism, pots, current, rpm, arm_Orders, goal,connection
def node_Interface():
rospy.init_node('node_Interface',anonymous=True)
rospy.Subscriber('topic_Traction_Orders',traction_Orders,traction_Orders_Callback)
... | 29.423077 | 118 | 0.760784 | 201 | 1,530 | 5.427861 | 0.243781 | 0.102658 | 0.128323 | 0.153987 | 0.20165 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007605 | 0.140523 | 1,530 | 51 | 119 | 30 | 0.822053 | 0.013072 | 0 | 0.216216 | 0 | 0 | 0.124586 | 0.027833 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0.216216 | 0.054054 | 0 | 0.27027 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
11b95e0f9e7afe8543bf0c3e7be151865cf4b771 | 5,394 | py | Python | tests/serve/mock/end-to-end/opbank/test_opbank.py | dfioravanti/hmt | df79404076ec7acea0cfb12b636d58e3ffc83bc5 | [
"MIT"
] | 25 | 2020-05-14T13:25:42.000Z | 2021-11-09T10:09:27.000Z | tests/serve/mock/end-to-end/opbank/test_opbank.py | dfioravanti/hmt | df79404076ec7acea0cfb12b636d58e3ffc83bc5 | [
"MIT"
] | 19 | 2020-05-05T19:47:41.000Z | 2021-02-05T17:06:53.000Z | tests/serve/mock/end-to-end/opbank/test_opbank.py | dfioravanti/hmt | df79404076ec7acea0cfb12b636d58e3ffc83bc5 | [
"MIT"
] | 6 | 2020-05-16T10:02:48.000Z | 2021-10-04T08:03:49.000Z | import json
import pytest
from tornado.httpclient import AsyncHTTPClient, HTTPRequest
from hmt.serve.mock.log import Log
from hmt.serve.mock.scope import Scope
from hmt.serve.mock.specs import load_specs
from hmt.serve.utils.routing import HeaderRouting
@pytest.fixture
def app(mocking_app):
return mocking_app(
... | 32.493976 | 90 | 0.670931 | 613 | 5,394 | 5.781403 | 0.226754 | 0.03386 | 0.03386 | 0.045147 | 0.740971 | 0.72263 | 0.693002 | 0.666196 | 0.647009 | 0.647009 | 0 | 0.060984 | 0.197442 | 5,394 | 165 | 91 | 32.690909 | 0.757681 | 0.071932 | 0 | 0.410526 | 0 | 0 | 0.263653 | 0.106611 | 0 | 0 | 0 | 0 | 0.063158 | 1 | 0.021053 | false | 0 | 0.073684 | 0.010526 | 0.105263 | 0.042105 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
11c2627f43e4b6eeb9e8f2281dbb147804505bde | 85 | py | Python | test.py | Wuzhiqiang88/myFirstSpider | 6e964d26038e2937b0f060c1ff6d30b092394ee3 | [
"Apache-2.0"
] | 1 | 2018-09-12T07:13:53.000Z | 2018-09-12T07:13:53.000Z | test.py | Wuzhiqiang88/myFirstSpider | 6e964d26038e2937b0f060c1ff6d30b092394ee3 | [
"Apache-2.0"
] | null | null | null | test.py | Wuzhiqiang88/myFirstSpider | 6e964d26038e2937b0f060c1ff6d30b092394ee3 | [
"Apache-2.0"
] | null | null | null | i=0
s=[50]
for i in range(0,10):
print("w%dwww"%i)
s[i]=i
print(s[i]
| 7.727273 | 21 | 0.470588 | 20 | 85 | 2 | 0.55 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.294118 | 85 | 10 | 22 | 8.5 | 0.566667 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
11c29c94c567a27034de5cc0c60d69d3debbcc00 | 871 | py | Python | Python_UN_POCO_MAS_AVANZADO.py | FreyderUrbano/Python_Programas | 8a11729d1148c319d8fa145ad18038cc7d63f0d9 | [
"MIT"
] | null | null | null | Python_UN_POCO_MAS_AVANZADO.py | FreyderUrbano/Python_Programas | 8a11729d1148c319d8fa145ad18038cc7d63f0d9 | [
"MIT"
] | null | null | null | Python_UN_POCO_MAS_AVANZADO.py | FreyderUrbano/Python_Programas | 8a11729d1148c319d8fa145ad18038cc7d63f0d9 | [
"MIT"
] | null | null | null | #PYTHON UN POCO MAS AVANZADO METODO DE ABRIR EN CONSOLA
print("PYTHON MAS AVANZADO")
texto = "TEXTO DE PRUEBA"
nombre = "FREYDER"
altura = "2 metros"
year = 2021
#print(f"{texto}--{nombre}--{altura}--{str(year)}")
print(texto + " " +nombre + " "+ altura +" "+ str(year))
#entradas o peticiones por teclado
sitio = i... | 17.078431 | 56 | 0.629162 | 108 | 871 | 5.055556 | 0.5 | 0.049451 | 0.06044 | 0.071429 | 0.190476 | 0.102564 | 0.102564 | 0 | 0 | 0 | 0 | 0.017241 | 0.200918 | 871 | 50 | 57 | 17.42 | 0.767241 | 0.180253 | 0 | 0 | 0 | 0 | 0.261398 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.416667 | 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 | 1 | 0 | 2 |
11cf52ea9a3f1fafc7387cfc0418073a1858bb56 | 1,114 | py | Python | scripts/feedforwardness_algo_compare.py | neurodata/maggot_connectome | 7a1d5dcf3a01c0d60e287efeac6b50f7ccb29cdf | [
"MIT"
] | 1 | 2021-01-20T00:37:31.000Z | 2021-01-20T00:37:31.000Z | scripts/feedforwardness_algo_compare.py | neurodata/maggot_connectome | 7a1d5dcf3a01c0d60e287efeac6b50f7ccb29cdf | [
"MIT"
] | 17 | 2021-03-03T14:48:54.000Z | 2021-09-08T15:52:50.000Z | scripts/feedforwardness_algo_compare.py | neurodata/maggot_connectome | 7a1d5dcf3a01c0d60e287efeac6b50f7ccb29cdf | [
"MIT"
] | 2 | 2021-03-05T12:23:20.000Z | 2021-03-29T11:49:53.000Z | #%% [markdown]
# # Comparing approaches to feedforwardness ordering
# For evaluating feedforwardness, we have:
# - 4 networks
# - Axo-dendritic (AD)
# - Axo-axonic (AA)
# - Dendro-dendritic (DD)
# - Dendro-axonic (DA)
# - 4+ algorithms for finding an ordering
# - Signal flow (SF)
# - Spring rank (SR)
... | 29.315789 | 85 | 0.672352 | 136 | 1,114 | 5.5 | 0.625 | 0.020053 | 0.069519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004598 | 0.219031 | 1,114 | 37 | 86 | 30.108108 | 0.855172 | 0.929084 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
11dd785ec5b8ae06d2da8209269f7b856ed4f908 | 173 | py | Python | 01-logica-de-programacao-e-algoritmos/Aula 03/aula03-exemplo03.py | rafaelbarretomg/Uninter | 1f84b0103263177122663e991db3a8aeb106a959 | [
"MIT"
] | null | null | null | 01-logica-de-programacao-e-algoritmos/Aula 03/aula03-exemplo03.py | rafaelbarretomg/Uninter | 1f84b0103263177122663e991db3a8aeb106a959 | [
"MIT"
] | null | null | null | 01-logica-de-programacao-e-algoritmos/Aula 03/aula03-exemplo03.py | rafaelbarretomg/Uninter | 1f84b0103263177122663e991db3a8aeb106a959 | [
"MIT"
] | null | null | null | # par ou impar ( condicional simples)
x = int(input('Digite um valor inteiro: '))
if (x % 2 == 0):
print('O numero é par!')
if(x % 2 == 1):
print('O numero é impar') | 28.833333 | 43 | 0.583815 | 30 | 173 | 3.366667 | 0.666667 | 0.059406 | 0.079208 | 0.257426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030075 | 0.231214 | 173 | 6 | 44 | 28.833333 | 0.729323 | 0.202312 | 0 | 0 | 0 | 0 | 0.408759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
11ded52efac2b1e7adb5a0379b064cebcf41d701 | 900 | py | Python | zeta_python_sdk/oracle_utils.py | prettyirrelevant/zeta-python-sdk | 536967259c89d380b8853b1cfd0621c50143b8b9 | [
"Apache-2.0"
] | 2 | 2022-03-02T04:05:07.000Z | 2022-03-10T11:49:37.000Z | zeta_python_sdk/oracle_utils.py | prettyirrelevant/zeta-python-sdk | 536967259c89d380b8853b1cfd0621c50143b8b9 | [
"Apache-2.0"
] | null | null | null | zeta_python_sdk/oracle_utils.py | prettyirrelevant/zeta-python-sdk | 536967259c89d380b8853b1cfd0621c50143b8b9 | [
"Apache-2.0"
] | null | null | null | import math
from .exceptions import OutOfBoundsException
def ERR_BUFFER_OUT_OF_BOUNDS():
return OutOfBoundsException()
def ERR_INVALID_ARG_TYPE(name: str, expected: str, actual):
return Exception(f'The "{name}" argument must be of type {expected}. Received {actual}')
def ERR_OUT_OF_RANGE(string: str, ran... | 26.470588 | 94 | 0.684444 | 128 | 900 | 4.609375 | 0.34375 | 0.050847 | 0.067797 | 0.066102 | 0.220339 | 0.081356 | 0 | 0 | 0 | 0 | 0 | 0.00277 | 0.197778 | 900 | 33 | 95 | 27.272727 | 0.814404 | 0 | 0 | 0 | 0 | 0.05 | 0.223333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1 | 0.15 | 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 | 1 | 0 | 0 | 0 | 2 |
11e42e8d7b995de0658689f4a01d37ca6d28aa0b | 2,124 | py | Python | todo/views.py | haidoro/TODO_lesson | fa0b92eb5d6f05ee15900dcc407e1ae3451fee5b | [
"CECILL-B"
] | null | null | null | todo/views.py | haidoro/TODO_lesson | fa0b92eb5d6f05ee15900dcc407e1ae3451fee5b | [
"CECILL-B"
] | null | null | null | todo/views.py | haidoro/TODO_lesson | fa0b92eb5d6f05ee15900dcc407e1ae3451fee5b | [
"CECILL-B"
] | null | null | null | from django.shortcuts import render, redirect
from django.contrib.auth.models import User
from django.db import IntegrityError
from django.contrib.auth import authenticate, login, logout
from .models import TodoModel
from django.views.generic import ListView, DetailView, CreateView, DeleteView, UpdateView
from django.u... | 29.5 | 89 | 0.664313 | 227 | 2,124 | 6.105727 | 0.325991 | 0.04329 | 0.064935 | 0.051948 | 0.363636 | 0.300866 | 0.275613 | 0.275613 | 0.275613 | 0.275613 | 0 | 0 | 0.222693 | 2,124 | 71 | 90 | 29.915493 | 0.839491 | 0 | 0 | 0.436364 | 0 | 0 | 0.139831 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054545 | false | 0.072727 | 0.127273 | 0 | 0.672727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
11f08a8bd257b57737ab450a04da370a5b819540 | 302 | py | Python | core/shortname.py | huioo/tornadoWeb | 001efbae9815b30d8a0c0b4ba8819cc711b99dc4 | [
"Apache-2.0"
] | null | null | null | core/shortname.py | huioo/tornadoWeb | 001efbae9815b30d8a0c0b4ba8819cc711b99dc4 | [
"Apache-2.0"
] | null | null | null | core/shortname.py | huioo/tornadoWeb | 001efbae9815b30d8a0c0b4ba8819cc711b99dc4 | [
"Apache-2.0"
] | null | null | null | import world
import api.captcha.captcha_phone
from api.token.jwt_token import JWTToken
"""
Django 的 shortcuts.py
"""
world_instance = world.World.instance()
redis_server = world_instance.redis
captcha_manager = api.captcha.captcha_phone.CaptchaPhone(redis_server)
jwt_cli = JWTToken()
import django.db | 25.166667 | 70 | 0.817881 | 43 | 302 | 5.534884 | 0.465116 | 0.163866 | 0.142857 | 0.184874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089404 | 302 | 12 | 71 | 25.166667 | 0.865455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
11fe5c633fd36a2c77c71b22b430bb0c40ce5ec0 | 504 | py | Python | mini_book/_build/jupyter_execute/docs/enrollment.py | rebeccajohnson88/qss20 | f936e77660e551bb10a82abb96a36369ccbf3d18 | [
"CC0-1.0"
] | 1 | 2021-04-01T18:42:36.000Z | 2021-04-01T18:42:36.000Z | mini_book/_build/jupyter_execute/docs/enrollment.py | rebeccajohnson88/qss20 | f936e77660e551bb10a82abb96a36369ccbf3d18 | [
"CC0-1.0"
] | 1 | 2021-02-14T22:36:59.000Z | 2021-02-24T23:33:24.000Z | mini_book/_build/jupyter_execute/docs/enrollment.py | rebeccajohnson88/qss20 | f936e77660e551bb10a82abb96a36369ccbf3d18 | [
"CC0-1.0"
] | null | null | null | (enrollment)=
# Enrollment and Waitlist
For Dartmouth students, you can track the enrollment status using the ORC timetable.
The course is capped at 20 students to facilitate small group collaboration for the final data science project. Please fill out this Google form (while logged in via your Dartmouth email) if y... | 72 | 376 | 0.821429 | 73 | 504 | 5.657534 | 0.794521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020548 | 0.130952 | 504 | 7 | 376 | 72 | 0.922374 | 0.045635 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f50709f23a7db10987ca6be48b2058d6a849444a | 527 | py | Python | lumicks/pylake/tests/test_import_time.py | lumicks/pylake | b5875d156d6416793a371198f3f2590fca2be4cd | [
"Apache-2.0"
] | 8 | 2019-02-18T07:56:39.000Z | 2022-03-19T01:14:48.000Z | lumicks/pylake/tests/test_import_time.py | lumicks/pylake | b5875d156d6416793a371198f3f2590fca2be4cd | [
"Apache-2.0"
] | 42 | 2018-11-30T14:40:35.000Z | 2022-03-29T11:43:45.000Z | lumicks/pylake/tests/test_import_time.py | lumicks/pylake | b5875d156d6416793a371198f3f2590fca2be4cd | [
"Apache-2.0"
] | 4 | 2019-01-09T13:45:53.000Z | 2021-07-06T14:06:52.000Z | from textwrap import dedent
import numpy as np
import subprocess
import sys
import pytest
@pytest.mark.slow
def test_disabling_capturing(report_line):
repeats = 3
code = dedent("""\
import time
tic = time.time()
import lumicks.pylake
print(time.time() - tic)
""")
... | 23.954545 | 105 | 0.643264 | 71 | 527 | 4.704225 | 0.605634 | 0.071856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007229 | 0.212524 | 527 | 21 | 106 | 25.095238 | 0.79759 | 0 | 0 | 0 | 0 | 0.0625 | 0.421252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.5 | 0 | 0.5625 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
eea08039ae5c75a5d6c24f6bfa31fee73a4d653a | 1,962 | py | Python | 5_arborescences/code/noeud_bin_p1.py | efloti/cours-nsi-terminale | 091df5518c25b50ef523a803ac747c63be76f670 | [
"CC0-1.0"
] | null | null | null | 5_arborescences/code/noeud_bin_p1.py | efloti/cours-nsi-terminale | 091df5518c25b50ef523a803ac747c63be76f670 | [
"CC0-1.0"
] | null | null | null | 5_arborescences/code/noeud_bin_p1.py | efloti/cours-nsi-terminale | 091df5518c25b50ef523a803ac747c63be76f670 | [
"CC0-1.0"
] | null | null | null | class NoeudBin:
def __init__(self, valeur, gauche=None, droit=None):
self.valeur = valeur
# self.parent = None
self.gauche = gauche
self.droit = droit
def est_double(self):
"""Renvoie True si le noeud a deux enfants exactement, False autrement."""
return self.gau... | 38.470588 | 93 | 0.61315 | 289 | 1,962 | 4.114187 | 0.238754 | 0.092515 | 0.054668 | 0.063078 | 0.461733 | 0.357443 | 0.218671 | 0.174937 | 0.131203 | 0.131203 | 0 | 0.00874 | 0.300204 | 1,962 | 50 | 94 | 39.24 | 0.857247 | 0.347095 | 0 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258065 | false | 0 | 0 | 0 | 0.612903 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
eea39007c18df9bb3a13dd73ee8b29fd1990d82d | 2,025 | py | Python | 100dayspython/day004/main.py | mrqssjeff/project-python | b3b08f2acfe825640a5ee92cf9d6fa45ab580384 | [
"MIT"
] | null | null | null | 100dayspython/day004/main.py | mrqssjeff/project-python | b3b08f2acfe825640a5ee92cf9d6fa45ab580384 | [
"MIT"
] | null | null | null | 100dayspython/day004/main.py | mrqssjeff/project-python | b3b08f2acfe825640a5ee92cf9d6fa45ab580384 | [
"MIT"
] | null | null | null | import random
print("Rock, Paper, Scissors!")
player = int(input("What do you choose? Type 0 for Rock, 1 for paper, 2 for Scissors: "))
computer = random.randint(0, 2)
game = ["""
_______
---' ____)
(_____)
(_____)
(____)
---.__(___)
""", """
_______
---' ____)____
______)
... | 28.125 | 101 | 0.382222 | 151 | 2,025 | 3.801325 | 0.264901 | 0.172474 | 0.047038 | 0.120209 | 0.449477 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034799 | 0.460741 | 2,025 | 71 | 102 | 28.521127 | 0.490842 | 0 | 0 | 0.411765 | 0 | 0 | 0.62321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014706 | 0 | 0.014706 | 0.220588 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
eeb941243abfa405873eabb4951a2447d2772339 | 173 | py | Python | bareon_fuel_extension/tests.py | gitfred/bareon-fuel-extension | 0074f187a6244e786b37e551009fa2eadcae1d3a | [
"Apache-2.0"
] | null | null | null | bareon_fuel_extension/tests.py | gitfred/bareon-fuel-extension | 0074f187a6244e786b37e551009fa2eadcae1d3a | [
"Apache-2.0"
] | null | null | null | bareon_fuel_extension/tests.py | gitfred/bareon-fuel-extension | 0074f187a6244e786b37e551009fa2eadcae1d3a | [
"Apache-2.0"
] | null | null | null | from nailgun.extensions import BaseExtension
class NoElo(BaseExtension):
name = 'noelo'
description = 'no elo'
version = '1.0.0'
def test_ext():
NoElo()
| 14.416667 | 44 | 0.65896 | 21 | 173 | 5.380952 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022388 | 0.225434 | 173 | 11 | 45 | 15.727273 | 0.820896 | 0 | 0 | 0 | 0 | 0 | 0.092486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.857143 | 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 | 1 | 0 | 0 | 2 |
eec6e813387d5c509fe53af51947031d9b165546 | 2,218 | py | Python | test-runner/measurement.py | brycewang-microsoft/iot-sdks-e2e-fx | 211c9c2615a82076bda02a27152d67366755edbf | [
"MIT"
] | 12 | 2019-02-02T00:15:13.000Z | 2022-02-08T18:20:08.000Z | test-runner/measurement.py | brycewang-microsoft/iot-sdks-e2e-fx | 211c9c2615a82076bda02a27152d67366755edbf | [
"MIT"
] | 36 | 2019-02-14T22:53:17.000Z | 2022-03-22T22:41:38.000Z | test-runner/measurement.py | brycewang-microsoft/iot-sdks-e2e-fx | 211c9c2615a82076bda02a27152d67366755edbf | [
"MIT"
] | 12 | 2019-02-19T13:28:25.000Z | 2022-02-08T18:20:55.000Z | # Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for
# full license information.
import datetime
import threading
import contextlib
class MeasureRunningCodeBlock(contextlib.AbstractContextManager):
def __init__(self, name):
self.count ... | 22.632653 | 82 | 0.596934 | 265 | 2,218 | 4.781132 | 0.245283 | 0.106551 | 0.051302 | 0.033149 | 0.276243 | 0.178374 | 0.178374 | 0.07577 | 0.07577 | 0.07577 | 0 | 0.007157 | 0.307033 | 2,218 | 97 | 83 | 22.865979 | 0.817176 | 0.064923 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.271429 | false | 0 | 0.042857 | 0.028571 | 0.514286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
eecf75568a4959cab7877ed219454c84c98b7e64 | 403 | py | Python | mindhome_alpha/erpnext/patches/v11_0/add_expense_claim_default_account.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | 1 | 2021-04-29T14:55:29.000Z | 2021-04-29T14:55:29.000Z | mindhome_alpha/erpnext/patches/v11_0/add_expense_claim_default_account.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | null | null | null | mindhome_alpha/erpnext/patches/v11_0/add_expense_claim_default_account.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | 1 | 2021-04-29T14:39:01.000Z | 2021-04-29T14:39:01.000Z | from __future__ import unicode_literals
import frappe
def execute():
frappe.reload_doc("setup", "doctype", "company")
companies = frappe.get_all("Company", fields=["name", "default_payable_account"])
for company in companies:
if company.default_payable_account is not None:
frappe.db.set_value("Company", comp... | 36.636364 | 121 | 0.791563 | 53 | 403 | 5.679245 | 0.603774 | 0.186047 | 0.209302 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 403 | 11 | 121 | 36.636364 | 0.826923 | 0 | 0 | 0 | 0 | 0 | 0.240099 | 0.148515 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
eed71f6a7395828dd1b7ba56051666be99d7beff | 774 | py | Python | src/cpfromddd.py | theonewolf/TripleD | 875c903a302d5502ac65224c16fa65da1246483e | [
"MIT"
] | 13 | 2015-04-04T14:41:38.000Z | 2021-12-28T12:24:29.000Z | src/cpfromddd.py | theonewolf/TripleD | 875c903a302d5502ac65224c16fa65da1246483e | [
"MIT"
] | null | null | null | src/cpfromddd.py | theonewolf/TripleD | 875c903a302d5502ac65224c16fa65da1246483e | [
"MIT"
] | 8 | 2015-01-26T17:15:27.000Z | 2019-09-14T03:22:46.000Z | #!/usr/bin/env python
import libtripled, logging, sys, os
# CONSTANTS
log = logging.getLogger('tripled.cpfromddd')
def next_chunk(tripled, path):
chunks = tripled.read_file(path)
for chunk in chunks:
log.debug('reading from worker[%s] path[%s]' % (chunk[0], chunk[1]))
yield tripled.read_block(c... | 28.666667 | 75 | 0.630491 | 112 | 774 | 4.25 | 0.535714 | 0.088235 | 0.067227 | 0.05042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018003 | 0.210594 | 774 | 26 | 76 | 29.769231 | 0.761047 | 0.03876 | 0 | 0 | 0 | 0 | 0.128032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.055556 | 0.055556 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
eee41fee815cbfd9d791866ac61cc5f679e6a33c | 630 | py | Python | acmicpc/2798/2798.py | love-adela/algorithm | 4ccd02173c96f8369962f1fd4e5166a221690fa2 | [
"MIT"
] | 3 | 2019-03-09T05:19:23.000Z | 2019-04-06T09:26:36.000Z | acmicpc/2798/2798.py | love-adela/algorithm | 4ccd02173c96f8369962f1fd4e5166a221690fa2 | [
"MIT"
] | 1 | 2020-02-23T10:38:04.000Z | 2020-02-23T10:38:04.000Z | acmicpc/2798/2798.py | love-adela/algorithm | 4ccd02173c96f8369962f1fd4e5166a221690fa2 | [
"MIT"
] | 1 | 2019-05-22T13:47:53.000Z | 2019-05-22T13:47:53.000Z | params = [int(x) for x in input().split()]
point = params[-1]
card_numbers = sorted([int(i) for i in input().split()])
max_sum = 0
for i in range(len(card_numbers)):
for j in range(i+1, len(card_numbers)):
for k in range(j+1, len(card_numbers)):
if card_numbers[i] + card_numbers[j] + card_numbe... | 39.375 | 96 | 0.603175 | 100 | 630 | 3.6 | 0.24 | 0.488889 | 0.133333 | 0.177778 | 0.452778 | 0.452778 | 0.452778 | 0.452778 | 0.452778 | 0.352778 | 0 | 0.008475 | 0.250794 | 630 | 15 | 97 | 42 | 0.754237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
eee70444919e0996101bd470d17bbcdf1da08d3b | 284 | py | Python | python/multi-2.6/simple.py | trammell/test | ccac5e1dac947032e64d813e53cb961417a58d05 | [
"Artistic-2.0"
] | null | null | null | python/multi-2.6/simple.py | trammell/test | ccac5e1dac947032e64d813e53cb961417a58d05 | [
"Artistic-2.0"
] | null | null | null | python/multi-2.6/simple.py | trammell/test | ccac5e1dac947032e64d813e53cb961417a58d05 | [
"Artistic-2.0"
] | null | null | null | #!/usr/bin/env python2.4
"""
"""
class MyClass(object):
def __init__(self, a, b):
print 'MyClass.__init__', a, b
#super(MyClass, self).__init__(a, b) # works in 2.4
super(MyClass, self).__init__() # works in 2.6
obj = MyClass(6, 7)
| 18.933333 | 66 | 0.542254 | 40 | 284 | 3.45 | 0.525 | 0.043478 | 0.086957 | 0.289855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039801 | 0.292254 | 284 | 14 | 67 | 20.285714 | 0.646766 | 0.323944 | 0 | 0 | 0 | 0 | 0.088398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
eeee6f4fc03992c011356b8190353e8fc67ab368 | 809 | py | Python | parser/team07/Proyecto/clasesAbstractas/expresion.py | susanliss/tytus | a613a2352cf4a1d0e90ce27bb346ab60ed8039cc | [
"MIT"
] | null | null | null | parser/team07/Proyecto/clasesAbstractas/expresion.py | susanliss/tytus | a613a2352cf4a1d0e90ce27bb346ab60ed8039cc | [
"MIT"
] | null | null | null | parser/team07/Proyecto/clasesAbstractas/expresion.py | susanliss/tytus | a613a2352cf4a1d0e90ce27bb346ab60ed8039cc | [
"MIT"
] | null | null | null | from .instruccionAbstracta import InstruccionAbstracta
class Expresion(InstruccionAbstracta):
def __init__(self):
pass
def valorPrimitivo(self,valor,tipo):
self.valor = valor
self.tipoOperacion = tipo
self.opIzquierdo = None
self.opDerecho = None
def ope... | 23.794118 | 67 | 0.651422 | 69 | 809 | 7.57971 | 0.304348 | 0.143403 | 0.06501 | 0.076482 | 0.363289 | 0.363289 | 0.363289 | 0.363289 | 0.363289 | 0.363289 | 0 | 0 | 0.284302 | 809 | 33 | 68 | 24.515152 | 0.903282 | 0 | 0 | 0.47619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0.095238 | 0.047619 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
e1003c20209106cf6d3e01c2eabbb6012b595686 | 1,524 | py | Python | ikats/client/opentsdb_stub.py | IKATS/ikats_api | 86f965e9ea83fde1fb64f187b294d383d267f77f | [
"Apache-2.0"
] | null | null | null | ikats/client/opentsdb_stub.py | IKATS/ikats_api | 86f965e9ea83fde1fb64f187b294d383d267f77f | [
"Apache-2.0"
] | null | null | null | ikats/client/opentsdb_stub.py | IKATS/ikats_api | 86f965e9ea83fde1fb64f187b294d383d267f77f | [
"Apache-2.0"
] | 1 | 2020-01-27T14:44:27.000Z | 2020-01-27T14:44:27.000Z | # -*- coding: utf-8 -*-
"""
Copyright 2019 CS Systèmes d'Information
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law... | 27.709091 | 81 | 0.694226 | 214 | 1,524 | 4.841122 | 0.546729 | 0.057915 | 0.043436 | 0.030888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01319 | 0.204068 | 1,524 | 54 | 82 | 28.222222 | 0.84089 | 0.447507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.105263 | 0.157895 | 0.842105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
e1071b566b934eed8eaf574357b76325acbfe989 | 174 | py | Python | python/show_nmc.py | Typas/Data-Assimilation-Project | 4b880c7faadf778d891ffab77ebfbde1db5c5baf | [
"MIT"
] | null | null | null | python/show_nmc.py | Typas/Data-Assimilation-Project | 4b880c7faadf778d891ffab77ebfbde1db5c5baf | [
"MIT"
] | null | null | null | python/show_nmc.py | Typas/Data-Assimilation-Project | 4b880c7faadf778d891ffab77ebfbde1db5c5baf | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import numpy as np
B = np.reshape(np.genfromtxt("data/b_nmc.txt"), (40, 40))
import matplotlib.pyplot as plt
plt.contourf(B)
plt.colorbar()
plt.show()
| 21.75 | 57 | 0.724138 | 31 | 174 | 4.032258 | 0.677419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032051 | 0.103448 | 174 | 7 | 58 | 24.857143 | 0.769231 | 0.12069 | 0 | 0 | 0 | 0 | 0.092105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
e10776844de6cd61363f91f2091e32c884366312 | 602 | py | Python | hello.py | QuocTrungTran/cgi-lab | fa79815b0e0ebd3d925e4d30043f2536ef2d9b4f | [
"Apache-2.0"
] | null | null | null | hello.py | QuocTrungTran/cgi-lab | fa79815b0e0ebd3d925e4d30043f2536ef2d9b4f | [
"Apache-2.0"
] | null | null | null | hello.py | QuocTrungTran/cgi-lab | fa79815b0e0ebd3d925e4d30043f2536ef2d9b4f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import os, json
print("Content-type:text/html\r\n\r\n")
print
print("<title>Test CGI</title>")
print("<p>Hello World!</>")
# #Q1
# print(os.environ)
# json_object = json.dumps(dict(os.environ), indent=4)
# #print(json_object)
#Q2
# for param in os.environ.keys():
# if (param=="QUERY_STRING"... | 26.173913 | 67 | 0.593023 | 94 | 602 | 3.744681 | 0.489362 | 0.178977 | 0.119318 | 0.068182 | 0.352273 | 0.352273 | 0.352273 | 0.352273 | 0.181818 | 0.181818 | 0 | 0.017647 | 0.152824 | 602 | 23 | 68 | 26.173913 | 0.672549 | 0.737542 | 0 | 0 | 0 | 0 | 0.503546 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0.8 | 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 | 1 | 0 | 2 |
e12bf8233ff1f13a2dd46e4e371f37801c0e563f | 2,186 | py | Python | fedjax/legacy/core/federated_algorithm.py | alshedivat/fedjax | ff46ba9955f167160353d7be72f6f5e1febee32c | [
"Apache-2.0"
] | null | null | null | fedjax/legacy/core/federated_algorithm.py | alshedivat/fedjax | ff46ba9955f167160353d7be72f6f5e1febee32c | [
"Apache-2.0"
] | null | null | null | fedjax/legacy/core/federated_algorithm.py | alshedivat/fedjax | ff46ba9955f167160353d7be72f6f5e1febee32c | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 34.15625 | 80 | 0.747027 | 306 | 2,186 | 5.284314 | 0.486928 | 0.037106 | 0.016079 | 0.01979 | 0.032158 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004413 | 0.170631 | 2,186 | 63 | 81 | 34.698413 | 0.887479 | 0.723239 | 0 | 0.285714 | 0 | 0 | 0.001898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
012aa2038cdc99acbfdd28f90d56ceb7c6e6b261 | 1,572 | py | Python | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/WGL/ARB/pbuffer.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/WGL/ARB/pbuffer.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/WGL/ARB/pbuffer.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.WGL import _types as _cs
# End users want this...
from OpenGL.raw.WGL._types import *
from OpenGL.raw.WGL import _errors
from OpenGL.constant import Constant as _C
imp... | 42.486486 | 111 | 0.811705 | 250 | 1,572 | 4.632 | 0.3 | 0.027634 | 0.048359 | 0.03886 | 0.386874 | 0.135579 | 0.100173 | 0.100173 | 0.048359 | 0 | 0 | 0.02557 | 0.079517 | 1,572 | 36 | 112 | 43.666667 | 0.774706 | 0.063613 | 0 | 0.15625 | 1 | 0 | 0.151155 | 0.116165 | 0 | 0 | 0.03359 | 0 | 0 | 1 | 0.1875 | false | 0.15625 | 0.1875 | 0.03125 | 0.40625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
013309a59e2c92190292c61529ffae1f691b50cb | 243 | py | Python | Desafio49.py | VictorCastao/Curso-em-Video-Python | aeee8baaa73c04b839a27ae37ba24ecc0b863075 | [
"MIT"
] | null | null | null | Desafio49.py | VictorCastao/Curso-em-Video-Python | aeee8baaa73c04b839a27ae37ba24ecc0b863075 | [
"MIT"
] | null | null | null | Desafio49.py | VictorCastao/Curso-em-Video-Python | aeee8baaa73c04b839a27ae37ba24ecc0b863075 | [
"MIT"
] | null | null | null | print('=' * 12 + 'Desafio 49' + '=' * 12)
numero = int(input('Digite o número para a tabuada: '))
print('=' * 13)
print(f'Tabuada do {numero}')
print('=' * 13)
for i in range(1,11):
print(f'{numero} x {i:2} = {numero * i}')
print('=' * 13) | 30.375 | 55 | 0.555556 | 39 | 243 | 3.461538 | 0.615385 | 0.155556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080808 | 0.185185 | 243 | 8 | 56 | 30.375 | 0.60101 | 0 | 0 | 0.375 | 0 | 0 | 0.397541 | 0 | 0.125 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
013dad2ac33defe55487634726ea099424ed06bd | 538 | py | Python | yandex/yandex2016_b_b.py | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | 1 | 2018-11-12T15:18:55.000Z | 2018-11-12T15:18:55.000Z | yandex/yandex2016_b_b.py | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | null | null | null | yandex/yandex2016_b_b.py | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | null | null | null | def count_bit_sum(N):
bit = [0] * max_bitlen
if N <= 0:
return bit[:]
for i in range(N.bit_length() - 1):
bit[i] = 1 << (N.bit_length() - 2)
bit[N.bit_length()-1] = N - (1 << (N.bit_length() - 1)) + 1
return [bit[i] + b for i, b in enumerate(count_bit_sum(N - (1 << (N.bit_length() - ... | 38.428571 | 93 | 0.539033 | 104 | 538 | 2.634615 | 0.288462 | 0.087591 | 0.182482 | 0.160584 | 0.094891 | 0.094891 | 0 | 0 | 0 | 0 | 0 | 0.043689 | 0.234201 | 538 | 13 | 94 | 41.384615 | 0.621359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.25 | 0.083333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0146ed0b2f2154ab28c5b238a6e0624fb4e5747e | 10,347 | py | Python | stubs.min/System/Windows/__init___parts/Vector.py | denfromufa/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | 1 | 2017-07-07T11:15:45.000Z | 2017-07-07T11:15:45.000Z | stubs.min/System/Windows/__init___parts/Vector.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | stubs.min/System/Windows/__init___parts/Vector.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | class Vector(object,IFormattable):
"""
Represents a displacement in 2-D space.
Vector(x: float,y: float)
"""
@staticmethod
def Add(*__args):
"""
Add(vector: Vector,point: Point) -> Point
Translates the specified point by the specified vector and returns the
resulting point.
... | 30.612426 | 215 | 0.667053 | 1,327 | 10,347 | 5.069329 | 0.140919 | 0.040137 | 0.073435 | 0.03865 | 0.606065 | 0.550022 | 0.493385 | 0.457708 | 0.450424 | 0.437045 | 0 | 0.010814 | 0.24036 | 10,347 | 337 | 216 | 30.703264 | 0.845038 | 0.714313 | 0 | 0.534247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.39726 | false | 0.39726 | 0 | 0 | 0.465753 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
0162a9072742aec24078e0ec6e07600eec4b5259 | 193 | py | Python | get_topics.py | FoamyGuy/CircuitPython_Repo_Topics | 9a606e9549bcd663d6290c0648466022c1b964db | [
"MIT"
] | null | null | null | get_topics.py | FoamyGuy/CircuitPython_Repo_Topics | 9a606e9549bcd663d6290c0648466022c1b964db | [
"MIT"
] | null | null | null | get_topics.py | FoamyGuy/CircuitPython_Repo_Topics | 9a606e9549bcd663d6290c0648466022c1b964db | [
"MIT"
] | null | null | null | from github import Github
from my_token import token
g = Github(token)
repo = g.get_repo("adafruit/Adafruit_CircuitPython_Display_Text")
repo_topics = repo.get_topics()
print(repo_topics)
| 16.083333 | 65 | 0.797927 | 29 | 193 | 5.034483 | 0.482759 | 0.136986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119171 | 193 | 11 | 66 | 17.545455 | 0.858824 | 0 | 0 | 0 | 0 | 0 | 0.227979 | 0.227979 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
016cf65bfe0fb46c06e740cb0bad0c906040020a | 421 | py | Python | test/test.py | backav/python-heartbeat-maker | f6b2f914ec2dd6e104f8ce746fdc422f97f3c8cf | [
"MIT"
] | null | null | null | test/test.py | backav/python-heartbeat-maker | f6b2f914ec2dd6e104f8ce746fdc422f97f3c8cf | [
"MIT"
] | null | null | null | test/test.py | backav/python-heartbeat-maker | f6b2f914ec2dd6e104f8ce746fdc422f97f3c8cf | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from redis import StrictRedis
from HeartbeatMaker import HeartbeatMaker
import arrow
def test(it):
print('%s:%s:心跳' % (arrow.now(), it))
maker = HeartbeatMaker('redis://localhost:6379/0', 'test-beat', test)
# maker.clean()
# maker.beat_it('bac', 6,'bac-par')
# mak... | 19.136364 | 69 | 0.657957 | 63 | 421 | 4.333333 | 0.555556 | 0.098901 | 0.120879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024457 | 0.125891 | 421 | 21 | 70 | 20.047619 | 0.717391 | 0.375297 | 0 | 0 | 0 | 0 | 0.1875 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.571429 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
017c053656950468180fe8ad9c2d0be0139dd386 | 1,099 | py | Python | qark/test/test_plugins/test_task_affinity.py | The-Repo-Depot/qark | 8f7cd41a95b4980d544ff16fa9b3896cdf3a392d | [
"Apache-2.0"
] | 1 | 2020-02-14T02:46:31.000Z | 2020-02-14T02:46:31.000Z | qark/test/test_plugins/test_task_affinity.py | The-Repo-Depot/qark | 8f7cd41a95b4980d544ff16fa9b3896cdf3a392d | [
"Apache-2.0"
] | null | null | null | qark/test/test_plugins/test_task_affinity.py | The-Repo-Depot/qark | 8f7cd41a95b4980d544ff16fa9b3896cdf3a392d | [
"Apache-2.0"
] | null | null | null | from plugins import PluginUtil
from plugins.task_affinity import TaskAffinityPlugin
plugin = TaskAffinityPlugin()
def test_regex():
text ='intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);'
assert PluginUtil.contains(plugin.NEW_TASK, text)
def test_regex1():
text = 'intent.setFlags(Intent.FLAGACTIVITYNEWTA... | 28.921053 | 65 | 0.754322 | 133 | 1,099 | 5.93985 | 0.233083 | 0.053165 | 0.136709 | 0.182278 | 0.620253 | 0.620253 | 0.620253 | 0.620253 | 0.382278 | 0.129114 | 0 | 0.010571 | 0.139217 | 1,099 | 37 | 66 | 29.702703 | 0.824524 | 0 | 0 | 0.285714 | 0 | 0 | 0.272066 | 0.264786 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.214286 | false | 0 | 0.071429 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6d70bb0cad490e48129e211fe47c97af4f46b256 | 693 | py | Python | django/user/models.py | andreyvpng/askme | 65139c347a6b80f0a660ca24d6dd864e4531903a | [
"Apache-2.0"
] | 2 | 2018-10-29T09:37:47.000Z | 2019-11-28T14:11:12.000Z | django/user/models.py | andreyvpng/askme | 65139c347a6b80f0a660ca24d6dd864e4531903a | [
"Apache-2.0"
] | null | null | null | django/user/models.py | andreyvpng/askme | 65139c347a6b80f0a660ca24d6dd864e4531903a | [
"Apache-2.0"
] | 2 | 2018-09-18T14:09:46.000Z | 2019-11-28T14:11:14.000Z | from django.contrib.auth.models import AbstractUser
from django.db import models
from django.urls import reverse
class User(AbstractUser):
location = models.CharField(max_length=100, null=True)
NOT_CHOSEN = 'N'
MALE = 'M'
FEMALE = 'F'
GENDERS = (
(NOT_CHOSEN, 'Not Chosen'),
(MALE,... | 23.1 | 58 | 0.613276 | 82 | 693 | 5.073171 | 0.54878 | 0.086538 | 0.129808 | 0.173077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01378 | 0.266955 | 693 | 29 | 59 | 23.896552 | 0.805118 | 0 | 0 | 0 | 0 | 0 | 0.053391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.125 | 0.041667 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6d810ebbec71bcab0af3dd833414d6e1bddc9b62 | 2,160 | py | Python | iaga/utils.py | bbengfort/solar-tempest | c21b5bf2716f752cb823bac2f01b6531f248dc66 | [
"MIT"
] | 1 | 2018-08-07T21:25:48.000Z | 2018-08-07T21:25:48.000Z | iaga/utils.py | bbengfort/solar-tempest | c21b5bf2716f752cb823bac2f01b6531f248dc66 | [
"MIT"
] | null | null | null | iaga/utils.py | bbengfort/solar-tempest | c21b5bf2716f752cb823bac2f01b6531f248dc66 | [
"MIT"
] | 1 | 2019-06-23T14:22:04.000Z | 2019-06-23T14:22:04.000Z | # iaga.utils
# Utility functions and helpers
#
# Author: Benjamin Bengfort <benjamin@bengfort.com>
# Created: Wed Aug 08 12:00:44 2018 -0400
#
# ID: utils.py [] benjamin@bengfort.com $
"""
Utility functions and helpers
"""
##########################################################################
## Imports
########... | 26.341463 | 92 | 0.498611 | 220 | 2,160 | 4.745455 | 0.5 | 0.030651 | 0.063218 | 0.049808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018486 | 0.198611 | 2,160 | 81 | 93 | 26.666667 | 0.584633 | 0.362963 | 0 | 0 | 0 | 0 | 0.038554 | 0.033735 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0 | 0.08 | 0.04 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6d976cc81d6b3b0e0fa28444c6bbd2374d9c01bb | 169 | py | Python | mkdocs_markmap/__meta__.py | neatc0der/mkdocs-markmap | dff5d6ace8813ef433b54d34e4f7127d04792b89 | [
"MIT"
] | 14 | 2021-01-25T19:46:25.000Z | 2022-02-12T03:35:51.000Z | mkdocs_markmap/__meta__.py | neatc0der/mkdocs-markmap | dff5d6ace8813ef433b54d34e4f7127d04792b89 | [
"MIT"
] | 14 | 2021-01-24T22:01:52.000Z | 2022-02-16T00:56:33.000Z | mkdocs_markmap/__meta__.py | neatc0der/mkdocs-markmap | dff5d6ace8813ef433b54d34e4f7127d04792b89 | [
"MIT"
] | 1 | 2021-11-30T14:39:10.000Z | 2021-11-30T14:39:10.000Z | PACKAGE_NAME = 'mkdocs_markmap'
PROJECT_NAME = PACKAGE_NAME.replace('_', '-')
PROJECT_VERSION = '2.1.3'
OWNER = 'neatc0der'
REPOSITORY_NAME = f'{OWNER}/{PROJECT_NAME}'
| 24.142857 | 45 | 0.727811 | 22 | 169 | 5.227273 | 0.636364 | 0.191304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0.100592 | 169 | 6 | 46 | 28.166667 | 0.730263 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 0.130178 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6da20244b70564cb32df8f9c1bb63836cc6e87c9 | 345 | py | Python | src/game/items.py | pikulet/sandfox | ad1bd15a6d7e6d40799f21ab9b6b5a3ce6590825 | [
"MIT"
] | null | null | null | src/game/items.py | pikulet/sandfox | ad1bd15a6d7e6d40799f21ab9b6b5a3ce6590825 | [
"MIT"
] | null | null | null | src/game/items.py | pikulet/sandfox | ad1bd15a6d7e6d40799f21ab9b6b5a3ce6590825 | [
"MIT"
] | null | null | null | from typing import Callable
class Item(Action):
"""
Items are Actions that can be transferred to another Player
"""
def __init__(self, name, function: Callable[[Player], None]):
super().__init__(name, function)
class Knife(Item):
def __init__(self):
super().__init__("Knife", lam... | 23 | 65 | 0.657971 | 42 | 345 | 5.02381 | 0.642857 | 0.066351 | 0.104265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214493 | 345 | 15 | 66 | 23 | 0.778598 | 0.171014 | 0 | 0 | 0 | 0 | 0.01845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6dabb24069dd7d2e7f87b22364bf8f6f48e24574 | 964 | py | Python | chapter17/yunqiCrawl/yunqiCrawl/items.py | NetworkRanger/python-spider-project | f501e331a59608d9a321a0d7254fcbcf81b50ec2 | [
"MIT"
] | 1 | 2019-02-08T03:14:17.000Z | 2019-02-08T03:14:17.000Z | chapter17/yunqiCrawl/yunqiCrawl/items.py | NetworkRanger/python-spider-project | f501e331a59608d9a321a0d7254fcbcf81b50ec2 | [
"MIT"
] | null | null | null | chapter17/yunqiCrawl/yunqiCrawl/items.py | NetworkRanger/python-spider-project | f501e331a59608d9a321a0d7254fcbcf81b50ec2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class YunqiBookListItem(scrapy.Item):
novelId = scrapy.Field()
novelName = scrapy.Field()
novelLink = scrapy.Field()
novelAuthor = scra... | 28.352941 | 52 | 0.695021 | 96 | 964 | 6.979167 | 0.5 | 0.344776 | 0.050746 | 0.068657 | 0.083582 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001272 | 0.184647 | 964 | 34 | 53 | 28.352941 | 0.851145 | 0.145228 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6dae65a4786c8a90f1445e3fa12402bbb4864e31 | 614 | py | Python | Codefights/arcade/python-arcade/level-3/23.Two-Teams/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | 7 | 2017-09-20T16:40:39.000Z | 2021-08-31T18:15:08.000Z | Codefights/arcade/python-arcade/level-3/23.Two-Teams/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | Codefights/arcade/python-arcade/level-3/23.Two-Teams/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | # Python3
from solution1 import twoTeams as f
qa = [
([1, 11, 13, 6, 14],
11),
([3, 4],
-1),
([16, 14, 79, 8, 71, 72, 71, 10, 80, 76, 83, 70, 57, 29, 31],
209),
([23, 72, 54, 4, 88, 91, 8, 44],
-38),
([23, 74, 57, 33, 61, 99, 19, 12, 19, 38, 77, 70, 20],
-50)
]
for *q, a ... | 20.466667 | 65 | 0.415309 | 96 | 614 | 2.65625 | 0.645833 | 0.086275 | 0.109804 | 0.14902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241026 | 0.364821 | 614 | 29 | 66 | 21.172414 | 0.412821 | 0.011401 | 0 | 0.08 | 0 | 0 | 0.105785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 0.28 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6db079b8869b4ec33596b58ada4916db98ed1a2a | 759 | py | Python | data_structures/stacks/implementation.py | karim7262/algorithms-and-datastructures-python | c6c4d1166d07eed549a5f97806222c7a20312d0f | [
"MIT"
] | 1 | 2022-01-07T18:04:26.000Z | 2022-01-07T18:04:26.000Z | data_structures/stacks/implementation.py | karim7262/algorithms-and-datastructures-python | c6c4d1166d07eed549a5f97806222c7a20312d0f | [
"MIT"
] | null | null | null | data_structures/stacks/implementation.py | karim7262/algorithms-and-datastructures-python | c6c4d1166d07eed549a5f97806222c7a20312d0f | [
"MIT"
] | null | null | null | from typing import Any
class Stack:
def __init__(self) -> None:
self.stack = []
def stack_size(self) -> int:
return len(self.stack)
def is_empty(self) -> bool:
return self.stack == []
# O(1) running time
def push(self, data: Any) -> None:
self.stack.append(data)
... | 21.685714 | 59 | 0.59025 | 109 | 759 | 4.045872 | 0.477064 | 0.163265 | 0.061224 | 0.088435 | 0.126984 | 0.090703 | 0 | 0 | 0 | 0 | 0 | 0.011321 | 0.301713 | 759 | 35 | 60 | 21.685714 | 0.820755 | 0.291173 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.055556 | 0.166667 | 0.722222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
6db5c79371243a32af183f73744db734c3cd20b9 | 1,380 | py | Python | ETL/Data_Operations/data_operations.py | rohanharode/DRAW-Drug-Review-Analysis-Work | 89d8df82e1f0b67129727f16c32c038d64af35e2 | [
"MIT"
] | null | null | null | ETL/Data_Operations/data_operations.py | rohanharode/DRAW-Drug-Review-Analysis-Work | 89d8df82e1f0b67129727f16c32c038d64af35e2 | [
"MIT"
] | 2 | 2020-11-08T22:03:32.000Z | 2021-06-27T09:22:31.000Z | ETL/Data_Operations/data_operations.py | rohanharode/Drug-Review-Analysis-Work | 89d8df82e1f0b67129727f16c32c038d64af35e2 | [
"MIT"
] | 1 | 2021-07-08T10:50:36.000Z | 2021-07-08T10:50:36.000Z | from ETL.Data_Preprocessing.data_cleaning_and_filtering import cleaning_and_filtering
from ETL.Data_Transformation.drug_conditions_grouped import group_conditions
from ETL.Data_Transformation.jaccard_similarity import apply_jaccard_similarity
from ETL.Data_Transformation.drug_conditions_fuzzy_matching import fuzzy_matc... | 37.297297 | 87 | 0.826087 | 169 | 1,380 | 6.402367 | 0.331361 | 0.051756 | 0.081331 | 0.138632 | 0.163586 | 0.072089 | 0 | 0 | 0 | 0 | 0 | 0.00665 | 0.128261 | 1,380 | 37 | 88 | 37.297297 | 0.892768 | 0.238406 | 0 | 0 | 0 | 0 | 0.060403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | true | 0 | 0.421053 | 0 | 0.473684 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
6dc61ebe0b329b523bc43f68e083bb96cc389b67 | 2,913 | py | Python | src/server/api.py | Irsutoro/sesame | 142959a6e4c814c72f480b0252a028d8586b77da | [
"MIT"
] | null | null | null | src/server/api.py | Irsutoro/sesame | 142959a6e4c814c72f480b0252a028d8586b77da | [
"MIT"
] | null | null | null | src/server/api.py | Irsutoro/sesame | 142959a6e4c814c72f480b0252a028d8586b77da | [
"MIT"
] | null | null | null | import cherrypy
import sesame
from database import create_database
DATABASE = create_database({'System':'sqlite', 'Database':'testy.db'})
SERVER = None
def validate_password(realm, login, password):
#TODO autoryzacja JWT
return SERVER.authorize_user(login, password)
CHERRYPY_CONFIG = {
'server.socket_hos... | 30.663158 | 124 | 0.6701 | 327 | 2,913 | 5.804281 | 0.314985 | 0.041096 | 0.053741 | 0.030032 | 0.25764 | 0.243941 | 0.159115 | 0.068493 | 0.068493 | 0.068493 | 0 | 0.016045 | 0.208376 | 2,913 | 94 | 125 | 30.989362 | 0.807025 | 0.169241 | 0 | 0.283333 | 0 | 0 | 0.142615 | 0.022071 | 0 | 0 | 0 | 0.031915 | 0 | 1 | 0.1 | false | 0.15 | 0.05 | 0.05 | 0.283333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
6dd36722d7bc153d838406ca8e22b682264cbef0 | 187 | py | Python | freedom/tests/post_test.py | smbdsbrain/wind_of_freedom | b1b19205175db8c824ab5f4b2e8a8e4e2c5d6873 | [
"WTFPL"
] | null | null | null | freedom/tests/post_test.py | smbdsbrain/wind_of_freedom | b1b19205175db8c824ab5f4b2e8a8e4e2c5d6873 | [
"WTFPL"
] | null | null | null | freedom/tests/post_test.py | smbdsbrain/wind_of_freedom | b1b19205175db8c824ab5f4b2e8a8e4e2c5d6873 | [
"WTFPL"
] | null | null | null | from unittest import mock
async def test_post(anonym_client, mocker):
mocker.patch('aioga.GA')
r = await anonym_client.get('v1/wind')
assert r.status == 200, await r.text()
| 23.375 | 43 | 0.695187 | 29 | 187 | 4.37931 | 0.793103 | 0.188976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025974 | 0.176471 | 187 | 7 | 44 | 26.714286 | 0.798701 | 0 | 0 | 0 | 0 | 0 | 0.080214 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6de0dc175dbe4c23766558e81ec6b605bc401de8 | 185 | py | Python | problem_332/problem_332.py | oltionzefi/daily-coding-problem | 4fe3ec53e1f3c7d299849671fdfead462d548cd3 | [
"MIT"
] | null | null | null | problem_332/problem_332.py | oltionzefi/daily-coding-problem | 4fe3ec53e1f3c7d299849671fdfead462d548cd3 | [
"MIT"
] | null | null | null | problem_332/problem_332.py | oltionzefi/daily-coding-problem | 4fe3ec53e1f3c7d299849671fdfead462d548cd3 | [
"MIT"
] | null | null | null | def positive_integer_pairs(m, n):
results = list()
for a in range(m // 2 + 1 ):
b = m - a
if a ^ b == n:
results.append((a, b))
return results
| 18.5 | 34 | 0.475676 | 28 | 185 | 3.071429 | 0.642857 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017699 | 0.389189 | 185 | 9 | 35 | 20.555556 | 0.743363 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6deb927562ea3e9179ad55bccae3b4caee1a3331 | 338 | py | Python | libs/imagemetadata.py | epinux/labelImg | a4002eb771f9c82b703a3fcd0b554e0030bf24e7 | [
"MIT"
] | null | null | null | libs/imagemetadata.py | epinux/labelImg | a4002eb771f9c82b703a3fcd0b554e0030bf24e7 | [
"MIT"
] | null | null | null | libs/imagemetadata.py | epinux/labelImg | a4002eb771f9c82b703a3fcd0b554e0030bf24e7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from libs.imagemetadata_ui import Ui_imagemetadata
class ImageMetadata(QWidget, Ui_imagemetadata):
def __init__(self, parent=None):
super(ImageMetadata, self).__init__(parent)
s... | 18.777778 | 51 | 0.745562 | 43 | 338 | 5.604651 | 0.534884 | 0.112033 | 0.124481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010638 | 0.16568 | 338 | 17 | 52 | 19.882353 | 0.843972 | 0.059172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.555556 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
6df6536077ead8b5315b04728d254740d08d1ea8 | 5,423 | py | Python | twitch_bot.py | VDK45/Arkanoid_audio_command_for_twitch | 178a30fe85d3db5b4da127ee3de0c60dc8b0873d | [
"MIT"
] | null | null | null | twitch_bot.py | VDK45/Arkanoid_audio_command_for_twitch | 178a30fe85d3db5b4da127ee3de0c60dc8b0873d | [
"MIT"
] | null | null | null | twitch_bot.py | VDK45/Arkanoid_audio_command_for_twitch | 178a30fe85d3db5b4da127ee3de0c60dc8b0873d | [
"MIT"
] | null | null | null | import random
import cfg
import utils
import socket
import re
import time
from time import sleep
import sys
try:
file_c = open('chanel.txt', 'r', encoding='utf-8')
CHANEL = file_c.read()
print(f'chanel = {CHANEL}')
file_c.close()
except IOError as err:
print('Please enter your CHANEL!')
print(... | 32.088757 | 116 | 0.491425 | 598 | 5,423 | 4.401338 | 0.284281 | 0.034574 | 0.026596 | 0.031915 | 0.359802 | 0.306611 | 0.226064 | 0.208207 | 0.180851 | 0.132979 | 0 | 0.021499 | 0.365296 | 5,423 | 168 | 117 | 32.279762 | 0.742882 | 0.009958 | 0 | 0.363014 | 0 | 0 | 0.179277 | 0.005404 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.075342 | 0.054795 | null | null | 0.082192 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
6dff3f59a4fe7a48fffadc9f63e01aeba249b8e0 | 580 | py | Python | koodous/exceptions.py | Koodous/python-sdk | 987a8d48d1fb1ba599375dc55cb2d283a8cd34c8 | [
"Apache-2.0"
] | 19 | 2016-11-24T06:13:20.000Z | 2021-07-02T05:06:38.000Z | koodous/exceptions.py | Koodous/python-sdk | 987a8d48d1fb1ba599375dc55cb2d283a8cd34c8 | [
"Apache-2.0"
] | 18 | 2015-12-05T14:09:24.000Z | 2021-06-07T11:55:53.000Z | koodous/exceptions.py | Koodous/python-sdk | 987a8d48d1fb1ba599375dc55cb2d283a8cd34c8 | [
"Apache-2.0"
] | 10 | 2015-12-04T20:01:53.000Z | 2020-12-02T07:30:03.000Z | class ApiException(Exception):
"""Koodous API base class."""
class ApiUnauthorizedException(ApiException):
"""Exception when is made a request without the correct token or insufficient privileges."""
class FeedException(ApiException):
"""Base class for the feed exceptions."""
class FeedPackageExceptio... | 25.217391 | 96 | 0.743103 | 60 | 580 | 7.183333 | 0.616667 | 0.097448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151724 | 580 | 22 | 97 | 26.363636 | 0.876016 | 0.463793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 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 | 1 | 0 | 0 | 2 |
6dff73cffaed94db5cb5e75fb80b3961ad0f9146 | 1,005 | py | Python | pybatfish/datamodel/aspath.py | li-ch/pybatfish | d406f87a2bdd8d3beb92dc1baa9a5c8d63391879 | [
"Apache-2.0"
] | 1 | 2019-05-09T13:00:39.000Z | 2019-05-09T13:00:39.000Z | pybatfish/datamodel/aspath.py | li-ch/pybatfish | d406f87a2bdd8d3beb92dc1baa9a5c8d63391879 | [
"Apache-2.0"
] | null | null | null | pybatfish/datamodel/aspath.py | li-ch/pybatfish | d406f87a2bdd8d3beb92dc1baa9a5c8d63391879 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2018 The Batfish Open Source Project
#
# 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 requi... | 35.892857 | 76 | 0.664677 | 144 | 1,005 | 4.555556 | 0.611111 | 0.091463 | 0.039634 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01436 | 0.237811 | 1,005 | 27 | 77 | 37.222222 | 0.842037 | 0.624876 | 0 | 0 | 0 | 0 | 0.013966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | 2 |
a3053ef8acac68ff1083564fcebe2d53409309ba | 13,598 | py | Python | hax/test/test_work_planner.py | ajaykumarptl/cortx-hare | 6eada402c3f90f2f56743efb959ea308b9e171e5 | [
"Apache-2.0"
] | 16 | 2020-09-25T09:34:07.000Z | 2022-03-29T17:26:39.000Z | hax/test/test_work_planner.py | ajaykumarptl/cortx-hare | 6eada402c3f90f2f56743efb959ea308b9e171e5 | [
"Apache-2.0"
] | 536 | 2020-09-24T14:59:10.000Z | 2022-03-31T15:44:52.000Z | hax/test/test_work_planner.py | ajaykumarptl/cortx-hare | 6eada402c3f90f2f56743efb959ea308b9e171e5 | [
"Apache-2.0"
] | 108 | 2020-09-24T15:09:29.000Z | 2022-03-25T10:13:19.000Z | # Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates
#
# 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 appl... | 33.492611 | 78 | 0.538241 | 1,507 | 13,598 | 4.731918 | 0.202389 | 0.016828 | 0.030851 | 0.015706 | 0.686019 | 0.666106 | 0.658954 | 0.653204 | 0.625158 | 0.610293 | 0 | 0.02117 | 0.371231 | 13,598 | 405 | 79 | 33.575309 | 0.812866 | 0.129357 | 0 | 0.722973 | 0 | 0 | 0.064587 | 0.003729 | 0 | 0 | 0 | 0 | 0.040541 | 1 | 0.084459 | false | 0 | 0.040541 | 0.016892 | 0.162162 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
096771220ae65d76d59e3b33fcd89cf0b500185d | 21,536 | py | Python | python/istio_api/networking/v1beta1/gateway_pb2.py | luckyxiaoqiang/api | f296986a5b6512d8d5da7b3f16f01f5733f5f32a | [
"Apache-2.0"
] | 1 | 2021-07-19T14:51:15.000Z | 2021-07-19T14:51:15.000Z | python/istio_api/networking/v1beta1/gateway_pb2.py | luckyxiaoqiang/api | f296986a5b6512d8d5da7b3f16f01f5733f5f32a | [
"Apache-2.0"
] | 11 | 2019-10-15T23:03:57.000Z | 2020-06-14T16:10:12.000Z | python/istio_api/networking/v1beta1/gateway_pb2.py | luckyxiaoqiang/api | f296986a5b6512d8d5da7b3f16f01f5733f5f32a | [
"Apache-2.0"
] | 7 | 2019-07-04T14:23:54.000Z | 2020-04-27T08:52:51.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: networking/v1beta1/gateway.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from ... | 46.413793 | 2,637 | 0.751997 | 2,742 | 21,536 | 5.635303 | 0.105762 | 0.049185 | 0.065493 | 0.04912 | 0.678294 | 0.595392 | 0.518962 | 0.479744 | 0.445897 | 0.432501 | 0 | 0.05362 | 0.117571 | 21,536 | 463 | 2,638 | 46.514039 | 0.759472 | 0.026328 | 0 | 0.577465 | 1 | 0.004695 | 0.263384 | 0.208703 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.007042 | 0.014085 | 0 | 0.014085 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
096e0c82b3230ff3e7a21ae6baf386609c988e98 | 2,354 | py | Python | flask_io/negotiation.py | theelous3/flask-io | 39745083a260bdda20d3a0712287aade9e0d8a97 | [
"MIT"
] | 17 | 2015-12-03T02:09:44.000Z | 2022-03-28T08:33:41.000Z | flask_io/negotiation.py | theelous3/flask-io | 39745083a260bdda20d3a0712287aade9e0d8a97 | [
"MIT"
] | 6 | 2015-12-31T06:31:03.000Z | 2021-05-27T10:13:34.000Z | flask_io/negotiation.py | theelous3/flask-io | 39745083a260bdda20d3a0712287aade9e0d8a97 | [
"MIT"
] | 7 | 2016-06-16T18:55:44.000Z | 2022-02-22T10:33:09.000Z | """
Content negotiation selects a appropriated parser and renderer for a HTTP request.
"""
from abc import ABCMeta, abstractmethod
from .mimetypes import MimeType
class ContentNegotiation(metaclass=ABCMeta):
"""
Base class for all content negotiations.
"""
@abstractmethod
def select_parser(self,... | 30.571429 | 93 | 0.641886 | 260 | 2,354 | 5.769231 | 0.219231 | 0.048 | 0.058667 | 0.050667 | 0.430667 | 0.430667 | 0.430667 | 0.430667 | 0.430667 | 0.366667 | 0 | 0.00238 | 0.285896 | 2,354 | 76 | 94 | 30.973684 | 0.889946 | 0.384877 | 0 | 0.37037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0.074074 | 0.074074 | 0 | 0.518519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
096e973dacf00212d057f5f9f7861e73bb7168e0 | 1,627 | py | Python | models/bam.py | AnonymityCode/FastLFnet | cc4c1d9620fef5e75798f40084729d8d7fdd5a9a | [
"MIT"
] | 8 | 2021-10-13T01:31:25.000Z | 2022-03-18T03:13:15.000Z | models/bam.py | zcong17huang/FastLFnet | d86e9b333f6acb62e0b4d30ed14519fe39ef2963 | [
"MIT"
] | 5 | 2021-12-13T07:19:14.000Z | 2022-03-26T13:00:37.000Z | models/bam.py | AnonymityCode/FastLFnet | cc4c1d9620fef5e75798f40084729d8d7fdd5a9a | [
"MIT"
] | 2 | 2021-11-04T04:04:41.000Z | 2021-11-06T07:56:25.000Z | import torch
import math
import torch.nn as nn
import torch.nn.functional as F
class SpatialGate(nn.Module):
def __init__(self, gate_channel, reduction_ratio, dilation_conv_num=2):
super(SpatialGate, self).__init__()
dilation_val = [1, 2]
self.gate_s = nn.Sequential()
self... | 54.233333 | 146 | 0.671789 | 233 | 1,627 | 4.287554 | 0.218884 | 0.08008 | 0.18018 | 0.225225 | 0.52953 | 0.485485 | 0.349349 | 0.349349 | 0.218218 | 0.13013 | 0 | 0.012569 | 0.217578 | 1,627 | 29 | 147 | 56.103448 | 0.772192 | 0 | 0 | 0.074074 | 0 | 0 | 0.07572 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.148148 | 0.037037 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
098be8e0625336c24e5f9477904a571723ffcc00 | 247 | py | Python | src/main/Computer.py | aseruneko/diceforge-ai | 546c4a62410f2b0da4de152f36245b22520304dc | [
"CC0-1.0"
] | 3 | 2020-05-14T03:31:13.000Z | 2020-05-14T04:20:19.000Z | src/main/Computer.py | aseruneko/diceforge-ai | 546c4a62410f2b0da4de152f36245b22520304dc | [
"CC0-1.0"
] | 23 | 2020-05-14T03:24:40.000Z | 2020-05-30T11:57:04.000Z | src/main/Computer.py | aseruneko/diceforge-ai | 546c4a62410f2b0da4de152f36245b22520304dc | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
"""
プレイヤーのうち、NPCのクラス
"""
"""
- Playerクラスを継承している
- 全体的に未実装
- 将来的にはここでAIを読み込ませる?
"""
__author__ = "aseruneko"
__date__ = "28 May 2020"
from main.Player import Player
class Computer(Player):
pass | 12.35 | 30 | 0.672065 | 27 | 247 | 5.851852 | 0.925926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038647 | 0.161943 | 247 | 20 | 31 | 12.35 | 0.724638 | 0.238866 | 0 | 0 | 0 | 0 | 0.162602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
09902a24aa7794ecafdf93045b5137f40aa8d310 | 2,325 | py | Python | src/utils/utils.py | T1b4lt/gen-alg-examples | 7498c3b96fbc2b6c968cc98d0f1ef6551345a1f4 | [
"MIT"
] | null | null | null | src/utils/utils.py | T1b4lt/gen-alg-examples | 7498c3b96fbc2b6c968cc98d0f1ef6551345a1f4 | [
"MIT"
] | null | null | null | src/utils/utils.py | T1b4lt/gen-alg-examples | 7498c3b96fbc2b6c968cc98d0f1ef6551345a1f4 | [
"MIT"
] | null | null | null | import uuid
import numpy as np
class BColors:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
class Indv:
def __init__(self, indv_size):
self.indv_size = indv_size
self.weights = np.random.unifo... | 27.034884 | 112 | 0.743656 | 337 | 2,325 | 4.836795 | 0.255193 | 0.044172 | 0.03681 | 0.053988 | 0.325767 | 0.302454 | 0.279141 | 0.185276 | 0.142331 | 0.142331 | 0 | 0.029663 | 0.144516 | 2,325 | 85 | 113 | 27.352941 | 0.789844 | 0.07828 | 0 | 0.25 | 0 | 0.015625 | 0.122134 | 0.014038 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.03125 | 0.109375 | 0.546875 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
0993f348c7032c4b29ebad6f8cebebce182f1117 | 1,039 | py | Python | 2019/day_06.py | nabiirah/advent-of-code | 9c7e7cae437c024aa05d9cb7f9211fd47f5226a2 | [
"MIT"
] | 24 | 2020-12-08T20:07:52.000Z | 2022-01-18T20:08:06.000Z | 2019/day_06.py | nestorhf/advent-of-code | 1bb827e9ea85e03e0720e339d10b3ed8c44d8f27 | [
"MIT"
] | null | null | null | 2019/day_06.py | nestorhf/advent-of-code | 1bb827e9ea85e03e0720e339d10b3ed8c44d8f27 | [
"MIT"
] | 10 | 2020-12-04T10:04:15.000Z | 2022-02-21T22:22:26.000Z | """Advent of Code 2019 Day 6 - Universal Orbit Map."""
with open('inputs/day_06.txt', 'r') as f:
orbits = f.read().split()
objects_dict = {}
for orbit in orbits:
orbited, orbiter = orbit.split(')')
objects_dict[orbiter] = orbited
num_orbits = 0
for orbiter in objects_dict:
next_orbit = objects_dict.... | 25.975 | 79 | 0.704524 | 159 | 1,039 | 4.36478 | 0.320755 | 0.207493 | 0.138329 | 0.172911 | 0.309798 | 0.276657 | 0.276657 | 0.181556 | 0.129683 | 0.129683 | 0 | 0.01649 | 0.182868 | 1,039 | 39 | 80 | 26.641026 | 0.800942 | 0.068335 | 0 | 0.321429 | 0 | 0 | 0.097815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0996b5a05af034475da68915d54936a0fd18f441 | 1,057 | py | Python | apps/permcontrol/router.py | zshengsheng/Swallow | dd5098e241c5b4e50e53abbb105fd45323abf4d5 | [
"MIT"
] | 10 | 2018-03-18T14:22:31.000Z | 2019-03-18T03:13:40.000Z | apps/permcontrol/router.py | zshengsheng/Swallow | dd5098e241c5b4e50e53abbb105fd45323abf4d5 | [
"MIT"
] | null | null | null | apps/permcontrol/router.py | zshengsheng/Swallow | dd5098e241c5b4e50e53abbb105fd45323abf4d5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/2/25 14:14
# @Author : ZJJ
# @Email : 597105373@qq.com
from .views import UserViewset, ChangeUserPasswdView, GroupsViewset, UserGroupViewset, GroupMemberViewset, \
PermissionViewset, GroupPermViewset, PersonalInfoViewset
from rest_framework... | 52.85 | 109 | 0.796594 | 103 | 1,057 | 8 | 0.446602 | 0.18568 | 0.242718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021807 | 0.088931 | 1,057 | 19 | 110 | 55.631579 | 0.833853 | 0.10596 | 0 | 0 | 0 | 0 | 0.156352 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.166667 | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
099dcffa5aed44bda69a923f230dbcd1cba3e9b5 | 141,668 | py | Python | pysnmp-with-texts/OSPF-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/OSPF-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/OSPF-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module OSPF-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/OSPF-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:18:45 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:1... | 152.659483 | 9,786 | 0.785753 | 17,454 | 141,668 | 6.377507 | 0.070815 | 0.058106 | 0.101686 | 0.00884 | 0.601017 | 0.486709 | 0.449444 | 0.436238 | 0.393521 | 0.373442 | 0 | 0.036066 | 0.10106 | 141,668 | 927 | 9,787 | 152.824164 | 0.837999 | 0.002188 | 0 | 0.053039 | 0 | 0.153591 | 0.438822 | 0.021026 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.005525 | 0.016575 | 0 | 0.072928 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
09a18d4b2a0fa8ae47cff0df35320c0b38f5b9e2 | 1,500 | py | Python | Resources/Python Example Files/Prior_move_rel.py | stephf0716/MATLAB-scanning-stage | a4f5e96b86d1c95bf16ff7262959b7c0f8b8e51d | [
"MIT"
] | null | null | null | Resources/Python Example Files/Prior_move_rel.py | stephf0716/MATLAB-scanning-stage | a4f5e96b86d1c95bf16ff7262959b7c0f8b8e51d | [
"MIT"
] | null | null | null | Resources/Python Example Files/Prior_move_rel.py | stephf0716/MATLAB-scanning-stage | a4f5e96b86d1c95bf16ff7262959b7c0f8b8e51d | [
"MIT"
] | null | null | null | # *********************************************************
# Relative Stage Movement
#
# Stephanie Fung 2014
# *********************************************************
# Import modules.
# ---------------------------------------------------------
import visa
import string
import struct
import sys
import serial
# =... | 25.862069 | 59 | 0.420667 | 139 | 1,500 | 4.496403 | 0.431655 | 0.1152 | 0.0144 | 0.0384 | 0.12 | 0.12 | 0.12 | 0 | 0 | 0 | 0 | 0.014821 | 0.145333 | 1,500 | 57 | 60 | 26.315789 | 0.472699 | 0.506 | 0 | 0.103448 | 0 | 0 | 0.083682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.172414 | null | null | 0.103448 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
09b4cd6f2d42318aef248c6850aeea38ce8781bf | 335 | py | Python | src/art_of_geom/_util/_tmp.py | Mathverse/Art-of-Geometry | 8fd89fd3526f871815c38953580a48b017d39847 | [
"MIT"
] | 1 | 2021-12-25T01:16:10.000Z | 2021-12-25T01:16:10.000Z | src/art_of_geom/_util/_tmp.py | Mathverse/Art-of-Geometry | 8fd89fd3526f871815c38953580a48b017d39847 | [
"MIT"
] | null | null | null | src/art_of_geom/_util/_tmp.py | Mathverse/Art-of-Geometry | 8fd89fd3526f871815c38953580a48b017d39847 | [
"MIT"
] | null | null | null | __all__ = 'TMP_NAME_FACTORY', 'tmp_file_name', 'str_uuid'
import os
from tempfile import NamedTemporaryFile
from uuid import uuid4
def tmp_file_name():
with NamedTemporaryFile() as named_tmp_file:
return os.path.basename(named_tmp_file.name)
def str_uuid():
return str(uuid4())
TMP_NAME_FACTORY =... | 17.631579 | 57 | 0.755224 | 49 | 335 | 4.755102 | 0.408163 | 0.150215 | 0.188841 | 0.145923 | 0.214592 | 0.214592 | 0 | 0 | 0 | 0 | 0 | 0.007117 | 0.161194 | 335 | 18 | 58 | 18.611111 | 0.822064 | 0 | 0 | 0 | 0 | 0 | 0.110448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0.1 | 0.7 | 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 | 1 | 0 | 0 | 2 |
09d9a6c70c2c9fb2475c65d8587c45d1e8aa1eb1 | 1,251 | py | Python | portafolio/core/views.py | breinerGiraldo/python | 89603d7ce0be8e2bb20817ee3c845fdb26a1b54a | [
"bzip2-1.0.6"
] | null | null | null | portafolio/core/views.py | breinerGiraldo/python | 89603d7ce0be8e2bb20817ee3c845fdb26a1b54a | [
"bzip2-1.0.6"
] | null | null | null | portafolio/core/views.py | breinerGiraldo/python | 89603d7ce0be8e2bb20817ee3c845fdb26a1b54a | [
"bzip2-1.0.6"
] | null | null | null | from django.shortcuts import render,HTTpResponse
# Create your views here.
def indexcore(request):
return render(request,'index.html')
def nosotros(request):
return render(request,'nosotros.html')
def indexcore(request):
#iniciamos el formulario de contacto
FormarContac= ContactForm()
#valid... | 39.09375 | 106 | 0.655476 | 149 | 1,251 | 5.496644 | 0.550336 | 0.067155 | 0.068376 | 0.063492 | 0.068376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246203 | 1,251 | 31 | 107 | 40.354839 | 0.868505 | 0.357314 | 0 | 0.117647 | 0 | 0 | 0.095718 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 1 | 0.176471 | false | 0 | 0.058824 | 0.117647 | 0.470588 | 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 | 1 | 0 | 0 | 0 | 2 |
09e84e1dd2d539b68ad7f9d464717d52336a5ae9 | 216 | py | Python | zhongyicheng/scripts/test.py | Chr0802/No-easy-summer1 | d8d88b8d025f039deca7c89518b63446e4f80567 | [
"MIT"
] | 2 | 2021-08-05T11:44:12.000Z | 2021-08-31T10:50:13.000Z | zhongyicheng/scripts/test.py | Chr0802/No-easy-summer1 | d8d88b8d025f039deca7c89518b63446e4f80567 | [
"MIT"
] | 1 | 2021-08-07T03:21:12.000Z | 2021-08-07T03:21:12.000Z | zhongyicheng/scripts/test.py | Chr0802/No-easy-summer1 | d8d88b8d025f039deca7c89518b63446e4f80567 | [
"MIT"
] | 8 | 2021-07-26T05:11:37.000Z | 2021-10-05T05:34:34.000Z | from elasticsearch import Elasticsearch
es = Elasticsearch([
{'host':'localhost','port':8200},
])
print(es.search(index='ename_test_multiprocess',body={"query":{"match":{"name":str(input())}}})['hits']['hits'])
| 30.857143 | 112 | 0.680556 | 25 | 216 | 5.8 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019901 | 0.069444 | 216 | 6 | 113 | 36 | 0.701493 | 0 | 0 | 0 | 0 | 0 | 0.287037 | 0.106481 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
61da655b21d56bf52e1b1c392472699b90dc9b53 | 275 | py | Python | text_directions.py | ErnestoPena/Game-Of-Life.-Python | 046bca4ae1c69e08efed4f45057b097653410ec8 | [
"MIT"
] | null | null | null | text_directions.py | ErnestoPena/Game-Of-Life.-Python | 046bca4ae1c69e08efed4f45057b097653410ec8 | [
"MIT"
] | null | null | null | text_directions.py | ErnestoPena/Game-Of-Life.-Python | 046bca4ae1c69e08efed4f45057b097653410ec8 | [
"MIT"
] | null | null | null | import pygame
def print(text, window):
font = pygame.font.SysFont('Times New Roman', 18)
header_text = font.render(text,1,(255,255,0))
window.blit(header_text, (1000 + (200/2 - header_text.get_width()/2), 680 + (header_text.get_height()/2))) | 45.833333 | 122 | 0.632727 | 41 | 275 | 4.097561 | 0.609756 | 0.238095 | 0.154762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105023 | 0.203636 | 275 | 6 | 122 | 45.833333 | 0.6621 | 0 | 0 | 0 | 0 | 0 | 0.054348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
61de22931c74120ebd50c4d032782c041e459df7 | 730 | py | Python | kittiground/__init__.py | JeremyBYU/polylidar-kitti | bfad0dc4a74e136d2841dccf3ccc05d982f18a8e | [
"MIT"
] | null | null | null | kittiground/__init__.py | JeremyBYU/polylidar-kitti | bfad0dc4a74e136d2841dccf3ccc05d982f18a8e | [
"MIT"
] | null | null | null | kittiground/__init__.py | JeremyBYU/polylidar-kitti | bfad0dc4a74e136d2841dccf3ccc05d982f18a8e | [
"MIT"
] | null | null | null | from pathlib import Path
import numpy as np
THIS_FILE = Path(__file__)
THIS_DIR = THIS_FILE.parent
DEFAULT_CONFIG_FILE = THIS_DIR / 'config' / 'default.yaml'
# Width/height of the visual screens
IMG_WIDTH = 1242
IMG_HEIGHT = 375
# INTRINISCS = np.array([[649.51905284, 0.00000000, 620.50000000],
# ... | 38.421053 | 75 | 0.610959 | 93 | 730 | 4.666667 | 0.516129 | 0.145161 | 0.069124 | 0.124424 | 0.124424 | 0.124424 | 0 | 0 | 0 | 0 | 0 | 0.438757 | 0.250685 | 730 | 18 | 76 | 40.555556 | 0.354662 | 0.309589 | 0 | 0 | 0 | 0 | 0.036072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
61ee17d15d59c91dd4a80c2ec70be31d3dc1095f | 134 | py | Python | start/hello_world.py | nguyenductamlhp/tensorflow_demo | 7c4b55dff80dd435806a1b22dee6eb32ae39c02d | [
"MIT"
] | null | null | null | start/hello_world.py | nguyenductamlhp/tensorflow_demo | 7c4b55dff80dd435806a1b22dee6eb32ae39c02d | [
"MIT"
] | null | null | null | start/hello_world.py | nguyenductamlhp/tensorflow_demo | 7c4b55dff80dd435806a1b22dee6eb32ae39c02d | [
"MIT"
] | 1 | 2018-11-05T06:40:09.000Z | 2018-11-05T06:40:09.000Z | # -*- coding: utf-8 -*-
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
| 19.142857 | 41 | 0.671642 | 19 | 134 | 4.736842 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.134328 | 134 | 6 | 42 | 22.333333 | 0.767241 | 0.156716 | 0 | 0 | 0 | 0 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
61fa26c1e849bd6b6249a17cb7a588c5997af757 | 438 | py | Python | Back/generalchatroom/models.py | sadeghjafari5528/404- | 0499b93cc473ec4def96d95364180eb4f4dafb11 | [
"MIT"
] | null | null | null | Back/generalchatroom/models.py | sadeghjafari5528/404- | 0499b93cc473ec4def96d95364180eb4f4dafb11 | [
"MIT"
] | 1 | 2020-12-27T14:59:35.000Z | 2020-12-27T14:59:35.000Z | Back/generalchatroom/models.py | sadeghjafari5528/404- | 0499b93cc473ec4def96d95364180eb4f4dafb11 | [
"MIT"
] | 2 | 2020-10-30T08:08:32.000Z | 2020-10-30T20:47:51.000Z | from django.db import models
from registeration.models import User
from chatroom.models import Chatroom
class Message(models.Model):
chatroom = models.ForeignKey(Chatroom, on_delete=models.CASCADE)
user = models.ForeignKey(User, on_delete=models.SET_NULL, null=True)
text = models.TextField()
parentMes... | 36.5 | 83 | 0.773973 | 58 | 438 | 5.741379 | 0.431034 | 0.144144 | 0.126126 | 0.102102 | 0.126126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127854 | 438 | 11 | 84 | 39.818182 | 0.871728 | 0 | 0 | 0 | 0 | 0 | 0.009132 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
110368e70ed99472870504d326991f7e709f610a | 311 | py | Python | apps/xero_workspace/job_urls.py | akshay-codemonk/fyle-xero | a040dab12282a9a64ca01aca2dc09f8bb7eaa0f6 | [
"MIT"
] | null | null | null | apps/xero_workspace/job_urls.py | akshay-codemonk/fyle-xero | a040dab12282a9a64ca01aca2dc09f8bb7eaa0f6 | [
"MIT"
] | null | null | null | apps/xero_workspace/job_urls.py | akshay-codemonk/fyle-xero | a040dab12282a9a64ca01aca2dc09f8bb7eaa0f6 | [
"MIT"
] | null | null | null | from django.urls import path, include
from apps.xero_workspace.views import ScheduleSyncView
urlpatterns = [
path('<int:workspace_id>/expense_group/', include('apps.fyle_expense.job_urls')),
path('<int:workspace_id>/settings/schedule/trigger/', ScheduleSyncView.as_view(), name="schedule_trigger"),
]
| 34.555556 | 111 | 0.768489 | 39 | 311 | 5.923077 | 0.615385 | 0.060606 | 0.138528 | 0.155844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090032 | 311 | 8 | 112 | 38.875 | 0.816254 | 0 | 0 | 0 | 0 | 0 | 0.385852 | 0.334405 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
111b8e50cc0607494dfd9e6aee63b1a1cd91a426 | 419 | py | Python | variation/tokenizers/overexpression.py | cancervariants/variant-normalization | e89a9f8366a659c82b2042aeb7effe339851bfb4 | [
"MIT"
] | 1 | 2022-01-19T18:17:49.000Z | 2022-01-19T18:17:49.000Z | variation/tokenizers/overexpression.py | cancervariants/variation-normalization | 9c8fbab1562591ae9445d82ddd15df29f1ea1f5a | [
"MIT"
] | 99 | 2021-06-07T12:50:34.000Z | 2022-03-23T13:38:29.000Z | variation/tokenizers/overexpression.py | cancervariants/variant-normalization | e89a9f8366a659c82b2042aeb7effe339851bfb4 | [
"MIT"
] | null | null | null | """Module for over expression tokenization."""
from .basic_regex_tokenizer import BasicRegexTokenizer
class OverExpression(BasicRegexTokenizer):
"""Over Expression tokenizer class."""
def pattern(self) -> str:
"""Return over expression regex."""
return r'\bover ?expression\b'
def token_t... | 27.933333 | 54 | 0.680191 | 43 | 419 | 6.55814 | 0.534884 | 0.198582 | 0.092199 | 0.120567 | 0.191489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202864 | 419 | 14 | 55 | 29.928571 | 0.844311 | 0.329356 | 0 | 0 | 0 | 0 | 0.130769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
111c7c6e5f812c559a0501e1a32f5e52d75464e1 | 465 | py | Python | src/hypothesis.py | karlicoss/bleanser | fb0fb8b41769086723cb5b9854ebc93012bce279 | [
"MIT"
] | 13 | 2021-01-30T05:50:38.000Z | 2022-02-11T09:27:42.000Z | src/hypothesis.py | karlicoss/bleanser | fb0fb8b41769086723cb5b9854ebc93012bce279 | [
"MIT"
] | null | null | null | src/hypothesis.py | karlicoss/bleanser | fb0fb8b41769086723cb5b9854ebc93012bce279 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from pathlib import Path
from jq_normaliser import JqNormaliser, Filter
class HypNormaliser(JqNormaliser):
def __init__(self, *args, **kwargs) -> None:
super().__init__(*args, **kwargs, logger_tag='hypothesis-normaliser', delete_dominated=True, keep_both=False) # type: ignore
... | 21.136364 | 132 | 0.675269 | 54 | 465 | 5.444444 | 0.703704 | 0.068027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002653 | 0.189247 | 465 | 21 | 133 | 22.142857 | 0.777188 | 0.073118 | 0 | 0 | 0 | 0 | 0.06993 | 0.048951 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 0.083333 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
112a43415fecd46be252ae4a4ada95880e19dcdf | 571 | py | Python | drift_report/domain/model_repository.py | rufusnufus/drift-report-plugin | 37019491a82e3478d6bfc718962a477266e1fa26 | [
"Apache-2.0"
] | null | null | null | drift_report/domain/model_repository.py | rufusnufus/drift-report-plugin | 37019491a82e3478d6bfc718962a477266e1fa26 | [
"Apache-2.0"
] | null | null | null | drift_report/domain/model_repository.py | rufusnufus/drift-report-plugin | 37019491a82e3478d6bfc718962a477266e1fa26 | [
"Apache-2.0"
] | null | null | null | from typing import Iterator, List, Optional
from drift_report.domain.model import Model
class ModelRepository:
def __init__(self) -> None:
self.state: List[Model] = []
def create(self, model: Model):
self.state.append(model)
def all(self) -> Iterator[Model]:
return iter(self.stat... | 24.826087 | 67 | 0.628722 | 70 | 571 | 5.042857 | 0.457143 | 0.101983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.260946 | 571 | 22 | 68 | 25.954545 | 0.836493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.133333 | 0.066667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1133ef41069d7316eeeb3a398b4c83b6ef70a38d | 8,408 | py | Python | Client/Scrypt.py | TheRedBladeClan/ScryptRansomware | 79d8eb4e0e72b74a1d37e9723667cdefd259cae4 | [
"MIT"
] | 8 | 2021-08-01T23:34:16.000Z | 2022-01-04T21:37:24.000Z | Client/Scrypt.py | TheRedBladeClan/ScryptRansomware | 79d8eb4e0e72b74a1d37e9723667cdefd259cae4 | [
"MIT"
] | null | null | null | Client/Scrypt.py | TheRedBladeClan/ScryptRansomware | 79d8eb4e0e72b74a1d37e9723667cdefd259cae4 | [
"MIT"
] | 6 | 2021-08-01T23:15:02.000Z | 2022-03-26T13:46:43.000Z | import PyQt5
import PyQt5.QtWidgets
import PyQt5.QtCore
import sys
import requests
import random
import string
import threading
from Crypto.Cipher import AES
from Crypto.Util.Padding import pad, unpad
import os
import shutil
btcAdd = ""
email = ""
discordWebhook = ""
fileTypes = ['.txt','.exe','.p... | 39.28972 | 2,154 | 0.574215 | 1,061 | 8,408 | 4.513666 | 0.549482 | 0.020672 | 0.010858 | 0.016287 | 0.175611 | 0.146168 | 0.134057 | 0.093965 | 0.093965 | 0.093965 | 0 | 0.029851 | 0.155328 | 8,408 | 213 | 2,155 | 39.474178 | 0.644466 | 0 | 0 | 0.268421 | 0 | 0.021053 | 0.486576 | 0.058213 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073684 | false | 0.063158 | 0.063158 | 0 | 0.157895 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
113bd9cbcd07a3d262fa13c56a09b92b81be3c27 | 326 | py | Python | leetcode/code/reverseString.py | exchris/Pythonlearn | 174f38a86cf1c85d6fc099005aab3568e7549cd0 | [
"MIT"
] | null | null | null | leetcode/code/reverseString.py | exchris/Pythonlearn | 174f38a86cf1c85d6fc099005aab3568e7549cd0 | [
"MIT"
] | 1 | 2018-11-27T09:58:54.000Z | 2018-11-27T09:58:54.000Z | leetcode/code/reverseString.py | exchris/pythonlearn | 174f38a86cf1c85d6fc099005aab3568e7549cd0 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding:utf-8 -*-
'''
编写一个函数,其作用是将输入的字符串反转过来。
示例 1:
输入: "hello"
输出: "olleh"
示例 2:
输入: "A man, a plan, a canal: Panama"
输出: "amanaP :lanac a ,nalp a ,nam A"
'''
class Solution:
def reverseString(self, s):
'''
:param s: str
:return: str
'''
return s[:... | 13.583333 | 36 | 0.518405 | 46 | 326 | 3.673913 | 0.717391 | 0.106509 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017316 | 0.291411 | 326 | 23 | 37 | 14.173913 | 0.714286 | 0.616564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
fec9f02854eb9eb4fafaedb66ec68d2f2a2ba154 | 152 | py | Python | meuCursoEmVideo/mundo1/ex008.py | FelipeSilveiraL/EstudoPython | 8dc6cb70415badd180a1375da68f9dc9cb8fc8df | [
"MIT"
] | null | null | null | meuCursoEmVideo/mundo1/ex008.py | FelipeSilveiraL/EstudoPython | 8dc6cb70415badd180a1375da68f9dc9cb8fc8df | [
"MIT"
] | null | null | null | meuCursoEmVideo/mundo1/ex008.py | FelipeSilveiraL/EstudoPython | 8dc6cb70415badd180a1375da68f9dc9cb8fc8df | [
"MIT"
] | null | null | null | n = float(input("informe um medida em metros: "));
cm = n * 100
mm = n * 1000
print('A medida {}M é correspondente a {}Cm e {}Mm'.format(n, cm, mm)) | 21.714286 | 70 | 0.605263 | 28 | 152 | 3.285714 | 0.678571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058333 | 0.210526 | 152 | 7 | 70 | 21.714286 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0.470588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fecf532f1524b2d286c4ac2038b09f2f317636bc | 406 | py | Python | rio_cogeo/errors.py | vincentsarago/rio-cogeo | a758c7befa394568daa7d926c331b5489753a694 | [
"BSD-3-Clause"
] | 159 | 2019-02-12T18:22:30.000Z | 2022-03-23T18:49:47.000Z | rio_cogeo/errors.py | vincentsarago/rio-cogeo | a758c7befa394568daa7d926c331b5489753a694 | [
"BSD-3-Clause"
] | 121 | 2019-01-28T18:00:18.000Z | 2022-03-31T17:54:42.000Z | rio_cogeo/errors.py | vincentsarago/rio-cogeo | a758c7befa394568daa7d926c331b5489753a694 | [
"BSD-3-Clause"
] | 27 | 2019-02-12T23:52:33.000Z | 2022-03-07T14:40:24.000Z | """Rio-Cogeo Errors and Warnings."""
class LossyCompression(UserWarning):
"""Rio-cogeo module Lossy compression warning."""
class IncompatibleBlockRasterSize(UserWarning):
"""Rio-cogeo module incompatible raster block/size warning."""
class RioCogeoError(Exception):
"""Base exception class."""
class... | 22.555556 | 66 | 0.738916 | 39 | 406 | 7.692308 | 0.564103 | 0.106667 | 0.14 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133005 | 406 | 17 | 67 | 23.882353 | 0.852273 | 0.472906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fed7cf7a07873e74fd5bc50796d61484b796fe97 | 2,012 | py | Python | bevm/db.py | sorawit/bevm | 850b2d64fc12dae92d9cdaf8b4c48b90cc0d05d6 | [
"MIT"
] | 1 | 2021-09-15T10:16:46.000Z | 2021-09-15T10:16:46.000Z | bevm/db.py | sorawit/bevm | 850b2d64fc12dae92d9cdaf8b4c48b90cc0d05d6 | [
"MIT"
] | null | null | null | bevm/db.py | sorawit/bevm | 850b2d64fc12dae92d9cdaf8b4c48b90cc0d05d6 | [
"MIT"
] | null | null | null | from eth.db.atomic import AtomicDB
from eth.db.backends.level import LevelDB
from eth.db.account import AccountDB
from rlp.sedes import big_endian_int
from bevm.block import Block
from bevm.action import rlp_decode_action
ACTION_COUNT = b'BEVM:ACTION_COUNT'
def block_key(blockno):
return 'BEVM:BLOCK_KEY_{}'.for... | 32.983607 | 77 | 0.700795 | 291 | 2,012 | 4.57732 | 0.195876 | 0.067568 | 0.047297 | 0.033784 | 0.249249 | 0.130631 | 0.100601 | 0.061562 | 0.061562 | 0 | 0 | 0.006203 | 0.198807 | 2,012 | 60 | 78 | 33.533333 | 0.820099 | 0 | 0 | 0.044444 | 0 | 0 | 0.016899 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 1 | 0.244444 | false | 0 | 0.133333 | 0.2 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
fedcf036c6fb8965eea9548fe948c1a18ef9db31 | 785 | py | Python | seiketsu/users/schema.py | tychota/seiketsu | 2b5280365b9de44cd84ac65ed74981b30be5cc76 | [
"MIT"
] | null | null | null | seiketsu/users/schema.py | tychota/seiketsu | 2b5280365b9de44cd84ac65ed74981b30be5cc76 | [
"MIT"
] | null | null | null | seiketsu/users/schema.py | tychota/seiketsu | 2b5280365b9de44cd84ac65ed74981b30be5cc76 | [
"MIT"
] | null | null | null | # cookbook/ingredients/schema.py
import graphene
from graphene_django_extras import DjangoObjectField, DjangoFilterPaginateListField, LimitOffsetGraphqlPagination
from .types import UserType
from .mutations import UserSerializerMutation
from .subscriptions import UserSubscription
class Query(graphene.ObjectType):
... | 34.130435 | 113 | 0.831847 | 67 | 785 | 9.641791 | 0.537313 | 0.083591 | 0.102167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103185 | 785 | 22 | 114 | 35.681818 | 0.917614 | 0.038217 | 0 | 0 | 0 | 0 | 0.022576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
fedd8583c4097da76284324d87da760d236bb283 | 1,026 | py | Python | app/__init__.py | alineayumi/desafio-ton-API-REST | cf9f88adc4f7de6060f2c3f2c31147077c311ce9 | [
"MIT"
] | null | null | null | app/__init__.py | alineayumi/desafio-ton-API-REST | cf9f88adc4f7de6060f2c3f2c31147077c311ce9 | [
"MIT"
] | null | null | null | app/__init__.py | alineayumi/desafio-ton-API-REST | cf9f88adc4f7de6060f2c3f2c31147077c311ce9 | [
"MIT"
] | null | null | null | import os
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask.logging import default_handler
from flask_request_id_header.middleware import RequestID
from app.resources.encoders import CustomJSONEncoder
from app.resources.logger import formatter
from flask_jwt import JWT
db = SQLAlchemy()
def ... | 26.307692 | 86 | 0.789474 | 132 | 1,026 | 5.901515 | 0.363636 | 0.057766 | 0.061617 | 0.05905 | 0.064185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15692 | 1,026 | 38 | 87 | 27 | 0.900578 | 0.076998 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.478261 | 0 | 0.565217 | 0.173913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
fee2dd08a38899ceea87863c92dafc29503606c4 | 525 | py | Python | feeds/rss_feed.py | godwinaden/movie_api_server | 1b467bd91d0a5a9a2f0a2a9fc921b3a4f5c04217 | [
"MIT"
] | null | null | null | feeds/rss_feed.py | godwinaden/movie_api_server | 1b467bd91d0a5a9a2f0a2a9fc921b3a4f5c04217 | [
"MIT"
] | null | null | null | feeds/rss_feed.py | godwinaden/movie_api_server | 1b467bd91d0a5a9a2f0a2a9fc921b3a4f5c04217 | [
"MIT"
] | null | null | null | from sql_app.repositories.movie_repository import MovieRepo
from feedgenerator import RssFeed
from sqlalchemy.orm import Session
class LatestRssFeed(RssFeed):
title: str
price: float
description: str
@staticmethod
def items(db: Session):
return MovieRepo.fetch_all(db)
@staticmethod
... | 20.192308 | 59 | 0.704762 | 60 | 525 | 6.066667 | 0.466667 | 0.164835 | 0.156593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234286 | 525 | 25 | 60 | 21 | 0.905473 | 0 | 0 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.157895 | 0.210526 | 0.789474 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
fee57ff8598ad386cc6460807e129b503a56f217 | 1,740 | py | Python | tests/stimuli/test_flashed_images.py | balefebvre/pystim | ae51d8a4b478da6dec44b296407099c6257fa3fa | [
"MIT"
] | null | null | null | tests/stimuli/test_flashed_images.py | balefebvre/pystim | ae51d8a4b478da6dec44b296407099c6257fa3fa | [
"MIT"
] | null | null | null | tests/stimuli/test_flashed_images.py | balefebvre/pystim | ae51d8a4b478da6dec44b296407099c6257fa3fa | [
"MIT"
] | null | null | null | import pystim
bin_path = None # TODO correct.
vec_path = None # TODO correct.
trials_path = None # TODO correct.
stimulus = pystim.stimuli.flashed_images.load(bin_path, vec_path, trials_path)
print(stimulus.nb_frames)
print(stimulus.nb_diplays)
print(stimulus.nb_trials)
print(stimulus.nb_conditions)
print(stimulu... | 34.8 | 105 | 0.820115 | 252 | 1,740 | 5.369048 | 0.293651 | 0.130081 | 0.082779 | 0.079823 | 0.301552 | 0.178123 | 0.109387 | 0 | 0 | 0 | 0 | 0.000635 | 0.094828 | 1,740 | 50 | 106 | 34.8 | 0.858413 | 0.318391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.037037 | 0.481481 | 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 | 1 | 0 | 2 |
fef8bcaaac0327ab05b3750bfd80e03d8695818d | 2,745 | py | Python | cookbook/chap9/main.py | duyquang6/py-side-project | e3cdfcf424bbb15afad8241a357de49a1717fba6 | [
"Apache-2.0"
] | null | null | null | cookbook/chap9/main.py | duyquang6/py-side-project | e3cdfcf424bbb15afad8241a357de49a1717fba6 | [
"Apache-2.0"
] | null | null | null | cookbook/chap9/main.py | duyquang6/py-side-project | e3cdfcf424bbb15afad8241a357de49a1717fba6 | [
"Apache-2.0"
] | null | null | null | # 9.1. Putting a Wrapper Around a Function
#region
# import time
# from functools import wraps
# def timethis(func):
# '''
# Decorator that reports the execution time.
# '''
# @wraps(func)
# def wrapper(*args, **kwargs):
# start = time.time()
# result = func(*args, **kwargs)
# ... | 20.639098 | 59 | 0.587614 | 328 | 2,745 | 4.856707 | 0.280488 | 0.062775 | 0.037665 | 0.059636 | 0.511613 | 0.472065 | 0.391714 | 0.371626 | 0.371626 | 0.312618 | 0 | 0.015244 | 0.28306 | 2,745 | 133 | 60 | 20.639098 | 0.794207 | 0.712933 | 0 | 0 | 0 | 0 | 0.017831 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.105263 | 0.052632 | 0.578947 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
3a025d2fa53d6a334efac01743db85a3f7705e2e | 757 | py | Python | illallangi/delugeapi/filtercollection.py | illallangi/DelugeAPI | 8a949c0cf505992d5e6363d1ff3a9ed5147fc1a1 | [
"MIT"
] | null | null | null | illallangi/delugeapi/filtercollection.py | illallangi/DelugeAPI | 8a949c0cf505992d5e6363d1ff3a9ed5147fc1a1 | [
"MIT"
] | null | null | null | illallangi/delugeapi/filtercollection.py | illallangi/DelugeAPI | 8a949c0cf505992d5e6363d1ff3a9ed5147fc1a1 | [
"MIT"
] | null | null | null | from collections.abc import Sequence
from .filter import Filter
class FilterCollection(Sequence):
def __init__(self, host, filters, *args, **kwargs):
super().__init__(*args, **kwargs)
self.host = host
self._filters = [Filter(self.host, filter) for filter in filters]
def __repr__(self... | 29.115385 | 112 | 0.649934 | 93 | 757 | 4.645161 | 0.365591 | 0.111111 | 0.050926 | 0.069444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001656 | 0.202114 | 757 | 25 | 113 | 30.28 | 0.713576 | 0 | 0 | 0 | 0 | 0.058824 | 0.202114 | 0.124174 | 0 | 0 | 0 | 0 | 0 | 1 | 0.352941 | false | 0 | 0.117647 | 0.294118 | 0.823529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
3a04e44a83831c5da0bf2cc7640fd1129f243146 | 97 | py | Python | odds/__init__.py | nik849/Odds | a2403e5f5428fcf826322b59410471ec97a6aa26 | [
"MIT"
] | 1 | 2017-11-05T20:41:12.000Z | 2017-11-05T20:41:12.000Z | odds/__init__.py | nik849/Odds | a2403e5f5428fcf826322b59410471ec97a6aa26 | [
"MIT"
] | 2 | 2021-03-31T18:43:15.000Z | 2021-12-13T19:46:28.000Z | odds/__init__.py | nik849/Odds | a2403e5f5428fcf826322b59410471ec97a6aa26 | [
"MIT"
] | null | null | null | """
:copyright: Nick Hale
:license: MIT, see LICENSE for more details.
"""
__version__ = '0.0.1'
| 16.166667 | 44 | 0.670103 | 14 | 97 | 4.357143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036585 | 0.154639 | 97 | 5 | 45 | 19.4 | 0.707317 | 0.680412 | 0 | 0 | 0 | 0 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3a14941cbf1878d6614fada903d6f5559aa474e0 | 367 | py | Python | pageOne.py | Priyanka1527/PageOne | ff129f305b13c8cac839e6a5f55f3853e1f16973 | [
"MIT"
] | null | null | null | pageOne.py | Priyanka1527/PageOne | ff129f305b13c8cac839e6a5f55f3853e1f16973 | [
"MIT"
] | null | null | null | pageOne.py | Priyanka1527/PageOne | ff129f305b13c8cac839e6a5f55f3853e1f16973 | [
"MIT"
] | null | null | null | #from inv_ind.py import inverted_index
import search
class main:
#vector_space = inverted_index()
# *************************** INPUTTING THE QUERY ***************************
k = input('Enter value of k:') #Accepting query from the user
query = input('Enter your search query:') #Accepting query fr... | 28.230769 | 81 | 0.599455 | 45 | 367 | 4.777778 | 0.511111 | 0.12093 | 0.167442 | 0.195349 | 0.232558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182561 | 367 | 12 | 82 | 30.583333 | 0.716667 | 0.555858 | 0 | 0 | 0 | 0 | 0.261147 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.8 | 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 | 1 | 0 | 0 | 2 |
3a278df76c850ba375f90a83b4923f079000c2f6 | 1,385 | py | Python | debian-11-PrisonPC/xfce/log-terminal-attempt.py | mijofa/bootstrap2020 | 38f557f4f0e72eaefe366f12f6adac3e2f9c9abd | [
"MIT"
] | null | null | null | debian-11-PrisonPC/xfce/log-terminal-attempt.py | mijofa/bootstrap2020 | 38f557f4f0e72eaefe366f12f6adac3e2f9c9abd | [
"MIT"
] | null | null | null | debian-11-PrisonPC/xfce/log-terminal-attempt.py | mijofa/bootstrap2020 | 38f557f4f0e72eaefe366f12f6adac3e2f9c9abd | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import os
import sys
import syslog # FIXME: use systemd.journal.send()?
import gi
gi.require_version('Notify', '0.7')
import gi.repository.Notify # noqa: E402
__doc__ = """ an ersatz xterm that says "No!" and quits """
# Tell the central server.
# FIXME: ends up in user journ... | 34.625 | 95 | 0.704693 | 216 | 1,385 | 4.486111 | 0.643519 | 0.037152 | 0.055728 | 0.024768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014938 | 0.178339 | 1,385 | 39 | 96 | 35.512821 | 0.836555 | 0.550903 | 0 | 0 | 0 | 0 | 0.356667 | 0.038333 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
3a3d256dc2972ac84c9fb003786b75e70d7fb65f | 406 | py | Python | IO/__init__.py | killian-mahe/the_eternal_kingdom | 82798246e4c5608b508487407c9d4154fd59f615 | [
"MIT"
] | 2 | 2020-03-27T15:01:22.000Z | 2020-04-30T20:09:00.000Z | IO/__init__.py | killian-mahe/the_eternal_kingdom | 82798246e4c5608b508487407c9d4154fd59f615 | [
"MIT"
] | null | null | null | IO/__init__.py | killian-mahe/the_eternal_kingdom | 82798246e4c5608b508487407c9d4154fd59f615 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
IO
~~~~~~~~~~~~~~~~~~~
A Python module for Input and Ouput interactions
:copyright: (c) 2020 Killian Mahé
:license: MIT, see LICENSE for more details.
"""
__title__ = 'io'
__author__ = 'Killian Mahé'
__license__ = 'MIT'
__copyright__ = 'Copyright 2020 Killian Mahé'
__version__ = '0.0.1'... | 18.454545 | 48 | 0.687192 | 52 | 406 | 4.980769 | 0.615385 | 0.127413 | 0.11583 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035191 | 0.160099 | 406 | 22 | 49 | 18.454545 | 0.72434 | 0.431034 | 0 | 0 | 0 | 0 | 0.219731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.