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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a8531e0516140b7ba04c8694d94c31bda49998bb | 228 | py | Python | train.py | airacid/pruned-face-detector | ef587e274ccf87633af653694890eb6712d6b3eb | [
"MIT"
] | 1 | 2021-11-01T02:39:36.000Z | 2021-11-01T02:39:36.000Z | train.py | airacid/pruned-face-detector | ef587e274ccf87633af653694890eb6712d6b3eb | [
"MIT"
] | null | null | null | train.py | airacid/pruned-face-detector | ef587e274ccf87633af653694890eb6712d6b3eb | [
"MIT"
] | 1 | 2021-11-01T02:39:37.000Z | 2021-11-01T02:39:37.000Z | from lib.helper.logger import logger
from lib.core.base_trainer.net_work import trainner
import setproctitle
logger.info('train start')
setproctitle.setproctitle("detect")
trainner=trainner()
trainner.train()
| 16.285714 | 52 | 0.758772 | 28 | 228 | 6.107143 | 0.571429 | 0.081871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149123 | 228 | 13 | 53 | 17.538462 | 0.881443 | 0 | 0 | 0 | 0 | 0 | 0.079439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
a8542bc39dc4bc6c313943d468e061100fee3bbb | 18,841 | py | Python | gewittergefahr/gg_utils/echo_classification_test.py | dopplerchase/GewitterGefahr | 4415b08dd64f37eba5b1b9e8cc5aa9af24f96593 | [
"MIT"
] | 26 | 2018-10-04T01:07:35.000Z | 2022-01-29T08:49:32.000Z | gewittergefahr/gg_utils/echo_classification_test.py | liuximarcus/GewitterGefahr | d819874d616f98a25187bfd3091073a2e6d5279e | [
"MIT"
] | 4 | 2017-12-25T02:01:08.000Z | 2018-12-19T01:54:21.000Z | gewittergefahr/gg_utils/echo_classification_test.py | liuximarcus/GewitterGefahr | d819874d616f98a25187bfd3091073a2e6d5279e | [
"MIT"
] | 11 | 2017-12-10T23:05:29.000Z | 2022-01-29T08:49:33.000Z | """Unit tests for echo_classification.py."""
import copy
import unittest
import numpy
from gewittergefahr.gg_utils import grids
from gewittergefahr.gg_utils import radar_utils
from gewittergefahr.gg_utils import echo_classification as echo_classifn
TOLERANCE = 1e-6
# The following constants are used to test _estimat... | 42.339326 | 80 | 0.647577 | 2,466 | 18,841 | 4.510949 | 0.083536 | 0.026429 | 0.033441 | 0.039554 | 0.816972 | 0.742179 | 0.668465 | 0.617853 | 0.59475 | 0.545307 | 0 | 0.05078 | 0.271482 | 18,841 | 444 | 81 | 42.434685 | 0.759653 | 0.157688 | 0 | 0.359712 | 0 | 0 | 0.008403 | 0.007692 | 0 | 0 | 0 | 0 | 0.07554 | 1 | 0.068345 | false | 0 | 0.021583 | 0 | 0.093525 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 2 |
a8696e66403bcd0cddf377103f52035cff243567 | 528 | py | Python | wemo/admin.py | 7ooL/web_home_auto | 66d1a96359154a2a8015fb8ebfabfedcf38f69a9 | [
"MIT"
] | null | null | null | wemo/admin.py | 7ooL/web_home_auto | 66d1a96359154a2a8015fb8ebfabfedcf38f69a9 | [
"MIT"
] | 8 | 2020-12-30T17:41:41.000Z | 2021-01-24T19:16:54.000Z | wemo/admin.py | 7ooL/HomeAuto | 66d1a96359154a2a8015fb8ebfabfedcf38f69a9 | [
"MIT"
] | null | null | null | from django.contrib import admin
import wemo.models as wemo
from homeauto.admin import make_discoverable, remove_discoverable
class WemoAdmin(admin.ModelAdmin):
list_display = ('name', 'id', 'type', 'status', 'enabled')
list_filter = ('type','status','enabled')
search_fields = ('name',)
actions = [mak... | 27.789474 | 65 | 0.744318 | 61 | 528 | 6.311475 | 0.52459 | 0.057143 | 0.114286 | 0.176623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126894 | 528 | 18 | 66 | 29.333333 | 0.835141 | 0 | 0 | 0 | 0 | 0 | 0.091082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
a875316b50038c4a68ad39f7242aeb9165e411a9 | 1,200 | py | Python | domain/connection/services/ConnectorTypeService.py | muhammetbolat/pythondataintegrator | 5b274db8d39ca1340d535a500f04f6e734f1d54d | [
"MIT"
] | null | null | null | domain/connection/services/ConnectorTypeService.py | muhammetbolat/pythondataintegrator | 5b274db8d39ca1340d535a500f04f6e734f1d54d | [
"MIT"
] | null | null | null | domain/connection/services/ConnectorTypeService.py | muhammetbolat/pythondataintegrator | 5b274db8d39ca1340d535a500f04f6e734f1d54d | [
"MIT"
] | null | null | null | from typing import List
from injector import inject
from infrastructor.data.DatabaseSessionManager import DatabaseSessionManager
from infrastructor.data.Repository import Repository
from infrastructor.dependency.scopes import IScoped
from infrastructor.exception.OperationalException import OperationalException
from mod... | 34.285714 | 94 | 0.715833 | 117 | 1,200 | 7.162393 | 0.393162 | 0.081146 | 0.105012 | 0.096659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002134 | 0.219167 | 1,200 | 34 | 95 | 35.294118 | 0.892209 | 0.009167 | 0 | 0 | 0 | 0 | 0.021016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.304348 | 0 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
a88238aa90a6a61ea36d190e25663ec0d54a09c0 | 2,493 | py | Python | fabfile.py | Ecotrust/formhub | 05033bb5aa152cc2cbcd7382c2c999d82b2c3276 | [
"BSD-2-Clause"
] | 1 | 2015-03-16T20:47:29.000Z | 2015-03-16T20:47:29.000Z | fabfile.py | Ecotrust/formhub | 05033bb5aa152cc2cbcd7382c2c999d82b2c3276 | [
"BSD-2-Clause"
] | 1 | 2016-11-22T13:08:58.000Z | 2016-11-22T13:08:58.000Z | fabfile.py | Ecotrust/formhub | 05033bb5aa152cc2cbcd7382c2c999d82b2c3276 | [
"BSD-2-Clause"
] | 3 | 2015-03-20T03:54:17.000Z | 2022-02-15T00:45:04.000Z | import os, sys
from fabric.api import env, run, cd
from fabric.decorators import hosts
DEFAULTS = {
'home': '/home/wsgi/srv/',
'repo_name': 'formhub',
}
DEPLOYMENTS = {
'dev': {
'home': '/home/ubuntu/srv/',
'host_string': 'ubuntu@23.21.82.214', # TODO: switch to dev.formhub.org
... | 33.689189 | 79 | 0.648215 | 320 | 2,493 | 4.8875 | 0.35 | 0.080563 | 0.057545 | 0.04156 | 0.411765 | 0.262788 | 0.129156 | 0.086957 | 0.086957 | 0.086957 | 0 | 0.006064 | 0.206177 | 2,493 | 73 | 80 | 34.150685 | 0.784234 | 0.030886 | 0 | 0.131148 | 0 | 0 | 0.316618 | 0.009117 | 0 | 0 | 0 | 0.013699 | 0 | 0 | null | null | 0 | 0.04918 | null | null | 0.016393 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a88f260d4387784efa88dff71c1017e21e1e83ae | 424 | py | Python | sphinx/source/docs/user_guide/examples/interaction_checkbox_button_group.py | teresafds/bokeh | 95b2a74ff463cfabdf9e3390951fa380166e6691 | [
"BSD-3-Clause"
] | null | null | null | sphinx/source/docs/user_guide/examples/interaction_checkbox_button_group.py | teresafds/bokeh | 95b2a74ff463cfabdf9e3390951fa380166e6691 | [
"BSD-3-Clause"
] | null | null | null | sphinx/source/docs/user_guide/examples/interaction_checkbox_button_group.py | teresafds/bokeh | 95b2a74ff463cfabdf9e3390951fa380166e6691 | [
"BSD-3-Clause"
] | null | null | null | from bokeh.io import show
from bokeh.models import CheckboxButtonGroup, CustomJS
LABELS = ["Option 1", "Option 2", "Option 3"]
checkbox_button_group = CheckboxButtonGroup(labels=LABELS, active=[0, 1])
checkbox_button_group.js_on_event("button_click", CustomJS(args=dict(btn=checkbox_button_group), code="""
console... | 35.333333 | 105 | 0.771226 | 57 | 424 | 5.508772 | 0.526316 | 0.22293 | 0.302548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.091981 | 424 | 11 | 106 | 38.545455 | 0.802597 | 0 | 0 | 0 | 0 | 0 | 0.275943 | 0.082547 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a8970963b81c6cd00d42a30b45086f5a9c8e4c32 | 22,114 | py | Python | colossalai/nn/layer/parallel_2p5d/_operation.py | DevinCheung/ColossalAI | 632e622de818697f9949e35117c0432d88f62c87 | [
"Apache-2.0"
] | null | null | null | colossalai/nn/layer/parallel_2p5d/_operation.py | DevinCheung/ColossalAI | 632e622de818697f9949e35117c0432d88f62c87 | [
"Apache-2.0"
] | null | null | null | colossalai/nn/layer/parallel_2p5d/_operation.py | DevinCheung/ColossalAI | 632e622de818697f9949e35117c0432d88f62c87 | [
"Apache-2.0"
] | null | null | null | from typing import Any, Tuple
import torch
import torch.distributed as dist
from torch import Tensor
from colossalai.context.parallel_mode import ParallelMode
from colossalai.core import global_context as gpc
from colossalai.utils import get_current_device
from torch.cuda.amp import custom_bwd, custom_fwd
def get_p... | 38.728546 | 136 | 0.582391 | 2,734 | 22,114 | 4.383321 | 0.055962 | 0.069426 | 0.092123 | 0.109479 | 0.774449 | 0.730891 | 0.691172 | 0.660381 | 0.623498 | 0.605975 | 0 | 0.006975 | 0.325766 | 22,114 | 571 | 137 | 38.728546 | 0.796781 | 0.113231 | 0 | 0.632794 | 0 | 0 | 0.005327 | 0 | 0 | 0 | 0 | 0 | 0.006928 | 1 | 0.039261 | false | 0 | 0.018476 | 0.006928 | 0.122402 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a8a5003ca45a8b192c77f895ba87db37d838e858 | 3,510 | py | Python | pyqudie/MongoExceptions.py | evi0s/pyqudie | 5d088482dd2b56e9aaf0991ea182fb11d6a1fc14 | [
"MIT"
] | null | null | null | pyqudie/MongoExceptions.py | evi0s/pyqudie | 5d088482dd2b56e9aaf0991ea182fb11d6a1fc14 | [
"MIT"
] | null | null | null | pyqudie/MongoExceptions.py | evi0s/pyqudie | 5d088482dd2b56e9aaf0991ea182fb11d6a1fc14 | [
"MIT"
] | null | null | null | '''MongoExceptions'''
class MongoExceptions(Exception):
def __init__(self, *args):
self.args = args
class NoDatabaseException(MongoExceptions):
def __init__(self, message = 'No such Database!', code = 422, args = ('No such Database!',)):
self.args = args
self.message = message
... | 29.25 | 151 | 0.654131 | 359 | 3,510 | 6.228412 | 0.133705 | 0.137746 | 0.073792 | 0.162791 | 0.678444 | 0.499553 | 0.410107 | 0.307245 | 0.307245 | 0.288462 | 0 | 0.015613 | 0.233618 | 3,510 | 119 | 152 | 29.495798 | 0.815613 | 0.004274 | 0 | 0.589041 | 0 | 0 | 0.175408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205479 | false | 0 | 0 | 0 | 0.410959 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a8a92eb55c4dbcb59995c698f2e9b284ba3da8d0 | 837 | py | Python | PyDynamic/misc/__init__.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | PyDynamic/misc/__init__.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | PyDynamic/misc/__init__.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
The `PyDynamic.misc` module provides various functions and methods which are used in the examples and in some of the
other implemented routines.
"""
from .filterstuff import db, grpdelay, mapinside, isstable, kaiser_lowpass, savitzky_golay
from .impinvar import impinvar
from .SecondOrderS... | 41.85 | 116 | 0.767025 | 100 | 837 | 6.18 | 0.54 | 0.032362 | 0.061489 | 0.087379 | 0.346278 | 0.346278 | 0.171521 | 0.171521 | 0 | 0 | 0 | 0.00406 | 0.117085 | 837 | 20 | 117 | 41.85 | 0.832206 | 0.199522 | 0 | 0 | 0 | 0 | 0.304676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.222222 | 0.555556 | 0 | 0.555556 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
a8a94f716da67da33d97c86db5c8deee530d894b | 184 | py | Python | python/src/project/py27/flask_base/flask_online_calculator/config.py | hhstore/learning-notes | 1e6634d75850fbf553f4bab4a8fa88b9a80b0287 | [
"MIT"
] | 4 | 2017-06-13T09:26:27.000Z | 2021-09-12T14:57:59.000Z | python/src/project/py27/flask_base/flask_online_calculator/config.py | hhstore/iPyScript | 1e6634d75850fbf553f4bab4a8fa88b9a80b0287 | [
"MIT"
] | 1 | 2018-03-30T05:50:44.000Z | 2018-03-30T05:50:44.000Z | python/src/project/py27/flask_base/flask_online_calculator/config.py | hhstore/iPyScript | 1e6634d75850fbf553f4bab4a8fa88b9a80b0287 | [
"MIT"
] | 4 | 2016-03-07T07:40:55.000Z | 2016-10-15T00:40:22.000Z | # -*- coding:utf-8 -*-
CSRF_ENABLED = True # CSRF_ENABLED 激活 跨站点请求伪造 保护。激活该配置 使得你的应用程序更安全。
SECRET_KEY = "TEST_BLOG" # SECRET_KEY 配置仅仅当 CSRF 激活时才需要,用来建立一个加密令牌,验证表单。务必设置很难被猜测到密钥
| 30.666667 | 84 | 0.733696 | 25 | 184 | 5.2 | 0.8 | 0.169231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006452 | 0.157609 | 184 | 5 | 85 | 36.8 | 0.832258 | 0.679348 | 0 | 0 | 0 | 0 | 0.163636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a8ab8375293257229cf53a300274969590719711 | 732 | py | Python | jupyterlab_iframe/proxy.py | choldgraf/jupyterlab_iframe | 959a87fdd92c096a10a6a4d752bde6e4c10269fc | [
"Apache-2.0"
] | 1 | 2020-09-22T03:15:49.000Z | 2020-09-22T03:15:49.000Z | jupyterlab_iframe/proxy.py | choldgraf/jupyterlab_iframe | 959a87fdd92c096a10a6a4d752bde6e4c10269fc | [
"Apache-2.0"
] | null | null | null | jupyterlab_iframe/proxy.py | choldgraf/jupyterlab_iframe | 959a87fdd92c096a10a6a4d752bde6e4c10269fc | [
"Apache-2.0"
] | null | null | null | import tornado.gen
import tornado.web
import tornado.websocket
import tornado.httpclient
from notebook.base.handlers import IPythonHandler
from tornado_proxy_handlers import ProxyHandler as TProxyHandler, ProxyWSHandler as TProxyWSHandler
class ProxyHandler(IPythonHandler, TProxyHandler):
def initialize(self, **k... | 30.5 | 99 | 0.740437 | 84 | 732 | 6.404762 | 0.404762 | 0.096654 | 0.070632 | 0.081784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159836 | 732 | 23 | 100 | 31.826087 | 0.874797 | 0.02459 | 0 | 0.117647 | 0 | 0 | 0.011299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.352941 | 0 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
a8d92e89169e33eb6e8bb6f35d69a24f76ec1c6b | 2,208 | py | Python | test/test_contact_data.py | viktoryiakuzmitskaya/pytest_examples | bb3d73d27d5935617e812f5038e4dd4499cf73e5 | [
"Apache-2.0"
] | null | null | null | test/test_contact_data.py | viktoryiakuzmitskaya/pytest_examples | bb3d73d27d5935617e812f5038e4dd4499cf73e5 | [
"Apache-2.0"
] | null | null | null | test/test_contact_data.py | viktoryiakuzmitskaya/pytest_examples | bb3d73d27d5935617e812f5038e4dd4499cf73e5 | [
"Apache-2.0"
] | null | null | null | from model.contact import Contact
import re
from random import randrange
def test_contact_data_for_random_contact(app):
if app.contact.count() == 0:
app.contact.create(Contact(firstname="John", lastname="Connor", address=("%s, %s %s" % ("Los Angeles", str(randrange(1000)), "Nickel Road")), workphone="w4465... | 55.2 | 197 | 0.75317 | 322 | 2,208 | 4.807453 | 0.245342 | 0.082687 | 0.077519 | 0.073643 | 0.444444 | 0.362403 | 0.265504 | 0.251292 | 0.235788 | 0.196382 | 0 | 0.007845 | 0.134058 | 2,208 | 40 | 198 | 55.2 | 0.801778 | 0.03442 | 0 | 0 | 0 | 0 | 0.034774 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 1 | 0.206897 | false | 0 | 0.103448 | 0.137931 | 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 | 1 | 0 | 0 | 0 | 2 |
7642f65db4bdf35329c8005d4e47e999b4a4a736 | 1,454 | py | Python | server/test/user_test.py | ioku-jts/LinkedList | ed0ae396ad311db51a7c48c95a8fff4654b4bdb4 | [
"MIT"
] | 1 | 2016-03-14T13:35:54.000Z | 2016-03-14T13:35:54.000Z | server/test/user_test.py | ioku-jts/LinkedList | ed0ae396ad311db51a7c48c95a8fff4654b4bdb4 | [
"MIT"
] | null | null | null | server/test/user_test.py | ioku-jts/LinkedList | ed0ae396ad311db51a7c48c95a8fff4654b4bdb4 | [
"MIT"
] | null | null | null | """
create user, log in, and get information back
"""
import requests
import json
headers = {'content-type': 'application/json'}
url = 'http://127.0.0.1:5000'
create_user_route='/user/createaccount'
login_user_route='/user/login'
get_user_data_route='/user'
create_user_data = {'username': 'Alice Test',
'emai... | 40.388889 | 144 | 0.742091 | 203 | 1,454 | 5.049261 | 0.270936 | 0.062439 | 0.042927 | 0.061463 | 0.432195 | 0.18439 | 0.18439 | 0 | 0 | 0 | 0 | 0.014638 | 0.10729 | 1,454 | 35 | 145 | 41.542857 | 0.775039 | 0 | 0 | 0 | 0 | 0 | 0.284083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.130435 | 0.086957 | null | null | 0.173913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
765109d6127a3603ddffeea167cd93c96c3314de | 832 | py | Python | agent.py | empea-careercriminal/the_pool | 2e20cf0ce08087b491760f284ce76ea181d97c0d | [
"MIT"
] | null | null | null | agent.py | empea-careercriminal/the_pool | 2e20cf0ce08087b491760f284ce76ea181d97c0d | [
"MIT"
] | null | null | null | agent.py | empea-careercriminal/the_pool | 2e20cf0ce08087b491760f284ce76ea181d97c0d | [
"MIT"
] | 3 | 2021-04-05T15:25:05.000Z | 2021-04-05T15:25:18.000Z | class Agent(object):
"""Keeps relevant data of NPC and handles behavior."""
def __init__(self, name, hitpoints, strenght):
self.name = name
self.hitpoints = hitpoints
self.strenght = strenght
def move(self):
pass
def talk(self):
pass
def give_item(self):
... | 22.486486 | 58 | 0.604567 | 113 | 832 | 4.380531 | 0.39823 | 0.066667 | 0.111111 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056452 | 0.254808 | 832 | 36 | 59 | 23.111111 | 0.741935 | 0.057692 | 0 | 0.214286 | 0 | 0 | 0.104113 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.214286 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
765de538d08fcae69fc56a7784a2a8f37c6e64b5 | 1,588 | py | Python | Linux/etc/decript.py | Dave360-crypto/Oblivion | 0f5619ecba6a9b1ebc6dc6f4988ef6c542bf8ca3 | [
"BSD-3-Clause"
] | 339 | 2020-11-30T16:02:29.000Z | 2022-03-29T22:10:44.000Z | Linux/etc/decript.py | tracid56/Oblivion | f16dffbb6fab18c178aacda7f177ec3ae82d1997 | [
"BSD-3-Clause"
] | 5 | 2021-01-03T18:59:02.000Z | 2021-12-09T13:22:57.000Z | Linux/etc/decript.py | tracid56/Oblivion | f16dffbb6fab18c178aacda7f177ec3ae82d1997 | [
"BSD-3-Clause"
] | 71 | 2020-11-30T19:38:04.000Z | 2022-03-28T05:20:34.000Z | #!/usr/bin/python
import os
import pathlib
from cryptography.fernet import Fernet
# Global variables/Variáveis globais.
path_atual_dc = str(pathlib.Path(__file__).parent.absolute())
path_dc_final = path_atual_dc.replace('/etc','')
def decript_file(arquivo, chave=None):
"""
Decrypt a file/Desencriptografa ... | 24.430769 | 74 | 0.552897 | 184 | 1,588 | 4.597826 | 0.320652 | 0.07565 | 0.070922 | 0.049645 | 0.472813 | 0.472813 | 0.472813 | 0.472813 | 0.472813 | 0.472813 | 0 | 0 | 0.338791 | 1,588 | 64 | 75 | 24.8125 | 0.805714 | 0.11335 | 0 | 0.717949 | 0 | 0 | 0.047757 | 0.023878 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0.051282 | 0.076923 | 0 | 0.102564 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
766373b62520d853d63f1ad8e10a51908e148097 | 1,659 | py | Python | binding-python/runtime/src/main/python/etch/binding/transport/__init__.py | apache/etch | 5a875755019a7f342a07c8c368a50e3efb6ae68c | [
"ECL-2.0",
"Apache-2.0"
] | 9 | 2015-02-14T15:09:54.000Z | 2021-11-10T15:09:45.000Z | binding-python/runtime/src/main/python/etch/binding/transport/__init__.py | apache/etch | 5a875755019a7f342a07c8c368a50e3efb6ae68c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | binding-python/runtime/src/main/python/etch/binding/transport/__init__.py | apache/etch | 5a875755019a7f342a07c8c368a50e3efb6ae68c | [
"ECL-2.0",
"Apache-2.0"
] | 14 | 2015-04-20T10:35:00.000Z | 2021-11-10T15:09:35.000Z | """
# Licensed to the Apache Software Foundation (ASF) under one *
# or more contributor license agreements. See the NOTICE file *
# distributed with this work for additional information *
# regarding copyright ownership. The ASF licenses this file *
# to you under the Apache License, Version 2.0 (the... | 43.657895 | 65 | 0.614225 | 174 | 1,659 | 5.827586 | 0.522989 | 0.147929 | 0.025641 | 0.031558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003584 | 0.327306 | 1,659 | 37 | 66 | 44.837838 | 0.905018 | 0.655214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
7666c1a45d318801873b4b7efa5a3ed9aca8e28f | 3,008 | py | Python | util/postprocessing.py | ZeayW/graph-contrastive-learning | b8952b677ec30110f8a616ba7162ae738d5d4052 | [
"Apache-2.0"
] | null | null | null | util/postprocessing.py | ZeayW/graph-contrastive-learning | b8952b677ec30110f8a616ba7162ae738d5d4052 | [
"Apache-2.0"
] | null | null | null | util/postprocessing.py | ZeayW/graph-contrastive-learning | b8952b677ec30110f8a616ba7162ae738d5d4052 | [
"Apache-2.0"
] | null | null | null | import sys
import os
import pickle
sys.path.append("..")
import util.structural as structural
import util.verilog as verilog
import dgl
if __name__ == "__main__":
folder = "../GCN/predicts/io/plus2/nl55"
total = 0
total_matched = 0
tried = 0
# find input from outputs
for case in os.listdir(fo... | 33.054945 | 82 | 0.470745 | 388 | 3,008 | 3.494845 | 0.198454 | 0.036873 | 0.030973 | 0.035398 | 0.752212 | 0.725664 | 0.661504 | 0.612094 | 0.612094 | 0.612094 | 0 | 0.020302 | 0.426862 | 3,008 | 90 | 83 | 33.422222 | 0.766241 | 0.073138 | 0 | 0.620253 | 0 | 0 | 0.015484 | 0.010443 | 0 | 0 | 0 | 0 | 0.025316 | 1 | 0 | false | 0 | 0.075949 | 0 | 0.075949 | 0.050633 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
766967048f6373925c88984d0ddb17403b5df64f | 2,733 | py | Python | project/schemas.py | firewut/image-resize-service | 33b8601e047fc4827c036c93686f39f9dd864956 | [
"MIT"
] | null | null | null | project/schemas.py | firewut/image-resize-service | 33b8601e047fc4827c036c93686f39f9dd864956 | [
"MIT"
] | null | null | null | project/schemas.py | firewut/image-resize-service | 33b8601e047fc4827c036c93686f39f9dd864956 | [
"MIT"
] | null | null | null | DIRECT_LINK_SCHEMA = {
"type": "object",
"properties": {
"local_file": {
"type": ["string", "null"],
"description": "local zip file path"
}
}
}
IMAGE_SCHEMA = {
"type": "object",
"properties": {
"original": {
"type": "file"
},
... | 26.278846 | 50 | 0.212221 | 105 | 2,733 | 5.428571 | 0.32381 | 0.084211 | 0.157895 | 0.192982 | 0.587719 | 0.587719 | 0.587719 | 0.587719 | 0.587719 | 0.587719 | 0 | 0.052174 | 0.663374 | 2,733 | 104 | 51 | 26.278846 | 0.567391 | 0 | 0 | 0.38835 | 0 | 0 | 0.193489 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 2 |
7670a8d55e994e38c8ac686e3d1a057c36b057e5 | 1,779 | py | Python | examples/WiPy/02_simple_ssl.py | meznat/blynk-library-python-fork | 7af526de01d666408308a84befdf1f4233c9e134 | [
"MIT"
] | null | null | null | examples/WiPy/02_simple_ssl.py | meznat/blynk-library-python-fork | 7af526de01d666408308a84befdf1f4233c9e134 | [
"MIT"
] | null | null | null | examples/WiPy/02_simple_ssl.py | meznat/blynk-library-python-fork | 7af526de01d666408308a84befdf1f4233c9e134 | [
"MIT"
] | null | null | null | """
Blynk is a platform with iOS and Android apps to control
Arduino, Raspberry Pi and the likes over the Internet.
You can easily build graphic interfaces for all your
projects by simply dragging and dropping widgets.
Downloads, docs, tutorials: http://www.blynk.cc
Sketch generator: http://exampl... | 32.345455 | 66 | 0.708263 | 264 | 1,779 | 4.734848 | 0.609848 | 0.0168 | 0.0192 | 0.0224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01294 | 0.2181 | 1,779 | 54 | 67 | 32.944444 | 0.885694 | 0.08769 | 0 | 0 | 0 | 0 | 0.105769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.142857 | 0.214286 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
767c86efa5070b9ed62fc7db3a41b020c4c71450 | 855 | py | Python | mtp_noms_ops/apps/security/context_processors.py | ministryofjustice/money-to-prisoners-noms-ops | b01e5260f57b5aad553c7107ac423e915454093b | [
"MIT"
] | 3 | 2016-12-22T15:56:57.000Z | 2020-03-10T10:37:40.000Z | mtp_noms_ops/apps/security/context_processors.py | ministryofjustice/money-to-prisoners-noms-ops | b01e5260f57b5aad553c7107ac423e915454093b | [
"MIT"
] | 61 | 2016-06-10T08:37:23.000Z | 2022-01-28T12:41:29.000Z | mtp_noms_ops/apps/security/context_processors.py | ministryofjustice/money-to-prisoners-noms-ops | b01e5260f57b5aad553c7107ac423e915454093b | [
"MIT"
] | 1 | 2021-04-11T06:13:53.000Z | 2021-04-11T06:13:53.000Z | from urllib.parse import urlencode
from django.conf import settings
from django.contrib.auth import REDIRECT_FIELD_NAME
from security.forms.object_list import PRISON_SELECTOR_USER_PRISONS_CHOICE_VALUE
from security.utils import can_choose_prisons
def prison_choice_available(request):
return {
'prison_ch... | 26.71875 | 95 | 0.74152 | 100 | 855 | 5.9 | 0.39 | 0.118644 | 0.122034 | 0.169492 | 0.244068 | 0.244068 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191813 | 855 | 31 | 96 | 27.580645 | 0.853835 | 0 | 0 | 0.130435 | 0 | 0 | 0.154386 | 0.074854 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.217391 | 0.130435 | 0.478261 | 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 | 1 | 0 | 0 | 0 | 2 |
768a0e8341e74ca7bff903c4836d5473cd5493e4 | 650 | py | Python | csepy/System/Models/Context/ContextFactory.py | csepy/csepy | 3dc39e60948d62bede48bddac0ad5aa8533550d3 | [
"MIT"
] | 1 | 2019-12-11T10:41:40.000Z | 2019-12-11T10:41:40.000Z | csepy/System/Models/Context/ContextFactory.py | csepy/csepy | 3dc39e60948d62bede48bddac0ad5aa8533550d3 | [
"MIT"
] | null | null | null | csepy/System/Models/Context/ContextFactory.py | csepy/csepy | 3dc39e60948d62bede48bddac0ad5aa8533550d3 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
from csepy.System.CommandQueue.CommandQueueFactory import GetCommandQueue
from csepy.System.Configurations.ConfigArchivist import GetConfig
from csepy.System.Logger.LoggerFactory import GetLogger
from csepy.System.Models.Context.Context import Context
from csepy.System.Models.OperatingSystemModel.OsM... | 38.235294 | 78 | 0.807692 | 65 | 650 | 8.076923 | 0.446154 | 0.085714 | 0.142857 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001739 | 0.115385 | 650 | 16 | 79 | 40.625 | 0.911304 | 0.026154 | 0 | 0 | 0 | 0 | 0.018987 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.384615 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
769d57406654c9675751a7224ff8be6622c8c4d0 | 2,246 | py | Python | src/driver.py | QualiSystems/Ixia-IxChariotController-Shell | 4befeb14dee6c364f36ae0fa51690de0a46fc250 | [
"Apache-2.0"
] | null | null | null | src/driver.py | QualiSystems/Ixia-IxChariotController-Shell | 4befeb14dee6c364f36ae0fa51690de0a46fc250 | [
"Apache-2.0"
] | null | null | null | src/driver.py | QualiSystems/Ixia-IxChariotController-Shell | 4befeb14dee6c364f36ae0fa51690de0a46fc250 | [
"Apache-2.0"
] | null | null | null |
from cloudshell.shell.core.session.cloudshell_session import CloudShellSessionContext
from cloudshell.traffic.driver import TrafficControllerDriver
from ixc_handler import IxcHandler
class IxChariotControllerDriver(TrafficControllerDriver):
def __init__(self):
super(self.__class__, self).__init__()
... | 32.550725 | 90 | 0.693232 | 236 | 2,246 | 6.334746 | 0.305085 | 0.058863 | 0.063545 | 0.048161 | 0.346488 | 0.211371 | 0.211371 | 0.211371 | 0.211371 | 0.109699 | 0 | 0 | 0.220837 | 2,246 | 68 | 91 | 33.029412 | 0.854286 | 0.268477 | 0 | 0 | 0 | 0 | 0.017728 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.344828 | false | 0 | 0.103448 | 0 | 0.551724 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
76a010ca57f20ce262a469687cf616eedb594e19 | 4,691 | py | Python | numpy_wrapper.py | mayi140611/utils | 8ad4f4e3f7913f0119bc04f84326a8ad01bf65d1 | [
"Apache-2.0"
] | 1 | 2018-07-16T03:42:57.000Z | 2018-07-16T03:42:57.000Z | numpy_wrapper.py | mayi140611/utils | 8ad4f4e3f7913f0119bc04f84326a8ad01bf65d1 | [
"Apache-2.0"
] | null | null | null | numpy_wrapper.py | mayi140611/utils | 8ad4f4e3f7913f0119bc04f84326a8ad01bf65d1 | [
"Apache-2.0"
] | 1 | 2020-04-19T11:42:05.000Z | 2020-04-19T11:42:05.000Z | #!/usr/bin/python
# encoding: utf-8
import numpy as np
class numpy_wrapper(object):
def __init__(self):
pass
@classmethod
def arange(self, start, stop, step=1, dtype=None):
'''
生成1D ndarray
Return evenly spaced values within a given interval.
'''
return np.... | 31.911565 | 87 | 0.514176 | 478 | 4,691 | 4.993724 | 0.322176 | 0.105572 | 0.021785 | 0.021785 | 0.26393 | 0.225388 | 0.162547 | 0.103896 | 0.103896 | 0.103896 | 0 | 0.009155 | 0.278192 | 4,691 | 147 | 88 | 31.911565 | 0.695806 | 0.395864 | 0 | 0.310345 | 0 | 0 | 0.001318 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.327586 | false | 0.017241 | 0.017241 | 0.051724 | 0.672414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
4f161604df46e1bb42ece354f8ecb1b432c8b633 | 1,706 | py | Python | venv1/Lib/site-packages/tensorflow/contrib/saved_model/python/saved_model/signature_def_utils.py | Soum-Soum/Tensorflow_Face_Finder | fec6c15d2df7012608511ad87f4b55731bf99478 | [
"Apache-2.0",
"MIT"
] | null | null | null | venv1/Lib/site-packages/tensorflow/contrib/saved_model/python/saved_model/signature_def_utils.py | Soum-Soum/Tensorflow_Face_Finder | fec6c15d2df7012608511ad87f4b55731bf99478 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-05-20T00:58:04.000Z | 2021-05-20T00:58:04.000Z | venv1/Lib/site-packages/tensorflow/contrib/saved_model/python/saved_model/signature_def_utils.py | Soum-Soum/Tensorflow_Face_Finder | fec6c15d2df7012608511ad87f4b55731bf99478 | [
"Apache-2.0",
"MIT"
] | null | null | null | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | 39.674419 | 81 | 0.711606 | 226 | 1,706 | 5.20354 | 0.469027 | 0.081633 | 0.063776 | 0.053571 | 0.110544 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005818 | 0.194021 | 1,706 | 42 | 82 | 40.619048 | 0.849455 | 0.694607 | 0 | 0 | 0 | 0 | 0.12093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
4f16df816260eee8b49f81f4d16e34b859006ca9 | 11,933 | py | Python | 4-assets/BOOKS/notebooks/Mini_tutoriel_pour_la_resolution_de_programmes_lineaires_avec_Python__ENS_Rennes_2021.py | impastasyndrome/Lambda-Resource-Static-Assets | 7070672038620d29844991250f2476d0f1a60b0a | [
"MIT"
] | 102 | 2016-06-25T09:30:00.000Z | 2022-03-24T21:02:49.000Z | 4-assets/BOOKS/notebooks/Mini_tutoriel_pour_la_resolution_de_programmes_lineaires_avec_Python__ENS_Rennes_2021.py | impastasyndrome/Lambda-Resource-Static-Assets | 7070672038620d29844991250f2476d0f1a60b0a | [
"MIT"
] | 34 | 2016-06-26T12:21:30.000Z | 2021-04-06T09:19:49.000Z | 4-assets/BOOKS/notebooks/Mini_tutoriel_pour_la_resolution_de_programmes_lineaires_avec_Python__ENS_Rennes_2021.py | impastasyndrome/Lambda-Resource-Static-Assets | 7070672038620d29844991250f2476d0f1a60b0a | [
"MIT"
] | 44 | 2017-05-13T23:54:56.000Z | 2021-07-17T15:34:24.000Z | #!/usr/bin/env python
# coding: utf-8
# # Mini tutoriel pour la résolution de programmes linéaires avec Python - ENS Rennes 2021
# ## Références si vous êtes curieux-ses
#
# Un très bon tutoriel :
#
# - https://realpython.com/linear-programming-python/
#
# Documentation de `scipy.optimize` :
#
# - https://docs.sc... | 49.514523 | 3,971 | 0.702338 | 1,872 | 11,933 | 4.449786 | 0.246261 | 0.018247 | 0.02593 | 0.017167 | 0.482113 | 0.447299 | 0.388595 | 0.344178 | 0.319088 | 0.27575 | 0 | 0.036948 | 0.131317 | 11,933 | 240 | 3,972 | 49.720833 | 0.766448 | 0.841616 | 0 | 0.339286 | 0 | 0.017857 | 0.28063 | 0 | 0 | 0 | 0 | 0.004167 | 0 | 1 | 0.017857 | false | 0 | 0.053571 | 0.017857 | 0.089286 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4f1b439f5eef402f9c3644e866b543b7d9565b01 | 939 | py | Python | QGOpt/manifolds/convert.py | RyAlAl/QGOpt | f356ff7b670317046b2bfbf94c90b7d7573bbfd0 | [
"Apache-2.0"
] | 44 | 2020-05-08T22:26:54.000Z | 2022-03-24T17:37:06.000Z | QGOpt/manifolds/convert.py | RyAlAl/QGOpt | f356ff7b670317046b2bfbf94c90b7d7573bbfd0 | [
"Apache-2.0"
] | 7 | 2020-05-28T11:17:44.000Z | 2022-02-10T01:53:09.000Z | QGOpt/manifolds/convert.py | RyAlAl/QGOpt | f356ff7b670317046b2bfbf94c90b7d7573bbfd0 | [
"Apache-2.0"
] | 6 | 2020-05-28T18:45:27.000Z | 2021-05-21T02:13:30.000Z | import tensorflow as tf
def complex_to_real(tensor):
"""Returns tensor converted from a complex dtype with shape
(...,) to a real dtype with shape (..., 2), where last index
marks real [0] and imag [1] parts of a complex valued tensor.
Args:
tensor: complex valued tensor of shape (...,).
... | 31.3 | 70 | 0.607029 | 131 | 939 | 4.320611 | 0.259542 | 0.127208 | 0.09894 | 0.134276 | 0.556537 | 0.464664 | 0.194346 | 0.194346 | 0.194346 | 0.194346 | 0 | 0.015603 | 0.249201 | 939 | 29 | 71 | 32.37931 | 0.787234 | 0.632588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
4f250e37ae6f60cb40ee1c29b91dd8c012e4f452 | 2,185 | py | Python | python_spec/python_blocks/tests/scale_copy.py | ak-ustutt/GeCCo-public | 8d43a6c9323aeba7eb54625b95553bfd4b2418c6 | [
"MIT"
] | null | null | null | python_spec/python_blocks/tests/scale_copy.py | ak-ustutt/GeCCo-public | 8d43a6c9323aeba7eb54625b95553bfd4b2418c6 | [
"MIT"
] | null | null | null | python_spec/python_blocks/tests/scale_copy.py | ak-ustutt/GeCCo-public | 8d43a6c9323aeba7eb54625b95553bfd4b2418c6 | [
"MIT"
] | null | null | null | from python_interface.gecco_interface import *
new_target('TEST_ADD_UNITY',True)
DEF_OP_FROM_OCC({
LABEL:"DUMMY_1",
DESCR:'P,P|PP,PP|V,V|VV,VV|H,H|HH,HH'
})
SET_HERMITIAN({
LABEL:"DUMMY_1",
CA_SYMMETRY:+1})
DEF_ME_LIST({
LIST:'ME_DUMMY_1',
OPERATOR:'DUMMY_1',
... | 16.30597 | 46 | 0.524485 | 320 | 2,185 | 3.2375 | 0.196875 | 0.148649 | 0.11583 | 0.081081 | 0.774131 | 0.75 | 0.648649 | 0.604247 | 0.604247 | 0.410232 | 0 | 0.046144 | 0.305721 | 2,185 | 133 | 47 | 16.428571 | 0.636783 | 0.186728 | 0 | 0.689189 | 0 | 0.013514 | 0.204805 | 0.01659 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.013514 | 0 | 0.013514 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4f48219fba75ea9f69a9e7787ccf94e062da5920 | 1,610 | py | Python | setup.py | kade-robertson/afh-dl | c8cd0b830892ae7ad842bb2b877118539c5dc664 | [
"MIT"
] | 2 | 2019-01-25T16:00:28.000Z | 2021-03-20T02:21:48.000Z | setup.py | kade-robertson/afh-dl | c8cd0b830892ae7ad842bb2b877118539c5dc664 | [
"MIT"
] | null | null | null | setup.py | kade-robertson/afh-dl | c8cd0b830892ae7ad842bb2b877118539c5dc664 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
import afh_dl
long_desc = ""
try:
import pypandoc
long_desc = pypandoc.convert('README.md', 'rst', extra_args = ('--eol', 'lf'))
except(IOError, ImportError):
long_desc = open('README.md').read()
setup(
name = "afh-dl",
version = "1.0.3",
descriptio... | 30.961538 | 84 | 0.581366 | 169 | 1,610 | 5.443787 | 0.538462 | 0.18587 | 0.244565 | 0.226087 | 0.058696 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020495 | 0.272671 | 1,610 | 51 | 85 | 31.568627 | 0.765158 | 0 | 0 | 0.041667 | 0 | 0 | 0.489441 | 0.013043 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4f4cdd30f1534aad4d5ff666692cbd06481bf014 | 436 | py | Python | codes/ToOneHot.py | mengzhu0308/couplet | 8c56bc6cc59d805a87d5c0dac3201f3df4ceeace | [
"Apache-2.0"
] | null | null | null | codes/ToOneHot.py | mengzhu0308/couplet | 8c56bc6cc59d805a87d5c0dac3201f3df4ceeace | [
"Apache-2.0"
] | null | null | null | codes/ToOneHot.py | mengzhu0308/couplet | 8c56bc6cc59d805a87d5c0dac3201f3df4ceeace | [
"Apache-2.0"
] | null | null | null | #! -*- coding:utf-8 -*-
'''
@Author: ZM
@Date and Time: 2020/12/15 20:27
@File: ToOneHot.py
'''
import numpy as np
class ToOneHot:
def __init__(self, num_classes):
self.num_classes = num_classes
def __call__(self, label):
label_len = len(label)
one_hot = np.zeros((lab... | 22.947368 | 74 | 0.607798 | 62 | 436 | 3.983871 | 0.596774 | 0.161943 | 0.17004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049231 | 0.254587 | 436 | 19 | 75 | 22.947368 | 0.710769 | 0.233945 | 0 | 0 | 0 | 0 | 0.021407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
4f62fd31f25e8ef62c147c645a369f27d607b890 | 171 | py | Python | _version.py | lgessler/rstWeb | 0041065374b023e799c8098d9e55e4a9732f3852 | [
"MIT"
] | null | null | null | _version.py | lgessler/rstWeb | 0041065374b023e799c8098d9e55e4a9732f3852 | [
"MIT"
] | null | null | null | _version.py | lgessler/rstWeb | 0041065374b023e799c8098d9e55e4a9732f3852 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
__version__ = "2.0.3"
__author__ = "Amir Zeldes"
__copyright__ = "Copyright 2015-2018, Amir Zeldes"
__license__ = "MIT License"
| 21.375 | 50 | 0.684211 | 22 | 171 | 4.590909 | 0.818182 | 0.19802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 0.140351 | 171 | 7 | 51 | 24.428571 | 0.605442 | 0.222222 | 0 | 0 | 0 | 0 | 0.450382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4f71b6384c2d4fab2276f1f65952ff68ff2f4343 | 1,028 | py | Python | git_hook/commit_msg.py | FanyangKong/git-awesome-hook | ccba63044c4eb7a4b6dc9401fa5832f489114a86 | [
"Apache-2.0"
] | null | null | null | git_hook/commit_msg.py | FanyangKong/git-awesome-hook | ccba63044c4eb7a4b6dc9401fa5832f489114a86 | [
"Apache-2.0"
] | null | null | null | git_hook/commit_msg.py | FanyangKong/git-awesome-hook | ccba63044c4eb7a4b6dc9401fa5832f489114a86 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# COMMIT_MSG_FILE=$1
# COMMIT_SOURCE=$2
# SHA1=$3
import sys, os
import re
from git_utils import *
commit_msg_filepath = sys.argv[1]
branch_name = get_branch_name()
commit_msg = ""
if branch_name.startswith("fix/bug"):
with open(commit_msg_filepath, 'r') as f:
lin... | 23.906977 | 89 | 0.659533 | 159 | 1,028 | 4.125786 | 0.396226 | 0.205793 | 0.077744 | 0.051829 | 0.64939 | 0.64939 | 0.64939 | 0.64939 | 0.554878 | 0.554878 | 0 | 0.014201 | 0.178016 | 1,028 | 43 | 90 | 23.906977 | 0.757396 | 0.08463 | 0 | 0.6 | 0 | 0 | 0.173959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.066667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4f7d8cc97bcd56652905e261ee16b5f8616af23c | 109 | py | Python | Term 2/8/4.py | theseana/ajisa | 1c92b00acd3fad7c92b8222b5f6a86fc6db4bcae | [
"MIT"
] | null | null | null | Term 2/8/4.py | theseana/ajisa | 1c92b00acd3fad7c92b8222b5f6a86fc6db4bcae | [
"MIT"
] | null | null | null | Term 2/8/4.py | theseana/ajisa | 1c92b00acd3fad7c92b8222b5f6a86fc6db4bcae | [
"MIT"
] | null | null | null | a = 'AJisa'
a = a.upper()
print(a)
a = a.lower()
print(a)
n = "89*"
print(n.isnumeric())
print(n.isalpha()) | 10.9 | 20 | 0.577982 | 20 | 109 | 3.15 | 0.45 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.155963 | 109 | 10 | 21 | 10.9 | 0.663043 | 0 | 0 | 0.25 | 0 | 0 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
4f9e0f430f2b6fcc79b274cc35ef655c6aa12d0f | 471 | py | Python | text/symbols.py | highmaru-public/multi-speaker-tacotron-tensorflow | a43dcf61605f262b2ad9f3dd997c6edef2e4177d | [
"MIT"
] | 183 | 2017-10-20T00:17:33.000Z | 2022-03-19T02:03:18.000Z | text/symbols.py | highmaru-public/multi-speaker-tacotron-tensorflow | a43dcf61605f262b2ad9f3dd997c6edef2e4177d | [
"MIT"
] | 12 | 2021-01-26T05:36:12.000Z | 2022-03-12T00:51:57.000Z | text/symbols.py | highmaru-public/multi-speaker-tacotron-tensorflow | a43dcf61605f262b2ad9f3dd997c6edef2e4177d | [
"MIT"
] | 132 | 2017-10-19T02:42:44.000Z | 2021-11-30T05:22:15.000Z | '''
Defines the set of symbols used in text input to the model.
The default is a set of ASCII characters that works well for English or text that has been run
through Unidecode. For other data, you can modify _characters. See TRAINING_DATA.md for details.
'''
from jamo import h2j, j2h
from jamo.jamo import _jamo_char_... | 33.642857 | 96 | 0.779193 | 71 | 471 | 5.056338 | 0.676056 | 0.027855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005 | 0.150743 | 471 | 13 | 97 | 36.230769 | 0.8925 | 0.698514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
4fa72625135c85c41698d3b5f5ed3606a93522fb | 300 | py | Python | adminmgr/media/code/python/map3/BD_051_272_1339_mapper.py | IamMayankThakur/test-bigdata | cef633eb394419b955bdce479699d0115d8f99c3 | [
"Apache-2.0"
] | 9 | 2019-11-08T02:05:27.000Z | 2021-12-13T12:06:35.000Z | adminmgr/media/code/python/map1/BD_0051_0272_1339_mapper.py | IamMayankThakur/test-bigdata | cef633eb394419b955bdce479699d0115d8f99c3 | [
"Apache-2.0"
] | 6 | 2019-11-27T03:23:16.000Z | 2021-06-10T19:15:13.000Z | adminmgr/media/code/python/map3/BD_0051_0272_1339_mapper.py | IamMayankThakur/test-bigdata | cef633eb394419b955bdce479699d0115d8f99c3 | [
"Apache-2.0"
] | 4 | 2019-11-26T17:04:27.000Z | 2021-12-13T11:57:03.000Z | #!/usr/bin/python3
import sys
pair={}
for ln in sys.stdin:
col=ln.strip()
col=ln.split(",")
if(col[0]=="ball"):
if (col[4],col[6]) in pair:
pair[(col[4],col[6])]+=1
elif:
pair[(col[4],col[6])]=1
if(pair[(col[4],col[6])]>=6):
print(col[6],col[4],int(col[7]),int(col[8]),sep=",")
| 16.666667 | 53 | 0.54 | 60 | 300 | 2.7 | 0.416667 | 0.123457 | 0.17284 | 0.197531 | 0.234568 | 0.160494 | 0 | 0 | 0 | 0 | 0 | 0.065891 | 0.14 | 300 | 17 | 54 | 17.647059 | 0.562016 | 0.056667 | 0 | 0 | 0 | 0 | 0.021429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4fa9b1ec809a3eda11d3427fe8778af6253c4abb | 52 | py | Python | resources/config.py | PythonForChange/PythonForChange.github.io- | 3176d85f56dcb1ece08f437ae72282d60386ae81 | [
"MIT"
] | 1 | 2021-06-02T17:08:26.000Z | 2021-06-02T17:08:26.000Z | resources/config.py | PythonForChange/pythonforchange.github.io | 3176d85f56dcb1ece08f437ae72282d60386ae81 | [
"MIT"
] | null | null | null | resources/config.py | PythonForChange/pythonforchange.github.io | 3176d85f56dcb1ece08f437ae72282d60386ae81 | [
"MIT"
] | null | null | null | #News Config
files=["news.md","README.md"]
year=2021 | 17.333333 | 29 | 0.711538 | 9 | 52 | 4.111111 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 0.057692 | 52 | 3 | 30 | 17.333333 | 0.673469 | 0.211538 | 0 | 0 | 0 | 0 | 0.390244 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
96cf2c23700221b2c2d8b46d84437784c43a4f1d | 10,840 | py | Python | src/Foundation.py | mita4829/Acorn | 9c8c37bb80dd1cfb1dcfc1bbb44c08cec88a507c | [
"MIT"
] | 2 | 2017-01-24T00:33:18.000Z | 2020-07-26T03:53:29.000Z | src/Foundation.py | mita4829/Acorn | 9c8c37bb80dd1cfb1dcfc1bbb44c08cec88a507c | [
"MIT"
] | 1 | 2022-01-06T21:36:40.000Z | 2022-01-06T21:36:40.000Z | src/Foundation.py | mita4829/Acorn | 9c8c37bb80dd1cfb1dcfc1bbb44c08cec88a507c | [
"MIT"
] | 1 | 2019-11-21T00:03:18.000Z | 2019-11-21T00:03:18.000Z | # Acorn 2.0: Cocoa Butter
# Booleans are treated as integers
# Allow hex
#Number meta class
class N():
def __init__(self,n):
try:
self.n = float(n)
if(self.n.is_integer()):
self.n = int(n)
except:
self.n = int(n,16)
def N(self):
retur... | 22.821053 | 88 | 0.525 | 1,472 | 10,840 | 3.65625 | 0.080163 | 0.193237 | 0.171683 | 0.12003 | 0.629506 | 0.615199 | 0.584913 | 0.521368 | 0.497213 | 0.497213 | 0 | 0.04442 | 0.339576 | 10,840 | 474 | 89 | 22.869198 | 0.707361 | 0.023247 | 0 | 0.598558 | 0 | 0 | 0.039633 | 0.002176 | 0 | 0 | 0 | 0 | 0 | 1 | 0.353365 | false | 0 | 0 | 0.25 | 0.747596 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
96d654ed2e780d2b9dec1380bd939101a9ca67a1 | 3,110 | py | Python | gr-doa/python/qa_full_capon3_ccf.py | SamuelSkinner/Coherent-Radio-Project | 2684f235261b2c0d75bb5c5d2ba39d7497cf970a | [
"MIT"
] | 47 | 2017-09-11T20:54:51.000Z | 2022-03-15T06:12:06.000Z | gr-doa/python/qa_full_capon3_ccf.py | SamuelSkinner/Coherent-Radio-Project | 2684f235261b2c0d75bb5c5d2ba39d7497cf970a | [
"MIT"
] | 5 | 2017-12-08T02:43:21.000Z | 2020-04-14T14:09:58.000Z | gr-doa/python/qa_full_capon3_ccf.py | SamuelSkinner/Coherent-Radio-Project | 2684f235261b2c0d75bb5c5d2ba39d7497cf970a | [
"MIT"
] | 24 | 2017-09-20T07:53:58.000Z | 2021-12-11T06:00:43.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2017 <+YOU OR YOUR COMPANY+>.
#
# This is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#... | 44.428571 | 226 | 0.668489 | 452 | 3,110 | 4.488938 | 0.451327 | 0.039428 | 0.063085 | 0.044357 | 0.138985 | 0.081321 | 0.0138 | 0 | 0 | 0 | 0 | 0.21691 | 0.186174 | 3,110 | 69 | 227 | 45.072464 | 0.584749 | 0.254019 | 0 | 0.060606 | 0 | 0 | 0.04878 | 0.029617 | 0 | 0 | 0 | 0 | 0.030303 | 0 | null | null | 0 | 0.090909 | null | null | 0.121212 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
96d712726c2e0d75a51f11a62f0188b54a5b80f4 | 13,770 | py | Python | doorenv2/doorenv2/envs/doorenv_blue.py | kuolunwang/DoorGym | d9fbb67382756e659025b640857ede3a3735fb1d | [
"BSD-3-Clause"
] | 82 | 2019-08-07T06:54:44.000Z | 2022-02-02T16:44:33.000Z | doorenv2/doorenv2/envs/doorenv_blue.py | kuolunwang/DoorGym | d9fbb67382756e659025b640857ede3a3735fb1d | [
"BSD-3-Clause"
] | 4 | 2019-11-28T09:02:51.000Z | 2022-01-24T03:21:44.000Z | doorenv2/doorenv2/envs/doorenv_blue.py | kuolunwang/DoorGym | d9fbb67382756e659025b640857ede3a3735fb1d | [
"BSD-3-Clause"
] | 20 | 2019-08-11T13:42:18.000Z | 2022-01-03T08:47:50.000Z | import numpy as np
from gym import utils, spaces
from gym.envs.mujoco import mujoco_env
from gym.envs.robotics.rotations import quat2euler, euler2quat, mat2euler
import os
# import random
from random import uniform, randint, randrange
from mjremote import mjremote
import time
from doorenv2.envs.doorenv import DoorEnv
... | 44.563107 | 153 | 0.564779 | 1,916 | 13,770 | 3.857516 | 0.11691 | 0.014071 | 0.040184 | 0.04059 | 0.784062 | 0.744554 | 0.725342 | 0.667163 | 0.592613 | 0.536599 | 0 | 0.065181 | 0.299201 | 13,770 | 309 | 154 | 44.563107 | 0.700725 | 0.133769 | 0 | 0.568376 | 0 | 0 | 0.054989 | 0.013663 | 0 | 0 | 0 | 0 | 0.017094 | 1 | 0.094017 | false | 0 | 0.038462 | 0.034188 | 0.226496 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
96d76e9dbc97b34034f629775a41e4d813ebe47b | 3,029 | py | Python | fortnitepy/message.py | Jawschamp/fortnitepy | 23488088f71b44bd00062591d1b7202047d14dff | [
"MIT"
] | null | null | null | fortnitepy/message.py | Jawschamp/fortnitepy | 23488088f71b44bd00062591d1b7202047d14dff | [
"MIT"
] | null | null | null | fortnitepy/message.py | Jawschamp/fortnitepy | 23488088f71b44bd00062591d1b7202047d14dff | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
MIT License
Copyright (c) 2019 Terbau
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modif... | 28.308411 | 85 | 0.653681 | 371 | 3,029 | 5.183288 | 0.363881 | 0.045762 | 0.049402 | 0.026521 | 0.25325 | 0.209568 | 0.185127 | 0.126885 | 0.126885 | 0.126885 | 0 | 0.002213 | 0.254209 | 3,029 | 107 | 86 | 28.308411 | 0.849048 | 0.435457 | 0 | 0.405405 | 0 | 0 | 0.029781 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0 | 0.027027 | 0 | 0.540541 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
96da13e8a01b36c35c748fe900249eb3f631f623 | 500 | py | Python | test/commands/scriptcommands/postcommit/test_postcommit_factory.py | sturzl/guet | b8c453f07968b689b303e20e7a31b405c02c54ef | [
"Apache-2.0"
] | null | null | null | test/commands/scriptcommands/postcommit/test_postcommit_factory.py | sturzl/guet | b8c453f07968b689b303e20e7a31b405c02c54ef | [
"Apache-2.0"
] | null | null | null | test/commands/scriptcommands/postcommit/test_postcommit_factory.py | sturzl/guet | b8c453f07968b689b303e20e7a31b405c02c54ef | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase
from guet.commands.scriptcommands.postcommit.postcommit_factory import PostCommitFactory
from guet.commands.scriptcommands.postcommit.postcommit_strategy import PostCommitStrategy
from guet.settings.settings import Settings
class TestPostCommitFactory(TestCase):
def test_returns_po... | 31.25 | 90 | 0.812 | 49 | 500 | 8.163265 | 0.489796 | 0.06 | 0.08 | 0.15 | 0.25 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126 | 500 | 15 | 91 | 33.333333 | 0.915332 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
96ebc5eb75c85430b7fb3f7a0ca2d51c5eb460e9 | 249 | py | Python | mistygrind/__init__.py | rerobots/mistygrind | be0f4dc602bbbb004c99b520f8f69ce5643c8d61 | [
"Apache-2.0"
] | 2 | 2019-03-17T22:23:43.000Z | 2019-10-02T23:33:59.000Z | mistygrind/__init__.py | rerobots/mistygrind | be0f4dc602bbbb004c99b520f8f69ce5643c8d61 | [
"Apache-2.0"
] | 1 | 2020-02-08T23:21:56.000Z | 2020-03-02T18:49:57.000Z | mistygrind/__init__.py | rerobots/mistygrind | be0f4dc602bbbb004c99b520f8f69ce5643c8d61 | [
"Apache-2.0"
] | null | null | null | """a tool for static analysis of Misty skills and offboard Misty REST API clients
The repository is at https://github.com/rerobots/mistygrind
"""
try:
from ._version import __version__
except ImportError:
__version__ = '0.0.0.dev0+Unknown'
| 27.666667 | 81 | 0.75502 | 36 | 249 | 4.972222 | 0.861111 | 0.022346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019048 | 0.156627 | 249 | 8 | 82 | 31.125 | 0.833333 | 0.558233 | 0 | 0 | 0 | 0 | 0.174757 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
8c0a0ff7f0c596129f81967f9f3823c84109a461 | 1,247 | py | Python | cfnbootstrap/security.py | roberthutto/aws-cfn-bootstrap | 801a16802a931fa4dae0eba4898fe1ccdb304924 | [
"Apache-2.0"
] | null | null | null | cfnbootstrap/security.py | roberthutto/aws-cfn-bootstrap | 801a16802a931fa4dae0eba4898fe1ccdb304924 | [
"Apache-2.0"
] | null | null | null | cfnbootstrap/security.py | roberthutto/aws-cfn-bootstrap | 801a16802a931fa4dae0eba4898fe1ccdb304924 | [
"Apache-2.0"
] | 3 | 2017-02-10T13:14:38.000Z | 2018-09-20T01:04:20.000Z | #==============================================================================
# Copyright 2011 Amazon.com, Inc. or its affiliates. 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 ... | 41.566667 | 79 | 0.655974 | 169 | 1,247 | 4.769231 | 0.56213 | 0.074442 | 0.081886 | 0.08933 | 0.150124 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0.007449 | 0.138733 | 1,247 | 29 | 80 | 43 | 0.743017 | 0.601443 | 0 | 0 | 0 | 0 | 0.257261 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.3 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
8c18291a315b3913d835cb86c5b9f8d6b73dc624 | 712 | py | Python | q3/q3/strutils.py | virtimus/makaronLab | 10b9be7d7d65d3da6219f929ea7070dd5fed3a81 | [
"0BSD"
] | 2 | 2021-03-16T05:48:36.000Z | 2021-10-11T01:55:48.000Z | q3/q3/strutils.py | virtimus/makaronLab | 10b9be7d7d65d3da6219f929ea7070dd5fed3a81 | [
"0BSD"
] | null | null | null | q3/q3/strutils.py | virtimus/makaronLab | 10b9be7d7d65d3da6219f929ea7070dd5fed3a81 | [
"0BSD"
] | 1 | 2021-03-16T05:48:39.000Z | 2021-03-16T05:48:39.000Z |
def isBlank(myString:str):
return not (myString and myString.strip())
def isNotBlank(myString:str):
return bool(myString and myString.strip())
def trim(myString:str):
result = myString.strip() if myString != None else None
return result
def replace(myString:str, search:str, replace:str):
if m... | 19.243243 | 66 | 0.640449 | 94 | 712 | 4.851064 | 0.297872 | 0.096491 | 0.098684 | 0.105263 | 0.236842 | 0.118421 | 0 | 0 | 0 | 0 | 0 | 0.003717 | 0.244382 | 712 | 36 | 67 | 19.777778 | 0.843866 | 0 | 0 | 0.136364 | 0 | 0 | 0.001408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318182 | false | 0 | 0.045455 | 0.090909 | 0.772727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
8c188b23dffa3a8f08c8f0d8c31809d3a3809771 | 1,770 | py | Python | zang/domain/usage.py | vlastikczech/zang-python | 980f5243071404d6838554500a6955ff7bc2a0c7 | [
"MIT"
] | 1 | 2019-02-18T21:51:58.000Z | 2019-02-18T21:51:58.000Z | zang/domain/usage.py | vlastikczech/zang-python | 980f5243071404d6838554500a6955ff7bc2a0c7 | [
"MIT"
] | 6 | 2019-06-26T13:56:22.000Z | 2022-02-17T16:40:48.000Z | zang/domain/usage.py | vlastikczech/zang-python | 980f5243071404d6838554500a6955ff7bc2a0c7 | [
"MIT"
] | 6 | 2017-10-17T12:44:32.000Z | 2020-02-07T20:45:00.000Z | # -*- coding: utf-8 -*-
"""
zang.domain.usage
~~~~~~~~~~~~~~~~~~~
`Usage` model
"""
from zang.domain.base_resource import BaseResource
from zang.domain.enums.product import Product
class Usage(BaseResource):
_strs = [
'sid',
'uri',
]
_ints = [
'product_id',
'day',
... | 19.666667 | 73 | 0.545198 | 195 | 1,770 | 4.779487 | 0.307692 | 0.118026 | 0.112661 | 0.103004 | 0.137339 | 0.051502 | 0 | 0 | 0 | 0 | 0 | 0.001671 | 0.323729 | 1,770 | 89 | 74 | 19.88764 | 0.776942 | 0.235028 | 0 | 0.181818 | 0 | 0 | 0.062112 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.218182 | false | 0 | 0.036364 | 0.018182 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
8c1b44ae3c95cb1eae133f0bdac0cf0e14b9f633 | 17,994 | py | Python | notebooks/helper.py | rmcd-mscb/bmi-test-binder | ae4d2bf8aaf0d70b49d918555f082e43af7a56d9 | [
"MIT"
] | null | null | null | notebooks/helper.py | rmcd-mscb/bmi-test-binder | ae4d2bf8aaf0d70b49d918555f082e43af7a56d9 | [
"MIT"
] | null | null | null | notebooks/helper.py | rmcd-mscb/bmi-test-binder | ae4d2bf8aaf0d70b49d918555f082e43af7a56d9 | [
"MIT"
] | null | null | null | import xarray as xr
import datetime as dt
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import make_axes_locatable
import geopandas as gpd
import pandas as pd
import numpy as np
def bmi_prms6_value_plot(data, n_index, val, label, start, end, tax = None):
tax = tax or plt.gca()
#test if val exis... | 40.527027 | 104 | 0.60309 | 2,920 | 17,994 | 3.528767 | 0.095548 | 0.040276 | 0.023292 | 0.039111 | 0.727582 | 0.709433 | 0.687888 | 0.663432 | 0.625971 | 0.61151 | 0 | 0.043145 | 0.223297 | 17,994 | 444 | 105 | 40.527027 | 0.694118 | 0.048627 | 0 | 0.583333 | 0 | 0 | 0.082812 | 0.00269 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0.002778 | 0.019444 | 0 | 0.088889 | 0.008333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8c2d01c85ecc4e4d59d6d66a9dac53e4728b7f74 | 845 | py | Python | backend/cms/sample/migrations/0016_auto_20201224_1407.py | howawong/openwancha | d34c1160a9c76713220f88e80a6975069ea11ed0 | [
"MIT"
] | null | null | null | backend/cms/sample/migrations/0016_auto_20201224_1407.py | howawong/openwancha | d34c1160a9c76713220f88e80a6975069ea11ed0 | [
"MIT"
] | null | null | null | backend/cms/sample/migrations/0016_auto_20201224_1407.py | howawong/openwancha | d34c1160a9c76713220f88e80a6975069ea11ed0 | [
"MIT"
] | 1 | 2021-05-31T09:03:58.000Z | 2021-05-31T09:03:58.000Z | # Generated by Django 3.1 on 2020-12-24 14:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sample', '0015_communityactivitymetadata_audience_size'),
]
operations = [
migrations.AlterField(
model_name='communityactivitymet... | 29.137931 | 72 | 0.618935 | 80 | 845 | 6.4125 | 0.475 | 0.116959 | 0.146199 | 0.169591 | 0.662768 | 0.662768 | 0.549708 | 0.549708 | 0.549708 | 0.45614 | 0 | 0.030945 | 0.273373 | 845 | 28 | 73 | 30.178571 | 0.80456 | 0.050888 | 0 | 0.545455 | 1 | 0 | 0.19375 | 0.14875 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8c3fa055e074d2cbaddfcea3c0c937eac5370c40 | 88 | py | Python | output/models/saxon_data/vc/vc010_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/saxon_data/vc/vc010_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/saxon_data/vc/vc010_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.saxon_data.vc.vc010_xsd.vc010 import Temp
__all__ = [
"Temp",
]
| 14.666667 | 60 | 0.715909 | 13 | 88 | 4.384615 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 0.159091 | 88 | 5 | 61 | 17.6 | 0.689189 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8c4769113c944957faa0e1b537d2bb93b3d9ec0a | 148 | py | Python | chap06/list0607.py | ytianjin/GitTest | a657f46098728ad90f7140fadad356e8561c9a7a | [
"MIT"
] | null | null | null | chap06/list0607.py | ytianjin/GitTest | a657f46098728ad90f7140fadad356e8561c9a7a | [
"MIT"
] | null | null | null | chap06/list0607.py | ytianjin/GitTest | a657f46098728ad90f7140fadad356e8561c9a7a | [
"MIT"
] | null | null | null | # 字符串txt是否包含字符串ptn
txt = input('字符串txt:')
ptn = input('字符串ptn:')
if ptn in txt:
print('ptn包含于txt。')
else:
print('txt不包含ptn。') | 16.444444 | 25 | 0.581081 | 16 | 148 | 5.375 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 148 | 9 | 26 | 16.444444 | 0.774775 | 0.108108 | 0 | 0 | 0 | 0 | 0.276423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8c5d94b37f56c83cdfef1fdb90edf94717227084 | 727 | py | Python | covidfaq/evaluating/model/cheating_model.py | dialoguemd/covidfaq | a493ed72e07b83cdf736684ce1cc9ee47b9bfb3f | [
"MIT"
] | 3 | 2020-06-22T17:05:22.000Z | 2021-07-18T20:51:57.000Z | covidfaq/evaluating/model/cheating_model.py | dialoguemd/covidfaq | a493ed72e07b83cdf736684ce1cc9ee47b9bfb3f | [
"MIT"
] | 25 | 2020-03-21T14:58:05.000Z | 2021-04-02T14:27:28.000Z | covidfaq/evaluating/model/cheating_model.py | dialoguemd/covidfaq | a493ed72e07b83cdf736684ce1cc9ee47b9bfb3f | [
"MIT"
] | 6 | 2020-03-21T23:33:02.000Z | 2020-07-27T15:12:22.000Z | from covidfaq.evaluating.model.model_evaluation_interface import (
ModelEvaluationInterface,
)
class CheatingModel(ModelEvaluationInterface):
"""
model that knows the golden truth and will always return the best result.
(useful for debugging)
"""
def __init__(self, test_data, passage_id2index... | 29.08 | 77 | 0.686382 | 79 | 727 | 6.075949 | 0.544304 | 0.066667 | 0.075 | 0.108333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008993 | 0.235213 | 727 | 24 | 78 | 30.291667 | 0.854317 | 0.13205 | 0 | 0 | 0 | 0 | 0.042553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
8c64684af6441ce6479eb4599d84489030382d45 | 3,854 | py | Python | utils/database_tester.py | ax-rwnd/E-dot | b1b64fcce43c5d6f54dc38959498cdba95e757b1 | [
"BSD-3-Clause"
] | null | null | null | utils/database_tester.py | ax-rwnd/E-dot | b1b64fcce43c5d6f54dc38959498cdba95e757b1 | [
"BSD-3-Clause"
] | 1 | 2015-12-05T02:04:35.000Z | 2015-12-11T02:47:28.000Z | utils/database_tester.py | ax-rwnd/E-dot | b1b64fcce43c5d6f54dc38959498cdba95e757b1 | [
"BSD-3-Clause"
] | null | null | null | DATABASE = 'db_edot'
# mysql
HOST = 'localhost'
PORT = 3306
USER = 'root'
PASSWD = ''
SQLDB = 'db_edot'
from flask import Flask, render_template, request, g
app = Flask(__name__)
# DB support
import MySQLdb
# returns a database connection for MySQL
def connect_to_database_mysql(database=None):
if database:
... | 37.057692 | 303 | 0.669694 | 500 | 3,854 | 5.044 | 0.296 | 0.087629 | 0.075337 | 0.091197 | 0.506344 | 0.40563 | 0.383029 | 0.381443 | 0.362411 | 0.283109 | 0 | 0.011283 | 0.195122 | 3,854 | 103 | 304 | 37.417476 | 0.801741 | 0.038402 | 0 | 0.135593 | 0 | 0 | 0.190611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.050847 | 0.033898 | null | null | 0.186441 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
4fb280c66e2ed994196d38a8f36d34b7f652c306 | 2,035 | py | Python | WebBrickLibs/brisa/utils/properties.py | AndyThirtover/wb_gateway | 69f9c870369085f4440033201e2fb263a463a523 | [
"BSD-3-Clause"
] | 4 | 2015-02-18T21:42:17.000Z | 2020-03-22T14:38:12.000Z | WebBrickLibs/brisa/utils/properties.py | AndyThirtover/wb_gateway | 69f9c870369085f4440033201e2fb263a463a523 | [
"BSD-3-Clause"
] | null | null | null | WebBrickLibs/brisa/utils/properties.py | AndyThirtover/wb_gateway | 69f9c870369085f4440033201e2fb263a463a523 | [
"BSD-3-Clause"
] | 2 | 2016-04-03T10:11:55.000Z | 2021-12-27T03:00:31.000Z | # Licensed under the MIT license
# http://opensource.org/licenses/mit-license.php or see LICENSE file.
# Copyright 2007-2008 Brisa Team <brisa-develop@garage.maemo.org>
""" Facilities for python properties generation.
"""
def gen_property_with_default(name, fget=None, fset=None, doc=""):
""" Generates a property... | 29.492754 | 79 | 0.640295 | 266 | 2,035 | 4.781955 | 0.308271 | 0.075472 | 0.062893 | 0.054245 | 0.306604 | 0.265723 | 0.212264 | 0.212264 | 0.212264 | 0.083333 | 0 | 0.005302 | 0.258477 | 2,035 | 68 | 80 | 29.926471 | 0.837641 | 0.398034 | 0 | 0.4 | 0 | 0 | 0.087111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0 | 0.08 | 0.52 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
4fcc83fcb78abd3014690c59b50564738754bd6d | 144 | py | Python | src/013-large-sum/python/solve.py | xfbs/ProjectEulerRust | e26768c56ff87b029cb2a02f56dc5cd32e1f7c87 | [
"MIT"
] | 1 | 2018-01-26T21:18:12.000Z | 2018-01-26T21:18:12.000Z | src/013-large-sum/python/solve.py | xfbs/ProjectEulerRust | e26768c56ff87b029cb2a02f56dc5cd32e1f7c87 | [
"MIT"
] | 3 | 2017-12-09T14:49:30.000Z | 2017-12-09T14:59:39.000Z | src/013-large-sum/python/solve.py | xfbs/ProjectEulerRust | e26768c56ff87b029cb2a02f56dc5cd32e1f7c87 | [
"MIT"
] | null | null | null | import solver
import sys
datafile = open(sys.argv[1])
numbers = []
for line in datafile:
numbers.append(line)
print(solver.solve(numbers))
| 14.4 | 28 | 0.729167 | 21 | 144 | 5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00813 | 0.145833 | 144 | 9 | 29 | 16 | 0.845528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4fdb5edad413f722bc7d36988ea447b62a6f87e2 | 277 | py | Python | users/models.py | nylar/fora | 6fc604f832e41fbe744e8768fd2ed240b5c5571d | [
"CC0-1.0"
] | null | null | null | users/models.py | nylar/fora | 6fc604f832e41fbe744e8768fd2ed240b5c5571d | [
"CC0-1.0"
] | null | null | null | users/models.py | nylar/fora | 6fc604f832e41fbe744e8768fd2ed240b5c5571d | [
"CC0-1.0"
] | null | null | null | from django.contrib.auth.models import AbstractUser
from django.db import models
class User(AbstractUser):
signature = models.CharField(max_length=255)
def __str__(self):
return self.username
def __unicode__(self):
return unicode(self.username)
| 21.307692 | 51 | 0.729242 | 34 | 277 | 5.676471 | 0.617647 | 0.103627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013393 | 0.191336 | 277 | 12 | 52 | 23.083333 | 0.848214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
8b0c7856b7eb7e4b3daacd037fa2bcae6f12cf98 | 1,987 | py | Python | calculator.py | M4ND33P-M4L4K4R143/PyCalculator | c1da4f127c51066124a21c5f18e9ddcad587d4eb | [
"MIT"
] | 1 | 2021-08-21T13:58:37.000Z | 2021-08-21T13:58:37.000Z | calculator.py | M4ND33P-M4L4K4R143/PyCalculator | c1da4f127c51066124a21c5f18e9ddcad587d4eb | [
"MIT"
] | null | null | null | calculator.py | M4ND33P-M4L4K4R143/PyCalculator | c1da4f127c51066124a21c5f18e9ddcad587d4eb | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""Hey Guys From This Python Script You can Do Following Task Like :-
Addition
Subtraction
Multiplication ]: Coded by Mandeep :[
Division
As A Basic Calculator.....
Well You Can Enhance The features of This Dtool But Give Us Credit ..
"""
# Code Start From Here okay
# You can Cont... | 20.915789 | 149 | 0.617514 | 302 | 1,987 | 4.062914 | 0.364238 | 0.08313 | 0.080685 | 0.044825 | 0.248574 | 0.248574 | 0.193154 | 0.193154 | 0.193154 | 0.193154 | 0 | 0.204268 | 0.174635 | 1,987 | 94 | 150 | 21.138298 | 0.543293 | 0.259688 | 0 | 0.27027 | 0 | 0.189189 | 0.594822 | 0.307208 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027027 | 0 | 0.027027 | 0.594595 | 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 | 1 | 0 | 2 |
8b1d81358cc8549e963395952f6cf2e31c281462 | 910 | py | Python | test/espnet2/tasks/test_abs_task.py | Hertin/espnet | a0f2175df08b4750a9f0305c20b8c11f6e941867 | [
"Apache-2.0"
] | 5 | 2020-10-26T11:28:04.000Z | 2021-12-17T07:49:11.000Z | test/espnet2/tasks/test_abs_task.py | Hertin/espnet | a0f2175df08b4750a9f0305c20b8c11f6e941867 | [
"Apache-2.0"
] | 2 | 2020-10-26T15:22:48.000Z | 2021-01-15T10:17:57.000Z | test/espnet2/tasks/test_abs_task.py | Hertin/espnet | a0f2175df08b4750a9f0305c20b8c11f6e941867 | [
"Apache-2.0"
] | 2 | 2021-11-30T07:42:44.000Z | 2021-12-01T07:10:01.000Z | import configargparse
import pytest
from espnet2.tasks.abs_task import AbsTask
@pytest.mark.parametrize("parser", [configargparse.ArgumentParser(), None])
def test_add_arguments(parser):
AbsTask.get_parser()
def test_add_arguments_help():
parser = AbsTask.get_parser()
with pytest.raises(SystemExit):
... | 23.333333 | 75 | 0.704396 | 119 | 910 | 5.117647 | 0.352941 | 0.068966 | 0.10509 | 0.170772 | 0.197044 | 0.197044 | 0.197044 | 0 | 0 | 0 | 0 | 0.001311 | 0.161538 | 910 | 38 | 76 | 23.947368 | 0.796855 | 0 | 0 | 0.24 | 0 | 0 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.12 | 0 | 0.36 | 0.16 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8b2b78121b91fad7c2b779840f31b29b76faa22d | 6,597 | py | Python | cs15211/MaximumSubarray.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | 1 | 2021-07-05T01:53:30.000Z | 2021-07-05T01:53:30.000Z | cs15211/MaximumSubarray.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | null | null | null | cs15211/MaximumSubarray.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | 1 | 2018-01-08T07:14:08.000Z | 2018-01-08T07:14:08.000Z | __source__ = 'https://leetcode.com/problems/maximum-subarray/'
# https://github.com/kamyu104/LeetCode/blob/master/Python/maximum-subarray.py
# Time: O(n)
# Space: O(1)
#
# Description: Leetcode # 53. Maximum Subarray
#
# Find the contiguous subarray within an array (containing at least one number) which has the larges... | 33.48731 | 115 | 0.631044 | 1,053 | 6,597 | 3.921178 | 0.276353 | 0.008234 | 0.028336 | 0.018164 | 0.246791 | 0.234924 | 0.175345 | 0.158876 | 0.13611 | 0.100266 | 0 | 0.025371 | 0.265121 | 6,597 | 196 | 116 | 33.658163 | 0.82632 | 0.179627 | 0 | 0.20438 | 0 | 0.124088 | 0.710536 | 0.011355 | 0 | 0 | 0 | 0 | 0.007299 | 0 | null | null | 0 | 0.007299 | null | null | 0.036496 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8b2df474251034b1d8d9bcbce6b6cab0108a8b93 | 1,213 | py | Python | modules/simple/entry.py | epfl-dcsl/persona-orig | d94a8b60f07622bb61736127ff328329c7b131a9 | [
"Apache-2.0"
] | null | null | null | modules/simple/entry.py | epfl-dcsl/persona-orig | d94a8b60f07622bb61736127ff328329c7b131a9 | [
"Apache-2.0"
] | null | null | null | modules/simple/entry.py | epfl-dcsl/persona-orig | d94a8b60f07622bb61736127ff328329c7b131a9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 École Polytechnique Fédérale de Lausanne. 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 r... | 34.657143 | 80 | 0.71723 | 155 | 1,213 | 5.529032 | 0.593548 | 0.070012 | 0.030338 | 0.03734 | 0.093349 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007759 | 0.150041 | 1,213 | 34 | 81 | 35.676471 | 0.823472 | 0.558945 | 0 | 0 | 0 | 0 | 0.069231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0.214286 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
8b3df12f9460da50152505b49ccc009bfdd7238c | 3,575 | py | Python | ems_client/models.py | uw-it-cte/ems-client | 5ac61963bd973e3718b16387af34db9b63b027b4 | [
"Apache-2.0"
] | null | null | null | ems_client/models.py | uw-it-cte/ems-client | 5ac61963bd973e3718b16387af34db9b63b027b4 | [
"Apache-2.0"
] | 1 | 2019-03-02T00:39:14.000Z | 2019-03-02T00:39:15.000Z | ems_client/models.py | uw-it-cte/ems-client | 5ac61963bd973e3718b16387af34db9b63b027b4 | [
"Apache-2.0"
] | null | null | null | from restclients_core import models
# Create your models here.
class Status(models.Model):
STATUS_TYPE_BOOKED_SPACE = -14
STATUS_TYPE_WAIT = -13
STATUS_TYPE_CANCEL = -12
STATUS_TYPE_INFO_ONLY = -11
STATUS_TYPE_CHOICES = (
(STATUS_TYPE_BOOKED_SPACE, 'Booked Space'),
(STATUS_TYPE_WA... | 37.239583 | 78 | 0.751049 | 437 | 3,575 | 5.853547 | 0.196796 | 0.134871 | 0.161845 | 0.215794 | 0.628616 | 0.49179 | 0.356138 | 0.163409 | 0.12197 | 0.12197 | 0 | 0.019523 | 0.154685 | 3,575 | 95 | 79 | 37.631579 | 0.826936 | 0.006713 | 0 | 0.328947 | 0 | 0 | 0.008735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.013158 | 0.052632 | 0.921053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
8b4ac894cb72122eec070f2fdd04a12d4a852d09 | 399 | py | Python | pycoax/coax/exceptions.py | lowobservable/coax | 9714fdfb418dff56357b9a35d2da3a91b8a60ffe | [
"0BSD"
] | 21 | 2020-05-11T19:46:29.000Z | 2022-02-09T01:32:41.000Z | pycoax/coax/exceptions.py | lowobservable/coax-interface | 614f8a5f448b1f7e8298ced2585c178f4d7f435d | [
"0BSD"
] | null | null | null | pycoax/coax/exceptions.py | lowobservable/coax-interface | 614f8a5f448b1f7e8298ced2585c178f4d7f435d | [
"0BSD"
] | 5 | 2020-07-20T08:05:10.000Z | 2022-01-30T13:57:05.000Z | """
coax.exceptions
~~~~~~~~~~~~~~~
"""
class InterfaceError(Exception):
"""An interface error occurred."""
class ReceiveError(Exception):
"""A receive error occurred."""
class InterfaceTimeout(Exception):
"""The interface timed out."""
class ReceiveTimeout(Exception):
"""The receive operation timed... | 19.95 | 42 | 0.669173 | 38 | 399 | 7.026316 | 0.526316 | 0.146067 | 0.134831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150376 | 399 | 19 | 43 | 21 | 0.787611 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
8c8d58413ad1b90719b2bf1ec4e775c56f6a0fcd | 593 | py | Python | mx_utils/gpu.py | hallmx/mx_utils | 5fc095d31330eee1a5f22698861f55a05d569dc7 | [
"Apache-2.0"
] | null | null | null | mx_utils/gpu.py | hallmx/mx_utils | 5fc095d31330eee1a5f22698861f55a05d569dc7 | [
"Apache-2.0"
] | 2 | 2021-09-28T00:57:33.000Z | 2022-02-26T06:44:13.000Z | mx_utils/gpu.py | hallmx/mx_utils | 5fc095d31330eee1a5f22698861f55a05d569dc7 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: 04_device.ipynb (unless otherwise specified).
__all__ = ['versions']
# Cell
def versions():
"Checks if GPU enabled and if so displays device details with cuda, pytorch, fastai versions"
print("GPU: ", torch.cuda.is_available())
if torch.cuda.is_available() == True:
... | 42.357143 | 95 | 0.708263 | 76 | 593 | 5.315789 | 0.486842 | 0.066832 | 0.054455 | 0.09901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003976 | 0.151771 | 593 | 14 | 96 | 42.357143 | 0.799205 | 0.311973 | 0 | 0 | 1 | 0 | 0.352705 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.1 | 0.6 | 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 | 1 | 0 | 2 |
8c941e77ae2f1d6e180cbe9a58011d0823c9b340 | 1,128 | py | Python | compvis/preprocessing/imagetoarraypreprocessor.py | IgorMeloS/Computer-Vision-Training | cc458d17ee0ff880ce6ccc47179d667bd55f4bd1 | [
"Apache-2.0"
] | null | null | null | compvis/preprocessing/imagetoarraypreprocessor.py | IgorMeloS/Computer-Vision-Training | cc458d17ee0ff880ce6ccc47179d667bd55f4bd1 | [
"Apache-2.0"
] | null | null | null | compvis/preprocessing/imagetoarraypreprocessor.py | IgorMeloS/Computer-Vision-Training | cc458d17ee0ff880ce6ccc47179d667bd55f4bd1 | [
"Apache-2.0"
] | null | null | null | # =============================================================================
# Image preprocessing using TensorFlow and Keras
# Image to array
# https://www.tensorflow.org/versions/r2.1/api_docs/python/tf/keras/preprocessing/image/img_to_array
# =======================================================================... | 38.896552 | 145 | 0.60195 | 122 | 1,128 | 5.45082 | 0.516393 | 0.052632 | 0.045113 | 0.075188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002205 | 0.195922 | 1,128 | 28 | 146 | 40.285714 | 0.730981 | 0.642731 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
8ca2305fbdb0d3f010af82ac0d8b45aba4ae2068 | 344 | py | Python | src/paperwriting/latex.py | Song921012/How2Research | d4d1eb6458cd59331d384f40578bb07c3a045015 | [
"MIT"
] | null | null | null | src/paperwriting/latex.py | Song921012/How2Research | d4d1eb6458cd59331d384f40578bb07c3a045015 | [
"MIT"
] | null | null | null | src/paperwriting/latex.py | Song921012/How2Research | d4d1eb6458cd59331d384f40578bb07c3a045015 | [
"MIT"
] | null | null | null | import streamlit as st
def main():
st.markdown("""
All solutions to Latex [LaTeX 工作室](https://www.latexstudio.net/)
Online Latex: [Your Projects - Overleaf, Online LaTeX Editor](https://www.overleaf.com/project)
R Bookdown and Markd... | 31.272727 | 111 | 0.520349 | 35 | 344 | 5.114286 | 0.742857 | 0.089385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.377907 | 344 | 11 | 112 | 31.272727 | 0.836449 | 0 | 0 | 0 | 0 | 0.142857 | 0.823188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8cad3bfa72c83468595c6ed396cc771005c15229 | 206 | py | Python | src/light_helper.py | sonjaq/aiyprojects-raspbian | 101403c1b80433f80aad483d7f4d1ad757112cd9 | [
"Apache-2.0"
] | null | null | null | src/light_helper.py | sonjaq/aiyprojects-raspbian | 101403c1b80433f80aad483d7f4d1ad757112cd9 | [
"Apache-2.0"
] | null | null | null | src/light_helper.py | sonjaq/aiyprojects-raspbian | 101403c1b80433f80aad483d7f4d1ad757112cd9 | [
"Apache-2.0"
] | null | null | null | import socket
def send_light_command(command):
clientsocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
clientsocket.connect(('localhost', 7777))
clientsocket.send(command.encode())
| 20.6 | 68 | 0.752427 | 24 | 206 | 6.291667 | 0.625 | 0.15894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022346 | 0.131068 | 206 | 9 | 69 | 22.888889 | 0.821229 | 0 | 0 | 0 | 0 | 0 | 0.044118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8cb28a37a9b43d03d11a7ad1aa0fcda975880c6b | 931 | py | Python | tests/test_allof.py | tgallant/sphinx-json-schema | a08d79fa412f479de41f971ff84b1681077d7411 | [
"MIT"
] | null | null | null | tests/test_allof.py | tgallant/sphinx-json-schema | a08d79fa412f479de41f971ff84b1681077d7411 | [
"MIT"
] | null | null | null | tests/test_allof.py | tgallant/sphinx-json-schema | a08d79fa412f479de41f971ff84b1681077d7411 | [
"MIT"
] | null | null | null | from unittest import TestCase
from sphinx_json_schema_formatter.mergers import merge
class AllOfTestCase(TestCase):
def test_merge_properties(self):
base = {
"required": ["A"],
"properties": {
"A": {"type": "string", "enum": ["x", "y"]},
"B": {"type... | 25.162162 | 60 | 0.36305 | 69 | 931 | 4.797101 | 0.42029 | 0.21148 | 0.135952 | 0.190332 | 0.241692 | 0.241692 | 0.163142 | 0 | 0 | 0 | 0 | 0 | 0.44898 | 931 | 36 | 61 | 25.861111 | 0.645224 | 0 | 0 | 0.3 | 0 | 0 | 0.167562 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 1 | 0.033333 | false | 0 | 0.066667 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8cbee886af4492e493b04ff75a79b83a353a59b2 | 3,592 | py | Python | selection_policy.py | mkuchnik/Efficient_Augmentation | a82190c02509682c34f2df782fb58f8ffd3b11da | [
"MIT"
] | 11 | 2019-05-09T22:43:29.000Z | 2021-01-13T22:26:48.000Z | selection_policy.py | mkuchnik/Efficient_Augmentation | a82190c02509682c34f2df782fb58f8ffd3b11da | [
"MIT"
] | 1 | 2020-10-07T14:03:47.000Z | 2020-10-07T14:03:47.000Z | selection_policy.py | mkuchnik/Efficient_Augmentation | a82190c02509682c34f2df782fb58f8ffd3b11da | [
"MIT"
] | 6 | 2019-03-05T02:26:01.000Z | 2021-05-11T14:35:41.000Z | import numpy as np
def softmax(x):
"""Stable softmax"""
x -= np.max(x, axis=0)
e_x = np.exp(x)
return e_x / np.sum(e_x, axis=0)
def get_idx_aug_baseline(LOO_influences):
"""Returns points randomly"""
idxs = np.random.choice(
len(LOO_influences),
len(LOO_influences),
... | 27.212121 | 76 | 0.627227 | 501 | 3,592 | 4.265469 | 0.143713 | 0.164249 | 0.063173 | 0.044923 | 0.798783 | 0.746841 | 0.677117 | 0.635938 | 0.635938 | 0.635938 | 0 | 0.012107 | 0.264198 | 3,592 | 131 | 77 | 27.419847 | 0.796443 | 0.142261 | 0 | 0.575758 | 0 | 0 | 0.058278 | 0.049338 | 0 | 0 | 0 | 0 | 0.010101 | 1 | 0.10101 | false | 0 | 0.020202 | 0.010101 | 0.141414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8cc095e5ee7318ff20b7179e6d094e0220224294 | 131 | py | Python | examples/project/module/one.py | samtaufa/pry | 155b783351cef5d8c8669bba4484f1a5f159150e | [
"MIT"
] | 1 | 2016-05-09T08:20:56.000Z | 2016-05-09T08:20:56.000Z | examples/project/module/one.py | samtaufa/pry | 155b783351cef5d8c8669bba4484f1a5f159150e | [
"MIT"
] | null | null | null | examples/project/module/one.py | samtaufa/pry | 155b783351cef5d8c8669bba4484f1a5f159150e | [
"MIT"
] | null | null | null | def method():
if True:
return 1
else:
return 2
def method2():
x = 2
if x:
y = 3
z = 1
| 10.916667 | 16 | 0.396947 | 19 | 131 | 2.736842 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 0.51145 | 131 | 11 | 17 | 11.909091 | 0.71875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 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 | 2 |
8ce5f24dd66d463182d2f73b9d9eddd1e84729c8 | 3,997 | py | Python | hard-gists/7428185/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/7428185/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/7428185/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | import urllib
from wordpress_xmlrpc import Client, WordPressPost
from wordpress_xmlrpc.methods import posts
import xmlrpclib
from wordpress_xmlrpc.compat import xmlrpc_client
from wordpress_xmlrpc.methods import media, posts
import os
########################### Read Me First ###############################
'''
-------... | 39.186275 | 273 | 0.663748 | 457 | 3,997 | 5.750547 | 0.466083 | 0.039954 | 0.028919 | 0.02968 | 0.121005 | 0.060122 | 0.060122 | 0 | 0 | 0 | 0 | 0.013745 | 0.108081 | 3,997 | 102 | 274 | 39.186275 | 0.723422 | 0.121841 | 0 | 0 | 0 | 0.02381 | 0.194728 | 0.011296 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.119048 | 0.166667 | null | null | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
8cf310067c367e28b69b9143043a6275212ce136 | 1,990 | py | Python | ircclient.py | and3rson/notify | 7d82ee9d4a33c3bcf99af3bd785f43aad00c7504 | [
"MIT"
] | null | null | null | ircclient.py | and3rson/notify | 7d82ee9d4a33c3bcf99af3bd785f43aad00c7504 | [
"MIT"
] | null | null | null | ircclient.py | and3rson/notify | 7d82ee9d4a33c3bcf99af3bd785f43aad00c7504 | [
"MIT"
] | null | null | null | import socket
from select import select
from time import sleep
class IRCClient(object):
def __init__(self, server, port, username, password):
# super(Client, self).__init__()
self.server = server
self.port = port
self.username = username
self.password = password
s... | 26.891892 | 82 | 0.525628 | 231 | 1,990 | 4.463203 | 0.337662 | 0.054316 | 0.027158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009167 | 0.342211 | 1,990 | 73 | 83 | 27.260274 | 0.778457 | 0.015075 | 0 | 0.105263 | 0 | 0 | 0.052605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.070175 | 0.052632 | null | null | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
8cf8fd46694d8495f28d5157778a47d39a03ed62 | 708 | py | Python | webwaybooks/tests/utils/test_log.py | bysorry/telegram_media_downloader | fbc039f1e0274a7731b9a06f2408c831eb83c35b | [
"Unlicense"
] | 401 | 2019-08-04T17:19:38.000Z | 2022-03-31T18:18:53.000Z | webwaybooks/tests/utils/test_log.py | bysorry/telegram_media_downloader | fbc039f1e0274a7731b9a06f2408c831eb83c35b | [
"Unlicense"
] | 127 | 2019-08-06T14:36:39.000Z | 2022-03-28T10:05:10.000Z | webwaybooks/tests/utils/test_log.py | bysorry/telegram_media_downloader | fbc039f1e0274a7731b9a06f2408c831eb83c35b | [
"Unlicense"
] | 127 | 2019-12-23T15:27:53.000Z | 2022-03-25T17:21:02.000Z | """Unittest module for log handlers."""
import os
import sys
import unittest
import mock
sys.path.append("..") # Adds higher directory to python modules path.
from utils.log import LogFilter
class MockLog:
"""
Mock logs.
"""
def __init__(self, **kwargs):
self.funcName = kwargs["funcName"]
... | 23.6 | 70 | 0.672316 | 80 | 708 | 5.8625 | 0.525 | 0.095949 | 0.140725 | 0.191898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007067 | 0.200565 | 708 | 30 | 71 | 23.6 | 0.821555 | 0.128531 | 0 | 0 | 0 | 0 | 0.046901 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.117647 | false | 0 | 0.294118 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
50838b3b374f7b2ad09ce6a77c9e1cf3de444ef8 | 5,599 | py | Python | DS_Scripts/functionsLoadCSV.py | SoulfulArt/Mapa_Vivo_Producao_Brasil | 1fb54875e66cd883bfea1443da1c1228e0546aed | [
"MIT"
] | null | null | null | DS_Scripts/functionsLoadCSV.py | SoulfulArt/Mapa_Vivo_Producao_Brasil | 1fb54875e66cd883bfea1443da1c1228e0546aed | [
"MIT"
] | null | null | null | DS_Scripts/functionsLoadCSV.py | SoulfulArt/Mapa_Vivo_Producao_Brasil | 1fb54875e66cd883bfea1443da1c1228e0546aed | [
"MIT"
] | null | null | null | #These are functions and variables that support script loadCSV.py
from os import remove
from os import path
#function that organizes numerical data because some files use , as thousand
#separator or , as decimal separator
def simplifyNumber (df):
df["Producao"] = df["Producao"].astype(str).str.replace(',','.')
d... | 42.097744 | 85 | 0.6803 | 749 | 5,599 | 5.084112 | 0.303071 | 0.181197 | 0.334296 | 0.45063 | 0.462185 | 0.28729 | 0.02521 | 0.02521 | 0.02521 | 0.02521 | 0 | 0.000206 | 0.132702 | 5,599 | 132 | 86 | 42.416667 | 0.783979 | 0.148062 | 0 | 0.022472 | 0 | 0 | 0.134813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033708 | false | 0 | 0.022472 | 0 | 0.089888 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
508bf5bee690d01b9980d202464ddda6c2d8cffa | 908 | py | Python | scripts/run_badger_bot.py | Badger-Finance/price-bots | 8e7640928a29552718a12f961a9f3168512fc89e | [
"MIT"
] | 4 | 2021-06-07T07:14:43.000Z | 2022-03-12T00:00:18.000Z | scripts/run_badger_bot.py | Badger-Finance/price-bots | 8e7640928a29552718a12f961a9f3168512fc89e | [
"MIT"
] | null | null | null | scripts/run_badger_bot.py | Badger-Finance/price-bots | 8e7640928a29552718a12f961a9f3168512fc89e | [
"MIT"
] | 1 | 2021-05-12T20:48:22.000Z | 2021-05-12T20:48:22.000Z | import asyncio
import json
import logging
import os
import sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../src")))
from price_bot import PriceBot
from utils import get_secret
if __name__ == "__main__":
loop = asyncio.get_event_loop()
# name of secret in secrets manager
... | 28.375 | 86 | 0.741189 | 133 | 908 | 4.646617 | 0.398496 | 0.15534 | 0.18123 | 0.116505 | 0.223301 | 0.223301 | 0.142395 | 0.113269 | 0 | 0 | 0 | 0.002656 | 0.170705 | 908 | 31 | 87 | 29.290323 | 0.818061 | 0.113436 | 0 | 0 | 0 | 0 | 0.107232 | 0.033666 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.318182 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
508e9f88a1490b12ea332c1a79506568b033c0bd | 4,918 | py | Python | pysnmp-with-texts/COMPANY-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/COMPANY-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/COMPANY-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module COMPANY-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/COMPANY-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:26:32 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 0... | 106.913043 | 505 | 0.787922 | 561 | 4,918 | 6.903743 | 0.317291 | 0.058869 | 0.103021 | 0.010328 | 0.373612 | 0.235735 | 0.21921 | 0.214046 | 0.211206 | 0.162406 | 0 | 0.052961 | 0.090077 | 4,918 | 45 | 506 | 109.288889 | 0.812514 | 0.064254 | 0 | 0 | 0 | 0.026316 | 0.328543 | 0.00958 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.210526 | 0.157895 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
50918d47bc3cf7b44544d215df3254fbb71a1795 | 177 | py | Python | pycs/astro/wl/__init__.py | sfarrens/cosmostat | a475315cda06dca346095a1e83cb6ad23979acae | [
"MIT"
] | 3 | 2021-02-09T05:03:24.000Z | 2021-11-26T10:20:02.000Z | pycs/astro/wl/__init__.py | sfarrens/cosmostat | a475315cda06dca346095a1e83cb6ad23979acae | [
"MIT"
] | 8 | 2020-04-28T17:09:50.000Z | 2022-02-01T16:24:43.000Z | pycs/astro/wl/__init__.py | sfarrens/cosmostat | a475315cda06dca346095a1e83cb6ad23979acae | [
"MIT"
] | 3 | 2020-06-22T07:53:00.000Z | 2021-02-10T19:59:53.000Z | # -*- coding: utf-8 -*-
"""WEAK LENSING ROUTINES
This module contains submodules for weak gravitational lensing.
"""
__all__ = ['lenspack', 'mass_mapping']
from . import *
| 14.75 | 63 | 0.683616 | 20 | 177 | 5.8 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006803 | 0.169492 | 177 | 11 | 64 | 16.090909 | 0.782313 | 0.615819 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
509fc355bdbad56b0b965f05d1900f65d85c4c5d | 2,156 | py | Python | tests/test_service_configuration.py | LaEmma/sparrow_cloud | fb9f76ea70b3ba5782c33f3b3379e2ffe4bab08c | [
"MIT"
] | 15 | 2019-09-24T09:32:32.000Z | 2021-12-30T08:07:41.000Z | tests/test_service_configuration.py | LaEmma/sparrow_cloud | fb9f76ea70b3ba5782c33f3b3379e2ffe4bab08c | [
"MIT"
] | 13 | 2019-09-06T03:20:02.000Z | 2021-09-27T03:37:25.000Z | tests/test_service_configuration.py | LaEmma/sparrow_cloud | fb9f76ea70b3ba5782c33f3b3379e2ffe4bab08c | [
"MIT"
] | 17 | 2019-09-02T06:31:05.000Z | 2021-10-08T04:23:23.000Z | # import os
# import datetime
# import unittest
# from unittest import mock
# from django.core.cache import cache
# from sparrow_cloud.registry.service_configuration import config
#
#
#
# DATA = ('8018915', {'LockIndex': 0, 'Key': 'foo', 'Flags': 0, 'Value': b'{"test_key0":"value0",\n"test_key1":"value1"}',
# ... | 33.6875 | 122 | 0.560297 | 232 | 2,156 | 5.034483 | 0.297414 | 0.041096 | 0.059932 | 0.061644 | 0.482021 | 0.385274 | 0.282534 | 0.282534 | 0.219178 | 0.219178 | 0 | 0.05 | 0.267161 | 2,156 | 63 | 123 | 34.222222 | 0.689241 | 0.941095 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
50a3ab53c6a5813f7a1ed537489a2eb980683bbf | 411 | py | Python | bitex/formatters/ccex.py | ligggooo/quant2018 | adbf68da414f422157dff8b744df214fc6631342 | [
"MIT"
] | 312 | 2018-01-06T13:51:48.000Z | 2022-03-01T21:14:21.000Z | bitex/formatters/ccex.py | ligggooo/quant2018 | adbf68da414f422157dff8b744df214fc6631342 | [
"MIT"
] | 111 | 2016-06-14T18:44:12.000Z | 2018-01-06T00:58:31.000Z | bitex/formatters/ccex.py | ligggooo/quant2018 | adbf68da414f422157dff8b744df214fc6631342 | [
"MIT"
] | 98 | 2018-01-06T15:24:36.000Z | 2022-01-13T03:00:05.000Z | # Import Built-Ins
import logging
# Import Third-Party
# Import Homebrew
from bitex.formatters.base import Formatter
# Init Logging Facilities
log = logging.getLogger(__name__)
class CcexFormatter(Formatter):
@staticmethod
def ticker(data, *args, **kwargs):
return (data['buy'], data['sell'], data[... | 22.833333 | 75 | 0.673966 | 48 | 411 | 5.6875 | 0.6875 | 0.058608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184915 | 411 | 18 | 76 | 22.833333 | 0.814925 | 0.182482 | 0 | 0 | 0 | 0 | 0.090361 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.125 | 0.625 | 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 | 1 | 0 | 0 | 2 |
50a6b6dec255bcdecd177ad44f7e53c61eeb74cf | 12,032 | py | Python | clients/python/unwired/models/geolocation_response_schema.py | 3v1lW1th1n/locationapi-client-libraries | 0d5619e38e54e650a9907d6ad4034c611da97eb5 | [
"MIT"
] | 7 | 2019-03-11T10:13:10.000Z | 2021-12-12T20:06:08.000Z | clients/python/unwired/models/geolocation_response_schema.py | 3v1lW1th1n/locationapi-client-libraries | 0d5619e38e54e650a9907d6ad4034c611da97eb5 | [
"MIT"
] | 1 | 2019-12-02T11:58:14.000Z | 2019-12-09T05:32:07.000Z | clients/python/unwired/models/geolocation_response_schema.py | 3v1lW1th1n/locationapi-client-libraries | 0d5619e38e54e650a9907d6ad4034c611da97eb5 | [
"MIT"
] | 10 | 2019-04-14T13:14:46.000Z | 2021-08-16T06:38:26.000Z | # coding: utf-8
"""
Location API
Geolocation, Geocoding and Maps # noqa: E501
OpenAPI spec version: 2.0.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class GeolocationResponseSchema(object):
"""NOTE: This class is auto generated by OpenA... | 30.772379 | 284 | 0.614279 | 1,351 | 12,032 | 5.387121 | 0.124352 | 0.059357 | 0.187414 | 0.158697 | 0.5856 | 0.508519 | 0.495191 | 0.381973 | 0.274938 | 0.203902 | 0 | 0.021302 | 0.305519 | 12,032 | 390 | 285 | 30.851282 | 0.849689 | 0.473321 | 0 | 0.080745 | 1 | 0 | 0.063355 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.018634 | 0 | 0.31677 | 0.012422 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
50aeb0aea8a92d4860b4fde4a788e3fbd2b86353 | 5,664 | py | Python | AES_DES3.py | cjr0707/encryption | 87b8900d8e28f74ba8a94322d94e2078455d6e16 | [
"MIT"
] | 1 | 2020-06-07T01:36:01.000Z | 2020-06-07T01:36:01.000Z | AES_DES3.py | cjr0707/encryption | 87b8900d8e28f74ba8a94322d94e2078455d6e16 | [
"MIT"
] | null | null | null | AES_DES3.py | cjr0707/encryption | 87b8900d8e28f74ba8a94322d94e2078455d6e16 | [
"MIT"
] | 1 | 2020-06-07T01:36:03.000Z | 2020-06-07T01:36:03.000Z | import base64
import gzip
from binascii import b2a_hex, a2b_hex
from io import BytesIO
from Crypto.Cipher import AES
from Crypto.Cipher import DES
from Crypto.Cipher import DES3
from hexdump import hexdump
# 需要补位,str不是16的倍数那就补足为16的倍数
def add_to_16(value):
while len(value) % 16 != 0:
value +... | 40.457143 | 1,069 | 0.631532 | 529 | 5,664 | 6.659735 | 0.230624 | 0.023843 | 0.028953 | 0.035765 | 0.244394 | 0.244394 | 0.237865 | 0.220267 | 0.220267 | 0.19472 | 0 | 0.192419 | 0.268715 | 5,664 | 139 | 1,070 | 40.748201 | 0.658136 | 0.343044 | 0 | 0.288889 | 0 | 0 | 0.060382 | 0.034178 | 0 | 1 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.088889 | 0.011111 | 0.288889 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
50b6528e0aeae0e4ae01a3a0e766baa6a0245047 | 2,230 | py | Python | docs/csveg.py | lessen/src | bc09a33d22e942214df5608806b11370e21ce7e8 | [
"MIT"
] | null | null | null | docs/csveg.py | lessen/src | bc09a33d22e942214df5608806b11370e21ce7e8 | [
"MIT"
] | 1 | 2016-12-28T22:44:52.000Z | 2016-12-28T22:44:52.000Z | docs/csveg.py | lessen/src | bc09a33d22e942214df5608806b11370e21ce7e8 | [
"MIT"
] | null | null | null | """
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/... | 24.505495 | 119 | 0.641704 | 356 | 2,230 | 3.926966 | 0.497191 | 0.007153 | 0.02289 | 0.031474 | 0.148784 | 0.112303 | 0.095851 | 0.037196 | 0 | 0 | 0 | 0.049322 | 0.172646 | 2,230 | 90 | 120 | 24.777778 | 0.708401 | 0 | 0 | 0.311111 | 0 | 0.022222 | 0.654584 | 0.110874 | 0 | 0 | 0 | 0 | 0.133333 | 0 | null | null | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
50d796597cfd70a711d175daee1a3a663e4d178c | 236 | py | Python | exercises/ex9.py | gravyboat/python-exercises | 50162a9e6f3d51fbb2c15ed08fcecba810d61338 | [
"MIT"
] | null | null | null | exercises/ex9.py | gravyboat/python-exercises | 50162a9e6f3d51fbb2c15ed08fcecba810d61338 | [
"MIT"
] | null | null | null | exercises/ex9.py | gravyboat/python-exercises | 50162a9e6f3d51fbb2c15ed08fcecba810d61338 | [
"MIT"
] | null | null | null | #!/usr/bin/python
def is_member(item_to_check, list_to_check):
'''
Checks if an item is in a list
'''
for list_item in list_to_check:
if item_to_check == list_item:
return(True)
return(False)
| 16.857143 | 44 | 0.614407 | 37 | 236 | 3.621622 | 0.513514 | 0.208955 | 0.164179 | 0.223881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.288136 | 236 | 13 | 45 | 18.153846 | 0.797619 | 0.199153 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
50f60390d4df0f898540860ae87b4514ab7fa0ed | 21,778 | py | Python | lib/googlecloudsdk/third_party/apis/apikeys/v2/apikeys_v2_messages.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 2 | 2019-11-10T09:17:07.000Z | 2019-12-18T13:44:08.000Z | lib/googlecloudsdk/third_party/apis/apikeys/v2/apikeys_v2_messages.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/third_party/apis/apikeys/v2/apikeys_v2_messages.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 1 | 2020-07-25T01:40:19.000Z | 2020-07-25T01:40:19.000Z | """Generated message classes for apikeys version v2.
Manages the API keys associated with developer projects.
"""
# NOTE: This file is autogenerated and should not be edited by hand.
from __future__ import absolute_import
from apitools.base.protorpclite import messages as _messages
from apitools.base.py import encod... | 37.548276 | 89 | 0.737992 | 2,738 | 21,778 | 5.816654 | 0.188824 | 0.058458 | 0.032149 | 0.012809 | 0.407321 | 0.390933 | 0.356838 | 0.336808 | 0.325631 | 0.324878 | 0 | 0.016406 | 0.188309 | 21,778 | 579 | 90 | 37.613126 | 0.884539 | 0.654743 | 0 | 0.176829 | 1 | 0 | 0.073656 | 0.02651 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02439 | 0 | 0.646341 | 0.006098 | 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 | 1 | 0 | 0 | 2 |
50f73f2aff191a691bccd663c46c94e906ea7cb3 | 629 | py | Python | puzzle_app/puzzle_app/routes.py | nathandaddio/puzzle_app | dcdda6ed598e4794a37fec9dff334aef4cc3ddb1 | [
"MIT"
] | null | null | null | puzzle_app/puzzle_app/routes.py | nathandaddio/puzzle_app | dcdda6ed598e4794a37fec9dff334aef4cc3ddb1 | [
"MIT"
] | null | null | null | puzzle_app/puzzle_app/routes.py | nathandaddio/puzzle_app | dcdda6ed598e4794a37fec9dff334aef4cc3ddb1 | [
"MIT"
] | null | null | null | def includeme(config):
# config.add_static_view('static', 'static', cache_max_age=3600)
config.add_route('home', '/')
config.add_route('hitori_boards', r'/hitori_boards')
config.add_route('hitori_board', r'/hitori_boards/{board_id:\d+}')
config.add_route('hitori_board_solve', r'/hitori_boards/{boar... | 52.416667 | 82 | 0.717011 | 94 | 629 | 4.43617 | 0.255319 | 0.194245 | 0.268585 | 0.335731 | 0.386091 | 0.254197 | 0 | 0 | 0 | 0 | 0 | 0.007018 | 0.0938 | 629 | 11 | 83 | 57.181818 | 0.724561 | 0.098569 | 0 | 0 | 0 | 0 | 0.525664 | 0.284956 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
50fa39d2073900c17b249cc7b5d3f8b30f861a39 | 13,568 | py | Python | importio2/apicore.py | import-io/import-io-api-python | 5c838a357742233e714b2ccfd19d25c18531cfa3 | [
"Apache-2.0"
] | 1 | 2021-08-18T03:27:40.000Z | 2021-08-18T03:27:40.000Z | importio2/apicore.py | import-io/import-io-api-python | 5c838a357742233e714b2ccfd19d25c18531cfa3 | [
"Apache-2.0"
] | null | null | null | importio2/apicore.py | import-io/import-io-api-python | 5c838a357742233e714b2ccfd19d25c18531cfa3 | [
"Apache-2.0"
] | 2 | 2021-09-13T14:28:50.000Z | 2021-09-27T17:56:21.000Z | #
# Copyright 2017 Import.io
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 30.151111 | 117 | 0.648585 | 1,678 | 13,568 | 5.121573 | 0.13528 | 0.046079 | 0.02653 | 0.068536 | 0.73656 | 0.718874 | 0.683267 | 0.651036 | 0.630556 | 0.622295 | 0 | 0.008946 | 0.225531 | 13,568 | 449 | 118 | 30.218263 | 0.808908 | 0.270563 | 0 | 0.536697 | 0 | 0 | 0.256521 | 0.004958 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087156 | false | 0 | 0.100917 | 0 | 0.270642 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
50fd486a360b465f33c80844287095389797b0db | 236 | py | Python | src/cube/op/apply/tran/log/denary.py | jedhsu/cortex | d610570743d59272c7e6326d10c53d55950e87fc | [
"Apache-2.0"
] | null | null | null | src/cube/op/apply/tran/log/denary.py | jedhsu/cortex | d610570743d59272c7e6326d10c53d55950e87fc | [
"Apache-2.0"
] | null | null | null | src/cube/op/apply/tran/log/denary.py | jedhsu/cortex | d610570743d59272c7e6326d10c53d55950e87fc | [
"Apache-2.0"
] | null | null | null | """
*Denary Logarithm*
"""
from dataclasses import dataclass
import jax.numpy as jnp
from ._operator import Logarithm
__all__ = ["DenaryLogarithm"]
@dataclass
class DenaryLogarithm(
Logarithm,
):
operator = jnp.log10
| 11.8 | 33 | 0.711864 | 24 | 236 | 6.791667 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010526 | 0.194915 | 236 | 19 | 34 | 12.421053 | 0.847368 | 0.076271 | 0 | 0 | 0 | 0 | 0.073529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
50fe6203e2d66be3046c4c5c9c62614f8bd466ae | 8,948 | py | Python | imagenet/SGD_GAF.py | LongJin-lab/Nematode-Connectome-Neural-Network | c1fcef110df7d5cfb9fec6a0778b8340e5289ede | [
"MIT"
] | null | null | null | imagenet/SGD_GAF.py | LongJin-lab/Nematode-Connectome-Neural-Network | c1fcef110df7d5cfb9fec6a0778b8340e5289ede | [
"MIT"
] | null | null | null | imagenet/SGD_GAF.py | LongJin-lab/Nematode-Connectome-Neural-Network | c1fcef110df7d5cfb9fec6a0778b8340e5289ede | [
"MIT"
] | null | null | null | import torch
from torch.optim.optimizer import Optimizer
from torch.optim.optimizer import required
import torch.nn.functional as F
class SGD_atan(Optimizer):
r"""Implements stochastic gradient descent (optionally with momentum).
Nesterov momentum is based on the formula from
`On the importance of initia... | 40.125561 | 108 | 0.531851 | 1,085 | 8,948 | 4.219355 | 0.15023 | 0.018786 | 0.02097 | 0.01682 | 0.666448 | 0.633464 | 0.605505 | 0.605505 | 0.605505 | 0.605505 | 0 | 0.024818 | 0.356057 | 8,948 | 223 | 109 | 40.125561 | 0.769698 | 0.202615 | 0 | 0.731884 | 0 | 0 | 0.082879 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057971 | false | 0 | 0.028986 | 0 | 0.130435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0fa059cdbd4bb75a8bac874ef35a7f81dd065130 | 473 | py | Python | get_latest_conda_build_path.py | amacd31/conda_ci_scripts | 8245f2d261e022e1400b3c9e134bf8cf767c7236 | [
"CC0-1.0"
] | null | null | null | get_latest_conda_build_path.py | amacd31/conda_ci_scripts | 8245f2d261e022e1400b3c9e134bf8cf767c7236 | [
"CC0-1.0"
] | null | null | null | get_latest_conda_build_path.py | amacd31/conda_ci_scripts | 8245f2d261e022e1400b3c9e134bf8cf767c7236 | [
"CC0-1.0"
] | null | null | null | import sys
import os
import yaml
import jinja2
import glob
from conda_build.config import Config
from conda_build.metadata import MetaData
from distutils.version import LooseVersion
config = Config()
recipe_metadata = MetaData(os.path.join(sys.argv[1]))
binary_package_glob = os.path.join(config.bldpkgs_dir, '{0}*.tar.... | 29.5625 | 101 | 0.805497 | 70 | 473 | 5.285714 | 0.471429 | 0.140541 | 0.075676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011601 | 0.088795 | 473 | 15 | 102 | 31.533333 | 0.846868 | 0 | 0 | 0 | 0 | 0 | 0.02537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.615385 | 0 | 0.615385 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
0fa8e93c94dbda10b1c851914d67a9f5a7679b79 | 767 | py | Python | maec/utils/__init__.py | colbyprior/python-maec | 109d4517b0123a5f01e31c15818f35772d451705 | [
"BSD-3-Clause"
] | null | null | null | maec/utils/__init__.py | colbyprior/python-maec | 109d4517b0123a5f01e31c15818f35772d451705 | [
"BSD-3-Clause"
] | null | null | null | maec/utils/__init__.py | colbyprior/python-maec | 109d4517b0123a5f01e31c15818f35772d451705 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2015, The MITRE Corporation
# All rights reserved
"""MAEC utility methods"""
from mixbox.vendor.six import iteritems
def flip_dict(d):
"""Returns a copy of the input dictionary `d` where the values of `d`
become the keys and the keys become the values.
Note:
This does not even att... | 27.392857 | 83 | 0.698827 | 98 | 767 | 5.459184 | 0.673469 | 0.033645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006757 | 0.228162 | 767 | 27 | 84 | 28.407407 | 0.896959 | 0.48631 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.625 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
0fa98a9a212faf370604ed30a8fd919ddabd0957 | 983 | py | Python | tests/python/pants_test/goal/data/register.py | lahosken/pants | 1b0340987c9b2eab9411416803c75b80736716e4 | [
"Apache-2.0"
] | 1 | 2021-11-11T14:04:24.000Z | 2021-11-11T14:04:24.000Z | tests/python/pants_test/goal/data/register.py | lahosken/pants | 1b0340987c9b2eab9411416803c75b80736716e4 | [
"Apache-2.0"
] | 2 | 2016-10-13T21:37:42.000Z | 2018-07-20T20:14:33.000Z | tests/python/pants_test/goal/data/register.py | lahosken/pants | 1b0340987c9b2eab9411416803c75b80736716e4 | [
"Apache-2.0"
] | 1 | 2021-11-11T14:04:12.000Z | 2021-11-11T14:04:12.000Z | # coding=utf-8
# Copyright 2016 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
from pants.backend.j... | 33.896552 | 93 | 0.76297 | 126 | 983 | 5.825397 | 0.619048 | 0.049046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008363 | 0.148525 | 983 | 28 | 94 | 35.107143 | 0.868578 | 0.189217 | 0 | 0 | 0 | 0 | 0.040404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.3125 | 0 | 0.5625 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
0fb09492cb0383481e3414a1cbe1ab5f1ecef089 | 2,690 | py | Python | dragonfly/distributions/model.py | anonymous-submission000/mobo | 090f774d742c7155c5e5ba01c10e7db7b93b6a0a | [
"MIT"
] | 1 | 2022-02-17T08:50:47.000Z | 2022-02-17T08:50:47.000Z | dragonfly/distributions/model.py | anonymous-submission000/mobo | 090f774d742c7155c5e5ba01c10e7db7b93b6a0a | [
"MIT"
] | null | null | null | dragonfly/distributions/model.py | anonymous-submission000/mobo | 090f774d742c7155c5e5ba01c10e7db7b93b6a0a | [
"MIT"
] | null | null | null | """
Class for abstract probability distribution
-- kvysyara@andrew.cmu.edu
"""
from __future__ import absolute_import
import numpy as np
# Local imports
from .distribution import Distribution
from ..sampling.metropolis import Metropolis, BinaryMetropolis
from ..sampling.nuts import NoUTurnSamplerDA as NUTS, LeapF... | 34.935065 | 86 | 0.664684 | 326 | 2,690 | 5.294479 | 0.202454 | 0.086906 | 0.06489 | 0.08343 | 0.378331 | 0.337775 | 0.266512 | 0.266512 | 0.266512 | 0.214368 | 0 | 0.000485 | 0.234201 | 2,690 | 76 | 87 | 35.394737 | 0.837379 | 0.224164 | 0 | 0.090909 | 0 | 0 | 0.020813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0 | 0.136364 | 0 | 0.613636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
0fb3d5631bf6694b6b04224c4ca2af898658c624 | 245 | py | Python | dice_ml/constants.py | Moeflon/DiCE | bb00f2c73495d80675d9d6e61d385ee8638c5be9 | [
"MIT"
] | null | null | null | dice_ml/constants.py | Moeflon/DiCE | bb00f2c73495d80675d9d6e61d385ee8638c5be9 | [
"MIT"
] | null | null | null | dice_ml/constants.py | Moeflon/DiCE | bb00f2c73495d80675d9d6e61d385ee8638c5be9 | [
"MIT"
] | null | null | null | """Constants for dice-ml package."""
class BackEndTypes:
Sklearn = 'sklearn'
Tensorflow1 = 'TF1'
Tensorflow2 = 'TF2'
Pytorch = 'PYT'
class SamplingStrategy:
Random = 'random'
Genetic = 'genetic'
KdTree = 'kdtree'
| 16.333333 | 36 | 0.62449 | 23 | 245 | 6.652174 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.24898 | 245 | 14 | 37 | 17.5 | 0.809783 | 0.122449 | 0 | 0 | 0 | 0 | 0.167464 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
0fc724e01dcf6faa7e2cb9efbaff1fc2842030b5 | 1,397 | py | Python | main/models.py | hassanaziz0012/real-estate-manager-site | 607139ad1f7f303623f7983a217f4178fc7ee8ec | [
"MIT"
] | null | null | null | main/models.py | hassanaziz0012/real-estate-manager-site | 607139ad1f7f303623f7983a217f4178fc7ee8ec | [
"MIT"
] | null | null | null | main/models.py | hassanaziz0012/real-estate-manager-site | 607139ad1f7f303623f7983a217f4178fc7ee8ec | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Listing(models.Model):
address = models.CharField(max_length=300, null=False, blank=False)
zip_code = models.IntegerField(null=False, blank=False)
city = models.CharField(max_length=100, null=False, blank=False)
beds_count = models.IntegerFi... | 36.763158 | 90 | 0.683608 | 176 | 1,397 | 5.272727 | 0.357955 | 0.05819 | 0.090517 | 0.122845 | 0.34375 | 0.27694 | 0.051724 | 0 | 0 | 0 | 0 | 0.007867 | 0.181102 | 1,397 | 37 | 91 | 37.756757 | 0.803322 | 0.01718 | 0 | 0.148148 | 0 | 0 | 0.151714 | 0.032823 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.037037 | 0.148148 | 0.925926 | 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 | 1 | 0 | 0 | 2 |
0fd0938f5388415f09c92dd78e5f79354660972c | 715 | py | Python | DifferenceEvolution/__init__.py | LeslieWongCV/EE6227_Wong1 | 4813e2f33c5cb2ccb7ff2ec884481a97bd918de6 | [
"MIT"
] | 2 | 2021-01-09T05:55:41.000Z | 2022-01-01T07:14:55.000Z | DifferenceEvolution/__init__.py | LeslieWongCV/EE6227_Wong1 | 4813e2f33c5cb2ccb7ff2ec884481a97bd918de6 | [
"MIT"
] | null | null | null | DifferenceEvolution/__init__.py | LeslieWongCV/EE6227_Wong1 | 4813e2f33c5cb2ccb7ff2ec884481a97bd918de6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time : 2021/2/10 11:58 上午
# @Author : Yushuo Wang
# @FileName: __init__.py
# @Software: PyCharm
# @Blog :https://lesliewongcv.github.io/
import numpy as np
import matplotlib.pyplot as plt
import sys
sys.path.append('../')
import GenericAlgorithm as GA
from math import *
def fitness_sco... | 26.481481 | 105 | 0.581818 | 117 | 715 | 3.478632 | 0.529915 | 0.029484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072202 | 0.225175 | 715 | 26 | 106 | 27.5 | 0.662455 | 0.423776 | 0 | 0 | 0 | 0 | 0.007444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.333333 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
0fd498bcdf9fe5b42393563b752da57b4eb04b2e | 13,554 | py | Python | analytics/selector/tests/unittest_selector.py | sadikovi/Pulsar | 3267426cf5bd676a3c4c20cbee88a80b89e65b0f | [
"Apache-2.0"
] | null | null | null | analytics/selector/tests/unittest_selector.py | sadikovi/Pulsar | 3267426cf5bd676a3c4c20cbee88a80b89e65b0f | [
"Apache-2.0"
] | 29 | 2015-02-23T07:59:13.000Z | 2015-04-05T09:49:53.000Z | analytics/selector/tests/unittest_selector.py | sadikovi/Pulsar | 3267426cf5bd676a3c4c20cbee88a80b89e65b0f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# import libs
import unittest
from types import IntType, FloatType, ListType
import random
import warnings
# import classes
import analytics.exceptions.exceptions as ex
import analytics.core.processor.processor as processor
import analytics.selector.selector as selector
from analytics.core.map.cl... | 40.459701 | 110 | 0.574738 | 1,500 | 13,554 | 5.004667 | 0.106667 | 0.081924 | 0.067137 | 0.070334 | 0.721726 | 0.689889 | 0.645531 | 0.641401 | 0.622086 | 0.622086 | 0 | 0.014329 | 0.289435 | 13,554 | 334 | 111 | 40.580838 | 0.765133 | 0.051276 | 0 | 0.53405 | 0 | 0 | 0.069156 | 0 | 0 | 0 | 0 | 0 | 0.157706 | 0 | null | null | 0 | 0.043011 | null | null | 0.010753 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0feb6fde76421a2cd45120b5e80fefcf16660170 | 396 | py | Python | src/damn/settings.py | funkybob/django-amn | 93fdb9665d81795408564bcaf00dfa77d10d42f7 | [
"BSD-2-Clause"
] | 23 | 2015-03-14T22:41:02.000Z | 2021-10-15T07:29:25.000Z | src/damn/settings.py | funkybob/django-amn | 93fdb9665d81795408564bcaf00dfa77d10d42f7 | [
"BSD-2-Clause"
] | null | null | null | src/damn/settings.py | funkybob/django-amn | 93fdb9665d81795408564bcaf00dfa77d10d42f7 | [
"BSD-2-Clause"
] | null | null | null | from django.conf import settings
# Map of mode -> processor config
# {
# 'js': {
# 'processor': 'damn.processors.ScriptProcessor',
# 'aliases': {},
# },
# }
PROCESSORS = getattr(settings, "DAMN_PROCESSORS", {})
# File extension -> mode name
MODE_MAP = getattr(settings, "DAMN_MODE_M... | 24.75 | 65 | 0.608586 | 41 | 396 | 5.707317 | 0.512195 | 0.192308 | 0.24359 | 0.196581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219697 | 396 | 15 | 66 | 26.4 | 0.757282 | 0.436869 | 0 | 0 | 0 | 0 | 0.224299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0feb779f370c95e0551c64ccb5ebfd0c453b6700 | 1,035 | py | Python | release/stubs.min/System/Runtime/InteropServices/__init___parts/StructLayoutAttribute.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/System/Runtime/InteropServices/__init___parts/StructLayoutAttribute.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/System/Runtime/InteropServices/__init___parts/StructLayoutAttribute.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | class StructLayoutAttribute(Attribute, _Attribute):
"""
Lets you control the physical layout of the data fields of a class or structure.
StructLayoutAttribute(layoutKind: LayoutKind)
StructLayoutAttribute(layoutKind: Int16)
"""
def __init__(self, *args):
""" x.__init__(...) initial... | 26.538462 | 221 | 0.671498 | 113 | 1,035 | 5.681416 | 0.460177 | 0.14486 | 0.074766 | 0.088785 | 0.26947 | 0.176012 | 0.176012 | 0.176012 | 0.176012 | 0.176012 | 0 | 0.004994 | 0.226087 | 1,035 | 38 | 222 | 27.236842 | 0.796504 | 0.441546 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
ba042e792f2ef5757d48cf5820dfe854cfad9cbc | 403 | py | Python | cores.py | mauriciocarminate/PrimeiroPython | 5cd5b761e491cf6dffc2a108e1ec5ba826677650 | [
"MIT"
] | null | null | null | cores.py | mauriciocarminate/PrimeiroPython | 5cd5b761e491cf6dffc2a108e1ec5ba826677650 | [
"MIT"
] | null | null | null | cores.py | mauriciocarminate/PrimeiroPython | 5cd5b761e491cf6dffc2a108e1ec5ba826677650 | [
"MIT"
] | null | null | null | #lista de cores para menu:
#cor da letra
limpa = '\033[m'
Lbranco = '\033[30m'
Lvermelho = '\033[31m'
Lverde = '\033[32m'
Lamarelo = '\033[33m'
Lazul = '\033[34m'
Lroxo = '\033[35m'
Lazulclaro = '\033[36'
Lcinza = '\033[37'
#Fundo
Fbranco = '\033[40m'
Fvermelho = '\033[41m'
Fverde = '\033[42m'
Famarelo = '\033[43m'
F... | 16.12 | 26 | 0.620347 | 60 | 403 | 4.166667 | 0.716667 | 0.048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244838 | 0.158809 | 403 | 24 | 27 | 16.791667 | 0.492625 | 0.104218 | 0 | 0 | 0 | 0 | 0.370787 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ba06afd9284e82a36d2bee0edc5bbfbb83d0e370 | 297 | py | Python | homehub/api/management/commands/update_wotd_cache.py | stricoff92/homehub | 5946d661f47a8f38e803db507e08133afd613ba7 | [
"MIT"
] | null | null | null | homehub/api/management/commands/update_wotd_cache.py | stricoff92/homehub | 5946d661f47a8f38e803db507e08133afd613ba7 | [
"MIT"
] | null | null | null | homehub/api/management/commands/update_wotd_cache.py | stricoff92/homehub | 5946d661f47a8f38e803db507e08133afd613ba7 | [
"MIT"
] | null | null | null |
from django.core.management.base import BaseCommand
from django.conf import settings
from api.lib import wordnik, script_logger
class Command(BaseCommand):
def handle(self, *args, **kwargs):
logger = script_logger.create_logger("wotd")
wordnik.update_cache(logger=logger)
| 22.846154 | 52 | 0.747475 | 38 | 297 | 5.736842 | 0.657895 | 0.091743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161616 | 297 | 12 | 53 | 24.75 | 0.875502 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ba0f520d197398af1ed845d3a98b021366e4db92 | 166 | py | Python | chapter11-regex/search-extract4.py | MyLanPangzi/py4e | af5cd5fa63956ff237f880a1f9dd0bfdd6b28930 | [
"Apache-2.0"
] | null | null | null | chapter11-regex/search-extract4.py | MyLanPangzi/py4e | af5cd5fa63956ff237f880a1f9dd0bfdd6b28930 | [
"Apache-2.0"
] | null | null | null | chapter11-regex/search-extract4.py | MyLanPangzi/py4e | af5cd5fa63956ff237f880a1f9dd0bfdd6b28930 | [
"Apache-2.0"
] | null | null | null | import re
fin = open('../mbox-short.txt')
for line in fin:
line = line.rstrip()
t = re.findall('^From .* (\d\d):', line)
if len(t) > 0:
print(t)
| 18.444444 | 44 | 0.518072 | 27 | 166 | 3.185185 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0.26506 | 166 | 8 | 45 | 20.75 | 0.696721 | 0 | 0 | 0 | 0 | 0 | 0.198795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ba1429df0501f90cee72d7a50605110cecd5e8ad | 2,921 | py | Python | Scripts/SimpleProgramUtilities.py | ssell/PythonSimplePrograms | d219d940700cb727f455f6d4cb62076f0043d71d | [
"Apache-2.0"
] | null | null | null | Scripts/SimpleProgramUtilities.py | ssell/PythonSimplePrograms | d219d940700cb727f455f6d4cb62076f0043d71d | [
"Apache-2.0"
] | null | null | null | Scripts/SimpleProgramUtilities.py | ssell/PythonSimplePrograms | d219d940700cb727f455f6d4cb62076f0043d71d | [
"Apache-2.0"
] | null | null | null | # ------------------------------------------------------------------------
# Copyright 2016 Steven T Sell (ssell@vertexfragment.com)
#
# 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
#
# htt... | 36.5125 | 94 | 0.50873 | 295 | 2,921 | 5.023729 | 0.464407 | 0.040486 | 0.022267 | 0.021592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00565 | 0.15166 | 2,921 | 79 | 95 | 36.974684 | 0.592413 | 0.71722 | 0 | 0 | 0 | 0 | 0.060026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.041667 | 0.083333 | 0.583333 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
ba18ef136c0bc1a8bc5c4e6f34473be48d4dd297 | 955 | py | Python | tests/test_text_transliter.py | axtrace/PartyBook | be2367369f03a701ff4809894922f6873257f53d | [
"Unlicense"
] | 1 | 2019-06-01T15:12:29.000Z | 2019-06-01T15:12:29.000Z | tests/test_text_transliter.py | axtrace/PartyBook | be2367369f03a701ff4809894922f6873257f53d | [
"Unlicense"
] | 10 | 2018-11-02T20:17:36.000Z | 2021-12-13T19:52:00.000Z | tests/test_text_transliter.py | axtrace/PartyBook | be2367369f03a701ff4809894922f6873257f53d | [
"Unlicense"
] | 1 | 2019-06-03T17:45:05.000Z | 2019-06-03T17:45:05.000Z | import unittest
from text_transliter import TextTransliter
class TestTextTransliter(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_empty_line(self):
text = ''
result = TextTransliter(text, input_lang='ru').get_translitet()
self.assertE... | 28.939394 | 114 | 0.679581 | 89 | 955 | 7.044944 | 0.449438 | 0.033493 | 0.114833 | 0.138756 | 0.330144 | 0.330144 | 0.330144 | 0.330144 | 0.330144 | 0.330144 | 0 | 0.026918 | 0.22199 | 955 | 32 | 115 | 29.84375 | 0.816958 | 0.034555 | 0 | 0.227273 | 0 | 0 | 0.193689 | 0.151251 | 0 | 0 | 0 | 0 | 0.136364 | 1 | 0.227273 | false | 0.090909 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ba1d452a12fc4225bcc31cc68c40a35361608559 | 7,869 | py | Python | pysnmp/PROXY-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/PROXY-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/PROXY-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module PROXY-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/PROXY-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:33:35 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23... | 99.607595 | 1,254 | 0.763121 | 895 | 7,869 | 6.707263 | 0.16648 | 0.024321 | 0.017491 | 0.023322 | 0.416625 | 0.369982 | 0.259204 | 0.194903 | 0.170248 | 0.138431 | 0 | 0.075595 | 0.087178 | 7,869 | 78 | 1,255 | 100.884615 | 0.760128 | 0.039649 | 0 | 0 | 0 | 0 | 0.123741 | 0.005829 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.084507 | 0 | 0.084507 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.