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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
810028e77fa49197f58461ee88815f3bf00eba42 | 2,029 | py | Python | weasyprint/tests/test_stacking.py | Smylers/WeasyPrint | 25ce91a34755386b3350d898aa1638c349723b57 | [
"BSD-3-Clause"
] | null | null | null | weasyprint/tests/test_stacking.py | Smylers/WeasyPrint | 25ce91a34755386b3350d898aa1638c349723b57 | [
"BSD-3-Clause"
] | null | null | null | weasyprint/tests/test_stacking.py | Smylers/WeasyPrint | 25ce91a34755386b3350d898aa1638c349723b57 | [
"BSD-3-Clause"
] | null | null | null | # coding: utf8
"""
weasyprint.tests.stacking
-------------------------
:copyright: Copyright 2011-2012 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from __future__ import division, unicode_literals
from ..stacking import StackingContext
from .test_boxes impo... | 25.683544 | 78 | 0.556925 | 234 | 2,029 | 4.679487 | 0.376068 | 0.029224 | 0.076712 | 0.041096 | 0.231963 | 0.096804 | 0.096804 | 0.049315 | 0 | 0 | 0 | 0.01222 | 0.274027 | 2,029 | 78 | 79 | 26.012821 | 0.731161 | 0.126663 | 0 | 0.259259 | 0 | 0 | 0.239679 | 0 | 0 | 0 | 0 | 0 | 0.12963 | 1 | 0.092593 | false | 0 | 0.092593 | 0.037037 | 0.240741 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8100832c0d5bc42056a44079c84eec3ee522ecd0 | 1,143 | py | Python | django-magic-link/customers/views.py | industrydive/sourcelist | 9db4ec5c9cb9246a644615ca401a3c8f8d560b6e | [
"MIT"
] | 5 | 2017-10-28T17:17:35.000Z | 2020-06-24T21:43:22.000Z | django-magic-link/customers/views.py | greglinch/sourcelist | 8267bb060e55f036d6d2dd9648698a5b8e48c0b3 | [
"MIT"
] | 2 | 2020-02-11T21:50:49.000Z | 2021-04-08T18:25:26.000Z | django-magic-link/customers/views.py | industrydive/sourcelist | 9db4ec5c9cb9246a644615ca401a3c8f8d560b6e | [
"MIT"
] | 2 | 2017-11-02T02:14:25.000Z | 2019-05-28T15:35:44.000Z | from django.shortcuts import render
from django.contrib.auth.models import User
from django.contrib.auth.decorators import login_required
from sesame import utils
from django.core.mail import send_mail
def login_page(request):
if request.method == "POST":
email = request.POST.get("emailId")
user =... | 31.75 | 107 | 0.630796 | 145 | 1,143 | 4.848276 | 0.441379 | 0.056899 | 0.081081 | 0.059744 | 0.079659 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011561 | 0.24322 | 1,143 | 36 | 108 | 31.75 | 0.801156 | 0 | 0 | 0 | 0 | 0 | 0.271853 | 0.018357 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.166667 | 0.033333 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
81014d9aa2fe1551a160b448cdc227329bca693d | 3,079 | py | Python | python-lib/config/dss_parameter.py | dataiku/dss-plugin-nlp-analysis | ff9dce56500dc8f28f83158afbdf7db01074ee38 | [
"Apache-2.0"
] | 1 | 2021-03-12T10:45:53.000Z | 2021-03-12T10:45:53.000Z | python-lib/config/dss_parameter.py | dataiku/dss-plugin-nlp-analysis | ff9dce56500dc8f28f83158afbdf7db01074ee38 | [
"Apache-2.0"
] | 22 | 2021-03-01T18:49:54.000Z | 2021-06-08T15:16:30.000Z | python-lib/config/dss_parameter.py | dataiku/dss-plugin-nlp-analysis | ff9dce56500dc8f28f83158afbdf7db01074ee38 | [
"Apache-2.0"
] | 1 | 2021-02-22T15:19:43.000Z | 2021-02-22T15:19:43.000Z | from .custom_check import CustomCheck, CustomCheckError
from typing import Any, List
import logging
logger = logging.getLogger(__name__)
class DSSParameterError(Exception):
"""Exception raised when at least one CustomCheck fails."""
pass
class DSSParameter:
"""Object related to one parameter. It is m... | 33.835165 | 104 | 0.618383 | 358 | 3,079 | 5.231844 | 0.304469 | 0.025627 | 0.029899 | 0.014949 | 0.275494 | 0.275494 | 0.275494 | 0.275494 | 0.275494 | 0.275494 | 0 | 0 | 0.284183 | 3,079 | 90 | 105 | 34.211111 | 0.849819 | 0.363105 | 0 | 0.044444 | 0 | 0 | 0.106576 | 0.02381 | 0 | 0 | 0 | 0 | 0 | 1 | 0.177778 | false | 0.022222 | 0.066667 | 0.044444 | 0.355556 | 0.044444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
81017170c94b85c3925c1875676b310a658ce79c | 21,868 | py | Python | misc/import_ch_zurich.py | mstarikov/transitfeed | c018d7b14f6fccaa670629c00c83a390b5461fc1 | [
"Apache-2.0"
] | null | null | null | misc/import_ch_zurich.py | mstarikov/transitfeed | c018d7b14f6fccaa670629c00c83a390b5461fc1 | [
"Apache-2.0"
] | null | null | null | misc/import_ch_zurich.py | mstarikov/transitfeed | c018d7b14f6fccaa670629c00c83a390b5461fc1 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python2.4
# Copyright (C) 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | 42.62768 | 94 | 0.559813 | 2,779 | 21,868 | 4.24937 | 0.222022 | 0.01321 | 0.019561 | 0.007621 | 0.104751 | 0.076721 | 0.055805 | 0.047676 | 0.036752 | 0.029469 | 0 | 0.02959 | 0.313838 | 21,868 | 512 | 95 | 42.710938 | 0.757414 | 0.171163 | 0 | 0.080808 | 0 | 0.002525 | 0.160013 | 0.035714 | 0 | 0 | 0 | 0 | 0.010101 | 1 | 0.063131 | false | 0.012626 | 0.090909 | 0.002525 | 0.181818 | 0.012626 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
810397b3d3caaed833502145ab5542c3eb653710 | 723 | py | Python | csat/django/fields.py | GaretJax/csat | db63441136369436140a91c9657444353c8944e6 | [
"MIT"
] | null | null | null | csat/django/fields.py | GaretJax/csat | db63441136369436140a91c9657444353c8944e6 | [
"MIT"
] | 7 | 2020-06-05T17:15:29.000Z | 2022-02-11T03:38:15.000Z | csat/django/fields.py | GaretJax/csat | db63441136369436140a91c9657444353c8944e6 | [
"MIT"
] | null | null | null | from lxml import etree
from django import forms
from django.db import models
class XMLFileField(models.FileField):
def __init__(self, *args, **kwargs):
self.schema = kwargs.pop('schema')
super(XMLFileField, self).__init__(*args, **kwargs)
def clean(self, *args, **kwargs):
data = supe... | 28.92 | 74 | 0.60166 | 85 | 723 | 5.023529 | 0.482353 | 0.093677 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29184 | 723 | 24 | 75 | 30.125 | 0.833984 | 0 | 0 | 0 | 0 | 0 | 0.091286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.176471 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8104cf1d7fdf7aff507bf4b2cd4aa7b19708a446 | 15,658 | py | Python | keras_cv_attention_models/yolox/yolox.py | RishabhSehgal/keras_cv_attention_models | c1e20e45815339d70a987ec7dd9e6f926b4eb21d | [
"MIT"
] | null | null | null | keras_cv_attention_models/yolox/yolox.py | RishabhSehgal/keras_cv_attention_models | c1e20e45815339d70a987ec7dd9e6f926b4eb21d | [
"MIT"
] | null | null | null | keras_cv_attention_models/yolox/yolox.py | RishabhSehgal/keras_cv_attention_models | c1e20e45815339d70a987ec7dd9e6f926b4eb21d | [
"MIT"
] | null | null | null | import tensorflow as tf
from tensorflow import keras
from keras_cv_attention_models.attention_layers import (
activation_by_name,
batchnorm_with_activation,
conv2d_no_bias,
depthwise_conv2d_no_bias,
add_pre_post_process,
)
from keras_cv_attention_models import model_surgery
from keras_cv_attention_m... | 54.940351 | 156 | 0.709158 | 2,273 | 15,658 | 4.609327 | 0.120106 | 0.050396 | 0.067195 | 0.056123 | 0.484872 | 0.424454 | 0.406223 | 0.366517 | 0.338074 | 0.304858 | 0 | 0.042312 | 0.154745 | 15,658 | 284 | 157 | 55.133803 | 0.746505 | 0.090305 | 0 | 0.089552 | 0 | 0 | 0.061245 | 0.015187 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089552 | false | 0 | 0.029851 | 0.029851 | 0.21393 | 0.00995 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8104ee7a90ab52a7bdf79ad5abbc624a2b356482 | 4,064 | py | Python | robot-server/tests/service/json_api/test_response.py | mrod0101/opentrons | 6450edb0421f1c2484c292f8583602d8f6fd13b8 | [
"Apache-2.0"
] | null | null | null | robot-server/tests/service/json_api/test_response.py | mrod0101/opentrons | 6450edb0421f1c2484c292f8583602d8f6fd13b8 | [
"Apache-2.0"
] | 2 | 2022-02-15T03:28:35.000Z | 2022-02-28T01:34:18.000Z | robot-server/tests/service/json_api/test_response.py | mrod0101/opentrons | 6450edb0421f1c2484c292f8583602d8f6fd13b8 | [
"Apache-2.0"
] | null | null | null | from pytest import raises
from pydantic import ValidationError
from robot_server.service.json_api.response import (
ResponseDataModel,
ResponseModel,
MultiResponseModel,
)
from tests.service.helpers import ItemResponseModel
def test_attributes_as_dict() -> None:
MyResponse = ResponseModel[ResponseDat... | 26.913907 | 78 | 0.483514 | 369 | 4,064 | 5.162602 | 0.189702 | 0.051969 | 0.054593 | 0.062992 | 0.685564 | 0.578478 | 0.52231 | 0.456693 | 0.456693 | 0.286614 | 0 | 0.037308 | 0.360236 | 4,064 | 150 | 79 | 27.093333 | 0.695385 | 0 | 0 | 0.407407 | 0 | 0 | 0.135335 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 1 | 0.044444 | false | 0 | 0.02963 | 0 | 0.074074 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
81053c6c0f8dac07d6cae3bc4a12cf5b1f575105 | 2,300 | py | Python | neutron/db/migration/alembic_migrations/versions/mitaka/contract/c6c112992c9_rbac_qos_policy.py | congnt95/neutron | 6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1 | [
"Apache-2.0"
] | 1,080 | 2015-01-04T08:35:00.000Z | 2022-03-27T09:15:52.000Z | neutron/db/migration/alembic_migrations/versions/mitaka/contract/c6c112992c9_rbac_qos_policy.py | congnt95/neutron | 6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1 | [
"Apache-2.0"
] | 24 | 2015-02-21T01:48:28.000Z | 2021-11-26T02:38:56.000Z | neutron/db/migration/alembic_migrations/versions/mitaka/contract/c6c112992c9_rbac_qos_policy.py | congnt95/neutron | 6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1 | [
"Apache-2.0"
] | 1,241 | 2015-01-02T10:47:10.000Z | 2022-03-27T09:42:23.000Z | # Copyright 2015 OpenStack Foundation
#
# 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 ... | 33.333333 | 78 | 0.665652 | 309 | 2,300 | 4.854369 | 0.466019 | 0.042667 | 0.065333 | 0.053333 | 0.186 | 0.180667 | 0.180667 | 0.16 | 0.109333 | 0.109333 | 0 | 0.048199 | 0.215217 | 2,300 | 68 | 79 | 33.823529 | 0.782825 | 0.309565 | 0 | 0.060606 | 0 | 0 | 0.119863 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.121212 | 0 | 0.212121 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8105a101c915deb0c3d41bd2462e33e9a3a8584e | 1,200 | py | Python | chapter5/ch5_gcp_subscriber.py | ericchou1/network-devops-kafka-up-and-running | c128cf7359ba40c3005a02d3033b16b67c196779 | [
"Apache-2.0"
] | 1 | 2021-12-30T08:55:09.000Z | 2021-12-30T08:55:09.000Z | chapter5/ch5_gcp_subscriber.py | ericchou1/network-devops-kafka-up-and-running | c128cf7359ba40c3005a02d3033b16b67c196779 | [
"Apache-2.0"
] | null | null | null | chapter5/ch5_gcp_subscriber.py | ericchou1/network-devops-kafka-up-and-running | c128cf7359ba40c3005a02d3033b16b67c196779 | [
"Apache-2.0"
] | 2 | 2021-11-22T09:56:30.000Z | 2022-02-06T22:55:55.000Z | from concurrent.futures import TimeoutError
from google.cloud import pubsub_v1
project_id = "pubsub-testing-331300"
subscription_id = "test-sub"
# Number of seconds the subscriber should listen for messages
timeout = 5.0
subscriber = pubsub_v1.SubscriberClient()
# The `subscription_path` method creates a fully qualif... | 38.709677 | 82 | 0.766667 | 151 | 1,200 | 5.94702 | 0.543046 | 0.089087 | 0.084633 | 0.055679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010763 | 0.148333 | 1,200 | 30 | 83 | 40 | 0.867906 | 0.360833 | 0 | 0 | 0 | 0 | 0.128137 | 0.058124 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.166667 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8107dd8d87df5ce3c83ed8d4993880ee03266544 | 2,136 | py | Python | odoo-13.0/addons/google_drive/models/res_config_settings.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | null | null | null | odoo-13.0/addons/google_drive/models/res_config_settings.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | null | null | null | odoo-13.0/addons/google_drive/models/res_config_settings.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models, _
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
google_drive_authorization_code = fields.Char(string='Authorization Code', config_parame... | 45.446809 | 142 | 0.69382 | 258 | 2,136 | 5.410853 | 0.344961 | 0.126075 | 0.094556 | 0.100287 | 0.17765 | 0.098854 | 0 | 0 | 0 | 0 | 0 | 0.000585 | 0.199438 | 2,136 | 46 | 143 | 46.434783 | 0.815789 | 0.044007 | 0 | 0 | 0 | 0 | 0.251103 | 0.102011 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.027778 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
81081edbfb2a07d5868f34f5440db42fe2a2e90a | 17,308 | py | Python | dataloaders/loader.py | sanger640/attMPTI | a2784b784e0900f3603baa3779631da67bcd0562 | [
"MIT"
] | 93 | 2021-03-18T13:56:42.000Z | 2022-03-30T03:31:35.000Z | dataloaders/loader.py | sanger640/attMPTI | a2784b784e0900f3603baa3779631da67bcd0562 | [
"MIT"
] | 20 | 2021-03-30T12:36:05.000Z | 2022-03-28T09:01:34.000Z | dataloaders/loader.py | sanger640/attMPTI | a2784b784e0900f3603baa3779631da67bcd0562 | [
"MIT"
] | 14 | 2021-04-17T17:19:19.000Z | 2022-03-09T13:49:30.000Z | """ Data Loader for Generating Tasks
Author: Zhao Na, 2020
"""
import os
import random
import math
import glob
import numpy as np
import h5py as h5
import transforms3d
from itertools import combinations
import torch
from torch.utils.data import Dataset
def sample_K_pointclouds(data_path, num_point, pc_attribs, pc_... | 46.526882 | 129 | 0.621389 | 2,140 | 17,308 | 4.68972 | 0.120561 | 0.021523 | 0.026305 | 0.014348 | 0.459845 | 0.371762 | 0.311379 | 0.26933 | 0.205161 | 0.172579 | 0 | 0.014474 | 0.273515 | 17,308 | 372 | 130 | 46.526882 | 0.783681 | 0.035475 | 0 | 0.19244 | 0 | 0 | 0.043093 | 0.004309 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058419 | false | 0 | 0.041237 | 0.010309 | 0.158076 | 0.013746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
810978ce9b3f6467c879457442fbbbac1342a8e8 | 3,065 | py | Python | homeassistant/components/hunterdouglas_powerview/entity.py | pp81381/home-assistant | 23e362faf387c1535be0abab81b30d8e4631df4b | [
"Apache-2.0"
] | null | null | null | homeassistant/components/hunterdouglas_powerview/entity.py | pp81381/home-assistant | 23e362faf387c1535be0abab81b30d8e4631df4b | [
"Apache-2.0"
] | 31 | 2020-07-23T07:13:38.000Z | 2021-06-07T13:21:18.000Z | homeassistant/components/hunterdouglas_powerview/entity.py | pp81381/home-assistant | 23e362faf387c1535be0abab81b30d8e4631df4b | [
"Apache-2.0"
] | null | null | null | """The nexia integration base entity."""
from aiopvapi.resources.shade import ATTR_TYPE
from homeassistant.const import ATTR_MODEL, ATTR_SW_VERSION
import homeassistant.helpers.device_registry as dr
from homeassistant.helpers.entity import DeviceInfo
from homeassistant.helpers.update_coordinator import CoordinatorEnt... | 32.606383 | 114 | 0.669494 | 347 | 3,065 | 5.54755 | 0.210375 | 0.109091 | 0.050909 | 0.072727 | 0.326753 | 0.300779 | 0.25039 | 0.210909 | 0.210909 | 0.161039 | 0 | 0 | 0.239152 | 3,065 | 93 | 115 | 32.956989 | 0.825472 | 0.085808 | 0 | 0.19403 | 0 | 0 | 0.065194 | 0.065194 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074627 | false | 0 | 0.089552 | 0 | 0.253731 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
810a3b9f5eeaf3e888067a624f744f48f465345b | 9,244 | py | Python | keycast_env/lib/python3.8/site-packages/Xlib/ext/res.py | daxter-army/key-cast | cadc88c6760839b37b7fef969294800d4c38fb1b | [
"MIT"
] | 10 | 2021-09-15T16:29:59.000Z | 2022-01-15T11:51:56.000Z | lib/Xlib/ext/res.py | ITZProGamerDieYT/SpeedrunningTimerLinux | 4383c8fdfff476fdb81a99a1d6271218e6e9eee3 | [
"CC-BY-3.0"
] | 7 | 2021-09-16T06:21:44.000Z | 2022-03-18T03:11:25.000Z | lib/Xlib/ext/res.py | ITZProGamerDieYT/SpeedrunningTimerLinux | 4383c8fdfff476fdb81a99a1d6271218e6e9eee3 | [
"CC-BY-3.0"
] | 3 | 2021-09-20T13:08:43.000Z | 2022-03-18T03:09:08.000Z | # Xlib.ext.res -- X-Resource extension module
#
# Copyright (C) 2021 Aleksei Bavshin <alebastr89@gmail.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public License
# as published by the Free Software Foundation; either version 2.1
... | 31.986159 | 83 | 0.609801 | 1,051 | 9,244 | 5.249286 | 0.253092 | 0.027551 | 0.032626 | 0.025014 | 0.344571 | 0.321914 | 0.295813 | 0.25358 | 0.217147 | 0.217147 | 0 | 0.019081 | 0.291324 | 9,244 | 288 | 84 | 32.097222 | 0.82308 | 0.268066 | 0 | 0.434286 | 0 | 0 | 0.095877 | 0.012478 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051429 | false | 0 | 0.005714 | 0.005714 | 0.205714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
810a45957301a3d3e19c056d8cdd8e9cf5349711 | 1,690 | py | Python | rubra/cmdline_args.py | scwatts/rubra | 0be2c1e8d56badf134954baab9705f3aeb38d426 | [
"MIT"
] | 14 | 2015-04-13T04:10:43.000Z | 2022-03-28T08:42:43.000Z | rubra/cmdline_args.py | afcarl/rubra | 82905bbbd7077d201363b96ffbbc78c099095764 | [
"MIT"
] | 3 | 2016-12-27T17:24:04.000Z | 2018-12-21T17:43:36.000Z | rubra/cmdline_args.py | afcarl/rubra | 82905bbbd7077d201363b96ffbbc78c099095764 | [
"MIT"
] | 9 | 2015-04-29T03:00:16.000Z | 2020-01-30T00:56:52.000Z | # Process the unix command line of the pipeline.
import argparse
from version import rubra_version
def get_cmdline_args():
return parser.parse_args()
parser = argparse.ArgumentParser(
description='A bioinformatics pipeline system.')
parser.add_argument(
'pipeline',
metavar='PIPELINE_FILE',
type=... | 26.825397 | 84 | 0.657396 | 203 | 1,690 | 5.399015 | 0.463054 | 0.065693 | 0.124088 | 0.040146 | 0.063869 | 0.063869 | 0 | 0 | 0 | 0 | 0 | 0.005966 | 0.206509 | 1,690 | 62 | 85 | 27.258065 | 0.811335 | 0.027219 | 0 | 0.403509 | 0 | 0 | 0.289281 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017544 | false | 0 | 0.035088 | 0.017544 | 0.070175 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
810b6e9e54a3c45eed3b42ac6920a9d12535f63c | 6,579 | py | Python | PyTradier/data.py | zlopez101/PyTradier | 83397cf38bd636c471993b57fb71a12885affcb7 | [
"MIT"
] | 1 | 2021-04-30T23:59:20.000Z | 2021-04-30T23:59:20.000Z | PyTradier/data.py | zlopez101/PyTradier | 83397cf38bd636c471993b57fb71a12885affcb7 | [
"MIT"
] | 7 | 2021-05-08T00:47:59.000Z | 2021-05-12T01:45:37.000Z | PyTradier/data.py | zlopez101/PyTradier | 83397cf38bd636c471993b57fb71a12885affcb7 | [
"MIT"
] | null | null | null | from PyTradier.base import BasePyTradier
from typing import Union
from datetime import datetime
class MarketData(BasePyTradier):
"""All Methods currently only support string API calls, no datetime, bools, etc
"""
def quotes(self, symbols: Union[str, list], greeks: bool = False) -> dict:
"""Get a ... | 42.173077 | 289 | 0.637635 | 815 | 6,579 | 5.10184 | 0.28589 | 0.023088 | 0.015152 | 0.026936 | 0.345358 | 0.303271 | 0.294372 | 0.181578 | 0.1633 | 0.140212 | 0 | 0.006038 | 0.26995 | 6,579 | 155 | 290 | 42.445161 | 0.859671 | 0.577899 | 0 | 0.274194 | 0 | 0 | 0.106649 | 0.058456 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112903 | false | 0 | 0.064516 | 0 | 0.306452 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
810c05c71eb3fa5c73eabbeb8e2c1122faa7ac10 | 3,528 | py | Python | joulescope_ui/meter_widget.py | Axel-Jacobsen/pyjoulescope_ui | 7d296b1ead0d36c6524dc399372f7888a340e9fa | [
"Apache-2.0"
] | 1 | 2019-08-08T21:10:26.000Z | 2019-08-08T21:10:26.000Z | joulescope_ui/meter_widget.py | Axel-Jacobsen/pyjoulescope_ui | 7d296b1ead0d36c6524dc399372f7888a340e9fa | [
"Apache-2.0"
] | null | null | null | joulescope_ui/meter_widget.py | Axel-Jacobsen/pyjoulescope_ui | 7d296b1ead0d36c6524dc399372f7888a340e9fa | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Jetperch LLC
#
# 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,... | 40.090909 | 122 | 0.693311 | 385 | 3,528 | 6.264935 | 0.425974 | 0.033168 | 0.026119 | 0.013267 | 0.067993 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007379 | 0.193311 | 3,528 | 87 | 123 | 40.551724 | 0.840126 | 0.178571 | 0 | 0 | 0 | 0 | 0.089417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.160714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
810c343fb0a1f912fe6668116ca4d1081009f872 | 7,677 | py | Python | rpyc/core/service.py | bbonf/rpyc | 2c66dd6936a0d9e6e36c1ba0cda1139676acf95c | [
"MIT"
] | null | null | null | rpyc/core/service.py | bbonf/rpyc | 2c66dd6936a0d9e6e36c1ba0cda1139676acf95c | [
"MIT"
] | null | null | null | rpyc/core/service.py | bbonf/rpyc | 2c66dd6936a0d9e6e36c1ba0cda1139676acf95c | [
"MIT"
] | null | null | null | """
Services are the heart of RPyC: each side of the connection exposes a *service*,
which define the capabilities available to the other side.
Note that the services by both parties need not be symmetric, e.g., one side may
exposed *service A*, while the other may expose *service B*. As long as the two
can interopera... | 34.426009 | 86 | 0.64804 | 917 | 7,677 | 5.237732 | 0.2988 | 0.022902 | 0.021237 | 0.009994 | 0.096814 | 0.082657 | 0.060379 | 0.034145 | 0.034145 | 0.034145 | 0 | 0.001753 | 0.256871 | 7,677 | 222 | 87 | 34.581081 | 0.84014 | 0.441188 | 0 | 0.13913 | 0 | 0 | 0.019369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.165217 | false | 0.017391 | 0.069565 | 0.008696 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
810e20d4bc8d21dc6f3aae023a1133ca2d856392 | 1,218 | py | Python | test/workload/tpch_loop_workload_test.py | ChenYi015/Raven | e732e03f8dd118ed805a143fc6916f0e5fc53c2c | [
"Apache-2.0"
] | 1 | 2022-03-03T05:54:25.000Z | 2022-03-03T05:54:25.000Z | test/workload/tpch_loop_workload_test.py | ChenYi015/Raven | e732e03f8dd118ed805a143fc6916f0e5fc53c2c | [
"Apache-2.0"
] | null | null | null | test/workload/tpch_loop_workload_test.py | ChenYi015/Raven | e732e03f8dd118ed805a143fc6916f0e5fc53c2c | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Raven Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 26.478261 | 74 | 0.705255 | 157 | 1,218 | 5.363057 | 0.592357 | 0.071259 | 0.030879 | 0.038005 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008359 | 0.214286 | 1,218 | 45 | 75 | 27.066667 | 0.871473 | 0.46798 | 0 | 0.086957 | 0 | 0 | 0.053628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.130435 | 0 | 0.173913 | 0.26087 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8111119b844622ccdb3004ede98c4e13a46f452c | 398 | py | Python | api/tests/ver1/test_base.py | codacy-badger/politico-api | 10d926bf34f12631cb19bb9c82ccded36557c790 | [
"MIT"
] | null | null | null | api/tests/ver1/test_base.py | codacy-badger/politico-api | 10d926bf34f12631cb19bb9c82ccded36557c790 | [
"MIT"
] | null | null | null | api/tests/ver1/test_base.py | codacy-badger/politico-api | 10d926bf34f12631cb19bb9c82ccded36557c790 | [
"MIT"
] | null | null | null | import unittest
from api import create_app
class TestBase(unittest.TestCase):
"""Default super class for api ver 1 tests"""
# setup testing
def setUp(self):
self.app = create_app('testing')
self.client = self.app.test_client()
self.item_list = []
# deconstructs test elements
... | 23.411765 | 49 | 0.640704 | 51 | 398 | 4.901961 | 0.54902 | 0.084 | 0.088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00339 | 0.258794 | 398 | 16 | 50 | 24.875 | 0.844068 | 0.203518 | 0 | 0 | 0 | 0 | 0.022581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
81118158b2fe646b1e3b2899f2e0b74a521117c9 | 3,234 | py | Python | alipay/aop/api/domain/MetroOdItem.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/domain/MetroOdItem.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/domain/MetroOdItem.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.CloudbusUserInfo import CloudbusUserInfo
class MetroOdItem(object):
def __init__(self):
self._dest_geo = None
self._od = None
self._time = None
... | 26.95 | 70 | 0.548856 | 421 | 3,234 | 3.945368 | 0.114014 | 0.077062 | 0.093919 | 0.065021 | 0.267911 | 0.216135 | 0 | 0 | 0 | 0 | 0 | 0.000471 | 0.343847 | 3,234 | 119 | 71 | 27.176471 | 0.782281 | 0.012987 | 0 | 0.128713 | 0 | 0 | 0.072773 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148515 | false | 0 | 0.029703 | 0.059406 | 0.277228 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
811909fd3d9bc00f5888c3293282a4df3cefdd8c | 14,970 | py | Python | extras/python/fogbench/__main__.py | foglamp/FogLAMP | 918dff88b440e6ad580efdaa5f0fbdf4143a73d4 | [
"Apache-2.0"
] | 65 | 2017-05-15T21:55:04.000Z | 2022-01-19T01:30:42.000Z | extras/python/fogbench/__main__.py | foglamp/FogLAMP | 918dff88b440e6ad580efdaa5f0fbdf4143a73d4 | [
"Apache-2.0"
] | 576 | 2017-05-22T05:41:07.000Z | 2020-02-13T07:48:58.000Z | extras/python/fogbench/__main__.py | foglamp/FogLAMP | 918dff88b440e6ad580efdaa5f0fbdf4143a73d4 | [
"Apache-2.0"
] | 52 | 2017-05-09T22:45:47.000Z | 2022-03-10T18:49:02.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# FOGLAMP_BEGIN
# See: http://foglamp.readthedocs.io/
# FOGLAMP_END
""" fogbench -- a Python script used to test FogLAMP.
The objective is to simulate payloads for input, REST and other requests against one or
more FogLAMP instances. This version of fogbench is meant ... | 36.601467 | 122 | 0.638277 | 1,919 | 14,970 | 4.763418 | 0.205315 | 0.019692 | 0.020457 | 0.013128 | 0.213215 | 0.159611 | 0.118696 | 0.086314 | 0.082923 | 0.05076 | 0 | 0.026688 | 0.234068 | 14,970 | 408 | 123 | 36.691176 | 0.770539 | 0.167001 | 0 | 0.102439 | 0 | 0 | 0.169304 | 0.002327 | 0 | 0 | 0 | 0.004902 | 0 | 1 | 0.039024 | false | 0 | 0.068293 | 0 | 0.146341 | 0.029268 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
81197e9fdd38be14f8210f08e7cec2020796f260 | 19,888 | py | Python | qiskit/ignis/mitigation/measurement/filters.py | paulineollitrault/qiskit-ignis | 99f24ea6533cd284be4c44a48d43e54f62f05674 | [
"Apache-2.0"
] | 182 | 2019-02-19T22:52:42.000Z | 2022-02-28T05:48:07.000Z | qiskit/ignis/mitigation/measurement/filters.py | paulineollitrault/qiskit-ignis | 99f24ea6533cd284be4c44a48d43e54f62f05674 | [
"Apache-2.0"
] | 384 | 2019-02-19T21:30:18.000Z | 2021-12-02T21:13:34.000Z | qiskit/ignis/mitigation/measurement/filters.py | paulineollitrault/qiskit-ignis | 99f24ea6533cd284be4c44a48d43e54f62f05674 | [
"Apache-2.0"
] | 203 | 2019-02-19T21:06:27.000Z | 2022-03-02T14:16:50.000Z | # -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modif... | 40.422764 | 100 | 0.569389 | 2,404 | 19,888 | 4.493344 | 0.158486 | 0.022033 | 0.026662 | 0.013886 | 0.455934 | 0.408998 | 0.374097 | 0.288002 | 0.233753 | 0.233753 | 0 | 0.012043 | 0.352826 | 19,888 | 491 | 101 | 40.505092 | 0.827208 | 0.332864 | 0 | 0.336032 | 0 | 0 | 0.031934 | 0 | 0 | 0 | 0 | 0.002037 | 0 | 1 | 0.080972 | false | 0 | 0.036437 | 0.004049 | 0.190283 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
811bbfb3266a619b867f934c6f82a6ecb7783e88 | 111,660 | py | Python | pymatgen/analysis/graphs.py | Roy027/pymatgen | a4aa91d011033c1151b82335abd080e2b1a310d5 | [
"MIT"
] | null | null | null | pymatgen/analysis/graphs.py | Roy027/pymatgen | a4aa91d011033c1151b82335abd080e2b1a310d5 | [
"MIT"
] | null | null | null | pymatgen/analysis/graphs.py | Roy027/pymatgen | a4aa91d011033c1151b82335abd080e2b1a310d5 | [
"MIT"
] | null | null | null | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
Module for graph representations of crystals.
"""
import copy
import logging
import os.path
import subprocess
import warnings
from collections import defaultdict, namedtuple
from itertools import combinati... | 37.748479 | 118 | 0.579393 | 13,644 | 111,660 | 4.59528 | 0.079962 | 0.003445 | 0.010144 | 0.013015 | 0.679033 | 0.65538 | 0.635299 | 0.623082 | 0.608074 | 0.597068 | 0 | 0.006777 | 0.33791 | 111,660 | 2,957 | 119 | 37.761245 | 0.841307 | 0.33225 | 0 | 0.573937 | 0 | 0 | 0.062088 | 0 | 0 | 0 | 0 | 0.001015 | 0 | 1 | 0.049966 | false | 0.000675 | 0.01553 | 0.002701 | 0.113437 | 0.004051 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
811c0a3b1e48996b84a2d4750219f62c35f29d83 | 1,064 | py | Python | articles/views.py | Ahmed-skb/blogyfy | 2cfa3d9503f1846ccd89c2bf1934293eb97ad44a | [
"MIT"
] | null | null | null | articles/views.py | Ahmed-skb/blogyfy | 2cfa3d9503f1846ccd89c2bf1934293eb97ad44a | [
"MIT"
] | null | null | null | articles/views.py | Ahmed-skb/blogyfy | 2cfa3d9503f1846ccd89c2bf1934293eb97ad44a | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect
from django.http import HttpResponse
from .models import Article
from django.contrib.auth.decorators import login_required
from . import forms
def Articles(request):
articles = Article.objects.all().order_by('date')
return render(request, 'articles/article_list.htm... | 34.322581 | 81 | 0.693609 | 125 | 1,064 | 5.824 | 0.408 | 0.082418 | 0.120879 | 0.111264 | 0.14011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190789 | 1,064 | 30 | 82 | 35.466667 | 0.845528 | 0.041353 | 0 | 0 | 0 | 0 | 0.135693 | 0.081613 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.217391 | 0 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8120aa4d76824186b0ed660869921ca64f9eaede | 667 | py | Python | wsgi.py | javicacheiro/salt-git-synchronizer-proxy | c93de5c0b26afe2b9ec72156497894df7f15d692 | [
"Apache-2.0"
] | null | null | null | wsgi.py | javicacheiro/salt-git-synchronizer-proxy | c93de5c0b26afe2b9ec72156497894df7f15d692 | [
"Apache-2.0"
] | null | null | null | wsgi.py | javicacheiro/salt-git-synchronizer-proxy | c93de5c0b26afe2b9ec72156497894df7f15d692 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import logging
import sys
from app import app as application
def setup_flask_logging():
# Log to stdout
handler = logging.StreamHandler(sys.stdout)
# Log to a file
#handler = logging.FileHandler('./application.log')
handler.setLevel(logging.INFO)
handler.setFormatter(logg... | 24.703704 | 64 | 0.721139 | 84 | 667 | 5.583333 | 0.583333 | 0.042644 | 0.072495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169415 | 667 | 26 | 65 | 25.653846 | 0.84657 | 0.290855 | 0 | 0 | 0 | 0 | 0.132762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
81229a54be34a90af845ce0b0f142321ea5ad691 | 11,115 | py | Python | youtube_dl/extractor/turner.py | jonyg80/youtube-dl | ef3a87fb77891329de1d3dbebfee53bf50645261 | [
"Unlicense"
] | 66,635 | 2019-03-10T21:34:18.000Z | 2022-03-31T23:50:31.000Z | youtube_dl/extractor/turner.py | jonyg80/youtube-dl | ef3a87fb77891329de1d3dbebfee53bf50645261 | [
"Unlicense"
] | 10,936 | 2019-03-10T21:35:47.000Z | 2022-03-31T23:46:52.000Z | youtube_dl/extractor/turner.py | jonyg80/youtube-dl | ef3a87fb77891329de1d3dbebfee53bf50645261 | [
"Unlicense"
] | 15,194 | 2019-03-10T21:09:27.000Z | 2022-03-31T22:13:49.000Z | # coding: utf-8
from __future__ import unicode_literals
import re
from .adobepass import AdobePassIE
from ..compat import compat_str
from ..utils import (
fix_xml_ampersands,
xpath_text,
int_or_none,
determine_ext,
float_or_none,
parse_duration,
xpath_attr,
update_url_query,
Extrac... | 42.586207 | 134 | 0.506163 | 1,173 | 11,115 | 4.499574 | 0.197783 | 0.045472 | 0.03183 | 0.040925 | 0.14172 | 0.056461 | 0.034862 | 0.025009 | 0 | 0 | 0 | 0.007947 | 0.377328 | 11,115 | 260 | 135 | 42.75 | 0.75466 | 0.087449 | 0 | 0.171296 | 0 | 0.00463 | 0.106288 | 0.011568 | 0 | 0 | 0 | 0.003846 | 0 | 1 | 0.018519 | false | 0.009259 | 0.023148 | 0.00463 | 0.078704 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
81231c1bf7b40bb3a00ed96fce4e7257f1de32c5 | 1,188 | py | Python | ml/sandbox/00-data.py | robk-dev/algo-trading | aa8d76ee739431ab24407fe094e0753c588dc8c6 | [
"MIT"
] | 1 | 2021-03-14T23:52:04.000Z | 2021-03-14T23:52:04.000Z | ml/sandbox/00-data.py | robk-dev/algo-trading | aa8d76ee739431ab24407fe094e0753c588dc8c6 | [
"MIT"
] | null | null | null | ml/sandbox/00-data.py | robk-dev/algo-trading | aa8d76ee739431ab24407fe094e0753c588dc8c6 | [
"MIT"
] | null | null | null | from alpha_vantage.timeseries import TimeSeries
from pprint import pprint
import json
import argparse
def save_dataset(symbol='MSFT', time_window='daily_adj'):
credentials = json.load(open('creds.json', 'r'))
api_key = credentials['av_api_key']
print(symbol, time_window)
ts = TimeSeries(key=api_key, o... | 34.941176 | 125 | 0.683502 | 156 | 1,188 | 4.961538 | 0.435897 | 0.090439 | 0.05814 | 0.054264 | 0.164083 | 0.142119 | 0 | 0 | 0 | 0 | 0 | 0.003099 | 0.185185 | 1,188 | 33 | 126 | 36 | 0.796488 | 0 | 0 | 0 | 0 | 0 | 0.208754 | 0.023569 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.16 | 0 | 0.2 | 0.12 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8123847da358e93698586a58b0a106958f59df07 | 12,570 | py | Python | tests/zpill.py | al3pht/cloud-custodian | ce6613d1b716f336384c5e308eee300389e6bf50 | [
"Apache-2.0"
] | 2,415 | 2018-12-04T00:37:58.000Z | 2022-03-31T12:28:56.000Z | tests/zpill.py | al3pht/cloud-custodian | ce6613d1b716f336384c5e308eee300389e6bf50 | [
"Apache-2.0"
] | 3,272 | 2018-12-03T23:58:17.000Z | 2022-03-31T21:15:32.000Z | tests/zpill.py | al3pht/cloud-custodian | ce6613d1b716f336384c5e308eee300389e6bf50 | [
"Apache-2.0"
] | 773 | 2018-12-06T09:43:23.000Z | 2022-03-30T20:44:43.000Z | # Copyright The Cloud Custodian Authors.
# SPDX-License-Identifier: Apache-2.0
import fnmatch
from io import StringIO
import json
import os
import shutil
import zipfile
import re
from datetime import datetime, timedelta, tzinfo
from distutils.util import strtobool
import boto3
import placebo
from botocore.response imp... | 33.699732 | 93 | 0.605091 | 1,510 | 12,570 | 4.872848 | 0.235099 | 0.014678 | 0.012232 | 0.011416 | 0.249796 | 0.194618 | 0.184697 | 0.143789 | 0.098396 | 0.098396 | 0 | 0.005536 | 0.281464 | 12,570 | 372 | 94 | 33.790323 | 0.809123 | 0.127765 | 0 | 0.155642 | 0 | 0 | 0.058994 | 0 | 0 | 0 | 0 | 0 | 0.003891 | 1 | 0.093385 | false | 0.003891 | 0.058366 | 0.015564 | 0.291829 | 0.007782 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8124c6b98bb9251fb25a500d047b7426b2a988cd | 2,721 | py | Python | ccg/supertagger/any2int.py | stanojevic/ccgtools | d87521d66fcd1b3110fbecc6b78b15a60e5095a3 | [
"MIT"
] | null | null | null | ccg/supertagger/any2int.py | stanojevic/ccgtools | d87521d66fcd1b3110fbecc6b78b15a60e5095a3 | [
"MIT"
] | null | null | null | ccg/supertagger/any2int.py | stanojevic/ccgtools | d87521d66fcd1b3110fbecc6b78b15a60e5095a3 | [
"MIT"
] | null | null | null |
class Any2Int:
def __init__(self, min_count: int, include_UNK: bool, include_PAD: bool):
self.min_count = min_count
self.include_UNK = include_UNK
self.include_PAD = include_PAD
self.frozen = False
self.UNK_i = -1
self.UNK_s = "<UNK>"
self.PAD_i = -2
... | 30.573034 | 118 | 0.529585 | 373 | 2,721 | 3.646113 | 0.19571 | 0.061765 | 0.061765 | 0.039706 | 0.172794 | 0.060294 | 0.060294 | 0.041176 | 0 | 0 | 0 | 0.02926 | 0.359427 | 2,721 | 88 | 119 | 30.920455 | 0.751004 | 0 | 0 | 0.146667 | 0 | 0 | 0.037882 | 0 | 0 | 0 | 0 | 0 | 0.053333 | 1 | 0.146667 | false | 0 | 0 | 0.053333 | 0.28 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
812522326c06afbf43f1bd6cee31bd8b7b273277 | 6,805 | py | Python | app/sensor.py | sosprz/nettemp | 334b3124263267c931bd7dc5c1bd8eb70614b4ef | [
"MIT"
] | 51 | 2015-01-03T01:37:25.000Z | 2021-11-03T18:07:42.000Z | app/sensor.py | sosprz/nettemp | 334b3124263267c931bd7dc5c1bd8eb70614b4ef | [
"MIT"
] | 18 | 2015-03-06T18:46:51.000Z | 2021-04-02T08:02:01.000Z | app/sensor.py | sosprz/nettemp | 334b3124263267c931bd7dc5c1bd8eb70614b4ef | [
"MIT"
] | 51 | 2015-02-04T18:53:54.000Z | 2022-02-16T20:40:45.000Z | from app import app
from flask import Flask, request, jsonify, g
import sqlite3
import os
import json
from random import randint
from flask_jwt_extended import jwt_required
import datetime
from flask_mysqldb import MySQL
mysql = MySQL()
def get_db(rom):
db = getattr(g, '_database', None)
if db is None:
... | 27.439516 | 246 | 0.603527 | 1,032 | 6,805 | 3.898256 | 0.175388 | 0.029828 | 0.022371 | 0.023863 | 0.429779 | 0.331842 | 0.311956 | 0.272931 | 0.216008 | 0.209545 | 0 | 0.020147 | 0.24144 | 6,805 | 247 | 247 | 27.550607 | 0.759202 | 0.001763 | 0 | 0.306977 | 0 | 0.027907 | 0.288218 | 0.02651 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055814 | false | 0 | 0.04186 | 0 | 0.162791 | 0.055814 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
81265c7215ed57cef680d0ec0a27f1c4d35a191a | 5,340 | bzl | Python | tao_compiler/mlir/disc/tests/glob_op_test.bzl | JamesTheZ/BladeDISC | e6c76ee557ebfccd560d44f6b6276bbc4e0a8a34 | [
"Apache-2.0"
] | 328 | 2021-12-20T03:29:35.000Z | 2022-03-31T14:27:23.000Z | tao_compiler/mlir/disc/tests/glob_op_test.bzl | JamesTheZ/BladeDISC | e6c76ee557ebfccd560d44f6b6276bbc4e0a8a34 | [
"Apache-2.0"
] | 82 | 2021-12-20T09:15:16.000Z | 2022-03-31T09:33:48.000Z | tao_compiler/mlir/disc/tests/glob_op_test.bzl | JamesTheZ/BladeDISC | e6c76ee557ebfccd560d44f6b6276bbc4e0a8a34 | [
"Apache-2.0"
] | 66 | 2021-12-21T17:28:27.000Z | 2022-03-29T12:08:34.000Z | # Test definitions for Lit, the LLVM test runner.
#
# This is reusing the LLVM Lit test runner in the interim until the new build
# rules are upstreamed.
# TODO(b/136126535): remove this custom rule.
"""Lit runner globbing test
"""
load("//tensorflow:tensorflow.bzl", "filegroup")
load("@bazel_skylib//lib:paths.bzl", "... | 35.364238 | 94 | 0.639888 | 710 | 5,340 | 4.659155 | 0.257746 | 0.023277 | 0.018138 | 0.033857 | 0.303204 | 0.250302 | 0.219166 | 0.194982 | 0.178658 | 0.178658 | 0 | 0.002764 | 0.254682 | 5,340 | 150 | 95 | 35.6 | 0.828392 | 0.494757 | 0 | 0.131579 | 0 | 0 | 0.209729 | 0.14673 | 0 | 0 | 0 | 0.006667 | 0 | 1 | 0.039474 | false | 0 | 0 | 0 | 0.039474 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
812723d2076c258aebc37a64fed06e3f495c2735 | 2,181 | py | Python | build-scripts/PackageCheckHelpers.py | yulicrunchy/JALoP | a474b464d4916fe559cf1df97c855232e5ec24ab | [
"Apache-2.0"
] | 4 | 2016-01-18T20:49:23.000Z | 2020-03-04T22:23:57.000Z | build-scripts/PackageCheckHelpers.py | yulicrunchy/JALoP | a474b464d4916fe559cf1df97c855232e5ec24ab | [
"Apache-2.0"
] | 2 | 2019-09-23T21:04:25.000Z | 2020-01-31T18:10:17.000Z | build-scripts/PackageCheckHelpers.py | yulicrunchy/JALoP | a474b464d4916fe559cf1df97c855232e5ec24ab | [
"Apache-2.0"
] | 2 | 2021-04-01T20:53:12.000Z | 2021-04-01T21:10:53.000Z | """
These are functions to add to the configure context.
"""
def __checkCanLink(context, source, source_type, message_libname, real_libs=[]):
"""
Check that source can be successfully compiled and linked against real_libs.
Keyword arguments:
source -- source to try to compile
source_type -- type of source file, ... | 22.484536 | 80 | 0.710683 | 305 | 2,181 | 4.914754 | 0.386885 | 0.032021 | 0.044029 | 0.050033 | 0.108072 | 0.042695 | 0.042695 | 0 | 0 | 0 | 0 | 0.028108 | 0.151765 | 2,181 | 96 | 81 | 22.71875 | 0.782162 | 0.214122 | 0 | 0.323944 | 0 | 0 | 0.453271 | 0.029206 | 0 | 0 | 0.01986 | 0 | 0 | 1 | 0.070423 | false | 0 | 0 | 0.028169 | 0.183099 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
81290326c9beb0af3fd98f2bdd52b65974d13cd3 | 12,950 | py | Python | src/transformers/modeling_tf_pytorch_utils.py | ari-holtzman/transformers | 8725c545e8feeecdcee0ad92ca1d80cee8f0c6e4 | [
"Apache-2.0"
] | 5,129 | 2019-09-30T11:21:03.000Z | 2022-03-31T22:35:12.000Z | src/transformers/modeling_tf_pytorch_utils.py | ari-holtzman/transformers | 8725c545e8feeecdcee0ad92ca1d80cee8f0c6e4 | [
"Apache-2.0"
] | 604 | 2019-10-05T00:39:46.000Z | 2022-03-31T11:12:07.000Z | src/transformers/modeling_tf_pytorch_utils.py | ari-holtzman/transformers | 8725c545e8feeecdcee0ad92ca1d80cee8f0c6e4 | [
"Apache-2.0"
] | 1,034 | 2019-09-30T15:01:32.000Z | 2022-03-31T06:14:50.000Z | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a cop... | 39.242424 | 155 | 0.680386 | 1,848 | 12,950 | 4.50487 | 0.164502 | 0.019459 | 0.008168 | 0.025105 | 0.537538 | 0.471351 | 0.429429 | 0.416697 | 0.386306 | 0.348108 | 0 | 0.015574 | 0.226486 | 12,950 | 329 | 156 | 39.361702 | 0.815514 | 0.252046 | 0 | 0.352041 | 0 | 0.020408 | 0.139281 | 0 | 0 | 0 | 0 | 0.00304 | 0.020408 | 1 | 0.035714 | false | 0 | 0.091837 | 0 | 0.163265 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
81292f7ed0f85cfcaaa5e1e9abfd5ae7b048469d | 4,906 | py | Python | hail/python/test/hail/helpers.py | mitochon/hail | 25e5e5b8da1d978468d2cee393426ade46484a87 | [
"MIT"
] | null | null | null | hail/python/test/hail/helpers.py | mitochon/hail | 25e5e5b8da1d978468d2cee393426ade46484a87 | [
"MIT"
] | 3 | 2017-06-16T18:10:45.000Z | 2017-07-21T17:44:13.000Z | hail/python/test/hail/helpers.py | mitochon/hail | 25e5e5b8da1d978468d2cee393426ade46484a87 | [
"MIT"
] | 2 | 2018-01-30T00:50:52.000Z | 2018-03-22T20:04:01.000Z | import os
from timeit import default_timer as timer
import unittest
import pytest
from decorator import decorator
from hail.utils.java import Env
import hail as hl
from hail.backend.local_backend import LocalBackend
_initialized = False
def startTestHailContext():
global _initialized
if not _initialized:
... | 28.858824 | 92 | 0.637994 | 695 | 4,906 | 4.28777 | 0.305036 | 0.048322 | 0.026846 | 0.031879 | 0.239597 | 0.192953 | 0.119463 | 0.119463 | 0.085906 | 0.085906 | 0 | 0.019362 | 0.220954 | 4,906 | 170 | 93 | 28.858824 | 0.760335 | 0.004077 | 0 | 0.167939 | 0 | 0 | 0.068577 | 0.013306 | 0 | 0 | 0 | 0 | 0.038168 | 1 | 0.160305 | false | 0.007634 | 0.076336 | 0.045802 | 0.389313 | 0.007634 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
812941051eea955290efb0cfdb0e29b4664e5ad1 | 2,728 | py | Python | src/entity_linker/models/figer_model/labeling_model.py | mjstrobl/WEXEA | 0af0be1cdb93fc00cd81f885aa15ef8d6579b304 | [
"Apache-2.0"
] | 10 | 2020-06-14T15:46:53.000Z | 2021-04-29T15:02:23.000Z | src/entity_linker/models/figer_model/labeling_model.py | mjstrobl/WEXEA | 0af0be1cdb93fc00cd81f885aa15ef8d6579b304 | [
"Apache-2.0"
] | 3 | 2021-08-25T16:16:45.000Z | 2022-02-10T04:29:10.000Z | src/entity_linker/models/figer_model/labeling_model.py | mjstrobl/WEXEA | 0af0be1cdb93fc00cd81f885aa15ef8d6579b304 | [
"Apache-2.0"
] | 1 | 2021-02-17T17:44:06.000Z | 2021-02-17T17:44:06.000Z | """
Modifications copyright (C) 2020 Michael Strobl
"""
import time
import tensorflow as tf
import numpy as np
from entity_linker.models.base import Model
class LabelingModel(Model):
"""Unsupervised Clustering using Discrete-State VAE"""
def __init__(self, batch_size, num_labels, context_encoded_dim,
... | 40.716418 | 92 | 0.615836 | 328 | 2,728 | 4.777439 | 0.295732 | 0.051691 | 0.033184 | 0.051053 | 0.48947 | 0.486918 | 0.44097 | 0.35418 | 0.35418 | 0.303127 | 0 | 0.012061 | 0.300953 | 2,728 | 66 | 93 | 41.333333 | 0.809649 | 0.079179 | 0 | 0.227273 | 0 | 0 | 0.028869 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.159091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
812a80140e19ea007dd9ab25b6b57d63cc6eb659 | 2,425 | py | Python | examples/text_classification/yelp_reviews_polarity/train.py | liorshk/simpletransformers | 226cf4d11edf5157c1beafcc44aaa78f65ccc985 | [
"Apache-2.0"
] | 3,151 | 2019-10-05T11:14:44.000Z | 2022-03-31T17:02:54.000Z | examples/text_classification/yelp_reviews_polarity/train.py | liorshk/simpletransformers | 226cf4d11edf5157c1beafcc44aaa78f65ccc985 | [
"Apache-2.0"
] | 1,165 | 2019-10-05T14:48:55.000Z | 2022-03-31T11:12:58.000Z | examples/text_classification/yelp_reviews_polarity/train.py | liorshk/simpletransformers | 226cf4d11edf5157c1beafcc44aaa78f65ccc985 | [
"Apache-2.0"
] | 739 | 2019-10-06T15:11:54.000Z | 2022-03-28T11:07:36.000Z | import sys
import pandas as pd
from simpletransformers.classification import ClassificationModel
prefix = "data/"
train_df = pd.read_csv(prefix + "train.csv", header=None)
train_df.head()
eval_df = pd.read_csv(prefix + "test.csv", header=None)
eval_df.head()
train_df[0] = (train_df[0] == 2).astype(int)
eval_df[0]... | 25.260417 | 80 | 0.68701 | 327 | 2,425 | 4.795107 | 0.327217 | 0.086097 | 0.049745 | 0.014031 | 0.234056 | 0.144133 | 0.119898 | 0.034439 | 0 | 0 | 0 | 0.014293 | 0.163299 | 2,425 | 95 | 81 | 25.526316 | 0.758502 | 0.124124 | 0 | 0.034483 | 0 | 0 | 0.325747 | 0.1266 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.051724 | 0 | 0.051724 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
812bc4e483e6787a26d9b7a22c0e31832c78af55 | 5,853 | py | Python | mayan/apps/document_signatures/models.py | wan1869/dushuhu | 934dd178e67140cffc6b9203e793fdf8bbc73a54 | [
"Apache-2.0"
] | null | null | null | mayan/apps/document_signatures/models.py | wan1869/dushuhu | 934dd178e67140cffc6b9203e793fdf8bbc73a54 | [
"Apache-2.0"
] | null | null | null | mayan/apps/document_signatures/models.py | wan1869/dushuhu | 934dd178e67140cffc6b9203e793fdf8bbc73a54 | [
"Apache-2.0"
] | 1 | 2021-04-30T09:44:14.000Z | 2021-04-30T09:44:14.000Z | import logging
import uuid
from django.db import models
from django.urls import reverse
from django.utils.encoding import force_text
from django.utils.translation import ugettext_lazy as _
from model_utils.managers import InheritanceManager
from mayan.apps.django_gpg.exceptions import VerificationError
from mayan.ap... | 34.02907 | 79 | 0.651973 | 655 | 5,853 | 5.607634 | 0.253435 | 0.016335 | 0.032399 | 0.028315 | 0.350667 | 0.280697 | 0.194936 | 0.172066 | 0.142663 | 0.142663 | 0 | 0.002323 | 0.26448 | 5,853 | 171 | 80 | 34.22807 | 0.850871 | 0.07415 | 0 | 0.24 | 0 | 0 | 0.113839 | 0.008371 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088 | false | 0 | 0.104 | 0.048 | 0.4 | 0.048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
812c3f30e6e3ff5facc02e59cfdcff8d05e984ea | 2,226 | py | Python | scripts/sync_reports_config.py | ramezrawas/galaxy-1 | c03748dd49c060a68d07bce56eae33e0ba154414 | [
"CC-BY-3.0"
] | 6 | 2018-11-03T22:43:35.000Z | 2022-02-15T17:51:33.000Z | scripts/sync_reports_config.py | igorhollaender/OBSOLETE_sirv_dashboard | 85aec60b80ef6f561d89398e3da5963d3d0f2aa4 | [
"CC-BY-3.0"
] | 7 | 2016-12-07T22:19:37.000Z | 2019-01-30T15:04:26.000Z | scripts/sync_reports_config.py | igorhollaender/OBSOLETE_sirv_dashboard | 85aec60b80ef6f561d89398e3da5963d3d0f2aa4 | [
"CC-BY-3.0"
] | 10 | 2017-04-10T21:40:22.000Z | 2022-02-21T16:50:10.000Z | from ConfigParser import ConfigParser
from sys import argv
REPLACE_PROPERTIES = ["file_path", "database_connection", "new_file_path"]
MAIN_SECTION = "app:main"
def sync():
# Add or replace the relevant properites from galaxy.ini
# into reports.ini
reports_config_file = "config/reports.ini"
if len(arg... | 35.903226 | 88 | 0.700359 | 271 | 2,226 | 5.439114 | 0.280443 | 0.079376 | 0.046133 | 0.016282 | 0.191316 | 0.111262 | 0.058345 | 0 | 0 | 0 | 0 | 0.002326 | 0.227314 | 2,226 | 61 | 89 | 36.491803 | 0.854651 | 0.13522 | 0 | 0.05 | 0 | 0 | 0.052714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0 | 0.05 | 0.025 | 0.175 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
812e0d88c6e6c1e7a35a42781edb6b394196778c | 3,838 | py | Python | models/utils.py | wyshi/Unsupervised-Structure-Learning | 19b49320b46e5f7d990ab9e5b3054b331b86e59d | [
"Apache-2.0"
] | 34 | 2019-06-25T06:21:03.000Z | 2022-01-24T06:57:40.000Z | models/utils.py | wyshi/Unsupervised-Structure-Learning | 19b49320b46e5f7d990ab9e5b3054b331b86e59d | [
"Apache-2.0"
] | 3 | 2019-07-19T02:33:03.000Z | 2021-11-03T09:06:25.000Z | models/utils.py | wyshi/Unsupervised-Structure-Learning | 19b49320b46e5f7d990ab9e5b3054b331b86e59d | [
"Apache-2.0"
] | 4 | 2019-06-25T06:46:12.000Z | 2021-01-13T06:57:06.000Z | # Original work Copyright (C) 2017 Tiancheng Zhao, Carnegie Mellon University
# Modified work Copyright 2018 Weiyan Shi.
import tensorflow as tf
import numpy as np
from nltk.translate.bleu_score import sentence_bleu
from nltk.translate.bleu_score import SmoothingFunction
def get_bleu_stats(ref, hyps):
scores = [... | 38 | 132 | 0.680823 | 545 | 3,838 | 4.594495 | 0.26789 | 0.059904 | 0.040735 | 0.043131 | 0.461661 | 0.414137 | 0.357428 | 0.357428 | 0.357428 | 0.316693 | 0 | 0.018158 | 0.210787 | 3,838 | 101 | 133 | 38 | 0.808518 | 0.163366 | 0 | 0.145455 | 0 | 0 | 0.011316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163636 | false | 0 | 0.072727 | 0.018182 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
812eae9e0a007577935e4a756403808aa1018593 | 4,927 | py | Python | gluoncv/data/transforms/block.py | Kh4L/gluon-cv | 849411ed56632cd854850b07142087d599f97dcb | [
"Apache-2.0"
] | 5,447 | 2018-04-25T18:02:51.000Z | 2022-03-31T00:59:49.000Z | gluoncv/data/transforms/block.py | Kh4L/gluon-cv | 849411ed56632cd854850b07142087d599f97dcb | [
"Apache-2.0"
] | 1,566 | 2018-04-25T21:14:04.000Z | 2022-03-31T06:42:42.000Z | gluoncv/data/transforms/block.py | Kh4L/gluon-cv | 849411ed56632cd854850b07142087d599f97dcb | [
"Apache-2.0"
] | 1,345 | 2018-04-25T18:44:13.000Z | 2022-03-30T19:32:53.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
# "License"); you may not u... | 36.496296 | 99 | 0.628983 | 698 | 4,927 | 4.363897 | 0.30659 | 0.009192 | 0.024622 | 0.031188 | 0.238017 | 0.205187 | 0.195666 | 0.150361 | 0.122127 | 0.122127 | 0 | 0.017699 | 0.266085 | 4,927 | 134 | 100 | 36.768657 | 0.824668 | 0.470672 | 0 | 0.160714 | 0 | 0 | 0.076766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.089286 | 0 | 0.267857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
812fdf7c80ff79f192233383d15152b1c334cad3 | 3,631 | py | Python | explore.py | lribiere/explore-mit-bih-arrhythmia-db | 44eb2601ed437cb9766ae9cfd3c3553bf108d4f1 | [
"MIT"
] | 3 | 2020-02-26T20:01:11.000Z | 2020-06-24T17:44:11.000Z | explore.py | lribiere/explore-mit-bih-arrhythmia-db | 44eb2601ed437cb9766ae9cfd3c3553bf108d4f1 | [
"MIT"
] | 2 | 2020-07-01T09:38:58.000Z | 2020-07-01T09:40:02.000Z | explore.py | lribiere/explore-mit-bih-arrhythmia-db | 44eb2601ed437cb9766ae9cfd3c3553bf108d4f1 | [
"MIT"
] | null | null | null | import plotly.graph_objects as go
import streamlit as st
import pandas as pd
from utils import *
import glob
import wfdb
import os
ANNOTATIONS_COL_NAME = 'annotations'
'''
# MIT-BIH Arrhythmia DB Exploration
'''
record_ids = [os.path.basename(file)[:-4] for file in glob.glob('data/*.dat')]
if len(record_ids) == 0:
... | 44.82716 | 79 | 0.619664 | 457 | 3,631 | 4.722101 | 0.334792 | 0.029194 | 0.041705 | 0.026413 | 0.078777 | 0.059314 | 0.059314 | 0.029657 | 0.029657 | 0 | 0 | 0.001113 | 0.25778 | 3,631 | 80 | 80 | 45.3875 | 0.799629 | 0.016524 | 0 | 0.030303 | 0 | 0 | 0.255184 | 0.024482 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.106061 | 0 | 0.106061 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
81353ee4f1a632a7e8022d2ce8c431b95559fb7b | 12,262 | py | Python | traitarm/reconstruction/visualize_recon.py | hzi-bifo/Model-T | 197b52f6fe9b73e0411dbfc66f6d2a43081f5697 | [
"Apache-2.0"
] | 1 | 2021-04-07T16:10:55.000Z | 2021-04-07T16:10:55.000Z | traitarm/reconstruction/visualize_recon.py | hzi-bifo/Model-T | 197b52f6fe9b73e0411dbfc66f6d2a43081f5697 | [
"Apache-2.0"
] | null | null | null | traitarm/reconstruction/visualize_recon.py | hzi-bifo/Model-T | 197b52f6fe9b73e0411dbfc66f6d2a43081f5697 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
import ete2
from ete2 import faces, Tree, AttrFace, TreeStyle
import pylab
from matplotlib.colors import hex2color, rgb2hex, hsv_to_rgb, rgb_to_hsv
kelly_colors_hex = [
0xFFB300, # Vivid Yellow
0x803E75, # Strong Purple
0xFF6800, # Vivid Orange
0xA6BDD7, # Very Light Blue
0xC100... | 52.178723 | 485 | 0.621921 | 1,627 | 12,262 | 4.484942 | 0.200983 | 0.021927 | 0.034946 | 0.021927 | 0.317254 | 0.271344 | 0.192682 | 0.175689 | 0.123475 | 0.0899 | 0 | 0.025686 | 0.260235 | 12,262 | 234 | 486 | 52.401709 | 0.778745 | 0.169711 | 0 | 0.171123 | 0 | 0 | 0.110266 | 0.004841 | 0 | 0 | 0.015809 | 0 | 0 | 1 | 0.032086 | false | 0 | 0.032086 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
813a4523ca5ed1d20d9dca5c73420720f380885a | 1,090 | py | Python | examples/dhc/rule_example.py | fruttasecca/hay_checker | 2bbf4e8e90e0abc590dd74080fb6e4f445056354 | [
"MIT"
] | 2 | 2019-05-22T08:24:38.000Z | 2020-12-04T13:36:30.000Z | examples/dhc/rule_example.py | fruttasecca/hay_checker | 2bbf4e8e90e0abc590dd74080fb6e4f445056354 | [
"MIT"
] | null | null | null | examples/dhc/rule_example.py | fruttasecca/hay_checker | 2bbf4e8e90e0abc590dd74080fb6e4f445056354 | [
"MIT"
] | 3 | 2018-09-15T13:40:40.000Z | 2021-06-29T23:31:18.000Z | #!/usr/bin/python3
from pyspark.sql import SparkSession
from haychecker.dhc.metrics import rule
spark = SparkSession.builder.appName("rule_example").getOrCreate()
df = spark.read.format("csv").option("header", "true").load("examples/resources/employees.csv")
df.show()
condition1 = {"column": "salary", "operator": ... | 31.142857 | 95 | 0.678899 | 132 | 1,090 | 5.598485 | 0.439394 | 0.108254 | 0.08931 | 0.121786 | 0.20839 | 0.154263 | 0.154263 | 0.154263 | 0.154263 | 0 | 0 | 0.053775 | 0.112844 | 1,090 | 35 | 96 | 31.142857 | 0.710445 | 0.015596 | 0 | 0.173913 | 0 | 0 | 0.290774 | 0.029823 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
813a8ce209fa6c27b191963bd6e67321e4277566 | 10,579 | py | Python | secure_message/common/utilities.py | uk-gov-mirror/ONSdigital.ras-secure-message | 741eed651eea47dd1a13c7c93b1b1796584cdf2b | [
"MIT"
] | null | null | null | secure_message/common/utilities.py | uk-gov-mirror/ONSdigital.ras-secure-message | 741eed651eea47dd1a13c7c93b1b1796584cdf2b | [
"MIT"
] | null | null | null | secure_message/common/utilities.py | uk-gov-mirror/ONSdigital.ras-secure-message | 741eed651eea47dd1a13c7c93b1b1796584cdf2b | [
"MIT"
] | null | null | null | import collections
import logging
import urllib.parse
from structlog import wrap_logger
from secure_message.constants import MESSAGE_BY_ID_ENDPOINT, MESSAGE_LIST_ENDPOINT, MESSAGE_QUERY_LIMIT
from secure_message.services.service_toggles import party, internal_user_service
logger = wrap_logger(logging.getLogger(__nam... | 43.714876 | 154 | 0.680121 | 1,392 | 10,579 | 4.964799 | 0.181034 | 0.01447 | 0.037621 | 0.017364 | 0.392707 | 0.333237 | 0.270149 | 0.225004 | 0.195341 | 0.190421 | 0 | 0.000865 | 0.23471 | 10,579 | 241 | 155 | 43.896266 | 0.852767 | 0.269874 | 0 | 0.186207 | 0 | 0 | 0.187293 | 0.065255 | 0 | 0 | 0 | 0 | 0 | 1 | 0.062069 | false | 0 | 0.041379 | 0 | 0.165517 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
813b149e48d21390532f6bf57e32e5f1ed05f482 | 8,353 | py | Python | notegame/games/nonogram/core/renderer.py | notechats/notegame | 3d9538b98cb6b0b240956b1271e028b22458fc54 | [
"Apache-2.0"
] | null | null | null | notegame/games/nonogram/core/renderer.py | notechats/notegame | 3d9538b98cb6b0b240956b1271e028b22458fc54 | [
"Apache-2.0"
] | null | null | null | notegame/games/nonogram/core/renderer.py | notechats/notegame | 3d9538b98cb6b0b240956b1271e028b22458fc54 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Defines various renderers for the game of nonogram
"""
from abc import ABC
from sys import stdout
from notetool.tool.log import logger
from six import integer_types, itervalues, text_type
from ..utils.iter import max_safe, pad
from ..utils.other import two_powers
from .common import BOX, ... | 27.386885 | 81 | 0.587932 | 1,016 | 8,353 | 4.641732 | 0.20374 | 0.032443 | 0.020356 | 0.015267 | 0.217133 | 0.147159 | 0.108991 | 0.108991 | 0.092027 | 0.084182 | 0 | 0.001741 | 0.312463 | 8,353 | 304 | 82 | 27.476974 | 0.819432 | 0.177062 | 0 | 0.198864 | 0 | 0 | 0.014127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170455 | false | 0 | 0.039773 | 0.022727 | 0.414773 | 0.017045 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
813c2d5f4577a87860a81df5e212cf9b2d380367 | 1,690 | py | Python | python/fill_na_v2.py | fredmell/CS229Project | b214127485ddc587b9fe3be253937ba8378f9db7 | [
"MIT"
] | null | null | null | python/fill_na_v2.py | fredmell/CS229Project | b214127485ddc587b9fe3be253937ba8378f9db7 | [
"MIT"
] | null | null | null | python/fill_na_v2.py | fredmell/CS229Project | b214127485ddc587b9fe3be253937ba8378f9db7 | [
"MIT"
] | 1 | 2020-06-01T00:36:06.000Z | 2020-06-01T00:36:06.000Z | """
Fill na with most common of the whole column
"""
import numpy as np
import pandas as pd
import time
import matplotlib.pyplot as plt
from datetime import datetime
import re
from collections import Counter
from statistics import median
from tqdm import tqdm
def find_most_common_value(element_list):
for elemen... | 23.472222 | 85 | 0.611243 | 246 | 1,690 | 4.060976 | 0.373984 | 0.03003 | 0.033033 | 0.038038 | 0.032032 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010664 | 0.278698 | 1,690 | 71 | 86 | 23.802817 | 0.80886 | 0.026036 | 0 | 0.14 | 0 | 0 | 0.07326 | 0.043956 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0.02 | 0.18 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
813cbfb2b0206a03eec11ec90ba51dbd9b92d6bd | 3,071 | py | Python | GUI Applications/calc.py | jaiswalIT02/pythonprograms | bc94e52121202b04c3e9112d9786f93ed6707f7a | [
"MIT"
] | null | null | null | GUI Applications/calc.py | jaiswalIT02/pythonprograms | bc94e52121202b04c3e9112d9786f93ed6707f7a | [
"MIT"
] | null | null | null | GUI Applications/calc.py | jaiswalIT02/pythonprograms | bc94e52121202b04c3e9112d9786f93ed6707f7a | [
"MIT"
] | null | null | null | from tkinter import Tk
from tkinter import Entry
from tkinter import Button
from tkinter import StringVar
t=Tk()
t.title("Tarun Jaiswal")
t.geometry("425x300")
t.resizable(0,0)
t.configure(background="black")#back ground color
a=StringVar()
def show(c):
a.set(a.get()+c)
def equal():
x=a.get()
a.set(eva... | 33.021505 | 94 | 0.699772 | 518 | 3,071 | 4.148649 | 0.166023 | 0.047464 | 0.059563 | 0.089344 | 0.482085 | 0.482085 | 0.33504 | 0.33504 | 0.144253 | 0.11866 | 0 | 0.103366 | 0.042331 | 3,071 | 93 | 95 | 33.021505 | 0.627338 | 0.005536 | 0 | 0 | 0 | 0 | 0.098232 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044118 | false | 0 | 0.058824 | 0 | 0.102941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
813cfc21850f486d6ac29f7b86826c89d492a555 | 41,687 | py | Python | core/models.py | uktrade/great-cms | f13fa335ddcb925bc33a5fa096fe73ef7bdd351a | [
"MIT"
] | 10 | 2020-04-30T12:04:35.000Z | 2021-07-21T12:48:55.000Z | core/models.py | uktrade/great-cms | f13fa335ddcb925bc33a5fa096fe73ef7bdd351a | [
"MIT"
] | 1,461 | 2020-01-23T18:20:26.000Z | 2022-03-31T08:05:56.000Z | core/models.py | uktrade/great-cms | f13fa335ddcb925bc33a5fa096fe73ef7bdd351a | [
"MIT"
] | 3 | 2020-04-07T20:11:36.000Z | 2020-10-16T16:22:59.000Z | import hashlib
import mimetypes
from urllib.parse import unquote
from django.conf import settings
from django.core.exceptions import ValidationError
from django.db import models
from django.http import HttpResponseRedirect
from django.template.loader import render_to_string
from django.urls import reverse
from django.... | 32.491816 | 120 | 0.614052 | 4,393 | 41,687 | 5.638061 | 0.163214 | 0.009448 | 0.012435 | 0.018411 | 0.338622 | 0.29736 | 0.255895 | 0.221495 | 0.203327 | 0.185925 | 0 | 0.006034 | 0.288411 | 41,687 | 1,282 | 121 | 32.517161 | 0.828917 | 0.114808 | 0 | 0.31961 | 0 | 0.002167 | 0.147883 | 0.028865 | 0 | 0 | 0 | 0.00156 | 0 | 1 | 0.048754 | false | 0 | 0.045504 | 0.019502 | 0.335861 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
813ec18cfeb4f9f63d67da715da440d160d1cd07 | 9,860 | py | Python | CV/Effective Transformer-based Solution for RSNA Intracranial Hemorrhage Detection/easymia/transforms/transforms.py | dumpmemory/Research | 30fd70ff331b3d9aeede0b71e7a691ed6c2b87b3 | [
"Apache-2.0"
] | null | null | null | CV/Effective Transformer-based Solution for RSNA Intracranial Hemorrhage Detection/easymia/transforms/transforms.py | dumpmemory/Research | 30fd70ff331b3d9aeede0b71e7a691ed6c2b87b3 | [
"Apache-2.0"
] | null | null | null | CV/Effective Transformer-based Solution for RSNA Intracranial Hemorrhage Detection/easymia/transforms/transforms.py | dumpmemory/Research | 30fd70ff331b3d9aeede0b71e7a691ed6c2b87b3 | [
"Apache-2.0"
] | null | null | null | # -*-coding utf-8 -*-
##########################################################################
#
# Copyright (c) 2022 Baidu.com, Inc. All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of th... | 34.840989 | 136 | 0.596349 | 1,237 | 9,860 | 4.669361 | 0.236055 | 0.027008 | 0.020776 | 0.030125 | 0.272161 | 0.221087 | 0.177458 | 0.177458 | 0.141447 | 0.128289 | 0 | 0.010519 | 0.296146 | 9,860 | 283 | 137 | 34.840989 | 0.821758 | 0.471805 | 0 | 0.317308 | 0 | 0 | 0.038943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134615 | false | 0 | 0.086538 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
813efba40d450227c03f83890923f36f0af07beb | 1,370 | py | Python | tests/ui/terms/test_views.py | galterlibrary/InvenioRDM-at-NU | 5aff6ac7c428c9a61bdf221627bfc05f2280d1a3 | [
"MIT"
] | 6 | 2019-09-02T00:01:50.000Z | 2021-11-04T08:23:40.000Z | tests/ui/terms/test_views.py | galterlibrary/InvenioRDM-at-NU | 5aff6ac7c428c9a61bdf221627bfc05f2280d1a3 | [
"MIT"
] | 72 | 2019-09-04T18:52:35.000Z | 2020-07-21T19:58:15.000Z | tests/ui/terms/test_views.py | galterlibrary/InvenioRDM-at-NU | 5aff6ac7c428c9a61bdf221627bfc05f2280d1a3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# This file is part of menRva.
# Copyright (C) 2018-present NU,FSM,GHSL.
#
# menRva is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""Test terms views.py"""
from cd2h_repo_project.modules.terms.views import ... | 28.541667 | 77 | 0.642336 | 159 | 1,370 | 5.27044 | 0.415094 | 0.162291 | 0.101432 | 0.125298 | 0.702864 | 0.372315 | 0.372315 | 0.300716 | 0.300716 | 0.300716 | 0 | 0.005753 | 0.238686 | 1,370 | 47 | 78 | 29.148936 | 0.797699 | 0.181022 | 0 | 0.137931 | 0 | 0 | 0.175676 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 1 | 0.068966 | false | 0 | 0.034483 | 0 | 0.103448 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
81411abc782bf9b1f6f3f22e5119bf12fc73f345 | 5,777 | py | Python | moe/bandit/ucb/ucb_interface.py | dstoeckel/MOE | 5b5a6a2c6c3cf47320126f7f5894e2a83e347f5c | [
"Apache-2.0"
] | 966 | 2015-01-10T05:27:30.000Z | 2022-03-26T21:04:36.000Z | moe/bandit/ucb/ucb_interface.py | dstoeckel/MOE | 5b5a6a2c6c3cf47320126f7f5894e2a83e347f5c | [
"Apache-2.0"
] | 46 | 2015-01-16T22:33:08.000Z | 2019-09-04T16:33:27.000Z | moe/bandit/ucb/ucb_interface.py | dstoeckel/MOE | 5b5a6a2c6c3cf47320126f7f5894e2a83e347f5c | [
"Apache-2.0"
] | 143 | 2015-01-07T03:57:19.000Z | 2022-02-28T01:10:45.000Z | # -*- coding: utf-8 -*-
"""Classes (Python) to compute the Bandit UCB (Upper Confidence Bound) arm allocation and choosing the arm to pull next.
See :mod:`moe.bandit.bandit_interface` for further details on bandit.
"""
import copy
from abc import abstractmethod
from moe.bandit.bandit_interface import BanditInterfac... | 41.561151 | 171 | 0.701229 | 797 | 5,777 | 4.912171 | 0.224592 | 0.073052 | 0.016858 | 0.018391 | 0.396424 | 0.34636 | 0.278416 | 0.223755 | 0.223755 | 0.203831 | 0 | 0.009577 | 0.22278 | 5,777 | 138 | 172 | 41.862319 | 0.862361 | 0.613467 | 0 | 0.125 | 0 | 0 | 0.036545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.025 | 0.1 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8141278e8aec7ffc16f0909af9f0862c9b9fc0df | 296 | py | Python | Hedge/Shell.py | RonaldoAPSD/Hedge | 2a1550ea38a0384f39ed3541c8a91f9ca57f5a64 | [
"Apache-2.0"
] | 2 | 2020-08-16T01:42:32.000Z | 2020-08-28T21:10:03.000Z | Hedge/Shell.py | RonaldoAPSD/Hedge | 2a1550ea38a0384f39ed3541c8a91f9ca57f5a64 | [
"Apache-2.0"
] | null | null | null | Hedge/Shell.py | RonaldoAPSD/Hedge | 2a1550ea38a0384f39ed3541c8a91f9ca57f5a64 | [
"Apache-2.0"
] | null | null | null | import Hedge
while True:
text = input('Hedge > ')
if text.strip() == "":
continue
result, error = Hedge.run('<stdin>', text)
if (error):
print(error.asString())
elif result:
if len(result.elements) == 1:
print(repr(result.elements[0]))
else:
print(repr(result)) | 19.733333 | 44 | 0.60473 | 38 | 296 | 4.710526 | 0.578947 | 0.156425 | 0.167598 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008658 | 0.219595 | 296 | 15 | 45 | 19.733333 | 0.766234 | 0 | 0 | 0 | 0 | 0 | 0.053004 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.230769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
81433f45286c6ca7869898f63194549b86792d2f | 14,420 | py | Python | yt/frontends/enzo/io.py | Xarthisius/yt | 321643c3abff64a6f132d98d0747f3558f7552a3 | [
"BSD-3-Clause-Clear"
] | 1 | 2021-05-20T13:03:57.000Z | 2021-05-20T13:03:57.000Z | yt/frontends/enzo/io.py | Xarthisius/yt | 321643c3abff64a6f132d98d0747f3558f7552a3 | [
"BSD-3-Clause-Clear"
] | 31 | 2017-04-19T21:07:18.000Z | 2017-04-20T01:08:43.000Z | yt/frontends/enzo/io.py | Xarthisius/yt | 321643c3abff64a6f132d98d0747f3558f7552a3 | [
"BSD-3-Clause-Clear"
] | 1 | 2021-04-21T07:01:51.000Z | 2021-04-21T07:01:51.000Z | import numpy as np
from yt.geometry.selection_routines import GridSelector
from yt.utilities.io_handler import BaseIOHandler
from yt.utilities.logger import ytLogger as mylog
from yt.utilities.on_demand_imports import _h5py as h5py
_convert_mass = ("particle_mass", "mass")
_particle_position_names = {}
class IOHan... | 38.867925 | 85 | 0.499792 | 1,690 | 14,420 | 4.138462 | 0.179882 | 0.006434 | 0.027881 | 0.034029 | 0.582928 | 0.536889 | 0.505147 | 0.458393 | 0.420646 | 0.409637 | 0 | 0.013341 | 0.402219 | 14,420 | 370 | 86 | 38.972973 | 0.798028 | 0.091678 | 0 | 0.592233 | 0 | 0 | 0.047903 | 0 | 0 | 0 | 0 | 0 | 0.003236 | 1 | 0.05178 | false | 0 | 0.019417 | 0.006472 | 0.158576 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
81434230700195b62a622200418ac9737e7bcf37 | 1,275 | py | Python | cidr_enum.py | arisada/cidr_enum | 1908f20ac15a83738fc1ff74ff17a7280bec769f | [
"BSD-2-Clause"
] | null | null | null | cidr_enum.py | arisada/cidr_enum | 1908f20ac15a83738fc1ff74ff17a7280bec769f | [
"BSD-2-Clause"
] | null | null | null | cidr_enum.py | arisada/cidr_enum | 1908f20ac15a83738fc1ff74ff17a7280bec769f | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
"""
cidr_enum.py is a very simple tool to help enumerate IP ranges when being used with other tools
"""
import argparse
import netaddr
def enum_ranges(ranges, do_sort):
cidrs=[]
for r in ranges:
try:
cidrs.append(netaddr.IPNetwork(r))
except Exception as e:
print("Error:", e)
re... | 25 | 95 | 0.677647 | 193 | 1,275 | 4.373057 | 0.419689 | 0.047393 | 0.060427 | 0.042654 | 0.194313 | 0.14218 | 0.090047 | 0 | 0 | 0 | 0 | 0.000959 | 0.181961 | 1,275 | 50 | 96 | 25.5 | 0.808245 | 0.101176 | 0 | 0.051282 | 0 | 0 | 0.194371 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.051282 | 0 | 0.153846 | 0.102564 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
81434e0f75802811d789efae93fbec2c949725b8 | 7,469 | py | Python | configs/k400-fixmatch-tg-alignment-videos-ptv-simclr/8gpu/r3d_r18_8x8x1_45e_k400_rgb_offlinetg_1percent_align0123_1clip_no_contrast_precisebn_ptv.py | lambert-x/video_semisup | 8ff44343bb34485f8ad08d50ca4d8de22e122c1d | [
"Apache-2.0"
] | null | null | null | configs/k400-fixmatch-tg-alignment-videos-ptv-simclr/8gpu/r3d_r18_8x8x1_45e_k400_rgb_offlinetg_1percent_align0123_1clip_no_contrast_precisebn_ptv.py | lambert-x/video_semisup | 8ff44343bb34485f8ad08d50ca4d8de22e122c1d | [
"Apache-2.0"
] | null | null | null | configs/k400-fixmatch-tg-alignment-videos-ptv-simclr/8gpu/r3d_r18_8x8x1_45e_k400_rgb_offlinetg_1percent_align0123_1clip_no_contrast_precisebn_ptv.py | lambert-x/video_semisup | 8ff44343bb34485f8ad08d50ca4d8de22e122c1d | [
"Apache-2.0"
] | null | null | null | # model settings
model = dict(
type='Semi_AppSup_TempSup_SimCLR_Crossclip_PTV_Recognizer3D',
backbone=dict(
type='ResNet3d',
depth=18,
pretrained=None,
pretrained2d=False,
norm_eval=False,
conv_cfg=dict(type='Conv3d'),
norm_cfg=dict(type='SyncBN', requires... | 33.95 | 126 | 0.664078 | 985 | 7,469 | 4.75533 | 0.267005 | 0.111016 | 0.033305 | 0.037575 | 0.476729 | 0.447054 | 0.442357 | 0.422716 | 0.396029 | 0.395816 | 0 | 0.035447 | 0.195475 | 7,469 | 219 | 127 | 34.105023 | 0.744051 | 0.058375 | 0 | 0.379487 | 0 | 0 | 0.184409 | 0.062847 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d48ba98f343e96c0da8c5db735d6d98bd7a3e3d3 | 5,370 | py | Python | modules/statusbar.py | themilkman/GitGutter | 355b4480e7e1507fe1f9ae1ad9eca9649400a76c | [
"MIT"
] | null | null | null | modules/statusbar.py | themilkman/GitGutter | 355b4480e7e1507fe1f9ae1ad9eca9649400a76c | [
"MIT"
] | null | null | null | modules/statusbar.py | themilkman/GitGutter | 355b4480e7e1507fe1f9ae1ad9eca9649400a76c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import sublime
from . import blame
from . import templates
class SimpleStatusBarTemplate(object):
"""A simple template class with the same interface as jinja2's one."""
# a list of variables used by this template
variables = frozenset([
'repo', 'branch', 'compare', 'inser... | 33.354037 | 78 | 0.570577 | 613 | 5,370 | 4.931485 | 0.278956 | 0.035726 | 0.034403 | 0.015878 | 0.046312 | 0.017863 | 0 | 0 | 0 | 0 | 0 | 0.005385 | 0.343017 | 5,370 | 160 | 79 | 33.5625 | 0.850907 | 0.390503 | 0 | 0.026667 | 0 | 0 | 0.129835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.04 | 0 | 0.226667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d48e8d3a34a96d0df0efeeb8e07e14864978dc32 | 1,115 | py | Python | test.py | LeonHodgesAustin/video_stream_processor | 8014705edc37599716eb1320d46c99136fe3e262 | [
"BSD-3-Clause"
] | null | null | null | test.py | LeonHodgesAustin/video_stream_processor | 8014705edc37599716eb1320d46c99136fe3e262 | [
"BSD-3-Clause"
] | null | null | null | test.py | LeonHodgesAustin/video_stream_processor | 8014705edc37599716eb1320d46c99136fe3e262 | [
"BSD-3-Clause"
] | null | null | null | # import logging
# import hercules.lib.util.hercules_logging as l
# from hercules.lib.util import sso as sso
import opencv2 as cv2
import urllib
import numpy as np
# log = l.setup_logging(__name__)
def main(args=None):
# username, passowrd = sso.get_login_credentials("WATCHER")
# Open a sample video available... | 27.875 | 102 | 0.6287 | 149 | 1,115 | 4.57047 | 0.597315 | 0.032305 | 0.044053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02214 | 0.270852 | 1,115 | 39 | 103 | 28.589744 | 0.815498 | 0.426009 | 0 | 0.105263 | 0 | 0 | 0.172524 | 0 | 0 | 0 | 0.00639 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.157895 | 0 | 0.210526 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d48f61239e116e08f567623063b6adca1886ef91 | 3,792 | py | Python | kobe-trading-bot/app.py | LeonardoM011/kobe-trading-bot | 83a84ee0fb8dab3d9ae174be91e96de6d5f2d823 | [
"MIT"
] | null | null | null | kobe-trading-bot/app.py | LeonardoM011/kobe-trading-bot | 83a84ee0fb8dab3d9ae174be91e96de6d5f2d823 | [
"MIT"
] | null | null | null | kobe-trading-bot/app.py | LeonardoM011/kobe-trading-bot | 83a84ee0fb8dab3d9ae174be91e96de6d5f2d823 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Crypto trading bot using binance api
# Author: LeonardoM011<Leonardo.leo.201@gmail.com>
# Created on 2021-02-05 21:56
# Set constants here:
DELTA_TIME = 300 # How long can we check for setting up new trade (in seconds)
# ----------------------
# Imports:
import os
import sys... | 36.461538 | 219 | 0.620781 | 455 | 3,792 | 4.989011 | 0.364835 | 0.051542 | 0.03348 | 0.042291 | 0.281938 | 0.247577 | 0.212335 | 0.112775 | 0.112775 | 0.112775 | 0 | 0.028561 | 0.26134 | 3,792 | 104 | 220 | 36.461538 | 0.781864 | 0.364979 | 0 | 0.039216 | 0 | 0 | 0.132864 | 0.009679 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.137255 | 0 | 0.215686 | 0.137255 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d4910ca755a73b263041c7cd3c681f6108d61901 | 13,061 | py | Python | imported_files/plotting_edh01.py | SoumyaShreeram/Locating_AGN_in_DM_halos | 1cfbee69b2c000faee4ecb199d65c3235afbed42 | [
"MIT"
] | null | null | null | imported_files/plotting_edh01.py | SoumyaShreeram/Locating_AGN_in_DM_halos | 1cfbee69b2c000faee4ecb199d65c3235afbed42 | [
"MIT"
] | null | null | null | imported_files/plotting_edh01.py | SoumyaShreeram/Locating_AGN_in_DM_halos | 1cfbee69b2c000faee4ecb199d65c3235afbed42 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Plotting.py for notebook 01_Exploring_DM_Halos
This python file contains all the functions used for plotting graphs and maps in the 1st notebook (.ipynb) of the repository: 01. Exploring parameters in DM halos and sub-halos
Script written by: Soumya Shreeram
Project supervised by Johan Com... | 41.996785 | 193 | 0.674298 | 2,050 | 13,061 | 4.105366 | 0.180488 | 0.018061 | 0.013308 | 0.01616 | 0.25903 | 0.204016 | 0.154468 | 0.144368 | 0.137001 | 0.097671 | 0 | 0.024287 | 0.189802 | 13,061 | 311 | 194 | 41.996785 | 0.771026 | 0.256259 | 0 | 0.130719 | 0 | 0.013072 | 0.128219 | 0.022677 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065359 | false | 0 | 0.124183 | 0 | 0.254902 | 0.039216 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d49130f40117c9ae1a6661a583616d08186beb75 | 2,239 | py | Python | asv_bench/benchmarks/omnisci/io.py | Rubtsowa/modin | 6550939753c76e896ef2bfd65bb9468d6ad161d7 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | asv_bench/benchmarks/omnisci/io.py | Rubtsowa/modin | 6550939753c76e896ef2bfd65bb9468d6ad161d7 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | asv_bench/benchmarks/omnisci/io.py | Rubtsowa/modin | 6550939753c76e896ef2bfd65bb9468d6ad161d7 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Licensed to Modin Development Team under one or more contributor license agreements.
# See the NOTICE file distributed with this work for additional information regarding
# copyright ownership. The Modin Development Team licenses this file to you under the
# Apache License, Version 2.0 (the "License"); you may not u... | 33.924242 | 87 | 0.663243 | 298 | 2,239 | 4.828859 | 0.442953 | 0.041696 | 0.020848 | 0.022238 | 0.029187 | 0.029187 | 0 | 0 | 0 | 0 | 0 | 0.00538 | 0.252791 | 2,239 | 65 | 88 | 34.446154 | 0.854752 | 0.389013 | 0 | 0.04878 | 0 | 0 | 0.069733 | 0.055638 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0 | 0.121951 | 0 | 0.317073 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d4913a27e63bc4d452b162e06717cf43b3cf28c7 | 7,730 | py | Python | benchmarks/rotation/rotated_cifar.py | ypeng22/ProgLearn | 671ff6a03c156bab3eedbd9e112705eeabd59da7 | [
"MIT"
] | 1 | 2021-02-02T03:18:46.000Z | 2021-02-02T03:18:46.000Z | benchmarks/rotation/rotated_cifar.py | ypeng22/ProgLearn | 671ff6a03c156bab3eedbd9e112705eeabd59da7 | [
"MIT"
] | null | null | null | benchmarks/rotation/rotated_cifar.py | ypeng22/ProgLearn | 671ff6a03c156bab3eedbd9e112705eeabd59da7 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import random
import pickle
from skimage.transform import rotate
from scipy import ndimage
from skimage.util import img_as_ubyte
from joblib import Parallel, delayed
from sklearn.ensemble.forest import _generate_unsampled_indices
from sklearn.ensemble.forest import _generate_sample_indic... | 40.684211 | 139 | 0.625356 | 1,018 | 7,730 | 4.540275 | 0.220039 | 0.034617 | 0.055387 | 0.051493 | 0.3373 | 0.295976 | 0.217222 | 0.217222 | 0.201212 | 0.187581 | 0 | 0.043404 | 0.245925 | 7,730 | 189 | 140 | 40.899471 | 0.749528 | 0.012678 | 0 | 0.077465 | 0 | 0 | 0.028823 | 0.003027 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028169 | false | 0 | 0.169014 | 0 | 0.211268 | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d4925b374376cf8c3d1b5d0d5ddbaf90cc28fafd | 3,763 | py | Python | sklearn_pandas/transformers/monitor.py | toddbenanzer/sklearn_pandas | 36e24c55ef4829aa261963201c346869097d4931 | [
"MIT"
] | null | null | null | sklearn_pandas/transformers/monitor.py | toddbenanzer/sklearn_pandas | 36e24c55ef4829aa261963201c346869097d4931 | [
"MIT"
] | null | null | null | sklearn_pandas/transformers/monitor.py | toddbenanzer/sklearn_pandas | 36e24c55ef4829aa261963201c346869097d4931 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
from sklearn.base import BaseEstimator, TransformerMixin, clone
from sklearn_pandas.util import validate_dataframe
class MonitorMixin(object):
def print_message(self, message):
if self.logfile:
with open(self.logfile, "a") as fout:
fout.w... | 38.010101 | 140 | 0.543981 | 426 | 3,763 | 4.680751 | 0.237089 | 0.022066 | 0.048144 | 0.038114 | 0.451354 | 0.399198 | 0.399198 | 0.399198 | 0.361083 | 0.311936 | 0 | 0.007714 | 0.345469 | 3,763 | 98 | 141 | 38.397959 | 0.801868 | 0 | 0 | 0.469136 | 0 | 0 | 0.118022 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08642 | false | 0 | 0.049383 | 0 | 0.222222 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d4928bbc94c4225d834897ba151f5d1146c73aa7 | 10,842 | py | Python | Packs/ProofpointThreatResponse/Integrations/ProofpointThreatResponse/ProofpointThreatResponse_test.py | cbrake1/content | 5b031129f98935c492056675eeee0fefcacbd87b | [
"MIT"
] | 1 | 2020-11-25T00:42:27.000Z | 2020-11-25T00:42:27.000Z | Packs/ProofpointThreatResponse/Integrations/ProofpointThreatResponse/ProofpointThreatResponse_test.py | cbrake1/content | 5b031129f98935c492056675eeee0fefcacbd87b | [
"MIT"
] | 22 | 2022-03-23T10:39:16.000Z | 2022-03-31T11:31:37.000Z | Packs/ProofpointThreatResponse/Integrations/ProofpointThreatResponse/ProofpointThreatResponse_test.py | cbrake1/content | 5b031129f98935c492056675eeee0fefcacbd87b | [
"MIT"
] | null | null | null | import pytest
from CommonServerPython import *
from ProofpointThreatResponse import create_incident_field_context, get_emails_context, pass_sources_list_filter, \
pass_abuse_disposition_filter, filter_incidents, prepare_ingest_alert_request_body, \
get_incidents_batch_by_time_request, get_new_incidents, get_tim... | 32.558559 | 128 | 0.603394 | 1,206 | 10,842 | 5.1733 | 0.21393 | 0.020516 | 0.015387 | 0.012181 | 0.363039 | 0.223754 | 0.200032 | 0.184966 | 0.184966 | 0.172464 | 0 | 0.025471 | 0.264896 | 10,842 | 332 | 129 | 32.656627 | 0.75734 | 0.141764 | 0 | 0.157258 | 0 | 0.004032 | 0.280762 | 0.027955 | 0 | 0 | 0 | 0 | 0.060484 | 1 | 0.044355 | false | 0.024194 | 0.012097 | 0 | 0.060484 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d492fd9d00437e877a4501964cd431bb0546c438 | 3,522 | py | Python | macholib/macho_methname.py | l1haoyuan/macholib | 48c59841e2ca5aa308eab67f72faed384a2c0723 | [
"MIT"
] | null | null | null | macholib/macho_methname.py | l1haoyuan/macholib | 48c59841e2ca5aa308eab67f72faed384a2c0723 | [
"MIT"
] | null | null | null | macholib/macho_methname.py | l1haoyuan/macholib | 48c59841e2ca5aa308eab67f72faed384a2c0723 | [
"MIT"
] | null | null | null | import sys
import os
import json
from enum import Enum
from .mach_o import LC_SYMTAB
from macholib import MachO
from macholib import mach_o
from shutil import copy2
from shutil import SameFileError
class ReplaceType(Enum):
objc_methname = 1
symbol_table = 2
def replace_in_bytes(method_bytes, name_dict, type... | 30.102564 | 111 | 0.635434 | 487 | 3,522 | 4.367556 | 0.232033 | 0.056888 | 0.030089 | 0.03103 | 0.236483 | 0.139163 | 0.06582 | 0.030089 | 0 | 0 | 0 | 0.010798 | 0.263771 | 3,522 | 116 | 112 | 30.362069 | 0.809487 | 0.014196 | 0 | 0.089888 | 0 | 0 | 0.08044 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05618 | false | 0.044944 | 0.101124 | 0 | 0.213483 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d493cf85a9cb37a46e9d38eab9f5e238cbe228b0 | 1,515 | py | Python | forms/snippets/delete_watch.py | soheilv/python-samples | 4443431261dbcd88408dcc89d5702eeb1ac18ffd | [
"Apache-2.0"
] | 255 | 2020-10-16T16:27:54.000Z | 2022-03-31T14:26:29.000Z | forms/snippets/delete_watch.py | soheilv/python-samples | 4443431261dbcd88408dcc89d5702eeb1ac18ffd | [
"Apache-2.0"
] | 58 | 2020-10-16T14:24:27.000Z | 2022-03-19T13:27:27.000Z | forms/snippets/delete_watch.py | soheilv/python-samples | 4443431261dbcd88408dcc89d5702eeb1ac18ffd | [
"Apache-2.0"
] | 316 | 2020-10-16T17:06:00.000Z | 2022-03-30T19:18:31.000Z | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 36.95122 | 118 | 0.770297 | 222 | 1,515 | 5.121622 | 0.554054 | 0.05277 | 0.022867 | 0.028144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009105 | 0.130033 | 1,515 | 40 | 119 | 37.875 | 0.853566 | 0.427723 | 0 | 0 | 0 | 0.055556 | 0.263529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d49496c9213106a0918889d0e3a6aa3992ff1641 | 1,829 | py | Python | data_structures/disjoint_set/disjoint_set.py | egagraha/python-algorithm | 07a6a745b4ebddc93ab7c10b205c75b2427ac1fb | [
"MIT"
] | null | null | null | data_structures/disjoint_set/disjoint_set.py | egagraha/python-algorithm | 07a6a745b4ebddc93ab7c10b205c75b2427ac1fb | [
"MIT"
] | null | null | null | data_structures/disjoint_set/disjoint_set.py | egagraha/python-algorithm | 07a6a745b4ebddc93ab7c10b205c75b2427ac1fb | [
"MIT"
] | null | null | null | """
Disjoint set.
Reference: https://en.wikipedia.org/wiki/Disjoint-set_data_structure
"""
class Node:
def __init__(self, data: int) -> None:
self.data = data
self.rank: int
self.parent: Node
def make_set(x: Node) -> None:
"""
Make x as a set.
"""
# rank is the di... | 21.517647 | 73 | 0.556042 | 274 | 1,829 | 3.562044 | 0.288321 | 0.057377 | 0.057377 | 0.020492 | 0.127049 | 0.061475 | 0.061475 | 0 | 0 | 0 | 0 | 0.020717 | 0.313833 | 1,829 | 84 | 74 | 21.77381 | 0.756972 | 0.201203 | 0 | 0.045455 | 0 | 0 | 0.026451 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.136364 | false | 0 | 0 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d494b4ecc12674b178766fec7fe530877b75b17d | 1,391 | py | Python | cw_EPR.py | tkeller12/spin_physics | 271f3081bc8ca87b159ed3e3494dbd0ffdea8fa5 | [
"MIT"
] | null | null | null | cw_EPR.py | tkeller12/spin_physics | 271f3081bc8ca87b159ed3e3494dbd0ffdea8fa5 | [
"MIT"
] | null | null | null | cw_EPR.py | tkeller12/spin_physics | 271f3081bc8ca87b159ed3e3494dbd0ffdea8fa5 | [
"MIT"
] | null | null | null | # Timothy Keller
# S = 1/2, I = 1/2
# Spin 1/2 electron coupled to spin 1/2 nuclei
import numpy as np
from scipy.linalg import expm
from matplotlib.pylab import *
from matplotlib import cm
sigma_x = 0.5*np.r_[[[0, 1],[1, 0]]]
sigma_y = 0.5*np.r_[[[0,-1j],[1j, 0]]]
sigma_z = 0.5*np.r_[[[1, 0],[0, -1]]]
Identity = np.e... | 21.075758 | 113 | 0.62473 | 282 | 1,391 | 3.010638 | 0.287234 | 0.04947 | 0.029446 | 0.03298 | 0.108363 | 0.094229 | 0.094229 | 0.094229 | 0.094229 | 0.094229 | 0 | 0.094228 | 0.153127 | 1,391 | 65 | 114 | 21.4 | 0.626486 | 0.183321 | 0 | 0 | 0 | 0 | 0.06921 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 0.347826 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d494b73023a37a848160341332c0ded7a2a24518 | 1,787 | py | Python | V2RaycSpider0825/MiddleKey/VMes_IO.py | TOMJERRY23333/V2RayCloudSpider | 0647db8c7b67e4393d1f65dadc08d7e16c1dc324 | [
"MIT"
] | 1 | 2020-09-16T12:59:32.000Z | 2020-09-16T12:59:32.000Z | V2RaycSpider0825/MiddleKey/VMes_IO.py | TOMJERRY23333/V2RayCloudSpider | 0647db8c7b67e4393d1f65dadc08d7e16c1dc324 | [
"MIT"
] | null | null | null | V2RaycSpider0825/MiddleKey/VMes_IO.py | TOMJERRY23333/V2RayCloudSpider | 0647db8c7b67e4393d1f65dadc08d7e16c1dc324 | [
"MIT"
] | null | null | null | from spiderNest.preIntro import *
path_ = os.path.dirname(os.path.dirname(__file__)) + '/dataBase/log_information.csv'
def save_login_info(VMess, class_):
"""
VMess入库
class_: ssr or v2ray
"""
now = str(datetime.now()).split('.')[0]
with open(path_, 'a', encoding='utf-8', newline='') as f:
... | 28.365079 | 84 | 0.525462 | 237 | 1,787 | 3.776371 | 0.383966 | 0.01676 | 0.053631 | 0.042458 | 0.246927 | 0.246927 | 0.230168 | 0.230168 | 0.230168 | 0.18771 | 0 | 0.031941 | 0.316732 | 1,787 | 62 | 85 | 28.822581 | 0.700246 | 0.084499 | 0 | 0.157895 | 0 | 0 | 0.052665 | 0.018182 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.052632 | 0 | 0.236842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d494cc4fdc66704176b1bdb14e2b8bf08f6d120c | 29,585 | py | Python | paddlespeech/s2t/frontend/audio.py | AK391/PaddleSpeech | 8cdbe3a6c0fe447e54cfbcfd82139d2869f5fc49 | [
"Apache-2.0"
] | null | null | null | paddlespeech/s2t/frontend/audio.py | AK391/PaddleSpeech | 8cdbe3a6c0fe447e54cfbcfd82139d2869f5fc49 | [
"Apache-2.0"
] | null | null | null | paddlespeech/s2t/frontend/audio.py | AK391/PaddleSpeech | 8cdbe3a6c0fe447e54cfbcfd82139d2869f5fc49 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2021 PaddlePaddle 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 appli... | 41.204735 | 84 | 0.598378 | 3,605 | 29,585 | 4.772538 | 0.142857 | 0.046498 | 0.018715 | 0.010578 | 0.285324 | 0.225167 | 0.206684 | 0.169427 | 0.165359 | 0.128858 | 0 | 0.011959 | 0.324489 | 29,585 | 717 | 85 | 41.262204 | 0.848937 | 0.417779 | 0 | 0.167192 | 0 | 0 | 0.105382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104101 | false | 0 | 0.047319 | 0 | 0.239748 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d49613fe0b2e81e10d722fc25f0c3fd9aa1b0a51 | 4,119 | py | Python | tornado_debugger/debug.py | bhch/tornado-debugger | 4adeead7a45506eda34fc8d1e91dd32acc8cfe4e | [
"BSD-3-Clause"
] | 1 | 2022-03-21T11:52:30.000Z | 2022-03-21T11:52:30.000Z | tornado_debugger/debug.py | bhch/tornado-debugger | 4adeead7a45506eda34fc8d1e91dd32acc8cfe4e | [
"BSD-3-Clause"
] | null | null | null | tornado_debugger/debug.py | bhch/tornado-debugger | 4adeead7a45506eda34fc8d1e91dd32acc8cfe4e | [
"BSD-3-Clause"
] | null | null | null | import os.path
import re
import sys
import traceback
from pprint import pformat
import tornado
from tornado import template
SENSITIVE_SETTINGS_RE = re.compile(
'api|key|pass|salt|secret|signature|token',
flags=re.IGNORECASE
)
class ExceptionReporter:
def __init__(self, exc_info, handler):
self.... | 31.442748 | 77 | 0.571255 | 472 | 4,119 | 4.70339 | 0.300847 | 0.072072 | 0.02027 | 0.022523 | 0.077477 | 0.036036 | 0.028829 | 0.028829 | 0 | 0 | 0 | 0.00625 | 0.339646 | 4,119 | 130 | 78 | 31.684615 | 0.809926 | 0.047342 | 0 | 0.132075 | 0 | 0 | 0.063808 | 0.010209 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066038 | false | 0.018868 | 0.066038 | 0 | 0.226415 | 0.028302 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d496568fcdd0e4278b5c17076444af1d96c25b39 | 2,426 | py | Python | base/pylib/seq_iter.py | jpolitz/lambda-py-paper | 746ef63fc1123714b4adaf78119028afbea7bd76 | [
"Apache-2.0"
] | 1 | 2017-12-10T00:05:54.000Z | 2017-12-10T00:05:54.000Z | base/pylib/seq_iter.py | jpolitz/lambda-py-paper | 746ef63fc1123714b4adaf78119028afbea7bd76 | [
"Apache-2.0"
] | null | null | null | base/pylib/seq_iter.py | jpolitz/lambda-py-paper | 746ef63fc1123714b4adaf78119028afbea7bd76 | [
"Apache-2.0"
] | null | null | null | class SeqIter:
def __init__(self,l):
self.l = l
self.i = 0
self.stop = False
def __len__(self):
return len(self.l)
def __list__(self):
l = []
while True:
try:
l.append(self.__next__())
except StopIteration:
... | 22.462963 | 58 | 0.490107 | 251 | 2,426 | 4.378486 | 0.243028 | 0.036397 | 0.020018 | 0.021838 | 0.125569 | 0.094631 | 0.094631 | 0.094631 | 0.094631 | 0.094631 | 0 | 0.00563 | 0.414262 | 2,426 | 107 | 59 | 22.672897 | 0.767769 | 0 | 0 | 0.366667 | 0 | 0 | 0.049052 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0.022222 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d496c50445b160bee65444aedffd5152e26bcfa5 | 1,542 | py | Python | caseworker/open_general_licences/enums.py | code-review-doctor/lite-frontend-1 | cb3b885bb389ea33ef003c916bea7b03a36d86bb | [
"MIT"
] | null | null | null | caseworker/open_general_licences/enums.py | code-review-doctor/lite-frontend-1 | cb3b885bb389ea33ef003c916bea7b03a36d86bb | [
"MIT"
] | null | null | null | caseworker/open_general_licences/enums.py | code-review-doctor/lite-frontend-1 | cb3b885bb389ea33ef003c916bea7b03a36d86bb | [
"MIT"
] | null | null | null | from lite_content.lite_internal_frontend.open_general_licences import (
OGEL_DESCRIPTION,
OGTCL_DESCRIPTION,
OGTL_DESCRIPTION,
)
from lite_forms.components import Option
class OpenGeneralExportLicences:
class OpenGeneralLicence:
def __init__(self, id, name, description, acronym):
s... | 29.09434 | 117 | 0.647211 | 162 | 1,542 | 5.919753 | 0.314815 | 0.114703 | 0.05318 | 0.075078 | 0.256517 | 0.140772 | 0 | 0 | 0 | 0 | 0 | 0.085182 | 0.269131 | 1,542 | 52 | 118 | 29.653846 | 0.76575 | 0 | 0 | 0.23913 | 0 | 0 | 0.156291 | 0.070039 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.043478 | 0.065217 | 0.304348 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d49731577779af0d944350934f9656734de31c66 | 319 | py | Python | sort.py | EYH0602/FP_Workshop | 866b180b411c1ef439e1a2d039c6d6333e91cd39 | [
"MIT"
] | 1 | 2021-10-21T02:15:03.000Z | 2021-10-21T02:15:03.000Z | sort.py | EYH0602/FP_Workshop | 866b180b411c1ef439e1a2d039c6d6333e91cd39 | [
"MIT"
] | null | null | null | sort.py | EYH0602/FP_Workshop | 866b180b411c1ef439e1a2d039c6d6333e91cd39 | [
"MIT"
] | null | null | null | def quicksort(xs):
if len(xs) == 0:
return []
pivot = xs[0]
xs = xs[1:]
left = [x for x in xs if x <= pivot]
right = [x for x in xs if x > pivot]
res = quicksort(left)
res.append(pivot)
res += quicksort(right)
return res
xs = [1, 3, 2, 4, 5, 2]
sorted_xs = quicksort(xs)
| 17.722222 | 40 | 0.526646 | 54 | 319 | 3.092593 | 0.388889 | 0.071856 | 0.05988 | 0.083832 | 0.203593 | 0.203593 | 0.203593 | 0.203593 | 0 | 0 | 0 | 0.04186 | 0.326019 | 319 | 17 | 41 | 18.764706 | 0.734884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d49737aed7a2d03e7911f282302b8766a0010d5f | 9,372 | py | Python | bddtests/steps/bdd_test_util.py | TarantulaTechnology/fabric5 | 6da971177ab7d74f1e1cfa6f7fc73e75768e5686 | [
"Apache-2.0"
] | 4 | 2018-01-02T04:26:16.000Z | 2018-10-25T08:51:06.000Z | bddtests/steps/bdd_test_util.py | TarantulaTechnology/fabric5 | 6da971177ab7d74f1e1cfa6f7fc73e75768e5686 | [
"Apache-2.0"
] | null | null | null | bddtests/steps/bdd_test_util.py | TarantulaTechnology/fabric5 | 6da971177ab7d74f1e1cfa6f7fc73e75768e5686 | [
"Apache-2.0"
] | 9 | 2016-11-17T07:40:04.000Z | 2020-03-16T16:11:39.000Z |
# Copyright IBM Corp. 2016 All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 40.747826 | 189 | 0.714789 | 1,061 | 9,372 | 6.267672 | 0.282752 | 0.021654 | 0.014436 | 0.007669 | 0.153233 | 0.139699 | 0.12015 | 0.106917 | 0.093684 | 0.082256 | 0 | 0.006844 | 0.204866 | 9,372 | 229 | 190 | 40.925764 | 0.885534 | 0.26131 | 0 | 0.197183 | 0 | 0 | 0.088046 | 0 | 0 | 0 | 0 | 0 | 0.049296 | 1 | 0.105634 | false | 0.021127 | 0.049296 | 0.014085 | 0.246479 | 0.021127 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d4973b8aa4822ac46365e7bcf3331ae6bf592f03 | 13,868 | py | Python | 1.0.0/hp/dict.py | cefect/SOFDA0 | 62c5566d0f388a5fd76a070ceb5ee3e38b0d7463 | [
"MIT"
] | null | null | null | 1.0.0/hp/dict.py | cefect/SOFDA0 | 62c5566d0f388a5fd76a070ceb5ee3e38b0d7463 | [
"MIT"
] | null | null | null | 1.0.0/hp/dict.py | cefect/SOFDA0 | 62c5566d0f388a5fd76a070ceb5ee3e38b0d7463 | [
"MIT"
] | null | null | null | '''
Created on Mar 6, 2018
@author: cef
hp functions for workign with dictionaries
'''
import logging, os, sys, math, copy, inspect
from collections import OrderedDict
from weakref import WeakValueDictionary as wdict
import numpy as np
import hp.basic
mod_logger = logging.getLogger(__name__) #... | 36.687831 | 113 | 0.391477 | 1,319 | 13,868 | 3.992419 | 0.189538 | 0.019939 | 0.025636 | 0.010824 | 0.322446 | 0.288454 | 0.281048 | 0.27687 | 0.264717 | 0.231675 | 0 | 0.003969 | 0.327805 | 13,868 | 377 | 114 | 36.785146 | 0.560931 | 0.455509 | 0 | 0.178808 | 0 | 0 | 0.074901 | 0 | 0 | 0 | 0 | 0.002653 | 0 | 1 | 0.072848 | false | 0.006623 | 0.039735 | 0 | 0.205298 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d49bc7fba6d65f4ec2d4a29ecf9e4f75e3ad24d1 | 10,163 | py | Python | automatoes/authorize.py | candango/automatoes | fbfd01cfaa2c36e23a7251e333ef3fa86ef4bff9 | [
"Apache-2.0"
] | 13 | 2019-10-08T14:57:19.000Z | 2022-01-12T10:01:30.000Z | automatoes/authorize.py | piraz/automatoes | fc6a20c317a8ac863bfb054c9541e310e0431e5f | [
"Apache-2.0"
] | 125 | 2019-10-08T15:04:17.000Z | 2022-03-29T19:27:12.000Z | automatoes/authorize.py | candango/automatoes | fbfd01cfaa2c36e23a7251e333ef3fa86ef4bff9 | [
"Apache-2.0"
] | 8 | 2019-10-14T15:18:57.000Z | 2021-04-21T10:41:08.000Z | #!/usr/bin/env python
#
# Copyright 2019-2020 Flavio Garcia
# Copyright 2016-2017 Veeti Paananen under MIT License
#
# 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... | 39.239382 | 79 | 0.546394 | 1,069 | 10,163 | 5.100094 | 0.237605 | 0.050073 | 0.028247 | 0.019259 | 0.320249 | 0.23661 | 0.162876 | 0.13573 | 0.105282 | 0.040719 | 0 | 0.005447 | 0.3497 | 10,163 | 258 | 80 | 39.391473 | 0.819489 | 0.084129 | 0 | 0.325243 | 0 | 0 | 0.206833 | 0 | 0 | 0 | 0 | 0 | 0.004854 | 1 | 0.024272 | false | 0 | 0.043689 | 0 | 0.072816 | 0.218447 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d49c1e0bb83e7c39fdece7542b9e2c9d25d03288 | 5,832 | py | Python | rllib/agents/dqn/simple_q_torch_policy.py | jamesliu/ray | 11ab412db1fa3603a3006e8ed414e80dd1f11c0c | [
"Apache-2.0"
] | 3 | 2020-12-12T05:10:44.000Z | 2021-04-12T21:52:47.000Z | rllib/agents/dqn/simple_q_torch_policy.py | jamesliu/ray | 11ab412db1fa3603a3006e8ed414e80dd1f11c0c | [
"Apache-2.0"
] | 227 | 2021-10-01T08:00:01.000Z | 2021-12-28T16:47:26.000Z | rllib/agents/dqn/simple_q_torch_policy.py | gramhagen/ray | c18caa4db36d466718bdbcb2229aa0b2dc03da1f | [
"Apache-2.0"
] | 1 | 2020-12-02T06:26:20.000Z | 2020-12-02T06:26:20.000Z | """PyTorch policy class used for Simple Q-Learning"""
import logging
from typing import Dict, Tuple
import gym
import ray
from ray.rllib.agents.dqn.simple_q_tf_policy import (
build_q_models, compute_q_values, get_distribution_inputs_and_class)
from ray.rllib.models.modelv2 import ModelV2
from ray.rllib.models.to... | 35.779141 | 79 | 0.710905 | 782 | 5,832 | 5.049872 | 0.272379 | 0.02431 | 0.033426 | 0.028868 | 0.186123 | 0.104837 | 0.056217 | 0.04153 | 0.04153 | 0.04153 | 0 | 0.004113 | 0.20799 | 5,832 | 162 | 80 | 36 | 0.850834 | 0.281036 | 0 | 0.10989 | 0 | 0 | 0.012509 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087912 | false | 0 | 0.175824 | 0.021978 | 0.318681 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d49f62cf4c67498959f387338aa3e5ee4e7a2d59 | 382 | py | Python | blender/arm/logicnode/native/LN_detect_mobile_browser.py | niacdoial/armory | 3f9b633fbf772017c576a3f77695a6c28d9956e1 | [
"Zlib"
] | null | null | null | blender/arm/logicnode/native/LN_detect_mobile_browser.py | niacdoial/armory | 3f9b633fbf772017c576a3f77695a6c28d9956e1 | [
"Zlib"
] | null | null | null | blender/arm/logicnode/native/LN_detect_mobile_browser.py | niacdoial/armory | 3f9b633fbf772017c576a3f77695a6c28d9956e1 | [
"Zlib"
] | null | null | null | from arm.logicnode.arm_nodes import *
class DetectMobileBrowserNode(ArmLogicTreeNode):
"""Determines the mobile browser or not (works only for web browsers)."""
bl_idname = 'LNDetectMobileBrowserNode'
bl_label = 'Detect Mobile Browser'
arm_version = 1
def init(self, context):
super(DetectMobileBrowserNode, sel... | 34.727273 | 74 | 0.777487 | 45 | 382 | 6.488889 | 0.755556 | 0.089041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002967 | 0.117801 | 382 | 11 | 75 | 34.727273 | 0.863501 | 0.175393 | 0 | 0 | 0 | 0 | 0.212903 | 0.080645 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
d4a074467479872c4d6bb6745cf590f7c740594e | 29,959 | py | Python | corehq/apps/dump_reload/tests/test_sql_dump_load.py | andyasne/commcare-hq | c59a24e57bdd4d2536493f9ecdcc9906f4ae1b88 | [
"BSD-3-Clause"
] | 471 | 2015-01-10T02:55:01.000Z | 2022-03-29T18:07:18.000Z | corehq/apps/dump_reload/tests/test_sql_dump_load.py | andyasne/commcare-hq | c59a24e57bdd4d2536493f9ecdcc9906f4ae1b88 | [
"BSD-3-Clause"
] | 14,354 | 2015-01-01T07:38:23.000Z | 2022-03-31T20:55:14.000Z | corehq/apps/dump_reload/tests/test_sql_dump_load.py | andyasne/commcare-hq | c59a24e57bdd4d2536493f9ecdcc9906f4ae1b88 | [
"BSD-3-Clause"
] | 175 | 2015-01-06T07:16:47.000Z | 2022-03-29T13:27:01.000Z | import inspect
import json
import uuid
from collections import Counter
from datetime import datetime
from io import StringIO
import mock
from django.contrib.admin.utils import NestedObjects
from django.db import transaction, IntegrityError
from django.db.models.signals import post_delete, post_save
from django.test im... | 38.310742 | 124 | 0.647118 | 3,249 | 29,959 | 5.689751 | 0.158203 | 0.035703 | 0.041653 | 0.038948 | 0.406199 | 0.329547 | 0.251325 | 0.21665 | 0.169209 | 0.132803 | 0 | 0.008958 | 0.258487 | 29,959 | 781 | 125 | 38.359795 | 0.823183 | 0.013685 | 0 | 0.228178 | 0 | 0 | 0.055768 | 0.012909 | 0 | 0 | 0 | 0 | 0.062787 | 1 | 0.064319 | false | 0.007657 | 0.087289 | 0.004594 | 0.171516 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d4a08e8d4977972540a2be8547db892cc6d2f3ab | 4,561 | py | Python | tests/keras/test_activations.py | the-moliver/keras | 4fa7e5d454dd4f3f33f1d756a2a8659f2e789141 | [
"MIT"
] | 150 | 2017-01-15T15:32:23.000Z | 2021-11-23T15:07:55.000Z | tests/keras/test_activations.py | wdw110/keras | 4fa7e5d454dd4f3f33f1d756a2a8659f2e789141 | [
"MIT"
] | 40 | 2017-01-15T15:41:05.000Z | 2020-11-16T13:15:50.000Z | tests/keras/test_activations.py | wdw110/keras | 4fa7e5d454dd4f3f33f1d756a2a8659f2e789141 | [
"MIT"
] | 38 | 2017-01-15T22:04:06.000Z | 2019-11-01T22:35:35.000Z | import pytest
import numpy as np
from numpy.testing import assert_allclose
from keras import backend as K
from keras import activations
def get_standard_values():
'''
These are just a set of floats used for testing the activation
functions, and are useful in multiple tests.
'''
return np.array([[... | 26.062857 | 79 | 0.635825 | 648 | 4,561 | 4.320988 | 0.203704 | 0.110714 | 0.060714 | 0.035357 | 0.466786 | 0.438929 | 0.429643 | 0.429643 | 0.429643 | 0.429643 | 0 | 0.022197 | 0.229555 | 4,561 | 174 | 80 | 26.212644 | 0.774616 | 0.170796 | 0 | 0.357143 | 0 | 0 | 0.003041 | 0 | 0 | 0 | 0 | 0 | 0.112245 | 1 | 0.163265 | false | 0 | 0.05102 | 0.020408 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d4a19a6793c7b81c31ff51744f9dee445aa534f8 | 1,685 | py | Python | tests/test_cli/test_generate/test_generate.py | lrahmani/agents-aea | 9bd1d51530fc21bf41b5adea031cda19a94b048b | [
"Apache-2.0"
] | null | null | null | tests/test_cli/test_generate/test_generate.py | lrahmani/agents-aea | 9bd1d51530fc21bf41b5adea031cda19a94b048b | [
"Apache-2.0"
] | null | null | null | tests/test_cli/test_generate/test_generate.py | lrahmani/agents-aea | 9bd1d51530fc21bf41b5adea031cda19a94b048b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2018-2019 Fetch.AI Limited
#
# 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 ... | 37.444444 | 80 | 0.665282 | 212 | 1,685 | 5.165094 | 0.54717 | 0.054795 | 0.063927 | 0.041096 | 0.110502 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00904 | 0.146588 | 1,685 | 44 | 81 | 38.295455 | 0.752434 | 0.550148 | 0 | 0 | 0 | 0 | 0.188966 | 0.13931 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.142857 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d4a21ef2eb21f79e91184165f8bb407caaf1dcb1 | 17,126 | py | Python | sphinx/ext/napoleon/__init__.py | PeerHerholz/smobsc | db34d2bb96b80579bd4a3f4c198a6b524c5a134a | [
"BSD-2-Clause"
] | 3 | 2019-06-11T09:42:08.000Z | 2020-03-10T15:57:09.000Z | sphinx/ext/napoleon/__init__.py | PeerHerholz/smobsc | db34d2bb96b80579bd4a3f4c198a6b524c5a134a | [
"BSD-2-Clause"
] | 12 | 2019-01-09T15:43:57.000Z | 2020-01-21T10:46:30.000Z | sphinx/ext/napoleon/__init__.py | PeerHerholz/smobsc | db34d2bb96b80579bd4a3f4c198a6b524c5a134a | [
"BSD-2-Clause"
] | 10 | 2019-02-04T11:49:35.000Z | 2020-03-21T13:32:20.000Z | """
sphinx.ext.napoleon
~~~~~~~~~~~~~~~~~~~
Support for NumPy and Google style docstrings.
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from sphinx import __display_version__ as __version__
from sphinx.application import Sphinx
from ... | 36.515991 | 88 | 0.608782 | 2,005 | 17,126 | 5.017955 | 0.17606 | 0.027333 | 0.017891 | 0.020276 | 0.453434 | 0.391711 | 0.321539 | 0.274426 | 0.242719 | 0.189643 | 0 | 0.00275 | 0.299428 | 17,126 | 468 | 89 | 36.594017 | 0.835806 | 0.648663 | 0 | 0.144231 | 0 | 0 | 0.137715 | 0.06087 | 0 | 0 | 0 | 0.008547 | 0 | 1 | 0.048077 | false | 0.009615 | 0.105769 | 0 | 0.211538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d4a24c39597d568e3ab31f3730cb741839a01aff | 2,390 | py | Python | plugins/similarity/rdkit/tanimoto/lbvs-entry.py | skodapetr/viset | 87863ed6cde63392b2d503ceda53bb2cea367d69 | [
"MIT"
] | 1 | 2018-12-28T19:36:04.000Z | 2018-12-28T19:36:04.000Z | plugins/similarity/rdkit/tanimoto/lbvs-entry.py | skodapetr/viset | 87863ed6cde63392b2d503ceda53bb2cea367d69 | [
"MIT"
] | 14 | 2017-11-15T17:45:58.000Z | 2018-12-10T17:52:23.000Z | plugins/similarity/rdkit/tanimoto/lbvs-entry.py | skodapetr/viset | 87863ed6cde63392b2d503ceda53bb2cea367d69 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from rdkit import DataStructs
import plugin_api
__license__ = "X11"
class LbvsEntry(plugin_api.PluginInterface):
"""
Compute Tanimoto similarity.
"""
def __init__(self):
self.stream = None
self.counter = 0
self.first_... | 29.506173 | 77 | 0.599582 | 264 | 2,390 | 5.155303 | 0.310606 | 0.044085 | 0.041146 | 0.027921 | 0.127112 | 0.088905 | 0.048494 | 0 | 0 | 0 | 0 | 0.006494 | 0.291213 | 2,390 | 80 | 78 | 29.875 | 0.79693 | 0.043515 | 0 | 0.118644 | 0 | 0 | 0.048501 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.186441 | false | 0 | 0.050847 | 0.033898 | 0.322034 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d4a3f90c44e54f8024d6bee8196a0b29bb2aed61 | 2,849 | py | Python | mall_spider/spiders/actions/proxy_service.py | 524243642/taobao_spider | 9cdaed1c7a67fc1f35ee2af2e18313cedf3b1e5e | [
"Unlicense"
] | 12 | 2019-06-06T12:23:08.000Z | 2021-06-15T17:50:07.000Z | mall_spider/spiders/actions/proxy_service.py | 524243642/mall_spider | 9cdaed1c7a67fc1f35ee2af2e18313cedf3b1e5e | [
"Unlicense"
] | 3 | 2021-03-31T19:02:47.000Z | 2022-02-11T03:43:15.000Z | mall_spider/spiders/actions/proxy_service.py | 524243642/taobao_spider | 9cdaed1c7a67fc1f35ee2af2e18313cedf3b1e5e | [
"Unlicense"
] | 5 | 2019-09-17T03:55:56.000Z | 2020-12-18T03:34:03.000Z | # coding: utf-8
import time
from config.config_loader import global_config
from mall_spider.spiders.actions.context import Context
from mall_spider.spiders.actions.direct_proxy_action import DirectProxyAction
__proxy_service = None
class ProxyService(object):
proxies_set = set()
proxies_list = ['https://' +... | 33.127907 | 208 | 0.601264 | 350 | 2,849 | 4.637143 | 0.271429 | 0.060998 | 0.055453 | 0.056685 | 0.319778 | 0.216882 | 0.136784 | 0.136784 | 0.136784 | 0.136784 | 0 | 0.008236 | 0.275535 | 2,849 | 85 | 209 | 33.517647 | 0.778101 | 0.004563 | 0 | 0.161765 | 0 | 0.014706 | 0.10868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.132353 | false | 0.029412 | 0.058824 | 0.014706 | 0.382353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d4a46b8215ad96def234df7df255d9ac5c89bb08 | 965 | py | Python | app/weather_tests.py | joedanz/flask-weather | fe35aa359da6f5d7f942d97837403e153b5c5ede | [
"Apache-2.0"
] | 1 | 2017-08-25T18:55:11.000Z | 2017-08-25T18:55:11.000Z | app/weather_tests.py | joedanz/flask-weather | fe35aa359da6f5d7f942d97837403e153b5c5ede | [
"Apache-2.0"
] | null | null | null | app/weather_tests.py | joedanz/flask-weather | fe35aa359da6f5d7f942d97837403e153b5c5ede | [
"Apache-2.0"
] | null | null | null | import os
import weather
import datetime
import unittest
import tempfile
class WeatherTestCase(unittest.TestCase):
def setUp(self):
self.db_fd, weather.app.config['DATABASE'] = tempfile.mkstemp()
weather.app.config['TESTING'] = True
self.app = weather.app.test_client()
weather.init... | 26.805556 | 71 | 0.631088 | 126 | 965 | 4.68254 | 0.396825 | 0.067797 | 0.081356 | 0.061017 | 0.291525 | 0.254237 | 0.254237 | 0.254237 | 0.132203 | 0 | 0 | 0.02578 | 0.236269 | 965 | 35 | 72 | 27.571429 | 0.774763 | 0.084974 | 0 | 0.08 | 0 | 0 | 0.093426 | 0 | 0 | 0 | 0 | 0 | 0.12 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.44 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d4a58432909af220904a476edcdbf9bcba8bc8c1 | 984 | py | Python | modules/sensors/Activator.py | memristor/mep2 | bc5cddacba3d740f791f3454b8cb51bda83ce202 | [
"MIT"
] | 5 | 2018-11-27T15:15:00.000Z | 2022-02-10T21:44:13.000Z | modules/sensors/Activator.py | memristor/mep2 | bc5cddacba3d740f791f3454b8cb51bda83ce202 | [
"MIT"
] | 2 | 2018-10-20T15:48:40.000Z | 2018-11-20T05:11:33.000Z | modules/sensors/Activator.py | memristor/mep2 | bc5cddacba3d740f791f3454b8cb51bda83ce202 | [
"MIT"
] | 1 | 2020-02-07T12:44:47.000Z | 2020-02-07T12:44:47.000Z | import asyncio
class Activator:
def __init__(self, name, packet_stream=None):
self.ps = None
self.name = name
self.future = None
self.data = 0
self.state = ''
if packet_stream:
self.set_packet_stream(packet_stream)
@_core.module_cmd
def wait_activator(self):
pass
@_core.module_cmd
def check... | 24 | 66 | 0.705285 | 150 | 984 | 4.393333 | 0.266667 | 0.091047 | 0.059181 | 0.086495 | 0.151745 | 0.060698 | 0 | 0 | 0 | 0 | 0 | 0.009828 | 0.172764 | 984 | 40 | 67 | 24.6 | 0.799754 | 0 | 0 | 0.147059 | 0 | 0 | 0.131098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0.029412 | 0.029412 | 0 | 0.235294 | 0.088235 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d4a5dfe986967f5b7fa8e3f7e5dcaa1ed0f98f18 | 7,779 | py | Python | examples/retrieval/evaluation/sparse/evaluate_deepct.py | ArthurCamara/beir | 2739990b719f2d4814d88473cf9965d92d4f4c18 | [
"Apache-2.0"
] | 24 | 2022-03-20T18:48:52.000Z | 2022-03-31T08:28:42.000Z | examples/retrieval/evaluation/sparse/evaluate_deepct.py | ArthurCamara/beir | 2739990b719f2d4814d88473cf9965d92d4f4c18 | [
"Apache-2.0"
] | 9 | 2022-03-19T14:50:30.000Z | 2022-03-30T17:31:18.000Z | examples/retrieval/evaluation/sparse/evaluate_deepct.py | ArthurCamara/beir | 2739990b719f2d4814d88473cf9965d92d4f4c18 | [
"Apache-2.0"
] | 3 | 2022-03-25T15:45:14.000Z | 2022-03-25T17:51:23.000Z | """
This example shows how to evaluate DeepCT (using Anserini) in BEIR.
For more details on DeepCT, refer here: https://arxiv.org/abs/1910.10687
The original DeepCT repository is not modularised and only works with Tensorflow 1.x (1.15).
We modified the DeepCT repository to work with Tensorflow latest (2.x).
We do not... | 56.781022 | 189 | 0.655354 | 1,032 | 7,779 | 4.825581 | 0.333333 | 0.03253 | 0.042169 | 0.018474 | 0.186948 | 0.145984 | 0.109036 | 0.087349 | 0.071285 | 0.071285 | 0 | 0.018059 | 0.202725 | 7,779 | 136 | 190 | 57.198529 | 0.784908 | 0.421391 | 0 | 0.032787 | 0 | 0.04918 | 0.150146 | 0.005345 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.163934 | 0 | 0.163934 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d4a684609779826c5d7b8e2a668f0007ffd391fe | 3,018 | py | Python | Examples/Space Truss - Nodal Load.py | AmirHosseinNamadchi/PyNite | 8cc1fe3262e1efe029c6860394d2436601272e33 | [
"MIT"
] | 2 | 2022-02-26T23:11:19.000Z | 2022-02-26T23:11:21.000Z | Examples/Space Truss - Nodal Load.py | AmirHosseinNamadchi/PyNite | 8cc1fe3262e1efe029c6860394d2436601272e33 | [
"MIT"
] | null | null | null | Examples/Space Truss - Nodal Load.py | AmirHosseinNamadchi/PyNite | 8cc1fe3262e1efe029c6860394d2436601272e33 | [
"MIT"
] | 2 | 2020-08-27T15:36:42.000Z | 2020-10-02T00:29:22.000Z | # Engineering Mechanics: Statics, 4th Edition
# Bedford and Fowler
# Problem 6.64
# Units for this model are meters and kilonewtons
# Import 'FEModel3D' and 'Visualization' from 'PyNite'
from PyNite import FEModel3D
from PyNite import Visualization
# Create a new model
truss = FEModel3D()
# Define the nodes
truss.Ad... | 44.382353 | 142 | 0.674619 | 460 | 3,018 | 4.421739 | 0.308696 | 0.147493 | 0.147493 | 0.070796 | 0.366273 | 0.366273 | 0.292035 | 0.292035 | 0.235988 | 0.175025 | 0 | 0.060852 | 0.183234 | 3,018 | 67 | 143 | 45.044776 | 0.7643 | 0.292247 | 0 | 0.128205 | 0 | 0 | 0.142655 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.051282 | 0 | 0.051282 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d4a6c416bd8a2d26fc2585b919cf37090ef128d8 | 322 | py | Python | Using Yagmail to make sending emails easier.py | CodeMaster7000/Sending-Emails-in-Python | 2ec44f6520a6b98508c8adf372a191f2577fbf98 | [
"MIT"
] | 1 | 2021-12-23T15:42:01.000Z | 2021-12-23T15:42:01.000Z | Using Yagmail to make sending emails easier.py | CodeMaster7000/Sending-Emails-in-Python | 2ec44f6520a6b98508c8adf372a191f2577fbf98 | [
"MIT"
] | null | null | null | Using Yagmail to make sending emails easier.py | CodeMaster7000/Sending-Emails-in-Python | 2ec44f6520a6b98508c8adf372a191f2577fbf98 | [
"MIT"
] | null | null | null | import yagmail
receiver = "your@gmail.com" #Receiver's gmail address
body = "Hello there from Yagmail"
filename = "document.pdf"
yag = yagmail.SMTP("my@gmail.com")#Your gmail address
yag.send(
to=receiver,
subject="Yagmail test (attachment included",
contents=body,
attachments=filename,
)... | 23 | 54 | 0.689441 | 40 | 322 | 5.55 | 0.65 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195652 | 322 | 13 | 55 | 24.769231 | 0.857143 | 0.130435 | 0 | 0 | 0 | 0 | 0.358491 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d4a6cec9904df1ff0e2230e88f7f8978eeccd5f8 | 5,064 | py | Python | pycad/py_src/transformations.py | markendr/esys-escript.github.io | 0023eab09cd71f830ab098cb3a468e6139191e8d | [
"Apache-2.0"
] | null | null | null | pycad/py_src/transformations.py | markendr/esys-escript.github.io | 0023eab09cd71f830ab098cb3a468e6139191e8d | [
"Apache-2.0"
] | null | null | null | pycad/py_src/transformations.py | markendr/esys-escript.github.io | 0023eab09cd71f830ab098cb3a468e6139191e8d | [
"Apache-2.0"
] | null | null | null |
##############################################################################
#
# Copyright (c) 2003-2020 by The University of Queensland
# http://www.uq.edu.au
#
# Primary Business: Queensland, Australia
# Licensed under the Apache License, version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
# Development unt... | 29.788235 | 124 | 0.610585 | 664 | 5,064 | 4.388554 | 0.256024 | 0.037749 | 0.030199 | 0.02059 | 0.24674 | 0.226836 | 0.19046 | 0.18394 | 0.135896 | 0.11256 | 0 | 0.024063 | 0.220379 | 5,064 | 169 | 125 | 29.964497 | 0.714032 | 0.21643 | 0 | 0.173333 | 0 | 0 | 0.109346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146667 | false | 0.013333 | 0.04 | 0 | 0.346667 | 0.013333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d4a6efea0d126676c34a41838cc4fe1e41395646 | 1,116 | py | Python | example/complex_scalar_star_solver.py | ThomasHelfer/BosonStar | 5442a6e6171122a3ba1d6b079e6483ab72aa7338 | [
"MIT"
] | 2 | 2021-04-07T13:20:11.000Z | 2021-04-07T17:11:25.000Z | example/complex_scalar_star_solver.py | ThomasHelfer/BosonStar | 5442a6e6171122a3ba1d6b079e6483ab72aa7338 | [
"MIT"
] | 1 | 2021-06-14T15:40:25.000Z | 2021-06-14T15:40:25.000Z | example/complex_scalar_star_solver.py | ThomasHelfer/BosonStar | 5442a6e6171122a3ba1d6b079e6483ab72aa7338 | [
"MIT"
] | null | null | null | from bosonstar.ComplexBosonStar import Complex_Boson_Star
# =====================
# All imporntnat definitions
# =====================
# Physics defintions
phi0 = 0.40 # centeral phi
D = 5.0 # Dimension (total not only spacial)
Lambda = -0.2 # Cosmological constant
# Solver definitions
Rst... | 24.26087 | 78 | 0.580645 | 125 | 1,116 | 5.016 | 0.688 | 0.038278 | 0.051037 | 0.044657 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034847 | 0.151434 | 1,116 | 45 | 79 | 24.8 | 0.627244 | 0.464158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d4a71c335f605cc7723cb3705f2699bfe1e1693b | 796 | py | Python | setup.py | ouyhlan/fastNLP | cac13311e28c1e8e3c866d50656173650eb5c7a1 | [
"Apache-2.0"
] | 2,693 | 2018-03-08T03:09:20.000Z | 2022-03-30T07:38:42.000Z | setup.py | ouyhlan/fastNLP | cac13311e28c1e8e3c866d50656173650eb5c7a1 | [
"Apache-2.0"
] | 291 | 2018-07-21T07:43:17.000Z | 2022-03-07T13:06:58.000Z | setup.py | ouyhlan/fastNLP | cac13311e28c1e8e3c866d50656173650eb5c7a1 | [
"Apache-2.0"
] | 514 | 2018-03-09T06:54:25.000Z | 2022-03-26T20:11:44.000Z | #!/usr/bin/env python
# coding=utf-8
from setuptools import setup, find_packages
with open('README.md', encoding='utf-8') as f:
readme = f.read()
with open('LICENSE', encoding='utf-8') as f:
license = f.read()
with open('requirements.txt', encoding='utf-8') as f:
reqs = f.read()
pkgs = [p for p in find_... | 26.533333 | 90 | 0.675879 | 114 | 796 | 4.649123 | 0.561404 | 0.030189 | 0.067925 | 0.079245 | 0.084906 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0.163317 | 796 | 29 | 91 | 27.448276 | 0.782282 | 0.041457 | 0 | 0 | 0 | 0 | 0.291721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d4a7f2382cdb35d8940e5dd478b2dac3b5b10bd0 | 752 | py | Python | Module1/file3.py | modulo16/PfNE | 9706afc42c44dcfd1490e5ac074156f41e5515a8 | [
"Unlicense"
] | null | null | null | Module1/file3.py | modulo16/PfNE | 9706afc42c44dcfd1490e5ac074156f41e5515a8 | [
"Unlicense"
] | null | null | null | Module1/file3.py | modulo16/PfNE | 9706afc42c44dcfd1490e5ac074156f41e5515a8 | [
"Unlicense"
] | null | null | null | from __future__ import print_function, unicode_literals
#Ensures Unicode is used for all strings.
my_str = 'whatever'
#Shows the String type, which should be unicode
type(my_str)
#declare string:
ip_addr = '192.168.1.1'
#check it with boolean:(True)
ip_addr == '192.168.1.1'
#(false)
ip_addr == '10.1.1.1'
#is this su... | 18.8 | 76 | 0.731383 | 137 | 752 | 3.868613 | 0.525547 | 0.113208 | 0.045283 | 0.045283 | 0.05283 | 0.05283 | 0 | 0 | 0 | 0 | 0 | 0.05873 | 0.162234 | 752 | 39 | 77 | 19.282051 | 0.78254 | 0.543883 | 0 | 0 | 0 | 0 | 0.203647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d4acef5631789f4b877955db52847e8e212a8725 | 10,411 | py | Python | pp_io_plugins/pp_kbddriver_plus.py | arcticmatter/pipresents-beep | e5945f929b47249f19b0cb3433a138e874b592db | [
"CNRI-Python",
"CECILL-B"
] | null | null | null | pp_io_plugins/pp_kbddriver_plus.py | arcticmatter/pipresents-beep | e5945f929b47249f19b0cb3433a138e874b592db | [
"CNRI-Python",
"CECILL-B"
] | null | null | null | pp_io_plugins/pp_kbddriver_plus.py | arcticmatter/pipresents-beep | e5945f929b47249f19b0cb3433a138e874b592db | [
"CNRI-Python",
"CECILL-B"
] | null | null | null | #enhanced keyboard driver
import copy
import os
import configparser
from pp_displaymanager import DisplayManager
class pp_kbddriver_plus(object):
# control list items
NAME=0 # symbolic name for input and output
DIRECTION = 1 # in/out
MATCH = 2 # for input the charac... | 41.979839 | 134 | 0.589761 | 1,220 | 10,411 | 4.853279 | 0.201639 | 0.117041 | 0.159601 | 0.057423 | 0.312954 | 0.250633 | 0.200135 | 0.187975 | 0.174126 | 0.152846 | 0 | 0.000555 | 0.307463 | 10,411 | 247 | 135 | 42.149798 | 0.820666 | 0.266449 | 0 | 0.240876 | 0 | 0 | 0.080913 | 0.008844 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087591 | false | 0.014599 | 0.036496 | 0.014599 | 0.277372 | 0.029197 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d4b0acbd3ae55e6638c516e22ca4f69932aebab2 | 27,844 | py | Python | project2/marriage.py | filipefborba/MarriageNSFG | d550301fbb9d80ddabf391a6168d2c8636113ed9 | [
"MIT"
] | null | null | null | project2/marriage.py | filipefborba/MarriageNSFG | d550301fbb9d80ddabf391a6168d2c8636113ed9 | [
"MIT"
] | null | null | null | project2/marriage.py | filipefborba/MarriageNSFG | d550301fbb9d80ddabf391a6168d2c8636113ed9 | [
"MIT"
] | null | null | null | """This file contains code for use with "Think Stats",
by Allen B. Downey, available from greenteapress.com
Copyright 2014 Allen B. Downey
License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html
"""
from __future__ import print_function, division
import bisect
import numpy as np
import pandas as pd
import scipy.sta... | 29.064718 | 79 | 0.599196 | 3,438 | 27,844 | 4.801629 | 0.173066 | 0.00836 | 0.029077 | 0.038769 | 0.454022 | 0.43064 | 0.393991 | 0.371699 | 0.326084 | 0.292767 | 0 | 0.074426 | 0.258799 | 27,844 | 957 | 80 | 29.095089 | 0.725458 | 0.211895 | 0 | 0.378987 | 0 | 0 | 0.131929 | 0.021021 | 0 | 0 | 0 | 0 | 0.045028 | 1 | 0.073171 | false | 0.003752 | 0.02439 | 0 | 0.138837 | 0.016886 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d4b13f250b052bca7bffe7a5880d063d7c169a7e | 3,955 | py | Python | xfel/merging/application/reflection_table_utils.py | ErwinP/cctbx_project | 58f9fb5ed38c7391510e892f0ca9520467b692c1 | [
"BSD-3-Clause-LBNL"
] | null | null | null | xfel/merging/application/reflection_table_utils.py | ErwinP/cctbx_project | 58f9fb5ed38c7391510e892f0ca9520467b692c1 | [
"BSD-3-Clause-LBNL"
] | null | null | null | xfel/merging/application/reflection_table_utils.py | ErwinP/cctbx_project | 58f9fb5ed38c7391510e892f0ca9520467b692c1 | [
"BSD-3-Clause-LBNL"
] | null | null | null | from __future__ import absolute_import, division, print_function
from six.moves import range
from dials.array_family import flex
import math
class reflection_table_utils(object):
@staticmethod
def get_next_hkl_reflection_table(reflections):
'''Generate asu hkl slices from an asu hkl-sorted reflection table'''... | 40.357143 | 147 | 0.683439 | 501 | 3,955 | 5.189621 | 0.269461 | 0.075 | 0.032308 | 0.025385 | 0.246154 | 0.228462 | 0.173077 | 0.173077 | 0.120769 | 0.120769 | 0 | 0.007477 | 0.22225 | 3,955 | 97 | 148 | 40.773196 | 0.837776 | 0.22048 | 0 | 0.184211 | 0 | 0 | 0.144765 | 0.040971 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.052632 | 0 | 0.210526 | 0.013158 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d4b2a9a044269ea09a095573c7237e7f034915c1 | 5,359 | py | Python | torchmetrics/retrieval/retrieval_fallout.py | rudaoshi/metrics | c018348619bd7e375cb86abf7dfcaddb7208a36d | [
"Apache-2.0"
] | null | null | null | torchmetrics/retrieval/retrieval_fallout.py | rudaoshi/metrics | c018348619bd7e375cb86abf7dfcaddb7208a36d | [
"Apache-2.0"
] | null | null | null | torchmetrics/retrieval/retrieval_fallout.py | rudaoshi/metrics | c018348619bd7e375cb86abf7dfcaddb7208a36d | [
"Apache-2.0"
] | null | null | null | # Copyright The PyTorch Lightning team.
#
# 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 i... | 40.598485 | 120 | 0.630715 | 719 | 5,359 | 4.59388 | 0.336579 | 0.026642 | 0.041175 | 0.031789 | 0.038147 | 0.010294 | 0 | 0 | 0 | 0 | 0 | 0.012762 | 0.268893 | 5,359 | 131 | 121 | 40.908397 | 0.830271 | 0.552528 | 0 | 0 | 0 | 0 | 0.055505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0.020833 | 0.270833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d4b523573d56f337047743520fa550fd29576318 | 13,961 | py | Python | project/app/paste/controllers.py | An0nYm0u5101/Pastebin | aef35abee69ce7ce240d3a3f64bb19446468d30d | [
"MIT"
] | 1 | 2020-08-08T06:07:47.000Z | 2020-08-08T06:07:47.000Z | project/app/paste/controllers.py | An0nYm0u5101/Pastebin | aef35abee69ce7ce240d3a3f64bb19446468d30d | [
"MIT"
] | null | null | null | project/app/paste/controllers.py | An0nYm0u5101/Pastebin | aef35abee69ce7ce240d3a3f64bb19446468d30d | [
"MIT"
] | 1 | 2020-08-08T06:07:50.000Z | 2020-08-08T06:07:50.000Z | from flask import Blueprint, request, render_template, \
flash, g, session, redirect, url_for, jsonify
from app import db, requires_auth
from flask_cors import CORS
from .models import Paste
import uuid
from datetime import datetime
from app.user.models import User
from pygments import highlight
from pygments.lexers i... | 34.302211 | 197 | 0.698016 | 2,077 | 13,961 | 4.46702 | 0.07222 | 0.069843 | 0.040957 | 0.037185 | 0.767299 | 0.692175 | 0.632141 | 0.577603 | 0.533844 | 0.492347 | 0 | 0.009761 | 0.148772 | 13,961 | 406 | 198 | 34.3867 | 0.770953 | 0.287658 | 0 | 0.580769 | 0 | 0 | 0.100539 | 0.006404 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065385 | false | 0 | 0.05 | 0.003846 | 0.269231 | 0.007692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d4b56ca40567b39870ee94f1ef850a0b0b2f1d60 | 8,333 | py | Python | control_drone/run_model_on_cam.py | Apiquet/DeepLearningFrameworkFromScratch | 798ac42aa1a05286eb148576072e015fd94dbf94 | [
"MIT"
] | 1 | 2020-12-18T14:40:49.000Z | 2020-12-18T14:40:49.000Z | control_drone/run_model_on_cam.py | Apiquet/DeepLearningFrameworkFromScratch | 798ac42aa1a05286eb148576072e015fd94dbf94 | [
"MIT"
] | null | null | null | control_drone/run_model_on_cam.py | Apiquet/DeepLearningFrameworkFromScratch | 798ac42aa1a05286eb148576072e015fd94dbf94 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This script run neural network model on a camera live stream
"""
import argparse
import cv2
import numpy as np
import os
import time
import sys
COMMANDS = {0: "move_forward", 1: "go_down", 2: "rot_10_deg",
3: "go_up", 4: "take_off", 5: "land", 6: "idle"}... | 29.867384 | 78 | 0.531621 | 979 | 8,333 | 4.40143 | 0.266599 | 0.027152 | 0.051288 | 0.026456 | 0.245301 | 0.229752 | 0.204456 | 0.129961 | 0.092365 | 0.086331 | 0 | 0.020654 | 0.343454 | 8,333 | 278 | 79 | 29.97482 | 0.766953 | 0.023881 | 0 | 0.280851 | 0 | 0 | 0.131546 | 0.008105 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008511 | false | 0 | 0.038298 | 0 | 0.051064 | 0.046809 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d4bc84fe21a49ee4da04551b3e65cc3308167280 | 2,449 | py | Python | app/request.py | vincentmuya/News-highlight | 67f61bb0bea69ec004c11a2148c62cd892a19615 | [
"CNRI-Python"
] | null | null | null | app/request.py | vincentmuya/News-highlight | 67f61bb0bea69ec004c11a2148c62cd892a19615 | [
"CNRI-Python"
] | null | null | null | app/request.py | vincentmuya/News-highlight | 67f61bb0bea69ec004c11a2148c62cd892a19615 | [
"CNRI-Python"
] | null | null | null | import urllib.request
import json
from .models import News
# Getting api key
api_key = None
# Getting the movie base url
base_url = None
def configure_request(app):
global api_key,base_url
api_key = app.config['NEWS_API_KEY']
base_url = app.config['NEWS_API_BASE_URL']
def get_news_source(country,category)... | 33.094595 | 91 | 0.703144 | 316 | 2,449 | 5.142405 | 0.21519 | 0.051692 | 0.08 | 0.081231 | 0.172308 | 0.172308 | 0.172308 | 0.121846 | 0.076308 | 0 | 0 | 0 | 0.213965 | 2,449 | 73 | 92 | 33.547945 | 0.844156 | 0.094733 | 0 | 0.040816 | 0 | 0 | 0.0674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081633 | false | 0 | 0.061224 | 0 | 0.204082 | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |