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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
90f6a8b251142a71fb640f4f91f600712ec01fc8 | 3,569 | py | Python | tests/rules/test_duplicates.py | imbillu/arche | 67a24b83e2f936f1f6f8d1c7bbd4aa147f128b66 | [
"MIT"
] | 1 | 2022-02-22T11:56:03.000Z | 2022-02-22T11:56:03.000Z | tests/rules/test_duplicates.py | imbillu/arche | 67a24b83e2f936f1f6f8d1c7bbd4aa147f128b66 | [
"MIT"
] | null | null | null | tests/rules/test_duplicates.py | imbillu/arche | 67a24b83e2f936f1f6f8d1c7bbd4aa147f128b66 | [
"MIT"
] | null | null | null | import arche.rules.duplicates as duplicates
from arche.rules.result import Level, Outcome
from conftest import create_result
import numpy as np
import pandas as pd
import pytest
unique_inputs = [
({}, {}, {Level.INFO: [(Outcome.SKIPPED,)]}),
(
{"id": ["0", "0", "1"]},
{"unique": ["id"]},
... | 29.741667 | 86 | 0.42589 | 345 | 3,569 | 4.266667 | 0.226087 | 0.097826 | 0.043478 | 0.065217 | 0.44769 | 0.431386 | 0.410326 | 0.353261 | 0.256114 | 0.211957 | 0 | 0.021609 | 0.390586 | 3,569 | 119 | 87 | 29.991597 | 0.655172 | 0 | 0 | 0.27027 | 0 | 0 | 0.211264 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 1 | 0.027027 | false | 0 | 0.054054 | 0 | 0.081081 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
90f6bebd46777b051dad40dbf866fa9c85663a73 | 2,602 | py | Python | Question_1.py | Queen-Jonnie/Work | 0197644b09700c8ed9576f8270f3f334588cabc9 | [
"Apache-2.0"
] | null | null | null | Question_1.py | Queen-Jonnie/Work | 0197644b09700c8ed9576f8270f3f334588cabc9 | [
"Apache-2.0"
] | null | null | null | Question_1.py | Queen-Jonnie/Work | 0197644b09700c8ed9576f8270f3f334588cabc9 | [
"Apache-2.0"
] | null | null | null | # This is the word list from where the answers for the hangman game will come from.
word_list = [
2015,
"Fred Swaniker",
"Rwanda and Mauritius",
2,
"Dr, Gaidi Faraj",
"Sila Ogidi",
"Madagascar",
94,
8,
"Mauritius"
]
# Here we are defining the variables 'Right'(for ... | 22.050847 | 117 | 0.595696 | 380 | 2,602 | 4.063158 | 0.321053 | 0.032383 | 0.064767 | 0.09715 | 0.106865 | 0.106865 | 0.080959 | 0.080959 | 0 | 0 | 0 | 0.037419 | 0.291314 | 2,602 | 117 | 118 | 22.239316 | 0.799892 | 0.202921 | 0 | 0.421053 | 0 | 0 | 0.252821 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031579 | false | 0 | 0 | 0 | 0.042105 | 0.031579 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
90f6d9fde4d8fbf472167b25a5be418433abe7aa | 1,416 | py | Python | node-api/get-block-transfers/request.py | Venoox/casper-integrations | 2da32cc5db8278fff09d2a966c24491c6b936c80 | [
"Apache-2.0"
] | 5 | 2021-07-01T13:58:19.000Z | 2022-03-02T10:46:32.000Z | node-api/get-block-transfers/request.py | Venoox/casper-integrations | 2da32cc5db8278fff09d2a966c24491c6b936c80 | [
"Apache-2.0"
] | 3 | 2021-06-07T15:15:36.000Z | 2021-10-10T15:38:44.000Z | node-api/get-block-transfers/request.py | Venoox/casper-integrations | 2da32cc5db8278fff09d2a966c24491c6b936c80 | [
"Apache-2.0"
] | 6 | 2021-06-05T16:04:28.000Z | 2022-01-06T07:30:05.000Z | import json
import os
import pycspr
# A known casper test-net node address.
_NODE_ADDRESS = os.getenv("CASPER_NODE_ADDRESS", "3.136.227.9")
# A known block hash.
_BLOCK_HASH: bytes = bytes.fromhex("c7148e1e2e115d8fba357e04be2073d721847c982dc70d5c36b5f6d3cf66331c")
# A known block height.
_BLOCK_HEIGHT: int = 2065... | 30.782609 | 114 | 0.551554 | 140 | 1,416 | 5.292857 | 0.421429 | 0.089069 | 0.05668 | 0.040486 | 0.107962 | 0.107962 | 0.107962 | 0 | 0 | 0 | 0 | 0.049875 | 0.150424 | 1,416 | 45 | 115 | 31.466667 | 0.566085 | 0.15678 | 0 | 0.142857 | 0 | 0 | 0.457699 | 0.335025 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.047619 | false | 0 | 0.142857 | 0 | 0.190476 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
90f942653019dc0ae99aab8acbed167dceaab3ce | 582 | py | Python | tests/test_util.py | re3turn/twicrawler | 139c8f72a619b188433e32c271e64d3b5dc0c77e | [
"MIT"
] | 14 | 2019-10-18T04:01:38.000Z | 2022-02-24T15:28:54.000Z | tests/test_util.py | re3turn/twicrawler | 139c8f72a619b188433e32c271e64d3b5dc0c77e | [
"MIT"
] | 47 | 2019-10-05T13:32:56.000Z | 2021-10-17T06:40:25.000Z | tests/test_util.py | re3turn/twicrawler | 139c8f72a619b188433e32c271e64d3b5dc0c77e | [
"MIT"
] | 4 | 2019-10-05T13:23:47.000Z | 2020-10-01T05:32:26.000Z | import nose2.tools
from typing import Union
from app.util import has_attributes
class SampleClass:
pass
class TestUtil:
@nose2.tools.params(
('SET_VALUE', True),
(None, False),
('NO_ATTRIBUTE', False),
(False, True),
('', True),
(0, True),
)
def test... | 20.068966 | 89 | 0.575601 | 69 | 582 | 4.724638 | 0.521739 | 0.119632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007353 | 0.298969 | 582 | 28 | 90 | 20.785714 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0.070447 | 0 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.05 | false | 0.05 | 0.15 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
90f9b4568f182777eba66204bdc021fa7e74466b | 5,044 | py | Python | src/config-producer/config_topic.py | DougFigueroa/realde-kafka-assesment | 06582907d05a51a68cc368d00f85ba97f95fd533 | [
"MIT"
] | null | null | null | src/config-producer/config_topic.py | DougFigueroa/realde-kafka-assesment | 06582907d05a51a68cc368d00f85ba97f95fd533 | [
"MIT"
] | null | null | null | src/config-producer/config_topic.py | DougFigueroa/realde-kafka-assesment | 06582907d05a51a68cc368d00f85ba97f95fd533 | [
"MIT"
] | null | null | null | """
This process creates the two kafka topics to be used.
The input-topic with ten partitions and the output-topic with one partition.
Also preloads the kafka cluster with test data (if flag is set to true).
"""
import os
import time
import json
import logging
from confluent_kafka.admin import AdminClient, NewTopic
fro... | 35.77305 | 80 | 0.673672 | 677 | 5,044 | 4.889217 | 0.279173 | 0.036254 | 0.018127 | 0.011782 | 0.144411 | 0.105438 | 0.077039 | 0.01994 | 0 | 0 | 0 | 0.003117 | 0.236717 | 5,044 | 140 | 81 | 36.028571 | 0.856623 | 0.327121 | 0 | 0.052632 | 0 | 0 | 0.217633 | 0.02651 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065789 | false | 0 | 0.078947 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
90f9e5e1aabce04f1b2939743e6a19578017960f | 1,591 | py | Python | anoplura/patterns/body_part.py | rafelafrance/traiter_lice | 29d653a80b57225203c98198c26fd9fcbdb08843 | [
"MIT"
] | null | null | null | anoplura/patterns/body_part.py | rafelafrance/traiter_lice | 29d653a80b57225203c98198c26fd9fcbdb08843 | [
"MIT"
] | 1 | 2020-06-07T18:25:08.000Z | 2020-06-07T18:25:08.000Z | anoplura/patterns/body_part.py | rafelafrance/traiter_lice | 29d653a80b57225203c98198c26fd9fcbdb08843 | [
"MIT"
] | null | null | null | """Extract body part annotations."""
import re
import spacy
from traiter.const import COMMA
from traiter.patterns.matcher_patterns import MatcherPatterns
from anoplura.pylib.const import COMMON_PATTERNS
from anoplura.pylib.const import CONJ
from anoplura.pylib.const import MISSING
from anoplura.pylib.const import REP... | 26.081967 | 68 | 0.60088 | 213 | 1,591 | 4.375587 | 0.319249 | 0.06867 | 0.072961 | 0.094421 | 0.152361 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0089 | 0.22313 | 1,591 | 60 | 69 | 26.516667 | 0.745146 | 0.034569 | 0 | 0 | 0 | 0 | 0.208525 | 0.01377 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0 | 0.170213 | 0 | 0.191489 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
90ff9054dbaf433bbb08f4f56988df6c49765e6b | 838 | py | Python | examples_2d/patch.py | 5A5H/PyFEMP | 94ebf58a52230680fd87b699f295ccb3efa6c46a | [
"MIT"
] | 1 | 2021-12-09T06:40:39.000Z | 2021-12-09T06:40:39.000Z | examples_2d/patch.py | 5A5H/PyFEMP | 94ebf58a52230680fd87b699f295ccb3efa6c46a | [
"MIT"
] | null | null | null | examples_2d/patch.py | 5A5H/PyFEMP | 94ebf58a52230680fd87b699f295ccb3efa6c46a | [
"MIT"
] | null | null | null | # 2D example tensile test
import numpy as np
import matplotlib.pyplot as plt
import PyFEMP
import PyFEMP.elements.Elmt_BaMo_2D as ELEMENT
FEM = PyFEMP.FEM_Simulation(ELEMENT)
n = 4
XI, Elem = PyFEMP.msh_rec([0.0, 0.0], [10.0, 10.0], [n, n], type='Q1')
FEM.Add_Mesh(XI, Elem)
FEM.Add_Material([2100, 0.3], "All")
FEM.A... | 25.393939 | 79 | 0.656325 | 152 | 838 | 3.559211 | 0.421053 | 0.055453 | 0.049908 | 0.036969 | 0.073937 | 0.073937 | 0.073937 | 0 | 0 | 0 | 0 | 0.061392 | 0.125298 | 838 | 33 | 80 | 25.393939 | 0.676671 | 0.027446 | 0 | 0.083333 | 0 | 0 | 0.12285 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2902581b3eec77bc0cde12663550bb823357a3a8 | 547 | py | Python | common-patterns/producer_consumer_client.py | kyeett/websockets-examples | bf4f3d848bd5ac523563fc2a5624aaec85c6124d | [
"MIT"
] | null | null | null | common-patterns/producer_consumer_client.py | kyeett/websockets-examples | bf4f3d848bd5ac523563fc2a5624aaec85c6124d | [
"MIT"
] | null | null | null | common-patterns/producer_consumer_client.py | kyeett/websockets-examples | bf4f3d848bd5ac523563fc2a5624aaec85c6124d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import asyncio
import websockets
import os
port = int(os.environ.get('PORT', '8765'))
async def hello():
print("Starting client on :%s" % port)
async with websockets.connect('ws://localhost:%s' % port) as websocket:
msg = 'Client msg #1'
await websocket.send(msg)
... | 21.038462 | 75 | 0.586837 | 68 | 547 | 4.661765 | 0.632353 | 0.031546 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01737 | 0.263254 | 547 | 25 | 76 | 21.88 | 0.769231 | 0.036563 | 0 | 0 | 0 | 0 | 0.129278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.1875 | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
290322d74e5c2e76a5c2f837892bc099f63d97a5 | 1,073 | py | Python | wagtailflags/forms.py | cfpb/wagtail-flags | 3ef8b51b7e3c8f0f55ec4fbed07668210cc04274 | [
"CC0-1.0"
] | 75 | 2017-02-02T19:25:50.000Z | 2022-03-23T08:09:20.000Z | wagtailflags/forms.py | cfpb/wagtail-flags | 3ef8b51b7e3c8f0f55ec4fbed07668210cc04274 | [
"CC0-1.0"
] | 31 | 2017-02-02T16:48:44.000Z | 2021-12-01T19:36:39.000Z | wagtailflags/forms.py | cfpb/wagtail-flags | 3ef8b51b7e3c8f0f55ec4fbed07668210cc04274 | [
"CC0-1.0"
] | 17 | 2017-01-31T18:52:19.000Z | 2021-09-20T14:34:17.000Z | from django import forms
from flags.forms import FlagStateForm as DjangoFlagsFlagStateForm
from flags.models import FlagState
from flags.sources import get_flags
class NewFlagForm(forms.ModelForm):
name = forms.CharField(label="Name", required=True)
def clean_name(self):
name = self.cleaned_data["na... | 24.953488 | 65 | 0.61603 | 113 | 1,073 | 5.814159 | 0.433628 | 0.041096 | 0.054795 | 0.070015 | 0.100457 | 0.100457 | 0 | 0 | 0 | 0 | 0 | 0 | 0.283318 | 1,073 | 42 | 66 | 25.547619 | 0.854356 | 0 | 0 | 0.121212 | 0 | 0 | 0.076421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.121212 | 0 | 0.424242 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2903ad47c07cf0194fa493bc2ea6ee436c013991 | 9,549 | py | Python | matchingGame.py | VinnieM-3/MemoryGames | 65b92b2eeaa56879fd491b1169bad84dfd9e672e | [
"MIT"
] | null | null | null | matchingGame.py | VinnieM-3/MemoryGames | 65b92b2eeaa56879fd491b1169bad84dfd9e672e | [
"MIT"
] | null | null | null | matchingGame.py | VinnieM-3/MemoryGames | 65b92b2eeaa56879fd491b1169bad84dfd9e672e | [
"MIT"
] | 1 | 2021-03-29T20:31:34.000Z | 2021-03-29T20:31:34.000Z | import pygame
import random
pygame.init()
pygame.font.init()
class Card(object):
""" The Card Class """
def __init__(self, left, top, width, height,
back_color, front_color, solved_color,
display,
font_color, text_font, value=None):
self._rect = pyg... | 43.404545 | 120 | 0.597549 | 1,295 | 9,549 | 4.116602 | 0.169884 | 0.014631 | 0.029263 | 0.018008 | 0.248734 | 0.192459 | 0.139561 | 0.091165 | 0.091165 | 0.019133 | 0 | 0.027468 | 0.31375 | 9,549 | 219 | 121 | 43.60274 | 0.786052 | 0.134569 | 0 | 0.16 | 0 | 0 | 0.017651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068571 | false | 0 | 0.011429 | 0.022857 | 0.125714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2908444cad199e2ad0cbe23b1b79f2e9191d879c | 6,801 | py | Python | packages/python/plotly/plotly/graph_objs/layout/geo/_projection.py | eranws/plotly.py | 5b0e8d3ccab55fe1a6e4ba123cfc9d718a9ffc5a | [
"MIT"
] | null | null | null | packages/python/plotly/plotly/graph_objs/layout/geo/_projection.py | eranws/plotly.py | 5b0e8d3ccab55fe1a6e4ba123cfc9d718a9ffc5a | [
"MIT"
] | null | null | null | packages/python/plotly/plotly/graph_objs/layout/geo/_projection.py | eranws/plotly.py | 5b0e8d3ccab55fe1a6e4ba123cfc9d718a9ffc5a | [
"MIT"
] | null | null | null | from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Projection(_BaseLayoutHierarchyType):
# class properties
# --------------------
_parent_path_str = "layout.geo"
_path_str = "layout.geo.projection"
_valid_props = {"parallels", "rotatio... | 30.773756 | 86 | 0.53845 | 743 | 6,801 | 4.839838 | 0.238223 | 0.016685 | 0.042269 | 0.026696 | 0.398498 | 0.367353 | 0.357898 | 0.343993 | 0.343993 | 0.343993 | 0 | 0.003188 | 0.354213 | 6,801 | 220 | 87 | 30.913636 | 0.815574 | 0.44317 | 0 | 0.111111 | 0 | 0 | 0.24645 | 0.025693 | 0 | 0 | 0 | 0 | 0 | 1 | 0.123457 | false | 0 | 0.024691 | 0.012346 | 0.271605 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
29098333a5185a77af4d5f34240be5bf5108f278 | 1,286 | py | Python | j3d/string_table.py | blank63/j3dview | 498225e12119a9a2b4af9beed1be95f28d8410e2 | [
"MIT"
] | 13 | 2016-04-22T10:45:08.000Z | 2022-02-23T23:50:53.000Z | j3d/string_table.py | blank63/j3dview | 498225e12119a9a2b4af9beed1be95f28d8410e2 | [
"MIT"
] | 1 | 2017-03-19T20:31:03.000Z | 2017-03-20T17:09:36.000Z | j3d/string_table.py | blank63/j3dview | 498225e12119a9a2b4af9beed1be95f28d8410e2 | [
"MIT"
] | 2 | 2016-09-10T07:35:35.000Z | 2021-12-29T23:23:36.000Z | from btypes.big_endian import *
cstring_sjis = CString('shift-jis')
class Header(Struct):
string_count = uint16
__padding__ = Padding(2)
class Entry(Struct):
string_hash = uint16
string_offset = uint16
def unsigned_to_signed_byte(b):
return b - 0x100 if b & 0x80 else b
def calculate_hash(s... | 22.172414 | 72 | 0.650855 | 168 | 1,286 | 4.839286 | 0.315476 | 0.059041 | 0.04059 | 0.066421 | 0.051661 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019507 | 0.242613 | 1,286 | 57 | 73 | 22.561404 | 0.815195 | 0 | 0 | 0.051282 | 0 | 0 | 0.015564 | 0 | 0 | 0 | 0.011673 | 0 | 0 | 1 | 0.102564 | false | 0 | 0.025641 | 0.025641 | 0.358974 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2909ec5a9aa5da7302caa8a0154901f2a00348b4 | 4,549 | py | Python | deConzSensors.py | peterstadler/deConzSensors | c30cd78083cea89f9f0416c046e472774e0bb54d | [
"MIT"
] | null | null | null | deConzSensors.py | peterstadler/deConzSensors | c30cd78083cea89f9f0416c046e472774e0bb54d | [
"MIT"
] | null | null | null | deConzSensors.py | peterstadler/deConzSensors | c30cd78083cea89f9f0416c046e472774e0bb54d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.5
from time import sleep, time
from datetime import datetime, timedelta
from pid.decorator import pidfile
#from subprocess import call
from RPi import GPIO
import requests
import json
#import config
import logging
import signal
import sys
#13: grün
#16: braun
#19: orange
#20: grün
#21: braun
#2... | 36.392 | 130 | 0.603869 | 547 | 4,549 | 4.923218 | 0.358318 | 0.026736 | 0.035648 | 0.023765 | 0.091348 | 0.031192 | 0 | 0 | 0 | 0 | 0 | 0.014697 | 0.237195 | 4,549 | 124 | 131 | 36.685484 | 0.761095 | 0.267312 | 0 | 0.022472 | 0 | 0 | 0.178485 | 0.038182 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067416 | false | 0 | 0.101124 | 0 | 0.191011 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
290cd15c3b088b77632afac10c8cccada862dde1 | 1,882 | bzl | Python | dart/build_rules/internal/pub.bzl | nickclmb/rules_dart | 2cae27be60b858bfa45c649db15946cabb245556 | [
"Apache-2.0"
] | null | null | null | dart/build_rules/internal/pub.bzl | nickclmb/rules_dart | 2cae27be60b858bfa45c649db15946cabb245556 | [
"Apache-2.0"
] | null | null | null | dart/build_rules/internal/pub.bzl | nickclmb/rules_dart | 2cae27be60b858bfa45c649db15946cabb245556 | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | 29.40625 | 74 | 0.685441 | 253 | 1,882 | 4.936759 | 0.478261 | 0.083267 | 0.068054 | 0.025621 | 0.04964 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005178 | 0.179065 | 1,882 | 63 | 75 | 29.873016 | 0.803236 | 0.305526 | 0 | 0 | 0 | 0 | 0.125708 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
290d81aaa0377937c4a0c3f9c72f2fe1d0c01962 | 928 | py | Python | auror_core/__init__.py | millengustavo/auror-core | e215af6a5a1f3822693ad2d0882cbcd7882a2e35 | [
"Apache-2.0"
] | 11 | 2018-12-15T04:07:52.000Z | 2020-12-07T13:06:22.000Z | auror_core/__init__.py | millengustavo/auror-core | e215af6a5a1f3822693ad2d0882cbcd7882a2e35 | [
"Apache-2.0"
] | 12 | 2018-12-15T17:48:59.000Z | 2021-10-14T02:49:06.000Z | auror_core/__init__.py | millengustavo/auror-core | e215af6a5a1f3822693ad2d0882cbcd7882a2e35 | [
"Apache-2.0"
] | 5 | 2019-10-14T02:28:38.000Z | 2020-10-01T14:32:01.000Z | import copy
import os
class Project(object):
def __init__(self, folder, *jobtypes):
self.jobtypes = jobtypes
self.folder = folder
self.params = []
self.version = 1
def is_v2(self):
self.version = 2
return copy.deepcopy(self)
def is_v1(self):
self.... | 23.794872 | 70 | 0.579741 | 111 | 928 | 4.711712 | 0.351351 | 0.095602 | 0.10325 | 0.126195 | 0.143403 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015798 | 0.317888 | 928 | 38 | 71 | 24.421053 | 0.810427 | 0 | 0 | 0.178571 | 0 | 0 | 0.043103 | 0.022629 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.071429 | 0 | 0.392857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2910bdc7ca3987dad2077d2434ff681fd6095d52 | 2,337 | py | Python | app.py | Vaishnavid14/snakegame | cd98926ea23ed8494689ed9b0a6372e469b37083 | [
"MIT"
] | 5 | 2018-06-03T19:07:45.000Z | 2022-03-22T00:58:50.000Z | app.py | Vaishnavid14/snakegame | cd98926ea23ed8494689ed9b0a6372e469b37083 | [
"MIT"
] | 1 | 2020-10-02T03:24:04.000Z | 2020-10-02T03:24:04.000Z | app.py | Vaishnavid14/snakegame | cd98926ea23ed8494689ed9b0a6372e469b37083 | [
"MIT"
] | 3 | 2018-10-13T16:47:09.000Z | 2020-12-11T09:09:36.000Z | '''
Purpose: Server responsible for routing
Author: Md. Tanvir Islam
Command to execute: python app.py
'''
from flask import Flask
from flask import render_template
from flask import json
from flask import request
import random
import sys
app = Flask(__name__)
print("Server is live...", file = s... | 22.04717 | 90 | 0.641849 | 346 | 2,337 | 4.176301 | 0.291908 | 0.071972 | 0.041522 | 0.039446 | 0.179931 | 0.148097 | 0.130104 | 0.130104 | 0.083045 | 0.083045 | 0 | 0.010834 | 0.210098 | 2,337 | 106 | 91 | 22.04717 | 0.771939 | 0.123663 | 0 | 0.233333 | 0 | 0 | 0.105169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0.033333 | 0.3 | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
291160bd0c346287015511cf9e4797089cf45195 | 9,176 | py | Python | shop/views.py | Ayushman-Singh/ecommerce | 78f007fea89ead412d10554e69b9f4854f67d277 | [
"MIT"
] | 1 | 2019-11-25T06:42:47.000Z | 2019-11-25T06:42:47.000Z | shop/views.py | Ayushman-Singh/ecommerce | 78f007fea89ead412d10554e69b9f4854f67d277 | [
"MIT"
] | 12 | 2020-02-12T02:54:15.000Z | 2022-03-12T00:06:14.000Z | shop/views.py | Ayushman-Singh/ecommerce | 78f007fea89ead412d10554e69b9f4854f67d277 | [
"MIT"
] | 3 | 2019-11-25T19:53:18.000Z | 2020-10-01T12:01:24.000Z | from shop.forms import UserForm
from django.views import generic
from django.urls import reverse_lazy
from django.shortcuts import render, redirect, get_object_or_404
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.models import auth
from .models import Product, Contact, Categ... | 32.196491 | 92 | 0.53095 | 930 | 9,176 | 5.172043 | 0.260215 | 0.041164 | 0.04657 | 0.062162 | 0.14262 | 0.081081 | 0.051975 | 0.051975 | 0.034927 | 0.034927 | 0 | 0.005754 | 0.356037 | 9,176 | 285 | 93 | 32.196491 | 0.808259 | 0.104948 | 0 | 0.226415 | 0 | 0 | 0.112644 | 0.011011 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051887 | false | 0.004717 | 0.075472 | 0.004717 | 0.240566 | 0.023585 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2913388d5314daafd30d30378e540525568a897d | 8,843 | py | Python | paas-ce/paas/esb/lib/redis_rate_limit/ratelimit.py | renmcc/bk-PaaS | 1c9e4e9cfb40fc3375cd6b5f08af8c84203de246 | [
"Apache-2.0"
] | 767 | 2019-03-25T06:35:43.000Z | 2022-03-30T08:57:51.000Z | paas-ce/paas/esb/lib/redis_rate_limit/ratelimit.py | renmcc/bk-PaaS | 1c9e4e9cfb40fc3375cd6b5f08af8c84203de246 | [
"Apache-2.0"
] | 194 | 2019-03-29T07:16:41.000Z | 2022-03-30T06:17:49.000Z | paas-ce/paas/esb/lib/redis_rate_limit/ratelimit.py | renmcc/bk-PaaS | 1c9e4e9cfb40fc3375cd6b5f08af8c84203de246 | [
"Apache-2.0"
] | 381 | 2019-03-25T07:19:54.000Z | 2022-03-29T03:22:42.000Z | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... | 36.241803 | 305 | 0.622413 | 1,118 | 8,843 | 4.788014 | 0.266547 | 0.058846 | 0.007472 | 0.019428 | 0.174108 | 0.139361 | 0.139361 | 0.139361 | 0.139361 | 0.139361 | 0 | 0.011167 | 0.281013 | 8,843 | 243 | 306 | 36.390947 | 0.830764 | 0.268913 | 0 | 0.110236 | 0 | 0 | 0.135557 | 0.018648 | 0 | 0 | 0 | 0.004115 | 0 | 1 | 0.102362 | false | 0.031496 | 0.023622 | 0.031496 | 0.259843 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
291353fc46f6b36f8dcc9b15e6f8fd7bfb761f8c | 7,094 | py | Python | tela_cadastro_loja_embala.py | lucasHashi/PyQt5-gerenciador-de-vendas-de-comidas | 56588bfb8543ea070ccb53635486a14ddfda6202 | [
"MIT"
] | 1 | 2020-02-21T22:54:05.000Z | 2020-02-21T22:54:05.000Z | tela_cadastro_loja_embala.py | lucasHashi/PyQt5-gerenciador-de-vendas-de-comidas | 56588bfb8543ea070ccb53635486a14ddfda6202 | [
"MIT"
] | 1 | 2020-01-22T04:27:02.000Z | 2020-01-22T04:27:02.000Z | tela_cadastro_loja_embala.py | lucasHashi/PyQt5-gerenciador-de-vendas-de-comidas | 56588bfb8543ea070ccb53635486a14ddfda6202 | [
"MIT"
] | null | null | null | import sys
from PyQt5 import QtCore, QtGui, QtWidgets, uic
import database_receita
import pyqt5_aux
qt_tela_inicial = "telas/tela_cadastro_loja_embala.ui"
Ui_MainWindow, QtBaseClass = uic.loadUiType(qt_tela_inicial)
class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
switch_tela_gerenciar_loja_embala = QtCor... | 37.734043 | 175 | 0.695235 | 821 | 7,094 | 5.704019 | 0.163216 | 0.070468 | 0.028187 | 0.034166 | 0.386504 | 0.22571 | 0.186633 | 0.129404 | 0.108905 | 0.095025 | 0 | 0.003569 | 0.210037 | 7,094 | 187 | 176 | 37.935829 | 0.832084 | 0.077812 | 0 | 0.252101 | 0 | 0 | 0.020083 | 0.005212 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109244 | false | 0 | 0.033613 | 0 | 0.159664 | 0.008403 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2913e256dfb84f164f18ed5f1a7cbb5235605636 | 2,253 | py | Python | test/test_layers.py | mukeshv0/ParallelWaveGAN | 40fd282d0364c8d8711efed21d9689653d85b3a2 | [
"MIT"
] | null | null | null | test/test_layers.py | mukeshv0/ParallelWaveGAN | 40fd282d0364c8d8711efed21d9689653d85b3a2 | [
"MIT"
] | null | null | null | test/test_layers.py | mukeshv0/ParallelWaveGAN | 40fd282d0364c8d8711efed21d9689653d85b3a2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2019 Tomoki Hayashi
# MIT License (https://opensource.org/licenses/MIT)
import logging
import numpy as np
import torch
from parallel_wavegan.layers import Conv1d
from parallel_wavegan.layers import Conv1d1x1
from parallel_wavegan.layers import Conv2d
from ... | 40.232143 | 98 | 0.626276 | 289 | 2,253 | 4.733564 | 0.276817 | 0.078947 | 0.076023 | 0.087719 | 0.574561 | 0.437135 | 0.345029 | 0.296784 | 0.296784 | 0.296784 | 0 | 0.043709 | 0.248557 | 2,253 | 55 | 99 | 40.963636 | 0.764324 | 0.055038 | 0 | 0.238095 | 0 | 0.02381 | 0.029176 | 0.010824 | 0 | 0 | 0 | 0 | 0.190476 | 1 | 0.047619 | false | 0 | 0.190476 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2914b183f0a48cc6b1b59de7781f38a975146534 | 6,313 | py | Python | Service_Components/Sink/Sink_DataFlow.py | mydata-sdk/mydata-sdk-1.x | 74064d7a42fc0435511eae6e77e49ddc7d9723f3 | [
"MIT"
] | null | null | null | Service_Components/Sink/Sink_DataFlow.py | mydata-sdk/mydata-sdk-1.x | 74064d7a42fc0435511eae6e77e49ddc7d9723f3 | [
"MIT"
] | 2 | 2018-04-20T23:07:01.000Z | 2018-04-21T01:01:20.000Z | Service_Components/Sink/Sink_DataFlow.py | fititnt/mydata-sdk--hiit | 19d7a2ddbc3b5a05665539fbcc7f461c13793e03 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from signed_requests.signed_request_auth import SignedRequest
__author__ = 'alpaloma'
from flask import Blueprint, current_app, request
from helpers import Helpers
import requests
from json import dumps, loads
from DetailedHTTPException import error_handler
from flask_restful import Resource, A... | 42.655405 | 274 | 0.642009 | 803 | 6,313 | 4.865504 | 0.32005 | 0.012286 | 0.0215 | 0.01075 | 0.035833 | 0.01075 | 0 | 0 | 0 | 0 | 0 | 0.022529 | 0.254713 | 6,313 | 148 | 274 | 42.655405 | 0.807864 | 0.296214 | 0 | 0.066667 | 0 | 0 | 0.171967 | 0.006134 | 0 | 0 | 0 | 0.006757 | 0 | 1 | 0.055556 | false | 0 | 0.122222 | 0 | 0.233333 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
29153ac2726304eba8abb15e0e28ea926d19d5f2 | 1,075 | py | Python | alignment/find_bug/is_bored.py | LaudateCorpus1/code-align-evals-data | 97446d992c3785d6605f1500b2c9b95d042e7b9c | [
"MIT"
] | 3 | 2021-07-29T23:40:15.000Z | 2021-08-12T10:18:09.000Z | alignment/find_bug/is_bored.py | openai/code-align-evals-data | 97446d992c3785d6605f1500b2c9b95d042e7b9c | [
"MIT"
] | 1 | 2021-09-19T06:44:15.000Z | 2021-09-19T06:44:15.000Z | alignment/find_bug/is_bored.py | LaudateCorpus1/code-align-evals-data | 97446d992c3785d6605f1500b2c9b95d042e7b9c | [
"MIT"
] | 1 | 2021-09-19T06:44:03.000Z | 2021-09-19T06:44:03.000Z | def is_bored(S):
"""
You'll be given a string of words, and your task is to count the number
of boredoms. A boredom is a sentence that starts with the word "I".
Sentences are delimited by '.', '?' or '!'.
For example:
>>> is_bored("Hello world")
0
>>> is_bored("The sky is blue. The s... | 24.431818 | 115 | 0.584186 | 163 | 1,075 | 3.766871 | 0.564417 | 0.045603 | 0.04886 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019894 | 0.298605 | 1,075 | 43 | 116 | 25 | 0.79443 | 0.555349 | 0 | 0 | 0 | 0 | 0.030612 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.133333 | false | 0 | 0.133333 | 0 | 0.266667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2915a5cec252d8d1a0fc059343505bed4b8a4276 | 23,882 | py | Python | Support/Python/tbdata/printing.py | twitchplayskh/open-brush | 2094339be6851731d293f2574c1fc706ee388d84 | [
"Apache-2.0"
] | null | null | null | Support/Python/tbdata/printing.py | twitchplayskh/open-brush | 2094339be6851731d293f2574c1fc706ee388d84 | [
"Apache-2.0"
] | null | null | null | Support/Python/tbdata/printing.py | twitchplayskh/open-brush | 2094339be6851731d293f2574c1fc706ee388d84 | [
"Apache-2.0"
] | 1 | 2021-02-04T21:45:45.000Z | 2021-02-04T21:45:45.000Z | # Copyright 2020 The Tilt Brush Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | 33.031812 | 166 | 0.638682 | 3,412 | 23,882 | 4.30041 | 0.184349 | 0.012949 | 0.020855 | 0.010359 | 0.16452 | 0.105568 | 0.052137 | 0.020105 | 0.008042 | 0 | 0 | 0.014369 | 0.207395 | 23,882 | 722 | 167 | 33.077562 | 0.76079 | 0.18851 | 0 | 0.131737 | 0 | 0.007984 | 0.144239 | 0.00676 | 0 | 0 | 0 | 0.001385 | 0.00998 | 1 | 0.067864 | false | 0 | 0.047904 | 0.005988 | 0.163673 | 0.047904 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
29160e7d22c4f8b9d6d61e7d7e39b92b66f54862 | 33,150 | py | Python | src/tests/scenarios/Maxwell_Main.py | ian-cooke/basilisk_mag | a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14 | [
"0BSD"
] | null | null | null | src/tests/scenarios/Maxwell_Main.py | ian-cooke/basilisk_mag | a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14 | [
"0BSD"
] | 1 | 2019-03-13T20:52:22.000Z | 2019-03-13T20:52:22.000Z | src/tests/scenarios/Maxwell_Main.py | ian-cooke/basilisk_mag | a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14 | [
"0BSD"
] | null | null | null | ''' '''
'''
ISC License
Copyright (c) 2016, Autonomous Vehicle Systems Lab, University of Colorado at Boulder
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all c... | 45.163488 | 135 | 0.672851 | 3,300 | 33,150 | 6.706364 | 0.238182 | 0.003073 | 0.02318 | 0.021147 | 0.345082 | 0.315395 | 0.302246 | 0.27527 | 0.262482 | 0.260359 | 0 | 0.032498 | 0.238854 | 33,150 | 733 | 136 | 45.225102 | 0.844602 | 0.23098 | 0 | 0.306998 | 0 | 0 | 0.056827 | 0.005281 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002257 | false | 0 | 0.076749 | 0 | 0.081264 | 0.002257 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
29173261ce308b02b389884ae4d161ff95145254 | 2,458 | py | Python | generators/map_parallel.py | CodyKochmann/generators | a637bf9cb5e48251aa800753ba0aa79b3ca18dcf | [
"MIT"
] | 6 | 2017-12-21T04:32:35.000Z | 2022-02-15T07:06:45.000Z | generators/map_parallel.py | CodyKochmann/generators | a637bf9cb5e48251aa800753ba0aa79b3ca18dcf | [
"MIT"
] | 21 | 2017-09-08T13:02:18.000Z | 2020-03-28T19:10:01.000Z | generators/map_parallel.py | CodyKochmann/generators | a637bf9cb5e48251aa800753ba0aa79b3ca18dcf | [
"MIT"
] | 2 | 2018-09-30T16:16:10.000Z | 2019-05-06T02:16:11.000Z | from multiprocessing import Pool
from multiprocessing.pool import ThreadPool
from queue import Queue
from .chunks import chunks
__all__ = 'map_parallel', 'map_multicore', 'map_multithread'
def _pool_map_stream(pool_type, pipe, fn, workers):
assert callable(fn), fn
assert isinstance(workers, int), workers
... | 30.345679 | 78 | 0.627339 | 322 | 2,458 | 4.664596 | 0.301242 | 0.023968 | 0.051931 | 0.047936 | 0.538615 | 0.458722 | 0.458722 | 0.434088 | 0.406125 | 0.346205 | 0 | 0.005615 | 0.275427 | 2,458 | 80 | 79 | 30.725 | 0.837732 | 0.200976 | 0 | 0.383333 | 0 | 0 | 0.03932 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.216667 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2917e89341b91949b9706419236eae722cd755a7 | 492 | py | Python | apps/bot/classes/messages/attachments/AudioAttachment.py | Xoma163/Petrovich | 026e246f6b7d492d9be2dea205e351ac83acd89e | [
"MIT"
] | null | null | null | apps/bot/classes/messages/attachments/AudioAttachment.py | Xoma163/Petrovich | 026e246f6b7d492d9be2dea205e351ac83acd89e | [
"MIT"
] | null | null | null | apps/bot/classes/messages/attachments/AudioAttachment.py | Xoma163/Petrovich | 026e246f6b7d492d9be2dea205e351ac83acd89e | [
"MIT"
] | null | null | null | from apps.bot.classes.messages.attachments.Attachment import Attachment
class AudioAttachment(Attachment):
TYPE = "audio"
def __init__(self):
super().__init__(self.TYPE)
self.duration = None
def parse_vk_audio(self, event_audio):
from petrovich.settings import VK_URL
self... | 30.75 | 80 | 0.691057 | 62 | 492 | 5.145161 | 0.483871 | 0.15674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193089 | 492 | 15 | 81 | 32.8 | 0.803526 | 0 | 0 | 0 | 0 | 0 | 0.150407 | 0.117886 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2917f447ee2f70e3835bc5750b44b618fe249b3e | 623 | py | Python | log.py | GregMorford/testlogging | 446a61f363ad6c1470b6257f6c651021cd904468 | [
"MIT"
] | null | null | null | log.py | GregMorford/testlogging | 446a61f363ad6c1470b6257f6c651021cd904468 | [
"MIT"
] | null | null | null | log.py | GregMorford/testlogging | 446a61f363ad6c1470b6257f6c651021cd904468 | [
"MIT"
] | null | null | null | import logging
## Logging Configuration ##
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
ch = logging.StreamHandler() # console handler
ch.setLevel(logging.INFO)
fh = logging.FileHandler('logfile.txt')
fh.setLevel(logging.INFO)
fmtr = logging.Formatter('%(asctime)s | [%(levelname)s] | (%(name)s... | 32.789474 | 176 | 0.764045 | 85 | 623 | 5.505882 | 0.576471 | 0.096154 | 0.121795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001812 | 0.113965 | 623 | 19 | 177 | 32.789474 | 0.846014 | 0.306581 | 0 | 0 | 0 | 0.083333 | 0.255869 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
29187b96b69d014696758f82a98a43412d184d30 | 552 | py | Python | hackerrank/BetweenTwoSets.py | 0x8b/HackerRank | 45e1a0e2be68950505c0a75218715bd3132a428b | [
"MIT"
] | 3 | 2019-12-04T01:22:34.000Z | 2020-12-10T15:31:00.000Z | hackerrank/BetweenTwoSets.py | 0x8b/HackerRank | 45e1a0e2be68950505c0a75218715bd3132a428b | [
"MIT"
] | null | null | null | hackerrank/BetweenTwoSets.py | 0x8b/HackerRank | 45e1a0e2be68950505c0a75218715bd3132a428b | [
"MIT"
] | 1 | 2019-12-04T01:24:01.000Z | 2019-12-04T01:24:01.000Z | #!/bin/python3
import os
def getTotalX(a, b):
c = 0
for i in range(max(a), min(b) + 1):
if all([i % d == 0 for d in a]) and all([d % i == 0 for d in b]):
c += 1
return c
if __name__ == "__main__":
f = open(os.environ["OUTPUT_PATH"], "w")
nm = input().spl... | 17.25 | 74 | 0.461957 | 87 | 552 | 2.827586 | 0.494253 | 0.04878 | 0.089431 | 0.056911 | 0.211382 | 0.211382 | 0 | 0 | 0 | 0 | 0 | 0.021858 | 0.336957 | 552 | 31 | 75 | 17.806452 | 0.650273 | 0.023551 | 0 | 0 | 0 | 0 | 0.043393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
29192cb1930eb4fc8b54b5806896af754bbbc8d5 | 17,628 | py | Python | utils.py | LlamaSi/Adaptive-PSGAIL | 737cbc68c04d706da6a0bde1cb2a2c3159189f5e | [
"MIT"
] | 10 | 2019-01-27T21:03:31.000Z | 2020-09-03T16:26:23.000Z | utils.py | LlamaSi/Adaptive-PSGAIL | 737cbc68c04d706da6a0bde1cb2a2c3159189f5e | [
"MIT"
] | 1 | 2019-07-30T14:29:52.000Z | 2019-08-12T12:58:37.000Z | utils.py | LlamaSi/Adaptive-PSGAIL | 737cbc68c04d706da6a0bde1cb2a2c3159189f5e | [
"MIT"
] | 5 | 2019-03-28T18:54:33.000Z | 2022-03-14T06:32:53.000Z |
import h5py
import numpy as np
import os, pdb
import tensorflow as tf
from rllab.envs.base import EnvSpec
from rllab.envs.normalized_env import normalize as normalize_env
import rllab.misc.logger as logger
from sandbox.rocky.tf.algos.trpo import TRPO
from sandbox.rocky.tf.policies.gaussian_mlp_policy import Gaussian... | 33.705545 | 97 | 0.652144 | 2,163 | 17,628 | 5.061026 | 0.212668 | 0.022563 | 0.017539 | 0.008221 | 0.236869 | 0.141409 | 0.093542 | 0.067598 | 0.067598 | 0.067598 | 0 | 0.017995 | 0.265487 | 17,628 | 522 | 98 | 33.770115 | 0.827464 | 0.063195 | 0 | 0.165865 | 0 | 0 | 0.059277 | 0.036777 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055288 | false | 0 | 0.067308 | 0.004808 | 0.175481 | 0.014423 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
291b3aad4ce914a07f4302fc64bb71bcd2cc87d1 | 8,429 | py | Python | setup_py_upgrade.py | asottile/setup-py-upgrade | 873c54ec4f112ed0150a8cffcc9990291568d634 | [
"MIT"
] | 87 | 2019-02-03T04:53:54.000Z | 2022-03-25T07:36:46.000Z | setup_py_upgrade.py | asottile/setup-py-upgrade | 873c54ec4f112ed0150a8cffcc9990291568d634 | [
"MIT"
] | 15 | 2019-03-12T04:14:35.000Z | 2022-02-22T17:35:09.000Z | setup_py_upgrade.py | asottile/setup-py-upgrade | 873c54ec4f112ed0150a8cffcc9990291568d634 | [
"MIT"
] | 8 | 2019-03-12T13:54:25.000Z | 2022-02-22T17:40:17.000Z | import argparse
import ast
import configparser
import io
import os.path
from typing import Any
from typing import Dict
from typing import Optional
from typing import Sequence
METADATA_KEYS = frozenset((
'name', 'version', 'url', 'download_url', 'project_urls', 'author',
'author_email', 'maintainer', 'maintaine... | 36.489177 | 79 | 0.553684 | 989 | 8,429 | 4.562184 | 0.201213 | 0.037234 | 0.017952 | 0.022606 | 0.194149 | 0.090204 | 0.035239 | 0 | 0 | 0 | 0 | 0.006411 | 0.31534 | 8,429 | 230 | 80 | 36.647826 | 0.775429 | 0.039388 | 0 | 0.072222 | 0 | 0 | 0.143317 | 0.023391 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.055556 | 0.011111 | 0.138889 | 0.005556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
291d1bd54ce729e58181e2031ec946c7078f3c67 | 726 | py | Python | 2019/tests/test_Advent2019_10.py | davidxbuck/advent2018 | eed5424a8008b9c0829f5872ad6cd469ce9f70b9 | [
"MIT"
] | 1 | 2021-12-11T02:19:28.000Z | 2021-12-11T02:19:28.000Z | 2019/tests/test_Advent2019_10.py | davidxbuck/advent2018 | eed5424a8008b9c0829f5872ad6cd469ce9f70b9 | [
"MIT"
] | null | null | null | 2019/tests/test_Advent2019_10.py | davidxbuck/advent2018 | eed5424a8008b9c0829f5872ad6cd469ce9f70b9 | [
"MIT"
] | 1 | 2020-12-08T04:31:46.000Z | 2020-12-08T04:31:46.000Z | # pytest tests
import numpy as np
from Advent2019_10 import Day10
class TestDay10():
def test_instantiate(self):
test = Day10('../tests/test_Advent2019_10a.txt')
grid = ['.#..#',
'.....',
'#####',
'....#',
'...##']
grid = [li... | 30.25 | 71 | 0.488981 | 71 | 726 | 4.901408 | 0.492958 | 0.103448 | 0.103448 | 0.091954 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04142 | 0.301653 | 726 | 23 | 72 | 31.565217 | 0.64497 | 0.016529 | 0 | 0 | 0 | 0 | 0.09564 | 0.045007 | 0 | 0 | 0 | 0 | 0.277778 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
291d74417cd28ab0a723038e9fd04c2e0bc8cdde | 370 | py | Python | Hash Map/448. Find All Numbers Disappeared in an Array.py | xli1110/LC | 3c18b8809c5a21a62903060eef659654e0595036 | [
"MIT"
] | 2 | 2021-04-02T11:57:46.000Z | 2021-04-02T11:57:47.000Z | Hash Map/448. Find All Numbers Disappeared in an Array.py | xli1110/LC | 3c18b8809c5a21a62903060eef659654e0595036 | [
"MIT"
] | null | null | null | Hash Map/448. Find All Numbers Disappeared in an Array.py | xli1110/LC | 3c18b8809c5a21a62903060eef659654e0595036 | [
"MIT"
] | null | null | null | class Solution:
def findDisappearedNumbers(self, nums: List[int]) -> List[int]:
if len(nums) < 1:
raise Exception("Invalid Array")
n = len(nums)
res = []
s = set()
for x in nums:
s.add(x)
for i in range(1, n + 1):
if i not in s:
... | 20.555556 | 67 | 0.454054 | 48 | 370 | 3.5 | 0.583333 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.432432 | 370 | 17 | 68 | 21.764706 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0.035135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
292038ace9f7b5e532a8a7cf41828bfb945d013c | 2,844 | py | Python | stardist/stardist_impl/predict_stardist_3d.py | constantinpape/deep-cell | d69cc9710af07428c79e5642febe3a39e33d11a4 | [
"MIT"
] | null | null | null | stardist/stardist_impl/predict_stardist_3d.py | constantinpape/deep-cell | d69cc9710af07428c79e5642febe3a39e33d11a4 | [
"MIT"
] | 1 | 2020-07-08T13:16:32.000Z | 2020-07-08T13:18:24.000Z | stardist/stardist_impl/predict_stardist_3d.py | constantinpape/deep-cell | d69cc9710af07428c79e5642febe3a39e33d11a4 | [
"MIT"
] | null | null | null | import argparse
import os
from glob import glob
import imageio
from tqdm import tqdm
from csbdeep.utils import normalize
from stardist.models import StarDist3D
def get_image_files(root, image_folder, ext):
# get the image and label mask paths and validate them
image_pattern = os.path.join(root, image_folder... | 36.935065 | 112 | 0.710267 | 387 | 2,844 | 5.033592 | 0.338501 | 0.035934 | 0.043635 | 0.017454 | 0.104723 | 0.085216 | 0.085216 | 0.053388 | 0.053388 | 0 | 0 | 0.004741 | 0.184248 | 2,844 | 76 | 113 | 37.421053 | 0.834914 | 0.109001 | 0 | 0 | 0 | 0 | 0.20459 | 0 | 0 | 0 | 0 | 0 | 0.02 | 1 | 0.08 | false | 0 | 0.14 | 0 | 0.24 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
29206dba9d120e61ae35f770db7e748c8ab7a64c | 6,095 | py | Python | src/krylov/gmres.py | nschloe/krylov | 58813233ff732111aa56f7b1d71908fda78080be | [
"MIT"
] | 36 | 2020-06-17T15:51:16.000Z | 2021-12-30T04:33:11.000Z | src/krylov/gmres.py | nschloe/krylov | 58813233ff732111aa56f7b1d71908fda78080be | [
"MIT"
] | 26 | 2020-08-27T17:38:15.000Z | 2021-11-11T20:00:07.000Z | src/krylov/gmres.py | nschloe/krylov | 58813233ff732111aa56f7b1d71908fda78080be | [
"MIT"
] | 5 | 2021-05-20T19:47:44.000Z | 2022-01-03T00:20:33.000Z | """
Y. Saad, M. Schultz,
GMRES: a generalized minimal residual algorithm for solving nonsymmetric linear systems,
SIAM J. Sci. and Stat. Comput., 7(3), 856–869, 1986,
<https://doi.org/10.1137/0907058>.
Other implementations:
<https://petsc.org/release/docs/manualpages/KSP/KSPGMRES.html>
"""
from __future__ import anno... | 27.331839 | 88 | 0.55767 | 897 | 6,095 | 3.683389 | 0.243032 | 0.025424 | 0.02724 | 0.010896 | 0.118644 | 0.071731 | 0.026634 | 0.026634 | 0.026634 | 0.026634 | 0 | 0.025222 | 0.316981 | 6,095 | 222 | 89 | 27.454955 | 0.768196 | 0.146678 | 0 | 0.176101 | 0 | 0 | 0.009301 | 0 | 0 | 0 | 0 | 0 | 0.031447 | 1 | 0.031447 | false | 0 | 0.050314 | 0 | 0.132075 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2920920b3d2a50539ee42e0e75f03efbd2cffd7f | 7,321 | py | Python | backend-tests/tests/test_account_suspension.py | drewmoseley/integration | 37f6374eb5faa710d14861cf5ed82e8f9cf0b149 | [
"Apache-2.0"
] | null | null | null | backend-tests/tests/test_account_suspension.py | drewmoseley/integration | 37f6374eb5faa710d14861cf5ed82e8f9cf0b149 | [
"Apache-2.0"
] | 98 | 2020-09-21T06:00:11.000Z | 2022-03-28T01:17:19.000Z | backend-tests/tests/test_account_suspension.py | drewmoseley/integration | 37f6374eb5faa710d14861cf5ed82e8f9cf0b149 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Northern.tech AS
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 31.021186 | 84 | 0.615353 | 923 | 7,321 | 4.72156 | 0.208017 | 0.032125 | 0.056677 | 0.074117 | 0.616567 | 0.58123 | 0.563791 | 0.563791 | 0.563791 | 0.563791 | 0 | 0.018793 | 0.280426 | 7,321 | 235 | 85 | 31.153191 | 0.808466 | 0.120339 | 0 | 0.6125 | 0 | 0 | 0.040718 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.0375 | false | 0.0125 | 0.06875 | 0 | 0.1125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
292246bd8b4a4adc3e588a4c80c7a0ed3da6e0ed | 8,985 | py | Python | src/RepairManager/rules/ecc_reboot_node_rule.py | RichardZhaoW/DLWorkspace | 27d3a3a82e59305bdc67dbfd69098d493f8b3cd5 | [
"MIT"
] | 2 | 2019-10-16T23:54:34.000Z | 2019-11-07T00:08:32.000Z | src/RepairManager/rules/ecc_reboot_node_rule.py | RichardZhaoW/DLWorkspace | 27d3a3a82e59305bdc67dbfd69098d493f8b3cd5 | [
"MIT"
] | null | null | null | src/RepairManager/rules/ecc_reboot_node_rule.py | RichardZhaoW/DLWorkspace | 27d3a3a82e59305bdc67dbfd69098d493f8b3cd5 | [
"MIT"
] | null | null | null | import os, sys
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
import json
import logging
import yaml
import requests
import time
from actions.migrate_job_action import MigrateJobAction
from actions.send_alert_action import SendAlertAction
from actions.reboot_node_action import RebootNodeAction
from action... | 45.609137 | 114 | 0.650863 | 1,192 | 8,985 | 4.573826 | 0.188758 | 0.014674 | 0.017608 | 0.023478 | 0.387748 | 0.31328 | 0.260455 | 0.176266 | 0.148753 | 0.148753 | 0 | 0.001798 | 0.257095 | 8,985 | 196 | 115 | 45.841837 | 0.814981 | 0.043072 | 0 | 0.1375 | 0 | 0.0125 | 0.143223 | 0.033186 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08125 | false | 0.00625 | 0.09375 | 0 | 0.2125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
292271c92e27cc20ceca6c25b6dec338877c3ea5 | 2,735 | py | Python | work/dib-ipa-element/virtmedia-netconf/ironic-bmc-hardware-manager/src/ironic_bmc_hardware_manager/bmc.py | alexandruavadanii/ipa-deployer | a15c349823c65b15ac6a72a73805c2cc342cb80c | [
"Apache-2.0"
] | null | null | null | work/dib-ipa-element/virtmedia-netconf/ironic-bmc-hardware-manager/src/ironic_bmc_hardware_manager/bmc.py | alexandruavadanii/ipa-deployer | a15c349823c65b15ac6a72a73805c2cc342cb80c | [
"Apache-2.0"
] | null | null | null | work/dib-ipa-element/virtmedia-netconf/ironic-bmc-hardware-manager/src/ironic_bmc_hardware_manager/bmc.py | alexandruavadanii/ipa-deployer | a15c349823c65b15ac6a72a73805c2cc342cb80c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Nokia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, softwa... | 32.951807 | 95 | 0.638026 | 324 | 2,735 | 5.237654 | 0.484568 | 0.035357 | 0.049499 | 0.04066 | 0.079552 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007572 | 0.275686 | 2,735 | 82 | 96 | 33.353659 | 0.849066 | 0.251188 | 0 | 0.081633 | 0 | 0 | 0.107108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061224 | false | 0 | 0.102041 | 0 | 0.306122 | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2922d150cdfae741ee2f9afa07a050efc52cf07f | 2,344 | py | Python | museum_site/context_processors.py | DrDos0016/z2 | b63e77129fefcb4f990ee1cb9952f4f708ee3a2b | [
"MIT"
] | 3 | 2017-05-01T19:53:57.000Z | 2018-08-27T20:14:43.000Z | museum_site/context_processors.py | DrDos0016/z2 | b63e77129fefcb4f990ee1cb9952f4f708ee3a2b | [
"MIT"
] | null | null | null | museum_site/context_processors.py | DrDos0016/z2 | b63e77129fefcb4f990ee1cb9952f4f708ee3a2b | [
"MIT"
] | 1 | 2018-08-27T20:14:46.000Z | 2018-08-27T20:14:46.000Z | from django.core.cache import cache
from datetime import datetime
from museum_site.models.detail import Detail
from museum_site.models.file import File
from museum_site.constants import TERMS_DATE
from museum_site.common import (
DEBUG, EMAIL_ADDRESS, BOOT_TS, CSS_INCLUDES, UPLOAD_CAP, env_from_host,
qs_sans
... | 30.441558 | 78 | 0.615614 | 306 | 2,344 | 4.535948 | 0.349673 | 0.030259 | 0.050432 | 0.034582 | 0.028818 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002807 | 0.240188 | 2,344 | 76 | 79 | 30.842105 | 0.77653 | 0.079778 | 0 | 0 | 0 | 0 | 0.15539 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019608 | false | 0 | 0.137255 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
29240155883a13930b0a3ee6e6cac004ba5b943f | 671 | py | Python | misago/users/views/avatarserver.py | HenryChenV/iJiangNan | 68f156d264014939f0302222e16e3125119dd3e3 | [
"MIT"
] | 1 | 2017-07-25T03:04:36.000Z | 2017-07-25T03:04:36.000Z | misago/users/views/avatarserver.py | HenryChenV/iJiangNan | 68f156d264014939f0302222e16e3125119dd3e3 | [
"MIT"
] | null | null | null | misago/users/views/avatarserver.py | HenryChenV/iJiangNan | 68f156d264014939f0302222e16e3125119dd3e3 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.contrib.staticfiles.templatetags.staticfiles import static
from django.shortcuts import redirect
from misago.conf import settings
UserModel = get_user_model()
def user_avatar(request, pk, size):
size = int(size)
try:
user = UserModel.objec... | 23.964286 | 70 | 0.724292 | 86 | 671 | 5.511628 | 0.418605 | 0.063291 | 0.07173 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001838 | 0.18927 | 671 | 27 | 71 | 24.851852 | 0.869485 | 0 | 0 | 0 | 0 | 0 | 0.010432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.055556 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2924b038d09501817eb856ed997e3ffe8a6813db | 14,501 | py | Python | csbdeep/internals/nets.py | papkov/CSBDeep | 5624919fa71007bb2258592927e267967c62e25e | [
"BSD-3-Clause"
] | 2 | 2019-07-20T08:55:29.000Z | 2019-07-20T09:00:45.000Z | csbdeep/internals/nets.py | papkov/CSBDeep | 5624919fa71007bb2258592927e267967c62e25e | [
"BSD-3-Clause"
] | null | null | null | csbdeep/internals/nets.py | papkov/CSBDeep | 5624919fa71007bb2258592927e267967c62e25e | [
"BSD-3-Clause"
] | null | null | null | from __future__ import print_function, unicode_literals, absolute_import, division
from six.moves import range, zip, map, reduce, filter
from keras.layers import Input, Conv2D, Conv3D, Activation, Lambda
from keras.models import Model
from keras.layers.merge import Add, Concatenate
import tensorflow as tf
from keras i... | 42.65 | 194 | 0.626371 | 2,097 | 14,501 | 4.113019 | 0.169289 | 0.01113 | 0.016696 | 0.01658 | 0.384348 | 0.335304 | 0.284406 | 0.268754 | 0.229565 | 0.203246 | 0 | 0.015829 | 0.255017 | 14,501 | 340 | 195 | 42.65 | 0.78256 | 0.359355 | 0 | 0.312102 | 0 | 0.006369 | 0.086377 | 0.018821 | 0 | 0 | 0 | 0.008824 | 0 | 1 | 0.050955 | false | 0 | 0.070064 | 0.012739 | 0.171975 | 0.006369 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2926efa5e44ae3f3f146e72b77c97765b7854b95 | 1,602 | py | Python | src/inf/runtime_data.py | feagi/feagi-core | d83c51480fcbe153fa14b2360b4d61f6ae4e2811 | [
"Apache-2.0"
] | 11 | 2020-02-18T16:03:10.000Z | 2021-12-06T19:53:06.000Z | src/inf/runtime_data.py | feagi/feagi-core | d83c51480fcbe153fa14b2360b4d61f6ae4e2811 | [
"Apache-2.0"
] | 34 | 2019-12-17T04:59:42.000Z | 2022-01-18T20:58:46.000Z | src/inf/runtime_data.py | feagi/feagi-core | d83c51480fcbe153fa14b2360b4d61f6ae4e2811 | [
"Apache-2.0"
] | 3 | 2019-12-16T06:09:56.000Z | 2020-10-18T12:01:31.000Z | parameters = {}
genome = {}
genome_stats = {}
genome_test_stats = []
brain = {}
cortical_list = []
cortical_map = {}
intercortical_mapping = []
block_dic = {}
upstream_neurons = {}
memory_list = {}
activity_stats = {}
temp_neuron_list = []
original_genome_id = []
fire_list = []
termination_flag = False
variation_counte... | 20.025 | 65 | 0.737828 | 202 | 1,602 | 5.351485 | 0.579208 | 0.027752 | 0.025902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008772 | 0.146067 | 1,602 | 79 | 66 | 20.278481 | 0.781433 | 0.049938 | 0 | 0 | 0 | 0 | 0.003294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2928594f2134be43b667f4c09f4d5b6dedb23ea3 | 494 | py | Python | scripts/topo_countries.py | taufikhe/Censof-Mini-Project | 44ced8c3176a58705de4d247c3ec79c664a4951f | [
"MIT"
] | null | null | null | scripts/topo_countries.py | taufikhe/Censof-Mini-Project | 44ced8c3176a58705de4d247c3ec79c664a4951f | [
"MIT"
] | null | null | null | scripts/topo_countries.py | taufikhe/Censof-Mini-Project | 44ced8c3176a58705de4d247c3ec79c664a4951f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import subprocess
from geonamescache import GeonamesCache
gc = GeonamesCache()
toposrc = '../data/states-provinces.json'
for iso2, country in gc.get_countries().items():
iso3 = country['iso3']
topojson = 'mapshaper -i {0} -filter \'"{1}" == adm0_a3\' -filter-fiel... | 32.933333 | 115 | 0.694332 | 65 | 494 | 5.246154 | 0.661538 | 0.082111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023202 | 0.12753 | 494 | 15 | 116 | 32.933333 | 0.767981 | 0.08502 | 0 | 0 | 0 | 0 | 0.334812 | 0.121951 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
29288c1ce5e2846258708e5fc3231b1fb34cbf4a | 10,768 | py | Python | nordb/database/nordic2sql.py | MrCubanfrog/NorDB | 8348733d10799e9ae40744fbd7b200fcc09a9a3a | [
"MIT"
] | 1 | 2021-06-08T20:46:10.000Z | 2021-06-08T20:46:10.000Z | nordb/database/nordic2sql.py | MrCubanfrog/NorDB | 8348733d10799e9ae40744fbd7b200fcc09a9a3a | [
"MIT"
] | null | null | null | nordb/database/nordic2sql.py | MrCubanfrog/NorDB | 8348733d10799e9ae40744fbd7b200fcc09a9a3a | [
"MIT"
] | null | null | null | """
This module contains all information for pushing a NordicEvent object into the database.
Functions and Classes
---------------------
"""
import psycopg2
import os
import re
import datetime
from nordb.core import usernameUtilities
from nordb.database import creationInfo
INSERT_COMMANDS = {
1:... | 42.393701 | 157 | 0.474554 | 1,070 | 10,768 | 4.529907 | 0.207477 | 0.030122 | 0.04085 | 0.05034 | 0.184031 | 0.118836 | 0.061069 | 0.033423 | 0.033423 | 0.028059 | 0 | 0.010311 | 0.441586 | 10,768 | 253 | 158 | 42.561265 | 0.795776 | 0.097511 | 0 | 0.232323 | 0 | 0.035354 | 0.274312 | 0.048988 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010101 | false | 0 | 0.030303 | 0 | 0.050505 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
29289d486b584b87f177ccbe912f80c30f1f15ef | 973 | py | Python | movie_trailer_website/media.py | mradenovic/movie-trailer-website | 08f53af08f9aeaa1deb5a10fa391e02aa7274ca3 | [
"MIT"
] | null | null | null | movie_trailer_website/media.py | mradenovic/movie-trailer-website | 08f53af08f9aeaa1deb5a10fa391e02aa7274ca3 | [
"MIT"
] | null | null | null | movie_trailer_website/media.py | mradenovic/movie-trailer-website | 08f53af08f9aeaa1deb5a10fa391e02aa7274ca3 | [
"MIT"
] | null | null | null | """This module contains class definitions for storing media files"""
import webbrowser
class Movie():
"""Movie class defines movies.
Attributes:
movie_title (str): Title of the movie
movie_storyline (str): Sort description of the movie
poster_image (str): Url of the poster image
... | 33.551724 | 84 | 0.651593 | 118 | 973 | 5.169492 | 0.279661 | 0.065574 | 0.065574 | 0.072131 | 0.465574 | 0.465574 | 0.465574 | 0.465574 | 0.465574 | 0.465574 | 0 | 0 | 0.274409 | 973 | 28 | 85 | 34.75 | 0.864023 | 0.581706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
292a0a9f6e7bb7e898c14f4da99751f0b33adf70 | 1,700 | py | Python | 201-vmss-bottle-autoscale/workserver.py | kollexy/azure-quickstart-templates | 02dd10e4004db1f52e772a474d460620ff975270 | [
"MIT"
] | 10 | 2020-03-17T14:22:57.000Z | 2022-02-12T02:42:30.000Z | 201-vmss-bottle-autoscale/workserver.py | kollexy/azure-quickstart-templates | 02dd10e4004db1f52e772a474d460620ff975270 | [
"MIT"
] | 17 | 2020-08-12T09:28:42.000Z | 2021-10-11T05:16:45.000Z | 201-vmss-bottle-autoscale/workserver.py | gjlumsden/azure-quickstart-templates | 70935bff823b8650386f6d3223dc199a66c4efd2 | [
"MIT"
] | 16 | 2019-06-28T09:49:29.000Z | 2022-02-05T16:35:36.000Z | # workserver.py - simple HTTP server with a do_work / stop_work API
# GET /do_work activates a worker thread which uses CPU
# GET /stop_work signals worker thread to stop
import math
import socket
import threading
import time
from bottle import route, run
hostname = socket.gethostname()
hostport = 9000
keepworking = ... | 25 | 106 | 0.657059 | 232 | 1,700 | 4.75431 | 0.375 | 0.130553 | 0.021759 | 0.032638 | 0.036265 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008982 | 0.214118 | 1,700 | 67 | 107 | 25.373134 | 0.816617 | 0.234706 | 0 | 0.175 | 0 | 0.075 | 0.293798 | 0.110078 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.025 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
292abc115693fa0811cb421e9f5c9743d0e6e3a6 | 7,521 | py | Python | year_3/databases_sem1/lab1/cli.py | honchardev/KPI | f8425681857c02a67127ffb05c0af0563a8473e1 | [
"MIT"
] | null | null | null | year_3/databases_sem1/lab1/cli.py | honchardev/KPI | f8425681857c02a67127ffb05c0af0563a8473e1 | [
"MIT"
] | 21 | 2020-03-24T16:26:04.000Z | 2022-02-18T15:56:16.000Z | year_3/databases_sem1/lab1/cli.py | honchardev/KPI | f8425681857c02a67127ffb05c0af0563a8473e1 | [
"MIT"
] | null | null | null | from maxdb import DB
def runtime_on_any_exception(func):
def decorate(*args, **kwargs):
try:
func(*args, **kwargs)
except:
raise RuntimeError
return decorate
class CLIUtils(object):
DEFAULT_PATH = 'storage.json'
def __init__(self):
self._db = None
... | 37.049261 | 108 | 0.505252 | 820 | 7,521 | 4.406098 | 0.2 | 0.032383 | 0.023249 | 0.034874 | 0.242735 | 0.156657 | 0.07473 | 0.059784 | 0.028785 | 0.028785 | 0 | 0.011811 | 0.35833 | 7,521 | 202 | 109 | 37.232673 | 0.736842 | 0.009706 | 0 | 0.159341 | 0 | 0 | 0.273766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087912 | false | 0.010989 | 0.005495 | 0.010989 | 0.126374 | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
292adf5e7c8f6222d531917fc0a7844f832f27cb | 1,348 | py | Python | Ar_Script/past/eg_用户信息用户界面.py | archerckk/PyTest | 610dd89df8d70c096f4670ca11ed2f0ca3196ca5 | [
"MIT"
] | null | null | null | Ar_Script/past/eg_用户信息用户界面.py | archerckk/PyTest | 610dd89df8d70c096f4670ca11ed2f0ca3196ca5 | [
"MIT"
] | 1 | 2020-01-19T01:19:57.000Z | 2020-01-19T01:19:57.000Z | Ar_Script/past/eg_用户信息用户界面.py | archerckk/PyTest | 610dd89df8d70c096f4670ca11ed2f0ca3196ca5 | [
"MIT"
] | null | null | null | import easygui as g
# judge=1
# def judge_null(tmp):
# if tmp.isspace()or len(tmp)==0:
# return judge==0
#
# while 1:
# user_info=g.multenterbox(title='账号中心',
# msg='【*用户名】为必填项\t【*真实姓名】为必填项\t【*手机号码】为必填项\t【*E-mail】为必填项',
# fields=['*用户名','*真实姓名','固定电话','*手... | 29.304348 | 85 | 0.568249 | 192 | 1,348 | 3.848958 | 0.338542 | 0.094723 | 0.081191 | 0.108254 | 0.278755 | 0.167794 | 0.05954 | 0 | 0 | 0 | 0 | 0.01434 | 0.224036 | 1,348 | 46 | 86 | 29.304348 | 0.692161 | 0.543769 | 0 | 0.111111 | 0 | 0 | 0.106419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
292ba35b429971f678a3c9a45a66bf36fb9ad5d7 | 962 | py | Python | examples/pspm_pupil/model_defs.py | fmelinscak/cognibench | 372513b8756a342c0df222dcea5ff6d1d69fbcec | [
"MIT"
] | 3 | 2020-07-31T00:42:40.000Z | 2021-03-19T03:08:19.000Z | examples/pspm_pupil/model_defs.py | fmelinscak/cognibench | 372513b8756a342c0df222dcea5ff6d1d69fbcec | [
"MIT"
] | null | null | null | examples/pspm_pupil/model_defs.py | fmelinscak/cognibench | 372513b8756a342c0df222dcea5ff6d1d69fbcec | [
"MIT"
] | 1 | 2020-11-13T23:13:34.000Z | 2020-11-13T23:13:34.000Z | from cognibench.models import CNBModel
from cognibench.capabilities import ContinuousAction, ContinuousObservation
from cognibench.continuous import ContinuousSpace
from cognibench.models.wrappers import MatlabWrapperMixin
class PsPMModel(MatlabWrapperMixin, CNBModel, ContinuousAction, ContinuousObservation):
nam... | 34.357143 | 87 | 0.705821 | 98 | 962 | 6.571429 | 0.428571 | 0.086957 | 0.065217 | 0.055901 | 0.118012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222453 | 962 | 27 | 88 | 35.62963 | 0.860963 | 0 | 0 | 0 | 0 | 0 | 0.010395 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
29333564f5a91482a951f19d8cd3aa5ce9a5bfe9 | 6,505 | py | Python | rubric_sampling/experiments/train_rnn.py | YangAzure/rubric-sampling-public | 24e8c6bc154633566f93a20661c67484029c3591 | [
"MIT"
] | 20 | 2019-01-29T03:21:40.000Z | 2022-03-04T08:52:24.000Z | rubric_sampling/experiments/train_rnn.py | YangAzure/rubric-sampling-public | 24e8c6bc154633566f93a20661c67484029c3591 | [
"MIT"
] | null | null | null | rubric_sampling/experiments/train_rnn.py | YangAzure/rubric-sampling-public | 24e8c6bc154633566f93a20661c67484029c3591 | [
"MIT"
] | 5 | 2019-08-31T11:49:23.000Z | 2021-03-18T13:22:58.000Z | r"""Train a neural network to predict feedback for a program string."""
from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
import os
import sys
import random
import numpy as np
from tqdm import tqdm
import torch
import torch.optim as optim
import torch.utils.... | 39.907975 | 107 | 0.632283 | 880 | 6,505 | 4.401136 | 0.198864 | 0.030209 | 0.020914 | 0.026336 | 0.396334 | 0.39117 | 0.327395 | 0.255099 | 0.201394 | 0.150271 | 0 | 0.005546 | 0.251653 | 6,505 | 162 | 108 | 40.154321 | 0.790058 | 0.012452 | 0 | 0.214286 | 0 | 0 | 0.067934 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 1 | 0.015873 | false | 0 | 0.142857 | 0 | 0.174603 | 0.031746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2933954edd28122f5eaf709201de52733e9a677c | 1,232 | py | Python | python/code.py | Warabhi/ga-learner-dsmp-repo | 610a7e6cc161a1fec26911f4e054f2a325b5f5fc | [
"MIT"
] | null | null | null | python/code.py | Warabhi/ga-learner-dsmp-repo | 610a7e6cc161a1fec26911f4e054f2a325b5f5fc | [
"MIT"
] | null | null | null | python/code.py | Warabhi/ga-learner-dsmp-repo | 610a7e6cc161a1fec26911f4e054f2a325b5f5fc | [
"MIT"
] | null | null | null | # --------------
# Code starts here
class_1 = ['Geoffrey Hinton' , 'Andrew Ng' , 'Sebastian Raschka' , 'Yoshua Bengio']
class_2 = ['Hilary Mason' , 'Carla Gentry' , 'Corinna Cortes']
new_class = class_1 + class_2
print(new_class)
new_class.append('Peter Warden')
print(new_class)
del new_class[5]
print(new_class)
# Code... | 23.245283 | 90 | 0.668019 | 167 | 1,232 | 4.766467 | 0.401198 | 0.060302 | 0.070352 | 0.040201 | 0.065327 | 0.065327 | 0 | 0 | 0 | 0 | 0 | 0.035577 | 0.155844 | 1,232 | 52 | 91 | 23.692308 | 0.729808 | 0.163961 | 0 | 0.107143 | 0 | 0 | 0.237673 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.392857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
29378cd6da10a2986ee1d848cbb7564bb46bcde6 | 15,518 | py | Python | spore/spore.py | pavankkota/SPoRe | 3062368a84130ec64bdbd7ca66de7f2b7287330e | [
"MIT"
] | 1 | 2021-06-23T15:51:57.000Z | 2021-06-23T15:51:57.000Z | spore/spore.py | pavankkota/SPoRe | 3062368a84130ec64bdbd7ca66de7f2b7287330e | [
"MIT"
] | null | null | null | spore/spore.py | pavankkota/SPoRe | 3062368a84130ec64bdbd7ca66de7f2b7287330e | [
"MIT"
] | null | null | null | """
Sparse Poisson Recovery (SPoRe) module for solving Multiple Measurement Vector
problem with Poisson signals (MMVP) by batch stochastic gradient ascent and
Monte Carlo integration
Authors: Pavan Kota, Daniel LeJeune
Reference:
[1] P. K. Kota, D. LeJeune, R. A. Drezek, and R. G. Baraniuk, "Extreme Compressed
Se... | 41.491979 | 169 | 0.543756 | 1,904 | 15,518 | 4.338235 | 0.220588 | 0.023002 | 0.018644 | 0.007264 | 0.096005 | 0.050121 | 0.030751 | 0.029782 | 0.026634 | 0.026634 | 0 | 0.01408 | 0.368411 | 15,518 | 374 | 170 | 41.491979 | 0.828691 | 0.455729 | 0 | 0.118056 | 0 | 0 | 0.012874 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.013889 | 0.034722 | 0 | 0.152778 | 0.013889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2938d769b525d23fcc668a6eb476387c4aae2966 | 734 | py | Python | 306/translate_cds.py | jsh/pybites | 73c79ed962c15247cead173b17f69f248ea51b96 | [
"MIT"
] | null | null | null | 306/translate_cds.py | jsh/pybites | 73c79ed962c15247cead173b17f69f248ea51b96 | [
"MIT"
] | null | null | null | 306/translate_cds.py | jsh/pybites | 73c79ed962c15247cead173b17f69f248ea51b96 | [
"MIT"
] | null | null | null | """Use translation table to translate coding sequence to protein."""
from Bio.Data import CodonTable # type: ignore
from Bio.Seq import Seq # type: ignore
def translate_cds(cds: str, translation_table: str) -> str:
"""Translate coding sequence to protein.
:param cds: str: DNA coding sequence (CDS... | 36.7 | 71 | 0.700272 | 97 | 734 | 5.164948 | 0.371134 | 0.159681 | 0.091816 | 0.0998 | 0.127745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20436 | 734 | 19 | 72 | 38.631579 | 0.857877 | 0.461853 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
293afc12acd3adc92103d2c686f2476332649203 | 4,137 | py | Python | plix/displays.py | freelan-developers/plix | 69114b3e522330af802800e09a432c1a84220f88 | [
"MIT"
] | 1 | 2017-05-22T11:52:01.000Z | 2017-05-22T11:52:01.000Z | plix/displays.py | freelan-developers/plix | 69114b3e522330af802800e09a432c1a84220f88 | [
"MIT"
] | 4 | 2015-03-12T16:59:36.000Z | 2015-03-12T17:34:15.000Z | plix/displays.py | freelan-developers/plix | 69114b3e522330af802800e09a432c1a84220f88 | [
"MIT"
] | 1 | 2018-03-04T21:43:33.000Z | 2018-03-04T21:43:33.000Z | """
Display command results.
"""
from __future__ import unicode_literals
from contextlib import contextmanager
from argparse import Namespace
from io import BytesIO
from colorama import AnsiToWin32
from chromalog.stream import stream_has_color_support
from chromalog.colorizer import Colorizer
from chromalog.mark.he... | 27.397351 | 79 | 0.583273 | 440 | 4,137 | 5.381818 | 0.277273 | 0.033784 | 0.027449 | 0.030405 | 0.241976 | 0.185811 | 0.148226 | 0.148226 | 0.148226 | 0.127534 | 0 | 0.003197 | 0.319555 | 4,137 | 150 | 80 | 27.58 | 0.838011 | 0.270486 | 0 | 0.202703 | 0 | 0 | 0.024526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094595 | false | 0 | 0.162162 | 0 | 0.310811 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
293dd5d900ef2c6130d4549dd1b873aa939a8cba | 6,167 | py | Python | plugins/Autocomplete/plugin.py | mogad0n/Limnoria | f31e5c4b9a77e30918d6b93f69d69f3b8f910e3c | [
"BSD-3-Clause"
] | 476 | 2015-01-04T17:42:59.000Z | 2021-08-13T07:40:54.000Z | plugins/Autocomplete/plugin.py | mogad0n/Limnoria | f31e5c4b9a77e30918d6b93f69d69f3b8f910e3c | [
"BSD-3-Clause"
] | 491 | 2015-01-01T04:12:23.000Z | 2021-08-12T19:24:47.000Z | plugins/Autocomplete/plugin.py | mogad0n/Limnoria | f31e5c4b9a77e30918d6b93f69d69f3b8f910e3c | [
"BSD-3-Clause"
] | 203 | 2015-01-02T18:29:43.000Z | 2021-08-15T12:52:22.000Z | ###
# Copyright (c) 2020-2021, The Limnoria Contributors
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this l... | 34.071823 | 79 | 0.66564 | 748 | 6,167 | 5.409091 | 0.359626 | 0.037815 | 0.011864 | 0.011369 | 0.089471 | 0.077608 | 0.046466 | 0.033613 | 0.033613 | 0.033613 | 0 | 0.00527 | 0.261553 | 6,167 | 180 | 80 | 34.261111 | 0.88318 | 0.415437 | 0 | 0.065934 | 0 | 0 | 0.030286 | 0.015568 | 0 | 0 | 0 | 0 | 0.043956 | 1 | 0.054945 | false | 0 | 0.021978 | 0.010989 | 0.21978 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
293e981880ad85e96c9f610aaeaa19c42550d236 | 2,237 | py | Python | utils/preprocess_twitter.py | arnavk/tumblr-emotions | 0ed03201ab833b8b400cb0cff6c5b064fac5edfb | [
"Apache-2.0"
] | null | null | null | utils/preprocess_twitter.py | arnavk/tumblr-emotions | 0ed03201ab833b8b400cb0cff6c5b064fac5edfb | [
"Apache-2.0"
] | null | null | null | utils/preprocess_twitter.py | arnavk/tumblr-emotions | 0ed03201ab833b8b400cb0cff6c5b064fac5edfb | [
"Apache-2.0"
] | null | null | null | """
preprocess-twitter.py
python preprocess-twitter.py "Some random text with #hashtags, @mentions and http://t.co/kdjfkdjf (links). :)"
Script for preprocessing tweets by Romain Paulus
with small modifications by Jeffrey Pennington
with translation to Python by Motoki Wu
Translation of Ruby script to create features f... | 34.415385 | 125 | 0.591417 | 321 | 2,237 | 4.034268 | 0.401869 | 0.061776 | 0.097297 | 0.108108 | 0.050965 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0.187304 | 2,237 | 64 | 126 | 34.953125 | 0.70242 | 0.28565 | 0 | 0.051282 | 0 | 0.025641 | 0.263556 | 0.04918 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0 | 0.051282 | 0.025641 | 0.25641 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
29419686dd2aebba28a504da3cc741b420dcf049 | 9,001 | py | Python | mmtbx/conformation_dependent_library/mcl.py | pcxod/cctbx_project | d43dfb157cd7432292b30c0329b7491d5a356657 | [
"BSD-3-Clause-LBNL"
] | null | null | null | mmtbx/conformation_dependent_library/mcl.py | pcxod/cctbx_project | d43dfb157cd7432292b30c0329b7491d5a356657 | [
"BSD-3-Clause-LBNL"
] | 1 | 2020-05-26T17:46:17.000Z | 2020-05-26T17:55:19.000Z | mmtbx/conformation_dependent_library/mcl.py | pcxod/cctbx_project | d43dfb157cd7432292b30c0329b7491d5a356657 | [
"BSD-3-Clause-LBNL"
] | 1 | 2022-02-08T10:11:07.000Z | 2022-02-08T10:11:07.000Z | from __future__ import absolute_import, division, print_function
import sys
import time
from cctbx.array_family import flex
from scitbx.math import superpose
from mmtbx.conformation_dependent_library import mcl_sf4_coordination
from six.moves import range
from mmtbx.conformation_dependent_library import metal_coordina... | 37.504167 | 103 | 0.63093 | 1,179 | 9,001 | 4.530958 | 0.216285 | 0.042681 | 0.015724 | 0.016848 | 0.242606 | 0.170723 | 0.117933 | 0.104455 | 0.104455 | 0.099214 | 0 | 0.009865 | 0.256749 | 9,001 | 239 | 104 | 37.661088 | 0.78864 | 0.045217 | 0 | 0.119266 | 0 | 0 | 0.072004 | 0.011203 | 0 | 0 | 0 | 0 | 0.022936 | 1 | 0.03211 | false | 0 | 0.059633 | 0 | 0.119266 | 0.018349 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
294225b79ce42a07375fda887c5ff1ca0b02cbd1 | 15,778 | py | Python | tests/test_install.py | dfroger/conda | c0f99ff46b217d081501e66f4dcd7bcdb5d9c6aa | [
"BSD-3-Clause"
] | null | null | null | tests/test_install.py | dfroger/conda | c0f99ff46b217d081501e66f4dcd7bcdb5d9c6aa | [
"BSD-3-Clause"
] | null | null | null | tests/test_install.py | dfroger/conda | c0f99ff46b217d081501e66f4dcd7bcdb5d9c6aa | [
"BSD-3-Clause"
] | null | null | null | from contextlib import contextmanager
import random
import shutil
import stat
import tempfile
import unittest
from os.path import join
from conda import install
from conda.install import (PaddingError, binary_replace, update_prefix,
warn_failed_remove, duplicates_to_remove)
from .decorator... | 38.20339 | 97 | 0.609266 | 1,973 | 15,778 | 4.584896 | 0.118094 | 0.061021 | 0.047756 | 0.026531 | 0.594627 | 0.544108 | 0.450696 | 0.409573 | 0.350763 | 0.336834 | 0 | 0.023235 | 0.285334 | 15,778 | 412 | 98 | 38.296117 | 0.779 | 0 | 0 | 0.339233 | 0 | 0.00295 | 0.088161 | 0.014007 | 0 | 0 | 0 | 0 | 0.150442 | 1 | 0.150442 | false | 0 | 0.032448 | 0.011799 | 0.20944 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
29422d091e83652a21c0e3588c5f7b69d97c82a9 | 728 | py | Python | django_elastic_appsearch/slicer.py | CorrosiveKid/django_elastic_appsearch | 85da7642aac566164b8bc06894e97a048fd3116e | [
"MIT"
] | 11 | 2019-08-07T01:31:42.000Z | 2021-02-02T08:12:24.000Z | django_elastic_appsearch/slicer.py | CorrosiveKid/django_elastic_appsearch | 85da7642aac566164b8bc06894e97a048fd3116e | [
"MIT"
] | 148 | 2019-08-01T04:22:28.000Z | 2021-05-10T19:06:31.000Z | django_elastic_appsearch/slicer.py | infoxchange/django_elastic_appsearch | 65229586f0392d8d8cb143ab625081c89fa4cb64 | [
"MIT"
] | 6 | 2019-08-26T10:00:42.000Z | 2021-02-01T03:54:02.000Z | """A Queryset slicer for Django."""
def slice_queryset(queryset, chunk_size):
"""Slice a queryset into chunks."""
start_pk = 0
queryset = queryset.order_by('pk')
while True:
# No entry left
if not queryset.filter(pk__gt=start_pk).exists():
break
try:
#... | 28 | 69 | 0.60989 | 98 | 728 | 4.27551 | 0.44898 | 0.083532 | 0.114558 | 0.128878 | 0.274463 | 0.178998 | 0 | 0 | 0 | 0 | 0 | 0.003861 | 0.288462 | 728 | 25 | 70 | 29.12 | 0.805019 | 0.218407 | 0 | 0 | 0 | 0 | 0.010791 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
29424d0f4478d5925df5fb2792f4b3b4b39494a0 | 402 | py | Python | newsite/news/urls.py | JasperStfun/Django_C | 1307f2e9c827f751e8640f50179f1b744c222d63 | [
"Unlicense"
] | null | null | null | newsite/news/urls.py | JasperStfun/Django_C | 1307f2e9c827f751e8640f50179f1b744c222d63 | [
"Unlicense"
] | null | null | null | newsite/news/urls.py | JasperStfun/Django_C | 1307f2e9c827f751e8640f50179f1b744c222d63 | [
"Unlicense"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('', views.news_home, name='news_home'),
path('create', views.create, name='create'),
path('<int:pk>', views.NewsDetailView.as_view(), name='news-detail'),
path('<int:pk>/update', views.NewsUpdateView.as_view(), name='news-update'),
... | 36.545455 | 80 | 0.674129 | 54 | 402 | 4.925926 | 0.388889 | 0.120301 | 0.101504 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119403 | 402 | 11 | 81 | 36.545455 | 0.751412 | 0 | 0 | 0 | 0 | 0 | 0.228288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
29428a3c880266295d54c48af9bca30d4cdda98d | 412 | py | Python | module/phase_one/headers.py | cqr-cryeye-forks/Florid | 21ea7abbe5448dca0c485232bdcf870ba2648d68 | [
"Apache-2.0"
] | 7 | 2020-03-22T02:44:26.000Z | 2022-02-23T01:57:29.000Z | module/phase_one/headers.py | h4zze1/Florid-Scanner | 0a8600ce2bdd24f16e45504b00c714ecbb8930af | [
"Apache-2.0"
] | 1 | 2019-02-07T13:41:47.000Z | 2019-02-07T13:41:47.000Z | module/phase_one/headers.py | h4zze1/Florid-Scanner | 0a8600ce2bdd24f16e45504b00c714ecbb8930af | [
"Apache-2.0"
] | 3 | 2020-03-22T02:44:27.000Z | 2021-08-03T00:52:38.000Z | import requests
import lib.common
MODULE_NAME = 'headers'
def run():
r = requests.get(lib.common.SOURCE_URL)
# X-Forwarded-By:
if 'X-Powered-By' in r.headers:
lib.common.RESULT_ONE_DICT['X-Powered-By'] = r.headers['X-Powered-By']
# Server:
if 'Server' in r.headers:
lib.common.R... | 20.6 | 78 | 0.652913 | 62 | 412 | 4.209677 | 0.419355 | 0.172414 | 0.114943 | 0.099617 | 0.245211 | 0.245211 | 0.245211 | 0.245211 | 0 | 0 | 0 | 0.003012 | 0.194175 | 412 | 19 | 79 | 21.684211 | 0.783133 | 0.055825 | 0 | 0 | 0 | 0 | 0.158031 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2942faf9418139b387fac9d36b23ead11b7dcd5e | 1,234 | py | Python | ekorpkit/io/fetch/edgar/edgar.py | entelecheia/ekorpkit | 400cb15005fdbcaa2ab0c311e338799283f28fe0 | [
"CC-BY-4.0"
] | 4 | 2022-02-26T10:54:16.000Z | 2022-02-26T11:01:56.000Z | ekorpkit/io/fetch/edgar/edgar.py | entelecheia/ekorpkit | 400cb15005fdbcaa2ab0c311e338799283f28fe0 | [
"CC-BY-4.0"
] | 1 | 2022-03-25T06:37:12.000Z | 2022-03-25T06:45:53.000Z | ekorpkit/io/fetch/edgar/edgar.py | entelecheia/ekorpkit | 400cb15005fdbcaa2ab0c311e338799283f28fe0 | [
"CC-BY-4.0"
] | null | null | null | import os
import requests
from bs4 import BeautifulSoup
from ekorpkit import eKonf
from ekorpkit.io.download.web import web_download, web_download_unzip
class EDGAR:
def __init__(self, **args):
self.args = eKonf.to_config(args)
self.base_url = self.args.base_url
self.url = self.args.url
... | 31.641026 | 73 | 0.644246 | 165 | 1,234 | 4.630303 | 0.4 | 0.073298 | 0.068063 | 0.044503 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003229 | 0.247164 | 1,234 | 38 | 74 | 32.473684 | 0.81916 | 0 | 0 | 0 | 0 | 0 | 0.064019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.166667 | 0 | 0.3 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2944646b37b0ab25dfa73f854ed036b7d6e77c63 | 3,470 | py | Python | HARK/ConsumptionSaving/tests/test_PerfForesightConsumerType.py | michiboo/HARK | de2aab467de19da2ce76de1b58fb420f421bc85b | [
"Apache-2.0"
] | null | null | null | HARK/ConsumptionSaving/tests/test_PerfForesightConsumerType.py | michiboo/HARK | de2aab467de19da2ce76de1b58fb420f421bc85b | [
"Apache-2.0"
] | null | null | null | HARK/ConsumptionSaving/tests/test_PerfForesightConsumerType.py | michiboo/HARK | de2aab467de19da2ce76de1b58fb420f421bc85b | [
"Apache-2.0"
] | null | null | null | from HARK.ConsumptionSaving.ConsIndShockModel import PerfForesightConsumerType
import numpy as np
import unittest
class testPerfForesightConsumerType(unittest.TestCase):
def setUp(self):
self.agent = PerfForesightConsumerType()
self.agent_infinite = PerfForesightConsumerType(cycles=0)
PF_... | 35.408163 | 111 | 0.625072 | 375 | 3,470 | 5.666667 | 0.389333 | 0.110118 | 0.152 | 0.043294 | 0.341647 | 0.213647 | 0.185412 | 0.185412 | 0.133647 | 0.133647 | 0 | 0.084 | 0.279539 | 3,470 | 97 | 112 | 35.773196 | 0.766 | 0.157925 | 0 | 0.173333 | 0 | 0 | 0.048504 | 0 | 0 | 0 | 0 | 0 | 0.186667 | 1 | 0.066667 | false | 0 | 0.04 | 0 | 0.12 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2944814c5ae01dfc5daf1a2ce4f89caabba6e70c | 3,893 | py | Python | src-gen/openapi_server/models/config.py | etherisc/bima-bolt-api | 14201a3055d94ff9c42afbb755109a69e77248f4 | [
"Apache-2.0"
] | null | null | null | src-gen/openapi_server/models/config.py | etherisc/bima-bolt-api | 14201a3055d94ff9c42afbb755109a69e77248f4 | [
"Apache-2.0"
] | null | null | null | src-gen/openapi_server/models/config.py | etherisc/bima-bolt-api | 14201a3055d94ff9c42afbb755109a69e77248f4 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from openapi_server.models.base_model_ import Model
from openapi_server.models.component import Component
from openapi_server import util
from openapi_server.models.co... | 25.444444 | 96 | 0.579245 | 483 | 3,893 | 4.559006 | 0.167702 | 0.089918 | 0.114441 | 0.031789 | 0.515441 | 0.389192 | 0.356494 | 0.107175 | 0.107175 | 0.072661 | 0 | 0.034813 | 0.328538 | 3,893 | 152 | 97 | 25.611842 | 0.807575 | 0.401233 | 0 | 0.241379 | 0 | 0 | 0.103681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.12069 | 0 | 0.396552 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2944fda074b1c1551c4b520622df91dd49749873 | 1,003 | py | Python | txt_annotation.py | bubbliiiing/classification-keras | b914c5d8526cccbeb3ae8d8f2fea4c8bbabf1d94 | [
"MIT"
] | 30 | 2021-01-23T15:51:20.000Z | 2022-03-26T13:37:49.000Z | txt_annotation.py | PARILM/classification-keras | 91e558b5a128449b81acc4f6983f01e420b2039d | [
"MIT"
] | 4 | 2021-01-22T08:58:57.000Z | 2022-03-17T14:21:07.000Z | txt_annotation.py | PARILM/classification-keras | 91e558b5a128449b81acc4f6983f01e420b2039d | [
"MIT"
] | 10 | 2021-01-31T01:23:35.000Z | 2022-02-17T11:53:05.000Z | import os
from os import getcwd
#---------------------------------------------#
# 训练前一定要注意修改classes
# 种类顺序需要和model_data下的txt一样
#---------------------------------------------#
classes = ["cat", "dog"]
sets = ["train", "test"]
wd = getcwd()
for se in sets:
list_file = open('cls_' + se + '.txt', 'w')... | 31.34375 | 101 | 0.521436 | 115 | 1,003 | 4.321739 | 0.408696 | 0.064386 | 0.052314 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.271186 | 1,003 | 31 | 102 | 32.354839 | 0.679891 | 0.13659 | 0 | 0.090909 | 0 | 0 | 0.065217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
29451165b051aed5989a0318d992368267c8109d | 5,272 | py | Python | S4/S4 Library/simulation/relationships/sim_knowledge.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | 1 | 2021-05-20T19:33:37.000Z | 2021-05-20T19:33:37.000Z | S4/S4 Library/simulation/relationships/sim_knowledge.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | S4/S4 Library/simulation/relationships/sim_knowledge.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | from protocolbuffers import SimObjectAttributes_pb2 as protocols
from careers.career_unemployment import CareerUnemployment
import services
import sims4
logger = sims4.log.Logger('Relationship', default_owner='jjacobson')
class SimKnowledge:
__slots__ = ('_rel_data', '_known_traits', '_knows_career', '_known_stats... | 39.939394 | 161 | 0.660281 | 675 | 5,272 | 4.757037 | 0.134815 | 0.056057 | 0.072874 | 0.033634 | 0.537839 | 0.507007 | 0.476176 | 0.456244 | 0.398941 | 0.345998 | 0 | 0.002857 | 0.269727 | 5,272 | 131 | 162 | 40.244275 | 0.831169 | 0 | 0 | 0.40708 | 0 | 0 | 0.031108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.150442 | false | 0 | 0.035398 | 0.035398 | 0.327434 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
29458e025d37036dcc3d6da38653c530afc7e75e | 13,954 | py | Python | Search Algorithms.py | fzehracetin/A-Star-and-Best-First-Search | 78be430f0c3523aa78d9822ec8aa19615fd3e500 | [
"Apache-2.0"
] | 1 | 2021-02-24T10:13:22.000Z | 2021-02-24T10:13:22.000Z | Search Algorithms.py | fzehracetin/A-Star-and-Best-First-Search | 78be430f0c3523aa78d9822ec8aa19615fd3e500 | [
"Apache-2.0"
] | null | null | null | Search Algorithms.py | fzehracetin/A-Star-and-Best-First-Search | 78be430f0c3523aa78d9822ec8aa19615fd3e500 | [
"Apache-2.0"
] | null | null | null | from PIL import Image
from math import sqrt
import numpy as np
import time
import matplotlib.backends.backend_tkagg
import matplotlib.pyplot as plt
class Point:
x: float
y: float
f: float
h: float
g: float
def __init__(self, x, y, f):
self.x = x
self.y = y
... | 35.68798 | 124 | 0.580264 | 1,889 | 13,954 | 4.14505 | 0.119111 | 0.029885 | 0.055811 | 0.056194 | 0.56705 | 0.522478 | 0.497573 | 0.472669 | 0.422605 | 0.399745 | 0 | 0.027567 | 0.290311 | 13,954 | 390 | 125 | 35.779487 | 0.763102 | 0.028809 | 0 | 0.368771 | 0 | 0 | 0.095507 | 0.003789 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049834 | false | 0 | 0.019934 | 0.003322 | 0.152824 | 0.076412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2945bb791202db0434b867efcbc0fdb23fb1256d | 624 | py | Python | time_test.py | Shb742/rnnoise_python | e370e85984d5909111c9e6e7e4a627bf4de76648 | [
"BSD-3-Clause"
] | 32 | 2019-05-24T08:51:36.000Z | 2022-03-10T06:10:08.000Z | time_test.py | Shb742/rnnoise_python | e370e85984d5909111c9e6e7e4a627bf4de76648 | [
"BSD-3-Clause"
] | 3 | 2020-08-06T09:40:51.000Z | 2021-04-21T08:50:20.000Z | time_test.py | Shb742/rnnoise_python | e370e85984d5909111c9e6e7e4a627bf4de76648 | [
"BSD-3-Clause"
] | 5 | 2019-09-19T05:54:33.000Z | 2021-04-21T08:50:29.000Z | #Author Shoaib Omar
import time
import rnnoise
import numpy as np
def time_rnnoise(rounds=1000):
a = rnnoise.RNNoise()
timer = 0.0
st = time.time()
for i in range(rounds):
inp = np.random.bytes(960)
timer = (time.time() - st)
print(timer)
st = time.time()
for i in range(rounds):
inp = np.random.bytes(960)
... | 28.363636 | 71 | 0.692308 | 108 | 624 | 3.888889 | 0.37037 | 0.07619 | 0.085714 | 0.121429 | 0.280952 | 0.219048 | 0.219048 | 0.219048 | 0.219048 | 0.219048 | 0 | 0.060491 | 0.152244 | 624 | 22 | 72 | 28.363636 | 0.733459 | 0.028846 | 0 | 0.285714 | 0 | 0 | 0.10396 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.142857 | 0 | 0.190476 | 0.190476 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
29461dc478380b16ce5a78cc8afb8aa1b8e6189a | 1,092 | py | Python | tests/test_shell.py | jakubtyniecki/pact | c23547a2aed1d612180528e33ec1ce021f9badb6 | [
"MIT"
] | 2 | 2017-01-12T10:24:31.000Z | 2020-06-11T16:05:05.000Z | tests/test_shell.py | jakubtyniecki/pact | c23547a2aed1d612180528e33ec1ce021f9badb6 | [
"MIT"
] | null | null | null | tests/test_shell.py | jakubtyniecki/pact | c23547a2aed1d612180528e33ec1ce021f9badb6 | [
"MIT"
] | null | null | null |
""" shell sort tests module """
import unittest
import random
from sort import shell
from tests import helper
class ShellSortTests(unittest.TestCase):
""" shell sort unit tests class """
max = 100
arr = []
def setUp(self):
""" setting up for the test """
self.arr = random.sample(ran... | 22.285714 | 80 | 0.574176 | 132 | 1,092 | 4.681818 | 0.439394 | 0.072816 | 0.048544 | 0.05178 | 0.106796 | 0.106796 | 0 | 0 | 0 | 0 | 0 | 0.003995 | 0.312271 | 1,092 | 48 | 81 | 22.75 | 0.818908 | 0.217949 | 0 | 0 | 0 | 0 | 0.040791 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 1 | 0.190476 | false | 0 | 0.190476 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2946888881fb3eee8c4a9270d71f7bab3158abad | 666 | py | Python | k8s_apps/admin/dump_inventory_file.py | AkadioInc/firefly | d6c48ff9999ffedcaa294fcd956eb97b90408583 | [
"BSD-2-Clause"
] | null | null | null | k8s_apps/admin/dump_inventory_file.py | AkadioInc/firefly | d6c48ff9999ffedcaa294fcd956eb97b90408583 | [
"BSD-2-Clause"
] | null | null | null | k8s_apps/admin/dump_inventory_file.py | AkadioInc/firefly | d6c48ff9999ffedcaa294fcd956eb97b90408583 | [
"BSD-2-Clause"
] | null | null | null | import h5pyd
from datetime import datetime
import tzlocal
BUCKET="firefly-hsds"
inventory_domain = "/FIREfly/inventory.h5"
def formatTime(timestamp):
local_timezone = tzlocal.get_localzone() # get pytz timezone
local_time = datetime.fromtimestamp(timestamp, local_timezone)
return local_time
f = h5pyd.F... | 22.965517 | 66 | 0.666667 | 90 | 666 | 4.855556 | 0.488889 | 0.064073 | 0.100687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020755 | 0.204204 | 666 | 28 | 67 | 23.785714 | 0.803774 | 0.025526 | 0 | 0.086957 | 0 | 0 | 0.14374 | 0.074189 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.130435 | 0 | 0.217391 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
29487962f697ad1bbd8acf9245d0ea5da17bae4f | 12,488 | py | Python | mindhome_alpha/erpnext/erpnext_integrations/doctype/mpesa_settings/test_mpesa_settings.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | 1 | 2021-04-29T14:55:29.000Z | 2021-04-29T14:55:29.000Z | mindhome_alpha/erpnext/erpnext_integrations/doctype/mpesa_settings/test_mpesa_settings.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | null | null | null | mindhome_alpha/erpnext/erpnext_integrations/doctype/mpesa_settings/test_mpesa_settings.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | 1 | 2021-04-29T14:39:01.000Z | 2021-04-29T14:39:01.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and Contributors
# See license.txt
from __future__ import unicode_literals
from json import dumps
import frappe
import unittest
from erpnext.erpnext_integrations.doctype.mpesa_settings.mpesa_settings import process_balance_info, verify_transact... | 35.177465 | 124 | 0.738629 | 1,436 | 12,488 | 6.183148 | 0.196379 | 0.03604 | 0.028719 | 0.019822 | 0.633855 | 0.593648 | 0.556369 | 0.533731 | 0.515711 | 0.491609 | 0 | 0.043543 | 0.13565 | 12,488 | 355 | 125 | 35.177465 | 0.779044 | 0.122998 | 0 | 0.41958 | 0 | 0 | 0.317353 | 0.032175 | 0 | 0 | 0 | 0 | 0.059441 | 1 | 0.038462 | false | 0.003497 | 0.020979 | 0 | 0.083916 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2948ba6edb0a75f155add6e7fa7726939cd6ba56 | 3,870 | py | Python | res_mods/mods/packages/xvm_main/python/vehinfo_tiers.py | peterbartha/ImmunoMod | cbf8cd49893d7082a347c1f72c0e39480869318a | [
"MIT"
] | null | null | null | res_mods/mods/packages/xvm_main/python/vehinfo_tiers.py | peterbartha/ImmunoMod | cbf8cd49893d7082a347c1f72c0e39480869318a | [
"MIT"
] | 1 | 2016-04-03T13:31:39.000Z | 2016-04-03T16:48:26.000Z | res_mods/mods/packages/xvm_main/python/vehinfo_tiers.py | peterbartha/ImmunoMod | cbf8cd49893d7082a347c1f72c0e39480869318a | [
"MIT"
] | null | null | null | """ XVM (c) www.modxvm.com 2013-2017 """
# PUBLIC
def getTiers(level, cls, key):
return _getTiers(level, cls, key)
# PRIVATE
from logger import *
from gui.shared.utils.requesters import REQ_CRITERIA
from helpers import dependency
from skeletons.gui.shared import IItemsCache
_special = {
# Data from http:/... | 36.857143 | 93 | 0.445478 | 481 | 3,870 | 3.349272 | 0.45738 | 0.016139 | 0.018622 | 0.04221 | 0.122284 | 0.061453 | 0 | 0 | 0 | 0 | 0 | 0.148084 | 0.406718 | 3,870 | 104 | 94 | 37.211538 | 0.553571 | 0.066925 | 0 | 0 | 0 | 0 | 0.287862 | 0.097717 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041096 | false | 0 | 0.054795 | 0.013699 | 0.150685 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
294a474ec8bf0bc2d0dc645a827ce6425f19ce7f | 3,529 | py | Python | mathics/core/systemsymbols.py | Mathics3/mathics-core | 54dc3c00a42cd893c6430054e125291b6eb55ead | [
"Apache-2.0"
] | 90 | 2021-09-11T14:14:00.000Z | 2022-03-29T02:08:29.000Z | mathics/core/systemsymbols.py | Mathics3/mathics-core | 54dc3c00a42cd893c6430054e125291b6eb55ead | [
"Apache-2.0"
] | 187 | 2021-09-13T01:00:41.000Z | 2022-03-31T11:52:52.000Z | mathics/core/systemsymbols.py | Mathics3/mathics-core | 54dc3c00a42cd893c6430054e125291b6eb55ead | [
"Apache-2.0"
] | 10 | 2021-10-05T15:44:26.000Z | 2022-03-21T12:34:33.000Z | # -*- coding: utf-8 -*-
from mathics.core.symbols import Symbol
# Some other common Symbols. This list is sorted in alphabetic order.
SymbolAssumptions = Symbol("$Assumptions")
SymbolAborted = Symbol("$Aborted")
SymbolAll = Symbol("All")
SymbolAlternatives = Symbol("Alternatives")
SymbolAnd = Symbol("And")
SymbolAppe... | 33.932692 | 69 | 0.765373 | 316 | 3,529 | 8.541139 | 0.667722 | 0.009633 | 0.014079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000311 | 0.089827 | 3,529 | 103 | 70 | 34.262136 | 0.839975 | 0.02522 | 0 | 0.020202 | 0 | 0 | 0.209194 | 0.00611 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.010101 | 0 | 0.010101 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
294e1d0fe03b7258df243ff2841d037d1b8158e8 | 2,484 | py | Python | wagtail/admin/forms/comments.py | stephiescastle/wagtail | 391f46ef91ca4a7bbf339bf9e9a738df3eb8e179 | [
"BSD-3-Clause"
] | null | null | null | wagtail/admin/forms/comments.py | stephiescastle/wagtail | 391f46ef91ca4a7bbf339bf9e9a738df3eb8e179 | [
"BSD-3-Clause"
] | null | null | null | wagtail/admin/forms/comments.py | stephiescastle/wagtail | 391f46ef91ca4a7bbf339bf9e9a738df3eb8e179 | [
"BSD-3-Clause"
] | null | null | null | from django.forms import BooleanField, ValidationError
from django.utils.timezone import now
from django.utils.translation import gettext as _
from .models import WagtailAdminModelForm
class CommentReplyForm(WagtailAdminModelForm):
class Meta:
fields = ("text",)
def clean(self):
cleaned_data... | 34.5 | 129 | 0.594605 | 278 | 2,484 | 5.226619 | 0.377698 | 0.090847 | 0.068823 | 0.055059 | 0.353751 | 0.353751 | 0.353751 | 0.353751 | 0.353751 | 0.305575 | 0 | 0 | 0.327295 | 2,484 | 71 | 130 | 34.985915 | 0.869539 | 0.191224 | 0 | 0.392157 | 0 | 0 | 0.075415 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.078431 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
294e291b1d27799d1015e0d511b66da83b03b728 | 1,039 | py | Python | run_db_data.py | MahirMahbub/email-client | 71ab85f987f783b703b58780444c072bd683927e | [
"MIT"
] | null | null | null | run_db_data.py | MahirMahbub/email-client | 71ab85f987f783b703b58780444c072bd683927e | [
"MIT"
] | 4 | 2021-08-01T16:29:48.000Z | 2021-08-01T16:58:36.000Z | run_db_data.py | MahirMahbub/email-client | 71ab85f987f783b703b58780444c072bd683927e | [
"MIT"
] | null | null | null | import os
from sqlalchemy.orm import Session
from db.database import SessionLocal
class DbData:
def __init__(self):
self.root_directory: str = "db_merge_scripts"
self.scripts = [
"loader.sql"
]
def sync(self, db: Session):
for script in self.scripts:
... | 23.088889 | 79 | 0.549567 | 130 | 1,039 | 4.315385 | 0.476923 | 0.058824 | 0.060606 | 0.074866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044034 | 0.322425 | 1,039 | 44 | 80 | 23.613636 | 0.752841 | 0 | 0 | 0 | 0 | 0.032258 | 0.115496 | 0.041386 | 0 | 0 | 0 | 0 | 0 | 1 | 0.193548 | false | 0 | 0.096774 | 0.096774 | 0.419355 | 0.129032 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
29509faf87f0d6a17ff1205ace918609c71b08fe | 1,750 | py | Python | five/five_copy.py | ngd-b/python-demo | 0341c1620bcde1c1d886cb9e75dc6db3722273c8 | [
"MIT"
] | 1 | 2019-10-09T13:40:13.000Z | 2019-10-09T13:40:13.000Z | five/five_copy.py | ngd-b/python-demo | 0341c1620bcde1c1d886cb9e75dc6db3722273c8 | [
"MIT"
] | null | null | null | five/five_copy.py | ngd-b/python-demo | 0341c1620bcde1c1d886cb9e75dc6db3722273c8 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding:utf-8 -*-
print("hello world")
f = None
try:
f = open("./hello.txt","r",encoding="utf8")
print(f.read(5),end='')
print(f.read(5),end='')
print(f.read(5))
except IOError as e:
print(e)
finally:
if f:
f.close()
# with auto call the methods' close
with open... | 19.444444 | 72 | 0.6 | 256 | 1,750 | 4.097656 | 0.453125 | 0.053384 | 0.052431 | 0.057197 | 0.238322 | 0.238322 | 0.174452 | 0.174452 | 0.174452 | 0.076263 | 0 | 0.016106 | 0.184 | 1,750 | 89 | 73 | 19.662921 | 0.718487 | 0.244571 | 0 | 0.083333 | 0 | 0 | 0.144793 | 0.020322 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0.395833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2951e1c21121343a134fe48bfcc73abc7a482cb1 | 6,355 | py | Python | examples/batch_ts_insert.py | bureau14/qdb-api-python | 2a010df3252d39bc4d529f545547c5cefb9fe86e | [
"BSD-3-Clause"
] | 9 | 2015-09-02T20:13:13.000Z | 2020-07-16T14:17:36.000Z | examples/batch_ts_insert.py | bureau14/qdb-api-python | 2a010df3252d39bc4d529f545547c5cefb9fe86e | [
"BSD-3-Clause"
] | 5 | 2018-02-20T10:47:02.000Z | 2020-05-20T10:05:49.000Z | examples/batch_ts_insert.py | bureau14/qdb-api-python | 2a010df3252d39bc4d529f545547c5cefb9fe86e | [
"BSD-3-Clause"
] | 1 | 2018-04-01T11:12:56.000Z | 2018-04-01T11:12:56.000Z | # Copyright (c) 2009-2020, quasardb SAS. All rights reserved.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright
# notice,... | 40.737179 | 165 | 0.70181 | 886 | 6,355 | 4.869074 | 0.303612 | 0.018081 | 0.036161 | 0.05007 | 0.259388 | 0.181038 | 0.12726 | 0.059805 | 0.051924 | 0.051924 | 0 | 0.015505 | 0.198269 | 6,355 | 155 | 166 | 41 | 0.831207 | 0.295043 | 0 | 0 | 0 | 0 | 0.069354 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.11828 | false | 0 | 0.139785 | 0.053763 | 0.354839 | 0.086022 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
295371af41debc44d7d6cd681954bb737b9ceb2b | 2,128 | py | Python | tests/backends/test_flashtext_backend.py | openredact/pii-identifier | 97eaef56d6de59718501095d631a0fb49700e45a | [
"MIT"
] | 14 | 2020-07-31T18:45:29.000Z | 2022-02-21T13:24:00.000Z | tests/backends/test_flashtext_backend.py | openredact/pii-identifier | 97eaef56d6de59718501095d631a0fb49700e45a | [
"MIT"
] | 7 | 2020-07-31T06:17:21.000Z | 2021-05-23T08:40:24.000Z | tests/backends/test_flashtext_backend.py | openredact/pii-identifier | 97eaef56d6de59718501095d631a0fb49700e45a | [
"MIT"
] | 1 | 2020-09-30T01:42:57.000Z | 2020-09-30T01:42:57.000Z | from nerwhal.backends.flashtext_backend import FlashtextBackend
from nerwhal.recognizer_bases import FlashtextRecognizer
def test_single_recognizer(embed):
class TestRecognizer(FlashtextRecognizer):
TAG = "XX"
SCORE = 1.0
@property
def keywords(self):
return ["abc", "c... | 26.6 | 63 | 0.62218 | 241 | 2,128 | 5.431535 | 0.215768 | 0.076394 | 0.067227 | 0.087853 | 0.683728 | 0.667685 | 0.611917 | 0.611917 | 0.569137 | 0.569137 | 0 | 0.018554 | 0.265508 | 2,128 | 79 | 64 | 26.936709 | 0.818938 | 0.019267 | 0 | 0.629032 | 0 | 0 | 0.070537 | 0 | 0 | 0 | 0 | 0 | 0.209677 | 1 | 0.129032 | false | 0 | 0.032258 | 0.080645 | 0.483871 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
295527972ae5a65fd8aad67870244e225d07dc77 | 2,657 | py | Python | src/tzscan/tzscan_block_api.py | Twente-Mining/tezos-reward-distributor | 8df0745fdb44cbd765084303882545202d2427f3 | [
"MIT"
] | null | null | null | src/tzscan/tzscan_block_api.py | Twente-Mining/tezos-reward-distributor | 8df0745fdb44cbd765084303882545202d2427f3 | [
"MIT"
] | null | null | null | src/tzscan/tzscan_block_api.py | Twente-Mining/tezos-reward-distributor | 8df0745fdb44cbd765084303882545202d2427f3 | [
"MIT"
] | null | null | null | import random
import requests
from api.block_api import BlockApi
from exception.tzscan import TzScanException
from log_config import main_logger
logger = main_logger
HEAD_API = {'MAINNET': {'HEAD_API_URL': 'https://api%MIRROR%.tzscan.io/v2/head'},
'ALPHANET': {'HEAD_API_URL': 'http://api.alphanet.tzscan... | 32.402439 | 116 | 0.621377 | 319 | 2,657 | 4.974922 | 0.260188 | 0.057341 | 0.05041 | 0.037807 | 0.490863 | 0.430372 | 0.430372 | 0.373031 | 0.373031 | 0.373031 | 0 | 0.012783 | 0.234475 | 2,657 | 82 | 117 | 32.402439 | 0.767453 | 0.031615 | 0 | 0.296296 | 0 | 0 | 0.249027 | 0.014008 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092593 | false | 0 | 0.092593 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
29554b0b9e721e4b0e9ff426e2c29a4e943ecd1c | 10,086 | py | Python | python/cuxfilter/tests/charts/core/test_core_non_aggregate.py | Anhmike/cuxfilter | a8b25b1c37ac0e5435acb7261f6fcbf677d96bfa | [
"Apache-2.0"
] | 201 | 2018-12-21T18:32:40.000Z | 2022-03-22T11:50:29.000Z | python/cuxfilter/tests/charts/core/test_core_non_aggregate.py | Anhmike/cuxfilter | a8b25b1c37ac0e5435acb7261f6fcbf677d96bfa | [
"Apache-2.0"
] | 258 | 2018-12-27T07:37:50.000Z | 2022-03-31T20:01:32.000Z | python/cuxfilter/tests/charts/core/test_core_non_aggregate.py | Anhmike/cuxfilter | a8b25b1c37ac0e5435acb7261f6fcbf677d96bfa | [
"Apache-2.0"
] | 51 | 2019-01-10T19:03:09.000Z | 2022-03-08T01:37:11.000Z | import pytest
import cudf
import mock
from cuxfilter.charts.core.non_aggregate.core_non_aggregate import (
BaseNonAggregate,
)
from cuxfilter.dashboard import DashBoard
from cuxfilter import DataFrame
from cuxfilter.layouts import chart_view
class TestCoreNonAggregateChart:
def test_variables(self):
... | 30.288288 | 78 | 0.561967 | 1,276 | 10,086 | 4.212382 | 0.118339 | 0.057674 | 0.026791 | 0.035721 | 0.514233 | 0.438326 | 0.411163 | 0.348093 | 0.317953 | 0.317953 | 0 | 0.026012 | 0.321535 | 10,086 | 332 | 79 | 30.379518 | 0.759462 | 0.037379 | 0 | 0.419608 | 0 | 0 | 0.082205 | 0.01065 | 0 | 0 | 0 | 0 | 0.172549 | 1 | 0.078431 | false | 0 | 0.027451 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2959af169e729db8be7ba1725d5b1686b6c154d4 | 6,462 | py | Python | b.py | lbarchive/b.py | 18b533dc40e5fdf7ba62209b51584927c2dd9ba0 | [
"MIT"
] | null | null | null | b.py | lbarchive/b.py | 18b533dc40e5fdf7ba62209b51584927c2dd9ba0 | [
"MIT"
] | null | null | null | b.py | lbarchive/b.py | 18b533dc40e5fdf7ba62209b51584927c2dd9ba0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Copyright (C) 2013-2016 by Yu-Jie Lin
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, mo... | 29.108108 | 79 | 0.660786 | 849 | 6,462 | 4.908127 | 0.349823 | 0.021118 | 0.013199 | 0.024958 | 0.052796 | 0.052796 | 0.042717 | 0.023038 | 0 | 0 | 0 | 0.006832 | 0.184618 | 6,462 | 221 | 80 | 29.239819 | 0.78402 | 0.318323 | 0 | 0.032258 | 0 | 0 | 0.201421 | 0.010312 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024194 | false | 0.008065 | 0.08871 | 0 | 0.129032 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
295a62c87a95c13de9ca2d600326020d699ab2e2 | 8,729 | py | Python | spyder/plugins/outlineexplorer/api.py | suokunlong/spyder | 2d5d450fdcef232fb7f38e7fefc27f0e7f704c9a | [
"MIT"
] | 1 | 2018-05-03T02:14:15.000Z | 2018-05-03T02:14:15.000Z | spyder/plugins/outlineexplorer/api.py | jastema/spyder | 0ef48ea227c53f57556cd8002087dc404b0108b0 | [
"MIT"
] | null | null | null | spyder/plugins/outlineexplorer/api.py | jastema/spyder | 0ef48ea227c53f57556cd8002087dc404b0108b0 | [
"MIT"
] | 1 | 2020-03-05T03:09:11.000Z | 2020-03-05T03:09:11.000Z | # -*- coding: utf-8 -*-
#
# Copyright © Spyder Project Contributors
# Licensed under the terms of the MIT License
# (see spyder/__init__.py for details)
"""Outline explorer API.
You need to declare a OutlineExplorerProxy, and a function for handle the
edit_goto Signal.
class OutlineExplorerProxyCustom(OutlineExplore... | 29.096667 | 74 | 0.595601 | 1,061 | 8,729 | 4.7295 | 0.207352 | 0.029295 | 0.024113 | 0.015544 | 0.205062 | 0.13611 | 0.106616 | 0.068553 | 0.068553 | 0.042248 | 0 | 0.002179 | 0.316417 | 8,729 | 299 | 75 | 29.19398 | 0.838612 | 0.2439 | 0 | 0.254335 | 0 | 0 | 0.007227 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.156069 | false | 0 | 0.028902 | 0.017341 | 0.393064 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
295bcd4e3374d50cf1562ad240b9c1e9e4ac0fc7 | 3,132 | py | Python | seamless/core/__init__.py | sjdv1982/seamless | 1b814341e74a56333c163f10e6f6ceab508b7df9 | [
"MIT"
] | 15 | 2017-06-07T12:49:12.000Z | 2020-07-25T18:06:04.000Z | seamless/core/__init__.py | sjdv1982/seamless | 1b814341e74a56333c163f10e6f6ceab508b7df9 | [
"MIT"
] | 110 | 2016-06-21T23:20:44.000Z | 2022-02-24T16:15:22.000Z | seamless/core/__init__.py | sjdv1982/seamless | 1b814341e74a56333c163f10e6f6ceab508b7df9 | [
"MIT"
] | 6 | 2016-06-21T11:19:22.000Z | 2019-01-21T13:45:39.000Z | import weakref
class IpyString(str):
def _repr_pretty_(self, p, cycle):
return p.text(str(self))
class SeamlessBase:
_destroyed = False
_context = None
_cached_path = None
name = None
def _get_macro(self):
return self._context()._macro
@property
def path(self):
... | 30.705882 | 102 | 0.628672 | 385 | 3,132 | 4.898701 | 0.192208 | 0.110817 | 0.068929 | 0.054083 | 0.195652 | 0.138918 | 0.09438 | 0.063627 | 0.063627 | 0.063627 | 0 | 0 | 0.287356 | 3,132 | 102 | 103 | 30.705882 | 0.844982 | 0.019796 | 0 | 0.204545 | 0 | 0 | 0.012056 | 0 | 0.011364 | 0 | 0 | 0 | 0.079545 | 1 | 0.147727 | false | 0 | 0.159091 | 0.045455 | 0.579545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
295bf91559d8557674834d5e4100c334bcac0923 | 11,613 | py | Python | oguilem/configuration/config.py | dewberryants/oGUIlem | 28271fdc0fb6ffba0037f30f9f9858bec32b0d13 | [
"BSD-3-Clause"
] | 2 | 2022-02-23T13:16:47.000Z | 2022-03-07T09:47:29.000Z | oguilem/configuration/config.py | dewberryants/oGUIlem | 28271fdc0fb6ffba0037f30f9f9858bec32b0d13 | [
"BSD-3-Clause"
] | null | null | null | oguilem/configuration/config.py | dewberryants/oGUIlem | 28271fdc0fb6ffba0037f30f9f9858bec32b0d13 | [
"BSD-3-Clause"
] | 1 | 2022-02-23T13:16:49.000Z | 2022-02-23T13:16:49.000Z | import os
import re
import sys
from oguilem.configuration.fitness import OGUILEMFitnessFunctionConfiguration
from oguilem.configuration.ga import OGUILEMGlobOptConfig
from oguilem.configuration.geometry import OGUILEMGeometryConfig
from oguilem.configuration.utils import ConnectedValue, ConfigFileManager
from oguilem.... | 43.494382 | 118 | 0.533023 | 1,224 | 11,613 | 4.916667 | 0.169935 | 0.018611 | 0.015952 | 0.025258 | 0.287637 | 0.236623 | 0.181788 | 0.175806 | 0.168495 | 0.147557 | 0 | 0.005263 | 0.361922 | 11,613 | 266 | 119 | 43.657895 | 0.806883 | 0.012486 | 0 | 0.25 | 0 | 0 | 0.091972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050847 | false | 0 | 0.033898 | 0 | 0.118644 | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
295cb6523225a5b823029ec4f2d16b55a8369739 | 8,705 | py | Python | xpd_workflow/temp_graph.py | CJ-Wright/xpd_workflow | f3fd84831b86b696631759946c3af9b16b45de26 | [
"BSD-3-Clause"
] | null | null | null | xpd_workflow/temp_graph.py | CJ-Wright/xpd_workflow | f3fd84831b86b696631759946c3af9b16b45de26 | [
"BSD-3-Clause"
] | 4 | 2016-08-25T02:59:05.000Z | 2016-09-28T22:32:34.000Z | xpd_workflow/temp_graph.py | CJ-Wright/xpd_workflow | f3fd84831b86b696631759946c3af9b16b45de26 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import (division, print_function)
import matplotlib.cm as cmx
import matplotlib.colors as colors
from matplotlib import gridspec
from metadatastore.api import db_connect as mds_db_connect
from filestore.api import db_connect as fs_db_connect
fs_db_connect(
**{'database': 'data-processing-dev', 'h... | 38.688889 | 84 | 0.443538 | 1,069 | 8,705 | 3.47521 | 0.345182 | 0.020727 | 0.008075 | 0.005653 | 0.22611 | 0.170121 | 0.146433 | 0.146433 | 0.132436 | 0.093674 | 0 | 0.118205 | 0.406203 | 8,705 | 224 | 85 | 38.861607 | 0.600503 | 0.033084 | 0 | 0.103093 | 0 | 0 | 0.087738 | 0.020357 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.072165 | 0 | 0.072165 | 0.015464 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
295d0342f32753f768fc55a488c38b501e122b06 | 12,101 | py | Python | winnow/core.py | bgschiller/winnow | 0fde7fcc9e2fe3519528feb9115658aa3b3954e5 | [
"MIT"
] | 3 | 2017-08-10T16:20:29.000Z | 2018-09-19T01:33:13.000Z | winnow/core.py | bgschiller/winnow | 0fde7fcc9e2fe3519528feb9115658aa3b3954e5 | [
"MIT"
] | null | null | null | winnow/core.py | bgschiller/winnow | 0fde7fcc9e2fe3519528feb9115658aa3b3954e5 | [
"MIT"
] | 1 | 2019-11-29T20:17:23.000Z | 2019-11-29T20:17:23.000Z | from __future__ import unicode_literals
import copy
import json
from six import string_types
from . import default_operators
from . import sql_prepare
from . import values
from .error import WinnowError
from .templating import SqlFragment
from .templating import WinnowSql
class Winnow(object):
"""
Winnow is... | 37.934169 | 122 | 0.614081 | 1,444 | 12,101 | 4.959834 | 0.184903 | 0.042726 | 0.020106 | 0.013264 | 0.213627 | 0.158336 | 0.135158 | 0.113935 | 0.057526 | 0.044122 | 0 | 0.000464 | 0.28791 | 12,101 | 318 | 123 | 38.053459 | 0.830684 | 0.168664 | 0 | 0.201005 | 0 | 0 | 0.161937 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115578 | false | 0 | 0.050251 | 0.015075 | 0.38191 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
295d6dddae668ee8a211bf176e96dec0fc246700 | 1,583 | py | Python | 5 kyu/Family Tree Ancestors.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 6 | 2020-09-03T09:32:25.000Z | 2020-12-07T04:10:01.000Z | 5 kyu/Family Tree Ancestors.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 1 | 2021-12-13T15:30:21.000Z | 2021-12-13T15:30:21.000Z | 5 kyu/Family Tree Ancestors.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | null | null | null | from math import log, ceil
def chart(person):
res=helper(tuple(sorted(person.parents(), key=lambda x: x.sex, reverse=True)), 2, [], 16, 16)
res.append((person.name, 16))
dict={j:i for i,j in res}
dict2=helper2(16)
chart=[]
for i in range(1, 32):
temp=((4-depth(i))*11-1)*" "+("|" if 4-de... | 32.979167 | 139 | 0.53885 | 258 | 1,583 | 3.27907 | 0.275194 | 0.023641 | 0.021277 | 0.040189 | 0.134752 | 0.134752 | 0.134752 | 0.134752 | 0.059102 | 0 | 0 | 0.054593 | 0.271004 | 1,583 | 48 | 140 | 32.979167 | 0.67851 | 0 | 0 | 0.041667 | 0 | 0 | 0.021465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.020833 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
295da24723071b30363f5dee9937e755f296d5c6 | 690 | py | Python | tests/make_expected_lookup.py | bfis/coffea | e5e67d410e86faee1172fcc864774d7024d97653 | [
"BSD-3-Clause"
] | 77 | 2019-06-09T14:23:33.000Z | 2022-03-22T21:34:01.000Z | tests/make_expected_lookup.py | bfis/coffea | e5e67d410e86faee1172fcc864774d7024d97653 | [
"BSD-3-Clause"
] | 353 | 2019-06-05T23:54:39.000Z | 2022-03-31T21:21:47.000Z | tests/make_expected_lookup.py | bfis/coffea | e5e67d410e86faee1172fcc864774d7024d97653 | [
"BSD-3-Clause"
] | 71 | 2019-06-07T02:04:11.000Z | 2022-03-05T21:03:45.000Z | import numpy as np
import ROOT
from dummy_distributions import dummy_pt_eta
counts, test_in1, test_in2 = dummy_pt_eta()
f = ROOT.TFile.Open("samples/testSF2d.root")
sf = f.Get("scalefactors_Tight_Electron")
xmin, xmax = sf.GetXaxis().GetXmin(), sf.GetXaxis().GetXmax()
ymin, ymax = sf.GetYaxis().GetXmin(), sf.GetYax... | 24.642857 | 61 | 0.649275 | 109 | 690 | 3.963303 | 0.458716 | 0.048611 | 0.046296 | 0.064815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021938 | 0.207246 | 690 | 27 | 62 | 25.555556 | 0.767825 | 0 | 0 | 0 | 0 | 0 | 0.069565 | 0.069565 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
295e24a9ef2f154bf2eab43ba3f883adfaf8378d | 5,755 | py | Python | engine/sentiment_analysis.py | zgeorg03/nesase | 4dae70994cd0c730a88b4a54e6b8e29868aafb09 | [
"BSD-3-Clause"
] | 2 | 2020-12-30T18:03:01.000Z | 2021-08-08T21:05:43.000Z | engine/sentiment_analysis.py | zgeorg03/nesase | 4dae70994cd0c730a88b4a54e6b8e29868aafb09 | [
"BSD-3-Clause"
] | null | null | null | engine/sentiment_analysis.py | zgeorg03/nesase | 4dae70994cd0c730a88b4a54e6b8e29868aafb09 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Mar 14 17:42:27 2018
@author: zgeorg03
"""
import re
import json # Used for converting json to dictionary
import datetime # Used for date conversions
import matplotlib.pyplot as plt
import numpy as np
from sentiment import Sentiment
import json
cla... | 31.277174 | 137 | 0.559687 | 732 | 5,755 | 4.271858 | 0.204918 | 0.01535 | 0.046051 | 0.035817 | 0.346658 | 0.291653 | 0.291653 | 0.291653 | 0.241126 | 0.241126 | 0 | 0.032358 | 0.269679 | 5,755 | 183 | 138 | 31.448087 | 0.711635 | 0.031625 | 0 | 0.183206 | 0 | 0 | 0.114671 | 0.007921 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083969 | false | 0 | 0.053435 | 0.015267 | 0.19084 | 0.030534 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
295eeef6c40b7545564ffef7ae9d385146c2bde6 | 3,084 | py | Python | setup.py | koonimaru/DeepGMAP | 7daac354229fc25fba81649b741921345dc5db05 | [
"Apache-2.0"
] | 11 | 2018-06-27T11:45:47.000Z | 2021-07-01T15:32:56.000Z | setup.py | koonimaru/DeepGMAP | 7daac354229fc25fba81649b741921345dc5db05 | [
"Apache-2.0"
] | 3 | 2020-01-28T21:45:15.000Z | 2020-04-20T02:40:48.000Z | setup.py | koonimaru/DeepGMAP | 7daac354229fc25fba81649b741921345dc5db05 | [
"Apache-2.0"
] | 1 | 2018-10-19T19:43:27.000Z | 2018-10-19T19:43:27.000Z | #from distutils.core import setup
from setuptools import setup, find_packages
from distutils.extension import Extension
import re
import os
import codecs
here = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
# intentionally *not* adding an encoding option to open, See:
# https://github.com/pyp... | 34.651685 | 155 | 0.664073 | 342 | 3,084 | 5.745614 | 0.459064 | 0.06056 | 0.078372 | 0.091603 | 0.20458 | 0.179135 | 0.179135 | 0.179135 | 0.179135 | 0.179135 | 0 | 0.008373 | 0.18677 | 3,084 | 88 | 156 | 35.045455 | 0.77512 | 0.163424 | 0 | 0.09375 | 0 | 0 | 0.41933 | 0.196415 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.109375 | 0 | 0.171875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
295f7531aae2696a47947cc69a933b6673909fb5 | 4,937 | py | Python | weibospider/pipelines.py | czyczyyzc/WeiboSpider | 41b9c97cb01d41cb4a62efdd452451b5ef25bdbc | [
"MIT"
] | 2 | 2021-03-26T03:02:52.000Z | 2021-04-01T11:08:46.000Z | weibospider/pipelines.py | czyczyyzc/WeiboSpider | 41b9c97cb01d41cb4a62efdd452451b5ef25bdbc | [
"MIT"
] | null | null | null | weibospider/pipelines.py | czyczyyzc/WeiboSpider | 41b9c97cb01d41cb4a62efdd452451b5ef25bdbc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import csv
import pymongo
from pymongo.errors import DuplicateKeyError
from settings import MONGO_HOST, MONGO_PORT, SAVE_ROOT
class MongoDBPipeline(object):
def __init__(self):
client = pymongo.MongoClient(MONGO_HOST, MONGO_PORT)
db = client['weibo']
self.... | 40.467213 | 118 | 0.611302 | 587 | 4,937 | 4.947189 | 0.131175 | 0.105372 | 0.07438 | 0.090909 | 0.56646 | 0.479683 | 0.346074 | 0.226584 | 0.192149 | 0.192149 | 0 | 0.001651 | 0.263925 | 4,937 | 121 | 119 | 40.801653 | 0.797468 | 0.054892 | 0 | 0.309278 | 0 | 0 | 0.074281 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051546 | false | 0.010309 | 0.051546 | 0 | 0.14433 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2960cfa3589dae062b2a5ee5a75ad678bb175e9d | 2,871 | py | Python | lab6/server/datapredict.py | zhiji95/iot | 4202f00a79b429d5f5083bca6e914fcff09df294 | [
"Apache-2.0"
] | 2 | 2019-09-20T01:38:40.000Z | 2020-10-13T21:18:18.000Z | lab6/server/datapredict.py | zw2497/4764 | 28caec1947c1b1479d2ec9c8ecba8cd599d66d23 | [
"Apache-2.0"
] | null | null | null | lab6/server/datapredict.py | zw2497/4764 | 28caec1947c1b1479d2ec9c8ecba8cd599d66d23 | [
"Apache-2.0"
] | null | null | null | import machine
from machine import *
import ssd1306
import time
import socket
import urequests as requests
import json
word = {'body':8}
labels = ['c', 'o', 'l', 'u', 'm', 'b', 'i', 'a','null']
HOST = '18.218.158.249'
PORT = 8080
flag = 0
stop = False
data = {}
xdata = []
ydata = []
n = 0
def dp(d):
if (d > 128)... | 20.804348 | 83 | 0.554859 | 401 | 2,871 | 3.945137 | 0.351621 | 0.075853 | 0.030341 | 0.025284 | 0.1378 | 0.1378 | 0.08091 | 0 | 0 | 0 | 0 | 0.057589 | 0.286311 | 2,871 | 137 | 84 | 20.956204 | 0.714495 | 0 | 0 | 0.140351 | 0 | 0 | 0.055769 | 0 | 0.008772 | 0 | 0.005577 | 0 | 0 | 1 | 0.052632 | false | 0.008772 | 0.070175 | 0 | 0.157895 | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2962e10ff2cdb13a6dd7a8ef80474fffa61365b3 | 1,464 | py | Python | examples/plots/warmup_schedule.py | shuoyangd/pytorch_warmup | b3557afa6fcfc04e9ddc6ff08a1ae51e8a0ce5df | [
"MIT"
] | 170 | 2019-11-03T06:14:42.000Z | 2022-03-18T08:21:44.000Z | examples/plots/warmup_schedule.py | shuoyangd/pytorch_warmup | b3557afa6fcfc04e9ddc6ff08a1ae51e8a0ce5df | [
"MIT"
] | 5 | 2020-05-18T16:53:33.000Z | 2021-11-12T13:03:14.000Z | examples/plots/warmup_schedule.py | shuoyangd/pytorch_warmup | b3557afa6fcfc04e9ddc6ff08a1ae51e8a0ce5df | [
"MIT"
] | 21 | 2019-11-06T10:55:21.000Z | 2022-02-23T21:38:12.000Z | import argparse
import matplotlib.pyplot as plt
import torch
from pytorch_warmup import *
def get_rates(warmup_cls, beta2, max_step):
rates = []
p = torch.nn.Parameter(torch.arange(10, dtype=torch.float32))
optimizer = torch.optim.Adam([{'params': p}], lr=1.0, betas=(0.9, beta2))
lr_scheduler = torch.... | 34.857143 | 113 | 0.693306 | 203 | 1,464 | 4.862069 | 0.438424 | 0.06383 | 0.048632 | 0.052685 | 0.150963 | 0.088146 | 0.088146 | 0.088146 | 0.088146 | 0 | 0 | 0.026764 | 0.157787 | 1,464 | 41 | 114 | 35.707317 | 0.773723 | 0 | 0 | 0 | 0 | 0 | 0.135246 | 0.019809 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.114286 | 0 | 0.171429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2965377859485f3e331393d42e82329e9f5b3052 | 2,107 | py | Python | plugins/httpev.py | wohali/gizzy | c9d4ee9cdcf6fdbf260869365b944f29c660e6aa | [
"Apache-2.0"
] | 3 | 2015-09-11T23:34:36.000Z | 2018-04-05T21:17:08.000Z | plugins/httpev.py | wohali/gizzy | c9d4ee9cdcf6fdbf260869365b944f29c660e6aa | [
"Apache-2.0"
] | null | null | null | plugins/httpev.py | wohali/gizzy | c9d4ee9cdcf6fdbf260869365b944f29c660e6aa | [
"Apache-2.0"
] | null | null | null | """\
This plugin merely enables other plugins to accept data over HTTP. If
a plugin defines a module level function named "httpev" it will be
invoked for POST requests to the url http://$hostname/event/$pluginname.
The function is invoked from the thread in the web.py request context
and as such has access to the full ... | 26.670886 | 76 | 0.591362 | 264 | 2,107 | 4.666667 | 0.443182 | 0.051136 | 0.068182 | 0.063312 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007368 | 0.29141 | 2,107 | 78 | 77 | 27.012821 | 0.817816 | 0.154722 | 0 | 0.12963 | 0 | 0 | 0.074492 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.055556 | 0 | 0.296296 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
29656dc8827f4e4fcb777d91bc04e2895b6de0ad | 773 | py | Python | ex056.py | danilodelucio/Exercicios_Curso_em_Video | d59e1b4efaf27dd0fc828a608201613c69ac333d | [
"MIT"
] | null | null | null | ex056.py | danilodelucio/Exercicios_Curso_em_Video | d59e1b4efaf27dd0fc828a608201613c69ac333d | [
"MIT"
] | null | null | null | ex056.py | danilodelucio/Exercicios_Curso_em_Video | d59e1b4efaf27dd0fc828a608201613c69ac333d | [
"MIT"
] | null | null | null | somaIdade = 0
maiorIdade = 0
nomeVelho = ''
totmulher20 = 0
for p in range(1, 3):
print('---- {}ª PESSOA ----'.format(p))
nome = str(input('Nome: ')).strip()
idade = int(input('Idade: '))
sexo = str(input('Sexo [M/F]: '))
somaIdade += idade
if p == 1 and sexo in 'Mm':
maiorIdade = idade
... | 30.92 | 84 | 0.606727 | 109 | 773 | 4.302752 | 0.477064 | 0.03838 | 0.034115 | 0.119403 | 0.153518 | 0.153518 | 0.153518 | 0 | 0 | 0 | 0 | 0.030822 | 0.244502 | 773 | 25 | 85 | 30.92 | 0.77226 | 0 | 0 | 0.181818 | 0 | 0 | 0.244186 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2966debf755863b57841211c2eb24e99ff45937a | 6,583 | py | Python | python/promort.py | simleo/promort_pipeline | 03b9d3553a3dade57d0007e230230b02dd70832f | [
"MIT"
] | null | null | null | python/promort.py | simleo/promort_pipeline | 03b9d3553a3dade57d0007e230230b02dd70832f | [
"MIT"
] | null | null | null | python/promort.py | simleo/promort_pipeline | 03b9d3553a3dade57d0007e230230b02dd70832f | [
"MIT"
] | 3 | 2020-07-29T15:03:40.000Z | 2020-10-06T11:16:04.000Z | """\
PROMORT example.
"""
import argparse
import random
import sys
import pyecvl.ecvl as ecvl
import pyeddl.eddl as eddl
from pyeddl.tensor import Tensor
import models
def VGG16(in_layer, num_classes):
x = in_layer
x = eddl.ReLu(eddl.Conv(x, 64, [3, 3]))
x = eddl.MaxPool(eddl.ReLu(eddl.Conv(x, 64, [3, ... | 37.19209 | 98 | 0.556433 | 878 | 6,583 | 4.020501 | 0.248292 | 0.022663 | 0.047592 | 0.058924 | 0.294901 | 0.229745 | 0.172238 | 0.172238 | 0.163739 | 0.143909 | 0 | 0.037329 | 0.287863 | 6,583 | 176 | 99 | 37.403409 | 0.715657 | 0.069877 | 0 | 0.161765 | 0 | 0 | 0.08239 | 0.012145 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014706 | false | 0 | 0.051471 | 0 | 0.073529 | 0.073529 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2967a056b02745df6754455d5a9a7411cbb1bfd2 | 7,543 | py | Python | Lib/site-packages/wagtail/utils/l18n/translation.py | SyahmiAmin/belikilo | 0a26dadb514683456ea0dbdcbcfcbf65e09d5dbb | [
"bzip2-1.0.6"
] | null | null | null | Lib/site-packages/wagtail/utils/l18n/translation.py | SyahmiAmin/belikilo | 0a26dadb514683456ea0dbdcbcfcbf65e09d5dbb | [
"bzip2-1.0.6"
] | null | null | null | Lib/site-packages/wagtail/utils/l18n/translation.py | SyahmiAmin/belikilo | 0a26dadb514683456ea0dbdcbcfcbf65e09d5dbb | [
"bzip2-1.0.6"
] | null | null | null | import os
import gettext
import bisect
from locale import getdefaultlocale
from collections.abc import MutableMapping
from copy import copy, deepcopy
import six
class Trans:
def __init__(self):
self.registry = {}
self.current = None
self.set(getdefaultlocale()[0])
def __getitem__(se... | 27.32971 | 78 | 0.571258 | 883 | 7,543 | 4.617214 | 0.1812 | 0.020603 | 0.022075 | 0.018641 | 0.274712 | 0.204807 | 0.155016 | 0.107432 | 0.092225 | 0.073584 | 0 | 0.013018 | 0.327854 | 7,543 | 275 | 79 | 27.429091 | 0.791124 | 0.067612 | 0 | 0.363184 | 0 | 0 | 0.01046 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.19403 | false | 0 | 0.034826 | 0.059701 | 0.447761 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
29682fb767c90bc573a3f797e4f0ca061a3378d9 | 743 | py | Python | examples/example_contour.py | moghimis/geojsoncontour | 23f298cb5c5ae4b7000024423493e109a9cc908d | [
"MIT"
] | 63 | 2016-10-31T06:55:47.000Z | 2022-02-04T06:47:32.000Z | examples/example_contour.py | moghimis/geojsoncontour | 23f298cb5c5ae4b7000024423493e109a9cc908d | [
"MIT"
] | 20 | 2016-09-26T15:25:53.000Z | 2020-11-11T18:26:32.000Z | examples/example_contour.py | moghimis/geojsoncontour | 23f298cb5c5ae4b7000024423493e109a9cc908d | [
"MIT"
] | 26 | 2016-06-15T02:39:10.000Z | 2022-02-04T06:48:15.000Z | import numpy
import matplotlib.pyplot as plt
import geojsoncontour
# Create lat and lon vectors and grid data
grid_size = 1.0
latrange = numpy.arange(-90.0, 90.0, grid_size)
lonrange = numpy.arange(-180.0, 180.0, grid_size)
X, Y = numpy.meshgrid(lonrange, latrange)
Z = numpy.sqrt(X * X + Y * Y)
n_contours = 10
levels... | 26.535714 | 75 | 0.729475 | 119 | 743 | 4.462185 | 0.504202 | 0.045198 | 0.033898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046032 | 0.152086 | 743 | 27 | 76 | 27.518519 | 0.796825 | 0.176312 | 0 | 0 | 0 | 0 | 0.019737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
296b3f67c1ceb01054558b270075a2c69d09bb88 | 2,293 | py | Python | doc/examples/cython/cython_main.py | hershg/ray | a1744f67fe954d8408c5b84e28ecccc130157f8e | [
"Apache-2.0"
] | 2 | 2019-06-17T12:38:24.000Z | 2020-11-11T07:52:26.000Z | doc/examples/cython/cython_main.py | hershg/ray | a1744f67fe954d8408c5b84e28ecccc130157f8e | [
"Apache-2.0"
] | 3 | 2018-08-15T19:19:25.000Z | 2021-06-30T01:54:46.000Z | doc/examples/cython/cython_main.py | hershg/ray | a1744f67fe954d8408c5b84e28ecccc130157f8e | [
"Apache-2.0"
] | 2 | 2017-10-31T23:20:07.000Z | 2019-11-13T20:16:03.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import ray
import click
import inspect
import numpy as np
import cython_examples as cyth
def run_func(func, *args, **kwargs):
"""Helper function for running examples"""
ray.init()
func = ray.rem... | 20.845455 | 79 | 0.64239 | 333 | 2,293 | 4.294294 | 0.372372 | 0.012587 | 0.072727 | 0.01958 | 0.011189 | 0.011189 | 0.011189 | 0.011189 | 0.011189 | 0.011189 | 0 | 0.03724 | 0.203663 | 2,293 | 109 | 80 | 21.036697 | 0.745893 | 0.277366 | 0 | 0.188679 | 0 | 0 | 0.026234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.188679 | false | 0 | 0.150943 | 0 | 0.358491 | 0.056604 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
296c4de61a467a172ab5bf54ab6a35b296d94e43 | 17,314 | py | Python | Simon/dev/main_age_classification.py | uncharted-distil/simon | 26e4e54e6de455bde8ee1a24634d060e1ec7babb | [
"MIT"
] | null | null | null | Simon/dev/main_age_classification.py | uncharted-distil/simon | 26e4e54e6de455bde8ee1a24634d060e1ec7babb | [
"MIT"
] | 2 | 2021-01-27T14:57:26.000Z | 2021-10-07T19:34:09.000Z | Simon/dev/main_age_classification.py | uncharted-distil/simon | 26e4e54e6de455bde8ee1a24634d060e1ec7babb | [
"MIT"
] | 1 | 2021-03-18T19:13:05.000Z | 2021-03-18T19:13:05.000Z | from DataGenerator import *
from Encoder import *
import pandas as pd
from keras.models import Model
from keras.layers import Dense, Activation, Flatten, Input, Dropout, MaxPooling1D, Convolution1D
from keras.layers import LSTM, Lambda, merge, Masking
from keras.layers import Embedding, TimeDistributed
from keras.layer... | 39.083521 | 165 | 0.661315 | 2,340 | 17,314 | 4.674786 | 0.195299 | 0.028156 | 0.006582 | 0.007313 | 0.248377 | 0.173508 | 0.13749 | 0.110796 | 0.106591 | 0.080995 | 0 | 0.013947 | 0.21318 | 17,314 | 442 | 166 | 39.171946 | 0.789033 | 0.074968 | 0 | 0.0721 | 0 | 0.003135 | 0.135095 | 0.010079 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.065831 | 0.015674 | 0.184953 | 0.137931 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
296eaf3a25df674b47f03f8d1d4dfa8c276636f7 | 1,661 | py | Python | tests/test_root_to_hdf.py | lundeenj/hawc_hal | 21b7cfd28490e870d1ded39735827e63684556df | [
"BSD-3-Clause"
] | null | null | null | tests/test_root_to_hdf.py | lundeenj/hawc_hal | 21b7cfd28490e870d1ded39735827e63684556df | [
"BSD-3-Clause"
] | null | null | null | tests/test_root_to_hdf.py | lundeenj/hawc_hal | 21b7cfd28490e870d1ded39735827e63684556df | [
"BSD-3-Clause"
] | null | null | null | from hawc_hal.maptree.map_tree import map_tree_factory
from hawc_hal.response import hawc_response_factory
import os
from conftest import check_map_trees, check_responses
def test_root_to_hdf_response(response):
r = hawc_response_factory(response)
test_filename = "response.hd5"
# Make sure it doesn't e... | 24.072464 | 61 | 0.642986 | 223 | 1,661 | 4.461883 | 0.26009 | 0.144724 | 0.085427 | 0.120603 | 0.552764 | 0.493467 | 0.447236 | 0.447236 | 0.447236 | 0.378894 | 0 | 0.005119 | 0.294401 | 1,661 | 68 | 62 | 24.426471 | 0.843857 | 0.124624 | 0 | 0.342105 | 0 | 0 | 0.015884 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.105263 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |