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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dca5b9234315369ee93d0c769c59b0d23bb9b0e8 | 552 | py | Python | 3rdparty/packages/all.py | cspanier/shift | 5b3b9be310155fbc57d165d06259b723a5728828 | [
"Apache-2.0"
] | 2 | 2018-11-28T18:14:08.000Z | 2020-08-06T07:44:36.000Z | 3rdparty/packages/all.py | cspanier/shift | 5b3b9be310155fbc57d165d06259b723a5728828 | [
"Apache-2.0"
] | 4 | 2018-11-06T21:01:05.000Z | 2019-02-19T07:52:52.000Z | 3rdparty/packages/all.py | cspanier/shift | 5b3b9be310155fbc57d165d06259b723a5728828 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import sys
from build import Builder
package_name = Builder.package_name_from_filename(__file__)
dependencies = ('zlib-1.2.11',
'bzip2-1.0.8',
'jpeg-9c',
'zstd-be3bd70',
'tiff-4.0.10',
'icu4c-65_1',
... | 17.806452 | 59 | 0.572464 | 71 | 552 | 4.169014 | 0.676056 | 0.131757 | 0.172297 | 0.135135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068063 | 0.307971 | 552 | 30 | 60 | 18.4 | 0.706806 | 0.038043 | 0 | 0.157895 | 0 | 0 | 0.228302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.105263 | 0.157895 | 0.421053 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
dca9a0cae4e3516ef3b9c442a5767b027fdc242f | 2,038 | py | Python | antidot/connector/generic/decorators.py | antidot/html-connector | cdfdfda7cacc50d8a8f5e91725cb1c6b729b11a6 | [
"MIT"
] | 3 | 2020-05-27T05:16:33.000Z | 2020-07-21T10:33:29.000Z | antidot/connector/generic/decorators.py | antidot/html-connector | cdfdfda7cacc50d8a8f5e91725cb1c6b729b11a6 | [
"MIT"
] | null | null | null | antidot/connector/generic/decorators.py | antidot/html-connector | cdfdfda7cacc50d8a8f5e91725cb1c6b729b11a6 | [
"MIT"
] | null | null | null | import logging
from typing import List, Union
from colorama import Fore, init
from fluidtopics.connector import Client, LoginAuthentication, RemoteClient
from antidot.connector.generic.external_source_id_does_not_exists_error import ExternalSourceIdDoesNotExistsError
init()
class ClientAuthentication:
def __in... | 42.458333 | 113 | 0.655054 | 208 | 2,038 | 6.235577 | 0.394231 | 0.037008 | 0.027756 | 0.047803 | 0.140324 | 0.080185 | 0.080185 | 0.080185 | 0.080185 | 0.080185 | 0 | 0.00526 | 0.25368 | 2,038 | 47 | 114 | 43.361702 | 0.847469 | 0 | 0 | 0.102564 | 0 | 0 | 0.069185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.102564 | 0.128205 | 0 | 0.307692 | 0.102564 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
dcad289b61d091fcc9d05ecc08a9eacc4030892b | 476 | py | Python | core/serializers.py | utkarshagarwal1312/potato-url | 961c6bfb68247eaa0daa8a7a97cd457daabad5f7 | [
"BSD-3-Clause"
] | null | null | null | core/serializers.py | utkarshagarwal1312/potato-url | 961c6bfb68247eaa0daa8a7a97cd457daabad5f7 | [
"BSD-3-Clause"
] | 5 | 2021-03-19T00:41:35.000Z | 2021-09-22T18:41:37.000Z | core/serializers.py | utkarshagarwal1312/potato-url | 961c6bfb68247eaa0daa8a7a97cd457daabad5f7 | [
"BSD-3-Clause"
] | null | null | null | from rest_framework import serializers
from rest_framework.serializers import Serializer, ModelSerializer
from core.models import KeyUrlMap
class RedirectionSerializer(Serializer):
pass
class CreateMappingSerializer(ModelSerializer):
potato_url = serializers.SerializerMethodField(read_only=True)
class... | 22.666667 | 66 | 0.754202 | 50 | 476 | 7 | 0.56 | 0.102857 | 0.097143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180672 | 476 | 20 | 67 | 23.8 | 0.897436 | 0 | 0 | 0 | 0 | 0 | 0.027311 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.230769 | 0.076923 | 0.692308 | 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 |
dcb06037753bcafbb00cca9c43e0666533c48615 | 2,208 | py | Python | semantic-segmentation/lib/mnist_models.py | bcrafton/icsrl-deep-learning | e3616982d1dda5f978d61d6591c91cb0da76ab02 | [
"MIT"
] | 1 | 2019-11-21T21:15:59.000Z | 2019-11-21T21:15:59.000Z | semantic-segmentation/lib/mnist_models.py | bcrafton/icsrl-deep-learning | e3616982d1dda5f978d61d6591c91cb0da76ab02 | [
"MIT"
] | null | null | null | semantic-segmentation/lib/mnist_models.py | bcrafton/icsrl-deep-learning | e3616982d1dda5f978d61d6591c91cb0da76ab02 | [
"MIT"
] | null | null | null |
import tensorflow as tf
import keras
import numpy as np
from lib.Model import Model
from lib.Layer import Layer
from lib.ConvToFullyConnected import ConvToFullyConnected
from lib.FullyConnected import FullyConnected
from lib.Convolution import Convolution
from lib.MaxPool import MaxPool
from lib.Dropout import Drop... | 36.8 | 123 | 0.684783 | 334 | 2,208 | 4.434132 | 0.224551 | 0.051992 | 0.048616 | 0.064821 | 0.403781 | 0.329507 | 0.21607 | 0.170155 | 0.125591 | 0.125591 | 0 | 0.089737 | 0.157156 | 2,208 | 59 | 124 | 37.423729 | 0.706072 | 0 | 0 | 0.097561 | 0 | 0 | 0.031481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.341463 | 0 | 0.439024 | 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 |
dcba7bbda13d313e94d35624b94b2dea99da623e | 2,043 | py | Python | exportdoc.py | mbebenita/wast | 1655b7be95ad0d445748ee6de9c307344bca23a2 | [
"Apache-2.0"
] | null | null | null | exportdoc.py | mbebenita/wast | 1655b7be95ad0d445748ee6de9c307344bca23a2 | [
"Apache-2.0"
] | null | null | null | exportdoc.py | mbebenita/wast | 1655b7be95ad0d445748ee6de9c307344bca23a2 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright 2016 WebAssembly Community Group participants
#
# 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 ... | 37.833333 | 101 | 0.647577 | 329 | 2,043 | 3.887538 | 0.346505 | 0.01251 | 0.05473 | 0.015637 | 0.160281 | 0.141517 | 0.132916 | 0.075059 | 0.039093 | 0 | 0 | 0.012472 | 0.136564 | 2,043 | 54 | 102 | 37.833333 | 0.712585 | 0.292707 | 0 | 0.171429 | 0 | 0 | 0.229749 | 0.15014 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028571 | null | null | 0.228571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f498fc6725e9cef35375357b8f261f44cf389c7f | 782 | py | Python | hs_web_server/dev_settings.py | kjb4494/hs-web-server | b906326351ddd48e48d0c68109543787ebbb3246 | [
"MIT"
] | null | null | null | hs_web_server/dev_settings.py | kjb4494/hs-web-server | b906326351ddd48e48d0c68109543787ebbb3246 | [
"MIT"
] | null | null | null | hs_web_server/dev_settings.py | kjb4494/hs-web-server | b906326351ddd48e48d0c68109543787ebbb3246 | [
"MIT"
] | null | null | null | """
Django settings for hs_web_server project.
Generated by 'django-admin startproject' using Django 3.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from .... | 24.4375 | 66 | 0.712276 | 119 | 782 | 4.630252 | 0.630252 | 0.014519 | 0.119782 | 0.136116 | 0.208711 | 0.208711 | 0.208711 | 0.208711 | 0.145191 | 0 | 0 | 0.034639 | 0.150895 | 782 | 31 | 67 | 25.225806 | 0.795181 | 0.644501 | 0 | 0 | 1 | 0.1 | 0.387218 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f4994933d65bead82b09a4b78bcd7853c78c1c83 | 23,643 | py | Python | trigger/acl/tools.py | jccardonar/trigger | c089f761a150f537f7e3201422a3964ec52ff245 | [
"BSD-3-Clause"
] | 380 | 2015-01-16T22:21:08.000Z | 2022-03-03T13:43:59.000Z | trigger/acl/tools.py | sysbot/trigger | d232f047e555f963dab991e6ff86c16572cc59da | [
"BSD-3-Clause"
] | 109 | 2015-01-08T00:11:16.000Z | 2021-06-13T11:23:43.000Z | trigger/acl/tools.py | sysbot/trigger | d232f047e555f963dab991e6ff86c16572cc59da | [
"BSD-3-Clause"
] | 115 | 2015-01-09T22:00:29.000Z | 2022-02-03T23:04:19.000Z | # -*- coding: utf-8 -*-
"""
Various tools for use in scripts or other modules. Heavy lifting from tools
that have matured over time have been moved into this module.
"""
__author__ = 'Jathan McCollum, Eileen Tschetter'
__maintainer__ = 'Jathan McCollum'
__email__ = 'jathan.mccollum@teamaol.com'
__copyright__ = 'Copy... | 34.116883 | 104 | 0.549084 | 2,967 | 23,643 | 4.261544 | 0.176609 | 0.019377 | 0.013287 | 0.011863 | 0.189102 | 0.154223 | 0.095856 | 0.070073 | 0.062164 | 0.044053 | 0 | 0.002687 | 0.35465 | 23,643 | 692 | 105 | 34.166185 | 0.825993 | 0.081123 | 0 | 0.227679 | 0 | 0 | 0.107515 | 0.006207 | 0 | 0 | 0 | 0.001445 | 0 | 0 | null | null | 0 | 0.03125 | null | null | 0.046875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f49c81d405e1d5f346c85321fb0c19f123fc3255 | 485 | py | Python | sudan-art/django-backend/sudan_art/migrations/0004_alter_artwork_tags.py | osintalex/sudan-art | ad7b25fe02d45b62b67b1eb60930ae0cde0ffb9c | [
"CC-BY-4.0"
] | 1 | 2022-01-01T19:51:17.000Z | 2022-01-01T19:51:17.000Z | sudan-art/django-backend/sudan_art/migrations/0004_alter_artwork_tags.py | osintalex/sudan-art | ad7b25fe02d45b62b67b1eb60930ae0cde0ffb9c | [
"CC-BY-4.0"
] | 10 | 2022-03-19T12:40:34.000Z | 2022-03-30T21:02:13.000Z | sudan-art/django-backend/sudan_art/migrations/0004_alter_artwork_tags.py | osintalex/sudan-art | ad7b25fe02d45b62b67b1eb60930ae0cde0ffb9c | [
"CC-BY-4.0"
] | null | null | null | # Generated by Django 4.0 on 2022-04-16 00:55
import sudan_art.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("sudan_art", "0003_alter_artwork_tags"),
]
operations = [
migrations.AlterField(
model_name="artwork",
... | 22.045455 | 75 | 0.6 | 52 | 485 | 5.423077 | 0.692308 | 0.085106 | 0.099291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061584 | 0.296907 | 485 | 21 | 76 | 23.095238 | 0.765396 | 0.08866 | 0 | 0.133333 | 1 | 0 | 0.097727 | 0.052273 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 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 |
f4a5a96202227ceaa896c1e0eb0b7571c8a97de2 | 725 | py | Python | usersapp/migrations/0002_auto_20200309_1308.py | AlpsRunner/money_tranfer_page | f9c25b8907967a7b391a1758528bdcd441e19fe4 | [
"MIT"
] | null | null | null | usersapp/migrations/0002_auto_20200309_1308.py | AlpsRunner/money_tranfer_page | f9c25b8907967a7b391a1758528bdcd441e19fe4 | [
"MIT"
] | null | null | null | usersapp/migrations/0002_auto_20200309_1308.py | AlpsRunner/money_tranfer_page | f9c25b8907967a7b391a1758528bdcd441e19fe4 | [
"MIT"
] | 1 | 2021-02-18T00:22:28.000Z | 2021-02-18T00:22:28.000Z | # Generated by Django 2.2.3 on 2020-03-09 08:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('usersapp', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='customuser',
options={'ordering': [... | 25.892857 | 97 | 0.577931 | 71 | 725 | 5.788732 | 0.633803 | 0.10219 | 0.121655 | 0.141119 | 0.209246 | 0.209246 | 0 | 0 | 0 | 0 | 0 | 0.049213 | 0.29931 | 725 | 27 | 98 | 26.851852 | 0.759843 | 0.062069 | 0 | 0.333333 | 1 | 0 | 0.112094 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.190476 | 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 |
f4a814027559c68499d94d8c532d0b3eb47fd784 | 1,467 | py | Python | scripts/djvuPageLabels.py | Noitaenola/ScanManual | d8d43c10bf0029c6d96eb75301aef7451f0318da | [
"CC0-1.0"
] | 2 | 2020-12-15T22:58:32.000Z | 2021-04-17T20:43:57.000Z | scripts/djvuPageLabels.py | Noitaenola/ScanManual | d8d43c10bf0029c6d96eb75301aef7451f0318da | [
"CC0-1.0"
] | null | null | null | scripts/djvuPageLabels.py | Noitaenola/ScanManual | d8d43c10bf0029c6d96eb75301aef7451f0318da | [
"CC0-1.0"
] | null | null | null | """
Generate page labels for the djvu and insert them.
"""
import os
SCAN = "../djv/SCAN_INS_OCR_BOOK.djvu"
SCAN_PAG = "../djv/SCAN_INS_OCR_BOOK_PAG.djvu"
djvuPageLabels = "djvuPageLabels.dsed"
# Delete old files (if they exist).
if os.path.isfile(SCAN_PAG):
os.remove(SCAN_PAG)
if os.path.isfile(djvuPageLabels):... | 30.5625 | 70 | 0.665985 | 202 | 1,467 | 4.782178 | 0.440594 | 0.101449 | 0.078675 | 0.040373 | 0.259834 | 0.224638 | 0.130435 | 0.130435 | 0.130435 | 0.130435 | 0 | 0.007475 | 0.179277 | 1,467 | 47 | 71 | 31.212766 | 0.794851 | 0.191547 | 0 | 0.148148 | 1 | 0 | 0.186007 | 0.052901 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.037037 | 0.259259 | 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 |
f4a8dfa0e65d819c7df8688de1b325ea598d0ec7 | 763 | py | Python | mesa.py | jadexter/astr3400 | d7e0cc523ca8314665ddf9389a3fcc7f1bf0935a | [
"MIT"
] | null | null | null | mesa.py | jadexter/astr3400 | d7e0cc523ca8314665ddf9389a3fcc7f1bf0935a | [
"MIT"
] | null | null | null | mesa.py | jadexter/astr3400 | d7e0cc523ca8314665ddf9389a3fcc7f1bf0935a | [
"MIT"
] | 1 | 2022-01-12T21:02:28.000Z | 2022-01-12T21:02:28.000Z |
import numpy as np
import os
from astropy.io import ascii
class mesa:
def init(self):
###### parameters ####################
self.path = '/Users/Jason/code/mesa_progenitors/' # file path
# self.type = 'solar' # file type
self.name = 'profileXX.data' ... | 27.25 | 72 | 0.567497 | 101 | 763 | 4.089109 | 0.455446 | 0.058111 | 0.053269 | 0.09201 | 0.135593 | 0.135593 | 0 | 0 | 0 | 0 | 0 | 0.011194 | 0.29751 | 763 | 27 | 73 | 28.259259 | 0.759328 | 0.146789 | 0 | 0 | 0 | 0 | 0.079288 | 0.056634 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f4aa8df60d65e6ce4ae229bf1b91ecf0af40af74 | 409 | py | Python | page_objects/temperature_main_page.py | NikhilPrakashrao/evaluationtask | 0df287f164b7981d5a0efb9cfbd8e6933f7141bf | [
"MIT"
] | null | null | null | page_objects/temperature_main_page.py | NikhilPrakashrao/evaluationtask | 0df287f164b7981d5a0efb9cfbd8e6933f7141bf | [
"MIT"
] | 4 | 2021-03-19T08:11:25.000Z | 2022-03-12T00:04:41.000Z | page_objects/temperature_main_page.py | NikhilPrakashrao/evaluationtask | 0df287f164b7981d5a0efb9cfbd8e6933f7141bf | [
"MIT"
] | 2 | 2019-11-15T05:29:10.000Z | 2019-11-21T08:25:11.000Z | """
This class models the main Temperature page.
"""
from .Base_Page import Base_Page
from .temperature_object import Temperature_Object
from utils.Wrapit import Wrapit
class Temperature_Main_Page(Base_Page,Temperature_Object):
"Page Object for the temperature main page"
def start(self):
"Use... | 25.5625 | 60 | 0.709046 | 56 | 409 | 5.035714 | 0.464286 | 0.085106 | 0.134752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220049 | 409 | 15 | 61 | 27.266667 | 0.884013 | 0.334963 | 0 | 0 | 0 | 0 | 0.254902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f4ad0f700a54a6a7a0d147787a69188fad12b44c | 956 | py | Python | blog/admin.py | thanhngk/blog | b11856c040e703a4621386453422ec0ec5e84005 | [
"MIT"
] | null | null | null | blog/admin.py | thanhngk/blog | b11856c040e703a4621386453422ec0ec5e84005 | [
"MIT"
] | 1 | 2020-02-12T00:58:19.000Z | 2020-02-12T00:58:19.000Z | blog/admin.py | thanhngk/blog | b11856c040e703a4621386453422ec0ec5e84005 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.utils.html import mark_safe, format_html
from . import models
class CategoryAdmin(admin.ModelAdmin):
fields = ('image_tag', 'title', 'description', 'image',)
readonly_fields = ('image_tag',)
class PostAdmin(admin.ModelAdmin):
fields = ('title', 'content', 'a... | 28.117647 | 77 | 0.686192 | 113 | 956 | 5.690265 | 0.424779 | 0.062208 | 0.087092 | 0.143079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16841 | 956 | 33 | 78 | 28.969697 | 0.808805 | 0.027197 | 0 | 0.095238 | 0 | 0 | 0.158576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.142857 | 0 | 0.619048 | 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 |
f4ad13bfe2ce84b97655adc34fc86efa23a2e9b9 | 11,937 | py | Python | icarus/models/cache/systems.py | Chrisys93/IcarusRepoSEND | f670b8e178c6e6e63cdabb71434eee8ac33c28e9 | [
"MIT"
] | 4 | 2021-04-29T10:16:04.000Z | 2022-03-02T08:14:53.000Z | icarus/models/cache/systems.py | Chrisys93/IcarusRepoSEND | f670b8e178c6e6e63cdabb71434eee8ac33c28e9 | [
"MIT"
] | 1 | 2021-12-13T07:40:46.000Z | 2021-12-20T16:59:08.000Z | icarus/models/cache/systems.py | Chrisys93/IcarusRepoSEND | f670b8e178c6e6e63cdabb71434eee8ac33c28e9 | [
"MIT"
] | 1 | 2021-11-25T05:42:20.000Z | 2021-11-25T05:42:20.000Z | # -*- coding: utf-8 -*-
"""Simple networks of caches modeled as single caches."""
import random
import numpy as np
from icarus.util import inheritdoc
from icarus.tools import DiscreteDist
from icarus.registry import register_cache_policy, CACHE_POLICY
from .policies import Cache
__all__ = [
'PathCache',
'Tr... | 30.92487 | 86 | 0.604172 | 1,617 | 11,937 | 4.369821 | 0.16945 | 0.013445 | 0.008491 | 0.011322 | 0.546136 | 0.531418 | 0.520521 | 0.508067 | 0.502406 | 0.481319 | 0 | 0.002074 | 0.313228 | 11,937 | 385 | 87 | 31.005195 | 0.859844 | 0.357963 | 0 | 0.525714 | 0 | 0 | 0.100849 | 0 | 0 | 0 | 0 | 0.002597 | 0 | 1 | 0.222857 | false | 0 | 0.034286 | 0.068571 | 0.417143 | 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 |
f4afe20034e08f44b85f3575a45f688447166ba5 | 4,820 | py | Python | kerastools/models/horde_models.py | gyfastas/ICCV2019-Horde | fbe086a0595d55e918ef69e8c4aa9374db3dec1e | [
"MIT"
] | 84 | 2019-07-31T09:12:57.000Z | 2021-11-11T05:50:37.000Z | kerastools/models/horde_models.py | gyfastas/ICCV2019-Horde | fbe086a0595d55e918ef69e8c4aa9374db3dec1e | [
"MIT"
] | 11 | 2019-12-16T22:10:33.000Z | 2022-02-10T00:16:18.000Z | kerastools/models/horde_models.py | gyfastas/ICCV2019-Horde | fbe086a0595d55e918ef69e8c4aa9374db3dec1e | [
"MIT"
] | 9 | 2019-09-10T06:24:13.000Z | 2020-12-01T10:21:19.000Z | #!/usr/bin/env python
# coding: utf-8
from tensorflow.keras.models import Model
from tensorflow.keras.layers import GlobalAveragePooling2D, Conv2D, Dense, Concatenate, Flatten, Input
from .abe_models import ABE
from ..layers import L2Normalisation
from ..layers.horde_layers import CKOP, PKOB
from .extractors import ge... | 42.280702 | 136 | 0.628008 | 637 | 4,820 | 4.474097 | 0.175824 | 0.122807 | 0.077193 | 0.018947 | 0.679298 | 0.668772 | 0.661404 | 0.655439 | 0.655439 | 0.601053 | 0 | 0.013266 | 0.264938 | 4,820 | 113 | 137 | 42.654867 | 0.791137 | 0.070539 | 0 | 0.585366 | 0 | 0 | 0.019463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036585 | false | 0 | 0.073171 | 0 | 0.146341 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f4b1935a01f6207965f8e7e0c09a4f6d7ecbf767 | 623 | py | Python | django_dicom/models/managers/messages.py | ZviBaratz/django-dicom | fc5d5443ebcab9af9705a2e81c58662789a34c62 | [
"Apache-2.0"
] | 8 | 2018-12-25T11:00:31.000Z | 2022-02-03T12:05:56.000Z | django_dicom/models/managers/messages.py | ZviBaratz/django-dicom | fc5d5443ebcab9af9705a2e81c58662789a34c62 | [
"Apache-2.0"
] | 49 | 2019-09-04T11:36:00.000Z | 2022-03-20T12:33:04.000Z | django_dicom/models/managers/messages.py | ZviBaratz/django-dicom | fc5d5443ebcab9af9705a2e81c58662789a34c62 | [
"Apache-2.0"
] | 4 | 2019-06-23T18:09:07.000Z | 2019-08-30T15:43:18.000Z | """
Messages for the :mod:`~django_dicom.models.managers` module.
"""
DATA_ELEMENT_CREATION_FAILURE = (
"Failed to create DataElement instance for:\n{data_element}\n{exception}"
)
HEADER_CREATION_FAILURE = "Failed to read header information!\n{exception}"
IMPORT_ERROR = (
"Failed to import {path}\nThe following... | 41.533333 | 163 | 0.76565 | 84 | 623 | 5.5 | 0.654762 | 0.051948 | 0.090909 | 0.099567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007366 | 0.128411 | 623 | 14 | 164 | 44.5 | 0.843462 | 0.130016 | 0 | 0 | 0 | 0.111111 | 0.728464 | 0.108614 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f4b26d017b6fd1ef60ce36dee6cc13edae9a6cd9 | 3,797 | py | Python | .sublime/Packages/CTags/ranking/parse.py | teedoo/dotfiles | 1c243d720e7cd3c3ed9ac2e2733ac32095b63fd2 | [
"MIT"
] | 1 | 2018-06-23T08:07:39.000Z | 2018-06-23T08:07:39.000Z | .sublime/Packages/CTags/ranking/parse.py | teedoo/dotfiles | 1c243d720e7cd3c3ed9ac2e2733ac32095b63fd2 | [
"MIT"
] | null | null | null | .sublime/Packages/CTags/ranking/parse.py | teedoo/dotfiles | 1c243d720e7cd3c3ed9ac2e2733ac32095b63fd2 | [
"MIT"
] | null | null | null | import re
from helpers.common import *
#import spdb
# spdb.start()
class Parser:
"""
Parses tag references and tag definitions. Used for ranking
"""
@staticmethod
def extract_member_exp(line_to_symbol, source):
"""
Extract receiver object e.g. receiver.mtd()
Strip away brac... | 39.968421 | 166 | 0.564656 | 441 | 3,797 | 4.791383 | 0.435374 | 0.019877 | 0.028396 | 0.025556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002771 | 0.334738 | 3,797 | 94 | 167 | 40.393617 | 0.833729 | 0.311298 | 0 | 0.137931 | 0 | 0.017241 | 0.123077 | 0 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0.017241 | false | 0.017241 | 0.034483 | 0 | 0.137931 | 0.051724 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
f4c62a43fe561dd5e5932d1e1a4ced5def8929f0 | 5,489 | py | Python | octopus_deploy_swagger_client/models/package_notes_result.py | cvent/octopus-deploy-api-client | 0e03e842e1beb29b132776aee077df570b88366a | [
"Apache-2.0"
] | null | null | null | octopus_deploy_swagger_client/models/package_notes_result.py | cvent/octopus-deploy-api-client | 0e03e842e1beb29b132776aee077df570b88366a | [
"Apache-2.0"
] | null | null | null | octopus_deploy_swagger_client/models/package_notes_result.py | cvent/octopus-deploy-api-client | 0e03e842e1beb29b132776aee077df570b88366a | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Octopus Server API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 2019.6.7+Branch.tags-2019.6.7.Sha.aa18dc6809953218c66f57eff7d26481d9b23d6a
Generated by: https://github.com/swagger-api... | 28.293814 | 119 | 0.595008 | 602 | 5,489 | 5.275748 | 0.20598 | 0.077771 | 0.120907 | 0.105793 | 0.379723 | 0.304786 | 0.276448 | 0.185768 | 0.071159 | 0.023929 | 0 | 0.023879 | 0.313354 | 5,489 | 193 | 120 | 28.440415 | 0.818785 | 0.33303 | 0 | 0.068966 | 1 | 0 | 0.052256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16092 | false | 0 | 0.034483 | 0 | 0.344828 | 0.022989 | 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 |
f4cbd13758113fbca9299d6853cce78731448c05 | 246 | py | Python | Diena_6_lists/uzd3_g1.py | edzya/Python_RTU_08_20 | d2921d998c611c18328dd523daf976a27ce858c1 | [
"MIT"
] | 8 | 2020-08-31T16:10:54.000Z | 2021-11-24T06:37:37.000Z | Diena_6_lists/uzd3_g1.py | edzya/Python_RTU_08_20 | d2921d998c611c18328dd523daf976a27ce858c1 | [
"MIT"
] | 8 | 2021-06-08T22:30:29.000Z | 2022-03-12T00:48:55.000Z | Diena_6_lists/uzd3_g1.py | edzya/Python_RTU_08_20 | d2921d998c611c18328dd523daf976a27ce858c1 | [
"MIT"
] | 12 | 2020-09-28T17:06:52.000Z | 2022-02-17T12:12:46.000Z | # Māras
text = input("ievadi teikumu")
texta = []
words = text.split()
textb = [w[::-1] for w in words]
# for item in words:
# texta.append(item[::-1])
# textb = " ".join(texta) # so we do not have " " after last item
print(" ".join(textb))
| 24.6 | 66 | 0.601626 | 38 | 246 | 3.894737 | 0.631579 | 0.094595 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010152 | 0.199187 | 246 | 9 | 67 | 27.333333 | 0.741117 | 0.47561 | 0 | 0 | 0 | 0 | 0.121951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
f4cbfc1dc177e2ec17da9466237f4b270667cc97 | 1,833 | py | Python | movimento/migrations/0001_initial.py | pontual/sistema-v1 | 5f63d11083077035326787a56c3ae8b66ee2054c | [
"MIT"
] | 1 | 2020-11-24T19:18:33.000Z | 2020-11-24T19:18:33.000Z | movimento/migrations/0001_initial.py | pontual/sistema-v1 | 5f63d11083077035326787a56c3ae8b66ee2054c | [
"MIT"
] | null | null | null | movimento/migrations/0001_initial.py | pontual/sistema-v1 | 5f63d11083077035326787a56c3ae8b66ee2054c | [
"MIT"
] | null | null | null | # Generated by Django 2.0.1 on 2018-01-30 23:36
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('registros', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | 40.733333 | 160 | 0.612111 | 190 | 1,833 | 5.773684 | 0.378947 | 0.051048 | 0.076572 | 0.120328 | 0.433911 | 0.433911 | 0.406563 | 0.406563 | 0.406563 | 0.406563 | 0 | 0.015295 | 0.250955 | 1,833 | 44 | 161 | 41.659091 | 0.783685 | 0.02455 | 0 | 0.297297 | 1 | 0 | 0.151176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.081081 | 0 | 0.189189 | 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 |
f4d09cd776a21fac10537eb2b7ff65fceb4ef261 | 1,072 | py | Python | physicoModule/physico_style.py | sseungyong/physico_project | a585a45097f788a6b5678195d455c2fe359e80c9 | [
"MIT"
] | null | null | null | physicoModule/physico_style.py | sseungyong/physico_project | a585a45097f788a6b5678195d455c2fe359e80c9 | [
"MIT"
] | null | null | null | physicoModule/physico_style.py | sseungyong/physico_project | a585a45097f788a6b5678195d455c2fe359e80c9 | [
"MIT"
] | null | null | null | import openpyxl
from openpyxl.styles import PatternFill
from openpyxl.styles import Border, Side
from openpyxl.styles import Alignment, Font
boldFont = Font(bold=True)
centetAlignment = Alignment(horizontal='center', vertical='center')
normal_box = Border(
left=Side(border_style='thin', color='FF000000'),
ri... | 35.733333 | 67 | 0.742537 | 125 | 1,072 | 6.272 | 0.344 | 0.114796 | 0.172194 | 0.193878 | 0.346939 | 0.346939 | 0.102041 | 0 | 0 | 0 | 0 | 0.065557 | 0.103545 | 1,072 | 29 | 68 | 36.965517 | 0.75026 | 0 | 0 | 0 | 0 | 0 | 0.154851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f4d2de77888b78240a85761ca993513e11a9e1a0 | 2,158 | py | Python | socket_rlbot_test/hive.py | ViliamVadocz/Hivemind | 900dfa39c577d7662de8b2f73c2eb5d89cf1d617 | [
"MIT"
] | 2 | 2020-03-20T20:08:18.000Z | 2022-03-21T10:41:52.000Z | socket_rlbot_test/hive.py | ViliamVadocz/Hivemind | 900dfa39c577d7662de8b2f73c2eb5d89cf1d617 | [
"MIT"
] | 1 | 2020-09-21T19:11:44.000Z | 2020-09-21T19:57:34.000Z | socket_rlbot_test/hive.py | ViliamVadocz/Hivemind | 900dfa39c577d7662de8b2f73c2eb5d89cf1d617 | [
"MIT"
] | 2 | 2020-05-12T16:49:44.000Z | 2020-05-12T16:50:41.000Z | import socket
from messages import send_packet, receive_packet, INPUT_MESSAGE
ID = 0
NUM_BOTS = 4
# Notice: multiplicity == 4, telling RLBot I want to control bots.
# Controlled IDs are [id, id + 1, id + 2, id + 3].
# There must be enough cars in the match config file to support this.
HIVE_READY_MESSAGE = {
"typ... | 27.316456 | 71 | 0.578777 | 257 | 2,158 | 4.719844 | 0.420233 | 0.046167 | 0.039571 | 0.032976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008174 | 0.319741 | 2,158 | 79 | 72 | 27.316456 | 0.81812 | 0.13531 | 0 | 0 | 0 | 0 | 0.114639 | 0 | 0 | 0 | 0 | 0.012658 | 0 | 1 | 0.111111 | false | 0.018519 | 0.037037 | 0 | 0.185185 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
f4d5c30d41374890cfd5ab96abf28c519a27e216 | 649 | py | Python | account/migrations/0010_auto_20200929_1634.py | cuiliang0302/myblog | 1530843ea347ba224cd9d717dac28b76a9acd516 | [
"Apache-2.0"
] | 5 | 2021-07-06T09:18:51.000Z | 2022-03-10T07:51:37.000Z | account/migrations/0010_auto_20200929_1634.py | cuiliang0302/myblog | 1530843ea347ba224cd9d717dac28b76a9acd516 | [
"Apache-2.0"
] | null | null | null | account/migrations/0010_auto_20200929_1634.py | cuiliang0302/myblog | 1530843ea347ba224cd9d717dac28b76a9acd516 | [
"Apache-2.0"
] | 2 | 2021-05-17T02:31:07.000Z | 2021-11-13T12:57:08.000Z | # Generated by Django 3.1.1 on 2020-09-29 16:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0009_auto_20200929_1109'),
]
operations = [
migrations.AlterModelOptions(
name='leavemessage',
options={'... | 28.217391 | 121 | 0.602465 | 67 | 649 | 5.671642 | 0.731343 | 0.086842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06405 | 0.254237 | 649 | 22 | 122 | 29.5 | 0.721074 | 0.069337 | 0 | 0.125 | 1 | 0 | 0.234219 | 0.038206 | 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 |
f4d8c5d1ad7ad186828ad149d1b7fe535e72a192 | 623 | py | Python | distsys/actions/status.py | austinlostinboston/distsys | 5ec4928dd86ef879ed64107aa2c7178e04c800d3 | [
"Apache-2.0"
] | null | null | null | distsys/actions/status.py | austinlostinboston/distsys | 5ec4928dd86ef879ed64107aa2c7178e04c800d3 | [
"Apache-2.0"
] | null | null | null | distsys/actions/status.py | austinlostinboston/distsys | 5ec4928dd86ef879ed64107aa2c7178e04c800d3 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
## Import builtins
import sys
from multiprocessing import Pool
## Import distsys
from distsys.services import services
from distsys.statistics import online
def client_status(client):
if online(client):
print "Client: " + str(client) + "\t" + "\033[92m" + "ON" + "\033[0m"
else:
... | 24.92 | 78 | 0.654896 | 80 | 623 | 4.95 | 0.4875 | 0.055556 | 0.070707 | 0.10101 | 0.121212 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0.036072 | 0.199037 | 623 | 24 | 79 | 25.958333 | 0.757515 | 0.075441 | 0 | 0 | 0 | 0 | 0.178634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.266667 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f4e0927bec5e8a1972a38b48d10ad4526bb85012 | 8,233 | py | Python | sdk/python/pulumi_alicloud/ros/get_stacks.py | pulumi/pulumi-alicloud | 9c34d84b4588a7c885c6bec1f03b5016e5a41683 | [
"ECL-2.0",
"Apache-2.0"
] | 42 | 2019-03-18T06:34:37.000Z | 2022-03-24T07:08:57.000Z | sdk/python/pulumi_alicloud/ros/get_stacks.py | pulumi/pulumi-alicloud | 9c34d84b4588a7c885c6bec1f03b5016e5a41683 | [
"ECL-2.0",
"Apache-2.0"
] | 152 | 2019-04-15T21:03:44.000Z | 2022-03-29T18:00:57.000Z | sdk/python/pulumi_alicloud/ros/get_stacks.py | pulumi/pulumi-alicloud | 9c34d84b4588a7c885c6bec1f03b5016e5a41683 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2020-08-26T17:30:07.000Z | 2021-07-05T01:37:45.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** 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... | 38.834906 | 247 | 0.660391 | 1,020 | 8,233 | 5.033333 | 0.169608 | 0.029801 | 0.040514 | 0.070121 | 0.218543 | 0.14141 | 0.106739 | 0.00896 | 0 | 0 | 0 | 0.001426 | 0.233208 | 8,233 | 211 | 248 | 39.018957 | 0.811817 | 0.185109 | 0 | 0.117647 | 1 | 0 | 0.145745 | 0.012766 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098039 | false | 0 | 0.039216 | 0.071895 | 0.24183 | 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 |
f4e6badc9e35010273d493b630f9514a6443f566 | 247 | py | Python | configloader.py | metecyu/shadowsocksr | 1f472d6975a1f40f80dfd53e41455b92b2fe1e48 | [
"Apache-2.0"
] | null | null | null | configloader.py | metecyu/shadowsocksr | 1f472d6975a1f40f80dfd53e41455b92b2fe1e48 | [
"Apache-2.0"
] | null | null | null | configloader.py | metecyu/shadowsocksr | 1f472d6975a1f40f80dfd53e41455b92b2fe1e48 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import importloader
g_config = None
def load_config():
global g_config
g_config = importloader.loads(['userapiconfig', 'apiconfig'])
def get_config():
return g_config
load_config()
| 15.4375 | 63 | 0.668016 | 32 | 247 | 4.96875 | 0.625 | 0.176101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005 | 0.190283 | 247 | 15 | 64 | 16.466667 | 0.785 | 0.153846 | 0 | 0 | 0 | 0 | 0.115789 | 0 | 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 |
f4e9e111a4ac20a033ddcec9df09a784af0fad0f | 400 | py | Python | goods/migrations/0007_alter_pharmproduct_unique_together.py | dcopm999/pharmcrm2-goods | 2d5878c9f2854f65b8ebf84faccb798865568d9b | [
"MIT"
] | null | null | null | goods/migrations/0007_alter_pharmproduct_unique_together.py | dcopm999/pharmcrm2-goods | 2d5878c9f2854f65b8ebf84faccb798865568d9b | [
"MIT"
] | null | null | null | goods/migrations/0007_alter_pharmproduct_unique_together.py | dcopm999/pharmcrm2-goods | 2d5878c9f2854f65b8ebf84faccb798865568d9b | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-10-12 09:20
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('goods', '0006_auto_20211012_0812'),
]
operations = [
migrations.AlterUniqueTogether(
name='pharmproduct',
unique_together={(... | 22.222222 | 92 | 0.625 | 41 | 400 | 5.926829 | 0.853659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103333 | 0.25 | 400 | 17 | 93 | 23.529412 | 0.706667 | 0.1125 | 0 | 0 | 1 | 0 | 0.240793 | 0.065156 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 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 |
f4ead1410de7cf8c99becb468a9d548a6b9e0080 | 1,658 | py | Python | viberbot/api/user_profile.py | wowkin2/viber-bot-python | b5b544773c74c1f90b1de35b015ca22208ab3363 | [
"Apache-2.0"
] | null | null | null | viberbot/api/user_profile.py | wowkin2/viber-bot-python | b5b544773c74c1f90b1de35b015ca22208ab3363 | [
"Apache-2.0"
] | null | null | null | viberbot/api/user_profile.py | wowkin2/viber-bot-python | b5b544773c74c1f90b1de35b015ca22208ab3363 | [
"Apache-2.0"
] | null | null | null | from future.utils import python_2_unicode_compatible
class UserProfile(object):
def __init__(self, name=None, avatar=None, user_id=None, country=None, language=None, api_version=None):
self._name = name
self._avatar = avatar
self._id = user_id
self._country = country
self._... | 26.741935 | 110 | 0.592883 | 201 | 1,658 | 4.572139 | 0.179104 | 0.113166 | 0.091404 | 0.091404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006981 | 0.308806 | 1,658 | 61 | 111 | 27.180328 | 0.794939 | 0 | 0 | 0.117647 | 0 | 0.019608 | 0.096502 | 0.012666 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.019608 | 0.137255 | 0.372549 | 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 |
f4ec61b03a1be92d45f4c46ab15b9c68e49c2342 | 1,895 | py | Python | py/sonetos.py | ceciliakuhnvanin/meusoneto.github.io | b357e6386f979d878314c178bab237969c4f7603 | [
"MIT"
] | 1 | 2019-12-09T13:59:34.000Z | 2019-12-09T13:59:34.000Z | py/sonetos.py | ceciliakuhnvanin/ceciliakuhnvanin.github.io | b357e6386f979d878314c178bab237969c4f7603 | [
"MIT"
] | null | null | null | py/sonetos.py | ceciliakuhnvanin/ceciliakuhnvanin.github.io | b357e6386f979d878314c178bab237969c4f7603 | [
"MIT"
] | null | null | null | import random
def estrofe1():
return verso()+ "<br>" + verso() + "<br>" + verso() + "<br>" + verso() + "<br> <br>"
return """
Amo-te tanto, meu amor... nao canto
O humano coracao com mais verdade...
Amo-te como amigo e como amante
Numa sempre diversa realidade
"""
def estrofe2():
return verso()+ "<br>" + ... | 26.319444 | 104 | 0.605805 | 238 | 1,895 | 4.823529 | 0.470588 | 0.085366 | 0.10453 | 0.121951 | 0.215157 | 0.147213 | 0.147213 | 0.147213 | 0.147213 | 0.111498 | 0 | 0.010485 | 0.194723 | 1,895 | 71 | 105 | 26.690141 | 0.741809 | 0 | 0 | 0.254237 | 0 | 0 | 0.454593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.016949 | 0.016949 | null | null | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f4ed468a502414a79b3badfa15f28d54c74776a7 | 1,250 | py | Python | core/admin.py | monitorme/monitorme | 9ee0883749db8cf074702c1937c1d03bf4404d66 | [
"MIT"
] | 1 | 2019-05-09T20:47:48.000Z | 2019-05-09T20:47:48.000Z | core/admin.py | chinhle23/monitorme | 9ee0883749db8cf074702c1937c1d03bf4404d66 | [
"MIT"
] | 20 | 2019-04-15T18:44:51.000Z | 2019-04-26T04:25:30.000Z | core/admin.py | chinhle23/monitorme | 9ee0883749db8cf074702c1937c1d03bf4404d66 | [
"MIT"
] | 1 | 2019-05-19T15:51:11.000Z | 2019-05-19T15:51:11.000Z | from django.contrib import admin
from core.models import User, TrackerGroup, TrackerGroupInstance, Question, Answer, Response, TrackerGroupInstance
@admin.register(User)
class UserAdmin(admin.ModelAdmin):
list_display = (
'username',
'name',
'email',
'slug',
)
@admin.register(T... | 21.551724 | 114 | 0.596 | 109 | 1,250 | 6.66055 | 0.302752 | 0.107438 | 0.157025 | 0.214876 | 0.267218 | 0.085399 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2824 | 1,250 | 58 | 115 | 21.551724 | 0.809365 | 0 | 0 | 0.423077 | 0 | 0 | 0.178257 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.269231 | 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 |
f4f0e01246f0521a0791d32791b70acc380a09e2 | 859 | py | Python | ker/api/ssh.py | csvwolf/ker.py | ac86e1f01cdef0f3ae8b45022df20e8f4fcc9a76 | [
"MIT"
] | 5 | 2019-09-30T08:40:53.000Z | 2019-10-14T10:22:06.000Z | ker/api/ssh.py | csvwolf/ker.py | ac86e1f01cdef0f3ae8b45022df20e8f4fcc9a76 | [
"MIT"
] | null | null | null | ker/api/ssh.py | csvwolf/ker.py | ac86e1f01cdef0f3ae8b45022df20e8f4fcc9a76 | [
"MIT"
] | null | null | null | """
ssh module
"""
from ker.utils import request
from .list import API_LIST
class SSH:
"""
ssh api
"""
def __init__(self, email, token):
self.email = email
self.token = token
def list(self):
"""
list ssh keys
"""
return request(API_LIST.SSH_LIST.val... | 19.522727 | 51 | 0.472643 | 90 | 859 | 4.388889 | 0.244444 | 0.113924 | 0.141772 | 0.182278 | 0.455696 | 0.397468 | 0.397468 | 0 | 0 | 0 | 0 | 0 | 0.400466 | 859 | 43 | 52 | 19.976744 | 0.76699 | 0.072177 | 0 | 0.347826 | 0 | 0 | 0.052482 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.086957 | 0 | 0.434783 | 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 |
f4f4d988aedd19cfd6855518147d15d16442adff | 3,991 | py | Python | test/jinja_script.py | SecSamDev/cancamusa | 3f9ac5b7f8f4d26bc38e53f5950af07dd19f7a37 | [
"MIT"
] | 3 | 2021-03-12T20:54:32.000Z | 2022-02-16T08:38:45.000Z | test/jinja_script.py | SecSamDev/cancamusa | 3f9ac5b7f8f4d26bc38e53f5950af07dd19f7a37 | [
"MIT"
] | null | null | null | test/jinja_script.py | SecSamDev/cancamusa | 3f9ac5b7f8f4d26bc38e53f5950af07dd19f7a37 | [
"MIT"
] | null | null | null | from jinja2 import Template
import sys
import os
import argparse
sys.path.append(os.path.join(os.path.dirname(__file__), '../lib'))
from ad_struct import ADStructure
with open(os.path.join(os.path.dirname(__file__), '../lib/scripter/templates/fill-ad.ps1.jinja'),'r') as fill_ad:
template = Template(fill_ad.read(... | 35.008772 | 113 | 0.341268 | 238 | 3,991 | 5.504202 | 0.310924 | 0.074809 | 0.053435 | 0.059542 | 0.248855 | 0.248855 | 0.170992 | 0.170992 | 0.08855 | 0 | 0 | 0.014341 | 0.545728 | 3,991 | 113 | 114 | 35.318584 | 0.708218 | 0 | 0 | 0.232323 | 0 | 0 | 0.239158 | 0.023565 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.020202 | 0.050505 | 0 | 0.050505 | 0.010101 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f4f857bd8eee7c823090bef728c3cc8f71550fc8 | 464 | py | Python | app/file_helpers.py | lokalise-document-preview/docx-to-pdf | 7f29da2128c84dcc49691cee1e4564bd4e53139a | [
"BSD-3-Clause"
] | null | null | null | app/file_helpers.py | lokalise-document-preview/docx-to-pdf | 7f29da2128c84dcc49691cee1e4564bd4e53139a | [
"BSD-3-Clause"
] | null | null | null | app/file_helpers.py | lokalise-document-preview/docx-to-pdf | 7f29da2128c84dcc49691cee1e4564bd4e53139a | [
"BSD-3-Clause"
] | null | null | null | from io import BytesIO
from zipfile import ZipFile
import urllib.request
ALLOWED_EXTENSIONS = set(['docx'])
def is_file_allowed(filename):
return '.' in filename and \
filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS
def unzip_into_bytes(url):
zip = urllib.request.urlopen(url)
archive = Z... | 27.294118 | 64 | 0.6875 | 61 | 464 | 5.131148 | 0.557377 | 0.083067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005333 | 0.19181 | 464 | 16 | 65 | 29 | 0.829333 | 0 | 0 | 0 | 0 | 0 | 0.015086 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0.076923 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f4fc323b73f61b9730c5cd825283cc61af107fb1 | 438 | py | Python | lims/codonusage/serializers.py | sqilz/LIMS-Backend | b64e1fa512f89e4492803d44c6b8c35e4d4724cc | [
"MIT"
] | 12 | 2017-03-01T10:39:36.000Z | 2022-01-04T06:17:19.000Z | lims/codonusage/serializers.py | sqilz/LIMS-Backend | b64e1fa512f89e4492803d44c6b8c35e4d4724cc | [
"MIT"
] | 29 | 2017-04-25T14:05:08.000Z | 2021-06-21T14:41:53.000Z | lims/codonusage/serializers.py | sqilz/LIMS-Backend | b64e1fa512f89e4492803d44c6b8c35e4d4724cc | [
"MIT"
] | 4 | 2017-10-11T16:22:53.000Z | 2021-02-23T15:45:21.000Z | from rest_framework import serializers
from .models import CodonUsageTable, CodonUsage
class CodonUsageTableSerializer(serializers.ModelSerializer):
species = serializers.SlugRelatedField(read_only=True, slug_field='name')
class Meta:
model = CodonUsageTable
fields = '__all__'
class CodonU... | 23.052632 | 77 | 0.73516 | 39 | 438 | 8.076923 | 0.666667 | 0.165079 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191781 | 438 | 18 | 78 | 24.333333 | 0.889831 | 0 | 0 | 0.181818 | 0 | 0 | 0.03653 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.636364 | 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 |
760037b1aa269f8737906da93985e7d08f48507b | 13,637 | py | Python | src/patcher.py | MustangYM/xia0LLDB | 3c494dd86582f99966b5091af073c3c3033d733a | [
"Info-ZIP"
] | 464 | 2018-10-04T06:57:54.000Z | 2022-03-31T06:27:54.000Z | src/patcher.py | MustangYM/xia0LLDB | 3c494dd86582f99966b5091af073c3c3033d733a | [
"Info-ZIP"
] | 31 | 2019-07-04T08:42:33.000Z | 2022-03-21T20:49:57.000Z | src/patcher.py | MustangYM/xia0LLDB | 3c494dd86582f99966b5091af073c3c3033d733a | [
"Info-ZIP"
] | 92 | 2019-07-03T02:50:55.000Z | 2022-03-26T06:35:56.000Z |
#! /usr/bin/env python3
# ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______
# |______|______|______|______|______|______|______|______|______|______|______|______|______|______|______|______|______|
# _ ___ _ _ _____ ... | 38.851852 | 165 | 0.569333 | 1,534 | 13,637 | 4.474576 | 0.214472 | 0.022145 | 0.009178 | 0.019376 | 0.208625 | 0.119464 | 0.097756 | 0.078234 | 0.042249 | 0.042249 | 0 | 0.030854 | 0.306006 | 13,637 | 350 | 166 | 38.962857 | 0.694421 | 0.098849 | 0 | 0.121094 | 0 | 0.011719 | 0.732127 | 0.101573 | 0 | 0 | 0.021114 | 0 | 0 | 1 | 0.023438 | false | 0 | 0.03125 | 0 | 0.117188 | 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 |
7605c2a904ed92fa92b56ffb8ac8457effa15fef | 2,676 | py | Python | neutron_taas/services/taas/agents/extensions/taas.py | deepak-dt/tap-as-a-service | 96cb85a9a9094cd368750b6b422e7520ad73fc2a | [
"Apache-2.0"
] | 68 | 2015-10-18T02:57:10.000Z | 2022-02-22T11:33:25.000Z | neutron_taas/services/taas/agents/extensions/taas.py | deepak-dt/tap-as-a-service | 96cb85a9a9094cd368750b6b422e7520ad73fc2a | [
"Apache-2.0"
] | null | null | null | neutron_taas/services/taas/agents/extensions/taas.py | deepak-dt/tap-as-a-service | 96cb85a9a9094cd368750b6b422e7520ad73fc2a | [
"Apache-2.0"
] | 27 | 2015-11-11T02:00:35.000Z | 2020-03-07T03:36:33.000Z | # Copyright 2017 FUJITSU LABORATORIES LTD.
# Copyright 2016 NEC Technologies India Pvt. Ltd.
#
# 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
#... | 29.406593 | 74 | 0.707025 | 354 | 2,676 | 5.214689 | 0.415254 | 0.039003 | 0.054171 | 0.056338 | 0.218852 | 0.122427 | 0.078548 | 0.078548 | 0.049837 | 0 | 0 | 0.00759 | 0.212257 | 2,676 | 90 | 75 | 29.733333 | 0.868121 | 0.435725 | 0 | 0.225 | 0 | 0 | 0.044003 | 0.019872 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.05 | 0.15 | 0 | 0.45 | 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 |
760fb6a21efafa6411521bd8859f0cb8b3cd3a80 | 7,496 | py | Python | tests/compas/datastructures/test_halfedge.py | duchaoyu/compas | d484500d68d44fd6e227c3bbee20a2edde6e6c96 | [
"MIT"
] | null | null | null | tests/compas/datastructures/test_halfedge.py | duchaoyu/compas | d484500d68d44fd6e227c3bbee20a2edde6e6c96 | [
"MIT"
] | null | null | null | tests/compas/datastructures/test_halfedge.py | duchaoyu/compas | d484500d68d44fd6e227c3bbee20a2edde6e6c96 | [
"MIT"
] | null | null | null | import pytest
import compas
from compas.datastructures import HalfEdge
# ==============================================================================
# Fixtures
# ==============================================================================
@pytest.fixture
def mesh():
vertices = [None, None, None, None]
... | 30.847737 | 117 | 0.603122 | 937 | 7,496 | 4.554963 | 0.082177 | 0.045923 | 0.018978 | 0.027413 | 0.745314 | 0.680647 | 0.512418 | 0.365511 | 0.304827 | 0.228444 | 0 | 0.00488 | 0.152481 | 7,496 | 242 | 118 | 30.975207 | 0.666929 | 0.143276 | 0 | 0.418919 | 0 | 0 | 0.036858 | 0 | 0 | 0 | 0 | 0 | 0.189189 | 1 | 0.216216 | false | 0 | 0.02027 | 0.02027 | 0.263514 | 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 |
761455f7202dbbf85c21cef0790534685d9d90c9 | 1,950 | py | Python | tests/tabnet/test_utils.py | clemens33/thesis | c94e066c2fe22881a7465eb9c3859bd02138748e | [
"MIT"
] | null | null | null | tests/tabnet/test_utils.py | clemens33/thesis | c94e066c2fe22881a7465eb9c3859bd02138748e | [
"MIT"
] | null | null | null | tests/tabnet/test_utils.py | clemens33/thesis | c94e066c2fe22881a7465eb9c3859bd02138748e | [
"MIT"
] | null | null | null | import pytest
import torch
class TestGhostBatchNorm1d():
@pytest.mark.parametrize("batch_size, input_size, momentum, virtual_batch_size",
[
(128, 32, 0.1, 4),
(1024, 512, 0.01, 128),
])
... | 40.625 | 111 | 0.576923 | 227 | 1,950 | 4.77533 | 0.264317 | 0.116236 | 0.118081 | 0.132841 | 0.693727 | 0.553506 | 0.54059 | 0.535055 | 0.457565 | 0.457565 | 0 | 0.071482 | 0.318462 | 1,950 | 47 | 112 | 41.489362 | 0.744169 | 0.038462 | 0 | 0.242424 | 0 | 0 | 0.064741 | 0 | 0 | 0 | 0 | 0.021277 | 0.121212 | 1 | 0.060606 | false | 0 | 0.121212 | 0 | 0.212121 | 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 |
7615ead4ded419863698a63d43992843966fc953 | 6,237 | py | Python | tests/post/steps/test_salt_api.py | CPT-Jack-A-Castle/metalk8s | 0e99ea4d44c8b1ba3268e2a4fa6955d1d27d0172 | [
"Apache-2.0"
] | 1 | 2021-07-02T13:56:13.000Z | 2021-07-02T13:56:13.000Z | tests/post/steps/test_salt_api.py | elenamarcova/metalk8s | d23df7144e710777150fdfe5779d733743715771 | [
"Apache-2.0"
] | null | null | null | tests/post/steps/test_salt_api.py | elenamarcova/metalk8s | d23df7144e710777150fdfe5779d733743715771 | [
"Apache-2.0"
] | null | null | null | import ast
import base64
import json
import requests
import pytest
from pytest_bdd import parsers, scenario, then, when
def _negation(value):
"""Parse an optional negation after a verb (in a Gherkin feature spec)."""
if value == "":
return False
elif value in [" not", "not"]:
return True... | 24.848606 | 87 | 0.655764 | 766 | 6,237 | 5.130548 | 0.193211 | 0.073028 | 0.036641 | 0.029262 | 0.380153 | 0.333842 | 0.276336 | 0.222137 | 0.222137 | 0.159796 | 0 | 0.008109 | 0.209075 | 6,237 | 250 | 88 | 24.948 | 0.788567 | 0.020523 | 0 | 0.237288 | 0 | 0 | 0.222933 | 0.043799 | 0 | 0 | 0 | 0 | 0.062147 | 1 | 0.124294 | false | 0.062147 | 0.033898 | 0.011299 | 0.19774 | 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 |
7616dda9fad9b0157a6d9ac2b5091df2bb252af0 | 1,397 | py | Python | ClassificationAndRegression/EnsembleMethods/BaggingClassifier.py | kopok2/machine-learning-algorithms | 9d5eb9c17a1354e726b79e9cfae9e5638976b919 | [
"MIT"
] | null | null | null | ClassificationAndRegression/EnsembleMethods/BaggingClassifier.py | kopok2/machine-learning-algorithms | 9d5eb9c17a1354e726b79e9cfae9e5638976b919 | [
"MIT"
] | null | null | null | ClassificationAndRegression/EnsembleMethods/BaggingClassifier.py | kopok2/machine-learning-algorithms | 9d5eb9c17a1354e726b79e9cfae9e5638976b919 | [
"MIT"
] | null | null | null | # coding=utf-8
"""Comparison of various classifiers acting alone and inside an bagging ensemble."""
from sklearn import datasets, model_selection, metrics, tree, ensemble
if __name__ == "__main__":
print("Loading data...")
X, y = datasets.load_iris(return_X_y=True)
X_train, X_test, y_train, y_test = model... | 36.763158 | 117 | 0.714388 | 192 | 1,397 | 4.9375 | 0.3125 | 0.101266 | 0.067511 | 0.135021 | 0.558017 | 0.496835 | 0.481013 | 0.455696 | 0.455696 | 0.265823 | 0 | 0.010851 | 0.142448 | 1,397 | 37 | 118 | 37.756757 | 0.780467 | 0.065855 | 0 | 0.285714 | 0 | 0 | 0.116243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.035714 | 0.714286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
76192e4120156a1a29781a50b0d334e2d492e9b0 | 1,121 | py | Python | TensorFlow/_BasicsReference/ref_tensors.py | superjamesmccafferty/DeepLearning-PersonalExamples | 905a7afa20ff5447fc2ef537c1add666ee967e31 | [
"MIT"
] | null | null | null | TensorFlow/_BasicsReference/ref_tensors.py | superjamesmccafferty/DeepLearning-PersonalExamples | 905a7afa20ff5447fc2ef537c1add666ee967e31 | [
"MIT"
] | null | null | null | TensorFlow/_BasicsReference/ref_tensors.py | superjamesmccafferty/DeepLearning-PersonalExamples | 905a7afa20ff5447fc2ef537c1add666ee967e31 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
def write_event_file():
writer = tf.summary.FileWriter('.')
writer.add_graph(tf.get_default_graph())
print("Event Written")
def execute():
"""
Tensor programs... | 25.477273 | 106 | 0.688671 | 160 | 1,121 | 4.69375 | 0.6375 | 0.039947 | 0.063915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01649 | 0.242641 | 1,121 | 43 | 107 | 26.069767 | 0.86808 | 0.335415 | 0 | 0 | 0 | 0 | 0.033816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
761ed7fe605135a59479f36881b429dc27367dc3 | 828 | py | Python | decoy/pytest_plugin.py | mcous/decoy | 0d5345ecbd3cacee795ac644530048a282c2ba20 | [
"MIT"
] | 8 | 2020-11-30T23:35:54.000Z | 2022-01-18T17:53:15.000Z | decoy/pytest_plugin.py | mcous/decoy | 0d5345ecbd3cacee795ac644530048a282c2ba20 | [
"MIT"
] | 96 | 2020-12-02T17:01:41.000Z | 2022-03-27T05:10:46.000Z | decoy/pytest_plugin.py | mcous/decoy | 0d5345ecbd3cacee795ac644530048a282c2ba20 | [
"MIT"
] | null | null | null | """Pytest plugin to setup and teardown a Decoy instance.
The plugin will be registered with pytest when you install Decoy. It adds a
fixture without modifying any other pytest behavior. Its usage is optional
but highly recommended.
"""
import pytest
from typing import Iterable
from decoy import Decoy
@pytest.fixture... | 26.709677 | 76 | 0.675121 | 112 | 828 | 4.955357 | 0.607143 | 0.072072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230676 | 828 | 30 | 77 | 27.6 | 0.871272 | 0.72343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7620dd7359f8d597968e8acfc99bba18bd64cbb4 | 905 | py | Python | mesen-s/labels-readme.py | adam-larson-lee/demons-crest | 8443ec2f00ed3f0a564bf4f2e2f6a833cb222fbf | [
"MIT"
] | null | null | null | mesen-s/labels-readme.py | adam-larson-lee/demons-crest | 8443ec2f00ed3f0a564bf4f2e2f6a833cb222fbf | [
"MIT"
] | null | null | null | mesen-s/labels-readme.py | adam-larson-lee/demons-crest | 8443ec2f00ed3f0a564bf4f2e2f6a833cb222fbf | [
"MIT"
] | null | null | null | import os
LABELS_FILE_NAME = 'labels.msl'
README_FILE_NAME = 'README.md'
if os.path.exists(README_FILE_NAME):
os.remove(README_FILE_NAME)
labelsFile = open(LABELS_FILE_NAME, 'r')
readmeFile = open(README_FILE_NAME, 'a+')
readmeFile.write('# WORK\n')
readmeFile.write('\n')
readmeFile.write('|Address|Label|Comment|... | 29.193548 | 72 | 0.702762 | 100 | 905 | 6.24 | 0.38 | 0.288462 | 0.089744 | 0.054487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009975 | 0.113812 | 905 | 31 | 73 | 29.193548 | 0.76808 | 0 | 0 | 0.2 | 0 | 0 | 0.108168 | 0.055188 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 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 |
76210c35d7bc612d7f155a8e3f846c857c31cdc0 | 7,471 | py | Python | merlin/config/results_backend.py | ben-bay/merlin | d7a82f951029246bff8964f0c095f0873bc03753 | [
"MIT"
] | null | null | null | merlin/config/results_backend.py | ben-bay/merlin | d7a82f951029246bff8964f0c095f0873bc03753 | [
"MIT"
] | null | null | null | merlin/config/results_backend.py | ben-bay/merlin | d7a82f951029246bff8964f0c095f0873bc03753 | [
"MIT"
] | null | null | null | ###############################################################################
# Copyright (c) 2019, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory
# Written by the Merlin dev team, listed in the CONTRIBUTORS file.
# <merlin@llnl.gov>
#
# LLNL-CODE-797170
# All righ... | 31.92735 | 81 | 0.679963 | 958 | 7,471 | 5.161795 | 0.269311 | 0.084934 | 0.039434 | 0.02912 | 0.205662 | 0.16724 | 0.144793 | 0.123559 | 0.098079 | 0.089788 | 0 | 0.003047 | 0.209343 | 7,471 | 233 | 82 | 32.064378 | 0.834095 | 0.280284 | 0 | 0.263566 | 0 | 0 | 0.206043 | 0.022612 | 0 | 0 | 0 | 0.004292 | 0 | 1 | 0.046512 | false | 0.27907 | 0.054264 | 0 | 0.170543 | 0.007752 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7622cb198269916876fb877da1e4d4f0b20399fe | 1,786 | py | Python | app/__init__.py | landportal/landbook-data-access-api | ed49a1fdfec168dbeea50b67a2bcb147e4875e45 | [
"MIT"
] | null | null | null | app/__init__.py | landportal/landbook-data-access-api | ed49a1fdfec168dbeea50b67a2bcb147e4875e45 | [
"MIT"
] | null | null | null | app/__init__.py | landportal/landbook-data-access-api | ed49a1fdfec168dbeea50b67a2bcb147e4875e45 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# landportal-data-access-api
# Copyright (c)2014, WESO, Web Semantics Oviedo.
# Written by Herminio García.
# This file is part of landportal-data-access-api.
#
# landportal-data-access-api is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public L... | 37.208333 | 102 | 0.773796 | 271 | 1,786 | 4.99631 | 0.476015 | 0.062038 | 0.088626 | 0.10192 | 0.246677 | 0.041359 | 0 | 0 | 0 | 0 | 0 | 0.014076 | 0.12486 | 1,786 | 47 | 103 | 38 | 0.852207 | 0.569989 | 0 | 0 | 0 | 0 | 0.280702 | 0.206478 | 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 |
76282e78f08b03d50382d165d38e2b84dacd1c9a | 431 | py | Python | src/schemas/WordSchema.py | jodiefostersarmy/T4A2 | 1aba2eada4e63b3626bcdcc544057c9ef944101e | [
"MIT"
] | null | null | null | src/schemas/WordSchema.py | jodiefostersarmy/T4A2 | 1aba2eada4e63b3626bcdcc544057c9ef944101e | [
"MIT"
] | 8 | 2021-02-06T07:49:46.000Z | 2021-03-12T09:23:18.000Z | src/schemas/WordSchema.py | jodiefostersarmy/T4A2 | 1aba2eada4e63b3626bcdcc544057c9ef944101e | [
"MIT"
] | null | null | null | from main import ma
from models.Word import Word
from marshmallow.validate import Length
class WordSchema(ma.SQLAlchemyAutoSchema):
class Meta:
model = Word
word = ma.String(required=True, validate=Length(min=3))
definition = ma.String(required=True, validate=Length(min=5))
pronunciation = ma... | 28.733333 | 68 | 0.7471 | 57 | 431 | 5.614035 | 0.45614 | 0.075 | 0.15 | 0.1875 | 0.346875 | 0.346875 | 0.346875 | 0 | 0 | 0 | 0 | 0.008174 | 0.148492 | 431 | 15 | 69 | 28.733333 | 0.86376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.727273 | 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 |
76284806a437836bc71cb862366be6c43201d3b7 | 330 | py | Python | src/config.py | gustavodsf/dokcer-py-gmail | be78a98f5e8b19c5b289df20fa3ed1cd33fbf7cc | [
"BSD-2-Clause"
] | 1 | 2022-02-10T01:57:37.000Z | 2022-02-10T01:57:37.000Z | src/config.py | gustavodsf/dokcer-py-gmail | be78a98f5e8b19c5b289df20fa3ed1cd33fbf7cc | [
"BSD-2-Clause"
] | null | null | null | src/config.py | gustavodsf/dokcer-py-gmail | be78a98f5e8b19c5b289df20fa3ed1cd33fbf7cc | [
"BSD-2-Clause"
] | null | null | null | import json
import logging
class Config(object):
def __init__(self):
self.logger = logging.getLogger('CONFIG')
def read(self):
with open("config.json") as file:
data = json.load(file)
file.close()
self.logger.info("Success on reading configuration file.")
r... | 23.571429 | 66 | 0.618182 | 40 | 330 | 5 | 0.625 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 330 | 14 | 67 | 23.571429 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.166163 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
762bb54b8972be89bbec9daaee2ca67505765c72 | 6,328 | py | Python | Computer_science/B05_Python/01_Basics/S01_Basic_syntax.py | Polirecyliente/SGConocimiento | 560b08984236d7a10f50c6b5e6fb28844193d81b | [
"CC-BY-4.0"
] | null | null | null | Computer_science/B05_Python/01_Basics/S01_Basic_syntax.py | Polirecyliente/SGConocimiento | 560b08984236d7a10f50c6b5e6fb28844193d81b | [
"CC-BY-4.0"
] | null | null | null | Computer_science/B05_Python/01_Basics/S01_Basic_syntax.py | Polirecyliente/SGConocimiento | 560b08984236d7a10f50c6b5e6fb28844193d81b | [
"CC-BY-4.0"
] | null | null | null |
# Basic syntax
#T# Table of contents
#C# Blocks of code
#C# Variables, constants, literals
#C# - Type hints
#C# Escape sequences and escaped chars
#C# Expressions
#C# Function calls
#C# Statements
#C# Multiline statements
#C# Multistatement lines
#C# Metadata
#T# Beginning of content
# |-------------------------... | 37.443787 | 267 | 0.586599 | 827 | 6,328 | 4.482467 | 0.361548 | 0.008632 | 0.014567 | 0.020232 | 0.052333 | 0.016725 | 0 | 0 | 0 | 0 | 0 | 0.023666 | 0.15866 | 6,328 | 169 | 268 | 37.443787 | 0.672615 | 0.857775 | 0 | 0.115385 | 0 | 0 | 0.318059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.038462 | 0 | 0 | 0 | 0.115385 | 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 |
57ff79a6e785cc734bb18228b23c2c08ae1c5434 | 2,334 | py | Python | tests/test_shellcraft.py | maebert/shellcraft | bab16de366073d18327f6bf92294f42c5728cd25 | [
"MIT"
] | 14 | 2017-04-11T06:42:00.000Z | 2021-03-04T00:08:18.000Z | tests/test_shellcraft.py | maebert/shellcraft | bab16de366073d18327f6bf92294f42c5728cd25 | [
"MIT"
] | 4 | 2017-07-29T07:13:50.000Z | 2019-04-30T10:39:15.000Z | tests/test_shellcraft.py | maebert/shellcraft | bab16de366073d18327f6bf92294f42c5728cd25 | [
"MIT"
] | 1 | 2018-12-23T01:41:13.000Z | 2018-12-23T01:41:13.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_shellcraft.
Tests for `shellcraft` module.
"""
from __future__ import unicode_literals
import os
import pytest
from click.testing import CliRunner
import pkg_resources
from shellcraft.cli import get_game, cli
from shellcraft.shellcraft import Game
@pytest.fix... | 24.061856 | 88 | 0.668809 | 307 | 2,334 | 4.954397 | 0.332248 | 0.105194 | 0.126233 | 0.16831 | 0.226824 | 0.114398 | 0.114398 | 0.114398 | 0.114398 | 0.086785 | 0 | 0.006619 | 0.223222 | 2,334 | 96 | 89 | 24.3125 | 0.832322 | 0.087832 | 0 | 0.314286 | 0 | 0 | 0.239048 | 0 | 0 | 0 | 0 | 0 | 0.157143 | 1 | 0.071429 | false | 0 | 0.1 | 0 | 0.2 | 0.014286 | 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 |
5209cf000c913adefa7f54500566082f1c95d181 | 1,694 | py | Python | casino/test/test_roulette_cancellation.py | gauravvazirani/ooad | f00abd7fee54de8599a96254d9cffac20a3bb3aa | [
"MIT"
] | null | null | null | casino/test/test_roulette_cancellation.py | gauravvazirani/ooad | f00abd7fee54de8599a96254d9cffac20a3bb3aa | [
"MIT"
] | null | null | null | casino/test/test_roulette_cancellation.py | gauravvazirani/ooad | f00abd7fee54de8599a96254d9cffac20a3bb3aa | [
"MIT"
] | null | null | null | import wheel
from src import roulette_cancellation
from src import bet
from src import table
from src import wheel
from src import roulette_game
import unittest
class TestCancellation(unittest.TestCase):
def setUp(self):
self.wheel = wheel.Wheel()
self.table = table.Table(minimum=10, maximum=1000)
... | 36.826087 | 100 | 0.672963 | 220 | 1,694 | 5.095455 | 0.236364 | 0.178412 | 0.208742 | 0.137377 | 0.505798 | 0.448707 | 0.277431 | 0.162355 | 0.089206 | 0.089206 | 0 | 0.022288 | 0.205431 | 1,694 | 45 | 101 | 37.644444 | 0.81055 | 0 | 0 | 0.102564 | 0 | 0 | 0.007674 | 0 | 0 | 0 | 0 | 0 | 0.25641 | 1 | 0.128205 | false | 0 | 0.179487 | 0 | 0.333333 | 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 |
52114296d1ba51b3ca3d9803df91dfd2b3b9583c | 12,579 | py | Python | libs/python/stupendous_cow/importer/generic_ss/director.py | tomault/stupendous-cow | 95955a52fa1aa70ded564ffeb7780ada66ab3741 | [
"Apache-2.0"
] | null | null | null | libs/python/stupendous_cow/importer/generic_ss/director.py | tomault/stupendous-cow | 95955a52fa1aa70ded564ffeb7780ada66ab3741 | [
"Apache-2.0"
] | null | null | null | libs/python/stupendous_cow/importer/generic_ss/director.py | tomault/stupendous-cow | 95955a52fa1aa70ded564ffeb7780ada66ab3741 | [
"Apache-2.0"
] | null | null | null | from stupendous_cow.data_model import Article, ArticleType, Category, Venue
from stupendous_cow.extractors import ExtractedDocument
from stupendous_cow.util import normalize_title
from stupendous_cow.builders import ArticleBuilder, BooleanPropertyBinder, \
ConstantPropertyBinder, ConstantPropertyExtractor, \
Da... | 43.677083 | 127 | 0.593449 | 1,231 | 12,579 | 5.78554 | 0.155158 | 0.018675 | 0.019096 | 0.019657 | 0.176355 | 0.10966 | 0.073856 | 0.035945 | 0.035945 | 0 | 0 | 0.001431 | 0.333413 | 12,579 | 287 | 128 | 43.829268 | 0.847943 | 0.000954 | 0 | 0.129921 | 0 | 0 | 0.072264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066929 | 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 |
521185e16234f624b22a5ea555efe497d2b947d7 | 1,806 | py | Python | Multidimensional_Lists/09E_ot_kolejka_github.py | MihailMarkovski/Python-Advanced-2020 | 8edea78cbe5588a409ba9bc3767861250f58c1a6 | [
"MIT"
] | 4 | 2020-09-19T13:53:19.000Z | 2020-11-01T18:34:53.000Z | Multidimensional_Lists/09E_ot_kolejka_github.py | MNikov/Python-Advanced-September-2020 | 1d65039de7f094d908411afffa8aee9689ab4220 | [
"MIT"
] | null | null | null | Multidimensional_Lists/09E_ot_kolejka_github.py | MNikov/Python-Advanced-September-2020 | 1d65039de7f094d908411afffa8aee9689ab4220 | [
"MIT"
] | null | null | null | (rows_count, columns_count) = map(int, input().split())
matrix = []
new_matrix = []
player_position = []
player_wins = False
for i in range(rows_count):
row = [x for x in input()]
if "P" in row:
player_position = [i, row.index("P")]
row[row.index("P")] = "."
row2 = row.copy()
matrix.app... | 32.836364 | 108 | 0.563123 | 248 | 1,806 | 3.891129 | 0.189516 | 0.362694 | 0.149223 | 0.108808 | 0.385492 | 0.381347 | 0.259067 | 0.225907 | 0.225907 | 0.225907 | 0 | 0.028125 | 0.291251 | 1,806 | 54 | 109 | 33.444444 | 0.725781 | 0 | 0 | 0.083333 | 0 | 0 | 0.059247 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.0625 | 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 |
5212b3e8b29d334c53b685dd38ff5948f400d541 | 725 | py | Python | mute_alsa.py | bkrishnamachari/musiclifx | 7a87d6dbe7d686a4e563634494226602515457d9 | [
"MIT"
] | 1 | 2017-02-18T23:28:14.000Z | 2017-02-18T23:28:14.000Z | mute_alsa.py | bkrishnamachari/musiclifx | 7a87d6dbe7d686a4e563634494226602515457d9 | [
"MIT"
] | null | null | null | mute_alsa.py | bkrishnamachari/musiclifx | 7a87d6dbe7d686a4e563634494226602515457d9 | [
"MIT"
] | null | null | null | # code to mute alsa error messages
# taken entirely from * http://stackoverflow.com/questions/36956083/how-can-the-terminal-output-of-executables-run-by-python-functions-be-silenced-i/36966379#36966379
# license file does not apply to this code
import ctypes
ERROR_HANDLER_FUNC = ctypes.CFUNCTYPE(None, ctypes.c_char_p... | 32.954545 | 166 | 0.707586 | 103 | 725 | 4.747573 | 0.631068 | 0.147239 | 0.067485 | 0.07362 | 0.114519 | 0.114519 | 0.114519 | 0.114519 | 0.114519 | 0.114519 | 0 | 0.043328 | 0.204138 | 725 | 21 | 167 | 34.52381 | 0.804159 | 0.326897 | 0 | 0.166667 | 0 | 0 | 0.028986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.166667 | 0.083333 | 0 | 0.166667 | 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 |
52134df71d71763cafbf894036af266c8f75d39c | 727 | py | Python | reinvent_scoring/scoring/enums/rocs_specific_parameters_enum.py | MolecularAI/reinvent-scoring | f7e052ceeffd29e17e1672c33607189873c82a45 | [
"MIT"
] | null | null | null | reinvent_scoring/scoring/enums/rocs_specific_parameters_enum.py | MolecularAI/reinvent-scoring | f7e052ceeffd29e17e1672c33607189873c82a45 | [
"MIT"
] | 2 | 2021-11-01T23:19:42.000Z | 2021-11-22T23:41:39.000Z | reinvent_scoring/scoring/enums/rocs_specific_parameters_enum.py | MolecularAI/reinvent-scoring | f7e052ceeffd29e17e1672c33607189873c82a45 | [
"MIT"
] | 2 | 2021-11-18T13:14:22.000Z | 2022-03-16T07:52:57.000Z | from dataclasses import dataclass
@dataclass(frozen=True)
class ROCSSpecificParametersEnum():
ROCS_INPUT = "rocs_input"
INPUT_TYPE = "input_type"
SHAPE_WEIGHT = "shape_weight"
COLOR_WEIGHT = "color_weight"
SIM_MEASURE = "similarity_measure"
MAX_CPUS = "max_num_cpus"
CUSTOM_CFF = "custom_cf... | 31.608696 | 49 | 0.744154 | 90 | 727 | 5.488889 | 0.433333 | 0.145749 | 0.080972 | 0.076923 | 0.17004 | 0.08502 | 0.08502 | 0 | 0 | 0 | 0 | 0 | 0.176066 | 727 | 22 | 50 | 33.045455 | 0.824708 | 0 | 0 | 0 | 0 | 0 | 0.332875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.95 | 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 |
521d1a1964e7b43eaffd9ddfd58cea2881a59992 | 1,874 | py | Python | tests/MPUSensor/MPURollPitch.py | murrayireland/Rover-Code | e46126a38d8ac8bb70867e3378a3c4f89591b385 | [
"MIT"
] | null | null | null | tests/MPUSensor/MPURollPitch.py | murrayireland/Rover-Code | e46126a38d8ac8bb70867e3378a3c4f89591b385 | [
"MIT"
] | null | null | null | tests/MPUSensor/MPURollPitch.py | murrayireland/Rover-Code | e46126a38d8ac8bb70867e3378a3c4f89591b385 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""MPURollPitch.py: Receives raw data from MPU 9DOF click IMU+Magnetometer and calculates roll and pitch angles."""
import smbus
import math
# Power management registers
power_mgmt_1 = 0x6b
power_mgmt_2 = 0x6c
def read_byte(adr):
return bus.read_byte_data(address, adr)
def read_word(adr):... | 27.558824 | 126 | 0.665422 | 287 | 1,874 | 4.125436 | 0.362369 | 0.083615 | 0.050676 | 0.067568 | 0.253378 | 0.253378 | 0.11402 | 0.11402 | 0.11402 | 0 | 0 | 0.044797 | 0.22572 | 1,874 | 67 | 127 | 27.970149 | 0.771192 | 0.160085 | 0 | 0.097561 | 0 | 0 | 0.031746 | 0 | 0 | 0 | 0.020704 | 0 | 0 | 0 | null | null | 0.02439 | 0.04878 | null | null | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5221a6a4450f4f06acc4288d86f5f04acf9f451b | 642 | py | Python | models/recipe_nutrient.py | nikgun1984/ketolife_backend | d7c61791646a162061c454f8dedc2512d698cc53 | [
"PostgreSQL",
"Unlicense",
"MIT"
] | 1 | 2021-03-15T19:22:55.000Z | 2021-03-15T19:22:55.000Z | models/recipe_nutrient.py | nikgun1984/ketolife_backend | d7c61791646a162061c454f8dedc2512d698cc53 | [
"PostgreSQL",
"Unlicense",
"MIT"
] | null | null | null | models/recipe_nutrient.py | nikgun1984/ketolife_backend | d7c61791646a162061c454f8dedc2512d698cc53 | [
"PostgreSQL",
"Unlicense",
"MIT"
] | null | null | null | from models import db
class RecipeNutrient(db.Model):
"""Recipe-Nutrient Model Association table"""
__tablename__ = 'recipe_has_nutrients'
id = db.Column(
db.Integer,
primary_key=True,
autoincrement=True
)
recipe_id = db.Column(
db.Integer,
db.ForeignKey("... | 18.882353 | 49 | 0.580997 | 67 | 642 | 5.402985 | 0.402985 | 0.110497 | 0.138122 | 0.234807 | 0.389503 | 0.337017 | 0.171271 | 0 | 0 | 0 | 0 | 0 | 0.317757 | 642 | 34 | 50 | 18.882353 | 0.826484 | 0.060748 | 0 | 0.346154 | 0 | 0 | 0.070234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.307692 | 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 |
522a53431ce906e7a17351133f40448104568be2 | 1,076 | py | Python | dfvfs/resolver_helpers/cpio_resolver_helper.py | dfrc-korea/dfvfs | 7be70af72f56f4feadd50206e33b0f5024907473 | [
"Apache-2.0"
] | 1 | 2021-02-15T03:41:46.000Z | 2021-02-15T03:41:46.000Z | dfvfs/resolver_helpers/cpio_resolver_helper.py | dfrc-korea/dfvfs | 7be70af72f56f4feadd50206e33b0f5024907473 | [
"Apache-2.0"
] | null | null | null | dfvfs/resolver_helpers/cpio_resolver_helper.py | dfrc-korea/dfvfs | 7be70af72f56f4feadd50206e33b0f5024907473 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""The CPIO path specification resolver helper implementation."""
from dfvfs.file_io import cpio_file_io
from dfvfs.lib import definitions
from dfvfs.resolver_helpers import manager
from dfvfs.resolver_helpers import resolver_helper
from dfvfs.vfs import cpio_file_system
class CPIOResolverHel... | 26.243902 | 66 | 0.756506 | 125 | 1,076 | 6.336 | 0.376 | 0.151515 | 0.035354 | 0.060606 | 0.29798 | 0.222222 | 0.222222 | 0.136364 | 0 | 0 | 0 | 0.001109 | 0.16171 | 1,076 | 40 | 67 | 26.9 | 0.87694 | 0.375465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.416667 | 0 | 0.916667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
523cd8c9049ab11d6ee1321885135ff67ef4f5ca | 1,204 | py | Python | plottrace.py | gvrooyen/SocialLearning | 46e8fc1056f24ffbd46b23f4a72e3ad8b605c02e | [
"AFL-3.0"
] | 1 | 2017-06-04T18:09:01.000Z | 2017-06-04T18:09:01.000Z | plottrace.py | gvrooyen/SocialLearning | 46e8fc1056f24ffbd46b23f4a72e3ad8b605c02e | [
"AFL-3.0"
] | null | null | null | plottrace.py | gvrooyen/SocialLearning | 46e8fc1056f24ffbd46b23f4a72e3ad8b605c02e | [
"AFL-3.0"
] | null | null | null | # Copyright (c) 2012 Stellenbosch University, 2012
# This source code is released under the Academic Free License 3.0
# See https://github.com/gvrooyen/SocialLearning/blob/master/LICENSE for the full text of the license.
# Author: G-J van Rooyen <gvrooyen@sun.ac.za>
"""
Script to estimate the rate at which the simulat... | 25.617021 | 102 | 0.722591 | 188 | 1,204 | 4.590426 | 0.558511 | 0.03708 | 0.020857 | 0.039397 | 0.04635 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044291 | 0.156146 | 1,204 | 46 | 103 | 26.173913 | 0.805118 | 0.234219 | 0 | 0.074074 | 0 | 0 | 0.007123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.148148 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
524750c2ab3cfe46c93f4022711cb2b47f8151c0 | 610 | py | Python | faceai/opencv/trackbar.py | xurohanmm/faceai | b16bd58dc112c9e0466728d8895c2542c62c4ac4 | [
"MIT"
] | 9,944 | 2018-04-20T07:38:45.000Z | 2022-03-31T12:27:55.000Z | faceai/opencv/trackbar.py | ja3si/faceai | 5eaa489f672e700c0fa7fa643c379cc239c15fd8 | [
"MIT"
] | 44 | 2018-05-10T01:33:29.000Z | 2022-02-04T16:22:35.000Z | faceai/opencv/trackbar.py | ja3si/faceai | 5eaa489f672e700c0fa7fa643c379cc239c15fd8 | [
"MIT"
] | 2,462 | 2018-04-19T13:48:40.000Z | 2022-03-31T10:40:33.000Z | #coding=utf-8
#调色板
import cv2
import numpy as np
img = np.zeros((300, 512, 3), np.uint8)
cv2.namedWindow('image')
def callback(x):
pass
#参数1:名称;参数2:作用窗口,参数3、4:最小值和最大值;参数5:值更改回调方法
cv2.createTrackbar('R', 'image', 0, 255, callback)
cv2.createTrackbar('G', 'image', 0, 255, callback)
cv2.createTrackbar('B', 'image... | 20.333333 | 50 | 0.62459 | 90 | 610 | 4.233333 | 0.522222 | 0.133858 | 0.070866 | 0.133858 | 0.178478 | 0.178478 | 0 | 0 | 0 | 0 | 0 | 0.079523 | 0.17541 | 610 | 30 | 51 | 20.333333 | 0.677932 | 0.091803 | 0 | 0 | 0 | 0 | 0.085145 | 0 | 0 | 0 | 0.007246 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.111111 | 0 | 0.166667 | 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 |
525851c8747f1cf0bd55dbfa169573f0f3274a56 | 1,121 | py | Python | crypto/Residues/chal.py | Enigmatrix/hats-ctf-2019 | 0dc1b9a5a4583c81b5f1b7bce0cbb9bd0fd2b192 | [
"MIT"
] | 5 | 2019-10-04T07:20:37.000Z | 2021-06-15T21:34:07.000Z | crypto/Residues/chal.py | Enigmatrix/hats-ctf-2019 | 0dc1b9a5a4583c81b5f1b7bce0cbb9bd0fd2b192 | [
"MIT"
] | null | null | null | crypto/Residues/chal.py | Enigmatrix/hats-ctf-2019 | 0dc1b9a5a4583c81b5f1b7bce0cbb9bd0fd2b192 | [
"MIT"
] | null | null | null | from secret import flag
from random import randint
from Crypto.Util.number import isPrime, GCD
def next_prime(s):
if s%6 == 0:
s += 1
elif s%6 != 1:
s = s - s%6 + 5
while True:
if isPrime(s) == True:
break
s+=2
if isPrime(s) == True:
break
... | 22.42 | 49 | 0.489741 | 173 | 1,121 | 3.098266 | 0.450867 | 0.014925 | 0.016791 | 0.052239 | 0.074627 | 0.074627 | 0 | 0 | 0 | 0 | 0 | 0.043417 | 0.363069 | 1,121 | 49 | 50 | 22.877551 | 0.707283 | 0.013381 | 0 | 0.136364 | 0 | 0 | 0.154891 | 0.021739 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068182 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
52594ca114d162690a7aedba69dfbc4e4590ac74 | 38,417 | py | Python | pygeocom.py | siyka-au/pygeocom | 5c4318210fc3148a093e62d0b49857ac687ab8f0 | [
"Apache-2.0"
] | 4 | 2020-12-03T15:20:15.000Z | 2021-12-07T16:11:58.000Z | pygeocom.py | siyka-au/pygeocom | 5c4318210fc3148a093e62d0b49857ac687ab8f0 | [
"Apache-2.0"
] | null | null | null | pygeocom.py | siyka-au/pygeocom | 5c4318210fc3148a093e62d0b49857ac687ab8f0 | [
"Apache-2.0"
] | 2 | 2021-05-25T00:40:10.000Z | 2022-03-21T15:35:39.000Z | from typing import Tuple, Any
from enum import Enum, IntFlag
from datetime import datetime
from collections import namedtuple
from collections.abc import Callable
GRC_TPS = 0x0000 # main return codes (identical to RC_SUP!!)
GRC_SUP = 0x0000 # supervisor task (identical to RCBETA!!)
GRC_ANG = 0x0100 # angle- and ... | 49.252564 | 218 | 0.672411 | 5,003 | 38,417 | 4.881671 | 0.206276 | 0.019162 | 0.006265 | 0.005896 | 0.170004 | 0.105966 | 0.084306 | 0.06801 | 0.054662 | 0.042419 | 0 | 0.044499 | 0.25067 | 38,417 | 779 | 219 | 49.315789 | 0.803731 | 0.25939 | 0 | 0.022222 | 0 | 0 | 0.013165 | 0 | 0 | 0 | 0.013521 | 0 | 0.001587 | 1 | 0.11746 | false | 0 | 0.007937 | 0.003175 | 0.704762 | 0.003175 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5262933201ffee588e1455f81e070d55a7997cfe | 858 | py | Python | setup.py | vsevolod-kolchinsky/py-ugs3client | d88358063b0bf5ede1c48fac0c44d95f305b4036 | [
"Apache-2.0"
] | 1 | 2016-12-04T20:19:58.000Z | 2016-12-04T20:19:58.000Z | setup.py | vsevolod-kolchinsky/py-ugs3client | d88358063b0bf5ede1c48fac0c44d95f305b4036 | [
"Apache-2.0"
] | null | null | null | setup.py | vsevolod-kolchinsky/py-ugs3client | d88358063b0bf5ede1c48fac0c44d95f305b4036 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
def readme():
with open('README.md') as f:
return f.read()
setup(name='py-ugs3client',
version='0.9.1',
description='UGS3 Python client',
long_description=readme(),
classifiers=[
'Development Status :: 4 - Beta',
'L... | 33 | 82 | 0.573427 | 81 | 858 | 6.037037 | 0.716049 | 0.110429 | 0.08589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016502 | 0.293706 | 858 | 25 | 83 | 34.32 | 0.790429 | 0 | 0 | 0.086957 | 0 | 0 | 0.452214 | 0.0338 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | true | 0 | 0.043478 | 0 | 0.130435 | 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 |
5265a72fc30e94f657bbf4c3c75b4b17d3611770 | 11,129 | py | Python | cloudendure/cloudendure_api/models/cloud_endure_user.py | cloudreach/cloudendure-python | fe922c3e28d309acceea131c55c6b2ce92a6f568 | [
"MIT"
] | 11 | 2019-10-15T20:28:31.000Z | 2021-11-02T03:18:33.000Z | cloudendure/cloudendure_api/models/cloud_endure_user.py | cloudreach/cloudendure-python | fe922c3e28d309acceea131c55c6b2ce92a6f568 | [
"MIT"
] | 31 | 2019-09-04T12:47:03.000Z | 2021-07-23T15:23:18.000Z | cloudendure/cloudendure_api/models/cloud_endure_user.py | cloudreach/cloudendure-python | fe922c3e28d309acceea131c55c6b2ce92a6f568 | [
"MIT"
] | 9 | 2019-09-05T18:26:17.000Z | 2021-11-02T03:18:35.000Z | # coding: utf-8
"""
CloudEndure API documentation
© 2017 CloudEndure All rights reserved # General Request authentication in CloudEndure's API is done using session cookies. A session cookie is returned upon successful execution of the \"login\" method. This value must then be provided within the request hea... | 29.057441 | 912 | 0.574625 | 1,274 | 11,129 | 4.897959 | 0.175824 | 0.051282 | 0.134615 | 0.120192 | 0.388782 | 0.297756 | 0.273077 | 0.186218 | 0.085897 | 0.025321 | 0 | 0.021938 | 0.332375 | 11,129 | 382 | 913 | 29.133508 | 0.817766 | 0.378381 | 0 | 0.064171 | 0 | 0 | 0.080827 | 0 | 0 | 0 | 0 | 0.005236 | 0 | 1 | 0.139037 | false | 0.058824 | 0.016043 | 0 | 0.256684 | 0.010695 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
526623dc2a77e4d2351ce9bda96171332c773ba7 | 6,200 | py | Python | alipay/aop/api/domain/QuotaGradientRule.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/domain/QuotaGradientRule.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/domain/QuotaGradientRule.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class QuotaGradientRule(object):
def __init__(self):
self._score_400 = None
self._score_450 = None
self._score_500 = None
self._score_550 = None
self._score_600 ... | 30.097087 | 69 | 0.572581 | 814 | 6,200 | 4.027027 | 0.061425 | 0.230628 | 0.091519 | 0.069555 | 0.336791 | 0.336791 | 0 | 0 | 0 | 0 | 0 | 0.129519 | 0.32629 | 6,200 | 205 | 70 | 30.243902 | 0.655255 | 0.006774 | 0 | 0.132597 | 0 | 0 | 0.097498 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.149171 | false | 0 | 0.01105 | 0.066298 | 0.248619 | 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 |
526b6ad6b3ab80f077d8e869eefd5b1d6f371911 | 3,431 | py | Python | src/WinePrediction.py | Raghuvp01/winePrediction | a856d4143af1e4f9426f3d64f6a95120920abcfd | [
"MIT"
] | null | null | null | src/WinePrediction.py | Raghuvp01/winePrediction | a856d4143af1e4f9426f3d64f6a95120920abcfd | [
"MIT"
] | null | null | null | src/WinePrediction.py | Raghuvp01/winePrediction | a856d4143af1e4f9426f3d64f6a95120920abcfd | [
"MIT"
] | null | null | null | import sys
import pyspark
from pyspark.ml import Pipeline
from pyspark.ml.classification import RandomForestClassifier
from pyspark.ml.evaluation import MulticlassClassificationEvaluator
from pyspark.ml.feature import IndexToString, StringIndexer, VectorIndexer
from pyspark.ml.linalg import Vectors
from pyspar... | 35.371134 | 126 | 0.68056 | 388 | 3,431 | 5.966495 | 0.417526 | 0.052268 | 0.033693 | 0.017279 | 0.068683 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008801 | 0.205188 | 3,431 | 96 | 127 | 35.739583 | 0.840117 | 0.116584 | 0 | 0 | 0 | 0 | 0.099966 | 0 | 0 | 0 | 0 | 0.010417 | 0 | 1 | 0.051724 | false | 0 | 0.224138 | 0.034483 | 0.327586 | 0.086207 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
52756aec69c8ed0618406de92b46262cd2cfeaa8 | 2,772 | py | Python | misc/deep_learning_notes/Ch3 Advanced Tensorflow/GPU and device management tests/2_single_device_indepth.py | tmjnow/MoocX | 52c8450ff7ecc8450a8adc2457233d5777a3d5bb | [
"MIT"
] | 7 | 2017-06-13T05:24:15.000Z | 2022-01-09T01:10:28.000Z | misc/deep_learning_notes/Ch3 Advanced Tensorflow/GPU and device management tests/2_single_device_indepth.py | kinshuk4/Coursera | 52c8450ff7ecc8450a8adc2457233d5777a3d5bb | [
"MIT"
] | 11 | 2017-05-08T23:30:50.000Z | 2017-06-24T21:57:42.000Z | misc/deep_learning_notes/Ch3 Advanced Tensorflow/GPU and device management tests/2_single_device_indepth.py | kinshuk4/MoocX | 52c8450ff7ecc8450a8adc2457233d5777a3d5bb | [
"MIT"
] | 4 | 2017-10-05T12:56:53.000Z | 2020-06-14T17:01:32.000Z | import tensorflow as tf
"""
Instruction to the code there can be found at:
https://www.tensorflow.org/versions/r0.10/how_tos/using_gpu/index.html
"""
# Creates a graph.
with tf.device('/cpu:0'):
a = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[2, 3], name='a')
b = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.... | 44.709677 | 104 | 0.679293 | 509 | 2,772 | 3.642436 | 0.212181 | 0.090615 | 0.143474 | 0.151025 | 0.795577 | 0.765372 | 0.621899 | 0.621899 | 0.621899 | 0.566343 | 0 | 0.09721 | 0.146465 | 2,772 | 61 | 105 | 45.442623 | 0.686391 | 0.108586 | 0 | 0.571429 | 0 | 0 | 0.02381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.142857 | 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 |
5277b9a04deacba739da0e65ae32743b301d2718 | 1,790 | py | Python | mom/__init__.py | ands904/ands904-tinypyclone | 6a5427940a03058abf08de2a20aa45a929fd21ad | [
"ECL-2.0",
"Apache-2.0"
] | 16 | 2015-01-06T19:21:19.000Z | 2021-11-17T16:57:26.000Z | mom/__init__.py | ands904/ands904-tinypyclone | 6a5427940a03058abf08de2a20aa45a929fd21ad | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-04-15T11:18:32.000Z | 2019-04-15T11:18:32.000Z | mom/__init__.py | ands904/ands904-tinypyclone | 6a5427940a03058abf08de2a20aa45a929fd21ad | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2015-06-17T04:15:35.000Z | 2019-04-15T11:16:43.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2011 Yesudeep Mangalapilly <yesudeep@gmail.com>
# Copyright 2012 Google 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 ... | 38.085106 | 74 | 0.732961 | 258 | 1,790 | 5.069767 | 0.585271 | 0.079511 | 0.019878 | 0.024465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008553 | 0.150838 | 1,790 | 46 | 75 | 38.913043 | 0.851974 | 0.943017 | 0 | 0 | 0 | 0 | 0.544304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
52805d57e8c8263a02a200a6871833b9721f84c9 | 1,878 | py | Python | snacks/tests.py | Samerodeh/DjangoX- | 113702a1ffb6683d6df052e8ff8d6cd8dff77c57 | [
"MIT"
] | null | null | null | snacks/tests.py | Samerodeh/DjangoX- | 113702a1ffb6683d6df052e8ff8d6cd8dff77c57 | [
"MIT"
] | null | null | null | snacks/tests.py | Samerodeh/DjangoX- | 113702a1ffb6683d6df052e8ff8d6cd8dff77c57 | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.contrib.auth import get_user_model
from django.urls import reverse
from .models import Snack
# Create your tests here.
class SnacksTests(TestCase):
def setUp(self):
self.user = get_user_model().objects.create_user(
username = 'samer', email = 'same... | 39.957447 | 138 | 0.671991 | 217 | 1,878 | 5.718894 | 0.308756 | 0.096696 | 0.051571 | 0.070911 | 0.343272 | 0.215955 | 0.186946 | 0.066076 | 0 | 0 | 0 | 0.013316 | 0.200213 | 1,878 | 47 | 139 | 39.957447 | 0.812916 | 0.012247 | 0 | 0.081081 | 0 | 0 | 0.152643 | 0.012945 | 0 | 0 | 0 | 0 | 0.324324 | 1 | 0.216216 | false | 0.027027 | 0.108108 | 0 | 0.351351 | 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 |
5282e6a844204a3f67483569e34bb81fd4947b55 | 378 | py | Python | tests/factories.py | sarafanio/sarafan | 1c15bcdb61c13558ca1d833547222530dd363333 | [
"MIT"
] | 2 | 2021-02-07T17:08:32.000Z | 2022-01-21T06:39:50.000Z | tests/factories.py | sarafanio/sarafan | 1c15bcdb61c13558ca1d833547222530dd363333 | [
"MIT"
] | 2 | 2021-02-07T15:22:57.000Z | 2021-02-07T15:24:49.000Z | tests/factories.py | sarafanio/sarafan | 1c15bcdb61c13558ca1d833547222530dd363333 | [
"MIT"
] | null | null | null | import factory
from sarafan.events import Publication
from .utils import generate_rnd_hash, generate_rnd_address
class PublicationFactory(factory.Factory):
class Meta:
model = Publication
reply_to = '0x'
magnet = factory.LazyFunction(lambda: generate_rnd_hash()[2:])
source = factory.LazyFunc... | 23.625 | 66 | 0.740741 | 45 | 378 | 6.022222 | 0.577778 | 0.162362 | 0.110701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.185185 | 378 | 15 | 67 | 25.2 | 0.866883 | 0 | 0 | 0 | 1 | 0 | 0.005291 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
52859b2129539890ccffeb9cdbc3ae301304a0b4 | 2,888 | py | Python | src/cdc/songs_cdc.py | tomfran/lastfm-project | a4acd177d69235e49653f103a897a18c37c3d230 | [
"MIT"
] | 1 | 2021-07-21T16:51:12.000Z | 2021-07-21T16:51:12.000Z | src/cdc/songs_cdc.py | tomfran/lastfm-project | a4acd177d69235e49653f103a897a18c37c3d230 | [
"MIT"
] | null | null | null | src/cdc/songs_cdc.py | tomfran/lastfm-project | a4acd177d69235e49653f103a897a18c37c3d230 | [
"MIT"
] | null | null | null | from .abstract_classes import AbstractRegistryCDC
from datetime import datetime
import json
class SongsCDC(AbstractRegistryCDC):
"""
Songs cdc implementation
It implements a registry cdc logic, as songs can change over
time, and no chrono attribute can be used.
"""
def __init__(self, sourc... | 36.556962 | 105 | 0.54536 | 332 | 2,888 | 4.620482 | 0.361446 | 0.045632 | 0.091265 | 0.046936 | 0.028683 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000544 | 0.363573 | 2,888 | 78 | 106 | 37.025641 | 0.834059 | 0.36669 | 0 | 0 | 0 | 0 | 0.134319 | 0.040049 | 0 | 0 | 0 | 0.012821 | 0 | 1 | 0.111111 | false | 0 | 0.083333 | 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 |
528c4dde31760c882504e0cfaeea3b44d77bfdba | 21,561 | py | Python | src/vectorgen/run_genev.py | davehadley/hk-vectorgen | 620a17b6a36357188e8d5b74867c497114edb178 | [
"MIT"
] | null | null | null | src/vectorgen/run_genev.py | davehadley/hk-vectorgen | 620a17b6a36357188e8d5b74867c497114edb178 | [
"MIT"
] | null | null | null | src/vectorgen/run_genev.py | davehadley/hk-vectorgen | 620a17b6a36357188e8d5b74867c497114edb178 | [
"MIT"
] | null | null | null | import ROOT
import shutil
import tempfile
ROOT.PyConfig.IgnoreCommandLineOptions = True
import subprocess
import os
import glob
import argparse
import itertools
import collections
import runtime
#Jobs:
# (1) Merge flux files.
# (2) Create geometry.
# (3) Run event_rate.
# (4) Run genev.
################... | 35.69702 | 138 | 0.519549 | 2,220 | 21,561 | 4.844144 | 0.150901 | 0.033476 | 0.033848 | 0.008183 | 0.47387 | 0.433885 | 0.404408 | 0.378185 | 0.361633 | 0.34536 | 0 | 0.0094 | 0.29442 | 21,561 | 603 | 139 | 35.756219 | 0.697496 | 0.078058 | 0 | 0.438596 | 0 | 0 | 0.045638 | 0.005525 | 0 | 0 | 0 | 0.001658 | 0 | 0 | null | null | 0.006579 | 0.02193 | null | null | 0.002193 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
529682b1596e978aadd1e42f3b17c56fcec414b7 | 12,389 | py | Python | tests/test_sso.py | fmarco76/DiscourseSSO | 97d3318c6ebe9cb10af3d5aeaff4da1b60472ff8 | [
"Apache-2.0"
] | 14 | 2015-06-03T09:32:16.000Z | 2021-04-28T13:39:40.000Z | tests/test_sso.py | fmarco76/DiscourseSSO | 97d3318c6ebe9cb10af3d5aeaff4da1b60472ff8 | [
"Apache-2.0"
] | 3 | 2015-06-03T09:45:04.000Z | 2018-02-21T07:25:47.000Z | tests/test_sso.py | fmarco76/DiscourseSSO | 97d3318c6ebe9cb10af3d5aeaff4da1b60472ff8 | [
"Apache-2.0"
] | 5 | 2015-05-29T11:23:20.000Z | 2019-09-15T23:54:48.000Z | # Copyright 2015 INFN
# 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 applicab... | 53.171674 | 79 | 0.472839 | 922 | 12,389 | 6.25705 | 0.259219 | 0.013347 | 0.020974 | 0.034321 | 0.65592 | 0.637719 | 0.637719 | 0.637719 | 0.637719 | 0.630612 | 0 | 0.089568 | 0.452982 | 12,389 | 233 | 80 | 53.171674 | 0.761694 | 0.186536 | 0 | 0.660494 | 0 | 0 | 0.253619 | 0.179735 | 0 | 0 | 0 | 0 | 0.067901 | 1 | 0.067901 | false | 0 | 0.030864 | 0 | 0.104938 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bfeb9d02728103109d411126e05765cb7c77f9f0 | 2,717 | py | Python | high_dimensional_sampling/procedures.py | williamjameshandley/high-dimensional-sampling | 6bbd9b99718f8be4aa605efacef426edc57cae50 | [
"MIT"
] | null | null | null | high_dimensional_sampling/procedures.py | williamjameshandley/high-dimensional-sampling | 6bbd9b99718f8be4aa605efacef426edc57cae50 | [
"MIT"
] | null | null | null | high_dimensional_sampling/procedures.py | williamjameshandley/high-dimensional-sampling | 6bbd9b99718f8be4aa605efacef426edc57cae50 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
class Procedure(ABC):
"""
Abstract base class for all sampling procedures
All sampling procedure subjected to an experiment should be derived from this
class. It requires the implementation of the __init__, __call__ and
is_finished methods.
As it is an abs... | 34.833333 | 81 | 0.654398 | 336 | 2,717 | 5.229167 | 0.41369 | 0.040979 | 0.019351 | 0.04667 | 0.027319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.305116 | 2,717 | 77 | 82 | 35.285714 | 0.930614 | 0.712919 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bff31b2c3d304930177429b9eb9eaa32415de68f | 984 | py | Python | tests/modin/modin_tests.py | sumanthratna/nlu | acde6879d776116051d4cbe909268ab8946989b5 | [
"Apache-2.0"
] | 1 | 2020-09-25T22:55:13.000Z | 2020-09-25T22:55:13.000Z | tests/modin/modin_tests.py | sumanthratna/nlu | acde6879d776116051d4cbe909268ab8946989b5 | [
"Apache-2.0"
] | null | null | null | tests/modin/modin_tests.py | sumanthratna/nlu | acde6879d776116051d4cbe909268ab8946989b5 | [
"Apache-2.0"
] | null | null | null | import unittest
import pandas as pd
import numpy as np
import modin.pandas as mpd
import numpy as np
import nlu
import sparknlp
import pyspark
class MyTestCase(unittest.TestCase):
def test_print_pipe_info(self):
# ## works with RAY and DASK backends
data = {"text": ['This day sucks but tomorrow wil... | 29.818182 | 113 | 0.645325 | 128 | 984 | 4.859375 | 0.5 | 0.028939 | 0.048232 | 0.09164 | 0.286174 | 0.21865 | 0.125402 | 0 | 0 | 0 | 0 | 0 | 0.235772 | 984 | 32 | 114 | 30.75 | 0.827128 | 0.03252 | 0 | 0.153846 | 0 | 0 | 0.133052 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 1 | 0.038462 | false | 0 | 0.307692 | 0 | 0.384615 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8707489cbf2b2604623f49439b81898f12f41098 | 1,096 | py | Python | kinbot/jobs.py | rubenvdvijver/KinBot | 5bbb29c087b53bc63ffbb1d393ab4e217390eb82 | [
"BSD-3-Clause"
] | null | null | null | kinbot/jobs.py | rubenvdvijver/KinBot | 5bbb29c087b53bc63ffbb1d393ab4e217390eb82 | [
"BSD-3-Clause"
] | null | null | null | kinbot/jobs.py | rubenvdvijver/KinBot | 5bbb29c087b53bc63ffbb1d393ab4e217390eb82 | [
"BSD-3-Clause"
] | null | null | null | ###################################################
## ##
## This file is part of the KinBot code v2.0 ##
## ##
## The contents are covered by the terms of the ##
## BSD 3-clause license included in the LICENSE ##
## file,... | 40.592593 | 51 | 0.350365 | 88 | 1,096 | 4.352273 | 0.75 | 0.02611 | 0.052219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024014 | 0.468066 | 1,096 | 26 | 52 | 42.153846 | 0.632933 | 0.803832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8717979de418a26be5c7540745a9bc31ec04dc93 | 5,705 | py | Python | src/client/client.py | martingaston/bangbangnapster | ba521347439a2bbdc61c759d11705a3934f487a6 | [
"MIT"
] | 2 | 2021-05-22T18:08:07.000Z | 2021-06-09T01:12:51.000Z | src/client/client.py | martingaston/bangbangnapster | ba521347439a2bbdc61c759d11705a3934f487a6 | [
"MIT"
] | null | null | null | src/client/client.py | martingaston/bangbangnapster | ba521347439a2bbdc61c759d11705a3934f487a6 | [
"MIT"
] | null | null | null | import socket
import socketserver
import struct
from src.client.name_generator import generate_username
from src.packet import Packet, read_packet
from src.packet_type import PacketType
from src.client.search_result import SearchResult
from pathlib import Path
from typing import Optional
import threading
from functool... | 30.026316 | 97 | 0.5844 | 668 | 5,705 | 4.844311 | 0.299401 | 0.017305 | 0.018541 | 0.034611 | 0.125464 | 0.097033 | 0.087763 | 0.087763 | 0.030902 | 0.030902 | 0 | 0.023127 | 0.302717 | 5,705 | 189 | 98 | 30.185185 | 0.789341 | 0.021735 | 0 | 0.143885 | 1 | 0.007194 | 0.123902 | 0.008069 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093525 | false | 0.014388 | 0.086331 | 0 | 0.23741 | 0.115108 | 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 |
8723e1b52f6e9fbf404beb55e806b853d1b5e770 | 1,043 | py | Python | globals.py | alexandrefresnais/Cobra | e179f14c074f3abaf15964031cc82bd7a6adbf18 | [
"MIT"
] | 1 | 2021-07-20T23:35:01.000Z | 2021-07-20T23:35:01.000Z | globals.py | alexandrefresnais/Cobra | e179f14c074f3abaf15964031cc82bd7a6adbf18 | [
"MIT"
] | null | null | null | globals.py | alexandrefresnais/Cobra | e179f14c074f3abaf15964031cc82bd7a6adbf18 | [
"MIT"
] | null | null | null | import math
# Nb grid square
GRID_WIDTH = 10
GRID_HEIGHT = 10
# Absolute size of a grid square
GRIDSIZE = 20
# Size of window
SCREEN_WIDTH = GRID_WIDTH * GRIDSIZE
SCREEN_HEIGHT = GRID_HEIGHT * GRIDSIZE
UP = (0, -1)
DOWN = (0, 1)
LEFT = (-1, 0)
RIGHT = (1, 0)
# Returns true if a and b have same signs
def same_sign(... | 21.729167 | 57 | 0.649089 | 173 | 1,043 | 3.83237 | 0.34104 | 0.012066 | 0.013575 | 0.0181 | 0.241327 | 0.087481 | 0.087481 | 0 | 0 | 0 | 0 | 0.04428 | 0.220518 | 1,043 | 48 | 57 | 21.729167 | 0.771218 | 0.243528 | 0 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.034483 | 0.068966 | 0.448276 | 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 |
8724f0d3f3b3779293e9467deaab7910476dbadd | 409 | py | Python | video/migrations/0003_auto_20210427_1528.py | AxelConceicao/youtube-django | f2cd6e9532343612ea5911f2ec80b9383bb41f40 | [
"MIT"
] | 1 | 2021-05-26T02:43:17.000Z | 2021-05-26T02:43:17.000Z | video/migrations/0003_auto_20210427_1528.py | AxelConceicao/youtube-django | f2cd6e9532343612ea5911f2ec80b9383bb41f40 | [
"MIT"
] | null | null | null | video/migrations/0003_auto_20210427_1528.py | AxelConceicao/youtube-django | f2cd6e9532343612ea5911f2ec80b9383bb41f40 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.5 on 2021-04-27 15:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('video', '0002_auto_20210427_1508'),
]
operations = [
migrations.AlterField(
model_name='video',
name='views',
... | 21.526316 | 77 | 0.606357 | 45 | 409 | 5.4 | 0.8 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 0.276284 | 409 | 18 | 78 | 22.722222 | 0.712838 | 0.110024 | 0 | 0 | 1 | 0 | 0.135359 | 0.063536 | 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 |
872a0b7b827a4e05c171b6e01aaee1214b20443b | 528 | py | Python | complete/31 - 40/Problem31/main2.py | this-jacob/project-euler | 8f9e700e2875e84d081eade44fd2107db0a0ae12 | [
"MIT"
] | null | null | null | complete/31 - 40/Problem31/main2.py | this-jacob/project-euler | 8f9e700e2875e84d081eade44fd2107db0a0ae12 | [
"MIT"
] | null | null | null | complete/31 - 40/Problem31/main2.py | this-jacob/project-euler | 8f9e700e2875e84d081eade44fd2107db0a0ae12 | [
"MIT"
] | null | null | null | from time import time
def main():
start = time()
target = 200
ways = 0
for a in range(target, -1, -200):
for b in range(a, -1, -100):
for c in range(b, -1, -50):
for d in range(c, -1, -20):
for e in range(d, -1, -10):
fo... | 22 | 54 | 0.393939 | 72 | 528 | 2.777778 | 0.416667 | 0.245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092527 | 0.467803 | 528 | 23 | 55 | 22.956522 | 0.619217 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.117647 | 0.117647 | 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 |
872ef7d2fec1f04fe48192fb8d3854dfbeea104f | 3,470 | py | Python | hivwholeseq/patients/get_region_haplotypes.py | neherlab/hivwholeseq | 978ce4060362e4973f92b122ed5340a5314d7844 | [
"MIT"
] | 3 | 2016-09-13T12:15:47.000Z | 2021-07-03T01:28:56.000Z | hivwholeseq/patients/get_region_haplotypes.py | iosonofabio/hivwholeseq | d504c63b446c3a0308aad6d6e484ea1666bbe6df | [
"MIT"
] | null | null | null | hivwholeseq/patients/get_region_haplotypes.py | iosonofabio/hivwholeseq | d504c63b446c3a0308aad6d6e484ea1666bbe6df | [
"MIT"
] | 3 | 2016-01-17T03:43:46.000Z | 2020-03-25T07:00:11.000Z | # vim: fdm=marker
'''
author: Fabio Zanini
date: 11/11/14
content: Get local haplotypes from single read pairs, including insertions
and deletions. This includes aggressive clustering to keep the
multiple sequence alignments efficient.
'''
# Modules
import os
import argparse
from op... | 30.173913 | 96 | 0.619885 | 437 | 3,470 | 4.812357 | 0.441648 | 0.011888 | 0.032335 | 0.020922 | 0.122682 | 0.069425 | 0.0466 | 0.0466 | 0.0466 | 0 | 0 | 0.017125 | 0.276369 | 3,470 | 114 | 97 | 30.438596 | 0.82039 | 0.05562 | 0 | 0.083333 | 0 | 0 | 0.075579 | 0 | 0 | 0 | 0 | 0.008772 | 0 | 0 | null | null | 0 | 0.194444 | null | null | 0.013889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
873004594fdc1a52b0f21a2533fbf37501675d5f | 332 | py | Python | test/test_contact_details_db.py | tankisleva/python_training | be305f745abfc84bc824641e45670c2203bca9d5 | [
"Apache-2.0"
] | null | null | null | test/test_contact_details_db.py | tankisleva/python_training | be305f745abfc84bc824641e45670c2203bca9d5 | [
"Apache-2.0"
] | null | null | null | test/test_contact_details_db.py | tankisleva/python_training | be305f745abfc84bc824641e45670c2203bca9d5 | [
"Apache-2.0"
] | null | null | null | from model.contact import Contact
def test_deatails_on_contact_tabe(app, db):
contact_from_table_list = app.contact.get_contact_list_all_data_from_table()
contact_list_db = db.get_contact_list_all_data()
assert sorted(contact_from_table_list, key=Contact.id_or_max) == sorted(contact_list_db, key=Contact.id_o... | 25.538462 | 114 | 0.816265 | 55 | 332 | 4.418182 | 0.4 | 0.18107 | 0.131687 | 0.164609 | 0.312757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105422 | 332 | 12 | 115 | 27.666667 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8735d898435902b4e73b5d98afb190aed45ea249 | 94,599 | py | Python | mapry/cpp/generate/jsoncpp_impl.py | Parquery/mapry | 93515307f9eba8447fe64b0ac7cc68b2d07205a7 | [
"MIT"
] | 11 | 2019-06-26T05:56:41.000Z | 2021-03-28T16:44:16.000Z | mapry/cpp/generate/jsoncpp_impl.py | Parquery/mapry | 93515307f9eba8447fe64b0ac7cc68b2d07205a7 | [
"MIT"
] | 4 | 2019-10-18T14:43:59.000Z | 2020-04-02T19:12:07.000Z | mapry/cpp/generate/jsoncpp_impl.py | Parquery/mapry | 93515307f9eba8447fe64b0ac7cc68b2d07205a7 | [
"MIT"
] | 3 | 2019-06-17T07:39:03.000Z | 2020-04-01T14:01:23.000Z | """Generate the implementation of de/serialization from/to Jsoncpp values."""
# pylint: disable=too-many-lines
# pylint: disable=too-many-arguments
import re
import textwrap
from typing import ( # pylint: disable=unused-import
Dict, List, Mapping, MutableMapping, Set, Union)
import icontract
from icontract impo... | 32.676684 | 80 | 0.582194 | 11,348 | 94,599 | 4.630948 | 0.048026 | 0.039732 | 0.023976 | 0.015204 | 0.736299 | 0.698622 | 0.662715 | 0.635599 | 0.610158 | 0.579065 | 0 | 0.006556 | 0.292149 | 94,599 | 2,894 | 81 | 32.687975 | 0.778247 | 0.144367 | 0 | 0.533573 | 1 | 0 | 0.042935 | 0.005078 | 0 | 0 | 0 | 0 | 0.002398 | 1 | 0.045564 | false | 0.001199 | 0.01199 | 0 | 0.116307 | 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 |
8739c11c23fb43a9537cdc035e62fc11c08842de | 447 | py | Python | relier/web/views/events.py | citruspi/relier-api | 799e9ea60431712612667bf06d09c418456e3f33 | [
"Unlicense"
] | null | null | null | relier/web/views/events.py | citruspi/relier-api | 799e9ea60431712612667bf06d09c418456e3f33 | [
"Unlicense"
] | null | null | null | relier/web/views/events.py | citruspi/relier-api | 799e9ea60431712612667bf06d09c418456e3f33 | [
"Unlicense"
] | null | null | null | from relier.web.views import AuthenticatedView
from relier.models import Event
from flask import g, render_template
class Events(AuthenticatedView):
def get(self):
events = Event.select().where(Event.organization == g.user.organization)
if events.count() == 0:
return render_template(... | 27.9375 | 80 | 0.704698 | 56 | 447 | 5.517857 | 0.571429 | 0.135922 | 0.12945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008287 | 0.190157 | 447 | 15 | 81 | 29.8 | 0.845304 | 0 | 0 | 0 | 0 | 0 | 0.051454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8746bd3dcec4aa9cc249b521a63efdd8b0bda41e | 993 | py | Python | mangadex/routes/base.py | mansuf/mangadex.py | 42d6278f4383c99fb64add179dff3df3e82b2baa | [
"MIT"
] | null | null | null | mangadex/routes/base.py | mansuf/mangadex.py | 42d6278f4383c99fb64add179dff3df3e82b2baa | [
"MIT"
] | null | null | null | mangadex/routes/base.py | mansuf/mangadex.py | 42d6278f4383c99fb64add179dff3df3e82b2baa | [
"MIT"
] | null | null | null | import sys
import aiohttp
from .. import __version__
__all__ = (
'BaseRoute', 'RequireLogin', 'GET',
'POST', 'PUT', 'DELETE',
)
class BaseRoute:
BASE_URL = 'https://api.mangadex.org'
user_agent = 'mangadex.py (https://github.com/mansuf/mangadex.py {0}) Python/{1[0]}.{1[1]} aiohttp/{2}'.format(
... | 24.219512 | 115 | 0.609265 | 116 | 993 | 5.008621 | 0.456897 | 0.10327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008011 | 0.24572 | 993 | 41 | 116 | 24.219512 | 0.76769 | 0 | 0 | 0 | 0 | 0.03125 | 0.236419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.09375 | 0.03125 | 0.59375 | 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 |
874ef7bbdabd8d9672891cf1276fe41a4d119ab4 | 977 | py | Python | conclusion/models.py | DamienMAYAUX/pilot_LEEP_RS | 3d136401f854963074959272c31873f4939223af | [
"MIT"
] | null | null | null | conclusion/models.py | DamienMAYAUX/pilot_LEEP_RS | 3d136401f854963074959272c31873f4939223af | [
"MIT"
] | null | null | null | conclusion/models.py | DamienMAYAUX/pilot_LEEP_RS | 3d136401f854963074959272c31873f4939223af | [
"MIT"
] | null | null | null | from otree.api import (
models,
widgets,
BaseConstants,
BaseSubsession,
BaseGroup,
BasePlayer,
Currency as c,
currency_range,
)
author = 'Damien Mayaux'
doc = """
"""
class Constants(BaseConstants):
name_in_url = 'attention_test'
players_per_group = None
... | 24.425 | 114 | 0.603889 | 101 | 977 | 5.772277 | 0.772277 | 0.030875 | 0.099485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007541 | 0.321392 | 977 | 40 | 115 | 24.425 | 0.871795 | 0.09826 | 0 | 0.076923 | 0 | 0 | 0.34126 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.038462 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8752941f4ed3a0be6f4d1b16889f7c02f1e30dc3 | 1,532 | py | Python | docxx/oxml/notes.py | betasewer/python-docx-xtended | 97e6a979c42bcb79d5bbe74ca4602dafdd4e6016 | [
"MIT"
] | 1 | 2022-01-19T22:09:25.000Z | 2022-01-19T22:09:25.000Z | docxx/oxml/notes.py | betasewer/python-docx-xtended | 97e6a979c42bcb79d5bbe74ca4602dafdd4e6016 | [
"MIT"
] | null | null | null | docxx/oxml/notes.py | betasewer/python-docx-xtended | 97e6a979c42bcb79d5bbe74ca4602dafdd4e6016 | [
"MIT"
] | null | null | null | # encoding: utf-8
"""
Custom element classes related to the numbering part
"""
from docxx.oxml import OxmlElement
from docxx.oxml.shared import CT_DecimalNumber
from docxx.oxml.simpletypes import ST_DecimalNumber, ST_FtnEdn, ST_OnOff
from docxx.oxml.xmlchemy import (
BaseOxmlElement, OneAndOnlyOne, RequiredAttrib... | 33.304348 | 95 | 0.726501 | 172 | 1,532 | 6.401163 | 0.377907 | 0.049955 | 0.04723 | 0.04723 | 0.405086 | 0.405086 | 0.337875 | 0.337875 | 0.337875 | 0.337875 | 0 | 0.000785 | 0.168407 | 1,532 | 45 | 96 | 34.044444 | 0.863422 | 0.320496 | 0 | 0.105263 | 0 | 0 | 0.091278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.210526 | 0 | 0.894737 | 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 |
87575041db8ad0247216e283d719c55ee1fae7e7 | 491 | py | Python | app/decorators.py | Andrew342/flask_study | a6b5140782cb50e8ce5c9a486d5f4326ad880241 | [
"MIT"
] | null | null | null | app/decorators.py | Andrew342/flask_study | a6b5140782cb50e8ce5c9a486d5f4326ad880241 | [
"MIT"
] | 7 | 2021-02-08T20:19:36.000Z | 2022-03-11T23:17:07.000Z | app/decorators.py | Andrew342/flask_study | a6b5140782cb50e8ce5c9a486d5f4326ad880241 | [
"MIT"
] | null | null | null | from functools import wraps
from flask import abort
from flask_login import current_user
from .models import Permission
def permission_required(permission):
def decorator(f):
@wraps(f)
def decarated_function(*args,**kwargs):
if not current_user.can(permission):
abort(40... | 25.842105 | 51 | 0.688391 | 59 | 491 | 5.59322 | 0.423729 | 0.054545 | 0.169697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008 | 0.236253 | 491 | 19 | 51 | 25.842105 | 0.872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.266667 | 0.066667 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8765ad01a10e64e80c2507601afc571cb4803bde | 6,507 | py | Python | src/medbot_xmpp.py | mogron/ep_dyntest | 79722001c0d00dc361632628cf5b57a6dbd4727d | [
"BSD-3-Clause"
] | 6 | 2015-07-24T10:07:13.000Z | 2018-11-11T06:17:03.000Z | src/medbot_xmpp.py | mogron/ep_dyntest | 79722001c0d00dc361632628cf5b57a6dbd4727d | [
"BSD-3-Clause"
] | 1 | 2021-02-23T12:54:04.000Z | 2021-02-23T12:54:04.000Z | src/medbot_xmpp.py | mogron/ep_dyntest | 79722001c0d00dc361632628cf5b57a6dbd4727d | [
"BSD-3-Clause"
] | 5 | 2016-02-24T15:35:00.000Z | 2020-11-06T09:37:06.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
A chat bot based on SleekXMPP
Scope parameter is https://www.googleapis.com/auth/googletalk
Best is the generate the request with the OauthPlayground:
https://developers.google.com/oauthplayground/
"""
from __future__ import absolute_import, division,... | 33.541237 | 92 | 0.620255 | 773 | 6,507 | 5.001294 | 0.327296 | 0.03104 | 0.032592 | 0.02328 | 0.148991 | 0.108639 | 0.101914 | 0.08329 | 0.062597 | 0.062597 | 0 | 0.008059 | 0.275396 | 6,507 | 193 | 93 | 33.715026 | 0.811877 | 0.068542 | 0 | 0.141892 | 1 | 0 | 0.107315 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101351 | false | 0.006757 | 0.067568 | 0 | 0.277027 | 0.006757 | 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 |
876a0833734338bbf2916868990b699568419546 | 285 | py | Python | tests/developer/Li_PBC/relax_vol/vol_0.97/os_opt/run.py | pyflosic/pyeff | 4b76fcc4a0bfb25f9f4106567d01b5ea02db6737 | [
"Apache-2.0"
] | 3 | 2019-06-24T08:04:25.000Z | 2020-05-26T03:45:45.000Z | tests/developer/Li_PBC/relax_vol/vol_1.03/os_opt/run.py | pyflosic/pyeff | 4b76fcc4a0bfb25f9f4106567d01b5ea02db6737 | [
"Apache-2.0"
] | null | null | null | tests/developer/Li_PBC/relax_vol/vol_1.03/os_opt/run.py | pyflosic/pyeff | 4b76fcc4a0bfb25f9f4106567d01b5ea02db6737 | [
"Apache-2.0"
] | null | null | null | from pyeff_calculator_pbc import *
import time
t0 = time.clock()
# single point
print 'Single Point Calculation'
p_cfg = 'pyeff.cfg'
calc = pyeff_pbc(p_cfg=p_cfg,scale=1.0)
calc.initialize()
calc.show_all()
print(calc.get_energy())
t = time.clock() - t0
print('Timing: %0.5f s' % t)
| 20.357143 | 39 | 0.719298 | 49 | 285 | 4.020408 | 0.55102 | 0.060914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024194 | 0.129825 | 285 | 13 | 40 | 21.923077 | 0.770161 | 0.042105 | 0 | 0 | 0 | 0 | 0.178439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
876a9f47eb35dfd73faac54a65b1981ef3e060c5 | 446 | py | Python | test/shapes/test_lineJoin.py | XRDX/pyleap | 2d39ad327b5fc8827657c8554cdf7088905261e4 | [
"BSD-2-Clause"
] | 6 | 2018-06-12T13:13:27.000Z | 2022-03-17T13:52:42.000Z | test/shapes/test_lineJoin.py | XRDX/pyleap | 2d39ad327b5fc8827657c8554cdf7088905261e4 | [
"BSD-2-Clause"
] | null | null | null | test/shapes/test_lineJoin.py | XRDX/pyleap | 2d39ad327b5fc8827657c8554cdf7088905261e4 | [
"BSD-2-Clause"
] | 7 | 2018-06-13T03:12:23.000Z | 2021-11-16T09:13:44.000Z | from pyleap import *
c = Circle(200, 200, 100)
t = Triangle(120, 130, 400, 300, 200, 230)
l = Line(100, 500, 500, 420)
r = Rectangle(40, 50, 100, 100)
c.color = "#ff000090"
l.color = "#00ff0090"
r.color = "#0000ff90"
r.rotation = 45
r.line_width = 20
c.line_width = 20
l.line_width = 100
t.line_width = 15
@repeat
... | 15.37931 | 42 | 0.612108 | 74 | 446 | 3.621622 | 0.554054 | 0.134328 | 0.08209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224138 | 0.219731 | 446 | 29 | 43 | 15.37931 | 0.545977 | 0 | 0 | 0 | 0 | 0 | 0.060403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.045455 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
876d1da33e9f1f0c751e6f5d8f678677d418fd79 | 440 | py | Python | experimental/ipynb/jsplugins/ipynbgalry/generate_scene.py | rossant/galry | 6201fa32fb5c9ef3cea700cc22caf52fb69ebe31 | [
"BSD-3-Clause"
] | 55 | 2015-01-12T06:08:36.000Z | 2021-08-13T17:24:50.000Z | experimental/ipynb/jsplugins/ipynbgalry/generate_scene.py | rossant/galry | 6201fa32fb5c9ef3cea700cc22caf52fb69ebe31 | [
"BSD-3-Clause"
] | 2 | 2017-03-08T12:04:22.000Z | 2017-07-27T07:13:00.000Z | experimental/ipynb/jsplugins/ipynbgalry/generate_scene.py | rossant/galry | 6201fa32fb5c9ef3cea700cc22caf52fb69ebe31 | [
"BSD-3-Clause"
] | 10 | 2015-01-01T10:51:38.000Z | 2021-12-10T02:53:45.000Z | from galry import *
s = SceneCreator()
x = np.linspace(-1., 1., 1000)
y = np.sin(20 * x) * .2 - .5
x = np.vstack((x, x))
y = np.vstack((y, y + 1))
color = np.array([[1., 0., 0., 1.],
[0., 0., 1., 1.]], dtype=np.float32)
s.add_visual(PlotVisual, x, y, color=color)
scene_json = s.serialize()
print ... | 19.130435 | 54 | 0.55 | 76 | 440 | 3.118421 | 0.473684 | 0.151899 | 0.025316 | 0.033755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060519 | 0.211364 | 440 | 22 | 55 | 20 | 0.622478 | 0.209091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
876d3f285590289baee3dfbf1961a0e2e46abd30 | 6,768 | py | Python | Dspot/Dspot/bookm/views.py | attaakkhan/Dspot-FYP-2016 | 049956f2195db09e43771da1d1a5526aeddfbdd3 | [
"MIT"
] | null | null | null | Dspot/Dspot/bookm/views.py | attaakkhan/Dspot-FYP-2016 | 049956f2195db09e43771da1d1a5526aeddfbdd3 | [
"MIT"
] | null | null | null | Dspot/Dspot/bookm/views.py | attaakkhan/Dspot-FYP-2016 | 049956f2195db09e43771da1d1a5526aeddfbdd3 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
from django.shortcuts import render
from django.template import RequestContext
# Create your views here.
from django.http import HttpResponse
from django.template import Context
from django.template.loader import get_template
from django.http import HttpResponse, Http404
fro... | 36.192513 | 101 | 0.611702 | 778 | 6,768 | 5.133676 | 0.212082 | 0.082624 | 0.063846 | 0.024537 | 0.341763 | 0.267151 | 0.217576 | 0.161492 | 0.121933 | 0.091888 | 0 | 0.010455 | 0.279255 | 6,768 | 186 | 102 | 36.387097 | 0.808323 | 0.043292 | 0 | 0.168919 | 0 | 0 | 0.092779 | 0.00402 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006757 | 0.108108 | null | null | 0.013514 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8775de625b5bef331d898b9e74dfbb8b67d5f6a6 | 308 | py | Python | simdb/viewer/app/config.py | king-michael/simulation_database | 98ed59a599fe47f011c850d65b2941c81974806c | [
"Apache-2.0"
] | null | null | null | simdb/viewer/app/config.py | king-michael/simulation_database | 98ed59a599fe47f011c850d65b2941c81974806c | [
"Apache-2.0"
] | null | null | null | simdb/viewer/app/config.py | king-michael/simulation_database | 98ed59a599fe47f011c850d65b2941c81974806c | [
"Apache-2.0"
] | null | null | null | class Config(object):
SQLALCHEMY_DATABASE_URI = 'sqlite:///app.db'
SQLALCHEMY_TRACK_MODIFICATIONS = False
SECRET_KEY = '1234567890'
SQLALCHEMY_ECHO = False
FLASK_ADMIN_SWATCH = 'united'
if __name__ == '__main__':
for key in Config.__dict__:
print(key, Config.__dict__[key]) | 25.666667 | 48 | 0.698052 | 36 | 308 | 5.305556 | 0.75 | 0.104712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040486 | 0.198052 | 308 | 12 | 49 | 25.666667 | 0.732794 | 0 | 0 | 0 | 0 | 0 | 0.12945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.666667 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
877854b24e7de1552d40c8f8f689244795a27275 | 382 | py | Python | Python 3 - Curso completo/exercicio016.py | PedroMunizdeMatos/Estudos-e-Projetos | 5949c1f2a80100c1e2db56c7b60f5f0475c0d1dc | [
"MIT"
] | null | null | null | Python 3 - Curso completo/exercicio016.py | PedroMunizdeMatos/Estudos-e-Projetos | 5949c1f2a80100c1e2db56c7b60f5f0475c0d1dc | [
"MIT"
] | null | null | null | Python 3 - Curso completo/exercicio016.py | PedroMunizdeMatos/Estudos-e-Projetos | 5949c1f2a80100c1e2db56c7b60f5f0475c0d1dc | [
"MIT"
] | null | null | null | # faça u programa que leia um ângulo qualquer e mostre na etla o valor do seno, cosseno e tangente desse ângulo.
import math
n = int(input('Digite o ângulo: '))
sen = math.sin(math.radians(n))
cos = math.cos(math.radians(n))
tan = math.tan(math.radians(n))
print('Sabendo que o ângulo vale {}º, o seno vale {:.2f}, o c... | 38.2 | 122 | 0.685864 | 70 | 382 | 3.742857 | 0.514286 | 0.125954 | 0.137405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009346 | 0.159686 | 382 | 9 | 123 | 42.444444 | 0.806854 | 0.287958 | 0 | 0 | 0 | 0.166667 | 0.388889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 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 |
8778ed9db299f5d06e0037dc156ebc631051c5a5 | 2,040 | py | Python | python/argparse/git.py | macgregor/demos | 949ea8363f2835569e82fb897f77e98836605689 | [
"MIT"
] | null | null | null | python/argparse/git.py | macgregor/demos | 949ea8363f2835569e82fb897f77e98836605689 | [
"MIT"
] | null | null | null | python/argparse/git.py | macgregor/demos | 949ea8363f2835569e82fb897f77e98836605689 | [
"MIT"
] | null | null | null | import argparse
def git_add(args):
print 'adding file to git...'
print 'parsed_args.filename = \'%s\'' % args.filename
print 'parsed_args.debug = \'%s\'' % args.debug
def git_commit(args):
print 'commiting to git...'
print 'parsed_args.message = \'%s\'' % args.message
print 'parsed_args.debug ... | 45.333333 | 129 | 0.764216 | 318 | 2,040 | 4.767296 | 0.345912 | 0.047493 | 0.039578 | 0.031662 | 0.207784 | 0.092348 | 0.092348 | 0.05277 | 0 | 0 | 0 | 0.00113 | 0.132353 | 2,040 | 44 | 130 | 46.363636 | 0.855367 | 0.391667 | 0 | 0.095238 | 0 | 0 | 0.299674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
877922748623f86da7673ddf7a136f8c8709a8d0 | 557 | py | Python | Books/TensorFlowDeepLearningCookbook/Chapter1_TensorFlow_An_Introduction/subchapter_03_Hello_world_in_TensorFlow.py | Tim232/Python-Things | 05f0f373a4cf298e70d9668c88a6e3a9d1cd8146 | [
"MIT"
] | 2 | 2020-12-05T07:42:55.000Z | 2021-01-06T23:23:18.000Z | Books/TensorFlowDeepLearningCookbook/Chapter1_TensorFlow_An_Introduction/subchapter_03_Hello_world_in_TensorFlow.py | Tim232/Python-Things | 05f0f373a4cf298e70d9668c88a6e3a9d1cd8146 | [
"MIT"
] | null | null | null | Books/TensorFlowDeepLearningCookbook/Chapter1_TensorFlow_An_Introduction/subchapter_03_Hello_world_in_TensorFlow.py | Tim232/Python-Things | 05f0f373a4cf298e70d9668c88a6e3a9d1cd8146 | [
"MIT"
] | null | null | null | import tensorflow as tf # tensorflow 임포트
message = tf.constant('Welcome to the exciting world of Deep Neural Networks!') # 상수 문자열을 사용하기 위해 tf.constant 사용
with tf.Session() as sess: # graph element 를 실행하기 위해 with 절을 사용해 Session 을 정의
print(sess.run(message).decode()) # run 메서드를 사용해 session 수행, decode 함수 미사용시 byte... | 42.846154 | 113 | 0.712747 | 93 | 557 | 4.236559 | 0.666667 | 0.045685 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011312 | 0.206463 | 557 | 13 | 114 | 42.846154 | 0.877828 | 0.375224 | 0 | 0 | 0 | 0 | 0.284211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5e42ecbfdb0864ab12cb2f9e1352ea850ebfba5c | 6,269 | py | Python | tests/workers/test_eval_cipher_suites_openssl1_0_2.py | timb-machine-mirrors/tlsmate | 1313161b9170311f466a3a43b3d84797cecc0291 | [
"MIT"
] | null | null | null | tests/workers/test_eval_cipher_suites_openssl1_0_2.py | timb-machine-mirrors/tlsmate | 1313161b9170311f466a3a43b3d84797cecc0291 | [
"MIT"
] | null | null | null | tests/workers/test_eval_cipher_suites_openssl1_0_2.py | timb-machine-mirrors/tlsmate | 1313161b9170311f466a3a43b3d84797cecc0291 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Implements a class to be used for unit testing.
"""
import pathlib
from tlsmate.workers.eval_cipher_suites import ScanCipherSuites
from tlsmate.tlssuite import TlsSuiteTester
from tlsmate.tlssuite import TlsLibrary
tls10_cs = [
"TLS_RSA_WITH_RC4_128_MD5",
"TLS_RSA_WITH_RC4_128_SHA",... | 36.876471 | 76 | 0.712235 | 968 | 6,269 | 4.006198 | 0.130165 | 0.095926 | 0.125322 | 0.06034 | 0.639763 | 0.629964 | 0.578649 | 0.516245 | 0.507478 | 0.497679 | 0 | 0.061621 | 0.171638 | 6,269 | 169 | 77 | 37.094675 | 0.685153 | 0.028394 | 0 | 0.507042 | 0 | 0 | 0.532455 | 0.435914 | 0 | 0 | 0 | 0 | 0.183099 | 1 | 0.028169 | false | 0 | 0.028169 | 0 | 0.105634 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5e517d9443a37500d9be4fca5cb82e3d098857b8 | 2,688 | py | Python | Lib/site-packages/pylint/config/help_formatter.py | edupyter/EDUPYTER38 | 396183cea72987506f1ef647c0272a2577c56218 | [
"bzip2-1.0.6"
] | null | null | null | Lib/site-packages/pylint/config/help_formatter.py | edupyter/EDUPYTER38 | 396183cea72987506f1ef647c0272a2577c56218 | [
"bzip2-1.0.6"
] | null | null | null | Lib/site-packages/pylint/config/help_formatter.py | edupyter/EDUPYTER38 | 396183cea72987506f1ef647c0272a2577c56218 | [
"bzip2-1.0.6"
] | null | null | null | # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE
# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt
from __future__ import annotations
import argparse
from pylint.config.callback_actions import _C... | 40.727273 | 102 | 0.665923 | 334 | 2,688 | 5.254491 | 0.508982 | 0.034188 | 0.045584 | 0.021652 | 0.037607 | 0.037607 | 0.037607 | 0 | 0 | 0 | 0 | 0.006088 | 0.266741 | 2,688 | 65 | 103 | 41.353846 | 0.884323 | 0.13244 | 0 | 0.043478 | 0 | 0 | 0.619931 | 0.02157 | 0 | 0 | 0 | 0 | 0.021739 | 1 | 0.043478 | false | 0 | 0.086957 | 0.021739 | 0.217391 | 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 |
5e52c7f74878fe87f92f4dd15c28e84fd1d540f7 | 399 | py | Python | tests/tests.py | granttremblay/HRCbus | 8401efb68ea68ca17869ca5c5c27b01d79c0419a | [
"MIT"
] | null | null | null | tests/tests.py | granttremblay/HRCbus | 8401efb68ea68ca17869ca5c5c27b01d79c0419a | [
"MIT"
] | null | null | null | tests/tests.py | granttremblay/HRCbus | 8401efb68ea68ca17869ca5c5c27b01d79c0419a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Set the path explicitly #
sys.path.insert(0, os.path.abspath(__file__+"/../.."))
import unittest
class BasicTestSuit(unittest.TestCase):
"""Basic test cases."""
def test_absolute_truth_and_meaning(self):
assert True
def test_check_environment(self):
hrcbus.che... | 16.625 | 54 | 0.666667 | 48 | 399 | 5.145833 | 0.770833 | 0.05668 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003135 | 0.200501 | 399 | 23 | 55 | 17.347826 | 0.77116 | 0.155388 | 0 | 0 | 0 | 0 | 0.042683 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.2 | false | 0.1 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5e5bb65fba345722ec7237ed640a2109d19f9d1b | 3,833 | py | Python | examples/sock/latency.py | iliar-rabet/dao-projection | e24a00ba29ce92f37bfbcb2595713f2764cd8e9d | [
"BSD-3-Clause"
] | 1 | 2021-01-21T05:43:32.000Z | 2021-01-21T05:43:32.000Z | examples/sock/latency.py | iliar-rabet/dao-projection | e24a00ba29ce92f37bfbcb2595713f2764cd8e9d | [
"BSD-3-Clause"
] | null | null | null | examples/sock/latency.py | iliar-rabet/dao-projection | e24a00ba29ce92f37bfbcb2595713f2764cd8e9d | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python3
from datetime import datetime
import sys
import numpy
PKTS=300
slip=2
try:
if sys.argv[1]:
fileName = sys.argv[1]
except IndexError:
print("Using default file name.")
fileName = 'loglistener.txt'
f = open(fileName,"r")
#f.close()
def test():
list=[]
summ=0
first=0
txcounter=0... | 33.622807 | 94 | 0.404644 | 411 | 3,833 | 3.754258 | 0.201946 | 0.038885 | 0.046662 | 0.062216 | 0.683085 | 0.683085 | 0.683085 | 0.665587 | 0.665587 | 0.609203 | 0 | 0.072185 | 0.457866 | 3,833 | 113 | 95 | 33.920354 | 0.670356 | 0.320637 | 0 | 0.033898 | 0 | 0 | 0.072628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0 | 0.050847 | 0 | 0.067797 | 0.20339 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.