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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a283c8281f54b443b83fe17cb8519981aeff234f | 11,907 | py | Python | code/datasets/tfrecord_builders/SubwayTFRecordBuilder.py | Zelgunn/Video-Latent-Lerp | c479a26c0be5174543268667bde09f1154d2ff79 | [
"MIT"
] | 4 | 2021-04-28T20:31:08.000Z | 2021-12-18T14:16:45.000Z | code/datasets/tfrecord_builders/SubwayTFRecordBuilder.py | Zelgunn/Video-Latent-Lerp | c479a26c0be5174543268667bde09f1154d2ff79 | [
"MIT"
] | 1 | 2021-06-05T06:55:00.000Z | 2021-06-09T12:42:01.000Z | code/datasets/tfrecord_builders/SubwayTFRecordBuilder.py | Zelgunn/Video-Latent-Lerp | c479a26c0be5174543268667bde09f1154d2ff79 | [
"MIT"
] | null | null | null | import os
from typing import Tuple, List, Union, Optional, NamedTuple
from enum import IntEnum
from modalities import ModalityCollection, RawVideo
from datasets.tfrecord_builders import TFRecordBuilder, DataSource
from datasets.data_readers.VideoReader import VideoReaderProto
class SubwayTFRecordBuilder(TFRecordBuil... | 43.456204 | 119 | 0.571848 | 1,199 | 11,907 | 5.452043 | 0.391159 | 0.054612 | 0.017133 | 0.027536 | 0.204681 | 0.097445 | 0.050482 | 0.050482 | 0.026312 | 0 | 0 | 0.234469 | 0.317292 | 11,907 | 273 | 120 | 43.615385 | 0.569689 | 0.010162 | 0 | 0.108225 | 0 | 0 | 0.024111 | 0.007046 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038961 | false | 0 | 0.025974 | 0.008658 | 0.168831 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2863065e32ea736f6d46f04ff739af818b93482 | 2,524 | py | Python | oolearning/model_processors/BayesianHyperOptTunerResults.py | shane-kercheval/oo-learning | 9e3ebe5f7460179e23f6801bc01f1114bb896dea | [
"MIT"
] | 1 | 2020-10-09T09:11:46.000Z | 2020-10-09T09:11:46.000Z | oolearning/model_processors/BayesianHyperOptTunerResults.py | shane-kercheval/oo-learning | 9e3ebe5f7460179e23f6801bc01f1114bb896dea | [
"MIT"
] | 48 | 2018-04-09T01:30:31.000Z | 2021-06-13T03:25:59.000Z | oolearning/model_processors/BayesianHyperOptTunerResults.py | shane-kercheval/oo-learning | 9e3ebe5f7460179e23f6801bc01f1114bb896dea | [
"MIT"
] | null | null | null | from typing import List, Union
from oolearning.model_processors.ResamplerResults import ResamplerResults
from oolearning.model_processors.TunerResultsBase import TunerResultsBase
class BayesianHyperOptTunerResults(TunerResultsBase):
def __init__(self,
resampler_results: List[ResamplerResults],
... | 42.066667 | 106 | 0.687005 | 301 | 2,524 | 5.508306 | 0.352159 | 0.05971 | 0.060314 | 0.034982 | 0.066345 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002612 | 0.24168 | 2,524 | 59 | 107 | 42.779661 | 0.863636 | 0.198494 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179487 | false | 0 | 0.076923 | 0.102564 | 0.435897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
a28c5d01533a9b5556afbc4d04920451a7b91726 | 7,739 | py | Python | awx/main/tests/unit/api/test_logger.py | keuko/awx | cce5f26e3409e7890b30ab4acfd6e33ca9fb56ec | [
"Apache-2.0"
] | null | null | null | awx/main/tests/unit/api/test_logger.py | keuko/awx | cce5f26e3409e7890b30ab4acfd6e33ca9fb56ec | [
"Apache-2.0"
] | 1 | 2020-03-12T19:26:57.000Z | 2020-03-12T19:26:57.000Z | awx/main/tests/unit/api/test_logger.py | keuko/awx | cce5f26e3409e7890b30ab4acfd6e33ca9fb56ec | [
"Apache-2.0"
] | 1 | 2021-09-02T16:59:42.000Z | 2021-09-02T16:59:42.000Z | import pytest
from django.conf import settings
from awx.main.utils.external_logging import construct_rsyslog_conf_template
from awx.main.tests.functional.api.test_settings import _mock_logging_defaults
'''
# Example User Data
data_logstash = {
"LOG_AGGREGATOR_TYPE": "logstash",
"LOG_AGGREGATOR_HOST": "localh... | 44.222857 | 302 | 0.613645 | 805 | 7,739 | 5.775155 | 0.172671 | 0.064315 | 0.056786 | 0.03291 | 0.759518 | 0.730265 | 0.668531 | 0.599054 | 0.589374 | 0.589374 | 0 | 0.027518 | 0.239307 | 7,739 | 174 | 303 | 44.477011 | 0.762188 | 0.063186 | 0 | 0.633588 | 0 | 0.129771 | 0.549289 | 0.270977 | 0 | 0 | 0 | 0 | 0.015267 | 1 | 0.015267 | false | 0.007634 | 0.030534 | 0 | 0.045802 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2927c47e4e63ff83bb9361c57ac417c8dbdb9ce | 347 | py | Python | __app__/ghutils/ping.py | Bhaskers-Blu-Org2/pvscbot | b442d79e8e5097e41f5a58031a61e54adeb1c372 | [
"MIT"
] | 21 | 2019-05-13T15:44:33.000Z | 2021-12-17T01:35:22.000Z | __app__/ghutils/ping.py | Bhaskers-Blu-Org2/pvscbot | b442d79e8e5097e41f5a58031a61e54adeb1c372 | [
"MIT"
] | 39 | 2019-06-05T23:15:10.000Z | 2021-02-26T17:52:25.000Z | __app__/ghutils/ping.py | LaudateCorpus1/pvscbot | fd9a8162545d5dd27a8ec8051685787c26b48bb0 | [
"MIT"
] | 18 | 2019-09-26T15:06:02.000Z | 2022-02-23T06:29:51.000Z | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import gidgethub.routing
router = gidgethub.routing.Router()
@router.register("ping")
async def ping(*args, logger=None, **kwargs):
"""Respond to the 'ping' event by doing nothing."""
if logger:
logger.inf... | 23.133333 | 59 | 0.700288 | 44 | 347 | 5.522727 | 0.75 | 0.131687 | 0.18107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170029 | 347 | 14 | 60 | 24.785714 | 0.84375 | 0.256484 | 0 | 0 | 0 | 0 | 0.122549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a29299bc531dcc95c43bacc67287cb1957802858 | 881 | py | Python | h2o-py/tests/testdir_javapredict/pyunit_javapredict_DL_xlarge.py | ahmedengu/h2o-3 | ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11 | [
"Apache-2.0"
] | 6,098 | 2015-05-22T02:46:12.000Z | 2022-03-31T16:54:51.000Z | h2o-py/tests/testdir_javapredict/pyunit_javapredict_DL_xlarge.py | ahmedengu/h2o-3 | ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11 | [
"Apache-2.0"
] | 2,517 | 2015-05-23T02:10:54.000Z | 2022-03-30T17:03:39.000Z | h2o-py/tests/testdir_javapredict/pyunit_javapredict_DL_xlarge.py | ahmedengu/h2o-3 | ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11 | [
"Apache-2.0"
] | 2,199 | 2015-05-22T04:09:55.000Z | 2022-03-28T22:20:45.000Z | from __future__ import print_function
from builtins import zip
from builtins import range
import sys
sys.path.insert(1,"../../")
import h2o
from tests import pyunit_utils
def javapredict_dl_xlarge():
hdfs_name_node = pyunit_utils.hadoop_namenode()
hdfs_file_name = "/datasets/z_repro.csv"
url = "hdfs://... | 25.171429 | 93 | 0.68672 | 127 | 881 | 4.488189 | 0.472441 | 0.077193 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037787 | 0.15891 | 881 | 34 | 94 | 25.911765 | 0.731444 | 0.011351 | 0 | 0 | 0 | 0 | 0.117376 | 0.024166 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.304348 | 0 | 0.347826 | 0.130435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a29d955a3c98cb952e884a8203c40694155814e9 | 1,697 | py | Python | examples/miniapps/application-multiple-containers/example/containers.py | YelloFam/python-dependency-injector | 541131e33858ee1b8b5a7590d2bb9f929740ea1e | [
"BSD-3-Clause"
] | null | null | null | examples/miniapps/application-multiple-containers/example/containers.py | YelloFam/python-dependency-injector | 541131e33858ee1b8b5a7590d2bb9f929740ea1e | [
"BSD-3-Clause"
] | null | null | null | examples/miniapps/application-multiple-containers/example/containers.py | YelloFam/python-dependency-injector | 541131e33858ee1b8b5a7590d2bb9f929740ea1e | [
"BSD-3-Clause"
] | null | null | null | """Containers module."""
import logging.config
import sqlite3
import boto3
from dependency_injector import containers, providers
from . import services
class Core(containers.DeclarativeContainer):
config = providers.Configuration()
logging = providers.Resource(
logging.config.dictConfig,
... | 20.950617 | 63 | 0.675309 | 160 | 1,697 | 7.025 | 0.3125 | 0.106762 | 0.128114 | 0.160142 | 0.206406 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006163 | 0.235121 | 1,697 | 80 | 64 | 21.2125 | 0.859784 | 0.010607 | 0 | 0.109091 | 0 | 0 | 0.007173 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.418182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a29e2c3e7da9412388b63695bf9e5f8e5e9a50e7 | 6,972 | py | Python | annotator/layout/main.py | FashionLab/annotator | 7f0e89a2e5eb114443b11df05fce68b5acfd3fcb | [
"Apache-2.0"
] | null | null | null | annotator/layout/main.py | FashionLab/annotator | 7f0e89a2e5eb114443b11df05fce68b5acfd3fcb | [
"Apache-2.0"
] | 2 | 2020-12-29T17:35:31.000Z | 2020-12-29T17:35:37.000Z | annotator/layout/main.py | FashionLab/annotator | 7f0e89a2e5eb114443b11df05fce68b5acfd3fcb | [
"Apache-2.0"
] | null | null | null | import dash_core_components as dcc
import dash_html_components as html
import dash_table
from ..app import appConfigure
from ..utils import load_image
BRAND_FILTER = "brand-filter"
ORDER_DROPDOWN = "order-dropdown"
ITEM_VALID = "item-valid"
ITEM_AD_TYPE = "item-ad-type"
ITEM_VIEW = "item-view"
ITEM_SEX = "item-sex"
IT... | 35.753846 | 85 | 0.350402 | 477 | 6,972 | 5.012579 | 0.293501 | 0.046006 | 0.054371 | 0.04266 | 0.084483 | 0.084483 | 0 | 0 | 0 | 0 | 0 | 0.023444 | 0.504446 | 6,972 | 194 | 86 | 35.938144 | 0.668596 | 0.001434 | 0 | 0.333333 | 0 | 0 | 0.172701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.026455 | 0 | 0.026455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a29fdc57dcb7d253299e6ca3244edf6aa27ca503 | 965 | py | Python | toolkits/search_commits.py | GiorgosNikitopoulos/Mine_Vulnerable_Code | e8770698b501a3681b1cf1a978a4cc409d359b3c | [
"MIT"
] | null | null | null | toolkits/search_commits.py | GiorgosNikitopoulos/Mine_Vulnerable_Code | e8770698b501a3681b1cf1a978a4cc409d359b3c | [
"MIT"
] | 1 | 2021-12-13T20:51:43.000Z | 2021-12-13T20:51:43.000Z | toolkits/search_commits.py | GiorgosNikitopoulos/Mine_Vulnerable_Code | e8770698b501a3681b1cf1a978a4cc409d359b3c | [
"MIT"
] | null | null | null | from cm_response import Commit_Response
import requests
import json
import pandas as pd
import csv
import base64
OUT_FILE = 'mined_coarse_web_search_noned'
xss_cms = Commit_Response(['xss', 'vulnerability'])
print("Populating Commits")
xss_cms.populate_prs()
xss_cms.prs = [x for x in xss_cms.prs if 'PHP' in x.languag... | 31.129032 | 98 | 0.716062 | 171 | 965 | 3.859649 | 0.333333 | 0.118182 | 0.15 | 0.136364 | 0.387879 | 0.387879 | 0.342424 | 0.269697 | 0.1 | 0.1 | 0 | 0.010766 | 0.133679 | 965 | 30 | 99 | 32.166667 | 0.778708 | 0.211399 | 0 | 0 | 0 | 0 | 0.14418 | 0.03836 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.315789 | 0 | 0.315789 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a2a0acfe95d20f2697616a127357ac4a49b611b2 | 1,122 | py | Python | fn_xforce/setup.py | rudimeyer/resilient-community-apps | 7a46841ba41fa7a1c421d4b392b0a3ca9e36bd00 | [
"MIT"
] | 1 | 2020-08-25T03:43:07.000Z | 2020-08-25T03:43:07.000Z | fn_xforce/setup.py | rudimeyer/resilient-community-apps | 7a46841ba41fa7a1c421d4b392b0a3ca9e36bd00 | [
"MIT"
] | 1 | 2019-07-08T16:57:48.000Z | 2019-07-08T16:57:48.000Z | fn_xforce/setup.py | rudimeyer/resilient-community-apps | 7a46841ba41fa7a1c421d4b392b0a3ca9e36bd00 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# (c) Copyright IBM Corp. 2010, 2018. All Rights Reserved.
from setuptools import setup, find_packages
setup(
name='fn_xforce',
version='1.0.0',
license='MIT',
author='Resilient Labs',
author_email='resil.labs@gmail.com',
long_description="Resilient... | 36.193548 | 124 | 0.692513 | 115 | 1,122 | 6.53913 | 0.626087 | 0.06383 | 0.071809 | 0.06383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017486 | 0.184492 | 1,122 | 31 | 125 | 36.193548 | 0.804372 | 0.088235 | 0 | 0.111111 | 0 | 0 | 0.561215 | 0.39667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.037037 | 0 | 0.037037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2a3088d7140b66f589ef8469cc83fb5c993a3a1 | 5,857 | py | Python | lib_bgp_data/simulations/simulator/tests/system_tests/test_special_cases.py | jfuruness/lib_bgp_data | 25f7d57b9e2101c7aefb325e8d728bd91f47d557 | [
"BSD-3-Clause"
] | 16 | 2018-09-24T05:10:03.000Z | 2021-11-29T19:18:59.000Z | lib_bgp_data/simulations/simulator/tests/system_tests/test_special_cases.py | jfuruness/lib_bgp_data | 25f7d57b9e2101c7aefb325e8d728bd91f47d557 | [
"BSD-3-Clause"
] | 4 | 2019-10-09T18:54:17.000Z | 2021-03-05T14:02:50.000Z | lib_bgp_data/simulations/simulator/tests/system_tests/test_special_cases.py | jfuruness/lib_bgp_data | 25f7d57b9e2101c7aefb325e8d728bd91f47d557 | [
"BSD-3-Clause"
] | 3 | 2018-09-17T17:35:18.000Z | 2020-03-24T16:03:31.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""This file contains system tests for the extrapolator.
For speciifics on each test, see the docstrings under each function.
"""
import pytest
from .graph_tester import Graph_Tester
#from ..tables import Hijack
from ....enums import Non_Default_Policies, Policies, Da... | 37.787097 | 103 | 0.528257 | 700 | 5,857 | 4.174286 | 0.191429 | 0.086242 | 0.054757 | 0.061602 | 0.669747 | 0.647844 | 0.647844 | 0.624572 | 0.608145 | 0.608145 | 0 | 0.101651 | 0.338228 | 5,857 | 154 | 104 | 38.032468 | 0.652219 | 0.141028 | 0 | 0.543689 | 0 | 0 | 0.190083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019417 | false | 0 | 0.048544 | 0 | 0.07767 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2a8f66b6f8fd16a0af60538da4a2dc18ba199f0 | 11,299 | py | Python | main.py | twoteatome/dynamic-watermark-heroku-child | 1fadea3b8a8b71ef86b59ebbccab514969bc84bc | [
"Apache-2.0"
] | null | null | null | main.py | twoteatome/dynamic-watermark-heroku-child | 1fadea3b8a8b71ef86b59ebbccab514969bc84bc | [
"Apache-2.0"
] | null | null | null | main.py | twoteatome/dynamic-watermark-heroku-child | 1fadea3b8a8b71ef86b59ebbccab514969bc84bc | [
"Apache-2.0"
] | null | null | null | from typing import Optional
from fastapi import BackgroundTasks, Depends, FastAPI, HTTPException, status
from fastapi.responses import PlainTextResponse
from fastapi.middleware.cors import CORSMiddleware
from fastapi.responses import FileResponse
import cv2
import random
import numpy as np
import os
import re
import ps... | 38.695205 | 196 | 0.618196 | 1,362 | 11,299 | 5.03304 | 0.215859 | 0.023632 | 0.010503 | 0.028884 | 0.326477 | 0.30868 | 0.287527 | 0.246827 | 0.20992 | 0.186871 | 0 | 0.011682 | 0.242411 | 11,299 | 291 | 197 | 38.828179 | 0.789019 | 0.012744 | 0 | 0.345528 | 0 | 0.02439 | 0.220029 | 0.023241 | 0.004065 | 0 | 0 | 0 | 0 | 1 | 0.028455 | false | 0.121951 | 0.052846 | 0.004065 | 0.142276 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a2b43af3e6880cf066fdd4554c8c242200f1e38c | 795 | py | Python | code/steps_in_euclids_algorithm/sol_433.py | bhavinjawade/project-euler-solutions | 56bf6a282730ed4b9b875fa081cf4509d9939d98 | [
"Apache-2.0"
] | 2 | 2020-07-16T08:16:32.000Z | 2020-10-01T07:16:48.000Z | code/steps_in_euclids_algorithm/sol_433.py | Psingh12354/project-euler-solutions | 56bf6a282730ed4b9b875fa081cf4509d9939d98 | [
"Apache-2.0"
] | null | null | null | code/steps_in_euclids_algorithm/sol_433.py | Psingh12354/project-euler-solutions | 56bf6a282730ed4b9b875fa081cf4509d9939d98 | [
"Apache-2.0"
] | 1 | 2021-05-07T18:06:08.000Z | 2021-05-07T18:06:08.000Z |
# -*- coding: utf-8 -*-
'''
File name: code\steps_in_euclids_algorithm\sol_433.py
Author: Vaidic Joshi
Date created: Oct 20, 2018
Python Version: 3.x
'''
# Solution to Project Euler Problem #433 :: Steps in Euclid's algorithm
#
# For more information see:
# https://projecteuler.net/problem=433
# Pro... | 22.083333 | 191 | 0.641509 | 151 | 795 | 3.370861 | 0.582781 | 0.011788 | 0.062868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101286 | 0.21761 | 795 | 35 | 192 | 22.714286 | 0.712219 | 0.407547 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2b495b3e03a532fcca5ced300234d34de0aeda6 | 736 | py | Python | gtfspy/test/test_warnings_container.py | Leo-Ryu/gtfspy | 732abdf6bfb6427454ac4c0a676dc3f8fc838cf4 | [
"MIT"
] | 118 | 2017-03-14T11:17:54.000Z | 2022-03-31T07:46:31.000Z | gtfspy/test/test_warnings_container.py | Leo-Ryu/gtfspy | 732abdf6bfb6427454ac4c0a676dc3f8fc838cf4 | [
"MIT"
] | 27 | 2017-05-02T12:39:36.000Z | 2020-03-24T18:29:20.000Z | gtfspy/test/test_warnings_container.py | Leo-Ryu/gtfspy | 732abdf6bfb6427454ac4c0a676dc3f8fc838cf4 | [
"MIT"
] | 29 | 2017-08-21T15:22:41.000Z | 2022-03-13T07:27:52.000Z | import io
from unittest import TestCase
from gtfspy.warnings_container import WarningsContainer
class TestWarningsContainer(TestCase):
def test_summary_print(self):
wc = WarningsContainer()
wc.add_warning("DUMMY_WARNING", ["dummy1", "dummy2"], 2)
f = io.StringIO("")
wc.write_sum... | 29.44 | 77 | 0.642663 | 91 | 736 | 5.010989 | 0.417582 | 0.030702 | 0.048246 | 0.122807 | 0.649123 | 0.649123 | 0.649123 | 0.649123 | 0.649123 | 0.649123 | 0 | 0.017422 | 0.220109 | 736 | 25 | 78 | 29.44 | 0.777003 | 0 | 0 | 0.444444 | 0 | 0 | 0.067843 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.166667 | 0 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2b69dd85d49db17fd051c17ed0cd9431a536d8c | 1,801 | py | Python | src/user_functions.py | Ngom/DevOpsLab | 0a82131867207c8b406fde440fee39f2909d1d38 | [
"Apache-2.0"
] | null | null | null | src/user_functions.py | Ngom/DevOpsLab | 0a82131867207c8b406fde440fee39f2909d1d38 | [
"Apache-2.0"
] | null | null | null | src/user_functions.py | Ngom/DevOpsLab | 0a82131867207c8b406fde440fee39f2909d1d38 | [
"Apache-2.0"
] | null | null | null | from string import punctuation, digits, ascii_letters
# The simplest function to get the user email (copy to src/user_functions.py)
# def get_email_from_input():
# """ Contains '@' and '.' """
# return input("Tell me your email: ")
# More elaborated version (copy to src/user_functions.py)
def get_email_from_inp... | 38.319149 | 123 | 0.657413 | 271 | 1,801 | 4.261993 | 0.298893 | 0.062338 | 0.051948 | 0.046753 | 0.385281 | 0.297836 | 0.225108 | 0.095238 | 0.095238 | 0.095238 | 0 | 0.005727 | 0.22432 | 1,801 | 46 | 124 | 39.152174 | 0.821045 | 0.419212 | 0 | 0.136364 | 0 | 0 | 0.130049 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0.363636 | 0.045455 | 0 | 0.318182 | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a2b7f3fca1d3d15c34ace312c29d0947baa2d890 | 537 | py | Python | 009 - Incomplete - Tests timing out/euler009 - Test 5,6,7 - timeout - 2.py | MayankAgarwal/euler_py | 4cf32879f8f7746af6ba31b87b7d4f20a0c91f3f | [
"MIT"
] | null | null | null | 009 - Incomplete - Tests timing out/euler009 - Test 5,6,7 - timeout - 2.py | MayankAgarwal/euler_py | 4cf32879f8f7746af6ba31b87b7d4f20a0c91f3f | [
"MIT"
] | null | null | null | 009 - Incomplete - Tests timing out/euler009 - Test 5,6,7 - timeout - 2.py | MayankAgarwal/euler_py | 4cf32879f8f7746af6ba31b87b7d4f20a0c91f3f | [
"MIT"
] | null | null | null | # Execution time reduced for test cases. Test case 4 time reduced from ~9seconds to ~3 seconds.
# Still the programs times out for tests 5,6,and 7
from math import sqrt
def get_py_triplets (N):
result = -1
for c in xrange(int(N/3), int(N/2)):
for b in xrange(int( (N-c)/2 ), c):
a = N - b - c
if a >= b:
... | 17.322581 | 95 | 0.620112 | 101 | 537 | 3.237624 | 0.465347 | 0.073395 | 0.079511 | 0.085627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024876 | 0.251397 | 537 | 31 | 96 | 17.322581 | 0.788557 | 0.264432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2ba70be7e86ddcd66f3e8ca336044a3eef6a42b | 504 | py | Python | api/serializers.py | ShyamSundhar1411/Expense-Manager | 8ecc4196619f1666f43fa74f1140c72a1e14b800 | [
"MIT"
] | 1 | 2021-11-10T15:29:22.000Z | 2021-11-10T15:29:22.000Z | api/serializers.py | ShyamSundhar1411/Expense-Manager | 8ecc4196619f1666f43fa74f1140c72a1e14b800 | [
"MIT"
] | null | null | null | api/serializers.py | ShyamSundhar1411/Expense-Manager | 8ecc4196619f1666f43fa74f1140c72a1e14b800 | [
"MIT"
] | null | null | null | #Rest Framework
from rest_framework import serializers
from expense.models import Expense,Budget
#Serializers
class ExpenseAddSerialzer(serializers.ModelSerializer):
dot = serializers.ReadOnlyField()
class Meta:
model = Expense
fields = ('id','title','expense','category','payment','receipt','do... | 31.5 | 78 | 0.708333 | 49 | 504 | 7.265306 | 0.469388 | 0.073034 | 0.162921 | 0.224719 | 0.376404 | 0.376404 | 0.376404 | 0.376404 | 0 | 0 | 0 | 0 | 0.170635 | 504 | 15 | 79 | 33.6 | 0.851675 | 0.049603 | 0 | 0.333333 | 0 | 0 | 0.1174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2bb00fc7fea7a518d884e1266aa3765068c2f14 | 963 | py | Python | pages/about.py | StephenSpicer/Spotify_Music_Discovery_LS_DS_BW | 2e61e98f45cdfeb064b58e44091ffa16d67d82b2 | [
"MIT"
] | null | null | null | pages/about.py | StephenSpicer/Spotify_Music_Discovery_LS_DS_BW | 2e61e98f45cdfeb064b58e44091ffa16d67d82b2 | [
"MIT"
] | null | null | null | pages/about.py | StephenSpicer/Spotify_Music_Discovery_LS_DS_BW | 2e61e98f45cdfeb064b58e44091ffa16d67d82b2 | [
"MIT"
] | 5 | 2021-03-27T21:42:39.000Z | 2021-03-31T15:12:06.000Z | # Imports from 3rd party libraries
import dash
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
# Imports from this application
from app import create_app #I don't think this is necessary
# 1 column lay... | 29.181818 | 122 | 0.655244 | 123 | 963 | 5.073171 | 0.642276 | 0.064103 | 0.073718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026432 | 0.292835 | 963 | 33 | 123 | 29.181818 | 0.889868 | 0.192108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a2bbd5ed3e7173b04881d5b7796fbdae146bef6e | 2,069 | py | Python | modules/smtp/strong_password/__init__.py | zdresearch/Python-Honeypot | be6d9b49a3c3b873f5bcce8cc9d0bdc4df3ae4d8 | [
"Apache-2.0"
] | 186 | 2020-09-29T16:28:43.000Z | 2022-03-29T05:57:10.000Z | modules/smtp/strong_password/__init__.py | zdresearch/Python-Honeypot | be6d9b49a3c3b873f5bcce8cc9d0bdc4df3ae4d8 | [
"Apache-2.0"
] | 107 | 2018-07-08T21:06:56.000Z | 2020-09-25T10:36:34.000Z | modules/smtp/strong_password/__init__.py | zdresearch/Python-Honeypot | be6d9b49a3c3b873f5bcce8cc9d0bdc4df3ae4d8 | [
"Apache-2.0"
] | 67 | 2019-02-12T15:47:54.000Z | 2022-03-28T11:15:30.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import time
import os
import json
from core.compatible import generate_token
from database.connector import insert_to_credential_events_collection
from database.datatypes import CredentialEvent
class ModuleProcessor:
"""
this is the processor to run after docker ... | 32.328125 | 111 | 0.57274 | 228 | 2,069 | 4.995614 | 0.47807 | 0.055312 | 0.118525 | 0.066725 | 0.152766 | 0.054434 | 0.054434 | 0.054434 | 0 | 0 | 0 | 0.004354 | 0.333978 | 2,069 | 63 | 112 | 32.84127 | 0.822206 | 0.164331 | 0 | 0.04878 | 1 | 0 | 0.127339 | 0.053108 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0.04878 | 0.146341 | 0 | 0.268293 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2bce7e0e079dc4f5c8813552402f869e85121a3 | 312 | py | Python | virtual/lib/python3.6/site-packages/keyring/getpassbackend.py | marknesh/pitches | 0a480d9bc2beafaefa0121393b1502cc05edab89 | [
"MIT"
] | 9 | 2018-06-10T20:32:10.000Z | 2021-11-21T03:54:41.000Z | keyring/getpassbackend.py | EnjoyLifeFund/Debian_py36_packages | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | 479 | 2019-07-30T11:47:46.000Z | 2021-08-03T10:43:11.000Z | keyring/getpassbackend.py | EnjoyLifeFund/Debian_py36_packages | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | 5 | 2018-09-14T18:00:18.000Z | 2020-11-04T07:26:35.000Z | """Specific support for getpass."""
import getpass
from . import core
def get_password(prompt='Password: ', stream=None,
service_name='Python',
username=None):
if username is None:
username = getpass.getuser()
return core.get_password(service_name, username)
| 24 | 52 | 0.644231 | 35 | 312 | 5.628571 | 0.6 | 0.111675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253205 | 312 | 12 | 53 | 26 | 0.845494 | 0.092949 | 0 | 0 | 0 | 0 | 0.057762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a2be5d50543a65ccd35a73b056a3bec37dc3656f | 1,133 | py | Python | preprocess_data.py | priyavrat-misra/detect-covid19-from-xrays | dcc4faa5af1dac0fcdb8c6830e95d44142afacc2 | [
"MIT"
] | 2 | 2021-04-18T19:00:51.000Z | 2021-12-09T06:59:44.000Z | preprocess_data.py | priyavrat-misra/detect-covid19-from-xrays | dcc4faa5af1dac0fcdb8c6830e95d44142afacc2 | [
"MIT"
] | null | null | null | preprocess_data.py | priyavrat-misra/detect-covid19-from-xrays | dcc4faa5af1dac0fcdb8c6830e95d44142afacc2 | [
"MIT"
] | null | null | null | import os
import shutil
import random
class_names = ['normal', 'viral', 'covid']
root_dir = 'COVID-19 Radiography Database'
source_dirs = ['NORMAL', 'Viral Pneumonia', 'COVID-19']
if os.path.isdir(os.path.join(root_dir, source_dirs[1])):
os.mkdir(os.path.join(root_dir, 'test'))
for i, d in enumerate(source_d... | 33.323529 | 66 | 0.635481 | 175 | 1,133 | 3.942857 | 0.251429 | 0.121739 | 0.15942 | 0.223188 | 0.555072 | 0.411594 | 0.284058 | 0.162319 | 0 | 0 | 0 | 0.007982 | 0.225949 | 1,133 | 33 | 67 | 34.333333 | 0.778791 | 0 | 0 | 0.192308 | 0 | 0 | 0.087379 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.115385 | 0 | 0.115385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2bedde09641ea9c0fc4b9a2a042beb22f2fb4e4 | 795 | py | Python | string_to_integer.py | cheng10/leetcode | 8ecab26e354501e7819afe29aa79df2eb8caa8ca | [
"MIT"
] | null | null | null | string_to_integer.py | cheng10/leetcode | 8ecab26e354501e7819afe29aa79df2eb8caa8ca | [
"MIT"
] | null | null | null | string_to_integer.py | cheng10/leetcode | 8ecab26e354501e7819afe29aa79df2eb8caa8ca | [
"MIT"
] | null | null | null | class Solution(object):
def myAtoi(self, str):
"""
:type str: str
:rtype: int
"""
str = str.strip()
flag = 1
result = 0
if str == '': return 0
if str[0] == '+':
str = str[1:]
elif str[0] == '-':
str = st... | 24.090909 | 41 | 0.316981 | 83 | 795 | 3.036145 | 0.313253 | 0.166667 | 0.142857 | 0.079365 | 0.087302 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092391 | 0.537107 | 795 | 32 | 42 | 24.84375 | 0.592391 | 0.032704 | 0 | 0.166667 | 0 | 0 | 0.005427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2c37e72aca5fa6578c2677c470e772a5928dc85 | 1,418 | py | Python | SprintChallenge/query.py | eyvonne/DS-Unit-3-Sprint-2-SQL-and-Databases | 03d08bf3f7b08d646fca1720e356f2f0ea8f2efa | [
"MIT"
] | null | null | null | SprintChallenge/query.py | eyvonne/DS-Unit-3-Sprint-2-SQL-and-Databases | 03d08bf3f7b08d646fca1720e356f2f0ea8f2efa | [
"MIT"
] | null | null | null | SprintChallenge/query.py | eyvonne/DS-Unit-3-Sprint-2-SQL-and-Databases | 03d08bf3f7b08d646fca1720e356f2f0ea8f2efa | [
"MIT"
] | null | null | null | import sqlite3
# I'm not technically allowed to use this on the sprint
# but it doesn't change the code I'm doing, just
# makes the results readable. I'm doing this for you.
# after the sprint challenge I'm going to start a dshelper tools module
# stored on github with this.
from tabulate import tabulate
class SqlQue... | 32.227273 | 71 | 0.638223 | 199 | 1,418 | 4.527638 | 0.417085 | 0.062153 | 0.046615 | 0.039956 | 0.051054 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001927 | 0.267983 | 1,418 | 43 | 72 | 32.976744 | 0.866089 | 0.445698 | 0 | 0.304348 | 0 | 0 | 0.02038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.086957 | 0 | 0.434783 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2c74f143145507254feeb4333f157b2a5005d11 | 8,251 | py | Python | hubspot/files/files/models/file_update_input.py | fakepop/hubspot-api-python | f04103a09f93f5c26c99991b25fa76801074f3d3 | [
"Apache-2.0"
] | null | null | null | hubspot/files/files/models/file_update_input.py | fakepop/hubspot-api-python | f04103a09f93f5c26c99991b25fa76801074f3d3 | [
"Apache-2.0"
] | null | null | null | hubspot/files/files/models/file_update_input.py | fakepop/hubspot-api-python | f04103a09f93f5c26c99991b25fa76801074f3d3 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Files
Upload and manage files. # noqa: E501
The version of the OpenAPI document: v3
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from hubspot.files.files.configuration import Configuration
class FileUpdateInput(object):
... | 31.857143 | 228 | 0.606836 | 1,018 | 8,251 | 4.71611 | 0.151277 | 0.09498 | 0.087482 | 0.067278 | 0.572172 | 0.517809 | 0.496147 | 0.380337 | 0.348469 | 0.276817 | 0 | 0.018201 | 0.314144 | 8,251 | 258 | 229 | 31.98062 | 0.830182 | 0.377288 | 0 | 0.072 | 1 | 0 | 0.071801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128 | false | 0 | 0.032 | 0 | 0.28 | 0.016 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2cb5588f95cdbdcb2b939d6e64eca499ee165c3 | 4,373 | py | Python | get_devices.py | tsunglung/libdyson | 6d851a92aa2ce1e60d2a8693d07c16c4361fbe6b | [
"Apache-2.0"
] | null | null | null | get_devices.py | tsunglung/libdyson | 6d851a92aa2ce1e60d2a8693d07c16c4361fbe6b | [
"Apache-2.0"
] | null | null | null | get_devices.py | tsunglung/libdyson | 6d851a92aa2ce1e60d2a8693d07c16c4361fbe6b | [
"Apache-2.0"
] | null | null | null | import os
import sys
import platform
import pathlib
import shutil
from getpass import getpass
from typing import Optional
import requests
import certifi
import urllib3
from libdyson.cloud import DysonAccount
from libdyson.cloud.account import DysonAccountCN, DYSON_API_HEADERS
from libdyson.exceptions import (
Dyso... | 27.853503 | 121 | 0.629774 | 479 | 4,373 | 5.638831 | 0.344468 | 0.026657 | 0.013328 | 0.025176 | 0.122177 | 0.104406 | 0.07997 | 0.07997 | 0.07997 | 0.07997 | 0 | 0.007813 | 0.268237 | 4,373 | 156 | 122 | 28.032051 | 0.83625 | 0.014178 | 0 | 0.125984 | 0 | 0 | 0.203924 | 0.053959 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03937 | false | 0.086614 | 0.102362 | 0 | 0.181102 | 0.125984 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a2cb8858ef03cac4e52336ba9269daa9569302ce | 1,438 | py | Python | src/wellsfargo/migrations/0026_auto_20190208_1629.py | robertdev5/django-oscar | 35c8554c988ad3a901de1d4772c4372c190df1e3 | [
"0BSD"
] | null | null | null | src/wellsfargo/migrations/0026_auto_20190208_1629.py | robertdev5/django-oscar | 35c8554c988ad3a901de1d4772c4372c190df1e3 | [
"0BSD"
] | 8 | 2021-03-18T22:26:27.000Z | 2022-02-10T11:28:57.000Z | src/wellsfargo/migrations/0026_auto_20190208_1629.py | supertech-999/django-oscar | 35c8554c988ad3a901de1d4772c4372c190df1e3 | [
"0BSD"
] | null | null | null | # Generated by Django 2.1.5 on 2019-02-08 21:29
from django.db import migrations
def migrate_inquiries_forward(apps, schema_editor):
ContentType = apps.get_model('contenttypes', 'ContentType')
USCreditApp = apps.get_model('wellsfargo', 'USCreditApp')
USJointCreditApp = apps.get_model('wellsfargo', 'USJoi... | 37.842105 | 84 | 0.711405 | 153 | 1,438 | 6.444444 | 0.379085 | 0.091278 | 0.073022 | 0.111562 | 0.06288 | 0.06288 | 0 | 0 | 0 | 0 | 0 | 0.026793 | 0.19541 | 1,438 | 37 | 85 | 38.864865 | 0.825411 | 0.031293 | 0 | 0 | 1 | 0 | 0.129403 | 0.016535 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.037037 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2cf3aced07c9f86f773532f974f5ed896f31836 | 2,858 | py | Python | caffe2/python/test_util.py | wenhaopeter/read_pytorch_code | 491f989cd918cf08874dd4f671fb7f0142a0bc4f | [
"Intel",
"X11"
] | 40 | 2021-06-01T07:37:59.000Z | 2022-03-25T01:42:09.000Z | caffe2/python/test_util.py | wenhaopeter/read_pytorch_code | 491f989cd918cf08874dd4f671fb7f0142a0bc4f | [
"Intel",
"X11"
] | 14 | 2021-06-01T11:52:46.000Z | 2022-03-25T02:13:08.000Z | caffe2/python/test_util.py | wenhaopeter/read_pytorch_code | 491f989cd918cf08874dd4f671fb7f0142a0bc4f | [
"Intel",
"X11"
] | 7 | 2021-07-20T19:34:26.000Z | 2022-03-13T21:07:36.000Z | ## @package test_util
# Module caffe2.python.test_util
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import numpy as np
from caffe2.python import core, workspace
import unittest
import os
def rand_array(*dims):
... | 30.404255 | 85 | 0.688593 | 401 | 2,858 | 4.710723 | 0.369077 | 0.047644 | 0.034939 | 0.023822 | 0.118581 | 0.03388 | 0 | 0 | 0 | 0 | 0 | 0.014279 | 0.215885 | 2,858 | 93 | 86 | 30.731183 | 0.828648 | 0.237579 | 0 | 0.037037 | 0 | 0 | 0.113784 | 0.044403 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.148148 | 0.074074 | 0.5 | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2d265e5751c736423f7e936d80201a1f6fcb4ed | 458 | py | Python | _grains/cinder_policy.py | NDPF/salt-formula-cinder | 1aeb0c8d95c3c8b8368386f9096e09f1fdc71aed | [
"Apache-2.0"
] | 2 | 2017-08-10T09:55:56.000Z | 2017-11-04T18:23:39.000Z | _grains/cinder_policy.py | NDPF/salt-formula-cinder | 1aeb0c8d95c3c8b8368386f9096e09f1fdc71aed | [
"Apache-2.0"
] | 9 | 2017-02-06T06:20:01.000Z | 2017-12-12T08:39:21.000Z | _grains/cinder_policy.py | NDPF/salt-formula-cinder | 1aeb0c8d95c3c8b8368386f9096e09f1fdc71aed | [
"Apache-2.0"
] | 25 | 2017-02-03T21:30:20.000Z | 2018-11-26T14:50:40.000Z | #!/usr/bin/env python
import salt.config
import salt.loader
def main():
path = "/etc/cinder/policy.json"
__opts__ = salt.config.minion_config('/etc/salt/minion')
keystone_policy_mod = salt.loader.raw_mod(__opts__, 'keystone_policy', None)
if keystone_policy_mod:
result = keystone_policy_mod['k... | 28.625 | 80 | 0.689956 | 61 | 458 | 4.852459 | 0.491803 | 0.236486 | 0.172297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189956 | 458 | 15 | 81 | 30.533333 | 0.797844 | 0.043668 | 0 | 0 | 0 | 0 | 0.222477 | 0.110092 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2d43fe4fe7b25e49861cd3a25b64cfeef477c3f | 456 | py | Python | neuroscout_cli/commands/base.py | neuroscout/neuroscout-cli | 5fdb2437470dd456b579cd9a027e185ca54e029f | [
"BSD-3-Clause"
] | 1 | 2019-06-13T16:07:52.000Z | 2019-06-13T16:07:52.000Z | neuroscout_cli/commands/base.py | neuroscout/neuroscout-cli | 5fdb2437470dd456b579cd9a027e185ca54e029f | [
"BSD-3-Clause"
] | 79 | 2018-07-02T22:33:00.000Z | 2022-03-28T21:00:16.000Z | neuroscout_cli/commands/base.py | neuroscout/neuroscout-cli | 5fdb2437470dd456b579cd9a027e185ca54e029f | [
"BSD-3-Clause"
] | 2 | 2018-08-15T15:47:25.000Z | 2021-08-16T19:54:24.000Z | """The base command."""
from abc import ABCMeta, abstractmethod
from pathlib import Path
from pyns import Neuroscout
class Command(metaclass=ABCMeta):
''' A base command'''
def __init__(self, options, *args, **kwargs):
self.options = options
self.bundle_id = self.options['<bundle_id>']
... | 19.826087 | 52 | 0.633772 | 53 | 456 | 5.339623 | 0.490566 | 0.116608 | 0.084806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256579 | 456 | 22 | 53 | 20.727273 | 0.834808 | 0.070175 | 0 | 0 | 0 | 0 | 0.026699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.230769 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a2dc161f6ab283278b51dbbdd5d2438e46db9cec | 7,455 | py | Python | install/super_prove/lib/super_prove/liveness.py | ljbrooks/superkb_release | cd8c476ba687dea3cdd979eb4b1a7bd9471ece66 | [
"MIT"
] | null | null | null | install/super_prove/lib/super_prove/liveness.py | ljbrooks/superkb_release | cd8c476ba687dea3cdd979eb4b1a7bd9471ece66 | [
"MIT"
] | null | null | null | install/super_prove/lib/super_prove/liveness.py | ljbrooks/superkb_release | cd8c476ba687dea3cdd979eb4b1a7bd9471ece66 | [
"MIT"
] | null | null | null | import os
import sys
import time
import tempfile
import subprocess
from contextlib import contextmanager
import affinity
import pyabc
import pyabc_split
import pyliveness
import pyzz
@contextmanager
def temp_file_names(N, suffix=""):
files = []
try:
for i in xrange(N):
... | 27.408088 | 163 | 0.542455 | 880 | 7,455 | 4.361364 | 0.218182 | 0.041688 | 0.027358 | 0.01433 | 0.223033 | 0.180563 | 0.144085 | 0.062533 | 0.062533 | 0.022929 | 0 | 0.007656 | 0.35171 | 7,455 | 271 | 164 | 27.509225 | 0.786468 | 0 | 0 | 0.126437 | 0 | 0 | 0.082629 | 0 | 0 | 0 | 0 | 0 | 0.005747 | 0 | null | null | 0.005747 | 0.086207 | null | null | 0.011494 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2dec5ad35c69ea473e0105f82501ff6631d54f7 | 1,027 | py | Python | apps/wiki/cron.py | storagebot/kitsune | 613ba2ca09104f330ab77088b452391169096249 | [
"BSD-3-Clause"
] | 2 | 2019-08-19T17:08:47.000Z | 2019-10-05T11:37:02.000Z | apps/wiki/cron.py | taliasman/kitsune | f8085205eef143011adb4c52d1f183da06c1c58e | [
"BSD-3-Clause"
] | null | null | null | apps/wiki/cron.py | taliasman/kitsune | f8085205eef143011adb4c52d1f183da06c1c58e | [
"BSD-3-Clause"
] | null | null | null | import logging
import os
import urllib2
from django.conf import settings
import cronjobs
import waffle
from search.tasks import index_task
from wiki import tasks
from wiki.models import Document
log = logging.getLogger('k.migratehelpful')
@cronjobs.register
def rebuild_kb():
# If rebuild on demand switch is ... | 23.883721 | 68 | 0.670886 | 126 | 1,027 | 5.380952 | 0.547619 | 0.070796 | 0.084071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033499 | 0.21519 | 1,027 | 42 | 69 | 24.452381 | 0.807692 | 0.093476 | 0 | 0.111111 | 0 | 0 | 0.193478 | 0.105435 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.481481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a2df1a34149b8b172874297bed8b504901cb5c37 | 2,949 | py | Python | Python/Legacy/nRF51DK/BoogioLogger.py | IA-Nate/BoogioBaseStation | a181d047649a5b4a557c56db2fe98def8444c9e6 | [
"MIT"
] | null | null | null | Python/Legacy/nRF51DK/BoogioLogger.py | IA-Nate/BoogioBaseStation | a181d047649a5b4a557c56db2fe98def8444c9e6 | [
"MIT"
] | null | null | null | Python/Legacy/nRF51DK/BoogioLogger.py | IA-Nate/BoogioBaseStation | a181d047649a5b4a557c56db2fe98def8444c9e6 | [
"MIT"
] | null | null | null | import sqlite3
import datetime
import time
import os, sys
from os import path
class BoogioLogger:
def __init__(self, macAddress):
self.macAddress = macAddress
self.year = 0
self.month = 0
self.day = 0
self.hour = 0
self.minute = 0
self.second = 0
se... | 35.963415 | 183 | 0.571719 | 357 | 2,949 | 4.711485 | 0.257703 | 0.035672 | 0.071344 | 0.053508 | 0.290725 | 0.263377 | 0.263377 | 0.263377 | 0.219382 | 0.219382 | 0 | 0.006635 | 0.284503 | 2,949 | 81 | 184 | 36.407407 | 0.790521 | 0.023059 | 0 | 0.114754 | 0 | 0 | 0.244614 | 0.029882 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.081967 | null | null | 0.032787 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2e0b48c671688b341a8eee90dad549a356b9596 | 3,851 | py | Python | example/datablocks_example.py | hycis/Mozi | 7f2eccbe3169c10d231e07edf8bc650039fa4eb2 | [
"MIT"
] | 122 | 2015-07-24T09:29:06.000Z | 2022-02-22T02:51:00.000Z | example/datablocks_example.py | hycis/Mozi | 7f2eccbe3169c10d231e07edf8bc650039fa4eb2 | [
"MIT"
] | 4 | 2015-07-27T04:37:11.000Z | 2020-04-04T08:05:00.000Z | example/datablocks_example.py | hycis/Mozi | 7f2eccbe3169c10d231e07edf8bc650039fa4eb2 | [
"MIT"
] | 27 | 2015-07-24T12:59:35.000Z | 2020-04-14T00:21:43.000Z | import numpy as np
import os
import theano.tensor as T
from mozi.datasets.cifar10 import Cifar10
from mozi.model import Sequential
from mozi.layers.linear import *
from mozi.layers.noise import Dropout
from mozi.layers.activation import *
from mozi.layers.convolution import *
from mozi.layers.misc import Flatten
from ... | 36.330189 | 100 | 0.595689 | 539 | 3,851 | 4.118738 | 0.298701 | 0.043243 | 0.035135 | 0.045946 | 0.314865 | 0.177928 | 0.177928 | 0.114414 | 0 | 0 | 0 | 0.048676 | 0.274474 | 3,851 | 105 | 101 | 36.67619 | 0.745884 | 0.10283 | 0 | 0.025974 | 0 | 0 | 0.115854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.194805 | null | null | 0.051948 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2e6dfa5fa090137ddd2090d9dcd7a7a98b1358d | 1,281 | py | Python | casemgmt/urls.py | saolsen/oso-casemgmt-django | 05e7e1d54c0ca274341df3fa53c82b9735c377c6 | [
"MIT"
] | null | null | null | casemgmt/urls.py | saolsen/oso-casemgmt-django | 05e7e1d54c0ca274341df3fa53c82b9735c377c6 | [
"MIT"
] | null | null | null | casemgmt/urls.py | saolsen/oso-casemgmt-django | 05e7e1d54c0ca274341df3fa53c82b9735c377c6 | [
"MIT"
] | null | null | null | from django.shortcuts import redirect
from django.urls import path, include
from django.contrib.auth import views as auth_views
from rest_framework import routers
from .api.wkcmp.views import WkcmpEligibilityViewSet
from .api.views import ClientViewSet, DocumentViewSet, DocumentTemplateViewSet, CaseloadViewSet
route... | 32.025 | 105 | 0.750195 | 151 | 1,281 | 6.278146 | 0.463576 | 0.07384 | 0.079114 | 0.050633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0053 | 0.116315 | 1,281 | 39 | 106 | 32.846154 | 0.832155 | 0.138954 | 0 | 0 | 0 | 0 | 0.174704 | 0.054595 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0.038462 | false | 0 | 0.230769 | 0.038462 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2eb040aa59d48ef4fe8dea581489c66da7b119b | 24,776 | py | Python | tools/contrail/create_subcluster_environment.py | ivanvtimofeev/tripleo-heat-templates | 3d9a16426c9bf5c167a13088c226e68d1225e40c | [
"Apache-2.0"
] | null | null | null | tools/contrail/create_subcluster_environment.py | ivanvtimofeev/tripleo-heat-templates | 3d9a16426c9bf5c167a13088c226e68d1225e40c | [
"Apache-2.0"
] | null | null | null | tools/contrail/create_subcluster_environment.py | ivanvtimofeev/tripleo-heat-templates | 3d9a16426c9bf5c167a13088c226e68d1225e40c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import yaml, sys, getopt, json, os
from subprocess import check_output
from string import Template
CONTROL_ONLY_HOSTNAME_PREFIX='ctrlonly'
COMPUTE_HOSTNAME_PREFIX='compute'
DPDK_HOSTNAME_PREFIX='computedpdk'
SRIOV_HOSTNAME_PREFIX='computesriov'
CONTROL_ONLY_ROLE_PREFIX='ContrailControlOnly'
COMPUTE_... | 50.874743 | 128 | 0.692848 | 2,180 | 24,776 | 7.649083 | 0.147706 | 0.030765 | 0.054033 | 0.01919 | 0.437961 | 0.338831 | 0.2803 | 0.248156 | 0.217571 | 0.195622 | 0 | 0.000959 | 0.200032 | 24,776 | 486 | 129 | 50.979424 | 0.840363 | 0.000646 | 0 | 0.333333 | 0 | 0 | 0.250131 | 0.133406 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.006623 | null | null | 0.011038 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2ecaa138fbb6183dea60f7f27e67ebaec10767b | 2,001 | py | Python | tests/shock_processing_test.py | DylanGuedes/py_shock | 1c1e03220ee13255b34ee2209c74c61158b7aa82 | [
"Apache-2.0"
] | null | null | null | tests/shock_processing_test.py | DylanGuedes/py_shock | 1c1e03220ee13255b34ee2209c74c61158b7aa82 | [
"Apache-2.0"
] | 1 | 2018-05-25T13:34:28.000Z | 2018-05-25T13:34:28.000Z | tests/shock_processing_test.py | DylanGuedes/py_shock | 1c1e03220ee13255b34ee2209c74c61158b7aa82 | [
"Apache-2.0"
] | null | null | null | import pytest
import findspark
findspark.init()
import pyspark
import pyspark.sql
from shock.core import Shock
from tests.helpers import TestHandler
from pyspark.sql.types import Row
@pytest.fixture
def sc():
return pyspark.SparkContext.getOrCreate()
@pytest.fixture
def shock():
return Shock(TestHandler)
... | 28.585714 | 85 | 0.618191 | 212 | 2,001 | 5.834906 | 0.292453 | 0.101859 | 0.145513 | 0.169766 | 0.297494 | 0.215036 | 0.14713 | 0.14713 | 0.100243 | 0.100243 | 0 | 0.020447 | 0.217891 | 2,001 | 69 | 86 | 29 | 0.769968 | 0 | 0 | 0.232143 | 0 | 0 | 0.158921 | 0 | 0 | 0 | 0 | 0 | 0.089286 | 1 | 0.107143 | false | 0 | 0.178571 | 0.053571 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2eccdaf190ddac7c616ad188332d1afa895cf5e | 4,346 | py | Python | tests/test_alogging.py | alikins/alogging | 8cae6febe6b2e4c66fc83c06af191548228266bc | [
"MIT"
] | null | null | null | tests/test_alogging.py | alikins/alogging | 8cae6febe6b2e4c66fc83c06af191548228266bc | [
"MIT"
] | null | null | null | tests/test_alogging.py | alikins/alogging | 8cae6febe6b2e4c66fc83c06af191548228266bc | [
"MIT"
] | null | null | null | import logging
# from akl import alogging
import alogging
from alogging import t
import helpers
# yup, using the module under test to setup logging for its own tests
log = alogging.get_logger()
alogging.app_setup('')
def a_callable(foo=None):
return b_callable(foo, ['bar'])
@alogging.t
def b_callable(foo=No... | 21.949495 | 117 | 0.625173 | 622 | 4,346 | 4.152733 | 0.199357 | 0.055749 | 0.034069 | 0.023229 | 0.230352 | 0.128533 | 0.095238 | 0.095238 | 0.095238 | 0.061169 | 0 | 0.008118 | 0.234699 | 4,346 | 197 | 118 | 22.060914 | 0.768491 | 0.16682 | 0 | 0.135135 | 0 | 0 | 0.118545 | 0 | 0 | 0 | 0 | 0.005076 | 0.072072 | 1 | 0.207207 | false | 0 | 0.063063 | 0.045045 | 0.378378 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2fdd94f8369defeade277963edf55b0833b779f | 3,708 | py | Python | provisioning_to_mxv.py | Connector73/migrate-user-script | 6c58c50146237d994968dd50ed13b18e207dbd53 | [
"MIT"
] | null | null | null | provisioning_to_mxv.py | Connector73/migrate-user-script | 6c58c50146237d994968dd50ed13b18e207dbd53 | [
"MIT"
] | null | null | null | provisioning_to_mxv.py | Connector73/migrate-user-script | 6c58c50146237d994968dd50ed13b18e207dbd53 | [
"MIT"
] | null | null | null | import json
import csv
import argparse
import http.client
import base64
fieldnames = ("TenantID","First Name","Last Name","Extension","Voice DID","Fax DID","Caller ID","ID for MS Exchange","Home Phone","Cell Phone","Fax Number",
"E-mail","Alternate E-mail","User Name","Password","PIN","Pseudonym","User... | 41.662921 | 168 | 0.593042 | 436 | 3,708 | 4.894495 | 0.344037 | 0.033739 | 0.031865 | 0.025305 | 0.174321 | 0.142455 | 0.091846 | 0.091846 | 0.054358 | 0.054358 | 0 | 0.00557 | 0.273732 | 3,708 | 88 | 169 | 42.136364 | 0.786855 | 0.004585 | 0 | 0.220588 | 0 | 0 | 0.252914 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0.117647 | 0.073529 | 0 | 0.132353 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0c019986630bf7f6622a8d9ae348d3c87bf89eb9 | 726 | py | Python | unpythonic/syntax/tests/test_simplelet.py | Technologicat/unpythonic | 7d99d50c5d1c3151fb822491167a7008024d97a5 | [
"BSD-2-Clause"
] | 55 | 2018-07-26T15:52:22.000Z | 2022-01-28T00:53:59.000Z | unpythonic/syntax/tests/test_simplelet.py | Technologicat/unpythonic | 7d99d50c5d1c3151fb822491167a7008024d97a5 | [
"BSD-2-Clause"
] | 85 | 2019-07-24T11:02:45.000Z | 2022-01-31T22:00:23.000Z | unpythonic/syntax/tests/test_simplelet.py | Technologicat/unpythonic | 7d99d50c5d1c3151fb822491167a7008024d97a5 | [
"BSD-2-Clause"
] | 2 | 2020-09-04T21:39:19.000Z | 2022-01-12T03:41:50.000Z | # -*- coding: utf-8 -*-
"""Simple let construct with real lexical variables, no assignment."""
from ...syntax import macros, test # noqa: F401
from ...test.fixtures import session, testset
from ...syntax.simplelet import macros, let, letseq # noqa: F401, F811
def runtests():
with testset("let"):
test[l... | 33 | 77 | 0.555096 | 100 | 726 | 3.91 | 0.43 | 0.102302 | 0.040921 | 0.051151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078067 | 0.258953 | 726 | 21 | 78 | 34.571429 | 0.648699 | 0.290634 | 0 | 0 | 0 | 0 | 0.033932 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | true | 0 | 0.214286 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c085b96c4044fc6445f47b81a0e144703e2e6fc | 1,890 | py | Python | samples/how-to/iam.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | null | null | null | samples/how-to/iam.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | 1 | 2021-10-13T03:46:58.000Z | 2021-10-13T03:46:58.000Z | samples/how-to/iam.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | null | null | null | # Prerequisites:
# 1. Initialize the SDK
# 2. Login as either a Client or a User
def example_create_user():
from accelbyte_py_sdk.api.iam import create_user
from accelbyte_py_sdk.api.iam.models import ModelUserCreateRequest
result, error = create_user(
body=ModelUserCreateRequest.create(
... | 22.235294 | 70 | 0.642328 | 234 | 1,890 | 4.918803 | 0.205128 | 0.101651 | 0.117289 | 0.140747 | 0.565595 | 0.536056 | 0.536056 | 0.498697 | 0.213727 | 0.101651 | 0 | 0.001431 | 0.260317 | 1,890 | 84 | 71 | 22.5 | 0.821888 | 0.039153 | 0 | 0.316667 | 0 | 0 | 0.075055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116667 | true | 0.033333 | 0.15 | 0 | 0.266667 | 0.116667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c09d5b6368e73a511290e45f0e0fcdf7eb1f005 | 495 | py | Python | 1550-three-consecutive-odds/1550-three-consecutive-odds.py | MayaScarlet/leetcode-python | 8ef0c5cadf2e975957085c0ef84a8c3d90a64b6a | [
"MIT"
] | null | null | null | 1550-three-consecutive-odds/1550-three-consecutive-odds.py | MayaScarlet/leetcode-python | 8ef0c5cadf2e975957085c0ef84a8c3d90a64b6a | [
"MIT"
] | null | null | null | 1550-three-consecutive-odds/1550-three-consecutive-odds.py | MayaScarlet/leetcode-python | 8ef0c5cadf2e975957085c0ef84a8c3d90a64b6a | [
"MIT"
] | null | null | null | class Solution:
def threeConsecutiveOdds(self, arr: List[int]) -> bool:
count = 0
nums = []
index = 0
if len(arr) < 3:
return False
while index < len(arr):
if len(nums) == 3:
break
if arr[... | 22.5 | 59 | 0.361616 | 46 | 495 | 3.891304 | 0.521739 | 0.100559 | 0.089385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035088 | 0.539394 | 495 | 22 | 60 | 22.5 | 0.75 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c0a725d5b052ca39a35ad1e46ce353cc8dbfe28 | 1,032 | py | Python | brawlbracket/routes/app_base.py | TheLastBanana/BrawlBracket | 1cad26b6499352b1b282388f4f76bfb4b2b6b4fe | [
"BSD-3-Clause"
] | null | null | null | brawlbracket/routes/app_base.py | TheLastBanana/BrawlBracket | 1cad26b6499352b1b282388f4f76bfb4b2b6b4fe | [
"BSD-3-Clause"
] | null | null | null | brawlbracket/routes/app_base.py | TheLastBanana/BrawlBracket | 1cad26b6499352b1b282388f4f76bfb4b2b6b4fe | [
"BSD-3-Clause"
] | null | null | null | from flask import session
from flask import redirect
from flask import url_for
from flask import render_template
from flask import abort
from flask import g
from brawlbracket.app import app
from brawlbracket import usermanager as um
from brawlbracket import tournamentmanager as tm
from brawlbracket import util
from b... | 34.4 | 79 | 0.687016 | 127 | 1,032 | 5.519685 | 0.370079 | 0.077033 | 0.128388 | 0.079886 | 0.154066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22093 | 1,032 | 30 | 80 | 34.4 | 0.871891 | 0.012597 | 0 | 0 | 0 | 0 | 0.118861 | 0.053045 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.5 | 0 | 0.625 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0c0b0052d44d2f897b482847c49a82d807b46eb4 | 3,281 | py | Python | ibllib/pipes/scan_fix_passive_files.py | int-brain-lab/ibllib | 93be6b98848758e05cdc9398caaf19e6a68f7386 | [
"MIT"
] | 38 | 2018-08-07T21:55:29.000Z | 2022-03-21T14:49:03.000Z | ibllib/pipes/scan_fix_passive_files.py | int-brain-lab/ibllib | 93be6b98848758e05cdc9398caaf19e6a68f7386 | [
"MIT"
] | 207 | 2018-07-25T15:10:48.000Z | 2022-03-08T13:23:08.000Z | ibllib/pipes/scan_fix_passive_files.py | int-brain-lab/ibllib | 93be6b98848758e05cdc9398caaf19e6a68f7386 | [
"MIT"
] | 35 | 2018-09-04T14:49:56.000Z | 2022-01-06T21:17:51.000Z | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Author: Niccolò Bonacchi
# @Date: Thursday, September 24th 2020, 2:10:29 pm
import json
import logging
import shutil
from pathlib import Path, PureWindowsPath
from one.alf.files import get_session_path
log = logging.getLogger("ibllib")
def load_settings_file(filepath,... | 35.27957 | 94 | 0.660774 | 469 | 3,281 | 4.413646 | 0.317697 | 0.034783 | 0.063768 | 0.027053 | 0.189855 | 0.105314 | 0.031884 | 0.031884 | 0 | 0 | 0 | 0.007212 | 0.239256 | 3,281 | 92 | 95 | 35.663043 | 0.822115 | 0.195672 | 0 | 0.076923 | 0 | 0.015385 | 0.155139 | 0.03974 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061538 | false | 0.061538 | 0.076923 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0c0ea520190408e09dd54be7a5dc3261206993a6 | 4,209 | py | Python | odmf/db/base.py | jlu-ilr-hydro/odmf | 4b52da282d6bdf7e571d9c8eb51ae2177c5136e6 | [
"MIT"
] | 3 | 2019-06-07T08:08:20.000Z | 2022-02-14T11:42:59.000Z | odmf/db/base.py | jlu-ilr-hydro/odmf | 4b52da282d6bdf7e571d9c8eb51ae2177c5136e6 | [
"MIT"
] | 91 | 2018-05-22T08:36:00.000Z | 2022-03-11T08:50:21.000Z | odmf/db/base.py | jlu-ilr-hydro/odmf | 4b52da282d6bdf7e571d9c8eb51ae2177c5136e6 | [
"MIT"
] | 4 | 2018-05-23T13:38:42.000Z | 2022-02-07T10:58:57.000Z | #!/usr/bin/env python
# -*- coding:utf-8 -*-
'''
Created on 13.02.2012
@author: philkraf
'''
import sqlalchemy as sql
import sqlalchemy.orm as orm
from sqlalchemy.ext.declarative import declarative_base
import os.path as op
from ..config import conf
from contextlib import contextmanager
from logging import info
fro... | 26.471698 | 117 | 0.628178 | 532 | 4,209 | 4.787594 | 0.360902 | 0.047114 | 0.018846 | 0.024735 | 0.015705 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004777 | 0.25398 | 4,209 | 158 | 118 | 26.639241 | 0.806369 | 0.153718 | 0 | 0.103093 | 0 | 0 | 0.107256 | 0.024376 | 0 | 0 | 0 | 0.006329 | 0 | 1 | 0.195876 | false | 0.010309 | 0.092784 | 0.103093 | 0.474227 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
0c143756c5fc748b160cc346ba71612e59d7b860 | 3,669 | py | Python | variance/models/permissions.py | ExpandingDev/Variance | 3afba3638ae0557673f171c571d4acc29ee363b4 | [
"Unlicense"
] | null | null | null | variance/models/permissions.py | ExpandingDev/Variance | 3afba3638ae0557673f171c571d4acc29ee363b4 | [
"Unlicense"
] | null | null | null | variance/models/permissions.py | ExpandingDev/Variance | 3afba3638ae0557673f171c571d4acc29ee363b4 | [
"Unlicense"
] | null | null | null | import logging
from variance.extensions import db
class PermissionModel(db.Model):
__tablename__ = "PermissionIndex"
id = db.Column(db.Integer, primary_key=True)
# Action that is permitted. (Ex: tracker.entry.new)
action = db.Column(db.String(100), nullable=False)
# Allow all users with this ro... | 46.443038 | 141 | 0.566639 | 491 | 3,669 | 4.169043 | 0.301426 | 0.035173 | 0.034196 | 0.021495 | 0.29702 | 0.276502 | 0.256961 | 0.236932 | 0.236932 | 0.236932 | 0 | 0.00391 | 0.372581 | 3,669 | 78 | 142 | 47.038462 | 0.885317 | 0.410466 | 0 | 0.153846 | 0 | 0.025641 | 0.03839 | 0 | 0 | 0 | 0 | 0.012821 | 0 | 1 | 0.051282 | false | 0 | 0.051282 | 0.025641 | 0.512821 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c1c1a0512f6945f1029b2981778502489357ab7 | 1,340 | py | Python | users/admin.py | LumiNation/network-services | e774d1fcb55c794864e623c20422bb9411d9c9c4 | [
"MIT"
] | 1 | 2018-04-01T18:25:42.000Z | 2018-04-01T18:25:42.000Z | users/admin.py | LumiNation/network-services | e774d1fcb55c794864e623c20422bb9411d9c9c4 | [
"MIT"
] | 4 | 2020-02-11T21:30:18.000Z | 2021-06-10T17:30:42.000Z | users/admin.py | LumiNation/network-services | e774d1fcb55c794864e623c20422bb9411d9c9c4 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.contrib.auth import get_user_model
from django.contrib.auth.admin import UserAdmin
from .forms import CustomUserCreationForm, CustomUserChangeForm
from .models import CustomUser
from donors.models import Donor
class DonorInline(admin.StackedInline):
model = Donor
c... | 35.263158 | 138 | 0.670149 | 139 | 1,340 | 6.28777 | 0.510791 | 0.034325 | 0.058352 | 0.048055 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192537 | 1,340 | 37 | 139 | 36.216216 | 0.807763 | 0.026119 | 0 | 0 | 0 | 0 | 0.207373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0.035714 | 0.25 | 0 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0c21fee0824a5f1e85b1b69ce57f419f27635ea9 | 2,480 | py | Python | mapping.py | tblainek/synecdoche | 4cbb5b9286ac0d3c33fa1280c730e89f163043a3 | [
"MIT"
] | null | null | null | mapping.py | tblainek/synecdoche | 4cbb5b9286ac0d3c33fa1280c730e89f163043a3 | [
"MIT"
] | null | null | null | mapping.py | tblainek/synecdoche | 4cbb5b9286ac0d3c33fa1280c730e89f163043a3 | [
"MIT"
] | null | null | null | """
Title: Feature Map, mapping.py
Purpose: Normalize column names from a data file granular to ZCTA.
"""
# map column names to variables
# begin column names for age groupings with 'pop_age_'
# begin column names for sex groupings with 'pop_sex_'
# begin column names for race groupings with 'pop_race_'
col_mapping = ... | 44.285714 | 281 | 0.650806 | 406 | 2,480 | 3.805419 | 0.384236 | 0.073786 | 0.121036 | 0.036893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099849 | 0.200403 | 2,480 | 55 | 282 | 45.090909 | 0.679274 | 0.135484 | 0 | 0 | 0 | 0.071429 | 0.762084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c2220e4f86f46d7d7a80661071e068783aa2a12 | 5,864 | py | Python | accounts/views.py | prateekmohanty63/microfinance | 39839c0d378be4ccc40a9dde5dc38a10773a38a1 | [
"MIT"
] | 1 | 2022-02-25T18:39:44.000Z | 2022-02-25T18:39:44.000Z | accounts/views.py | prateekmohanty63/microfinance | 39839c0d378be4ccc40a9dde5dc38a10773a38a1 | [
"MIT"
] | null | null | null | accounts/views.py | prateekmohanty63/microfinance | 39839c0d378be4ccc40a9dde5dc38a10773a38a1 | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect, get_object_or_404
from django.views import View
from .forms import *
from .models import *
from messaging.tasks import send_email
from .utils import create_link
from django.conf import settings
from django.contrib.auth import authenticate, login
class LoginView(View):
... | 35.97546 | 168 | 0.622954 | 696 | 5,864 | 5.028736 | 0.163793 | 0.028 | 0.065143 | 0.032 | 0.602571 | 0.526571 | 0.404571 | 0.348571 | 0.246286 | 0.246286 | 0 | 0.005667 | 0.277797 | 5,864 | 162 | 169 | 36.197531 | 0.820779 | 0.042633 | 0 | 0.418182 | 0 | 0 | 0.123796 | 0.034249 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081818 | false | 0.209091 | 0.072727 | 0 | 0.372727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0c254bec1ff0d00aff5445bed5b55b7e72940d7a | 3,678 | py | Python | ambari-server/src/main/resources/stacks/ADH/1.6/services/HIVE/package/scripts/service_check.py | Arenadata/ambari | 4628267441121779113d98936dcdf5d9be60553c | [
"Apache-2.0"
] | 5 | 2017-07-20T11:15:10.000Z | 2020-04-16T15:42:55.000Z | ambari-server/src/main/resources/stacks/ADH/1.6/services/HIVE/package/scripts/service_check.py | Arenadata/ambari | 4628267441121779113d98936dcdf5d9be60553c | [
"Apache-2.0"
] | 3 | 2017-08-04T14:02:17.000Z | 2018-06-06T14:47:25.000Z | ambari-server/src/main/resources/stacks/ADH/1.6/services/HIVE/package/scripts/service_check.py | Arenadata/ambari | 4628267441121779113d98936dcdf5d9be60553c | [
"Apache-2.0"
] | 12 | 2017-05-17T09:48:01.000Z | 2021-08-05T19:01:25.000Z | #!/usr/bin/env python
"""
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License");... | 34.373832 | 114 | 0.715606 | 483 | 3,678 | 5.242236 | 0.385093 | 0.043444 | 0.025276 | 0.012638 | 0.14297 | 0.127172 | 0.099526 | 0.099526 | 0.099526 | 0.099526 | 0 | 0.004137 | 0.211256 | 3,678 | 106 | 115 | 34.698113 | 0.868666 | 0.005438 | 0 | 0.181818 | 0 | 0 | 0.164189 | 0.007605 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.030303 | 0.151515 | null | null | 0.075758 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c26ce6c3b89bc9e490d4437e3a183704377e6cd | 4,191 | py | Python | pymorphy/django_utils.py | artemrizhov/pymorphy | 03085c7ffa5663841e568017b4de189f07dd6496 | [
"MIT"
] | 1 | 2017-08-27T19:14:27.000Z | 2017-08-27T19:14:27.000Z | pymorphy/django_utils.py | artemrizhov/pymorphy | 03085c7ffa5663841e568017b4de189f07dd6496 | [
"MIT"
] | null | null | null | pymorphy/django_utils.py | artemrizhov/pymorphy | 03085c7ffa5663841e568017b4de189f07dd6496 | [
"MIT"
] | null | null | null | #coding: utf-8
import re
from django import template
from django.utils.encoding import force_unicode
from pymorphy.django_conf import default_morph, MARKER_OPEN, MARKER_CLOSE
from pymorphy.contrib import tokenizers
register = template.Library()
markup_re = re.compile('(%s.+?%s)' % (MARKER_OPEN, MARKER_CLOSE), re.U)
... | 35.820513 | 81 | 0.666428 | 518 | 4,191 | 5.272201 | 0.42471 | 0.032223 | 0.032955 | 0.046137 | 0.205053 | 0.184548 | 0.184548 | 0.184548 | 0.140608 | 0.140608 | 0 | 0.005304 | 0.235266 | 4,191 | 116 | 82 | 36.12931 | 0.846802 | 0.397518 | 0 | 0.035714 | 0 | 0 | 0.005937 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.160714 | false | 0 | 0.089286 | 0.017857 | 0.535714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0c30a5578385328a0ac6cc83689a195bd8bf4554 | 1,969 | py | Python | alembic/versions/8382cebc727b_removed_unusued_news_flash_fields.py | AlonMaor14/anyway | e38f7bc6f1748a73640b3b8c762e2909745920a1 | [
"MIT"
] | 69 | 2015-03-30T17:09:46.000Z | 2021-08-15T16:45:47.000Z | alembic/versions/8382cebc727b_removed_unusued_news_flash_fields.py | AlonMaor14/anyway | e38f7bc6f1748a73640b3b8c762e2909745920a1 | [
"MIT"
] | 1,368 | 2015-01-12T16:33:52.000Z | 2022-03-31T21:10:18.000Z | alembic/versions/8382cebc727b_removed_unusued_news_flash_fields.py | AlonMaor14/anyway | e38f7bc6f1748a73640b3b8c762e2909745920a1 | [
"MIT"
] | 277 | 2015-02-16T17:52:06.000Z | 2022-02-16T18:06:44.000Z | """removed unusued news_flash fields
Revision ID: 8382cebc727b
Revises: 7f629b4c8891
Create Date: 2020-01-08 00:31:36.117465
"""
# revision identifiers, used by Alembic.
revision = '8382cebc727b'
down_revision = '7f629b4c8891'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
d... | 41.893617 | 98 | 0.718131 | 273 | 1,969 | 4.923077 | 0.21978 | 0.140625 | 0.223214 | 0.119048 | 0.714286 | 0.667411 | 0.642857 | 0.46131 | 0.394345 | 0.394345 | 0 | 0.031268 | 0.122905 | 1,969 | 46 | 99 | 42.804348 | 0.74696 | 0.15998 | 0 | 0 | 0 | 0 | 0.332715 | 0.111317 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c323fa858f7ee53c5bb1ecca2bf773a74554717 | 732 | py | Python | dht11.py | suulcoder/TemperatureInLaboratories | 365a2a691c3eb6b8cfefd4ef0042374fb733a881 | [
"MIT"
] | null | null | null | dht11.py | suulcoder/TemperatureInLaboratories | 365a2a691c3eb6b8cfefd4ef0042374fb733a881 | [
"MIT"
] | null | null | null | dht11.py | suulcoder/TemperatureInLaboratories | 365a2a691c3eb6b8cfefd4ef0042374fb733a881 | [
"MIT"
] | null | null | null | #------------------------------------------------------------------------------
import sys
import Adafruit_DHT
import csv
import random
import datetime
#------------------------------------------------------------------------------
with open('data.csv', mode='w') as data_file:
data_file = csv.writer(data_file, delimit... | 43.058824 | 101 | 0.565574 | 79 | 732 | 5.126582 | 0.481013 | 0.098765 | 0.079012 | 0.108642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0.090164 | 732 | 17 | 102 | 43.058824 | 0.594595 | 0.213115 | 0 | 0 | 0 | 0 | 0.085217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
0c3f94e141bc45c2d0600afdbf1f0e5698e741b9 | 4,850 | py | Python | hello.py | asuslaser/ibmhackcovid | 209ab7fb450343d3af628bad6c7305713d7fdf1c | [
"Apache-2.0"
] | null | null | null | hello.py | asuslaser/ibmhackcovid | 209ab7fb450343d3af628bad6c7305713d7fdf1c | [
"Apache-2.0"
] | null | null | null | hello.py | asuslaser/ibmhackcovid | 209ab7fb450343d3af628bad6c7305713d7fdf1c | [
"Apache-2.0"
] | null | null | null | from cloudant import Cloudant
from flask import Flask, render_template, request, jsonify
import atexit
import os
import json
import numpy as np
from flask import Flask, request, jsonify, render_template
import pickle
app = Flask(__name__, static_url_path='')
db_name = 'mydb'
client = None
db = None
... | 34.892086 | 236 | 0.649897 | 631 | 4,850 | 4.88748 | 0.293185 | 0.036316 | 0.038911 | 0.048638 | 0.342088 | 0.315824 | 0.295071 | 0.295071 | 0.295071 | 0.295071 | 0 | 0.01187 | 0.218351 | 4,850 | 138 | 237 | 35.144928 | 0.801635 | 0.126804 | 0 | 0.244444 | 0 | 0.055556 | 0.273715 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077778 | false | 0.055556 | 0.088889 | 0.022222 | 0.3 | 0.044444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0c42b9c477a278c87c579bece03316d8bab7f37e | 1,029 | py | Python | app/api/migrations/0001_initial.py | inferno2f/PhotoAlbum_DRF | 9e66c292a87e5928dff8b643865ff22e670503db | [
"MIT"
] | null | null | null | app/api/migrations/0001_initial.py | inferno2f/PhotoAlbum_DRF | 9e66c292a87e5928dff8b643865ff22e670503db | [
"MIT"
] | null | null | null | app/api/migrations/0001_initial.py | inferno2f/PhotoAlbum_DRF | 9e66c292a87e5928dff8b643865ff22e670503db | [
"MIT"
] | null | null | null | # Generated by Django 3.2.8 on 2021-10-28 07:14
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 35.482759 | 143 | 0.637512 | 113 | 1,029 | 5.663717 | 0.628319 | 0.0375 | 0.04375 | 0.06875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024142 | 0.23518 | 1,029 | 28 | 144 | 36.75 | 0.789072 | 0.043732 | 0 | 0 | 1 | 0 | 0.070265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c4708ce8f306b8382e9285d8128526abb93d2e5 | 890 | py | Python | src/core/pre/plots.py | stefantaubert/tacotron2 | 8475f014391c5066cfe0b92b6c74568639be5e79 | [
"BSD-3-Clause"
] | 3 | 2020-08-04T09:38:22.000Z | 2022-03-26T12:38:30.000Z | src/core/pre/plots.py | stefantaubert/tacotron2 | 8475f014391c5066cfe0b92b6c74568639be5e79 | [
"BSD-3-Clause"
] | null | null | null | src/core/pre/plots.py | stefantaubert/tacotron2 | 8475f014391c5066cfe0b92b6c74568639be5e79 | [
"BSD-3-Clause"
] | null | null | null | """
input: wav data
output: mel data
"""
from logging import getLogger
from typing import Any, Dict, List, Optional
from src.core.common.taco_stft import TacotronSTFT, TSTFTHParams
from src.core.common.train import overwrite_custom_hparams
from src.core.pre.ds import DsDataList
from src.core.pre.wav import WavDataList... | 35.6 | 117 | 0.779775 | 132 | 890 | 5.045455 | 0.386364 | 0.042042 | 0.066066 | 0.051051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121348 | 890 | 24 | 118 | 37.083333 | 0.851662 | 0.035955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
0c4727b1976c988b35933c797aa59e5c5d517909 | 867 | py | Python | sources/core/tests/test_calc.py | josethomazini/python-test-template | ea5d288bd528cc97fa431cffc38c5571f79fd523 | [
"MIT"
] | 1 | 2020-01-17T11:54:43.000Z | 2020-01-17T11:54:43.000Z | sources/core/tests/test_calc.py | josethomazini/python-test-template | ea5d288bd528cc97fa431cffc38c5571f79fd523 | [
"MIT"
] | null | null | null | sources/core/tests/test_calc.py | josethomazini/python-test-template | ea5d288bd528cc97fa431cffc38c5571f79fd523 | [
"MIT"
] | null | null | null | '''
Tests for the calc module.
'''
import pytest
from sources.core import calc
from sources.core.exceptions import DivByZeroException
# Turn off linter hint because of the fixture's sintaxe.
# pylint: disable=redefined-outer-name
@pytest.fixture
def eleven():
return 11
@pytest.mark.parametrize('n1, n2, res', [... | 18.847826 | 56 | 0.642445 | 131 | 867 | 4.183206 | 0.473282 | 0.076642 | 0.054745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065185 | 0.221453 | 867 | 45 | 57 | 19.266667 | 0.746667 | 0.137255 | 0 | 0 | 0 | 0 | 0.014885 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.233333 | false | 0 | 0.1 | 0.033333 | 0.366667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c4b12e6f8fb5c3702d44213d764a1015f00f0c1 | 456 | py | Python | common/sqlalchemy/keywords.py | hehanlin/jobbole | 46d5fa26cfa1ebd5c6c3621f615ffecbb4152fa9 | [
"BSD-3-Clause"
] | 2 | 2018-01-18T09:16:16.000Z | 2022-02-12T08:59:23.000Z | common/sqlalchemy/keywords.py | hehanlin/jobbole | 46d5fa26cfa1ebd5c6c3621f615ffecbb4152fa9 | [
"BSD-3-Clause"
] | null | null | null | common/sqlalchemy/keywords.py | hehanlin/jobbole | 46d5fa26cfa1ebd5c6c3621f615ffecbb4152fa9 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from common.sqlalchemy import BaseModel
from sqlalchemy import Column, INTEGER, VARCHAR
class Keywords(BaseModel):
__tablename__ = 'keywords'
id = Column(INTEGER, primary_key=True)
keyword = Column(VARCHAR)
@classmethod
def list(cls, keyword=None):
query = cls.se... | 24 | 71 | 0.642544 | 51 | 456 | 5.647059 | 0.607843 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002857 | 0.232456 | 456 | 18 | 72 | 25.333333 | 0.82 | 0.046053 | 0 | 0 | 0 | 0 | 0.023095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0c4e785503f0943a9b24750d195590b601f6500c | 370 | py | Python | example/trade/get_order.py | lionheart117/huobi_Python | a6ac90faa6e9f5c004a6239daea506c76db1339c | [
"Apache-2.0"
] | 2 | 2021-05-08T09:39:53.000Z | 2021-05-08T09:43:46.000Z | example/trade/get_order.py | lionheart117/hzone | a6ac90faa6e9f5c004a6239daea506c76db1339c | [
"Apache-2.0"
] | null | null | null | example/trade/get_order.py | lionheart117/hzone | a6ac90faa6e9f5c004a6239daea506c76db1339c | [
"Apache-2.0"
] | null | null | null | from huobi.client.trade import TradeClient
from huobi.constant import *
from huobi.utils import *
order_id = 273130955192309
trade_client = TradeClient(api_key=g_api_key, secret_key=g_secret_key)
orderObj = trade_client.get_order(order_id=order_id)
LogInfo.output("======= get order by order id : {order_id} =======".fo... | 33.636364 | 94 | 0.781081 | 56 | 370 | 4.875 | 0.410714 | 0.179487 | 0.131868 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044643 | 0.091892 | 370 | 10 | 95 | 37 | 0.767857 | 0 | 0 | 0 | 0 | 0 | 0.135501 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
0c50343c3ee739d403350f8685ebca8640b2558a | 4,146 | py | Python | tests/test_diff.py | butterl/pydriller | fdbe911d94dab3de52a36b0706ef6797656d4825 | [
"Apache-2.0"
] | null | null | null | tests/test_diff.py | butterl/pydriller | fdbe911d94dab3de52a36b0706ef6797656d4825 | [
"Apache-2.0"
] | null | null | null | tests/test_diff.py | butterl/pydriller | fdbe911d94dab3de52a36b0706ef6797656d4825 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Davide Spadini
#
# 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... | 43.642105 | 98 | 0.653401 | 460 | 4,146 | 5.845652 | 0.376087 | 0.09669 | 0.089253 | 0.049089 | 0.300483 | 0.300483 | 0.265526 | 0.164373 | 0.164373 | 0.164373 | 0 | 0.057802 | 0.236372 | 4,146 | 94 | 99 | 44.106383 | 0.791535 | 0.196816 | 0 | 0.262295 | 0 | 0 | 0.34883 | 0.144941 | 0 | 0 | 0 | 0 | 0.47541 | 1 | 0.081967 | false | 0 | 0.032787 | 0 | 0.114754 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c513706744eff62e4a39582f0b37d094cbcdb98 | 13,348 | py | Python | pysymoro/core/geometry.py | BKhomutenko/SYMORO_python | 09e58976648b9d150ba056046d772411db5a4b2d | [
"CNRI-Python"
] | 3 | 2015-01-05T22:09:06.000Z | 2020-12-11T17:07:23.000Z | pysymoro/core/geometry.py | BKhomutenko/SYMORO_python | 09e58976648b9d150ba056046d772411db5a4b2d | [
"CNRI-Python"
] | null | null | null | pysymoro/core/geometry.py | BKhomutenko/SYMORO_python | 09e58976648b9d150ba056046d772411db5a4b2d | [
"CNRI-Python"
] | null | null | null | """
This module of SYMORO package provides geometric models' computation.
The core symbolic library is sympy.
Needed modules: symoro.py
ECN - ARIA1 2013
"""
from sympy import Matrix, zeros, eye, sin, cos
from symoro import Symoro, Init, hat
Z_AXIS = Matrix([0, 0, 1])
class Transform():
@classmethod
def s... | 27.352459 | 75 | 0.554465 | 1,850 | 13,348 | 3.883784 | 0.148108 | 0.005846 | 0.012526 | 0.012526 | 0.559081 | 0.516075 | 0.487265 | 0.469729 | 0.425887 | 0.420042 | 0 | 0.021494 | 0.316826 | 13,348 | 487 | 76 | 27.408624 | 0.766422 | 0.033263 | 0 | 0.419913 | 0 | 0 | 0.015978 | 0 | 0 | 0 | 0 | 0.00616 | 0 | 0 | null | null | 0 | 0.008658 | null | null | 0.004329 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c528998ab539ffa39aa2861c55dc884ebcfe3e5 | 18,548 | py | Python | Bridge.py | MSube/Bridge | 67c8c5e6628a89332f596d27ff1047662f4bce13 | [
"MIT"
] | null | null | null | Bridge.py | MSube/Bridge | 67c8c5e6628a89332f596d27ff1047662f4bce13 | [
"MIT"
] | null | null | null | Bridge.py | MSube/Bridge | 67c8c5e6628a89332f596d27ff1047662f4bce13 | [
"MIT"
] | null | null | null | """
Bridge module
Michael Sube (@msube) 2018
"""
__version__ = '0.5'
__author__ = "Michael Sube"
import logging
import re
import SquashedOrder
# ---------------------------------------------------------------------------------------
"""Constants
"""
CARDS = range(52) # 0..51, Pik Ass = 51, Treff 2 = 0
RA... | 33.29982 | 113 | 0.544857 | 2,350 | 18,548 | 4.145957 | 0.125532 | 0.028739 | 0.017448 | 0.026173 | 0.317869 | 0.280612 | 0.224264 | 0.213179 | 0.173663 | 0.156831 | 0 | 0.024466 | 0.303645 | 18,548 | 556 | 114 | 33.359712 | 0.72956 | 0.099687 | 0 | 0.328639 | 0 | 0.014085 | 0.094451 | 0.023281 | 0 | 0 | 0 | 0 | 0.014085 | 1 | 0.169014 | false | 0.011737 | 0.00939 | 0.105634 | 0.35446 | 0.042254 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
0c52fbdae9082ec4275f978a16354d7815dc38bd | 5,306 | py | Python | experiments/stability-study/make-contour-plots.py | cmikida2/leap | 94f07be2350a035faccd038010a332700c6e590a | [
"MIT"
] | 1 | 2018-07-03T02:37:34.000Z | 2018-07-03T02:37:34.000Z | experiments/stability-study/make-contour-plots.py | cmikida2/leap | 94f07be2350a035faccd038010a332700c6e590a | [
"MIT"
] | 8 | 2019-11-27T03:22:02.000Z | 2021-08-31T22:08:36.000Z | experiments/stability-study/make-contour-plots.py | cmikida2/leap | 94f07be2350a035faccd038010a332700c6e590a | [
"MIT"
] | 4 | 2019-11-26T18:25:04.000Z | 2020-11-03T00:58:31.000Z | import sqlite3 as sqlite
import numpy
from plot_tools import auto_xy_reshape, unwrap_list
from matplotlib.pyplot import (contour, clabel, show, plot, subplot,
text, rc, pcolormesh, colorbar, gray, title, gcf,
savefig, clf)
#from frame import FrameAxes
# -------------------------------------------------... | 33.796178 | 85 | 0.585564 | 718 | 5,306 | 4.167131 | 0.272981 | 0.032754 | 0.021725 | 0.031751 | 0.277072 | 0.215241 | 0.186163 | 0.095254 | 0.069519 | 0.028743 | 0 | 0.027969 | 0.231813 | 5,306 | 156 | 86 | 34.012821 | 0.706084 | 0.113456 | 0 | 0.053571 | 0 | 0.008929 | 0.161442 | 0.033909 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008929 | 0.0625 | null | null | 0.017857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c576a99f35a0aa50301e6e0ec3146a50ce97453 | 6,487 | py | Python | django/db/backends/sqlite3/creation.py | kantai/passe-framework-prototype | 51a441b689c54cfd57748129f77fde3c7a08e5c3 | [
"BSD-3-Clause"
] | 3 | 2016-07-06T16:34:38.000Z | 2021-02-10T08:06:23.000Z | django/db/backends/sqlite3/creation.py | kantai/passe-framework-prototype | 51a441b689c54cfd57748129f77fde3c7a08e5c3 | [
"BSD-3-Clause"
] | null | null | null | django/db/backends/sqlite3/creation.py | kantai/passe-framework-prototype | 51a441b689c54cfd57748129f77fde3c7a08e5c3 | [
"BSD-3-Clause"
] | 2 | 2020-06-22T20:55:48.000Z | 2021-01-15T18:01:04.000Z | import os
import sys
from django.db.backends.creation import BaseDatabaseCreation
class DatabaseCreation(BaseDatabaseCreation):
# SQLite doesn't actually support most of these types, but it "does the right
# thing" given more verbose field definitions, so leave them as is so that
# schema inspection is mor... | 48.051852 | 152 | 0.571142 | 704 | 6,487 | 5.059659 | 0.325284 | 0.06064 | 0.062886 | 0.023863 | 0.171252 | 0.140651 | 0.073554 | 0.051095 | 0.051095 | 0.026951 | 0 | 0.002304 | 0.33097 | 6,487 | 134 | 153 | 48.410448 | 0.818433 | 0.092801 | 0 | 0.110092 | 0 | 0.009174 | 0.157362 | 0.02896 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027523 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c5a67d487c920c18a4d3aae803362facabd21b0 | 396 | py | Python | src/app/features/steps/account_remove.py | schwetzen/liblr | 408235a4f539a05f54f0376dbf9dbcd83957db03 | [
"Apache-2.0"
] | null | null | null | src/app/features/steps/account_remove.py | schwetzen/liblr | 408235a4f539a05f54f0376dbf9dbcd83957db03 | [
"Apache-2.0"
] | 1 | 2018-12-07T22:15:28.000Z | 2018-12-07T22:15:28.000Z | src/app/features/steps/account_remove.py | schwetzen/liblr | 408235a4f539a05f54f0376dbf9dbcd83957db03 | [
"Apache-2.0"
] | 2 | 2018-12-07T20:59:53.000Z | 2018-12-17T21:02:21.000Z | from app.features.steps.common_steps import *
@when('the user confirms this decision')
def step_impl(ctx):
ctx.browser.find_by_text("Delete").first.click()
@when('the user presses the button to delete the account')
def step_impl(ctx):
ctx.browser.visit(rel_url(ctx, "/settings/delete/"))
@when('the url is "/l... | 28.285714 | 58 | 0.714646 | 63 | 396 | 4.365079 | 0.52381 | 0.076364 | 0.12 | 0.152727 | 0.363636 | 0.363636 | 0.276364 | 0.276364 | 0.276364 | 0.276364 | 0 | 0 | 0.121212 | 396 | 13 | 59 | 30.461538 | 0.79023 | 0 | 0 | 0.3 | 0 | 0 | 0.328283 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c5d85d5b663e1c2503b785a18482d0d45dc8e9a | 6,132 | py | Python | vision/framework/sift.py | cuauv/software | 5ad4d52d603f81a7f254f365d9b0fe636d03a260 | [
"BSD-3-Clause"
] | 70 | 2015-11-16T18:04:01.000Z | 2022-03-05T09:04:02.000Z | vision/framework/sift.py | cuauv/software | 5ad4d52d603f81a7f254f365d9b0fe636d03a260 | [
"BSD-3-Clause"
] | 1 | 2016-08-03T05:13:19.000Z | 2016-08-03T06:19:39.000Z | vision/framework/sift.py | cuauv/software | 5ad4d52d603f81a7f254f365d9b0fe636d03a260 | [
"BSD-3-Clause"
] | 34 | 2015-12-15T17:29:23.000Z | 2021-11-18T14:15:12.000Z | import cv2
import numpy as np
from vision.framework.transform import resize
class SIFT:
"""
A wrapper for using SIFT in OpenCV
SIFT is an algorithm used for feature detection and matching.
Images are compared to multiple source images, and all matches of the source images are found.
"""
# TODO... | 36.939759 | 102 | 0.590998 | 813 | 6,132 | 4.414514 | 0.317343 | 0.016718 | 0.01839 | 0.012538 | 0.09139 | 0.07523 | 0.07523 | 0.063527 | 0.063527 | 0.051268 | 0 | 0.01838 | 0.325669 | 6,132 | 165 | 103 | 37.163636 | 0.849577 | 0.448793 | 0 | 0.064516 | 0 | 0 | 0.023201 | 0 | 0 | 0 | 0 | 0.012121 | 0 | 1 | 0.112903 | false | 0 | 0.048387 | 0 | 0.258065 | 0.016129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c5ec09c39bb114d6dc5100097d303a82d57e6fe | 1,381 | py | Python | gem/celery.py | praekelt/molo-gem | ab4f9a16719f6cfc1981ef448f1d42c457e1dad7 | [
"BSD-2-Clause"
] | 3 | 2017-08-03T22:37:13.000Z | 2018-06-14T15:36:01.000Z | gem/celery.py | praekelt/molo-gem | ab4f9a16719f6cfc1981ef448f1d42c457e1dad7 | [
"BSD-2-Clause"
] | 635 | 2016-01-12T07:23:46.000Z | 2018-11-16T07:43:13.000Z | gem/celery.py | praekelt/molo-gem | ab4f9a16719f6cfc1981ef448f1d42c457e1dad7 | [
"BSD-2-Clause"
] | 6 | 2017-05-11T09:50:34.000Z | 2018-11-16T10:42:56.000Z | from __future__ import absolute_import
import os
from celery import Celery
from celery.signals import celeryd_init
from django.conf import settings
from django.core.management import call_command
from raven import Client
from raven.contrib.celery import register_signal, register_logger_signal
# set the default Dja... | 28.770833 | 72 | 0.762491 | 175 | 1,381 | 5.817143 | 0.462857 | 0.032417 | 0.050098 | 0.073674 | 0.064833 | 0.064833 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16727 | 1,381 | 47 | 73 | 29.382979 | 0.885217 | 0.139754 | 0 | 0 | 0 | 0 | 0.082051 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.428571 | 0 | 0.464286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0c61db911f899c90313c6c627cc65ebf45caa8a3 | 3,615 | py | Python | game/test_suite/tests/controllers/teleporter_controller_test.py | HagenSR/byte_le_royale_2022 | d501bf2418337d543dac982112ea924d37164205 | [
"MIT"
] | 1 | 2022-03-10T01:38:12.000Z | 2022-03-10T01:38:12.000Z | game/test_suite/tests/controllers/teleporter_controller_test.py | HagenSR/byte_le_royale_2022 | d501bf2418337d543dac982112ea924d37164205 | [
"MIT"
] | 2 | 2022-01-31T18:28:14.000Z | 2022-01-31T18:28:24.000Z | game/test_suite/tests/controllers/teleporter_controller_test.py | HagenSR/byte_le_royale_2022 | d501bf2418337d543dac982112ea924d37164205 | [
"MIT"
] | null | null | null | import time
import unittest
from game.controllers.teleporter_controller import TeleporterController
from game.utils.generate_game import *
from game.common.stats import GameStats
from game.common.moving.shooter import Shooter
from game.common.player import Player
from game.common.action import Action
class TestTelepo... | 46.346154 | 107 | 0.669433 | 419 | 3,615 | 5.529833 | 0.231504 | 0.067328 | 0.038843 | 0.056107 | 0.511869 | 0.459215 | 0.459215 | 0.459215 | 0.383254 | 0.383254 | 0 | 0.008118 | 0.250346 | 3,615 | 77 | 108 | 46.948052 | 0.846863 | 0.035408 | 0 | 0.292308 | 1 | 0 | 0.010336 | 0 | 0 | 0 | 0 | 0 | 0.061538 | 1 | 0.076923 | false | 0 | 0.123077 | 0 | 0.215385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a73caf6372469291fc4b32720ba0f0c0f8de429e | 281 | py | Python | myapp/migrations/0004_delete_person.py | heet9201/healing-hands | 8473ccfce4f08b2327bccc19702938802609a27a | [
"MIT"
] | null | null | null | myapp/migrations/0004_delete_person.py | heet9201/healing-hands | 8473ccfce4f08b2327bccc19702938802609a27a | [
"MIT"
] | null | null | null | myapp/migrations/0004_delete_person.py | heet9201/healing-hands | 8473ccfce4f08b2327bccc19702938802609a27a | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-07-12 18:09
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('myapp', '0003_person'),
]
operations = [
migrations.DeleteModel(
name='Person',
),
]
| 16.529412 | 47 | 0.58363 | 30 | 281 | 5.433333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096447 | 0.298932 | 281 | 16 | 48 | 17.5625 | 0.730964 | 0.160142 | 0 | 0 | 1 | 0 | 0.094017 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a74028150e50538540746b5979953bc9df3459cd | 680 | py | Python | python6.py | audstanley/nodePythonProcessWatcher | cf3b707af81c837b99c5b2d955cf0d718e286e81 | [
"MIT"
] | null | null | null | python6.py | audstanley/nodePythonProcessWatcher | cf3b707af81c837b99c5b2d955cf0d718e286e81 | [
"MIT"
] | null | null | null | python6.py | audstanley/nodePythonProcessWatcher | cf3b707af81c837b99c5b2d955cf0d718e286e81 | [
"MIT"
] | null | null | null | import sys
from python6_unixSocket import interComs
myInterComs = interComs()
myInterComs.run()
from time import sleep
for i in range(10):
sleep(0.2)
print(i, 'Message from python6.py')
sys.stdout.flush()
while True:
sleep(10)
#raise Exception('SOME PROBLEM')
print("$I want this message... | 23.448276 | 74 | 0.655882 | 90 | 680 | 4.944444 | 0.633333 | 0.060674 | 0.094382 | 0.11236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019531 | 0.247059 | 680 | 29 | 75 | 23.448276 | 0.849609 | 0.307353 | 0 | 0.157895 | 0 | 0 | 0.156317 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.157895 | 0 | 0.157895 | 0.157895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a742e11619add12f8a95bfed108c284e492c7455 | 1,558 | py | Python | ticketr/migrations/0004_auto_20170218_1805.py | mark-barrett/Ticketr | 07106db61a7a2a222bf2fdcbdb3718eff577bfc0 | [
"MIT"
] | 2 | 2017-09-27T08:56:34.000Z | 2019-12-02T01:10:00.000Z | ticketr/migrations/0004_auto_20170218_1805.py | mark-barrett/Ticketr | 07106db61a7a2a222bf2fdcbdb3718eff577bfc0 | [
"MIT"
] | null | null | null | ticketr/migrations/0004_auto_20170218_1805.py | mark-barrett/Ticketr | 07106db61a7a2a222bf2fdcbdb3718eff577bfc0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-18 18:05
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ticketr', '0003_auto_20170218_1757'),
]
operations = [
migr... | 31.795918 | 114 | 0.567394 | 164 | 1,558 | 5.25 | 0.439024 | 0.023229 | 0.081301 | 0.10453 | 0.464576 | 0.464576 | 0.464576 | 0.269454 | 0.269454 | 0.269454 | 0 | 0.097516 | 0.302311 | 1,558 | 48 | 115 | 32.458333 | 0.694572 | 0.043646 | 0 | 0.365854 | 1 | 0 | 0.081372 | 0.015467 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.073171 | 0 | 0.146341 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a74550da4da4cf2f0b523240be3fd8e418f20066 | 509 | py | Python | src/shortener/utils.py | imtiaz-rahi/django-short-url | 9fc3dc873d3307eb20bdc77a91037f269f8e8a00 | [
"MIT"
] | null | null | null | src/shortener/utils.py | imtiaz-rahi/django-short-url | 9fc3dc873d3307eb20bdc77a91037f269f8e8a00 | [
"MIT"
] | null | null | null | src/shortener/utils.py | imtiaz-rahi/django-short-url | 9fc3dc873d3307eb20bdc77a91037f269f8e8a00 | [
"MIT"
] | null | null | null | import random
import string
from django.conf import settings
SHORTCODE_MIN = getattr(settings, "SHORTCODE_MIN", 8)
def code_generator(size=SHORTCODE_MIN, chars=string.ascii_letters + string.digits):
return ''.join(random.choice(chars) for _ in range(size))
def create_shortcode(instance, csize=SHORTCODE_MIN):
... | 29.941176 | 83 | 0.78389 | 71 | 509 | 5.352113 | 0.507042 | 0.126316 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002232 | 0.119843 | 509 | 16 | 84 | 31.8125 | 0.845982 | 0 | 0 | 0 | 0 | 0 | 0.02554 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0.1 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a749cbbbc05895b33f21522bcd4cb2692633f51c | 344 | py | Python | res/utils.py | dreammis/wechat_dinner | 049a24ec3e6cc8c69b4f89540984c32d79823f75 | [
"MIT"
] | null | null | null | res/utils.py | dreammis/wechat_dinner | 049a24ec3e6cc8c69b4f89540984c32d79823f75 | [
"MIT"
] | null | null | null | res/utils.py | dreammis/wechat_dinner | 049a24ec3e6cc8c69b4f89540984c32d79823f75 | [
"MIT"
] | null | null | null | # coding=utf-8
from django.http import HttpResponse
import json
class JsonUtil(object):
@staticmethod
def obj2json(obj):
result = None
try:
result = json.dumps(obj.__dict__, encoding='UTF-8', ensure_ascii=False)
except Exception as e:
print e
finally:
... | 21.5 | 83 | 0.604651 | 40 | 344 | 5.075 | 0.8 | 0.039409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012766 | 0.31686 | 344 | 16 | 84 | 21.5 | 0.851064 | 0.034884 | 0 | 0 | 0 | 0 | 0.015106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a74e28264f005081b435dda07678e3987800a0d8 | 5,076 | py | Python | eoxserver/services/ows/wcs/v11/getcoverage.py | constantinius/eoxserver_combined | 68f261133fed65a4e8a6ddba82b0d2845171e4bf | [
"OML"
] | null | null | null | eoxserver/services/ows/wcs/v11/getcoverage.py | constantinius/eoxserver_combined | 68f261133fed65a4e8a6ddba82b0d2845171e4bf | [
"OML"
] | null | null | null | eoxserver/services/ows/wcs/v11/getcoverage.py | constantinius/eoxserver_combined | 68f261133fed65a4e8a6ddba82b0d2845171e4bf | [
"OML"
] | null | null | null | #-------------------------------------------------------------------------------
#
# Project: EOxServer <http://eoxserver.org>
# Authors: Fabian Schindler <fabian.schindler@eox.at>
#
#-------------------------------------------------------------------------------
# Copyright (C) 2013 EOX IT Services GmbH
#
# Permission... | 40.285714 | 113 | 0.681442 | 616 | 5,076 | 5.563312 | 0.327922 | 0.035016 | 0.039393 | 0.036767 | 0.141523 | 0.122556 | 0.105048 | 0.055442 | 0.055442 | 0.055442 | 0 | 0.010047 | 0.156816 | 5,076 | 125 | 114 | 40.608 | 0.790654 | 0.308905 | 0 | 0.114286 | 0 | 0 | 0.116125 | 0.089968 | 0 | 0 | 0 | 0.008 | 0 | 1 | 0.114286 | false | 0 | 0.085714 | 0.014286 | 0.628571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a74ed10f8642195e7320ce00faffe0fc7293cc2c | 2,146 | py | Python | llvm-7.0.0.src/utils/llvm-gisel-cov.py | sillywalk/grazz | a0adb1a90d41ff9006d8c1476546263f728b3c83 | [
"Apache-2.0"
] | 171 | 2018-09-17T13:15:12.000Z | 2022-03-18T03:47:04.000Z | llvm-7.0.0.src/utils/llvm-gisel-cov.py | sillywalk/grazz | a0adb1a90d41ff9006d8c1476546263f728b3c83 | [
"Apache-2.0"
] | 51 | 2019-10-23T11:55:08.000Z | 2021-12-21T06:32:11.000Z | llvm-7.0.0.src/utils/llvm-gisel-cov.py | sillywalk/grazz | a0adb1a90d41ff9006d8c1476546263f728b3c83 | [
"Apache-2.0"
] | 55 | 2018-02-01T07:11:49.000Z | 2022-03-04T01:20:23.000Z | #!/usr/bin/env python
"""
Summarize the information in the given coverage files.
Emits the number of rules covered or the percentage of rules covered depending
on whether --num-rules has been used to specify the total number of rules.
"""
import argparse
import struct
class FileFormatError(Exception):
pass
def ba... | 31.558824 | 121 | 0.636999 | 277 | 2,146 | 4.776173 | 0.375451 | 0.036281 | 0.045351 | 0.024187 | 0.124717 | 0.071051 | 0 | 0 | 0 | 0 | 0 | 0.0116 | 0.236719 | 2,146 | 67 | 122 | 32.029851 | 0.796093 | 0.00932 | 0 | 0.12 | 0 | 0 | 0.110063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.02 | 0.04 | null | null | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a7504586f893786424f4a053cd11aa7031c2b0a8 | 465 | py | Python | setup.py | SmokingTheGoaT/authenticating.com-python | 822320923c5c6e5ba1f24de9b9dc1ba3544d290a | [
"MIT"
] | null | null | null | setup.py | SmokingTheGoaT/authenticating.com-python | 822320923c5c6e5ba1f24de9b9dc1ba3544d290a | [
"MIT"
] | null | null | null | setup.py | SmokingTheGoaT/authenticating.com-python | 822320923c5c6e5ba1f24de9b9dc1ba3544d290a | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(
name = 'authenticating-python',
packages = ['authenticating', 'authenticating.utils'],
version = '0.1.3',
description = 'authenticating.com-python',
author = 'SmokingGoaT',
license = 'MIT',
url = 'https://github.com/SmokingTheGoaT/authenti... | 25.833333 | 72 | 0.63871 | 43 | 465 | 6.813953 | 0.744186 | 0.116041 | 0.156997 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00831 | 0.223656 | 465 | 18 | 73 | 25.833333 | 0.803324 | 0 | 0 | 0 | 0 | 0 | 0.414163 | 0.098712 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a750a9c88c5c2cc0c8dca344d7514365a77092b6 | 1,073 | py | Python | linear_regression.py | son-vyas/Machine-learning | c388d3a7d48d82554d54895a69590f7be1224cc0 | [
"MIT"
] | null | null | null | linear_regression.py | son-vyas/Machine-learning | c388d3a7d48d82554d54895a69590f7be1224cc0 | [
"MIT"
] | null | null | null | linear_regression.py | son-vyas/Machine-learning | c388d3a7d48d82554d54895a69590f7be1224cc0 | [
"MIT"
] | null | null | null |
import numpy as np
import pandas as pd
# import model
from sklearn.linear_model import LinearRegression
from sklearn.cross_validation import train_test_split
# import module to calculate model perfomance metrics
from sklearn import metrics
data_path = "data/Advertising.csv" # or load the dataset directly from the li... | 27.512821 | 79 | 0.775396 | 174 | 1,073 | 4.632184 | 0.505747 | 0.040943 | 0.034739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002176 | 0.143523 | 1,073 | 38 | 80 | 28.236842 | 0.874864 | 0.447344 | 0 | 0 | 0 | 0 | 0.062284 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
a7521893167aa9beb1c2234775b58078965deb97 | 44,579 | py | Python | ICERM_workshop/binaryBHexp.py | basuparth/ICERM_Workshop | ebabce680fc87e90ff1de30246dcda9beb384bb4 | [
"MIT"
] | 8 | 2020-11-14T03:13:41.000Z | 2021-11-01T07:31:30.000Z | binaryBHexp.py | vijayvarma392/ICERM_workshop | a861facd5737f35fb336bf88ab87b0cc72b6ce46 | [
"MIT"
] | null | null | null | binaryBHexp.py | vijayvarma392/ICERM_workshop | a861facd5737f35fb336bf88ab87b0cc72b6ce46 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
__doc__ = """binaryBHexp
========
The binary Black Hole explorer.
Generates visualizations of a precessing binary black hole merger and the
final remnant black hole.
Example usage:
./binaryBHexp --q 2 --chiA 0.2 0.7 -0.1 --chiB 0.2 0.6 0.1
By clicking and dragging on the movie as it plays, you... | 37.273411 | 80 | 0.607349 | 6,276 | 44,579 | 4.104525 | 0.152167 | 0.010326 | 0.009317 | 0.009589 | 0.300272 | 0.215567 | 0.162461 | 0.14507 | 0.127213 | 0.118284 | 0 | 0.025512 | 0.252608 | 44,579 | 1,195 | 81 | 37.304603 | 0.747644 | 0.154445 | 0 | 0.131288 | 1 | 0.001227 | 0.149222 | 0.006039 | 0 | 0 | 0 | 0.000837 | 0 | 1 | 0.030675 | false | 0.001227 | 0.033129 | 0.001227 | 0.088344 | 0.004908 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a75ccec03f69b8feb704dd582684bcf2909adee2 | 1,688 | py | Python | tests/tests_manifests/test_component_manifest.py | rishabh6788/opensearch-build | f03a5848397a2758ea29a4edc0bb6b221c0fc2e3 | [
"Apache-2.0"
] | null | null | null | tests/tests_manifests/test_component_manifest.py | rishabh6788/opensearch-build | f03a5848397a2758ea29a4edc0bb6b221c0fc2e3 | [
"Apache-2.0"
] | null | null | null | tests/tests_manifests/test_component_manifest.py | rishabh6788/opensearch-build | f03a5848397a2758ea29a4edc0bb6b221c0fc2e3 | [
"Apache-2.0"
] | null | null | null | # SPDX-License-Identifier: Apache-2.0
#
# The OpenSearch Contributors require contributions made to
# this file be licensed under the Apache-2.0 license or a
# compatible open source license.
import unittest
from typing import Any
from manifests.component_manifest import Component, ComponentManifest, Components
cla... | 39.255814 | 128 | 0.684242 | 168 | 1,688 | 6.839286 | 0.410714 | 0.091384 | 0.125326 | 0.151436 | 0.231506 | 0.231506 | 0.231506 | 0.231506 | 0.187119 | 0 | 0 | 0.008035 | 0.188981 | 1,688 | 42 | 129 | 40.190476 | 0.831264 | 0.107227 | 0 | 0.071429 | 0 | 0 | 0.157229 | 0.095936 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.071429 | false | 0.071429 | 0.107143 | 0.035714 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a763f69103bfdb323d0efcef79cb65509c67a810 | 481 | py | Python | LA_app/LA_project/projects/migrations/0003_project_featured_img.py | laxminarayanRaval/DjangoPractixe | 4ac22cdb732fd2443197f4f71662b74c35ae73ff | [
"CC0-1.0"
] | null | null | null | LA_app/LA_project/projects/migrations/0003_project_featured_img.py | laxminarayanRaval/DjangoPractixe | 4ac22cdb732fd2443197f4f71662b74c35ae73ff | [
"CC0-1.0"
] | null | null | null | LA_app/LA_project/projects/migrations/0003_project_featured_img.py | laxminarayanRaval/DjangoPractixe | 4ac22cdb732fd2443197f4f71662b74c35ae73ff | [
"CC0-1.0"
] | null | null | null | # Generated by Django 4.0.3 on 2022-03-16 13:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('projects', '0002_tag_project_vote_ratio_project_vote_total_review_and_more'),
]
operations = [
migrations.AddField(
model_name='... | 25.315789 | 100 | 0.64657 | 57 | 481 | 5.22807 | 0.789474 | 0.073826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051771 | 0.237006 | 481 | 18 | 101 | 26.722222 | 0.760218 | 0.093555 | 0 | 0 | 1 | 0 | 0.239631 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a76f1aa7382e6070e9e8bb8adfd531670f1c4b90 | 8,079 | py | Python | api/gen/test_platform/multibot/follower_transitions_pb2.py | khromiumos/chromiumos-chromite | a42a85481cdd9d635dc40a04585e427f89f3bb3f | [
"BSD-3-Clause"
] | null | null | null | api/gen/test_platform/multibot/follower_transitions_pb2.py | khromiumos/chromiumos-chromite | a42a85481cdd9d635dc40a04585e427f89f3bb3f | [
"BSD-3-Clause"
] | 2 | 2021-03-26T00:29:32.000Z | 2021-04-30T21:29:33.000Z | api/gen/test_platform/multibot/follower_transitions_pb2.py | khromiumos/chromiumos-chromite | a42a85481cdd9d635dc40a04585e427f89f3bb3f | [
"BSD-3-Clause"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: test_platform/multibot/follower_transitions.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.... | 39.409756 | 854 | 0.787597 | 933 | 8,079 | 6.45552 | 0.203644 | 0.049809 | 0.066412 | 0.039847 | 0.536444 | 0.466047 | 0.385522 | 0.352316 | 0.339698 | 0.287564 | 0 | 0.029745 | 0.105335 | 8,079 | 204 | 855 | 39.602941 | 0.803542 | 0.053596 | 0 | 0.559322 | 1 | 0.00565 | 0.244567 | 0.199005 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033898 | 0 | 0.033898 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a770f8293a80c0a04cb68f0e2715c3794aa9fdfc | 1,088 | py | Python | onetimepad.py | Adarsh-sophos/Cipher-Techniques | ad861b102855b989a760df7731c54912d0860c26 | [
"MIT"
] | 1 | 2019-10-18T08:28:25.000Z | 2019-10-18T08:28:25.000Z | onetimepad.py | Adarsh-sophos/Cipher-Techniques | ad861b102855b989a760df7731c54912d0860c26 | [
"MIT"
] | null | null | null | onetimepad.py | Adarsh-sophos/Cipher-Techniques | ad861b102855b989a760df7731c54912d0860c26 | [
"MIT"
] | null | null | null | import random
def encrypt(plain_text, key):
plain_text = plain_text.upper()
cipher_text = ""
for i in range(len(plain_text)):
if(plain_text[i] == ' '):
cipher_text += ' '
else:
cipher_text += chr(((ord(plain_text[i])-65) + (ord(key[i]) - 65)) % 26 + 65)
... | 23.148936 | 88 | 0.564338 | 143 | 1,088 | 4.13986 | 0.27972 | 0.219595 | 0.050676 | 0.054054 | 0.060811 | 0.060811 | 0 | 0 | 0 | 0 | 0 | 0.021197 | 0.262868 | 1,088 | 47 | 89 | 23.148936 | 0.716958 | 0 | 0 | 0.0625 | 0 | 0 | 0.118457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.03125 | 0 | 0.15625 | 0.25 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a77833a2b4e16d42a1ded78d759c1fcdfaa69d67 | 600 | py | Python | ayen/urls.py | thomas545/Ayen | 335c37db62ef8f5d20ca08298c48a81627147b4a | [
"MIT"
] | null | null | null | ayen/urls.py | thomas545/Ayen | 335c37db62ef8f5d20ca08298c48a81627147b4a | [
"MIT"
] | null | null | null | ayen/urls.py | thomas545/Ayen | 335c37db62ef8f5d20ca08298c48a81627147b4a | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
from core import routers
from task1.urls import router as task1_router
from task2.urls import router as task2_router
router = routers.DefaultRouter()
router.extend(task1_r... | 26.086957 | 76 | 0.758333 | 82 | 600 | 5.463415 | 0.304878 | 0.089286 | 0.100446 | 0.080357 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015238 | 0.125 | 600 | 23 | 76 | 26.086957 | 0.838095 | 0 | 0 | 0 | 0 | 0 | 0.043261 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.411765 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a77a582dfed664038d88a1ff5363df1d8c0f04d1 | 712 | py | Python | 11 - Extra-- sonos snips voice app/tests/use_cases/play/test_track_request_objects.py | RedaMastouri/marvis | 75e90a66d0746f12ba6231a4cab16ab40b42928e | [
"MIT"
] | 1 | 2021-12-29T08:44:34.000Z | 2021-12-29T08:44:34.000Z | 11 - Extra-- sonos snips voice app/tests/use_cases/play/test_track_request_objects.py | RedaMastouri/marvis | 75e90a66d0746f12ba6231a4cab16ab40b42928e | [
"MIT"
] | null | null | null | 11 - Extra-- sonos snips voice app/tests/use_cases/play/test_track_request_objects.py | RedaMastouri/marvis | 75e90a66d0746f12ba6231a4cab16ab40b42928e | [
"MIT"
] | null | null | null | import pytest
from snipssonos.use_cases import request_objects as reqo
from snipssonos.exceptions import RequestObjectInitializationException
def test_build_play_track_request_object_without_params():
with pytest.raises(RequestObjectInitializationException):
reqo.PlayTrackRequestObject(None, None, None, ... | 32.363636 | 82 | 0.83427 | 88 | 712 | 6.329545 | 0.454545 | 0.096948 | 0.172352 | 0.057451 | 0.423698 | 0.423698 | 0.423698 | 0 | 0 | 0 | 0 | 0.001572 | 0.106742 | 712 | 21 | 83 | 33.904762 | 0.874214 | 0 | 0 | 0.166667 | 0 | 0 | 0.014045 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a782a63b9776f990f9989e76db0cfe069b62d6a7 | 5,559 | py | Python | scripts/tool_shed/build_ts_whoosh_index.py | gmauro/galaxy-central | 52d50d1b6bbd7db821fffff89607b7c483779f3e | [
"CC-BY-3.0"
] | null | null | null | scripts/tool_shed/build_ts_whoosh_index.py | gmauro/galaxy-central | 52d50d1b6bbd7db821fffff89607b7c483779f3e | [
"CC-BY-3.0"
] | 1 | 2015-02-21T18:48:19.000Z | 2015-02-27T15:50:32.000Z | scripts/tool_shed/build_ts_whoosh_index.py | gmauro/galaxy-central | 52d50d1b6bbd7db821fffff89607b7c483779f3e | [
"CC-BY-3.0"
] | 3 | 2015-02-22T13:34:16.000Z | 2020-10-01T01:28:04.000Z | # !/usr/bin/env python
""" Build indeces for searching the TS """
import sys
import os
import csv
import urllib
import urllib2
import ConfigParser
new_path = [ os.path.join( os.getcwd(), "lib" ) ]
new_path.extend( sys.path[1:] ) # remove scripts/ from the path
sys.path = new_path
from galaxy.util import pretty_pr... | 37.816327 | 174 | 0.625292 | 640 | 5,559 | 5.151563 | 0.29375 | 0.040036 | 0.04034 | 0.033364 | 0.200485 | 0.169245 | 0.127995 | 0.127995 | 0.103124 | 0.077646 | 0 | 0.003842 | 0.297715 | 5,559 | 146 | 175 | 38.075342 | 0.840676 | 0.039216 | 0 | 0.144 | 0 | 0 | 0.036834 | 0.016811 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.144 | null | null | 0.032 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a78ccb722c3072398ed844ec7a63772b7b7e2ad9 | 8,798 | py | Python | pip/toto/runlib.py | team-ferret/pip-toto | 7a20c056be0dfcb64b880774c03395c9fe08a438 | [
"MIT"
] | 1 | 2021-03-09T16:46:28.000Z | 2021-03-09T16:46:28.000Z | pip/toto/runlib.py | team-ferret/pip-toto | 7a20c056be0dfcb64b880774c03395c9fe08a438 | [
"MIT"
] | null | null | null | pip/toto/runlib.py | team-ferret/pip-toto | 7a20c056be0dfcb64b880774c03395c9fe08a438 | [
"MIT"
] | null | null | null | """
<Program Name>
runlib.py
<Author>
Lukas Puehringer <lukas.puehringer@nyu.edu>
<Started>
June 27, 2016
<Copyright>
See LICENSE for licensing information.
<Purpose>
Provides a wrapper for any command of the software supply chain.
The wrapper performs the following tasks which are implemented in this
... | 32.227106 | 79 | 0.706183 | 1,218 | 8,798 | 4.992611 | 0.238095 | 0.025325 | 0.019898 | 0.013156 | 0.38349 | 0.351258 | 0.34616 | 0.312284 | 0.284328 | 0.284328 | 0 | 0.003535 | 0.228347 | 8,798 | 272 | 80 | 32.345588 | 0.892179 | 0.079336 | 0 | 0.077922 | 0 | 0 | 0.072189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a78cfdb3e57f2111244653fd299ee12245ddccac | 26,798 | py | Python | src/main/python/antidotedb/antidoteclient.py | AntidoteDB/antidote-python-client | b30f66131a729ee175c53bd2babcc5b15197904a | [
"Apache-2.0"
] | 2 | 2019-01-26T00:38:08.000Z | 2020-06-17T13:21:04.000Z | src/main/python/antidotedb/antidoteclient.py | AntidoteDB/antidote-python-client | b30f66131a729ee175c53bd2babcc5b15197904a | [
"Apache-2.0"
] | 1 | 2022-01-29T21:34:40.000Z | 2022-01-30T14:59:36.000Z | src/main/python/antidotedb/antidoteclient.py | AntidoteDB/antidote-python-client | b30f66131a729ee175c53bd2babcc5b15197904a | [
"Apache-2.0"
] | 6 | 2019-02-25T18:08:05.000Z | 2020-03-21T18:32:31.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jan 22 11:23:50 2019
@author: nmp
"""
import socket
import struct
from antidotedb.proto import *
class AntidoteException(Exception):
pass
#---------------------------------------------------------------------------------
# Classes that represent... | 31.306075 | 112 | 0.547727 | 2,833 | 26,798 | 5.057183 | 0.108013 | 0.073707 | 0.038529 | 0.03127 | 0.669784 | 0.644168 | 0.61946 | 0.564249 | 0.544706 | 0.52586 | 0 | 0.00354 | 0.325285 | 26,798 | 855 | 113 | 31.34269 | 0.788839 | 0.145384 | 0 | 0.673575 | 0 | 0 | 0.013566 | 0.001241 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217617 | false | 0.001727 | 0.005181 | 0.098446 | 0.414508 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a78dbe7401062d70ea6a2d41c355db7c519f335d | 3,213 | py | Python | test/project_selector/test_project_selector.py | tiborsimon/p | 44d1caf2bab001a2b0bf33c40d7669ae1206f534 | [
"MIT"
] | null | null | null | test/project_selector/test_project_selector.py | tiborsimon/p | 44d1caf2bab001a2b0bf33c40d7669ae1206f534 | [
"MIT"
] | null | null | null | test/project_selector/test_project_selector.py | tiborsimon/p | 44d1caf2bab001a2b0bf33c40d7669ae1206f534 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from unittest import TestCase
from projects.gui import project_selector
class ProjectSelectorBaseCases(TestCase):
def test__project_selector_can_be_initialized(self):
data = [
'one',
'two',
'three'
]
select... | 28.433628 | 87 | 0.547775 | 307 | 3,213 | 5.504886 | 0.23127 | 0.177515 | 0.108876 | 0.179882 | 0.760355 | 0.684024 | 0.656805 | 0.489941 | 0.436095 | 0.404734 | 0 | 0.005053 | 0.32244 | 3,213 | 112 | 88 | 28.6875 | 0.771245 | 0.013072 | 0 | 0.683673 | 0 | 0 | 0.028725 | 0 | 0 | 0 | 0 | 0 | 0.204082 | 1 | 0.081633 | false | 0 | 0.020408 | 0 | 0.112245 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a78ffc6ed6a9fdc004653cab5fcf24a2964231f0 | 1,546 | py | Python | troposphere/qldb.py | filipepmo/troposphere | b1590f58ed8cc86ba18a19ed93fc9380d6f7306b | [
"BSD-2-Clause"
] | null | null | null | troposphere/qldb.py | filipepmo/troposphere | b1590f58ed8cc86ba18a19ed93fc9380d6f7306b | [
"BSD-2-Clause"
] | null | null | null | troposphere/qldb.py | filipepmo/troposphere | b1590f58ed8cc86ba18a19ed93fc9380d6f7306b | [
"BSD-2-Clause"
] | null | null | null | # Copyright (c) 2012-2022, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
#
# *** Do not modify - this file is autogenerated ***
# Resource specification version: 51.0.0
from . import AWSObject, AWSProperty, PropsDictType, Tags
from .validators import boolean
class Ledger(AW... | 27.122807 | 145 | 0.638422 | 151 | 1,546 | 6.483444 | 0.430464 | 0.035751 | 0.033708 | 0.052094 | 0.280899 | 0.193054 | 0.193054 | 0.193054 | 0.193054 | 0.136874 | 0 | 0.009796 | 0.207633 | 1,546 | 56 | 146 | 27.607143 | 0.789388 | 0.35511 | 0 | 0.185185 | 1 | 0 | 0.204233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.37037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a79c7c5d903aa6208811c1e326925ae1040ea1dc | 4,480 | py | Python | recipes/Python/578252_Python_Exception_Chains_or_Trees/recipe-578252.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/578252_Python_Exception_Chains_or_Trees/recipe-578252.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/578252_Python_Exception_Chains_or_Trees/recipe-578252.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | #!/usr/bin/env python
import traceback
import re
import sys
class CausedException(Exception):
def __init__(self, *args, **kwargs):
if len(args) == 1 and not kwargs and isinstance(args[0], Exception):
# we shall just wrap a non-caused exception
self.stack = (
traceba... | 38.290598 | 84 | 0.534598 | 508 | 4,480 | 4.655512 | 0.265748 | 0.074419 | 0.074419 | 0.071036 | 0.185201 | 0.13277 | 0.13277 | 0.13277 | 0.115433 | 0.115433 | 0 | 0.014001 | 0.362277 | 4,480 | 116 | 85 | 38.62069 | 0.813791 | 0.087054 | 0 | 0.196078 | 0 | 0 | 0.082904 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.029412 | null | null | 0.019608 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a7a7ddd016ecca8e004979e2e6ad1bb3a160fde1 | 835 | py | Python | tests/test_PyPlot2.py | jhavl/ropy | 38b12369530253a16c22ef1f5be0bcb75053ffd8 | [
"MIT"
] | 16 | 2020-02-20T10:28:01.000Z | 2021-07-12T09:03:25.000Z | tests/test_PyPlot2.py | jhavl/ropy | 38b12369530253a16c22ef1f5be0bcb75053ffd8 | [
"MIT"
] | 2 | 2020-04-27T01:35:44.000Z | 2020-04-27T23:19:53.000Z | tests/test_PyPlot2.py | jhavl/ropy | 38b12369530253a16c22ef1f5be0bcb75053ffd8 | [
"MIT"
] | 3 | 2020-04-07T03:00:02.000Z | 2020-09-05T23:49:28.000Z | #!/usr/bin/env python
"""
@author: Jesse Haviland
"""
# import numpy.testing as nt
# import numpy as np
import ropy as rp
# import spatialmath as sm
import unittest
class TestPyPlot(unittest.TestCase):
def test_PyPlot(self):
panda = rp.PandaMDH()
env = rp.backend.PyPlot2()
env.launch()
... | 20.875 | 42 | 0.591617 | 102 | 835 | 4.764706 | 0.45098 | 0.04321 | 0.074074 | 0.117284 | 0.465021 | 0.419753 | 0.419753 | 0.419753 | 0.419753 | 0.419753 | 0 | 0.005076 | 0.292216 | 835 | 39 | 43 | 21.410256 | 0.817259 | 0.177246 | 0 | 0.541667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0.125 | false | 0 | 0.083333 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a7af5d3862a86658aa0cb4d8383449f723bcedef | 985 | py | Python | office365/outlookservices/outlook_entity.py | wreiner/Office365-REST-Python-Client | 476bbce4f5928a140b4f5d33475d0ac9b0783530 | [
"MIT"
] | null | null | null | office365/outlookservices/outlook_entity.py | wreiner/Office365-REST-Python-Client | 476bbce4f5928a140b4f5d33475d0ac9b0783530 | [
"MIT"
] | null | null | null | office365/outlookservices/outlook_entity.py | wreiner/Office365-REST-Python-Client | 476bbce4f5928a140b4f5d33475d0ac9b0783530 | [
"MIT"
] | null | null | null | from office365.runtime.client_object import ClientObject
from office365.runtime.queries.delete_entity_query import DeleteEntityQuery
from office365.runtime.queries.update_entity_query import UpdateEntityQuery
from office365.runtime.resource_path import ResourcePath
class OutlookEntity(ClientObject):
"""Base Outlo... | 33.965517 | 77 | 0.695431 | 109 | 985 | 6.119266 | 0.422018 | 0.077961 | 0.11994 | 0.08096 | 0.116942 | 0.116942 | 0.116942 | 0.116942 | 0.116942 | 0 | 0 | 0.015707 | 0.224365 | 985 | 28 | 78 | 35.178571 | 0.85733 | 0.08731 | 0 | 0.25 | 0 | 0 | 0.002252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.2 | 0 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a7b58f8ae2563bc343fd7b1091e404fd33296126 | 1,549 | py | Python | cancer_pso.py | 007mathur/BreastCancerClassification | 731ae55d013ce240b19e5b4c9d2d7f7b5320c443 | [
"MIT"
] | null | null | null | cancer_pso.py | 007mathur/BreastCancerClassification | 731ae55d013ce240b19e5b4c9d2d7f7b5320c443 | [
"MIT"
] | null | null | null | cancer_pso.py | 007mathur/BreastCancerClassification | 731ae55d013ce240b19e5b4c9d2d7f7b5320c443 | [
"MIT"
] | null | null | null | from nn import relu, sigmoid, tanh, softmax
from nn.model import Model
from nn.layers import Layer
from nn.losses import CrossEntropyLoss, BinaryCrossEntropyLoss
from nn.pipeline import DataLoader
import numpy as np
import pandas as pd
import time
t = time.process_time()
from sklearn.datasets import load_breast_cance... | 27.175439 | 123 | 0.730148 | 265 | 1,549 | 4.079245 | 0.335849 | 0.051804 | 0.055504 | 0.031452 | 0.025902 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025792 | 0.123951 | 1,549 | 56 | 124 | 27.660714 | 0.770818 | 0 | 0 | 0 | 0 | 0 | 0.041963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.243902 | null | null | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a7b682455da1501773d51902ad337f4c52c094d0 | 10,011 | py | Python | pymagnitude/third_party/allennlp/tests/data/dataset_readers/dataset_utils/ontonotes_test.py | tpeng/magnitude | aec98628b5547773ca8c4114ec6d1ad51e21b230 | [
"MIT"
] | 1,520 | 2018-03-01T13:37:49.000Z | 2022-03-25T11:40:20.000Z | pymagnitude/third_party/allennlp/tests/data/dataset_readers/dataset_utils/ontonotes_test.py | tpeng/magnitude | aec98628b5547773ca8c4114ec6d1ad51e21b230 | [
"MIT"
] | 87 | 2018-03-03T15:12:50.000Z | 2022-02-21T15:24:12.000Z | pymagnitude/third_party/allennlp/tests/data/dataset_readers/dataset_utils/ontonotes_test.py | tpeng/magnitude | aec98628b5547773ca8c4114ec6d1ad51e21b230 | [
"MIT"
] | 121 | 2018-03-03T08:40:53.000Z | 2022-03-16T05:19:38.000Z | # pylint: disable=no-self-use,invalid-name
from __future__ import division
from __future__ import absolute_import
from nltk import Tree
from allennlp.data.dataset_readers.dataset_utils import Ontonotes
from allennlp.common.testing import AllenNlpTestCase
class TestOntonotes(AllenNlpTestCase):
def test_datase... | 72.021583 | 112 | 0.46359 | 1,275 | 10,011 | 3.535686 | 0.141176 | 0.166815 | 0.175688 | 0.044366 | 0.616903 | 0.576531 | 0.544366 | 0.476043 | 0.364241 | 0.273957 | 0 | 0.018726 | 0.375887 | 10,011 | 138 | 113 | 72.543478 | 0.702785 | 0.013885 | 0 | 0.07377 | 0 | 0 | 0.187475 | 0.008512 | 0 | 0 | 0 | 0 | 0.418033 | 1 | 0.02459 | false | 0 | 0.040984 | 0 | 0.07377 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a7badcf32ef0bfc014668e13223bb9ec215afde5 | 3,009 | py | Python | sentry/bridge.py | MGBI/bitbucket-mattermost-bridge | 52da14783d734fa56b26d40500dafc0f7921a075 | [
"MIT"
] | null | null | null | sentry/bridge.py | MGBI/bitbucket-mattermost-bridge | 52da14783d734fa56b26d40500dafc0f7921a075 | [
"MIT"
] | null | null | null | sentry/bridge.py | MGBI/bitbucket-mattermost-bridge | 52da14783d734fa56b26d40500dafc0f7921a075 | [
"MIT"
] | null | null | null | import requests
from flask import Blueprint, request
from pyxtension.Json import Json
import config
from sentry import payload
sentry_app = Blueprint('sentry_app', __name__)
@sentry_app.route("/hooks/", methods=['POST'])
def bridge_hook():
# The event key is used to determine the type of event
# e.g. instal... | 30.704082 | 78 | 0.628116 | 395 | 3,009 | 4.594937 | 0.326582 | 0.044077 | 0.039669 | 0.023141 | 0.117906 | 0.038567 | 0.026446 | 0 | 0 | 0 | 0 | 0.004125 | 0.274842 | 3,009 | 97 | 79 | 31.020619 | 0.827681 | 0.164506 | 0 | 0 | 0 | 0 | 0.173669 | 0.012405 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0.044118 | false | 0 | 0.073529 | 0.014706 | 0.191176 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a7bb7af9048a46c202124d09575d16f11da71a5b | 1,050 | py | Python | all.py | KlutzyBubbles/jinja2schema | 6e04e8b2b1cdef6dbecab80f0d28129873d3f82b | [
"BSD-3-Clause"
] | null | null | null | all.py | KlutzyBubbles/jinja2schema | 6e04e8b2b1cdef6dbecab80f0d28129873d3f82b | [
"BSD-3-Clause"
] | null | null | null | all.py | KlutzyBubbles/jinja2schema | 6e04e8b2b1cdef6dbecab80f0d28129873d3f82b | [
"BSD-3-Clause"
] | null | null | null | import os
import jinja2schema
import ansible.plugins.filter.core
import ansible.plugins.filter.mathstuff
import ansible.plugins.filter.urls
import ansible.plugins.filter.urlsplit
import jinja2schema
filters = [
ansible.plugins.filter.core.FilterModule(),
ansible.plugins.filter.mathstuff.FilterModule(),
ansible.p... | 30 | 76 | 0.67619 | 125 | 1,050 | 5.624 | 0.368 | 0.159317 | 0.227596 | 0.147937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005821 | 0.181905 | 1,050 | 35 | 76 | 30 | 0.812573 | 0 | 0 | 0.129032 | 0 | 0 | 0.09705 | 0.055186 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.225806 | 0 | 0.258065 | 0.193548 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a7bc74400c5b0d9a41202c1e999562706ae99fa6 | 324 | py | Python | test/test.py | t-yanaka/zabbix-report | ef471b60626dd5fef9bcaa74d6cbbc00cca10c9b | [
"MIT"
] | 2 | 2017-06-27T00:03:35.000Z | 2020-09-16T11:47:53.000Z | test/test.py | t-yanaka/zabbix-report | ef471b60626dd5fef9bcaa74d6cbbc00cca10c9b | [
"MIT"
] | null | null | null | test/test.py | t-yanaka/zabbix-report | ef471b60626dd5fef9bcaa74d6cbbc00cca10c9b | [
"MIT"
] | 3 | 2017-10-13T19:31:08.000Z | 2020-09-16T11:47:54.000Z | class connection (object):
def __init__(self, host=None, user=None, password=""):
self.host = host
self.user = user
self.password=password
print (self.host)
print (self.user)
print (self.password)
host="OK5"
user="OK6"
password="OK7"
con = connection(host=host,user=us... | 24.923077 | 58 | 0.62037 | 41 | 324 | 4.804878 | 0.365854 | 0.121827 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012245 | 0.243827 | 324 | 12 | 59 | 27 | 0.791837 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.333333 | 0 | 0 | 0.166667 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a7bfb585878f5efc047edee5783f154030851a2e | 14,377 | py | Python | fhir/resources/DSTU2/medicationdispense.py | mmabey/fhir.resources | cc73718e9762c04726cd7de240c8f2dd5313cbe1 | [
"BSD-3-Clause"
] | null | null | null | fhir/resources/DSTU2/medicationdispense.py | mmabey/fhir.resources | cc73718e9762c04726cd7de240c8f2dd5313cbe1 | [
"BSD-3-Clause"
] | null | null | null | fhir/resources/DSTU2/medicationdispense.py | mmabey/fhir.resources | cc73718e9762c04726cd7de240c8f2dd5313cbe1 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 1.0.2.7202 (http://hl7.org/fhir/StructureDefinition/MedicationDispense) on 2019-05-14.
# 2019, SMART Health IT.
from . import (backboneelement, codeableconcept, domainresource, fhirdate,
fhirreference, identifier, quantity, range, ... | 36.123116 | 110 | 0.523336 | 1,132 | 14,377 | 6.622792 | 0.20318 | 0.052021 | 0.063492 | 0.070962 | 0.452581 | 0.377218 | 0.335734 | 0.277444 | 0.173803 | 0.167 | 0 | 0.002381 | 0.386659 | 14,377 | 397 | 111 | 36.214106 | 0.847811 | 0.12214 | 0 | 0.579399 | 1 | 0 | 0.106378 | 0.028742 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025751 | false | 0 | 0.004292 | 0 | 0.06867 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a7c23b25b38c1dd7237362fe46a8f6ce42c8a5e9 | 2,296 | py | Python | python/opscore/RO/Astro/Sph/SCFromDC.py | sdss/opscore | dd4f2b2ad525fe3dfe3565463de2c079a7e1232e | [
"BSD-3-Clause"
] | null | null | null | python/opscore/RO/Astro/Sph/SCFromDC.py | sdss/opscore | dd4f2b2ad525fe3dfe3565463de2c079a7e1232e | [
"BSD-3-Clause"
] | 1 | 2021-08-17T21:08:14.000Z | 2021-08-17T21:08:14.000Z | python/opscore/RO/Astro/Sph/SCFromDC.py | sdss/opscore | dd4f2b2ad525fe3dfe3565463de2c079a7e1232e | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
__all__ = ["scFromDC"]
from .SCFromCC import scFromCC
def scFromDC(p):
"""Convert direction cosines or any cartesian vector to spherical coordinates.
Similar to scFromCC but magnitude is not returned.
Inputs:
- p(3) direction cosines or any cartesian vector
Returns a... | 39.586207 | 92 | 0.634582 | 282 | 2,296 | 5.124113 | 0.528369 | 0.009689 | 0.044291 | 0.029066 | 0.117647 | 0.117647 | 0.06782 | 0 | 0 | 0 | 0 | 0.229107 | 0.233885 | 2,296 | 57 | 93 | 40.280702 | 0.592382 | 0.387195 | 0 | 0 | 0 | 0 | 0.061562 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.08 | 0 | 0.16 | 0.16 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a7c928f01038c90d17ca662fbcd1e7caeb61d079 | 3,174 | py | Python | test/test_kernel_launch_checks.py | sanchitintel/pytorch | 416f59308023b5d98f6ea4ecdd0bcd3829edb7a7 | [
"Intel"
] | 60,067 | 2017-01-18T17:21:31.000Z | 2022-03-31T21:37:45.000Z | test/test_kernel_launch_checks.py | Jam3/pytorch | 33d8769c285b51922c378d11a90a442a28e06762 | [
"Intel"
] | 66,955 | 2017-01-18T17:21:38.000Z | 2022-03-31T23:56:11.000Z | test/test_kernel_launch_checks.py | Jam3/pytorch | 33d8769c285b51922c378d11a90a442a28e06762 | [
"Intel"
] | 19,210 | 2017-01-18T17:45:04.000Z | 2022-03-31T23:51:56.000Z | from torch.testing._internal.common_utils import TestCase, run_tests
from torch.testing._internal.check_kernel_launches import (
check_cuda_kernel_launches, check_code_for_cuda_kernel_launches
)
class AlwaysCheckCudaLaunchTest(TestCase):
def test_check_code(self):
"""Verifies that the regex works for ... | 39.675 | 86 | 0.606805 | 353 | 3,174 | 5.031161 | 0.303116 | 0.095721 | 0.065878 | 0.096284 | 0.641892 | 0.601351 | 0.567568 | 0.532658 | 0.532658 | 0.504505 | 0 | 0.036661 | 0.286704 | 3,174 | 79 | 87 | 40.177215 | 0.747792 | 0.044108 | 0 | 0.650794 | 0 | 0 | 0.761401 | 0.32419 | 0 | 0 | 0 | 0 | 0.063492 | 1 | 0.031746 | false | 0 | 0.031746 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a7ca39b95fde9af9a8799bd74bdf6ce3c78b4d8c | 1,200 | py | Python | azure_databricks_sdk_python/exceptions.py | nael-fridhi/azure-databricks-sdk-python | c570691abd13717d4676680ea603f7eca56c6751 | [
"MIT"
] | 15 | 2020-09-29T04:37:25.000Z | 2022-03-28T21:20:14.000Z | azure_databricks_sdk_python/exceptions.py | nael-fridhi/azure-databricks-sdk-python | c570691abd13717d4676680ea603f7eca56c6751 | [
"MIT"
] | 4 | 2020-10-01T16:57:16.000Z | 2020-10-07T21:52:33.000Z | azure_databricks_sdk_python/exceptions.py | nael-fridhi/azure-databricks-sdk-python | c570691abd13717d4676680ea603f7eca56c6751 | [
"MIT"
] | 6 | 2020-10-07T18:01:34.000Z | 2021-10-02T20:58:13.000Z | from requests import HTTPError
class APIError(Exception):
""" """
class ResourceAlreadyExists(ValueError):
""" """
class AuthorizationError(HTTPError):
""" """
class ResourceDoesNotExist(ValueError):
""" """
class IoError(HTTPError):
""" """
class InvalidParameterValue(HTTPError):
... | 16.901408 | 58 | 0.680833 | 86 | 1,200 | 9.255814 | 0.5 | 0.140704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181667 | 1,200 | 70 | 59 | 17.142857 | 0.810591 | 0 | 0 | 0 | 0 | 0 | 0.165441 | 0.128676 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.576923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a7cac893e884bc5aeed1c83a98ee3f9ed5b72c3a | 499 | py | Python | picokitadv/demo_codes/Project_7_vibration_detecting.py | yoyojacky/my_pico | bb9fb61d92635ad8c294b008e12615857aca6219 | [
"MIT"
] | 3 | 2021-06-07T16:17:35.000Z | 2021-12-31T20:28:36.000Z | picokitadv/demo_codes/Project_7_vibration_detecting.py | yoyojacky/my_pico | bb9fb61d92635ad8c294b008e12615857aca6219 | [
"MIT"
] | null | null | null | picokitadv/demo_codes/Project_7_vibration_detecting.py | yoyojacky/my_pico | bb9fb61d92635ad8c294b008e12615857aca6219 | [
"MIT"
] | 2 | 2021-07-06T04:42:22.000Z | 2022-03-06T06:19:31.000Z | from machine import Pin
from time import sleep
vibration_pin = Pin(1, Pin.IN, Pin.PULL_UP)
red_led = Pin(0, Pin.OUT)
blue_led = Pin(2, Pin.OUT)
try:
while True:
if vibration_pin.value() == 1:
red_led.value(1)
blue_led.value(0)
sleep(1)
red_led.value(0)
... | 23.761905 | 43 | 0.579158 | 72 | 499 | 3.847222 | 0.375 | 0.144404 | 0.184116 | 0.086643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0317 | 0.304609 | 499 | 21 | 44 | 23.761905 | 0.766571 | 0 | 0 | 0.111111 | 0 | 0 | 0.006 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.111111 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.