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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bc0403ac37d2cb51bc261a07f689779e9bc2d695 | 1,570 | py | Python | app.py | jotathebest/aws_dynamodb_crud | 5649129256dd545d1714232aa3c3345053540eb8 | [
"MIT"
] | null | null | null | app.py | jotathebest/aws_dynamodb_crud | 5649129256dd545d1714232aa3c3345053540eb8 | [
"MIT"
] | null | null | null | app.py | jotathebest/aws_dynamodb_crud | 5649129256dd545d1714232aa3c3345053540eb8 | [
"MIT"
] | null | null | null | from chalice import Chalice, Response
from chalicelib.handlers.handler_group import HandlerGroup
from chalicelib.handlers.handler_user import HandlerUser
app = Chalice(app_name="porter")
@app.route("/")
def index():
return {"hello": "world"}
@app.route("/users/{user_id}", methods=["POST"])
def add_user(user_i... | 27.54386 | 60 | 0.732484 | 217 | 1,570 | 5.018433 | 0.175115 | 0.066116 | 0.073462 | 0.087236 | 0.676768 | 0.658402 | 0.427916 | 0.427916 | 0.347107 | 0.304867 | 0 | 0 | 0.124841 | 1,570 | 56 | 61 | 28.035714 | 0.792576 | 0 | 0 | 0.315789 | 0 | 0 | 0.107643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.078947 | 0.026316 | 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 |
bc0440d09888ed4d3a12b2de09fd55c090bcd050 | 342 | py | Python | openvpn-auth-script/adduser.py | paulveillard/cybersecurity-auth | 50f811a4736accc4b118ac3b94d630c66b8ccae7 | [
"Apache-2.0"
] | 1 | 2022-02-08T03:17:24.000Z | 2022-02-08T03:17:24.000Z | openvpn-auth-script/adduser.py | paulveillard/cybersecurity-auth | 50f811a4736accc4b118ac3b94d630c66b8ccae7 | [
"Apache-2.0"
] | null | null | null | openvpn-auth-script/adduser.py | paulveillard/cybersecurity-auth | 50f811a4736accc4b118ac3b94d630c66b8ccae7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import sys
import hashlib
import os
in_user = sys.argv[1]
in_password = sys.argv[2]
in_password = hashlib.sha256(in_password.encode("utf-8")).hexdigest()
f = open('users.db', 'w+')
new_line = in_user + ":" + in_password
if os.path.getsize("users.db") > 0:
f.write("\n" + new_line)
else:
f.writ... | 21.375 | 69 | 0.675439 | 59 | 342 | 3.762712 | 0.559322 | 0.18018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023649 | 0.134503 | 342 | 15 | 70 | 22.8 | 0.726351 | 0.046784 | 0 | 0 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.230769 | 0.230769 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
bc0ad3fe56a54b78e29b4213cd80f2684a3275cb | 378 | py | Python | {{cookiecutter.project_slug}}/backend/app/app/core/cors.py | tiangolo/full-stack-flask-couchbase | d79d4c2159632dfac47051ff65119b6a6b73b2cd | [
"MIT"
] | 51 | 2018-10-22T14:14:49.000Z | 2021-12-02T07:07:50.000Z | {{cookiecutter.project_slug}}/backend/app/app/core/cors.py | blockchain-Bobby/full-stack-flask-couchbase | d79ed8d6cd1f610fd68a7cd234a0104deb874933 | [
"MIT"
] | 11 | 2018-11-02T21:50:22.000Z | 2020-02-07T18:48:48.000Z | {{cookiecutter.project_slug}}/backend/app/app/core/cors.py | blockchain-Bobby/full-stack-flask-couchbase | d79ed8d6cd1f610fd68a7cd234a0104deb874933 | [
"MIT"
] | 9 | 2019-03-29T09:26:18.000Z | 2021-07-09T09:37:45.000Z | from flask_cors import CORS
from app.core import config
from app.main import app
origins = []
# Set all CORS enabled origins
if config.BACKEND_CORS_ORIGINS:
origins_raw = config.BACKEND_CORS_ORIGINS.split(",")
for origin in origins_raw:
use_origin = origin.strip()
origins.append(use_origin)
... | 23.625 | 57 | 0.738095 | 53 | 378 | 5.075472 | 0.471698 | 0.052045 | 0.126394 | 0.178439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18254 | 378 | 15 | 58 | 25.2 | 0.87055 | 0.074074 | 0 | 0 | 0 | 0 | 0.002874 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 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 |
bc138c536f83b51684ae6b5fe80f0348af2a2a28 | 2,241 | py | Python | headless/examples/generate_traffic.py | aclk/abstreet | 611ab9fce155ae2ed37a224cbbd417fcebaa0536 | [
"Apache-2.0"
] | 5,680 | 2018-06-06T22:07:38.000Z | 2021-01-30T13:40:42.000Z | headless/examples/generate_traffic.py | aclk/abstreet | 611ab9fce155ae2ed37a224cbbd417fcebaa0536 | [
"Apache-2.0"
] | 430 | 2019-08-30T19:38:41.000Z | 2021-01-31T21:04:01.000Z | headless/examples/generate_traffic.py | aclk/abstreet | 611ab9fce155ae2ed37a224cbbd417fcebaa0536 | [
"Apache-2.0"
] | 183 | 2019-05-11T17:12:44.000Z | 2021-01-25T15:50:22.000Z | #!/usr/bin/python3
# This example loads an exported JSON map, finds different buildings, and
# generates a simple travel demand model.
#
# 1) cargo run --bin dump_map data/system/us/seattle/maps/montlake.bin > montlake.json
# 2) ./headless/examples/generate_traffic.py --map=montlake.json --out=traffic.json
# 3) cargo r... | 33.447761 | 106 | 0.585007 | 260 | 2,241 | 4.919231 | 0.476923 | 0.051603 | 0.021892 | 0.034402 | 0.1595 | 0.128225 | 0.128225 | 0.128225 | 0.070367 | 0.070367 | 0 | 0.008181 | 0.290942 | 2,241 | 66 | 107 | 33.954545 | 0.796728 | 0.302544 | 0 | 0.044444 | 1 | 0 | 0.162581 | 0.027097 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.066667 | 0 | 0.088889 | 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 |
bc13aa0479a80306769c2cd2b9c29d6508045527 | 1,220 | py | Python | tests/test_couchbase.py | sublee/couchbase-python-client | ce0de7fa68ce118092c385bf979c44b4ec900170 | [
"Apache-2.0"
] | null | null | null | tests/test_couchbase.py | sublee/couchbase-python-client | ce0de7fa68ce118092c385bf979c44b4ec900170 | [
"Apache-2.0"
] | null | null | null | tests/test_couchbase.py | sublee/couchbase-python-client | ce0de7fa68ce118092c385bf979c44b4ec900170 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2013, Couchbase, Inc.
# All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | 30.5 | 74 | 0.683607 | 149 | 1,220 | 5.483221 | 0.61745 | 0.073439 | 0.031824 | 0.039168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008734 | 0.24918 | 1,220 | 39 | 75 | 31.282051 | 0.883188 | 0.468852 | 0 | 0 | 0 | 0 | 0.052298 | 0.03962 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0.066667 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
bc1907e6949a063808181251ef8f9ff3d867c2c9 | 467 | py | Python | Aula_55/model/cliente.py | Mateus-Silva11/AulasPython | d34dc4f62ade438e68b0a80e0baac4d6ec0d378e | [
"MIT"
] | null | null | null | Aula_55/model/cliente.py | Mateus-Silva11/AulasPython | d34dc4f62ade438e68b0a80e0baac4d6ec0d378e | [
"MIT"
] | null | null | null | Aula_55/model/cliente.py | Mateus-Silva11/AulasPython | d34dc4f62ade438e68b0a80e0baac4d6ec0d378e | [
"MIT"
] | null | null | null | import sqlalchemy as db
from sqlalchemy.orm import relationship
from Aula_55.model.pessoa import Pessoa
class Cliente:
__tablename__ = "LIVRARIA_CLIENTE"
id = db.Column(db.Integer, primary_key=True)
endereco = db.Column(db.String(length=200))
numero_documento = db.Column(db.String(length=50))
tele... | 35.923077 | 74 | 0.745182 | 65 | 467 | 5.2 | 0.476923 | 0.118343 | 0.147929 | 0.142012 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022444 | 0.141328 | 467 | 13 | 75 | 35.923077 | 0.820449 | 0 | 0 | 0 | 0 | 0 | 0.07265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 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 |
bc1f7e03402ed890f1d93421361ac7f96e9d6286 | 17,083 | py | Python | tests/test_math_ops.py | mamrhein/quantity | 36018ada0dd2f88e7b80ae5d1c02e4e9b3d6023c | [
"BSD-2-Clause"
] | null | null | null | tests/test_math_ops.py | mamrhein/quantity | 36018ada0dd2f88e7b80ae5d1c02e4e9b3d6023c | [
"BSD-2-Clause"
] | null | null | null | tests/test_math_ops.py | mamrhein/quantity | 36018ada0dd2f88e7b80ae5d1c02e4e9b3d6023c | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# ----------------------------------------------------------------------------
# Author: Michael Amrhein (michael@adrhinum.de)
#
# Copyright: (c) 2021 ff. Michael Amrhein
# License: This program is part of a larger application. For license
# details please read the file L... | 36.346809 | 78 | 0.524205 | 1,882 | 17,083 | 4.614772 | 0.085547 | 0.066782 | 0.140242 | 0.086816 | 0.783995 | 0.71468 | 0.655037 | 0.632124 | 0.591249 | 0.576051 | 0 | 0.032852 | 0.347831 | 17,083 | 469 | 79 | 36.424307 | 0.746701 | 0.029035 | 0 | 0.641221 | 0 | 0 | 0.019794 | 0 | 0 | 0 | 0 | 0 | 0.124682 | 1 | 0.073791 | false | 0 | 0.020356 | 0 | 0.094148 | 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 |
bc2b37a113c5dd68bd93e617c48bf4c305995d15 | 3,213 | py | Python | python/tests/spatial_rdd/test_spatial_rdd_writer.py | aji-geo/incubator-sedona | ed7a1badf58f0c7efedf79a0a21a9ef6ebd1d6b1 | [
"Apache-2.0"
] | null | null | null | python/tests/spatial_rdd/test_spatial_rdd_writer.py | aji-geo/incubator-sedona | ed7a1badf58f0c7efedf79a0a21a9ef6ebd1d6b1 | [
"Apache-2.0"
] | null | null | null | python/tests/spatial_rdd/test_spatial_rdd_writer.py | aji-geo/incubator-sedona | ed7a1badf58f0c7efedf79a0a21a9ef6ebd1d6b1 | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may... | 32.454545 | 90 | 0.743231 | 406 | 3,213 | 5.70936 | 0.450739 | 0.031061 | 0.038827 | 0.045298 | 0.213978 | 0.163934 | 0.131148 | 0.088007 | 0 | 0 | 0 | 0.02361 | 0.182695 | 3,213 | 98 | 91 | 32.785714 | 0.859101 | 0.245254 | 0 | 0.121212 | 0 | 0 | 0.07027 | 0.038254 | 0 | 0 | 0 | 0.010204 | 0.015152 | 1 | 0.045455 | false | 0 | 0.136364 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bc31a7488edcf3b1f9fa9a856416afd3c0a8627a | 4,211 | py | Python | plugin.video.moviereleases/resources/libs/basic.py | keddyboys/keddy-repo | 5c3420828e19f97222714e0e8518a95d58b3f637 | [
"MIT"
] | 1 | 2019-09-08T05:39:36.000Z | 2019-09-08T05:39:36.000Z | plugin.video.moviereleases/resources/libs/basic.py | keddyboys/keddy-repo | 5c3420828e19f97222714e0e8518a95d58b3f637 | [
"MIT"
] | 1 | 2017-12-03T09:17:31.000Z | 2019-01-13T08:48:40.000Z | plugin.video.moviereleases/resources/libs/basic.py | keddyboys/keddy-repo | 5c3420828e19f97222714e0e8518a95d58b3f637 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
# by Mafarricos
# email: MafaStudios@gmail.com
# This program is free software: GNU General Public License
import os,json,urllib,urllib2,xbmcaddon,xbmc,xbmcgui
import links
__name__ = xbmcaddon.Addon().getAddonInfo("id")
addonName = xbmcaddon.Addon().getAddonInfo("name")
debug ... | 35.686441 | 182 | 0.6673 | 582 | 4,211 | 4.766323 | 0.328179 | 0.025234 | 0.016222 | 0.025955 | 0.266763 | 0.21341 | 0.165105 | 0.152848 | 0.08796 | 0.08796 | 0 | 0.01981 | 0.148896 | 4,211 | 117 | 183 | 35.991453 | 0.753906 | 0.028972 | 0 | 0.115789 | 0 | 0.052632 | 0.181039 | 0.021432 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.031579 | 0.031579 | 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 |
bc31cf316a9b99d340b6a06e5144fcd249240153 | 2,741 | py | Python | test_algocli.py | emanuel2718/algocli | ce534442df92d382e692e383e76c4c29a4c39564 | [
"MIT"
] | null | null | null | test_algocli.py | emanuel2718/algocli | ce534442df92d382e692e383e76c4c29a4c39564 | [
"MIT"
] | null | null | null | test_algocli.py | emanuel2718/algocli | ce534442df92d382e692e383e76c4c29a4c39564 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''Tests for algocli'''
import os
import unittest
from algocli import algocli
from algocli import util
class TestAlgocli(unittest.TestCase):
#def setUp(self):
# self.args = {
# 'input': None,
# 'version': False,
# 'list_colors': False,
# '... | 33.839506 | 90 | 0.54761 | 300 | 2,741 | 4.83 | 0.34 | 0.045549 | 0.031056 | 0.05383 | 0.403037 | 0.329193 | 0.283644 | 0.283644 | 0.173223 | 0.173223 | 0 | 0.00264 | 0.309011 | 2,741 | 80 | 91 | 34.2625 | 0.762408 | 0.685151 | 0 | 0 | 0 | 0 | 0.127475 | 0 | 0 | 0 | 0 | 0.0125 | 0 | 1 | 0.0625 | false | 0 | 0.25 | 0 | 0.375 | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
bc394001e514e72478ae5931df01a784d9438225 | 593 | py | Python | tests/urls.py | VelocityWebworks/django-media-albums | e9aa8afd7dc7d1e45a8220d9d98007454e50030f | [
"MIT"
] | 1 | 2019-11-07T03:17:27.000Z | 2019-11-07T03:17:27.000Z | tests/urls.py | VelocityWebworks/django-media-albums | e9aa8afd7dc7d1e45a8220d9d98007454e50030f | [
"MIT"
] | null | null | null | tests/urls.py | VelocityWebworks/django-media-albums | e9aa8afd7dc7d1e45a8220d9d98007454e50030f | [
"MIT"
] | null | null | null | from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.views.generic import TemplateView
urlpatterns = [
url(r'^$', TemplateView.as_view(template_name='homepage.html')),
url(r'^accounts/', include('djang... | 34.882353 | 68 | 0.745363 | 81 | 593 | 5.345679 | 0.358025 | 0.115473 | 0.096998 | 0.083141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114671 | 593 | 16 | 69 | 37.0625 | 0.824762 | 0 | 0 | 0 | 0 | 0 | 0.146712 | 0.040472 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
bc3e05912a026c5c90708c02089ee38043470810 | 688 | py | Python | aeneas and the cryptographic disc/aeneas_and_the_cryptographic_disc.py | papachristoumarios/IEEEXtreme11.0 | 4c3b5aaa71641a6d0b3e9823c4738050f2553b27 | [
"MIT"
] | 13 | 2018-10-11T14:13:56.000Z | 2022-02-17T18:30:17.000Z | aeneas and the cryptographic disc/aeneas_and_the_cryptographic_disc.py | papachristoumarios/IEEEXtreme11.0-PComplete | 4c3b5aaa71641a6d0b3e9823c4738050f2553b27 | [
"MIT"
] | null | null | null | aeneas and the cryptographic disc/aeneas_and_the_cryptographic_disc.py | papachristoumarios/IEEEXtreme11.0-PComplete | 4c3b5aaa71641a6d0b3e9823c4738050f2553b27 | [
"MIT"
] | 7 | 2018-10-24T08:36:59.000Z | 2021-07-19T18:16:53.000Z | import math as m
to_polar = lambda r, theta : (r*m.cos(theta), r*m.sin(theta))
dist = lambda (x1,y1), (x2, y2) : m.sqrt((x1 - x2)*(x1 - x2) + (y1- y2)*(y1-y2))
r = float(raw_input())
coords = {0 : (0,0)}
for i in range(26):
letter, theta = raw_input().split()
theta = m.radians(float(theta))
x, y = to_polar(r, th... | 21.5 | 80 | 0.609012 | 123 | 688 | 3.341463 | 0.398374 | 0.058394 | 0.034063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044563 | 0.184593 | 688 | 31 | 81 | 22.193548 | 0.688057 | 0 | 0 | 0 | 0 | 0 | 0.002907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041667 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
70b1a4b8678c974e0435090f057f10b4acd45993 | 3,150 | py | Python | boards.py | hsmptg/WebGUI | 2b7ff4817482ab761af1accf0e331bfeae86f988 | [
"MIT"
] | null | null | null | boards.py | hsmptg/WebGUI | 2b7ff4817482ab761af1accf0e331bfeae86f988 | [
"MIT"
] | null | null | null | boards.py | hsmptg/WebGUI | 2b7ff4817482ab761af1accf0e331bfeae86f988 | [
"MIT"
] | null | null | null | import threading
import socket
import serial
import time
class Raspi(object):
def __init__(self, parent=None):
self.onMsg = None
def connect(self, ip, port):
self._exit = False
self.soc = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
self.soc.conne... | 30.582524 | 80 | 0.448571 | 333 | 3,150 | 4.171171 | 0.276276 | 0.034557 | 0.028798 | 0.024478 | 0.606911 | 0.529878 | 0.478042 | 0.426206 | 0.426206 | 0.426206 | 0 | 0.012666 | 0.448571 | 3,150 | 103 | 81 | 30.582524 | 0.786989 | 0.041905 | 0 | 0.648352 | 0 | 0 | 0.03319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043956 | null | null | 0.10989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
70b772d838d4eada8a8f53941994fc642b9e1e0e | 1,109 | py | Python | tests/test_open_redirect_scanner.py | NeuronAddict/openid-scanner | c29c36d42d925138e1c432afa0a8f4893adb75ec | [
"Apache-2.0"
] | 25 | 2020-10-24T14:25:52.000Z | 2022-03-28T18:42:57.000Z | tests/test_open_redirect_scanner.py | NeuronAddict/openid-scanner | c29c36d42d925138e1c432afa0a8f4893adb75ec | [
"Apache-2.0"
] | 6 | 2020-09-19T16:33:25.000Z | 2021-12-30T21:13:17.000Z | tests/test_open_redirect_scanner.py | NeuronAddict/openid-scanner | c29c36d42d925138e1c432afa0a8f4893adb75ec | [
"Apache-2.0"
] | 6 | 2021-03-08T10:26:45.000Z | 2021-12-19T14:04:35.000Z | from typing import List
from requests import Session
from keycloak_scanner.scanners.clients_scanner import Client
from keycloak_scanner.scan_base.mediator import Mediator
from keycloak_scanner.scanners.open_redirect_scanner import OpenRedirectScanner
from keycloak_scanner.scan_base.types import WellKnown, OpenRedirec... | 41.074074 | 116 | 0.776375 | 134 | 1,109 | 6.126866 | 0.343284 | 0.073082 | 0.115713 | 0.084044 | 0.09866 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005314 | 0.151488 | 1,109 | 26 | 117 | 42.653846 | 0.867163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.05 | false | 0 | 0.35 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
70b987b3190c3c7fccf44aeca2115289f3071d3d | 923 | py | Python | k8s/models/pod_disruption_budget.py | tfheen/k8s | 11823213f2575e725481f5a2747ea01c1622ac4a | [
"Apache-2.0"
] | null | null | null | k8s/models/pod_disruption_budget.py | tfheen/k8s | 11823213f2575e725481f5a2747ea01c1622ac4a | [
"Apache-2.0"
] | null | null | null | k8s/models/pod_disruption_budget.py | tfheen/k8s | 11823213f2575e725481f5a2747ea01c1622ac4a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8
from __future__ import absolute_import
import six
from .common import ObjectMeta
from ..base import Model
from ..fields import Field, ListField
class LabelSelectorRequirement(Model):
key = Field(six.text_type)
operator = Field(six.text_type)
values = ListField(s... | 25.638889 | 96 | 0.746479 | 102 | 923 | 6.617647 | 0.490196 | 0.051852 | 0.081481 | 0.094815 | 0.077037 | 0.077037 | 0.077037 | 0 | 0 | 0 | 0 | 0.006418 | 0.156013 | 923 | 35 | 97 | 26.371429 | 0.860077 | 0.04117 | 0 | 0 | 0 | 0 | 0.12684 | 0.12684 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.227273 | 0 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
70c18b02f882ec5af403616563699a32ed2b910b | 2,946 | py | Python | tests/test_uhfreader288.py | DylanDonkersgoed/chafon-rfid | 6584a3b0b0088868fde07dbfaab12c3a870b8962 | [
"MIT"
] | 26 | 2019-05-12T10:57:25.000Z | 2022-01-29T06:29:28.000Z | tests/test_uhfreader288.py | DylanDonkersgoed/chafon-rfid | 6584a3b0b0088868fde07dbfaab12c3a870b8962 | [
"MIT"
] | 12 | 2019-12-09T07:48:30.000Z | 2022-01-06T09:13:25.000Z | tests/test_uhfreader288.py | DylanDonkersgoed/chafon-rfid | 6584a3b0b0088868fde07dbfaab12c3a870b8962 | [
"MIT"
] | 12 | 2019-09-10T00:12:39.000Z | 2022-03-02T16:47:54.000Z | from chafon_rfid.base import CommandRunner, ReaderCommand
from chafon_rfid.transport import MockTransport
from chafon_rfid.uhfreader288m import G2InventoryCommand, G2InventoryResponse, G2InventoryResponseFrame
from chafon_rfid.command import CF_GET_READER_INFO, G2_TAG_INVENTORY
RESP_TAGS_1 = '1500010301010c0000000000... | 36.825 | 103 | 0.760692 | 334 | 2,946 | 6.491018 | 0.233533 | 0.076107 | 0.02583 | 0.052583 | 0.464483 | 0.392066 | 0.315498 | 0.315498 | 0.2869 | 0.2869 | 0 | 0.169532 | 0.151052 | 2,946 | 79 | 104 | 37.291139 | 0.697321 | 0 | 0 | 0.353846 | 0 | 0 | 0.128988 | 0.111337 | 0 | 0 | 0.009504 | 0 | 0.446154 | 1 | 0.076923 | false | 0 | 0.061538 | 0 | 0.138462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
70c36d5f73c7c63014839f5faa276b6998b4f302 | 1,341 | py | Python | alipay/aop/api/domain/InsurancePeriod.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/domain/InsurancePeriod.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/domain/InsurancePeriod.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class InsurancePeriod(object):
def __init__(self):
self._period = None
self._period_unit = None
@property
def period(self):
return self._period
@period.setter
... | 23.946429 | 73 | 0.574944 | 159 | 1,341 | 4.616352 | 0.245283 | 0.20436 | 0.133515 | 0.054496 | 0.237057 | 0.177112 | 0 | 0 | 0 | 0 | 0 | 0.001101 | 0.322893 | 1,341 | 55 | 74 | 24.381818 | 0.807269 | 0.03132 | 0 | 0.097561 | 0 | 0 | 0.074131 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170732 | false | 0 | 0.04878 | 0.04878 | 0.365854 | 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 |
70caba1bed8193fb035f35dc0ac125297826a3f1 | 792 | py | Python | docker/ucp-bundle.py | avinashdesireddy/dotfiles | 03155296ccef87a7aed2d67b3674feec68731398 | [
"MIT"
] | null | null | null | docker/ucp-bundle.py | avinashdesireddy/dotfiles | 03155296ccef87a7aed2d67b3674feec68731398 | [
"MIT"
] | null | null | null | docker/ucp-bundle.py | avinashdesireddy/dotfiles | 03155296ccef87a7aed2d67b3674feec68731398 | [
"MIT"
] | null | null | null |
import sys, json, requests, wget
#import urllib2 import urlopen, URLError, HTTPError
def clientbundle():
pass
url="https://ec2-54-183-194-88.us-west-1.compute.amazonaws.com/auth/login"
data = dict(username='docker', password='dockeradmin')
r = requests.post(url, json=data, verify=False)
auth_token = json.loads(r.... | 29.333333 | 86 | 0.733586 | 117 | 792 | 4.888889 | 0.615385 | 0.047203 | 0.034965 | 0.045455 | 0.153846 | 0.153846 | 0.153846 | 0.153846 | 0.153846 | 0.153846 | 0 | 0.039943 | 0.114899 | 792 | 26 | 87 | 30.461538 | 0.776034 | 0.127525 | 0 | 0 | 0 | 0.125 | 0.295918 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.125 | 0.0625 | 0 | 0.125 | 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 |
70cbdf2a903031c55ac92970f613e0c5e86e136c | 1,403 | py | Python | src/seqmagick/setup.py | smilefreak/ancient_dna_pipeline | 56055d400fe5f67a99c7f053bc0741abf555af6b | [
"MIT"
] | 1 | 2016-07-22T09:21:27.000Z | 2016-07-22T09:21:27.000Z | src/seqmagick/setup.py | theboocock/ancient_dna_pipeline | 56055d400fe5f67a99c7f053bc0741abf555af6b | [
"MIT"
] | 3 | 2015-05-22T05:50:52.000Z | 2016-01-17T12:43:33.000Z | src/seqmagick/setup.py | theboocock/ancient_dna_pipeline | 56055d400fe5f67a99c7f053bc0741abf555af6b | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# Use setuptools, falling back on provide
try:
from setuptools import setup, find_packages
except ImportError:
import distribute_setup
distribute_setup.use_setuptools()
from setuptools import setup, find_packages
import sys
from seqmagick import __version__ as version
if sys.v... | 30.5 | 70 | 0.645046 | 160 | 1,403 | 5.5375 | 0.60625 | 0.040632 | 0.045147 | 0.056433 | 0.083521 | 0.083521 | 0 | 0 | 0 | 0 | 0 | 0.012951 | 0.229508 | 1,403 | 45 | 71 | 31.177778 | 0.806661 | 0.043478 | 0 | 0.054054 | 0 | 0 | 0.406716 | 0.055224 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.162162 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
70cfc08d11ea22ebe6337c2f4dc5e12c255b1231 | 1,573 | py | Python | ch06/ch06-05-embedded.py | LDJWJ/kagglebook | 8f0c7613f746f9e025a017d0afd561f6f21f2ab8 | [
"BSD-3-Clause"
] | 19 | 2021-03-15T03:10:07.000Z | 2022-03-10T05:38:48.000Z | ch06/ch06-05-embedded.py | maxpark/kagglebook | 8f0c7613f746f9e025a017d0afd561f6f21f2ab8 | [
"BSD-3-Clause"
] | null | null | null | ch06/ch06-05-embedded.py | maxpark/kagglebook | 8f0c7613f746f9e025a017d0afd561f6f21f2ab8 | [
"BSD-3-Clause"
] | 12 | 2021-03-15T03:10:09.000Z | 2022-03-31T10:21:05.000Z | import numpy as np
import pandas as pd
# ---------------------------------
# 랜덤포레스트 특징의 중요도
# ---------------------------------
# train_x는 학습 데이터, train_y는 목적 변수
# 결손값을 취급할 수 없기 때문에 결손값을 보완한 데이터를 불러온다.
train = pd.read_csv('../input/sample-data/train_preprocessed_onehot.csv')
train_x = train.drop(['target'], axis=1)
tr... | 31.46 | 100 | 0.628735 | 220 | 1,573 | 4.345455 | 0.5 | 0.031381 | 0.034519 | 0.025105 | 0.246862 | 0.246862 | 0.246862 | 0.246862 | 0.246862 | 0.096234 | 0 | 0.019397 | 0.115067 | 1,573 | 49 | 101 | 32.102041 | 0.667385 | 0.304514 | 0 | 0.16 | 0 | 0 | 0.199441 | 0.086673 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.16 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
70d5ee71cb0db6bbdb4d6dd07052fa76ef69eab8 | 815 | py | Python | speedbar/views.py | matclayton/django-speedbar | eec22feeab49147cf649e1647d0fb137da5b21ae | [
"MIT"
] | 70 | 2016-01-24T05:06:49.000Z | 2020-12-27T19:31:02.000Z | speedbar/views.py | matclayton/django-speedbar | eec22feeab49147cf649e1647d0fb137da5b21ae | [
"MIT"
] | 6 | 2016-01-21T01:00:05.000Z | 2018-03-29T21:40:39.000Z | speedbar/views.py | matclayton/django-speedbar | eec22feeab49147cf649e1647d0fb137da5b21ae | [
"MIT"
] | 9 | 2016-01-24T22:14:45.000Z | 2020-12-15T09:58:21.000Z | from django.http import HttpResponse
from django.core.cache import cache
from django.contrib.admin.views.decorators import staff_member_required
from speedbar.utils import DETAILS_PREFIX, TRACE_PREFIX
import json
@staff_member_required
def panel(request, trace_id):
details = cache.get(DETAILS_PREFIX + trace_id)
... | 31.346154 | 125 | 0.764417 | 111 | 815 | 5.459459 | 0.45045 | 0.046205 | 0.094059 | 0.072607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011577 | 0.152147 | 815 | 25 | 126 | 32.6 | 0.865412 | 0.050307 | 0 | 0.2 | 0 | 0 | 0.03886 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0.05 | 0.25 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
70dc5e291141409a77c8b71ace53f168b850b0a0 | 3,133 | py | Python | tasks/EPAM/pytasks/task01-01.py | AleksNeStu/projects | 1a4c68dfbdcb77228f0f3617e58fd18fcb1f5dbb | [
"Apache-2.0"
] | 2 | 2022-01-19T18:01:35.000Z | 2022-02-06T06:54:38.000Z | tasks/EPAM/pytasks/task01-01.py | AleksNeStu/projects | 1a4c68dfbdcb77228f0f3617e58fd18fcb1f5dbb | [
"Apache-2.0"
] | null | null | null | tasks/EPAM/pytasks/task01-01.py | AleksNeStu/projects | 1a4c68dfbdcb77228f0f3617e58fd18fcb1f5dbb | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
__author__ = 'AleksNeStu'
#Task01-01: Create function factory `add_factory` using 5 different approaches like this:
# >>> add5 = add_factory(5)
# >>> print add5(10)
# 15
import operator
import functools
from functools import wraps
#Input
x = int(5)
y = int(10)
#Example #1... | 24.669291 | 106 | 0.655282 | 460 | 3,133 | 4.326087 | 0.267391 | 0.028141 | 0.032161 | 0.027136 | 0.091457 | 0.044221 | 0.044221 | 0 | 0 | 0 | 0 | 0.035271 | 0.203639 | 3,133 | 127 | 107 | 24.669291 | 0.762325 | 0.345356 | 0 | 0.141026 | 0 | 0 | 0.067164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038462 | null | null | 0.141026 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
70dfc861f3cd31112eda50aff31909d86997ea8c | 1,103 | py | Python | user-test.py | Gr3atJes/passwordlock | 91395e81c49bfa4377f5dadbbf22ff78cd0bd8a8 | [
"Unlicense"
] | null | null | null | user-test.py | Gr3atJes/passwordlock | 91395e81c49bfa4377f5dadbbf22ff78cd0bd8a8 | [
"Unlicense"
] | null | null | null | user-test.py | Gr3atJes/passwordlock | 91395e81c49bfa4377f5dadbbf22ff78cd0bd8a8 | [
"Unlicense"
] | null | null | null | import unittest
from user import User
class UserTest(unittest.TestCase):
"""
Test class that defines test cases for the contact class behaviours.
Args:
unittest.TestCase : Inherits the testCase class that helps in creating test cases
"""
def setUp(self):
"""
Set up method ... | 27.575 | 89 | 0.629193 | 145 | 1,103 | 4.593103 | 0.37931 | 0.052553 | 0.082583 | 0.045045 | 0.078078 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027466 | 0.273799 | 1,103 | 40 | 90 | 27.575 | 0.803995 | 0.365367 | 0 | 0 | 0 | 0 | 0.07363 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 1 | 0.266667 | false | 0 | 0.133333 | 0 | 0.466667 | 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 |
70e97894857e3ad23d42fc45e855b51f8f4b7607 | 3,841 | py | Python | allure-pytest-bdd/test/conftest.py | Duisus/allure-python | 09402db43da00bb3edb59767d5cc3826457c3f1a | [
"Apache-2.0"
] | 1 | 2021-01-08T12:52:32.000Z | 2021-01-08T12:52:32.000Z | allure-pytest-bdd/test/conftest.py | Duisus/allure-python | 09402db43da00bb3edb59767d5cc3826457c3f1a | [
"Apache-2.0"
] | null | null | null | allure-pytest-bdd/test/conftest.py | Duisus/allure-python | 09402db43da00bb3edb59767d5cc3826457c3f1a | [
"Apache-2.0"
] | null | null | null | from contextlib import contextmanager
import allure_commons
import mock
import pytest
from allure_commons.logger import AllureFileLogger
from allure_commons_test.report import AllureReport
from pytest_bdd import given, when, parsers
from .py_file_builder import PyFileBuilder
from .steps import * # noqa F401 F403
py... | 30.975806 | 101 | 0.689664 | 483 | 3,841 | 5.219462 | 0.21118 | 0.04284 | 0.07735 | 0.111067 | 0.181277 | 0.057914 | 0.025387 | 0.025387 | 0 | 0 | 0 | 0.001918 | 0.185629 | 3,841 | 123 | 102 | 31.227642 | 0.804028 | 0.0151 | 0 | 0.059524 | 0 | 0.011905 | 0.186293 | 0.087854 | 0 | 0 | 0 | 0 | 0.011905 | 1 | 0.178571 | false | 0.107143 | 0.142857 | 0.047619 | 0.380952 | 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 |
70ed5ef21402fd2bd78e589ea662591cb4a5ba5c | 1,927 | py | Python | src/main.py | shingtoli/password_hashing_python | a1a89997cf1cdccde8dbfbd236a61153336cd305 | [
"MIT"
] | null | null | null | src/main.py | shingtoli/password_hashing_python | a1a89997cf1cdccde8dbfbd236a61153336cd305 | [
"MIT"
] | null | null | null | src/main.py | shingtoli/password_hashing_python | a1a89997cf1cdccde8dbfbd236a61153336cd305 | [
"MIT"
] | null | null | null | from cmd import Cmd
from os import urandom
from base64 import b64encode, b64decode
from getpass import getpass
from hashlib import pbkdf2_hmac
from pymongo import MongoClient
def get_database():
client = MongoClient("mongodb://localhost:27017/")
return client["testdb"]
def hash_password(password_input, salt... | 27.140845 | 89 | 0.603529 | 220 | 1,927 | 5.113636 | 0.390909 | 0.04 | 0.053333 | 0.044444 | 0.181333 | 0.129778 | 0.129778 | 0.129778 | 0.129778 | 0.129778 | 0 | 0.025271 | 0.281266 | 1,927 | 70 | 90 | 27.528571 | 0.787004 | 0.015049 | 0 | 0.111111 | 0 | 0 | 0.185127 | 0.013713 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0.259259 | 0.111111 | 0 | 0.351852 | 0.092593 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cb075b344f4e256bc8f46377137b079b70ec5c2d | 1,154 | py | Python | leetcode32.py | aquadrop/leetcode | 683599bcb330687cdc33ebc38aeb453f86f5edd7 | [
"MIT"
] | null | null | null | leetcode32.py | aquadrop/leetcode | 683599bcb330687cdc33ebc38aeb453f86f5edd7 | [
"MIT"
] | null | null | null | leetcode32.py | aquadrop/leetcode | 683599bcb330687cdc33ebc38aeb453f86f5edd7 | [
"MIT"
] | null | null | null | class Solution:
def longestValidParentheses(self, s):
"""
:type s: str
:rtype: int
"""
stack = []
index_stack = []
if len(s) <= 1:
return 0
dp = [0] * len(s)
for i in range(len(s)):
if s[i] == '(':
dp[i] ... | 26.227273 | 62 | 0.322357 | 120 | 1,154 | 2.975 | 0.266667 | 0.196078 | 0.033613 | 0.028011 | 0.028011 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042357 | 0.529463 | 1,154 | 44 | 63 | 26.227273 | 0.615101 | 0.02773 | 0 | 0.205882 | 0 | 0 | 0.032081 | 0.022915 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0 | 0 | 0.117647 | 0.029412 | 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 |
cb11d22ff125464e588a551f5a57d5887bbbdc75 | 885 | py | Python | constants.py | rmeyers/roi_prototype | 7245d5e6f7e142c344d63e5c520a87ca3dc24a28 | [
"MIT"
] | null | null | null | constants.py | rmeyers/roi_prototype | 7245d5e6f7e142c344d63e5c520a87ca3dc24a28 | [
"MIT"
] | null | null | null | constants.py | rmeyers/roi_prototype | 7245d5e6f7e142c344d63e5c520a87ca3dc24a28 | [
"MIT"
] | null | null | null | """ Constants file for Auth0's seed project
"""
ACCESS_TOKEN_KEY = 'access_token'
API_ID = 'API_ID'
APP_JSON_KEY = 'application/json'
AUTH0_CLIENT_ID = 'uL61M0bVYCd72QwsrvGioOHotcRlqw35'
AUTH0_CLIENT_SECRET = '3dtMdBV5P4jtohyJCtwk0P0HBoOk_hv_oHYzEkYtHCOWjFR59MBBphTPIYf6tucz'
# AUTH0_CALLBACK_URL = 'http://127.0.0.1:500... | 42.142857 | 88 | 0.818079 | 108 | 885 | 6.342593 | 0.407407 | 0.032117 | 0.181022 | 0.026277 | 0.178102 | 0.178102 | 0.064234 | 0 | 0 | 0 | 0 | 0.069428 | 0.072316 | 885 | 20 | 89 | 44.25 | 0.764921 | 0.164972 | 0 | 0 | 0 | 0 | 0.556164 | 0.263014 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
cb1338865f00a490e505b19044111f9152dfa028 | 461 | py | Python | tests/app/migrations/0004_imagefieldobject_name.py | dldevinc/paper-uploads | 9414b6e6fbaa52eadacd9852ce3c4d84c6c2c939 | [
"BSD-3-Clause"
] | 3 | 2020-06-05T10:43:05.000Z | 2022-02-22T16:46:16.000Z | tests/app/migrations/0004_imagefieldobject_name.py | dldevinc/paper-uploads | 9414b6e6fbaa52eadacd9852ce3c4d84c6c2c939 | [
"BSD-3-Clause"
] | 2 | 2021-04-03T12:25:20.000Z | 2022-02-02T06:10:46.000Z | tests/app/migrations/0004_imagefieldobject_name.py | dldevinc/paper-uploads | 9414b6e6fbaa52eadacd9852ce3c4d84c6c2c939 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.0.10 on 2020-09-27 07:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0003_filefieldobject_name'),
]
operations = [
migrations.AddField(
model_name='imagefieldobject',
name='name... | 23.05 | 84 | 0.609544 | 48 | 461 | 5.729167 | 0.770833 | 0.058182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068657 | 0.273319 | 461 | 19 | 85 | 24.263158 | 0.752239 | 0.099783 | 0 | 0 | 1 | 0 | 0.125908 | 0.060533 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cb13e94e6649c1949b5603d3d671c9f3fae3c4ba | 678 | py | Python | rental/migrations/0021_paymentmode.py | Peer-Technology/AccomoFinder | cf211115d8c5f9159b60e016c81f4cd50242fae9 | [
"Apache-2.0"
] | null | null | null | rental/migrations/0021_paymentmode.py | Peer-Technology/AccomoFinder | cf211115d8c5f9159b60e016c81f4cd50242fae9 | [
"Apache-2.0"
] | null | null | null | rental/migrations/0021_paymentmode.py | Peer-Technology/AccomoFinder | cf211115d8c5f9159b60e016c81f4cd50242fae9 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.10 on 2022-01-11 14:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rental', '0020_rental_listing_pets_allowed'),
]
operations = [
migrations.CreateModel(
name='PaymentMode',
fields=[... | 29.478261 | 117 | 0.589971 | 71 | 678 | 5.492958 | 0.760563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04898 | 0.277286 | 678 | 22 | 118 | 30.818182 | 0.746939 | 0.067847 | 0 | 0 | 1 | 0 | 0.111111 | 0.050794 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cb17a1ca18875ec3528757d8903b5fd276589f0c | 2,011 | py | Python | tests/integration/preview/trusted_comms/business/insights/test_impressions_rate.py | Atharva2011/twilio-python | 5397b41e0a93fd85d5a39b584289910785e19cd1 | [
"MIT"
] | 1 | 2020-10-29T19:28:25.000Z | 2020-10-29T19:28:25.000Z | tests/integration/preview/trusted_comms/business/insights/test_impressions_rate.py | CostantiniMatteo/twilio-python | 9eee1ca9e73790b12678e9a5660206ea44948d00 | [
"MIT"
] | 1 | 2021-08-21T22:54:01.000Z | 2021-08-23T19:39:42.000Z | tests/integration/preview/trusted_comms/business/insights/test_impressions_rate.py | team-telnyx/twexit-python | 69e11c5c2b5681f9bc410795dda0cf8942219e6f | [
"MIT"
] | null | null | null | # coding=utf-8
r"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from tests import IntegrationTestCase
from tests.holodeck import Request
from twilio.base.exceptions import TwilioException
from twilio.http.response import Response
class ImpressionsRateTestCase(I... | 35.280702 | 135 | 0.533565 | 145 | 2,011 | 7.248276 | 0.503448 | 0.034253 | 0.14843 | 0.038059 | 0.334919 | 0.281637 | 0.19981 | 0.19981 | 0.19981 | 0.19981 | 0 | 0.045843 | 0.36002 | 2,011 | 56 | 136 | 35.910714 | 0.770785 | 0.054202 | 0 | 0.25 | 1 | 0 | 0.152872 | 0.057432 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.291667 | 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 |
cb1edefb5de2a708f513e71a6d5d451cde1fa155 | 604 | py | Python | armulator/armv6/opcodes/arm_instruction_set/arm_data_processing_and_miscellaneous_instructions/arm_miscellaneous_instructions/bkpt_a1.py | matan1008/armulator | 04d24dcec6ab42326018f5e09331e5b4738d6b52 | [
"MIT"
] | 16 | 2018-01-22T14:36:49.000Z | 2021-12-17T15:39:52.000Z | armulator/armv6/opcodes/arm_instruction_set/arm_data_processing_and_miscellaneous_instructions/arm_miscellaneous_instructions/bkpt_a1.py | AhmedMounir/armulator | 04d24dcec6ab42326018f5e09331e5b4738d6b52 | [
"MIT"
] | 3 | 2019-02-19T17:51:47.000Z | 2022-03-31T20:45:21.000Z | armulator/armv6/opcodes/arm_instruction_set/arm_data_processing_and_miscellaneous_instructions/arm_miscellaneous_instructions/bkpt_a1.py | AhmedMounir/armulator | 04d24dcec6ab42326018f5e09331e5b4738d6b52 | [
"MIT"
] | 4 | 2020-06-18T23:51:03.000Z | 2022-02-09T17:43:13.000Z | from armulator.armv6.opcodes.abstract_opcodes.bkpt import Bkpt
from armulator.armv6.opcodes.opcode import Opcode
from bitstring import BitArray
class BkptA1(Bkpt, Opcode):
def __init__(self, instruction):
Opcode.__init__(self, instruction)
Bkpt.__init__(self)
def is_pc_changing_opcode(self):
... | 28.761905 | 84 | 0.672185 | 72 | 604 | 5.402778 | 0.5 | 0.061697 | 0.092545 | 0.128535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070664 | 0.226821 | 604 | 20 | 85 | 30.2 | 0.762313 | 0 | 0 | 0 | 0 | 0 | 0.054636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1875 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cb1f1412bdfc74995f1039346e8261a90cf43055 | 1,159 | py | Python | Bugscan_exploits-master/exp_list/exp-2138.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 11 | 2020-05-30T13:53:49.000Z | 2021-03-17T03:20:59.000Z | Bugscan_exploits-master/exp_list/exp-2138.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 6 | 2020-05-13T03:25:18.000Z | 2020-07-21T06:24:16.000Z | Bugscan_exploits-master/exp_list/exp-2138.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 6 | 2020-05-30T13:53:51.000Z | 2020-12-01T21:44:26.000Z | #!/usr/bin/env python
#-*- coding:utf-8 -*-
#info:http://www.wooyun.org/bugs/wooyun-2015-0140998
import urlparse
def assign(service, arg):
if service == "netoray_nsg":
arr = urlparse.urlparse(arg)
return True, '%s://%s/' % (arr.scheme, arr.netloc)
def audit(arg):
url = arg + "... | 57.95 | 263 | 0.70233 | 167 | 1,159 | 4.724551 | 0.502994 | 0.040558 | 0.027883 | 0.035488 | 0.547529 | 0.547529 | 0.547529 | 0.547529 | 0.547529 | 0.547529 | 0 | 0.140438 | 0.133736 | 1,159 | 20 | 264 | 57.95 | 0.645418 | 0.078516 | 0 | 0 | 0 | 0.133333 | 0.550143 | 0.466094 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cb20887c13b1b05745c228013dd6434f2103a772 | 788 | py | Python | third_party/py/gflags/gflags/flags_unicode_literals_test.py | sevki/bazel | b18915752a69fbbc6ed94e1710198167593565fc | [
"Apache-2.0"
] | 218 | 2015-04-01T07:12:40.000Z | 2021-12-28T05:02:06.000Z | third_party/py/gflags/gflags/flags_unicode_literals_test.py | sevki/bazel | b18915752a69fbbc6ed94e1710198167593565fc | [
"Apache-2.0"
] | 67 | 2022-01-12T18:22:13.000Z | 2022-01-12T18:24:28.000Z | third_party/py/gflags/gflags/flags_unicode_literals_test.py | sevki/bazel | b18915752a69fbbc6ed94e1710198167593565fc | [
"Apache-2.0"
] | 72 | 2015-04-01T07:12:41.000Z | 2021-10-21T00:36:27.000Z | #!/usr/bin/env python
"""Test the use of flags when from __future__ import unicode_literals is on."""
from __future__ import unicode_literals
import unittest
import gflags
gflags.DEFINE_string('seen_in_crittenden', 'alleged mountain lion',
'This tests if unicode input to these functions works.')... | 29.185185 | 79 | 0.728426 | 96 | 788 | 5.65625 | 0.583333 | 0.165746 | 0.209945 | 0.084715 | 0.11418 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175127 | 788 | 26 | 80 | 30.307692 | 0.835385 | 0.119289 | 0 | 0 | 0 | 0 | 0.229651 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.066667 | false | 0 | 0.2 | 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 |
cb21e010caabd813b8170b58b06a91e27fa00084 | 6,557 | py | Python | app/src/thirdparty/telemetry/internal/platform/tracing_agent/chrome_tracing_agent_unittest.py | ta2edchimp/big-rig | d08ffaa34b1496ca6c8e69a8797d280583472156 | [
"Apache-2.0"
] | 925 | 2015-11-06T03:04:46.000Z | 2017-09-16T19:08:43.000Z | app/src/thirdparty/telemetry/internal/platform/tracing_agent/chrome_tracing_agent_unittest.py | ta2edchimp/big-rig | d08ffaa34b1496ca6c8e69a8797d280583472156 | [
"Apache-2.0"
] | 29 | 2015-11-09T17:37:28.000Z | 2017-08-16T17:50:11.000Z | app/src/thirdparty/telemetry/internal/platform/tracing_agent/chrome_tracing_agent_unittest.py | ta2edchimp/big-rig | d08ffaa34b1496ca6c8e69a8797d280583472156 | [
"Apache-2.0"
] | 51 | 2015-11-08T07:06:38.000Z | 2017-08-21T07:27:19.000Z | # Copyright 2014 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 unittest
from telemetry.internal.platform.tracing_agent import chrome_tracing_agent
class FakePlatformBackend(object):
pass
class FakeDevtoolsC... | 37.255682 | 80 | 0.778252 | 686 | 6,557 | 7.22449 | 0.196793 | 0.077482 | 0.098063 | 0.16707 | 0.589588 | 0.544391 | 0.445117 | 0.352906 | 0.264124 | 0.243947 | 0 | 0.021231 | 0.152356 | 6,557 | 175 | 81 | 37.468571 | 0.870457 | 0.096843 | 0 | 0.507813 | 0 | 0 | 0.000508 | 0 | 0 | 0 | 0 | 0 | 0.171875 | 1 | 0.109375 | false | 0.007813 | 0.015625 | 0.015625 | 0.1875 | 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 |
cb22514d7ad66faa4bcb52201d64d104704fdd9e | 7,206 | py | Python | codalab/apps/queues/migrations/0001_initial.py | AIMultimediaLab/AI4Media-EaaS-prototype-Py2-public | 64cd6ac9a56a4e2d40d93608d4289b1a0e50cce7 | [
"Apache-2.0"
] | 333 | 2015-12-29T22:49:40.000Z | 2022-03-27T12:01:57.000Z | codalab/apps/queues/migrations/0001_initial.py | AIMultimediaLab/AI4Media-EaaS-prototype-Py2-public | 64cd6ac9a56a4e2d40d93608d4289b1a0e50cce7 | [
"Apache-2.0"
] | 1,572 | 2015-12-28T21:54:00.000Z | 2022-03-31T13:00:32.000Z | codalab/apps/queues/migrations/0001_initial.py | AIMultimediaLab/AI4Media-EaaS-prototype-Py2-public | 64cd6ac9a56a4e2d40d93608d4289b1a0e50cce7 | [
"Apache-2.0"
] | 107 | 2016-01-08T03:46:07.000Z | 2022-03-16T08:43:57.000Z | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
depends_on = (
("authenz", "0002_auto__add_cluser"),
)
def forwards(self, orm):
# Adding ... | 69.288462 | 205 | 0.586039 | 790 | 7,206 | 5.198734 | 0.178481 | 0.095447 | 0.163623 | 0.233747 | 0.638909 | 0.621865 | 0.607256 | 0.463599 | 0.408327 | 0.20599 | 0 | 0.010394 | 0.18554 | 7,206 | 104 | 206 | 69.288462 | 0.689385 | 0.022898 | 0 | 0.079545 | 0 | 0 | 0.535674 | 0.309267 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0.011364 | 0.045455 | 0 | 0.113636 | 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 |
cb23463daf039573c9ab71428abc77d53f02062a | 1,223 | py | Python | codes/POO_5.py | AlberVini/POO_Training | 91df8eabbce7fab6cf737919f385dfbb6de51a3c | [
"MIT"
] | null | null | null | codes/POO_5.py | AlberVini/POO_Training | 91df8eabbce7fab6cf737919f385dfbb6de51a3c | [
"MIT"
] | null | null | null | codes/POO_5.py | AlberVini/POO_Training | 91df8eabbce7fab6cf737919f385dfbb6de51a3c | [
"MIT"
] | null | null | null | class Escritor:
def __init__(self, nome):
self.nome = nome
self.ferramenta = None
class Caneta:
def __init__(self, marca):
self.marca = marca
self.escrevendo = False
def escrever(self, nome=None):
if nome == None:
self.escrevendo = True
prin... | 23.980392 | 79 | 0.621423 | 140 | 1,223 | 5.357143 | 0.35 | 0.093333 | 0.056 | 0.061333 | 0.122667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.284546 | 1,223 | 50 | 80 | 24.46 | 0.857143 | 0.095666 | 0 | 0.243243 | 0 | 0 | 0.157752 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.135135 | false | 0 | 0 | 0 | 0.297297 | 0.135135 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
cb2a2eb86e6e108616c182ff8d5f2a7cbd626da9 | 4,016 | py | Python | Codigo/get_imagenes_asyncio_35.py | Albertojserr/Aplicaci-n-Web | 14cc0932bf7cfc9dba7ee42a0e26583fbb3d3a42 | [
"Apache-2.0"
] | null | null | null | Codigo/get_imagenes_asyncio_35.py | Albertojserr/Aplicaci-n-Web | 14cc0932bf7cfc9dba7ee42a0e26583fbb3d3a42 | [
"Apache-2.0"
] | null | null | null | Codigo/get_imagenes_asyncio_35.py | Albertojserr/Aplicaci-n-Web | 14cc0932bf7cfc9dba7ee42a0e26583fbb3d3a42 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
import sys
from os import sep
import asyncio
from http.client import HTTPConnection
from contextlib import closing
from urllib.parse import urlparse
from bs4 import BeautifulSoup
from timeit import timeit
class FileSystemWriter:
def __init__(self, filename):
... | 28.48227 | 88 | 0.625249 | 519 | 4,016 | 4.666667 | 0.352601 | 0.029728 | 0.016102 | 0.016515 | 0.208092 | 0.157721 | 0.137903 | 0.117258 | 0.117258 | 0.082576 | 0 | 0.006838 | 0.271663 | 4,016 | 140 | 89 | 28.685714 | 0.821197 | 0.232819 | 0 | 0.140845 | 0 | 0 | 0.093424 | 0.017607 | 0.014085 | 0 | 0 | 0.014286 | 0 | 1 | 0.070423 | false | 0 | 0.126761 | 0 | 0.309859 | 0.042254 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
cb317831ea4eb8b87f6adeaad7d9e4add559c6d7 | 251 | py | Python | Exercises1_12/R-1.7.py | opnsesame/Data-Structures-and-Algorithms-Exercises | 62f4066c6370225a41295ecb08e05258b08f6d7e | [
"Apache-2.0"
] | null | null | null | Exercises1_12/R-1.7.py | opnsesame/Data-Structures-and-Algorithms-Exercises | 62f4066c6370225a41295ecb08e05258b08f6d7e | [
"Apache-2.0"
] | null | null | null | Exercises1_12/R-1.7.py | opnsesame/Data-Structures-and-Algorithms-Exercises | 62f4066c6370225a41295ecb08e05258b08f6d7e | [
"Apache-2.0"
] | null | null | null | #Give a single command that computes the sum from Exercise R-1.6,relying
#on Python's comprehension syntax and the built-in sum function
n = int(input('please input an positive integer:'))
result = sum(i**2 for i in range(1,n) if i&1!=0)
print(result) | 50.2 | 72 | 0.74502 | 49 | 251 | 3.816327 | 0.77551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027907 | 0.143426 | 251 | 5 | 73 | 50.2 | 0.84186 | 0.52988 | 0 | 0 | 0 | 0 | 0.282051 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cb38cedabc97090c3dc3e65dbaca33e5dc67e472 | 714 | py | Python | actions/unregister_ip.py | namachieli/stackstorm-paloalto | 5773ebe8e14d30f45051a515870f262e8d679cf0 | [
"Apache-2.0"
] | null | null | null | actions/unregister_ip.py | namachieli/stackstorm-paloalto | 5773ebe8e14d30f45051a515870f262e8d679cf0 | [
"Apache-2.0"
] | null | null | null | actions/unregister_ip.py | namachieli/stackstorm-paloalto | 5773ebe8e14d30f45051a515870f262e8d679cf0 | [
"Apache-2.0"
] | null | null | null | """
This action is deprecated and will be removed in a future release
"""
from lib.actions import BaseAction
class UnregisterIP(BaseAction):
"""
Unregister IP/tag(s) to a firewall
"""
def run(self, ip, tag, tag_list, firewall):
if not tag and not tag_list:
return False, "You ... | 26.444444 | 94 | 0.654062 | 98 | 714 | 4.663265 | 0.510204 | 0.091904 | 0.052516 | 0.078775 | 0.218818 | 0.218818 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257703 | 714 | 26 | 95 | 27.461538 | 0.862264 | 0.140056 | 0 | 0 | 0 | 0 | 0.226576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
cb3a5a2c89ecdd88c7b088dbc2aa9ac7eb0532b5 | 15,141 | py | Python | project.py | vanshK/ENSC413_Deep_Learning_CNN | 19ad374f179f8d03db1f2479024e9b80cb351f02 | [
"MIT"
] | 1 | 2020-02-21T21:31:21.000Z | 2020-02-21T21:31:21.000Z | project.py | vanshK/ENSC413_Deep_Learning_CNN | 19ad374f179f8d03db1f2479024e9b80cb351f02 | [
"MIT"
] | null | null | null | project.py | vanshK/ENSC413_Deep_Learning_CNN | 19ad374f179f8d03db1f2479024e9b80cb351f02 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
from keras.models import Sequential
from keras.layers import Dense, Dropout, Activation, Flatten, Conv2D, MaxPooling2D, Lambda, MaxPool2D, BatchNormalization
from keras.utils import np_utils
from keras.preprocessing.image import ImageDataGenerator
from keras.optimizers import RMSp... | 44.014535 | 217 | 0.632587 | 2,111 | 15,141 | 4.440076 | 0.241118 | 0.002987 | 0.01419 | 0.020164 | 0.216686 | 0.182439 | 0.146698 | 0.125147 | 0.108076 | 0.090473 | 0 | 0.036848 | 0.238227 | 15,141 | 343 | 218 | 44.142857 | 0.775793 | 0.181164 | 0 | 0.167235 | 0 | 0 | 0.112671 | 0.049938 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.081911 | null | null | 0.027304 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cb3df8a3d41c91834fca0e256317c4fd47cf89fe | 1,220 | py | Python | Web/FGO_func/Notice.py | hgjazhgj/FGO_Automation_WebUI | b22436193b8693ead1c1079f6188e7f5a56e3333 | [
"MIT"
] | 3 | 2022-02-18T08:24:04.000Z | 2022-02-18T08:43:16.000Z | Web/FGO_func/Notice.py | hgjazhgj/FGO_Automation_WebUI | b22436193b8693ead1c1079f6188e7f5a56e3333 | [
"MIT"
] | 1 | 2022-02-22T11:08:42.000Z | 2022-02-22T11:08:42.000Z | Web/FGO_func/Notice.py | hgjazhgj/FGO_Automation_WebUI | b22436193b8693ead1c1079f6188e7f5a56e3333 | [
"MIT"
] | 1 | 2022-02-22T07:27:59.000Z | 2022-02-22T07:27:59.000Z | # -*- coding: utf-8 -*-
"""
Created on Fri Jan 17 10:08:29 2020
@author: McLaren
"""
import Web.FGO_func.Config.FgoConfig as gc
import smtplib
from typing import Tuple
from email.mime.text import MIMEText
subject = "FGO脚本提示信息" # 主题
def config_check() -> Tuple[bool, str]:
if not gc.email_notice:
return... | 27.727273 | 92 | 0.622131 | 171 | 1,220 | 4.385965 | 0.491228 | 0.074667 | 0.045333 | 0.058667 | 0.088 | 0.088 | 0 | 0 | 0 | 0 | 0 | 0.019565 | 0.245902 | 1,220 | 43 | 93 | 28.372093 | 0.795652 | 0.067213 | 0 | 0.068966 | 0 | 0 | 0.221631 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0.068966 | 0.137931 | 0 | 0.413793 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cb48c32719f24a0394539414ac9a3fa5f930a4b9 | 482 | py | Python | emiz/weather/avwx/exc.py | theendsofinvention/emiz | 98b210dd36053ce8062d54e8c501ca4715cd78b5 | [
"MIT"
] | null | null | null | emiz/weather/avwx/exc.py | theendsofinvention/emiz | 98b210dd36053ce8062d54e8c501ca4715cd78b5 | [
"MIT"
] | 5 | 2020-03-24T16:34:15.000Z | 2020-06-26T08:31:46.000Z | emiz/weather/avwx/exc.py | theendsofinvention/emiz | 98b210dd36053ce8062d54e8c501ca4715cd78b5 | [
"MIT"
] | 1 | 2018-04-01T16:02:13.000Z | 2018-04-01T16:02:13.000Z | # coding=utf-8
"""
Exceptions for AVWX package
"""
class AVWXError(Exception):
"""Base AVWX exception"""
class AVWXRequestFailedError(AVWXError):
"""Raised when request failed"""
class StationNotFound(AVWXError):
"""
Raised when a ICAO station isn't found
"""
def __init__(self, icao: str)... | 20.956522 | 100 | 0.6639 | 59 | 482 | 5.288136 | 0.694915 | 0.096154 | 0.121795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002632 | 0.211618 | 482 | 22 | 101 | 21.909091 | 0.818421 | 0.263485 | 0 | 0 | 0 | 0 | 0.257764 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
cb4b813acd5fec29cab10fda394ba90bf57ea71b | 764 | py | Python | aulaspythonbasico/aula24/aula24.py | lel352/Curso-Python | d65484c807db52d57042eee20ccbd3131825fa98 | [
"MIT"
] | 1 | 2021-09-04T14:34:34.000Z | 2021-09-04T14:34:34.000Z | aulaspythonbasico/aula24/aula24.py | lel352/Curso-Python | d65484c807db52d57042eee20ccbd3131825fa98 | [
"MIT"
] | null | null | null | aulaspythonbasico/aula24/aula24.py | lel352/Curso-Python | d65484c807db52d57042eee20ccbd3131825fa98 | [
"MIT"
] | null | null | null | # Aula 24 - Desempacotamento de listas em Python
lista = ['Luiz', 'João', 'Maria', 'Marcos', 'Julia']
n1, n2, n3, n4, n5 = lista # A quantidade variveis tem que ser igual ao quantidad de elementos
print(n2)
v1, *outraLista, ultimoLista = lista # O restante dos valores da lista vai para uma nova lista, precisa us... | 36.380952 | 124 | 0.730366 | 118 | 764 | 4.711864 | 0.652542 | 0.03777 | 0.035971 | 0.05036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0288 | 0.181937 | 764 | 21 | 125 | 36.380952 | 0.8608 | 0.628272 | 0 | 0.166667 | 0 | 0 | 0.086331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.583333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cb4b8306cc8c51ea0ccc4c99b6ade9b29c3d63a3 | 3,221 | py | Python | venv/lib/python3.6/site-packages/zoop/tree.py | ShevchenyaIlya/Tower-Defence-Game | a8551bdd1ed944e4f3db5a338675c693c647ac05 | [
"Apache-2.0"
] | 1 | 2020-09-05T15:31:39.000Z | 2020-09-05T15:31:39.000Z | venv/lib/python3.6/site-packages/zoop/tree.py | ShevchenyaIlya/Tower-Defence-Game | a8551bdd1ed944e4f3db5a338675c693c647ac05 | [
"Apache-2.0"
] | 1 | 2020-04-17T11:05:26.000Z | 2020-05-15T17:48:04.000Z | venv/lib/python3.6/site-packages/zoop/tree.py | ShevchenyaIlya/Tower-Defence-Game | a8551bdd1ed944e4f3db5a338675c693c647ac05 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2012 David Miller (david@deadpansincerity.com)
#
# This file is part of zoop (http://github.com/davidmiller/zoop)
#
# zoop is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version ... | 30.67619 | 77 | 0.588637 | 399 | 3,221 | 4.724311 | 0.408521 | 0.013263 | 0.019098 | 0.030239 | 0.148541 | 0.148541 | 0.099735 | 0.06366 | 0.06366 | 0.06366 | 0 | 0.005877 | 0.313257 | 3,221 | 104 | 78 | 30.971154 | 0.846293 | 0.24837 | 0 | 0 | 0 | 0 | 0.02903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.085714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cb51146309b24f2bb84b91ab16394268821c21df | 4,367 | py | Python | CAIL2020/ydljzs/main.py | ShenDezhou/CAIL | c4cfa98ab4ecedbce34a7a5a186830486047540c | [
"Apache-2.0"
] | 71 | 2020-07-16T01:49:27.000Z | 2022-03-27T16:55:00.000Z | CAIL2020/ydljzs/main.py | ShenDezhou/CAIL | c4cfa98ab4ecedbce34a7a5a186830486047540c | [
"Apache-2.0"
] | 11 | 2020-09-18T14:26:25.000Z | 2022-02-09T23:49:33.000Z | CAIL2020/ydljzs/main.py | ShenDezhou/CAIL | c4cfa98ab4ecedbce34a7a5a186830486047540c | [
"Apache-2.0"
] | 16 | 2020-07-15T07:24:30.000Z | 2022-03-19T05:41:11.000Z | import argparse
import json
import os
from types import SimpleNamespace
import fire
import pandas as pd
import torch
from torch.utils.data import DataLoader
from data import Data
from evaluate import evaluate
from model import BertSupportNetX
from utils import load_torch_model
from utils import get_path,get_csv_logge... | 37.973913 | 107 | 0.633387 | 599 | 4,367 | 4.365609 | 0.287145 | 0.030593 | 0.030593 | 0.018356 | 0.111281 | 0.070746 | 0.025239 | 0.025239 | 0 | 0 | 0 | 0.010684 | 0.249828 | 4,367 | 114 | 108 | 38.307018 | 0.787546 | 0.327227 | 0 | 0.063492 | 0 | 0 | 0.028354 | 0.007953 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cb51f6b9960eeedbab63c9b2b7fb71a8c35e4f81 | 4,304 | py | Python | cogniac/time_range.py | CogniacViSean/cogniac-sdk-py | 11f985a07bbaf5616315abbb0a56c75bc7928472 | [
"Apache-2.0"
] | 7 | 2017-02-07T20:06:07.000Z | 2022-03-28T05:56:54.000Z | cogniac/time_range.py | CogniacViSean/cogniac-sdk-py | 11f985a07bbaf5616315abbb0a56c75bc7928472 | [
"Apache-2.0"
] | 63 | 2017-03-11T23:46:47.000Z | 2022-03-29T20:32:29.000Z | cogniac/time_range.py | CogniacViSean/cogniac-sdk-py | 11f985a07bbaf5616315abbb0a56c75bc7928472 | [
"Apache-2.0"
] | 7 | 2018-01-15T22:49:15.000Z | 2021-11-17T15:47:03.000Z | """
helper functions for dealing with time ranges
Copyright (C) 2018 Cogniac Corporation
"""
from time import time
import datetime
class UnknownTimeframe(Exception):
"""
unknown timeframe specification
"""
timeframes = {
"minute": "last minute",
"hour": "last hour",
"day"... | 36.168067 | 205 | 0.619424 | 562 | 4,304 | 4.565836 | 0.169039 | 0.033125 | 0.056118 | 0.043648 | 0.617693 | 0.551832 | 0.541699 | 0.515978 | 0.515978 | 0.515588 | 0 | 0.022264 | 0.259061 | 4,304 | 118 | 206 | 36.474576 | 0.782377 | 0.006041 | 0 | 0.169014 | 0 | 0 | 0.192541 | 0 | 0 | 0 | 0 | 0.008475 | 0 | 0 | null | null | 0 | 0.028169 | null | null | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cb538c0f594cbda77a02579e48cd3b9d7e2aeadc | 13,237 | py | Python | pycroscopy/io/translators/gwyddion.py | viktorb93/pycroscopy | d59c12ed3865385abdec6633faf12e6c009982ac | [
"MIT"
] | null | null | null | pycroscopy/io/translators/gwyddion.py | viktorb93/pycroscopy | d59c12ed3865385abdec6633faf12e6c009982ac | [
"MIT"
] | null | null | null | pycroscopy/io/translators/gwyddion.py | viktorb93/pycroscopy | d59c12ed3865385abdec6633faf12e6c009982ac | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Jun 01 15:21:46 2018
@author: Daniel Streater, Suhas Somnath
"""
from __future__ import division, print_function, absolute_import, unicode_literals
from os import path, remove
import sys
import numpy as np
import h5py
from sidpy.sid import Translator
from sidpy.hdf.hdf_util... | 40.729231 | 210 | 0.573619 | 1,630 | 13,237 | 4.453988 | 0.22638 | 0.022176 | 0.027548 | 0.019284 | 0.339256 | 0.309917 | 0.249174 | 0.227824 | 0.203581 | 0.161157 | 0 | 0.007686 | 0.331646 | 13,237 | 325 | 211 | 40.729231 | 0.812931 | 0.252172 | 0 | 0.251497 | 0 | 0 | 0.088419 | 0 | 0.02994 | 0 | 0 | 0.012308 | 0 | 1 | 0.047904 | false | 0.011976 | 0.065868 | 0.011976 | 0.155689 | 0.005988 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
cb5f025e655aac68915ddf4978db71763096cbe3 | 1,962 | py | Python | experiments/old/Timescaling/.ipynb_checkpoints/SIREN_time_scaling_differentiable-checkpoint.py | GJBoth/MultiTaskPINN | 8a9bb23b8bfc0d0f678090e015316dbd0cfbf024 | [
"MIT"
] | null | null | null | experiments/old/Timescaling/.ipynb_checkpoints/SIREN_time_scaling_differentiable-checkpoint.py | GJBoth/MultiTaskPINN | 8a9bb23b8bfc0d0f678090e015316dbd0cfbf024 | [
"MIT"
] | null | null | null | experiments/old/Timescaling/.ipynb_checkpoints/SIREN_time_scaling_differentiable-checkpoint.py | GJBoth/MultiTaskPINN | 8a9bb23b8bfc0d0f678090e015316dbd0cfbf024 | [
"MIT"
] | 1 | 2022-02-24T04:27:25.000Z | 2022-02-24T04:27:25.000Z | # General imports
import numpy as np
import torch
# DeepMoD Components
from multitaskpinn import DeepMoD
from multitaskpinn.model.func_approx import NN, Siren
from multitaskpinn.model.library import Library1D
from multitaskpinn.model.constraint import LeastSquares
from multitaskpinn.model.sparse_estimators import Thre... | 36.333333 | 154 | 0.782365 | 282 | 1,962 | 5.319149 | 0.464539 | 0.079333 | 0.058667 | 0.030667 | 0.025333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036866 | 0.115189 | 1,962 | 54 | 155 | 36.333333 | 0.827189 | 0.156473 | 0 | 0 | 0 | 0 | 0.019548 | 0.01405 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.371429 | 0 | 0.371429 | 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 |
cb6193cd32e607ad9513216d07bd233f2fb09236 | 557 | py | Python | [Kaleido-subs]/Dropped/FGO - Absolute Demonic Front - Babylonia/ac_Babylonia_00.py | tuilakhanh/Encoding-Projects | 8b254913457cb28e7d0890ad6b974d0d8f0cbecc | [
"MIT"
] | 57 | 2019-01-31T17:32:46.000Z | 2022-03-23T05:46:51.000Z | [Kaleido-subs]/Dropped/FGO - Absolute Demonic Front - Babylonia/ac_Babylonia_00.py | tuilakhanh/Encoding-Projects | 8b254913457cb28e7d0890ad6b974d0d8f0cbecc | [
"MIT"
] | null | null | null | [Kaleido-subs]/Dropped/FGO - Absolute Demonic Front - Babylonia/ac_Babylonia_00.py | tuilakhanh/Encoding-Projects | 8b254913457cb28e7d0890ad6b974d0d8f0cbecc | [
"MIT"
] | 12 | 2019-04-30T06:16:13.000Z | 2022-03-14T16:15:07.000Z | #!/usr/bin/env python3
import vapoursynth as vs
import audiocutter
import lvsfunc as lvf
from subprocess import call
core = vs.core
ts_in = r'G:/src/[Funimation] Fate Grand Order Zettai Majuu Sensen Babylonia - 00 [1080p].mkv'
src = lvf.src(ts_in)
ac = audiocutter.AudioCutter()
vid = ac.split(src, [(289, src.num_f... | 24.217391 | 149 | 0.746858 | 90 | 557 | 4.411111 | 0.6 | 0.020151 | 0.025189 | 0.075567 | 0.312343 | 0.312343 | 0.312343 | 0.312343 | 0.312343 | 0.312343 | 0 | 0.045455 | 0.131059 | 557 | 22 | 150 | 25.318182 | 0.774793 | 0.037702 | 0 | 0 | 0 | 0.076923 | 0.375701 | 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 |
cb644fdad3ffdc73dfdd5a9116ae193004c1a893 | 283 | py | Python | leetcode/0167_two_sum_II.py | manikandan-ananth/algorithms | 5c9f6b2adb3cdcdb31572bff89c2ff587297225d | [
"MIT"
] | null | null | null | leetcode/0167_two_sum_II.py | manikandan-ananth/algorithms | 5c9f6b2adb3cdcdb31572bff89c2ff587297225d | [
"MIT"
] | null | null | null | leetcode/0167_two_sum_II.py | manikandan-ananth/algorithms | 5c9f6b2adb3cdcdb31572bff89c2ff587297225d | [
"MIT"
] | null | null | null |
def twoSum(self, n: List[int], target: int) -> List[int]:
N = len(n)
l = 0
r = N-1
while l<r:
s = n[l] + n[r]
if s == target:
return [l+1,r+1]
elif s < target:
l += 1
else:
r -= 1
| 17.6875 | 57 | 0.342756 | 42 | 283 | 2.309524 | 0.428571 | 0.14433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043165 | 0.508834 | 283 | 16 | 58 | 17.6875 | 0.654676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.166667 | 0 | 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 |
cb65b64c0dcf2f1510076016daeb07d11e08d3de | 3,033 | py | Python | conans/test/functional/conanfile/deploy_import_file_permission_test.py | laundry-96/conan | fd938f7220ca042d94c42ec5eb607ee69c6785a3 | [
"MIT"
] | 2 | 2020-02-12T09:56:25.000Z | 2022-03-03T06:41:35.000Z | conans/test/functional/conanfile/deploy_import_file_permission_test.py | laundry-96/conan | fd938f7220ca042d94c42ec5eb607ee69c6785a3 | [
"MIT"
] | 6 | 2016-03-08T22:06:45.000Z | 2020-06-02T15:22:19.000Z | conans/test/functional/conanfile/deploy_import_file_permission_test.py | laundry-96/conan | fd938f7220ca042d94c42ec5eb607ee69c6785a3 | [
"MIT"
] | 2 | 2019-08-07T18:15:16.000Z | 2021-08-04T12:33:05.000Z | import os
import stat
import unittest
from conans.test.utils.tools import TestClient
class DeployImportFilePermissionTest(unittest.TestCase):
def setUp(self):
self.file_name = 'myheader.h'
def _client(self, ro_file, ro_cache):
client = TestClient()
if ro_cache:
client.ru... | 33.7 | 113 | 0.662051 | 401 | 3,033 | 4.715711 | 0.187032 | 0.100476 | 0.066631 | 0.080381 | 0.593866 | 0.565309 | 0.534638 | 0.528292 | 0.464833 | 0.464833 | 0 | 0.005885 | 0.215628 | 3,033 | 89 | 114 | 34.078652 | 0.788987 | 0 | 0 | 0.366197 | 0 | 0 | 0.149687 | 0.030992 | 0 | 0 | 0 | 0 | 0.112676 | 1 | 0.183099 | false | 0 | 0.295775 | 0.014085 | 0.521127 | 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 |
cb65b64f3c8a8223abf2b4fc8030e8a907d90251 | 996 | py | Python | GGDBFetch/ggdbfetch/main.py | pdhsulab/GeneGraphDB | f2754a596d08680f7f0b092391653d9dbf477ddd | [
"MIT"
] | 6 | 2021-08-28T07:03:07.000Z | 2022-02-22T03:34:11.000Z | GGDBFetch/ggdbfetch/main.py | pdhsulab/GeneGraphDB | f2754a596d08680f7f0b092391653d9dbf477ddd | [
"MIT"
] | null | null | null | GGDBFetch/ggdbfetch/main.py | pdhsulab/GeneGraphDB | f2754a596d08680f7f0b092391653d9dbf477ddd | [
"MIT"
] | null | null | null | import click
import os
from ggdbfetch.retrieve import _targets_and_baits
import shutil
import sys
@click.group()
def cli():
"""A command line tool to fetch ggdb data"""
pass
@cli.group(short_help='Retrieve stuff.')
def retrieve():
pass
@retrieve.command(short_help='Retrieve by target and baits.')
@click.... | 28.457143 | 87 | 0.702811 | 133 | 996 | 5.172932 | 0.496241 | 0.046512 | 0.065407 | 0.061047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001178 | 0.14759 | 996 | 34 | 88 | 29.294118 | 0.809187 | 0.038153 | 0 | 0.076923 | 0 | 0 | 0.283158 | 0.045263 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0.076923 | 0.192308 | 0 | 0.307692 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cb6b4f902aa7bede5ac20b0516137b0ba1573c73 | 609 | py | Python | mutations/countries.py | socketz/typodetect | fd2a5333172812ca4db8aafda15d35b5a113d465 | [
"MIT"
] | null | null | null | mutations/countries.py | socketz/typodetect | fd2a5333172812ca4db8aafda15d35b5a113d465 | [
"MIT"
] | null | null | null | mutations/countries.py | socketz/typodetect | fd2a5333172812ca4db8aafda15d35b5a113d465 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Mutations of countries """
import json
from auxiliars.constants import tlds_json
def countries(base, possibilities):
with open(tlds_json, encoding='utf-8') as file:
options = json.load(file)
part = base.rsplit('.', 1)
if part[1] in options['tld... | 25.375 | 73 | 0.607553 | 73 | 609 | 5.041096 | 0.520548 | 0.07337 | 0.097826 | 0.171196 | 0.298913 | 0.298913 | 0.298913 | 0.298913 | 0.298913 | 0.298913 | 0 | 0.014831 | 0.224959 | 609 | 23 | 74 | 26.478261 | 0.764831 | 0.108374 | 0 | 0.153846 | 0 | 0 | 0.084112 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cb6d6d55921c3c63a13223e639644cf955fa7080 | 1,052 | py | Python | model/gac.py | hdliu21/openISP | 30b0f20f689ef81df5a34639ccae5adbaa4bfa94 | [
"MIT"
] | 384 | 2019-11-22T03:29:16.000Z | 2022-03-31T06:48:59.000Z | model/gac.py | hdliu21/openISP | 30b0f20f689ef81df5a34639ccae5adbaa4bfa94 | [
"MIT"
] | 12 | 2020-03-23T08:20:28.000Z | 2022-03-25T20:27:40.000Z | model/gac.py | hdliu21/openISP | 30b0f20f689ef81df5a34639ccae5adbaa4bfa94 | [
"MIT"
] | 177 | 2020-02-27T04:47:33.000Z | 2022-03-30T13:22:48.000Z | #!/usr/bin/python
import numpy as np
class GC:
'Gamma Correction'
def __init__(self, img, lut, mode):
self.img = img
self.lut = lut
self.mode = mode
def execute(self):
img_h = self.img.shape[0]
img_w = self.img.shape[1]
img_c = self.img.shape[2]
gc_... | 35.066667 | 68 | 0.463878 | 174 | 1,052 | 2.689655 | 0.218391 | 0.239316 | 0.149573 | 0.119658 | 0.41453 | 0.320513 | 0.301282 | 0.213675 | 0.213675 | 0.213675 | 0 | 0.034796 | 0.371673 | 1,052 | 29 | 69 | 36.275862 | 0.673222 | 0.031369 | 0 | 0 | 0 | 0 | 0.021256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.04 | 0 | 0.2 | 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 |
cb6f22cf5d4eb1d782deacaa08c1c9f04a7dbaa1 | 1,150 | py | Python | bot.py | Anti9929/PRBotAmino | faff7e2a6eb3db8433624f8f4b866b0ad37d6299 | [
"MIT"
] | 3 | 2021-02-09T05:51:06.000Z | 2021-05-09T13:13:38.000Z | bot.py | Anti9929/PRBotAmino | faff7e2a6eb3db8433624f8f4b866b0ad37d6299 | [
"MIT"
] | null | null | null | bot.py | Anti9929/PRBotAmino | faff7e2a6eb3db8433624f8f4b866b0ad37d6299 | [
"MIT"
] | null | null | null | import amino
import time
import sys
from colorama import init, Fore, Style
init()
line = "PRBOTAMINO. SCRIPT BY FATZELF"
for x in line:
print(Fore.GREEN + x, end='')
sys.stdout.flush()
time.sleep(0.1)
print(Fore.RED + '\nEnter your email:' + Fore.YELLOW, end='')
email = input( )
print(Fore.RED + 'E... | 25 | 71 | 0.682609 | 158 | 1,150 | 4.93038 | 0.417722 | 0.057766 | 0.061617 | 0.065469 | 0.102696 | 0.066752 | 0 | 0 | 0 | 0 | 0 | 0.003161 | 0.174783 | 1,150 | 45 | 72 | 25.555556 | 0.817703 | 0 | 0 | 0 | 0 | 0 | 0.110407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.088235 | 0.117647 | 0 | 0.117647 | 0.205882 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cb74897b49020d1ab383cbad0b2ccfedf89c9071 | 5,866 | py | Python | fetching/fetch_report_factory.py | xyla-io/almacen | 7b7f235dc7939777f971f1b5eadd5621e980c15e | [
"MIT"
] | 2 | 2020-10-15T22:12:17.000Z | 2020-10-26T07:17:17.000Z | fetching/fetch_report_factory.py | xyla-io/almacen | 7b7f235dc7939777f971f1b5eadd5621e980c15e | [
"MIT"
] | null | null | null | fetching/fetch_report_factory.py | xyla-io/almacen | 7b7f235dc7939777f971f1b5eadd5621e980c15e | [
"MIT"
] | null | null | null | import tasks
import models
from . import base
from . import fetch_apple
from . import fetch_google
from . import fetch_appsflyer
from . import fetch_facebook
from . import fetch_adjust
from . import fetch_snapchat
from . import fetch_tiktok
from . import fetch_currency_exchange
def report_fetcher(task: tasks.FetchRep... | 62.404255 | 107 | 0.85612 | 716 | 5,866 | 6.713687 | 0.131285 | 0.126482 | 0.092365 | 0.10776 | 0.619929 | 0.594966 | 0.594966 | 0.594966 | 0.594966 | 0.594966 | 0 | 0 | 0.087794 | 5,866 | 93 | 108 | 63.075269 | 0.898337 | 0 | 0 | 0.155556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011111 | false | 0 | 0.122222 | 0 | 0.566667 | 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 |
cb79a4a8ab881b0e7c3276b9d809945acb000a8b | 5,962 | py | Python | Sistema_medico1/Sistema_medico/views.py | teamingsoft01/teamingsoft01 | 3284abc6b4e0d1f2f25c70f5475f0d554ba9bece | [
"CC0-1.0"
] | null | null | null | Sistema_medico1/Sistema_medico/views.py | teamingsoft01/teamingsoft01 | 3284abc6b4e0d1f2f25c70f5475f0d554ba9bece | [
"CC0-1.0"
] | null | null | null | Sistema_medico1/Sistema_medico/views.py | teamingsoft01/teamingsoft01 | 3284abc6b4e0d1f2f25c70f5475f0d554ba9bece | [
"CC0-1.0"
] | null | null | null | # Correr el servidor python manage.py runserver
# Request: Para realizar peticiones al servidor.
# HttpResponse: Para enviar la respuesta usando el protocolo HTTP.
from typing import Text
from django.http import request
from Usuario_PostgreSQL.models import Agenda, Pacientes, Notamedica
from Usuario_PostgreSQL.models... | 40.557823 | 344 | 0.72375 | 578 | 5,962 | 7.418685 | 0.32526 | 0.066698 | 0.079757 | 0.066698 | 0.249767 | 0.129897 | 0.071595 | 0.057369 | 0.037313 | 0.037313 | 0 | 0.000607 | 0.170916 | 5,962 | 146 | 345 | 40.835616 | 0.866882 | 0.250587 | 0 | 0.115385 | 0 | 0 | 0.147112 | 0.017374 | 0 | 0 | 0 | 0.006849 | 0 | 1 | 0.179487 | false | 0 | 0.141026 | 0.102564 | 0.5 | 0.012821 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cb7ec009ad562541e4078b76d8cc51c561d2bcb4 | 1,151 | py | Python | src/python_tools/notebooks/plot_ssl_wrapperpacket.py | jonl112/Software | 61a028a98d5c0dd5e79bf055b231633290ddbf9f | [
"MIT"
] | null | null | null | src/python_tools/notebooks/plot_ssl_wrapperpacket.py | jonl112/Software | 61a028a98d5c0dd5e79bf055b231633290ddbf9f | [
"MIT"
] | null | null | null | src/python_tools/notebooks/plot_ssl_wrapperpacket.py | jonl112/Software | 61a028a98d5c0dd5e79bf055b231633290ddbf9f | [
"MIT"
] | null | null | null | # ---
# jupyter:
# jupytext:
# formats: ipynb,py:light
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.10.1
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# +
from proto.messages_... | 23.489796 | 68 | 0.75934 | 151 | 1,151 | 5.476821 | 0.443709 | 0.084643 | 0.067715 | 0.038694 | 0.053204 | 0.053204 | 0 | 0 | 0 | 0 | 0 | 0.017365 | 0.149435 | 1,151 | 48 | 69 | 23.979167 | 0.827375 | 0.236316 | 0 | 0 | 0 | 0 | 0.046458 | 0.046458 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.368421 | 0 | 0.421053 | 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 |
cb8909632312cd68e65d27ef625684926aa19ae9 | 238 | py | Python | wasatch/__init__.py | adiravishankara/Wasatch.PY | 058b3de2c9399e9aea6347fa360f9c7dbbf296aa | [
"MIT"
] | null | null | null | wasatch/__init__.py | adiravishankara/Wasatch.PY | 058b3de2c9399e9aea6347fa360f9c7dbbf296aa | [
"MIT"
] | null | null | null | wasatch/__init__.py | adiravishankara/Wasatch.PY | 058b3de2c9399e9aea6347fa360f9c7dbbf296aa | [
"MIT"
] | null | null | null | """This package is a driver for Wasatch Photonics devices"""
__version__ = "2.1.8" #This is used by flit and other pypi things
version = "2.1.8" # This is to avoid breaking other files that originally used .version instead of __version__
| 59.5 | 110 | 0.756303 | 40 | 238 | 4.3 | 0.7 | 0.093023 | 0.104651 | 0.116279 | 0.186047 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0.030151 | 0.163866 | 238 | 3 | 111 | 79.333333 | 0.834171 | 0.789916 | 0 | 0 | 0 | 0 | 0.232558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cb8b7249ad3f7a1c476d66a373c784db79924e60 | 746 | py | Python | schevo/test/test_extent_name_override.py | Schevo/schevo | d57a41f8b7b514ed48dc0164dcd3412a89e9873b | [
"MIT"
] | 1 | 2020-09-05T00:47:50.000Z | 2020-09-05T00:47:50.000Z | schevo/test/test_extent_name_override.py | Schevo/schevo | d57a41f8b7b514ed48dc0164dcd3412a89e9873b | [
"MIT"
] | null | null | null | schevo/test/test_extent_name_override.py | Schevo/schevo | d57a41f8b7b514ed48dc0164dcd3412a89e9873b | [
"MIT"
] | null | null | null | """Test for extent name overriding, which is useful for exporting
entity class definitions from a schema."""
# Copyright (c) 2001-2009 ElevenCraft Inc.
# See LICENSE for details.
from schevo.test import CreatesSchema
class BaseOverride(CreatesSchema):
body = '''
class Base(E.Entity):
name = f.stri... | 17.761905 | 65 | 0.643432 | 85 | 746 | 5.576471 | 0.635294 | 0.080169 | 0.097046 | 0.122363 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023297 | 0.252011 | 746 | 41 | 66 | 18.195122 | 0.826165 | 0.319035 | 0 | 0 | 0 | 0 | 0.36747 | 0.042169 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.058824 | false | 0.058824 | 0.058824 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cb8d67e16c5e5aca194fc15e53d203db46d0d97a | 5,914 | py | Python | Decode.py | dizart-y/DexTools | a6a8c36af9726f986a54c55a3b6662f8daf64b56 | [
"Apache-2.0"
] | 2 | 2019-07-19T19:51:06.000Z | 2021-07-12T11:45:21.000Z | Decode.py | dizart-y/DexTools | a6a8c36af9726f986a54c55a3b6662f8daf64b56 | [
"Apache-2.0"
] | null | null | null | Decode.py | dizart-y/DexTools | a6a8c36af9726f986a54c55a3b6662f8daf64b56 | [
"Apache-2.0"
] | 1 | 2019-07-31T19:36:50.000Z | 2019-07-31T19:36:50.000Z | #!/usr/bin/python2
# DiZart-y
# Author: DIcky CaNdRA
# Email: budisulistiyorex@gmail.com
# Support: Volta |PutraDicko|Edi|M.RAIS.S|MR.jihad212|Kusuma
# Hargai Yang Buat Jangan Cuman Bisa Recode Kontol!! Recode? Mandul ^_^
#*/kalau mau di hargai Copyright Yang Bikin
import os
import base64
os.system("clear")
print """... | 35.626506 | 109 | 0.556307 | 689 | 5,914 | 4.766328 | 0.245283 | 0.177832 | 0.066991 | 0.060292 | 0.483557 | 0.483557 | 0.477771 | 0.420828 | 0.288672 | 0.242083 | 0 | 0.053989 | 0.298444 | 5,914 | 165 | 110 | 35.842424 | 0.737527 | 0.042611 | 0 | 0.38806 | 0 | 0 | 0.44191 | 0.01733 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.014925 | null | null | 0.320896 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cb8e90d3dd20bdf9045695ecfc8601e492b49981 | 319 | py | Python | check_environment.py | rscotthurst/pandorable-pandas | 0075d804fde6a5f17edbe0887a20bdca7dafdfce | [
"CC-BY-4.0"
] | 2 | 2020-11-13T17:26:59.000Z | 2020-11-16T17:53:43.000Z | check_environment.py | rscotthurst/pandorable-pandas | 0075d804fde6a5f17edbe0887a20bdca7dafdfce | [
"CC-BY-4.0"
] | 1 | 2020-11-13T21:28:32.000Z | 2020-11-14T20:16:33.000Z | check_environment.py | rscotthurst/pandorable-pandas | 0075d804fde6a5f17edbe0887a20bdca7dafdfce | [
"CC-BY-4.0"
] | 3 | 2020-11-13T06:03:53.000Z | 2020-11-13T19:16:01.000Z | import sys
import importlib
packages = ['pandas', 'IPython', 'seaborn', 'pyarrow']
bad = []
for package in packages:
try:
importlib.import_module(package)
except ImportError:
bad.append("Can't import %s" % package)
else:
if len(bad) > 0:
print('\n'.join(bad))
sys.exit(1)
| 18.764706 | 54 | 0.601881 | 40 | 319 | 4.775 | 0.725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008368 | 0.250784 | 319 | 16 | 55 | 19.9375 | 0.790795 | 0 | 0 | 0 | 0 | 0 | 0.138365 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.384615 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cb973271a91375b8b7b4cd382ff0aca0a22950eb | 1,911 | py | Python | basics/TestList1.py | debjava/py-datastructure | fa3f2d2fb4c53eb2bc91dbad02f4369e8bbdfd0e | [
"MIT"
] | null | null | null | basics/TestList1.py | debjava/py-datastructure | fa3f2d2fb4c53eb2bc91dbad02f4369e8bbdfd0e | [
"MIT"
] | null | null | null | basics/TestList1.py | debjava/py-datastructure | fa3f2d2fb4c53eb2bc91dbad02f4369e8bbdfd0e | [
"MIT"
] | null | null | null | def createList():
fruitsList = ["apple", "banana", "cherry"]
print("Fruit List : ", fruitsList)
# Iterate the list of fruits
for i in fruitsList:
print("Value : ", i)
# Add to fruits list
fruitsList.append("kiwi")
fruitsList.append("Grape")
fruitsList.append("Orange")
... | 32.389831 | 61 | 0.591837 | 220 | 1,911 | 5.086364 | 0.327273 | 0.053619 | 0.035746 | 0.071492 | 0.044683 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00074 | 0.292517 | 1,911 | 58 | 62 | 32.948276 | 0.826923 | 0.185243 | 0 | 0.102564 | 0 | 0 | 0.257239 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0 | 0 | 0.025641 | 0.410256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cb9c821e2f5bd4a3444e345497eeff628be65f82 | 358 | py | Python | lang/python/try-doctest.py | hmisty/coding | 83bc320ba781d40c298a79c1d5b769b3df1bffb5 | [
"Unlicense"
] | 3 | 2017-08-24T01:34:58.000Z | 2021-04-22T09:21:20.000Z | lang/python/try-doctest.py | hmisty/coding | 83bc320ba781d40c298a79c1d5b769b3df1bffb5 | [
"Unlicense"
] | 10 | 2020-01-10T08:39:16.000Z | 2022-02-15T06:57:29.000Z | lang/python/try-doctest.py | hmisty/coding | 83bc320ba781d40c298a79c1d5b769b3df1bffb5 | [
"Unlicense"
] | 1 | 2021-04-22T09:21:24.000Z | 2021-04-22T09:21:24.000Z | #!/usr/bin/env python
#coding:utf-8
"""
doctest demonstration.
how to run:
$ python -m doctest -v try-doctest.py
"""
def multiply(a, b):
"""
Multiply a with b.
>>> multiply(1, 2)
2
>>> multiply('a', 3)
'aaa'
"""
return a * b
"""
main
"""
if __name__ == '__main__':
import docte... | 13.259259 | 41 | 0.555866 | 48 | 358 | 3.979167 | 0.6875 | 0.141361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019011 | 0.265363 | 358 | 26 | 42 | 13.769231 | 0.707224 | 0.494413 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
cba83fd2cd5d2be991762021e15b4ee7702776f2 | 381 | py | Python | app/dependencies/bookings.py | nicolunardi/travela-server | 79537ed428c01bac90d078216c7513411b7695ad | [
"CNRI-Python"
] | null | null | null | app/dependencies/bookings.py | nicolunardi/travela-server | 79537ed428c01bac90d078216c7513411b7695ad | [
"CNRI-Python"
] | null | null | null | app/dependencies/bookings.py | nicolunardi/travela-server | 79537ed428c01bac90d078216c7513411b7695ad | [
"CNRI-Python"
] | null | null | null | from sqlalchemy.orm import Session
from app.errors.exceptions import BOOKING_NOT_FOUND_EXCEPTION
from app.models.bookings import Booking
def get_booking_by_id(booking_id: int, db: Session):
db_booking: Booking = (
db.query(Booking).filter(Booking.id == booking_id).first()
)
if not db_booking:
... | 27.214286 | 66 | 0.750656 | 54 | 381 | 5.037037 | 0.481481 | 0.099265 | 0.110294 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175853 | 381 | 13 | 67 | 29.307692 | 0.866242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.5 | 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 |
cbac8586100b0a8229839ea34339dcf2421358f5 | 146 | py | Python | AtCoder/BeginnerContest132/myans/a.py | scnsh/CompetitiveProgramming | 3f08b4719ffe9511cba6d1ba7909f1899def702b | [
"MIT"
] | 1 | 2019-08-04T23:40:18.000Z | 2019-08-04T23:40:18.000Z | AtCoder/BeginnerContest132/myans/a.py | scnsh/CompetitiveProgramming | 3f08b4719ffe9511cba6d1ba7909f1899def702b | [
"MIT"
] | null | null | null | AtCoder/BeginnerContest132/myans/a.py | scnsh/CompetitiveProgramming | 3f08b4719ffe9511cba6d1ba7909f1899def702b | [
"MIT"
] | null | null | null | S = input()
is_no = False
for s in S:
if S.count(s) != 2:
is_no = True
break
if is_no:
print("No")
else:
print("Yes")
| 13.272727 | 23 | 0.5 | 26 | 146 | 2.692308 | 0.576923 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010526 | 0.349315 | 146 | 10 | 24 | 14.6 | 0.726316 | 0 | 0 | 0 | 0 | 0 | 0.034247 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cbb888fd1016c85548df1f09721863862df6110b | 547 | py | Python | 26_ShortestPath/Step07/gamjapark.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | null | null | null | 26_ShortestPath/Step07/gamjapark.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | 3 | 2020-11-04T05:38:53.000Z | 2021-03-02T02:15:19.000Z | 26_ShortestPath/Step07/gamjapark.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | null | null | null | import sys
V, E = map(int, sys.stdin.readline().split())
max_size = E * (400 * 399) + 1
shortest_path = [[max_size for _ in range(V + 1)] for _ in range(V + 1)]
for e in range(E):
a, b, c = map(int, sys.stdin.readline().split())
shortest_path[a][b] = c
for k in range(1, V + 1):
for i in range(1, V + 1):
for j i... | 30.388889 | 92 | 0.619744 | 112 | 547 | 2.910714 | 0.267857 | 0.257669 | 0.06135 | 0.110429 | 0.404908 | 0.374233 | 0.08589 | 0 | 0 | 0 | 0 | 0.040541 | 0.1883 | 547 | 18 | 93 | 30.388889 | 0.693694 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.066667 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cbc08a985751e3ae851c61d63657cd870307b3b7 | 1,342 | py | Python | video-streaming/video_streaming/ffmpeg/tasks/call_webhook.py | mojtaba-arvin/video-service | d75bd59d8203277fc6a50440d3f0b34693958ee1 | [
"MIT"
] | 9 | 2021-02-21T21:42:19.000Z | 2022-03-10T02:42:47.000Z | video-streaming/video_streaming/ffmpeg/tasks/call_webhook.py | mojtaba-arvin/video-service | d75bd59d8203277fc6a50440d3f0b34693958ee1 | [
"MIT"
] | null | null | null | video-streaming/video_streaming/ffmpeg/tasks/call_webhook.py | mojtaba-arvin/video-service | d75bd59d8203277fc6a50440d3f0b34693958ee1 | [
"MIT"
] | 1 | 2021-08-12T20:32:26.000Z | 2021-08-12T20:32:26.000Z | from abc import ABC
from video_streaming.celery import celery_app
from video_streaming.ffmpeg.constants import TASK_DECORATOR_KWARGS
from .base import BaseStreamingTask
from .mixins import CallWebhookMixin
class CallWebhookTask(
CallWebhookMixin,
BaseStreamingTask, ABC
):
pass
@celery_ap... | 27.958333 | 66 | 0.651267 | 152 | 1,342 | 5.480263 | 0.368421 | 0.07563 | 0.039616 | 0.045618 | 0.252101 | 0.252101 | 0.252101 | 0.252101 | 0.151261 | 0.151261 | 0 | 0 | 0.28763 | 1,342 | 47 | 67 | 28.553191 | 0.871339 | 0.105067 | 0 | 0.1875 | 0 | 0 | 0.010274 | 0 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0.03125 | false | 0.03125 | 0.15625 | 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 |
cbc35dba868cbdd321a3a445686b73e9580d6845 | 1,008 | py | Python | opensanctions/core/collection.py | quantumchips/opensanctions | 56f19dcfea704480e56a311d2a807c8446237457 | [
"MIT"
] | 79 | 2021-02-04T11:20:43.000Z | 2022-01-27T12:04:48.000Z | opensanctions/core/collection.py | quantumchips/opensanctions | 56f19dcfea704480e56a311d2a807c8446237457 | [
"MIT"
] | 101 | 2021-02-12T18:26:16.000Z | 2022-01-27T14:01:53.000Z | opensanctions/core/collection.py | quantumchips/opensanctions | 56f19dcfea704480e56a311d2a807c8446237457 | [
"MIT"
] | 21 | 2021-02-02T12:59:08.000Z | 2022-01-25T15:03:43.000Z | from typing import Any, Dict, Set, cast
from functools import cached_property
from opensanctions.core.dataset import Dataset
from opensanctions.core.source import Source
class Collection(Dataset):
"""A grouping of individual data sources. Data sources are bundled in order
to be more useful for list use."""
... | 31.5 | 85 | 0.660714 | 134 | 1,008 | 4.858209 | 0.380597 | 0.064516 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236111 | 1,008 | 31 | 86 | 32.516129 | 0.845455 | 0.103175 | 0 | 0.090909 | 0 | 0 | 0.019016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.045455 | 0.590909 | 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 |
cbc40a2374436277a036a5236aa129355aae854d | 2,740 | py | Python | syne_tune/search_space.py | awslabs/syne-tune | 1dd8e157477b86db01047a9a7821780ea04389bc | [
"ECL-2.0",
"Apache-2.0"
] | 97 | 2021-11-18T17:14:30.000Z | 2022-03-29T00:33:12.000Z | syne_tune/search_space.py | awslabs/syne-tune | 1dd8e157477b86db01047a9a7821780ea04389bc | [
"ECL-2.0",
"Apache-2.0"
] | 54 | 2021-11-18T17:14:12.000Z | 2022-03-22T08:11:48.000Z | syne_tune/search_space.py | awslabs/syne-tune | 1dd8e157477b86db01047a9a7821780ea04389bc | [
"ECL-2.0",
"Apache-2.0"
] | 9 | 2021-11-29T11:47:32.000Z | 2022-02-24T15:28:11.000Z | # Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 31.494253 | 116 | 0.70438 | 361 | 2,740 | 5.163435 | 0.360111 | 0.082082 | 0.034871 | 0.042918 | 0.194206 | 0.172747 | 0.097639 | 0.097639 | 0.064378 | 0.064378 | 0 | 0.003504 | 0.166788 | 2,740 | 86 | 117 | 31.860465 | 0.812965 | 0.352555 | 0 | 0 | 0 | 0 | 0.141961 | 0.04561 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0 | 0.090909 | 0 | 0.477273 | 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 |
cbd10e96edec126612850ecf5dbaaf9945eb383b | 4,132 | py | Python | epg2xml/providers/naver.py | epg2xml/epg2xml | aeec3548e6124c593ac552879dcddf94f5a7af1c | [
"BSD-3-Clause"
] | 21 | 2021-03-07T06:12:39.000Z | 2022-01-31T08:47:28.000Z | epg2xml/providers/naver.py | epg2xml/epg2xml | aeec3548e6124c593ac552879dcddf94f5a7af1c | [
"BSD-3-Clause"
] | 6 | 2021-03-06T13:03:04.000Z | 2021-12-30T05:19:54.000Z | epg2xml/providers/naver.py | epg2xml/epg2xml | aeec3548e6124c593ac552879dcddf94f5a7af1c | [
"BSD-3-Clause"
] | 7 | 2021-07-23T14:45:53.000Z | 2022-02-05T06:19:09.000Z | import logging
from datetime import datetime, timedelta, date
from xml.sax.saxutils import unescape
from epg2xml.providers import EPGProvider, EPGProgram
from epg2xml.providers import ParserBeautifulSoup as BeautifulSoup
from epg2xml.utils import request_data
log = logging.getLogger(__name__.rsplit(".", maxsp... | 45.406593 | 115 | 0.46757 | 425 | 4,132 | 4.444706 | 0.425882 | 0.023293 | 0.019058 | 0.026998 | 0.195871 | 0.143992 | 0.114346 | 0.114346 | 0.114346 | 0.114346 | 0 | 0.023603 | 0.384802 | 4,132 | 90 | 116 | 45.911111 | 0.719512 | 0.008955 | 0 | 0.17284 | 0 | 0.012346 | 0.185361 | 0.018236 | 0 | 0 | 0 | 0.011111 | 0 | 1 | 0.024691 | false | 0.024691 | 0.074074 | 0 | 0.135802 | 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 |
cbd4d97301fc6341c6e8c329baa4d3b60e17d48c | 706 | py | Python | security/1password/actions.py | circlenaut/solus-3rdparty | 327ed2365fd7f4dde6152c1cb85dd8005e78ebe9 | [
"MIT"
] | null | null | null | security/1password/actions.py | circlenaut/solus-3rdparty | 327ed2365fd7f4dde6152c1cb85dd8005e78ebe9 | [
"MIT"
] | 2 | 2021-03-28T00:11:37.000Z | 2021-03-28T00:13:11.000Z | security/1password/actions.py | circlenaut/Solus-3rdParty | 327ed2365fd7f4dde6152c1cb85dd8005e78ebe9 | [
"MIT"
] | 1 | 2021-09-19T17:09:36.000Z | 2021-09-19T17:09:36.000Z | #!/usr/bin/python
# Created For Solus Operating System
from pisi.actionsapi import get, pisitools, shelltools
NoStrip = ["/opt", "/usr"]
IgnoreAutodep = True
# Should not change.
Suffix = "-1"
target_version = "1password-%s.x64" % get.srcVERSION()
def setup():
shelltools.system("pwd")
shelltools.system("t... | 30.695652 | 117 | 0.699717 | 86 | 706 | 5.732558 | 0.511628 | 0.10142 | 0.131846 | 0.064909 | 0.229209 | 0.150101 | 0 | 0 | 0 | 0 | 0 | 0.028939 | 0.11898 | 706 | 22 | 118 | 32.090909 | 0.763666 | 0.09915 | 0 | 0 | 0 | 0 | 0.36019 | 0.249605 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.416667 | 0.083333 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cbdc8a43d3a94dbcadab33ccbab8537bed7ad5b8 | 7,631 | py | Python | servicerating/migrations/0002_servicerating_dedupe.py | praekeltfoundation/ndoh-control | 56385edfcea58385efe4f7a0e203c0076e7bac9c | [
"BSD-3-Clause"
] | null | null | null | servicerating/migrations/0002_servicerating_dedupe.py | praekeltfoundation/ndoh-control | 56385edfcea58385efe4f7a0e203c0076e7bac9c | [
"BSD-3-Clause"
] | 101 | 2015-01-15T14:01:29.000Z | 2016-10-03T15:21:53.000Z | servicerating/migrations/0002_servicerating_dedupe.py | praekeltfoundation/ndoh-control | 56385edfcea58385efe4f7a0e203c0076e7bac9c | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
class Migration(DataMigration):
def forwards(self, orm):
crontab = orm['djcelery.CrontabSchedule'](
month_of_year="*",
day_of_week="*",
hour="... | 64.669492 | 158 | 0.550649 | 742 | 7,631 | 5.556604 | 0.153639 | 0.093136 | 0.159593 | 0.227989 | 0.66602 | 0.657773 | 0.649042 | 0.621392 | 0.588164 | 0.512976 | 0 | 0.00881 | 0.211637 | 7,631 | 117 | 159 | 65.222222 | 0.676529 | 0.002752 | 0 | 0.252252 | 0 | 0.009009 | 0.547976 | 0.324132 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018018 | false | 0.009009 | 0.036036 | 0 | 0.09009 | 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 |
cbdf632d538c52db8df8dc92bdc4fd5e8aac57f1 | 339 | bzl | Python | images/deps.bzl | lvapeab/feb-stats | e03f991aa563ef0a4774b963f720a2f9923264fa | [
"MIT"
] | null | null | null | images/deps.bzl | lvapeab/feb-stats | e03f991aa563ef0a4774b963f720a2f9923264fa | [
"MIT"
] | 1 | 2021-08-31T02:45:25.000Z | 2021-08-31T02:45:25.000Z | images/deps.bzl | lvapeab/feb-stats | e03f991aa563ef0a4774b963f720a2f9923264fa | [
"MIT"
] | null | null | null | load("@io_bazel_rules_docker//container:container.bzl", "container_pull")
def image_deps():
container_pull(
name = "python3.7",
digest = "sha256:57c7d7161fdaa79b61f107b8a480c50657d64dca37295d67db2f675abe38b45a",
registry = "index.docker.io",
repository = "library/python",
ta... | 30.818182 | 91 | 0.663717 | 32 | 339 | 6.84375 | 0.78125 | 0.118721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178439 | 0.20649 | 339 | 10 | 92 | 33.9 | 0.635688 | 0 | 0 | 0 | 0 | 0 | 0.516224 | 0.348083 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1dacc2311e3045bd886ed8c27fc814f0901dd2aa | 2,298 | py | Python | sobchak/report.py | JorisHartog/sobchak | 132347310fb0aad971c304b2b2bddd0367fd1288 | [
"MIT"
] | null | null | null | sobchak/report.py | JorisHartog/sobchak | 132347310fb0aad971c304b2b2bddd0367fd1288 | [
"MIT"
] | 2 | 2021-06-02T02:09:24.000Z | 2021-07-07T15:41:01.000Z | sobchak/report.py | JorisHartog/sobchak | 132347310fb0aad971c304b2b2bddd0367fd1288 | [
"MIT"
] | null | null | null | import os
import logging
class Report(object):
"""Report
A Report object generates a report in the form of a HTML-page of a list of
hypervisors and information about how certain migrations improve the
resource distribution.
"""
def __init__(self, inventory, template='template.html'):
... | 26.72093 | 78 | 0.562663 | 263 | 2,298 | 4.809886 | 0.376426 | 0.047431 | 0.045059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006989 | 0.315057 | 2,298 | 85 | 79 | 27.035294 | 0.796696 | 0.174064 | 0 | 0.044444 | 1 | 0 | 0.132578 | 0.01813 | 0 | 0 | 0 | 0 | 0 | 1 | 0.177778 | false | 0 | 0.044444 | 0.044444 | 0.333333 | 0.022222 | 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 |
1dae36153804ed87790a48f7e5fa0087da95f2fa | 1,627 | py | Python | event_listener.py | masich/queueing-theory | 333a20382584af97bb1e73291c7bb2cdd82107f6 | [
"MIT"
] | null | null | null | event_listener.py | masich/queueing-theory | 333a20382584af97bb1e73291c7bb2cdd82107f6 | [
"MIT"
] | null | null | null | event_listener.py | masich/queueing-theory | 333a20382584af97bb1e73291c7bb2cdd82107f6 | [
"MIT"
] | null | null | null | from threading import Lock
from typing import Optional, Iterable
from models.client import ClientListener, Client
class ListenerManager(ClientListener):
def __init__(self, listeners: Optional[Iterable[ClientListener]] = None):
self._lock = Lock()
self._listeners = list(listeners or [])
def a... | 33.204082 | 77 | 0.642286 | 185 | 1,627 | 5.4 | 0.194595 | 0.13013 | 0.084084 | 0.112112 | 0.48048 | 0.48048 | 0.48048 | 0.48048 | 0.48048 | 0.48048 | 0 | 0 | 0.275968 | 1,627 | 48 | 78 | 33.895833 | 0.848048 | 0 | 0 | 0.378378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.243243 | false | 0 | 0.081081 | 0 | 0.351351 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1db24f8faf0eb528bce4340d612930362f58a3ae | 6,206 | py | Python | ReanalysisRetreival_orig/Chuckchi_Winds/Chuckchi_Winds_NARR_model_prep_Vladd.py | shaunwbell/FOCI_Analysis | dde4a5f0badd76fe5719575d5c138813ab156b70 | [
"MIT"
] | null | null | null | ReanalysisRetreival_orig/Chuckchi_Winds/Chuckchi_Winds_NARR_model_prep_Vladd.py | shaunwbell/FOCI_Analysis | dde4a5f0badd76fe5719575d5c138813ab156b70 | [
"MIT"
] | null | null | null | ReanalysisRetreival_orig/Chuckchi_Winds/Chuckchi_Winds_NARR_model_prep_Vladd.py | shaunwbell/FOCI_Analysis | dde4a5f0badd76fe5719575d5c138813ab156b70 | [
"MIT"
] | null | null | null | #!/usr/bin/env
"""
Chuckchi_Winds_NARR_model_prep.py
Retrieve NARR winds for one locations
Icy Cape Line, Ckip2
Latitude = 70.8401 Longitude = 163.2054
Filter NARR winds with a triangular filter (1/4, 1/2, 1/4) and output every 3hrs
Provide U, V
Save in EPIC NetCDF standard
"""
#System Stack
import datetim... | 31.343434 | 124 | 0.627941 | 845 | 6,206 | 4.407101 | 0.305325 | 0.023631 | 0.020945 | 0.02739 | 0.294844 | 0.250269 | 0.236305 | 0.236305 | 0.236305 | 0.236305 | 0 | 0.051861 | 0.229455 | 6,206 | 197 | 125 | 31.502538 | 0.726893 | 0.086368 | 0 | 0.212389 | 0 | 0 | 0.062373 | 0.007338 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035398 | null | null | 0.035398 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1db84a260fb5c054e6415b1758bfc4b648da2bca | 499 | py | Python | tests/test_validate_variable_names.py | Anteru/nsl | ac3b0d5ae63c9c5b9ffa603f835f799e2e727496 | [
"BSD-2-Clause"
] | null | null | null | tests/test_validate_variable_names.py | Anteru/nsl | ac3b0d5ae63c9c5b9ffa603f835f799e2e727496 | [
"BSD-2-Clause"
] | null | null | null | tests/test_validate_variable_names.py | Anteru/nsl | ac3b0d5ae63c9c5b9ffa603f835f799e2e727496 | [
"BSD-2-Clause"
] | null | null | null | from nsl.passes.ValidateVariableNames import (
ValidateVariableNamesVisitor
)
import nsl.ast, nsl.types
import nsl.Errors
class TestValidateVariableNames:
def testReusingArgumentNameForLocalVariableFails(self):
f = nsl.ast.Function("foo",
[nsl.ast.Argument(nsl.types.Integer (), "a")],
... | 26.263158 | 59 | 0.661323 | 48 | 499 | 6.875 | 0.5625 | 0.072727 | 0.090909 | 0.09697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228457 | 499 | 19 | 60 | 26.263158 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.01 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0.066667 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1db9bfd1d674ae99642f81688fe6d29d19b672f8 | 1,179 | py | Python | luminoth/cli.py | czbiohub/luminoth | 3b4d57a9b4c3704c64816bbcbd6126a2ac23a069 | [
"BSD-3-Clause"
] | 3 | 2020-01-29T12:04:28.000Z | 2021-04-05T16:30:57.000Z | luminoth/cli.py | czbiohub/luminoth-uv-imaging | 3b4d57a9b4c3704c64816bbcbd6126a2ac23a069 | [
"BSD-3-Clause"
] | 9 | 2019-11-20T16:57:45.000Z | 2021-03-18T06:57:10.000Z | luminoth/cli.py | czbiohub/luminoth | 3b4d57a9b4c3704c64816bbcbd6126a2ac23a069 | [
"BSD-3-Clause"
] | null | null | null | """Simple command line utility called `lumi`.
The cli is composed of subcommands that are able to handle different tasks
needed for training and using deep learning models.
It's base subcommands are:
train: For training locally.
cloud: For traning and monitoring in the cloud.
dataset: For modifying and tr... | 24.061224 | 74 | 0.7905 | 171 | 1,179 | 5.269006 | 0.421053 | 0.08657 | 0.187569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128923 | 1,179 | 48 | 75 | 24.5625 | 0.877313 | 0.285835 | 0 | 0 | 0 | 0 | 0.009581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0.033333 | 0.233333 | 0 | 0.266667 | 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 |
1dbec7cc97e63190e5e93c1e3589b37dd03b05b5 | 828 | py | Python | crashreporter_hq/models/alias.py | lobocv/crashreporter-hq | 9412621bbe0f947ef3946fdf5bb2025041ba7495 | [
"MIT"
] | null | null | null | crashreporter_hq/models/alias.py | lobocv/crashreporter-hq | 9412621bbe0f947ef3946fdf5bb2025041ba7495 | [
"MIT"
] | null | null | null | crashreporter_hq/models/alias.py | lobocv/crashreporter-hq | 9412621bbe0f947ef3946fdf5bb2025041ba7495 | [
"MIT"
] | null | null | null | from sqlalchemy import Column, Integer, String, ForeignKey
from sqlalchemy.orm import relationship
from .. import db
class Alias(db.Model):
__tablename__ = 'alias'
id = Column(Integer, primary_key=True)
alias = Column(String(50), unique=False, default='')
uuid_id = Column(Integer, ForeignKey('uuid.i... | 31.846154 | 94 | 0.678744 | 103 | 828 | 5.242718 | 0.407767 | 0.096296 | 0.083333 | 0.092593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002999 | 0.194444 | 828 | 26 | 95 | 31.846154 | 0.806597 | 0 | 0 | 0 | 0 | 0 | 0.060314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.15 | 0.1 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1dc9da4db7b4c8a0aa03eee112b9ae72e4a92734 | 336 | py | Python | src/separate_torrent_types/separate_torrent_types.py | jolitp/automation_scripts | ba0c94e5212f0069b89f75a48fe2e2aafb5c921c | [
"MIT"
] | null | null | null | src/separate_torrent_types/separate_torrent_types.py | jolitp/automation_scripts | ba0c94e5212f0069b89f75a48fe2e2aafb5c921c | [
"MIT"
] | null | null | null | src/separate_torrent_types/separate_torrent_types.py | jolitp/automation_scripts | ba0c94e5212f0069b89f75a48fe2e2aafb5c921c | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
"""
separate folders and files into categories
"""
import os
def main():
cwd = os.getcwd()
print(cwd)
...
if __name__ == "__main__":
print()
msg = "START separate_torrent_types START"
print(msg)
main()
msg = "END separate_torrent_types END"
print(msg)
... | 14.608696 | 46 | 0.598214 | 41 | 336 | 4.609756 | 0.585366 | 0.126984 | 0.21164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004032 | 0.261905 | 336 | 23 | 47 | 14.608696 | 0.758065 | 0.193452 | 0 | 0.428571 | 0 | 0 | 0.272727 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.142857 | 0.357143 | 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 |
1dcc4775e446d4adaeb2ee2146505c40ba3a50fa | 18,510 | py | Python | utils/optimistic_scores.py | broadinstitute/ebola-predictor | 5c0ea769156f315f0a1c2ef7f947b7fb5fde47fb | [
"BSD-2-Clause"
] | 12 | 2015-06-13T22:13:51.000Z | 2022-02-12T16:18:14.000Z | utils/optimistic_scores.py | broadinstitute/ebola-predictor | 5c0ea769156f315f0a1c2ef7f947b7fb5fde47fb | [
"BSD-2-Clause"
] | null | null | null | utils/optimistic_scores.py | broadinstitute/ebola-predictor | 5c0ea769156f315f0a1c2ef7f947b7fb5fde47fb | [
"BSD-2-Clause"
] | 10 | 2015-05-31T21:29:39.000Z | 2022-02-12T12:35:41.000Z | """
Applies Harrel's bootstrap method to calculate optimistic-corrected scores
Harrell FE Jr, Lee KL, Mark DB. Multivariable prognostic models: issues in developing models,
evaluating assumptions and adequacy, and measuring and reducing errors. Stat Med. 1996;15(4):361-387
Brier score backported from 0.16.1 to work w... | 43.65566 | 157 | 0.570827 | 2,391 | 18,510 | 4.226683 | 0.179423 | 0.015436 | 0.017811 | 0.015238 | 0.366416 | 0.321294 | 0.235899 | 0.214229 | 0.168415 | 0.155254 | 0 | 0.016665 | 0.31275 | 18,510 | 423 | 158 | 43.758865 | 0.777769 | 0.045489 | 0 | 0.170819 | 0 | 0 | 0.115658 | 0.011225 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02847 | null | null | 0.021352 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1dcf85fa7dac046b3ed341347a07afc66a4565ea | 772 | py | Python | utils/validations.py | ebar0n/palermo-coin | 63dc14fce31fbeae50ec7ebf5ea97efbb1ec18fd | [
"MIT"
] | null | null | null | utils/validations.py | ebar0n/palermo-coin | 63dc14fce31fbeae50ec7ebf5ea97efbb1ec18fd | [
"MIT"
] | 15 | 2019-05-13T23:40:06.000Z | 2022-03-11T23:39:57.000Z | utils/validations.py | ebar0n/leviatan-backend | 63dc14fce31fbeae50ec7ebf5ea97efbb1ec18fd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import re
from django.utils.translation import ugettext as _
def validate_password(password):
"""
Validate whether the password meets all validator requirements.
If the password is valid, return ``None``.
If the password is invalid, raise ValidationError with all error message... | 26.62069 | 78 | 0.642487 | 102 | 772 | 4.803922 | 0.519608 | 0.097959 | 0.130612 | 0.079592 | 0.257143 | 0.2 | 0.134694 | 0 | 0 | 0 | 0 | 0.011785 | 0.23057 | 772 | 28 | 79 | 27.571429 | 0.813131 | 0.264249 | 0 | 0 | 0 | 0 | 0.244485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.357143 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1dd2683977b84c1dd7c7fd699be2bf992eb44d73 | 1,287 | py | Python | repository/forms.py | christianwgd/django_restic_gui | c9f589ad01d30fa4dc47a4b33e166ef3ff9a9f4a | [
"MIT"
] | 5 | 2020-12-23T16:20:26.000Z | 2022-01-03T15:43:12.000Z | repository/forms.py | christianwgd/django_restic_gui | c9f589ad01d30fa4dc47a4b33e166ef3ff9a9f4a | [
"MIT"
] | 5 | 2020-10-28T06:12:08.000Z | 2021-09-23T15:46:33.000Z | repository/forms.py | christianwgd/django_restic_gui | c9f589ad01d30fa4dc47a4b33e166ef3ff9a9f4a | [
"MIT"
] | 1 | 2020-11-23T20:22:23.000Z | 2020-11-23T20:22:23.000Z | from bootstrap_modal_forms.forms import BSModalForm
from django import forms
from django.core.exceptions import ValidationError
from django.utils.translation import gettext_lazy as _
from repository.models import Repository
class RepositoryForm(forms.ModelForm):
password2 = forms.CharField(
max_length='1... | 29.930233 | 63 | 0.644911 | 129 | 1,287 | 6.310078 | 0.527132 | 0.054054 | 0.034398 | 0.071253 | 0.083538 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009494 | 0.263403 | 1,287 | 43 | 64 | 29.930233 | 0.849156 | 0 | 0 | 0 | 0 | 0 | 0.147516 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0.323529 | 0.147059 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1dd6699f80dfd0020a4c39f8e0a1503c1639974a | 9,249 | py | Python | bank_server/bank_server/db.py | maxCut/0xBU_SSS_ATM | 5274aa837a4f446dfc3f90ff86b35ad1c413483f | [
"Apache-2.0"
] | null | null | null | bank_server/bank_server/db.py | maxCut/0xBU_SSS_ATM | 5274aa837a4f446dfc3f90ff86b35ad1c413483f | [
"Apache-2.0"
] | null | null | null | bank_server/bank_server/db.py | maxCut/0xBU_SSS_ATM | 5274aa837a4f446dfc3f90ff86b35ad1c413483f | [
"Apache-2.0"
] | 1 | 2018-09-10T05:54:53.000Z | 2018-09-10T05:54:53.000Z | """ DB
This module implements an interface to the bank_server database.
It uses a mutex because both the bank_interface and admin_interface
need access to database. (sqlite3 does not gurantee concurrent operations)"""
import sqlite3
import os
from datetime import timedelta, datetime
from binascii import hexlify
clas... | 32.00346 | 123 | 0.571089 | 1,146 | 9,249 | 4.446771 | 0.153578 | 0.047096 | 0.026491 | 0.047096 | 0.477826 | 0.398548 | 0.374411 | 0.322802 | 0.270801 | 0.256868 | 0 | 0.006056 | 0.303709 | 9,249 | 288 | 124 | 32.114583 | 0.785248 | 0.023138 | 0 | 0.423729 | 0 | 0 | 0.161494 | 0.004866 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022599 | null | null | 0.045198 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1dd7032f695ed1d9746b8f8fae422fd4dc764175 | 814 | py | Python | InvenTree/plugin/migrations/0001_initial.py | carlos-riquelme/InvenTree | 724dd2a9c82e4c10e14bd6aba8f48553b183fef9 | [
"MIT"
] | 5 | 2020-08-14T06:18:57.000Z | 2022-01-11T01:22:56.000Z | InvenTree/plugin/migrations/0001_initial.py | carlos-riquelme/InvenTree | 724dd2a9c82e4c10e14bd6aba8f48553b183fef9 | [
"MIT"
] | 27 | 2021-04-12T22:05:39.000Z | 2022-03-13T20:33:54.000Z | InvenTree/plugin/migrations/0001_initial.py | carlos-riquelme/InvenTree | 724dd2a9c82e4c10e14bd6aba8f48553b183fef9 | [
"MIT"
] | 1 | 2021-12-22T12:22:21.000Z | 2021-12-22T12:22:21.000Z | # Generated by Django 3.2.5 on 2021-11-11 23:37
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='PluginConfig',
fields=[
('id', models.AutoF... | 33.916667 | 141 | 0.619165 | 94 | 814 | 5.244681 | 0.553191 | 0.089249 | 0.060852 | 0.073022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034258 | 0.246929 | 814 | 23 | 142 | 35.391304 | 0.769984 | 0.055283 | 0 | 0 | 1 | 0 | 0.129074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.3125 | 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 |
1de1070f968cc0864a9c538a950e26f3972ac5ac | 757 | py | Python | map_editor/setting.py | paoli7612/TileGame-Lua | 894fa91a0f06bfeddf0acaea493ad6f0fc0d484d | [
"BSD-2-Clause"
] | 5 | 2018-04-20T14:27:17.000Z | 2018-05-03T07:04:38.000Z | map_editor/setting.py | paoli7612/TileGame-Lua | 894fa91a0f06bfeddf0acaea493ad6f0fc0d484d | [
"BSD-2-Clause"
] | 1 | 2018-04-27T22:34:32.000Z | 2018-04-27T22:34:32.000Z | map_editor/setting.py | paoli7612/TileGame-Lua | 894fa91a0f06bfeddf0acaea493ad6f0fc0d484d | [
"BSD-2-Clause"
] | 2 | 2018-04-29T11:30:49.000Z | 2018-04-29T12:02:19.000Z | from screeninfo import get_monitors
width = 0
for m in get_monitors():
if width<m.width: width=m.width
class Setting:
TITLE = "Map editor - %s"
TILE = TILE_X, TILE_Y = 40,25
TILE_SIZE = width // 65
WIDTH = TILE_X * TILE_SIZE
HEIGHT = TILE_Y * TILE_SIZE
SIZE = WIDTH, HEIGHT
LUA_FORMAT ... | 22.939394 | 63 | 0.603699 | 113 | 757 | 3.840708 | 0.40708 | 0.110599 | 0.050691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068015 | 0.281374 | 757 | 32 | 64 | 23.65625 | 0.729779 | 0 | 0 | 0 | 0 | 0 | 0.036988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.68 | 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 |
1de33941c205f3c97982713c1fd7c6400ac26867 | 63,001 | py | Python | localstack/aws/api/route53/__init__.py | TheRakeshPurohit/localstack | 063e07827934a7c7ff00e6d7cf6e243bcce0eb99 | [
"Apache-2.0"
] | null | null | null | localstack/aws/api/route53/__init__.py | TheRakeshPurohit/localstack | 063e07827934a7c7ff00e6d7cf6e243bcce0eb99 | [
"Apache-2.0"
] | null | null | null | localstack/aws/api/route53/__init__.py | TheRakeshPurohit/localstack | 063e07827934a7c7ff00e6d7cf6e243bcce0eb99 | [
"Apache-2.0"
] | null | null | null | import sys
from datetime import datetime
from typing import List, Optional
if sys.version_info >= (3, 8):
from typing import TypedDict
else:
from typing_extensions import TypedDict
from localstack.aws.api import RequestContext, ServiceException, ServiceRequest, handler
ARN = str
AWSAccountID = str
AlarmName ... | 27.332321 | 99 | 0.762877 | 5,034 | 63,001 | 9.413786 | 0.153556 | 0.032202 | 0.043702 | 0.061702 | 0.376395 | 0.248644 | 0.194982 | 0.163941 | 0.140138 | 0.115512 | 0 | 0.003744 | 0.16914 | 63,001 | 2,304 | 100 | 27.344184 | 0.901576 | 0 | 0 | 0.443896 | 0 | 0 | 0.050507 | 0.01927 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043157 | false | 0.007398 | 0.003699 | 0 | 0.643033 | 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 |
1de49484fe22f8a30d990affb2bf2ff2e3c24d00 | 5,852 | py | Python | Dalitz_simplified/p_value_scoring_object.py | weissercn/MLTools | 75dc566947437249ad077939941839126eb20016 | [
"MIT"
] | null | null | null | Dalitz_simplified/p_value_scoring_object.py | weissercn/MLTools | 75dc566947437249ad077939941839126eb20016 | [
"MIT"
] | null | null | null | Dalitz_simplified/p_value_scoring_object.py | weissercn/MLTools | 75dc566947437249ad077939941839126eb20016 | [
"MIT"
] | null | null | null | from __future__ import print_function
import sys
import numpy as np
from scipy import stats
def p_value_scoring_object(clf, X, y):
"""
p_value_getter is a scoring callable that returns the negative p value from the KS test on the prediction probabilities for the particle and antiparticle samples.
"""
#Finding... | 34.222222 | 189 | 0.637902 | 988 | 5,852 | 3.589069 | 0.190283 | 0.047377 | 0.025381 | 0.042865 | 0.628032 | 0.593063 | 0.551325 | 0.529611 | 0.529611 | 0.529611 | 0 | 0.025524 | 0.216678 | 5,852 | 170 | 190 | 34.423529 | 0.748037 | 0.261962 | 0 | 0.393258 | 0 | 0.011236 | 0.120666 | 0.021231 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.089888 | null | null | 0.157303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1df03d14e55586bd789d3ca6824cb164acf43813 | 2,010 | py | Python | old/unitesting.py | jverbraeken/dtw-test | b64497e5eb32bab843539b9fd9b81999cb00365d | [
"Apache-2.0"
] | null | null | null | old/unitesting.py | jverbraeken/dtw-test | b64497e5eb32bab843539b9fd9b81999cb00365d | [
"Apache-2.0"
] | null | null | null | old/unitesting.py | jverbraeken/dtw-test | b64497e5eb32bab843539b9fd9b81999cb00365d | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python
import sys
sys.path.append("..")
sys.path.append(".")
import time
import dtw
from data.syntheticdata import *
ok = True
print "Please wait a few minutes..."
n=10
querydataset = [randomwalk(n) for i in range(100)]
trainingdataset = [randomwalk(n) for i in range(1000)]
reducdim = 10
for reduc... | 29.130435 | 140 | 0.671642 | 292 | 2,010 | 4.606164 | 0.273973 | 0.036431 | 0.026766 | 0.040892 | 0.457993 | 0.359851 | 0.233457 | 0.233457 | 0.233457 | 0.233457 | 0 | 0.029878 | 0.18408 | 2,010 | 69 | 141 | 29.130435 | 0.790244 | 0.010448 | 0 | 0.390625 | 0 | 0 | 0.074409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.140625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1dfa119aab61e8b7f892dd8b7805000a07e557ac | 3,190 | py | Python | bookorbooks/quiz/migrations/0001_initial.py | talhakoylu/SummerInternshipBackend | 4ecedf5c97f73e3d32d5a534769e86aac3e4b6d3 | [
"MIT"
] | 1 | 2021-08-10T22:24:17.000Z | 2021-08-10T22:24:17.000Z | bookorbooks/quiz/migrations/0001_initial.py | talhakoylu/SummerInternshipBackend | 4ecedf5c97f73e3d32d5a534769e86aac3e4b6d3 | [
"MIT"
] | null | null | null | bookorbooks/quiz/migrations/0001_initial.py | talhakoylu/SummerInternshipBackend | 4ecedf5c97f73e3d32d5a534769e86aac3e4b6d3 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-07-29 13:30
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('book', '0003_readinghistory_counter'),
]
operations = [
migrations.CreateModel(
... | 51.451613 | 166 | 0.605016 | 327 | 3,190 | 5.700306 | 0.299694 | 0.141631 | 0.067597 | 0.080472 | 0.498927 | 0.486588 | 0.486588 | 0.445815 | 0.421137 | 0.421137 | 0 | 0.012998 | 0.252351 | 3,190 | 61 | 167 | 52.295082 | 0.768553 | 0.014107 | 0 | 0.444444 | 1 | 0 | 0.209672 | 0.008591 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 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 |
1dfb081bf4e9a5b15e574dfc817c45ebc9dbf6cb | 1,723 | py | Python | bin/p3pdbcountbuilt.py | emkailu/PAT3DEM | 74e7a0f30179e49ea5c7da1bea893e21a3ed601a | [
"MIT"
] | null | null | null | bin/p3pdbcountbuilt.py | emkailu/PAT3DEM | 74e7a0f30179e49ea5c7da1bea893e21a3ed601a | [
"MIT"
] | null | null | null | bin/p3pdbcountbuilt.py | emkailu/PAT3DEM | 74e7a0f30179e49ea5c7da1bea893e21a3ed601a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import sys
import argparse
import pat3dem.pdb as p3p
import string
def main():
progname = os.path.basename(sys.argv[0])
usage = progname + """ [options] <pdbs>
Given pdb files, report the built residues in csv files.
"""
args_def = {}
parser = argparse.ArgumentParser()
parser... | 26.507692 | 101 | 0.596053 | 274 | 1,723 | 3.656934 | 0.412409 | 0.007984 | 0.027944 | 0.027944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021037 | 0.22751 | 1,723 | 64 | 102 | 26.921875 | 0.731781 | 0.133488 | 0 | 0.072727 | 0 | 0 | 0.138233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.036364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
380269179ae781b7f8743a2681449f105fc5f807 | 3,579 | py | Python | src/main_MultivariatePolyphonic.py | Wehzie/master-thesis | 40593b083c3b2ea9a547f4c925d66a50039f7340 | [
"BSD-3-Clause"
] | null | null | null | src/main_MultivariatePolyphonic.py | Wehzie/master-thesis | 40593b083c3b2ea9a547f4c925d66a50039f7340 | [
"BSD-3-Clause"
] | null | null | null | src/main_MultivariatePolyphonic.py | Wehzie/master-thesis | 40593b083c3b2ea9a547f4c925d66a50039f7340 | [
"BSD-3-Clause"
] | null | null | null | """
This is an example of the application of DeepESN model for multivariate time-series prediction task
on Piano-midi.de (see http://www-etud.iro.umontreal.ca/~boulanni/icml2012) dataset.
The dataset is a polyphonic music task characterized by 88-dimensional sequences representing musical compositions.
Starting from p... | 38.483871 | 115 | 0.729813 | 502 | 3,579 | 5.093626 | 0.482072 | 0.02542 | 0.015252 | 0.019945 | 0.100117 | 0.059445 | 0.027376 | 0 | 0 | 0 | 0 | 0.018763 | 0.195865 | 3,579 | 92 | 116 | 38.902174 | 0.869701 | 0.515228 | 0 | 0 | 0 | 0 | 0.072268 | 0.03114 | 0 | 0 | 0 | 0.01087 | 0 | 1 | 0.025 | false | 0.025 | 0.125 | 0 | 0.175 | 0.075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
380ab50c48e5c29d073411327774671e5febfe9a | 1,247 | py | Python | test_list.py | colinsusie/colua | 59e5847e19c7513ae4ae47d324dcf9a099f9a012 | [
"MIT"
] | 1 | 2021-07-03T03:15:05.000Z | 2021-07-03T03:15:05.000Z | test_list.py | colinsusie/colua | 59e5847e19c7513ae4ae47d324dcf9a099f9a012 | [
"MIT"
] | null | null | null | test_list.py | colinsusie/colua | 59e5847e19c7513ae4ae47d324dcf9a099f9a012 | [
"MIT"
] | 2 | 2020-08-18T08:47:05.000Z | 2022-01-04T03:11:53.000Z | import time
# xrange = range
def test1():
c = 1000000
a = []
tm = time.time()
for i in xrange(c):
a.append(i)
print "python-append(1000000)", time.time() - tm
def test2():
c = 100000
a = []
tm = time.time()
for i in xrange(c):
a.insert(0, i)
print "python-insert(100000)", time.time() - tm
def test3(... | 15.207317 | 53 | 0.595028 | 212 | 1,247 | 3.5 | 0.20283 | 0.12938 | 0.072776 | 0.145553 | 0.436658 | 0.331536 | 0.331536 | 0.331536 | 0.322102 | 0.322102 | 0 | 0.135663 | 0.219727 | 1,247 | 81 | 54 | 15.395062 | 0.626927 | 0.02486 | 0 | 0.538462 | 0 | 0 | 0.112119 | 0.095631 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.015385 | null | null | 0.092308 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
380bda699a5e0b053cad930fc92ba4a2bc4b81d4 | 4,518 | py | Python | menu.py | Datagatherer2357/pymysql | 3617b618f588553ad13a5f46cfe1f984d9b4f052 | [
"MIT"
] | null | null | null | menu.py | Datagatherer2357/pymysql | 3617b618f588553ad13a5f46cfe1f984d9b4f052 | [
"MIT"
] | null | null | null | menu.py | Datagatherer2357/pymysql | 3617b618f588553ad13a5f46cfe1f984d9b4f052 | [
"MIT"
] | null | null | null | # g00364693 - Gareth Duffy - Applied Databases Project
# Python menu for interacting with MySQL and MongoDB
import menuDB
import mongomenuDB
def main():
display_menu()
while True:
choice = input("Enter choice:")
# Choice 1:
if (choice == "1"):
print("Choice: 1")
menuDB.show_ci... | 22.147059 | 67 | 0.530987 | 516 | 4,518 | 4.581395 | 0.244186 | 0.046531 | 0.050338 | 0.053299 | 0.180203 | 0.159052 | 0.1489 | 0.103215 | 0.07445 | 0 | 0 | 0.012037 | 0.301239 | 4,518 | 203 | 68 | 22.256158 | 0.736775 | 0.104028 | 0 | 0.368056 | 0 | 0 | 0.278345 | 0.006284 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.013889 | 0 | 0.055556 | 0.409722 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
381071a851bae65eaef74499a8c5ac5957add0be | 4,083 | py | Python | bin/taxo2excel.py | kazoompa/maelstrom-taxonomies | 2641483f4156ab42d7f89d5d764fe20eabfc0ec8 | [
"CC-BY-4.0"
] | 3 | 2015-03-03T20:16:18.000Z | 2020-11-12T14:33:13.000Z | bin/taxo2excel.py | kazoompa/maelstrom-taxonomies | 2641483f4156ab42d7f89d5d764fe20eabfc0ec8 | [
"CC-BY-4.0"
] | 2 | 2020-10-20T16:44:55.000Z | 2021-12-17T20:40:08.000Z | bin/taxo2excel.py | kazoompa/maelstrom-taxonomies | 2641483f4156ab42d7f89d5d764fe20eabfc0ec8 | [
"CC-BY-4.0"
] | 12 | 2015-02-07T21:21:44.000Z | 2022-02-24T14:51:07.000Z | #!/usr/bin/python
#
# Converts a taxonomy in YAML to a Excel file: first sheet lists the vocabularies,
# following sheets list the terms for each of the vocabularies.
#
# Requires:
# * XlsxWriter https://xlsxwriter.readthedocs.io/
# * PyYaml http://pyyaml.org/
#
import argparse
import yaml
import xlsxwriter
parser ... | 33.195122 | 108 | 0.677688 | 580 | 4,083 | 4.739655 | 0.227586 | 0.058931 | 0.045835 | 0.026191 | 0.157148 | 0.040742 | 0 | 0 | 0 | 0 | 0 | 0.018472 | 0.124908 | 4,083 | 123 | 109 | 33.195122 | 0.75091 | 0.095763 | 0 | 0.030928 | 0 | 0.010309 | 0.171926 | 0.016866 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.030928 | null | null | 0.041237 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3812f0a7278f59b55699faad862cd31236a8e06a | 18,506 | py | Python | metal/mmtl/metal_model.py | inimino/metal | 6d557e0956fb92c6d1afccd4b0089c5166d38565 | [
"Apache-2.0"
] | 437 | 2018-08-03T21:24:15.000Z | 2022-03-18T19:31:39.000Z | metal/mmtl/metal_model.py | inimino/metal | 6d557e0956fb92c6d1afccd4b0089c5166d38565 | [
"Apache-2.0"
] | 134 | 2018-08-02T14:33:44.000Z | 2021-12-22T06:39:42.000Z | metal/mmtl/metal_model.py | inimino/metal | 6d557e0956fb92c6d1afccd4b0089c5166d38565 | [
"Apache-2.0"
] | 80 | 2018-08-06T21:18:39.000Z | 2022-03-10T09:17:49.000Z | from collections import defaultdict
import numpy as np
import torch
import torch.nn as nn
from metal.utils import move_to_device, recursive_merge_dicts, set_seed
model_defaults = {
"seed": None,
"device": 0, # gpu id (int) or -1 for cpu
"verbose": True,
"fp16": False,
"model_weights": None, # t... | 40.762115 | 93 | 0.597212 | 2,344 | 18,506 | 4.552901 | 0.172355 | 0.044228 | 0.018272 | 0.020615 | 0.310251 | 0.216642 | 0.181878 | 0.173163 | 0.128467 | 0.122657 | 0 | 0.002486 | 0.326056 | 18,506 | 453 | 94 | 40.852097 | 0.853191 | 0.330001 | 0 | 0.177358 | 0 | 0 | 0.072802 | 0.013135 | 0 | 0 | 0 | 0.011038 | 0.015094 | 1 | 0.05283 | false | 0 | 0.018868 | 0 | 0.116981 | 0.030189 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
381d950dd59dabb855bf03f96ac9b7de97cfbeb5 | 3,961 | py | Python | obs-thrift-api/tests/obsthriftserver/ttypes.py | pashkal/obs-thrift-api | 80635f9466d2c819c0d3099492b2e23fd9876821 | [
"Apache-2.0"
] | 39 | 2020-05-03T08:48:07.000Z | 2022-02-04T21:12:24.000Z | obs-thrift-api/tests/obsthriftserver/ttypes.py | pashkal/obs-thrift-api | 80635f9466d2c819c0d3099492b2e23fd9876821 | [
"Apache-2.0"
] | 6 | 2020-07-07T10:20:20.000Z | 2021-07-30T18:21:28.000Z | obs-thrift-api/tests/obsthriftserver/ttypes.py | pashkal/obs-thrift-api | 80635f9466d2c819c0d3099492b2e23fd9876821 | [
"Apache-2.0"
] | null | null | null | #
# Autogenerated by Thrift Compiler (0.14.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
from thrift.protocol.TProtocol import TProtocolException
from thrift.TRecursive impo... | 33.854701 | 134 | 0.596062 | 409 | 3,961 | 5.608802 | 0.273839 | 0.017437 | 0.031386 | 0.039233 | 0.198344 | 0.112031 | 0.054926 | 0.032258 | 0 | 0 | 0 | 0.041031 | 0.304721 | 3,961 | 116 | 135 | 34.146552 | 0.791939 | 0.053269 | 0 | 0.238636 | 1 | 0 | 0.03265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.079545 | false | 0 | 0.056818 | 0.034091 | 0.215909 | 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 |
381dba4e4b8ea6b44c13feed673b39443fa36edf | 7,744 | py | Python | src/wizard/controller/frmAddNewActionsPanel.py | UCHIC/ODMStreamingDataLoader | 711886167a068754efff6dfbd604e3e19e545253 | [
"BSD-3-Clause"
] | null | null | null | src/wizard/controller/frmAddNewActionsPanel.py | UCHIC/ODMStreamingDataLoader | 711886167a068754efff6dfbd604e3e19e545253 | [
"BSD-3-Clause"
] | null | null | null | src/wizard/controller/frmAddNewActionsPanel.py | UCHIC/ODMStreamingDataLoader | 711886167a068754efff6dfbd604e3e19e545253 | [
"BSD-3-Clause"
] | null | null | null | import wx
from datetime import datetime
import dateutil.parser as dparser
from collections import namedtuple
from src.controllers.Database import Database
from src.wizard.view.clsAddNewActionsPanel import AddNewActionsPanelView
from src.wizard.controller.frmPersonPanel import PersonPanel
from src.wizard.controller.frmO... | 41.859459 | 104 | 0.618931 | 804 | 7,744 | 5.885572 | 0.267413 | 0.01268 | 0.034869 | 0.024303 | 0.249789 | 0.193576 | 0.14328 | 0.14328 | 0.131445 | 0.120456 | 0 | 0.005043 | 0.283058 | 7,744 | 184 | 105 | 42.086957 | 0.847262 | 0.091813 | 0 | 0.137931 | 0 | 0 | 0.021092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.089655 | null | null | 0.013793 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
381e3f78a64614f17df3d648fed33afccd96974d | 1,454 | py | Python | tobber/spiders/tv_movies/rarbg.py | fchamicapereira/tobber-engine-python | 447af3e5541d881c02ca600520a8b05410a4220a | [
"MIT"
] | 1 | 2019-01-06T21:34:10.000Z | 2019-01-06T21:34:10.000Z | tobber/spiders/tv_movies/rarbg.py | fchamicapereira/tobber-engine-python | 447af3e5541d881c02ca600520a8b05410a4220a | [
"MIT"
] | null | null | null | tobber/spiders/tv_movies/rarbg.py | fchamicapereira/tobber-engine-python | 447af3e5541d881c02ca600520a8b05410a4220a | [
"MIT"
] | null | null | null | import scrapy
from tobber.items import Torrent
from tobber.spiders.indexer import Indexer
class Rarbg(Indexer):
name = "rarbg"
def start_requests(self):
print 'Rarbg is scrapying...'
self.site = "https://rarbg.is"
urls = []
search = self.site + "/torrents.php?search="
... | 31.608696 | 66 | 0.504814 | 154 | 1,454 | 4.727273 | 0.409091 | 0.075549 | 0.103022 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009544 | 0.351444 | 1,454 | 45 | 67 | 32.311111 | 0.76246 | 0.007565 | 0 | 0 | 0 | 0 | 0.12552 | 0.046463 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.