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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b9b04d3d3b6d6ca690c53fe6a40c5953975ed286 | 1,989 | py | Python | heron/tools/cli/src/python/help.py | zhengyangtean/CG4001_Heron_ElasticBolt | e471593c265088996d485e2dd11c9f2484876568 | [
"Apache-2.0"
] | 1 | 2017-11-06T08:23:43.000Z | 2017-11-06T08:23:43.000Z | heron/tools/cli/src/python/help.py | zhengyangtean/CG4001_Heron_ElasticBolt | e471593c265088996d485e2dd11c9f2484876568 | [
"Apache-2.0"
] | null | null | null | heron/tools/cli/src/python/help.py | zhengyangtean/CG4001_Heron_ElasticBolt | e471593c265088996d485e2dd11c9f2484876568 | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 Twitter. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | 29.25 | 74 | 0.721971 | 266 | 1,989 | 5.338346 | 0.477444 | 0.042254 | 0.046479 | 0.059155 | 0.042254 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004887 | 0.176973 | 1,989 | 67 | 75 | 29.686567 | 0.862553 | 0.379588 | 0 | 0.068966 | 0 | 0 | 0.142589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.103448 | null | null | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9b471564d6da96fd6bf3eed6c1436a3c9df6473 | 391 | py | Python | source/ProjectConfigurations/__init__.py | MChenLiang/pipelineLauncher | 998ec4c20726b967f8fe6523c94df9d2c3f83237 | [
"MIT"
] | 3 | 2022-03-26T23:40:11.000Z | 2022-03-27T01:06:52.000Z | source/ProjectConfigurations/__init__.py | MChenLiang/pipelineLauncher | 998ec4c20726b967f8fe6523c94df9d2c3f83237 | [
"MIT"
] | null | null | null | source/ProjectConfigurations/__init__.py | MChenLiang/pipelineLauncher | 998ec4c20726b967f8fe6523c94df9d2c3f83237 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:UTF-8 -*-
# @email : spirit_az@foxmail.com
__author__ = 'ChenLiang.Miao'
# +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ #
import os
import sys
from . import scriptTool
dirname = str(scriptTool.get_script_path())
s... | 27.928571 | 119 | 0.496164 | 39 | 391 | 4.794872 | 0.74359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005634 | 0.092072 | 391 | 13 | 120 | 30.076923 | 0.521127 | 0.480818 | 0 | 0 | 0 | 0 | 0.091371 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b9b671213afcd752012ebe5fc16db19b238f50e7 | 530 | py | Python | components/studio/apps/migrations/0043_auto_20210309_1007.py | aitmlouk/stackn | c8029394a15b03796a4864938f9db251b65c7354 | [
"Apache-2.0"
] | 25 | 2020-05-08T22:24:54.000Z | 2022-03-11T18:16:58.000Z | components/studio/apps/migrations/0043_auto_20210309_1007.py | aitmlouk/stackn | c8029394a15b03796a4864938f9db251b65c7354 | [
"Apache-2.0"
] | 75 | 2020-05-08T22:15:59.000Z | 2021-11-22T10:00:04.000Z | components/studio/apps/migrations/0043_auto_20210309_1007.py | aitmlouk/stackn | c8029394a15b03796a4864938f9db251b65c7354 | [
"Apache-2.0"
] | 12 | 2020-11-04T13:09:46.000Z | 2022-03-14T16:22:40.000Z | # Generated by Django 3.1.6 on 2021-03-09 10:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('apps', '0042_appinstance_open_field'),
]
operations = [
migrations.RemoveField(
model_name='appinstance',
name='open... | 23.043478 | 74 | 0.590566 | 55 | 530 | 5.545455 | 0.672727 | 0.059016 | 0.131148 | 0.157377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058981 | 0.296226 | 530 | 22 | 75 | 24.090909 | 0.758713 | 0.084906 | 0 | 0.25 | 1 | 0 | 0.151139 | 0.055901 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9b7098dfd0295e4ffe6944f41f9151263d535b9 | 12,586 | py | Python | sdk/python/pulumi_azure_native/hanaonazure/v20171103preview/outputs.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/hanaonazure/v20171103preview/outputs.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/hanaonazure/v20171103preview/outputs.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | 34.294278 | 197 | 0.626808 | 1,477 | 12,586 | 5.11239 | 0.104942 | 0.044497 | 0.035757 | 0.035227 | 0.606145 | 0.548537 | 0.508145 | 0.451331 | 0.387896 | 0.335982 | 0 | 0.000109 | 0.273955 | 12,586 | 366 | 198 | 34.387978 | 0.82622 | 0.228826 | 0 | 0.408257 | 1 | 0.027523 | 0.168935 | 0.020688 | 0 | 0 | 0 | 0 | 0 | 1 | 0.174312 | false | 0 | 0.03211 | 0 | 0.353211 | 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 |
b9b822ed8fe006a5951c49d8f727100a713b4951 | 1,038 | py | Python | stix_shifter_modules/msatp/stix_translation/query_translator.py | annish-offl/stix-shifter | 5abbb0391bf23aafebc8411520008718b69aa5fc | [
"Apache-2.0"
] | 1 | 2021-12-15T12:24:28.000Z | 2021-12-15T12:24:28.000Z | stix_shifter_modules/msatp/stix_translation/query_translator.py | annish-offl/stix-shifter | 5abbb0391bf23aafebc8411520008718b69aa5fc | [
"Apache-2.0"
] | null | null | null | stix_shifter_modules/msatp/stix_translation/query_translator.py | annish-offl/stix-shifter | 5abbb0391bf23aafebc8411520008718b69aa5fc | [
"Apache-2.0"
] | null | null | null | import logging
from stix_shifter_utils.modules.base.stix_translation.base_query_translator import BaseQueryTranslator
from . import query_constructor
logger = logging.getLogger(__name__)
class QueryTranslator(BaseQueryTranslator):
def transform_query(self, data, antlr_parsing_object):
"""
Trans... | 35.793103 | 114 | 0.717726 | 132 | 1,038 | 5.469697 | 0.477273 | 0.044321 | 0.049862 | 0.044321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001245 | 0.226397 | 1,038 | 28 | 115 | 37.071429 | 0.897883 | 0.424855 | 0 | 0 | 0 | 0 | 0.072692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b9b87f6895e80652979884247a3e2f288044f82f | 5,507 | py | Python | python/count_vports_with_vss.py | jmlcv/vspk-examples | 825d9bd6093b5ed19419ca15898085ae85731657 | [
"BSD-3-Clause"
] | 25 | 2015-08-21T22:45:31.000Z | 2021-09-27T12:25:00.000Z | python/count_vports_with_vss.py | jmlcv/vspk-examples | 825d9bd6093b5ed19419ca15898085ae85731657 | [
"BSD-3-Clause"
] | 28 | 2015-10-09T16:54:14.000Z | 2020-06-15T18:06:00.000Z | python/count_vports_with_vss.py | jmlcv/vspk-examples | 825d9bd6093b5ed19419ca15898085ae85731657 | [
"BSD-3-Clause"
] | 30 | 2015-10-04T14:32:29.000Z | 2022-01-03T13:18:03.000Z | # -*- coding: utf-8 -*-
"""
Count the number of vPorts in domains that have VSS flow gathering enabled.
--- Author ---
Philippe Dellaert <philippe.dellaert@nokia.com>
--- Version history ---
2021-07-19 1.0 Initial version
--- Usage ---
run 'python count_vports_with_vss.py -h' for an overview
"""
from builtins import... | 38.51049 | 191 | 0.626657 | 691 | 5,507 | 4.865412 | 0.280753 | 0.042534 | 0.045509 | 0.023795 | 0.167162 | 0.090422 | 0.057109 | 0.039262 | 0.039262 | 0.039262 | 0 | 0.008539 | 0.255675 | 5,507 | 142 | 192 | 38.78169 | 0.811661 | 0.088614 | 0 | 0.07 | 0 | 0.02 | 0.289389 | 0.012661 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0.12 | 0.07 | 0 | 0.12 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b9c24821cc336edeaeeeddf25464d8d32ae91695 | 4,867 | py | Python | tools/stntools/stnreduce.py | HEATlab/durability | 85e53f497dfa609f76b5cbf7f5c9ee19deeb2755 | [
"MIT"
] | null | null | null | tools/stntools/stnreduce.py | HEATlab/durability | 85e53f497dfa609f76b5cbf7f5c9ee19deeb2755 | [
"MIT"
] | null | null | null | tools/stntools/stnreduce.py | HEATlab/durability | 85e53f497dfa609f76b5cbf7f5c9ee19deeb2755 | [
"MIT"
] | null | null | null | import sys
import stn
import math
##
# \fn stnreduce(curSTN, agent, origSTN, debug = False)
# \brief Runs one iteration of triangulation on an STN
# \note This function must be run in a loop to triangulate an STN
# \details To run this function, you need an STN and a copy of that
# STN. Both will be changed (The o... | 39.893443 | 146 | 0.631601 | 678 | 4,867 | 4.533923 | 0.297935 | 0.023422 | 0.006831 | 0.026025 | 0.225114 | 0.161353 | 0.089135 | 0.078074 | 0 | 0 | 0 | 0.002215 | 0.258065 | 4,867 | 121 | 147 | 40.223141 | 0.849072 | 0.52969 | 0 | 0.125 | 0 | 0 | 0.042778 | 0 | 0 | 0 | 0 | 0.008264 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.208333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b9c50988b42ca53867e0d8f000d5caada15989be | 717 | py | Python | days/day_6.py | ferryrules/advent_of_code_2020 | 86812d2bbd5d04255b0781d7be68bae0d3e13dc4 | [
"MIT"
] | null | null | null | days/day_6.py | ferryrules/advent_of_code_2020 | 86812d2bbd5d04255b0781d7be68bae0d3e13dc4 | [
"MIT"
] | null | null | null | days/day_6.py | ferryrules/advent_of_code_2020 | 86812d2bbd5d04255b0781d7be68bae0d3e13dc4 | [
"MIT"
] | null | null | null | from utils import get_data, answers, print_answers
data = get_data(2020, 6).split('\n\n')
yes_answers = 0
for group in data:
group = group.replace('\n', '')
unique_yes = set(group)
yes_answers += len(unique_yes)
answers['first'] = yes_answers
yes_answers = 0
for group in data:
group = group.replace('... | 25.607143 | 50 | 0.58159 | 100 | 717 | 3.97 | 0.28 | 0.201511 | 0.095718 | 0.070529 | 0.216625 | 0.216625 | 0.216625 | 0.216625 | 0.216625 | 0.216625 | 0 | 0.025743 | 0.295676 | 717 | 27 | 51 | 26.555556 | 0.760396 | 0 | 0 | 0.173913 | 0 | 0 | 0.029289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.043478 | 0.086957 | 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 |
b9cb254e933a829bee225a97479099984611835f | 525 | py | Python | example/torchscript.py | kuroko1t/gotorch | b310adc6666a5787364e7a01330f610ebeebb4ae | [
"MIT"
] | 6 | 2020-01-10T08:05:34.000Z | 2022-03-23T08:26:40.000Z | example/torchscript.py | kuroko1t/gotorch | b310adc6666a5787364e7a01330f610ebeebb4ae | [
"MIT"
] | 2 | 2021-02-05T00:05:50.000Z | 2021-08-03T12:33:23.000Z | example/torchscript.py | kuroko1t/gotorch | b310adc6666a5787364e7a01330f610ebeebb4ae | [
"MIT"
] | 1 | 2020-01-10T08:05:58.000Z | 2020-01-10T08:05:58.000Z | import torch
import torchvision
# An instance of your model.
model = torchvision.models.resnet18(pretrained=True)
# An example input you would normally provide to your model's forward() method.
example = torch.rand(1, 3, 224, 224)
# Use torch.jit.trace to generate a torch.jit.ScriptModule via tracing.
traced_script_... | 35 | 79 | 0.79619 | 80 | 525 | 5.075 | 0.525 | 0.098522 | 0.064039 | 0.108374 | 0.118227 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021231 | 0.102857 | 525 | 14 | 80 | 37.5 | 0.840764 | 0.525714 | 0 | 0 | 0 | 0 | 0.115226 | 0.115226 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b9cfd3aa442b3a2e9209ee98259d1b75e0bc98d2 | 2,029 | py | Python | debian/modules/naxsi/contrib/rules_generator/naxsi-ui_v0.1/nx_intercept.py | Low-power/nginx-mbedtls | 08aa7092db52f5a383707815fe64557de9bce3e7 | [
"BSD-2-Clause"
] | 1 | 2017-02-15T13:28:18.000Z | 2017-02-15T13:28:18.000Z | debian/modules/naxsi/contrib/rules_generator/naxsi-ui_v0.1/nx_intercept.py | Low-power/nginx-mbedtls | 08aa7092db52f5a383707815fe64557de9bce3e7 | [
"BSD-2-Clause"
] | null | null | null | debian/modules/naxsi/contrib/rules_generator/naxsi-ui_v0.1/nx_intercept.py | Low-power/nginx-mbedtls | 08aa7092db52f5a383707815fe64557de9bce3e7 | [
"BSD-2-Clause"
] | 1 | 2020-11-24T08:17:16.000Z | 2020-11-24T08:17:16.000Z | #!/usr/bin/env python
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
from twisted.internet.protocol import Protocol, Factory
from twisted.internet import reactor, threads
from nx_parser import signature_parser
import syslog
#import threading
### Protocol Implementation
# This is just about... | 31.703125 | 85 | 0.587974 | 237 | 2,029 | 4.898734 | 0.434599 | 0.046512 | 0.03876 | 0.031008 | 0.153316 | 0.153316 | 0.153316 | 0.062016 | 0.062016 | 0 | 0 | 0.011158 | 0.293248 | 2,029 | 63 | 86 | 32.206349 | 0.798466 | 0.227206 | 0 | 0.210526 | 0 | 0 | 0.194956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.026316 | 0.105263 | null | null | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b9cfd9338c7bcea4b427dd4d34ede74b38934ae4 | 1,583 | py | Python | src/eval.py | Wsine/filterfuzz | bcbe4b144b875a23f866be1a3aae77bf81f5f5fc | [
"MIT"
] | null | null | null | src/eval.py | Wsine/filterfuzz | bcbe4b144b875a23f866be1a3aae77bf81f5f5fc | [
"MIT"
] | null | null | null | src/eval.py | Wsine/filterfuzz | bcbe4b144b875a23f866be1a3aae77bf81f5f5fc | [
"MIT"
] | null | null | null | import torch
from tqdm import tqdm
from dataset import generate_test_dataset, load_dataset
from model import load_model
from arguments import Args, parser
from utils import *
@torch.no_grad()
def test(model, testloader, device, num_classes, desc="Evaluate", tqdm_leave=True):
model.eval()
confusion_matrix = t... | 29.314815 | 83 | 0.659507 | 212 | 1,583 | 4.707547 | 0.358491 | 0.0501 | 0.038076 | 0.0501 | 0.07014 | 0.07014 | 0 | 0 | 0 | 0 | 0 | 0.010604 | 0.225521 | 1,583 | 53 | 84 | 29.867925 | 0.803426 | 0 | 0 | 0.051282 | 1 | 0 | 0.032238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.153846 | 0 | 0.230769 | 0.076923 | 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 |
b9d4c0cb9951feb34efaa8cb00aec4292c13feb0 | 659 | py | Python | app/main/forms.py | nattari/slurk | 9eb8ae8fbfde30377565584ffdb6dfcd709923eb | [
"BSD-3-Clause"
] | null | null | null | app/main/forms.py | nattari/slurk | 9eb8ae8fbfde30377565584ffdb6dfcd709923eb | [
"BSD-3-Clause"
] | null | null | null | app/main/forms.py | nattari/slurk | 9eb8ae8fbfde30377565584ffdb6dfcd709923eb | [
"BSD-3-Clause"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms.fields import StringField, SubmitField, BooleanField, IntegerField, SelectField
from wtforms.validators import InputRequired
class LoginForm(FlaskForm):
name = StringField('Name', validators=[InputRequired()])
token = StringField('Token', validators=[InputRequired(... | 36.611111 | 92 | 0.748103 | 62 | 659 | 7.935484 | 0.5 | 0.186992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001751 | 0.133536 | 659 | 17 | 93 | 38.764706 | 0.859895 | 0 | 0 | 0 | 0 | 0 | 0.095599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b9d5f7e7f79f9e0500bb1cd86a59b978448ba70d | 481 | py | Python | compiler/semantic/visitors/return_stmt.py | raccoon-lang/raccoon | 2a88039f271fbb0c370d1a6b57b2d67e3e9c6c9b | [
"Apache-2.0"
] | 3 | 2020-12-28T18:10:49.000Z | 2022-01-25T20:07:07.000Z | compiler/semantic/visitors/return_stmt.py | Valentine-Mario/raccoon | 4dda2f6e5d227b43412d20729844ba394d6386f9 | [
"Apache-2.0"
] | 1 | 2021-08-23T21:09:30.000Z | 2021-08-23T21:09:30.000Z | compiler/semantic/visitors/return_stmt.py | Valentine-Mario/raccoon | 4dda2f6e5d227b43412d20729844ba394d6386f9 | [
"Apache-2.0"
] | 1 | 2021-01-15T08:32:37.000Z | 2021-01-15T08:32:37.000Z | """
"""
from compiler.ast import (
Integer,
)
from compiler import Visitor
class ReturnVisitor(Visitor):
"""
"""
def __init__(self, ast, info):
self.return_stmt = ast
self.info = info
def start_visit(self):
self.return_stmt.accept(self)
def act(self):
"""
... | 15.03125 | 42 | 0.523909 | 52 | 481 | 4.653846 | 0.480769 | 0.123967 | 0.173554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.365904 | 481 | 31 | 43 | 15.516129 | 0.793443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.0625 | 0.125 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b9d7bd473d3bbc7f6e885b53d58871782e2d7298 | 823 | py | Python | tests/test_ddc_canceled_email.py | ramomar/banes | ccd4e83a294d4e6abffbb9c4adc30f05cb986d23 | [
"MIT"
] | null | null | null | tests/test_ddc_canceled_email.py | ramomar/banes | ccd4e83a294d4e6abffbb9c4adc30f05cb986d23 | [
"MIT"
] | null | null | null | tests/test_ddc_canceled_email.py | ramomar/banes | ccd4e83a294d4e6abffbb9c4adc30f05cb986d23 | [
"MIT"
] | null | null | null | from banes import ddc_canceled_email
from banes.records import AccountOperationRecord
EMAIL_PATH = 'digital-debit-card-canceled-email.html'
def test_is_matching(load_email):
"""it should be able to match a digital debit card canceled email"""
html = load_email(EMAIL_PATH)
assert ddc_canceled_email.is_ma... | 31.653846 | 90 | 0.7339 | 111 | 823 | 5.234234 | 0.45045 | 0.156627 | 0.110155 | 0.165232 | 0.371773 | 0.321859 | 0.26506 | 0.179002 | 0.179002 | 0.179002 | 0 | 0.023739 | 0.181045 | 823 | 25 | 91 | 32.92 | 0.838279 | 0.153098 | 0 | 0.125 | 0 | 0 | 0.274052 | 0.103499 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 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 |
b9df3c8e22aaa0f19f37c216b070223bf195fc2f | 1,288 | py | Python | sources/views.py | jaymcgrath/ewe_ebooks | 06ffa6c881d205ab00a55c195ee79bccd2da77ec | [
"MIT"
] | 4 | 2016-12-05T18:32:48.000Z | 2019-01-26T21:42:53.000Z | sources/views.py | jaymcgrath/ewe_ebooks | 06ffa6c881d205ab00a55c195ee79bccd2da77ec | [
"MIT"
] | 14 | 2016-11-30T01:03:59.000Z | 2019-01-26T21:37:25.000Z | sources/views.py | jaymcgrath/ewe_ebooks | 06ffa6c881d205ab00a55c195ee79bccd2da77ec | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.views.generic.edit import CreateView
from django.views.generic import ListView, DetailView, UpdateView
from .forms import CorpusForm
from .models import Corpus
from extras.mixins import VerifiedEmailRequiredMixin
# Create your views here!
class CorpusCreateView(Verifi... | 25.254902 | 72 | 0.71972 | 147 | 1,288 | 6.176871 | 0.489796 | 0.03304 | 0.03304 | 0.048458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001932 | 0.196429 | 1,288 | 50 | 73 | 25.76 | 0.875362 | 0.161491 | 0 | 0.115385 | 0 | 0 | 0.052326 | 0.025194 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.038462 | 0.230769 | 0 | 0.884615 | 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 |
b9e161d322f05c7b5100d4c6312496ca0dd549af | 615 | py | Python | PINp/2014/Cheraneva A.S/task_6_24.py | YukkaSarasti/pythonintask | eadf4245abb65f4400a3bae30a4256b4658e009c | [
"Apache-2.0"
] | null | null | null | PINp/2014/Cheraneva A.S/task_6_24.py | YukkaSarasti/pythonintask | eadf4245abb65f4400a3bae30a4256b4658e009c | [
"Apache-2.0"
] | null | null | null | PINp/2014/Cheraneva A.S/task_6_24.py | YukkaSarasti/pythonintask | eadf4245abb65f4400a3bae30a4256b4658e009c | [
"Apache-2.0"
] | null | null | null | #Задача 6. Вариант 24.
#Создайте игру, в которой компьютер загадывает название одной из четырех основных мастей лошадей, а игрок должен ее угадать.
#Cheraneva A.S.
#25.03.2016
import random
m=('Вороная', 'Гнедая', 'Серая', 'Рыжая')
a=random.randint(0,2)
rand=m[a]
print('Как вы думаете, название какой из четырех осн... | 24.6 | 124 | 0.715447 | 93 | 615 | 4.741935 | 0.698925 | 0.061224 | 0.081633 | 0.072562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026465 | 0.139837 | 615 | 24 | 125 | 25.625 | 0.805293 | 0.273171 | 0 | 0 | 0 | 0.071429 | 0.506818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b9e1c08181bc5ed8a93ea085477410490f80776b | 526 | py | Python | main/migrations/0007_add-pubchem-cid.py | TeselaGen/jbei-edd | 92792fb30bbd504143b2f75bf08d05b141a7ef6f | [
"BSD-3-Clause-LBNL"
] | null | null | null | main/migrations/0007_add-pubchem-cid.py | TeselaGen/jbei-edd | 92792fb30bbd504143b2f75bf08d05b141a7ef6f | [
"BSD-3-Clause-LBNL"
] | null | null | null | main/migrations/0007_add-pubchem-cid.py | TeselaGen/jbei-edd | 92792fb30bbd504143b2f75bf08d05b141a7ef6f | [
"BSD-3-Clause-LBNL"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.13 on 2017-07-06 01:54
# flake8: noqa
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0006_add-protein-strain-link'),
]
operations = [
migrations.AddField(
model_name... | 25.047619 | 141 | 0.627376 | 61 | 526 | 5.327869 | 0.786885 | 0.067692 | 0.086154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055 | 0.239544 | 526 | 20 | 142 | 26.3 | 0.7575 | 0.153992 | 0 | 0 | 1 | 0 | 0.201814 | 0.063492 | 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 |
b9e2ad7706c77bb0a37d0aa9e09feea86298e54e | 885 | py | Python | copy_method.py | BeenashPervaiz/Command_Line_Task | a603fbdd06717ff157ecd72881d08329413fd82c | [
"MIT"
] | null | null | null | copy_method.py | BeenashPervaiz/Command_Line_Task | a603fbdd06717ff157ecd72881d08329413fd82c | [
"MIT"
] | null | null | null | copy_method.py | BeenashPervaiz/Command_Line_Task | a603fbdd06717ff157ecd72881d08329413fd82c | [
"MIT"
] | null | null | null | #1st method: fromkey methods(used to create dictionary)
#dic = {'name':'unknown','age':'unknown'}
#dic1 = dict.fromkeys(['name','age','height'],'unknown')#we also here write tuples dict.fromkeys(('name','age','height'),'unknown')
#print(dic1)
#dic2 = dict.fromkeys(range(1,11),'unknown')
#print(dic2)
#2nd method is get... | 21.585366 | 131 | 0.674576 | 133 | 885 | 4.488722 | 0.338346 | 0.107203 | 0.046901 | 0.056951 | 0.368509 | 0.211055 | 0 | 0 | 0 | 0 | 0 | 0.020752 | 0.128814 | 885 | 40 | 132 | 22.125 | 0.753567 | 0.512994 | 0 | 0.409091 | 0 | 0 | 0.181159 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.636364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
b9e7f06f57f6b038a2b3a236fa148ed876d9b44b | 4,526 | py | Python | examples/run_state_estimation_service_mac_interface.py | dinkelbachjan/pyvolt-service | 027af26b3df7ce585f56f7af108d27312fb3f84f | [
"Apache-2.0"
] | null | null | null | examples/run_state_estimation_service_mac_interface.py | dinkelbachjan/pyvolt-service | 027af26b3df7ce585f56f7af108d27312fb3f84f | [
"Apache-2.0"
] | 2 | 2021-02-09T10:44:44.000Z | 2021-02-09T10:47:13.000Z | examples/run_state_estimation_service_mac_interface.py | dinkelbachjan/pyvolt-service | 027af26b3df7ce585f56f7af108d27312fb3f84f | [
"Apache-2.0"
] | 3 | 2021-01-19T09:06:45.000Z | 2021-02-22T11:44:07.000Z | import time
import logging
import paho.mqtt.client as mqtt
import traceback
from json import loads, dumps
# import cimpy
# from acs.state_estimation.network import System
# from acs.state_estimation.nv_state_estimator import DsseCall
# from acs.state_estimation.measurement import MeasurementSet
import sys
from os imp... | 34.815385 | 118 | 0.719399 | 563 | 4,526 | 5.552398 | 0.34103 | 0.047985 | 0.03135 | 0.033589 | 0.210813 | 0.192258 | 0.171145 | 0.171145 | 0.141075 | 0.075816 | 0 | 0.011937 | 0.185594 | 4,526 | 129 | 119 | 35.085271 | 0.836137 | 0.568935 | 0 | 0 | 0 | 0 | 0.099946 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0.085106 | 0.191489 | 0 | 0.276596 | 0.085106 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b9e8239589b5073c74ad31944e1176abbe5eff4f | 3,249 | py | Python | mordred/tests/test_atomic_property.py | ademidun/mordred | c9de906f0d7829a9abe80658b19f4f9f9aef6648 | [
"BSD-3-Clause"
] | 199 | 2017-04-26T07:40:32.000Z | 2022-03-29T10:52:19.000Z | mordred/tests/test_atomic_property.py | mkrompiec/mordred | 8337a088b96e35fda86235ebf37f9c72d35cf72f | [
"BSD-3-Clause"
] | 87 | 2016-01-15T09:02:20.000Z | 2022-03-21T23:18:08.000Z | mordred/tests/test_atomic_property.py | mkrompiec/mordred | 8337a088b96e35fda86235ebf37f9c72d35cf72f | [
"BSD-3-Clause"
] | 64 | 2018-03-07T13:21:47.000Z | 2022-03-16T00:56:11.000Z | from rdkit import Chem
from numpy.testing import assert_almost_equal
from mordred import _atomic_property
_data = {
">C<": "CC(C)(C)C",
">CH-": "CC(C)C",
"-CH2-": "CCC", # noqa: S001
"=C<": "C=C(C)C",
"-CH3": "CC", # noqa: S001
"=CH-": "CC=C",
">N-": "CN(C)C",
"#C-": "C#CC", # noqa:... | 23.715328 | 80 | 0.40474 | 430 | 3,249 | 2.986047 | 0.197674 | 0.224299 | 0.062305 | 0.009346 | 0.299065 | 0.277259 | 0.23053 | 0.23053 | 0.23053 | 0.132399 | 0 | 0.110577 | 0.359803 | 3,249 | 136 | 81 | 23.889706 | 0.506731 | 0.121576 | 0 | 0.113821 | 0 | 0 | 0.13454 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 1 | 0.03252 | false | 0 | 0.02439 | 0 | 0.056911 | 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 |
b9ebafcd26db0098767718122e69eec3506d59c5 | 366 | py | Python | examples/plotter.py | egh17/evxtb | c7f608fd06b5464c1ef2a9450bf5bb6e0cd01013 | [
"MIT"
] | null | null | null | examples/plotter.py | egh17/evxtb | c7f608fd06b5464c1ef2a9450bf5bb6e0cd01013 | [
"MIT"
] | null | null | null | examples/plotter.py | egh17/evxtb | c7f608fd06b5464c1ef2a9450bf5bb6e0cd01013 | [
"MIT"
] | null | null | null | import numpy as np
from pathlib import Path
import matplotlib.pyplot as plt
from evxtb.xtb_ev import xtbev, xtbev_opt, ev_bulk
if __name__ == "__main__":
input_file = "TiO2_Beta.vasp"
TO_READ = str(Path(__file__).parent / "data" / input_file)
sfs = np.linspace(0.75, 1.05, 15).tolist()
V, E = xtbev(TO_... | 28.153846 | 62 | 0.688525 | 62 | 366 | 3.709677 | 0.645161 | 0.117391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033445 | 0.18306 | 366 | 12 | 63 | 30.5 | 0.735786 | 0 | 0 | 0 | 0 | 0 | 0.071038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b9eca56b97b32a1f30cb249b36217ef995a2d5be | 3,243 | py | Python | var/spack/repos/builtin/packages/libarchive/package.py | lcnzg/spack | 5b9f60f9bb159113bfd8a0c8f3f4a8a0c2f55d7e | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 1 | 2021-06-28T02:20:15.000Z | 2021-06-28T02:20:15.000Z | var/spack/repos/builtin/packages/libarchive/package.py | lcnzg/spack | 5b9f60f9bb159113bfd8a0c8f3f4a8a0c2f55d7e | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 18 | 2021-03-12T16:22:58.000Z | 2022-03-02T17:07:08.000Z | var/spack/repos/builtin/packages/libarchive/package.py | hainest/spack | c592e17d49118f253b552ef6165745ded8ac0ea5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 1 | 2021-06-28T04:48:37.000Z | 2021-06-28T04:48:37.000Z | # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Libarchive(AutotoolsPackage):
"""libarchive: C library and command-line tools for reading ... | 49.136364 | 175 | 0.717237 | 368 | 3,243 | 6.252717 | 0.407609 | 0.046936 | 0.020861 | 0.024337 | 0.058236 | 0.02173 | 0 | 0 | 0 | 0 | 0 | 0.14086 | 0.139685 | 3,243 | 65 | 176 | 49.892308 | 0.683871 | 0.135368 | 0 | 0 | 0 | 0.02439 | 0.48474 | 0.194614 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0.02439 | false | 0 | 0.02439 | 0 | 0.170732 | 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 |
b9f4f4a8acca222e0db487dc245707150834e7ca | 36,820 | py | Python | mcGRBM_gpu.py | evelkey/cudalearn | fbf9c18b2e6f4a8febd04557a7b2eacbe8957cf4 | [
"BSD-3-Clause"
] | null | null | null | mcGRBM_gpu.py | evelkey/cudalearn | fbf9c18b2e6f4a8febd04557a7b2eacbe8957cf4 | [
"BSD-3-Clause"
] | null | null | null | mcGRBM_gpu.py | evelkey/cudalearn | fbf9c18b2e6f4a8febd04557a7b2eacbe8957cf4 | [
"BSD-3-Clause"
] | null | null | null | #Copyright (c) 2009,2010 George Dahl
import numpy as num
import cudamat as cm
from cudamat import reformat
from scipy.io import loadmat, savemat
def logOnePlusExp(x, temp, targ = None):
"""
When this function is done, x should contain log(1+exp(x)). We
clobber the value of temp. We compute log(1+exp(x... | 39.295624 | 119 | 0.626534 | 4,423 | 36,820 | 5.161203 | 0.136559 | 0.038374 | 0.026284 | 0.033292 | 0.432846 | 0.378483 | 0.328062 | 0.299282 | 0.266559 | 0.220913 | 0 | 0.013664 | 0.262575 | 36,820 | 936 | 120 | 39.337607 | 0.827085 | 0.170152 | 0 | 0.241379 | 0 | 0 | 0.02501 | 0.003432 | 0 | 0 | 0 | 0 | 0.019964 | 0 | null | null | 0 | 0.009074 | null | null | 0.036298 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b9f9352f6bf249aa3fbb3ba18ead6cd78de25c1d | 1,003 | py | Python | tests/2.functional/test_user.py | Morioki/LookingGlass.API | 7fd308efc808ce23e5edf3c4a98d3faac15ecedf | [
"MIT"
] | null | null | null | tests/2.functional/test_user.py | Morioki/LookingGlass.API | 7fd308efc808ce23e5edf3c4a98d3faac15ecedf | [
"MIT"
] | null | null | null | tests/2.functional/test_user.py | Morioki/LookingGlass.API | 7fd308efc808ce23e5edf3c4a98d3faac15ecedf | [
"MIT"
] | null | null | null | from api.helpers import random_string_generator
from tests.conftest import ValueStorage
name = random_string_generator(20)
def test_user_all(client):
json = {"query":"query getUsers{\n users {\n id\n }\n}","operationName":"getUsers"}
response = client.post('/graphql', headers=ValueStorage.headers, json=... | 43.608696 | 92 | 0.673978 | 140 | 1,003 | 4.75 | 0.357143 | 0.07218 | 0.049624 | 0.090226 | 0.694737 | 0.694737 | 0.651128 | 0.57594 | 0.57594 | 0.491729 | 0 | 0.007134 | 0.161515 | 1,003 | 23 | 93 | 43.608696 | 0.783591 | 0.052841 | 0 | 0.333333 | 0 | 0 | 0.268704 | 0 | 0 | 0 | 0 | 0.043478 | 0.166667 | 1 | 0.166667 | false | 0 | 0.111111 | 0 | 0.277778 | 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 |
6a024aef48607cb2e3ff8d19a0d96d3529b04495 | 17,689 | py | Python | tabular_random_policy.py | mkneesh/peekaboo | 7598b9818a8bf3e8711b632da51979fa4bfb957d | [
"MIT"
] | null | null | null | tabular_random_policy.py | mkneesh/peekaboo | 7598b9818a8bf3e8711b632da51979fa4bfb957d | [
"MIT"
] | null | null | null | tabular_random_policy.py | mkneesh/peekaboo | 7598b9818a8bf3e8711b632da51979fa4bfb957d | [
"MIT"
] | null | null | null | # ------------------------------------------------------------------------------------------------
# Copyright (c) 2016 Microsoft Corporation
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the "Software"), to deal in the Software ... | 42.521635 | 162 | 0.583526 | 2,251 | 17,689 | 4.400711 | 0.199911 | 0.045427 | 0.014133 | 0.023016 | 0.33404 | 0.278518 | 0.256713 | 0.233091 | 0.221886 | 0.207147 | 0 | 0.01756 | 0.304596 | 17,689 | 416 | 163 | 42.521635 | 0.787741 | 0.129516 | 0 | 0.277228 | 0 | 0 | 0.087623 | 0.004179 | 0 | 0 | 0 | 0.002404 | 0.013201 | 0 | null | null | 0 | 0.033003 | null | null | 0.092409 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6a040cf0ee1323ca7500fedb06e4a29495cf81ed | 390 | py | Python | recipes/migrations/0010_alter_recipe_servings.py | sergeant-savage/my-recipe-app | cb1b5c05928689aed2c1637d8b4cf1ab08daf4b6 | [
"MIT"
] | 1 | 2021-08-11T11:43:06.000Z | 2021-08-11T11:43:06.000Z | recipes/migrations/0010_alter_recipe_servings.py | sergeant-savage/my-recipe-app | cb1b5c05928689aed2c1637d8b4cf1ab08daf4b6 | [
"MIT"
] | 8 | 2021-08-11T00:55:32.000Z | 2021-08-15T20:48:59.000Z | recipes/migrations/0010_alter_recipe_servings.py | sergeant-savage/my-recipe-app | cb1b5c05928689aed2c1637d8b4cf1ab08daf4b6 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-07-24 21:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('recipes', '0009_alter_recipe_servings'),
]
operations = [
migrations.AlterField(
model_name='recipe',
name='servings... | 20.526316 | 50 | 0.602564 | 41 | 390 | 5.634146 | 0.804878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071685 | 0.284615 | 390 | 18 | 51 | 21.666667 | 0.756272 | 0.115385 | 0 | 0 | 1 | 0 | 0.137026 | 0.075802 | 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 |
6a04ad2345226170fd1deea2fa674c5567f10c8c | 623 | py | Python | src/core/context_processors.py | Flyingfox646/flyingfox | fc936ca1c2631a5f9d842d0deae1e197d50e7a96 | [
"MIT"
] | null | null | null | src/core/context_processors.py | Flyingfox646/flyingfox | fc936ca1c2631a5f9d842d0deae1e197d50e7a96 | [
"MIT"
] | null | null | null | src/core/context_processors.py | Flyingfox646/flyingfox | fc936ca1c2631a5f9d842d0deae1e197d50e7a96 | [
"MIT"
] | null | null | null | from django.conf import settings as _settings
from core import __version__
from chunks.models import Chunk
def server_info(request):
chunks = Chunk.objects.filter(key__in=('server_name', 'server_forum_url'))
data = {chunk.key: chunk for chunk in chunks}
data['INACTIVE_PLAYER_DAYS'] = _settings.INACTIVE_P... | 25.958333 | 78 | 0.741573 | 82 | 623 | 5.207317 | 0.45122 | 0.065574 | 0.084309 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163724 | 623 | 23 | 79 | 27.086957 | 0.819578 | 0 | 0 | 0 | 0 | 0 | 0.163724 | 0.033708 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.1875 | 0.125 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
6a069e8cc69f270ad27ce3e81e4eca55e6e62e5c | 2,317 | py | Python | test/strategy/amm_arb/test_utils.py | csdenboer/hummingbot | 8a799675a325ebdbb74d76b2a44472cdbf74d691 | [
"Apache-2.0"
] | 37 | 2020-07-08T03:44:26.000Z | 2022-01-16T12:35:26.000Z | test/strategy/amm_arb/test_utils.py | csdenboer/hummingbot | 8a799675a325ebdbb74d76b2a44472cdbf74d691 | [
"Apache-2.0"
] | 8 | 2020-10-01T05:17:54.000Z | 2020-11-09T13:38:19.000Z | test/strategy/amm_arb/test_utils.py | csdenboer/hummingbot | 8a799675a325ebdbb74d76b2a44472cdbf74d691 | [
"Apache-2.0"
] | 17 | 2021-04-07T21:29:46.000Z | 2022-02-03T02:01:04.000Z | from os.path import join, realpath
import sys; sys.path.insert(0, realpath(join(__file__, "../../../../")))
import unittest
from decimal import Decimal
from hummingbot.strategy.amm_arb import utils
from hummingbot.connector.connector_base import ConnectorBase
from hummingbot.strategy.market_trading_pair_tuple import M... | 45.431373 | 100 | 0.71817 | 311 | 2,317 | 5.057878 | 0.247588 | 0.083916 | 0.033058 | 0.050858 | 0.344565 | 0.344565 | 0.265734 | 0.265734 | 0.265734 | 0.265734 | 0 | 0.032241 | 0.170047 | 2,317 | 50 | 101 | 46.34 | 0.785751 | 0.055675 | 0 | 0.263158 | 0 | 0 | 0.024714 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 1 | 0.131579 | false | 0 | 0.184211 | 0.052632 | 0.552632 | 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 |
6a0908a98ea68638edd3283db7435c90671e7262 | 379 | py | Python | EnvLoad.py | CyberSpaceBoy/backups-s3-sse | 7b3c4f68c6512526f57f1065ef26312d6426a169 | [
"MIT"
] | null | null | null | EnvLoad.py | CyberSpaceBoy/backups-s3-sse | 7b3c4f68c6512526f57f1065ef26312d6426a169 | [
"MIT"
] | null | null | null | EnvLoad.py | CyberSpaceBoy/backups-s3-sse | 7b3c4f68c6512526f57f1065ef26312d6426a169 | [
"MIT"
] | null | null | null | from os import environ
def load_env(filename='.env'):
proceed = False
try:
open(filename)
proceed=True
except: raise ValueError("Invalid filename")
if proceed==True:
data = open(filename).read()
parsed_data = data.split('\n')
for i in range(len(parsed_data)):
current = pars... | 18.95 | 46 | 0.635884 | 50 | 379 | 4.74 | 0.62 | 0.126582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006757 | 0.218997 | 379 | 19 | 47 | 19.947368 | 0.793919 | 0 | 0 | 0 | 0 | 0 | 0.060686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | 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 |
6a0b6880bfca7b376f83ef4ec2e8649b76acfbf7 | 13,919 | py | Python | src/pymor/reductors/residual.py | ftschindler-work/pymor | f24703b6b244ca6ed9d7bca7a9846074993e98f5 | [
"Unlicense"
] | null | null | null | src/pymor/reductors/residual.py | ftschindler-work/pymor | f24703b6b244ca6ed9d7bca7a9846074993e98f5 | [
"Unlicense"
] | null | null | null | src/pymor/reductors/residual.py | ftschindler-work/pymor | f24703b6b244ca6ed9d7bca7a9846074993e98f5 | [
"Unlicense"
] | null | null | null | # This file is part of the pyMOR project (http://www.pymor.org).
# Copyright 2013-2020 pyMOR developers and contributors. All rights reserved.
# License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
import numpy as np
from pymor.algorithms.image import estimate_image_hierarchical
from pymor.algo... | 43.633229 | 124 | 0.626123 | 1,686 | 13,919 | 5.023725 | 0.126928 | 0.055254 | 0.058205 | 0.019835 | 0.687958 | 0.655608 | 0.619835 | 0.597166 | 0.576623 | 0.495868 | 0 | 0.004302 | 0.281845 | 13,919 | 318 | 125 | 43.77044 | 0.843037 | 0.302536 | 0 | 0.706897 | 0 | 0 | 0.024947 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 1 | 0.103448 | false | 0 | 0.04023 | 0.022989 | 0.298851 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a0f4047f7b4be85d4562e3ba4c858c3068ff671 | 427 | py | Python | test.py | hronecviktor/reality_parse | a6ff9f0e48c298427973db8ea83616f856f2ebab | [
"MIT"
] | null | null | null | test.py | hronecviktor/reality_parse | a6ff9f0e48c298427973db8ea83616f856f2ebab | [
"MIT"
] | null | null | null | test.py | hronecviktor/reality_parse | a6ff9f0e48c298427973db8ea83616f856f2ebab | [
"MIT"
] | null | null | null | from requests import get
import bs4
from math import ceil
import re
resp = get('http://www.byty.sk/bratislava/prenajom?p[param10]=18&p[distance]=50&p[param1][to]=400&p[foto]=1&p[page]=1')
soup = bs4.BeautifulSoup(resp.text, 'html.parser')
# print(soup.prettify())
soup.find_all()
pocet = soup.find(text=re.compile('''.*z... | 35.583333 | 119 | 0.681499 | 74 | 427 | 3.918919 | 0.621622 | 0.055172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035443 | 0.074941 | 427 | 11 | 120 | 38.818182 | 0.698734 | 0.051522 | 0 | 0 | 0 | 0.1 | 0.411911 | 0.091811 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6a0fe9146a3c4a91de2e4d20836354aee6d0e200 | 12,987 | py | Python | macaw/eval_utils.py | AK391/macaw | 50a525659a843dfeb1ed46fca065700aa9104fee | [
"Apache-2.0"
] | 318 | 2021-09-07T01:44:24.000Z | 2022-03-18T19:57:29.000Z | macaw/eval_utils.py | AK391/macaw | 50a525659a843dfeb1ed46fca065700aa9104fee | [
"Apache-2.0"
] | 1 | 2022-01-26T02:13:37.000Z | 2022-01-26T17:30:32.000Z | macaw/eval_utils.py | AK391/macaw | 50a525659a843dfeb1ed46fca065700aa9104fee | [
"Apache-2.0"
] | 38 | 2021-09-07T10:54:43.000Z | 2022-03-31T14:06:49.000Z | import collections
import copy
import re
import string
from macaw.utils import decompose_slots
# Pick zero or more libraries for evaluating generated text
USE_PY_ROUGE = False # Use ROUGE code from "pip install py-rouge nltk"
USE_NLG_EVAL = False # Use nlgeval library (https://github.com/Maluuba/nlg-eval)
USE_GOOGL... | 36.583099 | 132 | 0.621083 | 1,776 | 12,987 | 4.322635 | 0.228604 | 0.015631 | 0.02006 | 0.024619 | 0.203204 | 0.139247 | 0.121011 | 0.111372 | 0.071122 | 0.057314 | 0 | 0.055347 | 0.261261 | 12,987 | 354 | 133 | 36.686441 | 0.744841 | 0.071533 | 0 | 0.149153 | 1 | 0.033898 | 0.055574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077966 | false | 0 | 0.027119 | 0.020339 | 0.227119 | 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 |
6a10a6d130abee36fa14f4d35765433b00dc4b98 | 495 | py | Python | product/migrations/0005_product_category.py | satyendraniranjan/Sale-Website | 5ad31becdfcb9efacf4a1fc4917c14aa33305dce | [
"MIT"
] | null | null | null | product/migrations/0005_product_category.py | satyendraniranjan/Sale-Website | 5ad31becdfcb9efacf4a1fc4917c14aa33305dce | [
"MIT"
] | null | null | null | product/migrations/0005_product_category.py | satyendraniranjan/Sale-Website | 5ad31becdfcb9efacf4a1fc4917c14aa33305dce | [
"MIT"
] | null | null | null | # Generated by Django 2.2.5 on 2019-09-09 17:56
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('product', '0004_category'),
]
operations = [
migrations.AddField(
model_name='pro... | 24.75 | 117 | 0.612121 | 55 | 495 | 5.436364 | 0.6 | 0.080268 | 0.093645 | 0.147157 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.270707 | 495 | 19 | 118 | 26.052632 | 0.775623 | 0.090909 | 0 | 0 | 1 | 0 | 0.118881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a119f46abed127b0c00da6ad4f890491630f8a8 | 2,738 | py | Python | src/python/ros_adapter/shapeshifter.py | Yannic/core | fbde792f8fa1386e1138c4bc1ef67af2344c0dbb | [
"Apache-2.0"
] | 1 | 2021-11-16T11:36:35.000Z | 2021-11-16T11:36:35.000Z | src/python/ros_adapter/shapeshifter.py | Yannic/core | fbde792f8fa1386e1138c4bc1ef67af2344c0dbb | [
"Apache-2.0"
] | null | null | null | src/python/ros_adapter/shapeshifter.py | Yannic/core | fbde792f8fa1386e1138c4bc1ef67af2344c0dbb | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 The Cloud Robotics Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | 31.837209 | 79 | 0.723156 | 382 | 2,738 | 5.013089 | 0.400524 | 0.042298 | 0.04752 | 0.01671 | 0.039687 | 0.039687 | 0.039687 | 0.039687 | 0 | 0 | 0 | 0.009968 | 0.193937 | 2,738 | 85 | 80 | 32.211765 | 0.857725 | 0.4916 | 0 | 0 | 0 | 0 | 0.02974 | 0 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0.166667 | false | 0 | 0.027778 | 0 | 0.305556 | 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 |
6a12e6ad5c3193b47d13002bdaa91da1aa0ffe94 | 2,106 | py | Python | python/tensorflow/gru_test_unit.py | markliou/tool_scripts | d9f7d8f23edeb294dac1c9d29a2d7358751922b7 | [
"Apache-2.0"
] | null | null | null | python/tensorflow/gru_test_unit.py | markliou/tool_scripts | d9f7d8f23edeb294dac1c9d29a2d7358751922b7 | [
"Apache-2.0"
] | null | null | null | python/tensorflow/gru_test_unit.py | markliou/tool_scripts | d9f7d8f23edeb294dac1c9d29a2d7358751922b7 | [
"Apache-2.0"
] | 1 | 2017-08-04T00:44:56.000Z | 2017-08-04T00:44:56.000Z | import tensorflow as tf
import numpy as np
def main():
print(tf.__version__)
a = tf.zeros([3,30,125])
a1 = [
[i for i in range(np.random.randint(20))],
[i for i in range(np.random.randint(20))],
[i for i in range(np.random.randint(20))],
[i for i in range(... | 36.947368 | 133 | 0.667616 | 302 | 2,106 | 4.480132 | 0.334437 | 0.031042 | 0.018477 | 0.025868 | 0.337768 | 0.337768 | 0.337768 | 0.337768 | 0.179601 | 0.107169 | 0 | 0.024075 | 0.191358 | 2,106 | 57 | 134 | 36.947368 | 0.770405 | 0.259259 | 0 | 0.166667 | 0 | 0 | 0.081274 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0.055556 | 0.055556 | 0 | 0.083333 | 0.361111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a1acb9441077ffb6857c5d79b80bdff556c3086 | 5,707 | py | Python | py/102_aggregate.py | ti-ginkgo/Elo | d8f7a1072d453e875d687f22a466f582ff46d621 | [
"Apache-2.0"
] | null | null | null | py/102_aggregate.py | ti-ginkgo/Elo | d8f7a1072d453e875d687f22a466f582ff46d621 | [
"Apache-2.0"
] | null | null | null | py/102_aggregate.py | ti-ginkgo/Elo | d8f7a1072d453e875d687f22a466f582ff46d621 | [
"Apache-2.0"
] | 1 | 2019-08-30T13:43:08.000Z | 2019-08-30T13:43:08.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Dec 14 2018
@author: toshiki.ishikawa
"""
import os
import sys
import gc
import utils
import datetime
import numpy as np
import pandas as pd
from tqdm import tqdm
from sklearn.preprocessing import LabelEncoder
from multiprocessing import cpu_count, Po... | 43.564885 | 150 | 0.571754 | 568 | 5,707 | 5.480634 | 0.246479 | 0.289753 | 0.173466 | 0.109219 | 0.363636 | 0.26566 | 0.126566 | 0.099582 | 0.041439 | 0.023771 | 0 | 0.01296 | 0.161731 | 5,707 | 130 | 151 | 43.9 | 0.637751 | 0.160505 | 0 | 0 | 0 | 0 | 0.278547 | 0.063812 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011905 | false | 0 | 0.119048 | 0 | 0.142857 | 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 |
6a1b9ff9b78b2fcb20ce667aab60187455858f07 | 41,271 | py | Python | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_asr9k_lc_fca_oper.py | CiscoDevNet/ydk-py | 073731fea50694d0bc6cd8ebf10fec308dcc0aa9 | [
"ECL-2.0",
"Apache-2.0"
] | 177 | 2016-03-15T17:03:51.000Z | 2022-03-18T16:48:44.000Z | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_asr9k_lc_fca_oper.py | CiscoDevNet/ydk-py | 073731fea50694d0bc6cd8ebf10fec308dcc0aa9 | [
"ECL-2.0",
"Apache-2.0"
] | 18 | 2016-03-30T10:45:22.000Z | 2020-07-14T16:28:13.000Z | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_asr9k_lc_fca_oper.py | CiscoDevNet/ydk-py | 073731fea50694d0bc6cd8ebf10fec308dcc0aa9 | [
"ECL-2.0",
"Apache-2.0"
] | 85 | 2016-03-16T20:38:57.000Z | 2022-02-22T04:26:02.000Z | """ Cisco_IOS_XR_asr9k_lc_fca_oper
This module contains a collection of YANG definitions
for Cisco IOS\-XR asr9k\-lc\-fca package operational data.
This module contains definitions
for the following management objects\:
mpa\-internal\: Management LAN Operational data space
mpa\: mpa
Copyright (c) 2013\-2018 by ... | 38.463187 | 345 | 0.44879 | 3,721 | 41,271 | 4.643913 | 0.058318 | 0.035185 | 0.043981 | 0.04456 | 0.779572 | 0.706424 | 0.648843 | 0.623553 | 0.61059 | 0.584954 | 0 | 0.018116 | 0.450292 | 41,271 | 1,072 | 346 | 38.499067 | 0.743554 | 0.196482 | 0 | 0.599542 | 0 | 0.002288 | 0.130348 | 0.044166 | 0 | 0 | 0 | 0 | 0 | 1 | 0.100687 | false | 0 | 0.05492 | 0 | 0.281465 | 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 |
6a1eeb28f1081a2887265a317029a3ee7cd9a10a | 2,193 | py | Python | tr_sys/tr_ars/pubsub.py | andrewsu/Relay | 21a758959551534005b74f407a61cbd6319d0b67 | [
"MIT"
] | null | null | null | tr_sys/tr_ars/pubsub.py | andrewsu/Relay | 21a758959551534005b74f407a61cbd6319d0b67 | [
"MIT"
] | null | null | null | tr_sys/tr_ars/pubsub.py | andrewsu/Relay | 21a758959551534005b74f407a61cbd6319d0b67 | [
"MIT"
] | null | null | null | from django.core import serializers
import sys, logging, json, threading, queue, requests
from .models import Message
logger = logging.getLogger(__name__)
def send_message(actor, mesg, timeout=60):
url = actor.url()
logger.debug('sending message %s to %s...' % (mesg.id, url))
data = mesg.to_dict()
dat... | 34.265625 | 75 | 0.564523 | 268 | 2,193 | 4.503731 | 0.425373 | 0.037283 | 0.027341 | 0.03314 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00596 | 0.311446 | 2,193 | 63 | 76 | 34.809524 | 0.793377 | 0.076607 | 0 | 0 | 0 | 0 | 0.119802 | 0.020792 | 0 | 0 | 0 | 0.015873 | 0 | 1 | 0.076923 | false | 0.019231 | 0.057692 | 0 | 0.153846 | 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 |
6a213a79dae1edc17e0a7d5b1640eb21b801f9ed | 1,461 | py | Python | _/storage/engines/mongo.py | moertle/_.py | b1c602346daa9eccd2dd019e36e4c18106bcc2c4 | [
"MIT"
] | null | null | null | _/storage/engines/mongo.py | moertle/_.py | b1c602346daa9eccd2dd019e36e4c18106bcc2c4 | [
"MIT"
] | null | null | null | _/storage/engines/mongo.py | moertle/_.py | b1c602346daa9eccd2dd019e36e4c18106bcc2c4 | [
"MIT"
] | null | null | null | import sys
import logging
import _
from . import Storage
try:
import pymongo
import gridfs
import bson
import motor
except ImportError:
raise _.error('Missing motor (mongodb) module')
class Mongo(Storage):
def __init__(self, server, database, store=None):
self.mongo = pymongo.Conne... | 23.190476 | 59 | 0.612594 | 183 | 1,461 | 4.814208 | 0.327869 | 0.061294 | 0.037457 | 0.045403 | 0.113507 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000951 | 0.279945 | 1,461 | 63 | 60 | 23.190476 | 0.836502 | 0.067762 | 0 | 0.046512 | 0 | 0 | 0.022059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.186047 | false | 0 | 0.209302 | 0.116279 | 0.581395 | 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 |
6a238eea6e9726d2455d05377bf61a572a33e4ab | 1,527 | py | Python | clinic/migrations/0001_initial.py | H3adlock/sunshine_dental_clinic | 0b8c0b549a7f1c0866d73bf1b303638e8c5e69e0 | [
"MIT"
] | null | null | null | clinic/migrations/0001_initial.py | H3adlock/sunshine_dental_clinic | 0b8c0b549a7f1c0866d73bf1b303638e8c5e69e0 | [
"MIT"
] | null | null | null | clinic/migrations/0001_initial.py | H3adlock/sunshine_dental_clinic | 0b8c0b549a7f1c0866d73bf1b303638e8c5e69e0 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2020-10-28 06:58
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='MedicalHistory',
fields=[
... | 35.511628 | 114 | 0.56647 | 142 | 1,527 | 5.978873 | 0.429577 | 0.070671 | 0.084806 | 0.113074 | 0.374558 | 0.279152 | 0.279152 | 0.279152 | 0.279152 | 0.279152 | 0 | 0.025093 | 0.29535 | 1,527 | 42 | 115 | 36.357143 | 0.763941 | 0.02947 | 0 | 0.428571 | 1 | 0 | 0.101351 | 0.014189 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057143 | 0 | 0.171429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a2fc8a770c7426de42073f15adf087f8a3e68e8 | 1,030 | py | Python | example/write-8-bit.py | HarryKT/LCD-Display | 0c4d5dff74249ea4a77832e5af05204c784cd6fc | [
"MIT"
] | 1 | 2021-02-04T06:36:38.000Z | 2021-02-04T06:36:38.000Z | example/write-8-bit.py | HarryKT/LCD-Display | 0c4d5dff74249ea4a77832e5af05204c784cd6fc | [
"MIT"
] | null | null | null | example/write-8-bit.py | HarryKT/LCD-Display | 0c4d5dff74249ea4a77832e5af05204c784cd6fc | [
"MIT"
] | null | null | null | ## WRITE TO THE DISPLAY IN 8 BIT MODE
'''
Let’s start with a simple program that will display “Hello world!” on the LCD.
If you have a different sized LCD than the 16×2 I’m using (like a 20×4), change the number of columns and rows in line 2 of the code.
cols= sets the number of columns, and rows= sets the number of... | 49.047619 | 134 | 0.703883 | 195 | 1,030 | 3.692308 | 0.528205 | 0.033333 | 0.045833 | 0.05 | 0.172222 | 0.172222 | 0.102778 | 0.102778 | 0.102778 | 0.102778 | 0 | 0.046077 | 0.220388 | 1,030 | 20 | 135 | 51.5 | 0.84807 | 0.734951 | 0 | 0 | 0 | 0 | 0.046154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6a2fe27fae88504cd0093f67dd65536483e7d320 | 1,010 | py | Python | Chapter10/final/bookr/reviews/admin.py | PacktPublishing/Web-Development-Projects-with-Django | 531bc4d58d614888cc81b7fd6f8ec859f5a65217 | [
"MIT"
] | 97 | 2021-03-01T12:54:30.000Z | 2022-03-28T02:57:26.000Z | Chapter10/final/bookr/reviews/admin.py | PacktPublishing/Web-Development-Projects-with-Django | 531bc4d58d614888cc81b7fd6f8ec859f5a65217 | [
"MIT"
] | 81 | 2020-08-27T04:56:04.000Z | 2022-03-12T00:53:40.000Z | Chapter10/final/bookr/reviews/admin.py | PacktPublishing/Web-Development-Projects-with-Django | 531bc4d58d614888cc81b7fd6f8ec859f5a65217 | [
"MIT"
] | 163 | 2020-12-25T14:38:38.000Z | 2022-03-30T10:31:40.000Z | from django.contrib import admin
from reviews.models import (Publisher, Contributor, Book,
BookContributor, Review)
class BookAdmin(admin.ModelAdmin):
model = Book
list_display = ('title', 'isbn', 'get_publisher', 'publication_date')
search_fields = ['title', 'publisher__name']
def get_publisher(self... | 31.5625 | 72 | 0.722772 | 121 | 1,010 | 5.85124 | 0.429752 | 0.063559 | 0.120057 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001147 | 0.136634 | 1,010 | 31 | 73 | 32.580645 | 0.81078 | 0.10297 | 0 | 0 | 0 | 0 | 0.144781 | 0.024691 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.095238 | 0.047619 | 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 |
6a34f6e19bee3a696774ff26394f5233030b6055 | 1,705 | py | Python | granite/io.py | frenchtoast747/granite | 294da4c0ba18ed6d8b5a862ddf0ce5fb767101c0 | [
"MIT"
] | 1 | 2018-07-03T07:46:07.000Z | 2018-07-03T07:46:07.000Z | granite/io.py | frenchtoast747/granite | 294da4c0ba18ed6d8b5a862ddf0ce5fb767101c0 | [
"MIT"
] | 1 | 2021-10-18T23:08:02.000Z | 2021-10-18T23:08:02.000Z | granite/io.py | frenchtoast747/granite | 294da4c0ba18ed6d8b5a862ddf0ce5fb767101c0 | [
"MIT"
] | null | null | null | """
Provides utilities for handling I/O during test excution.
"""
from __future__ import absolute_import
import contextlib
import sys
try:
from io import StringIO
except ImportError:
from StringIO import StringIO
@contextlib.contextmanager
def capture_output():
"""
Captures both stdout and stderr an... | 22.434211 | 74 | 0.633431 | 192 | 1,705 | 5.515625 | 0.291667 | 0.042493 | 0.076487 | 0.096317 | 0.387158 | 0.253069 | 0.253069 | 0.173749 | 0.173749 | 0 | 0 | 0 | 0.282111 | 1,705 | 75 | 75 | 22.733333 | 0.865196 | 0.573607 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.285714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a381faf91b9a86f71bed81ab57363f620bec187 | 954 | py | Python | data-api/EDR/templates/parameter_map.py | ShaneMill1/NCPP_EDR_API | 063aee887a4501ac1435356723083bcbaa5994c9 | [
"MIT"
] | null | null | null | data-api/EDR/templates/parameter_map.py | ShaneMill1/NCPP_EDR_API | 063aee887a4501ac1435356723083bcbaa5994c9 | [
"MIT"
] | null | null | null | data-api/EDR/templates/parameter_map.py | ShaneMill1/NCPP_EDR_API | 063aee887a4501ac1435356723083bcbaa5994c9 | [
"MIT"
] | null | null | null | template = """"{pName}": {
"type" : "Parameter",
"description": {
"en": "{pDescription}"
},
"unit" : {
"label": {
"en": "{unitLabel}"
},
"symbol": {
"value": "1",
"type": "http://www.opengis.net/def/uom/UCUM/"
}
},
... | 19.469388 | 56 | 0.320755 | 60 | 954 | 5.083333 | 0.566667 | 0.091803 | 0.157377 | 0.170492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00409 | 0.487421 | 954 | 48 | 57 | 19.875 | 0.619632 | 0 | 0 | 0.363636 | 0 | 0 | 0.578616 | 0.025157 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0 | 0 | 0.045455 | 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 |
6a39900a01669d7da9c5b237bad53f6c76a5ac86 | 1,165 | py | Python | pytd/pytdutils/pytdout/textblock.py | perfect-less/Python-YouTube-Downloader | 2a4d2eeebfda42339614938e5c65fd86615e87f7 | [
"Unlicense"
] | 2 | 2022-03-07T06:46:32.000Z | 2022-03-07T15:22:02.000Z | pytd/pytdutils/pytdout/textblock.py | perfect-less/Python-YouTube-Downloader | 2a4d2eeebfda42339614938e5c65fd86615e87f7 | [
"Unlicense"
] | null | null | null | pytd/pytdutils/pytdout/textblock.py | perfect-less/Python-YouTube-Downloader | 2a4d2eeebfda42339614938e5c65fd86615e87f7 | [
"Unlicense"
] | null | null | null | import sys
class TextBlock:
def __init__(self, text:str = """ Place Holder Text """, static: bool = True) -> None:
self.text = text
self.static = static
self.lines = self.countLines ()
def newText(self, new_text = """ New text place holder """):
self.text = new_text
s... | 23.3 | 91 | 0.582833 | 143 | 1,165 | 4.594406 | 0.314685 | 0.085236 | 0.073059 | 0.091324 | 0.550989 | 0.438356 | 0.438356 | 0.356164 | 0.356164 | 0.356164 | 0 | 0.013889 | 0.258369 | 1,165 | 49 | 92 | 23.77551 | 0.746528 | 0 | 0 | 0.28125 | 0 | 0 | 0.099571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.03125 | 0.03125 | 0.46875 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a3a5b0f0f7c987ba2c8b941c3d1eacf61aae94d | 680 | py | Python | 2014/round_1a/full_binary_tree.py | laichunpongben/CodeJam | a048229bce1bc680dc85c8a69ef395a2f049732a | [
"Apache-2.0"
] | null | null | null | 2014/round_1a/full_binary_tree.py | laichunpongben/CodeJam | a048229bce1bc680dc85c8a69ef395a2f049732a | [
"Apache-2.0"
] | null | null | null | 2014/round_1a/full_binary_tree.py | laichunpongben/CodeJam | a048229bce1bc680dc85c8a69ef395a2f049732a | [
"Apache-2.0"
] | null | null | null |
import sys
from graph import Graph
def calc_min_deletions(n, edges):
graph = Graph()
for i in range(1, n + 1):
graph.add_vertex(i)
for edge in edges:
graph.add_edge(edge)
min_deletions = sys.maxint
for root in range(1, n + 1):
min_deletions = min(min_deletions, N - max_su... | 23.448276 | 81 | 0.630882 | 104 | 680 | 3.913462 | 0.375 | 0.14742 | 0.110565 | 0.044226 | 0.04914 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016427 | 0.283824 | 680 | 28 | 82 | 24.285714 | 0.819302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | 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 |
6a3ab979c82c7402776850bf6fc9fe3bd18a6f05 | 1,546 | py | Python | Ecommerce/serializers.py | recentfahim/smartbusinessbd | 61a74ae629f2c6e2317c41da23476c8780446e84 | [
"Apache-2.0"
] | null | null | null | Ecommerce/serializers.py | recentfahim/smartbusinessbd | 61a74ae629f2c6e2317c41da23476c8780446e84 | [
"Apache-2.0"
] | null | null | null | Ecommerce/serializers.py | recentfahim/smartbusinessbd | 61a74ae629f2c6e2317c41da23476c8780446e84 | [
"Apache-2.0"
] | null | null | null | from rest_framework import serializers
from .models import Partnership, EcommerceHasProduct, EcommerceSite, SellRecord
from users.serializers import UserSerializer
from inventory.serializers import ProductSerializer
from coreapi.serializers import CompanySerializer
class PartnershipSerializer(serializers.ModelSeriali... | 34.355556 | 84 | 0.745796 | 149 | 1,546 | 7.577181 | 0.295302 | 0.070859 | 0.106289 | 0.115146 | 0.292294 | 0.292294 | 0.279894 | 0.244464 | 0.180691 | 0 | 0 | 0 | 0.158473 | 1,546 | 44 | 85 | 35.136364 | 0.867794 | 0 | 0 | 0.322581 | 0 | 0 | 0.107443 | 0.013592 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.16129 | 0 | 0.741935 | 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 |
6a3b75ce738144201fe3023f1612cef47efc6890 | 208 | py | Python | CursoEmVideo/frase.py | Lucas-py/Python-Basico02 | 802187be3dc948a743c5883b1d56f52163f7450d | [
"MIT"
] | null | null | null | CursoEmVideo/frase.py | Lucas-py/Python-Basico02 | 802187be3dc948a743c5883b1d56f52163f7450d | [
"MIT"
] | null | null | null | CursoEmVideo/frase.py | Lucas-py/Python-Basico02 | 802187be3dc948a743c5883b1d56f52163f7450d | [
"MIT"
] | null | null | null | #UTF-8
frase = 'o lobo ama o bolo'
nova_frase= frase.replace(' ','')
poli = nova_frase[::-1]
resultado = 'e um polimetro' if nova_frase == poli else 'nao é um pli'
print(f'A frase {frase} {resultado}')
| 16 | 70 | 0.649038 | 35 | 208 | 3.771429 | 0.657143 | 0.204545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011765 | 0.182692 | 208 | 12 | 71 | 17.333333 | 0.764706 | 0.024038 | 0 | 0 | 0 | 0 | 0.353234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
6a3bcbfcbcd0901bc69ba06647ea97b1d6cbf991 | 9,166 | py | Python | venv/Lib/site-packages/mediapipe/framework/tool/field_data_pb2.py | HxnDev/Virtual-Drag-and-Drop-using-OpenCV | b637cf86e190e01cbae2482aff39a11cb04c924f | [
"MIT"
] | 7 | 2021-09-20T19:23:05.000Z | 2022-01-22T13:28:01.000Z | venv/Lib/site-packages/mediapipe/framework/tool/field_data_pb2.py | HxnDev/Virtual-Drag-and-Drop-using-OpenCV | b637cf86e190e01cbae2482aff39a11cb04c924f | [
"MIT"
] | null | null | null | venv/Lib/site-packages/mediapipe/framework/tool/field_data_pb2.py | HxnDev/Virtual-Drag-and-Drop-using-OpenCV | b637cf86e190e01cbae2482aff39a11cb04c924f | [
"MIT"
] | 4 | 2021-11-13T13:53:43.000Z | 2022-03-13T05:57:13.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mediapipe/framework/tool/field_data.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.protobuf... | 43.032864 | 719 | 0.755619 | 1,232 | 9,166 | 5.289773 | 0.136364 | 0.039589 | 0.05478 | 0.067669 | 0.69756 | 0.618229 | 0.533374 | 0.533374 | 0.514654 | 0.514654 | 0 | 0.039187 | 0.114663 | 9,166 | 212 | 720 | 43.235849 | 0.763894 | 0.032402 | 0 | 0.550265 | 1 | 0.005291 | 0.206274 | 0.137779 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.031746 | 0 | 0.031746 | 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 |
6a48fa312c9f16ac479bc9e0ccb8e252dbd4ed53 | 1,558 | py | Python | ex39_test.py | youknowone/learn-python3-thw-code-ko | 3b7fccaf3eed7427e437004cfe3c4908823f5e41 | [
"MIT"
] | 329 | 2017-02-25T15:06:58.000Z | 2022-03-31T18:22:21.000Z | ex39_test.py | dkorzhevin/learn-python3-thw-code | bea1e954d52ed845c3ade7ed87d7bef7de1651ad | [
"MIT"
] | 10 | 2017-02-26T13:55:38.000Z | 2020-02-20T06:10:26.000Z | ex39_test.py | dkorzhevin/learn-python3-thw-code | bea1e954d52ed845c3ade7ed87d7bef7de1651ad | [
"MIT"
] | 180 | 2017-02-25T20:42:03.000Z | 2022-02-09T05:21:40.000Z | import hashmap
# create a mapping of state to abbreviation
states = hashmap.new()
hashmap.set(states, 'Oregon', 'OR')
hashmap.set(states, 'Florida', 'FL')
hashmap.set(states, 'California', 'CA')
hashmap.set(states, 'New York', 'NY')
hashmap.set(states, 'Michigan', 'MI')
# create a basic set of states and some cities ... | 26.862069 | 71 | 0.688062 | 234 | 1,558 | 4.581197 | 0.324786 | 0.093284 | 0.074627 | 0.037313 | 0.188433 | 0.143657 | 0 | 0 | 0 | 0 | 0 | 0.011861 | 0.134146 | 1,558 | 57 | 72 | 27.333333 | 0.782802 | 0.210526 | 0 | 0.176471 | 0 | 0 | 0.366995 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029412 | 0 | 0.029412 | 0.411765 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
6a4b612d377179a03b1401ab7bb1d2f95fbf35f4 | 11,244 | py | Python | few_shot/datasets.py | dave4422/pufmalm25 | ec11abcca76abdcdbda55e055988b9987291dce4 | [
"MIT"
] | null | null | null | few_shot/datasets.py | dave4422/pufmalm25 | ec11abcca76abdcdbda55e055988b9987291dce4 | [
"MIT"
] | 4 | 2020-03-31T11:17:48.000Z | 2022-01-13T02:16:28.000Z | few_shot/datasets.py | dave4422/pufmalm25 | ec11abcca76abdcdbda55e055988b9987291dce4 | [
"MIT"
] | null | null | null | from torch.utils.data import Dataset
from config import DATA_PATH
import torch
from PIL import Image
from torchvision import transforms
from skimage import io
from tqdm import tqdm
import pandas as pd
import numpy as np
import os
from config import DATA_PATH
class OmniglotDataset(Dataset):
def __init__(self, sub... | 36.506494 | 129 | 0.621131 | 1,433 | 11,244 | 4.696441 | 0.150733 | 0.040119 | 0.026746 | 0.014264 | 0.709212 | 0.673106 | 0.657058 | 0.641456 | 0.601932 | 0.601932 | 0 | 0.007712 | 0.273479 | 11,244 | 307 | 130 | 36.625407 | 0.816134 | 0.225898 | 0 | 0.584795 | 0 | 0 | 0.090344 | 0.005736 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.064327 | 0.040936 | 0.274854 | 0.017544 | 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 |
dbe038518f03aaddd88f5e1ae5e4a7598f6bd5d0 | 775 | py | Python | openbook_posts/migrations/0017_post_uuid.py | TamaraAbells/okuna-api | f87d8e80d2f182c01dbce68155ded0078ee707e4 | [
"MIT"
] | 164 | 2019-07-29T17:59:06.000Z | 2022-03-19T21:36:01.000Z | openbook_posts/migrations/0017_post_uuid.py | TamaraAbells/okuna-api | f87d8e80d2f182c01dbce68155ded0078ee707e4 | [
"MIT"
] | 188 | 2019-03-16T09:53:25.000Z | 2019-07-25T14:57:24.000Z | openbook_posts/migrations/0017_post_uuid.py | TamaraAbells/okuna-api | f87d8e80d2f182c01dbce68155ded0078ee707e4 | [
"MIT"
] | 80 | 2019-08-03T17:49:08.000Z | 2022-02-28T16:56:33.000Z | # Generated by Django 2.1.5 on 2019-03-04 17:58
from django.db import migrations, models
import uuid
def create_uuid(apps, schema_editor):
Post = apps.get_model('openbook_posts', 'Post')
for post in Post.objects.all():
post.uuid = uuid.uuid4()
post.save()
class Migration(migrations.Migratio... | 24.21875 | 58 | 0.597419 | 87 | 775 | 5.195402 | 0.597701 | 0.044248 | 0.057522 | 0.075221 | 0.181416 | 0.181416 | 0.181416 | 0.181416 | 0 | 0 | 0 | 0.057658 | 0.283871 | 775 | 31 | 59 | 25 | 0.756757 | 0.058065 | 0 | 0.166667 | 1 | 0 | 0.097527 | 0.031593 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbe90fca269b49af5f32fbee54a678510d186a58 | 1,354 | py | Python | studies/jetbrains_academy/01-easy/p02-simple-chat-bot.py | alexander-colaneri/Python | fbc84a2818d8324b712014e1a5abfc01474e49ea | [
"MIT"
] | null | null | null | studies/jetbrains_academy/01-easy/p02-simple-chat-bot.py | alexander-colaneri/Python | fbc84a2818d8324b712014e1a5abfc01474e49ea | [
"MIT"
] | null | null | null | studies/jetbrains_academy/01-easy/p02-simple-chat-bot.py | alexander-colaneri/Python | fbc84a2818d8324b712014e1a5abfc01474e49ea | [
"MIT"
] | null | null | null | def greet(bot_name, birth_year):
print('Hello! My name is ' + bot_name + '.')
print('I was created in ' + birth_year + '.')
def remind_name():
print('Please, remind me your name.')
name = input()
print('What a great name you have, ' + name + '!')
def guess_age():
print('Let me guess your age... | 21.83871 | 83 | 0.574594 | 193 | 1,354 | 3.989637 | 0.471503 | 0.051948 | 0.023377 | 0.031169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03144 | 0.271787 | 1,354 | 61 | 84 | 22.196721 | 0.749493 | 0 | 0 | 0 | 0 | 0 | 0.372969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0 | 0 | 0.136364 | 0.409091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
dbe97b6d7c749fad5262a9ba12b973bbb86e41ca | 1,727 | py | Python | helpers.py | fedus/feduquiz | 836401f9196ce54596ea82a9f6bab6d038a2d339 | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | helpers.py | fedus/feduquiz | 836401f9196ce54596ea82a9f6bab6d038a2d339 | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | helpers.py | fedus/feduquiz | 836401f9196ce54596ea82a9f6bab6d038a2d339 | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import json
def get_verdict(score):
if score == 1: # 100 %
return "Perfect!"
elif 0.9 <= score < 1: # 90-99 %
return "Great!"
elif 0.6 <= score < 0.9: # 60-89 %
return "Not bad!"
elif 0.5 < score < 60: # 5... | 52.333333 | 751 | 0.5304 | 240 | 1,727 | 3.7875 | 0.520833 | 0.033003 | 0.015402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075458 | 0.209612 | 1,727 | 33 | 752 | 52.333333 | 0.590476 | 0.06022 | 0 | 0 | 0 | 0.035714 | 0.561686 | 0.436454 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.035714 | 0 | 0.464286 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbed9e936f14f4b039e004325ffcfb2bd72e37df | 7,519 | py | Python | tests/examples/collect_examples.py | afonit/bokeh | 37a9d6c81ed592d07effd0d3584befd0fc95b53c | [
"BSD-3-Clause"
] | null | null | null | tests/examples/collect_examples.py | afonit/bokeh | 37a9d6c81ed592d07effd0d3584befd0fc95b53c | [
"BSD-3-Clause"
] | null | null | null | tests/examples/collect_examples.py | afonit/bokeh | 37a9d6c81ed592d07effd0d3584befd0fc95b53c | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import, print_function
import os
import yaml
import requests
from os.path import join, dirname, basename, relpath, splitext, isfile
from ..plugins.constants import __version__, job_id
from ..plugins.upload_to_s3 import S3_URL, upload_file_to_s3
from ..plugins.utils import trace, gre... | 29.956175 | 122 | 0.605134 | 1,044 | 7,519 | 4.1159 | 0.140805 | 0.071678 | 0.042355 | 0.035374 | 0.34047 | 0.281359 | 0.226204 | 0.154759 | 0.112637 | 0.112637 | 0 | 0.006175 | 0.289267 | 7,519 | 250 | 123 | 30.076 | 0.797904 | 0.039899 | 0 | 0.210526 | 0 | 0 | 0.039373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178947 | false | 0 | 0.042105 | 0.147368 | 0.452632 | 0.005263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
dbf5c7e72ae9371180ce6de0a24291a7d9033f2d | 6,864 | py | Python | lang/russian.py | Levak/RoleKeeper | 3ab9cc75681932714ebce5dd18185115f2c9270a | [
"MIT"
] | 5 | 2018-03-19T14:52:36.000Z | 2022-02-05T17:37:05.000Z | lang/russian.py | Levak/RoleKeeper | 3ab9cc75681932714ebce5dd18185115f2c9270a | [
"MIT"
] | 5 | 2020-11-15T14:22:45.000Z | 2022-03-12T00:51:04.000Z | lang/russian.py | Levak/RoleKeeper | 3ab9cc75681932714ebce5dd18185115f2c9270a | [
"MIT"
] | 2 | 2018-01-24T15:30:27.000Z | 2020-09-12T21:03:44.000Z | # The MIT License (MIT)
# Copyright (c) 2017 Levak Borok <levak92@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights t... | 50.10219 | 336 | 0.742279 | 954 | 6,864 | 5.247379 | 0.373166 | 0.015981 | 0.01698 | 0.01678 | 0.494007 | 0.479624 | 0.468837 | 0.468837 | 0.462245 | 0.462245 | 0 | 0.007652 | 0.162296 | 6,864 | 136 | 337 | 50.470588 | 0.862957 | 0.159237 | 0 | 0.365591 | 0 | 0.182796 | 0.890609 | 0.031652 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.010753 | 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 |
e00395c86f442c03a01c2f32da317c9b4963dbdb | 244 | py | Python | cemu/__main__.py | thelumberjhack/cemu | 3365073eeb7c7f8433f21126f2eacd87883b9a21 | [
"MIT"
] | null | null | null | cemu/__main__.py | thelumberjhack/cemu | 3365073eeb7c7f8433f21126f2eacd87883b9a21 | [
"MIT"
] | null | null | null | cemu/__main__.py | thelumberjhack/cemu | 3365073eeb7c7f8433f21126f2eacd87883b9a21 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import pathlib
import sys
def main():
from cemu.core import Cemu
Cemu(sys.argv)
if __name__ == "__main__":
path = pathlib.Path(__file__).absolute().parent.parent
sys.path.append(str(path))
main()
| 15.25 | 58 | 0.668033 | 34 | 244 | 4.441176 | 0.617647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005076 | 0.192623 | 244 | 15 | 59 | 16.266667 | 0.761421 | 0.086066 | 0 | 0 | 0 | 0 | 0.036036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e00497e2de55e627f12eb5f12e544337cf4ac80e | 1,244 | py | Python | StreamPy/TestExamplesListToStreams/OLD_EXAMPLES/example_single_output_source_stateful.py | AnomalyInc/StreamPy | 94abca276b2857de48259f4f42ef95efbdf5f6d1 | [
"Apache-2.0"
] | 2 | 2017-04-27T11:04:27.000Z | 2019-02-07T21:03:32.000Z | StreamPy/TestExamplesListToStreams/OLD_EXAMPLES/example_single_output_source_stateful.py | StreamPy/StreamPy | 94abca276b2857de48259f4f42ef95efbdf5f6d1 | [
"Apache-2.0"
] | null | null | null | StreamPy/TestExamplesListToStreams/OLD_EXAMPLES/example_single_output_source_stateful.py | StreamPy/StreamPy | 94abca276b2857de48259f4f42ef95efbdf5f6d1 | [
"Apache-2.0"
] | null | null | null | """This module contains examples of the stateful single stream source
"""
if __name__ == '__main__':
if __package__ is None:
import sys
from os import path
sys.path.append( path.dirname( path.dirname( path.abspath(__file__) ) ) )
from Agent import *
from ListOperators import stream_func
... | 26.468085 | 81 | 0.666399 | 167 | 1,244 | 4.562874 | 0.353293 | 0.065617 | 0.086614 | 0.094488 | 0.300525 | 0.300525 | 0.300525 | 0.170604 | 0.170604 | 0.170604 | 0 | 0.009494 | 0.237942 | 1,244 | 46 | 82 | 27.043478 | 0.794304 | 0.039389 | 0 | 0.212121 | 0 | 0 | 0.075961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.121212 | null | null | 0.242424 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e0052b79298cba08a6c3790d2bf78367e4ee6cb5 | 2,172 | py | Python | ilmulti/translator/pretrained.py | simplermachines/ilmulti | b67d61251a77b5611c927d3af46e76a1541c898c | [
"MIT"
] | null | null | null | ilmulti/translator/pretrained.py | simplermachines/ilmulti | b67d61251a77b5611c927d3af46e76a1541c898c | [
"MIT"
] | null | null | null | ilmulti/translator/pretrained.py | simplermachines/ilmulti | b67d61251a77b5611c927d3af46e76a1541c898c | [
"MIT"
] | null | null | null |
"""
This file creates models already trained and available.
"""
import os
import sys
PRETRAINED_CONFIG = {
'mm-all': {
'model': 'mm-all/checkpoint_last.pt',
'tokenizer': 'ilmulti-v0',
'segmenter': 'pattern',
},
'mm-all-iter1': {
'model': 'mm-all-iter1/checkpoint_last.pt'... | 30.591549 | 72 | 0.475138 | 190 | 2,172 | 5.315789 | 0.247368 | 0.049505 | 0.110891 | 0.173267 | 0.376238 | 0.344554 | 0.344554 | 0.344554 | 0.344554 | 0.285149 | 0 | 0.014427 | 0.393646 | 2,172 | 70 | 73 | 31.028571 | 0.752468 | 0.025322 | 0 | 0.25 | 0 | 0 | 0.289374 | 0.102941 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.115385 | 0.019231 | 0.192308 | 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 |
e00bbd12234956d1980c6fcbcba46b958938a679 | 584 | py | Python | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/cli.py | akhanf/cookiecutter-snakebids | ea28c14891fa6bbc86cb219805c62499fae9e5b5 | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/cli.py | akhanf/cookiecutter-snakebids | ea28c14891fa6bbc86cb219805c62499fae9e5b5 | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/cli.py | akhanf/cookiecutter-snakebids | ea28c14891fa6bbc86cb219805c62499fae9e5b5 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
"""Console script for {{cookiecutter.project_slug}}."""
import os
import sys
from snakebids.app import SnakeBidsApp
def get_parser():
"""Exposes parser for sphinx doc generation, cwd is the docs dir"""
app = SnakeBidsApp('../{{cookiecutter.project_slug}}', skip_parse_args=True)
re... | 23.36 | 80 | 0.691781 | 76 | 584 | 5.065789 | 0.631579 | 0.148052 | 0.179221 | 0.145455 | 0.202597 | 0.202597 | 0 | 0 | 0 | 0 | 0 | 0.00409 | 0.162671 | 584 | 24 | 81 | 24.333333 | 0.783231 | 0.342466 | 0 | 0 | 0 | 0 | 0.108992 | 0.087193 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e0142973f389e1819bc5c10198dd1a9dd1780ccc | 1,170 | py | Python | netbox/ipam/migrations/0035_drop_ip_family.py | aslafy-z/netbox | a5512dd4c46c005df8752fc330c1382ac22b31ea | [
"Apache-2.0"
] | 2 | 2021-07-08T03:58:12.000Z | 2022-02-11T21:50:46.000Z | netbox/ipam/migrations/0035_drop_ip_family.py | emersonfelipesp/netbox | fecca5ad83fb6b48a2f15982dfd3242653f105f9 | [
"Apache-2.0"
] | 25 | 2019-09-17T19:40:50.000Z | 2022-03-11T04:01:55.000Z | netbox/ipam/migrations/0035_drop_ip_family.py | emersonfelipesp/netbox | fecca5ad83fb6b48a2f15982dfd3242653f105f9 | [
"Apache-2.0"
] | 1 | 2018-12-05T12:03:21.000Z | 2018-12-05T12:03:21.000Z | # Generated by Django 2.2.9 on 2020-02-14 19:36
from django.db import migrations
import django.db.models.expressions
class Migration(migrations.Migration):
dependencies = [
('ipam', '0034_fix_ipaddress_status_dhcp'),
]
operations = [
migrations.AlterModelOptions(
name='aggre... | 30 | 181 | 0.57265 | 106 | 1,170 | 6.198113 | 0.462264 | 0.048706 | 0.063927 | 0.114155 | 0.121766 | 0.121766 | 0 | 0 | 0 | 0 | 0 | 0.022754 | 0.286325 | 1,170 | 38 | 182 | 30.789474 | 0.764072 | 0.038462 | 0 | 0.46875 | 1 | 0 | 0.206589 | 0.026714 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.15625 | 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 |
e01cd2c3d173577e0bd8e35a54c7b0cece6fa3b7 | 11,028 | py | Python | buzzard/_dataset_back_scheduler.py | ashnair1/buzzard | f9a9c2ac2929d997b1643f4730c67e3db45e181e | [
"Apache-2.0"
] | null | null | null | buzzard/_dataset_back_scheduler.py | ashnair1/buzzard | f9a9c2ac2929d997b1643f4730c67e3db45e181e | [
"Apache-2.0"
] | null | null | null | buzzard/_dataset_back_scheduler.py | ashnair1/buzzard | f9a9c2ac2929d997b1643f4730c67e3db45e181e | [
"Apache-2.0"
] | null | null | null | import collections
import time
import threading
import datetime
from buzzard._actors.top_level import ActorTopLevel
from buzzard._actors.message import Msg, DroppableMsg, AgingMsg
from buzzard._debug_observers_manager import DebugObserversManager
VERBOSE = 0
class BackDatasetSchedulerMixin:
"""TODO: docstring"""... | 41.458647 | 116 | 0.504443 | 1,150 | 11,028 | 4.553043 | 0.226087 | 0.024064 | 0.02521 | 0.03094 | 0.26356 | 0.210084 | 0.15699 | 0.15699 | 0.109244 | 0.078304 | 0 | 0.008732 | 0.408052 | 11,028 | 265 | 117 | 41.615094 | 0.793352 | 0.162768 | 0 | 0.246154 | 0 | 0 | 0.051419 | 0.01441 | 0 | 0 | 0 | 0.011321 | 0.015385 | 1 | 0.05641 | false | 0.010256 | 0.035897 | 0 | 0.128205 | 0.015385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
e01fb5a546eccdb703cedaa5a3da04cc001adff4 | 1,622 | py | Python | storage/tests/api/phone_model/test_views.py | SashaPoraiko/academy-storage | 387f236971085fde605c2a12b53b1734a925759a | [
"Unlicense",
"MIT"
] | null | null | null | storage/tests/api/phone_model/test_views.py | SashaPoraiko/academy-storage | 387f236971085fde605c2a12b53b1734a925759a | [
"Unlicense",
"MIT"
] | 7 | 2020-06-05T23:54:27.000Z | 2022-02-10T10:36:29.000Z | storage/tests/api/phone_model/test_views.py | SashaPoraiko/academy-storage | 387f236971085fde605c2a12b53b1734a925759a | [
"Unlicense",
"MIT"
] | null | null | null | from django.contrib.auth.hashers import make_password
from django.contrib.auth.models import User, Group
from rest_framework.test import APITestCase
from storage.models import PhoneModel
class PhoneModelListViewTest(APITestCase):
@classmethod
def setUpTestData(cls):
number_of_phone_models = 13
... | 36.044444 | 91 | 0.689889 | 207 | 1,622 | 5.246377 | 0.371981 | 0.096685 | 0.087477 | 0.052486 | 0.453959 | 0.453959 | 0.453959 | 0.453959 | 0.453959 | 0.453959 | 0 | 0.019772 | 0.189273 | 1,622 | 44 | 92 | 36.863636 | 0.806084 | 0 | 0 | 0.363636 | 0 | 0 | 0.08508 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.121212 | false | 0.090909 | 0.121212 | 0 | 0.272727 | 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 |
e0231a8ce4ae045775b38ad00a5a0e1a66f78fc6 | 1,387 | py | Python | setup.py | fadhilmch/fredapi | a964ea8218ddb3ddf1317f90e58f55a56386ca1e | [
"Apache-2.0"
] | 492 | 2015-02-04T16:52:47.000Z | 2022-03-31T11:42:53.000Z | setup.py | fadhilmch/fredapi | a964ea8218ddb3ddf1317f90e58f55a56386ca1e | [
"Apache-2.0"
] | 42 | 2015-05-13T13:54:00.000Z | 2022-03-24T02:18:13.000Z | setup.py | fadhilmch/fredapi | a964ea8218ddb3ddf1317f90e58f55a56386ca1e | [
"Apache-2.0"
] | 131 | 2015-01-27T07:33:57.000Z | 2022-03-11T16:24:54.000Z | #!/usr/bin/env python
from setuptools import setup
version_str = open('fredapi/version.py').read().strip().split('=')[-1].strip(" '")
requires = ['pandas']
# README = open('README.rst').read()
# CHANGELOG = open('docs/changelog.rst').read()
LONG_DESCRIPTION = open('DESCRIPTION.rst').read()
setup(
name="fredapi",... | 34.675 | 89 | 0.622927 | 146 | 1,387 | 5.856164 | 0.547945 | 0.177778 | 0.233918 | 0.121637 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012844 | 0.214131 | 1,387 | 39 | 90 | 35.564103 | 0.77156 | 0.085076 | 0 | 0 | 0 | 0 | 0.550988 | 0.018182 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.03125 | 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 |
e027744cf99ea515ba89e709a4084f6c82caabf8 | 2,470 | py | Python | bootstrap.py | praveen-elastic/workplace-search-sharepoint16-connector | 929da779d73aabc3ed6e4e5cc90bec1ca031fcc7 | [
"Apache-2.0"
] | null | null | null | bootstrap.py | praveen-elastic/workplace-search-sharepoint16-connector | 929da779d73aabc3ed6e4e5cc90bec1ca031fcc7 | [
"Apache-2.0"
] | null | null | null | bootstrap.py | praveen-elastic/workplace-search-sharepoint16-connector | 929da779d73aabc3ed6e4e5cc90bec1ca031fcc7 | [
"Apache-2.0"
] | null | null | null | from elastic_enterprise_search import WorkplaceSearch
import argparse
import getpass
from configuration import Configuration
import logger_manager as log
logger = log.setup_logging("sharepoint_connector_bootstrap")
def main():
config = Configuration("sharepoint_connector_config.yml", logger=logger)
data = con... | 37.424242 | 137 | 0.547368 | 238 | 2,470 | 5.487395 | 0.436975 | 0.079632 | 0.045942 | 0.047473 | 0.087289 | 0.087289 | 0.087289 | 0.087289 | 0.087289 | 0.087289 | 0 | 0.004884 | 0.336842 | 2,470 | 65 | 138 | 38 | 0.79243 | 0 | 0 | 0.033898 | 0 | 0.016949 | 0.302429 | 0.066397 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0.050847 | 0.084746 | 0 | 0.101695 | 0.033898 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e02cc1e002a20a62d587aeee7d156c6c33e863e4 | 2,008 | py | Python | burl/redirects/models.py | wryfi/burl | 664878ce9a31695456be89c8e10e8bb612074ef6 | [
"MIT"
] | 1 | 2021-02-07T21:48:59.000Z | 2021-02-07T21:48:59.000Z | burl/redirects/models.py | wryfi/burl | 664878ce9a31695456be89c8e10e8bb612074ef6 | [
"MIT"
] | 16 | 2020-03-24T16:53:30.000Z | 2022-03-15T17:46:59.000Z | burl/redirects/models.py | wryfi/burl | 664878ce9a31695456be89c8e10e8bb612074ef6 | [
"MIT"
] | null | null | null | from django.db.models.manager import BaseManager
from django.db.utils import IntegrityError
from django.core.exceptions import ValidationError
from django.contrib.auth import get_user_model
from django.db import models, transaction
from django.conf import settings
from burl.redirects import utils
from burl.redirects.d... | 37.886792 | 110 | 0.662849 | 242 | 2,008 | 5.371901 | 0.400826 | 0.049231 | 0.027692 | 0.027692 | 0.124615 | 0.090769 | 0.050769 | 0 | 0 | 0 | 0 | 0.007256 | 0.24502 | 2,008 | 52 | 111 | 38.615385 | 0.849604 | 0 | 0 | 0.136364 | 0 | 0 | 0.073207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0.022727 | 0.181818 | 0.022727 | 0.568182 | 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 |
e0302d47228cfadf8e83cb34a0eb577ea33f1aac | 694 | py | Python | Lab3_SetsDicts/_7_eval_function.py | marianfx/python-labs | 7066db410ad19cababb7b66745641e65a28ccd98 | [
"MIT"
] | null | null | null | Lab3_SetsDicts/_7_eval_function.py | marianfx/python-labs | 7066db410ad19cababb7b66745641e65a28ccd98 | [
"MIT"
] | null | null | null | Lab3_SetsDicts/_7_eval_function.py | marianfx/python-labs | 7066db410ad19cababb7b66745641e65a28ccd98 | [
"MIT"
] | null | null | null |
global_dict = {
"print_all": lambda *a, **k: print(a, k),
"print_args_commas": lambda *a, **k: print(a, k, sep=", "),
"print_only_args": lambda *a, **k: print(a),
"print_only_kwargs": lambda *a, **k: print(k)
}
def apply_function(operator, *a, **b):
"""Sa se construiasca o fun... | 30.173913 | 76 | 0.631124 | 100 | 694 | 4.17 | 0.52 | 0.028777 | 0.083933 | 0.1247 | 0.105516 | 0.071942 | 0 | 0 | 0 | 0 | 0 | 0.007463 | 0.227666 | 694 | 22 | 77 | 31.545455 | 0.770522 | 0.354467 | 0 | 0 | 0 | 0 | 0.181604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 0.454545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
e0328fec227c103a0cdad103e98c23287191da91 | 1,618 | py | Python | saleor/plugins/migrations/0002_auto_20200417_0335.py | fairhopeweb/saleor | 9ac6c22652d46ba65a5b894da5f1ba5bec48c019 | [
"CC-BY-4.0"
] | 15,337 | 2015-01-12T02:11:52.000Z | 2021-10-05T19:19:29.000Z | saleor/plugins/migrations/0002_auto_20200417_0335.py | fairhopeweb/saleor | 9ac6c22652d46ba65a5b894da5f1ba5bec48c019 | [
"CC-BY-4.0"
] | 7,486 | 2015-02-11T10:52:13.000Z | 2021-10-06T09:37:15.000Z | saleor/plugins/migrations/0002_auto_20200417_0335.py | aminziadna/saleor | 2e78fb5bcf8b83a6278af02551a104cfa555a1fb | [
"CC-BY-4.0"
] | 5,864 | 2015-01-16T14:52:54.000Z | 2021-10-05T23:01:15.000Z | # Generated by Django 3.0.5 on 2020-04-17 08:35
from django.conf import settings
from django.db import migrations, models
from django.utils.module_loading import import_string
def get_plugin(plugins, plugin_name):
for plugin in plugins:
if plugin.PLUGIN_NAME == plugin_name:
return plugin
... | 29.418182 | 74 | 0.660692 | 168 | 1,618 | 6.178571 | 0.404762 | 0.057803 | 0.080925 | 0.092486 | 0.231214 | 0.231214 | 0.119461 | 0.119461 | 0 | 0 | 0 | 0.022932 | 0.245365 | 1,618 | 54 | 75 | 29.962963 | 0.827191 | 0.027812 | 0 | 0.238095 | 1 | 0 | 0.091025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.095238 | 0 | 0.261905 | 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 |
e0333904a16d34b9f96c7c9a61375dd6135457d9 | 6,319 | py | Python | codegen/scripts/build_dbc.py | Citrusboa/firmware_xiv | 4379cefae900fd67bd14d930da6b8acfce625176 | [
"MIT"
] | 14 | 2019-11-12T00:11:29.000Z | 2021-12-13T05:32:41.000Z | codegen/scripts/build_dbc.py | 123Logan321/firmware_xiv | 14468d55753ad62f8a63a9289511e72131443042 | [
"MIT"
] | 191 | 2019-11-12T05:36:58.000Z | 2022-03-21T19:54:46.000Z | codegen/scripts/build_dbc.py | 123Logan321/firmware_xiv | 14468d55753ad62f8a63a9289511e72131443042 | [
"MIT"
] | 14 | 2020-06-06T14:43:14.000Z | 2022-03-08T00:48:11.000Z | """
This script generates a DBC file from our custom protobufs in order to make the
transition to DBCs more seamless. This is a temporary measure so we can
continue to use codegen-tooling, while switching over to using DBC decoders so
we do not have to maintain the dump scripts.
The idea is that we will eventually swi... | 34.71978 | 87 | 0.576041 | 806 | 6,319 | 4.33995 | 0.295285 | 0.020011 | 0.038022 | 0.017153 | 0.184105 | 0.142939 | 0.130932 | 0.100057 | 0.100057 | 0.072613 | 0 | 0.016787 | 0.340085 | 6,319 | 181 | 88 | 34.911602 | 0.822062 | 0.305112 | 0 | 0.190476 | 1 | 0 | 0.031609 | 0.004917 | 0 | 0 | 0.002107 | 0 | 0 | 1 | 0.038095 | false | 0 | 0.028571 | 0 | 0.104762 | 0.019048 | 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 |
e03398b632bc0ddbcb3983ba5de0fb4145e078cf | 277 | py | Python | blackbox_tests/test_keras_train/serve_model_from_savdedmodel.py | shfshf/seq2annotation | d4bf88a869631b43fa2974c2ffa1c5dd6a7623ed | [
"Apache-2.0"
] | 90 | 2018-11-29T07:05:16.000Z | 2021-11-22T11:32:58.000Z | blackbox_tests/test_keras_train/serve_model_from_savdedmodel.py | shfshf/seq2annotation | d4bf88a869631b43fa2974c2ffa1c5dd6a7623ed | [
"Apache-2.0"
] | 50 | 2019-06-27T07:11:18.000Z | 2022-02-10T00:01:02.000Z | blackbox_tests/test_keras_train/serve_model_from_savdedmodel.py | lanSeFangZhou/seq2annotation | a824520d46f0b3d70268fae422976a5ce1b3f4ce | [
"Apache-2.0"
] | 23 | 2019-01-03T14:57:15.000Z | 2022-03-08T07:50:33.000Z | from seq2annotation.server.tensorflow_keras_savedmodel_inference import Inference
inference = Inference('./results/saved_model', './results/h5_model/tag_lookup_table.json', './results/h5_model/vocabulary_lookup_table.json')
result = inference.infer("看一下上海的天气。")
print(result) | 46.166667 | 141 | 0.823105 | 34 | 277 | 6.411765 | 0.617647 | 0.165138 | 0.12844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011407 | 0.050542 | 277 | 6 | 142 | 46.166667 | 0.81749 | 0 | 0 | 0 | 0 | 0 | 0.420863 | 0.388489 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e03529d7d01e54ed50c65d0ea60ce26f5fa05c14 | 20,003 | py | Python | docker/dockerfile/xfdsend/Dscapy/layers/l2.py | mytliulei/boundless | e2c756e80f838cdb49914a5967a2a9a30a04664f | [
"Apache-2.0"
] | 9 | 2015-02-10T08:22:00.000Z | 2021-07-05T15:12:41.000Z | docker/dockerfile/xfdsend/Dscapy/layers/l2.py | mytliulei/boundless | e2c756e80f838cdb49914a5967a2a9a30a04664f | [
"Apache-2.0"
] | null | null | null | docker/dockerfile/xfdsend/Dscapy/layers/l2.py | mytliulei/boundless | e2c756e80f838cdb49914a5967a2a9a30a04664f | [
"Apache-2.0"
] | 6 | 2016-04-06T09:26:43.000Z | 2021-06-15T04:47:47.000Z | ## This file is part of Scapy
## See http://www.secdev.org/projects/scapy for more informations
## Copyright (C) Philippe Biondi <phil@secdev.org>
## This program is published under a GPLv2 license
import os,struct,time
from scapy.base_classes import Net
from scapy.config import conf
from scapy.packet import *
from sc... | 34.547496 | 181 | 0.538869 | 2,376 | 20,003 | 4.449916 | 0.179293 | 0.023645 | 0.008512 | 0.008323 | 0.369715 | 0.291876 | 0.243829 | 0.230493 | 0.230493 | 0.230493 | 0 | 0.044676 | 0.328601 | 20,003 | 578 | 182 | 34.607266 | 0.742591 | 0.020747 | 0 | 0.313725 | 0 | 0.002179 | 0.083937 | 0.001216 | 0 | 0 | 0.006343 | 0 | 0 | 0 | null | null | 0.006536 | 0.019608 | null | null | 0.017429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e0377b51f327b0065f8003c7bbccda26c0ab875a | 10,493 | py | Python | postgresqleu/confreg/migrations/0075_messaging.py | Saurav-Shrivastav/pgeu-system | 0158c8a28a77ff0aa4eac59ac0a39ad0d8b05106 | [
"MIT"
] | 11 | 2020-08-20T11:16:02.000Z | 2022-03-12T23:25:04.000Z | postgresqleu/confreg/migrations/0075_messaging.py | gkokolatos/pgeu-system | b8911c75f5add5e781410f13ba7cc448fa4ed339 | [
"MIT"
] | 71 | 2019-11-18T10:11:22.000Z | 2022-03-27T16:12:57.000Z | postgresqleu/confreg/migrations/0075_messaging.py | gkokolatos/pgeu-system | b8911c75f5add5e781410f13ba7cc448fa4ed339 | [
"MIT"
] | 18 | 2019-11-18T09:56:31.000Z | 2022-01-08T03:16:43.000Z | # Generated by Django 2.2.11 on 2020-04-20 12:17
import django.contrib.postgres.fields.jsonb
from django.contrib.postgres.indexes import GinIndex
import django.core.serializers.json
from django.db import migrations, models
from django.conf import settings
def migrate_news_twitter(apps, schema_editor):
if getattr... | 48.578704 | 328 | 0.634995 | 982 | 10,493 | 6.63442 | 0.223014 | 0.023484 | 0.025787 | 0.03208 | 0.463546 | 0.420568 | 0.304068 | 0.213968 | 0.190944 | 0.130775 | 0 | 0.00554 | 0.243114 | 10,493 | 215 | 329 | 48.804651 | 0.814782 | 0.01906 | 0 | 0.410891 | 1 | 0.019802 | 0.279425 | 0.092623 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009901 | false | 0 | 0.024752 | 0 | 0.049505 | 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 |
e03b6238ee78c8852add4d6ad52505d7bb60a465 | 725 | py | Python | kitsune/search/management/commands/essearch.py | navgurukul-shivani18/kitsune | a7cf49ab1bfcf4e770938116968824b2b0fa5bb1 | [
"BSD-3-Clause"
] | 4 | 2021-05-17T11:38:08.000Z | 2021-08-19T06:42:39.000Z | kitsune/search/management/commands/essearch.py | navgurukul-shivani18/kitsune | a7cf49ab1bfcf4e770938116968824b2b0fa5bb1 | [
"BSD-3-Clause"
] | 8 | 2020-06-05T18:42:14.000Z | 2022-03-11T23:26:51.000Z | kitsune/search/management/commands/essearch.py | navgurukul-shivani18/kitsune | a7cf49ab1bfcf4e770938116968824b2b0fa5bb1 | [
"BSD-3-Clause"
] | 3 | 2020-06-14T06:59:46.000Z | 2020-06-15T14:45:56.000Z | from optparse import make_option
from django.core.management.base import BaseCommand, CommandError
from kitsune.search.es_utils import es_search_cmd
from kitsune.search.utils import FakeLogger
class Command(BaseCommand):
help = 'Does a front-page search for given query'
option_list = BaseCommand.option_list... | 31.521739 | 72 | 0.677241 | 95 | 725 | 5.073684 | 0.578947 | 0.041494 | 0.070539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001773 | 0.222069 | 725 | 22 | 73 | 32.954545 | 0.852837 | 0 | 0 | 0 | 0 | 0 | 0.188966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.266667 | 0 | 0.533333 | 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 |
e03f927ceb00dcca4da7e5fedd740108f32574fd | 2,218 | py | Python | tasks/race/finetune.py | adammoody/Megatron-DeepSpeed | 972211163608818fe9e5ba821246f18d0a5dc264 | [
"MIT"
] | 2,869 | 2019-03-22T04:45:32.000Z | 2022-03-31T14:47:42.000Z | tasks/race/finetune.py | adammoody/Megatron-DeepSpeed | 972211163608818fe9e5ba821246f18d0a5dc264 | [
"MIT"
] | 161 | 2019-04-23T21:00:16.000Z | 2022-03-27T15:33:17.000Z | tasks/race/finetune.py | adammoody/Megatron-DeepSpeed | 972211163608818fe9e5ba821246f18d0a5dc264 | [
"MIT"
] | 567 | 2019-04-05T22:17:47.000Z | 2022-03-31T04:45:25.000Z | # coding=utf-8
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless re... | 32.617647 | 74 | 0.716411 | 281 | 2,218 | 5.466192 | 0.451957 | 0.039063 | 0.046875 | 0.042969 | 0.097656 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0.007328 | 0.20018 | 2,218 | 67 | 75 | 33.104478 | 0.858512 | 0.312444 | 0 | 0.1875 | 0 | 0 | 0.042924 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15625 | false | 0 | 0.25 | 0 | 0.53125 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e043317ad055b78b02ab480b22679fc3ec1283e8 | 540 | py | Python | example/1.6.py | anhlt59/Asyncio_crawl | 8fb4ecd695384823fe8716a4f6775836b9e25e0d | [
"MIT"
] | null | null | null | example/1.6.py | anhlt59/Asyncio_crawl | 8fb4ecd695384823fe8716a4f6775836b9e25e0d | [
"MIT"
] | null | null | null | example/1.6.py | anhlt59/Asyncio_crawl | 8fb4ecd695384823fe8716a4f6775836b9e25e0d | [
"MIT"
] | null | null | null | import asyncio
async def holacoro():
for i in range(3):
await asyncio.sleep(1)
print("Hola %d" % i)
async def chaocoro():
for i in range(3):
await asyncio.sleep(2)
print("Chao %d" % i)
async def doscoro():
await asyncio.ensure_future(holacoro())
await asyncio.ensure_future(chaocoro())
if __name__ == ... | 20.769231 | 48 | 0.705556 | 76 | 540 | 4.776316 | 0.434211 | 0.132231 | 0.209366 | 0.060606 | 0.15978 | 0.15978 | 0.15978 | 0.15978 | 0 | 0 | 0 | 0.008696 | 0.148148 | 540 | 25 | 49 | 21.6 | 0.780435 | 0.062963 | 0 | 0.117647 | 0 | 0 | 0.043912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0.117647 | 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 |
e046543402d333f9826346012be8586f2e705cd1 | 4,117 | py | Python | basicsr/models/archs/hifacegan_options.py | Lotayou/BasicSR | 6cf9a706dd680d54f7dc26e87318ff79f76c0dbf | [
"Apache-2.0",
"MIT"
] | null | null | null | basicsr/models/archs/hifacegan_options.py | Lotayou/BasicSR | 6cf9a706dd680d54f7dc26e87318ff79f76c0dbf | [
"Apache-2.0",
"MIT"
] | null | null | null | basicsr/models/archs/hifacegan_options.py | Lotayou/BasicSR | 6cf9a706dd680d54f7dc26e87318ff79f76c0dbf | [
"Apache-2.0",
"MIT"
] | null | null | null | import sys
from basicsr.utils import Options
def train_options():
return Options(
dataroot='/backup/lingbo/data/FFHQ_train_3deg',
dataroot_assist='',
name='sr_model_512_hifacegan',
crop_size=512,
gpu_ids=[0], # set to [] for CPU-only training (not tested)
gan_mode... | 26.22293 | 83 | 0.583192 | 493 | 4,117 | 4.592292 | 0.432049 | 0.007951 | 0.017668 | 0.011484 | 0.374117 | 0.315813 | 0.284894 | 0.257951 | 0.186396 | 0.186396 | 0 | 0.049537 | 0.318436 | 4,117 | 156 | 84 | 26.391026 | 0.757306 | 0.12582 | 0 | 0.46875 | 0 | 0 | 0.117467 | 0.041295 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.015625 | null | null | 0.007813 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e047591389d81f6c416faf1d3b7bcf61a74d35e5 | 1,316 | py | Python | tests/v2/test_1189-fix-singletons-for-non-optional-data.py | jpivarski/awkward-1.0 | 49a3ff13ef90b8778a80573211d58c544729eaa5 | [
"BSD-3-Clause"
] | 2 | 2019-09-12T03:07:23.000Z | 2019-09-27T05:32:07.000Z | tests/v2/test_1189-fix-singletons-for-non-optional-data.py | jpivarski/awkward-1.0 | 49a3ff13ef90b8778a80573211d58c544729eaa5 | [
"BSD-3-Clause"
] | 1 | 2019-09-26T17:57:45.000Z | 2019-09-26T17:57:45.000Z | tests/v2/test_1189-fix-singletons-for-non-optional-data.py | jpivarski/awkward-1.0 | 49a3ff13ef90b8778a80573211d58c544729eaa5 | [
"BSD-3-Clause"
] | null | null | null | # BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
import pytest # noqa: F401
import numpy as np # noqa: F401
import awkward as ak # noqa: F401
def test():
ak_array = ak._v2.Array([1, 2, 3])
assert ak._v2.operations.singletons(ak_array).tolist() == [[1], [2], [3]]
# ... | 27.416667 | 87 | 0.552432 | 184 | 1,316 | 3.858696 | 0.353261 | 0.073239 | 0.177465 | 0.140845 | 0.447887 | 0.385915 | 0.287324 | 0.287324 | 0.287324 | 0.287324 | 0 | 0.069307 | 0.232523 | 1,316 | 47 | 88 | 28 | 0.633663 | 0.144377 | 0 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.2 | 1 | 0.114286 | false | 0 | 0.085714 | 0 | 0.2 | 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 |
e0484f6e6b2c529f5c23fea3768d490fc5445d23 | 4,197 | py | Python | scripts/hist2dist.py | pipp8/power_statistics | ae5751220e6952759ac1566b3313aedc3faac788 | [
"Apache-2.0"
] | null | null | null | scripts/hist2dist.py | pipp8/power_statistics | ae5751220e6952759ac1566b3313aedc3faac788 | [
"Apache-2.0"
] | null | null | null | scripts/hist2dist.py | pipp8/power_statistics | ae5751220e6952759ac1566b3313aedc3faac788 | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/python
import re
import os
import sys
inputFile = sys.argv[1]
totalCnt = 0
totalSeqCnt = 0
totalKmer = 0
totalProb = 0.0
totalLines = 0
writeSequenceHistogram = True
sumDict = dict() # dizionario vuoto
seqDict = dict()
seqDistDir = 'seqDists'
basename = os.path.splitext(os.path.basename(inputFile))[0]... | 32.534884 | 108 | 0.564451 | 494 | 4,197 | 4.777328 | 0.291498 | 0.005932 | 0.005085 | 0.013983 | 0.184746 | 0.117797 | 0.107627 | 0.086441 | 0.086441 | 0.05678 | 0 | 0.016421 | 0.30355 | 4,197 | 128 | 109 | 32.789063 | 0.790968 | 0.14153 | 0 | 0.191489 | 0 | 0 | 0.09476 | 0.014493 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.031915 | null | null | 0.085106 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e049b98f0055045f4cb6fbdc6247d1d95bc56f71 | 1,530 | py | Python | python_version/molto_3bp/PCRFBP_state_derivs.py | metypes/MOLTO-3BP | e600a88b4aa45502352689e95ee97e8eece01a15 | [
"MIT"
] | 7 | 2019-04-09T10:08:50.000Z | 2021-04-23T18:02:01.000Z | python_version/molto_3bp/PCRFBP_state_derivs.py | metypes/MOLTO-3BP | e600a88b4aa45502352689e95ee97e8eece01a15 | [
"MIT"
] | 2 | 2019-03-28T19:46:53.000Z | 2021-03-12T17:36:37.000Z | python_version/molto_3bp/PCRFBP_state_derivs.py | uc3m-aerospace/MOLTO-3BP | 320a4c7368a2552f8feed0df51aba60b5785346b | [
"MIT"
] | 6 | 2019-03-19T11:22:14.000Z | 2021-04-23T18:16:45.000Z | def PCRFBP_state_derivs (t, state, params):
# This function computes the acceleration acting at time "et" on
# the fourth body according to the PBRFBP model.
# INPUTS:
# - et : Current non-dimensional time [sec]
# - state : Current non-dimensional S/C state in the synodic reference frame
# [-,-]
# OU... | 36.428571 | 96 | 0.507843 | 253 | 1,530 | 3 | 0.256917 | 0.039526 | 0.042161 | 0.039526 | 0.205534 | 0.192358 | 0.166008 | 0.130435 | 0.092227 | 0.092227 | 0 | 0.051347 | 0.223529 | 1,530 | 41 | 97 | 37.317073 | 0.587542 | 0 | 0 | 0 | 0 | 0 | 0.013043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e051abb95ae01b3eae7dd36ee58e3d5cfb008238 | 5,039 | py | Python | sql_analyze/grammars/antlr_util_test.py | vingkan/sql_tools | 5d6ab6a0ae31dc51e51ac1629f83f7bbf91396c1 | [
"Apache-2.0"
] | 1 | 2022-03-30T19:47:16.000Z | 2022-03-30T19:47:16.000Z | sql_analyze/grammars/antlr_util_test.py | vingkan/sql_tools | 5d6ab6a0ae31dc51e51ac1629f83f7bbf91396c1 | [
"Apache-2.0"
] | null | null | null | sql_analyze/grammars/antlr_util_test.py | vingkan/sql_tools | 5d6ab6a0ae31dc51e51ac1629f83f7bbf91396c1 | [
"Apache-2.0"
] | 1 | 2022-03-30T04:07:12.000Z | 2022-03-30T04:07:12.000Z | #
# nuna_sql_tools: Copyright 2022 Nuna Inc
#
# 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... | 39.062016 | 87 | 0.662631 | 737 | 5,039 | 4.279512 | 0.2673 | 0.026633 | 0.041852 | 0.049461 | 0.557387 | 0.547876 | 0.519975 | 0.519975 | 0.474635 | 0.474635 | 0 | 0.028212 | 0.226235 | 5,039 | 128 | 88 | 39.367188 | 0.780713 | 0.123834 | 0 | 0.166667 | 0 | 0.019608 | 0.65802 | 0.104209 | 0 | 0 | 0 | 0 | 0.088235 | 1 | 0.04902 | false | 0 | 0.029412 | 0 | 0.098039 | 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 |
e05c45e32b6213fb6417a29dfdde51c5dc20761a | 257 | py | Python | automation/download-po/constant.py | pankajunhale/vip-app-service | ac91aed953d31f0646d117bca40f5c5e635a0953 | [
"MIT"
] | null | null | null | automation/download-po/constant.py | pankajunhale/vip-app-service | ac91aed953d31f0646d117bca40f5c5e635a0953 | [
"MIT"
] | null | null | null | automation/download-po/constant.py | pankajunhale/vip-app-service | ac91aed953d31f0646d117bca40f5c5e635a0953 | [
"MIT"
] | 1 | 2021-10-16T05:07:39.000Z | 2021-10-16T05:07:39.000Z | ORG_EMAIL = "@copiacs.com"
FROM_EMAIL = "pankaj.u" + ORG_EMAIL
FROM_PWD = "copia@123"
SMTP_SERVER = "imap.gmail.com"
SMTP_PORT = 993
SENDER_EMAIL_ID = "pankajunhale@gmail.com"
STREAM_TYPE_OCTET = "application/octet-stream"
SENT_SINCE_QUERY = 'SENTSINCE' | 32.125 | 46 | 0.758755 | 38 | 257 | 4.815789 | 0.710526 | 0.087432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0.11284 | 257 | 8 | 47 | 32.125 | 0.776316 | 0 | 0 | 0 | 0 | 0 | 0.379845 | 0.178295 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e05ebbef510e5ea04d0ab78cd9fcae96ef118000 | 3,615 | py | Python | tests/primers_test.py | Lattice-Automation/primers | 92e3e6d97c73b40af68286be4b3004fe06c056df | [
"MIT"
] | 7 | 2020-04-23T02:16:56.000Z | 2022-02-09T15:22:44.000Z | tests/primers_test.py | Lattice-Automation/primers | 92e3e6d97c73b40af68286be4b3004fe06c056df | [
"MIT"
] | 2 | 2020-04-23T02:10:15.000Z | 2021-11-24T02:54:46.000Z | tests/primers_test.py | Lattice-Automation/primers | 92e3e6d97c73b40af68286be4b3004fe06c056df | [
"MIT"
] | 1 | 2021-12-29T03:47:23.000Z | 2021-12-29T03:47:23.000Z | from unittest import TestCase
from primers import primers, Primer
from primers.primers import _rc, _parse_add_len, LEN_MIN, LEN_MAX
class TestPrimers(TestCase):
"""Test primer creation."""
def test_primers(self):
"""Create primers without additional sequence."""
seq = "CTACTAATAGCACACACGGGG... | 40.166667 | 316 | 0.70816 | 361 | 3,615 | 6.950139 | 0.202216 | 0.083699 | 0.021921 | 0.011957 | 0.18892 | 0.088481 | 0.088481 | 0.088481 | 0.039059 | 0 | 0 | 0.020282 | 0.195297 | 3,615 | 89 | 317 | 40.617978 | 0.842214 | 0.079115 | 0 | 0.163934 | 0 | 0 | 0.288963 | 0.283202 | 0 | 0 | 0 | 0 | 0.557377 | 1 | 0.081967 | false | 0 | 0.04918 | 0 | 0.147541 | 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 |
e06b24c02e45b0bef75c0ffcb9705dc040ffdad2 | 4,190 | py | Python | deep-rl/lib/python2.7/site-packages/OpenGL/GL/ARB/draw_elements_base_vertex.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 87 | 2015-04-09T16:57:27.000Z | 2022-02-21T13:21:12.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/GL/ARB/draw_elements_base_vertex.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 47 | 2015-04-09T21:05:30.000Z | 2021-06-22T15:21:18.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/GL/ARB/draw_elements_base_vertex.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 16 | 2015-04-09T19:10:22.000Z | 2020-07-19T05:41:06.000Z | '''OpenGL extension ARB.draw_elements_base_vertex
This module customises the behaviour of the
OpenGL.raw.GL.ARB.draw_elements_base_vertex to provide a more
Python-friendly API
Overview (from the spec)
This extension provides a method to specify a "base vertex offset"
value which is effectively added to every ve... | 41.485149 | 103 | 0.700477 | 512 | 4,190 | 5.6875 | 0.382813 | 0.008242 | 0.028846 | 0.043269 | 0.175824 | 0.12603 | 0.12603 | 0.043956 | 0.031593 | 0.031593 | 0 | 0.025594 | 0.226014 | 4,190 | 101 | 104 | 41.485149 | 0.87234 | 0.856325 | 0 | 0.24 | 0 | 0 | 0.044421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.28 | 0 | 0.36 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e06cc557f793f8015f7086c3eaf8837540eb638b | 535 | py | Python | houses/migrations/0008_house_members.py | xNovax/RoomScout | 287240a9d13f2b8f6ce9abdc95cf611671970fc3 | [
"MIT"
] | 24 | 2020-02-01T17:22:47.000Z | 2020-10-24T19:49:36.000Z | houses/migrations/0008_house_members.py | xNovax/RoomScout | 287240a9d13f2b8f6ce9abdc95cf611671970fc3 | [
"MIT"
] | 16 | 2020-02-01T14:30:15.000Z | 2020-08-13T20:49:56.000Z | houses/migrations/0008_house_members.py | aaronspindler/RoomScout | 287240a9d13f2b8f6ce9abdc95cf611671970fc3 | [
"MIT"
] | 6 | 2020-02-01T22:07:46.000Z | 2021-03-05T14:05:27.000Z | # Generated by Django 2.2.4 on 2019-08-19 19:36
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('houses', '0007_house_transit_score_summary'),
]
o... | 26.75 | 94 | 0.665421 | 60 | 535 | 5.75 | 0.65 | 0.057971 | 0.092754 | 0.121739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046229 | 0.231776 | 535 | 19 | 95 | 28.157895 | 0.793187 | 0.084112 | 0 | 0 | 1 | 0 | 0.116803 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0eb89c431d789f2a40bffa65c1862cbbb76f3c12 | 2,484 | py | Python | nucleus/io/genomics_reader_test.py | czbiohub/nucleus | cddfd3cef8965261d202f208f3d0881b47165c11 | [
"Apache-2.0"
] | null | null | null | nucleus/io/genomics_reader_test.py | czbiohub/nucleus | cddfd3cef8965261d202f208f3d0881b47165c11 | [
"Apache-2.0"
] | null | null | null | nucleus/io/genomics_reader_test.py | czbiohub/nucleus | cddfd3cef8965261d202f208f3d0881b47165c11 | [
"Apache-2.0"
] | 1 | 2018-07-21T17:55:49.000Z | 2018-07-21T17:55:49.000Z | # Copyright 2018 Google Inc.
#
# 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, ... | 28.551724 | 74 | 0.723027 | 333 | 2,484 | 5.252252 | 0.474474 | 0.034305 | 0.018296 | 0.018868 | 0.100629 | 0.081761 | 0.030875 | 0 | 0 | 0 | 0 | 0.013969 | 0.164251 | 2,484 | 86 | 75 | 28.883721 | 0.828516 | 0.299114 | 0 | 0.088889 | 0 | 0 | 0.037581 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.222222 | false | 0.022222 | 0.155556 | 0.022222 | 0.488889 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ebd8000ceed7424daf54e41ea340c22552341bc | 361 | py | Python | mdh_corpus/migrations/0003_auto_20180807_2045.py | kingsdigitallab/mdh-django | 991731e84e5a5936c9c550ecc636219cf92fc734 | [
"MIT"
] | null | null | null | mdh_corpus/migrations/0003_auto_20180807_2045.py | kingsdigitallab/mdh-django | 991731e84e5a5936c9c550ecc636219cf92fc734 | [
"MIT"
] | 3 | 2020-02-11T23:03:41.000Z | 2021-06-10T20:44:06.000Z | mdh_corpus/migrations/0003_auto_20180807_2045.py | kingsdigitallab/mdh-django | 991731e84e5a5936c9c550ecc636219cf92fc734 | [
"MIT"
] | null | null | null | # Generated by Django 2.0 on 2018-08-07 19:45
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('mdh_corpus', '0002_auto_20180807_2013'),
]
operations = [
migrations.RenameField(
model_name='journal',
old_name='epub',
... | 19 | 50 | 0.584488 | 39 | 361 | 5.230769 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119522 | 0.304709 | 361 | 18 | 51 | 20.055556 | 0.693227 | 0.119114 | 0 | 0 | 1 | 0 | 0.151899 | 0.072785 | 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 |
0ec0b492b0d85127fd72e8b708d2b6f9b229c3a1 | 337 | py | Python | 7KYU/even_chars.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | 4 | 2021-07-17T22:48:03.000Z | 2022-03-25T14:10:58.000Z | 7KYU/even_chars.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | null | null | null | 7KYU/even_chars.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | 3 | 2021-06-14T14:18:16.000Z | 2022-03-16T06:02:02.000Z | def even_chars(st: str) -> list:
""" This function returns a sequence (index begins with 1) of all the even characters from a string. """
if len(st) < 2 or len(st) > 100:
return 'invalid string'
even = []
for i, k in enumerate(range(len(st))):
if i % 2 != 0:
even.append(st[i]... | 37.444444 | 108 | 0.575668 | 53 | 337 | 3.641509 | 0.679245 | 0.07772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.293769 | 337 | 9 | 109 | 37.444444 | 0.781513 | 0.284866 | 0 | 0 | 0 | 0 | 0.059829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ec5fc82f6363d39869fe20305aa7077435f30d4 | 1,232 | py | Python | WORK/working/crime_vis/crime.py | jessicagtz/WorkingFolder | 4791618e1ec12b9cc38a6ceb1ff03bab1799b0bc | [
"MIT"
] | null | null | null | WORK/working/crime_vis/crime.py | jessicagtz/WorkingFolder | 4791618e1ec12b9cc38a6ceb1ff03bab1799b0bc | [
"MIT"
] | null | null | null | WORK/working/crime_vis/crime.py | jessicagtz/WorkingFolder | 4791618e1ec12b9cc38a6ceb1ff03bab1799b0bc | [
"MIT"
] | 1 | 2018-12-06T21:33:44.000Z | 2018-12-06T21:33:44.000Z | # import dependencies
from flask import Flask, jsonify, render_template, request, redirect
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine, func, inspect
import pandas as pd
import numpy as np
import datetime as dt
# database setup using au... | 27.377778 | 117 | 0.730519 | 162 | 1,232 | 5.376543 | 0.450617 | 0.072331 | 0.025258 | 0.039036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165584 | 1,232 | 45 | 118 | 27.377778 | 0.847276 | 0.131494 | 0 | 0 | 0 | 0 | 0.108083 | 0.06485 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | 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 |
0ec6287972fb87c410d5ae5ebaa9e0278cfb228d | 976 | py | Python | presto-accumulo-examples/add_uuids.py | Manny27nyc/presto-accumulo | a18cb20a411b3f8251a570892c7aa76f769803c3 | [
"Apache-2.0"
] | 25 | 2016-04-15T05:49:39.000Z | 2021-11-09T12:20:22.000Z | presto-accumulo-examples/add_uuids.py | Manny27nyc/presto-accumulo | a18cb20a411b3f8251a570892c7aa76f769803c3 | [
"Apache-2.0"
] | 1 | 2017-07-20T00:54:48.000Z | 2017-07-20T00:54:48.000Z | presto-accumulo-examples/add_uuids.py | Manny27nyc/presto-accumulo | a18cb20a411b3f8251a570892c7aa76f769803c3 | [
"Apache-2.0"
] | 4 | 2017-10-26T14:50:37.000Z | 2021-11-21T12:02:12.000Z | #!/usr/bin/env python
from uuid import uuid4
import os, sys
LINEITEM_TBL = "tpch/lineitem.tbl"
LINEITEM_WITH_UUID_TBL = "tpch/lineitem_with_uuid.tbl"
PARTSUPP_TBL = "tpch/partsupp.tbl"
PARTSUPP_WITH_UUID_TBL = "tpch/partsupp_with_uuid.tbl"
if not os.path.isfile(LINEITEM_TBL):
print LINEITEM_TBL + " does not exis... | 27.111111 | 92 | 0.716189 | 169 | 976 | 3.911243 | 0.266272 | 0.096823 | 0.133132 | 0.114977 | 0.514372 | 0.399395 | 0.217852 | 0.217852 | 0.217852 | 0.217852 | 0 | 0.006046 | 0.152664 | 976 | 35 | 93 | 27.885714 | 0.793229 | 0.020492 | 0 | 0.083333 | 0 | 0 | 0.255497 | 0.056545 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ec8062085f3792e70fb4dc20ef27e086b86a9ab | 897,453 | py | Python | infoblox_client/objects.py | JackSlateur/infoblox-client | ba0fc9019dd9ab329106f0281bb255aa154744f6 | [
"Apache-2.0"
] | null | null | null | infoblox_client/objects.py | JackSlateur/infoblox-client | ba0fc9019dd9ab329106f0281bb255aa154744f6 | [
"Apache-2.0"
] | null | null | null | infoblox_client/objects.py | JackSlateur/infoblox-client | ba0fc9019dd9ab329106f0281bb255aa154744f6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 Infoblox Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | 47.892257 | 79 | 0.697941 | 116,199 | 897,453 | 5.197609 | 0.026541 | 0.007906 | 0.008759 | 0.009249 | 0.718771 | 0.669622 | 0.628358 | 0.590001 | 0.558667 | 0.534267 | 0 | 0.005273 | 0.237609 | 897,453 | 18,738 | 80 | 47.894813 | 0.877434 | 0.61706 | 0 | 0.434559 | 0 | 0 | 0.362609 | 0.102105 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047406 | false | 0.006527 | 0.003951 | 0.036757 | 0.569564 | 0.003607 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0ec9929b9574198bdcc8290e58bd23ec5be4c475 | 503 | py | Python | hotelsInfo.py | alvarobcprado/tripAdvisor-scraping | bd37631f6ec2b2766d9af5ec05331ba01acc9f4e | [
"MIT"
] | null | null | null | hotelsInfo.py | alvarobcprado/tripAdvisor-scraping | bd37631f6ec2b2766d9af5ec05331ba01acc9f4e | [
"MIT"
] | null | null | null | hotelsInfo.py | alvarobcprado/tripAdvisor-scraping | bd37631f6ec2b2766d9af5ec05331ba01acc9f4e | [
"MIT"
] | null | null | null | import pandas as pd
class HotelsInfo:
def __init__(self):
self.dfColumns = ['nome', 'diaria', 'municipio', 'avaliacoes', 'data']
self.hotels = pd.DataFrame(columns=self.dfColumns)
def add(self, name, value, city, reviews, date):
self.hotels = self.hotels.append({'nome': name, 'diar... | 38.692308 | 147 | 0.632207 | 60 | 503 | 5.183333 | 0.55 | 0.128617 | 0.090032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206759 | 503 | 13 | 148 | 38.692308 | 0.779449 | 0 | 0 | 0 | 0 | 0 | 0.15873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0eca3a3d84cd215c150821027e16deaca2e6d5fe | 1,109 | py | Python | app/server/scheduleTest.py | ianchrist/NordicSHIFT | ed8d23659d190cac82766d60f354178fe77e0095 | [
"MIT"
] | 2 | 2017-09-29T18:05:14.000Z | 2017-10-01T00:07:45.000Z | app/server/scheduleTest.py | ianchrist/NordicSHIFT | ed8d23659d190cac82766d60f354178fe77e0095 | [
"MIT"
] | 14 | 2017-10-31T19:59:56.000Z | 2018-05-01T20:58:06.000Z | app/server/scheduleTest.py | NordicSHIFT/NordicSHIFT | ed8d23659d190cac82766d60f354178fe77e0095 | [
"MIT"
] | 1 | 2017-10-03T20:17:15.000Z | 2017-10-03T20:17:15.000Z | from scheduler import scheduler2, Schedule
from student import Student
from shift import Shift
import datetime
def main():
###### Create Students ######
students = []
alfred = Student("alfred",10)
students.append(alfred)
bob = Student("bob",10)
students.append(bob)
###### Create ... | 27.725 | 106 | 0.64202 | 131 | 1,109 | 5.435115 | 0.251908 | 0.134831 | 0.168539 | 0.176966 | 0.411517 | 0.411517 | 0.411517 | 0.411517 | 0.411517 | 0.411517 | 0 | 0.077626 | 0.210099 | 1,109 | 40 | 107 | 27.725 | 0.73516 | 0.027051 | 0 | 0.3 | 0 | 0 | 0.017078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.133333 | 0 | 0.166667 | 0.066667 | 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 |
0ecc5954a6a4ef0b1084048ae67500d2f65afce4 | 2,574 | py | Python | rdmo/options/renderers.py | m6121/rdmo | db3990c7525138c6ce9634fc3e5b6b8ee9b915c8 | [
"Apache-2.0"
] | 77 | 2016-08-09T11:40:20.000Z | 2022-03-06T11:03:26.000Z | rdmo/options/renderers.py | m6121/rdmo | db3990c7525138c6ce9634fc3e5b6b8ee9b915c8 | [
"Apache-2.0"
] | 377 | 2016-07-01T13:59:36.000Z | 2022-03-30T13:53:19.000Z | rdmo/options/renderers.py | m6121/rdmo | db3990c7525138c6ce9634fc3e5b6b8ee9b915c8 | [
"Apache-2.0"
] | 47 | 2016-06-23T11:32:19.000Z | 2022-03-01T11:34:37.000Z | from rdmo.core.renderers import BaseXMLRenderer
from rdmo.core.utils import get_languages
class OptionsRenderer(BaseXMLRenderer):
def render_optionset(self, xml, optionset):
xml.startElement('optionset', {'dc:uri': optionset['uri']})
self.render_text_element(xml, 'uri_prefix', {}, optionset['uri_... | 41.516129 | 101 | 0.637141 | 293 | 2,574 | 5.416382 | 0.187713 | 0.10712 | 0.123503 | 0.185255 | 0.449905 | 0.389414 | 0.220542 | 0.178954 | 0.088217 | 0.088217 | 0 | 0.001964 | 0.208625 | 2,574 | 61 | 102 | 42.196721 | 0.777123 | 0 | 0 | 0.25 | 0 | 0 | 0.168221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.041667 | 0 | 0.1875 | 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 |
0ece3ea01a3aa611bda16adc68fe70a3340404c0 | 830 | py | Python | quarkchain/cluster/tests/test_shard_db_operator.py | anshulkusa/pyquarkchain | af80b6fdd331c69ce1bc801caf7c2cdd1e82a435 | [
"MIT"
] | 17 | 2018-12-25T03:41:25.000Z | 2020-08-11T06:06:26.000Z | quarkchain/cluster/tests/test_shard_db_operator.py | anshulkusa/pyquarkchain | af80b6fdd331c69ce1bc801caf7c2cdd1e82a435 | [
"MIT"
] | null | null | null | quarkchain/cluster/tests/test_shard_db_operator.py | anshulkusa/pyquarkchain | af80b6fdd331c69ce1bc801caf7c2cdd1e82a435 | [
"MIT"
] | 5 | 2018-12-25T07:55:56.000Z | 2019-09-11T23:19:59.000Z | import unittest
from quarkchain.cluster.shard_db_operator import ShardDbOperator
from quarkchain.core import Branch, MinorBlockHeader, MinorBlock, MinorBlockMeta
from quarkchain.db import InMemoryDb
from quarkchain.env import DEFAULT_ENV
class TestShardDbOperator(unittest.TestCase):
def test_get_minor_block_by_h... | 41.5 | 85 | 0.76988 | 106 | 830 | 5.716981 | 0.320755 | 0.09901 | 0.107261 | 0.09901 | 0.338284 | 0.260726 | 0.089109 | 0 | 0 | 0 | 0 | 0.001403 | 0.140964 | 830 | 19 | 86 | 43.684211 | 0.848527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.466667 | 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 |
0ed28ede7cd7280ccfcc3547f20232875e641105 | 360 | py | Python | setup.py | BouncyButton/places-simulator | a1f5fc385750af9968cc3c6216ba20f5de4719fd | [
"MIT"
] | null | null | null | setup.py | BouncyButton/places-simulator | a1f5fc385750af9968cc3c6216ba20f5de4719fd | [
"MIT"
] | null | null | null | setup.py | BouncyButton/places-simulator | a1f5fc385750af9968cc3c6216ba20f5de4719fd | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='places-simulator',
version='1.0.0',
packages=[''],
url='bouncybutton.github.com',
license='MIT Licence',
author='berga',
author_email='luca.bergamin.3@studenti.unipd.it',
description='A SimPy-powered simulator used to model human behaviour visit... | 27.692308 | 115 | 0.697222 | 46 | 360 | 5.434783 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013378 | 0.169444 | 360 | 12 | 116 | 30 | 0.822742 | 0 | 0 | 0 | 0 | 0 | 0.527778 | 0.155556 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0edc75a864bda861e7f3b78c760d4bb97dba9409 | 6,392 | py | Python | snakemake/rules/deepTools_QC.py | skurscheid/CellCycle | f9e08c63e832557ade82ddeab233c7ef5d22d551 | [
"MIT"
] | null | null | null | snakemake/rules/deepTools_QC.py | skurscheid/CellCycle | f9e08c63e832557ade82ddeab233c7ef5d22d551 | [
"MIT"
] | null | null | null | snakemake/rules/deepTools_QC.py | skurscheid/CellCycle | f9e08c63e832557ade82ddeab233c7ef5d22d551 | [
"MIT"
] | null | null | null | __author__ = "Sebastian Kurscheid (sebastian.kurscheid@anu.edu.au)"
__license__ = "MIT"
__date__ = "2018-08-07"
# vim: syntax=python tabstop=4 expandtab
# coding: utf-8
from snakemake.exceptions import MissingInputException
import os
"""
Rules for running deepTools QC on ChIP-Seq data
For usage, include this in your... | 42.613333 | 140 | 0.495463 | 449 | 6,392 | 6.933185 | 0.282851 | 0.057822 | 0.057822 | 0.061677 | 0.501446 | 0.476389 | 0.445551 | 0.420816 | 0.420816 | 0.420816 | 0 | 0.005922 | 0.392365 | 6,392 | 149 | 141 | 42.899329 | 0.795572 | 0.0097 | 0 | 0.595506 | 0 | 0 | 0.347307 | 0.20589 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022472 | null | null | 0.033708 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0ee55d2c978606178113e03d55c00056c081e39e | 10,375 | py | Python | helpers/suggestions/suggestion_creator.py | enterstudio/the-blue-alliance | b53f752fe1f059b4b6f91c841e1865a6c6b81268 | [
"MIT"
] | null | null | null | helpers/suggestions/suggestion_creator.py | enterstudio/the-blue-alliance | b53f752fe1f059b4b6f91c841e1865a6c6b81268 | [
"MIT"
] | null | null | null | helpers/suggestions/suggestion_creator.py | enterstudio/the-blue-alliance | b53f752fe1f059b4b6f91c841e1865a6c6b81268 | [
"MIT"
] | null | null | null | import logging
from datetime import datetime
from consts.auth_type import AuthType
from consts.event_type import EventType
from consts.media_type import MediaType
from helpers.media_helper import MediaParser
from helpers.webcast_helper import WebcastParser
from models.event import Event
from models.match import Match... | 42.174797 | 144 | 0.577831 | 1,090 | 10,375 | 5.253211 | 0.161468 | 0.013971 | 0.030737 | 0.023053 | 0.24869 | 0.219525 | 0.204506 | 0.177436 | 0.119106 | 0.099546 | 0 | 0.000148 | 0.346602 | 10,375 | 245 | 145 | 42.346939 | 0.84452 | 0.04559 | 0 | 0.345 | 0 | 0 | 0.108779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055 | 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 |
0ee8ffb3340492c4366cc7ca8fa5ff6127b4d72b | 650 | py | Python | 20200303_萌新赛-劝退警告_常规套娃/flag.py | ctfwiki/subject_misc_ctfshow | 2a51f5bc12e9c136841f9cc3ef88ed53df952054 | [
"MIT"
] | 16 | 2020-09-26T06:17:57.000Z | 2022-03-03T15:41:07.000Z | 20200303_萌新赛-劝退警告_常规套娃/flag.py | ctfwiki/subject_misc_ctfshow | 2a51f5bc12e9c136841f9cc3ef88ed53df952054 | [
"MIT"
] | null | null | null | 20200303_萌新赛-劝退警告_常规套娃/flag.py | ctfwiki/subject_misc_ctfshow | 2a51f5bc12e9c136841f9cc3ef88ed53df952054 | [
"MIT"
] | 6 | 2020-08-30T09:09:08.000Z | 2021-11-28T02:09:39.000Z | import base64
arr = ['NQ', 'MQ', 'Mw', 'MA', 'NA', 'Ng', 'Mg', 'OQ', 'Nw', 'OA', 'LQ', 'PQ']
flag = "136-139-78-132-162-89-49-117-70-161-49-118-70-02-01-01-70-137-01-160"
def encode(s):
return base64.b64encode(s.encode()).decode()
def decode(s):
return base64.b64decode(s.encode()).decode()
def check(x):
... | 21.666667 | 78 | 0.549231 | 112 | 650 | 3.1875 | 0.580357 | 0.10084 | 0.072829 | 0.089636 | 0.10084 | 0.10084 | 0.10084 | 0 | 0 | 0 | 0 | 0.151874 | 0.22 | 650 | 29 | 79 | 22.413793 | 0.552268 | 0.113846 | 0 | 0 | 0 | 0.058824 | 0.161121 | 0.119089 | 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 |
0eeb90ecf982a179498c37ca15169da4501a59cd | 1,152 | py | Python | scripts/bbbc.py | Max-Norman/PCB-PR-App | 877223e8786bad636ef48666addc13631bc87a56 | [
"BSD-3-Clause"
] | 6 | 2020-01-07T16:57:01.000Z | 2021-11-29T06:50:15.000Z | scripts/bbbc.py | choltz95/PCB-PR-App | fd3157971c214a5e9092bcf118fc2e8c7d8fa046 | [
"BSD-3-Clause"
] | 7 | 2020-01-10T00:30:32.000Z | 2021-11-03T08:16:58.000Z | scripts/bbbc.py | choltz95/PCB-PR-App | fd3157971c214a5e9092bcf118fc2e8c7d8fa046 | [
"BSD-3-Clause"
] | 10 | 2020-06-02T22:08:27.000Z | 2022-01-19T10:18:58.000Z | from ucsdpcb import PcbPlacer, PcbDB
import subprocess
from tqdm import tqdm
lamrates = [0.03,0.05,0.07,0.09,0.11,0.13,0.15,0.17,0.19,0.12, 0.14, 0.16, 0.18]
toremove = ['micro_accept_probs','micro_dcongestion','micro_dcost','micro_dhpwl','micro_doverlap','micro_movement','micro_window_coef_history','nodes.nodes',]
fo... | 46.08 | 158 | 0.703125 | 172 | 1,152 | 4.593023 | 0.447674 | 0.159494 | 0.144304 | 0.174684 | 0.191139 | 0.159494 | 0 | 0 | 0 | 0 | 0 | 0.041176 | 0.114583 | 1,152 | 24 | 159 | 48 | 0.733333 | 0.30816 | 0 | 0 | 0 | 0 | 0.251899 | 0.062025 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.1875 | 0.0625 | 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 |
0eebf0fa629f5aeaa3fe9757404faa6b574e9e3b | 4,497 | py | Python | detrendDeaftereq.py | nvoss12838/APE | f5ba396c162d2bb706d183640f36b98de75d3568 | [
"MIT"
] | null | null | null | detrendDeaftereq.py | nvoss12838/APE | f5ba396c162d2bb706d183640f36b98de75d3568 | [
"MIT"
] | null | null | null | detrendDeaftereq.py | nvoss12838/APE | f5ba396c162d2bb706d183640f36b98de75d3568 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pylab as plt
from scipy.optimize import leastsq
import os
def readData(filename):
'''
read in data in Decater format
date location uncertainty?
'''
#read in filename splitting into useful python arrays
date,loc,uncert = np.genfromtxt(filename,dtype=float,usecols = (0... | 27.931677 | 236 | 0.61819 | 872 | 4,497 | 3.188073 | 0.225917 | 0.018345 | 0.02518 | 0.025899 | 0.283094 | 0.273022 | 0.255036 | 0.232734 | 0.190288 | 0.182734 | 0 | 0.086216 | 0.190127 | 4,497 | 161 | 237 | 27.931677 | 0.6771 | 0.282411 | 0 | 0.362832 | 0 | 0 | 0.005461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035398 | null | null | 0.00885 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.