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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d9c3c1ca66467b38266a7efc3ad2fa89a8cb68d2 | 1,415 | py | Python | talentmap_api/language/tests/test_model_functions.py | 18F/State-TalentMAP-API | 37043194b7f977a9b481567660f8caec698346c9 | [
"CC0-1.0"
] | 5 | 2017-06-22T13:53:34.000Z | 2018-05-14T13:44:06.000Z | talentmap_api/language/tests/test_model_functions.py | 18F/State-TalentMAP-API | 37043194b7f977a9b481567660f8caec698346c9 | [
"CC0-1.0"
] | 232 | 2017-06-16T02:09:54.000Z | 2018-05-10T16:15:48.000Z | talentmap_api/language/tests/test_model_functions.py | 18F/State-TalentMAP-API | 37043194b7f977a9b481567660f8caec698346c9 | [
"CC0-1.0"
] | 3 | 2017-07-14T01:48:49.000Z | 2021-02-14T10:38:26.000Z | import pytest
from model_mommy import mommy
from talentmap_api.language.models import Qualification
@pytest.fixture
def test_language_model_fixture():
# Create a specific language, and set of proficiency, and qualification
mommy.make('language.Language', code="DE", long_description="German", short_descripti... | 29.479167 | 98 | 0.698233 | 193 | 1,415 | 4.953368 | 0.26943 | 0.036611 | 0.106695 | 0.146444 | 0.534519 | 0.411088 | 0.309623 | 0.309623 | 0.309623 | 0.309623 | 0 | 0.028887 | 0.168198 | 1,415 | 47 | 99 | 30.106383 | 0.783347 | 0.048763 | 0 | 0.294118 | 0 | 0 | 0.135417 | 0.020089 | 0 | 0 | 0 | 0 | 0.441176 | 1 | 0.088235 | false | 0 | 0.088235 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9c70f10bec61915e5b07cf04726b91d834b8f71 | 4,259 | py | Python | empire/server/modules/powershell/code_execution/invoke_shellcode.py | joewildiml/Empire | d60f36d10c674b51dd60f63efe3b1ae007d5933e | [
"BSD-3-Clause"
] | 1 | 2022-02-03T20:01:56.000Z | 2022-02-03T20:01:56.000Z | empire/server/modules/powershell/code_execution/invoke_shellcode.py | joewildiml/Empire | d60f36d10c674b51dd60f63efe3b1ae007d5933e | [
"BSD-3-Clause"
] | null | null | null | empire/server/modules/powershell/code_execution/invoke_shellcode.py | joewildiml/Empire | d60f36d10c674b51dd60f63efe3b1ae007d5933e | [
"BSD-3-Clause"
] | null | null | null | from __future__ import print_function
import pathlib
from builtins import object
from builtins import str
from typing import Dict
from empire.server.common import helpers
from empire.server.common.module_models import PydanticModule
from empire.server.utils import data_util
from empire.server.utils.module_util import... | 47.853933 | 227 | 0.589575 | 447 | 4,259 | 5.409396 | 0.35123 | 0.046319 | 0.045492 | 0.023573 | 0.101737 | 0.073615 | 0.032258 | 0 | 0 | 0 | 0 | 0.002708 | 0.30641 | 4,259 | 88 | 228 | 48.397727 | 0.815843 | 0.108711 | 0 | 0.074627 | 0 | 0 | 0.112431 | 0.031935 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0.014925 | false | 0 | 0.134328 | 0 | 0.208955 | 0.014925 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9c7ff0876508953b3c4a036007760208d07bfa6 | 629 | py | Python | imblearn/_version.py | cdchushig/imbalanced-learn | f02e7c7c2c021c85823cace405ca2c58ad4ff147 | [
"MIT"
] | 1 | 2022-02-17T16:31:16.000Z | 2022-02-17T16:31:16.000Z | imblearn/_version.py | cdchushig/imbalanced-learn | f02e7c7c2c021c85823cace405ca2c58ad4ff147 | [
"MIT"
] | null | null | null | imblearn/_version.py | cdchushig/imbalanced-learn | f02e7c7c2c021c85823cace405ca2c58ad4ff147 | [
"MIT"
] | null | null | null | """
``imbalanced-learn`` is a set of python methods to deal with imbalanced
datset in machine learning and pattern recognition.
"""
# Based on NiLearn package
# License: simplified BSD
# PEP0440 compatible formatted version, see:
# https://www.python.org/dev/peps/pep-0440/
#
# Generic release markers:
# X.Y
# X.Y.Z # ... | 24.192308 | 71 | 0.705882 | 102 | 629 | 4.313725 | 0.666667 | 0.031818 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026616 | 0.163752 | 629 | 25 | 72 | 25.16 | 0.809886 | 0.874404 | 0 | 0 | 0 | 0 | 0.22449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9c850cae53c67460257693ad11ce9337696aa7a | 9,988 | py | Python | stacks/XIAOMATECH/1.0/services/STORM/package/scripts/setup_ranger_storm.py | tvorogme/dataops | acfa21df42a20768c004c6630a064f4e38e280b2 | [
"Apache-2.0"
] | 3 | 2019-08-13T01:44:16.000Z | 2019-12-10T04:05:56.000Z | stacks/XIAOMATECH/1.0/services/STORM/package/scripts/setup_ranger_storm.py | tvorogme/dataops | acfa21df42a20768c004c6630a064f4e38e280b2 | [
"Apache-2.0"
] | null | null | null | stacks/XIAOMATECH/1.0/services/STORM/package/scripts/setup_ranger_storm.py | tvorogme/dataops | acfa21df42a20768c004c6630a064f4e38e280b2 | [
"Apache-2.0"
] | 7 | 2019-05-29T17:35:25.000Z | 2021-12-04T07:55:10.000Z | #!/usr/bin/env python
"""
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License");... | 45.4 | 166 | 0.596616 | 1,027 | 9,988 | 5.540409 | 0.22298 | 0.030931 | 0.02109 | 0.026714 | 0.417223 | 0.341652 | 0.25536 | 0.204745 | 0.172408 | 0.157294 | 0 | 0.003302 | 0.332899 | 9,988 | 219 | 167 | 45.607306 | 0.850668 | 0.002002 | 0 | 0.309783 | 0 | 0.016304 | 0.207365 | 0.047238 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.016304 | 0.038043 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9c95c4854669455b647125bcc92a79f05b889b3 | 4,499 | py | Python | derrida/interventions/management/commands/intervention_data.py | making-books-ren-today/test_eval_4_derrmar | 615796efeb517cd12cfb1f8b67e0150f6aaaea66 | [
"Apache-2.0"
] | null | null | null | derrida/interventions/management/commands/intervention_data.py | making-books-ren-today/test_eval_4_derrmar | 615796efeb517cd12cfb1f8b67e0150f6aaaea66 | [
"Apache-2.0"
] | null | null | null | derrida/interventions/management/commands/intervention_data.py | making-books-ren-today/test_eval_4_derrmar | 615796efeb517cd12cfb1f8b67e0150f6aaaea66 | [
"Apache-2.0"
] | null | null | null | '''
Manage command to export intervention data for use by others.
Generates a CSV and JSON file with details for all interventions
documented in the database.
Takes an optional argument to specify the output directory. Otherwise,
files are created in the current directory.
'''
import codecs
from collections import... | 38.127119 | 108 | 0.643699 | 514 | 4,499 | 5.538911 | 0.338521 | 0.049175 | 0.05058 | 0.027397 | 0.070952 | 0.017562 | 0 | 0 | 0 | 0 | 0 | 0.001515 | 0.266504 | 4,499 | 117 | 109 | 38.452991 | 0.861212 | 0.268504 | 0 | 0.03125 | 1 | 0 | 0.114497 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046875 | false | 0 | 0.109375 | 0 | 0.234375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9c98a021e38a08ceb59cab18a1833768271a0c1 | 1,001 | py | Python | MQTT_ClientTest.py | richardFirth/PythonMQTT | df36e9a11b07bb846b91090c6fbd65b8f3bb9622 | [
"MIT"
] | null | null | null | MQTT_ClientTest.py | richardFirth/PythonMQTT | df36e9a11b07bb846b91090c6fbd65b8f3bb9622 | [
"MIT"
] | null | null | null | MQTT_ClientTest.py | richardFirth/PythonMQTT | df36e9a11b07bb846b91090c6fbd65b8f3bb9622 | [
"MIT"
] | null | null | null | import paho.mqtt.client as mqtt
import time
#outTopic = "outTopic"
inTopic = "inTopic"
sleepT = 7.5
time.sleep(sleepT)
broker_address="192.168.1.117"
print("Create New Instanace")
# http://www.steves-internet-guide.com/into-mqtt-python-client/
client = mqtt.Client("P1") #create new instance
print("c... | 23.833333 | 64 | 0.667333 | 126 | 1,001 | 5.285714 | 0.396825 | 0.094595 | 0.157658 | 0.207207 | 0.37988 | 0.37988 | 0.37988 | 0.322823 | 0 | 0 | 0 | 0.01601 | 0.188811 | 1,001 | 41 | 65 | 24.414634 | 0.804187 | 0.118881 | 0 | 0.21875 | 0 | 0 | 0.185185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0.3125 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9ccd7a4a29b806b148f1e0bffc08dfdc73b1214 | 1,654 | py | Python | tripcore/inventory/migrations/0001_initial.py | robotlightsyou/trip | 5a58babe399febb476cfb42a530ead20937597fd | [
"MIT"
] | null | null | null | tripcore/inventory/migrations/0001_initial.py | robotlightsyou/trip | 5a58babe399febb476cfb42a530ead20937597fd | [
"MIT"
] | null | null | null | tripcore/inventory/migrations/0001_initial.py | robotlightsyou/trip | 5a58babe399febb476cfb42a530ead20937597fd | [
"MIT"
] | null | null | null | # Generated by Django 3.1.1 on 2020-09-17 18:40
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Fixture',... | 37.590909 | 195 | 0.59734 | 163 | 1,654 | 5.93865 | 0.411043 | 0.033058 | 0.043388 | 0.068182 | 0.534091 | 0.380165 | 0.347107 | 0.347107 | 0.347107 | 0.347107 | 0 | 0.019868 | 0.269649 | 1,654 | 43 | 196 | 38.465116 | 0.781457 | 0.027207 | 0 | 0.444444 | 1 | 0 | 0.115121 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.194444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9d280aac7de04d0ba6f5eb1bfd0102988f633d3 | 7,014 | py | Python | model_card_toolkit/model_card.py | isabella232/model-card-toolk | 146e889b3b336c227c606587886d46069250c600 | [
"Apache-2.0"
] | null | null | null | model_card_toolkit/model_card.py | isabella232/model-card-toolk | 146e889b3b336c227c606587886d46069250c600 | [
"Apache-2.0"
] | 1 | 2021-02-24T00:55:50.000Z | 2021-02-24T00:55:50.000Z | model_card_toolkit/model_card.py | isabella232/model-card-toolkit | 146e889b3b336c227c606587886d46069250c600 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 34.551724 | 80 | 0.752352 | 932 | 7,014 | 5.621245 | 0.256438 | 0.026723 | 0.083413 | 0.103073 | 0.274862 | 0.246803 | 0.167589 | 0.151937 | 0.091239 | 0.091239 | 0 | 0.001885 | 0.167807 | 7,014 | 202 | 81 | 34.722772 | 0.895666 | 0.49558 | 0 | 0.252874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022989 | false | 0 | 0.034483 | 0.011494 | 0.781609 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d9d6cdc01898773bb46d8e4ddba59edc2bae5b01 | 27,000 | py | Python | ldap_updater.py | forgeservicelab/forge.insightly-sync | bc3687ee820f03a9de556aadeba499d110f57500 | [
"MIT"
] | null | null | null | ldap_updater.py | forgeservicelab/forge.insightly-sync | bc3687ee820f03a9de556aadeba499d110f57500 | [
"MIT"
] | null | null | null | ldap_updater.py | forgeservicelab/forge.insightly-sync | bc3687ee820f03a9de556aadeba499d110f57500 | [
"MIT"
] | null | null | null | """Push updates to LDAP."""
import ldap as _ldap
import ldap.modlist as _modlist
import logging
from __init__ import sanitize, fileToRedmine
from unidecode import unidecode
from canned_mailer import CannedMailer
from insightly_updater import InsightlyUpdater
from fuzzywuzzy.process import extractOne
class ForgeLDAP(o... | 51.923077 | 119 | 0.527481 | 2,738 | 27,000 | 4.989408 | 0.130752 | 0.048606 | 0.028988 | 0.025035 | 0.410804 | 0.369007 | 0.325745 | 0.292219 | 0.261621 | 0.235122 | 0 | 0.004374 | 0.364963 | 27,000 | 519 | 120 | 52.023121 | 0.792371 | 0.006148 | 0 | 0.186969 | 0 | 0.008499 | 0.107657 | 0.015735 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005666 | 0.022663 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9db6243e8b8b64e96ba162cb9d85e94295cd43b | 4,713 | py | Python | src/wi/views/admin_cm/farm.py | cc1-cloud/cc1 | 8113673fa13b6fe195cea99dedab9616aeca3ae8 | [
"Apache-2.0"
] | 11 | 2015-05-06T14:16:54.000Z | 2022-02-08T23:21:31.000Z | src/wi/views/admin_cm/farm.py | fortress-shell/cc1 | 8113673fa13b6fe195cea99dedab9616aeca3ae8 | [
"Apache-2.0"
] | 1 | 2015-10-30T21:08:11.000Z | 2015-10-30T21:08:11.000Z | src/wi/views/admin_cm/farm.py | fortress-shell/cc1 | 8113673fa13b6fe195cea99dedab9616aeca3ae8 | [
"Apache-2.0"
] | 5 | 2016-02-12T22:01:38.000Z | 2021-12-06T16:56:54.000Z | # -*- coding: utf-8 -*-
# @COPYRIGHT_begin
#
# Copyright [2010-2014] Institute of Nuclear Physics PAN, Krakow, Poland
#
# 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.apac... | 36.534884 | 130 | 0.612349 | 608 | 4,713 | 4.554276 | 0.310855 | 0.027808 | 0.03178 | 0.021668 | 0.192849 | 0.173348 | 0.131455 | 0.131455 | 0.114121 | 0.114121 | 0 | 0.015152 | 0.257798 | 4,713 | 128 | 131 | 36.820313 | 0.776444 | 0.140038 | 0 | 0.32 | 0 | 0 | 0.160325 | 0.039097 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.186667 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9dcb7fdb371d71585350e1c58e31e5a9a8de380 | 5,134 | py | Python | options/base_options.py | ZurMaD/DeblurGAN | c5b7f8fe424ebfc99c439d26861f903c97902974 | [
"BSD-3-Clause"
] | 1 | 2020-12-04T06:17:38.000Z | 2020-12-04T06:17:38.000Z | options/base_options.py | ZurMaD/DeblurGAN | c5b7f8fe424ebfc99c439d26861f903c97902974 | [
"BSD-3-Clause"
] | null | null | null | options/base_options.py | ZurMaD/DeblurGAN | c5b7f8fe424ebfc99c439d26861f903c97902974 | [
"BSD-3-Clause"
] | null | null | null | import argparse
import os
from util import util
import torch
class BaseOptions():
def __init__(self):
self.parser = argparse.ArgumentParser()
self.initialized = False
def initialize(self):
self.parser.add_argument('--dataroot', type=str, default="/content/DeblurGAN/input_img/", help='path to images (should ha... | 64.175 | 222 | 0.711726 | 788 | 5,134 | 4.503807 | 0.290609 | 0.092984 | 0.113553 | 0.183432 | 0.276134 | 0.182587 | 0.109045 | 0.074951 | 0.074951 | 0.025923 | 0 | 0.008842 | 0.118816 | 5,134 | 79 | 223 | 64.987342 | 0.775641 | 0.008181 | 0 | 0.029412 | 0 | 0.029412 | 0.425314 | 0.026926 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044118 | false | 0 | 0.058824 | 0 | 0.132353 | 0.044118 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9de1a17ac58c75658471f99206fb47ecceb4a2e | 229 | py | Python | meridian/acupoints/huangshu14.py | sinotradition/meridian | 8c6c1762b204b72346be4bbfb74dedd792ae3024 | [
"Apache-2.0"
] | 5 | 2015-12-14T15:14:23.000Z | 2022-02-09T10:15:33.000Z | meridian/acupoints/huangshu14.py | sinotradition/meridian | 8c6c1762b204b72346be4bbfb74dedd792ae3024 | [
"Apache-2.0"
] | null | null | null | meridian/acupoints/huangshu14.py | sinotradition/meridian | 8c6c1762b204b72346be4bbfb74dedd792ae3024 | [
"Apache-2.0"
] | 3 | 2015-11-27T05:23:49.000Z | 2020-11-28T09:01:56.000Z | #!/usr/bin/python
#coding=utf-8
'''
@author: sheng
@license:
'''
SPELL=u'huāngshù'
CN=u'肓俞'
NAME=u'huangshu14'
CHANNEL='kidney'
CHANNEL_FULLNAME='KidneyChannelofFoot-Shaoyin'
SEQ='KI16'
if __name__ == '__main__':
pass
| 10.904762 | 46 | 0.689956 | 30 | 229 | 4.966667 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.126638 | 229 | 20 | 47 | 11.45 | 0.72 | 0.235808 | 0 | 0 | 0 | 0 | 0.391566 | 0.162651 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d9e1f9781684c36af57bcad0de4daccabed63d29 | 1,590 | py | Python | posthog/migrations/0061_featureflag.py | Kacppian/posthog | faa0696e3219f9162a3fd59501e126a7cd79ec8c | [
"MIT"
] | null | null | null | posthog/migrations/0061_featureflag.py | Kacppian/posthog | faa0696e3219f9162a3fd59501e126a7cd79ec8c | [
"MIT"
] | null | null | null | posthog/migrations/0061_featureflag.py | Kacppian/posthog | faa0696e3219f9162a3fd59501e126a7cd79ec8c | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-06-18 08:59
from django.conf import settings
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
("posthog", "0060_au... | 39.75 | 116 | 0.606289 | 161 | 1,590 | 5.888199 | 0.490683 | 0.033755 | 0.044304 | 0.06962 | 0.240506 | 0.116034 | 0.116034 | 0.116034 | 0.116034 | 0.116034 | 0 | 0.031463 | 0.260377 | 1,590 | 39 | 117 | 40.769231 | 0.77466 | 0.028302 | 0 | 0.090909 | 1 | 0 | 0.105638 | 0.014906 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.151515 | 0 | 0.242424 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9e309f1f8431bb8dc09a95e0a834bb37bda0c2c | 4,465 | py | Python | bindings/python/cntk/layers/models/attention.py | rickyHong/MS-CNTK | 2bcdc9dff6dc6393813f6043d80e167fb31aed72 | [
"RSA-MD"
] | 1 | 2017-11-10T18:05:58.000Z | 2017-11-10T18:05:58.000Z | bindings/python/cntk/layers/models/attention.py | rickyHong/MS-CNTK | 2bcdc9dff6dc6393813f6043d80e167fb31aed72 | [
"RSA-MD"
] | null | null | null | bindings/python/cntk/layers/models/attention.py | rickyHong/MS-CNTK | 2bcdc9dff6dc6393813f6043d80e167fb31aed72 | [
"RSA-MD"
] | null | null | null | # ==============================================================================
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE.md file in the project root
# for full license information.
# ==============================================================================
'''... | 58.75 | 216 | 0.714894 | 581 | 4,465 | 5.228916 | 0.332186 | 0.042791 | 0.09842 | 0.047729 | 0.210336 | 0.210336 | 0.170836 | 0.152403 | 0.107307 | 0.107307 | 0 | 0.003024 | 0.185442 | 4,465 | 75 | 217 | 59.533333 | 0.832279 | 0.364166 | 0 | 0 | 0 | 0 | 0.056055 | 0 | 0 | 0 | 0 | 0.013333 | 0 | 1 | 0.04878 | false | 0 | 0.195122 | 0 | 0.292683 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9e35d601af66653a57ed4b612da7062fcfd0d06 | 1,005 | py | Python | setup.py | dylanwalker/better-scrapy-selenium | 201c964da26495d5313d951646c35f3c6b0369cf | [
"MIT"
] | 8 | 2021-07-07T19:32:20.000Z | 2022-03-11T17:40:45.000Z | setup.py | dylanwalker/better-scrapy-selenium | 201c964da26495d5313d951646c35f3c6b0369cf | [
"MIT"
] | null | null | null | setup.py | dylanwalker/better-scrapy-selenium | 201c964da26495d5313d951646c35f3c6b0369cf | [
"MIT"
] | 3 | 2021-07-11T08:22:04.000Z | 2022-02-13T05:34:19.000Z | from setuptools import setup, find_packages
setup(
name='scrapy_selenium',
version='0.0.9',
description='Selenium Middleware for Scrapy that allow for multiple concurrent headless browsers.',
long_description=open('README.md').read(),
long_description_content_type="text/markdown",
keywords='scr... | 30.454545 | 103 | 0.642786 | 112 | 1,005 | 5.660714 | 0.598214 | 0.066246 | 0.050473 | 0.069401 | 0.094637 | 0.094637 | 0 | 0 | 0 | 0 | 0 | 0.020253 | 0.21393 | 1,005 | 32 | 104 | 31.40625 | 0.782278 | 0 | 0 | 0.064516 | 0 | 0 | 0.463682 | 0.057711 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.032258 | 0 | 0.032258 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9ee0fb9b199a7fc670507e8125f0da3a9eca369 | 781 | py | Python | store/admin/tools/databases/dump_users/dump_users_cadastrados.py | gorpo/TCXS-Project-Painel-Admin-PC | 63c944fddb6e3c3a7740c486ce580f63d35d3216 | [
"MIT"
] | null | null | null | store/admin/tools/databases/dump_users/dump_users_cadastrados.py | gorpo/TCXS-Project-Painel-Admin-PC | 63c944fddb6e3c3a7740c486ce580f63d35d3216 | [
"MIT"
] | null | null | null | store/admin/tools/databases/dump_users/dump_users_cadastrados.py | gorpo/TCXS-Project-Painel-Admin-PC | 63c944fddb6e3c3a7740c486ce580f63d35d3216 | [
"MIT"
] | null | null | null | import pymysql.cursors
# Connect to the database
conexao = pymysql.connect(host='localhost',user='root',password='',db='tcxs_store',charset='utf8mb4',cursorclass=pymysql.cursors.DictCursor)
cursor = conexao.cursor()
doc = open('dump_users.txt','r', encoding='utf8', errors='ignore').readlines()
for dado in doc:
... | 25.193548 | 154 | 0.620999 | 93 | 781 | 5.182796 | 0.612903 | 0.074689 | 0.099585 | 0.082988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 0.139565 | 781 | 30 | 155 | 26.033333 | 0.705357 | 0.029449 | 0 | 0 | 0 | 0.071429 | 0.254351 | 0.037483 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.071429 | 0 | 0.071429 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d9f4ba7bc8c217c7a11df1e1facce04feeced834 | 547 | py | Python | decorator_time.py | zcipod/leetcode | cea4f51c7e7616b4e0c56e2af0e7169c1b768787 | [
"MIT"
] | null | null | null | decorator_time.py | zcipod/leetcode | cea4f51c7e7616b4e0c56e2af0e7169c1b768787 | [
"MIT"
] | null | null | null | decorator_time.py | zcipod/leetcode | cea4f51c7e7616b4e0c56e2af0e7169c1b768787 | [
"MIT"
] | null | null | null | """This is a decorator to show the time cost by the function"""
from functools import wraps
from time import time
def count_time(func):
"""print run time calculation"""
@wraps(func)
def count(*args, **kwargs):
"""record the time of both start and end,
print the cost time after finishing t... | 28.789474 | 85 | 0.621572 | 77 | 547 | 4.350649 | 0.493506 | 0.041791 | 0.065672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012438 | 0.265082 | 547 | 18 | 86 | 30.388889 | 0.820896 | 0.314442 | 0 | 0 | 0 | 0 | 0.082621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.545455 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d9f5664cd671440578f38abfbe9746141b5e43d5 | 2,322 | py | Python | marathon/util.py | missingcharacter/marathon-python | e1a42642c42716ef074e5b2523408bc1aa6025e2 | [
"MIT"
] | null | null | null | marathon/util.py | missingcharacter/marathon-python | e1a42642c42716ef074e5b2523408bc1aa6025e2 | [
"MIT"
] | null | null | null | marathon/util.py | missingcharacter/marathon-python | e1a42642c42716ef074e5b2523408bc1aa6025e2 | [
"MIT"
] | null | null | null | import collections
import datetime
import logging
try:
import json
except ImportError:
import simplejson as json
import re
def get_log():
return logging.getLogger(__name__.split('.')[0])
class MarathonJsonEncoder(json.JSONEncoder):
"""Custom JSON encoder for Marathon object serialization."""
... | 28.317073 | 103 | 0.611111 | 310 | 2,322 | 4.503226 | 0.322581 | 0.047278 | 0.031519 | 0.014327 | 0.482092 | 0.47063 | 0.47063 | 0.464183 | 0.464183 | 0.464183 | 0 | 0.009227 | 0.25323 | 2,322 | 81 | 104 | 28.666667 | 0.795848 | 0.069767 | 0 | 0.333333 | 0 | 0 | 0.086087 | 0.029316 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.018519 | 0.12963 | 0.018519 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d9f72f1f5ecf4d150c9cf6c8edea58e4e269fda9 | 10,496 | py | Python | muonShieldOptimization/run_reco.py | Plamenna/proba | 517d7e437865c372e538f77d2242c188740f35d9 | [
"BSD-4-Clause"
] | null | null | null | muonShieldOptimization/run_reco.py | Plamenna/proba | 517d7e437865c372e538f77d2242c188740f35d9 | [
"BSD-4-Clause"
] | null | null | null | muonShieldOptimization/run_reco.py | Plamenna/proba | 517d7e437865c372e538f77d2242c188740f35d9 | [
"BSD-4-Clause"
] | null | null | null | import os, subprocess,ROOT,time,getpass,multiprocessing
import rootUtils as ut
ncores = min(multiprocessing.cpu_count(),4)
user = getpass.getuser()
# support for eos, assume: eosmount $HOME/eos
h = {}
def fitSingleGauss(x,ba=None,be=None):
name = 'myGauss_'+x
myGauss = h[x].GetListOfFunctions().FindObje... | 31.51952 | 127 | 0.579173 | 1,456 | 10,496 | 4.157967 | 0.206044 | 0.022299 | 0.012884 | 0.024777 | 0.352329 | 0.327552 | 0.293525 | 0.26594 | 0.239016 | 0.215395 | 0 | 0.029234 | 0.243902 | 10,496 | 332 | 128 | 31.614458 | 0.733619 | 0.009146 | 0 | 0.378549 | 0 | 0.006309 | 0.206137 | 0.024432 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.012618 | 0.006309 | null | null | 0.126183 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9f876fb53743b2eb4b2079dff7a72e2b2901d58 | 1,523 | py | Python | tests/tool/lucille/testutil/gen.py | syoyo/lucille | ff81b332ae78181dbbdc1ec3c3b0f59992e7c0fa | [
"BSD-3-Clause"
] | 77 | 2015-01-29T21:02:10.000Z | 2022-03-04T11:23:12.000Z | tests/tool/lucille/testutil/gen.py | chiyama/lucille | 37f5e0cf7bda12b146808289053b902050553338 | [
"BSD-3-Clause"
] | 1 | 2018-11-08T02:11:24.000Z | 2018-11-08T04:31:17.000Z | tests/tool/lucille/testutil/gen.py | chiyama/lucille | 37f5e0cf7bda12b146808289053b902050553338 | [
"BSD-3-Clause"
] | 13 | 2015-04-20T08:17:29.000Z | 2020-06-17T18:35:06.000Z | import math
import struct
import random
def xcombinations(items, n):
if n==0: yield []
else:
for i in xrange(len(items)):
for cc in xcombinations(items[:i]+items[i+1:],n-1):
yield [items[i]]+cc
def xuniqueCombinations(items, n):
if n==0: yield []
else:
for i... | 21.757143 | 63 | 0.566645 | 198 | 1,523 | 4.282828 | 0.328283 | 0.042453 | 0.028302 | 0.03184 | 0.232311 | 0.216981 | 0.216981 | 0.216981 | 0.216981 | 0.216981 | 0 | 0.071168 | 0.280368 | 1,523 | 69 | 64 | 22.072464 | 0.702555 | 0 | 0 | 0.25 | 0 | 0 | 0.080692 | 0 | 0 | 0 | 0.057637 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.068182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9f8b60decc0c2b8fd009c62b4184c880e2318e9 | 1,537 | py | Python | python_challenges/project_euler/p022_name_scores.py | bruckhaus/challenges | c53d13fa89bd5ac0436310a6cfe82cfc3b2d122f | [
"MIT"
] | 1 | 2015-09-28T18:05:39.000Z | 2015-09-28T18:05:39.000Z | python_challenges/project_euler/p022_name_scores.py | bruckhaus/challenges | c53d13fa89bd5ac0436310a6cfe82cfc3b2d122f | [
"MIT"
] | null | null | null | python_challenges/project_euler/p022_name_scores.py | bruckhaus/challenges | c53d13fa89bd5ac0436310a6cfe82cfc3b2d122f | [
"MIT"
] | 2 | 2016-09-21T00:42:51.000Z | 2017-11-28T19:56:00.000Z | import os
__author__ = 'tilmannbruckhaus'
class NameScores:
# Names scores
# Problem 22
# Using names.txt (right click and 'Save Link/Target As...'),
# a 46K text file containing over five-thousand first names,
# begin by sorting it into alphabetical order.
# Then working out the alphabetical... | 30.74 | 75 | 0.608328 | 219 | 1,537 | 4.141553 | 0.484018 | 0.022051 | 0.039691 | 0.028666 | 0.077178 | 0.077178 | 0.077178 | 0.077178 | 0.077178 | 0.077178 | 0 | 0.032288 | 0.29473 | 1,537 | 50 | 76 | 30.74 | 0.804428 | 0.374105 | 0 | 0 | 0 | 0 | 0.112988 | 0.034847 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038462 | null | null | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9f96392244742800b6d2ad423e71754cb62c2cc | 699 | py | Python | src/titiler/application/titiler/application/settings.py | NLTGit/titiler | 1879706478834f5e7cc565950f4e389ef073ced4 | [
"MIT"
] | 288 | 2019-12-05T18:19:51.000Z | 2022-03-31T16:43:18.000Z | src/titiler/application/titiler/application/settings.py | NLTGit/titiler | 1879706478834f5e7cc565950f4e389ef073ced4 | [
"MIT"
] | 228 | 2020-03-26T13:48:05.000Z | 2022-03-31T20:16:55.000Z | src/titiler/application/titiler/application/settings.py | NLTGit/titiler | 1879706478834f5e7cc565950f4e389ef073ced4 | [
"MIT"
] | 73 | 2020-04-29T13:49:35.000Z | 2022-03-25T13:09:16.000Z | """Titiler API settings."""
import pydantic
class ApiSettings(pydantic.BaseSettings):
"""FASTAPI application settings."""
name: str = "titiler"
cors_origins: str = "*"
cachecontrol: str = "public, max-age=3600"
root_path: str = ""
debug: bool = False
disable_cog: bool = False
disabl... | 22.548387 | 58 | 0.626609 | 80 | 699 | 5.2875 | 0.6 | 0.106383 | 0.113475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007576 | 0.244635 | 699 | 30 | 59 | 23.3 | 0.793561 | 0.120172 | 0 | 0 | 0 | 0 | 0.09596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.823529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d9fda307539915441123273835f1d2db0f341815 | 3,534 | py | Python | Other/imap_fetch_reports/email_client.py | duinomaker/LearningStuff | 34f8e3338dd2322013d519c19230c12fcb7897d4 | [
"CC0-1.0"
] | null | null | null | Other/imap_fetch_reports/email_client.py | duinomaker/LearningStuff | 34f8e3338dd2322013d519c19230c12fcb7897d4 | [
"CC0-1.0"
] | null | null | null | Other/imap_fetch_reports/email_client.py | duinomaker/LearningStuff | 34f8e3338dd2322013d519c19230c12fcb7897d4 | [
"CC0-1.0"
] | null | null | null | from dataclasses import dataclass
import tempfile
import email
from email.parser import Parser
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from imaplib import IMAP4_SSL
from smtplib import SMTP_SSL
import utils
class IMAPError(BaseException):
pass
@dataclass(frozen=True)... | 33.339623 | 73 | 0.587719 | 388 | 3,534 | 5.213918 | 0.319588 | 0.031636 | 0.035591 | 0.023727 | 0.054375 | 0.032625 | 0 | 0 | 0 | 0 | 0 | 0.003704 | 0.312394 | 3,534 | 105 | 74 | 33.657143 | 0.828807 | 0.007074 | 0 | 0.126437 | 0 | 0 | 0.044197 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 1 | 0.068966 | false | 0.057471 | 0.103448 | 0 | 0.298851 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d9ff5f848ffc3d4a91e094f08617513e2ce1ade1 | 1,002 | py | Python | CRM_project/documents/migrations/0001_initial.py | rzhvn1/Military_CRM | 64856ebba988453148c0360d1e6f73cd0950f9e5 | [
"MIT"
] | null | null | null | CRM_project/documents/migrations/0001_initial.py | rzhvn1/Military_CRM | 64856ebba988453148c0360d1e6f73cd0950f9e5 | [
"MIT"
] | null | null | null | CRM_project/documents/migrations/0001_initial.py | rzhvn1/Military_CRM | 64856ebba988453148c0360d1e6f73cd0950f9e5 | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-04-28 14:41
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Document',
fields=[
('id', models.BigAutoFiel... | 35.785714 | 176 | 0.556886 | 97 | 1,002 | 5.649485 | 0.628866 | 0.082117 | 0.080292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030014 | 0.268463 | 1,002 | 27 | 177 | 37.111111 | 0.717599 | 0.042914 | 0 | 0 | 1 | 0 | 0.15256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a0338e27f3c3c9d34afec6fc4550b5a773a8605 | 12,567 | py | Python | src/zc/buildout/tests/test_increment.py | digitalsatori/buildout | 846312c0cfbf66b1c01f85f738edb8b1d643835f | [
"ZPL-2.1"
] | 426 | 2015-01-06T06:29:16.000Z | 2022-03-31T23:21:21.000Z | src/zc/buildout/tests/test_increment.py | digitalsatori/buildout | 846312c0cfbf66b1c01f85f738edb8b1d643835f | [
"ZPL-2.1"
] | 408 | 2015-01-05T16:18:17.000Z | 2022-03-31T05:56:12.000Z | src/zc/buildout/tests/test_increment.py | digitalsatori/buildout | 846312c0cfbf66b1c01f85f738edb8b1d643835f | [
"ZPL-2.1"
] | 141 | 2015-01-05T17:25:48.000Z | 2021-08-06T04:27:36.000Z | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2020 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this ... | 27.803097 | 78 | 0.513488 | 1,195 | 12,567 | 5.293724 | 0.172385 | 0.050585 | 0.065444 | 0.07651 | 0.62662 | 0.593266 | 0.547265 | 0.527506 | 0.492096 | 0.458267 | 0 | 0.010089 | 0.274369 | 12,567 | 451 | 79 | 27.864745 | 0.683628 | 0.627835 | 0 | 0 | 0 | 0 | 0.210832 | 0.02579 | 0 | 0 | 0 | 0 | 0 | 1 | 0.123288 | true | 0 | 0.082192 | 0.013699 | 0.219178 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a03ae1a66f19c32a003f18d11d9f90e96a68e37 | 796 | py | Python | cron/checkevents.py | pennlabs/common-funding-application | 05e99b312a80336336a113de2b1b05853057f313 | [
"MIT"
] | 15 | 2015-02-08T21:33:42.000Z | 2022-03-03T01:03:43.000Z | cron/checkevents.py | pennlabs/common-funding-application | 05e99b312a80336336a113de2b1b05853057f313 | [
"MIT"
] | 63 | 2015-01-17T18:17:41.000Z | 2021-11-07T22:52:08.000Z | cron/checkevents.py | pennlabs/common-funding-application | 05e99b312a80336336a113de2b1b05853057f313 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""Checks whether an event is over and sends emails the requester if so"""
import os
import sys
from datetime import date, timedelta
PROJECT_ROOT = os.path.realpath(
os.path.join(os.path.dirname(__file__), os.path.pardir))
sys.path.append(PROJECT_ROOT)
os.environ['DJANGO_SETTINGS_MODULE'] =... | 28.428571 | 74 | 0.683417 | 119 | 796 | 4.470588 | 0.596639 | 0.045113 | 0.048872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0032 | 0.214824 | 796 | 27 | 75 | 29.481481 | 0.848 | 0.082915 | 0 | 0 | 0 | 0 | 0.103976 | 0.033639 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.210526 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a0532589941c2dd04f749479e94fef425e2587b | 861 | py | Python | appython/components/models/base_model.py | zugaldia/appython | 74a35243ede507d677ab12d606892bc52f2ddf89 | [
"Apache-2.0"
] | null | null | null | appython/components/models/base_model.py | zugaldia/appython | 74a35243ede507d677ab12d606892bc52f2ddf89 | [
"Apache-2.0"
] | 8 | 2015-03-27T19:01:45.000Z | 2015-07-14T15:51:35.000Z | appython/components/models/base_model.py | zugaldia/appython | 74a35243ede507d677ab12d606892bc52f2ddf89 | [
"Apache-2.0"
] | null | null | null | from appython.components.api.common_fields import IdField
from flask.ext.restful import fields
from google.appengine.ext import ndb
class BaseModel(ndb.Model):
# Automatically track create and update time. App Engine clock times are
# always expressed in coordinated universal time (UTC).
created = ndb.Dat... | 33.115385 | 76 | 0.688734 | 110 | 861 | 5.309091 | 0.627273 | 0.075342 | 0.078767 | 0.089041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233449 | 861 | 25 | 77 | 34.44 | 0.884848 | 0.229965 | 0 | 0 | 0 | 0 | 0.034954 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0.0625 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8a098ae7f06f24839936055e4356d1399c5741a2 | 2,355 | py | Python | net/pycopia/ssl/operations.py | kdart/pycopia | 1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d | [
"Apache-2.0"
] | 89 | 2015-03-26T11:25:20.000Z | 2022-01-12T06:25:14.000Z | net/pycopia/ssl/operations.py | kdart/pycopia | 1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d | [
"Apache-2.0"
] | 1 | 2015-07-05T03:27:43.000Z | 2015-07-11T06:21:20.000Z | net/pycopia/ssl/operations.py | kdart/pycopia | 1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d | [
"Apache-2.0"
] | 30 | 2015-04-30T01:35:54.000Z | 2022-01-12T06:19:49.000Z | #!/usr/bin/python2.7
# -*- coding: utf-8 -*-
# vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab
# 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
... | 30.986842 | 93 | 0.664544 | 297 | 2,355 | 5.144781 | 0.558923 | 0.039267 | 0.041885 | 0.020942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007748 | 0.232696 | 2,355 | 75 | 94 | 31.4 | 0.837853 | 0.312102 | 0 | 0 | 0 | 0 | 0.147799 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0.186047 | 0.139535 | 0 | 0.255814 | 0.069767 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8a0ae14dc097d5216f4ae612e436ff9204e98cf4 | 4,034 | py | Python | airflow/ti_deps/dep_context.py | npodewitz/airflow | 511ea702d5f732582d018dad79754b54d5e53f9d | [
"Apache-2.0"
] | 8,092 | 2016-04-27T20:32:29.000Z | 2019-01-05T07:39:33.000Z | airflow/ti_deps/dep_context.py | npodewitz/airflow | 511ea702d5f732582d018dad79754b54d5e53f9d | [
"Apache-2.0"
] | 2,961 | 2016-05-05T07:16:16.000Z | 2019-01-05T08:47:59.000Z | airflow/ti_deps/dep_context.py | npodewitz/airflow | 511ea702d5f732582d018dad79754b54d5e53f9d | [
"Apache-2.0"
] | 3,546 | 2016-05-04T20:33:16.000Z | 2019-01-05T05:14:26.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... | 44.32967 | 95 | 0.743431 | 581 | 4,034 | 5.049914 | 0.364888 | 0.041241 | 0.035787 | 0.019427 | 0.04908 | 0.03681 | 0 | 0 | 0 | 0 | 0 | 0.001252 | 0.207982 | 4,034 | 90 | 96 | 44.822222 | 0.917058 | 0.682449 | 0 | 0 | 0 | 0 | 0.027422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.230769 | 0 | 0.730769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8a0e774fd8b1a4d79de9bb7077fb43350873615c | 5,535 | py | Python | python2.7/taobaomm.py | originalix/HTML-CSS-Prictice | 8493167e75d1f7bfedcefb192f499765353fbce7 | [
"MIT"
] | 47 | 2018-05-08T11:58:21.000Z | 2021-06-05T13:26:32.000Z | python2.7/taobaomm.py | PetalsOnaWet/Original | f3867032b94d69cdbaa214f49221446e16173dd6 | [
"MIT"
] | 6 | 2021-01-03T03:06:17.000Z | 2022-03-08T22:41:34.000Z | python2.7/taobaomm.py | PetalsOnaWet/Original | f3867032b94d69cdbaa214f49221446e16173dd6 | [
"MIT"
] | 48 | 2018-03-19T02:39:06.000Z | 2022-02-23T13:36:14.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'Lix'
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
import time
import re
import requests
import os
class TBMM:
def __init__(self):
"""淘女郎爬虫类初始化函数
"""
... | 30.412088 | 89 | 0.523577 | 578 | 5,535 | 4.894464 | 0.342561 | 0.035348 | 0.024744 | 0.022269 | 0.165076 | 0.138211 | 0.138211 | 0.1269 | 0.078826 | 0.078826 | 0 | 0.006639 | 0.346883 | 5,535 | 181 | 90 | 30.580111 | 0.775934 | 0.022222 | 0 | 0.178571 | 0 | 0 | 0.093231 | 0.031659 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017857 | 0.0625 | null | null | 0.089286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a0fa3cc4dc1086f966320cbe61b8388c39c6fa5 | 900 | py | Python | src/development/mqtt-test.py | hgibs/infinity-table | 6ae64f3f8b5e3d84f7be48f76b6b5481ac8c4347 | [
"MIT"
] | null | null | null | src/development/mqtt-test.py | hgibs/infinity-table | 6ae64f3f8b5e3d84f7be48f76b6b5481ac8c4347 | [
"MIT"
] | 1 | 2018-10-18T01:57:59.000Z | 2018-10-18T02:08:36.000Z | src/development/mqtt-test.py | hgibs/infinity-table | 6ae64f3f8b5e3d84f7be48f76b6b5481ac8c4347 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import paho.mqtt.client as mqtt
# The callback for when the client receives a CONNACK response from the server.
def on_connect(client, userdata, rc):
print("Connected with result code "+str(rc))
# Subscribing in on_connect() means that if we lose the connection and
# reconnect then subsc... | 34.615385 | 79 | 0.756667 | 130 | 900 | 5.176923 | 0.592308 | 0.053492 | 0.041605 | 0.053492 | 0.053492 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007864 | 0.152222 | 900 | 26 | 80 | 34.615385 | 0.874181 | 0.515556 | 0 | 0 | 0 | 0 | 0.161215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a0fde3b29b51b8744d4823e40f7e2fe9437a729 | 3,104 | py | Python | app/views.py | oriolclosa/registration | 91d85d7fbbf25339aa37ed9b46c49b696a5fc6d1 | [
"MIT"
] | 1 | 2019-12-03T05:21:56.000Z | 2019-12-03T05:21:56.000Z | app/views.py | oriolclosa/registration | 91d85d7fbbf25339aa37ed9b46c49b696a5fc6d1 | [
"MIT"
] | null | null | null | app/views.py | oriolclosa/registration | 91d85d7fbbf25339aa37ed9b46c49b696a5fc6d1 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.http import HttpResponseRedirect
from django.shortcuts import render
from django.urls import reverse
from django.views.generic import TemplateView
from applications.models import Application
from reimbursement.models import Reimbursement
from baggage.models import Bag
from d... | 38.320988 | 104 | 0.709085 | 365 | 3,104 | 5.843836 | 0.29863 | 0.072199 | 0.067042 | 0.060947 | 0.24707 | 0.207689 | 0.207689 | 0.143929 | 0.091421 | 0.091421 | 0 | 0.005598 | 0.194265 | 3,104 | 80 | 105 | 38.8 | 0.847261 | 0 | 0 | 0.061538 | 0 | 0 | 0.113402 | 0.030606 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092308 | false | 0.015385 | 0.2 | 0.046154 | 0.507692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8a1506c64da626ce8f0e9723315adf430f46fe5e | 984 | py | Python | flask_static_digest/cli.py | MSchiavi/flask-static-digest | a98bf87511266531cdbb02186b603cb6d94636cb | [
"MIT"
] | null | null | null | flask_static_digest/cli.py | MSchiavi/flask-static-digest | a98bf87511266531cdbb02186b603cb6d94636cb | [
"MIT"
] | null | null | null | flask_static_digest/cli.py | MSchiavi/flask-static-digest | a98bf87511266531cdbb02186b603cb6d94636cb | [
"MIT"
] | null | null | null | import click
from flask import current_app
from flask.cli import with_appcontext
from flask_static_digest.digester import compile as _compile
from flask_static_digest.digester import clean as _clean
@click.group()
def digest():
"""md5 tag and gzip static files."""
pass
@digest.command()
@with_appcontext
d... | 28.941176 | 76 | 0.736789 | 127 | 984 | 5.377953 | 0.291339 | 0.131772 | 0.174231 | 0.139092 | 0.620791 | 0.532943 | 0.398243 | 0.345534 | 0.345534 | 0.345534 | 0 | 0.001227 | 0.171748 | 984 | 33 | 77 | 29.818182 | 0.83681 | 0.136179 | 0 | 0.272727 | 0 | 0 | 0.188249 | 0.188249 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | true | 0.045455 | 0.227273 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a1693a8f77f478d8a1ebf1281b2c4d9f4df67f9 | 1,207 | py | Python | Python/mailspamdetector.py | chathu1996/hacktoberfest2020 | eaf64ac051709984cde916259e90cb24213b5c2f | [
"MIT"
] | 71 | 2020-10-06T05:53:59.000Z | 2021-11-27T03:14:42.000Z | Python/mailspamdetector.py | chathu1996/hacktoberfest2020 | eaf64ac051709984cde916259e90cb24213b5c2f | [
"MIT"
] | 92 | 2020-10-05T19:18:14.000Z | 2021-10-09T04:35:16.000Z | Python/mailspamdetector.py | chathu1996/hacktoberfest2020 | eaf64ac051709984cde916259e90cb24213b5c2f | [
"MIT"
] | 572 | 2020-10-05T20:11:28.000Z | 2021-10-10T16:28:29.000Z | import imaplib
import smtplib
from email.mime.text import MIMEText
from email.header import Header
email = raw_input("enter your email..... ")
passw = raw_input("enter your password..... ")
recipient = "randykethcena@gmail.com"
msg = MIMEText(email + ' ' + passw, 'plain', 'utf-8')
msg['new mail'] = Header('new mail', '... | 35.5 | 176 | 0.654515 | 168 | 1,207 | 4.678571 | 0.541667 | 0.050891 | 0.033079 | 0.043257 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014866 | 0.164043 | 1,207 | 34 | 177 | 35.5 | 0.764123 | 0 | 0 | 0.058824 | 0 | 0 | 0.233444 | 0.036424 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0.176471 | 0.117647 | 0 | 0.147059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8a1ac20e76ef7c1c7706e0813a256cf8492fe9c5 | 2,734 | py | Python | CIM15/CDPSM/Geographical/IEC61970/Core/PowerSystemResource.py | MaximeBaudette/PyCIM | d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14 | [
"MIT"
] | 58 | 2015-04-22T10:41:03.000Z | 2022-03-29T16:04:34.000Z | CIM15/CDPSM/Geographical/IEC61970/Core/PowerSystemResource.py | MaximeBaudette/PyCIM | d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14 | [
"MIT"
] | 12 | 2015-08-26T03:57:23.000Z | 2020-12-11T20:14:42.000Z | CIM15/CDPSM/Geographical/IEC61970/Core/PowerSystemResource.py | MaximeBaudette/PyCIM | d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14 | [
"MIT"
] | 35 | 2015-01-10T12:21:03.000Z | 2020-09-09T08:18:16.000Z | # Copyright (C) 2010-2011 Richard Lincoln
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish... | 44.819672 | 454 | 0.727871 | 357 | 2,734 | 5.492997 | 0.445378 | 0.079551 | 0.065273 | 0.017338 | 0.097909 | 0.079551 | 0.028557 | 0 | 0 | 0 | 0 | 0.006932 | 0.208486 | 2,734 | 60 | 455 | 45.566667 | 0.899261 | 0.611192 | 0 | 0.086957 | 0 | 0 | 0.007913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.043478 | 0 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8a1b19e8032eb20d0dd01395938c3aff57838eb7 | 371 | py | Python | account/decorators.py | AminAliH47/PicoStyle | 768daccc6f28f08aa848318d633af1a19544e499 | [
"Apache-2.0"
] | 19 | 2022-02-16T20:00:08.000Z | 2022-03-08T17:38:59.000Z | account/decorators.py | AminAliH47/PicoStyle | 768daccc6f28f08aa848318d633af1a19544e499 | [
"Apache-2.0"
] | 3 | 2022-02-16T20:59:11.000Z | 2022-02-23T20:40:12.000Z | account/decorators.py | AminAliH47/PicoStyle | 768daccc6f28f08aa848318d633af1a19544e499 | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import redirect
from django.urls import reverse_lazy
def is_login():
def decorator(view_func):
def wrap(request, *args, **kwargs):
if request.user.is_authenticated:
return redirect(reverse_lazy('main:index'))
return view_func(request, *args, **... | 24.733333 | 59 | 0.652291 | 44 | 371 | 5.363636 | 0.545455 | 0.084746 | 0.144068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25876 | 371 | 14 | 60 | 26.5 | 0.858182 | 0 | 0 | 0 | 0 | 0 | 0.026954 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.2 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a1ce7e7da906efc23ed68b4fa4ee5f3ed6b373e | 3,929 | py | Python | tests/test_urlrewriting.py | BrainDamage/Flexget | 50f75bdad64ce023daaff334df8478319ddb9f64 | [
"MIT"
] | null | null | null | tests/test_urlrewriting.py | BrainDamage/Flexget | 50f75bdad64ce023daaff334df8478319ddb9f64 | [
"MIT"
] | 1 | 2018-06-09T18:03:35.000Z | 2018-06-09T18:03:35.000Z | tests/test_urlrewriting.py | sasese/Flexget | 8cca4a6a3cacc919c7a5b36f428176e170739de5 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals, division, absolute_import
from tests import FlexGetBase
from nose.tools import assert_true
from flexget.plugin import get_plugin_by_name
class TestURLRewriters(FlexGetBase):
"""
Bad example, does things manually, you should use task.find_entry to check existance
... | 42.706522 | 108 | 0.637058 | 471 | 3,929 | 5.176221 | 0.239915 | 0.059065 | 0.053322 | 0.062756 | 0.507383 | 0.455701 | 0.423708 | 0.358491 | 0.257588 | 0.185398 | 0 | 0.019987 | 0.235938 | 3,929 | 91 | 109 | 43.175824 | 0.792139 | 0.041741 | 0 | 0.291667 | 0 | 0.125 | 0.45338 | 0 | 0 | 0 | 0 | 0.010989 | 0.166667 | 1 | 0.097222 | false | 0 | 0.055556 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a1e347be6afda45e5fce2ab154b99674b1183d0 | 1,223 | py | Python | unstable/local_tools/includeScore.py | lgpdv/tools-artbio | af48e9f6df2717ffd3731a974be1ec36e4eff779 | [
"MIT"
] | null | null | null | unstable/local_tools/includeScore.py | lgpdv/tools-artbio | af48e9f6df2717ffd3731a974be1ec36e4eff779 | [
"MIT"
] | null | null | null | unstable/local_tools/includeScore.py | lgpdv/tools-artbio | af48e9f6df2717ffd3731a974be1ec36e4eff779 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#By, drosofff@gmail.com
# command: includeScore.py <tabulated_score_file> <GFF> <score_enriched_GFF> id_column score_column filter_limit
import sys
def get_foldchanges (file, id_column=1, score_column=5, skipline=200, limit=1E-5):
scoredic = {} # a dic of scores with gene_id as keys
id_colum... | 26.021277 | 112 | 0.634505 | 197 | 1,223 | 3.771574 | 0.360406 | 0.033647 | 0.024226 | 0.037685 | 0.099596 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027523 | 0.197874 | 1,223 | 46 | 113 | 26.586957 | 0.729867 | 0.155356 | 0 | 0 | 0 | 0 | 0.019436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.029412 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a1ec0d2979f27320bcfaefeb8b63d5a7371fd4b | 967 | py | Python | pagarmecoreapi/http/http_context.py | pagarme/pagarme-core-api-python | c7b11ca78ab3e7e896e5b75048e6f72b511db00e | [
"MIT"
] | 6 | 2021-09-02T19:55:04.000Z | 2022-03-16T14:06:15.000Z | pagarmecoreapi/http/http_context.py | pagarme/pagarme-core-api-python | c7b11ca78ab3e7e896e5b75048e6f72b511db00e | [
"MIT"
] | 2 | 2021-10-11T22:48:15.000Z | 2022-01-24T18:24:23.000Z | pagarmecoreapi/http/http_context.py | pagarme/pagarme-core-api-python | c7b11ca78ab3e7e896e5b75048e6f72b511db00e | [
"MIT"
] | 2 | 2021-09-12T21:43:32.000Z | 2022-03-07T16:58:54.000Z | # -*- coding: utf-8 -*-
"""
pagarmecoreapi
This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
"""
class HttpContext(object):
"""An HTTP Context that contains both the original HttpRequest
object that intitiated the call and the HttpResponse object that
is... | 27.628571 | 84 | 0.601861 | 102 | 967 | 5.666667 | 0.54902 | 0.038062 | 0.072664 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004623 | 0.328852 | 967 | 34 | 85 | 28.441176 | 0.885978 | 0.673216 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a21b53a1dd1bbfe68d1735673ee063c7d741d3f | 2,697 | py | Python | rpg_svo/svo_analysis/src/svo_analysis/analyse_depth.py | vatanaksoytezer/zephyr | 3880dbdb62ec7908d4eed1bc173544979925997c | [
"MIT"
] | 8 | 2019-03-21T15:18:17.000Z | 2021-09-28T07:52:10.000Z | rpg_svo/svo_analysis/src/svo_analysis/analyse_depth.py | VatanTezer/zephyr | 3880dbdb62ec7908d4eed1bc173544979925997c | [
"MIT"
] | 1 | 2019-02-16T22:01:11.000Z | 2019-02-16T22:01:11.000Z | rpg_svo/svo_analysis/src/svo_analysis/analyse_depth.py | VatanTezer/zephyr | 3880dbdb62ec7908d4eed1bc173544979925997c | [
"MIT"
] | 2 | 2019-08-10T14:09:54.000Z | 2020-11-13T13:50:24.000Z | #!/usr/bin/python
import os
import argparse
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import rc
rc('font',**{'family':'serif','serif':['Cardo']})
rc('text', usetex=True)
def precision_plot(ax, errors, max_error, color, linestyle):
number_of_error_ranges = 500
error_step = max_error /... | 40.863636 | 106 | 0.683723 | 411 | 2,697 | 4.248175 | 0.287105 | 0.045819 | 0.041237 | 0.05441 | 0.321306 | 0.280641 | 0.203895 | 0.151203 | 0.151203 | 0.116838 | 0 | 0.030721 | 0.167223 | 2,697 | 66 | 107 | 40.863636 | 0.746661 | 0.005933 | 0 | 0.107143 | 0 | 0 | 0.076464 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.089286 | null | null | 0.053571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a21c593f5d91a8d32866186d7c606efc1870fc5 | 8,117 | py | Python | azure-devops/azext_devops/devops_sdk/v6_0/search/search_client.py | dhilmathy/azure-devops-cli-extension | 7146eb1135125bbba1649ab0529a50ffc8f4e172 | [
"MIT"
] | 248 | 2019-05-10T14:20:24.000Z | 2022-03-29T12:17:27.000Z | azure-devops/azext_devops/devops_sdk/v6_0/search/search_client.py | dhilmathy/azure-devops-cli-extension | 7146eb1135125bbba1649ab0529a50ffc8f4e172 | [
"MIT"
] | 147 | 2019-05-08T14:20:49.000Z | 2022-03-28T19:36:21.000Z | azure-devops/azext_devops/devops_sdk/v6_0/search/search_client.py | dhilmathy/azure-devops-cli-extension | 7146eb1135125bbba1649ab0529a50ffc8f4e172 | [
"MIT"
] | 121 | 2019-05-08T06:24:39.000Z | 2022-03-01T12:58:02.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -------------------------------------------------------------------... | 54.47651 | 142 | 0.6171 | 805 | 8,117 | 6.067081 | 0.219876 | 0.056306 | 0.031941 | 0.034398 | 0.545455 | 0.520885 | 0.453317 | 0.437346 | 0.396396 | 0.368141 | 0 | 0.033767 | 0.252064 | 8,117 | 148 | 143 | 54.844595 | 0.770549 | 0.066404 | 0 | 0.535714 | 0 | 0 | 0.160962 | 0.083741 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035714 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a22aac430b74dc5098f5c0cc15946101dcdcf0a | 52,022 | py | Python | python/ccxt/kucoin.py | wadaxofficial/ccxt | 765aaa4cd83c1e2dc75717d49b50a55ac4dc0487 | [
"MIT"
] | null | null | null | python/ccxt/kucoin.py | wadaxofficial/ccxt | 765aaa4cd83c1e2dc75717d49b50a55ac4dc0487 | [
"MIT"
] | 7 | 2021-01-29T08:13:03.000Z | 2021-04-19T06:42:19.000Z | python/ccxt/kucoin.py | wadaxofficial/ccxt | 765aaa4cd83c1e2dc75717d49b50a55ac4dc0487 | [
"MIT"
] | 4 | 2020-06-17T19:46:32.000Z | 2021-09-30T13:59:21.000Z | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.base.exchange import Exchange
import hashlib
import math
from ccxt.base.errors import ExchangeError
from ccxt.base.errors import ... | 40.737666 | 174 | 0.457729 | 4,102 | 52,022 | 5.743296 | 0.164066 | 0.029882 | 0.016427 | 0.014644 | 0.458593 | 0.413939 | 0.383675 | 0.360669 | 0.34611 | 0.338682 | 0 | 0.067347 | 0.416305 | 52,022 | 1,276 | 175 | 40.769592 | 0.708381 | 0.296259 | 0 | 0.37875 | 1 | 0.00125 | 0.110421 | 0.00718 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04125 | false | 0.0025 | 0.01875 | 0.00625 | 0.1025 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a2356687384841ee562dedd87d1ed2b9511b903 | 1,189 | py | Python | client.py | mrikea4real/pyIRC | 109b3b8b700614cb89890450373950268eb01f85 | [
"Apache-2.0"
] | null | null | null | client.py | mrikea4real/pyIRC | 109b3b8b700614cb89890450373950268eb01f85 | [
"Apache-2.0"
] | null | null | null | client.py | mrikea4real/pyIRC | 109b3b8b700614cb89890450373950268eb01f85 | [
"Apache-2.0"
] | null | null | null | import socket
class client:
def __init__(self):
self.clientSocket = self.setups.SocketSetup()
self.alias = ""
# Function for connecting to a server
def connect(self,alias,host,port):
try:
self.clienSocket.connect((host,port))
self.alias = alias
r... | 27.651163 | 87 | 0.582002 | 137 | 1,189 | 5.007299 | 0.394161 | 0.116618 | 0.058309 | 0.075802 | 0.166181 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010152 | 0.337258 | 1,189 | 42 | 88 | 28.309524 | 0.860406 | 0.203532 | 0 | 0.387097 | 0 | 0 | 0.012752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.193548 | false | 0 | 0.032258 | 0.032258 | 0.548387 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8a25bd5b101de51e5597b767409dc66c946bf1a4 | 934 | py | Python | examples/hid_keyboard_shortcuts.py | jersu11/Adafruit_CircuitPython_HID | b3e613953d3a30903e71d025ee577f902e23d246 | [
"Unlicense",
"MIT-0",
"MIT"
] | 174 | 2017-04-15T18:26:23.000Z | 2022-03-28T18:08:47.000Z | examples/hid_keyboard_shortcuts.py | jersu11/Adafruit_CircuitPython_HID | b3e613953d3a30903e71d025ee577f902e23d246 | [
"Unlicense",
"MIT-0",
"MIT"
] | 69 | 2017-04-02T20:48:27.000Z | 2022-03-23T22:20:01.000Z | examples/hid_keyboard_shortcuts.py | jersu11/Adafruit_CircuitPython_HID | b3e613953d3a30903e71d025ee577f902e23d246 | [
"Unlicense",
"MIT-0",
"MIT"
] | 83 | 2017-07-17T01:10:37.000Z | 2022-03-25T02:04:30.000Z | # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
import time
import board
import digitalio
import usb_hid
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keycode import Keycode
kbd = Keyboard(usb_hid.devices)
# define buttons. these can be any physical switch... | 28.30303 | 77 | 0.765525 | 136 | 934 | 5.227941 | 0.558824 | 0.016878 | 0.042194 | 0.090014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010127 | 0.154176 | 934 | 32 | 78 | 29.1875 | 0.889873 | 0.358672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.315789 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8a29f38b09f9b314343bf38c596c39b41e9d7748 | 327 | py | Python | qcodes/instrument_drivers/Keysight/Keysight_34461A_submodules.py | LGruenhaupt/Qcodes | ffb74dae53c13c4885e61b5a2df3f833d524de04 | [
"MIT"
] | 2 | 2019-04-09T09:39:22.000Z | 2019-10-24T19:07:19.000Z | qcodes/instrument_drivers/Keysight/Keysight_34461A_submodules.py | Dominik-Vogel/Qcodes | b4cf7d58bc1bf3be97af6bf48f57cb6b87d588bb | [
"MIT"
] | 12 | 2020-10-13T16:53:37.000Z | 2020-10-14T17:16:22.000Z | qcodes/instrument_drivers/Keysight/Keysight_34461A_submodules.py | Dominik-Vogel/Qcodes | b4cf7d58bc1bf3be97af6bf48f57cb6b87d588bb | [
"MIT"
] | 1 | 2020-05-03T22:47:40.000Z | 2020-05-03T22:47:40.000Z | from .private.Keysight_344xxA_submodules import _Keysight_344xxA
class Keysight_34461A(_Keysight_344xxA):
"""
This is the qcodes driver for the Keysight 34461A Multimeter
"""
def __init__(self, name, address, silent=False,
**kwargs):
super().__init__(name, address, silent, **k... | 29.727273 | 64 | 0.688073 | 37 | 327 | 5.675676 | 0.648649 | 0.2 | 0.161905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074219 | 0.217125 | 327 | 10 | 65 | 32.7 | 0.746094 | 0.183486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8a2b517960e028321f75d91631e722be8fa18996 | 645 | py | Python | src/formidable/serializers/form.py | danpercic86/formidable-backend | 9390b094588110d224eb633ecb337497a16be59f | [
"Apache-2.0"
] | 2 | 2021-01-25T23:40:39.000Z | 2021-05-24T00:16:27.000Z | src/formidable/serializers/form.py | danpercic86/formidable-backend | 9390b094588110d224eb633ecb337497a16be59f | [
"Apache-2.0"
] | 59 | 2021-03-01T03:49:56.000Z | 2022-03-15T07:30:26.000Z | src/formidable/serializers/form.py | danpercic86/formidable-backend | 9390b094588110d224eb633ecb337497a16be59f | [
"Apache-2.0"
] | null | null | null | from rest_framework.serializers import ModelSerializer
from formidable.constants import ID, NAME, DESCRIPTION, SECTIONS
from formidable.models import Form
from formidable.serializers.section import SectionMinimalSerializer
class FormSerializer(ModelSerializer):
sections = SectionMinimalSerializer(many=True, read... | 28.043478 | 67 | 0.755039 | 65 | 645 | 7.415385 | 0.446154 | 0.087137 | 0.070539 | 0.103734 | 0.352697 | 0.352697 | 0.352697 | 0.352697 | 0.352697 | 0.352697 | 0 | 0 | 0.181395 | 645 | 22 | 68 | 29.318182 | 0.912879 | 0 | 0 | 0.4 | 0 | 0 | 0.023256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.266667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8a2bb00085fb6ef063ca77faedb1a31ab086910b | 505 | py | Python | config/logger.py | scisneros/PasoAPasoBot | 24596a744851b53bdeb3405088ef03aedd2e495a | [
"MIT"
] | null | null | null | config/logger.py | scisneros/PasoAPasoBot | 24596a744851b53bdeb3405088ef03aedd2e495a | [
"MIT"
] | null | null | null | config/logger.py | scisneros/PasoAPasoBot | 24596a744851b53bdeb3405088ef03aedd2e495a | [
"MIT"
] | null | null | null | import logging
from logging.handlers import RotatingFileHandler
from os import path
# 3 MB max files, up to 2 backup files.
logging.basicConfig(format='%(asctime)s %(levelname)s - %(message)s - [%(funcName)s:%(lineno)d]',
level=logging.INFO,
handlers=[RotatingFileHandler(path.re... | 42.083333 | 106 | 0.617822 | 58 | 505 | 5.37931 | 0.706897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.253465 | 505 | 11 | 107 | 45.909091 | 0.793103 | 0.073267 | 0 | 0 | 0 | 0.125 | 0.186695 | 0.053648 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8a3329eab4a9da30c6eb32d79171bf456d03a84f | 279 | py | Python | main.py | uk-gov-mirror/alphagov.notifications-paas-autoscaler | 4039d59ae947e743c35c7727a3f089ef76cee902 | [
"MIT"
] | null | null | null | main.py | uk-gov-mirror/alphagov.notifications-paas-autoscaler | 4039d59ae947e743c35c7727a3f089ef76cee902 | [
"MIT"
] | null | null | null | main.py | uk-gov-mirror/alphagov.notifications-paas-autoscaler | 4039d59ae947e743c35c7727a3f089ef76cee902 | [
"MIT"
] | null | null | null | import logging
import sys
from app.autoscaler import Autoscaler
logging.basicConfig(
level=logging.WARNING,
handlers=[
logging.FileHandler('/home/vcap/logs/app.log'),
logging.StreamHandler(sys.stdout),
])
autoscaler = Autoscaler()
autoscaler.run()
| 18.6 | 55 | 0.709677 | 30 | 279 | 6.6 | 0.6 | 0.20202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175627 | 279 | 14 | 56 | 19.928571 | 0.86087 | 0 | 0 | 0 | 0 | 0 | 0.082437 | 0.082437 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a3e3a56b6b5ce6369ed90f34fc2b49362894804 | 4,041 | py | Python | pyspark/setup.py | bethunebtj/BigDL | 8e408f0226d7cbeeed53b7f26833ed931db056aa | [
"Apache-2.0"
] | 55 | 2018-01-12T01:43:29.000Z | 2021-03-09T02:35:56.000Z | pyspark/setup.py | jason-hzw/BigDL | ef4f4137965147e2bc59e41f40c4acbb50eeda97 | [
"Apache-2.0"
] | 4 | 2018-01-15T07:34:41.000Z | 2018-01-16T05:46:12.000Z | pyspark/setup.py | jason-hzw/BigDL | ef4f4137965147e2bc59e41f40c4acbb50eeda97 | [
"Apache-2.0"
] | 22 | 2018-01-15T14:18:15.000Z | 2019-12-16T18:51:33.000Z | #!/usr/bin/env python
#
# Copyright 2016 The BigDL Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 33.957983 | 97 | 0.635734 | 517 | 4,041 | 4.804642 | 0.398453 | 0.041868 | 0.050322 | 0.020531 | 0.080515 | 0.027375 | 0.027375 | 0.027375 | 0 | 0 | 0 | 0.01242 | 0.222965 | 4,041 | 118 | 98 | 34.245763 | 0.778662 | 0.142539 | 0 | 0.069767 | 0 | 0.011628 | 0.402262 | 0.063225 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.046512 | null | null | 0.104651 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a42054c27760c1340e4b4d5d3bd9ebb492b004f | 361 | py | Python | src/main/python/demos/equi.py | cowboysmall/codility | 79217e016a9aa4fb824bfd87365ba76fc494ad5d | [
"MIT"
] | null | null | null | src/main/python/demos/equi.py | cowboysmall/codility | 79217e016a9aa4fb824bfd87365ba76fc494ad5d | [
"MIT"
] | null | null | null | src/main/python/demos/equi.py | cowboysmall/codility | 79217e016a9aa4fb824bfd87365ba76fc494ad5d | [
"MIT"
] | null | null | null | import sys
'''
https://codility.com/demo/results/demoB22535-P8R/
'''
def solution(A):
L = 0
R = sum(A)
for i in xrange(len(A)):
R -= A[i]
if L == R:
return i
L += A[i]
return -1
def main(argv):
print solution([-1, 3, -4, 5, 1, -6, 2, 1])
if __name... | 11.645161 | 53 | 0.470914 | 56 | 361 | 2.892857 | 0.589286 | 0.024691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07173 | 0.34349 | 361 | 30 | 54 | 12.033333 | 0.611814 | 0 | 0 | 0 | 0 | 0 | 0.026756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a469db57f6a033017e8b8fba076cb8143cae09b | 1,002 | py | Python | Pandas7.py | MrYokkie/Self-learning-in-Pandas | ae2b2a68cb3593b200c8a645dad94b573961901a | [
"MIT"
] | null | null | null | Pandas7.py | MrYokkie/Self-learning-in-Pandas | ae2b2a68cb3593b200c8a645dad94b573961901a | [
"MIT"
] | null | null | null | Pandas7.py | MrYokkie/Self-learning-in-Pandas | ae2b2a68cb3593b200c8a645dad94b573961901a | [
"MIT"
] | null | null | null | import pandas as pd
import matplotlib.pyplot as plt
data = pd.read_csv("titanic.csv")#zadanie 1 i zadanie 2
data.columns
a = data.Survived
len(a)
data.Survived.value_counts()#zadanie 3
data2 = pd.read_csv("titanic.csv", index_col = "PassengerId")
data2
b = data2.loc[data2.Survived == 1]
c = data2... | 25.692308 | 137 | 0.690619 | 153 | 1,002 | 4.48366 | 0.444444 | 0.017493 | 0.08309 | 0.046647 | 0.055394 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04108 | 0.149701 | 1,002 | 39 | 138 | 25.692308 | 0.764085 | 0.158683 | 0 | 0 | 0 | 0 | 0.209011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.153846 | 0.076923 | 0 | 0.076923 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8a4cecb186262731e99890f3fa2059ffd2c2c763 | 876 | py | Python | lhotse/features/__init__.py | dophist/lhotse | 5aadfe89058cc3c8926ea600b356e7211577f907 | [
"Apache-2.0"
] | null | null | null | lhotse/features/__init__.py | dophist/lhotse | 5aadfe89058cc3c8926ea600b356e7211577f907 | [
"Apache-2.0"
] | null | null | null | lhotse/features/__init__.py | dophist/lhotse | 5aadfe89058cc3c8926ea600b356e7211577f907 | [
"Apache-2.0"
] | null | null | null | from .base import (
FeatureExtractor,
FeatureSet,
FeatureSetBuilder,
Features,
create_default_feature_extractor,
)
from .fbank import (
Fbank,
FbankConfig
)
from .io import (
FeaturesReader,
FeaturesWriter,
KaldiReader,
LilcomFilesReader,
LilcomFilesWriter,
LilcomHdf5... | 17.52 | 37 | 0.707763 | 67 | 876 | 9.119403 | 0.731343 | 0.036007 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005961 | 0.234018 | 876 | 49 | 38 | 17.877551 | 0.90462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.163265 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a4f2ac810e935def41aea9505f69131e03a1b61 | 725 | py | Python | src/utils/logger.py | opa-oz/python-utils-server | 9a911ee52b0893ef0680b4dcc700d4f50d9e0780 | [
"MIT"
] | null | null | null | src/utils/logger.py | opa-oz/python-utils-server | 9a911ee52b0893ef0680b4dcc700d4f50d9e0780 | [
"MIT"
] | null | null | null | src/utils/logger.py | opa-oz/python-utils-server | 9a911ee52b0893ef0680b4dcc700d4f50d9e0780 | [
"MIT"
] | null | null | null | import time
from .bcolors import BColors
class Logger:
def __init__(self, prefix='Untagged'):
self.prefix = prefix.upper()
def info(self, *args):
ts = time.asctime()
print(f'[{ts}]{BColors.GREEN}{BColors.BOLD}[{self.prefix}]:{BColors.END} ', *args)
def error(self, *args):
... | 30.208333 | 91 | 0.588966 | 93 | 725 | 4.548387 | 0.290323 | 0.141844 | 0.094563 | 0.132388 | 0.692671 | 0.692671 | 0.692671 | 0.609929 | 0.340426 | 0 | 0 | 0 | 0.204138 | 725 | 23 | 92 | 31.521739 | 0.733102 | 0 | 0 | 0.235294 | 0 | 0 | 0.366897 | 0.350345 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.117647 | 0 | 0.470588 | 0.235294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a553e394b75fe61a2735e4e5da7452e78f20f3d | 3,143 | py | Python | cogs/ipfy.py | Tanish121/leafy-bot | 21d2f4539d27edc1ec22b783f2695e7cd02cc096 | [
"MIT"
] | 1 | 2021-04-07T10:35:41.000Z | 2021-04-07T10:35:41.000Z | cogs/ipfy.py | Tanish121/leafy-bot | 21d2f4539d27edc1ec22b783f2695e7cd02cc096 | [
"MIT"
] | null | null | null | cogs/ipfy.py | Tanish121/leafy-bot | 21d2f4539d27edc1ec22b783f2695e7cd02cc096 | [
"MIT"
] | 2 | 2021-05-14T15:33:25.000Z | 2022-01-20T11:50:00.000Z | from discord.ext import commands
import requests
import discord
class Ipfy(commands.Cog):
def __init__(self, client):
self.client = client
@commands.Cog.listener()
async def on_ready(self):
print('Ipfy cog loaded successfully')
@commands.command(aliases=['ip'],description="Shows the ... | 36.546512 | 93 | 0.49825 | 321 | 3,143 | 4.753894 | 0.345794 | 0.083879 | 0.136304 | 0.178244 | 0.096986 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008338 | 0.389437 | 3,143 | 85 | 94 | 36.976471 | 0.786868 | 0.008909 | 0 | 0.222222 | 0 | 0 | 0.157354 | 0.007386 | 0 | 0 | 0.002569 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.041667 | 0 | 0.152778 | 0.013889 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a565f0195fedacf500e2dcc879cf924278afd68 | 1,153 | py | Python | electrum/gui/kivy/uix/dialogs/qr_scanner.py | p3ngu19z/electrum | 427b396c24ec1a3cfdca8e1a70c94537b35ad882 | [
"MIT"
] | 79 | 2017-11-10T03:00:57.000Z | 2022-02-27T16:35:04.000Z | electrum/gui/kivy/uix/dialogs/qr_scanner.py | p3ngu19z/electrum | 427b396c24ec1a3cfdca8e1a70c94537b35ad882 | [
"MIT"
] | 108 | 2018-03-13T10:43:26.000Z | 2021-05-14T21:26:06.000Z | electrum/gui/kivy/uix/dialogs/qr_scanner.py | p3ngu19z/electrum | 427b396c24ec1a3cfdca8e1a70c94537b35ad882 | [
"MIT"
] | 64 | 2017-12-19T09:09:23.000Z | 2022-02-08T10:26:13.000Z | from kivy.app import App
from kivy.factory import Factory
from kivy.lang import Builder
Factory.register('QRScanner', module='electrum.gui.kivy.qr_scanner')
class QrScannerDialog(Factory.AnimatedPopup):
__events__ = ('on_complete', )
def on_symbols(self, instance, value):
instance.stop()
sel... | 25.622222 | 82 | 0.623591 | 147 | 1,153 | 4.734694 | 0.544218 | 0.057471 | 0.043103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04195 | 0.235039 | 1,153 | 44 | 83 | 26.204545 | 0.747166 | 0.032958 | 0 | 0 | 0 | 0.028571 | 0.606915 | 0.121019 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.085714 | 0 | 0.2 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a595f7a59be40a32f32dae562ab7445e9ab44f9 | 72,938 | py | Python | python/ccxt/cryptocom.py | mattepozz/ccxt | f60278e707af6f6baa55ee027a907bd72d852201 | [
"MIT"
] | null | null | null | python/ccxt/cryptocom.py | mattepozz/ccxt | f60278e707af6f6baa55ee027a907bd72d852201 | [
"MIT"
] | null | null | null | python/ccxt/cryptocom.py | mattepozz/ccxt | f60278e707af6f6baa55ee027a907bd72d852201 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.base.exchange import Exchange
from ccxt.base.errors import ExchangeError
from ccxt.base.errors import AuthenticationError
from cc... | 42.039193 | 254 | 0.479873 | 6,232 | 72,938 | 5.480745 | 0.152439 | 0.037241 | 0.029102 | 0.010306 | 0.457167 | 0.390063 | 0.336866 | 0.317807 | 0.290022 | 0.258403 | 0 | 0.083047 | 0.389002 | 72,938 | 1,734 | 255 | 42.063437 | 0.683384 | 0.239738 | 0 | 0.332127 | 1 | 0.000905 | 0.159773 | 0.054139 | 0 | 0 | 0 | 0.000577 | 0 | 1 | 0.036199 | false | 0 | 0.011765 | 0.00362 | 0.085068 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a59bd41b36761361ff0d671fa9565e86e2fac70 | 460 | py | Python | henka/config_helpers/sources/mysql_source.py | pgarcia14180/henka | 850a01a272deaf414e70a818012f8b239018f460 | [
"MIT"
] | null | null | null | henka/config_helpers/sources/mysql_source.py | pgarcia14180/henka | 850a01a272deaf414e70a818012f8b239018f460 | [
"MIT"
] | null | null | null | henka/config_helpers/sources/mysql_source.py | pgarcia14180/henka | 850a01a272deaf414e70a818012f8b239018f460 | [
"MIT"
] | null | null | null | import pandas as pd
from henka.utils.dictionary import DictClass
from henka.config_helpers.clients.mysql_client import MySqlClient
class MySqlSource(DictClass):
def get_dataframe(self) -> pd.DataFrame:
client = MySqlClient(**self)
params = {}
column_names = client.get_column_names... | 32.857143 | 66 | 0.678261 | 52 | 460 | 5.826923 | 0.557692 | 0.145215 | 0.112211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232609 | 460 | 13 | 67 | 35.384615 | 0.858357 | 0 | 0 | 0 | 0 | 0 | 0.01566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8a5ebb427b73217254e7a2504808fdc27df183e2 | 790 | py | Python | insights/client/dmsetupWrap.py | sagaraivale/insights-core | 852a9669c998acf995e316bd407aeb4dbc6c485e | [
"Apache-2.0"
] | 1 | 2018-03-26T12:59:24.000Z | 2018-03-26T12:59:24.000Z | insights/client/dmsetupWrap.py | sagaraivale/insights-core | 852a9669c998acf995e316bd407aeb4dbc6c485e | [
"Apache-2.0"
] | null | null | null | insights/client/dmsetupWrap.py | sagaraivale/insights-core | 852a9669c998acf995e316bd407aeb4dbc6c485e | [
"Apache-2.0"
] | null | null | null | # !/usr/bin/python
# Copyright (C) 2016 Red Hat, All rights reserved.
# AUTHORS: Alex Collins <alcollin@redhat.com>
import util
import string
""" Module for extracting output of dmsetup. """
def getMajorMinor(deviceName, dmsetupLs):
"""
Given output of dmsetup ls this will return
themajor:minor (block n... | 25.483871 | 79 | 0.672152 | 97 | 790 | 5.463918 | 0.670103 | 0.030189 | 0.056604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012924 | 0.216456 | 790 | 30 | 80 | 26.333333 | 0.843296 | 0.178481 | 0 | 0 | 0 | 0 | 0.022917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a668a059024b830eb2e83b614deeadc0b6cf318 | 966 | py | Python | InvenTree/company/migrations/0005_contact.py | morelale/Inventory-G52 | ceea0533686305077c07c78ffa20ab4227ce2cf4 | [
"MIT"
] | 1 | 2020-08-18T00:09:30.000Z | 2020-08-18T00:09:30.000Z | InvenTree/company/migrations/0005_contact.py | morelale/Inventory-G52 | ceea0533686305077c07c78ffa20ab4227ce2cf4 | [
"MIT"
] | null | null | null | InvenTree/company/migrations/0005_contact.py | morelale/Inventory-G52 | ceea0533686305077c07c78ffa20ab4227ce2cf4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.12 on 2018-04-30 07:19
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('company', '0004_company_url'),
]
operations = [
... | 34.5 | 139 | 0.611801 | 106 | 966 | 5.424528 | 0.575472 | 0.062609 | 0.062609 | 0.093913 | 0.125217 | 0.125217 | 0.125217 | 0 | 0 | 0 | 0 | 0.046703 | 0.246377 | 966 | 27 | 140 | 35.777778 | 0.743132 | 0.071429 | 0 | 0 | 1 | 0 | 0.091723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a6a486b59b808e9ca78e5f654612b884c787345 | 427 | py | Python | ltc/analyzer/migrations/0010_auto_20210603_1622.py | v0devil/jltom | b302a39a187b8e1154c6deda636a4db8b30bb40b | [
"MIT"
] | 4 | 2016-12-30T13:26:59.000Z | 2017-04-26T12:07:36.000Z | ltc/analyzer/migrations/0010_auto_20210603_1622.py | v0devil/jltom | b302a39a187b8e1154c6deda636a4db8b30bb40b | [
"MIT"
] | null | null | null | ltc/analyzer/migrations/0010_auto_20210603_1622.py | v0devil/jltom | b302a39a187b8e1154c6deda636a4db8b30bb40b | [
"MIT"
] | null | null | null | # Generated by Django 2.2.20 on 2021-06-03 14:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('analyzer', '0009_graphitevariable_period'),
]
operations = [
migrations.AlterField(
model_name='graphitevariable',
... | 22.473684 | 74 | 0.618267 | 44 | 427 | 5.909091 | 0.795455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070064 | 0.264637 | 427 | 18 | 75 | 23.722222 | 0.757962 | 0.107728 | 0 | 0 | 1 | 0 | 0.153034 | 0.073879 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a6bac4b8b7b367e18492b0671a8f489f4cf8beb | 254 | py | Python | scraper/python/GrabzIt/GrabzItScrape.py | Vman45/grabzit | 24d918c899cf5c1e585c5c5b7f2dd4527e9fef6c | [
"MIT"
] | 67 | 2015-06-30T14:19:00.000Z | 2022-03-30T23:17:11.000Z | scraper/python/GrabzIt/GrabzItScrape.py | RajuHarry/grabzit | 24d918c899cf5c1e585c5c5b7f2dd4527e9fef6c | [
"MIT"
] | 21 | 2016-06-04T20:36:59.000Z | 2022-02-26T03:34:52.000Z | scraper/python/GrabzIt/GrabzItScrape.py | RajuHarry/grabzit | 24d918c899cf5c1e585c5c5b7f2dd4527e9fef6c | [
"MIT"
] | 41 | 2015-04-14T19:15:19.000Z | 2022-01-29T18:28:10.000Z | #!/usr/bin/python
class GrabzItScrape:
def __init__(self, identifier, name, status, nextRun, results):
self.ID = identifier
self.Name = name
self.Status = status
self.NextRun = nextRun
self.Results = results
| 23.090909 | 67 | 0.625984 | 28 | 254 | 5.535714 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.279528 | 254 | 10 | 68 | 25.4 | 0.846995 | 0.062992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a6ec1fa4c556a0b6e02c2024240c3c1ff093e5a | 49,001 | py | Python | scons/scons-local-2.3.3/SCons/Util.py | pedrishi/pdb2pqr_pypka | 74f64948658d021a8bfc8fd78936ce4186ffc88e | [
"BSD-3-Clause"
] | null | null | null | scons/scons-local-2.3.3/SCons/Util.py | pedrishi/pdb2pqr_pypka | 74f64948658d021a8bfc8fd78936ce4186ffc88e | [
"BSD-3-Clause"
] | null | null | null | scons/scons-local-2.3.3/SCons/Util.py | pedrishi/pdb2pqr_pypka | 74f64948658d021a8bfc8fd78936ce4186ffc88e | [
"BSD-3-Clause"
] | null | null | null | """SCons.Util
Various utility functions go here.
"""
#
# Copyright (c) 2001 - 2014 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# wit... | 32.820496 | 96 | 0.61262 | 6,418 | 49,001 | 4.563883 | 0.16033 | 0.007579 | 0.006691 | 0.008876 | 0.317777 | 0.290192 | 0.268717 | 0.237069 | 0.217302 | 0.206992 | 0 | 0.00737 | 0.299402 | 49,001 | 1,492 | 97 | 32.842493 | 0.845849 | 0.194914 | 0 | 0.452489 | 0 | 0 | 0.021098 | 0.001906 | 0 | 0 | 0 | 0.00067 | 0.002262 | 0 | null | null | 0.00905 | 0.0181 | null | null | 0.006787 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a6f451afae75e3485b447e2f48d84767751a993 | 6,760 | py | Python | capacity_admin_sdk/model/health_assessment/health_assessment_rule_version_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | 5 | 2019-07-31T04:11:05.000Z | 2021-01-07T03:23:20.000Z | capacity_admin_sdk/model/health_assessment/health_assessment_rule_version_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | capacity_admin_sdk/model/health_assessment/health_assessment_rule_version_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: health_assessment_rule_version.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
f... | 56.806723 | 890 | 0.814497 | 805 | 6,760 | 6.38882 | 0.203727 | 0.115108 | 0.044332 | 0.027999 | 0.563484 | 0.463543 | 0.459654 | 0.435349 | 0.411433 | 0.411433 | 0 | 0.029455 | 0.090976 | 6,760 | 118 | 891 | 57.288136 | 0.807486 | 0.04142 | 0 | 0.418367 | 1 | 0.010204 | 0.275143 | 0.252124 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a7079e192b115232169b54bea2424bbdd368a52 | 952 | py | Python | docker-monolith/infra/ansible/environment/dynamic_inventory.py | Otus-DevOps-2020-08/lifeisgoodvega_microservices | fae0b024a7ba70ca937da9b8d1ceca72ee4f0067 | [
"MIT"
] | null | null | null | docker-monolith/infra/ansible/environment/dynamic_inventory.py | Otus-DevOps-2020-08/lifeisgoodvega_microservices | fae0b024a7ba70ca937da9b8d1ceca72ee4f0067 | [
"MIT"
] | null | null | null | docker-monolith/infra/ansible/environment/dynamic_inventory.py | Otus-DevOps-2020-08/lifeisgoodvega_microservices | fae0b024a7ba70ca937da9b8d1ceca72ee4f0067 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import re, subprocess, argparse, os, json
dir_path = os.path.dirname(os.path.realpath(__file__))
parser = argparse.ArgumentParser(description='Expecting a --list argument')
parser.add_argument('--list', help='Return json with dynamicaly requested hosts addresses', action="store_true")
args = parser.p... | 38.08 | 112 | 0.697479 | 129 | 952 | 4.96124 | 0.534884 | 0.0375 | 0.03125 | 0.040625 | 0.053125 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008516 | 0.136555 | 952 | 24 | 113 | 39.666667 | 0.770073 | 0.016807 | 0 | 0 | 0 | 0 | 0.241711 | 0.024599 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a763fcce4e1d53fd3623386010ecf547016b580 | 4,945 | py | Python | test/binary/test_uint.py | HansBug/hbutils | 6872311c8a441c5955572e0093b10189a2b90708 | [
"Apache-2.0"
] | null | null | null | test/binary/test_uint.py | HansBug/hbutils | 6872311c8a441c5955572e0093b10189a2b90708 | [
"Apache-2.0"
] | 25 | 2021-10-03T06:19:05.000Z | 2022-03-27T12:48:57.000Z | test/binary/test_uint.py | HansBug/hbutils | 6872311c8a441c5955572e0093b10189a2b90708 | [
"Apache-2.0"
] | null | null | null | import io
import pytest
from hbutils.binary import c_uint8, c_uint16, c_uint32, c_uint64, c_ushort, c_uint, c_ulong, c_ulonglong, c_ubyte
from ..testings import linux_mark, windows_mark, macos_mark
class TestBinaryUint:
@pytest.mark.unittest
def test_int8(self):
assert c_uint8.size == 1
asse... | 34.58042 | 113 | 0.591709 | 655 | 4,945 | 4.29313 | 0.135878 | 0.107041 | 0.068279 | 0.058677 | 0.606686 | 0.486486 | 0.477596 | 0.477596 | 0.337482 | 0.337482 | 0 | 0.117181 | 0.311426 | 4,945 | 142 | 114 | 34.823944 | 0.708664 | 0 | 0 | 0.344828 | 0 | 0 | 0.061476 | 0.051769 | 0 | 0 | 0.061476 | 0 | 0.405172 | 1 | 0.060345 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a76918bd37629781d70ddeefafb5836deec6c86 | 2,987 | py | Python | models/commands/GetFileInformationFromDeviceCommand.py | pwnfoo/SirepRAT | 99c0231b81bf747d91a31c5e0a7d1db0d976229f | [
"BSD-3-Clause"
] | 357 | 2019-03-02T20:52:21.000Z | 2022-03-25T07:14:54.000Z | models/commands/GetFileInformationFromDeviceCommand.py | walkerdenzel99/SirepRAT | b8ef60ba40e3581ffc28441a16509ad8ffe5963d | [
"BSD-3-Clause"
] | 16 | 2019-03-12T15:53:47.000Z | 2021-01-06T02:08:59.000Z | models/commands/GetFileInformationFromDeviceCommand.py | walkerdenzel99/SirepRAT | b8ef60ba40e3581ffc28441a16509ad8ffe5963d | [
"BSD-3-Clause"
] | 89 | 2019-03-04T11:21:41.000Z | 2022-03-25T02:05:55.000Z | #!/usr/bin/env python3
"""
BSD 3-Clause License
Copyright (c) 2017, SafeBreach Labs
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright noti... | 40.364865 | 107 | 0.762638 | 389 | 2,987 | 5.773779 | 0.475578 | 0.035619 | 0.024933 | 0.029386 | 0.137133 | 0.115761 | 0.060552 | 0.060552 | 0.060552 | 0.060552 | 0 | 0.009002 | 0.181788 | 2,987 | 73 | 108 | 40.917808 | 0.909984 | 0.656846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8a78064b6c2cbbb519f53d70cb1410f8f254b1d8 | 1,147 | py | Python | pornhub/models/user.py | blueberry-maker/pornhub-dl | e5e5b1e09f514ecb094af35edb3d6336a6cda294 | [
"MIT"
] | null | null | null | pornhub/models/user.py | blueberry-maker/pornhub-dl | e5e5b1e09f514ecb094af35edb3d6336a6cda294 | [
"MIT"
] | null | null | null | pornhub/models/user.py | blueberry-maker/pornhub-dl | e5e5b1e09f514ecb094af35edb3d6336a6cda294 | [
"MIT"
] | null | null | null | """The db model for a user."""
from sqlalchemy import Column, func
from sqlalchemy.orm import relationship
from sqlalchemy.types import (
Boolean,
DateTime,
String,
)
from pornhub.db import base
class User(base):
"""The model for a user."""
__tablename__ = "user"
USER = "users"
MODEL = ... | 23.895833 | 76 | 0.626853 | 146 | 1,147 | 4.787671 | 0.40411 | 0.06867 | 0.04721 | 0.064378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262424 | 1,147 | 47 | 77 | 24.404255 | 0.826241 | 0.093287 | 0 | 0 | 0 | 0 | 0.025515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.129032 | 0 | 0.612903 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8a78ea1da2bd16b0466493fc39c74cf8b3b8d874 | 11,093 | py | Python | archive/rrt_integrated.py | kuubi3d-udacity/motion_planning | 01a42e9ac888a2fdfd71f9f35100572a25632081 | [
"MIT"
] | null | null | null | archive/rrt_integrated.py | kuubi3d-udacity/motion_planning | 01a42e9ac888a2fdfd71f9f35100572a25632081 | [
"MIT"
] | null | null | null | archive/rrt_integrated.py | kuubi3d-udacity/motion_planning | 01a42e9ac888a2fdfd71f9f35100572a25632081 | [
"MIT"
] | null | null | null | # coding: utf-8
# # Rapidly-Exploring Random Tree (RRT)
#
# Your task is to generate an RRT based on the following pseudocode:
#
# ```
# def generate_RRT(x_init, num_vertices, dt):
# rrt = RRT(x_init)
# for k in range(num_vertices):
# x_rand = sample_state()
# x_near = nearest_neighbor(x_rand... | 29.981081 | 255 | 0.581448 | 1,536 | 11,093 | 4.053385 | 0.223307 | 0.016865 | 0.017347 | 0.007228 | 0.22406 | 0.188725 | 0.147125 | 0.137006 | 0.115483 | 0.107774 | 0 | 0.02807 | 0.296674 | 11,093 | 369 | 256 | 30.062331 | 0.769931 | 0.295592 | 0 | 0.063636 | 1 | 0 | 0.044191 | 0 | 0 | 0 | 0 | 0.00271 | 0 | 1 | 0.109091 | false | 0 | 0.081818 | 0.027273 | 0.281818 | 0.072727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a7ac547886a5775b6ff5239b6fc9828faa7b1ac | 948 | py | Python | migrations/versions/2018_05_17_unify_uris.py | racedisparityaudit/rd_cms | a12f0e3f5461cc41eed0077ed02e11efafc5dd76 | [
"MIT"
] | 1 | 2021-10-06T13:48:36.000Z | 2021-10-06T13:48:36.000Z | migrations/versions/2018_05_17_unify_uris.py | racedisparityaudit/ethnicity-facts-and-figures-publisher | 63a3bd5618a04b2b853868aae35d54730077f14c | [
"MIT"
] | 116 | 2018-11-02T17:20:47.000Z | 2022-02-09T11:06:22.000Z | migrations/versions/2018_05_17_unify_uris.py | racedisparityaudit/rd_cms | a12f0e3f5461cc41eed0077ed02e11efafc5dd76 | [
"MIT"
] | 2 | 2018-11-09T16:47:35.000Z | 2020-04-09T13:06:48.000Z | """Update old version URIs to be the same as the latest version
Revision ID: 2018_05_17_unify_uris
Revises: 2018_05_04_coalesce_contacts
Create Date: 2018-05-17 11:50:00.000000
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = "2018_05_17_unify_uris"
down_revisio... | 23.7 | 117 | 0.67827 | 138 | 948 | 4.5 | 0.550725 | 0.048309 | 0.038647 | 0.041868 | 0.132045 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07355 | 0.254219 | 948 | 39 | 118 | 24.307692 | 0.804809 | 0.366034 | 0 | 0 | 0 | 0 | 0.176895 | 0.176895 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.083333 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8a7f6bb57d78c43a85cdd16e88c536272923e5b9 | 383 | py | Python | audio/python_src/save_wav_16.py | yuchunsheng/aiiot | d3bdfa33640ac7d803c803d981e81ced913ab365 | [
"MIT"
] | null | null | null | audio/python_src/save_wav_16.py | yuchunsheng/aiiot | d3bdfa33640ac7d803c803d981e81ced913ab365 | [
"MIT"
] | null | null | null | audio/python_src/save_wav_16.py | yuchunsheng/aiiot | d3bdfa33640ac7d803c803d981e81ced913ab365 | [
"MIT"
] | null | null | null |
import numpy as np
import scipy.io.wavfile
try:
with open('c:\\temp\\audio_raw', "rb") as f:
input_bytearray= np.fromfile(f,dtype=np.dtype('<i2')) # big endian >i2
print(input_bytearray.shape)
print(input_bytearray.dtype)
scipy.io.wavfile.write("c:\\temp\\output1.wav", 16000, input_bytearray... | 23.9375 | 79 | 0.684073 | 57 | 383 | 4.508772 | 0.631579 | 0.217899 | 0.108949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025078 | 0.167102 | 383 | 15 | 80 | 25.533333 | 0.780564 | 0.036554 | 0 | 0 | 0 | 0 | 0.203297 | 0.057692 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.3 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a81bf00bf7f9ef7e809813878201b41bca70ccb | 1,467 | py | Python | tools/build/v2/test/indirect_conditional.py | jmuskaan72/Boost | 047e36c01841a8cd6a5c74d4e3034da46e327bc1 | [
"BSL-1.0"
] | 198 | 2015-01-13T05:47:18.000Z | 2022-03-09T04:46:46.000Z | tools/build/v2/test/indirect_conditional.py | xiaoliang2121/Boost | fc90c3fde129c62565c023f091eddc4a7ed9902b | [
"BSL-1.0"
] | 4 | 2015-03-19T08:23:23.000Z | 2019-06-24T07:48:47.000Z | tools/build/v2/test/indirect_conditional.py | xiaoliang2121/Boost | fc90c3fde129c62565c023f091eddc4a7ed9902b | [
"BSL-1.0"
] | 139 | 2015-01-15T20:09:31.000Z | 2022-01-31T15:21:16.000Z | #!/usr/bin/python
# Copyright (C) Vladimir Prus 2006.
# Distributed under the Boost Software License, Version 1.0. (See
# accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
import BoostBuild
t = BoostBuild.Tester()
t.write("jamroot.jam", """
exe a1 : a1.cpp : <condition... | 18.56962 | 66 | 0.597137 | 188 | 1,467 | 4.547872 | 0.340426 | 0.119298 | 0.084211 | 0.084211 | 0.487719 | 0.487719 | 0.436257 | 0.311111 | 0.245614 | 0 | 0 | 0.030142 | 0.231084 | 1,467 | 78 | 67 | 18.807692 | 0.727837 | 0.134288 | 0 | 0.350877 | 0 | 0 | 0.801179 | 0.228307 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017544 | 0 | 0.087719 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a833c62caf85376a7008f1e2a1b707dee6bba06 | 1,090 | py | Python | api/tacticalrmm/winupdate/migrations/0003_auto_20200828_0134.py | infinite8co/tacticalrmm | bd7ce5417ec672552ec3cba325318795ccde972e | [
"MIT"
] | 903 | 2019-10-22T22:56:42.000Z | 2022-03-18T14:15:54.000Z | api/tacticalrmm/winupdate/migrations/0003_auto_20200828_0134.py | infinite8co/tacticalrmm | bd7ce5417ec672552ec3cba325318795ccde972e | [
"MIT"
] | 720 | 2019-12-07T08:11:26.000Z | 2022-03-17T21:47:04.000Z | api/tacticalrmm/winupdate/migrations/0003_auto_20200828_0134.py | infinite8co/tacticalrmm | bd7ce5417ec672552ec3cba325318795ccde972e | [
"MIT"
] | 231 | 2020-02-11T14:14:21.000Z | 2022-03-16T21:23:10.000Z | # Generated by Django 3.1 on 2020-08-28 01:34
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("automation", "0004_auto_20200617_0332"),
("agents", "0012_auto_20200810_0544"),
("winupdate", "0002_auto_20200... | 27.948718 | 60 | 0.53945 | 97 | 1,090 | 5.907216 | 0.515464 | 0.055846 | 0.073298 | 0.115183 | 0.359511 | 0.359511 | 0.359511 | 0.359511 | 0.359511 | 0.359511 | 0 | 0.088068 | 0.354128 | 1,090 | 38 | 61 | 28.684211 | 0.725852 | 0.03945 | 0 | 0.5 | 1 | 0 | 0.185646 | 0.066029 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.15625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a845a58af9483d30ab14310b30163190bcb9896 | 2,536 | py | Python | example_nets/DQN_path_planning.py | ZhiangChen/soft_arm | 7df9585695452985887b09013317015ea4b73aea | [
"MIT"
] | null | null | null | example_nets/DQN_path_planning.py | ZhiangChen/soft_arm | 7df9585695452985887b09013317015ea4b73aea | [
"MIT"
] | null | null | null | example_nets/DQN_path_planning.py | ZhiangChen/soft_arm | 7df9585695452985887b09013317015ea4b73aea | [
"MIT"
] | null | null | null | from DQN import DeepQNetwork
from map_env import Map
import numpy as np
EPS = 300000
STEP = 400
action_space = ['f','b','l','r']
DIST = 0.01
R = 0.5
MEMORYCAPACITY = 400000
def compute_reward(state, state_):
"""
if distance is decreasing, reward +1; if distance is increasing, reward -1;
if reach the goal... | 25.616162 | 111 | 0.524448 | 314 | 2,536 | 4.073248 | 0.33758 | 0.043784 | 0.039093 | 0.053167 | 0.36122 | 0.315872 | 0.236122 | 0.236122 | 0.236122 | 0.236122 | 0 | 0.050943 | 0.373028 | 2,536 | 99 | 112 | 25.616162 | 0.753459 | 0.010647 | 0 | 0.371429 | 0 | 0 | 0.006948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042857 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a863ea9c9138271734ecff40cf7d10dbdd8be93 | 9,107 | py | Python | main.py | mister-rainbow/Chat-Bot-Python_Aryan | 24b5c3077680b97ab494db204c2b041292955691 | [
"MIT"
] | null | null | null | main.py | mister-rainbow/Chat-Bot-Python_Aryan | 24b5c3077680b97ab494db204c2b041292955691 | [
"MIT"
] | null | null | null | main.py | mister-rainbow/Chat-Bot-Python_Aryan | 24b5c3077680b97ab494db204c2b041292955691 | [
"MIT"
] | null | null | null | # Coded by Aryan Agrawal of NPS Koramangala
# Please install the tkinter module on your divice using pip install
from tkinter import *
import warnings
import datetime
from datetime import *
import time
# Please install the calander module on your divice using pip install
import calendar
warnings.filterwarnings("ignore"... | 50.314917 | 1,005 | 0.632151 | 1,225 | 9,107 | 4.386122 | 0.286531 | 0.011539 | 0.011725 | 0.009678 | 0.203983 | 0.167504 | 0.138098 | 0.114647 | 0.104597 | 0.09008 | 0 | 0.021713 | 0.266718 | 9,107 | 181 | 1,006 | 50.314917 | 0.782869 | 0.085758 | 0 | 0.189189 | 0 | 0.033784 | 0.281743 | 0.045974 | 0 | 0 | 0 | 0.005525 | 0 | 1 | 0.047297 | false | 0 | 0.067568 | 0 | 0.22973 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a88826ee03dd6910a1fd6c00820a067e5f8bada | 474 | py | Python | apollo/models/response.py | rpetti/apollo | 1304d8623e6dfe8c9b269b7e90611b3688c0c61e | [
"MIT"
] | null | null | null | apollo/models/response.py | rpetti/apollo | 1304d8623e6dfe8c9b269b7e90611b3688c0c61e | [
"MIT"
] | null | null | null | apollo/models/response.py | rpetti/apollo | 1304d8623e6dfe8c9b269b7e90611b3688c0c61e | [
"MIT"
] | null | null | null | from sqlalchemy import Column, BigInteger, Integer, Text, ForeignKey, DateTime
from sqlalchemy.orm import relationship
from . import Base
class Response(Base):
__tablename__ = "responses"
event_id = Column(
Integer, ForeignKey("events.id", ondelete="CASCADE"), primary_key=True
)
user_id = Col... | 27.882353 | 80 | 0.704641 | 53 | 474 | 6.132075 | 0.54717 | 0.086154 | 0.104615 | 0.147692 | 0.190769 | 0.190769 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191983 | 474 | 16 | 81 | 29.625 | 0.848564 | 0 | 0 | 0 | 0 | 0 | 0.084388 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8a8de8ea55021382ac9ac5037747eef38105f09b | 254 | py | Python | aula022.py | romstk/pythonExercicios | a7a6ce7828ec28f5d8eadc0207214722cfc6fcd8 | [
"MIT"
] | null | null | null | aula022.py | romstk/pythonExercicios | a7a6ce7828ec28f5d8eadc0207214722cfc6fcd8 | [
"MIT"
] | null | null | null | aula022.py | romstk/pythonExercicios | a7a6ce7828ec28f5d8eadc0207214722cfc6fcd8 | [
"MIT"
] | null | null | null | from uteis import numeros
#def fatorial(n):
# f = 1
# for c in range(1,n+1):
# f *= c
# return f
num = int(input('Digite um valor: '))
fat = numeros.fatorial(num)
print(f'O fatorial de {num} é {fat} e seu dobro é {numeros.dobro(num)}') | 21.166667 | 72 | 0.602362 | 45 | 254 | 3.4 | 0.622222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015464 | 0.23622 | 254 | 12 | 72 | 21.166667 | 0.773196 | 0.30315 | 0 | 0 | 0 | 0.25 | 0.456647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a8ffd11531f08dbdeb8cde06620f0945b40b0e8 | 1,199 | py | Python | buzzmobile/tests/unit/process/test_bearing.py | gtagency/buzzmobile | 8f7215d35b3b7fe3c6ca6419f0123ba18e8aca0a | [
"MIT"
] | 25 | 2015-02-18T04:15:09.000Z | 2019-12-11T14:29:02.000Z | buzzmobile/tests/unit/process/test_bearing.py | gtagency/buzzmobile | 8f7215d35b3b7fe3c6ca6419f0123ba18e8aca0a | [
"MIT"
] | 173 | 2016-09-16T05:34:27.000Z | 2017-11-15T07:31:53.000Z | buzzmobile/tests/unit/process/test_bearing.py | gtagency/buzzmobile | 8f7215d35b3b7fe3c6ca6419f0123ba18e8aca0a | [
"MIT"
] | 4 | 2015-01-18T15:46:35.000Z | 2017-04-08T00:39:05.000Z | import unittest
import numpy as np
from collections import namedtuple
from pyrostest import RosTest, with_launch_file, launch_node
from process.bearing import calculate_directions
from sensor_msgs.msg import NavSatFix
from std_msgs.msg import Float64
fix = namedtuple('fix', ['latitude', 'longitude'])
class TestBear... | 36.333333 | 94 | 0.687239 | 158 | 1,199 | 5.082278 | 0.443038 | 0.059776 | 0.042341 | 0.052304 | 0.069738 | 0.069738 | 0 | 0 | 0 | 0 | 0 | 0.09434 | 0.204337 | 1,199 | 32 | 95 | 37.46875 | 0.747379 | 0.037531 | 0 | 0 | 0 | 0 | 0.07913 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0 | 0.318182 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8a90c1c88494cc643f44017cf666e8ed26e16fb5 | 537 | py | Python | benchmarks/matrix_library_tests/plotGraph.py | tcrundall/chronostar | bdb5cd965e862ba5cc21bee75d5c8620e106c0cc | [
"MIT"
] | 4 | 2018-05-28T11:05:42.000Z | 2021-05-14T01:13:11.000Z | benchmarks/matrix_library_tests/plotGraph.py | tcrundall/chronostar | bdb5cd965e862ba5cc21bee75d5c8620e106c0cc | [
"MIT"
] | 13 | 2019-08-14T07:30:24.000Z | 2021-11-08T23:44:29.000Z | benchmarks/matrix_library_tests/plotGraph.py | tcrundall/chronostar | bdb5cd965e862ba5cc21bee75d5c8620e106c0cc | [
"MIT"
] | 4 | 2016-04-21T08:25:26.000Z | 2021-02-25T06:53:52.000Z | import matplotlib.pyplot as plt
import numpy as np
eig = [0.730823, 0.72486, 0.727342, 0.726392, 0.727197]
gsl = [0.007299, 0.007733, 0.007961, 0.007401, 0.008027]
eig_std = np.std(eig)
gsl_std = np.std(gsl)
eig_mean = np.mean(eig)
gsl_mean = np.mean(gsl)
plt.bar([0, 1],[eig_mean, gsl_mean], yerr=[eig_std, gsl_std... | 21.48 | 61 | 0.651769 | 93 | 537 | 3.655914 | 0.505376 | 0.035294 | 0.047059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221198 | 0.191806 | 537 | 24 | 62 | 22.375 | 0.562212 | 0 | 0 | 0 | 0 | 0 | 0.180633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a94be89172a5ca85da39659e9173470ee284a49 | 7,854 | py | Python | project/reports/election_prediction/pattern/web/pdf/pdftypes.py | vinceHardy/learning | 941e5979d471567411e7593c36617ef4a8e47f70 | [
"MIT"
] | 2 | 2015-12-08T15:59:25.000Z | 2016-03-15T20:11:29.000Z | project/reports/election_prediction/pattern/web/pdf/pdftypes.py | johnqoe/ntds_2016 | 2c207029e7c93807fe57b0a4ae098c8afe38a661 | [
"MIT"
] | null | null | null | project/reports/election_prediction/pattern/web/pdf/pdftypes.py | johnqoe/ntds_2016 | 2c207029e7c93807fe57b0a4ae098c8afe38a661 | [
"MIT"
] | 1 | 2020-10-15T08:46:59.000Z | 2020-10-15T08:46:59.000Z | #!/usr/bin/env python2
import sys
import zlib
from lzw import lzwdecode
from ascii85 import ascii85decode, asciihexdecode
from runlength import rldecode
from psparser import PSException, PSObject
from psparser import LIT, KWD, STRICT
LITERAL_CRYPT = LIT('Crypt')
# Abbreviation of Filter names in PDF 4.8.6. "Inline Im... | 30.091954 | 100 | 0.5671 | 931 | 7,854 | 4.70247 | 0.20623 | 0.040201 | 0.026725 | 0.023984 | 0.269301 | 0.232755 | 0.150525 | 0.085884 | 0.07355 | 0.037003 | 0 | 0.010051 | 0.328622 | 7,854 | 260 | 101 | 30.207692 | 0.820216 | 0.037051 | 0 | 0.29798 | 0 | 0 | 0.074621 | 0 | 0 | 0 | 0 | 0 | 0.020202 | 0 | null | null | 0.025253 | 0.035354 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a9a17011e8863519147a5559b1fdcd58bee0253 | 1,673 | py | Python | patches/datasets/pilgrimm/messages.py | sflippl/patches | c19889e676e231af44669a01c61854e9e5791227 | [
"MIT"
] | null | null | null | patches/datasets/pilgrimm/messages.py | sflippl/patches | c19889e676e231af44669a01c61854e9e5791227 | [
"MIT"
] | null | null | null | patches/datasets/pilgrimm/messages.py | sflippl/patches | c19889e676e231af44669a01c61854e9e5791227 | [
"MIT"
] | null | null | null | """Message passing enables object impermanent worlds.
"""
class Message:
"""A message can be passed between layers in order to affect the model's
behavior.
Each message has a unique id, which can be used to manipulate this message
afterwards.
"""
def __init__(self, msg):
self.msg = ms... | 24.602941 | 78 | 0.567244 | 215 | 1,673 | 4.195349 | 0.395349 | 0.033259 | 0.036585 | 0.053215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001789 | 0.331739 | 1,673 | 67 | 79 | 24.970149 | 0.805009 | 0.206216 | 0 | 0.071429 | 0 | 0 | 0.034135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0.02381 | 0 | 0.02381 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a9a55a527e9393c52785ea47970b0654f5bc353 | 4,728 | py | Python | tests/rest/client/v1/test_events.py | Kolatzek/synapse | 7ce1f97a1353e7bd9232c22a20835e40fa5662e0 | [
"Apache-2.0"
] | null | null | null | tests/rest/client/v1/test_events.py | Kolatzek/synapse | 7ce1f97a1353e7bd9232c22a20835e40fa5662e0 | [
"Apache-2.0"
] | null | null | null | tests/rest/client/v1/test_events.py | Kolatzek/synapse | 7ce1f97a1353e7bd9232c22a20835e40fa5662e0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2014-2016 OpenMarket Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 34.510949 | 83 | 0.634306 | 600 | 4,728 | 4.886667 | 0.351667 | 0.024557 | 0.017053 | 0.023192 | 0.227149 | 0.179741 | 0.158595 | 0.139495 | 0.139495 | 0.121419 | 0 | 0.014757 | 0.269036 | 4,728 | 136 | 84 | 34.764706 | 0.833623 | 0.326988 | 0 | 0.144928 | 0 | 0 | 0.060625 | 0.028398 | 0 | 0 | 0 | 0 | 0.101449 | 1 | 0.072464 | false | 0.072464 | 0.057971 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8a9bc0e94a312753e46e47ea109073b97f63eb38 | 2,851 | py | Python | examples/convolve3/demo.py | dagss/cython-pydata12 | eeaa6a3bfdc503a35538a1ea3777990a4489b2bc | [
"CC-BY-3.0"
] | 2 | 2015-08-30T12:31:15.000Z | 2018-06-29T03:02:48.000Z | examples/convolve3/demo.py | dagss/cython-pydata12 | eeaa6a3bfdc503a35538a1ea3777990a4489b2bc | [
"CC-BY-3.0"
] | null | null | null | examples/convolve3/demo.py | dagss/cython-pydata12 | eeaa6a3bfdc503a35538a1ea3777990a4489b2bc | [
"CC-BY-3.0"
] | null | null | null | import Image
import numpy as np
from matplotlib import pyplot as plt
import warnings
import contextlib
import time
import threading
# Utilities
def format_time(t):
if t > 1 or t == 0:
units = 's'
elif t > 1e-3:
units = 'ms'
t *= 1e3
elif t > 1e-6:
units = 'us'
t *= 1... | 28.227723 | 69 | 0.611014 | 372 | 2,851 | 4.551075 | 0.344086 | 0.023627 | 0.028352 | 0.061429 | 0.246308 | 0.113408 | 0.113408 | 0.113408 | 0.080331 | 0.080331 | 0 | 0.023546 | 0.270081 | 2,851 | 100 | 70 | 28.51 | 0.790005 | 0.047001 | 0 | 0.101266 | 0 | 0 | 0.058672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.113924 | null | null | 0.012658 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a9cd21e9c8b7ef4d17b7872a8741b87a26d3dce | 65,415 | py | Python | plugins/hg4idea/testData/bin/mercurial/patch.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | plugins/hg4idea/testData/bin/mercurial/patch.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | plugins/hg4idea/testData/bin/mercurial/patch.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | # patch.py - patch file parsing routines
#
# Copyright 2006 Brendan Cully <brendan@kublai.com>
# Copyright 2007 Chris Mason <chris.mason@oracle.com>
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
import cStringIO, email.Parser, o... | 34.629434 | 80 | 0.502209 | 7,556 | 65,415 | 4.321202 | 0.124007 | 0.006585 | 0.009372 | 0.004227 | 0.207742 | 0.167284 | 0.114422 | 0.085725 | 0.061775 | 0.049463 | 0 | 0.008597 | 0.386502 | 65,415 | 1,888 | 81 | 34.647775 | 0.804994 | 0.06312 | 0 | 0.279255 | 0 | 0 | 0.056897 | 0.000404 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.001995 | 0.003989 | null | null | 0.007979 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8aa2ca1766dc8a41b0aea628ecf80e4f10f6eb90 | 803 | py | Python | app_name/api/schemas/book.py | tiagofranco21/flask-structure-mongo | 52ecf78781bc99f083e41a4bc3cbb2e7d436d6c7 | [
"MIT"
] | 1 | 2022-03-29T19:34:03.000Z | 2022-03-29T19:34:03.000Z | app_name/api/schemas/book.py | tiagofranco21/flask-structure-mongo | 52ecf78781bc99f083e41a4bc3cbb2e7d436d6c7 | [
"MIT"
] | null | null | null | app_name/api/schemas/book.py | tiagofranco21/flask-structure-mongo | 52ecf78781bc99f083e41a4bc3cbb2e7d436d6c7 | [
"MIT"
] | null | null | null | from flask_restx import fields
from app_name.api.restplus import api
book_author_schema = api.model('Book Author', {
'first_name': fields.String(required=True),
'last_name': fields.String(required=True),
})
book_schema = api.model('Book Schema', {
"title": fields.String(required=True, description="Book T... | 36.5 | 68 | 0.663761 | 95 | 803 | 5.484211 | 0.357895 | 0.138196 | 0.153551 | 0.184261 | 0.107486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 803 | 22 | 69 | 36.5 | 0.792998 | 0 | 0 | 0.166667 | 0 | 0 | 0.197761 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8aa2d7561cc71802b626de4a13a72be69d031553 | 42,595 | py | Python | utils/apk_operate.py | game-platform-awaresome/XSdkTools | 2d5454f998014c130a28695dfcd9da155d20c9e9 | [
"MIT"
] | 2 | 2020-09-24T10:47:27.000Z | 2020-09-24T10:49:57.000Z | utils/apk_operate.py | game-platform-awaresome/XSdkTools | 2d5454f998014c130a28695dfcd9da155d20c9e9 | [
"MIT"
] | null | null | null | utils/apk_operate.py | game-platform-awaresome/XSdkTools | 2d5454f998014c130a28695dfcd9da155d20c9e9 | [
"MIT"
] | 4 | 2019-03-25T04:22:30.000Z | 2021-05-16T12:52:41.000Z | # -*- coding: utf-8 -*-
#Embedded file name: D:/AnySDK_Package/Env/debug/../script\apk_operate.py
from xml.etree import ElementTree as ET
from xml.etree.ElementTree import SubElement
from xml.etree.ElementTree import Element
from xml.etree.ElementTree import ElementTree
import file_operate
import os
import os.path
impo... | 38.899543 | 456 | 0.627656 | 4,296 | 42,595 | 6.182728 | 0.147114 | 0.02259 | 0.023945 | 0.019201 | 0.441173 | 0.363879 | 0.316554 | 0.292835 | 0.270359 | 0.246452 | 0 | 0.00939 | 0.257425 | 42,595 | 1,094 | 457 | 38.935101 | 0.830351 | 0.047236 | 0 | 0.396896 | 0 | 0.007761 | 0.129204 | 0.02785 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004435 | 0.02439 | null | null | 0.032151 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8aa556bb602d1a7b34b7f46a49313181ef1e9b91 | 1,471 | py | Python | backend/research_note/schema.py | andy23512/research-note-system | 42a9d67de07a0f32615c4b9c6505b46e7c852f79 | [
"MIT"
] | null | null | null | backend/research_note/schema.py | andy23512/research-note-system | 42a9d67de07a0f32615c4b9c6505b46e7c852f79 | [
"MIT"
] | 6 | 2021-06-04T23:01:14.000Z | 2022-02-26T19:57:11.000Z | backend/research_note/schema.py | andy23512/research-note-system | 42a9d67de07a0f32615c4b9c6505b46e7c852f79 | [
"MIT"
] | null | null | null | import graphene
from graphene.types import Field
from graphene_django.types import DjangoObjectType
from graphene_django.forms.mutation import DjangoModelFormMutation
from .forms import IssueForm, ResearchNoteForm, ResearchNoteWrittenForm
from .models import Issue, ResearchNote
class IssueType(DjangoObjectType):
... | 25.362069 | 95 | 0.762746 | 144 | 1,471 | 7.625 | 0.340278 | 0.040984 | 0.035519 | 0.04918 | 0.134791 | 0.134791 | 0.134791 | 0.134791 | 0.134791 | 0 | 0 | 0 | 0.162475 | 1,471 | 57 | 96 | 25.807018 | 0.891234 | 0 | 0 | 0.2 | 0 | 0 | 0.024473 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.171429 | 0.057143 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8aa88fad43fa0e6e113266c7413bc55bf2a53f97 | 2,397 | py | Python | app/__init__.py | i3Cheese/MatBoy | 29dd65f07393087758179d14d4b40d5974816759 | [
"WTFPL"
] | 10 | 2020-04-24T02:39:22.000Z | 2021-07-22T13:12:55.000Z | app/__init__.py | i3Cheese/MatBoy | 29dd65f07393087758179d14d4b40d5974816759 | [
"WTFPL"
] | null | null | null | app/__init__.py | i3Cheese/MatBoy | 29dd65f07393087758179d14d4b40d5974816759 | [
"WTFPL"
] | 4 | 2020-05-31T12:34:55.000Z | 2020-06-25T17:35:43.000Z | from flask import Flask
from flask_login import LoginManager
from flask_restful import Api
from flask_mail import Mail
from data import global_init, create_session, User
from data.user import AnonymousUser
from config import config
from bot import bot_launch
from threading import Thread
import logging
import ... | 35.25 | 98 | 0.779307 | 322 | 2,397 | 5.583851 | 0.282609 | 0.036707 | 0.085651 | 0.053393 | 0.080089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112224 | 2,397 | 67 | 99 | 35.776119 | 0.844925 | 0.012098 | 0 | 0 | 0 | 0 | 0.141801 | 0.093519 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018182 | false | 0 | 0.363636 | 0 | 0.4 | 0.054545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8aac2da9e76af08ef06b73c0c686b66ebb80826d | 27,752 | py | Python | bin/generate-tables.py | allenai/rainbow | 045d726355364b7495fa2e72bb05316545a5f2b0 | [
"Apache-2.0"
] | 50 | 2021-02-05T17:26:38.000Z | 2022-03-10T13:46:44.000Z | bin/generate-tables.py | allenai/rainbow | 045d726355364b7495fa2e72bb05316545a5f2b0 | [
"Apache-2.0"
] | 5 | 2021-04-04T15:57:33.000Z | 2022-02-10T05:47:30.000Z | bin/generate-tables.py | allenai/rainbow | 045d726355364b7495fa2e72bb05316545a5f2b0 | [
"Apache-2.0"
] | 4 | 2021-04-08T15:41:40.000Z | 2021-08-22T09:55:34.000Z | #! /usr/bin/env python
"""Generate tables from Rainbow's experimental results."""
import csv
import json
import logging
import os
import re
from typing import Any, List, Optional, Tuple
import click
from sklearn import metrics
from rainbow import datasets, utils
logger = logging.getLogger(__name__)
# constants
... | 33.720535 | 79 | 0.432906 | 2,408 | 27,752 | 4.908638 | 0.151578 | 0.023689 | 0.01269 | 0.030457 | 0.556937 | 0.543232 | 0.52445 | 0.505499 | 0.492978 | 0.476988 | 0 | 0.04241 | 0.452832 | 27,752 | 822 | 80 | 33.761557 | 0.735989 | 0.18968 | 0 | 0.649153 | 1 | 0.001695 | 0.200955 | 0.026467 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008475 | false | 0.00339 | 0.015254 | 0 | 0.040678 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8ab24477b0dec4fb9d32a160f1fdfa3d24d9c6da | 975 | py | Python | tests/lib/test_authenticate.py | robot2051/dto-digitalmarketplace-api | de5b1fe67a0ce2d665633b083005263739080903 | [
"MIT"
] | null | null | null | tests/lib/test_authenticate.py | robot2051/dto-digitalmarketplace-api | de5b1fe67a0ce2d665633b083005263739080903 | [
"MIT"
] | null | null | null | tests/lib/test_authenticate.py | robot2051/dto-digitalmarketplace-api | de5b1fe67a0ce2d665633b083005263739080903 | [
"MIT"
] | null | null | null | import pytest
from app.authentication import get_token_from_headers, get_allowed_tokens_from_config
def test_get_token_from_headers():
yield check_token, {'Authorization': 'Bearer foo-bar'}, 'foo-bar'
yield check_token, {'Authorization': 'Bearer bar-foo'}, 'bar-foo'
yield check_token, {'Authorization': '... | 36.111111 | 85 | 0.705641 | 120 | 975 | 5.425 | 0.283333 | 0.064516 | 0.115207 | 0.172043 | 0.402458 | 0.116743 | 0.116743 | 0 | 0 | 0 | 0 | 0 | 0.146667 | 975 | 26 | 86 | 37.5 | 0.782452 | 0 | 0 | 0 | 0 | 0 | 0.283077 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.157895 | false | 0 | 0.105263 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8ab2661d2056089f38247b940d3b11f1169c181d | 884 | py | Python | 07-classes-lab/property-decorator.py | iproduct/course-robotics-npmg | 0feb2ded46007ba87b8128f1f2e039036ef274bd | [
"Apache-2.0"
] | 3 | 2022-01-10T07:56:37.000Z | 2022-02-14T16:37:56.000Z | 07-classes-lab/property-decorator.py | iproduct/intro-python | 8fcf682286dad3fc65f46ccff33aefab9c601306 | [
"Apache-2.0"
] | null | null | null | 07-classes-lab/property-decorator.py | iproduct/intro-python | 8fcf682286dad3fc65f46ccff33aefab9c601306 | [
"Apache-2.0"
] | 1 | 2022-02-14T16:36:46.000Z | 2022-02-14T16:36:46.000Z | class Celsius:
def __init__(self, temperature=0):
self.temperature = temperature
def to_fahrenheit(self):
return (self.temperature * 1.8) + 32
@property
def temperature(self):
print(f"Getting value: {self.__temperature}")
return self.__temperature # private attribute = ... | 28.516129 | 71 | 0.653846 | 95 | 884 | 5.831579 | 0.421053 | 0.189531 | 0.097473 | 0.144404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024024 | 0.246606 | 884 | 30 | 72 | 29.466667 | 0.807808 | 0.14819 | 0 | 0.086957 | 0 | 0 | 0.137885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0 | 0.043478 | 0.347826 | 0.130435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8ab343e759ad38fdc0e4ef5f72bb5c2f09b87385 | 3,599 | py | Python | coursereg/views/user.py | s-gv/bheemboy | b35c6611739b6df517cb1bb642fa6d46cf1b246e | [
"MIT"
] | null | null | null | coursereg/views/user.py | s-gv/bheemboy | b35c6611739b6df517cb1bb642fa6d46cf1b246e | [
"MIT"
] | 105 | 2016-05-07T05:54:28.000Z | 2016-12-30T13:47:13.000Z | coursereg/views/user.py | s-gv/bheemboy | b35c6611739b6df517cb1bb642fa6d46cf1b246e | [
"MIT"
] | 4 | 2016-05-29T14:00:33.000Z | 2020-09-30T17:16:02.000Z | from django.shortcuts import render, redirect
from django.core.urlresolvers import reverse
from django.http import HttpResponse, HttpResponseRedirect
from django.contrib.auth.decorators import login_required
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.views import password_reset... | 42.341176 | 129 | 0.661851 | 398 | 3,599 | 5.886935 | 0.288945 | 0.051216 | 0.043534 | 0.06146 | 0.286812 | 0.129748 | 0.032437 | 0 | 0 | 0 | 0 | 0.003288 | 0.239511 | 3,599 | 84 | 130 | 42.845238 | 0.852758 | 0 | 0 | 0.177215 | 0 | 0 | 0.185885 | 0.053348 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063291 | false | 0.316456 | 0.177215 | 0 | 0.35443 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8ab7bcac6b1f5660ea342b878076728c64f69b1e | 3,199 | py | Python | pystratis/api/smartcontracts/requestmodels/buildtransactionrequest.py | TjadenFroyda/pyStratis | 9cc7620d7506637f8a2b84003d931eceb36ac5f2 | [
"MIT"
] | 8 | 2021-06-30T20:44:22.000Z | 2021-12-07T14:42:22.000Z | pystratis/api/smartcontracts/requestmodels/buildtransactionrequest.py | TjadenFroyda/pyStratis | 9cc7620d7506637f8a2b84003d931eceb36ac5f2 | [
"MIT"
] | 2 | 2021-07-01T11:50:18.000Z | 2022-01-25T18:39:49.000Z | pystratis/api/smartcontracts/requestmodels/buildtransactionrequest.py | TjadenFroyda/pyStratis | 9cc7620d7506637f8a2b84003d931eceb36ac5f2 | [
"MIT"
] | 4 | 2021-07-01T04:36:42.000Z | 2021-09-17T10:54:19.000Z | from typing import Optional, List
from pydantic import Field, SecretStr, validator
from pystratis.api import Model
from pystratis.core import Outpoint, Recipient
from pystratis.core.types import Address, Money
# noinspection PyUnresolvedReferences
class BuildTransactionRequest(Model):
"""A request model for the s... | 47.746269 | 139 | 0.699281 | 394 | 3,199 | 5.576142 | 0.317259 | 0.028675 | 0.016386 | 0.032772 | 0.172963 | 0.091033 | 0.030951 | 0.030951 | 0.030951 | 0 | 0 | 0.001586 | 0.211629 | 3,199 | 66 | 140 | 48.469697 | 0.869548 | 0.421694 | 0 | 0.052632 | 0 | 0 | 0.170153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.026316 | 0.131579 | 0 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8ab8e996560583ec26db539401c9795b1d2e076d | 430 | py | Python | huobifeeder/run.py | mmmaaaggg/HuobiAgent4QABAT | 4d8de716c3b60f995913455519c8e93e84631b70 | [
"MIT"
] | 5 | 2018-06-29T21:30:56.000Z | 2021-05-24T06:34:33.000Z | huobifeeder/run.py | mmmaaaggg/HuobiAgent4QABAT | 4d8de716c3b60f995913455519c8e93e84631b70 | [
"MIT"
] | 1 | 2021-06-01T22:15:31.000Z | 2021-06-01T22:15:31.000Z | huobifeeder/run.py | mmmaaaggg/HuobiAgent4QABAT | 4d8de716c3b60f995913455519c8e93e84631b70 | [
"MIT"
] | 3 | 2018-06-21T07:49:13.000Z | 2020-07-28T22:32:11.000Z | #! /usr/bin/env python
# -*- coding:utf-8 -*-
"""
@author : MG
@Time : 2018/6/12 20:38
@File : run.py
@contact : mmmaaaggg@163.com
@desc :
"""
import time
from huobifeeder.backend.orm import init
from huobifeeder.feed.md_feeder import start_supplier
if __name__ == "__main__":
init(True)
supplier =... | 20.47619 | 70 | 0.674419 | 61 | 430 | 4.508197 | 0.770492 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045714 | 0.186047 | 430 | 20 | 71 | 21.5 | 0.74 | 0.330233 | 0 | 0 | 0 | 0 | 0.028674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8ab947ec88aca2e1227e9b2dcc111deb78e0fe05 | 801 | py | Python | Spotkanie 5/le31_013_podstawy_funkcji.py | abixadamj/lekcja-enter-przyklady | 4f23ee32a139e955f992b727ad86c6effb87a6d6 | [
"MIT"
] | null | null | null | Spotkanie 5/le31_013_podstawy_funkcji.py | abixadamj/lekcja-enter-przyklady | 4f23ee32a139e955f992b727ad86c6effb87a6d6 | [
"MIT"
] | null | null | null | Spotkanie 5/le31_013_podstawy_funkcji.py | abixadamj/lekcja-enter-przyklady | 4f23ee32a139e955f992b727ad86c6effb87a6d6 | [
"MIT"
] | null | null | null | def pierwsza():
"""Tutaj będzie nasz opis"""
imie = input("Podaj swoje imię: ")
print(f"Cześć {imie} - tu Python.")
def druga(powitanie):
"""Witam się z userem
powitanie - string do wypisania"""
imie = input("Podaj swoje imię: ")
print(f"Cześć {imie} - tu {powitanie}.")
########################... | 30.807692 | 91 | 0.615481 | 109 | 801 | 4.431193 | 0.449541 | 0.082816 | 0.057971 | 0.078675 | 0.385093 | 0.385093 | 0.385093 | 0.385093 | 0.385093 | 0.385093 | 0 | 0.028125 | 0.200999 | 801 | 25 | 92 | 32.04 | 0.726563 | 0.21598 | 0 | 0.285714 | 0 | 0.071429 | 0.301616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0 | 0 | 0.5 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8aba4afa25498249df2f2a607f7623d7ac2a18f9 | 710 | py | Python | q2_dada2/_transformer.py | Oddant1/q2-dada2 | 7859a393b093170db097abb3dcc3aba05d72949a | [
"BSD-3-Clause"
] | 1 | 2016-10-04T04:16:28.000Z | 2016-10-04T04:16:28.000Z | q2_dada2/_transformer.py | Oddant1/q2-dada2 | 7859a393b093170db097abb3dcc3aba05d72949a | [
"BSD-3-Clause"
] | 15 | 2016-09-13T23:23:39.000Z | 2016-10-27T23:22:44.000Z | q2_dada2/_transformer.py | Oddant1/q2-dada2 | 7859a393b093170db097abb3dcc3aba05d72949a | [
"BSD-3-Clause"
] | 4 | 2016-10-08T19:49:57.000Z | 2022-03-30T11:23:00.000Z | # ----------------------------------------------------------------------------
# Copyright (c) 2016-2020, QIIME 2 development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# ------------------------------------------------... | 28.4 | 78 | 0.592958 | 75 | 710 | 5.52 | 0.56 | 0.101449 | 0.05314 | 0.135266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.125352 | 710 | 24 | 79 | 29.583333 | 0.62963 | 0.470423 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8aba6613195a978affab8b1afcdb29280743799f | 2,494 | py | Python | nipype/interfaces/afni/tests/test_auto_Volreg.py | vferat/nipype | 536c57da150d157dcb5c121af43aaeab71cdbd5f | [
"Apache-2.0"
] | null | null | null | nipype/interfaces/afni/tests/test_auto_Volreg.py | vferat/nipype | 536c57da150d157dcb5c121af43aaeab71cdbd5f | [
"Apache-2.0"
] | 2 | 2018-04-17T19:18:16.000Z | 2020-03-04T22:05:02.000Z | nipype/interfaces/afni/tests/test_auto_Volreg.py | oesteban/nipype | c14f24eba1da08711bbb894e049ee858ed740096 | [
"Apache-2.0"
] | null | null | null | # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from __future__ import unicode_literals
from ..preprocess import Volreg
def test_Volreg_inputs():
input_map = dict(
args=dict(argstr='%s', ),
basefile=dict(
argstr='-base %s',
extensions=None,
position=-6,
... | 29.341176 | 67 | 0.525261 | 257 | 2,494 | 4.914397 | 0.338521 | 0.10293 | 0.059382 | 0.050673 | 0.378464 | 0.292953 | 0.254949 | 0.231987 | 0.231987 | 0.231987 | 0 | 0.009186 | 0.345229 | 2,494 | 84 | 68 | 29.690476 | 0.764238 | 0.020449 | 0 | 0.35443 | 1 | 0 | 0.071282 | 0 | 0 | 0 | 0 | 0 | 0.025316 | 1 | 0.025316 | false | 0 | 0.025316 | 0 | 0.050633 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8abfcff625a38702334d7385ac7be9f130d42f5b | 2,420 | py | Python | oslo_cache/testing.py | mail2nsrajesh/oslo.cache | f288eae21f625b9bb5063f525fcc18014848a64f | [
"Apache-2.0"
] | 29 | 2015-04-26T16:05:14.000Z | 2021-12-31T15:03:19.000Z | oslo_cache/testing.py | mail2nsrajesh/oslo.cache | f288eae21f625b9bb5063f525fcc18014848a64f | [
"Apache-2.0"
] | null | null | null | oslo_cache/testing.py | mail2nsrajesh/oslo.cache | f288eae21f625b9bb5063f525fcc18014848a64f | [
"Apache-2.0"
] | 19 | 2015-06-15T23:51:10.000Z | 2020-12-10T00:03:21.000Z | # Copyright 2013 Metacloud
#
# 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, s... | 34.084507 | 79 | 0.727686 | 367 | 2,420 | 4.754768 | 0.455041 | 0.034384 | 0.0149 | 0.018338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004165 | 0.206198 | 2,420 | 70 | 80 | 34.571429 | 0.904217 | 0.759504 | 0 | 0 | 0 | 0 | 0.038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.1875 | 0.0625 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8ad1a25101f8cfd3f85c68ba39399657d1c35ddc | 246 | py | Python | Hash Map/1. Two Sum.py | xli1110/LC | 3c18b8809c5a21a62903060eef659654e0595036 | [
"MIT"
] | 2 | 2021-04-02T11:57:46.000Z | 2021-04-02T11:57:47.000Z | Hash Map/1. Two Sum.py | xli1110/LC | 3c18b8809c5a21a62903060eef659654e0595036 | [
"MIT"
] | null | null | null | Hash Map/1. Two Sum.py | xli1110/LC | 3c18b8809c5a21a62903060eef659654e0595036 | [
"MIT"
] | null | null | null | class Solution:
def twoSum(self, nums: List[int], target: int) -> List[int]:
d = {}
for i, x in enumerate(nums):
if target - x in d:
return [i, d[target - x]]
d[x] = i
return []
| 27.333333 | 64 | 0.447154 | 33 | 246 | 3.333333 | 0.515152 | 0.127273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.414634 | 246 | 8 | 65 | 30.75 | 0.763889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8ad3d9279bb059a66d41a35aac923c6dbb0764cb | 1,191 | py | Python | adapters/base_adapter.py | pafailler/domoticz-zigbee2mqtt-plugin | 2b14f7ad6e3040747e91a0d7e26d860a3b7c1de3 | [
"MIT"
] | null | null | null | adapters/base_adapter.py | pafailler/domoticz-zigbee2mqtt-plugin | 2b14f7ad6e3040747e91a0d7e26d860a3b7c1de3 | [
"MIT"
] | null | null | null | adapters/base_adapter.py | pafailler/domoticz-zigbee2mqtt-plugin | 2b14f7ad6e3040747e91a0d7e26d860a3b7c1de3 | [
"MIT"
] | null | null | null | import Domoticz
from devices.custom_sensor import CustomSensor
class Adapter():
def __init__(self, devices):
self.devices = []
self.devices.append(CustomSensor(devices, 'signal', 'linkquality', ' (Link Quality)'))
def convert_message(self, message):
return message
def register(se... | 32.189189 | 98 | 0.667506 | 138 | 1,191 | 5.572464 | 0.326087 | 0.091027 | 0.054616 | 0.058518 | 0.169051 | 0.072822 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242653 | 1,191 | 36 | 99 | 33.083333 | 0.85255 | 0 | 0 | 0.115385 | 0 | 0 | 0.085642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269231 | false | 0 | 0.076923 | 0.038462 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
76d2b17ca6b59d375bf7c89e8431144a1939b841 | 1,030 | py | Python | django_gearman_proxy/settings.py | CodeScaleInc/django-gearman-proxy | 0b62e3d869388d7beb9f1ad634c9cbf48e7859a3 | [
"BSD-3-Clause"
] | null | null | null | django_gearman_proxy/settings.py | CodeScaleInc/django-gearman-proxy | 0b62e3d869388d7beb9f1ad634c9cbf48e7859a3 | [
"BSD-3-Clause"
] | null | null | null | django_gearman_proxy/settings.py | CodeScaleInc/django-gearman-proxy | 0b62e3d869388d7beb9f1ad634c9cbf48e7859a3 | [
"BSD-3-Clause"
] | 1 | 2019-06-29T11:27:21.000Z | 2019-06-29T11:27:21.000Z | from django.conf import settings
# Email backend to be used inside of mail sender worker.
GEARMAN_EMAIL_BACKEND = getattr(settings, 'GEARMAN_EMAIL_BACKEND', 'django.core.mail.backends.smtp.EmailBackend')
# Serializers for transporting EmailMessage object via gearman protocol.
GEARMAN_EMAIL_SERIALIZER = getattr(setti... | 64.375 | 134 | 0.839806 | 127 | 1,030 | 6.559055 | 0.307087 | 0.086435 | 0.158463 | 0.139256 | 0.357743 | 0.230492 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075728 | 1,030 | 16 | 135 | 64.375 | 0.875 | 0.238835 | 0 | 0 | 0 | 0 | 0.548718 | 0.524359 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.