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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d071b10778e993030b61af048f8e39a048b36969 | 3,014 | py | Python | tests/test_class/import_export_test.py | ThomasLandstra/pysave | acc3da93858f541ea4f3ffc6062d9689d28f5ee5 | [
"MIT"
] | 1 | 2022-03-14T04:32:42.000Z | 2022-03-14T04:32:42.000Z | tests/test_class/import_export_test.py | ThomasLandstra/pysave | acc3da93858f541ea4f3ffc6062d9689d28f5ee5 | [
"MIT"
] | 6 | 2021-10-11T07:20:40.000Z | 2022-03-17T01:31:33.000Z | tests/test_class/import_export_test.py | ThomasLandstra/pysave | acc3da93858f541ea4f3ffc6062d9689d28f5ee5 | [
"MIT"
] | null | null | null | # Imports
from os.path import join, isfile
from os import remove, rmdir
from pysav import Save, does_save_exist, does_app_dir_exist, generate_environment_path
from utils.random_data import generate_dict
# Test
def test_answer():
"""Does Save work as expected"""
# Test Importing
# Create file to be importe... | 29.54902 | 86 | 0.595886 | 329 | 3,014 | 5.197568 | 0.218845 | 0.111111 | 0.134503 | 0.157895 | 0.649708 | 0.616959 | 0.567836 | 0.507018 | 0.503509 | 0.445029 | 0 | 0.003385 | 0.313869 | 3,014 | 101 | 87 | 29.841584 | 0.823501 | 0.114134 | 0 | 0.647059 | 1 | 0 | 0.095436 | 0 | 0 | 0 | 0 | 0 | 0.161765 | 1 | 0.014706 | false | 0.044118 | 0.073529 | 0 | 0.088235 | 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 |
d0724f179ed3e0352058e826e5ed580723fd7c4d | 1,250 | py | Python | insights/parsers/tests/test_ansible_tower_settings.py | maxamillion/insights-core | aa11e07e68077df97b6c85219911f8382be6e2fa | [
"Apache-2.0"
] | null | null | null | insights/parsers/tests/test_ansible_tower_settings.py | maxamillion/insights-core | aa11e07e68077df97b6c85219911f8382be6e2fa | [
"Apache-2.0"
] | null | null | null | insights/parsers/tests/test_ansible_tower_settings.py | maxamillion/insights-core | aa11e07e68077df97b6c85219911f8382be6e2fa | [
"Apache-2.0"
] | null | null | null | import doctest
import pytest
from insights.parsers import ansible_tower_settings, SkipException
from insights.tests import context_wrap
ANSIBLE_TOWER_CONFIG_CUSTOM = '''
AWX_CLEANUP_PATHS = False
LOGGING['handlers']['tower_warnings']['level'] = 'DEBUG'
'''.strip()
ANSIBLE_TOWER_CONFIG_CUSTOM_INVALID1 = '''
'''.strip... | 32.051282 | 110 | 0.7848 | 148 | 1,250 | 6.236486 | 0.317568 | 0.195016 | 0.173348 | 0.182015 | 0.687974 | 0.531961 | 0.494041 | 0.420368 | 0.420368 | 0.420368 | 0 | 0.004566 | 0.124 | 1,250 | 38 | 111 | 32.894737 | 0.838356 | 0 | 0 | 0.25 | 0 | 0 | 0.1392 | 0.0368 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.214286 | 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 |
d0805f0b04c5487557b620b5f784fdf929044314 | 13,190 | py | Python | maintenance_utils.py | lawrluor/matchstats | 0c8cd08403d5fa2772b3d5d9391a804866d15dce | [
"BSD-3-Clause"
] | 6 | 2015-06-22T16:51:03.000Z | 2017-12-05T22:18:39.000Z | maintenance_utils.py | lawrluor/matchstats | 0c8cd08403d5fa2772b3d5d9391a804866d15dce | [
"BSD-3-Clause"
] | 1 | 2021-06-01T21:44:48.000Z | 2021-06-01T21:44:48.000Z | maintenance_utils.py | lawrluor/matchstats | 0c8cd08403d5fa2772b3d5d9391a804866d15dce | [
"BSD-3-Clause"
] | null | null | null | from app import app, db
from app.models import *
import datetime
import sys
sys.path.append('./sanitize')
from sanitize_utils import *
from trueskill import setup, Rating, quality_1vs1, rate_1vs1
from trueskill_functions import MU, SIGMA, CONS_MU, BETA, TAU, DRAW_PROBABILITY, populate_trueskills
from misc_utils impor... | 37.050562 | 208 | 0.731463 | 1,966 | 13,190 | 4.744659 | 0.140387 | 0.042024 | 0.020262 | 0.03259 | 0.354202 | 0.29331 | 0.239708 | 0.215909 | 0.197899 | 0.186321 | 0 | 0.002315 | 0.181425 | 13,190 | 356 | 209 | 37.050562 | 0.861628 | 0.252843 | 0 | 0.35 | 0 | 0 | 0.063572 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.030769 | null | null | 0.15 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d08121c2bb321f45165a5c878bb41be255cfeaf3 | 406,902 | py | Python | tools/tests/bourne.py | CoprHD/sds-controller | a575ec96928b1e9258313efe92c930bfe9d6753a | [
"Apache-2.0"
] | 91 | 2015-06-06T01:40:34.000Z | 2020-11-24T07:26:40.000Z | tools/tests/bourne.py | CoprHD/sds-controller | a575ec96928b1e9258313efe92c930bfe9d6753a | [
"Apache-2.0"
] | 3 | 2015-07-14T18:47:53.000Z | 2015-07-14T18:50:16.000Z | tools/tests/bourne.py | CoprHD/sds-controller | a575ec96928b1e9258313efe92c930bfe9d6753a | [
"Apache-2.0"
] | 71 | 2015-06-05T21:35:31.000Z | 2021-11-07T16:32:46.000Z | # coding=utf-8
#
# Copyright (c) 2015 EMC Corporation
# All Rights Reserved
#
import httplib
import cjson
import argparse
import sys
import os
import time
import json
import uuid
import base64
import urllib
import requests
import email
from email.Utils import formatdate
import cookielib
import telnetlib
import xml.etr... | 41.213613 | 375 | 0.608569 | 46,152 | 406,902 | 5.12201 | 0.04106 | 0.019751 | 0.015893 | 0.013088 | 0.62713 | 0.559306 | 0.503052 | 0.459882 | 0.41598 | 0.387929 | 0.000002 | 0.005023 | 0.285233 | 406,902 | 9,872 | 376 | 41.217788 | 0.80776 | 0.044662 | 0 | 0.471334 | 0 | 0.000761 | 0.118309 | 0.017599 | 0 | 0 | 0.000026 | 0.000203 | 0.013699 | 0 | null | null | 0.012303 | 0.004186 | null | null | 0.046677 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d08144c8fccf523fe00afd797e29a4fc88443666 | 851 | py | Python | configuration.py | stoberblog/sunspec-modbus | 2ce7cc6e92cb480cce4e488c8ffd716ec053ec01 | [
"MIT"
] | 22 | 2018-03-01T16:13:48.000Z | 2022-02-27T07:59:24.000Z | configuration.py | msgis/sunspec-modbus | 2ce7cc6e92cb480cce4e488c8ffd716ec053ec01 | [
"MIT"
] | null | null | null | configuration.py | msgis/sunspec-modbus | 2ce7cc6e92cb480cce4e488c8ffd716ec053ec01 | [
"MIT"
] | 7 | 2019-03-02T17:10:29.000Z | 2021-06-19T00:26:05.000Z | # -*- coding: utf-8 -*-
"""
@author: stoberblog
@detail: This is a configuration file for the Solar Modbus project.
"""
# MODBUS DETAILS
INVERTER_IP = "192.168.1.29"
MODBUS_PORT = 7502
METER_ADDR = 240
MODBUS_TIMEOUT = 30 #seconds to wait before failure
# METER INSTALLED
METER_INSTALLED =... | 26.59375 | 129 | 0.673325 | 107 | 851 | 5.224299 | 0.757009 | 0.050089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043143 | 0.237368 | 851 | 31 | 130 | 27.451613 | 0.818182 | 0.504113 | 0 | 0 | 0 | 0 | 0.140541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 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 |
d084cbae54b480c7285413e8320b17434455ebf4 | 1,666 | py | Python | python_exercises/main.py | nchristie/slide-python-intro | dd52781b5d25435f97aa83cfff58c175fa7fdd1c | [
"MIT"
] | 1 | 2018-06-07T12:40:37.000Z | 2018-06-07T12:40:37.000Z | python_exercises/main.py | nchristie/slide-python-intro | dd52781b5d25435f97aa83cfff58c175fa7fdd1c | [
"MIT"
] | 3 | 2018-06-07T14:39:19.000Z | 2019-01-15T16:35:23.000Z | python_exercises/main.py | nchristie/slide-python-intro | dd52781b5d25435f97aa83cfff58c175fa7fdd1c | [
"MIT"
] | 9 | 2018-05-30T17:12:27.000Z | 2021-07-01T03:22:48.000Z | """
Press run above to start
"""
from exercises.question_runner import run
from question_directory import (
boolean_operators,
boolean_review,
changing_lists,
dictionaries,
equality_and_booleans,
for_loops,
functions,
functions_quick_review,
greater_than_less_than_and_booleans,
... | 32.038462 | 93 | 0.758703 | 215 | 1,666 | 5.525581 | 0.302326 | 0.083333 | 0.09596 | 0.04798 | 0.229798 | 0.184343 | 0.108586 | 0 | 0 | 0 | 0 | 0.006342 | 0.148259 | 1,666 | 51 | 94 | 32.666667 | 0.830867 | 0.153661 | 0 | 0 | 0 | 0 | 0.027318 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.088235 | 0 | 0.088235 | 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 |
d086d7aab191c7687a9c71aa884d413b256ec344 | 8,518 | py | Python | lda_loader.py | abramhindle/organize-conference-sessions-by-paper-topics | 076adf1049fe9588c04f37840e938b20dd32d102 | [
"Apache-2.0"
] | 1 | 2017-12-24T23:48:33.000Z | 2017-12-24T23:48:33.000Z | lda_loader.py | abramhindle/organize-conference-sessions-by-paper-topics | 076adf1049fe9588c04f37840e938b20dd32d102 | [
"Apache-2.0"
] | 1 | 2017-12-29T15:31:24.000Z | 2018-01-03T17:39:58.000Z | lda_loader.py | abramhindle/organize-conference-sessions-by-paper-topics | 076adf1049fe9588c04f37840e938b20dd32d102 | [
"Apache-2.0"
] | 2 | 2017-12-29T15:14:00.000Z | 2021-01-16T13:33:50.000Z | # Copyright (C) 2014 Alex Wilson
# Copyright (C) 2012-14 Abram Hindle
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later v... | 34.909836 | 110 | 0.646513 | 1,114 | 8,518 | 4.731598 | 0.235189 | 0.032252 | 0.021248 | 0.023715 | 0.350977 | 0.26143 | 0.213242 | 0.206412 | 0.151015 | 0.133561 | 0 | 0.005526 | 0.256398 | 8,518 | 243 | 111 | 35.053498 | 0.82665 | 0.12092 | 0 | 0.225 | 0 | 0 | 0.072981 | 0.009881 | 0 | 0 | 0 | 0.004115 | 0.00625 | 0 | null | null | 0 | 0.04375 | null | null | 0.0375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d0879d6a8986f5d89d403d25cf640af496e2854b | 2,390 | py | Python | tests/system/test_grpc_streams.py | danoscarmike/gapic-generator-python | 805645d5571dde05c6fb947c81f0f41f2ba10a98 | [
"Apache-2.0"
] | null | null | null | tests/system/test_grpc_streams.py | danoscarmike/gapic-generator-python | 805645d5571dde05c6fb947c81f0f41f2ba10a98 | [
"Apache-2.0"
] | null | null | null | tests/system/test_grpc_streams.py | danoscarmike/gapic-generator-python | 805645d5571dde05c6fb947c81f0f41f2ba10a98 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 32.297297 | 74 | 0.706695 | 291 | 2,390 | 5.735395 | 0.381443 | 0.03595 | 0.031156 | 0.079089 | 0.50749 | 0.50749 | 0.50749 | 0.50749 | 0.426603 | 0.426603 | 0 | 0.004065 | 0.176569 | 2,390 | 73 | 75 | 32.739726 | 0.844004 | 0.274059 | 0 | 0.641026 | 0 | 0 | 0.119255 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.128205 | false | 0.051282 | 0.025641 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d08c99da891c1e82a3ced1b3133024eb4b5c39fb | 826 | py | Python | viewer/models.py | davhanks/digitalmyworld | 0f718be3967d399dddc6105f0b9d4cbc0ab35764 | [
"Apache-2.0"
] | null | null | null | viewer/models.py | davhanks/digitalmyworld | 0f718be3967d399dddc6105f0b9d4cbc0ab35764 | [
"Apache-2.0"
] | null | null | null | viewer/models.py | davhanks/digitalmyworld | 0f718be3967d399dddc6105f0b9d4cbc0ab35764 | [
"Apache-2.0"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from django.conf import settings
class Calculation(models.Model):
'''Just an example model: a log of all calculations made'''
log_date = models.DateTimeField(auto_now_add=True)
num1 = models.FloatField(blank=True, null=True)
num2 = model... | 35.913043 | 80 | 0.733656 | 121 | 826 | 4.933884 | 0.545455 | 0.060302 | 0.087102 | 0.113903 | 0.165829 | 0.165829 | 0 | 0 | 0 | 0 | 0 | 0.011331 | 0.145278 | 826 | 23 | 81 | 35.913043 | 0.834278 | 0.336562 | 0 | 0 | 0 | 0 | 0.024119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0.090909 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d0a007717c7cd5164028357f50c0a77b0adfbf09 | 243 | py | Python | M7 - python script.py | kfmahre/movies_neural_net | 749d2a4e05bb24537c03c6069443da6956084055 | [
"MIT"
] | null | null | null | M7 - python script.py | kfmahre/movies_neural_net | 749d2a4e05bb24537c03c6069443da6956084055 | [
"MIT"
] | null | null | null | M7 - python script.py | kfmahre/movies_neural_net | 749d2a4e05bb24537c03c6069443da6956084055 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Dec 15 01:37:59 2019
@author: kfmah
"""
stuff = list()
stuff.append('python')
stuff.append('chuck')
stuff.sort()
print (stuff[0])
print (stuff.__getitem__(0))
print (list.__getitem__(stuff,0)) | 12.15 | 35 | 0.650206 | 36 | 243 | 4.166667 | 0.638889 | 0.146667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.144033 | 243 | 20 | 36 | 12.15 | 0.644231 | 0.304527 | 0 | 0 | 0 | 0 | 0.067901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
d0a31acaeb6c9427098272c4fe196ed9fa1d7cff | 17,639 | py | Python | Telstra_Messaging/configuration.py | yashints/MessagingAPI-SDK-python | 6cb41ed90fd237e57a6ce4ca383fa035cd842a7d | [
"Apache-2.0"
] | null | null | null | Telstra_Messaging/configuration.py | yashints/MessagingAPI-SDK-python | 6cb41ed90fd237e57a6ce4ca383fa035cd842a7d | [
"Apache-2.0"
] | null | null | null | Telstra_Messaging/configuration.py | yashints/MessagingAPI-SDK-python | 6cb41ed90fd237e57a6ce4ca383fa035cd842a7d | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Telstra Messaging API
# Introduction <table><tbody><tr><td class = 'into_api' style='border:none;padding:0 0 0 0'><p>Send and receive SMS and MMS messages globally using Telstra's enterprise grade Messaging API. It also allows your application to track the delivery status of both sent an... | 73.495833 | 10,226 | 0.704122 | 2,430 | 17,639 | 5.053498 | 0.25679 | 0.017915 | 0.010261 | 0.011726 | 0.200489 | 0.15171 | 0.128583 | 0.095684 | 0.083713 | 0.083713 | 0 | 0.016659 | 0.217303 | 17,639 | 239 | 10,227 | 73.803347 | 0.872809 | 0.729803 | 0 | 0.058824 | 0 | 0 | 0.069332 | 0 | 0 | 0 | 0 | 0 | 0.009804 | 1 | 0.137255 | false | 0.019608 | 0.078431 | 0 | 0.323529 | 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 |
d0a7c3be5b482ff8c7670f19fff95f3a54a4face | 5,854 | py | Python | tawsocks/tcp_relay.py | comeacrossyun/skyun | 96ef2e98da2826863850c8b917bf1cba8a8a796b | [
"MIT"
] | 1 | 2021-05-23T15:50:25.000Z | 2021-05-23T15:50:25.000Z | tawsocks/tcp_relay.py | comeacrossyun/skyun | 96ef2e98da2826863850c8b917bf1cba8a8a796b | [
"MIT"
] | null | null | null | tawsocks/tcp_relay.py | comeacrossyun/skyun | 96ef2e98da2826863850c8b917bf1cba8a8a796b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
# @Time : 2019-06-04
# @Author : hongshu
import sys
import asyncio
from tawsocks import common
class TcpRelayHandler(object):
def __init__(self, is_client, config, loop):
self.is_client = is_client
self.config = config
self.loop = loop
asyn... | 39.823129 | 118 | 0.591561 | 680 | 5,854 | 4.875 | 0.173529 | 0.066365 | 0.081448 | 0.057014 | 0.670588 | 0.5819 | 0.504676 | 0.375867 | 0.330618 | 0.176169 | 0 | 0.03284 | 0.308165 | 5,854 | 146 | 119 | 40.09589 | 0.785679 | 0.021353 | 0 | 0.5 | 0 | 0 | 0.020112 | 0 | 0 | 0 | 0.018188 | 0 | 0 | 1 | 0.042373 | false | 0.135593 | 0.025424 | 0 | 0.161017 | 0.025424 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d0af8ccc38db80b7705a16b0b92de3ffc09909b1 | 321 | py | Python | submissions/arc068/b.py | m-star18/atcoder | 08e475810516602fa088f87daf1eba590b4e07cc | [
"Unlicense"
] | 1 | 2021-05-10T01:16:28.000Z | 2021-05-10T01:16:28.000Z | submissions/arc068/b.py | m-star18/atcoder | 08e475810516602fa088f87daf1eba590b4e07cc | [
"Unlicense"
] | 3 | 2021-05-11T06:14:15.000Z | 2021-06-19T08:18:36.000Z | submissions/arc068/b.py | m-star18/atcoder | 08e475810516602fa088f87daf1eba590b4e07cc | [
"Unlicense"
] | null | null | null | import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)
from collections import Counter
n, *a = map(int, read().split())
counter = Counter(a).values()
ans = len(counter)
if (sum(counter) - ans) % 2 == 1:
ans -= 1
print(ans)... | 21.4 | 38 | 0.697819 | 48 | 321 | 4.666667 | 0.541667 | 0.107143 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021898 | 0.146417 | 321 | 14 | 39 | 22.928571 | 0.79562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.083333 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d0ba6c15a6c14b45dd62608fe761ce634451a9c5 | 794 | py | Python | register/views/list.py | Bartlett-Christopher/coaching_manual | 43e6dd582f74afa3e0c89203cd01380638f8ed7f | [
"MIT"
] | null | null | null | register/views/list.py | Bartlett-Christopher/coaching_manual | 43e6dd582f74afa3e0c89203cd01380638f8ed7f | [
"MIT"
] | 6 | 2020-05-18T05:38:26.000Z | 2021-09-22T19:02:10.000Z | register/views/list.py | Bartlett-Christopher/coaching_manual | 43e6dd582f74afa3e0c89203cd01380638f8ed7f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
.. module:: register.views.list
:synopsis: View to list all registered users
.. moduleauthor:: Chris Bartlett
"""
from django.urls import reverse
from django.views.generic import TemplateView
from register.api.utils.make_request import make_request
class UserListView(TemplateView):
... | 25.612903 | 61 | 0.667506 | 95 | 794 | 5.442105 | 0.568421 | 0.06383 | 0.061896 | 0.069633 | 0.12766 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0.006319 | 0.202771 | 794 | 30 | 62 | 26.466667 | 0.810427 | 0.206549 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.615385 | 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 |
d0c0175702c2bf4073b22292f0de9bec50aa18ec | 4,658 | py | Python | src/das/model_analyzer/analyzer_args.py | saifullah3396/doc_shap | 0b65912bc9abc8721b5a8aec008a438fa13e8cbf | [
"Apache-2.0"
] | null | null | null | src/das/model_analyzer/analyzer_args.py | saifullah3396/doc_shap | 0b65912bc9abc8721b5a8aec008a438fa13e8cbf | [
"Apache-2.0"
] | null | null | null | src/das/model_analyzer/analyzer_args.py | saifullah3396/doc_shap | 0b65912bc9abc8721b5a8aec008a438fa13e8cbf | [
"Apache-2.0"
] | null | null | null | """
Defines the dataclass for holding training related arguments.
"""
import json
import math
import sys
from dataclasses import asdict, dataclass, field
from enum import Enum
from typing import Any, Dict, List, Optional, Union
from das.models.model_args import ModelArguments
from das.utils.basic_utils import create_... | 30.444444 | 86 | 0.738729 | 501 | 4,658 | 6.550898 | 0.361277 | 0.034126 | 0.030165 | 0.068251 | 0.100548 | 0.026813 | 0 | 0 | 0 | 0 | 0 | 0.007968 | 0.191713 | 4,658 | 152 | 87 | 30.644737 | 0.863745 | 0.054959 | 0 | 0.091743 | 0 | 0 | 0.127886 | 0.056094 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018349 | false | 0.009174 | 0.091743 | 0 | 0.724771 | 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 |
d0d550ba7652a9b60f892093b2e1479dc926d08c | 751 | py | Python | venv/lib/python2.7/dist-packages/landscape/lib/fd.py | pengwu/scapy_env | 3db9c5dea2e219048a2387649d6d89be342903d9 | [
"MIT"
] | null | null | null | venv/lib/python2.7/dist-packages/landscape/lib/fd.py | pengwu/scapy_env | 3db9c5dea2e219048a2387649d6d89be342903d9 | [
"MIT"
] | null | null | null | venv/lib/python2.7/dist-packages/landscape/lib/fd.py | pengwu/scapy_env | 3db9c5dea2e219048a2387649d6d89be342903d9 | [
"MIT"
] | null | null | null | """A utility module which has FD-related functions.
This module mostly exists for L{clean_fds}, so it can be imported without
accidentally getting a reactor or something else that might create a critical
file descriptor.
"""
import os
import resource
def clean_fds():
"""Close all non-stdio file descriptors.
... | 28.884615 | 79 | 0.713715 | 105 | 751 | 5.038095 | 0.72381 | 0.068053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010309 | 0.225033 | 751 | 25 | 80 | 30.04 | 0.898625 | 0.576565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0.2 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d0dd4e4b7186f7188547583db738e69bad28912d | 1,174 | py | Python | testLib.py | quarker/stream-metrics | ae03748b75f840dbff346bedb195f9414243553f | [
"Apache-2.0"
] | null | null | null | testLib.py | quarker/stream-metrics | ae03748b75f840dbff346bedb195f9414243553f | [
"Apache-2.0"
] | 1 | 2018-02-27T20:57:06.000Z | 2018-02-27T20:57:06.000Z | testLib.py | dnguyen219/stream-metrics | ae03748b75f840dbff346bedb195f9414243553f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from scapy.all import *
import dpkt
import argparse
import sys
def printTS(pcapFile, lib):
if lib == 'scapy':
packets = rdpcap(pcapFile)
counter = 0
for packet in packets:
# print packet.time
print str.format('{0:.9f}', packet.time)
... | 28.634146 | 123 | 0.563884 | 145 | 1,174 | 4.489655 | 0.489655 | 0.024578 | 0.043011 | 0.046083 | 0.12596 | 0.073733 | 0 | 0 | 0 | 0 | 0 | 0.017413 | 0.315162 | 1,174 | 40 | 124 | 29.35 | 0.792289 | 0.032368 | 0 | 0.242424 | 0 | 0 | 0.163139 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.121212 | null | null | 0.151515 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d0e54036779246dea8bdd23ebf8e7a5ba24254b9 | 1,054 | py | Python | debpkgr/compat.py | sassoftware/python-debpkgr | 220d57b461c2f323a30fb44b2d1126ca4a0f9ea6 | [
"Apache-2.0"
] | 7 | 2017-03-09T11:28:42.000Z | 2019-10-26T02:12:09.000Z | debpkgr/compat.py | sassoftware/python-debpkgr | 220d57b461c2f323a30fb44b2d1126ca4a0f9ea6 | [
"Apache-2.0"
] | 12 | 2017-03-24T07:45:41.000Z | 2019-12-20T15:44:11.000Z | debpkgr/compat.py | sassoftware/python-debpkgr | 220d57b461c2f323a30fb44b2d1126ca4a0f9ea6 | [
"Apache-2.0"
] | 5 | 2017-03-09T11:28:15.000Z | 2021-02-18T13:14:34.000Z | #
# 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, software
# distributed under ... | 30.114286 | 74 | 0.766603 | 154 | 1,054 | 5.214286 | 0.597403 | 0.061021 | 0.089664 | 0.089664 | 0.072229 | 0.072229 | 0 | 0 | 0 | 0 | 0 | 0.005701 | 0.167932 | 1,054 | 34 | 75 | 31 | 0.90992 | 0.506641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.470588 | 0 | 0.470588 | 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 |
d0e7767371bb84c6b1d217086e05c8cb123f2e3b | 293 | py | Python | napari_allencell_segmenter/model/channel.py | neuromusic/napari-allencell-segmenter | c732408023c828c07ec2a425f4f426174d94946b | [
"BSD-3-Clause"
] | 8 | 2021-06-29T09:24:22.000Z | 2022-03-22T23:43:10.000Z | napari_allencell_segmenter/model/channel.py | neuromusic/napari-allencell-segmenter | c732408023c828c07ec2a425f4f426174d94946b | [
"BSD-3-Clause"
] | 97 | 2021-02-18T02:39:31.000Z | 2021-06-18T21:38:41.000Z | napari_allencell_segmenter/model/channel.py | neuromusic/napari-allencell-segmenter | c732408023c828c07ec2a425f4f426174d94946b | [
"BSD-3-Clause"
] | 2 | 2021-09-14T22:07:22.000Z | 2022-02-07T16:41:02.000Z | from dataclasses import dataclass
@dataclass
class Channel:
index: int
name: str = None
@property
def display_name(self):
if self.name is None or self.name.strip().isspace():
return f"Channel {self.index}"
return f"Ch{self.index}. {self.name}"
| 19.533333 | 60 | 0.627986 | 39 | 293 | 4.692308 | 0.589744 | 0.131148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262799 | 293 | 14 | 61 | 20.928571 | 0.847222 | 0 | 0 | 0 | 0 | 0 | 0.163823 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d0e8204ae150a3e8c57ae24fe1a684bdf4ee48d0 | 4,650 | py | Python | utils/config.py | ebadawy/JointModeling | 5140e596113a6dabbc503a1fb1a3234efabf0f0b | [
"Apache-2.0"
] | null | null | null | utils/config.py | ebadawy/JointModeling | 5140e596113a6dabbc503a1fb1a3234efabf0f0b | [
"Apache-2.0"
] | null | null | null | utils/config.py | ebadawy/JointModeling | 5140e596113a6dabbc503a1fb1a3234efabf0f0b | [
"Apache-2.0"
] | 1 | 2020-04-11T09:40:17.000Z | 2020-04-11T09:40:17.000Z | import json
from bunch import Bunch
import os
def get_config_from_json(json_file):
"""
Get the config from a json file
:param json_file:
:return: config(namespace) or config(dictionary)
"""
# parse the configurations from the config json file provided
with open(json_file, 'r') as config_fi... | 73.809524 | 133 | 0.529892 | 551 | 4,650 | 4.297641 | 0.183303 | 0.063345 | 0.152027 | 0.202703 | 0.356841 | 0.198902 | 0.070946 | 0.070946 | 0.039696 | 0.039696 | 0 | 0.01479 | 0.360215 | 4,650 | 62 | 134 | 75 | 0.781176 | 0.045806 | 0 | 0.043478 | 0 | 0 | 0.19243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065217 | false | 0 | 0.065217 | 0 | 0.195652 | 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 |
d0f021bab54a09a9592e986f398fbcf5edaf9bb8 | 1,059 | py | Python | backent/api/migrations/0010_populate_event_tags.py | namafutatsu/backent | 9db38d0db8d9193fad7cd41aa2e4b55c75dfe01d | [
"MIT"
] | null | null | null | backent/api/migrations/0010_populate_event_tags.py | namafutatsu/backent | 9db38d0db8d9193fad7cd41aa2e4b55c75dfe01d | [
"MIT"
] | null | null | null | backent/api/migrations/0010_populate_event_tags.py | namafutatsu/backent | 9db38d0db8d9193fad7cd41aa2e4b55c75dfe01d | [
"MIT"
] | null | null | null | from django.db import migrations
from backent.api import enums
def populate_tags(apps, schema_editor):
EventTag = apps.get_model('backent_api', 'EventTag')
EventTag.objects.get_or_create(name=enums.EVENT_TAG_BEGINNER_FRIENDLY)
EventTag.objects.get_or_create(name=enums.EVENT_TAG_INTERNATIONAL)
EventTa... | 34.16129 | 76 | 0.777148 | 136 | 1,059 | 5.727941 | 0.279412 | 0.154044 | 0.143774 | 0.174583 | 0.731707 | 0.698331 | 0.629012 | 0.599487 | 0.543004 | 0.318357 | 0 | 0.004283 | 0.118036 | 1,059 | 30 | 77 | 35.3 | 0.829764 | 0 | 0 | 0.095238 | 0 | 0 | 0.064212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.095238 | 0 | 0.333333 | 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 |
d0f9d9924cd74ed348272e7fd7ebf2c3d8c9e835 | 2,844 | py | Python | sqlpuzzle/_queries/selectoptions.py | Dundee/python-sqlpuzzle | 260524922a0645c9bf94a9779195f93ef2c78cba | [
"MIT"
] | 8 | 2015-03-19T11:25:32.000Z | 2020-09-02T11:30:10.000Z | sqlpuzzle/_queries/selectoptions.py | Dundee/python-sqlpuzzle | 260524922a0645c9bf94a9779195f93ef2c78cba | [
"MIT"
] | 7 | 2015-03-23T14:34:28.000Z | 2022-02-21T12:36:01.000Z | sqlpuzzle/_queries/selectoptions.py | Dundee/python-sqlpuzzle | 260524922a0645c9bf94a9779195f93ef2c78cba | [
"MIT"
] | 4 | 2018-11-28T21:59:27.000Z | 2020-01-05T01:50:08.000Z | from sqlpuzzle._common import Object
from sqlpuzzle._queries.options import Options
__all__ = ()
class SelectOptions(Options):
_definition_of_options = {
'sql_cache': {
'off': '',
'cache': 'SQL_CACHE',
'no_cache': 'SQL_NO_CACHE'
},
'duplicated': {
... | 27.085714 | 71 | 0.54782 | 321 | 2,844 | 4.52648 | 0.174455 | 0.074329 | 0.107364 | 0.140399 | 0.405368 | 0.337922 | 0.176875 | 0.108741 | 0 | 0 | 0 | 0 | 0.312588 | 2,844 | 104 | 72 | 27.346154 | 0.743223 | 0 | 0 | 0.096386 | 0 | 0 | 0.192335 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204819 | false | 0 | 0.024096 | 0.036145 | 0.325301 | 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 |
d0fa3582daacb7e7b72dfa9ecf2ba23f58d16510 | 1,199 | py | Python | Code/RowVariable.py | akankshadiwedy/t2wml | 02f60611eec19d10a92fd2cb06f07339cd2cb269 | [
"MIT"
] | null | null | null | Code/RowVariable.py | akankshadiwedy/t2wml | 02f60611eec19d10a92fd2cb06f07339cd2cb269 | [
"MIT"
] | null | null | null | Code/RowVariable.py | akankshadiwedy/t2wml | 02f60611eec19d10a92fd2cb06f07339cd2cb269 | [
"MIT"
] | null | null | null | from Code.utility_functions import get_excel_row_index
class RowVariable:
def __init__(self) -> None:
self.value = None
def evaluate(self, bindings: dict) -> str:
"""
This function checks if the row variable exists in the bindings dictionary
If yes, then returns the value from... | 29.243902 | 98 | 0.574646 | 148 | 1,199 | 4.554054 | 0.391892 | 0.093472 | 0.080119 | 0.089021 | 0.347181 | 0.272997 | 0.189911 | 0.189911 | 0.189911 | 0.189911 | 0 | 0 | 0.355296 | 1,199 | 40 | 99 | 29.975 | 0.871928 | 0.319433 | 0 | 0.285714 | 0 | 0 | 0.015581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.047619 | 0 | 0.571429 | 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 |
190383e67ecd4d49f6a52f77fa42e3e6a18c204f | 4,197 | py | Python | misc/openstack-dev.py | tnoff/OpenDerp | 44f1e5c2027a2949b785941044a8503a34423228 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | misc/openstack-dev.py | tnoff/OpenDerp | 44f1e5c2027a2949b785941044a8503a34423228 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | misc/openstack-dev.py | tnoff/OpenDerp | 44f1e5c2027a2949b785941044a8503a34423228 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | #!/usr/bin/env python
import argparse
import boto
from boto.s3 import connection as s3_connection
from cinderclient.v1 import client as cinder_v1
import code
from novaclient.v1_1 import client as nova_v1
from novaclient.shell import OpenStackComputeShell as open_shell
from glanceclient import Client as glance_client
fr... | 41.97 | 84 | 0.571122 | 480 | 4,197 | 4.7875 | 0.254167 | 0.060923 | 0.042646 | 0.022628 | 0.227154 | 0.194082 | 0.194082 | 0.141862 | 0.141862 | 0.141862 | 0 | 0.011046 | 0.309745 | 4,197 | 99 | 85 | 42.393939 | 0.782188 | 0.008339 | 0 | 0.195652 | 0 | 0 | 0.145192 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032609 | false | 0.097826 | 0.152174 | 0 | 0.206522 | 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 |
1907beae999c84a846e911c9160f122031a33418 | 3,046 | py | Python | tools/perf/contrib/cluster_telemetry/screenshot_unittest.py | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | tools/perf/contrib/cluster_telemetry/screenshot_unittest.py | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | tools/perf/contrib/cluster_telemetry/screenshot_unittest.py | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | # Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import shutil
import tempfile
from telemetry import decorators
from telemetry.testing import options_for_unittests
from telemetry.testing import p... | 41.726027 | 80 | 0.738345 | 370 | 3,046 | 5.878378 | 0.354054 | 0.051494 | 0.023908 | 0.044138 | 0.327816 | 0.276322 | 0.236782 | 0.236782 | 0.2 | 0.2 | 0 | 0.034359 | 0.178267 | 3,046 | 72 | 81 | 42.305556 | 0.834598 | 0.149705 | 0 | 0.211538 | 0 | 0 | 0.017048 | 0 | 0 | 0 | 0 | 0.013889 | 0.173077 | 1 | 0.076923 | false | 0 | 0.153846 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1908ece0bbcf8875b565e097e59669305dfcf236 | 354 | py | Python | _aulas/ex004.py | CarlosJunn/Aprendendo_Python | cddb29b5ee2058c3fb612574eb4af414770b7422 | [
"MIT"
] | null | null | null | _aulas/ex004.py | CarlosJunn/Aprendendo_Python | cddb29b5ee2058c3fb612574eb4af414770b7422 | [
"MIT"
] | null | null | null | _aulas/ex004.py | CarlosJunn/Aprendendo_Python | cddb29b5ee2058c3fb612574eb4af414770b7422 | [
"MIT"
] | null | null | null | a = input('digite algo :')
print('O tipo primitivo desswe valor é ', type(a))
print("Só tem espaços? ", a.isspace())
print('É um número? ', a.isnumeric())
print('E alfabetico?', a.isalpha())
print('É alphanumerico?', a.isalnum())
print('Esta em maiúsculas?', a.isupper())
print('Esta em minúsculas?', a.islower())
print... | 35.4 | 50 | 0.675141 | 52 | 354 | 4.596154 | 0.634615 | 0.050209 | 0.09205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112994 | 354 | 10 | 51 | 35.4 | 0.761147 | 0 | 0 | 0 | 0 | 0 | 0.44507 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.888889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
190ab0b7b7eed8792f426c4ad62cea8612750811 | 3,966 | py | Python | authentication/login.py | ICTKevinWong/webservices-samples | 35a8b8571d88276ff12ad60959192ce20ef5bf19 | [
"BSD-3-Clause"
] | 6 | 2018-01-03T14:13:57.000Z | 2021-07-28T21:12:35.000Z | authentication/login.py | ICTKevinWong/webservices-samples | 35a8b8571d88276ff12ad60959192ce20ef5bf19 | [
"BSD-3-Clause"
] | 5 | 2018-01-03T15:28:47.000Z | 2020-08-28T08:25:07.000Z | authentication/login.py | ICTKevinWong/webservices-samples | 35a8b8571d88276ff12ad60959192ce20ef5bf19 | [
"BSD-3-Clause"
] | 6 | 2017-10-17T19:37:44.000Z | 2021-08-19T13:10:16.000Z | """
Examples of authenticating to the API.
Usage:
login <username> <password> <server>
login -h
Arguments:
username ID to provide for authentication
password Password corresponding to specified userid.
server API endpoint.
Options:
-h --help Show this screen.
--version Show version.
Descrip... | 47.783133 | 120 | 0.72113 | 547 | 3,966 | 5.197441 | 0.369287 | 0.031657 | 0.063313 | 0.023918 | 0.234611 | 0.219838 | 0.208934 | 0.178684 | 0.162504 | 0.120295 | 0 | 0.0049 | 0.176752 | 3,966 | 82 | 121 | 48.365854 | 0.86585 | 0.539334 | 0 | 0.153846 | 0 | 0.038462 | 0.297507 | 0.089197 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.038462 | false | 0.269231 | 0.115385 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
190b6799d93e741a949b082cb1fde511c62a4b57 | 487 | py | Python | Chapter08/qt08_winBkground03.py | csy1993/PythonQt | c100cd9e1327fc7731bf04c7754cafb8dd578fa5 | [
"Apache-2.0"
] | null | null | null | Chapter08/qt08_winBkground03.py | csy1993/PythonQt | c100cd9e1327fc7731bf04c7754cafb8dd578fa5 | [
"Apache-2.0"
] | null | null | null | Chapter08/qt08_winBkground03.py | csy1993/PythonQt | c100cd9e1327fc7731bf04c7754cafb8dd578fa5 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
【简介】
界面背景颜色设置
'''
from PyQt5.QtWidgets import QApplication, QLabel ,QWidget, QVBoxLayout , QPushButton, QMainWindow
from PyQt5.QtGui import QPalette , QBrush , QPixmap
from PyQt5.QtCore import Qt
import sys
app = QApplication(sys.argv)
win = QMainWindow()
win.setWindowTitle("... | 20.291667 | 99 | 0.710472 | 59 | 487 | 5.847458 | 0.627119 | 0.078261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0.158111 | 487 | 23 | 100 | 21.173913 | 0.817073 | 0.082136 | 0 | 0 | 0 | 0 | 0.018519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 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 |
190e10d1d867b6f965986f63ffa52b804353b9e8 | 18,322 | py | Python | ligpy/ligpy_utils.py | LigninTools/UWCAP_10 | 0f665d3a2895657d9dda8ea9cc395583f3437dcc | [
"BSD-2-Clause"
] | 7 | 2016-06-30T18:14:14.000Z | 2020-04-20T22:18:47.000Z | ligpy/ligpy_utils.py | LigninTools/UWCAP_10 | 0f665d3a2895657d9dda8ea9cc395583f3437dcc | [
"BSD-2-Clause"
] | null | null | null | ligpy/ligpy_utils.py | LigninTools/UWCAP_10 | 0f665d3a2895657d9dda8ea9cc395583f3437dcc | [
"BSD-2-Clause"
] | 5 | 2016-07-30T04:05:29.000Z | 2021-08-14T13:58:11.000Z | """
Misc utility functions required by several modules in the ligpy program.
"""
import os
import numpy as np
from constants import GAS_CONST, MW
def set_paths():
"""
Set the absolute path to required files on the current machine.
Returns
-------
reactionlist_path : str
... | 35.370656 | 79 | 0.581705 | 2,150 | 18,322 | 4.854419 | 0.164186 | 0.008623 | 0.008048 | 0.009965 | 0.288493 | 0.233496 | 0.196033 | 0.164319 | 0.147265 | 0.1396 | 0 | 0.007981 | 0.329822 | 18,322 | 517 | 80 | 35.439072 | 0.842007 | 0.072263 | 0 | 0.197802 | 0 | 0 | 0.058744 | 0.011084 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.016484 | 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 |
ef6ac86677970e875c525f92de89d605e9c5d009 | 7,836 | py | Python | data_prep_helper.py | mayofcumtb/PaperWrite | 4a2154d68fa00e1912a3d4ce7b514364314c55e3 | [
"Apache-2.0"
] | null | null | null | data_prep_helper.py | mayofcumtb/PaperWrite | 4a2154d68fa00e1912a3d4ce7b514364314c55e3 | [
"Apache-2.0"
] | null | null | null | data_prep_helper.py | mayofcumtb/PaperWrite | 4a2154d68fa00e1912a3d4ce7b514364314c55e3 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import sys
import random
import tempfile
import shutil
mayan_debug = 1
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.append(BASE_DIR)
sys.path.append(os.path.dirname(BASE_DIR))
from global_variables import *
from caffe_utils import *
'''
@brief:
... | 41.026178 | 185 | 0.661179 | 1,156 | 7,836 | 4.211073 | 0.198097 | 0.036976 | 0.054643 | 0.028348 | 0.500822 | 0.445357 | 0.410436 | 0.399343 | 0.389688 | 0.373459 | 0 | 0.037907 | 0.185299 | 7,836 | 190 | 186 | 41.242105 | 0.724624 | 0.049515 | 0 | 0.342342 | 0 | 0.009009 | 0.072154 | 0.032049 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.063063 | null | null | 0.045045 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ef700e08b8631cf4f5d03872e7a2e1c13a5f31f4 | 50,478 | py | Python | shwirl/shaders/render_volume.py | macrocosme/shwirl | 87147ba1e99463e96b7f4295fd24ab57440d9981 | [
"BSD-3-Clause"
] | 3 | 2018-05-09T17:55:53.000Z | 2019-07-22T09:14:41.000Z | shwirl/shaders/render_volume.py | macrocosme/shwirl | 87147ba1e99463e96b7f4295fd24ab57440d9981 | [
"BSD-3-Clause"
] | 9 | 2017-04-07T01:44:15.000Z | 2018-12-16T20:47:08.000Z | shwirl/shaders/render_volume.py | macrocosme/shwirl | 87147ba1e99463e96b7f4295fd24ab57440d9981 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import division
# This file implements a RenderVolumeVisual class. It is derived from the
# VolumeVisual class in vispy.visuals.volume, which is released under a BSD
# license included here:
#
# ===========================================================================
# Vispy is licensed under the te... | 33.252964 | 110 | 0.567297 | 6,073 | 50,478 | 4.508315 | 0.130084 | 0.006501 | 0.004821 | 0.004237 | 0.431024 | 0.346762 | 0.302604 | 0.27459 | 0.24979 | 0.226816 | 0 | 0.039963 | 0.317386 | 50,478 | 1,517 | 111 | 33.274885 | 0.754622 | 0.150046 | 0 | 0.326025 | 0 | 0.025739 | 0.654076 | 0.044814 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048618 | false | 0.000953 | 0.007626 | 0.018112 | 0.089609 | 0.00286 | 0 | 0 | 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 |
ef724512834ae77b7fe4b2559fc21eb34f4025f5 | 5,476 | py | Python | integration/experiment/common_args.py | avilcheslopez/geopm | 35ad0af3f17f42baa009c97ed45eca24333daf33 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | integration/experiment/common_args.py | avilcheslopez/geopm | 35ad0af3f17f42baa009c97ed45eca24333daf33 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | integration/experiment/common_args.py | avilcheslopez/geopm | 35ad0af3f17f42baa009c97ed45eca24333daf33 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | #
# Copyright (c) 2015 - 2022, Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause
#
'''
Common command line arguments for experiments.
'''
def setup_run_args(parser):
"""Add common arguments for all run scripts:
--output-dir --node-count --trial-count --cool-off-time
"""
add_output_dir(pa... | 36.506667 | 95 | 0.611578 | 640 | 5,476 | 5.040625 | 0.198438 | 0.080905 | 0.110663 | 0.135462 | 0.50558 | 0.33447 | 0.226906 | 0.181029 | 0.059826 | 0.059826 | 0 | 0.003774 | 0.274105 | 5,476 | 149 | 96 | 36.751678 | 0.807799 | 0.042001 | 0 | 0.170213 | 0 | 0 | 0.297432 | 0.017056 | 0 | 0 | 0 | 0 | 0 | 1 | 0.234043 | false | 0 | 0 | 0 | 0.234043 | 0.010638 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ef7445ff5f0dbb5c8605cf8ad95f6ecbcc7f04a5 | 10,466 | py | Python | Source Code.py | S-AlMazrouai/Chess-king-last-position-finder | 609346ee660655bd7aa2afe486c4ad074e3d33fc | [
"MIT"
] | 1 | 2022-02-04T11:14:13.000Z | 2022-02-04T11:14:13.000Z | Source Code.py | S-AlMazrouai/Chess-king-last-position-finder | 609346ee660655bd7aa2afe486c4ad074e3d33fc | [
"MIT"
] | null | null | null | Source Code.py | S-AlMazrouai/Chess-king-last-position-finder | 609346ee660655bd7aa2afe486c4ad074e3d33fc | [
"MIT"
] | null | null | null | import requests
import json
import chess
import chess.pgn
import io
from collections import Counter
from openpyxl import load_workbook
import numpy
#API link: https://api.chess.com/pub/player/{user}/games/{year}/{month}/pgn
baseUrl='https://api.chess.com/pub/player/'
users=['Mazrouai'] ... | 87.94958 | 228 | 0.391458 | 898 | 10,466 | 4.551225 | 0.265033 | 0.013457 | 0.028627 | 0.033276 | 0.31539 | 0.30071 | 0.24321 | 0.24321 | 0.233423 | 0.212381 | 0 | 0.01374 | 0.55494 | 10,466 | 118 | 229 | 88.694915 | 0.863675 | 0.280623 | 0 | 0.146067 | 0 | 0 | 0.027715 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.089888 | 0 | 0.089888 | 0.05618 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef7a8845996df8b5695e947565280cd90979fd06 | 1,840 | py | Python | load.py | ontocord/create_pii_dataset | bfd246a8f8b443e238f260f307bd41d86adc3136 | [
"Apache-2.0"
] | null | null | null | load.py | ontocord/create_pii_dataset | bfd246a8f8b443e238f260f307bd41d86adc3136 | [
"Apache-2.0"
] | null | null | null | load.py | ontocord/create_pii_dataset | bfd246a8f8b443e238f260f307bd41d86adc3136 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright, 2021 Ontocord, LLC, All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | 33.454545 | 112 | 0.807609 | 257 | 1,840 | 5.688716 | 0.498054 | 0.055404 | 0.077975 | 0.094391 | 0.281122 | 0.237346 | 0.237346 | 0.218194 | 0.218194 | 0.218194 | 0 | 0.024089 | 0.120109 | 1,840 | 54 | 113 | 34.074074 | 0.878938 | 0.318478 | 0 | 0.176471 | 0 | 0 | 0.112187 | 0.062954 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.617647 | 0 | 0.617647 | 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 |
ef7bcd09324b9928a69882ed98ebf81368b8f074 | 650 | bzl | Python | rules/nunjucks.bzl | MHASgamer/js-samples | 56ec58ca91a48da09b62a390efb8c5095a54d06f | [
"Apache-2.0"
] | 535 | 2015-08-06T18:30:26.000Z | 2022-03-30T08:34:35.000Z | rules/nunjucks.bzl | HazelAndrews/js-samples | b7e5e7ceb411830fa1bf6b125d938e1c415edc21 | [
"Apache-2.0"
] | 915 | 2015-08-05T05:36:03.000Z | 2022-03-28T17:08:42.000Z | rules/nunjucks.bzl | HazelAndrews/js-samples | b7e5e7ceb411830fa1bf6b125d938e1c415edc21 | [
"Apache-2.0"
] | 790 | 2015-08-05T13:51:17.000Z | 2022-03-31T16:56:59.000Z | def nunjucks(name, outs, template, json, data, mode):
# this genrule moves the generated html file to the correct location
# nunjucks-cli does not allow specifying a single output file
# nunjucks-cli converts the .njk to a .html by default
native.genrule(
name = name,
srcs = data,
... | 50 | 184 | 0.630769 | 78 | 650 | 5.25641 | 0.487179 | 0.107317 | 0.078049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224615 | 650 | 12 | 185 | 54.166667 | 0.813492 | 0.275385 | 0 | 0 | 1 | 0.111111 | 0.385439 | 0.044968 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.111111 | 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 |
ef8970f817cb168ae688aab739b624cb804e885d | 665 | py | Python | logger/TMP102.py | scsibug/Raspberry-Pi-Sensor-Node | 606cf2a15a72ac1503c7318a39c9f3cc523a9c4a | [
"Unlicense"
] | 1 | 2015-12-23T04:27:16.000Z | 2015-12-23T04:27:16.000Z | logger/TMP102.py | scsibug/Raspberry-Pi-Sensor-Node | 606cf2a15a72ac1503c7318a39c9f3cc523a9c4a | [
"Unlicense"
] | null | null | null | logger/TMP102.py | scsibug/Raspberry-Pi-Sensor-Node | 606cf2a15a72ac1503c7318a39c9f3cc523a9c4a | [
"Unlicense"
] | null | null | null | import time
import smbus
from Adafruit_I2C import Adafruit_I2C
# ===========================================================================
# TMP102 Class
# ===========================================================================
class TMP102:
#i2c = None
# Constructor
def __init__(self, address=0x48, deb... | 24.62963 | 77 | 0.508271 | 73 | 665 | 4.493151 | 0.547945 | 0.10061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053309 | 0.181955 | 665 | 26 | 78 | 25.576923 | 0.549632 | 0.446617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022346 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ef90aefef6921157afac229b23fbddf7cab99743 | 854 | py | Python | help_desk/help_desk/doctype/department_name/department_name.py | shrikant9867/mycfohelpdesk | b285b156aec53ecff5873f4630638687ff5a0e92 | [
"MIT"
] | null | null | null | help_desk/help_desk/doctype/department_name/department_name.py | shrikant9867/mycfohelpdesk | b285b156aec53ecff5873f4630638687ff5a0e92 | [
"MIT"
] | null | null | null | help_desk/help_desk/doctype/department_name/department_name.py | shrikant9867/mycfohelpdesk | b285b156aec53ecff5873f4630638687ff5a0e92 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Indictrans and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
import json
import string
from frappe.model.document import Document
from frappe.utils import cstr, flt, getdate, comma_and, cint
from frappe... | 32.846154 | 108 | 0.799766 | 110 | 854 | 5.954545 | 0.481818 | 0.045802 | 0.122137 | 0.091603 | 0.210687 | 0.210687 | 0.091603 | 0.091603 | 0 | 0 | 0 | 0.006658 | 0.120609 | 854 | 26 | 109 | 32.846154 | 0.865513 | 0.137002 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.444444 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ef978b1341d6c5d5f3129e9244bedb2f75765eb8 | 996 | py | Python | blog/viewmixins.py | pincoin/rakmai | d9daa399aff50712a86b2dec9d94e622237b25b0 | [
"MIT"
] | 11 | 2018-04-02T16:36:19.000Z | 2019-07-10T05:54:58.000Z | blog/viewmixins.py | pincoin/rakmai | d9daa399aff50712a86b2dec9d94e622237b25b0 | [
"MIT"
] | 22 | 2019-01-01T20:40:21.000Z | 2022-02-10T08:06:39.000Z | blog/viewmixins.py | pincoin/rakmai | d9daa399aff50712a86b2dec9d94e622237b25b0 | [
"MIT"
] | 4 | 2019-03-12T14:24:37.000Z | 2022-01-07T16:20:22.000Z | import logging
from .forms import PostSearchForm
from .models import Blog
class BlogContextMixin(object):
logger = logging.getLogger(__name__)
def dispatch(self, *args, **kwargs):
self.blog = Blog.objects.get(slug=self.kwargs['blog'])
self.block_size = self.blog.block_size
self.chun... | 27.666667 | 77 | 0.684739 | 119 | 996 | 5.521008 | 0.294118 | 0.048706 | 0.085236 | 0.085236 | 0.365297 | 0.21309 | 0.118721 | 0.118721 | 0 | 0 | 0 | 0 | 0.198795 | 996 | 35 | 78 | 28.457143 | 0.823308 | 0 | 0 | 0.272727 | 0 | 0 | 0.021084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.136364 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ef9feaf45807510f4cf448436f428cc436b0de04 | 744 | py | Python | main.py | bhaskar-nair2/Coded-Passwords | 306d01e54bf43c46267ed12c907a49932326b931 | [
"MIT"
] | null | null | null | main.py | bhaskar-nair2/Coded-Passwords | 306d01e54bf43c46267ed12c907a49932326b931 | [
"MIT"
] | null | null | null | main.py | bhaskar-nair2/Coded-Passwords | 306d01e54bf43c46267ed12c907a49932326b931 | [
"MIT"
] | null | null | null | import hashlib
class data:
def __init__(self,username,password):
self.username=username
self.hash=self.get_hash(password)
def get_hash(self,password):
for _ in range(0,9999999):
head=(str(_)+self.username+password).encode()
i=hashlib.sha3_256(head).hexdigest()
... | 28.615385 | 57 | 0.555108 | 87 | 744 | 4.62069 | 0.402299 | 0.159204 | 0.099502 | 0.114428 | 0.263682 | 0.263682 | 0.263682 | 0.263682 | 0.263682 | 0.263682 | 0 | 0.041257 | 0.31586 | 744 | 26 | 58 | 28.615385 | 0.748527 | 0 | 0 | 0.086957 | 0 | 0 | 0.014765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0.26087 | 0.043478 | 0 | 0.434783 | 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 |
efaff942ac5c5e8e164b052efc98c4fab3a41b3b | 1,401 | py | Python | falco/svc/version_pb2_grpc.py | jasondellaluce/client-py | 694780796289fdd20f1588d06e66c5a1b52ecb26 | [
"Apache-2.0"
] | 20 | 2019-10-14T15:01:14.000Z | 2021-08-09T19:13:08.000Z | falco/svc/version_pb2_grpc.py | jasondellaluce/client-py | 694780796289fdd20f1588d06e66c5a1b52ecb26 | [
"Apache-2.0"
] | 45 | 2019-10-14T14:55:30.000Z | 2022-02-11T03:27:37.000Z | falco/svc/version_pb2_grpc.py | jasondellaluce/client-py | 694780796289fdd20f1588d06e66c5a1b52ecb26 | [
"Apache-2.0"
] | 11 | 2019-10-14T17:41:06.000Z | 2022-02-21T05:40:44.000Z | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
import version_pb2 as version__pb2
class serviceStub(object):
"""This service defines a RPC call
to request the Falco version.
"""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
... | 28.591837 | 70 | 0.730193 | 159 | 1,401 | 6.176101 | 0.402516 | 0.0611 | 0.034623 | 0.04888 | 0.120163 | 0.120163 | 0.120163 | 0.120163 | 0.120163 | 0.120163 | 0 | 0.005249 | 0.184154 | 1,401 | 48 | 71 | 29.1875 | 0.853893 | 0.210564 | 0 | 0 | 1 | 0 | 0.097561 | 0.047842 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0.038462 | 0.076923 | 0 | 0.269231 | 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 |
efb70cec858af5a7d681ffd1896f1dd46735a318 | 1,774 | py | Python | Dictionary.py | edisoncast/DES-UOC | cd179e21c03ad780c9ea3876a6219c32b8e34cad | [
"MIT"
] | null | null | null | Dictionary.py | edisoncast/DES-UOC | cd179e21c03ad780c9ea3876a6219c32b8e34cad | [
"MIT"
] | null | null | null | Dictionary.py | edisoncast/DES-UOC | cd179e21c03ad780c9ea3876a6219c32b8e34cad | [
"MIT"
] | null | null | null | #Creado por Jhon Edison Castro Sánchez
#Diccionario tomado de https://github.com/danielmiessler/SecLists/blob/bb915befb208fd900592bb5a25d0c5e4f869f8ea/Passwords/Leaked-Databases/rockyou.txt.tar.gz
#Se usa para generar el mismo comportamiento de openssl de linux
#https://docs.python.org/2/library/crypt.html
import cryp... | 39.422222 | 157 | 0.673055 | 253 | 1,774 | 4.687747 | 0.501976 | 0.033727 | 0.010118 | 0.038786 | 0.097808 | 0.097808 | 0.097808 | 0.097808 | 0.097808 | 0.097808 | 0 | 0.025641 | 0.230552 | 1,774 | 45 | 158 | 39.422222 | 0.843223 | 0.444758 | 0 | 0.230769 | 0 | 0 | 0.09147 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038462 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
efb866a60e5d0e5a7b79c81d5acd283c1c39df92 | 227 | py | Python | .test/test/task1/aufgabe4.py | sowinski/testsubtree | d09b72e6b366e8e29e038445a1fa6987b2456625 | [
"MIT"
] | null | null | null | .test/test/task1/aufgabe4.py | sowinski/testsubtree | d09b72e6b366e8e29e038445a1fa6987b2456625 | [
"MIT"
] | null | null | null | .test/test/task1/aufgabe4.py | sowinski/testsubtree | d09b72e6b366e8e29e038445a1fa6987b2456625 | [
"MIT"
] | null | null | null | from nltk.book import *
def letterFrequ(text):
freq_dist = FreqDist()
for word in text:
for char in word:
freq_dist.inc(char)
return freq_dist
print letterFrequ(text1)
print letterFrequ(text5)
| 15.133333 | 26 | 0.669604 | 31 | 227 | 4.806452 | 0.612903 | 0.161074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011834 | 0.255507 | 227 | 14 | 27 | 16.214286 | 0.869822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
efbe9e033668c8068ec57cb141083c350416dc90 | 1,668 | py | Python | src/controllers/userController.py | gioliveirass/fatec-BDNR-MercadoLivre | dd2c407f6728e4f11e8292463cc2ba3ad562de1e | [
"MIT"
] | null | null | null | src/controllers/userController.py | gioliveirass/fatec-BDNR-MercadoLivre | dd2c407f6728e4f11e8292463cc2ba3ad562de1e | [
"MIT"
] | null | null | null | src/controllers/userController.py | gioliveirass/fatec-BDNR-MercadoLivre | dd2c407f6728e4f11e8292463cc2ba3ad562de1e | [
"MIT"
] | null | null | null | import connectBD as connectDB
from pprint import pprint
def findSort():
mydb = connectDB.connect()
mycol = mydb.usuario
print("\n===========================")
print("==== TODOS OS USUARIOS ====")
print("===========================\n")
mydoc = mycol.find().sort("nome")
for x in mydoc:
... | 30.327273 | 49 | 0.492206 | 162 | 1,668 | 5.04321 | 0.277778 | 0.073439 | 0.122399 | 0.152999 | 0.46022 | 0.383109 | 0.383109 | 0.331701 | 0.331701 | 0.274174 | 0 | 0 | 0.205036 | 1,668 | 55 | 50 | 30.327273 | 0.616139 | 0 | 0 | 0.42 | 0 | 0 | 0.319952 | 0.168963 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.04 | 0 | 0.14 | 0.44 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
efc074386633ac80149d8065fe9a27e3e95d188c | 374 | py | Python | models/sample.py | OttrOne/suivi | 9e53a39b0f50054b89cb960eb9055fd0a28a5ebf | [
"MIT"
] | null | null | null | models/sample.py | OttrOne/suivi | 9e53a39b0f50054b89cb960eb9055fd0a28a5ebf | [
"MIT"
] | 2 | 2022-01-11T15:50:04.000Z | 2022-01-13T01:53:53.000Z | models/sample.py | OttrOne/suivi | 9e53a39b0f50054b89cb960eb9055fd0a28a5ebf | [
"MIT"
] | null | null | null | from utils import hrsize
from time import time_ns
class Sample:
cpu : float
memory: int
round: int = 5
def __init__(self, cpu: int, mem: int) -> None:
self.cpu = cpu
self.memory = mem
self.timestamp = time_ns()
def __str__(self) -> str:
return f"CPU: {round(self.c... | 22 | 88 | 0.59893 | 54 | 374 | 3.962963 | 0.462963 | 0.098131 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01845 | 0.275401 | 374 | 16 | 89 | 23.375 | 0.771218 | 0 | 0 | 0 | 0 | 0.083333 | 0.187166 | 0.05615 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.083333 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
efc7713fd5edcdf52845e8c0b576613822945b28 | 2,213 | py | Python | interviewPractice/python/02_linkedLists/03_addTwoHugeNumbers.py | netor27/codefights-arcade-solutions | 69701ab06d45902c79ec9221137f90b75969d8c8 | [
"MIT"
] | null | null | null | interviewPractice/python/02_linkedLists/03_addTwoHugeNumbers.py | netor27/codefights-arcade-solutions | 69701ab06d45902c79ec9221137f90b75969d8c8 | [
"MIT"
] | null | null | null | interviewPractice/python/02_linkedLists/03_addTwoHugeNumbers.py | netor27/codefights-arcade-solutions | 69701ab06d45902c79ec9221137f90b75969d8c8 | [
"MIT"
] | null | null | null | ''''
You're given 2 huge integers represented by linked lists. Each linked list element is a number from 0 to 9999 that represents a number with exactly 4 digits. The represented number might have leading zeros. Your task is to add up these huge integers and return the result in the same format.
Example
For a = [9876... | 24.054348 | 291 | 0.615002 | 322 | 2,213 | 4.23913 | 0.369565 | 0.021978 | 0.041758 | 0.021978 | 0.184615 | 0.167033 | 0.167033 | 0.114286 | 0.114286 | 0 | 0 | 0.097205 | 0.288748 | 2,213 | 92 | 292 | 24.054348 | 0.76493 | 0.015364 | 0 | 0.170732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
efca70e500dca1e2e95cfa22dacbadf959220409 | 8,743 | py | Python | preprocessing_data.py | sharathrao13/seq2seq | 0768ea0b765ed93617a8e9e5cb907deae042c83d | [
"Apache-2.0"
] | 1 | 2021-02-12T00:01:45.000Z | 2021-02-12T00:01:45.000Z | preprocessing_data.py | sharathrao13/seq2seq | 0768ea0b765ed93617a8e9e5cb907deae042c83d | [
"Apache-2.0"
] | null | null | null | preprocessing_data.py | sharathrao13/seq2seq | 0768ea0b765ed93617a8e9e5cb907deae042c83d | [
"Apache-2.0"
] | null | null | null | import re
import collections
import shutil
from tensorflow.python.platform import gfile
num_movie_scripts = 10
vocabulary_size = 10000
fraction_dev = 50
path_for_x_train = 'X_train.txt'
path_for_y_train = 'y_train.txt'
path_for_x_dev = 'X_dev.txt'
path_for_y_dev = 'y_dev.txt'
_PAD = b"_PAD"
_GO = b"_GO"
_EOS = b"_EO... | 32.501859 | 196 | 0.649663 | 1,216 | 8,743 | 4.424342 | 0.162007 | 0.036245 | 0.025093 | 0.009665 | 0.351115 | 0.316729 | 0.263197 | 0.241636 | 0.226766 | 0.201859 | 0 | 0.011021 | 0.211255 | 8,743 | 268 | 197 | 32.623134 | 0.769142 | 0.095276 | 0 | 0.286486 | 0 | 0 | 0.084988 | 0.029508 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.021622 | null | null | 0.118919 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
efdbc298676774176ab064bb9bca24e8e6416478 | 1,613 | py | Python | runner/runner.py | lorne-luo/quicksilver | 79f2b66de9ab7aa63a35f56cac800b64c202f70c | [
"MIT"
] | null | null | null | runner/runner.py | lorne-luo/quicksilver | 79f2b66de9ab7aa63a35f56cac800b64c202f70c | [
"MIT"
] | null | null | null | runner/runner.py | lorne-luo/quicksilver | 79f2b66de9ab7aa63a35f56cac800b64c202f70c | [
"MIT"
] | null | null | null | import logging
from queue import Queue
from redis_queue.queue import RedisQueue
from runner.base import BaseRunner
logger = logging.getLogger(__name__)
class MemoryQueueRunner(BaseRunner):
"""Memory queue runner"""
def create_queue(self, queue_name):
return Queue(maxsize=2000)
class ReisQueueRunn... | 25.603175 | 97 | 0.650341 | 183 | 1,613 | 5.453552 | 0.371585 | 0.04509 | 0.039078 | 0.04008 | 0.234469 | 0.164329 | 0.088176 | 0.088176 | 0.088176 | 0 | 0 | 0.004045 | 0.233726 | 1,613 | 62 | 98 | 26.016129 | 0.803398 | 0.052697 | 0 | 0.054054 | 0 | 0 | 0.065476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162162 | false | 0 | 0.135135 | 0.054054 | 0.540541 | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
efe02360bc1283274b4bc2434f2af992e192e9a4 | 7,403 | py | Python | package/tests/test_cp/test_azure/test_domain/test_services/test_vm_credentials_service.py | tim-spiglanin/Azure-Shell | 58c52994f0d6cfd798c5dca33737419ec18363d4 | [
"Apache-2.0"
] | 5 | 2016-09-08T08:33:47.000Z | 2020-02-10T12:31:15.000Z | package/tests/test_cp/test_azure/test_domain/test_services/test_vm_credentials_service.py | tim-spiglanin/Azure-Shell | 58c52994f0d6cfd798c5dca33737419ec18363d4 | [
"Apache-2.0"
] | 505 | 2016-08-09T07:41:03.000Z | 2021-02-08T20:26:46.000Z | package/tests/test_cp/test_azure/test_domain/test_services/test_vm_credentials_service.py | tim-spiglanin/Azure-Shell | 58c52994f0d6cfd798c5dca33737419ec18363d4 | [
"Apache-2.0"
] | 5 | 2016-12-21T12:52:55.000Z | 2021-07-08T09:50:42.000Z | from unittest import TestCase
import mock
from cloudshell.cp.azure.domain.services.vm_credentials_service import VMCredentialsService
from cloudshell.cp.azure.models.vm_credentials import VMCredentials
class TestVMCredentialsService(TestCase):
def setUp(self):
self.test_username = "test_username"
... | 51.409722 | 120 | 0.685533 | 830 | 7,403 | 5.761446 | 0.121687 | 0.097031 | 0.065872 | 0.050188 | 0.780636 | 0.665412 | 0.609159 | 0.582601 | 0.571936 | 0.549352 | 0 | 0.001253 | 0.245171 | 7,403 | 143 | 121 | 51.769231 | 0.85451 | 0.110226 | 0 | 0.481132 | 0 | 0 | 0.062958 | 0.035147 | 0 | 0 | 0 | 0 | 0.169811 | 1 | 0.084906 | false | 0.264151 | 0.037736 | 0 | 0.132075 | 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 |
efe7d81ac7833b8ba25967361da1b664addd861c | 498 | py | Python | setup.py | nicosandller/python-ethereumrpc | e826f99bbb34dc3d8009ac9392677e9ae2c9fa36 | [
"MIT"
] | 1 | 2019-03-28T19:16:21.000Z | 2019-03-28T19:16:21.000Z | setup.py | nicosandller/python-ethereumrpc | e826f99bbb34dc3d8009ac9392677e9ae2c9fa36 | [
"MIT"
] | null | null | null | setup.py | nicosandller/python-ethereumrpc | e826f99bbb34dc3d8009ac9392677e9ae2c9fa36 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(
name = 'python-ethereumrpc',
packages = ['python-ethereumrpc'],
version = '0.1',
description = 'A python interface for ethereum JSON-RPC service.',
author = 'Nicolas Sandller',
author_email = 'nicosandller@gmail.com',
url = 'https://github.com/nicosandller/python-et... | 35.571429 | 82 | 0.696787 | 58 | 498 | 5.948276 | 0.603448 | 0.197101 | 0.081159 | 0.098551 | 0.266667 | 0.266667 | 0.266667 | 0 | 0 | 0 | 0 | 0.009281 | 0.134538 | 498 | 13 | 83 | 38.307692 | 0.791183 | 0 | 0 | 0 | 0 | 0 | 0.53012 | 0.044177 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 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 |
eff725f55234c2a2a095069fa9d26ab47ed278d3 | 8,400 | py | Python | TrinaPointAndClick/src/TrinaPointAndClick/scripts/Marker_List_Node.py | mjclements/TRINA-WPI-2.0 | aa060819522ed9010d20e9db0cf45b19f6b083af | [
"MIT"
] | null | null | null | TrinaPointAndClick/src/TrinaPointAndClick/scripts/Marker_List_Node.py | mjclements/TRINA-WPI-2.0 | aa060819522ed9010d20e9db0cf45b19f6b083af | [
"MIT"
] | null | null | null | TrinaPointAndClick/src/TrinaPointAndClick/scripts/Marker_List_Node.py | mjclements/TRINA-WPI-2.0 | aa060819522ed9010d20e9db0cf45b19f6b083af | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import rospy
import numpy as np
import math
from geometry_msgs.msg import PoseStamped, Transform
from TrinaPointAndClick.msg import Marker, MarkerArray
class Marker_Node():
"""
This node listens to marker tracker data and keeps track of the pose of all markers seen during run-time. This n... | 38.181818 | 202 | 0.616548 | 1,059 | 8,400 | 4.759207 | 0.219075 | 0.035714 | 0.041667 | 0.02381 | 0.139881 | 0.089484 | 0.065675 | 0.055357 | 0.046825 | 0.019444 | 0 | 0.022601 | 0.315238 | 8,400 | 219 | 203 | 38.356164 | 0.853616 | 0.128452 | 0 | 0.044444 | 0 | 0 | 0.029814 | 0 | 0 | 0 | 0 | 0.004566 | 0 | 0 | null | null | 0.011111 | 0.055556 | null | null | 0.011111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
effaf46adea62c6d7c4589ee3471fc9f1f1bc8dc | 3,327 | py | Python | scripts/ocgis_subset.py | Zeitsperre/flyingpigeon | 678370bf428af7ffe11ee79be3b8a89c73215e5e | [
"Apache-2.0"
] | 1 | 2016-12-04T18:01:49.000Z | 2016-12-04T18:01:49.000Z | scripts/ocgis_subset.py | Zeitsperre/flyingpigeon | 678370bf428af7ffe11ee79be3b8a89c73215e5e | [
"Apache-2.0"
] | 13 | 2017-03-16T15:44:21.000Z | 2019-08-19T16:56:04.000Z | scripts/ocgis_subset.py | Zeitsperre/flyingpigeon | 678370bf428af7ffe11ee79be3b8a89c73215e5e | [
"Apache-2.0"
] | null | null | null | from os import path, listdir
import ocgis
from flyingpigeon import subset
from flyingpigeon import utils
from flyingpigeon.ocgis_module import call
def get_prediction(gam_model, ncs_indices): # mask=None
"""
predict the probabillity based on the gam_model and the given climate index datasets
:param gam... | 31.386792 | 110 | 0.644725 | 435 | 3,327 | 4.827586 | 0.358621 | 0.022857 | 0.033333 | 0.042857 | 0.213333 | 0.18 | 0.18 | 0.145714 | 0.145714 | 0.145714 | 0 | 0.007806 | 0.229937 | 3,327 | 105 | 111 | 31.685714 | 0.811866 | 0.281635 | 0 | 0 | 0 | 0 | 0.046946 | 0.013629 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.020408 | 0.285714 | null | null | 0.040816 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
effb3d0f203ab8c4e4ea27554b71aa4fcc456877 | 746 | py | Python | jacc/migrations/0019_entrytype_identifier.py | bachvtuan/django-jacc | 37cdd54d8602d25e43a433bd66ccbed61f45a112 | [
"MIT"
] | 10 | 2019-02-25T23:30:33.000Z | 2021-05-02T18:02:48.000Z | jacc/migrations/0019_entrytype_identifier.py | bachvtuan/django-jacc | 37cdd54d8602d25e43a433bd66ccbed61f45a112 | [
"MIT"
] | null | null | null | jacc/migrations/0019_entrytype_identifier.py | bachvtuan/django-jacc | 37cdd54d8602d25e43a433bd66ccbed61f45a112 | [
"MIT"
] | 4 | 2019-09-09T09:33:55.000Z | 2022-01-01T09:28:13.000Z | # Generated by Django 2.1.2 on 2018-10-18 15:36
from django.db import migrations, models
from django.db.models import F
def migr_code_to_identifier_0019_entrytype_identifier(apps, schema):
EntryType = apps.get_model("jacc", "EntryType")
EntryType.objects.all().update(identifier=F("code"))
class Migration(m... | 28.692308 | 116 | 0.687668 | 89 | 746 | 5.539326 | 0.595506 | 0.040568 | 0.048682 | 0.081136 | 0.174442 | 0.174442 | 0.174442 | 0 | 0 | 0 | 0 | 0.068333 | 0.19571 | 746 | 25 | 117 | 29.84 | 0.753333 | 0.060322 | 0 | 0 | 1 | 0 | 0.104435 | 0.032904 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.352941 | 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 |
560191c793a93a302d95f1bc0f3bed7552833bd0 | 2,334 | py | Python | examples/protobuf/protobuftools.py | sunjinopensource/asynmsg | 9c1d14f859cc6702446c3bb30b9916280429bd1d | [
"MIT"
] | 3 | 2015-05-10T16:10:35.000Z | 2019-02-08T12:22:27.000Z | examples/protobuf/protobuftools.py | sunjinopensource/asynmsg | 9c1d14f859cc6702446c3bb30b9916280429bd1d | [
"MIT"
] | null | null | null | examples/protobuf/protobuftools.py | sunjinopensource/asynmsg | 9c1d14f859cc6702446c3bb30b9916280429bd1d | [
"MIT"
] | null | null | null | import asynmsg
import struct
import google.protobuf.message
def protobuf_handler_config(msg_id, msg_cls=None):
def wrapper(func):
@asynmsg.message_handler_config(msg_id)
def wrapper2(self, msg_id, msg_data):
if msg_cls is None:
proto_data = msg_data
else:
... | 33.826087 | 115 | 0.602828 | 297 | 2,334 | 4.390572 | 0.191919 | 0.107362 | 0.055215 | 0.07362 | 0.400307 | 0.342025 | 0.231595 | 0.231595 | 0.231595 | 0.231595 | 0 | 0.004292 | 0.3012 | 2,334 | 68 | 116 | 34.323529 | 0.795218 | 0 | 0 | 0.2 | 0 | 0 | 0.01801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.18 | false | 0 | 0.06 | 0.04 | 0.54 | 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 |
4bca99ba9eda853683218d8ee0882faa531e6181 | 3,531 | py | Python | companion_app/live_log_retrieval.py | MorganJamesSmith/uni-project-ideas | 6c48d0edb526908ed95192e97ab47df1257b6036 | [
"BSD-3-Clause"
] | 1 | 2020-09-15T15:33:33.000Z | 2020-09-15T15:33:33.000Z | companion_app/live_log_retrieval.py | MorganJamesSmith/uni-project | 6c48d0edb526908ed95192e97ab47df1257b6036 | [
"BSD-3-Clause"
] | null | null | null | companion_app/live_log_retrieval.py | MorganJamesSmith/uni-project | 6c48d0edb526908ed95192e97ab47df1257b6036 | [
"BSD-3-Clause"
] | null | null | null | """
implements a wrapper for loading live data from the serial connection and passing it to plotting
"""
import serial
import time
import struct
import plotly.express as px
try:
from . import log_parser
except ImportError:
import log_parser
# TODO: clean up CLI code
class LiveLogFile():
def __init__(self, s... | 46.460526 | 118 | 0.664118 | 490 | 3,531 | 4.473469 | 0.328571 | 0.028741 | 0.065693 | 0.038777 | 0.230383 | 0.212135 | 0.152828 | 0.152828 | 0.07208 | 0 | 0 | 0.008576 | 0.240442 | 3,531 | 75 | 119 | 47.08 | 0.808725 | 0.10422 | 0 | 0.063492 | 0 | 0 | 0.099873 | 0.020992 | 0 | 0 | 0 | 0.013333 | 0.015873 | 1 | 0.079365 | false | 0 | 0.15873 | 0 | 0.301587 | 0.031746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
4bcf6cd36f0a7b205b865ac0d3e32dffbb450890 | 1,114 | py | Python | Modules/ZoneAnalysis_FULL.py | amaurijp/BioSPA | fd10b58c5a6aa444f34690a98cd939dd5111c4d5 | [
"MIT"
] | 3 | 2019-10-29T17:26:24.000Z | 2021-01-08T22:15:17.000Z | Modules/ZoneAnalysis_FULL.py | amaurijp/BioSPA | fd10b58c5a6aa444f34690a98cd939dd5111c4d5 | [
"MIT"
] | null | null | null | Modules/ZoneAnalysis_FULL.py | amaurijp/BioSPA | fd10b58c5a6aa444f34690a98cd939dd5111c4d5 | [
"MIT"
] | null | null | null |
def ZoneAnalysis_FULL(SettingsDic):
import MODZoneAnalysis
import os
diretorio=os.getcwd()
# Análises das regioes com bacterias
MODZoneAnalysis.DetVolume(diretorio,
importstackRootName=SettingsDic['FolderName'],
FirstStack=... | 37.133333 | 80 | 0.502693 | 68 | 1,114 | 8.191176 | 0.544118 | 0.039497 | 0.064632 | 0.075404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017081 | 0.421903 | 1,114 | 30 | 81 | 37.133333 | 0.847826 | 0.030521 | 0 | 0 | 0 | 0 | 0.109325 | 0.041801 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.454545 | 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 |
4bcf87fdcdb2f4bd16f622a1e7e79b1aeb825b7c | 3,448 | py | Python | server/Kusa/views.py | meshellchoo/senior-design-project-kusa | 829575259c31a620c895a0f2d5654ea099298eb6 | [
"MIT"
] | 1 | 2022-03-28T23:20:09.000Z | 2022-03-28T23:20:09.000Z | server/Kusa/views.py | meshellchoo/senior-design-project-kusa | 829575259c31a620c895a0f2d5654ea099298eb6 | [
"MIT"
] | null | null | null | server/Kusa/views.py | meshellchoo/senior-design-project-kusa | 829575259c31a620c895a0f2d5654ea099298eb6 | [
"MIT"
] | 2 | 2022-03-24T07:17:27.000Z | 2022-03-28T23:20:18.000Z | from django.http import HttpResponse
from django.http.response import JsonResponse
from django.shortcuts import render
from rest_framework.serializers import Serializer
from admin import settings
import requests
from rest_framework import viewsets
from time import gmtime, strftime
from Kusa.models import SteamUser
from... | 36.680851 | 231 | 0.706787 | 454 | 3,448 | 5.220264 | 0.328194 | 0.037975 | 0.033755 | 0.020253 | 0.265401 | 0.232068 | 0.232068 | 0.232068 | 0.202532 | 0.202532 | 0 | 0.008948 | 0.189675 | 3,448 | 93 | 232 | 37.075269 | 0.839299 | 0.111079 | 0 | 0.287671 | 0 | 0.013699 | 0.095175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068493 | false | 0 | 0.328767 | 0 | 0.493151 | 0.013699 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4bd7a0c2448cc617b69365e5bcaa51dd7caf5ceb | 478 | py | Python | webapp/config.py | sebastien6/simple-project | 2f662c74695a7f566172330dcb7140efd6c71723 | [
"MIT"
] | null | null | null | webapp/config.py | sebastien6/simple-project | 2f662c74695a7f566172330dcb7140efd6c71723 | [
"MIT"
] | null | null | null | webapp/config.py | sebastien6/simple-project | 2f662c74695a7f566172330dcb7140efd6c71723 | [
"MIT"
] | null | null | null | import os
from redis import StrictRedis
class Config(object):
SECRET_KEY = os.environ.get('FLASK_SECRET')
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL')
SQLALCHEMY_TRACK_MODIFICATIONS = False
SESSION_TYPE = 'redis'
SESSION_REDIS = StrictRedis(host=os.environ.get('REDIS_HOST'), db=... | 31.866667 | 73 | 0.728033 | 62 | 478 | 5.33871 | 0.532258 | 0.108761 | 0.145015 | 0.132931 | 0.259819 | 0.259819 | 0.259819 | 0.259819 | 0.259819 | 0 | 0 | 0.022785 | 0.17364 | 478 | 14 | 74 | 34.142857 | 0.81519 | 0 | 0 | 0 | 0 | 0 | 0.106061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4bdf2c801d395b3543ef88d753e14f32dd4a9b4a | 362 | py | Python | Activation Function/Softmax/softmax_cpp/test.py | kaka-lin/ML-Notes | 047b88d59346b2ec719b1b3e2fcd605e1ccfaf91 | [
"MIT"
] | null | null | null | Activation Function/Softmax/softmax_cpp/test.py | kaka-lin/ML-Notes | 047b88d59346b2ec719b1b3e2fcd605e1ccfaf91 | [
"MIT"
] | null | null | null | Activation Function/Softmax/softmax_cpp/test.py | kaka-lin/ML-Notes | 047b88d59346b2ec719b1b3e2fcd605e1ccfaf91 | [
"MIT"
] | null | null | null | import numpy as np
from scipy.special import softmax
np.set_printoptions(precision=6)
def k_softmax(x):
exp = np.exp(x)
return exp / np.sum(exp, axis=1)
if __name__ == "__main__":
x = np.array([[1, 4.2, 0.6, 1.23, 4.3, 1.2, 2.5]])
print("Input Array: ", x)
print("Softmax Array: ", k_softmax(x))... | 21.294118 | 54 | 0.618785 | 63 | 362 | 3.380952 | 0.507937 | 0.112676 | 0.084507 | 0.169014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055363 | 0.201657 | 362 | 16 | 55 | 22.625 | 0.681661 | 0 | 0 | 0 | 0 | 0 | 0.140884 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.363636 | 0.363636 | 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 |
4bf72918258e1f5f04c1079f6fc0ade0637b2962 | 4,690 | py | Python | kpext/kp_crfsuite.py | snovd/sdavid-tests | c5f7e60f83ecb2d4cbaec18fff84861907f59c27 | [
"MIT"
] | null | null | null | kpext/kp_crfsuite.py | snovd/sdavid-tests | c5f7e60f83ecb2d4cbaec18fff84861907f59c27 | [
"MIT"
] | null | null | null | kpext/kp_crfsuite.py | snovd/sdavid-tests | c5f7e60f83ecb2d4cbaec18fff84861907f59c27 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
import os
from nltk.tokenize import TreebankWordTokenizer as Tokenizer
from nltk.tag.perceptron import PerceptronTagger
import operator
from itertools import chain
import nltk
from sklearn.metrics import classification_report, confusion_matrix
from sklearn.preprocessing import LabelBinariz... | 41.875 | 141 | 0.465885 | 507 | 4,690 | 4.110454 | 0.293886 | 0.034549 | 0.060461 | 0.020154 | 0.084453 | 0.057582 | 0.057582 | 0.02975 | 0.02975 | 0 | 0 | 0.013188 | 0.434115 | 4,690 | 111 | 142 | 42.252252 | 0.772042 | 0.04307 | 0 | 0.113636 | 0 | 0 | 0.050131 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.159091 | null | null | 0.113636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4bfe5926292aa222488a49dbf22dd03f8782815e | 1,405 | py | Python | exercises/pt/test_01_11.py | Jette16/spacy-course | 32df0c8f6192de6c9daba89740a28c0537e4d6a0 | [
"MIT"
] | 2,085 | 2019-04-17T13:10:40.000Z | 2022-03-30T21:51:46.000Z | exercises/pt/test_01_11.py | Jette16/spacy-course | 32df0c8f6192de6c9daba89740a28c0537e4d6a0 | [
"MIT"
] | 79 | 2019-04-18T14:42:55.000Z | 2022-03-07T08:15:43.000Z | exercises/pt/test_01_11.py | Jette16/spacy-course | 32df0c8f6192de6c9daba89740a28c0537e4d6a0 | [
"MIT"
] | 361 | 2019-04-17T13:34:32.000Z | 2022-03-28T04:42:45.000Z | def test():
import spacy.matcher
assert isinstance(
matcher, spacy.matcher.Matcher
), "Você está inicializando o Comparador corretamente?"
assert (
"Matcher(nlp.vocab)" in __solution__
), "Você está inicializando o Comparador corretamente com o vocabulário compartilhado?"
assert... | 39.027778 | 91 | 0.646263 | 177 | 1,405 | 5.028249 | 0.423729 | 0.053933 | 0.047191 | 0.060674 | 0.242697 | 0.242697 | 0.14382 | 0.14382 | 0.14382 | 0.14382 | 0 | 0.010397 | 0.246975 | 1,405 | 35 | 92 | 40.142857 | 0.830813 | 0 | 0 | 0.272727 | 0 | 0 | 0.513167 | 0.021352 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.030303 | true | 0.030303 | 0.030303 | 0 | 0.060606 | 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 |
ef015b72b0d9f9a36582b5d4563b3165aa3bb897 | 1,206 | py | Python | tests/test_utils.py | yiannisha/dbmanage | 9e1e36e2b59e7e369595f4804bef2c2a7ec0ec56 | [
"Apache-2.0"
] | null | null | null | tests/test_utils.py | yiannisha/dbmanage | 9e1e36e2b59e7e369595f4804bef2c2a7ec0ec56 | [
"Apache-2.0"
] | 10 | 2021-11-06T18:12:54.000Z | 2021-12-01T18:49:29.000Z | tests/test_utils.py | yiannisha/dbmanage | 9e1e36e2b59e7e369595f4804bef2c2a7ec0ec56 | [
"Apache-2.0"
] | null | null | null |
""" Utilities for testing """
import os
import json
TESTDATADIR = os.path.join(os.path.dirname(__file__), 'testdata')
def get_pass(pass_name : str) -> str:
""" Returns pass from test_credentials.json """
creds_path = os.path.join(os.path.dirname(__file__), 'test_credentials.json')
with open(creds_path,... | 28.046512 | 93 | 0.619403 | 162 | 1,206 | 4.481481 | 0.425926 | 0.049587 | 0.027548 | 0.033058 | 0.170799 | 0.118457 | 0.07438 | 0 | 0 | 0 | 0 | 0.002203 | 0.247098 | 1,206 | 42 | 94 | 28.714286 | 0.797357 | 0.127695 | 0 | 0.08 | 0 | 0 | 0.133981 | 0.020388 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0.12 | 0.08 | 0 | 0.24 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ef032589a15b54709c2cc0f764228c621cd157d2 | 750 | py | Python | venv/lib/python3.7/site-packages/webdriver_manager/chrome.py | wayshon/pylogin | 12ecfddc3ceaf552a42f62608027924541c63254 | [
"Apache-2.0"
] | null | null | null | venv/lib/python3.7/site-packages/webdriver_manager/chrome.py | wayshon/pylogin | 12ecfddc3ceaf552a42f62608027924541c63254 | [
"Apache-2.0"
] | 7 | 2019-12-04T23:08:08.000Z | 2022-02-10T12:47:38.000Z | venv/lib/python3.7/site-packages/webdriver_manager/chrome.py | wayshon/pylogin | 12ecfddc3ceaf552a42f62608027924541c63254 | [
"Apache-2.0"
] | null | null | null | import os
from webdriver_manager.driver import ChromeDriver
from webdriver_manager.manager import DriverManager
from webdriver_manager import utils
class ChromeDriverManager(DriverManager):
def __init__(self, version=None, os_type=utils.os_type()):
# type: (str, str) -> None
super(ChromeDriverMana... | 34.090909 | 72 | 0.652 | 90 | 750 | 5.177778 | 0.4 | 0.077253 | 0.128755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017953 | 0.257333 | 750 | 21 | 73 | 35.714286 | 0.818671 | 0.094667 | 0 | 0 | 0 | 0 | 0.014815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.266667 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ef051797168d89a7cce543aa7efcba75f787978c | 2,689 | py | Python | azext_iot/digitaltwins/common.py | v-andreaco/azure-iot-cli-extension | 18b20b0a6ba9f75556979eb905e6d2271eb27ddd | [
"MIT"
] | null | null | null | azext_iot/digitaltwins/common.py | v-andreaco/azure-iot-cli-extension | 18b20b0a6ba9f75556979eb905e6d2271eb27ddd | [
"MIT"
] | null | null | null | azext_iot/digitaltwins/common.py | v-andreaco/azure-iot-cli-extension | 18b20b0a6ba9f75556979eb905e6d2271eb27ddd | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------... | 31.267442 | 121 | 0.670881 | 322 | 2,689 | 5.440994 | 0.450311 | 0.015982 | 0.045662 | 0.02911 | 0.186073 | 0.169521 | 0.169521 | 0.103881 | 0.103881 | 0.103881 | 0 | 0.008941 | 0.168092 | 2,689 | 85 | 122 | 31.635294 | 0.774251 | 0.28412 | 0 | 0 | 0 | 0 | 0.445415 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027027 | 0 | 0.540541 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ef0b1e90a414cd10b99ab947636c1ca2151cab55 | 430 | py | Python | flatlist/__init__.py | dwabece/flatlist | 61b6f7f70bf9db2bf14f8bfdebce2c4f9a95811f | [
"WTFPL"
] | null | null | null | flatlist/__init__.py | dwabece/flatlist | 61b6f7f70bf9db2bf14f8bfdebce2c4f9a95811f | [
"WTFPL"
] | null | null | null | flatlist/__init__.py | dwabece/flatlist | 61b6f7f70bf9db2bf14f8bfdebce2c4f9a95811f | [
"WTFPL"
] | null | null | null | __version__ = '0.0.1'
def flatten_list(input_list):
"""
Flattens list with many nested lists.
>>> flatten_list([1, [2, [3], [4]]])
[1, 2, 3, 4]
"""
result = []
for item in input_list:
if isinstance(item, list):
result.extend(flatten_list(item))
# yield from... | 20.47619 | 45 | 0.532558 | 53 | 430 | 4.132075 | 0.509434 | 0.200913 | 0.027397 | 0.03653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.334884 | 430 | 20 | 46 | 21.5 | 0.727273 | 0.302326 | 0 | 0 | 0 | 0 | 0.018182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 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 |
ef0dbb4129bccb5de4e10f51b60990b9ac3393bb | 607 | py | Python | slackcast/token.py | rbdixon/slackcast | ac4ac4591bbcf62d64ec05b5479e6e8315f92a69 | [
"MIT"
] | null | null | null | slackcast/token.py | rbdixon/slackcast | ac4ac4591bbcf62d64ec05b5479e6e8315f92a69 | [
"MIT"
] | 1 | 2021-11-15T17:47:27.000Z | 2021-11-15T17:47:27.000Z | slackcast/token.py | rbdixon/slackcast | ac4ac4591bbcf62d64ec05b5479e6e8315f92a69 | [
"MIT"
] | null | null | null | import os
import keyring
from prompt_toolkit import prompt
KEY = ('slackcast', 'token')
SLACKCAST_INSTALL_URL = os.environ.get(
'SLACKCAST_INSTALL_URL', 'https://slackcast.devtestit.com/install'
)
def get_token():
# For testing
token = os.environ.get('SLACKCAST_TOKEN', None)
if token is None:
... | 22.481481 | 88 | 0.667216 | 78 | 607 | 5.012821 | 0.423077 | 0.122762 | 0.14578 | 0.107417 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224053 | 607 | 26 | 89 | 23.346154 | 0.830149 | 0.018122 | 0 | 0.117647 | 0 | 0 | 0.254637 | 0.075885 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.117647 | 0.176471 | 0 | 0.294118 | 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 |
ef0f41777334766f27b085f4b278863d8beee416 | 790 | py | Python | baidupan.py | iSteveyang/GraduateDesign-pyqt | ce4e6c8b0de2398081a83c63fb98cc03126bc6d0 | [
"MIT"
] | null | null | null | baidupan.py | iSteveyang/GraduateDesign-pyqt | ce4e6c8b0de2398081a83c63fb98cc03126bc6d0 | [
"MIT"
] | null | null | null | baidupan.py | iSteveyang/GraduateDesign-pyqt | ce4e6c8b0de2398081a83c63fb98cc03126bc6d0 | [
"MIT"
] | null | null | null | import progressbar
from baidupcsapi import PCS
class ProgressBar():
def __init__(self):
self.first_call = True
def __call__(self, *args, **kwargs):
if self.first_call:
self.widgets = [progressbar.Percentage(), ' ', progressbar.Bar(marker=progressbar.RotatingMarker('>')),
... | 34.347826 | 115 | 0.611392 | 84 | 790 | 5.595238 | 0.5 | 0.057447 | 0.082979 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231646 | 790 | 22 | 116 | 35.909091 | 0.7743 | 0 | 0 | 0 | 0 | 0 | 0.086076 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.055556 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ef135d999c596568c19df6fc41a299bbb48ab07f | 3,049 | py | Python | dj_twitter_clone_app/blog/views.py | ivanprytula/dj_demo_app | 49ca506b22d3d99608e192b28787e185b39d3c24 | [
"MIT"
] | null | null | null | dj_twitter_clone_app/blog/views.py | ivanprytula/dj_demo_app | 49ca506b22d3d99608e192b28787e185b39d3c24 | [
"MIT"
] | null | null | null | dj_twitter_clone_app/blog/views.py | ivanprytula/dj_demo_app | 49ca506b22d3d99608e192b28787e185b39d3c24 | [
"MIT"
] | null | null | null | from django.core.paginator import Paginator, PageNotAnInteger, EmptyPage
from django.urls import reverse_lazy
from django.views.generic import (ListView, CreateView, TemplateView, )
from django.views.generic.detail import DetailView
from django.views.generic.edit import (UpdateView, DeleteView, )
from blog.models impo... | 29.601942 | 73 | 0.648081 | 350 | 3,049 | 5.491429 | 0.325714 | 0.037461 | 0.049948 | 0.054631 | 0.212279 | 0.157128 | 0.096774 | 0.061394 | 0.061394 | 0.061394 | 0 | 0.000862 | 0.238767 | 3,049 | 102 | 74 | 29.892157 | 0.82723 | 0.296163 | 0 | 0.288462 | 0 | 0 | 0.111695 | 0.04105 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.115385 | 0.019231 | 0.711538 | 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 |
ef1431dac95c7e69b7262a40569f5236bf33fd8b | 4,217 | py | Python | code/service/flaskapp/flaskapp.py | Wyss/evolvulator | c026b9e7425cabba8b7a5b49024173c6f9667337 | [
"MIT"
] | 1 | 2016-01-05T20:10:10.000Z | 2016-01-05T20:10:10.000Z | code/service/flaskapp/flaskapp.py | Wyss/evolvulator | c026b9e7425cabba8b7a5b49024173c6f9667337 | [
"MIT"
] | null | null | null | code/service/flaskapp/flaskapp.py | Wyss/evolvulator | c026b9e7425cabba8b7a5b49024173c6f9667337 | [
"MIT"
] | null | null | null | """
Copyright (c) 2012 Wyss Institute at Harvard University
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... | 35.436975 | 109 | 0.708798 | 574 | 4,217 | 5.090592 | 0.421603 | 0.031143 | 0.0154 | 0.014374 | 0.088638 | 0.072211 | 0.072211 | 0.072211 | 0.072211 | 0.072211 | 0 | 0.008547 | 0.1954 | 4,217 | 119 | 110 | 35.436975 | 0.852638 | 0.138013 | 0 | 0.133333 | 0 | 0 | 0.143615 | 0.03876 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.116667 | null | null | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ef1bad6bf6953bfcc6d21e0a6fe6026bfa17d421 | 286 | py | Python | desafio64.py | DantonMatheus/desafios-python | 709a3f1774596fc536dd4b882c78a6b951c92a9c | [
"MIT"
] | null | null | null | desafio64.py | DantonMatheus/desafios-python | 709a3f1774596fc536dd4b882c78a6b951c92a9c | [
"MIT"
] | null | null | null | desafio64.py | DantonMatheus/desafios-python | 709a3f1774596fc536dd4b882c78a6b951c92a9c | [
"MIT"
] | null | null | null | print('===== DESAFIO 64 =====')
num = 0
cont = 0
soma = 0
num = int(input('Digite um número [999 para SAIR]: '))
while num != 999:
soma += num
cont += 1
num = int(input('Digite um número [999 para SAIR]: '))
print(f'Você digitou {cont} números! A soma entre eles é {soma}')
| 26 | 65 | 0.594406 | 46 | 286 | 3.695652 | 0.543478 | 0.070588 | 0.129412 | 0.2 | 0.423529 | 0.423529 | 0.423529 | 0.423529 | 0.423529 | 0 | 0 | 0.067265 | 0.22028 | 286 | 10 | 66 | 28.6 | 0.695067 | 0 | 0 | 0.2 | 0 | 0 | 0.506993 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
ef1c14040a2c37814d24485011b2191f84d572dc | 325 | py | Python | pytify/strategy.py | EngineeringIsLife/Pytify | ae9a351144cb8f5556740d33cdf29073ffd2dc1e | [
"MIT"
] | null | null | null | pytify/strategy.py | EngineeringIsLife/Pytify | ae9a351144cb8f5556740d33cdf29073ffd2dc1e | [
"MIT"
] | null | null | null | pytify/strategy.py | EngineeringIsLife/Pytify | ae9a351144cb8f5556740d33cdf29073ffd2dc1e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from sys import platform
def get_pytify_class_by_platform():
if 'linux' in platform:
from linux import Linux
return Linux
elif 'darwin' in platform:
from darwin import Darwin
return Darwin
else:
raise Exception('%s is not supported.' % platf... | 21.666667 | 58 | 0.630769 | 41 | 325 | 4.902439 | 0.609756 | 0.099502 | 0.139303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004329 | 0.289231 | 325 | 14 | 59 | 23.214286 | 0.865801 | 0.064615 | 0 | 0 | 0 | 0 | 0.102649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | true | 0 | 0.3 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef20178603cd20e2dd144ff595f24f1bbc671045 | 282 | py | Python | django_mediamosa/templatetags/mediamosa_extras.py | UGentPortaal/django-mediamosa | 553a725cd02e8dd2489bf25a613c9b98155cf90d | [
"BSD-3-Clause"
] | null | null | null | django_mediamosa/templatetags/mediamosa_extras.py | UGentPortaal/django-mediamosa | 553a725cd02e8dd2489bf25a613c9b98155cf90d | [
"BSD-3-Clause"
] | null | null | null | django_mediamosa/templatetags/mediamosa_extras.py | UGentPortaal/django-mediamosa | 553a725cd02e8dd2489bf25a613c9b98155cf90d | [
"BSD-3-Clause"
] | null | null | null | from django import template
register = template.Library()
@register.filter
def mimetype(value, mime_type):
mediafiles = []
for mediafile in value:
if mediafile.metadata.get('mime_type') == mime_type:
mediafiles.append(mediafile)
return mediafiles
| 21.692308 | 60 | 0.695035 | 32 | 282 | 6.03125 | 0.65625 | 0.124352 | 0.186529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212766 | 282 | 12 | 61 | 23.5 | 0.869369 | 0 | 0 | 0 | 0 | 0 | 0.031915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef246213ff135ecbc464dc2dd429de5edde34475 | 720 | py | Python | backend/util.py | ahangchen/Rasp-Person-Sensor | 77d0e41b1a80cf9012f66c7bd44f062edbc6825d | [
"MIT"
] | 2 | 2018-02-26T10:00:29.000Z | 2018-03-16T11:39:34.000Z | backend/util.py | ahangchen/Rasp-Person-Sensor | 77d0e41b1a80cf9012f66c7bd44f062edbc6825d | [
"MIT"
] | null | null | null | backend/util.py | ahangchen/Rasp-Person-Sensor | 77d0e41b1a80cf9012f66c7bd44f062edbc6825d | [
"MIT"
] | null | null | null | import json
import requests
def upload_file(upload_url, file_path):
files = {'file': open(file_path, 'rb')}
response = requests.post(upload_url, files=files)
ret = response.content.decode('utf-8')
ret_json = json.loads(ret)
print ret_json
return ret_json['data']
def post_json(post_url, post... | 27.692308 | 83 | 0.708333 | 102 | 720 | 4.823529 | 0.303922 | 0.056911 | 0.121951 | 0.146341 | 0.510163 | 0.349594 | 0.349594 | 0.215447 | 0.215447 | 0.215447 | 0 | 0.004918 | 0.152778 | 720 | 25 | 84 | 28.8 | 0.801639 | 0 | 0 | 0.117647 | 0 | 0 | 0.119611 | 0.029207 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef249d4819e51ded253cba64970d4792e29e13ee | 4,761 | py | Python | hard-gists/2338529/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/2338529/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/2338529/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | """
Tools for creating a CA cert and signed server certs.
Divined from http://svn.osafoundation.org/m2crypto/trunk/tests/test_x509.py
The mk_temporary_xxx calls return a NamedTemporaryFile with certs.
Usage ;
# Create a temporary CA cert and it's private key
cacert, cakey = mk_temporary_cacert()
# Create a ... | 23.924623 | 87 | 0.710985 | 767 | 4,761 | 4.232073 | 0.22425 | 0.032348 | 0.013863 | 0.013863 | 0.181146 | 0.158349 | 0.107209 | 0.057917 | 0.057917 | 0.036969 | 0 | 0.029015 | 0.16026 | 4,761 | 198 | 88 | 24.045455 | 0.782891 | 0.038647 | 0 | 0.130841 | 0 | 0 | 0.087673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028037 | null | null | 0.028037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ef25c53ea4c0fb58041ed1cd6cded53b4e340d23 | 10,942 | py | Python | v0/aia_eis_v0/ml_sl/rf/dt_main.py | DreamBoatOve/aia_eis | 458b4d29846669b10db4da1b3e86c0b394614ceb | [
"MIT"
] | 1 | 2022-03-02T12:57:19.000Z | 2022-03-02T12:57:19.000Z | v0/aia_eis_v0/ml_sl/rf/dt_main.py | DreamBoatOve/aia_eis | 458b4d29846669b10db4da1b3e86c0b394614ceb | [
"MIT"
] | null | null | null | v0/aia_eis_v0/ml_sl/rf/dt_main.py | DreamBoatOve/aia_eis | 458b4d29846669b10db4da1b3e86c0b394614ceb | [
"MIT"
] | null | null | null | import copy
from utils.file_utils.dataset_reader_pack.ml_dataset_reader import get_TV_T_dataset, get_T_V_T_dataset
from ml_sl.rf.dt_0 import Node, save_node, load_node
from ml_sl.ml_data_wrapper import pack_list_2_list, single_point_list_2_list, reform_labeled_dataset_list
from ml_sl.ml_data_wrapper import split_label... | 46.961373 | 123 | 0.732681 | 1,683 | 10,942 | 4.346405 | 0.088532 | 0.076282 | 0.110185 | 0.14026 | 0.768694 | 0.737116 | 0.669993 | 0.624607 | 0.594395 | 0.566644 | 0 | 0.070117 | 0.154085 | 10,942 | 233 | 124 | 46.961373 | 0.720182 | 0.244928 | 0 | 0.639344 | 0 | 0.02459 | 0.06747 | 0.033527 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040984 | false | 0 | 0.057377 | 0 | 0.114754 | 0.02459 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef2afd3b3d3cc23390816b111f6a8ec32454a594 | 486 | py | Python | setup.py | fmaida/caro-diario | adc5018f2ef716b49db39aa9189ab1e803fcd357 | [
"MIT"
] | null | null | null | setup.py | fmaida/caro-diario | adc5018f2ef716b49db39aa9189ab1e803fcd357 | [
"MIT"
] | null | null | null | setup.py | fmaida/caro-diario | adc5018f2ef716b49db39aa9189ab1e803fcd357 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(
name = 'caro-diario',
packages = ['caro-diario'], # this must be the same as the name above
version = '0.1',
description = 'Diario',
author = 'Francesco Maida',
author_email = 'francesco.maida@gmail.com',
url = 'https://github.com/fmaida/caro-diario.git', # use the ... | 34.714286 | 85 | 0.67284 | 66 | 486 | 4.924242 | 0.69697 | 0.092308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005013 | 0.179012 | 486 | 13 | 86 | 37.384615 | 0.809524 | 0.244856 | 0 | 0 | 0 | 0 | 0.364641 | 0.069061 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 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 |
ef3d7706ee027142a3cc848598e7a4e1a2e3f600 | 1,718 | py | Python | utils/storage/redisPSCO/python/storage/storage_object.py | TANGO-Project/compss-tango | d9e007b6fe4f8337d4f267f95f383d8962602ab8 | [
"Apache-2.0"
] | 3 | 2018-03-05T14:52:22.000Z | 2019-02-08T09:58:24.000Z | utils/storage/redisPSCO/python/storage/storage_object.py | TANGO-Project/compss-tango | d9e007b6fe4f8337d4f267f95f383d8962602ab8 | [
"Apache-2.0"
] | null | null | null | utils/storage/redisPSCO/python/storage/storage_object.py | TANGO-Project/compss-tango | d9e007b6fe4f8337d4f267f95f383d8962602ab8 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2017 Barcelona Supercomputing Center (www.bsc.es)
#
# 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... | 28.163934 | 75 | 0.679278 | 207 | 1,718 | 5.57971 | 0.531401 | 0.051948 | 0.022511 | 0.027706 | 0.100433 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00686 | 0.236321 | 1,718 | 60 | 76 | 28.633333 | 0.873476 | 0.568102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef477b67fc29e51e58555a187fcad861bf802178 | 3,516 | py | Python | Actor_critic/actor_critic_test.py | aniketSanap/RL-session | 68243121277c24509585f51fd01f53fe8d41f119 | [
"MIT"
] | null | null | null | Actor_critic/actor_critic_test.py | aniketSanap/RL-session | 68243121277c24509585f51fd01f53fe8d41f119 | [
"MIT"
] | null | null | null | Actor_critic/actor_critic_test.py | aniketSanap/RL-session | 68243121277c24509585f51fd01f53fe8d41f119 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""actor_critic.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/17Gpya9yswf-xonOvKhoHpmQGhCYpq8x4
"""
# !pip install box2d-py
# !pip install gym[Box_2D]
import torch
from torch import nn
from torch.nn import functional as... | 32.859813 | 103 | 0.593003 | 433 | 3,516 | 4.635104 | 0.339492 | 0.035874 | 0.045341 | 0.010463 | 0.066268 | 0.049826 | 0.032885 | 0 | 0 | 0 | 0 | 0.021053 | 0.297497 | 3,516 | 107 | 104 | 32.859813 | 0.791498 | 0.120592 | 0 | 0.051282 | 1 | 0 | 0.039623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.217949 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef49bf29b2b0c7109f207a688a3d0065e565a25b | 332 | py | Python | skp_edu_docker/code/chatbot/common/chat_knowledge_mem_dict.py | TensorMSA/hoyai_docker | 12f0041e6306d8a6421585a4b51666bad30be442 | [
"MIT"
] | 8 | 2017-06-16T00:19:12.000Z | 2020-08-13T03:15:57.000Z | skp_edu_docker/code/chatbot/common/chat_knowledge_mem_dict.py | TensorMSA/tensormsa_docker | 12f0041e6306d8a6421585a4b51666bad30be442 | [
"MIT"
] | 21 | 2017-06-09T10:15:14.000Z | 2018-03-29T07:51:02.000Z | skp_edu_docker/code/chatbot/common/chat_knowledge_mem_dict.py | TensorMSA/hoyai_docker | 12f0041e6306d8a6421585a4b51666bad30be442 | [
"MIT"
] | 4 | 2017-10-25T09:59:53.000Z | 2020-05-07T09:51:11.000Z | class ChatKnowledgeMemDict:
"""
class for storing dict data on the django memory
for speed up dict search action
"""
# cc_id - entitiy_id -value list
ngram = {}
ngram_order = {}
ngram_conf = {}
data = {}
data_conf = {}
data_order = {} #ordered proper_noun
synonym = {}
... | 23.714286 | 53 | 0.581325 | 38 | 332 | 4.894737 | 0.684211 | 0.086022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.313253 | 332 | 14 | 54 | 23.714286 | 0.815789 | 0.400602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ef4f605e514f18c935ef699c3ca9417a54b457c9 | 2,465 | py | Python | apollo/auth.py | sorinbiriescu/Apollo_backend | b6fb68a26487a138e7efd691e7fdffaa5042a155 | [
"Apache-2.0"
] | null | null | null | apollo/auth.py | sorinbiriescu/Apollo_backend | b6fb68a26487a138e7efd691e7fdffaa5042a155 | [
"Apache-2.0"
] | null | null | null | apollo/auth.py | sorinbiriescu/Apollo_backend | b6fb68a26487a138e7efd691e7fdffaa5042a155 | [
"Apache-2.0"
] | null | null | null | from datetime import datetime, timedelta
from typing import Optional
from fastapi import Depends, HTTPException, status
from fastapi.security import OAuth2PasswordBearer
from jose import JWTError, jwt
from passlib.context import CryptContext
from apollo.crud import query_first_user
from apollo.main import si... | 30.060976 | 103 | 0.710345 | 291 | 2,465 | 5.810997 | 0.347079 | 0.035482 | 0.024837 | 0.031934 | 0.073329 | 0.036665 | 0.036665 | 0 | 0 | 0 | 0 | 0.006701 | 0.212982 | 2,465 | 81 | 104 | 30.432099 | 0.864948 | 0 | 0 | 0.157895 | 0 | 0 | 0.037783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087719 | false | 0.157895 | 0.157895 | 0.035088 | 0.403509 | 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 |
ef593e9168b64350b18b0f9f56ed9f30d578e6cf | 4,199 | py | Python | CiTOCrawler/OC/script/static_lode.py | patmha/CiTOCrawler | 6c5027f42aacc2d250305e5e877bc271470acde5 | [
"BSD-3-Clause"
] | null | null | null | CiTOCrawler/OC/script/static_lode.py | patmha/CiTOCrawler | 6c5027f42aacc2d250305e5e877bc271470acde5 | [
"BSD-3-Clause"
] | null | null | null | CiTOCrawler/OC/script/static_lode.py | patmha/CiTOCrawler | 6c5027f42aacc2d250305e5e877bc271470acde5 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2016, Silvio Peroni <essepuntato@gmail.com>
#
# Permission to use, copy, modify, and/or distribute this software for any purpose
# with or without fee is hereby granted, provided that the above copyright notice
# and this permission notice appear in all copies.
#
# THE SOFTWARE I... | 49.988095 | 112 | 0.635389 | 558 | 4,199 | 4.614695 | 0.370968 | 0.024466 | 0.027961 | 0.046602 | 0.037282 | 0.020194 | 0.020194 | 0 | 0 | 0 | 0 | 0.003502 | 0.251965 | 4,199 | 83 | 113 | 50.590361 | 0.816301 | 0.219576 | 0 | 0 | 0 | 0 | 0.24816 | 0.02362 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.175439 | 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 |
ef5a62962aed890737736832f581c39140877b07 | 2,130 | py | Python | Python/Searching/2/quick_select.py | Tikam02/Data_Structure_Algorithms | 7c17f744975a72fa42f0f3f892c0b7e041cdef0c | [
"MIT"
] | 5 | 2017-08-03T06:33:49.000Z | 2021-08-06T13:20:57.000Z | Python/Searching/2/quick_select.py | Tikam02/Data_Structure_Algorithms | 7c17f744975a72fa42f0f3f892c0b7e041cdef0c | [
"MIT"
] | null | null | null | Python/Searching/2/quick_select.py | Tikam02/Data_Structure_Algorithms | 7c17f744975a72fa42f0f3f892c0b7e041cdef0c | [
"MIT"
] | 6 | 2017-04-27T13:30:49.000Z | 2020-11-01T20:28:55.000Z | #!/usr/bin/env python
__author__ = "bt3"
import random
''' The simplest way...'''
def quickSelect(seq, k):
# this part is the same as quick sort
len_seq = len(seq)
if len_seq < 2: return seq
# we could use a random choice here doing
#pivot = random.choice(seq)
ipivot = len_seq // 2
pivo... | 23.932584 | 78 | 0.597653 | 322 | 2,130 | 3.906832 | 0.39441 | 0.038156 | 0.022258 | 0.020668 | 0.103339 | 0.103339 | 0.103339 | 0.060413 | 0.060413 | 0.060413 | 0 | 0.035738 | 0.29061 | 2,130 | 89 | 79 | 23.932584 | 0.796823 | 0.238967 | 0 | 0.085106 | 0 | 0 | 0.007373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042553 | null | null | 0.06383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ef68897796bf15cfbe41f5e79ff37ee0aa7a33e6 | 3,578 | py | Python | src/python/DipSimUtilities.py | ndeybach/DipSim | 091f147f933b000b6ab829ec7d10eef985c260b2 | [
"MIT"
] | null | null | null | src/python/DipSimUtilities.py | ndeybach/DipSim | 091f147f933b000b6ab829ec7d10eef985c260b2 | [
"MIT"
] | null | null | null | src/python/DipSimUtilities.py | ndeybach/DipSim | 091f147f933b000b6ab829ec7d10eef985c260b2 | [
"MIT"
] | null | null | null | # This Python file uses the following encoding: utf-8
"""
MIT License
Copyright (c) 2020 Nils DEYBACH & Léo OUDART
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 ... | 35.425743 | 149 | 0.734768 | 486 | 3,578 | 5.401235 | 0.423868 | 0.033524 | 0.04419 | 0.045714 | 0.064381 | 0.064381 | 0.064381 | 0.037714 | 0.037714 | 0.037714 | 0 | 0.023194 | 0.156512 | 3,578 | 100 | 150 | 35.78 | 0.846587 | 0.329793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0 | 0.088235 | 0.058824 | 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 |
322854f1b6ad1bef2a63f035b0bf9ea507c22498 | 5,537 | py | Python | src/main.py | ronikleyton/script-backup-switch-huawei | 80c990afa3561c350823cb96e25174262d8d4ab1 | [
"MIT"
] | null | null | null | src/main.py | ronikleyton/script-backup-switch-huawei | 80c990afa3561c350823cb96e25174262d8d4ab1 | [
"MIT"
] | null | null | null | src/main.py | ronikleyton/script-backup-switch-huawei | 80c990afa3561c350823cb96e25174262d8d4ab1 | [
"MIT"
] | null | null | null | from telnetlib import Telnet
from exception.exceptions import *
from datetime import date
import time
import os
from dotenv import load_dotenv
import json
load_dotenv()
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
f = open(f'{ROOT_DIR}/equipamentos.json')
equipamentos = json.load(f)['equipamentos']
def ma... | 35.722581 | 106 | 0.641683 | 677 | 5,537 | 5.155096 | 0.189069 | 0.19255 | 0.114613 | 0.068195 | 0.534384 | 0.475358 | 0.475358 | 0.462751 | 0.427794 | 0.427794 | 0 | 0.007696 | 0.225573 | 5,537 | 155 | 107 | 35.722581 | 0.806203 | 0.01806 | 0 | 0.283019 | 0 | 0 | 0.184763 | 0.009569 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0.09434 | 0.066038 | 0 | 0.09434 | 0.028302 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3229bb9f7088946e3efcc3fcbb6cba8d90bd5930 | 4,329 | py | Python | models/show.py | wanderindev/fyyur | acf3a44ce7fae6b24576a320afd447c0595d76e5 | [
"MIT"
] | null | null | null | models/show.py | wanderindev/fyyur | acf3a44ce7fae6b24576a320afd447c0595d76e5 | [
"MIT"
] | null | null | null | models/show.py | wanderindev/fyyur | acf3a44ce7fae6b24576a320afd447c0595d76e5 | [
"MIT"
] | 2 | 2020-07-16T22:02:13.000Z | 2020-11-22T21:16:28.000Z | from datetime import datetime
from sqlalchemy import or_
from app import db
from .mixin import ModelMixin
class Show(db.Model, ModelMixin):
__tablename__ = "shows"
id = db.Column(db.Integer, primary_key=True)
start_time = db.Column(db.DateTime, nullable=False)
artist_id = db.Column(
... | 30.921429 | 74 | 0.495033 | 449 | 4,329 | 4.510022 | 0.13363 | 0.084444 | 0.070617 | 0.062222 | 0.719012 | 0.655309 | 0.655309 | 0.609877 | 0.609877 | 0.609877 | 0 | 0 | 0.396396 | 4,329 | 139 | 75 | 31.143885 | 0.774971 | 0 | 0 | 0.460317 | 0 | 0 | 0.097375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.047619 | 0.015873 | 0.230159 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
322b0d39d0e86bb9ee65efcc180b2518cde85315 | 2,141 | py | Python | backend/sponsors/migrations/0001_initial.py | marcoacierno/pycon | 2b7b47598c4929769cc73e322b3fce2c89151e21 | [
"MIT"
] | 56 | 2018-01-20T17:18:40.000Z | 2022-03-28T22:42:04.000Z | backend/sponsors/migrations/0001_initial.py | marcoacierno/pycon | 2b7b47598c4929769cc73e322b3fce2c89151e21 | [
"MIT"
] | 2,029 | 2018-01-20T11:37:24.000Z | 2022-03-31T04:10:51.000Z | backend/sponsors/migrations/0001_initial.py | marcoacierno/pycon | 2b7b47598c4929769cc73e322b3fce2c89151e21 | [
"MIT"
] | 17 | 2018-03-17T09:44:28.000Z | 2021-12-27T19:57:35.000Z | # Generated by Django 2.2.4 on 2019-08-30 21:56
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import model_utils.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
('conferences', '0007_auto_20190811_1953'),
]
... | 44.604167 | 182 | 0.611397 | 213 | 2,141 | 6 | 0.375587 | 0.094679 | 0.062598 | 0.051643 | 0.350548 | 0.306729 | 0.306729 | 0.306729 | 0.306729 | 0.223787 | 0 | 0.022333 | 0.247081 | 2,141 | 47 | 183 | 45.553191 | 0.770471 | 0.021018 | 0 | 0.35 | 1 | 0 | 0.143744 | 0.031519 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
322bb4e6bc6b91b44404b73d00ac6be4830c39c7 | 658 | py | Python | 01_Hello_PGP/solution.py | 3-24/id0-rsa.pub | 633e974a330d0dc09d37e423168974b7fba69830 | [
"MIT"
] | 1 | 2020-03-29T16:10:54.000Z | 2020-03-29T16:10:54.000Z | 01_Hello_PGP/solution.py | 3-24/id0-rsa.pub | 633e974a330d0dc09d37e423168974b7fba69830 | [
"MIT"
] | null | null | null | 01_Hello_PGP/solution.py | 3-24/id0-rsa.pub | 633e974a330d0dc09d37e423168974b7fba69830 | [
"MIT"
] | null | null | null | from subprocess import run, PIPE
def check(password,filedata):
print("Trying passphrase={:s}".format(password))
cmd = run("gpg --pinentry-mode loopback --passphrase '{:s}' -d {:s}".format(password,filedata), shell=True, stdout=PIPE)
if cmd.returncode == 0:
output = cmd.stdout.decode('utf-8')
... | 24.37037 | 124 | 0.575988 | 81 | 658 | 4.679012 | 0.641975 | 0.084433 | 0.079156 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004175 | 0.272036 | 658 | 26 | 125 | 25.307692 | 0.787056 | 0 | 0 | 0 | 0 | 0 | 0.193009 | 0.031915 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.142857 | 0.047619 | 0 | 0.238095 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
323a9cf1657540b38e66a69c1561146bd14bceb9 | 874 | py | Python | functest/lmfunctest.py | mitsuba-rei/lightmetrica-v3 | db5b7d5a9a245fb7c0d25124433c38d09b62813e | [
"MIT"
] | 1 | 2019-11-20T13:24:58.000Z | 2019-11-20T13:24:58.000Z | functest/lmfunctest.py | mitsuba-rei/lightmetrica-v3 | db5b7d5a9a245fb7c0d25124433c38d09b62813e | [
"MIT"
] | null | null | null | functest/lmfunctest.py | mitsuba-rei/lightmetrica-v3 | db5b7d5a9a245fb7c0d25124433c38d09b62813e | [
"MIT"
] | null | null | null | import sys
import json
import numpy as np
import imageio
from argparse import Namespace
def loadenv(config_path):
"""Load configuration file of Lightmetrica environment"""
# Open config file
with open(config_path) as f:
config = json.load(f)
# Add root directory and binary directory to sys.pa... | 26.484848 | 87 | 0.662471 | 133 | 874 | 4.315789 | 0.443609 | 0.060976 | 0.041812 | 0.041812 | 0.202091 | 0.202091 | 0.125436 | 0.125436 | 0.125436 | 0.125436 | 0 | 0.035613 | 0.196796 | 874 | 33 | 88 | 26.484848 | 0.782051 | 0.180778 | 0 | 0 | 0 | 0 | 0.042614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.25 | 0.1 | 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 |
323d1294966a8fc8cdc72a192c1cd2b6b80bbc84 | 1,431 | py | Python | lib/tools/tools_watch_cub.py | galena503/SCR | d5b6581808b4f2fac775e7ff48b3eef548164ca1 | [
"MIT"
] | null | null | null | lib/tools/tools_watch_cub.py | galena503/SCR | d5b6581808b4f2fac775e7ff48b3eef548164ca1 | [
"MIT"
] | null | null | null | lib/tools/tools_watch_cub.py | galena503/SCR | d5b6581808b4f2fac775e7ff48b3eef548164ca1 | [
"MIT"
] | null | null | null |
import time,sys,os
import subprocess
class Tools_watch_sub():
def check_sub_process(self, SCR, SCRfield):
subs = SCR['sub_process']
command = SCRfield['command']
cmd_l = ['tasklist','/fo','csv']
pid_set = set('')
if command == 'bash':
ps_str = subprocess.Popen... | 23.459016 | 81 | 0.533892 | 171 | 1,431 | 4.327485 | 0.374269 | 0.040541 | 0.060811 | 0.101351 | 0.12027 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0.006154 | 0.318658 | 1,431 | 61 | 82 | 23.459016 | 0.752821 | 0.189378 | 0 | 0 | 0 | 0 | 0.060923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | 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 |
32426c09b1bd20f92239fee3f6494dab7ae72789 | 2,477 | py | Python | BASS_2_OM_testOnSyntheticData.py | oliviermirat/BASS | fe595fdc60795b09bb6c264b6da914a6e8e0c415 | [
"MIT"
] | 1 | 2020-10-10T11:20:32.000Z | 2020-10-10T11:20:32.000Z | BASS_2_OM_testOnSyntheticData.py | oliviermirat/BASS | fe595fdc60795b09bb6c264b6da914a6e8e0c415 | [
"MIT"
] | null | null | null | BASS_2_OM_testOnSyntheticData.py | oliviermirat/BASS | fe595fdc60795b09bb6c264b6da914a6e8e0c415 | [
"MIT"
] | null | null | null | import sys
sys.path.insert(1, './GR_BASS/BASS_only_original/')
sys.path.insert(1, './GR_BASS/')
import bass as md
import numpy as np
import sys
import bassLibrary as bl
# BASS algorithm parameters
eps = 0.1
p_d = 0.2
Jthr = 0.15
seed = 0
# Creating synthetic data for process BASS on and to learn the GMM model
nbC... | 43.45614 | 355 | 0.749697 | 340 | 2,477 | 5.329412 | 0.358824 | 0.03532 | 0.006623 | 0.033113 | 0.162804 | 0.162804 | 0.128587 | 0.128587 | 0.115894 | 0.115894 | 0 | 0.044007 | 0.137667 | 2,477 | 56 | 356 | 44.232143 | 0.804307 | 0.175212 | 0 | 0.052632 | 0 | 0 | 0.086486 | 0.014251 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0 | false | 0 | 0.131579 | 0 | 0.131579 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
3248e7edee7a47a71c97765cef8dd8859b78769c | 3,698 | py | Python | test/test_grid_to_triple.py | NCAR/geocat-f2py | fee07e680f61ca2ebfbb33f1554d9d85271fa32a | [
"Apache-2.0"
] | 4 | 2021-02-20T20:02:11.000Z | 2021-11-24T13:35:32.000Z | test/test_grid_to_triple.py | NCAR/geocat-f2py | fee07e680f61ca2ebfbb33f1554d9d85271fa32a | [
"Apache-2.0"
] | 27 | 2020-12-07T17:00:05.000Z | 2022-03-24T16:42:17.000Z | test/test_grid_to_triple.py | NCAR/geocat-f2py | fee07e680f61ca2ebfbb33f1554d9d85271fa32a | [
"Apache-2.0"
] | 4 | 2021-01-07T01:50:11.000Z | 2021-07-07T13:05:42.000Z | import sys
import unittest as ut
import numpy as np
import xarray as xr
# Import from directory structure if coverage test, or from installed
# packages otherwise
if "--cov" in str(sys.argv):
from src.geocat.f2py import grid_to_triple
else:
from geocat.f2py import grid_to_triple
# Size of the grids
ny = 2
mx... | 32.156522 | 124 | 0.635479 | 558 | 3,698 | 3.928315 | 0.15233 | 0.065693 | 0.131387 | 0.087591 | 0.742701 | 0.715785 | 0.630474 | 0.604015 | 0.604015 | 0.536496 | 0 | 0.085022 | 0.252569 | 3,698 | 114 | 125 | 32.438596 | 0.708032 | 0.054354 | 0 | 0.25 | 0 | 0 | 0.004874 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 1 | 0.131579 | false | 0 | 0.078947 | 0 | 0.236842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3254729c0575b8bd980f42074c2cb939b0ad6cf0 | 1,382 | py | Python | problems/p012.py | 10jmellott/ProjectEuler | eb84d129bbc37ba10ad7814ad2138d81568e0085 | [
"Unlicense"
] | null | null | null | problems/p012.py | 10jmellott/ProjectEuler | eb84d129bbc37ba10ad7814ad2138d81568e0085 | [
"Unlicense"
] | null | null | null | problems/p012.py | 10jmellott/ProjectEuler | eb84d129bbc37ba10ad7814ad2138d81568e0085 | [
"Unlicense"
] | null | null | null | """<a href="https://projecteuler.net/problem=12" class="title-custom-link">Highly divisible triangular number</a>
The sequence of triangle numbers is generated by adding the natural numbers. So the 7th triangle
number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The first ten terms would be:
1, 3, 6, 10, 15, 21, 28, 36,... | 32.139535 | 113 | 0.664978 | 223 | 1,382 | 4.06278 | 0.457399 | 0.011038 | 0.01766 | 0.048565 | 0.07947 | 0.07947 | 0.07947 | 0.07947 | 0 | 0 | 0 | 0.088656 | 0.240955 | 1,382 | 42 | 114 | 32.904762 | 0.775024 | 0.59479 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.2 | 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 |
3255418e552bf21eec558aa0897845fa6583a29c | 4,984 | py | Python | u3s2m1ass1-pt6/code/rpg_queries.py | LambdaTheda/lambdata-Unit3 | b44b20f2f3e28d2b17613660ddb562afe4825686 | [
"MIT"
] | null | null | null | u3s2m1ass1-pt6/code/rpg_queries.py | LambdaTheda/lambdata-Unit3 | b44b20f2f3e28d2b17613660ddb562afe4825686 | [
"MIT"
] | null | null | null | u3s2m1ass1-pt6/code/rpg_queries.py | LambdaTheda/lambdata-Unit3 | b44b20f2f3e28d2b17613660ddb562afe4825686 | [
"MIT"
] | 1 | 2020-05-11T04:33:24.000Z | 2020-05-11T04:33:24.000Z | import sqlite3
import os
#DB_FILEPATH = "data/chinook.db"
DB_FILEPATH = os.path.join(os.path.dirname(__file__), "..", "data", "rpg_db.sqlite3")
conn = sqlite3.connect(DB_FILEPATH)
conn.row_factory = sqlite3.Row
print(type(conn)) #> <class 'sqlite3.Connection'>
curs = conn.cursor()
print(type(curs)) #> <class 'sqlite3.... | 30.576687 | 85 | 0.731742 | 672 | 4,984 | 5.197917 | 0.165179 | 0.068709 | 0.026052 | 0.036645 | 0.354996 | 0.208131 | 0.149442 | 0.149442 | 0.149442 | 0.149442 | 0 | 0.018266 | 0.132223 | 4,984 | 163 | 86 | 30.576687 | 0.789364 | 0.254013 | 0 | 0.135922 | 0 | 0 | 0.685396 | 0.099349 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.019417 | 0 | 0.019417 | 0.213592 | 0 | 0 | 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 |
3262d7cd59e5780cbf71323fcb7c77c193d6904e | 324 | py | Python | testemunhoweb/consulta/migrations/0002_auto_20191202_0219.py | danielcamilo13/testemunhoWEB | 46825e31123058fa6ee21e4e71e9e0bedde32bb4 | [
"bzip2-1.0.6"
] | 1 | 2019-12-03T01:37:13.000Z | 2019-12-03T01:37:13.000Z | testemunhoweb/consulta/migrations/0002_auto_20191202_0219.py | danielcamilo13/testemunhoWEB | 46825e31123058fa6ee21e4e71e9e0bedde32bb4 | [
"bzip2-1.0.6"
] | 11 | 2020-06-06T01:28:35.000Z | 2022-03-12T00:16:34.000Z | testemunhoweb/consulta/migrations/0002_auto_20191202_0219.py | danielcamilo13/testemunhoWEB | 46825e31123058fa6ee21e4e71e9e0bedde32bb4 | [
"bzip2-1.0.6"
] | null | null | null | # Generated by Django 2.2.7 on 2019-12-02 05:19
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('consulta', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='generate',
new_name='consulta',
),
... | 18 | 47 | 0.58642 | 34 | 324 | 5.5 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0837 | 0.299383 | 324 | 17 | 48 | 19.058824 | 0.740088 | 0.138889 | 0 | 0 | 1 | 0 | 0.129964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
32649f15ad311acc51f598d331270d3f4fb588d6 | 497 | py | Python | instructors/lessons/practical_utils/examples/os-path-walk.py | mgadagin/PythonClass | 70b370362d75720b3fb0e1d6cc8158f9445e9708 | [
"MIT"
] | 46 | 2017-09-27T20:19:36.000Z | 2020-12-08T10:07:19.000Z | instructors/lessons/practical_utils/examples/os-path-walk.py | mgadagin/PythonClass | 70b370362d75720b3fb0e1d6cc8158f9445e9708 | [
"MIT"
] | 6 | 2018-01-09T08:07:37.000Z | 2020-09-07T12:25:13.000Z | instructors/lessons/practical_utils/examples/os-path-walk.py | mgadagin/PythonClass | 70b370362d75720b3fb0e1d6cc8158f9445e9708 | [
"MIT"
] | 18 | 2017-10-10T02:06:51.000Z | 2019-12-01T10:18:13.000Z | import os
import os.path
def visit(arg, dirname, names):
print dirname, arg
for name in names:
subname = os.path.join(dirname, name)
if os.path.isdir(subname):
print ' %s/' % name
else:
print ' %s' % name
print
os.mkdir('example')
os.mkdir('example/one')
f... | 22.590909 | 45 | 0.591549 | 73 | 497 | 4.027397 | 0.452055 | 0.081633 | 0.068027 | 0.07483 | 0.170068 | 0.170068 | 0.170068 | 0 | 0 | 0 | 0 | 0 | 0.229376 | 497 | 22 | 46 | 22.590909 | 0.767624 | 0 | 0 | 0.2 | 0 | 0 | 0.200803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
326bc9a28ede548053a0104238484ec204f3ccb0 | 1,518 | py | Python | macdaily/cmd/install.py | JarryShaw/MacDaily | 853b841dd1f1f7e6aae7bf2c305ff008bc76055c | [
"BSD-3-Clause"
] | 10 | 2018-09-20T19:57:56.000Z | 2021-11-14T18:28:10.000Z | macdaily/cmd/install.py | JarryShaw/jsdaily | 3ca7aa7c75a12dc08ab44f78af2b089e1ed41d3d | [
"BSD-3-Clause"
] | 2 | 2020-05-31T08:49:47.000Z | 2021-12-28T16:57:42.000Z | macdaily/cmd/install.py | JarryShaw/jsdaily | 3ca7aa7c75a12dc08ab44f78af2b089e1ed41d3d | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import abc
from macdaily.cls.command import Command
from macdaily.util.tools.print import print_info
class InstallCommand(Command):
@property
def cmd(self):
return 'install'
@property
def act(self):
return ('install', 'installed', 'installed')
@property... | 25.3 | 99 | 0.607378 | 174 | 1,518 | 5.091954 | 0.442529 | 0.062077 | 0.038375 | 0.036117 | 0.182844 | 0.182844 | 0.128668 | 0.128668 | 0.128668 | 0.128668 | 0 | 0.001847 | 0.286561 | 1,518 | 59 | 100 | 25.728814 | 0.816251 | 0.075099 | 0 | 0.309524 | 0 | 0 | 0.103794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0.02381 | 0.071429 | 0.119048 | 0.428571 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
327a37a67a58b314caa95c02379bd85e44d7216f | 722 | py | Python | src/api/v1/villains/serializers.py | reiniervdwindt/power-ranger-api | 13ce639a7f5e9d4b106ce5f094c076db0aad398e | [
"MIT"
] | null | null | null | src/api/v1/villains/serializers.py | reiniervdwindt/power-ranger-api | 13ce639a7f5e9d4b106ce5f094c076db0aad398e | [
"MIT"
] | null | null | null | src/api/v1/villains/serializers.py | reiniervdwindt/power-ranger-api | 13ce639a7f5e9d4b106ce5f094c076db0aad398e | [
"MIT"
] | null | null | null | from rest_framework import serializers
from series.models import Series
from villains.models import Villain
class VillainSeriesSerializer(serializers.ModelSerializer):
name = serializers.CharField()
class Meta(object):
fields = ('id', 'name',)
model = Series
class VillainDetailSerializer(s... | 26.740741 | 88 | 0.688366 | 67 | 722 | 7.402985 | 0.402985 | 0.157258 | 0.090726 | 0.127016 | 0.284274 | 0.284274 | 0.229839 | 0.229839 | 0.229839 | 0.229839 | 0 | 0 | 0.189751 | 722 | 26 | 89 | 27.769231 | 0.847863 | 0 | 0 | 0.294118 | 0 | 0 | 0.116343 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
327c981e0a47fcedcb62aea60362f8adb3c7ccec | 5,277 | py | Python | common/xrd-ui-tests-qautomate/pagemodel/ss_keys_and_cert_dlg_subject_dname.py | ria-ee/XTM | 6103f3f5bbba387b8b59b050c0c4f1fb2180fc37 | [
"MIT"
] | 3 | 2018-03-15T14:22:50.000Z | 2021-11-08T10:30:35.000Z | common/xrd-ui-tests-qautomate/pagemodel/ss_keys_and_cert_dlg_subject_dname.py | ria-ee/XTM | 6103f3f5bbba387b8b59b050c0c4f1fb2180fc37 | [
"MIT"
] | 11 | 2017-04-06T09:25:41.000Z | 2018-06-04T09:08:48.000Z | common/xrd-ui-tests-qautomate/pagemodel/ss_keys_and_cert_dlg_subject_dname.py | ria-ee/XTM | 6103f3f5bbba387b8b59b050c0c4f1fb2180fc37 | [
"MIT"
] | 20 | 2017-03-14T07:21:58.000Z | 2019-05-21T09:26:30.000Z | # -*- coding: utf-8 -*-
# Example for using WebDriver object: driver = get_driver() e.g driver.current_url
from webframework import TESTDATA
from variables import strings
from selenium.webdriver.common.by import By
from webframework.extension.util.common_utils import *
from webframework.extension.util.webtimings import... | 53.30303 | 250 | 0.675005 | 736 | 5,277 | 4.668478 | 0.298913 | 0.048894 | 0.023283 | 0.041909 | 0.5617 | 0.514261 | 0.486903 | 0.444703 | 0.444703 | 0.341967 | 0 | 0.044529 | 0.199924 | 5,277 | 98 | 251 | 53.846939 | 0.769304 | 0.556756 | 0 | 0.193548 | 0 | 0 | 0.132409 | 0.097992 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.290323 | 0 | 0.677419 | 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 |
327fa5382ee48b811835bb16249bdcc124edd278 | 1,187 | py | Python | apps/core/serializers.py | jfterpstra/onepercentclub-site | 43e8e01ac4d3d1ffdd5959ebd048ce95bb2dba0e | [
"BSD-3-Clause"
] | 7 | 2015-01-02T19:31:14.000Z | 2021-03-22T17:30:23.000Z | apps/core/serializers.py | jfterpstra/onepercentclub-site | 43e8e01ac4d3d1ffdd5959ebd048ce95bb2dba0e | [
"BSD-3-Clause"
] | 1 | 2015-03-06T08:34:59.000Z | 2015-03-06T08:34:59.000Z | apps/core/serializers.py | jfterpstra/onepercentclub-site | 43e8e01ac4d3d1ffdd5959ebd048ce95bb2dba0e | [
"BSD-3-Clause"
] | null | null | null | from rest_framework import serializers
from bluebottle.utils.model_dispatcher import get_donation_model
from bluebottle.bb_projects.serializers import ProjectPreviewSerializer as BaseProjectPreviewSerializer
from bluebottle.bb_accounts.serializers import UserPreviewSerializer
DONATION_MODEL = get_donation_model()
c... | 42.392857 | 125 | 0.754844 | 109 | 1,187 | 8.036697 | 0.495413 | 0.059361 | 0.03653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138163 | 1,187 | 27 | 126 | 43.962963 | 0.856305 | 0 | 0 | 0 | 0 | 0 | 0.182814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.210526 | 0 | 0.684211 | 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 |
32839d586b1955e1c6b167959e736b233c1def5e | 363 | py | Python | vandal/objects/__init__.py | vandal-dev/vandal | 1981c86f4de6632776a4132ecbc206fac5188f32 | [
"Apache-2.0"
] | 1 | 2022-02-22T18:39:57.000Z | 2022-02-22T18:39:57.000Z | vandal/objects/__init__.py | vandal-dev/vandal | 1981c86f4de6632776a4132ecbc206fac5188f32 | [
"Apache-2.0"
] | null | null | null | vandal/objects/__init__.py | vandal-dev/vandal | 1981c86f4de6632776a4132ecbc206fac5188f32 | [
"Apache-2.0"
] | null | null | null | # import all relevant contents from the associated module.
from vandal.objects.montecarlo import (
MonteCarlo,
MCapp,
)
from vandal.objects.eoq import(
EOQ,
EOQapp,
)
from vandal.objects.dijkstra import Dijkstra
# all relevant contents.
__all__ = [
'MonteCarlo',
'EOQ',
'D... | 16.5 | 59 | 0.628099 | 37 | 363 | 6.054054 | 0.405405 | 0.133929 | 0.227679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 363 | 21 | 60 | 17.285714 | 0.848485 | 0.217631 | 0 | 0 | 0 | 0 | 0.123077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
32885105782d33bbebe4c4cc904fbc2149735713 | 784 | py | Python | app/live/tests.py | B-ROY/TESTGIT | 40221cf254c90d37d21afb981635740aebf11949 | [
"Apache-2.0"
] | 2 | 2017-12-02T13:58:30.000Z | 2018-08-02T17:07:59.000Z | app/live/tests.py | B-ROY/TESTGIT | 40221cf254c90d37d21afb981635740aebf11949 | [
"Apache-2.0"
] | null | null | null | app/live/tests.py | B-ROY/TESTGIT | 40221cf254c90d37d21afb981635740aebf11949 | [
"Apache-2.0"
] | null | null | null | import os
from django.conf import settings
from django.contrib.auth.models import User
from django.contrib.auth.tests.utils import skipIfCustomUser
from django.contrib.flatpages.models import FlatPage
from django.test import TestCase
from django.test.utils import override_settings
class HeyDoAppTest(unittest.TestCase)... | 27.034483 | 60 | 0.632653 | 86 | 784 | 5.604651 | 0.569767 | 0.124481 | 0.105809 | 0.087137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02109 | 0.274235 | 784 | 28 | 61 | 28 | 0.826011 | 0.059949 | 0 | 0 | 0 | 0 | 0.035326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.304348 | 0 | 0.434783 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.