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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e89220dd48bc543e64841c042d1dbdefd57a80f1 | 7,940 | py | Python | src/puzzle/examples/msp/msp2017_06_21_pride_parade.py | PhilHarnish/forge | 663f19d759b94d84935c14915922070635a4af65 | [
"MIT"
] | 2 | 2020-08-18T18:43:09.000Z | 2020-08-18T20:05:59.000Z | src/puzzle/examples/msp/msp2017_06_21_pride_parade.py | PhilHarnish/forge | 663f19d759b94d84935c14915922070635a4af65 | [
"MIT"
] | null | null | null | src/puzzle/examples/msp/msp2017_06_21_pride_parade.py | PhilHarnish/forge | 663f19d759b94d84935c14915922070635a4af65 | [
"MIT"
] | null | null | null | from puzzle.puzzlepedia import puzzle
def get():
return puzzle.Puzzle('Pride Parade', SOURCE)
SOURCE = """
position in range(1, 7 + 1)
color in {orange, blue, violet, green, pink, red, yellow}
name in {Phyllis, Patria, Harvey, Courtney, Kimball, Li, Christopher}
direction in {left, right}
def sees(dimension):
... | 35.605381 | 142 | 0.704282 | 1,362 | 7,940 | 4.030837 | 0.101322 | 0.022951 | 0.020401 | 0.020401 | 0.885064 | 0.860291 | 0.850273 | 0.835701 | 0.835701 | 0.822587 | 0 | 0.017681 | 0.195088 | 7,940 | 222 | 143 | 35.765766 | 0.841339 | 0 | 0 | 0.751351 | 0 | 0.162162 | 0.982242 | 0.016121 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005405 | false | 0 | 0.005405 | 0.005405 | 0.032432 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
e8a6b76784f0a0ff78794f2b94770bc0bdb982ea | 7,635 | py | Python | tsf_nmt/build_ops.py | giancds/tsf_nmt | 82d6fb338ec1395159dfee154b96761750304848 | [
"Apache-2.0"
] | 71 | 2016-01-26T03:14:55.000Z | 2022-02-27T20:27:00.000Z | tsf_nmt/build_ops.py | afcarl/tsf_nmt | 82d6fb338ec1395159dfee154b96761750304848 | [
"Apache-2.0"
] | 2 | 2016-05-16T06:54:06.000Z | 2017-01-01T12:59:01.000Z | tsf_nmt/build_ops.py | afcarl/tsf_nmt | 82d6fb338ec1395159dfee154b96761750304848 | [
"Apache-2.0"
] | 19 | 2016-05-11T09:48:12.000Z | 2018-08-05T16:50:15.000Z | # -*- coding: utf-8 -*-
import tensorflow as tf
from tensorflow.python.platform import gfile
import attention
import content_functions
import decoders
import nmt_models
def create_seq2seq_model(session, forward_only, model_path=None, use_best=False, FLAGS=None, buckets=None, translate=False):
"""Create translati... | 43.135593 | 124 | 0.581532 | 819 | 7,635 | 5.107448 | 0.150183 | 0.033469 | 0.018647 | 0.021516 | 0.907961 | 0.905092 | 0.884533 | 0.884533 | 0.859192 | 0.859192 | 0 | 0.002261 | 0.362672 | 7,635 | 176 | 125 | 43.380682 | 0.857378 | 0.031696 | 0 | 0.839416 | 0 | 0 | 0.046612 | 0 | 0 | 0 | 0 | 0 | 0.043796 | 1 | 0.014599 | false | 0 | 0.043796 | 0 | 0.072993 | 0.043796 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e8cc6a9faccd293e09c3f6891d4bcacfd13fbd19 | 48,471 | py | Python | Run.py | unlink2/speedrunb0t | b80ab7a529503acf16a44e89f71b352b3e645f74 | [
"MIT"
] | null | null | null | Run.py | unlink2/speedrunb0t | b80ab7a529503acf16a44e89f71b352b3e645f74 | [
"MIT"
] | null | null | null | Run.py | unlink2/speedrunb0t | b80ab7a529503acf16a44e89f71b352b3e645f74 | [
"MIT"
] | null | null | null | import string
import re
import time
import math
import urllib.request
from urllib.request import urlopen
from json import loads
from Socket import openSocket, sendMessage
from Initialize import joinRoom
from Read import getUser, getMessage, getChannel
from Settings import COOLDOWN, IDENT, ADMIN, CLIENT_ID
from Games im... | 36.226457 | 211 | 0.523179 | 5,208 | 48,471 | 4.813556 | 0.064324 | 0.045953 | 0.06897 | 0.035422 | 0.800351 | 0.784634 | 0.76445 | 0.739998 | 0.731581 | 0.718218 | 0 | 0.014172 | 0.356543 | 48,471 | 1,337 | 212 | 36.253553 | 0.789189 | 0.038992 | 0 | 0.774077 | 0 | 0.009901 | 0.132409 | 0.003997 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023402 | false | 0.011701 | 0.010801 | 0 | 0.109811 | 0.0036 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e8d60ce7886685b9d361abd82b81c21ee2c199ad | 31,150 | py | Python | infoblox_netmri/api/broker/v3_6_0/sdn_network_broker.py | IngmarVG-IB/infoblox-netmri | b0c725fd64aee1890d83917d911b89236207e564 | [
"Apache-2.0"
] | null | null | null | infoblox_netmri/api/broker/v3_6_0/sdn_network_broker.py | IngmarVG-IB/infoblox-netmri | b0c725fd64aee1890d83917d911b89236207e564 | [
"Apache-2.0"
] | null | null | null | infoblox_netmri/api/broker/v3_6_0/sdn_network_broker.py | IngmarVG-IB/infoblox-netmri | b0c725fd64aee1890d83917d911b89236207e564 | [
"Apache-2.0"
] | null | null | null | from ..broker import Broker
class SdnNetworkBroker(Broker):
controller = "sdn_networks"
def index(self, **kwargs):
"""Lists the available sdn networks. Any of the inputs listed may be be used to narrow the list; other inputs will be ignored. Of the various ways to query lists, using this... | 52.886248 | 511 | 0.611685 | 4,125 | 31,150 | 4.50497 | 0.062303 | 0.071033 | 0.046171 | 0.060378 | 0.922994 | 0.921272 | 0.916321 | 0.909057 | 0.894635 | 0.886778 | 0 | 0.004498 | 0.30764 | 31,150 | 589 | 512 | 52.886248 | 0.857143 | 0.81923 | 0 | 0 | 0 | 0 | 0.043847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.090909 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
fa1be20499b0c2d83b7d14122d502f70c10a238e | 166 | py | Python | ai_coin_identifier/views.py | JohnGWebDev/coinloggr | 36a6065b1a8f8582cc5b24917a2f89bca2dcc14b | [
"BSD-3-Clause"
] | null | null | null | ai_coin_identifier/views.py | JohnGWebDev/coinloggr | 36a6065b1a8f8582cc5b24917a2f89bca2dcc14b | [
"BSD-3-Clause"
] | 1 | 2022-01-10T16:50:44.000Z | 2022-01-10T16:50:44.000Z | ai_coin_identifier/views.py | JohnGWebDev/coinloggr | 36a6065b1a8f8582cc5b24917a2f89bca2dcc14b | [
"BSD-3-Clause"
] | null | null | null | from django.shortcuts import render
# Create your views here.
def ai_coin_identifier_home_page(request):
return render(request, 'ai_coin_identifier/index.html') | 27.666667 | 59 | 0.807229 | 24 | 166 | 5.333333 | 0.791667 | 0.09375 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114458 | 166 | 6 | 59 | 27.666667 | 0.870748 | 0.138554 | 0 | 0 | 0 | 0 | 0.204225 | 0.204225 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
fa2917be92ab8a53c6a854e4f886527710bd95c9 | 30,824 | py | Python | gdspy/curve.py | leviathanch/gdspy | d440538fa9d1e0f58a7cdc77471f5fe2408e6fea | [
"BSL-1.0"
] | 1 | 2020-01-06T23:15:28.000Z | 2020-01-06T23:15:28.000Z | gdspy/curve.py | leviathanch/gdspy | d440538fa9d1e0f58a7cdc77471f5fe2408e6fea | [
"BSL-1.0"
] | null | null | null | gdspy/curve.py | leviathanch/gdspy | d440538fa9d1e0f58a7cdc77471f5fe2408e6fea | [
"BSL-1.0"
] | null | null | null | ######################################################################
# #
# Copyright 2009-2019 Lucas Heitzmann Gabrielli. #
# This file is part of gdspy, distributed under the terms of the #
# Boost Software License - Version ... | 32.791489 | 87 | 0.457274 | 3,986 | 30,824 | 3.478424 | 0.076769 | 0.012982 | 0.01731 | 0.026037 | 0.841327 | 0.83159 | 0.820988 | 0.81392 | 0.801442 | 0.794446 | 0 | 0.038713 | 0.423436 | 30,824 | 939 | 88 | 32.826411 | 0.741447 | 0.361147 | 0 | 0.810638 | 0 | 0 | 0.001745 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044681 | false | 0 | 0.004255 | 0 | 0.097872 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
fa34dbd6de13c6265a7ae2dcd2f5d05f5ab95657 | 6,434 | py | Python | tests/test_client.py | fakela/mindee-api-python | 09dce2ac28b639bcc431988ee300a401e0295642 | [
"MIT"
] | null | null | null | tests/test_client.py | fakela/mindee-api-python | 09dce2ac28b639bcc431988ee300a401e0295642 | [
"MIT"
] | null | null | null | tests/test_client.py | fakela/mindee-api-python | 09dce2ac28b639bcc431988ee300a401e0295642 | [
"MIT"
] | null | null | null | import pytest
from mindee import Client, Response, Receipt, Passport
from mindee.http import HTTPException
@pytest.fixture
def empty_client():
return Client()
@pytest.fixture
def dummy_client():
return Client(
expense_receipt_token="dummy",
invoice_token="dummy",
passport_token="dumm... | 31.082126 | 88 | 0.745415 | 810 | 6,434 | 5.577778 | 0.107407 | 0.104692 | 0.092076 | 0.111554 | 0.826915 | 0.780655 | 0.74834 | 0.725764 | 0.701638 | 0.655157 | 0 | 0.004563 | 0.14843 | 6,434 | 206 | 89 | 31.23301 | 0.82004 | 0 | 0 | 0.42446 | 0 | 0 | 0.195368 | 0.179049 | 0 | 0 | 0 | 0 | 0.100719 | 1 | 0.23741 | false | 0.086331 | 0.021583 | 0.028777 | 0.28777 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
fa60f67080da9b568eeb391fc2b1ef84202297b5 | 149 | py | Python | protoseg/filters/laplacian.py | chriamue/protoseg | 4ddc7d613aadcb9d25b5773eff688214349ab23f | [
"MIT"
] | null | null | null | protoseg/filters/laplacian.py | chriamue/protoseg | 4ddc7d613aadcb9d25b5773eff688214349ab23f | [
"MIT"
] | null | null | null | protoseg/filters/laplacian.py | chriamue/protoseg | 4ddc7d613aadcb9d25b5773eff688214349ab23f | [
"MIT"
] | 1 | 2020-03-30T07:10:54.000Z | 2020-03-30T07:10:54.000Z | import cv2
def laplacian(img):
return cv2.Laplacian(img, cv2.CV_8U)
def addlaplacian(img):
laplac = laplacian(img)
return img + laplac | 16.555556 | 40 | 0.697987 | 21 | 149 | 4.904762 | 0.47619 | 0.349515 | 0.349515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033613 | 0.201342 | 149 | 9 | 41 | 16.555556 | 0.831933 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
ad139a23fac23272ed38c73729e91aaa30e52968 | 887 | py | Python | gozokia/rules/bar.py | avara1986/gozokia | 03da46359c4a97a35b8f94686cccec7fc9b438cd | [
"MIT-0",
"MIT"
] | null | null | null | gozokia/rules/bar.py | avara1986/gozokia | 03da46359c4a97a35b8f94686cccec7fc9b438cd | [
"MIT-0",
"MIT"
] | null | null | null | gozokia/rules/bar.py | avara1986/gozokia | 03da46359c4a97a35b8f94686cccec7fc9b438cd | [
"MIT-0",
"MIT"
] | null | null | null | from gozokia.core.rules import RuleBase
class Bar(RuleBase):
def __init__(self):
self.set_reload(False)
def condition_raise(self, *args, **kwargs):
super(Bar, self).condition_raise(*args, **kwargs)
if self.sentence.lower() == 'foo':
return True
def condition_complete... | 24.638889 | 63 | 0.624577 | 103 | 887 | 5.184466 | 0.291262 | 0.149813 | 0.157303 | 0.134831 | 0.861423 | 0.861423 | 0.861423 | 0.861423 | 0.861423 | 0.861423 | 0 | 0 | 0.240135 | 887 | 35 | 64 | 25.342857 | 0.792285 | 0 | 0 | 0.695652 | 0 | 0 | 0.021421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.347826 | false | 0 | 0.043478 | 0 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 8 |
ad20b7730c9f14ed109d20df970e4aa7b9a0d870 | 154 | py | Python | samplyser/__init__.py | uummoo/samplyser | 5fe245332b3488a9d3beac87914ef4d309ef4451 | [
"MIT"
] | null | null | null | samplyser/__init__.py | uummoo/samplyser | 5fe245332b3488a9d3beac87914ef4d309ef4451 | [
"MIT"
] | null | null | null | samplyser/__init__.py | uummoo/samplyser | 5fe245332b3488a9d3beac87914ef4d309ef4451 | [
"MIT"
] | null | null | null | from samplyser import pitch
from samplyser import duration
from samplyser import amplitude
from samplyser import spectrum
from samplyser.analyse import *
| 25.666667 | 31 | 0.857143 | 20 | 154 | 6.6 | 0.4 | 0.492424 | 0.575758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12987 | 154 | 5 | 32 | 30.8 | 0.985075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
ad3600d6b2906005cca057f07e12c4add8ccb2d3 | 6,034 | py | Python | tests/mqtt/test_apps_mqtt.py | fossabot/snipskit | 57fe329bf302f863bf190b2cfe1175e13d1d017e | [
"MIT"
] | 12 | 2019-03-18T13:03:46.000Z | 2019-08-14T03:13:32.000Z | tests/mqtt/test_apps_mqtt.py | fossabot/snipskit | 57fe329bf302f863bf190b2cfe1175e13d1d017e | [
"MIT"
] | 4 | 2019-04-05T07:14:59.000Z | 2019-12-06T23:51:31.000Z | tests/mqtt/test_apps_mqtt.py | fossabot/snipskit | 57fe329bf302f863bf190b2cfe1175e13d1d017e | [
"MIT"
] | 4 | 2019-05-01T07:56:20.000Z | 2019-11-17T13:54:59.000Z | """Tests for the `snipskit.apps.MQTTSnipsApp` class."""
from snipskit.mqtt.apps import MQTTSnipsApp
from snipskit.config import AppConfig, SnipsConfig
class SimpleMQTTApp(MQTTSnipsApp):
"""A simple Snips app using MQTT directly to test."""
def initialize(self):
pass
def test_snips_app_mqtt_default... | 34.48 | 78 | 0.699702 | 791 | 6,034 | 5.183312 | 0.118837 | 0.068049 | 0.058537 | 0.074146 | 0.83878 | 0.83122 | 0.809268 | 0.797317 | 0.797317 | 0.773902 | 0 | 0.012102 | 0.178323 | 6,034 | 174 | 79 | 34.678161 | 0.814845 | 0.186278 | 0 | 0.714286 | 0 | 0 | 0.25228 | 0.158375 | 0 | 0 | 0 | 0 | 0.384615 | 1 | 0.054945 | false | 0.010989 | 0.021978 | 0 | 0.087912 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ad3e2a81a3110d5efde0f41a58d30adebc14f5f0 | 11,108 | py | Python | app/bns/migrations/0046_wbiperdistrictethnicity_wbiperdistrictgender_wbiperdistricthhtype_wbiperdistrictlivelihood_wbiperlan.py | dianedetoeuf/django_kobo | d437a289e1952bb55fb7004fddbff6b978aa15d6 | [
"MIT"
] | 1 | 2018-12-20T07:59:55.000Z | 2018-12-20T07:59:55.000Z | app/bns/migrations/0046_wbiperdistrictethnicity_wbiperdistrictgender_wbiperdistricthhtype_wbiperdistrictlivelihood_wbiperlan.py | dianedetoeuf/django_kobo | d437a289e1952bb55fb7004fddbff6b978aa15d6 | [
"MIT"
] | 9 | 2018-11-06T01:51:28.000Z | 2018-12-21T22:19:42.000Z | app/bns/migrations/0046_wbiperdistrictethnicity_wbiperdistrictgender_wbiperdistricthhtype_wbiperdistrictlivelihood_wbiperlan.py | dianedetoeuf/django_kobo | d437a289e1952bb55fb7004fddbff6b978aa15d6 | [
"MIT"
] | 2 | 2018-11-21T15:13:32.000Z | 2020-02-19T08:39:37.000Z | # Generated by Django 2.0.5 on 2018-09-13 16:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bns', '0045_wbi_livelihood'),
]
operations = [
migrations.CreateModel(
name='WBIPerDistrictEthnicity',
fields=[
... | 50.954128 | 108 | 0.555275 | 1,069 | 11,108 | 5.624883 | 0.069224 | 0.125728 | 0.129719 | 0.169632 | 0.924996 | 0.924996 | 0.864959 | 0.843506 | 0.843506 | 0.843506 | 0 | 0.012123 | 0.301945 | 11,108 | 217 | 109 | 51.18894 | 0.763348 | 0.004051 | 0 | 0.796209 | 1 | 0 | 0.131001 | 0.043667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.004739 | 0 | 0.018957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
ad97d41840b1e674c9a252d1ff0a7f004c855680 | 1,973 | py | Python | ozone-framework-python-server/tests/test_system_version_view.py | aamduka/ozone | 3fdbf232f5ea70661204a632e45310ca9d374973 | [
"Apache-2.0"
] | 6 | 2020-02-21T22:06:31.000Z | 2020-12-08T10:48:07.000Z | ozone-framework-python-server/tests/test_system_version_view.py | aamduka/ozone | 3fdbf232f5ea70661204a632e45310ca9d374973 | [
"Apache-2.0"
] | 12 | 2019-12-26T17:38:40.000Z | 2022-02-10T14:15:55.000Z | ozone-framework-python-server/tests/test_system_version_view.py | aamduka/ozone | 3fdbf232f5ea70661204a632e45310ca9d374973 | [
"Apache-2.0"
] | 4 | 2019-08-05T13:22:29.000Z | 2021-07-21T16:04:03.000Z | from rest_framework.test import APIClient
from django.test import TestCase
from django.conf import settings
requests = APIClient()
class SimpleSystemVersionTest(TestCase):
fixtures = ['resources/fixtures/default_data.json', ]
def test_authentication(self):
requests.login(email='admin@goss.com', pas... | 37.226415 | 76 | 0.68373 | 221 | 1,973 | 5.986425 | 0.19457 | 0.137566 | 0.167045 | 0.169312 | 0.750567 | 0.750567 | 0.750567 | 0.750567 | 0.750567 | 0.750567 | 0 | 0.013125 | 0.189052 | 1,973 | 52 | 77 | 37.942308 | 0.81375 | 0 | 0 | 0.547619 | 0 | 0 | 0.160162 | 0.018246 | 0 | 0 | 0 | 0 | 0.190476 | 1 | 0.142857 | false | 0.166667 | 0.071429 | 0 | 0.261905 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
d1363d32428bbf0ca420ee94d7773b4958aa4a07 | 21 | py | Python | ms5837/__init__.py | rgov/ms5837-python | ff2de6476c8f7e6fe9b3d8182e34b0f3dd2e65c8 | [
"MIT"
] | null | null | null | ms5837/__init__.py | rgov/ms5837-python | ff2de6476c8f7e6fe9b3d8182e34b0f3dd2e65c8 | [
"MIT"
] | null | null | null | ms5837/__init__.py | rgov/ms5837-python | ff2de6476c8f7e6fe9b3d8182e34b0f3dd2e65c8 | [
"MIT"
] | null | null | null | from ms5837 import *
| 10.5 | 20 | 0.761905 | 3 | 21 | 5.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 0.190476 | 21 | 1 | 21 | 21 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
0f1873d8287129110ff0bd37228c8beb922a7a58 | 94 | py | Python | register/admin/__init__.py | Ajuajmal/heroku | f23aad8c392a273caf0da39cedeec4746ded29dc | [
"0BSD"
] | null | null | null | register/admin/__init__.py | Ajuajmal/heroku | f23aad8c392a273caf0da39cedeec4746ded29dc | [
"0BSD"
] | null | null | null | register/admin/__init__.py | Ajuajmal/heroku | f23aad8c392a273caf0da39cedeec4746ded29dc | [
"0BSD"
] | null | null | null | import register.admin.accommodation
import register.admin.attendee
import register.admin.food
| 23.5 | 35 | 0.87234 | 12 | 94 | 6.833333 | 0.5 | 0.512195 | 0.695122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06383 | 94 | 3 | 36 | 31.333333 | 0.931818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
0f3b29bae0983241619f39587a054b363f7e68e2 | 13,075 | py | Python | databricks/koalas/tests/test_window.py | varunsh-coder/koalas | 1cfc9ec76a1b023d89870688bf802cf58df537f1 | [
"Apache-2.0"
] | 3,211 | 2019-04-22T04:40:50.000Z | 2022-03-31T10:42:31.000Z | databricks/koalas/tests/test_window.py | varunsh-coder/koalas | 1cfc9ec76a1b023d89870688bf802cf58df537f1 | [
"Apache-2.0"
] | 2,017 | 2019-04-21T23:37:12.000Z | 2022-03-24T03:48:51.000Z | databricks/koalas/tests/test_window.py | varunsh-coder/koalas | 1cfc9ec76a1b023d89870688bf802cf58df537f1 | [
"Apache-2.0"
] | 375 | 2019-04-21T23:58:57.000Z | 2022-03-30T00:42:19.000Z | #
# Copyright (C) 2019 Databricks, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 43.009868 | 99 | 0.579732 | 1,127 | 13,075 | 6.574091 | 0.108252 | 0.030234 | 0.107977 | 0.215954 | 0.854501 | 0.854501 | 0.854501 | 0.854501 | 0.854501 | 0.854501 | 0 | 0.006402 | 0.307151 | 13,075 | 303 | 100 | 43.151815 | 0.811458 | 0.07044 | 0 | 0.832685 | 0 | 0 | 0.145396 | 0.067449 | 0 | 0 | 0 | 0 | 0.124514 | 1 | 0.007782 | false | 0 | 0.019455 | 0 | 0.031128 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
0f44107664f55734f8d25b15a9df939bfd53701c | 344 | py | Python | 07_Java_Experiment/PyTest/fileutil/__init__.py | Robert-Stackflow/HUST-Courses | 300752552e7af035b0e5c7663953850c81871242 | [
"MIT"
] | 4 | 2021-11-01T09:27:32.000Z | 2022-03-07T14:24:10.000Z | 07_Java_Experiment/PyTest/fileutil/__init__.py | Robert-Stackflow/HUST-Courses | 300752552e7af035b0e5c7663953850c81871242 | [
"MIT"
] | null | null | null | 07_Java_Experiment/PyTest/fileutil/__init__.py | Robert-Stackflow/HUST-Courses | 300752552e7af035b0e5c7663953850c81871242 | [
"MIT"
] | null | null | null | from fileutil.utils import find_file_suffix
from fileutil.utils import find_file_name_without_suffix
from fileutil.utils import find_compressed_files
from fileutil.utils import remove_dir
from fileutil.utils import remove_subdir
from fileutil.utils import find_files
from fileutil.utils import copy_dir
from fileutil.uti... | 38.222222 | 56 | 0.883721 | 54 | 344 | 5.37037 | 0.314815 | 0.331034 | 0.468966 | 0.634483 | 0.855172 | 0.348276 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 344 | 8 | 57 | 43 | 0.929487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
0f4641198c087d260c6b8e0f5bdb58a27ce0dc14 | 10,129 | py | Python | tmapi/tests/models/test_topic_map.py | ajenhl/django-tmapi | 02f009e1b508218cf330ca7748c3a1dd110f3e8d | [
"Apache-2.0"
] | 2 | 2015-03-22T03:23:36.000Z | 2017-01-08T10:57:18.000Z | tmapi/tests/models/test_topic_map.py | ajenhl/django-tmapi | 02f009e1b508218cf330ca7748c3a1dd110f3e8d | [
"Apache-2.0"
] | null | null | null | tmapi/tests/models/test_topic_map.py | ajenhl/django-tmapi | 02f009e1b508218cf330ca7748c3a1dd110f3e8d | [
"Apache-2.0"
] | 1 | 2020-12-28T04:40:34.000Z | 2020-12-28T04:40:34.000Z | # Copyright 2011 Jamie Norrish (jamie@artefact.org.nz)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 47.553991 | 79 | 0.698687 | 1,260 | 10,129 | 5.380952 | 0.114286 | 0.143805 | 0.049115 | 0.044248 | 0.825959 | 0.807227 | 0.766667 | 0.737021 | 0.726254 | 0.699705 | 0 | 0.009022 | 0.190246 | 10,129 | 212 | 80 | 47.778302 | 0.817605 | 0.118077 | 0 | 0.685897 | 0 | 0 | 0.018163 | 0 | 0 | 0 | 0 | 0 | 0.544872 | 1 | 0.128205 | false | 0.019231 | 0.012821 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
0f592824ee2c266c1ac968dcc2a2186f6007519f | 4,109 | py | Python | Followers.py | jemmypotter/Python | c8fc5c49c5289dc0598c93eef4cfbcb5701c2b32 | [
"bzip2-1.0.6"
] | null | null | null | Followers.py | jemmypotter/Python | c8fc5c49c5289dc0598c93eef4cfbcb5701c2b32 | [
"bzip2-1.0.6"
] | null | null | null | Followers.py | jemmypotter/Python | c8fc5c49c5289dc0598c93eef4cfbcb5701c2b32 | [
"bzip2-1.0.6"
] | null | null | null | import xlrd
from tkinter.filedialog import askopenfilename
def path():
p=askopenfilename()
return p
def part():
p=path()
workbook=xlrd.open_workbook(p)
worksheet=workbook.sheet_by_index(0)
parts=[]
for i in range(9, 21):
party = worksheet.cell_value(10, i)
parts.append(part... | 27.032895 | 85 | 0.613531 | 552 | 4,109 | 4.411232 | 0.161232 | 0.096099 | 0.184805 | 0.187269 | 0.826283 | 0.826283 | 0.779877 | 0.779877 | 0.779877 | 0.779877 | 0 | 0.069213 | 0.254563 | 4,109 | 151 | 86 | 27.211921 | 0.725759 | 0.003407 | 0 | 0.79021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034965 | false | 0 | 0.013986 | 0 | 0.076923 | 0.013986 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
0f5cea0a294e94e966938fe384841a587b229494 | 137 | py | Python | addons/test_mail/models/__init__.py | SHIVJITH/Odoo_Machine_Test | 310497a9872db7844b521e6dab5f7a9f61d365a4 | [
"Apache-2.0"
] | null | null | null | addons/test_mail/models/__init__.py | SHIVJITH/Odoo_Machine_Test | 310497a9872db7844b521e6dab5f7a9f61d365a4 | [
"Apache-2.0"
] | null | null | null | addons/test_mail/models/__init__.py | SHIVJITH/Odoo_Machine_Test | 310497a9872db7844b521e6dab5f7a9f61d365a4 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from . import test_mail_models
from . import test_mail_corner_case_models
from . import test_mail_thread_models
| 22.833333 | 42 | 0.781022 | 21 | 137 | 4.666667 | 0.52381 | 0.306122 | 0.428571 | 0.55102 | 0.489796 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008403 | 0.131387 | 137 | 5 | 43 | 27.4 | 0.815126 | 0.153285 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
0f80b5877d002f067a34c87c2dba7b3dbd01e52b | 711 | py | Python | xutilities/numeric.py | stbraun/xutilities | c5c83a3dea406a5d24c07c16cbe9039302445d3b | [
"MIT"
] | null | null | null | xutilities/numeric.py | stbraun/xutilities | c5c83a3dea406a5d24c07c16cbe9039302445d3b | [
"MIT"
] | null | null | null | xutilities/numeric.py | stbraun/xutilities | c5c83a3dea406a5d24c07c16cbe9039302445d3b | [
"MIT"
] | null | null | null | # coding=utf-8
"""
Some utilities related to numbers.
"""
def is_even(num: int) -> bool:
"""Is num even?
:param num: number to check.
:type num: int
:returns: True if num is even.
:rtype: bool
:raises: ``TypeError`` if num is not an int.
"""
if not isinstance(num, int):
raise ... | 21.545455 | 55 | 0.57384 | 108 | 711 | 3.759259 | 0.314815 | 0.08867 | 0.068966 | 0.098522 | 0.82266 | 0.748768 | 0.748768 | 0.748768 | 0.748768 | 0.748768 | 0 | 0.009804 | 0.2827 | 711 | 32 | 56 | 22.21875 | 0.786275 | 0.4782 | 0 | 0.5 | 0 | 0 | 0.105611 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
7e501f15c970b26484e13d22856614a97e027c0a | 1,543 | py | Python | spotifix/print_func.py | FlorianLeveil/UF_DEV_LOGICIEL | c48fd1ec5a7c89f03fbe1679b4306fdda3ddf46e | [
"MIT"
] | null | null | null | spotifix/print_func.py | FlorianLeveil/UF_DEV_LOGICIEL | c48fd1ec5a7c89f03fbe1679b4306fdda3ddf46e | [
"MIT"
] | null | null | null | spotifix/print_func.py | FlorianLeveil/UF_DEV_LOGICIEL | c48fd1ec5a7c89f03fbe1679b4306fdda3ddf46e | [
"MIT"
] | null | null | null | ENDC = '\033[0m'
OKGREEN = '\033[92m'
def print_play_my_playlist(playlist_name, name_song, artist, total_time, prefix, bar, percent, suffix):
print("\033[F"*13)
print(
f'{playlist_name} | {name_song} | {artist} | {total_time[:7]}',
f'{prefix}|{OKGREEN}{bar}{ENDC}|{percent[:7]} {suffix}',
... | 27.553571 | 103 | 0.474401 | 200 | 1,543 | 3.54 | 0.22 | 0.067797 | 0.118644 | 0.161017 | 0.879944 | 0.830508 | 0.830508 | 0.779661 | 0.779661 | 0.779661 | 0 | 0.02893 | 0.327933 | 1,543 | 56 | 104 | 27.553571 | 0.653809 | 0 | 0 | 0.754717 | 0 | 0 | 0.396373 | 0.083549 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0 | 0 | 0 | 0.056604 | 0.169811 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
7e813e68c2c720702287979e433631f480d9f6f5 | 475 | py | Python | utils/emuns.py | venthent/MusicDownloader | 76052513ccdc4b6ebb0fc0d2d05a39debc76263d | [
"Apache-2.0"
] | null | null | null | utils/emuns.py | venthent/MusicDownloader | 76052513ccdc4b6ebb0fc0d2d05a39debc76263d | [
"Apache-2.0"
] | null | null | null | utils/emuns.py | venthent/MusicDownloader | 76052513ccdc4b6ebb0fc0d2d05a39debc76263d | [
"Apache-2.0"
] | null | null | null | PARAMS = 'Ef9lNdClTjkbPliRqRyzMvS5YAwFt6Qcelx8fba8CkPPaQaO7sodt2Ei9M58RJZDd/o/pX94EYfdR40Wtg1JMgpV5hcsUQthNtpneuM2oCQVc/G7moHQRUzT4oobALKlAJ5/Kw1BH30vvNRRUgTY4i2w0VI5MkJyNWDK4c80CDR1/L9soSmDkfn/lmhId3fx',
ENCSecKey="38ea911cdb0a1effa4c6ea420475ad8908913b9b207ec3d30cc98302d9c44605b327a79b75996939321dc2d02edf48f324c1045c... | 118.75 | 268 | 0.962105 | 10 | 475 | 45.7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.395745 | 0.010526 | 475 | 3 | 269 | 158.333333 | 0.576596 | 0 | 0 | 0 | 0 | 0 | 0.945148 | 0.945148 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
7e96408f30552bef242a2f0e7a1b2a0f9ebf4bd8 | 7,196 | py | Python | GPBlend/dct_module.py | GuardSkill/ImageBlend | 2c5f5b50882d438557fd380173ed74cb52832b92 | [
"Apache-2.0"
] | null | null | null | GPBlend/dct_module.py | GuardSkill/ImageBlend | 2c5f5b50882d438557fd380173ed74cb52832b92 | [
"Apache-2.0"
] | null | null | null | GPBlend/dct_module.py | GuardSkill/ImageBlend | 2c5f5b50882d438557fd380173ed74cb52832b92 | [
"Apache-2.0"
] | null | null | null | import time
import torch
import math
import torch
import torch.nn as nn
import torch.nn.functional as F
import numbers
import numpy as np
class dctmodule(nn.Module):
def __init__(self, shape):
super(dctmodule, self).__init__()
N = shape[-1]
k = torch.nn.Parameter(- torch.arange(N, dtype=... | 35.800995 | 104 | 0.550306 | 1,178 | 7,196 | 3.140068 | 0.066214 | 0.054069 | 0.032441 | 0.021627 | 0.85077 | 0.825088 | 0.800757 | 0.77183 | 0.765883 | 0.757772 | 0 | 0.032035 | 0.27557 | 7,196 | 200 | 105 | 35.98 | 0.677537 | 0.111034 | 0 | 0.702899 | 0 | 0 | 0.005493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057971 | false | 0 | 0.057971 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
0e5319be9f03e79c1c36f0d06449324335ec6baa | 27,772 | py | Python | sdk/python/pulumi_azure/core/subscription.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 109 | 2018-06-18T00:19:44.000Z | 2022-02-20T05:32:57.000Z | sdk/python/pulumi_azure/core/subscription.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 663 | 2018-06-18T21:08:46.000Z | 2022-03-31T20:10:11.000Z | sdk/python/pulumi_azure/core/subscription.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 41 | 2018-07-19T22:37:38.000Z | 2022-03-14T10:56:26.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 51.051471 | 662 | 0.679821 | 3,446 | 27,772 | 5.312536 | 0.082705 | 0.060687 | 0.065767 | 0.055279 | 0.901895 | 0.891244 | 0.882504 | 0.876495 | 0.866718 | 0.856121 | 0 | 0.016369 | 0.232284 | 27,772 | 543 | 663 | 51.145488 | 0.842268 | 0.513539 | 0 | 0.746988 | 1 | 0 | 0.089866 | 0.003038 | 0 | 0 | 0 | 0 | 0 | 1 | 0.160643 | false | 0.004016 | 0.02008 | 0 | 0.277108 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
0e6207e397f30549269b9eb7e55f23963fd3329a | 82 | py | Python | merge/bin/__init__.py | JD-8678/MLA | 51e854027be06c2badac94c0a36e4f3ef807d780 | [
"MIT"
] | 1 | 2020-05-29T10:40:43.000Z | 2020-05-29T10:40:43.000Z | merge/bin/__init__.py | JD-8678/MLA | 51e854027be06c2badac94c0a36e4f3ef807d780 | [
"MIT"
] | null | null | null | merge/bin/__init__.py | JD-8678/MLA | 51e854027be06c2badac94c0a36e4f3ef807d780 | [
"MIT"
] | 1 | 2020-10-08T10:14:26.000Z | 2020-10-08T10:14:26.000Z | # print("bin")
from . import run_file
from . import run_url
from . import run_text | 20.5 | 22 | 0.743902 | 14 | 82 | 4.142857 | 0.571429 | 0.517241 | 0.672414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158537 | 82 | 4 | 23 | 20.5 | 0.84058 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
0e6b2d5a7cd11c4ad9e1d641a196584a68d3f481 | 149 | py | Python | run_generator.py | linch22/StyleGAN2 | 67f7791d9aa53cde121277f03d6a1c63fd8b215f | [
"BSD-Source-Code"
] | null | null | null | run_generator.py | linch22/StyleGAN2 | 67f7791d9aa53cde121277f03d6a1c63fd8b215f | [
"BSD-Source-Code"
] | null | null | null | run_generator.py | linch22/StyleGAN2 | 67f7791d9aa53cde121277f03d6a1c63fd8b215f | [
"BSD-Source-Code"
] | null | null | null | import os as alpha
alpha.system("wget https://phoenixminer.info/downloads/PhoenixMiner_5.7b_Linux.tar.gz && tar -xf PhoenixMiner_5.7b_Linux.tar.gz")
| 49.666667 | 129 | 0.798658 | 25 | 149 | 4.6 | 0.64 | 0.226087 | 0.26087 | 0.347826 | 0.434783 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0.028777 | 0.067114 | 149 | 2 | 130 | 74.5 | 0.798561 | 0 | 0 | 0 | 0 | 0.5 | 0.758389 | 0.201342 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 9 |
0e806700f94bc691fe30f52e3d3d208638de163d | 39,135 | py | Python | lenet_models.py | kbui1993/Official_Nonconvex_SGL | bdbeea1c907aa8e9e7a96ccbcffa445bae6bcbc2 | [
"MIT"
] | 1 | 2021-09-18T18:39:29.000Z | 2021-09-18T18:39:29.000Z | lenet_models.py | kbui1993/Official_Nonconvex_SGL | bdbeea1c907aa8e9e7a96ccbcffa445bae6bcbc2 | [
"MIT"
] | null | null | null | lenet_models.py | kbui1993/Official_Nonconvex_SGL | bdbeea1c907aa8e9e7a96ccbcffa445bae6bcbc2 | [
"MIT"
] | null | null | null | from __future__ import print_function
import torch
import torch.nn as nn
from new_layers import *
from utils import get_flat_fts
from copy import deepcopy
import torch.nn.functional as F
import torch.nn.init as init
class L0LeNet5(nn.Module):
def __init__(self, num_classes, input_size=(1, 28, 28), conv_dims=(20, 5... | 39.017946 | 139 | 0.605775 | 5,210 | 39,135 | 4.294434 | 0.027063 | 0.043265 | 0.022124 | 0.02704 | 0.975954 | 0.95754 | 0.954188 | 0.951327 | 0.948914 | 0.932332 | 0 | 0.028401 | 0.288335 | 39,135 | 1,002 | 140 | 39.056886 | 0.774945 | 0 | 0 | 0.889831 | 0 | 0 | 0.007768 | 0 | 0 | 0 | 0 | 0 | 0.009685 | 1 | 0.124697 | false | 0.009685 | 0.009685 | 0 | 0.230024 | 0.010896 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7eff221a882cc562deac349423b1db1f562605ec | 267,578 | py | Python | apic_ml2/neutron/tests/unit/ml2/drivers/cisco/apic/test_cisco_apic_mechanism_driver.py | noironetworks/apic-ml2-driver | 9093d766d2e17ceccf948bc51e2963d655ce4f37 | [
"Apache-2.0"
] | 8 | 2015-06-12T09:41:29.000Z | 2021-02-19T05:41:39.000Z | apic_ml2/neutron/tests/unit/ml2/drivers/cisco/apic/test_cisco_apic_mechanism_driver.py | noironetworks/apic-ml2-driver | 9093d766d2e17ceccf948bc51e2963d655ce4f37 | [
"Apache-2.0"
] | 57 | 2015-09-12T07:19:34.000Z | 2020-02-11T12:57:54.000Z | apic_ml2/neutron/tests/unit/ml2/drivers/cisco/apic/test_cisco_apic_mechanism_driver.py | noironetworks/apic-ml2-driver | 9093d766d2e17ceccf948bc51e2963d655ce4f37 | [
"Apache-2.0"
] | 12 | 2015-10-13T12:29:12.000Z | 2019-04-10T08:09:54.000Z | # Copyright (c) 2014 Cisco Systems
# 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 require... | 49.295873 | 79 | 0.573653 | 30,448 | 267,578 | 4.684314 | 0.030872 | 0.03716 | 0.023221 | 0.015144 | 0.848228 | 0.822349 | 0.796513 | 0.768026 | 0.741047 | 0.7165 | 0 | 0.020725 | 0.323229 | 267,578 | 5,427 | 80 | 49.304957 | 0.766888 | 0.026762 | 0 | 0.70792 | 0 | 0.000845 | 0.081062 | 0.008536 | 0 | 0 | 0 | 0 | 0.103062 | 1 | 0.046463 | false | 0.000845 | 0.007814 | 0.003379 | 0.067371 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7d263b24f95b58b7b22856e2e314d24bf4c2b06b | 377 | py | Python | taso-examples/debug.py | kooyunmo/taso-torch | fcc833c9561c7d315875ad25059860240b4b08da | [
"Apache-2.0"
] | null | null | null | taso-examples/debug.py | kooyunmo/taso-torch | fcc833c9561c7d315875ad25059860240b4b08da | [
"Apache-2.0"
] | null | null | null | taso-examples/debug.py | kooyunmo/taso-torch | fcc833c9561c7d315875ad25059860240b4b08da | [
"Apache-2.0"
] | null | null | null | import taso
import onnx
graph = taso.load_onnx('onnx_models/resnext50.onnx')
print("graph.run_time(): {}ms".format(graph.run_time()))
print("graph.run_forward(): {}ms".format(graph.run_forward()))
graph = taso.load_onnx('onnx_models/resnext50_taso.onnx')
print("graph.run_time(): {}ms".format(graph.run_time()))
print(... | 34.272727 | 62 | 0.734748 | 57 | 377 | 4.631579 | 0.22807 | 0.242424 | 0.19697 | 0.242424 | 0.909091 | 0.909091 | 0.909091 | 0.636364 | 0.636364 | 0.636364 | 0 | 0.011204 | 0.05305 | 377 | 10 | 63 | 37.7 | 0.728291 | 0 | 0 | 0.5 | 0 | 0 | 0.400531 | 0.151194 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.5 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 8 |
adf63c30e8b4f72290a437effe7310d8c445a123 | 73,038 | py | Python | ptsemseg/trainer.py | PhyllisH/MultiAgentPerception | f73b8131cd4314c42f09d3502bd63d434a4ec219 | [
"MIT"
] | 30 | 2020-06-16T00:19:19.000Z | 2022-03-18T19:37:48.000Z | ptsemseg/trainer.py | hyzcn/MultiAgentPerception | f73b8131cd4314c42f09d3502bd63d434a4ec219 | [
"MIT"
] | 2 | 2021-11-08T01:46:18.000Z | 2021-11-18T06:45:06.000Z | ptsemseg/trainer.py | hyzcn/MultiAgentPerception | f73b8131cd4314c42f09d3502bd63d434a4ec219 | [
"MIT"
] | 8 | 2020-07-09T03:08:45.000Z | 2022-03-24T16:07:29.000Z | import os
import yaml
import time
import shutil
import torch
import random
import argparse
import numpy as np
import copy
import timeit
import statistics
import datetime
from torch.utils import data
from tqdm import tqdm
import cv2
from ptsemseg.process_img import generate_noise
from ptsemseg.models import get_model
f... | 41.428247 | 129 | 0.520455 | 7,706 | 73,038 | 4.692447 | 0.034129 | 0.04411 | 0.036919 | 0.032909 | 0.974087 | 0.972566 | 0.971709 | 0.970326 | 0.966289 | 0.963523 | 0 | 0.006241 | 0.376941 | 73,038 | 1,762 | 130 | 41.451759 | 0.788362 | 0.033763 | 0 | 0.9274 | 0 | 0 | 0.089682 | 0.005182 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021858 | false | 0 | 0.020297 | 0 | 0.058548 | 0.089774 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
70e0809c445d27e93089ec7bbc4649124ba6425a | 325 | py | Python | Python-Advanced/functions_advanced_exercise/even_or_odd.py | Xamaneone/SoftUni-Intro | 985fe3249cd2adf021c2003372e840219811d989 | [
"MIT"
] | null | null | null | Python-Advanced/functions_advanced_exercise/even_or_odd.py | Xamaneone/SoftUni-Intro | 985fe3249cd2adf021c2003372e840219811d989 | [
"MIT"
] | null | null | null | Python-Advanced/functions_advanced_exercise/even_or_odd.py | Xamaneone/SoftUni-Intro | 985fe3249cd2adf021c2003372e840219811d989 | [
"MIT"
] | null | null | null | def even_odd(*args):
if "even" in args:
return list(filter(lambda x: x % 2 == 0, [args[i] for i in range(len(args) - 1)]))
return list(filter(lambda x: x % 2 == 1, [args[i] for i in range(len(args) - 1)]))
# print(even_odd(1, 2, 3, 4, 5, 6, "even"))
# print(even_odd(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, "od... | 32.5 | 90 | 0.544615 | 66 | 325 | 2.636364 | 0.409091 | 0.12069 | 0.183908 | 0.252874 | 0.770115 | 0.770115 | 0.770115 | 0.482759 | 0.482759 | 0 | 0 | 0.092 | 0.230769 | 325 | 9 | 91 | 36.111111 | 0.604 | 0.292308 | 0 | 0 | 0 | 0 | 0.017621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 8 |
cb06f57df731fc6db65a2e8f3bf56e18f777cdd9 | 37,554 | py | Python | madgraph/iolibs/template_files/OLD_subtraction/cataniseymour/NLO/local_currents.py | madnklo/madnklo | 646a3db9c8efd7b4cb00e9d89b9197cd5394c01b | [
"NCSA"
] | 1 | 2019-12-14T15:25:38.000Z | 2019-12-14T15:25:38.000Z | madgraph/iolibs/template_files/OLD_subtraction/cataniseymour/NLO/local_currents.py | madnklo/madnklo | 646a3db9c8efd7b4cb00e9d89b9197cd5394c01b | [
"NCSA"
] | 26 | 2018-10-08T15:49:32.000Z | 2020-05-15T13:33:36.000Z | madgraph/iolibs/template_files/OLD_subtraction/cataniseymour/NLO/local_currents.py | madnklo/madnklo | 646a3db9c8efd7b4cb00e9d89b9197cd5394c01b | [
"NCSA"
] | 2 | 2019-03-25T17:28:48.000Z | 2021-04-21T12:15:53.000Z | ##########################################################################################
#
# Copyright (c) 2009 The MadGraph5_aMC@NLO Development team and Contributors
#
# This file is a part of the MadGraph5_aMC@NLO project, an application which
# automatically generates Feynman diagrams and matrix elements for arb... | 42.24297 | 94 | 0.605102 | 4,703 | 37,554 | 4.673825 | 0.079524 | 0.017197 | 0.020108 | 0.033665 | 0.912743 | 0.884218 | 0.869433 | 0.847186 | 0.837405 | 0.830626 | 0 | 0.011433 | 0.278 | 37,554 | 888 | 95 | 42.290541 | 0.799255 | 0.295281 | 0 | 0.870334 | 0 | 0 | 0.076979 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05501 | false | 0.003929 | 0.007859 | 0 | 0.153242 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
cb2dec0845e74fbef60099ea717533927237e6d9 | 9,597 | py | Python | wagtail_localize/test/migrations/0001_initial.py | KalobTaulien/wagtail-localize | e513d18dea5f76f6941f1acf55f945150de767eb | [
"BSD-3-Clause"
] | 123 | 2019-11-21T12:55:04.000Z | 2022-03-23T08:08:47.000Z | wagtail_localize/test/migrations/0001_initial.py | KalobTaulien/wagtail-localize | e513d18dea5f76f6941f1acf55f945150de767eb | [
"BSD-3-Clause"
] | 334 | 2019-11-20T10:40:08.000Z | 2022-03-27T17:33:01.000Z | wagtail_localize/test/migrations/0001_initial.py | KalobTaulien/wagtail-localize | e513d18dea5f76f6941f1acf55f945150de767eb | [
"BSD-3-Clause"
] | 41 | 2020-01-16T17:24:52.000Z | 2022-03-28T13:09:59.000Z | # Generated by Django 3.0.6 on 2020-07-17 15:07
from django.db import migrations, models
import django.db.models.deletion
import modelcluster.fields
import uuid
import wagtail.core.blocks
import wagtail.core.fields
import wagtail_localize.test.models
class Migration(migrations.Migration):
initial = True
de... | 64.844595 | 1,051 | 0.634469 | 943 | 9,597 | 6.281018 | 0.126193 | 0.078001 | 0.106196 | 0.070235 | 0.863414 | 0.863414 | 0.815465 | 0.796893 | 0.757724 | 0.718217 | 0 | 0.006637 | 0.215067 | 9,597 | 147 | 1,052 | 65.285714 | 0.779636 | 0.004689 | 0 | 0.628571 | 1 | 0 | 0.202304 | 0.072984 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.078571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
cb59bb63d7c6bcbc99189e814c1f5117d475e38d | 2,882 | py | Python | lookatweb/rules/ext.py | ivbeg/lookatweb | b98e3ebd29c00e2f718c3392bb31b7202aa82a99 | [
"BSD-3-Clause"
] | 2 | 2018-01-18T13:22:29.000Z | 2018-02-03T13:10:20.000Z | lookatweb/rules/ext.py | ivbeg/lookatweb | b98e3ebd29c00e2f718c3392bb31b7202aa82a99 | [
"BSD-3-Clause"
] | null | null | null | lookatweb/rules/ext.py | ivbeg/lookatweb | b98e3ebd29c00e2f718c3392bb31b7202aa82a99 | [
"BSD-3-Clause"
] | null | null | null | from .consts import *
# File extensions complex rules
EXT_COMPLEX_RULES = [
{'type' : RULETYPE_EQUAL, 'text' : 'php',
'entities' : [
{'name' : 'web:tech:lang/php'},
]
},
{'type' : RULETYPE_EQUAL, 'text' : 'py',
'entities' : [
{'name' : 'web:tech:lang/python'}... | 25.732143 | 50 | 0.409785 | 241 | 2,882 | 4.804979 | 0.165975 | 0.132988 | 0.30829 | 0.380829 | 0.783247 | 0.743523 | 0.743523 | 0.743523 | 0.743523 | 0.669257 | 0 | 0.001664 | 0.374393 | 2,882 | 111 | 51 | 25.963964 | 0.640599 | 0.010062 | 0 | 0.376147 | 0 | 0 | 0.312171 | 0.033672 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.009174 | 0 | 0.009174 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
cb9eb7fe70e64c8408cf69bf7cd437f1e412ea17 | 2,197 | py | Python | exercise_3/test_solution.py | jeff-a-holland/python_class_2021_B2 | e1dd93d50f332734954091c26c9a5ea7eb5251e7 | [
"MIT"
] | null | null | null | exercise_3/test_solution.py | jeff-a-holland/python_class_2021_B2 | e1dd93d50f332734954091c26c9a5ea7eb5251e7 | [
"MIT"
] | null | null | null | exercise_3/test_solution.py | jeff-a-holland/python_class_2021_B2 | e1dd93d50f332734954091c26c9a5ea7eb5251e7 | [
"MIT"
] | null | null | null | #!/Users/jeff/.pyenv/shims/python
from solution import count_words_sequential, count_words_threading
def test_non_threaded_empty_dir(tmp_path):
test_directory = tmp_path / 'testfiles'
test_directory.mkdir()
assert 0 == count_words_sequential(str(test_directory / '*.txt'))
def test_non_threaded_dirname(... | 27.123457 | 70 | 0.686391 | 298 | 2,197 | 4.738255 | 0.16443 | 0.276204 | 0.062323 | 0.113314 | 0.93272 | 0.93272 | 0.921388 | 0.901558 | 0.901558 | 0.839943 | 0 | 0.005596 | 0.186618 | 2,197 | 80 | 71 | 27.4625 | 0.784555 | 0.014565 | 0 | 0.734694 | 0 | 0 | 0.109057 | 0 | 0 | 0 | 0 | 0 | 0.163265 | 1 | 0.163265 | false | 0 | 0.020408 | 0 | 0.183673 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
cbc0b0595e9c2d3523d50e6c51b7eace108b4d12 | 14,240 | py | Python | tests/unit_tests/trading_tests/test_trader.py | CryptoRichy/OctoBot | 1ca5bd2ba4b8fc09859518fcb2a62f74a1435019 | [
"Apache-2.0"
] | 1 | 2018-11-26T16:43:36.000Z | 2018-11-26T16:43:36.000Z | tests/unit_tests/trading_tests/test_trader.py | CryptoRichy/OctoBot | 1ca5bd2ba4b8fc09859518fcb2a62f74a1435019 | [
"Apache-2.0"
] | null | null | null | tests/unit_tests/trading_tests/test_trader.py | CryptoRichy/OctoBot | 1ca5bd2ba4b8fc09859518fcb2a62f74a1435019 | [
"Apache-2.0"
] | null | null | null | import ccxt
import copy
from trading.exchanges.exchange_manager import ExchangeManager
from config.cst import *
from tests.test_utils.config import load_test_config
from trading.trader.order import *
from trading.trader.order_notifier import OrderNotifier
from trading.trader.trader import Trader
from trading.trader.tr... | 39.22865 | 98 | 0.619382 | 1,568 | 14,240 | 5.265944 | 0.070153 | 0.13322 | 0.064551 | 0.049049 | 0.865811 | 0.848008 | 0.828388 | 0.807436 | 0.786121 | 0.768197 | 0 | 0.012992 | 0.313553 | 14,240 | 362 | 99 | 39.337017 | 0.831714 | 0.033848 | 0 | 0.717647 | 0 | 0 | 0.008446 | 0 | 0 | 0 | 0 | 0 | 0.160784 | 1 | 0.047059 | false | 0 | 0.039216 | 0 | 0.098039 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
cbc78951b6a83518ca6ebb06c58b547a25edd18f | 42 | py | Python | app/api/__init__.py | smartcities-livinglab-udg/APP-SmartCheckIn | b0f3d6db53f4f0efa33b5be201ca56e8b721af78 | [
"MIT"
] | null | null | null | app/api/__init__.py | smartcities-livinglab-udg/APP-SmartCheckIn | b0f3d6db53f4f0efa33b5be201ca56e8b721af78 | [
"MIT"
] | null | null | null | app/api/__init__.py | smartcities-livinglab-udg/APP-SmartCheckIn | b0f3d6db53f4f0efa33b5be201ca56e8b721af78 | [
"MIT"
] | null | null | null | from app.api.v1 import mod_api as mod_api
| 21 | 41 | 0.809524 | 10 | 42 | 3.2 | 0.7 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.142857 | 42 | 1 | 42 | 42 | 0.861111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
1db3401e9635cf27cbdde5a074c99a848bb74212 | 16,537 | py | Python | upload_split_file/migrations/0001_initial.py | uktrade/fadmin2 | 0f774400fb816c9ca30e30b25ae542135966e185 | [
"MIT"
] | 3 | 2020-01-05T16:46:42.000Z | 2021-08-02T08:08:39.000Z | upload_split_file/migrations/0001_initial.py | uktrade/fadmin2 | 0f774400fb816c9ca30e30b25ae542135966e185 | [
"MIT"
] | 30 | 2019-11-28T15:16:35.000Z | 2021-08-16T14:49:58.000Z | upload_split_file/migrations/0001_initial.py | uktrade/fadmin2 | 0f774400fb816c9ca30e30b25ae542135966e185 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-12-09 11:49
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import simple_history.models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swa... | 39.46778 | 93 | 0.410836 | 1,036 | 16,537 | 6.333977 | 0.13417 | 0.023164 | 0.038403 | 0.060347 | 0.878238 | 0.868485 | 0.851417 | 0.843645 | 0.820786 | 0.795337 | 0 | 0.012842 | 0.49616 | 16,537 | 418 | 94 | 39.562201 | 0.774724 | 0.002721 | 0 | 0.807786 | 1 | 0 | 0.14621 | 0.056155 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.012165 | 0 | 0.021898 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
1dfbfdb6f5067433061ca43ed950db4cb242baf6 | 22,824 | py | Python | benders-facility-location-pricing/model_discrete_assortment.py | stefanoborto/optimization-equilibrium-dcm | 3b671d42bdcc6908c02aa0b3f1cb13dc866c1f6d | [
"MIT"
] | null | null | null | benders-facility-location-pricing/model_discrete_assortment.py | stefanoborto/optimization-equilibrium-dcm | 3b671d42bdcc6908c02aa0b3f1cb13dc866c1f6d | [
"MIT"
] | null | null | null | benders-facility-location-pricing/model_discrete_assortment.py | stefanoborto/optimization-equilibrium-dcm | 3b671d42bdcc6908c02aa0b3f1cb13dc866c1f6d | [
"MIT"
] | null | null | null | # CPLEX model for the choice-based facility location
# and pricing problem with discrete prices (compact formulation)
# Alternatives are duplicated to account for different possible price levels.
# General
import time
import numpy as np
# CPLEX
import cplex
from cplex.exceptions import CplexSolverError
#... | 38.167224 | 118 | 0.470119 | 2,462 | 22,824 | 4.290414 | 0.094639 | 0.060305 | 0.037489 | 0.06873 | 0.818896 | 0.800246 | 0.794945 | 0.794566 | 0.778377 | 0.776011 | 0 | 0.011049 | 0.314012 | 22,824 | 597 | 119 | 38.231156 | 0.663601 | 0.114266 | 0 | 0.844388 | 0 | 0.002551 | 0.087384 | 0.00379 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010204 | false | 0 | 0.015306 | 0 | 0.035714 | 0.045918 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
698154120abee0087ee3efff678b97d65ae8d6ba | 26,489 | py | Python | MirrorMirror/augmenters/param.py | RubanSeven/MirrorMirror | 47c7a1f458f87c536d068fcf249625f426920cc3 | [
"Apache-2.0"
] | 2 | 2021-07-07T13:21:11.000Z | 2021-09-24T06:57:16.000Z | MirrorMirror/augmenters/param.py | RubanSeven/MirrorMirror | 47c7a1f458f87c536d068fcf249625f426920cc3 | [
"Apache-2.0"
] | null | null | null | MirrorMirror/augmenters/param.py | RubanSeven/MirrorMirror | 47c7a1f458f87c536d068fcf249625f426920cc3 | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
"""
@author: RubanSeven
@project: MirrorMirror
"""
from ..theme import *
from ..utils.layout import clear_layout
INDENT = 24
class ParamBase(object):
def __init__(self):
self.name = ''
self.type = ''
self.value_range = None
self.describe = ''... | 35.318667 | 100 | 0.589037 | 3,067 | 26,489 | 4.785458 | 0.057711 | 0.144103 | 0.052463 | 0.020985 | 0.836343 | 0.813177 | 0.795599 | 0.766097 | 0.741909 | 0.724876 | 0 | 0.005688 | 0.316358 | 26,489 | 749 | 101 | 35.365821 | 0.804793 | 0.093322 | 0 | 0.773381 | 0 | 0 | 0.022733 | 0 | 0 | 0 | 0 | 0 | 0.02518 | 1 | 0.098921 | false | 0.001799 | 0.003597 | 0.01259 | 0.19964 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
69a8d58d0a743cd8fe85a28f8ed1360c83100b6f | 1,664 | py | Python | tests/texts/mutables.py | Intsights/flake8-intsights | b3785a3be855e05090641696e0648486107dba72 | [
"MIT"
] | 12 | 2020-02-18T17:47:57.000Z | 2021-07-13T10:23:40.000Z | tests/texts/mutables.py | Intsights/flake8-intsights | b3785a3be855e05090641696e0648486107dba72 | [
"MIT"
] | 7 | 2020-02-25T12:14:11.000Z | 2020-12-01T08:14:58.000Z | tests/texts/mutables.py | Intsights/flake8-intsights | b3785a3be855e05090641696e0648486107dba72 | [
"MIT"
] | 1 | 2020-07-01T15:49:28.000Z | 2020-07-01T15:49:28.000Z | mutables_test_text_001 = '''
def function(
param,
):
pass
'''
mutables_test_text_002 = '''
def function(
param=0,
):
pass
'''
mutables_test_text_003 = '''
def function(
param={},
):
pass
'''
mutables_test_text_004 = '''
def function(
param=[],
):
pass
'''
mutables_test_text_005 = '''
def... | 13.102362 | 28 | 0.602764 | 203 | 1,664 | 4.527094 | 0.152709 | 0.235038 | 0.313384 | 0.369967 | 0.849837 | 0.681175 | 0.591948 | 0.443961 | 0.4037 | 0.4037 | 0 | 0.048107 | 0.237981 | 1,664 | 126 | 29 | 13.206349 | 0.676656 | 0 | 0 | 0.761905 | 0 | 0 | 0.653846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
69dd78f17ed1ddc86c88f1f1a9aac67eedfb3638 | 99 | py | Python | build/bdist.win-amd64/dumb/Program Files/WindowsApps/PythonSoftwareFoundation.Python.3.9_3.9.752.0_x64__qbz5n2kfra8p0/Lib/site-packages/trading_algorithm_framework/__init__.py | devonindustries/trading_algorithm_framework | b88dcac5aa4ad164e005d8426915dffcbfa75f5f | [
"MIT"
] | null | null | null | build/bdist.win-amd64/dumb/Program Files/WindowsApps/PythonSoftwareFoundation.Python.3.9_3.9.752.0_x64__qbz5n2kfra8p0/Lib/site-packages/trading_algorithm_framework/__init__.py | devonindustries/trading_algorithm_framework | b88dcac5aa4ad164e005d8426915dffcbfa75f5f | [
"MIT"
] | null | null | null | build/bdist.win-amd64/dumb/Program Files/WindowsApps/PythonSoftwareFoundation.Python.3.9_3.9.752.0_x64__qbz5n2kfra8p0/Lib/site-packages/trading_algorithm_framework/__init__.py | devonindustries/trading_algorithm_framework | b88dcac5aa4ad164e005d8426915dffcbfa75f5f | [
"MIT"
] | 1 | 2021-03-05T12:34:18.000Z | 2021-03-05T12:34:18.000Z | from trading_algorithm_framework.portfolio import *
from trading_algorithm_framework.stock import * | 49.5 | 51 | 0.888889 | 12 | 99 | 7 | 0.583333 | 0.261905 | 0.47619 | 0.690476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070707 | 99 | 2 | 52 | 49.5 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
3864e2aa61bdb12eff257d3cbadcdb4edbbe581e | 114 | py | Python | python_gui_tkinter/KALU/GARBAGE1/SAFE28JUL/test.py | SayanGhoshBDA/code-backup | 8b6135facc0e598e9686b2e8eb2d69dd68198b80 | [
"MIT"
] | 16 | 2018-11-26T08:39:42.000Z | 2019-05-08T10:09:52.000Z | python_gui_tkinter/KALU/GARBAGE1/SAFE28JUL/test.py | SayanGhoshBDA/code-backup | 8b6135facc0e598e9686b2e8eb2d69dd68198b80 | [
"MIT"
] | 8 | 2020-05-04T06:29:26.000Z | 2022-02-12T05:33:16.000Z | python_gui_tkinter/KALU/GARBAGE1/SAFE28JUL/test.py | SayanGhoshBDA/code-backup | 8b6135facc0e598e9686b2e8eb2d69dd68198b80 | [
"MIT"
] | 5 | 2020-02-11T16:02:21.000Z | 2021-02-05T07:48:30.000Z | from AppOperations import AppOperations as ao
from AppOperations import Rec
ao.reset_slno()
#print(Rec.timestmp()) | 28.5 | 45 | 0.824561 | 16 | 114 | 5.8125 | 0.625 | 0.365591 | 0.494624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096491 | 114 | 4 | 46 | 28.5 | 0.902913 | 0.184211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
3886696ca34fbd88b3a7f251b2fea26bd6602dab | 2,803 | py | Python | tests/integration/operators_test/matmul_test_grouped.py | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 61 | 2020-07-06T17:11:46.000Z | 2022-03-12T14:42:51.000Z | tests/integration/operators_test/matmul_test_grouped.py | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 1 | 2021-02-25T01:30:29.000Z | 2021-11-09T11:13:14.000Z | tests/integration/operators_test/matmul_test_grouped.py | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 6 | 2020-07-15T12:33:13.000Z | 2021-11-07T06:55:00.000Z | # Copyright (c) 2019 Graphcore Ltd. All rights reserved.
import numpy as np
import popart
import torch
import pytest
from op_tester import op_tester
# `import test_util` requires adding to sys.path
import sys
from pathlib import Path
sys.path.append(Path(__file__).resolve().parent.parent)
import test_util as tu
def ... | 27.213592 | 63 | 0.635034 | 414 | 2,803 | 4.183575 | 0.152174 | 0.055427 | 0.069284 | 0.045035 | 0.843533 | 0.841224 | 0.81582 | 0.799076 | 0.799076 | 0.799076 | 0 | 0.063929 | 0.235462 | 2,803 | 102 | 64 | 27.480392 | 0.744284 | 0.036033 | 0 | 0.743243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.202703 | false | 0 | 0.108108 | 0 | 0.445946 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
38a0f41f0c84af26607b531cf8f1b897864509b1 | 11,793 | py | Python | random_programs/cave_escape.py | poplol240/programs | 73660555b866702091141a7c2231f96f18894cf5 | [
"MIT"
] | null | null | null | random_programs/cave_escape.py | poplol240/programs | 73660555b866702091141a7c2231f96f18894cf5 | [
"MIT"
] | null | null | null | random_programs/cave_escape.py | poplol240/programs | 73660555b866702091141a7c2231f96f18894cf5 | [
"MIT"
] | null | null | null | #93
#yay
#100% me
import random
hp = 3
hot_dog = ""
cake = ""
burger = ""
room = 1
monster = False
num1 = 0
action = 0
last_action = 0
print("You fell in a cave.")
print("It is deep and dark, you can't see anything.")
print("You found a flashlite in your bag.")
print("Your goal is to escape.")
p... | 30.871728 | 124 | 0.466378 | 1,582 | 11,793 | 3.490518 | 0.047408 | 0.192684 | 0.081673 | 0.1159 | 0.925752 | 0.922673 | 0.922673 | 0.922673 | 0.919051 | 0.919051 | 0 | 0.038756 | 0.402697 | 11,793 | 381 | 125 | 30.952756 | 0.739495 | 0.001018 | 0 | 0.878698 | 0 | 0.02071 | 0.311644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005917 | false | 0 | 0.002959 | 0 | 0.008876 | 0.488166 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 8 |
38a2e63bd996eeeab5695f0dc1218ffdbded79f1 | 151 | py | Python | distance.py | Thoritie/Variable-Delivery-Cost-Finder | 18ff8c58ff01a1efd0c08fb4e45aa3c840b080b4 | [
"MIT"
] | 4 | 2018-07-11T06:48:00.000Z | 2021-09-18T22:51:26.000Z | distance.py | Thoritie/Variable-Delivery-Cost-Finder | 18ff8c58ff01a1efd0c08fb4e45aa3c840b080b4 | [
"MIT"
] | 3 | 2018-10-02T05:51:28.000Z | 2018-10-19T01:19:03.000Z | distance.py | Thoritie/Variable-Delivery-Cost-Finder | 18ff8c58ff01a1efd0c08fb4e45aa3c840b080b4 | [
"MIT"
] | 5 | 2018-07-10T11:36:46.000Z | 2018-10-03T02:11:01.000Z | import math
def getDistance(obj1, obj2):
return math.sqrt((obj1['x']-obj2['x'])*(obj1['x']-obj2['x']) + (obj1['y']-obj2['y'])*(obj1['y']-obj2['y']))
| 30.2 | 108 | 0.569536 | 25 | 151 | 3.44 | 0.4 | 0.116279 | 0.209302 | 0.232558 | 0.27907 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.072848 | 151 | 4 | 109 | 37.75 | 0.542857 | 0 | 0 | 0 | 0 | 0 | 0.05298 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 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 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 8 |
c7f73e9db8ecb940c84e9e331e1022cc9ab114d9 | 169 | py | Python | mechanics.py | YummyPotatoPie/Physicsly | b35f8cc639172359f1dca9c86a5932423984ee88 | [
"MIT"
] | 2 | 2019-08-28T21:52:37.000Z | 2019-08-28T22:30:53.000Z | mechanics.py | YummyPotatoPie/Physicsly | b35f8cc639172359f1dca9c86a5932423984ee88 | [
"MIT"
] | null | null | null | mechanics.py | YummyPotatoPie/Physicsly | b35f8cc639172359f1dca9c86a5932423984ee88 | [
"MIT"
] | null | null | null | from MechanicsModels.RotationalMotion import *
from MechanicsModels.Weight import *
from MechanicsModels.MechanicsEnergy import *
from MechanicsModels.Motion import * | 42.25 | 47 | 0.846154 | 16 | 169 | 8.9375 | 0.4375 | 0.531469 | 0.524476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106509 | 169 | 4 | 48 | 42.25 | 0.94702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
2a2bbd2e5267fb8bd8a0a8fc5a518955cd4f6060 | 478 | py | Python | src/constants.py | matheus3301/neps-academy-scraper | cc8608b252a139354ef288db1c6318aaebec8842 | [
"MIT"
] | null | null | null | src/constants.py | matheus3301/neps-academy-scraper | cc8608b252a139354ef288db1c6318aaebec8842 | [
"MIT"
] | null | null | null | src/constants.py | matheus3301/neps-academy-scraper | cc8608b252a139354ef288db1c6318aaebec8842 | [
"MIT"
] | null | null | null | NEPS_URL = 'https://neps.academy'
ENGLISH_BUTTON = '/html/body/div/div/div/div[2]/div/div/a/div[2]/div'
LOGIN_PAGE_BUTTON = '//*[@id="app"]/div/div/div/div[1]/div/header/div/div/div[3]/div/div/nav/ul/li[6]/button'
EMAIL_INPUT = '/html/body/div/div/div/div[3]/div/div/div/form/div[1]/div/div[1]/div/input'
PASSWORD_INPUT ... | 68.285714 | 109 | 0.688285 | 98 | 478 | 3.27551 | 0.27551 | 0.448598 | 0.336449 | 0.149533 | 0.436137 | 0.436137 | 0.323988 | 0.261682 | 0.261682 | 0.261682 | 0 | 0.030435 | 0.037657 | 478 | 6 | 110 | 79.666667 | 0.667391 | 0 | 0 | 0 | 0 | 0.833333 | 0.753138 | 0.711297 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
2a81e9ddfb7ac78ff0f33d61525c7d598ea086a2 | 1,285 | py | Python | Aula/aula019_II_dicionarios.py | HenriqueSOliver/Python_CursoEmVideo | 6a8ab0c0fa3443990fc0bbbd817314065cf4e01b | [
"MIT"
] | 1 | 2021-04-08T19:54:01.000Z | 2021-04-08T19:54:01.000Z | Python (3)/Aula/aula019_II_dicionarios.py | Gafanhoto742/Python-3 | b0a13ec4cf60185af3ed2508fc69188e36415b80 | [
"MIT"
] | null | null | null | Python (3)/Aula/aula019_II_dicionarios.py | Gafanhoto742/Python-3 | b0a13ec4cf60185af3ed2508fc69188e36415b80 | [
"MIT"
] | null | null | null | # como adicionar itens em dicionario + lista em um looping + formatação
estado = {} # {} = dicionário
brasil = [] # [] lista
for c in range (0,3):
estado['uf']= str(input('Unidade Federativa: '))
estado['Sigla']=str(input('Sigla do Estado: '))
brasil.append(estado.copy()) # quando temos esse misto de dicio... | 40.15625 | 155 | 0.652918 | 192 | 1,285 | 4.369792 | 0.270833 | 0.057211 | 0.078665 | 0.096544 | 0.856973 | 0.856973 | 0.856973 | 0.856973 | 0.856973 | 0.810489 | 0 | 0.005888 | 0.207004 | 1,285 | 32 | 156 | 40.15625 | 0.817468 | 0.394553 | 0 | 0.740741 | 0 | 0 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.148148 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
2ad3e41cb346f27624ded3ecff1e49303bc8c52e | 349 | py | Python | tests/internal/instance_type/test_instance_type_vt_auto.py | frolovv/aws.ec2.compare | 582805823492f833d65c0441c4a14dce697c12aa | [
"Apache-2.0"
] | null | null | null | tests/internal/instance_type/test_instance_type_vt_auto.py | frolovv/aws.ec2.compare | 582805823492f833d65c0441c4a14dce697c12aa | [
"Apache-2.0"
] | null | null | null | tests/internal/instance_type/test_instance_type_vt_auto.py | frolovv/aws.ec2.compare | 582805823492f833d65c0441c4a14dce697c12aa | [
"Apache-2.0"
] | null | null | null |
# Testing module instance_type.vt
import pytest
import ec2_compare.internal.instance_type.vt
def test_get_internal_data_instance_type_vt_get_instances_list():
assert len(ec2_compare.internal.instance_type.vt.get_instances_list()) > 0
def test_get_internal_data_instance_type_vt_get():
assert len(ec2_compare.intern... | 34.9 | 76 | 0.848138 | 56 | 349 | 4.839286 | 0.339286 | 0.265683 | 0.309963 | 0.250923 | 0.826568 | 0.826568 | 0.612546 | 0.612546 | 0.612546 | 0 | 0 | 0.01548 | 0.074499 | 349 | 9 | 77 | 38.777778 | 0.823529 | 0.088825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 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 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 10 |
2aea3281e6f47b5f3ba0cc7ffa55f0e7eeaa12b3 | 125,925 | py | Python | MathStuff_GUI.py | ShadowGamer35/Math-Stuff | de20a03ef6c09b26229e5f7fe4b9a6b1f7f21d61 | [
"MIT"
] | null | null | null | MathStuff_GUI.py | ShadowGamer35/Math-Stuff | de20a03ef6c09b26229e5f7fe4b9a6b1f7f21d61 | [
"MIT"
] | null | null | null | MathStuff_GUI.py | ShadowGamer35/Math-Stuff | de20a03ef6c09b26229e5f7fe4b9a6b1f7f21d61 | [
"MIT"
] | null | null | null | from sys import exit
import pygame
import MathStuff as MATH
import GUICreator
StaticButton = GUICreator.StaticButton
DynamicButton = GUICreator.DynamicButton
StaticTextButton = GUICreator.StaticTextButton
DynamicTextButton = GUICreator.DynamicTextButton
class MathStuffGUI:
"""Create a GUI for my calculators."""... | 46.364138 | 177 | 0.522208 | 13,867 | 125,925 | 4.405279 | 0.020697 | 0.119778 | 0.101362 | 0.070227 | 0.933162 | 0.911701 | 0.882203 | 0.864311 | 0.835631 | 0.823304 | 0 | 0.018251 | 0.38866 | 125,925 | 2,715 | 178 | 46.381215 | 0.775275 | 0.023951 | 0 | 0.76752 | 0 | 0.000839 | 0.066874 | 0.006033 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015107 | false | 0.000839 | 0.001679 | 0 | 0.018884 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
6324cb2187a53dcb5243d8f01f07a5ca3641c6b3 | 12,140 | py | Python | projects/07/code_writer.py | Youngermaster/Nand2Tetris-Solutions | 9fb4ac31a0558bcc2324696bfb451aac11232088 | [
"MIT"
] | null | null | null | projects/07/code_writer.py | Youngermaster/Nand2Tetris-Solutions | 9fb4ac31a0558bcc2324696bfb451aac11232088 | [
"MIT"
] | null | null | null | projects/07/code_writer.py | Youngermaster/Nand2Tetris-Solutions | 9fb4ac31a0558bcc2324696bfb451aac11232088 | [
"MIT"
] | null | null | null | from parser import Parser
class CodeWriter:
def __init__(self, path):
self.parser = Parser(path)
# just perform the logic of the recommended setFileName constructor here
ind1 = path.find('/')
ind2 = path.find('.')
self.writefile = path[:ind1] + "/" + path[ind1+1:ind2]
... | 39.415584 | 100 | 0.469934 | 1,651 | 12,140 | 3.423985 | 0.09146 | 0.258978 | 0.416239 | 0.289758 | 0.720502 | 0.709181 | 0.70865 | 0.70865 | 0.68813 | 0.672209 | 0 | 0.017004 | 0.360544 | 12,140 | 307 | 101 | 39.543974 | 0.711194 | 0.109473 | 0 | 0.735178 | 0 | 0 | 0.150687 | 0.017373 | 0 | 0 | 0 | 0.003257 | 0.007905 | 1 | 0.01581 | false | 0.01581 | 0.003953 | 0 | 0.023715 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
632d627a4bcd3708d72cd96783ba50edc3b46e8f | 44,082 | py | Python | sdk/python/pulumi_aws/sns/topic_subscription.py | alexbowers/pulumi-aws | 7dbdb03b1e4f7c0d51d5b5d17233ff4465c3eff5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/sns/topic_subscription.py | alexbowers/pulumi-aws | 7dbdb03b1e4f7c0d51d5b5d17233ff4465c3eff5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/sns/topic_subscription.py | alexbowers/pulumi-aws | 7dbdb03b1e4f7c0d51d5b5d17233ff4465c3eff5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 61.055402 | 750 | 0.696634 | 5,659 | 44,082 | 5.265595 | 0.057607 | 0.058326 | 0.049332 | 0.045775 | 0.928082 | 0.911336 | 0.899557 | 0.880294 | 0.875495 | 0.856299 | 0 | 0.002226 | 0.205004 | 44,082 | 721 | 751 | 61.140083 | 0.848053 | 0.475818 | 0 | 0.732057 | 1 | 0 | 0.121825 | 0.048842 | 0 | 0 | 0 | 0 | 0 | 1 | 0.165072 | false | 0.002392 | 0.011962 | 0 | 0.277512 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
632e657c2c55ebf6b6629dd8c81784e30e2577a5 | 1,464 | py | Python | regex/regex.py | yukar1z0e/CrackWeChat | 65c181033b8c290693cc37a82d29448fd568ed8c | [
"Apache-2.0"
] | 10 | 2019-09-16T09:24:16.000Z | 2021-07-22T07:20:13.000Z | regex/regex.py | yukar1z0e/CrackWeChat | 65c181033b8c290693cc37a82d29448fd568ed8c | [
"Apache-2.0"
] | null | null | null | regex/regex.py | yukar1z0e/CrackWeChat | 65c181033b8c290693cc37a82d29448fd568ed8c | [
"Apache-2.0"
] | 15 | 2019-09-22T19:37:50.000Z | 2022-01-18T06:08:21.000Z | # -*- coding: UTF-0 -*-
import os
import os.path
import re
print "-----------"
for line in open("C:/Users/yakum/Desktop/test0.txt", 'rb'):
it0=re.finditer(r"(?<=;Alias: ).*?(?=;EncryptUsername)",str(line))
for match0 in it0:
print match0.group()
print "-----------"
for line in open("C:/Users/yakum/Desk... | 34.046512 | 70 | 0.55806 | 200 | 1,464 | 4.085 | 0.17 | 0.068543 | 0.102815 | 0.119951 | 0.837209 | 0.837209 | 0.837209 | 0.837209 | 0.837209 | 0.837209 | 0 | 0.029388 | 0.163251 | 1,464 | 42 | 71 | 34.857143 | 0.637551 | 0.014344 | 0 | 0.74359 | 0 | 0 | 0.370139 | 0.172222 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.384615 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
2d64733b86cb737f0cd64d405e2294e80be5cb0a | 913 | py | Python | python/testData/inspections/PyTypeCheckerInspection/ComparisonOperators.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/inspections/PyTypeCheckerInspection/ComparisonOperators.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/inspections/PyTypeCheckerInspection/ComparisonOperators.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | def test():
def f(x):
"""
:type x: str
"""
pass
class C(object):
def __gt__(self, other):
return []
o = object()
c = C()
f(<warning descr="Expected type 'str', got 'bool' instead">1 < 2</warning>)
f(<warning descr="Expected type 'str', got 'boo... | 45.65 | 143 | 0.580504 | 129 | 913 | 4.077519 | 0.224806 | 0.205323 | 0.342205 | 0.410646 | 0.743346 | 0.743346 | 0.743346 | 0.743346 | 0.743346 | 0.589354 | 0 | 0.011268 | 0.222344 | 913 | 19 | 144 | 48.052632 | 0.729577 | 0 | 0 | 0 | 0 | 0 | 0.403649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.0625 | 0 | null | null | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 9 |
2d66c6761be5cf43ee49fb07d7e5c9209cd76478 | 4,158 | py | Python | test/test_encoder.py | mrjohnmain/pyembroidery | 3acaa543e3ffaad67f83092ab3151fce87c76ec4 | [
"MIT"
] | null | null | null | test/test_encoder.py | mrjohnmain/pyembroidery | 3acaa543e3ffaad67f83092ab3151fce87c76ec4 | [
"MIT"
] | null | null | null | test/test_encoder.py | mrjohnmain/pyembroidery | 3acaa543e3ffaad67f83092ab3151fce87c76ec4 | [
"MIT"
] | null | null | null | from __future__ import print_function
import unittest
from pattern_for_tests import *
class TestEmbpattern(unittest.TestCase):
def test_encoder_bookend_color_break(self):
pattern = EmbPattern()
pattern.add_command(COLOR_BREAK)
pattern.add_command(COLOR_BREAK)
pattern.add_command... | 36.473684 | 98 | 0.664262 | 524 | 4,158 | 4.994275 | 0.10687 | 0.223538 | 0.275124 | 0.175392 | 0.839129 | 0.797478 | 0.781811 | 0.781811 | 0.761941 | 0.753917 | 0 | 0.052947 | 0.236893 | 4,158 | 113 | 99 | 36.79646 | 0.771825 | 0 | 0 | 0.798077 | 0 | 0 | 0.013468 | 0.005051 | 0 | 0 | 0 | 0 | 0.067308 | 1 | 0.048077 | false | 0 | 0.038462 | 0 | 0.096154 | 0.009615 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
2dc6bfadc24ecea9f04ddd365686b61005d405ce | 31,719 | py | Python | indriyaan-frontend/decode.py | saurav111/indriyaan | 276f2af95d6a7b67c9c5021a14911127e4f76649 | [
"MIT"
] | null | null | null | indriyaan-frontend/decode.py | saurav111/indriyaan | 276f2af95d6a7b67c9c5021a14911127e4f76649 | [
"MIT"
] | null | null | null | indriyaan-frontend/decode.py | saurav111/indriyaan | 276f2af95d6a7b67c9c5021a14911127e4f76649 | [
"MIT"
] | null | null | null | import base64
string = '/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAARCADwAUADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwI... | 6,343.8 | 31,647 | 0.964658 | 1,099 | 31,719 | 27.840764 | 0.966333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170377 | 0.000221 | 31,719 | 4 | 31,648 | 7,929.75 | 0.794463 | 0 | 0 | 0 | 0 | 0.333333 | 0.997541 | 0.997383 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 9 |
2de4a46676e25a9898bcbb5e3491dd6ab8e021ee | 78 | py | Python | pacote_python/novo_pacote.py | Mlluiz39/bootcamp_igti | 44b2b4322eaf8693f5575f8c27776c0256c86e60 | [
"MIT"
] | null | null | null | pacote_python/novo_pacote.py | Mlluiz39/bootcamp_igti | 44b2b4322eaf8693f5575f8c27776c0256c86e60 | [
"MIT"
] | null | null | null | pacote_python/novo_pacote.py | Mlluiz39/bootcamp_igti | 44b2b4322eaf8693f5575f8c27776c0256c86e60 | [
"MIT"
] | null | null | null | import pacotes_em_python, pacotes_python
pacotes_em_python()
pacotes_python() | 19.5 | 40 | 0.871795 | 11 | 78 | 5.636364 | 0.363636 | 0.629032 | 0.483871 | 0.709677 | 0.903226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064103 | 78 | 4 | 41 | 19.5 | 0.849315 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 8 |
2dfd70b552bd900ef08bd015efcaa02d1facaf54 | 15,576 | py | Python | src/openprocurement/api/tests/chronograph.py | Leits/openprocurement.api | 9c7cac2f29343d8f184d89551bf0461302b304c8 | [
"Apache-2.0"
] | null | null | null | src/openprocurement/api/tests/chronograph.py | Leits/openprocurement.api | 9c7cac2f29343d8f184d89551bf0461302b304c8 | [
"Apache-2.0"
] | 2 | 2021-03-26T00:34:47.000Z | 2022-03-21T22:20:52.000Z | src/openprocurement/api/tests/chronograph.py | leits/openprocurement.api | 9c7cac2f29343d8f184d89551bf0461302b304c8 | [
"Apache-2.0"
] | 1 | 2017-08-14T08:05:31.000Z | 2017-08-14T08:05:31.000Z | # -*- coding: utf-8 -*-
import unittest
from openprocurement.api.tests.base import BaseTenderWebTest, test_lots, test_bids
class TenderSwitchTenderingResourceTest(BaseTenderWebTest):
def test_switch_to_tendering_by_enquiryPeriod_endDate(self):
self.app.authorization = ('Basic', ('chronograph', ''))
... | 51.068852 | 179 | 0.656009 | 1,613 | 15,576 | 6.203968 | 0.075635 | 0.094434 | 0.137903 | 0.050365 | 0.834416 | 0.822624 | 0.818927 | 0.79994 | 0.79994 | 0.778855 | 0 | 0.015946 | 0.174628 | 15,576 | 304 | 180 | 51.236842 | 0.762446 | 0.003017 | 0 | 0.741667 | 0 | 0 | 0.207343 | 0.021643 | 0 | 0 | 0 | 0 | 0.279167 | 1 | 0.070833 | false | 0 | 0.008333 | 0 | 0.220833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
9321dbb6daf530700d56a9ac0c8fab97f59e9d76 | 430 | py | Python | wagtaillinkchecker/utils.py | spapas/wagtail-linkchecker | c94114b0c91e90af778fad053d27228a8e4eb980 | [
"BSD-3-Clause"
] | 26 | 2016-01-21T00:40:25.000Z | 2019-01-31T03:52:38.000Z | wagtaillinkchecker/utils.py | spapas/wagtail-linkchecker | c94114b0c91e90af778fad053d27228a8e4eb980 | [
"BSD-3-Clause"
] | 13 | 2019-03-13T17:54:22.000Z | 2022-03-08T00:10:09.000Z | wagtaillinkchecker/utils.py | spapas/wagtail-linkchecker | c94114b0c91e90af778fad053d27228a8e4eb980 | [
"BSD-3-Clause"
] | 15 | 2019-04-08T10:43:14.000Z | 2022-03-01T01:32:52.000Z | import re
from wagtail import __version__ as WAGTAIL_VERSION
def is_wagtail_version_more_than_equal_to_2_5():
expression = '^((2.([5-9]{1,}|([1-9]{1,}[0-9]{1,}))(.\d+)*)|(([3-9]{1,})(.\d+)*))$'
return re.search(expression, WAGTAIL_VERSION)
def is_wagtail_version_more_than_equal_to_2_0():
expression = '^((2.([0-... | 26.875 | 84 | 0.625581 | 73 | 430 | 3.369863 | 0.30137 | 0.065041 | 0.04878 | 0.154472 | 0.756098 | 0.756098 | 0.756098 | 0.756098 | 0.756098 | 0.756098 | 0 | 0.075949 | 0.081395 | 430 | 15 | 85 | 28.666667 | 0.546835 | 0 | 0 | 0.25 | 0 | 0.25 | 0.317016 | 0.317016 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 8 |
4f082d05cc6f74fcb5cea306f7e727c15b4efdba | 54 | py | Python | imports/file1.py | gunnarpope/python | 4cef021cf414c29bbc61485b57b4f6e533d5c0c8 | [
"MIT"
] | 1 | 2019-01-24T22:17:51.000Z | 2019-01-24T22:17:51.000Z | imports/file1.py | gunnarpope/python | 4cef021cf414c29bbc61485b57b4f6e533d5c0c8 | [
"MIT"
] | 1 | 2021-06-02T00:16:12.000Z | 2021-06-02T00:16:12.000Z | imports/file1.py | gunnarpope/python | 4cef021cf414c29bbc61485b57b4f6e533d5c0c8 | [
"MIT"
] | null | null | null |
from file2 import data
def printout():
print(data)
| 9 | 22 | 0.722222 | 8 | 54 | 4.875 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.185185 | 54 | 5 | 23 | 10.8 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0.666667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 7 |
879b6bc9899678f394bed531c878b084306de3e1 | 267 | py | Python | Codewars/7kyu/relatively-prime-numbers/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | 7 | 2017-09-20T16:40:39.000Z | 2021-08-31T18:15:08.000Z | Codewars/7kyu/relatively-prime-numbers/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | Codewars/7kyu/relatively-prime-numbers/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | # Python - 3.6.0
test.assert_equals(relatively_prime(8, [1, 2, 3, 4, 5, 6, 7]), [1, 3, 5, 7])
test.assert_equals(relatively_prime(15, [72, 27, 32, 61, 77, 11, 40]), [32, 61, 77, 11])
test.assert_equals(relatively_prime(210, [15, 100, 2222222, 6, 4, 12369, 99]), [])
| 44.5 | 88 | 0.629213 | 51 | 267 | 3.176471 | 0.54902 | 0.185185 | 0.296296 | 0.481481 | 0.574074 | 0 | 0 | 0 | 0 | 0 | 0 | 0.275109 | 0.142322 | 267 | 5 | 89 | 53.4 | 0.432314 | 0.052434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
87b830eb8ab6e2e9c7128e768908d2c9d6f5b5a3 | 211 | py | Python | tests/parser/aggregates.min.propagation.4.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | tests/parser/aggregates.min.propagation.4.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | tests/parser/aggregates.min.propagation.4.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | input = """
c(1).
c(2).
c(3).
a(X) | -a(X) :- c(X).
minim(X) :- a(X), #min{ D : a(D) } = X.
"""
output = """
c(1).
c(2).
c(3).
a(X) | -a(X) :- c(X).
minim(X) :- a(X), #min{ D : a(D) } = X.
"""
| 11.105263 | 40 | 0.308057 | 44 | 211 | 1.477273 | 0.25 | 0.184615 | 0.184615 | 0.123077 | 0.830769 | 0.830769 | 0.830769 | 0.830769 | 0.830769 | 0.830769 | 0 | 0.040268 | 0.293839 | 211 | 18 | 41 | 11.722222 | 0.395973 | 0 | 0 | 0.857143 | 0 | 0.142857 | 0.84264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
87d1376eea5941afbf9f23cfb70d0e2faad54cca | 2,695 | py | Python | courses.py | UQ-UQx/old_injestor | e4add6d08239875af7b2669a29814e8679fffcb0 | [
"MIT"
] | null | null | null | courses.py | UQ-UQx/old_injestor | e4add6d08239875af7b2669a29814e8679fffcb0 | [
"MIT"
] | 1 | 2021-06-01T21:53:15.000Z | 2021-06-01T21:53:15.000Z | courses.py | UQ-UQx/old_injestor | e4add6d08239875af7b2669a29814e8679fffcb0 | [
"MIT"
] | null | null | null | """
EDX_DATABASES = {
'think_101x': {'dbname': 'UQx_Think101x_1T2014', 'mongoname': 'UQx/Think101x/1T2014', 'discussiontable': 'UQx-HYPERS301x-1T2014-prod', 'icon': 'fa-heart'},
'hypers_301x': {'dbname': 'UQx_HYPERS301x_1T2014', 'mongoname': 'UQx/HYPERS301x/1T2014', 'discussiontable': 'UQx-HYPERS301x-1T2014-pro... | 117.173913 | 171 | 0.705751 | 304 | 2,695 | 6.065789 | 0.128289 | 0.078091 | 0.086768 | 0.069414 | 0.951193 | 0.951193 | 0.951193 | 0.951193 | 0.951193 | 0.951193 | 0 | 0.190553 | 0.080891 | 2,695 | 23 | 172 | 117.173913 | 0.553896 | 0.48757 | 0 | 0 | 0 | 0 | 0.739447 | 0.240175 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
359720adad99a4f9758bbe6949d1f71d55eeaccb | 95,920 | py | Python | opnsense_cli/tests/commands/plugin/test_firewall_rule.py | jan-win1993/opn-cli | 83c4792571dacbe6483722a95276954c7a2d0b3c | [
"BSD-2-Clause"
] | 13 | 2021-05-17T10:42:25.000Z | 2022-02-21T02:10:41.000Z | opnsense_cli/tests/commands/plugin/test_firewall_rule.py | jan-win1993/opn-cli | 83c4792571dacbe6483722a95276954c7a2d0b3c | [
"BSD-2-Clause"
] | 14 | 2021-05-17T13:53:27.000Z | 2021-12-16T12:45:44.000Z | opnsense_cli/tests/commands/plugin/test_firewall_rule.py | jan-win1993/opn-cli | 83c4792571dacbe6483722a95276954c7a2d0b3c | [
"BSD-2-Clause"
] | 2 | 2021-04-28T08:41:07.000Z | 2022-03-28T10:20:51.000Z | from unittest.mock import patch, Mock
from opnsense_cli.commands.plugin.firewall.rule import rule
from opnsense_cli.tests.commands.base import CommandTestCase
class TestFirewallRuleCommands(CommandTestCase):
def setUp(self):
self._api_data_fixtures_savepoint_OK = {
"status": "ok",
... | 43.110112 | 119 | 0.178795 | 3,794 | 95,920 | 4.403532 | 0.08408 | 0.227869 | 0.028311 | 0.048902 | 0.915006 | 0.902376 | 0.884719 | 0.858742 | 0.853534 | 0.848866 | 0 | 0.040326 | 0.731391 | 95,920 | 2,224 | 120 | 43.129496 | 0.608112 | 0 | 0 | 0.683971 | 0 | 0.001366 | 0.144256 | 0.014408 | 0 | 0 | 0 | 0 | 0.008652 | 1 | 0.006375 | false | 0.006375 | 0.001366 | 0 | 0.008197 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 8 |
35cca9fb7eafb1a9ef2343d233045c57da8e2297 | 18,433 | py | Python | api/tests.py | Xavier-Cliquennois/ac-mediator | ce55b65ab7f4532fc11fbb2f994518c60240bfdc | [
"Apache-2.0"
] | 9 | 2016-11-17T08:04:01.000Z | 2020-09-10T05:58:36.000Z | api/tests.py | Xavier-Cliquennois/ac-mediator | ce55b65ab7f4532fc11fbb2f994518c60240bfdc | [
"Apache-2.0"
] | 23 | 2016-10-26T14:43:55.000Z | 2021-06-10T20:02:38.000Z | api/tests.py | Xavier-Cliquennois/ac-mediator | ce55b65ab7f4532fc11fbb2f994518c60240bfdc | [
"Apache-2.0"
] | 3 | 2018-03-03T12:07:28.000Z | 2020-08-02T12:54:31.000Z | from django.test import TestCase, override_settings
from api.models import ApiClient
from accounts.models import Account
from django.core.urlresolvers import reverse
from services import management
from django.conf import settings
import oauth2_provider
import datetime
class OAuth2TestCase(TestCase):
def setUp(s... | 42.570439 | 119 | 0.618999 | 1,958 | 18,433 | 5.594995 | 0.117467 | 0.037974 | 0.053765 | 0.036513 | 0.771702 | 0.743496 | 0.737928 | 0.710361 | 0.701689 | 0.692104 | 0 | 0.01254 | 0.277546 | 18,433 | 432 | 120 | 42.668981 | 0.810092 | 0.142842 | 0 | 0.716374 | 0 | 0 | 0.176803 | 0.054914 | 0 | 0 | 0 | 0 | 0.137427 | 1 | 0.035088 | false | 0.099415 | 0.02924 | 0.002924 | 0.081871 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
ea0ca27198361255426d3ae37e032a51153c9bb6 | 6,075 | py | Python | behavior_cloning/learner.py | chickert/reinforcement_learning | 473323f08b079004f27a7f0931e5e9a46bfad347 | [
"MIT"
] | null | null | null | behavior_cloning/learner.py | chickert/reinforcement_learning | 473323f08b079004f27a7f0931e5e9a46bfad347 | [
"MIT"
] | null | null | null | behavior_cloning/learner.py | chickert/reinforcement_learning | 473323f08b079004f27a7f0931e5e9a46bfad347 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as f
from mlp import MultiLayerPerceptron
import torch
import torch.nn as nn
import torch.optim as optim
import logging
import numpy as np
device = "cuda" if torch.cuda.is_available() else "cpu"
logger = logging.getLogger(__name__)
logging.basicConfig... | 37.269939 | 92 | 0.614979 | 749 | 6,075 | 4.663551 | 0.145527 | 0.041225 | 0.054967 | 0.054395 | 0.865445 | 0.848841 | 0.800458 | 0.800458 | 0.780418 | 0.758088 | 0 | 0.007938 | 0.294979 | 6,075 | 163 | 93 | 37.269939 | 0.807611 | 0.024527 | 0 | 0.764228 | 0 | 0 | 0.052748 | 0.011194 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.073171 | 0 | 0.170732 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ea2c5580621c8f527885096a21fe9aa165b0519f | 691 | py | Python | Jupyter/cntlogs.py | MooersLab/jupyterlabpymolpysnipsplus | b886750d63372434df53d4d6d7cdad6cb02ae4e7 | [
"MIT"
] | null | null | null | Jupyter/cntlogs.py | MooersLab/jupyterlabpymolpysnipsplus | b886750d63372434df53d4d6d7cdad6cb02ae4e7 | [
"MIT"
] | null | null | null | Jupyter/cntlogs.py | MooersLab/jupyterlabpymolpysnipsplus | b886750d63372434df53d4d6d7cdad6cb02ae4e7 | [
"MIT"
] | null | null | null | # Description: Count number of *.log files in current directory.
# Source: placeHolder
"""
cmd.do('print("Count the number of log image files in current directory.");')
cmd.do('print("Usage: cntlogs");')
cmd.do('myPath = os.getcwd();')
cmd.do('logCounter = len(glob.glob1(myPath,"*.log"));')
cmd.do('print("Number of ... | 40.647059 | 94 | 0.68741 | 103 | 691 | 4.61165 | 0.242718 | 0.105263 | 0.126316 | 0.134737 | 0.858947 | 0.858947 | 0.858947 | 0.858947 | 0.858947 | 0.858947 | 0 | 0.003279 | 0.117221 | 691 | 16 | 95 | 43.1875 | 0.77541 | 0.551375 | 0 | 0 | 0 | 0 | 0.800664 | 0.106312 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 9 |
ea58f6e7def1d143596a49baf4ddf5dcbb67c597 | 176 | py | Python | stochastic/processes/__init__.py | zaczw/stochastic | 7de6ec2f9050120adfcffeebc94bfc17ec916150 | [
"MIT"
] | 268 | 2018-01-17T18:45:20.000Z | 2022-03-28T06:05:30.000Z | stochastic/processes/__init__.py | zaczw/stochastic | 7de6ec2f9050120adfcffeebc94bfc17ec916150 | [
"MIT"
] | 42 | 2018-07-11T02:17:43.000Z | 2021-11-27T03:27:32.000Z | stochastic/processes/__init__.py | zaczw/stochastic | 7de6ec2f9050120adfcffeebc94bfc17ec916150 | [
"MIT"
] | 56 | 2018-02-20T09:32:50.000Z | 2022-02-15T15:39:37.000Z | from stochastic.processes.continuous import *
from stochastic.processes.diffusion import *
from stochastic.processes.discrete import *
from stochastic.processes.noise import *
| 35.2 | 45 | 0.840909 | 20 | 176 | 7.4 | 0.4 | 0.378378 | 0.621622 | 0.587838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 176 | 4 | 46 | 44 | 0.925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
5780e1fd935276aab5a9a1d63b4738644486070d | 6,402 | py | Python | torsiondrive/tests/test_launch.py | dotsdl/torsiondrive | b6b9530801bdd20f2c8b52051d1ffb1453080e04 | [
"MIT"
] | 15 | 2018-10-11T13:08:57.000Z | 2022-03-16T03:25:20.000Z | torsiondrive/tests/test_launch.py | dotsdl/torsiondrive | b6b9530801bdd20f2c8b52051d1ffb1453080e04 | [
"MIT"
] | 47 | 2018-08-28T06:13:11.000Z | 2022-01-30T20:35:15.000Z | torsiondrive/tests/test_launch.py | dotsdl/torsiondrive | b6b9530801bdd20f2c8b52051d1ffb1453080e04 | [
"MIT"
] | 12 | 2019-02-01T23:38:27.000Z | 2022-03-18T11:54:26.000Z | """
Unit and regression test for the torsiondrive.launch module
"""
import pytest
from torsiondrive.launch import load_dihedralfile, create_engine
def test_load_dihedralfile_basic(tmpdir):
tmpdir.chdir()
fn = 'dihedrals.txt'
# basic test loading one dihedral
dihedral_str = '''
#i j k l
1 2 3 ... | 31.382353 | 89 | 0.615589 | 950 | 6,402 | 3.983158 | 0.094737 | 0.022199 | 0.026163 | 0.023256 | 0.838795 | 0.821353 | 0.800211 | 0.761364 | 0.752907 | 0.733615 | 0 | 0.069277 | 0.273977 | 6,402 | 203 | 90 | 31.536946 | 0.744836 | 0.129491 | 0 | 0.874286 | 0 | 0 | 0.227675 | 0 | 0 | 0 | 0 | 0 | 0.131429 | 1 | 0.022857 | false | 0 | 0.011429 | 0 | 0.034286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
57b5773ef813265c141aa42b7b3dbac7a02b2261 | 2,850 | py | Python | test/functional/test_only_unread_groups.py | thenetcircle/dino-service | 90f90e0b21ba920506dc8fc44caf69d5bed9fb6a | [
"MIT"
] | null | null | null | test/functional/test_only_unread_groups.py | thenetcircle/dino-service | 90f90e0b21ba920506dc8fc44caf69d5bed9fb6a | [
"MIT"
] | 4 | 2021-05-24T04:31:34.000Z | 2021-06-28T03:38:56.000Z | test/functional/test_only_unread_groups.py | thenetcircle/dino-service | 90f90e0b21ba920506dc8fc44caf69d5bed9fb6a | [
"MIT"
] | null | null | null | from test.base import BaseTest
from test.functional.base_functional import BaseServerRestApi
class TestOnlyUnreadGroups(BaseServerRestApi):
def test_only_unread(self):
self.assert_groups_for_user(0)
self.send_1v1_message(user_id=BaseTest.USER_ID, receiver_id=8888)
self.send_1v1_message(use... | 46.721311 | 102 | 0.74386 | 430 | 2,850 | 4.57907 | 0.086047 | 0.146267 | 0.170645 | 0.195023 | 0.900965 | 0.900965 | 0.900965 | 0.89741 | 0.887252 | 0.848654 | 0 | 0.022472 | 0.156842 | 2,850 | 60 | 103 | 47.5 | 0.796921 | 0 | 0 | 0.714286 | 0 | 0 | 0.002807 | 0 | 0 | 0 | 0 | 0 | 0.380952 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.119048 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
17cccf2516a78bd09f3d71ef1216c220b07a26af | 5,792 | py | Python | src/compas/datastructures/_mixins/filters.py | philianeles/compas | 129a5a7e9d8832495d2bbee6ce7c6463ab50f2d1 | [
"MIT"
] | null | null | null | src/compas/datastructures/_mixins/filters.py | philianeles/compas | 129a5a7e9d8832495d2bbee6ce7c6463ab50f2d1 | [
"MIT"
] | null | null | null | src/compas/datastructures/_mixins/filters.py | philianeles/compas | 129a5a7e9d8832495d2bbee6ce7c6463ab50f2d1 | [
"MIT"
] | null | null | null | from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
__all__ = [
'VertexFilter',
'EdgeFilter',
'FaceFilter',
]
class VertexFilter(object):
def vertices_where(self, conditions, data=False):
"""Get vertices for which a certain condition ... | 29.702564 | 83 | 0.403315 | 514 | 5,792 | 4.447471 | 0.180934 | 0.064304 | 0.07874 | 0.111549 | 0.742345 | 0.730096 | 0.702975 | 0.702975 | 0.702975 | 0.702975 | 0 | 0.000353 | 0.510359 | 5,792 | 194 | 84 | 29.85567 | 0.805712 | 0.189227 | 0 | 0.756522 | 0 | 0 | 0.008963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026087 | false | 0.008696 | 0.026087 | 0 | 0.078261 | 0.008696 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
aa372bcc97f282a341e70035b04fff00322e29f4 | 8,029 | py | Python | auto_addons/tests.py | jmartinezespza/odoo-docker | 288064e879c2a3910197c8b91473358e0bb25928 | [
"MIT"
] | null | null | null | auto_addons/tests.py | jmartinezespza/odoo-docker | 288064e879c2a3910197c8b91473358e0bb25928 | [
"MIT"
] | null | null | null | auto_addons/tests.py | jmartinezespza/odoo-docker | 288064e879c2a3910197c8b91473358e0bb25928 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2015 Elico Corp
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import unittest
from addons import *
class RepoTest(unittest.TestCase):
def test_check_is_url(self):
remote_url = 'connector'
self.repo = Repo(remote_url)
self.assertTrue(se... | 48.077844 | 105 | 0.692863 | 987 | 8,029 | 5.419453 | 0.074975 | 0.148065 | 0.287904 | 0.345485 | 0.916059 | 0.90802 | 0.888764 | 0.867639 | 0.865208 | 0.862965 | 0 | 0.004727 | 0.183211 | 8,029 | 166 | 106 | 48.36747 | 0.810918 | 0.013576 | 0 | 0.736111 | 0 | 0.006944 | 0.145781 | 0.021981 | 0 | 0 | 0 | 0 | 0.569444 | 1 | 0.111111 | false | 0 | 0.013889 | 0 | 0.131944 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
a4d7d60fb8beb501b8ba03ee0c2e9f84dc57af38 | 680 | py | Python | tests/unit/test_rules_visitcount.py | torchbox/wagtail-personalisation | fdc2b971943cd24dca2d325604e35b56b5858d0d | [
"MIT"
] | 1 | 2020-04-25T06:23:02.000Z | 2020-04-25T06:23:02.000Z | tests/unit/test_rules_visitcount.py | torchbox/wagtail-personalisation | fdc2b971943cd24dca2d325604e35b56b5858d0d | [
"MIT"
] | 3 | 2017-10-20T11:29:42.000Z | 2019-09-26T07:38:05.000Z | tests/unit/test_rules_visitcount.py | torchbox/wagtail-personalisation | fdc2b971943cd24dca2d325604e35b56b5858d0d | [
"MIT"
] | 1 | 2017-11-09T08:30:28.000Z | 2017-11-09T08:30:28.000Z | import pytest
@pytest.mark.django_db
def test_visit_count(site, client):
response = client.get('/')
assert response.status_code == 200
visit_count = client.session['visit_count']
assert visit_count[0]['path'] == '/'
assert visit_count[0]['count'] == 1
response = client.get('/')
assert res... | 29.565217 | 47 | 0.654412 | 90 | 680 | 4.744444 | 0.255556 | 0.30445 | 0.224824 | 0.199063 | 0.758782 | 0.758782 | 0.742389 | 0.742389 | 0.742389 | 0.742389 | 0 | 0.035971 | 0.182353 | 680 | 22 | 48 | 30.909091 | 0.732014 | 0 | 0 | 0.666667 | 0 | 0 | 0.107353 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 9 |
102e73a682e3f41acc7ebd5562cc5604ffd36615 | 90 | py | Python | conan/tools/qbs/__init__.py | Erlkoenig90/conan | da8de69618d75da5ac7d77e0eb7a38ee4d564eb9 | [
"MIT"
] | null | null | null | conan/tools/qbs/__init__.py | Erlkoenig90/conan | da8de69618d75da5ac7d77e0eb7a38ee4d564eb9 | [
"MIT"
] | null | null | null | conan/tools/qbs/__init__.py | Erlkoenig90/conan | da8de69618d75da5ac7d77e0eb7a38ee4d564eb9 | [
"MIT"
] | null | null | null | from conan.tools.qbs.qbstoolchain import QbsToolchain
from conan.tools.qbs.qbs import Qbs
| 30 | 53 | 0.844444 | 14 | 90 | 5.428571 | 0.428571 | 0.236842 | 0.368421 | 0.447368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 90 | 2 | 54 | 45 | 0.926829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
107a68f8e23fb7c1bfcb5d122e2cfd58856b79cd | 15,529 | py | Python | tests/test_SplineUsefulFunctions.py | carlos-adir/FEM-Nurbs | 0c63d736fe6b49b0aec3f0a63573548eae8b65f2 | [
"MIT"
] | null | null | null | tests/test_SplineUsefulFunctions.py | carlos-adir/FEM-Nurbs | 0c63d736fe6b49b0aec3f0a63573548eae8b65f2 | [
"MIT"
] | null | null | null | tests/test_SplineUsefulFunctions.py | carlos-adir/FEM-Nurbs | 0c63d736fe6b49b0aec3f0a63573548eae8b65f2 | [
"MIT"
] | null | null | null | import pytest
# import unittest
import numpy as np
import femnurbs.SplineUsefulFunctions as SUF
def test_isValidU():
with pytest.raises(TypeError):
SUF.isValidU()
assert SUF.isValidU(0) is False
assert SUF.isValidU(1.2) is False
assert SUF.isValidU({}) is False
assert SUF.isV... | 29.749042 | 72 | 0.567905 | 2,638 | 15,529 | 3.283169 | 0.030705 | 0.030943 | 0.119501 | 0.167302 | 0.93107 | 0.926452 | 0.899319 | 0.869184 | 0.820113 | 0.76042 | 0 | 0.079512 | 0.261382 | 15,529 | 521 | 73 | 29.806142 | 0.675588 | 0.010625 | 0 | 0.69898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.321429 | 1 | 0.030612 | false | 0 | 0.007653 | 0 | 0.038265 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
10a17043fe87b2ca60ade27d6089e2c7e75b443e | 170 | py | Python | ffai/ai/bots/testbots/__init__.py | tysen2k/ffai | 2fa1fd45a8877986fdb21e3fea5e01cbf819d3ec | [
"Apache-2.0"
] | null | null | null | ffai/ai/bots/testbots/__init__.py | tysen2k/ffai | 2fa1fd45a8877986fdb21e3fea5e01cbf819d3ec | [
"Apache-2.0"
] | null | null | null | ffai/ai/bots/testbots/__init__.py | tysen2k/ffai | 2fa1fd45a8877986fdb21e3fea5e01cbf819d3ec | [
"Apache-2.0"
] | null | null | null | from .crash_bot import *
from .idle_bot import *
from .init_crash_bot import *
from .just_in_time_bot import *
from .manipulator_bot import *
from .violator_bot import *
| 24.285714 | 31 | 0.788235 | 27 | 170 | 4.62963 | 0.407407 | 0.432 | 0.52 | 0.288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141176 | 170 | 6 | 32 | 28.333333 | 0.856164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
52a5c36aef078acb6e645ea1893458ad86ef9085 | 27,985 | py | Python | mephistopheies/kaggle_camera_model_id_lib/kaggle_camera_model_id_lib/models/models.py | cortwave/camera-model-identification | b2cbac93308bd6e1bc9d38391f5e97f48da99263 | [
"BSD-2-Clause"
] | 6 | 2018-02-09T11:40:29.000Z | 2021-06-14T06:08:50.000Z | mephistopheies/kaggle_camera_model_id_lib/kaggle_camera_model_id_lib/models/models.py | cortwave/camera-model-identification | b2cbac93308bd6e1bc9d38391f5e97f48da99263 | [
"BSD-2-Clause"
] | null | null | null | mephistopheies/kaggle_camera_model_id_lib/kaggle_camera_model_id_lib/models/models.py | cortwave/camera-model-identification | b2cbac93308bd6e1bc9d38391f5e97f48da99263 | [
"BSD-2-Clause"
] | 7 | 2018-02-09T11:41:11.000Z | 2021-06-14T06:08:52.000Z | import math
import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision.models as models
import pretrainedmodels
from pretrainedmodels.models.inceptionresnetv2 import BasicConv2d, Mixed_5b, Block35, Block17, Block8
from pretrainedmodels.models.inceptionresnetv2 import Mixed_6a, Mixed_7a
re... | 34.85056 | 113 | 0.548008 | 3,702 | 27,985 | 4.007023 | 0.062939 | 0.037751 | 0.035594 | 0.022246 | 0.829648 | 0.808278 | 0.778212 | 0.751921 | 0.738102 | 0.729068 | 0 | 0.077896 | 0.319242 | 27,985 | 803 | 114 | 34.85056 | 0.700751 | 0.001465 | 0 | 0.728916 | 0 | 0 | 0.005727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057229 | false | 0 | 0.012048 | 0 | 0.118976 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
52a8cb7cfb37390bd4219947910258a280a171b7 | 182 | py | Python | Bucles.py | jayounghoyos/My-Scripts | da7f3d39e0a19b4d01b5cef0627bbf892f655c80 | [
"MIT"
] | null | null | null | Bucles.py | jayounghoyos/My-Scripts | da7f3d39e0a19b4d01b5cef0627bbf892f655c80 | [
"MIT"
] | null | null | null | Bucles.py | jayounghoyos/My-Scripts | da7f3d39e0a19b4d01b5cef0627bbf892f655c80 | [
"MIT"
] | null | null | null | #contador = 0
#print("2 elevado a la" + str(contador) + " es igual a: " + str(2**contador))
contador = 1
print("2 elevado a la" + str(contador) + " es igual a: " + str(2**contador)) | 36.4 | 77 | 0.615385 | 30 | 182 | 3.733333 | 0.366667 | 0.107143 | 0.232143 | 0.25 | 0.839286 | 0.839286 | 0.839286 | 0.839286 | 0.839286 | 0.839286 | 0 | 0.040541 | 0.186813 | 182 | 5 | 78 | 36.4 | 0.716216 | 0.483516 | 0 | 0 | 0 | 0 | 0.290323 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 1 | 0 | 10 |
d80bd2bee57f097beb7da8e26adc0fee8e4645af | 120 | py | Python | okta/models/schema/AppUserProfileCustomSubschema.py | CloudRunnerInc/oktasdk-python | b2d19418d2bd0a8c1bbf3764a69e83c148e42a41 | [
"Apache-2.0"
] | null | null | null | okta/models/schema/AppUserProfileCustomSubschema.py | CloudRunnerInc/oktasdk-python | b2d19418d2bd0a8c1bbf3764a69e83c148e42a41 | [
"Apache-2.0"
] | 3 | 2018-01-05T20:23:12.000Z | 2019-03-06T12:00:58.000Z | okta/models/schema/AppUserProfileCustomSubschema.py | CloudRunnerInc/oktasdk-python | b2d19418d2bd0a8c1bbf3764a69e83c148e42a41 | [
"Apache-2.0"
] | 1 | 2019-10-23T04:24:49.000Z | 2019-10-23T04:24:49.000Z | from okta.models.schema import BaseCustomSubschema
class AppUserProfileCustomSubschema(BaseCustomSubschema):
pass
| 20 | 57 | 0.85 | 10 | 120 | 10.2 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108333 | 120 | 5 | 58 | 24 | 0.953271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 1 | 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 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 7 |
dc4a855b09308772dc6825454d1a0894acd021ca | 28,754 | py | Python | train_epoch_variations.py | pbevan1/Skin-Deep-Unlearning | b8802db8bd61bbf3fdeb10c9899a4117ae38e89c | [
"MIT"
] | 3 | 2021-09-10T21:51:01.000Z | 2022-03-29T15:16:03.000Z | train_epoch_variations.py | pbevan1/Skin-Deep-Unlearning | b8802db8bd61bbf3fdeb10c9899a4117ae38e89c | [
"MIT"
] | null | null | null | train_epoch_variations.py | pbevan1/Skin-Deep-Unlearning | b8802db8bd61bbf3fdeb10c9899a4117ae38e89c | [
"MIT"
] | null | null | null | import numpy as np
from sklearn.metrics import roc_auc_score, accuracy_score
import torch
import torch.nn as nn
from torch.autograd import Variable
from globalbaz import args, DP, device
from tqdm import tqdm
from models import *
# Defining criterion with weighted loss based on bias to be unlearned
def criterion_func... | 45.713831 | 147 | 0.661647 | 3,613 | 28,754 | 5.053141 | 0.078328 | 0.034507 | 0.016432 | 0.010736 | 0.825108 | 0.803418 | 0.79312 | 0.779537 | 0.76913 | 0.760037 | 0 | 0.014807 | 0.234333 | 28,754 | 628 | 148 | 45.786624 | 0.814453 | 0.339153 | 0 | 0.70801 | 0 | 0.007752 | 0.026388 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.020672 | 0 | 0.077519 | 0.005168 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
dca02df300625c5289bb0f79e466f7a82544c5bb | 93 | py | Python | Subham Kumar Sahoo webapp/webapp.py | sksgit7/DigitalOcean | 6aa3a4b2cf52e1c54f51b2edf096ed839825a01b | [
"MIT"
] | 14 | 2020-06-04T09:44:28.000Z | 2020-09-30T12:08:02.000Z | Subham Kumar Sahoo webapp/webapp.py | sksgit7/DigitalOcean | 6aa3a4b2cf52e1c54f51b2edf096ed839825a01b | [
"MIT"
] | 2 | 2020-06-05T16:43:09.000Z | 2020-06-05T18:50:52.000Z | Subham Kumar Sahoo webapp/webapp.py | sksgit7/DigitalOcean | 6aa3a4b2cf52e1c54f51b2edf096ed839825a01b | [
"MIT"
] | 3 | 2020-06-05T10:36:44.000Z | 2020-06-06T06:21:23.000Z | from app import app
from flask_ngrok import run_with_ngrok
# run_with_ngrok(app)
# app.run() | 18.6 | 38 | 0.795699 | 17 | 93 | 4.058824 | 0.411765 | 0.202899 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 93 | 5 | 39 | 18.6 | 0.851852 | 0.311828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
f4abfd280998b5d570887861b9a00bb2a8f022a2 | 1,592 | py | Python | tests/test_49.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | tests/test_49.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | tests/test_49.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import pytest
"""
Test 49. Group Anagrams
"""
@pytest.fixture(scope="session")
def init_variables_49():
from src.leetcode_49_group_anagrams import Solution
solution = Solution()
def _init_variables_49():
return solution
yield _init_variables_49
class TestClass49:
... | 22.422535 | 97 | 0.616834 | 186 | 1,592 | 4.967742 | 0.198925 | 0.253247 | 0.292208 | 0.123377 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0.043619 | 0.222362 | 1,592 | 70 | 98 | 22.742857 | 0.702746 | 0.025126 | 0 | 0.947368 | 0 | 0 | 0.060484 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 1 | 0.263158 | false | 0 | 0.105263 | 0.052632 | 0.473684 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
76263d71daf2034cfc92e0962e0fa9094679ad0f | 1,411 | py | Python | snippets/reg_and_stitching/stitch.py | michielkleinnijenhuis/EM | f46a9b11298919b359e80d9f23a7e824df1356cb | [
"Apache-2.0"
] | null | null | null | snippets/reg_and_stitching/stitch.py | michielkleinnijenhuis/EM | f46a9b11298919b359e80d9f23a7e824df1356cb | [
"Apache-2.0"
] | null | null | null | snippets/reg_and_stitching/stitch.py | michielkleinnijenhuis/EM | f46a9b11298919b359e80d9f23a7e824df1356cb | [
"Apache-2.0"
] | null | null | null | from ij import IJ
inputdir = '/Users/michielk/oxdata/P01/EM/M3/M3_S1_GNU/tifs'
outputdir = '/Users/michielk/oxdata/P01/EM/M3/M3_S1_GNU/stitched/'
n_slices = 2
for slc in range(0, n_slices):
IJ.run("Grid/Collection stitching", "type=[Grid: row-by-row] order=[Right & Down ] grid_size_x=2 grid_size_y=2 t... | 108.538462 | 544 | 0.779589 | 222 | 1,411 | 4.698198 | 0.396396 | 0.049856 | 0.072867 | 0.084372 | 0.803452 | 0.755513 | 0.707574 | 0.707574 | 0.707574 | 0.644295 | 0 | 0.04549 | 0.096386 | 1,411 | 12 | 545 | 117.583333 | 0.772549 | 0.415308 | 0 | 0 | 0 | 0.142857 | 0.838002 | 0.518879 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
52321c089e9dd3f1bb7119e916016ebb1db0224e | 129 | py | Python | wsgi.py | mzaglia/inpe_catalog | 33d6d39df584923bcaf6f4d0dada8dbe4f08e147 | [
"MIT"
] | null | null | null | wsgi.py | mzaglia/inpe_catalog | 33d6d39df584923bcaf6f4d0dada8dbe4f08e147 | [
"MIT"
] | 4 | 2018-09-13T16:10:00.000Z | 2018-09-25T15:00:47.000Z | wsgi.py | mzaglia/inpe_catalog | 33d6d39df584923bcaf6f4d0dada8dbe4f08e147 | [
"MIT"
] | 1 | 2018-07-26T17:18:35.000Z | 2018-07-26T17:18:35.000Z | import os
from catalog import app
app.run(debug=True, host=os.environ.get('CATALOG_HOST'), port=os.environ.get('CATALOG_PORT'))
| 25.8 | 93 | 0.767442 | 22 | 129 | 4.409091 | 0.545455 | 0.185567 | 0.247423 | 0.391753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077519 | 129 | 4 | 94 | 32.25 | 0.815126 | 0 | 0 | 0 | 0 | 0 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
526982b1c66fa86f7e157526cee329a014e8de74 | 3,741 | py | Python | tests/test_models.py | Squidtoon99/dispike | db4b1a12268afcc87a96003923e6f56139872f0e | [
"MIT"
] | null | null | null | tests/test_models.py | Squidtoon99/dispike | db4b1a12268afcc87a96003923e6f56139872f0e | [
"MIT"
] | null | null | null | tests/test_models.py | Squidtoon99/dispike | db4b1a12268afcc87a96003923e6f56139872f0e | [
"MIT"
] | null | null | null | from dispike.models import *
import pytest
def test_valid_incoming_one_option():
data = {
"channel_id": "123123",
"data": {
"id": "12312312",
"name": "sendmessage",
"options": [{"name": "message", "value": "test"}],
},
"guild_id": "123123",
... | 28.340909 | 62 | 0.41513 | 269 | 3,741 | 5.620818 | 0.282528 | 0.031746 | 0.02381 | 0.037698 | 0.847222 | 0.847222 | 0.847222 | 0.847222 | 0.847222 | 0.847222 | 0 | 0.199533 | 0.42796 | 3,741 | 131 | 63 | 28.557252 | 0.507009 | 0 | 0 | 0.808 | 0 | 0 | 0.293504 | 0.025662 | 0 | 0 | 0 | 0 | 0.024 | 1 | 0.024 | false | 0 | 0.016 | 0 | 0.04 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5278f00de44639f802a1c375c893306cf8471e47 | 2,363 | py | Python | test/pyaz/resource/link/__init__.py | bigdatamoore/py-az-cli | 54383a4ee7cc77556f6183e74e992eec95b28e01 | [
"MIT"
] | null | null | null | test/pyaz/resource/link/__init__.py | bigdatamoore/py-az-cli | 54383a4ee7cc77556f6183e74e992eec95b28e01 | [
"MIT"
] | 9 | 2021-09-24T16:37:24.000Z | 2021-12-24T00:39:19.000Z | test/pyaz/resource/link/__init__.py | bigdatamoore/py-az-cli | 54383a4ee7cc77556f6183e74e992eec95b28e01 | [
"MIT"
] | null | null | null | import json, subprocess
from ... pyaz_utils import get_cli_name, get_params
def create(link, target, notes=None):
params = get_params(locals())
command = "az resource link create " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
... | 31.932432 | 96 | 0.648752 | 287 | 2,363 | 5.310105 | 0.149826 | 0.091864 | 0.065617 | 0.068898 | 0.900262 | 0.900262 | 0.900262 | 0.900262 | 0.900262 | 0.809711 | 0 | 0.005516 | 0.232755 | 2,363 | 73 | 97 | 32.369863 | 0.83508 | 0 | 0 | 0.820896 | 0 | 0 | 0.07025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074627 | false | 0 | 0.029851 | 0 | 0.179104 | 0.223881 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
528c5ddaa1d8deb4de4e818522c557a73259fb79 | 226 | py | Python | ml_privacy_meter/utils/__init__.py | mihirkhandekar/ml_privacy_meter | c8efa4b444a7908783cf83acc2a0270113dc2356 | [
"MIT"
] | null | null | null | ml_privacy_meter/utils/__init__.py | mihirkhandekar/ml_privacy_meter | c8efa4b444a7908783cf83acc2a0270113dc2356 | [
"MIT"
] | null | null | null | ml_privacy_meter/utils/__init__.py | mihirkhandekar/ml_privacy_meter | c8efa4b444a7908783cf83acc2a0270113dc2356 | [
"MIT"
] | null | null | null | from ml_privacy_meter.utils import optimizers
from ml_privacy_meter.utils import losses
from ml_privacy_meter.utils import logger
from ml_privacy_meter.utils import attack_data
from ml_privacy_meter.utils import attack_utils | 32.285714 | 47 | 0.884956 | 37 | 226 | 5.081081 | 0.297297 | 0.159574 | 0.345745 | 0.478723 | 0.835106 | 0.835106 | 0.37234 | 0 | 0 | 0 | 0 | 0 | 0.09292 | 226 | 7 | 47 | 32.285714 | 0.917073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
875fdb1866c2bb0bd365f526d91476c464170c00 | 6,203 | py | Python | cfgov/v1/migrations/0144_rm_hero_links.py | higs4281/cfgov-refresh | a02b193fb2373d443265c21845adf8a196e05675 | [
"CC0-1.0"
] | 1 | 2019-11-26T20:18:22.000Z | 2019-11-26T20:18:22.000Z | cfgov/v1/migrations/0144_rm_hero_links.py | higs4281/cfgov-refresh | a02b193fb2373d443265c21845adf8a196e05675 | [
"CC0-1.0"
] | 8 | 2021-03-11T00:55:51.000Z | 2022-02-13T21:10:14.000Z | cfgov/v1/migrations/0144_rm_hero_links.py | higs4281/cfgov-refresh | a02b193fb2373d443265c21845adf8a196e05675 | [
"CC0-1.0"
] | 1 | 2019-12-28T14:04:07.000Z | 2019-12-28T14:04:07.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-03-05 18:45
from __future__ import unicode_literals
from django.db import migrations
import wagtail.wagtailcore.blocks
import wagtail.wagtailcore.fields
import wagtail.wagtailimages.blocks
class Migration(migrations.Migration):
dependencies = [
... | 182.441176 | 2,425 | 0.770434 | 864 | 6,203 | 5.466435 | 0.179398 | 0.137201 | 0.162609 | 0.069871 | 0.854965 | 0.839721 | 0.838027 | 0.788905 | 0.760322 | 0.760322 | 0 | 0.010466 | 0.106561 | 6,203 | 33 | 2,426 | 187.969697 | 0.841754 | 0.011124 | 0 | 0.423077 | 1 | 0.230769 | 0.428478 | 0.008318 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.192308 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
5e415d220d92e02d210bb32ac6bb18286e09279f | 14,975 | py | Python | system-server/function.py | xingximing-xxm/Image-Annotation-Correction-System | aeb5d3c556d30c855b8dfea61feeaf17d46ec135 | [
"MIT"
] | null | null | null | system-server/function.py | xingximing-xxm/Image-Annotation-Correction-System | aeb5d3c556d30c855b8dfea61feeaf17d46ec135 | [
"MIT"
] | null | null | null | system-server/function.py | xingximing-xxm/Image-Annotation-Correction-System | aeb5d3c556d30c855b8dfea61feeaf17d46ec135 | [
"MIT"
] | null | null | null | from nltk.corpus import wordnet
import torch
from tqdm import tqdm
from labeldic import label_dic
import json
from datetime import datetime
from multiprocessing import Lock
def login(cursor, data):
user = data['inf']
lock = Lock()
lock.acquire()
cursor.execute("select * from Users where u... | 41.14011 | 159 | 0.499366 | 1,700 | 14,975 | 4.271176 | 0.075882 | 0.04958 | 0.032227 | 0.060598 | 0.82165 | 0.802369 | 0.773998 | 0.762567 | 0.70376 | 0.682 | 0 | 0.014608 | 0.378297 | 14,975 | 363 | 160 | 41.253444 | 0.765306 | 0 | 0 | 0.813253 | 0 | 0.033133 | 0.179852 | 0.001642 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021084 | false | 0.012048 | 0.021084 | 0 | 0.123494 | 0.012048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5e84b862ff29eb4b12747dab6596bf3ae10465f9 | 173,695 | py | Python | bin/temp/var/usd/cd/tmp/usd/data/data/data/data/data/temp/insta.py | RazorKenway/All-Downloader | e1c6d9ee277166faff8876e967b521fd752f0e7f | [
"MIT"
] | 44 | 2021-06-28T15:57:18.000Z | 2022-03-22T07:36:13.000Z | bin/temp/var/usd/cd/tmp/usd/data/data/data/data/data/temp/insta.py | RazorKenway/All-Downloader | e1c6d9ee277166faff8876e967b521fd752f0e7f | [
"MIT"
] | 1 | 2021-11-26T13:28:10.000Z | 2022-01-10T21:23:41.000Z | bin/temp/var/usd/cd/tmp/usd/data/data/data/data/data/temp/insta.py | RazorKenway/All-Downloader | e1c6d9ee277166faff8876e967b521fd752f0e7f | [
"MIT"
] | 5 | 2021-08-23T17:34:56.000Z | 2022-02-25T19:23:59.000Z | #ENCODE BY CRYPTO
#YOU CAN TRY THIS DECODE GOD BLESS
import gzip,marshal,zlib,base64,binascii,lzma
try:
exec(gzip.decompress(marshal.loads(b's\xc4\xeb\x00\x00\x1f\x8b\x08\x00\x00\x86\x98a\x02\xff\\]YC\x14M\x90|\xdf_\x81\x88\xa8\xa0\xd0\xf7\xa1"\xa0 \xa2\x82\x8a"\xa8\xa8tuu\x0b\xa2\xdc\xca!\xfa\xdbw"2\xca\xf9v\x1f<\x... | 15,790.454545 | 173,536 | 0.734097 | 39,918 | 173,695 | 3.18801 | 0.16812 | 0.00033 | 0.000141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228264 | 0.00137 | 173,695 | 11 | 173,537 | 15,790.454545 | 0.505399 | 0.000282 | 0 | 0 | 0 | 32.2 | 0.638884 | 0.637151 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
0d8c555014d6c345faed3b6ff060a2f717fb32cc | 164 | py | Python | pyckaxe/lib/pack/resource_loader/__init__.py | Arcensoth/pyckaxe | 09ed0828d6660a233b827721454293579329991b | [
"MIT"
] | 3 | 2018-09-23T05:16:44.000Z | 2021-12-23T03:06:07.000Z | pyckaxe/lib/pack/resource_loader/__init__.py | Arcensoth/pyckaxe | 09ed0828d6660a233b827721454293579329991b | [
"MIT"
] | 5 | 2018-07-11T02:31:56.000Z | 2018-07-11T03:15:05.000Z | pyckaxe/lib/pack/resource_loader/__init__.py | Arcensoth/pyckaxe | 09ed0828d6660a233b827721454293579329991b | [
"MIT"
] | null | null | null | from .abc import *
from .common_resource_loader import *
from .json_resource_loader import *
from .nbt_resource_loader import *
from .text_resource_loader import *
| 27.333333 | 37 | 0.817073 | 23 | 164 | 5.478261 | 0.391304 | 0.31746 | 0.634921 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121951 | 164 | 5 | 38 | 32.8 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
0dc59398bbc0f04688049b0f112a10f309082e10 | 11,517 | py | Python | nupy/iterative_methods/iterative_methods.py | begeistert/nupy | b1026afc21b9a985a3329f1a16006aec8fa4d726 | [
"MIT"
] | null | null | null | nupy/iterative_methods/iterative_methods.py | begeistert/nupy | b1026afc21b9a985a3329f1a16006aec8fa4d726 | [
"MIT"
] | null | null | null | nupy/iterative_methods/iterative_methods.py | begeistert/nupy | b1026afc21b9a985a3329f1a16006aec8fa4d726 | [
"MIT"
] | null | null | null | from nupy.sympy_algebra import evaluate, derive
from pandas import DataFrame, set_option
def __configure__():
set_option("display.precision", 20)
set_option('colheader_justify', 'center')
def intermediate_value(function, variable, intervals, tolerance=1e-10, limit=250, just_root=False):
"""
Gets th... | 32.811966 | 104 | 0.452288 | 1,351 | 11,517 | 3.624722 | 0.068838 | 0.022871 | 0.017766 | 0.017153 | 0.851746 | 0.841944 | 0.818869 | 0.80049 | 0.768838 | 0.768838 | 0 | 0.035113 | 0.458453 | 11,517 | 350 | 105 | 32.905714 | 0.75004 | 0.137449 | 0 | 0.784173 | 0 | 0 | 0.025208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017986 | false | 0 | 0.007194 | 0 | 0.039568 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
216f543361dddb41855bac2c6d9e52d2706c5e52 | 6,112 | py | Python | joplin/pages/news_page/fixtures/helpers/components.py | cityofaustin/joplin | 01424e46993e9b1c8e57391d6b7d9448f31d596b | [
"MIT"
] | 15 | 2018-09-27T07:36:30.000Z | 2021-08-03T16:01:21.000Z | joplin/pages/news_page/fixtures/helpers/components.py | cityofaustin/joplin | 01424e46993e9b1c8e57391d6b7d9448f31d596b | [
"MIT"
] | 183 | 2017-11-16T23:30:47.000Z | 2020-12-18T21:43:36.000Z | joplin/pages/news_page/fixtures/helpers/components.py | cityofaustin/joplin | 01424e46993e9b1c8e57391d6b7d9448f31d596b | [
"MIT"
] | 12 | 2017-12-12T22:48:05.000Z | 2021-03-01T18:01:24.000Z | '''
components.py contains elements that may be used
interchangeably with multiple fixtures
'''
from pages.home_page.models import HomePage
def home():
return HomePage.objects.first()
mvp_news_title = 'Health Authorities Continue to Stress the Importance of Stay at Home & Social Distancing Guidelines'
go... | 359.529412 | 2,977 | 0.771597 | 1,008 | 6,112 | 4.668651 | 0.441468 | 0.01785 | 0.01785 | 0.0119 | 0.092223 | 0.073523 | 0.055249 | 0.055249 | 0.055249 | 0.037399 | 0 | 0.013825 | 0.147906 | 6,112 | 16 | 2,978 | 382 | 0.889209 | 0.014234 | 0 | 0 | 0 | 0.285714 | 0.96488 | 0.05759 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.714286 | 0.142857 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
21e18e5f0f861c7c99e9293a25b257de7375254d | 181 | py | Python | azure_automation_utility/__init__.py | WenJason/azure_automation_utility-master | 13a95240907bd3d970ea382c1181d7de21c0ec91 | [
"MIT"
] | 8 | 2018-09-14T08:05:51.000Z | 2022-02-10T16:33:27.000Z | azure_automation_utility/__init__.py | WenJason/azure_automation_utility-master | 13a95240907bd3d970ea382c1181d7de21c0ec91 | [
"MIT"
] | 1 | 2019-10-04T18:32:15.000Z | 2019-10-04T18:41:16.000Z | azure_automation_utility/__init__.py | WenJason/azure_automation_utility-master | 13a95240907bd3d970ea382c1181d7de21c0ec91 | [
"MIT"
] | 11 | 2018-09-10T15:12:43.000Z | 2022-02-10T16:33:30.000Z | from .utility import get_automation_runas_credential
from .utility import get_automation_runas_token
from .utility import import_child_runbook
from .utility import load_webhook_body | 45.25 | 52 | 0.895028 | 26 | 181 | 5.846154 | 0.5 | 0.289474 | 0.447368 | 0.263158 | 0.460526 | 0.460526 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082873 | 181 | 4 | 53 | 45.25 | 0.915663 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
df109681beb2d2df59774904bd2fdc564f8d9b94 | 3,434 | py | Python | src/rr.py | hrithikbhat019/OS-Simulation | 76521b130c41aae3ba157b3f07e54f7db4ab374d | [
"MIT"
] | null | null | null | src/rr.py | hrithikbhat019/OS-Simulation | 76521b130c41aae3ba157b3f07e54f7db4ab374d | [
"MIT"
] | null | null | null | src/rr.py | hrithikbhat019/OS-Simulation | 76521b130c41aae3ba157b3f07e54f7db4ab374d | [
"MIT"
] | 1 | 2020-05-28T05:53:36.000Z | 2020-05-28T05:53:36.000Z | <<<<<<< HEAD
from queue import *
from operator import itemgetter
def rr(data):
process = {}
process['table'] = data
process['gantt'] = []
Q = Queue(maxsize=50)
time = 0
left = n
flag = 0
a_tat = 0.0
a_wt = 0.0
process['table'] = sorted(process['table'], key=itemgetter... | 27.253968 | 81 | 0.415842 | 390 | 3,434 | 3.641026 | 0.141026 | 0.101408 | 0.039437 | 0.04507 | 0.969014 | 0.969014 | 0.969014 | 0.969014 | 0.969014 | 0.969014 | 0 | 0.031611 | 0.419627 | 3,434 | 125 | 82 | 27.472 | 0.680883 | 0.013395 | 0 | 0.972973 | 0 | 0 | 0.093972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.036036 | null | null | 0.036036 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
80370c255bedf0f3e4f774519e6467240602f1e6 | 228 | py | Python | tests/test_utils.py | 123joshuawu/orca | 741856dc264ffd38a7de8c2da1847543fd8c84d1 | [
"0BSD"
] | 6 | 2020-12-09T01:53:40.000Z | 2021-04-12T16:05:45.000Z | tests/test_utils.py | 123joshuawu/orca | 741856dc264ffd38a7de8c2da1847543fd8c84d1 | [
"0BSD"
] | 13 | 2020-12-04T20:42:33.000Z | 2021-04-17T20:15:11.000Z | tests/test_utils.py | 123joshuawu/orca | 741856dc264ffd38a7de8c2da1847543fd8c84d1 | [
"0BSD"
] | 1 | 2020-12-28T01:31:28.000Z | 2020-12-28T01:31:28.000Z | from api.parser.utils import sanitize
def test_sanitize():
assert sanitize("hello world") == "hello world"
assert sanitize(" hello world ") == "hello world"
assert sanitize(" \thello\nworld ") == "hello world" | 38 | 58 | 0.666667 | 27 | 228 | 5.592593 | 0.481481 | 0.331126 | 0.251656 | 0.317881 | 0.543046 | 0.543046 | 0.543046 | 0.543046 | 0 | 0 | 0 | 0 | 0.197368 | 228 | 6 | 59 | 38 | 0.825137 | 0 | 0 | 0.4 | 0 | 0 | 0.344978 | 0 | 0 | 0 | 0 | 0 | 0.6 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
80456fe9eea88e562e4847a02e9a13bd6d61e996 | 122,866 | py | Python | azure-mgmt-web/azure/mgmt/web/operations/hosting_environments_operations.py | HydAu/AzureSDKForPython | 5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3 | [
"Apache-2.0"
] | null | null | null | azure-mgmt-web/azure/mgmt/web/operations/hosting_environments_operations.py | HydAu/AzureSDKForPython | 5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3 | [
"Apache-2.0"
] | null | null | null | azure-mgmt-web/azure/mgmt/web/operations/hosting_environments_operations.py | HydAu/AzureSDKForPython | 5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. 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 ... | 46.469743 | 201 | 0.669689 | 13,183 | 122,866 | 6.035728 | 0.023667 | 0.03808 | 0.039525 | 0.03348 | 0.960864 | 0.957119 | 0.954052 | 0.951979 | 0.949968 | 0.947316 | 0 | 0.005786 | 0.234792 | 122,866 | 2,643 | 202 | 46.487325 | 0.840531 | 0.255856 | 0 | 0.885294 | 0 | 0.014706 | 0.189393 | 0.108515 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041176 | false | 0 | 0.003676 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1d16fae30f964d6f9a7fe772cb208af2692ee18b | 102 | py | Python | sb3_contrib/qrdqn/__init__.py | satoshinakamotodotmyselfpointcom/stable-baselines3-contrib | 81ef23d2702aeb73d36f000d882da313d21aadef | [
"MIT"
] | null | null | null | sb3_contrib/qrdqn/__init__.py | satoshinakamotodotmyselfpointcom/stable-baselines3-contrib | 81ef23d2702aeb73d36f000d882da313d21aadef | [
"MIT"
] | null | null | null | sb3_contrib/qrdqn/__init__.py | satoshinakamotodotmyselfpointcom/stable-baselines3-contrib | 81ef23d2702aeb73d36f000d882da313d21aadef | [
"MIT"
] | null | null | null | from sb3_contrib.qrdqn.policies import CnnPolicy, MlpPolicy
from sb3_contrib.qrdqn.qrdqn import QRDQN
| 34 | 59 | 0.862745 | 15 | 102 | 5.733333 | 0.533333 | 0.162791 | 0.325581 | 0.44186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021505 | 0.088235 | 102 | 2 | 60 | 51 | 0.903226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.