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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
07dee507ce31e115b2b94a29d53cdc5c3d4bd0df | 2,316 | py | Python | scripts/examples/OpenMV/16-Codes/find_barcodes.py | jiskra/openmv | a0f321836f77f94d8118910598dcdb79eb784d58 | [
"MIT"
] | 1,761 | 2015-07-10T23:14:17.000Z | 2022-03-30T07:49:49.000Z | scripts/examples/OpenMV/16-Codes/find_barcodes.py | jiskra/openmv | a0f321836f77f94d8118910598dcdb79eb784d58 | [
"MIT"
] | 487 | 2015-07-07T23:21:20.000Z | 2022-03-30T17:13:22.000Z | scripts/examples/OpenMV/16-Codes/find_barcodes.py | jiskra/openmv | a0f321836f77f94d8118910598dcdb79eb784d58 | [
"MIT"
] | 882 | 2015-08-01T08:34:19.000Z | 2022-03-30T07:36:23.000Z | # Barcode Example
#
# This example shows off how easy it is to detect bar codes using the
# OpenMV Cam M7. Barcode detection does not work on the M4 Camera.
import sensor, image, time, math
sensor.reset()
sensor.set_pixformat(sensor.GRAYSCALE)
sensor.set_framesize(sensor.VGA) # High Res!
sensor.set_windowing((640, 80... | 35.090909 | 121 | 0.638169 | 324 | 2,316 | 4.512346 | 0.401235 | 0.065663 | 0.109439 | 0.164159 | 0.086183 | 0.056088 | 0.056088 | 0.056088 | 0.056088 | 0 | 0 | 0.04442 | 0.222366 | 2,316 | 65 | 122 | 35.630769 | 0.767351 | 0.259067 | 0 | 0 | 0 | 0 | 0.093952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | false | 0 | 0.019231 | 0 | 0.346154 | 0.057692 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07e0af37e19269400d7c0cf5ac0dc3b1672e18e4 | 10,752 | py | Python | tests/test_packed_to_padded.py | theycallmepeter/pytorch3d_PBR | bc83c23969ff7843fc05d2da001952b368926174 | [
"BSD-3-Clause"
] | null | null | null | tests/test_packed_to_padded.py | theycallmepeter/pytorch3d_PBR | bc83c23969ff7843fc05d2da001952b368926174 | [
"BSD-3-Clause"
] | null | null | null | tests/test_packed_to_padded.py | theycallmepeter/pytorch3d_PBR | bc83c23969ff7843fc05d2da001952b368926174 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import unittest
import torch
from common_testing import TestCaseMixin, get_random_cuda_device
from pyt... | 39.384615 | 89 | 0.628255 | 1,355 | 10,752 | 4.635424 | 0.108487 | 0.033116 | 0.057953 | 0.043305 | 0.780608 | 0.736666 | 0.646712 | 0.609776 | 0.540519 | 0.496099 | 0 | 0.018483 | 0.280413 | 10,752 | 272 | 90 | 39.529412 | 0.793331 | 0.048735 | 0 | 0.41784 | 0 | 0 | 0.013111 | 0 | 0 | 0 | 0 | 0 | 0.042254 | 1 | 0.107981 | false | 0 | 0.023474 | 0 | 0.159624 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07e2537b3e43653ce0616ed6421ef634050042c8 | 3,085 | py | Python | pysrc/classifier.py | CrackerCat/xed | 428712c28e831573579b7f749db63d3a58dcdbd9 | [
"Apache-2.0"
] | 1,261 | 2016-12-16T14:29:30.000Z | 2022-03-30T20:21:25.000Z | pysrc/classifier.py | CrackerCat/xed | 428712c28e831573579b7f749db63d3a58dcdbd9 | [
"Apache-2.0"
] | 190 | 2016-12-17T13:44:09.000Z | 2022-03-27T09:28:13.000Z | pysrc/classifier.py | CrackerCat/xed | 428712c28e831573579b7f749db63d3a58dcdbd9 | [
"Apache-2.0"
] | 155 | 2016-12-16T22:17:20.000Z | 2022-02-16T20:53:59.000Z | #!/usr/bin/env python
# -*- python -*-
#BEGIN_LEGAL
#
#Copyright (c) 2019 Intel Corporation
#
# 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-... | 39.551282 | 96 | 0.647326 | 454 | 3,085 | 4.167401 | 0.396476 | 0.060254 | 0.059197 | 0.023256 | 0.103066 | 0.103066 | 0.080338 | 0.021142 | 0 | 0 | 0 | 0.023226 | 0.246353 | 3,085 | 77 | 97 | 40.064935 | 0.790538 | 0.322204 | 0 | 0 | 0 | 0 | 0.122152 | 0.015027 | 0 | 0 | 0 | 0.012987 | 0 | 1 | 0.047619 | false | 0 | 0.095238 | 0 | 0.166667 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07e5b14fe954fccf9ada38a8fb44f9dd227c6830 | 1,301 | py | Python | tests/web/config.py | zcqian/biothings.api | 61c0300317cf2ac7db8310b5b5741ad9b08c4163 | [
"Apache-2.0"
] | null | null | null | tests/web/config.py | zcqian/biothings.api | 61c0300317cf2ac7db8310b5b5741ad9b08c4163 | [
"Apache-2.0"
] | null | null | null | tests/web/config.py | zcqian/biothings.api | 61c0300317cf2ac7db8310b5b5741ad9b08c4163 | [
"Apache-2.0"
] | null | null | null | """
Web settings to override for testing.
"""
import os
from biothings.web.settings.default import QUERY_KWARGS
# *****************************************************************************
# Elasticsearch Variables
# *****************************************************************************
ES_INDEX = 'bts_... | 34.236842 | 79 | 0.362798 | 92 | 1,301 | 4.858696 | 0.630435 | 0.098434 | 0.053691 | 0.085011 | 0.102908 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006717 | 0.08455 | 1,301 | 37 | 80 | 35.162162 | 0.368598 | 0.602613 | 0 | 0 | 0 | 0 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07ea3ff52f1fa71b79053f13390d47944be9bd66 | 499 | py | Python | examples/mcp3xxx_mcp3002_single_ended_simpletest.py | sommersoft/Adafruit_CircuitPython_MCP3xxx | 94088a7e2b30f1b34e8a5fd7076075d88aad460b | [
"MIT"
] | null | null | null | examples/mcp3xxx_mcp3002_single_ended_simpletest.py | sommersoft/Adafruit_CircuitPython_MCP3xxx | 94088a7e2b30f1b34e8a5fd7076075d88aad460b | [
"MIT"
] | null | null | null | examples/mcp3xxx_mcp3002_single_ended_simpletest.py | sommersoft/Adafruit_CircuitPython_MCP3xxx | 94088a7e2b30f1b34e8a5fd7076075d88aad460b | [
"MIT"
] | null | null | null | import busio
import digitalio
import board
import adafruit_mcp3xxx.mcp3002 as MCP
from adafruit_mcp3xxx.analog_in import AnalogIn
# create the spi bus
spi = busio.SPI(clock=board.SCK, MISO=board.MISO, MOSI=board.MOSI)
# create the cs (chip select)
cs = digitalio.DigitalInOut(board.D5)
# create the mcp object
mcp = M... | 23.761905 | 66 | 0.747495 | 80 | 499 | 4.625 | 0.525 | 0.072973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030445 | 0.144289 | 499 | 20 | 67 | 24.95 | 0.836066 | 0.216433 | 0 | 0 | 0 | 0 | 0.07513 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.454545 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
07eb8c54a1c0d882798ebdd645e52dda754bb70e | 759 | py | Python | glue/core/data_factories/tables.py | rosteen/glue | ed71979f8e0e41f993a2363b3b5a8f8c3167a130 | [
"BSD-3-Clause"
] | 550 | 2015-01-08T13:51:06.000Z | 2022-03-31T11:54:47.000Z | glue/core/data_factories/tables.py | mmorys/glue | b58ced518ba6f56c59a4e03ffe84afa47235e193 | [
"BSD-3-Clause"
] | 1,362 | 2015-01-03T19:15:52.000Z | 2022-03-30T13:23:11.000Z | glue/core/data_factories/tables.py | mmorys/glue | b58ced518ba6f56c59a4e03ffe84afa47235e193 | [
"BSD-3-Clause"
] | 142 | 2015-01-08T13:08:00.000Z | 2022-03-18T13:25:57.000Z | from glue.core.data_factories.helpers import has_extension
from glue.config import data_factory
__all__ = ['tabular_data']
@data_factory(label="ASCII Table",
identifier=has_extension('csv txt tsv tbl dat '
'csv.gz txt.gz tbl.bz '
... | 33 | 75 | 0.613966 | 93 | 759 | 4.774194 | 0.516129 | 0.072072 | 0.081081 | 0.108108 | 0.168919 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001894 | 0.304348 | 759 | 22 | 76 | 34.5 | 0.839015 | 0 | 0 | 0 | 0 | 0 | 0.123847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.222222 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
07ee95bf0289bb4f328ba250a0e725c6cb917270 | 2,073 | py | Python | d00dfeed/analyses/print_sloc_per_soc.py | rehosting/rehosting_sok | 499b625c8aa60020f311df97a6253820982f20d4 | [
"MIT"
] | 4 | 2021-09-17T02:37:08.000Z | 2022-02-15T01:44:41.000Z | d00dfeed/analyses/print_sloc_per_soc.py | rehosting/rehosting_sok | 499b625c8aa60020f311df97a6253820982f20d4 | [
"MIT"
] | null | null | null | d00dfeed/analyses/print_sloc_per_soc.py | rehosting/rehosting_sok | 499b625c8aa60020f311df97a6253820982f20d4 | [
"MIT"
] | null | null | null | # External deps
import os, sys, json
from pathlib import Path
from typing import Dict, List
# Internal deps
os.chdir(sys.path[0])
sys.path.append("..")
import df_common as dfc
import analyses_common as ac
# Generated files directory
GEN_FILE_DIR = str(Path(__file__).resolve().parent.parent) + os.sep + "generated_file... | 32.904762 | 122 | 0.673903 | 328 | 2,073 | 3.893293 | 0.317073 | 0.065779 | 0.062647 | 0.050901 | 0.076742 | 0.050117 | 0.050117 | 0.050117 | 0.050117 | 0.050117 | 0 | 0.002452 | 0.213218 | 2,073 | 62 | 123 | 33.435484 | 0.780503 | 0.095514 | 0 | 0.04878 | 0 | 0 | 0.132045 | 0 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0 | false | 0 | 0.170732 | 0 | 0.170732 | 0.121951 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07f12eb8f08aef21196193b3111071cb20b8013a | 1,884 | py | Python | silver_bullet/crypto.py | Hojung-Jeong/Silver-Bullet-Encryption-Tool | 5ea29b3cd78cf7488e0cbdcf4ea60d7c9151c2a7 | [
"Apache-2.0"
] | null | null | null | silver_bullet/crypto.py | Hojung-Jeong/Silver-Bullet-Encryption-Tool | 5ea29b3cd78cf7488e0cbdcf4ea60d7c9151c2a7 | [
"Apache-2.0"
] | null | null | null | silver_bullet/crypto.py | Hojung-Jeong/Silver-Bullet-Encryption-Tool | 5ea29b3cd78cf7488e0cbdcf4ea60d7c9151c2a7 | [
"Apache-2.0"
] | null | null | null | '''
>List of functions
1. encrypt(user_input,passphrase) - Encrypt the given string with the given passphrase. Returns cipher text and locked pad.
2. decrypt(cipher_text,locked_pad,passphrase) - Decrypt the cipher text encrypted with SBET. It requires cipher text, locked pad, and passphrase.
'''
# CODE ============... | 24.789474 | 146 | 0.735669 | 260 | 1,884 | 5.215385 | 0.323077 | 0.058997 | 0.047198 | 0.056047 | 0.158555 | 0.158555 | 0.054572 | 0 | 0 | 0 | 0 | 0.00536 | 0.108811 | 1,884 | 76 | 147 | 24.789474 | 0.802263 | 0.213907 | 0 | 0.044444 | 0 | 0 | 0.002653 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0.155556 | 0.111111 | 0 | 0.288889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
07f21adedf8ef7aa0ba52361a9cf4372ad43ac9a | 4,967 | py | Python | app/nextMoveLogic.py | thekitbag/starter-snake-python | 48d12d2fa61ecfc976cd5750316b1db49a641f7f | [
"MIT"
] | null | null | null | app/nextMoveLogic.py | thekitbag/starter-snake-python | 48d12d2fa61ecfc976cd5750316b1db49a641f7f | [
"MIT"
] | null | null | null | app/nextMoveLogic.py | thekitbag/starter-snake-python | 48d12d2fa61ecfc976cd5750316b1db49a641f7f | [
"MIT"
] | null | null | null | import random
class Status(object):
def getHeadPosition(gamedata):
me = gamedata['you']
my_position = me['body']
head = my_position[0]
return head
def getMyLength(gamedata):
me = gamedata['you']
my_position = me['body']
if my_position[0] == my_position[1] == my_position[2]:
return 1
elif my_... | 29.217647 | 122 | 0.655124 | 604 | 4,967 | 5.32947 | 0.155629 | 0.055918 | 0.06151 | 0.072693 | 0.462255 | 0.370923 | 0.331469 | 0.314073 | 0.282075 | 0.177074 | 0 | 0.008033 | 0.172941 | 4,967 | 169 | 123 | 29.390533 | 0.77556 | 0.034629 | 0 | 0.227642 | 0 | 0 | 0.155635 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146341 | false | 0.097561 | 0.00813 | 0 | 0.357724 | 0.01626 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
07fb390e2fe8908e8e3a429d629ca30f1d77df66 | 11,225 | py | Python | test/test_python_errors.py | yangyangxcf/parso | e496b07b6342f6182225a60aad6031d7ad08f24d | [
"PSF-2.0"
] | null | null | null | test/test_python_errors.py | yangyangxcf/parso | e496b07b6342f6182225a60aad6031d7ad08f24d | [
"PSF-2.0"
] | null | null | null | test/test_python_errors.py | yangyangxcf/parso | e496b07b6342f6182225a60aad6031d7ad08f24d | [
"PSF-2.0"
] | null | null | null | """
Testing if parso finds syntax errors and indentation errors.
"""
import sys
import warnings
import pytest
import parso
from parso._compatibility import is_pypy
from .failing_examples import FAILING_EXAMPLES, indent, build_nested
if is_pypy:
# The errors in PyPy might be different. Just skip the module for n... | 34.860248 | 96 | 0.625568 | 1,546 | 11,225 | 4.372574 | 0.207633 | 0.031953 | 0.035503 | 0.023669 | 0.383728 | 0.331953 | 0.29142 | 0.219379 | 0.203698 | 0.156805 | 0 | 0.020049 | 0.240178 | 11,225 | 321 | 97 | 34.968847 | 0.772541 | 0.132829 | 0 | 0.173913 | 0 | 0 | 0.25599 | 0 | 0 | 0 | 0 | 0 | 0.221739 | 1 | 0.091304 | false | 0.052174 | 0.052174 | 0.004348 | 0.195652 | 0.004348 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
07fd108f6337b8e7a88da0155cf318b6098e4ae4 | 2,585 | py | Python | src/grader/machine.py | MrKaStep/csc230-grader | 559846f4d921c5c4be6b6e9ba8629fb24b448e41 | [
"MIT"
] | null | null | null | src/grader/machine.py | MrKaStep/csc230-grader | 559846f4d921c5c4be6b6e9ba8629fb24b448e41 | [
"MIT"
] | null | null | null | src/grader/machine.py | MrKaStep/csc230-grader | 559846f4d921c5c4be6b6e9ba8629fb24b448e41 | [
"MIT"
] | null | null | null | import getpass
from plumbum import local
from plumbum.machines.paramiko_machine import ParamikoMachine
from plumbum.path.utils import copy
def _once(f):
res = None
def wrapped(*args, **kwargs):
nonlocal res
if res is None:
res = f(*args, **kwargs)
return res
return wrapp... | 32.3125 | 133 | 0.600387 | 311 | 2,585 | 4.787781 | 0.215434 | 0.087307 | 0.036938 | 0.040296 | 0.20685 | 0.045668 | 0 | 0 | 0 | 0 | 0 | 0 | 0.292843 | 2,585 | 79 | 134 | 32.721519 | 0.814551 | 0 | 0 | 0.125 | 0 | 0 | 0.087848 | 0.010449 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.078125 | 0.0625 | 0.015625 | 0.296875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
07ff0da6e717ab9585c2e512803b8604ff985d37 | 2,793 | py | Python | tests/test_tree.py | andreax79/airflow-code-editor | 031170387496bbc6d540179c6c2f1765e1e70694 | [
"Apache-2.0"
] | 194 | 2019-08-06T13:03:11.000Z | 2022-03-25T15:29:29.000Z | tests/test_tree.py | andreax79/airflow-code-editor | 031170387496bbc6d540179c6c2f1765e1e70694 | [
"Apache-2.0"
] | 29 | 2019-08-23T16:07:17.000Z | 2022-03-31T03:43:47.000Z | tests/test_tree.py | andreax79/airflow-code-editor | 031170387496bbc6d540179c6c2f1765e1e70694 | [
"Apache-2.0"
] | 32 | 2019-08-15T12:13:37.000Z | 2022-03-31T17:27:24.000Z | #!/usr/bin/env python
import os
import os.path
import airflow
import airflow.plugins_manager
from airflow import configuration
from flask import Flask
from unittest import TestCase, main
from airflow_code_editor.commons import PLUGIN_NAME
from airflow_code_editor.tree import (
get_tree,
)
assert airflow.plugins_m... | 31.382022 | 85 | 0.583602 | 371 | 2,793 | 4.191375 | 0.191375 | 0.063023 | 0.066881 | 0.063023 | 0.736334 | 0.708682 | 0.612862 | 0.561415 | 0.510611 | 0.463023 | 0 | 0.003982 | 0.280702 | 2,793 | 88 | 86 | 31.738636 | 0.770035 | 0.007161 | 0 | 0.597222 | 0 | 0 | 0.090188 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07ff31219d3e42ddfa090b695c0d4b6ede8d31e9 | 2,826 | py | Python | examples/token_freshness.py | greenape/flask-jwt-extended | 11ac3bf0937ee199aea7d6dc47c748bef9bf1d2f | [
"MIT"
] | 2 | 2021-03-20T01:55:08.000Z | 2021-11-14T12:20:23.000Z | examples/token_freshness.py | greenape/flask-jwt-extended | 11ac3bf0937ee199aea7d6dc47c748bef9bf1d2f | [
"MIT"
] | 1 | 2020-08-06T23:02:45.000Z | 2020-09-26T01:36:21.000Z | examples/token_freshness.py | greenape/flask-jwt-extended | 11ac3bf0937ee199aea7d6dc47c748bef9bf1d2f | [
"MIT"
] | 1 | 2020-10-28T20:09:00.000Z | 2020-10-28T20:09:00.000Z | from quart import Quart, jsonify, request
from quart_jwt_extended import (
JWTManager,
jwt_required,
create_access_token,
jwt_refresh_token_required,
create_refresh_token,
get_jwt_identity,
fresh_jwt_required,
)
app = Quart(__name__)
app.config["JWT_SECRET_KEY"] = "super-secret" # Change ... | 33.247059 | 75 | 0.714084 | 398 | 2,826 | 4.89196 | 0.28392 | 0.067797 | 0.043657 | 0.039034 | 0.402671 | 0.327684 | 0.276323 | 0.237288 | 0.154083 | 0.154083 | 0 | 0.009044 | 0.178344 | 2,826 | 84 | 76 | 33.642857 | 0.829457 | 0.31564 | 0 | 0.288462 | 0 | 0 | 0.13309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.115385 | 0.038462 | 0 | 0.173077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
07ffdb3c18cae37c2fe662c5c84ed5398af39b35 | 1,345 | py | Python | keras/linear/model/pipeline_train.py | PipelineAI/models | d8df07877aa8b10ce9b84983bb440af75e84dca7 | [
"Apache-2.0"
] | 44 | 2017-11-17T06:19:05.000Z | 2021-11-03T06:00:56.000Z | keras/linear/model/pipeline_train.py | PipelineAI/models | d8df07877aa8b10ce9b84983bb440af75e84dca7 | [
"Apache-2.0"
] | 3 | 2018-08-09T14:28:17.000Z | 2018-09-10T03:32:42.000Z | keras/linear/model/pipeline_train.py | PipelineAI/models | d8df07877aa8b10ce9b84983bb440af75e84dca7 | [
"Apache-2.0"
] | 21 | 2017-11-18T15:12:12.000Z | 2020-08-15T07:08:33.000Z | import os
os.environ['KERAS_BACKEND'] = 'theano'
os.environ['THEANO_FLAGS'] = 'floatX=float32,device=cpu'
import cloudpickle as pickle
import pipeline_invoke
import pandas as pd
import numpy as np
import keras
from keras.layers import Input, Dense
from keras.models import Model
from keras.models import save_model, loa... | 30.568182 | 92 | 0.709294 | 196 | 1,345 | 4.69898 | 0.464286 | 0.034745 | 0.047774 | 0.068404 | 0.065147 | 0.065147 | 0.065147 | 0 | 0 | 0 | 0 | 0.018437 | 0.15316 | 1,345 | 43 | 93 | 31.27907 | 0.790167 | 0.094424 | 0 | 0 | 0 | 0 | 0.191261 | 0.078318 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
580134063c60e1903557dccde046d7a394258b01 | 319 | py | Python | dictionary.py | SchmitzAndrew/OSS-101-example | 1efecd4c5bfef4495904568d11e3f8d0a5ed9bd0 | [
"MIT"
] | null | null | null | dictionary.py | SchmitzAndrew/OSS-101-example | 1efecd4c5bfef4495904568d11e3f8d0a5ed9bd0 | [
"MIT"
] | null | null | null | dictionary.py | SchmitzAndrew/OSS-101-example | 1efecd4c5bfef4495904568d11e3f8d0a5ed9bd0 | [
"MIT"
] | null | null | null | word = input("Enter a word: ")
if word == "a":
print("one; any")
elif word == "apple":
print("familiar, round fleshy fruit")
elif word == "rhinoceros":
print("large thick-skinned animal with one or two horns on its nose")
else:
print("That word must not exist. This dictionary is very comprehensive.")
| 29 | 77 | 0.667712 | 47 | 319 | 4.531915 | 0.765957 | 0.075117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197492 | 319 | 10 | 78 | 31.9 | 0.832031 | 0 | 0 | 0 | 0 | 0 | 0.595611 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
58035ad02fa85d7c60de0ef4d5c14279175bc2ac | 566 | py | Python | setup.py | sdnhub/kube-navi | d16a9289ba7261011e6c8d19c48cdc9bd533e629 | [
"Apache-2.0"
] | null | null | null | setup.py | sdnhub/kube-navi | d16a9289ba7261011e6c8d19c48cdc9bd533e629 | [
"Apache-2.0"
] | null | null | null | setup.py | sdnhub/kube-navi | d16a9289ba7261011e6c8d19c48cdc9bd533e629 | [
"Apache-2.0"
] | null | null | null | from distutils.core import setup
setup(
name = 'kube_navi',
packages = ['kube_navi'], # this must be the same as the name above
version = '0.1',
description = 'Kubernetes resource discovery toolkit',
author = 'Srini Seetharaman',
author_email = 'srini.seetharaman@gmail.com',
url = 'https://github.com/sdnh... | 40.428571 | 106 | 0.69788 | 79 | 566 | 4.949367 | 0.670886 | 0.081841 | 0.071611 | 0.086957 | 0.158568 | 0.158568 | 0.158568 | 0 | 0 | 0 | 0 | 0.008403 | 0.159011 | 566 | 13 | 107 | 43.538462 | 0.813025 | 0.210247 | 0 | 0 | 0 | 0.076923 | 0.479638 | 0.061086 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5805a2c8d616906daf19682b40baa91f10a88715 | 1,845 | py | Python | app/routes/register.py | AuFeld/COAG | 3874a9c1c6ceb908a6bbabfb49e2c701d8e54f20 | [
"MIT"
] | 1 | 2021-06-03T10:29:12.000Z | 2021-06-03T10:29:12.000Z | app/routes/register.py | AuFeld/COAG | 3874a9c1c6ceb908a6bbabfb49e2c701d8e54f20 | [
"MIT"
] | 45 | 2021-06-05T14:47:09.000Z | 2022-03-30T06:16:44.000Z | app/routes/register.py | AuFeld/COAG | 3874a9c1c6ceb908a6bbabfb49e2c701d8e54f20 | [
"MIT"
] | null | null | null | from typing import Callable, Optional, Type, cast
from fastapi import APIRouter, HTTPException, Request, status
from app.models import users
from app.common.user import ErrorCode, run_handler
from app.users.user import (
CreateUserProtocol,
InvalidPasswordException,
UserAlreadyExists,
ValidatePassword... | 32.946429 | 83 | 0.648238 | 184 | 1,845 | 6.293478 | 0.380435 | 0.018135 | 0.041451 | 0.051813 | 0.098446 | 0.098446 | 0.098446 | 0.098446 | 0.098446 | 0.098446 | 0 | 0.006767 | 0.279133 | 1,845 | 55 | 84 | 33.545455 | 0.86391 | 0.042276 | 0 | 0.133333 | 0 | 0 | 0.010795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0.155556 | 0.111111 | 0 | 0.177778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6afebab1780e5e05d2dbd1b300b2e8c2a43c36a7 | 17,003 | py | Python | apps/UI_phone_mcdm.py | industrial-optimization-group/researchers-night | 68f2fcb8530032e157badda772a795e1f3bb2c4b | [
"MIT"
] | null | null | null | apps/UI_phone_mcdm.py | industrial-optimization-group/researchers-night | 68f2fcb8530032e157badda772a795e1f3bb2c4b | [
"MIT"
] | null | null | null | apps/UI_phone_mcdm.py | industrial-optimization-group/researchers-night | 68f2fcb8530032e157badda772a795e1f3bb2c4b | [
"MIT"
] | null | null | null | import dash
from dash.exceptions import PreventUpdate
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output, State
import dash_bootstrap_components as dbc
import dash_table
import plotly.express as ex
import plotly.graph_objects as go
import pandas as pd
imp... | 43.485934 | 95 | 0.283597 | 1,115 | 17,003 | 4.24574 | 0.253812 | 0.020913 | 0.007393 | 0.008872 | 0.263836 | 0.17744 | 0.133502 | 0.124842 | 0.115547 | 0.104563 | 0 | 0.040494 | 0.628183 | 17,003 | 390 | 96 | 43.597436 | 0.708162 | 0.012351 | 0 | 0.309456 | 0 | 0 | 0.098339 | 0.010186 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011461 | false | 0 | 0.031519 | 0 | 0.054441 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed0fc8cf4f946e650eb4b14f0a5d7690952a62a3 | 980 | py | Python | python/old_password_test.py | XelaRellum/old_password | b461941069bc7f1187776a992f86c89317ab215e | [
"MIT"
] | null | null | null | python/old_password_test.py | XelaRellum/old_password | b461941069bc7f1187776a992f86c89317ab215e | [
"MIT"
] | null | null | null | python/old_password_test.py | XelaRellum/old_password | b461941069bc7f1187776a992f86c89317ab215e | [
"MIT"
] | null | null | null | import unittest
import pytest
from old_password import old_password
import csv
import re
@pytest.mark.parametrize("password,expected_hash", [
(None, None),
("", ""),
("a", "60671c896665c3fa"),
("abc", "7cd2b5942be28759"),
("ä", "0751368d49315f7f"),
])
def test_old_password(password, expected_hash... | 22.272727 | 67 | 0.643878 | 112 | 980 | 5.419643 | 0.383929 | 0.163097 | 0.156507 | 0.088962 | 0.349259 | 0.247117 | 0.135091 | 0.135091 | 0 | 0 | 0 | 0.04712 | 0.220408 | 980 | 43 | 68 | 22.790698 | 0.747382 | 0.060204 | 0 | 0 | 0 | 0 | 0.15618 | 0.024719 | 0 | 0 | 0 | 0 | 0.16 | 1 | 0.16 | false | 0.48 | 0.2 | 0 | 0.36 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ed17fa4c7a350d13f37c06feb06cdcd3b65f55bf | 859 | gyp | Python | binding.gyp | HupuInc/node-mysql-listener | d23e55910acd1559d8339f36b1549f21aee8adaa | [
"MIT"
] | 2 | 2015-10-04T02:09:11.000Z | 2021-02-03T00:12:28.000Z | binding.gyp | HupuInc/node-mysql-listener | d23e55910acd1559d8339f36b1549f21aee8adaa | [
"MIT"
] | 1 | 2015-10-04T02:10:02.000Z | 2015-10-05T07:29:40.000Z | binding.gyp | HupuInc/node-mysql-listener | d23e55910acd1559d8339f36b1549f21aee8adaa | [
"MIT"
] | null | null | null | {
'targets': [
{
# have to specify 'liblib' here since gyp will remove the first one :\
'target_name': 'mysql_bindings',
'sources': [
'src/mysql_bindings.cc',
'src/mysql_bindings_connection.cc',
'src/mysql_bindings_result.cc',
'src/mysql_bindings_statement.cc',
... | 23.861111 | 76 | 0.436554 | 75 | 859 | 4.8 | 0.64 | 0.180556 | 0.177778 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.407451 | 859 | 35 | 77 | 24.542857 | 0.707269 | 0.178114 | 0 | 0.21875 | 0 | 0 | 0.424501 | 0.159544 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed1acc095f46eeb713b4bbe4bbc113d4ca38760c | 399 | py | Python | setup.py | rlbellaire/ActT | b6e936e5037c5f92ad1c281e2bf3700bf91aea42 | [
"BSD-3-Clause"
] | 2 | 2020-01-24T20:20:02.000Z | 2021-09-25T03:32:17.000Z | setup.py | rlbellaire/ActT | b6e936e5037c5f92ad1c281e2bf3700bf91aea42 | [
"BSD-3-Clause"
] | 1 | 2020-11-16T17:08:08.000Z | 2020-11-16T17:08:08.000Z | setup.py | rlbellaire/ActT | b6e936e5037c5f92ad1c281e2bf3700bf91aea42 | [
"BSD-3-Clause"
] | 1 | 2020-11-16T16:58:39.000Z | 2020-11-16T16:58:39.000Z | from setuptools import find_packages, setup
setup(name='ActT',
version='0.6',
description='Active Testing',
url='',
author='',
author_email='none',
license='BSD',
packages=find_packages(),
install_requires=[
'numpy', 'pandas', 'matplotlib','scipy','scikit-learn',... | 24.9375 | 79 | 0.588972 | 40 | 399 | 5.75 | 0.875 | 0.104348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006645 | 0.245614 | 399 | 15 | 80 | 26.6 | 0.757475 | 0 | 0 | 0 | 0 | 0 | 0.243108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed1b9e6a531c569f1a1cfb6234bd90d5b845bbe9 | 1,909 | py | Python | src/quanguru/classes/exceptions.py | Qfabiolous/QuanGuru | 285ca44ae857cc61337f73ea2eb600f485a09e32 | [
"BSD-3-Clause"
] | null | null | null | src/quanguru/classes/exceptions.py | Qfabiolous/QuanGuru | 285ca44ae857cc61337f73ea2eb600f485a09e32 | [
"BSD-3-Clause"
] | null | null | null | src/quanguru/classes/exceptions.py | Qfabiolous/QuanGuru | 285ca44ae857cc61337f73ea2eb600f485a09e32 | [
"BSD-3-Clause"
] | null | null | null | # TODO turn prints into actual error raise, they are print for testing
def qSystemInitErrors(init):
def newFunction(obj, **kwargs):
init(obj, **kwargs)
if obj._genericQSys__dimension is None:
className = obj.__class__.__name__
print(className + ' requires a dimension')
... | 40.617021 | 92 | 0.600838 | 200 | 1,909 | 5.435 | 0.35 | 0.066237 | 0.093836 | 0.115915 | 0.417663 | 0.417663 | 0.417663 | 0.378105 | 0.378105 | 0.333027 | 0 | 0.013413 | 0.297014 | 1,909 | 46 | 93 | 41.5 | 0.796572 | 0.223677 | 0 | 0.363636 | 0 | 0 | 0.149081 | 0 | 0 | 0 | 0 | 0.021739 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.272727 | 0.151515 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed1c74c77f9a61e232ea9a2a837cdc1274993efb | 6,997 | py | Python | reagent/gym/tests/test_gym.py | alexnikulkov/ReAgent | e404c5772ea4118105c2eb136ca96ad5ca8e01db | [
"BSD-3-Clause"
] | null | null | null | reagent/gym/tests/test_gym.py | alexnikulkov/ReAgent | e404c5772ea4118105c2eb136ca96ad5ca8e01db | [
"BSD-3-Clause"
] | null | null | null | reagent/gym/tests/test_gym.py | alexnikulkov/ReAgent | e404c5772ea4118105c2eb136ca96ad5ca8e01db | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
import logging
import os
import pprint
import unittest
import numpy as np
# pyre-fixme[21]: Could not find module `pytest`.
import pytest
import torch
from parameterized import parameterized
from reagent.core.types import R... | 36.253886 | 88 | 0.711019 | 910 | 6,997 | 5.214286 | 0.286813 | 0.030137 | 0.018546 | 0.0196 | 0.175553 | 0.132771 | 0.084299 | 0.084299 | 0.084299 | 0.084299 | 0 | 0.003686 | 0.185651 | 6,997 | 192 | 89 | 36.442708 | 0.829063 | 0.093754 | 0 | 0.089041 | 0 | 0 | 0.226025 | 0.122685 | 0 | 0 | 0 | 0.010417 | 0.013699 | 1 | 0.020548 | false | 0.047945 | 0.157534 | 0 | 0.184932 | 0.013699 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed1f38ec9a444c4d387d2b1c3bbd4a46cc3895ba | 2,132 | py | Python | mcpython/common/block/ISlab.py | mcpython4-coding/core | e4c4f59dab68c90e2028db3add2e5065116bf4a6 | [
"CC0-1.0",
"MIT"
] | 2 | 2019-11-02T05:26:11.000Z | 2019-11-03T08:52:18.000Z | mcpython/common/block/ISlab.py | mcpython4-coding/core | e4c4f59dab68c90e2028db3add2e5065116bf4a6 | [
"CC0-1.0",
"MIT"
] | 25 | 2019-11-02T05:24:29.000Z | 2022-02-09T14:09:08.000Z | mcpython/common/block/ISlab.py | mcpython4-coding/core | e4c4f59dab68c90e2028db3add2e5065116bf4a6 | [
"CC0-1.0",
"MIT"
] | 5 | 2019-11-09T05:36:06.000Z | 2021-11-28T13:07:08.000Z | """
mcpython - a minecraft clone written in python licenced under the MIT-licence
(https://github.com/mcpython4-coding/core)
Contributors: uuk, xkcdjerry (inactive)
Based on the game of fogleman (https://github.com/fogleman/Minecraft), licenced under the MIT-licence
Original game "minecraft" by Mojang Studios (www.m... | 32.30303 | 103 | 0.701689 | 272 | 2,132 | 5.371324 | 0.452206 | 0.032854 | 0.057495 | 0.117728 | 0.130048 | 0.094456 | 0.094456 | 0.094456 | 0.094456 | 0 | 0 | 0.009878 | 0.192777 | 2,132 | 65 | 104 | 32.8 | 0.839047 | 0.297373 | 0 | 0.108108 | 0 | 0 | 0.010847 | 0 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0.108108 | false | 0 | 0.108108 | 0.054054 | 0.405405 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed207a7611696af8395d372e4e8d01f42d7c6467 | 25,419 | py | Python | CourseOutlineBackend/courseoutline/serializers.py | stancsz/web-development-project-ensf-607 | 03b11df4971afd4f27fee54a1800a40d4cc10240 | [
"Apache-2.0"
] | null | null | null | CourseOutlineBackend/courseoutline/serializers.py | stancsz/web-development-project-ensf-607 | 03b11df4971afd4f27fee54a1800a40d4cc10240 | [
"Apache-2.0"
] | null | null | null | CourseOutlineBackend/courseoutline/serializers.py | stancsz/web-development-project-ensf-607 | 03b11df4971afd4f27fee54a1800a40d4cc10240 | [
"Apache-2.0"
] | null | null | null | from rest_framework import serializers
from .models import *
class CoordinatorSerializer(serializers.ModelSerializer):
# ModelID = serializers.CharField(max_length=100, required=True)
CourseID = serializers.CharField(max_length=100, required=True)
FName = serializers.CharField(max_length=100, required=Fa... | 42.649329 | 108 | 0.66824 | 2,481 | 25,419 | 6.726723 | 0.050383 | 0.163581 | 0.174486 | 0.142489 | 0.8206 | 0.645875 | 0.638444 | 0.554137 | 0.531128 | 0.523998 | 0 | 0.013246 | 0.224832 | 25,419 | 595 | 109 | 42.721008 | 0.833739 | 0.059837 | 0 | 0.517787 | 0 | 0 | 0.090867 | 0 | 0 | 0 | 0 | 0.001681 | 0 | 1 | 0.055336 | false | 0 | 0.003953 | 0.027668 | 0.322134 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed22f71576a11a3b9302f73902c8de9c8f96d4dd | 1,244 | py | Python | frontends/pytorch/python/torch_mlir_torchscript_e2e_test_configs/torchscript.py | raikonenfnu/mlir-npcomp | 29e1b2fe89848d58c9bc07e7df7ce651850a5244 | [
"Apache-2.0"
] | null | null | null | frontends/pytorch/python/torch_mlir_torchscript_e2e_test_configs/torchscript.py | raikonenfnu/mlir-npcomp | 29e1b2fe89848d58c9bc07e7df7ce651850a5244 | [
"Apache-2.0"
] | null | null | null | frontends/pytorch/python/torch_mlir_torchscript_e2e_test_configs/torchscript.py | raikonenfnu/mlir-npcomp | 29e1b2fe89848d58c9bc07e7df7ce651850a5244 | [
"Apache-2.0"
] | null | null | null | # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
import copy
from typing import Any
import torch
from torch_mlir_torchscript.e2e_test.framework import TestConfig, Tr... | 34.555556 | 82 | 0.644695 | 150 | 1,244 | 5.273333 | 0.52 | 0.040455 | 0.075853 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005482 | 0.266881 | 1,244 | 35 | 83 | 35.542857 | 0.861842 | 0.312701 | 0 | 0 | 0 | 0 | 0.001183 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 1 | 0.142857 | false | 0 | 0.190476 | 0.047619 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed23166702dcea8d3e5e73f8ed58f0971f2a45b0 | 2,495 | py | Python | app/balltracking/pubnubpython/pnconfiguration.py | gdmgent-1718-wot/interactive-wall | af7ecff126b1ee9c85c270fe13d1338aa790c34b | [
"Apache-2.0"
] | null | null | null | app/balltracking/pubnubpython/pnconfiguration.py | gdmgent-1718-wot/interactive-wall | af7ecff126b1ee9c85c270fe13d1338aa790c34b | [
"Apache-2.0"
] | null | null | null | app/balltracking/pubnubpython/pnconfiguration.py | gdmgent-1718-wot/interactive-wall | af7ecff126b1ee9c85c270fe13d1338aa790c34b | [
"Apache-2.0"
] | null | null | null | from .enums import PNHeartbeatNotificationOptions, PNReconnectionPolicy
from . import utils
class PNConfiguration(object):
DEFAULT_PRESENCE_TIMEOUT = 300
DEFAULT_HEARTBEAT_INTERVAL = 280
def __init__(self):
# TODO: add validation
self.uuid = None
self.origin = "ps.pndsn.com"
... | 29.352941 | 85 | 0.666132 | 278 | 2,495 | 5.723022 | 0.302158 | 0.055311 | 0.034569 | 0.032684 | 0.045255 | 0.045255 | 0 | 0 | 0 | 0 | 0 | 0.01036 | 0.26493 | 2,495 | 84 | 86 | 29.702381 | 0.857143 | 0.024048 | 0 | 0.063492 | 0 | 0 | 0.011929 | 0 | 0 | 0 | 0 | 0.011905 | 0.015873 | 1 | 0.190476 | false | 0 | 0.047619 | 0.079365 | 0.412698 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed24828337abdac65179c3d1fc89a55415ddc15a | 1,871 | py | Python | language/Basics/stringformatting.py | Binary-bug/Python | 233425ded6abc26c889599a82a181487789e3bab | [
"MIT"
] | null | null | null | language/Basics/stringformatting.py | Binary-bug/Python | 233425ded6abc26c889599a82a181487789e3bab | [
"MIT"
] | null | null | null | language/Basics/stringformatting.py | Binary-bug/Python | 233425ded6abc26c889599a82a181487789e3bab | [
"MIT"
] | null | null | null | age = 24
print("My age is " + str(age) + " years ")
# the above procedure is tedious since we dont really want to include str for every number we encounter
#Method1 Replacement Fields
print("My age is {0} years ".format(age)) # {0} is the actual replacement field, number important for multiple replacement fields
... | 25.986111 | 140 | 0.649385 | 330 | 1,871 | 3.675758 | 0.372727 | 0.016488 | 0.024732 | 0.045342 | 0.236603 | 0.155812 | 0.155812 | 0.145919 | 0.093982 | 0.093982 | 0 | 0.0589 | 0.174238 | 1,871 | 72 | 141 | 25.986111 | 0.726214 | 0.513095 | 0 | 0.142857 | 0 | 0.142857 | 0.486887 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
ed25ac3871761ab8e7fb05fe5b59a6a001de70b4 | 154 | py | Python | Euler0001.py | rbarillec/project_euler | db812f9ae53090b34716452d0cb9ec14bf218290 | [
"MIT"
] | null | null | null | Euler0001.py | rbarillec/project_euler | db812f9ae53090b34716452d0cb9ec14bf218290 | [
"MIT"
] | null | null | null | Euler0001.py | rbarillec/project_euler | db812f9ae53090b34716452d0cb9ec14bf218290 | [
"MIT"
] | null | null | null | def Euler0001():
max = 1000
sum = 0
for i in range(1, max):
if i%3 == 0 or i%5 == 0:
sum += i
print(sum)
Euler0001() | 15.4 | 32 | 0.448052 | 25 | 154 | 2.76 | 0.64 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197802 | 0.409091 | 154 | 10 | 33 | 15.4 | 0.56044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 0.125 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed3b6f60e4e30cf75b95e63f68e2b18f1cb5a0e8 | 1,122 | py | Python | templates/integration/__init__.py | p7g/dd-trace-py | 141ac0ab6e9962e3b3bafc9de172076075289a19 | [
"Apache-2.0",
"BSD-3-Clause"
] | 308 | 2016-12-07T16:49:27.000Z | 2022-03-15T10:06:45.000Z | templates/integration/__init__.py | p7g/dd-trace-py | 141ac0ab6e9962e3b3bafc9de172076075289a19 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1,928 | 2016-11-28T17:13:18.000Z | 2022-03-31T21:43:19.000Z | templates/integration/__init__.py | p7g/dd-trace-py | 141ac0ab6e9962e3b3bafc9de172076075289a19 | [
"Apache-2.0",
"BSD-3-Clause"
] | 311 | 2016-11-27T03:01:49.000Z | 2022-03-18T21:34:03.000Z | """
The foo integration instruments the bar and baz features of the
foo library.
Enabling
~~~~~~~~
The foo integration is enabled automatically when using
:ref:`ddtrace-run <ddtracerun>` or :ref:`patch_all() <patch_all>`.
Or use :ref:`patch() <patch>` to manually enable the integration::
from ddtrace import pa... | 20.777778 | 70 | 0.678253 | 144 | 1,122 | 5.1875 | 0.506944 | 0.032129 | 0.068273 | 0.077644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186275 | 1,122 | 53 | 71 | 21.169811 | 0.818182 | 0.741533 | 0 | 0 | 0 | 0 | 0.053191 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ed4086f481b4822d573ede5f8a9108ee4da236b6 | 290 | py | Python | coding202-parsing-json/get-ap-json-1.py | firodj/ciscodevnet-coding-skills-sample-code | 4fca975e450cf0c913001fe1b36582f7a094b1e7 | [
"Apache-2.0"
] | null | null | null | coding202-parsing-json/get-ap-json-1.py | firodj/ciscodevnet-coding-skills-sample-code | 4fca975e450cf0c913001fe1b36582f7a094b1e7 | [
"Apache-2.0"
] | null | null | null | coding202-parsing-json/get-ap-json-1.py | firodj/ciscodevnet-coding-skills-sample-code | 4fca975e450cf0c913001fe1b36582f7a094b1e7 | [
"Apache-2.0"
] | null | null | null | import requests
url = 'https://64.103.26.61/api/contextaware/v1/maps/info/DevNetCampus/DevNetBuilding/DevNetZone'
headers = {'Authorization': 'Basic bGVhcm5pbmc6bGVhcm5pbmc=='}
response = requests.get(url, headers=headers, verify=False)
responseString = response.text
print(responseString)
| 41.428571 | 97 | 0.8 | 33 | 290 | 7.030303 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04797 | 0.065517 | 290 | 6 | 98 | 48.333333 | 0.808118 | 0 | 0 | 0 | 0 | 0.166667 | 0.458621 | 0.086207 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed4193bd5735a5283b0caa027d333560a4c2793c | 1,078 | py | Python | lldb/test/API/lang/swift/optimized_code/bound_generic_enum/TestSwiftOptimizedBoundGenericEnum.py | LaudateCorpus1/llvm-project | ff2e0f0c1112558b3f30d8afec7c9882c33c79e3 | [
"Apache-2.0"
] | 605 | 2019-10-18T01:15:54.000Z | 2022-03-31T14:31:04.000Z | lldb/test/API/lang/swift/optimized_code/bound_generic_enum/TestSwiftOptimizedBoundGenericEnum.py | LaudateCorpus1/llvm-project | ff2e0f0c1112558b3f30d8afec7c9882c33c79e3 | [
"Apache-2.0"
] | 3,180 | 2019-10-18T01:21:21.000Z | 2022-03-31T23:25:41.000Z | lldb/test/API/lang/swift/optimized_code/bound_generic_enum/TestSwiftOptimizedBoundGenericEnum.py | LaudateCorpus1/llvm-project | ff2e0f0c1112558b3f30d8afec7c9882c33c79e3 | [
"Apache-2.0"
] | 275 | 2019-10-18T05:27:22.000Z | 2022-03-30T09:04:21.000Z | import lldb
from lldbsuite.test.decorators import *
import lldbsuite.test.lldbtest as lldbtest
import lldbsuite.test.lldbutil as lldbutil
import os
import unittest2
class TestSwiftOptimizedBoundGenericEnum(lldbtest.TestBase):
mydir = lldbtest.TestBase.compute_mydir(__file__)
@swiftTest
def test(self):
... | 35.933333 | 79 | 0.705009 | 125 | 1,078 | 5.928 | 0.528 | 0.037787 | 0.051282 | 0.062078 | 0.17274 | 0.17274 | 0 | 0 | 0 | 0 | 0 | 0.002299 | 0.19295 | 1,078 | 29 | 80 | 37.172414 | 0.849425 | 0.09462 | 0 | 0.095238 | 0 | 0 | 0.054639 | 0 | 0 | 0 | 0 | 0.034483 | 0.047619 | 1 | 0.047619 | false | 0 | 0.285714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed4408c93538d9f83abe75060897c6705abd216b | 2,219 | py | Python | social_webpy/app.py | python-social-auth/social-app-webpy | edcfd8dd95c66a3524961e5212e13c9c2e8515a3 | [
"BSD-3-Clause"
] | 2 | 2017-06-21T15:29:09.000Z | 2022-01-26T21:12:25.000Z | social_webpy/app.py | python-social-auth/social-app-webpy | edcfd8dd95c66a3524961e5212e13c9c2e8515a3 | [
"BSD-3-Clause"
] | null | null | null | social_webpy/app.py | python-social-auth/social-app-webpy | edcfd8dd95c66a3524961e5212e13c9c2e8515a3 | [
"BSD-3-Clause"
] | 1 | 2018-10-21T07:33:36.000Z | 2018-10-21T07:33:36.000Z | import web
from social_core.actions import do_auth, do_complete, do_disconnect
from .utils import psa, load_strategy, load_strategy
urls = (
r'/login/(?P<backend>[^/]+)/?', 'auth',
r'/complete/(?P<backend>[^/]+)/?', 'complete',
r'/disconnect/(?P<backend>[^/]+)/?', 'disconnect',
r'/disconnect/(?P<bac... | 28.818182 | 78 | 0.598918 | 259 | 2,219 | 4.942085 | 0.216216 | 0.094531 | 0.066406 | 0.042188 | 0.222656 | 0.1375 | 0.0875 | 0.0875 | 0.0875 | 0.0875 | 0 | 0 | 0.250113 | 2,219 | 76 | 79 | 29.197368 | 0.769231 | 0 | 0 | 0.142857 | 0 | 0 | 0.121226 | 0.085174 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.053571 | 0.125 | 0.446429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
ed4409f82d978378f6be973493d164c3f3a747dd | 2,133 | py | Python | stellar/config.py | gomyar/stellar | b2dfbe136f1540f0ca6ac5779ebaeae996a3b747 | [
"MIT"
] | null | null | null | stellar/config.py | gomyar/stellar | b2dfbe136f1540f0ca6ac5779ebaeae996a3b747 | [
"MIT"
] | null | null | null | stellar/config.py | gomyar/stellar | b2dfbe136f1540f0ca6ac5779ebaeae996a3b747 | [
"MIT"
] | null | null | null | import os
import logging
import yaml
from schema import Use, Schema, SchemaError, Optional
class InvalidConfig(Exception):
pass
class MissingConfig(Exception):
pass
default_config = {
'logging': 30,
'migrate_from_0_3_2': True
}
schema = Schema({
'stellar_url': Use(str),
'url': Use(str),
... | 23.43956 | 70 | 0.554149 | 234 | 2,133 | 4.854701 | 0.307692 | 0.15493 | 0.044014 | 0.074824 | 0.310739 | 0.286092 | 0.286092 | 0.253521 | 0.253521 | 0.253521 | 0 | 0.005678 | 0.339428 | 2,133 | 90 | 71 | 23.7 | 0.800568 | 0 | 0 | 0.402778 | 0 | 0 | 0.078293 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.055556 | 0.055556 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ed44cdd790149a7a7aba7ae668b2598d57504c5a | 9,404 | py | Python | movement_validation/features/feature_processing_options.py | eulerkaku/movement_validation | af939a42a97c1de889cf13bad0c22a2824d60947 | [
"MIT"
] | null | null | null | movement_validation/features/feature_processing_options.py | eulerkaku/movement_validation | af939a42a97c1de889cf13bad0c22a2824d60947 | [
"MIT"
] | null | null | null | movement_validation/features/feature_processing_options.py | eulerkaku/movement_validation | af939a42a97c1de889cf13bad0c22a2824d60947 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
This module will hold a class that will be referenced when processing features.
I'd like to move things from "config" into here ...
- @JimHokanson
"""
from __future__ import division
from .. import utils
#Can't do this, would be circular
#from .worm_features import WormFeatures
class... | 34.072464 | 116 | 0.606231 | 1,125 | 9,404 | 4.873778 | 0.322667 | 0.010213 | 0.01605 | 0.018603 | 0.139522 | 0.089732 | 0.0766 | 0.053256 | 0.053256 | 0.030275 | 0 | 0.012403 | 0.314122 | 9,404 | 276 | 117 | 34.072464 | 0.837674 | 0.43205 | 0 | 0.16092 | 0 | 0 | 0.067644 | 0.015456 | 0 | 0 | 0 | 0.01087 | 0 | 1 | 0.16092 | false | 0 | 0.022989 | 0.034483 | 0.321839 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed4a99de0c0a371040dd37f7fc6fad45e488b616 | 132 | py | Python | 6.爬取豆瓣排行榜电影数据(含GUI界面版)/main.py | shengqiangzhang/examples-of-web-crawlers | 89eb6c169b8824a6a9bc78e7a32e064d33560aa7 | [
"MIT"
] | 12,023 | 2019-03-13T08:53:27.000Z | 2022-03-31T21:31:15.000Z | 6.爬取豆瓣排行榜电影数据(含GUI界面版)/main.py | shengqiangzhang/examples-of-web-crawlers | 89eb6c169b8824a6a9bc78e7a32e064d33560aa7 | [
"MIT"
] | 100 | 2019-03-14T04:09:12.000Z | 2022-03-22T14:24:11.000Z | 6.爬取豆瓣排行榜电影数据(含GUI界面版)/main.py | shengqiangzhang/examples-of-web-crawlers | 89eb6c169b8824a6a9bc78e7a32e064d33560aa7 | [
"MIT"
] | 3,693 | 2019-03-13T08:21:22.000Z | 2022-03-31T16:07:08.000Z | # -*- coding:utf-8 -*-
from uiObject import uiObject
# main入口
if __name__ == '__main__':
ui = uiObject()
ui.ui_process() | 13.2 | 29 | 0.621212 | 16 | 132 | 4.5625 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009709 | 0.219697 | 132 | 10 | 30 | 13.2 | 0.699029 | 0.204545 | 0 | 0 | 0 | 0 | 0.07767 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed4ce61eb4af04f3704ae96a5870d43583535a63 | 524 | py | Python | photos/models.py | eude313/vault | d3e24cf01d15de94244b7d2e80316355a0827f74 | [
"MIT"
] | null | null | null | photos/models.py | eude313/vault | d3e24cf01d15de94244b7d2e80316355a0827f74 | [
"MIT"
] | null | null | null | photos/models.py | eude313/vault | d3e24cf01d15de94244b7d2e80316355a0827f74 | [
"MIT"
] | null | null | null | from django.db import models
from cloudinary.models import CloudinaryField
# Create your models here.
class Category(models.Model):
name = models.CharField( max_length=200, null=False, blank=False )
def __str__(self):
return self.name
class Photo(models.Model):
category = models.ForeignKey(... | 29.111111 | 94 | 0.71374 | 64 | 524 | 5.671875 | 0.546875 | 0.077135 | 0.055096 | 0.088154 | 0.110193 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007026 | 0.185115 | 524 | 18 | 95 | 29.111111 | 0.843091 | 0.045802 | 0 | 0.166667 | 0 | 0 | 0.01002 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
ed4da4c3e62ea1a20080eade8fbb9743d55cdd88 | 3,558 | py | Python | doc/examples.py | Enerccio/mahjong | 903505a7886c31845dfa6b3f54c936a4feb29e6e | [
"MIT"
] | 254 | 2017-09-20T15:02:20.000Z | 2022-03-28T11:33:28.000Z | doc/examples.py | Enerccio/mahjong | 903505a7886c31845dfa6b3f54c936a4feb29e6e | [
"MIT"
] | 39 | 2017-09-23T14:28:36.000Z | 2022-01-06T08:41:57.000Z | doc/examples.py | Enerccio/mahjong | 903505a7886c31845dfa6b3f54c936a4feb29e6e | [
"MIT"
] | 38 | 2017-10-19T09:06:53.000Z | 2022-03-15T05:08:22.000Z | from mahjong.hand_calculating.hand import HandCalculator
from mahjong.meld import Meld
from mahjong.hand_calculating.hand_config import HandConfig, OptionalRules
from mahjong.shanten import Shanten
from mahjong.tile import TilesConverter
calculator = HandCalculator()
# useful helper
def print_hand_result(hand_result... | 35.227723 | 133 | 0.537943 | 355 | 3,558 | 5.132394 | 0.261972 | 0.1427 | 0.15697 | 0.164654 | 0.493963 | 0.403952 | 0.384193 | 0.322173 | 0.322173 | 0.236004 | 0 | 0.039509 | 0.153457 | 3,558 | 100 | 134 | 35.58 | 0.565405 | 0.13575 | 0 | 0.282609 | 0 | 0 | 0.032992 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0.108696 | 0 | 0.130435 | 0.26087 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed5bb200d9597641b3d366c18b6bda01b9a7883d | 6,119 | py | Python | src/TF-gui/tftrain.py | jeetsagar/turbojet | 9b17edde0a7e01d0fa320261fbc2734ce53577d2 | [
"MIT"
] | null | null | null | src/TF-gui/tftrain.py | jeetsagar/turbojet | 9b17edde0a7e01d0fa320261fbc2734ce53577d2 | [
"MIT"
] | null | null | null | src/TF-gui/tftrain.py | jeetsagar/turbojet | 9b17edde0a7e01d0fa320261fbc2734ce53577d2 | [
"MIT"
] | 2 | 2021-05-20T05:47:59.000Z | 2021-08-24T07:44:37.000Z | #!python3
import os
import pandas as pd
import tensorflow as tf
from tensorflow.keras import layers
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
# gpu_devices = tf.config.experimental.list_physical_devices("GPU")
# for device in gpu_devices:
# tf.config.experimental.set_memory_growth(device, True)
def trainModel... | 42.493056 | 120 | 0.57346 | 664 | 6,119 | 5.161145 | 0.201807 | 0.063029 | 0.099796 | 0.094543 | 0.674934 | 0.657426 | 0.642836 | 0.642836 | 0.642836 | 0.638751 | 0 | 0.032579 | 0.292695 | 6,119 | 143 | 121 | 42.79021 | 0.759242 | 0.041183 | 0 | 0.669492 | 0 | 0 | 0.061263 | 0.007679 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033898 | false | 0 | 0.033898 | 0.008475 | 0.084746 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed5bcaf7cb360ac7f0af74528df0eb589224f1a5 | 5,434 | py | Python | library/kong_api.py | sebastienc/ansible-kong-module | c1e7b471a517d1ec99c5629f3729ebc34088bd64 | [
"MIT"
] | 34 | 2016-03-09T17:10:52.000Z | 2019-12-25T08:31:49.000Z | library/kong_api.py | sebastienc/ansible-kong-module | c1e7b471a517d1ec99c5629f3729ebc34088bd64 | [
"MIT"
] | 6 | 2016-05-16T14:09:05.000Z | 2018-07-23T21:09:33.000Z | library/kong_api.py | sebastienc/ansible-kong-module | c1e7b471a517d1ec99c5629f3729ebc34088bd64 | [
"MIT"
] | 23 | 2016-02-17T12:18:16.000Z | 2021-05-06T09:39:35.000Z | #!/usr/bin/python
DOCUMENTATION = '''
---
module: kong
short_description: Configure a Kong API Gateway
'''
EXAMPLES = '''
- name: Register a site
kong:
kong_admin_uri: http://127.0.0.1:8001/apis/
name: "Mockbin"
taget_url: "http://mockbin.com"
request_host: "mockbin.com"
state: present
- ... | 30.188889 | 133 | 0.597902 | 662 | 5,434 | 4.685801 | 0.193353 | 0.034816 | 0.054803 | 0.047389 | 0.303997 | 0.199871 | 0.179884 | 0.088975 | 0.066409 | 0.066409 | 0 | 0.008947 | 0.280088 | 5,434 | 179 | 134 | 30.357542 | 0.783998 | 0.006625 | 0 | 0.145985 | 0 | 0 | 0.159036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094891 | false | 0.072993 | 0.021898 | 0.007299 | 0.211679 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ed5e905c814c4d72273c16c39c47e06ae62fc1f0 | 897 | gyp | Python | tools/android/android_tools.gyp | SlimKatLegacy/android_external_chromium_org | ee480ef5039d7c561fc66ccf52169ead186f1bea | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2015-03-04T02:36:53.000Z | 2016-06-25T11:22:17.000Z | tools/android/android_tools.gyp | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/android/android_tools.gyp | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 4 | 2015-02-09T08:49:30.000Z | 2017-08-26T02:03:34.000Z | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
# Intermediate target grouping the android tools needed to run native
# unittests and instrumentation test apks.
{
'ta... | 25.628571 | 73 | 0.596433 | 94 | 897 | 5.585106 | 0.595745 | 0.057143 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013761 | 0.270903 | 897 | 34 | 74 | 26.382353 | 0.788991 | 0.298774 | 0 | 0.357143 | 0 | 0 | 0.536116 | 0.325843 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed693e39d7414ae26d14dc6568bc549d2c30f321 | 1,452 | py | Python | DD/Terrain.py | CodingBullywug/DDreshape | 393e5ea336eb6cb78f31345731ccf52baf19bfac | [
"MIT"
] | 2 | 2020-04-13T04:47:26.000Z | 2022-02-19T06:10:04.000Z | DD/Terrain.py | CodingBullywug/DDreshape | 393e5ea336eb6cb78f31345731ccf52baf19bfac | [
"MIT"
] | null | null | null | DD/Terrain.py | CodingBullywug/DDreshape | 393e5ea336eb6cb78f31345731ccf52baf19bfac | [
"MIT"
] | 1 | 2020-04-13T04:47:30.000Z | 2020-04-13T04:47:30.000Z | from DD.utils import PoolByteArray2NumpyArray, NumpyArray2PoolByteArray
from DD.Entity import Entity
import numpy as np
class Terrain(Entity):
def __init__(self, json, width, height, scale=4, terrain_types=4):
super(Terrain, self).__init__(json)
self._scale = scale
self.terrain_types = terr... | 37.230769 | 144 | 0.644628 | 188 | 1,452 | 4.808511 | 0.244681 | 0.169248 | 0.057522 | 0.059735 | 0.185841 | 0.161504 | 0.068584 | 0 | 0 | 0 | 0 | 0.021409 | 0.227961 | 1,452 | 38 | 145 | 38.210526 | 0.785013 | 0 | 0 | 0 | 0 | 0 | 0.011019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.310345 | false | 0 | 0.103448 | 0 | 0.482759 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed6aff1082796c2046965ddce3d39f2087944e89 | 925 | py | Python | setup.py | marcus-luck/zohoreader | e832f076a8a87bf27607980fb85a1d2bc8339743 | [
"MIT"
] | 1 | 2020-11-11T02:19:50.000Z | 2020-11-11T02:19:50.000Z | setup.py | marcus-luck/zohoreader | e832f076a8a87bf27607980fb85a1d2bc8339743 | [
"MIT"
] | null | null | null | setup.py | marcus-luck/zohoreader | e832f076a8a87bf27607980fb85a1d2bc8339743 | [
"MIT"
] | null | null | null | from setuptools import setup
def readme():
with open('README.rst') as f:
return f.read()
setup(name='zohoreader',
version='0.1',
description='A simple reader for zoho projects API to get all projects, users and timereports',
long_description=readme(),
classifiers=[
'Devel... | 28.030303 | 101 | 0.596757 | 106 | 925 | 5.132075 | 0.754717 | 0.055147 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019034 | 0.261622 | 925 | 32 | 102 | 28.90625 | 0.777452 | 0 | 0 | 0.071429 | 0 | 0 | 0.418378 | 0.048649 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | true | 0 | 0.035714 | 0 | 0.107143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed6c19de3061a6952b4f83f10500239e87852cc5 | 2,883 | py | Python | autumn/projects/covid_19/sri_lanka/sri_lanka/project.py | emmamcbryde/AuTuMN-1 | b1e7de15ac6ef6bed95a80efab17f0780ec9ff6f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | autumn/projects/covid_19/sri_lanka/sri_lanka/project.py | emmamcbryde/AuTuMN-1 | b1e7de15ac6ef6bed95a80efab17f0780ec9ff6f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | autumn/projects/covid_19/sri_lanka/sri_lanka/project.py | emmamcbryde/AuTuMN-1 | b1e7de15ac6ef6bed95a80efab17f0780ec9ff6f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | import numpy as np
from autumn.calibration.proposal_tuning import perform_all_params_proposal_tuning
from autumn.core.project import Project, ParameterSet, load_timeseries, build_rel_path, get_all_available_scenario_paths, \
use_tuned_proposal_sds
from autumn.calibration import Calibration
from autumn.calibration.p... | 43.029851 | 123 | 0.794658 | 401 | 2,883 | 5.399002 | 0.351621 | 0.036952 | 0.038799 | 0.030485 | 0.213395 | 0.06097 | 0.04388 | 0.04388 | 0 | 0 | 0 | 0.027413 | 0.10163 | 2,883 | 67 | 124 | 43.029851 | 0.808494 | 0.181755 | 0 | 0.043478 | 0 | 0 | 0.151193 | 0.105622 | 0 | 0 | 0 | 0.014925 | 0 | 1 | 0 | false | 0 | 0.217391 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed6c49af1afdf5e937dac3ecb68b0de9cb7816d4 | 11,421 | py | Python | selfdrive/sensord/rawgps/structs.py | TC921/openpilot | d5d91e6e3be02e2525ed8d6137e5fdca2b81657c | [
"MIT"
] | null | null | null | selfdrive/sensord/rawgps/structs.py | TC921/openpilot | d5d91e6e3be02e2525ed8d6137e5fdca2b81657c | [
"MIT"
] | null | null | null | selfdrive/sensord/rawgps/structs.py | TC921/openpilot | d5d91e6e3be02e2525ed8d6137e5fdca2b81657c | [
"MIT"
] | null | null | null | from struct import unpack_from, calcsize
LOG_GNSS_POSITION_REPORT = 0x1476
LOG_GNSS_GPS_MEASUREMENT_REPORT = 0x1477
LOG_GNSS_CLOCK_REPORT = 0x1478
LOG_GNSS_GLONASS_MEASUREMENT_REPORT = 0x1480
LOG_GNSS_BDS_MEASUREMENT_REPORT = 0x1756
LOG_GNSS_GAL_MEASUREMENT_REPORT = 0x1886
LOG_GNSS_OEMDRE_MEASUREMENT_REPORT = 0x14DE
... | 50.76 | 403 | 0.698976 | 1,487 | 11,421 | 5.174849 | 0.246133 | 0.040026 | 0.02872 | 0.02924 | 0.488369 | 0.446524 | 0.424691 | 0.382326 | 0.369591 | 0.312411 | 0 | 0.047333 | 0.228614 | 11,421 | 224 | 404 | 50.986607 | 0.826107 | 0.001313 | 0 | 0.349057 | 0 | 0.051887 | 0.832968 | 0.108637 | 0 | 0 | 0.015958 | 0 | 0.004717 | 1 | 0.014151 | false | 0 | 0.004717 | 0 | 0.033019 | 0.004717 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed6e652c3847138189ca7b951889b9b3a32aa8ce | 1,702 | py | Python | jassen/django/project/project/urls.py | cabilangan112/intern-drf-blog | b2d6c7a4af1316b2c7ce38547bd9df99b4f3e8b9 | [
"MIT"
] | null | null | null | jassen/django/project/project/urls.py | cabilangan112/intern-drf-blog | b2d6c7a4af1316b2c7ce38547bd9df99b4f3e8b9 | [
"MIT"
] | null | null | null | jassen/django/project/project/urls.py | cabilangan112/intern-drf-blog | b2d6c7a4af1316b2c7ce38547bd9df99b4f3e8b9 | [
"MIT"
] | null | null | null | """project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | 37.822222 | 101 | 0.756757 | 239 | 1,702 | 5.313808 | 0.343096 | 0.047244 | 0.070866 | 0.018898 | 0.092126 | 0.092126 | 0.059055 | 0 | 0 | 0 | 0 | 0.005348 | 0.121034 | 1,702 | 45 | 102 | 37.822222 | 0.843583 | 0.36604 | 0 | 0 | 0 | 0 | 0.10904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ed6ff0df42bec5dfbd4d71634bb7ab44a9c003d2 | 9,473 | py | Python | django_town/rest_swagger/views.py | uptown/django-town | 4c3b078a8ce5dcc275d65faa4a1cdfb7ebc74a50 | [
"MIT"
] | null | null | null | django_town/rest_swagger/views.py | uptown/django-town | 4c3b078a8ce5dcc275d65faa4a1cdfb7ebc74a50 | [
"MIT"
] | null | null | null | django_town/rest_swagger/views.py | uptown/django-town | 4c3b078a8ce5dcc275d65faa4a1cdfb7ebc74a50 | [
"MIT"
] | null | null | null | from django_town.rest import RestApiView, rest_api_manager
from django_town.http import http_json_response
from django_town.cache.utlis import SimpleCache
from django_town.oauth2.swagger import swagger_authorizations_data
from django_town.social.oauth2.permissions import OAuth2Authenticated, OAuth2AuthenticatedOrReadOn... | 43.059091 | 108 | 0.331468 | 525 | 9,473 | 5.819048 | 0.28 | 0.032079 | 0.064812 | 0.042553 | 0.304092 | 0.207856 | 0.184288 | 0.184288 | 0.153191 | 0.120458 | 0 | 0.01407 | 0.579859 | 9,473 | 219 | 109 | 43.255708 | 0.753518 | 0 | 0 | 0.320755 | 0 | 0 | 0.146522 | 0.013512 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009434 | false | 0.009434 | 0.028302 | 0 | 0.051887 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed75ef3dbcd90991f3b2e3a5c73442983622bbb5 | 452 | py | Python | thinkutils_plus/eventbus/sample/myeventbus.py | ThinkmanWang/thinkutils_plus | 65d56a1a0cfce22dff08a4f0baea6b4eb08a2e35 | [
"MIT"
] | null | null | null | thinkutils_plus/eventbus/sample/myeventbus.py | ThinkmanWang/thinkutils_plus | 65d56a1a0cfce22dff08a4f0baea6b4eb08a2e35 | [
"MIT"
] | null | null | null | thinkutils_plus/eventbus/sample/myeventbus.py | ThinkmanWang/thinkutils_plus | 65d56a1a0cfce22dff08a4f0baea6b4eb08a2e35 | [
"MIT"
] | null | null | null | __author__ = 'Xsank'
import time
from thinkutils_plus.eventbus.eventbus import EventBus
from myevent import GreetEvent
from myevent import ByeEvent
from mylistener import MyListener
if __name__=="__main__":
eventbus=EventBus()
eventbus.register(MyListener())
ge=GreetEvent('world')
be=ByeEvent('world'... | 23.789474 | 54 | 0.743363 | 53 | 452 | 6.075472 | 0.490566 | 0.149068 | 0.10559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005236 | 0.154867 | 452 | 19 | 55 | 23.789474 | 0.837696 | 0 | 0 | 0 | 0 | 0 | 0.050773 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ed7d1c9bb5710045f4cb95dccf219d3b5c6faaa9 | 2,564 | py | Python | pyfisher/mpi.py | borisbolliet/pyfisher | 715e192baa4fadbff754416d2b001c3708c9276c | [
"BSD-3-Clause"
] | 7 | 2017-12-06T18:16:13.000Z | 2021-02-09T19:25:26.000Z | pyfisher/mpi.py | borisbolliet/pyfisher | 715e192baa4fadbff754416d2b001c3708c9276c | [
"BSD-3-Clause"
] | 34 | 2016-01-25T19:48:07.000Z | 2021-02-03T22:34:09.000Z | pyfisher/mpi.py | borisbolliet/pyfisher | 715e192baa4fadbff754416d2b001c3708c9276c | [
"BSD-3-Clause"
] | 10 | 2017-02-01T15:14:22.000Z | 2021-02-16T01:34:16.000Z | from __future__ import print_function
import numpy as np
import os,sys,time
"""
Copied from orphics.mpi
"""
try:
disable_mpi_env = os.environ['DISABLE_MPI']
disable_mpi = True if disable_mpi_env.lower().strip() == "true" else False
except:
disable_mpi = False
"""
Use the below cleanup stuff only for inte... | 29.813953 | 242 | 0.697738 | 391 | 2,564 | 4.409207 | 0.432225 | 0.032483 | 0.020882 | 0.020882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0059 | 0.206708 | 2,564 | 85 | 243 | 30.164706 | 0.841691 | 0.207878 | 0 | 0.166667 | 0 | 0.020833 | 0.135747 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.145833 | false | 0.083333 | 0.083333 | 0.041667 | 0.354167 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
71ec7e1ab519fe39c3c2b69f2a497fd39095d1ca | 15,524 | py | Python | tests/pytests/test_tags.py | wayn111/RediSearch | 897b2de35988b84851dd8380c614a21ad8da7c0f | [
"BSD-3-Clause",
"Ruby",
"Apache-2.0",
"MIT"
] | null | null | null | tests/pytests/test_tags.py | wayn111/RediSearch | 897b2de35988b84851dd8380c614a21ad8da7c0f | [
"BSD-3-Clause",
"Ruby",
"Apache-2.0",
"MIT"
] | null | null | null | tests/pytests/test_tags.py | wayn111/RediSearch | 897b2de35988b84851dd8380c614a21ad8da7c0f | [
"BSD-3-Clause",
"Ruby",
"Apache-2.0",
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from includes import *
from common import *
def search(env, r, *args):
return r.execute_command('ft.search', *args)
def testTagIndex(env):
r = env
env.expect('ft.create', 'idx', 'ON', 'HASH','schema', 'title', 'text', 'tags', 'tag').ok()
N = 10
for n in range(N):
... | 42.184783 | 142 | 0.523448 | 2,093 | 15,524 | 3.832776 | 0.090301 | 0.078534 | 0.090501 | 0.046622 | 0.753677 | 0.708053 | 0.648716 | 0.603216 | 0.571429 | 0.51446 | 0 | 0.022653 | 0.229387 | 15,524 | 367 | 143 | 42.299728 | 0.647914 | 0.03646 | 0 | 0.43662 | 0 | 0 | 0.284643 | 0.009506 | 0 | 0 | 0 | 0 | 0.116197 | 1 | 0.049296 | false | 0 | 0.007042 | 0.003521 | 0.059859 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c0252cbabe1a0b566b1ac4670f0fdedec520c7a | 370 | py | Python | Part1/AverageAccuracy.py | efkandurakli/Graduation-Project1 | fd2cba89929da2cef49ec67214b54c310b57ce01 | [
"MIT"
] | 1 | 2019-12-18T08:16:55.000Z | 2019-12-18T08:16:55.000Z | Part1/AverageAccuracy.py | efkandurakli/Graduation-Project1 | fd2cba89929da2cef49ec67214b54c310b57ce01 | [
"MIT"
] | null | null | null | Part1/AverageAccuracy.py | efkandurakli/Graduation-Project1 | fd2cba89929da2cef49ec67214b54c310b57ce01 | [
"MIT"
] | null | null | null | import numpy as np
from operator import truediv
def AA_andEachClassAccuracy(confusion_matrix):
counter = confusion_matrix.shape[0]
list_diag = np.diag(confusion_matrix)
list_raw_sum = np.sum(confusion_matrix, axis=1)
each_acc = np.nan_to_num(truediv(list_diag, list_raw_sum))
average_acc = n... | 37 | 63 | 0.751351 | 56 | 370 | 4.642857 | 0.517857 | 0.230769 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006515 | 0.17027 | 370 | 10 | 64 | 37 | 0.840391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c0b22579bc28f35e8719b18a2963cb1c1518847 | 2,687 | py | Python | cubi_tk/snappy/kickoff.py | LaborBerlin/cubi-tk | 4aa5306c547c38eb41d5623ff6e4bace828f85b1 | [
"MIT"
] | null | null | null | cubi_tk/snappy/kickoff.py | LaborBerlin/cubi-tk | 4aa5306c547c38eb41d5623ff6e4bace828f85b1 | [
"MIT"
] | null | null | null | cubi_tk/snappy/kickoff.py | LaborBerlin/cubi-tk | 4aa5306c547c38eb41d5623ff6e4bace828f85b1 | [
"MIT"
] | null | null | null | """``cubi-tk snappy kickoff``: kickoff SNAPPY pipeline."""
import argparse
import os
import subprocess
import typing
from logzero import logger
from toposort import toposort
from . import common
from cubi_tk.exceptions import ParseOutputException
def run(
args, _parser: argparse.ArgumentParser, _subparser: ar... | 34.448718 | 97 | 0.633048 | 338 | 2,687 | 4.961538 | 0.39645 | 0.035778 | 0.040549 | 0.015504 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002427 | 0.233346 | 2,687 | 77 | 98 | 34.896104 | 0.81165 | 0.063268 | 0 | 0.05 | 0 | 0 | 0.205108 | 0 | 0 | 0 | 0 | 0.012987 | 0 | 1 | 0.033333 | false | 0 | 0.133333 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c100a9a9e5db785c7efc1726ba5b0b98ff396a7 | 2,469 | py | Python | src/printReport.py | griimx/Summer-2016 | 08bf0a68a0e12ee81318409f68448adaf75983fe | [
"MIT"
] | null | null | null | src/printReport.py | griimx/Summer-2016 | 08bf0a68a0e12ee81318409f68448adaf75983fe | [
"MIT"
] | null | null | null | src/printReport.py | griimx/Summer-2016 | 08bf0a68a0e12ee81318409f68448adaf75983fe | [
"MIT"
] | null | null | null | from __future__ import print_function
from connection import *
from jinja2 import Environment, FileSystemLoader
import webbrowser
def print_report(id):
env = Environment(loader=FileSystemLoader('.'))
template = env.get_template("src/template.html")
cursor = db.cursor(MySQLdb.cursors.DictCursor)
sql = "SELECT e.*... | 37.409091 | 86 | 0.654111 | 298 | 2,469 | 5.255034 | 0.271812 | 0.189655 | 0.141124 | 0.184547 | 0.275862 | 0.10728 | 0.10728 | 0.065134 | 0.065134 | 0 | 0 | 0.001456 | 0.165249 | 2,469 | 65 | 87 | 37.984615 | 0.75837 | 0.430539 | 0 | 0 | 0 | 0 | 0.289322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.105263 | 0 | 0.131579 | 0.131579 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c13630030f6d62b875010ab48a5f1a305094328 | 1,266 | py | Python | nadmin/plugins/sortable.py | A425/django-xadmin-1.8 | 9ab06192311b22ec654778935ce3e3c5ffd39a00 | [
"MIT"
] | 1 | 2015-10-10T08:04:26.000Z | 2015-10-10T08:04:26.000Z | nadmin/plugins/sortable.py | A425/django-xadmin-1.8 | 9ab06192311b22ec654778935ce3e3c5ffd39a00 | [
"MIT"
] | 1 | 2016-03-25T01:41:36.000Z | 2016-03-25T01:41:36.000Z | nadmin/plugins/sortable.py | A425/django-xadmin-1.8 | 9ab06192311b22ec654778935ce3e3c5ffd39a00 | [
"MIT"
] | null | null | null | #coding:utf-8
from nadmin.sites import site
from nadmin.views import BaseAdminPlugin, ListAdminView
SORTBY_VAR = '_sort_by'
class SortablePlugin(BaseAdminPlugin):
sortable_fields = ['sort']
# Media
def get_media(self, media):
if self.sortable_fields and self.request.GET.get(SORTBY_VAR):
... | 34.216216 | 107 | 0.611374 | 139 | 1,266 | 5.330935 | 0.453237 | 0.094467 | 0.037787 | 0.053981 | 0.080972 | 0.080972 | 0.080972 | 0 | 0 | 0 | 0 | 0.001093 | 0.277251 | 1,266 | 36 | 108 | 35.166667 | 0.808743 | 0.436809 | 0 | 0 | 0 | 0 | 0.053009 | 0.035817 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.153846 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9c1453b1473bf17ef5373079c50724a0067a38a2 | 3,311 | py | Python | rotkehlchen/tests/integration/test_blockchain.py | coblee/rotki | d675f5c2d0df5176337b7b10038524ee74923482 | [
"BSD-3-Clause"
] | null | null | null | rotkehlchen/tests/integration/test_blockchain.py | coblee/rotki | d675f5c2d0df5176337b7b10038524ee74923482 | [
"BSD-3-Clause"
] | 3 | 2021-01-28T21:30:46.000Z | 2022-03-25T19:17:00.000Z | rotkehlchen/tests/integration/test_blockchain.py | coblee/rotki | d675f5c2d0df5176337b7b10038524ee74923482 | [
"BSD-3-Clause"
] | null | null | null | import operator
import os
from unittest.mock import patch
import pytest
import requests
from rotkehlchen.chain.ethereum.manager import NodeName
from rotkehlchen.constants.assets import A_BTC
from rotkehlchen.tests.utils.blockchain import mock_etherscan_query
from rotkehlchen.typing import SupportedBlockchain
@pytes... | 36.788889 | 119 | 0.735125 | 406 | 3,311 | 5.82266 | 0.406404 | 0.045685 | 0.030457 | 0.038917 | 0.259729 | 0.201354 | 0.201354 | 0.18401 | 0.150592 | 0.083756 | 0 | 0.039048 | 0.187859 | 3,311 | 89 | 120 | 37.202247 | 0.840089 | 0.18363 | 0 | 0.213115 | 0 | 0 | 0.174094 | 0.112538 | 0 | 0 | 0.047583 | 0.022472 | 0.114754 | 1 | 0.04918 | false | 0 | 0.147541 | 0 | 0.196721 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c2147f6458e9854c24fb91bf25b8791fe2188ff | 528 | py | Python | src/supplier/templates/supplier/urls.py | vandana0608/Pharmacy-Managament | f99bdec11c24027a432858daa19247a21cecc092 | [
"bzip2-1.0.6"
] | null | null | null | src/supplier/templates/supplier/urls.py | vandana0608/Pharmacy-Managament | f99bdec11c24027a432858daa19247a21cecc092 | [
"bzip2-1.0.6"
] | null | null | null | src/supplier/templates/supplier/urls.py | vandana0608/Pharmacy-Managament | f99bdec11c24027a432858daa19247a21cecc092 | [
"bzip2-1.0.6"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('', views.SupplierList.as_view(), name='supplier_list'),
path('view/<int:pk>', views.SupplierView.as_view(), name='supplier_view'),
path('new', views.SupplierCreate.as_view(), name='supplier_new'),
path('view/<int:pk>', views.Suppli... | 44 | 84 | 0.69697 | 70 | 528 | 5.085714 | 0.314286 | 0.101124 | 0.168539 | 0.303371 | 0.314607 | 0.314607 | 0.314607 | 0.314607 | 0.314607 | 0.314607 | 0 | 0 | 0.104167 | 528 | 12 | 85 | 44 | 0.752643 | 0 | 0 | 0.2 | 0 | 0 | 0.257089 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c22036370e0f940a80ab34156b825acd98d5b1a | 205 | py | Python | web_scraper/extract/common.py | rarc41/web_scraper_pro | f297c785617c6b1617ced8f29ad11afec31f2968 | [
"MIT"
] | null | null | null | web_scraper/extract/common.py | rarc41/web_scraper_pro | f297c785617c6b1617ced8f29ad11afec31f2968 | [
"MIT"
] | null | null | null | web_scraper/extract/common.py | rarc41/web_scraper_pro | f297c785617c6b1617ced8f29ad11afec31f2968 | [
"MIT"
] | null | null | null | import yaml
__config=None
def config():
global __config
if not __config:
with open('config.yaml', mode='r') as f:
__config=yaml.safe_load(f)
return __config | 15.769231 | 48 | 0.585366 | 26 | 205 | 4.192308 | 0.653846 | 0.183486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.321951 | 205 | 13 | 49 | 15.769231 | 0.784173 | 0 | 0 | 0 | 0 | 0 | 0.058252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c26d711887f84da99433b770df53c3bffc460c4 | 1,067 | py | Python | Python/Vowel-Substring/solution.py | arpitran/HackerRank_solutions | a3a77c858edd3955ea38530916db9051b1aa93f9 | [
"MIT"
] | null | null | null | Python/Vowel-Substring/solution.py | arpitran/HackerRank_solutions | a3a77c858edd3955ea38530916db9051b1aa93f9 | [
"MIT"
] | null | null | null | Python/Vowel-Substring/solution.py | arpitran/HackerRank_solutions | a3a77c858edd3955ea38530916db9051b1aa93f9 | [
"MIT"
] | null | null | null | #!/bin/python3
import math
import os
import random
import re
import sys
#
# Complete the 'findSubstring' function below.
#
# The function is expected to return a STRING.
# The function accepts following parameters:
# 1. STRING s
# 2. INTEGER k
#
def isVowel(x):
if(x=="a" or x=='e' or x=='i' or x=='o' or x=='... | 20.519231 | 118 | 0.626992 | 167 | 1,067 | 3.904192 | 0.413174 | 0.096626 | 0.046012 | 0.027607 | 0.082822 | 0.082822 | 0.082822 | 0 | 0 | 0 | 0 | 0.008717 | 0.247423 | 1,067 | 51 | 119 | 20.921569 | 0.803238 | 0.181818 | 0 | 0 | 0 | 0 | 0.023175 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 1 | 0.103448 | false | 0 | 0.172414 | 0 | 0.448276 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c2c850b8212d47e83a1fb645622cfcbef2e844f | 7,385 | py | Python | python/tink/jwt/_raw_jwt.py | cuonglm/tink | df5fa42e45b4d43aac6c3506ceba2956b79a62b8 | [
"Apache-2.0"
] | null | null | null | python/tink/jwt/_raw_jwt.py | cuonglm/tink | df5fa42e45b4d43aac6c3506ceba2956b79a62b8 | [
"Apache-2.0"
] | null | null | null | python/tink/jwt/_raw_jwt.py | cuonglm/tink | df5fa42e45b4d43aac6c3506ceba2956b79a62b8 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 34.189815 | 80 | 0.677319 | 997 | 7,385 | 4.811434 | 0.198596 | 0.057328 | 0.02981 | 0.05837 | 0.211799 | 0.150302 | 0.143215 | 0.07734 | 0.047947 | 0.015843 | 0 | 0.005703 | 0.21652 | 7,385 | 215 | 81 | 34.348837 | 0.823367 | 0.133785 | 0 | 0.10596 | 0 | 0 | 0.075287 | 0 | 0 | 0 | 0 | 0.004651 | 0 | 1 | 0.192053 | false | 0 | 0.046358 | 0.112583 | 0.410596 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
9c2cdfaea02de247b5a0a427743330312fb34eb8 | 16,904 | py | Python | dialogue-engine/test/programytest/config/file/test_json.py | cotobadesign/cotoba-agent-oss | 3833d56e79dcd7529c3e8b3a3a8a782d513d9b12 | [
"MIT"
] | 104 | 2020-03-30T09:40:00.000Z | 2022-03-06T22:34:25.000Z | dialogue-engine/test/programytest/config/file/test_json.py | cotobadesign/cotoba-agent-oss | 3833d56e79dcd7529c3e8b3a3a8a782d513d9b12 | [
"MIT"
] | 25 | 2020-06-12T01:36:35.000Z | 2022-02-19T07:30:44.000Z | dialogue-engine/test/programytest/config/file/test_json.py | cotobadesign/cotoba-agent-oss | 3833d56e79dcd7529c3e8b3a3a8a782d513d9b12 | [
"MIT"
] | 10 | 2020-04-02T23:43:56.000Z | 2021-05-14T13:47:01.000Z | """
Copyright (c) 2020 COTOBA DESIGN, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distri... | 31.245841 | 129 | 0.562885 | 1,520 | 16,904 | 6.094079 | 0.290132 | 0.02375 | 0.022455 | 0.039296 | 0.336716 | 0.316852 | 0.272698 | 0.246249 | 0.246249 | 0.244305 | 0 | 0.01316 | 0.29425 | 16,904 | 540 | 130 | 31.303704 | 0.763286 | 0.062825 | 0 | 0.262525 | 0 | 0.004008 | 0.731906 | 0.142857 | 0 | 0 | 0 | 0 | 0.08016 | 1 | 0.014028 | false | 0.006012 | 0.01002 | 0 | 0.026052 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c3934843ce267b0dc897db0634f69b0dfaade62 | 280 | py | Python | Data_Structures/2d_array_ds.py | csixteen/HackerRank | 3ef6fa48599341f481b9e266c69df2d449a7b313 | [
"MIT"
] | 4 | 2018-04-19T20:32:54.000Z | 2020-04-21T12:28:00.000Z | Data_Structures/2d_array_ds.py | csixteen/HackerRank | 3ef6fa48599341f481b9e266c69df2d449a7b313 | [
"MIT"
] | null | null | null | Data_Structures/2d_array_ds.py | csixteen/HackerRank | 3ef6fa48599341f481b9e266c69df2d449a7b313 | [
"MIT"
] | null | null | null | matrix = [list(map(int, input().split())) for _ in range(6)]
max_sum = None
for i in range(4):
for j in range(4):
s = sum(matrix[i][j:j+3]) + matrix[i+1][j+1] + sum(matrix[i+2][j:j+3])
if max_sum is None or s > max_sum:
max_sum = s
print(max_sum)
| 28 | 78 | 0.557143 | 57 | 280 | 2.631579 | 0.421053 | 0.2 | 0.106667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038278 | 0.253571 | 280 | 9 | 79 | 31.111111 | 0.679426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c464f3f464935bc0cc2e17b41fede6128938835 | 1,200 | py | Python | async_sched/client/__init__.py | justengel/async_sched | f980722d51d15025522b2265426b0188ff368418 | [
"MIT"
] | 1 | 2020-10-19T13:36:20.000Z | 2020-10-19T13:36:20.000Z | async_sched/client/__init__.py | justengel/async_sched | f980722d51d15025522b2265426b0188ff368418 | [
"MIT"
] | null | null | null | async_sched/client/__init__.py | justengel/async_sched | f980722d51d15025522b2265426b0188ff368418 | [
"MIT"
] | null | null | null | from async_sched.client import quit_server as module_quit
from async_sched.client import request_schedules as module_request
from async_sched.client import run_command as module_run
from async_sched.client import schedule_command as module_schedule
from async_sched.client import stop_schedule as module_stop
from async_... | 52.173913 | 113 | 0.785 | 164 | 1,200 | 5.341463 | 0.207317 | 0.079909 | 0.127854 | 0.136986 | 0.60274 | 0.424658 | 0.424658 | 0.424658 | 0.424658 | 0.424658 | 0 | 0.008637 | 0.131667 | 1,200 | 22 | 114 | 54.545455 | 0.832054 | 0.119167 | 0 | 0 | 0 | 0 | 0.263757 | 0.042695 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.466667 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9c48342a450b3888ddd355595c9462c4c225a106 | 2,880 | py | Python | account_processing.py | amitjoshi9627/Playong | d54a8db05ae5035e122b8bc8d84c849f25483005 | [
"MIT"
] | 4 | 2019-04-22T15:16:45.000Z | 2020-01-17T12:57:09.000Z | account_processing.py | amitjoshi9627/Playong | d54a8db05ae5035e122b8bc8d84c849f25483005 | [
"MIT"
] | null | null | null | account_processing.py | amitjoshi9627/Playong | d54a8db05ae5035e122b8bc8d84c849f25483005 | [
"MIT"
] | null | null | null | from selenium.webdriver import Firefox
from selenium.webdriver.firefox.options import Options
import getpass
import time
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
from utils import *
def login_user(browser, email='', password=''):
print('Redir... | 32.359551 | 110 | 0.682986 | 370 | 2,880 | 5.140541 | 0.345946 | 0.05205 | 0.085174 | 0.094637 | 0.247108 | 0.233964 | 0.219769 | 0.138801 | 0.138801 | 0.138801 | 0 | 0.006061 | 0.197917 | 2,880 | 88 | 111 | 32.727273 | 0.817316 | 0.056597 | 0 | 0.092308 | 0 | 0.015385 | 0.254982 | 0.047232 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107692 | false | 0.153846 | 0.107692 | 0.015385 | 0.276923 | 0.107692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9c49c6272ae1b539badcabd74a81163ceda4090b | 1,104 | py | Python | Mundo 3/teste.py | RafaelSdm/Curso-de-Python | ae933ba80ee00ad5160bd5d05cf4b21007943fd4 | [
"MIT"
] | 1 | 2021-03-10T21:53:38.000Z | 2021-03-10T21:53:38.000Z | Mundo 3/teste.py | RafaelSdm/Curso-de-Python | ae933ba80ee00ad5160bd5d05cf4b21007943fd4 | [
"MIT"
] | null | null | null | Mundo 3/teste.py | RafaelSdm/Curso-de-Python | ae933ba80ee00ad5160bd5d05cf4b21007943fd4 | [
"MIT"
] | null | null | null | pessoas = {'nomes': "Rafael","sexo":"macho alfa","idade":19}
print(f"o {pessoas['nomes']} que se considera um {pessoas['sexo']} possui {pessoas['idade']}")
print(pessoas.keys())
print(pessoas.values())
print(pessoas.items())
for c in pessoas.keys():
print(c)
for c in pessoas.values():
print(c)
for c, j in pe... | 23 | 125 | 0.638587 | 173 | 1,104 | 4.075145 | 0.393064 | 0.085106 | 0.039716 | 0.017021 | 0.008511 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012917 | 0.158514 | 1,104 | 47 | 126 | 23.489362 | 0.745963 | 0 | 0 | 0.121212 | 0 | 0.060606 | 0.416667 | 0.038043 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.424242 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
9c4cf09ffcfa4dd9bf0d914e9750a3f14e039df3 | 605 | py | Python | examples/basic/findQSpark.py | myriadrf/pyLMS7002M | b866deea1f05dba44c9ed1a1a4666352b811b66b | [
"Apache-2.0"
] | 46 | 2016-11-29T05:10:36.000Z | 2021-10-31T19:27:46.000Z | examples/basic/findQSpark.py | myriadrf/pyLMS7002M | b866deea1f05dba44c9ed1a1a4666352b811b66b | [
"Apache-2.0"
] | 2 | 2017-04-15T21:36:01.000Z | 2017-06-08T09:44:26.000Z | examples/basic/findQSpark.py | myriadrf/pyLMS7002M | b866deea1f05dba44c9ed1a1a4666352b811b66b | [
"Apache-2.0"
] | 16 | 2016-11-28T20:47:55.000Z | 2021-04-07T01:48:20.000Z | from pyLMS7002M import *
print("Searching for QSpark...")
try:
QSpark = QSpark()
except:
print("QSpark not found")
exit(1)
print("\QSpark info:")
QSpark.printInfo() # print the QSpark board info
# QSpark.LMS7002_Reset() # reset the LMS7002M
lms700... | 31.842105 | 80 | 0.528926 | 64 | 605 | 4.984375 | 0.46875 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083756 | 0.34876 | 605 | 18 | 81 | 33.611111 | 0.725888 | 0.231405 | 0 | 0 | 0 | 0 | 0.272926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.533333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
9c5b28789209abf7074e8e365fb1d2e93079992e | 2,109 | py | Python | tests/test_bindiff.py | Kyle-Kyle/angr | 345b2131a7a67e3a6ffc7d9fd475146a3e12f837 | [
"BSD-2-Clause"
] | 6,132 | 2015-08-06T23:24:47.000Z | 2022-03-31T21:49:34.000Z | tests/test_bindiff.py | Kyle-Kyle/angr | 345b2131a7a67e3a6ffc7d9fd475146a3e12f837 | [
"BSD-2-Clause"
] | 2,272 | 2015-08-10T08:40:07.000Z | 2022-03-31T23:46:44.000Z | tests/test_bindiff.py | Kyle-Kyle/angr | 345b2131a7a67e3a6ffc7d9fd475146a3e12f837 | [
"BSD-2-Clause"
] | 1,155 | 2015-08-06T23:37:39.000Z | 2022-03-31T05:54:11.000Z | import nose
import angr
import logging
l = logging.getLogger("angr.tests.test_bindiff")
import os
test_location = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..', 'binaries', 'tests')
# todo make a better test
def test_bindiff_x86_64():
binary_path_1 = os.path.join(test_location, 'x86_64', '... | 39.055556 | 106 | 0.719772 | 282 | 2,109 | 5.099291 | 0.315603 | 0.056328 | 0.09388 | 0.05911 | 0.305981 | 0.243394 | 0.109875 | 0.109875 | 0 | 0 | 0 | 0.058758 | 0.152679 | 2,109 | 53 | 107 | 39.792453 | 0.745943 | 0.07302 | 0 | 0 | 0 | 0 | 0.074435 | 0.022587 | 0 | 0 | 0.049281 | 0.018868 | 0.230769 | 1 | 0.051282 | false | 0 | 0.128205 | 0 | 0.179487 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c5f1cf8cb3617f22a594d7ff47f26bbe868fb45 | 326 | py | Python | 01-logica-de-programacao-e-algoritmos/Aula 06/01 Tuplas/1.2 Desempacotamento de parametros em funcoes/ex01.py | rafaelbarretomg/Uninter | 1f84b0103263177122663e991db3a8aeb106a959 | [
"MIT"
] | null | null | null | 01-logica-de-programacao-e-algoritmos/Aula 06/01 Tuplas/1.2 Desempacotamento de parametros em funcoes/ex01.py | rafaelbarretomg/Uninter | 1f84b0103263177122663e991db3a8aeb106a959 | [
"MIT"
] | null | null | null | 01-logica-de-programacao-e-algoritmos/Aula 06/01 Tuplas/1.2 Desempacotamento de parametros em funcoes/ex01.py | rafaelbarretomg/Uninter | 1f84b0103263177122663e991db3a8aeb106a959 | [
"MIT"
] | null | null | null | # Desempacotamento de parametros em funcoes
# somando valores de uma tupla
def soma(*num):
soma = 0
print('Tupla: {}' .format(num))
for i in num:
soma += i
return soma
# Programa principal
print('Resultado: {}\n' .format(soma(1, 2)))
print('Resultado: {}\n' .format(soma(1, 2, 3, 4, 5, 6, 7, 8,... | 23.285714 | 65 | 0.604294 | 50 | 326 | 3.94 | 0.64 | 0.071066 | 0.152284 | 0.213198 | 0.274112 | 0.274112 | 0.274112 | 0 | 0 | 0 | 0 | 0.047431 | 0.223926 | 326 | 13 | 66 | 25.076923 | 0.731225 | 0.273006 | 0 | 0 | 0 | 0 | 0.167382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c6a899bfa0fce8fa48384ca11c89371d3bdbbc4 | 10,449 | py | Python | tests/test_decorators.py | stephenfin/django-rest-framework | 9d001cd84c1239d708b1528587c183ef30e38c31 | [
"BSD-3-Clause"
] | 1 | 2019-01-11T13:56:41.000Z | 2019-01-11T13:56:41.000Z | tests/test_decorators.py | stephenfin/django-rest-framework | 9d001cd84c1239d708b1528587c183ef30e38c31 | [
"BSD-3-Clause"
] | null | null | null | tests/test_decorators.py | stephenfin/django-rest-framework | 9d001cd84c1239d708b1528587c183ef30e38c31 | [
"BSD-3-Clause"
] | 1 | 2019-06-29T12:46:16.000Z | 2019-06-29T12:46:16.000Z | from __future__ import unicode_literals
import pytest
from django.test import TestCase
from rest_framework import status
from rest_framework.authentication import BasicAuthentication
from rest_framework.decorators import (
action, api_view, authentication_classes, detail_route, list_route,
parser_classes, per... | 31.954128 | 92 | 0.624175 | 1,112 | 10,449 | 5.68705 | 0.181655 | 0.036528 | 0.030993 | 0.039532 | 0.509013 | 0.438014 | 0.397849 | 0.338393 | 0.290006 | 0.242568 | 0 | 0.005996 | 0.281749 | 10,449 | 326 | 93 | 32.052147 | 0.836642 | 0.066226 | 0 | 0.491304 | 0 | 0 | 0.088562 | 0.004667 | 0 | 0 | 0 | 0 | 0.165217 | 1 | 0.217391 | false | 0.004348 | 0.06087 | 0.03913 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c6c043e7e279ee40586854016feb8a49ecc6e3c | 661 | py | Python | tamilmorse/morse_encode.py | CRE2525/open-tamil | ffc02509f7b8a6a17644c85799a475a8ba623954 | [
"MIT"
] | 1 | 2021-08-03T19:35:18.000Z | 2021-08-03T19:35:18.000Z | tamilmorse/morse_encode.py | CRE2525/open-tamil | ffc02509f7b8a6a17644c85799a475a8ba623954 | [
"MIT"
] | null | null | null | tamilmorse/morse_encode.py | CRE2525/open-tamil | ffc02509f7b8a6a17644c85799a475a8ba623954 | [
"MIT"
] | null | null | null | ## -*- coding: utf-8 -*-
#(C) 2018 Muthiah Annamalai
# This file is part of Open-Tamil project
# You may use or distribute this file under terms of MIT license
import codecs
import json
import tamil
import sys
import os
#e.g. python morse_encode.py கலைஞர்
CURRDIR = os.path.dirname(os.path.realpath(__file__))
def enco... | 30.045455 | 95 | 0.688351 | 113 | 661 | 3.911504 | 0.637168 | 0.027149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.155825 | 661 | 21 | 96 | 31.47619 | 0.772401 | 0.278366 | 0 | 0 | 0 | 0 | 0.102128 | 0.048936 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.384615 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9c6edb66b25f5b7d6f691984d70d7a69bf328bdb | 469 | py | Python | pyRasp.py | ToninoTarsi/pyRasp | a46bb1dc38c7547b60e24189ecf34310da770042 | [
"MIT"
] | null | null | null | pyRasp.py | ToninoTarsi/pyRasp | a46bb1dc38c7547b60e24189ecf34310da770042 | [
"MIT"
] | null | null | null | pyRasp.py | ToninoTarsi/pyRasp | a46bb1dc38c7547b60e24189ecf34310da770042 | [
"MIT"
] | null | null | null | # pyRasp
# Copyright (c) Tonino Tarsi 2020. Licensed under MIT.
# requirement :
# Python 3
# pip install pyyaml
# pip install request
# pip install f90nml
from downloadGFSA import downloadGFSA
from prepare_wps import prepare_wps
from ungrib import ungrib
from metgrid import metgrid
from prepare_wrf import prepare_w... | 16.75 | 54 | 0.784648 | 66 | 469 | 5.484848 | 0.424242 | 0.082873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017722 | 0.157783 | 469 | 27 | 55 | 17.37037 | 0.898734 | 0.302772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9c8366ee191973d219cc50c6458365ebe9053724 | 376 | py | Python | Backjoon/1929.py | hanjungwoo1/CodingTest | 0112488d04dd53cea1c869439341fb602e699f2a | [
"MIT"
] | 3 | 2022-03-29T04:56:50.000Z | 2022-03-30T08:06:42.000Z | Backjoon/1929.py | hanjungwoo1/CodingTest | 0112488d04dd53cea1c869439341fb602e699f2a | [
"MIT"
] | null | null | null | Backjoon/1929.py | hanjungwoo1/CodingTest | 0112488d04dd53cea1c869439341fb602e699f2a | [
"MIT"
] | null | null | null | """
입력 예시
3 16
출력 예시
3
5
7
11
13
"""
import math
left, right = map(int, input().split())
array = [True for i in range(right+1)]
array[1] = 0
for i in range(2, int(math.sqrt(right)) + 1):
if array[i] == True:
j = 2
while i * j <= right:
array[i * j] = False
j += 1
for i in... | 13.925926 | 45 | 0.505319 | 68 | 376 | 2.794118 | 0.470588 | 0.063158 | 0.094737 | 0.173684 | 0.147368 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071713 | 0.332447 | 376 | 27 | 46 | 13.925926 | 0.685259 | 0.077128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92bdca03049e78f08b91682f83e48976672f9a1b | 456 | py | Python | utils/get_season_things_price.py | vogelfenx/storagebot | 64ab07b068bf645d7cdf5bb1cd5db91c0e2a9228 | [
"MIT"
] | null | null | null | utils/get_season_things_price.py | vogelfenx/storagebot | 64ab07b068bf645d7cdf5bb1cd5db91c0e2a9228 | [
"MIT"
] | 2 | 2021-11-24T18:20:00.000Z | 2021-11-24T18:31:55.000Z | utils/get_season_things_price.py | vogelfenx/storagebot | 64ab07b068bf645d7cdf5bb1cd5db91c0e2a9228 | [
"MIT"
] | 4 | 2021-11-24T16:40:28.000Z | 2021-11-28T10:40:57.000Z | def get_season_things_price(thing, amount, price):
if thing == 'wheel':
wheel_price = price[thing]['month'] * amount
return f'Стоимость составит {wheel_price}/месяц'
else:
other_thing_price_week = price[thing]['week'] * amount
other_thing_price_month = price[thing]['month'] * a... | 41.454545 | 75 | 0.662281 | 59 | 456 | 4.830508 | 0.355932 | 0.140351 | 0.210526 | 0.147368 | 0.315789 | 0.315789 | 0.315789 | 0.315789 | 0 | 0 | 0 | 0 | 0.219298 | 456 | 11 | 76 | 41.454545 | 0.800562 | 0 | 0 | 0 | 0 | 0 | 0.326039 | 0.107221 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92c32d549db39666405ca82ccd8b1e761fbef653 | 455 | py | Python | dashboard/urls.py | EdisonBr/MockDados | c625cba7b93a8f31609549241c5aa71932e26b2d | [
"MIT"
] | null | null | null | dashboard/urls.py | EdisonBr/MockDados | c625cba7b93a8f31609549241c5aa71932e26b2d | [
"MIT"
] | 4 | 2021-03-30T13:49:39.000Z | 2021-06-10T19:40:02.000Z | dashboard/urls.py | smart320/MockDados | c625cba7b93a8f31609549241c5aa71932e26b2d | [
"MIT"
] | 1 | 2020-07-27T02:08:29.000Z | 2020-07-27T02:08:29.000Z |
from django.urls import path, re_path
from django.views.generic.base import TemplateView
from .views import dashboard_cost, dashboard_energy, MotorDataListView
app_name = 'dashboard'
urlpatterns = [
path('', MotorDataListView.as_view(), name='dashboard_custom'),
#path('', dashboard_custom, name='dashboar... | 28.4375 | 71 | 0.745055 | 53 | 455 | 6.169811 | 0.377358 | 0.198777 | 0.116208 | 0.140673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127473 | 455 | 15 | 72 | 30.333333 | 0.823678 | 0.114286 | 0 | 0 | 0 | 0 | 0.1625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
92c83bb936e6892d8eb39bcbfcb76fe95e1f5577 | 1,281 | py | Python | docker/autoconfig.py | misc0110/bepasty-server | 662179671220d680fed57aa90894ffebf57dd4c7 | [
"BSD-2-Clause"
] | null | null | null | docker/autoconfig.py | misc0110/bepasty-server | 662179671220d680fed57aa90894ffebf57dd4c7 | [
"BSD-2-Clause"
] | null | null | null | docker/autoconfig.py | misc0110/bepasty-server | 662179671220d680fed57aa90894ffebf57dd4c7 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python
import os
import sys
SITENAME = os.environ.get("BEPASTY_SITENAME", None)
if SITENAME is None:
print("\n\nEnvironment variable BEPASTY_SITENAME must be set.")
sys.exit(1)
SECRET_KEY = os.environ.get("BEPASTY_SECRET_KEY", None)
if SECRET_KEY is None:
print("\n\nEnvironment variable BEPAST... | 30.5 | 87 | 0.753318 | 193 | 1,281 | 4.715026 | 0.295337 | 0.079121 | 0.105495 | 0.167033 | 0.358242 | 0.32967 | 0.235165 | 0.107692 | 0.107692 | 0.107692 | 0 | 0.018767 | 0.126464 | 1,281 | 41 | 88 | 31.243902 | 0.794459 | 0.01249 | 0 | 0.258065 | 0 | 0 | 0.344937 | 0.175633 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.064516 | 0.129032 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92cf711f3ee4d4acd21a60efb873e479a2b9db00 | 447 | py | Python | sparkdq/outliers/params/KSigmaParams.py | PasaLab/SparkDQ | 16d50210747ef7de03cf36d689ce26ff7445f63a | [
"Apache-2.0"
] | 1 | 2021-02-08T07:49:54.000Z | 2021-02-08T07:49:54.000Z | sparkdq/outliers/params/KSigmaParams.py | PasaLab/SparkDQ | 16d50210747ef7de03cf36d689ce26ff7445f63a | [
"Apache-2.0"
] | null | null | null | sparkdq/outliers/params/KSigmaParams.py | PasaLab/SparkDQ | 16d50210747ef7de03cf36d689ce26ff7445f63a | [
"Apache-2.0"
] | null | null | null | import json
from sparkdq.outliers.params.OutlierSolverParams import OutlierSolverParams
from sparkdq.outliers.OutlierSolver import OutlierSolver
class KSigmaParams(OutlierSolverParams):
def __init__(self, deviation=1.5):
self.deviation = deviation
def model(self):
return OutlierSolver.kSigm... | 23.526316 | 75 | 0.736018 | 48 | 447 | 6.708333 | 0.479167 | 0.068323 | 0.118012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00551 | 0.187919 | 447 | 18 | 76 | 24.833333 | 0.881543 | 0 | 0 | 0 | 0 | 0 | 0.020134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.083333 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92d2be755f1c0894c43d329732b414de4bf31ab2 | 195 | py | Python | atcoder/abc132A_fifty_fifty.py | uninhm/kyopro | bf6ed9cbf6a5e46cde0291f7aa9d91a8ddf1f5a3 | [
"BSD-3-Clause"
] | 31 | 2020-05-13T01:07:55.000Z | 2021-07-13T07:53:26.000Z | atcoder/abc132A_fifty_fifty.py | uninhm/kyopro | bf6ed9cbf6a5e46cde0291f7aa9d91a8ddf1f5a3 | [
"BSD-3-Clause"
] | 10 | 2020-05-20T07:22:09.000Z | 2021-07-19T03:52:13.000Z | atcoder/abc132A_fifty_fifty.py | uninhm/kyopro | bf6ed9cbf6a5e46cde0291f7aa9d91a8ddf1f5a3 | [
"BSD-3-Clause"
] | 14 | 2020-05-11T05:58:36.000Z | 2021-12-07T03:20:43.000Z | # Vicfred
# https://atcoder.jp/contests/abc132/tasks/abc132_a
# implementation
S = list(input())
if len(set(S)) == 2:
if S.count(S[0]) == 2:
print("Yes")
quit()
print("No")
| 16.25 | 51 | 0.574359 | 29 | 195 | 3.827586 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.215385 | 195 | 11 | 52 | 17.727273 | 0.666667 | 0.369231 | 0 | 0 | 0 | 0 | 0.042373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92d5a318d2e721b05edd8c4dc433e4875c24b448 | 6,318 | py | Python | visual_perception/Detection/yolov4/__init__.py | SSusantAchary/Visual-Perception | b81ffe69ab85e9afb7ee6eece43ac83c8f292285 | [
"MIT"
] | null | null | null | visual_perception/Detection/yolov4/__init__.py | SSusantAchary/Visual-Perception | b81ffe69ab85e9afb7ee6eece43ac83c8f292285 | [
"MIT"
] | null | null | null | visual_perception/Detection/yolov4/__init__.py | SSusantAchary/Visual-Perception | b81ffe69ab85e9afb7ee6eece43ac83c8f292285 | [
"MIT"
] | null | null | null | """
MIT License
Copyright (c) 2020 Susant Achary <sache.meet@yahoo.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, ... | 43.875 | 141 | 0.608895 | 843 | 6,318 | 4.447212 | 0.40688 | 0.03841 | 0.032009 | 0.020272 | 0.546279 | 0.546279 | 0.546279 | 0.546279 | 0.546279 | 0.546279 | 0 | 0.040675 | 0.268439 | 6,318 | 144 | 142 | 43.875 | 0.770446 | 0.186451 | 0 | 0.787879 | 0 | 0 | 0.133502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.030303 | 0 | 0.131313 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
92e1c91fec4c34f39e9e2622024fad4489b61749 | 5,279 | py | Python | scripts/C189/C189Checkin.py | xiaopowanyi/py_scripts | 29f240800eefd6e0f91fd098c35ac3c451172ff8 | [
"MIT"
] | 2 | 2020-11-14T05:42:49.000Z | 2020-11-14T05:43:13.000Z | scripts/C189/C189Checkin.py | J220541674/py_scripts | 2b72e23041392a2e5f0a7305d7e9802054978384 | [
"MIT"
] | null | null | null | scripts/C189/C189Checkin.py | J220541674/py_scripts | 2b72e23041392a2e5f0a7305d7e9802054978384 | [
"MIT"
] | null | null | null | import requests, time, re, rsa, json, base64
from urllib import parse
s = requests.Session()
username = ""
password = ""
if(username == "" or password == ""):
username = input("账号:")
password = input("密码:")
def main():
login(username, password)
rand = str(round(time.time()*1000))
surl = f'https:... | 37.707143 | 305 | 0.586664 | 683 | 5,279 | 4.481698 | 0.311859 | 0.017968 | 0.026135 | 0.021562 | 0.352499 | 0.32179 | 0.282914 | 0.273767 | 0.273767 | 0.273767 | 0 | 0.07761 | 0.23603 | 5,279 | 139 | 306 | 37.978417 | 0.681379 | 0 | 0 | 0.24 | 0 | 0.072 | 0.385111 | 0.043758 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048 | false | 0.056 | 0.016 | 0.016 | 0.104 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
92e5ae34177c1ed1dca21481a52e063cdd40f997 | 5,794 | py | Python | distancematrix/tests/consumer/test_distance_matrix.py | IDLabResearch/seriesdistancematrix | c0e666d036f24184511e766cee9fdfa55f41df97 | [
"MIT"
] | 12 | 2019-11-22T14:34:51.000Z | 2021-05-04T19:23:55.000Z | distancematrix/tests/consumer/test_distance_matrix.py | predict-idlab/seriesdistancematrix | c0e666d036f24184511e766cee9fdfa55f41df97 | [
"MIT"
] | 1 | 2020-04-28T07:59:03.000Z | 2020-04-28T07:59:03.000Z | distancematrix/tests/consumer/test_distance_matrix.py | IDLabResearch/seriesdistancematrix | c0e666d036f24184511e766cee9fdfa55f41df97 | [
"MIT"
] | 3 | 2020-03-02T12:39:00.000Z | 2021-03-22T13:36:25.000Z | import numpy as np
from unittest import TestCase
import numpy.testing as npt
from distancematrix.util import diag_indices_of
from distancematrix.consumer.distance_matrix import DistanceMatrix
class TestContextualMatrixProfile(TestCase):
def setUp(self):
self.dist_matrix = np.array([
[8.67, 1... | 42.602941 | 104 | 0.608733 | 1,002 | 5,794 | 3.367265 | 0.136727 | 0.104327 | 0.182573 | 0.057795 | 0.705691 | 0.64019 | 0.606995 | 0.593657 | 0.524896 | 0.487552 | 0 | 0.132737 | 0.227649 | 5,794 | 135 | 105 | 42.918519 | 0.621229 | 0 | 0 | 0.490196 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127451 | 1 | 0.078431 | false | 0 | 0.04902 | 0 | 0.137255 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92ec1a79aa56994e71f763b1fea1ca3f88478806 | 1,278 | py | Python | pix2pix/Discriminator.py | yubin1219/GAN | 8345095f9816e548c968492efbe92b427b0e06a3 | [
"MIT"
] | null | null | null | pix2pix/Discriminator.py | yubin1219/GAN | 8345095f9816e548c968492efbe92b427b0e06a3 | [
"MIT"
] | null | null | null | pix2pix/Discriminator.py | yubin1219/GAN | 8345095f9816e548c968492efbe92b427b0e06a3 | [
"MIT"
] | 1 | 2021-09-17T01:28:50.000Z | 2021-09-17T01:28:50.000Z | import torch
import torch.nn as nn
class Discriminator(nn.Module):
def __init__(self, input_nc, ndf=64, norm_layer=nn.BatchNorm2d, use_sigmoid=False) :
super(Discriminator, self).__init__()
self.conv1 = nn.Sequential(
nn.Conv2d(input_nc, ndf, kernel_size=4, stride=2, padding=1),
nn.LeakyReLU(0.2,... | 29.045455 | 86 | 0.58216 | 191 | 1,278 | 3.780105 | 0.230366 | 0.099723 | 0.116343 | 0.166205 | 0.569252 | 0.450139 | 0.365651 | 0.365651 | 0.3241 | 0.3241 | 0 | 0.062433 | 0.273083 | 1,278 | 43 | 87 | 29.72093 | 0.714747 | 0 | 0 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92f1aa0fa9769c9eeef09b7c084da22948285538 | 267 | py | Python | src/rpi/fwd.py | au-chrismor/selfdrive | 31325dd7a173bbb16a13e3de4c9598aab0a50632 | [
"BSD-3-Clause"
] | null | null | null | src/rpi/fwd.py | au-chrismor/selfdrive | 31325dd7a173bbb16a13e3de4c9598aab0a50632 | [
"BSD-3-Clause"
] | 6 | 2018-03-15T05:23:55.000Z | 2018-10-26T10:28:47.000Z | src/rpi/fwd.py | au-chrismor/selfdrive | 31325dd7a173bbb16a13e3de4c9598aab0a50632 | [
"BSD-3-Clause"
] | null | null | null | """Set-up and execute the main loop"""
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
#Right motor input A
GPIO.setup(18,GPIO.OUT)
#Right motor input B
GPIO.setup(23,GPIO.OUT)
GPIO.output(18,GPIO.HIGH)
GPIO.output(23,GPIO.LOW)
| 16.6875 | 38 | 0.749064 | 49 | 267 | 4.081633 | 0.571429 | 0.1 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033755 | 0.11236 | 267 | 15 | 39 | 17.8 | 0.810127 | 0.265918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92f3155f2bddf2f3a6336a7c75d33f3d299e7e91 | 931 | py | Python | util/get_from_db.py | Abel-Huang/simple-image-classifier | 89d2822c2b06cdec728f734d43d9638f4b601348 | [
"MIT"
] | 4 | 2017-05-17T08:01:38.000Z | 2018-07-22T11:13:55.000Z | util/get_from_db.py | Abel-Huang/ImageClassifier | 89d2822c2b06cdec728f734d43d9638f4b601348 | [
"MIT"
] | null | null | null | util/get_from_db.py | Abel-Huang/ImageClassifier | 89d2822c2b06cdec728f734d43d9638f4b601348 | [
"MIT"
] | null | null | null | import pymysql
# 连接配置信息
config = {
'host': '127.0.0.1',
'port': 3306,
'user': 'root',
'password': '',
'db': 'classdata',
'charset': 'utf8',
'cursorclass': pymysql.cursors.DictCursor,
}
def get_summary_db(unitag):
# 创建连接
conn = pymysql.connect(**config)
cur = conn.cursor()
... | 20.23913 | 54 | 0.541353 | 100 | 931 | 5 | 0.44 | 0.024 | 0.048 | 0.064 | 0.692 | 0.692 | 0.692 | 0.692 | 0.692 | 0.692 | 0 | 0.017433 | 0.322234 | 931 | 45 | 55 | 20.688889 | 0.77496 | 0.077336 | 0 | 0.5625 | 0 | 0 | 0.166078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.03125 | 0.03125 | 0 | 0.15625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92f638d897dda2bf328a3077b43f492f38f39bb7 | 1,412 | py | Python | jduck/robot.py | luutp/jduck | 3c60a79c926bb9452777cddbebe28982273068a6 | [
"Apache-2.0"
] | null | null | null | jduck/robot.py | luutp/jduck | 3c60a79c926bb9452777cddbebe28982273068a6 | [
"Apache-2.0"
] | null | null | null | jduck/robot.py | luutp/jduck | 3c60a79c926bb9452777cddbebe28982273068a6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
jduck.py
Description:
Author: luutp
Contact: luubot2207@gmail.com
Created on: 2021/02/27
"""
# Utilities
# %%
# ================================IMPORT PACKAGES====================================
# Utilities
from traitlets.config.configurable import SingletonConfigur... | 25.214286 | 85 | 0.61119 | 167 | 1,412 | 4.922156 | 0.353293 | 0.087591 | 0.126521 | 0.103406 | 0.40146 | 0.296837 | 0.245742 | 0.245742 | 0.245742 | 0.245742 | 0 | 0.028547 | 0.181303 | 1,412 | 55 | 86 | 25.672727 | 0.682526 | 0.23796 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269231 | false | 0 | 0.076923 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92f8d1944416ddff1cb95f31ed4c8d93f364c956 | 5,193 | py | Python | src/nebulo/gql/alias.py | olirice/nebulo | de9b043fe66d0cb872c5c0f2aca3c5c6f20918a7 | [
"MIT"
] | 76 | 2020-04-03T01:21:47.000Z | 2021-12-06T02:54:53.000Z | src/nebulo/gql/alias.py | olirice/nebulo | de9b043fe66d0cb872c5c0f2aca3c5c6f20918a7 | [
"MIT"
] | 7 | 2020-04-06T04:44:10.000Z | 2021-05-17T12:38:15.000Z | src/nebulo/gql/alias.py | olirice/nebulo | de9b043fe66d0cb872c5c0f2aca3c5c6f20918a7 | [
"MIT"
] | 2 | 2020-10-23T10:25:16.000Z | 2020-10-28T14:16:57.000Z | # pylint: disable=missing-class-docstring,invalid-name
import typing
from graphql.language import (
InputObjectTypeDefinitionNode,
InputObjectTypeExtensionNode,
ObjectTypeDefinitionNode,
ObjectTypeExtensionNode,
)
from graphql.type import (
GraphQLArgument,
GraphQLBoolean,
GraphQLEnumType,
... | 25.965 | 101 | 0.706913 | 457 | 5,193 | 7.868709 | 0.26477 | 0.062291 | 0.042547 | 0.017519 | 0.385984 | 0.371246 | 0.362347 | 0.342325 | 0.313404 | 0.313404 | 0 | 0 | 0.220104 | 5,193 | 199 | 102 | 26.095477 | 0.887901 | 0.044676 | 0 | 0.43871 | 0 | 0 | 0.004036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019355 | false | 0.083871 | 0.051613 | 0 | 0.212903 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
92fca9c0141bc42e92af9526839fedc292014b9b | 292 | py | Python | suda/1121/12.py | tusikalanse/acm-icpc | 20150f42752b85e286d812e716bb32ae1fa3db70 | [
"MIT"
] | 2 | 2021-06-09T12:27:07.000Z | 2021-06-11T12:02:03.000Z | suda/1121/12.py | tusikalanse/acm-icpc | 20150f42752b85e286d812e716bb32ae1fa3db70 | [
"MIT"
] | 1 | 2021-09-08T12:00:05.000Z | 2021-09-08T14:52:30.000Z | suda/1121/12.py | tusikalanse/acm-icpc | 20150f42752b85e286d812e716bb32ae1fa3db70 | [
"MIT"
] | null | null | null | for _ in range(int(input())):
x, y = list(map(int, input().split()))
flag = 1
for i in range(x, y + 1):
n = i * i + i + 41
for j in range(2, n):
if j * j > n:
break
if n % j == 0:
flag = 0
break
if flag == 0:
break
if flag:
print("OK")
else:
print("Sorry") | 17.176471 | 39 | 0.489726 | 55 | 292 | 2.581818 | 0.436364 | 0.147887 | 0.140845 | 0.169014 | 0.197183 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040609 | 0.325342 | 292 | 17 | 40 | 17.176471 | 0.680203 | 0 | 0 | 0.176471 | 0 | 0 | 0.023891 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13027944554eb9d8705c77a8073c891a250b3842 | 1,853 | py | Python | ally/instrument.py | platformmaster9/PyAlly | 55400e0835ae3ac5b3cf58e0e8214c6244aeb149 | [
"MIT"
] | null | null | null | ally/instrument.py | platformmaster9/PyAlly | 55400e0835ae3ac5b3cf58e0e8214c6244aeb149 | [
"MIT"
] | null | null | null | ally/instrument.py | platformmaster9/PyAlly | 55400e0835ae3ac5b3cf58e0e8214c6244aeb149 | [
"MIT"
] | null | null | null | from . import utils
#################################################
""" INSTRUMENT """
#################################################
def Instrument(symbol):
symbol = str(symbol).upper()
return {
'__symbol' : symbol,
'Sym' : symbol,
'SecTyp' : 'CS',
... | 29.412698 | 70 | 0.399352 | 148 | 1,853 | 4.736486 | 0.283784 | 0.119829 | 0.154066 | 0.199715 | 0.562054 | 0.513552 | 0.513552 | 0.513552 | 0.513552 | 0.513552 | 0 | 0.010228 | 0.314085 | 1,853 | 63 | 71 | 29.412698 | 0.541306 | 0.028602 | 0 | 0.36 | 0 | 0 | 0.141781 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.02 | 0.04 | 0.22 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1302b2f57e10ec891cc57b121da1cf9b5593731f | 432 | py | Python | airbyte-integrations/connectors/source-yahoo-finance-price/integration_tests/acceptance.py | onaio/airbyte | 38302e82a25f1b66742c3febfbff0668556920f2 | [
"MIT"
] | 22 | 2020-08-27T00:47:20.000Z | 2020-09-17T15:39:39.000Z | airbyte-integrations/connectors/source-yahoo-finance-price/integration_tests/acceptance.py | onaio/airbyte | 38302e82a25f1b66742c3febfbff0668556920f2 | [
"MIT"
] | 116 | 2020-08-27T01:11:27.000Z | 2020-09-19T02:47:52.000Z | airbyte-integrations/connectors/source-yahoo-finance-price/integration_tests/acceptance.py | onaio/airbyte | 38302e82a25f1b66742c3febfbff0668556920f2 | [
"MIT"
] | 1 | 2020-09-15T06:10:01.000Z | 2020-09-15T06:10:01.000Z | #
# Copyright (c) 2022 Airbyte, Inc., all rights reserved.
#
import pytest
pytest_plugins = ("source_acceptance_test.plugin",)
@pytest.fixture(scope="session", autouse=True)
def connector_setup():
"""This fixture is a placeholder for external resources that acceptance test might require."""
# TODO: setup t... | 25.411765 | 98 | 0.738426 | 55 | 432 | 5.727273 | 0.8 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011142 | 0.168981 | 432 | 16 | 99 | 27 | 0.866295 | 0.585648 | 0 | 0 | 0 | 0 | 0.213018 | 0.171598 | 0 | 0 | 0 | 0.0625 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
130613c0dd1daf7edf4aa6e30bb0303b2984e2ce | 4,862 | py | Python | hail/python/test/hailtop/utils/test_utils.py | vrautela/hail | 7db6189b5b1feafa88452b8470e497d9505d9a46 | [
"MIT"
] | null | null | null | hail/python/test/hailtop/utils/test_utils.py | vrautela/hail | 7db6189b5b1feafa88452b8470e497d9505d9a46 | [
"MIT"
] | null | null | null | hail/python/test/hailtop/utils/test_utils.py | vrautela/hail | 7db6189b5b1feafa88452b8470e497d9505d9a46 | [
"MIT"
] | null | null | null | from hailtop.utils import (partition, url_basename, url_join, url_scheme,
url_and_params, parse_docker_image_reference)
def test_partition_zero_empty():
assert list(partition(0, [])) == []
def test_partition_even_small():
assert list(partition(3, range(3))) == [range(0, 1), range(... | 37.689922 | 113 | 0.644385 | 741 | 4,862 | 4.118758 | 0.098516 | 0.114679 | 0.06291 | 0.068152 | 0.732962 | 0.678244 | 0.647772 | 0.609109 | 0.486894 | 0.486894 | 0 | 0.04725 | 0.177293 | 4,862 | 128 | 114 | 37.984375 | 0.71575 | 0 | 0 | 0.366337 | 0 | 0 | 0.317153 | 0.145825 | 0 | 0 | 0 | 0 | 0.772277 | 1 | 0.09901 | false | 0 | 0.009901 | 0 | 0.108911 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
131342de18ae50cff3d8d09f0b5c640ef367d9c5 | 997 | py | Python | tests/test_dcd_api.py | sadamek/pyIMX | 52af15e656b400f0812f16cf31d9bf6edbe631ad | [
"BSD-3-Clause"
] | null | null | null | tests/test_dcd_api.py | sadamek/pyIMX | 52af15e656b400f0812f16cf31d9bf6edbe631ad | [
"BSD-3-Clause"
] | null | null | null | tests/test_dcd_api.py | sadamek/pyIMX | 52af15e656b400f0812f16cf31d9bf6edbe631ad | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2017-2018 Martin Olejar
#
# SPDX-License-Identifier: BSD-3-Clause
# The BSD-3-Clause license for this file can be found in the LICENSE file included with this distribution
# or at https://spdx.org/licenses/BSD-3-Clause.html#licenseText
import os
import pytest
from imx import img
# Used Directories
DAT... | 22.155556 | 105 | 0.691073 | 162 | 997 | 4.092593 | 0.450617 | 0.054299 | 0.045249 | 0.042232 | 0.271493 | 0.271493 | 0.271493 | 0.129713 | 0.129713 | 0.129713 | 0 | 0.01875 | 0.197593 | 997 | 44 | 106 | 22.659091 | 0.81 | 0.316951 | 0 | 0.3 | 0 | 0 | 0.046269 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0.1 | 0.15 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1324d01927785e4ef25103f8dd91f9cf2502dddb | 722 | py | Python | import.py | vmariano/meme-classifier | e8d6e73e4a843542143f20381c0741df16d3945d | [
"BSD-3-Clause"
] | null | null | null | import.py | vmariano/meme-classifier | e8d6e73e4a843542143f20381c0741df16d3945d | [
"BSD-3-Clause"
] | 1 | 2022-02-07T12:06:59.000Z | 2022-02-07T12:06:59.000Z | import.py | vmariano/meme-classifier | e8d6e73e4a843542143f20381c0741df16d3945d | [
"BSD-3-Clause"
] | 1 | 2022-02-07T02:38:04.000Z | 2022-02-07T02:38:04.000Z | from dotenv import load_dotenv
load_dotenv()
import sys
import os
import re
import json
import psycopg2
from meme_classifier.images import process_image
path = sys.argv[1]
data = json.load(open(os.path.join(path, 'result.json'), 'r'))
chat_id = data['id']
conn = psycopg2.connect(os.getenv('POSTGRES_CREDENTIALS'))
... | 26.740741 | 140 | 0.67036 | 108 | 722 | 4.361111 | 0.462963 | 0.076433 | 0.042463 | 0.059448 | 0.191083 | 0.11465 | 0 | 0 | 0 | 0 | 0 | 0.005076 | 0.18144 | 722 | 26 | 141 | 27.769231 | 0.791878 | 0 | 0 | 0 | 0 | 0.05 | 0.228532 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.35 | 0 | 0.35 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
132bada4fd58d52bb6e1891b67b8d0c493944002 | 6,243 | py | Python | funcoes.py | ZezaoDev/Circtrigo | 5e5f6be0bdee17d30c2993478ca25409b82b6af3 | [
"MIT"
] | null | null | null | funcoes.py | ZezaoDev/Circtrigo | 5e5f6be0bdee17d30c2993478ca25409b82b6af3 | [
"MIT"
] | null | null | null | funcoes.py | ZezaoDev/Circtrigo | 5e5f6be0bdee17d30c2993478ca25409b82b6af3 | [
"MIT"
] | null | null | null | import turtle as t
import math
class circTrigo:
def __init__(self):
self.raio = 0
self.grau = 0
self.seno = 0
self.cosseno = 0
self.tangente = 0
self.quadrante = 0
self.tema = ''
t.bgcolor("black")
t.pencolor("white")
def seta(s... | 30.014423 | 149 | 0.492712 | 775 | 6,243 | 3.963871 | 0.125161 | 0.125 | 0.078125 | 0.045573 | 0.665039 | 0.611979 | 0.586263 | 0.574544 | 0.538411 | 0.514648 | 0 | 0.043052 | 0.378664 | 6,243 | 207 | 150 | 30.15942 | 0.748904 | 0.049175 | 0 | 0.708791 | 0 | 0 | 0.015198 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054945 | false | 0 | 0.010989 | 0 | 0.071429 | 0.082418 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
1335675a9f3e2654ba5bacc0a704284147b3d912 | 2,518 | py | Python | tests/test_get_set.py | snoopyjc/ssf | b995cae0e90d38e3758d4944fb144831f9bae0a5 | [
"Apache-2.0"
] | 3 | 2020-10-07T18:28:12.000Z | 2020-10-09T15:24:53.000Z | tests/test_get_set.py | snoopyjc/ssf | b995cae0e90d38e3758d4944fb144831f9bae0a5 | [
"Apache-2.0"
] | 15 | 2020-10-09T15:23:03.000Z | 2020-10-29T04:34:17.000Z | tests/test_get_set.py | snoopyjc/ssf | b995cae0e90d38e3758d4944fb144831f9bae0a5 | [
"Apache-2.0"
] | null | null | null | from ssf import SSF
ssf = SSF(errors='raise')
def test_get_set_days():
dn = ssf.get_day_names()
assert isinstance(dn, tuple)
assert dn == (('Mon', 'Monday'),
('Tue', 'Tuesday'),
('Wed', 'Wednesday'),
('Thu', 'Thursday'),
('Fri', 'Friday'),
('Sat',... | 31.475 | 100 | 0.496029 | 349 | 2,518 | 3.501433 | 0.332378 | 0.10311 | 0.135025 | 0.10311 | 0.355155 | 0.319149 | 0.220949 | 0.209493 | 0.162029 | 0.085106 | 0 | 0.074849 | 0.278396 | 2,518 | 79 | 101 | 31.873418 | 0.597689 | 0.01946 | 0 | 0.246154 | 0 | 0 | 0.208283 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.046154 | false | 0.061538 | 0.015385 | 0 | 0.061538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
133cca4be64ff28929df70bc44eae2ffd26907ef | 5,889 | py | Python | tests/test_list.py | amikrop/django-paste | 109f6e5a42bdc20f3cb671471b3ce5c9e329148b | [
"MIT"
] | 3 | 2020-11-11T11:28:47.000Z | 2022-03-16T11:27:39.000Z | tests/test_list.py | amikrop/django-paste | 109f6e5a42bdc20f3cb671471b3ce5c9e329148b | [
"MIT"
] | null | null | null | tests/test_list.py | amikrop/django-paste | 109f6e5a42bdc20f3cb671471b3ce5c9e329148b | [
"MIT"
] | 1 | 2021-01-05T15:01:06.000Z | 2021-01-05T15:01:06.000Z | import json
from django.urls import reverse
from rest_framework import status
from rest_framework.test import APITestCase
from paste import constants
from tests.mixins import SnippetListTestCaseMixin
from tests.utils import constant, create_snippet, create_user
class SnippetListTestCase(SnippetListTestCaseMixin, ... | 37.993548 | 78 | 0.652742 | 725 | 5,889 | 5.158621 | 0.204138 | 0.076203 | 0.098396 | 0.064973 | 0.468984 | 0.371658 | 0.286096 | 0.263102 | 0.245455 | 0.234225 | 0 | 0.013559 | 0.248599 | 5,889 | 154 | 79 | 38.24026 | 0.831638 | 0.255561 | 0 | 0.22093 | 0 | 0 | 0.062805 | 0.005621 | 0 | 0 | 0 | 0 | 0.244186 | 1 | 0.209302 | false | 0 | 0.081395 | 0 | 0.325581 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1368b793b823b3bd0b461ed385d6e6b6434e1e68 | 3,455 | py | Python | scripts/dev/dockerutil.py | axelbarjon/mongodb-kubernetes-operator | 13eb844c55774ce8a6de51edde1a66b4371f3ef6 | [
"RSA-MD"
] | 1 | 2021-03-24T17:54:51.000Z | 2021-03-24T17:54:51.000Z | scripts/dev/dockerutil.py | axelbarjon/mongodb-kubernetes-operator | 13eb844c55774ce8a6de51edde1a66b4371f3ef6 | [
"RSA-MD"
] | 18 | 2021-03-08T13:38:37.000Z | 2022-02-14T15:06:28.000Z | scripts/dev/dockerutil.py | axelbarjon/mongodb-kubernetes-operator | 13eb844c55774ce8a6de51edde1a66b4371f3ef6 | [
"RSA-MD"
] | 1 | 2021-03-25T13:37:02.000Z | 2021-03-25T13:37:02.000Z | import docker
from dockerfile_generator import render
import os
import json
from tqdm import tqdm
from typing import Union, Any, Optional
def build_image(repo_url: str, tag: str, path: str) -> None:
"""
build_image builds the image with the given tag
"""
client = docker.from_env()
print(f"Buildin... | 32.28972 | 108 | 0.636758 | 473 | 3,455 | 4.528541 | 0.312896 | 0.03268 | 0.023343 | 0.024276 | 0.143324 | 0.080299 | 0.056956 | 0.056956 | 0.030812 | 0.030812 | 0 | 0.009292 | 0.252388 | 3,455 | 106 | 109 | 32.59434 | 0.819977 | 0.176845 | 0 | 0.189189 | 0 | 0 | 0.112388 | 0.017235 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067568 | false | 0.054054 | 0.081081 | 0 | 0.243243 | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
136a5b3d51a58e910193de0d1a2f38a488d4801a | 1,435 | py | Python | twitoff/twitter.py | ChristopherKchilton/twitoff-ChristopherKchilton | fbac9899feff256ededab009b28e2f6ebd67f476 | [
"MIT"
] | 1 | 2021-09-23T22:04:09.000Z | 2021-09-23T22:04:09.000Z | twitoff/twitter.py | ChristopherKchilton/twitoff-ChristopherKchilton | fbac9899feff256ededab009b28e2f6ebd67f476 | [
"MIT"
] | null | null | null | twitoff/twitter.py | ChristopherKchilton/twitoff-ChristopherKchilton | fbac9899feff256ededab009b28e2f6ebd67f476 | [
"MIT"
] | null | null | null | """Retrieve and request tweets from the DS API"""
import requests
import spacy
from .models import DB, Tweet, User
nlp = spacy.load("my_model")
def vectorize_tweet(tweet_text):
return nlp(tweet_text).vector
# Add and updates tweets
def add_or_update_user(username):
"""Adds and updates the user with twiter ... | 25.175439 | 78 | 0.608362 | 196 | 1,435 | 4.311224 | 0.413265 | 0.049704 | 0.04497 | 0.033136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000965 | 0.278049 | 1,435 | 56 | 79 | 25.625 | 0.814672 | 0.225087 | 0 | 0 | 0 | 0 | 0.123959 | 0 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0.074074 | false | 0 | 0.111111 | 0.037037 | 0.222222 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
136bbda00809274a9f8b16997fd9b06b349771f8 | 3,754 | py | Python | vivo2notld/definitions/person_definition.py | gwu-libraries/vivo2notld | 3f579f8aad28c60119864757e1fe66c2d64a0149 | [
"MIT"
] | 5 | 2015-09-23T10:05:29.000Z | 2016-04-07T17:08:38.000Z | vivo2notld/definitions/person_definition.py | gwu-libraries/vivo2notld | 3f579f8aad28c60119864757e1fe66c2d64a0149 | [
"MIT"
] | null | null | null | vivo2notld/definitions/person_definition.py | gwu-libraries/vivo2notld | 3f579f8aad28c60119864757e1fe66c2d64a0149 | [
"MIT"
] | null | null | null | from .document_summary import definition as document_summary_definition
from .organization_summary import definition as organization_summmary_definition
definition = {
"where": "?subj a foaf:Person .",
"fields": {
"name": {
"where": "?subj rdfs:label ?obj ."
},
#Contact info... | 33.221239 | 80 | 0.34017 | 245 | 3,754 | 5.155102 | 0.261224 | 0.135392 | 0.061758 | 0.047506 | 0.304038 | 0.186857 | 0.186857 | 0.136184 | 0.136184 | 0.136184 | 0 | 0.01627 | 0.541556 | 3,754 | 112 | 81 | 33.517857 | 0.717606 | 0.003197 | 0 | 0.363636 | 0 | 0 | 0.546378 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018182 | 0 | 0.018182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1379138cdd6c153ab5075c9fd6e443c52181da72 | 4,618 | py | Python | BridgeOptimizer/scriptBuilder/ScriptBuilderBoundaryConditions.py | manuel1618/bridgeOptimizer | 273bbf27b2c6273e4aaca55debbd9a10bebf7042 | [
"MIT"
] | 1 | 2022-01-20T16:30:04.000Z | 2022-01-20T16:30:04.000Z | BridgeOptimizer/scriptBuilder/ScriptBuilderBoundaryConditions.py | manuel1618/bridgeOptimizer | 273bbf27b2c6273e4aaca55debbd9a10bebf7042 | [
"MIT"
] | 13 | 2022-01-07T14:07:15.000Z | 2022-01-29T19:42:48.000Z | BridgeOptimizer/scriptBuilder/ScriptBuilderBoundaryConditions.py | manuel1618/bridgeOptimizer | 273bbf27b2c6273e4aaca55debbd9a10bebf7042 | [
"MIT"
] | null | null | null | import os
from typing import List, Tuple
from BridgeOptimizer.datastructure.hypermesh.LoadCollector import LoadCollector
from BridgeOptimizer.datastructure.hypermesh.LoadStep import LoadStep
from BridgeOptimizer.datastructure.hypermesh.Force import Force
from BridgeOptimizer.datastructure.hypermesh.SPC import SPC
cla... | 47.122449 | 159 | 0.622347 | 546 | 4,618 | 5.053114 | 0.20696 | 0.115622 | 0.135556 | 0.117434 | 0.39942 | 0.336716 | 0.30917 | 0.295397 | 0.286336 | 0.185212 | 0 | 0.036947 | 0.290819 | 4,618 | 97 | 160 | 47.608247 | 0.805496 | 0.090732 | 0 | 0.264706 | 0 | 0.029412 | 0.318204 | 0.055097 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0.044118 | false | 0.014706 | 0.088235 | 0 | 0.147059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
137f6361d1e175bc555153af22f77e79ad507096 | 369 | py | Python | dataset/dataset.py | TeamOfProfGuo/few_shot_baseline | f9ac87b9d309fc417589350d3ce61d3612e2be91 | [
"MIT"
] | null | null | null | dataset/dataset.py | TeamOfProfGuo/few_shot_baseline | f9ac87b9d309fc417589350d3ce61d3612e2be91 | [
"MIT"
] | null | null | null | dataset/dataset.py | TeamOfProfGuo/few_shot_baseline | f9ac87b9d309fc417589350d3ce61d3612e2be91 | [
"MIT"
] | null | null | null | import os
DEFAULT_ROOT = './materials'
datasets_dt = {}
def register(name):
def decorator(cls):
datasets_dt[name] = cls
return cls
return decorator
def make(name, **kwargs):
if kwargs.get('root_path') is None:
kwargs['root_path'] = os.path.join(DEFAULT_ROOT, name)
dataset =... | 17.571429 | 62 | 0.642276 | 48 | 369 | 4.791667 | 0.458333 | 0.130435 | 0.121739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233062 | 369 | 20 | 63 | 18.45 | 0.812721 | 0 | 0 | 0 | 0 | 0 | 0.078804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1383ec6b114d686bf9cab5e588bcd0ec41143a37 | 1,033 | py | Python | dblib/test_lib.py | cyber-fighters/dblib | 9743122a55bc265f7551dd9283f381678b2703e4 | [
"MIT"
] | null | null | null | dblib/test_lib.py | cyber-fighters/dblib | 9743122a55bc265f7551dd9283f381678b2703e4 | [
"MIT"
] | 1 | 2019-02-25T09:52:31.000Z | 2019-02-25T09:52:31.000Z | dblib/test_lib.py | cyber-fighters/dblib | 9743122a55bc265f7551dd9283f381678b2703e4 | [
"MIT"
] | null | null | null | """Collection of tests."""
import pytest
import dblib.lib
f0 = dblib.lib.Finding('CD spook', 'my_PC', 'The CD drive is missing.')
f1 = dblib.lib.Finding('Unplugged', 'my_PC', 'The power cord is unplugged.')
f2 = dblib.lib.Finding('Monitor switched off', 'my_PC', 'The monitor is switched off.')
def test_add_remove(... | 23.477273 | 87 | 0.629235 | 158 | 1,033 | 4.075949 | 0.303797 | 0.170807 | 0.102484 | 0.177019 | 0.414596 | 0.414596 | 0.276398 | 0.228261 | 0.127329 | 0.127329 | 0 | 0.028786 | 0.226525 | 1,033 | 43 | 88 | 24.023256 | 0.777222 | 0.078412 | 0 | 0.433333 | 0 | 0 | 0.141176 | 0 | 0 | 0 | 0 | 0 | 0.366667 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
138922f3a893ab484911754fbdc916b94b521606 | 1,341 | py | Python | tests/input_files/full_sm_UFO/function_library.py | valassi/mg5amc_test | 2e04f23353051f64e1604b23105fe3faabd32869 | [
"NCSA"
] | 1 | 2016-07-09T00:05:56.000Z | 2016-07-09T00:05:56.000Z | tests/input_files/full_sm_UFO/function_library.py | valassi/mg5amc_test | 2e04f23353051f64e1604b23105fe3faabd32869 | [
"NCSA"
] | 4 | 2022-03-10T09:13:31.000Z | 2022-03-30T16:15:01.000Z | tests/input_files/full_sm_UFO/function_library.py | valassi/mg5amc_test | 2e04f23353051f64e1604b23105fe3faabd32869 | [
"NCSA"
] | 1 | 2016-07-09T00:06:15.000Z | 2016-07-09T00:06:15.000Z | # This file is part of the UFO.
#
# This file contains definitions for functions that
# are extensions of the cmath library, and correspond
# either to functions that are in cmath, but inconvenient
# to access from there (e.g. z.conjugate()),
# or functions that are simply not defined.
#
#
from __future__ import absol... | 23.946429 | 57 | 0.57047 | 149 | 1,341 | 5.033557 | 0.469799 | 0.112 | 0.186667 | 0.084 | 0.069333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010549 | 0.293065 | 1,341 | 55 | 58 | 24.381818 | 0.780591 | 0.251305 | 0 | 0.269231 | 0 | 0 | 0.166329 | 0.024341 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.115385 | 0 | 0.115385 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.